@keystrokehq/pilvio 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/check-active-campaigns.cjs +1 -1
- package/dist/actions/check-active-campaigns.cjs.map +1 -1
- package/dist/actions/check-active-campaigns.d.cts +5 -3
- package/dist/actions/check-active-campaigns.d.cts.map +1 -1
- package/dist/actions/check-active-campaigns.d.mts +5 -3
- package/dist/actions/check-active-campaigns.d.mts.map +1 -1
- package/dist/actions/check-active-campaigns.mjs +1 -1
- package/dist/actions/check-active-campaigns.mjs.map +1 -1
- package/dist/actions/get-user-info.cjs +3 -3
- package/dist/actions/get-user-info.cjs.map +1 -1
- package/dist/actions/get-user-info.d.cts +22 -3
- package/dist/actions/get-user-info.d.cts.map +1 -1
- package/dist/actions/get-user-info.d.mts +22 -3
- package/dist/actions/get-user-info.d.mts.map +1 -1
- package/dist/actions/get-user-info.mjs +3 -3
- package/dist/actions/get-user-info.mjs.map +1 -1
- package/dist/actions/list-billing-accounts.cjs.map +1 -1
- package/dist/actions/list-billing-accounts.d.cts +5 -3
- package/dist/actions/list-billing-accounts.d.cts.map +1 -1
- package/dist/actions/list-billing-accounts.d.mts +5 -3
- package/dist/actions/list-billing-accounts.d.mts.map +1 -1
- package/dist/actions/list-billing-accounts.mjs.map +1 -1
- package/dist/actions/list-credit-cards.cjs +8 -8
- package/dist/actions/list-credit-cards.cjs.map +1 -1
- package/dist/actions/list-credit-cards.d.cts +18 -3
- package/dist/actions/list-credit-cards.d.cts.map +1 -1
- package/dist/actions/list-credit-cards.d.mts +18 -3
- package/dist/actions/list-credit-cards.d.mts.map +1 -1
- package/dist/actions/list-credit-cards.mjs +8 -8
- package/dist/actions/list-credit-cards.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +9 -9
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +33 -3
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +33 -3
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +9 -9
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-locations.cjs +5 -5
- package/dist/actions/list-locations.cjs.map +1 -1
- package/dist/actions/list-locations.d.cts +15 -3
- package/dist/actions/list-locations.d.cts.map +1 -1
- package/dist/actions/list-locations.d.mts +15 -3
- package/dist/actions/list-locations.d.mts.map +1 -1
- package/dist/actions/list-locations.mjs +5 -5
- package/dist/actions/list-locations.mjs.map +1 -1
- package/dist/actions/list-vm-resource-pools.cjs +9 -9
- package/dist/actions/list-vm-resource-pools.cjs.map +1 -1
- package/dist/actions/list-vm-resource-pools.d.cts +24 -3
- package/dist/actions/list-vm-resource-pools.d.cts.map +1 -1
- package/dist/actions/list-vm-resource-pools.d.mts +24 -3
- package/dist/actions/list-vm-resource-pools.d.mts.map +1 -1
- package/dist/actions/list-vm-resource-pools.mjs +9 -9
- package/dist/actions/list-vm-resource-pools.mjs.map +1 -1
- package/dist/actions/list-vm-snapshots.cjs +1 -1
- package/dist/actions/list-vm-snapshots.cjs.map +1 -1
- package/dist/actions/list-vm-snapshots.d.cts +21 -3
- package/dist/actions/list-vm-snapshots.d.cts.map +1 -1
- package/dist/actions/list-vm-snapshots.d.mts +21 -3
- package/dist/actions/list-vm-snapshots.d.mts.map +1 -1
- package/dist/actions/list-vm-snapshots.mjs +1 -1
- package/dist/actions/list-vm-snapshots.mjs.map +1 -1
- package/dist/actions/list-vms.cjs +10 -10
- package/dist/actions/list-vms.cjs.map +1 -1
- package/dist/actions/list-vms.d.cts +28 -3
- package/dist/actions/list-vms.d.cts.map +1 -1
- package/dist/actions/list-vms.d.mts +28 -3
- package/dist/actions/list-vms.d.mts.map +1 -1
- package/dist/actions/list-vms.mjs +10 -10
- package/dist/actions/list-vms.mjs.map +1 -1
- package/dist/actions/update-user-profile.cjs +8 -8
- package/dist/actions/update-user-profile.cjs.map +1 -1
- package/dist/actions/update-user-profile.d.cts +34 -3
- package/dist/actions/update-user-profile.d.cts.map +1 -1
- package/dist/actions/update-user-profile.d.mts +34 -3
- package/dist/actions/update-user-profile.d.mts.map +1 -1
- package/dist/actions/update-user-profile.mjs +8 -8
- package/dist/actions/update-user-profile.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return pilvio.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await 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.map
CHANGED
|
@@ -1 +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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return pilvio.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await 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"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/check-active-campaigns.ts
|
|
4
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.");
|
|
5
|
+
const PilvioCheckActiveCampaignsOutput = zod.z.object({ success: zod.z.boolean().describe("True if there are active campaigns.").nullable() }).describe("Response model indicating whether any active campaigns exist.");
|
|
6
6
|
const pilvioCheckActiveCampaigns = require_action.action("PILVIO_CHECK_ACTIVE_CAMPAIGNS", {
|
|
7
7
|
slug: "pilvio-check-active-campaigns",
|
|
8
8
|
name: "Check Active Campaigns",
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for checking active campaigns. No parameters required.\");\nexport const PilvioCheckActiveCampaignsOutput = z.object({\n success: z.boolean().describe(\"True if there are active campaigns.\").nullable(),\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,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAC3I,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/check-active-campaigns.d.ts
|
|
4
|
-
declare const PilvioCheckActiveCampaignsInput: z.
|
|
5
|
-
declare const PilvioCheckActiveCampaignsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PilvioCheckActiveCampaignsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PilvioCheckActiveCampaignsOutput: z.ZodObject<{
|
|
6
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const pilvioCheckActiveCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { pilvioCheckActiveCampaigns };
|
|
9
11
|
//# sourceMappingURL=check-active-campaigns.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-active-campaigns.d.cts","names":[],"sources":["../../src/actions/check-active-campaigns.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"check-active-campaigns.d.cts","names":[],"sources":["../../src/actions/check-active-campaigns.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/check-active-campaigns.d.ts
|
|
4
|
-
declare const PilvioCheckActiveCampaignsInput: z.
|
|
5
|
-
declare const PilvioCheckActiveCampaignsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PilvioCheckActiveCampaignsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PilvioCheckActiveCampaignsOutput: z.ZodObject<{
|
|
6
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const pilvioCheckActiveCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { pilvioCheckActiveCampaigns };
|
|
9
11
|
//# sourceMappingURL=check-active-campaigns.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-active-campaigns.d.mts","names":[],"sources":["../../src/actions/check-active-campaigns.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"check-active-campaigns.d.mts","names":[],"sources":["../../src/actions/check-active-campaigns.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -5,7 +5,7 @@ const pilvioCheckActiveCampaigns = action("PILVIO_CHECK_ACTIVE_CAMPAIGNS", {
|
|
|
5
5
|
name: "Check Active Campaigns",
|
|
6
6
|
description: "Tool to check for active campaigns. Use when you need to verify whether any campaigns are currently active.",
|
|
7
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.")
|
|
8
|
+
output: z.object({ success: z.boolean().describe("True if there are active campaigns.").nullable() }).describe("Response model indicating whether any active campaigns exist.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { pilvioCheckActiveCampaigns };
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for checking active campaigns. No parameters required.\");\nexport const PilvioCheckActiveCampaignsOutput = z.object({\n success: z.boolean().describe(\"True if there are active campaigns.\").nullable(),\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,OAT6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAS5D;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const PilvioGetUserInfo_ProfileDataSchema = zod.z.object({
|
|
|
7
7
|
lang: zod.z.string().describe("User's preferred language").nullable().optional(),
|
|
8
8
|
email: zod.z.string().describe("User's email address").nullable().optional(),
|
|
9
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"),
|
|
10
|
+
user_id: zod.z.number().int().describe("User ID in profile data").nullable(),
|
|
11
11
|
last_name: zod.z.string().describe("User's last name").nullable().optional(),
|
|
12
12
|
created_at: zod.z.string().describe("Profile creation timestamp").nullable().optional(),
|
|
13
13
|
first_name: zod.z.string().describe("User's first name").nullable().optional(),
|
|
@@ -16,8 +16,8 @@ const PilvioGetUserInfo_ProfileDataSchema = zod.z.object({
|
|
|
16
16
|
personal_id_number: zod.z.string().describe("User's personal ID number").nullable().optional()
|
|
17
17
|
}).describe("Profile data for the user.");
|
|
18
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)"),
|
|
19
|
+
id: zod.z.number().int().describe("Unique identifier of the user").nullable(),
|
|
20
|
+
name: zod.z.string().describe("User's name (typically the email)").nullable(),
|
|
21
21
|
cookie_id: zod.z.string().describe("Cookie identifier").nullable().optional(),
|
|
22
22
|
signup_site: zod.z.string().describe("Site where user signed up").nullable().optional(),
|
|
23
23
|
profile_data: PilvioGetUserInfo_ProfileDataSchema.nullable().optional(),
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request schema for GetUserInfo. No parameters required.\");\nconst PilvioGetUserInfo_ProfileDataSchema = 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\").nullable(),\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.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"User's name (typically the email)\").nullable(),\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,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrH,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,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,CAAC,CAAC,SAAS;CACvE,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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,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"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-user-info.d.ts
|
|
4
|
-
declare const PilvioGetUserInfoInput: z.
|
|
5
|
-
declare const PilvioGetUserInfoOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PilvioGetUserInfoInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PilvioGetUserInfoOutput: z.ZodObject<{
|
|
6
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
name: z.ZodNullable<z.ZodString>;
|
|
8
|
+
cookie_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
signup_site: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
profile_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
user_id: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
personal_id_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
intercom_user_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const pilvioGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { pilvioGetUserInfo };
|
|
9
28
|
//# sourceMappingURL=get-user-info.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-info.d.cts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-user-info.d.cts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cActB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cASvB,iBAAA,gCAAiB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-user-info.d.ts
|
|
4
|
-
declare const PilvioGetUserInfoInput: z.
|
|
5
|
-
declare const PilvioGetUserInfoOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PilvioGetUserInfoInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PilvioGetUserInfoOutput: z.ZodObject<{
|
|
6
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
name: z.ZodNullable<z.ZodString>;
|
|
8
|
+
cookie_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
signup_site: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
profile_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
user_id: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
personal_id_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
intercom_user_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const pilvioGetUserInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { pilvioGetUserInfo };
|
|
9
28
|
//# sourceMappingURL=get-user-info.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-info.d.mts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-user-info.d.mts","names":[],"sources":["../../src/actions/get-user-info.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cActB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cASvB,iBAAA,gCAAiB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -7,7 +7,7 @@ const PilvioGetUserInfo_ProfileDataSchema = z.object({
|
|
|
7
7
|
lang: z.string().describe("User's preferred language").nullable().optional(),
|
|
8
8
|
email: z.string().describe("User's email address").nullable().optional(),
|
|
9
9
|
avatar: z.string().describe("User's avatar URL").nullable().optional(),
|
|
10
|
-
user_id: z.number().int().describe("User ID in profile data"),
|
|
10
|
+
user_id: z.number().int().describe("User ID in profile data").nullable(),
|
|
11
11
|
last_name: z.string().describe("User's last name").nullable().optional(),
|
|
12
12
|
created_at: z.string().describe("Profile creation timestamp").nullable().optional(),
|
|
13
13
|
first_name: z.string().describe("User's first name").nullable().optional(),
|
|
@@ -21,8 +21,8 @@ const pilvioGetUserInfo = action("PILVIO_GET_USER_INFO", {
|
|
|
21
21
|
description: "Tool to retrieve information about the authenticated user. Use when you need to fetch the current user's profile after authentication.",
|
|
22
22
|
input: PilvioGetUserInfoInput,
|
|
23
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)"),
|
|
24
|
+
id: z.number().int().describe("Unique identifier of the user").nullable(),
|
|
25
|
+
name: z.string().describe("User's name (typically the email)").nullable(),
|
|
26
26
|
cookie_id: z.string().describe("Cookie identifier").nullable().optional(),
|
|
27
27
|
signup_site: z.string().describe("Site where user signed up").nullable().optional(),
|
|
28
28
|
profile_data: PilvioGetUserInfo_ProfileDataSchema.nullable().optional(),
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request schema for GetUserInfo. No parameters required.\");\nconst PilvioGetUserInfo_ProfileDataSchema = 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\").nullable(),\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.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"User's name (typically the email)\").nullable(),\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,yBAAyB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrH,MAAM,sCAAsC,EAAE,OAAO;CACnD,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,CAAC,CAAC,SAAS;CACvE,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,QAdqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,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"}
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request schema for listing billing accounts. No parameters are required.\");\nexport const PilvioListBillingAccountsOutput = 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,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAC9I,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,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"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-billing-accounts.d.ts
|
|
4
|
-
declare const PilvioListBillingAccountsInput: z.
|
|
5
|
-
declare const PilvioListBillingAccountsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PilvioListBillingAccountsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PilvioListBillingAccountsOutput: z.ZodObject<{
|
|
6
|
+
billing_accounts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const pilvioListBillingAccounts: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { pilvioListBillingAccounts };
|
|
9
11
|
//# sourceMappingURL=list-billing-accounts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-billing-accounts.d.cts","names":[],"sources":["../../src/actions/list-billing-accounts.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-billing-accounts.d.cts","names":[],"sources":["../../src/actions/list-billing-accounts.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-billing-accounts.d.ts
|
|
4
|
-
declare const PilvioListBillingAccountsInput: z.
|
|
5
|
-
declare const PilvioListBillingAccountsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PilvioListBillingAccountsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PilvioListBillingAccountsOutput: z.ZodObject<{
|
|
6
|
+
billing_accounts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const pilvioListBillingAccounts: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { pilvioListBillingAccounts };
|
|
9
11
|
//# sourceMappingURL=list-billing-accounts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-billing-accounts.d.mts","names":[],"sources":["../../src/actions/list-billing-accounts.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-billing-accounts.d.mts","names":[],"sources":["../../src/actions/list-billing-accounts.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request schema for listing billing accounts. No parameters are required.\");\nexport const PilvioListBillingAccountsOutput = 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,OAT4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAS3D;CACP,QAT6C,EAAE,OAAO,EACtD,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC,EACzG,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -3,14 +3,14 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-credit-cards.ts
|
|
4
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
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")
|
|
6
|
+
id: zod.z.string().describe("Unique credit card identifier").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Name printed on the card").nullable(),
|
|
8
|
+
brand: zod.z.string().describe("Credit card brand, e.g., Visa, Mastercard").nullable(),
|
|
9
|
+
last4: zod.z.string().describe("Last four digits of the card").nullable(),
|
|
10
|
+
exp_year: zod.z.number().int().describe("Expiration year (YYYY)").nullable(),
|
|
11
|
+
exp_month: zod.z.number().int().describe("Expiration month (1-12, 0 if unknown)").nullable(),
|
|
12
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the card was added").nullable(),
|
|
13
|
+
is_default: zod.z.boolean().describe("True if this is the default card on the account").nullable()
|
|
14
14
|
});
|
|
15
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
16
|
const pilvioListCreditCards = require_action.action("PILVIO_LIST_CREDIT_CARDS", {
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.string().describe(\"Unique credit card identifier\").nullable(),\n name: z.string().describe(\"Name printed on the card\").nullable(),\n brand: z.string().describe(\"Credit card brand, e.g., Visa, Mastercard\").nullable(),\n last4: z.string().describe(\"Last four digits of the card\").nullable(),\n exp_year: z.number().int().describe(\"Expiration year (YYYY)\").nullable(),\n exp_month: z.number().int().describe(\"Expiration month (1-12, 0 if unknown)\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the card was added\").nullable(),\n is_default: z.boolean().describe(\"True if this is the default card on the account\").nullable(),\n});\nexport const PilvioListCreditCardsOutput = 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,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EACnH,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/F,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,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"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-credit-cards.d.ts
|
|
4
|
-
declare const PilvioListCreditCardsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListCreditCardsInput: z.ZodObject<{
|
|
5
|
+
billing_account_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PilvioListCreditCardsOutput: z.ZodObject<{
|
|
8
|
+
credit_cards: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
brand: z.ZodNullable<z.ZodString>;
|
|
12
|
+
last4: z.ZodNullable<z.ZodString>;
|
|
13
|
+
exp_year: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
exp_month: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
16
|
+
is_default: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const pilvioListCreditCards: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
billing_account_id: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { pilvioListCreditCards };
|
|
9
24
|
//# sourceMappingURL=list-credit-cards.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-credit-cards.d.cts","names":[],"sources":["../../src/actions/list-credit-cards.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-credit-cards.d.cts","names":[],"sources":["../../src/actions/list-credit-cards.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAa1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-credit-cards.d.ts
|
|
4
|
-
declare const PilvioListCreditCardsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListCreditCardsInput: z.ZodObject<{
|
|
5
|
+
billing_account_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PilvioListCreditCardsOutput: z.ZodObject<{
|
|
8
|
+
credit_cards: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
brand: z.ZodNullable<z.ZodString>;
|
|
12
|
+
last4: z.ZodNullable<z.ZodString>;
|
|
13
|
+
exp_year: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
exp_month: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
16
|
+
is_default: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const pilvioListCreditCards: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
billing_account_id: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { pilvioListCreditCards };
|
|
9
24
|
//# sourceMappingURL=list-credit-cards.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-credit-cards.d.mts","names":[],"sources":["../../src/actions/list-credit-cards.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-credit-cards.d.mts","names":[],"sources":["../../src/actions/list-credit-cards.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAa1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -3,14 +3,14 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-credit-cards.ts
|
|
4
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
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")
|
|
6
|
+
id: z.string().describe("Unique credit card identifier").nullable(),
|
|
7
|
+
name: z.string().describe("Name printed on the card").nullable(),
|
|
8
|
+
brand: z.string().describe("Credit card brand, e.g., Visa, Mastercard").nullable(),
|
|
9
|
+
last4: z.string().describe("Last four digits of the card").nullable(),
|
|
10
|
+
exp_year: z.number().int().describe("Expiration year (YYYY)").nullable(),
|
|
11
|
+
exp_month: z.number().int().describe("Expiration month (1-12, 0 if unknown)").nullable(),
|
|
12
|
+
created_at: z.string().describe("ISO 8601 timestamp when the card was added").nullable(),
|
|
13
|
+
is_default: z.boolean().describe("True if this is the default card on the account").nullable()
|
|
14
14
|
});
|
|
15
15
|
const pilvioListCreditCards = action("PILVIO_LIST_CREDIT_CARDS", {
|
|
16
16
|
slug: "pilvio-list-credit-cards",
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.string().describe(\"Unique credit card identifier\").nullable(),\n name: z.string().describe(\"Name printed on the card\").nullable(),\n brand: z.string().describe(\"Credit card brand, e.g., Visa, Mastercard\").nullable(),\n last4: z.string().describe(\"Last four digits of the card\").nullable(),\n exp_year: z.number().int().describe(\"Expiration year (YYYY)\").nullable(),\n exp_month: z.number().int().describe(\"Expiration month (1-12, 0 if unknown)\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the card was added\").nullable(),\n is_default: z.boolean().describe(\"True if this is the default card on the account\").nullable(),\n});\nexport const PilvioListCreditCardsOutput = 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,6BAA6B,EAAE,OAAO,EACjD,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EACnH,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/F,CAAC;AAKD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,cAAc,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6DAA6D,EACtI,CAOU;AACV,CAAC"}
|
|
@@ -14,17 +14,17 @@ const PilvioListInvoicesInput = zod.z.object({
|
|
|
14
14
|
billing_account_id: zod.z.string().describe("Billing account ID to retrieve invoices for.")
|
|
15
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
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.")
|
|
17
|
+
id: zod.z.string().describe("Unique identifier of the invoice.").nullable(),
|
|
18
|
+
amount: zod.z.number().describe("Total amount of the invoice.").nullable(),
|
|
19
|
+
status: zod.z.string().describe("Current status of the invoice, e.g., 'paid' or 'unpaid'.").nullable(),
|
|
20
|
+
currency: zod.z.string().describe("Currency code in ISO 4217 format, e.g., 'USD'.").nullable(),
|
|
21
|
+
due_date: zod.z.string().describe("Due date of the invoice in ISO 8601 format.").nullable(),
|
|
22
|
+
created_at: zod.z.string().describe("Timestamp when the invoice was created, in ISO 8601 format.").nullable()
|
|
23
23
|
}).describe("Details of a single invoice.");
|
|
24
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."),
|
|
25
|
+
limit: zod.z.number().int().describe("Number of invoices returned in this page.").nullable(),
|
|
26
|
+
total: zod.z.number().int().describe("Total number of invoices matching the query.").nullable(),
|
|
27
|
+
offset: zod.z.number().int().describe("Offset of the first invoice in this page from the start of the result set.").nullable(),
|
|
28
28
|
invoices: zod.z.array(PilvioListInvoices_InvoiceSchema).describe("List of invoice objects.")
|
|
29
29
|
}).describe("Response model containing list of invoices and pagination metadata.");
|
|
30
30
|
const pilvioListInvoices = require_action.action("PILVIO_LIST_INVOICES", {
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier of the invoice.\").nullable(),\n amount: z.number().describe(\"Total amount of the invoice.\").nullable(),\n status: z.string().describe(\"Current status of the invoice, e.g., 'paid' or 'unpaid'.\").nullable(),\n currency: z.string().describe(\"Currency code in ISO 4217 format, e.g., 'USD'.\").nullable(),\n due_date: z.string().describe(\"Due date of the invoice in ISO 8601 format.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the invoice was created, in ISO 8601 format.\").nullable(),\n}).describe(\"Details of a single invoice.\");\nexport const PilvioListInvoicesOutput = z.object({\n limit: z.number().int().describe(\"Number of invoices returned in this page.\").nullable(),\n total: z.number().int().describe(\"Total number of invoices matching the query.\").nullable(),\n offset: z.number().int().describe(\"Offset of the first invoice in this page from the start of the result set.\").nullable(),\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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACzH,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"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-invoices.d.ts
|
|
4
|
-
declare const PilvioListInvoicesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListInvoicesInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
paid: "paid";
|
|
9
|
+
unpaid: "unpaid";
|
|
10
|
+
pending: "pending";
|
|
11
|
+
}>>;
|
|
12
|
+
date_to: z.ZodOptional<z.ZodString>;
|
|
13
|
+
date_from: z.ZodOptional<z.ZodString>;
|
|
14
|
+
billing_account_id: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const PilvioListInvoicesOutput: z.ZodObject<{
|
|
17
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
offset: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
invoices: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
25
|
+
due_date: z.ZodNullable<z.ZodString>;
|
|
26
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const pilvioListInvoices: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
billing_account_id: string;
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
offset?: number | undefined;
|
|
33
|
+
status?: "paid" | "unpaid" | "pending" | undefined;
|
|
34
|
+
date_to?: string | undefined;
|
|
35
|
+
date_from?: string | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { pilvioListInvoices };
|
|
9
39
|
//# sourceMappingURL=list-invoices.d.cts.map
|