latitudesh-typescript-sdk 0.2.2 → 0.2.3
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 +77 -106
- package/bin/mcp-server.js.map +15 -15
- 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/operations/createserver.d.ts +19 -25
- package/dist/commonjs/models/operations/createserver.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createserver.js +17 -23
- package/dist/commonjs/models/operations/createserver.js.map +1 -1
- package/dist/commonjs/models/operations/createserverreinstall.d.ts +13 -23
- package/dist/commonjs/models/operations/createserverreinstall.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createserverreinstall.js +11 -21
- package/dist/commonjs/models/operations/createserverreinstall.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/updateserverdeployconfig.d.ts +19 -20
- package/dist/commonjs/models/operations/updateserverdeployconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateserverdeployconfig.js +13 -20
- package/dist/commonjs/models/operations/updateserverdeployconfig.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/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/operations/createserver.d.ts +19 -25
- package/dist/esm/models/operations/createserver.d.ts.map +1 -1
- package/dist/esm/models/operations/createserver.js +17 -23
- package/dist/esm/models/operations/createserver.js.map +1 -1
- package/dist/esm/models/operations/createserverreinstall.d.ts +13 -23
- package/dist/esm/models/operations/createserverreinstall.d.ts.map +1 -1
- package/dist/esm/models/operations/createserverreinstall.js +11 -21
- package/dist/esm/models/operations/createserverreinstall.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/updateserverdeployconfig.d.ts +19 -20
- package/dist/esm/models/operations/updateserverdeployconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/updateserverdeployconfig.js +13 -20
- package/dist/esm/models/operations/updateserverdeployconfig.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/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/operations/createserver.ts +19 -25
- package/src/models/operations/createserverreinstall.ts +13 -23
- 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/updateserverdeployconfig.ts +19 -20
- package/src/models/plandata.ts +24 -24
- package/src/models/project.ts +12 -12
- package/src/models/projectinclude.ts +24 -24
|
@@ -20,31 +20,21 @@ export type CreateServerReinstallType2 = ClosedEnum<
|
|
|
20
20
|
* The OS selected for the reinstall process
|
|
21
21
|
*/
|
|
22
22
|
export const CreateServerReinstallOperatingSystem2 = {
|
|
23
|
-
Ipxe: "ipxe",
|
|
24
|
-
WindowsServer2019StdV1: "windows_server_2019_std_v1",
|
|
25
|
-
Ubuntu2204X64Lts: "ubuntu_22_04_x64_lts",
|
|
26
|
-
Debian11: "debian_11",
|
|
27
|
-
Debian10: "debian_10",
|
|
28
|
-
Rhel8: "rhel8",
|
|
29
|
-
WindowsServer2012R2StdV28: "windows_server_2012_r2_std_v28",
|
|
30
|
-
WindowsServer2012R2DcV5: "windows_server_2012_r2_dc_v5",
|
|
31
|
-
Esxi67: "esxi_6_7",
|
|
32
|
-
Debian94X64: "debian_9_4_x64",
|
|
33
23
|
Centos74X64: "centos_7_4_x64",
|
|
34
24
|
Centos8X64: "centos_8_x64",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
WindowsServer2016StdV1: "windows_server_2016_std_v1",
|
|
38
|
-
WindowsServer2016DcV1: "windows_server_2016_dc_v1",
|
|
39
|
-
WindowsServer2019DcV1: "windows_server_2019_dc_v1",
|
|
25
|
+
Debian10: "debian_10",
|
|
26
|
+
Debian11: "debian_11",
|
|
40
27
|
Debian12: "debian_12",
|
|
28
|
+
Ipxe: "ipxe",
|
|
29
|
+
Rhel8: "rhel8",
|
|
30
|
+
Rockylinux8: "rockylinux_8",
|
|
41
31
|
Ubuntu22MlInABox: "ubuntu22_ml_in_a_box",
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Windows2022Std: "windows_2022_std",
|
|
32
|
+
Ubuntu24MlInABox: "ubuntu24_ml_in_a_box",
|
|
33
|
+
Ubuntu2004X64Lts: "ubuntu_20_04_x64_lts",
|
|
34
|
+
Ubuntu2204X64Lts: "ubuntu_22_04_x64_lts",
|
|
46
35
|
Ubuntu2404X64Lts: "ubuntu_24_04_x64_lts",
|
|
47
|
-
|
|
36
|
+
Windows2022Std: "windows_2022_std",
|
|
37
|
+
WindowsServer2019StdV1: "windows_server_2019_std_v1",
|
|
48
38
|
} as const;
|
|
49
39
|
/**
|
|
50
40
|
* The OS selected for the reinstall process
|
|
@@ -60,14 +50,14 @@ export type CreateServerReinstallPartition2 = {
|
|
|
60
50
|
};
|
|
61
51
|
|
|
62
52
|
/**
|
|
63
|
-
* RAID mode for the server
|
|
53
|
+
* RAID mode for the server. Set to 'raid-0' for RAID 0, 'raid-1' for RAID 1, or omit/null for no RAID configuration
|
|
64
54
|
*/
|
|
65
55
|
export const CreateServerReinstallRaid2 = {
|
|
66
56
|
Raid0: "raid-0",
|
|
67
57
|
Raid1: "raid-1",
|
|
68
58
|
} as const;
|
|
69
59
|
/**
|
|
70
|
-
* RAID mode for the server
|
|
60
|
+
* RAID mode for the server. Set to 'raid-0' for RAID 0, 'raid-1' for RAID 1, or omit/null for no RAID configuration
|
|
71
61
|
*/
|
|
72
62
|
export type CreateServerReinstallRaid2 = ClosedEnum<
|
|
73
63
|
typeof CreateServerReinstallRaid2
|
|
@@ -92,7 +82,7 @@ export type CreateServerReinstallAttributes2 = {
|
|
|
92
82
|
*/
|
|
93
83
|
userData?: string | undefined;
|
|
94
84
|
/**
|
|
95
|
-
* RAID mode for the server
|
|
85
|
+
* RAID mode for the server. Set to 'raid-0' for RAID 0, 'raid-1' for RAID 1, or omit/null for no RAID configuration
|
|
96
86
|
*/
|
|
97
87
|
raid?: CreateServerReinstallRaid2 | undefined;
|
|
98
88
|
/**
|
|
@@ -20,7 +20,6 @@ export type CreateVirtualNetworkType2 = ClosedEnum<
|
|
|
20
20
|
*/
|
|
21
21
|
export const CreateVirtualNetworkSite2 = {
|
|
22
22
|
Ash: "ASH",
|
|
23
|
-
Bgt: "BGT",
|
|
24
23
|
Bue: "BUE",
|
|
25
24
|
Chi: "CHI",
|
|
26
25
|
Dal: "DAL",
|
|
@@ -32,9 +31,9 @@ export const CreateVirtualNetworkSite2 = {
|
|
|
32
31
|
Mia: "MIA",
|
|
33
32
|
Mia2: "MIA2",
|
|
34
33
|
Nyc: "NYC",
|
|
35
|
-
San: "SAN",
|
|
36
34
|
Sao: "SAO",
|
|
37
35
|
Sao2: "SAO2",
|
|
36
|
+
Sgp: "SGP",
|
|
38
37
|
Syd: "SYD",
|
|
39
38
|
Tyo: "TYO",
|
|
40
39
|
Tyo2: "TYO2",
|
|
@@ -12,7 +12,6 @@ import * as models from "../index.js";
|
|
|
12
12
|
|
|
13
13
|
export const FilterLocation = {
|
|
14
14
|
Ash: "ASH",
|
|
15
|
-
Bgt: "BGT",
|
|
16
15
|
Bue: "BUE",
|
|
17
16
|
Chi: "CHI",
|
|
18
17
|
Dal: "DAL",
|
|
@@ -24,9 +23,9 @@ export const FilterLocation = {
|
|
|
24
23
|
Mia: "MIA",
|
|
25
24
|
Mia2: "MIA2",
|
|
26
25
|
Nyc: "NYC",
|
|
27
|
-
San: "SAN",
|
|
28
26
|
Sao: "SAO",
|
|
29
27
|
Sao2: "SAO2",
|
|
28
|
+
Sgp: "SGP",
|
|
30
29
|
Syd: "SYD",
|
|
31
30
|
Tyo: "TYO",
|
|
32
31
|
Tyo2: "TYO2",
|
|
@@ -16,7 +16,6 @@ export type PostVpnSessionType2 = ClosedEnum<typeof PostVpnSessionType2>;
|
|
|
16
16
|
|
|
17
17
|
export const PostVpnSessionSite2 = {
|
|
18
18
|
Ash: "ASH",
|
|
19
|
-
Bgt: "BGT",
|
|
20
19
|
Bue: "BUE",
|
|
21
20
|
Chi: "CHI",
|
|
22
21
|
Dal: "DAL",
|
|
@@ -28,9 +27,9 @@ export const PostVpnSessionSite2 = {
|
|
|
28
27
|
Mia: "MIA",
|
|
29
28
|
Mia2: "MIA2",
|
|
30
29
|
Nyc: "NYC",
|
|
31
|
-
San: "SAN",
|
|
32
30
|
Sao: "SAO",
|
|
33
31
|
Sao2: "SAO2",
|
|
32
|
+
Sgp: "SGP",
|
|
34
33
|
Syd: "SYD",
|
|
35
34
|
Tyo: "TYO",
|
|
36
35
|
Tyo2: "TYO2",
|
|
@@ -17,40 +17,36 @@ export type UpdateServerDeployConfigType2 = ClosedEnum<
|
|
|
17
17
|
>;
|
|
18
18
|
|
|
19
19
|
export const UpdateServerDeployConfigOperatingSystem2 = {
|
|
20
|
-
Ipxe: "ipxe",
|
|
21
|
-
WindowsServer2019StdV1: "windows_server_2019_std_v1",
|
|
22
|
-
Ubuntu2204X64Lts: "ubuntu_22_04_x64_lts",
|
|
23
|
-
Debian11: "debian_11",
|
|
24
|
-
Debian10: "debian_10",
|
|
25
|
-
Rhel8: "rhel8",
|
|
26
|
-
WindowsServer2012R2StdV28: "windows_server_2012_r2_std_v28",
|
|
27
|
-
WindowsServer2012R2DcV5: "windows_server_2012_r2_dc_v5",
|
|
28
|
-
Esxi67: "esxi_6_7",
|
|
29
|
-
Debian94X64: "debian_9_4_x64",
|
|
30
20
|
Centos74X64: "centos_7_4_x64",
|
|
31
21
|
Centos8X64: "centos_8_x64",
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
WindowsServer2016StdV1: "windows_server_2016_std_v1",
|
|
35
|
-
WindowsServer2016DcV1: "windows_server_2016_dc_v1",
|
|
36
|
-
WindowsServer2019DcV1: "windows_server_2019_dc_v1",
|
|
22
|
+
Debian10: "debian_10",
|
|
23
|
+
Debian11: "debian_11",
|
|
37
24
|
Debian12: "debian_12",
|
|
25
|
+
Ipxe: "ipxe",
|
|
26
|
+
Rhel8: "rhel8",
|
|
27
|
+
Rockylinux8: "rockylinux_8",
|
|
38
28
|
Ubuntu22MlInABox: "ubuntu22_ml_in_a_box",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Windows2022Std: "windows_2022_std",
|
|
29
|
+
Ubuntu24MlInABox: "ubuntu24_ml_in_a_box",
|
|
30
|
+
Ubuntu2004X64Lts: "ubuntu_20_04_x64_lts",
|
|
31
|
+
Ubuntu2204X64Lts: "ubuntu_22_04_x64_lts",
|
|
43
32
|
Ubuntu2404X64Lts: "ubuntu_24_04_x64_lts",
|
|
44
|
-
|
|
33
|
+
Windows2022Std: "windows_2022_std",
|
|
34
|
+
WindowsServer2019StdV1: "windows_server_2019_std_v1",
|
|
45
35
|
} as const;
|
|
46
36
|
export type UpdateServerDeployConfigOperatingSystem2 = ClosedEnum<
|
|
47
37
|
typeof UpdateServerDeployConfigOperatingSystem2
|
|
48
38
|
>;
|
|
49
39
|
|
|
40
|
+
/**
|
|
41
|
+
* RAID mode for the server. Set to 'raid-0' for RAID 0, 'raid-1' for RAID 1, or omit/null for no RAID configuration
|
|
42
|
+
*/
|
|
50
43
|
export const UpdateServerDeployConfigRaid2 = {
|
|
51
44
|
Raid0: "raid-0",
|
|
52
45
|
Raid1: "raid-1",
|
|
53
46
|
} as const;
|
|
47
|
+
/**
|
|
48
|
+
* RAID mode for the server. Set to 'raid-0' for RAID 0, 'raid-1' for RAID 1, or omit/null for no RAID configuration
|
|
49
|
+
*/
|
|
54
50
|
export type UpdateServerDeployConfigRaid2 = ClosedEnum<
|
|
55
51
|
typeof UpdateServerDeployConfigRaid2
|
|
56
52
|
>;
|
|
@@ -64,6 +60,9 @@ export type UpdateServerDeployConfigPartition2 = {
|
|
|
64
60
|
export type UpdateServerDeployConfigAttributes2 = {
|
|
65
61
|
hostname?: string | undefined;
|
|
66
62
|
operatingSystem?: UpdateServerDeployConfigOperatingSystem2 | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* RAID mode for the server. Set to 'raid-0' for RAID 0, 'raid-1' for RAID 1, or omit/null for no RAID configuration
|
|
65
|
+
*/
|
|
67
66
|
raid?: UpdateServerDeployConfigRaid2 | undefined;
|
|
68
67
|
/**
|
|
69
68
|
* User data to configure the server
|
package/src/models/plandata.ts
CHANGED
|
@@ -86,15 +86,15 @@ export const PlanDataStockLevel = {
|
|
|
86
86
|
export type PlanDataStockLevel = ClosedEnum<typeof PlanDataStockLevel>;
|
|
87
87
|
|
|
88
88
|
export type PlanDataUSD = {
|
|
89
|
-
hour?: number | undefined;
|
|
90
|
-
month?: number | undefined;
|
|
91
|
-
year?: number | undefined;
|
|
89
|
+
hour?: number | null | undefined;
|
|
90
|
+
month?: number | null | undefined;
|
|
91
|
+
year?: number | null | undefined;
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
export type PlanDataBRL = {
|
|
95
|
-
hour?: number | undefined;
|
|
96
|
-
month?: number | undefined;
|
|
97
|
-
year?: number | undefined;
|
|
95
|
+
hour?: number | null | undefined;
|
|
96
|
+
month?: number | null | undefined;
|
|
97
|
+
year?: number | null | undefined;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
export type PlanDataPricing = {
|
|
@@ -461,15 +461,15 @@ export const PlanDataUSD$inboundSchema: z.ZodType<
|
|
|
461
461
|
z.ZodTypeDef,
|
|
462
462
|
unknown
|
|
463
463
|
> = z.object({
|
|
464
|
-
hour: z.number().optional(),
|
|
465
|
-
month: z.number().optional(),
|
|
466
|
-
year: z.number().optional(),
|
|
464
|
+
hour: z.nullable(z.number()).optional(),
|
|
465
|
+
month: z.nullable(z.number()).optional(),
|
|
466
|
+
year: z.nullable(z.number()).optional(),
|
|
467
467
|
});
|
|
468
468
|
/** @internal */
|
|
469
469
|
export type PlanDataUSD$Outbound = {
|
|
470
|
-
hour?: number | undefined;
|
|
471
|
-
month?: number | undefined;
|
|
472
|
-
year?: number | undefined;
|
|
470
|
+
hour?: number | null | undefined;
|
|
471
|
+
month?: number | null | undefined;
|
|
472
|
+
year?: number | null | undefined;
|
|
473
473
|
};
|
|
474
474
|
|
|
475
475
|
/** @internal */
|
|
@@ -478,9 +478,9 @@ export const PlanDataUSD$outboundSchema: z.ZodType<
|
|
|
478
478
|
z.ZodTypeDef,
|
|
479
479
|
PlanDataUSD
|
|
480
480
|
> = z.object({
|
|
481
|
-
hour: z.number().optional(),
|
|
482
|
-
month: z.number().optional(),
|
|
483
|
-
year: z.number().optional(),
|
|
481
|
+
hour: z.nullable(z.number()).optional(),
|
|
482
|
+
month: z.nullable(z.number()).optional(),
|
|
483
|
+
year: z.nullable(z.number()).optional(),
|
|
484
484
|
});
|
|
485
485
|
|
|
486
486
|
export function planDataUSDToJSON(planDataUSD: PlanDataUSD): string {
|
|
@@ -502,15 +502,15 @@ export const PlanDataBRL$inboundSchema: z.ZodType<
|
|
|
502
502
|
z.ZodTypeDef,
|
|
503
503
|
unknown
|
|
504
504
|
> = z.object({
|
|
505
|
-
hour: z.number().optional(),
|
|
506
|
-
month: z.number().optional(),
|
|
507
|
-
year: z.number().optional(),
|
|
505
|
+
hour: z.nullable(z.number()).optional(),
|
|
506
|
+
month: z.nullable(z.number()).optional(),
|
|
507
|
+
year: z.nullable(z.number()).optional(),
|
|
508
508
|
});
|
|
509
509
|
/** @internal */
|
|
510
510
|
export type PlanDataBRL$Outbound = {
|
|
511
|
-
hour?: number | undefined;
|
|
512
|
-
month?: number | undefined;
|
|
513
|
-
year?: number | undefined;
|
|
511
|
+
hour?: number | null | undefined;
|
|
512
|
+
month?: number | null | undefined;
|
|
513
|
+
year?: number | null | undefined;
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
/** @internal */
|
|
@@ -519,9 +519,9 @@ export const PlanDataBRL$outboundSchema: z.ZodType<
|
|
|
519
519
|
z.ZodTypeDef,
|
|
520
520
|
PlanDataBRL
|
|
521
521
|
> = z.object({
|
|
522
|
-
hour: z.number().optional(),
|
|
523
|
-
month: z.number().optional(),
|
|
524
|
-
year: z.number().optional(),
|
|
522
|
+
hour: z.nullable(z.number()).optional(),
|
|
523
|
+
month: z.nullable(z.number()).optional(),
|
|
524
|
+
year: z.nullable(z.number()).optional(),
|
|
525
525
|
});
|
|
526
526
|
|
|
527
527
|
export function planDataBRLToJSON(planDataBRL: PlanDataBRL): string {
|
package/src/models/project.ts
CHANGED
|
@@ -79,9 +79,9 @@ export type ProjectAttributes = {
|
|
|
79
79
|
* The project description
|
|
80
80
|
*/
|
|
81
81
|
description?: string | null | undefined;
|
|
82
|
-
billingType?: BillingType | undefined;
|
|
83
|
-
billingMethod?: BillingMethod | undefined;
|
|
84
|
-
cost?: string | undefined;
|
|
82
|
+
billingType?: BillingType | null | undefined;
|
|
83
|
+
billingMethod?: BillingMethod | null | undefined;
|
|
84
|
+
cost?: string | null | undefined;
|
|
85
85
|
environment?: Environment | null | undefined;
|
|
86
86
|
stats?: ProjectStats | undefined;
|
|
87
87
|
billing?: ProjectBilling | undefined;
|
|
@@ -234,9 +234,9 @@ export const ProjectAttributes$inboundSchema: z.ZodType<
|
|
|
234
234
|
name: z.string().optional(),
|
|
235
235
|
slug: z.string().optional(),
|
|
236
236
|
description: z.nullable(z.string()).optional(),
|
|
237
|
-
billing_type: BillingType$inboundSchema.optional(),
|
|
238
|
-
billing_method: BillingMethod$inboundSchema.optional(),
|
|
239
|
-
cost: z.string().optional(),
|
|
237
|
+
billing_type: z.nullable(BillingType$inboundSchema).optional(),
|
|
238
|
+
billing_method: z.nullable(BillingMethod$inboundSchema).optional(),
|
|
239
|
+
cost: z.nullable(z.string()).optional(),
|
|
240
240
|
environment: z.nullable(Environment$inboundSchema).optional(),
|
|
241
241
|
stats: z.lazy(() => ProjectStats$inboundSchema).optional(),
|
|
242
242
|
billing: z.lazy(() => ProjectBilling$inboundSchema).optional(),
|
|
@@ -256,9 +256,9 @@ export type ProjectAttributes$Outbound = {
|
|
|
256
256
|
name?: string | undefined;
|
|
257
257
|
slug?: string | undefined;
|
|
258
258
|
description?: string | null | undefined;
|
|
259
|
-
billing_type?: string | undefined;
|
|
260
|
-
billing_method?: string | undefined;
|
|
261
|
-
cost?: string | undefined;
|
|
259
|
+
billing_type?: string | null | undefined;
|
|
260
|
+
billing_method?: string | null | undefined;
|
|
261
|
+
cost?: string | null | undefined;
|
|
262
262
|
environment?: string | null | undefined;
|
|
263
263
|
stats?: ProjectStats$Outbound | undefined;
|
|
264
264
|
billing?: ProjectBilling$Outbound | undefined;
|
|
@@ -276,9 +276,9 @@ export const ProjectAttributes$outboundSchema: z.ZodType<
|
|
|
276
276
|
name: z.string().optional(),
|
|
277
277
|
slug: z.string().optional(),
|
|
278
278
|
description: z.nullable(z.string()).optional(),
|
|
279
|
-
billingType: BillingType$outboundSchema.optional(),
|
|
280
|
-
billingMethod: BillingMethod$outboundSchema.optional(),
|
|
281
|
-
cost: z.string().optional(),
|
|
279
|
+
billingType: z.nullable(BillingType$outboundSchema).optional(),
|
|
280
|
+
billingMethod: z.nullable(BillingMethod$outboundSchema).optional(),
|
|
281
|
+
cost: z.nullable(z.string()).optional(),
|
|
282
282
|
environment: z.nullable(Environment$outboundSchema).optional(),
|
|
283
283
|
stats: z.lazy(() => ProjectStats$outboundSchema).optional(),
|
|
284
284
|
billing: z.lazy(() => ProjectBilling$outboundSchema).optional(),
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ProjectIncludeBilling = {
|
|
12
|
-
subscriptionId?: string | undefined;
|
|
12
|
+
subscriptionId?: string | null | undefined;
|
|
13
13
|
type?: string | undefined;
|
|
14
14
|
method?: string | undefined;
|
|
15
15
|
};
|
|
@@ -25,12 +25,12 @@ export type ProjectInclude = {
|
|
|
25
25
|
id?: string | undefined;
|
|
26
26
|
name?: string | undefined;
|
|
27
27
|
slug?: string | undefined;
|
|
28
|
-
description?: string | undefined;
|
|
29
|
-
billingType?: string | undefined;
|
|
30
|
-
provisioningType?: string | undefined;
|
|
31
|
-
billingMethod?: string | undefined;
|
|
28
|
+
description?: string | null | undefined;
|
|
29
|
+
billingType?: string | null | undefined;
|
|
30
|
+
provisioningType?: string | null | undefined;
|
|
31
|
+
billingMethod?: string | null | undefined;
|
|
32
32
|
bandwidthAlert?: boolean | undefined;
|
|
33
|
-
environment?: string | undefined;
|
|
33
|
+
environment?: string | null | undefined;
|
|
34
34
|
billing?: ProjectIncludeBilling | undefined;
|
|
35
35
|
stats?: ProjectIncludeStats | undefined;
|
|
36
36
|
};
|
|
@@ -41,7 +41,7 @@ export const ProjectIncludeBilling$inboundSchema: z.ZodType<
|
|
|
41
41
|
z.ZodTypeDef,
|
|
42
42
|
unknown
|
|
43
43
|
> = z.object({
|
|
44
|
-
subscription_id: z.string().optional(),
|
|
44
|
+
subscription_id: z.nullable(z.string()).optional(),
|
|
45
45
|
type: z.string().optional(),
|
|
46
46
|
method: z.string().optional(),
|
|
47
47
|
}).transform((v) => {
|
|
@@ -51,7 +51,7 @@ export const ProjectIncludeBilling$inboundSchema: z.ZodType<
|
|
|
51
51
|
});
|
|
52
52
|
/** @internal */
|
|
53
53
|
export type ProjectIncludeBilling$Outbound = {
|
|
54
|
-
subscription_id?: string | undefined;
|
|
54
|
+
subscription_id?: string | null | undefined;
|
|
55
55
|
type?: string | undefined;
|
|
56
56
|
method?: string | undefined;
|
|
57
57
|
};
|
|
@@ -62,7 +62,7 @@ export const ProjectIncludeBilling$outboundSchema: z.ZodType<
|
|
|
62
62
|
z.ZodTypeDef,
|
|
63
63
|
ProjectIncludeBilling
|
|
64
64
|
> = z.object({
|
|
65
|
-
subscriptionId: z.string().optional(),
|
|
65
|
+
subscriptionId: z.nullable(z.string()).optional(),
|
|
66
66
|
type: z.string().optional(),
|
|
67
67
|
method: z.string().optional(),
|
|
68
68
|
}).transform((v) => {
|
|
@@ -153,12 +153,12 @@ export const ProjectInclude$inboundSchema: z.ZodType<
|
|
|
153
153
|
id: z.string().optional(),
|
|
154
154
|
name: z.string().optional(),
|
|
155
155
|
slug: z.string().optional(),
|
|
156
|
-
description: z.string().optional(),
|
|
157
|
-
billing_type: z.string().optional(),
|
|
158
|
-
provisioning_type: z.string().optional(),
|
|
159
|
-
billing_method: z.string().optional(),
|
|
156
|
+
description: z.nullable(z.string()).optional(),
|
|
157
|
+
billing_type: z.nullable(z.string()).optional(),
|
|
158
|
+
provisioning_type: z.nullable(z.string()).optional(),
|
|
159
|
+
billing_method: z.nullable(z.string()).optional(),
|
|
160
160
|
bandwidth_alert: z.boolean().optional(),
|
|
161
|
-
environment: z.string().optional(),
|
|
161
|
+
environment: z.nullable(z.string()).optional(),
|
|
162
162
|
billing: z.lazy(() => ProjectIncludeBilling$inboundSchema).optional(),
|
|
163
163
|
stats: z.lazy(() => ProjectIncludeStats$inboundSchema).optional(),
|
|
164
164
|
}).transform((v) => {
|
|
@@ -174,12 +174,12 @@ export type ProjectInclude$Outbound = {
|
|
|
174
174
|
id?: string | undefined;
|
|
175
175
|
name?: string | undefined;
|
|
176
176
|
slug?: string | undefined;
|
|
177
|
-
description?: string | undefined;
|
|
178
|
-
billing_type?: string | undefined;
|
|
179
|
-
provisioning_type?: string | undefined;
|
|
180
|
-
billing_method?: string | undefined;
|
|
177
|
+
description?: string | null | undefined;
|
|
178
|
+
billing_type?: string | null | undefined;
|
|
179
|
+
provisioning_type?: string | null | undefined;
|
|
180
|
+
billing_method?: string | null | undefined;
|
|
181
181
|
bandwidth_alert?: boolean | undefined;
|
|
182
|
-
environment?: string | undefined;
|
|
182
|
+
environment?: string | null | undefined;
|
|
183
183
|
billing?: ProjectIncludeBilling$Outbound | undefined;
|
|
184
184
|
stats?: ProjectIncludeStats$Outbound | undefined;
|
|
185
185
|
};
|
|
@@ -193,12 +193,12 @@ export const ProjectInclude$outboundSchema: z.ZodType<
|
|
|
193
193
|
id: z.string().optional(),
|
|
194
194
|
name: z.string().optional(),
|
|
195
195
|
slug: z.string().optional(),
|
|
196
|
-
description: z.string().optional(),
|
|
197
|
-
billingType: z.string().optional(),
|
|
198
|
-
provisioningType: z.string().optional(),
|
|
199
|
-
billingMethod: z.string().optional(),
|
|
196
|
+
description: z.nullable(z.string()).optional(),
|
|
197
|
+
billingType: z.nullable(z.string()).optional(),
|
|
198
|
+
provisioningType: z.nullable(z.string()).optional(),
|
|
199
|
+
billingMethod: z.nullable(z.string()).optional(),
|
|
200
200
|
bandwidthAlert: z.boolean().optional(),
|
|
201
|
-
environment: z.string().optional(),
|
|
201
|
+
environment: z.nullable(z.string()).optional(),
|
|
202
202
|
billing: z.lazy(() => ProjectIncludeBilling$outboundSchema).optional(),
|
|
203
203
|
stats: z.lazy(() => ProjectIncludeStats$outboundSchema).optional(),
|
|
204
204
|
}).transform((v) => {
|