@seamapi/types 1.696.0 → 1.697.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.
@@ -18352,6 +18352,70 @@ export declare const batch: z.ZodObject<{
18352
18352
  device_ids: string[];
18353
18353
  acs_entrance_ids: string[];
18354
18354
  space_key?: string | undefined;
18355
+ }>, z.ZodObject<{
18356
+ event_id: z.ZodString;
18357
+ workspace_id: z.ZodString;
18358
+ created_at: z.ZodString;
18359
+ occurred_at: z.ZodString;
18360
+ } & {
18361
+ space_id: z.ZodString;
18362
+ } & {
18363
+ event_type: z.ZodLiteral<"space.created">;
18364
+ space_key: z.ZodOptional<z.ZodString>;
18365
+ device_ids: z.ZodArray<z.ZodString, "many">;
18366
+ acs_entrance_ids: z.ZodArray<z.ZodString, "many">;
18367
+ }, "strip", z.ZodTypeAny, {
18368
+ workspace_id: string;
18369
+ created_at: string;
18370
+ event_id: string;
18371
+ occurred_at: string;
18372
+ event_type: "space.created";
18373
+ space_id: string;
18374
+ device_ids: string[];
18375
+ acs_entrance_ids: string[];
18376
+ space_key?: string | undefined;
18377
+ }, {
18378
+ workspace_id: string;
18379
+ created_at: string;
18380
+ event_id: string;
18381
+ occurred_at: string;
18382
+ event_type: "space.created";
18383
+ space_id: string;
18384
+ device_ids: string[];
18385
+ acs_entrance_ids: string[];
18386
+ space_key?: string | undefined;
18387
+ }>, z.ZodObject<{
18388
+ event_id: z.ZodString;
18389
+ workspace_id: z.ZodString;
18390
+ created_at: z.ZodString;
18391
+ occurred_at: z.ZodString;
18392
+ } & {
18393
+ space_id: z.ZodString;
18394
+ } & {
18395
+ event_type: z.ZodLiteral<"space.deleted">;
18396
+ space_key: z.ZodOptional<z.ZodString>;
18397
+ device_ids: z.ZodArray<z.ZodString, "many">;
18398
+ acs_entrance_ids: z.ZodArray<z.ZodString, "many">;
18399
+ }, "strip", z.ZodTypeAny, {
18400
+ workspace_id: string;
18401
+ created_at: string;
18402
+ event_id: string;
18403
+ occurred_at: string;
18404
+ event_type: "space.deleted";
18405
+ space_id: string;
18406
+ device_ids: string[];
18407
+ acs_entrance_ids: string[];
18408
+ space_key?: string | undefined;
18409
+ }, {
18410
+ workspace_id: string;
18411
+ created_at: string;
18412
+ event_id: string;
18413
+ occurred_at: string;
18414
+ event_type: "space.deleted";
18415
+ space_id: string;
18416
+ device_ids: string[];
18417
+ acs_entrance_ids: string[];
18418
+ space_key?: string | undefined;
18355
18419
  }>]>, "many">>;
18356
18420
  instant_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
18357
18421
  instant_key_id: z.ZodString;
@@ -25072,6 +25136,26 @@ export declare const batch: z.ZodObject<{
25072
25136
  device_ids: string[];
25073
25137
  acs_entrance_ids: string[];
25074
25138
  space_key?: string | undefined;
25139
+ } | {
25140
+ workspace_id: string;
25141
+ created_at: string;
25142
+ event_id: string;
25143
+ occurred_at: string;
25144
+ event_type: "space.created";
25145
+ space_id: string;
25146
+ device_ids: string[];
25147
+ acs_entrance_ids: string[];
25148
+ space_key?: string | undefined;
25149
+ } | {
25150
+ workspace_id: string;
25151
+ created_at: string;
25152
+ event_id: string;
25153
+ occurred_at: string;
25154
+ event_type: "space.deleted";
25155
+ space_id: string;
25156
+ device_ids: string[];
25157
+ acs_entrance_ids: string[];
25158
+ space_key?: string | undefined;
25075
25159
  })[] | undefined;
