@keystrokehq/pilvio 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/check-active-campaigns.cjs +16 -0
  7. package/dist/actions/check-active-campaigns.cjs.map +1 -0
  8. package/dist/actions/check-active-campaigns.d.cts +9 -0
  9. package/dist/actions/check-active-campaigns.d.cts.map +1 -0
  10. package/dist/actions/check-active-campaigns.d.mts +9 -0
  11. package/dist/actions/check-active-campaigns.d.mts.map +1 -0
  12. package/dist/actions/check-active-campaigns.mjs +13 -0
  13. package/dist/actions/check-active-campaigns.mjs.map +1 -0
  14. package/dist/actions/get-user-info.cjs +36 -0
  15. package/dist/actions/get-user-info.cjs.map +1 -0
  16. package/dist/actions/get-user-info.d.cts +9 -0
  17. package/dist/actions/get-user-info.d.cts.map +1 -0
  18. package/dist/actions/get-user-info.d.mts +9 -0
  19. package/dist/actions/get-user-info.d.mts.map +1 -0
  20. package/dist/actions/get-user-info.mjs +35 -0
  21. package/dist/actions/get-user-info.mjs.map +1 -0
  22. package/dist/actions/index.cjs +21 -0
  23. package/dist/actions/index.d.cts +11 -0
  24. package/dist/actions/index.d.mts +11 -0
  25. package/dist/actions/index.mjs +11 -0
  26. package/dist/actions/list-billing-accounts.cjs +16 -0
  27. package/dist/actions/list-billing-accounts.cjs.map +1 -0
  28. package/dist/actions/list-billing-accounts.d.cts +9 -0
  29. package/dist/actions/list-billing-accounts.d.cts.map +1 -0
  30. package/dist/actions/list-billing-accounts.d.mts +9 -0
  31. package/dist/actions/list-billing-accounts.d.mts.map +1 -0
  32. package/dist/actions/list-billing-accounts.mjs +13 -0
  33. package/dist/actions/list-billing-accounts.mjs.map +1 -0
  34. package/dist/actions/list-credit-cards.cjs +26 -0
  35. package/dist/actions/list-credit-cards.cjs.map +1 -0
  36. package/dist/actions/list-credit-cards.d.cts +9 -0
  37. package/dist/actions/list-credit-cards.d.cts.map +1 -0
  38. package/dist/actions/list-credit-cards.d.mts +9 -0
  39. package/dist/actions/list-credit-cards.d.mts.map +1 -0
  40. package/dist/actions/list-credit-cards.mjs +25 -0
  41. package/dist/actions/list-credit-cards.mjs.map +1 -0
  42. package/dist/actions/list-invoices.cjs +40 -0
  43. package/dist/actions/list-invoices.cjs.map +1 -0
  44. package/dist/actions/list-invoices.d.cts +9 -0
  45. package/dist/actions/list-invoices.d.cts.map +1 -0
  46. package/dist/actions/list-invoices.d.mts +9 -0
  47. package/dist/actions/list-invoices.d.mts.map +1 -0
  48. package/dist/actions/list-invoices.mjs +39 -0
  49. package/dist/actions/list-invoices.mjs.map +1 -0
  50. package/dist/actions/list-locations.cjs +27 -0
  51. package/dist/actions/list-locations.cjs.map +1 -0
  52. package/dist/actions/list-locations.d.cts +9 -0
  53. package/dist/actions/list-locations.d.cts.map +1 -0
  54. package/dist/actions/list-locations.d.mts +9 -0
  55. package/dist/actions/list-locations.d.mts.map +1 -0
  56. package/dist/actions/list-locations.mjs +26 -0
  57. package/dist/actions/list-locations.mjs.map +1 -0
  58. package/dist/actions/list-vm-resource-pools.cjs +36 -0
  59. package/dist/actions/list-vm-resource-pools.cjs.map +1 -0
  60. package/dist/actions/list-vm-resource-pools.d.cts +9 -0
  61. package/dist/actions/list-vm-resource-pools.d.cts.map +1 -0
  62. package/dist/actions/list-vm-resource-pools.d.mts +9 -0
  63. package/dist/actions/list-vm-resource-pools.d.mts.map +1 -0
  64. package/dist/actions/list-vm-resource-pools.mjs +35 -0
  65. package/dist/actions/list-vm-resource-pools.mjs.map +1 -0
  66. package/dist/actions/list-vm-snapshots.cjs +30 -0
  67. package/dist/actions/list-vm-snapshots.cjs.map +1 -0
  68. package/dist/actions/list-vm-snapshots.d.cts +9 -0
  69. package/dist/actions/list-vm-snapshots.d.cts.map +1 -0
  70. package/dist/actions/list-vm-snapshots.d.mts +9 -0
  71. package/dist/actions/list-vm-snapshots.d.mts.map +1 -0
  72. package/dist/actions/list-vm-snapshots.mjs +29 -0
  73. package/dist/actions/list-vm-snapshots.mjs.map +1 -0
  74. package/dist/actions/list-vms.cjs +35 -0
  75. package/dist/actions/list-vms.cjs.map +1 -0
  76. package/dist/actions/list-vms.d.cts +9 -0
  77. package/dist/actions/list-vms.d.cts.map +1 -0
  78. package/dist/actions/list-vms.d.mts +9 -0
  79. package/dist/actions/list-vms.d.mts.map +1 -0
  80. package/dist/actions/list-vms.mjs +34 -0
  81. package/dist/actions/list-vms.mjs.map +1 -0
  82. package/dist/actions/update-user-profile.cjs +42 -0
  83. package/dist/actions/update-user-profile.cjs.map +1 -0
  84. package/dist/actions/update-user-profile.d.cts +9 -0
  85. package/dist/actions/update-user-profile.d.cts.map +1 -0
  86. package/dist/actions/update-user-profile.d.mts +9 -0
  87. package/dist/actions/update-user-profile.d.mts.map +1 -0
  88. package/dist/actions/update-user-profile.mjs +41 -0
  89. package/dist/actions/update-user-profile.mjs.map +1 -0
  90. package/dist/app.cjs +9 -0
  91. package/dist/app.cjs.map +1 -0
  92. package/dist/app.d.cts +5 -0
  93. package/dist/app.d.cts.map +1 -0
  94. package/dist/app.d.mts +5 -0
  95. package/dist/app.d.mts.map +1 -0
  96. package/dist/app.mjs +10 -0
  97. package/dist/app.mjs.map +1 -0
  98. package/dist/catalog.cjs +15 -0
  99. package/dist/catalog.cjs.map +1 -0
  100. package/dist/catalog.d.cts +14 -0
  101. package/dist/catalog.d.cts.map +1 -0
  102. package/dist/catalog.d.mts +14 -0
  103. package/dist/catalog.d.mts.map +1 -0
  104. package/dist/catalog.mjs +15 -0
  105. package/dist/catalog.mjs.map +1 -0
  106. package/dist/execute.cjs +18 -0
  107. package/dist/execute.cjs.map +1 -0
  108. package/dist/execute.mjs +18 -0
  109. package/dist/execute.mjs.map +1 -0
  110. package/dist/index.cjs +26 -0
  111. package/dist/index.d.cts +13 -0
  112. package/dist/index.d.mts +13 -0
  113. package/dist/index.mjs +14 -0
  114. package/package.json +49 -0
