@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
@@ -135,11 +135,19 @@ const salto_ks_subscription_limit_almost_reached = common_connected_account_warn
135
135
  .describe('Salto KS metadata associated with the connected account that has a warning.'),
136
136
  })
137
137
  .describe('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.');
138
+ const account_reauthorization_requested = common_connected_account_warning
139
+ .extend({
140
+ warning_code: z
141
+ .literal('account_reauthorization_requested')
142
+ .describe(warning_code_description),
143
+ })
144
+ .describe('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.');
138
145
  const connected_account_warning = z
139
146
  .discriminatedUnion('warning_code', [
140
147
  scheduled_maintenance_window,
141
148
  unknown_issue_with_connected_account,
142
149
  salto_ks_subscription_limit_almost_reached,
150
+ account_reauthorization_requested,
143
151
  ])
144
152
  .describe('Warning associated with the connected account.');
145
153
  const _connected_account_warning_map = z.object({
@@ -150,6 +158,9 @@ const _connected_account_warning_map = z.object({
150
158
  .nullable()
151
159
  .optional(),
152
160
  salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional(),
161
+ account_reauthorization_requested: account_reauthorization_requested
162
+ .nullable()
163
+ .optional(),
153
164
  });
154
165
  export const connected_account = z.object({
155
166
  connected_account_id: z
@@ -1 +1 @@
1
- {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;IACH,0BAA0B,EAAE,CAAC;SAC1B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,+EAA+E,CAChF;IACH,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AAe;IACf,gCAAgC,EAAE,CAAC;SAChC,OAAO,EAAE;SACT,QAAQ,CACP,4QAA4Q,CAC7Q;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0EAA0E,CAC3E;IACH,qBAAqB,EAAE,CAAC;SACrB,KAAK,CAAC,mBAAmB,CAAC;SAC1B,QAAQ,CACP,gFAAgF,CACjF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
1
+ {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;IACH,0BAA0B,EAAE,CAAC;SAC1B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,+EAA+E,CAChF;IACH,eAAe,EAAE,CAAC;SACf,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,qHAAqH,CACtH;CACJ,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAC1B,oGAAoG,CAAA;AAEtG,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EA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Q,CAC7Q;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0EAA0E,CAC3E;IACH,qBAAqB,EAAE,CAAC;SACrB,KAAK,CAAC,mBAAmB,CAAC;SAC1B,QAAQ,CACP,gFAAgF,CACjF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
@@ -209,6 +209,34 @@ export declare const connected_account_completed_first_sync_after_reconnection_e
209
209
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
210
210
  }>;
211
211
  export type ConnectedAccountCompletedFirstSyncAfterReconnectionEvent = z.infer<typeof connected_account_completed_first_sync_after_reconnection_event>;
212
+ export declare const connected_account_reauthorization_requested_event: z.ZodObject<{
213
+ event_id: z.ZodString;
214
+ workspace_id: z.ZodString;
215
+ created_at: z.ZodString;
216
+ occurred_at: z.ZodString;
217
+ } & {
218
+ connected_account_id: z.ZodString;
219
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
220
+ } & {
221
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
222
+ }, "strip", z.ZodTypeAny, {
223
+ workspace_id: string;
224
+ created_at: string;
225
+ connected_account_id: string;
226
+ event_id: string;
227
+ occurred_at: string;
228
+ event_type: "connected_account.reauthorization_requested";
229
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
230
+ }, {
231
+ workspace_id: string;
232
+ created_at: string;
233
+ connected_account_id: string;
234
+ event_id: string;
235
+ occurred_at: string;
236
+ event_type: "connected_account.reauthorization_requested";
237
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
238
+ }>;
239
+ export type ConnectedAccountReauthorizationRequestedEvent = z.infer<typeof connected_account_reauthorization_requested_event>;
212
240
  export declare const connected_account_events: readonly [z.ZodObject<{
213
241
  event_id: z.ZodString;
214
242
  workspace_id: z.ZodString;
@@ -403,4 +431,30 @@ export declare const connected_account_events: readonly [z.ZodObject<{
403
431
  occurred_at: string;
404
432
  event_type: "connected_account.completed_first_sync_after_reconnection";
405
433
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
434
+ }>, z.ZodObject<{
435
+ event_id: z.ZodString;
436
+ workspace_id: z.ZodString;
437
+ created_at: z.ZodString;
438
+ occurred_at: z.ZodString;
439
+ } & {
440
+ connected_account_id: z.ZodString;
441
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
442
+ } & {
443
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
444
+ }, "strip", z.ZodTypeAny, {
445
+ workspace_id: string;
446
+ created_at: string;
447
+ connected_account_id: string;
448
+ event_id: string;
449
+ occurred_at: string;
450
+ event_type: "connected_account.reauthorization_requested";
451
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
452
+ }, {
453
+ workspace_id: string;
454
+ created_at: string;
455
+ connected_account_id: string;
456
+ event_id: string;
457
+ occurred_at: string;
458
+ event_type: "connected_account.reauthorization_requested";
459
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
406
460
  }>];
@@ -79,6 +79,14 @@ export const connected_account_completed_first_sync_after_reconnection_event = c
79
79
  ---
80
80
  A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) completed the first sync after reconnection with Seam, and the corresponding devices or systems are now available.
81
81
  `);
82
+ export const connected_account_reauthorization_requested_event = connected_account_event.extend({
83
+ event_type: z.literal('connected_account.reauthorization_requested'),
84
+ }).describe(`
85
+ ---
86
+ route_path: /connected_accounts
87
+ ---
88
+ 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.
89
+ `);
82
90
  export const connected_account_events = [
83
91
  connected_account_connected_event,
84
92
  connected_account_created_event,
@@ -87,5 +95,6 @@ export const connected_account_events = [
87
95
  connected_account_completed_first_sync_event,
88
96
  connected_account_deleted_event,
89
97
  connected_account_completed_first_sync_after_reconnection_event,
98
+ connected_account_reauthorization_requested_event,
90
99
  ];
91
100
  //# sourceMappingURL=connected-accounts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,uGAAuG,CACxG;IACH,iCAAiC,EAAE,eAAe;SAC/C,QAAQ,EAAE;SACV,QAAQ,CACP,0FAA0F,CAC3F;CACJ,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,IAAI,EAAE;KACN,QAAQ,CACP,oHAAoH,CACrH,CAAA;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB,CAAC,MAAM,CAC7E;IACE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IACpD,kBAAkB,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IACjD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,kEAAkE,CACnE;CACJ,CACF,CAAC,QAAQ,CAAC;;;;;CAKV,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAC5E,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAClD,kBAAkB;CACnB,CAAC,CAAC,QAAQ,CAAC;;;;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AC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC;CACxD,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,4CAA4C,GACvD,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,wCAAwC,CAAC;CAChE,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAC5E,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;CACnD,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,+DAA+D,GAC1E,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CACnB,2DAA2D,CAC5D;CACF,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,iDAAiD,GAC5D,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,6CAA6C,CAAC;CACrE,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iCAAiC;IACjC,+BAA+B;IAC/B,wCAAwC;IACxC,oCAAoC;IACpC,4CAA4C;IAC5C,+BAA+B;IAC/B,+DAA+D;IAC/D,iDAAiD;CACzC,CAAA"}
@@ -1540,6 +1540,32 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
1540
1540
  occurred_at: string;
1541
1541
  event_type: "connected_account.completed_first_sync_after_reconnection";
1542
1542
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1543
+ }>, z.ZodObject<{
1544
+ event_id: z.ZodString;
1545
+ workspace_id: z.ZodString;
1546
+ created_at: z.ZodString;
1547
+ occurred_at: z.ZodString;
1548
+ } & {
1549
+ connected_account_id: z.ZodString;
1550
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
1551
+ } & {
1552
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ workspace_id: string;
1555
+ created_at: string;
1556
+ connected_account_id: string;
1557
+ event_id: string;
1558
+ occurred_at: string;
1559
+ event_type: "connected_account.reauthorization_requested";
1560
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1561
+ }, {
1562
+ workspace_id: string;
1563
+ created_at: string;
1564
+ connected_account_id: string;
1565
+ event_id: string;
1566
+ occurred_at: string;
1567
+ event_type: "connected_account.reauthorization_requested";
1568
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1543
1569
  }>, ...(z.ZodObject<{
1544
1570
  event_id: z.ZodString;
1545
1571
  workspace_id: z.ZodString;
@@ -2981,5 +3007,5 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
2981
3007
  device_custom_metadata?: Record<string, string | boolean> | undefined;
2982
3008
  }>]>;
2983
3009
  export type SeamEvent = z.infer<typeof seam_event>;
2984
- export declare const seam_event_type: z.ZodEnum<["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.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "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" | "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", ...("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.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "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" | "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")[]]>;
3010
+ export declare const seam_event_type: z.ZodEnum<["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.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "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" | "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", ...("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.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "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" | "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")[]]>;
2985
3011
  export type SeamEventType = SeamEvent['event_type'];
@@ -694,6 +694,32 @@ export default {
694
694
  required: ['message', 'is_access_code_error', 'error_code'],
695
695
  type: 'object',
696
696
  },
697
+ {
698
+ description: '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.',
699
+ properties: {
700
+ created_at: {
701
+ description: 'Date and time at which Seam created the error.',
702
+ format: 'date-time',
703
+ type: 'string',
704
+ },
705
+ error_code: {
706
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
707
+ enum: ['kwikset_insufficient_permissions'],
708
+ type: 'string',
709
+ },
710
+ is_access_code_error: {
711
+ description: 'Indicates that this is an access code error.',
712
+ enum: [true],
713
+ type: 'boolean',
714
+ },
715
+ message: {
716
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
717
+ type: 'string',
718
+ },
719
+ },
720
+ required: ['message', 'is_access_code_error', 'error_code'],
721
+ type: 'object',
722
+ },
697
723
  {
698
724
  description: 'Indicates that the account is disconnected.',
699
725
  properties: {
@@ -8172,6 +8198,27 @@ export default {
8172
8198
  ],
8173
8199
  type: 'object',
8174
8200
  },
8201
+ {
8202
+ description: '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.',
8203
+ properties: {
8204
+ created_at: {
8205
+ description: 'Date and time at which Seam created the warning.',
8206
+ format: 'date-time',
8207
+ type: 'string',
8208
+ },
8209
+ message: {
8210
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
8211
+ type: 'string',
8212
+ },
8213
+ warning_code: {
8214
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
8215
+ enum: ['account_reauthorization_requested'],
8216
+ type: 'string',
8217
+ },
8218
+ },
8219
+ required: ['created_at', 'message', 'warning_code'],
8220
+ type: 'object',
8221
+ },
8175
8222
  ],
8176
8223
  },
8177
8224
  type: 'array',
@@ -14557,6 +14604,57 @@ export default {
14557
14604
  type: 'object',
14558
14605
  'x-route-path': '/connected_accounts',
14559
14606
  },
14607
+ {
14608
+ description: '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.',
14609
+ properties: {
14610
+ connected_account_custom_metadata: {
14611
+ additionalProperties: {
14612
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
14613
+ },
14614
+ description: 'Custom metadata of the connected account, present when connected_account_id is provided.',
14615
+ type: 'object',
14616
+ },
14617
+ connected_account_id: {
14618
+ description: 'ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
14619
+ format: 'uuid',
14620
+ type: 'string',
14621
+ },
14622
+ created_at: {
14623
+ description: 'Date and time at which the event was created.',
14624
+ format: 'date-time',
14625
+ type: 'string',
14626
+ },
14627
+ event_id: {
14628
+ description: 'ID of the event.',
14629
+ format: 'uuid',
14630
+ type: 'string',
14631
+ },
14632
+ event_type: {
14633
+ enum: ['connected_account.reauthorization_requested'],
14634
+ type: 'string',
14635
+ },
14636
+ occurred_at: {
14637
+ description: 'Date and time at which the event occurred.',
14638
+ format: 'date-time',
14639
+ type: 'string',
14640
+ },
14641
+ workspace_id: {
14642
+ description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
14643
+ format: 'uuid',
14644
+ type: 'string',
14645
+ },
14646
+ },
14647
+ required: [
14648
+ 'event_id',
14649
+ 'workspace_id',
14650
+ 'created_at',
14651
+ 'occurred_at',
14652
+ 'connected_account_id',
14653
+ 'event_type',
14654
+ ],
14655
+ type: 'object',
14656
+ 'x-route-path': '/connected_accounts',
14657
+ },
14560
14658
  {
14561
14659
  description: 'A lock door [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) succeeded.',
14562
14660
  properties: {
@@ -19451,6 +19549,32 @@ export default {
19451
19549
  required: ['message', 'is_access_code_error', 'error_code'],
19452
19550
  type: 'object',
19453
19551
  },
19552
+ {
19553
+ description: '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.',
19554
+ properties: {
19555
+ created_at: {
19556
+ description: 'Date and time at which Seam created the error.',
19557
+ format: 'date-time',
19558
+ type: 'string',
19559
+ },
19560
+ error_code: {
19561
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
19562
+ enum: ['kwikset_insufficient_permissions'],
19563
+ type: 'string',
19564
+ },
19565
+ is_access_code_error: {
19566
+ description: 'Indicates that this is an access code error.',
19567
+ enum: [true],
19568
+ type: 'boolean',
19569
+ },
19570
+ message: {
19571
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
19572
+ type: 'string',
19573
+ },
19574
+ },
19575
+ required: ['message', 'is_access_code_error', 'error_code'],
19576
+ type: 'object',
19577
+ },
19454
19578
  {
19455
19579
  description: 'Indicates that the account is disconnected.',
19456
19580
  properties: {
@@ -39713,6 +39837,7 @@ export default {
39713
39837
  'connected_account.completed_first_sync',
39714
39838
  'connected_account.deleted',
39715
39839
  'connected_account.completed_first_sync_after_reconnection',
39840
+ 'connected_account.reauthorization_requested',
39716
39841
  'action_attempt.lock_door.succeeded',
39717
39842
  'action_attempt.lock_door.failed',
39718
39843
  'action_attempt.unlock_door.succeeded',
@@ -39815,6 +39940,7 @@ export default {
39815
39940
  'connected_account.completed_first_sync',
39816
39941
  'connected_account.deleted',
39817
39942
  'connected_account.completed_first_sync_after_reconnection',
39943
+ 'connected_account.reauthorization_requested',
39818
39944
  'action_attempt.lock_door.succeeded',
39819
39945
  'action_attempt.lock_door.failed',
39820
39946
  'action_attempt.unlock_door.succeeded',
@@ -40059,6 +40185,7 @@ export default {
40059
40185
  'connected_account.completed_first_sync',
40060
40186
  'connected_account.deleted',
40061
40187
  'connected_account.completed_first_sync_after_reconnection',
40188
+ 'connected_account.reauthorization_requested',
40062
40189
  'action_attempt.lock_door.succeeded',
40063
40190
  'action_attempt.lock_door.failed',
40064
40191
  'action_attempt.unlock_door.succeeded',
@@ -40157,6 +40284,7 @@ export default {
40157
40284
  'connected_account.completed_first_sync',
40158
40285
  'connected_account.deleted',
40159
40286
  'connected_account.completed_first_sync_after_reconnection',
40287
+ 'connected_account.reauthorization_requested',
40160
40288
  'action_attempt.lock_door.succeeded',
40161
40289
  'action_attempt.lock_door.failed',
40162
40290
  'action_attempt.unlock_door.succeeded',
@@ -45129,6 +45257,7 @@ export default {
45129
45257
  'connected_account.completed_first_sync',
45130
45258
  'connected_account.deleted',
45131
45259
  'connected_account.completed_first_sync_after_reconnection',
45260
+ 'connected_account.reauthorization_requested',
45132
45261
  'action_attempt.lock_door.succeeded',
45133
45262
  'action_attempt.lock_door.failed',
45134
45263
  'action_attempt.unlock_door.succeeded',
@@ -45232,6 +45361,7 @@ export default {
45232
45361
  'connected_account.completed_first_sync',
45233
45362
  'connected_account.deleted',
45234
45363
  'connected_account.completed_first_sync_after_reconnection',
45364
+ 'connected_account.reauthorization_requested',
45235
45365
  'action_attempt.lock_door.succeeded',
45236
45366
  'action_attempt.lock_door.failed',
45237
45367
  'action_attempt.unlock_door.succeeded',
@@ -45396,6 +45526,7 @@ export default {
45396
45526
  'connected_account.completed_first_sync',
45397
45527
  'connected_account.deleted',
45398
45528
  'connected_account.completed_first_sync_after_reconnection',
45529
+ 'connected_account.reauthorization_requested',
45399
45530
  'action_attempt.lock_door.succeeded',
45400
45531
  'action_attempt.lock_door.failed',
45401
45532
  'action_attempt.unlock_door.succeeded',
@@ -45494,6 +45625,7 @@ export default {
45494
45625
  'connected_account.completed_first_sync',
45495
45626
  'connected_account.deleted',
45496
45627
  'connected_account.completed_first_sync_after_reconnection',
45628
+ 'connected_account.reauthorization_requested',
45497
45629
  'action_attempt.lock_door.succeeded',
45498
45630
  'action_attempt.lock_door.failed',
45499
45631
  'action_attempt.unlock_door.succeeded',