@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
package/resources/files.d.mts
CHANGED
|
@@ -3,11 +3,29 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Files extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Retrieves a list of files associated with the authenticated project. Results can
|
|
7
|
+
* be filtered by toolkit and tool slugs.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const files = await client.files.list();
|
|
12
|
+
* ```
|
|
7
13
|
*/
|
|
8
14
|
list(query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
9
15
|
/**
|
|
10
|
-
*
|
|
16
|
+
* Generates a presigned URL for uploading a file to S3. This endpoint handles
|
|
17
|
+
* deduplication by checking if a file with the same MD5 hash already exists.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response = await client.files.createPresignedURL({
|
|
22
|
+
* filename: 'photo.jpg',
|
|
23
|
+
* md5: 'd41d8cd98f00b204e9800998ecf8427e',
|
|
24
|
+
* mimetype: 'image/jpeg',
|
|
25
|
+
* tool_slug: 'resize-image',
|
|
26
|
+
* toolkit_slug: 'image-processing',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
11
29
|
*/
|
|
12
30
|
createPresignedURL(body: FileCreatePresignedURLParams, options?: RequestOptions): APIPromise<FileCreatePresignedURLResponse>;
|
|
13
31
|
}
|
|
@@ -19,23 +37,25 @@ export interface FileListResponse {
|
|
|
19
37
|
export declare namespace FileListResponse {
|
|
20
38
|
interface Item {
|
|
21
39
|
/**
|
|
22
|
-
* Name of the original file.
|
|
40
|
+
* Name of the original file. Example: "document.docx"
|
|
23
41
|
*/
|
|
24
42
|
filename: string;
|
|
25
43
|
/**
|
|
26
|
-
* MD5 of
|
|
44
|
+
* MD5 hash of the file for integrity verification. Example:
|
|
45
|
+
* "d41d8cd98f00b204e9800998ecf8427e"
|
|
27
46
|
*/
|
|
28
47
|
md5: string;
|
|
29
48
|
/**
|
|
30
|
-
* Mime type of the original file.
|
|
49
|
+
* Mime type of the original file. Example:
|
|
50
|
+
* "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
31
51
|
*/
|
|
32
52
|
mimetype: string;
|
|
33
53
|
/**
|
|
34
|
-
*
|
|
54
|
+
* Slug of the action where this file belongs to. Example: "convert-to-pdf"
|
|
35
55
|
*/
|
|
36
56
|
tool_slug: string;
|
|
37
57
|
/**
|
|
38
|
-
* Slug of the app where this file belongs to.
|
|
58
|
+
* Slug of the app where this file belongs to. Example: "file-converter"
|
|
39
59
|
*/
|
|
40
60
|
toolkit_slug: string;
|
|
41
61
|
}
|
|
@@ -44,79 +64,108 @@ export type FileCreatePresignedURLResponse = FileCreatePresignedURLResponse.Unio
|
|
|
44
64
|
export declare namespace FileCreatePresignedURLResponse {
|
|
45
65
|
interface UnionMember0 {
|
|
46
66
|
/**
|
|
47
|
-
* ID of the request file
|
|
67
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
48
68
|
*/
|
|
49
69
|
id: string;
|
|
50
70
|
/**
|
|
51
|
-
* URL of the existing request file
|
|
71
|
+
* URL of the existing request file. Example:
|
|
72
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
73
|
+
*/
|
|
74
|
+
existing_url: string;
|
|
75
|
+
/**
|
|
76
|
+
* [DEPRECATED] Use existing_url instead. URL of the existing request file.
|
|
77
|
+
* Example: "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
52
78
|
*/
|
|
53
79
|
existingUrl: string;
|
|
54
80
|
/**
|
|
55
|
-
* S3 upload location
|
|
81
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
56
82
|
*/
|
|
57
83
|
key: string;
|
|
84
|
+
/**
|
|
85
|
+
* Indicates the file already exists and does not need to be uploaded again
|
|
86
|
+
*/
|
|
58
87
|
type: 'existing';
|
|
59
88
|
}
|
|
60
89
|
interface UnionMember1 {
|
|
61
90
|
/**
|
|
62
|
-
* ID of the request file
|
|
91
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
63
92
|
*/
|
|
64
93
|
id: string;
|
|
65
94
|
/**
|
|
66
|
-
* S3 upload location
|
|
95
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
67
96
|
*/
|
|
68
97
|
key: string;
|
|
69
98
|
/**
|
|
70
|
-
* Presigned URL for upload
|
|
99
|
+
* Presigned URL for upload. Example:
|
|
100
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
101
|
+
*/
|
|
102
|
+
new_presigned_url: string;
|
|
103
|
+
/**
|
|
104
|
+
* [DEPRECATED] Use new_presigned_url instead. Presigned URL for upload. Example:
|
|
105
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
71
106
|
*/
|
|
72
107
|
newPresignedUrl: string;
|
|
108
|
+
/**
|
|
109
|
+
* Indicates this is a new file that needs to be uploaded
|
|
110
|
+
*/
|
|
73
111
|
type: 'new';
|
|
74
112
|
}
|
|
75
113
|
interface UnionMember2 {
|
|
76
114
|
/**
|
|
77
|
-
* ID of the request file
|
|
115
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
78
116
|
*/
|
|
79
117
|
id: string;
|
|
80
118
|
/**
|
|
81
|
-
* S3 upload location
|
|
119
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
82
120
|
*/
|
|
83
121
|
key: string;
|
|
122
|
+
/**
|
|
123
|
+
* Indicates this file exists but needs to be updated with a new version
|
|
124
|
+
*/
|
|
84
125
|
type: 'update';
|
|
85
126
|
/**
|
|
86
|
-
* Presigned URL for upload
|
|
127
|
+
* Presigned URL for upload. Example:
|
|
128
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
129
|
+
*/
|
|
130
|
+
update_presigned_url: string;
|
|
131
|
+
/**
|
|
132
|
+
* [DEPRECATED] Use update_presigned_url instead. Presigned URL for upload.
|
|
133
|
+
* Example:
|
|
134
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
87
135
|
*/
|
|
88
136
|
updatePresignedUrl: string;
|
|
89
137
|
}
|
|
90
138
|
}
|
|
91
139
|
export interface FileListParams {
|
|
92
140
|
/**
|
|
93
|
-
*
|
|
141
|
+
* Filter files by action slug. Example: "convert-to-pdf"
|
|
94
142
|
*/
|
|
95
143
|
tool_slug?: string;
|
|
96
144
|
/**
|
|
97
|
-
*
|
|
145
|
+
* Filter files by app slug. Example: "file-converter"
|
|
98
146
|
*/
|
|
99
147
|
toolkit_slug?: string;
|
|
100
148
|
}
|
|
101
149
|
export interface FileCreatePresignedURLParams {
|
|
102
150
|
/**
|
|
103
|
-
* Name of the original file.
|
|
151
|
+
* Name of the original file. Example: "photo.jpg"
|
|
104
152
|
*/
|
|
105
153
|
filename: string;
|
|
106
154
|
/**
|
|
107
|
-
* MD5 of
|
|
155
|
+
* MD5 hash of the file for deduplication and integrity verification. Example:
|
|
156
|
+
* "d41d8cd98f00b204e9800998ecf8427e"
|
|
108
157
|
*/
|
|
109
158
|
md5: string;
|
|
110
159
|
/**
|
|
111
|
-
* Mime type of the original file.
|
|
160
|
+
* Mime type of the original file. Example: "image/jpeg"
|
|
112
161
|
*/
|
|
113
162
|
mimetype: string;
|
|
114
163
|
/**
|
|
115
|
-
* Slug of the action where this file belongs to.
|
|
164
|
+
* Slug of the action where this file belongs to. Example: "resize-image"
|
|
116
165
|
*/
|
|
117
166
|
tool_slug: string;
|
|
118
167
|
/**
|
|
119
|
-
* Slug of the app where this file belongs to.
|
|
168
|
+
* Slug of the app where this file belongs to. Example: "image-processing"
|
|
120
169
|
*/
|
|
121
170
|
toolkit_slug: string;
|
|
122
171
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,MAAM,8BAA8B,GACtC,8BAA8B,CAAC,YAAY,GAC3C,8BAA8B,CAAC,YAAY,GAC3C,8BAA8B,CAAC,YAAY,CAAC;AAEhD,yBAAiB,8BAA8B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IAAI,8BAA8B,EACrE,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
package/resources/files.d.ts
CHANGED
|
@@ -3,11 +3,29 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class Files extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Retrieves a list of files associated with the authenticated project. Results can
|
|
7
|
+
* be filtered by toolkit and tool slugs.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const files = await client.files.list();
|
|
12
|
+
* ```
|
|
7
13
|
*/
|
|
8
14
|
list(query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
9
15
|
/**
|
|
10
|
-
*
|
|
16
|
+
* Generates a presigned URL for uploading a file to S3. This endpoint handles
|
|
17
|
+
* deduplication by checking if a file with the same MD5 hash already exists.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response = await client.files.createPresignedURL({
|
|
22
|
+
* filename: 'photo.jpg',
|
|
23
|
+
* md5: 'd41d8cd98f00b204e9800998ecf8427e',
|
|
24
|
+
* mimetype: 'image/jpeg',
|
|
25
|
+
* tool_slug: 'resize-image',
|
|
26
|
+
* toolkit_slug: 'image-processing',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
11
29
|
*/
|
|
12
30
|
createPresignedURL(body: FileCreatePresignedURLParams, options?: RequestOptions): APIPromise<FileCreatePresignedURLResponse>;
|
|
13
31
|
}
|
|
@@ -19,23 +37,25 @@ export interface FileListResponse {
|
|
|
19
37
|
export declare namespace FileListResponse {
|
|
20
38
|
interface Item {
|
|
21
39
|
/**
|
|
22
|
-
* Name of the original file.
|
|
40
|
+
* Name of the original file. Example: "document.docx"
|
|
23
41
|
*/
|
|
24
42
|
filename: string;
|
|
25
43
|
/**
|
|
26
|
-
* MD5 of
|
|
44
|
+
* MD5 hash of the file for integrity verification. Example:
|
|
45
|
+
* "d41d8cd98f00b204e9800998ecf8427e"
|
|
27
46
|
*/
|
|
28
47
|
md5: string;
|
|
29
48
|
/**
|
|
30
|
-
* Mime type of the original file.
|
|
49
|
+
* Mime type of the original file. Example:
|
|
50
|
+
* "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
31
51
|
*/
|
|
32
52
|
mimetype: string;
|
|
33
53
|
/**
|
|
34
|
-
*
|
|
54
|
+
* Slug of the action where this file belongs to. Example: "convert-to-pdf"
|
|
35
55
|
*/
|
|
36
56
|
tool_slug: string;
|
|
37
57
|
/**
|
|
38
|
-
* Slug of the app where this file belongs to.
|
|
58
|
+
* Slug of the app where this file belongs to. Example: "file-converter"
|
|
39
59
|
*/
|
|
40
60
|
toolkit_slug: string;
|
|
41
61
|
}
|
|
@@ -44,79 +64,108 @@ export type FileCreatePresignedURLResponse = FileCreatePresignedURLResponse.Unio
|
|
|
44
64
|
export declare namespace FileCreatePresignedURLResponse {
|
|
45
65
|
interface UnionMember0 {
|
|
46
66
|
/**
|
|
47
|
-
* ID of the request file
|
|
67
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
48
68
|
*/
|
|
49
69
|
id: string;
|
|
50
70
|
/**
|
|
51
|
-
* URL of the existing request file
|
|
71
|
+
* URL of the existing request file. Example:
|
|
72
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
73
|
+
*/
|
|
74
|
+
existing_url: string;
|
|
75
|
+
/**
|
|
76
|
+
* [DEPRECATED] Use existing_url instead. URL of the existing request file.
|
|
77
|
+
* Example: "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
52
78
|
*/
|
|
53
79
|
existingUrl: string;
|
|
54
80
|
/**
|
|
55
|
-
* S3 upload location
|
|
81
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
56
82
|
*/
|
|
57
83
|
key: string;
|
|
84
|
+
/**
|
|
85
|
+
* Indicates the file already exists and does not need to be uploaded again
|
|
86
|
+
*/
|
|
58
87
|
type: 'existing';
|
|
59
88
|
}
|
|
60
89
|
interface UnionMember1 {
|
|
61
90
|
/**
|
|
62
|
-
* ID of the request file
|
|
91
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
63
92
|
*/
|
|
64
93
|
id: string;
|
|
65
94
|
/**
|
|
66
|
-
* S3 upload location
|
|
95
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
67
96
|
*/
|
|
68
97
|
key: string;
|
|
69
98
|
/**
|
|
70
|
-
* Presigned URL for upload
|
|
99
|
+
* Presigned URL for upload. Example:
|
|
100
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
101
|
+
*/
|
|
102
|
+
new_presigned_url: string;
|
|
103
|
+
/**
|
|
104
|
+
* [DEPRECATED] Use new_presigned_url instead. Presigned URL for upload. Example:
|
|
105
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
71
106
|
*/
|
|
72
107
|
newPresignedUrl: string;
|
|
108
|
+
/**
|
|
109
|
+
* Indicates this is a new file that needs to be uploaded
|
|
110
|
+
*/
|
|
73
111
|
type: 'new';
|
|
74
112
|
}
|
|
75
113
|
interface UnionMember2 {
|
|
76
114
|
/**
|
|
77
|
-
* ID of the request file
|
|
115
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
78
116
|
*/
|
|
79
117
|
id: string;
|
|
80
118
|
/**
|
|
81
|
-
* S3 upload location
|
|
119
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
82
120
|
*/
|
|
83
121
|
key: string;
|
|
122
|
+
/**
|
|
123
|
+
* Indicates this file exists but needs to be updated with a new version
|
|
124
|
+
*/
|
|
84
125
|
type: 'update';
|
|
85
126
|
/**
|
|
86
|
-
* Presigned URL for upload
|
|
127
|
+
* Presigned URL for upload. Example:
|
|
128
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
129
|
+
*/
|
|
130
|
+
update_presigned_url: string;
|
|
131
|
+
/**
|
|
132
|
+
* [DEPRECATED] Use update_presigned_url instead. Presigned URL for upload.
|
|
133
|
+
* Example:
|
|
134
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
87
135
|
*/
|
|
88
136
|
updatePresignedUrl: string;
|
|
89
137
|
}
|
|
90
138
|
}
|
|
91
139
|
export interface FileListParams {
|
|
92
140
|
/**
|
|
93
|
-
*
|
|
141
|
+
* Filter files by action slug. Example: "convert-to-pdf"
|
|
94
142
|
*/
|
|
95
143
|
tool_slug?: string;
|
|
96
144
|
/**
|
|
97
|
-
*
|
|
145
|
+
* Filter files by app slug. Example: "file-converter"
|
|
98
146
|
*/
|
|
99
147
|
toolkit_slug?: string;
|
|
100
148
|
}
|
|
101
149
|
export interface FileCreatePresignedURLParams {
|
|
102
150
|
/**
|
|
103
|
-
* Name of the original file.
|
|
151
|
+
* Name of the original file. Example: "photo.jpg"
|
|
104
152
|
*/
|
|
105
153
|
filename: string;
|
|
106
154
|
/**
|
|
107
|
-
* MD5 of
|
|
155
|
+
* MD5 hash of the file for deduplication and integrity verification. Example:
|
|
156
|
+
* "d41d8cd98f00b204e9800998ecf8427e"
|
|
108
157
|
*/
|
|
109
158
|
md5: string;
|
|
110
159
|
/**
|
|
111
|
-
* Mime type of the original file.
|
|
160
|
+
* Mime type of the original file. Example: "image/jpeg"
|
|
112
161
|
*/
|
|
113
162
|
mimetype: string;
|
|
114
163
|
/**
|
|
115
|
-
* Slug of the action where this file belongs to.
|
|
164
|
+
* Slug of the action where this file belongs to. Example: "resize-image"
|
|
116
165
|
*/
|
|
117
166
|
tool_slug: string;
|
|
118
167
|
/**
|
|
119
|
-
* Slug of the app where this file belongs to.
|
|
168
|
+
* Slug of the app where this file belongs to. Example: "image-processing"
|
|
120
169
|
*/
|
|
121
170
|
toolkit_slug: string;
|
|
122
171
|
}
|
package/resources/files.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,MAAM,8BAA8B,GACtC,8BAA8B,CAAC,YAA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,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
package/resources/files.js
CHANGED
|
@@ -5,13 +5,31 @@ exports.Files = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
class Files extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Retrieves a list of files associated with the authenticated project. Results can
|
|
9
|
+
* be filtered by toolkit and tool slugs.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const files = await client.files.list();
|
|
14
|
+
* ```
|
|
9
15
|
*/
|
|
10
16
|
list(query = {}, options) {
|
|
11
17
|
return this._client.get('/api/v3/files/list', { query, ...options });
|
|
12
18
|
}
|
|
13
19
|
/**
|
|
14
|
-
*
|
|
20
|
+
* Generates a presigned URL for uploading a file to S3. This endpoint handles
|
|
21
|
+
* deduplication by checking if a file with the same MD5 hash already exists.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const response = await client.files.createPresignedURL({
|
|
26
|
+
* filename: 'photo.jpg',
|
|
27
|
+
* md5: 'd41d8cd98f00b204e9800998ecf8427e',
|
|
28
|
+
* mimetype: 'image/jpeg',
|
|
29
|
+
* tool_slug: 'resize-image',
|
|
30
|
+
* toolkit_slug: 'image-processing',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
15
33
|
*/
|
|
16
34
|
createPresignedURL(body, options) {
|
|
17
35
|
return this._client.post('/api/v3/files/upload/request', { body, ...options });
|
package/resources/files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,KAAM,SAAQ,sBAAW;IACpC
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAtCD,sBAsCC"}
|
package/resources/files.mjs
CHANGED
|
@@ -2,13 +2,31 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
export class Files extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Retrieves a list of files associated with the authenticated project. Results can
|
|
6
|
+
* be filtered by toolkit and tool slugs.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const files = await client.files.list();
|
|
11
|
+
* ```
|
|
6
12
|
*/
|
|
7
13
|
list(query = {}, options) {
|
|
8
14
|
return this._client.get('/api/v3/files/list', { query, ...options });
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
|
-
*
|
|
17
|
+
* Generates a presigned URL for uploading a file to S3. This endpoint handles
|
|
18
|
+
* deduplication by checking if a file with the same MD5 hash already exists.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response = await client.files.createPresignedURL({
|
|
23
|
+
* filename: 'photo.jpg',
|
|
24
|
+
* md5: 'd41d8cd98f00b204e9800998ecf8427e',
|
|
25
|
+
* mimetype: 'image/jpeg',
|
|
26
|
+
* tool_slug: 'resize-image',
|
|
27
|
+
* toolkit_slug: 'image-processing',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
12
30
|
*/
|
|
13
31
|
createPresignedURL(body, options) {
|
|
14
32
|
return this._client.post('/api/v3/files/upload/request', { body, ...options });
|
package/resources/files.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { AuthConfigs, type AuthConfigCreateResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateResponse, type AuthConfigListResponse, type AuthConfigDeleteResponse, type AuthConfigUpdateStatusResponse, type AuthConfigCreateParams, type AuthConfigUpdateParams, type AuthConfigListParams, type AuthConfigUpdateStatusParams, } from "./auth-configs.mjs";
|
|
2
2
|
export { ConnectedAccounts, type ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse, type ConnectedAccountDeleteResponse, type ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams, type ConnectedAccountListParams, type ConnectedAccountUpdateStatusParams, } from "./connected-accounts.mjs";
|
|
3
3
|
export { Files, type FileListResponse, type FileCreatePresignedURLResponse, type FileListParams, type FileCreatePresignedURLParams, } from "./files.mjs";
|
|
4
|
-
export { Mcp, type McpCreateResponse, type McpRetrieveResponse, type McpUpdateResponse, type McpListResponse, type McpDeleteResponse, type McpRetrieveAppResponse, type
|
|
4
|
+
export { Mcp, type McpCreateResponse, type McpRetrieveResponse, type McpUpdateResponse, type McpListResponse, type McpDeleteResponse, type McpRetrieveAppResponse, type McpCreateParams, type McpUpdateParams, type McpListParams, type McpRetrieveAppParams, } from "./mcp/mcp.mjs";
|
|
5
5
|
export { Migration, type MigrationRetrieveNanoidResponse, type MigrationRetrieveNanoidParams, } from "./migration.mjs";
|
|
6
6
|
export { Org } from "./org/org.mjs";
|
|
7
7
|
export { TeamMembers, type TeamMemberUpdateResponse, type TeamMemberListResponse, type TeamMemberInviteResponse, type TeamMemberRemoveResponse, type TeamMemberUpdateParams, type TeamMemberInviteParams, } from "./team-members.mjs";
|
|
8
|
-
export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, } from "./toolkits.mjs";
|
|
8
|
+
export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, type ToolkitRetrieveCategoriesParams, } from "./toolkits.mjs";
|
|
9
9
|
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolExecuteResponse, type ToolGetInputResponse, type ToolProxyResponse, type ToolRetrieveEnumResponse, type ToolListParams, type ToolExecuteParams, type ToolGetInputParams, type ToolProxyParams, } from "./tools.mjs";
|
|
10
|
-
export { TriggerInstances, type
|
|
10
|
+
export { TriggerInstances, type TriggerInstanceDeleteResponse, type TriggerInstanceListActiveResponse, type TriggerInstanceUpdateStatusResponse, type TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams, type TriggerInstanceUpdateStatusParams, type TriggerInstanceUpsertParams, } from "./trigger-instances/trigger-instances.mjs";
|
|
11
11
|
export { TriggersTypes, type TriggersTypeRetrieveResponse, type TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse, type TriggersTypeListParams, } from "./triggers-types.mjs";
|
|
12
12
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,GAClC;OACM,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,GACxC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,cAAc,EACnB,KAAK,4BAA4B,GAClC;OACM,EACL,GAAG,EACH,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceR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mB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB;OACM,EACL,gBAAgB,EAChB,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,GACjC;OACM,EACL,aAAa,EACb,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,GAC5B"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { AuthConfigs, type AuthConfigCreateResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateResponse, type AuthConfigListResponse, type AuthConfigDeleteResponse, type AuthConfigUpdateStatusResponse, type AuthConfigCreateParams, type AuthConfigUpdateParams, type AuthConfigListParams, type AuthConfigUpdateStatusParams, } from "./auth-configs.js";
|
|
2
2
|
export { ConnectedAccounts, type ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse, type ConnectedAccountDeleteResponse, type ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams, type ConnectedAccountListParams, type ConnectedAccountUpdateStatusParams, } from "./connected-accounts.js";
|
|
3
3
|
export { Files, type FileListResponse, type FileCreatePresignedURLResponse, type FileListParams, type FileCreatePresignedURLParams, } from "./files.js";
|
|
4
|
-
export { Mcp, type McpCreateResponse, type McpRetrieveResponse, type McpUpdateResponse, type McpListResponse, type McpDeleteResponse, type McpRetrieveAppResponse, type
|
|
4
|
+
export { Mcp, type McpCreateResponse, type McpRetrieveResponse, type McpUpdateResponse, type McpListResponse, type McpDeleteResponse, type McpRetrieveAppResponse, type McpCreateParams, type McpUpdateParams, type McpListParams, type McpRetrieveAppParams, } from "./mcp/mcp.js";
|
|
5
5
|
export { Migration, type MigrationRetrieveNanoidResponse, type MigrationRetrieveNanoidParams, } from "./migration.js";
|
|
6
6
|
export { Org } from "./org/org.js";
|
|
7
7
|
export { TeamMembers, type TeamMemberUpdateResponse, type TeamMemberListResponse, type TeamMemberInviteResponse, type TeamMemberRemoveResponse, type TeamMemberUpdateParams, type TeamMemberInviteParams, } from "./team-members.js";
|
|
8
|
-
export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, } from "./toolkits.js";
|
|
8
|
+
export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, type ToolkitRetrieveCategoriesParams, } from "./toolkits.js";
|
|
9
9
|
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolExecuteResponse, type ToolGetInputResponse, type ToolProxyResponse, type ToolRetrieveEnumResponse, type ToolListParams, type ToolExecuteParams, type ToolGetInputParams, type ToolProxyParams, } from "./tools.js";
|
|
10
|
-
export { TriggerInstances, type
|
|
10
|
+
export { TriggerInstances, type TriggerInstanceDeleteResponse, type TriggerInstanceListActiveResponse, type TriggerInstanceUpdateStatusResponse, type TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams, type TriggerInstanceUpdateStatusParams, type TriggerInstanceUpsertParams, } from "./trigger-instances/trigger-instances.js";
|
|
11
11
|
export { TriggersTypes, type TriggersTypeRetrieveResponse, type TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse, type TriggersTypeListParams, } from "./triggers-types.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,GAClC;OACM,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,GACxC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,cAAc,EACnB,KAAK,4BAA4B,GAClC;OACM,EACL,GAAG,EACH,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,GAClC;OACM,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,GACxC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,cAAc,EACnB,KAAK,4BAA4B,GAClC;OACM,EACL,GAAG,EACH,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,oBAAoB,GAC1B;OACM,EACL,SAAS,EACT,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC;OACM,EAAE,GAAG,EAAE;OACP,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iCAAiC,EACtC,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB;OACM,EACL,gBAAgB,EAChB,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,GACjC;OACM,EACL,aAAa,EACb,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,GAC5B"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAYwB;AAXtB,2GAAA,WAAW,OAAA;AAYb,8DAW8B;AAV5B,uHAAA,iBAAiB,OAAA;AAWnB,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAYwB;AAXtB,2GAAA,WAAW,OAAA;AAYb,8DAW8B;AAV5B,uHAAA,iBAAiB,OAAA;AAWnB,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,oCAYmB;AAXjB,0FAAA,GAAG,OAAA;AAYL,4CAIqB;AAHnB,sGAAA,SAAS,OAAA;AAIX,oCAAgC;AAAvB,0FAAA,GAAG,OAAA;AACZ,kDAQwB;AAPtB,2GAAA,WAAW,OAAA;AAQb,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,oCAYiB;AAXf,8FAAA,KAAK,OAAA;AAYP,8EAS+C;AAR7C,qHAAA,gBAAgB,OAAA;AASlB,sDAM0B;AALxB,+GAAA,aAAa,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAWZ;OACM,EACL,iBAAiB,GAUlB;OACM,EACL,KAAK,GAKN;OACM,EACL,GAAG,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAWZ;OACM,EACL,iBAAiB,GAUlB;OACM,EACL,KAAK,GAKN;OACM,EACL,GAAG,GAWJ;OACM,EACL,SAAS,GAGV;OACM,EAAE,GAAG,EAAE;OACP,EACL,WAAW,GAOZ;OACM,EACL,QAAQ,GAMT;OACM,EACL,KAAK,GAWN;OACM,EACL,gBAAgB,GAQjB;OACM,EACL,aAAa,GAKd"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 Custom extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new Model Control Protocol (MCP) server instance that can integrate
|
|
7
|
+
* with multiple applications or toolkits simultaneously. This endpoint allows you
|
|
8
|
+
* to create a server that can access tools from different applications, making it
|
|
9
|
+
* suitable for complex workflows that span multiple services.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const custom = await client.mcp.custom.create({
|
|
14
|
+
* name: 'Development Integration Server',
|
|
15
|
+
* toolkits: ['github', 'jira'],
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: CustomCreateParams, options?: RequestOptions): APIPromise<CustomCreateResponse>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Response for a successfully created custom MCP server with multiple applications
|
|
23
|
+
*/
|
|
24
|
+
export interface CustomCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the newly created custom MCP server
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* List of tool identifiers that are enabled for this server
|
|
31
|
+
*/
|
|
32
|
+
allowed_tools: Array<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
35
|
+
* server
|
|
36
|
+
*/
|
|
37
|
+
commands: CustomCreateResponse.Commands;
|
|
38
|
+
/**
|
|
39
|
+
* URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP
|
|
40
|
+
* server
|
|
41
|
+
*/
|
|
42
|
+
mcp_url: string;
|
|
43
|
+
/**
|
|
44
|
+
* Human-readable name of the custom MCP server
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace CustomCreateResponse {
|
|
49
|
+
/**
|
|
50
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
51
|
+
* server
|
|
52
|
+
*/
|
|
53
|
+
interface Commands {
|
|
54
|
+
/**
|
|
55
|
+
* Command line instruction for Claude client setup
|
|
56
|
+
*/
|
|
57
|
+
claude: string;
|
|
58
|
+
/**
|
|
59
|
+
* Command line instruction for Cursor client setup
|
|
60
|
+
*/
|
|
61
|
+
cursor: string;
|
|
62
|
+
/**
|
|
63
|
+
* Command line instruction for Windsurf client setup
|
|
64
|
+
*/
|
|
65
|
+
windsurf: string;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export interface CustomCreateParams {
|
|
69
|
+
/**
|
|
70
|
+
* Human-readable name to identify this custom MCP server (4-25 characters,
|
|
71
|
+
* alphanumeric and hyphens only)
|
|
72
|
+
*/
|
|
73
|
+
name: string;
|
|
74
|
+
/**
|
|
75
|
+
* List of application/toolkit identifiers to enable for this server
|
|
76
|
+
*/
|
|
77
|
+
toolkits: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Additional custom tool identifiers to enable that aren't part of standard
|
|
80
|
+
* toolkits
|
|
81
|
+
*/
|
|
82
|
+
custom_tools?: Array<string>;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace Custom {
|
|
85
|
+
export { type CustomCreateResponse as CustomCreateResponse, type CustomCreateParams as CustomCreateParams };
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=custom.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom.d.mts","sourceRoot":"","sources":["../../src/resources/mcp/custom.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG7F;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B;;;OAGG;IACH,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC;IAExC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,yBAAiB,oBAAoB,CAAC;IACpC;;;OAGG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
|