@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.
Files changed (185) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +7 -7
  3. package/client.d.mts +6 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/auth-configs.d.mts +168 -29
  11. package/resources/auth-configs.d.mts.map +1 -1
  12. package/resources/auth-configs.d.ts +168 -29
  13. package/resources/auth-configs.d.ts.map +1 -1
  14. package/resources/auth-configs.js +50 -4
  15. package/resources/auth-configs.js.map +1 -1
  16. package/resources/auth-configs.mjs +50 -4
  17. package/resources/auth-configs.mjs.map +1 -1
  18. package/resources/connected-accounts.d.mts +80 -17
  19. package/resources/connected-accounts.d.mts.map +1 -1
  20. package/resources/connected-accounts.d.ts +80 -17
  21. package/resources/connected-accounts.d.ts.map +1 -1
  22. package/resources/connected-accounts.js +56 -4
  23. package/resources/connected-accounts.js.map +1 -1
  24. package/resources/connected-accounts.mjs +56 -4
  25. package/resources/connected-accounts.mjs.map +1 -1
  26. package/resources/files.d.mts +72 -23
  27. package/resources/files.d.mts.map +1 -1
  28. package/resources/files.d.ts +72 -23
  29. package/resources/files.d.ts.map +1 -1
  30. package/resources/files.js +20 -2
  31. package/resources/files.js.map +1 -1
  32. package/resources/files.mjs +20 -2
  33. package/resources/files.mjs.map +1 -1
  34. package/resources/index.d.mts +3 -3
  35. package/resources/index.d.mts.map +1 -1
  36. package/resources/index.d.ts +3 -3
  37. package/resources/index.d.ts.map +1 -1
  38. package/resources/index.js.map +1 -1
  39. package/resources/index.mjs.map +1 -1
  40. package/resources/mcp/custom.d.mts +87 -0
  41. package/resources/mcp/custom.d.mts.map +1 -0
  42. package/resources/mcp/custom.d.ts +87 -0
  43. package/resources/mcp/custom.d.ts.map +1 -0
  44. package/resources/mcp/custom.js +26 -0
  45. package/resources/mcp/custom.js.map +1 -0
  46. package/resources/mcp/custom.mjs +22 -0
  47. package/resources/mcp/custom.mjs.map +1 -0
  48. package/resources/mcp/index.d.mts +2 -2
  49. package/resources/mcp/index.d.mts.map +1 -1
  50. package/resources/mcp/index.d.ts +2 -2
  51. package/resources/mcp/index.d.ts.map +1 -1
  52. package/resources/mcp/index.js +3 -3
  53. package/resources/mcp/index.js.map +1 -1
  54. package/resources/mcp/index.mjs +1 -1
  55. package/resources/mcp/index.mjs.map +1 -1
  56. package/resources/mcp/mcp.d.mts +322 -217
  57. package/resources/mcp/mcp.d.mts.map +1 -1
  58. package/resources/mcp/mcp.d.ts +322 -217
  59. package/resources/mcp/mcp.d.ts.map +1 -1
  60. package/resources/mcp/mcp.js +72 -25
  61. package/resources/mcp/mcp.js.map +1 -1
  62. package/resources/mcp/mcp.mjs +72 -25
  63. package/resources/mcp/mcp.mjs.map +1 -1
  64. package/resources/migration.d.mts +11 -2
  65. package/resources/migration.d.mts.map +1 -1
  66. package/resources/migration.d.ts +11 -2
  67. package/resources/migration.d.ts.map +1 -1
  68. package/resources/migration.js +3 -1
  69. package/resources/migration.js.map +1 -1
  70. package/resources/migration.mjs +3 -1
  71. package/resources/migration.mjs.map +1 -1
  72. package/resources/org/api-key.d.mts +23 -2
  73. package/resources/org/api-key.d.mts.map +1 -1
  74. package/resources/org/api-key.d.ts +23 -2
  75. package/resources/org/api-key.d.ts.map +1 -1
  76. package/resources/org/api-key.js +15 -2
  77. package/resources/org/api-key.js.map +1 -1
  78. package/resources/org/api-key.mjs +15 -2
  79. package/resources/org/api-key.mjs.map +1 -1
  80. package/resources/org/project/api-keys.d.mts +114 -22
  81. package/resources/org/project/api-keys.d.mts.map +1 -1
  82. package/resources/org/project/api-keys.d.ts +114 -22
  83. package/resources/org/project/api-keys.d.ts.map +1 -1
  84. package/resources/org/project/api-keys.js +57 -0
  85. package/resources/org/project/api-keys.js.map +1 -1
  86. package/resources/org/project/api-keys.mjs +57 -0
  87. package/resources/org/project/api-keys.mjs.map +1 -1
  88. package/resources/org/project/project.d.mts +176 -4
  89. package/resources/org/project/project.d.mts.map +1 -1
  90. package/resources/org/project/project.d.ts +176 -4
  91. package/resources/org/project/project.d.ts.map +1 -1
  92. package/resources/org/project/project.js +46 -3
  93. package/resources/org/project/project.js.map +1 -1
  94. package/resources/org/project/project.mjs +46 -3
  95. package/resources/org/project/project.mjs.map +1 -1
  96. package/resources/org/project/trigger.d.mts +101 -1
  97. package/resources/org/project/trigger.d.mts.map +1 -1
  98. package/resources/org/project/trigger.d.ts +101 -1
  99. package/resources/org/project/trigger.d.ts.map +1 -1
  100. package/resources/org/project/trigger.js +21 -0
  101. package/resources/org/project/trigger.js.map +1 -1
  102. package/resources/org/project/trigger.mjs +21 -0
  103. package/resources/org/project/trigger.mjs.map +1 -1
  104. package/resources/org/project/webhook.d.mts +86 -15
  105. package/resources/org/project/webhook.d.mts.map +1 -1
  106. package/resources/org/project/webhook.d.ts +86 -15
  107. package/resources/org/project/webhook.d.ts.map +1 -1
  108. package/resources/org/project/webhook.js +49 -2
  109. package/resources/org/project/webhook.js.map +1 -1
  110. package/resources/org/project/webhook.mjs +49 -2
  111. package/resources/org/project/webhook.mjs.map +1 -1
  112. package/resources/team-members.d.mts +7 -7
  113. package/resources/team-members.d.mts.map +1 -1
  114. package/resources/team-members.d.ts +7 -7
  115. package/resources/team-members.d.ts.map +1 -1
  116. package/resources/toolkits.d.mts +195 -7
  117. package/resources/toolkits.d.mts.map +1 -1
  118. package/resources/toolkits.d.ts +195 -7
  119. package/resources/toolkits.d.ts.map +1 -1
  120. package/resources/toolkits.js +14 -6
  121. package/resources/toolkits.js.map +1 -1
  122. package/resources/toolkits.mjs +14 -6
  123. package/resources/toolkits.mjs.map +1 -1
  124. package/resources/tools.d.mts +211 -44
  125. package/resources/tools.d.mts.map +1 -1
  126. package/resources/tools.d.ts +211 -44
  127. package/resources/tools.d.ts.map +1 -1
  128. package/resources/tools.js +62 -9
  129. package/resources/tools.js.map +1 -1
  130. package/resources/tools.mjs +62 -9
  131. package/resources/tools.mjs.map +1 -1
  132. package/resources/trigger-instances/index.d.mts +1 -1
  133. package/resources/trigger-instances/index.d.mts.map +1 -1
  134. package/resources/trigger-instances/index.d.ts +1 -1
  135. package/resources/trigger-instances/index.d.ts.map +1 -1
  136. package/resources/trigger-instances/trigger-instances.d.mts +86 -19
  137. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  138. package/resources/trigger-instances/trigger-instances.d.ts +86 -19
  139. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  140. package/resources/trigger-instances/trigger-instances.js +6 -6
  141. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  142. package/resources/trigger-instances/trigger-instances.mjs +6 -6
  143. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  144. package/resources/triggers-types.d.mts +96 -2
  145. package/resources/triggers-types.d.mts.map +1 -1
  146. package/resources/triggers-types.d.ts +96 -2
  147. package/resources/triggers-types.d.ts.map +1 -1
  148. package/resources/triggers-types.js +23 -1
  149. package/resources/triggers-types.js.map +1 -1
  150. package/resources/triggers-types.mjs +23 -1
  151. package/resources/triggers-types.mjs.map +1 -1
  152. package/src/client.ts +6 -6
  153. package/src/resources/auth-configs.ts +169 -29
  154. package/src/resources/connected-accounts.ts +80 -17
  155. package/src/resources/files.ts +75 -23
  156. package/src/resources/index.ts +3 -3
  157. package/src/resources/mcp/custom.ts +103 -0
  158. package/src/resources/mcp/index.ts +2 -3
  159. package/src/resources/mcp/mcp.ts +342 -256
  160. package/src/resources/migration.ts +11 -2
  161. package/src/resources/org/api-key.ts +23 -2
  162. package/src/resources/org/project/api-keys.ts +117 -22
  163. package/src/resources/org/project/project.ts +176 -4
  164. package/src/resources/org/project/trigger.ts +101 -1
  165. package/src/resources/org/project/webhook.ts +86 -15
  166. package/src/resources/team-members.ts +7 -7
  167. package/src/resources/toolkits.ts +200 -7
  168. package/src/resources/tools.ts +213 -46
  169. package/src/resources/trigger-instances/index.ts +1 -1
  170. package/src/resources/trigger-instances/trigger-instances.ts +106 -25
  171. package/src/resources/triggers-types.ts +96 -2
  172. package/src/version.ts +1 -1
  173. package/version.d.mts +1 -1
  174. package/version.d.ts +1 -1
  175. package/version.js +1 -1
  176. package/version.mjs +1 -1
  177. package/resources/mcp/command.d.mts +0 -37
  178. package/resources/mcp/command.d.mts.map +0 -1
  179. package/resources/mcp/command.d.ts +0 -37
  180. package/resources/mcp/command.d.ts.map +0 -1
  181. package/resources/mcp/command.js +0 -15
  182. package/resources/mcp/command.js.map +0 -1
  183. package/resources/mcp/command.mjs +0 -11
  184. package/resources/mcp/command.mjs.map +0 -1
  185. package/src/resources/mcp/command.ts +0 -50
