@swarmdock/shared 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas.d.ts CHANGED
@@ -1,5 +1,85 @@
1
1
  import { z } from 'zod';
2
2
  export declare const MicroUsdcAmountSchema: z.ZodString;
3
+ export declare const AgentSkillSchema: z.ZodObject<{
4
+ skillId: z.ZodString;
5
+ skillName: z.ZodString;
6
+ description: z.ZodString;
7
+ category: z.ZodString;
8
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
9
+ inputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10
+ outputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11
+ pricingModel: z.ZodDefault<z.ZodEnum<["per-task", "per-hour", "per-token", "per-request", "custom"]>>;
12
+ basePrice: z.ZodString;
13
+ examplePrompts: z.ZodArray<z.ZodString, "many">;
14
+ benchmarkScores: z.ZodOptional<z.ZodUnknown>;
15
+ sampleOutputs: z.ZodOptional<z.ZodUnknown>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ skillId: string;
18
+ skillName: string;
19
+ description: string;
20
+ category: string;
21
+ tags: string[];
22
+ inputModes: string[];
23
+ outputModes: string[];
24
+ pricingModel: "per-task" | "per-hour" | "per-token" | "per-request" | "custom";
25
+ basePrice: string;
26
+ examplePrompts: string[];
27
+ benchmarkScores?: unknown;
28
+ sampleOutputs?: unknown;
29
+ }, {
30
+ skillId: string;
31
+ skillName: string;
32
+ description: string;
33
+ category: string;
34
+ basePrice: string;
35
+ examplePrompts: string[];
36
+ tags?: string[] | undefined;
37
+ inputModes?: string[] | undefined;
38
+ outputModes?: string[] | undefined;
39
+ pricingModel?: "per-task" | "per-hour" | "per-token" | "per-request" | "custom" | undefined;
40
+ benchmarkScores?: unknown;
41
+ sampleOutputs?: unknown;
42
+ }>;
43
+ export declare const AgentSkillsUpdateSchema: z.ZodArray<z.ZodObject<{
44
+ skillId: z.ZodString;
45
+ skillName: z.ZodString;
46
+ description: z.ZodString;
47
+ category: z.ZodString;
48
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
49
+ inputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
50
+ outputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
51
+ pricingModel: z.ZodDefault<z.ZodEnum<["per-task", "per-hour", "per-token", "per-request", "custom"]>>;
52
+ basePrice: z.ZodString;
53
+ examplePrompts: z.ZodArray<z.ZodString, "many">;
54
+ benchmarkScores: z.ZodOptional<z.ZodUnknown>;
55
+ sampleOutputs: z.ZodOptional<z.ZodUnknown>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ skillId: string;
58
+ skillName: string;
59
+ description: string;
60
+ category: string;
61
+ tags: string[];
62
+ inputModes: string[];
63
+ outputModes: string[];
64
+ pricingModel: "per-task" | "per-hour" | "per-token" | "per-request" | "custom";
65
+ basePrice: string;
66
+ examplePrompts: string[];
67
+ benchmarkScores?: unknown;
68
+ sampleOutputs?: unknown;
69
+ }, {
70
+ skillId: string;
71
+ skillName: string;
72
+ description: string;
73
+ category: string;
74
+ basePrice: string;
75
+ examplePrompts: string[];
76
+ tags?: string[] | undefined;
77
+ inputModes?: string[] | undefined;
78
+ outputModes?: string[] | undefined;
79
+ pricingModel?: "per-task" | "per-hour" | "per-token" | "per-request" | "custom" | undefined;
80
+ benchmarkScores?: unknown;
81
+ sampleOutputs?: unknown;
82
+ }>, "many">;
3
83
  export declare const AgentRegisterSchema: z.ZodObject<{
4
84
  publicKey: z.ZodString;
5
85
  displayName: z.ZodString;
@@ -10,7 +90,7 @@ export declare const AgentRegisterSchema: z.ZodObject<{
10
90
  frameworkVersion: z.ZodOptional<z.ZodString>;
11
91
  modelProvider: z.ZodOptional<z.ZodString>;
12
92
  modelName: z.ZodOptional<z.ZodString>;
13
- walletAddress: z.ZodString;
93
+ walletAddress: z.ZodOptional<z.ZodString>;
14
94
  agentCardUrl: z.ZodOptional<z.ZodString>;
15
95
  skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
16
96
  skillId: z.ZodString;
@@ -22,13 +102,13 @@ export declare const AgentRegisterSchema: z.ZodObject<{
22
102
  outputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
23
103
  pricingModel: z.ZodDefault<z.ZodEnum<["per-task", "per-hour", "per-token", "per-request", "custom"]>>;
24
104
  basePrice: z.ZodString;
25
- examplePrompts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
105
+ examplePrompts: z.ZodArray<z.ZodString, "many">;
26
106
  benchmarkScores: z.ZodOptional<z.ZodUnknown>;
27
107
  sampleOutputs: z.ZodOptional<z.ZodUnknown>;
28
108
  }, "strip", z.ZodTypeAny, {
29
- description: string;
30
109
  skillId: string;
31
110
  skillName: string;
111
+ description: string;
32
112
  category: string;
33
113
  tags: string[];
34
114
  inputModes: string[];
@@ -39,27 +119,26 @@ export declare const AgentRegisterSchema: z.ZodObject<{
39
119
  benchmarkScores?: unknown;
40
120
  sampleOutputs?: unknown;
41
121
  }, {
42
- description: string;
43
122
  skillId: string;
44
123
  skillName: string;
124
+ description: string;
45
125
  category: string;
46
126
  basePrice: string;
127
+ examplePrompts: string[];
47
128
  tags?: string[] | undefined;
48
129
  inputModes?: string[] | undefined;
49
130
  outputModes?: string[] | undefined;
50
131
  pricingModel?: "per-task" | "per-hour" | "per-token" | "per-request" | "custom" | undefined;
51
- examplePrompts?: string[] | undefined;
52
132
  benchmarkScores?: unknown;
53
133
  sampleOutputs?: unknown;
54
134
  }>, "many">>;
55
135
  }, "strip", z.ZodTypeAny, {
56
136
  publicKey: string;
57
137
  displayName: string;
58
- walletAddress: string;
59
138
  skills: {
60
- description: string;
61
139
  skillId: string;
62
140
  skillName: string;
141
+ description: string;
63
142
  category: string;
64
143
  tags: string[];
65
144
  inputModes: string[];
@@ -77,11 +156,11 @@ export declare const AgentRegisterSchema: z.ZodObject<{
77
156
  frameworkVersion?: string | undefined;
78
157
  modelProvider?: string | undefined;
79
158
  modelName?: string | undefined;
159
+ walletAddress?: string | undefined;
80
160
  agentCardUrl?: string | undefined;
81
161
  }, {
82
162
  publicKey: string;
83
163
  displayName: string;
84
- walletAddress: string;
85
164
  description?: string | undefined;
86
165
  avatarUrl?: string | undefined;
87
166
  ownerDid?: string | undefined;
@@ -89,18 +168,19 @@ export declare const AgentRegisterSchema: z.ZodObject<{
89
168
  frameworkVersion?: string | undefined;
90
169
  modelProvider?: string | undefined;
91
170
  modelName?: string | undefined;
171
+ walletAddress?: string | undefined;
92
172
  agentCardUrl?: string | undefined;
93
173
  skills?: {
94
- description: string;
95
174
  skillId: string;
96
175
  skillName: string;
176
+ description: string;
97
177
  category: string;
98
178
  basePrice: string;
179
+ examplePrompts: string[];
99
180
  tags?: string[] | undefined;
100
181
  inputModes?: string[] | undefined;
101
182
  outputModes?: string[] | undefined;
102
183
  pricingModel?: "per-task" | "per-hour" | "per-token" | "per-request" | "custom" | undefined;
103
- examplePrompts?: string[] | undefined;
104
184
  benchmarkScores?: unknown;
105
185
  sampleOutputs?: unknown;
106
186
  }[] | undefined;
@@ -128,6 +208,7 @@ export declare const AgentLoginChallengeSchema: z.ZodObject<{
128
208
  export declare const AgentUpdateSchema: z.ZodObject<{
129
209
  displayName: z.ZodOptional<z.ZodString>;
130
210
  description: z.ZodOptional<z.ZodString>;
211
+ walletAddress: z.ZodOptional<z.ZodString>;
131
212
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
213
  ownerDid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
214
  framework: z.ZodOptional<z.ZodString>;
@@ -136,28 +217,45 @@ export declare const AgentUpdateSchema: z.ZodObject<{
136
217
  modelName: z.ZodOptional<z.ZodString>;
137
218
  agentCardUrl: z.ZodOptional<z.ZodString>;
138
219
  dailySpendingLimit: z.ZodOptional<z.ZodString>;
220
+ webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
+ webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
+ webhookEvents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
223
+ mcpEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
+ mcpCapabilities: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
139
225
  }, "strip", z.ZodTypeAny, {
140
- displayName?: string | undefined;
141
226
  description?: string | undefined;
227
+ displayName?: string | undefined;
142
228
  avatarUrl?: string | null | undefined;
143
229
  ownerDid?: string | null | undefined;
144
230
  framework?: string | undefined;
145
231
  frameworkVersion?: string | undefined;
146
232
  modelProvider?: string | undefined;
147
233
  modelName?: string | undefined;
234
+ walletAddress?: string | undefined;
148
235
  agentCardUrl?: string | undefined;
149
236
  dailySpendingLimit?: string | undefined;
237
+ webhookUrl?: string | null | undefined;
238
+ webhookSecret?: string | null | undefined;
239
+ webhookEvents?: string[] | null | undefined;
240
+ mcpEndpoint?: string | null | undefined;
241
+ mcpCapabilities?: unknown;
150
242
  }, {
151
- displayName?: string | undefined;
152
243
  description?: string | undefined;
244
+ displayName?: string | undefined;
153
245
  avatarUrl?: string | null | undefined;
154
246
  ownerDid?: string | null | undefined;
155
247
  framework?: string | undefined;
156
248
  frameworkVersion?: string | undefined;
157
249
  modelProvider?: string | undefined;
158
250
  modelName?: string | undefined;
251
+ walletAddress?: string | undefined;
159
252
  agentCardUrl?: string | undefined;
160
253
  dailySpendingLimit?: string | undefined;
254
+ webhookUrl?: string | null | undefined;
255
+ webhookSecret?: string | null | undefined;
256
+ webhookEvents?: string[] | null | undefined;
257
+ mcpEndpoint?: string | null | undefined;
258
+ mcpCapabilities?: unknown;
161
259
  }>;
162
260
  export declare const TaskCreateSchema: z.ZodObject<{
163
261
  title: z.ZodString;
@@ -170,6 +268,9 @@ export declare const TaskCreateSchema: z.ZodObject<{
170
268
  budgetMax: z.ZodString;
171
269
  deadline: z.ZodOptional<z.ZodString>;
172
270
  directAssigneeId: z.ZodOptional<z.ZodString>;
271
+ visibility: z.ZodDefault<z.ZodEnum<["public", "private"]>>;
272
+ revealIdentity: z.ZodDefault<z.ZodBoolean>;
273
+ invitedAgentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
173
274
  }, "strip", z.ZodTypeAny, {
174
275
  description: string;
175
276
  title: string;
@@ -177,6 +278,9 @@ export declare const TaskCreateSchema: z.ZodObject<{
177
278
  inputFiles: string[];
178
279
  matchingMode: "open" | "direct" | "auto";
179
280
  budgetMax: string;
281
+ visibility: "public" | "private";
282
+ revealIdentity: boolean;
283
+ invitedAgentIds: string[];
180
284
  inputData?: unknown;
181
285
  budgetMin?: string | undefined;
182
286
  deadline?: string | undefined;
@@ -192,6 +296,9 @@ export declare const TaskCreateSchema: z.ZodObject<{
192
296
  budgetMin?: string | undefined;
193
297
  deadline?: string | undefined;
194
298
  directAssigneeId?: string | undefined;
299
+ visibility?: "public" | "private" | undefined;
300
+ revealIdentity?: boolean | undefined;
301
+ invitedAgentIds?: string[] | undefined;
195
302
  }>;
196
303
  export declare const TaskUpdateSchema: z.ZodObject<{
197
304
  title: z.ZodOptional<z.ZodString>;
@@ -209,27 +316,27 @@ export declare const TaskUpdateSchema: z.ZodObject<{
209
316
  export declare const TaskSubmitSchema: z.ZodObject<{
210
317
  artifacts: z.ZodArray<z.ZodObject<{
211
318
  type: z.ZodString;
212
- content: z.ZodUnknown;
319
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
213
320
  }, "strip", z.ZodTypeAny, {
214
321
  type: string;
215
- content?: unknown;
322
+ content: string | unknown[] | Record<string, unknown>;
216
323
  }, {
217
324
  type: string;
218
- content?: unknown;
325
+ content: string | unknown[] | Record<string, unknown>;
219
326
  }>, "many">;
220
327
  files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
221
328
  notes: z.ZodOptional<z.ZodString>;
222
329
  }, "strip", z.ZodTypeAny, {
223
330
  artifacts: {
224
331
  type: string;
225
- content?: unknown;
332
+ content: string | unknown[] | Record<string, unknown>;
226
333
  }[];
227
334
  files: string[];
228
335
  notes?: string | undefined;
229
336
  }, {
230
337
  artifacts: {
231
338
  type: string;
232
- content?: unknown;
339
+ content: string | unknown[] | Record<string, unknown>;
233
340
  }[];
234
341
  files?: string[] | undefined;
235
342
  notes?: string | undefined;
@@ -245,31 +352,48 @@ export declare const TaskDisputeSchema: z.ZodObject<{
245
352
  evidence?: unknown;
246
353
  }>;
247
354
  export declare const DisputeResolveSchema: z.ZodObject<{
248
- resolution: z.ZodEnum<["release", "refund", "split"]>;
355
+ resolution: z.ZodEnum<["release", "refund"]>;
249
356
  notes: z.ZodOptional<z.ZodString>;
250
- splitPercent: z.ZodOptional<z.ZodNumber>;
251
357
  }, "strip", z.ZodTypeAny, {
252
- resolution: "release" | "refund" | "split";
358
+ resolution: "release" | "refund";
253
359
  notes?: string | undefined;
254
- splitPercent?: number | undefined;
255
360
  }, {
256
- resolution: "release" | "refund" | "split";
361
+ resolution: "release" | "refund";
257
362
  notes?: string | undefined;
258
- splitPercent?: number | undefined;
259
363
  }>;
260
364
  export declare const TribunalVoteSchema: z.ZodObject<{
261
365
  verdict: z.ZodEnum<["requester_wins", "assignee_wins", "split"]>;
262
366
  notes: z.ZodOptional<z.ZodString>;
263
367
  }, "strip", z.ZodTypeAny, {
264
- verdict: "split" | "requester_wins" | "assignee_wins";
368
+ verdict: "requester_wins" | "assignee_wins" | "split";
265
369
  notes?: string | undefined;
266
370
  }, {
267
- verdict: "split" | "requester_wins" | "assignee_wins";
371
+ verdict: "requester_wins" | "assignee_wins" | "split";
268
372
  notes?: string | undefined;
269
373
  }>;
374
+ export declare const InviteAgentsSchema: z.ZodObject<{
375
+ agentIds: z.ZodArray<z.ZodString, "many">;
376
+ }, "strip", z.ZodTypeAny, {
377
+ agentIds: string[];
378
+ }, {
379
+ agentIds: string[];
380
+ }>;
381
+ export declare const InvitationListQuerySchema: z.ZodObject<{
382
+ status: z.ZodOptional<z.ZodString>;
383
+ limit: z.ZodDefault<z.ZodNumber>;
384
+ offset: z.ZodDefault<z.ZodNumber>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ limit: number;
387
+ offset: number;
388
+ status?: string | undefined;
389
+ }, {
390
+ status?: string | undefined;
391
+ limit?: number | undefined;
392
+ offset?: number | undefined;
393
+ }>;
270
394
  export declare const TaskListQuerySchema: z.ZodObject<{
271
395
  q: z.ZodOptional<z.ZodString>;
272
- status: z.ZodOptional<z.ZodString>;
396
+ status: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
273
397
  skills: z.ZodOptional<z.ZodString>;
274
398
  budgetMin: z.ZodOptional<z.ZodString>;
275
399
  budgetMax: z.ZodOptional<z.ZodString>;
@@ -292,11 +416,11 @@ export declare const TaskListQuerySchema: z.ZodObject<{
292
416
  skills?: string | undefined;
293
417
  budgetMin?: string | undefined;
294
418
  budgetMax?: string | undefined;
419
+ limit?: number | undefined;
420
+ offset?: number | undefined;
295
421
  q?: string | undefined;
296
422
  requesterId?: string | undefined;
297
423
  assigneeId?: string | undefined;
298
- limit?: number | undefined;
299
- offset?: number | undefined;
300
424
  }>;
301
425
  export declare const AgentListQuerySchema: z.ZodObject<{
302
426
  q: z.ZodOptional<z.ZodString>;
@@ -315,9 +439,9 @@ export declare const AgentListQuerySchema: z.ZodObject<{
315
439
  }, {
316
440
  framework?: string | undefined;
317
441
  skills?: string | undefined;
318
- q?: string | undefined;
319
442
  limit?: number | undefined;
320
443
  offset?: number | undefined;
444
+ q?: string | undefined;
321
445
  minTrustLevel?: number | undefined;
322
446
  }>;
323
447
  export declare const BidCreateSchema: z.ZodObject<{
@@ -370,6 +494,35 @@ export declare const RatingCreateSchema: z.ZodObject<{
370
494
  valueScore?: number | undefined;
371
495
  comment?: string | undefined;
372
496
  }>;
497
+ export declare const AgentKeyRotateSchema: z.ZodObject<{
498
+ currentSignature: z.ZodString;
499
+ newPublicKey: z.ZodString;
500
+ newKeySignature: z.ZodString;
501
+ rotationChallenge: z.ZodString;
502
+ }, "strip", z.ZodTypeAny, {
503
+ currentSignature: string;
504
+ newPublicKey: string;
505
+ newKeySignature: string;
506
+ rotationChallenge: string;
507
+ }, {
508
+ currentSignature: string;
509
+ newPublicKey: string;
510
+ newKeySignature: string;
511
+ rotationChallenge: string;
512
+ }>;
513
+ export declare const AgentVerifyOwnerSchema: z.ZodObject<{
514
+ ownerDid: z.ZodString;
515
+ signature: z.ZodString;
516
+ challenge: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ ownerDid: string;
519
+ challenge: string;
520
+ signature: string;
521
+ }, {
522
+ ownerDid: string;
523
+ challenge: string;
524
+ signature: string;
525
+ }>;
373
526
  export declare const PortfolioItemUpdateSchema: z.ZodObject<{
374
527
  isPinned: z.ZodOptional<z.ZodBoolean>;
375
528
  displayOrder: z.ZodOptional<z.ZodNumber>;
@@ -395,4 +548,237 @@ export type AgentListQuery = z.infer<typeof AgentListQuerySchema>;
395
548
  export type BidCreateInput = z.infer<typeof BidCreateSchema>;
396
549
  export type RatingCreateInput = z.infer<typeof RatingCreateSchema>;
397
550
  export type PortfolioItemUpdateInput = z.infer<typeof PortfolioItemUpdateSchema>;
551
+ export type InviteAgentsInput = z.infer<typeof InviteAgentsSchema>;
552
+ export type InvitationListQuery = z.infer<typeof InvitationListQuerySchema>;
553
+ export type AgentKeyRotateInput = z.infer<typeof AgentKeyRotateSchema>;
554
+ export type AgentVerifyOwnerInput = z.infer<typeof AgentVerifyOwnerSchema>;
555
+ export declare const EndorsementCreateSchema: z.ZodObject<{
556
+ endorseeId: z.ZodString;
557
+ skillId: z.ZodOptional<z.ZodString>;
558
+ title: z.ZodString;
559
+ message: z.ZodOptional<z.ZodString>;
560
+ relatedTaskId: z.ZodOptional<z.ZodString>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ title: string;
563
+ endorseeId: string;
564
+ skillId?: string | undefined;
565
+ message?: string | undefined;
566
+ relatedTaskId?: string | undefined;
567
+ }, {
568
+ title: string;
569
+ endorseeId: string;
570
+ skillId?: string | undefined;
571
+ message?: string | undefined;
572
+ relatedTaskId?: string | undefined;
573
+ }>;
574
+ export declare const GuildCreateSchema: z.ZodObject<{
575
+ name: z.ZodString;
576
+ description: z.ZodOptional<z.ZodString>;
577
+ visibility: z.ZodDefault<z.ZodEnum<["public", "private", "invite_only"]>>;
578
+ guildType: z.ZodOptional<z.ZodString>;
579
+ minMemberReputation: z.ZodDefault<z.ZodNumber>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ visibility: "public" | "private" | "invite_only";
582
+ name: string;
583
+ minMemberReputation: number;
584
+ description?: string | undefined;
585
+ guildType?: string | undefined;
586
+ }, {
587
+ name: string;
588
+ description?: string | undefined;
589
+ visibility?: "public" | "private" | "invite_only" | undefined;
590
+ guildType?: string | undefined;
591
+ minMemberReputation?: number | undefined;
592
+ }>;
593
+ export declare const ActivityFeedQuerySchema: z.ZodObject<{
594
+ cursor: z.ZodOptional<z.ZodString>;
595
+ limit: z.ZodDefault<z.ZodNumber>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ limit: number;
598
+ cursor?: string | undefined;
599
+ }, {
600
+ limit?: number | undefined;
601
+ cursor?: string | undefined;
602
+ }>;
603
+ export declare const PeerReviewSchema: z.ZodObject<{
604
+ approved: z.ZodBoolean;
605
+ score: z.ZodNumber;
606
+ feedback: z.ZodOptional<z.ZodString>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ approved: boolean;
609
+ score: number;
610
+ feedback?: string | undefined;
611
+ }, {
612
+ approved: boolean;
613
+ score: number;
614
+ feedback?: string | undefined;
615
+ }>;
616
+ export type EndorsementCreateInput = z.infer<typeof EndorsementCreateSchema>;
617
+ export type GuildCreateInput = z.infer<typeof GuildCreateSchema>;
618
+ export type ActivityFeedQuery = z.infer<typeof ActivityFeedQuerySchema>;
619
+ export type PeerReviewInput = z.infer<typeof PeerReviewSchema>;
620
+ export declare const McpServiceCreateSchema: z.ZodObject<{
621
+ name: z.ZodString;
622
+ description: z.ZodString;
623
+ version: z.ZodString;
624
+ endpoint: z.ZodString;
625
+ tools: z.ZodArray<z.ZodObject<{
626
+ name: z.ZodString;
627
+ description: z.ZodString;
628
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ description: string;
631
+ name: string;
632
+ inputSchema: Record<string, unknown>;
633
+ }, {
634
+ description: string;
635
+ name: string;
636
+ inputSchema: Record<string, unknown>;
637
+ }>, "many">;
638
+ resources: z.ZodOptional<z.ZodArray<z.ZodObject<{
639
+ name: z.ZodString;
640
+ description: z.ZodString;
641
+ uri: z.ZodString;
642
+ }, "strip", z.ZodTypeAny, {
643
+ description: string;
644
+ name: string;
645
+ uri: string;
646
+ }, {
647
+ description: string;
648
+ name: string;
649
+ uri: string;
650
+ }>, "many">>;
651
+ pricingModel: z.ZodEnum<["per_call", "per_minute", "subscription"]>;
652
+ pricePerCall: z.ZodOptional<z.ZodString>;
653
+ pricePerMinute: z.ZodOptional<z.ZodString>;
654
+ subscriptionPrice: z.ZodOptional<z.ZodString>;
655
+ category: z.ZodString;
656
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
657
+ documentation: z.ZodOptional<z.ZodString>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ description: string;
660
+ category: string;
661
+ tags: string[];
662
+ pricingModel: "per_call" | "per_minute" | "subscription";
663
+ name: string;
664
+ version: string;
665
+ endpoint: string;
666
+ tools: {
667
+ description: string;
668
+ name: string;
669
+ inputSchema: Record<string, unknown>;
670
+ }[];
671
+ resources?: {
672
+ description: string;
673
+ name: string;
674
+ uri: string;
675
+ }[] | undefined;
676
+ pricePerCall?: string | undefined;
677
+ pricePerMinute?: string | undefined;
678
+ subscriptionPrice?: string | undefined;
679
+ documentation?: string | undefined;
680
+ }, {
681
+ description: string;
682
+ category: string;
683
+ pricingModel: "per_call" | "per_minute" | "subscription";
684
+ name: string;
685
+ version: string;
686
+ endpoint: string;
687
+ tools: {
688
+ description: string;
689
+ name: string;
690
+ inputSchema: Record<string, unknown>;
691
+ }[];
692
+ tags?: string[] | undefined;
693
+ resources?: {
694
+ description: string;
695
+ name: string;
696
+ uri: string;
697
+ }[] | undefined;
698
+ pricePerCall?: string | undefined;
699
+ pricePerMinute?: string | undefined;
700
+ subscriptionPrice?: string | undefined;
701
+ documentation?: string | undefined;
702
+ }>;
703
+ export declare const McpServiceUpdateSchema: z.ZodObject<{
704
+ description: z.ZodOptional<z.ZodString>;
705
+ version: z.ZodOptional<z.ZodString>;
706
+ endpoint: z.ZodOptional<z.ZodString>;
707
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
708
+ name: z.ZodString;
709
+ description: z.ZodString;
710
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ description: string;
713
+ name: string;
714
+ inputSchema: Record<string, unknown>;
715
+ }, {
716
+ description: string;
717
+ name: string;
718
+ inputSchema: Record<string, unknown>;
719
+ }>, "many">>;
720
+ pricePerCall: z.ZodOptional<z.ZodString>;
721
+ subscriptionPrice: z.ZodOptional<z.ZodString>;
722
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
+ documentation: z.ZodOptional<z.ZodString>;
724
+ status: z.ZodOptional<z.ZodEnum<["active", "paused", "deprecated"]>>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ description?: string | undefined;
727
+ status?: "active" | "paused" | "deprecated" | undefined;
728
+ tags?: string[] | undefined;
729
+ version?: string | undefined;
730
+ endpoint?: string | undefined;
731
+ tools?: {
732
+ description: string;
733
+ name: string;
734
+ inputSchema: Record<string, unknown>;
735
+ }[] | undefined;
736
+ pricePerCall?: string | undefined;
737
+ subscriptionPrice?: string | undefined;
738
+ documentation?: string | undefined;
739
+ }, {
740
+ description?: string | undefined;
741
+ status?: "active" | "paused" | "deprecated" | undefined;
742
+ tags?: string[] | undefined;
743
+ version?: string | undefined;
744
+ endpoint?: string | undefined;
745
+ tools?: {
746
+ description: string;
747
+ name: string;
748
+ inputSchema: Record<string, unknown>;
749
+ }[] | undefined;
750
+ pricePerCall?: string | undefined;
751
+ subscriptionPrice?: string | undefined;
752
+ documentation?: string | undefined;
753
+ }>;
754
+ export declare const McpToolCallSchema: z.ZodObject<{
755
+ toolName: z.ZodString;
756
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
757
+ }, "strip", z.ZodTypeAny, {
758
+ toolName: string;
759
+ arguments: Record<string, unknown>;
760
+ }, {
761
+ toolName: string;
762
+ arguments?: Record<string, unknown> | undefined;
763
+ }>;
764
+ export declare const McpServiceListQuerySchema: z.ZodObject<{
765
+ q: z.ZodOptional<z.ZodString>;
766
+ category: z.ZodOptional<z.ZodString>;
767
+ limit: z.ZodDefault<z.ZodNumber>;
768
+ offset: z.ZodDefault<z.ZodNumber>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ limit: number;
771
+ offset: number;
772
+ category?: string | undefined;
773
+ q?: string | undefined;
774
+ }, {
775
+ category?: string | undefined;
776
+ limit?: number | undefined;
777
+ offset?: number | undefined;
778
+ q?: string | undefined;
779
+ }>;
780
+ export type McpServiceCreateInput = z.infer<typeof McpServiceCreateSchema>;
781
+ export type McpServiceUpdateInput = z.infer<typeof McpServiceUpdateSchema>;
782
+ export type McpToolCallInput = z.infer<typeof McpToolCallSchema>;
783
+ export type McpServiceListQuery = z.infer<typeof McpServiceListQuerySchema>;
398
784
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,qBAAqB,aAAuD,CAAC;AAG1F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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