@seamapi/types 1.406.8 → 1.407.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.
@@ -19194,6 +19194,29 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<z.o
19194
19194
  event_id: string;
19195
19195
  occurred_at: string;
19196
19196
  event_type: "access_method.card_encoding_required";
19197
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
19198
+ event_id: z.ZodString;
19199
+ workspace_id: z.ZodString;
19200
+ created_at: z.ZodString;
19201
+ occurred_at: z.ZodString;
19202
+ }, {
19203
+ access_method_id: z.ZodString;
19204
+ }>, {
19205
+ event_type: z.ZodLiteral<"access_method.deleted">;
19206
+ }>, "strip", z.ZodTypeAny, {
19207
+ workspace_id: string;
19208
+ created_at: string;
19209
+ access_method_id: string;
19210
+ event_id: string;
19211
+ occurred_at: string;
19212
+ event_type: "access_method.deleted";
19213
+ }, {
19214
+ workspace_id: string;
19215
+ created_at: string;
19216
+ access_method_id: string;
19217
+ event_id: string;
19218
+ occurred_at: string;
19219
+ event_type: "access_method.deleted";
19197
19220
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
19198
19221
  event_id: z.ZodString;
19199
19222
  workspace_id: z.ZodString;
@@ -51763,7 +51786,7 @@ declare const _default: {
51763
51786
  'x-undocumented': string;
51764
51787
  };
51765
51788
  };
