@composio/client 0.1.0-alpha.39 → 0.1.0-alpha.41

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.
Files changed (127) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/auth-configs.d.mts +41 -3
  12. package/resources/auth-configs.d.mts.map +1 -1
  13. package/resources/auth-configs.d.ts +41 -3
  14. package/resources/auth-configs.d.ts.map +1 -1
  15. package/resources/connected-accounts.d.mts +2656 -964
  16. package/resources/connected-accounts.d.mts.map +1 -1
  17. package/resources/connected-accounts.d.ts +2656 -964
  18. package/resources/connected-accounts.d.ts.map +1 -1
  19. package/resources/files.d.mts +30 -0
  20. package/resources/files.d.mts.map +1 -1
  21. package/resources/files.d.ts +30 -0
  22. package/resources/files.d.ts.map +1 -1
  23. package/resources/index.d.mts +1 -1
  24. package/resources/index.d.ts +1 -1
  25. package/resources/index.js +1 -1
  26. package/resources/index.js.map +1 -1
  27. package/resources/index.mjs +1 -1
  28. package/resources/link.d.mts +410 -1
  29. package/resources/link.d.mts.map +1 -1
  30. package/resources/link.d.ts +410 -1
  31. package/resources/link.d.ts.map +1 -1
  32. package/resources/mcp/custom.d.mts +9 -6
  33. package/resources/mcp/custom.d.mts.map +1 -1
  34. package/resources/mcp/custom.d.ts +9 -6
  35. package/resources/mcp/custom.d.ts.map +1 -1
  36. package/resources/mcp/mcp.d.mts +2 -4
  37. package/resources/mcp/mcp.d.mts.map +1 -1
  38. package/resources/mcp/mcp.d.ts +2 -4
  39. package/resources/mcp/mcp.d.ts.map +1 -1
  40. package/resources/mcp/mcp.js.map +1 -1
  41. package/resources/mcp/mcp.mjs.map +1 -1
  42. package/resources/tool-router/index.d.mts +3 -0
  43. package/resources/tool-router/index.d.mts.map +1 -0
  44. package/resources/tool-router/index.d.ts +3 -0
  45. package/resources/tool-router/index.d.ts.map +1 -0
  46. package/resources/tool-router/index.js +9 -0
  47. package/resources/tool-router/index.js.map +1 -0
  48. package/resources/tool-router/index.mjs +4 -0
  49. package/resources/tool-router/index.mjs.map +1 -0
  50. package/resources/tool-router/session.d.mts +708 -0
  51. package/resources/tool-router/session.d.mts.map +1 -0
  52. package/resources/tool-router/session.d.ts +708 -0
  53. package/resources/tool-router/session.d.ts.map +1 -0
  54. package/resources/tool-router/session.js +98 -0
  55. package/resources/tool-router/session.js.map +1 -0
  56. package/resources/tool-router/session.mjs +94 -0
  57. package/resources/tool-router/session.mjs.map +1 -0
  58. package/resources/tool-router/tool-router.d.mts +91 -0
  59. package/resources/tool-router/tool-router.d.mts.map +1 -0
  60. package/resources/tool-router/tool-router.d.ts +91 -0
  61. package/resources/tool-router/tool-router.d.ts.map +1 -0
  62. package/resources/tool-router/tool-router.js +46 -0
  63. package/resources/tool-router/tool-router.js.map +1 -0
  64. package/resources/tool-router/tool-router.mjs +41 -0
  65. package/resources/tool-router/tool-router.mjs.map +1 -0
  66. package/resources/tool-router.d.mts +1 -86
  67. package/resources/tool-router.d.mts.map +1 -1
  68. package/resources/tool-router.d.ts +1 -86
  69. package/resources/tool-router.d.ts.map +1 -1
  70. package/resources/tool-router.js +2 -34
  71. package/resources/tool-router.js.map +1 -1
  72. package/resources/tool-router.mjs +1 -32
  73. package/resources/tool-router.mjs.map +1 -1
  74. package/resources/toolkits.d.mts +9 -9
  75. package/resources/toolkits.d.ts +9 -9
  76. package/resources/toolkits.js +9 -9
  77. package/resources/toolkits.mjs +9 -9
  78. package/resources/tools.d.mts +161 -45
  79. package/resources/tools.d.mts.map +1 -1
  80. package/resources/tools.d.ts +161 -45
  81. package/resources/tools.d.ts.map +1 -1
  82. package/resources/tools.js +3 -3
  83. package/resources/tools.mjs +3 -3
  84. package/resources/trigger-instances/manage.d.mts +17 -0
  85. package/resources/trigger-instances/manage.d.mts.map +1 -1
  86. package/resources/trigger-instances/manage.d.ts +17 -0
  87. package/resources/trigger-instances/manage.d.ts.map +1 -1
  88. package/resources/trigger-instances/manage.js +17 -0
  89. package/resources/trigger-instances/manage.js.map +1 -1
  90. package/resources/trigger-instances/manage.mjs +17 -0
  91. package/resources/trigger-instances/manage.mjs.map +1 -1
  92. package/resources/trigger-instances/trigger-instances.d.mts +25 -0
  93. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  94. package/resources/trigger-instances/trigger-instances.d.ts +25 -0
  95. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  96. package/resources/trigger-instances/trigger-instances.js +14 -0
  97. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  98. package/resources/trigger-instances/trigger-instances.mjs +14 -0
  99. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  100. package/resources/triggers-types.d.mts +1 -5
  101. package/resources/triggers-types.d.mts.map +1 -1
  102. package/resources/triggers-types.d.ts +1 -5
  103. package/resources/triggers-types.d.ts.map +1 -1
  104. package/resources/triggers-types.js +1 -1
  105. package/resources/triggers-types.mjs +1 -1
  106. package/src/client.ts +5 -5
  107. package/src/resources/auth-configs.ts +43 -3
  108. package/src/resources/connected-accounts.ts +4657 -1579
  109. package/src/resources/files.ts +36 -0
  110. package/src/resources/index.ts +1 -1
  111. package/src/resources/link.ts +741 -1
  112. package/src/resources/mcp/custom.ts +10 -6
  113. package/src/resources/mcp/mcp.ts +2 -4
  114. package/src/resources/tool-router/index.ts +19 -0
  115. package/src/resources/tool-router/session.ts +858 -0
  116. package/src/resources/tool-router/tool-router.ts +137 -0
  117. package/src/resources/tool-router.ts +1 -105
  118. package/src/resources/toolkits.ts +9 -9
  119. package/src/resources/tools.ts +237 -45
  120. package/src/resources/trigger-instances/manage.ts +17 -0
  121. package/src/resources/trigger-instances/trigger-instances.ts +25 -0
  122. package/src/resources/triggers-types.ts +1 -6
  123. package/src/version.ts +1 -1
  124. package/version.d.mts +1 -1
  125. package/version.d.ts +1 -1
  126. package/version.js +1 -1
  127. package/version.mjs +1 -1
