@seamapi/types 1.561.0 → 1.563.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 (26) hide show
  1. package/dist/connect.cjs +159 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +478 -4
  4. package/dist/index.cjs +159 -4
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +71 -0
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +11 -0
  8. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +26 -0
  10. package/lib/seam/connect/models/batch.d.ts +315 -0
  11. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +58 -0
  12. package/lib/seam/connect/models/connected-accounts/connected-account.js +11 -0
  13. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  14. package/lib/seam/connect/models/events/connected-accounts.d.ts +54 -0
  15. package/lib/seam/connect/models/events/connected-accounts.js +9 -0
  16. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  17. package/lib/seam/connect/models/events/seam-event.d.ts +27 -1
  18. package/lib/seam/connect/openapi.js +132 -0
  19. package/lib/seam/connect/openapi.js.map +1 -1
  20. package/lib/seam/connect/route-types.d.ts +236 -4
  21. package/package.json +1 -1
  22. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +14 -0
  23. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +14 -0
  24. package/src/lib/seam/connect/models/events/connected-accounts.ts +15 -0
  25. package/src/lib/seam/connect/openapi.ts +150 -0
  26. package/src/lib/seam/connect/route-types.ts +269 -0
@@ -1547,6 +1547,15 @@ export type Routes = {
1547
1547
  created_at?: string | undefined;
1548
1548
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
1549
1549
  error_code: 'dormakaba_oracode_no_valid_user_level';
1550
+ } | {
1551
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
1552
+ message: string;
1553
+ /** Indicates that this is an access code error. */
1554
+ is_access_code_error: true;
1555
+ /** Date and time at which Seam created the error. */
1556
+ created_at?: string | undefined;
1557
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
1558
+ error_code: 'kwikset_insufficient_permissions';
1550
1559
  } | {
1551
1560
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
1552
1561
  message: string;
@@ -2092,6 +2101,15 @@ export type Routes = {
2092
2101
  created_at?: string | undefined;
2093
2102
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2094
2103
  error_code: 'dormakaba_oracode_no_valid_user_level';
2104
+ } | {
2105
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2106
+ message: string;
2107
+ /** Indicates that this is an access code error. */
2108
+ is_access_code_error: true;
2109
+ /** Date and time at which Seam created the error. */
2110
+ created_at?: string | undefined;
2111
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2112
+ error_code: 'kwikset_insufficient_permissions';
2095
2113
  } | {
2096
2114
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2097
2115
  message: string;
@@ -3891,6 +3909,15 @@ export type Routes = {
3891
3909
  created_at?: string | undefined;
3892
3910
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
3893
3911
  error_code: 'dormakaba_oracode_no_valid_user_level';
3912
+ } | {
3913
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3914
+ message: string;
3915
+ /** Indicates that this is an access code error. */
3916
+ is_access_code_error: true;
3917
+ /** Date and time at which Seam created the error. */
3918
+ created_at?: string | undefined;
3919
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
3920
+ error_code: 'kwikset_insufficient_permissions';
3894
3921
  } | {
3895
3922
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3896
3923
  message: string;
@@ -4410,6 +4437,15 @@ export type Routes = {
4410
4437
  created_at?: string | undefined;
4411
4438
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4412
4439
  error_code: 'dormakaba_oracode_no_valid_user_level';
4440
+ } | {
4441
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4442
+ message: string;
4443
+ /** Indicates that this is an access code error. */
4444
+ is_access_code_error: true;
4445
+ /** Date and time at which Seam created the error. */
4446
+ created_at?: string | undefined;
4447
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4448
+ error_code: 'kwikset_insufficient_permissions';
4413
4449
  } | {
4414
4450
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4415
4451
  message: string;
@@ -4935,6 +4971,15 @@ export type Routes = {
4935
4971
  created_at?: string | undefined;
4936
4972
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4937
4973
  error_code: 'dormakaba_oracode_no_valid_user_level';
4974
+ } | {
4975
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4976
+ message: string;
4977
+ /** Indicates that this is an access code error. */
4978
+ is_access_code_error: true;
4979
+ /** Date and time at which Seam created the error. */
4980
+ created_at?: string | undefined;
4981
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4982
+ error_code: 'kwikset_insufficient_permissions';
4938
4983
  } | {
4939
4984
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4940
4985
  message: string;
@@ -5438,6 +5483,15 @@ export type Routes = {
5438
5483
  created_at?: string | undefined;
5439
5484
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5440
5485
  error_code: 'dormakaba_oracode_no_valid_user_level';
5486
+ } | {
5487
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5488
+ message: string;
5489
+ /** Indicates that this is an access code error. */
5490
+ is_access_code_error: true;
5491
+ /** Date and time at which Seam created the error. */
5492
+ created_at?: string | undefined;
5493
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5494
+ error_code: 'kwikset_insufficient_permissions';
5441
5495
  } | {
5442
5496
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5443
5497
  message: string;
@@ -5974,6 +6028,15 @@ export type Routes = {
5974
6028
  created_at?: string | undefined;
5975
6029
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5976
6030
  error_code: 'dormakaba_oracode_no_valid_user_level';
6031
+ } | {
6032
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6033
+ message: string;
6034
+ /** Indicates that this is an access code error. */
6035
+ is_access_code_error: true;
6036
+ /** Date and time at which Seam created the error. */
6037
+ created_at?: string | undefined;
6038
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6039
+ error_code: 'kwikset_insufficient_permissions';
5977
6040
  } | {
5978
6041
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5979
6042
  message: string;
@@ -7760,6 +7823,15 @@ export type Routes = {
7760
7823
  created_at?: string | undefined;
7761
7824
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7762
7825
  error_code: 'dormakaba_oracode_no_valid_user_level';
7826
+ } | {
7827
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7828
+ message: string;
7829
+ /** Indicates that this is an access code error. */
7830
+ is_access_code_error: true;
7831
+ /** Date and time at which Seam created the error. */
7832
+ created_at?: string | undefined;
7833
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7834
+ error_code: 'kwikset_insufficient_permissions';
7763
7835
  } | {
7764
7836
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7765
7837
  message: string;
@@ -8257,6 +8329,15 @@ export type Routes = {
8257
8329
  created_at?: string | undefined;
8258
8330
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
8259
8331
  error_code: 'dormakaba_oracode_no_valid_user_level';
8332
+ } | {
8333
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
8334
+ message: string;
8335
+ /** Indicates that this is an access code error. */
8336
+ is_access_code_error: true;
8337
+ /** Date and time at which Seam created the error. */
8338
+ created_at?: string | undefined;
8339
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
8340
+ error_code: 'kwikset_insufficient_permissions';
8260
8341
  } | {
8261
8342
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
8262
8343
  message: string;
@@ -11556,6 +11637,13 @@ export type Routes = {
11556
11637
  subscribed_site_user_count: number;
11557
11638
  }[];
11558
11639
  };
11640
+ } | {
11641
+ /** Date and time at which Seam created the warning. */
11642
+ created_at: string;
11643
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
11644
+ message: string;
11645
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
11646
+ warning_code: 'account_reauthorization_requested';
11559
11647
  })[];
11560
11648
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
11561
11649
  custom_metadata: {
@@ -18178,6 +18266,22 @@ export type Routes = {
18178
18266
  [x: string]: string | boolean;
18179
18267
  } | undefined;
18180
18268
  event_type: 'connected_account.completed_first_sync_after_reconnection';
18269
+ } | {
18270
+ /** ID of the event. */
18271
+ event_id: string;
18272
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
18273
+ workspace_id: string;
18274
+ /** Date and time at which the event was created. */
18275
+ created_at: string;
18276
+ /** Date and time at which the event occurred. */
18277
+ occurred_at: string;
18278
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
18279
+ connected_account_id: string;
18280
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
18281
+ connected_account_custom_metadata?: {
18282
+ [x: string]: string | boolean;
18283
+ } | undefined;
18284
+ event_type: 'connected_account.reauthorization_requested';
18181
18285
  } | {
18182
18286
  /** ID of the event. */
18183
18287
  event_id: string;
@@ -19401,6 +19505,15 @@ export type Routes = {
19401
19505
  created_at?: string | undefined;
19402
19506
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
19403
19507
  error_code: 'dormakaba_oracode_no_valid_user_level';
19508
+ } | {
19509
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
19510
+ message: string;
19511
+ /** Indicates that this is an access code error. */
19512
+ is_access_code_error: true;
19513
+ /** Date and time at which Seam created the error. */
19514
+ created_at?: string | undefined;
19515
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
19516
+ error_code: 'kwikset_insufficient_permissions';
19404
19517
  } | {
19405
19518
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
19406
19519
  message: string;
@@ -19891,6 +20004,15 @@ export type Routes = {
19891
20004
  created_at?: string | undefined;
19892
20005
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
19893
20006
  error_code: 'dormakaba_oracode_no_valid_user_level';
20007
+ } | {
20008
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
20009
+ message: string;
20010
+ /** Indicates that this is an access code error. */
20011
+ is_access_code_error: true;
20012
+ /** Date and time at which Seam created the error. */
20013
+ created_at?: string | undefined;
20014
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
20015
+ error_code: 'kwikset_insufficient_permissions';
19894
20016
  } | {
19895
20017
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
19896
20018
  message: string;
@@ -30726,6 +30848,13 @@ export type Routes = {
30726
30848
  subscribed_site_user_count: number;
30727
30849
  }[];
30728
30850
  };
30851
+ } | {
30852
+ /** Date and time at which Seam created the warning. */
30853
+ created_at: string;
30854
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
30855
+ message: string;
30856
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
30857
+ warning_code: 'account_reauthorization_requested';
30729
30858
  })[];
30730
30859
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
30731
30860
  custom_metadata: {
@@ -30870,6 +30999,13 @@ export type Routes = {
30870
30999
  subscribed_site_user_count: number;
30871
31000
  }[];
30872
31001
  };
31002
+ } | {
31003
+ /** Date and time at which Seam created the warning. */
31004
+ created_at: string;
31005
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31006
+ message: string;
31007
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31008
+ warning_code: 'account_reauthorization_requested';
30873
31009
  })[];
30874
31010
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
30875
31011
  custom_metadata: {
@@ -31032,6 +31168,13 @@ export type Routes = {
31032
31168
  subscribed_site_user_count: number;
31033
31169
  }[];
31034
31170
  };
31171
+ } | {
31172
+ /** Date and time at which Seam created the warning. */
31173
+ created_at: string;
31174
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31175
+ message: string;
31176
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31177
+ warning_code: 'account_reauthorization_requested';
31035
31178
  })[];
31036
31179
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
31037
31180
  custom_metadata: {
@@ -36066,6 +36209,22 @@ export type Routes = {
36066
36209
  [x: string]: string | boolean;
36067
36210
  } | undefined;
36068
36211
  event_type: 'connected_account.completed_first_sync_after_reconnection';
36212
+ } | {
36213
+ /** ID of the event. */
36214
+ event_id: string;
36215
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
36216
+ workspace_id: string;
36217
+ /** Date and time at which the event was created. */
36218
+ created_at: string;
36219
+ /** Date and time at which the event occurred. */
36220
+ occurred_at: string;
36221
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
36222
+ connected_account_id: string;
36223
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
36224
+ connected_account_custom_metadata?: {
36225
+ [x: string]: string | boolean;
36226
+ } | undefined;
36227
+ event_type: 'connected_account.reauthorization_requested';
36069
36228
  } | {
36070
36229
  /** ID of the event. */
36071
36230
  event_id: string;
@@ -37045,9 +37204,9 @@ export type Routes = {
37045
37204
  /** IDs of the access codes for which you want to list events. */
37046
37205
  access_code_ids?: string[] | undefined;
37047
37206
  /** Type of the events that you want to list. */
37048
- event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
37207
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
37049
37208
  /** Types of the events that you want to list. */
37050
- event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
37209
+ event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
37051
37210
  /** ID of the connected account for which you want to list events. */
37052
37211
  connected_account_id?: string | undefined;
37053
37212
  /** ID of the Connect Webview for which you want to list events. */
@@ -37990,6 +38149,22 @@ export type Routes = {
37990
38149
  [x: string]: string | boolean;
37991
38150
  } | undefined;
37992
38151
  event_type: 'connected_account.completed_first_sync_after_reconnection';
38152
+ } | {
38153
+ /** ID of the event. */
38154
+ event_id: string;
38155
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
38156
+ workspace_id: string;
38157
+ /** Date and time at which the event was created. */
38158
+ created_at: string;
38159
+ /** Date and time at which the event occurred. */
38160
+ occurred_at: string;
38161
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
38162
+ connected_account_id: string;
38163
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
38164
+ connected_account_custom_metadata?: {
38165
+ [x: string]: string | boolean;
38166
+ } | undefined;
38167
+ event_type: 'connected_account.reauthorization_requested';
37993
38168
  } | {
37994
38169
  /** ID of the event. */
37995
38170
  event_id: string;
@@ -56072,9 +56247,9 @@ export type Routes = {
56072
56247
  /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
56073
56248
  between?: (string | Date)[] | undefined;
56074
56249
  /** Type of the events that you want to list. */
56075
- event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
56250
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
56076
56251
  /** Types of the events that you want to list. */
56077
- event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
56252
+ event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
56078
56253
  /** Numerical limit on the number of events to return. */
56079
56254
  limit?: number;
56080
56255
  };
@@ -57011,6 +57186,22 @@ export type Routes = {
57011
57186
  [x: string]: string | boolean;
57012
57187
  } | undefined;
57013
57188
  event_type: 'connected_account.completed_first_sync_after_reconnection';
57189
+ } | {
57190
+ /** ID of the event. */
57191
+ event_id: string;
57192
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
57193
+ workspace_id: string;
57194
+ /** Date and time at which the event was created. */
57195
+ created_at: string;
57196
+ /** Date and time at which the event occurred. */
57197
+ occurred_at: string;
57198
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
57199
+ connected_account_id: string;
57200
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
57201
+ connected_account_custom_metadata?: {
57202
+ [x: string]: string | boolean;
57203
+ } | undefined;
57204
+ event_type: 'connected_account.reauthorization_requested';
57014
57205
  } | {
57015
57206
  /** ID of the event. */
57016
57207
  event_id: string;
@@ -60295,6 +60486,13 @@ export type Routes = {
60295
60486
  subscribed_site_user_count: number;
60296
60487
  }[];
60297
60488
  };
60489
+ } | {
60490
+ /** Date and time at which Seam created the warning. */
60491
+ created_at: string;
60492
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
60493
+ message: string;
60494
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
60495
+ warning_code: 'account_reauthorization_requested';
60298
60496
  })[];
60299
60497
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
60300
60498
  custom_metadata: {
@@ -84666,6 +84864,22 @@ export type Routes = {
84666
84864
  [x: string]: string | boolean;
84667
84865
  } | undefined;
84668
84866
  event_type: 'connected_account.completed_first_sync_after_reconnection';
84867
+ } | {
84868
+ /** ID of the event. */
84869
+ event_id: string;
84870
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
84871
+ workspace_id: string;
84872
+ /** Date and time at which the event was created. */
84873
+ created_at: string;
84874
+ /** Date and time at which the event occurred. */
84875
+ occurred_at: string;
84876
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
84877
+ connected_account_id: string;
84878
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
84879
+ connected_account_custom_metadata?: {
84880
+ [x: string]: string | boolean;
84881
+ } | undefined;
84882
+ event_type: 'connected_account.reauthorization_requested';
84669
84883
  } | {
84670
84884
  /** ID of the event. */
84671
84885
  event_id: string;
@@ -85889,6 +86103,15 @@ export type Routes = {
85889
86103
  created_at?: string | undefined;
85890
86104
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
85891
86105
  error_code: 'dormakaba_oracode_no_valid_user_level';
86106
+ } | {
86107
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
86108
+ message: string;
86109
+ /** Indicates that this is an access code error. */
86110
+ is_access_code_error: true;
86111
+ /** Date and time at which Seam created the error. */
86112
+ created_at?: string | undefined;
86113
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
86114
+ error_code: 'kwikset_insufficient_permissions';
85892
86115
  } | {
85893
86116
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
85894
86117
  message: string;
@@ -86379,6 +86602,15 @@ export type Routes = {
86379
86602
  created_at?: string | undefined;
86380
86603
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
86381
86604
  error_code: 'dormakaba_oracode_no_valid_user_level';
86605
+ } | {
86606
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
86607
+ message: string;
86608
+ /** Indicates that this is an access code error. */
86609
+ is_access_code_error: true;
86610
+ /** Date and time at which Seam created the error. */
86611
+ created_at?: string | undefined;
86612
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
86613
+ error_code: 'kwikset_insufficient_permissions';
86382
86614
  } | {
86383
86615
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
86384
86616
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.561.0",
3
+ "version": "1.563.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -122,6 +122,16 @@ const kwikset_unable_to_confirm_deletion = common_access_code_error
122
122
  'Unable to confirm the deletion of the access code on Kwikset device.',
123
123
  )
124
124
 
125
+ const kwikset_insufficient_permissions = common_access_code_error
126
+ .extend({
127
+ error_code: z
128
+ .literal('kwikset_insufficient_permissions')
129
+ .describe(error_code_description),
130
+ })
131
+ .describe(
132
+ 'Admin role required—insufficient permissions to manage PINs on this Kwikset device. Please have a Home Admin update your role in the Kwikset app, or ask them to set the PIN.',
133
+ )
134
+
125
135
  const igloohome_offline_access_code_no_variance_available =
126
136
  common_access_code_error
127
137
  .extend({
@@ -254,6 +264,7 @@ const access_code_error = z
254
264
  wyze_duplicate_code_name,
255
265
  wyze_potential_duplicate_code,
256
266
  dormakaba_oracode_no_valid_user_level,
267
+ kwikset_insufficient_permissions,
257
268
  ])
258
269
  .describe(
259
270
  'Errors associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).',
@@ -292,6 +303,9 @@ const _access_code_error_map = z.object({
292
303
  kwikset_unable_to_confirm_deletion: kwikset_unable_to_confirm_deletion
293
304
  .optional()
294
305
  .nullable(),
306
+ kwikset_insufficient_permissions: kwikset_insufficient_permissions
307
+ .optional()
308
+ .nullable(),
295
309
  code_modified_external_to_seam_error: code_modified_external_to_seam_error
296
310
  .optional()
297
311
  .nullable(),
@@ -212,11 +212,22 @@ const salto_ks_subscription_limit_almost_reached =
212
212
  'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.',
213
213
  )
214
214
 
215
+ const account_reauthorization_requested = common_connected_account_warning
216
+ .extend({
217
+ warning_code: z
218
+ .literal('account_reauthorization_requested')
219
+ .describe(warning_code_description),
220
+ })
221
+ .describe(
222
+ 'Indicates that the Connected Account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.',
223
+ )
224
+
215
225
  const connected_account_warning = z
216
226
  .discriminatedUnion('warning_code', [
217
227
  scheduled_maintenance_window,
218
228
  unknown_issue_with_connected_account,
219
229
  salto_ks_subscription_limit_almost_reached,
230
+ account_reauthorization_requested,
220
231
  ])
221
232
  .describe('Warning associated with the connected account.')
222
233
 
@@ -229,6 +240,9 @@ const _connected_account_warning_map = z.object({
229
240
  .optional(),
230
241
  salto_ks_subscription_limit_almost_reached:
231
242
  salto_ks_subscription_limit_almost_reached.nullable().optional(),
243
+ account_reauthorization_requested: account_reauthorization_requested
244
+ .nullable()
245
+ .optional(),
232
246
  })
233
247
 
234
248
  export type ConnectedAccountWarningMap = z.infer<
@@ -134,6 +134,20 @@ export type ConnectedAccountCompletedFirstSyncAfterReconnectionEvent = z.infer<
134
134
  typeof connected_account_completed_first_sync_after_reconnection_event
135
135
  >
136
136
 
137
+ export const connected_account_reauthorization_requested_event =
138
+ connected_account_event.extend({
139
+ event_type: z.literal('connected_account.reauthorization_requested'),
140
+ }).describe(`
141
+ ---
142
+ route_path: /connected_accounts
143
+ ---
144
+ A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.
145
+ `)
146
+
147
+ export type ConnectedAccountReauthorizationRequestedEvent = z.infer<
148
+ typeof connected_account_reauthorization_requested_event
149
+ >
150
+
137
151
  export const connected_account_events = [
138
152
  connected_account_connected_event,
139
153
  connected_account_created_event,
@@ -142,4 +156,5 @@ export const connected_account_events = [
142
156
  connected_account_completed_first_sync_event,
143
157
  connected_account_deleted_event,
144
158
  connected_account_completed_first_sync_after_reconnection_event,
159
+ connected_account_reauthorization_requested_event,
145
160
  ] as const