@seamapi/types 1.695.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.
- package/dist/connect.cjs +388 -27
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +617 -4
- package/dist/index.cjs +388 -27
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +92 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +24 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +138 -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 +145 -0
- package/lib/seam/connect/openapi.js +312 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +246 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +40 -0
- package/src/lib/seam/connect/models/events/spaces.ts +47 -1
- package/src/lib/seam/connect/openapi.ts +338 -0
- package/src/lib/seam/connect/route-types.ts +258 -0
|
@@ -1,4 +1,48 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
declare const access_grant_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
3
|
+
created_at: z.ZodString;
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
} & {
|
|
6
|
+
error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
message: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
error_code: "cannot_create_requested_access_methods";
|
|
11
|
+
}, {
|
|
12
|
+
message: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
error_code: "cannot_create_requested_access_methods";
|
|
15
|
+
}>]>;
|
|
16
|
+
export type AccessGrantError = z.infer<typeof access_grant_error>;
|
|
17
|
+
export declare const _access_grant_error_map: z.ZodObject<{
|
|
18
|
+
cannot_create_requested_access_methods: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
19
|
+
created_at: z.ZodString;
|
|
20
|
+
message: z.ZodString;
|
|
21
|
+
} & {
|
|
22
|
+
error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
message: string;
|
|
25
|
+
created_at: string;
|
|
26
|
+
error_code: "cannot_create_requested_access_methods";
|
|
27
|
+
}, {
|
|
28
|
+
message: string;
|
|
29
|
+
created_at: string;
|
|
30
|
+
error_code: "cannot_create_requested_access_methods";
|
|
31
|
+
}>>>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
cannot_create_requested_access_methods?: {
|
|
34
|
+
message: string;
|
|
35
|
+
created_at: string;
|
|
36
|
+
error_code: "cannot_create_requested_access_methods";
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
cannot_create_requested_access_methods?: {
|
|
40
|
+
message: string;
|
|
41
|
+
created_at: string;
|
|
42
|
+
error_code: "cannot_create_requested_access_methods";
|
|
43
|
+
} | null | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export type AccessGrantErrorMap = z.infer<typeof _access_grant_error_map>;
|
|
2
46
|
declare const _access_grant_warning_map: z.ZodObject<{
|
|
3
47
|
being_deleted: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
48
|
created_at: z.ZodString;
|
|
@@ -77,6 +121,20 @@ export declare const access_grant: z.ZodObject<{
|
|
|
77
121
|
created_at: string;
|
|
78
122
|
warning_code: "being_deleted";
|
|
79
123
|
}>]>, "many">;
|
|
124
|
+
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
125
|
+
created_at: z.ZodString;
|
|
126
|
+
message: z.ZodString;
|
|
127
|
+
} & {
|
|
128
|
+
error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
message: string;
|
|
131
|
+
created_at: string;
|
|
132
|
+
error_code: "cannot_create_requested_access_methods";
|
|
133
|
+
}, {
|
|
134
|
+
message: string;
|
|
135
|
+
created_at: string;
|
|
136
|
+
error_code: "cannot_create_requested_access_methods";
|
|
137
|
+
}>]>, "many">;
|
|
80
138
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
81
139
|
}, "strip", z.ZodTypeAny, {
|
|
82
140
|
name: string | null;
|
|
@@ -85,6 +143,11 @@ export declare const access_grant: z.ZodObject<{
|
|
|
85
143
|
created_at: string;
|
|
86
144
|
starts_at: string;
|
|
87
145
|
ends_at: string | null;
|
|
146
|
+
errors: {
|
|
147
|
+
message: string;
|
|
148
|
+
created_at: string;
|
|
149
|
+
error_code: "cannot_create_requested_access_methods";
|
|
150
|
+
}[];
|
|
88
151
|
warnings: {
|
|
89
152
|
message: string;
|
|
90
153
|
created_at: string;
|
|
@@ -114,6 +177,11 @@ export declare const access_grant: z.ZodObject<{
|
|
|
114
177
|
created_at: string;
|
|
115
178
|
starts_at: string;
|
|
116
179
|
ends_at: string | null;
|
|
180
|
+
errors: {
|
|
181
|
+
message: string;
|
|
182
|
+
created_at: string;
|
|
183
|
+
error_code: "cannot_create_requested_access_methods";
|
|
184
|
+
}[];
|
|
117
185
|
warnings: {
|
|
118
186
|
message: string;
|
|
119
187
|
created_at: string;
|
|
@@ -187,6 +255,20 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
|
|
|
187
255
|
created_at: string;
|
|
188
256
|
warning_code: "being_deleted";
|
|
189
257
|
}>]>, "many">;
|
|
258
|
+
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
259
|
+
created_at: z.ZodString;
|
|
260
|
+
message: z.ZodString;
|
|
261
|
+
} & {
|
|
262
|
+
error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
message: string;
|
|
265
|
+
created_at: string;
|
|
266
|
+
error_code: "cannot_create_requested_access_methods";
|
|
267
|
+
}, {
|
|
268
|
+
message: string;
|
|
269
|
+
created_at: string;
|
|
270
|
+
error_code: "cannot_create_requested_access_methods";
|
|
271
|
+
}>]>, "many">;
|
|
190
272
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
191
273
|
}, "access_grant_key" | "user_identity_id" | "client_session_token" | "instant_key_url" | "customization_profile_id"> & {
|
|
192
274
|
user_identity_id: z.ZodOptional<z.ZodString>;
|
|
@@ -197,6 +279,11 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
|
|
|
197
279
|
created_at: string;
|
|
198
280
|
starts_at: string;
|
|
199
281
|
ends_at: string | null;
|
|
282
|
+
errors: {
|
|
283
|
+
message: string;
|
|
284
|
+
created_at: string;
|
|
285
|
+
error_code: "cannot_create_requested_access_methods";
|
|
286
|
+
}[];
|
|
200
287
|
warnings: {
|
|
201
288
|
message: string;
|
|
202
289
|
created_at: string;
|
|
@@ -222,6 +309,11 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
|
|
|
222
309
|
created_at: string;
|
|
223
310
|
starts_at: string;
|
|
224
311
|
ends_at: string | null;
|
|
312
|
+
errors: {
|
|
313
|
+
message: string;
|
|
314
|
+
created_at: string;
|
|
315
|
+
error_code: "cannot_create_requested_access_methods";
|
|
316
|
+
}[];
|
|
225
317
|
warnings: {
|
|
226
318
|
message: string;
|
|
227
319
|
created_at: string;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { requested_access_method } from './requested-access-method.js';
|
|
3
|
+
const common_access_grant_error = z.object({
|
|
4
|
+
created_at: z
|
|
5
|
+
.string()
|
|
6
|
+
.datetime()
|
|
7
|
+
.describe('Date and time at which Seam created the error.'),
|
|
8
|
+
message: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
11
|
+
});
|
|
12
|
+
const error_code_description = 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.';
|
|
13
|
+
const cannot_create_requested_access_methods_error = common_access_grant_error.extend({
|
|
14
|
+
error_code: z
|
|
15
|
+
.literal('cannot_create_requested_access_methods')
|
|
16
|
+
.describe(error_code_description),
|
|
17
|
+
});
|
|
3
18
|
const common_access_grant_warning = z.object({
|
|
4
19
|
created_at: z
|
|
5
20
|
.string()
|
|
@@ -10,6 +25,12 @@ const common_access_grant_warning = z.object({
|
|
|
10
25
|
.describe('Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.'),
|
|
11
26
|
});
|
|
12
27
|
const warning_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
|
|
28
|
+
const access_grant_error = z.discriminatedUnion('error_code', [
|
|
29
|
+
cannot_create_requested_access_methods_error,
|
|
30
|
+
]);
|
|
31
|
+
export const _access_grant_error_map = z.object({
|
|
32
|
+
cannot_create_requested_access_methods: cannot_create_requested_access_methods_error.optional().nullable(),
|
|
33
|
+
});
|
|
13
34
|
const being_deleted = common_access_grant_warning
|
|
14
35
|
.extend({
|
|
15
36
|
warning_code: z.literal('being_deleted').describe(warning_code_description),
|
|
@@ -83,6 +104,9 @@ export const access_grant = z.object({
|
|
|
83
104
|
warnings: z
|
|
84
105
|
.array(access_grant_warning)
|
|
85
106
|
.describe('Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).'),
|
|
107
|
+
errors: z
|
|
108
|
+
.array(access_grant_error)
|
|
109
|
+
.describe('Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).'),
|
|
86
110
|
customization_profile_id: z
|
|
87
111
|
.string()
|
|
88
112
|
.uuid()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect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,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,oBAAoB,CAAC;SAC3B,QAAQ,CACP,2GAA2G,CAC5G;IACH,wBAAwB,EAAE,CAAC;SACxB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,mEAAmE,CACpE;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA;AAIJ,2GAA2G;AAC3G,MAAM,CAAC,MAAM,sBAAsB,GAAG,YAAY;KAC/C,IAAI,CAAC;IACJ,oBAAoB,EAAE,IAAI;IAC1B,eAAe,EAAE,IAAI;IACrB,wBAAwB,EAAE,IAAI;IAC9B,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,IAAI;CACvB,CAAC;KACD,MAAM,CAAC;IACN,gBAAgB,EAAE,YAAY,CAAC,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAEtE,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAC1B,oGAAoG,CAAA;AAEtG,MAAM,4CAA4C,GAChD,yBAAyB,CAAC,MAAM,CAAC;IAC/B,UAAU,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,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;IACnE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,oBAAoB,CAAC;SAC3B,QAAQ,CACP,2GAA2G,CAC5G;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,kBAAkB,CAAC;SACzB,QAAQ,CACP,yGAAyG,CAC1G;IACH,wBAAwB,EAAE,CAAC;SACxB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,mEAAmE,CACpE;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA;AAIJ,2GAA2G;AAC3G,MAAM,CAAC,MAAM,sBAAsB,GAAG,YAAY;KAC/C,IAAI,CAAC;IACJ,oBAAoB,EAAE,IAAI;IAC1B,eAAe,EAAE,IAAI;IACrB,wBAAwB,EAAE,IAAI;IAC9B,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,IAAI;CACvB,CAAC;KACD,MAAM,CAAC;IACN,gBAAgB,EAAE,YAAY,CAAC,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMX,CAAC,CAAA"}
|
|
@@ -15207,6 +15207,20 @@ export declare const batch: z.ZodObject<{
|
|
|
15207
15207
|
created_at: string;
|
|
15208
15208
|
warning_code: "being_deleted";
|
|
15209
15209
|
}>]>, "many">;
|
|
15210
|
+
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
15211
|
+
created_at: z.ZodString;
|
|
15212
|
+
message: z.ZodString;
|
|
15213
|
+
} & {
|
|
15214
|
+
error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
|
|
15215
|
+
}, "strip", z.ZodTypeAny, {
|
|
15216
|
+
message: string;
|
|
15217
|
+
created_at: string;
|
|
15218
|
+
error_code: "cannot_create_requested_access_methods";
|
|
15219
|
+
}, {
|
|
15220
|
+
message: string;
|
|
15221
|
+
created_at: string;
|
|
15222
|
+
error_code: "cannot_create_requested_access_methods";
|
|
15223
|
+
}>]>, "many">;
|
|
15210
15224
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
15211
15225
|
}, "strip", z.ZodTypeAny, {
|
|
15212
15226
|
name: string | null;
|
|
@@ -15215,6 +15229,11 @@ export declare const batch: z.ZodObject<{
|
|
|
15215
15229
|
created_at: string;
|
|
15216
15230
|
starts_at: string;
|
|
15217
15231
|
ends_at: string | null;
|
|
15232
|
+
errors: {
|
|
15233
|
+
message: string;
|
|
15234
|
+
created_at: string;
|
|
15235
|
+
error_code: "cannot_create_requested_access_methods";
|
|
15236
|
+
}[];
|
|
15218
15237
|
warnings: {
|
|
15219
15238
|
message: string;
|
|
15220
15239
|
created_at: string;
|
|
@@ -15244,6 +15263,11 @@ export declare const batch: z.ZodObject<{
|
|
|
15244
15263
|
created_at: string;
|
|
15245
15264
|
starts_at: string;
|
|
15246
15265
|
ends_at: string | null;
|
|
15266
|
+
errors: {
|
|
15267
|
+
message: string;
|
|
15268
|
+
created_at: string;
|
|
15269
|
+
error_code: "cannot_create_requested_access_methods";
|
|
15270
|
+
}[];
|
|
15247
15271
|
warnings: {
|
|
15248
15272
|
message: string;
|
|
15249
15273
|
created_at: string;
|
|
@@ -18328,6 +18352,70 @@ export declare const batch: z.ZodObject<{
|
|
|
18328
18352
|
device_ids: string[];
|
|
18329
18353
|
acs_entrance_ids: string[];
|
|
18330
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;
|
|
18331
18419
|
}>]>, "many">>;
|
|
18332
18420
|
instant_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18333
18421
|
instant_key_id: z.ZodString;
|
|
@@ -24072,6 +24160,11 @@ export declare const batch: z.ZodObject<{
|
|
|
24072
24160
|
created_at: string;
|
|
24073
24161
|
starts_at: string;
|
|
24074
24162
|
ends_at: string | null;
|
|
24163
|
+
errors: {
|
|
24164
|
+
message: string;
|
|
24165
|
+
created_at: string;
|
|
24166
|
+
error_code: "cannot_create_requested_access_methods";
|
|
24167
|
+
}[];
|
|
24075
24168
|
warnings: {
|
|
24076
24169
|
message: string;
|
|
24077
24170
|
created_at: string;
|
|
@@ -25043,6 +25136,26 @@ export declare const batch: z.ZodObject<{
|
|
|
25043
25136
|
device_ids: string[];
|
|
25044
25137
|
acs_entrance_ids: string[];
|
|
25045
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;
|
|
25046
25159
|
})[] | undefined;
|
|
25047
25160
|
instant_keys?: {
|
|
25048
25161
|
workspace_id: string;
|
|
@@ -28149,6 +28262,11 @@ export declare const batch: z.ZodObject<{
|
|
|
28149
28262
|
created_at: string;
|
|
28150
28263
|
starts_at: string;
|
|
28151
28264
|
ends_at: string | null;
|
|
28265
|
+
errors: {
|
|
28266
|
+
message: string;
|
|
28267
|
+
created_at: string;
|
|
28268
|
+
error_code: "cannot_create_requested_access_methods";
|
|
28269
|
+
}[];
|
|
28152
28270
|
warnings: {
|
|
28153
28271
|
message: string;
|
|
28154
28272
|
created_at: string;
|
|
@@ -29120,6 +29238,26 @@ export declare const batch: z.ZodObject<{
|
|
|
29120
29238
|
device_ids: string[];
|
|
29121
29239
|
acs_entrance_ids: string[];
|
|
29122
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;
|
|
29123
29261
|
})[] | undefined;
|
|
29124
29262
|
instant_keys?: {
|
|
29125
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
|