@seamapi/types 1.918.0 → 1.920.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.
Files changed (37) hide show
  1. package/dist/connect.cjs +592 -184
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +210 -4
  4. package/dist/index.cjs +592 -184
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.js +78 -44
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  8. package/lib/seam/connect/models/acs/acs-access-group.js +7 -4
  9. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-encoder.js +7 -3
  11. package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-system.js +58 -31
  13. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  14. package/lib/seam/connect/models/acs/acs-users/acs-user.js +42 -24
  15. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  16. package/lib/seam/connect/models/connected-accounts/connected-account.js +29 -19
  17. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  18. package/lib/seam/connect/models/devices/device.js +51 -27
  19. package/lib/seam/connect/models/devices/device.js.map +1 -1
  20. package/lib/seam/connect/models/events/access-codes.d.ts +118 -0
  21. package/lib/seam/connect/models/events/access-codes.js +34 -0
  22. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  23. package/lib/seam/connect/models/events/seam-event.d.ts +59 -1
  24. package/lib/seam/connect/openapi.js +230 -3
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +152 -4
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +136 -114
  29. package/src/lib/seam/connect/models/acs/acs-access-group.ts +10 -9
  30. package/src/lib/seam/connect/models/acs/acs-encoder.ts +7 -5
  31. package/src/lib/seam/connect/models/acs/acs-system.ts +73 -56
  32. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +48 -40
  33. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +78 -73
  34. package/src/lib/seam/connect/models/devices/device.ts +70 -46
  35. package/src/lib/seam/connect/models/events/access-codes.ts +48 -0
  36. package/src/lib/seam/connect/openapi.ts +239 -3
  37. package/src/lib/seam/connect/route-types.ts +212 -0
@@ -54623,6 +54623,58 @@ export type Routes = {
54623
54623
  /** Human-readable description of the change and its source. */
54624
54624
  description: string
54625
54625
  }
