@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.
- package/CHANGELOG.md +36 -0
- package/client.d.mts +7 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -5
- package/client.d.ts.map +1 -1
- package/client.js +4 -10
- package/client.js.map +1 -1
- package/client.mjs +4 -10
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +42 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +42 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/types.d.mts +8 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +26 -5
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +26 -5
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +22 -4
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +22 -4
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/{v3/cli.d.mts → cli.d.mts} +36 -36
- package/resources/cli.d.mts.map +1 -0
- package/resources/{v3/cli.d.ts → cli.d.ts} +36 -36
- package/resources/cli.d.ts.map +1 -0
- package/resources/{v3/cli.js → cli.js} +16 -16
- package/resources/cli.js.map +1 -0
- package/resources/{v3/cli.mjs → cli.mjs} +16 -16
- package/resources/cli.mjs.map +1 -0
- package/resources/connected-accounts.d.mts +2153 -633
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +2153 -633
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +7 -2
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +7 -2
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +14 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +14 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +5 -9
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +5 -9
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +1 -1
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/toolkits.d.mts +17 -2
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +17 -2
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +9 -4
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +9 -4
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +12 -3
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +12 -3
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts +8 -3
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +8 -3
- package/resources/triggers-types.d.ts.map +1 -1
- package/src/client.ts +23 -14
- package/src/internal/request-options.ts +53 -0
- package/src/internal/types.ts +9 -6
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +32 -7
- package/src/resources/auth-configs.ts +27 -4
- package/src/resources/{v3/cli.ts → cli.ts} +39 -42
- package/src/resources/connected-accounts.ts +4045 -1211
- package/src/resources/files.ts +18 -1
- package/src/resources/index.ts +9 -1
- package/src/resources/mcp/mcp.ts +6 -11
- package/src/resources/toolkits.ts +23 -2
- package/src/resources/tools.ts +11 -4
- package/src/resources/trigger-instances/trigger-instances.ts +15 -3
- package/src/resources/triggers-types.ts +10 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v3/auth/auth.d.mts +0 -10
- package/resources/v3/auth/auth.d.mts.map +0 -1
- package/resources/v3/auth/auth.d.ts +0 -10
- package/resources/v3/auth/auth.d.ts.map +0 -1
- package/resources/v3/auth/auth.js +0 -17
- package/resources/v3/auth/auth.js.map +0 -1
- package/resources/v3/auth/auth.mjs +0 -12
- package/resources/v3/auth/auth.mjs.map +0 -1
- package/resources/v3/auth/index.d.mts +0 -3
- package/resources/v3/auth/index.d.mts.map +0 -1
- package/resources/v3/auth/index.d.ts +0 -3
- package/resources/v3/auth/index.d.ts.map +0 -1
- package/resources/v3/auth/index.js +0 -9
- package/resources/v3/auth/index.js.map +0 -1
- package/resources/v3/auth/index.mjs +0 -4
- package/resources/v3/auth/index.mjs.map +0 -1
- package/resources/v3/auth/session.d.mts +0 -246
- package/resources/v3/auth/session.d.mts.map +0 -1
- package/resources/v3/auth/session.d.ts +0 -246
- package/resources/v3/auth/session.d.ts.map +0 -1
- package/resources/v3/auth/session.js +0 -25
- package/resources/v3/auth/session.js.map +0 -1
- package/resources/v3/auth/session.mjs +0 -21
- package/resources/v3/auth/session.mjs.map +0 -1
- package/resources/v3/auth.d.mts +0 -2
- package/resources/v3/auth.d.mts.map +0 -1
- package/resources/v3/auth.d.ts +0 -2
- package/resources/v3/auth.d.ts.map +0 -1
- package/resources/v3/auth.js +0 -6
- package/resources/v3/auth.js.map +0 -1
- package/resources/v3/auth.mjs +0 -3
- package/resources/v3/auth.mjs.map +0 -1
- package/resources/v3/cli.d.mts.map +0 -1
- package/resources/v3/cli.d.ts.map +0 -1
- package/resources/v3/cli.js.map +0 -1
- package/resources/v3/cli.mjs.map +0 -1
- package/resources/v3/index.d.mts +0 -5
- package/resources/v3/index.d.mts.map +0 -1
- package/resources/v3/index.d.ts +0 -5
- package/resources/v3/index.d.ts.map +0 -1
- package/resources/v3/index.js +0 -13
- package/resources/v3/index.js.map +0 -1
- package/resources/v3/index.mjs +0 -6
- package/resources/v3/index.mjs.map +0 -1
- package/resources/v3/internal/action-execution.d.mts +0 -169
- package/resources/v3/internal/action-execution.d.mts.map +0 -1
- package/resources/v3/internal/action-execution.d.ts +0 -169
- package/resources/v3/internal/action-execution.d.ts.map +0 -1
- package/resources/v3/internal/action-execution.js +0 -38
- package/resources/v3/internal/action-execution.js.map +0 -1
- package/resources/v3/internal/action-execution.mjs +0 -34
- package/resources/v3/internal/action-execution.mjs.map +0 -1
- package/resources/v3/internal/index.d.mts +0 -4
- package/resources/v3/internal/index.d.mts.map +0 -1
- package/resources/v3/internal/index.d.ts +0 -4
- package/resources/v3/internal/index.d.ts.map +0 -1
- package/resources/v3/internal/index.js +0 -11
- package/resources/v3/internal/index.js.map +0 -1
- package/resources/v3/internal/index.mjs +0 -5
- package/resources/v3/internal/index.mjs.map +0 -1
- package/resources/v3/internal/internal.d.mts +0 -14
- package/resources/v3/internal/internal.d.mts.map +0 -1
- package/resources/v3/internal/internal.d.ts +0 -14
- package/resources/v3/internal/internal.d.ts.map +0 -1
- package/resources/v3/internal/internal.js +0 -21
- package/resources/v3/internal/internal.js.map +0 -1
- package/resources/v3/internal/internal.mjs +0 -16
- package/resources/v3/internal/internal.mjs.map +0 -1
- package/resources/v3/internal/trigger.d.mts +0 -84
- package/resources/v3/internal/trigger.d.mts.map +0 -1
- package/resources/v3/internal/trigger.d.ts +0 -84
- package/resources/v3/internal/trigger.d.ts.map +0 -1
- package/resources/v3/internal/trigger.js +0 -23
- package/resources/v3/internal/trigger.js.map +0 -1
- package/resources/v3/internal/trigger.mjs +0 -19
- package/resources/v3/internal/trigger.mjs.map +0 -1
- package/resources/v3/internal.d.mts +0 -2
- package/resources/v3/internal.d.mts.map +0 -1
- package/resources/v3/internal.d.ts +0 -2
- package/resources/v3/internal.d.ts.map +0 -1
- package/resources/v3/internal.js +0 -6
- package/resources/v3/internal.js.map +0 -1
- package/resources/v3/internal.mjs +0 -3
- package/resources/v3/internal.mjs.map +0 -1
- package/resources/v3/v3.d.mts +0 -18
- package/resources/v3/v3.d.mts.map +0 -1
- package/resources/v3/v3.d.ts +0 -18
- package/resources/v3/v3.d.ts.map +0 -1
- package/resources/v3/v3.js +0 -25
- package/resources/v3/v3.js.map +0 -1
- package/resources/v3/v3.mjs +0 -20
- package/resources/v3/v3.mjs.map +0 -1
- package/resources/v3.d.mts +0 -2
- package/resources/v3.d.mts.map +0 -1
- package/resources/v3.d.ts +0 -2
- package/resources/v3.d.ts.map +0 -1
- package/resources/v3.js +0 -6
- package/resources/v3.js.map +0 -1
- package/resources/v3.mjs +0 -3
- package/resources/v3.mjs.map +0 -1
- package/src/resources/v3/auth/auth.ts +0 -15
- package/src/resources/v3/auth/index.ts +0 -4
- package/src/resources/v3/auth/session.ts +0 -298
- package/src/resources/v3/auth.ts +0 -3
- package/src/resources/v3/index.ts +0 -13
- package/src/resources/v3/internal/action-execution.ts +0 -236
- package/src/resources/v3/internal/index.ts +0 -10
- package/src/resources/v3/internal/internal.ts +0 -35
- package/src/resources/v3/internal/trigger.ts +0 -122
- package/src/resources/v3/internal.ts +0 -3
- package/src/resources/v3/v3.ts +0 -41
- package/src/resources/v3.ts +0 -3
|
@@ -1 +1 @@
|
|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AK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -212,9 +212,11 @@ export declare namespace AuthConfigRetrieveResponse {
|
|
|
212
212
|
}
|
|
213
213
|
export type AuthConfigUpdateResponse = unknown;
|
|
214
214
|
export interface AuthConfigListResponse {
|
|
215
|
+
current_page: number;
|
|
215
216
|
items: Array<AuthConfigListResponse.Item>;
|
|
216
|
-
|
|
217
|
+
total_items: number;
|
|
217
218
|
total_pages: number;
|
|
219
|
+
next_cursor?: string | null;
|
|
218
220
|
}
|
|
219
221
|
export declare namespace AuthConfigListResponse {
|
|
220
222
|
interface Item {
|
|
@@ -334,7 +336,7 @@ export interface AuthConfigCreateParams {
|
|
|
334
336
|
export declare namespace AuthConfigCreateParams {
|
|
335
337
|
interface Toolkit {
|
|
336
338
|
/**
|
|
337
|
-
*
|
|
339
|
+
* Toolkit slug to create auth config for
|
|
338
340
|
*/
|
|
339
341
|
slug: string;
|
|
340
342
|
}
|
|
@@ -362,11 +364,24 @@ export declare namespace AuthConfigCreateParams {
|
|
|
362
364
|
* The name of the integration
|
|
363
365
|
*/
|
|
364
366
|
name?: string;
|
|
367
|
+
proxy_config?: UnionMember1.ProxyConfig;
|
|
365
368
|
/**
|
|
366
369
|
* The actions that the user can perform on the auth config
|
|
367
370
|
*/
|
|
368
371
|
restrict_to_following_tools?: Array<string>;
|
|
369
372
|
}
|
|
373
|
+
namespace UnionMember1 {
|
|
374
|
+
interface ProxyConfig {
|
|
375
|
+
/**
|
|
376
|
+
* The url of the auth proxy
|
|
377
|
+
*/
|
|
378
|
+
proxy_url: string;
|
|
379
|
+
/**
|
|
380
|
+
* The auth key for the auth proxy
|
|
381
|
+
*/
|
|
382
|
+
proxy_auth_key?: string;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
370
385
|
}
|
|
371
386
|
export type AuthConfigUpdateParams = AuthConfigUpdateParams.Variant0 | AuthConfigUpdateParams.Variant1;
|
|
372
387
|
export declare namespace AuthConfigUpdateParams {
|
|
@@ -385,7 +400,10 @@ export declare namespace AuthConfigUpdateParams {
|
|
|
385
400
|
}
|
|
386
401
|
export interface AuthConfigListParams {
|
|
387
402
|
/**
|
|
388
|
-
* The cursor
|
|
403
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
404
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
405
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
406
|
+
* required for the first page.
|
|
389
407
|
*/
|
|
390
408
|
cursor?: string;
|
|
391
409
|
/**
|
|
@@ -398,7 +416,7 @@ export interface AuthConfigListParams {
|
|
|
398
416
|
*/
|
|
399
417
|
is_composio_managed?: string | boolean;
|
|
400
418
|
/**
|
|
401
|
-
*
|
|
419
|
+
* Number of items per page
|
|
402
420
|
*/
|
|
403
421
|
limit?: number | null;
|
|
404
422
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-configs.d.ts","sourceRoot":"","sources":["../src/resources/auth-configs.ts"],"names":[],"mappings":"OAEO,EAAE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;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Cli extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
@@ -10,38 +10,38 @@ export declare class Cli extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const response = await client.
|
|
13
|
+
* const response = await client.cli.createSession();
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
19
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
20
|
+
* if the session has been linked, and by the web interface to display session
|
|
21
|
+
* details before linking.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```ts
|
|
25
|
-
* const response = await client.
|
|
25
|
+
* const response = await client.cli.getSession({
|
|
26
26
|
* id: 'ABC123',
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* Links a pending CLI session to the currently authenticated user. This is the
|
|
33
|
+
* final step in the CLI authentication flow, where the user enters the code in the
|
|
34
|
+
* web interface and their account is associated with the CLI session, allowing the
|
|
35
|
+
* CLI to act on their behalf.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* ```ts
|
|
39
|
-
* const response = await client.
|
|
39
|
+
* const response = await client.cli.linkSession({
|
|
40
40
|
* id: 'ABC123',
|
|
41
41
|
* });
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
linkSession(body: CliLinkSessionParams, options?: RequestOptions): APIPromise<CliLinkSessionResponse>;
|
|
45
45
|
}
|
|
46
46
|
export interface CliCreateSessionResponse {
|
|
47
47
|
/**
|
|
@@ -62,16 +62,16 @@ export interface CliCreateSessionResponse {
|
|
|
62
62
|
*/
|
|
63
63
|
status: 'pending' | 'linked';
|
|
64
64
|
}
|
|
65
|
-
export interface
|
|
65
|
+
export interface CliGetSessionResponse {
|
|
66
66
|
/**
|
|
67
67
|
* The unique identifier for the CLI session
|
|
68
68
|
*/
|
|
69
69
|
id: string;
|
|
70
70
|
/**
|
|
71
|
-
* Information about the linked account.
|
|
72
|
-
*
|
|
71
|
+
* Information about the linked account, if any. Null if the session status is
|
|
72
|
+
* "pending".
|
|
73
73
|
*/
|
|
74
|
-
account:
|
|
74
|
+
account: CliGetSessionResponse.Account | null;
|
|
75
75
|
/**
|
|
76
76
|
* The 6-character hexadecimal code used for CLI login
|
|
77
77
|
*/
|
|
@@ -85,10 +85,10 @@ export interface CliLinkSessionResponse {
|
|
|
85
85
|
*/
|
|
86
86
|
status: 'pending' | 'linked';
|
|
87
87
|
}
|
|
88
|
-
export declare namespace
|
|
88
|
+
export declare namespace CliGetSessionResponse {
|
|
89
89
|
/**
|
|
90
|
-
* Information about the linked account.
|
|
91
|
-
*
|
|
90
|
+
* Information about the linked account, if any. Null if the session status is
|
|
91
|
+
* "pending".
|
|
92
92
|
*/
|
|
93
93
|
interface Account {
|
|
94
94
|
/**
|
|
@@ -105,16 +105,16 @@ export declare namespace CliLinkSessionResponse {
|
|
|
105
105
|
name: string;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
export interface
|
|
108
|
+
export interface CliLinkSessionResponse {
|
|
109
109
|
/**
|
|
110
110
|
* The unique identifier for the CLI session
|
|
111
111
|
*/
|
|
112
112
|
id: string;
|
|
113
113
|
/**
|
|
114
|
-
* Information about the linked account
|
|
115
|
-
*
|
|
114
|
+
* Information about the linked account. Always present for successful responses
|
|
115
|
+
* from this endpoint.
|
|
116
116
|
*/
|
|
117
|
-
account:
|
|
117
|
+
account: CliLinkSessionResponse.Account;
|
|
118
118
|
/**
|
|
119
119
|
* The 6-character hexadecimal code used for CLI login
|
|
120
120
|
*/
|
|
@@ -128,10 +128,10 @@ export interface CliRetrieveSessionResponse {
|
|
|
128
128
|
*/
|
|
129
129
|
status: 'pending' | 'linked';
|
|
130
130
|
}
|
|
131
|
-
export declare namespace
|
|
131
|
+
export declare namespace CliLinkSessionResponse {
|
|
132
132
|
/**
|
|
133
|
-
* Information about the linked account
|
|
134
|
-
*
|
|
133
|
+
* Information about the linked account. Always present for successful responses
|
|
134
|
+
* from this endpoint.
|
|
135
135
|
*/
|
|
136
136
|
interface Account {
|
|
137
137
|
/**
|
|
@@ -148,20 +148,20 @@ export declare namespace CliRetrieveSessionResponse {
|
|
|
148
148
|
name: string;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
export interface
|
|
151
|
+
export interface CliGetSessionParams {
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* CLI session ID (UUID format) or 6-character code to check. Both formats are
|
|
154
|
+
* supported for flexibility in client implementations.
|
|
154
155
|
*/
|
|
155
156
|
id: string;
|
|
156
157
|
}
|
|
157
|
-
export interface
|
|
158
|
+
export interface CliLinkSessionParams {
|
|
158
159
|
/**
|
|
159
|
-
* CLI session ID
|
|
160
|
-
* supported for flexibility in client implementations.
|
|
160
|
+
* The CLI session ID or code to link to the current user
|
|
161
161
|
*/
|
|
162
162
|
id: string;
|
|
163
163
|
}
|
|
164
164
|
export declare namespace Cli {
|
|
165
|
-
export { type CliCreateSessionResponse as CliCreateSessionResponse, type
|
|
165
|
+
export { type CliCreateSessionResponse as CliCreateSessionResponse, type CliGetSessionResponse as CliGetSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliGetSessionParams as CliGetSessionParams, type CliLinkSessionParams as CliLinkSessionParams, };
|
|
166
166
|
}
|
|
167
167
|
//# sourceMappingURL=cli.d.mts.map
|
|
@@ -0,0 +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;;;;;;;;;;OAUG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI7E;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAInG;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,IAAI,E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CAAC;KACd;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;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,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class Cli extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
@@ -10,38 +10,38 @@ export declare class Cli extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const response = await client.
|
|
13
|
+
* const response = await client.cli.createSession();
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
19
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
20
|
+
* if the session has been linked, and by the web interface to display session
|
|
21
|
+
* details before linking.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```ts
|
|
25
|
-
* const response = await client.
|
|
25
|
+
* const response = await client.cli.getSession({
|
|
26
26
|
* id: 'ABC123',
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* Links a pending CLI session to the currently authenticated user. This is the
|
|
33
|
+
* final step in the CLI authentication flow, where the user enters the code in the
|
|
34
|
+
* web interface and their account is associated with the CLI session, allowing the
|
|
35
|
+
* CLI to act on their behalf.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* ```ts
|
|
39
|
-
* const response = await client.
|
|
39
|
+
* const response = await client.cli.linkSession({
|
|
40
40
|
* id: 'ABC123',
|
|
41
41
|
* });
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
linkSession(body: CliLinkSessionParams, options?: RequestOptions): APIPromise<CliLinkSessionResponse>;
|
|
45
45
|
}
|
|
46
46
|
export interface CliCreateSessionResponse {
|
|
47
47
|
/**
|
|
@@ -62,16 +62,16 @@ export interface CliCreateSessionResponse {
|
|
|
62
62
|
*/
|
|
63
63
|
status: 'pending' | 'linked';
|
|
64
64
|
}
|
|
65
|
-
export interface
|
|
65
|
+
export interface CliGetSessionResponse {
|
|
66
66
|
/**
|
|
67
67
|
* The unique identifier for the CLI session
|
|
68
68
|
*/
|
|
69
69
|
id: string;
|
|
70
70
|
/**
|
|
71
|
-
* Information about the linked account.
|
|
72
|
-
*
|
|
71
|
+
* Information about the linked account, if any. Null if the session status is
|
|
72
|
+
* "pending".
|
|
73
73
|
*/
|
|
74
|
-
account:
|
|
74
|
+
account: CliGetSessionResponse.Account | null;
|
|
75
75
|
/**
|
|
76
76
|
* The 6-character hexadecimal code used for CLI login
|
|
77
77
|
*/
|
|
@@ -85,10 +85,10 @@ export interface CliLinkSessionResponse {
|
|
|
85
85
|
*/
|
|
86
86
|
status: 'pending' | 'linked';
|
|
87
87
|
}
|
|
88
|
-
export declare namespace
|
|
88
|
+
export declare namespace CliGetSessionResponse {
|
|
89
89
|
/**
|
|
90
|
-
* Information about the linked account.
|
|
91
|
-
*
|
|
90
|
+
* Information about the linked account, if any. Null if the session status is
|
|
91
|
+
* "pending".
|
|
92
92
|
*/
|
|
93
93
|
interface Account {
|
|
94
94
|
/**
|
|
@@ -105,16 +105,16 @@ export declare namespace CliLinkSessionResponse {
|
|
|
105
105
|
name: string;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
export interface
|
|
108
|
+
export interface CliLinkSessionResponse {
|
|
109
109
|
/**
|
|
110
110
|
* The unique identifier for the CLI session
|
|
111
111
|
*/
|
|
112
112
|
id: string;
|
|
113
113
|
/**
|
|
114
|
-
* Information about the linked account
|
|
115
|
-
*
|
|
114
|
+
* Information about the linked account. Always present for successful responses
|
|
115
|
+
* from this endpoint.
|
|
116
116
|
*/
|
|
117
|
-
account:
|
|
117
|
+
account: CliLinkSessionResponse.Account;
|
|
118
118
|
/**
|
|
119
119
|
* The 6-character hexadecimal code used for CLI login
|
|
120
120
|
*/
|
|
@@ -128,10 +128,10 @@ export interface CliRetrieveSessionResponse {
|
|
|
128
128
|
*/
|
|
129
129
|
status: 'pending' | 'linked';
|
|
130
130
|
}
|
|
131
|
-
export declare namespace
|
|
131
|
+
export declare namespace CliLinkSessionResponse {
|
|
132
132
|
/**
|
|
133
|
-
* Information about the linked account
|
|
134
|
-
*
|
|
133
|
+
* Information about the linked account. Always present for successful responses
|
|
134
|
+
* from this endpoint.
|
|
135
135
|
*/
|
|
136
136
|
interface Account {
|
|
137
137
|
/**
|
|
@@ -148,20 +148,20 @@ export declare namespace CliRetrieveSessionResponse {
|
|
|
148
148
|
name: string;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
export interface
|
|
151
|
+
export interface CliGetSessionParams {
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* CLI session ID (UUID format) or 6-character code to check. Both formats are
|
|
154
|
+
* supported for flexibility in client implementations.
|
|
154
155
|
*/
|
|
155
156
|
id: string;
|
|
156
157
|
}
|
|
157
|
-
export interface
|
|
158
|
+
export interface CliLinkSessionParams {
|
|
158
159
|
/**
|
|
159
|
-
* CLI session ID
|
|
160
|
-
* supported for flexibility in client implementations.
|
|
160
|
+
* The CLI session ID or code to link to the current user
|
|
161
161
|
*/
|
|
162
162
|
id: string;
|
|
163
163
|
}
|
|
164
164
|
export declare namespace Cli {
|
|
165
|
-
export { type CliCreateSessionResponse as CliCreateSessionResponse, type
|
|
165
|
+
export { type CliCreateSessionResponse as CliCreateSessionResponse, type CliGetSessionResponse as CliGetSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliGetSessionParams as CliGetSessionParams, type CliLinkSessionParams as CliLinkSessionParams, };
|
|
166
166
|
}
|
|
167
167
|
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;OAUG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI7E;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAInG;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGtG;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,EAAE,EAAE,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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,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Cli = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
6
|
class Cli extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
@@ -12,43 +12,43 @@ class Cli extends resource_1.APIResource {
|
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
-
* const response = await client.
|
|
15
|
+
* const response = await client.cli.createSession();
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
createSession(options) {
|
|
19
19
|
return this._client.post('/api/v3/cli/create-session', options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
22
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
23
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
24
|
+
* if the session has been linked, and by the web interface to display session
|
|
25
|
+
* details before linking.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```ts
|
|
29
|
-
* const response = await client.
|
|
29
|
+
* const response = await client.cli.getSession({
|
|
30
30
|
* id: 'ABC123',
|
|
31
31
|
* });
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
|
-
return this._client.
|
|
34
|
+
getSession(query, options) {
|
|
35
|
+
return this._client.get('/api/v3/cli/get-session', { query, ...options });
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
38
|
+
* Links a pending CLI session to the currently authenticated user. This is the
|
|
39
|
+
* final step in the CLI authentication flow, where the user enters the code in the
|
|
40
|
+
* web interface and their account is associated with the CLI session, allowing the
|
|
41
|
+
* CLI to act on their behalf.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```ts
|
|
45
|
-
* const response = await client.
|
|
45
|
+
* const response = await client.cli.linkSession({
|
|
46
46
|
* id: 'ABC123',
|
|
47
47
|
* });
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
|
|
51
|
-
return this._client.
|
|
50
|
+
linkSession(body, options) {
|
|
51
|
+
return this._client.put('/api/v3/cli/link-session', { body, ...options });
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.Cli = Cli;
|
|
@@ -0,0 +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;;;;;;;;;;OAUG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;OAYG;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;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAjDD,kBAiDC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
export class Cli extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
@@ -9,43 +9,43 @@ export class Cli extends APIResource {
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
12
|
-
* const response = await client.
|
|
12
|
+
* const response = await client.cli.createSession();
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
createSession(options) {
|
|
16
16
|
return this._client.post('/api/v3/cli/create-session', options);
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
19
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
20
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
21
|
+
* if the session has been linked, and by the web interface to display session
|
|
22
|
+
* details before linking.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
26
|
-
* const response = await client.
|
|
26
|
+
* const response = await client.cli.getSession({
|
|
27
27
|
* id: 'ABC123',
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
return this._client.
|
|
31
|
+
getSession(query, options) {
|
|
32
|
+
return this._client.get('/api/v3/cli/get-session', { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
35
|
+
* Links a pending CLI session to the currently authenticated user. This is the
|
|
36
|
+
* final step in the CLI authentication flow, where the user enters the code in the
|
|
37
|
+
* web interface and their account is associated with the CLI session, allowing the
|
|
38
|
+
* CLI to act on their behalf.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
42
|
-
* const response = await client.
|
|
42
|
+
* const response = await client.cli.linkSession({
|
|
43
43
|
* id: 'ABC123',
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
|
|
48
|
-
return this._client.
|
|
47
|
+
linkSession(body, options) {
|
|
48
|
+
return this._client.put('/api/v3/cli/link-session', { body, ...options });
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
//# sourceMappingURL=cli.mjs.map
|
|
@@ -0,0 +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;;;;;;;;;;OAUG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;OAYG;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;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|