@composio/client 0.1.0-alpha.25 → 0.1.0-alpha.27

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 (225) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/client.d.mts +7 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +4 -10
  7. package/client.js.map +1 -1
  8. package/client.mjs +4 -10
  9. package/client.mjs.map +1 -1
  10. package/internal/request-options.d.mts +42 -0
  11. package/internal/request-options.d.mts.map +1 -1
  12. package/internal/request-options.d.ts +42 -0
  13. package/internal/request-options.d.ts.map +1 -1
  14. package/internal/request-options.js.map +1 -1
  15. package/internal/request-options.mjs.map +1 -1
  16. package/internal/types.d.mts +8 -6
  17. package/internal/types.d.mts.map +1 -1
  18. package/internal/types.d.ts +8 -6
  19. package/internal/types.d.ts.map +1 -1
  20. package/internal/uploads.js +1 -1
  21. package/internal/uploads.js.map +1 -1
  22. package/internal/uploads.mjs +1 -1
  23. package/internal/uploads.mjs.map +1 -1
  24. package/internal/utils/log.js +1 -1
  25. package/internal/utils/log.js.map +1 -1
  26. package/internal/utils/log.mjs +1 -1
  27. package/internal/utils/log.mjs.map +1 -1
  28. package/internal/utils/path.d.mts.map +1 -1
  29. package/internal/utils/path.d.ts.map +1 -1
  30. package/internal/utils/path.js +26 -5
  31. package/internal/utils/path.js.map +1 -1
  32. package/internal/utils/path.mjs +26 -5
  33. package/internal/utils/path.mjs.map +1 -1
  34. package/package.json +1 -1
  35. package/resources/auth-configs.d.mts +22 -4
  36. package/resources/auth-configs.d.mts.map +1 -1
  37. package/resources/auth-configs.d.ts +22 -4
  38. package/resources/auth-configs.d.ts.map +1 -1
  39. package/resources/{v3/cli.d.mts → cli.d.mts} +36 -36
  40. package/resources/cli.d.mts.map +1 -0
  41. package/resources/{v3/cli.d.ts → cli.d.ts} +36 -36
  42. package/resources/cli.d.ts.map +1 -0
  43. package/resources/{v3/cli.js → cli.js} +16 -16
  44. package/resources/cli.js.map +1 -0
  45. package/resources/{v3/cli.mjs → cli.mjs} +16 -16
  46. package/resources/cli.mjs.map +1 -0
  47. package/resources/connected-accounts.d.mts +2153 -633
  48. package/resources/connected-accounts.d.mts.map +1 -1
  49. package/resources/connected-accounts.d.ts +2153 -633
  50. package/resources/connected-accounts.d.ts.map +1 -1
  51. package/resources/connected-accounts.js +7 -2
  52. package/resources/connected-accounts.js.map +1 -1
  53. package/resources/connected-accounts.mjs +7 -2
  54. package/resources/connected-accounts.mjs.map +1 -1
  55. package/resources/files.d.mts +14 -1
  56. package/resources/files.d.mts.map +1 -1
  57. package/resources/files.d.ts +14 -1
  58. package/resources/files.d.ts.map +1 -1
  59. package/resources/index.d.mts +2 -2
  60. package/resources/index.d.mts.map +1 -1
  61. package/resources/index.d.ts +2 -2
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js +3 -3
  64. package/resources/index.js.map +1 -1
  65. package/resources/index.mjs +1 -1
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/mcp/mcp.d.mts +5 -9
  68. package/resources/mcp/mcp.d.mts.map +1 -1
  69. package/resources/mcp/mcp.d.ts +5 -9
  70. package/resources/mcp/mcp.d.ts.map +1 -1
  71. package/resources/mcp/mcp.js +1 -1
  72. package/resources/mcp/mcp.js.map +1 -1
  73. package/resources/mcp/mcp.mjs +1 -1
  74. package/resources/mcp/mcp.mjs.map +1 -1
  75. package/resources/toolkits.d.mts +17 -2
  76. package/resources/toolkits.d.mts.map +1 -1
  77. package/resources/toolkits.d.ts +17 -2
  78. package/resources/toolkits.d.ts.map +1 -1
  79. package/resources/tools.d.mts +9 -4
  80. package/resources/tools.d.mts.map +1 -1
  81. package/resources/tools.d.ts +9 -4
  82. package/resources/tools.d.ts.map +1 -1
  83. package/resources/trigger-instances/trigger-instances.d.mts +12 -3
  84. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  85. package/resources/trigger-instances/trigger-instances.d.ts +12 -3
  86. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  87. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  88. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  89. package/resources/triggers-types.d.mts +8 -3
  90. package/resources/triggers-types.d.mts.map +1 -1
  91. package/resources/triggers-types.d.ts +8 -3
  92. package/resources/triggers-types.d.ts.map +1 -1
  93. package/src/client.ts +23 -14
  94. package/src/internal/request-options.ts +53 -0
  95. package/src/internal/types.ts +9 -6
  96. package/src/internal/uploads.ts +1 -1
  97. package/src/internal/utils/log.ts +1 -1
  98. package/src/internal/utils/path.ts +32 -7
  99. package/src/resources/auth-configs.ts +27 -4
  100. package/src/resources/{v3/cli.ts → cli.ts} +39 -42
  101. package/src/resources/connected-accounts.ts +4045 -1211
  102. package/src/resources/files.ts +18 -1
  103. package/src/resources/index.ts +9 -1
  104. package/src/resources/mcp/mcp.ts +6 -11
  105. package/src/resources/toolkits.ts +23 -2
  106. package/src/resources/tools.ts +11 -4
  107. package/src/resources/trigger-instances/trigger-instances.ts +15 -3
  108. package/src/resources/triggers-types.ts +10 -3
  109. package/src/version.ts +1 -1
  110. package/version.d.mts +1 -1
  111. package/version.d.ts +1 -1
  112. package/version.js +1 -1
  113. package/version.mjs +1 -1
  114. package/resources/v3/auth/auth.d.mts +0 -10
  115. package/resources/v3/auth/auth.d.mts.map +0 -1
  116. package/resources/v3/auth/auth.d.ts +0 -10
  117. package/resources/v3/auth/auth.d.ts.map +0 -1
  118. package/resources/v3/auth/auth.js +0 -17
  119. package/resources/v3/auth/auth.js.map +0 -1
  120. package/resources/v3/auth/auth.mjs +0 -12
  121. package/resources/v3/auth/auth.mjs.map +0 -1
  122. package/resources/v3/auth/index.d.mts +0 -3
  123. package/resources/v3/auth/index.d.mts.map +0 -1
  124. package/resources/v3/auth/index.d.ts +0 -3
  125. package/resources/v3/auth/index.d.ts.map +0 -1
  126. package/resources/v3/auth/index.js +0 -9
  127. package/resources/v3/auth/index.js.map +0 -1
  128. package/resources/v3/auth/index.mjs +0 -4
  129. package/resources/v3/auth/index.mjs.map +0 -1
  130. package/resources/v3/auth/session.d.mts +0 -246
  131. package/resources/v3/auth/session.d.mts.map +0 -1
  132. package/resources/v3/auth/session.d.ts +0 -246
  133. package/resources/v3/auth/session.d.ts.map +0 -1
  134. package/resources/v3/auth/session.js +0 -25
  135. package/resources/v3/auth/session.js.map +0 -1
  136. package/resources/v3/auth/session.mjs +0 -21
  137. package/resources/v3/auth/session.mjs.map +0 -1
  138. package/resources/v3/auth.d.mts +0 -2
  139. package/resources/v3/auth.d.mts.map +0 -1
  140. package/resources/v3/auth.d.ts +0 -2
  141. package/resources/v3/auth.d.ts.map +0 -1
  142. package/resources/v3/auth.js +0 -6
  143. package/resources/v3/auth.js.map +0 -1
  144. package/resources/v3/auth.mjs +0 -3
  145. package/resources/v3/auth.mjs.map +0 -1
  146. package/resources/v3/cli.d.mts.map +0 -1
  147. package/resources/v3/cli.d.ts.map +0 -1
  148. package/resources/v3/cli.js.map +0 -1
  149. package/resources/v3/cli.mjs.map +0 -1
  150. package/resources/v3/index.d.mts +0 -5
  151. package/resources/v3/index.d.mts.map +0 -1
  152. package/resources/v3/index.d.ts +0 -5
  153. package/resources/v3/index.d.ts.map +0 -1
  154. package/resources/v3/index.js +0 -13
  155. package/resources/v3/index.js.map +0 -1
  156. package/resources/v3/index.mjs +0 -6
  157. package/resources/v3/index.mjs.map +0 -1
  158. package/resources/v3/internal/action-execution.d.mts +0 -169
  159. package/resources/v3/internal/action-execution.d.mts.map +0 -1
  160. package/resources/v3/internal/action-execution.d.ts +0 -169
  161. package/resources/v3/internal/action-execution.d.ts.map +0 -1
  162. package/resources/v3/internal/action-execution.js +0 -38
  163. package/resources/v3/internal/action-execution.js.map +0 -1
  164. package/resources/v3/internal/action-execution.mjs +0 -34
  165. package/resources/v3/internal/action-execution.mjs.map +0 -1
  166. package/resources/v3/internal/index.d.mts +0 -4
  167. package/resources/v3/internal/index.d.mts.map +0 -1
  168. package/resources/v3/internal/index.d.ts +0 -4
  169. package/resources/v3/internal/index.d.ts.map +0 -1
  170. package/resources/v3/internal/index.js +0 -11
  171. package/resources/v3/internal/index.js.map +0 -1
  172. package/resources/v3/internal/index.mjs +0 -5
  173. package/resources/v3/internal/index.mjs.map +0 -1
  174. package/resources/v3/internal/internal.d.mts +0 -14
  175. package/resources/v3/internal/internal.d.mts.map +0 -1
  176. package/resources/v3/internal/internal.d.ts +0 -14
  177. package/resources/v3/internal/internal.d.ts.map +0 -1
  178. package/resources/v3/internal/internal.js +0 -21
  179. package/resources/v3/internal/internal.js.map +0 -1
  180. package/resources/v3/internal/internal.mjs +0 -16
  181. package/resources/v3/internal/internal.mjs.map +0 -1
  182. package/resources/v3/internal/trigger.d.mts +0 -84
  183. package/resources/v3/internal/trigger.d.mts.map +0 -1
  184. package/resources/v3/internal/trigger.d.ts +0 -84
  185. package/resources/v3/internal/trigger.d.ts.map +0 -1
  186. package/resources/v3/internal/trigger.js +0 -23
  187. package/resources/v3/internal/trigger.js.map +0 -1
  188. package/resources/v3/internal/trigger.mjs +0 -19
  189. package/resources/v3/internal/trigger.mjs.map +0 -1
  190. package/resources/v3/internal.d.mts +0 -2
  191. package/resources/v3/internal.d.mts.map +0 -1
  192. package/resources/v3/internal.d.ts +0 -2
  193. package/resources/v3/internal.d.ts.map +0 -1
  194. package/resources/v3/internal.js +0 -6
  195. package/resources/v3/internal.js.map +0 -1
  196. package/resources/v3/internal.mjs +0 -3
  197. package/resources/v3/internal.mjs.map +0 -1
  198. package/resources/v3/v3.d.mts +0 -18
  199. package/resources/v3/v3.d.mts.map +0 -1
  200. package/resources/v3/v3.d.ts +0 -18
  201. package/resources/v3/v3.d.ts.map +0 -1
  202. package/resources/v3/v3.js +0 -25
  203. package/resources/v3/v3.js.map +0 -1
  204. package/resources/v3/v3.mjs +0 -20
  205. package/resources/v3/v3.mjs.map +0 -1
  206. package/resources/v3.d.mts +0 -2
  207. package/resources/v3.d.mts.map +0 -1
  208. package/resources/v3.d.ts +0 -2
  209. package/resources/v3.d.ts.map +0 -1
  210. package/resources/v3.js +0 -6
  211. package/resources/v3.js.map +0 -1
  212. package/resources/v3.mjs +0 -3
  213. package/resources/v3.mjs.map +0 -1
  214. package/src/resources/v3/auth/auth.ts +0 -15
  215. package/src/resources/v3/auth/index.ts +0 -4
  216. package/src/resources/v3/auth/session.ts +0 -298
  217. package/src/resources/v3/auth.ts +0 -3
  218. package/src/resources/v3/index.ts +0 -13
  219. package/src/resources/v3/internal/action-execution.ts +0 -236
  220. package/src/resources/v3/internal/index.ts +0 -10
  221. package/src/resources/v3/internal/internal.ts +0 -35
  222. package/src/resources/v3/internal/trigger.ts +0 -122
  223. package/src/resources/v3/internal.ts +0 -3
  224. package/src/resources/v3/v3.ts +0 -41
  225. package/src/resources/v3.ts +0 -3
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/resources/v3/internal.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./internal/index.mjs";
3
- //# sourceMappingURL=internal.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal.mjs","sourceRoot":"","sources":["../../src/resources/v3/internal.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,18 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as CliAPI from "./cli.mjs";
3
- import { Cli, CliCreateSessionResponse, CliLinkSessionParams, CliLinkSessionResponse, CliRetrieveSessionParams, CliRetrieveSessionResponse } from "./cli.mjs";
4
- import * as AuthAPI from "./auth/auth.mjs";
5
- import { Auth } from "./auth/auth.mjs";
6
- import * as InternalAPI from "./internal/internal.mjs";
7
- import { Internal } from "./internal/internal.mjs";
8
- export declare class V3 extends APIResource {
9
- auth: AuthAPI.Auth;
10
- cli: CliAPI.Cli;
11
- internal: InternalAPI.Internal;
12
- }
13
- export declare namespace V3 {
14
- export { Auth as Auth };
15
- export { Cli as Cli, type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
16
- export { Internal as Internal };
17
- }
18
- //# sourceMappingURL=v3.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v3.d.mts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EACL,GAAG,EACH,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
@@ -1,18 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as CliAPI from "./cli.js";
3
- import { Cli, CliCreateSessionResponse, CliLinkSessionParams, CliLinkSessionResponse, CliRetrieveSessionParams, CliRetrieveSessionResponse } from "./cli.js";
4
- import * as AuthAPI from "./auth/auth.js";
5
- import { Auth } from "./auth/auth.js";
6
- import * as InternalAPI from "./internal/internal.js";
7
- import { Internal } from "./internal/internal.js";
8
- export declare class V3 extends APIResource {
9
- auth: AuthAPI.Auth;
10
- cli: CliAPI.Cli;
11
- internal: InternalAPI.Internal;
12
- }
13
- export declare namespace V3 {
14
- export { Auth as Auth };
15
- export { Cli as Cli, type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
16
- export { Internal as Internal };
17
- }
18
- //# sourceMappingURL=v3.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EACL,GAAG,EACH,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
@@ -1,25 +0,0 @@
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.V3 = void 0;
5
- const tslib_1 = require("../../internal/tslib.js");
6
- const resource_1 = require("../../core/resource.js");
7
- const CliAPI = tslib_1.__importStar(require("./cli.js"));
8
- const cli_1 = require("./cli.js");
9
- const AuthAPI = tslib_1.__importStar(require("./auth/auth.js"));
10
- const auth_1 = require("./auth/auth.js");
11
- const InternalAPI = tslib_1.__importStar(require("./internal/internal.js"));
12
- const internal_1 = require("./internal/internal.js");
13
- class V3 extends resource_1.APIResource {
14
- constructor() {
15
- super(...arguments);
16
- this.auth = new AuthAPI.Auth(this._client);
17
- this.cli = new CliAPI.Cli(this._client);
18
- this.internal = new InternalAPI.Internal(this._client);
19
- }
20
- }
21
- exports.V3 = V3;
22
- V3.Auth = auth_1.Auth;
23
- V3.Cli = cli_1.Cli;
24
- V3.Internal = internal_1.Internal;
25
- //# sourceMappingURL=v3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v3.js","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yDAAgC;AAChC,kCAOe;AACf,gEAAuC;AACvC,yCAAmC;AACnC,4EAAmD;AACnD,qDAA+C;AAE/C,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAJD,gBAIC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,GAAG,GAAG,SAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -1,20 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import * as CliAPI from "./cli.mjs";
4
- import { Cli, } from "./cli.mjs";
5
- import * as AuthAPI from "./auth/auth.mjs";
6
- import { Auth } from "./auth/auth.mjs";
7
- import * as InternalAPI from "./internal/internal.mjs";
8
- import { Internal } from "./internal/internal.mjs";
9
- export class V3 extends APIResource {
10
- constructor() {
11
- super(...arguments);
12
- this.auth = new AuthAPI.Auth(this._client);
13
- this.cli = new CliAPI.Cli(this._client);
14
- this.internal = new InternalAPI.Internal(this._client);
15
- }
16
- }
17
- V3.Auth = Auth;
18
- V3.Cli = Cli;
19
- V3.Internal = Internal;
20
- //# sourceMappingURL=v3.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EACL,GAAG,GAMJ;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./v3/index.mjs";
2
- //# sourceMappingURL=v3.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v3.d.mts","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":""}
package/resources/v3.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./v3/index.js";
2
- //# sourceMappingURL=v3.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":""}
package/resources/v3.js DELETED
@@ -1,6 +0,0 @@
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
- const tslib_1 = require("../internal/tslib.js");
5
- tslib_1.__exportStar(require("./v3/index.js"), exports);
6
- //# sourceMappingURL=v3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v3.js","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAA2B"}
package/resources/v3.mjs DELETED
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./v3/index.mjs";
3
- //# sourceMappingURL=v3.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,15 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import * as SessionAPI from './session';
5
- import { Session, SessionRetrieveInfoResponse } from './session';
6
-
7
- export class Auth extends APIResource {
8
- session: SessionAPI.Session = new SessionAPI.Session(this._client);
9
- }
10
-
11
- Auth.Session = Session;
12
-
13
- export declare namespace Auth {
14
- export { Session as Session, type SessionRetrieveInfoResponse as SessionRetrieveInfoResponse };
15
- }
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export { Auth } from './auth';
4
- export { Session, type SessionRetrieveInfoResponse } from './session';
@@ -1,298 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { RequestOptions } from '../../../internal/request-options';
6
-
7
- export class Session extends APIResource {
8
- /**
9
- * Retrieves detailed information about the current authenticated user session,
10
- * including project details, organization membership, and API key information if
11
- * applicable. This endpoint is useful for verifying authentication status and
12
- * retrieving contextual information about the authenticated user and their access
13
- * privileges.
14
- *
15
- * @example
16
- * ```ts
17
- * const response =
18
- * await client.v3.auth.session.retrieveInfo();
19
- * ```
20
- */
21
- retrieveInfo(options?: RequestOptions): APIPromise<SessionRetrieveInfoResponse> {
22
- return this._client.get('/api/v3/auth/session/info', options);
23
- }
24
- }
25
-
26
- /**
27
- * Response containing user session information
28
- */
29
- export interface SessionRetrieveInfoResponse {
30
- /**
31
- * Details of the API key used for authentication (null if using session auth)
32
- */
33
- api_key: SessionRetrieveInfoResponse.APIKey | null;
34
-
35
- /**
36
- * Information about the authenticated user
37
- */
38
- org_member: SessionRetrieveInfoResponse.OrgMember;
39
-
40
- /**
41
- * Details of the current active project (null if accessing with org-level
42
- * credentials)
43
- */
44
- project: SessionRetrieveInfoResponse.Project | null;
45
- }
46
-
47
- export namespace SessionRetrieveInfoResponse {
48
- /**
49
- * Details of the API key used for authentication (null if using session auth)
50
- */
51
- export interface APIKey {
52
- /**
53
- * UUID identifier for the API key
54
- */
55
- id: string;
56
-
57
- /**
58
- * Internal auto-incrementing ID for the API key
59
- */
60
- auto_id: number;
61
-
62
- /**
63
- * Date and time when the API key was created
64
- */
65
- created_at: string;
66
-
67
- /**
68
- * Flag indicating if the API key has been deleted
69
- */
70
- deleted: boolean;
71
-
72
- /**
73
- * Date and time when the API key was deleted (if applicable)
74
- */
75
- deleted_at: string | null;
76
-
77
- /**
78
- * The actual API key value (usually only shown once during creation)
79
- */
80
- key: string;
81
-
82
- /**
83
- * User-defined name for the API key
84
- */
85
- name: string;
86
-
87
- /**
88
- * UUID identifier for the organization member who owns this API key
89
- */
90
- org_member_id: string;
91
-
92
- /**
93
- * Short, URL-friendly unique identifier for the associated project
94
- */
95
- project_id: string;
96
-
97
- /**
98
- * Date and time when the API key was last modified
99
- */
100
- updated_at: string;
101
- }
102
-
103
- /**
104
- * Information about the authenticated user
105
- */
106
- export interface OrgMember {
107
- /**
108
- * UUID identifier for the organization member
109
- */
110
- id: string;
111
-
112
- /**
113
- * Email address of the authenticated user
114
- */
115
- email: string;
116
-
117
- /**
118
- * Display name of the authenticated user
119
- */
120
- name: string;
121
-
122
- /**
123
- * Access role of the authenticated user within the organization
124
- */
125
- role: string;
126
- }
127
-
128
- /**
129
- * Details of the current active project (null if accessing with org-level
130
- * credentials)
131
- */
132
- export interface Project {
133
- /**
134
- * UUID identifier for the project
135
- */
136
- id: string;
137
-
138
- /**
139
- * Internal auto-incrementing ID for the project
140
- */
141
- auto_id: number;
142
-
143
- /**
144
- * Date and time when the project was created
145
- */
146
- created_at: string;
147
-
148
- /**
149
- * Flag indicating if the project has been deleted
150
- */
151
- deleted: boolean;
152
-
153
- /**
154
- * Email address used for project notifications
155
- */
156
- email: string;
157
-
158
- /**
159
- * Endpoint URL for event webhook notifications
160
- */
161
- event_webhook_url: string | null;
162
-
163
- /**
164
- * Flag indicating if the project uses the new webhook format
165
- */
166
- is_new_webhook: boolean;
167
-
168
- /**
169
- * Date and time when the project last subscribed to updates
170
- */
171
- last_subscribed_at: string | null;
172
-
173
- /**
174
- * User-defined name for the project
175
- */
176
- name: string;
177
-
178
- /**
179
- * Short, URL-friendly unique identifier for the project
180
- */
181
- nano_id: string;
182
-
183
- /**
184
- * Organization details including members
185
- */
186
- org: Project.Org;
187
-
188
- /**
189
- * Organization UUID that this project belongs to
190
- */
191
- org_id: string;
192
-
193
- /**
194
- * Flag indicating if triggers are enabled for this project
195
- */
196
- triggers_enabled: boolean;
197
-
198
- /**
199
- * Date and time when the project was last modified
200
- */
201
- updated_at: string;
202
-
203
- /**
204
- * Secret used to verify webhook signatures
205
- */
206
- webhook_secret: string | null;
207
-
208
- /**
209
- * Endpoint URL for trigger webhook notifications
210
- */
211
- webhook_url: string | null;
212
- }
213
-
214
- export namespace Project {
215
- /**
216
- * Organization details including members
217
- */
218
- export interface Org {
219
- /**
220
- * Short, URL-friendly unique identifier for the organization
221
- */
222
- id: string;
223
-
224
- /**
225
- * User-defined name for the organization
226
- */
227
- name: string;
228
-
229
- /**
230
- * Array of members belonging to this organization
231
- */
232
- org_members: Array<Org.OrgMember>;
233
-
234
- /**
235
- * Current subscription plan level
236
- */
237
- plan: string;
238
- }
239
-
240
- export namespace Org {
241
- export interface OrgMember {
242
- /**
243
- * UUID identifier for the organization member
244
- */
245
- id: string;
246
-
247
- /**
248
- * Internal auto-incrementing ID for the organization member
249
- */
250
- auto_id: number;
251
-
252
- /**
253
- * Date and time when the member was added to the organization
254
- */
255
- created_at: string;
256
-
257
- /**
258
- * Date and time when the member was removed from the organization (if applicable)
259
- */
260
- deleted_at: string | null;
261
-
262
- /**
263
- * Email address of the organization member
264
- */
265
- email: string;
266
-
267
- /**
268
- * User-defined name for the organization member
269
- */
270
- name: string;
271
-
272
- /**
273
- * Organization UUID that this member belongs to
274
- */
275
- org_id: string;
276
-
277
- /**
278
- * Access role of the member within the organization
279
- */
280
- role: string;
281
-
282
- /**
283
- * Date and time when the member was last modified
284
- */
285
- updated_at: string;
286
-
287
- /**
288
- * Optional custom metadata for the organization member
289
- */
290
- metadata?: unknown;
291
- }
292
- }
293
- }
294
- }
295
-
296
- export declare namespace Session {
297
- export { type SessionRetrieveInfoResponse as SessionRetrieveInfoResponse };
298
- }
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './auth/index';
@@ -1,13 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export { Auth } from './auth/index';
4
- export {
5
- Cli,
6
- type CliCreateSessionResponse,
7
- type CliLinkSessionResponse,
8
- type CliRetrieveSessionResponse,
9
- type CliLinkSessionParams,
10
- type CliRetrieveSessionParams,
11
- } from './cli';
12
- export { Internal } from './internal/index';
13
- export { V3 } from './v3';