@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
|
@@ -1,9 +1,75 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-transactions.d.ts
|
|
4
|
-
declare const PlisioGetTransactionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlisioGetTransactionsInput: z.ZodObject<{
|
|
5
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
invoice: "invoice";
|
|
9
|
+
withdraw: "withdraw";
|
|
10
|
+
mass_withdraw: "mass_withdraw";
|
|
11
|
+
}>>;
|
|
12
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
13
|
+
since: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
error: "error";
|
|
16
|
+
pending: "pending";
|
|
17
|
+
paid: "paid";
|
|
18
|
+
cancelled: "cancelled";
|
|
19
|
+
expired: "expired";
|
|
20
|
+
processing: "processing";
|
|
21
|
+
}>>;
|
|
22
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
23
|
+
order_id: z.ZodOptional<z.ZodString>;
|
|
24
|
+
order_name: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const PlisioGetTransactionsOutput: z.ZodObject<{
|
|
27
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
_meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
perPage: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
30
|
+
pageCount: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
31
|
+
totalCount: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
32
|
+
currentPage: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
34
|
+
_links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
|
+
operations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
36
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
type: z.ZodNullable<z.ZodString>;
|
|
38
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
39
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
tx_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
amount: z.ZodNullable<z.ZodString>;
|
|
42
|
+
status: z.ZodNullable<z.ZodString>;
|
|
43
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
tx_urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
45
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
46
|
+
order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
commission: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
expire_utc: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
order_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
invoice_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
confirmations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
source_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
pending_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
source_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
required_confirmations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
}, z.core.$strip>>>>;
|
|
59
|
+
}, z.core.$loose>>;
|
|
60
|
+
status: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
declare const plisioGetTransactions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
63
|
+
to?: number | undefined;
|
|
64
|
+
page?: number | undefined;
|
|
65
|
+
type?: "invoice" | "withdraw" | "mass_withdraw" | undefined;
|
|
66
|
+
limit?: number | undefined;
|
|
67
|
+
since?: number | undefined;
|
|
68
|
+
status?: "error" | "pending" | "paid" | "cancelled" | "expired" | "processing" | undefined;
|
|
69
|
+
currency?: string | undefined;
|
|
70
|
+
order_id?: string | undefined;
|
|
71
|
+
order_name?: string | undefined;
|
|
72
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
73
|
//#endregion
|
|
8
74
|
export { plisioGetTransactions };
|
|
9
75
|
//# sourceMappingURL=get-transactions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-transactions.d.mts","names":[],"sources":["../../src/actions/get-transactions.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-transactions.d.mts","names":[],"sources":["../../src/actions/get-transactions.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cA8C1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -31,15 +31,15 @@ const PlisioGetTransactions_PaginationMetaSchema = z.object({
|
|
|
31
31
|
}).describe("Pagination metadata from the API response.");
|
|
32
32
|
const PlisioGetTransactions_OperationSchema = z.object({
|
|
33
33
|
to: z.string().describe("Receiving address or invoice URL destination").nullable().optional(),
|
|
34
|
-
type: z.string().describe("Operation type"),
|
|
35
|
-
uuid: z.string().describe("Operation unique identifier"),
|
|
34
|
+
type: z.string().describe("Operation type").nullable(),
|
|
35
|
+
uuid: z.string().describe("Operation unique identifier").nullable(),
|
|
36
36
|
email: z.string().describe("Customer email (if provided)").nullable().optional(),
|
|
37
37
|
tx_id: z.string().describe("Blockchain transaction ID").nullable().optional(),
|
|
38
|
-
amount: z.string().describe("Operation amount"),
|
|
39
|
-
status: z.string().describe("Operation status"),
|
|
38
|
+
amount: z.string().describe("Operation amount").nullable(),
|
|
39
|
+
status: z.string().describe("Operation status").nullable(),
|
|
40
40
|
address: z.string().describe("Plisio receiving address").nullable().optional(),
|
|
41
41
|
tx_urls: z.array(z.string()).describe("Blockchain explorer URLs for transaction").nullable().optional(),
|
|
42
|
-
currency: z.string().describe("Cryptocurrency code"),
|
|
42
|
+
currency: z.string().describe("Cryptocurrency code").nullable(),
|
|
43
43
|
order_id: z.string().describe("Your order ID").nullable().optional(),
|
|
44
44
|
commission: z.string().describe("Plisio commission amount").nullable().optional(),
|
|
45
45
|
created_at: z.number().int().describe("Creation timestamp (UTC)").nullable().optional(),
|
|
@@ -65,7 +65,7 @@ const plisioGetTransactions = action("PLISIO_GET_TRANSACTIONS", {
|
|
|
65
65
|
input: PlisioGetTransactionsInput,
|
|
66
66
|
output: z.object({
|
|
67
67
|
data: PlisioGetTransactions_OperationsDataSchema.nullable(),
|
|
68
|
-
status: z.string().describe("Result status, e.g., 'success' or 'error'")
|
|
68
|
+
status: z.string().describe("Result status, e.g., 'success' or 'error'").nullable()
|
|
69
69
|
}).describe("Response model for GET /operations endpoint.")
|
|
70
70
|
});
|
|
71
71
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-transactions.mjs","names":[],"sources":["../../src/actions/get-transactions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetTransactionsInput
|
|
1
|
+
{"version":3,"file":"get-transactions.mjs","names":[],"sources":["../../src/actions/get-transactions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioGetTransactionsInput = z.object({\n to: z.number().int().describe(\"End date as UNIX timestamp (inclusive)\").optional(),\n page: z.number().int().default(0).describe(\"Page number (0-indexed)\").optional(),\n type: z.enum([\"withdraw\", \"invoice\", \"mass_withdraw\"]).describe(\"Filter by operation type (withdraw, invoice, mass_withdraw)\").optional(),\n limit: z.number().int().default(50).describe(\"Number of results per page (max 100)\").optional(),\n since: z.number().int().describe(\"Start date as UNIX timestamp (inclusive)\").optional(),\n status: z.enum([\"pending\", \"paid\", \"cancelled\", \"error\", \"expired\", \"processing\"]).describe(\"Filter by operation status (pending, paid, cancelled, error, expired, processing)\").optional(),\n currency: z.string().describe(\"Filter by cryptocurrency code, e.g., 'BTC'\").optional(),\n order_id: z.string().describe(\"Filter by your own order ID\").optional(),\n order_name: z.string().describe(\"Filter by your own order name\").optional(),\n}).describe(\"Parameters to filter and paginate the list of Plisio operations.\");\nconst PlisioGetTransactions_PaginationMetaSchema = z.object({\n perPage: z.number().int().default(50).describe(\"Number of items per page\").nullable().optional(),\n pageCount: z.number().int().default(0).describe(\"Total number of pages available\").nullable().optional(),\n totalCount: z.number().int().default(0).describe(\"Total number of operations matching the query\").nullable().optional(),\n currentPage: z.number().int().default(1).describe(\"Current page number\").nullable().optional(),\n}).describe(\"Pagination metadata from the API response.\");\nconst PlisioGetTransactions_OperationSchema = z.object({\n to: z.string().describe(\"Receiving address or invoice URL destination\").nullable().optional(),\n type: z.string().describe(\"Operation type\").nullable(),\n uuid: z.string().describe(\"Operation unique identifier\").nullable(),\n email: z.string().describe(\"Customer email (if provided)\").nullable().optional(),\n tx_id: z.string().describe(\"Blockchain transaction ID\").nullable().optional(),\n amount: z.string().describe(\"Operation amount\").nullable(),\n status: z.string().describe(\"Operation status\").nullable(),\n address: z.string().describe(\"Plisio receiving address\").nullable().optional(),\n tx_urls: z.array(z.string()).describe(\"Blockchain explorer URLs for transaction\").nullable().optional(),\n currency: z.string().describe(\"Cryptocurrency code\").nullable(),\n order_id: z.string().describe(\"Your order ID\").nullable().optional(),\n commission: z.string().describe(\"Plisio commission amount\").nullable().optional(),\n created_at: z.number().int().describe(\"Creation timestamp (UTC)\").nullable().optional(),\n expire_utc: z.number().int().describe(\"Expiration timestamp (UTC)\").nullable().optional(),\n order_name: z.string().describe(\"Your order name/label\").nullable().optional(),\n updated_at: z.number().int().describe(\"Last updated timestamp (UTC)\").nullable().optional(),\n invoice_url: z.string().describe(\"Direct invoice URL\").nullable().optional(),\n confirmations: z.number().int().describe(\"Number of confirmations\").nullable().optional(),\n source_amount: z.string().describe(\"Source amount paid\").nullable().optional(),\n pending_amount: z.string().describe(\"Pending amount remaining\").nullable().optional(),\n source_currency: z.string().describe(\"Source currency of payment\").nullable().optional(),\n required_confirmations: z.number().int().describe(\"Required number of confirmations\").nullable().optional(),\n}).describe(\"A single transaction/invoice operation returned by Plisio.\");\nconst PlisioGetTransactions_OperationsDataSchema = z.object({\n _meta: PlisioGetTransactions_PaginationMetaSchema.nullable().optional(),\n _links: z.record(z.string(), z.unknown()).describe(\"HATEOAS links\").nullable().optional(),\n operations: z.array(PlisioGetTransactions_OperationSchema).describe(\"List of operations\").nullable().optional(),\n}).passthrough().describe(\"The data object containing operations and pagination info.\");\nexport const PlisioGetTransactionsOutput = z.object({\n data: PlisioGetTransactions_OperationsDataSchema.nullable(),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).describe(\"Response model for GET /operations endpoint.\");\n\nexport const plisioGetTransactions = action(\"PLISIO_GET_TRANSACTIONS\", {\n slug: \"plisio-get-transactions\",\n name: \"Get Plisio Transactions\",\n description: \"Tool to retrieve a list of transactions and invoices. Use after authenticating with your API key to fetch historical operations with optional filters and pagination. Example: GetTransactions(status='paid', limit=20).\",\n input: PlisioGetTransactionsInput,\n output: PlisioGetTransactionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,KAAK;EAAC;EAAY;EAAW;CAAe,CAAC,CAAC,CAAC,SAAS,6DAA6D,C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OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -3,23 +3,23 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-currencies.ts
|
|
4
4
|
const PlisioListCurrenciesInput = zod.z.object({}).describe("Request model for ListCurrencies. No parameters required.");
|
|
5
5
|
const PlisioListCurrencies_CurrencyInfoSchema = zod.z.object({
|
|
6
|
-
cid: zod.z.string().describe("Currency identifier code"),
|
|
7
|
-
fiat: zod.z.string().describe("Fiat currency code for conversion"),
|
|
8
|
-
icon: zod.z.string().describe("URL to the currency icon image"),
|
|
9
|
-
name: zod.z.string().describe("Full name of the cryptocurrency, e.g., 'Bitcoin'"),
|
|
10
|
-
hidden: zod.z.number().int().describe("Visibility flag (0 = visible, 1 = hidden in store settings)"),
|
|
11
|
-
currency: zod.z.string().describe("Currency code, e.g., 'BTC'"),
|
|
12
|
-
rate_usd: zod.z.string().describe("Exchange rate to USD as a decimal string"),
|
|
13
|
-
fiat_rate: zod.z.string().describe("Exchange rate to fiat currency as a decimal string"),
|
|
14
|
-
precision: zod.z.number().int().describe("Number of decimal places for the currency"),
|
|
15
|
-
price_usd: zod.z.string().describe("Price in USD as a decimal string"),
|
|
16
|
-
min_sum_in: zod.z.string().describe("Minimum transaction amount as a decimal string"),
|
|
17
|
-
maintenance: zod.z.boolean().describe("Whether the currency is currently under maintenance"),
|
|
18
|
-
invoice_commission_percentage: zod.z.string().describe("Commission percentage for invoices")
|
|
6
|
+
cid: zod.z.string().describe("Currency identifier code").nullable(),
|
|
7
|
+
fiat: zod.z.string().describe("Fiat currency code for conversion").nullable(),
|
|
8
|
+
icon: zod.z.string().describe("URL to the currency icon image").nullable(),
|
|
9
|
+
name: zod.z.string().describe("Full name of the cryptocurrency, e.g., 'Bitcoin'").nullable(),
|
|
10
|
+
hidden: zod.z.number().int().describe("Visibility flag (0 = visible, 1 = hidden in store settings)").nullable(),
|
|
11
|
+
currency: zod.z.string().describe("Currency code, e.g., 'BTC'").nullable(),
|
|
12
|
+
rate_usd: zod.z.string().describe("Exchange rate to USD as a decimal string").nullable(),
|
|
13
|
+
fiat_rate: zod.z.string().describe("Exchange rate to fiat currency as a decimal string").nullable(),
|
|
14
|
+
precision: zod.z.number().int().describe("Number of decimal places for the currency").nullable(),
|
|
15
|
+
price_usd: zod.z.string().describe("Price in USD as a decimal string").nullable(),
|
|
16
|
+
min_sum_in: zod.z.string().describe("Minimum transaction amount as a decimal string").nullable(),
|
|
17
|
+
maintenance: zod.z.boolean().describe("Whether the currency is currently under maintenance").nullable(),
|
|
18
|
+
invoice_commission_percentage: zod.z.string().describe("Commission percentage for invoices").nullable()
|
|
19
19
|
}).describe("Represents information about a single supported cryptocurrency.");
|
|
20
20
|
const PlisioListCurrenciesOutput = zod.z.object({
|
|
21
21
|
data: zod.z.array(PlisioListCurrencies_CurrencyInfoSchema).describe("List of supported cryptocurrencies with their details"),
|
|
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 endpoint.");
|
|
24
24
|
const plisioListCurrencies = require_action.action("PLISIO_LIST_CURRENCIES", {
|
|
25
25
|
slug: "plisio-list-currencies",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-currencies.cjs","names":["z","action"],"sources":["../../src/actions/list-currencies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioListCurrenciesInput
|
|
1
|
+
{"version":3,"file":"list-currencies.cjs","names":["z","action"],"sources":["../../src/actions/list-currencies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioListCurrenciesInput = z.object({}).describe(\"Request model for ListCurrencies. No parameters required.\");\nconst PlisioListCurrencies_CurrencyInfoSchema = z.object({\n cid: z.string().describe(\"Currency identifier code\").nullable(),\n fiat: z.string().describe(\"Fiat currency code for conversion\").nullable(),\n icon: z.string().describe(\"URL to the currency icon image\").nullable(),\n name: z.string().describe(\"Full name of the cryptocurrency, e.g., 'Bitcoin'\").nullable(),\n hidden: z.number().int().describe(\"Visibility flag (0 = visible, 1 = hidden in store settings)\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'BTC'\").nullable(),\n rate_usd: z.string().describe(\"Exchange rate to USD as a decimal string\").nullable(),\n fiat_rate: z.string().describe(\"Exchange rate to fiat currency as a decimal string\").nullable(),\n precision: z.number().int().describe(\"Number of decimal places for the currency\").nullable(),\n price_usd: z.string().describe(\"Price in USD as a decimal string\").nullable(),\n min_sum_in: z.string().describe(\"Minimum transaction amount as a decimal string\").nullable(),\n maintenance: z.boolean().describe(\"Whether the currency is currently under maintenance\").nullable(),\n invoice_commission_percentage: z.string().describe(\"Commission percentage for invoices\").nullable(),\n}).describe(\"Represents information about a single supported cryptocurrency.\");\nexport const PlisioListCurrenciesOutput = z.object({\n data: z.array(PlisioListCurrencies_CurrencyInfoSchema).describe(\"List of supported cryptocurrencies with their details\"),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).describe(\"Response model for GET /currencies endpoint.\");\n\nexport const plisioListCurrencies = action(\"PLISIO_LIST_CURRENCIES\", {\n slug: \"plisio-list-currencies\",\n name: \"List Supported Currencies\",\n description: \"Tool to retrieve a list of supported cryptocurrencies with their rates and information. Use after API credentials are configured to get current exchange rates, commission percentages, and operational status for all available coins.\",\n input: PlisioListCurrenciesInput,\n output: PlisioListCurrenciesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAC1H,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,MAAMA,I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uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-currencies.d.ts
|
|
4
|
-
declare const PlisioListCurrenciesInput: z.
|
|
5
|
-
declare const PlisioListCurrenciesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PlisioListCurrenciesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PlisioListCurrenciesOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
8
|
+
fiat: z.ZodNullable<z.ZodString>;
|
|
9
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
hidden: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
13
|
+
rate_usd: z.ZodNullable<z.ZodString>;
|
|
14
|
+
fiat_rate: z.ZodNullable<z.ZodString>;
|
|
15
|
+
precision: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
price_usd: z.ZodNullable<z.ZodString>;
|
|
17
|
+
min_sum_in: z.ZodNullable<z.ZodString>;
|
|
18
|
+
maintenance: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
invoice_commission_percentage: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
status: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const plisioListCurrencies: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { plisioListCurrencies };
|
|
9
26
|
//# sourceMappingURL=list-currencies.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-currencies.d.cts","names":[],"sources":["../../src/actions/list-currencies.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"list-currencies.d.cts","names":[],"sources":["../../src/actions/list-currencies.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-currencies.d.ts
|
|
4
|
-
declare const PlisioListCurrenciesInput: z.
|
|
5
|
-
declare const PlisioListCurrenciesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PlisioListCurrenciesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PlisioListCurrenciesOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
8
|
+
fiat: z.ZodNullable<z.ZodString>;
|
|
9
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
hidden: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
13
|
+
rate_usd: z.ZodNullable<z.ZodString>;
|
|
14
|
+
fiat_rate: z.ZodNullable<z.ZodString>;
|
|
15
|
+
precision: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
price_usd: z.ZodNullable<z.ZodString>;
|
|
17
|
+
min_sum_in: z.ZodNullable<z.ZodString>;
|
|
18
|
+
maintenance: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
invoice_commission_percentage: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
status: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const plisioListCurrencies: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { plisioListCurrencies };
|
|
9
26
|
//# sourceMappingURL=list-currencies.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-currencies.d.mts","names":[],"sources":["../../src/actions/list-currencies.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"list-currencies.d.mts","names":[],"sources":["../../src/actions/list-currencies.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,19 +3,19 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-currencies.ts
|
|
4
4
|
const PlisioListCurrenciesInput = z.object({}).describe("Request model for ListCurrencies. No parameters required.");
|
|
5
5
|
const PlisioListCurrencies_CurrencyInfoSchema = z.object({
|
|
6
|
-
cid: z.string().describe("Currency identifier code"),
|
|
7
|
-
fiat: z.string().describe("Fiat currency code for conversion"),
|
|
8
|
-
icon: z.string().describe("URL to the currency icon image"),
|
|
9
|
-
name: z.string().describe("Full name of the cryptocurrency, e.g., 'Bitcoin'"),
|
|
10
|
-
hidden: z.number().int().describe("Visibility flag (0 = visible, 1 = hidden in store settings)"),
|
|
11
|
-
currency: z.string().describe("Currency code, e.g., 'BTC'"),
|
|
12
|
-
rate_usd: z.string().describe("Exchange rate to USD as a decimal string"),
|
|
13
|
-
fiat_rate: z.string().describe("Exchange rate to fiat currency as a decimal string"),
|
|
14
|
-
precision: z.number().int().describe("Number of decimal places for the currency"),
|
|
15
|
-
price_usd: z.string().describe("Price in USD as a decimal string"),
|
|
16
|
-
min_sum_in: z.string().describe("Minimum transaction amount as a decimal string"),
|
|
17
|
-
maintenance: z.boolean().describe("Whether the currency is currently under maintenance"),
|
|
18
|
-
invoice_commission_percentage: z.string().describe("Commission percentage for invoices")
|
|
6
|
+
cid: z.string().describe("Currency identifier code").nullable(),
|
|
7
|
+
fiat: z.string().describe("Fiat currency code for conversion").nullable(),
|
|
8
|
+
icon: z.string().describe("URL to the currency icon image").nullable(),
|
|
9
|
+
name: z.string().describe("Full name of the cryptocurrency, e.g., 'Bitcoin'").nullable(),
|
|
10
|
+
hidden: z.number().int().describe("Visibility flag (0 = visible, 1 = hidden in store settings)").nullable(),
|
|
11
|
+
currency: z.string().describe("Currency code, e.g., 'BTC'").nullable(),
|
|
12
|
+
rate_usd: z.string().describe("Exchange rate to USD as a decimal string").nullable(),
|
|
13
|
+
fiat_rate: z.string().describe("Exchange rate to fiat currency as a decimal string").nullable(),
|
|
14
|
+
precision: z.number().int().describe("Number of decimal places for the currency").nullable(),
|
|
15
|
+
price_usd: z.string().describe("Price in USD as a decimal string").nullable(),
|
|
16
|
+
min_sum_in: z.string().describe("Minimum transaction amount as a decimal string").nullable(),
|
|
17
|
+
maintenance: z.boolean().describe("Whether the currency is currently under maintenance").nullable(),
|
|
18
|
+
invoice_commission_percentage: z.string().describe("Commission percentage for invoices").nullable()
|
|
19
19
|
}).describe("Represents information about a single supported cryptocurrency.");
|
|
20
20
|
const plisioListCurrencies = action("PLISIO_LIST_CURRENCIES", {
|
|
21
21
|
slug: "plisio-list-currencies",
|
|
@@ -24,7 +24,7 @@ const plisioListCurrencies = action("PLISIO_LIST_CURRENCIES", {
|
|
|
24
24
|
input: PlisioListCurrenciesInput,
|
|
25
25
|
output: z.object({
|
|
26
26
|
data: z.array(PlisioListCurrencies_CurrencyInfoSchema).describe("List of supported cryptocurrencies with their details"),
|
|
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 endpoint.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-currencies.mjs","names":[],"sources":["../../src/actions/list-currencies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioListCurrenciesInput
|
|
1
|
+
{"version":3,"file":"list-currencies.mjs","names":[],"sources":["../../src/actions/list-currencies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlisioListCurrenciesInput = z.object({}).describe(\"Request model for ListCurrencies. No parameters required.\");\nconst PlisioListCurrencies_CurrencyInfoSchema = z.object({\n cid: z.string().describe(\"Currency identifier code\").nullable(),\n fiat: z.string().describe(\"Fiat currency code for conversion\").nullable(),\n icon: z.string().describe(\"URL to the currency icon image\").nullable(),\n name: z.string().describe(\"Full name of the cryptocurrency, e.g., 'Bitcoin'\").nullable(),\n hidden: z.number().int().describe(\"Visibility flag (0 = visible, 1 = hidden in store settings)\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'BTC'\").nullable(),\n rate_usd: z.string().describe(\"Exchange rate to USD as a decimal string\").nullable(),\n fiat_rate: z.string().describe(\"Exchange rate to fiat currency as a decimal string\").nullable(),\n precision: z.number().int().describe(\"Number of decimal places for the currency\").nullable(),\n price_usd: z.string().describe(\"Price in USD as a decimal string\").nullable(),\n min_sum_in: z.string().describe(\"Minimum transaction amount as a decimal string\").nullable(),\n maintenance: z.boolean().describe(\"Whether the currency is currently under maintenance\").nullable(),\n invoice_commission_percentage: z.string().describe(\"Commission percentage for invoices\").nullable(),\n}).describe(\"Represents information about a single supported cryptocurrency.\");\nexport const PlisioListCurrenciesOutput = z.object({\n data: z.array(PlisioListCurrencies_CurrencyInfoSchema).describe(\"List of supported cryptocurrencies with their details\"),\n status: z.string().describe(\"Result status, e.g., 'success' or 'error'\").nullable(),\n}).describe(\"Response model for GET /currencies endpoint.\");\n\nexport const plisioListCurrencies = action(\"PLISIO_LIST_CURRENCIES\", {\n slug: \"plisio-list-currencies\",\n name: \"List Supported Currencies\",\n description: \"Tool to retrieve a list of supported cryptocurrencies with their rates and information. Use after API credentials are configured to get current exchange rates, commission percentages, and operational status for all available coins.\",\n input: PlisioListCurrenciesInput,\n output: PlisioListCurrenciesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAC1H,MAAM,0CAA0C,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAClG,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAM7E,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,MAAM,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,uDAAuD;EACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const plisioCatalog = {
|
|
|
7
7
|
"category": "Payment Processing",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/plisio",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "Plisio API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your personal secret key used for API authentication."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.plisioCatalog = plisioCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const plisioCatalog = {\n \"slug\": \"plisio\",\n \"name\": \"Plisio\",\n \"description\": \"Plisio is a cryptocurrency payment gateway that enables businesses to accept payments in over 15 cryptocurrencies, including Bitcoin, Ethereum, and Litecoin.\",\n \"category\": \"Payment Processing\",\n \"logo\": \"https://logos.composio.dev/api/plisio\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const plisioCatalog = {\n \"slug\": \"plisio\",\n \"name\": \"Plisio\",\n \"description\": \"Plisio is a cryptocurrency payment gateway that enables businesses to accept payments in over 15 cryptocurrencies, including Bitcoin, Ethereum, and Litecoin.\",\n \"category\": \"Payment Processing\",\n \"logo\": \"https://logos.composio.dev/api/plisio\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Plisio API Key\",\n \"secret\": true,\n \"description\": \"Your personal secret key used for API authentication.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const plisioCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/plisio";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "Plisio API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your personal secret key used for API authentication.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { plisioCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const plisioCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/plisio";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "Plisio API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your personal secret key used for API authentication.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { plisioCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const plisioCatalog = {
|
|
|
7
7
|
"category": "Payment Processing",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/plisio",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "Plisio API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your personal secret key used for API authentication."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { plisioCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const plisioCatalog = {\n \"slug\": \"plisio\",\n \"name\": \"Plisio\",\n \"description\": \"Plisio is a cryptocurrency payment gateway that enables businesses to accept payments in over 15 cryptocurrencies, including Bitcoin, Ethereum, and Litecoin.\",\n \"category\": \"Payment Processing\",\n \"logo\": \"https://logos.composio.dev/api/plisio\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const plisioCatalog = {\n \"slug\": \"plisio\",\n \"name\": \"Plisio\",\n \"description\": \"Plisio is a cryptocurrency payment gateway that enables businesses to accept payments in over 15 cryptocurrencies, including Bitcoin, Ethereum, and Litecoin.\",\n \"category\": \"Payment Processing\",\n \"logo\": \"https://logos.composio.dev/api/plisio\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Plisio API Key\",\n \"secret\": true,\n \"description\": \"Your personal secret key used for API authentication.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/plisio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|