@composio/client 0.1.0-alpha.55 → 0.1.0-alpha.57

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 (140) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/client.d.mts +3 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +16 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +16 -3
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/auth-configs.d.mts +19 -5
  18. package/resources/auth-configs.d.mts.map +1 -1
  19. package/resources/auth-configs.d.ts +19 -5
  20. package/resources/auth-configs.d.ts.map +1 -1
  21. package/resources/auth-configs.js +8 -2
  22. package/resources/auth-configs.js.map +1 -1
  23. package/resources/auth-configs.mjs +8 -2
  24. package/resources/auth-configs.mjs.map +1 -1
  25. package/resources/cli/cli.d.mts +120 -0
  26. package/resources/cli/cli.d.mts.map +1 -0
  27. package/resources/cli/cli.d.ts +120 -0
  28. package/resources/cli/cli.d.ts.map +1 -0
  29. package/resources/cli/cli.js +36 -0
  30. package/resources/cli/cli.js.map +1 -0
  31. package/resources/cli/cli.mjs +31 -0
  32. package/resources/cli/cli.mjs.map +1 -0
  33. package/resources/cli/index.d.mts +3 -0
  34. package/resources/cli/index.d.mts.map +1 -0
  35. package/resources/cli/index.d.ts +3 -0
  36. package/resources/cli/index.d.ts.map +1 -0
  37. package/resources/cli/index.js +9 -0
  38. package/resources/cli/index.js.map +1 -0
  39. package/resources/cli/index.mjs +4 -0
  40. package/resources/cli/index.mjs.map +1 -0
  41. package/resources/cli/realtime.d.mts +53 -0
  42. package/resources/cli/realtime.d.mts.map +1 -0
  43. package/resources/cli/realtime.d.ts +53 -0
  44. package/resources/cli/realtime.d.ts.map +1 -0
  45. package/resources/cli/realtime.js +22 -0
  46. package/resources/cli/realtime.js.map +1 -0
  47. package/resources/cli/realtime.mjs +18 -0
  48. package/resources/cli/realtime.mjs.map +1 -0
  49. package/resources/cli.d.mts +1 -95
  50. package/resources/cli.d.mts.map +1 -1
  51. package/resources/cli.d.ts +1 -95
  52. package/resources/cli.d.ts.map +1 -1
  53. package/resources/cli.js +2 -23
  54. package/resources/cli.js.map +1 -1
  55. package/resources/cli.mjs +1 -21
  56. package/resources/cli.mjs.map +1 -1
  57. package/resources/connected-accounts.d.mts +11 -4
  58. package/resources/connected-accounts.d.mts.map +1 -1
  59. package/resources/connected-accounts.d.ts +11 -4
  60. package/resources/connected-accounts.d.ts.map +1 -1
  61. package/resources/connected-accounts.js +9 -2
  62. package/resources/connected-accounts.js.map +1 -1
  63. package/resources/connected-accounts.mjs +9 -2
  64. package/resources/connected-accounts.mjs.map +1 -1
  65. package/resources/files.d.mts +42 -111
  66. package/resources/files.d.mts.map +1 -1
  67. package/resources/files.d.ts +42 -111
  68. package/resources/files.d.ts.map +1 -1
  69. package/resources/files.js +5 -5
  70. package/resources/files.mjs +5 -5
  71. package/resources/index.d.mts +1 -1
  72. package/resources/index.d.mts.map +1 -1
  73. package/resources/index.d.ts +1 -1
  74. package/resources/index.d.ts.map +1 -1
  75. package/resources/index.js +1 -1
  76. package/resources/index.js.map +1 -1
  77. package/resources/index.mjs +1 -1
  78. package/resources/index.mjs.map +1 -1
  79. package/resources/project/config.d.mts +3 -0
  80. package/resources/project/config.d.mts.map +1 -1
  81. package/resources/project/config.d.ts +3 -0
  82. package/resources/project/config.d.ts.map +1 -1
  83. package/resources/tool-router/session.d.mts +43 -4
  84. package/resources/tool-router/session.d.mts.map +1 -1
  85. package/resources/tool-router/session.d.ts +43 -4
  86. package/resources/tool-router/session.d.ts.map +1 -1
  87. package/resources/toolkits.d.mts +4 -8
  88. package/resources/toolkits.d.mts.map +1 -1
  89. package/resources/toolkits.d.ts +4 -8
  90. package/resources/toolkits.d.ts.map +1 -1
  91. package/resources/tools.d.mts +30 -22
  92. package/resources/tools.d.mts.map +1 -1
  93. package/resources/tools.d.ts +30 -22
  94. package/resources/tools.d.ts.map +1 -1
  95. package/resources/tools.js +11 -2
  96. package/resources/tools.js.map +1 -1
  97. package/resources/tools.mjs +11 -2
  98. package/resources/tools.mjs.map +1 -1
  99. package/resources/trigger-instances/manage.d.mts +9 -0
  100. package/resources/trigger-instances/manage.d.mts.map +1 -1
  101. package/resources/trigger-instances/manage.d.ts +9 -0
  102. package/resources/trigger-instances/manage.d.ts.map +1 -1
  103. package/resources/trigger-instances/manage.js +9 -0
  104. package/resources/trigger-instances/manage.js.map +1 -1
  105. package/resources/trigger-instances/manage.mjs +9 -0
  106. package/resources/trigger-instances/manage.mjs.map +1 -1
  107. package/resources/trigger-instances/trigger-instances.d.mts +11 -4
  108. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  109. package/resources/trigger-instances/trigger-instances.d.ts +11 -4
  110. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  111. package/resources/trigger-instances/trigger-instances.js +11 -0
  112. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  113. package/resources/trigger-instances/trigger-instances.mjs +11 -0
  114. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  115. package/resources/triggers-types.d.mts +0 -8
  116. package/resources/triggers-types.d.mts.map +1 -1
  117. package/resources/triggers-types.d.ts +0 -8
  118. package/resources/triggers-types.d.ts.map +1 -1
  119. package/src/client.ts +26 -4
  120. package/src/internal/parse.ts +6 -0
  121. package/src/resources/auth-configs.ts +24 -5
  122. package/src/resources/cli/cli.ts +163 -0
  123. package/src/resources/cli/index.ts +15 -0
  124. package/src/resources/cli/realtime.ts +72 -0
  125. package/src/resources/cli.ts +1 -120
  126. package/src/resources/connected-accounts.ts +13 -4
  127. package/src/resources/files.ts +43 -130
  128. package/src/resources/index.ts +2 -1
  129. package/src/resources/project/config.ts +6 -0
  130. package/src/resources/tool-router/session.ts +48 -5
  131. package/src/resources/toolkits.ts +5 -10
  132. package/src/resources/tools.ts +42 -25
  133. package/src/resources/trigger-instances/manage.ts +9 -0
  134. package/src/resources/trigger-instances/trigger-instances.ts +11 -5
  135. package/src/resources/triggers-types.ts +0 -10
  136. package/src/version.ts +1 -1
  137. package/version.d.mts +1 -1
  138. package/version.d.ts +1 -1
  139. package/version.js +1 -1
  140. package/version.mjs +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/cli/index.ts"],"names":[],"mappings":"OAEO,EACL,GAAG,EACH,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,GACxB"}
