@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
|
@@ -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-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.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fiat-invoice.d.mts","names":[],"sources":["../../src/actions/create-fiat-invoice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-fiat-invoice.d.mts","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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fiat-invoice.mjs","names":[],"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.mjs","names":[],"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":";;;AAoBA,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;EACpJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oWAAoW;EACjY,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;EACxK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI;EACvK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;CACjK,CAAC,CAAC,CAAC,SAAS,0DAgBH;CACP,QAhByC,EAAE,OAAO;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-payment-link.cjs","names":["z","action"],"sources":["../../src/actions/create-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreatePaymentLinkInput = z.object({\n amount: z.string().describe(\"The payment amount as a string (e.g., '10', '15.50')\"),\n crypto: z.string().describe(\"The cryptocurrency type to accept for payment (e.g., 'ethereum', 'bitcoin', 'litecoin')\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the payment. Can contain arbitrary key-value pairs for transaction tracking or custom data.\"),\n}).describe(\"Request model for creating a payment link (invoice) for cryptocurrency payments.\");\nexport const PoofCreatePaymentLinkOutput = z.object({\n message: z.string().describe(\"Message from the API, such as 'link your wallet on poof' if wallet setup is required\").nullable().optional(),\n payment_link: z.string().describe(\"The generated payment link URL where customers can complete their cryptocurrency payment\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a payment link.\");\n\nexport const poofCreatePaymentLink = action(\"POOF_CREATE_PAYMENT_LINK\", {\n slug: \"poof-create-payment-link\",\n name: \"Create Payment Link\",\n description: \"Tool to create a payment link (invoice) for cryptocurrency payments. Use when you need to generate a shareable payment URL for collecting crypto payments from customers.\",\n input: PoofCreatePaymentLinkInput,\n output: PoofCreatePaymentLinkOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-payment-link.cjs","names":["z","action"],"sources":["../../src/actions/create-payment-link.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 PoofCreatePaymentLinkInput = z.object({\n amount: z.string().describe(\"The payment amount as a string (e.g., '10', '15.50')\"),\n crypto: z.string().describe(\"The cryptocurrency type to accept for payment (e.g., 'ethereum', 'bitcoin', 'litecoin')\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the payment. Can contain arbitrary key-value pairs for transaction tracking or custom data.\"),\n}).describe(\"Request model for creating a payment link (invoice) for cryptocurrency payments.\");\nexport const PoofCreatePaymentLinkOutput = z.object({\n message: z.string().describe(\"Message from the API, such as 'link your wallet on poof' if wallet setup is required\").nullable().optional(),\n payment_link: z.string().describe(\"The generated payment link URL where customers can complete their cryptocurrency payment\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a payment link.\");\n\nexport const poofCreatePaymentLink: AppAction<\n typeof PoofCreatePaymentLinkInput,\n typeof PoofCreatePaymentLinkOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_PAYMENT_LINK\", {\n slug: \"poof-create-payment-link\",\n name: \"Create Payment Link\",\n description: \"Tool to create a payment link (invoice) for cryptocurrency payments. Use when you need to generate a shareable payment URL for collecting crypto payments from customers.\",\n input: PoofCreatePaymentLinkInput,\n output: PoofCreatePaymentLinkOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CACrH,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iIAAiI;AACxL,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,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-payment-link.d.ts
|
|
@@ -10,23 +12,7 @@ declare const PoofCreatePaymentLinkOutput: z.ZodObject<{
|
|
|
10
12
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
payment_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const poofCreatePaymentLink:
|
|
14
|
-
amount: string;
|
|
15
|
-
crypto: string;
|
|
16
|
-
metadata: Record<string, unknown>;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, 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>>]>;
|
|
15
|
+
declare const poofCreatePaymentLink: AppAction<typeof PoofCreatePaymentLinkInput, typeof PoofCreatePaymentLinkOutput, typeof poof.credential>;
|
|
30
16
|
//#endregion
|
|
31
17
|
export { poofCreatePaymentLink };
|
|
32
18
|
//# sourceMappingURL=create-payment-link.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-payment-link.d.cts","names":[],"sources":["../../src/actions/create-payment-link.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-payment-link.d.cts","names":[],"sources":["../../src/actions/create-payment-link.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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-payment-link.d.ts
|
|
@@ -10,23 +12,7 @@ declare const PoofCreatePaymentLinkOutput: z.ZodObject<{
|
|
|
10
12
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
payment_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const poofCreatePaymentLink:
|
|
14
|
-
amount: string;
|
|
15
|
-
crypto: string;
|
|
16
|
-
metadata: Record<string, unknown>;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, 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>>]>;
|
|
15
|
+
declare const poofCreatePaymentLink: AppAction<typeof PoofCreatePaymentLinkInput, typeof PoofCreatePaymentLinkOutput, typeof poof.credential>;
|
|
30
16
|
//#endregion
|
|
31
17
|
export { poofCreatePaymentLink };
|
|
32
18
|
//# sourceMappingURL=create-payment-link.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-payment-link.d.mts","names":[],"sources":["../../src/actions/create-payment-link.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-payment-link.d.mts","names":[],"sources":["../../src/actions/create-payment-link.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-payment-link.mjs","names":[],"sources":["../../src/actions/create-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreatePaymentLinkInput = z.object({\n amount: z.string().describe(\"The payment amount as a string (e.g., '10', '15.50')\"),\n crypto: z.string().describe(\"The cryptocurrency type to accept for payment (e.g., 'ethereum', 'bitcoin', 'litecoin')\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the payment. Can contain arbitrary key-value pairs for transaction tracking or custom data.\"),\n}).describe(\"Request model for creating a payment link (invoice) for cryptocurrency payments.\");\nexport const PoofCreatePaymentLinkOutput = z.object({\n message: z.string().describe(\"Message from the API, such as 'link your wallet on poof' if wallet setup is required\").nullable().optional(),\n payment_link: z.string().describe(\"The generated payment link URL where customers can complete their cryptocurrency payment\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a payment link.\");\n\nexport const poofCreatePaymentLink = action(\"POOF_CREATE_PAYMENT_LINK\", {\n slug: \"poof-create-payment-link\",\n name: \"Create Payment Link\",\n description: \"Tool to create a payment link (invoice) for cryptocurrency payments. Use when you need to generate a shareable payment URL for collecting crypto payments from customers.\",\n input: PoofCreatePaymentLinkInput,\n output: PoofCreatePaymentLinkOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-payment-link.mjs","names":[],"sources":["../../src/actions/create-payment-link.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 PoofCreatePaymentLinkInput = z.object({\n amount: z.string().describe(\"The payment amount as a string (e.g., '10', '15.50')\"),\n crypto: z.string().describe(\"The cryptocurrency type to accept for payment (e.g., 'ethereum', 'bitcoin', 'litecoin')\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the payment. Can contain arbitrary key-value pairs for transaction tracking or custom data.\"),\n}).describe(\"Request model for creating a payment link (invoice) for cryptocurrency payments.\");\nexport const PoofCreatePaymentLinkOutput = z.object({\n message: z.string().describe(\"Message from the API, such as 'link your wallet on poof' if wallet setup is required\").nullable().optional(),\n payment_link: z.string().describe(\"The generated payment link URL where customers can complete their cryptocurrency payment\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a payment link.\");\n\nexport const poofCreatePaymentLink: AppAction<\n typeof PoofCreatePaymentLinkInput,\n typeof PoofCreatePaymentLinkOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_PAYMENT_LINK\", {\n slug: \"poof-create-payment-link\",\n name: \"Create Payment Link\",\n description: \"Tool to create a payment link (invoice) for cryptocurrency payments. Use when you need to generate a shareable payment URL for collecting crypto payments from customers.\",\n input: PoofCreatePaymentLinkInput,\n output: PoofCreatePaymentLinkOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EACrH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iIAAiI;CACxL,CAAC,CAAC,CAAC,SAAS,kFAcH;CACP,QAdyC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateWebhookInput = z.object({\n url: z.string().describe(\"The HTTPS endpoint URL where Poof will send webhook notifications for payment events\"),\n}).describe(\"Request model for creating a webhook subscription in Poof.\");\nexport const PoofCreateWebhookOutput = z.object({\n message: z.string().describe(\"Response message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the webhook was created successfully\").nullable().optional(),\n webhook_url: z.string().describe(\"The webhook URL that was registered\").nullable().optional(),\n}).passthrough().describe(\"Response model for webhook creation in Poof.\");\n\nexport const poofCreateWebhook = action(\"POOF_CREATE_WEBHOOK\", {\n slug: \"poof-create-webhook\",\n name: \"Create Poof Webhook\",\n description: \"Tool to create a webhook subscription for receiving payment event notifications. Use when you need to set up real-time notifications for transaction status changes and other payment events.\",\n input: PoofCreateWebhookInput,\n output: PoofCreateWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.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 PoofCreateWebhookInput = z.object({\n url: z.string().describe(\"The HTTPS endpoint URL where Poof will send webhook notifications for payment events\"),\n}).describe(\"Request model for creating a webhook subscription in Poof.\");\nexport const PoofCreateWebhookOutput = z.object({\n message: z.string().describe(\"Response message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the webhook was created successfully\").nullable().optional(),\n webhook_url: z.string().describe(\"The webhook URL that was registered\").nullable().optional(),\n}).passthrough().describe(\"Response model for webhook creation in Poof.\");\n\nexport const poofCreateWebhook: AppAction<\n typeof PoofCreateWebhookInput,\n typeof PoofCreateWebhookOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_WEBHOOK\", {\n slug: \"poof-create-webhook\",\n name: \"Create Poof Webhook\",\n description: \"Tool to create a webhook subscription for receiving payment event notifications. Use when you need to set up real-time notifications for transaction status changes and other payment events.\",\n input: PoofCreateWebhookInput,\n output: PoofCreateWebhookOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACjH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,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-webhook.d.ts
|
|
@@ -9,21 +11,7 @@ declare const PoofCreateWebhookOutput: z.ZodObject<{
|
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
12
|
webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const poofCreateWebhook:
|
|
13
|
-
url: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
generic_api_key: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const poofCreateWebhook: AppAction<typeof PoofCreateWebhookInput, typeof PoofCreateWebhookOutput, typeof poof.credential>;
|
|
27
15
|
//#endregion
|
|
28
16
|
export { poofCreateWebhook };
|
|
29
17
|
//# sourceMappingURL=create-webhook.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.d.cts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-webhook.d.cts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAGtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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-webhook.d.ts
|
|
@@ -9,21 +11,7 @@ declare const PoofCreateWebhookOutput: z.ZodObject<{
|
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
12
|
webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const poofCreateWebhook:
|
|
13
|
-
url: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
generic_api_key: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const poofCreateWebhook: AppAction<typeof PoofCreateWebhookInput, typeof PoofCreateWebhookOutput, typeof poof.credential>;
|
|
27
15
|
//#endregion
|
|
28
16
|
export { poofCreateWebhook };
|
|
29
17
|
//# sourceMappingURL=create-webhook.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.d.mts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-webhook.d.mts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAGtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.mjs","names":[],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofCreateWebhookInput = z.object({\n url: z.string().describe(\"The HTTPS endpoint URL where Poof will send webhook notifications for payment events\"),\n}).describe(\"Request model for creating a webhook subscription in Poof.\");\nexport const PoofCreateWebhookOutput = z.object({\n message: z.string().describe(\"Response message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the webhook was created successfully\").nullable().optional(),\n webhook_url: z.string().describe(\"The webhook URL that was registered\").nullable().optional(),\n}).passthrough().describe(\"Response model for webhook creation in Poof.\");\n\nexport const poofCreateWebhook = action(\"POOF_CREATE_WEBHOOK\", {\n slug: \"poof-create-webhook\",\n name: \"Create Poof Webhook\",\n description: \"Tool to create a webhook subscription for receiving payment event notifications. Use when you need to set up real-time notifications for transaction status changes and other payment events.\",\n input: PoofCreateWebhookInput,\n output: PoofCreateWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-webhook.mjs","names":[],"sources":["../../src/actions/create-webhook.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 PoofCreateWebhookInput = z.object({\n url: z.string().describe(\"The HTTPS endpoint URL where Poof will send webhook notifications for payment events\"),\n}).describe(\"Request model for creating a webhook subscription in Poof.\");\nexport const PoofCreateWebhookOutput = z.object({\n message: z.string().describe(\"Response message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the webhook was created successfully\").nullable().optional(),\n webhook_url: z.string().describe(\"The webhook URL that was registered\").nullable().optional(),\n}).passthrough().describe(\"Response model for webhook creation in Poof.\");\n\nexport const poofCreateWebhook: AppAction<\n typeof PoofCreateWebhookInput,\n typeof PoofCreateWebhookOutput,\n typeof poof.credential\n> = action(\"POOF_CREATE_WEBHOOK\", {\n slug: \"poof-create-webhook\",\n name: \"Create Poof Webhook\",\n description: \"Tool to create a webhook subscription for receiving payment event notifications. Use when you need to set up real-time notifications for transaction status changes and other payment events.\",\n input: PoofCreateWebhookInput,\n output: PoofCreateWebhookOutput,\n});\n"],"mappings":";;;AAeA,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBoC,EAAE,OAAO,EAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACjH,CAAC,CAAC,CAAC,SAAS,4DAeH;CACP,QAfqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-gas-price.cjs","names":["z","action"],"sources":["../../src/actions/fetch-gas-price.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofFetchGasPriceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency identifier for which to fetch gas prices (e.g., 'usdc', 'eth', 'bnb', 'matic'). Determines which blockchain network's gas prices to retrieve.\"),\n});\nexport const PoofFetchGasPriceOutput = z.object({\n message: z.string().describe(\"Error or informational message (e.g., 'currency name invalid').\").nullable().optional(),\n gas_used: z.string().describe(\"The estimated amount of gas units that would be used for the transaction.\").nullable().optional(),\n gas_fee_usdc: z.string().describe(\"The gas fee amount in USDC stablecoin.\").nullable().optional(),\n gas_price_eth: z.string().describe(\"The gas price in ETH (Ethereum).\").nullable().optional(),\n gas_fee_in_usd: z.string().describe(\"The gas fee amount converted to USD.\").nullable().optional(),\n transaction_fee: z.string().describe(\"The estimated transaction fee for the blockchain operation.\").nullable().optional(),\n gas_fee_currency: z.string().describe(\"The gas fee amount in the specified cryptocurrency.\").nullable().optional(),\n}).passthrough().describe(\"Response containing gas price estimates for blockchain transactions.\");\n\nexport const poofFetchGasPrice = action(\"POOF_FETCH_GAS_PRICE\", {\n slug: \"poof-fetch-gas-price\",\n name: \"Fetch Gas Price\",\n description: \"Tool to fetch current gas prices for blockchain transactions. Returns gas price estimates for Ethereum, Avalanche, Polygon, and other supported EVM chains across different priority levels (slow, standard, fast, instant).\",\n input: PoofFetchGasPriceInput,\n output: PoofFetchGasPriceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-gas-price.cjs","names":["z","action"],"sources":["../../src/actions/fetch-gas-price.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 PoofFetchGasPriceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency identifier for which to fetch gas prices (e.g., 'usdc', 'eth', 'bnb', 'matic'). Determines which blockchain network's gas prices to retrieve.\"),\n});\nexport const PoofFetchGasPriceOutput = z.object({\n message: z.string().describe(\"Error or informational message (e.g., 'currency name invalid').\").nullable().optional(),\n gas_used: z.string().describe(\"The estimated amount of gas units that would be used for the transaction.\").nullable().optional(),\n gas_fee_usdc: z.string().describe(\"The gas fee amount in USDC stablecoin.\").nullable().optional(),\n gas_price_eth: z.string().describe(\"The gas price in ETH (Ethereum).\").nullable().optional(),\n gas_fee_in_usd: z.string().describe(\"The gas fee amount converted to USD.\").nullable().optional(),\n transaction_fee: z.string().describe(\"The estimated transaction fee for the blockchain operation.\").nullable().optional(),\n gas_fee_currency: z.string().describe(\"The gas fee amount in the specified cryptocurrency.\").nullable().optional(),\n}).passthrough().describe(\"Response containing gas price estimates for blockchain transactions.\");\n\nexport const poofFetchGasPrice: AppAction<\n typeof PoofFetchGasPriceInput,\n typeof PoofFetchGasPriceOutput,\n typeof poof.credential\n> = action(\"POOF_FETCH_GAS_PRICE\", {\n slug: \"poof-fetch-gas-price\",\n name: \"Fetch Gas Price\",\n description: \"Tool to fetch current gas prices for blockchain transactions. Returns gas price estimates for Ethereum, Avalanche, Polygon, and other supported EVM chains across different priority levels (slow, standard, fast, instant).\",\n input: PoofFetchGasPriceInput,\n output: PoofFetchGasPriceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,EAChM,CAAC;AACD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,oBAITC,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/fetch-gas-price.d.ts
|
|
@@ -13,21 +15,7 @@ declare const PoofFetchGasPriceOutput: z.ZodObject<{
|
|
|
13
15
|
transaction_fee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
gas_fee_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const poofFetchGasPrice:
|
|
17
|
-
crypto: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const poofFetchGasPrice: AppAction<typeof PoofFetchGasPriceInput, typeof PoofFetchGasPriceOutput, typeof poof.credential>;
|
|
31
19
|
//#endregion
|
|
32
20
|
export { poofFetchGasPrice };
|
|
33
21
|
//# sourceMappingURL=fetch-gas-price.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-gas-price.d.cts","names":[],"sources":["../../src/actions/fetch-gas-price.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-gas-price.d.cts","names":[],"sources":["../../src/actions/fetch-gas-price.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAGtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAUvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/fetch-gas-price.d.ts
|
|
@@ -13,21 +15,7 @@ declare const PoofFetchGasPriceOutput: z.ZodObject<{
|
|
|
13
15
|
transaction_fee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
gas_fee_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const poofFetchGasPrice:
|
|
17
|
-
crypto: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const poofFetchGasPrice: AppAction<typeof PoofFetchGasPriceInput, typeof PoofFetchGasPriceOutput, typeof poof.credential>;
|
|
31
19
|
//#endregion
|
|
32
20
|
export { poofFetchGasPrice };
|
|
33
21
|
//# sourceMappingURL=fetch-gas-price.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-gas-price.d.mts","names":[],"sources":["../../src/actions/fetch-gas-price.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-gas-price.d.mts","names":[],"sources":["../../src/actions/fetch-gas-price.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAGtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAUvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-gas-price.mjs","names":[],"sources":["../../src/actions/fetch-gas-price.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofFetchGasPriceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency identifier for which to fetch gas prices (e.g., 'usdc', 'eth', 'bnb', 'matic'). Determines which blockchain network's gas prices to retrieve.\"),\n});\nexport const PoofFetchGasPriceOutput = z.object({\n message: z.string().describe(\"Error or informational message (e.g., 'currency name invalid').\").nullable().optional(),\n gas_used: z.string().describe(\"The estimated amount of gas units that would be used for the transaction.\").nullable().optional(),\n gas_fee_usdc: z.string().describe(\"The gas fee amount in USDC stablecoin.\").nullable().optional(),\n gas_price_eth: z.string().describe(\"The gas price in ETH (Ethereum).\").nullable().optional(),\n gas_fee_in_usd: z.string().describe(\"The gas fee amount converted to USD.\").nullable().optional(),\n transaction_fee: z.string().describe(\"The estimated transaction fee for the blockchain operation.\").nullable().optional(),\n gas_fee_currency: z.string().describe(\"The gas fee amount in the specified cryptocurrency.\").nullable().optional(),\n}).passthrough().describe(\"Response containing gas price estimates for blockchain transactions.\");\n\nexport const poofFetchGasPrice = action(\"POOF_FETCH_GAS_PRICE\", {\n slug: \"poof-fetch-gas-price\",\n name: \"Fetch Gas Price\",\n description: \"Tool to fetch current gas prices for blockchain transactions. Returns gas price estimates for Ethereum, Avalanche, Polygon, and other supported EVM chains across different priority levels (slow, standard, fast, instant).\",\n input: PoofFetchGasPriceInput,\n output: PoofFetchGasPriceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-gas-price.mjs","names":[],"sources":["../../src/actions/fetch-gas-price.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 PoofFetchGasPriceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency identifier for which to fetch gas prices (e.g., 'usdc', 'eth', 'bnb', 'matic'). Determines which blockchain network's gas prices to retrieve.\"),\n});\nexport const PoofFetchGasPriceOutput = z.object({\n message: z.string().describe(\"Error or informational message (e.g., 'currency name invalid').\").nullable().optional(),\n gas_used: z.string().describe(\"The estimated amount of gas units that would be used for the transaction.\").nullable().optional(),\n gas_fee_usdc: z.string().describe(\"The gas fee amount in USDC stablecoin.\").nullable().optional(),\n gas_price_eth: z.string().describe(\"The gas price in ETH (Ethereum).\").nullable().optional(),\n gas_fee_in_usd: z.string().describe(\"The gas fee amount converted to USD.\").nullable().optional(),\n transaction_fee: z.string().describe(\"The estimated transaction fee for the blockchain operation.\").nullable().optional(),\n gas_fee_currency: z.string().describe(\"The gas fee amount in the specified cryptocurrency.\").nullable().optional(),\n}).passthrough().describe(\"Response containing gas price estimates for blockchain transactions.\");\n\nexport const poofFetchGasPrice: AppAction<\n typeof PoofFetchGasPriceInput,\n typeof PoofFetchGasPriceOutput,\n typeof poof.credential\n> = action(\"POOF_FETCH_GAS_PRICE\", {\n slug: \"poof-fetch-gas-price\",\n name: \"Fetch Gas Price\",\n description: \"Tool to fetch current gas prices for blockchain transactions. Returns gas price estimates for Ethereum, Avalanche, Polygon, and other supported EVM chains across different priority levels (slow, standard, fast, instant).\",\n input: PoofFetchGasPriceInput,\n output: PoofFetchGasPriceOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,oBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBoC,EAAE,OAAO,EAC7C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,EAChM,CAmBS;CACP,QAnBqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-price.cjs","names":["z","action"],"sources":["../../src/actions/fetch-price.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofFetchPriceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency identifier to fetch price for (e.g., 'bnb', 'btc', 'eth', 'ethereum', 'bitcoin')\"),\n}).describe(\"Request model for fetching current cryptocurrency price.\");\nexport const PoofFetchPriceOutput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown()), z.number(), z.number().int()]).nullable().optional(),\n error: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n successfull: z.boolean().describe(\"Indicates whether the API request was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model containing current cryptocurrency price data.\");\n\nexport const poofFetchPrice = action(\"POOF_FETCH_PRICE\", {\n slug: \"poof-fetch-price\",\n name: \"Fetch Cryptocurrency Price\",\n description: \"Tool to fetch current cryptocurrency prices for supported tokens. Use when you need real-time price data for cryptocurrencies and tokens.\",\n input: PoofFetchPriceInput,\n output: PoofFetchPriceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-price.cjs","names":["z","action"],"sources":["../../src/actions/fetch-price.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 PoofFetchPriceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency identifier to fetch price for (e.g., 'bnb', 'btc', 'eth', 'ethereum', 'bitcoin')\"),\n}).describe(\"Request model for fetching current cryptocurrency price.\");\nexport const PoofFetchPriceOutput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown()), z.number(), z.number().int()]).nullable().optional(),\n error: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n successfull: z.boolean().describe(\"Indicates whether the API request was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model containing current cryptocurrency price data.\");\n\nexport const poofFetchPrice: AppAction<\n typeof PoofFetchPriceInput,\n typeof PoofFetchPriceOutput,\n typeof poof.credential\n> = action(\"POOF_FETCH_PRICE\", {\n slug: \"poof-fetch-price\",\n name: \"Fetch Cryptocurrency Price\",\n description: \"Tool to fetch current cryptocurrency prices for supported tokens. Use when you need real-time price data for cryptocurrencies and tokens.\",\n input: PoofFetchPriceInput,\n output: PoofFetchPriceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACnI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,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/fetch-price.d.ts
|
|
@@ -9,21 +11,7 @@ declare const PoofFetchPriceOutput: z.ZodObject<{
|
|
|
9
11
|
error: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
10
12
|
successfull: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const poofFetchPrice:
|
|
13
|
-
crypto: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
generic_api_key: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const poofFetchPrice: AppAction<typeof PoofFetchPriceInput, typeof PoofFetchPriceOutput, typeof poof.credential>;
|
|
27
15
|
//#endregion
|
|
28
16
|
export { poofFetchPrice };
|
|
29
17
|
//# sourceMappingURL=fetch-price.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-price.d.cts","names":[],"sources":["../../src/actions/fetch-price.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-price.d.cts","names":[],"sources":["../../src/actions/fetch-price.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAGnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;cAMpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,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/fetch-price.d.ts
|
|
@@ -9,21 +11,7 @@ declare const PoofFetchPriceOutput: z.ZodObject<{
|
|
|
9
11
|
error: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
10
12
|
successfull: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const poofFetchPrice:
|
|
13
|
-
crypto: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
generic_api_key: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const poofFetchPrice: AppAction<typeof PoofFetchPriceInput, typeof PoofFetchPriceOutput, typeof poof.credential>;
|
|
27
15
|
//#endregion
|
|
28
16
|
export { poofFetchPrice };
|
|
29
17
|
//# sourceMappingURL=fetch-price.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-price.d.mts","names":[],"sources":["../../src/actions/fetch-price.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-price.d.mts","names":[],"sources":["../../src/actions/fetch-price.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAGnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;cAMpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-price.mjs","names":[],"sources":["../../src/actions/fetch-price.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofFetchPriceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency identifier to fetch price for (e.g., 'bnb', 'btc', 'eth', 'ethereum', 'bitcoin')\"),\n}).describe(\"Request model for fetching current cryptocurrency price.\");\nexport const PoofFetchPriceOutput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown()), z.number(), z.number().int()]).nullable().optional(),\n error: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n successfull: z.boolean().describe(\"Indicates whether the API request was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model containing current cryptocurrency price data.\");\n\nexport const poofFetchPrice = action(\"POOF_FETCH_PRICE\", {\n slug: \"poof-fetch-price\",\n name: \"Fetch Cryptocurrency Price\",\n description: \"Tool to fetch current cryptocurrency prices for supported tokens. Use when you need real-time price data for cryptocurrencies and tokens.\",\n input: PoofFetchPriceInput,\n output: PoofFetchPriceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-price.mjs","names":[],"sources":["../../src/actions/fetch-price.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 PoofFetchPriceInput = z.object({\n crypto: z.string().describe(\"The cryptocurrency identifier to fetch price for (e.g., 'bnb', 'btc', 'eth', 'ethereum', 'bitcoin')\"),\n}).describe(\"Request model for fetching current cryptocurrency price.\");\nexport const PoofFetchPriceOutput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown()), z.number(), z.number().int()]).nullable().optional(),\n error: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n successfull: z.boolean().describe(\"Indicates whether the API request was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model containing current cryptocurrency price data.\");\n\nexport const poofFetchPrice: AppAction<\n typeof PoofFetchPriceInput,\n typeof PoofFetchPriceOutput,\n typeof poof.credential\n> = action(\"POOF_FETCH_PRICE\", {\n slug: \"poof-fetch-price\",\n name: \"Fetch Cryptocurrency Price\",\n description: \"Tool to fetch current cryptocurrency prices for supported tokens. Use when you need real-time price data for cryptocurrencies and tokens.\",\n input: PoofFetchPriceInput,\n output: PoofFetchPriceOutput,\n});\n"],"mappings":";;;AAeA,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBiC,EAAE,OAAO,EAC1C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACnI,CAAC,CAAC,CAAC,SAAS,0DAeH;CACP,QAfkC,EAAE,OAAO;EAC3C,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-smart-contracts.cjs","names":["z","action"],"sources":["../../src/actions/fetch-smart-contracts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofFetchSmartContractsInput = z.object({}).describe(\"Request model for fetching supported smart contracts.\\nNo parameters required - the API returns all available contracts.\");\nexport const PoofFetchSmartContractsOutput = z.object({\n polygon: z.record(z.string(), z.unknown()).describe(\"Polygon network token contracts keyed by token identifier\").nullable().optional(),\n ethereum: z.record(z.string(), z.unknown()).describe(\"Ethereum network ERC-20 token contracts keyed by token identifier\").nullable().optional(),\n avalanche: z.record(z.string(), z.unknown()).describe(\"Avalanche network token contracts keyed by token identifier\").nullable().optional(),\n}).passthrough().describe(\"Response model containing smart contracts organized by blockchain network.\\nEach network contains token identifiers mapped to their contract details.\");\n\nexport const poofFetchSmartContracts = action(\"POOF_FETCH_SMART_CONTRACTS\", {\n slug: \"poof-fetch-smart-contracts\",\n name: \"Fetch Smart Contracts\",\n description: \"Tool to fetch all supported ERC-20 smart contracts across Ethereum, Avalanche, and Polygon networks. Use when you need to retrieve available token contracts and their details for blockchain operations.\",\n input: PoofFetchSmartContractsInput,\n output: PoofFetchSmartContractsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-smart-contracts.cjs","names":["z","action"],"sources":["../../src/actions/fetch-smart-contracts.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 PoofFetchSmartContractsInput = z.object({}).describe(\"Request model for fetching supported smart contracts.\\nNo parameters required - the API returns all available contracts.\");\nexport const PoofFetchSmartContractsOutput = z.object({\n polygon: z.record(z.string(), z.unknown()).describe(\"Polygon network token contracts keyed by token identifier\").nullable().optional(),\n ethereum: z.record(z.string(), z.unknown()).describe(\"Ethereum network ERC-20 token contracts keyed by token identifier\").nullable().optional(),\n avalanche: z.record(z.string(), z.unknown()).describe(\"Avalanche network token contracts keyed by token identifier\").nullable().optional(),\n}).passthrough().describe(\"Response model containing smart contracts organized by blockchain network.\\nEach network contains token identifiers mapped to their contract details.\");\n\nexport const poofFetchSmartContracts: AppAction<\n typeof PoofFetchSmartContractsInput,\n typeof PoofFetchSmartContractsOutput,\n typeof poof.credential\n> = action(\"POOF_FETCH_SMART_CONTRACTS\", {\n slug: \"poof-fetch-smart-contracts\",\n name: \"Fetch Smart Contracts\",\n description: \"Tool to fetch all supported ERC-20 smart contracts across Ethereum, Avalanche, and Polygon networks. Use when you need to retrieve available token contracts and their details for blockchain operations.\",\n input: PoofFetchSmartContractsInput,\n output: PoofFetchSmartContractsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HAA0H;AAC5L,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uJAAuJ;AAEjL,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,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/fetch-smart-contracts.d.ts
|
|
@@ -7,19 +9,7 @@ declare const PoofFetchSmartContractsOutput: z.ZodObject<{
|
|
|
7
9
|
ethereum: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
8
10
|
avalanche: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const poofFetchSmartContracts:
|
|
11
|
-
connectionId: z.ZodString;
|
|
12
|
-
entityId: z.ZodString;
|
|
13
|
-
instanceId: z.ZodString;
|
|
14
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
-
generic_api_key: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
17
|
-
connectionId: z.ZodString;
|
|
18
|
-
entityId: z.ZodString;
|
|
19
|
-
instanceId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
generic_api_key: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const poofFetchSmartContracts: AppAction<typeof PoofFetchSmartContractsInput, typeof PoofFetchSmartContractsOutput, typeof poof.credential>;
|
|
23
13
|
//#endregion
|
|
24
14
|
export { poofFetchSmartContracts };
|
|
25
15
|
//# sourceMappingURL=fetch-smart-contracts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-smart-contracts.d.cts","names":[],"sources":["../../src/actions/fetch-smart-contracts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-smart-contracts.d.cts","names":[],"sources":["../../src/actions/fetch-smart-contracts.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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/fetch-smart-contracts.d.ts
|
|
@@ -7,19 +9,7 @@ declare const PoofFetchSmartContractsOutput: z.ZodObject<{
|
|
|
7
9
|
ethereum: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
8
10
|
avalanche: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const poofFetchSmartContracts:
|
|
11
|
-
connectionId: z.ZodString;
|
|
12
|
-
entityId: z.ZodString;
|
|
13
|
-
instanceId: z.ZodString;
|
|
14
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
-
generic_api_key: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
|
|
17
|
-
connectionId: z.ZodString;
|
|
18
|
-
entityId: z.ZodString;
|
|
19
|
-
instanceId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
generic_api_key: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const poofFetchSmartContracts: AppAction<typeof PoofFetchSmartContractsInput, typeof PoofFetchSmartContractsOutput, typeof poof.credential>;
|
|
23
13
|
//#endregion
|
|
24
14
|
export { poofFetchSmartContracts };
|
|
25
15
|
//# sourceMappingURL=fetch-smart-contracts.d.mts.map
|