@composio/client 0.1.0-alpha.31 → 0.1.0-alpha.33
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 +38 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js +2 -2
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +53 -14
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +53 -14
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +1 -1
- package/resources/auth-configs.mjs +1 -1
- package/resources/connected-accounts.d.mts +1423 -623
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +1423 -623
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +4 -0
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +4 -0
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/org/project/api-keys.d.mts +1 -45
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +1 -45
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/org/project/api-keys.js +0 -18
- package/resources/org/project/api-keys.js.map +1 -1
- package/resources/org/project/api-keys.mjs +0 -18
- package/resources/org/project/api-keys.mjs.map +1 -1
- package/resources/org/project/index.d.mts +1 -1
- package/resources/org/project/index.d.mts.map +1 -1
- package/resources/org/project/index.d.ts +1 -1
- package/resources/org/project/index.d.ts.map +1 -1
- package/resources/org/project/index.js.map +1 -1
- package/resources/org/project/index.mjs.map +1 -1
- package/resources/org/project/project.d.mts +2 -2
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +2 -2
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/team-members.d.mts +2 -16
- package/resources/team-members.d.mts.map +1 -1
- package/resources/team-members.d.ts +2 -16
- package/resources/team-members.d.ts.map +1 -1
- package/resources/team-members.js +6 -2
- package/resources/team-members.js.map +1 -1
- package/resources/team-members.mjs +6 -2
- package/resources/team-members.mjs.map +1 -1
- package/resources/tools.d.mts +17 -5
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +17 -5
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +2 -2
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +2 -2
- package/resources/tools.mjs.map +1 -1
- package/resources/triggers-types.d.mts +16 -21
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +16 -21
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +2 -19
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +2 -19
- package/resources/triggers-types.mjs.map +1 -1
- package/src/client.ts +8 -6
- package/src/resources/auth-configs.ts +66 -9
- package/src/resources/connected-accounts.ts +3361 -1749
- package/src/resources/index.ts +2 -2
- package/src/resources/mcp/mcp.ts +5 -0
- package/src/resources/org/project/api-keys.ts +0 -53
- package/src/resources/org/project/index.ts +0 -1
- package/src/resources/org/project/project.ts +0 -2
- package/src/resources/team-members.ts +6 -28
- package/src/resources/tools.ts +22 -5
- package/src/resources/triggers-types.ts +22 -22
- 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
|
@@ -5,35 +5,18 @@ export declare class TriggersTypes extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Retrieve detailed information about a specific trigger type using its slug
|
|
7
7
|
* identifier
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const triggersType = await client.triggersTypes.retrieve(
|
|
12
|
-
* 'SLACK_NEW_MESSAGE',
|
|
13
|
-
* );
|
|
14
|
-
* ```
|
|
15
8
|
*/
|
|
16
|
-
retrieve(slug: string, options?: RequestOptions): APIPromise<TriggersTypeRetrieveResponse>;
|
|
9
|
+
retrieve(slug: string, query?: TriggersTypeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<TriggersTypeRetrieveResponse>;
|
|
17
10
|
/**
|
|
18
11
|
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
19
12
|
* Results are paginated and can be filtered by toolkit.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const triggersTypes = await client.triggersTypes.list();
|
|
24
|
-
* ```
|
|
25
13
|
*/
|
|
26
14
|
list(query?: TriggersTypeListParams | null | undefined, options?: RequestOptions): APIPromise<TriggersTypeListResponse>;
|
|
27
15
|
/**
|
|
28
16
|
* Retrieves a list of all available trigger type enum values that can be used
|
|
29
17
|
* across the API
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const response = await client.triggersTypes.retrieveEnum();
|
|
34
|
-
* ```
|
|
35
18
|
*/
|
|
36
|
-
retrieveEnum(options?: RequestOptions): APIPromise<
|
|
19
|
+
retrieveEnum(options?: RequestOptions): APIPromise<TriggersTypeRetrieveEnumResponse>;
|
|
37
20
|
}
|
|
38
21
|
export interface TriggersTypeRetrieveResponse {
|
|
39
22
|
/**
|
|
@@ -161,7 +144,13 @@ export declare namespace TriggersTypeListResponse {
|
|
|
161
144
|
/**
|
|
162
145
|
* JSON string containing all trigger enum values
|
|
163
146
|
*/
|
|
164
|
-
export type TriggersTypeRetrieveEnumResponse = string
|
|
147
|
+
export type TriggersTypeRetrieveEnumResponse = Array<string>;
|
|
148
|
+
export interface TriggersTypeRetrieveParams {
|
|
149
|
+
/**
|
|
150
|
+
* Optional version of the trigger type to retrieve
|
|
151
|
+
*/
|
|
152
|
+
version?: string;
|
|
153
|
+
}
|
|
165
154
|
export interface TriggersTypeListParams {
|
|
166
155
|
/**
|
|
167
156
|
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
@@ -178,8 +167,14 @@ export interface TriggersTypeListParams {
|
|
|
178
167
|
* Array of toolkit slugs to filter triggers by
|
|
179
168
|
*/
|
|
180
169
|
toolkit_slugs?: Array<string> | null;
|
|
170
|
+
/**
|
|
171
|
+
* Can be omitted, null, a string, or an object mapping toolkit names to versions
|
|
172
|
+
*/
|
|
173
|
+
toolkit_versions?: string | {
|
|
174
|
+
[key: string]: string;
|
|
175
|
+
};
|
|
181
176
|
}
|
|
182
177
|
export declare namespace TriggersTypes {
|
|
183
|
-
export { type TriggersTypeRetrieveResponse as TriggersTypeRetrieveResponse, type TriggersTypeListResponse as TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse as TriggersTypeRetrieveEnumResponse, type TriggersTypeListParams as TriggersTypeListParams, };
|
|
178
|
+
export { type TriggersTypeRetrieveResponse as TriggersTypeRetrieveResponse, type TriggersTypeListResponse as TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse as TriggersTypeRetrieveEnumResponse, type TriggersTypeRetrieveParams as TriggersTypeRetrieveParams, type TriggersTypeListParams as TriggersTypeListParams, };
|
|
184
179
|
}
|
|
185
180
|
//# sourceMappingURL=triggers-types.d.ts.map
|
|
@@ -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
|
|
1
|
+
{"version":3,"file":"triggers-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,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC;;OAEG;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"}
|
|
@@ -8,25 +8,13 @@ class TriggersTypes extends resource_1.APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Retrieve detailed information about a specific trigger type using its slug
|
|
10
10
|
* identifier
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const triggersType = await client.triggersTypes.retrieve(
|
|
15
|
-
* 'SLACK_NEW_MESSAGE',
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
11
|
*/
|
|
19
|
-
retrieve(slug, options) {
|
|
20
|
-
return this._client.get((0, path_1.path) `/api/v3/triggers_types/${slug}`, options);
|
|
12
|
+
retrieve(slug, query = {}, options) {
|
|
13
|
+
return this._client.get((0, path_1.path) `/api/v3/triggers_types/${slug}`, { query, ...options });
|
|
21
14
|
}
|
|
22
15
|
/**
|
|
23
16
|
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
24
17
|
* Results are paginated and can be filtered by toolkit.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const triggersTypes = await client.triggersTypes.list();
|
|
29
|
-
* ```
|
|
30
18
|
*/
|
|
31
19
|
list(query = {}, options) {
|
|
32
20
|
return this._client.get('/api/v3/triggers_types', { query, ...options });
|
|
@@ -34,11 +22,6 @@ class TriggersTypes extends resource_1.APIResource {
|
|
|
34
22
|
/**
|
|
35
23
|
* Retrieves a list of all available trigger type enum values that can be used
|
|
36
24
|
* across the API
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* const response = await client.triggersTypes.retrieveEnum();
|
|
41
|
-
* ```
|
|
42
25
|
*/
|
|
43
26
|
retrieveEnum(options) {
|
|
44
27
|
return this._client.get('/api/v3/triggers_types/list/enum', options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.js","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"triggers-types.js","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;OAGG;IACH,QAAQ,CACN,IAAY,EACZ,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AA/BD,sCA+BC"}
|
|
@@ -5,25 +5,13 @@ export class TriggersTypes extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Retrieve detailed information about a specific trigger type using its slug
|
|
7
7
|
* identifier
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const triggersType = await client.triggersTypes.retrieve(
|
|
12
|
-
* 'SLACK_NEW_MESSAGE',
|
|
13
|
-
* );
|
|
14
|
-
* ```
|
|
15
8
|
*/
|
|
16
|
-
retrieve(slug, options) {
|
|
17
|
-
return this._client.get(path `/api/v3/triggers_types/${slug}`, options);
|
|
9
|
+
retrieve(slug, query = {}, options) {
|
|
10
|
+
return this._client.get(path `/api/v3/triggers_types/${slug}`, { query, ...options });
|
|
18
11
|
}
|
|
19
12
|
/**
|
|
20
13
|
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
21
14
|
* Results are paginated and can be filtered by toolkit.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const triggersTypes = await client.triggersTypes.list();
|
|
26
|
-
* ```
|
|
27
15
|
*/
|
|
28
16
|
list(query = {}, options) {
|
|
29
17
|
return this._client.get('/api/v3/triggers_types', { query, ...options });
|
|
@@ -31,11 +19,6 @@ export class TriggersTypes extends APIResource {
|
|
|
31
19
|
/**
|
|
32
20
|
* Retrieves a list of all available trigger type enum values that can be used
|
|
33
21
|
* across the API
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* const response = await client.triggersTypes.retrieveEnum();
|
|
38
|
-
* ```
|
|
39
22
|
*/
|
|
40
23
|
retrieveEnum(options) {
|
|
41
24
|
return this._client.get('/api/v3/triggers_types/list/enum', options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.mjs","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"triggers-types.mjs","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,QAAQ,CACN,IAAY,EACZ,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -67,8 +67,6 @@ import {
|
|
|
67
67
|
MigrationRetrieveNanoidResponse,
|
|
68
68
|
} from './resources/migration';
|
|
69
69
|
import {
|
|
70
|
-
TeamMemberInviteParams,
|
|
71
|
-
TeamMemberInviteResponse,
|
|
72
70
|
TeamMemberListResponse,
|
|
73
71
|
TeamMemberRemoveResponse,
|
|
74
72
|
TeamMemberUpdateParams,
|
|
@@ -93,6 +91,7 @@ import {
|
|
|
93
91
|
ToolProxyParams,
|
|
94
92
|
ToolProxyResponse,
|
|
95
93
|
ToolRetrieveEnumResponse,
|
|
94
|
+
ToolRetrieveParams,
|
|
96
95
|
ToolRetrieveResponse,
|
|
97
96
|
Tools,
|
|
98
97
|
} from './resources/tools';
|
|
@@ -100,6 +99,7 @@ import {
|
|
|
100
99
|
TriggersTypeListParams,
|
|
101
100
|
TriggersTypeListResponse,
|
|
102
101
|
TriggersTypeRetrieveEnumResponse,
|
|
102
|
+
TriggersTypeRetrieveParams,
|
|
103
103
|
TriggersTypeRetrieveResponse,
|
|
104
104
|
TriggersTypes,
|
|
105
105
|
} from './resources/triggers-types';
|
|
@@ -481,7 +481,7 @@ export class Composio {
|
|
|
481
481
|
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
|
|
482
482
|
const headersTime = Date.now();
|
|
483
483
|
|
|
484
|
-
if (response instanceof Error) {
|
|
484
|
+
if (response instanceof globalThis.Error) {
|
|
485
485
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
486
486
|
if (options.signal?.aborted) {
|
|
487
487
|
throw new Errors.APIUserAbortError();
|
|
@@ -788,7 +788,7 @@ export class Composio {
|
|
|
788
788
|
// Preserve legacy string encoding behavior for now
|
|
789
789
|
headers.values.has('content-type')) ||
|
|
790
790
|
// `Blob` is superset of `File`
|
|
791
|
-
body instanceof Blob ||
|
|
791
|
+
((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
|
|
792
792
|
// `FormData` -> `multipart/form-data`
|
|
793
793
|
body instanceof FormData ||
|
|
794
794
|
// `URLSearchParams` -> `application/x-www-form-urlencoded`
|
|
@@ -840,6 +840,7 @@ export class Composio {
|
|
|
840
840
|
migration: API.Migration = new API.Migration(this);
|
|
841
841
|
cli: API.Cli = new API.Cli(this);
|
|
842
842
|
}
|
|
843
|
+
|
|
843
844
|
Composio.AuthConfigs = AuthConfigs;
|
|
844
845
|
Composio.ConnectedAccounts = ConnectedAccounts;
|
|
845
846
|
Composio.Org = Org;
|
|
@@ -852,6 +853,7 @@ Composio.Mcp = Mcp;
|
|
|
852
853
|
Composio.Files = Files;
|
|
853
854
|
Composio.Migration = Migration;
|
|
854
855
|
Composio.Cli = Cli;
|
|
856
|
+
|
|
855
857
|
export declare namespace Composio {
|
|
856
858
|
export type RequestOptions = Opts.RequestOptions;
|
|
857
859
|
|
|
@@ -889,10 +891,8 @@ export declare namespace Composio {
|
|
|
889
891
|
TeamMembers as TeamMembers,
|
|
890
892
|
type TeamMemberUpdateResponse as TeamMemberUpdateResponse,
|
|
891
893
|
type TeamMemberListResponse as TeamMemberListResponse,
|
|
892
|
-
type TeamMemberInviteResponse as TeamMemberInviteResponse,
|
|
893
894
|
type TeamMemberRemoveResponse as TeamMemberRemoveResponse,
|
|
894
895
|
type TeamMemberUpdateParams as TeamMemberUpdateParams,
|
|
895
|
-
type TeamMemberInviteParams as TeamMemberInviteParams,
|
|
896
896
|
};
|
|
897
897
|
|
|
898
898
|
export {
|
|
@@ -912,6 +912,7 @@ export declare namespace Composio {
|
|
|
912
912
|
type ToolGetInputResponse as ToolGetInputResponse,
|
|
913
913
|
type ToolProxyResponse as ToolProxyResponse,
|
|
914
914
|
type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse,
|
|
915
|
+
type ToolRetrieveParams as ToolRetrieveParams,
|
|
915
916
|
type ToolListParams as ToolListParams,
|
|
916
917
|
type ToolExecuteParams as ToolExecuteParams,
|
|
917
918
|
type ToolGetInputParams as ToolGetInputParams,
|
|
@@ -931,6 +932,7 @@ export declare namespace Composio {
|
|
|
931
932
|
type TriggersTypeRetrieveResponse as TriggersTypeRetrieveResponse,
|
|
932
933
|
type TriggersTypeListResponse as TriggersTypeListResponse,
|
|
933
934
|
type TriggersTypeRetrieveEnumResponse as TriggersTypeRetrieveEnumResponse,
|
|
935
|
+
type TriggersTypeRetrieveParams as TriggersTypeRetrieveParams,
|
|
934
936
|
type TriggersTypeListParams as TriggersTypeListParams,
|
|
935
937
|
};
|
|
936
938
|
|
|
@@ -43,7 +43,7 @@ export class AuthConfigs extends APIResource {
|
|
|
43
43
|
* ```ts
|
|
44
44
|
* const authConfig = await client.authConfigs.update(
|
|
45
45
|
* 'nanoid',
|
|
46
|
-
* { credentials: {
|
|
46
|
+
* { credentials: {}, type: 'custom' },
|
|
47
47
|
* );
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
@@ -196,7 +196,6 @@ export interface AuthConfigRetrieveResponse {
|
|
|
196
196
|
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
197
197
|
| 'NO_AUTH'
|
|
198
198
|
| 'BASIC_WITH_JWT'
|
|
199
|
-
| 'COMPOSIO_LINK'
|
|
200
199
|
| 'CALCOM_AUTH';
|
|
201
200
|
|
|
202
201
|
/**
|
|
@@ -229,6 +228,8 @@ export interface AuthConfigRetrieveResponse {
|
|
|
229
228
|
* ISO 8601 date-time when the auth config was last updated
|
|
230
229
|
*/
|
|
231
230
|
last_updated_at?: string;
|
|
231
|
+
|
|
232
|
+
proxy_config?: AuthConfigRetrieveResponse.ProxyConfig;
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
export namespace AuthConfigRetrieveResponse {
|
|
@@ -285,6 +286,18 @@ export namespace AuthConfigRetrieveResponse {
|
|
|
285
286
|
*/
|
|
286
287
|
slug: string;
|
|
287
288
|
}
|
|
289
|
+
|
|
290
|
+
export interface ProxyConfig {
|
|
291
|
+
/**
|
|
292
|
+
* The url of the auth proxy
|
|
293
|
+
*/
|
|
294
|
+
proxy_url: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* The auth key for the auth proxy
|
|
298
|
+
*/
|
|
299
|
+
proxy_auth_key?: string;
|
|
300
|
+
}
|
|
288
301
|
}
|
|
289
302
|
|
|
290
303
|
export type AuthConfigUpdateResponse = unknown;
|
|
@@ -358,7 +371,6 @@ export namespace AuthConfigListResponse {
|
|
|
358
371
|
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
359
372
|
| 'NO_AUTH'
|
|
360
373
|
| 'BASIC_WITH_JWT'
|
|
361
|
-
| 'COMPOSIO_LINK'
|
|
362
374
|
| 'CALCOM_AUTH';
|
|
363
375
|
|
|
364
376
|
/**
|
|
@@ -391,6 +403,8 @@ export namespace AuthConfigListResponse {
|
|
|
391
403
|
* ISO 8601 date-time when the auth config was last updated
|
|
392
404
|
*/
|
|
393
405
|
last_updated_at?: string;
|
|
406
|
+
|
|
407
|
+
proxy_config?: Item.ProxyConfig;
|
|
394
408
|
}
|
|
395
409
|
|
|
396
410
|
export namespace Item {
|
|
@@ -447,6 +461,18 @@ export namespace AuthConfigListResponse {
|
|
|
447
461
|
*/
|
|
448
462
|
slug: string;
|
|
449
463
|
}
|
|
464
|
+
|
|
465
|
+
export interface ProxyConfig {
|
|
466
|
+
/**
|
|
467
|
+
* The url of the auth proxy
|
|
468
|
+
*/
|
|
469
|
+
proxy_url: string;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* The auth key for the auth proxy
|
|
473
|
+
*/
|
|
474
|
+
proxy_auth_key?: string;
|
|
475
|
+
}
|
|
450
476
|
}
|
|
451
477
|
}
|
|
452
478
|
|
|
@@ -471,7 +497,7 @@ export namespace AuthConfigCreateParams {
|
|
|
471
497
|
export interface UnionMember0 {
|
|
472
498
|
type: 'use_composio_managed_auth';
|
|
473
499
|
|
|
474
|
-
credentials?:
|
|
500
|
+
credentials?: UnionMember0.Credentials;
|
|
475
501
|
|
|
476
502
|
/**
|
|
477
503
|
* The name of the integration
|
|
@@ -482,6 +508,12 @@ export namespace AuthConfigCreateParams {
|
|
|
482
508
|
}
|
|
483
509
|
|
|
484
510
|
export namespace UnionMember0 {
|
|
511
|
+
export interface Credentials {
|
|
512
|
+
scopes?: string | Array<string>;
|
|
513
|
+
|
|
514
|
+
user_scopes?: string | Array<string>;
|
|
515
|
+
}
|
|
516
|
+
|
|
485
517
|
export interface ToolAccessConfig {
|
|
486
518
|
/**
|
|
487
519
|
* Tools used to generate the minimum required scopes for the auth config (only
|
|
@@ -502,13 +534,12 @@ export namespace AuthConfigCreateParams {
|
|
|
502
534
|
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
503
535
|
| 'NO_AUTH'
|
|
504
536
|
| 'BASIC_WITH_JWT'
|
|
505
|
-
| 'COMPOSIO_LINK'
|
|
506
537
|
| 'CALCOM_AUTH';
|
|
507
538
|
|
|
508
|
-
credentials: { [key: string]: string | boolean | number };
|
|
509
|
-
|
|
510
539
|
type: 'use_custom_auth';
|
|
511
540
|
|
|
541
|
+
credentials?: UnionMember1.Credentials;
|
|
542
|
+
|
|
512
543
|
/**
|
|
513
544
|
* The name of the integration
|
|
514
545
|
*/
|
|
@@ -520,6 +551,12 @@ export namespace AuthConfigCreateParams {
|
|
|
520
551
|
}
|
|
521
552
|
|
|
522
553
|
export namespace UnionMember1 {
|
|
554
|
+
export interface Credentials {
|
|
555
|
+
scopes?: string | Array<string>;
|
|
556
|
+
|
|
557
|
+
user_scopes?: string | Array<string>;
|
|
558
|
+
}
|
|
559
|
+
|
|
523
560
|
export interface ProxyConfig {
|
|
524
561
|
/**
|
|
525
562
|
* The url of the auth proxy
|
|
@@ -546,14 +583,34 @@ export type AuthConfigUpdateParams = AuthConfigUpdateParams.Variant0 | AuthConfi
|
|
|
546
583
|
|
|
547
584
|
export declare namespace AuthConfigUpdateParams {
|
|
548
585
|
export interface Variant0 {
|
|
549
|
-
credentials:
|
|
586
|
+
credentials: Variant0.Credentials;
|
|
550
587
|
|
|
551
588
|
type: 'custom';
|
|
552
589
|
|
|
590
|
+
proxy_config?: Variant0.ProxyConfig;
|
|
591
|
+
|
|
553
592
|
tool_access_config?: Variant0.ToolAccessConfig;
|
|
554
593
|
}
|
|
555
594
|
|
|
556
595
|
export namespace Variant0 {
|
|
596
|
+
export interface Credentials {
|
|
597
|
+
scopes?: string | Array<string>;
|
|
598
|
+
|
|
599
|
+
user_scopes?: string | Array<string>;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export interface ProxyConfig {
|
|
603
|
+
/**
|
|
604
|
+
* The url of the auth proxy
|
|
605
|
+
*/
|
|
606
|
+
proxy_url: string;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* The auth key for the auth proxy
|
|
610
|
+
*/
|
|
611
|
+
proxy_auth_key?: string;
|
|
612
|
+
}
|
|
613
|
+
|
|
557
614
|
export interface ToolAccessConfig {
|
|
558
615
|
/**
|
|
559
616
|
* The actions that the user can perform on the auth config. If passed, this will
|
|
@@ -572,7 +629,7 @@ export declare namespace AuthConfigUpdateParams {
|
|
|
572
629
|
export interface Variant1 {
|
|
573
630
|
type: 'default';
|
|
574
631
|
|
|
575
|
-
scopes?: string
|
|
632
|
+
scopes?: string | Array<string>;
|
|
576
633
|
|
|
577
634
|
tool_access_config?: Variant1.ToolAccessConfig;
|
|
578
635
|
}
|