@@ -0,0 +1,3 @@
1
+ export { Cli, type CliCreateSessionResponse, type CliGetSessionResponse, type CliCreateSessionParams, type CliGetSessionParams, } from "./cli.js";
2
+ export { Realtime, type RealtimeAuthResponse, type RealtimeCredentialsResponse, type RealtimeAuthParams, } from "./realtime.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/cli/index.ts"],"names":[],"mappings":"OAEO,EACL,GAAG,EACH,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,GACxB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Realtime = exports.Cli = void 0;
5
+ var cli_1 = require("./cli.js");
6
+ Object.defineProperty(exports, "Cli", { enumerable: true, get: function () { return cli_1.Cli; } });
7
+ var realtime_1 = require("./realtime.js");
8
+ Object.defineProperty(exports, "Realtime", { enumerable: true, get: function () { return realtime_1.Realtime; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/cli/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gCAMe;AALb,0FAAA,GAAG,OAAA;AAML,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Cli, } from "./cli.mjs";
3
+ export { Realtime, } from "./realtime.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/cli/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,GAAG,GAKJ;OACM,EACL,QAAQ,GAIT"}
@@ -0,0 +1,53 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Realtime extends APIResource {
5
+ /**
6
+ * Authenticate CLI client access to a private-cli-{nanoId} Pusher channel
7
+ */
8
+ auth(body: RealtimeAuthParams, options?: RequestOptions): APIPromise<RealtimeAuthResponse>;
9
+ /**
10
+ * Get the Pusher key and project nanoId for the CLI realtime trigger channel. The
11
+ * CLI subscribes to private-cli-{project_id}.
12
+ */
13
+ credentials(options?: RequestOptions): APIPromise<RealtimeCredentialsResponse>;
14
+ }
15
+ export interface RealtimeAuthResponse {
16
+ /**
17
+ * The authentication string for Pusher
18
+ */
19
+ auth: string;
20
+ /**
21
+ * Channel data for presence channels
22
+ */
23
+ channel_data?: string;
24
+ }
25
+ export interface RealtimeCredentialsResponse {
26
+ /**
27
+ * The project nanoId associated with the API Key provided. Used as part of the CLI
28
+ * channel name: private-cli-{project_id}
29
+ */
30
+ project_id: string;
31
+ /**
32
+ * The Pusher cluster for subscribing to the trigger
33
+ */
34
+ pusher_cluster: string;
35
+ /**
36
+ * The Pusher client key for subscribing to the trigger
37
+ */
38
+ pusher_key: string;
39
+ }
40
+ export interface RealtimeAuthParams {
41
+ /**
42
+ * The channel name to authenticate for
43
+ */
44
+ channel_name: string;
45
+ /**
46
+ * The socket ID for Pusher authentication
47
+ */
48
+ socket_id: string;
49
+ }
50
+ export declare namespace Realtime {
51
+ export { type RealtimeAuthResponse as RealtimeAuthResponse, type RealtimeCredentialsResponse as RealtimeCredentialsResponse, type RealtimeAuthParams as RealtimeAuthParams, };
52
+ }
53
+ //# sourceMappingURL=realtime.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realtime.d.mts","sourceRoot":"","sources":["../../src/resources/cli/realtime.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI1F;;;OAGG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;CAG/E;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,53 @@
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 Realtime extends APIResource {
5
+ /**
6
+ * Authenticate CLI client access to a private-cli-{nanoId} Pusher channel
7
+ */
8
+ auth(body: RealtimeAuthParams, options?: RequestOptions): APIPromise<RealtimeAuthResponse>;
9
+ /**
10
+ * Get the Pusher key and project nanoId for the CLI realtime trigger channel. The
11
+ * CLI subscribes to private-cli-{project_id}.
12
+ */
13
+ credentials(options?: RequestOptions): APIPromise<RealtimeCredentialsResponse>;
14
+ }
15
+ export interface RealtimeAuthResponse {
16
+ /**
17
+ * The authentication string for Pusher
18
+ */
19
+ auth: string;
20
+ /**
21
+ * Channel data for presence channels
22
+ */
23
+ channel_data?: string;
24
+ }
25
+ export interface RealtimeCredentialsResponse {
26
+ /**
27
+ * The project nanoId associated with the API Key provided. Used as part of the CLI
28
+ * channel name: private-cli-{project_id}
29
+ */
30
+ project_id: string;
31
+ /**
32
+ * The Pusher cluster for subscribing to the trigger
33
+ */
34
+ pusher_cluster: string;
35
+ /**
36
+ * The Pusher client key for subscribing to the trigger
37
+ */
38
+ pusher_key: string;
39
+ }
40
+ export interface RealtimeAuthParams {
41
+ /**
42
+ * The channel name to authenticate for
43
+ */
44
+ channel_name: string;
45
+ /**
46
+ * The socket ID for Pusher authentication
47
+ */
48
+ socket_id: string;
49
+ }
50
+ export declare namespace Realtime {
51
+ export { type RealtimeAuthResponse as RealtimeAuthResponse, type RealtimeCredentialsResponse as RealtimeCredentialsResponse, type RealtimeAuthParams as RealtimeAuthParams, };
52
+ }
53
+ //# sourceMappingURL=realtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realtime.d.ts","sourceRoot":"","sources":["../../src/resources/cli/realtime.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI1F;;;OAGG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;CAG/E;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Realtime = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ class Realtime extends resource_1.APIResource {
7
+ /**
8
+ * Authenticate CLI client access to a private-cli-{nanoId} Pusher channel
9
+ */
10
+ auth(body, options) {
11
+ return this._client.post('/api/v3/cli/realtime/auth', { body, ...options });
12
+ }
13
+ /**
14
+ * Get the Pusher key and project nanoId for the CLI realtime trigger channel. The
15
+ * CLI subscribes to private-cli-{project_id}.
16
+ */
17
+ credentials(options) {
18
+ return this._client.get('/api/v3/cli/realtime/credentials', options);
19
+ }
20
+ }
21
+ exports.Realtime = Realtime;
22
+ //# sourceMappingURL=realtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realtime.js","sourceRoot":"","sources":["../../src/resources/cli/realtime.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAwB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AAfD,4BAeC"}
@@ -0,0 +1,18 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ export class Realtime extends APIResource {
4
+ /**
5
+ * Authenticate CLI client access to a private-cli-{nanoId} Pusher channel
6
+ */
7
+ auth(body, options) {
8
+ return this._client.post('/api/v3/cli/realtime/auth', { body, ...options });
9
+ }
10
+ /**
11
+ * Get the Pusher key and project nanoId for the CLI realtime trigger channel. The
12
+ * CLI subscribes to private-cli-{project_id}.
13
+ */
14
+ credentials(options) {
15
+ return this._client.get('/api/v3/cli/realtime/credentials', options);
16
+ }
17
+ }
18
+ //# sourceMappingURL=realtime.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realtime.mjs","sourceRoot":"","sources":["../../src/resources/cli/realtime.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAwB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -1,96 +1,2 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- export declare class Cli extends APIResource {
5
- /**
6
- * Generates a new CLI session with a random 6-character code. This endpoint is the
7
- * first step in the CLI authentication flow, creating a session that can later be
8
- * linked to a user account. The generated code is displayed to the user in the CLI
9
- * and should be entered in the web interface to complete authentication.
10
- */
11
- createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
12
- /**
13
- * Retrieves the current state of a CLI session using either the session ID (UUID)
14
- * or the 6-character code. This endpoint is used by both the CLI client to check
15
- * if the session has been linked, and by the web interface to display session
16
- * details before linking.
17
- */
18
- getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
19
- }
20
- export interface CliCreateSessionResponse {
21
- /**
22
- * Unique identifier for the CLI session. UUID v4 format used for tracking and
23
- * retrieval.
24
- */
25
- id: string;
26
- /**
27
- * The 6-character hexadecimal code used for CLI login
28
- */
29
- code: string;
30
- /**
31
- * The ISO timestamp when the session expires
32
- */
33
- expiresAt: string;
34
- /**
35
- * The current status of the session
36
- */
37
- status: 'pending' | 'linked';
38
- }
39
- export interface CliGetSessionResponse {
40
- /**
41
- * The unique identifier for the CLI session
42
- */
43
- id: string;
44
- /**
45
- * Information about the linked account, if any. Null if the session status is
46
- * "pending".
47
- */
48
- account: CliGetSessionResponse.Account | null;
49
- /**
50
- * The API key for the linked account
51
- */
52
- api_key: string | null;
53
- /**
54
- * The 6-character hexadecimal code used for CLI login
55
- */
56
- code: string;
57
- /**
58
- * The ISO timestamp when the session expires
59
- */
60
- expiresAt: string;
61
- /**
62
- * The current status of the session
63
- */
64
- status: 'pending' | 'linked';
65
- }
66
- export declare namespace CliGetSessionResponse {
67
- /**
68
- * Information about the linked account, if any. Null if the session status is
69
- * "pending".
70
- */
71
- interface Account {
72
- /**
73
- * The ID of the linked account
74
- */
75
- id: string;
76
- /**
77
- * The email address of the linked account
78
- */
79
- email: string;
80
- /**
81
- * The display name of the linked account
82
- */
83
- name: string;
84
- }
85
- }
86
- export interface CliGetSessionParams {
87
- /**
88
- * CLI session ID (UUID format) or 6-character code to check. Both formats are
89
- * supported for flexibility in client implementations.
90
- */
91
- id: string;
92
- }
93
- export declare namespace Cli {
94
- export { type CliCreateSessionResponse as CliCreateSessionResponse, type CliGetSessionResponse as CliGetSessionResponse, type CliGetSessionParams as CliGetSessionParams, };
95
- }
1
+ export * from "./cli/index.mjs";
96
2
  //# sourceMappingURL=cli.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.mts","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;OAKG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI7E;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGpG;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,qBAAqB,CAAC,OAAO,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;;OAGG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"cli.d.mts","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":""}
