@keystrokehq/remove_bg 0.1.4 → 0.1.6

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.
Files changed (37) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-account.cjs +1 -0
  4. package/dist/actions/get-account.cjs.map +1 -1
  5. package/dist/actions/get-account.d.cts +3 -1
  6. package/dist/actions/get-account.d.cts.map +1 -1
  7. package/dist/actions/get-account.d.mts +3 -1
  8. package/dist/actions/get-account.d.mts.map +1 -1
  9. package/dist/actions/get-account.mjs +1 -0
  10. package/dist/actions/get-account.mjs.map +1 -1
  11. package/dist/actions/remove-bg.cjs +1 -0
  12. package/dist/actions/remove-bg.cjs.map +1 -1
  13. package/dist/actions/remove-bg.d.cts +3 -15
  14. package/dist/actions/remove-bg.d.cts.map +1 -1
  15. package/dist/actions/remove-bg.d.mts +3 -15
  16. package/dist/actions/remove-bg.d.mts.map +1 -1
  17. package/dist/actions/remove-bg.mjs +1 -0
  18. package/dist/actions/remove-bg.mjs.map +1 -1
  19. package/dist/actions/submit-improvement.cjs +1 -0
  20. package/dist/actions/submit-improvement.cjs.map +1 -1
  21. package/dist/actions/submit-improvement.d.cts +3 -11
  22. package/dist/actions/submit-improvement.d.cts.map +1 -1
  23. package/dist/actions/submit-improvement.d.mts +3 -11
  24. package/dist/actions/submit-improvement.d.mts.map +1 -1
  25. package/dist/actions/submit-improvement.mjs +1 -0
  26. package/dist/actions/submit-improvement.mjs.map +1 -1
  27. package/dist/app.cjs +5 -2
  28. package/dist/app.cjs.map +1 -1
  29. package/dist/app.d.cts +7 -1
  30. package/dist/app.d.cts.map +1 -1
  31. package/dist/app.d.mts +7 -1
  32. package/dist/app.d.mts.map +1 -1
  33. package/dist/app.mjs +3 -2
  34. package/dist/app.mjs.map +1 -1
  35. package/dist/index.d.cts +1 -1
  36. package/dist/index.d.mts +1 -1
  37. package/package.json +2 -2
@@ -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<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"}
1
+ {"version":3,"file":"action.cjs","names":["removeBg","executeRemoveBgTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof removeBg.credential> {\n return removeBg.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRemoveBgTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,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"}
@@ -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<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"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof removeBg.credential> {\n return removeBg.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRemoveBgTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,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"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-account.ts
@@ -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 = 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
+ {"version":3,"file":"get-account.cjs","names":["z","action"],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { removeBg } from \"../app\";\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: AppAction<\n typeof RemoveBgGetAccountInput,\n typeof RemoveBgGetAccountOutput,\n typeof removeBg.credential\n> = 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":";;;;AAMA,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,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { removeBg } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-account.d.ts
@@ -18,7 +20,7 @@ declare const RemoveBgGetAccountOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  }, z.core.$loose>>;
20
22
  }, 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]>;
23
+ declare const removeBgGetAccount: AppAction<typeof RemoveBgGetAccountInput, typeof RemoveBgGetAccountOutput, typeof removeBg.credential>;
22
24
  //#endregion
23
25
  export { removeBgGetAccount };
24
26
  //# 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,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
+ {"version":3,"file":"get-account.d.cts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { removeBg } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-account.d.ts
@@ -18,7 +20,7 @@ declare const RemoveBgGetAccountOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  }, z.core.$loose>>;
20
22
  }, 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]>;
23
+ declare const removeBgGetAccount: AppAction<typeof RemoveBgGetAccountInput, typeof RemoveBgGetAccountOutput, typeof removeBg.credential>;
22
24
  //#endregion
23
25
  export { removeBgGetAccount };
24
26
  //# 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,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
