@seamapi/types 1.326.0 → 1.328.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 (126) hide show
  1. package/dist/connect.cjs +820 -370
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +276 -16
  4. package/lib/seam/connect/models/access-codes/managed-access-code.js +5 -1
  5. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  6. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +5 -1
  7. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
  8. package/lib/seam/connect/models/acs/acs-access-group.js +7 -3
  9. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-credential-pool.js +5 -1
  11. package/lib/seam/connect/models/acs/acs-credential-pool.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js +12 -5
  13. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js.map +1 -1
  14. package/lib/seam/connect/models/acs/acs-entrance.d.ts +0 -5
  15. package/lib/seam/connect/models/acs/acs-entrance.js +7 -4
  16. package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
  17. package/lib/seam/connect/models/acs/acs-system.js +6 -2
  18. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  19. package/lib/seam/connect/models/acs/acs-user.js +7 -4
  20. package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
  21. package/lib/seam/connect/models/acs/metadata/dormakaba-community.d.ts +0 -3
  22. package/lib/seam/connect/models/acs/metadata/dormakaba-community.js +0 -1
  23. package/lib/seam/connect/models/acs/metadata/dormakaba-community.js.map +1 -1
  24. package/lib/seam/connect/models/action-attempts/action-attempt.js +5 -1
  25. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  26. package/lib/seam/connect/models/client-sessions/client-session.js +5 -1
  27. package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
  28. package/lib/seam/connect/models/connect-webviews/connect-webview.js +5 -1
  29. package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
  30. package/lib/seam/connect/models/connected-accounts/connected-account.js +5 -1
  31. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  32. package/lib/seam/connect/models/devices/device-provider.js +5 -1
  33. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  34. package/lib/seam/connect/models/devices/device.js +5 -1
  35. package/lib/seam/connect/models/devices/device.js.map +1 -1
  36. package/lib/seam/connect/models/devices/phone.js +5 -1
  37. package/lib/seam/connect/models/devices/phone.js.map +1 -1
  38. package/lib/seam/connect/models/devices/unmanaged-device.js +5 -1
  39. package/lib/seam/connect/models/devices/unmanaged-device.js.map +1 -1
  40. package/lib/seam/connect/models/events/access-codes.js +119 -68
  41. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  42. package/lib/seam/connect/models/events/acs/access_groups.d.ts +64 -0
  43. package/lib/seam/connect/models/events/acs/access_groups.js +15 -0
  44. package/lib/seam/connect/models/events/acs/access_groups.js.map +1 -0
  45. package/lib/seam/connect/models/events/acs/credentials.js +14 -8
  46. package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
  47. package/lib/seam/connect/models/events/acs/encoders.js +14 -8
  48. package/lib/seam/connect/models/events/acs/encoders.js.map +1 -1
  49. package/lib/seam/connect/models/events/acs/index.d.ts +30 -0
  50. package/lib/seam/connect/models/events/acs/index.js +2 -0
  51. package/lib/seam/connect/models/events/acs/index.js.map +1 -1
  52. package/lib/seam/connect/models/events/acs/systems.js +21 -12
  53. package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
  54. package/lib/seam/connect/models/events/acs/users.js +7 -4
  55. package/lib/seam/connect/models/events/acs/users.js.map +1 -1
  56. package/lib/seam/connect/models/events/action-attempts.js +28 -16
  57. package/lib/seam/connect/models/events/action-attempts.js.map +1 -1
  58. package/lib/seam/connect/models/events/client-sessions.js +7 -4
  59. package/lib/seam/connect/models/events/client-sessions.js.map +1 -1
  60. package/lib/seam/connect/models/events/connect-webviews.js +14 -8
  61. package/lib/seam/connect/models/events/connect-webviews.js.map +1 -1
  62. package/lib/seam/connect/models/events/connected-accounts.js +45 -25
  63. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  64. package/lib/seam/connect/models/events/devices.js +214 -119
  65. package/lib/seam/connect/models/events/devices.js.map +1 -1
  66. package/lib/seam/connect/models/events/enrollment-automations.js +7 -4
  67. package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -1
  68. package/lib/seam/connect/models/events/phones.js +7 -4
  69. package/lib/seam/connect/models/events/phones.js.map +1 -1
  70. package/lib/seam/connect/models/events/seam-event.d.ts +30 -0
  71. package/lib/seam/connect/models/events/seam-event.js +5 -1
  72. package/lib/seam/connect/models/events/seam-event.js.map +1 -1
  73. package/lib/seam/connect/models/noise-sensors/noise-threshold.js +5 -1
  74. package/lib/seam/connect/models/noise-sensors/noise-threshold.js.map +1 -1
  75. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +8 -8
  76. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  77. package/lib/seam/connect/models/user-identities/user-identity.js +7 -4
  78. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  79. package/lib/seam/connect/models/webhooks/webhook.js +5 -1
  80. package/lib/seam/connect/models/webhooks/webhook.js.map +1 -1
  81. package/lib/seam/connect/models/workspaces/workspace.js +5 -1
  82. package/lib/seam/connect/models/workspaces/workspace.js.map +1 -1
  83. package/lib/seam/connect/openapi.d.ts +165 -4
  84. package/lib/seam/connect/openapi.js +154 -6
  85. package/lib/seam/connect/openapi.js.map +1 -1
  86. package/lib/seam/connect/route-types.d.ts +81 -7
  87. package/package.json +1 -1
  88. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +5 -1
  89. package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +5 -1
  90. package/src/lib/seam/connect/models/acs/acs-access-group.ts +7 -3
  91. package/src/lib/seam/connect/models/acs/acs-credential-pool.ts +5 -1
  92. package/src/lib/seam/connect/models/acs/acs-credential-provisioning-automation.ts +38 -35
  93. package/src/lib/seam/connect/models/acs/acs-entrance.ts +31 -30
  94. package/src/lib/seam/connect/models/acs/acs-system.ts +6 -4
  95. package/src/lib/seam/connect/models/acs/acs-user.ts +10 -9
  96. package/src/lib/seam/connect/models/acs/metadata/dormakaba-community.ts +0 -1
  97. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +5 -1
  98. package/src/lib/seam/connect/models/client-sessions/client-session.ts +5 -1
  99. package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +5 -1
  100. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +5 -1
  101. package/src/lib/seam/connect/models/devices/device-provider.ts +5 -1
  102. package/src/lib/seam/connect/models/devices/device.ts +5 -1
  103. package/src/lib/seam/connect/models/devices/phone.ts +5 -1
  104. package/src/lib/seam/connect/models/devices/unmanaged-device.ts +5 -1
  105. package/src/lib/seam/connect/models/events/access-codes.ts +139 -117
  106. package/src/lib/seam/connect/models/events/acs/access_groups.ts +22 -0
  107. package/src/lib/seam/connect/models/events/acs/credentials.ts +16 -14
  108. package/src/lib/seam/connect/models/events/acs/encoders.ts +16 -14
  109. package/src/lib/seam/connect/models/events/acs/index.ts +2 -0
  110. package/src/lib/seam/connect/models/events/acs/systems.ts +24 -21
  111. package/src/lib/seam/connect/models/events/acs/users.ts +8 -7
  112. package/src/lib/seam/connect/models/events/action-attempts.ts +32 -24
  113. package/src/lib/seam/connect/models/events/client-sessions.ts +8 -7
  114. package/src/lib/seam/connect/models/events/connect-webviews.ts +16 -13
  115. package/src/lib/seam/connect/models/events/connected-accounts.ts +55 -44
  116. package/src/lib/seam/connect/models/events/devices.ts +339 -301
  117. package/src/lib/seam/connect/models/events/enrollment-automations.ts +8 -6
  118. package/src/lib/seam/connect/models/events/phones.ts +8 -5
  119. package/src/lib/seam/connect/models/events/seam-event.ts +5 -1
  120. package/src/lib/seam/connect/models/noise-sensors/noise-threshold.ts +5 -1
  121. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +60 -62
  122. package/src/lib/seam/connect/models/user-identities/user-identity.ts +35 -34
  123. package/src/lib/seam/connect/models/webhooks/webhook.ts +5 -1
  124. package/src/lib/seam/connect/models/workspaces/workspace.ts +5 -1
  125. package/src/lib/seam/connect/openapi.ts +157 -6
  126. package/src/lib/seam/connect/route-types.ts +83 -5
