@dainprotocol/service-sdk 2.0.8 → 2.0.9

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.
@@ -2,13 +2,7 @@ import { z } from "zod";
2
2
  export declare const PricingInfoSchema: z.ZodObject<{
3
3
  pricePerUse: z.ZodNumber;
4
4
  currency: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- pricePerUse?: number;
7
- currency?: string;
8
- }, {
9
- pricePerUse?: number;
10
- currency?: string;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export declare const MetadataSchema: z.ZodObject<{
13
7
  id: z.ZodString;
14
8
  orgId: z.ZodString;
@@ -18,105 +12,31 @@ export declare const MetadataSchema: z.ZodObject<{
18
12
  version: z.ZodString;
19
13
  logo: z.ZodOptional<z.ZodString>;
20
14
  author: z.ZodString;
21
- tags: z.ZodArray<z.ZodString, "many">;
22
- requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
- }, "strip", z.ZodTypeAny, {
24
- id?: string;
25
- title?: string;
26
- author?: string;
27
- description?: string;
28
- version?: string;
29
- agentId?: string;
30
- orgId?: string;
31
- logo?: string;
32
- tags?: string[];
33
- requiredScopes?: string[];
34
- }, {
35
- id?: string;
36
- title?: string;
37
- author?: string;
38
- description?: string;
39
- version?: string;
40
- agentId?: string;
41
- orgId?: string;
42
- logo?: string;
43
- tags?: string[];
44
- requiredScopes?: string[];
45
- }>;
15
+ tags: z.ZodArray<z.ZodString>;
16
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ }, z.core.$strip>;
46
18
  export declare const ServiceConfigSchema: z.ZodObject<{
47
19
  id: z.ZodString;
48
20
  name: z.ZodString;
49
21
  description: z.ZodString;
50
22
  metadata: z.ZodObject<{
51
- capabilities: z.ZodArray<z.ZodString, "many">;
52
- languages: z.ZodArray<z.ZodString, "many">;
53
- }, "strip", z.ZodTypeAny, {
54
- capabilities?: string[];
55
- languages?: string[];
56
- }, {
57
- capabilities?: string[];
58
- languages?: string[];
59
- }>;
23
+ capabilities: z.ZodArray<z.ZodString>;
24
+ languages: z.ZodArray<z.ZodString>;
25
+ }, z.core.$strip>;
60
26
  recommendedPrompt: z.ZodString;
61
- recommendedTools: z.ZodArray<z.ZodString, "many">;
62
- }, "strip", z.ZodTypeAny, {
63
- id?: string;
64
- name?: string;
65
- description?: string;
66
- metadata?: {
67
- capabilities?: string[];
68
- languages?: string[];
69
- };
70
- recommendedPrompt?: string;
71
- recommendedTools?: string[];
72
- }, {
73
- id?: string;
74
- name?: string;
75
- description?: string;
76
- metadata?: {
77
- capabilities?: string[];
78
- languages?: string[];
79
- };
80
- recommendedPrompt?: string;
81
- recommendedTools?: string[];
82
- }>;
27
+ recommendedTools: z.ZodArray<z.ZodString>;
28
+ }, z.core.$strip>;
83
29
  export declare const ToolboxConfigSchema: z.ZodObject<{
84
30
  id: z.ZodString;
85
31
  name: z.ZodString;
86
32
  description: z.ZodString;
87
- tools: z.ZodArray<z.ZodString, "many">;
33
+ tools: z.ZodArray<z.ZodString>;
88
34
  metadata: z.ZodObject<{
89
35
  complexity: z.ZodString;
90
- applicableFields: z.ZodArray<z.ZodString, "many">;
91
- }, "strip", z.ZodTypeAny, {
92
- complexity?: string;
93
- applicableFields?: string[];
94
- }, {
95
- complexity?: string;
96
- applicableFields?: string[];
97
- }>;
36
+ applicableFields: z.ZodArray<z.ZodString>;
37
+ }, z.core.$strip>;
98
38
  recommendedPrompt: z.ZodString;
