@seamapi/types 1.811.0 → 1.813.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4072,6 +4072,25 @@ declare const access_grant: z.ZodObject<{
4072
4072
  device_id: string;
4073
4073
  created_at: string;
4074
4074
  warning_code: "device_does_not_support_access_codes";
4075
+ }>, z.ZodObject<{
4076
+ created_at: z.ZodString;
4077
+ message: z.ZodString;
4078
+ } & {
4079
+ warning_code: z.ZodLiteral<"device_time_constraints_violated">;
4080
+ device_id: z.ZodString;
4081
+ reason: z.ZodEnum<["duration_exceeds_max", "times_do_not_match_slots", "ongoing_not_supported"]>;
4082
+ }, "strip", z.ZodTypeAny, {
4083
+ message: string;
4084
+ device_id: string;
4085
+ created_at: string;
4086
+ warning_code: "device_time_constraints_violated";
4087
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
4088
+ }, {
4089
+ message: string;
4090
+ device_id: string;
4091
+ created_at: string;
4092
+ warning_code: "device_time_constraints_violated";
4093
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
4075
4094
  }>]>, "many">;
4076
4095
  errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
4077
4096
  created_at: z.ZodString;
@@ -4231,6 +4250,12 @@ declare const access_grant: z.ZodObject<{
4231
4250
  device_id: string;
4232
4251
  created_at: string;
4233
4252
  warning_code: "device_does_not_support_access_codes";
4253
+ } | {
4254
+ message: string;
4255
+ device_id: string;
4256
+ created_at: string;
4257
+ warning_code: "device_time_constraints_violated";
4258
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
4234
4259
  })[];
4235
4260
  space_ids: string[];
