@seamapi/types 1.418.1 → 1.420.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 (27) hide show
  1. package/dist/connect.cjs +242 -1
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +436 -2
  4. package/lib/seam/connect/models/access-grants/access-grant.d.ts +6 -0
  5. package/lib/seam/connect/models/access-grants/access-grant.js +10 -0
  6. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  7. package/lib/seam/connect/models/devices/device.d.ts +58 -0
  8. package/lib/seam/connect/models/devices/device.js +12 -0
  9. package/lib/seam/connect/models/devices/device.js.map +1 -1
  10. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -0
  11. package/lib/seam/connect/models/events/access-grants.d.ts +0 -2
  12. package/lib/seam/connect/models/events/access-grants.js.map +1 -1
  13. package/lib/seam/connect/models/events/access-methods.d.ts +47 -0
  14. package/lib/seam/connect/models/events/access-methods.js +9 -0
  15. package/lib/seam/connect/models/events/access-methods.js.map +1 -1
  16. package/lib/seam/connect/models/events/seam-event.d.ts +24 -1
  17. package/lib/seam/connect/openapi.d.ts +181 -0
  18. package/lib/seam/connect/openapi.js +222 -0
  19. package/lib/seam/connect/openapi.js.map +1 -1
  20. package/lib/seam/connect/route-types.d.ts +171 -2
  21. package/package.json +2 -2
  22. package/src/lib/seam/connect/models/access-grants/access-grant.ts +10 -0
  23. package/src/lib/seam/connect/models/devices/device.ts +13 -0
  24. package/src/lib/seam/connect/models/events/access-grants.ts +0 -6
  25. package/src/lib/seam/connect/models/events/access-methods.ts +10 -0
  26. package/src/lib/seam/connect/openapi.ts +235 -0
  27. package/src/lib/seam/connect/route-types.ts +188 -0
@@ -10184,6 +10184,10 @@ export interface Routes {
10184
10184
  display_name: string;
10185
10185
  /** Date and time at which the access grant was created. */
10186
10186
  created_at: string;
10187
+ /** Date and time at which the access grant starts. */
10188
+ starts_at?: string | undefined;
10189
+ /** Date and time at which the access grant ends. */
10190
+ ends_at?: string | undefined;
10187
10191
  };
10188
10192
  };
10189
10193
  };
@@ -10240,6 +10244,10 @@ export interface Routes {
10240
10244
  display_name: string;
10241
10245
  /** Date and time at which the access grant was created. */
10242
10246
  created_at: string;
10247
+ /** Date and time at which the access grant starts. */
10248
+ starts_at?: string | undefined;
10249
+ /** Date and time at which the access grant ends. */
10250
+ ends_at?: string | undefined;
10243
10251
  };
10244
10252
  };
10245
10253
  };
@@ -10292,9 +10300,29 @@ export interface Routes {
10292
10300
  display_name: string;
10293
10301
  /** Date and time at which the access grant was created. */
10294
10302
  created_at: string;
10303
+ /** Date and time at which the access grant starts. */
10304
+ starts_at?: string | undefined;
10305
+ /** Date and time at which the access grant ends. */
10306
+ ends_at?: string | undefined;
10295
10307
  }>;
10296
10308
  };
10297
10309
  };
