@composio/core 0.1.19 → 0.1.20
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/index.cjs +39 -3
- package/dist/index.d.cts +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +39 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -151,7 +151,7 @@ var JSONSchemaType = import_zod.z.enum([
|
|
|
151
151
|
"null"
|
|
152
152
|
]);
|
|
153
153
|
var JSONSchemaProperty = import_zod.z.object({
|
|
154
|
-
type: JSONSchemaType.optional(),
|
|
154
|
+
type: import_zod.z.union([JSONSchemaType, import_zod.z.array(JSONSchemaType)]).optional(),
|
|
155
155
|
description: import_zod.z.string().optional(),
|
|
156
156
|
anyOf: import_zod.z.lazy(() => import_zod.z.array(JSONSchemaProperty)).optional(),
|
|
157
157
|
oneOf: import_zod.z.lazy(() => import_zod.z.array(JSONSchemaProperty)).optional(),
|
|
@@ -159,9 +159,43 @@ var JSONSchemaProperty = import_zod.z.object({
|
|
|
159
159
|
not: import_zod.z.lazy(() => JSONSchemaProperty).optional(),
|
|
160
160
|
title: import_zod.z.string().optional(),
|
|
161
161
|
default: import_zod.z.any().optional(),
|
|
162
|
+
nullable: import_zod.z.boolean().optional(),
|
|
162
163
|
properties: import_zod.z.lazy(() => import_zod.z.record(import_zod.z.string(), JSONSchemaProperty)).optional(),
|
|
163
164
|
required: import_zod.z.array(import_zod.z.string()).optional(),
|
|
164
|
-
items: import_zod.z.lazy(() => JSONSchemaProperty).optional()
|
|
165
|
+
items: import_zod.z.lazy(() => import_zod.z.union([JSONSchemaProperty, import_zod.z.array(JSONSchemaProperty)])).optional(),
|
|
166
|
+
enum: import_zod.z.array(import_zod.z.any()).optional(),
|
|
167
|
+
const: import_zod.z.any().optional(),
|
|
168
|
+
minimum: import_zod.z.number().optional(),
|
|
169
|
+
maximum: import_zod.z.number().optional(),
|
|
170
|
+
exclusiveMinimum: import_zod.z.number().optional(),
|
|
171
|
+
exclusiveMaximum: import_zod.z.number().optional(),
|
|
172
|
+
multipleOf: import_zod.z.number().optional(),
|
|
173
|
+
minLength: import_zod.z.number().optional(),
|
|
174
|
+
maxLength: import_zod.z.number().optional(),
|
|
175
|
+
pattern: import_zod.z.string().optional(),
|
|
176
|
+
format: import_zod.z.string().optional(),
|
|
177
|
+
minItems: import_zod.z.number().optional(),
|
|
178
|
+
maxItems: import_zod.z.number().optional(),
|
|
179
|
+
uniqueItems: import_zod.z.boolean().optional(),
|
|
180
|
+
minProperties: import_zod.z.number().optional(),
|
|
181
|
+
maxProperties: import_zod.z.number().optional(),
|
|
182
|
+
patternProperties: import_zod.z.lazy(() => import_zod.z.record(import_zod.z.string(), JSONSchemaProperty)).optional(),
|
|
183
|
+
additionalProperties: import_zod.z.union([import_zod.z.boolean(), import_zod.z.lazy(() => JSONSchemaProperty)]).optional(),
|
|
184
|
+
examples: import_zod.z.array(import_zod.z.any()).optional(),
|
|
185
|
+
readOnly: import_zod.z.boolean().optional(),
|
|
186
|
+
writeOnly: import_zod.z.boolean().optional(),
|
|
187
|
+
if: import_zod.z.lazy(() => JSONSchemaProperty).optional(),
|
|
188
|
+
then: import_zod.z.lazy(() => JSONSchemaProperty).optional(),
|
|
189
|
+
else: import_zod.z.lazy(() => JSONSchemaProperty).optional(),
|
|
190
|
+
$ref: import_zod.z.string().optional(),
|
|
191
|
+
definitions: import_zod.z.record(
|
|
192
|
+
import_zod.z.string(),
|
|
193
|
+
import_zod.z.lazy(() => JSONSchemaProperty)
|
|
194
|
+
).optional(),
|
|
195
|
+
$defs: import_zod.z.record(
|
|
196
|
+
import_zod.z.string(),
|
|
197
|
+
import_zod.z.lazy(() => JSONSchemaProperty)
|
|
198
|
+
).optional()
|
|
165
199
|
});
|
|
166
200
|
var ParametersSchema = import_zod.z.object({
|
|
167
201
|
type: import_zod.z.literal("object"),
|
|
@@ -172,6 +206,8 @@ var ParametersSchema = import_zod.z.object({
|
|
|
172
206
|
properties: import_zod.z.record(import_zod.z.string(), JSONSchemaProperty),
|
|
173
207
|
required: import_zod.z.array(import_zod.z.string()).optional(),
|
|
174
208
|
title: import_zod.z.string().optional(),
|
|
209
|
+
default: import_zod.z.any().optional(),
|
|
210
|
+
nullable: import_zod.z.boolean().optional(),
|
|
175
211
|
description: import_zod.z.string().optional(),
|
|
176
212
|
additionalProperties: import_zod.z.boolean().default(false).optional()
|
|
177
213
|
});
|
|
@@ -4890,7 +4926,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
4890
4926
|
};
|
|
4891
4927
|
|
|
4892
4928
|
// package.json
|
|
4893
|
-
var version = "0.1.
|
|
4929
|
+
var version = "0.1.20";
|
|
4894
4930
|
|
|
4895
4931
|
// src/composio.ts
|
|
4896
4932
|
var Composio = class _Composio {
|
package/dist/index.d.cts
CHANGED
|
@@ -46,6 +46,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
46
46
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
47
47
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
48
48
|
title: z.ZodOptional<z.ZodString>;
|
|
49
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
50
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
49
51
|
description: z.ZodOptional<z.ZodString>;
|
|
50
52
|
additionalProperties: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
51
53
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -57,6 +59,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
57
59
|
allOf?: unknown[] | undefined;
|
|
58
60
|
not?: unknown;
|
|
59
61
|
title?: string | undefined;
|
|
62
|
+
default?: any;
|
|
63
|
+
nullable?: boolean | undefined;
|
|
60
64
|
required?: string[] | undefined;
|
|
61
65
|
additionalProperties?: boolean | undefined;
|
|
62
66
|
}, {
|
|
@@ -68,6 +72,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
68
72
|
allOf?: unknown[] | undefined;
|
|
69
73
|
not?: unknown;
|
|
70
74
|
title?: string | undefined;
|
|
75
|
+
default?: any;
|
|
76
|
+
nullable?: boolean | undefined;
|
|
71
77
|
required?: string[] | undefined;
|
|
72
78
|
additionalProperties?: boolean | undefined;
|
|
73
79
|
}>>;
|
|
@@ -80,6 +86,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
80
86
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
81
87
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
82
88
|
title: z.ZodOptional<z.ZodString>;
|
|
89
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
90
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
83
91
|
description: z.ZodOptional<z.ZodString>;
|
|
84
92
|
additionalProperties: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
85
93
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -91,6 +99,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
91
99
|
allOf?: unknown[] | undefined;
|
|
92
100
|
not?: unknown;
|
|
93
101
|
title?: string | undefined;
|
|
102
|
+
default?: any;
|
|
103
|
+
nullable?: boolean | undefined;
|
|
94
104
|
required?: string[] | undefined;
|
|
95
105
|
additionalProperties?: boolean | undefined;
|
|
96
106
|
}, {
|
|
@@ -102,6 +112,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
102
112
|
allOf?: unknown[] | undefined;
|
|
103
113
|
not?: unknown;
|
|
104
114
|
title?: string | undefined;
|
|
115
|
+
default?: any;
|
|
116
|
+
nullable?: boolean | undefined;
|
|
105
117
|
required?: string[] | undefined;
|
|
106
118
|
additionalProperties?: boolean | undefined;
|
|
107
119
|
}>>;
|
|
@@ -134,6 +146,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
134
146
|
allOf?: unknown[] | undefined;
|
|
135
147
|
not?: unknown;
|
|
136
148
|
title?: string | undefined;
|
|
149
|
+
default?: any;
|
|
150
|
+
nullable?: boolean | undefined;
|
|
137
151
|
required?: string[] | undefined;
|
|
138
152
|
additionalProperties?: boolean | undefined;
|
|
139
153
|
} | undefined;
|
|
@@ -146,6 +160,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
146
160
|
allOf?: unknown[] | undefined;
|
|
147
161
|
not?: unknown;
|
|
148
162
|
title?: string | undefined;
|
|
163
|
+
default?: any;
|
|
164
|
+
nullable?: boolean | undefined;
|
|
149
165
|
required?: string[] | undefined;
|
|
150
166
|
additionalProperties?: boolean | undefined;
|
|
151
167
|
} | undefined;
|
|
@@ -168,6 +184,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
168
184
|
allOf?: unknown[] | undefined;
|
|
169
185
|
not?: unknown;
|
|
170
186
|
title?: string | undefined;
|
|
187
|
+
default?: any;
|
|
188
|
+
nullable?: boolean | undefined;
|
|
171
189
|
required?: string[] | undefined;
|
|
172
190
|
additionalProperties?: boolean | undefined;
|
|
173
191
|
} | undefined;
|
|
@@ -180,6 +198,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
180
198
|
allOf?: unknown[] | undefined;
|
|
181
199
|
not?: unknown;
|
|
182
200
|
title?: string | undefined;
|
|
201
|
+
default?: any;
|
|
202
|
+
nullable?: boolean | undefined;
|
|
183
203
|
required?: string[] | undefined;
|
|
184
204
|
additionalProperties?: boolean | undefined;
|
|
185
205
|
} | undefined;
|
|
@@ -209,6 +229,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
209
229
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
210
230
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
211
231
|
title: z.ZodOptional<z.ZodString>;
|
|
232
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
233
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
212
234
|
description: z.ZodOptional<z.ZodString>;
|
|
213
235
|
additionalProperties: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
214
236
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -220,6 +242,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
220
242
|
allOf?: unknown[] | undefined;
|
|
221
243
|
not?: unknown;
|
|
222
244
|
title?: string | undefined;
|
|
245
|
+
default?: any;
|
|
246
|
+
nullable?: boolean | undefined;
|
|
223
247
|
required?: string[] | undefined;
|
|
224
248
|
additionalProperties?: boolean | undefined;
|
|
225
249
|
}, {
|
|
@@ -231,6 +255,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
231
255
|
allOf?: unknown[] | undefined;
|
|
232
256
|
not?: unknown;
|
|
233
257
|
title?: string | undefined;
|
|
258
|
+
default?: any;
|
|
259
|
+
nullable?: boolean | undefined;
|
|
234
260
|
required?: string[] | undefined;
|
|
235
261
|
additionalProperties?: boolean | undefined;
|
|
236
262
|
}>>;
|
|
@@ -243,6 +269,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
243
269
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
244
270
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
245
271
|
title: z.ZodOptional<z.ZodString>;
|
|
272
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
273
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
246
274
|
description: z.ZodOptional<z.ZodString>;
|
|
247
275
|
additionalProperties: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
248
276
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -254,6 +282,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
254
282
|
allOf?: unknown[] | undefined;
|
|
255
283
|
not?: unknown;
|
|
256
284
|
title?: string | undefined;
|
|
285
|
+
default?: any;
|
|
286
|
+
nullable?: boolean | undefined;
|
|
257
287
|
required?: string[] | undefined;
|
|
258
288
|
additionalProperties?: boolean | undefined;
|
|
259
289
|
}, {
|
|
@@ -265,6 +295,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
265
295
|
allOf?: unknown[] | undefined;
|
|
266
296
|
not?: unknown;
|
|
267
297
|
title?: string | undefined;
|
|
298
|
+
default?: any;
|
|
299
|
+
nullable?: boolean | undefined;
|
|
268
300
|
required?: string[] | undefined;
|
|
269
301
|
additionalProperties?: boolean | undefined;
|
|
270
302
|
}>>;
|
|
@@ -297,6 +329,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
297
329
|
allOf?: unknown[] | undefined;
|
|
298
330
|
not?: unknown;
|
|
299
331
|
title?: string | undefined;
|
|
332
|
+
default?: any;
|
|
333
|
+
nullable?: boolean | undefined;
|
|
300
334
|
required?: string[] | undefined;
|
|
301
335
|
additionalProperties?: boolean | undefined;
|
|
302
336
|
} | undefined;
|
|
@@ -309,6 +343,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
309
343
|
allOf?: unknown[] | undefined;
|
|
310
344
|
not?: unknown;
|
|
311
345
|
title?: string | undefined;
|
|
346
|
+
default?: any;
|
|
347
|
+
nullable?: boolean | undefined;
|
|
312
348
|
required?: string[] | undefined;
|
|
313
349
|
additionalProperties?: boolean | undefined;
|
|
314
350
|
} | undefined;
|
|
@@ -331,6 +367,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
331
367
|
allOf?: unknown[] | undefined;
|
|
332
368
|
not?: unknown;
|
|
333
369
|
title?: string | undefined;
|
|
370
|
+
default?: any;
|
|
371
|
+
nullable?: boolean | undefined;
|
|
334
372
|
required?: string[] | undefined;
|
|
335
373
|
additionalProperties?: boolean | undefined;
|
|
336
374
|
} | undefined;
|
|
@@ -343,6 +381,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
343
381
|
allOf?: unknown[] | undefined;
|
|
344
382
|
not?: unknown;
|
|
345
383
|
title?: string | undefined;
|
|
384
|
+
default?: any;
|
|
385
|
+
nullable?: boolean | undefined;
|
|
346
386
|
required?: string[] | undefined;
|
|
347
387
|
additionalProperties?: boolean | undefined;
|
|
348
388
|
} | undefined;
|
|
@@ -371,6 +411,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
371
411
|
allOf?: unknown[] | undefined;
|
|
372
412
|
not?: unknown;
|
|
373
413
|
title?: string | undefined;
|
|
414
|
+
default?: any;
|
|
415
|
+
nullable?: boolean | undefined;
|
|
374
416
|
required?: string[] | undefined;
|
|
375
417
|
additionalProperties?: boolean | undefined;
|
|
376
418
|
} | undefined;
|
|
@@ -383,6 +425,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
383
425
|
allOf?: unknown[] | undefined;
|
|
384
426
|
not?: unknown;
|
|
385
427
|
title?: string | undefined;
|
|
428
|
+
default?: any;
|
|
429
|
+
nullable?: boolean | undefined;
|
|
386
430
|
required?: string[] | undefined;
|
|
387
431
|
additionalProperties?: boolean | undefined;
|
|
388
432
|
} | undefined;
|
|
@@ -409,6 +453,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
409
453
|
allOf?: unknown[] | undefined;
|
|
410
454
|
not?: unknown;
|
|
411
455
|
title?: string | undefined;
|
|
456
|
+
default?: any;
|
|
457
|
+
nullable?: boolean | undefined;
|
|
412
458
|
required?: string[] | undefined;
|
|
413
459
|
additionalProperties?: boolean | undefined;
|
|
414
460
|
} | undefined;
|
|
@@ -421,6 +467,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
421
467
|
allOf?: unknown[] | undefined;
|
|
422
468
|
not?: unknown;
|
|
423
469
|
title?: string | undefined;
|
|
470
|
+
default?: any;
|
|
471
|
+
nullable?: boolean | undefined;
|
|
424
472
|
required?: string[] | undefined;
|
|
425
473
|
additionalProperties?: boolean | undefined;
|
|
426
474
|
} | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
46
46
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
47
47
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
48
48
|
title: z.ZodOptional<z.ZodString>;
|
|
49
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
50
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
49
51
|
description: z.ZodOptional<z.ZodString>;
|
|
50
52
|
additionalProperties: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
51
53
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -57,6 +59,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
57
59
|
allOf?: unknown[] | undefined;
|
|
58
60
|
not?: unknown;
|
|
59
61
|
title?: string | undefined;
|
|
62
|
+
default?: any;
|
|
63
|
+
nullable?: boolean | undefined;
|
|
60
64
|
required?: string[] | undefined;
|
|
61
65
|
additionalProperties?: boolean | undefined;
|
|
62
66
|
}, {
|
|
@@ -68,6 +72,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
68
72
|
allOf?: unknown[] | undefined;
|
|
69
73
|
not?: unknown;
|
|
70
74
|
title?: string | undefined;
|
|
75
|
+
default?: any;
|
|
76
|
+
nullable?: boolean | undefined;
|
|
71
77
|
required?: string[] | undefined;
|
|
72
78
|
additionalProperties?: boolean | undefined;
|
|
73
79
|
}>>;
|
|
@@ -80,6 +86,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
80
86
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
81
87
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
82
88
|
title: z.ZodOptional<z.ZodString>;
|
|
89
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
90
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
83
91
|
description: z.ZodOptional<z.ZodString>;
|
|
84
92
|
additionalProperties: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
85
93
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -91,6 +99,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
91
99
|
allOf?: unknown[] | undefined;
|
|
92
100
|
not?: unknown;
|
|
93
101
|
title?: string | undefined;
|
|
102
|
+
default?: any;
|
|
103
|
+
nullable?: boolean | undefined;
|
|
94
104
|
required?: string[] | undefined;
|
|
95
105
|
additionalProperties?: boolean | undefined;
|
|
96
106
|
}, {
|
|
@@ -102,6 +112,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
102
112
|
allOf?: unknown[] | undefined;
|
|
103
113
|
not?: unknown;
|
|
104
114
|
title?: string | undefined;
|
|
115
|
+
default?: any;
|
|
116
|
+
nullable?: boolean | undefined;
|
|
105
117
|
required?: string[] | undefined;
|
|
106
118
|
additionalProperties?: boolean | undefined;
|
|
107
119
|
}>>;
|
|
@@ -134,6 +146,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
134
146
|
allOf?: unknown[] | undefined;
|
|
135
147
|
not?: unknown;
|
|
136
148
|
title?: string | undefined;
|
|
149
|
+
default?: any;
|
|
150
|
+
nullable?: boolean | undefined;
|
|
137
151
|
required?: string[] | undefined;
|
|
138
152
|
additionalProperties?: boolean | undefined;
|
|
139
153
|
} | undefined;
|
|
@@ -146,6 +160,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
146
160
|
allOf?: unknown[] | undefined;
|
|
147
161
|
not?: unknown;
|
|
148
162
|
title?: string | undefined;
|
|
163
|
+
default?: any;
|
|
164
|
+
nullable?: boolean | undefined;
|
|
149
165
|
required?: string[] | undefined;
|
|
150
166
|
additionalProperties?: boolean | undefined;
|
|
151
167
|
} | undefined;
|
|
@@ -168,6 +184,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
168
184
|
allOf?: unknown[] | undefined;
|
|
169
185
|
not?: unknown;
|
|
170
186
|
title?: string | undefined;
|
|
187
|
+
default?: any;
|
|
188
|
+
nullable?: boolean | undefined;
|
|
171
189
|
required?: string[] | undefined;
|
|
172
190
|
additionalProperties?: boolean | undefined;
|
|
173
191
|
} | undefined;
|
|
@@ -180,6 +198,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
180
198
|
allOf?: unknown[] | undefined;
|
|
181
199
|
not?: unknown;
|
|
182
200
|
title?: string | undefined;
|
|
201
|
+
default?: any;
|
|
202
|
+
nullable?: boolean | undefined;
|
|
183
203
|
required?: string[] | undefined;
|
|
184
204
|
additionalProperties?: boolean | undefined;
|
|
185
205
|
} | undefined;
|
|
@@ -209,6 +229,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
209
229
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
210
230
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
211
231
|
title: z.ZodOptional<z.ZodString>;
|
|
232
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
233
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
212
234
|
description: z.ZodOptional<z.ZodString>;
|
|
213
235
|
additionalProperties: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
214
236
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -220,6 +242,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
220
242
|
allOf?: unknown[] | undefined;
|
|
221
243
|
not?: unknown;
|
|
222
244
|
title?: string | undefined;
|
|
245
|
+
default?: any;
|
|
246
|
+
nullable?: boolean | undefined;
|
|
223
247
|
required?: string[] | undefined;
|
|
224
248
|
additionalProperties?: boolean | undefined;
|
|
225
249
|
}, {
|
|
@@ -231,6 +255,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
231
255
|
allOf?: unknown[] | undefined;
|
|
232
256
|
not?: unknown;
|
|
233
257
|
title?: string | undefined;
|
|
258
|
+
default?: any;
|
|
259
|
+
nullable?: boolean | undefined;
|
|
234
260
|
required?: string[] | undefined;
|
|
235
261
|
additionalProperties?: boolean | undefined;
|
|
236
262
|
}>>;
|
|
@@ -243,6 +269,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
243
269
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
244
270
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
245
271
|
title: z.ZodOptional<z.ZodString>;
|
|
272
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
273
|
+
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
246
274
|
description: z.ZodOptional<z.ZodString>;
|
|
247
275
|
additionalProperties: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
248
276
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -254,6 +282,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
254
282
|
allOf?: unknown[] | undefined;
|
|
255
283
|
not?: unknown;
|
|
256
284
|
title?: string | undefined;
|
|
285
|
+
default?: any;
|
|
286
|
+
nullable?: boolean | undefined;
|
|
257
287
|
required?: string[] | undefined;
|
|
258
288
|
additionalProperties?: boolean | undefined;
|
|
259
289
|
}, {
|
|
@@ -265,6 +295,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
265
295
|
allOf?: unknown[] | undefined;
|
|
266
296
|
not?: unknown;
|
|
267
297
|
title?: string | undefined;
|
|
298
|
+
default?: any;
|
|
299
|
+
nullable?: boolean | undefined;
|
|
268
300
|
required?: string[] | undefined;
|
|
269
301
|
additionalProperties?: boolean | undefined;
|
|
270
302
|
}>>;
|
|
@@ -297,6 +329,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
297
329
|
allOf?: unknown[] | undefined;
|
|
298
330
|
not?: unknown;
|
|
299
331
|
title?: string | undefined;
|
|
332
|
+
default?: any;
|
|
333
|
+
nullable?: boolean | undefined;
|
|
300
334
|
required?: string[] | undefined;
|
|
301
335
|
additionalProperties?: boolean | undefined;
|
|
302
336
|
} | undefined;
|
|
@@ -309,6 +343,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
309
343
|
allOf?: unknown[] | undefined;
|
|
310
344
|
not?: unknown;
|
|
311
345
|
title?: string | undefined;
|
|
346
|
+
default?: any;
|
|
347
|
+
nullable?: boolean | undefined;
|
|
312
348
|
required?: string[] | undefined;
|
|
313
349
|
additionalProperties?: boolean | undefined;
|
|
314
350
|
} | undefined;
|
|
@@ -331,6 +367,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
331
367
|
allOf?: unknown[] | undefined;
|
|
332
368
|
not?: unknown;
|
|
333
369
|
title?: string | undefined;
|
|
370
|
+
default?: any;
|
|
371
|
+
nullable?: boolean | undefined;
|
|
334
372
|
required?: string[] | undefined;
|
|
335
373
|
additionalProperties?: boolean | undefined;
|
|
336
374
|
} | undefined;
|
|
@@ -343,6 +381,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
343
381
|
allOf?: unknown[] | undefined;
|
|
344
382
|
not?: unknown;
|
|
345
383
|
title?: string | undefined;
|
|
384
|
+
default?: any;
|
|
385
|
+
nullable?: boolean | undefined;
|
|
346
386
|
required?: string[] | undefined;
|
|
347
387
|
additionalProperties?: boolean | undefined;
|
|
348
388
|
} | undefined;
|
|
@@ -371,6 +411,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
371
411
|
allOf?: unknown[] | undefined;
|
|
372
412
|
not?: unknown;
|
|
373
413
|
title?: string | undefined;
|
|
414
|
+
default?: any;
|
|
415
|
+
nullable?: boolean | undefined;
|
|
374
416
|
required?: string[] | undefined;
|
|
375
417
|
additionalProperties?: boolean | undefined;
|
|
376
418
|
} | undefined;
|
|
@@ -383,6 +425,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
383
425
|
allOf?: unknown[] | undefined;
|
|
384
426
|
not?: unknown;
|
|
385
427
|
title?: string | undefined;
|
|
428
|
+
default?: any;
|
|
429
|
+
nullable?: boolean | undefined;
|
|
386
430
|
required?: string[] | undefined;
|
|
387
431
|
additionalProperties?: boolean | undefined;
|
|
388
432
|
} | undefined;
|
|
@@ -409,6 +453,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
409
453
|
allOf?: unknown[] | undefined;
|
|
410
454
|
not?: unknown;
|
|
411
455
|
title?: string | undefined;
|
|
456
|
+
default?: any;
|
|
457
|
+
nullable?: boolean | undefined;
|
|
412
458
|
required?: string[] | undefined;
|
|
413
459
|
additionalProperties?: boolean | undefined;
|
|
414
460
|
} | undefined;
|
|
@@ -421,6 +467,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
421
467
|
allOf?: unknown[] | undefined;
|
|
422
468
|
not?: unknown;
|
|
423
469
|
title?: string | undefined;
|
|
470
|
+
default?: any;
|
|
471
|
+
nullable?: boolean | undefined;
|
|
424
472
|
required?: string[] | undefined;
|
|
425
473
|
additionalProperties?: boolean | undefined;
|
|
426
474
|
} | undefined;
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var JSONSchemaType = z.enum([
|
|
|
25
25
|
"null"
|
|
26
26
|
]);
|
|
27
27
|
var JSONSchemaProperty = z.object({
|
|
28
|
-
type: JSONSchemaType.optional(),
|
|
28
|
+
type: z.union([JSONSchemaType, z.array(JSONSchemaType)]).optional(),
|
|
29
29
|
description: z.string().optional(),
|
|
30
30
|
anyOf: z.lazy(() => z.array(JSONSchemaProperty)).optional(),
|
|
31
31
|
oneOf: z.lazy(() => z.array(JSONSchemaProperty)).optional(),
|
|
@@ -33,9 +33,43 @@ var JSONSchemaProperty = z.object({
|
|
|
33
33
|
not: z.lazy(() => JSONSchemaProperty).optional(),
|
|
34
34
|
title: z.string().optional(),
|
|
35
35
|
default: z.any().optional(),
|
|
36
|
+
nullable: z.boolean().optional(),
|
|
36
37
|
properties: z.lazy(() => z.record(z.string(), JSONSchemaProperty)).optional(),
|
|
37
38
|
required: z.array(z.string()).optional(),
|
|
38
|
-
items: z.lazy(() => JSONSchemaProperty).optional()
|
|
39
|
+
items: z.lazy(() => z.union([JSONSchemaProperty, z.array(JSONSchemaProperty)])).optional(),
|
|
40
|
+
enum: z.array(z.any()).optional(),
|
|
41
|
+
const: z.any().optional(),
|
|
42
|
+
minimum: z.number().optional(),
|
|
43
|
+
maximum: z.number().optional(),
|
|
44
|
+
exclusiveMinimum: z.number().optional(),
|
|
45
|
+
exclusiveMaximum: z.number().optional(),
|
|
46
|
+
multipleOf: z.number().optional(),
|
|
47
|
+
minLength: z.number().optional(),
|
|
48
|
+
maxLength: z.number().optional(),
|
|
49
|
+
pattern: z.string().optional(),
|
|
50
|
+
format: z.string().optional(),
|
|
51
|
+
minItems: z.number().optional(),
|
|
52
|
+
maxItems: z.number().optional(),
|
|
53
|
+
uniqueItems: z.boolean().optional(),
|
|
54
|
+
minProperties: z.number().optional(),
|
|
55
|
+
maxProperties: z.number().optional(),
|
|
56
|
+
patternProperties: z.lazy(() => z.record(z.string(), JSONSchemaProperty)).optional(),
|
|
57
|
+
additionalProperties: z.union([z.boolean(), z.lazy(() => JSONSchemaProperty)]).optional(),
|
|
58
|
+
examples: z.array(z.any()).optional(),
|
|
59
|
+
readOnly: z.boolean().optional(),
|
|
60
|
+
writeOnly: z.boolean().optional(),
|
|
61
|
+
if: z.lazy(() => JSONSchemaProperty).optional(),
|
|
62
|
+
then: z.lazy(() => JSONSchemaProperty).optional(),
|
|
63
|
+
else: z.lazy(() => JSONSchemaProperty).optional(),
|
|
64
|
+
$ref: z.string().optional(),
|
|
65
|
+
definitions: z.record(
|
|
66
|
+
z.string(),
|
|
67
|
+
z.lazy(() => JSONSchemaProperty)
|
|
68
|
+
).optional(),
|
|
69
|
+
$defs: z.record(
|
|
70
|
+
z.string(),
|
|
71
|
+
z.lazy(() => JSONSchemaProperty)
|
|
72
|
+
).optional()
|
|
39
73
|
});
|
|
40
74
|
var ParametersSchema = z.object({
|
|
41
75
|
type: z.literal("object"),
|
|
@@ -46,6 +80,8 @@ var ParametersSchema = z.object({
|
|
|
46
80
|
properties: z.record(z.string(), JSONSchemaProperty),
|
|
47
81
|
required: z.array(z.string()).optional(),
|
|
48
82
|
title: z.string().optional(),
|
|
83
|
+
default: z.any().optional(),
|
|
84
|
+
nullable: z.boolean().optional(),
|
|
49
85
|
description: z.string().optional(),
|
|
50
86
|
additionalProperties: z.boolean().default(false).optional()
|
|
51
87
|
});
|
|
@@ -4764,7 +4800,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
4764
4800
|
};
|
|
4765
4801
|
|
|
4766
4802
|
// package.json
|
|
4767
|
-
var version = "0.1.
|
|
4803
|
+
var version = "0.1.20";
|
|
4768
4804
|
|
|
4769
4805
|
// src/composio.ts
|
|
4770
4806
|
var Composio = class _Composio {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@composio/client": "0.1.0-alpha.22",
|
|
34
|
-
"@composio/json-schema-to-zod": "0.1.
|
|
34
|
+
"@composio/json-schema-to-zod": "0.1.8",
|
|
35
35
|
"chalk": "^5.4.1",
|
|
36
36
|
"openai": "^4.94.0",
|
|
37
37
|
"pusher-js": "^8.4.0",
|