99
- }, "strip", z.ZodTypeAny, {
100
- id?: string;
101
- name?: string;
102
- description?: string;
103
- metadata?: {
104
- complexity?: string;
105
- applicableFields?: string[];
106
- };
107
- tools?: string[];
108
- recommendedPrompt?: string;
109
- }, {
110
- id?: string;
111
- name?: string;
112
- description?: string;
113
- metadata?: {
114
- complexity?: string;
115
- applicableFields?: string[];
116
- };
117
- tools?: string[];
118
- recommendedPrompt?: string;
119
- }>;
39
+ }, z.core.$strip>;
120
40
  export declare const ToolConfigSchema: z.ZodObject<{
121
41
  id: z.ZodString;
122
42
  name: z.ZodString;
@@ -124,146 +44,65 @@ export declare const ToolConfigSchema: z.ZodObject<{
124
44
  pricing: z.ZodDefault<z.ZodObject<{
125
45
  pricePerUse: z.ZodNumber;
126
46
  currency: z.ZodString;
127
- }, "strip", z.ZodTypeAny, {
128
- pricePerUse?: number;
129
- currency?: string;
130
- }, {
131
- pricePerUse?: number;
132
- currency?: string;
133
- }>>;
47
+ }, z.core.$strip>>;
134
48
  inputSchema: z.ZodAny;
135
49
  outputSchema: z.ZodAny;
136
50
  interface: z.ZodOptional<z.ZodString>;
137
51
  suggestConfirmation: z.ZodOptional<z.ZodBoolean>;
138
52
  suggestConfirmationUISchema: z.ZodOptional<z.ZodAny>;
139
- }, "strip", z.ZodTypeAny, {
140
- id?: string;
141
- name?: string;
142
- description?: string;
143
- pricing?: {
144
- pricePerUse?: number;
145
- currency?: string;
146
- };
147
- inputSchema?: any;
148
- outputSchema?: any;
149
- interface?: string;
150
- suggestConfirmation?: boolean;
151
- suggestConfirmationUISchema?: any;
152
- }, {
153
- id?: string;
154
- name?: string;
155
- description?: string;
156
- pricing?: {
157
- pricePerUse?: number;
158
- currency?: string;
159
- };
160
- inputSchema?: any;
161
- outputSchema?: any;
162
- interface?: string;
163
- suggestConfirmation?: boolean;
164
- suggestConfirmationUISchema?: any;
165
- }>;
53
+ }, z.core.$strip>;
166
54
  export declare const ServiceContextSchema: z.ZodObject<{
167
55
  id: z.ZodString;
168
56
  name: z.ZodString;
169
57
  description: z.ZodString;
170
- }, "strip", z.ZodTypeAny, {
171
- id?: string;
172
- name?: string;
173
- description?: string;
174
- }, {
175
- id?: string;
176
- name?: string;
177
- description?: string;
178
- }>;
179
- export declare const ServiceContextWithDataSchema: z.ZodObject<z.objectUtil.extendShape<{
58
+ }, z.core.$strip>;
59
+ export declare const ServiceContextWithDataSchema: z.ZodObject<{
180
60
  id: z.ZodString;
181
61
  name: z.ZodString;
182
62
  description: z.ZodString;
183
- }, {
184
63
  data: z.ZodAny;
185
- }>, "strip", z.ZodTypeAny, {
186
- id?: string;
187
- name?: string;
188
- description?: string;
189
- data?: any;
190
- }, {
191
- id?: string;
192
- name?: string;
193
- description?: string;
194
- data?: any;
64
+ }, z.core.$strip>;
65
+ export declare const DatasourceTypeSchema: z.ZodEnum<{
66
+ text: "text";
67
+ json: "json";
68
+ csv: "csv";
69
+ xml: "xml";
195
70
  }>;