@@ -1,96 +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 Cli extends APIResource {
5
- /**
6
- * Generates a new CLI session with a random 6-character code. This endpoint is the
7
- * first step in the CLI authentication flow, creating a session that can later be
8
- * linked to a user account. The generated code is displayed to the user in the CLI
9
- * and should be entered in the web interface to complete authentication.
10
- */
11
- createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
12
- /**
13
- * Retrieves the current state of a CLI session using either the session ID (UUID)
14
- * or the 6-character code. This endpoint is used by both the CLI client to check
15
- * if the session has been linked, and by the web interface to display session
16
- * details before linking.
17
- */
18
- getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
19
- }
20
- export interface CliCreateSessionResponse {
21
- /**
22
- * Unique identifier for the CLI session. UUID v4 format used for tracking and
23
- * retrieval.
24
- */
25
- id: string;
26
- /**
27
- * The 6-character hexadecimal code used for CLI login
28
- */
29
- code: string;
30
- /**
31
- * The ISO timestamp when the session expires
32
- */
33
- expiresAt: string;
34
- /**
35
- * The current status of the session
36
- */
37
- status: 'pending' | 'linked';
38
- }
39
- export interface CliGetSessionResponse {
40
- /**
41
- * The unique identifier for the CLI session
42
- */
43
- id: string;
44
- /**
45
- * Information about the linked account, if any. Null if the session status is
46
- * "pending".
47
- */
48
- account: CliGetSessionResponse.Account | null;
49
- /**
50
- * The API key for the linked account
51
- */
52
- api_key: string | null;
53
- /**
54
- * The 6-character hexadecimal code used for CLI login
55
- */
56
- code: string;
57
- /**
58
- * The ISO timestamp when the session expires
59
- */
60
- expiresAt: string;
61
- /**
62
- * The current status of the session
63
- */
64
- status: 'pending' | 'linked';
65
- }
66
- export declare namespace CliGetSessionResponse {
67
- /**
68
- * Information about the linked account, if any. Null if the session status is
69
- * "pending".
70
- */
71
- interface Account {
72
- /**
73
- * The ID of the linked account
74
- */
75
- id: string;
76
- /**
77
- * The email address of the linked account
78
- */
79
- email: string;
80
- /**
81
- * The display name of the linked account
82
- */
83
- name: string;
84
- }
85
- }
86
- export interface CliGetSessionParams {
87
- /**
88
- * CLI session ID (UUID format) or 6-character code to check. Both formats are
89
- * supported for flexibility in client implementations.
90
- */
91
- id: string;
92
- }
93
- export declare namespace Cli {
94
- export { type CliCreateSessionResponse as CliCreateSessionResponse, type CliGetSessionResponse as CliGetSessionResponse, type CliGetSessionParams as CliGetSessionParams, };
95
- }
1
+ export * from "./cli/index.js";
96
2
  //# sourceMappingURL=cli.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;OAKG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI7E;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGpG;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,qBAAqB,CAAC,OAAO,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;;OAGG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":""}
