@keystrokehq/plisio 0.1.0 → 0.1.2
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 -1
- 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 +1 -1
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/estimate-fee.cjs +5 -5
- 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 +5 -5
- package/dist/actions/estimate-fee.mjs.map +1 -1
- package/dist/actions/get-balance-by-currency.cjs +4 -4
- 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 +4 -4
- package/dist/actions/get-balance-by-currency.mjs.map +1 -1
- package/dist/actions/get-commission.cjs +4 -4
- package/dist/actions/get-commission.cjs.map +1 -1
- package/dist/actions/get-commission.d.cts +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 +4 -4
- package/dist/actions/get-commission.mjs.map +1 -1
- package/dist/actions/get-currency-rate.cjs +1 -1
- 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 +1 -1
- package/dist/actions/get-currency-rate.mjs.map +1 -1
- package/dist/actions/get-fee-plans.cjs +1 -1
- 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 +1 -1
- package/dist/actions/get-fee-plans.mjs.map +1 -1
- package/dist/actions/get-fee-plans2.cjs +1 -1
- 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 +1 -1
- package/dist/actions/get-fee-plans2.mjs.map +1 -1
- package/dist/actions/get-invoice-email.cjs +1 -1
- package/dist/actions/get-invoice-email.cjs.map +1 -1
- package/dist/actions/get-invoice-email.d.cts +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 +1 -1
- package/dist/actions/get-invoice-email.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +1 -1
- 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 +1 -1
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-shop.cjs +1 -1
- package/dist/actions/get-shop.cjs.map +1 -1
- package/dist/actions/get-shop.d.cts +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 +1 -1
- package/dist/actions/get-shop.mjs.map +1 -1
- package/dist/actions/get-transactions.cjs +6 -6
- 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 +6 -6
- package/dist/actions/get-transactions.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +14 -14
- 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 +14 -14
- 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
|
@@ -18,16 +18,16 @@ const PlisioGetCommission_CommissionPlansSchema = zod.z.object({
|
|
|
18
18
|
priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional()
|
|
19
19
|
}).describe("Available fee plan options with their respective costs.");
|
|
20
20
|
const PlisioGetCommission_CommissionDataSchema = zod.z.object({
|
|
21
|
-
fee: zod.z.string().describe("Cryptocurrency network fee as a decimal string"),
|
|
22
|
-
plan: zod.z.string().describe("Selected fee plan name (normal or priority)"),
|
|
21
|
+
fee: zod.z.string().describe("Cryptocurrency network fee as a decimal string").nullable(),
|
|
22
|
+
plan: zod.z.string().describe("Selected fee plan name (normal or priority)").nullable(),
|
|
23
23
|
plans: PlisioGetCommission_CommissionPlansSchema.nullable(),
|
|
24
24
|
useWallet: zod.z.union([zod.z.string(), zod.z.boolean()]),
|
|
25
|
-
commission: zod.z.string().describe("Plisio commission amount as a decimal string"),
|
|
25
|
+
commission: zod.z.string().describe("Plisio commission amount as a decimal string").nullable(),
|
|
26
26
|
useWalletBalance: zod.z.string().nullable()
|
|
27
27
|
}).describe("Commission estimation data including fees and plan details.");
|
|
28
28
|
const PlisioGetCommissionOutput = zod.z.object({
|
|
29
29
|
data: PlisioGetCommission_CommissionDataSchema.nullable(),
|
|
30
|
-
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'")
|
|
30
|
+
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
31
31
|
}).describe("Response model for commission estimation endpoint.");
|
|
32
32
|
const plisioGetCommission = require_action.action("PLISIO_GET_COMMISSION", {
|
|
33
33
|
slug: "plisio-get-commission",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commission.cjs","names":["z","action"],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCommissionInput
|
|
1
|
+
{"version":3,"file":"get-commission.cjs","names":["z","action"],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCommissionInput = z.object({\n type: z.enum([\"cash_out\", \"mass_cash_out\"]).describe(\"Operation type: 'cash_out' for single withdrawal to one address, 'mass_cash_out' for batch withdrawal to multiple addresses.\"),\n amounts: z.string().describe(\"Amount or comma-separated amounts that will be sent. For mass withdrawal, amounts should correspond to addresses in the same order. Use decimal string format (e.g., '0.3', '1.5,2.0').\"),\n feePlan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan type for transaction processing.\").optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier (e.g., 'BTC', 'ETH', 'USDT'). Must be one of the supported cryptocurrencies by Plisio.\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses when estimating fee for mass withdrawal. For single withdrawal use one address, for mass withdrawal separate multiple addresses with commas.\"),\n}).describe(\"Request model for estimating cryptocurrency fee and Plisio commission.\");\nconst PlisioGetCommission_FeePlanDetailsSchema = z.object({\n value: z.string().describe(\"Estimated fee value for this plan\").nullable().optional(),\n gasLimit: z.string().describe(\"Gas limit for Ethereum-style cryptocurrencies\").nullable().optional(),\n gasPrice: z.string().describe(\"Gas price for Ethereum-style cryptocurrencies\").nullable().optional(),\n}).describe(\"Details of a specific fee plan option.\");\nconst PlisioGetCommission_CommissionPlansSchema = z.object({\n normal: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n}).describe(\"Available fee plan options with their respective costs.\");\nconst PlisioGetCommission_CommissionDataSchema = z.object({\n fee: z.string().describe(\"Cryptocurrency network fee as a decimal string\").nullable(),\n plan: z.string().describe(\"Selected fee plan name (normal or priority)\").nullable(),\n plans: PlisioGetCommission_CommissionPlansSchema.nullable(),\n useWallet: z.union([z.string(), z.boolean()]),\n commission: z.string().describe(\"Plisio commission amount as a decimal string\").nullable(),\n useWalletBalance: z.string().nullable(),\n}).describe(\"Commission estimation data including fees and plan details.\");\nexport const PlisioGetCommissionOutput = z.object({\n data: PlisioGetCommission_CommissionDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for commission estimation endpoint.\");\n\nexport const plisioGetCommission = action(\"PLISIO_GET_COMMISSION\", {\n slug: \"plisio-get-commission\",\n name: \"Get Commission\",\n description: \"Tool to estimate the total cost including network fee and Plisio commission for a transaction. Returns detailed breakdown of commission, fee, and fee plan options for the specified cryptocurrency and amounts.\",\n input: PlisioGetCommissionInput,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AAS;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,SAAS,6DAA6D;AACzE,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,SAAS,oDAAoD;AAEhE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-commission.d.ts
|
|
4
|
-
declare const PlisioGetCommissionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetCommissionInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
cash_out: "cash_out";
|
|
7
|
+
mass_cash_out: "mass_cash_out";
|
|
8
|
+
}>;
|
|
9
|
+
amounts: z.ZodString;
|
|
10
|
+
feePlan: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
normal: "normal";
|
|
12
|
+
priority: "priority";
|
|
13
|
+
}>>;
|
|
14
|
+
psys_cid: z.ZodString;
|
|
15
|
+
addresses: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const PlisioGetCommissionOutput: z.ZodObject<{
|
|
18
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
fee: z.ZodNullable<z.ZodString>;
|
|
20
|
+
plan: z.ZodNullable<z.ZodString>;
|
|
21
|
+
plans: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
normal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
useWallet: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
|
|
34
|
+
commission: z.ZodNullable<z.ZodString>;
|
|
35
|
+
useWalletBalance: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
status: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const plisioGetCommission: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { plisioGetCommission };
|
|
9
48
|
//# sourceMappingURL=get-commission.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commission.d.cts","names":[],"sources":["../../src/actions/get-commission.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-commission.d.cts","names":[],"sources":["../../src/actions/get-commission.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAwBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-commission.d.ts
|
|
4
|
-
declare const PlisioGetCommissionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetCommissionInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
cash_out: "cash_out";
|
|
7
|
+
mass_cash_out: "mass_cash_out";
|
|
8
|
+
}>;
|
|
9
|
+
amounts: z.ZodString;
|
|
10
|
+
feePlan: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
normal: "normal";
|
|
12
|
+
priority: "priority";
|
|
13
|
+
}>>;
|
|
14
|
+
psys_cid: z.ZodString;
|
|
15
|
+
addresses: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const PlisioGetCommissionOutput: z.ZodObject<{
|
|
18
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
fee: z.ZodNullable<z.ZodString>;
|
|
20
|
+
plan: z.ZodNullable<z.ZodString>;
|
|
21
|
+
plans: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
normal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
useWallet: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
|
|
34
|
+
commission: z.ZodNullable<z.ZodString>;
|
|
35
|
+
useWalletBalance: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
status: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const plisioGetCommission: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { plisioGetCommission };
|
|
9
48
|
//# sourceMappingURL=get-commission.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commission.d.mts","names":[],"sources":["../../src/actions/get-commission.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-commission.d.mts","names":[],"sources":["../../src/actions/get-commission.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAwBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -18,11 +18,11 @@ const PlisioGetCommission_CommissionPlansSchema = z.object({
|
|
|
18
18
|
priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional()
|
|
19
19
|
}).describe("Available fee plan options with their respective costs.");
|
|
20
20
|
const PlisioGetCommission_CommissionDataSchema = z.object({
|
|
21
|
-
fee: z.string().describe("Cryptocurrency network fee as a decimal string"),
|
|
22
|
-
plan: z.string().describe("Selected fee plan name (normal or priority)"),
|
|
21
|
+
fee: z.string().describe("Cryptocurrency network fee as a decimal string").nullable(),
|
|
22
|
+
plan: z.string().describe("Selected fee plan name (normal or priority)").nullable(),
|
|
23
23
|
plans: PlisioGetCommission_CommissionPlansSchema.nullable(),
|
|
24
24
|
useWallet: z.union([z.string(), z.boolean()]),
|
|
25
|
-
commission: z.string().describe("Plisio commission amount as a decimal string"),
|
|
25
|
+
commission: z.string().describe("Plisio commission amount as a decimal string").nullable(),
|
|
26
26
|
useWalletBalance: z.string().nullable()
|
|
27
27
|
}).describe("Commission estimation data including fees and plan details.");
|
|
28
28
|
const plisioGetCommission = action("PLISIO_GET_COMMISSION", {
|
|
@@ -32,7 +32,7 @@ const plisioGetCommission = action("PLISIO_GET_COMMISSION", {
|
|
|
32
32
|
input: PlisioGetCommissionInput,
|
|
33
33
|
output: z.object({
|
|
34
34
|
data: PlisioGetCommission_CommissionDataSchema.nullable(),
|
|
35
|
-
status: z.string().describe("Status of the API response, typically 'success' or 'error'")
|
|
35
|
+
status: z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
36
36
|
}).describe("Response model for commission estimation endpoint.")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commission.mjs","names":[],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCommissionInput
|
|
1
|
+
{"version":3,"file":"get-commission.mjs","names":[],"sources":["../../src/actions/get-commission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCommissionInput = z.object({\n type: z.enum([\"cash_out\", \"mass_cash_out\"]).describe(\"Operation type: 'cash_out' for single withdrawal to one address, 'mass_cash_out' for batch withdrawal to multiple addresses.\"),\n amounts: z.string().describe(\"Amount or comma-separated amounts that will be sent. For mass withdrawal, amounts should correspond to addresses in the same order. Use decimal string format (e.g., '0.3', '1.5,2.0').\"),\n feePlan: z.enum([\"normal\", \"priority\"]).describe(\"Fee plan type for transaction processing.\").optional(),\n psys_cid: z.string().describe(\"Cryptocurrency identifier (e.g., 'BTC', 'ETH', 'USDT'). Must be one of the supported cryptocurrencies by Plisio.\"),\n addresses: z.string().describe(\"Wallet address or comma-separated addresses when estimating fee for mass withdrawal. For single withdrawal use one address, for mass withdrawal separate multiple addresses with commas.\"),\n}).describe(\"Request model for estimating cryptocurrency fee and Plisio commission.\");\nconst PlisioGetCommission_FeePlanDetailsSchema = z.object({\n value: z.string().describe(\"Estimated fee value for this plan\").nullable().optional(),\n gasLimit: z.string().describe(\"Gas limit for Ethereum-style cryptocurrencies\").nullable().optional(),\n gasPrice: z.string().describe(\"Gas price for Ethereum-style cryptocurrencies\").nullable().optional(),\n}).describe(\"Details of a specific fee plan option.\");\nconst PlisioGetCommission_CommissionPlansSchema = z.object({\n normal: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n priority: PlisioGetCommission_FeePlanDetailsSchema.nullable().optional(),\n}).describe(\"Available fee plan options with their respective costs.\");\nconst PlisioGetCommission_CommissionDataSchema = z.object({\n fee: z.string().describe(\"Cryptocurrency network fee as a decimal string\").nullable(),\n plan: z.string().describe(\"Selected fee plan name (normal or priority)\").nullable(),\n plans: PlisioGetCommission_CommissionPlansSchema.nullable(),\n useWallet: z.union([z.string(), z.boolean()]),\n commission: z.string().describe(\"Plisio commission amount as a decimal string\").nullable(),\n useWalletBalance: z.string().nullable(),\n}).describe(\"Commission estimation data including fees and plan details.\");\nexport const PlisioGetCommissionOutput = z.object({\n data: PlisioGetCommission_CommissionDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for commission estimation endpoint.\");\n\nexport const plisioGetCommission = action(\"PLISIO_GET_COMMISSION\", {\n slug: \"plisio-get-commission\",\n name: \"Get Commission\",\n description: \"Tool to estimate the total cost including network fee and Plisio commission for a transaction. Returns detailed breakdown of commission, fee, and fee plan options for the specified cryptocurrency and amounts.\",\n input: PlisioGetCommissionInput,\n output: PlisioGetCommissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,KAAK,CAAC,YAAY,eAAe,CAAC,CAAC,CAAC,SAAS,8HAA8H;CACnL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACtN,SAAS,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CAChJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,4CAA4C,EAAE,OAAO;CACzD,QAAQ,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,yCAAyC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAO,0CAA0C,SAAS;CAC1D,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;CAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAMzE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,yCAAyC,SAAS;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ const PlisioGetCurrencyRate_CryptocurrencyDataSchema = zod.z.object({
|
|
|
19
19
|
}).describe("Represents detailed information for a single cryptocurrency with its exchange rate.");
|
|
20
20
|
const PlisioGetCurrencyRateOutput = zod.z.object({
|
|
21
21
|
data: zod.z.array(PlisioGetCurrencyRate_CryptocurrencyDataSchema).describe("List of supported cryptocurrencies with their current rates and pricing information"),
|
|
22
|
-
status: zod.z.string().describe("Result status, e.g., 'success' or 'error'")
|
|
22
|
+
status: zod.z.string().describe("Result status, e.g., 'success' or 'error'").nullable()
|
|
23
23
|
}).describe("Response model for GET /currencies/{fiat}.");
|
|
24
24
|
const plisioGetCurrencyRate = require_action.action("PLISIO_GET_CURRENCY_RATE", {
|
|
25
25
|
slug: "plisio-get-currency-rate",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-currency-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-currency-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCurrencyRateInput
|
|
1
|
+
{"version":3,"file":"get-currency-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-currency-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCurrencyRateInput = z.object({\n fiat: z.string().describe(\"Fiat currency code for exchange rates (e.g., 'USD', 'EUR', 'GBP'). See https://plisio.net/documentation/appendices/supported-fiat-currencies for all 168 supported currencies.\"),\n}).describe(\"Request model for GetCurrencyRate. Requires fiat currency code parameter.\");\nconst PlisioGetCurrencyRate_CryptocurrencyDataSchema = z.object({\n cid: z.string().describe(\"Cryptocurrency ID, e.g., 'ETH'\").nullable().optional(),\n fiat: z.string().describe(\"Fiat currency name\").nullable().optional(),\n icon: z.string().describe(\"URL to currency icon\").nullable().optional(),\n name: z.string().describe(\"Currency name, e.g., 'Ethereum'\").nullable().optional(),\n hidden: z.number().int().describe(\"Indicates visibility in store settings\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n rate_usd: z.string().describe(\"Exchange rate in USD as a string\").nullable().optional(),\n fiat_rate: z.string().describe(\"Rate in the specified fiat currency\").nullable().optional(),\n precision: z.union([z.string(), z.number().int()]).nullable().optional(),\n price_usd: z.string().describe(\"Current price in USD as a string\").nullable().optional(),\n min_sum_in: z.string().describe(\"Minimum deposit amount\").nullable().optional(),\n maintenance: z.boolean().describe(\"Maintenance status flag\").nullable().optional(),\n invoice_commission_percentage: z.string().describe(\"Invoice commission percentage\").nullable().optional(),\n}).describe(\"Represents detailed information for a single cryptocurrency with its exchange rate.\");\nexport const PlisioGetCurrencyRateOutput = z.object({\n data: z.array(PlisioGetCurrencyRate_CryptocurrencyDataSchema).describe(\"List of supported cryptocurrencies with their current rates and pricing information\"),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).describe(\"Response model for GET /currencies/{fiat}.\");\n\nexport const plisioGetCurrencyRate = action(\"PLISIO_GET_CURRENCY_RATE\", {\n slug: \"plisio-get-currency-rate\",\n name: \"Get Currency Rate\",\n description: \"Tool to retrieve list of supported cryptocurrencies with current rates filtered by fiat currency. Use when you need exchange rate information for cryptocurrencies in a specific fiat currency.\",\n input: PlisioGetCurrencyRateInput,\n output: PlisioGetCurrencyRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,EAC5M,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qFAAqF;CAC5J,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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/get-currency-rate.d.ts
|
|
4
|
-
declare const PlisioGetCurrencyRateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetCurrencyRateInput: z.ZodObject<{
|
|
5
|
+
fiat: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlisioGetCurrencyRateOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodArray<z.ZodObject<{
|
|
9
|
+
cid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
fiat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
hidden: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
rate_usd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
fiat_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
precision: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
18
|
+
price_usd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
min_sum_in: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
maintenance: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
invoice_commission_percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const plisioGetCurrencyRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
fiat: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { plisioGetCurrencyRate };
|
|
9
30
|
//# sourceMappingURL=get-currency-rate.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-currency-rate.d.cts","names":[],"sources":["../../src/actions/get-currency-rate.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-currency-rate.d.cts","names":[],"sources":["../../src/actions/get-currency-rate.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAkB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-currency-rate.d.ts
|
|
4
|
-
declare const PlisioGetCurrencyRateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetCurrencyRateInput: z.ZodObject<{
|
|
5
|
+
fiat: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlisioGetCurrencyRateOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodArray<z.ZodObject<{
|
|
9
|
+
cid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
fiat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
hidden: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
rate_usd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
fiat_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
precision: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
18
|
+
price_usd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
min_sum_in: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
maintenance: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
invoice_commission_percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const plisioGetCurrencyRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
fiat: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { plisioGetCurrencyRate };
|
|
9
30
|
//# sourceMappingURL=get-currency-rate.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-currency-rate.d.mts","names":[],"sources":["../../src/actions/get-currency-rate.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-currency-rate.d.mts","names":[],"sources":["../../src/actions/get-currency-rate.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAkB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -24,7 +24,7 @@ const plisioGetCurrencyRate = action("PLISIO_GET_CURRENCY_RATE", {
|
|
|
24
24
|
input: PlisioGetCurrencyRateInput,
|
|
25
25
|
output: z.object({
|
|
26
26
|
data: z.array(PlisioGetCurrencyRate_CryptocurrencyDataSchema).describe("List of supported cryptocurrencies with their current rates and pricing information"),
|
|
27
|
-
status: z.string().describe("Result status, e.g., 'success' or 'error'")
|
|
27
|
+
status: z.string().describe("Result status, e.g., 'success' or 'error'").nullable()
|
|
28
28
|
}).describe("Response model for GET /currencies/{fiat}.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-currency-rate.mjs","names":[],"sources":["../../src/actions/get-currency-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCurrencyRateInput
|
|
1
|
+
{"version":3,"file":"get-currency-rate.mjs","names":[],"sources":["../../src/actions/get-currency-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetCurrencyRateInput = z.object({\n fiat: z.string().describe(\"Fiat currency code for exchange rates (e.g., 'USD', 'EUR', 'GBP'). See https://plisio.net/documentation/appendices/supported-fiat-currencies for all 168 supported currencies.\"),\n}).describe(\"Request model for GetCurrencyRate. Requires fiat currency code parameter.\");\nconst PlisioGetCurrencyRate_CryptocurrencyDataSchema = z.object({\n cid: z.string().describe(\"Cryptocurrency ID, e.g., 'ETH'\").nullable().optional(),\n fiat: z.string().describe(\"Fiat currency name\").nullable().optional(),\n icon: z.string().describe(\"URL to currency icon\").nullable().optional(),\n name: z.string().describe(\"Currency name, e.g., 'Ethereum'\").nullable().optional(),\n hidden: z.number().int().describe(\"Indicates visibility in store settings\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n rate_usd: z.string().describe(\"Exchange rate in USD as a string\").nullable().optional(),\n fiat_rate: z.string().describe(\"Rate in the specified fiat currency\").nullable().optional(),\n precision: z.union([z.string(), z.number().int()]).nullable().optional(),\n price_usd: z.string().describe(\"Current price in USD as a string\").nullable().optional(),\n min_sum_in: z.string().describe(\"Minimum deposit amount\").nullable().optional(),\n maintenance: z.boolean().describe(\"Maintenance status flag\").nullable().optional(),\n invoice_commission_percentage: z.string().describe(\"Invoice commission percentage\").nullable().optional(),\n}).describe(\"Represents detailed information for a single cryptocurrency with its exchange rate.\");\nexport const PlisioGetCurrencyRateOutput = z.object({\n data: z.array(PlisioGetCurrencyRate_CryptocurrencyDataSchema).describe(\"List of supported cryptocurrencies with their current rates and pricing information\"),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).describe(\"Response model for GET /currencies/{fiat}.\");\n\nexport const plisioGetCurrencyRate = action(\"PLISIO_GET_CURRENCY_RATE\", {\n slug: \"plisio-get-currency-rate\",\n name: \"Get Currency Rate\",\n description: \"Tool to retrieve list of supported cryptocurrencies with current rates filtered by fiat currency. Use when you need exchange rate information for cryptocurrencies in a specific fiat currency.\",\n input: PlisioGetCurrencyRateInput,\n output: PlisioGetCurrencyRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,EAC5M,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAMjG,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qFAAqF;EAC5J,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ const PlisioGetFeePlans_FeePlansDataSchema = zod.z.object({
|
|
|
14
14
|
}).describe("Container object with fee plan tiers for the requested cryptocurrency.\nPer official API documentation, only 'normal' and 'priority' tiers are supported.");
|
|
15
15
|
const PlisioGetFeePlansOutput = zod.z.object({
|
|
16
16
|
data: PlisioGetFeePlans_FeePlansDataSchema.nullable(),
|
|
17
|
-
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'")
|
|
17
|
+
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
18
18
|
}).describe("Response model for fee plans. Returns status and data containing fee plan tiers.");
|
|
19
19
|
const plisioGetFeePlans = require_action.action("PLISIO_GET_FEE_PLANS", {
|
|
20
20
|
slug: "plisio-get-fee-plans",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fee-plans.cjs","names":["z","action"],"sources":["../../src/actions/get-fee-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetFeePlansInput
|
|
1
|
+
{"version":3,"file":"get-fee-plans.cjs","names":["z","action"],"sources":["../../src/actions/get-fee-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetFeePlansInput = z.object({\n currency: z.string().describe(\"Cryptocurrency symbol, e.g., 'BTC'\"),\n}).describe(\"Request model for retrieving fee plans by currency.\");\nconst PlisioGetFeePlans_FeePlanSchema = z.object({\n value: z.union([z.string(), z.number()]).nullable().optional(),\n gasLimit: z.number().describe(\"Ethereum gas limit. Used for Ethereum-style cryptocurrencies.\").nullable().optional(),\n gasPrice: z.number().describe(\"Ethereum gas price. Used for Ethereum-style cryptocurrencies.\").nullable().optional(),\n conf_target: z.number().describe(\"Estimate fee to be included into next 'conf_target' block(s). Used for Bitcoin-style and Monero cryptocurrencies.\").nullable().optional(),\n}).describe(\"Individual fee plan details for a specific tier (normal or priority).\\nFields vary by cryptocurrency type. Per official API documentation at\\nplisio.net/documentation/endpoints/fee-plans, only conf_target, value,\\ngasLimit, and gasPrice are documented fields.\");\nconst PlisioGetFeePlans_FeePlansDataSchema = z.object({\n normal: PlisioGetFeePlans_FeePlanSchema.nullable().optional(),\n priority: PlisioGetFeePlans_FeePlanSchema.nullable().optional(),\n}).describe(\"Container object with fee plan tiers for the requested cryptocurrency.\\nPer official API documentation, only 'normal' and 'priority' tiers are supported.\");\nexport const PlisioGetFeePlansOutput = z.object({\n data: PlisioGetFeePlans_FeePlansDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for fee plans. Returns status and data containing fee plan tiers.\");\n\nexport const plisioGetFeePlans = action(\"PLISIO_GET_FEE_PLANS\", {\n slug: \"plisio-get-fee-plans\",\n name: \"Get Fee Plans\",\n description: \"Tool to retrieve available fee plans for a given cryptocurrency. Specify a currency symbol like 'BTC', 'ETH' to get fee plan details.\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
2
|
|
|
3
3
|
//#region src/actions/get-fee-plans.d.ts
|
|
4
|
-
declare const PlisioGetFeePlansInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetFeePlansInput: z.ZodObject<{
|
|
5
|
+
currency: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlisioGetFeePlansOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
normal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
11
|
+
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
conf_target: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
15
|
+
priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
17
|
+
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
conf_target: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
status: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const plisioGetFeePlans: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
currency: string;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { plisioGetFeePlans };
|
|
9
29
|
//# sourceMappingURL=get-fee-plans.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fee-plans.d.cts","names":[],"sources":["../../src/actions/get-fee-plans.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-fee-plans.d.cts","names":[],"sources":["../../src/actions/get-fee-plans.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAatB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-fee-plans.d.ts
|
|
4
|
-
declare const PlisioGetFeePlansInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetFeePlansInput: z.ZodObject<{
|
|
5
|
+
currency: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlisioGetFeePlansOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
normal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
11
|
+
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
conf_target: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
15
|
+
priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
17
|
+
gasLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
gasPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
conf_target: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
status: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const plisioGetFeePlans: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
currency: string;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { plisioGetFeePlans };
|
|
9
29
|
//# sourceMappingURL=get-fee-plans.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fee-plans.d.mts","names":[],"sources":["../../src/actions/get-fee-plans.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-fee-plans.d.mts","names":[],"sources":["../../src/actions/get-fee-plans.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAatB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -19,7 +19,7 @@ const plisioGetFeePlans = action("PLISIO_GET_FEE_PLANS", {
|
|
|
19
19
|
input: PlisioGetFeePlansInput,
|
|
20
20
|
output: z.object({
|
|
21
21
|
data: PlisioGetFeePlans_FeePlansDataSchema.nullable(),
|
|
22
|
-
status: z.string().describe("Status of the API response, typically 'success' or 'error'")
|
|
22
|
+
status: z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
23
23
|
}).describe("Response model for fee plans. Returns status and data containing fee plan tiers.")
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fee-plans.mjs","names":[],"sources":["../../src/actions/get-fee-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetFeePlansInput
|
|
1
|
+
{"version":3,"file":"get-fee-plans.mjs","names":[],"sources":["../../src/actions/get-fee-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetFeePlansInput = z.object({\n currency: z.string().describe(\"Cryptocurrency symbol, e.g., 'BTC'\"),\n}).describe(\"Request model for retrieving fee plans by currency.\");\nconst PlisioGetFeePlans_FeePlanSchema = z.object({\n value: z.union([z.string(), z.number()]).nullable().optional(),\n gasLimit: z.number().describe(\"Ethereum gas limit. Used for Ethereum-style cryptocurrencies.\").nullable().optional(),\n gasPrice: z.number().describe(\"Ethereum gas price. Used for Ethereum-style cryptocurrencies.\").nullable().optional(),\n conf_target: z.number().describe(\"Estimate fee to be included into next 'conf_target' block(s). Used for Bitcoin-style and Monero cryptocurrencies.\").nullable().optional(),\n}).describe(\"Individual fee plan details for a specific tier (normal or priority).\\nFields vary by cryptocurrency type. Per official API documentation at\\nplisio.net/documentation/endpoints/fee-plans, only conf_target, value,\\ngasLimit, and gasPrice are documented fields.\");\nconst PlisioGetFeePlans_FeePlansDataSchema = z.object({\n normal: PlisioGetFeePlans_FeePlanSchema.nullable().optional(),\n priority: PlisioGetFeePlans_FeePlanSchema.nullable().optional(),\n}).describe(\"Container object with fee plan tiers for the requested cryptocurrency.\\nPer official API documentation, only 'normal' and 'priority' tiers are supported.\");\nexport const PlisioGetFeePlansOutput = z.object({\n data: PlisioGetFeePlans_FeePlansDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for fee plans. Returns status and data containing fee plan tiers.\");\n\nexport const plisioGetFeePlans = action(\"PLISIO_GET_FEE_PLANS\", {\n slug: \"plisio-get-fee-plans\",\n name: \"Get Fee Plans\",\n description: \"Tool to retrieve available fee plans for a given cryptocurrency. Specify a currency symbol like 'BTC', 'ETH' to get fee plan details.\",\n input: PlisioGetFeePlansInput,\n output: PlisioGetFeePlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACpE,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kCAAkC,EAAE,OAAO;CAC/C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5K,CAAC,CAAC,CAAC,SAAS,qQAAqQ;AACjR,MAAM,uCAAuC,EAAE,OAAO;CACpD,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC5D,UAAU,gCAAgC,SAAS,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,SAAS,2JAA2J;AAMvK,MAAa,oBAAoB,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,MAAM,qCAAqC,SAAS;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,kFAOF;AACV,CAAC"}
|
|
@@ -22,7 +22,7 @@ const PlisioGetFeePlans2_FeePlansDataSchema = zod.z.object({
|
|
|
22
22
|
}).describe("Container object with fee plan tiers for the requested cryptocurrency.\nContains three tiers: economy, normal, and priority.");
|
|
23
23
|
const PlisioGetFeePlans2Output = zod.z.object({
|
|
24
24
|
data: PlisioGetFeePlans2_FeePlansDataSchema.nullable(),
|
|
25
|
-
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'")
|
|
25
|
+
status: zod.z.string().describe("Status of the API response, typically 'success' or 'error'").nullable()
|
|
26
26
|
}).describe("Response model for fee plans. Returns status and data containing fee plan tiers.");
|
|
27
27
|
const plisioGetFeePlans2 = require_action.action("PLISIO_GET_FEE_PLANS2", {
|
|
28
28
|
slug: "plisio-get-fee-plans2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fee-plans2.cjs","names":["z","action"],"sources":["../../src/actions/get-fee-plans2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetFeePlans2Input
|
|
1
|
+
{"version":3,"file":"get-fee-plans2.cjs","names":["z","action"],"sources":["../../src/actions/get-fee-plans2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetFeePlans2Input = 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 retrieving fee plans by cryptocurrency.\");\nconst PlisioGetFeePlans2_FeePlanSchema = z.object({\n key: z.string().describe(\"Fee plan identifier\").nullable().optional(),\n name: z.string().describe(\"Fee plan name\").nullable().optional(),\n nonce: z.union([z.string(), z.number().int()]).nullable().optional(),\n value: z.union([z.string(), z.number()]).nullable().optional(),\n feeRate: z.number().describe(\"Fee rate applied to transaction. Used for Bitcoin-style cryptocurrencies.\").nullable().optional(),\n feeUnit: z.string().describe(\"Fee unit value. Used for Ethereum-style cryptocurrencies.\").nullable().optional(),\n gasLimit: z.number().describe(\"Ethereum gas limit. Used for Ethereum-style cryptocurrencies.\").nullable().optional(),\n gasPrice: z.number().describe(\"Ethereum gas price. Used for Ethereum-style cryptocurrencies.\").nullable().optional(),\n conf_target: z.number().describe(\"Estimate fee to be included into next 'conf_target' block(s). Used for Bitcoin-style cryptocurrencies.\").nullable().optional(),\n description: z.string().describe(\"Fee plan description\").nullable().optional(),\n feeRateUnit: z.string().describe(\"Fee rate unit specification. Used for Bitcoin-style cryptocurrencies.\").nullable().optional(),\n}).describe(\"Individual fee plan details for a specific tier.\\nFields vary by cryptocurrency type:\\n- Bitcoin-based: key, name, description, conf_target, feeRate, feeRateUnit\\n- Ethereum-based: key, name, description, gasLimit, gasPrice, value, feeUnit, nonce\");\nconst PlisioGetFeePlans2_FeePlansDataSchema = z.object({\n normal: PlisioGetFeePlans2_FeePlanSchema.nullable().optional(),\n economy: PlisioGetFeePlans2_FeePlanSchema.nullable().optional(),\n priority: PlisioGetFeePlans2_FeePlanSchema.nullable().optional(),\n}).describe(\"Container object with fee plan tiers for the requested cryptocurrency.\\nContains three tiers: economy, normal, and priority.\");\nexport const PlisioGetFeePlans2Output = z.object({\n data: PlisioGetFeePlans2_FeePlansDataSchema.nullable(),\n status: z.string().describe(\"Status of the API response, typically 'success' or 'error'\").nullable(),\n}).describe(\"Response model for fee plans. Returns status and data containing fee plan tiers.\");\n\nexport const plisioGetFeePlans2 = action(\"PLISIO_GET_FEE_PLANS2\", {\n slug: \"plisio-get-fee-plans2\",\n name: \"Get Fee Plans\",\n description: \"Tool to get available fee plans for a specific cryptocurrency. Returns fee values and configuration like gas limits for Ethereum-based coins or confirmation targets for Bitcoin. Use when you need to determine transaction fee options before creating or sending a transaction.\",\n input: PlisioGetFeePlans2Input,\n output: PlisioGetFeePlans2Output,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACvI,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBA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