@seamapi/types 1.554.0 → 1.556.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/connect.cjs +128 -108
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +376 -403
  4. package/dist/index.cjs +128 -108
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-grants/access-grant.d.ts +54 -0
  7. package/lib/seam/connect/models/access-grants/access-grant.js +24 -0
  8. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  9. package/lib/seam/connect/models/access-grants/access-method.d.ts +54 -0
  10. package/lib/seam/connect/models/access-grants/access-method.js +24 -0
  11. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-credential.d.ts +10 -10
  13. package/lib/seam/connect/models/batch.d.ts +140 -110
  14. package/lib/seam/connect/models/events/access-methods.d.ts +4 -71
  15. package/lib/seam/connect/models/events/access-methods.js +2 -22
  16. package/lib/seam/connect/models/events/access-methods.js.map +1 -1
  17. package/lib/seam/connect/models/events/seam-event.d.ts +3 -36
  18. package/lib/seam/connect/openapi.d.ts +62 -110
  19. package/lib/seam/connect/openapi.js +65 -69
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +85 -94
  22. package/package.json +1 -1
  23. package/src/lib/seam/connect/models/access-grants/access-grant.ts +40 -0
  24. package/src/lib/seam/connect/models/access-grants/access-method.ts +40 -0
  25. package/src/lib/seam/connect/models/events/access-methods.ts +2 -29
  26. package/src/lib/seam/connect/openapi.ts +77 -74
  27. package/src/lib/seam/connect/route-types.ts +81 -99
@@ -886,14 +886,13 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
886
886
  workspace_id: z.ZodString;
887
887
  created_at: z.ZodString;
888
888
  occurred_at: z.ZodString;
889
- } & {
890
889
  access_method_id: z.ZodString;
891
890
  access_grant_ids: z.ZodArray<z.ZodString, "many">;
892
891
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
893
- } & {
894
- event_type: z.ZodLiteral<"access_method.reissued">;
895
892
  code: z.ZodOptional<z.ZodString>;
896
893
  is_backup_code: z.ZodOptional<z.ZodBoolean>;
894
+ } & {
895
+ event_type: z.ZodLiteral<"access_method.reissued">;
897
896
  }, "strip", z.ZodTypeAny, {
898
897
  workspace_id: string;
899
898
  created_at: string;
@@ -921,38 +920,6 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
921
920
  workspace_id: z.ZodString;
922
921
  created_at: z.ZodString;
923
922
  occurred_at: z.ZodString;
924
- } & {
925
- access_method_id: z.ZodString;
926
- access_grant_ids: z.ZodArray<z.ZodString, "many">;
927
- access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
928
- } & {
929
- event_type: z.ZodLiteral<"access_method.code_changed">;
930
- code: z.ZodString;
931
- }, "strip", z.ZodTypeAny, {
932
- code: string;
933
- workspace_id: string;
934
- created_at: string;
935
- access_method_id: string;
936
- event_id: string;
937
- occurred_at: string;
938
- event_type: "access_method.code_changed";
939
- access_grant_ids: string[];
940
- access_grant_keys?: string[] | undefined;
941
- }, {
942
- code: string;
943
- workspace_id: string;
944
- created_at: string;
945
- access_method_id: string;
946
- event_id: string;
947
- occurred_at: string;
948
- event_type: "access_method.code_changed";
949
- access_grant_ids: string[];
950
- access_grant_keys?: string[] | undefined;
951
- }>, z.ZodObject<{
952
- event_id: z.ZodString;
953
- workspace_id: z.ZodString;
954
- created_at: z.ZodString;
955
- occurred_at: z.ZodString;
956
923
  } & {
957
924
  connected_account_id: z.ZodOptional<z.ZodString>;
958
925
  acs_system_id: z.ZodString;
@@ -3014,5 +2981,5 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
3014
2981
  device_custom_metadata?: Record<string, string | boolean> | undefined;
3015
2982
  }>]>;
3016
2983
  export type SeamEvent = z.infer<typeof seam_event>;
