@keystrokehq/remove_bg 0.1.0 → 0.1.3
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/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/get-account.cjs +8 -8
- package/dist/actions/get-account.cjs.map +1 -1
- package/dist/actions/get-account.d.cts +18 -3
- package/dist/actions/get-account.d.cts.map +1 -1
- package/dist/actions/get-account.d.mts +18 -3
- package/dist/actions/get-account.d.mts.map +1 -1
- package/dist/actions/get-account.mjs +8 -8
- package/dist/actions/get-account.mjs.map +1 -1
- package/dist/actions/remove-bg.cjs +1 -1
- package/dist/actions/remove-bg.cjs.map +1 -1
- package/dist/actions/remove-bg.d.cts +48 -3
- package/dist/actions/remove-bg.d.cts.map +1 -1
- package/dist/actions/remove-bg.d.mts +48 -3
- package/dist/actions/remove-bg.d.mts.map +1 -1
- package/dist/actions/remove-bg.mjs +1 -1
- package/dist/actions/remove-bg.mjs.map +1 -1
- package/dist/actions/submit-improvement.cjs +1 -1
- package/dist/actions/submit-improvement.cjs.map +1 -1
- package/dist/actions/submit-improvement.d.cts +25 -3
- package/dist/actions/submit-improvement.d.cts.map +1 -1
- package/dist/actions/submit-improvement.d.mts +25 -3
- package/dist/actions/submit-improvement.d.mts.map +1 -1
- package/dist/actions/submit-improvement.mjs +1 -1
- package/dist/actions/submit-improvement.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["removeBg","executeRemoveBgTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { removeBg } from \"./app\";\nimport { executeRemoveBgTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["removeBg","executeRemoveBgTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { removeBg } from \"./app\";\nimport { executeRemoveBgTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return removeBg.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRemoveBgTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { removeBg } from \"./app\";\nimport { executeRemoveBgTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { removeBg } from \"./app\";\nimport { executeRemoveBgTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return removeBg.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRemoveBgTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -5,19 +5,19 @@ const RemoveBgGetAccountInput = zod.z.object({}).describe("Request model for fet
|
|
|
5
5
|
const RemoveBgGetAccount_ApiInfoSchema = zod.z.object({
|
|
6
6
|
sizes: zod.z.string().describe("Available sizes for the account").nullable().optional(),
|
|
7
7
|
free_calls: zod.z.number().int().describe("Number of free API calls available").nullable().optional()
|
|
8
|
-
});
|
|
8
|
+
}).passthrough();
|
|
9
9
|
const RemoveBgGetAccount_CreditsSchema = zod.z.object({
|
|
10
|
-
payg: zod.z.number().int().describe("Pay-as-you-go credits left"),
|
|
11
|
-
total: zod.z.number().int().describe("Total credits assigned to the account"),
|
|
10
|
+
payg: zod.z.number().int().describe("Pay-as-you-go credits left").nullable(),
|
|
11
|
+
total: zod.z.number().int().describe("Total credits assigned to the account").nullable(),
|
|
12
12
|
enterprise: zod.z.number().int().describe("Enterprise credits available").nullable().optional(),
|
|
13
|
-
subscription: zod.z.number().int().describe("Subscription credits left in the current period")
|
|
14
|
-
});
|
|
13
|
+
subscription: zod.z.number().int().describe("Subscription credits left in the current period").nullable()
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const RemoveBgGetAccount_AccountAttributesSchema = zod.z.object({
|
|
16
16
|
api: RemoveBgGetAccount_ApiInfoSchema.nullable().optional(),
|
|
17
17
|
credits: RemoveBgGetAccount_CreditsSchema.nullable()
|
|
18
|
-
});
|
|
19
|
-
const RemoveBgGetAccount_AccountDataSchema = zod.z.object({ attributes: RemoveBgGetAccount_AccountAttributesSchema.nullable() });
|
|
20
|
-
const RemoveBgGetAccountOutput = zod.z.object({ data: RemoveBgGetAccount_AccountDataSchema.nullable() });
|
|
18
|
+
}).passthrough();
|
|
19
|
+
const RemoveBgGetAccount_AccountDataSchema = zod.z.object({ attributes: RemoveBgGetAccount_AccountAttributesSchema.nullable() }).passthrough();
|
|
20
|
+
const RemoveBgGetAccountOutput = zod.z.object({ data: RemoveBgGetAccount_AccountDataSchema.nullable() }).passthrough();
|
|
21
21
|
const removeBgGetAccount = require_action.action("REMOVE_BG_GET_ACCOUNT", {
|
|
22
22
|
slug: "remove_bg-get-account",
|
|
23
23
|
name: "Get Account",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account.cjs","names":["z","action"],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgGetAccountInput
|
|
1
|
+
{"version":3,"file":"get-account.cjs","names":["z","action"],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgGetAccountInput = z.object({}).describe(\"Request model for fetching account details. No parameters required.\");\nconst RemoveBgGetAccount_ApiInfoSchema = z.object({\n sizes: z.string().describe(\"Available sizes for the account\").nullable().optional(),\n free_calls: z.number().int().describe(\"Number of free API calls available\").nullable().optional(),\n}).passthrough();\nconst RemoveBgGetAccount_CreditsSchema = z.object({\n payg: z.number().int().describe(\"Pay-as-you-go credits left\").nullable(),\n total: z.number().int().describe(\"Total credits assigned to the account\").nullable(),\n enterprise: z.number().int().describe(\"Enterprise credits available\").nullable().optional(),\n subscription: z.number().int().describe(\"Subscription credits left in the current period\").nullable(),\n}).passthrough();\nconst RemoveBgGetAccount_AccountAttributesSchema = z.object({\n api: RemoveBgGetAccount_ApiInfoSchema.nullable().optional(),\n credits: RemoveBgGetAccount_CreditsSchema.nullable(),\n}).passthrough();\nconst RemoveBgGetAccount_AccountDataSchema = z.object({\n attributes: RemoveBgGetAccount_AccountAttributesSchema.nullable(),\n}).passthrough();\nexport const RemoveBgGetAccountOutput = z.object({\n data: RemoveBgGetAccount_AccountDataSchema.nullable(),\n}).passthrough();\n\nexport const removeBgGetAccount = action(\"REMOVE_BG_GET_ACCOUNT\", {\n slug: \"remove_bg-get-account\",\n name: \"Get Account\",\n description: \"Tool to retrieve account information, including current credit balance. Use when you need to know your remove.bg account's credit and usage details.\",\n input: RemoveBgGetAccountInput,\n output: RemoveBgGetAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAClI,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAK,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC1D,SAAS,iCAAiC,SAAS;AACrD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuCA,IAAAA,EAAE,OAAO,EACpD,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-account.d.ts
|
|
4
|
-
declare const RemoveBgGetAccountInput: z.
|
|
5
|
-
declare const RemoveBgGetAccountOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const RemoveBgGetAccountInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const RemoveBgGetAccountOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
attributes: z.ZodNullable<z.ZodObject<{
|
|
8
|
+
api: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
|
+
sizes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
free_calls: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
}, z.core.$loose>>>;
|
|
12
|
+
credits: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
payg: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
enterprise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
subscription: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const removeBgGetAccount: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { removeBgGetAccount };
|
|
9
24
|
//# sourceMappingURL=get-account.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account.d.cts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-account.d.cts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-account.d.ts
|
|
4
|
-
declare const RemoveBgGetAccountInput: z.
|
|
5
|
-
declare const RemoveBgGetAccountOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const RemoveBgGetAccountInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const RemoveBgGetAccountOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
attributes: z.ZodNullable<z.ZodObject<{
|
|
8
|
+
api: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
|
+
sizes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
free_calls: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
}, z.core.$loose>>>;
|
|
12
|
+
credits: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
payg: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
enterprise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
subscription: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const removeBgGetAccount: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { removeBgGetAccount };
|
|
9
24
|
//# sourceMappingURL=get-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account.d.mts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-account.d.mts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -5,24 +5,24 @@ const RemoveBgGetAccountInput = z.object({}).describe("Request model for fetchin
|
|
|
5
5
|
const RemoveBgGetAccount_ApiInfoSchema = z.object({
|
|
6
6
|
sizes: z.string().describe("Available sizes for the account").nullable().optional(),
|
|
7
7
|
free_calls: z.number().int().describe("Number of free API calls available").nullable().optional()
|
|
8
|
-
});
|
|
8
|
+
}).passthrough();
|
|
9
9
|
const RemoveBgGetAccount_CreditsSchema = z.object({
|
|
10
|
-
payg: z.number().int().describe("Pay-as-you-go credits left"),
|
|
11
|
-
total: z.number().int().describe("Total credits assigned to the account"),
|
|
10
|
+
payg: z.number().int().describe("Pay-as-you-go credits left").nullable(),
|
|
11
|
+
total: z.number().int().describe("Total credits assigned to the account").nullable(),
|
|
12
12
|
enterprise: z.number().int().describe("Enterprise credits available").nullable().optional(),
|
|
13
|
-
subscription: z.number().int().describe("Subscription credits left in the current period")
|
|
14
|
-
});
|
|
13
|
+
subscription: z.number().int().describe("Subscription credits left in the current period").nullable()
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const RemoveBgGetAccount_AccountAttributesSchema = z.object({
|
|
16
16
|
api: RemoveBgGetAccount_ApiInfoSchema.nullable().optional(),
|
|
17
17
|
credits: RemoveBgGetAccount_CreditsSchema.nullable()
|
|
18
|
-
});
|
|
19
|
-
const RemoveBgGetAccount_AccountDataSchema = z.object({ attributes: RemoveBgGetAccount_AccountAttributesSchema.nullable() });
|
|
18
|
+
}).passthrough();
|
|
19
|
+
const RemoveBgGetAccount_AccountDataSchema = z.object({ attributes: RemoveBgGetAccount_AccountAttributesSchema.nullable() }).passthrough();
|
|
20
20
|
const removeBgGetAccount = action("REMOVE_BG_GET_ACCOUNT", {
|
|
21
21
|
slug: "remove_bg-get-account",
|
|
22
22
|
name: "Get Account",
|
|
23
23
|
description: "Tool to retrieve account information, including current credit balance. Use when you need to know your remove.bg account's credit and usage details.",
|
|
24
24
|
input: RemoveBgGetAccountInput,
|
|
25
|
-
output: z.object({ data: RemoveBgGetAccount_AccountDataSchema.nullable() })
|
|
25
|
+
output: z.object({ data: RemoveBgGetAccount_AccountDataSchema.nullable() }).passthrough()
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { removeBgGetAccount };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account.mjs","names":[],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgGetAccountInput
|
|
1
|
+
{"version":3,"file":"get-account.mjs","names":[],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgGetAccountInput = z.object({}).describe(\"Request model for fetching account details. No parameters required.\");\nconst RemoveBgGetAccount_ApiInfoSchema = z.object({\n sizes: z.string().describe(\"Available sizes for the account\").nullable().optional(),\n free_calls: z.number().int().describe(\"Number of free API calls available\").nullable().optional(),\n}).passthrough();\nconst RemoveBgGetAccount_CreditsSchema = z.object({\n payg: z.number().int().describe(\"Pay-as-you-go credits left\").nullable(),\n total: z.number().int().describe(\"Total credits assigned to the account\").nullable(),\n enterprise: z.number().int().describe(\"Enterprise credits available\").nullable().optional(),\n subscription: z.number().int().describe(\"Subscription credits left in the current period\").nullable(),\n}).passthrough();\nconst RemoveBgGetAccount_AccountAttributesSchema = z.object({\n api: RemoveBgGetAccount_ApiInfoSchema.nullable().optional(),\n credits: RemoveBgGetAccount_CreditsSchema.nullable(),\n}).passthrough();\nconst RemoveBgGetAccount_AccountDataSchema = z.object({\n attributes: RemoveBgGetAccount_AccountAttributesSchema.nullable(),\n}).passthrough();\nexport const RemoveBgGetAccountOutput = z.object({\n data: RemoveBgGetAccount_AccountDataSchema.nullable(),\n}).passthrough();\n\nexport const removeBgGetAccount = action(\"REMOVE_BG_GET_ACCOUNT\", {\n slug: \"remove_bg-get-account\",\n name: \"Get Account\",\n description: \"Tool to retrieve account information, including current credit balance. Use when you need to know your remove.bg account's credit and usage details.\",\n input: RemoveBgGetAccountInput,\n output: RemoveBgGetAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAClI,MAAM,mCAAmC,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC1D,SAAS,iCAAiC,SAAS;AACrD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuC,EAAE,OAAO,EACpD,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -28,7 +28,7 @@ const RemoveBgRemoveBgInput = zod.z.object({
|
|
|
28
28
|
bg_image_url: zod.z.string().describe("Background image URL to composite behind subject.").optional(),
|
|
29
29
|
bg_image_file: zod.z.string().describe("Background image file bytes to composite behind subject.").optional()
|
|
30
30
|
});
|
|
31
|
-
const RemoveBgRemoveBgOutput = zod.z.object({ image: zod.z.string().describe("Binary data of the image with background removed.") });
|
|
31
|
+
const RemoveBgRemoveBgOutput = zod.z.object({ image: zod.z.string().describe("Binary data of the image with background removed.").nullable() }).passthrough();
|
|
32
32
|
const removeBgRemoveBg = require_action.action("REMOVE_BG", {
|
|
33
33
|
slug: "remove_bg-remove-bg",
|
|
34
34
|
name: "Remove Background",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-bg.cjs","names":["z","action"],"sources":["../../src/actions/remove-bg.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgRemoveBgInput
|
|
1
|
+
{"version":3,"file":"remove-bg.cjs","names":["z","action"],"sources":["../../src/actions/remove-bg.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgRemoveBgInput = z.object({\n roi: z.string().describe(\"Region of interest in pixels as 'left,top,width,height'.\").optional(),\n crop: z.boolean().describe(\"Crop to ROI if true.\").optional(),\n size: z.enum([\"auto\", \"preview\", \"full\"]).describe(\"Output image size. One of 'auto', 'preview', 'full'.\").optional(),\n type: z.enum([\"auto\", \"person\", \"product\"]).describe(\"Image category. One of 'auto', 'person', 'product'.\").optional(),\n scale: z.string().describe(\"Scales the subject image as a percentage of the original size, formatted as '<int>%' between '10%' and '100%' (e.g., '50%'). Use '100%' or omit to keep the original size.\").optional(),\n format: z.enum([\"auto\", \"png\", \"jpg\"]).describe(\"Output image format. One of 'auto', 'png', 'jpg'.\").optional(),\n bg_color: z.string().describe(\"Hex color '#RRGGBB' to fill background instead of transparency.\").optional(),\n channels: z.string().describe(\"Output channels. Only 'rgba' supported.\").optional(),\n position: z.enum([\"center\", \"original\"]).describe(\"Position of subject: 'center' or 'original'.\").optional(),\n image_url: z.string().describe(\"URL of the image to process. Required if `image_file` is not provided.\").optional(),\n image_file: z.string().describe(\"Raw bytes of the image file to upload (multipart/form-data). Required if `image_url` is not provided.\").optional(),\n bg_image_url: z.string().describe(\"Background image URL to composite behind subject.\").optional(),\n bg_image_file: z.string().describe(\"Background image file bytes to composite behind subject.\").optional(),\n});\nexport const RemoveBgRemoveBgOutput = z.object({\n image: z.string().describe(\"Binary data of the image with background removed.\").nullable(),\n}).passthrough();\n\nexport const removeBgRemoveBg = action(\"REMOVE_BG\", {\n slug: \"remove_bg-remove-bg\",\n name: \"Remove Background\",\n description: \"Tool to remove background from an image. Use when you need a transparent or custom background for product or profile photos.\",\n input: RemoveBgRemoveBgInput,\n output: RemoveBgRemoveBgOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACpH,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACrH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;CAClN,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC1G,CAAC;AACD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC3F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mBAAmBC,eAAAA,OAAO,aAAa;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/remove-bg.d.ts
|
|
4
|
-
declare const RemoveBgRemoveBgInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RemoveBgRemoveBgInput: z.ZodObject<{
|
|
5
|
+
roi: z.ZodOptional<z.ZodString>;
|
|
6
|
+
crop: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
auto: "auto";
|
|
9
|
+
preview: "preview";
|
|
10
|
+
full: "full";
|
|
11
|
+
}>>;
|
|
12
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
auto: "auto";
|
|
14
|
+
person: "person";
|
|
15
|
+
product: "product";
|
|
16
|
+
}>>;
|
|
17
|
+
scale: z.ZodOptional<z.ZodString>;
|
|
18
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
auto: "auto";
|
|
20
|
+
png: "png";
|
|
21
|
+
jpg: "jpg";
|
|
22
|
+
}>>;
|
|
23
|
+
bg_color: z.ZodOptional<z.ZodString>;
|
|
24
|
+
channels: z.ZodOptional<z.ZodString>;
|
|
25
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
center: "center";
|
|
27
|
+
original: "original";
|
|
28
|
+
}>>;
|
|
29
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
30
|
+
image_file: z.ZodOptional<z.ZodString>;
|
|
31
|
+
bg_image_url: z.ZodOptional<z.ZodString>;
|
|
32
|
+
bg_image_file: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
declare const RemoveBgRemoveBgOutput: z.ZodObject<{
|
|
35
|
+
image: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
declare const removeBgRemoveBg: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
|
+
roi?: string | undefined;
|
|
39
|
+
crop?: boolean | undefined;
|
|
40
|
+
size?: "auto" | "preview" | "full" | undefined;
|
|
41
|
+
type?: "auto" | "person" | "product" | undefined;
|
|
42
|
+
scale?: string | undefined;
|
|
43
|
+
format?: "auto" | "png" | "jpg" | undefined;
|
|
44
|
+
bg_color?: string | undefined;
|
|
45
|
+
channels?: string | undefined;
|
|
46
|
+
position?: "center" | "original" | undefined;
|
|
47
|
+
image_url?: string | undefined;
|
|
48
|
+
image_file?: string | undefined;
|
|
49
|
+
bg_image_url?: string | undefined;
|
|
50
|
+
bg_image_file?: string | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { removeBgRemoveBg };
|
|
9
54
|
//# sourceMappingURL=remove-bg.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-bg.d.cts","names":[],"sources":["../../src/actions/remove-bg.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"remove-bg.d.cts","names":[],"sources":["../../src/actions/remove-bg.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAerB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAItB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/remove-bg.d.ts
|
|
4
|
-
declare const RemoveBgRemoveBgInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RemoveBgRemoveBgInput: z.ZodObject<{
|
|
5
|
+
roi: z.ZodOptional<z.ZodString>;
|
|
6
|
+
crop: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
auto: "auto";
|
|
9
|
+
preview: "preview";
|
|
10
|
+
full: "full";
|
|
11
|
+
}>>;
|
|
12
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
auto: "auto";
|
|
14
|
+
person: "person";
|
|
15
|
+
product: "product";
|
|
16
|
+
}>>;
|
|
17
|
+
scale: z.ZodOptional<z.ZodString>;
|
|
18
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
auto: "auto";
|
|
20
|
+
png: "png";
|
|
21
|
+
jpg: "jpg";
|
|
22
|
+
}>>;
|
|
23
|
+
bg_color: z.ZodOptional<z.ZodString>;
|
|
24
|
+
channels: z.ZodOptional<z.ZodString>;
|
|
25
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
center: "center";
|
|
27
|
+
original: "original";
|
|
28
|
+
}>>;
|
|
29
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
30
|
+
image_file: z.ZodOptional<z.ZodString>;
|
|
31
|
+
bg_image_url: z.ZodOptional<z.ZodString>;
|
|
32
|
+
bg_image_file: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
declare const RemoveBgRemoveBgOutput: z.ZodObject<{
|
|
35
|
+
image: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
declare const removeBgRemoveBg: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
|
+
roi?: string | undefined;
|
|
39
|
+
crop?: boolean | undefined;
|
|
40
|
+
size?: "auto" | "preview" | "full" | undefined;
|
|
41
|
+
type?: "auto" | "person" | "product" | undefined;
|
|
42
|
+
scale?: string | undefined;
|
|
43
|
+
format?: "auto" | "png" | "jpg" | undefined;
|
|
44
|
+
bg_color?: string | undefined;
|
|
45
|
+
channels?: string | undefined;
|
|
46
|
+
position?: "center" | "original" | undefined;
|
|
47
|
+
image_url?: string | undefined;
|
|
48
|
+
image_file?: string | undefined;
|
|
49
|
+
bg_image_url?: string | undefined;
|
|
50
|
+
bg_image_file?: string | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { removeBgRemoveBg };
|
|
9
54
|
//# sourceMappingURL=remove-bg.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-bg.d.mts","names":[],"sources":["../../src/actions/remove-bg.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"remove-bg.d.mts","names":[],"sources":["../../src/actions/remove-bg.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAerB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAItB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -31,7 +31,7 @@ const removeBgRemoveBg = action("REMOVE_BG", {
|
|
|
31
31
|
bg_image_url: z.string().describe("Background image URL to composite behind subject.").optional(),
|
|
32
32
|
bg_image_file: z.string().describe("Background image file bytes to composite behind subject.").optional()
|
|
33
33
|
}),
|
|
34
|
-
output: z.object({ image: z.string().describe("Binary data of the image with background removed.") })
|
|
34
|
+
output: z.object({ image: z.string().describe("Binary data of the image with background removed.").nullable() }).passthrough()
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { removeBgRemoveBg };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-bg.mjs","names":[],"sources":["../../src/actions/remove-bg.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgRemoveBgInput
|
|
1
|
+
{"version":3,"file":"remove-bg.mjs","names":[],"sources":["../../src/actions/remove-bg.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgRemoveBgInput = z.object({\n roi: z.string().describe(\"Region of interest in pixels as 'left,top,width,height'.\").optional(),\n crop: z.boolean().describe(\"Crop to ROI if true.\").optional(),\n size: z.enum([\"auto\", \"preview\", \"full\"]).describe(\"Output image size. One of 'auto', 'preview', 'full'.\").optional(),\n type: z.enum([\"auto\", \"person\", \"product\"]).describe(\"Image category. One of 'auto', 'person', 'product'.\").optional(),\n scale: z.string().describe(\"Scales the subject image as a percentage of the original size, formatted as '<int>%' between '10%' and '100%' (e.g., '50%'). Use '100%' or omit to keep the original size.\").optional(),\n format: z.enum([\"auto\", \"png\", \"jpg\"]).describe(\"Output image format. One of 'auto', 'png', 'jpg'.\").optional(),\n bg_color: z.string().describe(\"Hex color '#RRGGBB' to fill background instead of transparency.\").optional(),\n channels: z.string().describe(\"Output channels. Only 'rgba' supported.\").optional(),\n position: z.enum([\"center\", \"original\"]).describe(\"Position of subject: 'center' or 'original'.\").optional(),\n image_url: z.string().describe(\"URL of the image to process. Required if `image_file` is not provided.\").optional(),\n image_file: z.string().describe(\"Raw bytes of the image file to upload (multipart/form-data). Required if `image_url` is not provided.\").optional(),\n bg_image_url: z.string().describe(\"Background image URL to composite behind subject.\").optional(),\n bg_image_file: z.string().describe(\"Background image file bytes to composite behind subject.\").optional(),\n});\nexport const RemoveBgRemoveBgOutput = z.object({\n image: z.string().describe(\"Binary data of the image with background removed.\").nullable(),\n}).passthrough();\n\nexport const removeBgRemoveBg = action(\"REMOVE_BG\", {\n slug: \"remove_bg-remove-bg\",\n name: \"Remove Background\",\n description: \"Tool to remove background from an image. Use when you need a transparent or custom background for product or profile photos.\",\n input: RemoveBgRemoveBgInput,\n output: RemoveBgRemoveBgOutput,\n});\n"],"mappings":";;AAuBA,MAAa,mBAAmB,OAAO,aAAa;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBmC,EAAE,OAAO;EAC5C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC5D,MAAM,EAAE,KAAK;GAAC;GAAQ;GAAW;EAAM,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACpH,MAAM,EAAE,KAAK;GAAC;GAAQ;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACrH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EAClN,QAAQ,EAAE,KAAK;GAAC;GAAQ;GAAO;EAAK,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAClH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAClJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1G,CASS;CACP,QAToC,EAAE,OAAO,EAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC3F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const RemoveBgSubmitImprovementInput = zod.z.object({
|
|
|
12
12
|
image_file_b64: zod.z.string().describe("Base64-encoded image file string. Required if `image_file` and `image_url` are not provided. Only one image source parameter can be specified.").optional(),
|
|
13
13
|
image_filename: zod.z.string().describe("Filename of the image. If not provided, it will be autodetected from the submitted data.").optional()
|
|
14
14
|
});
|
|
15
|
-
const RemoveBgSubmitImprovementOutput = zod.z.object({ id: zod.z.string().describe("UUID of the submitted image") });
|
|
15
|
+
const RemoveBgSubmitImprovementOutput = zod.z.object({ id: zod.z.string().describe("UUID of the submitted image").nullable() }).passthrough();
|
|
16
16
|
const removeBgSubmitImprovement = require_action.action("REMOVE_BG_SUBMIT_IMPROVEMENT", {
|
|
17
17
|
slug: "remove_bg-submit-improvement",
|
|
18
18
|
name: "Submit Improvement",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-improvement.cjs","names":["z","action"],"sources":["../../src/actions/submit-improvement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgSubmitImprovementInput
|
|
1
|
+
{"version":3,"file":"submit-improvement.cjs","names":["z","action"],"sources":["../../src/actions/submit-improvement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgSubmitImprovementInput = z.object({\n tag: z.string().describe(\"Tag to group related images together. Images with the same tag are grouped.\").optional(),\n image_url: z.string().describe(\"URL of the image to submit. Required if `image_file` and `image_file_b64` are not provided. Only one image source parameter can be specified.\").optional(),\n image_file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Image file to upload. Required if `image_file_b64` and `image_url` are not provided. Only one image source parameter can be specified.\").optional(),\n image_file_b64: z.string().describe(\"Base64-encoded image file string. Required if `image_file` and `image_url` are not provided. Only one image source parameter can be specified.\").optional(),\n image_filename: z.string().describe(\"Filename of the image. If not provided, it will be autodetected from the submitted data.\").optional(),\n});\nexport const RemoveBgSubmitImprovementOutput = z.object({\n id: z.string().describe(\"UUID of the submitted image\").nullable(),\n}).passthrough();\n\nexport const removeBgSubmitImprovement = action(\"REMOVE_BG_SUBMIT_IMPROVEMENT\", {\n slug: \"remove_bg-submit-improvement\",\n name: \"Submit Improvement\",\n description: \"Tool to submit an image to the remove.bg Improvement program. Use when you want to contribute images that remove.bg cannot process properly to help improve the AI. By submitting images you agree to the Improvement Program Conditions. Limited to 100 files per day, max 22MB file size, up to 50 megapixels resolution.\",\n input: RemoveBgSubmitImprovementInput,\n output: RemoveBgSubmitImprovementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACjH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CACzL,YAAYA,IAAAA,EAAE,OAAO;EACrB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAC7J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CAC/L,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;AAC3I,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/submit-improvement.d.ts
|
|
4
|
-
declare const RemoveBgSubmitImprovementInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RemoveBgSubmitImprovementInput: z.ZodObject<{
|
|
5
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
6
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
7
|
+
image_file: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
s3key: z.ZodString;
|
|
10
|
+
mimetype: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
image_file_b64: z.ZodOptional<z.ZodString>;
|
|
13
|
+
image_filename: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const RemoveBgSubmitImprovementOutput: z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const removeBgSubmitImprovement: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
tag?: string | undefined;
|
|
20
|
+
image_url?: string | undefined;
|
|
21
|
+
image_file?: {
|
|
22
|
+
name: string;
|
|
23
|
+
s3key: string;
|
|
24
|
+
mimetype: string;
|
|
25
|
+
} | undefined;
|
|
26
|
+
image_file_b64?: string | undefined;
|
|
27
|
+
image_filename?: string | undefined;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { removeBgSubmitImprovement };
|
|
9
31
|
//# sourceMappingURL=submit-improvement.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-improvement.d.cts","names":[],"sources":["../../src/actions/submit-improvement.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"submit-improvement.d.cts","names":[],"sources":["../../src/actions/submit-improvement.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/submit-improvement.d.ts
|
|
4
|
-
declare const RemoveBgSubmitImprovementInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RemoveBgSubmitImprovementInput: z.ZodObject<{
|
|
5
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
6
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
7
|
+
image_file: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
s3key: z.ZodString;
|
|
10
|
+
mimetype: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
image_file_b64: z.ZodOptional<z.ZodString>;
|
|
13
|
+
image_filename: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const RemoveBgSubmitImprovementOutput: z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const removeBgSubmitImprovement: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
tag?: string | undefined;
|
|
20
|
+
image_url?: string | undefined;
|
|
21
|
+
image_file?: {
|
|
22
|
+
name: string;
|
|
23
|
+
s3key: string;
|
|
24
|
+
mimetype: string;
|
|
25
|
+
} | undefined;
|
|
26
|
+
image_file_b64?: string | undefined;
|
|
27
|
+
image_filename?: string | undefined;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { removeBgSubmitImprovement };
|
|
9
31
|
//# sourceMappingURL=submit-improvement.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-improvement.d.mts","names":[],"sources":["../../src/actions/submit-improvement.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"submit-improvement.d.mts","names":[],"sources":["../../src/actions/submit-improvement.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -15,7 +15,7 @@ const removeBgSubmitImprovement = action("REMOVE_BG_SUBMIT_IMPROVEMENT", {
|
|
|
15
15
|
image_file_b64: z.string().describe("Base64-encoded image file string. Required if `image_file` and `image_url` are not provided. Only one image source parameter can be specified.").optional(),
|
|
16
16
|
image_filename: z.string().describe("Filename of the image. If not provided, it will be autodetected from the submitted data.").optional()
|
|
17
17
|
}),
|
|
18
|
-
output: z.object({ id: z.string().describe("UUID of the submitted image") })
|
|
18
|
+
output: z.object({ id: z.string().describe("UUID of the submitted image").nullable() }).passthrough()
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { removeBgSubmitImprovement };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-improvement.mjs","names":[],"sources":["../../src/actions/submit-improvement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgSubmitImprovementInput
|
|
1
|
+
{"version":3,"file":"submit-improvement.mjs","names":[],"sources":["../../src/actions/submit-improvement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RemoveBgSubmitImprovementInput = z.object({\n tag: z.string().describe(\"Tag to group related images together. Images with the same tag are grouped.\").optional(),\n image_url: z.string().describe(\"URL of the image to submit. Required if `image_file` and `image_file_b64` are not provided. Only one image source parameter can be specified.\").optional(),\n image_file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Image file to upload. Required if `image_file_b64` and `image_url` are not provided. Only one image source parameter can be specified.\").optional(),\n image_file_b64: z.string().describe(\"Base64-encoded image file string. Required if `image_file` and `image_url` are not provided. Only one image source parameter can be specified.\").optional(),\n image_filename: z.string().describe(\"Filename of the image. If not provided, it will be autodetected from the submitted data.\").optional(),\n});\nexport const RemoveBgSubmitImprovementOutput = z.object({\n id: z.string().describe(\"UUID of the submitted image\").nullable(),\n}).passthrough();\n\nexport const removeBgSubmitImprovement = action(\"REMOVE_BG_SUBMIT_IMPROVEMENT\", {\n slug: \"remove_bg-submit-improvement\",\n name: \"Submit Improvement\",\n description: \"Tool to submit an image to the remove.bg Improvement program. Use when you want to contribute images that remove.bg cannot process properly to help improve the AI. By submitting images you agree to the Improvement Program Conditions. Limited to 100 files per day, max 22MB file size, up to 50 megapixels resolution.\",\n input: RemoveBgSubmitImprovementInput,\n output: RemoveBgSubmitImprovementOutput,\n});\n"],"mappings":";;AAmBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACjH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;EACzL,YAAY,EAAE,OAAO;GACrB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;EAC7J,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;EAC/L,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC3I,CASS;CACP,QAT6C,EAAE,OAAO,EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const removeBgCatalog = {
|
|
|
7
7
|
"category": "Images & Design",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/remove_bg",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "Remove.bg API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your unique API key for authenticating requests to the remove.bg API."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.removeBgCatalog = removeBgCatalog;
|
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 removeBgCatalog = {\n \"slug\": \"remove_bg\",\n \"name\": \"Remove.bg\",\n \"description\": \"remove_bg is an API that allows developers to automatically remove backgrounds from images using AI technology.\",\n \"category\": \"Images & Design\",\n \"logo\": \"https://logos.composio.dev/api/remove_bg\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const removeBgCatalog = {\n \"slug\": \"remove_bg\",\n \"name\": \"Remove.bg\",\n \"description\": \"remove_bg is an API that allows developers to automatically remove backgrounds from images using AI technology.\",\n \"category\": \"Images & Design\",\n \"logo\": \"https://logos.composio.dev/api/remove_bg\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Remove.bg API Key\",\n \"secret\": true,\n \"description\": \"Your unique API key for authenticating requests to the remove.bg API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const removeBgCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/remove_bg";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "Remove.bg API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your unique API key for authenticating requests to the remove.bg API.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { removeBgCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const removeBgCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/remove_bg";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "Remove.bg API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your unique API key for authenticating requests to the remove.bg API.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { removeBgCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const removeBgCatalog = {
|
|
|
7
7
|
"category": "Images & Design",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/remove_bg",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "Remove.bg API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your unique API key for authenticating requests to the remove.bg API."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { removeBgCatalog };
|
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 removeBgCatalog = {\n \"slug\": \"remove_bg\",\n \"name\": \"Remove.bg\",\n \"description\": \"remove_bg is an API that allows developers to automatically remove backgrounds from images using AI technology.\",\n \"category\": \"Images & Design\",\n \"logo\": \"https://logos.composio.dev/api/remove_bg\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const removeBgCatalog = {\n \"slug\": \"remove_bg\",\n \"name\": \"Remove.bg\",\n \"description\": \"remove_bg is an API that allows developers to automatically remove backgrounds from images using AI technology.\",\n \"category\": \"Images & Design\",\n \"logo\": \"https://logos.composio.dev/api/remove_bg\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Remove.bg API Key\",\n \"secret\": true,\n \"description\": \"Your unique API key for authenticating requests to the remove.bg API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/execute.cjs
CHANGED
|
@@ -2,7 +2,7 @@ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
|
2
2
|
//#region src/execute.ts
|
|
3
3
|
const APP_SLUG = "remove_bg";
|
|
4
4
|
/** Pinned app version — updated on regeneration. */
|
|
5
|
-
const APP_VERSION = "
|
|
5
|
+
const APP_VERSION = "20260707_00";
|
|
6
6
|
async function executeRemoveBgTool(tool, args) {
|
|
7
7
|
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
8
|
app: APP_SLUG,
|
package/dist/execute.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"remove_bg\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"remove_bg\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260707_00\";\n\nexport async function executeRemoveBgTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,oBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
|
2
2
|
//#region src/execute.ts
|
|
3
3
|
const APP_SLUG = "remove_bg";
|
|
4
4
|
/** Pinned app version — updated on regeneration. */
|
|
5
|
-
const APP_VERSION = "
|
|
5
|
+
const APP_VERSION = "20260707_00";
|
|
6
6
|
async function executeRemoveBgTool(tool, args) {
|
|
7
7
|
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
8
|
app: APP_SLUG,
|
package/dist/execute.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"remove_bg\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"remove_bg\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260707_00\";\n\nexport async function executeRemoveBgTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,oBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/remove_bg",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|