@keystrokehq/plisio 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +1 -0
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +3 -34
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +3 -34
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +1 -0
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/estimate-fee.cjs +1 -0
- package/dist/actions/estimate-fee.cjs.map +1 -1
- package/dist/actions/estimate-fee.d.cts +3 -18
- package/dist/actions/estimate-fee.d.cts.map +1 -1
- package/dist/actions/estimate-fee.d.mts +3 -18
- package/dist/actions/estimate-fee.d.mts.map +1 -1
- package/dist/actions/estimate-fee.mjs +1 -0
- package/dist/actions/estimate-fee.mjs.map +1 -1
- package/dist/actions/get-balance-by-currency.cjs +1 -0
- package/dist/actions/get-balance-by-currency.cjs.map +1 -1
- package/dist/actions/get-balance-by-currency.d.cts +3 -15
- package/dist/actions/get-balance-by-currency.d.cts.map +1 -1
- package/dist/actions/get-balance-by-currency.d.mts +3 -15
- package/dist/actions/get-balance-by-currency.d.mts.map +1 -1
- package/dist/actions/get-balance-by-currency.mjs +1 -0
- package/dist/actions/get-balance-by-currency.mjs.map +1 -1
- package/dist/actions/get-commission.cjs +1 -0
- package/dist/actions/get-commission.cjs.map +1 -1
- package/dist/actions/get-commission.d.cts +3 -19
- package/dist/actions/get-commission.d.cts.map +1 -1
- package/dist/actions/get-commission.d.mts +3 -19
- package/dist/actions/get-commission.d.mts.map +1 -1
- package/dist/actions/get-commission.mjs +1 -0
- package/dist/actions/get-commission.mjs.map +1 -1
- package/dist/actions/get-currency-rate.cjs +1 -0
- package/dist/actions/get-currency-rate.cjs.map +1 -1
- package/dist/actions/get-currency-rate.d.cts +3 -15
- package/dist/actions/get-currency-rate.d.cts.map +1 -1
- package/dist/actions/get-currency-rate.d.mts +3 -15
- package/dist/actions/get-currency-rate.d.mts.map +1 -1
- package/dist/actions/get-currency-rate.mjs +1 -0
- package/dist/actions/get-currency-rate.mjs.map +1 -1
- package/dist/actions/get-fee-plans.cjs +1 -0
- package/dist/actions/get-fee-plans.cjs.map +1 -1
- package/dist/actions/get-fee-plans.d.cts +3 -15
- package/dist/actions/get-fee-plans.d.cts.map +1 -1
- package/dist/actions/get-fee-plans.d.mts +3 -15
- package/dist/actions/get-fee-plans.d.mts.map +1 -1
- package/dist/actions/get-fee-plans.mjs +1 -0
- package/dist/actions/get-fee-plans.mjs.map +1 -1
- package/dist/actions/get-fee-plans2.cjs +1 -0
- package/dist/actions/get-fee-plans2.cjs.map +1 -1
- package/dist/actions/get-fee-plans2.d.cts +3 -15
- package/dist/actions/get-fee-plans2.d.cts.map +1 -1
- package/dist/actions/get-fee-plans2.d.mts +3 -15
- package/dist/actions/get-fee-plans2.d.mts.map +1 -1
- package/dist/actions/get-fee-plans2.mjs +1 -0
- package/dist/actions/get-fee-plans2.mjs.map +1 -1
- package/dist/actions/get-invoice-email.cjs +1 -0
- package/dist/actions/get-invoice-email.cjs.map +1 -1
- package/dist/actions/get-invoice-email.d.cts +3 -16
- package/dist/actions/get-invoice-email.d.cts.map +1 -1
- package/dist/actions/get-invoice-email.d.mts +3 -16
- package/dist/actions/get-invoice-email.d.mts.map +1 -1
- package/dist/actions/get-invoice-email.mjs +1 -0
- package/dist/actions/get-invoice-email.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +1 -0
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +3 -15
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +3 -15
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +1 -0
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-shop.cjs +1 -0
- package/dist/actions/get-shop.cjs.map +1 -1
- package/dist/actions/get-shop.d.cts +3 -13
- package/dist/actions/get-shop.d.cts.map +1 -1
- package/dist/actions/get-shop.d.mts +3 -13
- package/dist/actions/get-shop.d.mts.map +1 -1
- package/dist/actions/get-shop.mjs +1 -0
- package/dist/actions/get-shop.mjs.map +1 -1
- package/dist/actions/get-transactions.cjs +1 -0
- package/dist/actions/get-transactions.cjs.map +1 -1
- package/dist/actions/get-transactions.d.cts +3 -23
- package/dist/actions/get-transactions.d.cts.map +1 -1
- package/dist/actions/get-transactions.d.mts +3 -23
- package/dist/actions/get-transactions.d.mts.map +1 -1
- package/dist/actions/get-transactions.mjs +1 -0
- package/dist/actions/get-transactions.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +1 -0
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +3 -13
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +3 -13
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +1 -0
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["plisio","executePlisioTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { plisio } from \"./app\";\nimport { executePlisioTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["plisio","executePlisioTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { plisio } from \"./app\";\nimport { executePlisioTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof plisio.credential> {\n return plisio.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlisioTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { plisio } from \"./app\";\nimport { executePlisioTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { plisio } from \"./app\";\nimport { executePlisioTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof plisio.credential> {\n return plisio.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlisioTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-invoice.cjs","names":["z","action"],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plisio } from \"../app\";\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: AppAction<\n typeof PlisioCreateInvoiceInput,\n typeof PlisioCreateInvoiceOutput,\n typeof plisio.credential\n> = 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":"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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plisio } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-invoice.d.ts
|
|
@@ -46,40 +48,7 @@ declare const PlisioCreateInvoiceOutput: z.ZodObject<{
|
|
|
46
48
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
49
|
status: z.ZodNullable<z.ZodString>;
|
|
48
50
|
}, z.core.$loose>;
|
|
49
|
-
declare const plisioCreateInvoice:
|
|
50
|
-
currency: string;
|
|
51
|
-
order_name: string;
|
|
52
|
-
order_number: string;
|
|
53
|
-
email?: string | undefined;
|
|
54
|
-
amount?: string | undefined;
|
|
55
|
-
plugin?: string | undefined;
|
|
56
|
-
version?: string | undefined;
|
|
57
|
-
language?: string | undefined;
|
|
58
|
-
expire_min?: string | undefined;
|
|
59
|
-
description?: string | undefined;
|
|
60
|
-
callback_url?: string | undefined;
|
|
61
|
-
source_amount?: string | undefined;
|
|
62
|
-
return_existing?: number | undefined;
|
|
63
|
-
source_currency?: string | undefined;
|
|
64
|
-
fail_invoice_url?: string | undefined;
|
|
65
|
-
allowed_psys_cids?: string | undefined;
|
|
66
|
-
fail_callback_url?: string | undefined;
|
|
67
|
-
redirect_to_invoice?: boolean | undefined;
|
|
68
|
-
success_invoice_url?: string | undefined;
|
|
69
|
-
success_callback_url?: string | undefined;
|
|
70
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
71
|
-
connectionId: z.ZodString;
|
|
72
|
-
entityId: z.ZodString;
|
|
73
|
-
instanceId: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
generic_api_key: z.ZodString;
|
|
76
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
77
|
-
connectionId: z.ZodString;
|
|
78
|
-
entityId: z.ZodString;
|
|
79
|
-
instanceId: z.ZodString;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
generic_api_key: z.ZodString;
|
|
82
|
-
}, z.core.$strip>>]>;
|
|
51
|
+
declare const plisioCreateInvoice: AppAction<typeof PlisioCreateInvoiceInput, typeof PlisioCreateInvoiceOutput, typeof plisio.credential>;
|
|
83
52
|
//#endregion
|
|
84
53
|
export { plisioCreateInvoice };
|
|
85
54
|
//# sourceMappingURL=create-invoice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-invoice.d.cts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-invoice.d.cts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAyCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plisio } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-invoice.d.ts
|
|
@@ -46,40 +48,7 @@ declare const PlisioCreateInvoiceOutput: z.ZodObject<{
|
|
|
46
48
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
49
|
status: z.ZodNullable<z.ZodString>;
|
|
48
50
|
}, z.core.$loose>;
|
|
49
|
-
declare const plisioCreateInvoice:
|
|
50
|
-
currency: string;
|
|
51
|
-
order_name: string;
|
|
52
|
-
order_number: string;
|
|
53
|
-
email?: string | undefined;
|
|
54
|
-
amount?: string | undefined;
|
|
55
|
-
plugin?: string | undefined;
|
|
56
|
-
version?: string | undefined;
|
|
57
|
-
language?: string | undefined;
|
|
58
|
-
expire_min?: string | undefined;
|
|
59
|
-
description?: string | undefined;
|
|
60
|
-
callback_url?: string | undefined;
|
|
61
|
-
source_amount?: string | undefined;
|
|
62
|
-
return_existing?: number | undefined;
|
|
63
|
-
source_currency?: string | undefined;
|
|
64
|
-
fail_invoice_url?: string | undefined;
|
|
65
|
-
allowed_psys_cids?: string | undefined;
|
|
66
|
-
fail_callback_url?: string | undefined;
|
|
67
|
-
redirect_to_invoice?: boolean | undefined;
|
|
68
|
-
success_invoice_url?: string | undefined;
|
|
69
|
-
success_callback_url?: string | undefined;
|
|
70
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
71
|
-
connectionId: z.ZodString;
|
|
72
|
-
entityId: z.ZodString;
|
|
73
|
-
instanceId: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
generic_api_key: z.ZodString;
|
|
76
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
77
|
-
connectionId: z.ZodString;
|
|
78
|
-
entityId: z.ZodString;
|
|
79
|
-
instanceId: z.ZodString;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
generic_api_key: z.ZodString;
|
|
82
|
-
}, z.core.$strip>>]>;
|
|
51
|
+
declare const plisioCreateInvoice: AppAction<typeof PlisioCreateInvoiceInput, typeof PlisioCreateInvoiceOutput, typeof plisio.credential>;
|
|
83
52
|
//#endregion
|
|
84
53
|
export { plisioCreateInvoice };
|
|
85
54
|
//# sourceMappingURL=create-invoice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-invoice.d.mts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-invoice.d.mts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAyCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-invoice.mjs","names":[],"sources":["../../src/actions/create-invoice.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plisio } from \"../app\";\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: AppAction<\n typeof PlisioCreateInvoiceInput,\n typeof PlisioCreateInvoiceOutput,\n typeof plisio.credential\n> = 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":"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"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"estimate-fee.cjs","names":["z","action"],"sources":["../../src/actions/estimate-fee.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plisio } from \"../app\";\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: AppAction<\n typeof PlisioEstimateFeeInput,\n typeof PlisioEstimateFeeOutput,\n typeof plisio.credential\n> = 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":";;;;AAMA,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,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plisio } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/estimate-fee.d.ts
|
|
@@ -19,24 +21,7 @@ declare const PlisioEstimateFeeOutput: z.ZodObject<{
|
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
status: z.ZodNullable<z.ZodString>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const plisioEstimateFee:
|
|
23
|
-
amounts: string;
|
|
24
|
-
fee_plan: "normal" | "priority";
|
|
25
|
-
psys_cid: string;
|
|
26
|
-
addresses: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const plisioEstimateFee: AppAction<typeof PlisioEstimateFeeInput, typeof PlisioEstimateFeeOutput, typeof plisio.credential>;
|
|
40
25
|
//#endregion
|
|
41
26
|
export { plisioEstimateFee };
|
|
42
27
|
//# sourceMappingURL=estimate-fee.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimate-fee.d.cts","names":[],"sources":["../../src/actions/estimate-fee.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"estimate-fee.d.cts","names":[],"sources":["../../src/actions/estimate-fee.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plisio } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/estimate-fee.d.ts
|
|
@@ -19,24 +21,7 @@ declare const PlisioEstimateFeeOutput: z.ZodObject<{
|
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
status: z.ZodNullable<z.ZodString>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const plisioEstimateFee:
|
|
23
|
-
amounts: string;
|
|
24
|
-
fee_plan: "normal" | "priority";
|
|
25
|
-
psys_cid: string;
|
|
26
|
-
addresses: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const plisioEstimateFee: AppAction<typeof PlisioEstimateFeeInput, typeof PlisioEstimateFeeOutput, typeof plisio.credential>;
|
|
40
25
|
//#endregion
|
|
41
26
|
export { plisioEstimateFee };
|
|
42
27
|
//# sourceMappingURL=estimate-fee.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimate-fee.d.mts","names":[],"sources":["../../src/actions/estimate-fee.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"estimate-fee.d.mts","names":[],"sources":["../../src/actions/estimate-fee.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"estimate-fee.mjs","names":[],"sources":["../../src/actions/estimate-fee.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plisio } from \"../app\";\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: AppAction<\n typeof PlisioEstimateFeeInput,\n typeof PlisioEstimateFeeOutput,\n typeof plisio.credential\n> = 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":";;;;AAMA,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,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,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,oCAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-balance-by-currency.cjs","names":["z","action"],"sources":["../../src/actions/get-balance-by-currency.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plisio } from \"../app\";\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: AppAction<\n typeof PlisioGetBalanceByCurrencyInput,\n typeof PlisioGetBalanceByCurrencyOutput,\n typeof plisio.credential\n> = 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":";;;;AAMA,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,6BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plisio } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-balance-by-currency.d.ts
|
|
@@ -13,21 +15,7 @@ declare const PlisioGetBalanceByCurrencyOutput: z.ZodObject<{
|
|
|
13
15
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
status: z.ZodNullable<z.ZodString>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const plisioGetBalanceByCurrency:
|
|
17
|
-
psys_cid: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const plisioGetBalanceByCurrency: AppAction<typeof PlisioGetBalanceByCurrencyInput, typeof PlisioGetBalanceByCurrencyOutput, typeof plisio.credential>;
|
|
31
19
|
//#endregion
|
|
32
20
|
export { plisioGetBalanceByCurrency };
|
|
33
21
|
//# sourceMappingURL=get-balance-by-currency.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-balance-by-currency.d.cts","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-balance-by-currency.d.cts","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;cAMhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plisio } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-balance-by-currency.d.ts
|
|
@@ -13,21 +15,7 @@ declare const PlisioGetBalanceByCurrencyOutput: z.ZodObject<{
|
|
|
13
15
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
status: z.ZodNullable<z.ZodString>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const plisioGetBalanceByCurrency:
|
|
17
|
-
psys_cid: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const plisioGetBalanceByCurrency: AppAction<typeof PlisioGetBalanceByCurrencyInput, typeof PlisioGetBalanceByCurrencyOutput, typeof plisio.credential>;
|
|
31
19
|
//#endregion
|
|
32
20
|
export { plisioGetBalanceByCurrency };
|
|
33
21
|
//# sourceMappingURL=get-balance-by-currency.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-balance-by-currency.d.mts","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-balance-by-currency.d.mts","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;cAMhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-balance-by-currency.mjs","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plisio } from \"../app\";\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: AppAction<\n typeof PlisioGetBalanceByCurrencyInput,\n typeof PlisioGetBalanceByCurrencyOutput,\n typeof plisio.credential\n> = 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":";;;;AAMA,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,6BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf8C,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,8CAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-commission.cjs","names":["z","action"],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plisio } from \"../app\";\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: AppAction<\n typeof PlisioGetCommissionInput,\n typeof PlisioGetCommissionOutput,\n typeof plisio.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,4CAA4CA,IAAAA,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,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAO,0CAA0C,SAAS;CAC1D,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC;CAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,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,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plisio } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-commission.d.ts
|
|
@@ -36,25 +38,7 @@ declare const PlisioGetCommissionOutput: z.ZodObject<{
|
|
|
36
38
|
}, z.core.$loose>>;
|
|
37
39
|
status: z.ZodNullable<z.ZodString>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const plisioGetCommission:
|
|
40
|
-
type: "cash_out" | "mass_cash_out";
|
|
41
|
-
amounts: string;
|
|
42
|
-
psys_cid: string;
|
|
43
|
-
addresses: string;
|
|
44
|
-
feePlan?: "normal" | "priority" | undefined;
|
|
45
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
46
|
-
connectionId: z.ZodString;
|
|
47
|
-
entityId: z.ZodString;
|
|
48
|
-
instanceId: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
52
|
-
connectionId: z.ZodString;
|
|
53
|
-
entityId: z.ZodString;
|
|
54
|
-
instanceId: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
generic_api_key: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>]>;
|
|
41
|
+
declare const plisioGetCommission: AppAction<typeof PlisioGetCommissionInput, typeof PlisioGetCommissionOutput, typeof plisio.credential>;
|
|
58
42
|
//#endregion
|
|
59
43
|
export { plisioGetCommission };
|
|
60
44
|
//# sourceMappingURL=get-commission.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commission.d.cts","names":[],"sources":["../../src/actions/get-commission.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-commission.d.cts","names":[],"sources":["../../src/actions/get-commission.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAwBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plisio } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-commission.d.ts
|
|
@@ -36,25 +38,7 @@ declare const PlisioGetCommissionOutput: z.ZodObject<{
|
|
|
36
38
|
}, z.core.$loose>>;
|
|
37
39
|
status: z.ZodNullable<z.ZodString>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const plisioGetCommission:
|
|
40
|
-
type: "cash_out" | "mass_cash_out";
|
|
41
|
-
amounts: string;
|
|
42
|
-
psys_cid: string;
|
|
43
|
-
addresses: string;
|
|
44
|
-
feePlan?: "normal" | "priority" | undefined;
|
|
45
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
46
|
-
connectionId: z.ZodString;
|
|
47
|
-
entityId: z.ZodString;
|
|
48
|
-
instanceId: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plisio", z.ZodObject<{
|
|
52
|
-
connectionId: z.ZodString;
|
|
53
|
-
entityId: z.ZodString;
|
|
54
|
-
instanceId: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
generic_api_key: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>]>;
|
|
41
|
+
declare const plisioGetCommission: AppAction<typeof PlisioGetCommissionInput, typeof PlisioGetCommissionOutput, typeof plisio.credential>;
|
|
58
42
|
//#endregion
|
|
59
43
|
export { plisioGetCommission };
|
|
60
44
|
//# sourceMappingURL=get-commission.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commission.d.mts","names":[],"sources":["../../src/actions/get-commission.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-commission.d.mts","names":[],"sources":["../../src/actions/get-commission.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAwBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|