@@ -16,6 +16,10 @@ import { path } from '../../internal/utils/path';
16
16
  export class TriggerInstances extends APIResource {
17
17
  handle: HandleAPI.Handle = new HandleAPI.Handle(this._client);
18
18
 
19
+ delete(triggerID: string, options?: RequestOptions): APIPromise<TriggerInstanceDeleteResponse> {
20
+ return this._client.delete(path`/api/v3/trigger_instances/delete/${triggerID}`, options);
21
+ }
22
+
19
23
  listActive(
20
24
  query: TriggerInstanceListActiveParams | null | undefined = {},
21
25
  options?: RequestOptions,
@@ -23,28 +27,31 @@ export class TriggerInstances extends APIResource {
23
27
  return this._client.get('/api/v3/trigger_instances/active', { query, ...options });
24
28
  }
25
29
 
26
- removeUpsert(slug: string, options?: RequestOptions): APIPromise<TriggerInstanceRemoveUpsertResponse> {
27
- return this._client.delete(path`/api/v3/trigger_instances/${slug}/upsert`, options);
28
- }
29
-
30
30
  updateStatus(
31
31
  status: 'enable' | 'disable',
32
32
  params: TriggerInstanceUpdateStatusParams,
33
33
  options?: RequestOptions,
34
34
  ): APIPromise<TriggerInstanceUpdateStatusResponse> {
35
- const { slug } = params;
36
- return this._client.patch(path`/api/v3/trigger_instances/${slug}/status/${status}`, options);
35
+ const { triggerId } = params;
36
+ return this._client.patch(path`/api/v3/trigger_instances/id/${triggerId}/${status}`, options);
37
37
  }
38
38
 
39
39
  upsert(
40
40
  slug: string,
41
- body: TriggerInstanceUpsertParams,
41
+ body: TriggerInstanceUpsertParams | null | undefined = {},
42
42
  options?: RequestOptions,
43
43
  ): APIPromise<TriggerInstanceUpsertResponse> {
44
44
  return this._client.post(path`/api/v3/trigger_instances/${slug}/upsert`, { body, ...options });
45
45
  }
46
46
  }
47
47
 
48
+ export interface TriggerInstanceDeleteResponse {
49
+ /**
50
+ * The ID of the deleted trigger instance
51
+ */
52
+ triggerId: string;
53
+ }
54
+
48
55
  export interface TriggerInstanceListActiveResponse {
49
56
  items: Array<TriggerInstanceListActiveResponse.Item>;
50
57
 
@@ -63,11 +70,22 @@ export namespace TriggerInstanceListActiveResponse {
63
70
  /**
64
71
  * ID of the connected account this trigger is associated with
65
72
  */
73
+ connected_account_id: string;
74
+
75
+ /**
76
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
77
+ * Please use connected_account_id instead.
78
+ */
66
79
  connectedAccountId: string;
67
80
 
68
81
  /**
69
82
  * ISO 8601 timestamp when the trigger instance was disabled, if applicable
70
83
  */
84
+ disabled_at: string | null;
85
+
86
+ /**
87
+ * ID of the user who disabled the trigger instance, if applicable
88
+ */
71
89
  disabledAt: string | null;
72
90
 
73
91
  /**
@@ -78,16 +96,34 @@ export namespace TriggerInstanceListActiveResponse {
78
96
  /**
79
97
  * Configuration for the trigger
80
98
  */
81
- triggerConfig: Record<string, unknown>;
99
+ trigger_config: Record<string, unknown>;
82
100
 
83
101
  /**
84
102
  * Name of the trigger
85
103
  */
104
+ trigger_name: string;
105
+
106
+ /**
107
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
108
+ * Please use trigger_config instead.
109
+ */
110
+ triggerConfig: Record<string, unknown>;
111
+
112
+ /**
113
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
114
+ * Please use trigger_name instead.
115
+ */
86
116
  triggerName: string;
87
117
 
88
118
  /**
89
119
  * ISO 8601 timestamp when the trigger instance was updated
90
120
  */
121
+ updated_at: string;
122
+
123
+ /**
124
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
125
+ * Please use updated_at instead.
126
+ */
91
127
  updatedAt: string;
92
128
 
93
129
  /**
@@ -98,7 +134,7 @@ export namespace TriggerInstanceListActiveResponse {
98
134
  /**
99
135
  * Additional data associated with the trigger instance
100
136
  */
101
- triggerData?: string;
137
+ trigger_data?: string;
102
138
 
103
139
  /**
104
140
  * Unique identifier of the trigger instance
@@ -112,20 +148,13 @@ export namespace TriggerInstanceListActiveResponse {
112
148
  */
113
149
  export interface Deprecated {
114
150
  /**
115
- * Deprecated createdAt for the trigger instance
151
+ * Deprecated created_at for the trigger instance
116
152
  */
117
153
  createdAt: string;
118
154
  }
119
155
  }
120
156
  }
121
157
 
122
- export interface TriggerInstanceRemoveUpsertResponse {
123
- /**
124
- * ID of the updated trigger
125
- */
126
- triggerId: string;
127
- }
128
-
129
158
  export interface TriggerInstanceUpdateStatusResponse {
130
159
  /**
131
160
  * Status of the operation
@@ -134,21 +163,44 @@ export interface TriggerInstanceUpdateStatusResponse {
134
163
  }
135
164
 
136
165
  export interface TriggerInstanceUpsertResponse {
166
+ deprecated: TriggerInstanceUpsertResponse.Deprecated;
167
+
137
168
  /**
138
169
  * ID of the updated trigger
139
170
  */
140
171
  triggerId: string;
141
172
  }
142
173
 
174
+ export namespace TriggerInstanceUpsertResponse {
175
+ export interface Deprecated {
176
+ /**
177
+ * ID of the updated trigger
178
+ */
179
+ uuid: string;
180
+ }
181
+ }
182
+
143
183
  export interface TriggerInstanceListActiveParams {
144
184
  /**
145
185
  * Array of auth config IDs to filter triggers by
146
186
  */
187
+ auth_config_ids?: Array<string> | null;
188
+
189
+ /**
190
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
191
+ * Please use auth_config_ids instead.
192
+ */
147
193
  authConfigIds?: Array<string> | null;
148
194
 
149
195
  /**
150
196
  * Array of connected account IDs to filter triggers by
151
197
  */
198
+ connected_account_ids?: Array<string> | null;
199
+
200
+ /**
201
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
202
+ * Please use connected_account_ids instead.
203
+ */
152
204
  connectedAccountIds?: Array<string> | null;
153
205
 
154
206
  /**
@@ -174,44 +226,73 @@ export interface TriggerInstanceListActiveParams {
174
226
  /**
175
227
  * When set to true, includes disabled triggers in the response.
176
228
  */
177
- showDisabled?: string | null;
229
+ show_disabled?: boolean | null;
230
+
231
+ /**
232
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
233
+ * Please use show_disabled instead.
234
+ */
235
+ showDisabled?: boolean | null;
178
236
 
179
237
  /**
180
238
  * Array of trigger IDs to filter triggers by
181
239
  */
182
- triggerIds?: Array<string> | null;
240
+ trigger_ids?: Array<string> | null;
183
241
 
184
242
  /**
185
243
  * Array of trigger names to filter triggers by
186
244
  */
245
+ trigger_names?: Array<string> | null;
246
+
247
+ /**
248
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
249
+ * Please use trigger_ids instead.
250
+ */
251
+ triggerIds?: Array<string> | null;
252
+
253
+ /**
254
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
255
+ * Please use trigger_names instead.
256
+ */
187
257
  triggerNames?: Array<string> | null;
188
258
  }
189
259
 
190
260
  export interface TriggerInstanceUpdateStatusParams {
191
261
  /**
192
- * The slug of the trigger instance
262
+ * The ID of the trigger instance to update
193
263
  */
194
- slug: string;
264
+ triggerId: string;
195
265
  }
196
266
 
197
267
  export interface TriggerInstanceUpsertParams {
198
268
  /**
199
- * Connection ID
269
+ * Connected account nanoid
270
+ */
271
+ connected_account_id?: string;
272
+
273
+ /**
274
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
275
+ * Please use connected_account_id instead.
200
276
  */
201
- connectedAuthId: string;
277
+ connectedAuthId?: string;
202
278
 
203
279
  /**
204
280
  * Trigger configuration
205
281
  */
206
- triggerConfig: Record<string, unknown>;
282
+ trigger_config?: Record<string, unknown>;
283
+
284
+ /**
285
+ * Trigger configuration (deprecated)
286
+ */
287
+ triggerConfig?: Record<string, unknown>;
207
288
  }
208
289
 
209
290
  TriggerInstances.Handle = Handle;
210
291
 
211
292
  export declare namespace TriggerInstances {
212
293
  export {
294
+ type TriggerInstanceDeleteResponse as TriggerInstanceDeleteResponse,
213
295
  type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse,
214
- type TriggerInstanceRemoveUpsertResponse as TriggerInstanceRemoveUpsertResponse,
215
296
  type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse,
216
297
  type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse,
217
298
  type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams,
@@ -9,13 +9,26 @@ export class TriggersTypes extends APIResource {
9
9
  /**
10
10
  * Retrieve detailed information about a specific trigger type using its slug
11
11
  * identifier
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const triggersType = await client.triggersTypes.retrieve(
16
+ * 'SLACK_NEW_MESSAGE',
17
+ * );
18
+ * ```
12
19
  */
13
20
  retrieve(slug: string, options?: RequestOptions): APIPromise<TriggersTypeRetrieveResponse> {
14
21
  return this._client.get(path`/api/v3/triggers_types/${slug}`, options);
15
22
  }
16
23
 
17
24
  /**
18
- * Retrieve a list of available trigger types with optional filtering by toolkit
25
+ * Retrieve a list of available trigger types with optional filtering by toolkit.
26
+ * Results are paginated and can be filtered by toolkit.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const triggersTypes = await client.triggersTypes.list();
31
+ * ```
19
32
  */
20
33
  list(
21
34
  query: TriggersTypeListParams | null | undefined = {},
@@ -24,33 +37,75 @@ export class TriggersTypes extends APIResource {
24
37
  return this._client.get('/api/v3/triggers_types', { query, ...options });
25
38
  }
26
39
 
40
+ /**
41
+ * Retrieves a list of all available trigger type enum values that can be used
42
+ * across the API
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const response = await client.triggersTypes.retrieveEnum();
47
+ * ```
48
+ */
27
49
  retrieveEnum(options?: RequestOptions): APIPromise<string> {
28
50
  return this._client.get('/api/v3/triggers_types/list/enum', options);
29
51
  }
30
52
  }
31
53
 
32
54
  export interface TriggersTypeRetrieveResponse {
55
+ /**
56
+ * Configuration parameters required for the trigger
57
+ */
33
58
  config: Record<string, unknown>;
34
59
 
60
+ /**
61
+ * Detailed description of what the trigger does and when it fires
62
+ */
35
63
  description: string;
36
64
 
65
+ /**
66
+ * Step-by-step instructions on how to set up and use this trigger
67
+ */
37
68
  instructions: string;
38
69
 
70
+ /**
71
+ * Display name of the trigger type
72
+ */
39
73
  name: string;
40
74
 
75
+ /**
76
+ * Structure of the event payload that will be delivered by this trigger
77
+ */
41
78
  payload: Record<string, unknown>;
42
79
 
80
+ /**
81
+ * Unique identifier for the trigger type
82
+ */
43
83
  slug: string;
44
84
 
85
+ /**
86
+ * Information about the toolkit that contains this trigger
87
+ */
45
88
  toolkit: TriggersTypeRetrieveResponse.Toolkit;
46
89
  }
47
90
 
48
91
  export namespace TriggersTypeRetrieveResponse {
92
+ /**
93
+ * Information about the toolkit that contains this trigger
94
+ */
49
95
  export interface Toolkit {
96
+ /**
97
+ * URL to the toolkit logo image
98
+ */
50
99
  logo: string;
51
100
 
101
+ /**
102
+ * Name of the toolkit that contains this trigger
103
+ */
52
104
  name: string;
53
105
 
106
+ /**
107
+ * Unique identifier for the associated toolkit
108
+ */
54
109
  uuid: string;
55
110
  }
56
111
  }
@@ -65,39 +120,78 @@ export interface TriggersTypeListResponse {
65
120
 
66
121
  export namespace TriggersTypeListResponse {
67
122
  export interface Item {
123
+ /**
124
+ * Configuration schema required to set up this trigger
125
+ */
68
126
  config: Record<string, unknown>;
69
127
 
128
+ /**
129
+ * Detailed description of what the trigger does
130
+ */
70
131
  description: string;
71
132
 
133
+ /**
134
+ * Human-readable name of the trigger
135
+ */
72
136
  name: string;
73
137
 
138
+ /**
139
+ * Schema of the data payload this trigger will deliver when it fires
140
+ */
74
141
  payload: Record<string, unknown>;
75
142
 
143
+ /**
144
+ * Unique identifier for the trigger type
145
+ */
76
146
  slug: string;
77
147
 
148
+ /**
149
+ * Information about the toolkit that provides this trigger
150
+ */
78
151
  toolkit: Item.Toolkit;
79
152
 
153
+ /**
154
+ * The trigger mechanism - either webhook (event-based) or poll (scheduled check)
155
+ */
80
156
  type: 'webhook' | 'poll';
81
157
  }
82
158
 
83
159
  export namespace Item {
160
+ /**
161
+ * Information about the toolkit that provides this trigger
162
+ */
84
163
  export interface Toolkit {
164
+ /**
165
+ * Name of the parent toolkit
166
+ */
85
167
  name: string;
86
168
 
169
+ /**
170
+ * Unique identifier for the parent toolkit
171
+ */
87
172
  slug: string;
88
173
  }
89
174
  }
90
175
  }
91
176
 
177
+ /**
178
+ * JSON string containing all trigger enum values
179
+ */
92
180
  export type TriggersTypeRetrieveEnumResponse = string;
93
181
 
94
182
  export interface TriggersTypeListParams {
183
+ /**
184
+ * Pagination cursor for fetching next page of results
185
+ */
95
186
  cursor?: string;
96
187
 
188
+ /**
189
+ * Number of items to return per page
190
+ */
97
191
  limit?: number | null;
98
192
 
99
193
  /**
100
- * Array of toolkit slugs
194
+ * Array of toolkit slugs to filter triggers by
101
195
  */
102
196
  toolkit_slugs?: Array<string> | null;
103
197
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.10'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.12'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.10";
1
+ export declare const VERSION = "0.1.0-alpha.12";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.10";
1
+ export declare const VERSION = "0.1.0-alpha.12";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-alpha.10'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.12'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-alpha.10'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.12'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,37 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- export declare class Command extends APIResource {
5
- /**
6
- * Generate CLI command to set up MCP server
7
- */
8
- generate(body: CommandGenerateParams, options?: RequestOptions): APIPromise<CommandGenerateResponse>;
9
- }
10
- export interface CommandGenerateResponse {
11
- /**
12
- * The generated command to run
13
- */
14
- command?: string;
15
- /**
16
- * The URL for the MCP server
17
- */
18
- url?: string;
19
- }
20
- export interface CommandGenerateParams {
21
- /**
22
- * The ID of the MCP server
23
- */
24
- id: string;
25
- /**
26
- * MCP client to generate command for
27
- */
28
- mcp_client: 'cursor' | 'claude' | 'windsurf';
29
- /**
30
- * Time to live for the command
31
- */
32
- ttl?: '1d' | '3d' | '1 month' | 'no expiration';
33
- }
34
- export declare namespace Command {
35
- export { type CommandGenerateResponse as CommandGenerateResponse, type CommandGenerateParams as CommandGenerateParams, };
36
- }
37
- //# sourceMappingURL=command.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.mts","sourceRoot":"","sources":["../../src/resources/mcp/command.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGrG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;IAE7C;;OAEG;IACH,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,eAAe,CAAC;CACjD;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -1,37 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
4
- export declare class Command extends APIResource {
5
- /**
6
- * Generate CLI command to set up MCP server
7
- */
8
- generate(body: CommandGenerateParams, options?: RequestOptions): APIPromise<CommandGenerateResponse>;
9
- }
10
- export interface CommandGenerateResponse {
11
- /**
12
- * The generated command to run
13
- */
14
- command?: string;
15
- /**
16
- * The URL for the MCP server
17
- */
18
- url?: string;
19
- }
20
- export interface CommandGenerateParams {
21
- /**
22
- * The ID of the MCP server
23
- */
24
- id: string;
25
- /**
26
- * MCP client to generate command for
27
- */
28
- mcp_client: 'cursor' | 'claude' | 'windsurf';
29
- /**
30
- * Time to live for the command
31
- */
32
- ttl?: '1d' | '3d' | '1 month' | 'no expiration';
33
- }
34
- export declare namespace Command {
35
- export { type CommandGenerateResponse as CommandGenerateResponse, type CommandGenerateParams as CommandGenerateParams, };
36
- }
37
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/resources/mcp/command.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGrG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;IAE7C;;OAEG;IACH,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,eAAe,CAAC;CACjD;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Command = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- class Command extends resource_1.APIResource {
7
- /**
8
- * Generate CLI command to set up MCP server
9
- */
10
- generate(body, options) {
11
- return this._client.post('/api/v3/mcp/command/generate', { body, ...options });
12
- }
13
- }
14
- exports.Command = Command;
15
- //# sourceMappingURL=command.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/resources/mcp/command.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,IAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAPD,0BAOC"}
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- export class Command extends APIResource {
4
- /**
5
- * Generate CLI command to set up MCP server
6
- */
7
- generate(body, options) {
8
- return this._client.post('/api/v3/mcp/command/generate', { body, ...options });
9
- }
10
- }
11
- //# sourceMappingURL=command.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.mjs","sourceRoot":"","sources":["../../src/resources/mcp/command.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,IAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
@@ -1,50 +0,0 @@
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 Command extends APIResource {
8
- /**
9
- * Generate CLI command to set up MCP server
10
- */
11
- generate(body: CommandGenerateParams, options?: RequestOptions): APIPromise<CommandGenerateResponse> {
12
- return this._client.post('/api/v3/mcp/command/generate', { body, ...options });
13
- }
14
- }
15
-
16
- export interface CommandGenerateResponse {
17
- /**
18
- * The generated command to run
19
- */
20
- command?: string;
21
-
22
- /**
23
- * The URL for the MCP server
24
- */
25
- url?: string;
26
- }
27
-
28
- export interface CommandGenerateParams {
29
- /**
30
- * The ID of the MCP server
31
- */
32
- id: string;
33
-
34
- /**
35
- * MCP client to generate command for
36
- */
37
- mcp_client: 'cursor' | 'claude' | 'windsurf';
38
-
39
- /**
40
- * Time to live for the command
41
- */
42
- ttl?: '1d' | '3d' | '1 month' | 'no expiration';
43
- }
44
-
45
- export declare namespace Command {
46
- export {
47
- type CommandGenerateResponse as CommandGenerateResponse,
48
- type CommandGenerateParams as CommandGenerateParams,
49
- };
50
- }