@keystrokehq/poof 0.1.5 → 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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/check-balance.cjs +1 -0
- package/dist/actions/check-balance.cjs.map +1 -1
- package/dist/actions/check-balance.d.cts +3 -15
- package/dist/actions/check-balance.d.cts.map +1 -1
- package/dist/actions/check-balance.d.mts +3 -15
- package/dist/actions/check-balance.d.mts.map +1 -1
- package/dist/actions/check-balance.mjs +1 -0
- package/dist/actions/check-balance.mjs.map +1 -1
- package/dist/actions/create-checkout.cjs +1 -0
- package/dist/actions/create-checkout.cjs.map +1 -1
- package/dist/actions/create-checkout.d.cts +3 -28
- package/dist/actions/create-checkout.d.cts.map +1 -1
- package/dist/actions/create-checkout.d.mts +3 -28
- package/dist/actions/create-checkout.d.mts.map +1 -1
- package/dist/actions/create-checkout.mjs +1 -0
- package/dist/actions/create-checkout.mjs.map +1 -1
- package/dist/actions/create-deposit-address.cjs +1 -0
- package/dist/actions/create-deposit-address.cjs.map +1 -1
- package/dist/actions/create-deposit-address.d.cts +3 -18
- package/dist/actions/create-deposit-address.d.cts.map +1 -1
- package/dist/actions/create-deposit-address.d.mts +3 -18
- package/dist/actions/create-deposit-address.d.mts.map +1 -1
- package/dist/actions/create-deposit-address.mjs +1 -0
- package/dist/actions/create-deposit-address.mjs.map +1 -1
- package/dist/actions/create-fiat-charge.cjs +1 -0
- package/dist/actions/create-fiat-charge.cjs.map +1 -1
- package/dist/actions/create-fiat-charge.d.cts +3 -19
- package/dist/actions/create-fiat-charge.d.cts.map +1 -1
- package/dist/actions/create-fiat-charge.d.mts +3 -19
- package/dist/actions/create-fiat-charge.d.mts.map +1 -1
- package/dist/actions/create-fiat-charge.mjs +1 -0
- package/dist/actions/create-fiat-charge.mjs.map +1 -1
- package/dist/actions/create-fiat-invoice.cjs +1 -0
- package/dist/actions/create-fiat-invoice.cjs.map +1 -1
- package/dist/actions/create-fiat-invoice.d.cts +3 -19
- package/dist/actions/create-fiat-invoice.d.cts.map +1 -1
- package/dist/actions/create-fiat-invoice.d.mts +3 -19
- package/dist/actions/create-fiat-invoice.d.mts.map +1 -1
- package/dist/actions/create-fiat-invoice.mjs +1 -0
- package/dist/actions/create-fiat-invoice.mjs.map +1 -1
- package/dist/actions/create-payment-link.cjs +1 -0
- package/dist/actions/create-payment-link.cjs.map +1 -1
- package/dist/actions/create-payment-link.d.cts +3 -17
- package/dist/actions/create-payment-link.d.cts.map +1 -1
- package/dist/actions/create-payment-link.d.mts +3 -17
- package/dist/actions/create-payment-link.d.mts.map +1 -1
- package/dist/actions/create-payment-link.mjs +1 -0
- package/dist/actions/create-payment-link.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +1 -0
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +3 -15
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +3 -15
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +1 -0
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/fetch-gas-price.cjs +1 -0
- package/dist/actions/fetch-gas-price.cjs.map +1 -1
- package/dist/actions/fetch-gas-price.d.cts +3 -15
- package/dist/actions/fetch-gas-price.d.cts.map +1 -1
- package/dist/actions/fetch-gas-price.d.mts +3 -15
- package/dist/actions/fetch-gas-price.d.mts.map +1 -1
- package/dist/actions/fetch-gas-price.mjs +1 -0
- package/dist/actions/fetch-gas-price.mjs.map +1 -1
- package/dist/actions/fetch-price.cjs +1 -0
- package/dist/actions/fetch-price.cjs.map +1 -1
- package/dist/actions/fetch-price.d.cts +3 -15
- package/dist/actions/fetch-price.d.cts.map +1 -1
- package/dist/actions/fetch-price.d.mts +3 -15
- package/dist/actions/fetch-price.d.mts.map +1 -1
- package/dist/actions/fetch-price.mjs +1 -0
- package/dist/actions/fetch-price.mjs.map +1 -1
- package/dist/actions/fetch-smart-contracts.cjs +1 -0
- package/dist/actions/fetch-smart-contracts.cjs.map +1 -1
- package/dist/actions/fetch-smart-contracts.d.cts +3 -13
- package/dist/actions/fetch-smart-contracts.d.cts.map +1 -1
- package/dist/actions/fetch-smart-contracts.d.mts +3 -13
- package/dist/actions/fetch-smart-contracts.d.mts.map +1 -1
- package/dist/actions/fetch-smart-contracts.mjs +1 -0
- package/dist/actions/fetch-smart-contracts.mjs.map +1 -1
- package/dist/actions/send-payout.cjs +1 -0
- package/dist/actions/send-payout.cjs.map +1 -1
- package/dist/actions/send-payout.d.cts +3 -17
- package/dist/actions/send-payout.d.cts.map +1 -1
- package/dist/actions/send-payout.d.mts +3 -17
- package/dist/actions/send-payout.d.mts.map +1 -1
- package/dist/actions/send-payout.mjs +1 -0
- package/dist/actions/send-payout.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["poof","executePoofTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { poof } from \"./app\";\nimport { executePoofTool } 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:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["poof","executePoofTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { poof } from \"./app\";\nimport { executePoofTool } 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 poof.credential> {\n return poof.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 executePoofTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOoD;CACpD,OAAOA,YAAAA,KAAK,OAAO;EACjB,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,gBAAgB,MAAM,KAAgC,CAAC;EACvF;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 { poof } from \"./app\";\nimport { executePoofTool } 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:
|
|
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 { poof } from \"./app\";\nimport { executePoofTool } 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 poof.credential> {\n return poof.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 executePoofTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOoD;CACpD,OAAO,KAAK,OAAO;EACjB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,gBAAgB,MAAM,KAAgC,CAAC;EACvF;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-balance.cjs","names":["z","action"],"sources":["../../src/actions/check-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCheckBalanceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency type to check balance for (e.g., 'bitcoin', 'ethereum', 'litecoin', 'dogecoin').\"),\n}).describe(\"Request model for checking cryptocurrency wallet balance.\");\nexport const PoofCheckBalanceOutput = z.object({\n balance: z.string().describe(\"The current balance of the specified cryptocurrency wallet.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the cryptocurrency balance.\");\n\nexport const poofCheckBalance = action(\"POOF_CHECK_BALANCE\", {\n slug: \"poof-check-balance\",\n name: \"Check Balance\",\n description: \"Tool to check the balance of a cryptocurrency wallet. Use when you need to retrieve the current balance for a specified blockchain wallet address.\",\n input: PoofCheckBalanceInput,\n output: PoofCheckBalanceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-balance.cjs","names":["z","action"],"sources":["../../src/actions/check-balance.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCheckBalanceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency type to check balance for (e.g., 'bitcoin', 'ethereum', 'litecoin', 'dogecoin').\"),\n}).describe(\"Request model for checking cryptocurrency wallet balance.\");\nexport const PoofCheckBalanceOutput = z.object({\n balance: z.string().describe(\"The current balance of the specified cryptocurrency wallet.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the cryptocurrency balance.\");\n\nexport const poofCheckBalance: AppAction<\n typeof PoofCheckBalanceInput,\n typeof PoofCheckBalanceOutput,\n typeof poof.credential\n> = action(\"POOF_CHECK_BALANCE\", {\n slug: \"poof-check-balance\",\n name: \"Check Balance\",\n description: \"Tool to check the balance of a cryptocurrency wallet. Use when you need to retrieve the current balance for a specified blockchain wallet address.\",\n input: PoofCheckBalanceInput,\n output: PoofCheckBalanceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACnI,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/check-balance.d.ts
|
|
@@ -7,21 +9,7 @@ declare const PoofCheckBalanceInput: z.ZodObject<{
|
|
|
7
9
|
declare const PoofCheckBalanceOutput: z.ZodObject<{
|
|
8
10
|
balance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const poofCheckBalance:
|
|
11
|
-
crypto: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const poofCheckBalance: AppAction<typeof PoofCheckBalanceInput, typeof PoofCheckBalanceOutput, typeof poof.credential>;
|
|
25
13
|
//#endregion
|
|
26
14
|
export { poofCheckBalance };
|
|
27
15
|
//# sourceMappingURL=check-balance.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-balance.d.cts","names":[],"sources":["../../src/actions/check-balance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-balance.d.cts","names":[],"sources":["../../src/actions/check-balance.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAGrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/check-balance.d.ts
|
|
@@ -7,21 +9,7 @@ declare const PoofCheckBalanceInput: z.ZodObject<{
|
|
|
7
9
|
declare const PoofCheckBalanceOutput: z.ZodObject<{
|
|
8
10
|
balance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const poofCheckBalance:
|
|
11
|
-
crypto: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const poofCheckBalance: AppAction<typeof PoofCheckBalanceInput, typeof PoofCheckBalanceOutput, typeof poof.credential>;
|
|
25
13
|
//#endregion
|
|
26
14
|
export { poofCheckBalance };
|
|
27
15
|
//# sourceMappingURL=check-balance.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-balance.d.mts","names":[],"sources":["../../src/actions/check-balance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-balance.d.mts","names":[],"sources":["../../src/actions/check-balance.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAGrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-balance.mjs","names":[],"sources":["../../src/actions/check-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCheckBalanceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency type to check balance for (e.g., 'bitcoin', 'ethereum', 'litecoin', 'dogecoin').\"),\n}).describe(\"Request model for checking cryptocurrency wallet balance.\");\nexport const PoofCheckBalanceOutput = z.object({\n balance: z.string().describe(\"The current balance of the specified cryptocurrency wallet.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the cryptocurrency balance.\");\n\nexport const poofCheckBalance = action(\"POOF_CHECK_BALANCE\", {\n slug: \"poof-check-balance\",\n name: \"Check Balance\",\n description: \"Tool to check the balance of a cryptocurrency wallet. Use when you need to retrieve the current balance for a specified blockchain wallet address.\",\n input: PoofCheckBalanceInput,\n output: PoofCheckBalanceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-balance.mjs","names":[],"sources":["../../src/actions/check-balance.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCheckBalanceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency type to check balance for (e.g., 'bitcoin', 'ethereum', 'litecoin', 'dogecoin').\"),\n}).describe(\"Request model for checking cryptocurrency wallet balance.\");\nexport const PoofCheckBalanceOutput = z.object({\n balance: z.string().describe(\"The current balance of the specified cryptocurrency wallet.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the cryptocurrency balance.\");\n\nexport const poofCheckBalance: AppAction<\n typeof PoofCheckBalanceInput,\n typeof PoofCheckBalanceOutput,\n typeof poof.credential\n> = action(\"POOF_CHECK_BALANCE\", {\n slug: \"poof-check-balance\",\n name: \"Check Balance\",\n description: \"Tool to check the balance of a cryptocurrency wallet. Use when you need to retrieve the current balance for a specified blockchain wallet address.\",\n input: PoofCheckBalanceInput,\n output: PoofCheckBalanceOutput,\n});\n"],"mappings":";;;AAaA,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfmC,EAAE,OAAO,EAC5C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACnI,CAAC,CAAC,CAAC,SAAS,2DAaH;CACP,QAboC,EAAE,OAAO,EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout.cjs","names":["z","action"],"sources":["../../src/actions/create-checkout.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateCheckoutInput = z.object({\n amount: z.string().describe(\"Payment amount to be charged\"),\n fields: z.array(z.string()).describe(\"Form fields to collect from customer (e.g., Email, Name)\").optional(),\n \"default\": z.object({\n name: z.string().describe(\"Pre-filled customer name\").optional(),\n email: z.string().describe(\"Pre-filled customer email address\").optional(),\n}).describe(\"Pre-filled customer data for checkout form.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata (e.g., user information)\").optional(),\n redirect: z.string().describe(\"Alternative redirect destination\").optional(),\n username: z.string().describe(\"Merchant/seller identifier for the checkout\"),\n product_id: z.string().describe(\"Associated product identifier\").optional(),\n success_url: z.string().describe(\"Redirect URL after successful payment\").optional(),\n disable_payments: z.array(z.string()).describe(\"Payment methods to disable (e.g., paypal, bitcoin)\").optional(),\n product_quantity: z.string().describe(\"Quantity of products\").optional(),\n instant_payment_notification: z.string().describe(\"Webhook URL for payment notifications\").optional(),\n}).describe(\"Request schema for creating a Poof checkout session.\");\nexport const PoofCreateCheckoutOutput = z.object({\n checkout_url: z.string().describe(\"URL to the checkout session where customer completes payment\").nullable(),\n}).passthrough().describe(\"Response schema returned after creating a checkout session.\");\n\nexport const poofCreateCheckout = action(\"POOF_CREATE_CHECKOUT\", {\n slug: \"poof-create-checkout\",\n name: \"Create Checkout Session\",\n description: \"Tool to create a checkout session for fiat payments. Use when you need to generate a payment link for customers to complete their purchase through the Poof payment infrastructure.\",\n input: PoofCreateCheckoutInput,\n output: PoofCreateCheckoutOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-checkout.cjs","names":["z","action"],"sources":["../../src/actions/create-checkout.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCreateCheckoutInput = z.object({\n amount: z.string().describe(\"Payment amount to be charged\"),\n fields: z.array(z.string()).describe(\"Form fields to collect from customer (e.g., Email, Name)\").optional(),\n \"default\": z.object({\n name: z.string().describe(\"Pre-filled customer name\").optional(),\n email: z.string().describe(\"Pre-filled customer email address\").optional(),\n}).describe(\"Pre-filled customer data for checkout form.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata (e.g., user information)\").optional(),\n redirect: z.string().describe(\"Alternative redirect destination\").optional(),\n username: z.string().describe(\"Merchant/seller identifier for the checkout\"),\n product_id: z.string().describe(\"Associated product identifier\").optional(),\n success_url: z.string().describe(\"Redirect URL after successful payment\").optional(),\n disable_payments: z.array(z.string()).describe(\"Payment methods to disable (e.g., paypal, bitcoin)\").optional(),\n product_quantity: z.string().describe(\"Quantity of products\").optional(),\n instant_payment_notification: z.string().describe(\"Webhook URL for payment notifications\").optional(),\n}).describe(\"Request schema for creating a Poof checkout session.\");\nexport const PoofCreateCheckoutOutput = z.object({\n checkout_url: z.string().describe(\"URL to the checkout session where customer completes payment\").nullable(),\n}).passthrough().describe(\"Response schema returned after creating a checkout session.\");\n\nexport const poofCreateCheckout: AppAction<\n typeof PoofCreateCheckoutInput,\n typeof PoofCreateCheckoutOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_CHECKOUT\", {\n slug: \"poof-create-checkout\",\n name: \"Create Checkout Session\",\n description: \"Tool to create a checkout session for fiat payments. Use when you need to generate a payment link for customers to complete their purchase through the Poof payment infrastructure.\",\n input: PoofCreateCheckoutInput,\n output: PoofCreateCheckoutOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAAO;EACpB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC9G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACvE,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-checkout.d.ts
|
|
@@ -20,34 +22,7 @@ declare const PoofCreateCheckoutInput: z.ZodObject<{
|
|
|
20
22
|
declare const PoofCreateCheckoutOutput: z.ZodObject<{
|
|
21
23
|
checkout_url: z.ZodNullable<z.ZodString>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const poofCreateCheckout:
|
|
24
|
-
amount: string;
|
|
25
|
-
username: string;
|
|
26
|
-
fields?: string[] | undefined;
|
|
27
|
-
default?: {
|
|
28
|
-
name?: string | undefined;
|
|
29
|
-
email?: string | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
metadata?: Record<string, unknown> | undefined;
|
|
32
|
-
redirect?: string | undefined;
|
|
33
|
-
product_id?: string | undefined;
|
|
34
|
-
success_url?: string | undefined;
|
|
35
|
-
disable_payments?: string[] | undefined;
|
|
36
|
-
product_quantity?: string | undefined;
|
|
37
|
-
instant_payment_notification?: string | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const poofCreateCheckout: AppAction<typeof PoofCreateCheckoutInput, typeof PoofCreateCheckoutOutput, typeof poof.credential>;
|
|
51
26
|
//#endregion
|
|
52
27
|
export { poofCreateCheckout };
|
|
53
28
|
//# sourceMappingURL=create-checkout.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout.d.cts","names":[],"sources":["../../src/actions/create-checkout.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-checkout.d.cts","names":[],"sources":["../../src/actions/create-checkout.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-checkout.d.ts
|
|
@@ -20,34 +22,7 @@ declare const PoofCreateCheckoutInput: z.ZodObject<{
|
|
|
20
22
|
declare const PoofCreateCheckoutOutput: z.ZodObject<{
|
|
21
23
|
checkout_url: z.ZodNullable<z.ZodString>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const poofCreateCheckout:
|
|
24
|
-
amount: string;
|
|
25
|
-
username: string;
|
|
26
|
-
fields?: string[] | undefined;
|
|
27
|
-
default?: {
|
|
28
|
-
name?: string | undefined;
|
|
29
|
-
email?: string | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
metadata?: Record<string, unknown> | undefined;
|
|
32
|
-
redirect?: string | undefined;
|
|
33
|
-
product_id?: string | undefined;
|
|
34
|
-
success_url?: string | undefined;
|
|
35
|
-
disable_payments?: string[] | undefined;
|
|
36
|
-
product_quantity?: string | undefined;
|
|
37
|
-
instant_payment_notification?: string | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const poofCreateCheckout: AppAction<typeof PoofCreateCheckoutInput, typeof PoofCreateCheckoutOutput, typeof poof.credential>;
|
|
51
26
|
//#endregion
|
|
52
27
|
export { poofCreateCheckout };
|
|
53
28
|
//# sourceMappingURL=create-checkout.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout.d.mts","names":[],"sources":["../../src/actions/create-checkout.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-checkout.d.mts","names":[],"sources":["../../src/actions/create-checkout.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout.mjs","names":[],"sources":["../../src/actions/create-checkout.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateCheckoutInput = z.object({\n amount: z.string().describe(\"Payment amount to be charged\"),\n fields: z.array(z.string()).describe(\"Form fields to collect from customer (e.g., Email, Name)\").optional(),\n \"default\": z.object({\n name: z.string().describe(\"Pre-filled customer name\").optional(),\n email: z.string().describe(\"Pre-filled customer email address\").optional(),\n}).describe(\"Pre-filled customer data for checkout form.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata (e.g., user information)\").optional(),\n redirect: z.string().describe(\"Alternative redirect destination\").optional(),\n username: z.string().describe(\"Merchant/seller identifier for the checkout\"),\n product_id: z.string().describe(\"Associated product identifier\").optional(),\n success_url: z.string().describe(\"Redirect URL after successful payment\").optional(),\n disable_payments: z.array(z.string()).describe(\"Payment methods to disable (e.g., paypal, bitcoin)\").optional(),\n product_quantity: z.string().describe(\"Quantity of products\").optional(),\n instant_payment_notification: z.string().describe(\"Webhook URL for payment notifications\").optional(),\n}).describe(\"Request schema for creating a Poof checkout session.\");\nexport const PoofCreateCheckoutOutput = z.object({\n checkout_url: z.string().describe(\"URL to the checkout session where customer completes payment\").nullable(),\n}).passthrough().describe(\"Response schema returned after creating a checkout session.\");\n\nexport const poofCreateCheckout = action(\"POOF_CREATE_CHECKOUT\", {\n slug: \"poof-create-checkout\",\n name: \"Create Checkout Session\",\n description: \"Tool to create a checkout session for fiat payments. Use when you need to generate a payment link for customers to complete their purchase through the Poof payment infrastructure.\",\n input: PoofCreateCheckoutInput,\n output: PoofCreateCheckoutOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-checkout.mjs","names":[],"sources":["../../src/actions/create-checkout.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCreateCheckoutInput = z.object({\n amount: z.string().describe(\"Payment amount to be charged\"),\n fields: z.array(z.string()).describe(\"Form fields to collect from customer (e.g., Email, Name)\").optional(),\n \"default\": z.object({\n name: z.string().describe(\"Pre-filled customer name\").optional(),\n email: z.string().describe(\"Pre-filled customer email address\").optional(),\n}).describe(\"Pre-filled customer data for checkout form.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata (e.g., user information)\").optional(),\n redirect: z.string().describe(\"Alternative redirect destination\").optional(),\n username: z.string().describe(\"Merchant/seller identifier for the checkout\"),\n product_id: z.string().describe(\"Associated product identifier\").optional(),\n success_url: z.string().describe(\"Redirect URL after successful payment\").optional(),\n disable_payments: z.array(z.string()).describe(\"Payment methods to disable (e.g., paypal, bitcoin)\").optional(),\n product_quantity: z.string().describe(\"Quantity of products\").optional(),\n instant_payment_notification: z.string().describe(\"Webhook URL for payment notifications\").optional(),\n}).describe(\"Request schema for creating a Poof checkout session.\");\nexport const PoofCreateCheckoutOutput = z.object({\n checkout_url: z.string().describe(\"URL to the checkout session where customer completes payment\").nullable(),\n}).passthrough().describe(\"Response schema returned after creating a checkout session.\");\n\nexport const poofCreateCheckout: AppAction<\n typeof PoofCreateCheckoutInput,\n typeof PoofCreateCheckoutOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_CHECKOUT\", {\n slug: \"poof-create-checkout\",\n name: \"Create Checkout Session\",\n description: \"Tool to create a checkout session for fiat payments. Use when you need to generate a payment link for customers to complete their purchase through the Poof payment infrastructure.\",\n input: PoofCreateCheckoutInput,\n output: PoofCreateCheckoutOutput,\n});\n"],"mappings":";;;AA0BA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BqC,EAAE,OAAO;EAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC1D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC1G,WAAW,EAAE,OAAO;GACpB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3E,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACnF,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC9G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACvE,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,sDAaH;CACP,QAbsC,EAAE,OAAO,EAC/C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-deposit-address.cjs","names":["z","action"],"sources":["../../src/actions/create-deposit-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateDepositAddressInput = z.object({\n amount: z.string().describe(\"The deposit amount in the specified currency (e.g., '15', '100.50')\"),\n crypto: z.string().describe(\"The cryptocurrency type to receive. Supported values include: 'ethereum', 'bitcoin', 'polygon', 'solana', 'bnb'\"),\n currency: z.string().describe(\"The base currency for the amount (e.g., 'USD', 'EUR', 'CNY')\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata dictionary for additional contextual data to attach to this charge\").optional(),\n}).describe(\"Request model for creating a deposit address for receiving cryptocurrency payments.\");\nexport const PoofCreateDepositAddressOutput = z.object({\n amount: z.string().describe(\"The deposit amount in the specified currency\").nullable().optional(),\n crypto: z.string().describe(\"The cryptocurrency type for the deposit\").nullable().optional(),\n status: z.string().describe(\"Status of the charge (e.g., 'pending', 'confirmed')\").nullable().optional(),\n address: z.string().describe(\"The generated blockchain address for receiving cryptocurrency deposits\").nullable(),\n currency: z.string().describe(\"The base currency for the amount\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the charge\").nullable().optional(),\n charge_id: z.string().describe(\"Unique identifier for the created charge\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the charge was created\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a deposit address.\");\n\nexport const poofCreateDepositAddress = action(\"POOF_CREATE_DEPOSIT_ADDRESS\", {\n slug: \"poof-create-deposit-address\",\n name: \"Create Deposit Address\",\n description: \"Tool to create a deposit address for receiving cryptocurrency payments. Generates a unique blockchain address to accept incoming crypto deposits. Use when you need to create a payment address for a customer to send cryptocurrency to.\",\n input: PoofCreateDepositAddressInput,\n output: PoofCreateDepositAddressOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-deposit-address.cjs","names":["z","action"],"sources":["../../src/actions/create-deposit-address.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCreateDepositAddressInput = z.object({\n amount: z.string().describe(\"The deposit amount in the specified currency (e.g., '15', '100.50')\"),\n crypto: z.string().describe(\"The cryptocurrency type to receive. Supported values include: 'ethereum', 'bitcoin', 'polygon', 'solana', 'bnb'\"),\n currency: z.string().describe(\"The base currency for the amount (e.g., 'USD', 'EUR', 'CNY')\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata dictionary for additional contextual data to attach to this charge\").optional(),\n}).describe(\"Request model for creating a deposit address for receiving cryptocurrency payments.\");\nexport const PoofCreateDepositAddressOutput = z.object({\n amount: z.string().describe(\"The deposit amount in the specified currency\").nullable().optional(),\n crypto: z.string().describe(\"The cryptocurrency type for the deposit\").nullable().optional(),\n status: z.string().describe(\"Status of the charge (e.g., 'pending', 'confirmed')\").nullable().optional(),\n address: z.string().describe(\"The generated blockchain address for receiving cryptocurrency deposits\").nullable(),\n currency: z.string().describe(\"The base currency for the amount\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the charge\").nullable().optional(),\n charge_id: z.string().describe(\"Unique identifier for the created charge\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the charge was created\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a deposit address.\");\n\nexport const poofCreateDepositAddress: AppAction<\n typeof PoofCreateDepositAddressInput,\n typeof PoofCreateDepositAddressOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_DEPOSIT_ADDRESS\", {\n slug: \"poof-create-deposit-address\",\n name: \"Create Deposit Address\",\n description: \"Tool to create a deposit address for receiving cryptocurrency payments. Generates a unique blockchain address to accept incoming crypto deposits. Use when you need to create a payment address for a customer to send cryptocurrency to.\",\n input: PoofCreateDepositAddressInput,\n output: PoofCreateDepositAddressOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CAC7I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC5F,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAChH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-deposit-address.d.ts
|
|
@@ -17,24 +19,7 @@ declare const PoofCreateDepositAddressOutput: z.ZodObject<{
|
|
|
17
19
|
charge_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const poofCreateDepositAddress:
|
|
21
|
-
amount: string;
|
|
22
|
-
crypto: string;
|
|
23
|
-
currency: string;
|
|
24
|
-
metadata?: Record<string, unknown> | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const poofCreateDepositAddress: AppAction<typeof PoofCreateDepositAddressInput, typeof PoofCreateDepositAddressOutput, typeof poof.credential>;
|
|
38
23
|
//#endregion
|
|
39
24
|
export { poofCreateDepositAddress };
|
|
40
25
|
//# sourceMappingURL=create-deposit-address.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-deposit-address.d.cts","names":[],"sources":["../../src/actions/create-deposit-address.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-deposit-address.d.cts","names":[],"sources":["../../src/actions/create-deposit-address.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAM7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAW9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-deposit-address.d.ts
|
|
@@ -17,24 +19,7 @@ declare const PoofCreateDepositAddressOutput: z.ZodObject<{
|
|
|
17
19
|
charge_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const poofCreateDepositAddress:
|
|
21
|
-
amount: string;
|
|
22
|
-
crypto: string;
|
|
23
|
-
currency: string;
|
|
24
|
-
metadata?: Record<string, unknown> | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const poofCreateDepositAddress: AppAction<typeof PoofCreateDepositAddressInput, typeof PoofCreateDepositAddressOutput, typeof poof.credential>;
|
|
38
23
|
//#endregion
|
|
39
24
|
export { poofCreateDepositAddress };
|
|
40
25
|
//# sourceMappingURL=create-deposit-address.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-deposit-address.d.mts","names":[],"sources":["../../src/actions/create-deposit-address.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-deposit-address.d.mts","names":[],"sources":["../../src/actions/create-deposit-address.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAM7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAW9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-deposit-address.mjs","names":[],"sources":["../../src/actions/create-deposit-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateDepositAddressInput = z.object({\n amount: z.string().describe(\"The deposit amount in the specified currency (e.g., '15', '100.50')\"),\n crypto: z.string().describe(\"The cryptocurrency type to receive. Supported values include: 'ethereum', 'bitcoin', 'polygon', 'solana', 'bnb'\"),\n currency: z.string().describe(\"The base currency for the amount (e.g., 'USD', 'EUR', 'CNY')\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata dictionary for additional contextual data to attach to this charge\").optional(),\n}).describe(\"Request model for creating a deposit address for receiving cryptocurrency payments.\");\nexport const PoofCreateDepositAddressOutput = z.object({\n amount: z.string().describe(\"The deposit amount in the specified currency\").nullable().optional(),\n crypto: z.string().describe(\"The cryptocurrency type for the deposit\").nullable().optional(),\n status: z.string().describe(\"Status of the charge (e.g., 'pending', 'confirmed')\").nullable().optional(),\n address: z.string().describe(\"The generated blockchain address for receiving cryptocurrency deposits\").nullable(),\n currency: z.string().describe(\"The base currency for the amount\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the charge\").nullable().optional(),\n charge_id: z.string().describe(\"Unique identifier for the created charge\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the charge was created\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a deposit address.\");\n\nexport const poofCreateDepositAddress = action(\"POOF_CREATE_DEPOSIT_ADDRESS\", {\n slug: \"poof-create-deposit-address\",\n name: \"Create Deposit Address\",\n description: \"Tool to create a deposit address for receiving cryptocurrency payments. Generates a unique blockchain address to accept incoming crypto deposits. Use when you need to create a payment address for a customer to send cryptocurrency to.\",\n input: PoofCreateDepositAddressInput,\n output: PoofCreateDepositAddressOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-deposit-address.mjs","names":[],"sources":["../../src/actions/create-deposit-address.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCreateDepositAddressInput = z.object({\n amount: z.string().describe(\"The deposit amount in the specified currency (e.g., '15', '100.50')\"),\n crypto: z.string().describe(\"The cryptocurrency type to receive. Supported values include: 'ethereum', 'bitcoin', 'polygon', 'solana', 'bnb'\"),\n currency: z.string().describe(\"The base currency for the amount (e.g., 'USD', 'EUR', 'CNY')\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata dictionary for additional contextual data to attach to this charge\").optional(),\n}).describe(\"Request model for creating a deposit address for receiving cryptocurrency payments.\");\nexport const PoofCreateDepositAddressOutput = z.object({\n amount: z.string().describe(\"The deposit amount in the specified currency\").nullable().optional(),\n crypto: z.string().describe(\"The cryptocurrency type for the deposit\").nullable().optional(),\n status: z.string().describe(\"Status of the charge (e.g., 'pending', 'confirmed')\").nullable().optional(),\n address: z.string().describe(\"The generated blockchain address for receiving cryptocurrency deposits\").nullable(),\n currency: z.string().describe(\"The base currency for the amount\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the charge\").nullable().optional(),\n charge_id: z.string().describe(\"Unique identifier for the created charge\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the charge was created\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a deposit address.\");\n\nexport const poofCreateDepositAddress: AppAction<\n typeof PoofCreateDepositAddressInput,\n typeof PoofCreateDepositAddressOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_DEPOSIT_ADDRESS\", {\n slug: \"poof-create-deposit-address\",\n name: \"Create Deposit Address\",\n description: \"Tool to create a deposit address for receiving cryptocurrency payments. Generates a unique blockchain address to accept incoming crypto deposits. Use when you need to create a payment address for a customer to send cryptocurrency to.\",\n input: PoofCreateDepositAddressInput,\n output: PoofCreateDepositAddressOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB2C,EAAE,OAAO;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;EAC7I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EAC5F,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,qFAoBH;CACP,QApB4C,EAAE,OAAO;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fiat-charge.cjs","names":["z","action"],"sources":["../../src/actions/create-fiat-charge.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateFiatChargeInput = z.object({\n amount: z.string().describe(\"The charge amount as a string (e.g., '15' for $15.00). Must be a valid numeric string.\"),\n payment: z.string().describe(\"Payment gateway to use. Must be lowercase (e.g., 'paypal', 'stripe', 'square').\"),\n currency: z.string().describe(\"Currency code for the charge. Must be lowercase (e.g., 'usd', 'eur', 'gbp').\"),\n success_url: z.string().describe(\"URL to redirect the user to after successful payment completion.\"),\n redirect_url: z.string().describe(\"URL to redirect the user to after canceling or closing the payment page.\"),\n}).describe(\"Request model for creating a fiat currency charge in Poof.\");\nexport const PoofCreateFiatChargeOutput = z.object({\n status: z.string().describe(\"Status of the charge creation request.\").nullable().optional(),\n message: z.string().describe(\"Additional message or information about the charge creation.\").nullable().optional(),\n charge_id: z.string().describe(\"Unique identifier for the created charge.\").nullable().optional(),\n payment_link: z.string().describe(\"URL for the payment page where the customer can complete the transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a fiat charge.\");\n\nexport const poofCreateFiatCharge = action(\"POOF_CREATE_FIAT_CHARGE\", {\n slug: \"poof-create-fiat-charge\",\n name: \"Create Fiat Charge\",\n description: \"Tool to create a fiat currency charge through Poof's payment gateway integration. Use when initiating a one-time fiat payment collection via PayPal, Stripe, Square, or other supported gateways.\",\n input: PoofCreateFiatChargeInput,\n output: PoofCreateFiatChargeOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-fiat-charge.cjs","names":["z","action"],"sources":["../../src/actions/create-fiat-charge.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCreateFiatChargeInput = z.object({\n amount: z.string().describe(\"The charge amount as a string (e.g., '15' for $15.00). Must be a valid numeric string.\"),\n payment: z.string().describe(\"Payment gateway to use. Must be lowercase (e.g., 'paypal', 'stripe', 'square').\"),\n currency: z.string().describe(\"Currency code for the charge. Must be lowercase (e.g., 'usd', 'eur', 'gbp').\"),\n success_url: z.string().describe(\"URL to redirect the user to after successful payment completion.\"),\n redirect_url: z.string().describe(\"URL to redirect the user to after canceling or closing the payment page.\"),\n}).describe(\"Request model for creating a fiat currency charge in Poof.\");\nexport const PoofCreateFiatChargeOutput = z.object({\n status: z.string().describe(\"Status of the charge creation request.\").nullable().optional(),\n message: z.string().describe(\"Additional message or information about the charge creation.\").nullable().optional(),\n charge_id: z.string().describe(\"Unique identifier for the created charge.\").nullable().optional(),\n payment_link: z.string().describe(\"URL for the payment page where the customer can complete the transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a fiat charge.\");\n\nexport const poofCreateFiatCharge: AppAction<\n typeof PoofCreateFiatChargeInput,\n typeof PoofCreateFiatChargeOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_FIAT_CHARGE\", {\n slug: \"poof-create-fiat-charge\",\n name: \"Create Fiat Charge\",\n description: \"Tool to create a fiat currency charge through Poof's payment gateway integration. Use when initiating a one-time fiat payment collection via PayPal, Stripe, Square, or other supported gateways.\",\n input: PoofCreateFiatChargeInput,\n output: PoofCreateFiatChargeOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACpH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AAC9G,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-fiat-charge.d.ts
|
|
@@ -14,25 +16,7 @@ declare const PoofCreateFiatChargeOutput: z.ZodObject<{
|
|
|
14
16
|
charge_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
payment_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const poofCreateFiatCharge:
|
|
18
|
-
amount: string;
|
|
19
|
-
payment: string;
|
|
20
|
-
currency: string;
|
|
21
|
-
success_url: string;
|
|
22
|
-
redirect_url: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const poofCreateFiatCharge: AppAction<typeof PoofCreateFiatChargeInput, typeof PoofCreateFiatChargeOutput, typeof poof.credential>;
|
|
36
20
|
//#endregion
|
|
37
21
|
export { poofCreateFiatCharge };
|
|
38
22
|
//# sourceMappingURL=create-fiat-charge.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fiat-charge.d.cts","names":[],"sources":["../../src/actions/create-fiat-charge.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-fiat-charge.d.cts","names":[],"sources":["../../src/actions/create-fiat-charge.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAO1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-fiat-charge.d.ts
|
|
@@ -14,25 +16,7 @@ declare const PoofCreateFiatChargeOutput: z.ZodObject<{
|
|
|
14
16
|
charge_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
payment_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const poofCreateFiatCharge:
|
|
18
|
-
amount: string;
|
|
19
|
-
payment: string;
|
|
20
|
-
currency: string;
|
|
21
|
-
success_url: string;
|
|
22
|
-
redirect_url: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const poofCreateFiatCharge: AppAction<typeof PoofCreateFiatChargeInput, typeof PoofCreateFiatChargeOutput, typeof poof.credential>;
|
|
36
20
|
//#endregion
|
|
37
21
|
export { poofCreateFiatCharge };
|
|
38
22
|
//# sourceMappingURL=create-fiat-charge.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fiat-charge.d.mts","names":[],"sources":["../../src/actions/create-fiat-charge.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-fiat-charge.d.mts","names":[],"sources":["../../src/actions/create-fiat-charge.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAO1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fiat-charge.mjs","names":[],"sources":["../../src/actions/create-fiat-charge.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateFiatChargeInput = z.object({\n amount: z.string().describe(\"The charge amount as a string (e.g., '15' for $15.00). Must be a valid numeric string.\"),\n payment: z.string().describe(\"Payment gateway to use. Must be lowercase (e.g., 'paypal', 'stripe', 'square').\"),\n currency: z.string().describe(\"Currency code for the charge. Must be lowercase (e.g., 'usd', 'eur', 'gbp').\"),\n success_url: z.string().describe(\"URL to redirect the user to after successful payment completion.\"),\n redirect_url: z.string().describe(\"URL to redirect the user to after canceling or closing the payment page.\"),\n}).describe(\"Request model for creating a fiat currency charge in Poof.\");\nexport const PoofCreateFiatChargeOutput = z.object({\n status: z.string().describe(\"Status of the charge creation request.\").nullable().optional(),\n message: z.string().describe(\"Additional message or information about the charge creation.\").nullable().optional(),\n charge_id: z.string().describe(\"Unique identifier for the created charge.\").nullable().optional(),\n payment_link: z.string().describe(\"URL for the payment page where the customer can complete the transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a fiat charge.\");\n\nexport const poofCreateFiatCharge = action(\"POOF_CREATE_FIAT_CHARGE\", {\n slug: \"poof-create-fiat-charge\",\n name: \"Create Fiat Charge\",\n description: \"Tool to create a fiat currency charge through Poof's payment gateway integration. Use when initiating a one-time fiat payment collection via PayPal, Stripe, Square, or other supported gateways.\",\n input: PoofCreateFiatChargeInput,\n output: PoofCreateFiatChargeOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-fiat-charge.mjs","names":[],"sources":["../../src/actions/create-fiat-charge.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCreateFiatChargeInput = z.object({\n amount: z.string().describe(\"The charge amount as a string (e.g., '15' for $15.00). Must be a valid numeric string.\"),\n payment: z.string().describe(\"Payment gateway to use. Must be lowercase (e.g., 'paypal', 'stripe', 'square').\"),\n currency: z.string().describe(\"Currency code for the charge. Must be lowercase (e.g., 'usd', 'eur', 'gbp').\"),\n success_url: z.string().describe(\"URL to redirect the user to after successful payment completion.\"),\n redirect_url: z.string().describe(\"URL to redirect the user to after canceling or closing the payment page.\"),\n}).describe(\"Request model for creating a fiat currency charge in Poof.\");\nexport const PoofCreateFiatChargeOutput = z.object({\n status: z.string().describe(\"Status of the charge creation request.\").nullable().optional(),\n message: z.string().describe(\"Additional message or information about the charge creation.\").nullable().optional(),\n charge_id: z.string().describe(\"Unique identifier for the created charge.\").nullable().optional(),\n payment_link: z.string().describe(\"URL for the payment page where the customer can complete the transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a fiat charge.\");\n\nexport const poofCreateFiatCharge: AppAction<\n typeof PoofCreateFiatChargeInput,\n typeof PoofCreateFiatChargeOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_FIAT_CHARGE\", {\n slug: \"poof-create-fiat-charge\",\n name: \"Create Fiat Charge\",\n description: \"Tool to create a fiat currency charge through Poof's payment gateway integration. Use when initiating a one-time fiat payment collection via PayPal, Stripe, Square, or other supported gateways.\",\n input: PoofCreateFiatChargeInput,\n output: PoofCreateFiatChargeOutput,\n});\n"],"mappings":";;;AAoBA,MAAa,uBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBuC,EAAE,OAAO;EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACpH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;EAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC9G,CAAC,CAAC,CAAC,SAAS,4DAgBH;CACP,QAhBwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fiat-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-fiat-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateFiatInvoiceInput = z.object({\n amount: z.string().describe(\"Payment amount as a string (e.g., '15.00', '100'). Specify the amount in the currency specified in the currency field.\"),\n payment: z.string().describe(\"Payment processor to use for collecting payment. Documented options: 'paypal', 'cashapp', 'skrill', 'coinbase'. Additional payment methods available at checkout include credit cards, Apple Pay, Google Pay, Venmo, Alipay, WeChat Pay, and Klarna. Note: Some payment methods like Venmo, Cash App, and Coinbase require additional setup in the Poof dashboard.\"),\n currency: z.string().describe(\"Three-letter ISO currency code for the invoice (e.g., 'usd', 'eur', 'cny'). Specify the currency in which the payment will be collected.\"),\n success_url: z.string().describe(\"URL to redirect the customer to after successful payment completion. This is typically your application's success/confirmation page.\"),\n redirect_url: z.string().describe(\"URL to redirect the customer to after they complete or cancel the payment. This is typically your application's return URL.\"),\n}).describe(\"Request parameters for creating a fiat currency invoice.\");\nexport const PoofCreateFiatInvoiceOutput = z.object({\n status: z.string().describe(\"Status of the invoice (e.g., 'pending', 'created').\").nullable().optional(),\n invoice_id: z.string().describe(\"Unique identifier for the created invoice.\").nullable().optional(),\n checkout_url: z.string().describe(\"Alternative field name for the payment checkout URL. Contains the same checkout session link.\").nullable().optional(),\n payment_link: z.string().describe(\"URL to the payment checkout page where the customer can complete payment. Redirect the customer to this URL or embed it in an iframe on your website.\").nullable().optional(),\n}).passthrough().describe(\"Response from creating a fiat currency invoice.\");\n\nexport const poofCreateFiatInvoice = action(\"POOF_CREATE_FIAT_INVOICE\", {\n slug: \"poof-create-fiat-invoice\",\n name: \"Create Fiat Invoice\",\n description: \"Create a fiat currency invoice for payment collection. Generates an invoice for collecting payments in traditional currencies via payment processors like PayPal, Stripe, Square, Cash App, etc. Returns a checkout URL for customer payment.\",\n input: PoofCreateFiatInvoiceInput,\n output: PoofCreateFiatInvoiceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-fiat-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-fiat-invoice.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofCreateFiatInvoiceInput = z.object({\n amount: z.string().describe(\"Payment amount as a string (e.g., '15.00', '100'). Specify the amount in the currency specified in the currency field.\"),\n payment: z.string().describe(\"Payment processor to use for collecting payment. Documented options: 'paypal', 'cashapp', 'skrill', 'coinbase'. Additional payment methods available at checkout include credit cards, Apple Pay, Google Pay, Venmo, Alipay, WeChat Pay, and Klarna. Note: Some payment methods like Venmo, Cash App, and Coinbase require additional setup in the Poof dashboard.\"),\n currency: z.string().describe(\"Three-letter ISO currency code for the invoice (e.g., 'usd', 'eur', 'cny'). Specify the currency in which the payment will be collected.\"),\n success_url: z.string().describe(\"URL to redirect the customer to after successful payment completion. This is typically your application's success/confirmation page.\"),\n redirect_url: z.string().describe(\"URL to redirect the customer to after they complete or cancel the payment. This is typically your application's return URL.\"),\n}).describe(\"Request parameters for creating a fiat currency invoice.\");\nexport const PoofCreateFiatInvoiceOutput = z.object({\n status: z.string().describe(\"Status of the invoice (e.g., 'pending', 'created').\").nullable().optional(),\n invoice_id: z.string().describe(\"Unique identifier for the created invoice.\").nullable().optional(),\n checkout_url: z.string().describe(\"Alternative field name for the payment checkout URL. Contains the same checkout session link.\").nullable().optional(),\n payment_link: z.string().describe(\"URL to the payment checkout page where the customer can complete payment. Redirect the customer to this URL or embed it in an iframe on your website.\").nullable().optional(),\n}).passthrough().describe(\"Response from creating a fiat currency invoice.\");\n\nexport const poofCreateFiatInvoice: AppAction<\n typeof PoofCreateFiatInvoiceInput,\n typeof PoofCreateFiatInvoiceOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_FIAT_INVOICE\", {\n slug: \"poof-create-fiat-invoice\",\n name: \"Create Fiat Invoice\",\n description: \"Create a fiat currency invoice for payment collection. Generates an invoice for collecting payments in traditional currencies via payment processors like PayPal, Stripe, Square, Cash App, etc. Returns a checkout URL for customer payment.\",\n input: PoofCreateFiatInvoiceInput,\n output: PoofCreateFiatInvoiceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CACpJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oWAAoW;CACjY,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CACxK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI;CACvK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;AACjK,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { poof } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-fiat-invoice.d.ts
|
|
@@ -14,25 +16,7 @@ declare const PoofCreateFiatInvoiceOutput: z.ZodObject<{
|
|
|
14
16
|
checkout_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
payment_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const poofCreateFiatInvoice:
|
|
18
|
-
amount: string;
|
|
19
|
-
payment: string;
|
|
20
|
-
currency: string;
|
|
21
|
-
success_url: string;
|
|
22
|
-
redirect_url: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const poofCreateFiatInvoice: AppAction<typeof PoofCreateFiatInvoiceInput, typeof PoofCreateFiatInvoiceOutput, typeof poof.credential>;
|
|
36
20
|
//#endregion
|
|
37
21
|
export { poofCreateFiatInvoice };
|
|
38
22
|
//# sourceMappingURL=create-fiat-invoice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fiat-invoice.d.cts","names":[],"sources":["../../src/actions/create-fiat-invoice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-fiat-invoice.d.cts","names":[],"sources":["../../src/actions/create-fiat-invoice.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,IAAA,CAAK,UAAA"}
|