196
- export declare const DatasourceTypeSchema: z.ZodEnum<["json", "csv", "xml", "text"]>;
197
71
  export declare const ServiceDatasourceSchema: z.ZodObject<{
198
72
  id: z.ZodString;
199
73
  name: z.ZodString;
200
74
  description: z.ZodString;
201
- type: z.ZodEnum<["json", "csv", "xml", "text"]>;
75
+ type: z.ZodEnum<{
76
+ text: "text";
77
+ json: "json";
78
+ csv: "csv";
79
+ xml: "xml";
80
+ }>;
202
81
  inputSchema: z.ZodAny;
203
- }, "strip", z.ZodTypeAny, {
204
- id?: string;
205
- type?: "text" | "json" | "csv" | "xml";
206
- name?: string;
207
- description?: string;
208
- inputSchema?: any;
209
- }, {
210
- id?: string;
211
- type?: "text" | "json" | "csv" | "xml";
212
- name?: string;
213
- description?: string;
214
- inputSchema?: any;
215
- }>;
216
- export declare const ServiceDatasourceWithDataSchema: z.ZodObject<z.objectUtil.extendShape<{
82
+ }, z.core.$strip>;
83
+ export declare const ServiceDatasourceWithDataSchema: z.ZodObject<{
217
84
  id: z.ZodString;
218
85
  name: z.ZodString;
219
86
  description: z.ZodString;
220
- type: z.ZodEnum<["json", "csv", "xml", "text"]>;
87
+ type: z.ZodEnum<{
88
+ text: "text";
89
+ json: "json";
90
+ csv: "csv";
91
+ xml: "xml";
92
+ }>;
221
93
  inputSchema: z.ZodAny;
222
- }, {
223
94
  data: z.ZodAny;
224
- }>, "strip", z.ZodTypeAny, {
225
- id?: string;
226
- type?: "text" | "json" | "csv" | "xml";
227
- name?: string;
228
- description?: string;
229
- data?: any;
230
- inputSchema?: any;
231
- }, {
232
- id?: string;
233
- type?: "text" | "json" | "csv" | "xml";
234
- name?: string;
235
- description?: string;
236
- data?: any;
237
- inputSchema?: any;
238
- }>;
95
+ }, z.core.$strip>;
239
96
  export declare const ServiceAgentSchema: z.ZodObject<{
240
97
  id: z.ZodString;
241
98
  name: z.ZodString;
242
- context: z.ZodArray<z.ZodAny, "many">;
99
+ context: z.ZodArray<z.ZodAny>;
243
100
  prompt: z.ZodString;
244
101
  resolveCondition: z.ZodString;
245
- serviceConnections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
102
+ serviceConnections: z.ZodOptional<z.ZodArray<z.ZodString>>;
246
103
  inputSchema: z.ZodAny;
247
104
  outputSchema: z.ZodAny;
248
- }, "strip", z.ZodTypeAny, {
249
- id?: string;
250
- name?: string;
251
- serviceConnections?: string[];
252
- context?: any[];
253
- prompt?: string;
254
- resolveCondition?: string;
255
- inputSchema?: any;
256
- outputSchema?: any;
257
- }, {
258
- id?: string;
259
- name?: string;
260
- serviceConnections?: string[];
261
- context?: any[];
262
- prompt?: string;
263
- resolveCondition?: string;
264
- inputSchema?: any;
265
- outputSchema?: any;
266
- }>;
105
+ }, z.core.$strip>;
267
106
  export declare const ToolWithJsonSchemaSchema: z.ZodObject<{
268
107
  id: z.ZodOptional<z.ZodString>;
269
108
  name: z.ZodOptional<z.ZodString>;
@@ -274,27 +113,7 @@ export declare const ToolWithJsonSchemaSchema: z.ZodObject<{
274
113
  interface: z.ZodOptional<z.ZodString>;
275
114
  suggestConfirmation: z.ZodOptional<z.ZodBoolean>;
276
115
  suggestConfirmationUISchema: z.ZodOptional<z.ZodAny>;
277
- }, "strip", z.ZodTypeAny, {
278
- id?: string;
279
- name?: string;
280
- description?: string;
281
- inputSchema?: any;
282
- outputSchema?: any;
283
- interface?: string;
284
- suggestConfirmation?: boolean;
285
- suggestConfirmationUISchema?: any;
286
- parameters?: any;
287
- }, {
288
- id?: string;
289
- name?: string;
290
- description?: string;
291
- inputSchema?: any;
292
- outputSchema?: any;
293
- interface?: string;
294
- suggestConfirmation?: boolean;
295
- suggestConfirmationUISchema?: any;
296
- parameters?: any;
297
- }>;
116
+ }, z.core.$strip>;
298
117
  export declare const GetAllToolsAsJsonSchemaResponseSchema: z.ZodObject<{
299
118
  tools: z.ZodArray<z.ZodObject<{
300
119
  id: z.ZodOptional<z.ZodString>;
@@ -306,171 +125,54 @@ export declare const GetAllToolsAsJsonSchemaResponseSchema: z.ZodObject<{
306
125
  interface: z.ZodOptional<z.ZodString>;
307
126
  suggestConfirmation: z.ZodOptional<z.ZodBoolean>;
308
127
  suggestConfirmationUISchema: z.ZodOptional<z.ZodAny>;
309
- }, "strip", z.ZodTypeAny, {
310
- id?: string;
311
- name?: string;
312
- description?: string;
313
- inputSchema?: any;
314
- outputSchema?: any;
315
- interface?: string;
316
- suggestConfirmation?: boolean;
317
- suggestConfirmationUISchema?: any;
318
- parameters?: any;
319
- }, {
320
- id?: string;
321
- name?: string;
322
- description?: string;
323
- inputSchema?: any;
324
- outputSchema?: any;
325
- interface?: string;
326
- suggestConfirmation?: boolean;
327
- suggestConfirmationUISchema?: any;
328
- parameters?: any;
329
- }>, "many">;
330
- reccomendedPrompts: z.ZodArray<z.ZodString, "many">;
331
- }, "strip", z.ZodTypeAny, {
332
- tools?: {
333
- id?: string;
334
- name?: string;
335
- description?: string;
336
- inputSchema?: any;
337
- outputSchema?: any;
338
- interface?: string;
339
- suggestConfirmation?: boolean;
340
- suggestConfirmationUISchema?: any;
341
- parameters?: any;
342
- }[];
343
- reccomendedPrompts?: string[];
344
- }, {
345
- tools?: {
346
- id?: string;
347
- name?: string;
348
- description?: string;
349
- inputSchema?: any;
350
- outputSchema?: any;
351
- interface?: string;
352
- suggestConfirmation?: boolean;
353
- suggestConfirmationUISchema?: any;
354
- parameters?: any;
355
- }[];
356
- reccomendedPrompts?: string[];
357
- }>;
128
+ }, z.core.$strip>>;
129
+ reccomendedPrompts: z.ZodArray<z.ZodString>;
130
+ }, z.core.$strip>;
358
131
  export declare const ServiceWidgetSchema: z.ZodObject<{
359
132
  id: z.ZodString;
360
133
  name: z.ZodString;
361
134
  description: z.ZodString;
362
135
  icon: z.ZodString;
363
- size: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
364
- }, "strip", z.ZodTypeAny, {
365
- id?: string;
366
- icon?: string;
367
- name?: string;
368
- description?: string;
369
- size?: "sm" | "md" | "lg";
370
- }, {
371
- id?: string;
372
- icon?: string;
373
- name?: string;
374
- description?: string;
375
- size?: "sm" | "md" | "lg";
376
- }>;
377
- export declare const ServiceWidgetWithDataSchema: z.ZodObject<z.objectUtil.extendShape<{
136
+ size: z.ZodOptional<z.ZodEnum<{
137
+ sm: "sm";
138
+ md: "md";
139
+ lg: "lg";
140
+ }>>;
141
+ }, z.core.$strip>;
142
+ export declare const ServiceWidgetWithDataSchema: z.ZodObject<{
378
143
  id: z.ZodString;
379
144
  name: z.ZodString;
380
145
  description: z.ZodString;
381
146
  icon: z.ZodString;
382
- size: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
383
- }, {
147
+ size: z.ZodOptional<z.ZodEnum<{
148
+ sm: "sm";
149
+ md: "md";
150
+ lg: "lg";
151
+ }>>;
384
152
  text: z.ZodOptional<z.ZodString>;
385
153
  data: z.ZodOptional<z.ZodAny>;
386
154
  ui: z.ZodOptional<z.ZodAny>;
387
- }>, "strip", z.ZodTypeAny, {
388
- id?: string;
389
- ui?: any;
390
- icon?: string;
391
- name?: string;
392
- description?: string;
393
- text?: string;
394
- data?: any;
395
- size?: "sm" | "md" | "lg";
396
- }, {
397
- id?: string;
398
- ui?: any;
399
- icon?: string;
400
- name?: string;
401
- description?: string;
402
- text?: string;
403
- data?: any;
404
- size?: "sm" | "md" | "lg";
405
- }>;
155
+ }, z.core.$strip>;
406
156
  export declare const OAuth2ProviderInfoSchema: z.ZodObject<{
407
157
  name: z.ZodString;
408
158
  config: z.ZodObject<{
409
159
  clientId: z.ZodString;
410
160
  authorizationUrl: z.ZodString;
411
161
  tokenUrl: z.ZodString;
412
- scopes: z.ZodArray<z.ZodString, "many">;
162
+ scopes: z.ZodArray<z.ZodString>;
413
163
  reason: z.ZodOptional<z.ZodString>;
414
- requiredTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
- }, "strip", z.ZodTypeAny, {
416
- clientId?: string;
417
- authorizationUrl?: string;
418
- tokenUrl?: string;
419
- scopes?: string[];
420
- reason?: string;
421
- requiredTools?: string[];
422
- }, {
423
- clientId?: string;
424
- authorizationUrl?: string;
425
- tokenUrl?: string;
426
- scopes?: string[];
427
- reason?: string;
428
- requiredTools?: string[];
429
- }>;
164
+ requiredTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
+ }, z.core.$strip>;
430
166
  connected: z.ZodBoolean;
