latitudesh-typescript-sdk 0.5.0 → 0.6.0
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 +365 -243
- package/bin/mcp-server.js.map +41 -42
- package/dist/commonjs/funcs/elasticIpsListElasticIps.d.ts.map +1 -1
- package/dist/commonjs/funcs/elasticIpsListElasticIps.js +1 -2
- package/dist/commonjs/funcs/elasticIpsListElasticIps.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +1 -2
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/firewallsGetAllFirewallAssignments.d.ts.map +1 -1
- package/dist/commonjs/funcs/firewallsGetAllFirewallAssignments.js +1 -2
- package/dist/commonjs/funcs/firewallsGetAllFirewallAssignments.js.map +1 -1
- package/dist/commonjs/funcs/firewallsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/firewallsList.js +1 -2
- package/dist/commonjs/funcs/firewallsList.js.map +1 -1
- package/dist/commonjs/funcs/firewallsListAssignments.d.ts.map +1 -1
- package/dist/commonjs/funcs/firewallsListAssignments.js +1 -2
- package/dist/commonjs/funcs/firewallsListAssignments.js.map +1 -1
- package/dist/commonjs/funcs/ipAddressesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/ipAddressesList.js +1 -2
- package/dist/commonjs/funcs/ipAddressesList.js.map +1 -1
- package/dist/commonjs/funcs/operatingSystemsListPlans.d.ts.map +1 -1
- package/dist/commonjs/funcs/operatingSystemsListPlans.js +1 -2
- package/dist/commonjs/funcs/operatingSystemsListPlans.js.map +1 -1
- package/dist/commonjs/funcs/plansGetBandwidth.d.ts.map +1 -1
- package/dist/commonjs/funcs/plansGetBandwidth.js +1 -2
- package/dist/commonjs/funcs/plansGetBandwidth.js.map +1 -1
- package/dist/commonjs/funcs/privateNetworksList.d.ts.map +1 -1
- package/dist/commonjs/funcs/privateNetworksList.js +1 -2
- package/dist/commonjs/funcs/privateNetworksList.js.map +1 -1
- package/dist/commonjs/funcs/privateNetworksListAssignments.d.ts.map +1 -1
- package/dist/commonjs/funcs/privateNetworksListAssignments.js +1 -2
- package/dist/commonjs/funcs/privateNetworksListAssignments.js.map +1 -1
- package/dist/commonjs/funcs/projectsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/projectsList.js +1 -2
- package/dist/commonjs/funcs/projectsList.js.map +1 -1
- package/dist/commonjs/funcs/regionsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/regionsGet.js +1 -2
- package/dist/commonjs/funcs/regionsGet.js.map +1 -1
- package/dist/commonjs/funcs/rolesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/rolesList.js +1 -2
- package/dist/commonjs/funcs/rolesList.js.map +1 -1
- package/dist/commonjs/funcs/serversList.d.ts.map +1 -1
- package/dist/commonjs/funcs/serversList.js +4 -3
- package/dist/commonjs/funcs/serversList.js.map +1 -1
- package/dist/commonjs/funcs/teamsMembersGetTeamMembers.d.ts.map +1 -1
- package/dist/commonjs/funcs/teamsMembersGetTeamMembers.js +1 -2
- package/dist/commonjs/funcs/teamsMembersGetTeamMembers.js.map +1 -1
- package/dist/commonjs/funcs/userDataList.d.ts +4 -2
- package/dist/commonjs/funcs/userDataList.d.ts.map +1 -1
- package/dist/commonjs/funcs/userDataList.js +44 -8
- package/dist/commonjs/funcs/userDataList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.js +12 -12
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +3 -3
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/matchers.js +3 -3
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/primitives.d.ts +1 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -1
- package/dist/commonjs/lib/primitives.js +18 -0
- package/dist/commonjs/lib/primitives.js.map +1 -1
- package/dist/commonjs/lib/retries.js +7 -0
- package/dist/commonjs/lib/retries.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +37 -12
- package/dist/commonjs/lib/sdks.js.map +1 -1
- 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/userDataList.js +1 -1
- package/dist/commonjs/mcp-server/tools/userDataList.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/ipaddress.d.ts +11 -129
- package/dist/commonjs/models/ipaddress.d.ts.map +1 -1
- package/dist/commonjs/models/ipaddress.js +14 -146
- package/dist/commonjs/models/ipaddress.js.map +1 -1
- package/dist/commonjs/models/ipaddressdata.d.ts +185 -0
- package/dist/commonjs/models/ipaddressdata.d.ts.map +1 -0
- package/dist/commonjs/models/ipaddressdata.js +247 -0
- package/dist/commonjs/models/ipaddressdata.js.map +1 -0
- package/dist/commonjs/models/ipaddresses.d.ts +14 -3
- package/dist/commonjs/models/ipaddresses.d.ts.map +1 -1
- package/dist/commonjs/models/ipaddresses.js +18 -4
- package/dist/commonjs/models/ipaddresses.js.map +1 -1
- package/dist/commonjs/models/operations/getevents.d.ts +2 -18
- package/dist/commonjs/models/operations/getevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getevents.js +3 -19
- package/dist/commonjs/models/operations/getevents.js.map +1 -1
- package/dist/commonjs/models/operations/getservers.d.ts +13 -8
- package/dist/commonjs/models/operations/getservers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getservers.js +12 -4
- package/dist/commonjs/models/operations/getservers.js.map +1 -1
- package/dist/commonjs/models/operations/getusersdata.d.ts +29 -0
- package/dist/commonjs/models/operations/getusersdata.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getusersdata.js +38 -1
- package/dist/commonjs/models/operations/getusersdata.js.map +1 -1
- package/dist/commonjs/models/operations/patchcurrentteam.d.ts +2 -13
- package/dist/commonjs/models/operations/patchcurrentteam.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchcurrentteam.js +5 -15
- package/dist/commonjs/models/operations/patchcurrentteam.js.map +1 -1
- package/dist/commonjs/models/operations/postteam.d.ts +7 -5
- package/dist/commonjs/models/operations/postteam.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postteam.js +11 -6
- package/dist/commonjs/models/operations/postteam.js.map +1 -1
- package/dist/commonjs/models/teammembers.d.ts +11 -4
- package/dist/commonjs/models/teammembers.d.ts.map +1 -1
- package/dist/commonjs/models/teammembers.js +15 -15
- package/dist/commonjs/models/teammembers.js.map +1 -1
- package/dist/commonjs/models/userdata.d.ts +3 -11
- package/dist/commonjs/models/userdata.d.ts.map +1 -1
- package/dist/commonjs/models/userdata.js +4 -15
- package/dist/commonjs/models/userdata.js.map +1 -1
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.d.ts +0 -5
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.js +0 -4
- package/dist/commonjs/models/virtualmachinenetworkattachmentresource.js.map +1 -1
- package/dist/commonjs/sdk/userdata.d.ts +4 -1
- package/dist/commonjs/sdk/userdata.d.ts.map +1 -1
- package/dist/commonjs/sdk/userdata.js +2 -1
- package/dist/commonjs/sdk/userdata.js.map +1 -1
- package/dist/esm/funcs/elasticIpsListElasticIps.d.ts.map +1 -1
- package/dist/esm/funcs/elasticIpsListElasticIps.js +1 -2
- package/dist/esm/funcs/elasticIpsListElasticIps.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +1 -2
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/firewallsGetAllFirewallAssignments.d.ts.map +1 -1
- package/dist/esm/funcs/firewallsGetAllFirewallAssignments.js +1 -2
- package/dist/esm/funcs/firewallsGetAllFirewallAssignments.js.map +1 -1
- package/dist/esm/funcs/firewallsList.d.ts.map +1 -1
- package/dist/esm/funcs/firewallsList.js +1 -2
- package/dist/esm/funcs/firewallsList.js.map +1 -1
- package/dist/esm/funcs/firewallsListAssignments.d.ts.map +1 -1
- package/dist/esm/funcs/firewallsListAssignments.js +1 -2
- package/dist/esm/funcs/firewallsListAssignments.js.map +1 -1
- package/dist/esm/funcs/ipAddressesList.d.ts.map +1 -1
- package/dist/esm/funcs/ipAddressesList.js +1 -2
- package/dist/esm/funcs/ipAddressesList.js.map +1 -1
- package/dist/esm/funcs/operatingSystemsListPlans.d.ts.map +1 -1
- package/dist/esm/funcs/operatingSystemsListPlans.js +1 -2
- package/dist/esm/funcs/operatingSystemsListPlans.js.map +1 -1
- package/dist/esm/funcs/plansGetBandwidth.d.ts.map +1 -1
- package/dist/esm/funcs/plansGetBandwidth.js +1 -2
- package/dist/esm/funcs/plansGetBandwidth.js.map +1 -1
- package/dist/esm/funcs/privateNetworksList.d.ts.map +1 -1
- package/dist/esm/funcs/privateNetworksList.js +1 -2
- package/dist/esm/funcs/privateNetworksList.js.map +1 -1
- package/dist/esm/funcs/privateNetworksListAssignments.d.ts.map +1 -1
- package/dist/esm/funcs/privateNetworksListAssignments.js +1 -2
- package/dist/esm/funcs/privateNetworksListAssignments.js.map +1 -1
- package/dist/esm/funcs/projectsList.d.ts.map +1 -1
- package/dist/esm/funcs/projectsList.js +1 -2
- package/dist/esm/funcs/projectsList.js.map +1 -1
- package/dist/esm/funcs/regionsGet.d.ts.map +1 -1
- package/dist/esm/funcs/regionsGet.js +1 -2
- package/dist/esm/funcs/regionsGet.js.map +1 -1
- package/dist/esm/funcs/rolesList.d.ts.map +1 -1
- package/dist/esm/funcs/rolesList.js +1 -2
- package/dist/esm/funcs/rolesList.js.map +1 -1
- package/dist/esm/funcs/serversList.d.ts.map +1 -1
- package/dist/esm/funcs/serversList.js +4 -3
- package/dist/esm/funcs/serversList.js.map +1 -1
- package/dist/esm/funcs/teamsMembersGetTeamMembers.d.ts.map +1 -1
- package/dist/esm/funcs/teamsMembersGetTeamMembers.js +1 -2
- package/dist/esm/funcs/teamsMembersGetTeamMembers.js.map +1 -1
- package/dist/esm/funcs/userDataList.d.ts +4 -2
- package/dist/esm/funcs/userDataList.d.ts.map +1 -1
- package/dist/esm/funcs/userDataList.js +44 -8
- package/dist/esm/funcs/userDataList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.js +1 -1
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +3 -3
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/matchers.js +1 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/primitives.d.ts +1 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -1
- package/dist/esm/lib/primitives.js +17 -0
- package/dist/esm/lib/primitives.js.map +1 -1
- package/dist/esm/lib/retries.js +7 -0
- package/dist/esm/lib/retries.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +37 -12
- package/dist/esm/lib/sdks.js.map +1 -1
- 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/userDataList.js +1 -1
- package/dist/esm/mcp-server/tools/userDataList.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/ipaddress.d.ts +11 -129
- package/dist/esm/models/ipaddress.d.ts.map +1 -1
- package/dist/esm/models/ipaddress.js +11 -135
- package/dist/esm/models/ipaddress.js.map +1 -1
- package/dist/esm/models/ipaddressdata.d.ts +185 -0
- package/dist/esm/models/ipaddressdata.d.ts.map +1 -0
- package/dist/esm/models/ipaddressdata.js +197 -0
- package/dist/esm/models/ipaddressdata.js.map +1 -0
- package/dist/esm/models/ipaddresses.d.ts +14 -3
- package/dist/esm/models/ipaddresses.d.ts.map +1 -1
- package/dist/esm/models/ipaddresses.js +15 -3
- package/dist/esm/models/ipaddresses.js.map +1 -1
- package/dist/esm/models/operations/getevents.d.ts +2 -18
- package/dist/esm/models/operations/getevents.d.ts.map +1 -1
- package/dist/esm/models/operations/getevents.js +2 -16
- package/dist/esm/models/operations/getevents.js.map +1 -1
- package/dist/esm/models/operations/getservers.d.ts +13 -8
- package/dist/esm/models/operations/getservers.d.ts.map +1 -1
- package/dist/esm/models/operations/getservers.js +12 -4
- package/dist/esm/models/operations/getservers.js.map +1 -1
- package/dist/esm/models/operations/getusersdata.d.ts +29 -0
- package/dist/esm/models/operations/getusersdata.d.ts.map +1 -1
- package/dist/esm/models/operations/getusersdata.js +35 -0
- package/dist/esm/models/operations/getusersdata.js.map +1 -1
- package/dist/esm/models/operations/patchcurrentteam.d.ts +2 -13
- package/dist/esm/models/operations/patchcurrentteam.d.ts.map +1 -1
- package/dist/esm/models/operations/patchcurrentteam.js +4 -14
- package/dist/esm/models/operations/patchcurrentteam.js.map +1 -1
- package/dist/esm/models/operations/postteam.d.ts +7 -5
- package/dist/esm/models/operations/postteam.d.ts.map +1 -1
- package/dist/esm/models/operations/postteam.js +10 -5
- package/dist/esm/models/operations/postteam.js.map +1 -1
- package/dist/esm/models/teammembers.d.ts +11 -4
- package/dist/esm/models/teammembers.d.ts.map +1 -1
- package/dist/esm/models/teammembers.js +12 -14
- package/dist/esm/models/teammembers.js.map +1 -1
- package/dist/esm/models/userdata.d.ts +3 -11
- package/dist/esm/models/userdata.d.ts.map +1 -1
- package/dist/esm/models/userdata.js +3 -12
- package/dist/esm/models/userdata.js.map +1 -1
- package/dist/esm/models/virtualmachinenetworkattachmentresource.d.ts +0 -5
- package/dist/esm/models/virtualmachinenetworkattachmentresource.d.ts.map +1 -1
- package/dist/esm/models/virtualmachinenetworkattachmentresource.js +0 -4
- package/dist/esm/models/virtualmachinenetworkattachmentresource.js.map +1 -1
- package/dist/esm/sdk/userdata.d.ts +4 -1
- package/dist/esm/sdk/userdata.d.ts.map +1 -1
- package/dist/esm/sdk/userdata.js +2 -1
- package/dist/esm/sdk/userdata.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/elasticIpsListElasticIps.ts +1 -2
- package/src/funcs/eventsList.ts +1 -2
- package/src/funcs/firewallsGetAllFirewallAssignments.ts +1 -2
- package/src/funcs/firewallsList.ts +1 -2
- package/src/funcs/firewallsListAssignments.ts +1 -2
- package/src/funcs/ipAddressesList.ts +1 -2
- package/src/funcs/operatingSystemsListPlans.ts +1 -2
- package/src/funcs/plansGetBandwidth.ts +1 -2
- package/src/funcs/privateNetworksList.ts +1 -2
- package/src/funcs/privateNetworksListAssignments.ts +1 -2
- package/src/funcs/projectsList.ts +1 -2
- package/src/funcs/regionsGet.ts +1 -2
- package/src/funcs/rolesList.ts +1 -2
- package/src/funcs/serversList.ts +4 -3
- package/src/funcs/teamsMembersGetTeamMembers.ts +1 -2
- package/src/funcs/userDataList.ts +104 -30
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/env.ts +7 -3
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +41 -13
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/userDataList.ts +1 -1
- package/src/models/index.ts +1 -0
- package/src/models/ipaddress.ts +29 -325
- package/src/models/ipaddressdata.ts +475 -0
- package/src/models/ipaddresses.ts +46 -9
- package/src/models/operations/getevents.ts +4 -50
- package/src/models/operations/getservers.ts +25 -12
- package/src/models/operations/getusersdata.ts +79 -0
- package/src/models/operations/patchcurrentteam.ts +6 -27
- package/src/models/operations/postteam.ts +15 -11
- package/src/models/teammembers.ts +37 -18
- package/src/models/userdata.ts +10 -35
- package/src/models/virtualmachinenetworkattachmentresource.ts +0 -9
- package/src/sdk/userdata.ts +3 -2
- package/tests/integration/userdata.test.ts +9 -9
- package/dist/commonjs/lib/dlv.d.ts +0 -14
- package/dist/commonjs/lib/dlv.d.ts.map +0 -1
- package/dist/commonjs/lib/dlv.js +0 -49
- package/dist/commonjs/lib/dlv.js.map +0 -1
- package/dist/commonjs/lib/is-plain-object.d.ts +0 -2
- package/dist/commonjs/lib/is-plain-object.d.ts.map +0 -1
- package/dist/commonjs/lib/is-plain-object.js +0 -41
- package/dist/commonjs/lib/is-plain-object.js.map +0 -1
- package/dist/esm/lib/dlv.d.ts +0 -14
- package/dist/esm/lib/dlv.d.ts.map +0 -1
- package/dist/esm/lib/dlv.js +0 -46
- package/dist/esm/lib/dlv.js.map +0 -1
- package/dist/esm/lib/is-plain-object.d.ts +0 -2
- package/dist/esm/lib/is-plain-object.d.ts.map +0 -1
- package/dist/esm/lib/is-plain-object.js +0 -38
- package/dist/esm/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -0,0 +1,475 @@
|
|
|
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 TypeIPAddresses = {
|
|
13
|
+
IpAddresses: "ip_addresses",
|
|
14
|
+
} as const;
|
|
15
|
+
export type TypeIPAddresses = ClosedEnum<typeof TypeIPAddresses>;
|
|
16
|
+
|
|
17
|
+
export const IpAddressDataFamily = {
|
|
18
|
+
IPv4: "IPv4",
|
|
19
|
+
IPv6: "IPv6",
|
|
20
|
+
} as const;
|
|
21
|
+
export type IpAddressDataFamily = ClosedEnum<typeof IpAddressDataFamily>;
|
|
22
|
+
|
|
23
|
+
export const IpAddressDataAttributesType = {
|
|
24
|
+
Public: "Public",
|
|
25
|
+
Private: "Private",
|
|
26
|
+
Elastic: "Elastic",
|
|
27
|
+
} as const;
|
|
28
|
+
export type IpAddressDataAttributesType = ClosedEnum<
|
|
29
|
+
typeof IpAddressDataAttributesType
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
export type IpAddressDataProject = {
|
|
33
|
+
id?: string | undefined;
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type IpAddressDataLocation = {
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
slug?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type IpAddressDataRegion = {
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
location?: IpAddressDataLocation | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Server assignment information. Returns an empty object when the IP is not assigned to an active server (e.g., when the server is decommissioning or deleted).
|
|
51
|
+
*/
|
|
52
|
+
export type Assignment = {
|
|
53
|
+
serverId?: string | undefined;
|
|
54
|
+
hostname?: string | undefined;
|
|
55
|
+
assignedAt?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Elastic IP details. Returns an empty object when the IP is not an Elastic IP.
|
|
60
|
+
*/
|
|
61
|
+
export type Elastic = {
|
|
62
|
+
id?: string | undefined;
|
|
63
|
+
mode?: string | undefined;
|
|
64
|
+
status?: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type IpAddressDataAttributes = {
|
|
68
|
+
address?: string | undefined;
|
|
69
|
+
cidr?: string | null | undefined;
|
|
70
|
+
family?: IpAddressDataFamily | undefined;
|
|
71
|
+
gateway?: string | null | undefined;
|
|
72
|
+
netmask?: string | undefined;
|
|
73
|
+
type?: IpAddressDataAttributesType | undefined;
|
|
74
|
+
public?: boolean | undefined;
|
|
75
|
+
management?: boolean | undefined;
|
|
76
|
+
additional?: boolean | undefined;
|
|
77
|
+
project?: IpAddressDataProject | undefined;
|
|
78
|
+
region?: IpAddressDataRegion | undefined;
|
|
79
|
+
available?: boolean | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Server assignment information. Returns an empty object when the IP is not assigned to an active server (e.g., when the server is decommissioning or deleted).
|
|
82
|
+
*/
|
|
83
|
+
assignment?: Assignment | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Elastic IP details. Returns an empty object when the IP is not an Elastic IP.
|
|
86
|
+
*/
|
|
87
|
+
elastic?: Elastic | undefined;
|
|
88
|
+
createdAt?: Date | null | undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export type IpAddressData = {
|
|
92
|
+
id?: string | undefined;
|
|
93
|
+
type?: TypeIPAddresses | undefined;
|
|
94
|
+
attributes?: IpAddressDataAttributes | undefined;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const TypeIPAddresses$inboundSchema: z.ZodNativeEnum<
|
|
99
|
+
typeof TypeIPAddresses
|
|
100
|
+
> = z.nativeEnum(TypeIPAddresses);
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const TypeIPAddresses$outboundSchema: z.ZodNativeEnum<
|
|
103
|
+
typeof TypeIPAddresses
|
|
104
|
+
> = TypeIPAddresses$inboundSchema;
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const IpAddressDataFamily$inboundSchema: z.ZodNativeEnum<
|
|
108
|
+
typeof IpAddressDataFamily
|
|
109
|
+
> = z.nativeEnum(IpAddressDataFamily);
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const IpAddressDataFamily$outboundSchema: z.ZodNativeEnum<
|
|
112
|
+
typeof IpAddressDataFamily
|
|
113
|
+
> = IpAddressDataFamily$inboundSchema;
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const IpAddressDataAttributesType$inboundSchema: z.ZodNativeEnum<
|
|
117
|
+
typeof IpAddressDataAttributesType
|
|
118
|
+
> = z.nativeEnum(IpAddressDataAttributesType);
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const IpAddressDataAttributesType$outboundSchema: z.ZodNativeEnum<
|
|
121
|
+
typeof IpAddressDataAttributesType
|
|
122
|
+
> = IpAddressDataAttributesType$inboundSchema;
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const IpAddressDataProject$inboundSchema: z.ZodType<
|
|
126
|
+
IpAddressDataProject,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
unknown
|
|
129
|
+
> = z.object({
|
|
130
|
+
id: z.string().optional(),
|
|
131
|
+
name: z.string().optional(),
|
|
132
|
+
});
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type IpAddressDataProject$Outbound = {
|
|
135
|
+
id?: string | undefined;
|
|
136
|
+
name?: string | undefined;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const IpAddressDataProject$outboundSchema: z.ZodType<
|
|
141
|
+
IpAddressDataProject$Outbound,
|
|
142
|
+
z.ZodTypeDef,
|
|
143
|
+
IpAddressDataProject
|
|
144
|
+
> = z.object({
|
|
145
|
+
id: z.string().optional(),
|
|
146
|
+
name: z.string().optional(),
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
export function ipAddressDataProjectToJSON(
|
|
150
|
+
ipAddressDataProject: IpAddressDataProject,
|
|
151
|
+
): string {
|
|
152
|
+
return JSON.stringify(
|
|
153
|
+
IpAddressDataProject$outboundSchema.parse(ipAddressDataProject),
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
export function ipAddressDataProjectFromJSON(
|
|
157
|
+
jsonString: string,
|
|
158
|
+
): SafeParseResult<IpAddressDataProject, SDKValidationError> {
|
|
159
|
+
return safeParse(
|
|
160
|
+
jsonString,
|
|
161
|
+
(x) => IpAddressDataProject$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
+
`Failed to parse 'IpAddressDataProject' from JSON`,
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/** @internal */
|
|
167
|
+
export const IpAddressDataLocation$inboundSchema: z.ZodType<
|
|
168
|
+
IpAddressDataLocation,
|
|
169
|
+
z.ZodTypeDef,
|
|
170
|
+
unknown
|
|
171
|
+
> = z.object({
|
|
172
|
+
id: z.string().optional(),
|
|
173
|
+
name: z.string().optional(),
|
|
174
|
+
slug: z.string().optional(),
|
|
175
|
+
});
|
|
176
|
+
/** @internal */
|
|
177
|
+
export type IpAddressDataLocation$Outbound = {
|
|
178
|
+
id?: string | undefined;
|
|
179
|
+
name?: string | undefined;
|
|
180
|
+
slug?: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const IpAddressDataLocation$outboundSchema: z.ZodType<
|
|
185
|
+
IpAddressDataLocation$Outbound,
|
|
186
|
+
z.ZodTypeDef,
|
|
187
|
+
IpAddressDataLocation
|
|
188
|
+
> = z.object({
|
|
189
|
+
id: z.string().optional(),
|
|
190
|
+
name: z.string().optional(),
|
|
191
|
+
slug: z.string().optional(),
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
export function ipAddressDataLocationToJSON(
|
|
195
|
+
ipAddressDataLocation: IpAddressDataLocation,
|
|
196
|
+
): string {
|
|
197
|
+
return JSON.stringify(
|
|
198
|
+
IpAddressDataLocation$outboundSchema.parse(ipAddressDataLocation),
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
export function ipAddressDataLocationFromJSON(
|
|
202
|
+
jsonString: string,
|
|
203
|
+
): SafeParseResult<IpAddressDataLocation, SDKValidationError> {
|
|
204
|
+
return safeParse(
|
|
205
|
+
jsonString,
|
|
206
|
+
(x) => IpAddressDataLocation$inboundSchema.parse(JSON.parse(x)),
|
|
207
|
+
`Failed to parse 'IpAddressDataLocation' from JSON`,
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const IpAddressDataRegion$inboundSchema: z.ZodType<
|
|
213
|
+
IpAddressDataRegion,
|
|
214
|
+
z.ZodTypeDef,
|
|
215
|
+
unknown
|
|
216
|
+
> = z.object({
|
|
217
|
+
id: z.string().optional(),
|
|
218
|
+
name: z.string().optional(),
|
|
219
|
+
location: z.lazy(() => IpAddressDataLocation$inboundSchema).optional(),
|
|
220
|
+
});
|
|
221
|
+
/** @internal */
|
|
222
|
+
export type IpAddressDataRegion$Outbound = {
|
|
223
|
+
id?: string | undefined;
|
|
224
|
+
name?: string | undefined;
|
|
225
|
+
location?: IpAddressDataLocation$Outbound | undefined;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
/** @internal */
|
|
229
|
+
export const IpAddressDataRegion$outboundSchema: z.ZodType<
|
|
230
|
+
IpAddressDataRegion$Outbound,
|
|
231
|
+
z.ZodTypeDef,
|
|
232
|
+
IpAddressDataRegion
|
|
233
|
+
> = z.object({
|
|
234
|
+
id: z.string().optional(),
|
|
235
|
+
name: z.string().optional(),
|
|
236
|
+
location: z.lazy(() => IpAddressDataLocation$outboundSchema).optional(),
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
export function ipAddressDataRegionToJSON(
|
|
240
|
+
ipAddressDataRegion: IpAddressDataRegion,
|
|
241
|
+
): string {
|
|
242
|
+
return JSON.stringify(
|
|
243
|
+
IpAddressDataRegion$outboundSchema.parse(ipAddressDataRegion),
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
export function ipAddressDataRegionFromJSON(
|
|
247
|
+
jsonString: string,
|
|
248
|
+
): SafeParseResult<IpAddressDataRegion, SDKValidationError> {
|
|
249
|
+
return safeParse(
|
|
250
|
+
jsonString,
|
|
251
|
+
(x) => IpAddressDataRegion$inboundSchema.parse(JSON.parse(x)),
|
|
252
|
+
`Failed to parse 'IpAddressDataRegion' from JSON`,
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/** @internal */
|
|
257
|
+
export const Assignment$inboundSchema: z.ZodType<
|
|
258
|
+
Assignment,
|
|
259
|
+
z.ZodTypeDef,
|
|
260
|
+
unknown
|
|
261
|
+
> = z.object({
|
|
262
|
+
server_id: z.string().optional(),
|
|
263
|
+
hostname: z.string().optional(),
|
|
264
|
+
assigned_at: z.string().optional(),
|
|
265
|
+
}).transform((v) => {
|
|
266
|
+
return remap$(v, {
|
|
267
|
+
"server_id": "serverId",
|
|
268
|
+
"assigned_at": "assignedAt",
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
/** @internal */
|
|
272
|
+
export type Assignment$Outbound = {
|
|
273
|
+
server_id?: string | undefined;
|
|
274
|
+
hostname?: string | undefined;
|
|
275
|
+
assigned_at?: string | undefined;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
/** @internal */
|
|
279
|
+
export const Assignment$outboundSchema: z.ZodType<
|
|
280
|
+
Assignment$Outbound,
|
|
281
|
+
z.ZodTypeDef,
|
|
282
|
+
Assignment
|
|
283
|
+
> = z.object({
|
|
284
|
+
serverId: z.string().optional(),
|
|
285
|
+
hostname: z.string().optional(),
|
|
286
|
+
assignedAt: z.string().optional(),
|
|
287
|
+
}).transform((v) => {
|
|
288
|
+
return remap$(v, {
|
|
289
|
+
serverId: "server_id",
|
|
290
|
+
assignedAt: "assigned_at",
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
export function assignmentToJSON(assignment: Assignment): string {
|
|
295
|
+
return JSON.stringify(Assignment$outboundSchema.parse(assignment));
|
|
296
|
+
}
|
|
297
|
+
export function assignmentFromJSON(
|
|
298
|
+
jsonString: string,
|
|
299
|
+
): SafeParseResult<Assignment, SDKValidationError> {
|
|
300
|
+
return safeParse(
|
|
301
|
+
jsonString,
|
|
302
|
+
(x) => Assignment$inboundSchema.parse(JSON.parse(x)),
|
|
303
|
+
`Failed to parse 'Assignment' from JSON`,
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/** @internal */
|
|
308
|
+
export const Elastic$inboundSchema: z.ZodType<Elastic, z.ZodTypeDef, unknown> =
|
|
309
|
+
z.object({
|
|
310
|
+
id: z.string().optional(),
|
|
311
|
+
mode: z.string().optional(),
|
|
312
|
+
status: z.string().optional(),
|
|
313
|
+
});
|
|
314
|
+
/** @internal */
|
|
315
|
+
export type Elastic$Outbound = {
|
|
316
|
+
id?: string | undefined;
|
|
317
|
+
mode?: string | undefined;
|
|
318
|
+
status?: string | undefined;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
/** @internal */
|
|
322
|
+
export const Elastic$outboundSchema: z.ZodType<
|
|
323
|
+
Elastic$Outbound,
|
|
324
|
+
z.ZodTypeDef,
|
|
325
|
+
Elastic
|
|
326
|
+
> = z.object({
|
|
327
|
+
id: z.string().optional(),
|
|
328
|
+
mode: z.string().optional(),
|
|
329
|
+
status: z.string().optional(),
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
export function elasticToJSON(elastic: Elastic): string {
|
|
333
|
+
return JSON.stringify(Elastic$outboundSchema.parse(elastic));
|
|
334
|
+
}
|
|
335
|
+
export function elasticFromJSON(
|
|
336
|
+
jsonString: string,
|
|
337
|
+
): SafeParseResult<Elastic, SDKValidationError> {
|
|
338
|
+
return safeParse(
|
|
339
|
+
jsonString,
|
|
340
|
+
(x) => Elastic$inboundSchema.parse(JSON.parse(x)),
|
|
341
|
+
`Failed to parse 'Elastic' from JSON`,
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/** @internal */
|
|
346
|
+
export const IpAddressDataAttributes$inboundSchema: z.ZodType<
|
|
347
|
+
IpAddressDataAttributes,
|
|
348
|
+
z.ZodTypeDef,
|
|
349
|
+
unknown
|
|
350
|
+
> = z.object({
|
|
351
|
+
address: z.string().optional(),
|
|
352
|
+
cidr: z.nullable(z.string()).optional(),
|
|
353
|
+
family: IpAddressDataFamily$inboundSchema.optional(),
|
|
354
|
+
gateway: z.nullable(z.string()).optional(),
|
|
355
|
+
netmask: z.string().optional(),
|
|
356
|
+
type: IpAddressDataAttributesType$inboundSchema.optional(),
|
|
357
|
+
public: z.boolean().optional(),
|
|
358
|
+
management: z.boolean().optional(),
|
|
359
|
+
additional: z.boolean().optional(),
|
|
360
|
+
project: z.lazy(() => IpAddressDataProject$inboundSchema).optional(),
|
|
361
|
+
region: z.lazy(() => IpAddressDataRegion$inboundSchema).optional(),
|
|
362
|
+
available: z.boolean().optional(),
|
|
363
|
+
assignment: z.lazy(() => Assignment$inboundSchema).optional(),
|
|
364
|
+
elastic: z.lazy(() => Elastic$inboundSchema).optional(),
|
|
365
|
+
created_at: z.nullable(
|
|
366
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
367
|
+
).optional(),
|
|
368
|
+
}).transform((v) => {
|
|
369
|
+
return remap$(v, {
|
|
370
|
+
"created_at": "createdAt",
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
/** @internal */
|
|
374
|
+
export type IpAddressDataAttributes$Outbound = {
|
|
375
|
+
address?: string | undefined;
|
|
376
|
+
cidr?: string | null | undefined;
|
|
377
|
+
family?: string | undefined;
|
|
378
|
+
gateway?: string | null | undefined;
|
|
379
|
+
netmask?: string | undefined;
|
|
380
|
+
type?: string | undefined;
|
|
381
|
+
public?: boolean | undefined;
|
|
382
|
+
management?: boolean | undefined;
|
|
383
|
+
additional?: boolean | undefined;
|
|
384
|
+
project?: IpAddressDataProject$Outbound | undefined;
|
|
385
|
+
region?: IpAddressDataRegion$Outbound | undefined;
|
|
386
|
+
available?: boolean | undefined;
|
|
387
|
+
assignment?: Assignment$Outbound | undefined;
|
|
388
|
+
elastic?: Elastic$Outbound | undefined;
|
|
389
|
+
created_at?: string | null | undefined;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
/** @internal */
|
|
393
|
+
export const IpAddressDataAttributes$outboundSchema: z.ZodType<
|
|
394
|
+
IpAddressDataAttributes$Outbound,
|
|
395
|
+
z.ZodTypeDef,
|
|
396
|
+
IpAddressDataAttributes
|
|
397
|
+
> = z.object({
|
|
398
|
+
address: z.string().optional(),
|
|
399
|
+
cidr: z.nullable(z.string()).optional(),
|
|
400
|
+
family: IpAddressDataFamily$outboundSchema.optional(),
|
|
401
|
+
gateway: z.nullable(z.string()).optional(),
|
|
402
|
+
netmask: z.string().optional(),
|
|
403
|
+
type: IpAddressDataAttributesType$outboundSchema.optional(),
|
|
404
|
+
public: z.boolean().optional(),
|
|
405
|
+
management: z.boolean().optional(),
|
|
406
|
+
additional: z.boolean().optional(),
|
|
407
|
+
project: z.lazy(() => IpAddressDataProject$outboundSchema).optional(),
|
|
408
|
+
region: z.lazy(() => IpAddressDataRegion$outboundSchema).optional(),
|
|
409
|
+
available: z.boolean().optional(),
|
|
410
|
+
assignment: z.lazy(() => Assignment$outboundSchema).optional(),
|
|
411
|
+
elastic: z.lazy(() => Elastic$outboundSchema).optional(),
|
|
412
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
413
|
+
}).transform((v) => {
|
|
414
|
+
return remap$(v, {
|
|
415
|
+
createdAt: "created_at",
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
export function ipAddressDataAttributesToJSON(
|
|
420
|
+
ipAddressDataAttributes: IpAddressDataAttributes,
|
|
421
|
+
): string {
|
|
422
|
+
return JSON.stringify(
|
|
423
|
+
IpAddressDataAttributes$outboundSchema.parse(ipAddressDataAttributes),
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
export function ipAddressDataAttributesFromJSON(
|
|
427
|
+
jsonString: string,
|
|
428
|
+
): SafeParseResult<IpAddressDataAttributes, SDKValidationError> {
|
|
429
|
+
return safeParse(
|
|
430
|
+
jsonString,
|
|
431
|
+
(x) => IpAddressDataAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
432
|
+
`Failed to parse 'IpAddressDataAttributes' from JSON`,
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/** @internal */
|
|
437
|
+
export const IpAddressData$inboundSchema: z.ZodType<
|
|
438
|
+
IpAddressData,
|
|
439
|
+
z.ZodTypeDef,
|
|
440
|
+
unknown
|
|
441
|
+
> = z.object({
|
|
442
|
+
id: z.string().optional(),
|
|
443
|
+
type: TypeIPAddresses$inboundSchema.optional(),
|
|
444
|
+
attributes: z.lazy(() => IpAddressDataAttributes$inboundSchema).optional(),
|
|
445
|
+
});
|
|
446
|
+
/** @internal */
|
|
447
|
+
export type IpAddressData$Outbound = {
|
|
448
|
+
id?: string | undefined;
|
|
449
|
+
type?: string | undefined;
|
|
450
|
+
attributes?: IpAddressDataAttributes$Outbound | undefined;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export const IpAddressData$outboundSchema: z.ZodType<
|
|
455
|
+
IpAddressData$Outbound,
|
|
456
|
+
z.ZodTypeDef,
|
|
457
|
+
IpAddressData
|
|
458
|
+
> = z.object({
|
|
459
|
+
id: z.string().optional(),
|
|
460
|
+
type: TypeIPAddresses$outboundSchema.optional(),
|
|
461
|
+
attributes: z.lazy(() => IpAddressDataAttributes$outboundSchema).optional(),
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
export function ipAddressDataToJSON(ipAddressData: IpAddressData): string {
|
|
465
|
+
return JSON.stringify(IpAddressData$outboundSchema.parse(ipAddressData));
|
|
466
|
+
}
|
|
467
|
+
export function ipAddressDataFromJSON(
|
|
468
|
+
jsonString: string,
|
|
469
|
+
): SafeParseResult<IpAddressData, SDKValidationError> {
|
|
470
|
+
return safeParse(
|
|
471
|
+
jsonString,
|
|
472
|
+
(x) => IpAddressData$inboundSchema.parse(JSON.parse(x)),
|
|
473
|
+
`Failed to parse 'IpAddressData' from JSON`,
|
|
474
|
+
);
|
|
475
|
+
}
|
|
@@ -7,27 +7,63 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
IpAddressData,
|
|
11
|
+
IpAddressData$inboundSchema,
|
|
12
|
+
IpAddressData$Outbound,
|
|
13
|
+
IpAddressData$outboundSchema,
|
|
14
|
+
} from "./ipaddressdata.js";
|
|
15
|
+
|
|
16
|
+
export type IpAddressesMeta = {};
|
|
15
17
|
|
|
16
18
|
export type IpAddresses = {
|
|
17
|
-
data?: Array<
|
|
19
|
+
data?: Array<IpAddressData> | undefined;
|
|
20
|
+
meta?: IpAddressesMeta | undefined;
|
|
18
21
|
};
|
|
19
22
|
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const IpAddressesMeta$inboundSchema: z.ZodType<
|
|
25
|
+
IpAddressesMeta,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type IpAddressesMeta$Outbound = {};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const IpAddressesMeta$outboundSchema: z.ZodType<
|
|
34
|
+
IpAddressesMeta$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
IpAddressesMeta
|
|
37
|
+
> = z.object({});
|
|
38
|
+
|
|
39
|
+
export function ipAddressesMetaToJSON(
|
|
40
|
+
ipAddressesMeta: IpAddressesMeta,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(IpAddressesMeta$outboundSchema.parse(ipAddressesMeta));
|
|
43
|
+
}
|
|
44
|
+
export function ipAddressesMetaFromJSON(
|
|
45
|
+
jsonString: string,
|
|
46
|
+
): SafeParseResult<IpAddressesMeta, SDKValidationError> {
|
|
47
|
+
return safeParse(
|
|
48
|
+
jsonString,
|
|
49
|
+
(x) => IpAddressesMeta$inboundSchema.parse(JSON.parse(x)),
|
|
50
|
+
`Failed to parse 'IpAddressesMeta' from JSON`,
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
20
54
|
/** @internal */
|
|
21
55
|
export const IpAddresses$inboundSchema: z.ZodType<
|
|
22
56
|
IpAddresses,
|
|
23
57
|
z.ZodTypeDef,
|
|
24
58
|
unknown
|
|
25
59
|
> = z.object({
|
|
26
|
-
data: z.array(
|
|
60
|
+
data: z.array(IpAddressData$inboundSchema).optional(),
|
|
61
|
+
meta: z.lazy(() => IpAddressesMeta$inboundSchema).optional(),
|
|
27
62
|
});
|
|
28
63
|
/** @internal */
|
|
29
64
|
export type IpAddresses$Outbound = {
|
|
30
|
-
data?: Array<
|
|
65
|
+
data?: Array<IpAddressData$Outbound> | undefined;
|
|
66
|
+
meta?: IpAddressesMeta$Outbound | undefined;
|
|
31
67
|
};
|
|
32
68
|
|
|
33
69
|
/** @internal */
|
|
@@ -36,7 +72,8 @@ export const IpAddresses$outboundSchema: z.ZodType<
|
|
|
36
72
|
z.ZodTypeDef,
|
|
37
73
|
IpAddresses
|
|
38
74
|
> = z.object({
|
|
39
|
-
data: z.array(
|
|
75
|
+
data: z.array(IpAddressData$outboundSchema).optional(),
|
|
76
|
+
meta: z.lazy(() => IpAddressesMeta$outboundSchema).optional(),
|
|
40
77
|
});
|
|
41
78
|
|
|
42
79
|
export function ipAddressesToJSON(ipAddresses: IpAddresses): string {
|
|
@@ -52,15 +52,8 @@ export type GetEventsRequest = {
|
|
|
52
52
|
pageNumber?: number | undefined;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
* Success
|
|
57
|
-
*/
|
|
58
|
-
export type GetEventsResponseBody = {
|
|
59
|
-
data?: Array<models.Events> | undefined;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
55
|
export type GetEventsResponse = {
|
|
63
|
-
result:
|
|
56
|
+
result: models.Events;
|
|
64
57
|
};
|
|
65
58
|
|
|
66
59
|
/** @internal */
|
|
@@ -155,52 +148,13 @@ export function getEventsRequestFromJSON(
|
|
|
155
148
|
);
|
|
156
149
|
}
|
|
157
150
|
|
|
158
|
-
/** @internal */
|
|
159
|
-
export const GetEventsResponseBody$inboundSchema: z.ZodType<
|
|
160
|
-
GetEventsResponseBody,
|
|
161
|
-
z.ZodTypeDef,
|
|
162
|
-
unknown
|
|
163
|
-
> = z.object({
|
|
164
|
-
data: z.array(models.Events$inboundSchema).optional(),
|
|
165
|
-
});
|
|
166
|
-
/** @internal */
|
|
167
|
-
export type GetEventsResponseBody$Outbound = {
|
|
168
|
-
data?: Array<models.Events$Outbound> | undefined;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
/** @internal */
|
|
172
|
-
export const GetEventsResponseBody$outboundSchema: z.ZodType<
|
|
173
|
-
GetEventsResponseBody$Outbound,
|
|
174
|
-
z.ZodTypeDef,
|
|
175
|
-
GetEventsResponseBody
|
|
176
|
-
> = z.object({
|
|
177
|
-
data: z.array(models.Events$outboundSchema).optional(),
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
export function getEventsResponseBodyToJSON(
|
|
181
|
-
getEventsResponseBody: GetEventsResponseBody,
|
|
182
|
-
): string {
|
|
183
|
-
return JSON.stringify(
|
|
184
|
-
GetEventsResponseBody$outboundSchema.parse(getEventsResponseBody),
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
export function getEventsResponseBodyFromJSON(
|
|
188
|
-
jsonString: string,
|
|
189
|
-
): SafeParseResult<GetEventsResponseBody, SDKValidationError> {
|
|
190
|
-
return safeParse(
|
|
191
|
-
jsonString,
|
|
192
|
-
(x) => GetEventsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
193
|
-
`Failed to parse 'GetEventsResponseBody' from JSON`,
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
151
|
/** @internal */
|
|
198
152
|
export const GetEventsResponse$inboundSchema: z.ZodType<
|
|
199
153
|
GetEventsResponse,
|
|
200
154
|
z.ZodTypeDef,
|
|
201
155
|
unknown
|
|
202
156
|
> = z.object({
|
|
203
|
-
Result:
|
|
157
|
+
Result: models.Events$inboundSchema,
|
|
204
158
|
}).transform((v) => {
|
|
205
159
|
return remap$(v, {
|
|
206
160
|
"Result": "result",
|
|
@@ -208,7 +162,7 @@ export const GetEventsResponse$inboundSchema: z.ZodType<
|
|
|
208
162
|
});
|
|
209
163
|
/** @internal */
|
|
210
164
|
export type GetEventsResponse$Outbound = {
|
|
211
|
-
Result:
|
|
165
|
+
Result: models.Events$Outbound;
|
|
212
166
|
};
|
|
213
167
|
|
|
214
168
|
/** @internal */
|
|
@@ -217,7 +171,7 @@ export const GetEventsResponse$outboundSchema: z.ZodType<
|
|
|
217
171
|
z.ZodTypeDef,
|
|
218
172
|
GetEventsResponse
|
|
219
173
|
> = z.object({
|
|
220
|
-
result:
|
|
174
|
+
result: models.Events$outboundSchema,
|
|
221
175
|
}).transform((v) => {
|
|
222
176
|
return remap$(v, {
|
|
223
177
|
result: "Result",
|