@composio/core 0.1.35 → 0.1.36-next.1
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/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/generated/gmail.d.ts +14 -0
- package/generated/gmail.js +14 -0
- package/generated/gmail.ts +14 -0
- package/generated/index.d.ts +57 -0
- package/generated/index.js +32 -0
- package/generated/index.ts +53 -0
- package/generated/slack.d.ts +8 -0
- package/generated/slack.js +8 -0
- package/generated/slack.ts +8 -0
- package/package.json +8 -3
package/dist/index.cjs
CHANGED
|
@@ -2098,7 +2098,7 @@ var readFileContent = async (path) => {
|
|
|
2098
2098
|
try {
|
|
2099
2099
|
const content = require("fs").readFileSync(path);
|
|
2100
2100
|
return {
|
|
2101
|
-
fileName: path
|
|
2101
|
+
fileName: import_path.default.basename(path) || `file_${Date.now()}.${path.split(".").pop()}`,
|
|
2102
2102
|
content: content.toString("base64"),
|
|
2103
2103
|
mimeType: "application/octet-stream"
|
|
2104
2104
|
};
|
|
@@ -2117,7 +2117,7 @@ var readFileContentFromURL = async (path) => {
|
|
|
2117
2117
|
return {
|
|
2118
2118
|
content: content.toString("base64"),
|
|
2119
2119
|
mimeType,
|
|
2120
|
-
fileName: path
|
|
2120
|
+
fileName: import_path.default.basename(path) || `file_${Date.now()}.${path.split(".").pop()}`
|
|
2121
2121
|
};
|
|
2122
2122
|
};
|
|
2123
2123
|
var uploadFileToS3 = async (fileName, content, toolSlug, toolkitSlug, mimeType, client) => {
|
|
@@ -6209,7 +6209,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
6209
6209
|
};
|
|
6210
6210
|
|
|
6211
6211
|
// package.json
|
|
6212
|
-
var version = "0.1.
|
|
6212
|
+
var version = "0.1.36-next.1";
|
|
6213
6213
|
|
|
6214
6214
|
// src/models/Files.ts
|
|
6215
6215
|
var Files = class {
|
package/dist/index.js
CHANGED
|
@@ -1936,7 +1936,7 @@ var readFileContent = async (path) => {
|
|
|
1936
1936
|
try {
|
|
1937
1937
|
const content = __require("fs").readFileSync(path);
|
|
1938
1938
|
return {
|
|
1939
|
-
fileName: path
|
|
1939
|
+
fileName: pathModule.basename(path) || `file_${Date.now()}.${path.split(".").pop()}`,
|
|
1940
1940
|
content: content.toString("base64"),
|
|
1941
1941
|
mimeType: "application/octet-stream"
|
|
1942
1942
|
};
|
|
@@ -1955,7 +1955,7 @@ var readFileContentFromURL = async (path) => {
|
|
|
1955
1955
|
return {
|
|
1956
1956
|
content: content.toString("base64"),
|
|
1957
1957
|
mimeType,
|
|
1958
|
-
fileName: path
|
|
1958
|
+
fileName: pathModule.basename(path) || `file_${Date.now()}.${path.split(".").pop()}`
|
|
1959
1959
|
};
|
|
1960
1960
|
};
|
|
1961
1961
|
var uploadFileToS3 = async (fileName, content, toolSlug, toolkitSlug, mimeType, client) => {
|
|
@@ -6047,7 +6047,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
6047
6047
|
};
|
|
6048
6048
|
|
|
6049
6049
|
// package.json
|
|
6050
|
-
var version = "0.1.
|
|
6050
|
+
var version = "0.1.36-next.1";
|
|
6051
6051
|
|
|
6052
6052
|
// src/models/Files.ts
|
|
6053
6053
|
var Files = class {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map of Composio's GMAIL toolkit.
|
|
3
|
+
*/
|
|
4
|
+
export const GMAIL = {
|
|
5
|
+
slug: "gmail",
|
|
6
|
+
tools: {
|
|
7
|
+
CREATE_EMAIL_DRAFT: "GMAIL_CREATE_EMAIL_DRAFT",
|
|
8
|
+
DELETE_MESSAGE: "GMAIL_DELETE_MESSAGE",
|
|
9
|
+
FETCH_EMAILS: "GMAIL_FETCH_EMAILS",
|
|
10
|
+
},
|
|
11
|
+
triggerTypes: {
|
|
12
|
+
NEW_GMAIL_MESSAGE: "GMAIL_NEW_GMAIL_MESSAGE",
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map of Composio's GMAIL toolkit.
|
|
3
|
+
*/
|
|
4
|
+
export const GMAIL = {
|
|
5
|
+
slug: "gmail",
|
|
6
|
+
tools: {
|
|
7
|
+
CREATE_EMAIL_DRAFT: "GMAIL_CREATE_EMAIL_DRAFT",
|
|
8
|
+
DELETE_MESSAGE: "GMAIL_DELETE_MESSAGE",
|
|
9
|
+
FETCH_EMAILS: "GMAIL_FETCH_EMAILS",
|
|
10
|
+
},
|
|
11
|
+
triggerTypes: {
|
|
12
|
+
NEW_GMAIL_MESSAGE: "GMAIL_NEW_GMAIL_MESSAGE",
|
|
13
|
+
},
|
|
14
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated by Composio CLI. Do not modify manually.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Map of Composio's GMAIL toolkit.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GMAIL: {
|
|
8
|
+
slug: string;
|
|
9
|
+
tools: {
|
|
10
|
+
CREATE_EMAIL_DRAFT: string;
|
|
11
|
+
DELETE_MESSAGE: string;
|
|
12
|
+
FETCH_EMAILS: string;
|
|
13
|
+
};
|
|
14
|
+
triggerTypes: {
|
|
15
|
+
NEW_GMAIL_MESSAGE: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Map of Composio's SLACK toolkit.
|
|
20
|
+
*/
|
|
21
|
+
export declare const SLACK: {
|
|
22
|
+
slug: string;
|
|
23
|
+
tools: {};
|
|
24
|
+
triggerTypes: {};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Map of Composio toolkits to actions.
|
|
28
|
+
*/
|
|
29
|
+
export declare const Toolkits: {
|
|
30
|
+
GMAIL: {
|
|
31
|
+
slug: string;
|
|
32
|
+
tools: {
|
|
33
|
+
CREATE_EMAIL_DRAFT: string;
|
|
34
|
+
DELETE_MESSAGE: string;
|
|
35
|
+
FETCH_EMAILS: string;
|
|
36
|
+
};
|
|
37
|
+
triggerTypes: {
|
|
38
|
+
NEW_GMAIL_MESSAGE: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
SLACK: {
|
|
42
|
+
slug: string;
|
|
43
|
+
tools: {};
|
|
44
|
+
triggerTypes: {};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Type declarations
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* Union of all available toolkits.
|
|
52
|
+
*/
|
|
53
|
+
export type Toolkit = "GMAIL" | "SLACK";
|
|
54
|
+
/**
|
|
55
|
+
* Given a toolkit, returns the tools available for that toolkit.
|
|
56
|
+
*/
|
|
57
|
+
export type ToolsByToolkit<$Toolkit extends keyof (typeof Toolkits)> = typeof Toolkits[$Toolkit];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated by Composio CLI. Do not modify manually.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Map of Composio's GMAIL toolkit.
|
|
6
|
+
*/
|
|
7
|
+
export const GMAIL = {
|
|
8
|
+
slug: "gmail",
|
|
9
|
+
tools: {
|
|
10
|
+
CREATE_EMAIL_DRAFT: "GMAIL_CREATE_EMAIL_DRAFT",
|
|
11
|
+
DELETE_MESSAGE: "GMAIL_DELETE_MESSAGE",
|
|
12
|
+
FETCH_EMAILS: "GMAIL_FETCH_EMAILS",
|
|
13
|
+
},
|
|
14
|
+
triggerTypes: {
|
|
15
|
+
NEW_GMAIL_MESSAGE: "GMAIL_NEW_GMAIL_MESSAGE",
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Map of Composio's SLACK toolkit.
|
|
20
|
+
*/
|
|
21
|
+
export const SLACK = {
|
|
22
|
+
slug: "slack",
|
|
23
|
+
tools: {},
|
|
24
|
+
triggerTypes: {},
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Map of Composio toolkits to actions.
|
|
28
|
+
*/
|
|
29
|
+
export const Toolkits = {
|
|
30
|
+
GMAIL: GMAIL,
|
|
31
|
+
SLACK: SLACK,
|
|
32
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated by Composio CLI. Do not modify manually.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Map of Composio's GMAIL toolkit.
|
|
7
|
+
*/
|
|
8
|
+
export const GMAIL = {
|
|
9
|
+
slug: "gmail",
|
|
10
|
+
tools: {
|
|
11
|
+
CREATE_EMAIL_DRAFT: "GMAIL_CREATE_EMAIL_DRAFT",
|
|
12
|
+
DELETE_MESSAGE: "GMAIL_DELETE_MESSAGE",
|
|
13
|
+
FETCH_EMAILS: "GMAIL_FETCH_EMAILS",
|
|
14
|
+
},
|
|
15
|
+
triggerTypes: {
|
|
16
|
+
NEW_GMAIL_MESSAGE: "GMAIL_NEW_GMAIL_MESSAGE",
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Map of Composio's SLACK toolkit.
|
|
22
|
+
*/
|
|
23
|
+
export const SLACK = {
|
|
24
|
+
slug: "slack",
|
|
25
|
+
tools: {},
|
|
26
|
+
triggerTypes: {},
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Map of Composio toolkits to actions.
|
|
31
|
+
*/
|
|
32
|
+
export const Toolkits = {
|
|
33
|
+
GMAIL: GMAIL,
|
|
34
|
+
SLACK: SLACK,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Type declarations
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Union of all available toolkits.
|
|
43
|
+
*/
|
|
44
|
+
export type Toolkit =
|
|
45
|
+
| "GMAIL"
|
|
46
|
+
| "SLACK"
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Given a toolkit, returns the tools available for that toolkit.
|
|
50
|
+
*/
|
|
51
|
+
export type ToolsByToolkit<$Toolkit extends keyof (typeof Toolkits)> = typeof Toolkits[$Toolkit]
|
|
52
|
+
|
|
53
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36-next.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -12,11 +12,16 @@
|
|
|
12
12
|
"import": "./dist/index.js",
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./generated": {
|
|
17
|
+
"import": "./generated/index.js",
|
|
18
|
+
"types": "./generated/index.d.ts"
|
|
15
19
|
}
|
|
16
20
|
},
|
|
17
21
|
"files": [
|
|
18
22
|
"README.md",
|
|
19
|
-
"dist"
|
|
23
|
+
"dist",
|
|
24
|
+
"generated"
|
|
20
25
|
],
|
|
21
26
|
"keywords": [],
|
|
22
27
|
"author": "",
|
|
@@ -31,7 +36,7 @@
|
|
|
31
36
|
},
|
|
32
37
|
"dependencies": {
|
|
33
38
|
"@composio/client": "0.1.0-alpha.25",
|
|
34
|
-
"@composio/json-schema-to-zod": "0.1.
|
|
39
|
+
"@composio/json-schema-to-zod": "0.1.10-next.0",
|
|
35
40
|
"@types/json-schema": "^7.0.15",
|
|
36
41
|
"chalk": "^5.4.1",
|
|
37
42
|
"openai": "^4.94.0",
|