25076
25160
  instant_keys?: {
25077
25161
  workspace_id: string;
@@ -29154,6 +29238,26 @@ export declare const batch: z.ZodObject<{
29154
29238
  device_ids: string[];
29155
29239
  acs_entrance_ids: string[];
29156
29240
  space_key?: string | undefined;
29241
+ } | {
29242
+ workspace_id: string;
29243
+ created_at: string;
29244
+ event_id: string;
29245
+ occurred_at: string;
29246
+ event_type: "space.created";
29247
+ space_id: string;
29248
+ device_ids: string[];
29249
+ acs_entrance_ids: string[];
29250
+ space_key?: string | undefined;
29251
+ } | {
29252
+ workspace_id: string;
29253
+ created_at: string;
29254
+ event_id: string;
29255
+ occurred_at: string;
29256
+ event_type: "space.deleted";
29257
+ space_id: string;
29258
+ device_ids: string[];
29259
+ acs_entrance_ids: string[];
29260
+ space_key?: string | undefined;
29157
29261
  })[] | undefined;
29158
29262
  instant_keys?: {
29159
29263
  workspace_id: string;
@@ -3060,7 +3060,71 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
3060
3060
  device_ids: string[];
3061
3061
  acs_entrance_ids: string[];
3062
3062
  space_key?: string | undefined;
3063
+ }>, z.ZodObject<{
3064
+ event_id: z.ZodString;
3065
+ workspace_id: z.ZodString;
3066
+ created_at: z.ZodString;
3067
+ occurred_at: z.ZodString;
3068
+ } & {
3069
+ space_id: z.ZodString;
3070
+ } & {
3071
+ event_type: z.ZodLiteral<"space.created">;
3072
+ space_key: z.ZodOptional<z.ZodString>;
3073
+ device_ids: z.ZodArray<z.ZodString, "many">;
3074
+ acs_entrance_ids: z.ZodArray<z.ZodString, "many">;
3075
+ }, "strip", z.ZodTypeAny, {
3076
+ workspace_id: string;
3077
+ created_at: string;
3078
+ event_id: string;
3079
+ occurred_at: string;
3080
+ event_type: "space.created";
3081
+ space_id: string;
3082
+ device_ids: string[];
3083
+ acs_entrance_ids: string[];
3084
+ space_key?: string | undefined;
3085
+ }, {
3086
+ workspace_id: string;
3087
+ created_at: string;
3088
+ event_id: string;
3089
+ occurred_at: string;
3090
+ event_type: "space.created";
3091
+ space_id: string;
3092
+ device_ids: string[];
3093
+ acs_entrance_ids: string[];
3094
+ space_key?: string | undefined;
3095
+ }>, z.ZodObject<{
3096
+ event_id: z.ZodString;
3097
+ workspace_id: z.ZodString;
3098
+ created_at: z.ZodString;
3099
+ occurred_at: z.ZodString;
3100
+ } & {
3101
+ space_id: z.ZodString;
3102
+ } & {
3103
+ event_type: z.ZodLiteral<"space.deleted">;
3104
+ space_key: z.ZodOptional<z.ZodString>;
3105
+ device_ids: z.ZodArray<z.ZodString, "many">;
3106
+ acs_entrance_ids: z.ZodArray<z.ZodString, "many">;
3107
+ }, "strip", z.ZodTypeAny, {
3108
+ workspace_id: string;
3109
+ created_at: string;
3110
+ event_id: string;
3111
+ occurred_at: string;
3112
+ event_type: "space.deleted";
3113
+ space_id: string;
3114
+ device_ids: string[];
3115
+ acs_entrance_ids: string[];
3116
+ space_key?: string | undefined;
3117
+ }, {
3118
+ workspace_id: string;
3119
+ created_at: string;
3120
+ event_id: string;
3121
+ occurred_at: string;
3122
+ event_type: "space.deleted";
3123
+ space_id: string;
3124
+ device_ids: string[];
3125
+ acs_entrance_ids: string[];
3126
+ space_key?: string | undefined;
3063
3127
  }>]>;
