@aaif/goose-sdk 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1133 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Add an extension to an active session.
4
+ */
5
+ export declare const zAddExtensionRequest: z.ZodObject<{
6
+ sessionId: z.ZodString;
7
+ config: z.ZodDefault<z.ZodOptional<z.ZodUnknown>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ sessionId: string;
10
+ config?: unknown;
11
+ }, {
12
+ sessionId: string;
13
+ config?: unknown;
14
+ }>;
15
+ /**
16
+ * Empty success response for operations that return no data.
17
+ */
18
+ export declare const zEmptyResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19
+ /**
20
+ * Remove an extension from an active session.
21
+ */
22
+ export declare const zRemoveExtensionRequest: z.ZodObject<{
23
+ sessionId: z.ZodString;
24
+ name: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ sessionId: string;
27
+ name: string;
28
+ }, {
29
+ sessionId: string;
30
+ name: string;
31
+ }>;
32
+ /**
33
+ * List all tools available in a session.
34
+ */
35
+ export declare const zGetToolsRequest: z.ZodObject<{
36
+ sessionId: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ sessionId: string;
39
+ }, {
40
+ sessionId: string;
41
+ }>;
42
+ /**
43
+ * Tools response.
44
+ */
45
+ export declare const zGetToolsResponse: z.ZodObject<{
46
+ tools: z.ZodArray<z.ZodUnknown, "many">;
47
+ }, "strip", z.ZodTypeAny, {
48
+ tools: unknown[];
49
+ }, {
50
+ tools: unknown[];
51
+ }>;
52
+ /**
53
+ * Read a resource from an extension.
54
+ */
55
+ export declare const zReadResourceRequest: z.ZodObject<{
56
+ sessionId: z.ZodString;
57
+ uri: z.ZodString;
58
+ extensionName: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ sessionId: string;
61
+ uri: string;
62
+ extensionName: string;
63
+ }, {
64
+ sessionId: string;
65
+ uri: string;
66
+ extensionName: string;
67
+ }>;
68
+ /**
69
+ * Resource read response.
70
+ */
71
+ export declare const zReadResourceResponse: z.ZodObject<{
72
+ result: z.ZodDefault<z.ZodOptional<z.ZodUnknown>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ result?: unknown;
75
+ }, {
76
+ result?: unknown;
77
+ }>;
78
+ /**
79
+ * Update the working directory for a session.
80
+ */
81
+ export declare const zUpdateWorkingDirRequest: z.ZodObject<{
82
+ sessionId: z.ZodString;
83
+ workingDir: z.ZodString;
84
+ }, "strip", z.ZodTypeAny, {
85
+ sessionId: string;
86
+ workingDir: string;
87
+ }, {
88
+ sessionId: string;
89
+ workingDir: string;
90
+ }>;
91
+ /**
92
+ * Delete a session.
93
+ */
94
+ export declare const zDeleteSessionRequest: z.ZodObject<{
95
+ sessionId: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ sessionId: string;
98
+ }, {
99
+ sessionId: string;
100
+ }>;
101
+ /**
102
+ * List configured extensions and any warnings.
103
+ */
104
+ export declare const zGetExtensionsRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
105
+ /**
106
+ * List configured extensions and any warnings.
107
+ */
108
+ export declare const zGetExtensionsResponse: z.ZodObject<{
109
+ extensions: z.ZodArray<z.ZodUnknown, "many">;
110
+ warnings: z.ZodArray<z.ZodString, "many">;
111
+ }, "strip", z.ZodTypeAny, {
112
+ extensions: unknown[];
113
+ warnings: string[];
114
+ }, {
115
+ extensions: unknown[];
116
+ warnings: string[];
117
+ }>;
118
+ /**
119
+ * Atomically update the provider for a live session.
120
+ */
121
+ export declare const zUpdateProviderRequest: z.ZodObject<{
122
+ sessionId: z.ZodString;
123
+ provider: z.ZodString;
124
+ model: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
125
+ contextLimit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
126
+ requestParams: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ sessionId: string;
129
+ provider: string;
130
+ model?: string | null | undefined;
131
+ contextLimit?: number | null | undefined;
132
+ requestParams?: Record<string, unknown> | null | undefined;
133
+ }, {
134
+ sessionId: string;
135
+ provider: string;
136
+ model?: string | null | undefined;
137
+ contextLimit?: number | null | undefined;
138
+ requestParams?: Record<string, unknown> | null | undefined;
139
+ }>;
140
+ /**
141
+ * Provider update response.
142
+ */
143
+ export declare const zUpdateProviderResponse: z.ZodObject<{
144
+ configOptions: z.ZodArray<z.ZodUnknown, "many">;
145
+ }, "strip", z.ZodTypeAny, {
146
+ configOptions: unknown[];
147
+ }, {
148
+ configOptions: unknown[];
149
+ }>;
150
+ /**
151
+ * List providers available through goose, including the config-default sentinel.
152
+ */
153
+ export declare const zListProvidersRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
154
+ export declare const zProviderListEntry: z.ZodObject<{
155
+ id: z.ZodString;
156
+ label: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ id: string;
159
+ label: string;
160
+ }, {
161
+ id: string;
162
+ label: string;
163
+ }>;
164
+ /**
165
+ * Provider list response.
166
+ */
167
+ export declare const zListProvidersResponse: z.ZodObject<{
168
+ providers: z.ZodArray<z.ZodObject<{
169
+ id: z.ZodString;
170
+ label: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ id: string;
173
+ label: string;
174
+ }, {
175
+ id: string;
176
+ label: string;
177
+ }>, "many">;
178
+ }, "strip", z.ZodTypeAny, {
179
+ providers: {
180
+ id: string;
181
+ label: string;
182
+ }[];
183
+ }, {
184
+ providers: {
185
+ id: string;
186
+ label: string;
187
+ }[];
188
+ }>;
189
+ /**
190
+ * List providers with full metadata (config keys, setup steps, etc.).
191
+ */
192
+ export declare const zGetProviderDetailsRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
193
+ export declare const zProviderConfigKey: z.ZodObject<{
194
+ name: z.ZodString;
195
+ required: z.ZodBoolean;
196
+ secret: z.ZodBoolean;
197
+ default: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>>;
198
+ oauthFlow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
199
+ deviceCodeFlow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
200
+ primary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ name: string;
203
+ required: boolean;
204
+ secret: boolean;
205
+ default: string | null;
206
+ oauthFlow: boolean;
207
+ deviceCodeFlow: boolean;
208
+ primary: boolean;
209
+ }, {
210
+ name: string;
211
+ required: boolean;
212
+ secret: boolean;
213
+ default?: string | null | undefined;
214
+ oauthFlow?: boolean | undefined;
215
+ deviceCodeFlow?: boolean | undefined;
216
+ primary?: boolean | undefined;
217
+ }>;
218
+ export declare const zModelEntry: z.ZodObject<{
219
+ name: z.ZodString;
220
+ contextLimit: z.ZodNumber;
221
+ }, "strip", z.ZodTypeAny, {
222
+ name: string;
223
+ contextLimit: number;
224
+ }, {
225
+ name: string;
226
+ contextLimit: number;
227
+ }>;
228
+ export declare const zProviderDetailEntry: z.ZodObject<{
229
+ name: z.ZodString;
230
+ displayName: z.ZodString;
231
+ description: z.ZodString;
232
+ defaultModel: z.ZodString;
233
+ isConfigured: z.ZodBoolean;
234
+ providerType: z.ZodString;
235
+ configKeys: z.ZodArray<z.ZodObject<{
236
+ name: z.ZodString;
237
+ required: z.ZodBoolean;
238
+ secret: z.ZodBoolean;
239
+ default: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>>;
240
+ oauthFlow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
241
+ deviceCodeFlow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
242
+ primary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ name: string;
245
+ required: boolean;
246
+ secret: boolean;
247
+ default: string | null;
248
+ oauthFlow: boolean;
249
+ deviceCodeFlow: boolean;
250
+ primary: boolean;
251
+ }, {
252
+ name: string;
253
+ required: boolean;
254
+ secret: boolean;
255
+ default?: string | null | undefined;
256
+ oauthFlow?: boolean | undefined;
257
+ deviceCodeFlow?: boolean | undefined;
258
+ primary?: boolean | undefined;
259
+ }>, "many">;
260
+ setupSteps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
261
+ knownModels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
262
+ name: z.ZodString;
263
+ contextLimit: z.ZodNumber;
264
+ }, "strip", z.ZodTypeAny, {
265
+ name: string;
266
+ contextLimit: number;
267
+ }, {
268
+ name: string;
269
+ contextLimit: number;
270
+ }>, "many">>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ name: string;
273
+ displayName: string;
274
+ description: string;
275
+ defaultModel: string;
276
+ isConfigured: boolean;
277
+ providerType: string;
278
+ configKeys: {
279
+ name: string;
280
+ required: boolean;
281
+ secret: boolean;
282
+ default: string | null;
283
+ oauthFlow: boolean;
284
+ deviceCodeFlow: boolean;
285
+ primary: boolean;
286
+ }[];
287
+ setupSteps: string[];
288
+ knownModels: {
289
+ name: string;
290
+ contextLimit: number;
291
+ }[];
292
+ }, {
293
+ name: string;
294
+ displayName: string;
295
+ description: string;
296
+ defaultModel: string;
297
+ isConfigured: boolean;
298
+ providerType: string;
299
+ configKeys: {
300
+ name: string;
301
+ required: boolean;
302
+ secret: boolean;
303
+ default?: string | null | undefined;
304
+ oauthFlow?: boolean | undefined;
305
+ deviceCodeFlow?: boolean | undefined;
306
+ primary?: boolean | undefined;
307
+ }[];
308
+ setupSteps?: string[] | undefined;
309
+ knownModels?: {
310
+ name: string;
311
+ contextLimit: number;
312
+ }[] | undefined;
313
+ }>;
314
+ /**
315
+ * Provider details response.
316
+ */
317
+ export declare const zGetProviderDetailsResponse: z.ZodObject<{
318
+ providers: z.ZodArray<z.ZodObject<{
319
+ name: z.ZodString;
320
+ displayName: z.ZodString;
321
+ description: z.ZodString;
322
+ defaultModel: z.ZodString;
323
+ isConfigured: z.ZodBoolean;
324
+ providerType: z.ZodString;
325
+ configKeys: z.ZodArray<z.ZodObject<{
326
+ name: z.ZodString;
327
+ required: z.ZodBoolean;
328
+ secret: z.ZodBoolean;
329
+ default: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>>;
330
+ oauthFlow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
331
+ deviceCodeFlow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
332
+ primary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ name: string;
335
+ required: boolean;
336
+ secret: boolean;
337
+ default: string | null;
338
+ oauthFlow: boolean;
339
+ deviceCodeFlow: boolean;
340
+ primary: boolean;
341
+ }, {
342
+ name: string;
343
+ required: boolean;
344
+ secret: boolean;
345
+ default?: string | null | undefined;
346
+ oauthFlow?: boolean | undefined;
347
+ deviceCodeFlow?: boolean | undefined;
348
+ primary?: boolean | undefined;
349
+ }>, "many">;
350
+ setupSteps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
351
+ knownModels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
352
+ name: z.ZodString;
353
+ contextLimit: z.ZodNumber;
354
+ }, "strip", z.ZodTypeAny, {
355
+ name: string;
356
+ contextLimit: number;
357
+ }, {
358
+ name: string;
359
+ contextLimit: number;
360
+ }>, "many">>>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ name: string;
363
+ displayName: string;
364
+ description: string;
365
+ defaultModel: string;
366
+ isConfigured: boolean;
367
+ providerType: string;
368
+ configKeys: {
369
+ name: string;
370
+ required: boolean;
371
+ secret: boolean;
372
+ default: string | null;
373
+ oauthFlow: boolean;
374
+ deviceCodeFlow: boolean;
375
+ primary: boolean;
376
+ }[];
377
+ setupSteps: string[];
378
+ knownModels: {
379
+ name: string;
380
+ contextLimit: number;
381
+ }[];
382
+ }, {
383
+ name: string;
384
+ displayName: string;
385
+ description: string;
386
+ defaultModel: string;
387
+ isConfigured: boolean;
388
+ providerType: string;
389
+ configKeys: {
390
+ name: string;
391
+ required: boolean;
392
+ secret: boolean;
393
+ default?: string | null | undefined;
394
+ oauthFlow?: boolean | undefined;
395
+ deviceCodeFlow?: boolean | undefined;
396
+ primary?: boolean | undefined;
397
+ }[];
398
+ setupSteps?: string[] | undefined;
399
+ knownModels?: {
400
+ name: string;
401
+ contextLimit: number;
402
+ }[] | undefined;
403
+ }>, "many">;
404
+ }, "strip", z.ZodTypeAny, {
405
+ providers: {
406
+ name: string;
407
+ displayName: string;
408
+ description: string;
409
+ defaultModel: string;
410
+ isConfigured: boolean;
411
+ providerType: string;
412
+ configKeys: {
413
+ name: string;
414
+ required: boolean;
415
+ secret: boolean;
416
+ default: string | null;
417
+ oauthFlow: boolean;
418
+ deviceCodeFlow: boolean;
419
+ primary: boolean;
420
+ }[];
421
+ setupSteps: string[];
422
+ knownModels: {
423
+ name: string;
424
+ contextLimit: number;
425
+ }[];
426
+ }[];
427
+ }, {
428
+ providers: {
429
+ name: string;
430
+ displayName: string;
431
+ description: string;
432
+ defaultModel: string;
433
+ isConfigured: boolean;
434
+ providerType: string;
435
+ configKeys: {
436
+ name: string;
437
+ required: boolean;
438
+ secret: boolean;
439
+ default?: string | null | undefined;
440
+ oauthFlow?: boolean | undefined;
441
+ deviceCodeFlow?: boolean | undefined;
442
+ primary?: boolean | undefined;
443
+ }[];
444
+ setupSteps?: string[] | undefined;
445
+ knownModels?: {
446
+ name: string;
447
+ contextLimit: number;
448
+ }[] | undefined;
449
+ }[];
450
+ }>;
451
+ /**
452
+ * Fetch the full list of models available for a specific provider.
453
+ */
454
+ export declare const zGetProviderModelsRequest: z.ZodObject<{
455
+ providerName: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ providerName: string;
458
+ }, {
459
+ providerName: string;
460
+ }>;
461
+ /**
462
+ * Provider models response.
463
+ */
464
+ export declare const zGetProviderModelsResponse: z.ZodObject<{
465
+ models: z.ZodArray<z.ZodString, "many">;
466
+ }, "strip", z.ZodTypeAny, {
467
+ models: string[];
468
+ }, {
469
+ models: string[];
470
+ }>;
471
+ /**
472
+ * Read a single non-secret config value.
473
+ */
474
+ export declare const zReadConfigRequest: z.ZodObject<{
475
+ key: z.ZodString;
476
+ }, "strip", z.ZodTypeAny, {
477
+ key: string;
478
+ }, {
479
+ key: string;
480
+ }>;
481
+ /**
482
+ * Config read response.
483
+ */
484
+ export declare const zReadConfigResponse: z.ZodObject<{
485
+ value: z.ZodDefault<z.ZodOptional<z.ZodUnknown>>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ value?: unknown;
488
+ }, {
489
+ value?: unknown;
490
+ }>;
491
+ /**
492
+ * Upsert a single non-secret config value.
493
+ */
494
+ export declare const zUpsertConfigRequest: z.ZodObject<{
495
+ key: z.ZodString;
496
+ value: z.ZodUnknown;
497
+ }, "strip", z.ZodTypeAny, {
498
+ key: string;
499
+ value?: unknown;
500
+ }, {
501
+ key: string;
502
+ value?: unknown;
503
+ }>;
504
+ /**
505
+ * Remove a single non-secret config value.
506
+ */
507
+ export declare const zRemoveConfigRequest: z.ZodObject<{
508
+ key: z.ZodString;
509
+ }, "strip", z.ZodTypeAny, {
510
+ key: string;
511
+ }, {
512
+ key: string;
513
+ }>;
514
+ /**
515
+ * Check whether a secret exists. Never returns the actual value.
516
+ */
517
+ export declare const zCheckSecretRequest: z.ZodObject<{
518
+ key: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ key: string;
521
+ }, {
522
+ key: string;
523
+ }>;
524
+ /**
525
+ * Secret check response.
526
+ */
527
+ export declare const zCheckSecretResponse: z.ZodObject<{
528
+ exists: z.ZodBoolean;
529
+ }, "strip", z.ZodTypeAny, {
530
+ exists: boolean;
531
+ }, {
532
+ exists: boolean;
533
+ }>;
534
+ /**
535
+ * Set a secret value (write-only).
536
+ */
537
+ export declare const zUpsertSecretRequest: z.ZodObject<{
538
+ key: z.ZodString;
539
+ value: z.ZodUnknown;
540
+ }, "strip", z.ZodTypeAny, {
541
+ key: string;
542
+ value?: unknown;
543
+ }, {
544
+ key: string;
545
+ value?: unknown;
546
+ }>;
547
+ /**
548
+ * Remove a secret.
549
+ */
550
+ export declare const zRemoveSecretRequest: z.ZodObject<{
551
+ key: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ key: string;
554
+ }, {
555
+ key: string;
556
+ }>;
557
+ /**
558
+ * Export a session as a JSON string.
559
+ */
560
+ export declare const zExportSessionRequest: z.ZodObject<{
561
+ sessionId: z.ZodString;
562
+ }, "strip", z.ZodTypeAny, {
563
+ sessionId: string;
564
+ }, {
565
+ sessionId: string;
566
+ }>;
567
+ /**
568
+ * Export session response — raw JSON of the goose session with `conversation`.
569
+ */
570
+ export declare const zExportSessionResponse: z.ZodObject<{
571
+ data: z.ZodString;
572
+ }, "strip", z.ZodTypeAny, {
573
+ data: string;
574
+ }, {
575
+ data: string;
576
+ }>;
577
+ /**
578
+ * Import a session from a JSON string.
579
+ */
580
+ export declare const zImportSessionRequest: z.ZodObject<{
581
+ data: z.ZodString;
582
+ }, "strip", z.ZodTypeAny, {
583
+ data: string;
584
+ }, {
585
+ data: string;
586
+ }>;
587
+ /**
588
+ * Import session response — metadata about the newly created session.
589
+ */
590
+ export declare const zImportSessionResponse: z.ZodObject<{
591
+ sessionId: z.ZodString;
592
+ title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
593
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
594
+ messageCount: z.ZodNumber;
595
+ }, "strip", z.ZodTypeAny, {
596
+ sessionId: string;
597
+ messageCount: number;
598
+ title?: string | null | undefined;
599
+ updatedAt?: string | null | undefined;
600
+ }, {
601
+ sessionId: string;
602
+ messageCount: number;
603
+ title?: string | null | undefined;
604
+ updatedAt?: string | null | undefined;
605
+ }>;
606
+ /**
607
+ * Archive a session (soft delete).
608
+ */
609
+ export declare const zArchiveSessionRequest: z.ZodObject<{
610
+ sessionId: z.ZodString;
611
+ }, "strip", z.ZodTypeAny, {
612
+ sessionId: string;
613
+ }, {
614
+ sessionId: string;
615
+ }>;
616
+ /**
617
+ * Unarchive a previously archived session.
618
+ */
619
+ export declare const zUnarchiveSessionRequest: z.ZodObject<{
620
+ sessionId: z.ZodString;
621
+ }, "strip", z.ZodTypeAny, {
622
+ sessionId: string;
623
+ }, {
624
+ sessionId: string;
625
+ }>;
626
+ export declare const zExtRequest: z.ZodObject<{
627
+ id: z.ZodString;
628
+ method: z.ZodString;
629
+ params: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
630
+ sessionId: z.ZodString;
631
+ config: z.ZodDefault<z.ZodOptional<z.ZodUnknown>>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ sessionId: string;
634
+ config?: unknown;
635
+ }, {
636
+ sessionId: string;
637
+ config?: unknown;
638
+ }>, z.ZodObject<{
639
+ sessionId: z.ZodString;
640
+ name: z.ZodString;
641
+ }, "strip", z.ZodTypeAny, {
642
+ sessionId: string;
643
+ name: string;
644
+ }, {
645
+ sessionId: string;
646
+ name: string;
647
+ }>, z.ZodObject<{
648
+ sessionId: z.ZodString;
649
+ }, "strip", z.ZodTypeAny, {
650
+ sessionId: string;
651
+ }, {
652
+ sessionId: string;
653
+ }>, z.ZodObject<{
654
+ sessionId: z.ZodString;
655
+ uri: z.ZodString;
656
+ extensionName: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ sessionId: string;
659
+ uri: string;
660
+ extensionName: string;
661
+ }, {
662
+ sessionId: string;
663
+ uri: string;
664
+ extensionName: string;
665
+ }>, z.ZodObject<{
666
+ sessionId: z.ZodString;
667
+ workingDir: z.ZodString;
668
+ }, "strip", z.ZodTypeAny, {
669
+ sessionId: string;
670
+ workingDir: string;
671
+ }, {
672
+ sessionId: string;
673
+ workingDir: string;
674
+ }>, z.ZodObject<{
675
+ sessionId: z.ZodString;
676
+ }, "strip", z.ZodTypeAny, {
677
+ sessionId: string;
678
+ }, {
679
+ sessionId: string;
680
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
681
+ sessionId: z.ZodString;
682
+ provider: z.ZodString;
683
+ model: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
684
+ contextLimit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
685
+ requestParams: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ sessionId: string;
688
+ provider: string;
689
+ model?: string | null | undefined;
690
+ contextLimit?: number | null | undefined;
691
+ requestParams?: Record<string, unknown> | null | undefined;
692
+ }, {
693
+ sessionId: string;
694
+ provider: string;
695
+ model?: string | null | undefined;
696
+ contextLimit?: number | null | undefined;
697
+ requestParams?: Record<string, unknown> | null | undefined;
698
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
699
+ providerName: z.ZodString;
700
+ }, "strip", z.ZodTypeAny, {
701
+ providerName: string;
702
+ }, {
703
+ providerName: string;
704
+ }>, z.ZodObject<{
705
+ key: z.ZodString;
706
+ }, "strip", z.ZodTypeAny, {
707
+ key: string;
708
+ }, {
709
+ key: string;
710
+ }>, z.ZodObject<{
711
+ key: z.ZodString;
712
+ value: z.ZodUnknown;
713
+ }, "strip", z.ZodTypeAny, {
714
+ key: string;
715
+ value?: unknown;
716
+ }, {
717
+ key: string;
718
+ value?: unknown;
719
+ }>, z.ZodObject<{
720
+ key: z.ZodString;
721
+ }, "strip", z.ZodTypeAny, {
722
+ key: string;
723
+ }, {
724
+ key: string;
725
+ }>, z.ZodObject<{
726
+ key: z.ZodString;
727
+ }, "strip", z.ZodTypeAny, {
728
+ key: string;
729
+ }, {
730
+ key: string;
731
+ }>, z.ZodObject<{
732
+ key: z.ZodString;
733
+ value: z.ZodUnknown;
734
+ }, "strip", z.ZodTypeAny, {
735
+ key: string;
736
+ value?: unknown;
737
+ }, {
738
+ key: string;
739
+ value?: unknown;
740
+ }>, z.ZodObject<{
741
+ key: z.ZodString;
742
+ }, "strip", z.ZodTypeAny, {
743
+ key: string;
744
+ }, {
745
+ key: string;
746
+ }>, z.ZodObject<{
747
+ sessionId: z.ZodString;
748
+ }, "strip", z.ZodTypeAny, {
749
+ sessionId: string;
750
+ }, {
751
+ sessionId: string;
752
+ }>, z.ZodObject<{
753
+ data: z.ZodString;
754
+ }, "strip", z.ZodTypeAny, {
755
+ data: string;
756
+ }, {
757
+ data: string;
758
+ }>, z.ZodObject<{
759
+ sessionId: z.ZodString;
760
+ }, "strip", z.ZodTypeAny, {
761
+ sessionId: string;
762
+ }, {
763
+ sessionId: string;
764
+ }>, z.ZodObject<{
765
+ sessionId: z.ZodString;
766
+ }, "strip", z.ZodTypeAny, {
767
+ sessionId: string;
768
+ }, {
769
+ sessionId: string;
770
+ }>]>, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>]>>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ id: string;
773
+ method: string;
774
+ params?: {
775
+ sessionId: string;
776
+ config?: unknown;
777
+ } | {
778
+ sessionId: string;
779
+ name: string;
780
+ } | {
781
+ sessionId: string;
782
+ } | {
783
+ sessionId: string;
784
+ uri: string;
785
+ extensionName: string;
786
+ } | {
787
+ sessionId: string;
788
+ workingDir: string;
789
+ } | {
790
+ sessionId: string;
791
+ } | Record<string, unknown> | {
792
+ sessionId: string;
793
+ provider: string;
794
+ model?: string | null | undefined;
795
+ contextLimit?: number | null | undefined;
796
+ requestParams?: Record<string, unknown> | null | undefined;
797
+ } | {
798
+ providerName: string;
799
+ } | {
800
+ key: string;
801
+ } | {
802
+ key: string;
803
+ value?: unknown;
804
+ } | {
805
+ key: string;
806
+ } | {
807
+ key: string;
808
+ } | {
809
+ key: string;
810
+ value?: unknown;
811
+ } | {
812
+ key: string;
813
+ } | {
814
+ sessionId: string;
815
+ } | {
816
+ data: string;
817
+ } | {
818
+ sessionId: string;
819
+ } | {
820
+ sessionId: string;
821
+ } | null | undefined;
822
+ }, {
823
+ id: string;
824
+ method: string;
825
+ params?: {
826
+ sessionId: string;
827
+ config?: unknown;
828
+ } | {
829
+ sessionId: string;
830
+ name: string;
831
+ } | {
832
+ sessionId: string;
833
+ } | {
834
+ sessionId: string;
835
+ uri: string;
836
+ extensionName: string;
837
+ } | {
838
+ sessionId: string;
839
+ workingDir: string;
840
+ } | {
841
+ sessionId: string;
842
+ } | Record<string, unknown> | {
843
+ sessionId: string;
844
+ provider: string;
845
+ model?: string | null | undefined;
846
+ contextLimit?: number | null | undefined;
847
+ requestParams?: Record<string, unknown> | null | undefined;
848
+ } | {
849
+ providerName: string;
850
+ } | {
851
+ key: string;
852
+ } | {
853
+ key: string;
854
+ value?: unknown;
855
+ } | {
856
+ key: string;
857
+ } | {
858
+ key: string;
859
+ } | {
860
+ key: string;
861
+ value?: unknown;
862
+ } | {
863
+ key: string;
864
+ } | {
865
+ sessionId: string;
866
+ } | {
867
+ data: string;
868
+ } | {
869
+ sessionId: string;
870
+ } | {
871
+ sessionId: string;
872
+ } | null | undefined;
873
+ }>;
874
+ export declare const zExtResponse: z.ZodUnion<[z.ZodObject<{
875
+ id: z.ZodString;
876
+ result: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
877
+ tools: z.ZodArray<z.ZodUnknown, "many">;
878
+ }, "strip", z.ZodTypeAny, {
879
+ tools: unknown[];
880
+ }, {
881
+ tools: unknown[];
882
+ }>, z.ZodObject<{
883
+ result: z.ZodDefault<z.ZodOptional<z.ZodUnknown>>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ result?: unknown;
886
+ }, {
887
+ result?: unknown;
888
+ }>, z.ZodObject<{
889
+ extensions: z.ZodArray<z.ZodUnknown, "many">;
890
+ warnings: z.ZodArray<z.ZodString, "many">;
891
+ }, "strip", z.ZodTypeAny, {
892
+ extensions: unknown[];
893
+ warnings: string[];
894
+ }, {
895
+ extensions: unknown[];
896
+ warnings: string[];
897
+ }>, z.ZodObject<{
898
+ configOptions: z.ZodArray<z.ZodUnknown, "many">;
899
+ }, "strip", z.ZodTypeAny, {
900
+ configOptions: unknown[];
901
+ }, {
902
+ configOptions: unknown[];
903
+ }>, z.ZodObject<{
904
+ providers: z.ZodArray<z.ZodObject<{
905
+ id: z.ZodString;
906
+ label: z.ZodString;
907
+ }, "strip", z.ZodTypeAny, {
908
+ id: string;
909
+ label: string;
910
+ }, {
911
+ id: string;
912
+ label: string;
913
+ }>, "many">;
914
+ }, "strip", z.ZodTypeAny, {
915
+ providers: {
916
+ id: string;
917
+ label: string;
918
+ }[];
919
+ }, {
920
+ providers: {
921
+ id: string;
922
+ label: string;
923
+ }[];
924
+ }>, z.ZodObject<{
925
+ providers: z.ZodArray<z.ZodObject<{
926
+ name: z.ZodString;
927
+ displayName: z.ZodString;
928
+ description: z.ZodString;
929
+ defaultModel: z.ZodString;
930
+ isConfigured: z.ZodBoolean;
931
+ providerType: z.ZodString;
932
+ configKeys: z.ZodArray<z.ZodObject<{
933
+ name: z.ZodString;
934
+ required: z.ZodBoolean;
935
+ secret: z.ZodBoolean;
936
+ default: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>>;
937
+ oauthFlow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
938
+ deviceCodeFlow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
939
+ primary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ name: string;
942
+ required: boolean;
943
+ secret: boolean;
944
+ default: string | null;
945
+ oauthFlow: boolean;
946
+ deviceCodeFlow: boolean;
947
+ primary: boolean;
948
+ }, {
949
+ name: string;
950
+ required: boolean;
951
+ secret: boolean;
952
+ default?: string | null | undefined;
953
+ oauthFlow?: boolean | undefined;
954
+ deviceCodeFlow?: boolean | undefined;
955
+ primary?: boolean | undefined;
956
+ }>, "many">;
957
+ setupSteps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
958
+ knownModels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
959
+ name: z.ZodString;
960
+ contextLimit: z.ZodNumber;
961
+ }, "strip", z.ZodTypeAny, {
962
+ name: string;
963
+ contextLimit: number;
964
+ }, {
965
+ name: string;
966
+ contextLimit: number;
967
+ }>, "many">>>;
968
+ }, "strip", z.ZodTypeAny, {
969
+ name: string;
970
+ displayName: string;
971
+ description: string;
972
+ defaultModel: string;
973
+ isConfigured: boolean;
974
+ providerType: string;
975
+ configKeys: {
976
+ name: string;
977
+ required: boolean;
978
+ secret: boolean;
979
+ default: string | null;
980
+ oauthFlow: boolean;
981
+ deviceCodeFlow: boolean;
982
+ primary: boolean;
983
+ }[];
984
+ setupSteps: string[];
985
+ knownModels: {
986
+ name: string;
987
+ contextLimit: number;
988
+ }[];
989
+ }, {
990
+ name: string;
991
+ displayName: string;
992
+ description: string;
993
+ defaultModel: string;
994
+ isConfigured: boolean;
995
+ providerType: string;
996
+ configKeys: {
997
+ name: string;
998
+ required: boolean;
999
+ secret: boolean;
1000
+ default?: string | null | undefined;
1001
+ oauthFlow?: boolean | undefined;
1002
+ deviceCodeFlow?: boolean | undefined;
1003
+ primary?: boolean | undefined;
1004
+ }[];
1005
+ setupSteps?: string[] | undefined;
1006
+ knownModels?: {
1007
+ name: string;
1008
+ contextLimit: number;
1009
+ }[] | undefined;
1010
+ }>, "many">;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ providers: {
1013
+ name: string;
1014
+ displayName: string;
1015
+ description: string;
1016
+ defaultModel: string;
1017
+ isConfigured: boolean;
1018
+ providerType: string;
1019
+ configKeys: {
1020
+ name: string;
1021
+ required: boolean;
1022
+ secret: boolean;
1023
+ default: string | null;
1024
+ oauthFlow: boolean;
1025
+ deviceCodeFlow: boolean;
1026
+ primary: boolean;
1027
+ }[];
1028
+ setupSteps: string[];
1029
+ knownModels: {
1030
+ name: string;
1031
+ contextLimit: number;
1032
+ }[];
1033
+ }[];
1034
+ }, {
1035
+ providers: {
1036
+ name: string;
1037
+ displayName: string;
1038
+ description: string;
1039
+ defaultModel: string;
1040
+ isConfigured: boolean;
1041
+ providerType: string;
1042
+ configKeys: {
1043
+ name: string;
1044
+ required: boolean;
1045
+ secret: boolean;
1046
+ default?: string | null | undefined;
1047
+ oauthFlow?: boolean | undefined;
1048
+ deviceCodeFlow?: boolean | undefined;
1049
+ primary?: boolean | undefined;
1050
+ }[];
1051
+ setupSteps?: string[] | undefined;
1052
+ knownModels?: {
1053
+ name: string;
1054
+ contextLimit: number;
1055
+ }[] | undefined;
1056
+ }[];
1057
+ }>, z.ZodObject<{
1058
+ models: z.ZodArray<z.ZodString, "many">;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ models: string[];
1061
+ }, {
1062
+ models: string[];
1063
+ }>, z.ZodObject<{
1064
+ value: z.ZodDefault<z.ZodOptional<z.ZodUnknown>>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ value?: unknown;
1067
+ }, {
1068
+ value?: unknown;
1069
+ }>, z.ZodObject<{
1070
+ exists: z.ZodBoolean;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ exists: boolean;
1073
+ }, {
1074
+ exists: boolean;
1075
+ }>, z.ZodObject<{
1076
+ data: z.ZodString;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ data: string;
1079
+ }, {
1080
+ data: string;
1081
+ }>, z.ZodObject<{
1082
+ sessionId: z.ZodString;
1083
+ title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1084
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1085
+ messageCount: z.ZodNumber;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ sessionId: string;
1088
+ messageCount: number;
1089
+ title?: string | null | undefined;
1090
+ updatedAt?: string | null | undefined;
1091
+ }, {
1092
+ sessionId: string;
1093
+ messageCount: number;
1094
+ title?: string | null | undefined;
1095
+ updatedAt?: string | null | undefined;
1096
+ }>]>, z.ZodUnknown]>>;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ id: string;
1099
+ result?: unknown;
1100
+ }, {
1101
+ id: string;
1102
+ result?: unknown;
1103
+ }>, z.ZodObject<{
1104
+ error: z.ZodObject<{
1105
+ code: z.ZodNumber;
1106
+ message: z.ZodString;
1107
+ data: z.ZodOptional<z.ZodUnknown>;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ code: number;
1110
+ message: string;
1111
+ data?: unknown;
1112
+ }, {
1113
+ code: number;
1114
+ message: string;
1115
+ data?: unknown;
1116
+ }>;
1117
+ id: z.ZodString;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ id: string;
1120
+ error: {
1121
+ code: number;
1122
+ message: string;
1123
+ data?: unknown;
1124
+ };
1125
+ }, {
1126
+ id: string;
1127
+ error: {
1128
+ code: number;
1129
+ message: string;
1130
+ data?: unknown;
1131
+ };
1132
+ }>]>;
1133
+ //# sourceMappingURL=zod.gen.d.ts.map