@seamapi/types 1.912.0 → 1.914.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 +402 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +643 -4
- package/dist/index.cjs +402 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/events/access-codes.d.ts +410 -0
- package/lib/seam/connect/models/events/access-codes.js +56 -0
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +203 -1
- package/lib/seam/connect/models/workspaces/workspace.d.ts +3 -0
- package/lib/seam/connect/models/workspaces/workspace.js +5 -0
- package/lib/seam/connect/models/workspaces/workspace.js.map +1 -1
- package/lib/seam/connect/openapi.js +348 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +438 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-codes.ts +71 -0
- package/src/lib/seam/connect/models/workspaces/workspace.ts +7 -0
- package/src/lib/seam/connect/openapi.ts +372 -0
- package/src/lib/seam/connect/route-types.ts +506 -0
|
@@ -106,6 +106,208 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
106
106
|
connected_account_id: z.ZodString;
|
|
107
107
|
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
108
108
|
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
109
|
+
} & {
|
|
110
|
+
event_type: z.ZodLiteral<"access_code.name_changed">;
|
|
111
|
+
from: z.ZodObject<{
|
|
112
|
+
name: z.ZodNullable<z.ZodString>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
name: string | null;
|
|
115
|
+
}, {
|
|
116
|
+
name: string | null;
|
|
117
|
+
}>;
|
|
118
|
+
to: z.ZodObject<{
|
|
119
|
+
name: z.ZodNullable<z.ZodString>;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
name: string | null;
|
|
122
|
+
}, {
|
|
123
|
+
name: string | null;
|
|
124
|
+
}>;
|
|
125
|
+
description: z.ZodString;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
device_id: string;
|
|
128
|
+
workspace_id: string;
|
|
129
|
+
created_at: string;
|
|
130
|
+
connected_account_id: string;
|
|
131
|
+
from: {
|
|
132
|
+
name: string | null;
|
|
133
|
+
};
|
|
134
|
+
to: {
|
|
135
|
+
name: string | null;
|
|
136
|
+
};
|
|
137
|
+
access_code_id: string;
|
|
138
|
+
event_id: string;
|
|
139
|
+
occurred_at: string;
|
|
140
|
+
event_type: "access_code.name_changed";
|
|
141
|
+
description: string;
|
|
142
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
143
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
device_id: string;
|
|
146
|
+
workspace_id: string;
|
|
147
|
+
created_at: string;
|
|
148
|
+
connected_account_id: string;
|
|
149
|
+
from: {
|
|
150
|
+
name: string | null;
|
|
151
|
+
};
|
|
152
|
+
to: {
|
|
153
|
+
name: string | null;
|
|
154
|
+
};
|
|
155
|
+
access_code_id: string;
|
|
156
|
+
event_id: string;
|
|
157
|
+
occurred_at: string;
|
|
158
|
+
event_type: "access_code.name_changed";
|
|
159
|
+
description: string;
|
|
160
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
161
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
162
|
+
}>, z.ZodObject<{
|
|
163
|
+
event_id: z.ZodString;
|
|
164
|
+
workspace_id: z.ZodString;
|
|
165
|
+
created_at: z.ZodString;
|
|
166
|
+
occurred_at: z.ZodString;
|
|
167
|
+
} & {
|
|
168
|
+
access_code_id: z.ZodString;
|
|
169
|
+
device_id: z.ZodString;
|
|
170
|
+
connected_account_id: z.ZodString;
|
|
171
|
+
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
172
|
+
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
173
|
+
} & {
|
|
174
|
+
event_type: z.ZodLiteral<"access_code.code_changed">;
|
|
175
|
+
from: z.ZodObject<{
|
|
176
|
+
code: z.ZodNullable<z.ZodString>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
code: string | null;
|
|
179
|
+
}, {
|
|
180
|
+
code: string | null;
|
|
181
|
+
}>;
|
|
182
|
+
to: z.ZodObject<{
|
|
183
|
+
code: z.ZodNullable<z.ZodString>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
code: string | null;
|
|
186
|
+
}, {
|
|
187
|
+
code: string | null;
|
|
188
|
+
}>;
|
|
189
|
+
description: z.ZodString;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
device_id: string;
|
|
192
|
+
workspace_id: string;
|
|
193
|
+
created_at: string;
|
|
194
|
+
connected_account_id: string;
|
|
195
|
+
from: {
|
|
196
|
+
code: string | null;
|
|
197
|
+
};
|
|
198
|
+
to: {
|
|
199
|
+
code: string | null;
|
|
200
|
+
};
|
|
201
|
+
access_code_id: string;
|
|
202
|
+
event_id: string;
|
|
203
|
+
occurred_at: string;
|
|
204
|
+
event_type: "access_code.code_changed";
|
|
205
|
+
description: string;
|
|
206
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
207
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
device_id: string;
|
|
210
|
+
workspace_id: string;
|
|
211
|
+
created_at: string;
|
|
212
|
+
connected_account_id: string;
|
|
213
|
+
from: {
|
|
214
|
+
code: string | null;
|
|
215
|
+
};
|
|
216
|
+
to: {
|
|
217
|
+
code: string | null;
|
|
218
|
+
};
|
|
219
|
+
access_code_id: string;
|
|
220
|
+
event_id: string;
|
|
221
|
+
occurred_at: string;
|
|
222
|
+
event_type: "access_code.code_changed";
|
|
223
|
+
description: string;
|
|
224
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
225
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
226
|
+
}>, z.ZodObject<{
|
|
227
|
+
event_id: z.ZodString;
|
|
228
|
+
workspace_id: z.ZodString;
|
|
229
|
+
created_at: z.ZodString;
|
|
230
|
+
occurred_at: z.ZodString;
|
|
231
|
+
} & {
|
|
232
|
+
access_code_id: z.ZodString;
|
|
233
|
+
device_id: z.ZodString;
|
|
234
|
+
connected_account_id: z.ZodString;
|
|
235
|
+
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
236
|
+
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
237
|
+
} & {
|
|
238
|
+
event_type: z.ZodLiteral<"access_code.time_frame_changed">;
|
|
239
|
+
from: z.ZodObject<{
|
|
240
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
241
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
starts_at: string | null;
|
|
244
|
+
ends_at: string | null;
|
|
245
|
+
}, {
|
|
246
|
+
starts_at: string | null;
|
|
247
|
+
ends_at: string | null;
|
|
248
|
+
}>;
|
|
249
|
+
to: z.ZodObject<{
|
|
250
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
251
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
starts_at: string | null;
|
|
254
|
+
ends_at: string | null;
|
|
255
|
+
}, {
|
|
256
|
+
starts_at: string | null;
|
|
257
|
+
ends_at: string | null;
|
|
258
|
+
}>;
|
|
259
|
+
description: z.ZodString;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
device_id: string;
|
|
262
|
+
workspace_id: string;
|
|
263
|
+
created_at: string;
|
|
264
|
+
connected_account_id: string;
|
|
265
|
+
from: {
|
|
266
|
+
starts_at: string | null;
|
|
267
|
+
ends_at: string | null;
|
|
268
|
+
};
|
|
269
|
+
to: {
|
|
270
|
+
starts_at: string | null;
|
|
271
|
+
ends_at: string | null;
|
|
272
|
+
};
|
|
273
|
+
access_code_id: string;
|
|
274
|
+
event_id: string;
|
|
275
|
+
occurred_at: string;
|
|
276
|
+
event_type: "access_code.time_frame_changed";
|
|
277
|
+
description: string;
|
|
278
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
279
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
device_id: string;
|
|
282
|
+
workspace_id: string;
|
|
283
|
+
created_at: string;
|
|
284
|
+
connected_account_id: string;
|
|
285
|
+
from: {
|
|
286
|
+
starts_at: string | null;
|
|
287
|
+
ends_at: string | null;
|
|
288
|
+
};
|
|
289
|
+
to: {
|
|
290
|
+
starts_at: string | null;
|
|
291
|
+
ends_at: string | null;
|
|
292
|
+
};
|
|
293
|
+
access_code_id: string;
|
|
294
|
+
event_id: string;
|
|
295
|
+
occurred_at: string;
|
|
296
|
+
event_type: "access_code.time_frame_changed";
|
|
297
|
+
description: string;
|
|
298
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
299
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
300
|
+
}>, z.ZodObject<{
|
|
301
|
+
event_id: z.ZodString;
|
|
302
|
+
workspace_id: z.ZodString;
|
|
303
|
+
created_at: z.ZodString;
|
|
304
|
+
occurred_at: z.ZodString;
|
|
305
|
+
} & {
|
|
306
|
+
access_code_id: z.ZodString;
|
|
307
|
+
device_id: z.ZodString;
|
|
308
|
+
connected_account_id: z.ZodString;
|
|
309
|
+
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
310
|
+
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
109
311
|
} & {
|
|
110
312
|
event_type: z.ZodLiteral<"access_code.scheduled_on_device">;
|
|
111
313
|
code: z.ZodString;
|
|
@@ -4923,5 +5125,5 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
4923
5125
|
space_key?: string | undefined;
|
|
4924
5126
|
}>]>;
|
|
4925
5127
|
export type SeamEvent = z.infer<typeof seam_event>;
|
|
4926
|
-
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_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "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" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.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" | "camera.activated" | "device.doorbell_rang" | "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_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "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" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.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" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted")[]]>;
|
|
5128
|
+
export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.name_changed" | "access_code.code_changed" | "access_code.time_frame_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_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "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" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.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" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted", ...("access_code.created" | "access_code.changed" | "access_code.name_changed" | "access_code.code_changed" | "access_code.time_frame_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_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "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" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.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" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted")[]]>;
|
|
4927
5129
|
export type SeamEventType = SeamEvent['event_type'];
|
|
@@ -27,6 +27,7 @@ export declare const workspace: z.ZodObject<{
|
|
|
27
27
|
connect_partner_name: z.ZodNullable<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
publishable_key: z.ZodOptional<z.ZodString>;
|
|
29
29
|
is_publishable_key_auth_enabled: z.ZodBoolean;
|
|
30
|
+
organization_id: z.ZodNullable<z.ZodString>;
|
|
30
31
|
}, "strip", z.ZodTypeAny, {
|
|
31
32
|
name: string;
|
|
32
33
|
workspace_id: string;
|
|
@@ -42,6 +43,7 @@ export declare const workspace: z.ZodObject<{
|
|
|
42
43
|
};
|
|
43
44
|
connect_partner_name: string | null;
|
|
44
45
|
is_publishable_key_auth_enabled: boolean;
|
|
46
|
+
organization_id: string | null;
|
|
45
47
|
publishable_key?: string | undefined;
|
|
46
48
|
}, {
|
|
47
49
|
name: string;
|
|
@@ -58,6 +60,7 @@ export declare const workspace: z.ZodObject<{
|
|
|
58
60
|
};
|
|
59
61
|
connect_partner_name: string | null;
|
|
60
62
|
is_publishable_key_auth_enabled: boolean;
|
|
63
|
+
organization_id: string | null;
|
|
61
64
|
publishable_key?: string | undefined;
|
|
62
65
|
}>;
|
|
63
66
|
export type Workspace = z.infer<typeof workspace>;
|
|
@@ -53,6 +53,11 @@ export const workspace = z.object({
|
|
|
53
53
|
is_publishable_key_auth_enabled: z
|
|
54
54
|
.boolean()
|
|
55
55
|
.describe('Indicates whether publishable key authentication is enabled for this workspace.'),
|
|
56
|
+
organization_id: z
|
|
57
|
+
.string()
|
|
58
|
+
.uuid()
|
|
59
|
+
.nullable()
|
|
60
|
+
.describe('ID of the organization to which the [workspace](https://docs.seam.co/core-concepts/workspaces) belongs, or `null` if the workspace is not assigned to an organization.'),
|
|
56
61
|
}).describe(`
|
|
57
62
|
---
|
|
58
63
|
route_path: /workspaces
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/workspaces/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,uEAAuE,CACxE;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,yEAAyE,CAC1E;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,CACP,8FAA8F,CAC/F;IACH,UAAU,EAAE,CAAC;SACV,OAAO,EAAE;SACT,QAAQ,CACP,6HAA6H,CAC9H;IACH,6BAA6B,EAAE,CAAC,CAAC,MAAM,CAAC;QACtC,oBAAoB,EAAE,cAAc;aACjC,QAAQ,EAAE;aACV,QAAQ,CACP,4TAA4T,CAC7T;QACH,yBAAyB,EAAE,cAAc;aACtC,QAAQ,EAAE;aACV,QAAQ,CACP,iUAAiU,CAClU;QACH,eAAe,EAAE,CAAC;aACf,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,uTAAuT,CACxT;QACH,UAAU,EAAE,CAAC;aACV,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;aAC1B,QAAQ,EAAE;aACV,QAAQ,CACP,kTAAkT,CACnT;QACH,gBAAgB,EAAE,CAAC;aAChB,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,+TAA+T,CAChU;KACJ,CAAC;IACF,YAAY,EAAE,CAAC;SACZ,OAAO,EAAE;SACT,QAAQ,CACP,oMAAoM,CACrM;IACH,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP;;;;GAIH,CACE;SACA,QAAQ,EAAE;IACb,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,6JAA6J,CAC9J;IACH,+BAA+B,EAAE,CAAC;SAC/B,OAAO,EAAE;SACT,QAAQ,CACP,iFAAiF,CAClF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/workspaces/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,uEAAuE,CACxE;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,yEAAyE,CAC1E;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,CACP,8FAA8F,CAC/F;IACH,UAAU,EAAE,CAAC;SACV,OAAO,EAAE;SACT,QAAQ,CACP,6HAA6H,CAC9H;IACH,6BAA6B,EAAE,CAAC,CAAC,MAAM,CAAC;QACtC,oBAAoB,EAAE,cAAc;aACjC,QAAQ,EAAE;aACV,QAAQ,CACP,4TAA4T,CAC7T;QACH,yBAAyB,EAAE,cAAc;aACtC,QAAQ,EAAE;aACV,QAAQ,CACP,iUAAiU,CAClU;QACH,eAAe,EAAE,CAAC;aACf,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,uTAAuT,CACxT;QACH,UAAU,EAAE,CAAC;aACV,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;aAC1B,QAAQ,EAAE;aACV,QAAQ,CACP,kTAAkT,CACnT;QACH,gBAAgB,EAAE,CAAC;aAChB,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,+TAA+T,CAChU;KACJ,CAAC;IACF,YAAY,EAAE,CAAC;SACZ,OAAO,EAAE;SACT,QAAQ,CACP,oMAAoM,CACrM;IACH,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP;;;;GAIH,CACE;SACA,QAAQ,EAAE;IACb,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,6JAA6J,CAC9J;IACH,+BAA+B,EAAE,CAAC;SAC/B,OAAO,EAAE;SACT,QAAQ,CACP,iFAAiF,CAClF;IACH,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,wKAAwK,CACzK;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
|