@keystrokehq/plisio 0.1.0 → 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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +3 -3
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +67 -3
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +67 -3
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +3 -3
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/estimate-fee.cjs +7 -7
- package/dist/actions/estimate-fee.cjs.map +1 -1
- package/dist/actions/estimate-fee.d.cts +24 -3
- package/dist/actions/estimate-fee.d.cts.map +1 -1
- package/dist/actions/estimate-fee.d.mts +24 -3
- package/dist/actions/estimate-fee.d.mts.map +1 -1
- package/dist/actions/estimate-fee.mjs +7 -7
- package/dist/actions/estimate-fee.mjs.map +1 -1
- package/dist/actions/get-balance-by-currency.cjs +6 -6
- package/dist/actions/get-balance-by-currency.cjs.map +1 -1
- package/dist/actions/get-balance-by-currency.d.cts +15 -3
- package/dist/actions/get-balance-by-currency.d.cts.map +1 -1
- package/dist/actions/get-balance-by-currency.d.mts +15 -3
- package/dist/actions/get-balance-by-currency.d.mts.map +1 -1
- package/dist/actions/get-balance-by-currency.mjs +6 -6
- package/dist/actions/get-balance-by-currency.mjs.map +1 -1
- package/dist/actions/get-commission.cjs +8 -8
- package/dist/actions/get-commission.cjs.map +1 -1
- package/dist/actions/get-commission.d.cts +42 -3
- package/dist/actions/get-commission.d.cts.map +1 -1
- package/dist/actions/get-commission.d.mts +42 -3
- package/dist/actions/get-commission.d.mts.map +1 -1
- package/dist/actions/get-commission.mjs +8 -8
- package/dist/actions/get-commission.mjs.map +1 -1
- package/dist/actions/get-currency-rate.cjs +3 -3
- package/dist/actions/get-currency-rate.cjs.map +1 -1
- package/dist/actions/get-currency-rate.d.cts +24 -3
- package/dist/actions/get-currency-rate.d.cts.map +1 -1
- package/dist/actions/get-currency-rate.d.mts +24 -3
- package/dist/actions/get-currency-rate.d.mts.map +1 -1
- package/dist/actions/get-currency-rate.mjs +3 -3
- package/dist/actions/get-currency-rate.mjs.map +1 -1
- package/dist/actions/get-fee-plans.cjs +4 -4
- package/dist/actions/get-fee-plans.cjs.map +1 -1
- package/dist/actions/get-fee-plans.d.cts +23 -3
- package/dist/actions/get-fee-plans.d.cts.map +1 -1
- package/dist/actions/get-fee-plans.d.mts +23 -3
- package/dist/actions/get-fee-plans.d.mts.map +1 -1
- package/dist/actions/get-fee-plans.mjs +4 -4
- package/dist/actions/get-fee-plans.mjs.map +1 -1
- package/dist/actions/get-fee-plans2.cjs +4 -4
- package/dist/actions/get-fee-plans2.cjs.map +1 -1
- package/dist/actions/get-fee-plans2.d.cts +50 -3
- package/dist/actions/get-fee-plans2.d.cts.map +1 -1
- package/dist/actions/get-fee-plans2.d.mts +50 -3
- package/dist/actions/get-fee-plans2.d.mts.map +1 -1
- package/dist/actions/get-fee-plans2.mjs +4 -4
- package/dist/actions/get-fee-plans2.mjs.map +1 -1
- package/dist/actions/get-invoice-email.cjs +2 -2
- package/dist/actions/get-invoice-email.cjs.map +1 -1
- package/dist/actions/get-invoice-email.d.cts +58 -3
- package/dist/actions/get-invoice-email.d.cts.map +1 -1
- package/dist/actions/get-invoice-email.d.mts +58 -3
- package/dist/actions/get-invoice-email.d.mts.map +1 -1
- package/dist/actions/get-invoice-email.mjs +2 -2
- package/dist/actions/get-invoice-email.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +3 -3
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +104 -3
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +104 -3
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +3 -3
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-shop.cjs +2 -2
- package/dist/actions/get-shop.cjs.map +1 -1
- package/dist/actions/get-shop.d.cts +6 -3
- package/dist/actions/get-shop.d.cts.map +1 -1
- package/dist/actions/get-shop.d.mts +6 -3
- package/dist/actions/get-shop.d.mts.map +1 -1
- package/dist/actions/get-shop.mjs +2 -2
- package/dist/actions/get-shop.mjs.map +1 -1
- package/dist/actions/get-transactions.cjs +9 -9
- package/dist/actions/get-transactions.cjs.map +1 -1
- package/dist/actions/get-transactions.d.cts +69 -3
- package/dist/actions/get-transactions.d.cts.map +1 -1
- package/dist/actions/get-transactions.d.mts +69 -3
- package/dist/actions/get-transactions.d.mts.map +1 -1
- package/dist/actions/get-transactions.mjs +9 -9
- package/dist/actions/get-transactions.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +16 -16
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +20 -3
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +20 -3
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +16 -16
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
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: z.ZodType;\n },\n) {\n return plisio.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePlisioTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
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: z.ZodType;\n },\n) {\n return plisio.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePlisioTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,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"}
|
|
@@ -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
|
-
status: zod.z.string().describe("Result status, e.g., 'success' or 'error'")
|
|
49
|
-
}).describe("Response model for create invoice endpoint.");
|
|
48
|
+
status: zod.z.string().describe("Result status, e.g., 'success' or 'error'").nullable()
|
|
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
|
|
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,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL;CACtN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,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,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iIAAiI;AAC3J,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAM,sCAAsC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,73 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-invoice.d.ts
|
|
4
|
-
declare const PlisioCreateInvoiceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioCreateInvoiceInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
7
|
+
plugin: z.ZodOptional<z.ZodString>;
|
|
8
|
+
version: z.ZodOptional<z.ZodString>;
|
|
9
|
+
currency: z.ZodString;
|
|
10
|
+
language: z.ZodOptional<z.ZodString>;
|
|
11
|
+
expire_min: z.ZodOptional<z.ZodString>;
|
|
12
|
+
order_name: z.ZodString;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
callback_url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
order_number: z.ZodString;
|
|
16
|
+
source_amount: z.ZodOptional<z.ZodString>;
|
|
17
|
+
return_existing: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
source_currency: z.ZodOptional<z.ZodString>;
|
|
19
|
+
fail_invoice_url: z.ZodOptional<z.ZodString>;
|
|
20
|
+
allowed_psys_cids: z.ZodOptional<z.ZodString>;
|
|
21
|
+
fail_callback_url: z.ZodOptional<z.ZodString>;
|
|
22
|
+
redirect_to_invoice: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
success_invoice_url: z.ZodOptional<z.ZodString>;
|
|
24
|
+
success_callback_url: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const PlisioCreateInvoiceOutput: z.ZodObject<{
|
|
27
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
txn_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
qr_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
psys_cid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
expire_utc: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
invoice_sum: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
invoice_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
source_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
verify_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
wallet_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
pending_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
source_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
invoice_total_sum: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
invoice_commission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
expected_confirmations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
status: z.ZodNullable<z.ZodString>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
|
+
declare const plisioCreateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
71
|
//#endregion
|
|
8
72
|
export { plisioCreateInvoice };
|
|
9
73
|
//# sourceMappingURL=create-invoice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-invoice.d.cts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"create-invoice.d.cts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAyCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,73 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-invoice.d.ts
|
|
4
|
-
declare const PlisioCreateInvoiceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioCreateInvoiceInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
7
|
+
plugin: z.ZodOptional<z.ZodString>;
|
|
8
|
+
version: z.ZodOptional<z.ZodString>;
|
|
9
|
+
currency: z.ZodString;
|
|
10
|
+
language: z.ZodOptional<z.ZodString>;
|
|
11
|
+
expire_min: z.ZodOptional<z.ZodString>;
|
|
12
|
+
order_name: z.ZodString;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
callback_url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
order_number: z.ZodString;
|
|
16
|
+
source_amount: z.ZodOptional<z.ZodString>;
|
|
17
|
+
return_existing: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
source_currency: z.ZodOptional<z.ZodString>;
|
|
19
|
+
fail_invoice_url: z.ZodOptional<z.ZodString>;
|
|
20
|
+
allowed_psys_cids: z.ZodOptional<z.ZodString>;
|
|
21
|
+
fail_callback_url: z.ZodOptional<z.ZodString>;
|
|
22
|
+
redirect_to_invoice: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
success_invoice_url: z.ZodOptional<z.ZodString>;
|
|
24
|
+
success_callback_url: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const PlisioCreateInvoiceOutput: z.ZodObject<{
|
|
27
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
txn_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
qr_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
psys_cid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
expire_utc: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
invoice_sum: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
invoice_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
source_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
verify_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
wallet_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
pending_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
source_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
invoice_total_sum: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
invoice_commission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
expected_confirmations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
status: z.ZodNullable<z.ZodString>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
|
+
declare const plisioCreateInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
71
|
//#endregion
|
|
8
72
|
export { plisioCreateInvoice };
|
|
9
73
|
//# sourceMappingURL=create-invoice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-invoice.d.mts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"create-invoice.d.mts","names":[],"sources":["../../src/actions/create-invoice.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAyCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -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",
|
|
@@ -50,8 +50,8 @@ const plisioCreateInvoice = action("PLISIO_CREATE_INVOICE", {
|
|
|
50
50
|
output: z.object({
|
|
51
51
|
data: PlisioCreateInvoice_InvoiceDataSchema.nullable().optional(),
|
|
52
52
|
error: z.string().describe("Error message if the request failed").nullable().optional(),
|
|
53
|
-
status: z.string().describe("Result status, e.g., 'success' or 'error'")
|
|
54
|
-
}).describe("Response model for create invoice endpoint.")
|
|
53
|
+
status: z.string().describe("Result status, e.g., 'success' or 'error'").nullable()
|
|
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
|
|
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,Q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AC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,oBAAoB,EAAE,OAAO,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,YAAY,CAAC,CAAC,SAAS,iIAAiI;AAO3J,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuC,EAAE,OAAO;EAChD,MAAM,sCAAsC,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"}
|
|
@@ -8,15 +8,15 @@ const PlisioEstimateFeeInput = zod.z.object({
|
|
|
8
8
|
addresses: zod.z.string().describe("Wallet address or comma-separated addresses for mass withdrawal fee estimation")
|
|
9
9
|
}).describe("Request model for estimating network fee for withdrawal transaction.");
|
|
10
10
|
const PlisioEstimateFee_EstimateFeeDataSchema = zod.z.object({
|
|
11
|
-
fee: zod.z.string().describe("Estimated network fee amount in the cryptocurrency"),
|
|
12
|
-
plan: zod.z.string().describe("Fee plan used for estimation (normal or priority)"),
|
|
13
|
-
currency: zod.z.string().describe("Currency code"),
|
|
14
|
-
psys_cid: zod.z.string().describe("Cryptocurrency ID used for the estimation")
|
|
15
|
-
}).describe("Fee estimation data returned by the API.");
|
|
11
|
+
fee: zod.z.string().describe("Estimated network fee amount in the cryptocurrency").nullable(),
|
|
12
|
+
plan: zod.z.string().describe("Fee plan used for estimation (normal or priority)").nullable(),
|
|
13
|
+
currency: zod.z.string().describe("Currency code").nullable(),
|
|
14
|
+
psys_cid: zod.z.string().describe("Cryptocurrency ID used for the estimation").nullable()
|
|
15
|
+
}).passthrough().describe("Fee estimation data returned by the API.");
|
|
16
16
|
const PlisioEstimateFeeOutput = zod.z.object({
|
|
17
17
|
data: PlisioEstimateFee_EstimateFeeDataSchema.nullable(),
|
|
18
|
-
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'")
|
|
19
|
-
}).describe("Response model for fee estimation.");
|
|
18
|
+
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
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
|
|
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"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/estimate-fee.d.ts
|
|
4
|
-
declare const PlisioEstimateFeeInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioEstimateFeeInput: z.ZodObject<{
|
|
5
|
+
amounts: z.ZodString;
|
|
6
|
+
fee_plan: z.ZodEnum<{
|
|
7
|
+
normal: "normal";
|
|
8
|
+
priority: "priority";
|
|
9
|
+
}>;
|
|
10
|
+
psys_cid: z.ZodString;
|
|
11
|
+
addresses: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const PlisioEstimateFeeOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
fee: z.ZodNullable<z.ZodString>;
|
|
16
|
+
plan: z.ZodNullable<z.ZodString>;
|
|
17
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
18
|
+
psys_cid: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const plisioEstimateFee: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { plisioEstimateFee };
|
|
9
30
|
//# sourceMappingURL=estimate-fee.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimate-fee.d.cts","names":[],"sources":["../../src/actions/estimate-fee.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"estimate-fee.d.cts","names":[],"sources":["../../src/actions/estimate-fee.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/estimate-fee.d.ts
|
|
4
|
-
declare const PlisioEstimateFeeInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioEstimateFeeInput: z.ZodObject<{
|
|
5
|
+
amounts: z.ZodString;
|
|
6
|
+
fee_plan: z.ZodEnum<{
|
|
7
|
+
normal: "normal";
|
|
8
|
+
priority: "priority";
|
|
9
|
+
}>;
|
|
10
|
+
psys_cid: z.ZodString;
|
|
11
|
+
addresses: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const PlisioEstimateFeeOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
fee: z.ZodNullable<z.ZodString>;
|
|
16
|
+
plan: z.ZodNullable<z.ZodString>;
|
|
17
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
18
|
+
psys_cid: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const plisioEstimateFee: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { plisioEstimateFee };
|
|
9
30
|
//# sourceMappingURL=estimate-fee.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimate-fee.d.mts","names":[],"sources":["../../src/actions/estimate-fee.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"estimate-fee.d.mts","names":[],"sources":["../../src/actions/estimate-fee.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -8,11 +8,11 @@ const PlisioEstimateFeeInput = z.object({
|
|
|
8
8
|
addresses: z.string().describe("Wallet address or comma-separated addresses for mass withdrawal fee estimation")
|
|
9
9
|
}).describe("Request model for estimating network fee for withdrawal transaction.");
|
|
10
10
|
const PlisioEstimateFee_EstimateFeeDataSchema = z.object({
|
|
11
|
-
fee: z.string().describe("Estimated network fee amount in the cryptocurrency"),
|
|
12
|
-
plan: z.string().describe("Fee plan used for estimation (normal or priority)"),
|
|
13
|
-
currency: z.string().describe("Currency code"),
|
|
14
|
-
psys_cid: z.string().describe("Cryptocurrency ID used for the estimation")
|
|
15
|
-
}).describe("Fee estimation data returned by the API.");
|
|
11
|
+
fee: z.string().describe("Estimated network fee amount in the cryptocurrency").nullable(),
|
|
12
|
+
plan: z.string().describe("Fee plan used for estimation (normal or priority)").nullable(),
|
|
13
|
+
currency: z.string().describe("Currency code").nullable(),
|
|
14
|
+
psys_cid: z.string().describe("Cryptocurrency ID used for the estimation").nullable()
|
|
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",
|
|
@@ -20,8 +20,8 @@ const plisioEstimateFee = action("PLISIO_ESTIMATE_FEE", {
|
|
|
20
20
|
input: PlisioEstimateFeeInput,
|
|
21
21
|
output: z.object({
|
|
22
22
|
data: PlisioEstimateFee_EstimateFeeDataSchema.nullable(),
|
|
23
|
-
status: z.string().describe("Status of the API response, typically 'success' or 'error'")
|
|
24
|
-
}).describe("Response model for fee estimation.")
|
|
23
|
+
status: z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
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
|
|
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"}
|
|
@@ -3,15 +3,15 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-balance-by-currency.ts
|
|
4
4
|
const PlisioGetBalanceByCurrencyInput = zod.z.object({ psys_cid: zod.z.string().describe("ID column from one of the supported cryptocurrencies supported by Plisio (e.g., 'BTC', 'ETH', 'USDT')") }).describe("Request model for GetBalanceByCurrency.");
|
|
5
5
|
const PlisioGetBalanceByCurrency_BalanceDataSchema = zod.z.object({
|
|
6
|
-
balance: zod.z.string().describe("Total balance amount as a string"),
|
|
7
|
-
currency: zod.z.string().describe("Currency code, e.g., 'BTC'"),
|
|
8
|
-
psys_cid: zod.z.string().describe("Currency code identifier")
|
|
9
|
-
}).describe("Represents balance details for a single currency.");
|
|
6
|
+
balance: zod.z.string().describe("Total balance amount as a string").nullable(),
|
|
7
|
+
currency: zod.z.string().describe("Currency code, e.g., 'BTC'").nullable(),
|
|
8
|
+
psys_cid: zod.z.string().describe("Currency code identifier").nullable()
|
|
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
|
-
status: zod.z.string().describe("Result status, e.g., 'success'")
|
|
14
|
-
}).describe("Response model for GET /balances/{psys_cid}.");
|
|
13
|
+
status: zod.z.string().describe("Result status, e.g., 'success'").nullable()
|
|
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
|
|
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"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-balance-by-currency.d.ts
|
|
4
|
-
declare const PlisioGetBalanceByCurrencyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetBalanceByCurrencyInput: z.ZodObject<{
|
|
5
|
+
psys_cid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlisioGetBalanceByCurrencyOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
balance: z.ZodNullable<z.ZodString>;
|
|
10
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
11
|
+
psys_cid: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
status: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
declare const plisioGetBalanceByCurrency: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
psys_cid: string;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { plisioGetBalanceByCurrency };
|
|
9
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":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"get-balance-by-currency.d.cts","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-balance-by-currency.d.ts
|
|
4
|
-
declare const PlisioGetBalanceByCurrencyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetBalanceByCurrencyInput: z.ZodObject<{
|
|
5
|
+
psys_cid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlisioGetBalanceByCurrencyOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
balance: z.ZodNullable<z.ZodString>;
|
|
10
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
11
|
+
psys_cid: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
status: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
declare const plisioGetBalanceByCurrency: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
psys_cid: string;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { plisioGetBalanceByCurrency };
|
|
9
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":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"get-balance-by-currency.d.mts","names":[],"sources":["../../src/actions/get-balance-by-currency.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA"}
|