@keystrokehq/plisio 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/create-invoice.cjs +2 -2
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +2 -2
- package/dist/actions/create-invoice.d.mts +2 -2
- package/dist/actions/create-invoice.mjs +2 -2
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/estimate-fee.cjs +2 -2
- package/dist/actions/estimate-fee.cjs.map +1 -1
- package/dist/actions/estimate-fee.d.cts +2 -2
- package/dist/actions/estimate-fee.d.mts +2 -2
- package/dist/actions/estimate-fee.mjs +2 -2
- package/dist/actions/estimate-fee.mjs.map +1 -1
- package/dist/actions/get-balance-by-currency.cjs +2 -2
- package/dist/actions/get-balance-by-currency.cjs.map +1 -1
- package/dist/actions/get-balance-by-currency.d.cts +2 -2
- package/dist/actions/get-balance-by-currency.d.mts +2 -2
- package/dist/actions/get-balance-by-currency.mjs +2 -2
- package/dist/actions/get-balance-by-currency.mjs.map +1 -1
- package/dist/actions/get-commission.cjs +4 -4
- package/dist/actions/get-commission.cjs.map +1 -1
- package/dist/actions/get-commission.d.cts +5 -5
- package/dist/actions/get-commission.d.mts +5 -5
- package/dist/actions/get-commission.mjs +4 -4
- package/dist/actions/get-commission.mjs.map +1 -1
- package/dist/actions/get-currency-rate.cjs +2 -2
- package/dist/actions/get-currency-rate.cjs.map +1 -1
- package/dist/actions/get-currency-rate.d.cts +2 -2
- package/dist/actions/get-currency-rate.d.mts +2 -2
- package/dist/actions/get-currency-rate.mjs +2 -2
- package/dist/actions/get-currency-rate.mjs.map +1 -1
- package/dist/actions/get-fee-plans.cjs +3 -3
- package/dist/actions/get-fee-plans.cjs.map +1 -1
- package/dist/actions/get-fee-plans.d.cts +4 -4
- package/dist/actions/get-fee-plans.d.mts +4 -4
- package/dist/actions/get-fee-plans.mjs +3 -3
- package/dist/actions/get-fee-plans.mjs.map +1 -1
- package/dist/actions/get-fee-plans2.cjs +3 -3
- package/dist/actions/get-fee-plans2.cjs.map +1 -1
- package/dist/actions/get-fee-plans2.d.cts +5 -5
- package/dist/actions/get-fee-plans2.d.mts +5 -5
- package/dist/actions/get-fee-plans2.mjs +3 -3
- package/dist/actions/get-fee-plans2.mjs.map +1 -1
- package/dist/actions/get-invoice-email.cjs +1 -1
- package/dist/actions/get-invoice-email.cjs.map +1 -1
- package/dist/actions/get-invoice-email.d.cts +1 -1
- package/dist/actions/get-invoice-email.d.mts +1 -1
- package/dist/actions/get-invoice-email.mjs +1 -1
- package/dist/actions/get-invoice-email.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +2 -2
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +2 -2
- package/dist/actions/get-invoice.d.mts +2 -2
- package/dist/actions/get-invoice.mjs +2 -2
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-shop.cjs +1 -1
- package/dist/actions/get-shop.cjs.map +1 -1
- package/dist/actions/get-shop.d.cts +1 -1
- package/dist/actions/get-shop.d.mts +1 -1
- package/dist/actions/get-shop.mjs +1 -1
- package/dist/actions/get-shop.mjs.map +1 -1
- package/dist/actions/get-transactions.cjs +3 -3
- package/dist/actions/get-transactions.cjs.map +1 -1
- package/dist/actions/get-transactions.d.cts +3 -3
- package/dist/actions/get-transactions.d.mts +3 -3
- package/dist/actions/get-transactions.mjs +3 -3
- package/dist/actions/get-transactions.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +2 -2
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +2 -2
- package/dist/actions/list-currencies.d.mts +2 -2
- package/dist/actions/list-currencies.mjs +2 -2
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -41,12 +41,12 @@ const PlisioCreateInvoice_InvoiceDataSchema = zod.z.object({
|
|
|
41
41
|
invoice_total_sum: zod.z.string().describe("Complete invoice amount in cryptocurrency").nullable().optional(),
|
|
42
42
|
invoice_commission: zod.z.string().describe("Plisio's commission/fee amount").nullable().optional(),
|
|
43
43
|
expected_confirmations: zod.z.string().describe("Required confirmations to complete transaction").nullable().optional()
|
|
44
|
-
}).describe("Invoice data returned by Plisio API.\nContains core fields for regular accounts and additional fields for white-label accounts.");
|
|
44
|
+
}).passthrough().describe("Invoice data returned by Plisio API.\nContains core fields for regular accounts and additional fields for white-label accounts.");
|
|
45
45
|
const PlisioCreateInvoiceOutput = zod.z.object({
|
|
46
46
|
data: PlisioCreateInvoice_InvoiceDataSchema.nullable().optional(),
|
|
47
47
|
error: zod.z.string().describe("Error message if the request failed").nullable().optional(),
|
|
48
48
|
status: zod.z.string().describe("Result status, e.g., 'success' or 'error'").nullable()
|
|
49
|
-
}).describe("Response model for create invoice endpoint.");
|
|
49
|
+
}).passthrough().describe("Response model for create invoice endpoint.");
|
|
50
50
|
const plisioCreateInvoice = require_action.action("PLISIO_CREATE_INVOICE", {
|
|
51
51
|
slug: "plisio-create-invoice",
|
|
52
52
|
name: "Create Plisio Invoice",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioCreateInvoiceInput = z.object({\n email: z.string().describe(\"Auto-fill invoice email. Customer will be asked to provide email for notifications.\").optional(),\n amount: z.string().describe(\"Payment amount in cryptocurrency (float value as string). Skip this field if using source_currency and source_amount for fiat conversion.\").optional(),\n plugin: z.string().describe(\"Plisio's internal field to identify integration plugin\").optional(),\n version: z.string().describe(\"Plisio's internal field to identify integration plugin version\").optional(),\n currency: z.string().describe(\"Cryptocurrency code (e.g., 'BTC', 'ETH'). One of the cryptocurrencies supported by Plisio. If not set, one of the active cryptocurrencies from API settings is selected automatically.\"),\n language: z.string().describe(\"Invoice language code. Currently only 'en_US' is supported.\").optional(),\n expire_min: z.string().describe(\"Invoice expiration interval in minutes\").optional(),\n order_name: z.string().describe(\"Merchant internal order name for identification\"),\n description: z.string().describe(\"Merchant invoice description for the customer\").optional(),\n callback_url: z.string().describe(\"Full URL to receive invoice updates via POST request. If not set, uses the default Status URL from API settings.\").optional(),\n order_number: z.string().describe(\"Merchant internal order number. Must be unique for each new order in your store.\"),\n source_amount: z.string().describe(\"Payment amount in fiat currency (float value as string). Use with source_currency for fiat-to-crypto conversion.\").optional(),\n return_existing: z.number().int().describe(\"Return existing invoice instead of error if order_number already exists. Default is 0 (disabled).\").optional(),\n source_currency: z.string().describe(\"Fiat currency code for conversion (e.g., 'USD', 'EUR'). Use with source_amount instead of amount for fiat-to-crypto conversion.\").optional(),\n fail_invoice_url: z.string().describe(\"'To the site' button link when invoice payment fails\").optional(),\n allowed_psys_cids: z.string().describe(\"Comma-separated list of allowed cryptocurrencies for payment. Customer can select one from this list.\").optional(),\n fail_callback_url: z.string().describe(\"Full URL for failed invoice callback. Add json=true to URL for JSON response format.\").optional(),\n redirect_to_invoice: z.boolean().describe(\"If true, redirects to Plisio's invoice page instead of returning JSON (not supported for white-label shops)\").optional(),\n success_invoice_url: z.string().describe(\"'To the site' button link when invoice is paid\").optional(),\n success_callback_url: z.string().describe(\"Full URL for successful invoice callback. Add json=true to URL for JSON response format.\").optional(),\n}).describe(\"Request model for creating a new cryptocurrency payment invoice.\");\nconst PlisioCreateInvoice_InvoiceDataSchema = z.object({\n amount: z.string().describe(\"Invoice amount in the selected cryptocurrency\").nullable().optional(),\n status: z.string().describe(\"Invoice status (new, pending, completed, etc.)\").nullable().optional(),\n txn_id: z.string().describe(\"Plisio's internal transaction ID\").nullable().optional(),\n qr_code: z.string().describe(\"Base64-encoded QR code image for payment\").nullable().optional(),\n currency: z.string().describe(\"Cryptocurrency code\").nullable().optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier\").nullable().optional(),\n expire_utc: z.number().int().describe(\"Expiration timestamp (UTC)\").nullable().optional(),\n invoice_sum: z.string().describe(\"Amount after commission (if shop pays fee) or before commission (if client pays fee)\").nullable().optional(),\n invoice_url: z.string().describe(\"URL to the invoice payment page\").nullable().optional(),\n source_rate: z.string().describe(\"Exchange rate at transaction time\").nullable().optional(),\n verify_hash: z.string().describe(\"HMAC-SHA1 signature for verification\").nullable().optional(),\n wallet_hash: z.string().describe(\"Invoice hash identifier\").nullable().optional(),\n pending_amount: z.string().describe(\"Remaining amount to be paid in the selected cryptocurrency\").nullable().optional(),\n source_currency: z.string().describe(\"Source fiat currency code\").nullable().optional(),\n invoice_total_sum: z.string().describe(\"Complete invoice amount in cryptocurrency\").nullable().optional(),\n invoice_commission: z.string().describe(\"Plisio's commission/fee amount\").nullable().optional(),\n expected_confirmations: z.string().describe(\"Required confirmations to complete transaction\").nullable().optional(),\n}).describe(\"Invoice data returned by Plisio API.\\nContains core fields for regular accounts and additional fields for white-label accounts.\");\nexport const PlisioCreateInvoiceOutput = z.object({\n data: PlisioCreateInvoice_InvoiceDataSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).describe(\"Response model for create invoice endpoint.\");\n\nexport const plisioCreateInvoice = action(\"PLISIO_CREATE_INVOICE\", {\n slug: \"plisio-create-invoice\",\n name: \"Create Plisio Invoice\",\n description: \"Tool to create a new cryptocurrency payment invoice with Plisio. Returns transaction ID and invoice URL for payment. For white-label accounts, includes additional fields like wallet hash, QR code, and commission details. Use when you need to generate a payment request for cryptocurrency transactions.\",\n input: PlisioCreateInvoiceInput,\n output: PlisioCreateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CA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,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,iIAAiI;
|
|
1
|
+
{"version":3,"file":"create-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioCreateInvoiceInput = z.object({\n email: z.string().describe(\"Auto-fill invoice email. Customer will be asked to provide email for notifications.\").optional(),\n amount: z.string().describe(\"Payment amount in cryptocurrency (float value as string). Skip this field if using source_currency and source_amount for fiat conversion.\").optional(),\n plugin: z.string().describe(\"Plisio's internal field to identify integration plugin\").optional(),\n version: z.string().describe(\"Plisio's internal field to identify integration plugin version\").optional(),\n currency: z.string().describe(\"Cryptocurrency code (e.g., 'BTC', 'ETH'). One of the cryptocurrencies supported by Plisio. If not set, one of the active cryptocurrencies from API settings is selected automatically.\"),\n language: z.string().describe(\"Invoice language code. Currently only 'en_US' is supported.\").optional(),\n expire_min: z.string().describe(\"Invoice expiration interval in minutes\").optional(),\n order_name: z.string().describe(\"Merchant internal order name for identification\"),\n description: z.string().describe(\"Merchant invoice description for the customer\").optional(),\n callback_url: z.string().describe(\"Full URL to receive invoice updates via POST request. If not set, uses the default Status URL from API settings.\").optional(),\n order_number: z.string().describe(\"Merchant internal order number. Must be unique for each new order in your store.\"),\n source_amount: z.string().describe(\"Payment amount in fiat currency (float value as string). Use with source_currency for fiat-to-crypto conversion.\").optional(),\n return_existing: z.number().int().describe(\"Return existing invoice instead of error if order_number already exists. Default is 0 (disabled).\").optional(),\n source_currency: z.string().describe(\"Fiat currency code for conversion (e.g., 'USD', 'EUR'). Use with source_amount instead of amount for fiat-to-crypto conversion.\").optional(),\n fail_invoice_url: z.string().describe(\"'To the site' button link when invoice payment fails\").optional(),\n allowed_psys_cids: z.string().describe(\"Comma-separated list of allowed cryptocurrencies for payment. Customer can select one from this list.\").optional(),\n fail_callback_url: z.string().describe(\"Full URL for failed invoice callback. Add json=true to URL for JSON response format.\").optional(),\n redirect_to_invoice: z.boolean().describe(\"If true, redirects to Plisio's invoice page instead of returning JSON (not supported for white-label shops)\").optional(),\n success_invoice_url: z.string().describe(\"'To the site' button link when invoice is paid\").optional(),\n success_callback_url: z.string().describe(\"Full URL for successful invoice callback. Add json=true to URL for JSON response format.\").optional(),\n}).describe(\"Request model for creating a new cryptocurrency payment invoice.\");\nconst PlisioCreateInvoice_InvoiceDataSchema = z.object({\n amount: z.string().describe(\"Invoice amount in the selected cryptocurrency\").nullable().optional(),\n status: z.string().describe(\"Invoice status (new, pending, completed, etc.)\").nullable().optional(),\n txn_id: z.string().describe(\"Plisio's internal transaction ID\").nullable().optional(),\n qr_code: z.string().describe(\"Base64-encoded QR code image for payment\").nullable().optional(),\n currency: z.string().describe(\"Cryptocurrency code\").nullable().optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier\").nullable().optional(),\n expire_utc: z.number().int().describe(\"Expiration timestamp (UTC)\").nullable().optional(),\n invoice_sum: z.string().describe(\"Amount after commission (if shop pays fee) or before commission (if client pays fee)\").nullable().optional(),\n invoice_url: z.string().describe(\"URL to the invoice payment page\").nullable().optional(),\n source_rate: z.string().describe(\"Exchange rate at transaction time\").nullable().optional(),\n verify_hash: z.string().describe(\"HMAC-SHA1 signature for verification\").nullable().optional(),\n wallet_hash: z.string().describe(\"Invoice hash identifier\").nullable().optional(),\n pending_amount: z.string().describe(\"Remaining amount to be paid in the selected cryptocurrency\").nullable().optional(),\n source_currency: z.string().describe(\"Source fiat currency code\").nullable().optional(),\n invoice_total_sum: z.string().describe(\"Complete invoice amount in cryptocurrency\").nullable().optional(),\n invoice_commission: z.string().describe(\"Plisio's commission/fee amount\").nullable().optional(),\n expected_confirmations: z.string().describe(\"Required confirmations to complete transaction\").nullable().optional(),\n}).passthrough().describe(\"Invoice data returned by Plisio API.\\nContains core fields for regular accounts and additional fields for white-label accounts.\");\nexport const PlisioCreateInvoiceOutput = z.object({\n data: PlisioCreateInvoice_InvoiceDataSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).passthrough().describe(\"Response model for create invoice endpoint.\");\n\nexport const plisioCreateInvoice = action(\"PLISIO_CREATE_INVOICE\", {\n slug: \"plisio-create-invoice\",\n name: \"Create Plisio Invoice\",\n description: \"Tool to create a new cryptocurrency payment invoice with Plisio. Returns transaction ID and invoice URL for payment. For white-label accounts, includes additional fields like wallet hash, QR code, and commission details. Use when you need to generate a payment request for cryptocurrency transactions.\",\n input: PlisioCreateInvoiceInput,\n output: PlisioCreateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CAClL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z.ZodString>>;
|
|
43
43
|
invoice_commission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
expected_confirmations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
46
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
status: z.ZodNullable<z.ZodString>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const plisioCreateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
currency: string;
|
|
51
51
|
order_name: string;
|
|
@@ -42,10 +42,10 @@ declare const PlisioCreateInvoiceOutput: z.ZodObject<{
|
|
|
42
42
|
invoice_total_sum: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
invoice_commission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
expected_confirmations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
46
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
status: z.ZodNullable<z.ZodString>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const plisioCreateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
currency: string;
|
|
51
51
|
order_name: string;
|
|
@@ -41,7 +41,7 @@ const PlisioCreateInvoice_InvoiceDataSchema = z.object({
|
|
|
41
41
|
invoice_total_sum: z.string().describe("Complete invoice amount in cryptocurrency").nullable().optional(),
|
|
42
42
|
invoice_commission: z.string().describe("Plisio's commission/fee amount").nullable().optional(),
|
|
43
43
|
expected_confirmations: z.string().describe("Required confirmations to complete transaction").nullable().optional()
|
|
44
|
-
}).describe("Invoice data returned by Plisio API.\nContains core fields for regular accounts and additional fields for white-label accounts.");
|
|
44
|
+
}).passthrough().describe("Invoice data returned by Plisio API.\nContains core fields for regular accounts and additional fields for white-label accounts.");
|
|
45
45
|
const plisioCreateInvoice = action("PLISIO_CREATE_INVOICE", {
|
|
46
46
|
slug: "plisio-create-invoice",
|
|
47
47
|
name: "Create Plisio Invoice",
|
|
@@ -51,7 +51,7 @@ const plisioCreateInvoice = action("PLISIO_CREATE_INVOICE", {
|
|
|
51
51
|
data: PlisioCreateInvoice_InvoiceDataSchema.nullable().optional(),
|
|
52
52
|
error: z.string().describe("Error message if the request failed").nullable().optional(),
|
|
53
53
|
status: z.string().describe("Result status, e.g., 'success' or 'error'").nullable()
|
|
54
|
-
}).describe("Response model for create invoice endpoint.")
|
|
54
|
+
}).passthrough().describe("Response model for create invoice endpoint.")
|
|
55
55
|
});
|
|
56
56
|
//#endregion
|
|
57
57
|
export { plisioCreateInvoice };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-invoice.mjs","names":[],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioCreateInvoiceInput = z.object({\n email: z.string().describe(\"Auto-fill invoice email. Customer will be asked to provide email for notifications.\").optional(),\n amount: z.string().describe(\"Payment amount in cryptocurrency (float value as string). Skip this field if using source_currency and source_amount for fiat conversion.\").optional(),\n plugin: z.string().describe(\"Plisio's internal field to identify integration plugin\").optional(),\n version: z.string().describe(\"Plisio's internal field to identify integration plugin version\").optional(),\n currency: z.string().describe(\"Cryptocurrency code (e.g., 'BTC', 'ETH'). One of the cryptocurrencies supported by Plisio. If not set, one of the active cryptocurrencies from API settings is selected automatically.\"),\n language: z.string().describe(\"Invoice language code. Currently only 'en_US' is supported.\").optional(),\n expire_min: z.string().describe(\"Invoice expiration interval in minutes\").optional(),\n order_name: z.string().describe(\"Merchant internal order name for identification\"),\n description: z.string().describe(\"Merchant invoice description for the customer\").optional(),\n callback_url: z.string().describe(\"Full URL to receive invoice updates via POST request. If not set, uses the default Status URL from API settings.\").optional(),\n order_number: z.string().describe(\"Merchant internal order number. Must be unique for each new order in your store.\"),\n source_amount: z.string().describe(\"Payment amount in fiat currency (float value as string). Use with source_currency for fiat-to-crypto conversion.\").optional(),\n return_existing: z.number().int().describe(\"Return existing invoice instead of error if order_number already exists. Default is 0 (disabled).\").optional(),\n source_currency: z.string().describe(\"Fiat currency code for conversion (e.g., 'USD', 'EUR'). Use with source_amount instead of amount for fiat-to-crypto conversion.\").optional(),\n fail_invoice_url: z.string().describe(\"'To the site' button link when invoice payment fails\").optional(),\n allowed_psys_cids: z.string().describe(\"Comma-separated list of allowed cryptocurrencies for payment. Customer can select one from this list.\").optional(),\n fail_callback_url: z.string().describe(\"Full URL for failed invoice callback. Add json=true to URL for JSON response format.\").optional(),\n redirect_to_invoice: z.boolean().describe(\"If true, redirects to Plisio's invoice page instead of returning JSON (not supported for white-label shops)\").optional(),\n success_invoice_url: z.string().describe(\"'To the site' button link when invoice is paid\").optional(),\n success_callback_url: z.string().describe(\"Full URL for successful invoice callback. Add json=true to URL for JSON response format.\").optional(),\n}).describe(\"Request model for creating a new cryptocurrency payment invoice.\");\nconst PlisioCreateInvoice_InvoiceDataSchema = z.object({\n amount: z.string().describe(\"Invoice amount in the selected cryptocurrency\").nullable().optional(),\n status: z.string().describe(\"Invoice status (new, pending, completed, etc.)\").nullable().optional(),\n txn_id: z.string().describe(\"Plisio's internal transaction ID\").nullable().optional(),\n qr_code: z.string().describe(\"Base64-encoded QR code image for payment\").nullable().optional(),\n currency: z.string().describe(\"Cryptocurrency code\").nullable().optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier\").nullable().optional(),\n expire_utc: z.number().int().describe(\"Expiration timestamp (UTC)\").nullable().optional(),\n invoice_sum: z.string().describe(\"Amount after commission (if shop pays fee) or before commission (if client pays fee)\").nullable().optional(),\n invoice_url: z.string().describe(\"URL to the invoice payment page\").nullable().optional(),\n source_rate: z.string().describe(\"Exchange rate at transaction time\").nullable().optional(),\n verify_hash: z.string().describe(\"HMAC-SHA1 signature for verification\").nullable().optional(),\n wallet_hash: z.string().describe(\"Invoice hash identifier\").nullable().optional(),\n pending_amount: z.string().describe(\"Remaining amount to be paid in the selected cryptocurrency\").nullable().optional(),\n source_currency: z.string().describe(\"Source fiat currency code\").nullable().optional(),\n invoice_total_sum: z.string().describe(\"Complete invoice amount in cryptocurrency\").nullable().optional(),\n invoice_commission: z.string().describe(\"Plisio's commission/fee amount\").nullable().optional(),\n expected_confirmations: z.string().describe(\"Required confirmations to complete transaction\").nullable().optional(),\n}).describe(\"Invoice data returned by Plisio API.\\nContains core fields for regular accounts and additional fields for white-label accounts.\");\nexport const PlisioCreateInvoiceOutput = z.object({\n data: PlisioCreateInvoice_InvoiceDataSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).describe(\"Response model for create invoice endpoint.\");\n\nexport const plisioCreateInvoice = action(\"PLISIO_CREATE_INVOICE\", {\n slug: \"plisio-create-invoice\",\n name: \"Create Plisio Invoice\",\n description: \"Tool to create a new cryptocurrency payment invoice with Plisio. Returns transaction ID and invoice URL for payment. For white-label accounts, includes additional fields like wallet hash, QR code, and commission details. Use when you need to generate a payment request for cryptocurrency transactions.\",\n input: PlisioCreateInvoiceInput,\n output: PlisioCreateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CAClL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL;C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AAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,iIAAiI;
|
|
1
|
+
{"version":3,"file":"create-invoice.mjs","names":[],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioCreateInvoiceInput = z.object({\n email: z.string().describe(\"Auto-fill invoice email. Customer will be asked to provide email for notifications.\").optional(),\n amount: z.string().describe(\"Payment amount in cryptocurrency (float value as string). Skip this field if using source_currency and source_amount for fiat conversion.\").optional(),\n plugin: z.string().describe(\"Plisio's internal field to identify integration plugin\").optional(),\n version: z.string().describe(\"Plisio's internal field to identify integration plugin version\").optional(),\n currency: z.string().describe(\"Cryptocurrency code (e.g., 'BTC', 'ETH'). One of the cryptocurrencies supported by Plisio. If not set, one of the active cryptocurrencies from API settings is selected automatically.\"),\n language: z.string().describe(\"Invoice language code. Currently only 'en_US' is supported.\").optional(),\n expire_min: z.string().describe(\"Invoice expiration interval in minutes\").optional(),\n order_name: z.string().describe(\"Merchant internal order name for identification\"),\n description: z.string().describe(\"Merchant invoice description for the customer\").optional(),\n callback_url: z.string().describe(\"Full URL to receive invoice updates via POST request. If not set, uses the default Status URL from API settings.\").optional(),\n order_number: z.string().describe(\"Merchant internal order number. Must be unique for each new order in your store.\"),\n source_amount: z.string().describe(\"Payment amount in fiat currency (float value as string). Use with source_currency for fiat-to-crypto conversion.\").optional(),\n return_existing: z.number().int().describe(\"Return existing invoice instead of error if order_number already exists. Default is 0 (disabled).\").optional(),\n source_currency: z.string().describe(\"Fiat currency code for conversion (e.g., 'USD', 'EUR'). Use with source_amount instead of amount for fiat-to-crypto conversion.\").optional(),\n fail_invoice_url: z.string().describe(\"'To the site' button link when invoice payment fails\").optional(),\n allowed_psys_cids: z.string().describe(\"Comma-separated list of allowed cryptocurrencies for payment. Customer can select one from this list.\").optional(),\n fail_callback_url: z.string().describe(\"Full URL for failed invoice callback. Add json=true to URL for JSON response format.\").optional(),\n redirect_to_invoice: z.boolean().describe(\"If true, redirects to Plisio's invoice page instead of returning JSON (not supported for white-label shops)\").optional(),\n success_invoice_url: z.string().describe(\"'To the site' button link when invoice is paid\").optional(),\n success_callback_url: z.string().describe(\"Full URL for successful invoice callback. Add json=true to URL for JSON response format.\").optional(),\n}).describe(\"Request model for creating a new cryptocurrency payment invoice.\");\nconst PlisioCreateInvoice_InvoiceDataSchema = z.object({\n amount: z.string().describe(\"Invoice amount in the selected cryptocurrency\").nullable().optional(),\n status: z.string().describe(\"Invoice status (new, pending, completed, etc.)\").nullable().optional(),\n txn_id: z.string().describe(\"Plisio's internal transaction ID\").nullable().optional(),\n qr_code: z.string().describe(\"Base64-encoded QR code image for payment\").nullable().optional(),\n currency: z.string().describe(\"Cryptocurrency code\").nullable().optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier\").nullable().optional(),\n expire_utc: z.number().int().describe(\"Expiration timestamp (UTC)\").nullable().optional(),\n invoice_sum: z.string().describe(\"Amount after commission (if shop pays fee) or before commission (if client pays fee)\").nullable().optional(),\n invoice_url: z.string().describe(\"URL to the invoice payment page\").nullable().optional(),\n source_rate: z.string().describe(\"Exchange rate at transaction time\").nullable().optional(),\n verify_hash: z.string().describe(\"HMAC-SHA1 signature for verification\").nullable().optional(),\n wallet_hash: z.string().describe(\"Invoice hash identifier\").nullable().optional(),\n pending_amount: z.string().describe(\"Remaining amount to be paid in the selected cryptocurrency\").nullable().optional(),\n source_currency: z.string().describe(\"Source fiat currency code\").nullable().optional(),\n invoice_total_sum: z.string().describe(\"Complete invoice amount in cryptocurrency\").nullable().optional(),\n invoice_commission: z.string().describe(\"Plisio's commission/fee amount\").nullable().optional(),\n expected_confirmations: z.string().describe(\"Required confirmations to complete transaction\").nullable().optional(),\n}).passthrough().describe(\"Invoice data returned by Plisio API.\\nContains core fields for regular accounts and additional fields for white-label accounts.\");\nexport const PlisioCreateInvoiceOutput = z.object({\n data: PlisioCreateInvoice_InvoiceDataSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).passthrough().describe(\"Response model for create invoice endpoint.\");\n\nexport const plisioCreateInvoice = action(\"PLISIO_CREATE_INVOICE\", {\n slug: \"plisio-create-invoice\",\n name: \"Create Plisio Invoice\",\n description: \"Tool to create a new cryptocurrency payment invoice with Plisio. Returns transaction ID and invoice URL for payment. For white-label accounts, includes additional fields like wallet hash, QR code, and commission details. Use when you need to generate a payment request for cryptocurrency transactions.\",\n input: PlisioCreateInvoiceInput,\n output: PlisioCreateInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CAClL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL;CACtN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC/J,cAAc,E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SAAS,CAAC,CAAC,SAAS;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -12,11 +12,11 @@ const PlisioEstimateFee_EstimateFeeDataSchema = zod.z.object({
|
|
|
12
12
|
plan: zod.z.string().describe("Fee plan used for estimation (normal or priority)").nullable(),
|
|
13
13
|
currency: zod.z.string().describe("Currency code").nullable(),
|
|
14
14
|
psys_cid: zod.z.string().describe("Cryptocurrency ID used for the estimation").nullable()
|
|
15
|
-
}).describe("Fee estimation data returned by the API.");
|
|
15
|
+
}).passthrough().describe("Fee estimation data returned by the API.");
|
|
16
16
|
const PlisioEstimateFeeOutput = zod.z.object({
|
|
17
17
|
data: PlisioEstimateFee_EstimateFeeDataSchema.nullable(),
|
|
18
18
|
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
19
|
-
}).describe("Response model for fee estimation.");
|
|
19
|
+
}).passthrough().describe("Response model for fee estimation.");
|
|
20
20
|
const plisioEstimateFee = require_action.action("PLISIO_ESTIMATE_FEE", {
|
|
21
21
|
slug: "plisio-estimate-fee",
|
|
22
22
|
name: "Estimate Fee",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimate-fee.cjs","names":["z","action"],"sources":["../../src/actions/estimate-fee.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioEstimateFeeInput = z.object({\n amounts: z.string().describe(\"Amount or comma-separated amounts corresponding to each address for mass withdrawal\"),\n fee_plan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan selection: 'normal' for balanced cost and speed, 'priority' for faster confirmation at higher cost\"),\n psys_cid: z.string().describe(\"Cryptocurrency ID from Plisio supported cryptocurrencies (e.g., 'BTC', 'ETH', 'USDT')\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses for mass withdrawal fee estimation\"),\n}).describe(\"Request model for estimating network fee for withdrawal transaction.\");\nconst PlisioEstimateFee_EstimateFeeDataSchema = z.object({\n fee: z.string().describe(\"Estimated network fee amount in the cryptocurrency\").nullable(),\n plan: z.string().describe(\"Fee plan used for estimation (normal or priority)\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n psys_cid: z.string().describe(\"Cryptocurrency ID used for the estimation\").nullable(),\n}).describe(\"Fee estimation data returned by the API.\");\nexport const PlisioEstimateFeeOutput = z.object({\n data: PlisioEstimateFee_EstimateFeeDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for fee estimation.\");\n\nexport const plisioEstimateFee = action(\"PLISIO_ESTIMATE_FEE\", {\n slug: \"plisio-estimate-fee\",\n name: \"Estimate Fee\",\n description: \"Tool to estimate network fee for a withdrawal transaction to specific address(es). Use when calculating transaction costs before creating a withdrawal.\",\n input: PlisioEstimateFeeInput,\n output: PlisioEstimateFeeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,UAAUA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,6GAA6G;CAC/J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;AACjH,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,0CAA0C;
|
|
1
|
+
{"version":3,"file":"estimate-fee.cjs","names":["z","action"],"sources":["../../src/actions/estimate-fee.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioEstimateFeeInput = z.object({\n amounts: z.string().describe(\"Amount or comma-separated amounts corresponding to each address for mass withdrawal\"),\n fee_plan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan selection: 'normal' for balanced cost and speed, 'priority' for faster confirmation at higher cost\"),\n psys_cid: z.string().describe(\"Cryptocurrency ID from Plisio supported cryptocurrencies (e.g., 'BTC', 'ETH', 'USDT')\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses for mass withdrawal fee estimation\"),\n}).describe(\"Request model for estimating network fee for withdrawal transaction.\");\nconst PlisioEstimateFee_EstimateFeeDataSchema = z.object({\n fee: z.string().describe(\"Estimated network fee amount in the cryptocurrency\").nullable(),\n plan: z.string().describe(\"Fee plan used for estimation (normal or priority)\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n psys_cid: z.string().describe(\"Cryptocurrency ID used for the estimation\").nullable(),\n}).passthrough().describe(\"Fee estimation data returned by the API.\");\nexport const PlisioEstimateFeeOutput = z.object({\n data: PlisioEstimateFee_EstimateFeeDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).passthrough().describe(\"Response model for fee estimation.\");\n\nexport const plisioEstimateFee = action(\"PLISIO_ESTIMATE_FEE\", {\n slug: \"plisio-estimate-fee\",\n name: \"Estimate Fee\",\n description: \"Tool to estimate network fee for a withdrawal transaction to specific address(es). Use when calculating transaction costs before creating a withdrawal.\",\n input: PlisioEstimateFeeInput,\n output: PlisioEstimateFeeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,UAAUA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,6GAA6G;CAC/J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;AACjH,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,wCAAwC,SAAS;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,9 +16,9 @@ declare const PlisioEstimateFeeOutput: z.ZodObject<{
|
|
|
16
16
|
plan: z.ZodNullable<z.ZodString>;
|
|
17
17
|
currency: z.ZodNullable<z.ZodString>;
|
|
18
18
|
psys_cid: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
status: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const plisioEstimateFee: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
amounts: string;
|
|
24
24
|
fee_plan: "normal" | "priority";
|
|
@@ -16,9 +16,9 @@ declare const PlisioEstimateFeeOutput: z.ZodObject<{
|
|
|
16
16
|
plan: z.ZodNullable<z.ZodString>;
|
|
17
17
|
currency: z.ZodNullable<z.ZodString>;
|
|
18
18
|
psys_cid: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
status: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const plisioEstimateFee: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
amounts: string;
|
|
24
24
|
fee_plan: "normal" | "priority";
|
|
@@ -12,7 +12,7 @@ const PlisioEstimateFee_EstimateFeeDataSchema = z.object({
|
|
|
12
12
|
plan: z.string().describe("Fee plan used for estimation (normal or priority)").nullable(),
|
|
13
13
|
currency: z.string().describe("Currency code").nullable(),
|
|
14
14
|
psys_cid: z.string().describe("Cryptocurrency ID used for the estimation").nullable()
|
|
15
|
-
}).describe("Fee estimation data returned by the API.");
|
|
15
|
+
}).passthrough().describe("Fee estimation data returned by the API.");
|
|
16
16
|
const plisioEstimateFee = action("PLISIO_ESTIMATE_FEE", {
|
|
17
17
|
slug: "plisio-estimate-fee",
|
|
18
18
|
name: "Estimate Fee",
|
|
@@ -21,7 +21,7 @@ const plisioEstimateFee = action("PLISIO_ESTIMATE_FEE", {
|
|
|
21
21
|
output: z.object({
|
|
22
22
|
data: PlisioEstimateFee_EstimateFeeDataSchema.nullable(),
|
|
23
23
|
status: z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
24
|
-
}).describe("Response model for fee estimation.")
|
|
24
|
+
}).passthrough().describe("Response model for fee estimation.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { plisioEstimateFee };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimate-fee.mjs","names":[],"sources":["../../src/actions/estimate-fee.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioEstimateFeeInput = z.object({\n amounts: z.string().describe(\"Amount or comma-separated amounts corresponding to each address for mass withdrawal\"),\n fee_plan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan selection: 'normal' for balanced cost and speed, 'priority' for faster confirmation at higher cost\"),\n psys_cid: z.string().describe(\"Cryptocurrency ID from Plisio supported cryptocurrencies (e.g., 'BTC', 'ETH', 'USDT')\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses for mass withdrawal fee estimation\"),\n}).describe(\"Request model for estimating network fee for withdrawal transaction.\");\nconst PlisioEstimateFee_EstimateFeeDataSchema = z.object({\n fee: z.string().describe(\"Estimated network fee amount in the cryptocurrency\").nullable(),\n plan: z.string().describe(\"Fee plan used for estimation (normal or priority)\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n psys_cid: z.string().describe(\"Cryptocurrency ID used for the estimation\").nullable(),\n}).describe(\"Fee estimation data returned by the API.\");\nexport const PlisioEstimateFeeOutput = z.object({\n data: PlisioEstimateFee_EstimateFeeDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for fee estimation.\");\n\nexport const plisioEstimateFee = action(\"PLISIO_ESTIMATE_FEE\", {\n slug: \"plisio-estimate-fee\",\n name: \"Estimate Fee\",\n description: \"Tool to estimate network fee for a withdrawal transaction to specific address(es). Use when calculating transaction costs before creating a withdrawal.\",\n input: PlisioEstimateFeeInput,\n output: PlisioEstimateFeeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,UAAU,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,6GAA6G;CAC/J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACrH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;AACjH,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,0CAA0C,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,0CAA0C;
|
|
1
|
+
{"version":3,"file":"estimate-fee.mjs","names":[],"sources":["../../src/actions/estimate-fee.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioEstimateFeeInput = z.object({\n amounts: z.string().describe(\"Amount or comma-separated amounts corresponding to each address for mass withdrawal\"),\n fee_plan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan selection: 'normal' for balanced cost and speed, 'priority' for faster confirmation at higher cost\"),\n psys_cid: z.string().describe(\"Cryptocurrency ID from Plisio supported cryptocurrencies (e.g., 'BTC', 'ETH', 'USDT')\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses for mass withdrawal fee estimation\"),\n}).describe(\"Request model for estimating network fee for withdrawal transaction.\");\nconst PlisioEstimateFee_EstimateFeeDataSchema = z.object({\n fee: z.string().describe(\"Estimated network fee amount in the cryptocurrency\").nullable(),\n plan: z.string().describe(\"Fee plan used for estimation (normal or priority)\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n psys_cid: z.string().describe(\"Cryptocurrency ID used for the estimation\").nullable(),\n}).passthrough().describe(\"Fee estimation data returned by the API.\");\nexport const PlisioEstimateFeeOutput = z.object({\n data: PlisioEstimateFee_EstimateFeeDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).passthrough().describe(\"Response model for fee estimation.\");\n\nexport const plisioEstimateFee = action(\"PLISIO_ESTIMATE_FEE\", {\n slug: \"plisio-estimate-fee\",\n name: \"Estimate Fee\",\n description: \"Tool to estimate network fee for a withdrawal transaction to specific address(es). Use when calculating transaction costs before creating a withdrawal.\",\n input: PlisioEstimateFeeInput,\n output: PlisioEstimateFeeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,UAAU,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,6GAA6G;CAC/J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACrH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;AACjH,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,0CAA0C,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAMpE,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,MAAM,wCAAwC,SAAS;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
|
|
@@ -6,12 +6,12 @@ const PlisioGetBalanceByCurrency_BalanceDataSchema = zod.z.object({
|
|
|
6
6
|
balance: zod.z.string().describe("Total balance amount as a string").nullable(),
|
|
7
7
|
currency: zod.z.string().describe("Currency code, e.g., 'BTC'").nullable(),
|
|
8
8
|
psys_cid: zod.z.string().describe("Currency code identifier").nullable()
|
|
9
|
-
}).describe("Represents balance details for a single currency.");
|
|
9
|
+
}).passthrough().describe("Represents balance details for a single currency.");
|
|
10
10
|
const PlisioGetBalanceByCurrencyOutput = zod.z.object({
|
|
11
11
|
data: PlisioGetBalanceByCurrency_BalanceDataSchema.nullable(),
|
|
12
12
|
error: zod.z.string().describe("Error message if the request failed").nullable().optional(),
|
|
13
13
|
status: zod.z.string().describe("Result status, e.g., 'success'").nullable()
|
|
14
|
-
}).describe("Response model for GET /balances/{psys_cid}.");
|
|
14
|
+
}).passthrough().describe("Response model for GET /balances/{psys_cid}.");
|
|
15
15
|
const plisioGetBalanceByCurrency = require_action.action("PLISIO_GET_BALANCE_BY_CURRENCY", {
|
|
16
16
|
slug: "plisio-get-balance-by-currency",
|
|
17
17
|
name: "Get Balance By Currency",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-balance-by-currency.cjs","names":["z","action"],"sources":["../../src/actions/get-balance-by-currency.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetBalanceByCurrencyInput = z.object({\n psys_cid: z.string().describe(\"ID column from one of the supported cryptocurrencies supported by Plisio (e.g., 'BTC', 'ETH', 'USDT')\"),\n}).describe(\"Request model for GetBalanceByCurrency.\");\nconst PlisioGetBalanceByCurrency_BalanceDataSchema = z.object({\n balance: z.string().describe(\"Total balance amount as a string\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'BTC'\").nullable(),\n psys_cid: z.string().describe(\"Currency code identifier\").nullable(),\n}).describe(\"Represents balance details for a single currency.\");\nexport const PlisioGetBalanceByCurrencyOutput = z.object({\n data: PlisioGetBalanceByCurrency_BalanceDataSchema.nullable(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n status: z.string().describe(\"Result status, e.g., 'success'\").nullable(),\n}).describe(\"Response model for GET /balances/{psys_cid}.\");\n\nexport const plisioGetBalanceByCurrency = action(\"PLISIO_GET_BALANCE_BY_CURRENCY\", {\n slug: \"plisio-get-balance-by-currency\",\n name: \"Get Balance By Currency\",\n description: \"Tool to get the balance for a specific cryptocurrency in your Plisio account. Use when you need to retrieve the balance of a particular crypto asset.\",\n input: PlisioGetBalanceByCurrencyInput,\n output: PlisioGetBalanceByCurrencyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACvI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"get-balance-by-currency.cjs","names":["z","action"],"sources":["../../src/actions/get-balance-by-currency.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetBalanceByCurrencyInput = z.object({\n psys_cid: z.string().describe(\"ID column from one of the supported cryptocurrencies supported by Plisio (e.g., 'BTC', 'ETH', 'USDT')\"),\n}).describe(\"Request model for GetBalanceByCurrency.\");\nconst PlisioGetBalanceByCurrency_BalanceDataSchema = z.object({\n balance: z.string().describe(\"Total balance amount as a string\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'BTC'\").nullable(),\n psys_cid: z.string().describe(\"Currency code identifier\").nullable(),\n}).passthrough().describe(\"Represents balance details for a single currency.\");\nexport const PlisioGetBalanceByCurrencyOutput = z.object({\n data: PlisioGetBalanceByCurrency_BalanceDataSchema.nullable(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n status: z.string().describe(\"Result status, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response model for GET /balances/{psys_cid}.\");\n\nexport const plisioGetBalanceByCurrency = action(\"PLISIO_GET_BALANCE_BY_CURRENCY\", {\n slug: \"plisio-get-balance-by-currency\",\n name: \"Get Balance By Currency\",\n description: \"Tool to get the balance for a specific cryptocurrency in your Plisio account. Use when you need to retrieve the balance of a particular crypto asset.\",\n input: PlisioGetBalanceByCurrencyInput,\n output: PlisioGetBalanceByCurrencyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACvI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAM,6CAA6C,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,10 +9,10 @@ declare const PlisioGetBalanceByCurrencyOutput: z.ZodObject<{
|
|
|
9
9
|
balance: z.ZodNullable<z.ZodString>;
|
|
10
10
|
currency: z.ZodNullable<z.ZodString>;
|
|
11
11
|
psys_cid: z.ZodNullable<z.ZodString>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
13
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
status: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const plisioGetBalanceByCurrency: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
psys_cid: string;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -9,10 +9,10 @@ declare const PlisioGetBalanceByCurrencyOutput: z.ZodObject<{
|
|
|
9
9
|
balance: z.ZodNullable<z.ZodString>;
|
|
10
10
|
currency: z.ZodNullable<z.ZodString>;
|
|
11
11
|
psys_cid: z.ZodNullable<z.ZodString>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
13
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
status: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const plisioGetBalanceByCurrency: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
psys_cid: string;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ const PlisioGetBalanceByCurrency_BalanceDataSchema = z.object({
|
|
|
6
6
|
balance: z.string().describe("Total balance amount as a string").nullable(),
|
|
7
7
|
currency: z.string().describe("Currency code, e.g., 'BTC'").nullable(),
|
|
8
8
|
psys_cid: z.string().describe("Currency code identifier").nullable()
|
|
9
|
-
}).describe("Represents balance details for a single currency.");
|
|
9
|
+
}).passthrough().describe("Represents balance details for a single currency.");
|
|
10
10
|
const plisioGetBalanceByCurrency = action("PLISIO_GET_BALANCE_BY_CURRENCY", {
|
|
11
11
|
slug: "plisio-get-balance-by-currency",
|
|
12
12
|
name: "Get Balance By Currency",
|
|
@@ -16,7 +16,7 @@ const plisioGetBalanceByCurrency = action("PLISIO_GET_BALANCE_BY_CURRENCY", {
|
|
|
16
16
|
data: PlisioGetBalanceByCurrency_BalanceDataSchema.nullable(),
|
|
17
17
|
error: z.string().describe("Error message if the request failed").nullable().optional(),
|
|
18
18
|
status: z.string().describe("Result status, e.g., 'success'").nullable()
|
|
19
|
-
}).describe("Response model for GET /balances/{psys_cid}.")
|
|
19
|
+
}).passthrough().describe("Response model for GET /balances/{psys_cid}.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { plisioGetBalanceByCurrency };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-balance-by-currency.mjs","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetBalanceByCurrencyInput = z.object({\n psys_cid: z.string().describe(\"ID column from one of the supported cryptocurrencies supported by Plisio (e.g., 'BTC', 'ETH', 'USDT')\"),\n}).describe(\"Request model for GetBalanceByCurrency.\");\nconst PlisioGetBalanceByCurrency_BalanceDataSchema = z.object({\n balance: z.string().describe(\"Total balance amount as a string\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'BTC'\").nullable(),\n psys_cid: z.string().describe(\"Currency code identifier\").nullable(),\n}).describe(\"Represents balance details for a single currency.\");\nexport const PlisioGetBalanceByCurrencyOutput = z.object({\n data: PlisioGetBalanceByCurrency_BalanceDataSchema.nullable(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n status: z.string().describe(\"Result status, e.g., 'success'\").nullable(),\n}).describe(\"Response model for GET /balances/{psys_cid}.\");\n\nexport const plisioGetBalanceByCurrency = action(\"PLISIO_GET_BALANCE_BY_CURRENCY\", {\n slug: \"plisio-get-balance-by-currency\",\n name: \"Get Balance By Currency\",\n description: \"Tool to get the balance for a specific cryptocurrency in your Plisio account. Use when you need to retrieve the balance of a particular crypto asset.\",\n input: PlisioGetBalanceByCurrencyInput,\n output: PlisioGetBalanceByCurrencyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACvI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"get-balance-by-currency.mjs","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetBalanceByCurrencyInput = z.object({\n psys_cid: z.string().describe(\"ID column from one of the supported cryptocurrencies supported by Plisio (e.g., 'BTC', 'ETH', 'USDT')\"),\n}).describe(\"Request model for GetBalanceByCurrency.\");\nconst PlisioGetBalanceByCurrency_BalanceDataSchema = z.object({\n balance: z.string().describe(\"Total balance amount as a string\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'BTC'\").nullable(),\n psys_cid: z.string().describe(\"Currency code identifier\").nullable(),\n}).passthrough().describe(\"Represents balance details for a single currency.\");\nexport const PlisioGetBalanceByCurrencyOutput = z.object({\n data: PlisioGetBalanceByCurrency_BalanceDataSchema.nullable(),\n error: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n status: z.string().describe(\"Result status, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response model for GET /balances/{psys_cid}.\");\n\nexport const plisioGetBalanceByCurrency = action(\"PLISIO_GET_BALANCE_BY_CURRENCY\", {\n slug: \"plisio-get-balance-by-currency\",\n name: \"Get Balance By Currency\",\n description: \"Tool to get the balance for a specific cryptocurrency in your Plisio account. Use when you need to retrieve the balance of a particular crypto asset.\",\n input: PlisioGetBalanceByCurrencyInput,\n output: PlisioGetBalanceByCurrencyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACvI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAO7E,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8C,EAAE,OAAO;EACvD,MAAM,6CAA6C,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -12,11 +12,11 @@ const PlisioGetCommission_FeePlanDetailsSchema = zod.z.object({
|
|
|
12
12
|
value: zod.z.string().describe("Estimated fee value for this plan").nullable().optional(),
|
|
13
13
|
gasLimit: zod.z.string().describe("Gas limit for Ethereum-style cryptocurrencies").nullable().optional(),
|
|
14
14
|
gasPrice: zod.z.string().describe("Gas price for Ethereum-style cryptocurrencies").nullable().optional()
|
|
15
|
-
}).describe("Details of a specific fee plan option.");
|
|
15
|
+
}).passthrough().describe("Details of a specific fee plan option.");
|
|
16
16
|
const PlisioGetCommission_CommissionPlansSchema = zod.z.object({
|
|
17
17
|
normal: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),
|
|
18
18
|
priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional()
|
|
19
|
-
}).describe("Available fee plan options with their respective costs.");
|
|
19
|
+
}).passthrough().describe("Available fee plan options with their respective costs.");
|
|
20
20
|
const PlisioGetCommission_CommissionDataSchema = zod.z.object({
|
|
21
21
|
fee: zod.z.string().describe("Cryptocurrency network fee as a decimal string").nullable(),
|
|
22
22
|
plan: zod.z.string().describe("Selected fee plan name (normal or priority)").nullable(),
|
|
@@ -24,11 +24,11 @@ const PlisioGetCommission_CommissionDataSchema = zod.z.object({
|
|
|
24
24
|
useWallet: zod.z.union([zod.z.string(), zod.z.boolean()]),
|
|
25
25
|
commission: zod.z.string().describe("Plisio commission amount as a decimal string").nullable(),
|
|
26
26
|
useWalletBalance: zod.z.string().nullable()
|
|
27
|
-
}).describe("Commission estimation data including fees and plan details.");
|
|
27
|
+
}).passthrough().describe("Commission estimation data including fees and plan details.");
|
|
28
28
|
const PlisioGetCommissionOutput = zod.z.object({
|
|
29
29
|
data: PlisioGetCommission_CommissionDataSchema.nullable(),
|
|
30
30
|
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
31
|
-
}).describe("Response model for commission estimation endpoint.");
|
|
31
|
+
}).passthrough().describe("Response model for commission estimation endpoint.");
|
|
32
32
|
const plisioGetCommission = require_action.action("PLISIO_GET_COMMISSION", {
|
|
33
33
|
slug: "plisio-get-commission",
|
|
34
34
|
name: "Get Commission",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commission.cjs","names":["z","action"],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCommissionInput = z.object({\n type: z.enum([\"cash_out\", \"mass_cash_out\"]).describe(\"Operation type: 'cash_out' for single withdrawal to one address, 'mass_cash_out' for batch withdrawal to multiple addresses.\"),\n amounts: z.string().describe(\"Amount or comma-separated amounts that will be sent. For mass withdrawal, amounts should correspond to addresses in the same order. Use decimal string format (e.g., '0.3', '1.5,2.0').\"),\n feePlan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan type for transaction processing.\").optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier (e.g., 'BTC', 'ETH', 'USDT'). Must be one of the supported cryptocurrencies by Plisio.\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses when estimating fee for mass withdrawal. For single withdrawal use one address, for mass withdrawal separate multiple addresses with commas.\"),\n}).describe(\"Request model for estimating cryptocurrency fee and Plisio commission.\");\nconst PlisioGetCommission_FeePlanDetailsSchema = z.object({\n value: z.string().describe(\"Estimated fee value for this plan\").nullable().optional(),\n gasLimit: z.string().describe(\"Gas limit for Ethereum-style cryptocurrencies\").nullable().optional(),\n gasPrice: z.string().describe(\"Gas price for Ethereum-style cryptocurrencies\").nullable().optional(),\n}).describe(\"Details of a specific fee plan option.\");\nconst PlisioGetCommission_CommissionPlansSchema = z.object({\n normal: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n}).describe(\"Available fee plan options with their respective costs.\");\nconst PlisioGetCommission_CommissionDataSchema = z.object({\n fee: z.string().describe(\"Cryptocurrency network fee as a decimal string\").nullable(),\n plan: z.string().describe(\"Selected fee plan name (normal or priority)\").nullable(),\n plans: PlisioGetCommission_CommissionPlansSchema.nullable(),\n useWallet: z.union([z.string(), z.boolean()]),\n commission: z.string().describe(\"Plisio commission amount as a decimal string\").nullable(),\n useWalletBalance: z.string().nullable(),\n}).describe(\"Commission estimation data including fees and plan details.\");\nexport const PlisioGetCommissionOutput = z.object({\n data: PlisioGetCommission_CommissionDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for commission estimation endpoint.\");\n\nexport const plisioGetCommission = action(\"PLISIO_GET_COMMISSION\", {\n slug: \"plisio-get-commission\",\n name: \"Get Commission\",\n description: \"Tool to estimate the total cost including network fee and Plisio commission for a transaction. Returns detailed breakdown of commission, fee, and fee plan options for the specified cryptocurrency and amounts.\",\n input: PlisioGetCommissionInput,\n output: PlisioGetCommissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,KAAK,CAAC,YAAY,eAAe,CAAC,CAAC,CAAC,SAAS,8HAA8H;CACnL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACtN,SAASA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAChJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"get-commission.cjs","names":["z","action"],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCommissionInput = z.object({\n type: z.enum([\"cash_out\", \"mass_cash_out\"]).describe(\"Operation type: 'cash_out' for single withdrawal to one address, 'mass_cash_out' for batch withdrawal to multiple addresses.\"),\n amounts: z.string().describe(\"Amount or comma-separated amounts that will be sent. For mass withdrawal, amounts should correspond to addresses in the same order. Use decimal string format (e.g., '0.3', '1.5,2.0').\"),\n feePlan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan type for transaction processing.\").optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier (e.g., 'BTC', 'ETH', 'USDT'). Must be one of the supported cryptocurrencies by Plisio.\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses when estimating fee for mass withdrawal. For single withdrawal use one address, for mass withdrawal separate multiple addresses with commas.\"),\n}).describe(\"Request model for estimating cryptocurrency fee and Plisio commission.\");\nconst PlisioGetCommission_FeePlanDetailsSchema = z.object({\n value: z.string().describe(\"Estimated fee value for this plan\").nullable().optional(),\n gasLimit: z.string().describe(\"Gas limit for Ethereum-style cryptocurrencies\").nullable().optional(),\n gasPrice: z.string().describe(\"Gas price for Ethereum-style cryptocurrencies\").nullable().optional(),\n}).passthrough().describe(\"Details of a specific fee plan option.\");\nconst PlisioGetCommission_CommissionPlansSchema = z.object({\n normal: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Available fee plan options with their respective costs.\");\nconst PlisioGetCommission_CommissionDataSchema = z.object({\n fee: z.string().describe(\"Cryptocurrency network fee as a decimal string\").nullable(),\n plan: z.string().describe(\"Selected fee plan name (normal or priority)\").nullable(),\n plans: PlisioGetCommission_CommissionPlansSchema.nullable(),\n useWallet: z.union([z.string(), z.boolean()]),\n commission: z.string().describe(\"Plisio commission amount as a decimal string\").nullable(),\n useWalletBalance: z.string().nullable(),\n}).passthrough().describe(\"Commission estimation data including fees and plan details.\");\nexport const PlisioGetCommissionOutput = z.object({\n data: PlisioGetCommission_CommissionDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).passthrough().describe(\"Response model for commission estimation endpoint.\");\n\nexport const plisioGetCommission = action(\"PLISIO_GET_COMMISSION\", {\n slug: \"plisio-get-commission\",\n name: \"Get Commission\",\n description: \"Tool to estimate the total cost including network fee and Plisio commission for a transaction. Returns detailed breakdown of commission, fee, and fee plan options for the specified cryptocurrency and amounts.\",\n input: PlisioGetCommissionInput,\n output: PlisioGetCommissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,KAAK,CAAC,YAAY,eAAe,CAAC,CAAC,CAAC,SAAS,8HAA8H;CACnL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACtN,SAASA,IAAAA,EAAE,KAAK,CAA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,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAM,yCAAyC,SAAS;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -23,19 +23,19 @@ declare const PlisioGetCommissionOutput: z.ZodObject<{
|
|
|
23
23
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
28
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
33
|
useWallet: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
|
|
34
34
|
commission: z.ZodNullable<z.ZodString>;
|
|
35
35
|
useWalletBalance: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
37
|
status: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>;
|
|
39
39
|
declare const plisioGetCommission: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
40
|
type: "cash_out" | "mass_cash_out";
|
|
41
41
|
amounts: string;
|
|
@@ -23,19 +23,19 @@ declare const PlisioGetCommissionOutput: z.ZodObject<{
|
|
|
23
23
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
28
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
33
|
useWallet: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
|
|
34
34
|
commission: z.ZodNullable<z.ZodString>;
|
|
35
35
|
useWalletBalance: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
37
|
status: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>;
|
|
39
39
|
declare const plisioGetCommission: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
40
|
type: "cash_out" | "mass_cash_out";
|
|
41
41
|
amounts: string;
|
|
@@ -12,11 +12,11 @@ const PlisioGetCommission_FeePlanDetailsSchema = z.object({
|
|
|
12
12
|
value: z.string().describe("Estimated fee value for this plan").nullable().optional(),
|
|
13
13
|
gasLimit: z.string().describe("Gas limit for Ethereum-style cryptocurrencies").nullable().optional(),
|
|
14
14
|
gasPrice: z.string().describe("Gas price for Ethereum-style cryptocurrencies").nullable().optional()
|
|
15
|
-
}).describe("Details of a specific fee plan option.");
|
|
15
|
+
}).passthrough().describe("Details of a specific fee plan option.");
|
|
16
16
|
const PlisioGetCommission_CommissionPlansSchema = z.object({
|
|
17
17
|
normal: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),
|
|
18
18
|
priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional()
|
|
19
|
-
}).describe("Available fee plan options with their respective costs.");
|
|
19
|
+
}).passthrough().describe("Available fee plan options with their respective costs.");
|
|
20
20
|
const PlisioGetCommission_CommissionDataSchema = z.object({
|
|
21
21
|
fee: z.string().describe("Cryptocurrency network fee as a decimal string").nullable(),
|
|
22
22
|
plan: z.string().describe("Selected fee plan name (normal or priority)").nullable(),
|
|
@@ -24,7 +24,7 @@ const PlisioGetCommission_CommissionDataSchema = z.object({
|
|
|
24
24
|
useWallet: z.union([z.string(), z.boolean()]),
|
|
25
25
|
commission: z.string().describe("Plisio commission amount as a decimal string").nullable(),
|
|
26
26
|
useWalletBalance: z.string().nullable()
|
|
27
|
-
}).describe("Commission estimation data including fees and plan details.");
|
|
27
|
+
}).passthrough().describe("Commission estimation data including fees and plan details.");
|
|
28
28
|
const plisioGetCommission = action("PLISIO_GET_COMMISSION", {
|
|
29
29
|
slug: "plisio-get-commission",
|
|
30
30
|
name: "Get Commission",
|
|
@@ -33,7 +33,7 @@ const plisioGetCommission = action("PLISIO_GET_COMMISSION", {
|
|
|
33
33
|
output: z.object({
|
|
34
34
|
data: PlisioGetCommission_CommissionDataSchema.nullable(),
|
|
35
35
|
status: z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
36
|
-
}).describe("Response model for commission estimation endpoint.")
|
|
36
|
+
}).passthrough().describe("Response model for commission estimation endpoint.")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
export { plisioGetCommission };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commission.mjs","names":[],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCommissionInput = z.object({\n type: z.enum([\"cash_out\", \"mass_cash_out\"]).describe(\"Operation type: 'cash_out' for single withdrawal to one address, 'mass_cash_out' for batch withdrawal to multiple addresses.\"),\n amounts: z.string().describe(\"Amount or comma-separated amounts that will be sent. For mass withdrawal, amounts should correspond to addresses in the same order. Use decimal string format (e.g., '0.3', '1.5,2.0').\"),\n feePlan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan type for transaction processing.\").optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier (e.g., 'BTC', 'ETH', 'USDT'). Must be one of the supported cryptocurrencies by Plisio.\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses when estimating fee for mass withdrawal. For single withdrawal use one address, for mass withdrawal separate multiple addresses with commas.\"),\n}).describe(\"Request model for estimating cryptocurrency fee and Plisio commission.\");\nconst PlisioGetCommission_FeePlanDetailsSchema = z.object({\n value: z.string().describe(\"Estimated fee value for this plan\").nullable().optional(),\n gasLimit: z.string().describe(\"Gas limit for Ethereum-style cryptocurrencies\").nullable().optional(),\n gasPrice: z.string().describe(\"Gas price for Ethereum-style cryptocurrencies\").nullable().optional(),\n}).describe(\"Details of a specific fee plan option.\");\nconst PlisioGetCommission_CommissionPlansSchema = z.object({\n normal: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n}).describe(\"Available fee plan options with their respective costs.\");\nconst PlisioGetCommission_CommissionDataSchema = z.object({\n fee: z.string().describe(\"Cryptocurrency network fee as a decimal string\").nullable(),\n plan: z.string().describe(\"Selected fee plan name (normal or priority)\").nullable(),\n plans: PlisioGetCommission_CommissionPlansSchema.nullable(),\n useWallet: z.union([z.string(), z.boolean()]),\n commission: z.string().describe(\"Plisio commission amount as a decimal string\").nullable(),\n useWalletBalance: z.string().nullable(),\n}).describe(\"Commission estimation data including fees and plan details.\");\nexport const PlisioGetCommissionOutput = z.object({\n data: PlisioGetCommission_CommissionDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for commission estimation endpoint.\");\n\nexport const plisioGetCommission = action(\"PLISIO_GET_COMMISSION\", {\n slug: \"plisio-get-commission\",\n name: \"Get Commission\",\n description: \"Tool to estimate the total cost including network fee and Plisio commission for a transaction. Returns detailed breakdown of commission, fee, and fee plan options for the specified cryptocurrency and amounts.\",\n input: PlisioGetCommissionInput,\n output: PlisioGetCommissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,KAAK,CAAC,YAAY,eAAe,CAAC,CAAC,CAAC,SAAS,8HAA8H;CACnL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACtN,SAAS,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAChJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"get-commission.mjs","names":[],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCommissionInput = z.object({\n type: z.enum([\"cash_out\", \"mass_cash_out\"]).describe(\"Operation type: 'cash_out' for single withdrawal to one address, 'mass_cash_out' for batch withdrawal to multiple addresses.\"),\n amounts: z.string().describe(\"Amount or comma-separated amounts that will be sent. For mass withdrawal, amounts should correspond to addresses in the same order. Use decimal string format (e.g., '0.3', '1.5,2.0').\"),\n feePlan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan type for transaction processing.\").optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier (e.g., 'BTC', 'ETH', 'USDT'). Must be one of the supported cryptocurrencies by Plisio.\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses when estimating fee for mass withdrawal. For single withdrawal use one address, for mass withdrawal separate multiple addresses with commas.\"),\n}).describe(\"Request model for estimating cryptocurrency fee and Plisio commission.\");\nconst PlisioGetCommission_FeePlanDetailsSchema = z.object({\n value: z.string().describe(\"Estimated fee value for this plan\").nullable().optional(),\n gasLimit: z.string().describe(\"Gas limit for Ethereum-style cryptocurrencies\").nullable().optional(),\n gasPrice: z.string().describe(\"Gas price for Ethereum-style cryptocurrencies\").nullable().optional(),\n}).passthrough().describe(\"Details of a specific fee plan option.\");\nconst PlisioGetCommission_CommissionPlansSchema = z.object({\n normal: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Available fee plan options with their respective costs.\");\nconst PlisioGetCommission_CommissionDataSchema = z.object({\n fee: z.string().describe(\"Cryptocurrency network fee as a decimal string\").nullable(),\n plan: z.string().describe(\"Selected fee plan name (normal or priority)\").nullable(),\n plans: PlisioGetCommission_CommissionPlansSchema.nullable(),\n useWallet: z.union([z.string(), z.boolean()]),\n commission: z.string().describe(\"Plisio commission amount as a decimal string\").nullable(),\n useWalletBalance: z.string().nullable(),\n}).passthrough().describe(\"Commission estimation data including fees and plan details.\");\nexport const PlisioGetCommissionOutput = z.object({\n data: PlisioGetCommission_CommissionDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).passthrough().describe(\"Response model for commission estimation endpoint.\");\n\nexport const plisioGetCommission = action(\"PLISIO_GET_COMMISSION\", {\n slug: \"plisio-get-commission\",\n name: \"Get Commission\",\n description: \"Tool to estimate the total cost including network fee and Plisio commission for a transaction. Returns detailed breakdown of commission, fee, and fee plan options for the specified cryptocurrency and amounts.\",\n input: PlisioGetCommissionInput,\n output: PlisioGetCommissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,KAAK,CAAC,YAAY,eAAe,CAAC,CAAC,CAAC,SAAS,8HAA8H;CACnL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACtN,SAAS,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAChJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,4CAA4C,EAAE,OAAO;CACzD,QAAQ,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,yCAAyC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAO,0CAA0C,SAAS;CAC1D,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;CAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAMvF,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,yCAAyC,SAAS;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -16,11 +16,11 @@ const PlisioGetCurrencyRate_CryptocurrencyDataSchema = zod.z.object({
|
|
|
16
16
|
min_sum_in: zod.z.string().describe("Minimum deposit amount").nullable().optional(),
|
|
17
17
|
maintenance: zod.z.boolean().describe("Maintenance status flag").nullable().optional(),
|
|
18
18
|
invoice_commission_percentage: zod.z.string().describe("Invoice commission percentage").nullable().optional()
|
|
19
|
-
}).describe("Represents detailed information for a single cryptocurrency with its exchange rate.");
|
|
19
|
+
}).passthrough().describe("Represents detailed information for a single cryptocurrency with its exchange rate.");
|
|
20
20
|
const PlisioGetCurrencyRateOutput = zod.z.object({
|
|
21
21
|
data: zod.z.array(PlisioGetCurrencyRate_CryptocurrencyDataSchema).describe("List of supported cryptocurrencies with their current rates and pricing information"),
|
|
22
22
|
status: zod.z.string().describe("Result status, e.g., 'success' or 'error'").nullable()
|
|
23
|
-
}).describe("Response model for GET /currencies/{fiat}.");
|
|
23
|
+
}).passthrough().describe("Response model for GET /currencies/{fiat}.");
|
|
24
24
|
const plisioGetCurrencyRate = require_action.action("PLISIO_GET_CURRENCY_RATE", {
|
|
25
25
|
slug: "plisio-get-currency-rate",
|
|
26
26
|
name: "Get Currency Rate",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-currency-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-currency-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCurrencyRateInput = z.object({\n fiat: z.string().describe(\"Fiat currency code for exchange rates (e.g., 'USD', 'EUR', 'GBP'). See https://plisio.net/documentation/appendices/supported-fiat-currencies for all 168 supported currencies.\"),\n}).describe(\"Request model for GetCurrencyRate. Requires fiat currency code parameter.\");\nconst PlisioGetCurrencyRate_CryptocurrencyDataSchema = z.object({\n cid: z.string().describe(\"Cryptocurrency ID, e.g., 'ETH'\").nullable().optional(),\n fiat: z.string().describe(\"Fiat currency name\").nullable().optional(),\n icon: z.string().describe(\"URL to currency icon\").nullable().optional(),\n name: z.string().describe(\"Currency name, e.g., 'Ethereum'\").nullable().optional(),\n hidden: z.number().int().describe(\"Indicates visibility in store settings\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n rate_usd: z.string().describe(\"Exchange rate in USD as a string\").nullable().optional(),\n fiat_rate: z.string().describe(\"Rate in the specified fiat currency\").nullable().optional(),\n precision: z.union([z.string(), z.number().int()]).nullable().optional(),\n price_usd: z.string().describe(\"Current price in USD as a string\").nullable().optional(),\n min_sum_in: z.string().describe(\"Minimum deposit amount\").nullable().optional(),\n maintenance: z.boolean().describe(\"Maintenance status flag\").nullable().optional(),\n invoice_commission_percentage: z.string().describe(\"Invoice commission percentage\").nullable().optional(),\n}).describe(\"Represents detailed information for a single cryptocurrency with its exchange rate.\");\nexport const PlisioGetCurrencyRateOutput = z.object({\n data: z.array(PlisioGetCurrencyRate_CryptocurrencyDataSchema).describe(\"List of supported cryptocurrencies with their current rates and pricing information\"),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).describe(\"Response model for GET /currencies/{fiat}.\");\n\nexport const plisioGetCurrencyRate = action(\"PLISIO_GET_CURRENCY_RATE\", {\n slug: \"plisio-get-currency-rate\",\n name: \"Get Currency Rate\",\n description: \"Tool to retrieve list of supported cryptocurrencies with current rates filtered by fiat currency. Use when you need exchange rate information for cryptocurrencies in a specific fiat currency.\",\n input: PlisioGetCurrencyRateInput,\n output: PlisioGetCurrencyRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,EAC5M,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,qFAAqF;
|
|
1
|
+
{"version":3,"file":"get-currency-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-currency-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCurrencyRateInput = z.object({\n fiat: z.string().describe(\"Fiat currency code for exchange rates (e.g., 'USD', 'EUR', 'GBP'). See https://plisio.net/documentation/appendices/supported-fiat-currencies for all 168 supported currencies.\"),\n}).describe(\"Request model for GetCurrencyRate. Requires fiat currency code parameter.\");\nconst PlisioGetCurrencyRate_CryptocurrencyDataSchema = z.object({\n cid: z.string().describe(\"Cryptocurrency ID, e.g., 'ETH'\").nullable().optional(),\n fiat: z.string().describe(\"Fiat currency name\").nullable().optional(),\n icon: z.string().describe(\"URL to currency icon\").nullable().optional(),\n name: z.string().describe(\"Currency name, e.g., 'Ethereum'\").nullable().optional(),\n hidden: z.number().int().describe(\"Indicates visibility in store settings\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n rate_usd: z.string().describe(\"Exchange rate in USD as a string\").nullable().optional(),\n fiat_rate: z.string().describe(\"Rate in the specified fiat currency\").nullable().optional(),\n precision: z.union([z.string(), z.number().int()]).nullable().optional(),\n price_usd: z.string().describe(\"Current price in USD as a string\").nullable().optional(),\n min_sum_in: z.string().describe(\"Minimum deposit amount\").nullable().optional(),\n maintenance: z.boolean().describe(\"Maintenance status flag\").nullable().optional(),\n invoice_commission_percentage: z.string().describe(\"Invoice commission percentage\").nullable().optional(),\n}).passthrough().describe(\"Represents detailed information for a single cryptocurrency with its exchange rate.\");\nexport const PlisioGetCurrencyRateOutput = z.object({\n data: z.array(PlisioGetCurrencyRate_CryptocurrencyDataSchema).describe(\"List of supported cryptocurrencies with their current rates and pricing information\"),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).passthrough().describe(\"Response model for GET /currencies/{fiat}.\");\n\nexport const plisioGetCurrencyRate = action(\"PLISIO_GET_CURRENCY_RATE\", {\n slug: \"plisio-get-currency-rate\",\n name: \"Get Currency Rate\",\n description: \"Tool to retrieve list of supported cryptocurrencies with current rates filtered by fiat currency. Use when you need exchange rate information for cryptocurrencies in a specific fiat currency.\",\n input: PlisioGetCurrencyRateInput,\n output: PlisioGetCurrencyRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,EAC5M,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC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AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAC/G,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qFAAqF;CAC5J,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,9 +19,9 @@ declare const PlisioGetCurrencyRateOutput: z.ZodObject<{
|
|
|
19
19
|
min_sum_in: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
maintenance: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
21
|
invoice_commission_percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
status: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const plisioGetCurrencyRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
fiat: string;
|
|
27
27
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -19,9 +19,9 @@ declare const PlisioGetCurrencyRateOutput: z.ZodObject<{
|
|
|
19
19
|
min_sum_in: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
maintenance: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
21
|
invoice_commission_percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
status: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const plisioGetCurrencyRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
fiat: string;
|
|
27
27
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|