@camstack/types 1.2.386 → 1.2.387
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 +4 -4
- package/dist/addon.mjs +4 -4
- package/dist/auth/credential-scope.d.ts +37 -5
- package/dist/auth/principal-scope.d.ts +1 -1
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/llm.cap.d.ts +252 -309
- package/dist/capabilities/user-management.cap.d.ts +4 -409
- package/dist/client.js +1 -5
- package/dist/client.mjs +1 -5
- package/dist/generated/addon-api.d.ts +459 -175
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +278 -112
- package/dist/index.mjs +249 -110
- package/dist/interfaces/addon-data-plane.d.ts +4 -4
- package/dist/interfaces/addon-peer-bytes.d.ts +1 -1
- package/dist/schemas/auth-records.d.ts +1 -1
- package/dist/schemas/user-preferences.d.ts +103 -0
- package/dist/{sleep-BE7_6UnC.js → sleep-6sOPE0EV.js} +31 -4
- package/dist/{sleep-BxjU_fJM.mjs → sleep-yKL5gfrH.mjs} +31 -4
- package/package.json +1 -1
|
@@ -177,176 +177,6 @@ declare const ApiKeySummarySchema: z.ZodObject<{
|
|
|
177
177
|
createdAt: z.ZodNumber;
|
|
178
178
|
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
179
179
|
}, z.core.$strip>;
|
|
180
|
-
declare const ScopedTokenSummarySchema: z.ZodObject<{
|
|
181
|
-
id: z.ZodString;
|
|
182
|
-
userId: z.ZodString;
|
|
183
|
-
name: z.ZodString;
|
|
184
|
-
tokenPrefix: z.ZodString;
|
|
185
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
186
|
-
type: z.ZodLiteral<"category">;
|
|
187
|
-
target: z.ZodEnum<{
|
|
188
|
-
device: "device";
|
|
189
|
-
system: "system";
|
|
190
|
-
}>;
|
|
191
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
192
|
-
create: "create";
|
|
193
|
-
delete: "delete";
|
|
194
|
-
view: "view";
|
|
195
|
-
}>>;
|
|
196
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
-
type: z.ZodLiteral<"capability">;
|
|
198
|
-
target: z.ZodString;
|
|
199
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
200
|
-
create: "create";
|
|
201
|
-
delete: "delete";
|
|
202
|
-
view: "view";
|
|
203
|
-
}>>;
|
|
204
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
205
|
-
type: z.ZodLiteral<"addon">;
|
|
206
|
-
target: z.ZodString;
|
|
207
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
208
|
-
create: "create";
|
|
209
|
-
delete: "delete";
|
|
210
|
-
view: "view";
|
|
211
|
-
}>>;
|
|
212
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
-
type: z.ZodLiteral<"device">;
|
|
214
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
215
|
-
kind: z.ZodLiteral<"all">;
|
|
216
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
-
kind: z.ZodLiteral<"ids">;
|
|
218
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
219
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
-
kind: z.ZodLiteral<"types">;
|
|
221
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
222
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
-
kind: z.ZodLiteral<"locations">;
|
|
224
|
-
locations: z.ZodArray<z.ZodString>;
|
|
225
|
-
}, z.core.$strip>], "kind">;
|
|
226
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
227
|
-
create: "create";
|
|
228
|
-
delete: "delete";
|
|
229
|
-
view: "view";
|
|
230
|
-
}>>;
|
|
231
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
-
}, z.core.$strip>], "type">>>;
|
|
233
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
234
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
235
|
-
createdAt: z.ZodNumber;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
declare const CreateScopedTokenInputSchema: z.ZodObject<{
|
|
238
|
-
userId: z.ZodString;
|
|
239
|
-
name: z.ZodString;
|
|
240
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
241
|
-
type: z.ZodLiteral<"category">;
|
|
242
|
-
target: z.ZodEnum<{
|
|
243
|
-
device: "device";
|
|
244
|
-
system: "system";
|
|
245
|
-
}>;
|
|
246
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
247
|
-
create: "create";
|
|
248
|
-
delete: "delete";
|
|
249
|
-
view: "view";
|
|
250
|
-
}>>;
|
|
251
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
252
|
-
type: z.ZodLiteral<"capability">;
|
|
253
|
-
target: z.ZodString;
|
|
254
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
255
|
-
create: "create";
|
|
256
|
-
delete: "delete";
|
|
257
|
-
view: "view";
|
|
258
|
-
}>>;
|
|
259
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
-
type: z.ZodLiteral<"addon">;
|
|
261
|
-
target: z.ZodString;
|
|
262
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
263
|
-
create: "create";
|
|
264
|
-
delete: "delete";
|
|
265
|
-
view: "view";
|
|
266
|
-
}>>;
|
|
267
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
-
type: z.ZodLiteral<"device">;
|
|
269
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
-
kind: z.ZodLiteral<"all">;
|
|
271
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
-
kind: z.ZodLiteral<"ids">;
|
|
273
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
274
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
275
|
-
kind: z.ZodLiteral<"types">;
|
|
276
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
277
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
278
|
-
kind: z.ZodLiteral<"locations">;
|
|
279
|
-
locations: z.ZodArray<z.ZodString>;
|
|
280
|
-
}, z.core.$strip>], "kind">;
|
|
281
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
282
|
-
create: "create";
|
|
283
|
-
delete: "delete";
|
|
284
|
-
view: "view";
|
|
285
|
-
}>>;
|
|
286
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
287
|
-
}, z.core.$strip>], "type">>>;
|
|
288
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
}, z.core.$strip>;
|
|
290
|
-
declare const CreateScopedTokenResultSchema: z.ZodObject<{
|
|
291
|
-
token: z.ZodString;
|
|
292
|
-
record: z.ZodObject<{
|
|
293
|
-
id: z.ZodString;
|
|
294
|
-
userId: z.ZodString;
|
|
295
|
-
name: z.ZodString;
|
|
296
|
-
tokenPrefix: z.ZodString;
|
|
297
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
|
-
type: z.ZodLiteral<"category">;
|
|
299
|
-
target: z.ZodEnum<{
|
|
300
|
-
device: "device";
|
|
301
|
-
system: "system";
|
|
302
|
-
}>;
|
|
303
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
304
|
-
create: "create";
|
|
305
|
-
delete: "delete";
|
|
306
|
-
view: "view";
|
|
307
|
-
}>>;
|
|
308
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
-
type: z.ZodLiteral<"capability">;
|
|
310
|
-
target: z.ZodString;
|
|
311
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
312
|
-
create: "create";
|
|
313
|
-
delete: "delete";
|
|
314
|
-
view: "view";
|
|
315
|
-
}>>;
|
|
316
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
317
|
-
type: z.ZodLiteral<"addon">;
|
|
318
|
-
target: z.ZodString;
|
|
319
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
320
|
-
create: "create";
|
|
321
|
-
delete: "delete";
|
|
322
|
-
view: "view";
|
|
323
|
-
}>>;
|
|
324
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
325
|
-
type: z.ZodLiteral<"device">;
|
|
326
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
327
|
-
kind: z.ZodLiteral<"all">;
|
|
328
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
329
|
-
kind: z.ZodLiteral<"ids">;
|
|
330
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
331
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
332
|
-
kind: z.ZodLiteral<"types">;
|
|
333
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
334
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
335
|
-
kind: z.ZodLiteral<"locations">;
|
|
336
|
-
locations: z.ZodArray<z.ZodString>;
|
|
337
|
-
}, z.core.$strip>], "kind">;
|
|
338
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
339
|
-
create: "create";
|
|
340
|
-
delete: "delete";
|
|
341
|
-
view: "view";
|
|
342
|
-
}>>;
|
|
343
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
-
}, z.core.$strip>], "type">>>;
|
|
345
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
346
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
347
|
-
createdAt: z.ZodNumber;
|
|
348
|
-
}, z.core.$strip>;
|
|
349
|
-
}, z.core.$strip>;
|
|
350
180
|
declare const OauthSessionSummarySchema: z.ZodObject<{
|
|
351
181
|
id: z.ZodString;
|
|
352
182
|
userId: z.ZodString;
|
|
@@ -405,11 +235,11 @@ declare const OauthSessionSummarySchema: z.ZodObject<{
|
|
|
405
235
|
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
406
236
|
}, z.core.$strip>;
|
|
407
237
|
/**
|
|
408
|
-
* user-management — singleton capability for user accounts
|
|
409
|
-
*
|
|
238
|
+
* user-management — singleton capability for user accounts and the
|
|
239
|
+
* legacy API-key rows.
|
|
410
240
|
*
|
|
411
241
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
412
|
-
* — the subset check on `setUserScopes`
|
|
242
|
+
* — the subset check on `setUserScopes` is moot
|
|
413
243
|
* because non-admins never reach these. If/when we open non-admin
|
|
414
244
|
* delegation, structural caller-scope subset check goes inside the
|
|
415
245
|
* provider.
|
|
@@ -798,241 +628,6 @@ export declare const userManagementCapability: {
|
|
|
798
628
|
}, z.core.$strip>, z.ZodObject<{
|
|
799
629
|
success: z.ZodLiteral<true>;
|
|
800
630
|
}, z.core.$strip>, "mutation">;
|
|
801
|
-
readonly createScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
802
|
-
userId: z.ZodString;
|
|
803
|
-
name: z.ZodString;
|
|
804
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
805
|
-
type: z.ZodLiteral<"category">;
|
|
806
|
-
target: z.ZodEnum<{
|
|
807
|
-
device: "device";
|
|
808
|
-
system: "system";
|
|
809
|
-
}>;
|
|
810
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
811
|
-
create: "create";
|
|
812
|
-
delete: "delete";
|
|
813
|
-
view: "view";
|
|
814
|
-
}>>;
|
|
815
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
816
|
-
type: z.ZodLiteral<"capability">;
|
|
817
|
-
target: z.ZodString;
|
|
818
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
819
|
-
create: "create";
|
|
820
|
-
delete: "delete";
|
|
821
|
-
view: "view";
|
|
822
|
-
}>>;
|
|
823
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
824
|
-
type: z.ZodLiteral<"addon">;
|
|
825
|
-
target: z.ZodString;
|
|
826
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
827
|
-
create: "create";
|
|
828
|
-
delete: "delete";
|
|
829
|
-
view: "view";
|
|
830
|
-
}>>;
|
|
831
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
-
type: z.ZodLiteral<"device">;
|
|
833
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
834
|
-
kind: z.ZodLiteral<"all">;
|
|
835
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
836
|
-
kind: z.ZodLiteral<"ids">;
|
|
837
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
838
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
839
|
-
kind: z.ZodLiteral<"types">;
|
|
840
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
841
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
842
|
-
kind: z.ZodLiteral<"locations">;
|
|
843
|
-
locations: z.ZodArray<z.ZodString>;
|
|
844
|
-
}, z.core.$strip>], "kind">;
|
|
845
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
846
|
-
create: "create";
|
|
847
|
-
delete: "delete";
|
|
848
|
-
view: "view";
|
|
849
|
-
}>>;
|
|
850
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
851
|
-
}, z.core.$strip>], "type">>>;
|
|
852
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
853
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
854
|
-
token: z.ZodString;
|
|
855
|
-
record: z.ZodObject<{
|
|
856
|
-
id: z.ZodString;
|
|
857
|
-
userId: z.ZodString;
|
|
858
|
-
name: z.ZodString;
|
|
859
|
-
tokenPrefix: z.ZodString;
|
|
860
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
861
|
-
type: z.ZodLiteral<"category">;
|
|
862
|
-
target: z.ZodEnum<{
|
|
863
|
-
device: "device";
|
|
864
|
-
system: "system";
|
|
865
|
-
}>;
|
|
866
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
867
|
-
create: "create";
|
|
868
|
-
delete: "delete";
|
|
869
|
-
view: "view";
|
|
870
|
-
}>>;
|
|
871
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
872
|
-
type: z.ZodLiteral<"capability">;
|
|
873
|
-
target: z.ZodString;
|
|
874
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
875
|
-
create: "create";
|
|
876
|
-
delete: "delete";
|
|
877
|
-
view: "view";
|
|
878
|
-
}>>;
|
|
879
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
880
|
-
type: z.ZodLiteral<"addon">;
|
|
881
|
-
target: z.ZodString;
|
|
882
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
883
|
-
create: "create";
|
|
884
|
-
delete: "delete";
|
|
885
|
-
view: "view";
|
|
886
|
-
}>>;
|
|
887
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
888
|
-
type: z.ZodLiteral<"device">;
|
|
889
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
890
|
-
kind: z.ZodLiteral<"all">;
|
|
891
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
892
|
-
kind: z.ZodLiteral<"ids">;
|
|
893
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
894
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
895
|
-
kind: z.ZodLiteral<"types">;
|
|
896
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
897
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
898
|
-
kind: z.ZodLiteral<"locations">;
|
|
899
|
-
locations: z.ZodArray<z.ZodString>;
|
|
900
|
-
}, z.core.$strip>], "kind">;
|
|
901
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
902
|
-
create: "create";
|
|
903
|
-
delete: "delete";
|
|
904
|
-
view: "view";
|
|
905
|
-
}>>;
|
|
906
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
907
|
-
}, z.core.$strip>], "type">>>;
|
|
908
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
909
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
910
|
-
createdAt: z.ZodNumber;
|
|
911
|
-
}, z.core.$strip>;
|
|
912
|
-
}, z.core.$strip>, "mutation">;
|
|
913
|
-
readonly revokeScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
914
|
-
id: z.ZodString;
|
|
915
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
916
|
-
success: z.ZodLiteral<true>;
|
|
917
|
-
}, z.core.$strip>, "mutation">;
|
|
918
|
-
readonly validateScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
919
|
-
token: z.ZodString;
|
|
920
|
-
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
921
|
-
id: z.ZodString;
|
|
922
|
-
userId: z.ZodString;
|
|
923
|
-
name: z.ZodString;
|
|
924
|
-
tokenPrefix: z.ZodString;
|
|
925
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
926
|
-
type: z.ZodLiteral<"category">;
|
|
927
|
-
target: z.ZodEnum<{
|
|
928
|
-
device: "device";
|
|
929
|
-
system: "system";
|
|
930
|
-
}>;
|
|
931
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
932
|
-
create: "create";
|
|
933
|
-
delete: "delete";
|
|
934
|
-
view: "view";
|
|
935
|
-
}>>;
|
|
936
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
937
|
-
type: z.ZodLiteral<"capability">;
|
|
938
|
-
target: z.ZodString;
|
|
939
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
940
|
-
create: "create";
|
|
941
|
-
delete: "delete";
|
|
942
|
-
view: "view";
|
|
943
|
-
}>>;
|
|
944
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
945
|
-
type: z.ZodLiteral<"addon">;
|
|
946
|
-
target: z.ZodString;
|
|
947
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
948
|
-
create: "create";
|
|
949
|
-
delete: "delete";
|
|
950
|
-
view: "view";
|
|
951
|
-
}>>;
|
|
952
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
953
|
-
type: z.ZodLiteral<"device">;
|
|
954
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
955
|
-
kind: z.ZodLiteral<"all">;
|
|
956
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
957
|
-
kind: z.ZodLiteral<"ids">;
|
|
958
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
959
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
960
|
-
kind: z.ZodLiteral<"types">;
|
|
961
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
962
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
963
|
-
kind: z.ZodLiteral<"locations">;
|
|
964
|
-
locations: z.ZodArray<z.ZodString>;
|
|
965
|
-
}, z.core.$strip>], "kind">;
|
|
966
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
967
|
-
create: "create";
|
|
968
|
-
delete: "delete";
|
|
969
|
-
view: "view";
|
|
970
|
-
}>>;
|
|
971
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
972
|
-
}, z.core.$strip>], "type">>>;
|
|
973
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
974
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
975
|
-
createdAt: z.ZodNumber;
|
|
976
|
-
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
977
|
-
readonly listScopedTokens: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
978
|
-
userId: z.ZodString;
|
|
979
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
980
|
-
id: z.ZodString;
|
|
981
|
-
userId: z.ZodString;
|
|
982
|
-
name: z.ZodString;
|
|
983
|
-
tokenPrefix: z.ZodString;
|
|
984
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
985
|
-
type: z.ZodLiteral<"category">;
|
|
986
|
-
target: z.ZodEnum<{
|
|
987
|
-
device: "device";
|
|
988
|
-
system: "system";
|
|
989
|
-
}>;
|
|
990
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
991
|
-
create: "create";
|
|
992
|
-
delete: "delete";
|
|
993
|
-
view: "view";
|
|
994
|
-
}>>;
|
|
995
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
996
|
-
type: z.ZodLiteral<"capability">;
|
|
997
|
-
target: z.ZodString;
|
|
998
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
999
|
-
create: "create";
|
|
1000
|
-
delete: "delete";
|
|
1001
|
-
view: "view";
|
|
1002
|
-
}>>;
|
|
1003
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1004
|
-
type: z.ZodLiteral<"addon">;
|
|
1005
|
-
target: z.ZodString;
|
|
1006
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
1007
|
-
create: "create";
|
|
1008
|
-
delete: "delete";
|
|
1009
|
-
view: "view";
|
|
1010
|
-
}>>;
|
|
1011
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1012
|
-
type: z.ZodLiteral<"device">;
|
|
1013
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1014
|
-
kind: z.ZodLiteral<"all">;
|
|
1015
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1016
|
-
kind: z.ZodLiteral<"ids">;
|
|
1017
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
1018
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1019
|
-
kind: z.ZodLiteral<"types">;
|
|
1020
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
1021
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1022
|
-
kind: z.ZodLiteral<"locations">;
|
|
1023
|
-
locations: z.ZodArray<z.ZodString>;
|
|
1024
|
-
}, z.core.$strip>], "kind">;
|
|
1025
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
1026
|
-
create: "create";
|
|
1027
|
-
delete: "delete";
|
|
1028
|
-
view: "view";
|
|
1029
|
-
}>>;
|
|
1030
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
1031
|
-
}, z.core.$strip>], "type">>>;
|
|
1032
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1033
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1034
|
-
createdAt: z.ZodNumber;
|
|
1035
|
-
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1036
631
|
readonly setupTotp: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1037
632
|
userId: z.ZodString;
|
|
1038
633
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1301,4 +896,4 @@ export declare const userManagementCapability: {
|
|
|
1301
896
|
};
|
|
1302
897
|
};
|
|
1303
898
|
export type IUserManagementProvider = InferProvider<typeof userManagementCapability>;
|
|
1304
|
-
export { ApiKeySummarySchema,
|
|
899
|
+
export { ApiKeySummarySchema, CreateUserInputSchema, ExternalIdentityKeySchema, ExternalIdentitySchema, OauthSessionSummarySchema, UpdateUserInputSchema, UserSummarySchema, };
|
package/dist/client.js
CHANGED
|
@@ -27869,7 +27869,7 @@ function createSystemProxy(api) {
|
|
|
27869
27869
|
migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
|
|
27870
27870
|
deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
|
|
27871
27871
|
testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
|
|
27872
|
-
listModels: (input) => dispatch("llm", "listModels", "
|
|
27872
|
+
listModels: (input) => dispatch("llm", "listModels", "mutation", input),
|
|
27873
27873
|
getDefaults: (input) => dispatch("llm", "getDefaults", "query", input),
|
|
27874
27874
|
setDefault: (input) => dispatch("llm", "setDefault", "mutation", input),
|
|
27875
27875
|
getUsage: (input) => dispatch("llm", "getUsage", "query", input),
|
|
@@ -28313,10 +28313,6 @@ function createSystemProxy(api) {
|
|
|
28313
28313
|
validateCredentials: (input) => dispatch("userManagement", "validateCredentials", "mutation", input),
|
|
28314
28314
|
listApiKeys: (input) => dispatch("userManagement", "listApiKeys", "query", input),
|
|
28315
28315
|
revokeApiKey: (input) => dispatch("userManagement", "revokeApiKey", "mutation", input),
|
|
28316
|
-
createScopedToken: (input) => dispatch("userManagement", "createScopedToken", "mutation", input),
|
|
28317
|
-
revokeScopedToken: (input) => dispatch("userManagement", "revokeScopedToken", "mutation", input),
|
|
28318
|
-
validateScopedToken: (input) => dispatch("userManagement", "validateScopedToken", "query", input),
|
|
28319
|
-
listScopedTokens: (input) => dispatch("userManagement", "listScopedTokens", "query", input),
|
|
28320
28316
|
setupTotp: (input) => dispatch("userManagement", "setupTotp", "mutation", input),
|
|
28321
28317
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
28322
28318
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|
package/dist/client.mjs
CHANGED
|
@@ -27868,7 +27868,7 @@ function createSystemProxy(api) {
|
|
|
27868
27868
|
migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
|
|
27869
27869
|
deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
|
|
27870
27870
|
testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
|
|
27871
|
-
listModels: (input) => dispatch("llm", "listModels", "
|
|
27871
|
+
listModels: (input) => dispatch("llm", "listModels", "mutation", input),
|
|
27872
27872
|
getDefaults: (input) => dispatch("llm", "getDefaults", "query", input),
|
|
27873
27873
|
setDefault: (input) => dispatch("llm", "setDefault", "mutation", input),
|
|
27874
27874
|
getUsage: (input) => dispatch("llm", "getUsage", "query", input),
|
|
@@ -28312,10 +28312,6 @@ function createSystemProxy(api) {
|
|
|
28312
28312
|
validateCredentials: (input) => dispatch("userManagement", "validateCredentials", "mutation", input),
|
|
28313
28313
|
listApiKeys: (input) => dispatch("userManagement", "listApiKeys", "query", input),
|
|
28314
28314
|
revokeApiKey: (input) => dispatch("userManagement", "revokeApiKey", "mutation", input),
|
|
28315
|
-
createScopedToken: (input) => dispatch("userManagement", "createScopedToken", "mutation", input),
|
|
28316
|
-
revokeScopedToken: (input) => dispatch("userManagement", "revokeScopedToken", "mutation", input),
|
|
28317
|
-
validateScopedToken: (input) => dispatch("userManagement", "validateScopedToken", "query", input),
|
|
28318
|
-
listScopedTokens: (input) => dispatch("userManagement", "listScopedTokens", "query", input),
|
|
28319
28315
|
setupTotp: (input) => dispatch("userManagement", "setupTotp", "mutation", input),
|
|
28320
28316
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
28321
28317
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|