@seamapi/types 1.562.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.
@@ -26270,6 +26270,32 @@ declare const batch: z.ZodObject<{
26270
26270
  occurred_at: string;
26271
26271
  event_type: "connected_account.completed_first_sync_after_reconnection";
26272
26272
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
26273
+ }>, z.ZodObject<{
26274
+ event_id: z.ZodString;
26275
+ workspace_id: z.ZodString;
26276
+ created_at: z.ZodString;
26277
+ occurred_at: z.ZodString;
26278
+ } & {
26279
+ connected_account_id: z.ZodString;
26280
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
26281
+ } & {
26282
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
26283
+ }, "strip", z.ZodTypeAny, {
26284
+ workspace_id: string;
26285
+ created_at: string;
26286
+ connected_account_id: string;
26287
+ event_id: string;
26288
+ occurred_at: string;
26289
+ event_type: "connected_account.reauthorization_requested";
26290
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
26291
+ }, {
26292
+ workspace_id: string;
26293
+ created_at: string;
26294
+ connected_account_id: string;
26295
+ event_id: string;
26296
+ occurred_at: string;
26297
+ event_type: "connected_account.reauthorization_requested";
26298
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
26273
26299
  }>, ...(z.ZodObject<{
26274
26300
  event_id: z.ZodString;
26275
26301
  workspace_id: z.ZodString;
@@ -33790,6 +33816,14 @@ declare const batch: z.ZodObject<{
33790
33816
  occurred_at: string;
33791
33817
  event_type: "connected_account.completed_first_sync_after_reconnection";
33792
33818
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
33819
+ } | {
33820
+ workspace_id: string;
33821
+ created_at: string;
33822
+ connected_account_id: string;
33823
+ event_id: string;
33824
+ occurred_at: string;
33825
+ event_type: "connected_account.reauthorization_requested";
33826
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
33793
33827
  } | {
33794
33828
  device_id: string;
33795
33829
  workspace_id: string;
@@ -37681,6 +37715,14 @@ declare const batch: z.ZodObject<{
37681
37715
  occurred_at: string;
37682
37716
  event_type: "connected_account.completed_first_sync_after_reconnection";
37683
37717
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
37718
+ } | {
37719
+ workspace_id: string;
37720
+ created_at: string;
37721
+ connected_account_id: string;
37722
+ event_id: string;
37723
+ occurred_at: string;
37724
+ event_type: "connected_account.reauthorization_requested";
37725
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
37684
37726
  } | {
37685
37727
  device_id: string;
37686
37728
  workspace_id: string;
@@ -39152,6 +39194,19 @@ declare const connected_account_warning: z.ZodDiscriminatedUnion<"warning_code",
39152
39194
  }[];
39153
39195
  };
39154
39196
  warning_code: "salto_ks_subscription_limit_almost_reached";
39197
+ }>, z.ZodObject<{
39198
+ created_at: z.ZodString;
39199
+ message: z.ZodString;
39200
+ } & {
39201
+ warning_code: z.ZodLiteral<"account_reauthorization_requested">;
39202
+ }, "strip", z.ZodTypeAny, {
39203
+ message: string;
39204
+ created_at: string;
39205
+ warning_code: "account_reauthorization_requested";
39206
+ }, {
39207
+ message: string;
39208
+ created_at: string;
39209
+ warning_code: "account_reauthorization_requested";
39155
39210
  }>]>;
39156
39211
  declare const connected_account: z.ZodObject<{
39157
39212
  connected_account_id: z.ZodString;
@@ -39370,6 +39425,19 @@ declare const connected_account: z.ZodObject<{
39370
39425
  }[];
39371
39426
  };
39372
39427
  warning_code: "salto_ks_subscription_limit_almost_reached";