@@ -25,6 +25,7 @@ export interface Routes {
25
25
  commonParams: {};
26
26
  formData: {};
27
27
  jsonResponse: {
28
+ /** */
28
29
  action_attempt: {
29
30
  /** The ID of the action attempt. */
30
31
  action_attempt_id: string;
@@ -817,6 +818,7 @@ export interface Routes {
817
818
  message: string;
818
819
  };
819
820
  };
821
+ /** */
820
822
  access_code: {
821
823
  /** Unique identifier for a group of access codes that share the same code. */
822
824
  common_code_key: string | null;
@@ -1102,6 +1104,7 @@ export interface Routes {
1102
1104
  };
1103
1105
  formData: {};
1104
1106
  jsonResponse: {
1107
+ /** */
1105
1108
  action_attempt: {
1106
1109
  /** The ID of the action attempt. */
1107
1110
  action_attempt_id: string;
@@ -1924,6 +1927,7 @@ export interface Routes {
1924
1927
  };
1925
1928
  formData: {};
1926
1929
  jsonResponse: {
1930
+ /** */
1927
1931
  access_code: {
1928
1932
  /** Unique identifier for a group of access codes that share the same code. */
1929
1933
  common_code_key: string | null;
@@ -2194,6 +2198,7 @@ export interface Routes {
2194
2198
  commonParams: {};
2195
2199
  formData: {};
2196
2200
  jsonResponse: {
2201
+ /** */
2197
2202
  backup_access_code: {
2198
2203
  /** Unique identifier for a group of access codes that share the same code. */
2199
2204
  common_code_key: string | null;
@@ -2316,6 +2321,7 @@ export interface Routes {
2316
2321
  /** Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection. */
2317
2322
  is_offline_access_code: boolean;
2318
2323
  };
2324
+ /** */
2319
2325
  access_code: {
2320
2326
  /** Unique identifier for a group of access codes that share the same code. */
2321
2327
  common_code_key: string | null;
@@ -2452,6 +2458,7 @@ export interface Routes {
2452
2458
  commonParams: {};
2453
2459
  formData: {};
2454
2460
  jsonResponse: {
2461
+ /** */
2455
2462
  access_code: {
2456
2463
  /** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
2457
2464
  type: 'time_bound' | 'ongoing';
@@ -2580,6 +2587,7 @@ export interface Routes {
2580
2587
  };
2581
2588
  formData: {};
2582
2589
  jsonResponse: {
2590
+ /** */
2583
2591
  action_attempt: {
2584
2592
  /** The ID of the action attempt. */
2585
2593
  action_attempt_id: string;
@@ -3386,6 +3394,7 @@ export interface Routes {
3386
3394
  };
3387
3395
  formData: {};
3388
3396
  jsonResponse: {
3397
+ /** */
3389
3398
  access_code: {
3390
3399
  /** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
3391
3400
  type: 'time_bound' | 'ongoing';
@@ -3644,6 +3653,7 @@ export interface Routes {
3644
3653
  commonParams: {};
3645
3654
  formData: {};
3646
3655
  jsonResponse: {
3656
+ /** */
3647
3657
  action_attempt: {
3648
3658
  /** The ID of the action attempt. */
3649
3659
  action_attempt_id: string;
@@ -4612,7 +4622,6 @@ export interface Routes {
4612
4622
  } | undefined;
4613
4623
  dormakaba_community_metadata?: {
4614
4624
  access_point_name: string;
4615
- common_area_number?: number | undefined;
4616
4625
  } | undefined;
4617
4626
  assa_abloy_vostio_metadata?: {
4618
4627
  door_type: 'CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator';
@@ -4875,6 +4884,7 @@ export interface Routes {
4875
4884
  };
4876
4885
  formData: {};
4877
4886
  jsonResponse: {
4887
+ /** */
4878
4888
  acs_credential_provisioning_automation: {
4879
4889
  acs_credential_provisioning_automation_id: string;
4880
4890
  credential_manager_acs_system_id: string;
@@ -5556,7 +5566,6 @@ export interface Routes {
5556
5566
  } | undefined;
5557
5567
  dormakaba_community_metadata?: {
5558
5568
  access_point_name: string;
5559
- common_area_number?: number | undefined;
5560
5569
  } | undefined;
5561
5570
  assa_abloy_vostio_metadata?: {
5562
5571
  door_type: 'CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator';
@@ -6037,6 +6046,7 @@ export interface Routes {
6037
6046
  };
6038
6047
  formData: {};
6039
6048
  jsonResponse: {
6049
+ /** */
6040
6050
  action_attempt: {
6041
6051
  /** The ID of the action attempt. */
6042
6052
  action_attempt_id: string;
@@ -6888,6 +6898,7 @@ export interface Routes {
6888
6898
  };
6889
6899
  formData: {};
6890
6900
  jsonResponse: {
6901
+ /** */
6891
6902
  action_attempt: {
6892
6903
  /** The ID of the action attempt. */
6893
6904
  action_attempt_id: string;
@@ -7811,7 +7822,6 @@ export interface Routes {
7811
7822
  } | undefined;
7812
7823
  dormakaba_community_metadata?: {
7813
7824
  access_point_name: string;
7814
- common_area_number?: number | undefined;
7815
7825
  } | undefined;
7816
7826
  assa_abloy_vostio_metadata?: {
7817
7827
  door_type: 'CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator';
@@ -7890,7 +7900,6 @@ export interface Routes {
7890
7900
  } | undefined;
7891
7901
  dormakaba_community_metadata?: {
7892
7902
  access_point_name: string;
7893
- common_area_number?: number | undefined;
7894
7903
  } | undefined;
7895
7904
  assa_abloy_vostio_metadata?: {
7896
7905
  door_type: 'CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator';
@@ -8809,7 +8818,6 @@ export interface Routes {
8809
8818
  } | undefined;
8810
8819
  dormakaba_community_metadata?: {
8811
8820
  access_point_name: string;
8812
- common_area_number?: number | undefined;
8813
8821
  } | undefined;
8814
8822
  assa_abloy_vostio_metadata?: {
8815
8823
  door_type: 'CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator';
@@ -9122,6 +9130,7 @@ export interface Routes {
9122
9130
  };
9123
9131
  formData: {};
9124
9132
  jsonResponse: {
9133
+ /** */
9125
9134
  action_attempt: {
9126
9135
  /** The ID of the action attempt. */
9127
9136
  action_attempt_id: string;
@@ -10734,6 +10743,7 @@ export interface Routes {
10734
10743
  commonParams: {};
10735
10744
  formData: {};
10736
10745
  jsonResponse: {
10746
+ /** */
10737
10747
  client_session: {
10738
10748
  client_session_id: string;
10739
10749
  workspace_id: string;
@@ -10770,6 +10780,7 @@ export interface Routes {
10770
10780
  };
10771
10781
  formData: {};
10772
10782
  jsonResponse: {
10783
+ /** */
10773
10784
  client_session: {
10774
10785
  client_session_id: string;
10775
10786
  workspace_id: string;
@@ -10798,6 +10809,7 @@ export interface Routes {
10798
10809
  commonParams: {};
10799
10810
  formData: {};
10800
10811
  jsonResponse: {
10812
+ /** */
10801
10813
  client_session: {
10802
10814
  client_session_id: string;
10803
10815
  workspace_id: string;
@@ -10826,6 +10838,7 @@ export interface Routes {
10826
10838
  };
10827
10839
  formData: {};
10828
10840
  jsonResponse: {
10841
+ /** */
10829
10842
  client_session: {
10830
10843
  client_session_id: string;
10831
10844
  workspace_id: string;
@@ -10896,6 +10909,7 @@ export interface Routes {
10896
10909
  commonParams: {};
10897
10910
  formData: {};
10898
10911
  jsonResponse: {
10912
+ /** */
10899
10913
  connect_webview: {
10900
10914
  connect_webview_id: string;
10901
10915
  workspace_id: string;
@@ -10944,6 +10958,7 @@ export interface Routes {
10944
10958
  };
10945
10959
  formData: {};
10946
10960
  jsonResponse: {
10961
+ /** */
10947
10962
  connect_webview: {
10948
10963
  connect_webview_id: string;
10949
10964
  workspace_id: string;
@@ -11036,6 +11051,7 @@ export interface Routes {
11036
11051
  };
11037
11052
  formData: {};
11038
11053
  jsonResponse: {
11054
+ /** */
11039
11055
  connected_account: {
11040
11056
  connected_account_id?: string | undefined;
11041
11057
  created_at?: string | undefined;
@@ -11121,6 +11137,7 @@ export interface Routes {
11121
11137
  commonParams: {};
11122
11138
  formData: {};
11123
11139
  jsonResponse: {
11140
+ /** */
11124
11141
  connected_account: {
11125
11142
  connected_account_id?: string | undefined;
11126
11143
  created_at?: string | undefined;
@@ -11173,6 +11190,7 @@ export interface Routes {
11173
11190
  };
11174
11191
  formData: {};
11175
11192
  jsonResponse: {
11193
+ /** */
11176
11194
  device: {
11177
11195
  /** Unique identifier for the device. */
11178
11196
  device_id: string;
@@ -12447,6 +12465,7 @@ export interface Routes {
12447
12465
  };
12448
12466
  formData: {};
12449
12467
  jsonResponse: {
12468
+ /** */
12450
12469
  device: {
12451
12470
  /** Unique identifier for the device. */
12452
12471
  device_id: string;
@@ -12845,6 +12864,7 @@ export interface Routes {
12845
12864
  };
12846
12865
  formData: {};
12847
12866
  jsonResponse: {
12867
+ /** */
12848
12868
  event?: ({
12849
12869
  /** ID of the event. */
12850
12870
  event_id: string;
@@ -13243,6 +13263,21 @@ export interface Routes {
13243
13263
  /** ID of the [ACS encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
13244
13264
  acs_encoder_id: string;
13245
13265
  event_type: 'acs_encoder.removed';
13266
+ } | {
13267
+ /** ID of the event. */
13268
+ event_id: string;
13269
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
13270
+ workspace_id: string;
13271
+ /** Date and time at which the event was created. */
13272
+ created_at: string;
13273
+ /** Date and time at which the event occurred. */
13274
+ occurred_at: string;
13275
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
13276
+ connected_account_id?: string | undefined;
13277
+ /** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
13278
+ acs_system_id: string;
13279
+ acs_access_group_id: string;
13280
+ event_type: 'acs_access_group.deleted';
13246
13281
  } | {
13247
13282
  /** ID of the event. */
13248
13283
  event_id: string;
@@ -14000,8 +14035,8 @@ export interface Routes {
14000
14035
  acs_system_ids?: string[] | undefined;
14001
14036
  access_code_id?: string | undefined;
14002
14037
  access_code_ids?: string[] | undefined;
14003
- event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point') | undefined;
14004
- event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point'> | undefined;
14038
+ event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_access_group.deleted' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point') | undefined;
14039
+ event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_access_group.deleted' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point'> | undefined;
14005
14040
  connected_account_id?: string | undefined;
14006
14041
  connect_webview_id?: string | undefined;
14007
14042
  limit?: number;
@@ -14406,6 +14441,21 @@ export interface Routes {
14406
14441
  /** ID of the [ACS encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
14407
14442
  acs_encoder_id: string;
14408
14443
  event_type: 'acs_encoder.removed';
14444
+ } | {
14445
+ /** ID of the event. */
14446
+ event_id: string;
14447
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
14448
+ workspace_id: string;
14449
+ /** Date and time at which the event was created. */
14450
+ created_at: string;
14451
+ /** Date and time at which the event occurred. */
14452
+ occurred_at: string;
14453
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
14454
+ connected_account_id?: string | undefined;
14455
+ /** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
14456
+ acs_system_id: string;
14457
+ acs_access_group_id: string;
14458
+ event_type: 'acs_access_group.deleted';
14409
14459
  } | {
14410
14460
  /** ID of the event. */
14411
14461
  event_id: string;
@@ -15158,6 +15208,7 @@ export interface Routes {
15158
15208
  };
15159
15209
  formData: {};
15160
15210
  jsonResponse: {
15211
+ /** */
15161
15212
  lock: {
15162
15213
  /** Unique identifier for the device. */
15163
15214
  device_id: string;
@@ -15739,6 +15790,7 @@ export interface Routes {
15739
15790
  can_simulate_connection?: boolean | undefined;
15740
15791
  can_simulate_disconnection?: boolean | undefined;
15741
15792
  };
15793
+ /** */
15742
15794
  device: {
15743
15795
  /** Unique identifier for the device. */
15744
15796
  device_id: string;
@@ -17532,6 +17584,7 @@ export interface Routes {
17532
17584
  commonParams: {};
17533
17585
  formData: {};
17534
17586
  jsonResponse: {
17587
+ /** */
17535
17588
  action_attempt: {
17536
17589
  /** The ID of the action attempt. */
17537
17590
  action_attempt_id: string;
@@ -18337,6 +18390,7 @@ export interface Routes {
18337
18390
  commonParams: {};
18338
18391
  formData: {};
18339
18392
  jsonResponse: {
18393
+ /** */
18340
18394
  action_attempt: {
18341
18395
  /** The ID of the action attempt. */
18342
18396
  action_attempt_id: string;
@@ -19141,6 +19195,7 @@ export interface Routes {
19141
19195
  };
19142
19196
  formData: {};
19143
19197
  jsonResponse: {
19198
+ /** */
19144
19199
  network: {
19145
19200
  network_id: string;
19146
19201
  workspace_id: string;
@@ -20380,6 +20435,7 @@ export interface Routes {
20380
20435
  commonParams: {};
20381
20436
  formData: {};
20382
20437
  jsonResponse: {
20438
+ /** */
20383
20439
  action_attempt: {
20384
20440
  /** The ID of the action attempt. */
20385
20441
  action_attempt_id: string;
@@ -21172,6 +21228,7 @@ export interface Routes {
21172
21228
  message: string;
21173
21229
  };
21174
21230
  };
21231
+ /** */
21175
21232
  noise_threshold: {
21176
21233
  noise_threshold_id: string;
21177
21234
  device_id: string;
@@ -21195,6 +21252,7 @@ export interface Routes {
21195
21252
  commonParams: {};
21196
21253
  formData: {};
21197
21254
  jsonResponse: {
21255
+ /** */
21198
21256
  action_attempt: {
21199
21257
  /** The ID of the action attempt. */
21200
21258
  action_attempt_id: string;
@@ -21999,6 +22057,7 @@ export interface Routes {
21999
22057
  };
22000
22058
  formData: {};
22001
22059
  jsonResponse: {
22060
+ /** */
22002
22061
  noise_threshold: {
22003
22062
  noise_threshold_id: string;
22004
22063
  device_id: string;
@@ -22049,6 +22108,7 @@ export interface Routes {
22049
22108
  commonParams: {};
22050
22109
  formData: {};
22051
22110
  jsonResponse: {
22111
+ /** */
22052
22112
  action_attempt: {
22053
22113
  /** The ID of the action attempt. */
22054
22114
  action_attempt_id: string;
@@ -23024,6 +23084,7 @@ export interface Routes {
23024
23084
  commonParams: {};
23025
23085
  formData: {};
23026
23086
  jsonResponse: {
23087
+ /** */
23027
23088
  phone: {
23028
23089
  /** Unique identifier for the device. */
23029
23090
  device_id: string;
@@ -23160,6 +23221,7 @@ export interface Routes {
23160
23221
  commonParams: {};
23161
23222
  formData: {};
23162
23223
  jsonResponse: {
23224
+ /** */
23163
23225
  action_attempt: {
23164
23226
  /** The ID of the action attempt. */
23165
23227
  action_attempt_id: string;
@@ -23971,6 +24033,7 @@ export interface Routes {
23971
24033
  commonParams: {};
23972
24034
  formData: {};
23973
24035
  jsonResponse: {
24036
+ /** */
23974
24037
  action_attempt: {
23975
24038
  /** The ID of the action attempt. */
23976
24039
  action_attempt_id: string;
@@ -24823,6 +24886,7 @@ export interface Routes {
24823
24886
  };
24824
24887
  formData: {};
24825
24888
  jsonResponse: {
24889
+ /** */
24826
24890
  thermostat: {
24827
24891
  /** Unique identifier for the device. */
24828
24892
  device_id: string;
@@ -25423,6 +25487,7 @@ export interface Routes {
25423
25487
  commonParams: {};
25424
25488
  formData: {};
25425
25489
  jsonResponse: {
25490
+ /** */
25426
25491
  action_attempt: {
25427
25492
  /** The ID of the action attempt. */
25428
25493
  action_attempt_id: string;
@@ -26238,6 +26303,7 @@ export interface Routes {
26238
26303
  commonParams: {};
26239
26304
  formData: {};
26240
26305
  jsonResponse: {
26306
+ /** */
26241
26307
  action_attempt: {
26242
26308
  /** The ID of the action attempt. */
26243
26309
  action_attempt_id: string;
@@ -28244,6 +28310,7 @@ export interface Routes {
28244
28310
  commonParams: {};
28245
28311
  formData: {};
28246
28312
  jsonResponse: {
28313
+ /** */
28247
28314
  action_attempt: {
28248
28315
  /** The ID of the action attempt. */
28249
28316
  action_attempt_id: string;
@@ -29235,6 +29302,7 @@ export interface Routes {
29235
29302
  commonParams: {};
29236
29303
  formData: {};
29237
29304
  jsonResponse: {
29305
+ /** */
29238
29306
  action_attempt: {
29239
29307
  /** The ID of the action attempt. */
29240
29308
  action_attempt_id: string;
@@ -30069,6 +30137,7 @@ export interface Routes {
30069
30137
  commonParams: {};
30070
30138
  formData: {};
30071
30139
  jsonResponse: {
30140
+ /** */
30072
30141
  action_attempt: {
30073
30142
  /** The ID of the action attempt. */
30074
30143
  action_attempt_id: string;
@@ -32607,6 +32676,7 @@ export interface Routes {
32607
32676
  commonParams: {};
32608
32677
  formData: {};
32609
32678
  jsonResponse: {
32679
+ /** */
32610
32680
  webhook: {
32611
32681
  webhook_id: string;
32612
32682
  url: string;
@@ -32636,6 +32706,7 @@ export interface Routes {
32636
32706
  };
32637
32707
  formData: {};
32638
32708
  jsonResponse: {
32709
+ /** */
32639
32710
  webhook: {
32640
32711
  webhook_id: string;
32641
32712
  url: string;
@@ -32690,6 +32761,7 @@ export interface Routes {
32690
32761
  commonParams: {};
32691
32762
  formData: {};
32692
32763
  jsonResponse: {
32764
+ /** */
32693
32765
  workspace: {
32694
32766
  workspace_id: string;
32695
32767
  name: string;
@@ -32709,6 +32781,7 @@ export interface Routes {
32709
32781
  commonParams: {};
32710
32782
  formData: {};
32711
32783
  jsonResponse: {
32784
+ /** */
32712
32785
  workspace: {
32713
32786
  workspace_id: string;
32714
32787
  name: string;
@@ -32747,6 +32820,7 @@ export interface Routes {
32747
32820
  commonParams: {};
32748
32821
  formData: {};
32749
32822
  jsonResponse: {
32823
+ /** */
32750
32824
  action_attempt: {
32751
32825
  /** The ID of the action attempt. */
32752
32826
  action_attempt_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.326.0",
3
+ "version": "1.328.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -138,6 +138,10 @@ export const access_code = z.object({
138
138
  .describe(
139
139
  'Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection.',
140
140
  ),
141
- })
141
+ }).describe(`
142
+ ---
143
+ route_path: /access_codes
144
+ ---
145
+ `)
142
146
 
143
147
  export type AccessCode = z.infer<typeof access_code>
@@ -19,6 +19,10 @@ export const unmanaged_access_code = access_code
19
19
  .extend({
20
20
  is_managed: z.literal(false),
21
21
  status: z.enum(['set']),
22
- })
22
+ }).describe(`
23
+ ---
24
+ route_path: /access_codes/unmanaged
25
+ ---
26
+ `)
23
27
 
24
28
  export type UnmanagedAccessCode = z.infer<typeof unmanaged_access_code>
@@ -100,9 +100,13 @@ const common_acs_access_group = z.object({
100
100
 
101
101
  export const acs_access_group = common_acs_access_group.extend({
102
102
  is_managed: z.literal(true),
103
- })
104
- .describe(`Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.
105
- The \`acs_access_group\` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).`)
103
+ }).describe(`
104
+ ---
105
+ route_path: /acs/access_groups
106
+ ---
107
+ Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.
108
+ The \`acs_access_group\` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
109
+ `)
106
110
  export const unmanaged_acs_access_group = common_acs_access_group.extend({
107
111
  is_managed: z.literal(false),
108
112
  })
@@ -14,6 +14,10 @@ export const acs_credential_pool = z.object({
14
14
  external_type_display_name: z.string(),
15
15
  created_at: z.string().datetime(),
16
16
  workspace_id: z.string().uuid(),
17
- })
17
+ }).describe(`
18
+ ---
19
+ route_path: /acs/credential_pools
20
+ ---
21
+ `)
18
22
 
19
23
  export type AcsCredentialPool = z.output<typeof acs_credential_pool>
@@ -6,42 +6,45 @@ export const acs_credential_provisioning_automation = z.object({
6
6
  user_identity_id: z.string().uuid(),
7
7
  created_at: z.string().datetime(),
8
8
  workspace_id: z.string().uuid(),
9
- })
9
+ }).describe(`
10
+ ---
11
+ route_path: /acs/credential_provisioning_automations
12
+ ---
13
+ `)
10
14
 
11
- export const enrollment_automation = z
12
- .object({
13
- enrollment_automation_id: z
14
- .string()
15
- .uuid()
16
- .describe('ID of the enrollment automation.'),
17
- credential_manager_acs_system_id: z
18
- .string()
19
- .uuid()
20
- .describe(
21
- 'ID of the associated [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) that serves as the credential manager.',
22
- ),
23
- user_identity_id: z
24
- .string()
25
- .uuid()
26
- .describe(
27
- 'ID of the associated [user identity](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).',
28
- ),
29
- created_at: z
30
- .string()
31
- .datetime()
32
- .describe(
33
- 'Date and time at which the enrollment automation was created.',
34
- ),
35
- workspace_id: z
36
- .string()
37
- .uuid()
38
- .describe(
39
- 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the enrollment automation.',
40
- ),
41
- })
42
- .describe(
43
- 'Represents an [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system) within the [Seam mobile access solution](https://docs.seam.co/latest/capability-guides/mobile-access-in-development).',
44
- )
15
+ export const enrollment_automation = z.object({
16
+ enrollment_automation_id: z
17
+ .string()
18
+ .uuid()
19
+ .describe('ID of the enrollment automation.'),
20
+ credential_manager_acs_system_id: z
21
+ .string()
22
+ .uuid()
23
+ .describe(
24
+ 'ID of the associated [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) that serves as the credential manager.',
25
+ ),
26
+ user_identity_id: z
27
+ .string()
28
+ .uuid()
29
+ .describe(
30
+ 'ID of the associated [user identity](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).',
31
+ ),
32
+ created_at: z
33
+ .string()
34
+ .datetime()
35
+ .describe('Date and time at which the enrollment automation was created.'),
36
+ workspace_id: z
37
+ .string()
38
+ .uuid()
39
+ .describe(
40
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the enrollment automation.',
41
+ ),
42
+ }).describe(`
43
+ ---
44
+ route_path: /user_identities/enrollment_automations
45
+ ---
46
+ Represents an [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system) within the [Seam mobile access solution](https://docs.seam.co/latest/capability-guides/mobile-access-in-development).
47
+ `)
45
48
 
46
49
  export type EnrollmentAutomation = z.output<typeof enrollment_automation>
47
50