431
- }, "strip", z.ZodTypeAny, {
432
- name?: string;
433
- config?: {
434
- clientId?: string;
435
- authorizationUrl?: string;
436
- tokenUrl?: string;
437
- scopes?: string[];
438
- reason?: string;
439
- requiredTools?: string[];
440
- };
441
- connected?: boolean;
442
- }, {
443
- name?: string;
444
- config?: {
445
- clientId?: string;
446
- authorizationUrl?: string;
447
- tokenUrl?: string;
448
- scopes?: string[];
449
- reason?: string;
450
- requiredTools?: string[];
451
- };
452
- connected?: boolean;
453
- }>;
167
+ }, z.core.$strip>;
454
168
  export declare const ExampleQuerySchema: z.ZodObject<{
455
169
  category: z.ZodString;
456
- queries: z.ZodArray<z.ZodString, "many">;
457
- }, "strip", z.ZodTypeAny, {
458
- category?: string;
459
- queries?: string[];
460
- }, {
461
- category?: string;
462
- queries?: string[];
463
- }>;
170
+ queries: z.ZodArray<z.ZodString>;
171
+ }, z.core.$strip>;
464
172
  export declare const ExampleQueriesSchema: z.ZodArray<z.ZodObject<{
465
173
  category: z.ZodString;
466
- queries: z.ZodArray<z.ZodString, "many">;
467
- }, "strip", z.ZodTypeAny, {
468
- category?: string;
469
- queries?: string[];
470
- }, {
471
- category?: string;
472
- queries?: string[];
473
- }>, "many">;
174
+ queries: z.ZodArray<z.ZodString>;
175
+ }, z.core.$strip>>;
474
176
  export declare const HumanActionStepSchema: z.ZodObject<{
475
177
  id: z.ZodString;
476
178
  processId: z.ZodString;
@@ -482,81 +184,22 @@ export declare const HumanActionStepSchema: z.ZodObject<{
482
184
  description: z.ZodOptional<z.ZodString>;
483
185
  requiresResponse: z.ZodOptional<z.ZodBoolean>;
484
186
  callbackUrl: z.ZodOptional<z.ZodString>;
485
- }, "strip", z.ZodTypeAny, {
486
- id?: string;
487
- title?: string;
488
- description?: string;
489
- callbackUrl?: string;
490
- requiresResponse?: boolean;
491
- }, {
492
- id?: string;
493
- title?: string;
494
- description?: string;
495
- callbackUrl?: string;
496
- requiresResponse?: boolean;
497
- }>, "many">;
498
- status: z.ZodEnum<["pending", "completed", "failed", "timeout"]>;
187
+ }, z.core.$strip>>;
188
+ status: z.ZodEnum<{
189
+ pending: "pending";
190
+ completed: "completed";
191
+ failed: "failed";
192
+ timeout: "timeout";
193
+ }>;
499
194
  response: z.ZodOptional<z.ZodObject<{
500
195
  actionId: z.ZodString;
501
196
  responseText: z.ZodOptional<z.ZodString>;
502
197
  timestamp: z.ZodDate;
503
198
  data: z.ZodOptional<z.ZodAny>;
504
- }, "strip", z.ZodTypeAny, {
505
- data?: any;
506
- timestamp?: Date;
507
- actionId?: string;
508
- responseText?: string;
509
- }, {
510
- data?: any;
511
- timestamp?: Date;
512
- actionId?: string;
513
- responseText?: string;
514
- }>>;
199
+ }, z.core.$strip>>;
515
200
  createdAt: z.ZodDate;