39428
+ }>, z.ZodObject<{
39429
+ created_at: z.ZodString;
39430
+ message: z.ZodString;
39431
+ } & {
39432
+ warning_code: z.ZodLiteral<"account_reauthorization_requested">;
39433
+ }, "strip", z.ZodTypeAny, {
39434
+ message: string;
39435
+ created_at: string;
39436
+ warning_code: "account_reauthorization_requested";
39437
+ }, {
39438
+ message: string;
39439
+ created_at: string;
39440
+ warning_code: "account_reauthorization_requested";
39373
39441
  }>]>, "many">;
39374
39442
  custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
39375
39443
  automatically_manage_new_devices: z.ZodBoolean;
@@ -39425,6 +39493,10 @@ declare const connected_account: z.ZodObject<{
39425
39493
  }[];
39426
39494
  };
39427
39495
  warning_code: "salto_ks_subscription_limit_almost_reached";
39496
+ } | {
39497
+ message: string;
39498
+ created_at: string;
39499
+ warning_code: "account_reauthorization_requested";
39428
39500
  })[];
39429
39501
  custom_metadata: Record<string, string | boolean>;
39430
39502
  automatically_manage_new_devices: boolean;
@@ -39489,6 +39561,10 @@ declare const connected_account: z.ZodObject<{
39489
39561
  }[];
39490
39562
  };
39491
39563
  warning_code: "salto_ks_subscription_limit_almost_reached";
39564
+ } | {
39565
+ message: string;
39566
+ created_at: string;
39567
+ warning_code: "account_reauthorization_requested";
39492
39568
  })[];
39493
39569
  custom_metadata: Record<string, string | boolean>;
39494
39570
  automatically_manage_new_devices: boolean;
@@ -49230,6 +49306,32 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
49230
49306
  occurred_at: string;
49231
49307
  event_type: "connected_account.completed_first_sync_after_reconnection";
49232
49308
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
49309
+ }>, z.ZodObject<{
49310
+ event_id: z.ZodString;
49311
+ workspace_id: z.ZodString;
49312
+ created_at: z.ZodString;
49313
+ occurred_at: z.ZodString;
49314
+ } & {
49315
+ connected_account_id: z.ZodString;
49316
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
49317
+ } & {
49318
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
49319
+ }, "strip", z.ZodTypeAny, {
49320
+ workspace_id: string;
49321
+ created_at: string;
49322
+ connected_account_id: string;
49323
+ event_id: string;
49324
+ occurred_at: string;
49325
+ event_type: "connected_account.reauthorization_requested";
49326
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
49327
+ }, {
49328
+ workspace_id: string;
49329
+ created_at: string;
49330
+ connected_account_id: string;
49331
+ event_id: string;
49332
+ occurred_at: string;
49333
+ event_type: "connected_account.reauthorization_requested";
49334
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
49233
49335
  }>, ...(z.ZodObject<{
49234
49336
  event_id: z.ZodString;
49235
49337
  workspace_id: z.ZodString;
@@ -115508,6 +115610,13 @@ type Routes = {
115508
115610
  subscribed_site_user_count: number;
115509
115611
  }[];
115510
115612
  };
115613
+ } | {
115614
+ /** Date and time at which Seam created the warning. */
115615
+ created_at: string;
115616
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
115617
+ message: string;
115618
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
115619
+ warning_code: 'account_reauthorization_requested';
115511
115620
  })[];
115512
115621
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
115513
115622
  custom_metadata: {
@@ -122130,6 +122239,22 @@ type Routes = {
122130
122239
  [x: string]: string | boolean;
122131
122240
  } | undefined;
122132
122241
  event_type: 'connected_account.completed_first_sync_after_reconnection';
122242
+ } | {
122243
+ /** ID of the event. */
122244
+ event_id: string;
122245
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
122246
+ workspace_id: string;
122247
+ /** Date and time at which the event was created. */
122248
+ created_at: string;
122249
+ /** Date and time at which the event occurred. */
122250
+ occurred_at: string;
122251
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
122252
+ connected_account_id: string;
122253
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
122254
+ connected_account_custom_metadata?: {
122255
+ [x: string]: string | boolean;
122256
+ } | undefined;
122257
+ event_type: 'connected_account.reauthorization_requested';
122133
122258
  } | {
122134
122259
  /** ID of the event. */
122135
122260
  event_id: string;
@@ -134696,6 +134821,13 @@ type Routes = {
134696
134821
  subscribed_site_user_count: number;
134697
134822
  }[];
134698
134823
  };
