@seamapi/types 1.419.0 → 1.420.1

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.
@@ -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';
@@ -26100,6 +26128,18 @@ export interface Routes {
26100
26128
  /** ID of the affected access method. */
26101
26129
  access_method_id: string;
26102
26130
  event_type: 'access_method.deleted';
26131
+ } | {
26132
+ /** ID of the event. */
26133
+ event_id: string;
26134
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
26135
+ workspace_id: string;
26136
+ /** Date and time at which the event was created. */
26137
+ created_at: string;
26138
+ /** Date and time at which the event occurred. */
26139
+ occurred_at: string;
26140
+ /** ID of the affected access method. */
26141
+ access_method_id: string;
26142
+ event_type: 'access_method.reissued';
26103
26143
  } | {
26104
26144
  /** ID of the event. */
26105
26145
  event_id: string;
@@ -27115,9 +27155,9 @@ export interface Routes {
27115
27155
  /** IDs of the access codes for which you want to list events. */
27116
27156
  access_code_ids?: string[] | undefined;
27117
27157
  /** Type of the events that you want to list. */
27118
- 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;
27119
27159
  /** Types of the events that you want to list. */
27120
- 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;
27121
27161
  /** ID of the connected account for which you want to list events. */
27122
27162
  connected_account_id?: string | undefined;
27123
27163
  /** IDs of the connected accounts for which you want to list events. */
@@ -27522,6 +27562,18 @@ export interface Routes {
27522
27562
  /** ID of the affected access method. */
27523
27563
  access_method_id: string;
27524
27564
  event_type: 'access_method.deleted';
27565
+ } | {
27566
+ /** ID of the event. */
27567
+ event_id: string;
27568
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
27569
+ workspace_id: string;
27570
+ /** Date and time at which the event was created. */
27571
+ created_at: string;
27572
+ /** Date and time at which the event occurred. */
27573
+ occurred_at: string;
27574
+ /** ID of the affected access method. */
27575
+ access_method_id: string;
27576
+ event_type: 'access_method.reissued';
27525
27577
  } | {
27526
27578
  /** ID of the event. */
27527
27579
  event_id: string;
@@ -61616,6 +61668,10 @@ export interface Routes {
61616
61668
  display_name: string;
61617
61669
  /** Date and time at which the access grant was created. */
61618
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;
61619
61675
  };
61620
61676
  };
61621
61677
  };
@@ -61672,6 +61728,10 @@ export interface Routes {
61672
61728
  display_name: string;
61673
61729
  /** Date and time at which the access grant was created. */
61674
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;
61675
61735
  };
61676
61736
  };
61677
61737
  };
@@ -61724,6 +61784,10 @@ export interface Routes {
61724
61784
  display_name: string;
61725
61785
  /** Date and time at which the access grant was created. */
61726
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;
61727
61791
  }>;
61728
61792
  };
61729
61793
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.419.0",
3
+ "version": "1.420.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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.
@@ -156,6 +156,9 @@ const auxiliary_heat_running = common_device_error.extend({
156
156
  .literal('auxiliary_heat_running')
157
157
  .describe(error_code_description),
158
158
  }).describe(`
159
+ ---
160
+ variant_group_key: thermostats
161
+ ---
159
162
  Indicates that the auxiliary heat is running.
160
163
  `)
161
164
 
@@ -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
@@ -1216,8 +1216,7 @@ export default {
1216
1216
  type: 'object',
1217
1217
  },