@@ -1,87 +1,2 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { RequestOptions } from "../internal/request-options.js";
4
- export declare class ToolRouter extends APIResource {
5
- /**
6
- * Creates a new session for the tool router lab feature. This endpoint initializes
7
- * a new session with specified toolkits and their authentication configurations.
8
- * The session provides an isolated environment for testing and managing tool
9
- * routing logic with scoped MCP server access.
10
- *
11
- * @example
12
- * ```ts
13
- * const response = await client.toolRouter.createSession({
14
- * user_id: 'user_123456789',
15
- * config: {
16
- * toolkits: [
17
- * {
18
- * toolkit: 'gmail',
19
- * auth_config_id: 'auth_config_123',
20
- * },
21
- * {
22
- * toolkit: 'slack',
23
- * auth_config_id: 'auth_config_456',
24
- * },
25
- * { toolkit: 'github' },
26
- * ],
27
- * },
28
- * });
29
- * ```
30
- */
31
- createSession(body: ToolRouterCreateSessionParams, options?: RequestOptions): APIPromise<ToolRouterCreateSessionResponse>;
32
- }
33
- export interface ToolRouterCreateSessionResponse {
34
- /**
35
- * MCP server endpoint URL for this specific chat session
36
- */
37
- chat_session_mcp_url: string;
38
- /**
39
- * Generated session identifier
40
- */
41
- session_id: string;
42
- /**
43
- * MCP server endpoint URL for this specific tool router instance
44
- */
45
- tool_router_instance_mcp_url: string;
46
- }
47
- export interface ToolRouterCreateSessionParams {
48
- /**
49
- * Unique user identifier for the session owner
50
- */
51
- user_id: string;
52
- /**
53
- * Session configuration including enabled toolkits and their auth configs
54
- */
55
- config?: ToolRouterCreateSessionParams.Config;
56
- }
57
- export declare namespace ToolRouterCreateSessionParams {
58
- /**
59
- * Session configuration including enabled toolkits and their auth configs
60
- */
61
- interface Config {
62
- /**
63
- * Whether to manually manage connections
64
- */
65
- manually_manage_connections?: boolean | null;
66
- /**
67
- * Array of toolkit configurations with optional auth configs
68
- */
69
- toolkits?: Array<Config.Toolkit>;
70
- }
71
- namespace Config {
72
- interface Toolkit {
73
- /**
74
- * Toolkit identifier (e.g., gmail, slack, github)
75
- */
76
- toolkit: string;
77
- /**
78
- * Specific auth configuration ID for this toolkit
79
- */
80
- auth_config_id?: string;
81
- }
82
- }
83
- }
84
- export declare namespace ToolRouter {
85
- export { type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse, type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams, };
86
- }
1
+ export * from "./tool-router/index.js";
87
2
  //# sourceMappingURL=tool-router.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-router.d.ts","sourceRoot":"","sources":["../src/resources/tool-router.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,aAAa,CACX,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,4BAA4B,EAAE,MAAM,CAAC;CACtC;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,6BAA6B,CAAC,MAAM,CAAC;CAC/C;AAED,yBAAiB,6BAA6B,CAAC;IAC7C;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,2BAA2B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;KAClC;IAED,UAAiB,MAAM,CAAC;QACtB,UAAiB,OAAO;YACtB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;SACzB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