516
201
  timeoutAt: z.ZodOptional<z.ZodDate>;
517
- }, "strip", z.ZodTypeAny, {
518
- id?: string;
519
- ui?: any;
520
- message?: string;
521
- status?: "pending" | "completed" | "failed" | "timeout";
522
- createdAt?: Date;
523
- processId?: string;
524
- actions?: {
525
- id?: string;
526
- title?: string;
527
- description?: string;
528
- callbackUrl?: string;
529
- requiresResponse?: boolean;
530
- }[];
531
- response?: {
532
- data?: any;
533
- timestamp?: Date;
534
- actionId?: string;
535
- responseText?: string;
536
- };
537
- timeoutAt?: Date;
538
- }, {
539
- id?: string;
540
- ui?: any;
541
- message?: string;
542
- status?: "pending" | "completed" | "failed" | "timeout";
543
- createdAt?: Date;
544
- processId?: string;
545
- actions?: {
546
- id?: string;
547
- title?: string;
548
- description?: string;
549
- callbackUrl?: string;
550
- requiresResponse?: boolean;
551
- }[];
552
- response?: {
553
- data?: any;
554
- timestamp?: Date;
555
- actionId?: string;
556
- responseText?: string;
557
- };
558
- timeoutAt?: Date;
559
- }>;
202
+ }, z.core.$strip>;
560
203
  export type PricingInfo = z.infer<typeof PricingInfoSchema>;