134824
+ } | {
134825
+ /** Date and time at which Seam created the warning. */
134826
+ created_at: string;
134827
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
134828
+ message: string;
134829
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
134830
+ warning_code: 'account_reauthorization_requested';
134699
134831
  })[];
134700
134832
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
134701
134833
  custom_metadata: {
@@ -134840,6 +134972,13 @@ type Routes = {
134840
134972
  subscribed_site_user_count: number;
134841
134973
  }[];
134842
134974
  };
134975
+ } | {
134976
+ /** Date and time at which Seam created the warning. */
134977
+ created_at: string;
134978
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
134979
+ message: string;
134980
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
134981
+ warning_code: 'account_reauthorization_requested';
134843
134982
  })[];
134844
134983
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
134845
134984
  custom_metadata: {
@@ -135002,6 +135141,13 @@ type Routes = {
135002
135141
  subscribed_site_user_count: number;
135003
135142
  }[];
135004
135143
  };
135144
+ } | {
135145
+ /** Date and time at which Seam created the warning. */
135146
+ created_at: string;
135147
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
135148
+ message: string;
135149
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
135150
+ warning_code: 'account_reauthorization_requested';
135005
135151
  })[];
135006
135152
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
135007
135153
  custom_metadata: {
@@ -140036,6 +140182,22 @@ type Routes = {
140036
140182
  [x: string]: string | boolean;
140037
140183
  } | undefined;
140038
140184
  event_type: 'connected_account.completed_first_sync_after_reconnection';
140185
+ } | {
140186
+ /** ID of the event. */
140187
+ event_id: string;
140188
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
140189
+ workspace_id: string;
140190
+ /** Date and time at which the event was created. */
140191
+ created_at: string;
140192
+ /** Date and time at which the event occurred. */
140193
+ occurred_at: string;
140194
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
140195
+ connected_account_id: string;
140196
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
140197
+ connected_account_custom_metadata?: {
140198
+ [x: string]: string | boolean;
140199
+ } | undefined;
140200
+ event_type: 'connected_account.reauthorization_requested';
140039
140201
  } | {
140040
140202
  /** ID of the event. */
140041
140203
  event_id: string;
@@ -141015,9 +141177,9 @@ type Routes = {
141015
141177
  /** IDs of the access codes for which you want to list events. */
141016
141178
  access_code_ids?: string[] | undefined;
141017
141179
  /** Type of the events that you want to list. */
141018
- event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
141180
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
141019
141181
  /** Types of the events that you want to list. */
141020
- event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
141182
+ event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
141021
141183
  /** ID of the connected account for which you want to list events. */
141022
141184
  connected_account_id?: string | undefined;
141023
141185
  /** ID of the Connect Webview for which you want to list events. */
@@ -141960,6 +142122,22 @@ type Routes = {
141960
142122
  [x: string]: string | boolean;
141961
142123
  } | undefined;
141962
142124
  event_type: 'connected_account.completed_first_sync_after_reconnection';
142125
+ } | {
142126
+ /** ID of the event. */
142127
+ event_id: string;
142128
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
142129
+ workspace_id: string;
142130
+ /** Date and time at which the event was created. */
142131
+ created_at: string;
142132
+ /** Date and time at which the event occurred. */
142133
+ occurred_at: string;
142134
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
142135
+ connected_account_id: string;
142136
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
142137
+ connected_account_custom_metadata?: {
142138
+ [x: string]: string | boolean;
142139
+ } | undefined;
142140
+ event_type: 'connected_account.reauthorization_requested';
141963
142141
  } | {
141964
142142
  /** ID of the event. */
141965
142143
  event_id: string;
@@ -160042,9 +160220,9 @@ type Routes = {
160042
160220
  /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
160043
160221
  between?: (string | Date)[] | undefined;
160044
160222
  /** Type of the events that you want to list. */
160045
- event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
160223
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
160046
160224
  /** Types of the events that you want to list. */
160047
- event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
160225
+ event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
160048
160226
  /** Numerical limit on the number of events to return. */
160049
160227
  limit?: number;
160050
160228
  };
@@ -160981,6 +161159,22 @@ type Routes = {
160981
161159
  [x: string]: string | boolean;
160982
161160
  } | undefined;
160983
161161
  event_type: 'connected_account.completed_first_sync_after_reconnection';
161162
+ } | {
161163
+ /** ID of the event. */
161164
+ event_id: string;
161165
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
161166
+ workspace_id: string;
161167
+ /** Date and time at which the event was created. */
161168
+ created_at: string;
161169
+ /** Date and time at which the event occurred. */
161170
+ occurred_at: string;
161171
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
161172
+ connected_account_id: string;
161173
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
161174
+ connected_account_custom_metadata?: {
161175
+ [x: string]: string | boolean;
161176
+ } | undefined;
161177
+ event_type: 'connected_account.reauthorization_requested';
160984
161178
  } | {
160985
161179
  /** ID of the event. */
160986
161180
  event_id: string;
@@ -164265,6 +164459,13 @@ type Routes = {
164265
164459
  subscribed_site_user_count: number;
164266
164460
  }[];
164267
164461
  };
164462
+ } | {
164463
+ /** Date and time at which Seam created the warning. */
164464
+ created_at: string;
164465
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
164466
+ message: string;
164467
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
164468
+ warning_code: 'account_reauthorization_requested';
164268
164469
  })[];
