@composio/client 0.1.0-alpha.10 → 0.1.0-alpha.11
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 +20 -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.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +163 -24
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +163 -24
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +50 -4
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +50 -4
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +80 -17
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +80 -17
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +56 -4
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +56 -4
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +56 -23
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +56 -23
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +20 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +20 -2
- package/resources/files.mjs.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/command.d.mts +0 -33
- package/resources/mcp/command.d.mts.map +1 -1
- package/resources/mcp/command.d.ts +0 -33
- package/resources/mcp/command.d.ts.map +1 -1
- package/resources/mcp/command.js +0 -6
- package/resources/mcp/command.js.map +1 -1
- package/resources/mcp/command.mjs +0 -6
- package/resources/mcp/command.mjs.map +1 -1
- package/resources/mcp/index.d.mts +2 -2
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +2 -2
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +232 -235
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +232 -235
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +55 -19
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +55 -19
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/migration.d.mts +11 -2
- package/resources/migration.d.mts.map +1 -1
- package/resources/migration.d.ts +11 -2
- package/resources/migration.d.ts.map +1 -1
- package/resources/migration.js +3 -1
- package/resources/migration.js.map +1 -1
- package/resources/migration.mjs +3 -1
- package/resources/migration.mjs.map +1 -1
- package/resources/org/api-key.d.mts +23 -2
- package/resources/org/api-key.d.mts.map +1 -1
- package/resources/org/api-key.d.ts +23 -2
- package/resources/org/api-key.d.ts.map +1 -1
- package/resources/org/api-key.js +15 -2
- package/resources/org/api-key.js.map +1 -1
- package/resources/org/api-key.mjs +15 -2
- package/resources/org/api-key.mjs.map +1 -1
- package/resources/org/project/api-keys.d.mts +97 -20
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +97 -20
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/org/project/api-keys.js +57 -0
- package/resources/org/project/api-keys.js.map +1 -1
- package/resources/org/project/api-keys.mjs +57 -0
- package/resources/org/project/api-keys.mjs.map +1 -1
- package/resources/org/project/project.d.mts +176 -4
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +176 -4
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js +46 -3
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs +46 -3
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/org/project/trigger.d.mts +101 -1
- package/resources/org/project/trigger.d.mts.map +1 -1
- package/resources/org/project/trigger.d.ts +101 -1
- package/resources/org/project/trigger.d.ts.map +1 -1
- package/resources/org/project/trigger.js +21 -0
- package/resources/org/project/trigger.js.map +1 -1
- package/resources/org/project/trigger.mjs +21 -0
- package/resources/org/project/trigger.mjs.map +1 -1
- package/resources/org/project/webhook.d.mts +86 -15
- package/resources/org/project/webhook.d.mts.map +1 -1
- package/resources/org/project/webhook.d.ts +86 -15
- package/resources/org/project/webhook.d.ts.map +1 -1
- package/resources/org/project/webhook.js +49 -2
- package/resources/org/project/webhook.js.map +1 -1
- package/resources/org/project/webhook.mjs +49 -2
- package/resources/org/project/webhook.mjs.map +1 -1
- package/resources/toolkits.d.mts +195 -7
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +195 -7
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +14 -6
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +14 -6
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +207 -40
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +207 -40
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +58 -5
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +58 -5
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +21 -24
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +21 -24
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +1 -8
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +1 -8
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts +96 -2
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +96 -2
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +23 -1
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +23 -1
- package/resources/triggers-types.mjs.map +1 -1
- package/src/client.ts +4 -14
- package/src/resources/auth-configs.ts +164 -24
- package/src/resources/connected-accounts.ts +80 -17
- package/src/resources/files.ts +56 -23
- package/src/resources/index.ts +2 -7
- package/src/resources/mcp/command.ts +1 -46
- package/src/resources/mcp/index.ts +2 -5
- package/src/resources/mcp/mcp.ts +240 -280
- package/src/resources/migration.ts +11 -2
- package/src/resources/org/api-key.ts +23 -2
- package/src/resources/org/project/api-keys.ts +97 -20
- package/src/resources/org/project/project.ts +176 -4
- package/src/resources/org/project/trigger.ts +101 -1
- package/src/resources/org/project/webhook.ts +86 -15
- package/src/resources/toolkits.ts +200 -7
- package/src/resources/tools.ts +207 -40
- package/src/resources/trigger-instances/index.ts +0 -3
- package/src/resources/trigger-instances/trigger-instances.ts +22 -38
- package/src/resources/triggers-types.ts +96 -2
- 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":"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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;OAQG;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;;;;;;;;OAQG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AA5CD,sCA4CC"}
|
|
@@ -5,16 +5,38 @@ 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
|
+
* ```
|
|
8
15
|
*/
|
|
9
16
|
retrieve(slug, options) {
|
|
10
17
|
return this._client.get(path `/api/v3/triggers_types/${slug}`, options);
|
|
11
18
|
}
|
|
12
19
|
/**
|
|
13
|
-
* Retrieve a list of available trigger types with optional filtering by toolkit
|
|
20
|
+
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
21
|
+
* Results are paginated and can be filtered by toolkit.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const triggersTypes = await client.triggersTypes.list();
|
|
26
|
+
* ```
|
|
14
27
|
*/
|
|
15
28
|
list(query = {}, options) {
|
|
16
29
|
return this._client.get('/api/v3/triggers_types', { query, ...options });
|
|
17
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves a list of all available trigger type enum values that can be used
|
|
33
|
+
* across the API
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.triggersTypes.retrieveEnum();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
18
40
|
retrieveEnum(options) {
|
|
19
41
|
return this._client.get('/api/v3/triggers_types/list/enum', options);
|
|
20
42
|
}
|
|
@@ -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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;OAQG;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;;;;;;;;OAQG;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
|
@@ -70,6 +70,7 @@ import {
|
|
|
70
70
|
import {
|
|
71
71
|
ToolkitListParams,
|
|
72
72
|
ToolkitListResponse,
|
|
73
|
+
ToolkitRetrieveCategoriesParams,
|
|
73
74
|
ToolkitRetrieveCategoriesResponse,
|
|
74
75
|
ToolkitRetrieveResponse,
|
|
75
76
|
Toolkits,
|
|
@@ -99,11 +100,8 @@ import { formatRequestDetails, loggerFor } from './internal/utils/log';
|
|
|
99
100
|
import { isEmptyObj } from './internal/utils/values';
|
|
100
101
|
import {
|
|
101
102
|
Mcp,
|
|
102
|
-
McpCreateParams,
|
|
103
|
-
McpCreateResponse,
|
|
104
103
|
McpDeleteResponse,
|
|
105
|
-
|
|
106
|
-
McpListResponse,
|
|
104
|
+
McpRetrieveAppParams,
|
|
107
105
|
McpRetrieveAppResponse,
|
|
108
106
|
McpRetrieveResponse,
|
|
109
107
|
McpUpdateParams,
|
|
@@ -115,9 +113,6 @@ import { Org } from './resources/org/org';
|
|
|
115
113
|
import {
|
|
116
114
|
TriggerInstanceListActiveParams,
|
|
117
115
|
TriggerInstanceListActiveResponse,
|
|
118
|
-
TriggerInstanceRemoveUpsertResponse,
|
|
119
|
-
TriggerInstanceUpdateStatusParams,
|
|
120
|
-
TriggerInstanceUpdateStatusResponse,
|
|
121
116
|
TriggerInstanceUpsertParams,
|
|
122
117
|
TriggerInstanceUpsertResponse,
|
|
123
118
|
TriggerInstances,
|
|
@@ -876,6 +871,7 @@ export declare namespace Composio {
|
|
|
876
871
|
type ToolkitListResponse as ToolkitListResponse,
|
|
877
872
|
type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
|
|
878
873
|
type ToolkitListParams as ToolkitListParams,
|
|
874
|
+
type ToolkitRetrieveCategoriesParams as ToolkitRetrieveCategoriesParams,
|
|
879
875
|
};
|
|
880
876
|
|
|
881
877
|
export {
|
|
@@ -895,11 +891,8 @@ export declare namespace Composio {
|
|
|
895
891
|
export {
|
|
896
892
|
TriggerInstances as TriggerInstances,
|
|
897
893
|
type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse,
|
|
898
|
-
type TriggerInstanceRemoveUpsertResponse as TriggerInstanceRemoveUpsertResponse,
|
|
899
|
-
type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse,
|
|
900
894
|
type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse,
|
|
901
895
|
type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams,
|
|
902
|
-
type TriggerInstanceUpdateStatusParams as TriggerInstanceUpdateStatusParams,
|
|
903
896
|
type TriggerInstanceUpsertParams as TriggerInstanceUpsertParams,
|
|
904
897
|
};
|
|
905
898
|
|
|
@@ -913,16 +906,13 @@ export declare namespace Composio {
|
|
|
913
906
|
|
|
914
907
|
export {
|
|
915
908
|
Mcp as Mcp,
|
|
916
|
-
type McpCreateResponse as McpCreateResponse,
|
|
917
909
|
type McpRetrieveResponse as McpRetrieveResponse,
|
|
918
910
|
type McpUpdateResponse as McpUpdateResponse,
|
|
919
|
-
type McpListResponse as McpListResponse,
|
|
920
911
|
type McpDeleteResponse as McpDeleteResponse,
|
|
921
912
|
type McpRetrieveAppResponse as McpRetrieveAppResponse,
|
|
922
913
|
type McpValidateResponse as McpValidateResponse,
|
|
923
|
-
type McpCreateParams as McpCreateParams,
|
|
924
914
|
type McpUpdateParams as McpUpdateParams,
|
|
925
|
-
type
|
|
915
|
+
type McpRetrieveAppParams as McpRetrieveAppParams,
|
|
926
916
|
type McpValidateParams as McpValidateParams,
|
|
927
917
|
};
|
|
928
918
|
|
|
@@ -8,20 +8,44 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
export class AuthConfigs extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Create new authentication configuration
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const authConfig = await client.authConfigs.create({
|
|
15
|
+
* toolkit: { slug: 'slug' },
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
11
18
|
*/
|
|
12
19
|
create(body: AuthConfigCreateParams, options?: RequestOptions): APIPromise<AuthConfigCreateResponse> {
|
|
13
20
|
return this._client.post('/api/v3/auth_configs', { body, ...options });
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
/**
|
|
17
|
-
*
|
|
24
|
+
* Retrieves detailed information about a specific authentication configuration
|
|
25
|
+
* using its unique identifier.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const authConfig = await client.authConfigs.retrieve(
|
|
30
|
+
* 'nanoid',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
18
33
|
*/
|
|
19
34
|
retrieve(nanoid: string, options?: RequestOptions): APIPromise<AuthConfigRetrieveResponse> {
|
|
20
35
|
return this._client.get(path`/api/v3/auth_configs/${nanoid}`, options);
|
|
21
36
|
}
|
|
22
37
|
|
|
23
38
|
/**
|
|
24
|
-
*
|
|
39
|
+
* Modifies an existing authentication configuration with new credentials or other
|
|
40
|
+
* settings. Only specified fields will be updated.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const authConfig = await client.authConfigs.update(
|
|
45
|
+
* 'nanoid',
|
|
46
|
+
* { credentials: { foo: 'bar' }, type: 'custom' },
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
25
49
|
*/
|
|
26
50
|
update(nanoid: string, body: AuthConfigUpdateParams, options?: RequestOptions): APIPromise<unknown> {
|
|
27
51
|
return this._client.patch(path`/api/v3/auth_configs/${nanoid}`, { body, ...options });
|
|
@@ -29,6 +53,11 @@ export class AuthConfigs extends APIResource {
|
|
|
29
53
|
|
|
30
54
|
/**
|
|
31
55
|
* List authentication configurations with optional filters
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const authConfigs = await client.authConfigs.list();
|
|
60
|
+
* ```
|
|
32
61
|
*/
|
|
33
62
|
list(
|
|
34
63
|
query: AuthConfigListParams | null | undefined = {},
|
|
@@ -38,14 +67,31 @@ export class AuthConfigs extends APIResource {
|
|
|
38
67
|
}
|
|
39
68
|
|
|
40
69
|
/**
|
|
41
|
-
*
|
|
70
|
+
* Soft-deletes an authentication configuration by marking it as deleted in the
|
|
71
|
+
* database. This operation cannot be undone.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const authConfig = await client.authConfigs.delete(
|
|
76
|
+
* 'nanoid',
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
42
79
|
*/
|
|
43
80
|
delete(nanoid: string, options?: RequestOptions): APIPromise<unknown> {
|
|
44
81
|
return this._client.delete(path`/api/v3/auth_configs/${nanoid}`, options);
|
|
45
82
|
}
|
|
46
83
|
|
|
47
84
|
/**
|
|
48
|
-
*
|
|
85
|
+
* Updates the status of an authentication configuration to either enabled or
|
|
86
|
+
* disabled. Disabled configurations cannot be used for new connections.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const response = await client.authConfigs.updateStatus(
|
|
91
|
+
* 'ENABLED',
|
|
92
|
+
* { nanoid: 'nanoid' },
|
|
93
|
+
* );
|
|
94
|
+
* ```
|
|
49
95
|
*/
|
|
50
96
|
updateStatus(
|
|
51
97
|
status: 'ENABLED' | 'DISABLED',
|
|
@@ -96,36 +142,48 @@ export namespace AuthConfigCreateResponse {
|
|
|
96
142
|
|
|
97
143
|
export interface AuthConfigRetrieveResponse {
|
|
98
144
|
/**
|
|
99
|
-
* The unique
|
|
145
|
+
* The unique ID of the authentication configuration
|
|
100
146
|
*/
|
|
101
147
|
id: string;
|
|
102
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Deprecated parameters maintained for backward compatibility
|
|
151
|
+
*/
|
|
103
152
|
deprecated_params: AuthConfigRetrieveResponse.DeprecatedParams;
|
|
104
153
|
|
|
105
154
|
/**
|
|
106
|
-
* The name of the
|
|
155
|
+
* The display name of the authentication configuration
|
|
107
156
|
*/
|
|
108
157
|
name: string;
|
|
109
158
|
|
|
110
159
|
/**
|
|
111
|
-
* The number of connections
|
|
160
|
+
* The number of active connections using this auth config
|
|
112
161
|
*/
|
|
113
162
|
no_of_connections: number;
|
|
114
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Current status of the authentication configuration
|
|
166
|
+
*/
|
|
115
167
|
status: 'ENABLED' | 'DISABLED';
|
|
116
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Information about the associated integration
|
|
171
|
+
*/
|
|
117
172
|
toolkit: AuthConfigRetrieveResponse.Toolkit;
|
|
118
173
|
|
|
119
174
|
/**
|
|
120
|
-
* The type of the
|
|
175
|
+
* The type of the authentication configuration (custom or default)
|
|
121
176
|
*/
|
|
122
177
|
type: 'default' | 'custom';
|
|
123
178
|
|
|
124
179
|
/**
|
|
125
|
-
* The
|
|
180
|
+
* The UUID of the authentication configuration (for backward compatibility)
|
|
126
181
|
*/
|
|
127
182
|
uuid: string;
|
|
128
183
|
|
|
184
|
+
/**
|
|
185
|
+
* The authentication scheme used (e.g., OAuth2, API Key, etc.)
|
|
186
|
+
*/
|
|
129
187
|
auth_scheme?:
|
|
130
188
|
| 'OAUTH2'
|
|
131
189
|
| 'OAUTH1'
|
|
@@ -142,48 +200,79 @@ export interface AuthConfigRetrieveResponse {
|
|
|
142
200
|
| 'SNOWFLAKE';
|
|
143
201
|
|
|
144
202
|
/**
|
|
145
|
-
*
|
|
203
|
+
* ISO 8601 date-time when the auth config was created
|
|
146
204
|
*/
|
|
147
205
|
created_at?: string;
|
|
148
206
|
|
|
149
207
|
/**
|
|
150
|
-
* The user who created the auth config
|
|
208
|
+
* The identifier of the user who created the auth config
|
|
151
209
|
*/
|
|
152
210
|
created_by?: string;
|
|
153
211
|
|
|
212
|
+
/**
|
|
213
|
+
* The authentication credentials (tokens, keys, etc.) - may be partially hidden
|
|
214
|
+
* for security
|
|
215
|
+
*/
|
|
154
216
|
credentials?: Record<string, unknown>;
|
|
155
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Fields expected during connection initialization
|
|
220
|
+
*/
|
|
156
221
|
expected_input_fields?: Array<unknown>;
|
|
157
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Whether this authentication configuration is managed by Composio or the user
|
|
225
|
+
*/
|
|
158
226
|
is_composio_managed?: boolean;
|
|
159
227
|
|
|
160
228
|
/**
|
|
161
|
-
*
|
|
229
|
+
* ISO 8601 date-time when the auth config was last updated
|
|
162
230
|
*/
|
|
163
231
|
last_updated_at?: string;
|
|
164
232
|
|
|
233
|
+
/**
|
|
234
|
+
* List of tool IDs this auth config is restricted to use with
|
|
235
|
+
*/
|
|
165
236
|
restrict_to_following_tools?: Array<string>;
|
|
166
237
|
}
|
|
167
238
|
|
|
168
239
|
export namespace AuthConfigRetrieveResponse {
|
|
240
|
+
/**
|
|
241
|
+
* Deprecated parameters maintained for backward compatibility
|
|
242
|
+
*/
|
|
169
243
|
export interface DeprecatedParams {
|
|
244
|
+
/**
|
|
245
|
+
* Deprecated: Default connector ID
|
|
246
|
+
*/
|
|
170
247
|
default_connector_id: string | null;
|
|
171
248
|
|
|
249
|
+
/**
|
|
250
|
+
* Deprecated: Fields expected during connection initialization
|
|
251
|
+
*/
|
|
172
252
|
expected_input_fields?: Array<Record<string, unknown>>;
|
|
173
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Deprecated: Member UUID
|
|
256
|
+
*/
|
|
174
257
|
member_uuid?: string;
|
|
175
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Deprecated: Toolkit ID
|
|
261
|
+
*/
|
|
176
262
|
toolkit_id?: string;
|
|
177
263
|
}
|
|
178
264
|
|
|
265
|
+
/**
|
|
266
|
+
* Information about the associated integration
|
|
267
|
+
*/
|
|
179
268
|
export interface Toolkit {
|
|
180
269
|
/**
|
|
181
|
-
* The
|
|
270
|
+
* The URL to the integration app's logo image
|
|
182
271
|
*/
|
|
183
272
|
logo: string;
|
|
184
273
|
|
|
185
274
|
/**
|
|
186
|
-
* The unique
|
|
275
|
+
* The unique identifier of the integration app
|
|
187
276
|
*/
|
|
188
277
|
slug: string;
|
|
189
278
|
}
|
|
@@ -202,36 +291,48 @@ export interface AuthConfigListResponse {
|
|
|
202
291
|
export namespace AuthConfigListResponse {
|
|
203
292
|
export interface Item {
|
|
204
293
|
/**
|
|
205
|
-
* The unique
|
|
294
|
+
* The unique ID of the authentication configuration
|
|
206
295
|
*/
|
|
207
296
|
id: string;
|
|
208
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Deprecated parameters maintained for backward compatibility
|
|
300
|
+
*/
|
|
209
301
|
deprecated_params: Item.DeprecatedParams;
|
|
210
302
|
|
|
211
303
|
/**
|
|
212
|
-
* The name of the
|
|
304
|
+
* The display name of the authentication configuration
|
|
213
305
|
*/
|
|
214
306
|
name: string;
|
|
215
307
|
|
|
216
308
|
/**
|
|
217
|
-
* The number of connections
|
|
309
|
+
* The number of active connections using this auth config
|
|
218
310
|
*/
|
|
219
311
|
no_of_connections: number;
|
|
220
312
|
|
|
313
|
+
/**
|
|
314
|
+
* Current status of the authentication configuration
|
|
315
|
+
*/
|
|
221
316
|
status: 'ENABLED' | 'DISABLED';
|
|
222
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Information about the associated integration
|
|
320
|
+
*/
|
|
223
321
|
toolkit: Item.Toolkit;
|
|
224
322
|
|
|
225
323
|
/**
|
|
226
|
-
* The type of the
|
|
324
|
+
* The type of the authentication configuration (custom or default)
|
|
227
325
|
*/
|
|
228
326
|
type: 'default' | 'custom';
|
|
229
327
|
|
|
230
328
|
/**
|
|
231
|
-
* The
|
|
329
|
+
* The UUID of the authentication configuration (for backward compatibility)
|
|
232
330
|
*/
|
|
233
331
|
uuid: string;
|
|
234
332
|
|
|
333
|
+
/**
|
|
334
|
+
* The authentication scheme used (e.g., OAuth2, API Key, etc.)
|
|
335
|
+
*/
|
|
235
336
|
auth_scheme?:
|
|
236
337
|
| 'OAUTH2'
|
|
237
338
|
| 'OAUTH1'
|
|
@@ -248,48 +349,79 @@ export namespace AuthConfigListResponse {
|
|
|
248
349
|
| 'SNOWFLAKE';
|
|
249
350
|
|
|
250
351
|
/**
|
|
251
|
-
*
|
|
352
|
+
* ISO 8601 date-time when the auth config was created
|
|
252
353
|
*/
|
|
253
354
|
created_at?: string;
|
|
254
355
|
|
|
255
356
|
/**
|
|
256
|
-
* The user who created the auth config
|
|
357
|
+
* The identifier of the user who created the auth config
|
|
257
358
|
*/
|
|
258
359
|
created_by?: string;
|
|
259
360
|
|
|
361
|
+
/**
|
|
362
|
+
* The authentication credentials (tokens, keys, etc.) - may be partially hidden
|
|
363
|
+
* for security
|
|
364
|
+
*/
|
|
260
365
|
credentials?: Record<string, unknown>;
|
|
261
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Fields expected during connection initialization
|
|
369
|
+
*/
|
|
262
370
|
expected_input_fields?: Array<unknown>;
|
|
263
371
|
|
|
372
|
+
/**
|
|
373
|
+
* Whether this authentication configuration is managed by Composio or the user
|
|
374
|
+
*/
|
|
264
375
|
is_composio_managed?: boolean;
|
|
265
376
|
|
|
266
377
|
/**
|
|
267
|
-
*
|
|
378
|
+
* ISO 8601 date-time when the auth config was last updated
|
|
268
379
|
*/
|
|
269
380
|
last_updated_at?: string;
|
|
270
381
|
|
|
382
|
+
/**
|
|
383
|
+
* List of tool IDs this auth config is restricted to use with
|
|
384
|
+
*/
|
|
271
385
|
restrict_to_following_tools?: Array<string>;
|
|
272
386
|
}
|
|
273
387
|
|
|
274
388
|
export namespace Item {
|
|
389
|
+
/**
|
|
390
|
+
* Deprecated parameters maintained for backward compatibility
|
|
391
|
+
*/
|
|
275
392
|
export interface DeprecatedParams {
|
|
393
|
+
/**
|
|
394
|
+
* Deprecated: Default connector ID
|
|
395
|
+
*/
|
|
276
396
|
default_connector_id: string | null;
|
|
277
397
|
|
|
398
|
+
/**
|
|
399
|
+
* Deprecated: Fields expected during connection initialization
|
|
400
|
+
*/
|
|
278
401
|
expected_input_fields?: Array<Record<string, unknown>>;
|
|
279
402
|
|
|
403
|
+
/**
|
|
404
|
+
* Deprecated: Member UUID
|
|
405
|
+
*/
|
|
280
406
|
member_uuid?: string;
|
|
281
407
|
|
|
408
|
+
/**
|
|
409
|
+
* Deprecated: Toolkit ID
|
|
410
|
+
*/
|
|
282
411
|
toolkit_id?: string;
|
|
283
412
|
}
|
|
284
413
|
|
|
414
|
+
/**
|
|
415
|
+
* Information about the associated integration
|
|
416
|
+
*/
|
|
285
417
|
export interface Toolkit {
|
|
286
418
|
/**
|
|
287
|
-
* The
|
|
419
|
+
* The URL to the integration app's logo image
|
|
288
420
|
*/
|
|
289
421
|
logo: string;
|
|
290
422
|
|
|
291
423
|
/**
|
|
292
|
-
* The unique
|
|
424
|
+
* The unique identifier of the integration app
|
|
293
425
|
*/
|
|
294
426
|
slug: string;
|
|
295
427
|
}
|
|
@@ -405,6 +537,11 @@ export interface AuthConfigListParams {
|
|
|
405
537
|
*/
|
|
406
538
|
limit?: string;
|
|
407
539
|
|
|
540
|
+
/**
|
|
541
|
+
* Show disabled auth configs
|
|
542
|
+
*/
|
|
543
|
+
show_disabled?: boolean;
|
|
544
|
+
|
|
408
545
|
/**
|
|
409
546
|
* The slug of the toolkit to filter by
|
|
410
547
|
*/
|
|
@@ -412,6 +549,9 @@ export interface AuthConfigListParams {
|
|
|
412
549
|
}
|
|
413
550
|
|
|
414
551
|
export interface AuthConfigUpdateStatusParams {
|
|
552
|
+
/**
|
|
553
|
+
* The unique identifier of the authentication configuration to update
|
|
554
|
+
*/
|
|
415
555
|
nanoid: string;
|
|
416
556
|
}
|
|
417
557
|
|