1
+ {"version":3,"file":"tool-router.d.ts","sourceRoot":"","sources":["../src/resources/tool-router.ts"],"names":[],"mappings":""}
@@ -1,38 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ToolRouter = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- class ToolRouter extends resource_1.APIResource {
7
- /**
8
- * Creates a new session for the tool router lab feature. This endpoint initializes
9
- * a new session with specified toolkits and their authentication configurations.
10
- * The session provides an isolated environment for testing and managing tool
11
- * routing logic with scoped MCP server access.
12
- *
13
- * @example
14
- * ```ts
15
- * const response = await client.toolRouter.createSession({
16
- * user_id: 'user_123456789',
17
- * config: {
18
- * toolkits: [
19
- * {
20
- * toolkit: 'gmail',
21
- * auth_config_id: 'auth_config_123',
22
- * },
23
- * {
24
- * toolkit: 'slack',
25
- * auth_config_id: 'auth_config_456',
26
- * },
27
- * { toolkit: 'github' },
28
- * ],
29
- * },
30
- * });
31
- * ```
32
- */
33
- createSession(body, options) {
34
- return this._client.post('/api/v3/labs/tool_router/session', { body, ...options });
35
- }
36
- }
37
- exports.ToolRouter = ToolRouter;
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./tool-router/index.js"), exports);
38
6
  //# sourceMappingURL=tool-router.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-router.js","sourceRoot":"","sources":["../src/resources/tool-router.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,aAAa,CACX,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAjCD,gCAiCC"}
1
+ {"version":3,"file":"tool-router.js","sourceRoot":"","sources":["../src/resources/tool-router.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"}
@@ -1,34 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- export class ToolRouter extends APIResource {
4
- /**
5
- * Creates a new session for the tool router lab feature. This endpoint initializes
6
- * a new session with specified toolkits and their authentication configurations.
7
- * The session provides an isolated environment for testing and managing tool
8
- * routing logic with scoped MCP server access.
9
- *
10
- * @example
11
- * ```ts
12
- * const response = await client.toolRouter.createSession({
13
- * user_id: 'user_123456789',
14
- * config: {
15
- * toolkits: [
16
- * {
17
- * toolkit: 'gmail',
18
- * auth_config_id: 'auth_config_123',
19
- * },
20
- * {
21
- * toolkit: 'slack',
22
- * auth_config_id: 'auth_config_456',
23
- * },
24
- * { toolkit: 'github' },
25
- * ],
26
- * },
27
- * });
28
- * ```
29
- */
30
- createSession(body, options) {
31
- return this._client.post('/api/v3/labs/tool_router/session', { body, ...options });
32
- }
33
- }
2
+ export * from "./tool-router/index.mjs";
34
3
  //# sourceMappingURL=tool-router.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-router.mjs","sourceRoot":"","sources":["../src/resources/tool-router.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,aAAa,CACX,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
1
+ {"version":3,"file":"tool-router.mjs","sourceRoot":"","sources":["../src/resources/tool-router.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -9,18 +9,18 @@ export declare class Toolkits extends APIResource {
9
9
  */
10
10
  retrieve(slug: string, query?: ToolkitRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitRetrieveResponse>;
11
11
  /**
12
- * Retrieves a comprehensive list of toolkits that are available to the
13
- * authenticated project. Toolkits represent integration points with external
14
- * services and applications, each containing a collection of tools and triggers.
15
- * This endpoint supports filtering by category, management type, and local
16
- * availability, as well as different sorting options.
12
+ * Retrieves a comprehensive list of toolkits of their latest versions that are
13
+ * available to the authenticated project. Toolkits represent integration points
14
+ * with external services and applications, each containing a collection of tools
15
+ * and triggers. This endpoint supports filtering by category, management type, and
16
+ * local availability, as well as different sorting options.
17
17
  */
18
18
  list(query?: ToolkitListParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitListResponse>;
19
19
  /**
20
- * Retrieves a comprehensive list of all available toolkit categories. These
21
- * categories can be used to filter toolkits by type or purpose when using the
22
- * toolkit listing endpoint. Categories help organize toolkits into logical groups
23
- * based on their functionality or industry focus.
20
+ * Retrieves a comprehensive list of all available toolkit categories from their
21
+ * latest versions. These categories can be used to filter toolkits by type or
22
+ * purpose when using the toolkit listing endpoint. Categories help organize
23
+ * toolkits into logical groups based on their functionality or industry focus.
24
24
  */
25
25
  retrieveCategories(query?: ToolkitRetrieveCategoriesParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitRetrieveCategoriesResponse>;
26
26
  }
@@ -9,18 +9,18 @@ export declare class Toolkits extends APIResource {
9
9
  */
10
10
  retrieve(slug: string, query?: ToolkitRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitRetrieveResponse>;
11
11
  /**
12
- * Retrieves a comprehensive list of toolkits that are available to the
13
- * authenticated project. Toolkits represent integration points with external
14
- * services and applications, each containing a collection of tools and triggers.
15
- * This endpoint supports filtering by category, management type, and local
16
- * availability, as well as different sorting options.
12
+ * Retrieves a comprehensive list of toolkits of their latest versions that are
13
+ * available to the authenticated project. Toolkits represent integration points
14
+ * with external services and applications, each containing a collection of tools
15
+ * and triggers. This endpoint supports filtering by category, management type, and
16
+ * local availability, as well as different sorting options.
17
17
  */
18
18
  list(query?: ToolkitListParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitListResponse>;
19
19
  /**
20
- * Retrieves a comprehensive list of all available toolkit categories. These
21
- * categories can be used to filter toolkits by type or purpose when using the
22
- * toolkit listing endpoint. Categories help organize toolkits into logical groups
23
- * based on their functionality or industry focus.
20
+ * Retrieves a comprehensive list of all available toolkit categories from their
21
+ * latest versions. These categories can be used to filter toolkits by type or
22
+ * purpose when using the toolkit listing endpoint. Categories help organize
23
+ * toolkits into logical groups based on their functionality or industry focus.
24
24
  */
25
25
  retrieveCategories(query?: ToolkitRetrieveCategoriesParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitRetrieveCategoriesResponse>;
26
26
  }
@@ -14,20 +14,20 @@ class Toolkits extends resource_1.APIResource {
14
14
  return this._client.get((0, path_1.path) `/api/v3/toolkits/${slug}`, { query, ...options });
15
15
  }
16
16
  /**
17
- * Retrieves a comprehensive list of toolkits that are available to the
18
- * authenticated project. Toolkits represent integration points with external
19
- * services and applications, each containing a collection of tools and triggers.
20
- * This endpoint supports filtering by category, management type, and local
21
- * availability, as well as different sorting options.
17
+ * Retrieves a comprehensive list of toolkits of their latest versions that are
18
+ * available to the authenticated project. Toolkits represent integration points
19
+ * with external services and applications, each containing a collection of tools
20
+ * and triggers. This endpoint supports filtering by category, management type, and
21
+ * local availability, as well as different sorting options.
22
22
  */
23
23
  list(query = {}, options) {
24
24
  return this._client.get('/api/v3/toolkits', { query, ...options });
25
25
  }
26
26
  /**
27
- * Retrieves a comprehensive list of all available toolkit categories. These
28
- * categories can be used to filter toolkits by type or purpose when using the
29
- * toolkit listing endpoint. Categories help organize toolkits into logical groups
30
- * based on their functionality or industry focus.
27
+ * Retrieves a comprehensive list of all available toolkit categories from their
28
+ * latest versions. These categories can be used to filter toolkits by type or
29
+ * purpose when using the toolkit listing endpoint. Categories help organize
30
+ * toolkits into logical groups based on their functionality or industry focus.
31
31
  */
32
32
  retrieveCategories(query = {}, options) {
33
33
  return this._client.get('/api/v3/toolkits/categories', { query, ...options });
@@ -11,20 +11,20 @@ export class Toolkits extends APIResource {
11
11
  return this._client.get(path `/api/v3/toolkits/${slug}`, { query, ...options });
12
12
  }
13
13
  /**
14
- * Retrieves a comprehensive list of toolkits that are available to the
15
- * authenticated project. Toolkits represent integration points with external
16
- * services and applications, each containing a collection of tools and triggers.
17
- * This endpoint supports filtering by category, management type, and local
18
- * availability, as well as different sorting options.
14
+ * Retrieves a comprehensive list of toolkits of their latest versions that are
15
+ * available to the authenticated project. Toolkits represent integration points
16
+ * with external services and applications, each containing a collection of tools
17
+ * and triggers. This endpoint supports filtering by category, management type, and
18
+ * local availability, as well as different sorting options.
19
19
  */
20
20
  list(query = {}, options) {
21
21
  return this._client.get('/api/v3/toolkits', { query, ...options });
22
22
  }
23
23
  /**
24
- * Retrieves a comprehensive list of all available toolkit categories. These
25
- * categories can be used to filter toolkits by type or purpose when using the
26
- * toolkit listing endpoint. Categories help organize toolkits into logical groups
27
- * based on their functionality or industry focus.
24
+ * Retrieves a comprehensive list of all available toolkit categories from their
25
+ * latest versions. These categories can be used to filter toolkits by type or
26
+ * purpose when using the toolkit listing endpoint. Categories help organize
27
+ * toolkits into logical groups based on their functionality or industry focus.
28
28
  */
29
29
  retrieveCategories(query = {}, options) {
30
30
  return this._client.get('/api/v3/toolkits/categories', { query, ...options });