164269
164470
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
164270
164471
  custom_metadata: {
@@ -188636,6 +188837,22 @@ type Routes = {
188636
188837
  [x: string]: string | boolean;
188637
188838
  } | undefined;
188638
188839
  event_type: 'connected_account.completed_first_sync_after_reconnection';
188840
+ } | {
188841
+ /** ID of the event. */
188842
+ event_id: string;
188843
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
188844
+ workspace_id: string;
188845
+ /** Date and time at which the event was created. */
188846
+ created_at: string;
188847
+ /** Date and time at which the event occurred. */
188848
+ occurred_at: string;
188849
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
188850
+ connected_account_id: string;
188851
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
188852
+ connected_account_custom_metadata?: {
188853
+ [x: string]: string | boolean;
188854
+ } | undefined;
188855
+ event_type: 'connected_account.reauthorization_requested';
188639
188856
  } | {
188640
188857
  /** ID of the event. */
188641
188858
  event_id: string;
package/dist/index.cjs CHANGED
@@ -663,15 +663,22 @@ var salto_ks_subscription_limit_almost_reached = common_connected_account_warnin
663
663
  }).describe(
664
664
  "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."
665
665
  );
666
+ var account_reauthorization_requested = common_connected_account_warning.extend({
667
+ warning_code: zod.z.literal("account_reauthorization_requested").describe(warning_code_description)
668
+ }).describe(
669
+ "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."
670
+ );
666
671
  var connected_account_warning = zod.z.discriminatedUnion("warning_code", [
667
672
  scheduled_maintenance_window,
668
673
  unknown_issue_with_connected_account,
669
- salto_ks_subscription_limit_almost_reached
674
+ salto_ks_subscription_limit_almost_reached,
675
+ account_reauthorization_requested
670
676
  ]).describe("Warning associated with the connected account.");
671
677
  zod.z.object({
672
678
  scheduled_maintenance_window: scheduled_maintenance_window.nullable().optional(),
673
679
  unknown_issue_with_connected_account: unknown_issue_with_connected_account.nullable().optional(),
674
- salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional()
680
+ salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional(),
681
+ account_reauthorization_requested: account_reauthorization_requested.nullable().optional()
675
682
  });
