@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.cjs
CHANGED
|
@@ -1383,7 +1383,11 @@ var BaseSchemeRaw = import_zod5.z.object({
|
|
|
1383
1383
|
// for ragic
|
|
1384
1384
|
server_location: import_zod5.z.string().optional(),
|
|
1385
1385
|
// base_url only
|
|
1386
|
-
base_url: import_zod5.z.string().optional()
|
|
1386
|
+
base_url: import_zod5.z.string().optional(),
|
|
1387
|
+
// for api key
|
|
1388
|
+
api_key: import_zod5.z.string().optional(),
|
|
1389
|
+
// for generic api key
|
|
1390
|
+
generic_api_key: import_zod5.z.string().optional()
|
|
1387
1391
|
}).catchall(import_zod5.z.unknown());
|
|
1388
1392
|
var Oauth2InitiatingConnectionDataSchema = BaseSchemeRaw.extend({
|
|
1389
1393
|
status: import_zod5.z.literal(ConnectionStatuses.INITIALIZING)
|
|
@@ -1516,7 +1520,8 @@ var BasicInitiatingSchema = BaseSchemeRaw.extend({
|
|
|
1516
1520
|
var BasicConnectionDataSchema = BasicInitiatingSchema;
|
|
1517
1521
|
var ApiKeyInitiatingSchema = BaseSchemeRaw.extend({
|
|
1518
1522
|
status: import_zod5.z.literal(ConnectionStatuses.ACTIVE),
|
|
1519
|
-
api_key: import_zod5.z.string()
|
|
1523
|
+
api_key: import_zod5.z.string().optional(),
|
|
1524
|
+
generic_api_key: import_zod5.z.string().optional()
|
|
1520
1525
|
}).catchall(import_zod5.z.unknown());
|
|
1521
1526
|
var ApiKeyConnectionDataSchema = ApiKeyInitiatingSchema;
|
|
1522
1527
|
var BearerTokenInitiatingSchema = BaseSchemeRaw.extend({
|
|
@@ -3611,16 +3616,7 @@ var ConnectedAccounts = class {
|
|
|
3611
3616
|
`[Warn:AllowMultiple] Multiple connected accounts found for user ${userId} in auth config ${authConfigId}`
|
|
3612
3617
|
);
|
|
3613
3618
|
}
|
|
3614
|
-
|
|
3615
|
-
if (options?.config) {
|
|
3616
|
-
const connectionDataParsed = ConnectionDataSchema.safeParse(options.config);
|
|
3617
|
-
if (!connectionDataParsed.success) {
|
|
3618
|
-
throw new ValidationError("Failed to parse connection data", {
|
|
3619
|
-
cause: connectionDataParsed.error
|
|
3620
|
-
});
|
|
3621
|
-
}
|
|
3622
|
-
state = connectionDataParsed.data;
|
|
3623
|
-
}
|
|
3619
|
+
const state = options?.config ?? void 0;
|
|
3624
3620
|
const response = await this.client.connectedAccounts.create({
|
|
3625
3621
|
auth_config: {
|
|
3626
3622
|
id: authConfigId
|
|
@@ -3630,6 +3626,7 @@ var ConnectedAccounts = class {
|
|
|
3630
3626
|
user_id: userId,
|
|
3631
3627
|
state
|
|
3632
3628
|
}
|
|
3629
|
+
// @TODO: This is a temporary fix to allow api_key to be optional, in future ideally we should fix this from API side
|
|
3633
3630
|
});
|
|
3634
3631
|
const redirectUrl = typeof response.connectionData?.val?.redirectUrl === "string" ? response.connectionData.val.redirectUrl : null;
|
|
3635
3632
|
return createConnectionRequest(
|
|
@@ -6143,7 +6140,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
6143
6140
|
};
|
|
6144
6141
|
|
|
6145
6142
|
// package.json
|
|
6146
|
-
var version = "0.1.36-next.
|
|
6143
|
+
var version = "0.1.36-next.6";
|
|
6147
6144
|
|
|
6148
6145
|
// src/models/Files.ts
|
|
6149
6146
|
var Files = class {
|