561
204
  export type ServiceMetadata = z.infer<typeof MetadataSchema>;
562
205
  export type ServiceConfig = z.infer<typeof ServiceConfigSchema>;
@@ -17,30 +17,18 @@ export declare const CitationSchema: z.ZodObject<{
17
17
  title: z.ZodOptional<z.ZodString>;
18
18
  author: z.ZodOptional<z.ZodString>;
19
19
  date: z.ZodOptional<z.ZodString>;
20
- type: z.ZodOptional<z.ZodEnum<["article", "book", "document", "webpage", "video", "report", "other"]>>;
20
+ type: z.ZodOptional<z.ZodEnum<{
21
+ article: "article";
22
+ book: "book";
23
+ document: "document";
24
+ webpage: "webpage";
25
+ video: "video";
26
+ report: "report";
27
+ other: "other";
28
+ }>>;
21
29
  source: z.ZodOptional<z.ZodString>;
22
30
  icon: z.ZodOptional<z.ZodString>;
23
- }, "strip", z.ZodTypeAny, {
24
- id?: string;
25
- ui?: any;
26
- url?: string;
27
- title?: string;
28
- author?: string;
29
- date?: string;
30
- type?: "article" | "book" | "document" | "webpage" | "video" | "report" | "other";
31
- source?: string;
32
- icon?: string;
33
- }, {
34
- id?: string;
35
- ui?: any;
36
- url?: string;
37
- title?: string;
38
- author?: string;
39
- date?: string;
40
- type?: "article" | "book" | "document" | "webpage" | "video" | "report" | "other";
41
- source?: string;
42
- icon?: string;
43
- }>;
31
+ }, z.core.$strip>;
44
32
  export declare const ContentSchema: z.ZodObject<{
45
33
  content: z.ZodString;
46
34
  id: z.ZodString;
@@ -51,59 +39,19 @@ export declare const ContentSchema: z.ZodObject<{
51
39
  title: z.ZodOptional<z.ZodString>;
52
40
  author: z.ZodOptional<z.ZodString>;
53
41
  date: z.ZodOptional<z.ZodString>;
54
- type: z.ZodOptional<z.ZodEnum<["article", "book", "document", "webpage", "video", "report", "other"]>>;
42
+ type: z.ZodOptional<z.ZodEnum<{
43
+ article: "article";
44
+ book: "book";
45
+ document: "document";
46
+ webpage: "webpage";
47
+ video: "video";
48
+ report: "report";
49
+ other: "other";
50
+ }>>;
55
51
  source: z.ZodOptional<z.ZodString>;
56
52
  icon: z.ZodOptional<z.ZodString>;
57
- }, "strip", z.ZodTypeAny, {
58
- id?: string;
59
- ui?: any;
60
- url?: string;
61
- title?: string;
62
- author?: string;
63
- date?: string;
64
- type?: "article" | "book" | "document" | "webpage" | "video" | "report" | "other";
65
- source?: string;
66
- icon?: string;
67
- }, {
68
- id?: string;
69
- ui?: any;
70
- url?: string;
71
- title?: string;
72
- author?: string;
73
- date?: string;
74
- type?: "article" | "book" | "document" | "webpage" | "video" | "report" | "other";
75
- source?: string;
76
- icon?: string;
77
- }>;
78
- }, "strip", z.ZodTypeAny, {
79
- id?: string;
80
- content?: string;
81
- citation?: {
82
- id?: string;
83
- ui?: any;
84
- url?: string;
85
- title?: string;
86
- author?: string;
87
- date?: string;
88
- type?: "article" | "book" | "document" | "webpage" | "video" | "report" | "other";
89
- source?: string;
90
- icon?: string;
91
- };
92
- }, {
93
- id?: string;
94
- content?: string;
95
- citation?: {
96
- id?: string;
97
- ui?: any;
98
- url?: string;
99
- title?: string;
100
- author?: string;
101
- date?: string;
102
- type?: "article" | "book" | "document" | "webpage" | "video" | "report" | "other";
103
- source?: string;
104
- icon?: string;
105
- };
106
- }>;
53
+ }, z.core.$strip>;
54
+ }, z.core.$strip>;
107
55
  export declare const KnowledgeSearchInterface: ToolInterface;
