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

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 (221) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +4 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  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/connected-accounts.d.mts +2153 -633
  40. package/resources/connected-accounts.d.mts.map +1 -1
  41. package/resources/connected-accounts.d.ts +2153 -633
  42. package/resources/connected-accounts.d.ts.map +1 -1
  43. package/resources/connected-accounts.js +7 -2
  44. package/resources/connected-accounts.js.map +1 -1
  45. package/resources/connected-accounts.mjs +7 -2
  46. package/resources/connected-accounts.mjs.map +1 -1
  47. package/resources/files.d.mts +14 -1
  48. package/resources/files.d.mts.map +1 -1
  49. package/resources/files.d.ts +14 -1
  50. package/resources/files.d.ts.map +1 -1
  51. package/resources/index.d.mts +1 -2
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +1 -2
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +1 -3
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +0 -1
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/mcp/mcp.d.mts +5 -9
  60. package/resources/mcp/mcp.d.mts.map +1 -1
  61. package/resources/mcp/mcp.d.ts +5 -9
  62. package/resources/mcp/mcp.d.ts.map +1 -1
  63. package/resources/mcp/mcp.js +1 -1
  64. package/resources/mcp/mcp.js.map +1 -1
  65. package/resources/mcp/mcp.mjs +1 -1
  66. package/resources/mcp/mcp.mjs.map +1 -1
  67. package/resources/toolkits.d.mts +17 -2
  68. package/resources/toolkits.d.mts.map +1 -1
  69. package/resources/toolkits.d.ts +17 -2
  70. package/resources/toolkits.d.ts.map +1 -1
  71. package/resources/tools.d.mts +9 -4
  72. package/resources/tools.d.mts.map +1 -1
  73. package/resources/tools.d.ts +9 -4
  74. package/resources/tools.d.ts.map +1 -1
  75. package/resources/trigger-instances/trigger-instances.d.mts +12 -3
  76. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  77. package/resources/trigger-instances/trigger-instances.d.ts +12 -3
  78. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  79. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  80. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  81. package/resources/triggers-types.d.mts +8 -3
  82. package/resources/triggers-types.d.mts.map +1 -1
  83. package/resources/triggers-types.d.ts +8 -3
  84. package/resources/triggers-types.d.ts.map +1 -1
  85. package/src/client.ts +4 -5
  86. package/src/internal/request-options.ts +53 -0
  87. package/src/internal/types.ts +9 -6
  88. package/src/internal/uploads.ts +1 -1
  89. package/src/internal/utils/log.ts +1 -1
  90. package/src/internal/utils/path.ts +32 -7
  91. package/src/resources/auth-configs.ts +27 -4
  92. package/src/resources/connected-accounts.ts +4045 -1211
  93. package/src/resources/files.ts +18 -1
  94. package/src/resources/index.ts +1 -1
  95. package/src/resources/mcp/mcp.ts +6 -11
  96. package/src/resources/toolkits.ts +23 -2
  97. package/src/resources/tools.ts +11 -4
  98. package/src/resources/trigger-instances/trigger-instances.ts +15 -3
  99. package/src/resources/triggers-types.ts +10 -3
  100. package/src/version.ts +1 -1
  101. package/version.d.mts +1 -1
  102. package/version.d.ts +1 -1
  103. package/version.js +1 -1
  104. package/version.mjs +1 -1
  105. package/resources/v3/auth/auth.d.mts +0 -10
  106. package/resources/v3/auth/auth.d.mts.map +0 -1
  107. package/resources/v3/auth/auth.d.ts +0 -10
  108. package/resources/v3/auth/auth.d.ts.map +0 -1
  109. package/resources/v3/auth/auth.js +0 -17
  110. package/resources/v3/auth/auth.js.map +0 -1
  111. package/resources/v3/auth/auth.mjs +0 -12
  112. package/resources/v3/auth/auth.mjs.map +0 -1
  113. package/resources/v3/auth/index.d.mts +0 -3
  114. package/resources/v3/auth/index.d.mts.map +0 -1
  115. package/resources/v3/auth/index.d.ts +0 -3
  116. package/resources/v3/auth/index.d.ts.map +0 -1
  117. package/resources/v3/auth/index.js +0 -9
  118. package/resources/v3/auth/index.js.map +0 -1
  119. package/resources/v3/auth/index.mjs +0 -4
  120. package/resources/v3/auth/index.mjs.map +0 -1
  121. package/resources/v3/auth/session.d.mts +0 -246
  122. package/resources/v3/auth/session.d.mts.map +0 -1
  123. package/resources/v3/auth/session.d.ts +0 -246
  124. package/resources/v3/auth/session.d.ts.map +0 -1
  125. package/resources/v3/auth/session.js +0 -25
  126. package/resources/v3/auth/session.js.map +0 -1
  127. package/resources/v3/auth/session.mjs +0 -21
  128. package/resources/v3/auth/session.mjs.map +0 -1
  129. package/resources/v3/auth.d.mts +0 -2
  130. package/resources/v3/auth.d.mts.map +0 -1
  131. package/resources/v3/auth.d.ts +0 -2
  132. package/resources/v3/auth.d.ts.map +0 -1
  133. package/resources/v3/auth.js +0 -6
  134. package/resources/v3/auth.js.map +0 -1
  135. package/resources/v3/auth.mjs +0 -3
  136. package/resources/v3/auth.mjs.map +0 -1
  137. package/resources/v3/cli.d.mts +0 -167
  138. package/resources/v3/cli.d.mts.map +0 -1
  139. package/resources/v3/cli.d.ts +0 -167
  140. package/resources/v3/cli.d.ts.map +0 -1
  141. package/resources/v3/cli.js +0 -55
  142. package/resources/v3/cli.js.map +0 -1
  143. package/resources/v3/cli.mjs +0 -51
  144. package/resources/v3/cli.mjs.map +0 -1
  145. package/resources/v3/index.d.mts +0 -5
  146. package/resources/v3/index.d.mts.map +0 -1
  147. package/resources/v3/index.d.ts +0 -5
  148. package/resources/v3/index.d.ts.map +0 -1
  149. package/resources/v3/index.js +0 -13
  150. package/resources/v3/index.js.map +0 -1
  151. package/resources/v3/index.mjs +0 -6
  152. package/resources/v3/index.mjs.map +0 -1
  153. package/resources/v3/internal/action-execution.d.mts +0 -169
  154. package/resources/v3/internal/action-execution.d.mts.map +0 -1
  155. package/resources/v3/internal/action-execution.d.ts +0 -169
  156. package/resources/v3/internal/action-execution.d.ts.map +0 -1
  157. package/resources/v3/internal/action-execution.js +0 -38
  158. package/resources/v3/internal/action-execution.js.map +0 -1
  159. package/resources/v3/internal/action-execution.mjs +0 -34
  160. package/resources/v3/internal/action-execution.mjs.map +0 -1
  161. package/resources/v3/internal/index.d.mts +0 -4
  162. package/resources/v3/internal/index.d.mts.map +0 -1
  163. package/resources/v3/internal/index.d.ts +0 -4
  164. package/resources/v3/internal/index.d.ts.map +0 -1
  165. package/resources/v3/internal/index.js +0 -11
  166. package/resources/v3/internal/index.js.map +0 -1
  167. package/resources/v3/internal/index.mjs +0 -5
  168. package/resources/v3/internal/index.mjs.map +0 -1
  169. package/resources/v3/internal/internal.d.mts +0 -14
  170. package/resources/v3/internal/internal.d.mts.map +0 -1
  171. package/resources/v3/internal/internal.d.ts +0 -14
  172. package/resources/v3/internal/internal.d.ts.map +0 -1
  173. package/resources/v3/internal/internal.js +0 -21
  174. package/resources/v3/internal/internal.js.map +0 -1
  175. package/resources/v3/internal/internal.mjs +0 -16
  176. package/resources/v3/internal/internal.mjs.map +0 -1
  177. package/resources/v3/internal/trigger.d.mts +0 -84
  178. package/resources/v3/internal/trigger.d.mts.map +0 -1
  179. package/resources/v3/internal/trigger.d.ts +0 -84
  180. package/resources/v3/internal/trigger.d.ts.map +0 -1
  181. package/resources/v3/internal/trigger.js +0 -23
  182. package/resources/v3/internal/trigger.js.map +0 -1
  183. package/resources/v3/internal/trigger.mjs +0 -19
  184. package/resources/v3/internal/trigger.mjs.map +0 -1
  185. package/resources/v3/internal.d.mts +0 -2
  186. package/resources/v3/internal.d.mts.map +0 -1
  187. package/resources/v3/internal.d.ts +0 -2
  188. package/resources/v3/internal.d.ts.map +0 -1
  189. package/resources/v3/internal.js +0 -6
  190. package/resources/v3/internal.js.map +0 -1
  191. package/resources/v3/internal.mjs +0 -3
  192. package/resources/v3/internal.mjs.map +0 -1
  193. package/resources/v3/v3.d.mts +0 -18
  194. package/resources/v3/v3.d.mts.map +0 -1
  195. package/resources/v3/v3.d.ts +0 -18
  196. package/resources/v3/v3.d.ts.map +0 -1
  197. package/resources/v3/v3.js +0 -25
  198. package/resources/v3/v3.js.map +0 -1
  199. package/resources/v3/v3.mjs +0 -20
  200. package/resources/v3/v3.mjs.map +0 -1
  201. package/resources/v3.d.mts +0 -2
  202. package/resources/v3.d.mts.map +0 -1
  203. package/resources/v3.d.ts +0 -2
  204. package/resources/v3.d.ts.map +0 -1
  205. package/resources/v3.js +0 -6
  206. package/resources/v3.js.map +0 -1
  207. package/resources/v3.mjs +0 -3
  208. package/resources/v3.mjs.map +0 -1
  209. package/src/resources/v3/auth/auth.ts +0 -15
  210. package/src/resources/v3/auth/index.ts +0 -4
  211. package/src/resources/v3/auth/session.ts +0 -298
  212. package/src/resources/v3/auth.ts +0 -3
  213. package/src/resources/v3/cli.ts +0 -209
  214. package/src/resources/v3/index.ts +0 -13
  215. package/src/resources/v3/internal/action-execution.ts +0 -236
  216. package/src/resources/v3/internal/index.ts +0 -10
  217. package/src/resources/v3/internal/internal.ts +0 -35
  218. package/src/resources/v3/internal/trigger.ts +0 -122
  219. package/src/resources/v3/internal.ts +0 -3
  220. package/src/resources/v3/v3.ts +0 -41
  221. package/src/resources/v3.ts +0 -3