10310
+ '/access_grants/update': {
10311
+ route: '/access_grants/update';
10312
+ method: 'POST' | 'PATCH';
10313
+ queryParams: {};
10314
+ jsonBody: {};
10315
+ commonParams: {
10316
+ /** ID of the access grant to update. */
10317
+ access_grant_id: string;
10318
+ /** Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
10319
+ starts_at?: (string | null) | undefined;
10320
+ /** Date and time at which the validity of the grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
10321
+ ends_at?: (string | null) | undefined;
10322
+ };
10323
+ formData: {};
10324
+ jsonResponse: {};
10325
+ };
10298
10326
  '/access_methods/delete': {
10299
10327
  route: '/access_methods/delete';
10300
10328
  method: 'GET' | 'POST';
@@ -23502,6 +23530,13 @@ export interface Routes {
23502
23530
  created_at: string;
23503
23531
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
23504
23532
  warning_code: 'ttlock_weak_gateway_signal';
23533
+ } | {
23534
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
23535
+ message: string;
23536
+ /** Date and time at which Seam created the warning. */
23537
+ created_at: string;
23538
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
23539
+ warning_code: 'power_saving_mode';
23505
23540
  } | {
23506
23541
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
23507
23542
  message: string;
@@ -24647,6 +24682,13 @@ export interface Routes {
24647
24682
  created_at: string;
24648
24683
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
24649
24684
  warning_code: 'ttlock_weak_gateway_signal';
24685
+ } | {
24686
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
24687
+ message: string;
24688
+ /** Date and time at which Seam created the warning. */
24689
+ created_at: string;
24690
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
24691
+ warning_code: 'power_saving_mode';
24650
24692
  } | {
24651
24693
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
24652
24694
  message: string;
@@ -25053,6 +25095,13 @@ export interface Routes {
25053
25095
  created_at: string;
25054
25096
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
25055
25097
  warning_code: 'ttlock_weak_gateway_signal';
25098
+ } | {
25099
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
25100
+ message: string;
25101
+ /** Date and time at which Seam created the warning. */
25102
+ created_at: string;
25103
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
25104
+ warning_code: 'power_saving_mode';
25056
25105
  } | {
25057
25106
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
25058
25107
  message: string;
@@ -25478,6 +25527,13 @@ export interface Routes {
25478
25527
  created_at: string;
25479
25528
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
25480
25529
  warning_code: 'ttlock_weak_gateway_signal';
25530
+ } | {
25531
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
25532
+ message: string;
25533
+ /** Date and time at which Seam created the warning. */
25534
+ created_at: string;
25535
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
25536
+ warning_code: 'power_saving_mode';
25481
25537
  } | {
25482
25538
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
25483
25539
  message: string;
@@ -26081,6 +26137,18 @@ export interface Routes {
26081
26137
  created_at: string;
26082
26138
  /** Date and time at which the event occurred. */
26083
26139
  occurred_at: string;
26140
+ /** ID of the affected access method. */
26141
+ access_method_id: string;
26142
+ event_type: 'access_method.reissued';
26143
+ } | {
26144
+ /** ID of the event. */
26145
+ event_id: string;
26146
+ /** ID of the workspace associated with the event. */
26147
+ workspace_id: string;
26148
+ /** Date and time at which the event was created. */
26149
+ created_at: string;
26150
+ /** Date and time at which the event occurred. */
26151
+ occurred_at: string;
26084
26152
  /** ID of the connected account. */
26085
26153
  connected_account_id?: string | undefined;
26086
26154
  /** ID of the access system. */
@@ -27087,9 +27155,9 @@ export interface Routes {
27087
27155
  /** IDs of the access codes for which you want to list events. */
27088
27156
  access_code_ids?: string[] | undefined;
27089
27157
  /** Type of the events that you want to list. */
27090
- 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_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | '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;
27158
+ 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_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;
27091
27159
  /** Types of the events that you want to list. */
27092
- event_types?: Array<'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_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | '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;
27160
+ event_types?: Array<'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_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;
27093
27161
  /** ID of the connected account for which you want to list events. */
27094
27162
  connected_account_id?: string | undefined;
27095
27163
  /** IDs of the connected accounts for which you want to list events. */
@@ -27503,6 +27571,18 @@ export interface Routes {
27503
27571
  created_at: string;
27504
27572
  /** Date and time at which the event occurred. */
27505
27573
  occurred_at: string;
27574
+ /** ID of the affected access method. */
27575
+ access_method_id: string;
27576
+ event_type: 'access_method.reissued';
27577
+ } | {
27578
+ /** ID of the event. */
27579
+ event_id: string;
27580
+ /** ID of the workspace associated with the event. */
27581
+ workspace_id: string;
27582
+ /** Date and time at which the event was created. */
27583
+ created_at: string;
27584
+ /** Date and time at which the event occurred. */
27585
+ occurred_at: string;
27506
27586
  /** ID of the connected account. */
27507
27587
  connected_account_id?: string | undefined;
27508
27588
  /** ID of the access system. */
@@ -29515,6 +29595,13 @@ export interface Routes {
29515
29595
  created_at: string;
29516
29596
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
29517
29597
  warning_code: 'ttlock_weak_gateway_signal';
29598
+ } | {
29599
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
29600
+ message: string;
29601
+ /** Date and time at which Seam created the warning. */
29602
+ created_at: string;
29603
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
29604
+ warning_code: 'power_saving_mode';
29518
29605
  } | {
29519
29606
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
29520
29607
  message: string;
@@ -30616,6 +30703,13 @@ export interface Routes {
30616
30703
  created_at: string;
30617
30704
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
30618
30705
  warning_code: 'ttlock_weak_gateway_signal';
30706
+ } | {
30707
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
30708
+ message: string;
30709
+ /** Date and time at which Seam created the warning. */
30710
+ created_at: string;
30711
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
30712
+ warning_code: 'power_saving_mode';
30619
30713
  } | {
30620
30714
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
30621
30715
  message: string;
@@ -31761,6 +31855,13 @@ export interface Routes {
31761
31855
  created_at: string;
31762
31856
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31763
31857
  warning_code: 'ttlock_weak_gateway_signal';
31858
+ } | {
31859
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31860
+ message: string;
31861
+ /** Date and time at which Seam created the warning. */
31862
+ created_at: string;
31863
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31864
+ warning_code: 'power_saving_mode';
31764
31865
  } | {
31765
31866
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31766
31867
  message: string;
@@ -32861,6 +32962,13 @@ export interface Routes {
32861
32962
  created_at: string;
32862
32963
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32863
32964
  warning_code: 'ttlock_weak_gateway_signal';
32965
+ } | {
32966
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
32967
+ message: string;
32968
+ /** Date and time at which Seam created the warning. */
32969
+ created_at: string;
32970
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32971
+ warning_code: 'power_saving_mode';
32864
32972
  } | {
32865
32973
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
32866
32974
  message: string;
@@ -39299,6 +39407,13 @@ export interface Routes {
39299
39407
  created_at: string;
39300
39408
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
39301
39409
  warning_code: 'ttlock_weak_gateway_signal';
39410
+ } | {
39411
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
39412
+ message: string;
39413
+ /** Date and time at which Seam created the warning. */
39414
+ created_at: string;
39415
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
39416
+ warning_code: 'power_saving_mode';
39302
39417
  } | {
39303
39418
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
39304
39419
  message: string;
@@ -40399,6 +40514,13 @@ export interface Routes {
40399
40514
  created_at: string;
40400
40515
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
40401
40516
  warning_code: 'ttlock_weak_gateway_signal';
40517
+ } | {
40518
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
40519
+ message: string;
40520
+ /** Date and time at which Seam created the warning. */
40521
+ created_at: string;
40522
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
40523
+ warning_code: 'power_saving_mode';
40402
40524
  } | {
40403
40525
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
40404
40526
  message: string;
@@ -50867,6 +50989,13 @@ export interface Routes {
50867
50989
  created_at: string;
50868
50990
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
50869
50991
  warning_code: 'ttlock_weak_gateway_signal';
50992
+ } | {
50993
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
50994
+ message: string;
50995
+ /** Date and time at which Seam created the warning. */
50996
+ created_at: string;
50997
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
50998
+ warning_code: 'power_saving_mode';
50870
50999
  } | {
50871
51000
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
50872
51001
  message: string;
@@ -54654,6 +54783,13 @@ export interface Routes {
54654
54783
  created_at: string;
54655
54784
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
54656
54785
  warning_code: 'ttlock_weak_gateway_signal';
54786
+ } | {
54787
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
54788
+ message: string;
54789
+ /** Date and time at which Seam created the warning. */
54790
+ created_at: string;
54791
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
54792
+ warning_code: 'power_saving_mode';
54657
54793
  } | {
54658
54794
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
54659
54795
  message: string;
@@ -55754,6 +55890,13 @@ export interface Routes {
55754
55890
  created_at: string;
55755
55891
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
55756
55892
  warning_code: 'ttlock_weak_gateway_signal';
55893
+ } | {
55894
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
55895
+ message: string;
55896
+ /** Date and time at which Seam created the warning. */
55897
+ created_at: string;
55898
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
55899
+ warning_code: 'power_saving_mode';
55757
55900
  } | {
55758
55901
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
55759
55902
  message: string;
@@ -61525,6 +61668,10 @@ export interface Routes {
61525
61668
  display_name: string;
61526
61669
  /** Date and time at which the access grant was created. */
61527
61670
  created_at: string;
61671
+ /** Date and time at which the access grant starts. */
61672
+ starts_at?: string | undefined;
61673
+ /** Date and time at which the access grant ends. */
61674
+ ends_at?: string | undefined;
61528
61675
  };
61529
61676
  };
61530
61677
  };
@@ -61581,6 +61728,10 @@ export interface Routes {
61581
61728
  display_name: string;
61582
61729
  /** Date and time at which the access grant was created. */
61583
61730
  created_at: string;
61731
+ /** Date and time at which the access grant starts. */
61732
+ starts_at?: string | undefined;
61733
+ /** Date and time at which the access grant ends. */
61734
+ ends_at?: string | undefined;
61584
61735
  };
61585
61736
  };
61586
61737
  };
@@ -61633,6 +61784,10 @@ export interface Routes {
61633
61784
  display_name: string;
61634
61785
  /** Date and time at which the access grant was created. */
61635
61786
  created_at: string;
61787
+ /** Date and time at which the access grant starts. */
61788
+ starts_at?: string | undefined;
61789
+ /** Date and time at which the access grant ends. */
61790
+ ends_at?: string | undefined;
61636
61791
  }>;
61637
61792
  };
61638
61793
  };
@@ -63485,6 +63640,13 @@ export interface Routes {
63485
63640
  created_at: string;
63486
63641
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
63487
63642
  warning_code: 'ttlock_weak_gateway_signal';
63643
+ } | {
63644
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
63645
+ message: string;
63646
+ /** Date and time at which Seam created the warning. */
63647
+ created_at: string;
63648
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
63649
+ warning_code: 'power_saving_mode';
63488
63650
  } | {
63489
63651
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
63490
63652
  message: string;
@@ -64587,6 +64749,13 @@ export interface Routes {
64587
64749
  created_at: string;
64588
64750
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
64589
64751
  warning_code: 'ttlock_weak_gateway_signal';
64752
+ } | {
64753
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
64754
+ message: string;
64755
+ /** Date and time at which Seam created the warning. */
64756
+ created_at: string;
64757
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
64758
+ warning_code: 'power_saving_mode';
64590
64759
  } | {
64591
64760
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
64592
64761
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.418.1",
3
+ "version": "1.420.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "zod": "^3.24.0"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.49.0",
95
+ "@seamapi/blueprint": "^0.50.0",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -31,6 +31,16 @@ export const access_grant = z.object({
31
31
  .string()
32
32
  .datetime()
33
33
  .describe('Date and time at which the access grant was created.'),
34
+ starts_at: z
35
+ .string()
36
+ .datetime()
37
+ .optional()
38
+ .describe('Date and time at which the access grant starts.'),
39
+ ends_at: z
40
+ .string()
41
+ .datetime()
42
+ .optional()
43
+ .describe('Date and time at which the access grant ends.'),
34
44
  }).describe(`
35
45
  ---
36
46
  draft: Early access.
@@ -344,6 +344,17 @@ const ttlock_weak_gateway_signal = common_device_warning.extend({
344
344
  Indicates that the gateway signal is weak.
345
345
  `)
346
346
 
347
+ const power_saving_mode = common_device_warning.extend({
348
+ warning_code: z
349
+ .literal('power_saving_mode')
350
+ .describe(warning_code_description),
351
+ }).describe(`
352
+ ---
353
+ variant_group_key: locks
354
+ ---
355
+ Indicates that the device is in power saving mode and may have limited functionality.
356
+ `)
357
+
347
358
  const temperature_threshold_exceeded = common_device_warning.extend({
348
359
  warning_code: z
349
360
  .literal('temperature_threshold_exceeded')
@@ -409,6 +420,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
409
420
  nest_thermostat_in_manual_eco_mode,
410
421
  ttlock_lock_gateway_unlocking_not_enabled,
411
422
  ttlock_weak_gateway_signal,
423
+ power_saving_mode,
412
424
  temperature_threshold_exceeded,
413
425
  device_communication_degraded,
414
426
  scheduled_maintenance_window,
@@ -447,6 +459,7 @@ export const device_warning_map = z.object({
447
459
  ttlock_lock_gateway_unlocking_not_enabled:
448
460
  ttlock_lock_gateway_unlocking_not_enabled.optional().nullable(),
449
461
  ttlock_weak_gateway_signal: ttlock_weak_gateway_signal.optional().nullable(),
462
+ power_saving_mode: power_saving_mode.optional().nullable(),
450
463
  temperature_threshold_exceeded: temperature_threshold_exceeded
451
464
  .optional()
452
465
  .nullable(),
@@ -18,8 +18,6 @@ export const access_grant_created_event = access_grant_event.extend({
18
18
  An access grant was created.
19
19
  `)
20
20
 
21
- export type AccessGrantCreatedEvent = z.infer<typeof access_grant_created_event>
22
-
23
21
  export const access_grant_deleted_event = access_grant_event.extend({
24
22
  event_type: z.literal('access_grant.deleted'),
25
23
  }).describe(`
@@ -29,10 +27,6 @@ export const access_grant_deleted_event = access_grant_event.extend({
29
27
  An access grant was deleted.
30
28
  `)
31
29
 
32
- export type AccessGrantDeleteddEvent = z.infer<
33
- typeof access_grant_deleted_event
34
- >
35
-
36
30
  export const access_grant_access_granted_to_all_doors_event =
37
31
  access_grant_event.extend({
38
32
  event_type: z.literal('access_grant.access_granted_to_all_doors'),
@@ -52,6 +52,15 @@ export const access_method_deleted_event = access_method_event.extend({
52
52
  An access method was deleted.
53
53
  `)
54
54
 
55
+ export const access_method_reissued_event = access_method_event.extend({
56
+ event_type: z.literal('access_method.reissued'),
57
+ }).describe(`
58
+ ---
59
+ route_path: /access_methods
60
+ ---
61
+ An access method was reissued due to an access grant update.
62
+ `)
63
+
55
64
  export type AccessMethodRevokedEvent = z.infer<
56
65
  typeof access_method_revoked_event
57
66
  >
@@ -61,4 +70,5 @@ export const access_method_events = [
61
70
  access_method_revoked_event,
62
71
  access_method_card_encoding_required_event,
63
72
  access_method_deleted_event,
73
+ access_method_reissued_event,
64
74
  ] as const