3064
3128
  export type SeamEvent = z.infer<typeof seam_event>;
3065
- export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed", ...("access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed")[]]>;
3129
+ export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted", ...("access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted")[]]>;
3066
3130
  export type SeamEventType = SeamEvent['event_type'];
@@ -32,6 +32,72 @@ export declare const space_device_membership_changed_event: z.ZodObject<{
32
32
  acs_entrance_ids: string[];
33
33
  space_key?: string | undefined;
34
34
  }>;
35
+ export declare const space_created_event: z.ZodObject<{
36
+ event_id: z.ZodString;
37
+ workspace_id: z.ZodString;
38
+ created_at: z.ZodString;
39
+ occurred_at: z.ZodString;
40
+ } & {
41
+ space_id: z.ZodString;
42
+ } & {
43
+ event_type: z.ZodLiteral<"space.created">;
44
+ space_key: z.ZodOptional<z.ZodString>;
45
+ device_ids: z.ZodArray<z.ZodString, "many">;
46
+ acs_entrance_ids: z.ZodArray<z.ZodString, "many">;
47
+ }, "strip", z.ZodTypeAny, {
48
+ workspace_id: string;
49
+ created_at: string;
50
+ event_id: string;
51
+ occurred_at: string;
52
+ event_type: "space.created";
53
+ space_id: string;
54
+ device_ids: string[];
55
+ acs_entrance_ids: string[];
56
+ space_key?: string | undefined;
57
+ }, {
58
+ workspace_id: string;
59
+ created_at: string;
60
+ event_id: string;
61
+ occurred_at: string;
62
+ event_type: "space.created";
63
+ space_id: string;
64
+ device_ids: string[];
65
+ acs_entrance_ids: string[];
66
+ space_key?: string | undefined;
67
+ }>;
68
+ export declare const space_deleted_event: z.ZodObject<{
69
+ event_id: z.ZodString;
70
+ workspace_id: z.ZodString;
71
+ created_at: z.ZodString;
72
+ occurred_at: z.ZodString;
73
+ } & {
74
+ space_id: z.ZodString;
75
+ } & {
76
+ event_type: z.ZodLiteral<"space.deleted">;
77
+ space_key: z.ZodOptional<z.ZodString>;
78
+ device_ids: z.ZodArray<z.ZodString, "many">;
79
+ acs_entrance_ids: z.ZodArray<z.ZodString, "many">;
80
+ }, "strip", z.ZodTypeAny, {
81
+ workspace_id: string;
82
+ created_at: string;
83
+ event_id: string;
84
+ occurred_at: string;
85
+ event_type: "space.deleted";
86
+ space_id: string;
87
+ device_ids: string[];
88
+ acs_entrance_ids: string[];
89
+ space_key?: string | undefined;
90
+ }, {
91
+ workspace_id: string;
92
+ created_at: string;
93
+ event_id: string;
94
+ occurred_at: string;
95
+ event_type: "space.deleted";
96
+ space_id: string;
97
+ device_ids: string[];
98
+ acs_entrance_ids: string[];
99
+ space_key?: string | undefined;
100
+ }>;
35
101
  export type SpaceDeviceMembershipChangedEvent = z.infer<typeof space_device_membership_changed_event>;