3017
- export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.code_changed" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated", ...("access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.code_changed" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated")[]]>;
2984
+ export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated", ...("access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated")[]]>;
3018
2985
  export type SeamEventType = SeamEvent['event_type'];
@@ -497,6 +497,37 @@ declare const _default: {
497
497
  format: string;
498
498
  type: string;
499
499
  };
500
+ warnings: {
501
+ description: string;
502
+ items: {
503
+ description: string;
504
+ discriminator: {
505
+ propertyName: string;
506
+ };
507
+ oneOf: {
508
+ description: string;
509
+ properties: {
510
+ created_at: {
511
+ description: string;
512
+ format: string;
513
+ type: string;
514
+ };
515
+ message: {
516
+ description: string;
517
+ type: string;
518
+ };
519
+ warning_code: {
520
+ description: string;
521
+ enum: string[];
522
+ type: string;
523
+ };
524
+ };
525
+ required: string[];
526
+ type: string;
527
+ }[];
528
+ };
529
+ type: string;
530
+ };
500
531
  workspace_id: {
501
532
  description: string;
502
533
  format: string;
@@ -563,6 +594,37 @@ declare const _default: {
563
594
  enum: string[];
564
595
  type: string;
565
596
  };
597
+ warnings: {
598
+ description: string;
599
+ items: {
600
+ description: string;
601
+ discriminator: {
602
+ propertyName: string;
603
+ };
604
+ oneOf: {
605
+ description: string;
606
+ properties: {
607
+ created_at: {
608
+ description: string;
609
+ format: string;
610
+ type: string;
611
+ };
612
+ message: {
613
+ description: string;
614
+ type: string;
615
+ };
616
+ warning_code: {
617
+ description: string;
618
+ enum: string[];
619
+ type: string;
620
+ };
621
+ };
622
+ required: string[];
623
+ type: string;
624
+ }[];
625
+ };
626
+ type: string;
627
+ };
566
628
  workspace_id: {
567
629
  description: string;
568
630
  format: string;
@@ -8005,116 +8067,6 @@ declare const _default: {
8005
8067
  'x-route-path': string;
8006
8068
  deprecated?: never;
8007
8069
  'x-deprecated'?: never;
8008
- } | {
8009
- description: string;
8010
- properties: {
8011
- access_grant_ids: {
8012
- description: string;
8013
- items: {
8014
- format: string;
8015
- type: string;
8016
- };
8017
- type: string;
8018
- };
8019
- access_grant_keys: {
8020
- description: string;
8021
- items: {
8022
- type: string;
8023
- };
8024
- type: string;
8025
- };
8026
- access_method_id: {
8027
- description: string;
8028
- format: string;
8029
- type: string;
8030
- };
8031
- code: {
8032
- description: string;
8033
- type: string;
8034
- nullable?: never;
8035
- };
8036
- created_at: {
8037
- description: string;
8038
- format: string;
8039
- type: string;
8040
- };
8041
- event_id: {
8042
- description: string;
8043
- format: string;
8044
- type: string;
8045
- };
8046
- event_type: {
8047
- enum: string[];
8048
- type: string;
8049
- };
8050
- occurred_at: {
8051
- description: string;
8052
- format: string;
8053
- type: string;
8054
- };
8055
- workspace_id: {
8056
- description: string;
8057
- format: string;
8058
- type: string;
8059
- };
8060
- access_code_id?: never;
8061
- connected_account_custom_metadata?: never;
8062
- connected_account_id?: never;
8063
- device_custom_metadata?: never;
8064
- device_id?: never;
8065
- backup_access_code_id?: never;
8066
- access_grant_id?: never;
8067
- acs_entrance_id?: never;
8068
- access_grant_key?: never;
8069
- ends_at?: never;
8070
- starts_at?: never;
8071
- is_backup_code?: never;
8072
- acs_system_id?: never;
8073
- acs_credential_id?: never;
8074
- acs_user_id?: never;
8075
- acs_encoder_id?: never;
8076
- acs_access_group_id?: never;
8077
- client_session_id?: never;
8078
- connect_webview_id?: never;
8079
- customer_key?: never;
8080
- action_attempt_id?: never;
8081
- action_type?: never;
8082
- status?: never;
8083
- error_code?: never;
8084
- battery_level?: never;
8085
- battery_status?: never;
8086
- minut_metadata?: never;
8087
- noise_level_decibels?: never;
8088
- noise_level_nrs?: never;
8089
- noise_threshold_id?: never;
8090
- noise_threshold_name?: never;
8091
- noiseaware_metadata?: never;
8092
- method?: never;
8093
- climate_preset_key?: never;
8094
- is_fallback_climate_preset?: never;
8095
- thermostat_schedule_id?: never;
8096
- cooling_set_point_celsius?: never;
8097
- cooling_set_point_fahrenheit?: never;
8098
- fan_mode_setting?: never;
8099
- heating_set_point_celsius?: never;
8100
- heating_set_point_fahrenheit?: never;
8101
- hvac_mode_setting?: never;
8102
- lower_limit_celsius?: never;
8103
- lower_limit_fahrenheit?: never;
8104
- temperature_celsius?: never;
8105
- temperature_fahrenheit?: never;
8106
- upper_limit_celsius?: never;
8107
- upper_limit_fahrenheit?: never;
8108
- desired_temperature_celsius?: never;
8109
- desired_temperature_fahrenheit?: never;
8110
- device_name?: never;
8111
- enrollment_automation_id?: never;
8112
- };
8113
- required: string[];
8114
- type: string;
8115
- 'x-route-path': string;
8116
- deprecated?: never;
8117
- 'x-deprecated'?: never;
8118
8070
  } | {
8119
8071
  description: string;
8120
8072
  properties: {
@@ -1687,6 +1687,37 @@ export default {
1687
1687
  format: 'uuid',
1688
1688
  type: 'string',
1689
1689
  },
1690
+ warnings: {
1691
+ description: 'Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
1692
+ items: {
1693
+ description: 'Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
1694
+ discriminator: { propertyName: 'warning_code' },
1695
+ oneOf: [
1696
+ {
1697
+ description: 'Indicates that the [access grant](https://docs.seam.co/latest/capability-guides/access-grants) is being deleted.',
1698
+ properties: {
1699
+ created_at: {
1700
+ description: 'Date and time at which Seam created the warning.',
1701
+ format: 'date-time',
1702
+ type: 'string',
1703
+ },
1704
+ message: {
1705
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1706
+ type: 'string',
1707
+ },
1708
+ warning_code: {
1709
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
1710
+ enum: ['being_deleted'],
1711
+ type: 'string',
1712
+ },
1713
+ },
1714
+ required: ['created_at', 'message', 'warning_code'],
1715
+ type: 'object',
1716
+ },
1717
+ ],
1718
+ },
1719
+ type: 'array',
1720
+ },
1690
1721
  workspace_id: {
1691
1722
  description: 'ID of the Seam workspace associated with the Access Grant.',
1692
1723
  format: 'uuid',
@@ -1706,6 +1737,7 @@ export default {
1706
1737
  'created_at',
1707
1738
  'starts_at',
1708
1739
  'ends_at',
1740
+ 'warnings',
1709
1741
  ],
1710
1742
  type: 'object',
1711
1743
  'x-draft': 'Early access.',
@@ -1766,6 +1798,37 @@ export default {
1766
1798
  enum: ['code', 'card', 'mobile_key'],
1767
1799
  type: 'string',
1768
1800
  },
1801
+ warnings: {
1802
+ description: 'Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).',
1803
+ items: {
1804
+ description: 'Warning associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).',
1805
+ discriminator: { propertyName: 'warning_code' },
1806
+ oneOf: [
1807
+ {
1808
+ description: 'Indicates that the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) is being deleted.',
1809
+ properties: {
1810
+ created_at: {
1811
+ description: 'Date and time at which Seam created the warning.',
1812
+ format: 'date-time',
1813
+ type: 'string',
1814
+ },
1815
+ message: {
1816
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1817
+ type: 'string',
1818
+ },
1819
+ warning_code: {
1820
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
1821
+ enum: ['being_deleted'],
1822
+ type: 'string',
1823
+ },
1824
+ },
1825
+ required: ['created_at', 'message', 'warning_code'],
1826
+ type: 'object',
1827
+ },
1828
+ ],
1829
+ },
1830
+ type: 'array',
1831
+ },
1769
1832
  workspace_id: {
1770
1833
  description: 'ID of the Seam workspace associated with the access method.',
1771
1834
  format: 'uuid',
@@ -1780,6 +1843,7 @@ export default {
1780
1843
  'created_at',
1781
1844
  'issued_at',
1782
1845
  'is_issued',
1846
+ 'warnings',
1783
1847
  ],
1784
1848
  type: 'object',
1785
1849
  'x-draft': 'Early access.',
@@ -13398,7 +13462,7 @@ export default {
13398
13462
  'x-route-path': '/access_methods',
13399
13463
  },
13400
13464
  {
13401
- description: 'An access method was reissued due to an Access Grant update.',
13465
+ description: 'An access method was reissued.',
13402
13466
  properties: {
13403
13467
  access_grant_ids: {
13404
13468
  description: 'IDs of the access grants associated with this access method.',
@@ -13457,66 +13521,6 @@ export default {
13457
13521
  type: 'object',
13458
13522
  'x-route-path': '/access_methods',
13459
13523
  },
13460
- {
13461
- description: "An access method's PIN code was changed.",
13462
- properties: {
13463
- access_grant_ids: {
13464
- description: 'IDs of the access grants associated with this access method.',
13465
- items: { format: 'uuid', type: 'string' },
13466
- type: 'array',
13467
- },
13468
- access_grant_keys: {
13469
- description: 'Keys of the access grants associated with this access method (if present).',
13470
- items: { type: 'string' },
13471
- type: 'array',
13472
- },
13473
- access_method_id: {
13474
- description: 'ID of the affected access method.',
13475
- format: 'uuid',
13476
- type: 'string',
13477
- },
13478
- code: {
13479
- description: "The new PIN code for code access methods (only present when mode is 'code').",
13480
- type: 'string',
13481
- },
13482
- created_at: {
13483
- description: 'Date and time at which the event was created.',
13484
- format: 'date-time',
13485
- type: 'string',
13486
- },
13487
- event_id: {
13488
- description: 'ID of the event.',
13489
- format: 'uuid',
13490
- type: 'string',
13491
- },
13492
- event_type: {
13493
- enum: ['access_method.code_changed'],
13494
- type: 'string',
13495
- },
13496
- occurred_at: {
13497
- description: 'Date and time at which the event occurred.',
13498
- format: 'date-time',
13499
- type: 'string',
13500
- },
13501
- workspace_id: {
13502
- description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
13503
- format: 'uuid',
13504
- type: 'string',
13505
- },
13506
- },
13507
- required: [
13508
- 'event_id',
13509
- 'workspace_id',
13510
- 'created_at',
13511
- 'occurred_at',
13512
- 'access_method_id',
13513
- 'access_grant_ids',
13514
- 'event_type',
13515
- 'code',
13516
- ],
13517
- type: 'object',
13518
- 'x-route-path': '/access_methods',
13519
- },
13520
13524
  {
13521
13525
  description: 'An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.',
13522
13526
  properties: {
@@ -39824,7 +39828,6 @@ export default {
39824
39828
  'access_method.card_encoding_required',
39825
39829
  'access_method.deleted',
39826
39830
  'access_method.reissued',
39827
- 'access_method.code_changed',
39828
39831
  'acs_system.connected',
39829
39832
  'acs_system.added',
39830
39833
  'acs_system.disconnected',
@@ -39927,7 +39930,6 @@ export default {
39927
39930
  'access_method.card_encoding_required',
39928
39931
  'access_method.deleted',
39929
39932
  'access_method.reissued',
39930
- 'access_method.code_changed',
39931
39933
  'acs_system.connected',
39932
39934
  'acs_system.added',
39933
39935
  'acs_system.disconnected',
@@ -40172,7 +40174,6 @@ export default {
40172
40174
  'access_method.card_encoding_required',
40173
40175
  'access_method.deleted',
40174
40176
  'access_method.reissued',
40175
- 'access_method.code_changed',
40176
40177
  'acs_system.connected',
40177
40178
  'acs_system.added',
40178
40179
  'acs_system.disconnected',
@@ -40271,7 +40272,6 @@ export default {
40271
40272
  'access_method.card_encoding_required',
40272
40273
  'access_method.deleted',
40273
40274
  'access_method.reissued',
40274
- 'access_method.code_changed',
40275
40275
  'acs_system.connected',
40276
40276
  'acs_system.added',
40277
40277
  'acs_system.disconnected',
@@ -45244,7 +45244,6 @@ export default {
45244
45244
  'access_method.card_encoding_required',
45245
45245
  'access_method.deleted',
45246
45246
  'access_method.reissued',
45247
- 'access_method.code_changed',
45248
45247
  'acs_system.connected',
45249
45248
  'acs_system.added',
45250
45249
  'acs_system.disconnected',
@@ -45348,7 +45347,6 @@ export default {
45348
45347
  'access_method.card_encoding_required',
45349
45348
  'access_method.deleted',
45350
45349
  'access_method.reissued',
45351
- 'access_method.code_changed',
45352
45350
  'acs_system.connected',
45353
45351
  'acs_system.added',
45354
45352
  'acs_system.disconnected',
@@ -45513,7 +45511,6 @@ export default {
45513
45511
  'access_method.card_encoding_required',
45514
45512
  'access_method.deleted',
45515
45513
  'access_method.reissued',
45516
- 'access_method.code_changed',
45517
45514
  'acs_system.connected',
45518
45515
  'acs_system.added',
45519
45516
  'acs_system.disconnected',
@@ -45612,7 +45609,6 @@ export default {
45612
45609
  'access_method.card_encoding_required',
45613
45610
  'access_method.deleted',
45614
45611
  'access_method.reissued',
45615
- 'access_method.code_changed',
45616
45612
  'acs_system.connected',
45617
45613
  'acs_system.added',
45618
45614
  'acs_system.disconnected',