676
683
  var connected_account = zod.z.object({
677
684
  connected_account_id: zod.z.string().uuid().describe("ID of the connected account."),
@@ -4776,6 +4783,14 @@ var connected_account_completed_first_sync_after_reconnection_event = connected_
4776
4783
  ---
4777
4784
  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.
4778
4785
  `);
4786
+ var connected_account_reauthorization_requested_event = connected_account_event.extend({
4787
+ event_type: zod.z.literal("connected_account.reauthorization_requested")
4788
+ }).describe(`
4789
+ ---
4790
+ route_path: /connected_accounts
4791
+ ---
4792
+ 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.
4793
+ `);
4779
4794
  var connected_account_events = [
4780
4795
  connected_account_connected_event,
4781
4796
  connected_account_created_event,
@@ -4783,7 +4798,8 @@ var connected_account_events = [
4783
4798
  connected_account_disconnected_event,
4784
4799
  connected_account_completed_first_sync_event,
4785
4800
  connected_account_deleted_event,
4786
- connected_account_completed_first_sync_after_reconnection_event
4801
+ connected_account_completed_first_sync_after_reconnection_event,
4802
+ connected_account_reauthorization_requested_event
4787
4803
  ];
4788
4804
  var device_event = common_event.extend({
4789
4805
  device_id: zod.z.string().uuid().describe("ID of the affected device."),
@@ -13869,6 +13885,27 @@ var openapi_default = {
13869
13885
  "salto_ks_metadata"
13870
13886
  ],
13871
13887
  type: "object"
13888
+ },
13889
+ {
13890
+ 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.",
13891
+ properties: {
13892
+ created_at: {
13893
+ description: "Date and time at which Seam created the warning.",
13894
+ format: "date-time",
13895
+ type: "string"
13896
+ },
13897
+ message: {
13898
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
13899
+ type: "string"
13900
+ },
13901
+ warning_code: {
13902
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
13903
+ enum: ["account_reauthorization_requested"],
13904
+ type: "string"
13905
+ }
13906
+ },
13907
+ required: ["created_at", "message", "warning_code"],
13908
+ type: "object"
13872
13909
  }
13873
13910
  ]
13874
13911
  },
@@ -20255,6 +20292,57 @@ var openapi_default = {
20255
20292
  type: "object",
20256
20293
  "x-route-path": "/connected_accounts"
20257
20294
  },
20295
+ {
20296
+ 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.",
20297
+ properties: {
20298
+ connected_account_custom_metadata: {
20299
+ additionalProperties: {
20300
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20301
+ },
20302
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20303
+ type: "object"
20304
+ },
20305
+ connected_account_id: {
20306
+ description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
20307
+ format: "uuid",
20308
+ type: "string"
20309
+ },
20310
+ created_at: {
20311
+ description: "Date and time at which the event was created.",
20312
+ format: "date-time",
20313
+ type: "string"
20314
+ },
20315
+ event_id: {
20316
+ description: "ID of the event.",
20317
+ format: "uuid",
20318
+ type: "string"
20319
+ },
20320
+ event_type: {
20321
+ enum: ["connected_account.reauthorization_requested"],
20322
+ type: "string"
20323
+ },
20324
+ occurred_at: {
20325
+ description: "Date and time at which the event occurred.",
20326
+ format: "date-time",
20327
+ type: "string"
20328
+ },
20329
+ workspace_id: {
20330
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
20331
+ format: "uuid",
20332
+ type: "string"
20333
+ }
20334
+ },
20335
+ required: [
20336
+ "event_id",
20337
+ "workspace_id",
20338
+ "created_at",
20339
+ "occurred_at",
20340
+ "connected_account_id",
20341
+ "event_type"
20342
+ ],
20343
+ type: "object",
20344
+ "x-route-path": "/connected_accounts"
20345
+ },
20258
20346
  {
20259
20347
  description: "A lock door [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) succeeded.",
20260
20348
  properties: {
@@ -45437,6 +45525,7 @@ var openapi_default = {
45437
45525
  "connected_account.completed_first_sync",
45438
45526
  "connected_account.deleted",
45439
45527
  "connected_account.completed_first_sync_after_reconnection",
45528
+ "connected_account.reauthorization_requested",
45440
45529
  "action_attempt.lock_door.succeeded",
45441
45530
  "action_attempt.lock_door.failed",
45442
45531
  "action_attempt.unlock_door.succeeded",
@@ -45539,6 +45628,7 @@ var openapi_default = {
45539
45628
  "connected_account.completed_first_sync",
45540
45629
  "connected_account.deleted",
45541
45630
  "connected_account.completed_first_sync_after_reconnection",
45631
+ "connected_account.reauthorization_requested",
45542
45632
  "action_attempt.lock_door.succeeded",
45543
45633
  "action_attempt.lock_door.failed",
45544
45634
  "action_attempt.unlock_door.succeeded",
@@ -45783,6 +45873,7 @@ var openapi_default = {
45783
45873
  "connected_account.completed_first_sync",
45784
45874
  "connected_account.deleted",
45785
45875
  "connected_account.completed_first_sync_after_reconnection",
45876
+ "connected_account.reauthorization_requested",
45786
45877
  "action_attempt.lock_door.succeeded",
45787
45878
  "action_attempt.lock_door.failed",
45788
45879
  "action_attempt.unlock_door.succeeded",
@@ -45881,6 +45972,7 @@ var openapi_default = {
45881
45972
  "connected_account.completed_first_sync",
45882
45973
  "connected_account.deleted",
45883
45974
  "connected_account.completed_first_sync_after_reconnection",
45975
+ "connected_account.reauthorization_requested",
45884
45976
  "action_attempt.lock_door.succeeded",
45885
45977
  "action_attempt.lock_door.failed",
45886
45978
  "action_attempt.unlock_door.succeeded",
@@ -50853,6 +50945,7 @@ var openapi_default = {
50853
50945
  "connected_account.completed_first_sync",
50854
50946
  "connected_account.deleted",
50855
50947
  "connected_account.completed_first_sync_after_reconnection",
50948
+ "connected_account.reauthorization_requested",
50856
50949
  "action_attempt.lock_door.succeeded",
50857
50950
  "action_attempt.lock_door.failed",
50858
50951
  "action_attempt.unlock_door.succeeded",
@@ -50956,6 +51049,7 @@ var openapi_default = {
50956
51049
  "connected_account.completed_first_sync",
50957
51050
  "connected_account.deleted",
50958
51051
  "connected_account.completed_first_sync_after_reconnection",
51052
+ "connected_account.reauthorization_requested",
50959
51053
  "action_attempt.lock_door.succeeded",
50960
51054
  "action_attempt.lock_door.failed",
50961
51055
  "action_attempt.unlock_door.succeeded",
@@ -51120,6 +51214,7 @@ var openapi_default = {
51120
51214
  "connected_account.completed_first_sync",
51121
51215
  "connected_account.deleted",
51122
51216
  "connected_account.completed_first_sync_after_reconnection",
51217
+ "connected_account.reauthorization_requested",
51123
51218
  "action_attempt.lock_door.succeeded",
51124
51219
  "action_attempt.lock_door.failed",
51125
51220
  "action_attempt.unlock_door.succeeded",
@@ -51218,6 +51313,7 @@ var openapi_default = {
51218
51313
  "connected_account.completed_first_sync",
51219
51314
  "connected_account.deleted",
51220
51315
  "connected_account.completed_first_sync_after_reconnection",
51316
+ "connected_account.reauthorization_requested",
51221
51317
  "action_attempt.lock_door.succeeded",
51222
51318
  "action_attempt.lock_door.failed",
51223
51319
  "action_attempt.unlock_door.succeeded",