4236
4261
  pending_mutations: ({
@@ -4321,6 +4346,12 @@ declare const access_grant: z.ZodObject<{
4321
4346
  device_id: string;
4322
4347
  created_at: string;
4323
4348
  warning_code: "device_does_not_support_access_codes";
4349
+ } | {
4350
+ message: string;
4351
+ device_id: string;
4352
+ created_at: string;
4353
+ warning_code: "device_time_constraints_violated";
4354
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
4324
4355
  })[];
4325
4356
  space_ids: string[];
4326
4357
  pending_mutations: ({
@@ -29457,6 +29488,25 @@ declare const batch: z.ZodObject<{
29457
29488
  device_id: string;
29458
29489
  created_at: string;
29459
29490
  warning_code: "device_does_not_support_access_codes";
29491
+ }>, z.ZodObject<{
29492
+ created_at: z.ZodString;
29493
+ message: z.ZodString;
29494
+ } & {
29495
+ warning_code: z.ZodLiteral<"device_time_constraints_violated">;
29496
+ device_id: z.ZodString;
29497
+ reason: z.ZodEnum<["duration_exceeds_max", "times_do_not_match_slots", "ongoing_not_supported"]>;
29498
+ }, "strip", z.ZodTypeAny, {
29499
+ message: string;
29500
+ device_id: string;
29501
+ created_at: string;
29502
+ warning_code: "device_time_constraints_violated";
29503
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
29504
+ }, {
29505
+ message: string;
29506
+ device_id: string;
29507
+ created_at: string;
29508
+ warning_code: "device_time_constraints_violated";
29509
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
29460
29510
  }>]>, "many">;
29461
29511
  errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
29462
29512
  created_at: z.ZodString;
@@ -29616,6 +29666,12 @@ declare const batch: z.ZodObject<{
29616
29666
  device_id: string;
29617
29667
  created_at: string;
29618
29668
  warning_code: "device_does_not_support_access_codes";
29669
+ } | {
29670
+ message: string;
29671
+ device_id: string;
29672
+ created_at: string;
29673
+ warning_code: "device_time_constraints_violated";
29674
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
29619
29675
  })[];
29620
29676
  space_ids: string[];
29621
29677
  pending_mutations: ({
@@ -29706,6 +29762,12 @@ declare const batch: z.ZodObject<{
29706
29762
  device_id: string;
29707
29763
  created_at: string;
29708
29764
  warning_code: "device_does_not_support_access_codes";
29765
+ } | {
29766
+ message: string;
29767
+ device_id: string;
29768
+ created_at: string;
29769
+ warning_code: "device_time_constraints_violated";
29770
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
29709
29771
  })[];
29710
29772
  space_ids: string[];
29711
29773
  pending_mutations: ({
@@ -41002,6 +41064,12 @@ declare const batch: z.ZodObject<{
41002
41064
  device_id: string;
41003
41065
  created_at: string;
41004
41066
  warning_code: "device_does_not_support_access_codes";
41067
+ } | {
41068
+ message: string;
41069
+ device_id: string;
41070
+ created_at: string;
41071
+ warning_code: "device_time_constraints_violated";
41072
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
41005
41073
  })[];
41006
41074
  space_ids: string[];
41007
41075
  pending_mutations: ({
@@ -45944,6 +46012,12 @@ declare const batch: z.ZodObject<{
45944
46012
  device_id: string;
45945
46013
  created_at: string;
45946
46014
  warning_code: "device_does_not_support_access_codes";
46015
+ } | {
46016
+ message: string;
46017
+ device_id: string;
46018
+ created_at: string;
46019
+ warning_code: "device_time_constraints_violated";
46020
+ reason: "duration_exceeds_max" | "times_do_not_match_slots" | "ongoing_not_supported";
45947
46021
  })[];
45948
46022
  space_ids: string[];
45949
46023
  pending_mutations: ({
@@ -64475,6 +64549,7 @@ declare const _default: {
64475
64549
  device_id?: never;
64476
64550
  new_code?: never;
64477
64551
  original_code?: never;
64552
+ reason?: never;
64478
64553
  };
64479
64554
  required: string[];
64480
64555
  type: string;
@@ -64522,6 +64597,7 @@ declare const _default: {
64522
64597
  device_id?: never;
64523
64598
  new_code?: never;
64524
64599
  original_code?: never;
64600
+ reason?: never;
64525
64601
  };
64526
64602
  required: string[];
64527
64603
  type: string;
@@ -64554,6 +64630,7 @@ declare const _default: {
64554
64630
  device_id?: never;
64555
64631
  new_code?: never;
64556
64632
  original_code?: never;
64633
+ reason?: never;
64557
64634
  };
64558
64635
  required: string[];
64559
64636
  type: string;
@@ -64589,6 +64666,7 @@ declare const _default: {
64589
64666
  };
64590
64667
  failed_devices?: never;
64591
64668
  access_method_ids?: never;
64669
+ reason?: never;
64592
64670
  };
64593
64671
  required: string[];
64594
64672
  type: string;
@@ -64618,6 +64696,41 @@ declare const _default: {
64618
64696
  access_method_ids?: never;
64619
64697
  new_code?: never;
64620
64698
  original_code?: never;
64699
+ reason?: never;
64700
+ };
64701
+ required: string[];
64702
+ type: string;
64703
+ } | {
64704
+ description: string;
64705
+ properties: {
64706
+ created_at: {
64707
+ description: string;
64708
+ format: string;
64709
+ type: string;
64710
+ };
64711
+ device_id: {
64712
+ description: string;
64713
+ format: string;
64714
+ type: string;
64715
+ };
64716
+ message: {
64717
+ description: string;
64718
+ type: string;
64719
+ };
64720
+ reason: {
64721
+ description: string;
64722
+ enum: string[];
64723
+ type: string;
64724
+ };
64725
+ warning_code: {
64726
+ description: string;
64727
+ enum: string[];
64728
+ type: string;
64729
+ };
64730
+ failed_devices?: never;
64731
+ access_method_ids?: never;
64732
+ new_code?: never;
64733
+ original_code?: never;
64621
64734
  };
64622
64735
  required: string[];
64623
64736
  type: string;
@@ -88116,6 +88229,7 @@ declare const _default: {
88116
88229
  device_id?: never;
88117
88230
  new_code?: never;
88118
88231
  original_code?: never;
88232
+ reason?: never;
88119
88233
  };
88120
88234
  required: string[];
88121
88235
  type: string;
@@ -88163,6 +88277,7 @@ declare const _default: {
88163
88277
  device_id?: never;
88164
88278
  new_code?: never;
88165
88279
  original_code?: never;
88280
+ reason?: never;
88166
88281
  };
88167
88282
  required: string[];
88168
88283
  type: string;
@@ -88195,6 +88310,7 @@ declare const _default: {
88195
88310
  device_id?: never;
88196
88311
  new_code?: never;
88197
88312
  original_code?: never;
88313
+ reason?: never;
88198
88314
  };
88199
88315
  required: string[];
88200
88316
  type: string;
@@ -88230,6 +88346,37 @@ declare const _default: {
88230
88346
  };
88231
88347
  failed_devices?: never;
88232
88348
  access_method_ids?: never;
88349
+ reason?: never;
88350
+ };
88351
+ required: string[];
88352
+ type: string;
88353
+ } | {
88354
+ description: string;
88355
+ properties: {
88356
+ created_at: {
88357
+ description: string;
88358
+ format: string;
88359
+ type: string;
88360
+ };
88361
+ device_id: {
88362
+ description: string;
88363
+ format: string;
88364
+ type: string;
88365
+ };
88366
+ message: {
88367
+ description: string;
88368
+ type: string;
88369
+ };
88370
+ warning_code: {
88371
+ description: string;
88372
+ enum: string[];
88373
+ type: string;
88374
+ };
88375
+ failed_devices?: never;
88376
+ access_method_ids?: never;
88377
+ new_code?: never;
88378
+ original_code?: never;
88379
+ reason?: never;
88233
88380
  };
88234
88381
  required: string[];
88235
88382
  type: string;
@@ -88250,6 +88397,11 @@ declare const _default: {
88250
88397
  description: string;
88251
88398
  type: string;
88252
88399
  };
88400
+ reason: {
88401
+ description: string;
88402
+ enum: string[];
88403
+ type: string;
88404
+ };
88253
88405
  warning_code: {
88254
88406
  description: string;
88255
88407
  enum: string[];
@@ -88658,6 +88810,7 @@ declare const _default: {
88658
88810
  device_id?: never;
88659
88811
  new_code?: never;
88660
88812
  original_code?: never;
88813
+ reason?: never;
88661
88814
  };
88662
88815
  required: string[];
88663
88816
  type: string;
@@ -88705,6 +88858,7 @@ declare const _default: {
88705
88858
  device_id?: never;
88706
88859
  new_code?: never;
88707
88860
  original_code?: never;
88861
+ reason?: never;
88708
88862
  };
88709
88863
  required: string[];
88710
88864
  type: string;
@@ -88737,6 +88891,7 @@ declare const _default: {
88737
88891
  device_id?: never;
88738
88892
  new_code?: never;
88739
88893
  original_code?: never;
88894
+ reason?: never;
88740
88895
  };
88741
88896
  required: string[];
88742
88897
  type: string;
@@ -88772,6 +88927,7 @@ declare const _default: {
88772
88927
  };
88773
88928
  failed_devices?: never;
88774
88929
  access_method_ids?: never;
88930
+ reason?: never;
88775
88931
  };
88776
88932
  required: string[];
88777
88933
  type: string;
@@ -88801,6 +88957,41 @@ declare const _default: {
88801
88957
  access_method_ids?: never;
88802
88958
  new_code?: never;
88803
88959
  original_code?: never;
88960
+ reason?: never;
88961
+ };
88962
+ required: string[];
88963
+ type: string;
88964
+ } | {
88965
+ description: string;
88966
+ properties: {
88967
+ created_at: {
88968
+ description: string;
88969
+ format: string;
88970
+ type: string;
88971
+ };
88972
+ device_id: {
88973
+ description: string;
88974
+ format: string;
88975
+ type: string;
88976
+ };
88977
+ message: {
88978
+ description: string;
88979
+ type: string;
88980
+ };
88981
+ reason: {
88982
+ description: string;
88983
+ enum: string[];
88984
+ type: string;
88985
+ };
88986
+ warning_code: {
88987
+ description: string;
88988
+ enum: string[];
88989
+ type: string;
88990
+ };
88991
+ failed_devices?: never;
88992
+ access_method_ids?: never;
88993
+ new_code?: never;
88994
+ original_code?: never;
88804
88995
  };
88805
88996
  required: string[];
88806
88997
  type: string;
@@ -89227,6 +89418,7 @@ declare const _default: {
89227
89418
  device_id?: never;
89228
89419
  new_code?: never;
89229
89420
  original_code?: never;
89421
+ reason?: never;
89230
89422
  };
89231
89423
  required: string[];
89232
89424
  type: string;
@@ -89274,6 +89466,7 @@ declare const _default: {
89274
89466
  device_id?: never;
89275
89467
  new_code?: never;
89276
89468
  original_code?: never;
89469
+ reason?: never;
89277
89470
  };
89278
89471
  required: string[];
89279
89472
  type: string;
@@ -89306,6 +89499,7 @@ declare const _default: {
89306
89499
  device_id?: never;
89307
89500
  new_code?: never;
89308
89501
  original_code?: never;
89502
+ reason?: never;
89309
89503
  };
89310
89504
  required: string[];
89311
89505
  type: string;
@@ -89341,6 +89535,37 @@ declare const _default: {
89341
89535
  };
89342
89536
  failed_devices?: never;
89343
89537
  access_method_ids?: never;
89538
+ reason?: never;
89539
+ };
89540
+ required: string[];
89541
+ type: string;
89542
+ } | {
89543
+ description: string;
89544
+ properties: {
89545
+ created_at: {
89546
+ description: string;
89547
+ format: string;
89548
+ type: string;
89549
+ };
89550
+ device_id: {
89551
+ description: string;
89552
+ format: string;
89553
+ type: string;
89554
+ };
89555
+ message: {
89556
+ description: string;
89557
+ type: string;
89558
+ };
89559
+ warning_code: {
89560
+ description: string;
89561
+ enum: string[];
89562
+ type: string;
89563
+ };
89564
+ failed_devices?: never;
89565
+ access_method_ids?: never;
89566
+ new_code?: never;
89567
+ original_code?: never;
89568
+ reason?: never;
89344
89569
  };
89345
89570
  required: string[];
89346
89571
  type: string;
@@ -89361,6 +89586,11 @@ declare const _default: {
89361
89586
  description: string;
89362
89587
  type: string;
89363
89588
  };
89589
+ reason: {
89590
+ description: string;
89591
+ enum: string[];
89592
+ type: string;
89593
+ };
89364
89594
  warning_code: {
89365
89595
  description: string;
89366
89596
  enum: string[];
@@ -89799,6 +90029,7 @@ declare const _default: {
89799
90029
  device_id?: never;
89800
90030
  new_code?: never;
89801
90031
  original_code?: never;
90032
+ reason?: never;
89802
90033
  };
89803
90034
  required: string[];
89804
90035
  type: string;
@@ -89846,6 +90077,7 @@ declare const _default: {
89846
90077
  device_id?: never;
89847
90078
  new_code?: never;
89848
90079
  original_code?: never;
90080
+ reason?: never;
89849
90081
  };
89850
90082
  required: string[];
89851
90083
  type: string;
@@ -89878,6 +90110,7 @@ declare const _default: {
89878
90110
  device_id?: never;
89879
90111
  new_code?: never;
89880
90112
  original_code?: never;
90113
+ reason?: never;
89881
90114
  };
89882
90115
  required: string[];
89883
90116
  type: string;
@@ -89913,6 +90146,37 @@ declare const _default: {
89913
90146
  };
89914
90147
  failed_devices?: never;
89915
90148
  access_method_ids?: never;
90149
+ reason?: never;
90150
+ };
90151
+ required: string[];
90152
+ type: string;
90153
+ } | {
90154
+ description: string;
90155
+ properties: {
90156
+ created_at: {
90157
+ description: string;
90158
+ format: string;
90159
+ type: string;
90160
+ };
90161
+ device_id: {
90162
+ description: string;
90163
+ format: string;
90164
+ type: string;
90165
+ };
90166
+ message: {
90167
+ description: string;
90168
+ type: string;
90169
+ };
90170
+ warning_code: {
90171
+ description: string;
90172
+ enum: string[];
90173
+ type: string;
90174
+ };
90175
+ failed_devices?: never;
90176
+ access_method_ids?: never;
90177
+ new_code?: never;
90178
+ original_code?: never;
90179
+ reason?: never;
89916
90180
  };
89917
90181
  required: string[];
89918
90182
  type: string;
@@ -89933,6 +90197,11 @@ declare const _default: {
89933
90197
  description: string;
89934
90198
  type: string;
89935
90199
  };
90200
+ reason: {
90201
+ description: string;
90202
+ enum: string[];
90203
+ type: string;
90204
+ };
89936
90205
  warning_code: {
89937
90206
  description: string;
89938
90207
  enum: string[];
@@ -125888,7 +126157,7 @@ declare const _default: {
125888
126157
  'x-title': string;
125889
126158
  };
125890
126159
  };
125891
- '/spaces/add_devices': {
126160
+ '/spaces/add_connected_account': {
125892
126161
  post: {
125893
126162
  description: string;
125894
126163
  operationId: string;
@@ -125897,13 +126166,9 @@ declare const _default: {
125897
126166
  'application/json': {
125898
126167
  schema: {
125899
126168
  properties: {
125900
- device_ids: {
126169
+ connected_account_id: {
125901
126170
  description: string;
125902
- items: {
125903
- format: string;
125904
- type: string;
125905
- };
125906
- minItems: number;
126171
+ format: string;
125907
126172
  type: string;
125908
126173
  };
125909
126174
  space_id: {
@@ -125978,13 +126243,9 @@ declare const _default: {
125978
126243
  'application/json': {
125979
126244
  schema: {
125980
126245
  properties: {
125981
- device_ids: {
126246
+ connected_account_id: {
125982
126247
  description: string;
125983
- items: {
125984
- format: string;
125985
- type: string;
125986
- };
125987
- minItems: number;
126248
+ format: string;
125988
126249
  type: string;
125989
126250
  };
125990
126251
  space_id: {
@@ -126052,7 +126313,7 @@ declare const _default: {
126052
126313
  'x-title': string;
126053
126314
  };
126054
126315
  };
126055
- '/spaces/create': {
126316
+ '/spaces/add_devices': {
126056
126317
  post: {
126057
126318
  description: string;
126058
126319
  operationId: string;
@@ -126061,56 +126322,18 @@ declare const _default: {
126061
126322
  'application/json': {
126062
126323
  schema: {
126063
126324
  properties: {
126064
- acs_entrance_ids: {
126065
- description: string;
126066
- items: {
126067
- format: string;
126068
- type: string;
126069
- };
126070
- type: string;
126071
- };
126072
- customer_data: {
126073
- description: string;
126074
- properties: {
126075
- default_checkin_time: {
126076
- description: string;
126077
- nullable: boolean;
126078
- pattern: string;
126079
- type: string;
126080
- };
126081
- default_checkout_time: {
126082
- description: string;
126083
- nullable: boolean;
126084
- pattern: string;
126085
- type: string;
126086
- };
126087
- time_zone: {
126088
- description: string;
126089
- nullable: boolean;
126090
- type: string;
126091
- };
126092
- };
126093
- type: string;
126094
- };
126095
- customer_key: {
126096
- description: string;
126097
- minLength: number;
126098
- type: string;
126099
- };
126100
126325
  device_ids: {
126101
126326
  description: string;
126102
126327
  items: {
126103
126328
  format: string;
126104
126329
  type: string;
126105
126330
  };
126331
+ minItems: number;
126106
126332
  type: string;
126107
126333
  };
126108
- name: {
126109
- description: string;
126110
- type: string;
126111
- };
126112
- space_key: {
126334
+ space_id: {
126113
126335
  description: string;
126336
+ format: string;
126114
126337
  type: string;
126115
126338
  };
126116
126339
  };
@@ -126129,9 +126352,211 @@ declare const _default: {
126129
126352
  ok: {
126130
126353
  type: string;
126131
126354
  };
126132
- space: {
126133
- $ref: string;
126134
- };
126355
+ };
126356
+ required: string[];
126357
+ type: string;
126358
+ };
126359
+ };
126360
+ };
126361
+ description: string;
126362
+ };
126363
+ 400: {
126364
+ description: string;
126365
+ };
126366
+ 401: {
126367
+ description: string;
126368
+ };
126369
+ };
126370
+ security: ({
126371
+ pat_with_workspace: never[];
126372
+ console_session_with_workspace?: never;
126373
+ api_key?: never;
126374
+ client_session_with_customer?: never;
126375
+ } | {
126376
+ console_session_with_workspace: never[];
126377
+ pat_with_workspace?: never;
126378
+ api_key?: never;
126379
+ client_session_with_customer?: never;
126380
+ } | {
126381
+ api_key: never[];
126382
+ pat_with_workspace?: never;
126383
+ console_session_with_workspace?: never;
126384
+ client_session_with_customer?: never;
126385
+ } | {
126386
+ client_session_with_customer: never[];
126387
+ pat_with_workspace?: never;
126388
+ console_session_with_workspace?: never;
126389
+ api_key?: never;
126390
+ })[];
126391
+ summary: string;
126392
+ tags: never[];
126393
+ 'x-fern-sdk-group-name': string[];
126394
+ 'x-fern-sdk-method-name': string;
126395
+ 'x-response-key': null;
126396
+ 'x-title': string;
126397
+ };
126398
+ put: {
126399
+ description: string;
126400
+ operationId: string;
126401
+ requestBody: {
126402
+ content: {
126403
+ 'application/json': {
126404
+ schema: {
126405
+ properties: {
126406
+ device_ids: {
126407
+ description: string;
126408
+ items: {
126409
+ format: string;
126410
+ type: string;
126411
+ };
126412
+ minItems: number;
126413
+ type: string;
126414
+ };
126415
+ space_id: {
126416
+ description: string;
126417
+ format: string;
126418
+ type: string;
126419
+ };
126420
+ };
126421
+ required: string[];
126422
+ type: string;
126423
+ };
126424
+ };
126425
+ };
126426
+ };
126427
+ responses: {
126428
+ 200: {
126429
+ content: {
126430
+ 'application/json': {
126431
+ schema: {
126432
+ properties: {
126433
+ ok: {
126434
+ type: string;
126435
+ };
126436
+ };
126437
+ required: string[];
126438
+ type: string;
126439
+ };
126440
+ };
126441
+ };
126442
+ description: string;
126443
+ };
126444
+ 400: {
126445
+ description: string;
126446
+ };
126447
+ 401: {
126448
+ description: string;
126449
+ };
126450
+ };
126451
+ security: ({
126452
+ pat_with_workspace: never[];
126453
+ console_session_with_workspace?: never;
126454
+ api_key?: never;
126455
+ client_session_with_customer?: never;
126456
+ } | {
126457
+ console_session_with_workspace: never[];
126458
+ pat_with_workspace?: never;
126459
+ api_key?: never;
126460
+ client_session_with_customer?: never;
126461
+ } | {
126462
+ api_key: never[];
126463
+ pat_with_workspace?: never;
126464
+ console_session_with_workspace?: never;
126465
+ client_session_with_customer?: never;
126466
+ } | {
126467
+ client_session_with_customer: never[];
126468
+ pat_with_workspace?: never;
126469
+ console_session_with_workspace?: never;
126470
+ api_key?: never;
126471
+ })[];
126472
+ summary: string;
126473
+ tags: never[];
126474
+ 'x-fern-sdk-group-name': string[];
126475
+ 'x-fern-sdk-method-name': string;
126476
+ 'x-response-key': null;
126477
+ 'x-title': string;
126478
+ };
126479
+ };
126480
+ '/spaces/create': {
126481
+ post: {
126482
+ description: string;
126483
+ operationId: string;
126484
+ requestBody: {
126485
+ content: {
126486
+ 'application/json': {
126487
+ schema: {
126488
+ properties: {
126489
+ acs_entrance_ids: {
126490
+ description: string;
126491
+ items: {
126492
+ format: string;
126493
+ type: string;
126494
+ };
126495
+ type: string;
126496
+ };
126497
+ customer_data: {
126498
+ description: string;
126499
+ properties: {
126500
+ default_checkin_time: {
126501
+ description: string;
126502
+ nullable: boolean;
126503
+ pattern: string;
126504
+ type: string;
126505
+ };
126506
+ default_checkout_time: {
126507
+ description: string;
126508
+ nullable: boolean;
126509
+ pattern: string;
126510
+ type: string;
126511
+ };
126512
+ time_zone: {
126513
+ description: string;
126514
+ nullable: boolean;
126515
+ type: string;
126516
+ };
126517
+ };
126518
+ type: string;
126519
+ };
126520
+ customer_key: {
126521
+ description: string;
126522
+ minLength: number;
126523
+ type: string;
126524
+ };
126525
+ device_ids: {
126526
+ description: string;
126527
+ items: {
126528
+ format: string;
126529
+ type: string;
126530
+ };
126531
+ type: string;
126532
+ };
126533
+ name: {
126534
+ description: string;
126535
+ type: string;
126536
+ };
126537
+ space_key: {
126538
+ description: string;
126539
+ type: string;
126540
+ };
126541
+ };
126542
+ required: string[];
126543
+ type: string;
126544
+ };
126545
+ };
126546
+ };
126547
+ };
126548
+ responses: {
126549
+ 200: {
126550
+ content: {
126551
+ 'application/json': {
126552
+ schema: {
126553
+ properties: {
126554
+ ok: {
126555
+ type: string;
126556
+ };
126557
+ space: {
126558
+ $ref: string;
126559
+ };
126135
126560
  };
126136
126561
  required: string[];
126137
126562
  type: string;
@@ -127153,6 +127578,150 @@ declare const _default: {
127153
127578
  'x-title': string;
127154
127579
  };
127155
127580
  };
127581
+ '/spaces/remove_connected_account': {
127582
+ delete: {
127583
+ description: string;
127584
+ operationId: string;
127585
+ parameters: {
127586
+ in: string;
127587
+ name: string;
127588
+ required: boolean;
127589
+ schema: {
127590
+ description: string;
127591
+ format: string;
127592
+ type: string;
127593
+ };
127594
+ }[];
127595
+ responses: {
127596
+ 200: {
127597
+ content: {
127598
+ 'application/json': {
127599
+ schema: {
127600
+ properties: {
127601
+ ok: {
127602
+ type: string;
127603
+ };
127604
+ };
127605
+ required: string[];
127606
+ type: string;
127607
+ };
127608
+ };
127609
+ };
127610
+ description: string;
127611
+ };
127612
+ 400: {
127613
+ description: string;
127614
+ };
127615
+ 401: {
127616
+ description: string;
127617
+ };
127618
+ };
127619
+ security: ({
127620
+ pat_with_workspace: never[];
127621
+ console_session_with_workspace?: never;
127622
+ api_key?: never;
127623
+ client_session_with_customer?: never;
127624
+ } | {
127625
+ console_session_with_workspace: never[];
127626
+ pat_with_workspace?: never;
127627
+ api_key?: never;
127628
+ client_session_with_customer?: never;
127629
+ } | {
127630
+ api_key: never[];
127631
+ pat_with_workspace?: never;
127632
+ console_session_with_workspace?: never;
127633
+ client_session_with_customer?: never;
127634
+ } | {
127635
+ client_session_with_customer: never[];
127636
+ pat_with_workspace?: never;
127637
+ console_session_with_workspace?: never;
127638
+ api_key?: never;
127639
+ })[];
127640
+ summary: string;
127641
+ tags: never[];
127642
+ 'x-fern-sdk-group-name': string[];
127643
+ 'x-fern-sdk-method-name': string;
127644
+ 'x-response-key': null;
127645
+ 'x-title': string;
127646
+ };
127647
+ post: {
127648
+ description: string;
127649
+ operationId: string;
127650
+ requestBody: {
127651
+ content: {
127652
+ 'application/json': {
127653
+ schema: {
127654
+ properties: {
127655
+ connected_account_id: {
127656
+ description: string;
127657
+ format: string;
127658
+ type: string;
127659
+ };
127660
+ space_id: {
127661
+ description: string;
127662
+ format: string;
127663
+ type: string;
127664
+ };
127665
+ };
127666
+ required: string[];
127667
+ type: string;
127668
+ };
127669
+ };
127670
+ };
127671
+ };
127672
+ responses: {
127673
+ 200: {
127674
+ content: {
127675
+ 'application/json': {
127676
+ schema: {
127677
+ properties: {
127678
+ ok: {
127679
+ type: string;
127680
+ };
127681
+ };
127682
+ required: string[];
127683
+ type: string;
127684
+ };
127685
+ };
127686
+ };
127687
+ description: string;
127688
+ };
127689
+ 400: {
127690
+ description: string;
127691
+ };
127692
+ 401: {
127693
+ description: string;
127694
+ };
127695
+ };
127696
+ security: ({
127697
+ pat_with_workspace: never[];
127698
+ console_session_with_workspace?: never;
127699
+ api_key?: never;
127700
+ client_session_with_customer?: never;
127701
+ } | {
127702
+ console_session_with_workspace: never[];
127703
+ pat_with_workspace?: never;
127704
+ api_key?: never;
127705
+ client_session_with_customer?: never;
127706
+ } | {
127707
+ api_key: never[];
127708
+ pat_with_workspace?: never;
127709
+ console_session_with_workspace?: never;
127710
+ client_session_with_customer?: never;
127711
+ } | {
127712
+ client_session_with_customer: never[];
127713
+ pat_with_workspace?: never;
127714
+ console_session_with_workspace?: never;
127715
+ api_key?: never;
127716
+ })[];
127717
+ summary: string;
127718
+ tags: never[];
127719
+ 'x-fern-sdk-group-name': string[];
127720
+ 'x-fern-sdk-method-name': string;
127721
+ 'x-response-key': null;
127722
+ 'x-title': string;
127723
+ };
127724
+ };
127156
127725
  '/spaces/remove_devices': {
127157
127726
  delete: {
127158
127727
  description: string;
@@ -148822,6 +149391,17 @@ type Routes = {
148822
149391
  warning_code: 'device_does_not_support_access_codes';
148823
149392
  /** ID of the device that does not support access codes. */
148824
149393
  device_id: string;
149394
+ } | {
149395
+ /** Date and time at which Seam created the warning. */
149396
+ created_at: string;
149397
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
149398
+ message: string;
149399
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
149400
+ warning_code: 'device_time_constraints_violated';
149401
+ /** ID of the device whose time constraints the access grant violates. */
149402
+ device_id: string;
149403
+ /** Specific reason why the grant's times are not programmable on the device. */
149404
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
148825
149405
  })[];
148826
149406
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
148827
149407
  errors: {
@@ -149019,6 +149599,17 @@ type Routes = {
149019
149599
  warning_code: 'device_does_not_support_access_codes';
149020
149600
  /** ID of the device that does not support access codes. */
149021
149601
  device_id: string;
149602
+ } | {
149603
+ /** Date and time at which Seam created the warning. */
149604
+ created_at: string;
149605
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
149606
+ message: string;
149607
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
149608
+ warning_code: 'device_time_constraints_violated';
149609
+ /** ID of the device whose time constraints the access grant violates. */
149610
+ device_id: string;
149611
+ /** Specific reason why the grant's times are not programmable on the device. */
149612
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
149022
149613
  })[];
149023
149614
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
149024
149615
  errors: {
@@ -151308,205 +151899,227 @@ type Routes = {
151308
151899
  warning_code: 'device_does_not_support_access_codes';
151309
151900
  /** ID of the device that does not support access codes. */
151310
151901
  device_id: string;
151311
- })[];
151312
- /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
151313
- errors: {
151314
- /** Date and time at which Seam created the error. */
151315
- created_at: string;
151316
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
151317
- message: string;
151318
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
151319
- error_code: 'cannot_create_requested_access_methods';
151320
- }[];
151321
- /** ID of the customization profile associated with the Access Grant. */
151322
- customization_profile_id?: string | undefined;
151323
- /** List of pending mutations for the access grant. This shows updates that are in progress. */
151324
- pending_mutations: ({
151325
- /** Date and time at which the mutation was created. */
151326
- created_at: string;
151327
- /** Detailed description of the mutation. */
151328
- message: string;
151329
- /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */
151330
- mutation_code: 'updating_spaces';
151331
- /** Previous location configuration. */
151332
- from: {
151333
- /** Previous device IDs where access codes existed. */
151334
- device_ids: string[];
151335
- };
151336
- /** New location configuration. */
151337
- to: {
151338
- /** New device IDs where access codes should be created. */
151339
- device_ids: string[];
151340
- /** Common code key to ensure PIN code reuse across devices. */
151341
- common_code_key?: (string | null) | undefined;
151342
- };
151343
- } | {
151344
- /** Date and time at which the mutation was created. */
151345
- created_at: string;
151346
- /** Detailed description of the mutation. */
151347
- message: string;
151348
- /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */
151349
- mutation_code: 'updating_access_times';
151350
- /** IDs of the access methods being updated. */
151351
- access_method_ids: string[];
151352
- /** Previous access time configuration. */
151353
- from: {
151354
- /** Previous start time for access. */
151355
- starts_at: string | null;
151356
- /** Previous end time for access. */
151357
- ends_at: string | null;
151358
- };
151359
- /** New access time configuration. */
151360
- to: {
151361
- /** New start time for access. */
151362
- starts_at: string | null;
151363
- /** New end time for access. */
151364
- ends_at: string | null;
151365
- };
151366
- })[];
151367
- }[];
151368
- /** Information about the current page of results. */
151369
- pagination: {
151370
- /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
151371
- next_page_cursor: string | null;
151372
- /** Indicates whether there is another page of results after this one. */
151373
- has_next_page: boolean;
151374
- /** URL to get the next page of results. */
151375
- next_page_url: string | null;
151376
- };
151377
- };
151378
- maxDuration: undefined;
151379
- };
151380
- '/access_grants/request_access_methods': {
151381
- route: '/access_grants/request_access_methods';
151382
- method: 'POST';
151383
- queryParams: {};
151384
- jsonBody: {};
151385
- commonParams: {
151386
- /** ID of the Access Grant to add access methods to. */
151387
- access_grant_id: string;
151388
- /** Array of requested access methods to add to the access grant. */
151389
- requested_access_methods: {
151390
- /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
151391
- mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
151392
- /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
151393
- code?: string | undefined;
151394
- /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
151395
- instant_key_max_use_count?: number | undefined;
151396
- }[];
151397
- };
151398
- formData: {};
151399
- jsonResponse: {
151400
- /** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
151401
- access_grant: {
151402
- /** ID of the Seam workspace associated with the Access Grant. */
151403
- workspace_id: string;
151404
- /** ID of the Access Grant. */
151405
- access_grant_id: string;
151406
- /** Unique key for the access grant within the workspace. */
151407
- access_grant_key?: string | undefined;
151408
- /** Reservation key for the access grant. */
151409
- reservation_key?: string | undefined;
151410
- /** ID of user identity to which the Access Grant gives access. */
151411
- user_identity_id: string;
151412
- /**
151413
- * @deprecated Use `space_ids`.*/
151414
- location_ids: string[];
151415
- /** IDs of the spaces to which the Access Grant gives access. */
151416
- space_ids: string[];
151417
- /** Access methods that the user requested for the Access Grant. */
151418
- requested_access_methods: {
151419
- /** Display name of the access method. */
151420
- display_name: string;
151421
- /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
151422
- mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
151423
- /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
151424
- code?: string | undefined;
151425
- /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
151426
- instant_key_max_use_count?: number | undefined;
151427
- /** Date and time at which the requested access method was added to the Access Grant. */
151428
- created_at: string;
151429
- /** IDs of the access methods created for the requested access method. */
151430
- created_access_method_ids: string[];
151431
- }[];
151432
- /** IDs of the access methods created for the Access Grant. */
151433
- access_method_ids: string[];
151434
- /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
151435
- client_session_token?: string | undefined;
151436
- /** Name of the Access Grant. If not provided, the display name will be computed. */
151437
- name: string | null;
151438
- /** Display name of the Access Grant. */
151439
- display_name: string;
151440
- /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
151441
- instant_key_url?: string | undefined;
151442
- /** Date and time at which the Access Grant was created. */
151443
- created_at: string;
151444
- /** Date and time at which the Access Grant starts. */
151445
- starts_at: string;
151446
- /** Date and time at which the Access Grant ends. */
151447
- ends_at: string | null;
151448
- /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
151449
- warnings: ({
151450
- /** Date and time at which Seam created the warning. */
151451
- created_at: string;
151452
- /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
151453
- message: string;
151454
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151455
- warning_code: 'being_deleted';
151456
- } | {
151457
- /** Date and time at which Seam created the warning. */
151458
- created_at: string;
151459
- /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
151460
- message: string;
151461
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151462
- warning_code: 'underprovisioned_access';
151463
- } | {
151464
- /** Date and time at which Seam created the warning. */
151465
- created_at: string;
151466
- /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
151467
- message: string;
151468
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151469
- warning_code: 'overprovisioned_access';
151470
- /** Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget). */
151471
- failed_devices?: {
151472
- /** Device whose access code could not be revoked. */
151473
- device_id: string;
151474
- /** Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`). */
151475
- error_code: string;
151476
- /** Human-readable description of why revocation failed. */
151477
- message: string;
151478
- }[] | undefined;
151479
151902
  } | {
151480
151903
  /** Date and time at which Seam created the warning. */
151481
151904
  created_at: string;
151482
151905
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
151483
151906
  message: string;
151484
151907
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151485
- warning_code: 'updating_access_times';
151486
- /** IDs of the access methods being updated. */
151487
- access_method_ids: string[];
151488
- } | {
151489
- /** Date and time at which Seam created the warning. */
151490
- created_at: string;
151491
- /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
151492
- message: string;
151493
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151494
- warning_code: 'requested_code_unavailable';
151495
- /** ID of the device where the requested code was unavailable. */
151496
- device_id: string;
151497
- /** The originally requested PIN code that was unavailable. */
151498
- original_code: string;
151499
- /** The new PIN code that was assigned instead. */
151500
- new_code: string;
151501
- } | {
151502
- /** Date and time at which Seam created the warning. */
151503
- created_at: string;
151504
- /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
151505
- message: string;
151506
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151507
- warning_code: 'device_does_not_support_access_codes';
151508
- /** ID of the device that does not support access codes. */
151908
+ warning_code: 'device_time_constraints_violated';
151909
+ /** ID of the device whose time constraints the access grant violates. */
151910
+ device_id: string;
151911
+ /** Specific reason why the grant's times are not programmable on the device. */
151912
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
151913
+ })[];
151914
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
151915
+ errors: {
151916
+ /** Date and time at which Seam created the error. */
151917
+ created_at: string;
151918
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
151919
+ message: string;
151920
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
151921
+ error_code: 'cannot_create_requested_access_methods';
151922
+ }[];
151923
+ /** ID of the customization profile associated with the Access Grant. */
151924
+ customization_profile_id?: string | undefined;
151925
+ /** List of pending mutations for the access grant. This shows updates that are in progress. */
151926
+ pending_mutations: ({
151927
+ /** Date and time at which the mutation was created. */
151928
+ created_at: string;
151929
+ /** Detailed description of the mutation. */
151930
+ message: string;
151931
+ /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */
151932
+ mutation_code: 'updating_spaces';
151933
+ /** Previous location configuration. */
151934
+ from: {
151935
+ /** Previous device IDs where access codes existed. */
151936
+ device_ids: string[];
151937
+ };
151938
+ /** New location configuration. */
151939
+ to: {
151940
+ /** New device IDs where access codes should be created. */
151941
+ device_ids: string[];
151942
+ /** Common code key to ensure PIN code reuse across devices. */
151943
+ common_code_key?: (string | null) | undefined;
151944
+ };
151945
+ } | {
151946
+ /** Date and time at which the mutation was created. */
151947
+ created_at: string;
151948
+ /** Detailed description of the mutation. */
151949
+ message: string;
151950
+ /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */
151951
+ mutation_code: 'updating_access_times';
151952
+ /** IDs of the access methods being updated. */
151953
+ access_method_ids: string[];
151954
+ /** Previous access time configuration. */
151955
+ from: {
151956
+ /** Previous start time for access. */
151957
+ starts_at: string | null;
151958
+ /** Previous end time for access. */
151959
+ ends_at: string | null;
151960
+ };
151961
+ /** New access time configuration. */
151962
+ to: {
151963
+ /** New start time for access. */
151964
+ starts_at: string | null;
151965
+ /** New end time for access. */
151966
+ ends_at: string | null;
151967
+ };
151968
+ })[];
151969
+ }[];
151970
+ /** Information about the current page of results. */
151971
+ pagination: {
151972
+ /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
151973
+ next_page_cursor: string | null;
151974
+ /** Indicates whether there is another page of results after this one. */
151975
+ has_next_page: boolean;
151976
+ /** URL to get the next page of results. */
151977
+ next_page_url: string | null;
151978
+ };
151979
+ };
151980
+ maxDuration: undefined;
151981
+ };
151982
+ '/access_grants/request_access_methods': {
151983
+ route: '/access_grants/request_access_methods';
151984
+ method: 'POST';
151985
+ queryParams: {};
151986
+ jsonBody: {};
151987
+ commonParams: {
151988
+ /** ID of the Access Grant to add access methods to. */
151989
+ access_grant_id: string;
151990
+ /** Array of requested access methods to add to the access grant. */
151991
+ requested_access_methods: {
151992
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
151993
+ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
151994
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
151995
+ code?: string | undefined;
151996
+ /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
151997
+ instant_key_max_use_count?: number | undefined;
151998
+ }[];
151999
+ };
152000
+ formData: {};
152001
+ jsonResponse: {
152002
+ /** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
152003
+ access_grant: {
152004
+ /** ID of the Seam workspace associated with the Access Grant. */
152005
+ workspace_id: string;
152006
+ /** ID of the Access Grant. */
152007
+ access_grant_id: string;
152008
+ /** Unique key for the access grant within the workspace. */
152009
+ access_grant_key?: string | undefined;
152010
+ /** Reservation key for the access grant. */
152011
+ reservation_key?: string | undefined;
152012
+ /** ID of user identity to which the Access Grant gives access. */
152013
+ user_identity_id: string;
152014
+ /**
152015
+ * @deprecated Use `space_ids`.*/
152016
+ location_ids: string[];
152017
+ /** IDs of the spaces to which the Access Grant gives access. */
152018
+ space_ids: string[];
152019
+ /** Access methods that the user requested for the Access Grant. */
152020
+ requested_access_methods: {
152021
+ /** Display name of the access method. */
152022
+ display_name: string;
152023
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
152024
+ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
152025
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
152026
+ code?: string | undefined;
152027
+ /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
152028
+ instant_key_max_use_count?: number | undefined;
152029
+ /** Date and time at which the requested access method was added to the Access Grant. */
152030
+ created_at: string;
152031
+ /** IDs of the access methods created for the requested access method. */
152032
+ created_access_method_ids: string[];
152033
+ }[];
152034
+ /** IDs of the access methods created for the Access Grant. */
152035
+ access_method_ids: string[];
152036
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
152037
+ client_session_token?: string | undefined;
152038
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
152039
+ name: string | null;
152040
+ /** Display name of the Access Grant. */
152041
+ display_name: string;
152042
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
152043
+ instant_key_url?: string | undefined;
152044
+ /** Date and time at which the Access Grant was created. */
152045
+ created_at: string;
152046
+ /** Date and time at which the Access Grant starts. */
152047
+ starts_at: string;
152048
+ /** Date and time at which the Access Grant ends. */
152049
+ ends_at: string | null;
152050
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
152051
+ warnings: ({
152052
+ /** Date and time at which Seam created the warning. */
152053
+ created_at: string;
152054
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152055
+ message: string;
152056
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152057
+ warning_code: 'being_deleted';
152058
+ } | {
152059
+ /** Date and time at which Seam created the warning. */
152060
+ created_at: string;
152061
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152062
+ message: string;
152063
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152064
+ warning_code: 'underprovisioned_access';
152065
+ } | {
152066
+ /** Date and time at which Seam created the warning. */
152067
+ created_at: string;
152068
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152069
+ message: string;
152070
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152071
+ warning_code: 'overprovisioned_access';
152072
+ /** Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget). */
152073
+ failed_devices?: {
152074
+ /** Device whose access code could not be revoked. */
152075
+ device_id: string;
152076
+ /** Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`). */
152077
+ error_code: string;
152078
+ /** Human-readable description of why revocation failed. */
152079
+ message: string;
152080
+ }[] | undefined;
152081
+ } | {
152082
+ /** Date and time at which Seam created the warning. */
152083
+ created_at: string;
152084
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152085
+ message: string;
152086
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152087
+ warning_code: 'updating_access_times';
152088
+ /** IDs of the access methods being updated. */
152089
+ access_method_ids: string[];
152090
+ } | {
152091
+ /** Date and time at which Seam created the warning. */
152092
+ created_at: string;
152093
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152094
+ message: string;
152095
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152096
+ warning_code: 'requested_code_unavailable';
152097
+ /** ID of the device where the requested code was unavailable. */
152098
+ device_id: string;
152099
+ /** The originally requested PIN code that was unavailable. */
152100
+ original_code: string;
152101
+ /** The new PIN code that was assigned instead. */
152102
+ new_code: string;
152103
+ } | {
152104
+ /** Date and time at which Seam created the warning. */
152105
+ created_at: string;
152106
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152107
+ message: string;
152108
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152109
+ warning_code: 'device_does_not_support_access_codes';
152110
+ /** ID of the device that does not support access codes. */
152111
+ device_id: string;
152112
+ } | {
152113
+ /** Date and time at which Seam created the warning. */
152114
+ created_at: string;
152115
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152116
+ message: string;
152117
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152118
+ warning_code: 'device_time_constraints_violated';
152119
+ /** ID of the device whose time constraints the access grant violates. */
151509
152120
  device_id: string;
152121
+ /** Specific reason why the grant's times are not programmable on the device. */
152122
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
151510
152123
  })[];
151511
152124
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
151512
152125
  errors: {
@@ -151680,6 +152293,17 @@ type Routes = {
151680
152293
  warning_code: 'device_does_not_support_access_codes';
151681
152294
  /** ID of the device that does not support access codes. */
151682
152295
  device_id: string;
152296
+ } | {
152297
+ /** Date and time at which Seam created the warning. */
152298
+ created_at: string;
152299
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152300
+ message: string;
152301
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152302
+ warning_code: 'device_time_constraints_violated';
152303
+ /** ID of the device whose time constraints the access grant violates. */
152304
+ device_id: string;
152305
+ /** Specific reason why the grant's times are not programmable on the device. */
152306
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
151683
152307
  })[];
151684
152308
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
151685
152309
  errors: {
@@ -151862,6 +152486,17 @@ type Routes = {
151862
152486
  warning_code: 'device_does_not_support_access_codes';
151863
152487
  /** ID of the device that does not support access codes. */
151864
152488
  device_id: string;
152489
+ } | {
152490
+ /** Date and time at which Seam created the warning. */
152491
+ created_at: string;
152492
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
152493
+ message: string;
152494
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
152495
+ warning_code: 'device_time_constraints_violated';
152496
+ /** ID of the device whose time constraints the access grant violates. */
152497
+ device_id: string;
152498
+ /** Specific reason why the grant's times are not programmable on the device. */
152499
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
151865
152500
  })[];
151866
152501
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
151867
152502
  errors: {
@@ -155065,6 +155700,17 @@ type Routes = {
155065
155700
  warning_code: 'device_does_not_support_access_codes';
155066
155701
  /** ID of the device that does not support access codes. */
155067
155702
  device_id: string;
155703
+ } | {
155704
+ /** Date and time at which Seam created the warning. */
155705
+ created_at: string;
155706
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
155707
+ message: string;
155708
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
155709
+ warning_code: 'device_time_constraints_violated';
155710
+ /** ID of the device whose time constraints the access grant violates. */
155711
+ device_id: string;
155712
+ /** Specific reason why the grant's times are not programmable on the device. */
155713
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
155068
155714
  })[];
155069
155715
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
155070
155716
  errors: {
@@ -199475,6 +200121,17 @@ type Routes = {
199475
200121
  warning_code: 'device_does_not_support_access_codes';
199476
200122
  /** ID of the device that does not support access codes. */
199477
200123
  device_id: string;
200124
+ } | {
200125
+ /** Date and time at which Seam created the warning. */
200126
+ created_at: string;
200127
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
200128
+ message: string;
200129
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
200130
+ warning_code: 'device_time_constraints_violated';
200131
+ /** ID of the device whose time constraints the access grant violates. */
200132
+ device_id: string;
200133
+ /** Specific reason why the grant's times are not programmable on the device. */
200134
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
199478
200135
  })[];
199479
200136
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
199480
200137
  errors: {
@@ -205115,6 +205772,17 @@ type Routes = {
205115
205772
  warning_code: 'device_does_not_support_access_codes';
205116
205773
  /** ID of the device that does not support access codes. */
205117
205774
  device_id: string;
205775
+ } | {
205776
+ /** Date and time at which Seam created the warning. */
205777
+ created_at: string;
205778
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
205779
+ message: string;
205780
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
205781
+ warning_code: 'device_time_constraints_violated';
205782
+ /** ID of the device whose time constraints the access grant violates. */
205783
+ device_id: string;
205784
+ /** Specific reason why the grant's times are not programmable on the device. */
205785
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
205118
205786
  })[];
205119
205787
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
205120
205788
  errors: {
@@ -205568,6 +206236,17 @@ type Routes = {
205568
206236
  warning_code: 'device_does_not_support_access_codes';
205569
206237
  /** ID of the device that does not support access codes. */
205570
206238
  device_id: string;
206239
+ } | {
206240
+ /** Date and time at which Seam created the warning. */
206241
+ created_at: string;
206242
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
206243
+ message: string;
206244
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
206245
+ warning_code: 'device_time_constraints_violated';
206246
+ /** ID of the device whose time constraints the access grant violates. */
206247
+ device_id: string;
206248
+ /** Specific reason why the grant's times are not programmable on the device. */
206249
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
205571
206250
  })[];
205572
206251
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
205573
206252
  errors: {
@@ -206352,6 +207031,21 @@ type Routes = {
206352
207031
  jsonResponse: {};
206353
207032
  maxDuration: undefined;
206354
207033
  };
207034
+ '/spaces/add_connected_account': {
207035
+ route: '/spaces/add_connected_account';
207036
+ method: 'POST' | 'PUT';
207037
+ queryParams: {};
207038
+ jsonBody: {
207039
+ /** ID of the space to which you want to add the connected account. */
207040
+ space_id: string;
207041
+ /** ID of the connected account that you want to add to the space. */
207042
+ connected_account_id: string;
207043
+ };
207044
+ commonParams: {};
207045
+ formData: {};
207046
+ jsonResponse: {};
207047
+ maxDuration: undefined;
207048
+ };
206355
207049
  '/spaces/add_devices': {
206356
207050
  route: '/spaces/add_devices';
206357
207051
  method: 'POST' | 'PUT';
@@ -208452,6 +209146,21 @@ type Routes = {
208452
209146
  jsonResponse: {};
208453
209147
  maxDuration: undefined;
208454
209148
  };
209149
+ '/spaces/remove_connected_account': {
209150
+ route: '/spaces/remove_connected_account';
209151
+ method: 'POST' | 'DELETE';
209152
+ queryParams: {};
209153
+ jsonBody: {};
209154
+ commonParams: {
209155
+ /** ID of the space from which you want to remove the connected account. */
209156
+ space_id: string;
209157
+ /** ID of the connected account that you want to remove from the space. */
209158
+ connected_account_id: string;
209159
+ };
209160
+ formData: {};
209161
+ jsonResponse: {};
209162
+ maxDuration: undefined;
209163
+ };
208455
209164
  '/spaces/remove_devices': {
208456
209165
  route: '/spaces/remove_devices';
208457
209166
  method: 'POST' | 'DELETE';
@@ -233981,6 +234690,17 @@ type Routes = {
233981
234690
  warning_code: 'device_does_not_support_access_codes';
233982
234691
  /** ID of the device that does not support access codes. */
233983
234692
  device_id: string;
234693
+ } | {
234694
+ /** Date and time at which Seam created the warning. */
234695
+ created_at: string;
234696
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
234697
+ message: string;
234698
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
234699
+ warning_code: 'device_time_constraints_violated';
234700
+ /** ID of the device whose time constraints the access grant violates. */
234701
+ device_id: string;
234702
+ /** Specific reason why the grant's times are not programmable on the device. */
234703
+ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
233984
234704
  })[];
233985
234705
  /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
233986
234706
  errors: {