@composio/core 0.1.12-alpha.2 → 0.1.12-alpha.3
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 +17 -2
- package/dist/index.d.cts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +17 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1481,6 +1481,17 @@ var ConnectionRequest = class {
|
|
|
1481
1481
|
throw new ConnectionRequestTimeoutError(`Connection request timed out for ${this.id}`);
|
|
1482
1482
|
}
|
|
1483
1483
|
};
|
|
1484
|
+
var connectionRequest = (client) => {
|
|
1485
|
+
return {
|
|
1486
|
+
waitForConnection: async (connectedAccountId, timeout = 6e4) => {
|
|
1487
|
+
return new ConnectionRequest(
|
|
1488
|
+
client,
|
|
1489
|
+
connectedAccountId,
|
|
1490
|
+
ConnectedAccountStatuses.INITIATED
|
|
1491
|
+
).waitForConnection(timeout);
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1484
1495
|
|
|
1485
1496
|
// src/models/ConnectedAccounts.ts
|
|
1486
1497
|
var ConnectedAccounts = class {
|
|
@@ -2463,7 +2474,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
2463
2474
|
};
|
|
2464
2475
|
|
|
2465
2476
|
// package.json
|
|
2466
|
-
var version = "0.1.12-alpha.
|
|
2477
|
+
var version = "0.1.12-alpha.2";
|
|
2467
2478
|
|
|
2468
2479
|
// src/utils/uuid.ts
|
|
2469
2480
|
var import_uuid = require("uuid");
|
|
@@ -2493,9 +2504,10 @@ var Composio = class {
|
|
|
2493
2504
|
provider;
|
|
2494
2505
|
// auth configs
|
|
2495
2506
|
authConfigs;
|
|
2496
|
-
createAuthConfig;
|
|
2497
2507
|
// connected accounts
|
|
2498
2508
|
connectedAccounts;
|
|
2509
|
+
experimental;
|
|
2510
|
+
createAuthConfig;
|
|
2499
2511
|
initiateConnection;
|
|
2500
2512
|
/**
|
|
2501
2513
|
* @param {Object} config Configuration for the Composio SDK.
|
|
@@ -2531,6 +2543,9 @@ var Composio = class {
|
|
|
2531
2543
|
this.createAuthConfig = this.authConfigs.create.bind(this.authConfigs);
|
|
2532
2544
|
this.connectedAccounts = new ConnectedAccounts(this.client);
|
|
2533
2545
|
this.initiateConnection = this.connectedAccounts.initiate.bind(this.connectedAccounts);
|
|
2546
|
+
this.experimental = {
|
|
2547
|
+
connectionRequest: connectionRequest(this.client)
|
|
2548
|
+
};
|
|
2534
2549
|
if (this.config.allowTracking ?? true) {
|
|
2535
2550
|
this.initializeTelemetry(
|
|
2536
2551
|
{
|
package/dist/index.d.cts
CHANGED
|
@@ -1294,6 +1294,29 @@ declare class ConnectionRequest {
|
|
|
1294
1294
|
*/
|
|
1295
1295
|
waitForConnection(timeout?: number): Promise<ConnectedAccountRetrieveResponse>;
|
|
1296
1296
|
}
|
|
1297
|
+
declare const connectionRequest: (client: ComposioClient) => {
|
|
1298
|
+
waitForConnection: (connectedAccountId: string, timeout?: number) => Promise<{
|
|
1299
|
+
params: Record<string, unknown>;
|
|
1300
|
+
status: "ACTIVE" | "INACTIVE" | "DELETED" | "INITIATED" | "EXPIRED" | "FAILED";
|
|
1301
|
+
toolkit: {
|
|
1302
|
+
slug: string;
|
|
1303
|
+
};
|
|
1304
|
+
userId: string;
|
|
1305
|
+
data: Record<string, unknown>;
|
|
1306
|
+
createdAt: string;
|
|
1307
|
+
updatedAt: string;
|
|
1308
|
+
id: string;
|
|
1309
|
+
authConfig: {
|
|
1310
|
+
id: string;
|
|
1311
|
+
authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
1312
|
+
isComposioManaged: boolean;
|
|
1313
|
+
isDisabled: boolean;
|
|
1314
|
+
};
|
|
1315
|
+
isDisabled: boolean;
|
|
1316
|
+
statusReason: string | null;
|
|
1317
|
+
testRequestEndpoint?: string | undefined;
|
|
1318
|
+
}>;
|
|
1319
|
+
};
|
|
1297
1320
|
|
|
1298
1321
|
/**
|
|
1299
1322
|
* Toolkits class
|
|
@@ -2066,8 +2089,11 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown>
|
|
|
2066
2089
|
triggers: Triggers;
|
|
2067
2090
|
provider: TProvider;
|
|
2068
2091
|
authConfigs: AuthConfigs;
|
|
2069
|
-
createAuthConfig: AuthConfigs['create'];
|
|
2070
2092
|
connectedAccounts: ConnectedAccounts;
|
|
2093
|
+
experimental: {
|
|
2094
|
+
connectionRequest: ReturnType<typeof connectionRequest>;
|
|
2095
|
+
};
|
|
2096
|
+
createAuthConfig: AuthConfigs['create'];
|
|
2071
2097
|
initiateConnection: ConnectedAccounts['initiate'];
|
|
2072
2098
|
/**
|
|
2073
2099
|
* @param {Object} config Configuration for the Composio SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -1294,6 +1294,29 @@ declare class ConnectionRequest {
|
|
|
1294
1294
|
*/
|
|
1295
1295
|
waitForConnection(timeout?: number): Promise<ConnectedAccountRetrieveResponse>;
|
|
1296
1296
|
}
|
|
1297
|
+
declare const connectionRequest: (client: ComposioClient) => {
|
|
1298
|
+
waitForConnection: (connectedAccountId: string, timeout?: number) => Promise<{
|
|
1299
|
+
params: Record<string, unknown>;
|
|
1300
|
+
status: "ACTIVE" | "INACTIVE" | "DELETED" | "INITIATED" | "EXPIRED" | "FAILED";
|
|
1301
|
+
toolkit: {
|
|
1302
|
+
slug: string;
|
|
1303
|
+
};
|
|
1304
|
+
userId: string;
|
|
1305
|
+
data: Record<string, unknown>;
|
|
1306
|
+
createdAt: string;
|
|
1307
|
+
updatedAt: string;
|
|
1308
|
+
id: string;
|
|
1309
|
+
authConfig: {
|
|
1310
|
+
id: string;
|
|
1311
|
+
authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
|
|
1312
|
+
isComposioManaged: boolean;
|
|
1313
|
+
isDisabled: boolean;
|
|
1314
|
+
};
|
|
1315
|
+
isDisabled: boolean;
|
|
1316
|
+
statusReason: string | null;
|
|
1317
|
+
testRequestEndpoint?: string | undefined;
|
|
1318
|
+
}>;
|
|
1319
|
+
};
|
|
1297
1320
|
|
|
1298
1321
|
/**
|
|
1299
1322
|
* Toolkits class
|
|
@@ -2066,8 +2089,11 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown>
|
|
|
2066
2089
|
triggers: Triggers;
|
|
2067
2090
|
provider: TProvider;
|
|
2068
2091
|
authConfigs: AuthConfigs;
|
|
2069
|
-
createAuthConfig: AuthConfigs['create'];
|
|
2070
2092
|
connectedAccounts: ConnectedAccounts;
|
|
2093
|
+
experimental: {
|
|
2094
|
+
connectionRequest: ReturnType<typeof connectionRequest>;
|
|
2095
|
+
};
|
|
2096
|
+
createAuthConfig: AuthConfigs['create'];
|
|
2071
2097
|
initiateConnection: ConnectedAccounts['initiate'];
|
|
2072
2098
|
/**
|
|
2073
2099
|
* @param {Object} config Configuration for the Composio SDK.
|
package/dist/index.js
CHANGED
|
@@ -1443,6 +1443,17 @@ var ConnectionRequest = class {
|
|
|
1443
1443
|
throw new ConnectionRequestTimeoutError(`Connection request timed out for ${this.id}`);
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
|
+
var connectionRequest = (client) => {
|
|
1447
|
+
return {
|
|
1448
|
+
waitForConnection: async (connectedAccountId, timeout = 6e4) => {
|
|
1449
|
+
return new ConnectionRequest(
|
|
1450
|
+
client,
|
|
1451
|
+
connectedAccountId,
|
|
1452
|
+
ConnectedAccountStatuses.INITIATED
|
|
1453
|
+
).waitForConnection(timeout);
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1446
1457
|
|
|
1447
1458
|
// src/models/ConnectedAccounts.ts
|
|
1448
1459
|
var ConnectedAccounts = class {
|
|
@@ -2425,7 +2436,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
2425
2436
|
};
|
|
2426
2437
|
|
|
2427
2438
|
// package.json
|
|
2428
|
-
var version = "0.1.12-alpha.
|
|
2439
|
+
var version = "0.1.12-alpha.2";
|
|
2429
2440
|
|
|
2430
2441
|
// src/utils/uuid.ts
|
|
2431
2442
|
import { v4 as uuidv4 } from "uuid";
|
|
@@ -2455,9 +2466,10 @@ var Composio = class {
|
|
|
2455
2466
|
provider;
|
|
2456
2467
|
// auth configs
|
|
2457
2468
|
authConfigs;
|
|
2458
|
-
createAuthConfig;
|
|
2459
2469
|
// connected accounts
|
|
2460
2470
|
connectedAccounts;
|
|
2471
|
+
experimental;
|
|
2472
|
+
createAuthConfig;
|
|
2461
2473
|
initiateConnection;
|
|
2462
2474
|
/**
|
|
2463
2475
|
* @param {Object} config Configuration for the Composio SDK.
|
|
@@ -2493,6 +2505,9 @@ var Composio = class {
|
|
|
2493
2505
|
this.createAuthConfig = this.authConfigs.create.bind(this.authConfigs);
|
|
2494
2506
|
this.connectedAccounts = new ConnectedAccounts(this.client);
|
|
2495
2507
|
this.initiateConnection = this.connectedAccounts.initiate.bind(this.connectedAccounts);
|
|
2508
|
+
this.experimental = {
|
|
2509
|
+
connectionRequest: connectionRequest(this.client)
|
|
2510
|
+
};
|
|
2496
2511
|
if (this.config.allowTracking ?? true) {
|
|
2497
2512
|
this.initializeTelemetry(
|
|
2498
2513
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
|
-
"version": "0.1.12-alpha.
|
|
3
|
+
"version": "0.1.12-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"zod": "^3.24.2",
|
|
43
43
|
"zod-to-json-schema": "^3.24.5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "b53847c78d38d92947ec95662402df5d9085cbd2"
|
|
46
46
|
}
|