36
102
  export declare const space_events: readonly [z.ZodObject<{
37
103
  event_id: z.ZodString;
@@ -65,4 +131,68 @@ export declare const space_events: readonly [z.ZodObject<{
65
131
  device_ids: string[];
66
132
  acs_entrance_ids: string[];
67
133
  space_key?: string | undefined;
134
+ }>, z.ZodObject<{
135
+ event_id: z.ZodString;
136
+ workspace_id: z.ZodString;
137
+ created_at: z.ZodString;
138
+ occurred_at: z.ZodString;
139
+ } & {
140
+ space_id: z.ZodString;
141
+ } & {
142
+ event_type: z.ZodLiteral<"space.created">;
143
+ space_key: z.ZodOptional<z.ZodString>;
144
+ device_ids: z.ZodArray<z.ZodString, "many">;
145
+ acs_entrance_ids: z.ZodArray<z.ZodString, "many">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ workspace_id: string;
148
+ created_at: string;
149
+ event_id: string;
150
+ occurred_at: string;
151
+ event_type: "space.created";
152
+ space_id: string;
153
+ device_ids: string[];
154
+ acs_entrance_ids: string[];
155
+ space_key?: string | undefined;
156
+ }, {
157
+ workspace_id: string;
158
+ created_at: string;
159
+ event_id: string;
160
+ occurred_at: string;
161
+ event_type: "space.created";
162
+ space_id: string;
163
+ device_ids: string[];
164
+ acs_entrance_ids: string[];
165
+ space_key?: string | undefined;
166
+ }>, z.ZodObject<{
167
+ event_id: z.ZodString;
168
+ workspace_id: z.ZodString;
169
+ created_at: z.ZodString;
170
+ occurred_at: z.ZodString;
171
+ } & {
172
+ space_id: z.ZodString;
173
+ } & {
174
+ event_type: z.ZodLiteral<"space.deleted">;
175
+ space_key: z.ZodOptional<z.ZodString>;
176
+ device_ids: z.ZodArray<z.ZodString, "many">;
177
+ acs_entrance_ids: z.ZodArray<z.ZodString, "many">;
178
+ }, "strip", z.ZodTypeAny, {
179
+ workspace_id: string;
180
+ created_at: string;
181
+ event_id: string;
182
+ occurred_at: string;
183
+ event_type: "space.deleted";
184
+ space_id: string;
185
+ device_ids: string[];
186
+ acs_entrance_ids: string[];
187
+ space_key?: string | undefined;
188
+ }, {
189
+ workspace_id: string;
190
+ created_at: string;
191
+ event_id: string;
192
+ occurred_at: string;
193
+ event_type: "space.deleted";
194
+ space_id: string;
195
+ device_ids: string[];
196
+ acs_entrance_ids: string[];
197
+ space_key?: string | undefined;
68
198
  }>];
@@ -23,5 +23,45 @@ export const space_device_membership_changed_event = space_event.extend({
23
23
  ---
24
24
  A device was added or removed from a space.
25
25
  `);
26
- export const space_events = [space_device_membership_changed_event];
26
+ export const space_created_event = space_event.extend({
27
+ event_type: z.literal('space.created').describe('Type of the event.'),
28
+ space_key: z
29
+ .string()
30
+ .optional()
31
+ .describe('Unique key for the space within the workspace.'),
32
+ device_ids: z
33
+ .array(z.string().uuid())
34
+ .describe('IDs of all devices attached to the space when it was created.'),
35
+ acs_entrance_ids: z
36
+ .array(z.string().uuid())
37
+ .describe('IDs of all ACS entrances attached to the space when it was created.'),
38
+ }).describe(`
39
+ ---
40
+ route_path: /spaces
41
+ ---
42
+ A space was created.
43
+ `);
44
+ export const space_deleted_event = space_event.extend({
45
+ event_type: z.literal('space.deleted').describe('Type of the event.'),
46
+ space_key: z
47
+ .string()
48
+ .optional()
49
+ .describe('Unique key for the space within the workspace.'),
50
+ device_ids: z
51
+ .array(z.string().uuid())
52
+ .describe('IDs of all devices attached to the space when it was deleted.'),
53
+ acs_entrance_ids: z
54
+ .array(z.string().uuid())
55
+ .describe('IDs of all ACS entrances currently attached to the space when it was deleted.'),
56
+ }).describe(`
57
+ ---
58
+ route_path: /spaces
59
+ ---
60
+ A space was deleted.
61
+ `);
62
+ export const space_events = [
63
+ space_device_membership_changed_event,
64
+ space_created_event,
65
+ space_deleted_event,
66
+ ];
27
67
  //# sourceMappingURL=spaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spaces.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/spaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CAClE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,WAAW,CAAC,MAAM,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,iCAAiC,CAAC;SAC1C,QAAQ,CAAC,oBAAoB,CAAC;IACjC,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,UAAU,EAAE,CAAC;SACV,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,qDAAqD,CAAC;IAClE,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,2DAA2D,CAAC;CACzE,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,qCAAqC,CAAU,CAAA"}
1
+ {"version":3,"file":"spaces.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/spaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CAClE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,WAAW,CAAC,MAAM,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,iCAAiC,CAAC;SAC1C,QAAQ,CAAC,oBAAoB,CAAC;IACjC,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,UAAU,EAAE,CAAC;SACV,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,qDAAqD,CAAC;IAClE,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,2DAA2D,CAAC;CACzE,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACrE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,UAAU,EAAE,CAAC;SACV,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,qEAAqE,CACtE;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACrE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,UAAU,EAAE,CAAC;SACV,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,+EAA+E,CAChF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,qCAAqC;IACrC,mBAAmB;IACnB,mBAAmB;CACX,CAAA"}
@@ -17962,6 +17962,128 @@ export default {
17962
17962
  type: 'object',
17963
17963
  'x-route-path': '/spaces',
17964
17964
  },
17965
+ {
17966
+ description: 'A space was created.',
17967
+ properties: {
17968
+ acs_entrance_ids: {
17969
+ description: 'IDs of all ACS entrances attached to the space when it was created.',
17970
+ items: { format: 'uuid', type: 'string' },
17971
+ type: 'array',
17972
+ },
17973
+ created_at: {
17974
+ description: 'Date and time at which the event was created.',
17975
+ format: 'date-time',
17976
+ type: 'string',
17977
+ },
17978
+ device_ids: {
17979
+ description: 'IDs of all devices attached to the space when it was created.',
17980
+ items: { format: 'uuid', type: 'string' },
17981
+ type: 'array',
17982
+ },
17983
+ event_id: {
17984
+ description: 'ID of the event.',
17985
+ format: 'uuid',
17986
+ type: 'string',
17987
+ },
17988
+ event_type: {
17989
+ description: 'Type of the event.',
17990
+ enum: ['space.created'],
17991
+ type: 'string',
17992
+ },
17993
+ occurred_at: {
17994
+ description: 'Date and time at which the event occurred.',
17995
+ format: 'date-time',
17996
+ type: 'string',
17997
+ },
17998
+ space_id: {
17999
+ description: 'ID of the affected space.',
18000
+ format: 'uuid',
18001
+ type: 'string',
18002
+ },
18003
+ space_key: {
18004
+ description: 'Unique key for the space within the workspace.',
18005
+ type: 'string',
18006
+ },
18007
+ workspace_id: {
18008
+ description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
18009
+ format: 'uuid',
18010
+ type: 'string',
18011
+ },
18012
+ },
18013
+ required: [
18014
+ 'event_id',
18015
+ 'workspace_id',
18016
+ 'created_at',
18017
+ 'occurred_at',
18018
+ 'space_id',
18019
+ 'event_type',
18020
+ 'device_ids',
18021
+ 'acs_entrance_ids',
18022
+ ],
18023
+ type: 'object',
18024
+ 'x-route-path': '/spaces',
18025
+ },
18026
+ {
18027
+ description: 'A space was deleted.',
18028
+ properties: {
18029
+ acs_entrance_ids: {
18030
+ description: 'IDs of all ACS entrances currently attached to the space when it was deleted.',
18031
+ items: { format: 'uuid', type: 'string' },
18032
+ type: 'array',
18033
+ },
18034
+ created_at: {
18035
+ description: 'Date and time at which the event was created.',
18036
+ format: 'date-time',
18037
+ type: 'string',
18038
+ },
18039
+ device_ids: {
18040
+ description: 'IDs of all devices attached to the space when it was deleted.',
18041
+ items: { format: 'uuid', type: 'string' },
18042
+ type: 'array',
18043
+ },
18044
+ event_id: {
18045
+ description: 'ID of the event.',
18046
+ format: 'uuid',
18047
+ type: 'string',
18048
+ },
18049
+ event_type: {
18050
+ description: 'Type of the event.',
18051
+ enum: ['space.deleted'],
18052
+ type: 'string',
18053
+ },
18054
+ occurred_at: {
18055
+ description: 'Date and time at which the event occurred.',
18056
+ format: 'date-time',
18057
+ type: 'string',
18058
+ },
18059
+ space_id: {
18060
+ description: 'ID of the affected space.',
18061
+ format: 'uuid',
18062
+ type: 'string',
18063
+ },
18064
+ space_key: {
18065
+ description: 'Unique key for the space within the workspace.',
18066
+ type: 'string',
18067
+ },
18068
+ workspace_id: {
18069
+ description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
18070
+ format: 'uuid',
18071
+ type: 'string',
18072
+ },
18073
+ },
18074
+ required: [
18075
+ 'event_id',
18076
+ 'workspace_id',
18077
+ 'created_at',
18078
+ 'occurred_at',
18079
+ 'space_id',
18080
+ 'event_type',
18081
+ 'device_ids',
18082
+ 'acs_entrance_ids',
18083
+ ],
18084
+ type: 'object',
18085
+ 'x-route-path': '/spaces',
18086
+ },
17965
18087
  ],
17966
18088
  'x-route-path': '/events',
17967
18089
  },
@@ -43742,6 +43864,8 @@ export default {
43742
43864
  'enrollment_automation.deleted',
43743
43865
  'phone.deactivated',
43744
43866
  'space.device_membership_changed',
43867
+ 'space.created',
43868
+ 'space.deleted',
43745
43869
  ],
43746
43870
  type: 'string',
43747
43871
  },
@@ -43846,6 +43970,8 @@ export default {
43846
43970
  'enrollment_automation.deleted',
43847
43971
  'phone.deactivated',
43848
43972
  'space.device_membership_changed',
43973
+ 'space.created',
43974
+ 'space.deleted',
43849
43975
  ],
43850
43976
  type: 'string',
43851
43977
  },
@@ -44129,6 +44255,8 @@ export default {
44129
44255
  'enrollment_automation.deleted',
44130
44256
  'phone.deactivated',
44131
44257
  'space.device_membership_changed',
44258
+ 'space.created',
44259
+ 'space.deleted',
44132
44260
  ],
44133
44261
  type: 'string',
44134
44262
  },
@@ -44229,6 +44357,8 @@ export default {
44229
44357
  'enrollment_automation.deleted',
44230
44358
  'phone.deactivated',
44231
44359
  'space.device_membership_changed',
44360
+ 'space.created',
44361
+ 'space.deleted',
44232
44362
  ],
44233
44363
  type: 'string',
44234
44364
  },
@@ -51009,6 +51139,8 @@ export default {
51009
51139
  'enrollment_automation.deleted',
51010
51140
  'phone.deactivated',
51011
51141
  'space.device_membership_changed',
51142
+ 'space.created',
51143
+ 'space.deleted',
51012
51144
  ],
51013
51145
  type: 'string',
51014
51146
  },
@@ -51114,6 +51246,8 @@ export default {
51114
51246
  'enrollment_automation.deleted',
51115
51247
  'phone.deactivated',
51116
51248
  'space.device_membership_changed',
51249
+ 'space.created',
51250
+ 'space.deleted',
51117
51251
  ],
51118
51252
  type: 'string',
51119
51253
  },
@@ -51280,6 +51414,8 @@ export default {
51280
51414
  'enrollment_automation.deleted',
51281
51415
  'phone.deactivated',
51282
51416
  'space.device_membership_changed',
51417
+ 'space.created',
51418
+ 'space.deleted',
51283
51419
  ],
51284
51420
  type: 'string',
51285
51421
  },
@@ -51380,6 +51516,8 @@ export default {
51380
51516
  'enrollment_automation.deleted',
51381
51517
  'phone.deactivated',
51382
51518
  'space.device_membership_changed',
51519
+ 'space.created',
51520
+ 'space.deleted',
51383
51521
  ],
51384
51522
  type: 'string',
51385
51523
  },