latitudesh-typescript-sdk 0.2.2 → 0.2.4
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/bin/mcp-server.js +195 -224
- package/bin/mcp-server.js.map +33 -33
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/apikey.d.ts +2 -2
- package/dist/commonjs/models/apikey.d.ts.map +1 -1
- package/dist/commonjs/models/apikey.js +2 -2
- package/dist/commonjs/models/apikey.js.map +1 -1
- package/dist/commonjs/models/billingusage.d.ts +8 -8
- package/dist/commonjs/models/billingusage.d.ts.map +1 -1
- package/dist/commonjs/models/billingusage.js +8 -9
- package/dist/commonjs/models/billingusage.js.map +1 -1
- package/dist/commonjs/models/containerplandata.d.ts +8 -8
- package/dist/commonjs/models/containerplandata.d.ts.map +1 -1
- package/dist/commonjs/models/containerplandata.js +8 -8
- package/dist/commonjs/models/containerplandata.js.map +1 -1
- package/dist/commonjs/models/deployconfig.d.ts +2 -2
- package/dist/commonjs/models/deployconfig.d.ts.map +1 -1
- package/dist/commonjs/models/deployconfig.js +4 -2
- package/dist/commonjs/models/deployconfig.js.map +1 -1
- package/dist/commonjs/models/filesystemdata.d.ts +2 -2
- package/dist/commonjs/models/filesystemdata.d.ts.map +1 -1
- package/dist/commonjs/models/filesystemdata.js +2 -3
- package/dist/commonjs/models/filesystemdata.js.map +1 -1
- package/dist/commonjs/models/ipaddress.d.ts +4 -4
- package/dist/commonjs/models/ipaddress.d.ts.map +1 -1
- package/dist/commonjs/models/ipaddress.js +4 -4
- package/dist/commonjs/models/ipaddress.js.map +1 -1
- package/dist/commonjs/models/operations/createserver.d.ts +29 -35
- package/dist/commonjs/models/operations/createserver.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createserver.js +27 -33
- package/dist/commonjs/models/operations/createserver.js.map +1 -1
- package/dist/commonjs/models/operations/createserverreinstall.d.ts +23 -33
- package/dist/commonjs/models/operations/createserverreinstall.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createserverreinstall.js +21 -31
- package/dist/commonjs/models/operations/createserverreinstall.js.map +1 -1
- package/dist/commonjs/models/operations/createtag.d.ts +2 -2
- package/dist/commonjs/models/operations/createtag.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createtag.js +2 -2
- package/dist/commonjs/models/operations/createtag.js.map +1 -1
- package/dist/commonjs/models/operations/createvirtualnetwork.d.ts +1 -2
- package/dist/commonjs/models/operations/createvirtualnetwork.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createvirtualnetwork.js +1 -2
- package/dist/commonjs/models/operations/createvirtualnetwork.js.map +1 -1
- package/dist/commonjs/models/operations/getvpnsessions.d.ts +1 -2
- package/dist/commonjs/models/operations/getvpnsessions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvpnsessions.js +1 -2
- package/dist/commonjs/models/operations/getvpnsessions.js.map +1 -1
- package/dist/commonjs/models/operations/postvpnsession.d.ts +1 -2
- package/dist/commonjs/models/operations/postvpnsession.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postvpnsession.js +1 -2
- package/dist/commonjs/models/operations/postvpnsession.js.map +1 -1
- package/dist/commonjs/models/operations/updateserver.d.ts +4 -4
- package/dist/commonjs/models/operations/updateserver.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateserver.js +4 -4
- package/dist/commonjs/models/operations/updateserver.js.map +1 -1
- package/dist/commonjs/models/operations/updateserverdeployconfig.d.ts +33 -34
- package/dist/commonjs/models/operations/updateserverdeployconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateserverdeployconfig.js +27 -36
- package/dist/commonjs/models/operations/updateserverdeployconfig.js.map +1 -1
- package/dist/commonjs/models/operations/updatetag.d.ts +2 -2
- package/dist/commonjs/models/operations/updatetag.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatetag.js +2 -2
- package/dist/commonjs/models/operations/updatetag.js.map +1 -1
- package/dist/commonjs/models/plandata.d.ts +12 -12
- package/dist/commonjs/models/plandata.d.ts.map +1 -1
- package/dist/commonjs/models/plandata.js +12 -12
- package/dist/commonjs/models/plandata.js.map +1 -1
- package/dist/commonjs/models/project.d.ts +6 -6
- package/dist/commonjs/models/project.d.ts.map +1 -1
- package/dist/commonjs/models/project.js +6 -6
- package/dist/commonjs/models/project.js.map +1 -1
- package/dist/commonjs/models/projectinclude.d.ts +12 -12
- package/dist/commonjs/models/projectinclude.d.ts.map +1 -1
- package/dist/commonjs/models/projectinclude.js +12 -12
- package/dist/commonjs/models/projectinclude.js.map +1 -1
- package/dist/commonjs/models/serverdata.d.ts +12 -12
- package/dist/commonjs/models/serverdata.d.ts.map +1 -1
- package/dist/commonjs/models/serverdata.js +12 -12
- package/dist/commonjs/models/serverdata.js.map +1 -1
- package/dist/commonjs/models/team.d.ts +4 -4
- package/dist/commonjs/models/team.d.ts.map +1 -1
- package/dist/commonjs/models/team.js +4 -4
- package/dist/commonjs/models/team.js.map +1 -1
- package/dist/commonjs/models/trafficquota.d.ts +2 -2
- package/dist/commonjs/models/trafficquota.d.ts.map +1 -1
- package/dist/commonjs/models/trafficquota.js +2 -2
- package/dist/commonjs/models/trafficquota.js.map +1 -1
- package/dist/commonjs/models/userinclude.d.ts +2 -2
- package/dist/commonjs/models/userinclude.d.ts.map +1 -1
- package/dist/commonjs/models/userinclude.js +2 -2
- package/dist/commonjs/models/userinclude.js.map +1 -1
- package/dist/commonjs/models/userteam.d.ts +4 -4
- package/dist/commonjs/models/userteam.d.ts.map +1 -1
- package/dist/commonjs/models/userteam.js +4 -4
- package/dist/commonjs/models/userteam.js.map +1 -1
- package/dist/commonjs/models/userupdate.d.ts +2 -2
- package/dist/commonjs/models/userupdate.d.ts.map +1 -1
- package/dist/commonjs/models/userupdate.js +2 -2
- package/dist/commonjs/models/userupdate.js.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.d.ts +14 -14
- package/dist/commonjs/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.js +14 -16
- package/dist/commonjs/models/virtualmachineattributes.js.map +1 -1
- package/dist/commonjs/models/virtualmachinepayload.d.ts +7 -4
- package/dist/commonjs/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachinepayload.js +4 -4
- package/dist/commonjs/models/virtualmachinepayload.js.map +1 -1
- package/dist/commonjs/models/virtualnetworkdata.d.ts +2 -2
- package/dist/commonjs/models/virtualnetworkdata.d.ts.map +1 -1
- package/dist/commonjs/models/virtualnetworkdata.js +2 -3
- package/dist/commonjs/models/virtualnetworkdata.js.map +1 -1
- package/dist/commonjs/models/volumedata.d.ts +6 -6
- package/dist/commonjs/models/volumedata.d.ts.map +1 -1
- package/dist/commonjs/models/volumedata.js +8 -7
- package/dist/commonjs/models/volumedata.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/apikey.d.ts +2 -2
- package/dist/esm/models/apikey.d.ts.map +1 -1
- package/dist/esm/models/apikey.js +2 -2
- package/dist/esm/models/apikey.js.map +1 -1
- package/dist/esm/models/billingusage.d.ts +8 -8
- package/dist/esm/models/billingusage.d.ts.map +1 -1
- package/dist/esm/models/billingusage.js +8 -9
- package/dist/esm/models/billingusage.js.map +1 -1
- package/dist/esm/models/containerplandata.d.ts +8 -8
- package/dist/esm/models/containerplandata.d.ts.map +1 -1
- package/dist/esm/models/containerplandata.js +8 -8
- package/dist/esm/models/containerplandata.js.map +1 -1
- package/dist/esm/models/deployconfig.d.ts +2 -2
- package/dist/esm/models/deployconfig.d.ts.map +1 -1
- package/dist/esm/models/deployconfig.js +4 -2
- package/dist/esm/models/deployconfig.js.map +1 -1
- package/dist/esm/models/filesystemdata.d.ts +2 -2
- package/dist/esm/models/filesystemdata.d.ts.map +1 -1
- package/dist/esm/models/filesystemdata.js +2 -3
- package/dist/esm/models/filesystemdata.js.map +1 -1
- package/dist/esm/models/ipaddress.d.ts +4 -4
- package/dist/esm/models/ipaddress.d.ts.map +1 -1
- package/dist/esm/models/ipaddress.js +4 -4
- package/dist/esm/models/ipaddress.js.map +1 -1
- package/dist/esm/models/operations/createserver.d.ts +29 -35
- package/dist/esm/models/operations/createserver.d.ts.map +1 -1
- package/dist/esm/models/operations/createserver.js +27 -33
- package/dist/esm/models/operations/createserver.js.map +1 -1
- package/dist/esm/models/operations/createserverreinstall.d.ts +23 -33
- package/dist/esm/models/operations/createserverreinstall.d.ts.map +1 -1
- package/dist/esm/models/operations/createserverreinstall.js +21 -31
- package/dist/esm/models/operations/createserverreinstall.js.map +1 -1
- package/dist/esm/models/operations/createtag.d.ts +2 -2
- package/dist/esm/models/operations/createtag.d.ts.map +1 -1
- package/dist/esm/models/operations/createtag.js +2 -2
- package/dist/esm/models/operations/createtag.js.map +1 -1
- package/dist/esm/models/operations/createvirtualnetwork.d.ts +1 -2
- package/dist/esm/models/operations/createvirtualnetwork.d.ts.map +1 -1
- package/dist/esm/models/operations/createvirtualnetwork.js +1 -2
- package/dist/esm/models/operations/createvirtualnetwork.js.map +1 -1
- package/dist/esm/models/operations/getvpnsessions.d.ts +1 -2
- package/dist/esm/models/operations/getvpnsessions.d.ts.map +1 -1
- package/dist/esm/models/operations/getvpnsessions.js +1 -2
- package/dist/esm/models/operations/getvpnsessions.js.map +1 -1
- package/dist/esm/models/operations/postvpnsession.d.ts +1 -2
- package/dist/esm/models/operations/postvpnsession.d.ts.map +1 -1
- package/dist/esm/models/operations/postvpnsession.js +1 -2
- package/dist/esm/models/operations/postvpnsession.js.map +1 -1
- package/dist/esm/models/operations/updateserver.d.ts +4 -4
- package/dist/esm/models/operations/updateserver.d.ts.map +1 -1
- package/dist/esm/models/operations/updateserver.js +4 -4
- package/dist/esm/models/operations/updateserver.js.map +1 -1
- package/dist/esm/models/operations/updateserverdeployconfig.d.ts +33 -34
- package/dist/esm/models/operations/updateserverdeployconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/updateserverdeployconfig.js +27 -36
- package/dist/esm/models/operations/updateserverdeployconfig.js.map +1 -1
- package/dist/esm/models/operations/updatetag.d.ts +2 -2
- package/dist/esm/models/operations/updatetag.d.ts.map +1 -1
- package/dist/esm/models/operations/updatetag.js +2 -2
- package/dist/esm/models/operations/updatetag.js.map +1 -1
- package/dist/esm/models/plandata.d.ts +12 -12
- package/dist/esm/models/plandata.d.ts.map +1 -1
- package/dist/esm/models/plandata.js +12 -12
- package/dist/esm/models/plandata.js.map +1 -1
- package/dist/esm/models/project.d.ts +6 -6
- package/dist/esm/models/project.d.ts.map +1 -1
- package/dist/esm/models/project.js +6 -6
- package/dist/esm/models/project.js.map +1 -1
- package/dist/esm/models/projectinclude.d.ts +12 -12
- package/dist/esm/models/projectinclude.d.ts.map +1 -1
- package/dist/esm/models/projectinclude.js +12 -12
- package/dist/esm/models/projectinclude.js.map +1 -1
- package/dist/esm/models/serverdata.d.ts +12 -12
- package/dist/esm/models/serverdata.d.ts.map +1 -1
- package/dist/esm/models/serverdata.js +12 -12
- package/dist/esm/models/serverdata.js.map +1 -1
- package/dist/esm/models/team.d.ts +4 -4
- package/dist/esm/models/team.d.ts.map +1 -1
- package/dist/esm/models/team.js +4 -4
- package/dist/esm/models/team.js.map +1 -1
- package/dist/esm/models/trafficquota.d.ts +2 -2
- package/dist/esm/models/trafficquota.d.ts.map +1 -1
- package/dist/esm/models/trafficquota.js +2 -2
- package/dist/esm/models/trafficquota.js.map +1 -1
- package/dist/esm/models/userinclude.d.ts +2 -2
- package/dist/esm/models/userinclude.d.ts.map +1 -1
- package/dist/esm/models/userinclude.js +2 -2
- package/dist/esm/models/userinclude.js.map +1 -1
- package/dist/esm/models/userteam.d.ts +4 -4
- package/dist/esm/models/userteam.d.ts.map +1 -1
- package/dist/esm/models/userteam.js +4 -4
- package/dist/esm/models/userteam.js.map +1 -1
- package/dist/esm/models/userupdate.d.ts +2 -2
- package/dist/esm/models/userupdate.d.ts.map +1 -1
- package/dist/esm/models/userupdate.js +2 -2
- package/dist/esm/models/userupdate.js.map +1 -1
- package/dist/esm/models/virtualmachineattributes.d.ts +14 -14
- package/dist/esm/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineattributes.js +14 -16
- package/dist/esm/models/virtualmachineattributes.js.map +1 -1
- package/dist/esm/models/virtualmachinepayload.d.ts +7 -4
- package/dist/esm/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/esm/models/virtualmachinepayload.js +4 -4
- package/dist/esm/models/virtualmachinepayload.js.map +1 -1
- package/dist/esm/models/virtualnetworkdata.d.ts +2 -2
- package/dist/esm/models/virtualnetworkdata.d.ts.map +1 -1
- package/dist/esm/models/virtualnetworkdata.js +2 -3
- package/dist/esm/models/virtualnetworkdata.js.map +1 -1
- package/dist/esm/models/volumedata.d.ts +6 -6
- package/dist/esm/models/volumedata.d.ts.map +1 -1
- package/dist/esm/models/volumedata.js +8 -7
- package/dist/esm/models/volumedata.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/apikey.ts +4 -4
- package/src/models/billingusage.ts +18 -17
- package/src/models/containerplandata.ts +16 -16
- package/src/models/deployconfig.ts +6 -4
- package/src/models/filesystemdata.ts +6 -5
- package/src/models/ipaddress.ts +8 -8
- package/src/models/operations/createserver.ts +39 -45
- package/src/models/operations/createserverreinstall.ts +38 -45
- package/src/models/operations/createtag.ts +4 -4
- package/src/models/operations/createvirtualnetwork.ts +1 -2
- package/src/models/operations/getvpnsessions.ts +1 -2
- package/src/models/operations/postvpnsession.ts +1 -2
- package/src/models/operations/updateserver.ts +8 -8
- package/src/models/operations/updateserverdeployconfig.ts +56 -52
- package/src/models/operations/updatetag.ts +4 -4
- package/src/models/plandata.ts +24 -24
- package/src/models/project.ts +12 -12
- package/src/models/projectinclude.ts +24 -24
- package/src/models/serverdata.ts +24 -24
- package/src/models/team.ts +8 -8
- package/src/models/trafficquota.ts +4 -4
- package/src/models/userinclude.ts +4 -4
- package/src/models/userteam.ts +8 -8
- package/src/models/userupdate.ts +4 -4
- package/src/models/virtualmachineattributes.ts +32 -30
- package/src/models/virtualmachinepayload.ts +11 -8
- package/src/models/virtualnetworkdata.ts +6 -5
- package/src/models/volumedata.ts +16 -13
package/src/models/serverdata.ts
CHANGED
|
@@ -86,7 +86,7 @@ export type ServerDataPlan = {
|
|
|
86
86
|
/**
|
|
87
87
|
* hourly/monthly pricing. Defaults to `hourly`. Appliable for `on_demand` projects only.
|
|
88
88
|
*/
|
|
89
|
-
billing?: string | undefined;
|
|
89
|
+
billing?: string | null | undefined;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
export type ServerDataFeatures = {
|
|
@@ -147,7 +147,7 @@ export type ServerDataSpecs = {
|
|
|
147
147
|
/**
|
|
148
148
|
* GPU model and quantity, if present
|
|
149
149
|
*/
|
|
150
|
-
gpu?: string | undefined;
|
|
150
|
+
gpu?: string | null | undefined;
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
export const ServerDataRole = {
|
|
@@ -192,10 +192,10 @@ export type ServerDataAttributes = {
|
|
|
192
192
|
site?: string | undefined;
|
|
193
193
|
locked?: boolean | undefined;
|
|
194
194
|
rescue?: boolean | undefined;
|
|
195
|
-
primaryIpv4?: string | undefined;
|
|
196
|
-
primaryIpv6?: string | undefined;
|
|
197
|
-
createdAt?: string | undefined;
|
|
198
|
-
scheduledDeletionAt?: string | undefined;
|
|
195
|
+
primaryIpv4?: string | null | undefined;
|
|
196
|
+
primaryIpv6?: string | null | undefined;
|
|
197
|
+
createdAt?: string | null | undefined;
|
|
198
|
+
scheduledDeletionAt?: string | null | undefined;
|
|
199
199
|
plan?: ServerDataPlan | undefined;
|
|
200
200
|
operatingSystem?: OperatingSystem | undefined;
|
|
201
201
|
region?: ServerRegionResourceData | undefined;
|
|
@@ -236,14 +236,14 @@ export const ServerDataPlan$inboundSchema: z.ZodType<
|
|
|
236
236
|
id: z.string().optional(),
|
|
237
237
|
name: z.string().optional(),
|
|
238
238
|
slug: z.string().optional(),
|
|
239
|
-
billing: z.string().optional(),
|
|
239
|
+
billing: z.nullable(z.string()).optional(),
|
|
240
240
|
});
|
|
241
241
|
/** @internal */
|
|
242
242
|
export type ServerDataPlan$Outbound = {
|
|
243
243
|
id?: string | undefined;
|
|
244
244
|
name?: string | undefined;
|
|
245
245
|
slug?: string | undefined;
|
|
246
|
-
billing?: string | undefined;
|
|
246
|
+
billing?: string | null | undefined;
|
|
247
247
|
};
|
|
248
248
|
|
|
249
249
|
/** @internal */
|
|
@@ -255,7 +255,7 @@ export const ServerDataPlan$outboundSchema: z.ZodType<
|
|
|
255
255
|
id: z.string().optional(),
|
|
256
256
|
name: z.string().optional(),
|
|
257
257
|
slug: z.string().optional(),
|
|
258
|
-
billing: z.string().optional(),
|
|
258
|
+
billing: z.nullable(z.string()).optional(),
|
|
259
259
|
});
|
|
260
260
|
|
|
261
261
|
export function serverDataPlanToJSON(serverDataPlan: ServerDataPlan): string {
|
|
@@ -423,7 +423,7 @@ export const ServerDataSpecs$inboundSchema: z.ZodType<
|
|
|
423
423
|
disk: z.string().optional(),
|
|
424
424
|
ram: z.string().optional(),
|
|
425
425
|
nic: z.string().optional(),
|
|
426
|
-
gpu: z.string().optional(),
|
|
426
|
+
gpu: z.nullable(z.string()).optional(),
|
|
427
427
|
});
|
|
428
428
|
/** @internal */
|
|
429
429
|
export type ServerDataSpecs$Outbound = {
|
|
@@ -431,7 +431,7 @@ export type ServerDataSpecs$Outbound = {
|
|
|
431
431
|
disk?: string | undefined;
|
|
432
432
|
ram?: string | undefined;
|
|
433
433
|
nic?: string | undefined;
|
|
434
|
-
gpu?: string | undefined;
|
|
434
|
+
gpu?: string | null | undefined;
|
|
435
435
|
};
|
|
436
436
|
|
|
437
437
|
/** @internal */
|
|
@@ -444,7 +444,7 @@ export const ServerDataSpecs$outboundSchema: z.ZodType<
|
|
|
444
444
|
disk: z.string().optional(),
|
|
445
445
|
ram: z.string().optional(),
|
|
446
446
|
nic: z.string().optional(),
|
|
447
|
-
gpu: z.string().optional(),
|
|
447
|
+
gpu: z.nullable(z.string()).optional(),
|
|
448
448
|
});
|
|
449
449
|
|
|
450
450
|
export function serverDataSpecsToJSON(
|
|
@@ -537,10 +537,10 @@ export const ServerDataAttributes$inboundSchema: z.ZodType<
|
|
|
537
537
|
site: z.string().optional(),
|
|
538
538
|
locked: z.boolean().optional(),
|
|
539
539
|
rescue: z.boolean().optional(),
|
|
540
|
-
primary_ipv4: z.string().optional(),
|
|
541
|
-
primary_ipv6: z.string().optional(),
|
|
542
|
-
created_at: z.string().optional(),
|
|
543
|
-
scheduled_deletion_at: z.string().optional(),
|
|
540
|
+
primary_ipv4: z.nullable(z.string()).optional(),
|
|
541
|
+
primary_ipv6: z.nullable(z.string()).optional(),
|
|
542
|
+
created_at: z.nullable(z.string()).optional(),
|
|
543
|
+
scheduled_deletion_at: z.nullable(z.string()).optional(),
|
|
544
544
|
plan: z.lazy(() => ServerDataPlan$inboundSchema).optional(),
|
|
545
545
|
operating_system: z.lazy(() => OperatingSystem$inboundSchema).optional(),
|
|
546
546
|
region: ServerRegionResourceData$inboundSchema.optional(),
|
|
@@ -568,10 +568,10 @@ export type ServerDataAttributes$Outbound = {
|
|
|
568
568
|
site?: string | undefined;
|
|
569
569
|
locked?: boolean | undefined;
|
|
570
570
|
rescue?: boolean | undefined;
|
|
571
|
-
primary_ipv4?: string | undefined;
|
|
572
|
-
primary_ipv6?: string | undefined;
|
|
573
|
-
created_at?: string | undefined;
|
|
574
|
-
scheduled_deletion_at?: string | undefined;
|
|
571
|
+
primary_ipv4?: string | null | undefined;
|
|
572
|
+
primary_ipv6?: string | null | undefined;
|
|
573
|
+
created_at?: string | null | undefined;
|
|
574
|
+
scheduled_deletion_at?: string | null | undefined;
|
|
575
575
|
plan?: ServerDataPlan$Outbound | undefined;
|
|
576
576
|
operating_system?: OperatingSystem$Outbound | undefined;
|
|
577
577
|
region?: ServerRegionResourceData$Outbound | undefined;
|
|
@@ -595,10 +595,10 @@ export const ServerDataAttributes$outboundSchema: z.ZodType<
|
|
|
595
595
|
site: z.string().optional(),
|
|
596
596
|
locked: z.boolean().optional(),
|
|
597
597
|
rescue: z.boolean().optional(),
|
|
598
|
-
primaryIpv4: z.string().optional(),
|
|
599
|
-
primaryIpv6: z.string().optional(),
|
|
600
|
-
createdAt: z.string().optional(),
|
|
601
|
-
scheduledDeletionAt: z.string().optional(),
|
|
598
|
+
primaryIpv4: z.nullable(z.string()).optional(),
|
|
599
|
+
primaryIpv6: z.nullable(z.string()).optional(),
|
|
600
|
+
createdAt: z.nullable(z.string()).optional(),
|
|
601
|
+
scheduledDeletionAt: z.nullable(z.string()).optional(),
|
|
602
602
|
plan: z.lazy(() => ServerDataPlan$outboundSchema).optional(),
|
|
603
603
|
operatingSystem: z.lazy(() => OperatingSystem$outboundSchema).optional(),
|
|
604
604
|
region: ServerRegionResourceData$outboundSchema.optional(),
|
package/src/models/team.ts
CHANGED
|
@@ -28,8 +28,8 @@ export type TeamBilling = {
|
|
|
28
28
|
export type TeamAttributes = {
|
|
29
29
|
name?: string | undefined;
|
|
30
30
|
slug?: string | undefined;
|
|
31
|
-
description?: string | undefined;
|
|
32
|
-
address?: string | undefined;
|
|
31
|
+
description?: string | null | undefined;
|
|
32
|
+
address?: string | null | undefined;
|
|
33
33
|
currency?: string | undefined;
|
|
34
34
|
createdAt?: string | undefined;
|
|
35
35
|
updatedAt?: string | undefined;
|
|
@@ -100,8 +100,8 @@ export const TeamAttributes$inboundSchema: z.ZodType<
|
|
|
100
100
|
> = z.object({
|
|
101
101
|
name: z.string().optional(),
|
|
102
102
|
slug: z.string().optional(),
|
|
103
|
-
description: z.string().optional(),
|
|
104
|
-
address: z.string().optional(),
|
|
103
|
+
description: z.nullable(z.string()).optional(),
|
|
104
|
+
address: z.nullable(z.string()).optional(),
|
|
105
105
|
currency: z.string().optional(),
|
|
106
106
|
created_at: z.string().optional(),
|
|
107
107
|
updated_at: z.string().optional(),
|
|
@@ -123,8 +123,8 @@ export const TeamAttributes$inboundSchema: z.ZodType<
|
|
|
123
123
|
export type TeamAttributes$Outbound = {
|
|
124
124
|
name?: string | undefined;
|
|
125
125
|
slug?: string | undefined;
|
|
126
|
-
description?: string | undefined;
|
|
127
|
-
address?: string | undefined;
|
|
126
|
+
description?: string | null | undefined;
|
|
127
|
+
address?: string | null | undefined;
|
|
128
128
|
currency?: string | undefined;
|
|
129
129
|
created_at?: string | undefined;
|
|
130
130
|
updated_at?: string | undefined;
|
|
@@ -144,8 +144,8 @@ export const TeamAttributes$outboundSchema: z.ZodType<
|
|
|
144
144
|
> = z.object({
|
|
145
145
|
name: z.string().optional(),
|
|
146
146
|
slug: z.string().optional(),
|
|
147
|
-
description: z.string().optional(),
|
|
148
|
-
address: z.string().optional(),
|
|
147
|
+
description: z.nullable(z.string()).optional(),
|
|
148
|
+
address: z.nullable(z.string()).optional(),
|
|
149
149
|
currency: z.string().optional(),
|
|
150
150
|
createdAt: z.string().optional(),
|
|
151
151
|
updatedAt: z.string().optional(),
|
|
@@ -36,7 +36,7 @@ export type QuotaPerRegion = {
|
|
|
36
36
|
export type QuotaPerProject = {
|
|
37
37
|
projectId?: string | undefined;
|
|
38
38
|
projectSlug?: string | undefined;
|
|
39
|
-
price?: number | undefined;
|
|
39
|
+
price?: number | null | undefined;
|
|
40
40
|
billingMethod?: string | undefined;
|
|
41
41
|
quotaPerRegion?: Array<QuotaPerRegion> | undefined;
|
|
42
42
|
};
|
|
@@ -212,7 +212,7 @@ export const QuotaPerProject$inboundSchema: z.ZodType<
|
|
|
212
212
|
> = z.object({
|
|
213
213
|
project_id: z.string().optional(),
|
|
214
214
|
project_slug: z.string().optional(),
|
|
215
|
-
price: z.number().int().optional(),
|
|
215
|
+
price: z.nullable(z.number().int()).optional(),
|
|
216
216
|
billing_method: z.string().optional(),
|
|
217
217
|
quota_per_region: z.array(z.lazy(() => QuotaPerRegion$inboundSchema))
|
|
218
218
|
.optional(),
|
|
@@ -228,7 +228,7 @@ export const QuotaPerProject$inboundSchema: z.ZodType<
|
|
|
228
228
|
export type QuotaPerProject$Outbound = {
|
|
229
229
|
project_id?: string | undefined;
|
|
230
230
|
project_slug?: string | undefined;
|
|
231
|
-
price?: number | undefined;
|
|
231
|
+
price?: number | null | undefined;
|
|
232
232
|
billing_method?: string | undefined;
|
|
233
233
|
quota_per_region?: Array<QuotaPerRegion$Outbound> | undefined;
|
|
234
234
|
};
|
|
@@ -241,7 +241,7 @@ export const QuotaPerProject$outboundSchema: z.ZodType<
|
|
|
241
241
|
> = z.object({
|
|
242
242
|
projectId: z.string().optional(),
|
|
243
243
|
projectSlug: z.string().optional(),
|
|
244
|
-
price: z.number().int().optional(),
|
|
244
|
+
price: z.nullable(z.number().int()).optional(),
|
|
245
245
|
billingMethod: z.string().optional(),
|
|
246
246
|
quotaPerRegion: z.array(z.lazy(() => QuotaPerRegion$outboundSchema))
|
|
247
247
|
.optional(),
|
|
@@ -20,7 +20,7 @@ export type UserInclude = {
|
|
|
20
20
|
firstName?: string | undefined;
|
|
21
21
|
lastName?: string | undefined;
|
|
22
22
|
email?: string | undefined;
|
|
23
|
-
authenticationFactorId?: string | undefined;
|
|
23
|
+
authenticationFactorId?: string | null | undefined;
|
|
24
24
|
createdAt?: string | undefined;
|
|
25
25
|
updatedAt?: string | undefined;
|
|
26
26
|
role?: UserIncludeRole | undefined;
|
|
@@ -92,7 +92,7 @@ export const UserInclude$inboundSchema: z.ZodType<
|
|
|
92
92
|
first_name: z.string().optional(),
|
|
93
93
|
last_name: z.string().optional(),
|
|
94
94
|
email: z.string().optional(),
|
|
95
|
-
authentication_factor_id: z.string().optional(),
|
|
95
|
+
authentication_factor_id: z.nullable(z.string()).optional(),
|
|
96
96
|
created_at: z.string().optional(),
|
|
97
97
|
updated_at: z.string().optional(),
|
|
98
98
|
role: z.lazy(() => UserIncludeRole$inboundSchema).optional(),
|
|
@@ -111,7 +111,7 @@ export type UserInclude$Outbound = {
|
|
|
111
111
|
first_name?: string | undefined;
|
|
112
112
|
last_name?: string | undefined;
|
|
113
113
|
email?: string | undefined;
|
|
114
|
-
authentication_factor_id?: string | undefined;
|
|
114
|
+
authentication_factor_id?: string | null | undefined;
|
|
115
115
|
created_at?: string | undefined;
|
|
116
116
|
updated_at?: string | undefined;
|
|
117
117
|
role?: UserIncludeRole$Outbound | undefined;
|
|
@@ -127,7 +127,7 @@ export const UserInclude$outboundSchema: z.ZodType<
|
|
|
127
127
|
firstName: z.string().optional(),
|
|
128
128
|
lastName: z.string().optional(),
|
|
129
129
|
email: z.string().optional(),
|
|
130
|
-
authenticationFactorId: z.string().optional(),
|
|
130
|
+
authenticationFactorId: z.nullable(z.string()).optional(),
|
|
131
131
|
createdAt: z.string().optional(),
|
|
132
132
|
updatedAt: z.string().optional(),
|
|
133
133
|
role: z.lazy(() => UserIncludeRole$outboundSchema).optional(),
|
package/src/models/userteam.ts
CHANGED
|
@@ -22,8 +22,8 @@ export type UserTeamBilling = {
|
|
|
22
22
|
export type UserTeamAttributes = {
|
|
23
23
|
name?: string | undefined;
|
|
24
24
|
slug?: string | undefined;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
address?: string | undefined;
|
|
25
|
+
description?: string | null | undefined;
|
|
26
|
+
address?: string | null | undefined;
|
|
27
27
|
currency?: string | undefined;
|
|
28
28
|
createdAt?: string | undefined;
|
|
29
29
|
updatedAt?: string | undefined;
|
|
@@ -92,8 +92,8 @@ export const UserTeamAttributes$inboundSchema: z.ZodType<
|
|
|
92
92
|
> = z.object({
|
|
93
93
|
name: z.string().optional(),
|
|
94
94
|
slug: z.string().optional(),
|
|
95
|
-
description: z.string().optional(),
|
|
96
|
-
address: z.string().optional(),
|
|
95
|
+
description: z.nullable(z.string()).optional(),
|
|
96
|
+
address: z.nullable(z.string()).optional(),
|
|
97
97
|
currency: z.string().optional(),
|
|
98
98
|
created_at: z.string().optional(),
|
|
99
99
|
updated_at: z.string().optional(),
|
|
@@ -109,8 +109,8 @@ export const UserTeamAttributes$inboundSchema: z.ZodType<
|
|
|
109
109
|
export type UserTeamAttributes$Outbound = {
|
|
110
110
|
name?: string | undefined;
|
|
111
111
|
slug?: string | undefined;
|
|
112
|
-
description?: string | undefined;
|
|
113
|
-
address?: string | undefined;
|
|
112
|
+
description?: string | null | undefined;
|
|
113
|
+
address?: string | null | undefined;
|
|
114
114
|
currency?: string | undefined;
|
|
115
115
|
created_at?: string | undefined;
|
|
116
116
|
updated_at?: string | undefined;
|
|
@@ -126,8 +126,8 @@ export const UserTeamAttributes$outboundSchema: z.ZodType<
|
|
|
126
126
|
> = z.object({
|
|
127
127
|
name: z.string().optional(),
|
|
128
128
|
slug: z.string().optional(),
|
|
129
|
-
description: z.string().optional(),
|
|
130
|
-
address: z.string().optional(),
|
|
129
|
+
description: z.nullable(z.string()).optional(),
|
|
130
|
+
address: z.nullable(z.string()).optional(),
|
|
131
131
|
currency: z.string().optional(),
|
|
132
132
|
createdAt: z.string().optional(),
|
|
133
133
|
updatedAt: z.string().optional(),
|
package/src/models/userupdate.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type UserUpdateAttributes = {
|
|
|
12
12
|
firstName?: string | undefined;
|
|
13
13
|
lastName?: string | undefined;
|
|
14
14
|
email?: string | undefined;
|
|
15
|
-
authenticationFactorId?: string | undefined;
|
|
15
|
+
authenticationFactorId?: string | null | undefined;
|
|
16
16
|
role?: string | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -30,7 +30,7 @@ export const UserUpdateAttributes$inboundSchema: z.ZodType<
|
|
|
30
30
|
first_name: z.string().optional(),
|
|
31
31
|
last_name: z.string().optional(),
|
|
32
32
|
email: z.string().optional(),
|
|
33
|
-
authentication_factor_id: z.string().optional(),
|
|
33
|
+
authentication_factor_id: z.nullable(z.string()).optional(),
|
|
34
34
|
role: z.string().optional(),
|
|
35
35
|
}).transform((v) => {
|
|
36
36
|
return remap$(v, {
|
|
@@ -44,7 +44,7 @@ export type UserUpdateAttributes$Outbound = {
|
|
|
44
44
|
first_name?: string | undefined;
|
|
45
45
|
last_name?: string | undefined;
|
|
46
46
|
email?: string | undefined;
|
|
47
|
-
authentication_factor_id?: string | undefined;
|
|
47
|
+
authentication_factor_id?: string | null | undefined;
|
|
48
48
|
role?: string | undefined;
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -57,7 +57,7 @@ export const UserUpdateAttributes$outboundSchema: z.ZodType<
|
|
|
57
57
|
firstName: z.string().optional(),
|
|
58
58
|
lastName: z.string().optional(),
|
|
59
59
|
email: z.string().optional(),
|
|
60
|
-
authenticationFactorId: z.string().optional(),
|
|
60
|
+
authenticationFactorId: z.nullable(z.string()).optional(),
|
|
61
61
|
role: z.string().optional(),
|
|
62
62
|
}).transform((v) => {
|
|
63
63
|
return remap$(v, {
|
|
@@ -52,19 +52,19 @@ export type VirtualMachineAttributesPlan = {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
export type VirtualMachineAttributesSpecs = {
|
|
55
|
-
vcpu?: number | undefined;
|
|
56
|
-
ram?: string | undefined;
|
|
57
|
-
storage?: string | undefined;
|
|
58
|
-
nic?: string | undefined;
|
|
59
|
-
gpu?: string | undefined;
|
|
55
|
+
vcpu?: number | null | undefined;
|
|
56
|
+
ram?: string | null | undefined;
|
|
57
|
+
storage?: string | null | undefined;
|
|
58
|
+
nic?: string | null | undefined;
|
|
59
|
+
gpu?: string | null | undefined;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
export type VirtualMachineAttributesAttributes = {
|
|
63
63
|
name?: string | undefined;
|
|
64
64
|
createdAt?: string | undefined;
|
|
65
65
|
status?: VirtualMachineAttributesStatus | undefined;
|
|
66
|
-
operatingSystem?: string | undefined;
|
|
67
|
-
credentials?: VirtualMachineAttributesCredentials | undefined;
|
|
66
|
+
operatingSystem?: string | null | undefined;
|
|
67
|
+
credentials?: VirtualMachineAttributesCredentials | null | undefined;
|
|
68
68
|
plan?: VirtualMachineAttributesPlan | undefined;
|
|
69
69
|
specs?: VirtualMachineAttributesSpecs | undefined;
|
|
70
70
|
team?: TeamInclude | undefined;
|
|
@@ -204,19 +204,19 @@ export const VirtualMachineAttributesSpecs$inboundSchema: z.ZodType<
|
|
|
204
204
|
z.ZodTypeDef,
|
|
205
205
|
unknown
|
|
206
206
|
> = z.object({
|
|
207
|
-
vcpu: z.number().int().optional(),
|
|
208
|
-
ram: z.string().optional(),
|
|
209
|
-
storage: z.string().optional(),
|
|
210
|
-
nic: z.string().optional(),
|
|
211
|
-
gpu: z.string().optional(),
|
|
207
|
+
vcpu: z.nullable(z.number().int()).optional(),
|
|
208
|
+
ram: z.nullable(z.string()).optional(),
|
|
209
|
+
storage: z.nullable(z.string()).optional(),
|
|
210
|
+
nic: z.nullable(z.string()).optional(),
|
|
211
|
+
gpu: z.nullable(z.string()).optional(),
|
|
212
212
|
});
|
|
213
213
|
/** @internal */
|
|
214
214
|
export type VirtualMachineAttributesSpecs$Outbound = {
|
|
215
|
-
vcpu?: number | undefined;
|
|
216
|
-
ram?: string | undefined;
|
|
217
|
-
storage?: string | undefined;
|
|
218
|
-
nic?: string | undefined;
|
|
219
|
-
gpu?: string | undefined;
|
|
215
|
+
vcpu?: number | null | undefined;
|
|
216
|
+
ram?: string | null | undefined;
|
|
217
|
+
storage?: string | null | undefined;
|
|
218
|
+
nic?: string | null | undefined;
|
|
219
|
+
gpu?: string | null | undefined;
|
|
220
220
|
};
|
|
221
221
|
|
|
222
222
|
/** @internal */
|
|
@@ -225,11 +225,11 @@ export const VirtualMachineAttributesSpecs$outboundSchema: z.ZodType<
|
|
|
225
225
|
z.ZodTypeDef,
|
|
226
226
|
VirtualMachineAttributesSpecs
|
|
227
227
|
> = z.object({
|
|
228
|
-
vcpu: z.number().int().optional(),
|
|
229
|
-
ram: z.string().optional(),
|
|
230
|
-
storage: z.string().optional(),
|
|
231
|
-
nic: z.string().optional(),
|
|
232
|
-
gpu: z.string().optional(),
|
|
228
|
+
vcpu: z.nullable(z.number().int()).optional(),
|
|
229
|
+
ram: z.nullable(z.string()).optional(),
|
|
230
|
+
storage: z.nullable(z.string()).optional(),
|
|
231
|
+
nic: z.nullable(z.string()).optional(),
|
|
232
|
+
gpu: z.nullable(z.string()).optional(),
|
|
233
233
|
});
|
|
234
234
|
|
|
235
235
|
export function virtualMachineAttributesSpecsToJSON(
|
|
@@ -260,9 +260,10 @@ export const VirtualMachineAttributesAttributes$inboundSchema: z.ZodType<
|
|
|
260
260
|
name: z.string().optional(),
|
|
261
261
|
created_at: z.string().optional(),
|
|
262
262
|
status: VirtualMachineAttributesStatus$inboundSchema.optional(),
|
|
263
|
-
operating_system: z.string().optional(),
|
|
264
|
-
credentials: z.
|
|
265
|
-
.
|
|
263
|
+
operating_system: z.nullable(z.string()).optional(),
|
|
264
|
+
credentials: z.nullable(
|
|
265
|
+
z.lazy(() => VirtualMachineAttributesCredentials$inboundSchema),
|
|
266
|
+
).optional(),
|
|
266
267
|
plan: z.lazy(() => VirtualMachineAttributesPlan$inboundSchema).optional(),
|
|
267
268
|
specs: z.lazy(() => VirtualMachineAttributesSpecs$inboundSchema).optional(),
|
|
268
269
|
team: TeamInclude$inboundSchema.optional(),
|
|
@@ -278,8 +279,8 @@ export type VirtualMachineAttributesAttributes$Outbound = {
|
|
|
278
279
|
name?: string | undefined;
|
|
279
280
|
created_at?: string | undefined;
|
|
280
281
|
status?: string | undefined;
|
|
281
|
-
operating_system?: string | undefined;
|
|
282
|
-
credentials?: VirtualMachineAttributesCredentials$Outbound | undefined;
|
|
282
|
+
operating_system?: string | null | undefined;
|
|
283
|
+
credentials?: VirtualMachineAttributesCredentials$Outbound | null | undefined;
|
|
283
284
|
plan?: VirtualMachineAttributesPlan$Outbound | undefined;
|
|
284
285
|
specs?: VirtualMachineAttributesSpecs$Outbound | undefined;
|
|
285
286
|
team?: TeamInclude$Outbound | undefined;
|
|
@@ -295,9 +296,10 @@ export const VirtualMachineAttributesAttributes$outboundSchema: z.ZodType<
|
|
|
295
296
|
name: z.string().optional(),
|
|
296
297
|
createdAt: z.string().optional(),
|
|
297
298
|
status: VirtualMachineAttributesStatus$outboundSchema.optional(),
|
|
298
|
-
operatingSystem: z.string().optional(),
|
|
299
|
-
credentials: z.
|
|
300
|
-
.
|
|
299
|
+
operatingSystem: z.nullable(z.string()).optional(),
|
|
300
|
+
credentials: z.nullable(
|
|
301
|
+
z.lazy(() => VirtualMachineAttributesCredentials$outboundSchema),
|
|
302
|
+
).optional(),
|
|
301
303
|
plan: z.lazy(() => VirtualMachineAttributesPlan$outboundSchema).optional(),
|
|
302
304
|
specs: z.lazy(() => VirtualMachineAttributesSpecs$outboundSchema).optional(),
|
|
303
305
|
team: TeamInclude$outboundSchema.optional(),
|
|
@@ -18,8 +18,11 @@ export type VirtualMachinePayloadType = ClosedEnum<
|
|
|
18
18
|
|
|
19
19
|
export type VirtualMachinePayloadAttributes = {
|
|
20
20
|
name?: string | undefined;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* The plan ID or Slug for the Virtual Machine
|
|
23
|
+
*/
|
|
24
|
+
plan?: string | null | undefined;
|
|
25
|
+
sshKeys?: Array<string> | null | undefined;
|
|
23
26
|
project?: string | undefined;
|
|
24
27
|
};
|
|
25
28
|
|
|
@@ -48,8 +51,8 @@ export const VirtualMachinePayloadAttributes$inboundSchema: z.ZodType<
|
|
|
48
51
|
unknown
|
|
49
52
|
> = z.object({
|
|
50
53
|
name: z.string().default("my-vm"),
|
|
51
|
-
plan: z.string().optional(),
|
|
52
|
-
ssh_keys: z.array(z.string()).optional(),
|
|
54
|
+
plan: z.nullable(z.string()).optional(),
|
|
55
|
+
ssh_keys: z.nullable(z.array(z.string())).optional(),
|
|
53
56
|
project: z.string().default("my-project"),
|
|
54
57
|
}).transform((v) => {
|
|
55
58
|
return remap$(v, {
|
|
@@ -59,8 +62,8 @@ export const VirtualMachinePayloadAttributes$inboundSchema: z.ZodType<
|
|
|
59
62
|
/** @internal */
|
|
60
63
|
export type VirtualMachinePayloadAttributes$Outbound = {
|
|
61
64
|
name: string;
|
|
62
|
-
plan?: string | undefined;
|
|
63
|
-
ssh_keys?: Array<string> | undefined;
|
|
65
|
+
plan?: string | null | undefined;
|
|
66
|
+
ssh_keys?: Array<string> | null | undefined;
|
|
64
67
|
project: string;
|
|
65
68
|
};
|
|
66
69
|
|
|
@@ -71,8 +74,8 @@ export const VirtualMachinePayloadAttributes$outboundSchema: z.ZodType<
|
|
|
71
74
|
VirtualMachinePayloadAttributes
|
|
72
75
|
> = z.object({
|
|
73
76
|
name: z.string().default("my-vm"),
|
|
74
|
-
plan: z.string().optional(),
|
|
75
|
-
sshKeys: z.array(z.string()).optional(),
|
|
77
|
+
plan: z.nullable(z.string()).optional(),
|
|
78
|
+
sshKeys: z.nullable(z.array(z.string())).optional(),
|
|
76
79
|
project: z.string().default("my-project"),
|
|
77
80
|
}).transform((v) => {
|
|
78
81
|
return remap$(v, {
|
|
@@ -55,7 +55,7 @@ export type VirtualNetworkDataAttributes = {
|
|
|
55
55
|
description?: string | undefined;
|
|
56
56
|
project?: ProjectInclude | undefined;
|
|
57
57
|
region?: VirtualNetworkDataRegion | undefined;
|
|
58
|
-
createdAt?: Date | undefined;
|
|
58
|
+
createdAt?: Date | null | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* Amount of devices assigned to the virtual network
|
|
61
61
|
*/
|
|
@@ -223,8 +223,9 @@ export const VirtualNetworkDataAttributes$inboundSchema: z.ZodType<
|
|
|
223
223
|
description: z.string().optional(),
|
|
224
224
|
project: ProjectInclude$inboundSchema.optional(),
|
|
225
225
|
region: z.lazy(() => VirtualNetworkDataRegion$inboundSchema).optional(),
|
|
226
|
-
created_at: z.
|
|
227
|
-
.
|
|
226
|
+
created_at: z.nullable(
|
|
227
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
228
|
+
).optional(),
|
|
228
229
|
assignments_count: z.number().int().optional(),
|
|
229
230
|
tags: z.array(z.lazy(() => Tag$inboundSchema)).optional(),
|
|
230
231
|
}).transform((v) => {
|
|
@@ -240,7 +241,7 @@ export type VirtualNetworkDataAttributes$Outbound = {
|
|
|
240
241
|
description?: string | undefined;
|
|
241
242
|
project?: ProjectInclude$Outbound | undefined;
|
|
242
243
|
region?: VirtualNetworkDataRegion$Outbound | undefined;
|
|
243
|
-
created_at?: string | undefined;
|
|
244
|
+
created_at?: string | null | undefined;
|
|
244
245
|
assignments_count?: number | undefined;
|
|
245
246
|
tags?: Array<Tag$Outbound> | undefined;
|
|
246
247
|
};
|
|
@@ -256,7 +257,7 @@ export const VirtualNetworkDataAttributes$outboundSchema: z.ZodType<
|
|
|
256
257
|
description: z.string().optional(),
|
|
257
258
|
project: ProjectInclude$outboundSchema.optional(),
|
|
258
259
|
region: z.lazy(() => VirtualNetworkDataRegion$outboundSchema).optional(),
|
|
259
|
-
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
260
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
260
261
|
assignmentsCount: z.number().int().optional(),
|
|
261
262
|
tags: z.array(z.lazy(() => Tag$outboundSchema)).optional(),
|
|
262
263
|
}).transform((v) => {
|
package/src/models/volumedata.ts
CHANGED
|
@@ -33,10 +33,10 @@ export type Initiator = {
|
|
|
33
33
|
export type VolumeDataAttributes = {
|
|
34
34
|
name?: string | undefined;
|
|
35
35
|
sizeInGb?: number | undefined;
|
|
36
|
-
createdAt?: Date | undefined;
|
|
36
|
+
createdAt?: Date | null | undefined;
|
|
37
37
|
namespaceId?: string | null | undefined;
|
|
38
|
-
connectorId?: string | undefined;
|
|
39
|
-
initiators?: Array<Initiator> | undefined;
|
|
38
|
+
connectorId?: string | null | undefined;
|
|
39
|
+
initiators?: Array<Initiator> | null | undefined;
|
|
40
40
|
project?: ProjectInclude | undefined;
|
|
41
41
|
team?: TeamInclude | undefined;
|
|
42
42
|
};
|
|
@@ -99,11 +99,13 @@ export const VolumeDataAttributes$inboundSchema: z.ZodType<
|
|
|
99
99
|
> = z.object({
|
|
100
100
|
name: z.string().optional(),
|
|
101
101
|
size_in_gb: z.number().int().optional(),
|
|
102
|
-
created_at: z.
|
|
103
|
-
.
|
|
102
|
+
created_at: z.nullable(
|
|
103
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
104
|
+
).optional(),
|
|
104
105
|
namespace_id: z.nullable(z.string()).optional(),
|
|
105
|
-
connector_id: z.string().optional(),
|
|
106
|
-
initiators: z.array(z.lazy(() => Initiator$inboundSchema))
|
|
106
|
+
connector_id: z.nullable(z.string()).optional(),
|
|
107
|
+
initiators: z.nullable(z.array(z.lazy(() => Initiator$inboundSchema)))
|
|
108
|
+
.optional(),
|
|
107
109
|
project: ProjectInclude$inboundSchema.optional(),
|
|
108
110
|
team: TeamInclude$inboundSchema.optional(),
|
|
109
111
|
}).transform((v) => {
|
|
@@ -118,10 +120,10 @@ export const VolumeDataAttributes$inboundSchema: z.ZodType<
|
|
|
118
120
|
export type VolumeDataAttributes$Outbound = {
|
|
119
121
|
name?: string | undefined;
|
|
120
122
|
size_in_gb?: number | undefined;
|
|
121
|
-
created_at?: string | undefined;
|
|
123
|
+
created_at?: string | null | undefined;
|
|
122
124
|
namespace_id?: string | null | undefined;
|
|
123
|
-
connector_id?: string | undefined;
|
|
124
|
-
initiators?: Array<Initiator$Outbound> | undefined;
|
|
125
|
+
connector_id?: string | null | undefined;
|
|
126
|
+
initiators?: Array<Initiator$Outbound> | null | undefined;
|
|
125
127
|
project?: ProjectInclude$Outbound | undefined;
|
|
126
128
|
team?: TeamInclude$Outbound | undefined;
|
|
127
129
|
};
|
|
@@ -134,10 +136,11 @@ export const VolumeDataAttributes$outboundSchema: z.ZodType<
|
|
|
134
136
|
> = z.object({
|
|
135
137
|
name: z.string().optional(),
|
|
136
138
|
sizeInGb: z.number().int().optional(),
|
|
137
|
-
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
139
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
138
140
|
namespaceId: z.nullable(z.string()).optional(),
|
|
139
|
-
connectorId: z.string().optional(),
|
|
140
|
-
initiators: z.array(z.lazy(() => Initiator$outboundSchema))
|
|
141
|
+
connectorId: z.nullable(z.string()).optional(),
|
|
142
|
+
initiators: z.nullable(z.array(z.lazy(() => Initiator$outboundSchema)))
|
|
143
|
+
.optional(),
|
|
141
144
|
project: ProjectInclude$outboundSchema.optional(),
|
|
142
145
|
team: TeamInclude$outboundSchema.optional(),
|
|
143
146
|
}).transform((v) => {
|