@composio/client 0.1.0-alpha.24 → 0.1.0-alpha.26
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 +46 -0
- package/client.d.mts +4 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -5
- package/client.d.ts.map +1 -1
- package/client.js +1 -3
- package/client.js.map +1 -1
- package/client.mjs +1 -3
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +42 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +42 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/types.d.mts +8 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +26 -5
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +26 -5
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +43 -11
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +43 -11
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/connected-accounts.d.mts +2153 -633
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +2153 -633
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +7 -2
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +7 -2
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +14 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +14 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +1 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +5 -9
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +5 -9
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +1 -1
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/toolkits.d.mts +17 -2
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +17 -2
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +36 -13
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +36 -13
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +24 -7
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +24 -7
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts +40 -19
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +40 -19
- package/resources/triggers-types.d.ts.map +1 -1
- package/src/client.ts +5 -5
- package/src/internal/request-options.ts +53 -0
- package/src/internal/types.ts +9 -6
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +32 -7
- package/src/resources/auth-configs.ts +34 -11
- package/src/resources/connected-accounts.ts +4045 -1211
- package/src/resources/files.ts +18 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/mcp/mcp.ts +6 -11
- package/src/resources/toolkits.ts +23 -2
- package/src/resources/tools.ts +20 -13
- package/src/resources/trigger-instances/trigger-instances.ts +19 -7
- package/src/resources/triggers-types.ts +36 -19
- 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/v3/auth/auth.d.mts +0 -10
- package/resources/v3/auth/auth.d.mts.map +0 -1
- package/resources/v3/auth/auth.d.ts +0 -10
- package/resources/v3/auth/auth.d.ts.map +0 -1
- package/resources/v3/auth/auth.js +0 -17
- package/resources/v3/auth/auth.js.map +0 -1
- package/resources/v3/auth/auth.mjs +0 -12
- package/resources/v3/auth/auth.mjs.map +0 -1
- package/resources/v3/auth/index.d.mts +0 -3
- package/resources/v3/auth/index.d.mts.map +0 -1
- package/resources/v3/auth/index.d.ts +0 -3
- package/resources/v3/auth/index.d.ts.map +0 -1
- package/resources/v3/auth/index.js +0 -9
- package/resources/v3/auth/index.js.map +0 -1
- package/resources/v3/auth/index.mjs +0 -4
- package/resources/v3/auth/index.mjs.map +0 -1
- package/resources/v3/auth/session.d.mts +0 -246
- package/resources/v3/auth/session.d.mts.map +0 -1
- package/resources/v3/auth/session.d.ts +0 -246
- package/resources/v3/auth/session.d.ts.map +0 -1
- package/resources/v3/auth/session.js +0 -25
- package/resources/v3/auth/session.js.map +0 -1
- package/resources/v3/auth/session.mjs +0 -21
- package/resources/v3/auth/session.mjs.map +0 -1
- package/resources/v3/auth.d.mts +0 -2
- package/resources/v3/auth.d.mts.map +0 -1
- package/resources/v3/auth.d.ts +0 -2
- package/resources/v3/auth.d.ts.map +0 -1
- package/resources/v3/auth.js +0 -6
- package/resources/v3/auth.js.map +0 -1
- package/resources/v3/auth.mjs +0 -3
- package/resources/v3/auth.mjs.map +0 -1
- package/resources/v3/cli.d.mts +0 -167
- package/resources/v3/cli.d.mts.map +0 -1
- package/resources/v3/cli.d.ts +0 -167
- package/resources/v3/cli.d.ts.map +0 -1
- package/resources/v3/cli.js +0 -55
- package/resources/v3/cli.js.map +0 -1
- package/resources/v3/cli.mjs +0 -51
- package/resources/v3/cli.mjs.map +0 -1
- package/resources/v3/index.d.mts +0 -5
- package/resources/v3/index.d.mts.map +0 -1
- package/resources/v3/index.d.ts +0 -5
- package/resources/v3/index.d.ts.map +0 -1
- package/resources/v3/index.js +0 -13
- package/resources/v3/index.js.map +0 -1
- package/resources/v3/index.mjs +0 -6
- package/resources/v3/index.mjs.map +0 -1
- package/resources/v3/internal/action-execution.d.mts +0 -153
- package/resources/v3/internal/action-execution.d.mts.map +0 -1
- package/resources/v3/internal/action-execution.d.ts +0 -153
- package/resources/v3/internal/action-execution.d.ts.map +0 -1
- package/resources/v3/internal/action-execution.js +0 -38
- package/resources/v3/internal/action-execution.js.map +0 -1
- package/resources/v3/internal/action-execution.mjs +0 -34
- package/resources/v3/internal/action-execution.mjs.map +0 -1
- package/resources/v3/internal/index.d.mts +0 -4
- package/resources/v3/internal/index.d.mts.map +0 -1
- package/resources/v3/internal/index.d.ts +0 -4
- package/resources/v3/internal/index.d.ts.map +0 -1
- package/resources/v3/internal/index.js +0 -11
- package/resources/v3/internal/index.js.map +0 -1
- package/resources/v3/internal/index.mjs +0 -5
- package/resources/v3/internal/index.mjs.map +0 -1
- package/resources/v3/internal/internal.d.mts +0 -14
- package/resources/v3/internal/internal.d.mts.map +0 -1
- package/resources/v3/internal/internal.d.ts +0 -14
- package/resources/v3/internal/internal.d.ts.map +0 -1
- package/resources/v3/internal/internal.js +0 -21
- package/resources/v3/internal/internal.js.map +0 -1
- package/resources/v3/internal/internal.mjs +0 -16
- package/resources/v3/internal/internal.mjs.map +0 -1
- package/resources/v3/internal/trigger.d.mts +0 -84
- package/resources/v3/internal/trigger.d.mts.map +0 -1
- package/resources/v3/internal/trigger.d.ts +0 -84
- package/resources/v3/internal/trigger.d.ts.map +0 -1
- package/resources/v3/internal/trigger.js +0 -23
- package/resources/v3/internal/trigger.js.map +0 -1
- package/resources/v3/internal/trigger.mjs +0 -19
- package/resources/v3/internal/trigger.mjs.map +0 -1
- package/resources/v3/internal.d.mts +0 -2
- package/resources/v3/internal.d.mts.map +0 -1
- package/resources/v3/internal.d.ts +0 -2
- package/resources/v3/internal.d.ts.map +0 -1
- package/resources/v3/internal.js +0 -6
- package/resources/v3/internal.js.map +0 -1
- package/resources/v3/internal.mjs +0 -3
- package/resources/v3/internal.mjs.map +0 -1
- package/resources/v3/v3.d.mts +0 -18
- package/resources/v3/v3.d.mts.map +0 -1
- package/resources/v3/v3.d.ts +0 -18
- package/resources/v3/v3.d.ts.map +0 -1
- package/resources/v3/v3.js +0 -25
- package/resources/v3/v3.js.map +0 -1
- package/resources/v3/v3.mjs +0 -20
- package/resources/v3/v3.mjs.map +0 -1
- package/resources/v3.d.mts +0 -2
- package/resources/v3.d.mts.map +0 -1
- package/resources/v3.d.ts +0 -2
- package/resources/v3.d.ts.map +0 -1
- package/resources/v3.js +0 -6
- package/resources/v3.js.map +0 -1
- package/resources/v3.mjs +0 -3
- package/resources/v3.mjs.map +0 -1
- package/src/resources/v3/auth/auth.ts +0 -15
- package/src/resources/v3/auth/index.ts +0 -4
- package/src/resources/v3/auth/session.ts +0 -298
- package/src/resources/v3/auth.ts +0 -3
- package/src/resources/v3/cli.ts +0 -209
- package/src/resources/v3/index.ts +0 -13
- package/src/resources/v3/internal/action-execution.ts +0 -236
- package/src/resources/v3/internal/index.ts +0 -10
- package/src/resources/v3/internal/internal.ts +0 -35
- package/src/resources/v3/internal/trigger.ts +0 -122
- package/src/resources/v3/internal.ts +0 -3
- package/src/resources/v3/v3.ts +0 -41
- package/src/resources/v3.ts +0 -3
package/src/resources/files.ts
CHANGED
|
@@ -45,11 +45,15 @@ export class Files extends APIResource {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export interface FileListResponse {
|
|
48
|
+
current_page: number;
|
|
49
|
+
|
|
48
50
|
items: Array<FileListResponse.Item>;
|
|
49
51
|
|
|
50
|
-
|
|
52
|
+
total_items: number;
|
|
51
53
|
|
|
52
54
|
total_pages: number;
|
|
55
|
+
|
|
56
|
+
next_cursor?: string | null;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
export namespace FileListResponse {
|
|
@@ -179,6 +183,19 @@ export namespace FileCreatePresignedURLResponse {
|
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
export interface FileListParams {
|
|
186
|
+
/**
|
|
187
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
188
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
189
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
190
|
+
* required for the first page.
|
|
191
|
+
*/
|
|
192
|
+
cursor?: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Number of items per page
|
|
196
|
+
*/
|
|
197
|
+
limit?: number | null;
|
|
198
|
+
|
|
182
199
|
/**
|
|
183
200
|
* Filter files by action slug. Example: "convert-to-pdf"
|
|
184
201
|
*/
|
package/src/resources/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ export {
|
|
|
23
23
|
type ConnectedAccountUpdateStatusResponse,
|
|
24
24
|
type ConnectedAccountCreateParams,
|
|
25
25
|
type ConnectedAccountListParams,
|
|
26
|
+
type ConnectedAccountRefreshParams,
|
|
26
27
|
type ConnectedAccountUpdateStatusParams,
|
|
27
28
|
} from './connected-accounts';
|
|
28
29
|
export {
|
|
@@ -97,4 +98,3 @@ export {
|
|
|
97
98
|
type TriggersTypeRetrieveEnumResponse,
|
|
98
99
|
type TriggersTypeListParams,
|
|
99
100
|
} from './triggers-types';
|
|
100
|
-
export { V3 } from './v3/v3';
|
package/src/resources/mcp/mcp.ts
CHANGED
|
@@ -24,8 +24,8 @@ export class Mcp extends APIResource {
|
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
26
26
|
* const mcp = await client.mcp.create({
|
|
27
|
-
* name: 'GitHub Integration Server',
|
|
28
27
|
* auth_config_ids: ['auth_cfg_abc123def456'],
|
|
28
|
+
* name: 'GitHub Integration Server',
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
@@ -696,6 +696,11 @@ export namespace McpValidateResponse {
|
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
export interface McpCreateParams {
|
|
699
|
+
/**
|
|
700
|
+
* ID references to existing authentication configurations
|
|
701
|
+
*/
|
|
702
|
+
auth_config_ids: Array<string>;
|
|
703
|
+
|
|
699
704
|
/**
|
|
700
705
|
* Human-readable name to identify this MCP server instance (4-30 characters,
|
|
701
706
|
* alphanumeric, spaces, and hyphens only)
|
|
@@ -708,20 +713,10 @@ export interface McpCreateParams {
|
|
|
708
713
|
*/
|
|
709
714
|
allowed_tools?: Array<string>;
|
|
710
715
|
|
|
711
|
-
/**
|
|
712
|
-
* ID references to existing authentication configurations
|
|
713
|
-
*/
|
|
714
|
-
auth_config_ids?: Array<string>;
|
|
715
|
-
|
|
716
716
|
/**
|
|
717
717
|
* Whether the MCP server is managed by Composio
|
|
718
718
|
*/
|
|
719
719
|
managed_auth_via_composio?: boolean;
|
|
720
|
-
|
|
721
|
-
/**
|
|
722
|
-
* Time-to-live duration for this MCP server
|
|
723
|
-
*/
|
|
724
|
-
ttl?: '1d' | '3d' | '1 month' | 'no expiration';
|
|
725
720
|
}
|
|
726
721
|
|
|
727
722
|
export interface McpUpdateParams {
|
|
@@ -290,11 +290,15 @@ export namespace ToolkitRetrieveResponse {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
export interface ToolkitListResponse {
|
|
293
|
+
current_page: number;
|
|
294
|
+
|
|
293
295
|
items: Array<ToolkitListResponse.Item>;
|
|
294
296
|
|
|
295
|
-
|
|
297
|
+
total_items: number;
|
|
296
298
|
|
|
297
299
|
total_pages: number;
|
|
300
|
+
|
|
301
|
+
next_cursor?: string | null;
|
|
298
302
|
}
|
|
299
303
|
|
|
300
304
|
export namespace ToolkitListResponse {
|
|
@@ -414,11 +418,15 @@ export namespace ToolkitListResponse {
|
|
|
414
418
|
}
|
|
415
419
|
|
|
416
420
|
export interface ToolkitRetrieveCategoriesResponse {
|
|
421
|
+
current_page: number;
|
|
422
|
+
|
|
417
423
|
items: Array<ToolkitRetrieveCategoriesResponse.Item>;
|
|
418
424
|
|
|
419
|
-
|
|
425
|
+
total_items: number;
|
|
420
426
|
|
|
421
427
|
total_pages: number;
|
|
428
|
+
|
|
429
|
+
next_cursor?: string | null;
|
|
422
430
|
}
|
|
423
431
|
|
|
424
432
|
export namespace ToolkitRetrieveCategoriesResponse {
|
|
@@ -444,11 +452,24 @@ export interface ToolkitListParams {
|
|
|
444
452
|
*/
|
|
445
453
|
category?: string;
|
|
446
454
|
|
|
455
|
+
/**
|
|
456
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
457
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
458
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
459
|
+
* required for the first page.
|
|
460
|
+
*/
|
|
461
|
+
cursor?: string;
|
|
462
|
+
|
|
447
463
|
/**
|
|
448
464
|
* Whether to include local toolkits in the results
|
|
449
465
|
*/
|
|
450
466
|
is_local?: boolean | null;
|
|
451
467
|
|
|
468
|
+
/**
|
|
469
|
+
* Number of items per page
|
|
470
|
+
*/
|
|
471
|
+
limit?: number | null;
|
|
472
|
+
|
|
452
473
|
/**
|
|
453
474
|
* Filter toolkits by who manages them
|
|
454
475
|
*/
|
package/src/resources/tools.ts
CHANGED
|
@@ -125,7 +125,7 @@ export interface ToolRetrieveResponse {
|
|
|
125
125
|
/**
|
|
126
126
|
* Schema definition of required input parameters for the tool
|
|
127
127
|
*/
|
|
128
|
-
input_parameters:
|
|
128
|
+
input_parameters: { [key: string]: unknown };
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Human-readable display name of the tool
|
|
@@ -140,7 +140,7 @@ export interface ToolRetrieveResponse {
|
|
|
140
140
|
/**
|
|
141
141
|
* Schema definition of return values from the tool
|
|
142
142
|
*/
|
|
143
|
-
output_parameters:
|
|
143
|
+
output_parameters: { [key: string]: unknown };
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* List of scopes associated with the tool
|
|
@@ -218,11 +218,15 @@ export namespace ToolRetrieveResponse {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
export interface ToolListResponse {
|
|
221
|
+
current_page: number;
|
|
222
|
+
|
|
221
223
|
items: Array<ToolListResponse.Item>;
|
|
222
224
|
|
|
223
|
-
|
|
225
|
+
total_items: number;
|
|
224
226
|
|
|
225
227
|
total_pages: number;
|
|
228
|
+
|
|
229
|
+
next_cursor?: string | null;
|
|
226
230
|
}
|
|
227
231
|
|
|
228
232
|
export namespace ToolListResponse {
|
|
@@ -242,7 +246,7 @@ export namespace ToolListResponse {
|
|
|
242
246
|
/**
|
|
243
247
|
* Schema definition of required input parameters for the tool
|
|
244
248
|
*/
|
|
245
|
-
input_parameters:
|
|
249
|
+
input_parameters: { [key: string]: unknown };
|
|
246
250
|
|
|
247
251
|
/**
|
|
248
252
|
* Human-readable display name of the tool
|
|
@@ -257,7 +261,7 @@ export namespace ToolListResponse {
|
|
|
257
261
|
/**
|
|
258
262
|
* Schema definition of return values from the tool
|
|
259
263
|
*/
|
|
260
|
-
output_parameters:
|
|
264
|
+
output_parameters: { [key: string]: unknown };
|
|
261
265
|
|
|
262
266
|
/**
|
|
263
267
|
* List of scopes associated with the tool
|
|
@@ -339,7 +343,7 @@ export interface ToolExecuteResponse {
|
|
|
339
343
|
/**
|
|
340
344
|
* Tool execution output data that varies based on the specific tool
|
|
341
345
|
*/
|
|
342
|
-
data:
|
|
346
|
+
data: { [key: string]: unknown };
|
|
343
347
|
|
|
344
348
|
/**
|
|
345
349
|
* Error message if the tool execution was not successful (null if successful)
|
|
@@ -367,7 +371,7 @@ export interface ToolGetInputResponse {
|
|
|
367
371
|
* Key-value pairs of arguments required by the tool to accomplish the described
|
|
368
372
|
* task
|
|
369
373
|
*/
|
|
370
|
-
arguments?:
|
|
374
|
+
arguments?: { [key: string]: unknown };
|
|
371
375
|
|
|
372
376
|
/**
|
|
373
377
|
* Error message if the arguments could not be generated (null if successful)
|
|
@@ -389,7 +393,7 @@ export interface ToolProxyResponse {
|
|
|
389
393
|
/**
|
|
390
394
|
* The HTTP headers returned from the proxied API
|
|
391
395
|
*/
|
|
392
|
-
headers?:
|
|
396
|
+
headers?: { [key: string]: string };
|
|
393
397
|
}
|
|
394
398
|
|
|
395
399
|
/**
|
|
@@ -399,7 +403,10 @@ export type ToolRetrieveEnumResponse = string;
|
|
|
399
403
|
|
|
400
404
|
export interface ToolListParams {
|
|
401
405
|
/**
|
|
402
|
-
*
|
|
406
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
407
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
408
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
409
|
+
* required for the first page.
|
|
403
410
|
*/
|
|
404
411
|
cursor?: string;
|
|
405
412
|
|
|
@@ -409,9 +416,9 @@ export interface ToolListParams {
|
|
|
409
416
|
important?: 'true' | 'false';
|
|
410
417
|
|
|
411
418
|
/**
|
|
412
|
-
*
|
|
419
|
+
* Number of items per page
|
|
413
420
|
*/
|
|
414
|
-
limit?:
|
|
421
|
+
limit?: number | null;
|
|
415
422
|
|
|
416
423
|
/**
|
|
417
424
|
* Array of scopes to filter tools by)
|
|
@@ -449,7 +456,7 @@ export interface ToolExecuteParams {
|
|
|
449
456
|
/**
|
|
450
457
|
* Key-value pairs of arguments required by the tool (mutually exclusive with text)
|
|
451
458
|
*/
|
|
452
|
-
arguments?:
|
|
459
|
+
arguments?: { [key: string]: unknown };
|
|
453
460
|
|
|
454
461
|
/**
|
|
455
462
|
* Unique identifier for the connected account to use for authentication
|
|
@@ -498,7 +505,7 @@ export namespace ToolExecuteParams {
|
|
|
498
505
|
* The body to be sent to the endpoint for authentication. This is a JSON object.
|
|
499
506
|
* Note: This is very rarely needed and is only required by very few apps.
|
|
500
507
|
*/
|
|
501
|
-
body?:
|
|
508
|
+
body?: { [key: string]: unknown };
|
|
502
509
|
}
|
|
503
510
|
|
|
504
511
|
export namespace CustomAuthParams {
|
|
@@ -36,11 +36,15 @@ export class TriggerInstances extends APIResource {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export interface TriggerInstanceListActiveResponse {
|
|
39
|
+
current_page: number;
|
|
40
|
+
|
|
39
41
|
items: Array<TriggerInstanceListActiveResponse.Item>;
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
total_items: number;
|
|
42
44
|
|
|
43
45
|
total_pages: number;
|
|
46
|
+
|
|
47
|
+
next_cursor?: string | null;
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
export namespace TriggerInstanceListActiveResponse {
|
|
@@ -73,12 +77,12 @@ export namespace TriggerInstanceListActiveResponse {
|
|
|
73
77
|
/**
|
|
74
78
|
* State of the trigger instance
|
|
75
79
|
*/
|
|
76
|
-
state:
|
|
80
|
+
state: { [key: string]: unknown };
|
|
77
81
|
|
|
78
82
|
/**
|
|
79
83
|
* Configuration for the trigger
|
|
80
84
|
*/
|
|
81
|
-
trigger_config:
|
|
85
|
+
trigger_config: { [key: string]: unknown };
|
|
82
86
|
|
|
83
87
|
/**
|
|
84
88
|
* Name of the trigger
|
|
@@ -157,6 +161,14 @@ export interface TriggerInstanceListActiveParams {
|
|
|
157
161
|
|
|
158
162
|
connectedAccountIds?: string;
|
|
159
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
166
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
167
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
168
|
+
* required for the first page.
|
|
169
|
+
*/
|
|
170
|
+
cursor?: string;
|
|
171
|
+
|
|
160
172
|
/**
|
|
161
173
|
* Array of auth config UUIDs to filter triggers by
|
|
162
174
|
*/
|
|
@@ -168,9 +180,9 @@ export interface TriggerInstanceListActiveParams {
|
|
|
168
180
|
deprecatedConnectedAccountUuids?: Array<string> | null;
|
|
169
181
|
|
|
170
182
|
/**
|
|
171
|
-
* Number of items
|
|
183
|
+
* Number of items per page
|
|
172
184
|
*/
|
|
173
|
-
limit?: number;
|
|
185
|
+
limit?: number | null;
|
|
174
186
|
|
|
175
187
|
/**
|
|
176
188
|
* Page number for pagination. Starts from 1.
|
|
@@ -208,12 +220,12 @@ export interface TriggerInstanceUpsertParams {
|
|
|
208
220
|
/**
|
|
209
221
|
* Trigger configuration
|
|
210
222
|
*/
|
|
211
|
-
trigger_config?:
|
|
223
|
+
trigger_config?: { [key: string]: unknown };
|
|
212
224
|
|
|
213
225
|
/**
|
|
214
226
|
* Trigger configuration (deprecated)
|
|
215
227
|
*/
|
|
216
|
-
triggerConfig?:
|
|
228
|
+
triggerConfig?: { [key: string]: unknown };
|
|
217
229
|
}
|
|
218
230
|
|
|
219
231
|
TriggerInstances.Handle = Handle;
|
|
@@ -53,12 +53,12 @@ export class TriggersTypes extends APIResource {
|
|
|
53
53
|
|
|
54
54
|
export interface TriggersTypeRetrieveResponse {
|
|
55
55
|
/**
|
|
56
|
-
* Configuration
|
|
56
|
+
* Configuration schema required to set up this trigger
|
|
57
57
|
*/
|
|
58
|
-
config:
|
|
58
|
+
config: { [key: string]: unknown };
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Detailed description of what the trigger does
|
|
61
|
+
* Detailed description of what the trigger does
|
|
62
62
|
*/
|
|
63
63
|
description: string;
|
|
64
64
|
|
|
@@ -68,14 +68,14 @@ export interface TriggersTypeRetrieveResponse {
|
|
|
68
68
|
instructions: string;
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Human-readable name of the trigger
|
|
72
72
|
*/
|
|
73
73
|
name: string;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Schema of the data payload this trigger will deliver when it fires
|
|
77
77
|
*/
|
|
78
|
-
payload:
|
|
78
|
+
payload: { [key: string]: unknown };
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* Unique identifier for the trigger type
|
|
@@ -83,39 +83,48 @@ export interface TriggersTypeRetrieveResponse {
|
|
|
83
83
|
slug: string;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
* Information about the toolkit that
|
|
86
|
+
* Information about the toolkit that provides this trigger
|
|
87
87
|
*/
|
|
88
88
|
toolkit: TriggersTypeRetrieveResponse.Toolkit;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The trigger mechanism - either webhook (event-based) or poll (scheduled check)
|
|
92
|
+
*/
|
|
93
|
+
type: 'webhook' | 'poll';
|
|
89
94
|
}
|
|
90
95
|
|
|
91
96
|
export namespace TriggersTypeRetrieveResponse {
|
|
92
97
|
/**
|
|
93
|
-
* Information about the toolkit that
|
|
98
|
+
* Information about the toolkit that provides this trigger
|
|
94
99
|
*/
|
|
95
100
|
export interface Toolkit {
|
|
96
101
|
/**
|
|
97
|
-
*
|
|
102
|
+
* Logo of the toolkit
|
|
98
103
|
*/
|
|
99
104
|
logo: string;
|
|
100
105
|
|
|
101
106
|
/**
|
|
102
|
-
*
|
|
107
|
+
* Deprecated: Use slug instead
|
|
103
108
|
*/
|
|
104
|
-
|
|
109
|
+
name: string;
|
|
105
110
|
|
|
106
111
|
/**
|
|
107
|
-
* Unique identifier for the
|
|
112
|
+
* Unique identifier for the parent toolkit
|
|
108
113
|
*/
|
|
109
|
-
|
|
114
|
+
slug: string;
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
|
|
113
118
|
export interface TriggersTypeListResponse {
|
|
119
|
+
current_page: number;
|
|
120
|
+
|
|
114
121
|
items: Array<TriggersTypeListResponse.Item>;
|
|
115
122
|
|
|
116
|
-
|
|
123
|
+
total_items: number;
|
|
117
124
|
|
|
118
125
|
total_pages: number;
|
|
126
|
+
|
|
127
|
+
next_cursor?: string | null;
|
|
119
128
|
}
|
|
120
129
|
|
|
121
130
|
export namespace TriggersTypeListResponse {
|
|
@@ -123,13 +132,18 @@ export namespace TriggersTypeListResponse {
|
|
|
123
132
|
/**
|
|
124
133
|
* Configuration schema required to set up this trigger
|
|
125
134
|
*/
|
|
126
|
-
config:
|
|
135
|
+
config: { [key: string]: unknown };
|
|
127
136
|
|
|
128
137
|
/**
|
|
129
138
|
* Detailed description of what the trigger does
|
|
130
139
|
*/
|
|
131
140
|
description: string;
|
|
132
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Step-by-step instructions on how to set up and use this trigger
|
|
144
|
+
*/
|
|
145
|
+
instructions: string;
|
|
146
|
+
|
|
133
147
|
/**
|
|
134
148
|
* Human-readable name of the trigger
|
|
135
149
|
*/
|
|
@@ -138,7 +152,7 @@ export namespace TriggersTypeListResponse {
|
|
|
138
152
|
/**
|
|
139
153
|
* Schema of the data payload this trigger will deliver when it fires
|
|
140
154
|
*/
|
|
141
|
-
payload:
|
|
155
|
+
payload: { [key: string]: unknown };
|
|
142
156
|
|
|
143
157
|
/**
|
|
144
158
|
* Unique identifier for the trigger type
|
|
@@ -167,7 +181,7 @@ export namespace TriggersTypeListResponse {
|
|
|
167
181
|
logo: string;
|
|
168
182
|
|
|
169
183
|
/**
|
|
170
|
-
*
|
|
184
|
+
* Deprecated: Use slug instead
|
|
171
185
|
*/
|
|
172
186
|
name: string;
|
|
173
187
|
|
|
@@ -186,12 +200,15 @@ export type TriggersTypeRetrieveEnumResponse = string;
|
|
|
186
200
|
|
|
187
201
|
export interface TriggersTypeListParams {
|
|
188
202
|
/**
|
|
189
|
-
*
|
|
203
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
204
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
205
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
206
|
+
* required for the first page.
|
|
190
207
|
*/
|
|
191
208
|
cursor?: string;
|
|
192
209
|
|
|
193
210
|
/**
|
|
194
|
-
* Number of items
|
|
211
|
+
* Number of items per page
|
|
195
212
|
*/
|
|
196
213
|
limit?: number | null;
|
|
197
214
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.26'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.26";
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.26";
|
|
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.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.26'; // 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.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.26'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as SessionAPI from "./session.mjs";
|
|
3
|
-
import { Session, SessionRetrieveInfoResponse } from "./session.mjs";
|
|
4
|
-
export declare class Auth extends APIResource {
|
|
5
|
-
session: SessionAPI.Session;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace Auth {
|
|
8
|
-
export { Session as Session, type SessionRetrieveInfoResponse as SessionRetrieveInfoResponse };
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=auth.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../../src/resources/v3/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,2BAA2B,EAAE;AAE/C,qBAAa,IAAK,SAAQ,WAAW;IACnC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAChG"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as SessionAPI from "./session.js";
|
|
3
|
-
import { Session, SessionRetrieveInfoResponse } from "./session.js";
|
|
4
|
-
export declare class Auth extends APIResource {
|
|
5
|
-
session: SessionAPI.Session;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace Auth {
|
|
8
|
-
export { Session as Session, type SessionRetrieveInfoResponse as SessionRetrieveInfoResponse };
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/resources/v3/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,2BAA2B,EAAE;AAE/C,qBAAa,IAAK,SAAQ,WAAW;IACnC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAChG"}
|
|
@@ -1,17 +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.Auth = void 0;
|
|
5
|
-
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const SessionAPI = tslib_1.__importStar(require("./session.js"));
|
|
8
|
-
const session_1 = require("./session.js");
|
|
9
|
-
class Auth extends resource_1.APIResource {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.session = new SessionAPI.Session(this._client);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Auth = Auth;
|
|
16
|
-
Auth.Session = session_1.Session;
|
|
17
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/resources/v3/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAAiE;AAEjE,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAFD,oBAEC;AAED,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import * as SessionAPI from "./session.mjs";
|
|
4
|
-
import { Session } from "./session.mjs";
|
|
5
|
-
export class Auth extends APIResource {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
this.session = new SessionAPI.Session(this._client);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
Auth.Session = Session;
|
|
12
|
-
//# sourceMappingURL=auth.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/resources/v3/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAA+B;AAE/C,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v3/auth/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE,KAAK,2BAA2B,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v3/auth/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE,KAAK,2BAA2B,EAAE"}
|
|
@@ -1,9 +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.Session = exports.Auth = void 0;
|
|
5
|
-
var auth_1 = require("./auth.js");
|
|
6
|
-
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return auth_1.Auth; } });
|
|
7
|
-
var session_1 = require("./session.js");
|
|
8
|
-
Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return session_1.Session; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v3/auth/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,wCAAsE;AAA7D,kGAAA,OAAO,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v3/auth/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAoC"}
|