@epcc-sdk/sdks-files 0.3.0 → 0.4.1

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.
@@ -0,0 +1,967 @@
1
+ import * as _modelcontextprotocol_sdk_shared_protocol from '@modelcontextprotocol/sdk/shared/protocol';
2
+ import * as _modelcontextprotocol_sdk_types from '@modelcontextprotocol/sdk/types';
3
+ import * as z from 'zod';
4
+ import { C as Client } from '../types.gen-mB6gWg8u.cjs';
5
+ import { Tool } from './mcp-support.gen.cjs';
6
+ import './core/auth.gen.cjs';
7
+ import './core/serverSentEvents.gen.cjs';
8
+ import './core/types.gen.cjs';
9
+ import './core/bodySerializer.gen.cjs';
10
+ import './core/pathSerializer.gen.cjs';
11
+ import '@modelcontextprotocol/sdk/server/mcp.js';
12
+ import '@modelcontextprotocol/sdk/server/zod-compat.js';
13
+ import '@modelcontextprotocol/sdk/types.js';
14
+
15
+ type ToolOptions = {
16
+ client?: Client;
17
+ };
18
+ /**
19
+ * Get all Files
20
+ *
21
+ * Retrieves all files.
22
+ *
23
+ * ### Filtering
24
+ *
25
+ * For general filtering syntax, see [Filtering](/guides/Getting-Started/filtering).
26
+ *
27
+ * The following operators and attributes are available when filtering on this endpoint.
28
+ *
29
+ * | Attribute | Type | Operators | Example |
30
+ * |:----------------------|:----------|:--------------------------|:-------------|
31
+ * | `id` | `string` | `in` | `in(id,file-id-1,file-id-2,file-id-3)` |
32
+ * | `file_name` | `string` | `eq` / `like` | `eq(file_name, my_image.jpg)` |
33
+ * | `width` | `integer` | `gt` / `ge` / `lt` / `le` | `gt(width,200)` |
34
+ * | `height` | `integer` | `gt` / `ge` / `lt` / `le` | `lt(height,500)` |
35
+ * | `file_size` | `integer` | `gt` / `ge` / `lt` / `le` | `le(file_size,20953)` |
36
+ *
37
+ * #### Bulk File Retrieval
38
+ *
39
+ * To retrieve multiple files by their IDs in a single request, use the `in` operator with a comma-separated list of file IDs:
40
+ *
41
+ * ```
42
+ * GET /v2/files?filter=in(id,06b881bd-f152-4c36-8658-7132a8fab49c,ec73567b-04e8-4000-a11a-7e1407cc2f21)
43
+ * ```
44
+ *
45
+ * This is more efficient than making separate requests for each file and is recommended for bulk operations.
46
+ *
47
+ * **Note on invalid IDs**: If any IDs in the filter are missing, malformed, or do not exist in the store, they will be silently ignored. The response will only include files that were successfully found. For example, if you request 5 IDs but only 3 exist, the response will contain 3 files with `total: 3` in the metadata.
48
+ *
49
+ */
50
+ declare const getAllFilesTool: (options?: ToolOptions) => {
51
+ name: "files_get_all_files";
52
+ config: {
53
+ title: string;
54
+ description: string;
55
+ inputSchema: z.ZodObject<{
56
+ query: z.ZodOptional<z.ZodObject<{
57
+ filter: z.ZodOptional<z.ZodString>;
58
+ "page[limit]": z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
59
+ "page[offset]": z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
60
+ }, z.core.$strict>>;
61
+ }, z.core.$strict>;
62
+ annotations: {
63
+ readOnlyHint: boolean;
64
+ destructiveHint: boolean;
65
+ idempotentHint: boolean;
66
+ openWorldHint: boolean;
67
+ };
68
+ _meta: {
69
+ "com.elasticpath/operation": {
70
+ id: string;
71
+ method: string;
72
+ path: string;
73
+ risk: "read";
74
+ };
75
+ };
76
+ };
77
+ handler: (args: {
78
+ query?: {
79
+ filter?: string | undefined;
80
+ "page[limit]"?: number | undefined;
81
+ "page[offset]"?: number | undefined;
82
+ } | undefined;
83
+ }, extra: _modelcontextprotocol_sdk_shared_protocol.RequestHandlerExtra<_modelcontextprotocol_sdk_types.ServerRequest, _modelcontextprotocol_sdk_types.ServerNotification>) => {
84
+ [x: string]: unknown;
85
+ content: ({
86
+ type: "text";
87
+ text: string;
88
+ annotations?: {
89
+ audience?: ("user" | "assistant")[] | undefined;
90
+ priority?: number | undefined;
91
+ lastModified?: string | undefined;
92
+ } | undefined;
93
+ _meta?: {
94
+ [x: string]: unknown;
95
+ } | undefined;
96
+ } | {
97
+ type: "image";
98
+ data: string;
99
+ mimeType: string;
100
+ annotations?: {
101
+ audience?: ("user" | "assistant")[] | undefined;
102
+ priority?: number | undefined;
103
+ lastModified?: string | undefined;
104
+ } | undefined;
105
+ _meta?: {
106
+ [x: string]: unknown;
107
+ } | undefined;
108
+ } | {
109
+ type: "audio";
110
+ data: string;
111
+ mimeType: string;
112
+ annotations?: {
113
+ audience?: ("user" | "assistant")[] | undefined;
114
+ priority?: number | undefined;
115
+ lastModified?: string | undefined;
116
+ } | undefined;
117
+ _meta?: {
118
+ [x: string]: unknown;
119
+ } | undefined;
120
+ } | {
121
+ uri: string;
122
+ name: string;
123
+ type: "resource_link";
124
+ description?: string | undefined;
125
+ mimeType?: string | undefined;
126
+ size?: number | undefined;
127
+ annotations?: {
128
+ audience?: ("user" | "assistant")[] | undefined;
129
+ priority?: number | undefined;
130
+ lastModified?: string | undefined;
131
+ } | undefined;
132
+ _meta?: {
133
+ [x: string]: unknown;
134
+ } | undefined;
135
+ icons?: {
136
+ src: string;
137
+ mimeType?: string | undefined;
138
+ sizes?: string[] | undefined;
139
+ theme?: "light" | "dark" | undefined;
140
+ }[] | undefined;
141
+ title?: string | undefined;
142
+ } | {
143
+ type: "resource";
144
+ resource: {
145
+ uri: string;
146
+ text: string;
147
+ mimeType?: string | undefined;
148
+ _meta?: {
149
+ [x: string]: unknown;
150
+ } | undefined;
151
+ } | {
152
+ uri: string;
153
+ blob: string;
154
+ mimeType?: string | undefined;
155
+ _meta?: {
156
+ [x: string]: unknown;
157
+ } | undefined;
158
+ };
159
+ annotations?: {
160
+ audience?: ("user" | "assistant")[] | undefined;
161
+ priority?: number | undefined;
162
+ lastModified?: string | undefined;
163
+ } | undefined;
164
+ _meta?: {
165
+ [x: string]: unknown;
166
+ } | undefined;
167
+ })[];
168
+ _meta?: {
169
+ [x: string]: unknown;
170
+ progressToken?: string | number | undefined;
171
+ "io.modelcontextprotocol/related-task"?: {
172
+ taskId: string;
173
+ } | undefined;
174
+ } | undefined;
175
+ structuredContent?: {
176
+ [x: string]: unknown;
177
+ } | undefined;
178
+ isError?: boolean | undefined;
179
+ } | Promise<{
180
+ [x: string]: unknown;
181
+ content: ({
182
+ type: "text";
183
+ text: string;
184
+ annotations?: {
185
+ audience?: ("user" | "assistant")[] | undefined;
186
+ priority?: number | undefined;
187
+ lastModified?: string | undefined;
188
+ } | undefined;
189
+ _meta?: {
190
+ [x: string]: unknown;
191
+ } | undefined;
192
+ } | {
193
+ type: "image";
194
+ data: string;
195
+ mimeType: string;
196
+ annotations?: {
197
+ audience?: ("user" | "assistant")[] | undefined;
198
+ priority?: number | undefined;
199
+ lastModified?: string | undefined;
200
+ } | undefined;
201
+ _meta?: {
202
+ [x: string]: unknown;
203
+ } | undefined;
204
+ } | {
205
+ type: "audio";
206
+ data: string;
207
+ mimeType: string;
208
+ annotations?: {
209
+ audience?: ("user" | "assistant")[] | undefined;
210
+ priority?: number | undefined;
211
+ lastModified?: string | undefined;
212
+ } | undefined;
213
+ _meta?: {
214
+ [x: string]: unknown;
215
+ } | undefined;
216
+ } | {
217
+ uri: string;
218
+ name: string;
219
+ type: "resource_link";
220
+ description?: string | undefined;
221
+ mimeType?: string | undefined;
222
+ size?: number | undefined;
223
+ annotations?: {
224
+ audience?: ("user" | "assistant")[] | undefined;
225
+ priority?: number | undefined;
226
+ lastModified?: string | undefined;
227
+ } | undefined;
228
+ _meta?: {
229
+ [x: string]: unknown;
230
+ } | undefined;
231
+ icons?: {
232
+ src: string;
233
+ mimeType?: string | undefined;
234
+ sizes?: string[] | undefined;
235
+ theme?: "light" | "dark" | undefined;
236
+ }[] | undefined;
237
+ title?: string | undefined;
238
+ } | {
239
+ type: "resource";
240
+ resource: {
241
+ uri: string;
242
+ text: string;
243
+ mimeType?: string | undefined;
244
+ _meta?: {
245
+ [x: string]: unknown;
246
+ } | undefined;
247
+ } | {
248
+ uri: string;
249
+ blob: string;
250
+ mimeType?: string | undefined;
251
+ _meta?: {
252
+ [x: string]: unknown;
253
+ } | undefined;
254
+ };
255
+ annotations?: {
256
+ audience?: ("user" | "assistant")[] | undefined;
257
+ priority?: number | undefined;
258
+ lastModified?: string | undefined;
259
+ } | undefined;
260
+ _meta?: {
261
+ [x: string]: unknown;
262
+ } | undefined;
263
+ })[];
264
+ _meta?: {
265
+ [x: string]: unknown;
266
+ progressToken?: string | number | undefined;
267
+ "io.modelcontextprotocol/related-task"?: {
268
+ taskId: string;
269
+ } | undefined;
270
+ } | undefined;
271
+ structuredContent?: {
272
+ [x: string]: unknown;
273
+ } | undefined;
274
+ isError?: boolean | undefined;
275
+ }>;
276
+ };
277
+ /**
278
+ * Create a File
279
+ *
280
+ * Create a File
281
+ */
282
+ declare const createAFileTool: (options?: ToolOptions) => {
283
+ name: "files_create_a_file";
284
+ config: {
285
+ title: string;
286
+ description: string;
287
+ inputSchema: z.ZodObject<{
288
+ body: z.ZodObject<{
289
+ file: z.ZodOptional<z.ZodString>;
290
+ file_location: z.ZodOptional<z.ZodString>;
291
+ file_name: z.ZodOptional<z.ZodString>;
292
+ }, z.core.$strip>;
293
+ }, z.core.$strict>;
294
+ annotations: {
295
+ readOnlyHint: boolean;
296
+ destructiveHint: boolean;
297
+ idempotentHint: boolean;
298
+ openWorldHint: boolean;
299
+ };
300
+ _meta: {
301
+ "com.elasticpath/operation": {
302
+ id: string;
303
+ method: string;
304
+ path: string;
305
+ risk: "create";
306
+ };
307
+ };
308
+ };
309
+ handler: (args: {
310
+ body: {
311
+ file?: string | undefined;
312
+ file_location?: string | undefined;
313
+ file_name?: string | undefined;
314
+ };
315
+ }, extra: _modelcontextprotocol_sdk_shared_protocol.RequestHandlerExtra<_modelcontextprotocol_sdk_types.ServerRequest, _modelcontextprotocol_sdk_types.ServerNotification>) => {
316
+ [x: string]: unknown;
317
+ content: ({
318
+ type: "text";
319
+ text: string;
320
+ annotations?: {
321
+ audience?: ("user" | "assistant")[] | undefined;
322
+ priority?: number | undefined;
323
+ lastModified?: string | undefined;
324
+ } | undefined;
325
+ _meta?: {
326
+ [x: string]: unknown;
327
+ } | undefined;
328
+ } | {
329
+ type: "image";
330
+ data: string;
331
+ mimeType: string;
332
+ annotations?: {
333
+ audience?: ("user" | "assistant")[] | undefined;
334
+ priority?: number | undefined;
335
+ lastModified?: string | undefined;
336
+ } | undefined;
337
+ _meta?: {
338
+ [x: string]: unknown;
339
+ } | undefined;
340
+ } | {
341
+ type: "audio";
342
+ data: string;
343
+ mimeType: string;
344
+ annotations?: {
345
+ audience?: ("user" | "assistant")[] | undefined;
346
+ priority?: number | undefined;
347
+ lastModified?: string | undefined;
348
+ } | undefined;
349
+ _meta?: {
350
+ [x: string]: unknown;
351
+ } | undefined;
352
+ } | {
353
+ uri: string;
354
+ name: string;
355
+ type: "resource_link";
356
+ description?: string | undefined;
357
+ mimeType?: string | undefined;
358
+ size?: number | undefined;
359
+ annotations?: {
360
+ audience?: ("user" | "assistant")[] | undefined;
361
+ priority?: number | undefined;
362
+ lastModified?: string | undefined;
363
+ } | undefined;
364
+ _meta?: {
365
+ [x: string]: unknown;
366
+ } | undefined;
367
+ icons?: {
368
+ src: string;
369
+ mimeType?: string | undefined;
370
+ sizes?: string[] | undefined;
371
+ theme?: "light" | "dark" | undefined;
372
+ }[] | undefined;
373
+ title?: string | undefined;
374
+ } | {
375
+ type: "resource";
376
+ resource: {
377
+ uri: string;
378
+ text: string;
379
+ mimeType?: string | undefined;
380
+ _meta?: {
381
+ [x: string]: unknown;
382
+ } | undefined;
383
+ } | {
384
+ uri: string;
385
+ blob: string;
386
+ mimeType?: string | undefined;
387
+ _meta?: {
388
+ [x: string]: unknown;
389
+ } | undefined;
390
+ };
391
+ annotations?: {
392
+ audience?: ("user" | "assistant")[] | undefined;
393
+ priority?: number | undefined;
394
+ lastModified?: string | undefined;
395
+ } | undefined;
396
+ _meta?: {
397
+ [x: string]: unknown;
398
+ } | undefined;
399
+ })[];
400
+ _meta?: {
401
+ [x: string]: unknown;
402
+ progressToken?: string | number | undefined;
403
+ "io.modelcontextprotocol/related-task"?: {
404
+ taskId: string;
405
+ } | undefined;
406
+ } | undefined;
407
+ structuredContent?: {
408
+ [x: string]: unknown;
409
+ } | undefined;
410
+ isError?: boolean | undefined;
411
+ } | Promise<{
412
+ [x: string]: unknown;
413
+ content: ({
414
+ type: "text";
415
+ text: string;
416
+ annotations?: {
417
+ audience?: ("user" | "assistant")[] | undefined;
418
+ priority?: number | undefined;
419
+ lastModified?: string | undefined;
420
+ } | undefined;
421
+ _meta?: {
422
+ [x: string]: unknown;
423
+ } | undefined;
424
+ } | {
425
+ type: "image";
426
+ data: string;
427
+ mimeType: string;
428
+ annotations?: {
429
+ audience?: ("user" | "assistant")[] | undefined;
430
+ priority?: number | undefined;
431
+ lastModified?: string | undefined;
432
+ } | undefined;
433
+ _meta?: {
434
+ [x: string]: unknown;
435
+ } | undefined;
436
+ } | {
437
+ type: "audio";
438
+ data: string;
439
+ mimeType: string;
440
+ annotations?: {
441
+ audience?: ("user" | "assistant")[] | undefined;
442
+ priority?: number | undefined;
443
+ lastModified?: string | undefined;
444
+ } | undefined;
445
+ _meta?: {
446
+ [x: string]: unknown;
447
+ } | undefined;
448
+ } | {
449
+ uri: string;
450
+ name: string;
451
+ type: "resource_link";
452
+ description?: string | undefined;
453
+ mimeType?: string | undefined;
454
+ size?: number | undefined;
455
+ annotations?: {
456
+ audience?: ("user" | "assistant")[] | undefined;
457
+ priority?: number | undefined;
458
+ lastModified?: string | undefined;
459
+ } | undefined;
460
+ _meta?: {
461
+ [x: string]: unknown;
462
+ } | undefined;
463
+ icons?: {
464
+ src: string;
465
+ mimeType?: string | undefined;
466
+ sizes?: string[] | undefined;
467
+ theme?: "light" | "dark" | undefined;
468
+ }[] | undefined;
469
+ title?: string | undefined;
470
+ } | {
471
+ type: "resource";
472
+ resource: {
473
+ uri: string;
474
+ text: string;
475
+ mimeType?: string | undefined;
476
+ _meta?: {
477
+ [x: string]: unknown;
478
+ } | undefined;
479
+ } | {
480
+ uri: string;
481
+ blob: string;
482
+ mimeType?: string | undefined;
483
+ _meta?: {
484
+ [x: string]: unknown;
485
+ } | undefined;
486
+ };
487
+ annotations?: {
488
+ audience?: ("user" | "assistant")[] | undefined;
489
+ priority?: number | undefined;
490
+ lastModified?: string | undefined;
491
+ } | undefined;
492
+ _meta?: {
493
+ [x: string]: unknown;
494
+ } | undefined;
495
+ })[];
496
+ _meta?: {
497
+ [x: string]: unknown;
498
+ progressToken?: string | number | undefined;
499
+ "io.modelcontextprotocol/related-task"?: {
500
+ taskId: string;
501
+ } | undefined;
502
+ } | undefined;
503
+ structuredContent?: {
504
+ [x: string]: unknown;
505
+ } | undefined;
506
+ isError?: boolean | undefined;
507
+ }>;
508
+ };
509
+ /**
510
+ * Delete a File
511
+ *
512
+ * Delete a File
513
+ */
514
+ declare const deleteAFileTool: (options?: ToolOptions) => {
515
+ name: "files_delete_a_file";
516
+ config: {
517
+ title: string;
518
+ description: string;
519
+ inputSchema: z.ZodObject<{
520
+ path: z.ZodObject<{
521
+ fileID: z.ZodString;
522
+ }, z.core.$strict>;
523
+ }, z.core.$strict>;
524
+ annotations: {
525
+ readOnlyHint: boolean;
526
+ destructiveHint: boolean;
527
+ idempotentHint: boolean;
528
+ openWorldHint: boolean;
529
+ };
530
+ _meta: {
531
+ "com.elasticpath/operation": {
532
+ id: string;
533
+ method: string;
534
+ path: string;
535
+ risk: "delete";
536
+ };
537
+ };
538
+ };
539
+ handler: (args: {
540
+ path: {
541
+ fileID: string;
542
+ };
543
+ }, extra: _modelcontextprotocol_sdk_shared_protocol.RequestHandlerExtra<_modelcontextprotocol_sdk_types.ServerRequest, _modelcontextprotocol_sdk_types.ServerNotification>) => {
544
+ [x: string]: unknown;
545
+ content: ({
546
+ type: "text";
547
+ text: string;
548
+ annotations?: {
549
+ audience?: ("user" | "assistant")[] | undefined;
550
+ priority?: number | undefined;
551
+ lastModified?: string | undefined;
552
+ } | undefined;
553
+ _meta?: {
554
+ [x: string]: unknown;
555
+ } | undefined;
556
+ } | {
557
+ type: "image";
558
+ data: string;
559
+ mimeType: string;
560
+ annotations?: {
561
+ audience?: ("user" | "assistant")[] | undefined;
562
+ priority?: number | undefined;
563
+ lastModified?: string | undefined;
564
+ } | undefined;
565
+ _meta?: {
566
+ [x: string]: unknown;
567
+ } | undefined;
568
+ } | {
569
+ type: "audio";
570
+ data: string;
571
+ mimeType: string;
572
+ annotations?: {
573
+ audience?: ("user" | "assistant")[] | undefined;
574
+ priority?: number | undefined;
575
+ lastModified?: string | undefined;
576
+ } | undefined;
577
+ _meta?: {
578
+ [x: string]: unknown;
579
+ } | undefined;
580
+ } | {
581
+ uri: string;
582
+ name: string;
583
+ type: "resource_link";
584
+ description?: string | undefined;
585
+ mimeType?: string | undefined;
586
+ size?: number | undefined;
587
+ annotations?: {
588
+ audience?: ("user" | "assistant")[] | undefined;
589
+ priority?: number | undefined;
590
+ lastModified?: string | undefined;
591
+ } | undefined;
592
+ _meta?: {
593
+ [x: string]: unknown;
594
+ } | undefined;
595
+ icons?: {
596
+ src: string;
597
+ mimeType?: string | undefined;
598
+ sizes?: string[] | undefined;
599
+ theme?: "light" | "dark" | undefined;
600
+ }[] | undefined;
601
+ title?: string | undefined;
602
+ } | {
603
+ type: "resource";
604
+ resource: {
605
+ uri: string;
606
+ text: string;
607
+ mimeType?: string | undefined;
608
+ _meta?: {
609
+ [x: string]: unknown;
610
+ } | undefined;
611
+ } | {
612
+ uri: string;
613
+ blob: string;
614
+ mimeType?: string | undefined;
615
+ _meta?: {
616
+ [x: string]: unknown;
617
+ } | undefined;
618
+ };
619
+ annotations?: {
620
+ audience?: ("user" | "assistant")[] | undefined;
621
+ priority?: number | undefined;
622
+ lastModified?: string | undefined;
623
+ } | undefined;
624
+ _meta?: {
625
+ [x: string]: unknown;
626
+ } | undefined;
627
+ })[];
628
+ _meta?: {
629
+ [x: string]: unknown;
630
+ progressToken?: string | number | undefined;
631
+ "io.modelcontextprotocol/related-task"?: {
632
+ taskId: string;
633
+ } | undefined;
634
+ } | undefined;
635
+ structuredContent?: {
636
+ [x: string]: unknown;
637
+ } | undefined;
638
+ isError?: boolean | undefined;
639
+ } | Promise<{
640
+ [x: string]: unknown;
641
+ content: ({
642
+ type: "text";
643
+ text: string;
644
+ annotations?: {
645
+ audience?: ("user" | "assistant")[] | undefined;
646
+ priority?: number | undefined;
647
+ lastModified?: string | undefined;
648
+ } | undefined;
649
+ _meta?: {
650
+ [x: string]: unknown;
651
+ } | undefined;
652
+ } | {
653
+ type: "image";
654
+ data: string;
655
+ mimeType: string;
656
+ annotations?: {
657
+ audience?: ("user" | "assistant")[] | undefined;
658
+ priority?: number | undefined;
659
+ lastModified?: string | undefined;
660
+ } | undefined;
661
+ _meta?: {
662
+ [x: string]: unknown;
663
+ } | undefined;
664
+ } | {
665
+ type: "audio";
666
+ data: string;
667
+ mimeType: string;
668
+ annotations?: {
669
+ audience?: ("user" | "assistant")[] | undefined;
670
+ priority?: number | undefined;
671
+ lastModified?: string | undefined;
672
+ } | undefined;
673
+ _meta?: {
674
+ [x: string]: unknown;
675
+ } | undefined;
676
+ } | {
677
+ uri: string;
678
+ name: string;
679
+ type: "resource_link";
680
+ description?: string | undefined;
681
+ mimeType?: string | undefined;
682
+ size?: number | undefined;
683
+ annotations?: {
684
+ audience?: ("user" | "assistant")[] | undefined;
685
+ priority?: number | undefined;
686
+ lastModified?: string | undefined;
687
+ } | undefined;
688
+ _meta?: {
689
+ [x: string]: unknown;
690
+ } | undefined;
691
+ icons?: {
692
+ src: string;
693
+ mimeType?: string | undefined;
694
+ sizes?: string[] | undefined;
695
+ theme?: "light" | "dark" | undefined;
696
+ }[] | undefined;
697
+ title?: string | undefined;
698
+ } | {
699
+ type: "resource";
700
+ resource: {
701
+ uri: string;
702
+ text: string;
703
+ mimeType?: string | undefined;
704
+ _meta?: {
705
+ [x: string]: unknown;
706
+ } | undefined;
707
+ } | {
708
+ uri: string;
709
+ blob: string;
710
+ mimeType?: string | undefined;
711
+ _meta?: {
712
+ [x: string]: unknown;
713
+ } | undefined;
714
+ };
715
+ annotations?: {
716
+ audience?: ("user" | "assistant")[] | undefined;
717
+ priority?: number | undefined;
718
+ lastModified?: string | undefined;
719
+ } | undefined;
720
+ _meta?: {
721
+ [x: string]: unknown;
722
+ } | undefined;
723
+ })[];
724
+ _meta?: {
725
+ [x: string]: unknown;
726
+ progressToken?: string | number | undefined;
727
+ "io.modelcontextprotocol/related-task"?: {
728
+ taskId: string;
729
+ } | undefined;
730
+ } | undefined;
731
+ structuredContent?: {
732
+ [x: string]: unknown;
733
+ } | undefined;
734
+ isError?: boolean | undefined;
735
+ }>;
736
+ };
737
+ /**
738
+ * Get a File
739
+ *
740
+ * Get a File
741
+ */
742
+ declare const getAFileTool: (options?: ToolOptions) => {
743
+ name: "files_get_a_file";
744
+ config: {
745
+ title: string;
746
+ description: string;
747
+ inputSchema: z.ZodObject<{
748
+ path: z.ZodObject<{
749
+ fileID: z.ZodString;
750
+ }, z.core.$strict>;
751
+ }, z.core.$strict>;
752
+ annotations: {
753
+ readOnlyHint: boolean;
754
+ destructiveHint: boolean;
755
+ idempotentHint: boolean;
756
+ openWorldHint: boolean;
757
+ };
758
+ _meta: {
759
+ "com.elasticpath/operation": {
760
+ id: string;
761
+ method: string;
762
+ path: string;
763
+ risk: "read";
764
+ };
765
+ };
766
+ };
767
+ handler: (args: {
768
+ path: {
769
+ fileID: string;
770
+ };
771
+ }, extra: _modelcontextprotocol_sdk_shared_protocol.RequestHandlerExtra<_modelcontextprotocol_sdk_types.ServerRequest, _modelcontextprotocol_sdk_types.ServerNotification>) => {
772
+ [x: string]: unknown;
773
+ content: ({
774
+ type: "text";
775
+ text: string;
776
+ annotations?: {
777
+ audience?: ("user" | "assistant")[] | undefined;
778
+ priority?: number | undefined;
779
+ lastModified?: string | undefined;
780
+ } | undefined;
781
+ _meta?: {
782
+ [x: string]: unknown;
783
+ } | undefined;
784
+ } | {
785
+ type: "image";
786
+ data: string;
787
+ mimeType: string;
788
+ annotations?: {
789
+ audience?: ("user" | "assistant")[] | undefined;
790
+ priority?: number | undefined;
791
+ lastModified?: string | undefined;
792
+ } | undefined;
793
+ _meta?: {
794
+ [x: string]: unknown;
795
+ } | undefined;
796
+ } | {
797
+ type: "audio";
798
+ data: string;
799
+ mimeType: string;
800
+ annotations?: {
801
+ audience?: ("user" | "assistant")[] | undefined;
802
+ priority?: number | undefined;
803
+ lastModified?: string | undefined;
804
+ } | undefined;
805
+ _meta?: {
806
+ [x: string]: unknown;
807
+ } | undefined;
808
+ } | {
809
+ uri: string;
810
+ name: string;
811
+ type: "resource_link";
812
+ description?: string | undefined;
813
+ mimeType?: string | undefined;
814
+ size?: number | undefined;
815
+ annotations?: {
816
+ audience?: ("user" | "assistant")[] | undefined;
817
+ priority?: number | undefined;
818
+ lastModified?: string | undefined;
819
+ } | undefined;
820
+ _meta?: {
821
+ [x: string]: unknown;
822
+ } | undefined;
823
+ icons?: {
824
+ src: string;
825
+ mimeType?: string | undefined;
826
+ sizes?: string[] | undefined;
827
+ theme?: "light" | "dark" | undefined;
828
+ }[] | undefined;
829
+ title?: string | undefined;
830
+ } | {
831
+ type: "resource";
832
+ resource: {
833
+ uri: string;
834
+ text: string;
835
+ mimeType?: string | undefined;
836
+ _meta?: {
837
+ [x: string]: unknown;
838
+ } | undefined;
839
+ } | {
840
+ uri: string;
841
+ blob: string;
842
+ mimeType?: string | undefined;
843
+ _meta?: {
844
+ [x: string]: unknown;
845
+ } | undefined;
846
+ };
847
+ annotations?: {
848
+ audience?: ("user" | "assistant")[] | undefined;
849
+ priority?: number | undefined;
850
+ lastModified?: string | undefined;
851
+ } | undefined;
852
+ _meta?: {
853
+ [x: string]: unknown;
854
+ } | undefined;
855
+ })[];
856
+ _meta?: {
857
+ [x: string]: unknown;
858
+ progressToken?: string | number | undefined;
859
+ "io.modelcontextprotocol/related-task"?: {
860
+ taskId: string;
861
+ } | undefined;
862
+ } | undefined;
863
+ structuredContent?: {
864
+ [x: string]: unknown;
865
+ } | undefined;
866
+ isError?: boolean | undefined;
867
+ } | Promise<{
868
+ [x: string]: unknown;
869
+ content: ({
870
+ type: "text";
871
+ text: string;
872
+ annotations?: {
873
+ audience?: ("user" | "assistant")[] | undefined;
874
+ priority?: number | undefined;
875
+ lastModified?: string | undefined;
876
+ } | undefined;
877
+ _meta?: {
878
+ [x: string]: unknown;
879
+ } | undefined;
880
+ } | {
881
+ type: "image";
882
+ data: string;
883
+ mimeType: string;
884
+ annotations?: {
885
+ audience?: ("user" | "assistant")[] | undefined;
886
+ priority?: number | undefined;
887
+ lastModified?: string | undefined;
888
+ } | undefined;
889
+ _meta?: {
890
+ [x: string]: unknown;
891
+ } | undefined;
892
+ } | {
893
+ type: "audio";
894
+ data: string;
895
+ mimeType: string;
896
+ annotations?: {
897
+ audience?: ("user" | "assistant")[] | undefined;
898
+ priority?: number | undefined;
899
+ lastModified?: string | undefined;
900
+ } | undefined;
901
+ _meta?: {
902
+ [x: string]: unknown;
903
+ } | undefined;
904
+ } | {
905
+ uri: string;
906
+ name: string;
907
+ type: "resource_link";
908
+ description?: string | undefined;
909
+ mimeType?: string | undefined;
910
+ size?: number | undefined;
911
+ annotations?: {
912
+ audience?: ("user" | "assistant")[] | undefined;
913
+ priority?: number | undefined;
914
+ lastModified?: string | undefined;
915
+ } | undefined;
916
+ _meta?: {
917
+ [x: string]: unknown;
918
+ } | undefined;
919
+ icons?: {
920
+ src: string;
921
+ mimeType?: string | undefined;
922
+ sizes?: string[] | undefined;
923
+ theme?: "light" | "dark" | undefined;
924
+ }[] | undefined;
925
+ title?: string | undefined;
926
+ } | {
927
+ type: "resource";
928
+ resource: {
929
+ uri: string;
930
+ text: string;
931
+ mimeType?: string | undefined;
932
+ _meta?: {
933
+ [x: string]: unknown;
934
+ } | undefined;
935
+ } | {
936
+ uri: string;
937
+ blob: string;
938
+ mimeType?: string | undefined;
939
+ _meta?: {
940
+ [x: string]: unknown;
941
+ } | undefined;
942
+ };
943
+ annotations?: {
944
+ audience?: ("user" | "assistant")[] | undefined;
945
+ priority?: number | undefined;
946
+ lastModified?: string | undefined;
947
+ } | undefined;
948
+ _meta?: {
949
+ [x: string]: unknown;
950
+ } | undefined;
951
+ })[];
952
+ _meta?: {
953
+ [x: string]: unknown;
954
+ progressToken?: string | number | undefined;
955
+ "io.modelcontextprotocol/related-task"?: {
956
+ taskId: string;
957
+ } | undefined;
958
+ } | undefined;
959
+ structuredContent?: {
960
+ [x: string]: unknown;
961
+ } | undefined;
962
+ isError?: boolean | undefined;
963
+ }>;
964
+ };
965
+ declare const tools: (options?: ToolOptions) => Array<Tool>;
966
+
967
+ export { createAFileTool, deleteAFileTool, getAFileTool, getAllFilesTool, tools };