@composio/core 0.1.18 → 0.1.19
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 +244 -204
- package/dist/index.d.cts +489 -377
- package/dist/index.d.ts +489 -377
- package/dist/index.js +243 -202
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -40,6 +40,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
40
40
|
inputParameters: z.ZodOptional<z.ZodObject<{
|
|
41
41
|
type: z.ZodLiteral<"object">;
|
|
42
42
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
43
|
+
oneOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
44
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
45
|
+
not: z.ZodOptional<z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
43
46
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
44
47
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
45
48
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -50,6 +53,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
50
53
|
properties: Record<string, unknown>;
|
|
51
54
|
description?: string | undefined;
|
|
52
55
|
anyOf?: unknown[] | undefined;
|
|
56
|
+
oneOf?: unknown[] | undefined;
|
|
57
|
+
allOf?: unknown[] | undefined;
|
|
58
|
+
not?: unknown;
|
|
53
59
|
title?: string | undefined;
|
|
54
60
|
required?: string[] | undefined;
|
|
55
61
|
additionalProperties?: boolean | undefined;
|
|
@@ -58,6 +64,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
58
64
|
properties: Record<string, unknown>;
|
|
59
65
|
description?: string | undefined;
|
|
60
66
|
anyOf?: unknown[] | undefined;
|
|
67
|
+
oneOf?: unknown[] | undefined;
|
|
68
|
+
allOf?: unknown[] | undefined;
|
|
69
|
+
not?: unknown;
|
|
61
70
|
title?: string | undefined;
|
|
62
71
|
required?: string[] | undefined;
|
|
63
72
|
additionalProperties?: boolean | undefined;
|
|
@@ -65,6 +74,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
65
74
|
outputParameters: z.ZodOptional<z.ZodObject<{
|
|
66
75
|
type: z.ZodLiteral<"object">;
|
|
67
76
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
77
|
+
oneOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
78
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
79
|
+
not: z.ZodOptional<z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
68
80
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
69
81
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
70
82
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -75,6 +87,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
75
87
|
properties: Record<string, unknown>;
|
|
76
88
|
description?: string | undefined;
|
|
77
89
|
anyOf?: unknown[] | undefined;
|
|
90
|
+
oneOf?: unknown[] | undefined;
|
|
91
|
+
allOf?: unknown[] | undefined;
|
|
92
|
+
not?: unknown;
|
|
78
93
|
title?: string | undefined;
|
|
79
94
|
required?: string[] | undefined;
|
|
80
95
|
additionalProperties?: boolean | undefined;
|
|
@@ -83,6 +98,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
83
98
|
properties: Record<string, unknown>;
|
|
84
99
|
description?: string | undefined;
|
|
85
100
|
anyOf?: unknown[] | undefined;
|
|
101
|
+
oneOf?: unknown[] | undefined;
|
|
102
|
+
allOf?: unknown[] | undefined;
|
|
103
|
+
not?: unknown;
|
|
86
104
|
title?: string | undefined;
|
|
87
105
|
required?: string[] | undefined;
|
|
88
106
|
additionalProperties?: boolean | undefined;
|
|
@@ -112,6 +130,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
112
130
|
properties: Record<string, unknown>;
|
|
113
131
|
description?: string | undefined;
|
|
114
132
|
anyOf?: unknown[] | undefined;
|
|
133
|
+
oneOf?: unknown[] | undefined;
|
|
134
|
+
allOf?: unknown[] | undefined;
|
|
135
|
+
not?: unknown;
|
|
115
136
|
title?: string | undefined;
|
|
116
137
|
required?: string[] | undefined;
|
|
117
138
|
additionalProperties?: boolean | undefined;
|
|
@@ -121,6 +142,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
121
142
|
properties: Record<string, unknown>;
|
|
122
143
|
description?: string | undefined;
|
|
123
144
|
anyOf?: unknown[] | undefined;
|
|
145
|
+
oneOf?: unknown[] | undefined;
|
|
146
|
+
allOf?: unknown[] | undefined;
|
|
147
|
+
not?: unknown;
|
|
124
148
|
title?: string | undefined;
|
|
125
149
|
required?: string[] | undefined;
|
|
126
150
|
additionalProperties?: boolean | undefined;
|
|
@@ -140,6 +164,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
140
164
|
properties: Record<string, unknown>;
|
|
141
165
|
description?: string | undefined;
|
|
142
166
|
anyOf?: unknown[] | undefined;
|
|
167
|
+
oneOf?: unknown[] | undefined;
|
|
168
|
+
allOf?: unknown[] | undefined;
|
|
169
|
+
not?: unknown;
|
|
143
170
|
title?: string | undefined;
|
|
144
171
|
required?: string[] | undefined;
|
|
145
172
|
additionalProperties?: boolean | undefined;
|
|
@@ -149,6 +176,9 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
149
176
|
properties: Record<string, unknown>;
|
|
150
177
|
description?: string | undefined;
|
|
151
178
|
anyOf?: unknown[] | undefined;
|
|
179
|
+
oneOf?: unknown[] | undefined;
|
|
180
|
+
allOf?: unknown[] | undefined;
|
|
181
|
+
not?: unknown;
|
|
152
182
|
title?: string | undefined;
|
|
153
183
|
required?: string[] | undefined;
|
|
154
184
|
additionalProperties?: boolean | undefined;
|
|
@@ -173,6 +203,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
173
203
|
inputParameters: z.ZodOptional<z.ZodObject<{
|
|
174
204
|
type: z.ZodLiteral<"object">;
|
|
175
205
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
206
|
+
oneOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
207
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
208
|
+
not: z.ZodOptional<z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
176
209
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
177
210
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
178
211
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -183,6 +216,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
183
216
|
properties: Record<string, unknown>;
|
|
184
217
|
description?: string | undefined;
|
|
185
218
|
anyOf?: unknown[] | undefined;
|
|
219
|
+
oneOf?: unknown[] | undefined;
|
|
220
|
+
allOf?: unknown[] | undefined;
|
|
221
|
+
not?: unknown;
|
|
186
222
|
title?: string | undefined;
|
|
187
223
|
required?: string[] | undefined;
|
|
188
224
|
additionalProperties?: boolean | undefined;
|
|
@@ -191,6 +227,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
191
227
|
properties: Record<string, unknown>;
|
|
192
228
|
description?: string | undefined;
|
|
193
229
|
anyOf?: unknown[] | undefined;
|
|
230
|
+
oneOf?: unknown[] | undefined;
|
|
231
|
+
allOf?: unknown[] | undefined;
|
|
232
|
+
not?: unknown;
|
|
194
233
|
title?: string | undefined;
|
|
195
234
|
required?: string[] | undefined;
|
|
196
235
|
additionalProperties?: boolean | undefined;
|
|
@@ -198,6 +237,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
198
237
|
outputParameters: z.ZodOptional<z.ZodObject<{
|
|
199
238
|
type: z.ZodLiteral<"object">;
|
|
200
239
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
240
|
+
oneOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
241
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">>;
|
|
242
|
+
not: z.ZodOptional<z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
201
243
|
properties: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
202
244
|
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
203
245
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -208,6 +250,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
208
250
|
properties: Record<string, unknown>;
|
|
209
251
|
description?: string | undefined;
|
|
210
252
|
anyOf?: unknown[] | undefined;
|
|
253
|
+
oneOf?: unknown[] | undefined;
|
|
254
|
+
allOf?: unknown[] | undefined;
|
|
255
|
+
not?: unknown;
|
|
211
256
|
title?: string | undefined;
|
|
212
257
|
required?: string[] | undefined;
|
|
213
258
|
additionalProperties?: boolean | undefined;
|
|
@@ -216,6 +261,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
216
261
|
properties: Record<string, unknown>;
|
|
217
262
|
description?: string | undefined;
|
|
218
263
|
anyOf?: unknown[] | undefined;
|
|
264
|
+
oneOf?: unknown[] | undefined;
|
|
265
|
+
allOf?: unknown[] | undefined;
|
|
266
|
+
not?: unknown;
|
|
219
267
|
title?: string | undefined;
|
|
220
268
|
required?: string[] | undefined;
|
|
221
269
|
additionalProperties?: boolean | undefined;
|
|
@@ -245,6 +293,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
245
293
|
properties: Record<string, unknown>;
|
|
246
294
|
description?: string | undefined;
|
|
247
295
|
anyOf?: unknown[] | undefined;
|
|
296
|
+
oneOf?: unknown[] | undefined;
|
|
297
|
+
allOf?: unknown[] | undefined;
|
|
298
|
+
not?: unknown;
|
|
248
299
|
title?: string | undefined;
|
|
249
300
|
required?: string[] | undefined;
|
|
250
301
|
additionalProperties?: boolean | undefined;
|
|
@@ -254,6 +305,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
254
305
|
properties: Record<string, unknown>;
|
|
255
306
|
description?: string | undefined;
|
|
256
307
|
anyOf?: unknown[] | undefined;
|
|
308
|
+
oneOf?: unknown[] | undefined;
|
|
309
|
+
allOf?: unknown[] | undefined;
|
|
310
|
+
not?: unknown;
|
|
257
311
|
title?: string | undefined;
|
|
258
312
|
required?: string[] | undefined;
|
|
259
313
|
additionalProperties?: boolean | undefined;
|
|
@@ -273,6 +327,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
273
327
|
properties: Record<string, unknown>;
|
|
274
328
|
description?: string | undefined;
|
|
275
329
|
anyOf?: unknown[] | undefined;
|
|
330
|
+
oneOf?: unknown[] | undefined;
|
|
331
|
+
allOf?: unknown[] | undefined;
|
|
332
|
+
not?: unknown;
|
|
276
333
|
title?: string | undefined;
|
|
277
334
|
required?: string[] | undefined;
|
|
278
335
|
additionalProperties?: boolean | undefined;
|
|
@@ -282,6 +339,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
282
339
|
properties: Record<string, unknown>;
|
|
283
340
|
description?: string | undefined;
|
|
284
341
|
anyOf?: unknown[] | undefined;
|
|
342
|
+
oneOf?: unknown[] | undefined;
|
|
343
|
+
allOf?: unknown[] | undefined;
|
|
344
|
+
not?: unknown;
|
|
285
345
|
title?: string | undefined;
|
|
286
346
|
required?: string[] | undefined;
|
|
287
347
|
additionalProperties?: boolean | undefined;
|
|
@@ -307,6 +367,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
307
367
|
properties: Record<string, unknown>;
|
|
308
368
|
description?: string | undefined;
|
|
309
369
|
anyOf?: unknown[] | undefined;
|
|
370
|
+
oneOf?: unknown[] | undefined;
|
|
371
|
+
allOf?: unknown[] | undefined;
|
|
372
|
+
not?: unknown;
|
|
310
373
|
title?: string | undefined;
|
|
311
374
|
required?: string[] | undefined;
|
|
312
375
|
additionalProperties?: boolean | undefined;
|
|
@@ -316,6 +379,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
316
379
|
properties: Record<string, unknown>;
|
|
317
380
|
description?: string | undefined;
|
|
318
381
|
anyOf?: unknown[] | undefined;
|
|
382
|
+
oneOf?: unknown[] | undefined;
|
|
383
|
+
allOf?: unknown[] | undefined;
|
|
384
|
+
not?: unknown;
|
|
319
385
|
title?: string | undefined;
|
|
320
386
|
required?: string[] | undefined;
|
|
321
387
|
additionalProperties?: boolean | undefined;
|
|
@@ -339,6 +405,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
339
405
|
properties: Record<string, unknown>;
|
|
340
406
|
description?: string | undefined;
|
|
341
407
|
anyOf?: unknown[] | undefined;
|
|
408
|
+
oneOf?: unknown[] | undefined;
|
|
409
|
+
allOf?: unknown[] | undefined;
|
|
410
|
+
not?: unknown;
|
|
342
411
|
title?: string | undefined;
|
|
343
412
|
required?: string[] | undefined;
|
|
344
413
|
additionalProperties?: boolean | undefined;
|
|
@@ -348,6 +417,9 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
348
417
|
properties: Record<string, unknown>;
|
|
349
418
|
description?: string | undefined;
|
|
350
419
|
anyOf?: unknown[] | undefined;
|
|
420
|
+
oneOf?: unknown[] | undefined;
|
|
421
|
+
allOf?: unknown[] | undefined;
|
|
422
|
+
not?: unknown;
|
|
351
423
|
title?: string | undefined;
|
|
352
424
|
required?: string[] | undefined;
|
|
353
425
|
additionalProperties?: boolean | undefined;
|
|
@@ -11330,6 +11402,48 @@ declare const ToolkitRetrieveCategoriesResponseSchema: z.ZodObject<{
|
|
|
11330
11402
|
}>;
|
|
11331
11403
|
type ToolkitCategory = z.infer<typeof ToolkitCategorySchema>;
|
|
11332
11404
|
type ToolkitRetrieveCategoriesResponse = z.infer<typeof ToolkitRetrieveCategoriesResponseSchema>;
|
|
11405
|
+
declare const ToolkitAuthFieldsResponseSchema: z.ZodObject<{
|
|
11406
|
+
authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>;
|
|
11407
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
11408
|
+
name: z.ZodString;
|
|
11409
|
+
displayName: z.ZodString;
|
|
11410
|
+
type: z.ZodString;
|
|
11411
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11412
|
+
} & {
|
|
11413
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11414
|
+
}, "strip", z.ZodTypeAny, {
|
|
11415
|
+
name: string;
|
|
11416
|
+
type: string;
|
|
11417
|
+
displayName: string;
|
|
11418
|
+
default?: string | null | undefined;
|
|
11419
|
+
required?: boolean | undefined;
|
|
11420
|
+
}, {
|
|
11421
|
+
name: string;
|
|
11422
|
+
type: string;
|
|
11423
|
+
displayName: string;
|
|
11424
|
+
default?: string | null | undefined;
|
|
11425
|
+
required?: boolean | undefined;
|
|
11426
|
+
}>, "many">;
|
|
11427
|
+
}, "strip", z.ZodTypeAny, {
|
|
11428
|
+
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
11429
|
+
fields: {
|
|
11430
|
+
name: string;
|
|
11431
|
+
type: string;
|
|
11432
|
+
displayName: string;
|
|
11433
|
+
default?: string | null | undefined;
|
|
11434
|
+
required?: boolean | undefined;
|
|
11435
|
+
}[];
|
|
11436
|
+
}, {
|
|
11437
|
+
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
11438
|
+
fields: {
|
|
11439
|
+
name: string;
|
|
11440
|
+
type: string;
|
|
11441
|
+
displayName: string;
|
|
11442
|
+
default?: string | null | undefined;
|
|
11443
|
+
required?: boolean | undefined;
|
|
11444
|
+
}[];
|
|
11445
|
+
}>;
|
|
11446
|
+
type ToolkitAuthFieldsResponse = z.infer<typeof ToolkitAuthFieldsResponseSchema>;
|
|
11333
11447
|
|
|
11334
11448
|
/**
|
|
11335
11449
|
* Connected Account create parameters
|
|
@@ -39648,6 +39762,352 @@ declare class ConnectionRequest {
|
|
|
39648
39762
|
toString(): string;
|
|
39649
39763
|
}
|
|
39650
39764
|
|
|
39765
|
+
declare const AuthConfigTypes: {
|
|
39766
|
+
readonly CUSTOM: "use_custom_auth";
|
|
39767
|
+
readonly COMPOSIO_MANAGED: "use_composio_managed_auth";
|
|
39768
|
+
};
|
|
39769
|
+
type AuthConfigType = (typeof AuthConfigTypes)[keyof typeof AuthConfigTypes];
|
|
39770
|
+
declare const AuthSchemeTypes: {
|
|
39771
|
+
readonly OAUTH2: "OAUTH2";
|
|
39772
|
+
readonly OAUTH1: "OAUTH1";
|
|
39773
|
+
readonly OAUTH1A: "OAUTH1A";
|
|
39774
|
+
readonly API_KEY: "API_KEY";
|
|
39775
|
+
readonly BASIC: "BASIC";
|
|
39776
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
39777
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
39778
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
39779
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
39780
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
39781
|
+
readonly COMPOSIO_LINK: "COMPOSIO_LINK";
|
|
39782
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
39783
|
+
readonly SNOWFLAKE: "SNOWFLAKE";
|
|
39784
|
+
};
|
|
39785
|
+
type AuthSchemeType = (typeof AuthSchemeTypes)[keyof typeof AuthSchemeTypes];
|
|
39786
|
+
declare const AuthSchemeEnum: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>;
|
|
39787
|
+
declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
|
|
39788
|
+
type: z.ZodLiteral<"use_custom_auth">;
|
|
39789
|
+
name: z.ZodOptional<z.ZodString>;
|
|
39790
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
39791
|
+
authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>;
|
|
39792
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39793
|
+
}, "strip", z.ZodTypeAny, {
|
|
39794
|
+
type: "use_custom_auth";
|
|
39795
|
+
credentials: Record<string, string | number | boolean>;
|
|
39796
|
+
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
39797
|
+
name?: string | undefined;
|
|
39798
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39799
|
+
}, {
|
|
39800
|
+
type: "use_custom_auth";
|
|
39801
|
+
credentials: Record<string, string | number | boolean>;
|
|
39802
|
+
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
39803
|
+
name?: string | undefined;
|
|
39804
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39805
|
+
}>;
|
|
39806
|
+
declare const CreateComposioManagedAuthConfigParamsSchema: z.ZodObject<{
|
|
39807
|
+
type: z.ZodLiteral<"use_composio_managed_auth">;
|
|
39808
|
+
name: z.ZodOptional<z.ZodString>;
|
|
39809
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
39810
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39811
|
+
}, "strip", z.ZodTypeAny, {
|
|
39812
|
+
type: "use_composio_managed_auth";
|
|
39813
|
+
name?: string | undefined;
|
|
39814
|
+
credentials?: Record<string, string | number | boolean> | undefined;
|
|
39815
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39816
|
+
}, {
|
|
39817
|
+
type: "use_composio_managed_auth";
|
|
39818
|
+
name?: string | undefined;
|
|
39819
|
+
credentials?: Record<string, string | number | boolean> | undefined;
|
|
39820
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39821
|
+
}>;
|
|
39822
|
+
/**
|
|
39823
|
+
* Discriminated union of all possible auth config types.
|
|
39824
|
+
*/
|
|
39825
|
+
declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
39826
|
+
type: z.ZodLiteral<"use_custom_auth">;
|
|
39827
|
+
name: z.ZodOptional<z.ZodString>;
|
|
39828
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
39829
|
+
authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>;
|
|
39830
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39831
|
+
}, "strip", z.ZodTypeAny, {
|
|
39832
|
+
type: "use_custom_auth";
|
|
39833
|
+
credentials: Record<string, string | number | boolean>;
|
|
39834
|
+
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
39835
|
+
name?: string | undefined;
|
|
39836
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39837
|
+
}, {
|
|
39838
|
+
type: "use_custom_auth";
|
|
39839
|
+
credentials: Record<string, string | number | boolean>;
|
|
39840
|
+
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
39841
|
+
name?: string | undefined;
|
|
39842
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39843
|
+
}>, z.ZodObject<{
|
|
39844
|
+
type: z.ZodLiteral<"use_composio_managed_auth">;
|
|
39845
|
+
name: z.ZodOptional<z.ZodString>;
|
|
39846
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
39847
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39848
|
+
}, "strip", z.ZodTypeAny, {
|
|
39849
|
+
type: "use_composio_managed_auth";
|
|
39850
|
+
name?: string | undefined;
|
|
39851
|
+
credentials?: Record<string, string | number | boolean> | undefined;
|
|
39852
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39853
|
+
}, {
|
|
39854
|
+
type: "use_composio_managed_auth";
|
|
39855
|
+
name?: string | undefined;
|
|
39856
|
+
credentials?: Record<string, string | number | boolean> | undefined;
|
|
39857
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39858
|
+
}>]>;
|
|
39859
|
+
type CreateAuthConfigParams = z.infer<typeof CreateAuthConfigParamsSchema>;
|
|
39860
|
+
declare const CreateAuthConfigResponseSchema: z.ZodObject<{
|
|
39861
|
+
id: z.ZodString;
|
|
39862
|
+
authScheme: z.ZodString;
|
|
39863
|
+
isComposioManaged: z.ZodBoolean;
|
|
39864
|
+
toolkit: z.ZodString;
|
|
39865
|
+
}, "strip", z.ZodTypeAny, {
|
|
39866
|
+
toolkit: string;
|
|
39867
|
+
authScheme: string;
|
|
39868
|
+
id: string;
|
|
39869
|
+
isComposioManaged: boolean;
|
|
39870
|
+
}, {
|
|
39871
|
+
toolkit: string;
|
|
39872
|
+
authScheme: string;
|
|
39873
|
+
id: string;
|
|
39874
|
+
isComposioManaged: boolean;
|
|
39875
|
+
}>;
|
|
39876
|
+
type CreateAuthConfigResponse = z.infer<typeof CreateAuthConfigResponseSchema>;
|
|
39877
|
+
declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
39878
|
+
id: z.ZodString;
|
|
39879
|
+
name: z.ZodString;
|
|
39880
|
+
toolkit: z.ZodObject<{
|
|
39881
|
+
logo: z.ZodString;
|
|
39882
|
+
slug: z.ZodString;
|
|
39883
|
+
}, "strip", z.ZodTypeAny, {
|
|
39884
|
+
slug: string;
|
|
39885
|
+
logo: string;
|
|
39886
|
+
}, {
|
|
39887
|
+
slug: string;
|
|
39888
|
+
logo: string;
|
|
39889
|
+
}>;
|
|
39890
|
+
noOfConnections: z.ZodNumber;
|
|
39891
|
+
status: z.ZodEnum<["ENABLED", "DISABLED"]>;
|
|
39892
|
+
uuid: z.ZodString;
|
|
39893
|
+
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>>;
|
|
39894
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39895
|
+
expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
39896
|
+
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
39897
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
39898
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
39899
|
+
lastUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
39900
|
+
}, "strip", z.ZodTypeAny, {
|
|
39901
|
+
name: string;
|
|
39902
|
+
status: "ENABLED" | "DISABLED";
|
|
39903
|
+
toolkit: {
|
|
39904
|
+
slug: string;
|
|
39905
|
+
logo: string;
|
|
39906
|
+
};
|
|
39907
|
+
id: string;
|
|
39908
|
+
noOfConnections: number;
|
|
39909
|
+
uuid: string;
|
|
39910
|
+
credentials?: Record<string, unknown> | undefined;
|
|
39911
|
+
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
39912
|
+
isComposioManaged?: boolean | undefined;
|
|
39913
|
+
expectedInputFields?: unknown[] | undefined;
|
|
39914
|
+
createdBy?: string | undefined;
|
|
39915
|
+
createdAt?: string | undefined;
|
|
39916
|
+
lastUpdatedAt?: string | undefined;
|
|
39917
|
+
}, {
|
|
39918
|
+
name: string;
|
|
39919
|
+
status: "ENABLED" | "DISABLED";
|
|
39920
|
+
toolkit: {
|
|
39921
|
+
slug: string;
|
|
39922
|
+
logo: string;
|
|
39923
|
+
};
|
|
39924
|
+
id: string;
|
|
39925
|
+
noOfConnections: number;
|
|
39926
|
+
uuid: string;
|
|
39927
|
+
credentials?: Record<string, unknown> | undefined;
|
|
39928
|
+
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
39929
|
+
isComposioManaged?: boolean | undefined;
|
|
39930
|
+
expectedInputFields?: unknown[] | undefined;
|
|
39931
|
+
createdBy?: string | undefined;
|
|
39932
|
+
createdAt?: string | undefined;
|
|
39933
|
+
lastUpdatedAt?: string | undefined;
|
|
39934
|
+
}>;
|
|
39935
|
+
type AuthConfigRetrieveResponse = z.infer<typeof AuthConfigRetrieveResponseSchema>;
|
|
39936
|
+
declare const AuthConfigListParamsSchema: z.ZodObject<{
|
|
39937
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
39938
|
+
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
39939
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
39940
|
+
toolkit: z.ZodOptional<z.ZodString>;
|
|
39941
|
+
}, "strip", z.ZodTypeAny, {
|
|
39942
|
+
toolkit?: string | undefined;
|
|
39943
|
+
cursor?: string | undefined;
|
|
39944
|
+
limit?: number | undefined;
|
|
39945
|
+
isComposioManaged?: boolean | undefined;
|
|
39946
|
+
}, {
|
|
39947
|
+
toolkit?: string | undefined;
|
|
39948
|
+
cursor?: string | undefined;
|
|
39949
|
+
limit?: number | undefined;
|
|
39950
|
+
isComposioManaged?: boolean | undefined;
|
|
39951
|
+
}>;
|
|
39952
|
+
type AuthConfigListParams = z.infer<typeof AuthConfigListParamsSchema>;
|
|
39953
|
+
declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
39954
|
+
items: z.ZodArray<z.ZodObject<{
|
|
39955
|
+
id: z.ZodString;
|
|
39956
|
+
name: z.ZodString;
|
|
39957
|
+
toolkit: z.ZodObject<{
|
|
39958
|
+
logo: z.ZodString;
|
|
39959
|
+
slug: z.ZodString;
|
|
39960
|
+
}, "strip", z.ZodTypeAny, {
|
|
39961
|
+
slug: string;
|
|
39962
|
+
logo: string;
|
|
39963
|
+
}, {
|
|
39964
|
+
slug: string;
|
|
39965
|
+
logo: string;
|
|
39966
|
+
}>;
|
|
39967
|
+
noOfConnections: z.ZodNumber;
|
|
39968
|
+
status: z.ZodEnum<["ENABLED", "DISABLED"]>;
|
|
39969
|
+
uuid: z.ZodString;
|
|
39970
|
+
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>>;
|
|
39971
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39972
|
+
expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
39973
|
+
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
39974
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
39975
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
39976
|
+
lastUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
39977
|
+
}, "strip", z.ZodTypeAny, {
|
|
39978
|
+
name: string;
|
|
39979
|
+
status: "ENABLED" | "DISABLED";
|
|
39980
|
+
toolkit: {
|
|
39981
|
+
slug: string;
|
|
39982
|
+
logo: string;
|
|
39983
|
+
};
|
|
39984
|
+
id: string;
|
|
39985
|
+
noOfConnections: number;
|
|
39986
|
+
uuid: string;
|
|
39987
|
+
credentials?: Record<string, unknown> | undefined;
|
|
39988
|
+
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
39989
|
+
isComposioManaged?: boolean | undefined;
|
|
39990
|
+
expectedInputFields?: unknown[] | undefined;
|
|
39991
|
+
createdBy?: string | undefined;
|
|
39992
|
+
createdAt?: string | undefined;
|
|
39993
|
+
lastUpdatedAt?: string | undefined;
|
|
39994
|
+
}, {
|
|
39995
|
+
name: string;
|
|
39996
|
+
status: "ENABLED" | "DISABLED";
|
|
39997
|
+
toolkit: {
|
|
39998
|
+
slug: string;
|
|
39999
|
+
logo: string;
|
|
40000
|
+
};
|
|
40001
|
+
id: string;
|
|
40002
|
+
noOfConnections: number;
|
|
40003
|
+
uuid: string;
|
|
40004
|
+
credentials?: Record<string, unknown> | undefined;
|
|
40005
|
+
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40006
|
+
isComposioManaged?: boolean | undefined;
|
|
40007
|
+
expectedInputFields?: unknown[] | undefined;
|
|
40008
|
+
createdBy?: string | undefined;
|
|
40009
|
+
createdAt?: string | undefined;
|
|
40010
|
+
lastUpdatedAt?: string | undefined;
|
|
40011
|
+
}>, "many">;
|
|
40012
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
40013
|
+
totalPages: z.ZodNumber;
|
|
40014
|
+
}, "strip", z.ZodTypeAny, {
|
|
40015
|
+
items: {
|
|
40016
|
+
name: string;
|
|
40017
|
+
status: "ENABLED" | "DISABLED";
|
|
40018
|
+
toolkit: {
|
|
40019
|
+
slug: string;
|
|
40020
|
+
logo: string;
|
|
40021
|
+
};
|
|
40022
|
+
id: string;
|
|
40023
|
+
noOfConnections: number;
|
|
40024
|
+
uuid: string;
|
|
40025
|
+
credentials?: Record<string, unknown> | undefined;
|
|
40026
|
+
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40027
|
+
isComposioManaged?: boolean | undefined;
|
|
40028
|
+
expectedInputFields?: unknown[] | undefined;
|
|
40029
|
+
createdBy?: string | undefined;
|
|
40030
|
+
createdAt?: string | undefined;
|
|
40031
|
+
lastUpdatedAt?: string | undefined;
|
|
40032
|
+
}[];
|
|
40033
|
+
nextCursor: string | null;
|
|
40034
|
+
totalPages: number;
|
|
40035
|
+
}, {
|
|
40036
|
+
items: {
|
|
40037
|
+
name: string;
|
|
40038
|
+
status: "ENABLED" | "DISABLED";
|
|
40039
|
+
toolkit: {
|
|
40040
|
+
slug: string;
|
|
40041
|
+
logo: string;
|
|
40042
|
+
};
|
|
40043
|
+
id: string;
|
|
40044
|
+
noOfConnections: number;
|
|
40045
|
+
uuid: string;
|
|
40046
|
+
credentials?: Record<string, unknown> | undefined;
|
|
40047
|
+
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40048
|
+
isComposioManaged?: boolean | undefined;
|
|
40049
|
+
expectedInputFields?: unknown[] | undefined;
|
|
40050
|
+
createdBy?: string | undefined;
|
|
40051
|
+
createdAt?: string | undefined;
|
|
40052
|
+
lastUpdatedAt?: string | undefined;
|
|
40053
|
+
}[];
|
|
40054
|
+
nextCursor: string | null;
|
|
40055
|
+
totalPages: number;
|
|
40056
|
+
}>;
|
|
40057
|
+
type AuthConfigListResponse = z.infer<typeof AuthConfigListResponseSchema>;
|
|
40058
|
+
declare const AuthCustomConfigUpdateParamsSchema: z.ZodObject<{
|
|
40059
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnknown]>>;
|
|
40060
|
+
type: z.ZodLiteral<"custom">;
|
|
40061
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40062
|
+
}, "strip", z.ZodTypeAny, {
|
|
40063
|
+
type: "custom";
|
|
40064
|
+
credentials: Record<string, unknown>;
|
|
40065
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40066
|
+
}, {
|
|
40067
|
+
type: "custom";
|
|
40068
|
+
credentials: Record<string, unknown>;
|
|
40069
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40070
|
+
}>;
|
|
40071
|
+
declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
|
|
40072
|
+
scopes: z.ZodString;
|
|
40073
|
+
type: z.ZodLiteral<"default">;
|
|
40074
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40075
|
+
}, "strip", z.ZodTypeAny, {
|
|
40076
|
+
type: "default";
|
|
40077
|
+
scopes: string;
|
|
40078
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40079
|
+
}, {
|
|
40080
|
+
type: "default";
|
|
40081
|
+
scopes: string;
|
|
40082
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40083
|
+
}>;
|
|
40084
|
+
declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
40085
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnknown]>>;
|
|
40086
|
+
type: z.ZodLiteral<"custom">;
|
|
40087
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40088
|
+
}, "strip", z.ZodTypeAny, {
|
|
40089
|
+
type: "custom";
|
|
40090
|
+
credentials: Record<string, unknown>;
|
|
40091
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40092
|
+
}, {
|
|
40093
|
+
type: "custom";
|
|
40094
|
+
credentials: Record<string, unknown>;
|
|
40095
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40096
|
+
}>, z.ZodObject<{
|
|
40097
|
+
scopes: z.ZodString;
|
|
40098
|
+
type: z.ZodLiteral<"default">;
|
|
40099
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40100
|
+
}, "strip", z.ZodTypeAny, {
|
|
40101
|
+
type: "default";
|
|
40102
|
+
scopes: string;
|
|
40103
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40104
|
+
}, {
|
|
40105
|
+
type: "default";
|
|
40106
|
+
scopes: string;
|
|
40107
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40108
|
+
}>]>;
|
|
40109
|
+
type AuthConfigUpdateParams = z.infer<typeof AuthConfigUpdateParamsSchema>;
|
|
40110
|
+
|
|
39651
40111
|
/**
|
|
39652
40112
|
* Toolkits class
|
|
39653
40113
|
*
|
|
@@ -39682,7 +40142,7 @@ declare class Toolkits {
|
|
|
39682
40142
|
*
|
|
39683
40143
|
* @private
|
|
39684
40144
|
*/
|
|
39685
|
-
|
|
40145
|
+
protected getToolkitBySlug(slug: string): Promise<ToolkitRetrieveResponse>;
|
|
39686
40146
|
/**
|
|
39687
40147
|
* Retrieves a specific toolkit by its slug identifier.
|
|
39688
40148
|
*
|
|
@@ -39722,6 +40182,29 @@ declare class Toolkits {
|
|
|
39722
40182
|
* ```
|
|
39723
40183
|
*/
|
|
39724
40184
|
get(query: ToolkitListParams): Promise<ToolKitListResponse>;
|
|
40185
|
+
private getAuthConfigFields;
|
|
40186
|
+
/**
|
|
40187
|
+
* Retrieves the fields required for creating an auth config for a toolkit.
|
|
40188
|
+
* @param toolkitSlug - The slug of the toolkit to retrieve the fields for
|
|
40189
|
+
* @param authScheme - The auth scheme to retrieve the fields for
|
|
40190
|
+
* @param requiredOnly - Whether to only return the required fields
|
|
40191
|
+
* @returns {Promise<ToolkitAuthFieldsResponse>} The fields required for creating an auth config
|
|
40192
|
+
*/
|
|
40193
|
+
getAuthConfigCreationFields(toolkitSlug: string, { authScheme, requiredOnly, }?: {
|
|
40194
|
+
authScheme?: AuthSchemeType;
|
|
40195
|
+
requiredOnly?: boolean;
|
|
40196
|
+
}): Promise<ToolkitAuthFieldsResponse>;
|
|
40197
|
+
/**
|
|
40198
|
+
* Retrieves the fields required for initiating a connected account for a toolkit.
|
|
40199
|
+
* @param toolkitSlug - The slug of the toolkit to retrieve the fields for
|
|
40200
|
+
* @param authScheme - The auth scheme to retrieve the fields for
|
|
40201
|
+
* @param requiredOnly - Whether to only return the required fields
|
|
40202
|
+
* @returns {Promise<ToolkitAuthFieldsResponse>} The fields required for initiating a connected account
|
|
40203
|
+
*/
|
|
40204
|
+
getConnectedAccountInitiationFields(toolkitSlug: string, { authScheme, requiredOnly, }?: {
|
|
40205
|
+
authScheme?: AuthSchemeType;
|
|
40206
|
+
requiredOnly?: boolean;
|
|
40207
|
+
}): Promise<ToolkitAuthFieldsResponse>;
|
|
39725
40208
|
/**
|
|
39726
40209
|
* Retrieves all toolkit categories available in the Composio SDK.
|
|
39727
40210
|
*
|
|
@@ -40017,8 +40500,6 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
40017
40500
|
}, "strip", z.ZodTypeAny, {
|
|
40018
40501
|
userId: string;
|
|
40019
40502
|
id: string;
|
|
40020
|
-
toolkitSlug: string;
|
|
40021
|
-
triggerSlug: string;
|
|
40022
40503
|
metadata: {
|
|
40023
40504
|
id: string;
|
|
40024
40505
|
toolkitSlug: string;
|
|
@@ -40034,13 +40515,13 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
40034
40515
|
};
|
|
40035
40516
|
triggerData?: string | undefined;
|
|
40036
40517
|
};
|
|
40518
|
+
toolkitSlug: string;
|
|
40519
|
+
triggerSlug: string;
|
|
40037
40520
|
payload?: Record<string, unknown> | undefined;
|
|
40038
40521
|
originalPayload?: Record<string, unknown> | undefined;
|
|
40039
40522
|
}, {
|
|
40040
40523
|
userId: string;
|
|
40041
40524
|
id: string;
|
|
40042
|
-
toolkitSlug: string;
|
|
40043
|
-
triggerSlug: string;
|
|
40044
40525
|
metadata: {
|
|
40045
40526
|
id: string;
|
|
40046
40527
|
toolkitSlug: string;
|
|
@@ -40056,6 +40537,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
40056
40537
|
};
|
|
40057
40538
|
triggerData?: string | undefined;
|
|
40058
40539
|
};
|
|
40540
|
+
toolkitSlug: string;
|
|
40541
|
+
triggerSlug: string;
|
|
40059
40542
|
payload?: Record<string, unknown> | undefined;
|
|
40060
40543
|
originalPayload?: Record<string, unknown> | undefined;
|
|
40061
40544
|
}>;
|
|
@@ -40211,352 +40694,6 @@ declare class Triggers {
|
|
|
40211
40694
|
unsubscribe(): Promise<void>;
|
|
40212
40695
|
}
|
|
40213
40696
|
|
|
40214
|
-
declare const AuthConfigTypes: {
|
|
40215
|
-
readonly CUSTOM: "use_custom_auth";
|
|
40216
|
-
readonly COMPOSIO_MANAGED: "use_composio_managed_auth";
|
|
40217
|
-
};
|
|
40218
|
-
type AuthConfigType = (typeof AuthConfigTypes)[keyof typeof AuthConfigTypes];
|
|
40219
|
-
declare const AuthSchemeTypes: {
|
|
40220
|
-
readonly OAUTH2: "OAUTH2";
|
|
40221
|
-
readonly OAUTH1: "OAUTH1";
|
|
40222
|
-
readonly OAUTH1A: "OAUTH1A";
|
|
40223
|
-
readonly API_KEY: "API_KEY";
|
|
40224
|
-
readonly BASIC: "BASIC";
|
|
40225
|
-
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
40226
|
-
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
40227
|
-
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
40228
|
-
readonly NO_AUTH: "NO_AUTH";
|
|
40229
|
-
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
40230
|
-
readonly COMPOSIO_LINK: "COMPOSIO_LINK";
|
|
40231
|
-
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
40232
|
-
readonly SNOWFLAKE: "SNOWFLAKE";
|
|
40233
|
-
};
|
|
40234
|
-
type AuthSchemeType = (typeof AuthSchemeTypes)[keyof typeof AuthSchemeTypes];
|
|
40235
|
-
declare const AuthSchemeEnum: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>;
|
|
40236
|
-
declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
|
|
40237
|
-
type: z.ZodLiteral<"use_custom_auth">;
|
|
40238
|
-
name: z.ZodOptional<z.ZodString>;
|
|
40239
|
-
credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
40240
|
-
authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>;
|
|
40241
|
-
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40242
|
-
}, "strip", z.ZodTypeAny, {
|
|
40243
|
-
type: "use_custom_auth";
|
|
40244
|
-
credentials: Record<string, string | number | boolean>;
|
|
40245
|
-
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
40246
|
-
name?: string | undefined;
|
|
40247
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40248
|
-
}, {
|
|
40249
|
-
type: "use_custom_auth";
|
|
40250
|
-
credentials: Record<string, string | number | boolean>;
|
|
40251
|
-
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
40252
|
-
name?: string | undefined;
|
|
40253
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40254
|
-
}>;
|
|
40255
|
-
declare const CreateComposioManagedAuthConfigParamsSchema: z.ZodObject<{
|
|
40256
|
-
type: z.ZodLiteral<"use_composio_managed_auth">;
|
|
40257
|
-
name: z.ZodOptional<z.ZodString>;
|
|
40258
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
40259
|
-
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40260
|
-
}, "strip", z.ZodTypeAny, {
|
|
40261
|
-
type: "use_composio_managed_auth";
|
|
40262
|
-
name?: string | undefined;
|
|
40263
|
-
credentials?: Record<string, string | number | boolean> | undefined;
|
|
40264
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40265
|
-
}, {
|
|
40266
|
-
type: "use_composio_managed_auth";
|
|
40267
|
-
name?: string | undefined;
|
|
40268
|
-
credentials?: Record<string, string | number | boolean> | undefined;
|
|
40269
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40270
|
-
}>;
|
|
40271
|
-
/**
|
|
40272
|
-
* Discriminated union of all possible auth config types.
|
|
40273
|
-
*/
|
|
40274
|
-
declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
40275
|
-
type: z.ZodLiteral<"use_custom_auth">;
|
|
40276
|
-
name: z.ZodOptional<z.ZodString>;
|
|
40277
|
-
credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
40278
|
-
authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>;
|
|
40279
|
-
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40280
|
-
}, "strip", z.ZodTypeAny, {
|
|
40281
|
-
type: "use_custom_auth";
|
|
40282
|
-
credentials: Record<string, string | number | boolean>;
|
|
40283
|
-
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
40284
|
-
name?: string | undefined;
|
|
40285
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40286
|
-
}, {
|
|
40287
|
-
type: "use_custom_auth";
|
|
40288
|
-
credentials: Record<string, string | number | boolean>;
|
|
40289
|
-
authScheme: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
40290
|
-
name?: string | undefined;
|
|
40291
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40292
|
-
}>, z.ZodObject<{
|
|
40293
|
-
type: z.ZodLiteral<"use_composio_managed_auth">;
|
|
40294
|
-
name: z.ZodOptional<z.ZodString>;
|
|
40295
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
40296
|
-
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40297
|
-
}, "strip", z.ZodTypeAny, {
|
|
40298
|
-
type: "use_composio_managed_auth";
|
|
40299
|
-
name?: string | undefined;
|
|
40300
|
-
credentials?: Record<string, string | number | boolean> | undefined;
|
|
40301
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40302
|
-
}, {
|
|
40303
|
-
type: "use_composio_managed_auth";
|
|
40304
|
-
name?: string | undefined;
|
|
40305
|
-
credentials?: Record<string, string | number | boolean> | undefined;
|
|
40306
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40307
|
-
}>]>;
|
|
40308
|
-
type CreateAuthConfigParams = z.infer<typeof CreateAuthConfigParamsSchema>;
|
|
40309
|
-
declare const CreateAuthConfigResponseSchema: z.ZodObject<{
|
|
40310
|
-
id: z.ZodString;
|
|
40311
|
-
authScheme: z.ZodString;
|
|
40312
|
-
isComposioManaged: z.ZodBoolean;
|
|
40313
|
-
toolkit: z.ZodString;
|
|
40314
|
-
}, "strip", z.ZodTypeAny, {
|
|
40315
|
-
toolkit: string;
|
|
40316
|
-
authScheme: string;
|
|
40317
|
-
id: string;
|
|
40318
|
-
isComposioManaged: boolean;
|
|
40319
|
-
}, {
|
|
40320
|
-
toolkit: string;
|
|
40321
|
-
authScheme: string;
|
|
40322
|
-
id: string;
|
|
40323
|
-
isComposioManaged: boolean;
|
|
40324
|
-
}>;
|
|
40325
|
-
type CreateAuthConfigResponse = z.infer<typeof CreateAuthConfigResponseSchema>;
|
|
40326
|
-
declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
40327
|
-
id: z.ZodString;
|
|
40328
|
-
name: z.ZodString;
|
|
40329
|
-
toolkit: z.ZodObject<{
|
|
40330
|
-
logo: z.ZodString;
|
|
40331
|
-
slug: z.ZodString;
|
|
40332
|
-
}, "strip", z.ZodTypeAny, {
|
|
40333
|
-
slug: string;
|
|
40334
|
-
logo: string;
|
|
40335
|
-
}, {
|
|
40336
|
-
slug: string;
|
|
40337
|
-
logo: string;
|
|
40338
|
-
}>;
|
|
40339
|
-
noOfConnections: z.ZodNumber;
|
|
40340
|
-
status: z.ZodEnum<["ENABLED", "DISABLED"]>;
|
|
40341
|
-
uuid: z.ZodString;
|
|
40342
|
-
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>>;
|
|
40343
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40344
|
-
expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
40345
|
-
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
40346
|
-
createdBy: z.ZodOptional<z.ZodString>;
|
|
40347
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
40348
|
-
lastUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
40349
|
-
}, "strip", z.ZodTypeAny, {
|
|
40350
|
-
name: string;
|
|
40351
|
-
status: "ENABLED" | "DISABLED";
|
|
40352
|
-
toolkit: {
|
|
40353
|
-
slug: string;
|
|
40354
|
-
logo: string;
|
|
40355
|
-
};
|
|
40356
|
-
id: string;
|
|
40357
|
-
noOfConnections: number;
|
|
40358
|
-
uuid: string;
|
|
40359
|
-
credentials?: Record<string, unknown> | undefined;
|
|
40360
|
-
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40361
|
-
isComposioManaged?: boolean | undefined;
|
|
40362
|
-
expectedInputFields?: unknown[] | undefined;
|
|
40363
|
-
createdBy?: string | undefined;
|
|
40364
|
-
createdAt?: string | undefined;
|
|
40365
|
-
lastUpdatedAt?: string | undefined;
|
|
40366
|
-
}, {
|
|
40367
|
-
name: string;
|
|
40368
|
-
status: "ENABLED" | "DISABLED";
|
|
40369
|
-
toolkit: {
|
|
40370
|
-
slug: string;
|
|
40371
|
-
logo: string;
|
|
40372
|
-
};
|
|
40373
|
-
id: string;
|
|
40374
|
-
noOfConnections: number;
|
|
40375
|
-
uuid: string;
|
|
40376
|
-
credentials?: Record<string, unknown> | undefined;
|
|
40377
|
-
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40378
|
-
isComposioManaged?: boolean | undefined;
|
|
40379
|
-
expectedInputFields?: unknown[] | undefined;
|
|
40380
|
-
createdBy?: string | undefined;
|
|
40381
|
-
createdAt?: string | undefined;
|
|
40382
|
-
lastUpdatedAt?: string | undefined;
|
|
40383
|
-
}>;
|
|
40384
|
-
type AuthConfigRetrieveResponse = z.infer<typeof AuthConfigRetrieveResponseSchema>;
|
|
40385
|
-
declare const AuthConfigListParamsSchema: z.ZodObject<{
|
|
40386
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
40387
|
-
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
40388
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
40389
|
-
toolkit: z.ZodOptional<z.ZodString>;
|
|
40390
|
-
}, "strip", z.ZodTypeAny, {
|
|
40391
|
-
toolkit?: string | undefined;
|
|
40392
|
-
cursor?: string | undefined;
|
|
40393
|
-
limit?: number | undefined;
|
|
40394
|
-
isComposioManaged?: boolean | undefined;
|
|
40395
|
-
}, {
|
|
40396
|
-
toolkit?: string | undefined;
|
|
40397
|
-
cursor?: string | undefined;
|
|
40398
|
-
limit?: number | undefined;
|
|
40399
|
-
isComposioManaged?: boolean | undefined;
|
|
40400
|
-
}>;
|
|
40401
|
-
type AuthConfigListParams = z.infer<typeof AuthConfigListParamsSchema>;
|
|
40402
|
-
declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
40403
|
-
items: z.ZodArray<z.ZodObject<{
|
|
40404
|
-
id: z.ZodString;
|
|
40405
|
-
name: z.ZodString;
|
|
40406
|
-
toolkit: z.ZodObject<{
|
|
40407
|
-
logo: z.ZodString;
|
|
40408
|
-
slug: z.ZodString;
|
|
40409
|
-
}, "strip", z.ZodTypeAny, {
|
|
40410
|
-
slug: string;
|
|
40411
|
-
logo: string;
|
|
40412
|
-
}, {
|
|
40413
|
-
slug: string;
|
|
40414
|
-
logo: string;
|
|
40415
|
-
}>;
|
|
40416
|
-
noOfConnections: z.ZodNumber;
|
|
40417
|
-
status: z.ZodEnum<["ENABLED", "DISABLED"]>;
|
|
40418
|
-
uuid: z.ZodString;
|
|
40419
|
-
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>>;
|
|
40420
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40421
|
-
expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
40422
|
-
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
40423
|
-
createdBy: z.ZodOptional<z.ZodString>;
|
|
40424
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
40425
|
-
lastUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
40426
|
-
}, "strip", z.ZodTypeAny, {
|
|
40427
|
-
name: string;
|
|
40428
|
-
status: "ENABLED" | "DISABLED";
|
|
40429
|
-
toolkit: {
|
|
40430
|
-
slug: string;
|
|
40431
|
-
logo: string;
|
|
40432
|
-
};
|
|
40433
|
-
id: string;
|
|
40434
|
-
noOfConnections: number;
|
|
40435
|
-
uuid: string;
|
|
40436
|
-
credentials?: Record<string, unknown> | undefined;
|
|
40437
|
-
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40438
|
-
isComposioManaged?: boolean | undefined;
|
|
40439
|
-
expectedInputFields?: unknown[] | undefined;
|
|
40440
|
-
createdBy?: string | undefined;
|
|
40441
|
-
createdAt?: string | undefined;
|
|
40442
|
-
lastUpdatedAt?: string | undefined;
|
|
40443
|
-
}, {
|
|
40444
|
-
name: string;
|
|
40445
|
-
status: "ENABLED" | "DISABLED";
|
|
40446
|
-
toolkit: {
|
|
40447
|
-
slug: string;
|
|
40448
|
-
logo: string;
|
|
40449
|
-
};
|
|
40450
|
-
id: string;
|
|
40451
|
-
noOfConnections: number;
|
|
40452
|
-
uuid: string;
|
|
40453
|
-
credentials?: Record<string, unknown> | undefined;
|
|
40454
|
-
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40455
|
-
isComposioManaged?: boolean | undefined;
|
|
40456
|
-
expectedInputFields?: unknown[] | undefined;
|
|
40457
|
-
createdBy?: string | undefined;
|
|
40458
|
-
createdAt?: string | undefined;
|
|
40459
|
-
lastUpdatedAt?: string | undefined;
|
|
40460
|
-
}>, "many">;
|
|
40461
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
40462
|
-
totalPages: z.ZodNumber;
|
|
40463
|
-
}, "strip", z.ZodTypeAny, {
|
|
40464
|
-
items: {
|
|
40465
|
-
name: string;
|
|
40466
|
-
status: "ENABLED" | "DISABLED";
|
|
40467
|
-
toolkit: {
|
|
40468
|
-
slug: string;
|
|
40469
|
-
logo: string;
|
|
40470
|
-
};
|
|
40471
|
-
id: string;
|
|
40472
|
-
noOfConnections: number;
|
|
40473
|
-
uuid: string;
|
|
40474
|
-
credentials?: Record<string, unknown> | undefined;
|
|
40475
|
-
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40476
|
-
isComposioManaged?: boolean | undefined;
|
|
40477
|
-
expectedInputFields?: unknown[] | undefined;
|
|
40478
|
-
createdBy?: string | undefined;
|
|
40479
|
-
createdAt?: string | undefined;
|
|
40480
|
-
lastUpdatedAt?: string | undefined;
|
|
40481
|
-
}[];
|
|
40482
|
-
nextCursor: string | null;
|
|
40483
|
-
totalPages: number;
|
|
40484
|
-
}, {
|
|
40485
|
-
items: {
|
|
40486
|
-
name: string;
|
|
40487
|
-
status: "ENABLED" | "DISABLED";
|
|
40488
|
-
toolkit: {
|
|
40489
|
-
slug: string;
|
|
40490
|
-
logo: string;
|
|
40491
|
-
};
|
|
40492
|
-
id: string;
|
|
40493
|
-
noOfConnections: number;
|
|
40494
|
-
uuid: string;
|
|
40495
|
-
credentials?: Record<string, unknown> | undefined;
|
|
40496
|
-
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40497
|
-
isComposioManaged?: boolean | undefined;
|
|
40498
|
-
expectedInputFields?: unknown[] | undefined;
|
|
40499
|
-
createdBy?: string | undefined;
|
|
40500
|
-
createdAt?: string | undefined;
|
|
40501
|
-
lastUpdatedAt?: string | undefined;
|
|
40502
|
-
}[];
|
|
40503
|
-
nextCursor: string | null;
|
|
40504
|
-
totalPages: number;
|
|
40505
|
-
}>;
|
|
40506
|
-
type AuthConfigListResponse = z.infer<typeof AuthConfigListResponseSchema>;
|
|
40507
|
-
declare const AuthCustomConfigUpdateParamsSchema: z.ZodObject<{
|
|
40508
|
-
credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnknown]>>;
|
|
40509
|
-
type: z.ZodLiteral<"custom">;
|
|
40510
|
-
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40511
|
-
}, "strip", z.ZodTypeAny, {
|
|
40512
|
-
type: "custom";
|
|
40513
|
-
credentials: Record<string, unknown>;
|
|
40514
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40515
|
-
}, {
|
|
40516
|
-
type: "custom";
|
|
40517
|
-
credentials: Record<string, unknown>;
|
|
40518
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40519
|
-
}>;
|
|
40520
|
-
declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
|
|
40521
|
-
scopes: z.ZodString;
|
|
40522
|
-
type: z.ZodLiteral<"default">;
|
|
40523
|
-
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40524
|
-
}, "strip", z.ZodTypeAny, {
|
|
40525
|
-
type: "default";
|
|
40526
|
-
scopes: string;
|
|
40527
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40528
|
-
}, {
|
|
40529
|
-
type: "default";
|
|
40530
|
-
scopes: string;
|
|
40531
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40532
|
-
}>;
|
|
40533
|
-
declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
40534
|
-
credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnknown]>>;
|
|
40535
|
-
type: z.ZodLiteral<"custom">;
|
|
40536
|
-
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40537
|
-
}, "strip", z.ZodTypeAny, {
|
|
40538
|
-
type: "custom";
|
|
40539
|
-
credentials: Record<string, unknown>;
|
|
40540
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40541
|
-
}, {
|
|
40542
|
-
type: "custom";
|
|
40543
|
-
credentials: Record<string, unknown>;
|
|
40544
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40545
|
-
}>, z.ZodObject<{
|
|
40546
|
-
scopes: z.ZodString;
|
|
40547
|
-
type: z.ZodLiteral<"default">;
|
|
40548
|
-
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40549
|
-
}, "strip", z.ZodTypeAny, {
|
|
40550
|
-
type: "default";
|
|
40551
|
-
scopes: string;
|
|
40552
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40553
|
-
}, {
|
|
40554
|
-
type: "default";
|
|
40555
|
-
scopes: string;
|
|
40556
|
-
restrictToFollowingTools?: string[] | undefined;
|
|
40557
|
-
}>]>;
|
|
40558
|
-
type AuthConfigUpdateParams = z.infer<typeof AuthConfigUpdateParamsSchema>;
|
|
40559
|
-
|
|
40560
40697
|
/**
|
|
40561
40698
|
* @fileoverview Auth configs class for Composio SDK, used to manage authentication configurations.
|
|
40562
40699
|
*
|
|
@@ -40993,29 +41130,6 @@ declare class ConnectedAccounts {
|
|
|
40993
41130
|
disable(nanoid: string): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
40994
41131
|
}
|
|
40995
41132
|
|
|
40996
|
-
type AcceptableJSONValue = Record<string, unknown> | Array<Record<string, unknown>> | string | number | boolean | null | undefined;
|
|
40997
|
-
interface TelemetryTransportParams {
|
|
40998
|
-
url: string;
|
|
40999
|
-
method: string;
|
|
41000
|
-
headers: Record<string, string>;
|
|
41001
|
-
data: AcceptableJSONValue;
|
|
41002
|
-
}
|
|
41003
|
-
|
|
41004
|
-
declare abstract class BaseTelemetryTransport {
|
|
41005
|
-
/**
|
|
41006
|
-
* Send the payload to the telemetry service.
|
|
41007
|
-
* @param payload - The payload to send.
|
|
41008
|
-
*/
|
|
41009
|
-
abstract send(payload: TelemetryTransportParams): Promise<void>;
|
|
41010
|
-
}
|
|
41011
|
-
/**
|
|
41012
|
-
* A telemetry transport that logs to the console.
|
|
41013
|
-
* This is just for testing purposes.
|
|
41014
|
-
*/
|
|
41015
|
-
declare class ConsoleTelemetryTransport implements BaseTelemetryTransport {
|
|
41016
|
-
send(payload: TelemetryTransportParams): Promise<void>;
|
|
41017
|
-
}
|
|
41018
|
-
|
|
41019
41133
|
/**
|
|
41020
41134
|
* OpenAI ToolSet
|
|
41021
41135
|
*
|
|
@@ -41338,7 +41452,6 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown> = O
|
|
|
41338
41452
|
allowTracking?: boolean;
|
|
41339
41453
|
allowTracing?: boolean;
|
|
41340
41454
|
provider?: TProvider;
|
|
41341
|
-
telemetryTransport?: BaseTelemetryTransport;
|
|
41342
41455
|
/**
|
|
41343
41456
|
* Request options to be passed to the Composio API client.
|
|
41344
41457
|
* This is useful for passing in a custom fetch implementation.
|
|
@@ -41389,7 +41502,6 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown>
|
|
|
41389
41502
|
* @param {boolean} [config.allowTracking=true] - Whether to allow anonymous usage analytics
|
|
41390
41503
|
* @param {boolean} [config.allowTracing=true] - Whether to allow request tracing for debugging
|
|
41391
41504
|
* @param {TProvider} [config.provider] - The provider to use for this Composio instance (defaults to OpenAIProvider)
|
|
41392
|
-
* @param {BaseTelemetryTransport} [config.telemetryTransport] - Custom telemetry transport implementation
|
|
41393
41505
|
*
|
|
41394
41506
|
* @example
|
|
41395
41507
|
* ```typescript
|
|
@@ -41840,4 +41952,4 @@ declare class ComposioNoAPIKeyError extends ComposioError {
|
|
|
41840
41952
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
41841
41953
|
}
|
|
41842
41954
|
|
|
41843
|
-
export { type AgenticToolOptions, AuthConfigErrorCodes, type AuthConfigListParams, AuthConfigListParamsSchema, type AuthConfigListResponse, AuthConfigListResponseSchema, type AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, type AuthConfigType, AuthConfigTypes, type AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, type AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseNonAgenticProvider,
|
|
41955
|
+
export { type AgenticToolOptions, AuthConfigErrorCodes, type AuthConfigListParams, AuthConfigListParamsSchema, type AuthConfigListResponse, AuthConfigListResponseSchema, type AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, type AuthConfigType, AuthConfigTypes, type AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, type AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseNonAgenticProvider, BasicWithJwtConnectionDataSchema, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLinkConnectionDataSchema, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ConnectedAccountErrorCodes, type ConnectionData, ConnectionDataSchema, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestTimeoutError, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, JsonSchemaToZodError, type Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, type Oauth1ConnectionData, Oauth1ConnectionDataSchema, type Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, type Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, type Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, type Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, type Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, type Oauth2ConnectionData, Oauth2ConnectionDataSchema, type Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, type Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, type Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, type Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, type Provider, type ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, type Tool, ToolErrorCodes, type ToolExecuteParams, ToolExecuteParamsSchema, type ToolExecuteResponse, ToolExecuteResponseSchema, type ToolKitItem, ToolKitItemSchema, type ToolKitListResponse, ToolKitListResponseSchema, type ToolKitMeta, ToolKitMetaSchema, type ToolList, type ToolListFilterBySearch, ToolListFilterBySearchSchema, type ToolListFilterByToolkits, ToolListFilterByToolkitsSchema, type ToolListFilterByTools, ToolListFilterByToolsSchema, type ToolListParams, ToolListParamsSchema, type ToolListResponse, ToolListResponseSchema, type ToolOptions, type ToolProxyParams, ToolProxyParamsSchema, ToolSchema, type Toolkit, type ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, type ToolkitAuthField, ToolkitAuthFieldSchema, type ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, type ToolkitCategory, ToolkitCategorySchema, ToolkitErrorCodes, type ToolkitListParams, type ToolkitMangedByEnum, ToolkitMangedByEnumSchema, type ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, type ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, type ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitsListParamsSchema, type TransformToolSchemaModifier, type TriggerData, type TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, type TriggerInstanceListActiveResponse, type TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, type TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, type TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, type TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, type TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, type TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, type TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, type TriggerSubscribeParams, ValidationError, ValidationErrorCodes, type afterExecuteModifier, type beforeExecuteModifier, jsonSchemaToZodSchema, logger };
|