@alienplatform/manager-api 3.3.31 → 3.3.33
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 +2 -5
- package/esm/funcs/{credentialsMintCredentials.d.ts → deploymentsSetQuotaWarningOverrides.d.ts} +5 -2
- package/esm/funcs/deploymentsSetQuotaWarningOverrides.d.ts.map +1 -0
- package/esm/funcs/{credentialsMintCredentials.js → deploymentsSetQuotaWarningOverrides.js} +30 -14
- package/esm/funcs/deploymentsSetQuotaWarningOverrides.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/agentsyncrequest.d.ts +3 -0
- package/esm/models/agentsyncrequest.d.ts.map +1 -1
- package/esm/models/agentsyncrequest.js +2 -0
- package/esm/models/agentsyncrequest.js.map +1 -1
- package/esm/models/computesettings.d.ts +10 -0
- package/esm/models/computesettings.d.ts.map +1 -1
- package/esm/models/computesettings.js +5 -0
- package/esm/models/computesettings.js.map +1 -1
- package/esm/models/containerresourceselection.d.ts +36 -0
- package/esm/models/containerresourceselection.d.ts.map +1 -0
- package/esm/models/containerresourceselection.js +24 -0
- package/esm/models/containerresourceselection.js.map +1 -0
- package/esm/models/custompluginoperationsconfig.d.ts +46 -0
- package/esm/models/custompluginoperationsconfig.d.ts.map +1 -0
- package/esm/models/custompluginoperationsconfig.js +19 -0
- package/esm/models/custompluginoperationsconfig.js.map +1 -0
- package/esm/models/index.d.ts +9 -12
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +9 -12
- package/esm/models/index.js.map +1 -1
- package/esm/models/operationapprovaldecision.d.ts +16 -0
- package/esm/models/operationapprovaldecision.d.ts.map +1 -0
- package/esm/models/operationapprovaldecision.js +14 -0
- package/esm/models/operationapprovaldecision.js.map +1 -0
- package/esm/models/operationapprovalunion.d.ts +36 -0
- package/esm/models/operationapprovalunion.d.ts.map +1 -0
- package/esm/models/operationapprovalunion.js +22 -0
- package/esm/models/operationapprovalunion.js.map +1 -0
- package/esm/models/operations/index.d.ts +1 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/setquotawarningoverrides.d.ts +18 -0
- package/esm/models/operations/setquotawarningoverrides.d.ts.map +1 -0
- package/esm/models/operations/setquotawarningoverrides.js +19 -0
- package/esm/models/operations/setquotawarningoverrides.js.map +1 -0
- package/esm/models/operationsbundledownload.d.ts +9 -0
- package/esm/models/operationsbundledownload.d.ts.map +1 -1
- package/esm/models/operationsbundledownload.js +1 -0
- package/esm/models/operationsbundledownload.js.map +1 -1
- package/esm/models/operationsconfig.d.ts +29 -0
- package/esm/models/operationsconfig.d.ts.map +1 -0
- package/esm/models/operationsconfig.js +16 -0
- package/esm/models/operationsconfig.js.map +1 -0
- package/esm/models/operationsettingvalueunion.d.ts +62 -0
- package/esm/models/operationsettingvalueunion.d.ts.map +1 -0
- package/esm/models/operationsettingvalueunion.js +36 -0
- package/esm/models/operationsettingvalueunion.js.map +1 -0
- package/esm/models/pluginoperationsconfig.d.ts +36 -0
- package/esm/models/pluginoperationsconfig.d.ts.map +1 -0
- package/esm/models/pluginoperationsconfig.js +17 -0
- package/esm/models/pluginoperationsconfig.js.map +1 -0
- package/esm/models/setquotawarningoverridesrequest.d.ts +15 -0
- package/esm/models/setquotawarningoverridesrequest.d.ts.map +1 -0
- package/esm/models/setquotawarningoverridesrequest.js +12 -0
- package/esm/models/setquotawarningoverridesrequest.js.map +1 -0
- package/esm/models/setupmanagement.d.ts +18 -0
- package/esm/models/setupmanagement.d.ts.map +1 -0
- package/esm/models/setupmanagement.js +16 -0
- package/esm/models/setupmanagement.js.map +1 -0
- package/esm/models/stacksettings.d.ts +15 -0
- package/esm/models/stacksettings.d.ts.map +1 -1
- package/esm/models/stacksettings.js +5 -0
- package/esm/models/stacksettings.js.map +1 -1
- package/esm/sdk/deployments.d.ts +4 -0
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js +7 -0
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/sdk.d.ts +0 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{credentialsMintCredentials.ts → deploymentsSetQuotaWarningOverrides.ts} +43 -18
- package/src/lib/config.ts +2 -2
- package/src/models/agentsyncrequest.ts +8 -0
- package/src/models/computesettings.ts +15 -0
- package/src/models/containerresourceselection.ts +72 -0
- package/src/models/custompluginoperationsconfig.ts +71 -0
- package/src/models/index.ts +9 -12
- package/src/models/operationapprovaldecision.ts +25 -0
- package/src/models/operationapprovalunion.ts +78 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/setquotawarningoverrides.ts +46 -0
- package/src/models/operationsbundledownload.ts +8 -0
- package/src/models/operationsconfig.ts +53 -0
- package/src/models/operationsettingvalueunion.ts +136 -0
- package/src/models/pluginoperationsconfig.ts +57 -0
- package/src/models/setquotawarningoverridesrequest.ts +35 -0
- package/src/models/setupmanagement.ts +25 -0
- package/src/models/stacksettings.ts +23 -0
- package/src/sdk/deployments.ts +17 -0
- package/src/sdk/sdk.ts +0 -6
- package/esm/funcs/credentialsMintCredentials.d.ts.map +0 -1
- package/esm/funcs/credentialsMintCredentials.js.map +0 -1
- package/esm/models/awscredentials.d.ts +0 -121
- package/esm/models/awscredentials.d.ts.map +0 -1
- package/esm/models/awscredentials.js +0 -93
- package/esm/models/awscredentials.js.map +0 -1
- package/esm/models/awsserviceoverrides.d.ts +0 -21
- package/esm/models/awsserviceoverrides.d.ts.map +0 -1
- package/esm/models/awsserviceoverrides.js +0 -13
- package/esm/models/awsserviceoverrides.js.map +0 -1
- package/esm/models/awswebidentityconfig.d.ts +0 -28
- package/esm/models/awswebidentityconfig.d.ts.map +0 -1
- package/esm/models/awswebidentityconfig.js +0 -16
- package/esm/models/awswebidentityconfig.js.map +0 -1
- package/esm/models/azurecredentials.d.ts +0 -132
- package/esm/models/azurecredentials.d.ts.map +0 -1
- package/esm/models/azurecredentials.js +0 -97
- package/esm/models/azurecredentials.js.map +0 -1
- package/esm/models/azureserviceoverrides.d.ts +0 -21
- package/esm/models/azureserviceoverrides.d.ts.map +0 -1
- package/esm/models/azureserviceoverrides.js +0 -13
- package/esm/models/azureserviceoverrides.js.map +0 -1
- package/esm/models/clientconfigunion.d.ts +0 -284
- package/esm/models/clientconfigunion.d.ts.map +0 -1
- package/esm/models/clientconfigunion.js +0 -201
- package/esm/models/clientconfigunion.js.map +0 -1
- package/esm/models/gcpcredentials.d.ts +0 -138
- package/esm/models/gcpcredentials.d.ts.map +0 -1
- package/esm/models/gcpcredentials.js +0 -107
- package/esm/models/gcpcredentials.js.map +0 -1
- package/esm/models/gcpimpersonationconfig.d.ts +0 -42
- package/esm/models/gcpimpersonationconfig.d.ts.map +0 -1
- package/esm/models/gcpimpersonationconfig.js +0 -18
- package/esm/models/gcpimpersonationconfig.js.map +0 -1
- package/esm/models/gcpserviceoverrides.d.ts +0 -21
- package/esm/models/gcpserviceoverrides.d.ts.map +0 -1
- package/esm/models/gcpserviceoverrides.js +0 -13
- package/esm/models/gcpserviceoverrides.js.map +0 -1
- package/esm/models/kubernetesclientconfig.d.ts +0 -116
- package/esm/models/kubernetesclientconfig.d.ts.map +0 -1
- package/esm/models/kubernetesclientconfig.js +0 -73
- package/esm/models/kubernetesclientconfig.js.map +0 -1
- package/esm/models/mintcredentialsrequest.d.ts +0 -49
- package/esm/models/mintcredentialsrequest.d.ts.map +0 -1
- package/esm/models/mintcredentialsrequest.js +0 -15
- package/esm/models/mintcredentialsrequest.js.map +0 -1
- package/esm/models/mintcredentialsresponse.d.ts +0 -37
- package/esm/models/mintcredentialsresponse.d.ts.map +0 -1
- package/esm/models/mintcredentialsresponse.js +0 -16
- package/esm/models/mintcredentialsresponse.js.map +0 -1
- package/esm/sdk/credentials.d.ts +0 -6
- package/esm/sdk/credentials.d.ts.map +0 -1
- package/esm/sdk/credentials.js +0 -12
- package/esm/sdk/credentials.js.map +0 -1
- package/src/models/awscredentials.ts +0 -281
- package/src/models/awsserviceoverrides.ts +0 -39
- package/src/models/awswebidentityconfig.ts +0 -51
- package/src/models/azurecredentials.ts +0 -295
- package/src/models/azureserviceoverrides.ts +0 -39
- package/src/models/clientconfigunion.ts +0 -602
- package/src/models/gcpcredentials.ts +0 -335
- package/src/models/gcpimpersonationconfig.ts +0 -67
- package/src/models/gcpserviceoverrides.ts +0 -39
- package/src/models/kubernetesclientconfig.ts +0 -220
- package/src/models/mintcredentialsrequest.ts +0 -70
- package/src/models/mintcredentialsresponse.ts +0 -62
- package/src/sdk/credentials.ts +0 -21
|
@@ -1,602 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4";
|
|
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 {
|
|
11
|
-
AwsCredentials,
|
|
12
|
-
AwsCredentials$inboundSchema,
|
|
13
|
-
} from "./awscredentials.js";
|
|
14
|
-
import {
|
|
15
|
-
AwsServiceOverrides,
|
|
16
|
-
AwsServiceOverrides$inboundSchema,
|
|
17
|
-
} from "./awsserviceoverrides.js";
|
|
18
|
-
import {
|
|
19
|
-
AzureCredentials,
|
|
20
|
-
AzureCredentials$inboundSchema,
|
|
21
|
-
} from "./azurecredentials.js";
|
|
22
|
-
import {
|
|
23
|
-
AzureServiceOverrides,
|
|
24
|
-
AzureServiceOverrides$inboundSchema,
|
|
25
|
-
} from "./azureserviceoverrides.js";
|
|
26
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
27
|
-
import {
|
|
28
|
-
GcpCredentials,
|
|
29
|
-
GcpCredentials$inboundSchema,
|
|
30
|
-
} from "./gcpcredentials.js";
|
|
31
|
-
import {
|
|
32
|
-
GcpServiceOverrides,
|
|
33
|
-
GcpServiceOverrides$inboundSchema,
|
|
34
|
-
} from "./gcpserviceoverrides.js";
|
|
35
|
-
import {
|
|
36
|
-
KubernetesClientConfig,
|
|
37
|
-
KubernetesClientConfig$inboundSchema,
|
|
38
|
-
} from "./kubernetesclientconfig.js";
|
|
39
|
-
|
|
40
|
-
export const PlatformLocal = {
|
|
41
|
-
Local: "local",
|
|
42
|
-
} as const;
|
|
43
|
-
export type PlatformLocal = ClosedEnum<typeof PlatformLocal>;
|
|
44
|
-
|
|
45
|
-
export type ClientConfigLocal = {
|
|
46
|
-
platform: PlatformLocal;
|
|
47
|
-
/**
|
|
48
|
-
* State directory for local resources and deployment state
|
|
49
|
-
*/
|
|
50
|
-
stateDirectory: string;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export type Cloud = {};
|
|
54
|
-
|
|
55
|
-
export const PlatformKubernetesCloud = {
|
|
56
|
-
KubernetesCloud: "kubernetesCloud",
|
|
57
|
-
} as const;
|
|
58
|
-
export type PlatformKubernetesCloud = ClosedEnum<
|
|
59
|
-
typeof PlatformKubernetesCloud
|
|
60
|
-
>;
|
|
61
|
-
|
|
62
|
-
export type ClientConfigKubernetesCloud = {
|
|
63
|
-
cloud: Cloud;
|
|
64
|
-
/**
|
|
65
|
-
* Configuration mode for Kubernetes access
|
|
66
|
-
*/
|
|
67
|
-
kubernetes: KubernetesClientConfig;
|
|
68
|
-
platform: PlatformKubernetesCloud;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export const ClientConfigPlatformKubernetes3 = {
|
|
72
|
-
Kubernetes: "kubernetes",
|
|
73
|
-
} as const;
|
|
74
|
-
export type ClientConfigPlatformKubernetes3 = ClosedEnum<
|
|
75
|
-
typeof ClientConfigPlatformKubernetes3
|
|
76
|
-
>;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Manual configuration with explicit values
|
|
80
|
-
*/
|
|
81
|
-
export type ClientConfigManual = {
|
|
82
|
-
/**
|
|
83
|
-
* Additional headers to include in requests
|
|
84
|
-
*/
|
|
85
|
-
additionalHeaders: { [k: string]: string };
|
|
86
|
-
/**
|
|
87
|
-
* The cluster certificate authority data (base64 encoded)
|
|
88
|
-
*/
|
|
89
|
-
certificateAuthorityData?: string | null | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Client certificate data (base64 encoded) for mutual TLS
|
|
92
|
-
*/
|
|
93
|
-
clientCertificateData?: string | null | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Client key data (base64 encoded) for mutual TLS
|
|
96
|
-
*/
|
|
97
|
-
clientKeyData?: string | null | undefined;
|
|
98
|
-
/**
|
|
99
|
-
* Skip TLS verification (insecure)
|
|
100
|
-
*/
|
|
101
|
-
insecureSkipTlsVerify?: boolean | null | undefined;
|
|
102
|
-
mode: "manual";
|
|
103
|
-
/**
|
|
104
|
-
* The namespace to operate in
|
|
105
|
-
*/
|
|
106
|
-
namespace?: string | null | undefined;
|
|
107
|
-
/**
|
|
108
|
-
* Password for basic authentication
|
|
109
|
-
*/
|
|
110
|
-
password?: string | null | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* The Kubernetes cluster server URL
|
|
113
|
-
*/
|
|
114
|
-
serverUrl: string;
|
|
115
|
-
/**
|
|
116
|
-
* Bearer token for authentication
|
|
117
|
-
*/
|
|
118
|
-
token?: string | null | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Username for basic authentication
|
|
121
|
-
*/
|
|
122
|
-
username?: string | null | undefined;
|
|
123
|
-
platform: ClientConfigPlatformKubernetes3;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export const ClientConfigPlatformKubernetes2 = {
|
|
127
|
-
Kubernetes: "kubernetes",
|
|
128
|
-
} as const;
|
|
129
|
-
export type ClientConfigPlatformKubernetes2 = ClosedEnum<
|
|
130
|
-
typeof ClientConfigPlatformKubernetes2
|
|
131
|
-
>;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Use kubeconfig file for configuration
|
|
135
|
-
*/
|
|
136
|
-
export type ClientConfigKubeconfig = {
|
|
137
|
-
/**
|
|
138
|
-
* Additional headers to include in requests
|
|
139
|
-
*/
|
|
140
|
-
additionalHeaders?: { [k: string]: string } | null | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* Cluster name to use (optional, defaults to context's cluster)
|
|
143
|
-
*/
|
|
144
|
-
cluster?: string | null | undefined;
|
|
145
|
-
/**
|
|
146
|
-
* Context name to use (optional, defaults to current-context)
|
|
147
|
-
*/
|
|
148
|
-
context?: string | null | undefined;
|
|
149
|
-
/**
|
|
150
|
-
* Path to kubeconfig file (optional, defaults to standard locations)
|
|
151
|
-
*/
|
|
152
|
-
kubeconfigPath?: string | null | undefined;
|
|
153
|
-
mode: "kubeconfig";
|
|
154
|
-
/**
|
|
155
|
-
* The namespace to operate in
|
|
156
|
-
*/
|
|
157
|
-
namespace?: string | null | undefined;
|
|
158
|
-
/**
|
|
159
|
-
* User name to use (optional, defaults to context's user)
|
|
160
|
-
*/
|
|
161
|
-
user?: string | null | undefined;
|
|
162
|
-
platform: ClientConfigPlatformKubernetes2;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
export const ClientConfigPlatformKubernetes1 = {
|
|
166
|
-
Kubernetes: "kubernetes",
|
|
167
|
-
} as const;
|
|
168
|
-
export type ClientConfigPlatformKubernetes1 = ClosedEnum<
|
|
169
|
-
typeof ClientConfigPlatformKubernetes1
|
|
170
|
-
>;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Use in-cluster configuration (service account tokens, etc.)
|
|
174
|
-
*/
|
|
175
|
-
export type ClientConfigInCluster = {
|
|
176
|
-
/**
|
|
177
|
-
* Additional headers to include in requests
|
|
178
|
-
*/
|
|
179
|
-
additionalHeaders?: { [k: string]: string } | null | undefined;
|
|
180
|
-
mode: "inCluster";
|
|
181
|
-
/**
|
|
182
|
-
* The namespace to operate in
|
|
183
|
-
*/
|
|
184
|
-
namespace?: string | null | undefined;
|
|
185
|
-
platform: ClientConfigPlatformKubernetes1;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Configuration mode for Kubernetes access
|
|
190
|
-
*/
|
|
191
|
-
export type ClientConfigUnion1 =
|
|
192
|
-
| ClientConfigInCluster
|
|
193
|
-
| ClientConfigKubeconfig
|
|
194
|
-
| ClientConfigManual;
|
|
195
|
-
|
|
196
|
-
export const ClientConfigPlatformAzure = {
|
|
197
|
-
Azure: "azure",
|
|
198
|
-
} as const;
|
|
199
|
-
export type ClientConfigPlatformAzure = ClosedEnum<
|
|
200
|
-
typeof ClientConfigPlatformAzure
|
|
201
|
-
>;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Azure client configuration
|
|
205
|
-
*/
|
|
206
|
-
export type ClientConfigAzure = {
|
|
207
|
-
/**
|
|
208
|
-
* Represents Azure authentication credentials
|
|
209
|
-
*/
|
|
210
|
-
credentials: AzureCredentials;
|
|
211
|
-
/**
|
|
212
|
-
* Azure region for resources.
|
|
213
|
-
*/
|
|
214
|
-
region?: string | null | undefined;
|
|
215
|
-
serviceOverrides?: AzureServiceOverrides | null | undefined;
|
|
216
|
-
/**
|
|
217
|
-
* The Azure Subscription ID where resources will be deployed.
|
|
218
|
-
*/
|
|
219
|
-
subscriptionId: string;
|
|
220
|
-
/**
|
|
221
|
-
* The customer's Azure Tenant ID.
|
|
222
|
-
*/
|
|
223
|
-
tenantId: string;
|
|
224
|
-
platform: ClientConfigPlatformAzure;
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
export const ClientConfigPlatformGcp = {
|
|
228
|
-
Gcp: "gcp",
|
|
229
|
-
} as const;
|
|
230
|
-
export type ClientConfigPlatformGcp = ClosedEnum<
|
|
231
|
-
typeof ClientConfigPlatformGcp
|
|
232
|
-
>;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* GCP client configuration
|
|
236
|
-
*/
|
|
237
|
-
export type ClientConfigGcp = {
|
|
238
|
-
/**
|
|
239
|
-
* Authentication options for talking to GCP APIs.
|
|
240
|
-
*/
|
|
241
|
-
credentials: GcpCredentials;
|
|
242
|
-
/**
|
|
243
|
-
* The GCP Project ID.
|
|
244
|
-
*/
|
|
245
|
-
projectId: string;
|
|
246
|
-
/**
|
|
247
|
-
* The GCP project number (numeric). Resolved at runtime via Resource Manager API.
|
|
248
|
-
*
|
|
249
|
-
* @remarks
|
|
250
|
-
* Used in IAM condition expressions where resource.name uses project number.
|
|
251
|
-
*/
|
|
252
|
-
projectNumber?: string | null | undefined;
|
|
253
|
-
/**
|
|
254
|
-
* The GCP region for resources.
|
|
255
|
-
*/
|
|
256
|
-
region: string;
|
|
257
|
-
serviceOverrides?: GcpServiceOverrides | null | undefined;
|
|
258
|
-
platform: ClientConfigPlatformGcp;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
export const ClientConfigPlatformAws = {
|
|
262
|
-
Aws: "aws",
|
|
263
|
-
} as const;
|
|
264
|
-
export type ClientConfigPlatformAws = ClosedEnum<
|
|
265
|
-
typeof ClientConfigPlatformAws
|
|
266
|
-
>;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* AWS client configuration
|
|
270
|
-
*/
|
|
271
|
-
export type ClientConfigAws = {
|
|
272
|
-
/**
|
|
273
|
-
* The AWS Account ID.
|
|
274
|
-
*/
|
|
275
|
-
accountId: string;
|
|
276
|
-
/**
|
|
277
|
-
* Supported AWS authentication methods
|
|
278
|
-
*/
|
|
279
|
-
credentials: AwsCredentials;
|
|
280
|
-
/**
|
|
281
|
-
* The AWS region.
|
|
282
|
-
*/
|
|
283
|
-
region: string;
|
|
284
|
-
serviceOverrides?: AwsServiceOverrides | null | undefined;
|
|
285
|
-
platform: ClientConfigPlatformAws;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Configuration for different cloud platform clients
|
|
290
|
-
*/
|
|
291
|
-
export type ClientConfigUnion =
|
|
292
|
-
| ClientConfigAws
|
|
293
|
-
| ClientConfigGcp
|
|
294
|
-
| ClientConfigAzure
|
|
295
|
-
| ClientConfigKubernetesCloud
|
|
296
|
-
| ClientConfigLocal
|
|
297
|
-
| ClientConfigInCluster
|
|
298
|
-
| ClientConfigKubeconfig
|
|
299
|
-
| ClientConfigManual;
|
|
300
|
-
|
|
301
|
-
/** @internal */
|
|
302
|
-
export const PlatformLocal$inboundSchema: z.ZodEnum<typeof PlatformLocal> = z
|
|
303
|
-
.enum(PlatformLocal);
|
|
304
|
-
|
|
305
|
-
/** @internal */
|
|
306
|
-
export const ClientConfigLocal$inboundSchema: z.ZodType<
|
|
307
|
-
ClientConfigLocal,
|
|
308
|
-
unknown
|
|
309
|
-
> = z.object({
|
|
310
|
-
platform: PlatformLocal$inboundSchema,
|
|
311
|
-
state_directory: z.string(),
|
|
312
|
-
}).transform((v) => {
|
|
313
|
-
return remap$(v, {
|
|
314
|
-
"state_directory": "stateDirectory",
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
export function clientConfigLocalFromJSON(
|
|
319
|
-
jsonString: string,
|
|
320
|
-
): SafeParseResult<ClientConfigLocal, SDKValidationError> {
|
|
321
|
-
return safeParse(
|
|
322
|
-
jsonString,
|
|
323
|
-
(x) => ClientConfigLocal$inboundSchema.parse(JSON.parse(x)),
|
|
324
|
-
`Failed to parse 'ClientConfigLocal' from JSON`,
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/** @internal */
|
|
329
|
-
export const Cloud$inboundSchema: z.ZodType<Cloud, unknown> = z.object({});
|
|
330
|
-
|
|
331
|
-
export function cloudFromJSON(
|
|
332
|
-
jsonString: string,
|
|
333
|
-
): SafeParseResult<Cloud, SDKValidationError> {
|
|
334
|
-
return safeParse(
|
|
335
|
-
jsonString,
|
|
336
|
-
(x) => Cloud$inboundSchema.parse(JSON.parse(x)),
|
|
337
|
-
`Failed to parse 'Cloud' from JSON`,
|
|
338
|
-
);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/** @internal */
|
|
342
|
-
export const PlatformKubernetesCloud$inboundSchema: z.ZodEnum<
|
|
343
|
-
typeof PlatformKubernetesCloud
|
|
344
|
-
> = z.enum(PlatformKubernetesCloud);
|
|
345
|
-
|
|
346
|
-
/** @internal */
|
|
347
|
-
export const ClientConfigKubernetesCloud$inboundSchema: z.ZodType<
|
|
348
|
-
ClientConfigKubernetesCloud,
|
|
349
|
-
unknown
|
|
350
|
-
> = z.object({
|
|
351
|
-
cloud: z.lazy(() => Cloud$inboundSchema),
|
|
352
|
-
kubernetes: KubernetesClientConfig$inboundSchema,
|
|
353
|
-
platform: PlatformKubernetesCloud$inboundSchema,
|
|
354
|
-
});
|
|
355
|
-
|
|
356
|
-
export function clientConfigKubernetesCloudFromJSON(
|
|
357
|
-
jsonString: string,
|
|
358
|
-
): SafeParseResult<ClientConfigKubernetesCloud, SDKValidationError> {
|
|
359
|
-
return safeParse(
|
|
360
|
-
jsonString,
|
|
361
|
-
(x) => ClientConfigKubernetesCloud$inboundSchema.parse(JSON.parse(x)),
|
|
362
|
-
`Failed to parse 'ClientConfigKubernetesCloud' from JSON`,
|
|
363
|
-
);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/** @internal */
|
|
367
|
-
export const ClientConfigPlatformKubernetes3$inboundSchema: z.ZodEnum<
|
|
368
|
-
typeof ClientConfigPlatformKubernetes3
|
|
369
|
-
> = z.enum(ClientConfigPlatformKubernetes3);
|
|
370
|
-
|
|
371
|
-
/** @internal */
|
|
372
|
-
export const ClientConfigManual$inboundSchema: z.ZodType<
|
|
373
|
-
ClientConfigManual,
|
|
374
|
-
unknown
|
|
375
|
-
> = z.object({
|
|
376
|
-
additional_headers: z.record(z.string(), z.string()),
|
|
377
|
-
certificate_authority_data: z.nullable(z.string()).optional(),
|
|
378
|
-
client_certificate_data: z.nullable(z.string()).optional(),
|
|
379
|
-
client_key_data: z.nullable(z.string()).optional(),
|
|
380
|
-
insecure_skip_tls_verify: z.nullable(z.boolean()).optional(),
|
|
381
|
-
mode: z.literal("manual"),
|
|
382
|
-
namespace: z.nullable(z.string()).optional(),
|
|
383
|
-
password: z.nullable(z.string()).optional(),
|
|
384
|
-
server_url: z.string(),
|
|
385
|
-
token: z.nullable(z.string()).optional(),
|
|
386
|
-
username: z.nullable(z.string()).optional(),
|
|
387
|
-
platform: ClientConfigPlatformKubernetes3$inboundSchema,
|
|
388
|
-
}).transform((v) => {
|
|
389
|
-
return remap$(v, {
|
|
390
|
-
"additional_headers": "additionalHeaders",
|
|
391
|
-
"certificate_authority_data": "certificateAuthorityData",
|
|
392
|
-
"client_certificate_data": "clientCertificateData",
|
|
393
|
-
"client_key_data": "clientKeyData",
|
|
394
|
-
"insecure_skip_tls_verify": "insecureSkipTlsVerify",
|
|
395
|
-
"server_url": "serverUrl",
|
|
396
|
-
});
|
|
397
|
-
});
|
|
398
|
-
|
|
399
|
-
export function clientConfigManualFromJSON(
|
|
400
|
-
jsonString: string,
|
|
401
|
-
): SafeParseResult<ClientConfigManual, SDKValidationError> {
|
|
402
|
-
return safeParse(
|
|
403
|
-
jsonString,
|
|
404
|
-
(x) => ClientConfigManual$inboundSchema.parse(JSON.parse(x)),
|
|
405
|
-
`Failed to parse 'ClientConfigManual' from JSON`,
|
|
406
|
-
);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/** @internal */
|
|
410
|
-
export const ClientConfigPlatformKubernetes2$inboundSchema: z.ZodEnum<
|
|
411
|
-
typeof ClientConfigPlatformKubernetes2
|
|
412
|
-
> = z.enum(ClientConfigPlatformKubernetes2);
|
|
413
|
-
|
|
414
|
-
/** @internal */
|
|
415
|
-
export const ClientConfigKubeconfig$inboundSchema: z.ZodType<
|
|
416
|
-
ClientConfigKubeconfig,
|
|
417
|
-
unknown
|
|
418
|
-
> = z.object({
|
|
419
|
-
additional_headers: z.nullable(z.record(z.string(), z.string())).optional(),
|
|
420
|
-
cluster: z.nullable(z.string()).optional(),
|
|
421
|
-
context: z.nullable(z.string()).optional(),
|
|
422
|
-
kubeconfig_path: z.nullable(z.string()).optional(),
|
|
423
|
-
mode: z.literal("kubeconfig"),
|
|
424
|
-
namespace: z.nullable(z.string()).optional(),
|
|
425
|
-
user: z.nullable(z.string()).optional(),
|
|
426
|
-
platform: ClientConfigPlatformKubernetes2$inboundSchema,
|
|
427
|
-
}).transform((v) => {
|
|
428
|
-
return remap$(v, {
|
|
429
|
-
"additional_headers": "additionalHeaders",
|
|
430
|
-
"kubeconfig_path": "kubeconfigPath",
|
|
431
|
-
});
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
export function clientConfigKubeconfigFromJSON(
|
|
435
|
-
jsonString: string,
|
|
436
|
-
): SafeParseResult<ClientConfigKubeconfig, SDKValidationError> {
|
|
437
|
-
return safeParse(
|
|
438
|
-
jsonString,
|
|
439
|
-
(x) => ClientConfigKubeconfig$inboundSchema.parse(JSON.parse(x)),
|
|
440
|
-
`Failed to parse 'ClientConfigKubeconfig' from JSON`,
|
|
441
|
-
);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/** @internal */
|
|
445
|
-
export const ClientConfigPlatformKubernetes1$inboundSchema: z.ZodEnum<
|
|
446
|
-
typeof ClientConfigPlatformKubernetes1
|
|
447
|
-
> = z.enum(ClientConfigPlatformKubernetes1);
|
|
448
|
-
|
|
449
|
-
/** @internal */
|
|
450
|
-
export const ClientConfigInCluster$inboundSchema: z.ZodType<
|
|
451
|
-
ClientConfigInCluster,
|
|
452
|
-
unknown
|
|
453
|
-
> = z.object({
|
|
454
|
-
additional_headers: z.nullable(z.record(z.string(), z.string())).optional(),
|
|
455
|
-
mode: z.literal("inCluster"),
|
|
456
|
-
namespace: z.nullable(z.string()).optional(),
|
|
457
|
-
platform: ClientConfigPlatformKubernetes1$inboundSchema,
|
|
458
|
-
}).transform((v) => {
|
|
459
|
-
return remap$(v, {
|
|
460
|
-
"additional_headers": "additionalHeaders",
|
|
461
|
-
});
|
|
462
|
-
});
|
|
463
|
-
|
|
464
|
-
export function clientConfigInClusterFromJSON(
|
|
465
|
-
jsonString: string,
|
|
466
|
-
): SafeParseResult<ClientConfigInCluster, SDKValidationError> {
|
|
467
|
-
return safeParse(
|
|
468
|
-
jsonString,
|
|
469
|
-
(x) => ClientConfigInCluster$inboundSchema.parse(JSON.parse(x)),
|
|
470
|
-
`Failed to parse 'ClientConfigInCluster' from JSON`,
|
|
471
|
-
);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/** @internal */
|
|
475
|
-
export const ClientConfigUnion1$inboundSchema: z.ZodType<
|
|
476
|
-
ClientConfigUnion1,
|
|
477
|
-
unknown
|
|
478
|
-
> = z.union([
|
|
479
|
-
z.lazy(() => ClientConfigInCluster$inboundSchema),
|
|
480
|
-
z.lazy(() => ClientConfigKubeconfig$inboundSchema),
|
|
481
|
-
z.lazy(() => ClientConfigManual$inboundSchema),
|
|
482
|
-
]);
|
|
483
|
-
|
|
484
|
-
export function clientConfigUnion1FromJSON(
|
|
485
|
-
jsonString: string,
|
|
486
|
-
): SafeParseResult<ClientConfigUnion1, SDKValidationError> {
|
|
487
|
-
return safeParse(
|
|
488
|
-
jsonString,
|
|
489
|
-
(x) => ClientConfigUnion1$inboundSchema.parse(JSON.parse(x)),
|
|
490
|
-
`Failed to parse 'ClientConfigUnion1' from JSON`,
|
|
491
|
-
);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/** @internal */
|
|
495
|
-
export const ClientConfigPlatformAzure$inboundSchema: z.ZodEnum<
|
|
496
|
-
typeof ClientConfigPlatformAzure
|
|
497
|
-
> = z.enum(ClientConfigPlatformAzure);
|
|
498
|
-
|
|
499
|
-
/** @internal */
|
|
500
|
-
export const ClientConfigAzure$inboundSchema: z.ZodType<
|
|
501
|
-
ClientConfigAzure,
|
|
502
|
-
unknown
|
|
503
|
-
> = z.object({
|
|
504
|
-
credentials: AzureCredentials$inboundSchema,
|
|
505
|
-
region: z.nullable(z.string()).optional(),
|
|
506
|
-
serviceOverrides: z.nullable(AzureServiceOverrides$inboundSchema).optional(),
|
|
507
|
-
subscriptionId: z.string(),
|
|
508
|
-
tenantId: z.string(),
|
|
509
|
-
platform: ClientConfigPlatformAzure$inboundSchema,
|
|
510
|
-
});
|
|
511
|
-
|
|
512
|
-
export function clientConfigAzureFromJSON(
|
|
513
|
-
jsonString: string,
|
|
514
|
-
): SafeParseResult<ClientConfigAzure, SDKValidationError> {
|
|
515
|
-
return safeParse(
|
|
516
|
-
jsonString,
|
|
517
|
-
(x) => ClientConfigAzure$inboundSchema.parse(JSON.parse(x)),
|
|
518
|
-
`Failed to parse 'ClientConfigAzure' from JSON`,
|
|
519
|
-
);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/** @internal */
|
|
523
|
-
export const ClientConfigPlatformGcp$inboundSchema: z.ZodEnum<
|
|
524
|
-
typeof ClientConfigPlatformGcp
|
|
525
|
-
> = z.enum(ClientConfigPlatformGcp);
|
|
526
|
-
|
|
527
|
-
/** @internal */
|
|
528
|
-
export const ClientConfigGcp$inboundSchema: z.ZodType<
|
|
529
|
-
ClientConfigGcp,
|
|
530
|
-
unknown
|
|
531
|
-
> = z.object({
|
|
532
|
-
credentials: GcpCredentials$inboundSchema,
|
|
533
|
-
projectId: z.string(),
|
|
534
|
-
projectNumber: z.nullable(z.string()).optional(),
|
|
535
|
-
region: z.string(),
|
|
536
|
-
serviceOverrides: z.nullable(GcpServiceOverrides$inboundSchema).optional(),
|
|
537
|
-
platform: ClientConfigPlatformGcp$inboundSchema,
|
|
538
|
-
});
|
|
539
|
-
|
|
540
|
-
export function clientConfigGcpFromJSON(
|
|
541
|
-
jsonString: string,
|
|
542
|
-
): SafeParseResult<ClientConfigGcp, SDKValidationError> {
|
|
543
|
-
return safeParse(
|
|
544
|
-
jsonString,
|
|
545
|
-
(x) => ClientConfigGcp$inboundSchema.parse(JSON.parse(x)),
|
|
546
|
-
`Failed to parse 'ClientConfigGcp' from JSON`,
|
|
547
|
-
);
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
/** @internal */
|
|
551
|
-
export const ClientConfigPlatformAws$inboundSchema: z.ZodEnum<
|
|
552
|
-
typeof ClientConfigPlatformAws
|
|
553
|
-
> = z.enum(ClientConfigPlatformAws);
|
|
554
|
-
|
|
555
|
-
/** @internal */
|
|
556
|
-
export const ClientConfigAws$inboundSchema: z.ZodType<
|
|
557
|
-
ClientConfigAws,
|
|
558
|
-
unknown
|
|
559
|
-
> = z.object({
|
|
560
|
-
accountId: z.string(),
|
|
561
|
-
credentials: AwsCredentials$inboundSchema,
|
|
562
|
-
region: z.string(),
|
|
563
|
-
serviceOverrides: z.nullable(AwsServiceOverrides$inboundSchema).optional(),
|
|
564
|
-
platform: ClientConfigPlatformAws$inboundSchema,
|
|
565
|
-
});
|
|
566
|
-
|
|
567
|
-
export function clientConfigAwsFromJSON(
|
|
568
|
-
jsonString: string,
|
|
569
|
-
): SafeParseResult<ClientConfigAws, SDKValidationError> {
|
|
570
|
-
return safeParse(
|
|
571
|
-
jsonString,
|
|
572
|
-
(x) => ClientConfigAws$inboundSchema.parse(JSON.parse(x)),
|
|
573
|
-
`Failed to parse 'ClientConfigAws' from JSON`,
|
|
574
|
-
);
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
/** @internal */
|
|
578
|
-
export const ClientConfigUnion$inboundSchema: z.ZodType<
|
|
579
|
-
ClientConfigUnion,
|
|
580
|
-
unknown
|
|
581
|
-
> = z.union([
|
|
582
|
-
z.lazy(() => ClientConfigAws$inboundSchema),
|
|
583
|
-
z.lazy(() => ClientConfigGcp$inboundSchema),
|
|
584
|
-
z.lazy(() => ClientConfigAzure$inboundSchema),
|
|
585
|
-
z.lazy(() => ClientConfigKubernetesCloud$inboundSchema),
|
|
586
|
-
z.lazy(() => ClientConfigLocal$inboundSchema),
|
|
587
|
-
z.union([
|
|
588
|
-
z.lazy(() => ClientConfigInCluster$inboundSchema),
|
|
589
|
-
z.lazy(() => ClientConfigKubeconfig$inboundSchema),
|
|
590
|
-
z.lazy(() => ClientConfigManual$inboundSchema),
|
|
591
|
-
]),
|
|
592
|
-
]);
|
|
593
|
-
|
|
594
|
-
export function clientConfigUnionFromJSON(
|
|
595
|
-
jsonString: string,
|
|
596
|
-
): SafeParseResult<ClientConfigUnion, SDKValidationError> {
|
|
597
|
-
return safeParse(
|
|
598
|
-
jsonString,
|
|
599
|
-
(x) => ClientConfigUnion$inboundSchema.parse(JSON.parse(x)),
|
|
600
|
-
`Failed to parse 'ClientConfigUnion' from JSON`,
|
|
601
|
-
);
|
|
602
|
-
}
|