@alienplatform/manager-api 3.3.29 → 3.3.31
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/esm/funcs/commandsStoreCommandPayload.d.ts +2 -2
- package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
- package/esm/funcs/commandsStoreCommandPayload.js +8 -4
- package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
- package/esm/funcs/commandsSubmitResponse.d.ts +2 -2
- package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
- package/esm/funcs/commandsSubmitResponse.js +8 -4
- package/esm/funcs/commandsSubmitResponse.js.map +1 -1
- package/esm/funcs/commandsUploadComplete.d.ts +1 -2
- package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
- package/esm/funcs/commandsUploadComplete.js +8 -4
- package/esm/funcs/commandsUploadComplete.js.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.d.ts +1 -2
- package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.js +8 -4
- package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
- package/esm/funcs/deploymentsImportDeploymentStatus.d.ts +1 -2
- package/esm/funcs/deploymentsImportDeploymentStatus.d.ts.map +1 -1
- package/esm/funcs/deploymentsImportDeploymentStatus.js +8 -4
- package/esm/funcs/deploymentsImportDeploymentStatus.js.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentChannel.d.ts +1 -2
- package/esm/funcs/deploymentsSetDeploymentChannel.d.ts.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentChannel.js +8 -4
- package/esm/funcs/deploymentsSetDeploymentChannel.js.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentPin.d.ts +1 -2
- package/esm/funcs/deploymentsSetDeploymentPin.d.ts.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentPin.js +8 -4
- package/esm/funcs/deploymentsSetDeploymentPin.js.map +1 -1
- package/esm/funcs/deploymentsSignDeploymentBundle.d.ts +1 -2
- package/esm/funcs/deploymentsSignDeploymentBundle.d.ts.map +1 -1
- package/esm/funcs/deploymentsSignDeploymentBundle.js +8 -4
- package/esm/funcs/deploymentsSignDeploymentBundle.js.map +1 -1
- package/esm/funcs/releasesPromoteManagerRelease.d.ts +1 -2
- package/esm/funcs/releasesPromoteManagerRelease.d.ts.map +1 -1
- package/esm/funcs/releasesPromoteManagerRelease.js +8 -4
- package/esm/funcs/releasesPromoteManagerRelease.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/acquireresponse.d.ts +8 -0
- package/esm/models/acquireresponse.d.ts.map +1 -1
- package/esm/models/acquireresponse.js +2 -0
- package/esm/models/acquireresponse.js.map +1 -1
- package/esm/models/bindingvalueoptionstringunion.d.ts +39 -0
- package/esm/models/bindingvalueoptionstringunion.d.ts.map +1 -0
- package/esm/models/bindingvalueoptionstringunion.js +39 -0
- package/esm/models/bindingvalueoptionstringunion.js.map +1 -0
- package/esm/models/bindingvaluestringunion.d.ts +39 -0
- package/esm/models/bindingvaluestringunion.d.ts.map +1 -0
- package/esm/models/bindingvaluestringunion.js +39 -0
- package/esm/models/bindingvaluestringunion.js.map +1 -0
- package/esm/models/bindingvalueu16union.d.ts +39 -0
- package/esm/models/bindingvalueu16union.d.ts.map +1 -0
- package/esm/models/bindingvalueu16union.js +31 -0
- package/esm/models/bindingvalueu16union.js.map +1 -0
- package/esm/models/bindingvalueu8union.d.ts +39 -0
- package/esm/models/bindingvalueu8union.d.ts.map +1 -0
- package/esm/models/bindingvalueu8union.js +31 -0
- package/esm/models/bindingvalueu8union.js.map +1 -0
- package/esm/models/bindingvaluevecstringunion.d.ts +39 -0
- package/esm/models/bindingvaluevecstringunion.d.ts.map +1 -0
- package/esm/models/bindingvaluevecstringunion.js +39 -0
- package/esm/models/bindingvaluevecstringunion.js.map +1 -0
- package/esm/models/deploymentacquireunavailablereason.d.ts +32 -0
- package/esm/models/deploymentacquireunavailablereason.d.ts.map +1 -0
- package/esm/models/deploymentacquireunavailablereason.js +25 -0
- package/esm/models/deploymentacquireunavailablereason.js.map +1 -0
- package/esm/models/externalbindingunion.d.ts +1414 -0
- package/esm/models/externalbindingunion.d.ts.map +1 -0
- package/esm/models/externalbindingunion.js +1075 -0
- package/esm/models/externalbindingunion.js.map +1 -0
- package/esm/models/externalpostgressslmode.d.ts +28 -0
- package/esm/models/externalpostgressslmode.d.ts.map +1 -0
- package/esm/models/externalpostgressslmode.js +21 -0
- package/esm/models/externalpostgressslmode.js.map +1 -0
- package/esm/models/index.d.ts +10 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +10 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/secretreference.d.ts +22 -0
- package/esm/models/secretreference.d.ts.map +1 -0
- package/esm/models/secretreference.js +22 -0
- package/esm/models/secretreference.js.map +1 -0
- package/esm/models/stacksettings.d.ts +7 -27
- package/esm/models/stacksettings.d.ts.map +1 -1
- package/esm/models/stacksettings.js +3 -14
- package/esm/models/stacksettings.js.map +1 -1
- package/esm/models/unacquireddeployment.d.ts +24 -0
- package/esm/models/unacquireddeployment.d.ts.map +1 -0
- package/esm/models/unacquireddeployment.js +16 -0
- package/esm/models/unacquireddeployment.js.map +1 -0
- package/esm/sdk/commands.d.ts +3 -3
- package/esm/sdk/commands.d.ts.map +1 -1
- package/esm/sdk/commands.js +6 -6
- package/esm/sdk/commands.js.map +1 -1
- package/esm/sdk/deployments.d.ts +5 -5
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js +10 -10
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/releases.d.ts +1 -1
- package/esm/sdk/releases.d.ts.map +1 -1
- package/esm/sdk/releases.js +2 -2
- package/esm/sdk/releases.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/commandsStoreCommandPayload.ts +13 -4
- package/src/funcs/commandsSubmitResponse.ts +13 -4
- package/src/funcs/commandsUploadComplete.ts +12 -4
- package/src/funcs/deploymentsDeleteDeployment.ts +12 -4
- package/src/funcs/deploymentsImportDeploymentStatus.ts +12 -4
- package/src/funcs/deploymentsSetDeploymentChannel.ts +12 -4
- package/src/funcs/deploymentsSetDeploymentPin.ts +12 -4
- package/src/funcs/deploymentsSignDeploymentBundle.ts +12 -4
- package/src/funcs/releasesPromoteManagerRelease.ts +12 -4
- package/src/lib/config.ts +2 -2
- package/src/models/acquireresponse.ts +12 -0
- package/src/models/bindingvalueoptionstringunion.ts +116 -0
- package/src/models/bindingvaluestringunion.ts +111 -0
- package/src/models/bindingvalueu16union.ts +101 -0
- package/src/models/bindingvalueu8union.ts +97 -0
- package/src/models/bindingvaluevecstringunion.ts +114 -0
- package/src/models/deploymentacquireunavailablereason.ts +41 -0
- package/src/models/externalbindingunion.ts +3068 -0
- package/src/models/externalpostgressslmode.ts +39 -0
- package/src/models/index.ts +10 -0
- package/src/models/secretreference.ts +54 -0
- package/src/models/stacksettings.ts +17 -55
- package/src/models/unacquireddeployment.ts +51 -0
- package/src/sdk/commands.ts +12 -6
- package/src/sdk/deployments.ts +20 -10
- package/src/sdk/releases.ts +4 -2
|
@@ -0,0 +1,1075 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import { BindingValueOptionStringUnion$inboundSchema, BindingValueOptionStringUnion$outboundSchema, } from "./bindingvalueoptionstringunion.js";
|
|
7
|
+
import { BindingValueStringUnion$inboundSchema, BindingValueStringUnion$outboundSchema, } from "./bindingvaluestringunion.js";
|
|
8
|
+
import { BindingValueU16Union$inboundSchema, BindingValueU16Union$outboundSchema, } from "./bindingvalueu16union.js";
|
|
9
|
+
import { BindingValueU8Union$inboundSchema, BindingValueU8Union$outboundSchema, } from "./bindingvalueu8union.js";
|
|
10
|
+
import { BindingValueVecStringUnion$inboundSchema, BindingValueVecStringUnion$outboundSchema, } from "./bindingvaluevecstringunion.js";
|
|
11
|
+
import { ExternalPostgresSslMode$inboundSchema, ExternalPostgresSslMode$outboundSchema, } from "./externalpostgressslmode.js";
|
|
12
|
+
export const TypeAi = {
|
|
13
|
+
Ai: "ai",
|
|
14
|
+
};
|
|
15
|
+
export const TypePostgres5 = {
|
|
16
|
+
Postgres: "postgres",
|
|
17
|
+
};
|
|
18
|
+
export const TypePostgres4 = {
|
|
19
|
+
Postgres: "postgres",
|
|
20
|
+
};
|
|
21
|
+
export const TypePostgres3 = {
|
|
22
|
+
Postgres: "postgres",
|
|
23
|
+
};
|
|
24
|
+
export const TypePostgres2 = {
|
|
25
|
+
Postgres: "postgres",
|
|
26
|
+
};
|
|
27
|
+
export const TypePostgres1 = {
|
|
28
|
+
Postgres: "postgres",
|
|
29
|
+
};
|
|
30
|
+
export const TypeContainerAppsEnvironment = {
|
|
31
|
+
ContainerAppsEnvironment: "container_apps_environment",
|
|
32
|
+
};
|
|
33
|
+
export const TypeVault5 = {
|
|
34
|
+
Vault: "vault",
|
|
35
|
+
};
|
|
36
|
+
export const TypeVault4 = {
|
|
37
|
+
Vault: "vault",
|
|
38
|
+
};
|
|
39
|
+
export const TypeVault3 = {
|
|
40
|
+
Vault: "vault",
|
|
41
|
+
};
|
|
42
|
+
export const TypeVault2 = {
|
|
43
|
+
Vault: "vault",
|
|
44
|
+
};
|
|
45
|
+
export const TypeVault1 = {
|
|
46
|
+
Vault: "vault",
|
|
47
|
+
};
|
|
48
|
+
export const TypeArtifactRegistry4 = {
|
|
49
|
+
ArtifactRegistry: "artifact_registry",
|
|
50
|
+
};
|
|
51
|
+
export const TypeArtifactRegistry3 = {
|
|
52
|
+
ArtifactRegistry: "artifact_registry",
|
|
53
|
+
};
|
|
54
|
+
export const TypeArtifactRegistry2 = {
|
|
55
|
+
ArtifactRegistry: "artifact_registry",
|
|
56
|
+
};
|
|
57
|
+
export const TypeArtifactRegistry1 = {
|
|
58
|
+
ArtifactRegistry: "artifact_registry",
|
|
59
|
+
};
|
|
60
|
+
export const TypeKv5 = {
|
|
61
|
+
Kv: "kv",
|
|
62
|
+
};
|
|
63
|
+
export const TypeKv4 = {
|
|
64
|
+
Kv: "kv",
|
|
65
|
+
};
|
|
66
|
+
export const TypeKv3 = {
|
|
67
|
+
Kv: "kv",
|
|
68
|
+
};
|
|
69
|
+
export const TypeKv2 = {
|
|
70
|
+
Kv: "kv",
|
|
71
|
+
};
|
|
72
|
+
export const TypeKv1 = {
|
|
73
|
+
Kv: "kv",
|
|
74
|
+
};
|
|
75
|
+
export const TypeQueue4 = {
|
|
76
|
+
Queue: "queue",
|
|
77
|
+
};
|
|
78
|
+
export const TypeQueue3 = {
|
|
79
|
+
Queue: "queue",
|
|
80
|
+
};
|
|
81
|
+
export const TypeQueue2 = {
|
|
82
|
+
Queue: "queue",
|
|
83
|
+
};
|
|
84
|
+
export const TypeQueue1 = {
|
|
85
|
+
Queue: "queue",
|
|
86
|
+
};
|
|
87
|
+
export const TypeStorage4 = {
|
|
88
|
+
Storage: "storage",
|
|
89
|
+
};
|
|
90
|
+
export const TypeStorage3 = {
|
|
91
|
+
Storage: "storage",
|
|
92
|
+
};
|
|
93
|
+
export const TypeStorage2 = {
|
|
94
|
+
Storage: "storage",
|
|
95
|
+
};
|
|
96
|
+
export const TypeStorage1 = {
|
|
97
|
+
Storage: "storage",
|
|
98
|
+
};
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const TypeAi$inboundSchema = z.enum(TypeAi);
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const TypeAi$outboundSchema = TypeAi$inboundSchema;
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const ExternalBindingAi$inboundSchema = z.object({
|
|
105
|
+
apiKey: BindingValueStringUnion$inboundSchema,
|
|
106
|
+
provider: z.string(),
|
|
107
|
+
type: TypeAi$inboundSchema,
|
|
108
|
+
});
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const ExternalBindingAi$outboundSchema = z.object({
|
|
111
|
+
apiKey: BindingValueStringUnion$outboundSchema,
|
|
112
|
+
provider: z.string(),
|
|
113
|
+
type: TypeAi$outboundSchema,
|
|
114
|
+
});
|
|
115
|
+
export function externalBindingAiToJSON(externalBindingAi) {
|
|
116
|
+
return JSON.stringify(ExternalBindingAi$outboundSchema.parse(externalBindingAi));
|
|
117
|
+
}
|
|
118
|
+
export function externalBindingAiFromJSON(jsonString) {
|
|
119
|
+
return safeParse(jsonString, (x) => ExternalBindingAi$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingAi' from JSON`);
|
|
120
|
+
}
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const TypePostgres5$inboundSchema = z
|
|
123
|
+
.enum(TypePostgres5);
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const TypePostgres5$outboundSchema = TypePostgres5$inboundSchema;
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const ExternalBindingLocalPostgres$inboundSchema = z.object({
|
|
128
|
+
database: BindingValueStringUnion$inboundSchema,
|
|
129
|
+
host: BindingValueStringUnion$inboundSchema,
|
|
130
|
+
password: z.string(),
|
|
131
|
+
port: BindingValueU16Union$inboundSchema,
|
|
132
|
+
username: BindingValueStringUnion$inboundSchema,
|
|
133
|
+
service: z.literal("local-postgres"),
|
|
134
|
+
type: TypePostgres5$inboundSchema,
|
|
135
|
+
});
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const ExternalBindingLocalPostgres$outboundSchema = z.object({
|
|
138
|
+
database: BindingValueStringUnion$outboundSchema,
|
|
139
|
+
host: BindingValueStringUnion$outboundSchema,
|
|
140
|
+
password: z.string(),
|
|
141
|
+
port: BindingValueU16Union$outboundSchema,
|
|
142
|
+
username: BindingValueStringUnion$outboundSchema,
|
|
143
|
+
service: z.literal("local-postgres"),
|
|
144
|
+
type: TypePostgres5$outboundSchema,
|
|
145
|
+
});
|
|
146
|
+
export function externalBindingLocalPostgresToJSON(externalBindingLocalPostgres) {
|
|
147
|
+
return JSON.stringify(ExternalBindingLocalPostgres$outboundSchema.parse(externalBindingLocalPostgres));
|
|
148
|
+
}
|
|
149
|
+
export function externalBindingLocalPostgresFromJSON(jsonString) {
|
|
150
|
+
return safeParse(jsonString, (x) => ExternalBindingLocalPostgres$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingLocalPostgres' from JSON`);
|
|
151
|
+
}
|
|
152
|
+
/** @internal */
|
|
153
|
+
export const TypePostgres4$inboundSchema = z
|
|
154
|
+
.enum(TypePostgres4);
|
|
155
|
+
/** @internal */
|
|
156
|
+
export const TypePostgres4$outboundSchema = TypePostgres4$inboundSchema;
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const ExternalBindingExternal$inboundSchema = z.object({
|
|
159
|
+
database: BindingValueStringUnion$inboundSchema,
|
|
160
|
+
host: BindingValueStringUnion$inboundSchema,
|
|
161
|
+
password: z.string(),
|
|
162
|
+
port: BindingValueU16Union$inboundSchema,
|
|
163
|
+
sslMode: ExternalPostgresSslMode$inboundSchema.optional(),
|
|
164
|
+
username: BindingValueStringUnion$inboundSchema,
|
|
165
|
+
service: z.literal("external"),
|
|
166
|
+
type: TypePostgres4$inboundSchema,
|
|
167
|
+
});
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const ExternalBindingExternal$outboundSchema = z.object({
|
|
170
|
+
database: BindingValueStringUnion$outboundSchema,
|
|
171
|
+
host: BindingValueStringUnion$outboundSchema,
|
|
172
|
+
password: z.string(),
|
|
173
|
+
port: BindingValueU16Union$outboundSchema,
|
|
174
|
+
sslMode: ExternalPostgresSslMode$outboundSchema.optional(),
|
|
175
|
+
username: BindingValueStringUnion$outboundSchema,
|
|
176
|
+
service: z.literal("external"),
|
|
177
|
+
type: TypePostgres4$outboundSchema,
|
|
178
|
+
});
|
|
179
|
+
export function externalBindingExternalToJSON(externalBindingExternal) {
|
|
180
|
+
return JSON.stringify(ExternalBindingExternal$outboundSchema.parse(externalBindingExternal));
|
|
181
|
+
}
|
|
182
|
+
export function externalBindingExternalFromJSON(jsonString) {
|
|
183
|
+
return safeParse(jsonString, (x) => ExternalBindingExternal$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingExternal' from JSON`);
|
|
184
|
+
}
|
|
185
|
+
/** @internal */
|
|
186
|
+
export const TypePostgres3$inboundSchema = z
|
|
187
|
+
.enum(TypePostgres3);
|
|
188
|
+
/** @internal */
|
|
189
|
+
export const TypePostgres3$outboundSchema = TypePostgres3$inboundSchema;
|
|
190
|
+
/** @internal */
|
|
191
|
+
export const ExternalBindingFlexibleServer$inboundSchema = z.object({
|
|
192
|
+
database: BindingValueStringUnion$inboundSchema,
|
|
193
|
+
host: BindingValueStringUnion$inboundSchema,
|
|
194
|
+
passwordSecretUri: BindingValueStringUnion$inboundSchema,
|
|
195
|
+
port: BindingValueU16Union$inboundSchema,
|
|
196
|
+
username: BindingValueStringUnion$inboundSchema,
|
|
197
|
+
service: z.literal("flexible-server"),
|
|
198
|
+
type: TypePostgres3$inboundSchema,
|
|
199
|
+
});
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const ExternalBindingFlexibleServer$outboundSchema = z.object({
|
|
202
|
+
database: BindingValueStringUnion$outboundSchema,
|
|
203
|
+
host: BindingValueStringUnion$outboundSchema,
|
|
204
|
+
passwordSecretUri: BindingValueStringUnion$outboundSchema,
|
|
205
|
+
port: BindingValueU16Union$outboundSchema,
|
|
206
|
+
username: BindingValueStringUnion$outboundSchema,
|
|
207
|
+
service: z.literal("flexible-server"),
|
|
208
|
+
type: TypePostgres3$outboundSchema,
|
|
209
|
+
});
|
|
210
|
+
export function externalBindingFlexibleServerToJSON(externalBindingFlexibleServer) {
|
|
211
|
+
return JSON.stringify(ExternalBindingFlexibleServer$outboundSchema.parse(externalBindingFlexibleServer));
|
|
212
|
+
}
|
|
213
|
+
export function externalBindingFlexibleServerFromJSON(jsonString) {
|
|
214
|
+
return safeParse(jsonString, (x) => ExternalBindingFlexibleServer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingFlexibleServer' from JSON`);
|
|
215
|
+
}
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const TypePostgres2$inboundSchema = z
|
|
218
|
+
.enum(TypePostgres2);
|
|
219
|
+
/** @internal */
|
|
220
|
+
export const TypePostgres2$outboundSchema = TypePostgres2$inboundSchema;
|
|
221
|
+
/** @internal */
|
|
222
|
+
export const ExternalBindingCloudSQL$inboundSchema = z.object({
|
|
223
|
+
database: BindingValueStringUnion$inboundSchema,
|
|
224
|
+
host: BindingValueStringUnion$inboundSchema,
|
|
225
|
+
passwordSecretName: BindingValueStringUnion$inboundSchema,
|
|
226
|
+
port: BindingValueU16Union$inboundSchema,
|
|
227
|
+
serverCaCertificates: BindingValueVecStringUnion$inboundSchema,
|
|
228
|
+
username: BindingValueStringUnion$inboundSchema,
|
|
229
|
+
service: z.literal("cloud-sql"),
|
|
230
|
+
type: TypePostgres2$inboundSchema,
|
|
231
|
+
});
|
|
232
|
+
/** @internal */
|
|
233
|
+
export const ExternalBindingCloudSQL$outboundSchema = z.object({
|
|
234
|
+
database: BindingValueStringUnion$outboundSchema,
|
|
235
|
+
host: BindingValueStringUnion$outboundSchema,
|
|
236
|
+
passwordSecretName: BindingValueStringUnion$outboundSchema,
|
|
237
|
+
port: BindingValueU16Union$outboundSchema,
|
|
238
|
+
serverCaCertificates: BindingValueVecStringUnion$outboundSchema,
|
|
239
|
+
username: BindingValueStringUnion$outboundSchema,
|
|
240
|
+
service: z.literal("cloud-sql"),
|
|
241
|
+
type: TypePostgres2$outboundSchema,
|
|
242
|
+
});
|
|
243
|
+
export function externalBindingCloudSQLToJSON(externalBindingCloudSQL) {
|
|
244
|
+
return JSON.stringify(ExternalBindingCloudSQL$outboundSchema.parse(externalBindingCloudSQL));
|
|
245
|
+
}
|
|
246
|
+
export function externalBindingCloudSQLFromJSON(jsonString) {
|
|
247
|
+
return safeParse(jsonString, (x) => ExternalBindingCloudSQL$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingCloudSQL' from JSON`);
|
|
248
|
+
}
|
|
249
|
+
/** @internal */
|
|
250
|
+
export const TypePostgres1$inboundSchema = z
|
|
251
|
+
.enum(TypePostgres1);
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const TypePostgres1$outboundSchema = TypePostgres1$inboundSchema;
|
|
254
|
+
/** @internal */
|
|
255
|
+
export const ExternalBindingAurora$inboundSchema = z.object({
|
|
256
|
+
clusterEndpoint: BindingValueStringUnion$inboundSchema,
|
|
257
|
+
database: BindingValueStringUnion$inboundSchema,
|
|
258
|
+
passwordSecretArn: BindingValueStringUnion$inboundSchema,
|
|
259
|
+
port: BindingValueU16Union$inboundSchema,
|
|
260
|
+
username: BindingValueStringUnion$inboundSchema,
|
|
261
|
+
service: z.literal("aurora"),
|
|
262
|
+
type: TypePostgres1$inboundSchema,
|
|
263
|
+
});
|
|
264
|
+
/** @internal */
|
|
265
|
+
export const ExternalBindingAurora$outboundSchema = z.object({
|
|
266
|
+
clusterEndpoint: BindingValueStringUnion$outboundSchema,
|
|
267
|
+
database: BindingValueStringUnion$outboundSchema,
|
|
268
|
+
passwordSecretArn: BindingValueStringUnion$outboundSchema,
|
|
269
|
+
port: BindingValueU16Union$outboundSchema,
|
|
270
|
+
username: BindingValueStringUnion$outboundSchema,
|
|
271
|
+
service: z.literal("aurora"),
|
|
272
|
+
type: TypePostgres1$outboundSchema,
|
|
273
|
+
});
|
|
274
|
+
export function externalBindingAuroraToJSON(externalBindingAurora) {
|
|
275
|
+
return JSON.stringify(ExternalBindingAurora$outboundSchema.parse(externalBindingAurora));
|
|
276
|
+
}
|
|
277
|
+
export function externalBindingAuroraFromJSON(jsonString) {
|
|
278
|
+
return safeParse(jsonString, (x) => ExternalBindingAurora$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingAurora' from JSON`);
|
|
279
|
+
}
|
|
280
|
+
/** @internal */
|
|
281
|
+
export const ExternalBindingUnion6$inboundSchema = z.union([
|
|
282
|
+
z.lazy(() => ExternalBindingAurora$inboundSchema),
|
|
283
|
+
z.lazy(() => ExternalBindingCloudSQL$inboundSchema),
|
|
284
|
+
z.lazy(() => ExternalBindingFlexibleServer$inboundSchema),
|
|
285
|
+
z.lazy(() => ExternalBindingExternal$inboundSchema),
|
|
286
|
+
z.lazy(() => ExternalBindingLocalPostgres$inboundSchema),
|
|
287
|
+
]);
|
|
288
|
+
/** @internal */
|
|
289
|
+
export const ExternalBindingUnion6$outboundSchema = z.union([
|
|
290
|
+
z.lazy(() => ExternalBindingAurora$outboundSchema),
|
|
291
|
+
z.lazy(() => ExternalBindingCloudSQL$outboundSchema),
|
|
292
|
+
z.lazy(() => ExternalBindingFlexibleServer$outboundSchema),
|
|
293
|
+
z.lazy(() => ExternalBindingExternal$outboundSchema),
|
|
294
|
+
z.lazy(() => ExternalBindingLocalPostgres$outboundSchema),
|
|
295
|
+
]);
|
|
296
|
+
export function externalBindingUnion6ToJSON(externalBindingUnion6) {
|
|
297
|
+
return JSON.stringify(ExternalBindingUnion6$outboundSchema.parse(externalBindingUnion6));
|
|
298
|
+
}
|
|
299
|
+
export function externalBindingUnion6FromJSON(jsonString) {
|
|
300
|
+
return safeParse(jsonString, (x) => ExternalBindingUnion6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingUnion6' from JSON`);
|
|
301
|
+
}
|
|
302
|
+
/** @internal */
|
|
303
|
+
export const TypeContainerAppsEnvironment$inboundSchema = z.enum(TypeContainerAppsEnvironment);
|
|
304
|
+
/** @internal */
|
|
305
|
+
export const TypeContainerAppsEnvironment$outboundSchema = TypeContainerAppsEnvironment$inboundSchema;
|
|
306
|
+
/** @internal */
|
|
307
|
+
export const ExternalBindingContainerAppsEnvironment$inboundSchema = z.object({
|
|
308
|
+
defaultDomain: BindingValueStringUnion$inboundSchema,
|
|
309
|
+
environmentName: BindingValueStringUnion$inboundSchema,
|
|
310
|
+
resourceGroupName: BindingValueStringUnion$inboundSchema,
|
|
311
|
+
resourceId: BindingValueStringUnion$inboundSchema,
|
|
312
|
+
staticIp: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
313
|
+
type: TypeContainerAppsEnvironment$inboundSchema,
|
|
314
|
+
});
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const ExternalBindingContainerAppsEnvironment$outboundSchema = z.object({
|
|
317
|
+
defaultDomain: BindingValueStringUnion$outboundSchema,
|
|
318
|
+
environmentName: BindingValueStringUnion$outboundSchema,
|
|
319
|
+
resourceGroupName: BindingValueStringUnion$outboundSchema,
|
|
320
|
+
resourceId: BindingValueStringUnion$outboundSchema,
|
|
321
|
+
staticIp: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
322
|
+
type: TypeContainerAppsEnvironment$outboundSchema,
|
|
323
|
+
});
|
|
324
|
+
export function externalBindingContainerAppsEnvironmentToJSON(externalBindingContainerAppsEnvironment) {
|
|
325
|
+
return JSON.stringify(ExternalBindingContainerAppsEnvironment$outboundSchema.parse(externalBindingContainerAppsEnvironment));
|
|
326
|
+
}
|
|
327
|
+
export function externalBindingContainerAppsEnvironmentFromJSON(jsonString) {
|
|
328
|
+
return safeParse(jsonString, (x) => ExternalBindingContainerAppsEnvironment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingContainerAppsEnvironment' from JSON`);
|
|
329
|
+
}
|
|
330
|
+
/** @internal */
|
|
331
|
+
export const TypeVault5$inboundSchema = z.enum(TypeVault5);
|
|
332
|
+
/** @internal */
|
|
333
|
+
export const TypeVault5$outboundSchema = TypeVault5$inboundSchema;
|
|
334
|
+
/** @internal */
|
|
335
|
+
export const ExternalBindingLocalVault$inboundSchema = z.object({
|
|
336
|
+
dataDir: BindingValueStringUnion$inboundSchema,
|
|
337
|
+
vaultName: z.string(),
|
|
338
|
+
service: z.literal("local-vault"),
|
|
339
|
+
type: TypeVault5$inboundSchema,
|
|
340
|
+
});
|
|
341
|
+
/** @internal */
|
|
342
|
+
export const ExternalBindingLocalVault$outboundSchema = z.object({
|
|
343
|
+
dataDir: BindingValueStringUnion$outboundSchema,
|
|
344
|
+
vaultName: z.string(),
|
|
345
|
+
service: z.literal("local-vault"),
|
|
346
|
+
type: TypeVault5$outboundSchema,
|
|
347
|
+
});
|
|
348
|
+
export function externalBindingLocalVaultToJSON(externalBindingLocalVault) {
|
|
349
|
+
return JSON.stringify(ExternalBindingLocalVault$outboundSchema.parse(externalBindingLocalVault));
|
|
350
|
+
}
|
|
351
|
+
export function externalBindingLocalVaultFromJSON(jsonString) {
|
|
352
|
+
return safeParse(jsonString, (x) => ExternalBindingLocalVault$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingLocalVault' from JSON`);
|
|
353
|
+
}
|
|
354
|
+
/** @internal */
|
|
355
|
+
export const TypeVault4$inboundSchema = z.enum(TypeVault4);
|
|
356
|
+
/** @internal */
|
|
357
|
+
export const TypeVault4$outboundSchema = TypeVault4$inboundSchema;
|
|
358
|
+
/** @internal */
|
|
359
|
+
export const ExternalBindingKubernetesSecret$inboundSchema = z.object({
|
|
360
|
+
namespace: BindingValueStringUnion$inboundSchema,
|
|
361
|
+
vaultPrefix: BindingValueStringUnion$inboundSchema,
|
|
362
|
+
service: z.literal("kubernetes-secret"),
|
|
363
|
+
type: TypeVault4$inboundSchema,
|
|
364
|
+
});
|
|
365
|
+
/** @internal */
|
|
366
|
+
export const ExternalBindingKubernetesSecret$outboundSchema = z.object({
|
|
367
|
+
namespace: BindingValueStringUnion$outboundSchema,
|
|
368
|
+
vaultPrefix: BindingValueStringUnion$outboundSchema,
|
|
369
|
+
service: z.literal("kubernetes-secret"),
|
|
370
|
+
type: TypeVault4$outboundSchema,
|
|
371
|
+
});
|
|
372
|
+
export function externalBindingKubernetesSecretToJSON(externalBindingKubernetesSecret) {
|
|
373
|
+
return JSON.stringify(ExternalBindingKubernetesSecret$outboundSchema.parse(externalBindingKubernetesSecret));
|
|
374
|
+
}
|
|
375
|
+
export function externalBindingKubernetesSecretFromJSON(jsonString) {
|
|
376
|
+
return safeParse(jsonString, (x) => ExternalBindingKubernetesSecret$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingKubernetesSecret' from JSON`);
|
|
377
|
+
}
|
|
378
|
+
/** @internal */
|
|
379
|
+
export const TypeVault3$inboundSchema = z.enum(TypeVault3);
|
|
380
|
+
/** @internal */
|
|
381
|
+
export const TypeVault3$outboundSchema = TypeVault3$inboundSchema;
|
|
382
|
+
/** @internal */
|
|
383
|
+
export const ExternalBindingKeyVault$inboundSchema = z.object({
|
|
384
|
+
vaultName: BindingValueStringUnion$inboundSchema,
|
|
385
|
+
service: z.literal("key-vault"),
|
|
386
|
+
type: TypeVault3$inboundSchema,
|
|
387
|
+
});
|
|
388
|
+
/** @internal */
|
|
389
|
+
export const ExternalBindingKeyVault$outboundSchema = z.object({
|
|
390
|
+
vaultName: BindingValueStringUnion$outboundSchema,
|
|
391
|
+
service: z.literal("key-vault"),
|
|
392
|
+
type: TypeVault3$outboundSchema,
|
|
393
|
+
});
|
|
394
|
+
export function externalBindingKeyVaultToJSON(externalBindingKeyVault) {
|
|
395
|
+
return JSON.stringify(ExternalBindingKeyVault$outboundSchema.parse(externalBindingKeyVault));
|
|
396
|
+
}
|
|
397
|
+
export function externalBindingKeyVaultFromJSON(jsonString) {
|
|
398
|
+
return safeParse(jsonString, (x) => ExternalBindingKeyVault$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingKeyVault' from JSON`);
|
|
399
|
+
}
|
|
400
|
+
/** @internal */
|
|
401
|
+
export const TypeVault2$inboundSchema = z.enum(TypeVault2);
|
|
402
|
+
/** @internal */
|
|
403
|
+
export const TypeVault2$outboundSchema = TypeVault2$inboundSchema;
|
|
404
|
+
/** @internal */
|
|
405
|
+
export const ExternalBindingSecretManager$inboundSchema = z.object({
|
|
406
|
+
vaultPrefix: BindingValueStringUnion$inboundSchema,
|
|
407
|
+
service: z.literal("secret-manager"),
|
|
408
|
+
type: TypeVault2$inboundSchema,
|
|
409
|
+
});
|
|
410
|
+
/** @internal */
|
|
411
|
+
export const ExternalBindingSecretManager$outboundSchema = z.object({
|
|
412
|
+
vaultPrefix: BindingValueStringUnion$outboundSchema,
|
|
413
|
+
service: z.literal("secret-manager"),
|
|
414
|
+
type: TypeVault2$outboundSchema,
|
|
415
|
+
});
|
|
416
|
+
export function externalBindingSecretManagerToJSON(externalBindingSecretManager) {
|
|
417
|
+
return JSON.stringify(ExternalBindingSecretManager$outboundSchema.parse(externalBindingSecretManager));
|
|
418
|
+
}
|
|
419
|
+
export function externalBindingSecretManagerFromJSON(jsonString) {
|
|
420
|
+
return safeParse(jsonString, (x) => ExternalBindingSecretManager$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingSecretManager' from JSON`);
|
|
421
|
+
}
|
|
422
|
+
/** @internal */
|
|
423
|
+
export const TypeVault1$inboundSchema = z.enum(TypeVault1);
|
|
424
|
+
/** @internal */
|
|
425
|
+
export const TypeVault1$outboundSchema = TypeVault1$inboundSchema;
|
|
426
|
+
/** @internal */
|
|
427
|
+
export const ExternalBindingParameterStore$inboundSchema = z.object({
|
|
428
|
+
vaultPrefix: BindingValueStringUnion$inboundSchema,
|
|
429
|
+
service: z.literal("parameter-store"),
|
|
430
|
+
type: TypeVault1$inboundSchema,
|
|
431
|
+
});
|
|
432
|
+
/** @internal */
|
|
433
|
+
export const ExternalBindingParameterStore$outboundSchema = z.object({
|
|
434
|
+
vaultPrefix: BindingValueStringUnion$outboundSchema,
|
|
435
|
+
service: z.literal("parameter-store"),
|
|
436
|
+
type: TypeVault1$outboundSchema,
|
|
437
|
+
});
|
|
438
|
+
export function externalBindingParameterStoreToJSON(externalBindingParameterStore) {
|
|
439
|
+
return JSON.stringify(ExternalBindingParameterStore$outboundSchema.parse(externalBindingParameterStore));
|
|
440
|
+
}
|
|
441
|
+
export function externalBindingParameterStoreFromJSON(jsonString) {
|
|
442
|
+
return safeParse(jsonString, (x) => ExternalBindingParameterStore$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingParameterStore' from JSON`);
|
|
443
|
+
}
|
|
444
|
+
/** @internal */
|
|
445
|
+
export const ExternalBindingUnion5$inboundSchema = z.union([
|
|
446
|
+
z.lazy(() => ExternalBindingParameterStore$inboundSchema),
|
|
447
|
+
z.lazy(() => ExternalBindingSecretManager$inboundSchema),
|
|
448
|
+
z.lazy(() => ExternalBindingKeyVault$inboundSchema),
|
|
449
|
+
z.lazy(() => ExternalBindingKubernetesSecret$inboundSchema),
|
|
450
|
+
z.lazy(() => ExternalBindingLocalVault$inboundSchema),
|
|
451
|
+
]);
|
|
452
|
+
/** @internal */
|
|
453
|
+
export const ExternalBindingUnion5$outboundSchema = z.union([
|
|
454
|
+
z.lazy(() => ExternalBindingParameterStore$outboundSchema),
|
|
455
|
+
z.lazy(() => ExternalBindingSecretManager$outboundSchema),
|
|
456
|
+
z.lazy(() => ExternalBindingKeyVault$outboundSchema),
|
|
457
|
+
z.lazy(() => ExternalBindingKubernetesSecret$outboundSchema),
|
|
458
|
+
z.lazy(() => ExternalBindingLocalVault$outboundSchema),
|
|
459
|
+
]);
|
|
460
|
+
export function externalBindingUnion5ToJSON(externalBindingUnion5) {
|
|
461
|
+
return JSON.stringify(ExternalBindingUnion5$outboundSchema.parse(externalBindingUnion5));
|
|
462
|
+
}
|
|
463
|
+
export function externalBindingUnion5FromJSON(jsonString) {
|
|
464
|
+
return safeParse(jsonString, (x) => ExternalBindingUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingUnion5' from JSON`);
|
|
465
|
+
}
|
|
466
|
+
/** @internal */
|
|
467
|
+
export const TypeArtifactRegistry4$inboundSchema = z.enum(TypeArtifactRegistry4);
|
|
468
|
+
/** @internal */
|
|
469
|
+
export const TypeArtifactRegistry4$outboundSchema = TypeArtifactRegistry4$inboundSchema;
|
|
470
|
+
/** @internal */
|
|
471
|
+
export const ExternalBindingLocal$inboundSchema = z.object({
|
|
472
|
+
dataDir: BindingValueOptionStringUnion$inboundSchema,
|
|
473
|
+
registryUrl: BindingValueStringUnion$inboundSchema,
|
|
474
|
+
service: z.literal("local"),
|
|
475
|
+
type: TypeArtifactRegistry4$inboundSchema,
|
|
476
|
+
});
|
|
477
|
+
/** @internal */
|
|
478
|
+
export const ExternalBindingLocal$outboundSchema = z.object({
|
|
479
|
+
dataDir: BindingValueOptionStringUnion$outboundSchema,
|
|
480
|
+
registryUrl: BindingValueStringUnion$outboundSchema,
|
|
481
|
+
service: z.literal("local"),
|
|
482
|
+
type: TypeArtifactRegistry4$outboundSchema,
|
|
483
|
+
});
|
|
484
|
+
export function externalBindingLocalToJSON(externalBindingLocal) {
|
|
485
|
+
return JSON.stringify(ExternalBindingLocal$outboundSchema.parse(externalBindingLocal));
|
|
486
|
+
}
|
|
487
|
+
export function externalBindingLocalFromJSON(jsonString) {
|
|
488
|
+
return safeParse(jsonString, (x) => ExternalBindingLocal$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingLocal' from JSON`);
|
|
489
|
+
}
|
|
490
|
+
/** @internal */
|
|
491
|
+
export const TypeArtifactRegistry3$inboundSchema = z.enum(TypeArtifactRegistry3);
|
|
492
|
+
/** @internal */
|
|
493
|
+
export const TypeArtifactRegistry3$outboundSchema = TypeArtifactRegistry3$inboundSchema;
|
|
494
|
+
/** @internal */
|
|
495
|
+
export const ExternalBindingGar$inboundSchema = z.object({
|
|
496
|
+
pullServiceAccountEmail: z.nullable(BindingValueStringUnion$inboundSchema)
|
|
497
|
+
.optional(),
|
|
498
|
+
pushServiceAccountEmail: z.nullable(BindingValueStringUnion$inboundSchema)
|
|
499
|
+
.optional(),
|
|
500
|
+
repositoryName: BindingValueStringUnion$inboundSchema,
|
|
501
|
+
service: z.literal("gar"),
|
|
502
|
+
type: TypeArtifactRegistry3$inboundSchema,
|
|
503
|
+
});
|
|
504
|
+
/** @internal */
|
|
505
|
+
export const ExternalBindingGar$outboundSchema = z.object({
|
|
506
|
+
pullServiceAccountEmail: z.nullable(BindingValueStringUnion$outboundSchema)
|
|
507
|
+
.optional(),
|
|
508
|
+
pushServiceAccountEmail: z.nullable(BindingValueStringUnion$outboundSchema)
|
|
509
|
+
.optional(),
|
|
510
|
+
repositoryName: BindingValueStringUnion$outboundSchema,
|
|
511
|
+
service: z.literal("gar"),
|
|
512
|
+
type: TypeArtifactRegistry3$outboundSchema,
|
|
513
|
+
});
|
|
514
|
+
export function externalBindingGarToJSON(externalBindingGar) {
|
|
515
|
+
return JSON.stringify(ExternalBindingGar$outboundSchema.parse(externalBindingGar));
|
|
516
|
+
}
|
|
517
|
+
export function externalBindingGarFromJSON(jsonString) {
|
|
518
|
+
return safeParse(jsonString, (x) => ExternalBindingGar$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingGar' from JSON`);
|
|
519
|
+
}
|
|
520
|
+
/** @internal */
|
|
521
|
+
export const TypeArtifactRegistry2$inboundSchema = z.enum(TypeArtifactRegistry2);
|
|
522
|
+
/** @internal */
|
|
523
|
+
export const TypeArtifactRegistry2$outboundSchema = TypeArtifactRegistry2$inboundSchema;
|
|
524
|
+
/** @internal */
|
|
525
|
+
export const ExternalBindingAcr$inboundSchema = z.object({
|
|
526
|
+
registryName: BindingValueStringUnion$inboundSchema,
|
|
527
|
+
repositoryPrefix: z.nullable(BindingValueStringUnion$inboundSchema)
|
|
528
|
+
.optional(),
|
|
529
|
+
resourceGroupName: BindingValueStringUnion$inboundSchema,
|
|
530
|
+
service: z.literal("acr"),
|
|
531
|
+
type: TypeArtifactRegistry2$inboundSchema,
|
|
532
|
+
});
|
|
533
|
+
/** @internal */
|
|
534
|
+
export const ExternalBindingAcr$outboundSchema = z.object({
|
|
535
|
+
registryName: BindingValueStringUnion$outboundSchema,
|
|
536
|
+
repositoryPrefix: z.nullable(BindingValueStringUnion$outboundSchema)
|
|
537
|
+
.optional(),
|
|
538
|
+
resourceGroupName: BindingValueStringUnion$outboundSchema,
|
|
539
|
+
service: z.literal("acr"),
|
|
540
|
+
type: TypeArtifactRegistry2$outboundSchema,
|
|
541
|
+
});
|
|
542
|
+
export function externalBindingAcrToJSON(externalBindingAcr) {
|
|
543
|
+
return JSON.stringify(ExternalBindingAcr$outboundSchema.parse(externalBindingAcr));
|
|
544
|
+
}
|
|
545
|
+
export function externalBindingAcrFromJSON(jsonString) {
|
|
546
|
+
return safeParse(jsonString, (x) => ExternalBindingAcr$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingAcr' from JSON`);
|
|
547
|
+
}
|
|
548
|
+
/** @internal */
|
|
549
|
+
export const TypeArtifactRegistry1$inboundSchema = z.enum(TypeArtifactRegistry1);
|
|
550
|
+
/** @internal */
|
|
551
|
+
export const TypeArtifactRegistry1$outboundSchema = TypeArtifactRegistry1$inboundSchema;
|
|
552
|
+
/** @internal */
|
|
553
|
+
export const ExternalBindingEcr$inboundSchema = z.object({
|
|
554
|
+
pullRoleArn: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
555
|
+
pushRoleArn: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
556
|
+
repositoryPrefix: BindingValueStringUnion$inboundSchema,
|
|
557
|
+
service: z.literal("ecr"),
|
|
558
|
+
type: TypeArtifactRegistry1$inboundSchema,
|
|
559
|
+
});
|
|
560
|
+
/** @internal */
|
|
561
|
+
export const ExternalBindingEcr$outboundSchema = z.object({
|
|
562
|
+
pullRoleArn: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
563
|
+
pushRoleArn: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
564
|
+
repositoryPrefix: BindingValueStringUnion$outboundSchema,
|
|
565
|
+
service: z.literal("ecr"),
|
|
566
|
+
type: TypeArtifactRegistry1$outboundSchema,
|
|
567
|
+
});
|
|
568
|
+
export function externalBindingEcrToJSON(externalBindingEcr) {
|
|
569
|
+
return JSON.stringify(ExternalBindingEcr$outboundSchema.parse(externalBindingEcr));
|
|
570
|
+
}
|
|
571
|
+
export function externalBindingEcrFromJSON(jsonString) {
|
|
572
|
+
return safeParse(jsonString, (x) => ExternalBindingEcr$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingEcr' from JSON`);
|
|
573
|
+
}
|
|
574
|
+
/** @internal */
|
|
575
|
+
export const ExternalBindingUnion4$inboundSchema = z.union([
|
|
576
|
+
z.lazy(() => ExternalBindingEcr$inboundSchema),
|
|
577
|
+
z.lazy(() => ExternalBindingAcr$inboundSchema),
|
|
578
|
+
z.lazy(() => ExternalBindingGar$inboundSchema),
|
|
579
|
+
z.lazy(() => ExternalBindingLocal$inboundSchema),
|
|
580
|
+
]);
|
|
581
|
+
/** @internal */
|
|
582
|
+
export const ExternalBindingUnion4$outboundSchema = z.union([
|
|
583
|
+
z.lazy(() => ExternalBindingEcr$outboundSchema),
|
|
584
|
+
z.lazy(() => ExternalBindingAcr$outboundSchema),
|
|
585
|
+
z.lazy(() => ExternalBindingGar$outboundSchema),
|
|
586
|
+
z.lazy(() => ExternalBindingLocal$outboundSchema),
|
|
587
|
+
]);
|
|
588
|
+
export function externalBindingUnion4ToJSON(externalBindingUnion4) {
|
|
589
|
+
return JSON.stringify(ExternalBindingUnion4$outboundSchema.parse(externalBindingUnion4));
|
|
590
|
+
}
|
|
591
|
+
export function externalBindingUnion4FromJSON(jsonString) {
|
|
592
|
+
return safeParse(jsonString, (x) => ExternalBindingUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingUnion4' from JSON`);
|
|
593
|
+
}
|
|
594
|
+
/** @internal */
|
|
595
|
+
export const TypeKv5$inboundSchema = z.enum(TypeKv5);
|
|
596
|
+
/** @internal */
|
|
597
|
+
export const TypeKv5$outboundSchema = TypeKv5$inboundSchema;
|
|
598
|
+
/** @internal */
|
|
599
|
+
export const ExternalBindingLocalKv$inboundSchema = z.object({
|
|
600
|
+
dataDir: BindingValueStringUnion$inboundSchema,
|
|
601
|
+
keyPrefix: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
602
|
+
service: z.literal("local-kv"),
|
|
603
|
+
type: TypeKv5$inboundSchema,
|
|
604
|
+
});
|
|
605
|
+
/** @internal */
|
|
606
|
+
export const ExternalBindingLocalKv$outboundSchema = z.object({
|
|
607
|
+
dataDir: BindingValueStringUnion$outboundSchema,
|
|
608
|
+
keyPrefix: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
609
|
+
service: z.literal("local-kv"),
|
|
610
|
+
type: TypeKv5$outboundSchema,
|
|
611
|
+
});
|
|
612
|
+
export function externalBindingLocalKvToJSON(externalBindingLocalKv) {
|
|
613
|
+
return JSON.stringify(ExternalBindingLocalKv$outboundSchema.parse(externalBindingLocalKv));
|
|
614
|
+
}
|
|
615
|
+
export function externalBindingLocalKvFromJSON(jsonString) {
|
|
616
|
+
return safeParse(jsonString, (x) => ExternalBindingLocalKv$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingLocalKv' from JSON`);
|
|
617
|
+
}
|
|
618
|
+
/** @internal */
|
|
619
|
+
export const TypeKv4$inboundSchema = z.enum(TypeKv4);
|
|
620
|
+
/** @internal */
|
|
621
|
+
export const TypeKv4$outboundSchema = TypeKv4$inboundSchema;
|
|
622
|
+
/** @internal */
|
|
623
|
+
export const ExternalBindingRedis$inboundSchema = z.object({
|
|
624
|
+
connectionUrl: BindingValueStringUnion$inboundSchema,
|
|
625
|
+
database: z.nullable(BindingValueU8Union$inboundSchema).optional(),
|
|
626
|
+
keyPrefix: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
627
|
+
service: z.literal("redis"),
|
|
628
|
+
type: TypeKv4$inboundSchema,
|
|
629
|
+
});
|
|
630
|
+
/** @internal */
|
|
631
|
+
export const ExternalBindingRedis$outboundSchema = z.object({
|
|
632
|
+
connectionUrl: BindingValueStringUnion$outboundSchema,
|
|
633
|
+
database: z.nullable(BindingValueU8Union$outboundSchema).optional(),
|
|
634
|
+
keyPrefix: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
635
|
+
service: z.literal("redis"),
|
|
636
|
+
type: TypeKv4$outboundSchema,
|
|
637
|
+
});
|
|
638
|
+
export function externalBindingRedisToJSON(externalBindingRedis) {
|
|
639
|
+
return JSON.stringify(ExternalBindingRedis$outboundSchema.parse(externalBindingRedis));
|
|
640
|
+
}
|
|
641
|
+
export function externalBindingRedisFromJSON(jsonString) {
|
|
642
|
+
return safeParse(jsonString, (x) => ExternalBindingRedis$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingRedis' from JSON`);
|
|
643
|
+
}
|
|
644
|
+
/** @internal */
|
|
645
|
+
export const TypeKv3$inboundSchema = z.enum(TypeKv3);
|
|
646
|
+
/** @internal */
|
|
647
|
+
export const TypeKv3$outboundSchema = TypeKv3$inboundSchema;
|
|
648
|
+
/** @internal */
|
|
649
|
+
export const ExternalBindingTablestorage$inboundSchema = z.object({
|
|
650
|
+
accountName: BindingValueStringUnion$inboundSchema,
|
|
651
|
+
resourceGroupName: BindingValueStringUnion$inboundSchema,
|
|
652
|
+
tableName: BindingValueStringUnion$inboundSchema,
|
|
653
|
+
service: z.literal("tablestorage"),
|
|
654
|
+
type: TypeKv3$inboundSchema,
|
|
655
|
+
});
|
|
656
|
+
/** @internal */
|
|
657
|
+
export const ExternalBindingTablestorage$outboundSchema = z.object({
|
|
658
|
+
accountName: BindingValueStringUnion$outboundSchema,
|
|
659
|
+
resourceGroupName: BindingValueStringUnion$outboundSchema,
|
|
660
|
+
tableName: BindingValueStringUnion$outboundSchema,
|
|
661
|
+
service: z.literal("tablestorage"),
|
|
662
|
+
type: TypeKv3$outboundSchema,
|
|
663
|
+
});
|
|
664
|
+
export function externalBindingTablestorageToJSON(externalBindingTablestorage) {
|
|
665
|
+
return JSON.stringify(ExternalBindingTablestorage$outboundSchema.parse(externalBindingTablestorage));
|
|
666
|
+
}
|
|
667
|
+
export function externalBindingTablestorageFromJSON(jsonString) {
|
|
668
|
+
return safeParse(jsonString, (x) => ExternalBindingTablestorage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingTablestorage' from JSON`);
|
|
669
|
+
}
|
|
670
|
+
/** @internal */
|
|
671
|
+
export const TypeKv2$inboundSchema = z.enum(TypeKv2);
|
|
672
|
+
/** @internal */
|
|
673
|
+
export const TypeKv2$outboundSchema = TypeKv2$inboundSchema;
|
|
674
|
+
/** @internal */
|
|
675
|
+
export const ExternalBindingFirestore$inboundSchema = z.object({
|
|
676
|
+
collectionName: BindingValueStringUnion$inboundSchema,
|
|
677
|
+
databaseId: BindingValueStringUnion$inboundSchema,
|
|
678
|
+
projectId: BindingValueStringUnion$inboundSchema,
|
|
679
|
+
service: z.literal("firestore"),
|
|
680
|
+
type: TypeKv2$inboundSchema,
|
|
681
|
+
});
|
|
682
|
+
/** @internal */
|
|
683
|
+
export const ExternalBindingFirestore$outboundSchema = z.object({
|
|
684
|
+
collectionName: BindingValueStringUnion$outboundSchema,
|
|
685
|
+
databaseId: BindingValueStringUnion$outboundSchema,
|
|
686
|
+
projectId: BindingValueStringUnion$outboundSchema,
|
|
687
|
+
service: z.literal("firestore"),
|
|
688
|
+
type: TypeKv2$outboundSchema,
|
|
689
|
+
});
|
|
690
|
+
export function externalBindingFirestoreToJSON(externalBindingFirestore) {
|
|
691
|
+
return JSON.stringify(ExternalBindingFirestore$outboundSchema.parse(externalBindingFirestore));
|
|
692
|
+
}
|
|
693
|
+
export function externalBindingFirestoreFromJSON(jsonString) {
|
|
694
|
+
return safeParse(jsonString, (x) => ExternalBindingFirestore$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingFirestore' from JSON`);
|
|
695
|
+
}
|
|
696
|
+
/** @internal */
|
|
697
|
+
export const TypeKv1$inboundSchema = z.enum(TypeKv1);
|
|
698
|
+
/** @internal */
|
|
699
|
+
export const TypeKv1$outboundSchema = TypeKv1$inboundSchema;
|
|
700
|
+
/** @internal */
|
|
701
|
+
export const ExternalBindingDynamodb$inboundSchema = z.object({
|
|
702
|
+
endpointUrl: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
703
|
+
region: BindingValueStringUnion$inboundSchema,
|
|
704
|
+
tableName: BindingValueStringUnion$inboundSchema,
|
|
705
|
+
service: z.literal("dynamodb"),
|
|
706
|
+
type: TypeKv1$inboundSchema,
|
|
707
|
+
});
|
|
708
|
+
/** @internal */
|
|
709
|
+
export const ExternalBindingDynamodb$outboundSchema = z.object({
|
|
710
|
+
endpointUrl: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
711
|
+
region: BindingValueStringUnion$outboundSchema,
|
|
712
|
+
tableName: BindingValueStringUnion$outboundSchema,
|
|
713
|
+
service: z.literal("dynamodb"),
|
|
714
|
+
type: TypeKv1$outboundSchema,
|
|
715
|
+
});
|
|
716
|
+
export function externalBindingDynamodbToJSON(externalBindingDynamodb) {
|
|
717
|
+
return JSON.stringify(ExternalBindingDynamodb$outboundSchema.parse(externalBindingDynamodb));
|
|
718
|
+
}
|
|
719
|
+
export function externalBindingDynamodbFromJSON(jsonString) {
|
|
720
|
+
return safeParse(jsonString, (x) => ExternalBindingDynamodb$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingDynamodb' from JSON`);
|
|
721
|
+
}
|
|
722
|
+
/** @internal */
|
|
723
|
+
export const ExternalBindingUnion3$inboundSchema = z.union([
|
|
724
|
+
z.lazy(() => ExternalBindingDynamodb$inboundSchema),
|
|
725
|
+
z.lazy(() => ExternalBindingFirestore$inboundSchema),
|
|
726
|
+
z.lazy(() => ExternalBindingTablestorage$inboundSchema),
|
|
727
|
+
z.lazy(() => ExternalBindingRedis$inboundSchema),
|
|
728
|
+
z.lazy(() => ExternalBindingLocalKv$inboundSchema),
|
|
729
|
+
]);
|
|
730
|
+
/** @internal */
|
|
731
|
+
export const ExternalBindingUnion3$outboundSchema = z.union([
|
|
732
|
+
z.lazy(() => ExternalBindingDynamodb$outboundSchema),
|
|
733
|
+
z.lazy(() => ExternalBindingFirestore$outboundSchema),
|
|
734
|
+
z.lazy(() => ExternalBindingTablestorage$outboundSchema),
|
|
735
|
+
z.lazy(() => ExternalBindingRedis$outboundSchema),
|
|
736
|
+
z.lazy(() => ExternalBindingLocalKv$outboundSchema),
|
|
737
|
+
]);
|
|
738
|
+
export function externalBindingUnion3ToJSON(externalBindingUnion3) {
|
|
739
|
+
return JSON.stringify(ExternalBindingUnion3$outboundSchema.parse(externalBindingUnion3));
|
|
740
|
+
}
|
|
741
|
+
export function externalBindingUnion3FromJSON(jsonString) {
|
|
742
|
+
return safeParse(jsonString, (x) => ExternalBindingUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingUnion3' from JSON`);
|
|
743
|
+
}
|
|
744
|
+
/** @internal */
|
|
745
|
+
export const TypeQueue4$inboundSchema = z.enum(TypeQueue4);
|
|
746
|
+
/** @internal */
|
|
747
|
+
export const TypeQueue4$outboundSchema = TypeQueue4$inboundSchema;
|
|
748
|
+
/** @internal */
|
|
749
|
+
export const ExternalBindingLocalQueue$inboundSchema = z.object({
|
|
750
|
+
queuePath: BindingValueStringUnion$inboundSchema,
|
|
751
|
+
service: z.literal("local-queue"),
|
|
752
|
+
type: TypeQueue4$inboundSchema,
|
|
753
|
+
});
|
|
754
|
+
/** @internal */
|
|
755
|
+
export const ExternalBindingLocalQueue$outboundSchema = z.object({
|
|
756
|
+
queuePath: BindingValueStringUnion$outboundSchema,
|
|
757
|
+
service: z.literal("local-queue"),
|
|
758
|
+
type: TypeQueue4$outboundSchema,
|
|
759
|
+
});
|
|
760
|
+
export function externalBindingLocalQueueToJSON(externalBindingLocalQueue) {
|
|
761
|
+
return JSON.stringify(ExternalBindingLocalQueue$outboundSchema.parse(externalBindingLocalQueue));
|
|
762
|
+
}
|
|
763
|
+
export function externalBindingLocalQueueFromJSON(jsonString) {
|
|
764
|
+
return safeParse(jsonString, (x) => ExternalBindingLocalQueue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingLocalQueue' from JSON`);
|
|
765
|
+
}
|
|
766
|
+
/** @internal */
|
|
767
|
+
export const TypeQueue3$inboundSchema = z.enum(TypeQueue3);
|
|
768
|
+
/** @internal */
|
|
769
|
+
export const TypeQueue3$outboundSchema = TypeQueue3$inboundSchema;
|
|
770
|
+
/** @internal */
|
|
771
|
+
export const ExternalBindingServicebus$inboundSchema = z.object({
|
|
772
|
+
namespace: BindingValueStringUnion$inboundSchema,
|
|
773
|
+
queueName: BindingValueStringUnion$inboundSchema,
|
|
774
|
+
service: z.literal("servicebus"),
|
|
775
|
+
type: TypeQueue3$inboundSchema,
|
|
776
|
+
});
|
|
777
|
+
/** @internal */
|
|
778
|
+
export const ExternalBindingServicebus$outboundSchema = z.object({
|
|
779
|
+
namespace: BindingValueStringUnion$outboundSchema,
|
|
780
|
+
queueName: BindingValueStringUnion$outboundSchema,
|
|
781
|
+
service: z.literal("servicebus"),
|
|
782
|
+
type: TypeQueue3$outboundSchema,
|
|
783
|
+
});
|
|
784
|
+
export function externalBindingServicebusToJSON(externalBindingServicebus) {
|
|
785
|
+
return JSON.stringify(ExternalBindingServicebus$outboundSchema.parse(externalBindingServicebus));
|
|
786
|
+
}
|
|
787
|
+
export function externalBindingServicebusFromJSON(jsonString) {
|
|
788
|
+
return safeParse(jsonString, (x) => ExternalBindingServicebus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingServicebus' from JSON`);
|
|
789
|
+
}
|
|
790
|
+
/** @internal */
|
|
791
|
+
export const TypeQueue2$inboundSchema = z.enum(TypeQueue2);
|
|
792
|
+
/** @internal */
|
|
793
|
+
export const TypeQueue2$outboundSchema = TypeQueue2$inboundSchema;
|
|
794
|
+
/** @internal */
|
|
795
|
+
export const ExternalBindingPubsub$inboundSchema = z.object({
|
|
796
|
+
subscription: BindingValueStringUnion$inboundSchema,
|
|
797
|
+
topic: BindingValueStringUnion$inboundSchema,
|
|
798
|
+
service: z.literal("pubsub"),
|
|
799
|
+
type: TypeQueue2$inboundSchema,
|
|
800
|
+
});
|
|
801
|
+
/** @internal */
|
|
802
|
+
export const ExternalBindingPubsub$outboundSchema = z.object({
|
|
803
|
+
subscription: BindingValueStringUnion$outboundSchema,
|
|
804
|
+
topic: BindingValueStringUnion$outboundSchema,
|
|
805
|
+
service: z.literal("pubsub"),
|
|
806
|
+
type: TypeQueue2$outboundSchema,
|
|
807
|
+
});
|
|
808
|
+
export function externalBindingPubsubToJSON(externalBindingPubsub) {
|
|
809
|
+
return JSON.stringify(ExternalBindingPubsub$outboundSchema.parse(externalBindingPubsub));
|
|
810
|
+
}
|
|
811
|
+
export function externalBindingPubsubFromJSON(jsonString) {
|
|
812
|
+
return safeParse(jsonString, (x) => ExternalBindingPubsub$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingPubsub' from JSON`);
|
|
813
|
+
}
|
|
814
|
+
/** @internal */
|
|
815
|
+
export const TypeQueue1$inboundSchema = z.enum(TypeQueue1);
|
|
816
|
+
/** @internal */
|
|
817
|
+
export const TypeQueue1$outboundSchema = TypeQueue1$inboundSchema;
|
|
818
|
+
/** @internal */
|
|
819
|
+
export const ExternalBindingSqs$inboundSchema = z.object({
|
|
820
|
+
queueUrl: BindingValueStringUnion$inboundSchema,
|
|
821
|
+
service: z.literal("sqs"),
|
|
822
|
+
type: TypeQueue1$inboundSchema,
|
|
823
|
+
});
|
|
824
|
+
/** @internal */
|
|
825
|
+
export const ExternalBindingSqs$outboundSchema = z.object({
|
|
826
|
+
queueUrl: BindingValueStringUnion$outboundSchema,
|
|
827
|
+
service: z.literal("sqs"),
|
|
828
|
+
type: TypeQueue1$outboundSchema,
|
|
829
|
+
});
|
|
830
|
+
export function externalBindingSqsToJSON(externalBindingSqs) {
|
|
831
|
+
return JSON.stringify(ExternalBindingSqs$outboundSchema.parse(externalBindingSqs));
|
|
832
|
+
}
|
|
833
|
+
export function externalBindingSqsFromJSON(jsonString) {
|
|
834
|
+
return safeParse(jsonString, (x) => ExternalBindingSqs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingSqs' from JSON`);
|
|
835
|
+
}
|
|
836
|
+
/** @internal */
|
|
837
|
+
export const ExternalBindingUnion2$inboundSchema = z.union([
|
|
838
|
+
z.lazy(() => ExternalBindingSqs$inboundSchema),
|
|
839
|
+
z.lazy(() => ExternalBindingPubsub$inboundSchema),
|
|
840
|
+
z.lazy(() => ExternalBindingServicebus$inboundSchema),
|
|
841
|
+
z.lazy(() => ExternalBindingLocalQueue$inboundSchema),
|
|
842
|
+
]);
|
|
843
|
+
/** @internal */
|
|
844
|
+
export const ExternalBindingUnion2$outboundSchema = z.union([
|
|
845
|
+
z.lazy(() => ExternalBindingSqs$outboundSchema),
|
|
846
|
+
z.lazy(() => ExternalBindingPubsub$outboundSchema),
|
|
847
|
+
z.lazy(() => ExternalBindingServicebus$outboundSchema),
|
|
848
|
+
z.lazy(() => ExternalBindingLocalQueue$outboundSchema),
|
|
849
|
+
]);
|
|
850
|
+
export function externalBindingUnion2ToJSON(externalBindingUnion2) {
|
|
851
|
+
return JSON.stringify(ExternalBindingUnion2$outboundSchema.parse(externalBindingUnion2));
|
|
852
|
+
}
|
|
853
|
+
export function externalBindingUnion2FromJSON(jsonString) {
|
|
854
|
+
return safeParse(jsonString, (x) => ExternalBindingUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingUnion2' from JSON`);
|
|
855
|
+
}
|
|
856
|
+
/** @internal */
|
|
857
|
+
export const TypeStorage4$inboundSchema = z
|
|
858
|
+
.enum(TypeStorage4);
|
|
859
|
+
/** @internal */
|
|
860
|
+
export const TypeStorage4$outboundSchema = TypeStorage4$inboundSchema;
|
|
861
|
+
/** @internal */
|
|
862
|
+
export const ExternalBindingLocalStorage$inboundSchema = z.object({
|
|
863
|
+
storagePath: BindingValueStringUnion$inboundSchema,
|
|
864
|
+
service: z.literal("local-storage"),
|
|
865
|
+
type: TypeStorage4$inboundSchema,
|
|
866
|
+
});
|
|
867
|
+
/** @internal */
|
|
868
|
+
export const ExternalBindingLocalStorage$outboundSchema = z.object({
|
|
869
|
+
storagePath: BindingValueStringUnion$outboundSchema,
|
|
870
|
+
service: z.literal("local-storage"),
|
|
871
|
+
type: TypeStorage4$outboundSchema,
|
|
872
|
+
});
|
|
873
|
+
export function externalBindingLocalStorageToJSON(externalBindingLocalStorage) {
|
|
874
|
+
return JSON.stringify(ExternalBindingLocalStorage$outboundSchema.parse(externalBindingLocalStorage));
|
|
875
|
+
}
|
|
876
|
+
export function externalBindingLocalStorageFromJSON(jsonString) {
|
|
877
|
+
return safeParse(jsonString, (x) => ExternalBindingLocalStorage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingLocalStorage' from JSON`);
|
|
878
|
+
}
|
|
879
|
+
/** @internal */
|
|
880
|
+
export const TypeStorage3$inboundSchema = z
|
|
881
|
+
.enum(TypeStorage3);
|
|
882
|
+
/** @internal */
|
|
883
|
+
export const TypeStorage3$outboundSchema = TypeStorage3$inboundSchema;
|
|
884
|
+
/** @internal */
|
|
885
|
+
export const ExternalBindingGcs$inboundSchema = z.object({
|
|
886
|
+
bucketName: BindingValueStringUnion$inboundSchema,
|
|
887
|
+
service: z.literal("gcs"),
|
|
888
|
+
type: TypeStorage3$inboundSchema,
|
|
889
|
+
});
|
|
890
|
+
/** @internal */
|
|
891
|
+
export const ExternalBindingGcs$outboundSchema = z.object({
|
|
892
|
+
bucketName: BindingValueStringUnion$outboundSchema,
|
|
893
|
+
service: z.literal("gcs"),
|
|
894
|
+
type: TypeStorage3$outboundSchema,
|
|
895
|
+
});
|
|
896
|
+
export function externalBindingGcsToJSON(externalBindingGcs) {
|
|
897
|
+
return JSON.stringify(ExternalBindingGcs$outboundSchema.parse(externalBindingGcs));
|
|
898
|
+
}
|
|
899
|
+
export function externalBindingGcsFromJSON(jsonString) {
|
|
900
|
+
return safeParse(jsonString, (x) => ExternalBindingGcs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingGcs' from JSON`);
|
|
901
|
+
}
|
|
902
|
+
/** @internal */
|
|
903
|
+
export const TypeStorage2$inboundSchema = z
|
|
904
|
+
.enum(TypeStorage2);
|
|
905
|
+
/** @internal */
|
|
906
|
+
export const TypeStorage2$outboundSchema = TypeStorage2$inboundSchema;
|
|
907
|
+
/** @internal */
|
|
908
|
+
export const ExternalBindingBlob$inboundSchema = z.object({
|
|
909
|
+
accountName: BindingValueStringUnion$inboundSchema,
|
|
910
|
+
containerName: BindingValueStringUnion$inboundSchema,
|
|
911
|
+
service: z.literal("blob"),
|
|
912
|
+
type: TypeStorage2$inboundSchema,
|
|
913
|
+
});
|
|
914
|
+
/** @internal */
|
|
915
|
+
export const ExternalBindingBlob$outboundSchema = z.object({
|
|
916
|
+
accountName: BindingValueStringUnion$outboundSchema,
|
|
917
|
+
containerName: BindingValueStringUnion$outboundSchema,
|
|
918
|
+
service: z.literal("blob"),
|
|
919
|
+
type: TypeStorage2$outboundSchema,
|
|
920
|
+
});
|
|
921
|
+
export function externalBindingBlobToJSON(externalBindingBlob) {
|
|
922
|
+
return JSON.stringify(ExternalBindingBlob$outboundSchema.parse(externalBindingBlob));
|
|
923
|
+
}
|
|
924
|
+
export function externalBindingBlobFromJSON(jsonString) {
|
|
925
|
+
return safeParse(jsonString, (x) => ExternalBindingBlob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingBlob' from JSON`);
|
|
926
|
+
}
|
|
927
|
+
/** @internal */
|
|
928
|
+
export const TypeStorage1$inboundSchema = z
|
|
929
|
+
.enum(TypeStorage1);
|
|
930
|
+
/** @internal */
|
|
931
|
+
export const TypeStorage1$outboundSchema = TypeStorage1$inboundSchema;
|
|
932
|
+
/** @internal */
|
|
933
|
+
export const ExternalBindingS3$inboundSchema = z.object({
|
|
934
|
+
accessKeyId: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
935
|
+
bucketName: BindingValueStringUnion$inboundSchema,
|
|
936
|
+
endpoint: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
937
|
+
forcePathStyle: z.nullable(z.boolean()).optional(),
|
|
938
|
+
region: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
939
|
+
secretAccessKey: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
|
|
940
|
+
service: z.literal("s3"),
|
|
941
|
+
type: TypeStorage1$inboundSchema,
|
|
942
|
+
});
|
|
943
|
+
/** @internal */
|
|
944
|
+
export const ExternalBindingS3$outboundSchema = z.object({
|
|
945
|
+
accessKeyId: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
946
|
+
bucketName: BindingValueStringUnion$outboundSchema,
|
|
947
|
+
endpoint: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
948
|
+
forcePathStyle: z.nullable(z.boolean()).optional(),
|
|
949
|
+
region: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
|
|
950
|
+
secretAccessKey: z.nullable(BindingValueStringUnion$outboundSchema)
|
|
951
|
+
.optional(),
|
|
952
|
+
service: z.literal("s3"),
|
|
953
|
+
type: TypeStorage1$outboundSchema,
|
|
954
|
+
});
|
|
955
|
+
export function externalBindingS3ToJSON(externalBindingS3) {
|
|
956
|
+
return JSON.stringify(ExternalBindingS3$outboundSchema.parse(externalBindingS3));
|
|
957
|
+
}
|
|
958
|
+
export function externalBindingS3FromJSON(jsonString) {
|
|
959
|
+
return safeParse(jsonString, (x) => ExternalBindingS3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingS3' from JSON`);
|
|
960
|
+
}
|
|
961
|
+
/** @internal */
|
|
962
|
+
export const ExternalBindingUnion1$inboundSchema = z.union([
|
|
963
|
+
z.lazy(() => ExternalBindingS3$inboundSchema),
|
|
964
|
+
z.lazy(() => ExternalBindingBlob$inboundSchema),
|
|
965
|
+
z.lazy(() => ExternalBindingGcs$inboundSchema),
|
|
966
|
+
z.lazy(() => ExternalBindingLocalStorage$inboundSchema),
|
|
967
|
+
]);
|
|
968
|
+
/** @internal */
|
|
969
|
+
export const ExternalBindingUnion1$outboundSchema = z.union([
|
|
970
|
+
z.lazy(() => ExternalBindingS3$outboundSchema),
|
|
971
|
+
z.lazy(() => ExternalBindingBlob$outboundSchema),
|
|
972
|
+
z.lazy(() => ExternalBindingGcs$outboundSchema),
|
|
973
|
+
z.lazy(() => ExternalBindingLocalStorage$outboundSchema),
|
|
974
|
+
]);
|
|
975
|
+
export function externalBindingUnion1ToJSON(externalBindingUnion1) {
|
|
976
|
+
return JSON.stringify(ExternalBindingUnion1$outboundSchema.parse(externalBindingUnion1));
|
|
977
|
+
}
|
|
978
|
+
export function externalBindingUnion1FromJSON(jsonString) {
|
|
979
|
+
return safeParse(jsonString, (x) => ExternalBindingUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingUnion1' from JSON`);
|
|
980
|
+
}
|
|
981
|
+
/** @internal */
|
|
982
|
+
export const ExternalBindingUnion$inboundSchema = z.union([
|
|
983
|
+
z.lazy(() => ExternalBindingContainerAppsEnvironment$inboundSchema),
|
|
984
|
+
z.lazy(() => ExternalBindingAi$inboundSchema),
|
|
985
|
+
z.union([
|
|
986
|
+
z.lazy(() => ExternalBindingS3$inboundSchema),
|
|
987
|
+
z.lazy(() => ExternalBindingBlob$inboundSchema),
|
|
988
|
+
z.lazy(() => ExternalBindingGcs$inboundSchema),
|
|
989
|
+
z.lazy(() => ExternalBindingLocalStorage$inboundSchema),
|
|
990
|
+
]),
|
|
991
|
+
z.union([
|
|
992
|
+
z.lazy(() => ExternalBindingSqs$inboundSchema),
|
|
993
|
+
z.lazy(() => ExternalBindingPubsub$inboundSchema),
|
|
994
|
+
z.lazy(() => ExternalBindingServicebus$inboundSchema),
|
|
995
|
+
z.lazy(() => ExternalBindingLocalQueue$inboundSchema),
|
|
996
|
+
]),
|
|
997
|
+
z.union([
|
|
998
|
+
z.lazy(() => ExternalBindingDynamodb$inboundSchema),
|
|
999
|
+
z.lazy(() => ExternalBindingFirestore$inboundSchema),
|
|
1000
|
+
z.lazy(() => ExternalBindingTablestorage$inboundSchema),
|
|
1001
|
+
z.lazy(() => ExternalBindingRedis$inboundSchema),
|
|
1002
|
+
z.lazy(() => ExternalBindingLocalKv$inboundSchema),
|
|
1003
|
+
]),
|
|
1004
|
+
z.union([
|
|
1005
|
+
z.lazy(() => ExternalBindingEcr$inboundSchema),
|
|
1006
|
+
z.lazy(() => ExternalBindingAcr$inboundSchema),
|
|
1007
|
+
z.lazy(() => ExternalBindingGar$inboundSchema),
|
|
1008
|
+
z.lazy(() => ExternalBindingLocal$inboundSchema),
|
|
1009
|
+
]),
|
|
1010
|
+
z.union([
|
|
1011
|
+
z.lazy(() => ExternalBindingParameterStore$inboundSchema),
|
|
1012
|
+
z.lazy(() => ExternalBindingSecretManager$inboundSchema),
|
|
1013
|
+
z.lazy(() => ExternalBindingKeyVault$inboundSchema),
|
|
1014
|
+
z.lazy(() => ExternalBindingKubernetesSecret$inboundSchema),
|
|
1015
|
+
z.lazy(() => ExternalBindingLocalVault$inboundSchema),
|
|
1016
|
+
]),
|
|
1017
|
+
z.union([
|
|
1018
|
+
z.lazy(() => ExternalBindingAurora$inboundSchema),
|
|
1019
|
+
z.lazy(() => ExternalBindingCloudSQL$inboundSchema),
|
|
1020
|
+
z.lazy(() => ExternalBindingFlexibleServer$inboundSchema),
|
|
1021
|
+
z.lazy(() => ExternalBindingExternal$inboundSchema),
|
|
1022
|
+
z.lazy(() => ExternalBindingLocalPostgres$inboundSchema),
|
|
1023
|
+
]),
|
|
1024
|
+
]);
|
|
1025
|
+
/** @internal */
|
|
1026
|
+
export const ExternalBindingUnion$outboundSchema = z.union([
|
|
1027
|
+
z.lazy(() => ExternalBindingContainerAppsEnvironment$outboundSchema),
|
|
1028
|
+
z.lazy(() => ExternalBindingAi$outboundSchema),
|
|
1029
|
+
z.union([
|
|
1030
|
+
z.lazy(() => ExternalBindingS3$outboundSchema),
|
|
1031
|
+
z.lazy(() => ExternalBindingBlob$outboundSchema),
|
|
1032
|
+
z.lazy(() => ExternalBindingGcs$outboundSchema),
|
|
1033
|
+
z.lazy(() => ExternalBindingLocalStorage$outboundSchema),
|
|
1034
|
+
]),
|
|
1035
|
+
z.union([
|
|
1036
|
+
z.lazy(() => ExternalBindingSqs$outboundSchema),
|
|
1037
|
+
z.lazy(() => ExternalBindingPubsub$outboundSchema),
|
|
1038
|
+
z.lazy(() => ExternalBindingServicebus$outboundSchema),
|
|
1039
|
+
z.lazy(() => ExternalBindingLocalQueue$outboundSchema),
|
|
1040
|
+
]),
|
|
1041
|
+
z.union([
|
|
1042
|
+
z.lazy(() => ExternalBindingDynamodb$outboundSchema),
|
|
1043
|
+
z.lazy(() => ExternalBindingFirestore$outboundSchema),
|
|
1044
|
+
z.lazy(() => ExternalBindingTablestorage$outboundSchema),
|
|
1045
|
+
z.lazy(() => ExternalBindingRedis$outboundSchema),
|
|
1046
|
+
z.lazy(() => ExternalBindingLocalKv$outboundSchema),
|
|
1047
|
+
]),
|
|
1048
|
+
z.union([
|
|
1049
|
+
z.lazy(() => ExternalBindingEcr$outboundSchema),
|
|
1050
|
+
z.lazy(() => ExternalBindingAcr$outboundSchema),
|
|
1051
|
+
z.lazy(() => ExternalBindingGar$outboundSchema),
|
|
1052
|
+
z.lazy(() => ExternalBindingLocal$outboundSchema),
|
|
1053
|
+
]),
|
|
1054
|
+
z.union([
|
|
1055
|
+
z.lazy(() => ExternalBindingParameterStore$outboundSchema),
|
|
1056
|
+
z.lazy(() => ExternalBindingSecretManager$outboundSchema),
|
|
1057
|
+
z.lazy(() => ExternalBindingKeyVault$outboundSchema),
|
|
1058
|
+
z.lazy(() => ExternalBindingKubernetesSecret$outboundSchema),
|
|
1059
|
+
z.lazy(() => ExternalBindingLocalVault$outboundSchema),
|
|
1060
|
+
]),
|
|
1061
|
+
z.union([
|
|
1062
|
+
z.lazy(() => ExternalBindingAurora$outboundSchema),
|
|
1063
|
+
z.lazy(() => ExternalBindingCloudSQL$outboundSchema),
|
|
1064
|
+
z.lazy(() => ExternalBindingFlexibleServer$outboundSchema),
|
|
1065
|
+
z.lazy(() => ExternalBindingExternal$outboundSchema),
|
|
1066
|
+
z.lazy(() => ExternalBindingLocalPostgres$outboundSchema),
|
|
1067
|
+
]),
|
|
1068
|
+
]);
|
|
1069
|
+
export function externalBindingUnionToJSON(externalBindingUnion) {
|
|
1070
|
+
return JSON.stringify(ExternalBindingUnion$outboundSchema.parse(externalBindingUnion));
|
|
1071
|
+
}
|
|
1072
|
+
export function externalBindingUnionFromJSON(jsonString) {
|
|
1073
|
+
return safeParse(jsonString, (x) => ExternalBindingUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExternalBindingUnion' from JSON`);
|
|
1074
|
+
}
|
|
1075
|
+
//# sourceMappingURL=externalbindingunion.js.map
|