54626
+ | {
54627
+ /** ID of the event. */
54628
+ event_id: string
54629
+ /** ID of the workspace associated with the event. */
54630
+ workspace_id: string
54631
+ /** Date and time at which the event was created. */
54632
+ created_at: string
54633
+ /** Date and time at which the event occurred. */
54634
+ occurred_at: string
54635
+ /** ID of the affected access code. */
54636
+ access_code_id: string
54637
+ /** ID of the device associated with the affected access code. */
54638
+ device_id: string
54639
+ /** ID of the connected account associated with the affected access code. */
54640
+ connected_account_id: string
54641
+ /** Custom metadata of the device, present when device_id is provided. */
54642
+ device_custom_metadata?:
54643
+ | {
54644
+ [x: string]: string | boolean
54645
+ }
54646
+ | undefined
54647
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
54648
+ connected_account_custom_metadata?:
54649
+ | {
54650
+ [x: string]: string | boolean
54651
+ }
54652
+ | undefined
54653
+ event_type: 'access_code.mutations_requested'
54654
+ /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */
54655
+ requested_mutations: {
54656
+ /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */
54657
+ mutation_code:
54658
+ | 'updating_name'
54659
+ | 'updating_code'
54660
+ | 'updating_time_frame'
54661
+ | 'deleting'
54662
+ | 'creating'
54663
+ | 'deferring_creation'
54664
+ /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
54665
+ from?:
54666
+ | {
54667
+ [x: string]: unknown
54668
+ }
54669
+ | undefined
54670
+ /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
54671
+ to?:
54672
+ | {
54673
+ [x: string]: unknown
54674
+ }
54675
+ | undefined
54676
+ }[]
54677
+ }
54626
54678
  | {
54627
54679
  /** ID of the event. */
54628
54680
  event_id: string
@@ -57772,6 +57824,7 @@ export type Routes = {
57772
57824
  | 'access_code.name_changed'
57773
57825
  | 'access_code.code_changed'
57774
57826
  | 'access_code.time_frame_changed'
57827
+ | 'access_code.mutations_requested'
57775
57828
  | 'access_code.scheduled_on_device'
57776
57829
  | 'access_code.set_on_device'
57777
57830
  | 'access_code.removed_from_device'
@@ -57883,6 +57936,7 @@ export type Routes = {
57883
57936
  | 'access_code.name_changed'
57884
57937
  | 'access_code.code_changed'
57885
57938
  | 'access_code.time_frame_changed'
57939
+ | 'access_code.mutations_requested'
57886
57940
  | 'access_code.scheduled_on_device'
57887
57941
  | 'access_code.set_on_device'
57888
57942
  | 'access_code.removed_from_device'
@@ -58220,6 +58274,58 @@ export type Routes = {
58220
58274
  /** Human-readable description of the change and its source. */
58221
58275
  description: string
58222
58276
  }
58277
+ | {
58278
+ /** ID of the event. */
58279
+ event_id: string
58280
+ /** ID of the workspace associated with the event. */
58281
+ workspace_id: string
58282
+ /** Date and time at which the event was created. */
58283
+ created_at: string
58284
+ /** Date and time at which the event occurred. */
58285
+ occurred_at: string
58286
+ /** ID of the affected access code. */
58287
+ access_code_id: string
58288
+ /** ID of the device associated with the affected access code. */
58289
+ device_id: string
58290
+ /** ID of the connected account associated with the affected access code. */
58291
+ connected_account_id: string
58292
+ /** Custom metadata of the device, present when device_id is provided. */
58293
+ device_custom_metadata?:
58294
+ | {
58295
+ [x: string]: string | boolean
58296
+ }
58297
+ | undefined
58298
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
58299
+ connected_account_custom_metadata?:
58300
+ | {
58301
+ [x: string]: string | boolean
58302
+ }
58303
+ | undefined
58304
+ event_type: 'access_code.mutations_requested'
58305
+ /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */
58306
+ requested_mutations: {
58307
+ /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */
58308
+ mutation_code:
58309
+ | 'updating_name'
58310
+ | 'updating_code'
58311
+ | 'updating_time_frame'
58312
+ | 'deleting'
58313
+ | 'creating'
58314
+ | 'deferring_creation'
58315
+ /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
58316
+ from?:
58317
+ | {
58318
+ [x: string]: unknown
58319
+ }
58320
+ | undefined
58321
+ /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
58322
+ to?:
58323
+ | {
58324
+ [x: string]: unknown
58325
+ }
58326
+ | undefined
58327
+ }[]
58328
+ }
58223
58329
  | {
58224
58330
  /** ID of the event. */
58225
58331
  event_id: string
@@ -92059,6 +92165,7 @@ export type Routes = {
92059
92165
  | 'access_code.name_changed'
92060
92166
  | 'access_code.code_changed'
92061
92167
  | 'access_code.time_frame_changed'
92168
+ | 'access_code.mutations_requested'
92062
92169
  | 'access_code.scheduled_on_device'
92063
92170
  | 'access_code.set_on_device'
92064
92171
  | 'access_code.removed_from_device'
@@ -92170,6 +92277,7 @@ export type Routes = {
92170
92277
  | 'access_code.name_changed'
92171
92278
  | 'access_code.code_changed'
92172
92279
  | 'access_code.time_frame_changed'
92280
+ | 'access_code.mutations_requested'
92173
92281
  | 'access_code.scheduled_on_device'
92174
92282
  | 'access_code.set_on_device'
92175
92283
  | 'access_code.removed_from_device'
@@ -92477,6 +92585,58 @@ export type Routes = {
92477
92585
  /** Human-readable description of the change and its source. */
92478
92586
  description: string
92479
92587
  }
92588
+ | {
92589
+ /** ID of the event. */
92590
+ event_id: string
92591
+ /** ID of the workspace associated with the event. */
92592
+ workspace_id: string
92593
+ /** Date and time at which the event was created. */
92594
+ created_at: string
92595
+ /** Date and time at which the event occurred. */
92596
+ occurred_at: string
92597
+ /** ID of the affected access code. */
92598
+ access_code_id: string
92599
+ /** ID of the device associated with the affected access code. */
92600
+ device_id: string
92601
+ /** ID of the connected account associated with the affected access code. */
92602
+ connected_account_id: string
92603
+ /** Custom metadata of the device, present when device_id is provided. */
92604
+ device_custom_metadata?:
92605
+ | {
92606
+ [x: string]: string | boolean
92607
+ }
92608
+ | undefined
92609
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
92610
+ connected_account_custom_metadata?:
92611
+ | {
92612
+ [x: string]: string | boolean
92613
+ }
92614
+ | undefined
92615
+ event_type: 'access_code.mutations_requested'
92616
+ /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */
92617
+ requested_mutations: {
92618
+ /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */
92619
+ mutation_code:
92620
+ | 'updating_name'
92621
+ | 'updating_code'
92622
+ | 'updating_time_frame'
92623
+ | 'deleting'
92624
+ | 'creating'
92625
+ | 'deferring_creation'
92626
+ /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
92627
+ from?:
92628
+ | {
92629
+ [x: string]: unknown
92630
+ }
92631
+ | undefined
92632
+ /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
92633
+ to?:
92634
+ | {
92635
+ [x: string]: unknown
92636
+ }
92637
+ | undefined
92638
+ }[]
92639
+ }
92480
92640
  | {
92481
92641
  /** ID of the event. */
92482
92642
  event_id: string
@@ -136254,6 +136414,58 @@ export type Routes = {
136254
136414
  /** Human-readable description of the change and its source. */
136255
136415
  description: string
136256
136416
  }
136417
+ | {
136418
+ /** ID of the event. */
136419
+ event_id: string
136420
+ /** ID of the workspace associated with the event. */
136421
+ workspace_id: string
136422
+ /** Date and time at which the event was created. */
136423
+ created_at: string
136424
+ /** Date and time at which the event occurred. */
136425
+ occurred_at: string
136426
+ /** ID of the affected access code. */
136427
+ access_code_id: string
136428
+ /** ID of the device associated with the affected access code. */
136429
+ device_id: string
136430
+ /** ID of the connected account associated with the affected access code. */
136431
+ connected_account_id: string
136432
+ /** Custom metadata of the device, present when device_id is provided. */
136433
+ device_custom_metadata?:
136434
+ | {
136435
+ [x: string]: string | boolean
136436
+ }
136437
+ | undefined
136438
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
136439
+ connected_account_custom_metadata?:
136440
+ | {
136441
+ [x: string]: string | boolean
136442
+ }
136443
+ | undefined
136444
+ event_type: 'access_code.mutations_requested'
136445
+ /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */
136446
+ requested_mutations: {
136447
+ /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */
136448
+ mutation_code:
136449
+ | 'updating_name'
136450
+ | 'updating_code'
136451
+ | 'updating_time_frame'
136452
+ | 'deleting'
136453
+ | 'creating'
136454
+ | 'deferring_creation'
136455
+ /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
136456
+ from?:
136457
+ | {
136458
+ [x: string]: unknown
136459
+ }
136460
+ | undefined
136461
+ /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */
136462
+ to?:
136463
+ | {
136464
+ [x: string]: unknown
136465
+ }
136466
+ | undefined
136467
+ }[]
136468
+ }
136257
136469
  | {
136258
136470
  /** ID of the event. */
136259
136471
  event_id: string