@cognigy/mcp-server 0.1.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/QUICK_START.md +195 -0
- package/README.md +298 -0
- package/dist/api/client.d.ts +38 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +97 -0
- package/dist/api/client.js.map +1 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +25 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +812 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/tools.d.ts +510 -0
- package/dist/schemas/tools.d.ts.map +1 -0
- package/dist/schemas/tools.js +199 -0
- package/dist/schemas/tools.js.map +1 -0
- package/dist/tools/handlers.d.ts +49 -0
- package/dist/tools/handlers.d.ts.map +1 -0
- package/dist/tools/handlers.js +430 -0
- package/dist/tools/handlers.js.map +1 -0
- package/dist/tools/index.d.ts +17 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +448 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/utils/logger.d.ts +19 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +52 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/rateLimiter.d.ts +33 -0
- package/dist/utils/rateLimiter.d.ts.map +1 -0
- package/dist/utils/rateLimiter.js +68 -0
- package/dist/utils/rateLimiter.js.map +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,yBAAy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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mMA8Y0L,CAAC;AACpM,CAAC;AAED,SAAS,cAAc;IACrB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CR,CAAC;AACF,CAAC;AAED,SAAS,sBAAsB;IAC7B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BR,CAAC;AACF,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGR,CAAC;AACF,CAAC;AAED,mBAAmB;AACnB,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for MCP tool inputs
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export declare const aiAgentCreateSchema: z.ZodObject<{
|
|
6
|
+
projectId: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
knowledgeReferenceId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
image: z.ZodOptional<z.ZodString>;
|
|
11
|
+
speakingStyle: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
completeness: z.ZodOptional<z.ZodString>;
|
|
13
|
+
formality: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
completeness?: string | undefined;
|
|
16
|
+
formality?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
completeness?: string | undefined;
|
|
19
|
+
formality?: string | undefined;
|
|
20
|
+
}>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
projectId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
knowledgeReferenceId?: string | undefined;
|
|
26
|
+
image?: string | undefined;
|
|
27
|
+
speakingStyle?: {
|
|
28
|
+
completeness?: string | undefined;
|
|
29
|
+
formality?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
projectId: string;
|
|
33
|
+
name: string;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
knowledgeReferenceId?: string | undefined;
|
|
36
|
+
image?: string | undefined;
|
|
37
|
+
speakingStyle?: {
|
|
38
|
+
completeness?: string | undefined;
|
|
39
|
+
formality?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const aiAgentUpdateSchema: z.ZodObject<{
|
|
43
|
+
aiAgentId: z.ZodString;
|
|
44
|
+
name: z.ZodOptional<z.ZodString>;
|
|
45
|
+
description: z.ZodOptional<z.ZodString>;
|
|
46
|
+
job: z.ZodOptional<z.ZodString>;
|
|
47
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
aiAgentId: string;
|
|
50
|
+
name?: string | undefined;
|
|
51
|
+
description?: string | undefined;
|
|
52
|
+
job?: string | undefined;
|
|
53
|
+
tools?: string[] | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
aiAgentId: string;
|
|
56
|
+
name?: string | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
job?: string | undefined;
|
|
59
|
+
tools?: string[] | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
export declare const aiAgentListSchema: z.ZodObject<{
|
|
62
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
projectId: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
projectId: string;
|
|
67
|
+
limit?: number | undefined;
|
|
68
|
+
skip?: number | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
projectId: string;
|
|
71
|
+
limit?: number | undefined;
|
|
72
|
+
skip?: number | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
export declare const aiAgentGetSchema: z.ZodObject<{
|
|
75
|
+
aiAgentId: z.ZodString;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
aiAgentId: string;
|
|
78
|
+
}, {
|
|
79
|
+
aiAgentId: string;
|
|
80
|
+
}>;
|
|
81
|
+
export declare const aiAgentDeleteSchema: z.ZodObject<{
|
|
82
|
+
aiAgentId: z.ZodString;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
aiAgentId: string;
|
|
85
|
+
}, {
|
|
86
|
+
aiAgentId: string;
|
|
87
|
+
}>;
|
|
88
|
+
export declare const aiAgentHireSchema: z.ZodObject<{
|
|
89
|
+
aiAgentId: z.ZodString;
|
|
90
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
aiAgentId: string;
|
|
93
|
+
templateId?: string | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
aiAgentId: string;
|
|
96
|
+
templateId?: string | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
export declare const knowledgeStoreCreateSchema: z.ZodObject<{
|
|
99
|
+
projectId: z.ZodString;
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
description: z.ZodOptional<z.ZodString>;
|
|
102
|
+
embeddingModel: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
projectId: string;
|
|
105
|
+
name: string;
|
|
106
|
+
description?: string | undefined;
|
|
107
|
+
embeddingModel?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
projectId: string;
|
|
110
|
+
name: string;
|
|
111
|
+
description?: string | undefined;
|
|
112
|
+
embeddingModel?: string | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
export declare const knowledgeSourceCreateSchema: z.ZodObject<{
|
|
115
|
+
knowledgeStoreId: z.ZodString;
|
|
116
|
+
type: z.ZodEnum<["url", "file", "text"]>;
|
|
117
|
+
content: z.ZodString;
|
|
118
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
type: "url" | "text" | "file";
|
|
121
|
+
knowledgeStoreId: string;
|
|
122
|
+
content: string;
|
|
123
|
+
metadata?: Record<string, any> | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
type: "url" | "text" | "file";
|
|
126
|
+
knowledgeStoreId: string;
|
|
127
|
+
content: string;
|
|
128
|
+
metadata?: Record<string, any> | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
export declare const knowledgeChunkSearchSchema: z.ZodObject<{
|
|
131
|
+
knowledgeStoreId: z.ZodString;
|
|
132
|
+
query: z.ZodString;
|
|
133
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
knowledgeStoreId: string;
|
|
136
|
+
query: string;
|
|
137
|
+
limit?: number | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
knowledgeStoreId: string;
|
|
140
|
+
query: string;
|
|
141
|
+
limit?: number | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
export declare const conversationListSchema: z.ZodObject<{
|
|
144
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
145
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
146
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
147
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
projectId: z.ZodString;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
projectId: string;
|
|
152
|
+
limit?: number | undefined;
|
|
153
|
+
skip?: number | undefined;
|
|
154
|
+
startDate?: string | undefined;
|
|
155
|
+
endDate?: string | undefined;
|
|
156
|
+
channel?: string | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
projectId: string;
|
|
159
|
+
limit?: number | undefined;
|
|
160
|
+
skip?: number | undefined;
|
|
161
|
+
startDate?: string | undefined;
|
|
162
|
+
endDate?: string | undefined;
|
|
163
|
+
channel?: string | undefined;
|
|
164
|
+
}>;
|
|
165
|
+
export declare const conversationGetSchema: z.ZodObject<{
|
|
166
|
+
sessionId: z.ZodString;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
sessionId: string;
|
|
169
|
+
}, {
|
|
170
|
+
sessionId: string;
|
|
171
|
+
}>;
|
|
172
|
+
export declare const sessionStateGetSchema: z.ZodObject<{
|
|
173
|
+
sessionId: z.ZodString;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
sessionId: string;
|
|
176
|
+
}, {
|
|
177
|
+
sessionId: string;
|
|
178
|
+
}>;
|
|
179
|
+
export declare const flowCreateSchema: z.ZodObject<{
|
|
180
|
+
projectId: z.ZodString;
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
description: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
projectId: string;
|
|
185
|
+
name: string;
|
|
186
|
+
description?: string | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
projectId: string;
|
|
189
|
+
name: string;
|
|
190
|
+
description?: string | undefined;
|
|
191
|
+
}>;
|
|
192
|
+
export declare const flowUpdateSchema: z.ZodObject<{
|
|
193
|
+
flowId: z.ZodString;
|
|
194
|
+
name: z.ZodOptional<z.ZodString>;
|
|
195
|
+
description: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
flowId: string;
|
|
198
|
+
name?: string | undefined;
|
|
199
|
+
description?: string | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
flowId: string;
|
|
202
|
+
name?: string | undefined;
|
|
203
|
+
description?: string | undefined;
|
|
204
|
+
}>;
|
|
205
|
+
export declare const flowListSchema: z.ZodObject<{
|
|
206
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
projectId: z.ZodString;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
projectId: string;
|
|
211
|
+
limit?: number | undefined;
|
|
212
|
+
skip?: number | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
projectId: string;
|
|
215
|
+
limit?: number | undefined;
|
|
216
|
+
skip?: number | undefined;
|
|
217
|
+
}>;
|
|
218
|
+
export declare const flowNodeCreateSchema: z.ZodObject<{
|
|
219
|
+
flowId: z.ZodString;
|
|
220
|
+
type: z.ZodString;
|
|
221
|
+
label: z.ZodOptional<z.ZodString>;
|
|
222
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
223
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
type: string;
|
|
226
|
+
flowId: string;
|
|
227
|
+
mode?: string | undefined;
|
|
228
|
+
label?: string | undefined;
|
|
229
|
+
config?: Record<string, any> | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
type: string;
|
|
232
|
+
flowId: string;
|
|
233
|
+
mode?: string | undefined;
|
|
234
|
+
label?: string | undefined;
|
|
235
|
+
config?: Record<string, any> | undefined;
|
|
236
|
+
}>;
|
|
237
|
+
export declare const flowNodeUpdateSchema: z.ZodObject<{
|
|
238
|
+
flowId: z.ZodString;
|
|
239
|
+
nodeId: z.ZodString;
|
|
240
|
+
localeId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
242
|
+
label: z.ZodOptional<z.ZodString>;
|
|
243
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
flowId: string;
|
|
246
|
+
nodeId: string;
|
|
247
|
+
label?: string | undefined;
|
|
248
|
+
config?: Record<string, any> | undefined;
|
|
249
|
+
localeId?: string | undefined;
|
|
250
|
+
comment?: string | undefined;
|
|
251
|
+
}, {
|
|
252
|
+
flowId: string;
|
|
253
|
+
nodeId: string;
|
|
254
|
+
label?: string | undefined;
|
|
255
|
+
config?: Record<string, any> | undefined;
|
|
256
|
+
localeId?: string | undefined;
|
|
257
|
+
comment?: string | undefined;
|
|
258
|
+
}>;
|
|
259
|
+
export declare const flowNodeGetSchema: z.ZodObject<{
|
|
260
|
+
flowId: z.ZodString;
|
|
261
|
+
nodeId: z.ZodString;
|
|
262
|
+
localeId: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
flowId: string;
|
|
265
|
+
nodeId: string;
|
|
266
|
+
localeId?: string | undefined;
|
|
267
|
+
}, {
|
|
268
|
+
flowId: string;
|
|
269
|
+
nodeId: string;
|
|
270
|
+
localeId?: string | undefined;
|
|
271
|
+
}>;
|
|
272
|
+
export declare const intentCreateSchema: z.ZodObject<{
|
|
273
|
+
flowId: z.ZodString;
|
|
274
|
+
name: z.ZodString;
|
|
275
|
+
sentences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
name: string;
|
|
278
|
+
flowId: string;
|
|
279
|
+
sentences?: string[] | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
name: string;
|
|
282
|
+
flowId: string;
|
|
283
|
+
sentences?: string[] | undefined;
|
|
284
|
+
}>;
|
|
285
|
+
export declare const intentUpdateSchema: z.ZodObject<{
|
|
286
|
+
intentId: z.ZodString;
|
|
287
|
+
name: z.ZodOptional<z.ZodString>;
|
|
288
|
+
sentences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
intentId: string;
|
|
291
|
+
name?: string | undefined;
|
|
292
|
+
sentences?: string[] | undefined;
|
|
293
|
+
}, {
|
|
294
|
+
intentId: string;
|
|
295
|
+
name?: string | undefined;
|
|
296
|
+
sentences?: string[] | undefined;
|
|
297
|
+
}>;
|
|
298
|
+
export declare const intentListSchema: z.ZodObject<{
|
|
299
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
flowId: z.ZodString;
|
|
302
|
+
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
flowId: string;
|
|
304
|
+
limit?: number | undefined;
|
|
305
|
+
skip?: number | undefined;
|
|
306
|
+
}, {
|
|
307
|
+
flowId: string;
|
|
308
|
+
limit?: number | undefined;
|
|
309
|
+
skip?: number | undefined;
|
|
310
|
+
}>;
|
|
311
|
+
export declare const intentTrainSchema: z.ZodObject<{
|
|
312
|
+
flowId: z.ZodString;
|
|
313
|
+
localeId: z.ZodOptional<z.ZodString>;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
flowId: string;
|
|
316
|
+
localeId?: string | undefined;
|
|
317
|
+
}, {
|
|
318
|
+
flowId: string;
|
|
319
|
+
localeId?: string | undefined;
|
|
320
|
+
}>;
|
|
321
|
+
export declare const analyticsConversationCountSchema: z.ZodObject<{
|
|
322
|
+
projectId: z.ZodString;
|
|
323
|
+
year: z.ZodNumber;
|
|
324
|
+
month: z.ZodOptional<z.ZodNumber>;
|
|
325
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
|
+
projectId: string;
|
|
328
|
+
year: number;
|
|
329
|
+
channel?: string | undefined;
|
|
330
|
+
month?: number | undefined;
|
|
331
|
+
}, {
|
|
332
|
+
projectId: string;
|
|
333
|
+
year: number;
|
|
334
|
+
channel?: string | undefined;
|
|
335
|
+
month?: number | undefined;
|
|
336
|
+
}>;
|
|
337
|
+
export declare const analyticsCallCountSchema: z.ZodObject<{
|
|
338
|
+
projectId: z.ZodString;
|
|
339
|
+
year: z.ZodNumber;
|
|
340
|
+
month: z.ZodOptional<z.ZodNumber>;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
projectId: string;
|
|
343
|
+
year: number;
|
|
344
|
+
month?: number | undefined;
|
|
345
|
+
}, {
|
|
346
|
+
projectId: string;
|
|
347
|
+
year: number;
|
|
348
|
+
month?: number | undefined;
|
|
349
|
+
}>;
|
|
350
|
+
export declare const logsListSchema: z.ZodObject<{
|
|
351
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
352
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
353
|
+
level: z.ZodOptional<z.ZodEnum<["debug", "info", "warn", "error"]>>;
|
|
354
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
355
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
projectId: z.ZodString;
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
projectId: string;
|
|
359
|
+
limit?: number | undefined;
|
|
360
|
+
skip?: number | undefined;
|
|
361
|
+
startDate?: string | undefined;
|
|
362
|
+
endDate?: string | undefined;
|
|
363
|
+
level?: "debug" | "info" | "warn" | "error" | undefined;
|
|
364
|
+
}, {
|
|
365
|
+
projectId: string;
|
|
366
|
+
limit?: number | undefined;
|
|
367
|
+
skip?: number | undefined;
|
|
368
|
+
startDate?: string | undefined;
|
|
369
|
+
endDate?: string | undefined;
|
|
370
|
+
level?: "debug" | "info" | "warn" | "error" | undefined;
|
|
371
|
+
}>;
|
|
372
|
+
export declare const auditEventsListSchema: z.ZodObject<{
|
|
373
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
374
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
375
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
376
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
projectId: z.ZodString;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
projectId: string;
|
|
381
|
+
limit?: number | undefined;
|
|
382
|
+
skip?: number | undefined;
|
|
383
|
+
startDate?: string | undefined;
|
|
384
|
+
endDate?: string | undefined;
|
|
385
|
+
userId?: string | undefined;
|
|
386
|
+
}, {
|
|
387
|
+
projectId: string;
|
|
388
|
+
limit?: number | undefined;
|
|
389
|
+
skip?: number | undefined;
|
|
390
|
+
startDate?: string | undefined;
|
|
391
|
+
endDate?: string | undefined;
|
|
392
|
+
userId?: string | undefined;
|
|
393
|
+
}>;
|
|
394
|
+
export declare const projectCreateSchema: z.ZodObject<{
|
|
395
|
+
name: z.ZodString;
|
|
396
|
+
description: z.ZodOptional<z.ZodString>;
|
|
397
|
+
defaultLocale: z.ZodOptional<z.ZodString>;
|
|
398
|
+
}, "strip", z.ZodTypeAny, {
|
|
399
|
+
name: string;
|
|
400
|
+
description?: string | undefined;
|
|
401
|
+
defaultLocale?: string | undefined;
|
|
402
|
+
}, {
|
|
403
|
+
name: string;
|
|
404
|
+
description?: string | undefined;
|
|
405
|
+
defaultLocale?: string | undefined;
|
|
406
|
+
}>;
|
|
407
|
+
export declare const projectListSchema: z.ZodObject<{
|
|
408
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
limit?: number | undefined;
|
|
412
|
+
skip?: number | undefined;
|
|
413
|
+
}, {
|
|
414
|
+
limit?: number | undefined;
|
|
415
|
+
skip?: number | undefined;
|
|
416
|
+
}>;
|
|
417
|
+
export declare const endpointCreateSchema: z.ZodObject<{
|
|
418
|
+
projectId: z.ZodString;
|
|
419
|
+
channel: z.ZodString;
|
|
420
|
+
flowId: z.ZodString;
|
|
421
|
+
name: z.ZodOptional<z.ZodString>;
|
|
422
|
+
localeId: z.ZodOptional<z.ZodString>;
|
|
423
|
+
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
projectId: string;
|
|
426
|
+
channel: string;
|
|
427
|
+
flowId: string;
|
|
428
|
+
name?: string | undefined;
|
|
429
|
+
localeId?: string | undefined;
|
|
430
|
+
settings?: Record<string, any> | undefined;
|
|
431
|
+
}, {
|
|
432
|
+
projectId: string;
|
|
433
|
+
channel: string;
|
|
434
|
+
flowId: string;
|
|
435
|
+
name?: string | undefined;
|
|
436
|
+
localeId?: string | undefined;
|
|
437
|
+
settings?: Record<string, any> | undefined;
|
|
438
|
+
}>;
|
|
439
|
+
export declare const endpointListSchema: z.ZodObject<{
|
|
440
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
441
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
442
|
+
projectId: z.ZodString;
|
|
443
|
+
}, "strip", z.ZodTypeAny, {
|
|
444
|
+
projectId: string;
|
|
445
|
+
limit?: number | undefined;
|
|
446
|
+
skip?: number | undefined;
|
|
447
|
+
}, {
|
|
448
|
+
projectId: string;
|
|
449
|
+
limit?: number | undefined;
|
|
450
|
+
skip?: number | undefined;
|
|
451
|
+
}>;
|
|
452
|
+
export declare const extensionListSchema: z.ZodObject<{
|
|
453
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
454
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
projectId: z.ZodString;
|
|
456
|
+
}, "strip", z.ZodTypeAny, {
|
|
457
|
+
projectId: string;
|
|
458
|
+
limit?: number | undefined;
|
|
459
|
+
skip?: number | undefined;
|
|
460
|
+
}, {
|
|
461
|
+
projectId: string;
|
|
462
|
+
limit?: number | undefined;
|
|
463
|
+
skip?: number | undefined;
|
|
464
|
+
}>;
|
|
465
|
+
export declare const functionCreateSchema: z.ZodObject<{
|
|
466
|
+
projectId: z.ZodString;
|
|
467
|
+
name: z.ZodString;
|
|
468
|
+
code: z.ZodString;
|
|
469
|
+
description: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
code: string;
|
|
472
|
+
projectId: string;
|
|
473
|
+
name: string;
|
|
474
|
+
description?: string | undefined;
|
|
475
|
+
}, {
|
|
476
|
+
code: string;
|
|
477
|
+
projectId: string;
|
|
478
|
+
name: string;
|
|
479
|
+
description?: string | undefined;
|
|
480
|
+
}>;
|
|
481
|
+
export declare const functionUpdateSchema: z.ZodObject<{
|
|
482
|
+
functionId: z.ZodString;
|
|
483
|
+
name: z.ZodOptional<z.ZodString>;
|
|
484
|
+
code: z.ZodOptional<z.ZodString>;
|
|
485
|
+
description: z.ZodOptional<z.ZodString>;
|
|
486
|
+
}, "strip", z.ZodTypeAny, {
|
|
487
|
+
functionId: string;
|
|
488
|
+
code?: string | undefined;
|
|
489
|
+
name?: string | undefined;
|
|
490
|
+
description?: string | undefined;
|
|
491
|
+
}, {
|
|
492
|
+
functionId: string;
|
|
493
|
+
code?: string | undefined;
|
|
494
|
+
name?: string | undefined;
|
|
495
|
+
description?: string | undefined;
|
|
496
|
+
}>;
|
|
497
|
+
export declare const functionListSchema: z.ZodObject<{
|
|
498
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
499
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
500
|
+
projectId: z.ZodString;
|
|
501
|
+
}, "strip", z.ZodTypeAny, {
|
|
502
|
+
projectId: string;
|
|
503
|
+
limit?: number | undefined;
|
|
504
|
+
skip?: number | undefined;
|
|
505
|
+
}, {
|
|
506
|
+
projectId: string;
|
|
507
|
+
limit?: number | undefined;
|
|
508
|
+
skip?: number | undefined;
|
|
509
|
+
}>;
|
|
510
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/schemas/tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAA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