latitudesh-typescript-sdk 0.8.2 → 0.8.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 +709 -500
- package/bin/mcp-server.js.map +16 -15
- package/dist/commonjs/funcs/plansListStorage.d.ts +2 -1
- package/dist/commonjs/funcs/plansListStorage.d.ts.map +1 -1
- package/dist/commonjs/funcs/plansListStorage.js +18 -3
- package/dist/commonjs/funcs/plansListStorage.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/plansListStorage.d.ts +6 -1
- package/dist/commonjs/mcp-server/tools/plansListStorage.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/plansListStorage.js +40 -2
- package/dist/commonjs/mcp-server/tools/plansListStorage.js.map +1 -1
- package/dist/commonjs/models/operations/getstorageplans.d.ts +25 -0
- package/dist/commonjs/models/operations/getstorageplans.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getstorageplans.js +71 -0
- package/dist/commonjs/models/operations/getstorageplans.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updateproject.d.ts +4 -4
- package/dist/commonjs/models/operations/updateproject.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateproject.js +8 -8
- package/dist/commonjs/models/operations/updateproject.js.map +1 -1
- package/dist/commonjs/models/outofbandconnection.d.ts +8 -8
- package/dist/commonjs/models/outofbandconnection.d.ts.map +1 -1
- package/dist/commonjs/models/outofbandconnection.js +11 -12
- package/dist/commonjs/models/outofbandconnection.js.map +1 -1
- package/dist/commonjs/models/storageplandata.d.ts +70 -5
- package/dist/commonjs/models/storageplandata.d.ts.map +1 -1
- package/dist/commonjs/models/storageplandata.js +101 -5
- package/dist/commonjs/models/storageplandata.js.map +1 -1
- package/dist/commonjs/models/userteam.d.ts +53 -0
- package/dist/commonjs/models/userteam.d.ts.map +1 -1
- package/dist/commonjs/models/userteam.js +79 -1
- package/dist/commonjs/models/userteam.js.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.d.ts +32 -9
- package/dist/commonjs/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.js +47 -9
- package/dist/commonjs/models/virtualmachineattributes.js.map +1 -1
- package/dist/commonjs/models/volumedata.d.ts +15 -0
- package/dist/commonjs/models/volumedata.d.ts.map +1 -1
- package/dist/commonjs/models/volumedata.js +10 -0
- package/dist/commonjs/models/volumedata.js.map +1 -1
- package/dist/commonjs/sdk/plans.d.ts +1 -1
- package/dist/commonjs/sdk/plans.d.ts.map +1 -1
- package/dist/commonjs/sdk/plans.js +2 -2
- package/dist/commonjs/sdk/plans.js.map +1 -1
- package/dist/esm/funcs/plansListStorage.d.ts +2 -1
- package/dist/esm/funcs/plansListStorage.d.ts.map +1 -1
- package/dist/esm/funcs/plansListStorage.js +18 -3
- package/dist/esm/funcs/plansListStorage.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/plansListStorage.d.ts +6 -1
- package/dist/esm/mcp-server/tools/plansListStorage.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/plansListStorage.js +7 -2
- package/dist/esm/mcp-server/tools/plansListStorage.js.map +1 -1
- package/dist/esm/models/operations/getstorageplans.d.ts +25 -0
- package/dist/esm/models/operations/getstorageplans.d.ts.map +1 -0
- package/dist/esm/models/operations/getstorageplans.js +33 -0
- package/dist/esm/models/operations/getstorageplans.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updateproject.d.ts +4 -4
- package/dist/esm/models/operations/updateproject.d.ts.map +1 -1
- package/dist/esm/models/operations/updateproject.js +8 -8
- package/dist/esm/models/operations/updateproject.js.map +1 -1
- package/dist/esm/models/outofbandconnection.d.ts +8 -8
- package/dist/esm/models/outofbandconnection.d.ts.map +1 -1
- package/dist/esm/models/outofbandconnection.js +8 -9
- package/dist/esm/models/outofbandconnection.js.map +1 -1
- package/dist/esm/models/storageplandata.d.ts +70 -5
- package/dist/esm/models/storageplandata.d.ts.map +1 -1
- package/dist/esm/models/storageplandata.js +94 -4
- package/dist/esm/models/storageplandata.js.map +1 -1
- package/dist/esm/models/userteam.d.ts +53 -0
- package/dist/esm/models/userteam.d.ts.map +1 -1
- package/dist/esm/models/userteam.js +76 -0
- package/dist/esm/models/userteam.js.map +1 -1
- package/dist/esm/models/virtualmachineattributes.d.ts +32 -9
- package/dist/esm/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineattributes.js +44 -8
- package/dist/esm/models/virtualmachineattributes.js.map +1 -1
- package/dist/esm/models/volumedata.d.ts +15 -0
- package/dist/esm/models/volumedata.d.ts.map +1 -1
- package/dist/esm/models/volumedata.js +10 -0
- package/dist/esm/models/volumedata.js.map +1 -1
- package/dist/esm/sdk/plans.d.ts +1 -1
- package/dist/esm/sdk/plans.d.ts.map +1 -1
- package/dist/esm/sdk/plans.js +2 -2
- package/dist/esm/sdk/plans.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/plansListStorage.ts +25 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/plansListStorage.ts +9 -2
- package/src/models/operations/getstorageplans.ts +72 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/updateproject.ts +12 -16
- package/src/models/outofbandconnection.ts +28 -21
- package/src/models/storageplandata.ts +211 -10
- package/src/models/userteam.ts +142 -0
- package/src/models/virtualmachineattributes.ts +98 -17
- package/src/models/volumedata.ts +25 -0
- package/src/sdk/plans.ts +2 -0
- package/tests/integration/projects.test.ts +3 -0
|
@@ -6,14 +6,37 @@ export declare const StoragePlanDataType: {
|
|
|
6
6
|
readonly StoragePlans: "storage_plans";
|
|
7
7
|
};
|
|
8
8
|
export type StoragePlanDataType = ClosedEnum<typeof StoragePlanDataType>;
|
|
9
|
-
export
|
|
9
|
+
export declare const StoragePlanStorageType: {
|
|
10
|
+
readonly Filesystem: "filesystem";
|
|
11
|
+
readonly Object: "object";
|
|
12
|
+
};
|
|
13
|
+
export type StoragePlanStorageType = ClosedEnum<typeof StoragePlanStorageType>;
|
|
14
|
+
export declare const StoragePlanStorageClass: {
|
|
15
|
+
readonly Standard: "standard";
|
|
16
|
+
readonly HighPerformance: "high_performance";
|
|
17
|
+
};
|
|
18
|
+
export type StoragePlanStorageClass = ClosedEnum<typeof StoragePlanStorageClass>;
|
|
19
|
+
export type StoragePlanDataUSD = {
|
|
10
20
|
month?: number | undefined;
|
|
11
21
|
};
|
|
12
|
-
export type
|
|
22
|
+
export type StoragePlanDataBRL = {
|
|
23
|
+
month?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
export type StoragePlanDataPricing = {
|
|
26
|
+
usd?: StoragePlanDataUSD | undefined;
|
|
27
|
+
brl?: StoragePlanDataBRL | undefined;
|
|
28
|
+
};
|
|
29
|
+
export type StoragePlanDataRegion = {
|
|
13
30
|
name?: string | undefined;
|
|
14
31
|
locations?: Array<string> | undefined;
|
|
15
32
|
pricing?: StoragePlanDataPricing | undefined;
|
|
16
33
|
};
|
|
34
|
+
export type StoragePlanDataAttributes = {
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
storagePlanStorageType?: StoragePlanStorageType | undefined;
|
|
37
|
+
storagePlanStorageClass?: StoragePlanStorageClass | null | undefined;
|
|
38
|
+
regions?: Array<StoragePlanDataRegion> | undefined;
|
|
39
|
+
};
|
|
17
40
|
export type StoragePlanData = {
|
|
18
41
|
id?: string | undefined;
|
|
19
42
|
type?: StoragePlanDataType | undefined;
|
|
@@ -24,24 +47,66 @@ export declare const StoragePlanDataType$inboundSchema: z.ZodNativeEnum<typeof S
|
|
|
24
47
|
/** @internal */
|
|
25
48
|
export declare const StoragePlanDataType$outboundSchema: z.ZodNativeEnum<typeof StoragePlanDataType>;
|
|
26
49
|
/** @internal */
|
|
50
|
+
export declare const StoragePlanStorageType$inboundSchema: z.ZodNativeEnum<typeof StoragePlanStorageType>;
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const StoragePlanStorageType$outboundSchema: z.ZodNativeEnum<typeof StoragePlanStorageType>;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const StoragePlanStorageClass$inboundSchema: z.ZodNativeEnum<typeof StoragePlanStorageClass>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const StoragePlanStorageClass$outboundSchema: z.ZodNativeEnum<typeof StoragePlanStorageClass>;
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const StoragePlanDataUSD$inboundSchema: z.ZodType<StoragePlanDataUSD, z.ZodTypeDef, unknown>;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type StoragePlanDataUSD$Outbound = {
|
|
61
|
+
month?: number | undefined;
|
|
62
|
+
};
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const StoragePlanDataUSD$outboundSchema: z.ZodType<StoragePlanDataUSD$Outbound, z.ZodTypeDef, StoragePlanDataUSD>;
|
|
65
|
+
export declare function storagePlanDataUSDToJSON(storagePlanDataUSD: StoragePlanDataUSD): string;
|
|
66
|
+
export declare function storagePlanDataUSDFromJSON(jsonString: string): SafeParseResult<StoragePlanDataUSD, SDKValidationError>;
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const StoragePlanDataBRL$inboundSchema: z.ZodType<StoragePlanDataBRL, z.ZodTypeDef, unknown>;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type StoragePlanDataBRL$Outbound = {
|
|
71
|
+
month?: number | undefined;
|
|
72
|
+
};
|
|
73
|
+
/** @internal */
|
|
74
|
+
export declare const StoragePlanDataBRL$outboundSchema: z.ZodType<StoragePlanDataBRL$Outbound, z.ZodTypeDef, StoragePlanDataBRL>;
|
|
75
|
+
export declare function storagePlanDataBRLToJSON(storagePlanDataBRL: StoragePlanDataBRL): string;
|
|
76
|
+
export declare function storagePlanDataBRLFromJSON(jsonString: string): SafeParseResult<StoragePlanDataBRL, SDKValidationError>;
|
|
77
|
+
/** @internal */
|
|
27
78
|
export declare const StoragePlanDataPricing$inboundSchema: z.ZodType<StoragePlanDataPricing, z.ZodTypeDef, unknown>;
|
|
28
79
|
/** @internal */
|
|
29
80
|
export type StoragePlanDataPricing$Outbound = {
|
|
30
|
-
|
|
81
|
+
USD?: StoragePlanDataUSD$Outbound | undefined;
|
|
82
|
+
BRL?: StoragePlanDataBRL$Outbound | undefined;
|
|
31
83
|
};
|
|
32
84
|
/** @internal */
|
|
33
85
|
export declare const StoragePlanDataPricing$outboundSchema: z.ZodType<StoragePlanDataPricing$Outbound, z.ZodTypeDef, StoragePlanDataPricing>;
|
|
34
86
|
export declare function storagePlanDataPricingToJSON(storagePlanDataPricing: StoragePlanDataPricing): string;
|
|
35
87
|
export declare function storagePlanDataPricingFromJSON(jsonString: string): SafeParseResult<StoragePlanDataPricing, SDKValidationError>;
|
|
36
88
|
/** @internal */
|
|
37
|
-
export declare const
|
|
89
|
+
export declare const StoragePlanDataRegion$inboundSchema: z.ZodType<StoragePlanDataRegion, z.ZodTypeDef, unknown>;
|
|
38
90
|
/** @internal */
|
|
39
|
-
export type
|
|
91
|
+
export type StoragePlanDataRegion$Outbound = {
|
|
40
92
|
name?: string | undefined;
|
|
41
93
|
locations?: Array<string> | undefined;
|
|
42
94
|
pricing?: StoragePlanDataPricing$Outbound | undefined;
|
|
43
95
|
};
|
|
44
96
|
/** @internal */
|
|
97
|
+
export declare const StoragePlanDataRegion$outboundSchema: z.ZodType<StoragePlanDataRegion$Outbound, z.ZodTypeDef, StoragePlanDataRegion>;
|
|
98
|
+
export declare function storagePlanDataRegionToJSON(storagePlanDataRegion: StoragePlanDataRegion): string;
|
|
99
|
+
export declare function storagePlanDataRegionFromJSON(jsonString: string): SafeParseResult<StoragePlanDataRegion, SDKValidationError>;
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const StoragePlanDataAttributes$inboundSchema: z.ZodType<StoragePlanDataAttributes, z.ZodTypeDef, unknown>;
|
|
102
|
+
/** @internal */
|
|
103
|
+
export type StoragePlanDataAttributes$Outbound = {
|
|
104
|
+
name?: string | undefined;
|
|
105
|
+
storage_type?: string | undefined;
|
|
106
|
+
storage_class?: string | null | undefined;
|
|
107
|
+
regions?: Array<StoragePlanDataRegion$Outbound> | undefined;
|
|
108
|
+
};
|
|
109
|
+
/** @internal */
|
|
45
110
|
export declare const StoragePlanDataAttributes$outboundSchema: z.ZodType<StoragePlanDataAttributes$Outbound, z.ZodTypeDef, StoragePlanDataAttributes>;
|
|
46
111
|
export declare function storagePlanDataAttributesToJSON(storagePlanDataAttributes: StoragePlanDataAttributes): string;
|
|
47
112
|
export declare function storagePlanDataAttributesFromJSON(jsonString: string): SafeParseResult<StoragePlanDataAttributes, SDKValidationError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageplandata.d.ts","sourceRoot":"","sources":["../../../src/models/storageplandata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"storageplandata.d.ts","sourceRoot":"","sources":["../../../src/models/storageplandata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC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C;AAEH,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AACD,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE;AAED,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,kCAAkC,GAAG,SAAS,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAKf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AACD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -2,22 +2,79 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
5
6
|
import { safeParse } from "../lib/schemas.js";
|
|
6
7
|
export const StoragePlanDataType = {
|
|
7
8
|
StoragePlans: "storage_plans",
|
|
8
9
|
};
|
|
10
|
+
export const StoragePlanStorageType = {
|
|
11
|
+
Filesystem: "filesystem",
|
|
12
|
+
Object: "object",
|
|
13
|
+
};
|
|
14
|
+
export const StoragePlanStorageClass = {
|
|
15
|
+
Standard: "standard",
|
|
16
|
+
HighPerformance: "high_performance",
|
|
17
|
+
};
|
|
9
18
|
/** @internal */
|
|
10
19
|
export const StoragePlanDataType$inboundSchema = z.nativeEnum(StoragePlanDataType);
|
|
11
20
|
/** @internal */
|
|
12
21
|
export const StoragePlanDataType$outboundSchema = StoragePlanDataType$inboundSchema;
|
|
13
22
|
/** @internal */
|
|
14
|
-
export const
|
|
23
|
+
export const StoragePlanStorageType$inboundSchema = z.nativeEnum(StoragePlanStorageType);
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const StoragePlanStorageType$outboundSchema = StoragePlanStorageType$inboundSchema;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const StoragePlanStorageClass$inboundSchema = z.nativeEnum(StoragePlanStorageClass);
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const StoragePlanStorageClass$outboundSchema = StoragePlanStorageClass$inboundSchema;
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const StoragePlanDataUSD$inboundSchema = z.object({
|
|
15
32
|
month: z.number().optional(),
|
|
16
33
|
});
|
|
17
34
|
/** @internal */
|
|
18
|
-
export const
|
|
35
|
+
export const StoragePlanDataUSD$outboundSchema = z.object({
|
|
36
|
+
month: z.number().optional(),
|
|
37
|
+
});
|
|
38
|
+
export function storagePlanDataUSDToJSON(storagePlanDataUSD) {
|
|
39
|
+
return JSON.stringify(StoragePlanDataUSD$outboundSchema.parse(storagePlanDataUSD));
|
|
40
|
+
}
|
|
41
|
+
export function storagePlanDataUSDFromJSON(jsonString) {
|
|
42
|
+
return safeParse(jsonString, (x) => StoragePlanDataUSD$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StoragePlanDataUSD' from JSON`);
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const StoragePlanDataBRL$inboundSchema = z.object({
|
|
19
46
|
month: z.number().optional(),
|
|
20
47
|
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const StoragePlanDataBRL$outboundSchema = z.object({
|
|
50
|
+
month: z.number().optional(),
|
|
51
|
+
});
|
|
52
|
+
export function storagePlanDataBRLToJSON(storagePlanDataBRL) {
|
|
53
|
+
return JSON.stringify(StoragePlanDataBRL$outboundSchema.parse(storagePlanDataBRL));
|
|
54
|
+
}
|
|
55
|
+
export function storagePlanDataBRLFromJSON(jsonString) {
|
|
56
|
+
return safeParse(jsonString, (x) => StoragePlanDataBRL$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StoragePlanDataBRL' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const StoragePlanDataPricing$inboundSchema = z.object({
|
|
60
|
+
USD: z.lazy(() => StoragePlanDataUSD$inboundSchema).optional(),
|
|
61
|
+
BRL: z.lazy(() => StoragePlanDataBRL$inboundSchema).optional(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return remap$(v, {
|
|
64
|
+
"USD": "usd",
|
|
65
|
+
"BRL": "brl",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const StoragePlanDataPricing$outboundSchema = z.object({
|
|
70
|
+
usd: z.lazy(() => StoragePlanDataUSD$outboundSchema).optional(),
|
|
71
|
+
brl: z.lazy(() => StoragePlanDataBRL$outboundSchema).optional(),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
usd: "USD",
|
|
75
|
+
brl: "BRL",
|
|
76
|
+
});
|
|
77
|
+
});
|
|
21
78
|
export function storagePlanDataPricingToJSON(storagePlanDataPricing) {
|
|
22
79
|
return JSON.stringify(StoragePlanDataPricing$outboundSchema.parse(storagePlanDataPricing));
|
|
23
80
|
}
|
|
@@ -25,17 +82,50 @@ export function storagePlanDataPricingFromJSON(jsonString) {
|
|
|
25
82
|
return safeParse(jsonString, (x) => StoragePlanDataPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StoragePlanDataPricing' from JSON`);
|
|
26
83
|
}
|
|
27
84
|
/** @internal */
|
|
28
|
-
export const
|
|
85
|
+
export const StoragePlanDataRegion$inboundSchema = z.object({
|
|
29
86
|
name: z.string().optional(),
|
|
30
87
|
locations: z.array(z.string()).optional(),
|
|
31
88
|
pricing: z.lazy(() => StoragePlanDataPricing$inboundSchema).optional(),
|
|
32
89
|
});
|
|
33
90
|
/** @internal */
|
|
34
|
-
export const
|
|
91
|
+
export const StoragePlanDataRegion$outboundSchema = z.object({
|
|
35
92
|
name: z.string().optional(),
|
|
36
93
|
locations: z.array(z.string()).optional(),
|
|
37
94
|
pricing: z.lazy(() => StoragePlanDataPricing$outboundSchema).optional(),
|
|
38
95
|
});
|
|
96
|
+
export function storagePlanDataRegionToJSON(storagePlanDataRegion) {
|
|
97
|
+
return JSON.stringify(StoragePlanDataRegion$outboundSchema.parse(storagePlanDataRegion));
|
|
98
|
+
}
|
|
99
|
+
export function storagePlanDataRegionFromJSON(jsonString) {
|
|
100
|
+
return safeParse(jsonString, (x) => StoragePlanDataRegion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StoragePlanDataRegion' from JSON`);
|
|
101
|
+
}
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const StoragePlanDataAttributes$inboundSchema = z.object({
|
|
104
|
+
name: z.string().optional(),
|
|
105
|
+
storage_type: StoragePlanStorageType$inboundSchema.optional(),
|
|
106
|
+
storage_class: z.nullable(StoragePlanStorageClass$inboundSchema).optional(),
|
|
107
|
+
regions: z.array(z.lazy(() => StoragePlanDataRegion$inboundSchema))
|
|
108
|
+
.optional(),
|
|
109
|
+
}).transform((v) => {
|
|
110
|
+
return remap$(v, {
|
|
111
|
+
"storage_type": "storagePlanStorageType",
|
|
112
|
+
"storage_class": "storagePlanStorageClass",
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const StoragePlanDataAttributes$outboundSchema = z.object({
|
|
117
|
+
name: z.string().optional(),
|
|
118
|
+
storagePlanStorageType: StoragePlanStorageType$outboundSchema.optional(),
|
|
119
|
+
storagePlanStorageClass: z.nullable(StoragePlanStorageClass$outboundSchema)
|
|
120
|
+
.optional(),
|
|
121
|
+
regions: z.array(z.lazy(() => StoragePlanDataRegion$outboundSchema))
|
|
122
|
+
.optional(),
|
|
123
|
+
}).transform((v) => {
|
|
124
|
+
return remap$(v, {
|
|
125
|
+
storagePlanStorageType: "storage_type",
|
|
126
|
+
storagePlanStorageClass: "storage_class",
|
|
127
|
+
});
|
|
128
|
+
});
|
|
39
129
|
export function storagePlanDataAttributesToJSON(storagePlanDataAttributes) {
|
|
40
130
|
return JSON.stringify(StoragePlanDataAttributes$outboundSchema.parse(storagePlanDataAttributes));
|
|
41
131
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageplandata.js","sourceRoot":"","sources":["../../../src/models/storageplandata.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAK9C,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,YAAY,EAAE,eAAe;CACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageplandata.js","sourceRoot":"","sources":["../../../src/models/storageplandata.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAK9C,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,YAAY,EAAE,eAAe;CACrB,CAAC;AAGX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ,EAAE,UAAU;IACpB,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAqCX,gBAAgB;AAChB,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QAAQ,EAAE;CAC9E,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AACD,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
import { ProjectInclude, ProjectInclude$Outbound } from "./projectinclude.js";
|
|
4
6
|
import { UserInclude, UserInclude$Outbound } from "./userinclude.js";
|
|
7
|
+
export declare const UserTeamType: {
|
|
8
|
+
readonly Teams: "teams";
|
|
9
|
+
};
|
|
10
|
+
export type UserTeamType = ClosedEnum<typeof UserTeamType>;
|
|
5
11
|
export type UserTeamBilling = {
|
|
6
12
|
id?: string | undefined;
|
|
7
13
|
customerBillingId?: string | undefined;
|
|
8
14
|
};
|
|
15
|
+
export type UserTeamLimits = {
|
|
16
|
+
bareMetal?: number | null | undefined;
|
|
17
|
+
bareMetalGpu?: number | null | undefined;
|
|
18
|
+
virtualMachine?: number | null | undefined;
|
|
19
|
+
virtualMachineGpu?: number | null | undefined;
|
|
20
|
+
elasticIp?: number | null | undefined;
|
|
21
|
+
virtualNetwork?: number | null | undefined;
|
|
22
|
+
database?: number | null | undefined;
|
|
23
|
+
filesystem?: number | null | undefined;
|
|
24
|
+
blockStorage?: number | null | undefined;
|
|
25
|
+
};
|
|
9
26
|
export type UserTeamAttributes = {
|
|
10
27
|
name?: string | undefined;
|
|
11
28
|
slug?: string | undefined;
|
|
@@ -14,14 +31,25 @@ export type UserTeamAttributes = {
|
|
|
14
31
|
currency?: string | undefined;
|
|
15
32
|
createdAt?: string | undefined;
|
|
16
33
|
updatedAt?: string | undefined;
|
|
34
|
+
status?: string | null | undefined;
|
|
35
|
+
enforceMfa?: boolean | undefined;
|
|
36
|
+
users?: Array<UserInclude> | undefined;
|
|
37
|
+
projects?: Array<ProjectInclude> | undefined;
|
|
17
38
|
owner?: UserInclude | undefined;
|
|
18
39
|
billing?: UserTeamBilling | undefined;
|
|
40
|
+
featureFlags?: Array<string> | undefined;
|
|
41
|
+
limits?: UserTeamLimits | undefined;
|
|
19
42
|
};
|
|
20
43
|
export type UserTeam = {
|
|
21
44
|
id?: string | undefined;
|
|
45
|
+
type?: UserTeamType | undefined;
|
|
22
46
|
attributes?: UserTeamAttributes | undefined;
|
|
23
47
|
};
|
|
24
48
|
/** @internal */
|
|
49
|
+
export declare const UserTeamType$inboundSchema: z.ZodNativeEnum<typeof UserTeamType>;
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const UserTeamType$outboundSchema: z.ZodNativeEnum<typeof UserTeamType>;
|
|
52
|
+
/** @internal */
|
|
25
53
|
export declare const UserTeamBilling$inboundSchema: z.ZodType<UserTeamBilling, z.ZodTypeDef, unknown>;
|
|
26
54
|
/** @internal */
|
|
27
55
|
export type UserTeamBilling$Outbound = {
|
|
@@ -33,6 +61,24 @@ export declare const UserTeamBilling$outboundSchema: z.ZodType<UserTeamBilling$O
|
|
|
33
61
|
export declare function userTeamBillingToJSON(userTeamBilling: UserTeamBilling): string;
|
|
34
62
|
export declare function userTeamBillingFromJSON(jsonString: string): SafeParseResult<UserTeamBilling, SDKValidationError>;
|
|
35
63
|
/** @internal */
|
|
64
|
+
export declare const UserTeamLimits$inboundSchema: z.ZodType<UserTeamLimits, z.ZodTypeDef, unknown>;
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type UserTeamLimits$Outbound = {
|
|
67
|
+
bare_metal?: number | null | undefined;
|
|
68
|
+
bare_metal_gpu?: number | null | undefined;
|
|
69
|
+
virtual_machine?: number | null | undefined;
|
|
70
|
+
virtual_machine_gpu?: number | null | undefined;
|
|
71
|
+
elastic_ip?: number | null | undefined;
|
|
72
|
+
virtual_network?: number | null | undefined;
|
|
73
|
+
database?: number | null | undefined;
|
|
74
|
+
filesystem?: number | null | undefined;
|
|
75
|
+
block_storage?: number | null | undefined;
|
|
76
|
+
};
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const UserTeamLimits$outboundSchema: z.ZodType<UserTeamLimits$Outbound, z.ZodTypeDef, UserTeamLimits>;
|
|
79
|
+
export declare function userTeamLimitsToJSON(userTeamLimits: UserTeamLimits): string;
|
|
80
|
+
export declare function userTeamLimitsFromJSON(jsonString: string): SafeParseResult<UserTeamLimits, SDKValidationError>;
|
|
81
|
+
/** @internal */
|
|
36
82
|
export declare const UserTeamAttributes$inboundSchema: z.ZodType<UserTeamAttributes, z.ZodTypeDef, unknown>;
|
|
37
83
|
/** @internal */
|
|
38
84
|
export type UserTeamAttributes$Outbound = {
|
|
@@ -43,8 +89,14 @@ export type UserTeamAttributes$Outbound = {
|
|
|
43
89
|
currency?: string | undefined;
|
|
44
90
|
created_at?: string | undefined;
|
|
45
91
|
updated_at?: string | undefined;
|
|
92
|
+
status?: string | null | undefined;
|
|
93
|
+
enforce_mfa?: boolean | undefined;
|
|
94
|
+
users?: Array<UserInclude$Outbound> | undefined;
|
|
95
|
+
projects?: Array<ProjectInclude$Outbound> | undefined;
|
|
46
96
|
owner?: UserInclude$Outbound | undefined;
|
|
47
97
|
billing?: UserTeamBilling$Outbound | undefined;
|
|
98
|
+
feature_flags?: Array<string> | undefined;
|
|
99
|
+
limits?: UserTeamLimits$Outbound | undefined;
|
|
48
100
|
};
|
|
49
101
|
/** @internal */
|
|
50
102
|
export declare const UserTeamAttributes$outboundSchema: z.ZodType<UserTeamAttributes$Outbound, z.ZodTypeDef, UserTeamAttributes>;
|
|
@@ -55,6 +107,7 @@ export declare const UserTeam$inboundSchema: z.ZodType<UserTeam, z.ZodTypeDef, u
|
|
|
55
107
|
/** @internal */
|
|
56
108
|
export type UserTeam$Outbound = {
|
|
57
109
|
id?: string | undefined;
|
|
110
|
+
type?: string | undefined;
|
|
58
111
|
attributes?: UserTeamAttributes$Outbound | undefined;
|
|
59
112
|
};
|
|
60
113
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userteam.d.ts","sourceRoot":"","sources":["../../../src/models/userteam.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,e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ap$ } from "../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ProjectInclude$inboundSchema, ProjectInclude$outboundSchema, } from "./projectinclude.js";
|
|
7
8
|
import { UserInclude$inboundSchema, UserInclude$outboundSchema, } from "./userinclude.js";
|
|
9
|
+
export const UserTeamType = {
|
|
10
|
+
Teams: "teams",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const UserTeamType$inboundSchema = z.nativeEnum(UserTeamType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const UserTeamType$outboundSchema = UserTeamType$inboundSchema;
|
|
8
16
|
/** @internal */
|
|
9
17
|
export const UserTeamBilling$inboundSchema = z.object({
|
|
10
18
|
id: z.string().optional(),
|
|
@@ -30,6 +38,56 @@ export function userTeamBillingFromJSON(jsonString) {
|
|
|
30
38
|
return safeParse(jsonString, (x) => UserTeamBilling$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserTeamBilling' from JSON`);
|
|
31
39
|
}
|
|
32
40
|
/** @internal */
|
|
41
|
+
export const UserTeamLimits$inboundSchema = z.object({
|
|
42
|
+
bare_metal: z.nullable(z.number().int()).optional(),
|
|
43
|
+
bare_metal_gpu: z.nullable(z.number().int()).optional(),
|
|
44
|
+
virtual_machine: z.nullable(z.number().int()).optional(),
|
|
45
|
+
virtual_machine_gpu: z.nullable(z.number().int()).optional(),
|
|
46
|
+
elastic_ip: z.nullable(z.number().int()).optional(),
|
|
47
|
+
virtual_network: z.nullable(z.number().int()).optional(),
|
|
48
|
+
database: z.nullable(z.number().int()).optional(),
|
|
49
|
+
filesystem: z.nullable(z.number().int()).optional(),
|
|
50
|
+
block_storage: z.nullable(z.number().int()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"bare_metal": "bareMetal",
|
|
54
|
+
"bare_metal_gpu": "bareMetalGpu",
|
|
55
|
+
"virtual_machine": "virtualMachine",
|
|
56
|
+
"virtual_machine_gpu": "virtualMachineGpu",
|
|
57
|
+
"elastic_ip": "elasticIp",
|
|
58
|
+
"virtual_network": "virtualNetwork",
|
|
59
|
+
"block_storage": "blockStorage",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const UserTeamLimits$outboundSchema = z.object({
|
|
64
|
+
bareMetal: z.nullable(z.number().int()).optional(),
|
|
65
|
+
bareMetalGpu: z.nullable(z.number().int()).optional(),
|
|
66
|
+
virtualMachine: z.nullable(z.number().int()).optional(),
|
|
67
|
+
virtualMachineGpu: z.nullable(z.number().int()).optional(),
|
|
68
|
+
elasticIp: z.nullable(z.number().int()).optional(),
|
|
69
|
+
virtualNetwork: z.nullable(z.number().int()).optional(),
|
|
70
|
+
database: z.nullable(z.number().int()).optional(),
|
|
71
|
+
filesystem: z.nullable(z.number().int()).optional(),
|
|
72
|
+
blockStorage: z.nullable(z.number().int()).optional(),
|
|
73
|
+
}).transform((v) => {
|
|
74
|
+
return remap$(v, {
|
|
75
|
+
bareMetal: "bare_metal",
|
|
76
|
+
bareMetalGpu: "bare_metal_gpu",
|
|
77
|
+
virtualMachine: "virtual_machine",
|
|
78
|
+
virtualMachineGpu: "virtual_machine_gpu",
|
|
79
|
+
elasticIp: "elastic_ip",
|
|
80
|
+
virtualNetwork: "virtual_network",
|
|
81
|
+
blockStorage: "block_storage",
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
export function userTeamLimitsToJSON(userTeamLimits) {
|
|
85
|
+
return JSON.stringify(UserTeamLimits$outboundSchema.parse(userTeamLimits));
|
|
86
|
+
}
|
|
87
|
+
export function userTeamLimitsFromJSON(jsonString) {
|
|
88
|
+
return safeParse(jsonString, (x) => UserTeamLimits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserTeamLimits' from JSON`);
|
|
89
|
+
}
|
|
90
|
+
/** @internal */
|
|
33
91
|
export const UserTeamAttributes$inboundSchema = z.object({
|
|
34
92
|
name: z.string().optional(),
|
|
35
93
|
slug: z.string().optional(),
|
|
@@ -38,12 +96,20 @@ export const UserTeamAttributes$inboundSchema = z.object({
|
|
|
38
96
|
currency: z.string().optional(),
|
|
39
97
|
created_at: z.string().optional(),
|
|
40
98
|
updated_at: z.string().optional(),
|
|
99
|
+
status: z.nullable(z.string()).optional(),
|
|
100
|
+
enforce_mfa: z.boolean().optional(),
|
|
101
|
+
users: z.array(UserInclude$inboundSchema).optional(),
|
|
102
|
+
projects: z.array(ProjectInclude$inboundSchema).optional(),
|
|
41
103
|
owner: UserInclude$inboundSchema.optional(),
|
|
42
104
|
billing: z.lazy(() => UserTeamBilling$inboundSchema).optional(),
|
|
105
|
+
feature_flags: z.array(z.string()).optional(),
|
|
106
|
+
limits: z.lazy(() => UserTeamLimits$inboundSchema).optional(),
|
|
43
107
|
}).transform((v) => {
|
|
44
108
|
return remap$(v, {
|
|
45
109
|
"created_at": "createdAt",
|
|
46
110
|
"updated_at": "updatedAt",
|
|
111
|
+
"enforce_mfa": "enforceMfa",
|
|
112
|
+
"feature_flags": "featureFlags",
|
|
47
113
|
});
|
|
48
114
|
});
|
|
49
115
|
/** @internal */
|
|
@@ -55,12 +121,20 @@ export const UserTeamAttributes$outboundSchema = z.object({
|
|
|
55
121
|
currency: z.string().optional(),
|
|
56
122
|
createdAt: z.string().optional(),
|
|
57
123
|
updatedAt: z.string().optional(),
|
|
124
|
+
status: z.nullable(z.string()).optional(),
|
|
125
|
+
enforceMfa: z.boolean().optional(),
|
|
126
|
+
users: z.array(UserInclude$outboundSchema).optional(),
|
|
127
|
+
projects: z.array(ProjectInclude$outboundSchema).optional(),
|
|
58
128
|
owner: UserInclude$outboundSchema.optional(),
|
|
59
129
|
billing: z.lazy(() => UserTeamBilling$outboundSchema).optional(),
|
|
130
|
+
featureFlags: z.array(z.string()).optional(),
|
|
131
|
+
limits: z.lazy(() => UserTeamLimits$outboundSchema).optional(),
|
|
60
132
|
}).transform((v) => {
|
|
61
133
|
return remap$(v, {
|
|
62
134
|
createdAt: "created_at",
|
|
63
135
|
updatedAt: "updated_at",
|
|
136
|
+
enforceMfa: "enforce_mfa",
|
|
137
|
+
featureFlags: "feature_flags",
|
|
64
138
|
});
|
|
65
139
|
});
|
|
66
140
|
export function userTeamAttributesToJSON(userTeamAttributes) {
|
|
@@ -72,11 +146,13 @@ export function userTeamAttributesFromJSON(jsonString) {
|
|
|
72
146
|
/** @internal */
|
|
73
147
|
export const UserTeam$inboundSchema = z.object({
|
|
74
148
|
id: z.string().optional(),
|
|
149
|
+
type: UserTeamType$inboundSchema.optional(),
|
|
75
150
|
attributes: z.lazy(() => UserTeamAttributes$inboundSchema).optional(),
|
|
76
151
|
});
|
|
77
152
|
/** @internal */
|
|
78
153
|
export const UserTeam$outboundSchema = z.object({
|
|
79
154
|
id: z.string().optional(),
|
|
155
|
+
type: UserTeamType$outboundSchema.optional(),
|
|
80
156
|
attributes: z.lazy(() => UserTeamAttributes$outboundSchema).optional(),
|
|
81
157
|
});
|
|
82
158
|
export function userTeamToJSON(userTeam) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userteam.js","sourceRoot":"","sources":["../../../src/models/userteam.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"userteam.js","sourceRoot":"","sources":["../../../src/models/userteam.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,OAAO,EAEL,4BAA4B,EAE5B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;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AC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -75,17 +75,25 @@ export type VirtualMachineAttributesOperatingSystem = {
|
|
|
75
75
|
*/
|
|
76
76
|
distro?: VirtualMachineAttributesDistro | undefined;
|
|
77
77
|
};
|
|
78
|
+
export type VirtualMachineAttributesSshKey = {
|
|
79
|
+
id?: string | undefined;
|
|
80
|
+
name?: string | undefined;
|
|
81
|
+
fingerprint?: string | undefined;
|
|
82
|
+
publicKey?: string | undefined;
|
|
83
|
+
createdAt?: string | undefined;
|
|
84
|
+
updatedAt?: string | undefined;
|
|
85
|
+
};
|
|
78
86
|
/**
|
|
79
87
|
* SSH credentials for connecting to the virtual machine. Only available when the VM is running. Opt-in extra field: request via `extra_fields[virtual_machines]=credentials`.
|
|
80
88
|
*/
|
|
81
89
|
export type VirtualMachineAttributesCredentials = {
|
|
82
90
|
/**
|
|
83
|
-
* The SSH username for the VM, determined by the operating system (e.g., ubuntu, centos, ec2-user). Defaults to ubuntu if not specified by the OS.
|
|
91
|
+
* The SSH username for the VM, determined by the operating system (e.g., ubuntu, centos, ec2-user). Defaults to ubuntu if not specified by the OS. Returns null when the VM is not running.
|
|
84
92
|
*/
|
|
85
|
-
username?: string | undefined;
|
|
86
|
-
host?: string | undefined;
|
|
87
|
-
password?: string | undefined;
|
|
88
|
-
sshKeys?: Array<
|
|
93
|
+
username?: string | null | undefined;
|
|
94
|
+
host?: string | null | undefined;
|
|
95
|
+
password?: string | null | undefined;
|
|
96
|
+
sshKeys?: Array<VirtualMachineAttributesSshKey> | null | undefined;
|
|
89
97
|
};
|
|
90
98
|
export type VirtualMachineAttributesPlan = {
|
|
91
99
|
id?: string | undefined;
|
|
@@ -186,13 +194,28 @@ export declare const VirtualMachineAttributesOperatingSystem$outboundSchema: z.Z
|
|
|
186
194
|
export declare function virtualMachineAttributesOperatingSystemToJSON(virtualMachineAttributesOperatingSystem: VirtualMachineAttributesOperatingSystem): string;
|
|
187
195
|
export declare function virtualMachineAttributesOperatingSystemFromJSON(jsonString: string): SafeParseResult<VirtualMachineAttributesOperatingSystem, SDKValidationError>;
|
|
188
196
|
/** @internal */
|
|
197
|
+
export declare const VirtualMachineAttributesSshKey$inboundSchema: z.ZodType<VirtualMachineAttributesSshKey, z.ZodTypeDef, unknown>;
|
|
198
|
+
/** @internal */
|
|
199
|
+
export type VirtualMachineAttributesSshKey$Outbound = {
|
|
200
|
+
id?: string | undefined;
|
|
201
|
+
name?: string | undefined;
|
|
202
|
+
fingerprint?: string | undefined;
|
|
203
|
+
public_key?: string | undefined;
|
|
204
|
+
created_at?: string | undefined;
|
|
205
|
+
updated_at?: string | undefined;
|
|
206
|
+
};
|
|
207
|
+
/** @internal */
|
|
208
|
+
export declare const VirtualMachineAttributesSshKey$outboundSchema: z.ZodType<VirtualMachineAttributesSshKey$Outbound, z.ZodTypeDef, VirtualMachineAttributesSshKey>;
|
|
209
|
+
export declare function virtualMachineAttributesSshKeyToJSON(virtualMachineAttributesSshKey: VirtualMachineAttributesSshKey): string;
|
|
210
|
+
export declare function virtualMachineAttributesSshKeyFromJSON(jsonString: string): SafeParseResult<VirtualMachineAttributesSshKey, SDKValidationError>;
|
|
211
|
+
/** @internal */
|
|
189
212
|
export declare const VirtualMachineAttributesCredentials$inboundSchema: z.ZodType<VirtualMachineAttributesCredentials, z.ZodTypeDef, unknown>;
|
|
190
213
|
/** @internal */
|
|
191
214
|
export type VirtualMachineAttributesCredentials$Outbound = {
|
|
192
|
-
username?: string | undefined;
|
|
193
|
-
host?: string | undefined;
|
|
194
|
-
password?: string | undefined;
|
|
195
|
-
ssh_keys?: Array<
|
|
215
|
+
username?: string | null | undefined;
|
|
216
|
+
host?: string | null | undefined;
|
|
217
|
+
password?: string | null | undefined;
|
|
218
|
+
ssh_keys?: Array<VirtualMachineAttributesSshKey$Outbound> | null | undefined;
|
|
196
219
|
};
|
|
197
220
|
/** @internal */
|
|
198
221
|
export declare const VirtualMachineAttributesCredentials$outboundSchema: z.ZodType<VirtualMachineAttributesCredentials$Outbound, z.ZodTypeDef, VirtualMachineAttributesCredentials>;
|