@anaralabs/sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -7
- package/dist/agent-guide.d.ts +1 -1
- package/dist/agent-guide.d.ts.map +1 -1
- package/dist/agent-guide.js +7 -6
- package/dist/agent-guide.js.map +1 -1
- package/dist/client.d.ts +46 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +84 -7
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts.map +1 -1
- package/dist/openapi.js +7 -3
- package/dist/openapi.js.map +1 -1
- package/dist/schemas.d.ts +264 -79
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +281 -31
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +52 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export interface MethodSpec {
|
|
|
34
34
|
output: z.ZodTypeAny;
|
|
35
35
|
write: boolean;
|
|
36
36
|
summary: string;
|
|
37
|
+
scope?: 'anara:read' | 'anara:write' | 'anara:sandbox';
|
|
38
|
+
extraScopes?: Array<'anara:read' | 'anara:write' | 'anara:sandbox'>;
|
|
37
39
|
}
|
|
38
40
|
export declare const ANARA_METHODS: {
|
|
39
41
|
'entities.query': {
|
|
@@ -60,6 +62,10 @@ export declare const ANARA_METHODS: {
|
|
|
60
62
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
63
|
nameContains: z.ZodOptional<z.ZodString>;
|
|
62
64
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
66
|
+
accessible: "accessible";
|
|
67
|
+
organization: "organization";
|
|
68
|
+
}>>;
|
|
63
69
|
}, z.core.$strip>;
|
|
64
70
|
output: z.ZodArray<z.ZodObject<{
|
|
65
71
|
id: z.ZodString;
|
|
@@ -244,81 +250,6 @@ export declare const ANARA_METHODS: {
|
|
|
244
250
|
write: true;
|
|
245
251
|
summary: string;
|
|
246
252
|
};
|
|
247
|
-
search: {
|
|
248
|
-
input: z.ZodObject<{
|
|
249
|
-
query: z.ZodString;
|
|
250
|
-
documentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
251
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
252
|
-
}, z.core.$strip>;
|
|
253
|
-
output: z.ZodArray<z.ZodObject<{
|
|
254
|
-
chunkId: z.ZodString;
|
|
255
|
-
documentId: z.ZodString;
|
|
256
|
-
documentName: z.ZodOptional<z.ZodString>;
|
|
257
|
-
text: z.ZodString;
|
|
258
|
-
chunkIndex: z.ZodNumber;
|
|
259
|
-
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
260
|
-
displayPageNumber: z.ZodOptional<z.ZodString>;
|
|
261
|
-
score: z.ZodOptional<z.ZodNumber>;
|
|
262
|
-
anchor: z.ZodOptional<z.ZodUnknown>;
|
|
263
|
-
}, z.core.$strip>>;
|
|
264
|
-
write: false;
|
|
265
|
-
summary: string;
|
|
266
|
-
};
|
|
267
|
-
research: {
|
|
268
|
-
input: z.ZodObject<{
|
|
269
|
-
query: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
270
|
-
documentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
271
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
272
|
-
readPages: z.ZodOptional<z.ZodNumber>;
|
|
273
|
-
}, z.core.$strip>;
|
|
274
|
-
output: z.ZodUnion<[z.ZodObject<{
|
|
275
|
-
hits: z.ZodArray<z.ZodObject<{
|
|
276
|
-
chunkId: z.ZodString;
|
|
277
|
-
documentId: z.ZodString;
|
|
278
|
-
documentName: z.ZodOptional<z.ZodString>;
|
|
279
|
-
text: z.ZodString;
|
|
280
|
-
chunkIndex: z.ZodNumber;
|
|
281
|
-
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
282
|
-
displayPageNumber: z.ZodOptional<z.ZodString>;
|
|
283
|
-
score: z.ZodOptional<z.ZodNumber>;
|
|
284
|
-
anchor: z.ZodOptional<z.ZodUnknown>;
|
|
285
|
-
}, z.core.$strip>>;
|
|
286
|
-
pages: z.ZodArray<z.ZodObject<{
|
|
287
|
-
documentId: z.ZodOptional<z.ZodString>;
|
|
288
|
-
documentName: z.ZodOptional<z.ZodString>;
|
|
289
|
-
passages: z.ZodArray<z.ZodObject<{
|
|
290
|
-
passageId: z.ZodString;
|
|
291
|
-
text: z.ZodString;
|
|
292
|
-
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
293
|
-
displayPageNumber: z.ZodOptional<z.ZodString>;
|
|
294
|
-
}, z.core.$strip>>;
|
|
295
|
-
}, z.core.$strip>>;
|
|
296
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
297
|
-
hits: z.ZodArray<z.ZodObject<{
|
|
298
|
-
chunkId: z.ZodString;
|
|
299
|
-
documentId: z.ZodString;
|
|
300
|
-
documentName: z.ZodOptional<z.ZodString>;
|
|
301
|
-
text: z.ZodString;
|
|
302
|
-
chunkIndex: z.ZodNumber;
|
|
303
|
-
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
304
|
-
displayPageNumber: z.ZodOptional<z.ZodString>;
|
|
305
|
-
score: z.ZodOptional<z.ZodNumber>;
|
|
306
|
-
anchor: z.ZodOptional<z.ZodUnknown>;
|
|
307
|
-
}, z.core.$strip>>;
|
|
308
|
-
pages: z.ZodArray<z.ZodObject<{
|
|
309
|
-
documentId: z.ZodOptional<z.ZodString>;
|
|
310
|
-
documentName: z.ZodOptional<z.ZodString>;
|
|
311
|
-
passages: z.ZodArray<z.ZodObject<{
|
|
312
|
-
passageId: z.ZodString;
|
|
313
|
-
text: z.ZodString;
|
|
314
|
-
pageNumber: z.ZodOptional<z.ZodNumber>;
|
|
315
|
-
displayPageNumber: z.ZodOptional<z.ZodString>;
|
|
316
|
-
}, z.core.$strip>>;
|
|
317
|
-
}, z.core.$strip>>;
|
|
318
|
-
}, z.core.$strip>>]>;
|
|
319
|
-
write: false;
|
|
320
|
-
summary: string;
|
|
321
|
-
};
|
|
322
253
|
'retrieval.vectorSearch': {
|
|
323
254
|
input: z.ZodObject<{
|
|
324
255
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -327,7 +258,7 @@ export declare const ANARA_METHODS: {
|
|
|
327
258
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
328
259
|
}, z.core.$strip>;
|
|
329
260
|
output: z.ZodArray<z.ZodObject<{
|
|
330
|
-
|
|
261
|
+
passageId: z.ZodString;
|
|
331
262
|
documentId: z.ZodString;
|
|
332
263
|
documentName: z.ZodOptional<z.ZodString>;
|
|
333
264
|
text: z.ZodString;
|
|
@@ -348,7 +279,7 @@ export declare const ANARA_METHODS: {
|
|
|
348
279
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
349
280
|
}, z.core.$strip>;
|
|
350
281
|
output: z.ZodArray<z.ZodObject<{
|
|
351
|
-
|
|
282
|
+
passageId: z.ZodString;
|
|
352
283
|
documentId: z.ZodString;
|
|
353
284
|
documentName: z.ZodOptional<z.ZodString>;
|
|
354
285
|
text: z.ZodString;
|
|
@@ -365,7 +296,7 @@ export declare const ANARA_METHODS: {
|
|
|
365
296
|
input: z.ZodObject<{
|
|
366
297
|
query: z.ZodString;
|
|
367
298
|
candidates: z.ZodArray<z.ZodObject<{
|
|
368
|
-
|
|
299
|
+
passageId: z.ZodString;
|
|
369
300
|
documentId: z.ZodString;
|
|
370
301
|
documentName: z.ZodOptional<z.ZodString>;
|
|
371
302
|
text: z.ZodString;
|
|
@@ -379,7 +310,7 @@ export declare const ANARA_METHODS: {
|
|
|
379
310
|
minRelevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
380
311
|
}, z.core.$strip>;
|
|
381
312
|
output: z.ZodArray<z.ZodObject<{
|
|
382
|
-
|
|
313
|
+
passageId: z.ZodString;
|
|
383
314
|
documentId: z.ZodString;
|
|
384
315
|
documentName: z.ZodOptional<z.ZodString>;
|
|
385
316
|
text: z.ZodString;
|
|
@@ -472,6 +403,23 @@ export declare const ANARA_METHODS: {
|
|
|
472
403
|
write: false;
|
|
473
404
|
summary: string;
|
|
474
405
|
};
|
|
406
|
+
reduce: {
|
|
407
|
+
input: z.ZodObject<{
|
|
408
|
+
input: z.ZodUnion<[z.ZodArray<z.ZodUnknown>, z.ZodString]>;
|
|
409
|
+
query: z.ZodString;
|
|
410
|
+
leafBudget: z.ZodOptional<z.ZodNumber>;
|
|
411
|
+
fanout: z.ZodOptional<z.ZodNumber>;
|
|
412
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
413
|
+
}, z.core.$strip>;
|
|
414
|
+
output: z.ZodObject<{
|
|
415
|
+
answer: z.ZodString;
|
|
416
|
+
depth: z.ZodNumber;
|
|
417
|
+
leafCalls: z.ZodNumber;
|
|
418
|
+
truncated: z.ZodBoolean;
|
|
419
|
+
}, z.core.$strip>;
|
|
420
|
+
write: false;
|
|
421
|
+
summary: string;
|
|
422
|
+
};
|
|
475
423
|
'documents.expandContext': {
|
|
476
424
|
input: z.ZodObject<{
|
|
477
425
|
documentId: z.ZodString;
|
|
@@ -545,10 +493,35 @@ export declare const ANARA_METHODS: {
|
|
|
545
493
|
write: false;
|
|
546
494
|
summary: string;
|
|
547
495
|
};
|
|
496
|
+
'documents.import': {
|
|
497
|
+
input: z.ZodObject<{
|
|
498
|
+
url: z.ZodString;
|
|
499
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
500
|
+
title: z.ZodOptional<z.ZodString>;
|
|
501
|
+
}, z.core.$strip>;
|
|
502
|
+
output: z.ZodObject<{
|
|
503
|
+
documentId: z.ZodString;
|
|
504
|
+
}, z.core.$strip>;
|
|
505
|
+
write: true;
|
|
506
|
+
summary: string;
|
|
507
|
+
};
|
|
508
|
+
'documents.upload': {
|
|
509
|
+
input: z.ZodObject<{
|
|
510
|
+
filename: z.ZodString;
|
|
511
|
+
contentBase64: z.ZodString;
|
|
512
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
output: z.ZodObject<{
|
|
515
|
+
documentId: z.ZodString;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
write: true;
|
|
518
|
+
summary: string;
|
|
519
|
+
};
|
|
548
520
|
'spreadsheets.query': {
|
|
549
521
|
input: z.ZodObject<{
|
|
550
522
|
documentId: z.ZodString;
|
|
551
523
|
sheet: z.ZodOptional<z.ZodString>;
|
|
524
|
+
range: z.ZodOptional<z.ZodString>;
|
|
552
525
|
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
553
526
|
column: z.ZodString;
|
|
554
527
|
op: z.ZodEnum<{
|
|
@@ -589,6 +562,31 @@ export declare const ANARA_METHODS: {
|
|
|
589
562
|
write: false;
|
|
590
563
|
summary: string;
|
|
591
564
|
};
|
|
565
|
+
'spreadsheets.export': {
|
|
566
|
+
input: z.ZodObject<{
|
|
567
|
+
documentId: z.ZodString;
|
|
568
|
+
sheet: z.ZodOptional<z.ZodString>;
|
|
569
|
+
format: z.ZodEnum<{
|
|
570
|
+
csv: "csv";
|
|
571
|
+
xlsx: "xlsx";
|
|
572
|
+
}>;
|
|
573
|
+
}, z.core.$strip>;
|
|
574
|
+
output: z.ZodUnion<readonly [z.ZodObject<{
|
|
575
|
+
filename: z.ZodString;
|
|
576
|
+
format: z.ZodLiteral<"csv">;
|
|
577
|
+
mimeType: z.ZodString;
|
|
578
|
+
csv: z.ZodString;
|
|
579
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
580
|
+
filename: z.ZodString;
|
|
581
|
+
format: z.ZodLiteral<"xlsx">;
|
|
582
|
+
mimeType: z.ZodString;
|
|
583
|
+
xlsxBase64: z.ZodString;
|
|
584
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
585
|
+
error: z.ZodString;
|
|
586
|
+
}, z.core.$loose>]>;
|
|
587
|
+
write: false;
|
|
588
|
+
summary: string;
|
|
589
|
+
};
|
|
592
590
|
'spreadsheets.applyEdits': {
|
|
593
591
|
input: z.ZodObject<{
|
|
594
592
|
documentId: z.ZodString;
|
|
@@ -596,11 +594,13 @@ export declare const ANARA_METHODS: {
|
|
|
596
594
|
edits: z.ZodArray<z.ZodObject<{
|
|
597
595
|
op: z.ZodEnum<{
|
|
598
596
|
appendRows: "appendRows";
|
|
597
|
+
createSheet: "createSheet";
|
|
599
598
|
deleteRows: "deleteRows";
|
|
600
599
|
insertRows: "insertRows";
|
|
601
600
|
setCells: "setCells";
|
|
602
601
|
setHeader: "setHeader";
|
|
603
602
|
}>;
|
|
603
|
+
name: z.ZodOptional<z.ZodString>;
|
|
604
604
|
cells: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
605
605
|
cell: z.ZodString;
|
|
606
606
|
value: z.ZodString;
|
|
@@ -703,8 +703,193 @@ export declare const ANARA_METHODS: {
|
|
|
703
703
|
write: false;
|
|
704
704
|
summary: string;
|
|
705
705
|
};
|
|
706
|
+
'sandbox.create': {
|
|
707
|
+
input: z.ZodObject<{
|
|
708
|
+
sandboxId: z.ZodString;
|
|
709
|
+
largeDisk: z.ZodOptional<z.ZodBoolean>;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
output: z.ZodObject<{
|
|
712
|
+
sandboxId: z.ZodString;
|
|
713
|
+
state: z.ZodString;
|
|
714
|
+
resumed: z.ZodBoolean;
|
|
715
|
+
}, z.core.$strip>;
|
|
716
|
+
write: false;
|
|
717
|
+
scope: "anara:sandbox";
|
|
718
|
+
summary: string;
|
|
719
|
+
};
|
|
720
|
+
'sandbox.runShell': {
|
|
721
|
+
input: z.ZodObject<{
|
|
722
|
+
sandboxId: z.ZodString;
|
|
723
|
+
command: z.ZodString;
|
|
724
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
725
|
+
timeoutSec: z.ZodOptional<z.ZodNumber>;
|
|
726
|
+
attachFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
727
|
+
}, z.core.$strip>;
|
|
728
|
+
output: z.ZodObject<{
|
|
729
|
+
stdout: z.ZodString;
|
|
730
|
+
stderr: z.ZodString;
|
|
731
|
+
exitCode: z.ZodNumber;
|
|
732
|
+
durationMs: z.ZodNumber;
|
|
733
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
734
|
+
name: z.ZodString;
|
|
735
|
+
url: z.ZodString;
|
|
736
|
+
mimeType: z.ZodString;
|
|
737
|
+
size: z.ZodNumber;
|
|
738
|
+
}, z.core.$strip>>>;
|
|
739
|
+
}, z.core.$strip>;
|
|
740
|
+
write: false;
|
|
741
|
+
scope: "anara:sandbox";
|
|
742
|
+
summary: string;
|
|
743
|
+
};
|
|
744
|
+
'sandbox.writeFile': {
|
|
745
|
+
input: z.ZodObject<{
|
|
746
|
+
sandboxId: z.ZodString;
|
|
747
|
+
path: z.ZodString;
|
|
748
|
+
content: z.ZodString;
|
|
749
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
750
|
+
append: "append";
|
|
751
|
+
overwrite: "overwrite";
|
|
752
|
+
}>>;
|
|
753
|
+
}, z.core.$strip>;
|
|
754
|
+
output: z.ZodObject<{
|
|
755
|
+
path: z.ZodString;
|
|
756
|
+
sizeBytes: z.ZodNumber;
|
|
757
|
+
mode: z.ZodEnum<{
|
|
758
|
+
append: "append";
|
|
759
|
+
overwrite: "overwrite";
|
|
760
|
+
}>;
|
|
761
|
+
}, z.core.$strip>;
|
|
762
|
+
write: false;
|
|
763
|
+
scope: "anara:sandbox";
|
|
764
|
+
summary: string;
|
|
765
|
+
};
|
|
766
|
+
'sandbox.editFile': {
|
|
767
|
+
input: z.ZodObject<{
|
|
768
|
+
sandboxId: z.ZodString;
|
|
769
|
+
path: z.ZodString;
|
|
770
|
+
edits: z.ZodArray<z.ZodObject<{
|
|
771
|
+
old: z.ZodString;
|
|
772
|
+
new: z.ZodString;
|
|
773
|
+
}, z.core.$strip>>;
|
|
774
|
+
}, z.core.$strip>;
|
|
775
|
+
output: z.ZodObject<{
|
|
776
|
+
path: z.ZodString;
|
|
777
|
+
edits_applied: z.ZodNumber;
|
|
778
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
779
|
+
error: z.ZodOptional<z.ZodString>;
|
|
780
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
781
|
+
}, z.core.$strip>;
|
|
782
|
+
write: false;
|
|
783
|
+
scope: "anara:sandbox";
|
|
784
|
+
summary: string;
|
|
785
|
+
};
|
|
786
|
+
'sandbox.readFile': {
|
|
787
|
+
input: z.ZodObject<{
|
|
788
|
+
sandboxId: z.ZodString;
|
|
789
|
+
path: z.ZodString;
|
|
790
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
791
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
792
|
+
base64: "base64";
|
|
793
|
+
utf8: "utf8";
|
|
794
|
+
}>>;
|
|
795
|
+
}, z.core.$strip>;
|
|
796
|
+
output: z.ZodObject<{
|
|
797
|
+
path: z.ZodString;
|
|
798
|
+
content: z.ZodString;
|
|
799
|
+
sizeBytes: z.ZodNumber;
|
|
800
|
+
truncated: z.ZodBoolean;
|
|
801
|
+
mimeType: z.ZodString;
|
|
802
|
+
encoding: z.ZodEnum<{
|
|
803
|
+
base64: "base64";
|
|
804
|
+
utf8: "utf8";
|
|
805
|
+
}>;
|
|
806
|
+
error: z.ZodOptional<z.ZodString>;
|
|
807
|
+
}, z.core.$strip>;
|
|
808
|
+
write: false;
|
|
809
|
+
scope: "anara:sandbox";
|
|
810
|
+
summary: string;
|
|
811
|
+
};
|
|
812
|
+
'sandbox.listDir': {
|
|
813
|
+
input: z.ZodObject<{
|
|
814
|
+
sandboxId: z.ZodString;
|
|
815
|
+
path: z.ZodString;
|
|
816
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
output: z.ZodObject<{
|
|
819
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
820
|
+
type: z.ZodEnum<{
|
|
821
|
+
dir: "dir";
|
|
822
|
+
file: "file";
|
|
823
|
+
other: "other";
|
|
824
|
+
}>;
|
|
825
|
+
sizeBytes: z.ZodNumber;
|
|
826
|
+
path: z.ZodString;
|
|
827
|
+
}, z.core.$strip>>;
|
|
828
|
+
truncated: z.ZodBoolean;
|
|
829
|
+
}, z.core.$strip>;
|
|
830
|
+
write: false;
|
|
831
|
+
scope: "anara:sandbox";
|
|
832
|
+
summary: string;
|
|
833
|
+
};
|
|
834
|
+
'sandbox.attachFiles': {
|
|
835
|
+
input: z.ZodObject<{
|
|
836
|
+
sandboxId: z.ZodString;
|
|
837
|
+
paths: z.ZodArray<z.ZodString>;
|
|
838
|
+
}, z.core.$strip>;
|
|
839
|
+
output: z.ZodObject<{
|
|
840
|
+
files: z.ZodArray<z.ZodObject<{
|
|
841
|
+
name: z.ZodString;
|
|
842
|
+
url: z.ZodString;
|
|
843
|
+
mimeType: z.ZodString;
|
|
844
|
+
size: z.ZodNumber;
|
|
845
|
+
}, z.core.$strip>>;
|
|
846
|
+
failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
847
|
+
path: z.ZodString;
|
|
848
|
+
reason: z.ZodString;
|
|
849
|
+
}, z.core.$strip>>>;
|
|
850
|
+
}, z.core.$strip>;
|
|
851
|
+
write: false;
|
|
852
|
+
scope: "anara:sandbox";
|
|
853
|
+
summary: string;
|
|
854
|
+
};
|
|
855
|
+
'sandbox.fetchDocument': {
|
|
856
|
+
input: z.ZodObject<{
|
|
857
|
+
sandboxId: z.ZodString;
|
|
858
|
+
documentId: z.ZodString;
|
|
859
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
860
|
+
}, z.core.$strip>;
|
|
861
|
+
output: z.ZodObject<{
|
|
862
|
+
documentId: z.ZodString;
|
|
863
|
+
documentName: z.ZodOptional<z.ZodString>;
|
|
864
|
+
path: z.ZodOptional<z.ZodString>;
|
|
865
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
866
|
+
bytes: z.ZodNumber;
|
|
867
|
+
cached: z.ZodBoolean;
|
|
868
|
+
pagesWritten: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
869
|
+
totalPages: z.ZodOptional<z.ZodNumber>;
|
|
870
|
+
error: z.ZodOptional<z.ZodString>;
|
|
871
|
+
}, z.core.$strip>;
|
|
872
|
+
write: false;
|
|
873
|
+
scope: "anara:sandbox";
|
|
874
|
+
extraScopes: "anara:read"[];
|
|
875
|
+
summary: string;
|
|
876
|
+
};
|
|
877
|
+
'sandbox.stop': {
|
|
878
|
+
input: z.ZodObject<{
|
|
879
|
+
sandboxId: z.ZodString;
|
|
880
|
+
}, z.core.$strip>;
|
|
881
|
+
output: z.ZodObject<{
|
|
882
|
+
ok: z.ZodLiteral<true>;
|
|
883
|
+
}, z.core.$strip>;
|
|
884
|
+
write: false;
|
|
885
|
+
scope: "anara:sandbox";
|
|
886
|
+
summary: string;
|
|
887
|
+
};
|
|
706
888
|
};
|
|
707
889
|
export type AnaraMethodName = keyof typeof ANARA_METHODS;
|
|
708
890
|
export declare const WRITE_METHODS: ReadonlySet<string>;
|
|
891
|
+
export declare const SANDBOX_METHODS: ReadonlySet<string>;
|
|
892
|
+
export declare function scopeForMethod(name: AnaraMethodName): string;
|
|
893
|
+
export declare function scopesForMethod(name: AnaraMethodName): string[];
|
|
709
894
|
export declare function isAnaraMethod(name: string): name is AnaraMethodName;
|
|
710
895
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;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