@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-invoices.d.cts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-invoices.d.cts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAgBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -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.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-invoices.d.mts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-invoices.d.mts","names":[],"sources":["../../src/actions/list-invoices.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAgBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -14,12 +14,12 @@ const PilvioListInvoicesInput = z.object({
|
|
|
14
14
|
billing_account_id: 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 = z.object({
|
|
17
|
-
id: z.string().describe("Unique identifier of the invoice."),
|
|
18
|
-
amount: z.number().describe("Total amount of the invoice."),
|
|
19
|
-
status: z.string().describe("Current status of the invoice, e.g., 'paid' or 'unpaid'."),
|
|
20
|
-
currency: z.string().describe("Currency code in ISO 4217 format, e.g., 'USD'."),
|
|
21
|
-
due_date: z.string().describe("Due date of the invoice in ISO 8601 format."),
|
|
22
|
-
created_at: z.string().describe("Timestamp when the invoice was created, in ISO 8601 format.")
|
|
17
|
+
id: z.string().describe("Unique identifier of the invoice.").nullable(),
|
|
18
|
+
amount: z.number().describe("Total amount of the invoice.").nullable(),
|
|
19
|
+
status: z.string().describe("Current status of the invoice, e.g., 'paid' or 'unpaid'.").nullable(),
|
|
20
|
+
currency: z.string().describe("Currency code in ISO 4217 format, e.g., 'USD'.").nullable(),
|
|
21
|
+
due_date: z.string().describe("Due date of the invoice in ISO 8601 format.").nullable(),
|
|
22
|
+
created_at: 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 pilvioListInvoices = action("PILVIO_LIST_INVOICES", {
|
|
25
25
|
slug: "pilvio-list-invoices",
|
|
@@ -27,9 +27,9 @@ const pilvioListInvoices = action("PILVIO_LIST_INVOICES", {
|
|
|
27
27
|
description: "Tool to retrieve a list of invoices. Use after authentication to fetch and filter invoices for a billing account.",
|
|
28
28
|
input: PilvioListInvoicesInput,
|
|
29
29
|
output: z.object({
|
|
30
|
-
limit: z.number().int().describe("Number of invoices returned in this page."),
|
|
31
|
-
total: z.number().int().describe("Total number of invoices matching the query."),
|
|
32
|
-
offset: z.number().int().describe("Offset of the first invoice in this page from the start of the result set."),
|
|
30
|
+
limit: z.number().int().describe("Number of invoices returned in this page.").nullable(),
|
|
31
|
+
total: z.number().int().describe("Total number of invoices matching the query.").nullable(),
|
|
32
|
+
offset: z.number().int().describe("Offset of the first invoice in this page from the start of the result set.").nullable(),
|
|
33
33
|
invoices: z.array(PilvioListInvoices_InvoiceSchema).describe("List of invoice objects.")
|
|
34
34
|
}).describe("Response model containing list of invoices and pagination metadata.")
|
|
35
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-invoices.mjs","names":[],"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.mjs","names":[],"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,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC5H,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AACxF,CAAC,CAAC,CAAC,SAAS,mJAAmJ;AAC/J,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAQ1C,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACzH,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,0BAA0B;CACzF,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
@@ -3,12 +3,12 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-locations.ts
|
|
4
4
|
const PilvioListLocationsInput = zod.z.object({}).describe("Request schema for listing Pilvio data center locations.\nNo parameters are required.");
|
|
5
5
|
const PilvioListLocations_LocationSchema = zod.z.object({
|
|
6
|
-
slug: zod.z.string().describe("Unique location slug"),
|
|
7
|
-
order_nr: zod.z.number().int().describe("Order number of the location"),
|
|
6
|
+
slug: zod.z.string().describe("Unique location slug").nullable(),
|
|
7
|
+
order_nr: zod.z.number().int().describe("Order number of the location").nullable(),
|
|
8
8
|
is_default: zod.z.boolean().describe("True if this is the default location").nullable().optional(),
|
|
9
|
-
description: zod.z.string().describe("Description of the location"),
|
|
10
|
-
country_code: zod.z.string().describe("ISO country code of the location"),
|
|
11
|
-
display_name: zod.z.string().describe("Human-readable name of the location"),
|
|
9
|
+
description: zod.z.string().describe("Description of the location").nullable(),
|
|
10
|
+
country_code: zod.z.string().describe("ISO country code of the location").nullable(),
|
|
11
|
+
display_name: zod.z.string().describe("Human-readable name of the location").nullable(),
|
|
12
12
|
is_preferred: zod.z.boolean().describe("True if this is the preferred location").nullable().optional(),
|
|
13
13
|
is_published: zod.z.boolean().describe("True if this location is published").nullable().optional(),
|
|
14
14
|
create_resource_disabled: zod.z.boolean().describe("True if resource creation is disabled at this location").nullable().optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-locations.cjs","names":["z","action"],"sources":["../../src/actions/list-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListLocationsInput
|
|
1
|
+
{"version":3,"file":"list-locations.cjs","names":["z","action"],"sources":["../../src/actions/list-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListLocationsInput = z.object({}).describe(\"Request schema for listing Pilvio data center locations.\\nNo parameters are required.\");\nconst PilvioListLocations_LocationSchema = z.object({\n slug: z.string().describe(\"Unique location slug\").nullable(),\n order_nr: z.number().int().describe(\"Order number of the location\").nullable(),\n is_default: z.boolean().describe(\"True if this is the default location\").nullable().optional(),\n description: z.string().describe(\"Description of the location\").nullable(),\n country_code: z.string().describe(\"ISO country code of the location\").nullable(),\n display_name: z.string().describe(\"Human-readable name of the location\").nullable(),\n is_preferred: z.boolean().describe(\"True if this is the preferred location\").nullable().optional(),\n is_published: z.boolean().describe(\"True if this location is published\").nullable().optional(),\n create_resource_disabled: z.boolean().describe(\"True if resource creation is disabled at this location\").nullable().optional(),\n}).describe(\"A single Pilvio data center location.\\nFields correspond to configuration data from /v1/config/locations.\");\nexport const PilvioListLocationsOutput = z.object({\n locations: z.array(PilvioListLocations_LocationSchema).describe(\"List of available data center locations\"),\n}).describe(\"Response schema for listing Pilvio data center locations.\");\n\nexport const pilvioListLocations = action(\"PILVIO_LIST_LOCATIONS\", {\n slug: \"pilvio-list-locations\",\n name: \"List Pilvio data center locations\",\n description: \"Tool to retrieve the list of available data center locations. Use after authentication to see where you can deploy resources.\",\n input: PilvioListLocationsInput,\n output: PilvioListLocationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACrJ,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC7E,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,0BAA0BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,2GAA2G;AACvH,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,WAAWA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,yCAAyC,EAC3G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-locations.d.ts
|
|
4
|
-
declare const PilvioListLocationsInput: z.
|
|
5
|
-
declare const PilvioListLocationsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PilvioListLocationsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PilvioListLocationsOutput: z.ZodObject<{
|
|
6
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
7
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
8
|
+
order_nr: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
is_default: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11
|
+
country_code: z.ZodNullable<z.ZodString>;
|
|
12
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
is_preferred: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
+
is_published: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
create_resource_disabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const pilvioListLocations: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { pilvioListLocations };
|
|
9
21
|
//# sourceMappingURL=list-locations.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-locations.d.cts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"list-locations.d.cts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-locations.d.ts
|
|
4
|
-
declare const PilvioListLocationsInput: z.
|
|
5
|
-
declare const PilvioListLocationsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PilvioListLocationsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PilvioListLocationsOutput: z.ZodObject<{
|
|
6
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
7
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
8
|
+
order_nr: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
is_default: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11
|
+
country_code: z.ZodNullable<z.ZodString>;
|
|
12
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
is_preferred: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
+
is_published: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
create_resource_disabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const pilvioListLocations: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { pilvioListLocations };
|
|
9
21
|
//# sourceMappingURL=list-locations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-locations.d.mts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"list-locations.d.mts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,12 +3,12 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-locations.ts
|
|
4
4
|
const PilvioListLocationsInput = z.object({}).describe("Request schema for listing Pilvio data center locations.\nNo parameters are required.");
|
|
5
5
|
const PilvioListLocations_LocationSchema = z.object({
|
|
6
|
-
slug: z.string().describe("Unique location slug"),
|
|
7
|
-
order_nr: z.number().int().describe("Order number of the location"),
|
|
6
|
+
slug: z.string().describe("Unique location slug").nullable(),
|
|
7
|
+
order_nr: z.number().int().describe("Order number of the location").nullable(),
|
|
8
8
|
is_default: z.boolean().describe("True if this is the default location").nullable().optional(),
|
|
9
|
-
description: z.string().describe("Description of the location"),
|
|
10
|
-
country_code: z.string().describe("ISO country code of the location"),
|
|
11
|
-
display_name: z.string().describe("Human-readable name of the location"),
|
|
9
|
+
description: z.string().describe("Description of the location").nullable(),
|
|
10
|
+
country_code: z.string().describe("ISO country code of the location").nullable(),
|
|
11
|
+
display_name: z.string().describe("Human-readable name of the location").nullable(),
|
|
12
12
|
is_preferred: z.boolean().describe("True if this is the preferred location").nullable().optional(),
|
|
13
13
|
is_published: z.boolean().describe("True if this location is published").nullable().optional(),
|
|
14
14
|
create_resource_disabled: z.boolean().describe("True if resource creation is disabled at this location").nullable().optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-locations.mjs","names":[],"sources":["../../src/actions/list-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListLocationsInput
|
|
1
|
+
{"version":3,"file":"list-locations.mjs","names":[],"sources":["../../src/actions/list-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListLocationsInput = z.object({}).describe(\"Request schema for listing Pilvio data center locations.\\nNo parameters are required.\");\nconst PilvioListLocations_LocationSchema = z.object({\n slug: z.string().describe(\"Unique location slug\").nullable(),\n order_nr: z.number().int().describe(\"Order number of the location\").nullable(),\n is_default: z.boolean().describe(\"True if this is the default location\").nullable().optional(),\n description: z.string().describe(\"Description of the location\").nullable(),\n country_code: z.string().describe(\"ISO country code of the location\").nullable(),\n display_name: z.string().describe(\"Human-readable name of the location\").nullable(),\n is_preferred: z.boolean().describe(\"True if this is the preferred location\").nullable().optional(),\n is_published: z.boolean().describe(\"True if this location is published\").nullable().optional(),\n create_resource_disabled: z.boolean().describe(\"True if resource creation is disabled at this location\").nullable().optional(),\n}).describe(\"A single Pilvio data center location.\\nFields correspond to configuration data from /v1/config/locations.\");\nexport const PilvioListLocationsOutput = z.object({\n locations: z.array(PilvioListLocations_LocationSchema).describe(\"List of available data center locations\"),\n}).describe(\"Response schema for listing Pilvio data center locations.\");\n\nexport const pilvioListLocations = action(\"PILVIO_LIST_LOCATIONS\", {\n slug: \"pilvio-list-locations\",\n name: \"List Pilvio data center locations\",\n description: \"Tool to retrieve the list of available data center locations. Use after authentication to see where you can deploy resources.\",\n input: PilvioListLocationsInput,\n output: PilvioListLocationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACrJ,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC7E,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAKvH,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,WAAW,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,yCAAyC,EAC3G,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
|
|
@@ -6,22 +6,22 @@ const PilvioListVmResourcePoolsInput = zod.z.object({
|
|
|
6
6
|
page_size: zod.z.number().int().describe("Number of items per page").optional()
|
|
7
7
|
}).describe("Request schema for listing VM resource pools.\nOptional pagination parameters can be provided.");
|
|
8
8
|
const PilvioListVmResourcePools_ResourceStatsSchema = zod.z.object({
|
|
9
|
-
cpu_used: zod.z.number().int().describe("Number of CPUs currently used"),
|
|
10
|
-
cpu_total: zod.z.number().int().describe("Total CPUs in the pool"),
|
|
11
|
-
memory_used: zod.z.number().int().describe("Memory in MB currently used in the pool"),
|
|
12
|
-
memory_total: zod.z.number().int().describe("Total memory in MB available in the pool"),
|
|
13
|
-
storage_used: zod.z.number().int().describe("Storage in GB currently used in the pool"),
|
|
14
|
-
storage_total: zod.z.number().int().describe("Total storage in GB available in the pool")
|
|
9
|
+
cpu_used: zod.z.number().int().describe("Number of CPUs currently used").nullable(),
|
|
10
|
+
cpu_total: zod.z.number().int().describe("Total CPUs in the pool").nullable(),
|
|
11
|
+
memory_used: zod.z.number().int().describe("Memory in MB currently used in the pool").nullable(),
|
|
12
|
+
memory_total: zod.z.number().int().describe("Total memory in MB available in the pool").nullable(),
|
|
13
|
+
storage_used: zod.z.number().int().describe("Storage in GB currently used in the pool").nullable(),
|
|
14
|
+
storage_total: zod.z.number().int().describe("Total storage in GB available in the pool").nullable()
|
|
15
15
|
}).describe("Resource statistics for a single host pool.");
|
|
16
16
|
const PilvioListVmResourcePools_ResourcePoolSchema = zod.z.object({
|
|
17
|
-
id: zod.z.string().describe("Unique identifier of the resource pool"),
|
|
18
|
-
name: zod.z.string().describe("Name of the resource pool"),
|
|
17
|
+
id: zod.z.string().describe("Unique identifier of the resource pool").nullable(),
|
|
18
|
+
name: zod.z.string().describe("Name of the resource pool").nullable(),
|
|
19
19
|
description: zod.z.string().describe("Description of the resource pool").nullable().optional(),
|
|
20
20
|
resource_stats: PilvioListVmResourcePools_ResourceStatsSchema.nullable()
|
|
21
21
|
}).describe("A single VM resource pool.");
|
|
22
22
|
const PilvioListVmResourcePoolsOutput = zod.z.object({
|
|
23
23
|
list: zod.z.array(PilvioListVmResourcePools_ResourcePoolSchema).describe("List of available resource pools"),
|
|
24
|
-
total: zod.z.number().int().describe("Total number of resource pools found")
|
|
24
|
+
total: zod.z.number().int().describe("Total number of resource pools found").nullable()
|
|
25
25
|
}).describe("Response schema for a list of VM resource pools.");
|
|
26
26
|
const pilvioListVmResourcePools = require_action.action("PILVIO_LIST_VM_RESOURCE_POOLS", {
|
|
27
27
|
slug: "pilvio-list-vm-resource-pools",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vm-resource-pools.cjs","names":["z","action"],"sources":["../../src/actions/list-vm-resource-pools.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmResourcePoolsInput
|
|
1
|
+
{"version":3,"file":"list-vm-resource-pools.cjs","names":["z","action"],"sources":["../../src/actions/list-vm-resource-pools.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmResourcePoolsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-based)\").optional(),\n page_size: z.number().int().describe(\"Number of items per page\").optional(),\n}).describe(\"Request schema for listing VM resource pools.\\nOptional pagination parameters can be provided.\");\nconst PilvioListVmResourcePools_ResourceStatsSchema = z.object({\n cpu_used: z.number().int().describe(\"Number of CPUs currently used\").nullable(),\n cpu_total: z.number().int().describe(\"Total CPUs in the pool\").nullable(),\n memory_used: z.number().int().describe(\"Memory in MB currently used in the pool\").nullable(),\n memory_total: z.number().int().describe(\"Total memory in MB available in the pool\").nullable(),\n storage_used: z.number().int().describe(\"Storage in GB currently used in the pool\").nullable(),\n storage_total: z.number().int().describe(\"Total storage in GB available in the pool\").nullable(),\n}).describe(\"Resource statistics for a single host pool.\");\nconst PilvioListVmResourcePools_ResourcePoolSchema = z.object({\n id: z.string().describe(\"Unique identifier of the resource pool\").nullable(),\n name: z.string().describe(\"Name of the resource pool\").nullable(),\n description: z.string().describe(\"Description of the resource pool\").nullable().optional(),\n resource_stats: PilvioListVmResourcePools_ResourceStatsSchema.nullable(),\n}).describe(\"A single VM resource pool.\");\nexport const PilvioListVmResourcePoolsOutput = z.object({\n list: z.array(PilvioListVmResourcePools_ResourcePoolSchema).describe(\"List of available resource pools\"),\n total: z.number().int().describe(\"Total number of resource pools found\").nullable(),\n}).describe(\"Response schema for a list of VM resource pools.\");\n\nexport const pilvioListVmResourcePools = action(\"PILVIO_LIST_VM_RESOURCE_POOLS\", {\n slug: \"pilvio-list-vm-resource-pools\",\n name: \"List VM Resource Pools\",\n description: \"Tool to retrieve the list of available VM resource pools. Use after authentication to determine where you can provision VMs.\",\n input: PilvioListVmResourcePoolsInput,\n output: PilvioListVmResourcePoolsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,gGAAgG;AAC5G,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,8CAA8C,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kCAAkC;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-vm-resource-pools.d.ts
|
|
4
|
-
declare const PilvioListVmResourcePoolsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListVmResourcePoolsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PilvioListVmResourcePoolsOutput: z.ZodObject<{
|
|
9
|
+
list: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
resource_stats: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
cpu_used: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
cpu_total: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
memory_used: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
memory_total: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
storage_used: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
storage_total: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const pilvioListVmResourcePools: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
page?: number | undefined;
|
|
26
|
+
page_size?: number | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { pilvioListVmResourcePools };
|
|
9
30
|
//# sourceMappingURL=list-vm-resource-pools.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vm-resource-pools.d.cts","names":[],"sources":["../../src/actions/list-vm-resource-pools.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-vm-resource-pools.d.cts","names":[],"sources":["../../src/actions/list-vm-resource-pools.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAkB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-vm-resource-pools.d.ts
|
|
4
|
-
declare const PilvioListVmResourcePoolsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListVmResourcePoolsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PilvioListVmResourcePoolsOutput: z.ZodObject<{
|
|
9
|
+
list: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
resource_stats: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
cpu_used: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
cpu_total: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
memory_used: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
memory_total: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
storage_used: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
storage_total: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const pilvioListVmResourcePools: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
page?: number | undefined;
|
|
26
|
+
page_size?: number | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { pilvioListVmResourcePools };
|
|
9
30
|
//# sourceMappingURL=list-vm-resource-pools.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vm-resource-pools.d.mts","names":[],"sources":["../../src/actions/list-vm-resource-pools.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-vm-resource-pools.d.mts","names":[],"sources":["../../src/actions/list-vm-resource-pools.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAkB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -6,16 +6,16 @@ const PilvioListVmResourcePoolsInput = z.object({
|
|
|
6
6
|
page_size: z.number().int().describe("Number of items per page").optional()
|
|
7
7
|
}).describe("Request schema for listing VM resource pools.\nOptional pagination parameters can be provided.");
|
|
8
8
|
const PilvioListVmResourcePools_ResourceStatsSchema = z.object({
|
|
9
|
-
cpu_used: z.number().int().describe("Number of CPUs currently used"),
|
|
10
|
-
cpu_total: z.number().int().describe("Total CPUs in the pool"),
|
|
11
|
-
memory_used: z.number().int().describe("Memory in MB currently used in the pool"),
|
|
12
|
-
memory_total: z.number().int().describe("Total memory in MB available in the pool"),
|
|
13
|
-
storage_used: z.number().int().describe("Storage in GB currently used in the pool"),
|
|
14
|
-
storage_total: z.number().int().describe("Total storage in GB available in the pool")
|
|
9
|
+
cpu_used: z.number().int().describe("Number of CPUs currently used").nullable(),
|
|
10
|
+
cpu_total: z.number().int().describe("Total CPUs in the pool").nullable(),
|
|
11
|
+
memory_used: z.number().int().describe("Memory in MB currently used in the pool").nullable(),
|
|
12
|
+
memory_total: z.number().int().describe("Total memory in MB available in the pool").nullable(),
|
|
13
|
+
storage_used: z.number().int().describe("Storage in GB currently used in the pool").nullable(),
|
|
14
|
+
storage_total: z.number().int().describe("Total storage in GB available in the pool").nullable()
|
|
15
15
|
}).describe("Resource statistics for a single host pool.");
|
|
16
16
|
const PilvioListVmResourcePools_ResourcePoolSchema = z.object({
|
|
17
|
-
id: z.string().describe("Unique identifier of the resource pool"),
|
|
18
|
-
name: z.string().describe("Name of the resource pool"),
|
|
17
|
+
id: z.string().describe("Unique identifier of the resource pool").nullable(),
|
|
18
|
+
name: z.string().describe("Name of the resource pool").nullable(),
|
|
19
19
|
description: z.string().describe("Description of the resource pool").nullable().optional(),
|
|
20
20
|
resource_stats: PilvioListVmResourcePools_ResourceStatsSchema.nullable()
|
|
21
21
|
}).describe("A single VM resource pool.");
|
|
@@ -26,7 +26,7 @@ const pilvioListVmResourcePools = action("PILVIO_LIST_VM_RESOURCE_POOLS", {
|
|
|
26
26
|
input: PilvioListVmResourcePoolsInput,
|
|
27
27
|
output: z.object({
|
|
28
28
|
list: z.array(PilvioListVmResourcePools_ResourcePoolSchema).describe("List of available resource pools"),
|
|
29
|
-
total: z.number().int().describe("Total number of resource pools found")
|
|
29
|
+
total: z.number().int().describe("Total number of resource pools found").nullable()
|
|
30
30
|
}).describe("Response schema for a list of VM resource pools.")
|
|
31
31
|
});
|
|
32
32
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vm-resource-pools.mjs","names":[],"sources":["../../src/actions/list-vm-resource-pools.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmResourcePoolsInput
|
|
1
|
+
{"version":3,"file":"list-vm-resource-pools.mjs","names":[],"sources":["../../src/actions/list-vm-resource-pools.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmResourcePoolsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-based)\").optional(),\n page_size: z.number().int().describe(\"Number of items per page\").optional(),\n}).describe(\"Request schema for listing VM resource pools.\\nOptional pagination parameters can be provided.\");\nconst PilvioListVmResourcePools_ResourceStatsSchema = z.object({\n cpu_used: z.number().int().describe(\"Number of CPUs currently used\").nullable(),\n cpu_total: z.number().int().describe(\"Total CPUs in the pool\").nullable(),\n memory_used: z.number().int().describe(\"Memory in MB currently used in the pool\").nullable(),\n memory_total: z.number().int().describe(\"Total memory in MB available in the pool\").nullable(),\n storage_used: z.number().int().describe(\"Storage in GB currently used in the pool\").nullable(),\n storage_total: z.number().int().describe(\"Total storage in GB available in the pool\").nullable(),\n}).describe(\"Resource statistics for a single host pool.\");\nconst PilvioListVmResourcePools_ResourcePoolSchema = z.object({\n id: z.string().describe(\"Unique identifier of the resource pool\").nullable(),\n name: z.string().describe(\"Name of the resource pool\").nullable(),\n description: z.string().describe(\"Description of the resource pool\").nullable().optional(),\n resource_stats: PilvioListVmResourcePools_ResourceStatsSchema.nullable(),\n}).describe(\"A single VM resource pool.\");\nexport const PilvioListVmResourcePoolsOutput = z.object({\n list: z.array(PilvioListVmResourcePools_ResourcePoolSchema).describe(\"List of available resource pools\"),\n total: z.number().int().describe(\"Total number of resource pools found\").nullable(),\n}).describe(\"Response schema for a list of VM resource pools.\");\n\nexport const pilvioListVmResourcePools = action(\"PILVIO_LIST_VM_RESOURCE_POOLS\", {\n slug: \"pilvio-list-vm-resource-pools\",\n name: \"List VM Resource Pools\",\n description: \"Tool to retrieve the list of available VM resource pools. Use after authentication to determine where you can provision VMs.\",\n input: PilvioListVmResourcePoolsInput,\n output: PilvioListVmResourcePoolsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,gGAAgG;AAC5G,MAAM,gDAAgD,EAAE,OAAO;CAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,8CAA8C,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,4BAA4B;AAMxC,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kCAAkC;EACvG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const PilvioListVmSnapshots_ReplicaSchema = zod.z.object({
|
|
|
10
10
|
pool: zod.z.string().describe("Storage pool name").nullable().optional(),
|
|
11
11
|
size: zod.z.number().int().describe("Size of the replica in bytes").nullable().optional(),
|
|
12
12
|
type: zod.z.string().describe("Type of replica: 'snapshot' or 'backup'").nullable().optional(),
|
|
13
|
-
uuid: zod.z.string().describe("Unique replica/snapshot identifier"),
|
|
13
|
+
uuid: zod.z.string().describe("Unique replica/snapshot identifier").nullable(),
|
|
14
14
|
master_id: zod.z.number().int().describe("ID of the master disk").nullable().optional(),
|
|
15
15
|
created_at: zod.z.string().describe("Creation timestamp").nullable().optional(),
|
|
16
16
|
updated_at: zod.z.string().describe("Last update timestamp").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vm-snapshots.cjs","names":["z","action"],"sources":["../../src/actions/list-vm-snapshots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmSnapshotsInput
|
|
1
|
+
{"version":3,"file":"list-vm-snapshots.cjs","names":["z","action"],"sources":["../../src/actions/list-vm-snapshots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmSnapshotsInput = z.object({\n uuid: z.string().describe(\"UUID of the VM to fetch replicas/snapshots for\"),\n r_type: z.string().default(\"snapshot\").describe(\"Type of replica to list: 'snapshot' or 'backup'. Defaults to 'snapshot'\").optional(),\n}).describe(\"Request model for listing VM snapshots (replicas) for a given VM.\");\nconst PilvioListVmSnapshots_ReplicaSchema = z.object({\n id: z.number().int().describe(\"Numeric ID of the replica\").nullable().optional(),\n pool: z.string().describe(\"Storage pool name\").nullable().optional(),\n size: z.number().int().describe(\"Size of the replica in bytes\").nullable().optional(),\n type: z.string().describe(\"Type of replica: 'snapshot' or 'backup'\").nullable().optional(),\n uuid: z.string().describe(\"Unique replica/snapshot identifier\").nullable(),\n master_id: z.number().int().describe(\"ID of the master disk\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable().optional(),\n master_uuid: z.string().describe(\"UUID of the master disk\").nullable().optional(),\n}).describe(\"Details of a VM snapshot/replica.\");\nexport const PilvioListVmSnapshotsOutput = z.object({\n replicas: z.array(PilvioListVmSnapshots_ReplicaSchema).describe(\"List of replicas/snapshots for the VM\").nullable().optional(),\n}).describe(\"Response model for VM snapshots listing.\\nReturns a list of replica objects.\");\n\nexport const pilvioListVmSnapshots = action(\"PILVIO_LIST_VM_SNAPSHOTS\", {\n slug: \"pilvio-list-vm-snapshots\",\n name: \"List VM Snapshots\",\n description: \"Tool to list snapshots (replicas) of a specific VM. Use this to get all point-in-time snapshots or backups for a virtual machine.\",\n input: PilvioListVmSnapshotsInput,\n output: PilvioListVmSnapshotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAE1F,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-vm-snapshots.d.ts
|
|
4
|
-
declare const PilvioListVmSnapshotsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListVmSnapshotsInput: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
r_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PilvioListVmSnapshotsOutput: z.ZodObject<{
|
|
9
|
+
replicas: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
15
|
+
master_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
master_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const pilvioListVmSnapshots: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
uuid: string;
|
|
23
|
+
r_type?: string | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { pilvioListVmSnapshots };
|
|
9
27
|
//# sourceMappingURL=list-vm-snapshots.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vm-snapshots.d.cts","names":[],"sources":["../../src/actions/list-vm-snapshots.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-vm-snapshots.d.cts","names":[],"sources":["../../src/actions/list-vm-snapshots.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAe1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-vm-snapshots.d.ts
|
|
4
|
-
declare const PilvioListVmSnapshotsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListVmSnapshotsInput: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
r_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PilvioListVmSnapshotsOutput: z.ZodObject<{
|
|
9
|
+
replicas: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
15
|
+
master_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
master_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const pilvioListVmSnapshots: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
uuid: string;
|
|
23
|
+
r_type?: string | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { pilvioListVmSnapshots };
|
|
9
27
|
//# sourceMappingURL=list-vm-snapshots.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vm-snapshots.d.mts","names":[],"sources":["../../src/actions/list-vm-snapshots.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-vm-snapshots.d.mts","names":[],"sources":["../../src/actions/list-vm-snapshots.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAe1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -10,7 +10,7 @@ const PilvioListVmSnapshots_ReplicaSchema = z.object({
|
|
|
10
10
|
pool: z.string().describe("Storage pool name").nullable().optional(),
|
|
11
11
|
size: z.number().int().describe("Size of the replica in bytes").nullable().optional(),
|
|
12
12
|
type: z.string().describe("Type of replica: 'snapshot' or 'backup'").nullable().optional(),
|
|
13
|
-
uuid: z.string().describe("Unique replica/snapshot identifier"),
|
|
13
|
+
uuid: z.string().describe("Unique replica/snapshot identifier").nullable(),
|
|
14
14
|
master_id: z.number().int().describe("ID of the master disk").nullable().optional(),
|
|
15
15
|
created_at: z.string().describe("Creation timestamp").nullable().optional(),
|
|
16
16
|
updated_at: z.string().describe("Last update timestamp").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vm-snapshots.mjs","names":[],"sources":["../../src/actions/list-vm-snapshots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmSnapshotsInput
|
|
1
|
+
{"version":3,"file":"list-vm-snapshots.mjs","names":[],"sources":["../../src/actions/list-vm-snapshots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmSnapshotsInput = z.object({\n uuid: z.string().describe(\"UUID of the VM to fetch replicas/snapshots for\"),\n r_type: z.string().default(\"snapshot\").describe(\"Type of replica to list: 'snapshot' or 'backup'. Defaults to 'snapshot'\").optional(),\n}).describe(\"Request model for listing VM snapshots (replicas) for a given VM.\");\nconst PilvioListVmSnapshots_ReplicaSchema = z.object({\n id: z.number().int().describe(\"Numeric ID of the replica\").nullable().optional(),\n pool: z.string().describe(\"Storage pool name\").nullable().optional(),\n size: z.number().int().describe(\"Size of the replica in bytes\").nullable().optional(),\n type: z.string().describe(\"Type of replica: 'snapshot' or 'backup'\").nullable().optional(),\n uuid: z.string().describe(\"Unique replica/snapshot identifier\").nullable(),\n master_id: z.number().int().describe(\"ID of the master disk\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable().optional(),\n master_uuid: z.string().describe(\"UUID of the master disk\").nullable().optional(),\n}).describe(\"Details of a VM snapshot/replica.\");\nexport const PilvioListVmSnapshotsOutput = z.object({\n replicas: z.array(PilvioListVmSnapshots_ReplicaSchema).describe(\"List of replicas/snapshots for the VM\").nullable().optional(),\n}).describe(\"Response model for VM snapshots listing.\\nReturns a list of replica objects.\");\n\nexport const pilvioListVmSnapshots = action(\"PILVIO_LIST_VM_SNAPSHOTS\", {\n slug: \"pilvio-list-vm-snapshots\",\n name: \"List VM Snapshots\",\n description: \"Tool to list snapshots (replicas) of a specific VM. Use this to get all point-in-time snapshots or backups for a virtual machine.\",\n input: PilvioListVmSnapshotsInput,\n output: PilvioListVmSnapshotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAK/C,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,SAAS,8EAOF;AACV,CAAC"}
|