@composio/client 0.1.0-alpha.10 → 0.1.0-alpha.12
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/README.md +7 -7
- 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 +168 -29
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +168 -29
- 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 +72 -23
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +72 -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/custom.d.mts +87 -0
- package/resources/mcp/custom.d.mts.map +1 -0
- package/resources/mcp/custom.d.ts +87 -0
- package/resources/mcp/custom.d.ts.map +1 -0
- package/resources/mcp/custom.js +26 -0
- package/resources/mcp/custom.js.map +1 -0
- package/resources/mcp/custom.mjs +22 -0
- package/resources/mcp/custom.mjs.map +1 -0
- 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 +3 -3
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +322 -217
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +322 -217
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +72 -25
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +72 -25
- 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 +114 -22
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +114 -22
- 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/team-members.d.mts +7 -7
- package/resources/team-members.d.mts.map +1 -1
- package/resources/team-members.d.ts +7 -7
- package/resources/team-members.d.ts.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 +211 -44
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +211 -44
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +62 -9
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +62 -9
- 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/trigger-instances.d.mts +86 -19
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +86 -19
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +6 -6
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +6 -6
- 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 +6 -6
- package/src/resources/auth-configs.ts +169 -29
- package/src/resources/connected-accounts.ts +80 -17
- package/src/resources/files.ts +75 -23
- package/src/resources/index.ts +3 -3
- package/src/resources/mcp/custom.ts +103 -0
- package/src/resources/mcp/index.ts +2 -3
- package/src/resources/mcp/mcp.ts +342 -256
- package/src/resources/migration.ts +11 -2
- package/src/resources/org/api-key.ts +23 -2
- package/src/resources/org/project/api-keys.ts +117 -22
- 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/team-members.ts +7 -7
- package/src/resources/toolkits.ts +200 -7
- package/src/resources/tools.ts +213 -46
- package/src/resources/trigger-instances/index.ts +1 -1
- package/src/resources/trigger-instances/trigger-instances.ts +106 -25
- 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
- package/resources/mcp/command.d.mts +0 -37
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -37
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -15
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -11
- package/resources/mcp/command.mjs.map +0 -1
- package/src/resources/mcp/command.ts +0 -50
|
@@ -5,27 +5,82 @@ 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
|
+
* ```
|
|
8
15
|
*/
|
|
9
16
|
retrieve(slug: string, options?: RequestOptions): APIPromise<TriggersTypeRetrieveResponse>;
|
|
10
17
|
/**
|
|
11
|
-
* Retrieve a list of available trigger types with optional filtering by toolkit
|
|
18
|
+
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
19
|
+
* Results are paginated and can be filtered by toolkit.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const triggersTypes = await client.triggersTypes.list();
|
|
24
|
+
* ```
|
|
12
25
|
*/
|
|
13
26
|
list(query?: TriggersTypeListParams | null | undefined, options?: RequestOptions): APIPromise<TriggersTypeListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a list of all available trigger type enum values that can be used
|
|
29
|
+
* across the API
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response = await client.triggersTypes.retrieveEnum();
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
14
36
|
retrieveEnum(options?: RequestOptions): APIPromise<string>;
|
|
15
37
|
}
|
|
16
38
|
export interface TriggersTypeRetrieveResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Configuration parameters required for the trigger
|
|
41
|
+
*/
|
|
17
42
|
config: Record<string, unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Detailed description of what the trigger does and when it fires
|
|
45
|
+
*/
|
|
18
46
|
description: string;
|
|
47
|
+
/**
|
|
48
|
+
* Step-by-step instructions on how to set up and use this trigger
|
|
49
|
+
*/
|
|
19
50
|
instructions: string;
|
|
51
|
+
/**
|
|
52
|
+
* Display name of the trigger type
|
|
53
|
+
*/
|
|
20
54
|
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Structure of the event payload that will be delivered by this trigger
|
|
57
|
+
*/
|
|
21
58
|
payload: Record<string, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier for the trigger type
|
|
61
|
+
*/
|
|
22
62
|
slug: string;
|
|
63
|
+
/**
|
|
64
|
+
* Information about the toolkit that contains this trigger
|
|
65
|
+
*/
|
|
23
66
|
toolkit: TriggersTypeRetrieveResponse.Toolkit;
|
|
24
67
|
}
|
|
25
68
|
export declare namespace TriggersTypeRetrieveResponse {
|
|
69
|
+
/**
|
|
70
|
+
* Information about the toolkit that contains this trigger
|
|
71
|
+
*/
|
|
26
72
|
interface Toolkit {
|
|
73
|
+
/**
|
|
74
|
+
* URL to the toolkit logo image
|
|
75
|
+
*/
|
|
27
76
|
logo: string;
|
|
77
|
+
/**
|
|
78
|
+
* Name of the toolkit that contains this trigger
|
|
79
|
+
*/
|
|
28
80
|
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* Unique identifier for the associated toolkit
|
|
83
|
+
*/
|
|
29
84
|
uuid: string;
|
|
30
85
|
}
|
|
31
86
|
}
|
|
@@ -36,27 +91,66 @@ export interface TriggersTypeListResponse {
|
|
|
36
91
|
}
|
|
37
92
|
export declare namespace TriggersTypeListResponse {
|
|
38
93
|
interface Item {
|
|
94
|
+
/**
|
|
95
|
+
* Configuration schema required to set up this trigger
|
|
96
|
+
*/
|
|
39
97
|
config: Record<string, unknown>;
|
|
98
|
+
/**
|
|
99
|
+
* Detailed description of what the trigger does
|
|
100
|
+
*/
|
|
40
101
|
description: string;
|
|
102
|
+
/**
|
|
103
|
+
* Human-readable name of the trigger
|
|
104
|
+
*/
|
|
41
105
|
name: string;
|
|
106
|
+
/**
|
|
107
|
+
* Schema of the data payload this trigger will deliver when it fires
|
|
108
|
+
*/
|
|
42
109
|
payload: Record<string, unknown>;
|
|
110
|
+
/**
|
|
111
|
+
* Unique identifier for the trigger type
|
|
112
|
+
*/
|
|
43
113
|
slug: string;
|
|
114
|
+
/**
|
|
115
|
+
* Information about the toolkit that provides this trigger
|
|
116
|
+
*/
|
|
44
117
|
toolkit: Item.Toolkit;
|
|
118
|
+
/**
|
|
119
|
+
* The trigger mechanism - either webhook (event-based) or poll (scheduled check)
|
|
120
|
+
*/
|
|
45
121
|
type: 'webhook' | 'poll';
|
|
46
122
|
}
|
|
47
123
|
namespace Item {
|
|
124
|
+
/**
|
|
125
|
+
* Information about the toolkit that provides this trigger
|
|
126
|
+
*/
|
|
48
127
|
interface Toolkit {
|
|
128
|
+
/**
|
|
129
|
+
* Name of the parent toolkit
|
|
130
|
+
*/
|
|
49
131
|
name: string;
|
|
132
|
+
/**
|
|
133
|
+
* Unique identifier for the parent toolkit
|
|
134
|
+
*/
|
|
50
135
|
slug: string;
|
|
51
136
|
}
|
|
52
137
|
}
|
|
53
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* JSON string containing all trigger enum values
|
|
141
|
+
*/
|
|
54
142
|
export type TriggersTypeRetrieveEnumResponse = string;
|
|
55
143
|
export interface TriggersTypeListParams {
|
|
144
|
+
/**
|
|
145
|
+
* Pagination cursor for fetching next page of results
|
|
146
|
+
*/
|
|
56
147
|
cursor?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Number of items to return per page
|
|
150
|
+
*/
|
|
57
151
|
limit?: number | null;
|
|
58
152
|
/**
|
|
59
|
-
* Array of toolkit slugs
|
|
153
|
+
* Array of toolkit slugs to filter triggers by
|
|
60
154
|
*/
|
|
61
155
|
toolkit_slugs?: Array<string> | null;
|
|
62
156
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.d.mts","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,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AAsB,GACtD,CAAC;CACH"}
|
|
@@ -5,27 +5,82 @@ 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
|
+
* ```
|
|
8
15
|
*/
|
|
9
16
|
retrieve(slug: string, options?: RequestOptions): APIPromise<TriggersTypeRetrieveResponse>;
|
|
10
17
|
/**
|
|
11
|
-
* Retrieve a list of available trigger types with optional filtering by toolkit
|
|
18
|
+
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
19
|
+
* Results are paginated and can be filtered by toolkit.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const triggersTypes = await client.triggersTypes.list();
|
|
24
|
+
* ```
|
|
12
25
|
*/
|
|
13
26
|
list(query?: TriggersTypeListParams | null | undefined, options?: RequestOptions): APIPromise<TriggersTypeListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a list of all available trigger type enum values that can be used
|
|
29
|
+
* across the API
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response = await client.triggersTypes.retrieveEnum();
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
14
36
|
retrieveEnum(options?: RequestOptions): APIPromise<string>;
|
|
15
37
|
}
|
|
16
38
|
export interface TriggersTypeRetrieveResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Configuration parameters required for the trigger
|
|
41
|
+
*/
|
|
17
42
|
config: Record<string, unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Detailed description of what the trigger does and when it fires
|
|
45
|
+
*/
|
|
18
46
|
description: string;
|
|
47
|
+
/**
|
|
48
|
+
* Step-by-step instructions on how to set up and use this trigger
|
|
49
|
+
*/
|
|
19
50
|
instructions: string;
|
|
51
|
+
/**
|
|
52
|
+
* Display name of the trigger type
|
|
53
|
+
*/
|
|
20
54
|
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Structure of the event payload that will be delivered by this trigger
|
|
57
|
+
*/
|
|
21
58
|
payload: Record<string, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier for the trigger type
|
|
61
|
+
*/
|
|
22
62
|
slug: string;
|
|
63
|
+
/**
|
|
64
|
+
* Information about the toolkit that contains this trigger
|
|
65
|
+
*/
|
|
23
66
|
toolkit: TriggersTypeRetrieveResponse.Toolkit;
|
|
24
67
|
}
|
|
25
68
|
export declare namespace TriggersTypeRetrieveResponse {
|
|
69
|
+
/**
|
|
70
|
+
* Information about the toolkit that contains this trigger
|
|
71
|
+
*/
|
|
26
72
|
interface Toolkit {
|
|
73
|
+
/**
|
|
74
|
+
* URL to the toolkit logo image
|
|
75
|
+
*/
|
|
27
76
|
logo: string;
|
|
77
|
+
/**
|
|
78
|
+
* Name of the toolkit that contains this trigger
|
|
79
|
+
*/
|
|
28
80
|
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* Unique identifier for the associated toolkit
|
|
83
|
+
*/
|
|
29
84
|
uuid: string;
|
|
30
85
|
}
|
|
31
86
|
}
|
|
@@ -36,27 +91,66 @@ export interface TriggersTypeListResponse {
|
|
|
36
91
|
}
|
|
37
92
|
export declare namespace TriggersTypeListResponse {
|
|
38
93
|
interface Item {
|
|
94
|
+
/**
|
|
95
|
+
* Configuration schema required to set up this trigger
|
|
96
|
+
*/
|
|
39
97
|
config: Record<string, unknown>;
|
|
98
|
+
/**
|
|
99
|
+
* Detailed description of what the trigger does
|
|
100
|
+
*/
|
|
40
101
|
description: string;
|
|
102
|
+
/**
|
|
103
|
+
* Human-readable name of the trigger
|
|
104
|
+
*/
|
|
41
105
|
name: string;
|
|
106
|
+
/**
|
|
107
|
+
* Schema of the data payload this trigger will deliver when it fires
|
|
108
|
+
*/
|
|
42
109
|
payload: Record<string, unknown>;
|
|
110
|
+
/**
|
|
111
|
+
* Unique identifier for the trigger type
|
|
112
|
+
*/
|
|
43
113
|
slug: string;
|
|
114
|
+
/**
|
|
115
|
+
* Information about the toolkit that provides this trigger
|
|
116
|
+
*/
|
|
44
117
|
toolkit: Item.Toolkit;
|
|
118
|
+
/**
|
|
119
|
+
* The trigger mechanism - either webhook (event-based) or poll (scheduled check)
|
|
120
|
+
*/
|
|
45
121
|
type: 'webhook' | 'poll';
|
|
46
122
|
}
|
|
47
123
|
namespace Item {
|
|
124
|
+
/**
|
|
125
|
+
* Information about the toolkit that provides this trigger
|
|
126
|
+
*/
|
|
48
127
|
interface Toolkit {
|
|
128
|
+
/**
|
|
129
|
+
* Name of the parent toolkit
|
|
130
|
+
*/
|
|
49
131
|
name: string;
|
|
132
|
+
/**
|
|
133
|
+
* Unique identifier for the parent toolkit
|
|
134
|
+
*/
|
|
50
135
|
slug: string;
|
|
51
136
|
}
|
|
52
137
|
}
|
|
53
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* JSON string containing all trigger enum values
|
|
141
|
+
*/
|
|
54
142
|
export type TriggersTypeRetrieveEnumResponse = string;
|
|
55
143
|
export interface TriggersTypeListParams {
|
|
144
|
+
/**
|
|
145
|
+
* Pagination cursor for fetching next page of results
|
|
146
|
+
*/
|
|
56
147
|
cursor?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Number of items to return per page
|
|
150
|
+
*/
|
|
57
151
|
limit?: number | null;
|
|
58
152
|
/**
|
|
59
|
-
* Array of toolkit slugs
|
|
153
|
+
* Array of toolkit slugs to filter triggers by
|
|
60
154
|
*/
|
|
61
155
|
toolkit_slugs?: Array<string> | null;
|
|
62
156
|
}
|
|
@@ -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,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GACtD,CAAC;CACH"}
|
|
@@ -8,16 +8,38 @@ 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
|
+
* ```
|
|
11
18
|
*/
|
|
12
19
|
retrieve(slug, options) {
|
|
13
20
|
return this._client.get((0, path_1.path) `/api/v3/triggers_types/${slug}`, options);
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
|
-
* Retrieve a list of available trigger types with optional filtering by toolkit
|
|
23
|
+
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
24
|
+
* Results are paginated and can be filtered by toolkit.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const triggersTypes = await client.triggersTypes.list();
|
|
29
|
+
* ```
|
|
17
30
|
*/
|
|
18
31
|
list(query = {}, options) {
|
|
19
32
|
return this._client.get('/api/v3/triggers_types', { query, ...options });
|
|
20
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves a list of all available trigger type enum values that can be used
|
|
36
|
+
* across the API
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const response = await client.triggersTypes.retrieveEnum();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
21
43
|
retrieveEnum(options) {
|
|
22
44
|
return this._client.get('/api/v3/triggers_types/list/enum', options);
|
|
23
45
|
}
|
|
@@ -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,
|
|
@@ -104,18 +105,17 @@ import {
|
|
|
104
105
|
McpDeleteResponse,
|
|
105
106
|
McpListParams,
|
|
106
107
|
McpListResponse,
|
|
108
|
+
McpRetrieveAppParams,
|
|
107
109
|
McpRetrieveAppResponse,
|
|
108
110
|
McpRetrieveResponse,
|
|
109
111
|
McpUpdateParams,
|
|
110
112
|
McpUpdateResponse,
|
|
111
|
-
McpValidateParams,
|
|
112
|
-
McpValidateResponse,
|
|
113
113
|
} from './resources/mcp/mcp';
|
|
114
114
|
import { Org } from './resources/org/org';
|
|
115
115
|
import {
|
|
116
|
+
TriggerInstanceDeleteResponse,
|
|
116
117
|
TriggerInstanceListActiveParams,
|
|
117
118
|
TriggerInstanceListActiveResponse,
|
|
118
|
-
TriggerInstanceRemoveUpsertResponse,
|
|
119
119
|
TriggerInstanceUpdateStatusParams,
|
|
120
120
|
TriggerInstanceUpdateStatusResponse,
|
|
121
121
|
TriggerInstanceUpsertParams,
|
|
@@ -876,6 +876,7 @@ export declare namespace Composio {
|
|
|
876
876
|
type ToolkitListResponse as ToolkitListResponse,
|
|
877
877
|
type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
|
|
878
878
|
type ToolkitListParams as ToolkitListParams,
|
|
879
|
+
type ToolkitRetrieveCategoriesParams as ToolkitRetrieveCategoriesParams,
|
|
879
880
|
};
|
|
880
881
|
|
|
881
882
|
export {
|
|
@@ -894,8 +895,8 @@ export declare namespace Composio {
|
|
|
894
895
|
|
|
895
896
|
export {
|
|
896
897
|
TriggerInstances as TriggerInstances,
|
|
898
|
+
type TriggerInstanceDeleteResponse as TriggerInstanceDeleteResponse,
|
|
897
899
|
type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse,
|
|
898
|
-
type TriggerInstanceRemoveUpsertResponse as TriggerInstanceRemoveUpsertResponse,
|
|
899
900
|
type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse,
|
|
900
901
|
type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse,
|
|
901
902
|
type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams,
|
|
@@ -919,11 +920,10 @@ export declare namespace Composio {
|
|
|
919
920
|
type McpListResponse as McpListResponse,
|
|
920
921
|
type McpDeleteResponse as McpDeleteResponse,
|
|
921
922
|
type McpRetrieveAppResponse as McpRetrieveAppResponse,
|
|
922
|
-
type McpValidateResponse as McpValidateResponse,
|
|
923
923
|
type McpCreateParams as McpCreateParams,
|
|
924
924
|
type McpUpdateParams as McpUpdateParams,
|
|
925
925
|
type McpListParams as McpListParams,
|
|
926
|
-
type
|
|
926
|
+
type McpRetrieveAppParams as McpRetrieveAppParams,
|
|
927
927
|
};
|
|
928
928
|
|
|
929
929
|
export {
|