+ {"version":3,"file":"get-account.d.mts","names":[],"sources":["../../src/actions/get-account.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAkBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-account.ts
@@ -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 = 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"}
1
+ {"version":3,"file":"get-account.mjs","names":[],"sources":["../../src/actions/get-account.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { removeBg } from \"../app\";\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: AppAction<\n typeof RemoveBgGetAccountInput,\n typeof RemoveBgGetAccountOutput,\n typeof removeBg.credential\n> = 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":";;;;AAMA,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,qBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/remove-bg.ts
@@ -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 = 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
+ {"version":3,"file":"remove-bg.cjs","names":["z","action"],"sources":["../../src/actions/remove-bg.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { removeBg } from \"../app\";\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: AppAction<\n typeof RemoveBgRemoveBgInput,\n typeof RemoveBgRemoveBgOutput,\n typeof removeBg.credential\n> = 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":";;;;AAMA,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,mBAITC,eAAAA,OAAO,aAAa;CACtB,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { removeBg } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/remove-bg.d.ts
@@ -34,21 +36,7 @@ declare const RemoveBgRemoveBgInput: z.ZodObject<{
34
36
  declare const RemoveBgRemoveBgOutput: z.ZodObject<{
35
37
  image: z.ZodNullable<z.ZodString>;
36
38
  }, 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]>;
39
+ declare const removeBgRemoveBg: AppAction<typeof RemoveBgRemoveBgInput, typeof RemoveBgRemoveBgOutput, typeof removeBg.credential>;
52
40
  //#endregion
53
41
  export { removeBgRemoveBg };
54
42
  //# 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,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAerB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAItB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"remove-bg.d.cts","names":[],"sources":["../../src/actions/remove-bg.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAerB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { removeBg } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/remove-bg.d.ts
@@ -34,21 +36,7 @@ declare const RemoveBgRemoveBgInput: z.ZodObject<{
34
36
  declare const RemoveBgRemoveBgOutput: z.ZodObject<{
35
37
  image: z.ZodNullable<z.ZodString>;
36
38
  }, 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]>;
39
+ declare const removeBgRemoveBg: AppAction<typeof RemoveBgRemoveBgInput, typeof RemoveBgRemoveBgOutput, typeof removeBg.credential>;
52
40
  //#endregion
53
41
  export { removeBgRemoveBg };
54
42
  //# 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,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAerB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAItB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"remove-bg.d.mts","names":[],"sources":["../../src/actions/remove-bg.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAerB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const removeBgRemoveBg = action("REMOVE_BG", {
@@ -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 = 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"}
1
+ {"version":3,"file":"remove-bg.mjs","names":[],"sources":["../../src/actions/remove-bg.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { removeBg } from \"../app\";\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: AppAction<\n typeof RemoveBgRemoveBgInput,\n typeof RemoveBgRemoveBgOutput,\n typeof removeBg.credential\n> = 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":";;;AAyBA,MAAa,mBAIT,OAAO,aAAa;CACtB,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BmC,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,CAaS;CACP,QAboC,EAAE,OAAO,EAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC3F,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/submit-improvement.ts
@@ -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 = 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
+ {"version":3,"file":"submit-improvement.cjs","names":["z","action"],"sources":["../../src/actions/submit-improvement.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { removeBg } from \"../app\";\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: AppAction<\n typeof RemoveBgSubmitImprovementInput,\n typeof RemoveBgSubmitImprovementOutput,\n typeof removeBg.credential\n> = 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":";;;;AAMA,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,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { removeBg } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/submit-improvement.d.ts
@@ -15,17 +17,7 @@ declare const RemoveBgSubmitImprovementInput: z.ZodObject<{
15
17
  declare const RemoveBgSubmitImprovementOutput: z.ZodObject<{
16
18
  id: z.ZodNullable<z.ZodString>;
17
19
  }, 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]>;
20
+ declare const removeBgSubmitImprovement: AppAction<typeof RemoveBgSubmitImprovementInput, typeof RemoveBgSubmitImprovementOutput, typeof removeBg.credential>;
29
21
  //#endregion
30
22
  export { removeBgSubmitImprovement };
31
23
  //# 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,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"submit-improvement.d.cts","names":[],"sources":["../../src/actions/submit-improvement.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { removeBg } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/submit-improvement.d.ts
@@ -15,17 +17,7 @@ declare const RemoveBgSubmitImprovementInput: z.ZodObject<{
15
17
  declare const RemoveBgSubmitImprovementOutput: z.ZodObject<{
16
18
  id: z.ZodNullable<z.ZodString>;
17
19
  }, 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]>;
20
+ declare const removeBgSubmitImprovement: AppAction<typeof RemoveBgSubmitImprovementInput, typeof RemoveBgSubmitImprovementOutput, typeof removeBg.credential>;
29
21
  //#endregion
30
22
  export { removeBgSubmitImprovement };
31
23
  //# 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,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"submit-improvement.d.mts","names":[],"sources":["../../src/actions/submit-improvement.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const removeBgSubmitImprovement = action("REMOVE_BG_SUBMIT_IMPROVEMENT", {
@@ -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 = 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"}
1
+ {"version":3,"file":"submit-improvement.mjs","names":[],"sources":["../../src/actions/submit-improvement.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { removeBg } from \"../app\";\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: AppAction<\n typeof RemoveBgSubmitImprovementInput,\n typeof RemoveBgSubmitImprovementOutput,\n typeof removeBg.credential\n> = 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":";;;AAqBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB4C,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,CAaS;CACP,QAb6C,EAAE,OAAO,EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const removeBg = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
+ const removeBg = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "remove_bg",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.removeBg = removeBg;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const removeBg = defineApp({\n slug: \"remove_bg\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,YAAA,uCAAA,CAAA,CAAA,UAAA,CAAqB;CAChC,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const removeBg: KeystrokeApp<\"remove_bg\", typeof credential> = defineApp({\n slug: \"remove_bg\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,YAAA,GAAA,2BAAA,UAAA,CAAmE;CAC9E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const removeBg: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const removeBg: KeystrokeApp<"remove_bg", typeof credential>;
3
9
  //#endregion
4
10
  export { removeBg };
5
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,QAAA,6BAAQ,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,QAAA,EAAU,YAAY,qBAAqB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const removeBg: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const removeBg: KeystrokeApp<"remove_bg", typeof credential>;
3
9
  //#endregion
4
10
  export { removeBg };
5
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,QAAA,6BAAQ,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,QAAA,EAAU,YAAY,qBAAqB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const removeBg = defineApp({
4
4
  slug: "remove_bg",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: { generic_api_key: z.string() }
6
7
  });
7
8
  //#endregion
8
9
  export { removeBg };
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const removeBg = defineApp({\n slug: \"remove_bg\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,WAAW,UAAU;CAChC,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const removeBg: KeystrokeApp<\"remove_bg\", typeof credential> = defineApp({\n slug: \"remove_bg\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,WAAyD,UAAU;CAC9E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
+ import { removeBg } from "./app.cjs";
1
2
  import { removeBgGetAccount } from "./actions/get-account.cjs";
2
3
  import { removeBgRemoveBg } from "./actions/remove-bg.cjs";
3
4
  import { removeBgSubmitImprovement } from "./actions/submit-improvement.cjs";
4
- import { removeBg } from "./app.cjs";
5
5
  import { removeBgCatalog } from "./catalog.cjs";
6
6
  export { removeBg, removeBgCatalog, removeBgGetAccount, removeBgRemoveBg, removeBgSubmitImprovement };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
+ import { removeBg } from "./app.mjs";
1
2
  import { removeBgGetAccount } from "./actions/get-account.mjs";
2
3
  import { removeBgRemoveBg } from "./actions/remove-bg.mjs";
3
4
  import { removeBgSubmitImprovement } from "./actions/submit-improvement.mjs";
4
- import { removeBg } from "./app.mjs";
5
5
  import { removeBgCatalog } from "./catalog.mjs";
6
6
  export { removeBg, removeBgCatalog, removeBgGetAccount, removeBgRemoveBg, removeBgSubmitImprovement };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/remove_bg",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
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": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {