@seamapi/types 1.737.0 → 1.739.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 +1867 -18
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4282 -348
- package/dist/index.cjs +1867 -18
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +590 -0
- package/lib/seam/connect/models/acs/acs-access-group.js +4 -0
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-groups/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/acs-access-groups/index.js +2 -0
- package/lib/seam/connect/models/acs/acs-access-groups/index.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.d.ts +511 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +126 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +12 -12
- package/lib/seam/connect/models/acs/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/index.js +1 -0
- package/lib/seam/connect/models/acs/index.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +20 -20
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
- package/lib/seam/connect/models/batch.d.ts +868 -74
- package/lib/seam/connect/models/events/acs/entrances.d.ts +8 -8
- package/lib/seam/connect/models/events/acs/index.d.ts +8 -8
- package/lib/seam/connect/models/events/acs/users.d.ts +8 -8
- package/lib/seam/connect/models/events/devices.d.ts +4 -4
- package/lib/seam/connect/models/events/seam-event.d.ts +10 -10
- package/lib/seam/connect/models/phones/phone-session.d.ts +30 -30
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +12 -12
- package/lib/seam/connect/openapi.d.ts +1761 -0
- package/lib/seam/connect/openapi.js +1758 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +789 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +6 -0
- package/src/lib/seam/connect/models/acs/acs-access-groups/index.ts +1 -0
- package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +171 -0
- package/src/lib/seam/connect/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +1800 -0
- package/src/lib/seam/connect/route-types.ts +902 -0
|
@@ -117,6 +117,199 @@ export declare const acs_access_group: z.ZodObject<{
|
|
|
117
117
|
starts_at: string;
|
|
118
118
|
ends_at: string | null;
|
|
119
119
|
}>>;
|
|
120
|
+
pending_mutations: z.ZodArray<z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
|
|
121
|
+
created_at: z.ZodString;
|
|
122
|
+
message: z.ZodString;
|
|
123
|
+
} & {
|
|
124
|
+
mutation_code: z.ZodLiteral<"creating">;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
message: string;
|
|
127
|
+
created_at: string;
|
|
128
|
+
mutation_code: "creating";
|
|
129
|
+
}, {
|
|
130
|
+
message: string;
|
|
131
|
+
created_at: string;
|
|
132
|
+
mutation_code: "creating";
|
|
133
|
+
}>, z.ZodObject<{
|
|
134
|
+
created_at: z.ZodString;
|
|
135
|
+
message: z.ZodString;
|
|
136
|
+
} & {
|
|
137
|
+
mutation_code: z.ZodLiteral<"deleting">;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
message: string;
|
|
140
|
+
created_at: string;
|
|
141
|
+
mutation_code: "deleting";
|
|
142
|
+
}, {
|
|
143
|
+
message: string;
|
|
144
|
+
created_at: string;
|
|
145
|
+
mutation_code: "deleting";
|
|
146
|
+
}>, z.ZodObject<{
|
|
147
|
+
created_at: z.ZodString;
|
|
148
|
+
message: z.ZodString;
|
|
149
|
+
} & {
|
|
150
|
+
mutation_code: z.ZodLiteral<"updating_group_information">;
|
|
151
|
+
from: z.ZodObject<{
|
|
152
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
name?: string | null | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
name?: string | null | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
to: z.ZodObject<{
|
|
159
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
name?: string | null | undefined;
|
|
162
|
+
}, {
|
|
163
|
+
name?: string | null | undefined;
|
|
164
|
+
}>;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
message: string;
|
|
167
|
+
created_at: string;
|
|
168
|
+
mutation_code: "updating_group_information";
|
|
169
|
+
from: {
|
|
170
|
+
name?: string | null | undefined;
|
|
171
|
+
};
|
|
172
|
+
to: {
|
|
173
|
+
name?: string | null | undefined;
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
message: string;
|
|
177
|
+
created_at: string;
|
|
178
|
+
mutation_code: "updating_group_information";
|
|
179
|
+
from: {
|
|
180
|
+
name?: string | null | undefined;
|
|
181
|
+
};
|
|
182
|
+
to: {
|
|
183
|
+
name?: string | null | undefined;
|
|
184
|
+
};
|
|
185
|
+
}>, z.ZodObject<{
|
|
186
|
+
created_at: z.ZodString;
|
|
187
|
+
message: z.ZodString;
|
|
188
|
+
} & {
|
|
189
|
+
mutation_code: z.ZodLiteral<"updating_access_schedule">;
|
|
190
|
+
from: z.ZodObject<{
|
|
191
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
192
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
starts_at: string | null;
|
|
195
|
+
ends_at: string | null;
|
|
196
|
+
}, {
|
|
197
|
+
starts_at: string | null;
|
|
198
|
+
ends_at: string | null;
|
|
199
|
+
}>;
|
|
200
|
+
to: z.ZodObject<{
|
|
201
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
202
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
starts_at: string | null;
|
|
205
|
+
ends_at: string | null;
|
|
206
|
+
}, {
|
|
207
|
+
starts_at: string | null;
|
|
208
|
+
ends_at: string | null;
|
|
209
|
+
}>;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
message: string;
|
|
212
|
+
created_at: string;
|
|
213
|
+
mutation_code: "updating_access_schedule";
|
|
214
|
+
from: {
|
|
215
|
+
starts_at: string | null;
|
|
216
|
+
ends_at: string | null;
|
|
217
|
+
};
|
|
218
|
+
to: {
|
|
219
|
+
starts_at: string | null;
|
|
220
|
+
ends_at: string | null;
|
|
221
|
+
};
|
|
222
|
+
}, {
|
|
223
|
+
message: string;
|
|
224
|
+
created_at: string;
|
|
225
|
+
mutation_code: "updating_access_schedule";
|
|
226
|
+
from: {
|
|
227
|
+
starts_at: string | null;
|
|
228
|
+
ends_at: string | null;
|
|
229
|
+
};
|
|
230
|
+
to: {
|
|
231
|
+
starts_at: string | null;
|
|
232
|
+
ends_at: string | null;
|
|
233
|
+
};
|
|
234
|
+
}>, z.ZodObject<{
|
|
235
|
+
created_at: z.ZodString;
|
|
236
|
+
message: z.ZodString;
|
|
237
|
+
} & {
|
|
238
|
+
mutation_code: z.ZodLiteral<"updating_user_membership">;
|
|
239
|
+
from: z.ZodObject<{
|
|
240
|
+
acs_user_id: z.ZodNullable<z.ZodString>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
acs_user_id: string | null;
|
|
243
|
+
}, {
|
|
244
|
+
acs_user_id: string | null;
|
|
245
|
+
}>;
|
|
246
|
+
to: z.ZodObject<{
|
|
247
|
+
acs_user_id: z.ZodNullable<z.ZodString>;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
acs_user_id: string | null;
|
|
250
|
+
}, {
|
|
251
|
+
acs_user_id: string | null;
|
|
252
|
+
}>;
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
254
|
+
message: string;
|
|
255
|
+
created_at: string;
|
|
256
|
+
mutation_code: "updating_user_membership";
|
|
257
|
+
from: {
|
|
258
|
+
acs_user_id: string | null;
|
|
259
|
+
};
|
|
260
|
+
to: {
|
|
261
|
+
acs_user_id: string | null;
|
|
262
|
+
};
|
|
263
|
+
}, {
|
|
264
|
+
message: string;
|
|
265
|
+
created_at: string;
|
|
266
|
+
mutation_code: "updating_user_membership";
|
|
267
|
+
from: {
|
|
268
|
+
acs_user_id: string | null;
|
|
269
|
+
};
|
|
270
|
+
to: {
|
|
271
|
+
acs_user_id: string | null;
|
|
272
|
+
};
|
|
273
|
+
}>, z.ZodObject<{
|
|
274
|
+
created_at: z.ZodString;
|
|
275
|
+
message: z.ZodString;
|
|
276
|
+
} & {
|
|
277
|
+
mutation_code: z.ZodLiteral<"updating_entrance_membership">;
|
|
278
|
+
from: z.ZodObject<{
|
|
279
|
+
acs_entrance_id: z.ZodNullable<z.ZodString>;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
acs_entrance_id: string | null;
|
|
282
|
+
}, {
|
|
283
|
+
acs_entrance_id: string | null;
|
|
284
|
+
}>;
|
|
285
|
+
to: z.ZodObject<{
|
|
286
|
+
acs_entrance_id: z.ZodNullable<z.ZodString>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
acs_entrance_id: string | null;
|
|
289
|
+
}, {
|
|
290
|
+
acs_entrance_id: string | null;
|
|
291
|
+
}>;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
message: string;
|
|
294
|
+
created_at: string;
|
|
295
|
+
mutation_code: "updating_entrance_membership";
|
|
296
|
+
from: {
|
|
297
|
+
acs_entrance_id: string | null;
|
|
298
|
+
};
|
|
299
|
+
to: {
|
|
300
|
+
acs_entrance_id: string | null;
|
|
301
|
+
};
|
|
302
|
+
}, {
|
|
303
|
+
message: string;
|
|
304
|
+
created_at: string;
|
|
305
|
+
mutation_code: "updating_entrance_membership";
|
|
306
|
+
from: {
|
|
307
|
+
acs_entrance_id: string | null;
|
|
308
|
+
};
|
|
309
|
+
to: {
|
|
310
|
+
acs_entrance_id: string | null;
|
|
311
|
+
};
|
|
312
|
+
}>]>, "many">;
|
|
120
313
|
} & {
|
|
121
314
|
is_managed: z.ZodLiteral<true>;
|
|
122
315
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -135,6 +328,57 @@ export declare const acs_access_group: z.ZodObject<{
|
|
|
135
328
|
warning_code: "being_deleted";
|
|
136
329
|
})[];
|
|
137
330
|
is_managed: true;
|
|
331
|
+
pending_mutations: ({
|
|
332
|
+
message: string;
|
|
333
|
+
created_at: string;
|
|
334
|
+
mutation_code: "creating";
|
|
335
|
+
} | {
|
|
336
|
+
message: string;
|
|
337
|
+
created_at: string;
|
|
338
|
+
mutation_code: "deleting";
|
|
339
|
+
} | {
|
|
340
|
+
message: string;
|
|
341
|
+
created_at: string;
|
|
342
|
+
mutation_code: "updating_group_information";
|
|
343
|
+
from: {
|
|
344
|
+
name?: string | null | undefined;
|
|
345
|
+
};
|
|
346
|
+
to: {
|
|
347
|
+
name?: string | null | undefined;
|
|
348
|
+
};
|
|
349
|
+
} | {
|
|
350
|
+
message: string;
|
|
351
|
+
created_at: string;
|
|
352
|
+
mutation_code: "updating_access_schedule";
|
|
353
|
+
from: {
|
|
354
|
+
starts_at: string | null;
|
|
355
|
+
ends_at: string | null;
|
|
356
|
+
};
|
|
357
|
+
to: {
|
|
358
|
+
starts_at: string | null;
|
|
359
|
+
ends_at: string | null;
|
|
360
|
+
};
|
|
361
|
+
} | {
|
|
362
|
+
message: string;
|
|
363
|
+
created_at: string;
|
|
364
|
+
mutation_code: "updating_user_membership";
|
|
365
|
+
from: {
|
|
366
|
+
acs_user_id: string | null;
|
|
367
|
+
};
|
|
368
|
+
to: {
|
|
369
|
+
acs_user_id: string | null;
|
|
370
|
+
};
|
|
371
|
+
} | {
|
|
372
|
+
message: string;
|
|
373
|
+
created_at: string;
|
|
374
|
+
mutation_code: "updating_entrance_membership";
|
|
375
|
+
from: {
|
|
376
|
+
acs_entrance_id: string | null;
|
|
377
|
+
};
|
|
378
|
+
to: {
|
|
379
|
+
acs_entrance_id: string | null;
|
|
380
|
+
};
|
|
381
|
+
})[];
|
|
138
382
|
acs_access_group_id: string;
|
|
139
383
|
acs_system_id: string;
|
|
140
384
|
access_group_type: "pti_unit" | "pti_access_level" | "salto_ks_access_group" | "brivo_group" | "salto_space_group" | "dormakaba_community_access_group" | "dormakaba_ambiance_access_group";
|
|
@@ -161,6 +405,57 @@ export declare const acs_access_group: z.ZodObject<{
|
|
|
161
405
|
warning_code: "being_deleted";
|
|
162
406
|
})[];
|
|
163
407
|
is_managed: true;
|
|
408
|
+
pending_mutations: ({
|
|
409
|
+
message: string;
|
|
410
|
+
created_at: string;
|
|
411
|
+
mutation_code: "creating";
|
|
412
|
+
} | {
|
|
413
|
+
message: string;
|
|
414
|
+
created_at: string;
|
|
415
|
+
mutation_code: "deleting";
|
|
416
|
+
} | {
|
|
417
|
+
message: string;
|
|
418
|
+
created_at: string;
|
|
419
|
+
mutation_code: "updating_group_information";
|
|
420
|
+
from: {
|
|
421
|
+
name?: string | null | undefined;
|
|
422
|
+
};
|
|
423
|
+
to: {
|
|
424
|
+
name?: string | null | undefined;
|
|
425
|
+
};
|
|
426
|
+
} | {
|
|
427
|
+
message: string;
|
|
428
|
+
created_at: string;
|
|
429
|
+
mutation_code: "updating_access_schedule";
|
|
430
|
+
from: {
|
|
431
|
+
starts_at: string | null;
|
|
432
|
+
ends_at: string | null;
|
|
433
|
+
};
|
|
434
|
+
to: {
|
|
435
|
+
starts_at: string | null;
|
|
436
|
+
ends_at: string | null;
|
|
437
|
+
};
|
|
438
|
+
} | {
|
|
439
|
+
message: string;
|
|
440
|
+
created_at: string;
|
|
441
|
+
mutation_code: "updating_user_membership";
|
|
442
|
+
from: {
|
|
443
|
+
acs_user_id: string | null;
|
|
444
|
+
};
|
|
445
|
+
to: {
|
|
446
|
+
acs_user_id: string | null;
|
|
447
|
+
};
|
|
448
|
+
} | {
|
|
449
|
+
message: string;
|
|
450
|
+
created_at: string;
|
|
451
|
+
mutation_code: "updating_entrance_membership";
|
|
452
|
+
from: {
|
|
453
|
+
acs_entrance_id: string | null;
|
|
454
|
+
};
|
|
455
|
+
to: {
|
|
456
|
+
acs_entrance_id: string | null;
|
|
457
|
+
};
|
|
458
|
+
})[];
|
|
164
459
|
acs_access_group_id: string;
|
|
165
460
|
acs_system_id: string;
|
|
166
461
|
access_group_type: "pti_unit" | "pti_access_level" | "salto_ks_access_group" | "brivo_group" | "salto_space_group" | "dormakaba_community_access_group" | "dormakaba_ambiance_access_group";
|
|
@@ -221,6 +516,199 @@ export declare const unmanaged_acs_access_group: z.ZodObject<{
|
|
|
221
516
|
starts_at: string;
|
|
222
517
|
ends_at: string | null;
|
|
223
518
|
}>>;
|
|
519
|
+
pending_mutations: z.ZodArray<z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
|
|
520
|
+
created_at: z.ZodString;
|
|
521
|
+
message: z.ZodString;
|
|
522
|
+
} & {
|
|
523
|
+
mutation_code: z.ZodLiteral<"creating">;
|
|
524
|
+
}, "strip", z.ZodTypeAny, {
|
|
525
|
+
message: string;
|
|
526
|
+
created_at: string;
|
|
527
|
+
mutation_code: "creating";
|
|
528
|
+
}, {
|
|
529
|
+
message: string;
|
|
530
|
+
created_at: string;
|
|
531
|
+
mutation_code: "creating";
|
|
532
|
+
}>, z.ZodObject<{
|
|
533
|
+
created_at: z.ZodString;
|
|
534
|
+
message: z.ZodString;
|
|
535
|
+
} & {
|
|
536
|
+
mutation_code: z.ZodLiteral<"deleting">;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
message: string;
|
|
539
|
+
created_at: string;
|
|
540
|
+
mutation_code: "deleting";
|
|
541
|
+
}, {
|
|
542
|
+
message: string;
|
|
543
|
+
created_at: string;
|
|
544
|
+
mutation_code: "deleting";
|
|
545
|
+
}>, z.ZodObject<{
|
|
546
|
+
created_at: z.ZodString;
|
|
547
|
+
message: z.ZodString;
|
|
548
|
+
} & {
|
|
549
|
+
mutation_code: z.ZodLiteral<"updating_group_information">;
|
|
550
|
+
from: z.ZodObject<{
|
|
551
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
|
+
}, "strip", z.ZodTypeAny, {
|
|
553
|
+
name?: string | null | undefined;
|
|
554
|
+
}, {
|
|
555
|
+
name?: string | null | undefined;
|
|
556
|
+
}>;
|
|
557
|
+
to: z.ZodObject<{
|
|
558
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
559
|
+
}, "strip", z.ZodTypeAny, {
|
|
560
|
+
name?: string | null | undefined;
|
|
561
|
+
}, {
|
|
562
|
+
name?: string | null | undefined;
|
|
563
|
+
}>;
|
|
564
|
+
}, "strip", z.ZodTypeAny, {
|
|
565
|
+
message: string;
|
|
566
|
+
created_at: string;
|
|
567
|
+
mutation_code: "updating_group_information";
|
|
568
|
+
from: {
|
|
569
|
+
name?: string | null | undefined;
|
|
570
|
+
};
|
|
571
|
+
to: {
|
|
572
|
+
name?: string | null | undefined;
|
|
573
|
+
};
|
|
574
|
+
}, {
|
|
575
|
+
message: string;
|
|
576
|
+
created_at: string;
|
|
577
|
+
mutation_code: "updating_group_information";
|
|
578
|
+
from: {
|
|
579
|
+
name?: string | null | undefined;
|
|
580
|
+
};
|
|
581
|
+
to: {
|
|
582
|
+
name?: string | null | undefined;
|
|
583
|
+
};
|
|
584
|
+
}>, z.ZodObject<{
|
|
585
|
+
created_at: z.ZodString;
|
|
586
|
+
message: z.ZodString;
|
|
587
|
+
} & {
|
|
588
|
+
mutation_code: z.ZodLiteral<"updating_access_schedule">;
|
|
589
|
+
from: z.ZodObject<{
|
|
590
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
591
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
592
|
+
}, "strip", z.ZodTypeAny, {
|
|
593
|
+
starts_at: string | null;
|
|
594
|
+
ends_at: string | null;
|
|
595
|
+
}, {
|
|
596
|
+
starts_at: string | null;
|
|
597
|
+
ends_at: string | null;
|
|
598
|
+
}>;
|
|
599
|
+
to: z.ZodObject<{
|
|
600
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
601
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
starts_at: string | null;
|
|
604
|
+
ends_at: string | null;
|
|
605
|
+
}, {
|
|
606
|
+
starts_at: string | null;
|
|
607
|
+
ends_at: string | null;
|
|
608
|
+
}>;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
message: string;
|
|
611
|
+
created_at: string;
|
|
612
|
+
mutation_code: "updating_access_schedule";
|
|
613
|
+
from: {
|
|
614
|
+
starts_at: string | null;
|
|
615
|
+
ends_at: string | null;
|
|
616
|
+
};
|
|
617
|
+
to: {
|
|
618
|
+
starts_at: string | null;
|
|
619
|
+
ends_at: string | null;
|
|
620
|
+
};
|
|
621
|
+
}, {
|
|
622
|
+
message: string;
|
|
623
|
+
created_at: string;
|
|
624
|
+
mutation_code: "updating_access_schedule";
|
|
625
|
+
from: {
|
|
626
|
+
starts_at: string | null;
|
|
627
|
+
ends_at: string | null;
|
|
628
|
+
};
|
|
629
|
+
to: {
|
|
630
|
+
starts_at: string | null;
|
|
631
|
+
ends_at: string | null;
|
|
632
|
+
};
|
|
633
|
+
}>, z.ZodObject<{
|
|
634
|
+
created_at: z.ZodString;
|
|
635
|
+
message: z.ZodString;
|
|
636
|
+
} & {
|
|
637
|
+
mutation_code: z.ZodLiteral<"updating_user_membership">;
|
|
638
|
+
from: z.ZodObject<{
|
|
639
|
+
acs_user_id: z.ZodNullable<z.ZodString>;
|
|
640
|
+
}, "strip", z.ZodTypeAny, {
|
|
641
|
+
acs_user_id: string | null;
|
|
642
|
+
}, {
|
|
643
|
+
acs_user_id: string | null;
|
|
644
|
+
}>;
|
|
645
|
+
to: z.ZodObject<{
|
|
646
|
+
acs_user_id: z.ZodNullable<z.ZodString>;
|
|
647
|
+
}, "strip", z.ZodTypeAny, {
|
|
648
|
+
acs_user_id: string | null;
|
|
649
|
+
}, {
|
|
650
|
+
acs_user_id: string | null;
|
|
651
|
+
}>;
|
|
652
|
+
}, "strip", z.ZodTypeAny, {
|
|
653
|
+
message: string;
|
|
654
|
+
created_at: string;
|
|
655
|
+
mutation_code: "updating_user_membership";
|
|
656
|
+
from: {
|
|
657
|
+
acs_user_id: string | null;
|
|
658
|
+
};
|
|
659
|
+
to: {
|
|
660
|
+
acs_user_id: string | null;
|
|
661
|
+
};
|
|
662
|
+
}, {
|
|
663
|
+
message: string;
|
|
664
|
+
created_at: string;
|
|
665
|
+
mutation_code: "updating_user_membership";
|
|
666
|
+
from: {
|
|
667
|
+
acs_user_id: string | null;
|
|
668
|
+
};
|
|
669
|
+
to: {
|
|
670
|
+
acs_user_id: string | null;
|
|
671
|
+
};
|
|
672
|
+
}>, z.ZodObject<{
|
|
673
|
+
created_at: z.ZodString;
|
|
674
|
+
message: z.ZodString;
|
|
675
|
+
} & {
|
|
676
|
+
mutation_code: z.ZodLiteral<"updating_entrance_membership">;
|
|
677
|
+
from: z.ZodObject<{
|
|
678
|
+
acs_entrance_id: z.ZodNullable<z.ZodString>;
|
|
679
|
+
}, "strip", z.ZodTypeAny, {
|
|
680
|
+
acs_entrance_id: string | null;
|
|
681
|
+
}, {
|
|
682
|
+
acs_entrance_id: string | null;
|
|
683
|
+
}>;
|
|
684
|
+
to: z.ZodObject<{
|
|
685
|
+
acs_entrance_id: z.ZodNullable<z.ZodString>;
|
|
686
|
+
}, "strip", z.ZodTypeAny, {
|
|
687
|
+
acs_entrance_id: string | null;
|
|
688
|
+
}, {
|
|
689
|
+
acs_entrance_id: string | null;
|
|
690
|
+
}>;
|
|
691
|
+
}, "strip", z.ZodTypeAny, {
|
|
692
|
+
message: string;
|
|
693
|
+
created_at: string;
|
|
694
|
+
mutation_code: "updating_entrance_membership";
|
|
695
|
+
from: {
|
|
696
|
+
acs_entrance_id: string | null;
|
|
697
|
+
};
|
|
698
|
+
to: {
|
|
699
|
+
acs_entrance_id: string | null;
|
|
700
|
+
};
|
|
701
|
+
}, {
|
|
702
|
+
message: string;
|
|
703
|
+
created_at: string;
|
|
704
|
+
mutation_code: "updating_entrance_membership";
|
|
705
|
+
from: {
|
|
706
|
+
acs_entrance_id: string | null;
|
|
707
|
+
};
|
|
708
|
+
to: {
|
|
709
|
+
acs_entrance_id: string | null;
|
|
710
|
+
};
|
|
711
|
+
}>]>, "many">;
|
|
224
712
|
} & {
|
|
225
713
|
is_managed: z.ZodLiteral<false>;
|
|
226
714
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -239,6 +727,57 @@ export declare const unmanaged_acs_access_group: z.ZodObject<{
|
|
|
239
727
|
warning_code: "being_deleted";
|
|
240
728
|
})[];
|
|
241
729
|
is_managed: false;
|
|
730
|
+
pending_mutations: ({
|
|
731
|
+
message: string;
|
|
732
|
+
created_at: string;
|
|
733
|
+
mutation_code: "creating";
|
|
734
|
+
} | {
|
|
735
|
+
message: string;
|
|
736
|
+
created_at: string;
|
|
737
|
+
mutation_code: "deleting";
|
|
738
|
+
} | {
|
|
739
|
+
message: string;
|
|
740
|
+
created_at: string;
|
|
741
|
+
mutation_code: "updating_group_information";
|
|
742
|
+
from: {
|
|
743
|
+
name?: string | null | undefined;
|
|
744
|
+
};
|
|
745
|
+
to: {
|
|
746
|
+
name?: string | null | undefined;
|
|
747
|
+
};
|
|
748
|
+
} | {
|
|
749
|
+
message: string;
|
|
750
|
+
created_at: string;
|
|
751
|
+
mutation_code: "updating_access_schedule";
|
|
752
|
+
from: {
|
|
753
|
+
starts_at: string | null;
|
|
754
|
+
ends_at: string | null;
|
|
755
|
+
};
|
|
756
|
+
to: {
|
|
757
|
+
starts_at: string | null;
|
|
758
|
+
ends_at: string | null;
|
|
759
|
+
};
|
|
760
|
+
} | {
|
|
761
|
+
message: string;
|
|
762
|
+
created_at: string;
|
|
763
|
+
mutation_code: "updating_user_membership";
|
|
764
|
+
from: {
|
|
765
|
+
acs_user_id: string | null;
|
|
766
|
+
};
|
|
767
|
+
to: {
|
|
768
|
+
acs_user_id: string | null;
|
|
769
|
+
};
|
|
770
|
+
} | {
|
|
771
|
+
message: string;
|
|
772
|
+
created_at: string;
|
|
773
|
+
mutation_code: "updating_entrance_membership";
|
|
774
|
+
from: {
|
|
775
|
+
acs_entrance_id: string | null;
|
|
776
|
+
};
|
|
777
|
+
to: {
|
|
778
|
+
acs_entrance_id: string | null;
|
|
779
|
+
};
|
|
780
|
+
})[];
|
|
242
781
|
acs_access_group_id: string;
|
|
243
782
|
acs_system_id: string;
|
|
244
783
|
access_group_type: "pti_unit" | "pti_access_level" | "salto_ks_access_group" | "brivo_group" | "salto_space_group" | "dormakaba_community_access_group" | "dormakaba_ambiance_access_group";
|
|
@@ -265,6 +804,57 @@ export declare const unmanaged_acs_access_group: z.ZodObject<{
|
|
|
265
804
|
warning_code: "being_deleted";
|
|
266
805
|
})[];
|
|
267
806
|
is_managed: false;
|
|
807
|
+
pending_mutations: ({
|
|
808
|
+
message: string;
|
|
809
|
+
created_at: string;
|
|
810
|
+
mutation_code: "creating";
|
|
811
|
+
} | {
|
|
812
|
+
message: string;
|
|
813
|
+
created_at: string;
|
|
814
|
+
mutation_code: "deleting";
|
|
815
|
+
} | {
|
|
816
|
+
message: string;
|
|
817
|
+
created_at: string;
|
|
818
|
+
mutation_code: "updating_group_information";
|
|
819
|
+
from: {
|
|
820
|
+
name?: string | null | undefined;
|
|
821
|
+
};
|
|
822
|
+
to: {
|
|
823
|
+
name?: string | null | undefined;
|
|
824
|
+
};
|
|
825
|
+
} | {
|
|
826
|
+
message: string;
|
|
827
|
+
created_at: string;
|
|
828
|
+
mutation_code: "updating_access_schedule";
|
|
829
|
+
from: {
|
|
830
|
+
starts_at: string | null;
|
|
831
|
+
ends_at: string | null;
|
|
832
|
+
};
|
|
833
|
+
to: {
|
|
834
|
+
starts_at: string | null;
|
|
835
|
+
ends_at: string | null;
|
|
836
|
+
};
|
|
837
|
+
} | {
|
|
838
|
+
message: string;
|
|
839
|
+
created_at: string;
|
|
840
|
+
mutation_code: "updating_user_membership";
|
|
841
|
+
from: {
|
|
842
|
+
acs_user_id: string | null;
|
|
843
|
+
};
|
|
844
|
+
to: {
|
|
845
|
+
acs_user_id: string | null;
|
|
846
|
+
};
|
|
847
|
+
} | {
|
|
848
|
+
message: string;
|
|
849
|
+
created_at: string;
|
|
850
|
+
mutation_code: "updating_entrance_membership";
|
|
851
|
+
from: {
|
|
852
|
+
acs_entrance_id: string | null;
|
|
853
|
+
};
|
|
854
|
+
to: {
|
|
855
|
+
acs_entrance_id: string | null;
|
|
856
|
+
};
|
|
857
|
+
})[];
|
|
268
858
|
acs_access_group_id: string;
|
|
269
859
|
acs_system_id: string;
|
|
270
860
|
access_group_type: "pti_unit" | "pti_access_level" | "salto_ks_access_group" | "brivo_group" | "salto_space_group" | "dormakaba_community_access_group" | "dormakaba_ambiance_access_group";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { schedule } from '../schedule.js';
|
|
3
|
+
import { acs_access_group_pending_mutations } from './acs-access-groups/pending-mutations.js';
|
|
3
4
|
// If changed, update seam.acs_access_group.external_type generated column
|
|
4
5
|
export const acs_access_group_external_type = z.enum([
|
|
5
6
|
'pti_unit',
|
|
@@ -81,6 +82,9 @@ const common_acs_access_group = z.object({
|
|
|
81
82
|
access_schedule: schedule
|
|
82
83
|
.optional()
|
|
83
84
|
.describe("`starts_at` and `ends_at` timestamps for the access group's access."),
|
|
85
|
+
pending_mutations: z
|
|
86
|
+
.array(acs_access_group_pending_mutations)
|
|
87
|
+
.describe('Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system.'),
|
|
84
88
|
});
|
|
85
89
|
export const acs_access_group = common_acs_access_group.extend({
|
|
86
90
|
is_managed: z.literal(true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-access-group.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-access-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"acs-access-group.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-access-group.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pending-mutations.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-access-groups/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|