package/resources/cli.js CHANGED
@@ -1,27 +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.Cli = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- class Cli extends resource_1.APIResource {
7
- /**
8
- * Generates a new CLI session with a random 6-character code. This endpoint is the
9
- * first step in the CLI authentication flow, creating a session that can later be
10
- * linked to a user account. The generated code is displayed to the user in the CLI
11
- * and should be entered in the web interface to complete authentication.
12
- */
13
- createSession(options) {
14
- return this._client.post('/api/v3/cli/create-session', options);
15
- }
16
- /**
17
- * Retrieves the current state of a CLI session using either the session ID (UUID)
18
- * or the 6-character code. This endpoint is used by both the CLI client to check
19
- * if the session has been linked, and by the web interface to display session
20
- * details before linking.
21
- */
22
- getSession(query, options) {
23
- return this._client.get('/api/v3/cli/get-session', { query, ...options });
24
- }
25
- }
26
- exports.Cli = Cli;
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./cli/index.js"), exports);
27
6
  //# sourceMappingURL=cli.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;;OAKG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,KAA0B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AApBD,kBAoBC"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAA4B"}
package/resources/cli.mjs CHANGED
@@ -1,23 +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 Cli extends APIResource {
4
- /**
5
- * Generates a new CLI session with a random 6-character code. This endpoint is the
6
- * first step in the CLI authentication flow, creating a session that can later be
7
- * linked to a user account. The generated code is displayed to the user in the CLI
8
- * and should be entered in the web interface to complete authentication.
9
- */
10
- createSession(options) {
11
- return this._client.post('/api/v3/cli/create-session', options);
12
- }
13
- /**
14
- * Retrieves the current state of a CLI session using either the session ID (UUID)
15
- * or the 6-character code. This endpoint is used by both the CLI client to check
16
- * if the session has been linked, and by the web interface to display session
17
- * details before linking.
18
- */
19
- getSession(query, options) {
20
- return this._client.get('/api/v3/cli/get-session', { query, ...options });
21
- }
22
- }
2
+ export * from "./cli/index.mjs";
23
3
  //# sourceMappingURL=cli.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.mjs","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;;OAKG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,KAA0B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
1
+ {"version":3,"file":"cli.mjs","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -3,7 +3,11 @@ import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  export declare class ConnectedAccounts extends APIResource {
5
5
  /**
6
- * Create a new connected account
6
+ * Initiates a new connection to an external service for a user. For OAuth-based
7
+ * toolkits, this returns a redirect URL to complete authentication. For API
8
+ * key-based toolkits, provide the credentials directly in the request body. Use
9
+ * the `user_id` field to associate the connection with a specific user in your
10
+ * system.
7
11
  *
8
12
  * @example
9
13
  * ```ts
@@ -29,7 +33,10 @@ export declare class ConnectedAccounts extends APIResource {
29
33
  */
30
34
  retrieve(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRetrieveResponse>;
31
35
  /**
32
- * List connected accounts with optional filters
36
+ * Retrieves all connected accounts for your project. Connected accounts represent
37
+ * authenticated user connections to external services (e.g., a user's Gmail
38
+ * account, Slack workspace). Filter by toolkit, status, user ID, or auth config to
39
+ * find specific connections.
33
40
  *
34
41
  * @example
35
42
  * ```ts
@@ -2300,7 +2307,7 @@ export declare namespace ConnectedAccountRetrieveResponse {
2300
2307
  /**
2301
2308
  * @deprecated the authScheme is part of the connection state use it there
2302
2309
  */
2303
- auth_scheme: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH';
2310
+ auth_scheme: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH' | 'S2S_OAUTH2';
2304
2311
  /**
2305
2312
  * Whether the auth config is managed by Composio
2306
2313
  */
@@ -4524,7 +4531,7 @@ export declare namespace ConnectedAccountListResponse {
4524
4531
  /**
4525
4532
  * @deprecated the authScheme is part of the connection state use it there
4526
4533
  */
4527
- auth_scheme: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH';
4534
+ auth_scheme: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH' | 'S2S_OAUTH2';
4528
4535
  /**
4529
4536
  * Whether the auth config is managed by Composio
4530
4537
  */