@@ -1,246 +0,0 @@
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 Session extends APIResource {
5
- /**
6
- * Retrieves detailed information about the current authenticated user session,
7
- * including project details, organization membership, and API key information if
8
- * applicable. This endpoint is useful for verifying authentication status and
9
- * retrieving contextual information about the authenticated user and their access
10
- * privileges.
11
- *
12
- * @example
13
- * ```ts
14
- * const response =
15
- * await client.v3.auth.session.retrieveInfo();
16
- * ```
17
- */
18
- retrieveInfo(options?: RequestOptions): APIPromise<SessionRetrieveInfoResponse>;
19
- }
20
- /**
21
- * Response containing user session information
22
- */
23
- export interface SessionRetrieveInfoResponse {
24
- /**
25
- * Details of the API key used for authentication (null if using session auth)
26
- */
27
- api_key: SessionRetrieveInfoResponse.APIKey | null;
28
- /**
29
- * Information about the authenticated user
30
- */
31
- org_member: SessionRetrieveInfoResponse.OrgMember;
32
- /**
33
- * Details of the current active project (null if accessing with org-level
34
- * credentials)
35
- */
36
- project: SessionRetrieveInfoResponse.Project | null;
37
- }
38
- export declare namespace SessionRetrieveInfoResponse {
39
- /**
40
- * Details of the API key used for authentication (null if using session auth)
41
- */
42
- interface APIKey {
43
- /**
44
- * UUID identifier for the API key
45
- */
46
- id: string;
47
- /**
48
- * Internal auto-incrementing ID for the API key
49
- */
50
- auto_id: number;
51
- /**
52
- * Date and time when the API key was created
53
- */
54
- created_at: string;
55
- /**
56
- * Flag indicating if the API key has been deleted
57
- */
58
- deleted: boolean;
59
- /**
60
- * Date and time when the API key was deleted (if applicable)
61
- */
62
- deleted_at: string | null;
63
- /**
64
- * The actual API key value (usually only shown once during creation)
65
- */
66
- key: string;
67
- /**
68
- * User-defined name for the API key
69
- */
70
- name: string;
71
- /**
72
- * UUID identifier for the organization member who owns this API key
73
- */
74
- org_member_id: string;
75
- /**
76
- * Short, URL-friendly unique identifier for the associated project
77
- */
78
- project_id: string;
79
- /**
80
- * Date and time when the API key was last modified
81
- */
82
- updated_at: string;
83
- }
84
- /**
85
- * Information about the authenticated user
86
- */
87
- interface OrgMember {
88
- /**
89
- * UUID identifier for the organization member
90
- */
91
- id: string;
92
- /**
93
- * Email address of the authenticated user
94
- */
95
- email: string;
96
- /**
97
- * Display name of the authenticated user
98
- */
99
- name: string;
100
- /**
101
- * Access role of the authenticated user within the organization
102
- */
103
- role: string;
104
- }
105
- /**
106
- * Details of the current active project (null if accessing with org-level
107
- * credentials)
108
- */
109
- interface Project {
110
- /**
111
- * UUID identifier for the project
112
- */
113
- id: string;
114
- /**
115
- * Internal auto-incrementing ID for the project
116
- */
117
- auto_id: number;
118
- /**
119
- * Date and time when the project was created
120
- */
121
- created_at: string;
122
- /**
123
- * Flag indicating if the project has been deleted
124
- */
125
- deleted: boolean;
126
- /**
127
- * Email address used for project notifications
128
- */
129
- email: string;
130
- /**
131
- * Endpoint URL for event webhook notifications
132
- */
133
- event_webhook_url: string | null;
134
- /**
135
- * Flag indicating if the project uses the new webhook format
136
- */
137
- is_new_webhook: boolean;
138
- /**
139
- * Date and time when the project last subscribed to updates
140
- */
141
- last_subscribed_at: string | null;
142
- /**
143
- * User-defined name for the project
144
- */
145
- name: string;
146
- /**
147
- * Short, URL-friendly unique identifier for the project
148
- */
149
- nano_id: string;
150
- /**
151
- * Organization details including members
152
- */
153
- org: Project.Org;
154
- /**
155
- * Organization UUID that this project belongs to
156
- */
157
- org_id: string;
158
- /**
159
- * Flag indicating if triggers are enabled for this project
160
- */
161
- triggers_enabled: boolean;
162
- /**
163
- * Date and time when the project was last modified
164
- */
165
- updated_at: string;
166
- /**
167
- * Secret used to verify webhook signatures
168
- */
169
- webhook_secret: string | null;
170
- /**
171
- * Endpoint URL for trigger webhook notifications
172
- */
173
- webhook_url: string | null;
174
- }
175
- namespace Project {
176
- /**
177
- * Organization details including members
178
- */
179
- interface Org {
180
- /**
181
- * Short, URL-friendly unique identifier for the organization
182
- */
183
- id: string;
184
- /**
185
- * User-defined name for the organization
186
- */
187
- name: string;
188
- /**
189
- * Array of members belonging to this organization
190
- */
191
- org_members: Array<Org.OrgMember>;
192
- /**
193
- * Current subscription plan level
194
- */
195
- plan: string;
196
- }
197
- namespace Org {
198
- interface OrgMember {
199
- /**
200
- * UUID identifier for the organization member
201
- */
202
- id: string;
203
- /**
204
- * Internal auto-incrementing ID for the organization member
205
- */
206
- auto_id: number;
207
- /**
208
- * Date and time when the member was added to the organization
209
- */
210
- created_at: string;
211
- /**
212
- * Date and time when the member was removed from the organization (if applicable)
213
- */
214
- deleted_at: string | null;
215
- /**
216
- * Email address of the organization member
217
- */
218
- email: string;
219
- /**
220
- * User-defined name for the organization member
221
- */
222
- name: string;
223
- /**
224
- * Organization UUID that this member belongs to
225
- */
226
- org_id: string;
227
- /**
228
- * Access role of the member within the organization
229
- */
230
- role: string;
231
- /**
232
- * Date and time when the member was last modified
233
- */
234
- updated_at: string;
235
- /**
236
- * Optional custom metadata for the organization member
237
- */
238
- metadata?: unknown;
239
- }
240
- }
241
- }
242
- }
243
- export declare namespace Session {
244
- export { type SessionRetrieveInfoResponse as SessionRetrieveInfoResponse };
245
- }
246
- //# sourceMappingURL=session.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/resources/v3/auth/session.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE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;gBAEd;;mBAEG;gBACH,IAAI,EAAE,MAAM,CAAC;gBAEb;;mBAEG;gBACH,MAAM,EAAE,MAAM,CAAC;gBAEf;;mBAEG;gBACH,IAAI,EAAE,MAAM,CAAC;gBAEb;;mBAEG;gBACH,UAAU,EAAE,MAAM,CAAC;gBAEnB;;mBAEG;gBACH,QAAQ,CAAC,EAAE,OAAO,CAAC;aACpB;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
@@ -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.Session = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- class Session extends resource_1.APIResource {
7
- /**
8
- * Retrieves detailed information about the current authenticated user session,
9
- * including project details, organization membership, and API key information if
10
- * applicable. This endpoint is useful for verifying authentication status and
11
- * retrieving contextual information about the authenticated user and their access
12
- * privileges.
13
- *
14
- * @example
15
- * ```ts
16
- * const response =
17
- * await client.v3.auth.session.retrieveInfo();
18
- * ```
19
- */
20
- retrieveInfo(options) {
21
- return this._client.get('/api/v3/auth/session/info', options);
22
- }
23
- }
24
- exports.Session = Session;
25
- //# sourceMappingURL=session.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/resources/v3/auth/session.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAjBD,0BAiBC"}
@@ -1,21 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- export class Session extends APIResource {
4
- /**
5
- * Retrieves detailed information about the current authenticated user session,
6
- * including project details, organization membership, and API key information if
7
- * applicable. This endpoint is useful for verifying authentication status and
8
- * retrieving contextual information about the authenticated user and their access
9
- * privileges.
10
- *
11
- * @example
12
- * ```ts
13
- * const response =
14
- * await client.v3.auth.session.retrieveInfo();
15
- * ```
16
- */
17
- retrieveInfo(options) {
18
- return this._client.get('/api/v3/auth/session/info', options);
19
- }
20
- }
21
- //# sourceMappingURL=session.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.mjs","sourceRoot":"","sources":["../../../src/resources/v3/auth/session.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./auth/index.mjs";
2
- //# sourceMappingURL=auth.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../src/resources/v3/auth.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./auth/index.js";
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/v3/auth.ts"],"names":[],"mappings":""}
@@ -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("./auth/index.js"), exports);
6
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/resources/v3/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./auth/index.mjs";
3
- //# sourceMappingURL=auth.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../src/resources/v3/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,167 +0,0 @@
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
- * @example
12
- * ```ts
13
- * const response = await client.v3.cli.createSession();
14
- * ```
15
- */
16
- createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
17
- /**
18
- * Links a pending CLI session to the currently authenticated user. This is the
19
- * final step in the CLI authentication flow, where the user enters the code in the
20
- * web interface and their account is associated with the CLI session, allowing the
21
- * CLI to act on their behalf.
22
- *
23
- * @example
24
- * ```ts
25
- * const response = await client.v3.cli.linkSession({
26
- * id: 'ABC123',
27
- * });
28
- * ```
29
- */
30
- linkSession(body: CliLinkSessionParams, options?: RequestOptions): APIPromise<CliLinkSessionResponse>;
31
- /**
32
- * Retrieves the current state of a CLI session using either the session ID (UUID)
33
- * or the 6-character code. This endpoint is used by both the CLI client to check
34
- * if the session has been linked, and by the web interface to display session
35
- * details before linking.
36
- *
37
- * @example
38
- * ```ts
39
- * const response = await client.v3.cli.retrieveSession({
40
- * id: 'ABC123',
41
- * });
42
- * ```
43
- */
44
- retrieveSession(query: CliRetrieveSessionParams, options?: RequestOptions): APIPromise<CliRetrieveSessionResponse>;
45
- }
46
- export interface CliCreateSessionResponse {
47
- /**
48
- * Unique identifier for the CLI session. UUID v4 format used for tracking and
49
- * retrieval.
50
- */
51
- id: string;
52
- /**
53
- * The 6-character hexadecimal code used for CLI login
54
- */
55
- code: string;
56
- /**
57
- * The ISO timestamp when the session expires
58
- */
59
- expiresAt: string;
60
- /**
61
- * The current status of the session
62
- */
63
- status: 'pending' | 'linked';
64
- }
65
- export interface CliLinkSessionResponse {
66
- /**
67
- * The unique identifier for the CLI session
68
- */
69
- id: string;
70
- /**
71
- * Information about the linked account. Always present for successful responses
72
- * from this endpoint.
73
- */
74
- account: CliLinkSessionResponse.Account;
75
- /**
76
- * The 6-character hexadecimal code used for CLI login
77
- */
78
- code: string;
79
- /**
80
- * The ISO timestamp when the session expires
81
- */
82
- expiresAt: string;
83
- /**
84
- * The current status of the session
85
- */
86
- status: 'pending' | 'linked';
87
- }
88
- export declare namespace CliLinkSessionResponse {
89
- /**
90
- * Information about the linked account. Always present for successful responses
91
- * from this endpoint.
92
- */
93
- interface Account {
94
- /**
95
- * The ID of the linked account
96
- */
97
- id: string;
98
- /**
99
- * The email address of the linked account
100
- */
101
- email: string;
102
- /**
103
- * The display name of the linked account
104
- */
105
- name: string;
106
- }
107
- }
108
- export interface CliRetrieveSessionResponse {
109
- /**
110
- * The unique identifier for the CLI session
111
- */
112
- id: string;
113
- /**
114
- * Information about the linked account, if any. Null if the session status is
115
- * "pending".
116
- */
117
- account: CliRetrieveSessionResponse.Account | null;
118
- /**
119
- * The 6-character hexadecimal code used for CLI login
120
- */
121
- code: string;
122
- /**
123
- * The ISO timestamp when the session expires
124
- */
125
- expiresAt: string;
126
- /**
127
- * The current status of the session
128
- */
129
- status: 'pending' | 'linked';
130
- }
131
- export declare namespace CliRetrieveSessionResponse {
132
- /**
133
- * Information about the linked account, if any. Null if the session status is
134
- * "pending".
135
- */
136
- interface Account {
137
- /**
138
- * The ID of the linked account
139
- */
140
- id: string;
141
- /**
142
- * The email address of the linked account
143
- */
144
- email: string;
145
- /**
146
- * The display name of the linked account
147
- */
148
- name: string;
149
- }
150
- }
151
- export interface CliLinkSessionParams {
152
- /**
153
- * The CLI session ID or code to link to the current user
154
- */
155
- id: string;
156
- }
157
- export interface CliRetrieveSessionParams {
158
- /**
159
- * CLI session ID (UUID format) or 6-character code to check. Both formats are
160
- * supported for flexibility in client implementations.
161
- */
162
- id: string;
163
- }
164
- export declare namespace Cli {
165
- export { type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
166
- }
167
- //# sourceMappingURL=cli.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.mts","sourceRoot":"","sources":["../../src/resources/v3/cli.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI7E;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIrG;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;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;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D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1,167 +0,0 @@
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
- * @example
12
- * ```ts
13
- * const response = await client.v3.cli.createSession();
14
- * ```
15
- */
16
- createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
17
- /**
18
- * Links a pending CLI session to the currently authenticated user. This is the
19
- * final step in the CLI authentication flow, where the user enters the code in the
20
- * web interface and their account is associated with the CLI session, allowing the
21
- * CLI to act on their behalf.
22
- *
23
- * @example
24
- * ```ts
25
- * const response = await client.v3.cli.linkSession({
26
- * id: 'ABC123',
27
- * });
28
- * ```
29
- */
30
- linkSession(body: CliLinkSessionParams, options?: RequestOptions): APIPromise<CliLinkSessionResponse>;
31
- /**
32
- * Retrieves the current state of a CLI session using either the session ID (UUID)
33
- * or the 6-character code. This endpoint is used by both the CLI client to check
34
- * if the session has been linked, and by the web interface to display session
35
- * details before linking.
36
- *
37
- * @example
38
- * ```ts
39
- * const response = await client.v3.cli.retrieveSession({
40
- * id: 'ABC123',
41
- * });
42
- * ```
43
- */
44
- retrieveSession(query: CliRetrieveSessionParams, options?: RequestOptions): APIPromise<CliRetrieveSessionResponse>;
45
- }
46
- export interface CliCreateSessionResponse {
47
- /**
48
- * Unique identifier for the CLI session. UUID v4 format used for tracking and
49
- * retrieval.
50
- */
51
- id: string;
52
- /**
53
- * The 6-character hexadecimal code used for CLI login
54
- */
55
- code: string;
56
- /**
57
- * The ISO timestamp when the session expires
58
- */
59
- expiresAt: string;
60
- /**
61
- * The current status of the session
62
- */
63
- status: 'pending' | 'linked';
64
- }
65
- export interface CliLinkSessionResponse {
66
- /**
67
- * The unique identifier for the CLI session
68
- */
69
- id: string;
70
- /**
71
- * Information about the linked account. Always present for successful responses
72
- * from this endpoint.
73
- */
74
- account: CliLinkSessionResponse.Account;
75
- /**
76
- * The 6-character hexadecimal code used for CLI login
77
- */
78
- code: string;
79
- /**
80
- * The ISO timestamp when the session expires
81
- */
82
- expiresAt: string;
83
- /**
84
- * The current status of the session
85
- */
86
- status: 'pending' | 'linked';
87
- }
88
- export declare namespace CliLinkSessionResponse {
89
- /**
90
- * Information about the linked account. Always present for successful responses
91
- * from this endpoint.
92
- */
93
- interface Account {
94
- /**
95
- * The ID of the linked account
96
- */
97
- id: string;
98
- /**
99
- * The email address of the linked account
100
- */
101
- email: string;
102
- /**
103
- * The display name of the linked account
104
- */
105
- name: string;
106
- }
107
- }
108
- export interface CliRetrieveSessionResponse {
109
- /**
110
- * The unique identifier for the CLI session
111
- */
112
- id: string;
113
- /**
114
- * Information about the linked account, if any. Null if the session status is
115
- * "pending".
116
- */
117
- account: CliRetrieveSessionResponse.Account | null;
118
- /**
119
- * The 6-character hexadecimal code used for CLI login
120
- */
121
- code: string;
122
- /**
123
- * The ISO timestamp when the session expires
124
- */
125
- expiresAt: string;
126
- /**
127
- * The current status of the session
128
- */
129
- status: 'pending' | 'linked';
130
- }
131
- export declare namespace CliRetrieveSessionResponse {
132
- /**
133
- * Information about the linked account, if any. Null if the session status is
134
- * "pending".
135
- */
136
- interface Account {
137
- /**
138
- * The ID of the linked account
139
- */
140
- id: string;
141
- /**
142
- * The email address of the linked account
143
- */
144
- email: string;
145
- /**
146
- * The display name of the linked account
147
- */
148
- name: string;
149
- }
150
- }
151
- export interface CliLinkSessionParams {
152
- /**
153
- * The CLI session ID or code to link to the current user
154
- */
155
- id: string;
156
- }
157
- export interface CliRetrieveSessionParams {
158
- /**
159
- * CLI session ID (UUID format) or 6-character code to check. Both formats are
160
- * supported for flexibility in client implementations.
161
- */
162
- id: string;
163
- }
164
- export declare namespace Cli {
165
- export { type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
166
- }
167
- //# sourceMappingURL=cli.d.ts.map