latitudesh-typescript-sdk 0.8.6 → 0.8.7
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/README.md +12 -1
- package/bin/mcp-server.js +1386 -682
- package/bin/mcp-server.js.map +31 -16
- package/dist/commonjs/funcs/prefixesCreatePrefix.d.ts +18 -0
- package/dist/commonjs/funcs/prefixesCreatePrefix.d.ts.map +1 -0
- package/dist/commonjs/funcs/prefixesCreatePrefix.js +123 -0
- package/dist/commonjs/funcs/prefixesCreatePrefix.js.map +1 -0
- package/dist/commonjs/funcs/prefixesDestroyPrefix.d.ts +18 -0
- package/dist/commonjs/funcs/prefixesDestroyPrefix.d.ts.map +1 -0
- package/dist/commonjs/funcs/prefixesDestroyPrefix.js +127 -0
- package/dist/commonjs/funcs/prefixesDestroyPrefix.js.map +1 -0
- package/dist/commonjs/funcs/prefixesGetPrefix.d.ts +19 -0
- package/dist/commonjs/funcs/prefixesGetPrefix.d.ts.map +1 -0
- package/dist/commonjs/funcs/prefixesGetPrefix.js +129 -0
- package/dist/commonjs/funcs/prefixesGetPrefix.js.map +1 -0
- package/dist/commonjs/funcs/prefixesGetPrefixes.d.ts +19 -0
- package/dist/commonjs/funcs/prefixesGetPrefixes.d.ts.map +1 -0
- package/dist/commonjs/funcs/prefixesGetPrefixes.js +128 -0
- package/dist/commonjs/funcs/prefixesGetPrefixes.js.map +1 -0
- package/dist/commonjs/funcs/serversReinstall.js +1 -1
- package/dist/commonjs/funcs/serversReinstall.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +9 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/prefixesCreatePrefix.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/prefixesCreatePrefix.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/prefixesCreatePrefix.js +64 -0
- package/dist/commonjs/mcp-server/tools/prefixesCreatePrefix.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/prefixesDestroyPrefix.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/prefixesDestroyPrefix.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/prefixesDestroyPrefix.js +63 -0
- package/dist/commonjs/mcp-server/tools/prefixesDestroyPrefix.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/prefixesGetPrefix.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/prefixesGetPrefix.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/prefixesGetPrefix.js +64 -0
- package/dist/commonjs/mcp-server/tools/prefixesGetPrefix.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/prefixesGetPrefixes.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/prefixesGetPrefixes.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/prefixesGetPrefixes.js +64 -0
- package/dist/commonjs/mcp-server/tools/prefixesGetPrefixes.js.map +1 -0
- package/dist/commonjs/models/createprefix.d.ts +83 -0
- package/dist/commonjs/models/createprefix.d.ts.map +1 -0
- package/dist/commonjs/models/createprefix.js +124 -0
- package/dist/commonjs/models/createprefix.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +4 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +4 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/objectstoragedata.d.ts +24 -10
- package/dist/commonjs/models/objectstoragedata.d.ts.map +1 -1
- package/dist/commonjs/models/objectstoragedata.js +27 -9
- package/dist/commonjs/models/objectstoragedata.js.map +1 -1
- package/dist/commonjs/models/operations/createserverreinstall.d.ts +5 -0
- package/dist/commonjs/models/operations/createserverreinstall.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createserverreinstall.js +4 -0
- package/dist/commonjs/models/operations/createserverreinstall.js.map +1 -1
- package/dist/commonjs/models/operations/destroyprefix.d.ts +17 -0
- package/dist/commonjs/models/operations/destroyprefix.d.ts.map +1 -0
- package/dist/commonjs/models/operations/destroyprefix.js +58 -0
- package/dist/commonjs/models/operations/destroyprefix.js.map +1 -0
- package/dist/commonjs/models/operations/getprefix.d.ts +17 -0
- package/dist/commonjs/models/operations/getprefix.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getprefix.js +58 -0
- package/dist/commonjs/models/operations/getprefix.js.map +1 -0
- package/dist/commonjs/models/operations/getprefixes.d.ts +19 -0
- package/dist/commonjs/models/operations/getprefixes.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getprefixes.js +71 -0
- package/dist/commonjs/models/operations/getprefixes.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/prefix.d.ts +18 -0
- package/dist/commonjs/models/prefix.d.ts.map +1 -0
- package/dist/commonjs/models/prefix.js +60 -0
- package/dist/commonjs/models/prefix.js.map +1 -0
- package/dist/commonjs/models/prefixdata.d.ts +143 -0
- package/dist/commonjs/models/prefixdata.d.ts.map +1 -0
- package/dist/commonjs/models/prefixdata.js +190 -0
- package/dist/commonjs/models/prefixdata.js.map +1 -0
- package/dist/commonjs/models/prefixes.d.ts +29 -0
- package/dist/commonjs/models/prefixes.d.ts.map +1 -0
- package/dist/commonjs/models/prefixes.js +73 -0
- package/dist/commonjs/models/prefixes.js.map +1 -0
- package/dist/commonjs/models/team.d.ts +2 -0
- package/dist/commonjs/models/team.d.ts.map +1 -1
- package/dist/commonjs/models/team.js +2 -0
- package/dist/commonjs/models/team.js.map +1 -1
- package/dist/commonjs/models/teaminclude.d.ts +2 -0
- package/dist/commonjs/models/teaminclude.d.ts.map +1 -1
- package/dist/commonjs/models/teaminclude.js +2 -0
- package/dist/commonjs/models/teaminclude.js.map +1 -1
- package/dist/commonjs/models/userteam.d.ts +2 -0
- package/dist/commonjs/models/userteam.d.ts.map +1 -1
- package/dist/commonjs/models/userteam.js +2 -0
- package/dist/commonjs/models/userteam.js.map +1 -1
- package/dist/commonjs/models/userupdate.d.ts +4 -4
- package/dist/commonjs/models/userupdate.d.ts.map +1 -1
- package/dist/commonjs/models/userupdate.js +4 -4
- package/dist/commonjs/models/userupdate.js.map +1 -1
- package/dist/commonjs/models/virtualmachineplans.d.ts +8 -8
- package/dist/commonjs/models/virtualmachineplans.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineplans.js +11 -12
- package/dist/commonjs/models/virtualmachineplans.js.map +1 -1
- package/dist/commonjs/sdk/prefixes.d.ts +34 -0
- package/dist/commonjs/sdk/prefixes.d.ts.map +1 -0
- package/dist/commonjs/sdk/prefixes.js +52 -0
- package/dist/commonjs/sdk/prefixes.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/prefixesCreatePrefix.d.ts +18 -0
- package/dist/esm/funcs/prefixesCreatePrefix.d.ts.map +1 -0
- package/dist/esm/funcs/prefixesCreatePrefix.js +87 -0
- package/dist/esm/funcs/prefixesCreatePrefix.js.map +1 -0
- package/dist/esm/funcs/prefixesDestroyPrefix.d.ts +18 -0
- package/dist/esm/funcs/prefixesDestroyPrefix.d.ts.map +1 -0
- package/dist/esm/funcs/prefixesDestroyPrefix.js +91 -0
- package/dist/esm/funcs/prefixesDestroyPrefix.js.map +1 -0
- package/dist/esm/funcs/prefixesGetPrefix.d.ts +19 -0
- package/dist/esm/funcs/prefixesGetPrefix.d.ts.map +1 -0
- package/dist/esm/funcs/prefixesGetPrefix.js +93 -0
- package/dist/esm/funcs/prefixesGetPrefix.js.map +1 -0
- package/dist/esm/funcs/prefixesGetPrefixes.d.ts +19 -0
- package/dist/esm/funcs/prefixesGetPrefixes.d.ts.map +1 -0
- package/dist/esm/funcs/prefixesGetPrefixes.js +92 -0
- package/dist/esm/funcs/prefixesGetPrefixes.js.map +1 -0
- package/dist/esm/funcs/serversReinstall.js +1 -1
- package/dist/esm/funcs/serversReinstall.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.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +9 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/prefixesCreatePrefix.d.ts +8 -0
- package/dist/esm/mcp-server/tools/prefixesCreatePrefix.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/prefixesCreatePrefix.js +28 -0
- package/dist/esm/mcp-server/tools/prefixesCreatePrefix.js.map +1 -0
- package/dist/esm/mcp-server/tools/prefixesDestroyPrefix.d.ts +8 -0
- package/dist/esm/mcp-server/tools/prefixesDestroyPrefix.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/prefixesDestroyPrefix.js +27 -0
- package/dist/esm/mcp-server/tools/prefixesDestroyPrefix.js.map +1 -0
- package/dist/esm/mcp-server/tools/prefixesGetPrefix.d.ts +8 -0
- package/dist/esm/mcp-server/tools/prefixesGetPrefix.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/prefixesGetPrefix.js +28 -0
- package/dist/esm/mcp-server/tools/prefixesGetPrefix.js.map +1 -0
- package/dist/esm/mcp-server/tools/prefixesGetPrefixes.d.ts +8 -0
- package/dist/esm/mcp-server/tools/prefixesGetPrefixes.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/prefixesGetPrefixes.js +28 -0
- package/dist/esm/mcp-server/tools/prefixesGetPrefixes.js.map +1 -0
- package/dist/esm/models/createprefix.d.ts +83 -0
- package/dist/esm/models/createprefix.d.ts.map +1 -0
- package/dist/esm/models/createprefix.js +82 -0
- package/dist/esm/models/createprefix.js.map +1 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/objectstoragedata.d.ts +24 -10
- package/dist/esm/models/objectstoragedata.d.ts.map +1 -1
- package/dist/esm/models/objectstoragedata.js +24 -8
- package/dist/esm/models/objectstoragedata.js.map +1 -1
- package/dist/esm/models/operations/createserverreinstall.d.ts +5 -0
- package/dist/esm/models/operations/createserverreinstall.d.ts.map +1 -1
- package/dist/esm/models/operations/createserverreinstall.js +4 -0
- package/dist/esm/models/operations/createserverreinstall.js.map +1 -1
- package/dist/esm/models/operations/destroyprefix.d.ts +17 -0
- package/dist/esm/models/operations/destroyprefix.d.ts.map +1 -0
- package/dist/esm/models/operations/destroyprefix.js +20 -0
- package/dist/esm/models/operations/destroyprefix.js.map +1 -0
- package/dist/esm/models/operations/getprefix.d.ts +17 -0
- package/dist/esm/models/operations/getprefix.d.ts.map +1 -0
- package/dist/esm/models/operations/getprefix.js +20 -0
- package/dist/esm/models/operations/getprefix.js.map +1 -0
- package/dist/esm/models/operations/getprefixes.d.ts +19 -0
- package/dist/esm/models/operations/getprefixes.d.ts.map +1 -0
- package/dist/esm/models/operations/getprefixes.js +33 -0
- package/dist/esm/models/operations/getprefixes.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/prefix.d.ts +18 -0
- package/dist/esm/models/prefix.d.ts.map +1 -0
- package/dist/esm/models/prefix.js +22 -0
- package/dist/esm/models/prefix.js.map +1 -0
- package/dist/esm/models/prefixdata.d.ts +143 -0
- package/dist/esm/models/prefixdata.d.ts.map +1 -0
- package/dist/esm/models/prefixdata.js +144 -0
- package/dist/esm/models/prefixdata.js.map +1 -0
- package/dist/esm/models/prefixes.d.ts +29 -0
- package/dist/esm/models/prefixes.d.ts.map +1 -0
- package/dist/esm/models/prefixes.js +33 -0
- package/dist/esm/models/prefixes.js.map +1 -0
- package/dist/esm/models/team.d.ts +2 -0
- package/dist/esm/models/team.d.ts.map +1 -1
- package/dist/esm/models/team.js +2 -0
- package/dist/esm/models/team.js.map +1 -1
- package/dist/esm/models/teaminclude.d.ts +2 -0
- package/dist/esm/models/teaminclude.d.ts.map +1 -1
- package/dist/esm/models/teaminclude.js +2 -0
- package/dist/esm/models/teaminclude.js.map +1 -1
- package/dist/esm/models/userteam.d.ts +2 -0
- package/dist/esm/models/userteam.d.ts.map +1 -1
- package/dist/esm/models/userteam.js +2 -0
- package/dist/esm/models/userteam.js.map +1 -1
- package/dist/esm/models/userupdate.d.ts +4 -4
- package/dist/esm/models/userupdate.d.ts.map +1 -1
- package/dist/esm/models/userupdate.js +4 -4
- package/dist/esm/models/userupdate.js.map +1 -1
- package/dist/esm/models/virtualmachineplans.d.ts +8 -8
- package/dist/esm/models/virtualmachineplans.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineplans.js +8 -9
- package/dist/esm/models/virtualmachineplans.js.map +1 -1
- package/dist/esm/sdk/prefixes.d.ts +34 -0
- package/dist/esm/sdk/prefixes.d.ts.map +1 -0
- package/dist/esm/sdk/prefixes.js +48 -0
- package/dist/esm/sdk/prefixes.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/prefixesCreatePrefix.ts +175 -0
- package/src/funcs/prefixesDestroyPrefix.ts +179 -0
- package/src/funcs/prefixesGetPrefix.ts +181 -0
- package/src/funcs/prefixesGetPrefixes.ts +182 -0
- package/src/funcs/serversReinstall.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/prefixesCreatePrefix.ts +37 -0
- package/src/mcp-server/tools/prefixesDestroyPrefix.ts +35 -0
- package/src/mcp-server/tools/prefixesGetPrefix.ts +37 -0
- package/src/mcp-server/tools/prefixesGetPrefixes.ts +37 -0
- package/src/models/createprefix.ts +200 -0
- package/src/models/index.ts +4 -0
- package/src/models/objectstoragedata.ts +70 -18
- package/src/models/operations/createserverreinstall.ts +9 -0
- package/src/models/operations/destroyprefix.ts +51 -0
- package/src/models/operations/getprefix.ts +51 -0
- package/src/models/operations/getprefixes.ts +66 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/prefix.ts +50 -0
- package/src/models/prefixdata.ts +354 -0
- package/src/models/prefixes.ts +88 -0
- package/src/models/team.ts +4 -0
- package/src/models/teaminclude.ts +4 -0
- package/src/models/userteam.ts +4 -0
- package/src/models/userupdate.ts +8 -8
- package/src/models/virtualmachineplans.ts +32 -22
- package/src/sdk/prefixes.ts +82 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
PrefixData,
|
|
11
|
+
PrefixData$inboundSchema,
|
|
12
|
+
PrefixData$Outbound,
|
|
13
|
+
PrefixData$outboundSchema,
|
|
14
|
+
} from "./prefixdata.js";
|
|
15
|
+
|
|
16
|
+
export type Prefix = {
|
|
17
|
+
data?: PrefixData | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const Prefix$inboundSchema: z.ZodType<Prefix, z.ZodTypeDef, unknown> = z
|
|
22
|
+
.object({
|
|
23
|
+
data: PrefixData$inboundSchema.optional(),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type Prefix$Outbound = {
|
|
27
|
+
data?: PrefixData$Outbound | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const Prefix$outboundSchema: z.ZodType<
|
|
32
|
+
Prefix$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
Prefix
|
|
35
|
+
> = z.object({
|
|
36
|
+
data: PrefixData$outboundSchema.optional(),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function prefixToJSON(prefix: Prefix): string {
|
|
40
|
+
return JSON.stringify(Prefix$outboundSchema.parse(prefix));
|
|
41
|
+
}
|
|
42
|
+
export function prefixFromJSON(
|
|
43
|
+
jsonString: string,
|
|
44
|
+
): SafeParseResult<Prefix, SDKValidationError> {
|
|
45
|
+
return safeParse(
|
|
46
|
+
jsonString,
|
|
47
|
+
(x) => Prefix$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'Prefix' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const PrefixDataType = {
|
|
13
|
+
Prefixes: "prefixes",
|
|
14
|
+
} as const;
|
|
15
|
+
export type PrefixDataType = ClosedEnum<typeof PrefixDataType>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* IPv4 prefix length. Determines how many servers the network can host.
|
|
19
|
+
*/
|
|
20
|
+
export const PrefixDataSize = {
|
|
21
|
+
TwentySix: 26,
|
|
22
|
+
TwentySeven: 27,
|
|
23
|
+
TwentyEight: 28,
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* IPv4 prefix length. Determines how many servers the network can host.
|
|
27
|
+
*/
|
|
28
|
+
export type PrefixDataSize = ClosedEnum<typeof PrefixDataSize>;
|
|
29
|
+
|
|
30
|
+
export type PrefixDataProject = {
|
|
31
|
+
id?: string | undefined;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
slug?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type PrefixDataLocation = {
|
|
37
|
+
id?: string | undefined;
|
|
38
|
+
name?: string | undefined;
|
|
39
|
+
slug?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type PrefixDataRegion = {
|
|
43
|
+
id?: string | undefined;
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
location?: PrefixDataLocation | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type PrefixDataAttributes = {
|
|
49
|
+
/**
|
|
50
|
+
* The IPv4 network in CIDR notation (e.g., "203.0.113.0/27")
|
|
51
|
+
*/
|
|
52
|
+
ipv4?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The paired IPv6 /64 in CIDR notation (e.g., "2001:db8:1234::/64")
|
|
55
|
+
*/
|
|
56
|
+
ipv6?: string | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* IPv4 prefix length. Determines how many servers the network can host.
|
|
59
|
+
*/
|
|
60
|
+
size?: PrefixDataSize | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* True once a server has been added to the network and the network is ready to use.
|
|
63
|
+
*/
|
|
64
|
+
activated?: boolean | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Servers this network can host
|
|
67
|
+
*/
|
|
68
|
+
capacity?: number | undefined;
|
|
69
|
+
ipsUsed?: number | undefined;
|
|
70
|
+
ipsFree?: number | undefined;
|
|
71
|
+
createdAt?: Date | undefined;
|
|
72
|
+
project?: PrefixDataProject | null | undefined;
|
|
73
|
+
region?: PrefixDataRegion | null | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export type PrefixData = {
|
|
77
|
+
id?: string | undefined;
|
|
78
|
+
type?: PrefixDataType | undefined;
|
|
79
|
+
attributes?: PrefixDataAttributes | undefined;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const PrefixDataType$inboundSchema: z.ZodNativeEnum<
|
|
84
|
+
typeof PrefixDataType
|
|
85
|
+
> = z.nativeEnum(PrefixDataType);
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const PrefixDataType$outboundSchema: z.ZodNativeEnum<
|
|
88
|
+
typeof PrefixDataType
|
|
89
|
+
> = PrefixDataType$inboundSchema;
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const PrefixDataSize$inboundSchema: z.ZodNativeEnum<
|
|
93
|
+
typeof PrefixDataSize
|
|
94
|
+
> = z.nativeEnum(PrefixDataSize);
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const PrefixDataSize$outboundSchema: z.ZodNativeEnum<
|
|
97
|
+
typeof PrefixDataSize
|
|
98
|
+
> = PrefixDataSize$inboundSchema;
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const PrefixDataProject$inboundSchema: z.ZodType<
|
|
102
|
+
PrefixDataProject,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
unknown
|
|
105
|
+
> = z.object({
|
|
106
|
+
id: z.string().optional(),
|
|
107
|
+
name: z.string().optional(),
|
|
108
|
+
slug: z.string().optional(),
|
|
109
|
+
});
|
|
110
|
+
/** @internal */
|
|
111
|
+
export type PrefixDataProject$Outbound = {
|
|
112
|
+
id?: string | undefined;
|
|
113
|
+
name?: string | undefined;
|
|
114
|
+
slug?: string | undefined;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const PrefixDataProject$outboundSchema: z.ZodType<
|
|
119
|
+
PrefixDataProject$Outbound,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
PrefixDataProject
|
|
122
|
+
> = z.object({
|
|
123
|
+
id: z.string().optional(),
|
|
124
|
+
name: z.string().optional(),
|
|
125
|
+
slug: z.string().optional(),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function prefixDataProjectToJSON(
|
|
129
|
+
prefixDataProject: PrefixDataProject,
|
|
130
|
+
): string {
|
|
131
|
+
return JSON.stringify(
|
|
132
|
+
PrefixDataProject$outboundSchema.parse(prefixDataProject),
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
export function prefixDataProjectFromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<PrefixDataProject, SDKValidationError> {
|
|
138
|
+
return safeParse(
|
|
139
|
+
jsonString,
|
|
140
|
+
(x) => PrefixDataProject$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
+
`Failed to parse 'PrefixDataProject' from JSON`,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const PrefixDataLocation$inboundSchema: z.ZodType<
|
|
147
|
+
PrefixDataLocation,
|
|
148
|
+
z.ZodTypeDef,
|
|
149
|
+
unknown
|
|
150
|
+
> = z.object({
|
|
151
|
+
id: z.string().optional(),
|
|
152
|
+
name: z.string().optional(),
|
|
153
|
+
slug: z.string().optional(),
|
|
154
|
+
});
|
|
155
|
+
/** @internal */
|
|
156
|
+
export type PrefixDataLocation$Outbound = {
|
|
157
|
+
id?: string | undefined;
|
|
158
|
+
name?: string | undefined;
|
|
159
|
+
slug?: string | undefined;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/** @internal */
|
|
163
|
+
export const PrefixDataLocation$outboundSchema: z.ZodType<
|
|
164
|
+
PrefixDataLocation$Outbound,
|
|
165
|
+
z.ZodTypeDef,
|
|
166
|
+
PrefixDataLocation
|
|
167
|
+
> = z.object({
|
|
168
|
+
id: z.string().optional(),
|
|
169
|
+
name: z.string().optional(),
|
|
170
|
+
slug: z.string().optional(),
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
export function prefixDataLocationToJSON(
|
|
174
|
+
prefixDataLocation: PrefixDataLocation,
|
|
175
|
+
): string {
|
|
176
|
+
return JSON.stringify(
|
|
177
|
+
PrefixDataLocation$outboundSchema.parse(prefixDataLocation),
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
export function prefixDataLocationFromJSON(
|
|
181
|
+
jsonString: string,
|
|
182
|
+
): SafeParseResult<PrefixDataLocation, SDKValidationError> {
|
|
183
|
+
return safeParse(
|
|
184
|
+
jsonString,
|
|
185
|
+
(x) => PrefixDataLocation$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
+
`Failed to parse 'PrefixDataLocation' from JSON`,
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** @internal */
|
|
191
|
+
export const PrefixDataRegion$inboundSchema: z.ZodType<
|
|
192
|
+
PrefixDataRegion,
|
|
193
|
+
z.ZodTypeDef,
|
|
194
|
+
unknown
|
|
195
|
+
> = z.object({
|
|
196
|
+
id: z.string().optional(),
|
|
197
|
+
name: z.string().optional(),
|
|
198
|
+
location: z.lazy(() => PrefixDataLocation$inboundSchema).optional(),
|
|
199
|
+
});
|
|
200
|
+
/** @internal */
|
|
201
|
+
export type PrefixDataRegion$Outbound = {
|
|
202
|
+
id?: string | undefined;
|
|
203
|
+
name?: string | undefined;
|
|
204
|
+
location?: PrefixDataLocation$Outbound | undefined;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export const PrefixDataRegion$outboundSchema: z.ZodType<
|
|
209
|
+
PrefixDataRegion$Outbound,
|
|
210
|
+
z.ZodTypeDef,
|
|
211
|
+
PrefixDataRegion
|
|
212
|
+
> = z.object({
|
|
213
|
+
id: z.string().optional(),
|
|
214
|
+
name: z.string().optional(),
|
|
215
|
+
location: z.lazy(() => PrefixDataLocation$outboundSchema).optional(),
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
export function prefixDataRegionToJSON(
|
|
219
|
+
prefixDataRegion: PrefixDataRegion,
|
|
220
|
+
): string {
|
|
221
|
+
return JSON.stringify(
|
|
222
|
+
PrefixDataRegion$outboundSchema.parse(prefixDataRegion),
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
export function prefixDataRegionFromJSON(
|
|
226
|
+
jsonString: string,
|
|
227
|
+
): SafeParseResult<PrefixDataRegion, SDKValidationError> {
|
|
228
|
+
return safeParse(
|
|
229
|
+
jsonString,
|
|
230
|
+
(x) => PrefixDataRegion$inboundSchema.parse(JSON.parse(x)),
|
|
231
|
+
`Failed to parse 'PrefixDataRegion' from JSON`,
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/** @internal */
|
|
236
|
+
export const PrefixDataAttributes$inboundSchema: z.ZodType<
|
|
237
|
+
PrefixDataAttributes,
|
|
238
|
+
z.ZodTypeDef,
|
|
239
|
+
unknown
|
|
240
|
+
> = z.object({
|
|
241
|
+
ipv4: z.string().optional(),
|
|
242
|
+
ipv6: z.nullable(z.string()).optional(),
|
|
243
|
+
size: PrefixDataSize$inboundSchema.optional(),
|
|
244
|
+
activated: z.boolean().optional(),
|
|
245
|
+
capacity: z.number().int().optional(),
|
|
246
|
+
ips_used: z.number().int().optional(),
|
|
247
|
+
ips_free: z.number().int().optional(),
|
|
248
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
249
|
+
.optional(),
|
|
250
|
+
project: z.nullable(z.lazy(() => PrefixDataProject$inboundSchema)).optional(),
|
|
251
|
+
region: z.nullable(z.lazy(() => PrefixDataRegion$inboundSchema)).optional(),
|
|
252
|
+
}).transform((v) => {
|
|
253
|
+
return remap$(v, {
|
|
254
|
+
"ips_used": "ipsUsed",
|
|
255
|
+
"ips_free": "ipsFree",
|
|
256
|
+
"created_at": "createdAt",
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
/** @internal */
|
|
260
|
+
export type PrefixDataAttributes$Outbound = {
|
|
261
|
+
ipv4?: string | undefined;
|
|
262
|
+
ipv6?: string | null | undefined;
|
|
263
|
+
size?: number | undefined;
|
|
264
|
+
activated?: boolean | undefined;
|
|
265
|
+
capacity?: number | undefined;
|
|
266
|
+
ips_used?: number | undefined;
|
|
267
|
+
ips_free?: number | undefined;
|
|
268
|
+
created_at?: string | undefined;
|
|
269
|
+
project?: PrefixDataProject$Outbound | null | undefined;
|
|
270
|
+
region?: PrefixDataRegion$Outbound | null | undefined;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/** @internal */
|
|
274
|
+
export const PrefixDataAttributes$outboundSchema: z.ZodType<
|
|
275
|
+
PrefixDataAttributes$Outbound,
|
|
276
|
+
z.ZodTypeDef,
|
|
277
|
+
PrefixDataAttributes
|
|
278
|
+
> = z.object({
|
|
279
|
+
ipv4: z.string().optional(),
|
|
280
|
+
ipv6: z.nullable(z.string()).optional(),
|
|
281
|
+
size: PrefixDataSize$outboundSchema.optional(),
|
|
282
|
+
activated: z.boolean().optional(),
|
|
283
|
+
capacity: z.number().int().optional(),
|
|
284
|
+
ipsUsed: z.number().int().optional(),
|
|
285
|
+
ipsFree: z.number().int().optional(),
|
|
286
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
287
|
+
project: z.nullable(z.lazy(() => PrefixDataProject$outboundSchema))
|
|
288
|
+
.optional(),
|
|
289
|
+
region: z.nullable(z.lazy(() => PrefixDataRegion$outboundSchema)).optional(),
|
|
290
|
+
}).transform((v) => {
|
|
291
|
+
return remap$(v, {
|
|
292
|
+
ipsUsed: "ips_used",
|
|
293
|
+
ipsFree: "ips_free",
|
|
294
|
+
createdAt: "created_at",
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
export function prefixDataAttributesToJSON(
|
|
299
|
+
prefixDataAttributes: PrefixDataAttributes,
|
|
300
|
+
): string {
|
|
301
|
+
return JSON.stringify(
|
|
302
|
+
PrefixDataAttributes$outboundSchema.parse(prefixDataAttributes),
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
export function prefixDataAttributesFromJSON(
|
|
306
|
+
jsonString: string,
|
|
307
|
+
): SafeParseResult<PrefixDataAttributes, SDKValidationError> {
|
|
308
|
+
return safeParse(
|
|
309
|
+
jsonString,
|
|
310
|
+
(x) => PrefixDataAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
311
|
+
`Failed to parse 'PrefixDataAttributes' from JSON`,
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const PrefixData$inboundSchema: z.ZodType<
|
|
317
|
+
PrefixData,
|
|
318
|
+
z.ZodTypeDef,
|
|
319
|
+
unknown
|
|
320
|
+
> = z.object({
|
|
321
|
+
id: z.string().optional(),
|
|
322
|
+
type: PrefixDataType$inboundSchema.optional(),
|
|
323
|
+
attributes: z.lazy(() => PrefixDataAttributes$inboundSchema).optional(),
|
|
324
|
+
});
|
|
325
|
+
/** @internal */
|
|
326
|
+
export type PrefixData$Outbound = {
|
|
327
|
+
id?: string | undefined;
|
|
328
|
+
type?: string | undefined;
|
|
329
|
+
attributes?: PrefixDataAttributes$Outbound | undefined;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
/** @internal */
|
|
333
|
+
export const PrefixData$outboundSchema: z.ZodType<
|
|
334
|
+
PrefixData$Outbound,
|
|
335
|
+
z.ZodTypeDef,
|
|
336
|
+
PrefixData
|
|
337
|
+
> = z.object({
|
|
338
|
+
id: z.string().optional(),
|
|
339
|
+
type: PrefixDataType$outboundSchema.optional(),
|
|
340
|
+
attributes: z.lazy(() => PrefixDataAttributes$outboundSchema).optional(),
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
export function prefixDataToJSON(prefixData: PrefixData): string {
|
|
344
|
+
return JSON.stringify(PrefixData$outboundSchema.parse(prefixData));
|
|
345
|
+
}
|
|
346
|
+
export function prefixDataFromJSON(
|
|
347
|
+
jsonString: string,
|
|
348
|
+
): SafeParseResult<PrefixData, SDKValidationError> {
|
|
349
|
+
return safeParse(
|
|
350
|
+
jsonString,
|
|
351
|
+
(x) => PrefixData$inboundSchema.parse(JSON.parse(x)),
|
|
352
|
+
`Failed to parse 'PrefixData' from JSON`,
|
|
353
|
+
);
|
|
354
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
PrefixData,
|
|
11
|
+
PrefixData$inboundSchema,
|
|
12
|
+
PrefixData$Outbound,
|
|
13
|
+
PrefixData$outboundSchema,
|
|
14
|
+
} from "./prefixdata.js";
|
|
15
|
+
|
|
16
|
+
export type PrefixesMeta = {};
|
|
17
|
+
|
|
18
|
+
export type Prefixes = {
|
|
19
|
+
data?: Array<PrefixData> | undefined;
|
|
20
|
+
meta?: PrefixesMeta | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const PrefixesMeta$inboundSchema: z.ZodType<
|
|
25
|
+
PrefixesMeta,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type PrefixesMeta$Outbound = {};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const PrefixesMeta$outboundSchema: z.ZodType<
|
|
34
|
+
PrefixesMeta$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
PrefixesMeta
|
|
37
|
+
> = z.object({});
|
|
38
|
+
|
|
39
|
+
export function prefixesMetaToJSON(prefixesMeta: PrefixesMeta): string {
|
|
40
|
+
return JSON.stringify(PrefixesMeta$outboundSchema.parse(prefixesMeta));
|
|
41
|
+
}
|
|
42
|
+
export function prefixesMetaFromJSON(
|
|
43
|
+
jsonString: string,
|
|
44
|
+
): SafeParseResult<PrefixesMeta, SDKValidationError> {
|
|
45
|
+
return safeParse(
|
|
46
|
+
jsonString,
|
|
47
|
+
(x) => PrefixesMeta$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'PrefixesMeta' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const Prefixes$inboundSchema: z.ZodType<
|
|
54
|
+
Prefixes,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
data: z.array(PrefixData$inboundSchema).optional(),
|
|
59
|
+
meta: z.lazy(() => PrefixesMeta$inboundSchema).optional(),
|
|
60
|
+
});
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type Prefixes$Outbound = {
|
|
63
|
+
data?: Array<PrefixData$Outbound> | undefined;
|
|
64
|
+
meta?: PrefixesMeta$Outbound | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const Prefixes$outboundSchema: z.ZodType<
|
|
69
|
+
Prefixes$Outbound,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
Prefixes
|
|
72
|
+
> = z.object({
|
|
73
|
+
data: z.array(PrefixData$outboundSchema).optional(),
|
|
74
|
+
meta: z.lazy(() => PrefixesMeta$outboundSchema).optional(),
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export function prefixesToJSON(prefixes: Prefixes): string {
|
|
78
|
+
return JSON.stringify(Prefixes$outboundSchema.parse(prefixes));
|
|
79
|
+
}
|
|
80
|
+
export function prefixesFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<Prefixes, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => Prefixes$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'Prefixes' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
package/src/models/team.ts
CHANGED
|
@@ -31,6 +31,7 @@ export type TeamLimits = {
|
|
|
31
31
|
virtualMachine?: number | null | undefined;
|
|
32
32
|
virtualMachineGpu?: number | null | undefined;
|
|
33
33
|
elasticIp?: number | null | undefined;
|
|
34
|
+
prefix?: number | null | undefined;
|
|
34
35
|
virtualNetwork?: number | null | undefined;
|
|
35
36
|
database?: number | null | undefined;
|
|
36
37
|
filesystem?: number | null | undefined;
|
|
@@ -116,6 +117,7 @@ export const TeamLimits$inboundSchema: z.ZodType<
|
|
|
116
117
|
virtual_machine: z.nullable(z.number().int()).optional(),
|
|
117
118
|
virtual_machine_gpu: z.nullable(z.number().int()).optional(),
|
|
118
119
|
elastic_ip: z.nullable(z.number().int()).optional(),
|
|
120
|
+
prefix: z.nullable(z.number().int()).optional(),
|
|
119
121
|
virtual_network: z.nullable(z.number().int()).optional(),
|
|
120
122
|
database: z.nullable(z.number().int()).optional(),
|
|
121
123
|
filesystem: z.nullable(z.number().int()).optional(),
|
|
@@ -138,6 +140,7 @@ export type TeamLimits$Outbound = {
|
|
|
138
140
|
virtual_machine?: number | null | undefined;
|
|
139
141
|
virtual_machine_gpu?: number | null | undefined;
|
|
140
142
|
elastic_ip?: number | null | undefined;
|
|
143
|
+
prefix?: number | null | undefined;
|
|
141
144
|
virtual_network?: number | null | undefined;
|
|
142
145
|
database?: number | null | undefined;
|
|
143
146
|
filesystem?: number | null | undefined;
|
|
@@ -155,6 +158,7 @@ export const TeamLimits$outboundSchema: z.ZodType<
|
|
|
155
158
|
virtualMachine: z.nullable(z.number().int()).optional(),
|
|
156
159
|
virtualMachineGpu: z.nullable(z.number().int()).optional(),
|
|
157
160
|
elasticIp: z.nullable(z.number().int()).optional(),
|
|
161
|
+
prefix: z.nullable(z.number().int()).optional(),
|
|
158
162
|
virtualNetwork: z.nullable(z.number().int()).optional(),
|
|
159
163
|
database: z.nullable(z.number().int()).optional(),
|
|
160
164
|
filesystem: z.nullable(z.number().int()).optional(),
|
|
@@ -21,6 +21,7 @@ export type TeamIncludeLimits = {
|
|
|
21
21
|
virtualMachine?: number | null | undefined;
|
|
22
22
|
virtualMachineGpu?: number | null | undefined;
|
|
23
23
|
elasticIp?: number | null | undefined;
|
|
24
|
+
prefix?: number | null | undefined;
|
|
24
25
|
virtualNetwork?: number | null | undefined;
|
|
25
26
|
database?: number | null | undefined;
|
|
26
27
|
filesystem?: number | null | undefined;
|
|
@@ -102,6 +103,7 @@ export const TeamIncludeLimits$inboundSchema: z.ZodType<
|
|
|
102
103
|
virtual_machine: z.nullable(z.number().int()).optional(),
|
|
103
104
|
virtual_machine_gpu: z.nullable(z.number().int()).optional(),
|
|
104
105
|
elastic_ip: z.nullable(z.number().int()).optional(),
|
|
106
|
+
prefix: z.nullable(z.number().int()).optional(),
|
|
105
107
|
virtual_network: z.nullable(z.number().int()).optional(),
|
|
106
108
|
database: z.nullable(z.number().int()).optional(),
|
|
107
109
|
filesystem: z.nullable(z.number().int()).optional(),
|
|
@@ -124,6 +126,7 @@ export type TeamIncludeLimits$Outbound = {
|
|
|
124
126
|
virtual_machine?: number | null | undefined;
|
|
125
127
|
virtual_machine_gpu?: number | null | undefined;
|
|
126
128
|
elastic_ip?: number | null | undefined;
|
|
129
|
+
prefix?: number | null | undefined;
|
|
127
130
|
virtual_network?: number | null | undefined;
|
|
128
131
|
database?: number | null | undefined;
|
|
129
132
|
filesystem?: number | null | undefined;
|
|
@@ -141,6 +144,7 @@ export const TeamIncludeLimits$outboundSchema: z.ZodType<
|
|
|
141
144
|
virtualMachine: z.nullable(z.number().int()).optional(),
|
|
142
145
|
virtualMachineGpu: z.nullable(z.number().int()).optional(),
|
|
143
146
|
elasticIp: z.nullable(z.number().int()).optional(),
|
|
147
|
+
prefix: z.nullable(z.number().int()).optional(),
|
|
144
148
|
virtualNetwork: z.nullable(z.number().int()).optional(),
|
|
145
149
|
database: z.nullable(z.number().int()).optional(),
|
|
146
150
|
filesystem: z.nullable(z.number().int()).optional(),
|
package/src/models/userteam.ts
CHANGED
|
@@ -37,6 +37,7 @@ export type UserTeamLimits = {
|
|
|
37
37
|
virtualMachine?: number | null | undefined;
|
|
38
38
|
virtualMachineGpu?: number | null | undefined;
|
|
39
39
|
elasticIp?: number | null | undefined;
|
|
40
|
+
prefix?: number | null | undefined;
|
|
40
41
|
virtualNetwork?: number | null | undefined;
|
|
41
42
|
database?: number | null | undefined;
|
|
42
43
|
filesystem?: number | null | undefined;
|
|
@@ -133,6 +134,7 @@ export const UserTeamLimits$inboundSchema: z.ZodType<
|
|
|
133
134
|
virtual_machine: z.nullable(z.number().int()).optional(),
|
|
134
135
|
virtual_machine_gpu: z.nullable(z.number().int()).optional(),
|
|
135
136
|
elastic_ip: z.nullable(z.number().int()).optional(),
|
|
137
|
+
prefix: z.nullable(z.number().int()).optional(),
|
|
136
138
|
virtual_network: z.nullable(z.number().int()).optional(),
|
|
137
139
|
database: z.nullable(z.number().int()).optional(),
|
|
138
140
|
filesystem: z.nullable(z.number().int()).optional(),
|
|
@@ -155,6 +157,7 @@ export type UserTeamLimits$Outbound = {
|
|
|
155
157
|
virtual_machine?: number | null | undefined;
|
|
156
158
|
virtual_machine_gpu?: number | null | undefined;
|
|
157
159
|
elastic_ip?: number | null | undefined;
|
|
160
|
+
prefix?: number | null | undefined;
|
|
158
161
|
virtual_network?: number | null | undefined;
|
|
159
162
|
database?: number | null | undefined;
|
|
160
163
|
filesystem?: number | null | undefined;
|
|
@@ -172,6 +175,7 @@ export const UserTeamLimits$outboundSchema: z.ZodType<
|
|
|
172
175
|
virtualMachine: z.nullable(z.number().int()).optional(),
|
|
173
176
|
virtualMachineGpu: z.nullable(z.number().int()).optional(),
|
|
174
177
|
elasticIp: z.nullable(z.number().int()).optional(),
|
|
178
|
+
prefix: z.nullable(z.number().int()).optional(),
|
|
175
179
|
virtualNetwork: z.nullable(z.number().int()).optional(),
|
|
176
180
|
database: z.nullable(z.number().int()).optional(),
|
|
177
181
|
filesystem: z.nullable(z.number().int()).optional(),
|
package/src/models/userupdate.ts
CHANGED
|
@@ -20,8 +20,8 @@ export type UserUpdateAttributes = {
|
|
|
20
20
|
email?: string | undefined;
|
|
21
21
|
authenticationFactorId?: string | null | undefined;
|
|
22
22
|
role?: string | null | undefined;
|
|
23
|
-
createdAt?: string | undefined;
|
|
24
|
-
updatedAt?: string | undefined;
|
|
23
|
+
createdAt?: string | null | undefined;
|
|
24
|
+
updatedAt?: string | null | undefined;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export type UserUpdate = {
|
|
@@ -50,8 +50,8 @@ export const UserUpdateAttributes$inboundSchema: z.ZodType<
|
|
|
50
50
|
email: z.string().optional(),
|
|
51
51
|
authentication_factor_id: z.nullable(z.string()).optional(),
|
|
52
52
|
role: z.nullable(z.string()).optional(),
|
|
53
|
-
created_at: z.string().optional(),
|
|
54
|
-
updated_at: z.string().optional(),
|
|
53
|
+
created_at: z.nullable(z.string()).optional(),
|
|
54
|
+
updated_at: z.nullable(z.string()).optional(),
|
|
55
55
|
}).transform((v) => {
|
|
56
56
|
return remap$(v, {
|
|
57
57
|
"first_name": "firstName",
|
|
@@ -68,8 +68,8 @@ export type UserUpdateAttributes$Outbound = {
|
|
|
68
68
|
email?: string | undefined;
|
|
69
69
|
authentication_factor_id?: string | null | undefined;
|
|
70
70
|
role?: string | null | undefined;
|
|
71
|
-
created_at?: string | undefined;
|
|
72
|
-
updated_at?: string | undefined;
|
|
71
|
+
created_at?: string | null | undefined;
|
|
72
|
+
updated_at?: string | null | undefined;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
/** @internal */
|
|
@@ -83,8 +83,8 @@ export const UserUpdateAttributes$outboundSchema: z.ZodType<
|
|
|
83
83
|
email: z.string().optional(),
|
|
84
84
|
authenticationFactorId: z.nullable(z.string()).optional(),
|
|
85
85
|
role: z.nullable(z.string()).optional(),
|
|
86
|
-
createdAt: z.string().optional(),
|
|
87
|
-
updatedAt: z.string().optional(),
|
|
86
|
+
createdAt: z.nullable(z.string()).optional(),
|
|
87
|
+
updatedAt: z.nullable(z.string()).optional(),
|
|
88
88
|
}).transform((v) => {
|
|
89
89
|
return remap$(v, {
|
|
90
90
|
firstName: "first_name",
|