@keystrokehq/pilvio 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/check-active-campaigns.cjs +16 -0
- package/dist/actions/check-active-campaigns.cjs.map +1 -0
- package/dist/actions/check-active-campaigns.d.cts +9 -0
- package/dist/actions/check-active-campaigns.d.cts.map +1 -0
- package/dist/actions/check-active-campaigns.d.mts +9 -0
- package/dist/actions/check-active-campaigns.d.mts.map +1 -0
- package/dist/actions/check-active-campaigns.mjs +13 -0
- package/dist/actions/check-active-campaigns.mjs.map +1 -0
- package/dist/actions/get-user-info.cjs +36 -0
- package/dist/actions/get-user-info.cjs.map +1 -0
- package/dist/actions/get-user-info.d.cts +9 -0
- package/dist/actions/get-user-info.d.cts.map +1 -0
- package/dist/actions/get-user-info.d.mts +9 -0
- package/dist/actions/get-user-info.d.mts.map +1 -0
- package/dist/actions/get-user-info.mjs +35 -0
- package/dist/actions/get-user-info.mjs.map +1 -0
- package/dist/actions/index.cjs +21 -0
- package/dist/actions/index.d.cts +11 -0
- package/dist/actions/index.d.mts +11 -0
- package/dist/actions/index.mjs +11 -0
- package/dist/actions/list-billing-accounts.cjs +16 -0
- package/dist/actions/list-billing-accounts.cjs.map +1 -0
- package/dist/actions/list-billing-accounts.d.cts +9 -0
- package/dist/actions/list-billing-accounts.d.cts.map +1 -0
- package/dist/actions/list-billing-accounts.d.mts +9 -0
- package/dist/actions/list-billing-accounts.d.mts.map +1 -0
- package/dist/actions/list-billing-accounts.mjs +13 -0
- package/dist/actions/list-billing-accounts.mjs.map +1 -0
- package/dist/actions/list-credit-cards.cjs +26 -0
- package/dist/actions/list-credit-cards.cjs.map +1 -0
- package/dist/actions/list-credit-cards.d.cts +9 -0
- package/dist/actions/list-credit-cards.d.cts.map +1 -0
- package/dist/actions/list-credit-cards.d.mts +9 -0
- package/dist/actions/list-credit-cards.d.mts.map +1 -0
- package/dist/actions/list-credit-cards.mjs +25 -0
- package/dist/actions/list-credit-cards.mjs.map +1 -0
- package/dist/actions/list-invoices.cjs +40 -0
- package/dist/actions/list-invoices.cjs.map +1 -0
- package/dist/actions/list-invoices.d.cts +9 -0
- package/dist/actions/list-invoices.d.cts.map +1 -0
- package/dist/actions/list-invoices.d.mts +9 -0
- package/dist/actions/list-invoices.d.mts.map +1 -0
- package/dist/actions/list-invoices.mjs +39 -0
- package/dist/actions/list-invoices.mjs.map +1 -0
- package/dist/actions/list-locations.cjs +27 -0
- package/dist/actions/list-locations.cjs.map +1 -0
- package/dist/actions/list-locations.d.cts +9 -0
- package/dist/actions/list-locations.d.cts.map +1 -0
- package/dist/actions/list-locations.d.mts +9 -0
- package/dist/actions/list-locations.d.mts.map +1 -0
- package/dist/actions/list-locations.mjs +26 -0
- package/dist/actions/list-locations.mjs.map +1 -0
- package/dist/actions/list-vm-resource-pools.cjs +36 -0
- package/dist/actions/list-vm-resource-pools.cjs.map +1 -0
- package/dist/actions/list-vm-resource-pools.d.cts +9 -0
- package/dist/actions/list-vm-resource-pools.d.cts.map +1 -0
- package/dist/actions/list-vm-resource-pools.d.mts +9 -0
- package/dist/actions/list-vm-resource-pools.d.mts.map +1 -0
- package/dist/actions/list-vm-resource-pools.mjs +35 -0
- package/dist/actions/list-vm-resource-pools.mjs.map +1 -0
- package/dist/actions/list-vm-snapshots.cjs +30 -0
- package/dist/actions/list-vm-snapshots.cjs.map +1 -0
- package/dist/actions/list-vm-snapshots.d.cts +9 -0
- package/dist/actions/list-vm-snapshots.d.cts.map +1 -0
- package/dist/actions/list-vm-snapshots.d.mts +9 -0
- package/dist/actions/list-vm-snapshots.d.mts.map +1 -0
- package/dist/actions/list-vm-snapshots.mjs +29 -0
- package/dist/actions/list-vm-snapshots.mjs.map +1 -0
- package/dist/actions/list-vms.cjs +35 -0
- package/dist/actions/list-vms.cjs.map +1 -0
- package/dist/actions/list-vms.d.cts +9 -0
- package/dist/actions/list-vms.d.cts.map +1 -0
- package/dist/actions/list-vms.d.mts +9 -0
- package/dist/actions/list-vms.d.mts.map +1 -0
- package/dist/actions/list-vms.mjs +34 -0
- package/dist/actions/list-vms.mjs.map +1 -0
- package/dist/actions/update-user-profile.cjs +42 -0
- package/dist/actions/update-user-profile.cjs.map +1 -0
- package/dist/actions/update-user-profile.d.cts +9 -0
- package/dist/actions/update-user-profile.d.cts.map +1 -0
- package/dist/actions/update-user-profile.d.mts +9 -0
- package/dist/actions/update-user-profile.d.mts.map +1 -0
- package/dist/actions/update-user-profile.mjs +41 -0
- package/dist/actions/update-user-profile.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +26 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.mts +13 -0
- package/dist/index.mjs +14 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/pilvio
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `pilvio`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 10
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { pilvioCheckActiveCampaigns } from "@keystrokehq/pilvio/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "pilvio-agent",
|
|
15
|
+
tools: [pilvioCheckActiveCampaigns],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.pilvio.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executePilvioTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["pilvio","executePilvioTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pilvio } from \"./app\";\nimport { executePilvioTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pilvio.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePilvioTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { pilvio } from "./app.mjs";
|
|
2
|
+
import { executePilvioTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return pilvio.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executePilvioTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pilvio } from \"./app\";\nimport { executePilvioTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pilvio.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePilvioTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/check-active-campaigns.ts
|
|
4
|
+
const PilvioCheckActiveCampaignsInput = zod.z.object({}).describe("Request model for checking active campaigns. No parameters required.");
|
|
5
|
+
const PilvioCheckActiveCampaignsOutput = zod.z.object({ success: zod.z.boolean().describe("True if there are active campaigns.") }).describe("Response model indicating whether any active campaigns exist.");
|
|
6
|
+
const pilvioCheckActiveCampaigns = require_action.action("PILVIO_CHECK_ACTIVE_CAMPAIGNS", {
|
|
7
|
+
slug: "pilvio-check-active-campaigns",
|
|
8
|
+
name: "Check Active Campaigns",
|
|
9
|
+
description: "Tool to check for active campaigns. Use when you need to verify whether any campaigns are currently active.",
|
|
10
|
+
input: PilvioCheckActiveCampaignsInput,
|
|
11
|
+
output: PilvioCheckActiveCampaignsOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.pilvioCheckActiveCampaigns = pilvioCheckActiveCampaigns;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=check-active-campaigns.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-active-campaigns.cjs","names":["z","action"],"sources":["../../src/actions/check-active-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioCheckActiveCampaignsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for checking active campaigns. No parameters required.\");\nexport const PilvioCheckActiveCampaignsOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if there are active campaigns.\"),\n}).describe(\"Response model indicating whether any active campaigns exist.\");\n\nexport const pilvioCheckActiveCampaigns = action(\"PILVIO_CHECK_ACTIVE_CAMPAIGNS\", {\n slug: \"pilvio-check-active-campaigns\",\n name: \"Check Active Campaigns\",\n description: \"Tool to check for active campaigns. Use when you need to verify whether any campaigns are currently active.\",\n input: PilvioCheckActiveCampaignsInput,\n output: PilvioCheckActiveCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAAsE;AACzJ,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,EACrE,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/check-active-campaigns.d.ts
|
|
4
|
+
declare const PilvioCheckActiveCampaignsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioCheckActiveCampaignsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioCheckActiveCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioCheckActiveCampaigns };
|
|
9
|
+
//# sourceMappingURL=check-active-campaigns.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-active-campaigns.d.cts","names":[],"sources":["../../src/actions/check-active-campaigns.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAA0G;AAAA,cAC7I,gCAAA,EAAkC,CAAA,CAAE,UAE2B;AAAA,cAE/D,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/check-active-campaigns.d.ts
|
|
4
|
+
declare const PilvioCheckActiveCampaignsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioCheckActiveCampaignsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioCheckActiveCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioCheckActiveCampaigns };
|
|
9
|
+
//# sourceMappingURL=check-active-campaigns.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-active-campaigns.d.mts","names":[],"sources":["../../src/actions/check-active-campaigns.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAA0G;AAAA,cAC7I,gCAAA,EAAkC,CAAA,CAAE,UAE2B;AAAA,cAE/D,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pilvioCheckActiveCampaigns = action("PILVIO_CHECK_ACTIVE_CAMPAIGNS", {
|
|
4
|
+
slug: "pilvio-check-active-campaigns",
|
|
5
|
+
name: "Check Active Campaigns",
|
|
6
|
+
description: "Tool to check for active campaigns. Use when you need to verify whether any campaigns are currently active.",
|
|
7
|
+
input: z.object({}).describe("Request model for checking active campaigns. No parameters required."),
|
|
8
|
+
output: z.object({ success: z.boolean().describe("True if there are active campaigns.") }).describe("Response model indicating whether any active campaigns exist.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { pilvioCheckActiveCampaigns };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=check-active-campaigns.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-active-campaigns.mjs","names":[],"sources":["../../src/actions/check-active-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioCheckActiveCampaignsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for checking active campaigns. No parameters required.\");\nexport const PilvioCheckActiveCampaignsOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if there are active campaigns.\"),\n}).describe(\"Response model indicating whether any active campaigns exist.\");\n\nexport const pilvioCheckActiveCampaigns = action(\"PILVIO_CHECK_ACTIVE_CAMPAIGNS\", {\n slug: \"pilvio-check-active-campaigns\",\n name: \"Check Active Campaigns\",\n description: \"Tool to check for active campaigns. Use when you need to verify whether any campaigns are currently active.\",\n input: PilvioCheckActiveCampaignsInput,\n output: PilvioCheckActiveCampaignsOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT2D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAS1E;CACP,QAT4D,EAAE,OAAO,EACrE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,EACrE,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-user-info.ts
|
|
4
|
+
const PilvioGetUserInfoInput = zod.z.object({}).describe("Request schema for GetUserInfo. No parameters required.");
|
|
5
|
+
const PilvioGetUserInfo_ProfileDataSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Profile ID").nullable().optional(),
|
|
7
|
+
lang: zod.z.string().describe("User's preferred language").nullable().optional(),
|
|
8
|
+
email: zod.z.string().describe("User's email address").nullable().optional(),
|
|
9
|
+
avatar: zod.z.string().describe("User's avatar URL").nullable().optional(),
|
|
10
|
+
user_id: zod.z.number().int().describe("User ID in profile data"),
|
|
11
|
+
last_name: zod.z.string().describe("User's last name").nullable().optional(),
|
|
12
|
+
created_at: zod.z.string().describe("Profile creation timestamp").nullable().optional(),
|
|
13
|
+
first_name: zod.z.string().describe("User's first name").nullable().optional(),
|
|
14
|
+
updated_at: zod.z.string().describe("Profile last update timestamp").nullable().optional(),
|
|
15
|
+
phone_number: zod.z.string().describe("User's phone number").nullable().optional(),
|
|
16
|
+
personal_id_number: zod.z.string().describe("User's personal ID number").nullable().optional()
|
|
17
|
+
}).describe("Profile data for the user.");
|
|
18
|
+
const PilvioGetUserInfoOutput = zod.z.object({
|
|
19
|
+
id: zod.z.number().int().describe("Unique identifier of the user"),
|
|
20
|
+
name: zod.z.string().describe("User's name (typically the email)"),
|
|
21
|
+
cookie_id: zod.z.string().describe("Cookie identifier").nullable().optional(),
|
|
22
|
+
signup_site: zod.z.string().describe("Site where user signed up").nullable().optional(),
|
|
23
|
+
profile_data: PilvioGetUserInfo_ProfileDataSchema.nullable().optional(),
|
|
24
|
+
intercom_user_hash: zod.z.string().describe("Intercom user hash for support integration").nullable().optional()
|
|
25
|
+
}).describe("Response schema for GetUserInfo - represents the user data returned by the API.");
|
|
26
|
+
const pilvioGetUserInfo = require_action.action("PILVIO_GET_USER_INFO", {
|
|
27
|
+
slug: "pilvio-get-user-info",
|
|
28
|
+
name: "Get User Info",
|
|
29
|
+
description: "Tool to retrieve information about the authenticated user. Use when you need to fetch the current user's profile after authentication.",
|
|
30
|
+
input: PilvioGetUserInfoInput,
|
|
31
|
+
output: PilvioGetUserInfoOutput
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.pilvioGetUserInfo = pilvioGetUserInfo;
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=get-user-info.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-info.cjs","names":["z","action"],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioGetUserInfoInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for GetUserInfo. No parameters required.\");\nconst PilvioGetUserInfo_ProfileDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Profile ID\").nullable().optional(),\n lang: z.string().describe(\"User's preferred language\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n avatar: z.string().describe(\"User's avatar URL\").nullable().optional(),\n user_id: z.number().int().describe(\"User ID in profile data\"),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n created_at: z.string().describe(\"Profile creation timestamp\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n updated_at: z.string().describe(\"Profile last update timestamp\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number\").nullable().optional(),\n personal_id_number: z.string().describe(\"User's personal ID number\").nullable().optional(),\n}).describe(\"Profile data for the user.\");\nexport const PilvioGetUserInfoOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\"),\n name: z.string().describe(\"User's name (typically the email)\"),\n cookie_id: z.string().describe(\"Cookie identifier\").nullable().optional(),\n signup_site: z.string().describe(\"Site where user signed up\").nullable().optional(),\n profile_data: PilvioGetUserInfo_ProfileDataSchema.nullable().optional(),\n intercom_user_hash: z.string().describe(\"Intercom user hash for support integration\").nullable().optional(),\n}).describe(\"Response schema for GetUserInfo - represents the user data returned by the API.\");\n\nexport const pilvioGetUserInfo = action(\"PILVIO_GET_USER_INFO\", {\n slug: \"pilvio-get-user-info\",\n name: \"Get User Info\",\n description: \"Tool to retrieve information about the authenticated user. Use when you need to fetch the current user's profile after authentication.\",\n input: PilvioGetUserInfoInput,\n output: PilvioGetUserInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACnI,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACtE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,oBAAoBC,eAAAA,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-user-info.d.ts
|
|
4
|
+
declare const PilvioGetUserInfoInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioGetUserInfoOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioGetUserInfo };
|
|
9
|
+
//# sourceMappingURL=get-user-info.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-info.d.cts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAA6F;AAAA,cAcvH,uBAAA,EAAyB,CAAA,CAAE,UAOsD;AAAA,cAEjF,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-user-info.d.ts
|
|
4
|
+
declare const PilvioGetUserInfoInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioGetUserInfoOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioGetUserInfo };
|
|
9
|
+
//# sourceMappingURL=get-user-info.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-info.d.mts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAA6F;AAAA,cAcvH,uBAAA,EAAyB,CAAA,CAAE,UAOsD;AAAA,cAEjF,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-user-info.ts
|
|
4
|
+
const PilvioGetUserInfoInput = z.object({}).describe("Request schema for GetUserInfo. No parameters required.");
|
|
5
|
+
const PilvioGetUserInfo_ProfileDataSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Profile ID").nullable().optional(),
|
|
7
|
+
lang: z.string().describe("User's preferred language").nullable().optional(),
|
|
8
|
+
email: z.string().describe("User's email address").nullable().optional(),
|
|
9
|
+
avatar: z.string().describe("User's avatar URL").nullable().optional(),
|
|
10
|
+
user_id: z.number().int().describe("User ID in profile data"),
|
|
11
|
+
last_name: z.string().describe("User's last name").nullable().optional(),
|
|
12
|
+
created_at: z.string().describe("Profile creation timestamp").nullable().optional(),
|
|
13
|
+
first_name: z.string().describe("User's first name").nullable().optional(),
|
|
14
|
+
updated_at: z.string().describe("Profile last update timestamp").nullable().optional(),
|
|
15
|
+
phone_number: z.string().describe("User's phone number").nullable().optional(),
|
|
16
|
+
personal_id_number: z.string().describe("User's personal ID number").nullable().optional()
|
|
17
|
+
}).describe("Profile data for the user.");
|
|
18
|
+
const pilvioGetUserInfo = action("PILVIO_GET_USER_INFO", {
|
|
19
|
+
slug: "pilvio-get-user-info",
|
|
20
|
+
name: "Get User Info",
|
|
21
|
+
description: "Tool to retrieve information about the authenticated user. Use when you need to fetch the current user's profile after authentication.",
|
|
22
|
+
input: PilvioGetUserInfoInput,
|
|
23
|
+
output: z.object({
|
|
24
|
+
id: z.number().int().describe("Unique identifier of the user"),
|
|
25
|
+
name: z.string().describe("User's name (typically the email)"),
|
|
26
|
+
cookie_id: z.string().describe("Cookie identifier").nullable().optional(),
|
|
27
|
+
signup_site: z.string().describe("Site where user signed up").nullable().optional(),
|
|
28
|
+
profile_data: PilvioGetUserInfo_ProfileDataSchema.nullable().optional(),
|
|
29
|
+
intercom_user_hash: z.string().describe("Intercom user hash for support integration").nullable().optional()
|
|
30
|
+
}).describe("Response schema for GetUserInfo - represents the user data returned by the API.")
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { pilvioGetUserInfo };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=get-user-info.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-info.mjs","names":[],"sources":["../../src/actions/get-user-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioGetUserInfoInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for GetUserInfo. No parameters required.\");\nconst PilvioGetUserInfo_ProfileDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Profile ID\").nullable().optional(),\n lang: z.string().describe(\"User's preferred language\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n avatar: z.string().describe(\"User's avatar URL\").nullable().optional(),\n user_id: z.number().int().describe(\"User ID in profile data\"),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n created_at: z.string().describe(\"Profile creation timestamp\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n updated_at: z.string().describe(\"Profile last update timestamp\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number\").nullable().optional(),\n personal_id_number: z.string().describe(\"User's personal ID number\").nullable().optional(),\n}).describe(\"Profile data for the user.\");\nexport const PilvioGetUserInfoOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\"),\n name: z.string().describe(\"User's name (typically the email)\"),\n cookie_id: z.string().describe(\"Cookie identifier\").nullable().optional(),\n signup_site: z.string().describe(\"Site where user signed up\").nullable().optional(),\n profile_data: PilvioGetUserInfo_ProfileDataSchema.nullable().optional(),\n intercom_user_hash: z.string().describe(\"Intercom user hash for support integration\").nullable().optional(),\n}).describe(\"Response schema for GetUserInfo - represents the user data returned by the API.\");\n\nexport const pilvioGetUserInfo = action(\"PILVIO_GET_USER_INFO\", {\n slug: \"pilvio-get-user-info\",\n name: \"Get User Info\",\n description: \"Tool to retrieve information about the authenticated user. Use when you need to fetch the current user's profile after authentication.\",\n input: PilvioGetUserInfoInput,\n output: PilvioGetUserInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACnI,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,4BAA4B;AAUxC,MAAa,oBAAoB,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,cAAc,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACtE,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_check_active_campaigns = require("./check-active-campaigns.cjs");
|
|
3
|
+
const require_get_user_info = require("./get-user-info.cjs");
|
|
4
|
+
const require_list_billing_accounts = require("./list-billing-accounts.cjs");
|
|
5
|
+
const require_list_credit_cards = require("./list-credit-cards.cjs");
|
|
6
|
+
const require_list_invoices = require("./list-invoices.cjs");
|
|
7
|
+
const require_list_locations = require("./list-locations.cjs");
|
|
8
|
+
const require_list_vm_resource_pools = require("./list-vm-resource-pools.cjs");
|
|
9
|
+
const require_list_vm_snapshots = require("./list-vm-snapshots.cjs");
|
|
10
|
+
const require_list_vms = require("./list-vms.cjs");
|
|
11
|
+
const require_update_user_profile = require("./update-user-profile.cjs");
|
|
12
|
+
exports.pilvioCheckActiveCampaigns = require_check_active_campaigns.pilvioCheckActiveCampaigns;
|
|
13
|
+
exports.pilvioGetUserInfo = require_get_user_info.pilvioGetUserInfo;
|
|
14
|
+
exports.pilvioListBillingAccounts = require_list_billing_accounts.pilvioListBillingAccounts;
|
|
15
|
+
exports.pilvioListCreditCards = require_list_credit_cards.pilvioListCreditCards;
|
|
16
|
+
exports.pilvioListInvoices = require_list_invoices.pilvioListInvoices;
|
|
17
|
+
exports.pilvioListLocations = require_list_locations.pilvioListLocations;
|
|
18
|
+
exports.pilvioListVmResourcePools = require_list_vm_resource_pools.pilvioListVmResourcePools;
|
|
19
|
+
exports.pilvioListVmSnapshots = require_list_vm_snapshots.pilvioListVmSnapshots;
|
|
20
|
+
exports.pilvioListVms = require_list_vms.pilvioListVms;
|
|
21
|
+
exports.pilvioUpdateUserProfile = require_update_user_profile.pilvioUpdateUserProfile;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { pilvioCheckActiveCampaigns } from "./check-active-campaigns.cjs";
|
|
2
|
+
import { pilvioGetUserInfo } from "./get-user-info.cjs";
|
|
3
|
+
import { pilvioListBillingAccounts } from "./list-billing-accounts.cjs";
|
|
4
|
+
import { pilvioListCreditCards } from "./list-credit-cards.cjs";
|
|
5
|
+
import { pilvioListInvoices } from "./list-invoices.cjs";
|
|
6
|
+
import { pilvioListLocations } from "./list-locations.cjs";
|
|
7
|
+
import { pilvioListVmResourcePools } from "./list-vm-resource-pools.cjs";
|
|
8
|
+
import { pilvioListVmSnapshots } from "./list-vm-snapshots.cjs";
|
|
9
|
+
import { pilvioListVms } from "./list-vms.cjs";
|
|
10
|
+
import { pilvioUpdateUserProfile } from "./update-user-profile.cjs";
|
|
11
|
+
export { pilvioCheckActiveCampaigns, pilvioGetUserInfo, pilvioListBillingAccounts, pilvioListCreditCards, pilvioListInvoices, pilvioListLocations, pilvioListVmResourcePools, pilvioListVmSnapshots, pilvioListVms, pilvioUpdateUserProfile };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { pilvioCheckActiveCampaigns } from "./check-active-campaigns.mjs";
|
|
2
|
+
import { pilvioGetUserInfo } from "./get-user-info.mjs";
|
|
3
|
+
import { pilvioListBillingAccounts } from "./list-billing-accounts.mjs";
|
|
4
|
+
import { pilvioListCreditCards } from "./list-credit-cards.mjs";
|
|
5
|
+
import { pilvioListInvoices } from "./list-invoices.mjs";
|
|
6
|
+
import { pilvioListLocations } from "./list-locations.mjs";
|
|
7
|
+
import { pilvioListVmResourcePools } from "./list-vm-resource-pools.mjs";
|
|
8
|
+
import { pilvioListVmSnapshots } from "./list-vm-snapshots.mjs";
|
|
9
|
+
import { pilvioListVms } from "./list-vms.mjs";
|
|
10
|
+
import { pilvioUpdateUserProfile } from "./update-user-profile.mjs";
|
|
11
|
+
export { pilvioCheckActiveCampaigns, pilvioGetUserInfo, pilvioListBillingAccounts, pilvioListCreditCards, pilvioListInvoices, pilvioListLocations, pilvioListVmResourcePools, pilvioListVmSnapshots, pilvioListVms, pilvioUpdateUserProfile };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { pilvioCheckActiveCampaigns } from "./check-active-campaigns.mjs";
|
|
2
|
+
import { pilvioGetUserInfo } from "./get-user-info.mjs";
|
|
3
|
+
import { pilvioListBillingAccounts } from "./list-billing-accounts.mjs";
|
|
4
|
+
import { pilvioListCreditCards } from "./list-credit-cards.mjs";
|
|
5
|
+
import { pilvioListInvoices } from "./list-invoices.mjs";
|
|
6
|
+
import { pilvioListLocations } from "./list-locations.mjs";
|
|
7
|
+
import { pilvioListVmResourcePools } from "./list-vm-resource-pools.mjs";
|
|
8
|
+
import { pilvioListVmSnapshots } from "./list-vm-snapshots.mjs";
|
|
9
|
+
import { pilvioListVms } from "./list-vms.mjs";
|
|
10
|
+
import { pilvioUpdateUserProfile } from "./update-user-profile.mjs";
|
|
11
|
+
export { pilvioCheckActiveCampaigns, pilvioGetUserInfo, pilvioListBillingAccounts, pilvioListCreditCards, pilvioListInvoices, pilvioListLocations, pilvioListVmResourcePools, pilvioListVmSnapshots, pilvioListVms, pilvioUpdateUserProfile };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-billing-accounts.ts
|
|
4
|
+
const PilvioListBillingAccountsInput = zod.z.object({}).describe("Request schema for listing billing accounts. No parameters are required.");
|
|
5
|
+
const PilvioListBillingAccountsOutput = zod.z.object({ billing_accounts: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of billing account objects") }).describe("Response schema containing list of billing accounts.");
|
|
6
|
+
const pilvioListBillingAccounts = require_action.action("PILVIO_LIST_BILLING_ACCOUNTS", {
|
|
7
|
+
slug: "pilvio-list-billing-accounts",
|
|
8
|
+
name: "List billing accounts",
|
|
9
|
+
description: "Tool to list billing accounts. Use when you need to fetch all billing accounts for management or reporting. Use after authenticating your Pilvio API key.",
|
|
10
|
+
input: PilvioListBillingAccountsInput,
|
|
11
|
+
output: PilvioListBillingAccountsOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.pilvioListBillingAccounts = pilvioListBillingAccounts;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=list-billing-accounts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-billing-accounts.cjs","names":["z","action"],"sources":["../../src/actions/list-billing-accounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListBillingAccountsInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for listing billing accounts. No parameters are required.\");\nexport const PilvioListBillingAccountsOutput: z.ZodTypeAny = z.object({\n billing_accounts: z.array(z.record(z.string(), z.unknown())).describe(\"List of billing account objects\"),\n}).describe(\"Response schema containing list of billing accounts.\");\n\nexport const pilvioListBillingAccounts = action(\"PILVIO_LIST_BILLING_ACCOUNTS\", {\n slug: \"pilvio-list-billing-accounts\",\n name: \"List billing accounts\",\n description: \"Tool to list billing accounts. Use when you need to fetch all billing accounts for management or reporting. Use after authenticating your Pilvio API key.\",\n input: PilvioListBillingAccountsInput,\n output: PilvioListBillingAccountsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAC5J,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC,EACzG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-billing-accounts.d.ts
|
|
4
|
+
declare const PilvioListBillingAccountsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioListBillingAccountsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioListBillingAccounts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioListBillingAccounts };
|
|
9
|
+
//# sourceMappingURL=list-billing-accounts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-billing-accounts.d.cts","names":[],"sources":["../../src/actions/list-billing-accounts.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAA8G;AAAA,cAChJ,+BAAA,EAAiC,CAAA,CAAE,UAEmB;AAAA,cAEtD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-billing-accounts.d.ts
|
|
4
|
+
declare const PilvioListBillingAccountsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioListBillingAccountsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioListBillingAccounts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioListBillingAccounts };
|
|
9
|
+
//# sourceMappingURL=list-billing-accounts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-billing-accounts.d.mts","names":[],"sources":["../../src/actions/list-billing-accounts.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAA8G;AAAA,cAChJ,+BAAA,EAAiC,CAAA,CAAE,UAEmB;AAAA,cAEtD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pilvioListBillingAccounts = action("PILVIO_LIST_BILLING_ACCOUNTS", {
|
|
4
|
+
slug: "pilvio-list-billing-accounts",
|
|
5
|
+
name: "List billing accounts",
|
|
6
|
+
description: "Tool to list billing accounts. Use when you need to fetch all billing accounts for management or reporting. Use after authenticating your Pilvio API key.",
|
|
7
|
+
input: z.object({}).describe("Request schema for listing billing accounts. No parameters are required."),
|
|
8
|
+
output: z.object({ billing_accounts: z.array(z.record(z.string(), z.unknown())).describe("List of billing account objects") }).describe("Response schema containing list of billing accounts.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { pilvioListBillingAccounts };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=list-billing-accounts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-billing-accounts.mjs","names":[],"sources":["../../src/actions/list-billing-accounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListBillingAccountsInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for listing billing accounts. No parameters are required.\");\nexport const PilvioListBillingAccountsOutput: z.ZodTypeAny = z.object({\n billing_accounts: z.array(z.record(z.string(), z.unknown())).describe(\"List of billing account objects\"),\n}).describe(\"Response schema containing list of billing accounts.\");\n\nexport const pilvioListBillingAccounts = action(\"PILVIO_LIST_BILLING_ACCOUNTS\", {\n slug: \"pilvio-list-billing-accounts\",\n name: \"List billing accounts\",\n description: \"Tool to list billing accounts. Use when you need to fetch all billing accounts for management or reporting. Use after authenticating your Pilvio API key.\",\n input: PilvioListBillingAccountsInput,\n output: PilvioListBillingAccountsOutput,\n});\n"],"mappings":";;AASA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT0D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EASzE;CACP,QAT2D,EAAE,OAAO,EACpE,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC,EACzG,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-credit-cards.ts
|
|
4
|
+
const PilvioListCreditCardsInput = zod.z.object({ billing_account_id: zod.z.string().describe("Path parameter. The ID of the billing account to list credit cards for.") });
|
|
5
|
+
const PilvioListCreditCards_CreditCardSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique credit card identifier"),
|
|
7
|
+
name: zod.z.string().describe("Name printed on the card"),
|
|
8
|
+
brand: zod.z.string().describe("Credit card brand, e.g., Visa, Mastercard"),
|
|
9
|
+
last4: zod.z.string().describe("Last four digits of the card"),
|
|
10
|
+
exp_year: zod.z.number().int().describe("Expiration year (YYYY)"),
|
|
11
|
+
exp_month: zod.z.number().int().describe("Expiration month (1-12, 0 if unknown)"),
|
|
12
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the card was added"),
|
|
13
|
+
is_default: zod.z.boolean().describe("True if this is the default card on the account")
|
|
14
|
+
});
|
|
15
|
+
const PilvioListCreditCardsOutput = zod.z.object({ credit_cards: zod.z.array(PilvioListCreditCards_CreditCardSchema).describe("List of credit card objects attached to the billing account") });
|
|
16
|
+
const pilvioListCreditCards = require_action.action("PILVIO_LIST_CREDIT_CARDS", {
|
|
17
|
+
slug: "pilvio-list-credit-cards",
|
|
18
|
+
name: "List Credit Cards",
|
|
19
|
+
description: "Tool to list credit cards attached to a billing account. Use after confirming the billing account ID. Example: \"Retrieve cards for billing_account_id 'ba_1234567890abcdef'.\"",
|
|
20
|
+
input: PilvioListCreditCardsInput,
|
|
21
|
+
output: PilvioListCreditCardsOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.pilvioListCreditCards = pilvioListCreditCards;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=list-credit-cards.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-credit-cards.cjs","names":["z","action"],"sources":["../../src/actions/list-credit-cards.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListCreditCardsInput: z.ZodTypeAny = z.object({\n billing_account_id: z.string().describe(\"Path parameter. The ID of the billing account to list credit cards for.\"),\n});\nconst PilvioListCreditCards_CreditCardSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique credit card identifier\"),\n name: z.string().describe(\"Name printed on the card\"),\n brand: z.string().describe(\"Credit card brand, e.g., Visa, Mastercard\"),\n last4: z.string().describe(\"Last four digits of the card\"),\n exp_year: z.number().int().describe(\"Expiration year (YYYY)\"),\n exp_month: z.number().int().describe(\"Expiration month (1-12, 0 if unknown)\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the card was added\"),\n is_default: z.boolean().describe(\"True if this is the default card on the account\"),\n});\nexport const PilvioListCreditCardsOutput: z.ZodTypeAny = z.object({\n credit_cards: z.array(PilvioListCreditCards_CreditCardSchema).describe(\"List of credit card objects attached to the billing account\"),\n});\n\nexport const pilvioListCreditCards = action(\"PILVIO_LIST_CREDIT_CARDS\", {\n slug: \"pilvio-list-credit-cards\",\n name: \"List Credit Cards\",\n description: \"Tool to list credit cards attached to a billing account. Use after confirming the billing account ID. Example: \\\"Retrieve cards for billing_account_id 'ba_1234567890abcdef'.\\\"\",\n input: PilvioListCreditCardsInput,\n output: PilvioListCreditCardsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EACnH,CAAC;AACD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;AACpF,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,cAAcA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6DAA6D,EACtI,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-credit-cards.d.ts
|
|
4
|
+
declare const PilvioListCreditCardsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioListCreditCardsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioListCreditCards: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioListCreditCards };
|
|
9
|
+
//# sourceMappingURL=list-credit-cards.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-credit-cards.d.cts","names":[],"sources":["../../src/actions/list-credit-cards.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAWW,2BAAA,EAA6B,CAAA,CAAE,UAE1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-credit-cards.d.ts
|
|
4
|
+
declare const PilvioListCreditCardsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioListCreditCardsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioListCreditCards: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioListCreditCards };
|
|
9
|
+
//# sourceMappingURL=list-credit-cards.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-credit-cards.d.mts","names":[],"sources":["../../src/actions/list-credit-cards.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAWW,2BAAA,EAA6B,CAAA,CAAE,UAE1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-credit-cards.ts
|
|
4
|
+
const PilvioListCreditCardsInput = z.object({ billing_account_id: z.string().describe("Path parameter. The ID of the billing account to list credit cards for.") });
|
|
5
|
+
const PilvioListCreditCards_CreditCardSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique credit card identifier"),
|
|
7
|
+
name: z.string().describe("Name printed on the card"),
|
|
8
|
+
brand: z.string().describe("Credit card brand, e.g., Visa, Mastercard"),
|
|
9
|
+
last4: z.string().describe("Last four digits of the card"),
|
|
10
|
+
exp_year: z.number().int().describe("Expiration year (YYYY)"),
|
|
11
|
+
exp_month: z.number().int().describe("Expiration month (1-12, 0 if unknown)"),
|
|
12
|
+
created_at: z.string().describe("ISO 8601 timestamp when the card was added"),
|
|
13
|
+
is_default: z.boolean().describe("True if this is the default card on the account")
|
|
14
|
+
});
|
|
15
|
+
const pilvioListCreditCards = action("PILVIO_LIST_CREDIT_CARDS", {
|
|
16
|
+
slug: "pilvio-list-credit-cards",
|
|
17
|
+
name: "List Credit Cards",
|
|
18
|
+
description: "Tool to list credit cards attached to a billing account. Use after confirming the billing account ID. Example: \"Retrieve cards for billing_account_id 'ba_1234567890abcdef'.\"",
|
|
19
|
+
input: PilvioListCreditCardsInput,
|
|
20
|
+
output: z.object({ credit_cards: z.array(PilvioListCreditCards_CreditCardSchema).describe("List of credit card objects attached to the billing account") })
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { pilvioListCreditCards };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=list-credit-cards.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-credit-cards.mjs","names":[],"sources":["../../src/actions/list-credit-cards.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListCreditCardsInput: z.ZodTypeAny = z.object({\n billing_account_id: z.string().describe(\"Path parameter. The ID of the billing account to list credit cards for.\"),\n});\nconst PilvioListCreditCards_CreditCardSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique credit card identifier\"),\n name: z.string().describe(\"Name printed on the card\"),\n brand: z.string().describe(\"Credit card brand, e.g., Visa, Mastercard\"),\n last4: z.string().describe(\"Last four digits of the card\"),\n exp_year: z.number().int().describe(\"Expiration year (YYYY)\"),\n exp_month: z.number().int().describe(\"Expiration month (1-12, 0 if unknown)\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the card was added\"),\n is_default: z.boolean().describe(\"True if this is the default card on the account\"),\n});\nexport const PilvioListCreditCardsOutput: z.ZodTypeAny = z.object({\n credit_cards: z.array(PilvioListCreditCards_CreditCardSchema).describe(\"List of credit card objects attached to the billing account\"),\n});\n\nexport const pilvioListCreditCards = action(\"PILVIO_LIST_CREDIT_CARDS\", {\n slug: \"pilvio-list-credit-cards\",\n name: \"List Credit Cards\",\n description: \"Tool to list credit cards attached to a billing account. Use after confirming the billing account ID. Example: \\\"Retrieve cards for billing_account_id 'ba_1234567890abcdef'.\\\"\",\n input: PilvioListCreditCardsInput,\n output: PilvioListCreditCardsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,EAC/D,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EACnH,CAAC;AACD,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;AACpF,CAAC;AAKD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,cAAc,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6DAA6D,EACtI,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-invoices.ts
|
|
4
|
+
const PilvioListInvoicesInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Number of invoices per page.").optional(),
|
|
6
|
+
offset: zod.z.number().int().describe("Pagination offset (zero-based).").optional(),
|
|
7
|
+
status: zod.z.enum([
|
|
8
|
+
"paid",
|
|
9
|
+
"unpaid",
|
|
10
|
+
"pending"
|
|
11
|
+
]).describe("Filter invoices by status.").optional(),
|
|
12
|
+
date_to: zod.z.string().describe("ISO 8601 timestamp (inclusive) to filter invoices created on or before this date.").optional(),
|
|
13
|
+
date_from: zod.z.string().describe("ISO 8601 timestamp (inclusive) to filter invoices created on or after this date.").optional(),
|
|
14
|
+
billing_account_id: zod.z.string().describe("Billing account ID to retrieve invoices for.")
|
|
15
|
+
}).describe("Request model for listing invoices. Use when you need to retrieve invoices for a specific billing account with optional pagination and filtering.");
|
|
16
|
+
const PilvioListInvoices_InvoiceSchema = zod.z.object({
|
|
17
|
+
id: zod.z.string().describe("Unique identifier of the invoice."),
|
|
18
|
+
amount: zod.z.number().describe("Total amount of the invoice."),
|
|
19
|
+
status: zod.z.string().describe("Current status of the invoice, e.g., 'paid' or 'unpaid'."),
|
|
20
|
+
currency: zod.z.string().describe("Currency code in ISO 4217 format, e.g., 'USD'."),
|
|
21
|
+
due_date: zod.z.string().describe("Due date of the invoice in ISO 8601 format."),
|
|
22
|
+
created_at: zod.z.string().describe("Timestamp when the invoice was created, in ISO 8601 format.")
|
|
23
|
+
}).describe("Details of a single invoice.");
|
|
24
|
+
const PilvioListInvoicesOutput = zod.z.object({
|
|
25
|
+
limit: zod.z.number().int().describe("Number of invoices returned in this page."),
|
|
26
|
+
total: zod.z.number().int().describe("Total number of invoices matching the query."),
|
|
27
|
+
offset: zod.z.number().int().describe("Offset of the first invoice in this page from the start of the result set."),
|
|
28
|
+
invoices: zod.z.array(PilvioListInvoices_InvoiceSchema).describe("List of invoice objects.")
|
|
29
|
+
}).describe("Response model containing list of invoices and pagination metadata.");
|
|
30
|
+
const pilvioListInvoices = require_action.action("PILVIO_LIST_INVOICES", {
|
|
31
|
+
slug: "pilvio-list-invoices",
|
|
32
|
+
name: "List Invoices",
|
|
33
|
+
description: "Tool to retrieve a list of invoices. Use after authentication to fetch and filter invoices for a billing account.",
|
|
34
|
+
input: PilvioListInvoicesInput,
|
|
35
|
+
output: PilvioListInvoicesOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.pilvioListInvoices = pilvioListInvoices;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=list-invoices.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-invoices.cjs","names":["z","action"],"sources":["../../src/actions/list-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListInvoicesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of invoices per page.\").optional(),\n offset: z.number().int().describe(\"Pagination offset (zero-based).\").optional(),\n status: z.enum([\"paid\", \"unpaid\", \"pending\"]).describe(\"Filter invoices by status.\").optional(),\n date_to: z.string().describe(\"ISO 8601 timestamp (inclusive) to filter invoices created on or before this date.\").optional(),\n date_from: z.string().describe(\"ISO 8601 timestamp (inclusive) to filter invoices created on or after this date.\").optional(),\n billing_account_id: z.string().describe(\"Billing account ID to retrieve invoices for.\"),\n}).describe(\"Request model for listing invoices. Use when you need to retrieve invoices for a specific billing account with optional pagination and filtering.\");\nconst PilvioListInvoices_InvoiceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the invoice.\"),\n amount: z.number().describe(\"Total amount of the invoice.\"),\n status: z.string().describe(\"Current status of the invoice, e.g., 'paid' or 'unpaid'.\"),\n currency: z.string().describe(\"Currency code in ISO 4217 format, e.g., 'USD'.\"),\n due_date: z.string().describe(\"Due date of the invoice in ISO 8601 format.\"),\n created_at: z.string().describe(\"Timestamp when the invoice was created, in ISO 8601 format.\"),\n}).describe(\"Details of a single invoice.\");\nexport const PilvioListInvoicesOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of invoices returned in this page.\"),\n total: z.number().int().describe(\"Total number of invoices matching the query.\"),\n offset: z.number().int().describe(\"Offset of the first invoice in this page from the start of the result set.\"),\n invoices: z.array(PilvioListInvoices_InvoiceSchema).describe(\"List of invoice objects.\"),\n}).describe(\"Response model containing list of invoices and pagination metadata.\");\n\nexport const pilvioListInvoices = action(\"PILVIO_LIST_INVOICES\", {\n slug: \"pilvio-list-invoices\",\n name: \"List Invoices\",\n description: \"Tool to retrieve a list of invoices. Use after authentication to fetch and filter invoices for a billing account.\",\n input: PilvioListInvoicesInput,\n output: PilvioListInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC5H,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AACxF,CAAC,CAAC,CAAC,SAAS,mJAAmJ;AAC/J,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAC/F,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E;CAC9G,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,0BAA0B;AACzF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-invoices.d.ts
|
|
4
|
+
declare const PilvioListInvoicesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioListInvoicesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioListInvoices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioListInvoices };
|
|
9
|
+
//# sourceMappingURL=list-invoices.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-invoices.d.cts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOwH;AAAA,cASnJ,wBAAA,EAA0B,CAAA,CAAE,UAKyC;AAAA,cAErE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-invoices.d.ts
|
|
4
|
+
declare const PilvioListInvoicesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PilvioListInvoicesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pilvioListInvoices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pilvioListInvoices };
|
|
9
|
+
//# sourceMappingURL=list-invoices.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-invoices.d.mts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOwH;AAAA,cASnJ,wBAAA,EAA0B,CAAA,CAAE,UAKyC;AAAA,cAErE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|