@camstack/types 1.2.68 → 1.2.69
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/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/intercom.cap.d.ts +46 -0
- package/dist/capabilities/oauth-integration.cap.d.ts +30 -6
- package/dist/capabilities/sso-bridge.cap.d.ts +45 -9
- package/dist/capabilities/user-management.cap.d.ts +300 -60
- package/dist/generated/addon-api.d.ts +126 -0
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +1 -0
- package/dist/generated/method-device-selectors.d.ts +27 -0
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/generated/scope-presets.d.ts +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +2211 -20
- package/dist/index.mjs +2200 -21
- package/dist/schemas/access-roles.d.ts +92 -0
- package/dist/schemas/auth-records.d.ts +104 -9
- package/dist/schemas/device-selector.d.ts +88 -0
- package/dist/{sleep-CSgK0rNX.mjs → sleep-CwERnGrD.mjs} +1 -0
- package/dist/{sleep-Dh1EJSqF.js → sleep-YuacOD41.js} +1 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ declare const UserSummarySchema: z.ZodObject<{
|
|
|
6
6
|
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
|
7
7
|
allowedProviders: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>;
|
|
8
8
|
allowedDevices: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
|
|
9
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
10
|
type: z.ZodLiteral<"category">;
|
|
11
11
|
target: z.ZodEnum<{
|
|
12
12
|
system: "system";
|
|
@@ -35,13 +35,25 @@ declare const UserSummarySchema: z.ZodObject<{
|
|
|
35
35
|
}>>;
|
|
36
36
|
}, z.core.$strip>, z.ZodObject<{
|
|
37
37
|
type: z.ZodLiteral<"device">;
|
|
38
|
-
|
|
38
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"all">;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
kind: z.ZodLiteral<"ids">;
|
|
42
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
kind: z.ZodLiteral<"types">;
|
|
45
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
kind: z.ZodLiteral<"locations">;
|
|
48
|
+
locations: z.ZodArray<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>], "kind">;
|
|
39
50
|
access: z.ZodArray<z.ZodEnum<{
|
|
40
51
|
view: "view";
|
|
41
52
|
create: "create";
|
|
42
53
|
delete: "delete";
|
|
43
54
|
}>>;
|
|
44
|
-
|
|
55
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
}, z.core.$strip>], "type">>>>;
|
|
45
57
|
totpEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
46
58
|
createdAt: z.ZodNumber;
|
|
47
59
|
updatedAt: z.ZodNumber;
|
|
@@ -52,7 +64,7 @@ declare const CreateUserInputSchema: z.ZodObject<{
|
|
|
52
64
|
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
|
53
65
|
allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
|
|
54
66
|
allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
|
|
55
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
68
|
type: z.ZodLiteral<"category">;
|
|
57
69
|
target: z.ZodEnum<{
|
|
58
70
|
system: "system";
|
|
@@ -81,20 +93,32 @@ declare const CreateUserInputSchema: z.ZodObject<{
|
|
|
81
93
|
}>>;
|
|
82
94
|
}, z.core.$strip>, z.ZodObject<{
|
|
83
95
|
type: z.ZodLiteral<"device">;
|
|
84
|
-
|
|
96
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"all">;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
kind: z.ZodLiteral<"ids">;
|
|
100
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
kind: z.ZodLiteral<"types">;
|
|
103
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
105
|
+
kind: z.ZodLiteral<"locations">;
|
|
106
|
+
locations: z.ZodArray<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>], "kind">;
|
|
85
108
|
access: z.ZodArray<z.ZodEnum<{
|
|
86
109
|
view: "view";
|
|
87
110
|
create: "create";
|
|
88
111
|
delete: "delete";
|
|
89
112
|
}>>;
|
|
90
|
-
|
|
113
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
}, z.core.$strip>], "type">>>>;
|
|
91
115
|
}, z.core.$strip>;
|
|
92
116
|
declare const UpdateUserInputSchema: z.ZodObject<{
|
|
93
117
|
id: z.ZodString;
|
|
94
118
|
isAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
95
119
|
allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
|
|
96
120
|
allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
|
|
97
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
98
122
|
type: z.ZodLiteral<"category">;
|
|
99
123
|
target: z.ZodEnum<{
|
|
100
124
|
system: "system";
|
|
@@ -123,13 +147,25 @@ declare const UpdateUserInputSchema: z.ZodObject<{
|
|
|
123
147
|
}>>;
|
|
124
148
|
}, z.core.$strip>, z.ZodObject<{
|
|
125
149
|
type: z.ZodLiteral<"device">;
|
|
126
|
-
|
|
150
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
151
|
+
kind: z.ZodLiteral<"all">;
|
|
152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
+
kind: z.ZodLiteral<"ids">;
|
|
154
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
kind: z.ZodLiteral<"types">;
|
|
157
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
158
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
159
|
+
kind: z.ZodLiteral<"locations">;
|
|
160
|
+
locations: z.ZodArray<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>], "kind">;
|
|
127
162
|
access: z.ZodArray<z.ZodEnum<{
|
|
128
163
|
view: "view";
|
|
129
164
|
create: "create";
|
|
130
165
|
delete: "delete";
|
|
131
166
|
}>>;
|
|
132
|
-
|
|
167
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
}, z.core.$strip>], "type">>>>;
|
|
133
169
|
}, z.core.$strip>;
|
|
134
170
|
declare const ApiKeySummarySchema: z.ZodObject<{
|
|
135
171
|
id: z.ZodString;
|
|
@@ -165,7 +201,7 @@ declare const ScopedTokenSummarySchema: z.ZodObject<{
|
|
|
165
201
|
userId: z.ZodString;
|
|
166
202
|
name: z.ZodString;
|
|
167
203
|
tokenPrefix: z.ZodString;
|
|
168
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
204
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
169
205
|
type: z.ZodLiteral<"category">;
|
|
170
206
|
target: z.ZodEnum<{
|
|
171
207
|
system: "system";
|
|
@@ -194,13 +230,25 @@ declare const ScopedTokenSummarySchema: z.ZodObject<{
|
|
|
194
230
|
}>>;
|
|
195
231
|
}, z.core.$strip>, z.ZodObject<{
|
|
196
232
|
type: z.ZodLiteral<"device">;
|
|
197
|
-
|
|
233
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
234
|
+
kind: z.ZodLiteral<"all">;
|
|
235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
236
|
+
kind: z.ZodLiteral<"ids">;
|
|
237
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
+
kind: z.ZodLiteral<"types">;
|
|
240
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
241
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
242
|
+
kind: z.ZodLiteral<"locations">;
|
|
243
|
+
locations: z.ZodArray<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>], "kind">;
|
|
198
245
|
access: z.ZodArray<z.ZodEnum<{
|
|
199
246
|
view: "view";
|
|
200
247
|
create: "create";
|
|
201
248
|
delete: "delete";
|
|
202
249
|
}>>;
|
|
203
|
-
|
|
250
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
}, z.core.$strip>], "type">>>;
|
|
204
252
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
205
253
|
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
206
254
|
createdAt: z.ZodNumber;
|
|
@@ -208,7 +256,7 @@ declare const ScopedTokenSummarySchema: z.ZodObject<{
|
|
|
208
256
|
declare const CreateScopedTokenInputSchema: z.ZodObject<{
|
|
209
257
|
userId: z.ZodString;
|
|
210
258
|
name: z.ZodString;
|
|
211
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
259
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
212
260
|
type: z.ZodLiteral<"category">;
|
|
213
261
|
target: z.ZodEnum<{
|
|
214
262
|
system: "system";
|
|
@@ -237,13 +285,25 @@ declare const CreateScopedTokenInputSchema: z.ZodObject<{
|
|
|
237
285
|
}>>;
|
|
238
286
|
}, z.core.$strip>, z.ZodObject<{
|
|
239
287
|
type: z.ZodLiteral<"device">;
|
|
240
|
-
|
|
288
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
|
+
kind: z.ZodLiteral<"all">;
|
|
290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
kind: z.ZodLiteral<"ids">;
|
|
292
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
294
|
+
kind: z.ZodLiteral<"types">;
|
|
295
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
297
|
+
kind: z.ZodLiteral<"locations">;
|
|
298
|
+
locations: z.ZodArray<z.ZodString>;
|
|
299
|
+
}, z.core.$strip>], "kind">;
|
|
241
300
|
access: z.ZodArray<z.ZodEnum<{
|
|
242
301
|
view: "view";
|
|
243
302
|
create: "create";
|
|
244
303
|
delete: "delete";
|
|
245
304
|
}>>;
|
|
246
|
-
|
|
305
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
+
}, z.core.$strip>], "type">>>;
|
|
247
307
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
248
308
|
}, z.core.$strip>;
|
|
249
309
|
declare const CreateScopedTokenResultSchema: z.ZodObject<{
|
|
@@ -253,7 +313,7 @@ declare const CreateScopedTokenResultSchema: z.ZodObject<{
|
|
|
253
313
|
userId: z.ZodString;
|
|
254
314
|
name: z.ZodString;
|
|
255
315
|
tokenPrefix: z.ZodString;
|
|
256
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
316
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
257
317
|
type: z.ZodLiteral<"category">;
|
|
258
318
|
target: z.ZodEnum<{
|
|
259
319
|
system: "system";
|
|
@@ -282,13 +342,25 @@ declare const CreateScopedTokenResultSchema: z.ZodObject<{
|
|
|
282
342
|
}>>;
|
|
283
343
|
}, z.core.$strip>, z.ZodObject<{
|
|
284
344
|
type: z.ZodLiteral<"device">;
|
|
285
|
-
|
|
345
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
346
|
+
kind: z.ZodLiteral<"all">;
|
|
347
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
348
|
+
kind: z.ZodLiteral<"ids">;
|
|
349
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
351
|
+
kind: z.ZodLiteral<"types">;
|
|
352
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
353
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
+
kind: z.ZodLiteral<"locations">;
|
|
355
|
+
locations: z.ZodArray<z.ZodString>;
|
|
356
|
+
}, z.core.$strip>], "kind">;
|
|
286
357
|
access: z.ZodArray<z.ZodEnum<{
|
|
287
358
|
view: "view";
|
|
288
359
|
create: "create";
|
|
289
360
|
delete: "delete";
|
|
290
361
|
}>>;
|
|
291
|
-
|
|
362
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
363
|
+
}, z.core.$strip>], "type">>>;
|
|
292
364
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
293
365
|
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
294
366
|
createdAt: z.ZodNumber;
|
|
@@ -299,7 +371,7 @@ declare const OauthSessionSummarySchema: z.ZodObject<{
|
|
|
299
371
|
userId: z.ZodString;
|
|
300
372
|
username: z.ZodString;
|
|
301
373
|
integrationId: z.ZodString;
|
|
302
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
374
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
303
375
|
type: z.ZodLiteral<"category">;
|
|
304
376
|
target: z.ZodEnum<{
|
|
305
377
|
system: "system";
|
|
@@ -328,13 +400,25 @@ declare const OauthSessionSummarySchema: z.ZodObject<{
|
|
|
328
400
|
}>>;
|
|
329
401
|
}, z.core.$strip>, z.ZodObject<{
|
|
330
402
|
type: z.ZodLiteral<"device">;
|
|
331
|
-
|
|
403
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
404
|
+
kind: z.ZodLiteral<"all">;
|
|
405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
+
kind: z.ZodLiteral<"ids">;
|
|
407
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
408
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
409
|
+
kind: z.ZodLiteral<"types">;
|
|
410
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
+
kind: z.ZodLiteral<"locations">;
|
|
413
|
+
locations: z.ZodArray<z.ZodString>;
|
|
414
|
+
}, z.core.$strip>], "kind">;
|
|
332
415
|
access: z.ZodArray<z.ZodEnum<{
|
|
333
416
|
view: "view";
|
|
334
417
|
create: "create";
|
|
335
418
|
delete: "delete";
|
|
336
419
|
}>>;
|
|
337
|
-
|
|
420
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
}, z.core.$strip>], "type">>>;
|
|
338
422
|
createdAt: z.ZodNumber;
|
|
339
423
|
lastUsedAt: z.ZodNumber;
|
|
340
424
|
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -360,7 +444,7 @@ export declare const userManagementCapability: {
|
|
|
360
444
|
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
|
361
445
|
allowedProviders: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>;
|
|
362
446
|
allowedDevices: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
|
|
363
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
447
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
364
448
|
type: z.ZodLiteral<"category">;
|
|
365
449
|
target: z.ZodEnum<{
|
|
366
450
|
system: "system";
|
|
@@ -389,13 +473,25 @@ export declare const userManagementCapability: {
|
|
|
389
473
|
}>>;
|
|
390
474
|
}, z.core.$strip>, z.ZodObject<{
|
|
391
475
|
type: z.ZodLiteral<"device">;
|
|
392
|
-
|
|
476
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
477
|
+
kind: z.ZodLiteral<"all">;
|
|
478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
479
|
+
kind: z.ZodLiteral<"ids">;
|
|
480
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
482
|
+
kind: z.ZodLiteral<"types">;
|
|
483
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
484
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
485
|
+
kind: z.ZodLiteral<"locations">;
|
|
486
|
+
locations: z.ZodArray<z.ZodString>;
|
|
487
|
+
}, z.core.$strip>], "kind">;
|
|
393
488
|
access: z.ZodArray<z.ZodEnum<{
|
|
394
489
|
view: "view";
|
|
395
490
|
create: "create";
|
|
396
491
|
delete: "delete";
|
|
397
492
|
}>>;
|
|
398
|
-
|
|
493
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
}, z.core.$strip>], "type">>>>;
|
|
399
495
|
totpEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
400
496
|
createdAt: z.ZodNumber;
|
|
401
497
|
updatedAt: z.ZodNumber;
|
|
@@ -406,7 +502,7 @@ export declare const userManagementCapability: {
|
|
|
406
502
|
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
|
407
503
|
allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
|
|
408
504
|
allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
|
|
409
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
505
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
410
506
|
type: z.ZodLiteral<"category">;
|
|
411
507
|
target: z.ZodEnum<{
|
|
412
508
|
system: "system";
|
|
@@ -435,20 +531,32 @@ export declare const userManagementCapability: {
|
|
|
435
531
|
}>>;
|
|
436
532
|
}, z.core.$strip>, z.ZodObject<{
|
|
437
533
|
type: z.ZodLiteral<"device">;
|
|
438
|
-
|
|
534
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
535
|
+
kind: z.ZodLiteral<"all">;
|
|
536
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
537
|
+
kind: z.ZodLiteral<"ids">;
|
|
538
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
539
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
540
|
+
kind: z.ZodLiteral<"types">;
|
|
541
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
542
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
543
|
+
kind: z.ZodLiteral<"locations">;
|
|
544
|
+
locations: z.ZodArray<z.ZodString>;
|
|
545
|
+
}, z.core.$strip>], "kind">;
|
|
439
546
|
access: z.ZodArray<z.ZodEnum<{
|
|
440
547
|
view: "view";
|
|
441
548
|
create: "create";
|
|
442
549
|
delete: "delete";
|
|
443
550
|
}>>;
|
|
444
|
-
|
|
551
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
552
|
+
}, z.core.$strip>], "type">>>>;
|
|
445
553
|
}, z.core.$strip>, z.ZodObject<{
|
|
446
554
|
id: z.ZodString;
|
|
447
555
|
username: z.ZodString;
|
|
448
556
|
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
|
449
557
|
allowedProviders: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>;
|
|
450
558
|
allowedDevices: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
|
|
451
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
559
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
452
560
|
type: z.ZodLiteral<"category">;
|
|
453
561
|
target: z.ZodEnum<{
|
|
454
562
|
system: "system";
|
|
@@ -477,13 +585,25 @@ export declare const userManagementCapability: {
|
|
|
477
585
|
}>>;
|
|
478
586
|
}, z.core.$strip>, z.ZodObject<{
|
|
479
587
|
type: z.ZodLiteral<"device">;
|
|
480
|
-
|
|
588
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
589
|
+
kind: z.ZodLiteral<"all">;
|
|
590
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
591
|
+
kind: z.ZodLiteral<"ids">;
|
|
592
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
+
kind: z.ZodLiteral<"types">;
|
|
595
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
597
|
+
kind: z.ZodLiteral<"locations">;
|
|
598
|
+
locations: z.ZodArray<z.ZodString>;
|
|
599
|
+
}, z.core.$strip>], "kind">;
|
|
481
600
|
access: z.ZodArray<z.ZodEnum<{
|
|
482
601
|
view: "view";
|
|
483
602
|
create: "create";
|
|
484
603
|
delete: "delete";
|
|
485
604
|
}>>;
|
|
486
|
-
|
|
605
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
606
|
+
}, z.core.$strip>], "type">>>>;
|
|
487
607
|
totpEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
488
608
|
createdAt: z.ZodNumber;
|
|
489
609
|
updatedAt: z.ZodNumber;
|
|
@@ -493,7 +613,7 @@ export declare const userManagementCapability: {
|
|
|
493
613
|
isAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
494
614
|
allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
|
|
495
615
|
allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
|
|
496
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
616
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
497
617
|
type: z.ZodLiteral<"category">;
|
|
498
618
|
target: z.ZodEnum<{
|
|
499
619
|
system: "system";
|
|
@@ -522,13 +642,25 @@ export declare const userManagementCapability: {
|
|
|
522
642
|
}>>;
|
|
523
643
|
}, z.core.$strip>, z.ZodObject<{
|
|
524
644
|
type: z.ZodLiteral<"device">;
|
|
525
|
-
|
|
645
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
646
|
+
kind: z.ZodLiteral<"all">;
|
|
647
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
648
|
+
kind: z.ZodLiteral<"ids">;
|
|
649
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
650
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
651
|
+
kind: z.ZodLiteral<"types">;
|
|
652
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
653
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
654
|
+
kind: z.ZodLiteral<"locations">;
|
|
655
|
+
locations: z.ZodArray<z.ZodString>;
|
|
656
|
+
}, z.core.$strip>], "kind">;
|
|
526
657
|
access: z.ZodArray<z.ZodEnum<{
|
|
527
658
|
view: "view";
|
|
528
659
|
create: "create";
|
|
529
660
|
delete: "delete";
|
|
530
661
|
}>>;
|
|
531
|
-
|
|
662
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
663
|
+
}, z.core.$strip>], "type">>>>;
|
|
532
664
|
}, z.core.$strip>, z.ZodObject<{
|
|
533
665
|
success: z.ZodLiteral<true>;
|
|
534
666
|
}, z.core.$strip>, "mutation">;
|
|
@@ -545,7 +677,7 @@ export declare const userManagementCapability: {
|
|
|
545
677
|
}, z.core.$strip>, "mutation">;
|
|
546
678
|
readonly setUserScopes: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
547
679
|
userId: z.ZodString;
|
|
548
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
680
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
549
681
|
type: z.ZodLiteral<"category">;
|
|
550
682
|
target: z.ZodEnum<{
|
|
551
683
|
system: "system";
|
|
@@ -574,13 +706,25 @@ export declare const userManagementCapability: {
|
|
|
574
706
|
}>>;
|
|
575
707
|
}, z.core.$strip>, z.ZodObject<{
|
|
576
708
|
type: z.ZodLiteral<"device">;
|
|
577
|
-
|
|
709
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
710
|
+
kind: z.ZodLiteral<"all">;
|
|
711
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
712
|
+
kind: z.ZodLiteral<"ids">;
|
|
713
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
714
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
715
|
+
kind: z.ZodLiteral<"types">;
|
|
716
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
717
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
718
|
+
kind: z.ZodLiteral<"locations">;
|
|
719
|
+
locations: z.ZodArray<z.ZodString>;
|
|
720
|
+
}, z.core.$strip>], "kind">;
|
|
578
721
|
access: z.ZodArray<z.ZodEnum<{
|
|
579
722
|
view: "view";
|
|
580
723
|
create: "create";
|
|
581
724
|
delete: "delete";
|
|
582
725
|
}>>;
|
|
583
|
-
|
|
726
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
}, z.core.$strip>], "type">>>;
|
|
584
728
|
}, z.core.$strip>, z.ZodObject<{
|
|
585
729
|
success: z.ZodLiteral<true>;
|
|
586
730
|
}, z.core.$strip>, "mutation">;
|
|
@@ -593,7 +737,7 @@ export declare const userManagementCapability: {
|
|
|
593
737
|
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
|
594
738
|
allowedProviders: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>;
|
|
595
739
|
allowedDevices: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
|
|
596
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
740
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
597
741
|
type: z.ZodLiteral<"category">;
|
|
598
742
|
target: z.ZodEnum<{
|
|
599
743
|
system: "system";
|
|
@@ -622,13 +766,25 @@ export declare const userManagementCapability: {
|
|
|
622
766
|
}>>;
|
|
623
767
|
}, z.core.$strip>, z.ZodObject<{
|
|
624
768
|
type: z.ZodLiteral<"device">;
|
|
625
|
-
|
|
769
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
770
|
+
kind: z.ZodLiteral<"all">;
|
|
771
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
772
|
+
kind: z.ZodLiteral<"ids">;
|
|
773
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
774
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
775
|
+
kind: z.ZodLiteral<"types">;
|
|
776
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
777
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
778
|
+
kind: z.ZodLiteral<"locations">;
|
|
779
|
+
locations: z.ZodArray<z.ZodString>;
|
|
780
|
+
}, z.core.$strip>], "kind">;
|
|
626
781
|
access: z.ZodArray<z.ZodEnum<{
|
|
627
782
|
view: "view";
|
|
628
783
|
create: "create";
|
|
629
784
|
delete: "delete";
|
|
630
785
|
}>>;
|
|
631
|
-
|
|
786
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
787
|
+
}, z.core.$strip>], "type">>>>;
|
|
632
788
|
totpEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
633
789
|
createdAt: z.ZodNumber;
|
|
634
790
|
updatedAt: z.ZodNumber;
|
|
@@ -682,7 +838,7 @@ export declare const userManagementCapability: {
|
|
|
682
838
|
readonly createScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
683
839
|
userId: z.ZodString;
|
|
684
840
|
name: z.ZodString;
|
|
685
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
841
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
686
842
|
type: z.ZodLiteral<"category">;
|
|
687
843
|
target: z.ZodEnum<{
|
|
688
844
|
system: "system";
|
|
@@ -711,13 +867,25 @@ export declare const userManagementCapability: {
|
|
|
711
867
|
}>>;
|
|
712
868
|
}, z.core.$strip>, z.ZodObject<{
|
|
713
869
|
type: z.ZodLiteral<"device">;
|
|
714
|
-
|
|
870
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
871
|
+
kind: z.ZodLiteral<"all">;
|
|
872
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
873
|
+
kind: z.ZodLiteral<"ids">;
|
|
874
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
875
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
876
|
+
kind: z.ZodLiteral<"types">;
|
|
877
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
879
|
+
kind: z.ZodLiteral<"locations">;
|
|
880
|
+
locations: z.ZodArray<z.ZodString>;
|
|
881
|
+
}, z.core.$strip>], "kind">;
|
|
715
882
|
access: z.ZodArray<z.ZodEnum<{
|
|
716
883
|
view: "view";
|
|
717
884
|
create: "create";
|
|
718
885
|
delete: "delete";
|
|
719
886
|
}>>;
|
|
720
|
-
|
|
887
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
888
|
+
}, z.core.$strip>], "type">>>;
|
|
721
889
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
722
890
|
}, z.core.$strip>, z.ZodObject<{
|
|
723
891
|
token: z.ZodString;
|
|
@@ -726,7 +894,7 @@ export declare const userManagementCapability: {
|
|
|
726
894
|
userId: z.ZodString;
|
|
727
895
|
name: z.ZodString;
|
|
728
896
|
tokenPrefix: z.ZodString;
|
|
729
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
897
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
730
898
|
type: z.ZodLiteral<"category">;
|
|
731
899
|
target: z.ZodEnum<{
|
|
732
900
|
system: "system";
|
|
@@ -755,13 +923,25 @@ export declare const userManagementCapability: {
|
|
|
755
923
|
}>>;
|
|
756
924
|
}, z.core.$strip>, z.ZodObject<{
|
|
757
925
|
type: z.ZodLiteral<"device">;
|
|
758
|
-
|
|
926
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
927
|
+
kind: z.ZodLiteral<"all">;
|
|
928
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
929
|
+
kind: z.ZodLiteral<"ids">;
|
|
930
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
931
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
932
|
+
kind: z.ZodLiteral<"types">;
|
|
933
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
934
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
935
|
+
kind: z.ZodLiteral<"locations">;
|
|
936
|
+
locations: z.ZodArray<z.ZodString>;
|
|
937
|
+
}, z.core.$strip>], "kind">;
|
|
759
938
|
access: z.ZodArray<z.ZodEnum<{
|
|
760
939
|
view: "view";
|
|
761
940
|
create: "create";
|
|
762
941
|
delete: "delete";
|
|
763
942
|
}>>;
|
|
764
|
-
|
|
943
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
944
|
+
}, z.core.$strip>], "type">>>;
|
|
765
945
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
766
946
|
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
767
947
|
createdAt: z.ZodNumber;
|
|
@@ -779,7 +959,7 @@ export declare const userManagementCapability: {
|
|
|
779
959
|
userId: z.ZodString;
|
|
780
960
|
name: z.ZodString;
|
|
781
961
|
tokenPrefix: z.ZodString;
|
|
782
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
962
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
783
963
|
type: z.ZodLiteral<"category">;
|
|
784
964
|
target: z.ZodEnum<{
|
|
785
965
|
system: "system";
|
|
@@ -808,13 +988,25 @@ export declare const userManagementCapability: {
|
|
|
808
988
|
}>>;
|
|
809
989
|
}, z.core.$strip>, z.ZodObject<{
|
|
810
990
|
type: z.ZodLiteral<"device">;
|
|
811
|
-
|
|
991
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
992
|
+
kind: z.ZodLiteral<"all">;
|
|
993
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
994
|
+
kind: z.ZodLiteral<"ids">;
|
|
995
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
996
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
997
|
+
kind: z.ZodLiteral<"types">;
|
|
998
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
999
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1000
|
+
kind: z.ZodLiteral<"locations">;
|
|
1001
|
+
locations: z.ZodArray<z.ZodString>;
|
|
1002
|
+
}, z.core.$strip>], "kind">;
|
|
812
1003
|
access: z.ZodArray<z.ZodEnum<{
|
|
813
1004
|
view: "view";
|
|
814
1005
|
create: "create";
|
|
815
1006
|
delete: "delete";
|
|
816
1007
|
}>>;
|
|
817
|
-
|
|
1008
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
1009
|
+
}, z.core.$strip>], "type">>>;
|
|
818
1010
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
819
1011
|
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
820
1012
|
createdAt: z.ZodNumber;
|
|
@@ -826,7 +1018,7 @@ export declare const userManagementCapability: {
|
|
|
826
1018
|
userId: z.ZodString;
|
|
827
1019
|
name: z.ZodString;
|
|
828
1020
|
tokenPrefix: z.ZodString;
|
|
829
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1021
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
830
1022
|
type: z.ZodLiteral<"category">;
|
|
831
1023
|
target: z.ZodEnum<{
|
|
832
1024
|
system: "system";
|
|
@@ -855,13 +1047,25 @@ export declare const userManagementCapability: {
|
|
|
855
1047
|
}>>;
|
|
856
1048
|
}, z.core.$strip>, z.ZodObject<{
|
|
857
1049
|
type: z.ZodLiteral<"device">;
|
|
858
|
-
|
|
1050
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1051
|
+
kind: z.ZodLiteral<"all">;
|
|
1052
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1053
|
+
kind: z.ZodLiteral<"ids">;
|
|
1054
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
1055
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1056
|
+
kind: z.ZodLiteral<"types">;
|
|
1057
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
1058
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1059
|
+
kind: z.ZodLiteral<"locations">;
|
|
1060
|
+
locations: z.ZodArray<z.ZodString>;
|
|
1061
|
+
}, z.core.$strip>], "kind">;
|
|
859
1062
|
access: z.ZodArray<z.ZodEnum<{
|
|
860
1063
|
view: "view";
|
|
861
1064
|
create: "create";
|
|
862
1065
|
delete: "delete";
|
|
863
1066
|
}>>;
|
|
864
|
-
|
|
1067
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
1068
|
+
}, z.core.$strip>], "type">>>;
|
|
865
1069
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
866
1070
|
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
867
1071
|
createdAt: z.ZodNumber;
|
|
@@ -899,7 +1103,7 @@ export declare const userManagementCapability: {
|
|
|
899
1103
|
integrationId: z.ZodString;
|
|
900
1104
|
userId: z.ZodString;
|
|
901
1105
|
username: z.ZodString;
|
|
902
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1106
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
903
1107
|
type: z.ZodLiteral<"category">;
|
|
904
1108
|
target: z.ZodEnum<{
|
|
905
1109
|
system: "system";
|
|
@@ -928,13 +1132,25 @@ export declare const userManagementCapability: {
|
|
|
928
1132
|
}>>;
|
|
929
1133
|
}, z.core.$strip>, z.ZodObject<{
|
|
930
1134
|
type: z.ZodLiteral<"device">;
|
|
931
|
-
|
|
1135
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1136
|
+
kind: z.ZodLiteral<"all">;
|
|
1137
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1138
|
+
kind: z.ZodLiteral<"ids">;
|
|
1139
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
1140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1141
|
+
kind: z.ZodLiteral<"types">;
|
|
1142
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
1143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1144
|
+
kind: z.ZodLiteral<"locations">;
|
|
1145
|
+
locations: z.ZodArray<z.ZodString>;
|
|
1146
|
+
}, z.core.$strip>], "kind">;
|
|
932
1147
|
access: z.ZodArray<z.ZodEnum<{
|
|
933
1148
|
view: "view";
|
|
934
1149
|
create: "create";
|
|
935
1150
|
delete: "delete";
|
|
936
1151
|
}>>;
|
|
937
|
-
|
|
1152
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
1153
|
+
}, z.core.$strip>], "type">>>;
|
|
938
1154
|
redirectUri: z.ZodString;
|
|
939
1155
|
hubUrl: z.ZodString;
|
|
940
1156
|
codeChallenge: z.ZodOptional<z.ZodString>;
|
|
@@ -963,7 +1179,7 @@ export declare const userManagementCapability: {
|
|
|
963
1179
|
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
964
1180
|
userId: z.ZodString;
|
|
965
1181
|
username: z.ZodString;
|
|
966
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1182
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
967
1183
|
type: z.ZodLiteral<"category">;
|
|
968
1184
|
target: z.ZodEnum<{
|
|
969
1185
|
system: "system";
|
|
@@ -992,20 +1208,32 @@ export declare const userManagementCapability: {
|
|
|
992
1208
|
}>>;
|
|
993
1209
|
}, z.core.$strip>, z.ZodObject<{
|
|
994
1210
|
type: z.ZodLiteral<"device">;
|
|
995
|
-
|
|
1211
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1212
|
+
kind: z.ZodLiteral<"all">;
|
|
1213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1214
|
+
kind: z.ZodLiteral<"ids">;
|
|
1215
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
1216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1217
|
+
kind: z.ZodLiteral<"types">;
|
|
1218
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
1219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1220
|
+
kind: z.ZodLiteral<"locations">;
|
|
1221
|
+
locations: z.ZodArray<z.ZodString>;
|
|
1222
|
+
}, z.core.$strip>], "kind">;
|
|
996
1223
|
access: z.ZodArray<z.ZodEnum<{
|
|
997
1224
|
view: "view";
|
|
998
1225
|
create: "create";
|
|
999
1226
|
delete: "delete";
|
|
1000
1227
|
}>>;
|
|
1001
|
-
|
|
1228
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
1229
|
+
}, z.core.$strip>], "type">>>;
|
|
1002
1230
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1003
1231
|
readonly listOauthSessions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodArray<z.ZodObject<{
|
|
1004
1232
|
id: z.ZodString;
|
|
1005
1233
|
userId: z.ZodString;
|
|
1006
1234
|
username: z.ZodString;
|
|
1007
1235
|
integrationId: z.ZodString;
|
|
1008
|
-
scopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1236
|
+
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1009
1237
|
type: z.ZodLiteral<"category">;
|
|
1010
1238
|
target: z.ZodEnum<{
|
|
1011
1239
|
system: "system";
|
|
@@ -1034,13 +1262,25 @@ export declare const userManagementCapability: {
|
|
|
1034
1262
|
}>>;
|
|
1035
1263
|
}, z.core.$strip>, z.ZodObject<{
|
|
1036
1264
|
type: z.ZodLiteral<"device">;
|
|
1037
|
-
|
|
1265
|
+
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1266
|
+
kind: z.ZodLiteral<"all">;
|
|
1267
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1268
|
+
kind: z.ZodLiteral<"ids">;
|
|
1269
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
1270
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1271
|
+
kind: z.ZodLiteral<"types">;
|
|
1272
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../addon.js").DeviceType>>;
|
|
1273
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1274
|
+
kind: z.ZodLiteral<"locations">;
|
|
1275
|
+
locations: z.ZodArray<z.ZodString>;
|
|
1276
|
+
}, z.core.$strip>], "kind">;
|
|
1038
1277
|
access: z.ZodArray<z.ZodEnum<{
|
|
1039
1278
|
view: "view";
|
|
1040
1279
|
create: "create";
|
|
1041
1280
|
delete: "delete";
|
|
1042
1281
|
}>>;
|
|
1043
|
-
|
|
1282
|
+
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
1283
|
+
}, z.core.$strip>], "type">>>;
|
|
1044
1284
|
createdAt: z.ZodNumber;
|
|
1045
1285
|
lastUsedAt: z.ZodNumber;
|
|
1046
1286
|
revokedAt: z.ZodNullable<z.ZodNumber>;
|