Skip to content

Commit 88ed55c

Browse files
razor-xseambot
andauthored
feat: Update to @seamapi/types 1.556.0 (#253)
* feat: Update to @seamapi/types 1.556.0 * ci: Generate code --------- Co-authored-by: Seam Bot <[email protected]>
1 parent 64839ff commit 88ed55c

40 files changed

+2831
-570
lines changed

output/csharp/src/Seam/Api/AccessCodes.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -955,15 +955,15 @@ protected ListRequest() { }
955955

956956
public ListRequest(
957957
List<string>? accessCodeIds = default,
958-
List<string>? customerIds = default,
958+
string? customerKey = default,
959959
string? deviceId = default,
960960
float? limit = default,
961961
string? pageCursor = default,
962962
string? userIdentifierKey = default
963963
)
964964
{
965965
AccessCodeIds = accessCodeIds;
966-
CustomerIds = customerIds;
966+
CustomerKey = customerKey;
967967
DeviceId = deviceId;
968968
Limit = limit;
969969
PageCursor = pageCursor;
@@ -973,8 +973,8 @@ public ListRequest(
973973
[DataMember(Name = "access_code_ids", IsRequired = false, EmitDefaultValue = false)]
974974
public List<string>? AccessCodeIds { get; set; }
975975

976-
[DataMember(Name = "customer_ids", IsRequired = false, EmitDefaultValue = false)]
977-
public List<string>? CustomerIds { get; set; }
976+
[DataMember(Name = "customer_key", IsRequired = false, EmitDefaultValue = false)]
977+
public string? CustomerKey { get; set; }
978978

979979
[DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)]
980980
public string? DeviceId { get; set; }
@@ -1051,7 +1051,7 @@ public List<AccessCode> List(ListRequest request)
10511051

10521052
public List<AccessCode> List(
10531053
List<string>? accessCodeIds = default,
1054-
List<string>? customerIds = default,
1054+
string? customerKey = default,
10551055
string? deviceId = default,
10561056
float? limit = default,
10571057
string? pageCursor = default,
@@ -1061,7 +1061,7 @@ public List<AccessCode> List(
10611061
return List(
10621062
new ListRequest(
10631063
accessCodeIds: accessCodeIds,
1064-
customerIds: customerIds,
1064+
customerKey: customerKey,
10651065
deviceId: deviceId,
10661066
limit: limit,
10671067
pageCursor: pageCursor,
@@ -1081,7 +1081,7 @@ public async Task<List<AccessCode>> ListAsync(ListRequest request)
10811081

10821082
public async Task<List<AccessCode>> ListAsync(
10831083
List<string>? accessCodeIds = default,
1084-
List<string>? customerIds = default,
1084+
string? customerKey = default,
10851085
string? deviceId = default,
10861086
float? limit = default,
10871087
string? pageCursor = default,
@@ -1092,7 +1092,7 @@ public async Task<List<AccessCode>> ListAsync(
10921092
await ListAsync(
10931093
new ListRequest(
10941094
accessCodeIds: accessCodeIds,
1095-
customerIds: customerIds,
1095+
customerKey: customerKey,
10961096
deviceId: deviceId,
10971097
limit: limit,
10981098
pageCursor: pageCursor,

output/csharp/src/Seam/Api/AccessGrants.cs

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,31 @@ public CreateRequest(
2929
CreateRequestUserIdentity? userIdentity = default,
3030
string? accessGrantKey = default,
3131
List<string>? acsEntranceIds = default,
32+
string? customizationProfileId = default,
3233
List<string>? deviceIds = default,
3334
string? endsAt = default,
3435
CreateRequestLocation? location = default,
3536
List<string>? locationIds = default,
3637
string? name = default,
3738
List<CreateRequestRequestedAccessMethods> requestedAccessMethods = default,
3839
List<string>? spaceIds = default,
40+
List<string>? spaceKeys = default,
3941
string? startsAt = default
4042
)
4143
{
4244
UserIdentityId = userIdentityId;
4345
UserIdentity = userIdentity;
4446
AccessGrantKey = accessGrantKey;
4547
AcsEntranceIds = acsEntranceIds;
48+
CustomizationProfileId = customizationProfileId;
4649
DeviceIds = deviceIds;
4750
EndsAt = endsAt;
4851
Location = location;
4952
LocationIds = locationIds;
5053
Name = name;
5154
RequestedAccessMethods = requestedAccessMethods;
5255
SpaceIds = spaceIds;
56+
SpaceKeys = spaceKeys;
5357
StartsAt = startsAt;
5458
}
5559

@@ -65,6 +69,13 @@ public CreateRequest(
6569
[DataMember(Name = "acs_entrance_ids", IsRequired = false, EmitDefaultValue = false)]
6670
public List<string>? AcsEntranceIds { get; set; }
6771

72+
[DataMember(
73+
Name = "customization_profile_id",
74+
IsRequired = false,
75+
EmitDefaultValue = false
76+
)]
77+
public string? CustomizationProfileId { get; set; }
78+
6879
[DataMember(Name = "device_ids", IsRequired = false, EmitDefaultValue = false)]
6980
public List<string>? DeviceIds { get; set; }
7081

@@ -90,6 +101,9 @@ public CreateRequest(
90101
[DataMember(Name = "space_ids", IsRequired = false, EmitDefaultValue = false)]
91102
public List<string>? SpaceIds { get; set; }
92103

104+
[DataMember(Name = "space_keys", IsRequired = false, EmitDefaultValue = false)]
105+
public List<string>? SpaceKeys { get; set; }
106+
93107
[DataMember(Name = "starts_at", IsRequired = false, EmitDefaultValue = false)]
94108
public string? StartsAt { get; set; }
95109

@@ -122,12 +136,14 @@ protected CreateRequestUserIdentity() { }
122136
public CreateRequestUserIdentity(
123137
string? emailAddress = default,
124138
string? fullName = default,
125-
string? phoneNumber = default
139+
string? phoneNumber = default,
140+
string? userIdentityKey = default
126141
)
127142
{
128143
EmailAddress = emailAddress;
129144
FullName = fullName;
130145
PhoneNumber = phoneNumber;
146+
UserIdentityKey = userIdentityKey;
131147
}
132148

133149
[DataMember(Name = "email_address", IsRequired = false, EmitDefaultValue = false)]
@@ -139,6 +155,9 @@ public CreateRequestUserIdentity(
139155
[DataMember(Name = "phone_number", IsRequired = false, EmitDefaultValue = false)]
140156
public string? PhoneNumber { get; set; }
141157

158+
[DataMember(Name = "user_identity_key", IsRequired = false, EmitDefaultValue = false)]
159+
public string? UserIdentityKey { get; set; }
160+
142161
public override string ToString()
143162
{
144163
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
@@ -212,9 +231,11 @@ public class CreateRequestRequestedAccessMethods
212231
protected CreateRequestRequestedAccessMethods() { }
213232

214233
public CreateRequestRequestedAccessMethods(
234+
string? code = default,
215235
CreateRequestRequestedAccessMethods.ModeEnum mode = default
216236
)
217237
{
238+
Code = code;
218239
Mode = mode;
219240
}
220241

@@ -234,6 +255,9 @@ public enum ModeEnum
234255
MobileKey = 3,
235256
}
236257

258+
[DataMember(Name = "code", IsRequired = false, EmitDefaultValue = false)]
259+
public string? Code { get; set; }
260+
237261
[DataMember(Name = "mode", IsRequired = true, EmitDefaultValue = false)]
238262
public CreateRequestRequestedAccessMethods.ModeEnum Mode { get; set; }
239263

@@ -305,13 +329,15 @@ public AccessGrant Create(
305329
CreateRequestUserIdentity? userIdentity = default,
306330
string? accessGrantKey = default,
307331
List<string>? acsEntranceIds = default,
332+
string? customizationProfileId = default,
308333
List<string>? deviceIds = default,
309334
string? endsAt = default,
310335
CreateRequestLocation? location = default,
311336
List<string>? locationIds = default,
312337
string? name = default,
313338
List<CreateRequestRequestedAccessMethods> requestedAccessMethods = default,
314339
List<string>? spaceIds = default,
340+
List<string>? spaceKeys = default,
315341
string? startsAt = default
316342
)
317343
{
@@ -321,13 +347,15 @@ public AccessGrant Create(
321347
userIdentity: userIdentity,
322348
accessGrantKey: accessGrantKey,
323349
acsEntranceIds: acsEntranceIds,
350+
customizationProfileId: customizationProfileId,
324351
deviceIds: deviceIds,
325352
endsAt: endsAt,
326353
location: location,
327354
locationIds: locationIds,
328355
name: name,
329356
requestedAccessMethods: requestedAccessMethods,
330357
spaceIds: spaceIds,
358+
spaceKeys: spaceKeys,
331359
startsAt: startsAt
332360
)
333361
);
@@ -347,13 +375,15 @@ public async Task<AccessGrant> CreateAsync(
347375
CreateRequestUserIdentity? userIdentity = default,
348376
string? accessGrantKey = default,
349377
List<string>? acsEntranceIds = default,
378+
string? customizationProfileId = default,
350379
List<string>? deviceIds = default,
351380
string? endsAt = default,
352381
CreateRequestLocation? location = default,
353382
List<string>? locationIds = default,
354383
string? name = default,
355384
List<CreateRequestRequestedAccessMethods> requestedAccessMethods = default,
356385
List<string>? spaceIds = default,
386+
List<string>? spaceKeys = default,
357387
string? startsAt = default
358388
)
359389
{
@@ -364,13 +394,15 @@ await CreateAsync(
364394
userIdentity: userIdentity,
365395
accessGrantKey: accessGrantKey,
366396
acsEntranceIds: acsEntranceIds,
397+
customizationProfileId: customizationProfileId,
367398
deviceIds: deviceIds,
368399
endsAt: endsAt,
369400
location: location,
370401
locationIds: locationIds,
371402
name: name,
372403
requestedAccessMethods: requestedAccessMethods,
373404
spaceIds: spaceIds,
405+
spaceKeys: spaceKeys,
374406
startsAt: startsAt
375407
)
376408
)
@@ -552,6 +584,7 @@ public ListRequest(
552584
string? accessGrantKey = default,
553585
string? acsEntranceId = default,
554586
string? acsSystemId = default,
587+
string? customerKey = default,
555588
string? locationId = default,
556589
string? spaceId = default,
557590
string? userIdentityId = default
@@ -560,6 +593,7 @@ public ListRequest(
560593
AccessGrantKey = accessGrantKey;
561594
AcsEntranceId = acsEntranceId;
562595
AcsSystemId = acsSystemId;
596+
CustomerKey = customerKey;
563597
LocationId = locationId;
564598
SpaceId = spaceId;
565599
UserIdentityId = userIdentityId;
@@ -574,6 +608,9 @@ public ListRequest(
574608
[DataMember(Name = "acs_system_id", IsRequired = false, EmitDefaultValue = false)]
575609
public string? AcsSystemId { get; set; }
576610

611+
[DataMember(Name = "customer_key", IsRequired = false, EmitDefaultValue = false)]
612+
public string? CustomerKey { get; set; }
613+
577614
[DataMember(Name = "location_id", IsRequired = false, EmitDefaultValue = false)]
578615
public string? LocationId { get; set; }
579616

@@ -650,6 +687,7 @@ public List<AccessGrant> List(
650687
string? accessGrantKey = default,
651688
string? acsEntranceId = default,
652689
string? acsSystemId = default,
690+
string? customerKey = default,
653691
string? locationId = default,
654692
string? spaceId = default,
655693
string? userIdentityId = default
@@ -660,6 +698,7 @@ public List<AccessGrant> List(
660698
accessGrantKey: accessGrantKey,
661699
acsEntranceId: acsEntranceId,
662700
acsSystemId: acsSystemId,
701+
customerKey: customerKey,
663702
locationId: locationId,
664703
spaceId: spaceId,
665704
userIdentityId: userIdentityId
@@ -680,6 +719,7 @@ public async Task<List<AccessGrant>> ListAsync(
680719
string? accessGrantKey = default,
681720
string? acsEntranceId = default,
682721
string? acsSystemId = default,
722+
string? customerKey = default,
683723
string? locationId = default,
684724
string? spaceId = default,
685725
string? userIdentityId = default
@@ -691,6 +731,7 @@ await ListAsync(
691731
accessGrantKey: accessGrantKey,
692732
acsEntranceId: acsEntranceId,
693733
acsSystemId: acsSystemId,
734+
customerKey: customerKey,
694735
locationId: locationId,
695736
spaceId: spaceId,
696737
userIdentityId: userIdentityId

0 commit comments

Comments
 (0)