@dexto/client-sdk 1.2.4 → 1.2.6

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,3022 @@
1
+ import type { ClientConfig } from './types.js';
2
+ /**
3
+ * Create a type-safe Dexto client using Hono's typed client
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * import { createDextoClient } from '@dexto/client-sdk';
8
+ *
9
+ * const client = createDextoClient({
10
+ * baseUrl: 'http://localhost:3001',
11
+ * apiKey: 'optional-api-key'
12
+ * });
13
+ *
14
+ * // Create a session
15
+ * const session = await client.api.sessions.$post({
16
+ * json: { sessionId: 'my-session' }
17
+ * });
18
+ *
19
+ * // Send a synchronous message
20
+ * const response = await client.api['message-sync'].$post({
21
+ * json: { message: 'Hello!', sessionId: 'my-session' }
22
+ * });
23
+ * const { response: text } = await response.json();
24
+ *
25
+ * // Search messages
26
+ * const searchResults = await client.api.search.messages.$get({
27
+ * query: { q: 'hello', limit: 10 }
28
+ * });
29
+ *
30
+ * // Streaming responses with SSE
31
+ * import { createMessageStream } from '@dexto/client-sdk';
32
+ *
33
+ * const streamPromise = client.api['message-stream'].$post({
34
+ * json: { message: 'Tell me a story', sessionId: 'my-session' }
35
+ * });
36
+ *
37
+ * // Parse SSE events using createMessageStream
38
+ * const stream = createMessageStream(streamPromise);
39
+ * for await (const event of stream) {
40
+ * if (event.type === 'llm:chunk') {
41
+ * process.stdout.write(event.content);
42
+ * }
43
+ * }
44
+ * ```
45
+ */
46
+ export declare function createDextoClient(config: ClientConfig): {
47
+ health: import("hono/client").ClientRequest<{
48
+ $get: {
49
+ input: {};
50
+ output: string;
51
+ outputFormat: "text";
52
+ status: 200;
53
+ };
54
+ }>;
55
+ } & {
56
+ api: {
57
+ agents: import("hono/client").ClientRequest<{
58
+ $get: {
59
+ input: {};
60
+ output: {
61
+ installed: {
62
+ description: string;
63
+ type: "custom" | "builtin";
64
+ id: string;
65
+ name: string;
66
+ tags?: string[] | undefined;
67
+ author?: string | undefined;
68
+ }[];
69
+ available: {
70
+ description: string;
71
+ type: "custom" | "builtin";
72
+ id: string;
73
+ name: string;
74
+ tags?: string[] | undefined;
75
+ author?: string | undefined;
76
+ }[];
77
+ current: {
78
+ id: string | null;
79
+ name: string | null;
80
+ };
81
+ };
82
+ outputFormat: "json";
83
+ status: 200;
84
+ };
85
+ }>;
86
+ };
87
+ } & {
88
+ api: {
89
+ agents: {
90
+ current: import("hono/client").ClientRequest<{
91
+ $get: {
92
+ input: {};
93
+ output: {
94
+ id: string | null;
95
+ name: string | null;
96
+ };
97
+ outputFormat: "json";
98
+ status: 200;
99
+ };
100
+ }>;
101
+ };
102
+ };
103
+ } & {
104
+ api: {
105
+ agents: {
106
+ install: import("hono/client").ClientRequest<{
107
+ $post: {
108
+ input: {
109
+ json: {
110
+ id: string;
111
+ path?: string | undefined;
112
+ } | {
113
+ id: string;
114
+ metadata: {
115
+ tags: string[];
116
+ description: string;
117
+ author: string;
118
+ main?: string | undefined;
119
+ };
120
+ sourcePath: string;
121
+ name?: string | undefined;
122
+ injectPreferences?: boolean | undefined;
123
+ };
124
+ };
125
+ output: {
126
+ type: "custom" | "builtin";
127
+ id: string;
128
+ name: string;
129
+ installed: true;
130
+ };
131
+ outputFormat: "json";
132
+ status: 201;
133
+ };
134
+ }>;
135
+ };
136
+ };
137
+ } & {
138
+ api: {
139
+ agents: {
140
+ switch: import("hono/client").ClientRequest<{
141
+ $post: {
142
+ input: {
143
+ json: {
144
+ id: string;
145
+ path?: string | undefined;
146
+ };
147
+ };
148
+ output: {
149
+ id: string;
150
+ name: string;
151
+ switched: true;
152
+ };
153
+ outputFormat: "json";
154
+ status: 200;
155
+ };
156
+ }>;
157
+ };
158
+ };
159
+ } & {
160
+ api: {
161
+ agents: {
162
+ "validate-name": import("hono/client").ClientRequest<{
163
+ $post: {
164
+ input: {
165
+ json: {
166
+ id: string;
167
+ path?: string | undefined;
168
+ };
169
+ };
170
+ output: {
171
+ valid: boolean;
172
+ message?: string | undefined;
173
+ conflict?: string | undefined;
174
+ };
175
+ outputFormat: "json";
176
+ status: 200;
177
+ };
178
+ }>;
179
+ };
180
+ };
181
+ } & {
182
+ api: {
183
+ agents: {
184
+ uninstall: import("hono/client").ClientRequest<{
185
+ $post: {
186
+ input: {
187
+ json: {
188
+ id: string;
189
+ force?: boolean | undefined;
190
+ };
191
+ };
192
+ output: {
193
+ id: string;
194
+ uninstalled: true;
195
+ };
196
+ outputFormat: "json";
197
+ status: 200;
198
+ };
199
+ }>;
200
+ };
201
+ };
202
+ } & {
203
+ api: {
204
+ agents: {
205
+ custom: {
206
+ create: import("hono/client").ClientRequest<{
207
+ $post: {
208
+ input: {
209
+ json: {
210
+ description: string;
211
+ config: {
212
+ llm: {
213
+ apiKey: string;
214
+ model: string;
215
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
216
+ router?: "vercel" | "in-built" | undefined;
217
+ maxIterations?: number | undefined;
218
+ baseURL?: string | undefined;
219
+ maxInputTokens?: number | undefined;
220
+ maxOutputTokens?: number | undefined;
221
+ temperature?: number | undefined;
222
+ allowedMediaTypes?: string[] | undefined;
223
+ };
224
+ systemPrompt: string | {
225
+ contributors?: ({
226
+ type: "static";
227
+ content: string;
228
+ id: string;
229
+ priority: number;
230
+ enabled?: boolean | undefined;
231
+ } | {
232
+ type: "dynamic";
233
+ id: string;
234
+ source: "resources" | "dateTime";
235
+ priority: number;
236
+ enabled?: boolean | undefined;
237
+ } | {
238
+ type: "file";
239
+ id: string;
240
+ priority: number;
241
+ files: string[];
242
+ options?: {
243
+ includeFilenames?: boolean | undefined;
244
+ separator?: string | undefined;
245
+ errorHandling?: "error" | "skip" | undefined;
246
+ maxFileSize?: number | undefined;
247
+ includeMetadata?: boolean | undefined;
248
+ } | undefined;
249
+ enabled?: boolean | undefined;
250
+ })[] | undefined;
251
+ };
252
+ storage?: {
253
+ database: {
254
+ type: "in-memory";
255
+ options?: Record<string, any> | undefined;
256
+ maxConnections?: number | undefined;
257
+ idleTimeoutMillis?: number | undefined;
258
+ connectionTimeoutMillis?: number | undefined;
259
+ } | {
260
+ path: string;
261
+ type: "sqlite";
262
+ options?: Record<string, any> | undefined;
263
+ maxConnections?: number | undefined;
264
+ idleTimeoutMillis?: number | undefined;
265
+ connectionTimeoutMillis?: number | undefined;
266
+ } | {
267
+ type: "postgres";
268
+ password?: string | undefined;
269
+ options?: Record<string, any> | undefined;
270
+ url?: string | undefined;
271
+ maxConnections?: number | undefined;
272
+ idleTimeoutMillis?: number | undefined;
273
+ connectionTimeoutMillis?: number | undefined;
274
+ host?: string | undefined;
275
+ port?: number | undefined;
276
+ database?: string | undefined;
277
+ connectionString?: string | undefined;
278
+ };
279
+ cache: {
280
+ type: "in-memory";
281
+ options?: Record<string, any> | undefined;
282
+ maxConnections?: number | undefined;
283
+ idleTimeoutMillis?: number | undefined;
284
+ connectionTimeoutMillis?: number | undefined;
285
+ } | {
286
+ type: "redis";
287
+ password?: string | undefined;
288
+ options?: Record<string, any> | undefined;
289
+ url?: string | undefined;
290
+ maxConnections?: number | undefined;
291
+ idleTimeoutMillis?: number | undefined;
292
+ connectionTimeoutMillis?: number | undefined;
293
+ host?: string | undefined;
294
+ port?: number | undefined;
295
+ database?: number | undefined;
296
+ };
297
+ blob: {
298
+ type: "in-memory";
299
+ maxBlobSize?: number | undefined;
300
+ maxTotalSize?: number | undefined;
301
+ } | {
302
+ type: "local";
303
+ storePath: string;
304
+ maxBlobSize?: number | undefined;
305
+ maxTotalSize?: number | undefined;
306
+ cleanupAfterDays?: number | undefined;
307
+ };
308
+ } | undefined;
309
+ telemetry?: {
310
+ enabled?: boolean | undefined;
311
+ serviceName?: string | undefined;
312
+ tracerName?: string | undefined;
313
+ export?: {
314
+ type: "otlp";
315
+ headers?: Record<string, string> | undefined;
316
+ protocol?: "http" | "grpc" | undefined;
317
+ endpoint?: string | undefined;
318
+ } | {
319
+ type: "console";
320
+ } | undefined;
321
+ } | undefined;
322
+ logger?: {
323
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
324
+ transports?: ({
325
+ type: "console";
326
+ colorize?: boolean | undefined;
327
+ } | {
328
+ path: string;
329
+ type: "file";
330
+ maxFiles?: number | undefined;
331
+ maxSize?: number | undefined;
332
+ } | {
333
+ token: string;
334
+ type: "upstash";
335
+ url: string;
336
+ listName?: string | undefined;
337
+ maxListLength?: number | undefined;
338
+ batchSize?: number | undefined;
339
+ })[] | undefined;
340
+ } | undefined;
341
+ elicitation?: {
342
+ timeout?: number | undefined;
343
+ enabled?: boolean | undefined;
344
+ } | undefined;
345
+ prompts?: ({
346
+ prompt: string;
347
+ type: "inline";
348
+ id: string;
349
+ description?: string | undefined;
350
+ title?: string | undefined;
351
+ priority?: number | undefined;
352
+ category?: string | undefined;
353
+ showInStarters?: boolean | undefined;
354
+ } | {
355
+ file: string;
356
+ type: "file";
357
+ showInStarters?: boolean | undefined;
358
+ })[] | undefined;
359
+ agentId?: string | undefined;
360
+ agentCard?: {
361
+ description: string;
362
+ url: string;
363
+ name: string;
364
+ version: string;
365
+ metadata?: import("zod").objectInputType<{
366
+ dexto: import("zod").ZodOptional<import("zod").ZodObject<{
367
+ authentication: import("zod").ZodOptional<import("zod").ZodObject<{
368
+ schemes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
369
+ credentials: import("zod").ZodOptional<import("zod").ZodString>;
370
+ }, "strict", import("zod").ZodTypeAny, {
371
+ schemes: string[];
372
+ credentials?: string | undefined;
373
+ }, {
374
+ schemes?: string[] | undefined;
375
+ credentials?: string | undefined;
376
+ }>>;
377
+ delegation: import("zod").ZodOptional<import("zod").ZodObject<{
378
+ protocol: import("zod").ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
379
+ endpoint: import("zod").ZodString;
380
+ supportsSession: import("zod").ZodBoolean;
381
+ supportsStreaming: import("zod").ZodOptional<import("zod").ZodBoolean>;
382
+ }, "strict", import("zod").ZodTypeAny, {
383
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
384
+ endpoint: string;
385
+ supportsSession: boolean;
386
+ supportsStreaming?: boolean | undefined;
387
+ }, {
388
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
389
+ endpoint: string;
390
+ supportsSession: boolean;
391
+ supportsStreaming?: boolean | undefined;
392
+ }>>;
393
+ owner: import("zod").ZodOptional<import("zod").ZodObject<{
394
+ userId: import("zod").ZodString;
395
+ username: import("zod").ZodString;
396
+ email: import("zod").ZodOptional<import("zod").ZodString>;
397
+ }, "strict", import("zod").ZodTypeAny, {
398
+ userId: string;
399
+ username: string;
400
+ email?: string | undefined;
401
+ }, {
402
+ userId: string;
403
+ username: string;
404
+ email?: string | undefined;
405
+ }>>;
406
+ }, "strict", import("zod").ZodTypeAny, {
407
+ authentication?: {
408
+ schemes: string[];
409
+ credentials?: string | undefined;
410
+ } | undefined;
411
+ delegation?: {
412
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
413
+ endpoint: string;
414
+ supportsSession: boolean;
415
+ supportsStreaming?: boolean | undefined;
416
+ } | undefined;
417
+ owner?: {
418
+ userId: string;
419
+ username: string;
420
+ email?: string | undefined;
421
+ } | undefined;
422
+ }, {
423
+ authentication?: {
424
+ schemes?: string[] | undefined;
425
+ credentials?: string | undefined;
426
+ } | undefined;
427
+ delegation?: {
428
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
429
+ endpoint: string;
430
+ supportsSession: boolean;
431
+ supportsStreaming?: boolean | undefined;
432
+ } | undefined;
433
+ owner?: {
434
+ userId: string;
435
+ username: string;
436
+ email?: string | undefined;
437
+ } | undefined;
438
+ }>>;
439
+ }, import("zod").ZodTypeAny, "passthrough"> | undefined;
440
+ capabilities?: {
441
+ streaming?: boolean | undefined;
442
+ pushNotifications?: boolean | undefined;
443
+ stateTransitionHistory?: boolean | undefined;
444
+ } | undefined;
445
+ provider?: {
446
+ url: string;
447
+ organization: string;
448
+ } | undefined;
449
+ protocolVersion?: string | undefined;
450
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
451
+ defaultInputModes?: string[] | undefined;
452
+ defaultOutputModes?: string[] | undefined;
453
+ skills?: {
454
+ description: string;
455
+ name: string;
456
+ id: string;
457
+ tags: string[];
458
+ examples?: string[] | undefined;
459
+ inputModes?: string[] | undefined;
460
+ outputModes?: string[] | undefined;
461
+ }[] | undefined;
462
+ iconUrl?: string | undefined;
463
+ documentationUrl?: string | undefined;
464
+ additionalInterfaces?: {
465
+ url: string;
466
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
467
+ }[] | undefined;
468
+ securitySchemes?: Record<string, {
469
+ type: "apiKey";
470
+ name: string;
471
+ in: "query" | "header" | "cookie";
472
+ description?: string | undefined;
473
+ } | {
474
+ type: "http";
475
+ scheme: string;
476
+ description?: string | undefined;
477
+ bearerFormat?: string | undefined;
478
+ } | {
479
+ type: "oauth2";
480
+ flows: {
481
+ password?: {
482
+ scopes: Record<string, string>;
483
+ authorizationUrl?: string | undefined;
484
+ tokenUrl?: string | undefined;
485
+ refreshUrl?: string | undefined;
486
+ } | undefined;
487
+ implicit?: {
488
+ scopes: Record<string, string>;
489
+ authorizationUrl?: string | undefined;
490
+ tokenUrl?: string | undefined;
491
+ refreshUrl?: string | undefined;
492
+ } | undefined;
493
+ clientCredentials?: {
494
+ scopes: Record<string, string>;
495
+ authorizationUrl?: string | undefined;
496
+ tokenUrl?: string | undefined;
497
+ refreshUrl?: string | undefined;
498
+ } | undefined;
499
+ authorizationCode?: {
500
+ scopes: Record<string, string>;
501
+ authorizationUrl?: string | undefined;
502
+ tokenUrl?: string | undefined;
503
+ refreshUrl?: string | undefined;
504
+ } | undefined;
505
+ };
506
+ description?: string | undefined;
507
+ } | {
508
+ type: "openIdConnect";
509
+ openIdConnectUrl: string;
510
+ description?: string | undefined;
511
+ } | {
512
+ type: "mutualTLS";
513
+ description?: string | undefined;
514
+ }> | undefined;
515
+ security?: Record<string, string[]>[] | undefined;
516
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
517
+ signatures?: {
518
+ protected: string;
519
+ signature: string;
520
+ }[] | undefined;
521
+ } | undefined;
522
+ greeting?: string | undefined;
523
+ memories?: {
524
+ enabled?: boolean | undefined;
525
+ limit?: number | undefined;
526
+ priority?: number | undefined;
527
+ includeTimestamps?: boolean | undefined;
528
+ includeTags?: boolean | undefined;
529
+ pinnedOnly?: boolean | undefined;
530
+ } | undefined;
531
+ mcpServers?: Record<string, {
532
+ type: "stdio";
533
+ command: string;
534
+ timeout?: number | undefined;
535
+ args?: string[] | undefined;
536
+ env?: Record<string, string> | undefined;
537
+ connectionMode?: "strict" | "lenient" | undefined;
538
+ } | {
539
+ type: "sse";
540
+ url: string;
541
+ timeout?: number | undefined;
542
+ connectionMode?: "strict" | "lenient" | undefined;
543
+ headers?: Record<string, string> | undefined;
544
+ } | {
545
+ type: "http";
546
+ url: string;
547
+ timeout?: number | undefined;
548
+ connectionMode?: "strict" | "lenient" | undefined;
549
+ headers?: Record<string, string> | undefined;
550
+ }> | undefined;
551
+ internalTools?: ("search_history" | "ask_user" | "read_file" | "glob_files" | "grep_content" | "write_file" | "edit_file" | "bash_exec" | "bash_output" | "kill_process" | "delegate_to_url")[] | undefined;
552
+ sessions?: {
553
+ maxSessions?: number | undefined;
554
+ sessionTTL?: number | undefined;
555
+ } | undefined;
556
+ toolConfirmation?: {
557
+ timeout?: number | undefined;
558
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
559
+ allowedToolsStorage?: "storage" | "memory" | undefined;
560
+ toolPolicies?: {
561
+ alwaysAllow?: string[] | undefined;
562
+ alwaysDeny?: string[] | undefined;
563
+ } | undefined;
564
+ } | undefined;
565
+ internalResources?: ({
566
+ type: "filesystem";
567
+ paths: string[];
568
+ maxFiles?: number | undefined;
569
+ maxDepth?: number | undefined;
570
+ includeHidden?: boolean | undefined;
571
+ includeExtensions?: string[] | undefined;
572
+ } | {
573
+ type: "blob";
574
+ })[] | {
575
+ enabled?: boolean | undefined;
576
+ resources?: ({
577
+ type: "filesystem";
578
+ paths: string[];
579
+ maxFiles?: number | undefined;
580
+ maxDepth?: number | undefined;
581
+ includeHidden?: boolean | undefined;
582
+ includeExtensions?: string[] | undefined;
583
+ } | {
584
+ type: "blob";
585
+ })[] | undefined;
586
+ } | undefined;
587
+ plugins?: {
588
+ custom?: {
589
+ name: string;
590
+ priority: number;
591
+ module: string;
592
+ blocking: boolean;
593
+ config?: Record<string, any> | undefined;
594
+ enabled?: boolean | undefined;
595
+ }[] | undefined;
596
+ contentPolicy?: import("zod").objectInputType<{
597
+ priority: import("zod").ZodNumber;
598
+ blocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
599
+ enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
600
+ }, import("zod").ZodTypeAny, "passthrough"> | undefined;
601
+ responseSanitizer?: import("zod").objectInputType<{
602
+ priority: import("zod").ZodNumber;
603
+ blocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
604
+ enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
605
+ }, import("zod").ZodTypeAny, "passthrough"> | undefined;
606
+ } | undefined;
607
+ };
608
+ id: string;
609
+ name: string;
610
+ tags?: string[] | undefined;
611
+ author?: string | undefined;
612
+ };
613
+ };
614
+ output: {
615
+ id: string;
616
+ name: string;
617
+ created: true;
618
+ };
619
+ outputFormat: "json";
620
+ status: 201;
621
+ };
622
+ }>;
623
+ };
624
+ };
625
+ };
626
+ } & {
627
+ api: {
628
+ agent: {
629
+ path: import("hono/client").ClientRequest<{
630
+ $get: {
631
+ input: {};
632
+ output: {
633
+ path: string;
634
+ name: string;
635
+ relativePath: string;
636
+ isDefault: boolean;
637
+ };
638
+ outputFormat: "json";
639
+ status: 200;
640
+ };
641
+ }>;
642
+ };
643
+ };
644
+ } & {
645
+ api: {
646
+ agent: {
647
+ config: import("hono/client").ClientRequest<{
648
+ $get: {
649
+ input: {};
650
+ output: {
651
+ path: string;
652
+ lastModified: string;
653
+ yaml: string;
654
+ relativePath: string;
655
+ warnings: string[];
656
+ };
657
+ outputFormat: "json";
658
+ status: 200;
659
+ };
660
+ $post: {
661
+ input: {
662
+ json: {
663
+ yaml: string;
664
+ };
665
+ };
666
+ output: {
667
+ path: string;
668
+ message: string;
669
+ ok: true;
670
+ restarted: boolean;
671
+ reloaded: boolean;
672
+ changesApplied: string[];
673
+ };
674
+ outputFormat: "json";
675
+ status: 200;
676
+ };
677
+ }>;
678
+ };
679
+ };
680
+ } & {
681
+ api: {
682
+ agent: {
683
+ validate: import("hono/client").ClientRequest<{
684
+ $post: {
685
+ input: {
686
+ json: {
687
+ yaml: string;
688
+ };
689
+ };
690
+ output: {
691
+ valid: boolean;
692
+ warnings: {
693
+ path: string;
694
+ code: string;
695
+ message: string;
696
+ }[];
697
+ errors: {
698
+ [x: string]: import("hono/utils/types").JSONValue;
699
+ code: string;
700
+ message: string;
701
+ path?: string | undefined;
702
+ line?: number | undefined;
703
+ column?: number | undefined;
704
+ }[];
705
+ };
706
+ outputFormat: "json";
707
+ status: 200;
708
+ };
709
+ }>;
710
+ };
711
+ };
712
+ } & {
713
+ api: {
714
+ agent: {
715
+ config: {
716
+ export: import("hono/client").ClientRequest<{
717
+ $get: {
718
+ input: {
719
+ query: {
720
+ sessionId?: string | undefined;
721
+ };
722
+ };
723
+ output: Response;
724
+ outputFormat: "json";
725
+ status: import("hono/utils/http-status").StatusCode;
726
+ };
727
+ }>;
728
+ };
729
+ };
730
+ };
731
+ } & {
732
+ api: {
733
+ approvals: {
734
+ ":approvalId": import("hono/client").ClientRequest<{
735
+ $post: {
736
+ input: {
737
+ param: {
738
+ approvalId: string;
739
+ };
740
+ } & {
741
+ header: {
742
+ "Idempotency-Key"?: string | undefined;
743
+ };
744
+ } & {
745
+ json: {
746
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
747
+ formData?: Record<string, unknown> | undefined;
748
+ rememberChoice?: boolean | undefined;
749
+ };
750
+ };
751
+ output: {};
752
+ outputFormat: string;
753
+ status: 400;
754
+ } | {
755
+ input: {
756
+ param: {
757
+ approvalId: string;
758
+ };
759
+ } & {
760
+ header: {
761
+ "Idempotency-Key"?: string | undefined;
762
+ };
763
+ } & {
764
+ json: {
765
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
766
+ formData?: Record<string, unknown> | undefined;
767
+ rememberChoice?: boolean | undefined;
768
+ };
769
+ };
770
+ output: {};
771
+ outputFormat: string;
772
+ status: 404;
773
+ } | {
774
+ input: {
775
+ param: {
776
+ approvalId: string;
777
+ };
778
+ } & {
779
+ header: {
780
+ "Idempotency-Key"?: string | undefined;
781
+ };
782
+ } & {
783
+ json: {
784
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
785
+ formData?: Record<string, unknown> | undefined;
786
+ rememberChoice?: boolean | undefined;
787
+ };
788
+ };
789
+ output: {};
790
+ outputFormat: string;
791
+ status: 503;
792
+ } | {
793
+ input: {
794
+ param: {
795
+ approvalId: string;
796
+ };
797
+ } & {
798
+ header: {
799
+ "Idempotency-Key"?: string | undefined;
800
+ };
801
+ } & {
802
+ json: {
803
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
804
+ formData?: Record<string, unknown> | undefined;
805
+ rememberChoice?: boolean | undefined;
806
+ };
807
+ };
808
+ output: {
809
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
810
+ ok: boolean;
811
+ approvalId: string;
812
+ };
813
+ outputFormat: "json";
814
+ status: 200;
815
+ };
816
+ }>;
817
+ };
818
+ };
819
+ } & {
820
+ api: {
821
+ memory: import("hono/client").ClientRequest<{
822
+ $post: {
823
+ input: {
824
+ json: {
825
+ content: string;
826
+ metadata?: import("zod").objectInputType<{
827
+ source: import("zod").ZodOptional<import("zod").ZodEnum<["user", "system"]>>;
828
+ pinned: import("zod").ZodOptional<import("zod").ZodBoolean>;
829
+ }, import("zod").ZodTypeAny, "passthrough"> | undefined;
830
+ tags?: string[] | undefined;
831
+ };
832
+ };
833
+ output: {
834
+ ok: true;
835
+ memory: {
836
+ content: string;
837
+ id: string;
838
+ createdAt: number;
839
+ updatedAt: number;
840
+ metadata?: {
841
+ [x: string]: import("hono/utils/types").JSONValue;
842
+ source?: "system" | "user" | undefined;
843
+ pinned?: boolean | undefined;
844
+ } | undefined;
845
+ tags?: string[] | undefined | undefined;
846
+ };
847
+ };
848
+ outputFormat: "json";
849
+ status: 201;
850
+ };
851
+ $get: {
852
+ input: {
853
+ query: {
854
+ tags?: string | undefined;
855
+ source?: "system" | "user" | undefined;
856
+ limit?: string | undefined;
857
+ offset?: string | undefined;
858
+ pinned?: string | undefined;
859
+ };
860
+ };
861
+ output: {
862
+ memories: {
863
+ content: string;
864
+ id: string;
865
+ createdAt: number;
866
+ updatedAt: number;
867
+ metadata?: {
868
+ [x: string]: import("hono/utils/types").JSONValue;
869
+ source?: "system" | "user" | undefined;
870
+ pinned?: boolean | undefined;
871
+ } | undefined;
872
+ tags?: string[] | undefined | undefined;
873
+ }[];
874
+ ok: true;
875
+ };
876
+ outputFormat: "json";
877
+ status: 200;
878
+ };
879
+ }>;
880
+ };
881
+ } & {
882
+ api: {
883
+ memory: {
884
+ ":id": import("hono/client").ClientRequest<{
885
+ $get: {
886
+ input: {
887
+ param: {
888
+ id: string;
889
+ };
890
+ };
891
+ output: {
892
+ ok: true;
893
+ memory: {
894
+ content: string;
895
+ id: string;
896
+ createdAt: number;
897
+ updatedAt: number;
898
+ metadata?: {
899
+ [x: string]: import("hono/utils/types").JSONValue;
900
+ source?: "system" | "user" | undefined;
901
+ pinned?: boolean | undefined;
902
+ } | undefined;
903
+ tags?: string[] | undefined | undefined;
904
+ };
905
+ };
906
+ outputFormat: "json";
907
+ status: 200;
908
+ };
909
+ $put: {
910
+ input: {
911
+ param: {
912
+ id: string;
913
+ };
914
+ } & {
915
+ json: {
916
+ metadata?: import("zod").objectInputType<{
917
+ source: import("zod").ZodOptional<import("zod").ZodEnum<["user", "system"]>>;
918
+ pinned: import("zod").ZodOptional<import("zod").ZodBoolean>;
919
+ }, import("zod").ZodTypeAny, "passthrough"> | undefined;
920
+ content?: string | undefined;
921
+ tags?: string[] | undefined;
922
+ };
923
+ };
924
+ output: {
925
+ ok: true;
926
+ memory: {
927
+ content: string;
928
+ id: string;
929
+ createdAt: number;
930
+ updatedAt: number;
931
+ metadata?: {
932
+ [x: string]: import("hono/utils/types").JSONValue;
933
+ source?: "system" | "user" | undefined;
934
+ pinned?: boolean | undefined;
935
+ } | undefined;
936
+ tags?: string[] | undefined | undefined;
937
+ };
938
+ };
939
+ outputFormat: "json";
940
+ status: 200;
941
+ };
942
+ $delete: {
943
+ input: {
944
+ param: {
945
+ id: string;
946
+ };
947
+ };
948
+ output: {
949
+ message: string;
950
+ ok: true;
951
+ };
952
+ outputFormat: "json";
953
+ status: 200;
954
+ };
955
+ }>;
956
+ };
957
+ };
958
+ } & {
959
+ api: {
960
+ resources: import("hono/client").ClientRequest<{
961
+ $get: {
962
+ input: {};
963
+ output: {
964
+ ok: true;
965
+ resources: {
966
+ uri: string;
967
+ source: "mcp" | "internal";
968
+ description?: string | undefined;
969
+ mimeType?: string | undefined;
970
+ name?: string | undefined;
971
+ metadata?: {
972
+ [x: string]: import("hono/utils/types").JSONValue;
973
+ } | undefined;
974
+ serverName?: string | undefined;
975
+ size?: number | undefined;
976
+ lastModified?: string | undefined;
977
+ }[];
978
+ };
979
+ outputFormat: "json";
980
+ status: 200;
981
+ };
982
+ }>;
983
+ };
984
+ } & {
985
+ api: {
986
+ resources: {
987
+ ":resourceId": {
988
+ content: import("hono/client").ClientRequest<{
989
+ $get: {
990
+ input: {
991
+ param: {
992
+ resourceId: string;
993
+ };
994
+ };
995
+ output: {
996
+ content: {
997
+ contents: {
998
+ uri: string;
999
+ text?: string | undefined;
1000
+ mimeType?: string | undefined;
1001
+ blob?: string | undefined;
1002
+ }[];
1003
+ _meta?: {
1004
+ [x: string]: any;
1005
+ } | undefined;
1006
+ };
1007
+ ok: true;
1008
+ };
1009
+ outputFormat: "json";
1010
+ status: 200;
1011
+ };
1012
+ }>;
1013
+ };
1014
+ };
1015
+ };
1016
+ } & {
1017
+ api: {
1018
+ resources: {
1019
+ ":resourceId": import("hono/client").ClientRequest<{
1020
+ $head: {
1021
+ input: {
1022
+ param: {
1023
+ resourceId: string;
1024
+ };
1025
+ };
1026
+ output: {};
1027
+ outputFormat: string;
1028
+ status: 200;
1029
+ } | {
1030
+ input: {
1031
+ param: {
1032
+ resourceId: string;
1033
+ };
1034
+ };
1035
+ output: {};
1036
+ outputFormat: string;
1037
+ status: 404;
1038
+ };
1039
+ }>;
1040
+ };
1041
+ };
1042
+ } & {
1043
+ api: {
1044
+ prompts: import("hono/client").ClientRequest<{
1045
+ $get: {
1046
+ input: {};
1047
+ output: {
1048
+ prompts: {
1049
+ name: string;
1050
+ source: "config" | "custom" | "mcp";
1051
+ description?: string | undefined;
1052
+ title?: string | undefined;
1053
+ arguments?: {
1054
+ name: string;
1055
+ description?: string | undefined;
1056
+ required?: boolean | undefined;
1057
+ }[] | undefined;
1058
+ metadata?: {
1059
+ [x: string]: import("hono/utils/types").JSONValue;
1060
+ } | undefined;
1061
+ }[];
1062
+ };
1063
+ outputFormat: "json";
1064
+ status: 200;
1065
+ };
1066
+ }>;
1067
+ };
1068
+ } & {
1069
+ api: {
1070
+ prompts: {
1071
+ custom: import("hono/client").ClientRequest<{
1072
+ $post: {
1073
+ input: {
1074
+ json: {
1075
+ content: string;
1076
+ name: string;
1077
+ description?: string | undefined;
1078
+ title?: string | undefined;
1079
+ arguments?: {
1080
+ name: string;
1081
+ description?: string | undefined;
1082
+ required?: boolean | undefined;
1083
+ }[] | undefined;
1084
+ resource?: {
1085
+ mimeType: string;
1086
+ base64: string;
1087
+ filename?: string | undefined;
1088
+ } | undefined;
1089
+ };
1090
+ };
1091
+ output: {
1092
+ prompt: {
1093
+ name: string;
1094
+ source: "config" | "custom" | "mcp";
1095
+ description?: string | undefined;
1096
+ title?: string | undefined;
1097
+ arguments?: {
1098
+ name: string;
1099
+ description?: string | undefined;
1100
+ required?: boolean | undefined;
1101
+ }[] | undefined;
1102
+ metadata?: {
1103
+ [x: string]: import("hono/utils/types").JSONValue;
1104
+ } | undefined;
1105
+ };
1106
+ };
1107
+ outputFormat: "json";
1108
+ status: 201;
1109
+ };
1110
+ }>;
1111
+ };
1112
+ };
1113
+ } & {
1114
+ api: {
1115
+ prompts: {
1116
+ custom: {
1117
+ ":name": import("hono/client").ClientRequest<{
1118
+ $delete: {
1119
+ input: {
1120
+ param: {
1121
+ name: string;
1122
+ };
1123
+ };
1124
+ output: {};
1125
+ outputFormat: string;
1126
+ status: 204;
1127
+ };
1128
+ }>;
1129
+ };
1130
+ };
1131
+ };
1132
+ } & {
1133
+ api: {
1134
+ prompts: {
1135
+ ":name": import("hono/client").ClientRequest<{
1136
+ $get: {
1137
+ input: {
1138
+ param: {
1139
+ name: string;
1140
+ };
1141
+ };
1142
+ output: {};
1143
+ outputFormat: string;
1144
+ status: 404;
1145
+ } | {
1146
+ input: {
1147
+ param: {
1148
+ name: string;
1149
+ };
1150
+ };
1151
+ output: {
1152
+ definition: {
1153
+ name: string;
1154
+ description?: string | undefined;
1155
+ title?: string | undefined;
1156
+ arguments?: {
1157
+ name: string;
1158
+ description?: string | undefined;
1159
+ required?: boolean | undefined;
1160
+ }[] | undefined;
1161
+ };
1162
+ };
1163
+ outputFormat: "json";
1164
+ status: 200;
1165
+ };
1166
+ }>;
1167
+ };
1168
+ };
1169
+ } & {
1170
+ api: {
1171
+ prompts: {
1172
+ ":name": {
1173
+ resolve: import("hono/client").ClientRequest<{
1174
+ $get: {
1175
+ input: {
1176
+ param: {
1177
+ name: string;
1178
+ };
1179
+ } & {
1180
+ query: {
1181
+ context?: string | undefined;
1182
+ args?: string | undefined;
1183
+ };
1184
+ };
1185
+ output: {};
1186
+ outputFormat: string;
1187
+ status: 404;
1188
+ } | {
1189
+ input: {
1190
+ param: {
1191
+ name: string;
1192
+ };
1193
+ } & {
1194
+ query: {
1195
+ context?: string | undefined;
1196
+ args?: string | undefined;
1197
+ };
1198
+ };
1199
+ output: {
1200
+ text: string;
1201
+ resources: string[];
1202
+ };
1203
+ outputFormat: "json";
1204
+ status: 200;
1205
+ };
1206
+ }>;
1207
+ };
1208
+ };
1209
+ };
1210
+ } & {
1211
+ api: {
1212
+ webhooks: import("hono/client").ClientRequest<{
1213
+ $post: {
1214
+ input: {
1215
+ json: {
1216
+ url: string;
1217
+ description?: string | undefined;
1218
+ secret?: string | undefined;
1219
+ };
1220
+ };
1221
+ output: {
1222
+ webhook: {
1223
+ id: string;
1224
+ createdAt: string | number;
1225
+ url: string;
1226
+ description?: string | undefined;
1227
+ };
1228
+ };
1229
+ outputFormat: "json";
1230
+ status: 201;
1231
+ };
1232
+ $get: {
1233
+ input: {};
1234
+ output: {
1235
+ webhooks: {
1236
+ id: string;
1237
+ createdAt: string | number;
1238
+ url: string;
1239
+ description?: string | undefined;
1240
+ }[];
1241
+ };
1242
+ outputFormat: "json";
1243
+ status: 200;
1244
+ };
1245
+ }>;
1246
+ };
1247
+ } & {
1248
+ api: {
1249
+ webhooks: {
1250
+ ":webhookId": import("hono/client").ClientRequest<{
1251
+ $get: {
1252
+ input: {
1253
+ param: {
1254
+ webhookId: string;
1255
+ };
1256
+ };
1257
+ output: {};
1258
+ outputFormat: string;
1259
+ status: 404;
1260
+ } | {
1261
+ input: {
1262
+ param: {
1263
+ webhookId: string;
1264
+ };
1265
+ };
1266
+ output: {
1267
+ webhook: {
1268
+ id: string;
1269
+ createdAt: string | number;
1270
+ url: string;
1271
+ description?: string | undefined;
1272
+ };
1273
+ };
1274
+ outputFormat: "json";
1275
+ status: 200;
1276
+ };
1277
+ $delete: {
1278
+ input: {
1279
+ param: {
1280
+ webhookId: string;
1281
+ };
1282
+ };
1283
+ output: {};
1284
+ outputFormat: string;
1285
+ status: 404;
1286
+ } | {
1287
+ input: {
1288
+ param: {
1289
+ webhookId: string;
1290
+ };
1291
+ };
1292
+ output: {
1293
+ status: "removed";
1294
+ webhookId: string;
1295
+ };
1296
+ outputFormat: "json";
1297
+ status: 200;
1298
+ };
1299
+ }>;
1300
+ };
1301
+ };
1302
+ } & {
1303
+ api: {
1304
+ webhooks: {
1305
+ ":webhookId": {
1306
+ test: import("hono/client").ClientRequest<{
1307
+ $post: {
1308
+ input: {
1309
+ param: {
1310
+ webhookId: string;
1311
+ };
1312
+ };
1313
+ output: {};
1314
+ outputFormat: string;
1315
+ status: 404;
1316
+ } | {
1317
+ input: {
1318
+ param: {
1319
+ webhookId: string;
1320
+ };
1321
+ };
1322
+ output: {
1323
+ result: {
1324
+ success: boolean;
1325
+ error?: string | undefined;
1326
+ responseTime?: number | undefined;
1327
+ statusCode?: number | undefined;
1328
+ };
1329
+ test: "completed";
1330
+ };
1331
+ outputFormat: "json";
1332
+ status: 200;
1333
+ };
1334
+ }>;
1335
+ };
1336
+ };
1337
+ };
1338
+ } & {
1339
+ api: {
1340
+ mcp: {
1341
+ servers: import("hono/client").ClientRequest<{
1342
+ $post: {
1343
+ input: {
1344
+ json: {
1345
+ config: {
1346
+ type: "stdio";
1347
+ command: string;
1348
+ timeout?: number | undefined;
1349
+ args?: string[] | undefined;
1350
+ env?: Record<string, string> | undefined;
1351
+ connectionMode?: "strict" | "lenient" | undefined;
1352
+ } | {
1353
+ type: "sse";
1354
+ url: string;
1355
+ timeout?: number | undefined;
1356
+ connectionMode?: "strict" | "lenient" | undefined;
1357
+ headers?: Record<string, string> | undefined;
1358
+ } | {
1359
+ type: "http";
1360
+ url: string;
1361
+ timeout?: number | undefined;
1362
+ connectionMode?: "strict" | "lenient" | undefined;
1363
+ headers?: Record<string, string> | undefined;
1364
+ };
1365
+ name: string;
1366
+ persistToAgent?: boolean | undefined;
1367
+ };
1368
+ };
1369
+ output: {
1370
+ status: string;
1371
+ name: string;
1372
+ };
1373
+ outputFormat: "json";
1374
+ status: 200;
1375
+ };
1376
+ $get: {
1377
+ input: {};
1378
+ output: {
1379
+ servers: {
1380
+ status: "error" | "connected" | "disconnected";
1381
+ id: string;
1382
+ name: string;
1383
+ }[];
1384
+ };
1385
+ outputFormat: "json";
1386
+ status: 200;
1387
+ };
1388
+ }>;
1389
+ };
1390
+ };
1391
+ } & {
1392
+ api: {
1393
+ mcp: {
1394
+ servers: {
1395
+ ":serverId": {
1396
+ tools: import("hono/client").ClientRequest<{
1397
+ $get: {
1398
+ input: {
1399
+ param: {
1400
+ serverId: string;
1401
+ };
1402
+ };
1403
+ output: {};
1404
+ outputFormat: string;
1405
+ status: 404;
1406
+ } | {
1407
+ input: {
1408
+ param: {
1409
+ serverId: string;
1410
+ };
1411
+ };
1412
+ output: {
1413
+ tools: {
1414
+ description: string;
1415
+ id: string;
1416
+ name: string;
1417
+ inputSchema?: {
1418
+ [x: string]: import("hono/utils/types").JSONValue;
1419
+ type?: "object" | undefined;
1420
+ properties?: {
1421
+ [x: string]: {
1422
+ [x: string]: import("hono/utils/types").JSONValue;
1423
+ description?: string | undefined;
1424
+ default?: any;
1425
+ type?: "string" | "number" | "boolean" | "object" | "integer" | "array" | undefined;
1426
+ enum?: (string | number | boolean)[] | undefined;
1427
+ };
1428
+ } | undefined;
1429
+ required?: string[] | undefined;
1430
+ } | undefined;
1431
+ }[];
1432
+ };
1433
+ outputFormat: "json";
1434
+ status: 200;
1435
+ };
1436
+ }>;
1437
+ };
1438
+ };
1439
+ };
1440
+ };
1441
+ } & {
1442
+ api: {
1443
+ mcp: {
1444
+ servers: {
1445
+ ":serverId": import("hono/client").ClientRequest<{
1446
+ $delete: {
1447
+ input: {
1448
+ param: {
1449
+ serverId: string;
1450
+ };
1451
+ };
1452
+ output: {};
1453
+ outputFormat: string;
1454
+ status: 404;
1455
+ } | {
1456
+ input: {
1457
+ param: {
1458
+ serverId: string;
1459
+ };
1460
+ };
1461
+ output: {
1462
+ status: "disconnected";
1463
+ id: string;
1464
+ };
1465
+ outputFormat: "json";
1466
+ status: 200;
1467
+ };
1468
+ }>;
1469
+ };
1470
+ };
1471
+ };
1472
+ } & {
1473
+ api: {
1474
+ mcp: {
1475
+ servers: {
1476
+ ":serverId": {
1477
+ restart: import("hono/client").ClientRequest<{
1478
+ $post: {
1479
+ input: {
1480
+ param: {
1481
+ serverId: string;
1482
+ };
1483
+ };
1484
+ output: {};
1485
+ outputFormat: string;
1486
+ status: 404;
1487
+ } | {
1488
+ input: {
1489
+ param: {
1490
+ serverId: string;
1491
+ };
1492
+ };
1493
+ output: {
1494
+ status: "restarted";
1495
+ id: string;
1496
+ };
1497
+ outputFormat: "json";
1498
+ status: 200;
1499
+ };
1500
+ }>;
1501
+ };
1502
+ };
1503
+ };
1504
+ };
1505
+ } & {
1506
+ api: {
1507
+ mcp: {
1508
+ servers: {
1509
+ ":serverId": {
1510
+ tools: {
1511
+ ":toolName": {
1512
+ execute: import("hono/client").ClientRequest<{
1513
+ $post: {
1514
+ input: {
1515
+ param: {
1516
+ serverId: string;
1517
+ toolName: string;
1518
+ };
1519
+ } & {
1520
+ json: Record<string, unknown>;
1521
+ };
1522
+ output: {};
1523
+ outputFormat: string;
1524
+ status: 404;
1525
+ } | {
1526
+ input: {
1527
+ param: {
1528
+ serverId: string;
1529
+ toolName: string;
1530
+ };
1531
+ } & {
1532
+ json: Record<string, unknown>;
1533
+ };
1534
+ output: {
1535
+ success: boolean;
1536
+ data?: any;
1537
+ error?: string | undefined;
1538
+ };
1539
+ outputFormat: "json";
1540
+ status: 200;
1541
+ };
1542
+ }>;
1543
+ };
1544
+ };
1545
+ };
1546
+ };
1547
+ };
1548
+ };
1549
+ } & {
1550
+ api: {
1551
+ mcp: {
1552
+ servers: {
1553
+ ":serverId": {
1554
+ resources: import("hono/client").ClientRequest<{
1555
+ $get: {
1556
+ input: {
1557
+ param: {
1558
+ serverId: string;
1559
+ };
1560
+ };
1561
+ output: {};
1562
+ outputFormat: string;
1563
+ status: 404;
1564
+ } | {
1565
+ input: {
1566
+ param: {
1567
+ serverId: string;
1568
+ };
1569
+ };
1570
+ output: {
1571
+ success: boolean;
1572
+ resources: {
1573
+ uri: string;
1574
+ source: "mcp" | "internal";
1575
+ description?: string | undefined;
1576
+ mimeType?: string | undefined;
1577
+ name?: string | undefined;
1578
+ metadata?: {
1579
+ [x: string]: import("hono/utils/types").JSONValue;
1580
+ } | undefined;
1581
+ serverName?: string | undefined;
1582
+ size?: number | undefined;
1583
+ lastModified?: string | undefined;
1584
+ }[];
1585
+ };
1586
+ outputFormat: "json";
1587
+ status: 200;
1588
+ };
1589
+ }>;
1590
+ };
1591
+ };
1592
+ };
1593
+ };
1594
+ } & {
1595
+ api: {
1596
+ mcp: {
1597
+ servers: {
1598
+ ":serverId": {
1599
+ resources: {
1600
+ ":resourceId": {
1601
+ content: import("hono/client").ClientRequest<{
1602
+ $get: {
1603
+ input: {
1604
+ param: {
1605
+ serverId: string;
1606
+ resourceId: string;
1607
+ };
1608
+ };
1609
+ output: {};
1610
+ outputFormat: string;
1611
+ status: 404;
1612
+ } | {
1613
+ input: {
1614
+ param: {
1615
+ serverId: string;
1616
+ resourceId: string;
1617
+ };
1618
+ };
1619
+ output: {
1620
+ data: {
1621
+ content?: any;
1622
+ };
1623
+ success: boolean;
1624
+ };
1625
+ outputFormat: "json";
1626
+ status: 200;
1627
+ };
1628
+ }>;
1629
+ };
1630
+ };
1631
+ };
1632
+ };
1633
+ };
1634
+ };
1635
+ } & {
1636
+ api: {
1637
+ search: {
1638
+ messages: import("hono/client").ClientRequest<{
1639
+ $get: {
1640
+ input: {
1641
+ query: {
1642
+ q: string;
1643
+ sessionId?: string | undefined;
1644
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
1645
+ limit?: number | undefined;
1646
+ offset?: number | undefined;
1647
+ };
1648
+ };
1649
+ output: {
1650
+ query: string;
1651
+ results: {
1652
+ message: {
1653
+ content: string | ({
1654
+ type: "text";
1655
+ text: string;
1656
+ } | {
1657
+ type: "image";
1658
+ image?: import("hono/utils/types").JSONValue;
1659
+ mimeType?: string | undefined;
1660
+ } | {
1661
+ type: "file";
1662
+ mimeType: string;
1663
+ data?: import("hono/utils/types").JSONValue;
1664
+ filename?: string | undefined;
1665
+ })[] | null;
1666
+ role: "system" | "user" | "assistant" | "tool";
1667
+ provider?: string | undefined;
1668
+ model?: string | undefined;
1669
+ router?: string | undefined;
1670
+ name?: string | undefined;
1671
+ timestamp?: number | undefined;
1672
+ reasoning?: string | undefined;
1673
+ tokenUsage?: {
1674
+ inputTokens?: number | undefined;
1675
+ outputTokens?: number | undefined;
1676
+ reasoningTokens?: number | undefined;
1677
+ totalTokens?: number | undefined;
1678
+ } | undefined;
1679
+ toolCalls?: {
1680
+ function: {
1681
+ name: string;
1682
+ arguments: string;
1683
+ };
1684
+ type: "function";
1685
+ id: string;
1686
+ }[] | undefined;
1687
+ toolCallId?: string | undefined;
1688
+ };
1689
+ sessionId: string;
1690
+ matchedText: string;
1691
+ context: string;
1692
+ messageIndex: number;
1693
+ }[];
1694
+ total: number;
1695
+ hasMore: boolean;
1696
+ };
1697
+ outputFormat: "json";
1698
+ status: 200;
1699
+ };
1700
+ }>;
1701
+ };
1702
+ };
1703
+ } & {
1704
+ api: {
1705
+ search: {
1706
+ sessions: import("hono/client").ClientRequest<{
1707
+ $get: {
1708
+ input: {
1709
+ query: {
1710
+ q: string;
1711
+ };
1712
+ };
1713
+ output: {
1714
+ query: string;
1715
+ results: {
1716
+ sessionId: string;
1717
+ matchCount: number;
1718
+ firstMatch: {
1719
+ message: {
1720
+ content: string | ({
1721
+ type: "text";
1722
+ text: string;
1723
+ } | {
1724
+ type: "image";
1725
+ image?: import("hono/utils/types").JSONValue;
1726
+ mimeType?: string | undefined;
1727
+ } | {
1728
+ type: "file";
1729
+ mimeType: string;
1730
+ data?: import("hono/utils/types").JSONValue;
1731
+ filename?: string | undefined;
1732
+ })[] | null;
1733
+ role: "system" | "user" | "assistant" | "tool";
1734
+ provider?: string | undefined;
1735
+ model?: string | undefined;
1736
+ router?: string | undefined;
1737
+ name?: string | undefined;
1738
+ timestamp?: number | undefined;
1739
+ reasoning?: string | undefined;
1740
+ tokenUsage?: {
1741
+ inputTokens?: number | undefined;
1742
+ outputTokens?: number | undefined;
1743
+ reasoningTokens?: number | undefined;
1744
+ totalTokens?: number | undefined;
1745
+ } | undefined;
1746
+ toolCalls?: {
1747
+ function: {
1748
+ name: string;
1749
+ arguments: string;
1750
+ };
1751
+ type: "function";
1752
+ id: string;
1753
+ }[] | undefined;
1754
+ toolCallId?: string | undefined;
1755
+ };
1756
+ sessionId: string;
1757
+ matchedText: string;
1758
+ context: string;
1759
+ messageIndex: number;
1760
+ };
1761
+ metadata: {
1762
+ createdAt: number;
1763
+ lastActivity: number;
1764
+ messageCount: number;
1765
+ };
1766
+ }[];
1767
+ total: number;
1768
+ hasMore: boolean;
1769
+ };
1770
+ outputFormat: "json";
1771
+ status: 200;
1772
+ };
1773
+ }>;
1774
+ };
1775
+ };
1776
+ } & {
1777
+ api: {
1778
+ sessions: import("hono/client").ClientRequest<{
1779
+ $get: {
1780
+ input: {};
1781
+ output: {
1782
+ sessions: {
1783
+ id: string;
1784
+ createdAt: number | null;
1785
+ lastActivity: number | null;
1786
+ messageCount: number;
1787
+ title?: string | null | undefined;
1788
+ }[];
1789
+ };
1790
+ outputFormat: "json";
1791
+ status: 200;
1792
+ };
1793
+ $post: {
1794
+ input: {
1795
+ json: {
1796
+ sessionId?: string | undefined;
1797
+ };
1798
+ };
1799
+ output: {
1800
+ session: {
1801
+ id: string;
1802
+ createdAt: number | null;
1803
+ lastActivity: number | null;
1804
+ messageCount: number;
1805
+ title?: string | null | undefined;
1806
+ };
1807
+ };
1808
+ outputFormat: "json";
1809
+ status: 201;
1810
+ };
1811
+ }>;
1812
+ };
1813
+ } & {
1814
+ api: {
1815
+ sessions: {
1816
+ ":sessionId": import("hono/client").ClientRequest<{
1817
+ $get: {
1818
+ input: {
1819
+ param: {
1820
+ sessionId: string;
1821
+ };
1822
+ };
1823
+ output: {
1824
+ session: {
1825
+ id: string;
1826
+ createdAt: number | null;
1827
+ lastActivity: number | null;
1828
+ messageCount: number;
1829
+ history: number;
1830
+ title?: string | null | undefined;
1831
+ };
1832
+ };
1833
+ outputFormat: "json";
1834
+ status: 200;
1835
+ };
1836
+ $delete: {
1837
+ input: {
1838
+ param: {
1839
+ sessionId: string;
1840
+ };
1841
+ };
1842
+ output: {
1843
+ status: "deleted";
1844
+ sessionId: string;
1845
+ };
1846
+ outputFormat: "json";
1847
+ status: 200;
1848
+ };
1849
+ $patch: {
1850
+ input: {
1851
+ param: {
1852
+ sessionId: string;
1853
+ };
1854
+ } & {
1855
+ json: {
1856
+ title: string;
1857
+ };
1858
+ };
1859
+ output: {
1860
+ session: {
1861
+ id: string;
1862
+ createdAt: number | null;
1863
+ lastActivity: number | null;
1864
+ messageCount: number;
1865
+ title?: string | null | undefined;
1866
+ };
1867
+ };
1868
+ outputFormat: "json";
1869
+ status: 200;
1870
+ };
1871
+ }>;
1872
+ };
1873
+ };
1874
+ } & {
1875
+ api: {
1876
+ sessions: {
1877
+ ":sessionId": {
1878
+ history: import("hono/client").ClientRequest<{
1879
+ $get: {
1880
+ input: {
1881
+ param: {
1882
+ sessionId: string;
1883
+ };
1884
+ };
1885
+ output: {
1886
+ history: {
1887
+ content: string | ({
1888
+ type: "text";
1889
+ text: string;
1890
+ } | {
1891
+ type: "image";
1892
+ image?: import("hono/utils/types").JSONValue;
1893
+ mimeType?: string | undefined;
1894
+ } | {
1895
+ type: "file";
1896
+ mimeType: string;
1897
+ data?: import("hono/utils/types").JSONValue;
1898
+ filename?: string | undefined;
1899
+ })[] | null;
1900
+ role: "system" | "user" | "assistant" | "tool";
1901
+ provider?: string | undefined;
1902
+ model?: string | undefined;
1903
+ router?: string | undefined;
1904
+ name?: string | undefined;
1905
+ timestamp?: number | undefined;
1906
+ reasoning?: string | undefined;
1907
+ tokenUsage?: {
1908
+ inputTokens?: number | undefined;
1909
+ outputTokens?: number | undefined;
1910
+ reasoningTokens?: number | undefined;
1911
+ totalTokens?: number | undefined;
1912
+ } | undefined;
1913
+ toolCalls?: {
1914
+ function: {
1915
+ name: string;
1916
+ arguments: string;
1917
+ };
1918
+ type: "function";
1919
+ id: string;
1920
+ }[] | undefined;
1921
+ toolCallId?: string | undefined;
1922
+ }[];
1923
+ };
1924
+ outputFormat: "json";
1925
+ status: 200;
1926
+ };
1927
+ }>;
1928
+ };
1929
+ };
1930
+ };
1931
+ } & {
1932
+ api: {
1933
+ sessions: {
1934
+ ":sessionId": {
1935
+ cancel: import("hono/client").ClientRequest<{
1936
+ $post: {
1937
+ input: {
1938
+ param: {
1939
+ sessionId: string;
1940
+ };
1941
+ };
1942
+ output: {
1943
+ sessionId: string;
1944
+ cancelled: boolean;
1945
+ };
1946
+ outputFormat: "json";
1947
+ status: 200;
1948
+ };
1949
+ }>;
1950
+ };
1951
+ };
1952
+ };
1953
+ } & {
1954
+ api: {
1955
+ sessions: {
1956
+ ":sessionId": {
1957
+ load: import("hono/client").ClientRequest<{
1958
+ $get: {
1959
+ input: {
1960
+ param: {
1961
+ sessionId: string;
1962
+ };
1963
+ };
1964
+ output: {
1965
+ session: {
1966
+ id: string;
1967
+ createdAt: number | null;
1968
+ lastActivity: number | null;
1969
+ messageCount: number;
1970
+ title?: string | null | undefined;
1971
+ };
1972
+ };
1973
+ outputFormat: "json";
1974
+ status: 200;
1975
+ } | {
1976
+ input: {
1977
+ param: {
1978
+ sessionId: string;
1979
+ };
1980
+ };
1981
+ output: {
1982
+ error: string;
1983
+ };
1984
+ outputFormat: "json";
1985
+ status: 404;
1986
+ };
1987
+ }>;
1988
+ };
1989
+ };
1990
+ };
1991
+ } & {
1992
+ api: {
1993
+ sessions: {
1994
+ ":sessionId": {
1995
+ "generate-title": import("hono/client").ClientRequest<{
1996
+ $post: {
1997
+ input: {
1998
+ param: {
1999
+ sessionId: string;
2000
+ };
2001
+ };
2002
+ output: {};
2003
+ outputFormat: string;
2004
+ status: 404;
2005
+ } | {
2006
+ input: {
2007
+ param: {
2008
+ sessionId: string;
2009
+ };
2010
+ };
2011
+ output: {
2012
+ title: string | null;
2013
+ sessionId: string;
2014
+ };
2015
+ outputFormat: "json";
2016
+ status: 200;
2017
+ };
2018
+ }>;
2019
+ };
2020
+ };
2021
+ };
2022
+ } & {
2023
+ api: {
2024
+ llm: {
2025
+ current: import("hono/client").ClientRequest<{
2026
+ $get: {
2027
+ input: {
2028
+ query: {
2029
+ sessionId?: string | undefined;
2030
+ };
2031
+ };
2032
+ output: {
2033
+ config: {
2034
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2035
+ model: string;
2036
+ maxIterations?: number | undefined;
2037
+ router?: "vercel" | "in-built" | undefined;
2038
+ baseURL?: string | undefined;
2039
+ maxInputTokens?: number | undefined;
2040
+ maxOutputTokens?: number | undefined;
2041
+ temperature?: number | undefined;
2042
+ allowedMediaTypes?: string[] | undefined;
2043
+ hasApiKey?: boolean | undefined;
2044
+ displayName?: string | undefined;
2045
+ };
2046
+ };
2047
+ outputFormat: "json";
2048
+ status: 200;
2049
+ };
2050
+ }>;
2051
+ };
2052
+ };
2053
+ } & {
2054
+ api: {
2055
+ llm: {
2056
+ catalog: import("hono/client").ClientRequest<{
2057
+ $get: {
2058
+ input: {
2059
+ query: {
2060
+ provider?: string | string[] | undefined;
2061
+ router?: "vercel" | "in-built" | undefined;
2062
+ hasKey?: "0" | "1" | "true" | "false" | undefined;
2063
+ fileType?: "image" | "audio" | "pdf" | undefined;
2064
+ defaultOnly?: "0" | "1" | "true" | "false" | undefined;
2065
+ mode?: "flat" | "grouped" | undefined;
2066
+ };
2067
+ };
2068
+ output: {
2069
+ providers: {
2070
+ openai?: {
2071
+ hasApiKey: boolean;
2072
+ name: string;
2073
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2074
+ supportedRouters: ("vercel" | "in-built")[];
2075
+ primaryEnvVar: string;
2076
+ supportsBaseURL: boolean;
2077
+ models: {
2078
+ maxInputTokens: number;
2079
+ name: string;
2080
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2081
+ default?: boolean | undefined;
2082
+ supportedRouters?: ("vercel" | "in-built")[] | undefined;
2083
+ displayName?: string | undefined;
2084
+ pricing?: {
2085
+ inputPerM: number;
2086
+ outputPerM: number;
2087
+ cacheReadPerM?: number | undefined;
2088
+ cacheWritePerM?: number | undefined;
2089
+ currency?: "USD" | undefined;
2090
+ unit?: "per_million_tokens" | undefined;
2091
+ } | undefined;
2092
+ }[];
2093
+ } | undefined;
2094
+ "openai-compatible"?: {
2095
+ hasApiKey: boolean;
2096
+ name: string;
2097
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2098
+ supportedRouters: ("vercel" | "in-built")[];
2099
+ primaryEnvVar: string;
2100
+ supportsBaseURL: boolean;
2101
+ models: {
2102
+ maxInputTokens: number;
2103
+ name: string;
2104
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2105
+ default?: boolean | undefined;
2106
+ supportedRouters?: ("vercel" | "in-built")[] | undefined;
2107
+ displayName?: string | undefined;
2108
+ pricing?: {
2109
+ inputPerM: number;
2110
+ outputPerM: number;
2111
+ cacheReadPerM?: number | undefined;
2112
+ cacheWritePerM?: number | undefined;
2113
+ currency?: "USD" | undefined;
2114
+ unit?: "per_million_tokens" | undefined;
2115
+ } | undefined;
2116
+ }[];
2117
+ } | undefined;
2118
+ anthropic?: {
2119
+ hasApiKey: boolean;
2120
+ name: string;
2121
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2122
+ supportedRouters: ("vercel" | "in-built")[];
2123
+ primaryEnvVar: string;
2124
+ supportsBaseURL: boolean;
2125
+ models: {
2126
+ maxInputTokens: number;
2127
+ name: string;
2128
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2129
+ default?: boolean | undefined;
2130
+ supportedRouters?: ("vercel" | "in-built")[] | undefined;
2131
+ displayName?: string | undefined;
2132
+ pricing?: {
2133
+ inputPerM: number;
2134
+ outputPerM: number;
2135
+ cacheReadPerM?: number | undefined;
2136
+ cacheWritePerM?: number | undefined;
2137
+ currency?: "USD" | undefined;
2138
+ unit?: "per_million_tokens" | undefined;
2139
+ } | undefined;
2140
+ }[];
2141
+ } | undefined;
2142
+ google?: {
2143
+ hasApiKey: boolean;
2144
+ name: string;
2145
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2146
+ supportedRouters: ("vercel" | "in-built")[];
2147
+ primaryEnvVar: string;
2148
+ supportsBaseURL: boolean;
2149
+ models: {
2150
+ maxInputTokens: number;
2151
+ name: string;
2152
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2153
+ default?: boolean | undefined;
2154
+ supportedRouters?: ("vercel" | "in-built")[] | undefined;
2155
+ displayName?: string | undefined;
2156
+ pricing?: {
2157
+ inputPerM: number;
2158
+ outputPerM: number;
2159
+ cacheReadPerM?: number | undefined;
2160
+ cacheWritePerM?: number | undefined;
2161
+ currency?: "USD" | undefined;
2162
+ unit?: "per_million_tokens" | undefined;
2163
+ } | undefined;
2164
+ }[];
2165
+ } | undefined;
2166
+ groq?: {
2167
+ hasApiKey: boolean;
2168
+ name: string;
2169
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2170
+ supportedRouters: ("vercel" | "in-built")[];
2171
+ primaryEnvVar: string;
2172
+ supportsBaseURL: boolean;
2173
+ models: {
2174
+ maxInputTokens: number;
2175
+ name: string;
2176
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2177
+ default?: boolean | undefined;
2178
+ supportedRouters?: ("vercel" | "in-built")[] | undefined;
2179
+ displayName?: string | undefined;
2180
+ pricing?: {
2181
+ inputPerM: number;
2182
+ outputPerM: number;
2183
+ cacheReadPerM?: number | undefined;
2184
+ cacheWritePerM?: number | undefined;
2185
+ currency?: "USD" | undefined;
2186
+ unit?: "per_million_tokens" | undefined;
2187
+ } | undefined;
2188
+ }[];
2189
+ } | undefined;
2190
+ xai?: {
2191
+ hasApiKey: boolean;
2192
+ name: string;
2193
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2194
+ supportedRouters: ("vercel" | "in-built")[];
2195
+ primaryEnvVar: string;
2196
+ supportsBaseURL: boolean;
2197
+ models: {
2198
+ maxInputTokens: number;
2199
+ name: string;
2200
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2201
+ default?: boolean | undefined;
2202
+ supportedRouters?: ("vercel" | "in-built")[] | undefined;
2203
+ displayName?: string | undefined;
2204
+ pricing?: {
2205
+ inputPerM: number;
2206
+ outputPerM: number;
2207
+ cacheReadPerM?: number | undefined;
2208
+ cacheWritePerM?: number | undefined;
2209
+ currency?: "USD" | undefined;
2210
+ unit?: "per_million_tokens" | undefined;
2211
+ } | undefined;
2212
+ }[];
2213
+ } | undefined;
2214
+ cohere?: {
2215
+ hasApiKey: boolean;
2216
+ name: string;
2217
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2218
+ supportedRouters: ("vercel" | "in-built")[];
2219
+ primaryEnvVar: string;
2220
+ supportsBaseURL: boolean;
2221
+ models: {
2222
+ maxInputTokens: number;
2223
+ name: string;
2224
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2225
+ default?: boolean | undefined;
2226
+ supportedRouters?: ("vercel" | "in-built")[] | undefined;
2227
+ displayName?: string | undefined;
2228
+ pricing?: {
2229
+ inputPerM: number;
2230
+ outputPerM: number;
2231
+ cacheReadPerM?: number | undefined;
2232
+ cacheWritePerM?: number | undefined;
2233
+ currency?: "USD" | undefined;
2234
+ unit?: "per_million_tokens" | undefined;
2235
+ } | undefined;
2236
+ }[];
2237
+ } | undefined;
2238
+ };
2239
+ } | {
2240
+ models: {
2241
+ provider: string;
2242
+ maxInputTokens: number;
2243
+ name: string;
2244
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2245
+ default?: boolean | undefined;
2246
+ supportedRouters?: ("vercel" | "in-built")[] | undefined;
2247
+ displayName?: string | undefined;
2248
+ pricing?: {
2249
+ inputPerM: number;
2250
+ outputPerM: number;
2251
+ cacheReadPerM?: number | undefined;
2252
+ cacheWritePerM?: number | undefined;
2253
+ currency?: "USD" | undefined;
2254
+ unit?: "per_million_tokens" | undefined;
2255
+ } | undefined;
2256
+ }[];
2257
+ };
2258
+ outputFormat: "json";
2259
+ status: 200;
2260
+ };
2261
+ }>;
2262
+ };
2263
+ };
2264
+ } & {
2265
+ api: {
2266
+ llm: {
2267
+ key: import("hono/client").ClientRequest<{
2268
+ $post: {
2269
+ input: {
2270
+ json: {
2271
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2272
+ apiKey: string;
2273
+ };
2274
+ };
2275
+ output: {
2276
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2277
+ ok: true;
2278
+ envVar: string;
2279
+ };
2280
+ outputFormat: "json";
2281
+ status: 200;
2282
+ };
2283
+ }>;
2284
+ };
2285
+ };
2286
+ } & {
2287
+ api: {
2288
+ llm: {
2289
+ switch: import("hono/client").ClientRequest<{
2290
+ $post: {
2291
+ input: {
2292
+ json: {
2293
+ apiKey?: string | undefined;
2294
+ model?: string | undefined;
2295
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
2296
+ router?: "vercel" | "in-built" | undefined;
2297
+ maxIterations?: number | undefined;
2298
+ baseURL?: string | undefined;
2299
+ maxInputTokens?: number | undefined;
2300
+ maxOutputTokens?: number | undefined;
2301
+ temperature?: number | undefined;
2302
+ allowedMediaTypes?: string[] | undefined;
2303
+ } & {
2304
+ sessionId?: string | undefined;
2305
+ };
2306
+ };
2307
+ output: {
2308
+ config: {
2309
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2310
+ model: string;
2311
+ maxIterations: number;
2312
+ router: "vercel" | "in-built";
2313
+ baseURL?: string | undefined;
2314
+ maxInputTokens?: number | undefined;
2315
+ maxOutputTokens?: number | undefined;
2316
+ temperature?: number | undefined;
2317
+ allowedMediaTypes?: string[] | undefined;
2318
+ hasApiKey?: boolean | undefined;
2319
+ };
2320
+ sessionId?: string | undefined;
2321
+ };
2322
+ outputFormat: "json";
2323
+ status: 200;
2324
+ };
2325
+ }>;
2326
+ };
2327
+ };
2328
+ } & {
2329
+ api: {
2330
+ message: import("hono/client").ClientRequest<{
2331
+ $post: {
2332
+ input: {
2333
+ json: {
2334
+ sessionId: string;
2335
+ message?: string | undefined;
2336
+ imageData?: {
2337
+ mimeType: string;
2338
+ base64: string;
2339
+ } | undefined;
2340
+ fileData?: {
2341
+ mimeType: string;
2342
+ base64: string;
2343
+ filename?: string | undefined;
2344
+ } | undefined;
2345
+ };
2346
+ };
2347
+ output: {
2348
+ sessionId: string;
2349
+ accepted: true;
2350
+ };
2351
+ outputFormat: "json";
2352
+ status: 202;
2353
+ } | {
2354
+ input: {
2355
+ json: {
2356
+ sessionId: string;
2357
+ message?: string | undefined;
2358
+ imageData?: {
2359
+ mimeType: string;
2360
+ base64: string;
2361
+ } | undefined;
2362
+ fileData?: {
2363
+ mimeType: string;
2364
+ base64: string;
2365
+ filename?: string | undefined;
2366
+ } | undefined;
2367
+ };
2368
+ };
2369
+ output: {};
2370
+ outputFormat: string;
2371
+ status: 400;
2372
+ };
2373
+ }>;
2374
+ };
2375
+ } & {
2376
+ api: {
2377
+ "message-sync": import("hono/client").ClientRequest<{
2378
+ $post: {
2379
+ input: {
2380
+ json: {
2381
+ sessionId: string;
2382
+ message?: string | undefined;
2383
+ imageData?: {
2384
+ mimeType: string;
2385
+ base64: string;
2386
+ } | undefined;
2387
+ fileData?: {
2388
+ mimeType: string;
2389
+ base64: string;
2390
+ filename?: string | undefined;
2391
+ } | undefined;
2392
+ };
2393
+ };
2394
+ output: {};
2395
+ outputFormat: string;
2396
+ status: 400;
2397
+ } | {
2398
+ input: {
2399
+ json: {
2400
+ sessionId: string;
2401
+ message?: string | undefined;
2402
+ imageData?: {
2403
+ mimeType: string;
2404
+ base64: string;
2405
+ } | undefined;
2406
+ fileData?: {
2407
+ mimeType: string;
2408
+ base64: string;
2409
+ filename?: string | undefined;
2410
+ } | undefined;
2411
+ };
2412
+ };
2413
+ output: {
2414
+ sessionId: string;
2415
+ response: string;
2416
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
2417
+ model?: string | undefined;
2418
+ router?: "vercel" | "in-built" | undefined;
2419
+ reasoning?: string | undefined;
2420
+ tokenUsage?: {
2421
+ inputTokens?: number | undefined;
2422
+ outputTokens?: number | undefined;
2423
+ reasoningTokens?: number | undefined;
2424
+ totalTokens?: number | undefined;
2425
+ } | undefined;
2426
+ };
2427
+ outputFormat: "json";
2428
+ status: 200;
2429
+ };
2430
+ }>;
2431
+ };
2432
+ } & {
2433
+ api: {
2434
+ reset: import("hono/client").ClientRequest<{
2435
+ $post: {
2436
+ input: {
2437
+ json: {
2438
+ sessionId: string;
2439
+ };
2440
+ };
2441
+ output: {
2442
+ status: string;
2443
+ sessionId: string;
2444
+ };
2445
+ outputFormat: "json";
2446
+ status: 200;
2447
+ };
2448
+ }>;
2449
+ };
2450
+ } & {
2451
+ api: {
2452
+ "message-stream": import("hono/client").ClientRequest<{
2453
+ $post: {
2454
+ input: {
2455
+ json: {
2456
+ sessionId: string;
2457
+ message?: string | undefined;
2458
+ imageData?: {
2459
+ mimeType: string;
2460
+ base64: string;
2461
+ } | undefined;
2462
+ fileData?: {
2463
+ mimeType: string;
2464
+ base64: string;
2465
+ filename?: string | undefined;
2466
+ } | undefined;
2467
+ };
2468
+ };
2469
+ output: Response;
2470
+ outputFormat: "json";
2471
+ status: import("hono/utils/http-status").StatusCode;
2472
+ } | {
2473
+ input: {
2474
+ json: {
2475
+ sessionId: string;
2476
+ message?: string | undefined;
2477
+ imageData?: {
2478
+ mimeType: string;
2479
+ base64: string;
2480
+ } | undefined;
2481
+ fileData?: {
2482
+ mimeType: string;
2483
+ base64: string;
2484
+ filename?: string | undefined;
2485
+ } | undefined;
2486
+ };
2487
+ };
2488
+ output: {};
2489
+ outputFormat: string;
2490
+ status: 400;
2491
+ };
2492
+ }>;
2493
+ };
2494
+ } & {
2495
+ api: {
2496
+ greeting: import("hono/client").ClientRequest<{
2497
+ $get: {
2498
+ input: {
2499
+ query: {
2500
+ sessionId?: string | undefined;
2501
+ };
2502
+ };
2503
+ output: {
2504
+ greeting?: string | undefined;
2505
+ };
2506
+ outputFormat: "json";
2507
+ status: 200;
2508
+ };
2509
+ }>;
2510
+ };
2511
+ } & {
2512
+ v1: {
2513
+ "message:send": import("hono/client").ClientRequest<{
2514
+ $post: {
2515
+ input: {
2516
+ json: {
2517
+ message: {
2518
+ role: "user" | "agent";
2519
+ kind: "message";
2520
+ parts: ({
2521
+ text: string;
2522
+ kind: "text";
2523
+ metadata?: Record<string, any> | undefined;
2524
+ } | {
2525
+ file: {
2526
+ bytes: string;
2527
+ mimeType?: string | undefined;
2528
+ name?: string | undefined;
2529
+ } | {
2530
+ uri: string;
2531
+ mimeType?: string | undefined;
2532
+ name?: string | undefined;
2533
+ };
2534
+ kind: "file";
2535
+ metadata?: Record<string, any> | undefined;
2536
+ } | {
2537
+ data: Record<string, any>;
2538
+ kind: "data";
2539
+ metadata?: Record<string, any> | undefined;
2540
+ })[];
2541
+ messageId: string;
2542
+ metadata?: Record<string, any> | undefined;
2543
+ contextId?: string | undefined;
2544
+ taskId?: string | undefined;
2545
+ extensions?: string[] | undefined;
2546
+ referenceTaskIds?: string[] | undefined;
2547
+ };
2548
+ metadata?: Record<string, any> | undefined;
2549
+ configuration?: {
2550
+ blocking?: boolean | undefined;
2551
+ acceptedOutputModes?: string[] | undefined;
2552
+ historyLength?: number | undefined;
2553
+ pushNotificationConfig?: {
2554
+ url: string;
2555
+ headers?: Record<string, string> | undefined;
2556
+ } | undefined;
2557
+ } | undefined;
2558
+ };
2559
+ };
2560
+ output: {
2561
+ status: {
2562
+ state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
2563
+ message?: {
2564
+ role: "user" | "agent";
2565
+ kind: "message";
2566
+ parts: ({
2567
+ text: string;
2568
+ kind: "text";
2569
+ metadata?: {
2570
+ [x: string]: any;
2571
+ } | undefined;
2572
+ } | {
2573
+ file: {
2574
+ bytes: string;
2575
+ mimeType?: string | undefined;
2576
+ name?: string | undefined;
2577
+ } | {
2578
+ uri: string;
2579
+ mimeType?: string | undefined;
2580
+ name?: string | undefined;
2581
+ };
2582
+ kind: "file";
2583
+ metadata?: {
2584
+ [x: string]: any;
2585
+ } | undefined;
2586
+ } | {
2587
+ data: {
2588
+ [x: string]: any;
2589
+ };
2590
+ kind: "data";
2591
+ metadata?: {
2592
+ [x: string]: any;
2593
+ } | undefined;
2594
+ })[];
2595
+ messageId: string;
2596
+ metadata?: {
2597
+ [x: string]: any;
2598
+ } | undefined;
2599
+ contextId?: string | undefined;
2600
+ taskId?: string | undefined;
2601
+ extensions?: string[] | undefined;
2602
+ referenceTaskIds?: string[] | undefined;
2603
+ } | undefined;
2604
+ timestamp?: string | undefined;
2605
+ };
2606
+ id: string;
2607
+ kind: "task";
2608
+ contextId: string;
2609
+ metadata?: {
2610
+ [x: string]: any;
2611
+ } | undefined;
2612
+ history?: {
2613
+ role: "user" | "agent";
2614
+ kind: "message";
2615
+ parts: ({
2616
+ text: string;
2617
+ kind: "text";
2618
+ metadata?: {
2619
+ [x: string]: any;
2620
+ } | undefined;
2621
+ } | {
2622
+ file: {
2623
+ bytes: string;
2624
+ mimeType?: string | undefined;
2625
+ name?: string | undefined;
2626
+ } | {
2627
+ uri: string;
2628
+ mimeType?: string | undefined;
2629
+ name?: string | undefined;
2630
+ };
2631
+ kind: "file";
2632
+ metadata?: {
2633
+ [x: string]: any;
2634
+ } | undefined;
2635
+ } | {
2636
+ data: {
2637
+ [x: string]: any;
2638
+ };
2639
+ kind: "data";
2640
+ metadata?: {
2641
+ [x: string]: any;
2642
+ } | undefined;
2643
+ })[];
2644
+ messageId: string;
2645
+ metadata?: {
2646
+ [x: string]: any;
2647
+ } | undefined;
2648
+ contextId?: string | undefined;
2649
+ taskId?: string | undefined;
2650
+ extensions?: string[] | undefined;
2651
+ referenceTaskIds?: string[] | undefined;
2652
+ }[] | undefined;
2653
+ artifacts?: any[] | undefined;
2654
+ };
2655
+ outputFormat: "json";
2656
+ status: 200;
2657
+ };
2658
+ }>;
2659
+ };
2660
+ } & {
2661
+ v1: {
2662
+ tasks: import("hono/client").ClientRequest<{
2663
+ $get: {
2664
+ input: {
2665
+ query: {
2666
+ status?: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required" | undefined;
2667
+ contextId?: string | undefined;
2668
+ pageSize?: string | undefined;
2669
+ historyLength?: string | undefined;
2670
+ pageToken?: string | undefined;
2671
+ lastUpdatedAfter?: string | undefined;
2672
+ includeArtifacts?: string | undefined;
2673
+ };
2674
+ };
2675
+ output: {
2676
+ tasks: {
2677
+ status: {
2678
+ state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
2679
+ message?: {
2680
+ role: "user" | "agent";
2681
+ kind: "message";
2682
+ parts: ({
2683
+ text: string;
2684
+ kind: "text";
2685
+ metadata?: {
2686
+ [x: string]: any;
2687
+ } | undefined;
2688
+ } | {
2689
+ file: {
2690
+ bytes: string;
2691
+ mimeType?: string | undefined;
2692
+ name?: string | undefined;
2693
+ } | {
2694
+ uri: string;
2695
+ mimeType?: string | undefined;
2696
+ name?: string | undefined;
2697
+ };
2698
+ kind: "file";
2699
+ metadata?: {
2700
+ [x: string]: any;
2701
+ } | undefined;
2702
+ } | {
2703
+ data: {
2704
+ [x: string]: any;
2705
+ };
2706
+ kind: "data";
2707
+ metadata?: {
2708
+ [x: string]: any;
2709
+ } | undefined;
2710
+ })[];
2711
+ messageId: string;
2712
+ metadata?: {
2713
+ [x: string]: any;
2714
+ } | undefined;
2715
+ contextId?: string | undefined;
2716
+ taskId?: string | undefined;
2717
+ extensions?: string[] | undefined;
2718
+ referenceTaskIds?: string[] | undefined;
2719
+ } | undefined;
2720
+ timestamp?: string | undefined;
2721
+ };
2722
+ id: string;
2723
+ kind: "task";
2724
+ contextId: string;
2725
+ metadata?: {
2726
+ [x: string]: any;
2727
+ } | undefined;
2728
+ history?: {
2729
+ role: "user" | "agent";
2730
+ kind: "message";
2731
+ parts: ({
2732
+ text: string;
2733
+ kind: "text";
2734
+ metadata?: {
2735
+ [x: string]: any;
2736
+ } | undefined;
2737
+ } | {
2738
+ file: {
2739
+ bytes: string;
2740
+ mimeType?: string | undefined;
2741
+ name?: string | undefined;
2742
+ } | {
2743
+ uri: string;
2744
+ mimeType?: string | undefined;
2745
+ name?: string | undefined;
2746
+ };
2747
+ kind: "file";
2748
+ metadata?: {
2749
+ [x: string]: any;
2750
+ } | undefined;
2751
+ } | {
2752
+ data: {
2753
+ [x: string]: any;
2754
+ };
2755
+ kind: "data";
2756
+ metadata?: {
2757
+ [x: string]: any;
2758
+ } | undefined;
2759
+ })[];
2760
+ messageId: string;
2761
+ metadata?: {
2762
+ [x: string]: any;
2763
+ } | undefined;
2764
+ contextId?: string | undefined;
2765
+ taskId?: string | undefined;
2766
+ extensions?: string[] | undefined;
2767
+ referenceTaskIds?: string[] | undefined;
2768
+ }[] | undefined;
2769
+ artifacts?: any[] | undefined;
2770
+ }[];
2771
+ totalSize: number;
2772
+ pageSize: number;
2773
+ nextPageToken: string;
2774
+ };
2775
+ outputFormat: "json";
2776
+ status: 200;
2777
+ };
2778
+ }>;
2779
+ };
2780
+ } & {
2781
+ v1: {
2782
+ tasks: {
2783
+ ":id": import("hono/client").ClientRequest<{
2784
+ $get: {
2785
+ input: {
2786
+ param: {
2787
+ id: string;
2788
+ };
2789
+ };
2790
+ output: {};
2791
+ outputFormat: string;
2792
+ status: 404;
2793
+ } | {
2794
+ input: {
2795
+ param: {
2796
+ id: string;
2797
+ };
2798
+ };
2799
+ output: {
2800
+ status: {
2801
+ state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
2802
+ message?: {
2803
+ role: "user" | "agent";
2804
+ kind: "message";
2805
+ parts: ({
2806
+ text: string;
2807
+ kind: "text";
2808
+ metadata?: {
2809
+ [x: string]: any;
2810
+ } | undefined;
2811
+ } | {
2812
+ file: {
2813
+ bytes: string;
2814
+ mimeType?: string | undefined;
2815
+ name?: string | undefined;
2816
+ } | {
2817
+ uri: string;
2818
+ mimeType?: string | undefined;
2819
+ name?: string | undefined;
2820
+ };
2821
+ kind: "file";
2822
+ metadata?: {
2823
+ [x: string]: any;
2824
+ } | undefined;
2825
+ } | {
2826
+ data: {
2827
+ [x: string]: any;
2828
+ };
2829
+ kind: "data";
2830
+ metadata?: {
2831
+ [x: string]: any;
2832
+ } | undefined;
2833
+ })[];
2834
+ messageId: string;
2835
+ metadata?: {
2836
+ [x: string]: any;
2837
+ } | undefined;
2838
+ contextId?: string | undefined;
2839
+ taskId?: string | undefined;
2840
+ extensions?: string[] | undefined;
2841
+ referenceTaskIds?: string[] | undefined;
2842
+ } | undefined;
2843
+ timestamp?: string | undefined;
2844
+ };
2845
+ id: string;
2846
+ kind: "task";
2847
+ contextId: string;
2848
+ metadata?: {
2849
+ [x: string]: any;
2850
+ } | undefined;
2851
+ history?: {
2852
+ role: "user" | "agent";
2853
+ kind: "message";
2854
+ parts: ({
2855
+ text: string;
2856
+ kind: "text";
2857
+ metadata?: {
2858
+ [x: string]: any;
2859
+ } | undefined;
2860
+ } | {
2861
+ file: {
2862
+ bytes: string;
2863
+ mimeType?: string | undefined;
2864
+ name?: string | undefined;
2865
+ } | {
2866
+ uri: string;
2867
+ mimeType?: string | undefined;
2868
+ name?: string | undefined;
2869
+ };
2870
+ kind: "file";
2871
+ metadata?: {
2872
+ [x: string]: any;
2873
+ } | undefined;
2874
+ } | {
2875
+ data: {
2876
+ [x: string]: any;
2877
+ };
2878
+ kind: "data";
2879
+ metadata?: {
2880
+ [x: string]: any;
2881
+ } | undefined;
2882
+ })[];
2883
+ messageId: string;
2884
+ metadata?: {
2885
+ [x: string]: any;
2886
+ } | undefined;
2887
+ contextId?: string | undefined;
2888
+ taskId?: string | undefined;
2889
+ extensions?: string[] | undefined;
2890
+ referenceTaskIds?: string[] | undefined;
2891
+ }[] | undefined;
2892
+ artifacts?: any[] | undefined;
2893
+ };
2894
+ outputFormat: "json";
2895
+ status: 200;
2896
+ };
2897
+ }>;
2898
+ };
2899
+ };
2900
+ } & {
2901
+ v1: {
2902
+ tasks: {
2903
+ ":id:cancel": import("hono/client").ClientRequest<{
2904
+ $post: {
2905
+ input: {
2906
+ param: {
2907
+ id: string;
2908
+ };
2909
+ };
2910
+ output: {};
2911
+ outputFormat: string;
2912
+ status: 404;
2913
+ } | {
2914
+ input: {
2915
+ param: {
2916
+ id: string;
2917
+ };
2918
+ };
2919
+ output: {
2920
+ status: {
2921
+ state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
2922
+ message?: {
2923
+ role: "user" | "agent";
2924
+ kind: "message";
2925
+ parts: ({
2926
+ text: string;
2927
+ kind: "text";
2928
+ metadata?: {
2929
+ [x: string]: any;
2930
+ } | undefined;
2931
+ } | {
2932
+ file: {
2933
+ bytes: string;
2934
+ mimeType?: string | undefined;
2935
+ name?: string | undefined;
2936
+ } | {
2937
+ uri: string;
2938
+ mimeType?: string | undefined;
2939
+ name?: string | undefined;
2940
+ };
2941
+ kind: "file";
2942
+ metadata?: {
2943
+ [x: string]: any;
2944
+ } | undefined;
2945
+ } | {
2946
+ data: {
2947
+ [x: string]: any;
2948
+ };
2949
+ kind: "data";
2950
+ metadata?: {
2951
+ [x: string]: any;
2952
+ } | undefined;
2953
+ })[];
2954
+ messageId: string;
2955
+ metadata?: {
2956
+ [x: string]: any;
2957
+ } | undefined;
2958
+ contextId?: string | undefined;
2959
+ taskId?: string | undefined;
2960
+ extensions?: string[] | undefined;
2961
+ referenceTaskIds?: string[] | undefined;
2962
+ } | undefined;
2963
+ timestamp?: string | undefined;
2964
+ };
2965
+ id: string;
2966
+ kind: "task";
2967
+ contextId: string;
2968
+ metadata?: {
2969
+ [x: string]: any;
2970
+ } | undefined;
2971
+ history?: {
2972
+ role: "user" | "agent";
2973
+ kind: "message";
2974
+ parts: ({
2975
+ text: string;
2976
+ kind: "text";
2977
+ metadata?: {
2978
+ [x: string]: any;
2979
+ } | undefined;
2980
+ } | {
2981
+ file: {
2982
+ bytes: string;
2983
+ mimeType?: string | undefined;
2984
+ name?: string | undefined;
2985
+ } | {
2986
+ uri: string;
2987
+ mimeType?: string | undefined;
2988
+ name?: string | undefined;
2989
+ };
2990
+ kind: "file";
2991
+ metadata?: {
2992
+ [x: string]: any;
2993
+ } | undefined;
2994
+ } | {
2995
+ data: {
2996
+ [x: string]: any;
2997
+ };
2998
+ kind: "data";
2999
+ metadata?: {
3000
+ [x: string]: any;
3001
+ } | undefined;
3002
+ })[];
3003
+ messageId: string;
3004
+ metadata?: {
3005
+ [x: string]: any;
3006
+ } | undefined;
3007
+ contextId?: string | undefined;
3008
+ taskId?: string | undefined;
3009
+ extensions?: string[] | undefined;
3010
+ referenceTaskIds?: string[] | undefined;
3011
+ }[] | undefined;
3012
+ artifacts?: any[] | undefined;
3013
+ };
3014
+ outputFormat: "json";
3015
+ status: 200;
3016
+ };
3017
+ }>;
3018
+ };
3019
+ };
3020
+ };
3021
+ export * from './streaming.js';
3022
+ //# sourceMappingURL=client.d.ts.map