1218
1218
  {
1219
- description:
1220
- '\n Indicates that the auxiliary heat is running.\n ',
1219
+ description: 'Indicates that the auxiliary heat is running.',
1221
1220
  properties: {
1222
1221
  created_at: {
1223
1222
  description:
@@ -1250,6 +1249,7 @@ export default {
1250
1249
  'error_code',
1251
1250
  ],
1252
1251
  type: 'object',
1252
+ 'x-variant-group-key': 'thermostats',
1253
1253
  },
1254
1254
  {
1255
1255
  description:
@@ -1837,6 +1837,11 @@ export default {
1837
1837
  description: 'Display name of the access grant.',
1838
1838
  type: 'string',
1839
1839
  },
1840
+ ends_at: {
1841
+ description: 'Date and time at which the access grant ends.',
1842
+ format: 'date-time',
1843
+ type: 'string',
1844
+ },
1840
1845
  location_ids: {
1841
1846
  deprecated: true,
1842
1847
  items: { format: 'uuid', type: 'string' },
@@ -1887,6 +1892,11 @@ export default {
1887
1892
  items: { format: 'uuid', type: 'string' },
1888
1893
  type: 'array',
1889
1894
  },
1895
+ starts_at: {
1896
+ description: 'Date and time at which the access grant starts.',
1897
+ format: 'date-time',
1898
+ type: 'string',
1899
+ },
1890
1900
  user_identity_id: {
1891
1901
  description:
1892
1902
  'ID of user identity to which the access grant gives access.',
@@ -9811,8 +9821,7 @@ export default {
9811
9821
  type: 'object',
9812
9822
  },
9813
9823
  {
9814
- description:
9815
- '\n Indicates that the auxiliary heat is running.\n ',
9824
+ description: 'Indicates that the auxiliary heat is running.',
9816
9825
  properties: {
9817
9826
  created_at: {
9818
9827
  description:
@@ -9845,6 +9854,7 @@ export default {
9845
9854
  'error_code',
9846
9855
  ],
9847
9856
  type: 'object',
9857
+ 'x-variant-group-key': 'thermostats',
9848
9858
  },
9849
9859
  {
9850
9860
  description:
@@ -14344,6 +14354,49 @@ export default {
14344
14354
  type: 'object',
14345
14355
  'x-route-path': '/access_methods',
14346
14356
  },
14357
+ {
14358
+ description:
14359
+ 'An access method was reissued due to an access grant update.',
14360
+ properties: {
14361
+ access_method_id: {
14362
+ description: 'ID of the affected access method.',
14363
+ format: 'uuid',
14364
+ type: 'string',
14365
+ },
14366
+ created_at: {
14367
+ description: 'Date and time at which the event was created.',
14368
+ format: 'date-time',
14369
+ type: 'string',
14370
+ },
14371
+ event_id: {
14372
+ description: 'ID of the event.',
14373
+ format: 'uuid',
14374
+ type: 'string',
14375
+ },
14376
+ event_type: { enum: ['access_method.reissued'], type: 'string' },
14377
+ occurred_at: {
14378
+ description: 'Date and time at which the event occurred.',
14379
+ format: 'date-time',
14380
+ type: 'string',
14381
+ },
14382
+ workspace_id: {
14383
+ description:
14384
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
14385
+ format: 'uuid',
14386
+ type: 'string',
14387
+ },
14388
+ },
14389
+ required: [
14390
+ 'event_id',
14391
+ 'workspace_id',
14392
+ 'created_at',
14393
+ 'occurred_at',
14394
+ 'access_method_id',
14395
+ 'event_type',
14396
+ ],
14397
+ type: 'object',
14398
+ 'x-route-path': '/access_methods',
14399
+ },
14347
14400
  {
14348
14401
  description:
14349
14402
  'An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.',
@@ -20554,8 +20607,7 @@ export default {
20554
20607
  type: 'object',
20555
20608
  },
20556
20609
  {
20557
- description:
20558
- '\n Indicates that the auxiliary heat is running.\n ',
20610
+ description: 'Indicates that the auxiliary heat is running.',
20559
20611
  properties: {
20560
20612
  created_at: {
20561
20613
  description:
@@ -20588,6 +20640,7 @@ export default {
20588
20640
  'error_code',
20589
20641
  ],
20590
20642
  type: 'object',
20643
+ 'x-variant-group-key': 'thermostats',
20591
20644
  },
20592
20645
  {
20593
20646
  description:
@@ -22864,8 +22917,7 @@ export default {
22864
22917
  type: 'object',
22865
22918
  },
22866
22919
  {
22867
- description:
22868
- '\n Indicates that the auxiliary heat is running.\n ',
22920
+ description: 'Indicates that the auxiliary heat is running.',
22869
22921
  properties: {
22870
22922
  created_at: {
22871
22923
  description:
@@ -22898,6 +22950,7 @@ export default {
22898
22950
  'error_code',
22899
22951
  ],
22900
22952
  type: 'object',
22953
+ 'x-variant-group-key': 'thermostats',
22901
22954
  },
22902
22955
  {
22903
22956
  description:
@@ -26367,6 +26420,135 @@ export default {
26367
26420
  'x-title': 'List Access Grants',
26368
26421
  },
26369
26422
  },
26423
+ '/access_grants/update': {
26424
+ patch: {
26425
+ description: "Updates an existing access grant's time window.",
26426
+ operationId: 'accessGrantsUpdatePatch',
26427
+ requestBody: {
26428
+ content: {
26429
+ 'application/json': {
26430
+ schema: {
26431
+ properties: {
26432
+ access_grant_id: {
26433
+ description: 'ID of the access grant to update.',
26434
+ format: 'uuid',
26435
+ type: 'string',
26436
+ },
26437
+ ends_at: {
26438
+ description:
26439
+ '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`.',
26440
+ format: 'date-time',
26441
+ nullable: true,
26442
+ type: 'string',
26443
+ },
26444
+ starts_at: {
26445
+ description:
26446
+ '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.',
26447
+ format: 'date-time',
26448
+ nullable: true,
26449
+ type: 'string',
26450
+ },
26451
+ },
26452
+ required: ['access_grant_id'],
26453
+ type: 'object',
26454
+ },
26455
+ },
26456
+ },
26457
+ },
26458
+ responses: {
26459
+ 200: {
26460
+ content: {
26461
+ 'application/json': {
26462
+ schema: {
26463
+ properties: { ok: { type: 'boolean' } },
26464
+ required: ['ok'],
26465
+ type: 'object',
26466
+ },
26467
+ },
26468
+ },
26469
+ description: 'OK',
26470
+ },
26471
+ 400: { description: 'Bad Request' },
26472
+ 401: { description: 'Unauthorized' },
26473
+ },
26474
+ security: [
26475
+ { pat_with_workspace: [] },
26476
+ { console_session_with_workspace: [] },
26477
+ { api_key: [] },
26478
+ { client_session_with_customer: [] },
26479
+ ],
26480
+ summary: '/access_grants/update',
26481
+ tags: [],
26482
+ 'x-draft': 'Early access.',
26483
+ 'x-fern-ignore': true,
26484
+ 'x-response-key': null,
26485
+ 'x-title': 'Update an Access Grant',
26486
+ },
26487
+ post: {
26488
+ description: "Updates an existing access grant's time window.",
26489
+ operationId: 'accessGrantsUpdatePost',
26490
+ requestBody: {
26491
+ content: {
26492
+ 'application/json': {
26493
+ schema: {
26494
+ properties: {
26495
+ access_grant_id: {
26496
+ description: 'ID of the access grant to update.',
26497
+ format: 'uuid',
26498
+ type: 'string',
26499
+ },
26500
+ ends_at: {
26501
+ description:
26502
+ '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`.',
26503
+ format: 'date-time',
26504
+ nullable: true,
26505
+ type: 'string',
26506
+ },
26507
+ starts_at: {
26508
+ description:
26509
+ '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.',
26510
+ format: 'date-time',
26511
+ nullable: true,
26512
+ type: 'string',
26513
+ },
26514
+ },
26515
+ required: ['access_grant_id'],
26516
+ type: 'object',
26517
+ },
26518
+ },
26519
+ },
26520
+ },
26521
+ responses: {
26522
+ 200: {
26523
+ content: {
26524
+ 'application/json': {
26525
+ schema: {
26526
+ properties: { ok: { type: 'boolean' } },
26527
+ required: ['ok'],
26528
+ type: 'object',
26529
+ },
26530
+ },
26531
+ },
26532
+ description: 'OK',
26533
+ },
26534
+ 400: { description: 'Bad Request' },
26535
+ 401: { description: 'Unauthorized' },
26536
+ },
26537
+ security: [
26538
+ { pat_with_workspace: [] },
26539
+ { console_session_with_workspace: [] },
26540
+ { api_key: [] },
26541
+ { client_session_with_customer: [] },
26542
+ ],
26543
+ summary: '/access_grants/update',
26544
+ tags: [],
26545
+ 'x-draft': 'Early access.',
26546
+ 'x-fern-sdk-group-name': ['access_grants'],
26547
+ 'x-fern-sdk-method-name': 'update',
26548
+ 'x-response-key': null,
26549
+ 'x-title': 'Update an Access Grant',
26550
+ },
26551
+ },
26370
26552
  '/access_methods/delete': {
26371
26553
  post: {
26372
26554
  description: 'Delete an access method.',
@@ -33905,6 +34087,7 @@ export default {
33905
34087
  'access_method.revoked',
33906
34088
  'access_method.card_encoding_required',
33907
34089
  'access_method.deleted',
34090
+ 'access_method.reissued',
33908
34091
  'acs_system.connected',
33909
34092
  'acs_system.added',
33910
34093
  'acs_system.disconnected',
@@ -34001,6 +34184,7 @@ export default {
34001
34184
  'access_method.revoked',
34002
34185
  'access_method.card_encoding_required',
34003
34186
  'access_method.deleted',
34187
+ 'access_method.reissued',
34004
34188
  'acs_system.connected',
34005
34189
  'acs_system.added',
34006
34190
  'acs_system.disconnected',
@@ -11440,6 +11440,10 @@ export interface Routes {
11440
11440
  display_name: string
11441
11441
  /** Date and time at which the access grant was created. */
11442
11442
  created_at: string
11443
+ /** Date and time at which the access grant starts. */
11444
+ starts_at?: string | undefined
11445
+ /** Date and time at which the access grant ends. */
11446
+ ends_at?: string | undefined
11443
11447
  }
11444
11448
  }
11445
11449
  }
@@ -11496,6 +11500,10 @@ export interface Routes {
11496
11500
  display_name: string
11497
11501
  /** Date and time at which the access grant was created. */
11498
11502
  created_at: string
11503
+ /** Date and time at which the access grant starts. */
11504
+ starts_at?: string | undefined
11505
+ /** Date and time at which the access grant ends. */
11506
+ ends_at?: string | undefined
11499
11507
  }
11500
11508
  }
11501
11509
  }
@@ -11548,9 +11556,29 @@ export interface Routes {
11548
11556
  display_name: string
11549
11557
  /** Date and time at which the access grant was created. */
11550
11558
  created_at: string
11559
+ /** Date and time at which the access grant starts. */
11560
+ starts_at?: string | undefined
11561
+ /** Date and time at which the access grant ends. */
11562
+ ends_at?: string | undefined
11551
11563
  }>
11552
11564
  }
11553
11565
  }
11566
+ '/access_grants/update': {
11567
+ route: '/access_grants/update'
11568
+ method: 'POST' | 'PATCH'
11569
+ queryParams: {}
11570
+ jsonBody: {}
11571
+ commonParams: {
11572
+ /** ID of the access grant to update. */
11573
+ access_grant_id: string
11574
+ /** 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. */
11575
+ starts_at?: (string | null) | undefined
11576
+ /** 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`. */
11577
+ ends_at?: (string | null) | undefined
11578
+ }
11579
+ formData: {}
11580
+ jsonResponse: {}
11581
+ }
11554
11582
  '/access_methods/delete': {
11555
11583
  route: '/access_methods/delete'
11556
11584
  method: 'GET' | 'POST'
@@ -30246,6 +30274,19 @@ export interface Routes {
30246
30274
  access_method_id: string
30247
30275
  event_type: 'access_method.deleted'
30248
30276
  }
30277
+ | {
30278
+ /** ID of the event. */
30279
+ event_id: string
30280
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
30281
+ workspace_id: string
30282
+ /** Date and time at which the event was created. */
30283
+ created_at: string
30284
+ /** Date and time at which the event occurred. */
30285
+ occurred_at: string
30286
+ /** ID of the affected access method. */
30287
+ access_method_id: string
30288
+ event_type: 'access_method.reissued'
30289
+ }
30249
30290
  | {
30250
30291
  /** ID of the event. */
30251
30292
  event_id: string
@@ -31373,6 +31414,7 @@ export interface Routes {
31373
31414
  | 'access_method.revoked'
31374
31415
  | 'access_method.card_encoding_required'
31375
31416
  | 'access_method.deleted'
31417
+ | 'access_method.reissued'
31376
31418
  | 'acs_system.connected'
31377
31419
  | 'acs_system.added'
31378
31420
  | 'acs_system.disconnected'
@@ -31467,6 +31509,7 @@ export interface Routes {
31467
31509
  | 'access_method.revoked'
31468
31510
  | 'access_method.card_encoding_required'
31469
31511
  | 'access_method.deleted'
31512
+ | 'access_method.reissued'
31470
31513
  | 'acs_system.connected'
31471
31514
  | 'acs_system.added'
31472
31515
  | 'acs_system.disconnected'
@@ -31963,6 +32006,19 @@ export interface Routes {
31963
32006
  access_method_id: string
31964
32007
  event_type: 'access_method.deleted'
31965
32008
  }
32009
+ | {
32010
+ /** ID of the event. */
32011
+ event_id: string
32012
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
32013
+ workspace_id: string
32014
+ /** Date and time at which the event was created. */
32015
+ created_at: string
32016
+ /** Date and time at which the event occurred. */
32017
+ occurred_at: string
32018
+ /** ID of the affected access method. */
32019
+ access_method_id: string
32020
+ event_type: 'access_method.reissued'
32021
+ }
31966
32022
  | {
31967
32023
  /** ID of the event. */
31968
32024
  event_id: string
@@ -71608,6 +71664,10 @@ export interface Routes {
71608
71664
  display_name: string
71609
71665
  /** Date and time at which the access grant was created. */
71610
71666
  created_at: string
71667
+ /** Date and time at which the access grant starts. */
71668
+ starts_at?: string | undefined
71669
+ /** Date and time at which the access grant ends. */
71670
+ ends_at?: string | undefined
71611
71671
  }
71612
71672
  }
71613
71673
  }
@@ -71664,6 +71724,10 @@ export interface Routes {
71664
71724
  display_name: string
71665
71725
  /** Date and time at which the access grant was created. */
71666
71726
  created_at: string
71727
+ /** Date and time at which the access grant starts. */
71728
+ starts_at?: string | undefined
71729
+ /** Date and time at which the access grant ends. */
71730
+ ends_at?: string | undefined
71667
71731
  }
71668
71732
  }
71669
71733
  }
@@ -71716,6 +71780,10 @@ export interface Routes {
71716
71780
  display_name: string
71717
71781
  /** Date and time at which the access grant was created. */
71718
71782
  created_at: string
71783
+ /** Date and time at which the access grant starts. */
71784
+ starts_at?: string | undefined
71785
+ /** Date and time at which the access grant ends. */
71786
+ ends_at?: string | undefined
71719
71787
  }>
71720
71788
  }
71721
71789
  }