@seamapi/types 1.919.0 → 1.921.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.
@@ -43,7 +43,7 @@ export type Routes = {
43
43
  /** Indicates whether the [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code. */
44
44
  is_one_time_use?: boolean | undefined
45
45
  /** Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`. */
46
- max_time_rounding?: '1hour' | '1day' | '1h' | '1d'
46
+ max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined
47
47
  }
48
48
  commonParams: {}
49
49
  formData: {}
@@ -11161,7 +11161,9 @@ export type Routes = {
11161
11161
  /** Indicates whether the [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code. */
11162
11162
  is_one_time_use?: boolean | undefined
11163
11163
  /** Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`. */
11164
- max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined
11164
+ max_time_rounding?:
11165
+ | (('1hour' | '1day' | '1h' | '1d') | undefined)
11166
+ | undefined
11165
11167
  /** ID of the access code that you want to update. */
11166
11168
  access_code_id: string
11167
11169
  /** ID of the device containing the access code that you want to update. */
@@ -54623,6 +54625,58 @@ export type Routes = {
54623
54625
  /** Human-readable description of the change and its source. */
54624
54626
  description: string
54625
54627
  }
54628
+ | {
54629
+ /** ID of the event. */
54630
+ event_id: string
54631
+ /** ID of the workspace associated with the event. */
54632
+ workspace_id: string
54633
+ /** Date and time at which the event was created. */
54634
+ created_at: string
54635
+ /** Date and time at which the event occurred. */
54636
+ occurred_at: string
54637
+ /** ID of the affected access code. */
54638
+ access_code_id: string
54639
+ /** ID of the device associated with the affected access code. */
54640
+ device_id: string
54641
+ /** ID of the connected account associated with the affected access code. */
54642
+ connected_account_id: string
54643
+ /** Custom metadata of the device, present when device_id is provided. */
54644
+ device_custom_metadata?:
54645
+ | {
54646
+ [x: string]: string | boolean
54647
+ }
54648
+ | undefined
54649
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
54650
+ connected_account_custom_metadata?:
54651
+ | {
54652
+ [x: string]: string | boolean
54653
+ }
54654
+ | undefined
54655
+ event_type: 'access_code.mutations_requested'
54656
+ /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */
54657
+ requested_mutations: {
54658
+ /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */
54659
+ mutation_code:
54660
+ | 'updating_name'
54661
+ | 'updating_code'
54662
+ | 'updating_time_frame'
54663
+ | 'deleting'
54664
+ | 'creating'
54665
+ | 'deferring_creation'
54666
+ /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
54667
+ from?:
54668
+ | {
54669
+ [x: string]: unknown
54670
+ }
54671
+ | undefined
54672
+ /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
54673
+ to?:
54674
+ | {
54675
+ [x: string]: unknown
54676
+ }
54677
+ | undefined
54678
+ }[]
54679
+ }
54626
54680
  | {
54627
54681
  /** ID of the event. */
54628
54682
  event_id: string
@@ -57772,6 +57826,7 @@ export type Routes = {
57772
57826
  | 'access_code.name_changed'
57773
57827
  | 'access_code.code_changed'
57774
57828
  | 'access_code.time_frame_changed'
57829
+ | 'access_code.mutations_requested'
57775
57830
  | 'access_code.scheduled_on_device'
57776
57831
  | 'access_code.set_on_device'
57777
57832
  | 'access_code.removed_from_device'
@@ -57883,6 +57938,7 @@ export type Routes = {
57883
57938
  | 'access_code.name_changed'
57884
57939
  | 'access_code.code_changed'
57885
57940
  | 'access_code.time_frame_changed'
57941
+ | 'access_code.mutations_requested'
57886
57942
  | 'access_code.scheduled_on_device'
57887
57943
  | 'access_code.set_on_device'
57888
57944
  | 'access_code.removed_from_device'
@@ -58220,6 +58276,58 @@ export type Routes = {
58220
58276
  /** Human-readable description of the change and its source. */
58221
58277
  description: string
58222
58278
  }
58279
+ | {
58280
+ /** ID of the event. */
58281
+ event_id: string
58282
+ /** ID of the workspace associated with the event. */
58283
+ workspace_id: string
58284
+ /** Date and time at which the event was created. */
58285
+ created_at: string
58286
+ /** Date and time at which the event occurred. */
58287
+ occurred_at: string
58288
+ /** ID of the affected access code. */
58289
+ access_code_id: string
58290
+ /** ID of the device associated with the affected access code. */
58291
+ device_id: string
58292
+ /** ID of the connected account associated with the affected access code. */
58293
+ connected_account_id: string
58294
+ /** Custom metadata of the device, present when device_id is provided. */
58295
+ device_custom_metadata?:
58296
+ | {
58297
+ [x: string]: string | boolean
58298
+ }
58299
+ | undefined
58300
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
58301
+ connected_account_custom_metadata?:
58302
+ | {
58303
+ [x: string]: string | boolean
58304
+ }
58305
+ | undefined
58306
+ event_type: 'access_code.mutations_requested'
58307
+ /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */
58308
+ requested_mutations: {
58309
+ /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */
58310
+ mutation_code:
58311
+ | 'updating_name'
58312
+ | 'updating_code'
58313
+ | 'updating_time_frame'
58314
+ | 'deleting'
58315
+ | 'creating'
58316
+ | 'deferring_creation'
58317
+ /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
58318
+ from?:
58319
+ | {
58320
+ [x: string]: unknown
58321
+ }
58322
+ | undefined
58323
+ /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
58324
+ to?:
58325
+ | {
58326
+ [x: string]: unknown
58327
+ }
58328
+ | undefined
58329
+ }[]
58330
+ }
58223
58331
  | {
58224
58332
  /** ID of the event. */
58225
58333
  event_id: string
@@ -92059,6 +92167,7 @@ export type Routes = {
92059
92167
  | 'access_code.name_changed'
92060
92168
  | 'access_code.code_changed'
92061
92169
  | 'access_code.time_frame_changed'
92170
+ | 'access_code.mutations_requested'
92062
92171
  | 'access_code.scheduled_on_device'
92063
92172
  | 'access_code.set_on_device'
92064
92173
  | 'access_code.removed_from_device'
@@ -92170,6 +92279,7 @@ export type Routes = {
92170
92279
  | 'access_code.name_changed'
92171
92280
  | 'access_code.code_changed'
92172
92281
  | 'access_code.time_frame_changed'
92282
+ | 'access_code.mutations_requested'
92173
92283
  | 'access_code.scheduled_on_device'
92174
92284
  | 'access_code.set_on_device'
92175
92285
  | 'access_code.removed_from_device'
@@ -92477,6 +92587,58 @@ export type Routes = {
92477
92587
  /** Human-readable description of the change and its source. */
92478
92588
  description: string
92479
92589
  }
92590
+ | {
92591
+ /** ID of the event. */
92592
+ event_id: string
92593
+ /** ID of the workspace associated with the event. */
92594
+ workspace_id: string
92595
+ /** Date and time at which the event was created. */
92596
+ created_at: string
92597
+ /** Date and time at which the event occurred. */
92598
+ occurred_at: string
92599
+ /** ID of the affected access code. */
92600
+ access_code_id: string
92601
+ /** ID of the device associated with the affected access code. */
92602
+ device_id: string
92603
+ /** ID of the connected account associated with the affected access code. */
92604
+ connected_account_id: string
92605
+ /** Custom metadata of the device, present when device_id is provided. */
92606
+ device_custom_metadata?:
92607
+ | {
92608
+ [x: string]: string | boolean
92609
+ }
92610
+ | undefined
92611
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
92612
+ connected_account_custom_metadata?:
92613
+ | {
92614
+ [x: string]: string | boolean
92615
+ }
92616
+ | undefined
92617
+ event_type: 'access_code.mutations_requested'
92618
+ /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */
92619
+ requested_mutations: {
92620
+ /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */
92621
+ mutation_code:
92622
+ | 'updating_name'
92623
+ | 'updating_code'
92624
+ | 'updating_time_frame'
92625
+ | 'deleting'
92626
+ | 'creating'
92627
+ | 'deferring_creation'
92628
+ /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
92629
+ from?:
92630
+ | {
92631
+ [x: string]: unknown
92632
+ }
92633
+ | undefined
92634
+ /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
92635
+ to?:
92636
+ | {
92637
+ [x: string]: unknown
92638
+ }
92639
+ | undefined
92640
+ }[]
92641
+ }
92480
92642
  | {
92481
92643
  /** ID of the event. */
92482
92644
  event_id: string
@@ -136254,6 +136416,58 @@ export type Routes = {
136254
136416
  /** Human-readable description of the change and its source. */
136255
136417
  description: string
136256
136418
  }
136419
+ | {
136420
+ /** ID of the event. */
136421
+ event_id: string
136422
+ /** ID of the workspace associated with the event. */
136423
+ workspace_id: string
136424
+ /** Date and time at which the event was created. */
136425
+ created_at: string
136426
+ /** Date and time at which the event occurred. */
136427
+ occurred_at: string
136428
+ /** ID of the affected access code. */
136429
+ access_code_id: string
136430
+ /** ID of the device associated with the affected access code. */
136431
+ device_id: string
136432
+ /** ID of the connected account associated with the affected access code. */
136433
+ connected_account_id: string
136434
+ /** Custom metadata of the device, present when device_id is provided. */
136435
+ device_custom_metadata?:
136436
+ | {
136437
+ [x: string]: string | boolean
136438
+ }
136439
+ | undefined
136440
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
136441
+ connected_account_custom_metadata?:
136442
+ | {
136443
+ [x: string]: string | boolean
136444
+ }
136445
+ | undefined
136446
+ event_type: 'access_code.mutations_requested'
136447
+ /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */
136448
+ requested_mutations: {
136449
+ /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */
136450
+ mutation_code:
136451
+ | 'updating_name'
136452
+ | 'updating_code'
136453
+ | 'updating_time_frame'
136454
+ | 'deleting'
136455
+ | 'creating'
136456
+ | 'deferring_creation'
136457
+ /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
136458
+ from?:
136459
+ | {
136460
+ [x: string]: unknown
136461
+ }
136462
+ | undefined
136463
+ /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
136464
+ to?:
136465
+ | {
136466
+ [x: string]: unknown
136467
+ }
136468
+ | undefined
136469
+ }[]
136470
+ }
136257
136471
  | {
136258
136472
  /** ID of the event. */
136259
136473
  event_id: string