@keystrokehq/openai 0.1.3 → 0.1.4
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/actions/create-completion.d.cts +1 -1
- package/dist/actions/create-completion.d.mts +1 -1
- package/dist/actions/create-embeddings.d.cts +1 -1
- package/dist/actions/create-embeddings.d.mts +1 -1
- package/dist/actions/create-image-edit.d.cts +2 -2
- package/dist/actions/create-image-edit.d.mts +2 -2
- package/dist/actions/create-image.d.cts +2 -2
- package/dist/actions/create-image.d.mts +2 -2
- package/dist/actions/get-input-token-counts.d.cts +2 -2
- package/dist/actions/get-input-token-counts.d.mts +2 -2
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ declare const OpenaiCreateCompletionOutput: z.ZodObject<{
|
|
|
56
56
|
}, z.core.$loose>;
|
|
57
57
|
declare const openaiCreateCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
58
58
|
model: string;
|
|
59
|
-
prompt: string |
|
|
59
|
+
prompt: string | string[] | number[] | number[][];
|
|
60
60
|
n?: number | undefined;
|
|
61
61
|
echo?: boolean | undefined;
|
|
62
62
|
seed?: number | undefined;
|
|
@@ -56,7 +56,7 @@ declare const OpenaiCreateCompletionOutput: z.ZodObject<{
|
|
|
56
56
|
}, z.core.$loose>;
|
|
57
57
|
declare const openaiCreateCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
58
58
|
model: string;
|
|
59
|
-
prompt: string |
|
|
59
|
+
prompt: string | string[] | number[] | number[][];
|
|
60
60
|
n?: number | undefined;
|
|
61
61
|
echo?: boolean | undefined;
|
|
62
62
|
seed?: number | undefined;
|
|
@@ -25,7 +25,7 @@ declare const OpenaiCreateEmbeddingsOutput: z.ZodObject<{
|
|
|
25
25
|
object: z.ZodNullable<z.ZodString>;
|
|
26
26
|
}, z.core.$loose>;
|
|
27
27
|
declare const openaiCreateEmbeddings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
-
input: string |
|
|
28
|
+
input: string | string[] | number[] | number[][];
|
|
29
29
|
model: string;
|
|
30
30
|
user?: string | undefined;
|
|
31
31
|
dimensions?: number | undefined;
|
|
@@ -25,7 +25,7 @@ declare const OpenaiCreateEmbeddingsOutput: z.ZodObject<{
|
|
|
25
25
|
object: z.ZodNullable<z.ZodString>;
|
|
26
26
|
}, z.core.$loose>;
|
|
27
27
|
declare const openaiCreateEmbeddings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
-
input: string |
|
|
28
|
+
input: string | string[] | number[] | number[][];
|
|
29
29
|
model: string;
|
|
30
30
|
user?: string | undefined;
|
|
31
31
|
dimensions?: number | undefined;
|
|
@@ -29,8 +29,8 @@ declare const OpenaiCreateImageEditInput: z.ZodObject<{
|
|
|
29
29
|
moderation: z.ZodOptional<z.ZodString>;
|
|
30
30
|
output_format: z.ZodOptional<z.ZodEnum<{
|
|
31
31
|
png: "png";
|
|
32
|
-
jpeg: "jpeg";
|
|
33
32
|
webp: "webp";
|
|
33
|
+
jpeg: "jpeg";
|
|
34
34
|
}>>;
|
|
35
35
|
input_fidelity: z.ZodOptional<z.ZodString>;
|
|
36
36
|
output_compression: z.ZodOptional<z.ZodNumber>;
|
|
@@ -79,7 +79,7 @@ declare const openaiCreateImageEdit: import("@keystrokehq/action").WorkflowActio
|
|
|
79
79
|
quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
80
80
|
background?: "auto" | "transparent" | "opaque" | undefined;
|
|
81
81
|
moderation?: string | undefined;
|
|
82
|
-
output_format?: "png" | "
|
|
82
|
+
output_format?: "png" | "webp" | "jpeg" | undefined;
|
|
83
83
|
input_fidelity?: string | undefined;
|
|
84
84
|
output_compression?: number | undefined;
|
|
85
85
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -29,8 +29,8 @@ declare const OpenaiCreateImageEditInput: z.ZodObject<{
|
|
|
29
29
|
moderation: z.ZodOptional<z.ZodString>;
|
|
30
30
|
output_format: z.ZodOptional<z.ZodEnum<{
|
|
31
31
|
png: "png";
|
|
32
|
-
jpeg: "jpeg";
|
|
33
32
|
webp: "webp";
|
|
33
|
+
jpeg: "jpeg";
|
|
34
34
|
}>>;
|
|
35
35
|
input_fidelity: z.ZodOptional<z.ZodString>;
|
|
36
36
|
output_compression: z.ZodOptional<z.ZodNumber>;
|
|
@@ -79,7 +79,7 @@ declare const openaiCreateImageEdit: import("@keystrokehq/action").WorkflowActio
|
|
|
79
79
|
quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
80
80
|
background?: "auto" | "transparent" | "opaque" | undefined;
|
|
81
81
|
moderation?: string | undefined;
|
|
82
|
-
output_format?: "png" | "
|
|
82
|
+
output_format?: "png" | "webp" | "jpeg" | undefined;
|
|
83
83
|
input_fidelity?: string | undefined;
|
|
84
84
|
output_compression?: number | undefined;
|
|
85
85
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -30,8 +30,8 @@ declare const OpenaiCreateImageInput: z.ZodObject<{
|
|
|
30
30
|
}>>;
|
|
31
31
|
output_format: z.ZodOptional<z.ZodEnum<{
|
|
32
32
|
png: "png";
|
|
33
|
-
jpeg: "jpeg";
|
|
34
33
|
webp: "webp";
|
|
34
|
+
jpeg: "jpeg";
|
|
35
35
|
}>>;
|
|
36
36
|
output_compression: z.ZodOptional<z.ZodNumber>;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -68,7 +68,7 @@ declare const openaiCreateImage: import("@keystrokehq/action").WorkflowActionDef
|
|
|
68
68
|
quality?: "auto" | "low" | "medium" | "high" | "standard" | "hd" | undefined;
|
|
69
69
|
background?: "auto" | "transparent" | "opaque" | undefined;
|
|
70
70
|
moderation?: "auto" | "low" | undefined;
|
|
71
|
-
output_format?: "png" | "
|
|
71
|
+
output_format?: "png" | "webp" | "jpeg" | undefined;
|
|
72
72
|
output_compression?: number | undefined;
|
|
73
73
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
74
74
|
//#endregion
|
|
@@ -30,8 +30,8 @@ declare const OpenaiCreateImageInput: z.ZodObject<{
|
|
|
30
30
|
}>>;
|
|
31
31
|
output_format: z.ZodOptional<z.ZodEnum<{
|
|
32
32
|
png: "png";
|
|
33
|
-
jpeg: "jpeg";
|
|
34
33
|
webp: "webp";
|
|
34
|
+
jpeg: "jpeg";
|
|
35
35
|
}>>;
|
|
36
36
|
output_compression: z.ZodOptional<z.ZodNumber>;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -68,7 +68,7 @@ declare const openaiCreateImage: import("@keystrokehq/action").WorkflowActionDef
|
|
|
68
68
|
quality?: "auto" | "low" | "medium" | "high" | "standard" | "hd" | undefined;
|
|
69
69
|
background?: "auto" | "transparent" | "opaque" | undefined;
|
|
70
70
|
moderation?: "auto" | "low" | undefined;
|
|
71
|
-
output_format?: "png" | "
|
|
71
|
+
output_format?: "png" | "webp" | "jpeg" | undefined;
|
|
72
72
|
output_compression?: number | undefined;
|
|
73
73
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
74
74
|
//#endregion
|
|
@@ -15,8 +15,8 @@ declare const OpenaiGetInputTokenCountsInput: z.ZodObject<{
|
|
|
15
15
|
generate_summary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
17
|
truncation: z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
auto: "auto";
|
|
19
18
|
disabled: "disabled";
|
|
19
|
+
auto: "auto";
|
|
20
20
|
}>>;
|
|
21
21
|
tool_choice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
22
|
conversation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -41,7 +41,7 @@ declare const openaiGetInputTokenCounts: import("@keystrokehq/action").WorkflowA
|
|
|
41
41
|
summary?: string | Record<string, unknown> | undefined;
|
|
42
42
|
generate_summary?: string | boolean | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
truncation?: "
|
|
44
|
+
truncation?: "disabled" | "auto" | undefined;
|
|
45
45
|
tool_choice?: Record<string, unknown> | undefined;
|
|
46
46
|
conversation?: Record<string, unknown> | undefined;
|
|
47
47
|
instructions?: string | undefined;
|
|
@@ -15,8 +15,8 @@ declare const OpenaiGetInputTokenCountsInput: z.ZodObject<{
|
|
|
15
15
|
generate_summary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
17
|
truncation: z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
auto: "auto";
|
|
19
18
|
disabled: "disabled";
|
|
19
|
+
auto: "auto";
|
|
20
20
|
}>>;
|
|
21
21
|
tool_choice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
22
|
conversation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -41,7 +41,7 @@ declare const openaiGetInputTokenCounts: import("@keystrokehq/action").WorkflowA
|
|
|
41
41
|
summary?: string | Record<string, unknown> | undefined;
|
|
42
42
|
generate_summary?: string | boolean | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
truncation?: "
|
|
44
|
+
truncation?: "disabled" | "auto" | undefined;
|
|
45
45
|
tool_choice?: Record<string, unknown> | undefined;
|
|
46
46
|
conversation?: Record<string, unknown> | undefined;
|
|
47
47
|
instructions?: string | undefined;
|
package/dist/catalog.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const openaiCatalog = {
|
|
|
9
9
|
"authKind": "keystroke",
|
|
10
10
|
"oauthScopes": [],
|
|
11
11
|
"credentialFields": {
|
|
12
|
-
"
|
|
12
|
+
"generic_api_key": {
|
|
13
13
|
"label": "OpenAI API Key",
|
|
14
14
|
"secret": true,
|
|
15
15
|
"description": "Your secret OpenAI API key, starting with 'sk-' or 'sk-proj-'. Create or copy one at platform.openai.com/api-keys and keep it private."
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const openaiCatalog = {\n \"slug\": \"openai\",\n \"name\": \"OpenAI\",\n \"description\": \"Toolkit for OpenAI APIs: manage Assistants, Threads/Messages; upload/list/delete Files; list/retrieve Models (including vision/multimodal); and view fine-tune listings and events.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/openai\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const openaiCatalog = {\n \"slug\": \"openai\",\n \"name\": \"OpenAI\",\n \"description\": \"Toolkit for OpenAI APIs: manage Assistants, Threads/Messages; upload/list/delete Files; list/retrieve Models (including vision/multimodal); and view fine-tune listings and events.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/openai\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"OpenAI API Key\",\n \"secret\": true,\n \"description\": \"Your secret OpenAI API key, starting with 'sk-' or 'sk-proj-'. Create or copy one at platform.openai.com/api-keys and keep it private.\"\n },\n \"organization_id\": {\n \"label\": \"OpenAI Organization ID (optional)\",\n \"optional\": true,\n \"description\": \"Only needed if you're in multiple OpenAI organizations. Looks like 'org-AbC123xyz' — find it under Settings → Organization → General. Most users can leave this blank.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,mBAAmB;GACjB,SAAS;GACT,UAAU;GACV,eAAe;EACjB;EACA,mBAAmB;GACjB,SAAS;GACT,YAAY;GACZ,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ declare const openaiCatalog: {
|
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
11
|
readonly credentialFields: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly generic_api_key: {
|
|
13
13
|
readonly label: "OpenAI API Key";
|
|
14
14
|
readonly secret: true;
|
|
15
15
|
readonly description: "Your secret OpenAI API key, starting with 'sk-' or 'sk-proj-'. Create or copy one at platform.openai.com/api-keys and keep it private.";
|
package/dist/catalog.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ declare const openaiCatalog: {
|
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
11
|
readonly credentialFields: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly generic_api_key: {
|
|
13
13
|
readonly label: "OpenAI API Key";
|
|
14
14
|
readonly secret: true;
|
|
15
15
|
readonly description: "Your secret OpenAI API key, starting with 'sk-' or 'sk-proj-'. Create or copy one at platform.openai.com/api-keys and keep it private.";
|
package/dist/catalog.mjs
CHANGED
|
@@ -9,7 +9,7 @@ const openaiCatalog = {
|
|
|
9
9
|
"authKind": "keystroke",
|
|
10
10
|
"oauthScopes": [],
|
|
11
11
|
"credentialFields": {
|
|
12
|
-
"
|
|
12
|
+
"generic_api_key": {
|
|
13
13
|
"label": "OpenAI API Key",
|
|
14
14
|
"secret": true,
|
|
15
15
|
"description": "Your secret OpenAI API key, starting with 'sk-' or 'sk-proj-'. Create or copy one at platform.openai.com/api-keys and keep it private."
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const openaiCatalog = {\n \"slug\": \"openai\",\n \"name\": \"OpenAI\",\n \"description\": \"Toolkit for OpenAI APIs: manage Assistants, Threads/Messages; upload/list/delete Files; list/retrieve Models (including vision/multimodal); and view fine-tune listings and events.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/openai\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const openaiCatalog = {\n \"slug\": \"openai\",\n \"name\": \"OpenAI\",\n \"description\": \"Toolkit for OpenAI APIs: manage Assistants, Threads/Messages; upload/list/delete Files; list/retrieve Models (including vision/multimodal); and view fine-tune listings and events.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/openai\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"OpenAI API Key\",\n \"secret\": true,\n \"description\": \"Your secret OpenAI API key, starting with 'sk-' or 'sk-proj-'. Create or copy one at platform.openai.com/api-keys and keep it private.\"\n },\n \"organization_id\": {\n \"label\": \"OpenAI Organization ID (optional)\",\n \"optional\": true,\n \"description\": \"Only needed if you're in multiple OpenAI organizations. Looks like 'org-AbC123xyz' — find it under Settings → Organization → General. Most users can leave this blank.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,mBAAmB;GACjB,SAAS;GACT,UAAU;GACV,eAAe;EACjB;EACA,mBAAmB;GACjB,SAAS;GACT,YAAY;GACZ,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|