@casual-simulation/aux-common 3.10.3 → 3.10.4-alpha.20934784018
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/common/ConnectionInfo.d.ts +8 -2
- package/common/ConnectionInfo.js +3 -2
- package/common/ConnectionInfo.js.map +1 -1
- package/common/PolicyPermissions.d.ts +738 -92
- package/common/PolicyPermissions.js +129 -133
- package/common/PolicyPermissions.js.map +1 -1
- package/common/RemoteActions.js +3 -3
- package/common/RemoteActions.js.map +1 -1
- package/package.json +5 -5
- package/websockets/WebsocketEvents.d.ts +563 -48
- package/websockets/WebsocketEvents.js +73 -77
- package/websockets/WebsocketEvents.js.map +1 -1
|
@@ -212,46 +212,91 @@ export type InvoiceActionKinds = 'read' | 'create' | 'update' | 'delete' | 'list
|
|
|
212
212
|
* @docname AvailablePermissions
|
|
213
213
|
*/
|
|
214
214
|
export type AvailablePermissions = DataPermission | FilePermission | EventPermission | MarkerPermission | RolePermission | InstPermission | PurchasableItemPermission | LoomPermission | SloydPermission | HumePermission | OpenAIRealtimePermission | WebhookPermission | NotificationPermission | PackagePermission | PackageVersionPermission | SearchPermission | DatabasePermission | ContractPermission | InvoicePermission;
|
|
215
|
-
export declare const SUBJECT_TYPE_VALIDATION: z.ZodEnum<{
|
|
215
|
+
export declare const SUBJECT_TYPE_VALIDATION: (() => z.ZodEnum<{
|
|
216
216
|
inst: "inst";
|
|
217
217
|
user: "user";
|
|
218
218
|
role: "role";
|
|
219
|
-
}
|
|
220
|
-
|
|
219
|
+
}>) & {
|
|
220
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
221
|
+
inst: "inst";
|
|
222
|
+
user: "user";
|
|
223
|
+
role: "role";
|
|
224
|
+
}>>;
|
|
225
|
+
};
|
|
226
|
+
export declare const DATA_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
221
227
|
read: "read";
|
|
222
228
|
create: "create";
|
|
223
229
|
update: "update";
|
|
224
230
|
delete: "delete";
|
|
225
231
|
list: "list";
|
|
226
|
-
}
|
|
227
|
-
|
|
232
|
+
}>) & {
|
|
233
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
234
|
+
read: "read";
|
|
235
|
+
create: "create";
|
|
236
|
+
update: "update";
|
|
237
|
+
delete: "delete";
|
|
238
|
+
list: "list";
|
|
239
|
+
}>>;
|
|
240
|
+
};
|
|
241
|
+
export declare const FILE_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
228
242
|
read: "read";
|
|
229
243
|
create: "create";
|
|
230
244
|
update: "update";
|
|
231
245
|
delete: "delete";
|
|
232
246
|
list: "list";
|
|
233
|
-
}
|
|
234
|
-
|
|
247
|
+
}>) & {
|
|
248
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
249
|
+
read: "read";
|
|
250
|
+
create: "create";
|
|
251
|
+
update: "update";
|
|
252
|
+
delete: "delete";
|
|
253
|
+
list: "list";
|
|
254
|
+
}>>;
|
|
255
|
+
};
|
|
256
|
+
export declare const EVENT_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
235
257
|
update: "update";
|
|
236
258
|
increment: "increment";
|
|
237
259
|
count: "count";
|
|
238
260
|
list: "list";
|
|
239
|
-
}
|
|
240
|
-
|
|
261
|
+
}>) & {
|
|
262
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
263
|
+
update: "update";
|
|
264
|
+
increment: "increment";
|
|
265
|
+
count: "count";
|
|
266
|
+
list: "list";
|
|
267
|
+
}>>;
|
|
268
|
+
};
|
|
269
|
+
export declare const MARKER_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
241
270
|
read: "read";
|
|
242
271
|
assign: "assign";
|
|
243
272
|
unassign: "unassign";
|
|
244
273
|
grantPermission: "grantPermission";
|
|
245
274
|
revokePermission: "revokePermission";
|
|
246
|
-
}
|
|
247
|
-
|
|
275
|
+
}>) & {
|
|
276
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
277
|
+
read: "read";
|
|
278
|
+
assign: "assign";
|
|
279
|
+
unassign: "unassign";
|
|
280
|
+
grantPermission: "grantPermission";
|
|
281
|
+
revokePermission: "revokePermission";
|
|
282
|
+
}>>;
|
|
283
|
+
};
|
|
284
|
+
export declare const ROLE_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
248
285
|
read: "read";
|
|
249
286
|
update: "update";
|
|
250
287
|
list: "list";
|
|
251
288
|
grant: "grant";
|
|
252
289
|
revoke: "revoke";
|
|
253
|
-
}
|
|
254
|
-
|
|
290
|
+
}>) & {
|
|
291
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
292
|
+
read: "read";
|
|
293
|
+
update: "update";
|
|
294
|
+
list: "list";
|
|
295
|
+
grant: "grant";
|
|
296
|
+
revoke: "revoke";
|
|
297
|
+
}>>;
|
|
298
|
+
};
|
|
299
|
+
export declare const INST_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
255
300
|
read: "read";
|
|
256
301
|
create: "create";
|
|
257
302
|
update: "update";
|
|
@@ -259,28 +304,63 @@ export declare const INST_ACTION_KINDS_VALIDATION: z.ZodEnum<{
|
|
|
259
304
|
list: "list";
|
|
260
305
|
sendAction: "sendAction";
|
|
261
306
|
updateData: "updateData";
|
|
262
|
-
}
|
|
263
|
-
|
|
307
|
+
}>) & {
|
|
308
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
309
|
+
read: "read";
|
|
310
|
+
create: "create";
|
|
311
|
+
update: "update";
|
|
312
|
+
delete: "delete";
|
|
313
|
+
list: "list";
|
|
314
|
+
sendAction: "sendAction";
|
|
315
|
+
updateData: "updateData";
|
|
316
|
+
}>>;
|
|
317
|
+
};
|
|
318
|
+
export declare const LOOM_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
264
319
|
create: "create";
|
|
265
|
-
}
|
|
266
|
-
|
|
320
|
+
}>) & {
|
|
321
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
322
|
+
create: "create";
|
|
323
|
+
}>>;
|
|
324
|
+
};
|
|
325
|
+
export declare const SLOYD_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
267
326
|
create: "create";
|
|
268
|
-
}
|
|
269
|
-
|
|
327
|
+
}>) & {
|
|
328
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
329
|
+
create: "create";
|
|
330
|
+
}>>;
|
|
331
|
+
};
|
|
332
|
+
export declare const HUME_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
270
333
|
create: "create";
|
|
271
|
-
}
|
|
272
|
-
|
|
334
|
+
}>) & {
|
|
335
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
336
|
+
create: "create";
|
|
337
|
+
}>>;
|
|
338
|
+
};
|
|
339
|
+
export declare const OPENAI_REALTIME_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
273
340
|
create: "create";
|
|
274
|
-
}
|
|
275
|
-
|
|
341
|
+
}>) & {
|
|
342
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
343
|
+
create: "create";
|
|
344
|
+
}>>;
|
|
345
|
+
};
|
|
346
|
+
export declare const WEBHOOK_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
276
347
|
run: "run";
|
|
277
348
|
read: "read";
|
|
278
349
|
create: "create";
|
|
279
350
|
update: "update";
|
|
280
351
|
delete: "delete";
|
|
281
352
|
list: "list";
|
|
282
|
-
}
|
|
283
|
-
|
|
353
|
+
}>) & {
|
|
354
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
355
|
+
run: "run";
|
|
356
|
+
read: "read";
|
|
357
|
+
create: "create";
|
|
358
|
+
update: "update";
|
|
359
|
+
delete: "delete";
|
|
360
|
+
list: "list";
|
|
361
|
+
}>>;
|
|
362
|
+
};
|
|
363
|
+
export declare const NOTIFICATION_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
284
364
|
read: "read";
|
|
285
365
|
create: "create";
|
|
286
366
|
update: "update";
|
|
@@ -290,46 +370,101 @@ export declare const NOTIFICATION_ACTION_KINDS_VALIDATION: z.ZodEnum<{
|
|
|
290
370
|
subscribe: "subscribe";
|
|
291
371
|
unsubscribe: "unsubscribe";
|
|
292
372
|
listSubscriptions: "listSubscriptions";
|
|
293
|
-
}
|
|
294
|
-
|
|
373
|
+
}>) & {
|
|
374
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
375
|
+
read: "read";
|
|
376
|
+
create: "create";
|
|
377
|
+
update: "update";
|
|
378
|
+
delete: "delete";
|
|
379
|
+
list: "list";
|
|
380
|
+
send: "send";
|
|
381
|
+
subscribe: "subscribe";
|
|
382
|
+
unsubscribe: "unsubscribe";
|
|
383
|
+
listSubscriptions: "listSubscriptions";
|
|
384
|
+
}>>;
|
|
385
|
+
};
|
|
386
|
+
export declare const PACKAGE_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
295
387
|
run: "run";
|
|
296
388
|
read: "read";
|
|
297
389
|
create: "create";
|
|
298
390
|
update: "update";
|
|
299
391
|
delete: "delete";
|
|
300
392
|
list: "list";
|
|
301
|
-
}
|
|
302
|
-
|
|
393
|
+
}>) & {
|
|
394
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
395
|
+
run: "run";
|
|
396
|
+
read: "read";
|
|
397
|
+
create: "create";
|
|
398
|
+
update: "update";
|
|
399
|
+
delete: "delete";
|
|
400
|
+
list: "list";
|
|
401
|
+
}>>;
|
|
402
|
+
};
|
|
403
|
+
export declare const PACKAGE_VERSION_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
303
404
|
run: "run";
|
|
304
405
|
read: "read";
|
|
305
406
|
create: "create";
|
|
306
407
|
update: "update";
|
|
307
408
|
delete: "delete";
|
|
308
409
|
list: "list";
|
|
309
|
-
}
|
|
310
|
-
|
|
410
|
+
}>) & {
|
|
411
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
412
|
+
run: "run";
|
|
413
|
+
read: "read";
|
|
414
|
+
create: "create";
|
|
415
|
+
update: "update";
|
|
416
|
+
delete: "delete";
|
|
417
|
+
list: "list";
|
|
418
|
+
}>>;
|
|
419
|
+
};
|
|
420
|
+
export declare const SEARCH_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
311
421
|
read: "read";
|
|
312
422
|
create: "create";
|
|
313
423
|
update: "update";
|
|
314
424
|
delete: "delete";
|
|
315
425
|
list: "list";
|
|
316
|
-
}
|
|
317
|
-
|
|
426
|
+
}>) & {
|
|
427
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
428
|
+
read: "read";
|
|
429
|
+
create: "create";
|
|
430
|
+
update: "update";
|
|
431
|
+
delete: "delete";
|
|
432
|
+
list: "list";
|
|
433
|
+
}>>;
|
|
434
|
+
};
|
|
435
|
+
export declare const DATABASE_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
318
436
|
read: "read";
|
|
319
437
|
create: "create";
|
|
320
438
|
update: "update";
|
|
321
439
|
delete: "delete";
|
|
322
440
|
list: "list";
|
|
323
|
-
}
|
|
324
|
-
|
|
441
|
+
}>) & {
|
|
442
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
443
|
+
read: "read";
|
|
444
|
+
create: "create";
|
|
445
|
+
update: "update";
|
|
446
|
+
delete: "delete";
|
|
447
|
+
list: "list";
|
|
448
|
+
}>>;
|
|
449
|
+
};
|
|
450
|
+
export declare const PURCHASABLE_ITEM_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
325
451
|
read: "read";
|
|
326
452
|
create: "create";
|
|
327
453
|
update: "update";
|
|
328
454
|
delete: "delete";
|
|
329
455
|
list: "list";
|
|
330
456
|
purchase: "purchase";
|
|
331
|
-
}
|
|
332
|
-
|
|
457
|
+
}>) & {
|
|
458
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
459
|
+
read: "read";
|
|
460
|
+
create: "create";
|
|
461
|
+
update: "update";
|
|
462
|
+
delete: "delete";
|
|
463
|
+
list: "list";
|
|
464
|
+
purchase: "purchase";
|
|
465
|
+
}>>;
|
|
466
|
+
};
|
|
467
|
+
export declare const CONTRACT_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
333
468
|
read: "read";
|
|
334
469
|
create: "create";
|
|
335
470
|
update: "update";
|
|
@@ -337,8 +472,18 @@ export declare const CONTRACT_ACTION_KINDS_VALIDATION: z.ZodEnum<{
|
|
|
337
472
|
list: "list";
|
|
338
473
|
purchase: "purchase";
|
|
339
474
|
cancel: "cancel";
|
|
340
|
-
}
|
|
341
|
-
|
|
475
|
+
}>) & {
|
|
476
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
477
|
+
read: "read";
|
|
478
|
+
create: "create";
|
|
479
|
+
update: "update";
|
|
480
|
+
delete: "delete";
|
|
481
|
+
list: "list";
|
|
482
|
+
purchase: "purchase";
|
|
483
|
+
cancel: "cancel";
|
|
484
|
+
}>>;
|
|
485
|
+
};
|
|
486
|
+
export declare const INVOICE_ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
342
487
|
read: "read";
|
|
343
488
|
create: "create";
|
|
344
489
|
update: "update";
|
|
@@ -346,8 +491,18 @@ export declare const INVOICE_ACTION_KINDS_VALIDATION: z.ZodEnum<{
|
|
|
346
491
|
list: "list";
|
|
347
492
|
approve: "approve";
|
|
348
493
|
cancel: "cancel";
|
|
349
|
-
}
|
|
350
|
-
|
|
494
|
+
}>) & {
|
|
495
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
496
|
+
read: "read";
|
|
497
|
+
create: "create";
|
|
498
|
+
update: "update";
|
|
499
|
+
delete: "delete";
|
|
500
|
+
list: "list";
|
|
501
|
+
approve: "approve";
|
|
502
|
+
cancel: "cancel";
|
|
503
|
+
}>>;
|
|
504
|
+
};
|
|
505
|
+
export declare const RESOURCE_KIND_VALIDATION: (() => z.ZodEnum<{
|
|
351
506
|
search: "search";
|
|
352
507
|
inst: "inst";
|
|
353
508
|
file: "file";
|
|
@@ -367,8 +522,30 @@ export declare const RESOURCE_KIND_VALIDATION: z.ZodEnum<{
|
|
|
367
522
|
purchasableItem: "purchasableItem";
|
|
368
523
|
contract: "contract";
|
|
369
524
|
invoice: "invoice";
|
|
370
|
-
}
|
|
371
|
-
|
|
525
|
+
}>) & {
|
|
526
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
527
|
+
search: "search";
|
|
528
|
+
inst: "inst";
|
|
529
|
+
file: "file";
|
|
530
|
+
event: "event";
|
|
531
|
+
role: "role";
|
|
532
|
+
data: "data";
|
|
533
|
+
marker: "marker";
|
|
534
|
+
loom: "loom";
|
|
535
|
+
"ai.sloyd": "ai.sloyd";
|
|
536
|
+
"ai.hume": "ai.hume";
|
|
537
|
+
"ai.openai.realtime": "ai.openai.realtime";
|
|
538
|
+
webhook: "webhook";
|
|
539
|
+
notification: "notification";
|
|
540
|
+
package: "package";
|
|
541
|
+
"package.version": "package.version";
|
|
542
|
+
database: "database";
|
|
543
|
+
purchasableItem: "purchasableItem";
|
|
544
|
+
contract: "contract";
|
|
545
|
+
invoice: "invoice";
|
|
546
|
+
}>>;
|
|
547
|
+
};
|
|
548
|
+
export declare const ACTION_KINDS_VALIDATION: (() => z.ZodEnum<{
|
|
372
549
|
run: "run";
|
|
373
550
|
read: "read";
|
|
374
551
|
create: "create";
|
|
@@ -392,7 +569,33 @@ export declare const ACTION_KINDS_VALIDATION: z.ZodEnum<{
|
|
|
392
569
|
purchase: "purchase";
|
|
393
570
|
approve: "approve";
|
|
394
571
|
cancel: "cancel";
|
|
395
|
-
}
|
|
572
|
+
}>) & {
|
|
573
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
574
|
+
run: "run";
|
|
575
|
+
read: "read";
|
|
576
|
+
create: "create";
|
|
577
|
+
update: "update";
|
|
578
|
+
delete: "delete";
|
|
579
|
+
assign: "assign";
|
|
580
|
+
unassign: "unassign";
|
|
581
|
+
increment: "increment";
|
|
582
|
+
count: "count";
|
|
583
|
+
list: "list";
|
|
584
|
+
grantPermission: "grantPermission";
|
|
585
|
+
revokePermission: "revokePermission";
|
|
586
|
+
grant: "grant";
|
|
587
|
+
revoke: "revoke";
|
|
588
|
+
sendAction: "sendAction";
|
|
589
|
+
updateData: "updateData";
|
|
590
|
+
send: "send";
|
|
591
|
+
subscribe: "subscribe";
|
|
592
|
+
unsubscribe: "unsubscribe";
|
|
593
|
+
listSubscriptions: "listSubscriptions";
|
|
594
|
+
purchase: "purchase";
|
|
595
|
+
approve: "approve";
|
|
596
|
+
cancel: "cancel";
|
|
597
|
+
}>>;
|
|
598
|
+
};
|
|
396
599
|
/**
|
|
397
600
|
* The scopes that can be used for requested entitlements.
|
|
398
601
|
* This can be used to limit the entitlement to requesting a category of resources.
|
|
@@ -450,7 +653,7 @@ export interface Entitlement {
|
|
|
450
653
|
*/
|
|
451
654
|
designatedRecords?: string[];
|
|
452
655
|
}
|
|
453
|
-
export declare const ENTITLEMENT_FEATURE_VALIDATION: z.ZodEnum<{
|
|
656
|
+
export declare const ENTITLEMENT_FEATURE_VALIDATION: (() => z.ZodEnum<{
|
|
454
657
|
search: "search";
|
|
455
658
|
inst: "inst";
|
|
456
659
|
file: "file";
|
|
@@ -462,8 +665,22 @@ export declare const ENTITLEMENT_FEATURE_VALIDATION: z.ZodEnum<{
|
|
|
462
665
|
database: "database";
|
|
463
666
|
permissions: "permissions";
|
|
464
667
|
ai: "ai";
|
|
465
|
-
}
|
|
466
|
-
|
|
668
|
+
}>) & {
|
|
669
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodEnum<{
|
|
670
|
+
search: "search";
|
|
671
|
+
inst: "inst";
|
|
672
|
+
file: "file";
|
|
673
|
+
event: "event";
|
|
674
|
+
data: "data";
|
|
675
|
+
webhook: "webhook";
|
|
676
|
+
notification: "notification";
|
|
677
|
+
package: "package";
|
|
678
|
+
database: "database";
|
|
679
|
+
permissions: "permissions";
|
|
680
|
+
ai: "ai";
|
|
681
|
+
}>>;
|
|
682
|
+
};
|
|
683
|
+
export declare const ENTITLEMENT_VALIDATION: (() => z.ZodObject<{
|
|
467
684
|
feature: z.ZodEnum<{
|
|
468
685
|
search: "search";
|
|
469
686
|
inst: "inst";
|
|
@@ -485,7 +702,31 @@ export declare const ENTITLEMENT_VALIDATION: z.ZodObject<{
|
|
|
485
702
|
designated: "designated";
|
|
486
703
|
}>;
|
|
487
704
|
designatedRecords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
488
|
-
}, z.core.$strip
|
|
705
|
+
}, z.core.$strip>) & {
|
|
706
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
707
|
+
feature: z.ZodEnum<{
|
|
708
|
+
search: "search";
|
|
709
|
+
inst: "inst";
|
|
710
|
+
file: "file";
|
|
711
|
+
event: "event";
|
|
712
|
+
data: "data";
|
|
713
|
+
webhook: "webhook";
|
|
714
|
+
notification: "notification";
|
|
715
|
+
package: "package";
|
|
716
|
+
database: "database";
|
|
717
|
+
permissions: "permissions";
|
|
718
|
+
ai: "ai";
|
|
719
|
+
}>;
|
|
720
|
+
scope: z.ZodEnum<{
|
|
721
|
+
shared: "shared";
|
|
722
|
+
personal: "personal";
|
|
723
|
+
owned: "owned";
|
|
724
|
+
studio: "studio";
|
|
725
|
+
designated: "designated";
|
|
726
|
+
}>;
|
|
727
|
+
designatedRecords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
728
|
+
}, z.core.$strip>>;
|
|
729
|
+
};
|
|
489
730
|
/**
|
|
490
731
|
* Defines an interface that describes common options for all permissions.
|
|
491
732
|
*/
|
|
@@ -522,7 +763,7 @@ export interface Permission {
|
|
|
522
763
|
*/
|
|
523
764
|
expireTimeMs: number | null;
|
|
524
765
|
}
|
|
525
|
-
export declare const PERMISSION_VALIDATION: z.ZodObject<{
|
|
766
|
+
export declare const PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
526
767
|
subjectType: z.ZodEnum<{
|
|
527
768
|
inst: "inst";
|
|
528
769
|
user: "user";
|
|
@@ -532,7 +773,19 @@ export declare const PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
532
773
|
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
533
774
|
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
534
775
|
marker: z.ZodOptional<z.ZodString>;
|
|
535
|
-
}, z.core.$strip
|
|
776
|
+
}, z.core.$strip>) & {
|
|
777
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
778
|
+
subjectType: z.ZodEnum<{
|
|
779
|
+
inst: "inst";
|
|
780
|
+
user: "user";
|
|
781
|
+
role: "role";
|
|
782
|
+
}>;
|
|
783
|
+
subjectId: z.ZodString;
|
|
784
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
786
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
787
|
+
}, z.core.$strip>>;
|
|
788
|
+
};
|
|
536
789
|
/**
|
|
537
790
|
* Defines an interface that describes the common options for all permissions that affect data records.
|
|
538
791
|
*
|
|
@@ -550,7 +803,7 @@ export interface DataPermission extends Permission {
|
|
|
550
803
|
*/
|
|
551
804
|
action: DataActionKinds | null;
|
|
552
805
|
}
|
|
553
|
-
export declare const DATA_PERMISSION_VALIDATION: z.ZodObject<{
|
|
806
|
+
export declare const DATA_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
554
807
|
subjectType: z.ZodEnum<{
|
|
555
808
|
inst: "inst";
|
|
556
809
|
user: "user";
|
|
@@ -568,7 +821,27 @@ export declare const DATA_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
568
821
|
delete: "delete";
|
|
569
822
|
list: "list";
|
|
570
823
|
}>>;
|
|
571
|
-
}, z.core.$strip
|
|
824
|
+
}, z.core.$strip>) & {
|
|
825
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
826
|
+
subjectType: z.ZodEnum<{
|
|
827
|
+
inst: "inst";
|
|
828
|
+
user: "user";
|
|
829
|
+
role: "role";
|
|
830
|
+
}>;
|
|
831
|
+
subjectId: z.ZodString;
|
|
832
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
833
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
834
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
835
|
+
resourceKind: z.ZodLiteral<"data">;
|
|
836
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
837
|
+
read: "read";
|
|
838
|
+
create: "create";
|
|
839
|
+
update: "update";
|
|
840
|
+
delete: "delete";
|
|
841
|
+
list: "list";
|
|
842
|
+
}>>;
|
|
843
|
+
}, z.core.$strip>>;
|
|
844
|
+
};
|
|
572
845
|
/**
|
|
573
846
|
* Options for file permissions.
|
|
574
847
|
*
|
|
@@ -588,10 +861,15 @@ export interface FilePermissionOptions {
|
|
|
588
861
|
*/
|
|
589
862
|
allowedMimeTypes?: true | string[];
|
|
590
863
|
}
|
|
591
|
-
export declare const FILE_PERMISSION_OPTIONS_VALIDATION: z.ZodObject<{
|
|
864
|
+
export declare const FILE_PERMISSION_OPTIONS_VALIDATION: (() => z.ZodObject<{
|
|
592
865
|
maxFileSizeInBytes: z.ZodOptional<z.ZodNumber>;
|
|
593
866
|
allowedMimeTypes: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
|
|
594
|
-
}, z.core.$strip
|
|
867
|
+
}, z.core.$strip>) & {
|
|
868
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
869
|
+
maxFileSizeInBytes: z.ZodOptional<z.ZodNumber>;
|
|
870
|
+
allowedMimeTypes: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
|
|
871
|
+
}, z.core.$strip>>;
|
|
872
|
+
};
|
|
595
873
|
/**
|
|
596
874
|
* Defines an interface that describes the common options for all permissions that affect file records.
|
|
597
875
|
*
|
|
@@ -613,7 +891,7 @@ export interface FilePermission extends Permission {
|
|
|
613
891
|
*/
|
|
614
892
|
options: FilePermissionOptions;
|
|
615
893
|
}
|
|
616
|
-
export declare const FILE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
894
|
+
export declare const FILE_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
617
895
|
subjectType: z.ZodEnum<{
|
|
618
896
|
inst: "inst";
|
|
619
897
|
user: "user";
|
|
@@ -635,7 +913,31 @@ export declare const FILE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
635
913
|
maxFileSizeInBytes: z.ZodOptional<z.ZodNumber>;
|
|
636
914
|
allowedMimeTypes: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
|
|
637
915
|
}, z.core.$strip>;
|
|
638
|
-
}, z.core.$strip
|
|
916
|
+
}, z.core.$strip>) & {
|
|
917
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
918
|
+
subjectType: z.ZodEnum<{
|
|
919
|
+
inst: "inst";
|
|
920
|
+
user: "user";
|
|
921
|
+
role: "role";
|
|
922
|
+
}>;
|
|
923
|
+
subjectId: z.ZodString;
|
|
924
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
925
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
926
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
927
|
+
resourceKind: z.ZodLiteral<"file">;
|
|
928
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
929
|
+
read: "read";
|
|
930
|
+
create: "create";
|
|
931
|
+
update: "update";
|
|
932
|
+
delete: "delete";
|
|
933
|
+
list: "list";
|
|
934
|
+
}>>;
|
|
935
|
+
options: z.ZodObject<{
|
|
936
|
+
maxFileSizeInBytes: z.ZodOptional<z.ZodNumber>;
|
|
937
|
+
allowedMimeTypes: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
|
|
938
|
+
}, z.core.$strip>;
|
|
939
|
+
}, z.core.$strip>>;
|
|
940
|
+
};
|
|
639
941
|
/**
|
|
640
942
|
* Defines an interface that describes the common options for all permissions that affect event records.
|
|
641
943
|
*
|
|
@@ -653,7 +955,7 @@ export interface EventPermission extends Permission {
|
|
|
653
955
|
*/
|
|
654
956
|
action: EventActionKinds | null;
|
|
655
957
|
}
|
|
656
|
-
export declare const EVENT_PERMISSION_VALIDATION: z.ZodObject<{
|
|
958
|
+
export declare const EVENT_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
657
959
|
subjectType: z.ZodEnum<{
|
|
658
960
|
inst: "inst";
|
|
659
961
|
user: "user";
|
|
@@ -670,7 +972,26 @@ export declare const EVENT_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
670
972
|
count: "count";
|
|
671
973
|
list: "list";
|
|
672
974
|
}>>;
|
|
673
|
-
}, z.core.$strip
|
|
975
|
+
}, z.core.$strip>) & {
|
|
976
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
977
|
+
subjectType: z.ZodEnum<{
|
|
978
|
+
inst: "inst";
|
|
979
|
+
user: "user";
|
|
980
|
+
role: "role";
|
|
981
|
+
}>;
|
|
982
|
+
subjectId: z.ZodString;
|
|
983
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
984
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
985
|
+
resourceKind: z.ZodLiteral<"event">;
|
|
986
|
+
resourceId: z.ZodNullable<z.ZodString>;
|
|
987
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
988
|
+
update: "update";
|
|
989
|
+
increment: "increment";
|
|
990
|
+
count: "count";
|
|
991
|
+
list: "list";
|
|
992
|
+
}>>;
|
|
993
|
+
}, z.core.$strip>>;
|
|
994
|
+
};
|
|
674
995
|
/**
|
|
675
996
|
* Defines an interface that describes the common options for all permissions that affect markers.
|
|
676
997
|
*
|
|
@@ -688,7 +1009,7 @@ export interface MarkerPermission extends Permission {
|
|
|
688
1009
|
*/
|
|
689
1010
|
action: MarkerActionKinds | null;
|
|
690
1011
|
}
|
|
691
|
-
export declare const MARKER_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1012
|
+
export declare const MARKER_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
692
1013
|
subjectType: z.ZodEnum<{
|
|
693
1014
|
inst: "inst";
|
|
694
1015
|
user: "user";
|
|
@@ -706,7 +1027,27 @@ export declare const MARKER_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
706
1027
|
grantPermission: "grantPermission";
|
|
707
1028
|
revokePermission: "revokePermission";
|
|
708
1029
|
}>>;
|
|
709
|
-
}, z.core.$strip
|
|
1030
|
+
}, z.core.$strip>) & {
|
|
1031
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1032
|
+
subjectType: z.ZodEnum<{
|
|
1033
|
+
inst: "inst";
|
|
1034
|
+
user: "user";
|
|
1035
|
+
role: "role";
|
|
1036
|
+
}>;
|
|
1037
|
+
subjectId: z.ZodString;
|
|
1038
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1039
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1040
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
resourceKind: z.ZodLiteral<"marker">;
|
|
1042
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1043
|
+
read: "read";
|
|
1044
|
+
assign: "assign";
|
|
1045
|
+
unassign: "unassign";
|
|
1046
|
+
grantPermission: "grantPermission";
|
|
1047
|
+
revokePermission: "revokePermission";
|
|
1048
|
+
}>>;
|
|
1049
|
+
}, z.core.$strip>>;
|
|
1050
|
+
};
|
|
710
1051
|
/**
|
|
711
1052
|
* Options for role permissions.
|
|
712
1053
|
*
|
|
@@ -720,9 +1061,13 @@ export interface RolePermissionOptions {
|
|
|
720
1061
|
*/
|
|
721
1062
|
maxDurationMs?: number;
|
|
722
1063
|
}
|
|
723
|
-
export declare const ROLE_PERMISSION_OPTIONS_VALIDATION: z.ZodObject<{
|
|
1064
|
+
export declare const ROLE_PERMISSION_OPTIONS_VALIDATION: (() => z.ZodObject<{
|
|
724
1065
|
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
725
|
-
}, z.core.$strip
|
|
1066
|
+
}, z.core.$strip>) & {
|
|
1067
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1068
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1069
|
+
}, z.core.$strip>>;
|
|
1070
|
+
};
|
|
726
1071
|
/**
|
|
727
1072
|
* Defines an interface that describes the common options for all permissions that affect roles.
|
|
728
1073
|
*
|
|
@@ -749,7 +1094,7 @@ export interface RolePermission extends Permission {
|
|
|
749
1094
|
*/
|
|
750
1095
|
options: RolePermissionOptions;
|
|
751
1096
|
}
|
|
752
|
-
export declare const ROLE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1097
|
+
export declare const ROLE_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
753
1098
|
subjectType: z.ZodEnum<{
|
|
754
1099
|
inst: "inst";
|
|
755
1100
|
user: "user";
|
|
@@ -770,7 +1115,30 @@ export declare const ROLE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
770
1115
|
options: z.ZodObject<{
|
|
771
1116
|
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
772
1117
|
}, z.core.$strip>;
|
|
773
|
-
}, z.core.$strip
|
|
1118
|
+
}, z.core.$strip>) & {
|
|
1119
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1120
|
+
subjectType: z.ZodEnum<{
|
|
1121
|
+
inst: "inst";
|
|
1122
|
+
user: "user";
|
|
1123
|
+
role: "role";
|
|
1124
|
+
}>;
|
|
1125
|
+
subjectId: z.ZodString;
|
|
1126
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1127
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1128
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
resourceKind: z.ZodLiteral<"role">;
|
|
1130
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1131
|
+
read: "read";
|
|
1132
|
+
update: "update";
|
|
1133
|
+
list: "list";
|
|
1134
|
+
grant: "grant";
|
|
1135
|
+
revoke: "revoke";
|
|
1136
|
+
}>>;
|
|
1137
|
+
options: z.ZodObject<{
|
|
1138
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1139
|
+
}, z.core.$strip>;
|
|
1140
|
+
}, z.core.$strip>>;
|
|
1141
|
+
};
|
|
774
1142
|
/**
|
|
775
1143
|
* Defines an interface that describes common options for all permissions that affect insts.
|
|
776
1144
|
*
|
|
@@ -793,7 +1161,7 @@ export interface InstPermission extends Permission {
|
|
|
793
1161
|
*/
|
|
794
1162
|
action: InstActionKinds | null;
|
|
795
1163
|
}
|
|
796
|
-
export declare const INST_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1164
|
+
export declare const INST_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
797
1165
|
subjectType: z.ZodEnum<{
|
|
798
1166
|
inst: "inst";
|
|
799
1167
|
user: "user";
|
|
@@ -813,7 +1181,29 @@ export declare const INST_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
813
1181
|
sendAction: "sendAction";
|
|
814
1182
|
updateData: "updateData";
|
|
815
1183
|
}>>;
|
|
816
|
-
}, z.core.$strip
|
|
1184
|
+
}, z.core.$strip>) & {
|
|
1185
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1186
|
+
subjectType: z.ZodEnum<{
|
|
1187
|
+
inst: "inst";
|
|
1188
|
+
user: "user";
|
|
1189
|
+
role: "role";
|
|
1190
|
+
}>;
|
|
1191
|
+
subjectId: z.ZodString;
|
|
1192
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1193
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1194
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
resourceKind: z.ZodLiteral<"inst">;
|
|
1196
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1197
|
+
read: "read";
|
|
1198
|
+
create: "create";
|
|
1199
|
+
update: "update";
|
|
1200
|
+
delete: "delete";
|
|
1201
|
+
list: "list";
|
|
1202
|
+
sendAction: "sendAction";
|
|
1203
|
+
updateData: "updateData";
|
|
1204
|
+
}>>;
|
|
1205
|
+
}, z.core.$strip>>;
|
|
1206
|
+
};
|
|
817
1207
|
/**
|
|
818
1208
|
* Defines an interface that describes common options for all permissions that affect loom resources.
|
|
819
1209
|
*
|
|
@@ -831,7 +1221,7 @@ export interface LoomPermission extends Permission {
|
|
|
831
1221
|
*/
|
|
832
1222
|
action: LoomActionKinds | null;
|
|
833
1223
|
}
|
|
834
|
-
export declare const LOOM_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1224
|
+
export declare const LOOM_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
835
1225
|
subjectType: z.ZodEnum<{
|
|
836
1226
|
inst: "inst";
|
|
837
1227
|
user: "user";
|
|
@@ -845,7 +1235,23 @@ export declare const LOOM_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
845
1235
|
action: z.ZodNullable<z.ZodEnum<{
|
|
846
1236
|
create: "create";
|
|
847
1237
|
}>>;
|
|
848
|
-
}, z.core.$strip
|
|
1238
|
+
}, z.core.$strip>) & {
|
|
1239
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1240
|
+
subjectType: z.ZodEnum<{
|
|
1241
|
+
inst: "inst";
|
|
1242
|
+
user: "user";
|
|
1243
|
+
role: "role";
|
|
1244
|
+
}>;
|
|
1245
|
+
subjectId: z.ZodString;
|
|
1246
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1247
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1248
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1249
|
+
resourceKind: z.ZodLiteral<"loom">;
|
|
1250
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1251
|
+
create: "create";
|
|
1252
|
+
}>>;
|
|
1253
|
+
}, z.core.$strip>>;
|
|
1254
|
+
};
|
|
849
1255
|
/**
|
|
850
1256
|
* Defines an interface that describes common options for all permissions that affect ai.sloyd resources.
|
|
851
1257
|
*
|
|
@@ -863,7 +1269,7 @@ export interface SloydPermission extends Permission {
|
|
|
863
1269
|
*/
|
|
864
1270
|
action: SloydActionKinds | null;
|
|
865
1271
|
}
|
|
866
|
-
export declare const SLOYD_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1272
|
+
export declare const SLOYD_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
867
1273
|
subjectType: z.ZodEnum<{
|
|
868
1274
|
inst: "inst";
|
|
869
1275
|
user: "user";
|
|
@@ -877,7 +1283,23 @@ export declare const SLOYD_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
877
1283
|
action: z.ZodNullable<z.ZodEnum<{
|
|
878
1284
|
create: "create";
|
|
879
1285
|
}>>;
|
|
880
|
-
}, z.core.$strip
|
|
1286
|
+
}, z.core.$strip>) & {
|
|
1287
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1288
|
+
subjectType: z.ZodEnum<{
|
|
1289
|
+
inst: "inst";
|
|
1290
|
+
user: "user";
|
|
1291
|
+
role: "role";
|
|
1292
|
+
}>;
|
|
1293
|
+
subjectId: z.ZodString;
|
|
1294
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1295
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1296
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
resourceKind: z.ZodLiteral<"ai.sloyd">;
|
|
1298
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1299
|
+
create: "create";
|
|
1300
|
+
}>>;
|
|
1301
|
+
}, z.core.$strip>>;
|
|
1302
|
+
};
|
|
881
1303
|
/**
|
|
882
1304
|
* Defines an interface that describes common options for all permissions that affect ai.hume resources.
|
|
883
1305
|
*
|
|
@@ -895,7 +1317,7 @@ export interface HumePermission extends Permission {
|
|
|
895
1317
|
*/
|
|
896
1318
|
action: HumeActionKinds | null;
|
|
897
1319
|
}
|
|
898
|
-
export declare const HUME_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1320
|
+
export declare const HUME_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
899
1321
|
subjectType: z.ZodEnum<{
|
|
900
1322
|
inst: "inst";
|
|
901
1323
|
user: "user";
|
|
@@ -909,7 +1331,23 @@ export declare const HUME_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
909
1331
|
action: z.ZodNullable<z.ZodEnum<{
|
|
910
1332
|
create: "create";
|
|
911
1333
|
}>>;
|
|
912
|
-
}, z.core.$strip
|
|
1334
|
+
}, z.core.$strip>) & {
|
|
1335
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1336
|
+
subjectType: z.ZodEnum<{
|
|
1337
|
+
inst: "inst";
|
|
1338
|
+
user: "user";
|
|
1339
|
+
role: "role";
|
|
1340
|
+
}>;
|
|
1341
|
+
subjectId: z.ZodString;
|
|
1342
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1343
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1344
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1345
|
+
resourceKind: z.ZodLiteral<"ai.hume">;
|
|
1346
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1347
|
+
create: "create";
|
|
1348
|
+
}>>;
|
|
1349
|
+
}, z.core.$strip>>;
|
|
1350
|
+
};
|
|
913
1351
|
/**
|
|
914
1352
|
* Defines an interface that describes common options for all permissions that affect ai.openai.realtime resources.
|
|
915
1353
|
*
|
|
@@ -927,7 +1365,7 @@ export interface OpenAIRealtimePermission extends Permission {
|
|
|
927
1365
|
*/
|
|
928
1366
|
action: OpenAIRealtimeActionKinds | null;
|
|
929
1367
|
}
|
|
930
|
-
export declare const OPENAI_REALTIME_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1368
|
+
export declare const OPENAI_REALTIME_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
931
1369
|
subjectType: z.ZodEnum<{
|
|
932
1370
|
inst: "inst";
|
|
933
1371
|
user: "user";
|
|
@@ -941,7 +1379,23 @@ export declare const OPENAI_REALTIME_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
941
1379
|
action: z.ZodNullable<z.ZodEnum<{
|
|
942
1380
|
create: "create";
|
|
943
1381
|
}>>;
|
|
944
|
-
}, z.core.$strip
|
|
1382
|
+
}, z.core.$strip>) & {
|
|
1383
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1384
|
+
subjectType: z.ZodEnum<{
|
|
1385
|
+
inst: "inst";
|
|
1386
|
+
user: "user";
|
|
1387
|
+
role: "role";
|
|
1388
|
+
}>;
|
|
1389
|
+
subjectId: z.ZodString;
|
|
1390
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1391
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1392
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
resourceKind: z.ZodLiteral<"ai.openai.realtime">;
|
|
1394
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1395
|
+
create: "create";
|
|
1396
|
+
}>>;
|
|
1397
|
+
}, z.core.$strip>>;
|
|
1398
|
+
};
|
|
945
1399
|
/**
|
|
946
1400
|
* Defines an interface that describes common options for all permissions that affect webhook resources.
|
|
947
1401
|
*
|
|
@@ -959,7 +1413,7 @@ export interface WebhookPermission extends Permission {
|
|
|
959
1413
|
*/
|
|
960
1414
|
action: WebhookActionKinds | null;
|
|
961
1415
|
}
|
|
962
|
-
export declare const WEBHOOK_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1416
|
+
export declare const WEBHOOK_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
963
1417
|
subjectType: z.ZodEnum<{
|
|
964
1418
|
inst: "inst";
|
|
965
1419
|
user: "user";
|
|
@@ -978,7 +1432,28 @@ export declare const WEBHOOK_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
978
1432
|
delete: "delete";
|
|
979
1433
|
list: "list";
|
|
980
1434
|
}>>;
|
|
981
|
-
}, z.core.$strip
|
|
1435
|
+
}, z.core.$strip>) & {
|
|
1436
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1437
|
+
subjectType: z.ZodEnum<{
|
|
1438
|
+
inst: "inst";
|
|
1439
|
+
user: "user";
|
|
1440
|
+
role: "role";
|
|
1441
|
+
}>;
|
|
1442
|
+
subjectId: z.ZodString;
|
|
1443
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1444
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1445
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1446
|
+
resourceKind: z.ZodLiteral<"webhook">;
|
|
1447
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1448
|
+
run: "run";
|
|
1449
|
+
read: "read";
|
|
1450
|
+
create: "create";
|
|
1451
|
+
update: "update";
|
|
1452
|
+
delete: "delete";
|
|
1453
|
+
list: "list";
|
|
1454
|
+
}>>;
|
|
1455
|
+
}, z.core.$strip>>;
|
|
1456
|
+
};
|
|
982
1457
|
/**
|
|
983
1458
|
* Defines an interface that describes common options for all permissions that affect notification resources.
|
|
984
1459
|
*
|
|
@@ -996,7 +1471,7 @@ export interface NotificationPermission extends Permission {
|
|
|
996
1471
|
*/
|
|
997
1472
|
action: NotificationActionKinds | null;
|
|
998
1473
|
}
|
|
999
|
-
export declare const NOTIFICATION_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1474
|
+
export declare const NOTIFICATION_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
1000
1475
|
subjectType: z.ZodEnum<{
|
|
1001
1476
|
inst: "inst";
|
|
1002
1477
|
user: "user";
|
|
@@ -1018,7 +1493,31 @@ export declare const NOTIFICATION_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
1018
1493
|
unsubscribe: "unsubscribe";
|
|
1019
1494
|
listSubscriptions: "listSubscriptions";
|
|
1020
1495
|
}>>;
|
|
1021
|
-
}, z.core.$strip
|
|
1496
|
+
}, z.core.$strip>) & {
|
|
1497
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1498
|
+
subjectType: z.ZodEnum<{
|
|
1499
|
+
inst: "inst";
|
|
1500
|
+
user: "user";
|
|
1501
|
+
role: "role";
|
|
1502
|
+
}>;
|
|
1503
|
+
subjectId: z.ZodString;
|
|
1504
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1505
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1506
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1507
|
+
resourceKind: z.ZodLiteral<"notification">;
|
|
1508
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1509
|
+
read: "read";
|
|
1510
|
+
create: "create";
|
|
1511
|
+
update: "update";
|
|
1512
|
+
delete: "delete";
|
|
1513
|
+
list: "list";
|
|
1514
|
+
send: "send";
|
|
1515
|
+
subscribe: "subscribe";
|
|
1516
|
+
unsubscribe: "unsubscribe";
|
|
1517
|
+
listSubscriptions: "listSubscriptions";
|
|
1518
|
+
}>>;
|
|
1519
|
+
}, z.core.$strip>>;
|
|
1520
|
+
};
|
|
1022
1521
|
/**
|
|
1023
1522
|
* Defines an interface that describes common options for all permissions that affect package resources.
|
|
1024
1523
|
*
|
|
@@ -1036,7 +1535,7 @@ export interface PackagePermission extends Permission {
|
|
|
1036
1535
|
*/
|
|
1037
1536
|
action: PackageActionKinds | null;
|
|
1038
1537
|
}
|
|
1039
|
-
export declare const PACKAGE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1538
|
+
export declare const PACKAGE_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
1040
1539
|
subjectType: z.ZodEnum<{
|
|
1041
1540
|
inst: "inst";
|
|
1042
1541
|
user: "user";
|
|
@@ -1055,7 +1554,28 @@ export declare const PACKAGE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
1055
1554
|
delete: "delete";
|
|
1056
1555
|
list: "list";
|
|
1057
1556
|
}>>;
|
|
1058
|
-
}, z.core.$strip
|
|
1557
|
+
}, z.core.$strip>) & {
|
|
1558
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1559
|
+
subjectType: z.ZodEnum<{
|
|
1560
|
+
inst: "inst";
|
|
1561
|
+
user: "user";
|
|
1562
|
+
role: "role";
|
|
1563
|
+
}>;
|
|
1564
|
+
subjectId: z.ZodString;
|
|
1565
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1566
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1567
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1568
|
+
resourceKind: z.ZodLiteral<"package">;
|
|
1569
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1570
|
+
run: "run";
|
|
1571
|
+
read: "read";
|
|
1572
|
+
create: "create";
|
|
1573
|
+
update: "update";
|
|
1574
|
+
delete: "delete";
|
|
1575
|
+
list: "list";
|
|
1576
|
+
}>>;
|
|
1577
|
+
}, z.core.$strip>>;
|
|
1578
|
+
};
|
|
1059
1579
|
/**
|
|
1060
1580
|
* Defines an interface that describes common options for all permissions that affect package.version resources.
|
|
1061
1581
|
*
|
|
@@ -1073,7 +1593,7 @@ export interface PackageVersionPermission extends Permission {
|
|
|
1073
1593
|
*/
|
|
1074
1594
|
action: PackageVersionActionKinds | null;
|
|
1075
1595
|
}
|
|
1076
|
-
export declare const PACKAGE_VERSION_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1596
|
+
export declare const PACKAGE_VERSION_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
1077
1597
|
subjectType: z.ZodEnum<{
|
|
1078
1598
|
inst: "inst";
|
|
1079
1599
|
user: "user";
|
|
@@ -1092,7 +1612,28 @@ export declare const PACKAGE_VERSION_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
1092
1612
|
delete: "delete";
|
|
1093
1613
|
list: "list";
|
|
1094
1614
|
}>>;
|
|
1095
|
-
}, z.core.$strip
|
|
1615
|
+
}, z.core.$strip>) & {
|
|
1616
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1617
|
+
subjectType: z.ZodEnum<{
|
|
1618
|
+
inst: "inst";
|
|
1619
|
+
user: "user";
|
|
1620
|
+
role: "role";
|
|
1621
|
+
}>;
|
|
1622
|
+
subjectId: z.ZodString;
|
|
1623
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1624
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1625
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1626
|
+
resourceKind: z.ZodLiteral<"package.version">;
|
|
1627
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1628
|
+
run: "run";
|
|
1629
|
+
read: "read";
|
|
1630
|
+
create: "create";
|
|
1631
|
+
update: "update";
|
|
1632
|
+
delete: "delete";
|
|
1633
|
+
list: "list";
|
|
1634
|
+
}>>;
|
|
1635
|
+
}, z.core.$strip>>;
|
|
1636
|
+
};
|
|
1096
1637
|
/**
|
|
1097
1638
|
* Defines an interface that describes common options for all permissions that affect search resources.
|
|
1098
1639
|
*
|
|
@@ -1110,7 +1651,7 @@ export interface SearchPermission extends Permission {
|
|
|
1110
1651
|
*/
|
|
1111
1652
|
action: SearchActionKinds | null;
|
|
1112
1653
|
}
|
|
1113
|
-
export declare const SEARCH_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1654
|
+
export declare const SEARCH_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
1114
1655
|
subjectType: z.ZodEnum<{
|
|
1115
1656
|
inst: "inst";
|
|
1116
1657
|
user: "user";
|
|
@@ -1128,7 +1669,27 @@ export declare const SEARCH_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
1128
1669
|
delete: "delete";
|
|
1129
1670
|
list: "list";
|
|
1130
1671
|
}>>;
|
|
1131
|
-
}, z.core.$strip
|
|
1672
|
+
}, z.core.$strip>) & {
|
|
1673
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1674
|
+
subjectType: z.ZodEnum<{
|
|
1675
|
+
inst: "inst";
|
|
1676
|
+
user: "user";
|
|
1677
|
+
role: "role";
|
|
1678
|
+
}>;
|
|
1679
|
+
subjectId: z.ZodString;
|
|
1680
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1681
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1682
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
resourceKind: z.ZodLiteral<"search">;
|
|
1684
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1685
|
+
read: "read";
|
|
1686
|
+
create: "create";
|
|
1687
|
+
update: "update";
|
|
1688
|
+
delete: "delete";
|
|
1689
|
+
list: "list";
|
|
1690
|
+
}>>;
|
|
1691
|
+
}, z.core.$strip>>;
|
|
1692
|
+
};
|
|
1132
1693
|
/**
|
|
1133
1694
|
* Defines an interface that describes common options for all permissions that affect search resources.
|
|
1134
1695
|
*
|
|
@@ -1146,7 +1707,7 @@ export interface DatabasePermission extends Permission {
|
|
|
1146
1707
|
*/
|
|
1147
1708
|
action: DatabaseActionKinds | null;
|
|
1148
1709
|
}
|
|
1149
|
-
export declare const DATABASE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1710
|
+
export declare const DATABASE_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
1150
1711
|
subjectType: z.ZodEnum<{
|
|
1151
1712
|
inst: "inst";
|
|
1152
1713
|
user: "user";
|
|
@@ -1164,7 +1725,27 @@ export declare const DATABASE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
1164
1725
|
delete: "delete";
|
|
1165
1726
|
list: "list";
|
|
1166
1727
|
}>>;
|
|
1167
|
-
}, z.core.$strip
|
|
1728
|
+
}, z.core.$strip>) & {
|
|
1729
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1730
|
+
subjectType: z.ZodEnum<{
|
|
1731
|
+
inst: "inst";
|
|
1732
|
+
user: "user";
|
|
1733
|
+
role: "role";
|
|
1734
|
+
}>;
|
|
1735
|
+
subjectId: z.ZodString;
|
|
1736
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1737
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1738
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1739
|
+
resourceKind: z.ZodLiteral<"database">;
|
|
1740
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1741
|
+
read: "read";
|
|
1742
|
+
create: "create";
|
|
1743
|
+
update: "update";
|
|
1744
|
+
delete: "delete";
|
|
1745
|
+
list: "list";
|
|
1746
|
+
}>>;
|
|
1747
|
+
}, z.core.$strip>>;
|
|
1748
|
+
};
|
|
1168
1749
|
/**
|
|
1169
1750
|
* Defines an interface that describes common options for all purchasableItem permissions.
|
|
1170
1751
|
*
|
|
@@ -1183,7 +1764,7 @@ export interface PurchasableItemPermission extends Permission {
|
|
|
1183
1764
|
resourceId: string | null;
|
|
1184
1765
|
action: PurchasableItemActionKinds | null;
|
|
1185
1766
|
}
|
|
1186
|
-
export declare const PURCHASABLE_ITEM_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1767
|
+
export declare const PURCHASABLE_ITEM_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
1187
1768
|
subjectType: z.ZodEnum<{
|
|
1188
1769
|
inst: "inst";
|
|
1189
1770
|
user: "user";
|
|
@@ -1202,7 +1783,28 @@ export declare const PURCHASABLE_ITEM_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
1202
1783
|
list: "list";
|
|
1203
1784
|
purchase: "purchase";
|
|
1204
1785
|
}>>;
|
|
1205
|
-
}, z.core.$strip
|
|
1786
|
+
}, z.core.$strip>) & {
|
|
1787
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1788
|
+
subjectType: z.ZodEnum<{
|
|
1789
|
+
inst: "inst";
|
|
1790
|
+
user: "user";
|
|
1791
|
+
role: "role";
|
|
1792
|
+
}>;
|
|
1793
|
+
subjectId: z.ZodString;
|
|
1794
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1795
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1796
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1797
|
+
resourceKind: z.ZodLiteral<"purchasableItem">;
|
|
1798
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1799
|
+
read: "read";
|
|
1800
|
+
create: "create";
|
|
1801
|
+
update: "update";
|
|
1802
|
+
delete: "delete";
|
|
1803
|
+
list: "list";
|
|
1804
|
+
purchase: "purchase";
|
|
1805
|
+
}>>;
|
|
1806
|
+
}, z.core.$strip>>;
|
|
1807
|
+
};
|
|
1206
1808
|
/**
|
|
1207
1809
|
* Defines an interface that describes common options for all contract permissions.
|
|
1208
1810
|
*
|
|
@@ -1221,7 +1823,7 @@ export interface ContractPermission extends Permission {
|
|
|
1221
1823
|
resourceId: string | null;
|
|
1222
1824
|
action: ContractActionKinds | null;
|
|
1223
1825
|
}
|
|
1224
|
-
export declare const CONTRACT_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1826
|
+
export declare const CONTRACT_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
1225
1827
|
subjectType: z.ZodEnum<{
|
|
1226
1828
|
inst: "inst";
|
|
1227
1829
|
user: "user";
|
|
@@ -1241,7 +1843,29 @@ export declare const CONTRACT_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
1241
1843
|
purchase: "purchase";
|
|
1242
1844
|
cancel: "cancel";
|
|
1243
1845
|
}>>;
|
|
1244
|
-
}, z.core.$strip
|
|
1846
|
+
}, z.core.$strip>) & {
|
|
1847
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1848
|
+
subjectType: z.ZodEnum<{
|
|
1849
|
+
inst: "inst";
|
|
1850
|
+
user: "user";
|
|
1851
|
+
role: "role";
|
|
1852
|
+
}>;
|
|
1853
|
+
subjectId: z.ZodString;
|
|
1854
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1855
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1856
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1857
|
+
resourceKind: z.ZodLiteral<"contract">;
|
|
1858
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1859
|
+
read: "read";
|
|
1860
|
+
create: "create";
|
|
1861
|
+
update: "update";
|
|
1862
|
+
delete: "delete";
|
|
1863
|
+
list: "list";
|
|
1864
|
+
purchase: "purchase";
|
|
1865
|
+
cancel: "cancel";
|
|
1866
|
+
}>>;
|
|
1867
|
+
}, z.core.$strip>>;
|
|
1868
|
+
};
|
|
1245
1869
|
/**
|
|
1246
1870
|
* Defines an interface that describes common options for all invoice permissions.
|
|
1247
1871
|
*
|
|
@@ -1260,7 +1884,7 @@ export interface InvoicePermission extends Permission {
|
|
|
1260
1884
|
resourceId: string | null;
|
|
1261
1885
|
action: InvoiceActionKinds | null;
|
|
1262
1886
|
}
|
|
1263
|
-
export declare const INVOICE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
1887
|
+
export declare const INVOICE_PERMISSION_VALIDATION: (() => z.ZodObject<{
|
|
1264
1888
|
subjectType: z.ZodEnum<{
|
|
1265
1889
|
inst: "inst";
|
|
1266
1890
|
user: "user";
|
|
@@ -1280,7 +1904,29 @@ export declare const INVOICE_PERMISSION_VALIDATION: z.ZodObject<{
|
|
|
1280
1904
|
approve: "approve";
|
|
1281
1905
|
cancel: "cancel";
|
|
1282
1906
|
}>>;
|
|
1283
|
-
}, z.core.$strip
|
|
1907
|
+
}, z.core.$strip>) & {
|
|
1908
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
1909
|
+
subjectType: z.ZodEnum<{
|
|
1910
|
+
inst: "inst";
|
|
1911
|
+
user: "user";
|
|
1912
|
+
role: "role";
|
|
1913
|
+
}>;
|
|
1914
|
+
subjectId: z.ZodString;
|
|
1915
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1916
|
+
expireTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
1917
|
+
marker: z.ZodOptional<z.ZodString>;
|
|
1918
|
+
resourceKind: z.ZodLiteral<"invoice">;
|
|
1919
|
+
action: z.ZodNullable<z.ZodEnum<{
|
|
1920
|
+
read: "read";
|
|
1921
|
+
create: "create";
|
|
1922
|
+
update: "update";
|
|
1923
|
+
delete: "delete";
|
|
1924
|
+
list: "list";
|
|
1925
|
+
approve: "approve";
|
|
1926
|
+
cancel: "cancel";
|
|
1927
|
+
}>>;
|
|
1928
|
+
}, z.core.$strip>>;
|
|
1929
|
+
};
|
|
1284
1930
|
export declare const AVAILABLE_PERMISSIONS_VALIDATION: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1285
1931
|
subjectType: z.ZodEnum<{
|
|
1286
1932
|
inst: "inst";
|