108
56
  export declare const TOOL_INTERFACES: {
109
57
  readonly "knowledge-search": ToolInterface<any, any>;
@@ -34,7 +34,7 @@ exports.KnowledgeSearchInterface = {
34
34
  input: zod_1.z.object({
35
35
  query: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).describe("Search query or queries"),
36
36
  limit: zod_1.z.number().optional().describe("Maximum number of results"),
37
- filters: zod_1.z.record(zod_1.z.any()).optional().describe("Additional search filters"),
37
+ filters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional().describe("Additional search filters"),
38
38
  }),
39
39
  output: zod_1.z.object({
40
40
  results: zod_1.z.array(exports.ContentSchema).describe("Array of search results with content and citations"),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iCAAiC;AACjC,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC3B,0DAAqC,CAAA;AACvC,CAAC,EAFW,iBAAiB,iCAAjB,iBAAiB,QAE5B;AAYD,kBAAkB;AACL,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IAC7D,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAC5D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAC9D,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACxD,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,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AAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;KACxF,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,qBAAa,CAAC,CAAC,QAAQ,CAAC,oDAAoD,CAAC;QAC9F,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QAC/E,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAC9E,CAAC;CACH,CAAC;AAEF,yBAAyB;AACZ,QAAA,eAAe,GAAG;IAC7B,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,gCAAwB;CACtD,CAAC"}
@@ -1,3 +1,3 @@
1
- import { ZodType, ZodTypeDef } from "zod";
2
- export declare function getSchemaTypeName(schema: ZodType<any, ZodTypeDef, any>): string;
3
- export declare function getDetailedSchemaStructure(schema: ZodType<any, ZodTypeDef, any>): any;
1
+ import { ZodType } from "zod";
2
+ export declare function getSchemaTypeName(schema: ZodType<any, any, any>): string;
3
+ export declare function getDetailedSchemaStructure(schema: ZodType<any, any, any>): any;
@@ -84,7 +84,7 @@ function getDetailedSchemaStructure(schema) {
84
84
  case "ZodTuple":
85
85
  return {
86
86
  ...baseInfo,
87
- items: schema.items.map((item) => getDetailedSchemaStructure(item)),
87
+ items: schema._def.items.map((item) => getDetailedSchemaStructure(item)),
88
88
  };
89
89
  case "ZodIntersection":
90
90
  return {
@@ -92,13 +92,14 @@ function getDetailedSchemaStructure(schema) {
92
92
  left: getDetailedSchemaStructure(schema._def.left),
93
93
  right: getDetailedSchemaStructure(schema._def.right),
94
94
  };
95
- case "ZodDiscriminatedUnion":
95
+ case "ZodDiscriminatedUnion": {
96
+ const duDef = schema._def;
96
97
  return {
97
98
  ...baseInfo,
98
- discriminator: schema
99
- .discriminator,
100
- options: schema.options.map((option) => getDetailedSchemaStructure(option)),
99
+ discriminator: duDef.discriminator,
100
+ options: Array.from(duDef.options.values()).map((option) => getDetailedSchemaStructure(option)),
101
101
  };
102
+ }
102
103
  case "ZodDefault":
103
104
  return {
104
105
  ...baseInfo,
@@ -1 +1 @@
1
- {"version":3,"file":"schemaStructure.js","sourceRoot":"","sources":["../../src/lib/schemaStructure.ts"],"names":[],"mappings":";AAAA,kCAAkC;;AAIlC,8CAsBC;AAED,gEAqGC;AA/HD,6BAA6C;AAE7C,SAAgB,iBAAiB,CAC/B,MAAqC;IAErC,IAAI,MAAM,YAAY,OAAC,CAAC,UAAU;QAAE,OAAO,YAAY,CAAC;IACxD,IAAI,MAAM,YAAY,OAAC,CAAC,WAAW;QAAE,OAAO,aAAa,CAAC;IAC1D,IAAI,MAAM,YAAY,OAAC,CAAC,WAAW;QAAE,OAAO,aAAa,CAAC;IAE1D,IAAI,MAAM,YAAY,OAAC,CAAC,QAAQ;QAAE,OAAO,UAAU,CAAC;IACpD,IAAI,MAAM,YAAY,OAAC,CAAC,OAAO;QAAE,OAAO,SAAS,CAAC;IAClD,IAAI,MAAM,YAAY,OAAC,CAAC,QAAQ;QAAE,OAAO,UAAU,CAAC;IACpD,IAAI,MAAM,YAAY,OAAC,CAAC,SAAS;QAAE,OAAO,WAAW,CAAC;IAEtD,IAAI,MAAM,YAAY,OAAC,CAAC,SAAS;QAAE,OAAO,WAAW,CAAC;IACtD,IAAI,MAAM,YAAY,OAAC,CAAC,SAAS;QAAE,OAAO,WAAW,CAAC;IACtD,IAAI,MAAM,YAAY,OAAC,CAAC,UAAU;QAAE,OAAO,YAAY,CAAC;IACxD,IAAI,MAAM,YAAY,OAAC,CAAC,UAAU;QAAE,OAAO,YAAY,CAAC;IACxD,IAAI,MAAM,YAAY,OAAC,CAAC,QAAQ;QAAE,OA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AAC;QACJ,KAAK,iBAAiB;YACpB,OAAO;gBACL,GAAG,QAAQ;gBACX,IAAI,EAAE,0BAA0B,CAC7B,MAAsC,CAAC,IAAI,CAAC,IAAI,CAClD;gBACD,KAAK,EAAE,0BAA0B,CAC9B,MAAsC,CAAC,IAAI,CAAC,KAAK,CACnD;aACF,CAAC;QACJ,KAAK,uBAAuB,CAAC,CAAC,CAAC;YAK7B,MAAM,KAAK,GAAI,MAA4B,CAAC,IAA6B,CAAC;YAC1E,OAAO;gBACL,GAAG,QAAQ;gBACX,aAAa,EAAE,KAAK,CAAC,aAAa;gBAClC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAC7C,CAAC,MAAe,EAAE,EAAE,CAAC,0BAA0B,CAAC,MAAM,CAAC,CACxD;aACF,CAAC;QACJ,CAAC;QACD,KAAK,YAAY;YACf,OAAO;gBACL,GAAG,QAAQ;gBACX,SAAS,EAAE,0BAA0B,CAClC,MAA4B,CAAC,IAAI,CAAC,SAAS,CAC7C;gBACD,YAAY,EAAG,MAA4B,CAAC,IAAI,CAAC,YAAY,EAAE;aAChE,CAAC;QAEJ;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC"}
@@ -29,10 +29,6 @@ export declare const CoreUtils: {
29
29
  export declare function createToolWithInterface<T extends ToolInterfaceType>(config: ToolConfig & {
30
30
  interface: T;
31
31
  }): ToolConfig;
32
- export declare function createOAuth2Tool(provider: string, prefix?: string): ToolConfig<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodObject<{
32
+ export declare function createOAuth2Tool(provider: string, prefix?: string): ToolConfig<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
33
33
  authUrl: z.ZodString;
34
- }, "strip", z.ZodTypeAny, {
35
- authUrl?: string;
36
- }, {
37
- authUrl?: string;
38
- }>>;
34
+ }, z.core.$strip>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainprotocol/service-sdk",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "DAIN Service SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -124,8 +124,6 @@
124
124
  "typescript": "^5.0.0"
125
125
  },
126
126
  "dependencies": {
127
- "@ai-sdk/anthropic": "^0.0.23",
128
- "@ai-sdk/openai": "^0.0.33",
129
127
  "@dainprotocol/oauth2-storage-drizzle": "^0.1.16",
130
128
  "@dainprotocol/oauth2-token-manager": "^0.2.4",
131
129
  "@dainprotocol/utils": "^0.0.64",
@@ -156,7 +154,7 @@
156
154
  "telegram": "^2.26.16",
157
155
  "tslib": "^2.6.3",
158
156
  "ws": "^8.18.0",
159
- "zod": "~3.23.8",
157
+ "zod": "4.1.12",
160
158
  "zod-to-json-schema": "~3.23.3"
161
159
  },
162
160
  "files": [