@composio/client 0.1.0-alpha.56 → 0.1.0-alpha.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/client.d.mts +3 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -2
- package/client.d.ts.map +1 -1
- package/client.js +16 -3
- package/client.js.map +1 -1
- package/client.mjs +16 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +19 -5
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +19 -5
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +8 -2
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +8 -2
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/cli/cli.d.mts +120 -0
- package/resources/cli/cli.d.mts.map +1 -0
- package/resources/cli/cli.d.ts +120 -0
- package/resources/cli/cli.d.ts.map +1 -0
- package/resources/cli/cli.js +36 -0
- package/resources/cli/cli.js.map +1 -0
- package/resources/cli/cli.mjs +31 -0
- package/resources/cli/cli.mjs.map +1 -0
- package/resources/cli/index.d.mts +3 -0
- package/resources/cli/index.d.mts.map +1 -0
- package/resources/cli/index.d.ts +3 -0
- package/resources/cli/index.d.ts.map +1 -0
- package/resources/cli/index.js +9 -0
- package/resources/cli/index.js.map +1 -0
- package/resources/cli/index.mjs +4 -0
- package/resources/cli/index.mjs.map +1 -0
- package/resources/cli/realtime.d.mts +53 -0
- package/resources/cli/realtime.d.mts.map +1 -0
- package/resources/cli/realtime.d.ts +53 -0
- package/resources/cli/realtime.d.ts.map +1 -0
- package/resources/cli/realtime.js +22 -0
- package/resources/cli/realtime.js.map +1 -0
- package/resources/cli/realtime.mjs +18 -0
- package/resources/cli/realtime.mjs.map +1 -0
- package/resources/cli.d.mts +1 -95
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts +1 -95
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.js +2 -23
- package/resources/cli.js.map +1 -1
- package/resources/cli.mjs +1 -21
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +11 -4
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +11 -4
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +9 -2
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +9 -2
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/tool-router/session.d.mts +0 -4
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts +0 -4
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/toolkits.d.mts +0 -8
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +0 -8
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +30 -22
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +30 -22
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +11 -2
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +11 -2
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts +9 -0
- package/resources/trigger-instances/manage.d.mts.map +1 -1
- package/resources/trigger-instances/manage.d.ts +9 -0
- package/resources/trigger-instances/manage.d.ts.map +1 -1
- package/resources/trigger-instances/manage.js +9 -0
- package/resources/trigger-instances/manage.js.map +1 -1
- package/resources/trigger-instances/manage.mjs +9 -0
- package/resources/trigger-instances/manage.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +11 -0
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +11 -0
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +11 -0
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +11 -0
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts +0 -8
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +0 -8
- package/resources/triggers-types.d.ts.map +1 -1
- package/src/client.ts +26 -4
- package/src/internal/parse.ts +6 -0
- package/src/resources/auth-configs.ts +24 -5
- package/src/resources/cli/cli.ts +163 -0
- package/src/resources/cli/index.ts +15 -0
- package/src/resources/cli/realtime.ts +72 -0
- package/src/resources/cli.ts +1 -120
- package/src/resources/connected-accounts.ts +13 -4
- package/src/resources/index.ts +2 -1
- package/src/resources/tool-router/session.ts +0 -5
- package/src/resources/toolkits.ts +0 -10
- package/src/resources/tools.ts +42 -25
- package/src/resources/trigger-instances/manage.ts +9 -0
- package/src/resources/trigger-instances/trigger-instances.ts +11 -0
- package/src/resources/triggers-types.ts +0 -10
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-instances.d.mts","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OAC1E,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D
|
|
1
|
+
{"version":3,"file":"trigger-instances.d.mts","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OAC1E,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;OAUG;IACH,UAAU,CACR,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;CAG7C;AAED,MAAM,WAAW,iCAAiC;IAChD,YAAY,EAAE,MAAM,CAAC;IAErB,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;IAErD,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,yBAAiB,iCAAiC,CAAC;IACjD,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,oBAAoB,EAAE,MAAM,CAAC;QAE7B;;WAEG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;;WAGG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,C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7D;;OAEG;IACH,cAAc,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE5C;;;OAGG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE3C;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -6,6 +6,11 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
6
6
|
export declare class TriggerInstances extends APIResource {
|
|
7
7
|
manage: ManageAPI.Manage;
|
|
8
8
|
/**
|
|
9
|
+
* Retrieves all active trigger instances for your project. Triggers listen for
|
|
10
|
+
* events from connected accounts (e.g., new emails, Slack messages, GitHub
|
|
11
|
+
* commits) and can invoke webhooks or workflows. Use filters to find triggers for
|
|
12
|
+
* specific users, connected accounts, or trigger types.
|
|
13
|
+
*
|
|
9
14
|
* @example
|
|
10
15
|
* ```ts
|
|
11
16
|
* const response = await client.triggerInstances.listActive();
|
|
@@ -13,6 +18,12 @@ export declare class TriggerInstances extends APIResource {
|
|
|
13
18
|
*/
|
|
14
19
|
listActive(query?: TriggerInstanceListActiveParams | null | undefined, options?: RequestOptions): APIPromise<TriggerInstanceListActiveResponse>;
|
|
15
20
|
/**
|
|
21
|
+
* Creates a new trigger instance or updates an existing one with the same
|
|
22
|
+
* configuration. Triggers listen for events from external services (webhooks or
|
|
23
|
+
* polling) and can invoke your workflows. If a matching trigger already exists and
|
|
24
|
+
* is disabled, it will be re-enabled. Requires a connected account ID to associate
|
|
25
|
+
* the trigger with a specific user connection.
|
|
26
|
+
*
|
|
16
27
|
* @example
|
|
17
28
|
* ```ts
|
|
18
29
|
* const response = await client.triggerInstances.upsert(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-instances.d.ts","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OAC1E,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D
|
|
1
|
+
{"version":3,"file":"trigger-instances.d.ts","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OAC1E,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;OAUG;IACH,UAAU,CACR,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6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);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
+
* Retrieves all active trigger instances for your project. Triggers listen for
|
|
17
|
+
* events from connected accounts (e.g., new emails, Slack messages, GitHub
|
|
18
|
+
* commits) and can invoke webhooks or workflows. Use filters to find triggers for
|
|
19
|
+
* specific users, connected accounts, or trigger types.
|
|
20
|
+
*
|
|
16
21
|
* @example
|
|
17
22
|
* ```ts
|
|
18
23
|
* const response = await client.triggerInstances.listActive();
|
|
@@ -22,6 +27,12 @@ class TriggerInstances extends resource_1.APIResource {
|
|
|
22
27
|
return this._client.get('/api/v3/trigger_instances/active', { query, ...options });
|
|
23
28
|
}
|
|
24
29
|
/**
|
|
30
|
+
* Creates a new trigger instance or updates an existing one with the same
|
|
31
|
+
* configuration. Triggers listen for events from external services (webhooks or
|
|
32
|
+
* polling) and can invoke your workflows. If a matching trigger already exists and
|
|
33
|
+
* is disabled, it will be re-enabled. Requires a connected account ID to associate
|
|
34
|
+
* the trigger with a specific user connection.
|
|
35
|
+
*
|
|
25
36
|
* @example
|
|
26
37
|
* ```ts
|
|
27
38
|
* const response = await client.triggerInstances.upsert(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-instances.js","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAkG;AAGlG,uDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger-instances.js","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAkG;AAGlG,uDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyChE,CAAC;IAvCC;;;;;;;;;;OAUG;IACH,UAAU,CACR,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,IAAY,EACZ,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,6BAA6B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AA1CD,4CA0CC;AAsQD,gBAAgB,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -9,6 +9,11 @@ export class TriggerInstances extends APIResource {
|
|
|
9
9
|
this.manage = new ManageAPI.Manage(this._client);
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
+
* Retrieves all active trigger instances for your project. Triggers listen for
|
|
13
|
+
* events from connected accounts (e.g., new emails, Slack messages, GitHub
|
|
14
|
+
* commits) and can invoke webhooks or workflows. Use filters to find triggers for
|
|
15
|
+
* specific users, connected accounts, or trigger types.
|
|
16
|
+
*
|
|
12
17
|
* @example
|
|
13
18
|
* ```ts
|
|
14
19
|
* const response = await client.triggerInstances.listActive();
|
|
@@ -18,6 +23,12 @@ export class TriggerInstances extends APIResource {
|
|
|
18
23
|
return this._client.get('/api/v3/trigger_instances/active', { query, ...options });
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
26
|
+
* Creates a new trigger instance or updates an existing one with the same
|
|
27
|
+
* configuration. Triggers listen for events from external services (webhooks or
|
|
28
|
+
* polling) and can invoke your workflows. If a matching trigger already exists and
|
|
29
|
+
* is disabled, it will be re-enabled. Requires a connected account ID to associate
|
|
30
|
+
* the trigger with a specific user connection.
|
|
31
|
+
*
|
|
21
32
|
* @example
|
|
22
33
|
* ```ts
|
|
23
34
|
* const response = await client.triggerInstances.upsert(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-instances.mjs","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAkE;OAG1E,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger-instances.mjs","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAkE;OAG1E,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyChE,CAAC;IAvCC;;;;;;;;;;OAUG;IACH,UAAU,CACR,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,IAAY,EACZ,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,6BAA6B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAsQD,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -47,10 +47,6 @@ export interface TriggersTypeRetrieveResponse {
|
|
|
47
47
|
* Unique identifier for the trigger type
|
|
48
48
|
*/
|
|
49
49
|
slug: string;
|
|
50
|
-
/**
|
|
51
|
-
* Lifecycle status of the trigger
|
|
52
|
-
*/
|
|
53
|
-
status: string;
|
|
54
50
|
/**
|
|
55
51
|
* Information about the toolkit that provides this trigger
|
|
56
52
|
*/
|
|
@@ -120,10 +116,6 @@ export declare namespace TriggersTypeListResponse {
|
|
|
120
116
|
* Unique identifier for the trigger type
|
|
121
117
|
*/
|
|
122
118
|
slug: string;
|
|
123
|
-
/**
|
|
124
|
-
* Lifecycle status of the trigger
|
|
125
|
-
*/
|
|
126
|
-
status: string;
|
|
127
119
|
/**
|
|
128
120
|
* Information about the toolkit that provides this trigger
|
|
129
121
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.d.mts","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,QAAQ,CACN,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;CAGrF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EA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IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,OAAO;YACtB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACvD;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACvD;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -47,10 +47,6 @@ export interface TriggersTypeRetrieveResponse {
|
|
|
47
47
|
* Unique identifier for the trigger type
|
|
48
48
|
*/
|
|
49
49
|
slug: string;
|
|
50
|
-
/**
|
|
51
|
-
* Lifecycle status of the trigger
|
|
52
|
-
*/
|
|
53
|
-
status: string;
|
|
54
50
|
/**
|
|
55
51
|
* Information about the toolkit that provides this trigger
|
|
56
52
|
*/
|
|
@@ -120,10 +116,6 @@ export declare namespace TriggersTypeListResponse {
|
|
|
120
116
|
* Unique identifier for the trigger type
|
|
121
117
|
*/
|
|
122
118
|
slug: string;
|
|
123
|
-
/**
|
|
124
|
-
* Lifecycle status of the trigger
|
|
125
|
-
*/
|
|
126
|
-
status: string;
|
|
127
119
|
/**
|
|
128
120
|
* Information about the toolkit that provides this trigger
|
|
129
121
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.d.ts","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,QAAQ,CACN,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;CAGrF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEpC;;OA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0B;IACzC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACvD;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACvD;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -33,7 +33,6 @@ import {
|
|
|
33
33
|
AuthConfigUpdateStatusResponse,
|
|
34
34
|
AuthConfigs,
|
|
35
35
|
} from './resources/auth-configs';
|
|
36
|
-
import { Cli, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse } from './resources/cli';
|
|
37
36
|
import {
|
|
38
37
|
ConnectedAccountCreateParams,
|
|
39
38
|
ConnectedAccountCreateResponse,
|
|
@@ -99,6 +98,13 @@ import {
|
|
|
99
98
|
parseLogLevel,
|
|
100
99
|
} from './internal/utils/log';
|
|
101
100
|
import { isEmptyObj } from './internal/utils/values';
|
|
101
|
+
import {
|
|
102
|
+
Cli,
|
|
103
|
+
CliCreateSessionParams,
|
|
104
|
+
CliCreateSessionResponse,
|
|
105
|
+
CliGetSessionParams,
|
|
106
|
+
CliGetSessionResponse,
|
|
107
|
+
} from './resources/cli/cli';
|
|
102
108
|
import {
|
|
103
109
|
Mcp,
|
|
104
110
|
McpCreateParams,
|
|
@@ -551,7 +557,7 @@ export class Composio {
|
|
|
551
557
|
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
552
558
|
|
|
553
559
|
const errText = await response.text().catch((err: any) => castToError(err).message);
|
|
554
|
-
const errJSON = safeJSON(errText);
|
|
560
|
+
const errJSON = safeJSON(errText) as any;
|
|
555
561
|
const errMessage = errJSON ? undefined : errText;
|
|
556
562
|
|
|
557
563
|
loggerFor(this).debug(
|
|
@@ -592,9 +598,10 @@ export class Composio {
|
|
|
592
598
|
controller: AbortController,
|
|
593
599
|
): Promise<Response> {
|
|
594
600
|
const { signal, method, ...options } = init || {};
|
|
595
|
-
|
|
601
|
+
const abort = this._makeAbort(controller);
|
|
602
|
+
if (signal) signal.addEventListener('abort', abort, { once: true });
|
|
596
603
|
|
|
597
|
-
const timeout = setTimeout(
|
|
604
|
+
const timeout = setTimeout(abort, ms);
|
|
598
605
|
|
|
599
606
|
const isReadableBody =
|
|
600
607
|
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
@@ -761,6 +768,12 @@ export class Composio {
|
|
|
761
768
|
return headers.values;
|
|
762
769
|
}
|
|
763
770
|
|
|
771
|
+
private _makeAbort(controller: AbortController) {
|
|
772
|
+
// note: we can't just inline this method inside `fetchWithTimeout()` because then the closure
|
|
773
|
+
// would capture all request options, and cause a memory leak.
|
|
774
|
+
return () => controller.abort();
|
|
775
|
+
}
|
|
776
|
+
|
|
764
777
|
private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
|
|
765
778
|
bodyHeaders: HeadersLike;
|
|
766
779
|
body: BodyInit | undefined;
|
|
@@ -793,6 +806,14 @@ export class Composio {
|
|
|
793
806
|
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
794
807
|
) {
|
|
795
808
|
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
809
|
+
} else if (
|
|
810
|
+
typeof body === 'object' &&
|
|
811
|
+
headers.values.get('content-type') === 'application/x-www-form-urlencoded'
|
|
812
|
+
) {
|
|
813
|
+
return {
|
|
814
|
+
bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
|
|
815
|
+
body: this.stringifyQuery(body as Record<string, unknown>),
|
|
816
|
+
};
|
|
796
817
|
} else {
|
|
797
818
|
return this.#encoder({ body, headers });
|
|
798
819
|
}
|
|
@@ -956,6 +977,7 @@ export declare namespace Composio {
|
|
|
956
977
|
Cli as Cli,
|
|
957
978
|
type CliCreateSessionResponse as CliCreateSessionResponse,
|
|
958
979
|
type CliGetSessionResponse as CliGetSessionResponse,
|
|
980
|
+
type CliCreateSessionParams as CliCreateSessionParams,
|
|
959
981
|
type CliGetSessionParams as CliGetSessionParams,
|
|
960
982
|
};
|
|
961
983
|
|
package/src/internal/parse.ts
CHANGED
|
@@ -29,6 +29,12 @@ export async function defaultParseResponse<T>(client: Composio, props: APIRespon
|
|
|
29
29
|
const mediaType = contentType?.split(';')[0]?.trim();
|
|
30
30
|
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
31
31
|
if (isJSON) {
|
|
32
|
+
const contentLength = response.headers.get('content-length');
|
|
33
|
+
if (contentLength === '0') {
|
|
34
|
+
// if there is no content we can't do anything
|
|
35
|
+
return undefined as T;
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
const json = await response.json();
|
|
33
39
|
return json as T;
|
|
34
40
|
}
|
|
@@ -7,7 +7,10 @@ import { path } from '../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class AuthConfigs extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a new auth config for a toolkit, allowing you to use your own OAuth
|
|
11
|
+
* credentials or API keys instead of Composio-managed authentication. This is
|
|
12
|
+
* required when you want to use custom OAuth apps (bring your own client
|
|
13
|
+
* ID/secret) or configure specific authentication parameters for a toolkit.
|
|
11
14
|
*
|
|
12
15
|
* @example
|
|
13
16
|
* ```ts
|
|
@@ -52,7 +55,10 @@ export class AuthConfigs extends APIResource {
|
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
/**
|
|
55
|
-
*
|
|
58
|
+
* Retrieves all auth configs for your project. Auth configs define how users
|
|
59
|
+
* authenticate with external services (OAuth, API keys, etc.). Use filters to find
|
|
60
|
+
* configs for specific toolkits or to distinguish between Composio-managed and
|
|
61
|
+
* custom configurations.
|
|
56
62
|
*
|
|
57
63
|
* @example
|
|
58
64
|
* ```ts
|
|
@@ -194,7 +200,8 @@ export interface AuthConfigRetrieveResponse {
|
|
|
194
200
|
| 'CALCOM_AUTH'
|
|
195
201
|
| 'SERVICE_ACCOUNT'
|
|
196
202
|
| 'SAML'
|
|
197
|
-
| 'DCR_OAUTH'
|
|
203
|
+
| 'DCR_OAUTH'
|
|
204
|
+
| 'S2S_OAUTH2';
|
|
198
205
|
|
|
199
206
|
/**
|
|
200
207
|
* ISO 8601 date-time when the auth config was created
|
|
@@ -389,7 +396,8 @@ export namespace AuthConfigListResponse {
|
|
|
389
396
|
| 'CALCOM_AUTH'
|
|
390
397
|
| 'SERVICE_ACCOUNT'
|
|
391
398
|
| 'SAML'
|
|
392
|
-
| 'DCR_OAUTH'
|
|
399
|
+
| 'DCR_OAUTH'
|
|
400
|
+
| 'S2S_OAUTH2';
|
|
393
401
|
|
|
394
402
|
/**
|
|
395
403
|
* ISO 8601 date-time when the auth config was created
|
|
@@ -594,7 +602,8 @@ export namespace AuthConfigCreateParams {
|
|
|
594
602
|
| 'CALCOM_AUTH'
|
|
595
603
|
| 'SERVICE_ACCOUNT'
|
|
596
604
|
| 'SAML'
|
|
597
|
-
| 'DCR_OAUTH'
|
|
605
|
+
| 'DCR_OAUTH'
|
|
606
|
+
| 'S2S_OAUTH2';
|
|
598
607
|
|
|
599
608
|
type: 'use_custom_auth';
|
|
600
609
|
|
|
@@ -669,6 +678,11 @@ export declare namespace AuthConfigUpdateParams {
|
|
|
669
678
|
*/
|
|
670
679
|
is_enabled_for_tool_router?: boolean;
|
|
671
680
|
|
|
681
|
+
/**
|
|
682
|
+
* The display name of the authentication configuration
|
|
683
|
+
*/
|
|
684
|
+
name?: string;
|
|
685
|
+
|
|
672
686
|
proxy_config?: Variant0.ProxyConfig | null;
|
|
673
687
|
|
|
674
688
|
/**
|
|
@@ -729,6 +743,11 @@ export declare namespace AuthConfigUpdateParams {
|
|
|
729
743
|
*/
|
|
730
744
|
is_enabled_for_tool_router?: boolean;
|
|
731
745
|
|
|
746
|
+
/**
|
|
747
|
+
* The display name of the authentication configuration
|
|
748
|
+
*/
|
|
749
|
+
name?: string;
|
|
750
|
+
|
|
732
751
|
/**
|
|
733
752
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
734
753
|
* future.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as RealtimeAPI from './realtime';
|
|
5
|
+
import { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse } from './realtime';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
|
|
9
|
+
export class Cli extends APIResource {
|
|
10
|
+
realtime: RealtimeAPI.Realtime = new RealtimeAPI.Realtime(this._client);
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
14
|
+
* first step in the CLI authentication flow, creating a session that can later be
|
|
15
|
+
* linked to a user account. The generated code is displayed to the user in the CLI
|
|
16
|
+
* and should be entered in the web interface to complete authentication.
|
|
17
|
+
* Optionally accepts a scope ('project' or 'user') and a source string.
|
|
18
|
+
*/
|
|
19
|
+
createSession(
|
|
20
|
+
body: CliCreateSessionParams | null | undefined = {},
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): APIPromise<CliCreateSessionResponse> {
|
|
23
|
+
return this._client.post('/api/v3/cli/create-session', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
28
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
29
|
+
* if the session has been linked, and by the web interface to display session
|
|
30
|
+
* details before linking.
|
|
31
|
+
*/
|
|
32
|
+
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse> {
|
|
33
|
+
return this._client.get('/api/v3/cli/get-session', { query, ...options });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface CliCreateSessionResponse {
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier for the CLI session. UUID v4 format used for tracking and
|
|
40
|
+
* retrieval.
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The 6-character hexadecimal code used for CLI login
|
|
46
|
+
*/
|
|
47
|
+
code: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The ISO timestamp when the session expires
|
|
51
|
+
*/
|
|
52
|
+
expiresAt: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The key scope for this session
|
|
56
|
+
*/
|
|
57
|
+
scope: 'project' | 'user';
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The current status of the session
|
|
61
|
+
*/
|
|
62
|
+
status: 'pending' | 'linked';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface CliGetSessionResponse {
|
|
66
|
+
/**
|
|
67
|
+
* The unique identifier for the CLI session
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Information about the linked account, if any. Null if the session status is
|
|
73
|
+
* "pending".
|
|
74
|
+
*/
|
|
75
|
+
account: CliGetSessionResponse.Account | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The API key for the linked account
|
|
79
|
+
*/
|
|
80
|
+
api_key: string | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The 6-character hexadecimal code used for CLI login
|
|
84
|
+
*/
|
|
85
|
+
code: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The ISO timestamp when the session expires
|
|
89
|
+
*/
|
|
90
|
+
expiresAt: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The key scope for this session
|
|
94
|
+
*/
|
|
95
|
+
scope: 'project' | 'user' | null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The current status of the session
|
|
99
|
+
*/
|
|
100
|
+
status: 'pending' | 'linked';
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace CliGetSessionResponse {
|
|
104
|
+
/**
|
|
105
|
+
* Information about the linked account, if any. Null if the session status is
|
|
106
|
+
* "pending".
|
|
107
|
+
*/
|
|
108
|
+
export interface Account {
|
|
109
|
+
/**
|
|
110
|
+
* The ID of the linked account
|
|
111
|
+
*/
|
|
112
|
+
id: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The email address of the linked account
|
|
116
|
+
*/
|
|
117
|
+
email: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The display name of the linked account
|
|
121
|
+
*/
|
|
122
|
+
name: string;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface CliCreateSessionParams {
|
|
127
|
+
/**
|
|
128
|
+
* Key scope. 'project' (default) returns a project-level API key; 'user' returns a
|
|
129
|
+
* user-level API key valid across projects.
|
|
130
|
+
*/
|
|
131
|
+
scope?: 'project' | 'user';
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Free-form string describing the source, e.g. 'Johns MacBook (darwin, v1.2.3)'
|
|
135
|
+
*/
|
|
136
|
+
source?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface CliGetSessionParams {
|
|
140
|
+
/**
|
|
141
|
+
* CLI session ID (UUID format) or 6-character code to check. Both formats are
|
|
142
|
+
* supported for flexibility in client implementations.
|
|
143
|
+
*/
|
|
144
|
+
id: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
Cli.Realtime = Realtime;
|
|
148
|
+
|
|
149
|
+
export declare namespace Cli {
|
|
150
|
+
export {
|
|
151
|
+
type CliCreateSessionResponse as CliCreateSessionResponse,
|
|
152
|
+
type CliGetSessionResponse as CliGetSessionResponse,
|
|
153
|
+
type CliCreateSessionParams as CliCreateSessionParams,
|
|
154
|
+
type CliGetSessionParams as CliGetSessionParams,
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export {
|
|
158
|
+
Realtime as Realtime,
|
|
159
|
+
type RealtimeAuthResponse as RealtimeAuthResponse,
|
|
160
|
+
type RealtimeCredentialsResponse as RealtimeCredentialsResponse,
|
|
161
|
+
type RealtimeAuthParams as RealtimeAuthParams,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Cli,
|
|
5
|
+
type CliCreateSessionResponse,
|
|
6
|
+
type CliGetSessionResponse,
|
|
7
|
+
type CliCreateSessionParams,
|
|
8
|
+
type CliGetSessionParams,
|
|
9
|
+
} from './cli';
|
|
10
|
+
export {
|
|
11
|
+
Realtime,
|
|
12
|
+
type RealtimeAuthResponse,
|
|
13
|
+
type RealtimeCredentialsResponse,
|
|
14
|
+
type RealtimeAuthParams,
|
|
15
|
+
} from './realtime';
|
|
@@ -0,0 +1,72 @@
|
|
|
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 Realtime extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Authenticate CLI client access to a private-cli-{nanoId} Pusher channel
|
|
10
|
+
*/
|
|
11
|
+
auth(body: RealtimeAuthParams, options?: RequestOptions): APIPromise<RealtimeAuthResponse> {
|
|
12
|
+
return this._client.post('/api/v3/cli/realtime/auth', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Get the Pusher key and project nanoId for the CLI realtime trigger channel. The
|
|
17
|
+
* CLI subscribes to private-cli-{project_id}.
|
|
18
|
+
*/
|
|
19
|
+
credentials(options?: RequestOptions): APIPromise<RealtimeCredentialsResponse> {
|
|
20
|
+
return this._client.get('/api/v3/cli/realtime/credentials', options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface RealtimeAuthResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The authentication string for Pusher
|
|
27
|
+
*/
|
|
28
|
+
auth: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Channel data for presence channels
|
|
32
|
+
*/
|
|
33
|
+
channel_data?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface RealtimeCredentialsResponse {
|
|
37
|
+
/**
|
|
38
|
+
* The project nanoId associated with the API Key provided. Used as part of the CLI
|
|
39
|
+
* channel name: private-cli-{project_id}
|
|
40
|
+
*/
|
|
41
|
+
project_id: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The Pusher cluster for subscribing to the trigger
|
|
45
|
+
*/
|
|
46
|
+
pusher_cluster: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The Pusher client key for subscribing to the trigger
|
|
50
|
+
*/
|
|
51
|
+
pusher_key: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface RealtimeAuthParams {
|
|
55
|
+
/**
|
|
56
|
+
* The channel name to authenticate for
|
|
57
|
+
*/
|
|
58
|
+
channel_name: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The socket ID for Pusher authentication
|
|
62
|
+
*/
|
|
63
|
+
socket_id: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export declare namespace Realtime {
|
|
67
|
+
export {
|
|
68
|
+
type RealtimeAuthResponse as RealtimeAuthResponse,
|
|
69
|
+
type RealtimeCredentialsResponse as RealtimeCredentialsResponse,
|
|
70
|
+
type RealtimeAuthParams as RealtimeAuthParams,
|
|
71
|
+
};
|
|
72
|
+
}
|