@@ -0,0 +1,39 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-invoices.ts
4
+ const PilvioListInvoicesInput = z.object({
5
+ limit: z.number().int().describe("Number of invoices per page.").optional(),
6
+ offset: z.number().int().describe("Pagination offset (zero-based).").optional(),
7
+ status: z.enum([
8
+ "paid",
9
+ "unpaid",
10
+ "pending"
11
+ ]).describe("Filter invoices by status.").optional(),
12
+ date_to: z.string().describe("ISO 8601 timestamp (inclusive) to filter invoices created on or before this date.").optional(),
13
+ date_from: z.string().describe("ISO 8601 timestamp (inclusive) to filter invoices created on or after this date.").optional(),
14
+ billing_account_id: z.string().describe("Billing account ID to retrieve invoices for.")
15
+ }).describe("Request model for listing invoices. Use when you need to retrieve invoices for a specific billing account with optional pagination and filtering.");
16
+ const PilvioListInvoices_InvoiceSchema = 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.")
23
+ }).describe("Details of a single invoice.");
24
+ const pilvioListInvoices = action("PILVIO_LIST_INVOICES", {
25
+ slug: "pilvio-list-invoices",
26
+ name: "List Invoices",
27
+ description: "Tool to retrieve a list of invoices. Use after authentication to fetch and filter invoices for a billing account.",
28
+ input: PilvioListInvoicesInput,
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."),
33
+ invoices: z.array(PilvioListInvoices_InvoiceSchema).describe("List of invoice objects.")
34
+ }).describe("Response model containing list of invoices and pagination metadata.")
35
+ });
36
+ //#endregion
37
+ export { pilvioListInvoices };
38
+
39
+ //# sourceMappingURL=list-invoices.mjs.map
@@ -0,0 +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: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of invoices per page.\").optional(),\n offset: z.number().int().describe(\"Pagination offset (zero-based).\").optional(),\n status: z.enum([\"paid\", \"unpaid\", \"pending\"]).describe(\"Filter invoices by status.\").optional(),\n date_to: z.string().describe(\"ISO 8601 timestamp (inclusive) to filter invoices created on or before this date.\").optional(),\n date_from: z.string().describe(\"ISO 8601 timestamp (inclusive) to filter invoices created on or after this date.\").optional(),\n billing_account_id: z.string().describe(\"Billing account ID to retrieve invoices for.\"),\n}).describe(\"Request model for listing invoices. Use when you need to retrieve invoices for a specific billing account with optional pagination and filtering.\");\nconst PilvioListInvoices_InvoiceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the invoice.\"),\n amount: z.number().describe(\"Total amount of the invoice.\"),\n status: z.string().describe(\"Current status of the invoice, e.g., 'paid' or 'unpaid'.\"),\n currency: z.string().describe(\"Currency code in ISO 4217 format, e.g., 'USD'.\"),\n due_date: z.string().describe(\"Due date of the invoice in ISO 8601 format.\"),\n created_at: z.string().describe(\"Timestamp when the invoice was created, in ISO 8601 format.\"),\n}).describe(\"Details of a single invoice.\");\nexport const PilvioListInvoicesOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of invoices returned in this page.\"),\n total: z.number().int().describe(\"Total number of invoices matching the query.\"),\n offset: z.number().int().describe(\"Offset of the first invoice in this page from the start of the result set.\"),\n invoices: z.array(PilvioListInvoices_InvoiceSchema).describe(\"List of invoice objects.\"),\n}).describe(\"Response model containing list of invoices and pagination metadata.\");\n\nexport const pilvioListInvoices = action(\"PILVIO_LIST_INVOICES\", {\n slug: \"pilvio-list-invoices\",\n name: \"List Invoices\",\n description: \"Tool to retrieve a list of invoices. Use after authentication to fetch and filter invoices for a billing account.\",\n input: PilvioListInvoicesInput,\n output: PilvioListInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,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,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAC/F,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAQ1C,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZoD,EAAE,OAAO;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;EAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E;EAC9G,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,0BAA0B;CACzF,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
@@ -0,0 +1,27 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-locations.ts
4
+ const PilvioListLocationsInput = zod.z.object({}).describe("Request schema for listing Pilvio data center locations.\nNo parameters are required.");
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"),
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"),
12
+ is_preferred: zod.z.boolean().describe("True if this is the preferred location").nullable().optional(),
13
+ is_published: zod.z.boolean().describe("True if this location is published").nullable().optional(),
14
+ create_resource_disabled: zod.z.boolean().describe("True if resource creation is disabled at this location").nullable().optional()
15
+ }).describe("A single Pilvio data center location.\nFields correspond to configuration data from /v1/config/locations.");
16
+ const PilvioListLocationsOutput = zod.z.object({ locations: zod.z.array(PilvioListLocations_LocationSchema).describe("List of available data center locations") }).describe("Response schema for listing Pilvio data center locations.");
17
+ const pilvioListLocations = require_action.action("PILVIO_LIST_LOCATIONS", {
18
+ slug: "pilvio-list-locations",
19
+ name: "List Pilvio data center locations",
20
+ description: "Tool to retrieve the list of available data center locations. Use after authentication to see where you can deploy resources.",
21
+ input: PilvioListLocationsInput,
22
+ output: PilvioListLocationsOutput
23
+ });
24
+ //#endregion
25
+ exports.pilvioListLocations = pilvioListLocations;
26
+
27
+ //# sourceMappingURL=list-locations.cjs.map
@@ -0,0 +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: z.ZodTypeAny = z.object({}).describe(\"Request schema for listing Pilvio data center locations.\\nNo parameters are required.\");\nconst PilvioListLocations_LocationSchema: z.ZodTypeAny = z.object({\n slug: z.string().describe(\"Unique location slug\"),\n order_nr: z.number().int().describe(\"Order number of the location\"),\n is_default: z.boolean().describe(\"True if this is the default location\").nullable().optional(),\n description: z.string().describe(\"Description of the location\"),\n country_code: z.string().describe(\"ISO country code of the location\"),\n display_name: z.string().describe(\"Human-readable name of the location\"),\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.ZodTypeAny = 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,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACnK,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAClE,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC9D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACpE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACvE,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,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-locations.d.ts
4
+ declare const PilvioListLocationsInput: z.ZodTypeAny;
5
+ declare const PilvioListLocationsOutput: z.ZodTypeAny;
6
+ declare const pilvioListLocations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioListLocations };
9
+ //# sourceMappingURL=list-locations.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-locations.d.cts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAA2H;AAAA,cAYvJ,yBAAA,EAA2B,CAAA,CAAE,UAE8B;AAAA,cAE3D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-locations.d.ts
4
+ declare const PilvioListLocationsInput: z.ZodTypeAny;
5
+ declare const PilvioListLocationsOutput: z.ZodTypeAny;
6
+ declare const pilvioListLocations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioListLocations };
9
+ //# sourceMappingURL=list-locations.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-locations.d.mts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAA2H;AAAA,cAYvJ,yBAAA,EAA2B,CAAA,CAAE,UAE8B;AAAA,cAE3D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,26 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-locations.ts
4
+ const PilvioListLocationsInput = z.object({}).describe("Request schema for listing Pilvio data center locations.\nNo parameters are required.");
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"),
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"),
12
+ is_preferred: z.boolean().describe("True if this is the preferred location").nullable().optional(),
13
+ is_published: z.boolean().describe("True if this location is published").nullable().optional(),
14
+ create_resource_disabled: z.boolean().describe("True if resource creation is disabled at this location").nullable().optional()
15
+ }).describe("A single Pilvio data center location.\nFields correspond to configuration data from /v1/config/locations.");
16
+ const pilvioListLocations = action("PILVIO_LIST_LOCATIONS", {
17
+ slug: "pilvio-list-locations",
18
+ name: "List Pilvio data center locations",
19
+ description: "Tool to retrieve the list of available data center locations. Use after authentication to see where you can deploy resources.",
20
+ input: PilvioListLocationsInput,
21
+ output: z.object({ locations: z.array(PilvioListLocations_LocationSchema).describe("List of available data center locations") }).describe("Response schema for listing Pilvio data center locations.")
22
+ });
23
+ //#endregion
24
+ export { pilvioListLocations };
25
+
26
+ //# sourceMappingURL=list-locations.mjs.map
@@ -0,0 +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: z.ZodTypeAny = z.object({}).describe(\"Request schema for listing Pilvio data center locations.\\nNo parameters are required.\");\nconst PilvioListLocations_LocationSchema: z.ZodTypeAny = z.object({\n slug: z.string().describe(\"Unique location slug\"),\n order_nr: z.number().int().describe(\"Order number of the location\"),\n is_default: z.boolean().describe(\"True if this is the default location\").nullable().optional(),\n description: z.string().describe(\"Description of the location\"),\n country_code: z.string().describe(\"ISO country code of the location\"),\n display_name: z.string().describe(\"Human-readable name of the location\"),\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.ZodTypeAny = 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,2BAAyC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACnK,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAClE,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACpE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACvE,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,QATqD,EAAE,OAAO,EAC9D,WAAW,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,yCAAyC,EAC3G,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
@@ -0,0 +1,36 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-vm-resource-pools.ts
4
+ const PilvioListVmResourcePoolsInput = zod.z.object({
5
+ page: zod.z.number().int().describe("Page number for pagination (1-based)").optional(),
6
+ page_size: zod.z.number().int().describe("Number of items per page").optional()
7
+ }).describe("Request schema for listing VM resource pools.\nOptional pagination parameters can be provided.");
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")
15
+ }).describe("Resource statistics for a single host pool.");
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"),
19
+ description: zod.z.string().describe("Description of the resource pool").nullable().optional(),
20
+ resource_stats: PilvioListVmResourcePools_ResourceStatsSchema.nullable()
21
+ }).describe("A single VM resource pool.");
22
+ const PilvioListVmResourcePoolsOutput = zod.z.object({
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")
25
+ }).describe("Response schema for a list of VM resource pools.");
26
+ const pilvioListVmResourcePools = require_action.action("PILVIO_LIST_VM_RESOURCE_POOLS", {
27
+ slug: "pilvio-list-vm-resource-pools",
28
+ name: "List VM Resource Pools",
29
+ description: "Tool to retrieve the list of available VM resource pools. Use after authentication to determine where you can provision VMs.",
30
+ input: PilvioListVmResourcePoolsInput,
31
+ output: PilvioListVmResourcePoolsOutput
32
+ });
33
+ //#endregion
34
+ exports.pilvioListVmResourcePools = pilvioListVmResourcePools;
35
+
36
+ //# sourceMappingURL=list-vm-resource-pools.cjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n cpu_used: z.number().int().describe(\"Number of CPUs currently used\"),\n cpu_total: z.number().int().describe(\"Total CPUs in the pool\"),\n memory_used: z.number().int().describe(\"Memory in MB currently used in the pool\"),\n memory_total: z.number().int().describe(\"Total memory in MB available in the pool\"),\n storage_used: z.number().int().describe(\"Storage in GB currently used in the pool\"),\n storage_total: z.number().int().describe(\"Total storage in GB available in the pool\"),\n}).describe(\"Resource statistics for a single host pool.\");\nconst PilvioListVmResourcePools_ResourcePoolSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the resource pool\"),\n name: z.string().describe(\"Name of the resource pool\"),\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.ZodTypeAny = 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\"),\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,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,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,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAChF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAClF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;AACtF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,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,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kCAAkC;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;AACzE,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-vm-resource-pools.d.ts
4
+ declare const PilvioListVmResourcePoolsInput: z.ZodTypeAny;
5
+ declare const PilvioListVmResourcePoolsOutput: z.ZodTypeAny;
6
+ declare const pilvioListVmResourcePools: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioListVmResourcePools };
9
+ //# sourceMappingURL=list-vm-resource-pools.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-vm-resource-pools.d.cts","names":[],"sources":["../../src/actions/list-vm-resource-pools.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAG8D;AAAA,cAehG,+BAAA,EAAiC,CAAA,CAAE,UAGe;AAAA,cAElD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-vm-resource-pools.d.ts
4
+ declare const PilvioListVmResourcePoolsInput: z.ZodTypeAny;
5
+ declare const PilvioListVmResourcePoolsOutput: z.ZodTypeAny;
6
+ declare const pilvioListVmResourcePools: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioListVmResourcePools };
9
+ //# sourceMappingURL=list-vm-resource-pools.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-vm-resource-pools.d.mts","names":[],"sources":["../../src/actions/list-vm-resource-pools.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAG8D;AAAA,cAehG,+BAAA,EAAiC,CAAA,CAAE,UAGe;AAAA,cAElD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,35 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-vm-resource-pools.ts
4
+ const PilvioListVmResourcePoolsInput = z.object({
5
+ page: z.number().int().describe("Page number for pagination (1-based)").optional(),
6
+ page_size: z.number().int().describe("Number of items per page").optional()
7
+ }).describe("Request schema for listing VM resource pools.\nOptional pagination parameters can be provided.");
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")
15
+ }).describe("Resource statistics for a single host pool.");
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"),
19
+ description: z.string().describe("Description of the resource pool").nullable().optional(),
20
+ resource_stats: PilvioListVmResourcePools_ResourceStatsSchema.nullable()
21
+ }).describe("A single VM resource pool.");
22
+ const pilvioListVmResourcePools = action("PILVIO_LIST_VM_RESOURCE_POOLS", {
23
+ slug: "pilvio-list-vm-resource-pools",
24
+ name: "List VM Resource Pools",
25
+ description: "Tool to retrieve the list of available VM resource pools. Use after authentication to determine where you can provision VMs.",
26
+ input: PilvioListVmResourcePoolsInput,
27
+ output: z.object({
28
+ list: z.array(PilvioListVmResourcePools_ResourcePoolSchema).describe("List of available resource pools"),
29
+ total: z.number().int().describe("Total number of resource pools found")
30
+ }).describe("Response schema for a list of VM resource pools.")
31
+ });
32
+ //#endregion
33
+ export { pilvioListVmResourcePools };
34
+
35
+ //# sourceMappingURL=list-vm-resource-pools.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n cpu_used: z.number().int().describe(\"Number of CPUs currently used\"),\n cpu_total: z.number().int().describe(\"Total CPUs in the pool\"),\n memory_used: z.number().int().describe(\"Memory in MB currently used in the pool\"),\n memory_total: z.number().int().describe(\"Total memory in MB available in the pool\"),\n storage_used: z.number().int().describe(\"Storage in GB currently used in the pool\"),\n storage_total: z.number().int().describe(\"Total storage in GB available in the pool\"),\n}).describe(\"Resource statistics for a single host pool.\");\nconst PilvioListVmResourcePools_ResourcePoolSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the resource pool\"),\n name: z.string().describe(\"Name of the resource pool\"),\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.ZodTypeAny = 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\"),\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,iCAA+C,EAAE,OAAO;CACnE,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,gDAA8D,EAAE,OAAO;CAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAChF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAClF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;AACtF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,+CAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,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,QAV2D,EAAE,OAAO;EACpE,MAAM,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kCAAkC;EACvG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACzE,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-vm-snapshots.ts
4
+ const PilvioListVmSnapshotsInput = zod.z.object({
5
+ uuid: zod.z.string().describe("UUID of the VM to fetch replicas/snapshots for"),
6
+ r_type: zod.z.string().default("snapshot").describe("Type of replica to list: 'snapshot' or 'backup'. Defaults to 'snapshot'").optional()
7
+ }).describe("Request model for listing VM snapshots (replicas) for a given VM.");
8
+ const PilvioListVmSnapshots_ReplicaSchema = zod.z.object({
9
+ id: zod.z.number().int().describe("Numeric ID of the replica").nullable().optional(),
10
+ pool: zod.z.string().describe("Storage pool name").nullable().optional(),
11
+ size: zod.z.number().int().describe("Size of the replica in bytes").nullable().optional(),
12
+ type: zod.z.string().describe("Type of replica: 'snapshot' or 'backup'").nullable().optional(),
13
+ uuid: zod.z.string().describe("Unique replica/snapshot identifier"),
14
+ master_id: zod.z.number().int().describe("ID of the master disk").nullable().optional(),
15
+ created_at: zod.z.string().describe("Creation timestamp").nullable().optional(),
16
+ updated_at: zod.z.string().describe("Last update timestamp").nullable().optional(),
17
+ master_uuid: zod.z.string().describe("UUID of the master disk").nullable().optional()
18
+ }).describe("Details of a VM snapshot/replica.");
19
+ const PilvioListVmSnapshotsOutput = zod.z.object({ replicas: zod.z.array(PilvioListVmSnapshots_ReplicaSchema).describe("List of replicas/snapshots for the VM").nullable().optional() }).describe("Response model for VM snapshots listing.\nReturns a list of replica objects.");
20
+ const pilvioListVmSnapshots = require_action.action("PILVIO_LIST_VM_SNAPSHOTS", {
21
+ slug: "pilvio-list-vm-snapshots",
22
+ name: "List VM Snapshots",
23
+ 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.",
24
+ input: PilvioListVmSnapshotsInput,
25
+ output: PilvioListVmSnapshotsOutput
26
+ });
27
+ //#endregion
28
+ exports.pilvioListVmSnapshots = pilvioListVmSnapshots;
29
+
30
+ //# sourceMappingURL=list-vm-snapshots.cjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = 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\"),\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.ZodTypeAny = 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,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,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,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,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;CAC9D,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,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-vm-snapshots.d.ts
4
+ declare const PilvioListVmSnapshotsInput: z.ZodTypeAny;
5
+ declare const PilvioListVmSnapshotsOutput: z.ZodTypeAny;
6
+ declare const pilvioListVmSnapshots: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioListVmSnapshots };
9
+ //# sourceMappingURL=list-vm-snapshots.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-vm-snapshots.d.cts","names":[],"sources":["../../src/actions/list-vm-snapshots.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGqC;AAAA,cAYnE,2BAAA,EAA6B,CAAA,CAAE,UAE+C;AAAA,cAE9E,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-vm-snapshots.d.ts
4
+ declare const PilvioListVmSnapshotsInput: z.ZodTypeAny;
5
+ declare const PilvioListVmSnapshotsOutput: z.ZodTypeAny;
6
+ declare const pilvioListVmSnapshots: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioListVmSnapshots };
9
+ //# sourceMappingURL=list-vm-snapshots.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-vm-snapshots.d.mts","names":[],"sources":["../../src/actions/list-vm-snapshots.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGqC;AAAA,cAYnE,2BAAA,EAA6B,CAAA,CAAE,UAE+C;AAAA,cAE9E,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-vm-snapshots.ts
4
+ const PilvioListVmSnapshotsInput = z.object({
5
+ uuid: z.string().describe("UUID of the VM to fetch replicas/snapshots for"),
6
+ r_type: z.string().default("snapshot").describe("Type of replica to list: 'snapshot' or 'backup'. Defaults to 'snapshot'").optional()
7
+ }).describe("Request model for listing VM snapshots (replicas) for a given VM.");
8
+ const PilvioListVmSnapshots_ReplicaSchema = z.object({
9
+ id: z.number().int().describe("Numeric ID of the replica").nullable().optional(),
10
+ pool: z.string().describe("Storage pool name").nullable().optional(),
11
+ size: z.number().int().describe("Size of the replica in bytes").nullable().optional(),
12
+ type: z.string().describe("Type of replica: 'snapshot' or 'backup'").nullable().optional(),
13
+ uuid: z.string().describe("Unique replica/snapshot identifier"),
14
+ master_id: z.number().int().describe("ID of the master disk").nullable().optional(),
15
+ created_at: z.string().describe("Creation timestamp").nullable().optional(),
16
+ updated_at: z.string().describe("Last update timestamp").nullable().optional(),
17
+ master_uuid: z.string().describe("UUID of the master disk").nullable().optional()
18
+ }).describe("Details of a VM snapshot/replica.");
19
+ const pilvioListVmSnapshots = action("PILVIO_LIST_VM_SNAPSHOTS", {
20
+ slug: "pilvio-list-vm-snapshots",
21
+ name: "List VM Snapshots",
22
+ 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.",
23
+ input: PilvioListVmSnapshotsInput,
24
+ output: z.object({ replicas: z.array(PilvioListVmSnapshots_ReplicaSchema).describe("List of replicas/snapshots for the VM").nullable().optional() }).describe("Response model for VM snapshots listing.\nReturns a list of replica objects.")
25
+ });
26
+ //#endregion
27
+ export { pilvioListVmSnapshots };
28
+
29
+ //# sourceMappingURL=list-vm-snapshots.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = 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\"),\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.ZodTypeAny = 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,6BAA2C,EAAE,OAAO;CAC/D,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,sCAAoD,EAAE,OAAO;CACjE,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;CAC9D,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,QATuD,EAAE,OAAO,EAChE,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,SAAS,8EAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-vms.ts
4
+ const PilvioListVmsInput = zod.z.object({
5
+ sort: zod.z.string().describe("Sort by field").optional(),
6
+ limit: zod.z.number().int().describe("Maximum results per page").optional(),
7
+ offset: zod.z.number().int().describe("Pagination offset").optional(),
8
+ project_id: zod.z.string().describe("Filter by project id").optional()
9
+ }).describe("Request model for listing virtual machines with optional filters.");
10
+ const PilvioListVms_VMSchema = zod.z.object({
11
+ id: zod.z.string().describe("VM unique identifier, e.g., 'vm-123'"),
12
+ cpu: zod.z.number().int().describe("Number of CPUs allocated to the VM"),
13
+ ram: zod.z.number().int().describe("Amount of RAM in MB allocated to the VM"),
14
+ ipv4: zod.z.string().describe("IPv4 address of the VM, if assigned").nullable().optional(),
15
+ ipv6: zod.z.string().describe("IPv6 address of the VM, if assigned").nullable().optional(),
16
+ name: zod.z.string().describe("Name of the virtual machine"),
17
+ image: zod.z.string().describe("Image the VM was created from, e.g., 'ubuntu-20.04'"),
18
+ region: zod.z.string().describe("Region where the VM is deployed, e.g., 'us-east-1'"),
19
+ status: zod.z.string().describe("Status of the VM, e.g., 'running' or 'stopped'"),
20
+ created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format"),
21
+ project_id: zod.z.string().describe("Project ID the VM belongs to"),
22
+ updated_at: zod.z.string().describe("Last updated timestamp in ISO 8601 format")
23
+ }).describe("Details of a virtual machine.");
24
+ const PilvioListVmsOutput = zod.z.object({ data: zod.z.array(PilvioListVms_VMSchema).describe("List of virtual machine objects") }).describe("Response model containing a list of virtual machines.");
25
+ const pilvioListVms = require_action.action("PILVIO_LIST_VMS", {
26
+ slug: "pilvio-list-vms",
27
+ name: "List Virtual Machines",
28
+ description: "Tool to retrieve a list of all virtual machines. Use after authenticating to fetch your VMs.",
29
+ input: PilvioListVmsInput,
30
+ output: PilvioListVmsOutput
31
+ });
32
+ //#endregion
33
+ exports.pilvioListVms = pilvioListVms;
34
+
35
+ //# sourceMappingURL=list-vms.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-vms.cjs","names":["z","action"],"sources":["../../src/actions/list-vms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmsInput: z.ZodTypeAny = z.object({\n sort: z.string().describe(\"Sort by field\").optional(),\n limit: z.number().int().describe(\"Maximum results per page\").optional(),\n offset: z.number().int().describe(\"Pagination offset\").optional(),\n project_id: z.string().describe(\"Filter by project id\").optional(),\n}).describe(\"Request model for listing virtual machines with optional filters.\");\nconst PilvioListVms_VMSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"VM unique identifier, e.g., 'vm-123'\"),\n cpu: z.number().int().describe(\"Number of CPUs allocated to the VM\"),\n ram: z.number().int().describe(\"Amount of RAM in MB allocated to the VM\"),\n ipv4: z.string().describe(\"IPv4 address of the VM, if assigned\").nullable().optional(),\n ipv6: z.string().describe(\"IPv6 address of the VM, if assigned\").nullable().optional(),\n name: z.string().describe(\"Name of the virtual machine\"),\n image: z.string().describe(\"Image the VM was created from, e.g., 'ubuntu-20.04'\"),\n region: z.string().describe(\"Region where the VM is deployed, e.g., 'us-east-1'\"),\n status: z.string().describe(\"Status of the VM, e.g., 'running' or 'stopped'\"),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\"),\n project_id: z.string().describe(\"Project ID the VM belongs to\"),\n updated_at: z.string().describe(\"Last updated timestamp in ISO 8601 format\"),\n}).describe(\"Details of a virtual machine.\");\nexport const PilvioListVmsOutput: z.ZodTypeAny = z.object({\n data: z.array(PilvioListVms_VMSchema).describe(\"List of virtual machine objects\"),\n}).describe(\"Response model containing a list of virtual machines.\");\n\nexport const pilvioListVms = action(\"PILVIO_LIST_VMS\", {\n slug: \"pilvio-list-vms\",\n name: \"List Virtual Machines\",\n description: \"Tool to retrieve a list of all virtual machines. Use after authenticating to fetch your VMs.\",\n input: PilvioListVmsInput,\n output: PilvioListVmsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,yBAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC7E,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,MAAM,sBAAsB,CAAC,CAAC,SAAS,iCAAiC,EAClF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-vms.d.ts
4
+ declare const PilvioListVmsInput: z.ZodTypeAny;
5
+ declare const PilvioListVmsOutput: z.ZodTypeAny;
6
+ declare const pilvioListVms: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioListVms };
9
+ //# sourceMappingURL=list-vms.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-vms.d.cts","names":[],"sources":["../../src/actions/list-vms.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAK6C;AAAA,cAenE,mBAAA,EAAqB,CAAA,CAAE,UAEgC;AAAA,cAEvD,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-vms.d.ts
4
+ declare const PilvioListVmsInput: z.ZodTypeAny;
5
+ declare const PilvioListVmsOutput: z.ZodTypeAny;
6
+ declare const pilvioListVms: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioListVms };
9
+ //# sourceMappingURL=list-vms.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-vms.d.mts","names":[],"sources":["../../src/actions/list-vms.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAK6C;AAAA,cAenE,mBAAA,EAAqB,CAAA,CAAE,UAEgC;AAAA,cAEvD,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,34 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-vms.ts
4
+ const PilvioListVmsInput = z.object({
5
+ sort: z.string().describe("Sort by field").optional(),
6
+ limit: z.number().int().describe("Maximum results per page").optional(),
7
+ offset: z.number().int().describe("Pagination offset").optional(),
8
+ project_id: z.string().describe("Filter by project id").optional()
9
+ }).describe("Request model for listing virtual machines with optional filters.");
10
+ const PilvioListVms_VMSchema = z.object({
11
+ id: z.string().describe("VM unique identifier, e.g., 'vm-123'"),
12
+ cpu: z.number().int().describe("Number of CPUs allocated to the VM"),
13
+ ram: z.number().int().describe("Amount of RAM in MB allocated to the VM"),
14
+ ipv4: z.string().describe("IPv4 address of the VM, if assigned").nullable().optional(),
15
+ ipv6: z.string().describe("IPv6 address of the VM, if assigned").nullable().optional(),
16
+ name: z.string().describe("Name of the virtual machine"),
17
+ image: z.string().describe("Image the VM was created from, e.g., 'ubuntu-20.04'"),
18
+ region: z.string().describe("Region where the VM is deployed, e.g., 'us-east-1'"),
19
+ status: z.string().describe("Status of the VM, e.g., 'running' or 'stopped'"),
20
+ created_at: z.string().describe("Creation timestamp in ISO 8601 format"),
21
+ project_id: z.string().describe("Project ID the VM belongs to"),
22
+ updated_at: z.string().describe("Last updated timestamp in ISO 8601 format")
23
+ }).describe("Details of a virtual machine.");
24
+ const pilvioListVms = action("PILVIO_LIST_VMS", {
25
+ slug: "pilvio-list-vms",
26
+ name: "List Virtual Machines",
27
+ description: "Tool to retrieve a list of all virtual machines. Use after authenticating to fetch your VMs.",
28
+ input: PilvioListVmsInput,
29
+ output: z.object({ data: z.array(PilvioListVms_VMSchema).describe("List of virtual machine objects") }).describe("Response model containing a list of virtual machines.")
30
+ });
31
+ //#endregion
32
+ export { pilvioListVms };
33
+
34
+ //# sourceMappingURL=list-vms.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-vms.mjs","names":[],"sources":["../../src/actions/list-vms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioListVmsInput: z.ZodTypeAny = z.object({\n sort: z.string().describe(\"Sort by field\").optional(),\n limit: z.number().int().describe(\"Maximum results per page\").optional(),\n offset: z.number().int().describe(\"Pagination offset\").optional(),\n project_id: z.string().describe(\"Filter by project id\").optional(),\n}).describe(\"Request model for listing virtual machines with optional filters.\");\nconst PilvioListVms_VMSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"VM unique identifier, e.g., 'vm-123'\"),\n cpu: z.number().int().describe(\"Number of CPUs allocated to the VM\"),\n ram: z.number().int().describe(\"Amount of RAM in MB allocated to the VM\"),\n ipv4: z.string().describe(\"IPv4 address of the VM, if assigned\").nullable().optional(),\n ipv6: z.string().describe(\"IPv6 address of the VM, if assigned\").nullable().optional(),\n name: z.string().describe(\"Name of the virtual machine\"),\n image: z.string().describe(\"Image the VM was created from, e.g., 'ubuntu-20.04'\"),\n region: z.string().describe(\"Region where the VM is deployed, e.g., 'us-east-1'\"),\n status: z.string().describe(\"Status of the VM, e.g., 'running' or 'stopped'\"),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\"),\n project_id: z.string().describe(\"Project ID the VM belongs to\"),\n updated_at: z.string().describe(\"Last updated timestamp in ISO 8601 format\"),\n}).describe(\"Details of a virtual machine.\");\nexport const PilvioListVmsOutput: z.ZodTypeAny = z.object({\n data: z.array(PilvioListVms_VMSchema).describe(\"List of virtual machine objects\"),\n}).describe(\"Response model containing a list of virtual machines.\");\n\nexport const pilvioListVms = action(\"PILVIO_LIST_VMS\", {\n slug: \"pilvio-list-vms\",\n name: \"List Virtual Machines\",\n description: \"Tool to retrieve a list of all virtual machines. Use after authenticating to fetch your VMs.\",\n input: PilvioListVmsInput,\n output: PilvioListVmsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,yBAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC7E,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAK3C,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,MAAM,EAAE,MAAM,sBAAsB,CAAC,CAAC,SAAS,iCAAiC,EAClF,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -0,0 +1,42 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-user-profile.ts
4
+ const PilvioUpdateUserProfileInput = zod.z.object({
5
+ email: zod.z.string().describe("User's email address").optional(),
6
+ username: zod.z.string().describe("User's username (required for identification)"),
7
+ last_name: zod.z.string().describe("User's last name").optional(),
8
+ first_name: zod.z.string().describe("User's first name").optional(),
9
+ phone_number: zod.z.string().describe("User's phone number").optional()
10
+ }).describe("Fields to update in the authenticated user's profile.\nUsername is required. At least one other field must be provided to update.");
11
+ const PilvioUpdateUserProfile_ProfileDataSchema = zod.z.object({
12
+ id: zod.z.number().int().describe("Profile ID"),
13
+ lang: zod.z.string().describe("User's preferred language").nullable().optional(),
14
+ email: zod.z.string().describe("User's email address"),
15
+ avatar: zod.z.string().describe("Avatar URL").nullable().optional(),
16
+ user_id: zod.z.number().int().describe("User ID reference"),
17
+ last_name: zod.z.string().describe("User's last name").nullable().optional(),
18
+ created_at: zod.z.string().describe("Profile creation timestamp"),
19
+ first_name: zod.z.string().describe("User's first name").nullable().optional(),
20
+ updated_at: zod.z.string().describe("Profile last update timestamp"),
21
+ phone_number: zod.z.string().describe("User's phone number").nullable().optional(),
22
+ personal_id_number: zod.z.string().describe("Personal ID number").nullable().optional()
23
+ }).describe("Nested profile data structure from the API response.");
24
+ const PilvioUpdateUserProfileOutput = zod.z.object({
25
+ id: zod.z.number().int().describe("Unique identifier of the user"),
26
+ name: zod.z.string().describe("User's name/email identifier"),
27
+ kong_key: zod.z.string().describe("Kong API key").nullable().optional(),
28
+ cookie_id: zod.z.string().describe("Cookie identifier"),
29
+ signup_site: zod.z.string().describe("Signup site").nullable().optional(),
30
+ profile_data: PilvioUpdateUserProfile_ProfileDataSchema.nullable()
31
+ }).describe("The updated user profile returned by the API.");
32
+ const pilvioUpdateUserProfile = require_action.action("PILVIO_UPDATE_USER_PROFILE", {
33
+ slug: "pilvio-update-user-profile",
34
+ name: "Update User Profile",
35
+ description: "Tool to update the authenticated user's profile. Use after obtaining a valid API key when you need to modify profile details (e.g., change email or name).",
36
+ input: PilvioUpdateUserProfileInput,
37
+ output: PilvioUpdateUserProfileOutput
38
+ });
39
+ //#endregion
40
+ exports.pilvioUpdateUserProfile = pilvioUpdateUserProfile;
41
+
42
+ //# sourceMappingURL=update-user-profile.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user-profile.cjs","names":["z","action"],"sources":["../../src/actions/update-user-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioUpdateUserProfileInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"User's email address\").optional(),\n username: z.string().describe(\"User's username (required for identification)\"),\n last_name: z.string().describe(\"User's last name\").optional(),\n first_name: z.string().describe(\"User's first name\").optional(),\n phone_number: z.string().describe(\"User's phone number\").optional(),\n}).describe(\"Fields to update in the authenticated user's profile.\\nUsername is required. At least one other field must be provided to update.\");\nconst PilvioUpdateUserProfile_ProfileDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Profile ID\"),\n lang: z.string().describe(\"User's preferred language\").nullable().optional(),\n email: z.string().describe(\"User's email address\"),\n avatar: z.string().describe(\"Avatar URL\").nullable().optional(),\n user_id: z.number().int().describe(\"User ID reference\"),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n created_at: z.string().describe(\"Profile creation timestamp\"),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n updated_at: z.string().describe(\"Profile last update timestamp\"),\n phone_number: z.string().describe(\"User's phone number\").nullable().optional(),\n personal_id_number: z.string().describe(\"Personal ID number\").nullable().optional(),\n}).describe(\"Nested profile data structure from the API response.\");\nexport const PilvioUpdateUserProfileOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\"),\n name: z.string().describe(\"User's name/email identifier\"),\n kong_key: z.string().describe(\"Kong API key\").nullable().optional(),\n cookie_id: z.string().describe(\"Cookie identifier\"),\n signup_site: z.string().describe(\"Signup site\").nullable().optional(),\n profile_data: PilvioUpdateUserProfile_ProfileDataSchema.nullable(),\n}).describe(\"The updated user profile returned by the API.\");\n\nexport const pilvioUpdateUserProfile = action(\"PILVIO_UPDATE_USER_PROFILE\", {\n slug: \"pilvio-update-user-profile\",\n name: \"Update User Profile\",\n description: \"Tool to update the authenticated user's profile. Use after obtaining a valid API key when you need to modify profile details (e.g., change email or name).\",\n input: PilvioUpdateUserProfileInput,\n output: PilvioUpdateUserProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAC/I,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,cAAc,0CAA0C,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-user-profile.d.ts
4
+ declare const PilvioUpdateUserProfileInput: z.ZodTypeAny;
5
+ declare const PilvioUpdateUserProfileOutput: z.ZodTypeAny;
6
+ declare const pilvioUpdateUserProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pilvioUpdateUserProfile };
9
+ //# sourceMappingURL=update-user-profile.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user-profile.d.cts","names":[],"sources":["../../src/actions/update-user-profile.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAMmG;AAAA,cAcnI,6BAAA,EAA+B,CAAA,CAAE,UAOc;AAAA,cAE/C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}