@anaralabs/sdk 0.2.0 → 0.4.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 +16 -12
- package/dist/agent-guide.d.ts +1 -1
- package/dist/agent-guide.d.ts.map +1 -1
- package/dist/agent-guide.js +12 -9
- package/dist/agent-guide.js.map +1 -1
- package/dist/client.d.ts +57 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +125 -19
- 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 +263 -141
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +283 -93
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +52 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
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;
|
|
@@ -410,68 +341,6 @@ export declare const ANARA_METHODS: {
|
|
|
410
341
|
write: false;
|
|
411
342
|
summary: string;
|
|
412
343
|
};
|
|
413
|
-
'store.put': {
|
|
414
|
-
input: z.ZodObject<{
|
|
415
|
-
value: z.ZodUnknown;
|
|
416
|
-
}, z.core.$strip>;
|
|
417
|
-
output: z.ZodObject<{
|
|
418
|
-
handle: z.ZodString;
|
|
419
|
-
bytes: z.ZodNumber;
|
|
420
|
-
preview: z.ZodString;
|
|
421
|
-
}, z.core.$strip>;
|
|
422
|
-
write: true;
|
|
423
|
-
summary: string;
|
|
424
|
-
};
|
|
425
|
-
'store.get': {
|
|
426
|
-
input: z.ZodObject<{
|
|
427
|
-
handle: z.ZodString;
|
|
428
|
-
}, z.core.$strip>;
|
|
429
|
-
output: z.ZodUnknown;
|
|
430
|
-
write: false;
|
|
431
|
-
summary: string;
|
|
432
|
-
};
|
|
433
|
-
map: {
|
|
434
|
-
input: z.ZodObject<{
|
|
435
|
-
items: z.ZodUnion<[z.ZodArray<z.ZodUnknown>, z.ZodString]>;
|
|
436
|
-
instruction: z.ZodString;
|
|
437
|
-
maxSlices: z.ZodOptional<z.ZodNumber>;
|
|
438
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
439
|
-
maxCharsPerSlice: z.ZodOptional<z.ZodNumber>;
|
|
440
|
-
}, z.core.$strip>;
|
|
441
|
-
output: z.ZodArray<z.ZodObject<{
|
|
442
|
-
i: z.ZodNumber;
|
|
443
|
-
result: z.ZodString;
|
|
444
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
-
}, z.core.$strip>>;
|
|
446
|
-
write: false;
|
|
447
|
-
summary: string;
|
|
448
|
-
};
|
|
449
|
-
ask: {
|
|
450
|
-
input: z.ZodObject<{
|
|
451
|
-
prompt: z.ZodString;
|
|
452
|
-
instruction: z.ZodOptional<z.ZodString>;
|
|
453
|
-
}, z.core.$strip>;
|
|
454
|
-
output: z.ZodString;
|
|
455
|
-
write: false;
|
|
456
|
-
summary: string;
|
|
457
|
-
};
|
|
458
|
-
askMany: {
|
|
459
|
-
input: z.ZodObject<{
|
|
460
|
-
tasks: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
461
|
-
prompt: z.ZodString;
|
|
462
|
-
instruction: z.ZodOptional<z.ZodString>;
|
|
463
|
-
}, z.core.$strip>]>>;
|
|
464
|
-
instruction: z.ZodOptional<z.ZodString>;
|
|
465
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
466
|
-
}, z.core.$strip>;
|
|
467
|
-
output: z.ZodArray<z.ZodObject<{
|
|
468
|
-
i: z.ZodNumber;
|
|
469
|
-
result: z.ZodString;
|
|
470
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
-
}, z.core.$strip>>;
|
|
472
|
-
write: false;
|
|
473
|
-
summary: string;
|
|
474
|
-
};
|
|
475
344
|
'documents.expandContext': {
|
|
476
345
|
input: z.ZodObject<{
|
|
477
346
|
documentId: z.ZodString;
|
|
@@ -545,10 +414,51 @@ export declare const ANARA_METHODS: {
|
|
|
545
414
|
write: false;
|
|
546
415
|
summary: string;
|
|
547
416
|
};
|
|
417
|
+
'documents.import': {
|
|
418
|
+
input: z.ZodObject<{
|
|
419
|
+
url: z.ZodString;
|
|
420
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
421
|
+
title: z.ZodOptional<z.ZodString>;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
output: z.ZodObject<{
|
|
424
|
+
documentId: z.ZodString;
|
|
425
|
+
}, z.core.$strip>;
|
|
426
|
+
write: true;
|
|
427
|
+
summary: string;
|
|
428
|
+
};
|
|
429
|
+
'documents.upload': {
|
|
430
|
+
input: z.ZodObject<{
|
|
431
|
+
filename: z.ZodString;
|
|
432
|
+
contentBase64: z.ZodString;
|
|
433
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
434
|
+
}, z.core.$strip>;
|
|
435
|
+
output: z.ZodObject<{
|
|
436
|
+
documentId: z.ZodString;
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
write: true;
|
|
439
|
+
summary: string;
|
|
440
|
+
};
|
|
441
|
+
'documents.createUpload': {
|
|
442
|
+
input: z.ZodObject<{
|
|
443
|
+
filename: z.ZodString;
|
|
444
|
+
contentLength: z.ZodNumber;
|
|
445
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
output: z.ZodObject<{
|
|
448
|
+
documentId: z.ZodString;
|
|
449
|
+
uploadUrl: z.ZodString;
|
|
450
|
+
fallbackUrl: z.ZodOptional<z.ZodString>;
|
|
451
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
452
|
+
expiresInSeconds: z.ZodNumber;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
write: true;
|
|
455
|
+
summary: string;
|
|
456
|
+
};
|
|
548
457
|
'spreadsheets.query': {
|
|
549
458
|
input: z.ZodObject<{
|
|
550
459
|
documentId: z.ZodString;
|
|
551
460
|
sheet: z.ZodOptional<z.ZodString>;
|
|
461
|
+
range: z.ZodOptional<z.ZodString>;
|
|
552
462
|
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
553
463
|
column: z.ZodString;
|
|
554
464
|
op: z.ZodEnum<{
|
|
@@ -589,6 +499,31 @@ export declare const ANARA_METHODS: {
|
|
|
589
499
|
write: false;
|
|
590
500
|
summary: string;
|
|
591
501
|
};
|
|
502
|
+
'spreadsheets.export': {
|
|
503
|
+
input: z.ZodObject<{
|
|
504
|
+
documentId: z.ZodString;
|
|
505
|
+
sheet: z.ZodOptional<z.ZodString>;
|
|
506
|
+
format: z.ZodEnum<{
|
|
507
|
+
csv: "csv";
|
|
508
|
+
xlsx: "xlsx";
|
|
509
|
+
}>;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
output: z.ZodUnion<readonly [z.ZodObject<{
|
|
512
|
+
filename: z.ZodString;
|
|
513
|
+
format: z.ZodLiteral<"csv">;
|
|
514
|
+
mimeType: z.ZodString;
|
|
515
|
+
csv: z.ZodString;
|
|
516
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
517
|
+
filename: z.ZodString;
|
|
518
|
+
format: z.ZodLiteral<"xlsx">;
|
|
519
|
+
mimeType: z.ZodString;
|
|
520
|
+
xlsxBase64: z.ZodString;
|
|
521
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
522
|
+
error: z.ZodString;
|
|
523
|
+
}, z.core.$loose>]>;
|
|
524
|
+
write: false;
|
|
525
|
+
summary: string;
|
|
526
|
+
};
|
|
592
527
|
'spreadsheets.applyEdits': {
|
|
593
528
|
input: z.ZodObject<{
|
|
594
529
|
documentId: z.ZodString;
|
|
@@ -596,11 +531,13 @@ export declare const ANARA_METHODS: {
|
|
|
596
531
|
edits: z.ZodArray<z.ZodObject<{
|
|
597
532
|
op: z.ZodEnum<{
|
|
598
533
|
appendRows: "appendRows";
|
|
534
|
+
createSheet: "createSheet";
|
|
599
535
|
deleteRows: "deleteRows";
|
|
600
536
|
insertRows: "insertRows";
|
|
601
537
|
setCells: "setCells";
|
|
602
538
|
setHeader: "setHeader";
|
|
603
539
|
}>;
|
|
540
|
+
name: z.ZodOptional<z.ZodString>;
|
|
604
541
|
cells: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
605
542
|
cell: z.ZodString;
|
|
606
543
|
value: z.ZodString;
|
|
@@ -703,8 +640,193 @@ export declare const ANARA_METHODS: {
|
|
|
703
640
|
write: false;
|
|
704
641
|
summary: string;
|
|
705
642
|
};
|
|
643
|
+
'sandbox.create': {
|
|
644
|
+
input: z.ZodObject<{
|
|
645
|
+
sandboxId: z.ZodString;
|
|
646
|
+
largeDisk: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
+
}, z.core.$strip>;
|
|
648
|
+
output: z.ZodObject<{
|
|
649
|
+
sandboxId: z.ZodString;
|
|
650
|
+
state: z.ZodString;
|
|
651
|
+
resumed: z.ZodBoolean;
|
|
652
|
+
}, z.core.$strip>;
|
|
653
|
+
write: false;
|
|
654
|
+
scope: "anara:sandbox";
|
|
655
|
+
summary: string;
|
|
656
|
+
};
|
|
657
|
+
'sandbox.runShell': {
|
|
658
|
+
input: z.ZodObject<{
|
|
659
|
+
sandboxId: z.ZodString;
|
|
660
|
+
command: z.ZodString;
|
|
661
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
662
|
+
timeoutSec: z.ZodOptional<z.ZodNumber>;
|
|
663
|
+
attachFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
664
|
+
}, z.core.$strip>;
|
|
665
|
+
output: z.ZodObject<{
|
|
666
|
+
stdout: z.ZodString;
|
|
667
|
+
stderr: z.ZodString;
|
|
668
|
+
exitCode: z.ZodNumber;
|
|
669
|
+
durationMs: z.ZodNumber;
|
|
670
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
671
|
+
name: z.ZodString;
|
|
672
|
+
url: z.ZodString;
|
|
673
|
+
mimeType: z.ZodString;
|
|
674
|
+
size: z.ZodNumber;
|
|
675
|
+
}, z.core.$strip>>>;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
write: false;
|
|
678
|
+
scope: "anara:sandbox";
|
|
679
|
+
summary: string;
|
|
680
|
+
};
|
|
681
|
+
'sandbox.writeFile': {
|
|
682
|
+
input: z.ZodObject<{
|
|
683
|
+
sandboxId: z.ZodString;
|
|
684
|
+
path: z.ZodString;
|
|
685
|
+
content: z.ZodString;
|
|
686
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
687
|
+
append: "append";
|
|
688
|
+
overwrite: "overwrite";
|
|
689
|
+
}>>;
|
|
690
|
+
}, z.core.$strip>;
|
|
691
|
+
output: z.ZodObject<{
|
|
692
|
+
path: z.ZodString;
|
|
693
|
+
sizeBytes: z.ZodNumber;
|
|
694
|
+
mode: z.ZodEnum<{
|
|
695
|
+
append: "append";
|
|
696
|
+
overwrite: "overwrite";
|
|
697
|
+
}>;
|
|
698
|
+
}, z.core.$strip>;
|
|
699
|
+
write: false;
|
|
700
|
+
scope: "anara:sandbox";
|
|
701
|
+
summary: string;
|
|
702
|
+
};
|
|
703
|
+
'sandbox.editFile': {
|
|
704
|
+
input: z.ZodObject<{
|
|
705
|
+
sandboxId: z.ZodString;
|
|
706
|
+
path: z.ZodString;
|
|
707
|
+
edits: z.ZodArray<z.ZodObject<{
|
|
708
|
+
old: z.ZodString;
|
|
709
|
+
new: z.ZodString;
|
|
710
|
+
}, z.core.$strip>>;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
output: z.ZodObject<{
|
|
713
|
+
path: z.ZodString;
|
|
714
|
+
edits_applied: z.ZodNumber;
|
|
715
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
716
|
+
error: z.ZodOptional<z.ZodString>;
|
|
717
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
718
|
+
}, z.core.$strip>;
|
|
719
|
+
write: false;
|
|
720
|
+
scope: "anara:sandbox";
|
|
721
|
+
summary: string;
|
|
722
|
+
};
|
|
723
|
+
'sandbox.readFile': {
|
|
724
|
+
input: z.ZodObject<{
|
|
725
|
+
sandboxId: z.ZodString;
|
|
726
|
+
path: z.ZodString;
|
|
727
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
728
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
729
|
+
base64: "base64";
|
|
730
|
+
utf8: "utf8";
|
|
731
|
+
}>>;
|
|
732
|
+
}, z.core.$strip>;
|
|
733
|
+
output: z.ZodObject<{
|
|
734
|
+
path: z.ZodString;
|
|
735
|
+
content: z.ZodString;
|
|
736
|
+
sizeBytes: z.ZodNumber;
|
|
737
|
+
truncated: z.ZodBoolean;
|
|
738
|
+
mimeType: z.ZodString;
|
|
739
|
+
encoding: z.ZodEnum<{
|
|
740
|
+
base64: "base64";
|
|
741
|
+
utf8: "utf8";
|
|
742
|
+
}>;
|
|
743
|
+
error: z.ZodOptional<z.ZodString>;
|
|
744
|
+
}, z.core.$strip>;
|
|
745
|
+
write: false;
|
|
746
|
+
scope: "anara:sandbox";
|
|
747
|
+
summary: string;
|
|
748
|
+
};
|
|
749
|
+
'sandbox.listDir': {
|
|
750
|
+
input: z.ZodObject<{
|
|
751
|
+
sandboxId: z.ZodString;
|
|
752
|
+
path: z.ZodString;
|
|
753
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
754
|
+
}, z.core.$strip>;
|
|
755
|
+
output: z.ZodObject<{
|
|
756
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
757
|
+
type: z.ZodEnum<{
|
|
758
|
+
dir: "dir";
|
|
759
|
+
file: "file";
|
|
760
|
+
other: "other";
|
|
761
|
+
}>;
|
|
762
|
+
sizeBytes: z.ZodNumber;
|
|
763
|
+
path: z.ZodString;
|
|
764
|
+
}, z.core.$strip>>;
|
|
765
|
+
truncated: z.ZodBoolean;
|
|
766
|
+
}, z.core.$strip>;
|
|
767
|
+
write: false;
|
|
768
|
+
scope: "anara:sandbox";
|
|
769
|
+
summary: string;
|
|
770
|
+
};
|
|
771
|
+
'sandbox.attachFiles': {
|
|
772
|
+
input: z.ZodObject<{
|
|
773
|
+
sandboxId: z.ZodString;
|
|
774
|
+
paths: z.ZodArray<z.ZodString>;
|
|
775
|
+
}, z.core.$strip>;
|
|
776
|
+
output: z.ZodObject<{
|
|
777
|
+
files: z.ZodArray<z.ZodObject<{
|
|
778
|
+
name: z.ZodString;
|
|
779
|
+
url: z.ZodString;
|
|
780
|
+
mimeType: z.ZodString;
|
|
781
|
+
size: z.ZodNumber;
|
|
782
|
+
}, z.core.$strip>>;
|
|
783
|
+
failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
784
|
+
path: z.ZodString;
|
|
785
|
+
reason: z.ZodString;
|
|
786
|
+
}, z.core.$strip>>>;
|
|
787
|
+
}, z.core.$strip>;
|
|
788
|
+
write: false;
|
|
789
|
+
scope: "anara:sandbox";
|
|
790
|
+
summary: string;
|
|
791
|
+
};
|
|
792
|
+
'sandbox.fetchDocument': {
|
|
793
|
+
input: z.ZodObject<{
|
|
794
|
+
sandboxId: z.ZodString;
|
|
795
|
+
documentId: z.ZodString;
|
|
796
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
797
|
+
}, z.core.$strip>;
|
|
798
|
+
output: z.ZodObject<{
|
|
799
|
+
documentId: z.ZodString;
|
|
800
|
+
documentName: z.ZodOptional<z.ZodString>;
|
|
801
|
+
path: z.ZodOptional<z.ZodString>;
|
|
802
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
803
|
+
bytes: z.ZodNumber;
|
|
804
|
+
cached: z.ZodBoolean;
|
|
805
|
+
pagesWritten: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
806
|
+
totalPages: z.ZodOptional<z.ZodNumber>;
|
|
807
|
+
error: z.ZodOptional<z.ZodString>;
|
|
808
|
+
}, z.core.$strip>;
|
|
809
|
+
write: false;
|
|
810
|
+
scope: "anara:sandbox";
|
|
811
|
+
extraScopes: "anara:read"[];
|
|
812
|
+
summary: string;
|
|
813
|
+
};
|
|
814
|
+
'sandbox.stop': {
|
|
815
|
+
input: z.ZodObject<{
|
|
816
|
+
sandboxId: z.ZodString;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
output: z.ZodObject<{
|
|
819
|
+
ok: z.ZodLiteral<true>;
|
|
820
|
+
}, z.core.$strip>;
|
|
821
|
+
write: false;
|
|
822
|
+
scope: "anara:sandbox";
|
|
823
|
+
summary: string;
|
|
824
|
+
};
|
|
706
825
|
};
|
|
707
826
|
export type AnaraMethodName = keyof typeof ANARA_METHODS;
|
|
708
827
|
export declare const WRITE_METHODS: ReadonlySet<string>;
|
|
828
|
+
export declare const SANDBOX_METHODS: ReadonlySet<string>;
|
|
829
|
+
export declare function scopeForMethod(name: AnaraMethodName): string;
|
|
830
|
+
export declare function scopesForMethod(name: AnaraMethodName): string[];
|
|
709
831
|
export declare function isAnaraMethod(name: string): name is AnaraMethodName;
|
|
710
832
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;iBAYzB,CAAC;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;iBAYzB,CAAC;AAgYH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AAEH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,CAAC,CAAC,UAAU,CAAC;IACpB,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAGhB,KAAK,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,eAAe,CAAC;IAGvD,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,aAAa,GAAG,eAAe,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoSY,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,CAI7C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,CAI/C,CAAC;AAEF,wBAAgB,cAAc,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAG5D;AAID,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,EAAE,CAM/D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,eAAe,CAEnE"}
|