51766
- '/unstable_partner/building_blocks/generate_magic_link': {
51789
+ '/unstable_partner/building_blocks/connect_accounts': {
51767
51790
  post: {
51768
51791
  description: string;
51769
51792
  operationId: string;
@@ -51771,9 +51794,75 @@ declare const _default: {
51771
51794
  content: {
51772
51795
  'application/json': {
51773
51796
  schema: {
51774
- discriminator: {
51775
- propertyName: string;
51797
+ properties: {
51798
+ customer_key: {
51799
+ type: string;
51800
+ };
51776
51801
  };
51802
+ required: string[];
51803
+ type: string;
51804
+ };
51805
+ };
51806
+ };
51807
+ };
51808
+ responses: {
51809
+ 200: {
51810
+ content: {
51811
+ 'application/json': {
51812
+ schema: {
51813
+ properties: {
51814
+ magic_link: {
51815
+ $ref: string;
51816
+ };
51817
+ ok: {
51818
+ type: string;
51819
+ };
51820
+ };
51821
+ required: string[];
51822
+ type: string;
51823
+ };
51824
+ };
51825
+ };
51826
+ description: string;
51827
+ };
51828
+ 400: {
51829
+ description: string;
51830
+ };
51831
+ 401: {
51832
+ description: string;
51833
+ };
51834
+ };
51835
+ security: ({
51836
+ pat_with_workspace: never[];
51837
+ console_session_with_workspace?: never;
51838
+ api_key?: never;
51839
+ } | {
51840
+ console_session_with_workspace: never[];
51841
+ pat_with_workspace?: never;
51842
+ api_key?: never;
51843
+ } | {
51844
+ api_key: never[];
51845
+ pat_with_workspace?: never;
51846
+ console_session_with_workspace?: never;
51847
+ })[];
51848
+ summary: string;
51849
+ tags: never[];
51850
+ 'x-fern-sdk-group-name': string[];
51851
+ 'x-fern-sdk-method-name': string;
51852
+ 'x-fern-sdk-return-value': string;
51853
+ 'x-response-key': string;
51854
+ 'x-title': string;
51855
+ 'x-undocumented': string;
51856
+ };
51857
+ };
51858
+ '/unstable_partner/building_blocks/generate_magic_link': {
51859
+ post: {
51860
+ description: string;
51861
+ operationId: string;
51862
+ requestBody: {
51863
+ content: {
51864
+ 'application/json': {
51865
+ schema: {
51777
51866
  oneOf: ({
51778
51867
  properties: {
51779
51868
  building_block_type: {
@@ -51783,7 +51872,7 @@ declare const _default: {
51783
51872
  customer_key: {
51784
51873
  type: string;
51785
51874
  };
51786
- partner_resources?: never;
51875
+ collection_key?: never;
51787
51876
  };
51788
51877
  required: string[];
51789
51878
  type: string;
@@ -51793,39 +51882,181 @@ declare const _default: {
51793
51882
  enum: string[];
51794
51883
  type: string;
51795
51884
  };
51885
+ collection_key: {
51886
+ type: string;
51887
+ };
51796
51888
  customer_key: {
51797
51889
  type: string;
51798
51890
  };
51799
- partner_resources: {
51800
- items: {
51801
- properties: {
51802
- custom_metadata: {
51803
- additionalProperties: {
51804
- type: string;
51805
- };
51806
- type: string;
51807
- };
51808
- description: {
51809
- type: string;
51810
- };
51811
- name: {
51812
- type: string;
51813
- };
51814
- partner_resource_key: {
51891
+ };
51892
+ required: string[];
51893
+ type: string;
51894
+ })[];
51895
+ };
51896
+ };
51897
+ };
51898
+ };
51899
+ responses: {
51900
+ 200: {
51901
+ content: {
51902
+ 'application/json': {
51903
+ schema: {
51904
+ properties: {
51905
+ magic_link: {
51906
+ $ref: string;
51907
+ };
51908
+ ok: {
51909
+ type: string;
51910
+ };
51911
+ };
51912
+ required: string[];
51913
+ type: string;
51914
+ };
51915
+ };
51916
+ };
51917
+ description: string;
51918
+ };
51919
+ 400: {
51920
+ description: string;
51921
+ };
51922
+ 401: {
51923
+ description: string;
51924
+ };
51925
+ };
51926
+ security: ({
51927
+ pat_with_workspace: never[];
51928
+ console_session_with_workspace?: never;
51929
+ api_key?: never;
51930
+ } | {
51931
+ console_session_with_workspace: never[];
51932
+ pat_with_workspace?: never;
51933
+ api_key?: never;
51934
+ } | {
51935
+ api_key: never[];
51936
+ pat_with_workspace?: never;
51937
+ console_session_with_workspace?: never;
51938
+ })[];
51939
+ summary: string;
51940
+ tags: never[];
51941
+ 'x-fern-sdk-group-name': string[];
51942
+ 'x-fern-sdk-method-name': string;
51943
+ 'x-fern-sdk-return-value': string;
51944
+ 'x-response-key': string;
51945
+ 'x-title': string;
51946
+ 'x-undocumented': string;
51947
+ };
51948
+ };
51949
+ '/unstable_partner/building_blocks/manage_devices': {
51950
+ post: {
51951
+ description: string;
51952
+ operationId: string;
51953
+ requestBody: {
51954
+ content: {
51955
+ 'application/json': {
51956
+ schema: {
51957
+ properties: {
51958
+ customer_key: {
51959
+ type: string;
51960
+ };
51961
+ };
51962
+ required: string[];
51963
+ type: string;
51964
+ };
51965
+ };
51966
+ };
51967
+ };
51968
+ responses: {
51969
+ 200: {
51970
+ content: {
51971
+ 'application/json': {
51972
+ schema: {
51973
+ properties: {
51974
+ magic_link: {
51975
+ $ref: string;
51976
+ };
51977
+ ok: {
51978
+ type: string;
51979
+ };
51980
+ };
51981
+ required: string[];
51982
+ type: string;
51983
+ };
51984
+ };
51985
+ };
51986
+ description: string;
51987
+ };
51988
+ 400: {
51989
+ description: string;
51990
+ };
51991
+ 401: {
51992
+ description: string;
51993
+ };
51994
+ };
51995
+ security: ({
51996
+ pat_with_workspace: never[];
51997
+ console_session_with_workspace?: never;
51998
+ api_key?: never;
51999
+ } | {
52000
+ console_session_with_workspace: never[];
52001
+ pat_with_workspace?: never;
52002
+ api_key?: never;
52003
+ } | {
52004
+ api_key: never[];
52005
+ pat_with_workspace?: never;
52006
+ console_session_with_workspace?: never;
52007
+ })[];
52008
+ summary: string;
52009
+ tags: never[];
52010
+ 'x-fern-sdk-group-name': string[];
52011
+ 'x-fern-sdk-method-name': string;
52012
+ 'x-fern-sdk-return-value': string;
52013
+ 'x-response-key': string;
52014
+ 'x-title': string;
52015
+ 'x-undocumented': string;
52016
+ };
52017
+ };
52018
+ '/unstable_partner/building_blocks/organize_spaces': {
52019
+ post: {
52020
+ description: string;
52021
+ operationId: string;
52022
+ requestBody: {
52023
+ content: {
52024
+ 'application/json': {
52025
+ schema: {
52026
+ properties: {
52027
+ customer_key: {
52028
+ type: string;
52029
+ };
52030
+ partner_resources: {
52031
+ items: {
52032
+ properties: {
52033
+ custom_metadata: {
52034
+ additionalProperties: {
51815
52035
  type: string;
51816
52036
  };
52037
+ type: string;
52038
+ };
52039
+ description: {
52040
+ type: string;
52041
+ };
52042
+ name: {
52043
+ type: string;
52044
+ };
52045
+ partner_resource_key: {
52046
+ type: string;
51817
52047
  };
51818
- required: string[];
51819
- type: string;
51820
- 'x-route-path': string;
51821
- 'x-undocumented': string;
51822
52048
  };
52049
+ required: string[];
51823
52050
  type: string;
52051
+ 'x-route-path': string;
52052
+ 'x-undocumented': string;
51824
52053
  };
52054
+ minItems: number;
52055
+ type: string;
51825
52056
  };
51826
- required: string[];
51827
- type: string;
51828
- })[];
52057
+ };
52058
+ required: string[];
52059
+ type: string;
51829
52060
  };
51830
52061
  };
51831
52062
  };
@@ -51857,9 +52088,19 @@ declare const _default: {
51857
52088
  description: string;
51858
52089
  };
51859
52090
  };
51860
- security: {
52091
+ security: ({
52092
+ pat_with_workspace: never[];
52093
+ console_session_with_workspace?: never;
52094
+ api_key?: never;
52095
+ } | {
52096
+ console_session_with_workspace: never[];
52097
+ pat_with_workspace?: never;
52098
+ api_key?: never;
52099
+ } | {
51861
52100
  api_key: never[];
51862
- }[];
52101
+ pat_with_workspace?: never;
52102
+ console_session_with_workspace?: never;
52103
+ })[];
51863
52104
  summary: string;
51864
52105
  tags: never[];
51865
52106
  'x-fern-sdk-group-name': string[];
@@ -77723,6 +77964,18 @@ interface Routes {
77723
77964
  /** ID of the affected access method. */
77724
77965
  access_method_id: string;
77725
77966
  event_type: 'access_method.card_encoding_required';
77967
+ } | {
77968
+ /** ID of the event. */
77969
+ event_id: string;
77970
+ /** ID of the workspace associated with the event. */
77971
+ workspace_id: string;
77972
+ /** Date and time at which the event was created. */
77973
+ created_at: string;
77974
+ /** Date and time at which the event occurred. */
77975
+ occurred_at: string;
77976
+ /** ID of the affected access method. */
77977
+ access_method_id: string;
77978
+ event_type: 'access_method.deleted';
77726
77979
  } | {
77727
77980
  /** ID of the event. */
77728
77981
  event_id: string;
@@ -78738,9 +78991,9 @@ interface Routes {
78738
78991
  /** IDs of the access codes for which you want to list events. */
78739
78992
  access_code_ids?: string[] | undefined;
78740
78993
  /** Type of the events that you want to list. */
78741
- event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | '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;
78994
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
78742
78995
  /** Types of the events that you want to list. */
78743
- event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | '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;
78996
+ event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
78744
78997
  /** ID of the connected account for which you want to list events. */
78745
78998
  connected_account_id?: string | undefined;
78746
78999
  /** IDs of the connected accounts for which you want to list events. */
@@ -79133,6 +79386,18 @@ interface Routes {
79133
79386
  /** ID of the affected access method. */
79134
79387
  access_method_id: string;
79135
79388
  event_type: 'access_method.card_encoding_required';
79389
+ } | {
79390
+ /** ID of the event. */
79391
+ event_id: string;
79392
+ /** ID of the workspace associated with the event. */
79393
+ workspace_id: string;
79394
+ /** Date and time at which the event was created. */
79395
+ created_at: string;
79396
+ /** Date and time at which the event occurred. */
79397
+ occurred_at: string;
79398
+ /** ID of the affected access method. */
79399
+ access_method_id: string;
79400
+ event_type: 'access_method.deleted';
79136
79401
  } | {
79137
79402
  /** ID of the event. */
79138
79403
  event_id: string;
@@ -110939,19 +111204,83 @@ interface Routes {
110939
111204
  };
110940
111205
  };
110941
111206
  };
111207
+ '/unstable_partner/building_blocks/connect_accounts': {
111208
+ route: '/unstable_partner/building_blocks/connect_accounts';
111209
+ method: 'POST';
111210
+ queryParams: {};
111211
+ jsonBody: {};
111212
+ commonParams: {
111213
+ customer_key: string;
111214
+ };
111215
+ formData: {};
111216
+ jsonResponse: {
111217
+ /** */
111218
+ magic_link: {
111219
+ url: string;
111220
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
111221
+ customer_key: string;
111222
+ expires_at: string;
111223
+ workspace_id: string;
111224
+ created_at: string;
111225
+ };
111226
+ };
111227
+ };
110942
111228
  '/unstable_partner/building_blocks/generate_magic_link': {
110943
111229
  route: '/unstable_partner/building_blocks/generate_magic_link';
110944
111230
  method: 'POST' | 'GET';
110945
111231
  queryParams: {};
110946
111232
  jsonBody: {};
110947
111233
  commonParams: {
110948
- building_block_type: 'connect_account';
111234
+ building_block_type: 'connect_accounts';
110949
111235
  customer_key: string;
110950
111236
  } | {
110951
111237
  building_block_type: 'manage_devices';
110952
111238
  customer_key: string;
110953
111239
  } | {
110954
111240
  building_block_type: 'organize_spaces';
111241
+ customer_key: string;
111242
+ collection_key: string;
111243
+ };
111244
+ formData: {};
111245
+ jsonResponse: {
111246
+ /** */
111247
+ magic_link: {
111248
+ url: string;
111249
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
111250
+ customer_key: string;
111251
+ expires_at: string;
111252
+ workspace_id: string;
111253
+ created_at: string;
111254
+ };
111255
+ };
111256
+ };
111257
+ '/unstable_partner/building_blocks/manage_devices': {
111258
+ route: '/unstable_partner/building_blocks/manage_devices';
111259
+ method: 'POST';
111260
+ queryParams: {};
111261
+ jsonBody: {};
111262
+ commonParams: {
111263
+ customer_key: string;
111264
+ };
111265
+ formData: {};
111266
+ jsonResponse: {
111267
+ /** */
111268
+ magic_link: {
111269
+ url: string;
111270
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
111271
+ customer_key: string;
111272
+ expires_at: string;
111273
+ workspace_id: string;
111274
+ created_at: string;
111275
+ };
111276
+ };
111277
+ };
111278
+ '/unstable_partner/building_blocks/organize_spaces': {
111279
+ route: '/unstable_partner/building_blocks/organize_spaces';
111280
+ method: 'POST';
111281
+ queryParams: {};
111282
+ jsonBody: {};
111283
+ commonParams: {
110955
111284
  customer_key: string;
110956
111285
  partner_resources: Array<{
110957
111286
  partner_resource_key: string;
@@ -110965,7 +111294,7 @@ interface Routes {
110965
111294
  /** */
110966
111295
  magic_link: {
110967
111296
  url: string;
110968
- building_block_type: 'connect_account' | 'manage_devices' | 'organize_spaces';
111297
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
110969
111298
  customer_key: string;
110970
111299
  expires_at: string;
110971
111300
  workspace_id: string;
@@ -1,2 +1,2 @@
1
- export { access_code_code_constraint, access_grant, access_method, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, bridge, bridge_client_session, bridge_connected_system, capabilities, climate_preset, climate_setting, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, fan_mode_setting, geolocation, instant_key, location, lock_device_type, magic_link, access_code as managed_access_code, device as managed_device, noise_sensor_device_type, noise_threshold, pagination, partner_resource, phone, phone_number, phone_registration, phone_session, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, typed_partner_resource, unmanaged_access_code, unmanaged_device, user_identity, webhook, } from '../models/index.js';
1
+ export { access_code_code_constraint, access_grant, access_method, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, bridge, bridge_client_session, bridge_connected_system, building_block_type, capabilities, climate_preset, climate_setting, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, fan_mode_setting, geolocation, instant_key, location, lock_device_type, magic_link, access_code as managed_access_code, device as managed_device, noise_sensor_device_type, noise_threshold, pagination, partner_resource, phone, phone_number, phone_registration, phone_session, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, typed_partner_resource, unmanaged_access_code, unmanaged_device, user_identity, webhook, } from '../models/index.js';
2
2
  export * from '../schemas.js';
@@ -1,3 +1,3 @@
1
- export { access_code_code_constraint, access_grant, access_method, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, bridge, bridge_client_session, bridge_connected_system, capabilities, climate_preset, climate_setting, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, fan_mode_setting, geolocation, instant_key, location, lock_device_type, magic_link, access_code as managed_access_code, device as managed_device, noise_sensor_device_type, noise_threshold, pagination, partner_resource, phone, phone_number, phone_registration, phone_session, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, typed_partner_resource, unmanaged_access_code, unmanaged_device, user_identity, webhook, } from '../models/index.js';
1
+ export { access_code_code_constraint, access_grant, access_method, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, bridge, bridge_client_session, bridge_connected_system, building_block_type, capabilities, climate_preset, climate_setting, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, fan_mode_setting, geolocation, instant_key, location, lock_device_type, magic_link, access_code as managed_access_code, device as managed_device, noise_sensor_device_type, noise_threshold, pagination, partner_resource, phone, phone_number, phone_registration, phone_session, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, typed_partner_resource, unmanaged_access_code, unmanaged_device, user_identity, webhook, } from '../models/index.js';
2
2
  export * from '../schemas.js';
3
3
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EACd,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,iCAAiC,EACjC,sCAAsC,EACtC,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,wBAAwB,EACxB,YAAY,EACZ,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,UAAU,IAAI,KAAK,EACnB,eAAe,IAAI,UAAU,EAC7B,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,WAAW,IAAI,mBAAmB,EAClC,MAAM,IAAI,cAAc,EACxB,wBAAwB,EACxB,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,OAAO,GACR,MAAM,oBAAoB,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EACd,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,iCAAiC,EACjC,sCAAsC,EACtC,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,wBAAwB,EACxB,YAAY,EACZ,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,UAAU,IAAI,KAAK,EACnB,eAAe,IAAI,UAAU,EAC7B,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,WAAW,IAAI,mBAAmB,EAClC,MAAM,IAAI,cAAc,EACxB,wBAAwB,EACxB,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,OAAO,GACR,MAAM,oBAAoB,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -73,6 +73,30 @@ export declare const access_method_revoked_event: z.ZodObject<z.objectUtil.exten
73
73
  occurred_at: string;
74
74
  event_type: "access_method.revoked";
75
75
  }>;
76
+ export declare const access_method_deleted_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
77
+ event_id: z.ZodString;
78
+ workspace_id: z.ZodString;
79
+ created_at: z.ZodString;
80
+ occurred_at: z.ZodString;
81
+ }, {
82
+ access_method_id: z.ZodString;
83
+ }>, {
84
+ event_type: z.ZodLiteral<"access_method.deleted">;
85
+ }>, "strip", z.ZodTypeAny, {
86
+ workspace_id: string;
87
+ created_at: string;
88
+ access_method_id: string;
89
+ event_id: string;
90
+ occurred_at: string;
91
+ event_type: "access_method.deleted";
92
+ }, {
93
+ workspace_id: string;
94
+ created_at: string;
95
+ access_method_id: string;
96
+ event_id: string;
97
+ occurred_at: string;
98
+ event_type: "access_method.deleted";
99
+ }>;
76
100
  export type AccessMethodRevokedEvent = z.infer<typeof access_method_revoked_event>;
77
101
  export declare const access_method_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
78
102
  event_id: z.ZodString;
@@ -143,4 +167,27 @@ export declare const access_method_events: readonly [z.ZodObject<z.objectUtil.ex
143
167
  event_id: string;
144
168
  occurred_at: string;
145
169
  event_type: "access_method.card_encoding_required";
170
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
171
+ event_id: z.ZodString;
172
+ workspace_id: z.ZodString;
173
+ created_at: z.ZodString;
174
+ occurred_at: z.ZodString;
175
+ }, {
176
+ access_method_id: z.ZodString;
177
+ }>, {
178
+ event_type: z.ZodLiteral<"access_method.deleted">;
179
+ }>, "strip", z.ZodTypeAny, {
180
+ workspace_id: string;
181
+ created_at: string;
182
+ access_method_id: string;
183
+ event_id: string;
184
+ occurred_at: string;
185
+ event_type: "access_method.deleted";
186
+ }, {
187
+ workspace_id: string;
188
+ created_at: string;
189
+ access_method_id: string;
190
+ event_id: string;
191
+ occurred_at: string;
192
+ event_type: "access_method.deleted";
146
193
  }>];
@@ -30,9 +30,18 @@ export const access_method_revoked_event = access_method_event.extend({
30
30
  ---
31
31
  An access method was revoked.
32
32
  `);
33
+ export const access_method_deleted_event = access_method_event.extend({
34
+ event_type: z.literal('access_method.deleted'),
35
+ }).describe(`
36
+ ---
37
+ route_path: /unstable_access_methods
38
+ ---
39
+ An access method was deleted.
40
+ `);
33
41
  export const access_method_events = [
34
42
  access_method_issued_event,
35
43
  access_method_revoked_event,
36
44
  access_method_card_encoding_required_event,
45
+ access_method_deleted_event,
37
46
  ];
38
47
  //# sourceMappingURL=access-methods.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,mCAAmC,CAAC;CACjD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACnE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,0CAA0C,GACrD,mBAAmB,CAAC,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sCAAsC,CAAC;CAC9D,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,0BAA0B;IAC1B,2BAA2B;IAC3B,0CAA0C;CAClC,CAAA"}
1
+ {"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,mCAAmC,CAAC;CACjD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACnE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,0CAA0C,GACrD,mBAAmB,CAAC,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sCAAsC,CAAC;CAC9D,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,0BAA0B;IAC1B,2BAA2B;IAC3B,0CAA0C;IAC1C,2BAA2B;CACnB,CAAA"}