@seamapi/types 1.696.0 → 1.698.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.
- package/dist/connect.cjs +208 -9
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +399 -4
- package/dist/index.cjs +208 -9
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +104 -0
- package/lib/seam/connect/models/events/seam-event.d.ts +65 -1
- package/lib/seam/connect/models/events/spaces.d.ts +130 -0
- package/lib/seam/connect/models/events/spaces.js +41 -1
- package/lib/seam/connect/models/events/spaces.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +63 -0
- package/lib/seam/connect/openapi.js +169 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +168 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/spaces.ts +47 -1
- package/src/lib/seam/connect/openapi.ts +180 -0
- package/src/lib/seam/connect/route-types.ts +181 -0
|
@@ -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
|
|
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,
|
|
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"}
|
|
@@ -45601,6 +45601,10 @@ declare const _default: {
|
|
|
45601
45601
|
refresh_token?: never;
|
|
45602
45602
|
api_key?: never;
|
|
45603
45603
|
base_api_url?: never;
|
|
45604
|
+
hotel_id?: never;
|
|
45605
|
+
id?: never;
|
|
45606
|
+
is_staging?: never;
|
|
45607
|
+
secret?: never;
|
|
45604
45608
|
};
|
|
45605
45609
|
type: string;
|
|
45606
45610
|
required?: never;
|
|
@@ -45640,6 +45644,10 @@ declare const _default: {
|
|
|
45640
45644
|
refresh_token?: never;
|
|
45641
45645
|
api_key?: never;
|
|
45642
45646
|
base_api_url?: never;
|
|
45647
|
+
hotel_id?: never;
|
|
45648
|
+
id?: never;
|
|
45649
|
+
is_staging?: never;
|
|
45650
|
+
secret?: never;
|
|
45643
45651
|
};
|
|
45644
45652
|
type: string;
|
|
45645
45653
|
required?: never;
|
|
@@ -45678,6 +45686,10 @@ declare const _default: {
|
|
|
45678
45686
|
refresh_token?: never;
|
|
45679
45687
|
api_key?: never;
|
|
45680
45688
|
base_api_url?: never;
|
|
45689
|
+
hotel_id?: never;
|
|
45690
|
+
id?: never;
|
|
45691
|
+
is_staging?: never;
|
|
45692
|
+
secret?: never;
|
|
45681
45693
|
};
|
|
45682
45694
|
required: string[];
|
|
45683
45695
|
type: string;
|
|
@@ -45708,6 +45720,10 @@ declare const _default: {
|
|
|
45708
45720
|
client_password?: never;
|
|
45709
45721
|
api_key?: never;
|
|
45710
45722
|
base_api_url?: never;
|
|
45723
|
+
hotel_id?: never;
|
|
45724
|
+
id?: never;
|
|
45725
|
+
is_staging?: never;
|
|
45726
|
+
secret?: never;
|
|
45711
45727
|
};
|
|
45712
45728
|
type: string;
|
|
45713
45729
|
required?: never;
|
|
@@ -45733,6 +45749,53 @@ declare const _default: {
|
|
|
45733
45749
|
client_password?: never;
|
|
45734
45750
|
property_id?: never;
|
|
45735
45751
|
refresh_token?: never;
|
|
45752
|
+
hotel_id?: never;
|
|
45753
|
+
id?: never;
|
|
45754
|
+
is_staging?: never;
|
|
45755
|
+
secret?: never;
|
|
45756
|
+
};
|
|
45757
|
+
required: string[];
|
|
45758
|
+
type: string;
|
|
45759
|
+
} | {
|
|
45760
|
+
properties: {
|
|
45761
|
+
api_key: {
|
|
45762
|
+
description: string;
|
|
45763
|
+
minLength: number;
|
|
45764
|
+
type: string;
|
|
45765
|
+
};
|
|
45766
|
+
auth_token: {
|
|
45767
|
+
type: string;
|
|
45768
|
+
};
|
|
45769
|
+
hotel_id: {
|
|
45770
|
+
description: string;
|
|
45771
|
+
type: string;
|
|
45772
|
+
};
|
|
45773
|
+
id: {
|
|
45774
|
+
description: string;
|
|
45775
|
+
minLength: number;
|
|
45776
|
+
type: string;
|
|
45777
|
+
};
|
|
45778
|
+
is_staging: {
|
|
45779
|
+
default: boolean;
|
|
45780
|
+
description: string;
|
|
45781
|
+
type: string;
|
|
45782
|
+
};
|
|
45783
|
+
secret: {
|
|
45784
|
+
description: string;
|
|
45785
|
+
minLength: number;
|
|
45786
|
+
type: string;
|
|
45787
|
+
};
|
|
45788
|
+
access_token?: never;
|
|
45789
|
+
client?: never;
|
|
45790
|
+
client_token?: never;
|
|
45791
|
+
enterprise_id?: never;
|
|
45792
|
+
enterprise_ids?: never;
|
|
45793
|
+
is_demo?: never;
|
|
45794
|
+
client_id?: never;
|
|
45795
|
+
client_password?: never;
|
|
45796
|
+
property_id?: never;
|
|
45797
|
+
refresh_token?: never;
|
|
45798
|
+
base_api_url?: never;
|
|
45736
45799
|
};
|
|
45737
45800
|
required: string[];
|
|
45738
45801
|
type: string;
|