@composio/core 0.1.36-next.5 → 0.1.36-next.6
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 +10 -13
- package/dist/index.d.cts +2186 -38
- package/dist/index.d.ts +2186 -38
- package/dist/index.js +10 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1222,7 +1222,11 @@ var BaseSchemeRaw = z3.object({
|
|
|
1222
1222
|
// for ragic
|
|
1223
1223
|
server_location: z3.string().optional(),
|
|
1224
1224
|
// base_url only
|
|
1225
|
-
base_url: z3.string().optional()
|
|
1225
|
+
base_url: z3.string().optional(),
|
|
1226
|
+
// for api key
|
|
1227
|
+
api_key: z3.string().optional(),
|
|
1228
|
+
// for generic api key
|
|
1229
|
+
generic_api_key: z3.string().optional()
|
|
1226
1230
|
}).catchall(z3.unknown());
|
|
1227
1231
|
var Oauth2InitiatingConnectionDataSchema = BaseSchemeRaw.extend({
|
|
1228
1232
|
status: z3.literal(ConnectionStatuses.INITIALIZING)
|
|
@@ -1355,7 +1359,8 @@ var BasicInitiatingSchema = BaseSchemeRaw.extend({
|
|
|
1355
1359
|
var BasicConnectionDataSchema = BasicInitiatingSchema;
|
|
1356
1360
|
var ApiKeyInitiatingSchema = BaseSchemeRaw.extend({
|
|
1357
1361
|
status: z3.literal(ConnectionStatuses.ACTIVE),
|
|
1358
|
-
api_key: z3.string()
|
|
1362
|
+
api_key: z3.string().optional(),
|
|
1363
|
+
generic_api_key: z3.string().optional()
|
|
1359
1364
|
}).catchall(z3.unknown());
|
|
1360
1365
|
var ApiKeyConnectionDataSchema = ApiKeyInitiatingSchema;
|
|
1361
1366
|
var BearerTokenInitiatingSchema = BaseSchemeRaw.extend({
|
|
@@ -3450,16 +3455,7 @@ var ConnectedAccounts = class {
|
|
|
3450
3455
|
`[Warn:AllowMultiple] Multiple connected accounts found for user ${userId} in auth config ${authConfigId}`
|
|
3451
3456
|
);
|
|
3452
3457
|
}
|
|
3453
|
-
|
|
3454
|
-
if (options?.config) {
|
|
3455
|
-
const connectionDataParsed = ConnectionDataSchema.safeParse(options.config);
|
|
3456
|
-
if (!connectionDataParsed.success) {
|
|
3457
|
-
throw new ValidationError("Failed to parse connection data", {
|
|
3458
|
-
cause: connectionDataParsed.error
|
|
3459
|
-
});
|
|
3460
|
-
}
|
|
3461
|
-
state = connectionDataParsed.data;
|
|
3462
|
-
}
|
|
3458
|
+
const state = options?.config ?? void 0;
|
|
3463
3459
|
const response = await this.client.connectedAccounts.create({
|
|
3464
3460
|
auth_config: {
|
|
3465
3461
|
id: authConfigId
|
|
@@ -3469,6 +3465,7 @@ var ConnectedAccounts = class {
|
|
|
3469
3465
|
user_id: userId,
|
|
3470
3466
|
state
|
|
3471
3467
|
}
|
|
3468
|
+
// @TODO: This is a temporary fix to allow api_key to be optional, in future ideally we should fix this from API side
|
|
3472
3469
|
});
|
|
3473
3470
|
const redirectUrl = typeof response.connectionData?.val?.redirectUrl === "string" ? response.connectionData.val.redirectUrl : null;
|
|
3474
3471
|
return createConnectionRequest(
|
|
@@ -5982,7 +5979,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
5982
5979
|
};
|
|
5983
5980
|
|
|
5984
5981
|
// package.json
|
|
5985
|
-
var version = "0.1.36-next.
|
|
5982
|
+
var version = "0.1.36-next.6";
|
|
5986
5983
|
|
|
5987
5984
|
// src/models/Files.ts
|
|
5988
5985
|
var Files = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
|
-
"version": "0.1.36-next.
|
|
3
|
+
"version": "0.1.36-next.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@composio/client": "0.1.0-alpha.25",
|
|
39
|
-
"@composio/json-schema-to-zod": "0.1.10-next.
|
|
39
|
+
"@composio/json-schema-to-zod": "0.1.10-next.3",
|
|
40
40
|
"@types/json-schema": "^7.0.15",
|
|
41
41
|
"chalk": "^4.1.2",
|
|
42
42
|
"openai": "^4.94.0",
|