@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
|
@@ -8,18 +8,18 @@ const PilvioListVmsInput = zod.z.object({
|
|
|
8
8
|
project_id: zod.z.string().describe("Filter by project id").optional()
|
|
9
9
|
}).describe("Request model for listing virtual machines with optional filters.");
|
|
10
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"),
|
|
11
|
+
id: zod.z.string().describe("VM unique identifier, e.g., 'vm-123'").nullable(),
|
|
12
|
+
cpu: zod.z.number().int().describe("Number of CPUs allocated to the VM").nullable(),
|
|
13
|
+
ram: zod.z.number().int().describe("Amount of RAM in MB allocated to the VM").nullable(),
|
|
14
14
|
ipv4: zod.z.string().describe("IPv4 address of the VM, if assigned").nullable().optional(),
|
|
15
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")
|
|
16
|
+
name: zod.z.string().describe("Name of the virtual machine").nullable(),
|
|
17
|
+
image: zod.z.string().describe("Image the VM was created from, e.g., 'ubuntu-20.04'").nullable(),
|
|
18
|
+
region: zod.z.string().describe("Region where the VM is deployed, e.g., 'us-east-1'").nullable(),
|
|
19
|
+
status: zod.z.string().describe("Status of the VM, e.g., 'running' or 'stopped'").nullable(),
|
|
20
|
+
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
|
|
21
|
+
project_id: zod.z.string().describe("Project ID the VM belongs to").nullable(),
|
|
22
|
+
updated_at: zod.z.string().describe("Last updated timestamp in ISO 8601 format").nullable()
|
|
23
23
|
}).describe("Details of a virtual machine.");
|
|
24
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
25
|
const pilvioListVms = require_action.action("PILVIO_LIST_VMS", {
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.string().describe(\"VM unique identifier, e.g., 'vm-123'\").nullable(),\n cpu: z.number().int().describe(\"Number of CPUs allocated to the VM\").nullable(),\n ram: z.number().int().describe(\"Amount of RAM in MB allocated to the VM\").nullable(),\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\").nullable(),\n image: z.string().describe(\"Image the VM was created from, e.g., 'ubuntu-20.04'\").nullable(),\n region: z.string().describe(\"Region where the VM is deployed, e.g., 'us-east-1'\").nullable(),\n status: z.string().describe(\"Status of the VM, e.g., 'running' or 'stopped'\").nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n project_id: z.string().describe(\"Project ID the VM belongs to\").nullable(),\n updated_at: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\n}).describe(\"Details of a virtual machine.\");\nexport const PilvioListVmsOutput = 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,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,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,yBAAyBA,IAAAA,EAAE,OAAO;CACtC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,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,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,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"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-vms.d.ts
|
|
4
|
-
declare const PilvioListVmsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListVmsInput: z.ZodObject<{
|
|
5
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const PilvioListVmsOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
cpu: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
ram: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
ipv4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
ipv6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
image: z.ZodNullable<z.ZodString>;
|
|
19
|
+
region: z.ZodNullable<z.ZodString>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const pilvioListVms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
sort?: string | undefined;
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
offset?: number | undefined;
|
|
30
|
+
project_id?: string | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { pilvioListVms };
|
|
9
34
|
//# sourceMappingURL=list-vms.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vms.d.cts","names":[],"sources":["../../src/actions/list-vms.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"list-vms.d.cts","names":[],"sources":["../../src/actions/list-vms.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-vms.d.ts
|
|
4
|
-
declare const PilvioListVmsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioListVmsInput: z.ZodObject<{
|
|
5
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const PilvioListVmsOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
cpu: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
ram: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
ipv4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
ipv6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
image: z.ZodNullable<z.ZodString>;
|
|
19
|
+
region: z.ZodNullable<z.ZodString>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const pilvioListVms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
sort?: string | undefined;
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
offset?: number | undefined;
|
|
30
|
+
project_id?: string | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { pilvioListVms };
|
|
9
34
|
//# sourceMappingURL=list-vms.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-vms.d.mts","names":[],"sources":["../../src/actions/list-vms.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"list-vms.d.mts","names":[],"sources":["../../src/actions/list-vms.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA"}
|
|
@@ -8,18 +8,18 @@ const PilvioListVmsInput = z.object({
|
|
|
8
8
|
project_id: z.string().describe("Filter by project id").optional()
|
|
9
9
|
}).describe("Request model for listing virtual machines with optional filters.");
|
|
10
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"),
|
|
11
|
+
id: z.string().describe("VM unique identifier, e.g., 'vm-123'").nullable(),
|
|
12
|
+
cpu: z.number().int().describe("Number of CPUs allocated to the VM").nullable(),
|
|
13
|
+
ram: z.number().int().describe("Amount of RAM in MB allocated to the VM").nullable(),
|
|
14
14
|
ipv4: z.string().describe("IPv4 address of the VM, if assigned").nullable().optional(),
|
|
15
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")
|
|
16
|
+
name: z.string().describe("Name of the virtual machine").nullable(),
|
|
17
|
+
image: z.string().describe("Image the VM was created from, e.g., 'ubuntu-20.04'").nullable(),
|
|
18
|
+
region: z.string().describe("Region where the VM is deployed, e.g., 'us-east-1'").nullable(),
|
|
19
|
+
status: z.string().describe("Status of the VM, e.g., 'running' or 'stopped'").nullable(),
|
|
20
|
+
created_at: z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
|
|
21
|
+
project_id: z.string().describe("Project ID the VM belongs to").nullable(),
|
|
22
|
+
updated_at: z.string().describe("Last updated timestamp in ISO 8601 format").nullable()
|
|
23
23
|
}).describe("Details of a virtual machine.");
|
|
24
24
|
const pilvioListVms = action("PILVIO_LIST_VMS", {
|
|
25
25
|
slug: "pilvio-list-vms",
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.string().describe(\"VM unique identifier, e.g., 'vm-123'\").nullable(),\n cpu: z.number().int().describe(\"Number of CPUs allocated to the VM\").nullable(),\n ram: z.number().int().describe(\"Amount of RAM in MB allocated to the VM\").nullable(),\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\").nullable(),\n image: z.string().describe(\"Image the VM was created from, e.g., 'ubuntu-20.04'\").nullable(),\n region: z.string().describe(\"Region where the VM is deployed, e.g., 'us-east-1'\").nullable(),\n status: z.string().describe(\"Status of the VM, e.g., 'running' or 'stopped'\").nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n project_id: z.string().describe(\"Project ID the VM belongs to\").nullable(),\n updated_at: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\n}).describe(\"Details of a virtual machine.\");\nexport const PilvioListVmsOutput = 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,qBAAqB,EAAE,OAAO;CACzC,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,yBAAyB,EAAE,OAAO;CACtC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,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,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAK3C,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiC,EAAE,OAAO,EAC1C,MAAM,EAAE,MAAM,sBAAsB,CAAC,CAAC,SAAS,iCAAiC,EAClF,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -9,23 +9,23 @@ const PilvioUpdateUserProfileInput = zod.z.object({
|
|
|
9
9
|
phone_number: zod.z.string().describe("User's phone number").optional()
|
|
10
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
11
|
const PilvioUpdateUserProfile_ProfileDataSchema = zod.z.object({
|
|
12
|
-
id: zod.z.number().int().describe("Profile ID"),
|
|
12
|
+
id: zod.z.number().int().describe("Profile ID").nullable(),
|
|
13
13
|
lang: zod.z.string().describe("User's preferred language").nullable().optional(),
|
|
14
|
-
email: zod.z.string().describe("User's email address"),
|
|
14
|
+
email: zod.z.string().describe("User's email address").nullable(),
|
|
15
15
|
avatar: zod.z.string().describe("Avatar URL").nullable().optional(),
|
|
16
|
-
user_id: zod.z.number().int().describe("User ID reference"),
|
|
16
|
+
user_id: zod.z.number().int().describe("User ID reference").nullable(),
|
|
17
17
|
last_name: zod.z.string().describe("User's last name").nullable().optional(),
|
|
18
|
-
created_at: zod.z.string().describe("Profile creation timestamp"),
|
|
18
|
+
created_at: zod.z.string().describe("Profile creation timestamp").nullable(),
|
|
19
19
|
first_name: zod.z.string().describe("User's first name").nullable().optional(),
|
|
20
|
-
updated_at: zod.z.string().describe("Profile last update timestamp"),
|
|
20
|
+
updated_at: zod.z.string().describe("Profile last update timestamp").nullable(),
|
|
21
21
|
phone_number: zod.z.string().describe("User's phone number").nullable().optional(),
|
|
22
22
|
personal_id_number: zod.z.string().describe("Personal ID number").nullable().optional()
|
|
23
23
|
}).describe("Nested profile data structure from the API response.");
|
|
24
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"),
|
|
25
|
+
id: zod.z.number().int().describe("Unique identifier of the user").nullable(),
|
|
26
|
+
name: zod.z.string().describe("User's name/email identifier").nullable(),
|
|
27
27
|
kong_key: zod.z.string().describe("Kong API key").nullable().optional(),
|
|
28
|
-
cookie_id: zod.z.string().describe("Cookie identifier"),
|
|
28
|
+
cookie_id: zod.z.string().describe("Cookie identifier").nullable(),
|
|
29
29
|
signup_site: zod.z.string().describe("Signup site").nullable().optional(),
|
|
30
30
|
profile_data: PilvioUpdateUserProfile_ProfileDataSchema.nullable()
|
|
31
31
|
}).describe("The updated user profile returned by the API.");
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.number().int().describe(\"Profile ID\").nullable(),\n lang: z.string().describe(\"User's preferred language\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable(),\n avatar: z.string().describe(\"Avatar URL\").nullable().optional(),\n user_id: z.number().int().describe(\"User ID reference\").nullable(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n created_at: z.string().describe(\"Profile creation timestamp\").nullable(),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n updated_at: z.string().describe(\"Profile last update timestamp\").nullable(),\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.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"User's name/email identifier\").nullable(),\n kong_key: z.string().describe(\"Kong API key\").nullable().optional(),\n cookie_id: z.string().describe(\"Cookie identifier\").nullable(),\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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,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,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,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,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC7D,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"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-user-profile.d.ts
|
|
4
|
-
declare const PilvioUpdateUserProfileInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioUpdateUserProfileInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const PilvioUpdateUserProfileOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
kong_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
cookie_id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
signup_site: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
profile_data: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
email: z.ZodNullable<z.ZodString>;
|
|
21
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
user_id: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
25
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
27
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
personal_id_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const pilvioUpdateUserProfile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
username: string;
|
|
33
|
+
email?: string | undefined;
|
|
34
|
+
last_name?: string | undefined;
|
|
35
|
+
first_name?: string | undefined;
|
|
36
|
+
phone_number?: string | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { pilvioUpdateUserProfile };
|
|
9
40
|
//# sourceMappingURL=update-user-profile.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-profile.d.cts","names":[],"sources":["../../src/actions/update-user-profile.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"update-user-profile.d.cts","names":[],"sources":["../../src/actions/update-user-profile.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAoB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAS7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-user-profile.d.ts
|
|
4
|
-
declare const PilvioUpdateUserProfileInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PilvioUpdateUserProfileInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const PilvioUpdateUserProfileOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
kong_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
cookie_id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
signup_site: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
profile_data: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
email: z.ZodNullable<z.ZodString>;
|
|
21
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
user_id: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
25
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
27
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
personal_id_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const pilvioUpdateUserProfile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
username: string;
|
|
33
|
+
email?: string | undefined;
|
|
34
|
+
last_name?: string | undefined;
|
|
35
|
+
first_name?: string | undefined;
|
|
36
|
+
phone_number?: string | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { pilvioUpdateUserProfile };
|
|
9
40
|
//# sourceMappingURL=update-user-profile.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-profile.d.mts","names":[],"sources":["../../src/actions/update-user-profile.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"update-user-profile.d.mts","names":[],"sources":["../../src/actions/update-user-profile.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAoB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAS7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -9,15 +9,15 @@ const PilvioUpdateUserProfileInput = z.object({
|
|
|
9
9
|
phone_number: z.string().describe("User's phone number").optional()
|
|
10
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
11
|
const PilvioUpdateUserProfile_ProfileDataSchema = z.object({
|
|
12
|
-
id: z.number().int().describe("Profile ID"),
|
|
12
|
+
id: z.number().int().describe("Profile ID").nullable(),
|
|
13
13
|
lang: z.string().describe("User's preferred language").nullable().optional(),
|
|
14
|
-
email: z.string().describe("User's email address"),
|
|
14
|
+
email: z.string().describe("User's email address").nullable(),
|
|
15
15
|
avatar: z.string().describe("Avatar URL").nullable().optional(),
|
|
16
|
-
user_id: z.number().int().describe("User ID reference"),
|
|
16
|
+
user_id: z.number().int().describe("User ID reference").nullable(),
|
|
17
17
|
last_name: z.string().describe("User's last name").nullable().optional(),
|
|
18
|
-
created_at: z.string().describe("Profile creation timestamp"),
|
|
18
|
+
created_at: z.string().describe("Profile creation timestamp").nullable(),
|
|
19
19
|
first_name: z.string().describe("User's first name").nullable().optional(),
|
|
20
|
-
updated_at: z.string().describe("Profile last update timestamp"),
|
|
20
|
+
updated_at: z.string().describe("Profile last update timestamp").nullable(),
|
|
21
21
|
phone_number: z.string().describe("User's phone number").nullable().optional(),
|
|
22
22
|
personal_id_number: z.string().describe("Personal ID number").nullable().optional()
|
|
23
23
|
}).describe("Nested profile data structure from the API response.");
|
|
@@ -27,10 +27,10 @@ const pilvioUpdateUserProfile = action("PILVIO_UPDATE_USER_PROFILE", {
|
|
|
27
27
|
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).",
|
|
28
28
|
input: PilvioUpdateUserProfileInput,
|
|
29
29
|
output: z.object({
|
|
30
|
-
id: z.number().int().describe("Unique identifier of the user"),
|
|
31
|
-
name: z.string().describe("User's name/email identifier"),
|
|
30
|
+
id: z.number().int().describe("Unique identifier of the user").nullable(),
|
|
31
|
+
name: z.string().describe("User's name/email identifier").nullable(),
|
|
32
32
|
kong_key: z.string().describe("Kong API key").nullable().optional(),
|
|
33
|
-
cookie_id: z.string().describe("Cookie identifier"),
|
|
33
|
+
cookie_id: z.string().describe("Cookie identifier").nullable(),
|
|
34
34
|
signup_site: z.string().describe("Signup site").nullable().optional(),
|
|
35
35
|
profile_data: PilvioUpdateUserProfile_ProfileDataSchema.nullable()
|
|
36
36
|
}).describe("The updated user profile returned by the API.")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-profile.mjs","names":[],"sources":["../../src/actions/update-user-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioUpdateUserProfileInput
|
|
1
|
+
{"version":3,"file":"update-user-profile.mjs","names":[],"sources":["../../src/actions/update-user-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PilvioUpdateUserProfileInput = 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.object({\n id: z.number().int().describe(\"Profile ID\").nullable(),\n lang: z.string().describe(\"User's preferred language\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable(),\n avatar: z.string().describe(\"Avatar URL\").nullable().optional(),\n user_id: z.number().int().describe(\"User ID reference\").nullable(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n created_at: z.string().describe(\"Profile creation timestamp\").nullable(),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n updated_at: z.string().describe(\"Profile last update timestamp\").nullable(),\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.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"User's name/email identifier\").nullable(),\n kong_key: z.string().describe(\"Kong API key\").nullable().optional(),\n cookie_id: z.string().describe(\"Cookie identifier\").nullable(),\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,+BAA+B,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAC/I,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAUlE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpE,cAAc,0CAA0C,SAAS;CACnE,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const pilvioCatalog = {
|
|
|
7
7
|
"category": "Developer Tools",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/pilvio",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "Pilvio API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your personal API key for authenticating requests to the Pilvio API."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.pilvioCatalog = pilvioCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pilvioCatalog = {\n \"slug\": \"pilvio\",\n \"name\": \"Pilvio\",\n \"description\": \"Pilvio is a cloud service provider offering virtual machines, object storage, and full API support for resource management and automation.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/pilvio\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pilvioCatalog = {\n \"slug\": \"pilvio\",\n \"name\": \"Pilvio\",\n \"description\": \"Pilvio is a cloud service provider offering virtual machines, object storage, and full API support for resource management and automation.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/pilvio\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Pilvio API Key\",\n \"secret\": true,\n \"description\": \"Your personal API key for authenticating requests to the Pilvio API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const pilvioCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/pilvio";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "Pilvio API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your personal API key for authenticating requests to the Pilvio API.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { pilvioCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const pilvioCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/pilvio";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "Pilvio API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your personal API key for authenticating requests to the Pilvio API.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { pilvioCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const pilvioCatalog = {
|
|
|
7
7
|
"category": "Developer Tools",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/pilvio",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "Pilvio API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your personal API key for authenticating requests to the Pilvio API."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { pilvioCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pilvioCatalog = {\n \"slug\": \"pilvio\",\n \"name\": \"Pilvio\",\n \"description\": \"Pilvio is a cloud service provider offering virtual machines, object storage, and full API support for resource management and automation.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/pilvio\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const pilvioCatalog = {\n \"slug\": \"pilvio\",\n \"name\": \"Pilvio\",\n \"description\": \"Pilvio is a cloud service provider offering virtual machines, object storage, and full API support for resource management and automation.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/pilvio\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Pilvio API Key\",\n \"secret\": true,\n \"description\": \"Your personal API key for authenticating requests to the Pilvio API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/pilvio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|