@seamapi/types 1.290.0 → 1.291.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.
@@ -696,15 +696,22 @@ declare const acs_encoder: z.ZodObject<{
696
696
  acs_encoder_id: z.ZodString;
697
697
  acs_system_id: z.ZodString;
698
698
  workspace_id: z.ZodString;
699
- errors: z.ZodArray<z.ZodObject<{
700
- error_code: z.ZodString;
699
+ errors: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
700
+ created_at: z.ZodString;
701
701
  message: z.ZodString;
702
- }, "strip", z.ZodTypeAny, {
702
+ }, {
703
+ error_code: z.ZodLiteral<"acs_encoder_removed">;
704
+ _event_id: z.ZodString;
705
+ }>, "strip", z.ZodTypeAny, {
703
706
  message: string;
704
- error_code: string;
707
+ error_code: "acs_encoder_removed";
708
+ created_at: string;
709
+ _event_id: string;
705
710
  }, {
706
711
  message: string;
707
- error_code: string;
712
+ error_code: "acs_encoder_removed";
713
+ created_at: string;
714
+ _event_id: string;
708
715
  }>, "many">;
709
716
  created_at: z.ZodString;
710
717
  display_name: z.ZodString;
@@ -712,7 +719,9 @@ declare const acs_encoder: z.ZodObject<{
712
719
  created_at: string;
713
720
  errors: {
714
721
  message: string;
715
- error_code: string;
722
+ error_code: "acs_encoder_removed";
723
+ created_at: string;
724
+ _event_id: string;
716
725
  }[];
717
726
  display_name: string;
718
727
  workspace_id: string;
@@ -722,7 +731,9 @@ declare const acs_encoder: z.ZodObject<{
722
731
  created_at: string;
723
732
  errors: {
724
733
  message: string;
725
- error_code: string;
734
+ error_code: "acs_encoder_removed";
735
+ created_at: string;
736
+ _event_id: string;
726
737
  }[];
727
738
  display_name: string;
728
739
  workspace_id: string;
@@ -10300,6 +10311,66 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<z.o
10300
10311
  occurred_at: string;
10301
10312
  event_type: "acs_user.deleted";
10302
10313
  connected_account_id?: string | undefined;
10314
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
10315
+ event_id: z.ZodString;
10316
+ workspace_id: z.ZodString;
10317
+ created_at: z.ZodString;
10318
+ occurred_at: z.ZodString;
10319
+ }, {
10320
+ connected_account_id: z.ZodOptional<z.ZodString>;
10321
+ acs_system_id: z.ZodString;
10322
+ }>, {
10323
+ acs_encoder_id: z.ZodString;
10324
+ }>, {
10325
+ event_type: z.ZodLiteral<"acs_encoder.added">;
10326
+ }>, "strip", z.ZodTypeAny, {
10327
+ created_at: string;
10328
+ workspace_id: string;
10329
+ acs_system_id: string;
10330
+ acs_encoder_id: string;
10331
+ event_id: string;
10332
+ occurred_at: string;
10333
+ event_type: "acs_encoder.added";
10334
+ connected_account_id?: string | undefined;
10335
+ }, {
10336
+ created_at: string;
10337
+ workspace_id: string;
10338
+ acs_system_id: string;
10339
+ acs_encoder_id: string;
10340
+ event_id: string;
10341
+ occurred_at: string;
10342
+ event_type: "acs_encoder.added";
10343
+ connected_account_id?: string | undefined;
10344
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
10345
+ event_id: z.ZodString;
10346
+ workspace_id: z.ZodString;
10347
+ created_at: z.ZodString;
10348
+ occurred_at: z.ZodString;
10349
+ }, {
10350
+ connected_account_id: z.ZodOptional<z.ZodString>;
10351
+ acs_system_id: z.ZodString;
10352
+ }>, {
10353
+ acs_encoder_id: z.ZodString;
10354
+ }>, {
10355
+ event_type: z.ZodLiteral<"acs_encoder.removed">;
10356
+ }>, "strip", z.ZodTypeAny, {
10357
+ created_at: string;
10358
+ workspace_id: string;
10359
+ acs_system_id: string;
10360
+ acs_encoder_id: string;
10361
+ event_id: string;
10362
+ occurred_at: string;
10363
+ event_type: "acs_encoder.removed";
10364
+ connected_account_id?: string | undefined;
10365
+ }, {
10366
+ created_at: string;
10367
+ workspace_id: string;
10368
+ acs_system_id: string;
10369
+ acs_encoder_id: string;
10370
+ event_id: string;
10371
+ occurred_at: string;
10372
+ event_type: "acs_encoder.removed";
10373
+ connected_account_id?: string | undefined;
10303
10374
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
10304
10375
  event_id: z.ZodString;
10305
10376
  workspace_id: z.ZodString;
@@ -12440,7 +12511,7 @@ declare const _default: {
12440
12511
  description: string;
12441
12512
  items: {
12442
12513
  description: string;
12443
- oneOf: ({
12514
+ oneOf: {
12444
12515
  description: string;
12445
12516
  properties: {
12446
12517
  created_at: {
@@ -12460,27 +12531,7 @@ declare const _default: {
12460
12531
  };
12461
12532
  required: string[];
12462
12533
  type: string;
12463
- } | {
12464
- properties: {
12465
- created_at: {
12466
- description: string;
12467
- format: string;
12468
- type: string;
12469
- };
12470
- error_code: {
12471
- description: string;
12472
- enum: string[];
12473
- type: string;
12474
- };
12475
- message: {
12476
- description: string;
12477
- type: string;
12478
- };
12479
- };
12480
- required: string[];
12481
- type: string;
12482
- description?: never;
12483
- })[];
12534
+ }[];
12484
12535
  };
12485
12536
  type: string;
12486
12537
  };
@@ -38670,21 +38721,21 @@ interface Routes {
38670
38721
  created_at: string;
38671
38722
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38672
38723
  message: string;
38673
- /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
38724
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38674
38725
  error_code: 'salto_ks_subscription_limit_exceeded';
38675
38726
  } | {
38676
38727
  /** Date and time at which Seam created the error. */
38677
38728
  created_at: string;
38678
38729
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38679
38730
  message: string;
38680
- /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
38731
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38681
38732
  error_code: 'acs_system_disconnected';
38682
38733
  } | {
38683
38734
  /** Date and time at which Seam created the error. */
38684
38735
  created_at: string;
38685
38736
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38686
38737
  message: string;
38687
- /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
38738
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38688
38739
  error_code: 'account_disconnected';
38689
38740
  }>;
38690
38741
  /** Warnings associated with the `acs_system`. */
@@ -38779,21 +38830,21 @@ interface Routes {
38779
38830
  created_at: string;
38780
38831
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38781
38832
  message: string;
38782
- /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
38833
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38783
38834
  error_code: 'salto_ks_subscription_limit_exceeded';
38784
38835
  } | {
38785
38836
  /** Date and time at which Seam created the error. */
38786
38837
  created_at: string;
38787
38838
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38788
38839
  message: string;
38789
- /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
38840
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38790
38841
  error_code: 'acs_system_disconnected';
38791
38842
  } | {
38792
38843
  /** Date and time at which Seam created the error. */
38793
38844
  created_at: string;
38794
38845
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38795
38846
  message: string;
38796
- /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
38847
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38797
38848
  error_code: 'account_disconnected';
38798
38849
  }>;
38799
38850
  /** Warnings associated with the `acs_system`. */
@@ -38888,21 +38939,21 @@ interface Routes {
38888
38939
  created_at: string;
38889
38940
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38890
38941
  message: string;
38891
- /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
38942
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38892
38943
  error_code: 'salto_ks_subscription_limit_exceeded';
38893
38944
  } | {
38894
38945
  /** Date and time at which Seam created the error. */
38895
38946
  created_at: string;
38896
38947
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38897
38948
  message: string;
38898
- /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
38949
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38899
38950
  error_code: 'acs_system_disconnected';
38900
38951
  } | {
38901
38952
  /** Date and time at which Seam created the error. */
38902
38953
  created_at: string;
38903
38954
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38904
38955
  message: string;
38905
- /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
38956
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38906
38957
  error_code: 'account_disconnected';
38907
38958
  }>;
38908
38959
  /** Warnings associated with the `acs_system`. */
@@ -42865,8 +42916,8 @@ interface Routes {
42865
42916
  acs_system_ids?: string[] | undefined;
42866
42917
  access_code_id?: string | undefined;
42867
42918
  access_code_ids?: string[] | undefined;
42868
- event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded') | undefined;
42869
- event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded'> | undefined;
42919
+ event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded') | undefined;
42920
+ event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded'> | undefined;
42870
42921
  connected_account_id?: string | undefined;
42871
42922
  connect_webview_id?: string | undefined;
42872
42923
  limit?: number;
@@ -56913,21 +56964,21 @@ interface Routes {
56913
56964
  created_at: string;
56914
56965
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
56915
56966
  message: string;
56916
- /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
56967
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
56917
56968
  error_code: 'salto_ks_subscription_limit_exceeded';
56918
56969
  } | {
56919
56970
  /** Date and time at which Seam created the error. */
56920
56971
  created_at: string;
56921
56972
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
56922
56973
  message: string;
56923
- /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
56974
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
56924
56975
  error_code: 'acs_system_disconnected';
56925
56976
  } | {
56926
56977
  /** Date and time at which Seam created the error. */
56927
56978
  created_at: string;
56928
56979
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
56929
56980
  message: string;
56930
- /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
56981
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
56931
56982
  error_code: 'account_disconnected';
56932
56983
  }>;
56933
56984
  /** Warnings associated with the `acs_system`. */
@@ -1,17 +1,58 @@
1
1
  import { z } from 'zod';
2
+ export declare const acs_encoder_error_map: z.ZodObject<{
3
+ acs_encoder_removed: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
4
+ created_at: z.ZodString;
5
+ message: z.ZodString;
6
+ }, {
7
+ error_code: z.ZodLiteral<"acs_encoder_removed">;
8
+ _event_id: z.ZodString;
9
+ }>, "strip", z.ZodTypeAny, {
10
+ message: string;
11
+ error_code: "acs_encoder_removed";
12
+ created_at: string;
13
+ _event_id: string;
14
+ }, {
15
+ message: string;
16
+ error_code: "acs_encoder_removed";
17
+ created_at: string;
18
+ _event_id: string;
19
+ }>>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ acs_encoder_removed?: {
22
+ message: string;
23
+ error_code: "acs_encoder_removed";
24
+ created_at: string;
25
+ _event_id: string;
26
+ } | null | undefined;
27
+ }, {
28
+ acs_encoder_removed?: {
29
+ message: string;
30
+ error_code: "acs_encoder_removed";
31
+ created_at: string;
32
+ _event_id: string;
33
+ } | null | undefined;
34
+ }>;
35
+ export type AcsEncoderErrorMap = z.infer<typeof acs_encoder_error_map>;
2
36
  export declare const acs_encoder: z.ZodObject<{
3
37
  acs_encoder_id: z.ZodString;
4
38
  acs_system_id: z.ZodString;
5
39
  workspace_id: z.ZodString;
6
- errors: z.ZodArray<z.ZodObject<{
7
- error_code: z.ZodString;
40
+ errors: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
41
+ created_at: z.ZodString;
8
42
  message: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
43
+ }, {
44
+ error_code: z.ZodLiteral<"acs_encoder_removed">;
45
+ _event_id: z.ZodString;
46
+ }>, "strip", z.ZodTypeAny, {
10
47
  message: string;
11
- error_code: string;
48
+ error_code: "acs_encoder_removed";
49
+ created_at: string;
50
+ _event_id: string;
12
51
  }, {
13
52
  message: string;
14
- error_code: string;
53
+ error_code: "acs_encoder_removed";
54
+ created_at: string;
55
+ _event_id: string;
15
56
  }>, "many">;
16
57
  created_at: z.ZodString;
17
58
  display_name: z.ZodString;
@@ -19,7 +60,9 @@ export declare const acs_encoder: z.ZodObject<{
19
60
  created_at: string;
20
61
  errors: {
21
62
  message: string;
22
- error_code: string;
63
+ error_code: "acs_encoder_removed";
64
+ created_at: string;
65
+ _event_id: string;
23
66
  }[];
24
67
  display_name: string;
25
68
  workspace_id: string;
@@ -29,7 +72,9 @@ export declare const acs_encoder: z.ZodObject<{
29
72
  created_at: string;
30
73
  errors: {
31
74
  message: string;
32
- error_code: string;
75
+ error_code: "acs_encoder_removed";
76
+ created_at: string;
77
+ _event_id: string;
33
78
  }[];
34
79
  display_name: string;
35
80
  workspace_id: string;
@@ -1,4 +1,29 @@
1
1
  import { z } from 'zod';
2
+ const common_acs_encoder_error = z.object({
3
+ created_at: z
4
+ .string()
5
+ .datetime()
6
+ .describe('Date and time at which Seam created the error.'),
7
+ message: z
8
+ .string()
9
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
10
+ });
11
+ const error_code_description = 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.';
12
+ const acs_encoder_removed = common_acs_encoder_error.extend({
13
+ error_code: z.literal('acs_encoder_removed').describe(error_code_description),
14
+ _event_id: z
15
+ .string()
16
+ .uuid()
17
+ .describe('ID of the event that was created when the `acs_encoder` was removed.'),
18
+ });
19
+ const acs_encoder_error =
20
+ // z.union([
21
+ acs_encoder_removed
22
+ // ])
23
+ .describe('Error associated with the `acs_encoder`.');
24
+ export const acs_encoder_error_map = z.object({
25
+ acs_encoder_removed: acs_encoder_removed.optional().nullable(),
26
+ });
2
27
  export const acs_encoder = z.object({
3
28
  acs_encoder_id: z.string().uuid().describe('ID of the `acs_encoder`.'),
4
29
  acs_system_id: z
@@ -9,10 +34,9 @@ export const acs_encoder = z.object({
9
34
  .string()
10
35
  .uuid()
11
36
  .describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.'),
12
- errors: z.array(z.object({
13
- error_code: z.string(),
14
- message: z.string(),
15
- })),
37
+ errors: z
38
+ .array(acs_encoder_error)
39
+ .describe('Errors associated with the `acs_encoder`.'),
16
40
  created_at: z
17
41
  .string()
18
42
  .datetime()
@@ -1 +1 @@
1
- {"version":3,"file":"acs-encoder.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-encoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IACtE,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,kEAAkE,CACnE;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,6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AAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IACtE,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,kEAAkE,CACnE;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,6GAA6G,CAC9G;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,iBAAiB,CAAC;SACxB,QAAQ,CAAC,2CAA2C,CAAC;IACxD,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CACzE,CAAC,CAAA"}
@@ -64,21 +64,27 @@ const visionline_instance_unreachable = common_acs_system_error.extend({
64
64
  .describe(`Indicates that the Seam Bridge is functioning correctly and the Seam API can communicate with the Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/latest/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
65
65
  For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
66
66
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`);
67
- const salto_ks_subscription_limit_exceeded = common_acs_system_error.extend({
67
+ const salto_ks_subscription_limit_exceeded = common_acs_system_error
68
+ .extend({
68
69
  error_code: z
69
70
  .literal('salto_ks_subscription_limit_exceeded')
70
- .describe('Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.'),
71
- });
72
- const acs_system_disconnected = common_acs_system_error.extend({
71
+ .describe(error_code_description),
72
+ })
73
+ .describe('Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.');
74
+ const acs_system_disconnected = common_acs_system_error
75
+ .extend({
73
76
  error_code: z
74
77
  .literal('acs_system_disconnected')
75
- .describe('Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.'),
76
- });
77
- const account_disconnected = common_acs_system_error.extend({
78
+ .describe(error_code_description),
79
+ })
80
+ .describe('Indicates that the access system has been disconnected. See [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.');
81
+ const account_disconnected = common_acs_system_error
82
+ .extend({
78
83
  error_code: z
79
84
  .literal('account_disconnected')
80
- .describe('Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.'),
81
- });
85
+ .describe(error_code_description),
86
+ })
87
+ .describe('Indicates that the login credentials are invalid. Reconnect the account using the Connect Webview to restore access.');
82
88
  const acs_system_error = z
83
89
  .union([
84
90
  seam_bridge_disconnected,
@@ -1 +1 @@
1
- {"version":3,"file":"acs-system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,uBAAuB,EAAE,CAAC;SACvB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,qUAAqU,CACtU;IACH,4BAA4B,EAAE,CAAC;SAC5B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,oXAAoX,CACrX;IACH,2CAA2C,EAAE,CAAC;SAC3C,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAA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CAAC;aACX,MAAM,EAAE;aACR,QAAQ,CACP,wGAAwG,CACzG;KACJ,CAAC;SACD,QAAQ,EAAE;IACb,WAAW,EAAE,wBAAwB;SAClC,QAAQ,CACP;;;;OAID,CACA;SACA,QAAQ,EAAE;IACb,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;OAItD,CAAC;IACJ,QAAQ;IACR,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACtD,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;IACnE,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,6GAA6G,CAC9G;IACH,qBAAqB,EAAE,CAAC;SACrB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,iIAAiI,CAClI;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,qDAAqD,CAAC;IAClE,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,gBAAgB,CAAC;SACvB,QAAQ,CAAC,0CAA0C,CAAC;IACvD,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,kBAAkB,CAAC;SACzB,QAAQ,CAAC,4CAA4C,CAAC;CAC1D,CAAC;KACD,KAAK,CAAC,2BAA2B,CAAC;KAClC,QAAQ,CACP,sGAAsG,CACvG,CAAA"}
1
+ {"version":3,"file":"acs-system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2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C;SACvB,QAAQ,CAAC,0CAA0C,CAAC;IACvD,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,kBAAkB,CAAC;SACzB,QAAQ,CAAC,4CAA4C,CAAC;CAC1D,CAAC;KACD,KAAK,CAAC,2BAA2B,CAAC;KAClC,QAAQ,CACP,sGAAsG,CACvG,CAAA"}
@@ -0,0 +1,126 @@
1
+ import { z } from 'zod';
2
+ export declare const acs_encoder_added_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ event_id: z.ZodString;
4
+ workspace_id: z.ZodString;
5
+ created_at: z.ZodString;
6
+ occurred_at: z.ZodString;
7
+ }, {
8
+ connected_account_id: z.ZodOptional<z.ZodString>;
9
+ acs_system_id: z.ZodString;
10
+ }>, {
11
+ acs_encoder_id: z.ZodString;
12
+ }>, {
13
+ event_type: z.ZodLiteral<"acs_encoder.added">;
14
+ }>, "strip", z.ZodTypeAny, {
15
+ created_at: string;
16
+ workspace_id: string;
17
+ acs_system_id: string;
18
+ acs_encoder_id: string;
19
+ event_id: string;
20
+ occurred_at: string;
21
+ event_type: "acs_encoder.added";
22
+ connected_account_id?: string | undefined;
23
+ }, {
24
+ created_at: string;
25
+ workspace_id: string;
26
+ acs_system_id: string;
27
+ acs_encoder_id: string;
28
+ event_id: string;
29
+ occurred_at: string;
30
+ event_type: "acs_encoder.added";
31
+ connected_account_id?: string | undefined;
32
+ }>;
33
+ export type AcsEncoderAddedEvent = z.infer<typeof acs_encoder_added_event>;
34
+ export declare const acs_encoder_removed_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
35
+ event_id: z.ZodString;
36
+ workspace_id: z.ZodString;
37
+ created_at: z.ZodString;
38
+ occurred_at: z.ZodString;
39
+ }, {
40
+ connected_account_id: z.ZodOptional<z.ZodString>;
41
+ acs_system_id: z.ZodString;
42
+ }>, {
43
+ acs_encoder_id: z.ZodString;
44
+ }>, {
45
+ event_type: z.ZodLiteral<"acs_encoder.removed">;
46
+ }>, "strip", z.ZodTypeAny, {
47
+ created_at: string;
48
+ workspace_id: string;
49
+ acs_system_id: string;
50
+ acs_encoder_id: string;
51
+ event_id: string;
52
+ occurred_at: string;
53
+ event_type: "acs_encoder.removed";
54
+ connected_account_id?: string | undefined;
55
+ }, {
56
+ created_at: string;
57
+ workspace_id: string;
58
+ acs_system_id: string;
59
+ acs_encoder_id: string;
60
+ event_id: string;
61
+ occurred_at: string;
62
+ event_type: "acs_encoder.removed";
63
+ connected_account_id?: string | undefined;
64
+ }>;
65
+ export type AcsEncoderRemovedEvent = z.infer<typeof acs_encoder_removed_event>;
66
+ export declare const acs_encoder_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
67
+ event_id: z.ZodString;
68
+ workspace_id: z.ZodString;
69
+ created_at: z.ZodString;
70
+ occurred_at: z.ZodString;
71
+ }, {
72
+ connected_account_id: z.ZodOptional<z.ZodString>;
73
+ acs_system_id: z.ZodString;
74
+ }>, {
75
+ acs_encoder_id: z.ZodString;
76
+ }>, {
77
+ event_type: z.ZodLiteral<"acs_encoder.added">;
78
+ }>, "strip", z.ZodTypeAny, {
79
+ created_at: string;
80
+ workspace_id: string;
81
+ acs_system_id: string;
82
+ acs_encoder_id: string;
83
+ event_id: string;
84
+ occurred_at: string;
85
+ event_type: "acs_encoder.added";
86
+ connected_account_id?: string | undefined;
87
+ }, {
88
+ created_at: string;
89
+ workspace_id: string;
90
+ acs_system_id: string;
91
+ acs_encoder_id: string;
92
+ event_id: string;
93
+ occurred_at: string;
94
+ event_type: "acs_encoder.added";
95
+ connected_account_id?: string | undefined;
96
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
97
+ event_id: z.ZodString;
98
+ workspace_id: z.ZodString;
99
+ created_at: z.ZodString;
100
+ occurred_at: z.ZodString;
101
+ }, {
102
+ connected_account_id: z.ZodOptional<z.ZodString>;
103
+ acs_system_id: z.ZodString;
104
+ }>, {
105
+ acs_encoder_id: z.ZodString;
106
+ }>, {
107
+ event_type: z.ZodLiteral<"acs_encoder.removed">;
108
+ }>, "strip", z.ZodTypeAny, {
109
+ created_at: string;
110
+ workspace_id: string;
111
+ acs_system_id: string;
112
+ acs_encoder_id: string;
113
+ event_id: string;
114
+ occurred_at: string;
115
+ event_type: "acs_encoder.removed";
116
+ connected_account_id?: string | undefined;
117
+ }, {
118
+ created_at: string;
119
+ workspace_id: string;
120
+ acs_system_id: string;
121
+ acs_encoder_id: string;
122
+ event_id: string;
123
+ occurred_at: string;
124
+ event_type: "acs_encoder.removed";
125
+ connected_account_id?: string | undefined;
126
+ }>];
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { common_acs_event } from './common.js';
3
+ const acs_encoder_event = common_acs_event.extend({
4
+ acs_encoder_id: z.string().uuid().describe('ID of the ACS encoder.'),
5
+ });
6
+ export const acs_encoder_added_event = acs_encoder_event
7
+ .extend({
8
+ event_type: z.literal('acs_encoder.added'),
9
+ })
10
+ .describe('An ACS encoder was added.');
11
+ export const acs_encoder_removed_event = acs_encoder_event
12
+ .extend({
13
+ event_type: z.literal('acs_encoder.removed'),
14
+ })
15
+ .describe('An ACS encoder was removed.');
16
+ export const acs_encoder_events = [
17
+ acs_encoder_added_event,
18
+ acs_encoder_removed_event,
19
+ ];
20
+ //# sourceMappingURL=encoders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encoders.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/encoders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,MAAM,CAAC;IAChD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CACrE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB;KACrD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;CAC3C,CAAC;KACD,QAAQ,CAAC,2BAA2B,CAAC,CAAA;AAIxC,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB;KACvD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;CAC7C,CAAC;KACD,QAAQ,CAAC,6BAA6B,CAAC,CAAA;AAI1C,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,uBAAuB;IACvB,yBAAyB;CACjB,CAAA"}