@alienplatform/manager-api 3.3.30 → 3.3.32

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.
Files changed (181) hide show
  1. package/esm/funcs/commandsStoreCommandPayload.d.ts +2 -2
  2. package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
  3. package/esm/funcs/commandsStoreCommandPayload.js +8 -4
  4. package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
  5. package/esm/funcs/commandsSubmitResponse.d.ts +2 -2
  6. package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
  7. package/esm/funcs/commandsSubmitResponse.js +8 -4
  8. package/esm/funcs/commandsSubmitResponse.js.map +1 -1
  9. package/esm/funcs/commandsUploadComplete.d.ts +1 -2
  10. package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
  11. package/esm/funcs/commandsUploadComplete.js +8 -4
  12. package/esm/funcs/commandsUploadComplete.js.map +1 -1
  13. package/esm/funcs/deploymentsDeleteDeployment.d.ts +1 -2
  14. package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
  15. package/esm/funcs/deploymentsDeleteDeployment.js +8 -4
  16. package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
  17. package/esm/funcs/deploymentsImportDeploymentStatus.d.ts +1 -2
  18. package/esm/funcs/deploymentsImportDeploymentStatus.d.ts.map +1 -1
  19. package/esm/funcs/deploymentsImportDeploymentStatus.js +8 -4
  20. package/esm/funcs/deploymentsImportDeploymentStatus.js.map +1 -1
  21. package/esm/funcs/deploymentsSetDeploymentChannel.d.ts +1 -2
  22. package/esm/funcs/deploymentsSetDeploymentChannel.d.ts.map +1 -1
  23. package/esm/funcs/deploymentsSetDeploymentChannel.js +8 -4
  24. package/esm/funcs/deploymentsSetDeploymentChannel.js.map +1 -1
  25. package/esm/funcs/deploymentsSetDeploymentPin.d.ts +1 -2
  26. package/esm/funcs/deploymentsSetDeploymentPin.d.ts.map +1 -1
  27. package/esm/funcs/deploymentsSetDeploymentPin.js +8 -4
  28. package/esm/funcs/deploymentsSetDeploymentPin.js.map +1 -1
  29. package/esm/funcs/deploymentsSignDeploymentBundle.d.ts +1 -2
  30. package/esm/funcs/deploymentsSignDeploymentBundle.d.ts.map +1 -1
  31. package/esm/funcs/deploymentsSignDeploymentBundle.js +8 -4
  32. package/esm/funcs/deploymentsSignDeploymentBundle.js.map +1 -1
  33. package/esm/funcs/releasesPromoteManagerRelease.d.ts +1 -2
  34. package/esm/funcs/releasesPromoteManagerRelease.d.ts.map +1 -1
  35. package/esm/funcs/releasesPromoteManagerRelease.js +8 -4
  36. package/esm/funcs/releasesPromoteManagerRelease.js.map +1 -1
  37. package/esm/lib/config.d.ts +2 -2
  38. package/esm/lib/config.js +2 -2
  39. package/esm/models/acquireresponse.d.ts +8 -0
  40. package/esm/models/acquireresponse.d.ts.map +1 -1
  41. package/esm/models/acquireresponse.js +2 -0
  42. package/esm/models/acquireresponse.js.map +1 -1
  43. package/esm/models/agentsyncrequest.d.ts +3 -0
  44. package/esm/models/agentsyncrequest.d.ts.map +1 -1
  45. package/esm/models/agentsyncrequest.js +2 -0
  46. package/esm/models/agentsyncrequest.js.map +1 -1
  47. package/esm/models/bindingvalueoptionstringunion.d.ts +39 -0
  48. package/esm/models/bindingvalueoptionstringunion.d.ts.map +1 -0
  49. package/esm/models/bindingvalueoptionstringunion.js +39 -0
  50. package/esm/models/bindingvalueoptionstringunion.js.map +1 -0
  51. package/esm/models/bindingvaluestringunion.d.ts +39 -0
  52. package/esm/models/bindingvaluestringunion.d.ts.map +1 -0
  53. package/esm/models/bindingvaluestringunion.js +39 -0
  54. package/esm/models/bindingvaluestringunion.js.map +1 -0
  55. package/esm/models/bindingvalueu16union.d.ts +39 -0
  56. package/esm/models/bindingvalueu16union.d.ts.map +1 -0
  57. package/esm/models/bindingvalueu16union.js +31 -0
  58. package/esm/models/bindingvalueu16union.js.map +1 -0
  59. package/esm/models/bindingvalueu8union.d.ts +39 -0
  60. package/esm/models/bindingvalueu8union.d.ts.map +1 -0
  61. package/esm/models/bindingvalueu8union.js +31 -0
  62. package/esm/models/bindingvalueu8union.js.map +1 -0
  63. package/esm/models/bindingvaluevecstringunion.d.ts +39 -0
  64. package/esm/models/bindingvaluevecstringunion.d.ts.map +1 -0
  65. package/esm/models/bindingvaluevecstringunion.js +39 -0
  66. package/esm/models/bindingvaluevecstringunion.js.map +1 -0
  67. package/esm/models/computesettings.d.ts +10 -0
  68. package/esm/models/computesettings.d.ts.map +1 -1
  69. package/esm/models/computesettings.js +5 -0
  70. package/esm/models/computesettings.js.map +1 -1
  71. package/esm/models/containerresourceselection.d.ts +28 -0
  72. package/esm/models/containerresourceselection.d.ts.map +1 -0
  73. package/esm/models/containerresourceselection.js +22 -0
  74. package/esm/models/containerresourceselection.js.map +1 -0
  75. package/esm/models/custompluginoperationsconfig.d.ts +46 -0
  76. package/esm/models/custompluginoperationsconfig.d.ts.map +1 -0
  77. package/esm/models/custompluginoperationsconfig.js +19 -0
  78. package/esm/models/custompluginoperationsconfig.js.map +1 -0
  79. package/esm/models/deploymentacquireunavailablereason.d.ts +32 -0
  80. package/esm/models/deploymentacquireunavailablereason.d.ts.map +1 -0
  81. package/esm/models/deploymentacquireunavailablereason.js +25 -0
  82. package/esm/models/deploymentacquireunavailablereason.js.map +1 -0
  83. package/esm/models/externalbindingunion.d.ts +1414 -0
  84. package/esm/models/externalbindingunion.d.ts.map +1 -0
  85. package/esm/models/externalbindingunion.js +1075 -0
  86. package/esm/models/externalbindingunion.js.map +1 -0
  87. package/esm/models/externalpostgressslmode.d.ts +28 -0
  88. package/esm/models/externalpostgressslmode.d.ts.map +1 -0
  89. package/esm/models/externalpostgressslmode.js +21 -0
  90. package/esm/models/externalpostgressslmode.js.map +1 -0
  91. package/esm/models/index.d.ts +17 -0
  92. package/esm/models/index.d.ts.map +1 -1
  93. package/esm/models/index.js +17 -0
  94. package/esm/models/index.js.map +1 -1
  95. package/esm/models/operationapprovaldecision.d.ts +16 -0
  96. package/esm/models/operationapprovaldecision.d.ts.map +1 -0
  97. package/esm/models/operationapprovaldecision.js +14 -0
  98. package/esm/models/operationapprovaldecision.js.map +1 -0
  99. package/esm/models/operationapprovalunion.d.ts +36 -0
  100. package/esm/models/operationapprovalunion.d.ts.map +1 -0
  101. package/esm/models/operationapprovalunion.js +22 -0
  102. package/esm/models/operationapprovalunion.js.map +1 -0
  103. package/esm/models/operationsbundledownload.d.ts +9 -0
  104. package/esm/models/operationsbundledownload.d.ts.map +1 -1
  105. package/esm/models/operationsbundledownload.js +1 -0
  106. package/esm/models/operationsbundledownload.js.map +1 -1
  107. package/esm/models/operationsconfig.d.ts +29 -0
  108. package/esm/models/operationsconfig.d.ts.map +1 -0
  109. package/esm/models/operationsconfig.js +16 -0
  110. package/esm/models/operationsconfig.js.map +1 -0
  111. package/esm/models/operationsettingvalueunion.d.ts +62 -0
  112. package/esm/models/operationsettingvalueunion.d.ts.map +1 -0
  113. package/esm/models/operationsettingvalueunion.js +36 -0
  114. package/esm/models/operationsettingvalueunion.js.map +1 -0
  115. package/esm/models/pluginoperationsconfig.d.ts +36 -0
  116. package/esm/models/pluginoperationsconfig.d.ts.map +1 -0
  117. package/esm/models/pluginoperationsconfig.js +17 -0
  118. package/esm/models/pluginoperationsconfig.js.map +1 -0
  119. package/esm/models/secretreference.d.ts +22 -0
  120. package/esm/models/secretreference.d.ts.map +1 -0
  121. package/esm/models/secretreference.js +22 -0
  122. package/esm/models/secretreference.js.map +1 -0
  123. package/esm/models/stacksettings.d.ts +7 -27
  124. package/esm/models/stacksettings.d.ts.map +1 -1
  125. package/esm/models/stacksettings.js +3 -14
  126. package/esm/models/stacksettings.js.map +1 -1
  127. package/esm/models/unacquireddeployment.d.ts +24 -0
  128. package/esm/models/unacquireddeployment.d.ts.map +1 -0
  129. package/esm/models/unacquireddeployment.js +16 -0
  130. package/esm/models/unacquireddeployment.js.map +1 -0
  131. package/esm/sdk/commands.d.ts +3 -3
  132. package/esm/sdk/commands.d.ts.map +1 -1
  133. package/esm/sdk/commands.js +6 -6
  134. package/esm/sdk/commands.js.map +1 -1
  135. package/esm/sdk/deployments.d.ts +5 -5
  136. package/esm/sdk/deployments.d.ts.map +1 -1
  137. package/esm/sdk/deployments.js +10 -10
  138. package/esm/sdk/deployments.js.map +1 -1
  139. package/esm/sdk/releases.d.ts +1 -1
  140. package/esm/sdk/releases.d.ts.map +1 -1
  141. package/esm/sdk/releases.js +2 -2
  142. package/esm/sdk/releases.js.map +1 -1
  143. package/examples/package-lock.json +1 -1
  144. package/jsr.json +1 -1
  145. package/package.json +3 -3
  146. package/src/funcs/commandsStoreCommandPayload.ts +13 -4
  147. package/src/funcs/commandsSubmitResponse.ts +13 -4
  148. package/src/funcs/commandsUploadComplete.ts +12 -4
  149. package/src/funcs/deploymentsDeleteDeployment.ts +12 -4
  150. package/src/funcs/deploymentsImportDeploymentStatus.ts +12 -4
  151. package/src/funcs/deploymentsSetDeploymentChannel.ts +12 -4
  152. package/src/funcs/deploymentsSetDeploymentPin.ts +12 -4
  153. package/src/funcs/deploymentsSignDeploymentBundle.ts +12 -4
  154. package/src/funcs/releasesPromoteManagerRelease.ts +12 -4
  155. package/src/lib/config.ts +2 -2
  156. package/src/models/acquireresponse.ts +12 -0
  157. package/src/models/agentsyncrequest.ts +8 -0
  158. package/src/models/bindingvalueoptionstringunion.ts +116 -0
  159. package/src/models/bindingvaluestringunion.ts +111 -0
  160. package/src/models/bindingvalueu16union.ts +101 -0
  161. package/src/models/bindingvalueu8union.ts +97 -0
  162. package/src/models/bindingvaluevecstringunion.ts +114 -0
  163. package/src/models/computesettings.ts +15 -0
  164. package/src/models/containerresourceselection.ts +62 -0
  165. package/src/models/custompluginoperationsconfig.ts +71 -0
  166. package/src/models/deploymentacquireunavailablereason.ts +41 -0
  167. package/src/models/externalbindingunion.ts +3068 -0
  168. package/src/models/externalpostgressslmode.ts +39 -0
  169. package/src/models/index.ts +17 -0
  170. package/src/models/operationapprovaldecision.ts +25 -0
  171. package/src/models/operationapprovalunion.ts +78 -0
  172. package/src/models/operationsbundledownload.ts +8 -0
  173. package/src/models/operationsconfig.ts +53 -0
  174. package/src/models/operationsettingvalueunion.ts +136 -0
  175. package/src/models/pluginoperationsconfig.ts +57 -0
  176. package/src/models/secretreference.ts +54 -0
  177. package/src/models/stacksettings.ts +17 -55
  178. package/src/models/unacquireddeployment.ts +51 -0
  179. package/src/sdk/commands.ts +12 -6
  180. package/src/sdk/deployments.ts +20 -10
  181. package/src/sdk/releases.ts +4 -2
@@ -0,0 +1,3068 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import {
10
+ BindingValueOptionStringUnion,
11
+ BindingValueOptionStringUnion$inboundSchema,
12
+ BindingValueOptionStringUnion$Outbound,
13
+ BindingValueOptionStringUnion$outboundSchema,
14
+ } from "./bindingvalueoptionstringunion.js";
15
+ import {
16
+ BindingValueStringUnion,
17
+ BindingValueStringUnion$inboundSchema,
18
+ BindingValueStringUnion$Outbound,
19
+ BindingValueStringUnion$outboundSchema,
20
+ } from "./bindingvaluestringunion.js";
21
+ import {
22
+ BindingValueU16Union,
23
+ BindingValueU16Union$inboundSchema,
24
+ BindingValueU16Union$Outbound,
25
+ BindingValueU16Union$outboundSchema,
26
+ } from "./bindingvalueu16union.js";
27
+ import {
28
+ BindingValueU8Union,
29
+ BindingValueU8Union$inboundSchema,
30
+ BindingValueU8Union$Outbound,
31
+ BindingValueU8Union$outboundSchema,
32
+ } from "./bindingvalueu8union.js";
33
+ import {
34
+ BindingValueVecStringUnion,
35
+ BindingValueVecStringUnion$inboundSchema,
36
+ BindingValueVecStringUnion$Outbound,
37
+ BindingValueVecStringUnion$outboundSchema,
38
+ } from "./bindingvaluevecstringunion.js";
39
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
40
+ import {
41
+ ExternalPostgresSslMode,
42
+ ExternalPostgresSslMode$inboundSchema,
43
+ ExternalPostgresSslMode$outboundSchema,
44
+ } from "./externalpostgressslmode.js";
45
+
46
+ export const TypeAi = {
47
+ Ai: "ai",
48
+ } as const;
49
+ export type TypeAi = ClosedEnum<typeof TypeAi>;
50
+
51
+ /**
52
+ * External AI provider binding (BYO-key OpenAI/Anthropic, etc.)
53
+ */
54
+ export type ExternalBindingAi = {
55
+ /**
56
+ * Represents a value that can be either a concrete value, a template expression,
57
+ *
58
+ * @remarks
59
+ * or a reference to a Kubernetes Secret
60
+ */
61
+ apiKey: BindingValueStringUnion;
62
+ /**
63
+ * The external AI provider name (e.g., "openai", "anthropic")
64
+ */
65
+ provider: string;
66
+ type: TypeAi;
67
+ };
68
+
69
+ export const TypePostgres5 = {
70
+ Postgres: "postgres",
71
+ } as const;
72
+ export type TypePostgres5 = ClosedEnum<typeof TypePostgres5>;
73
+
74
+ /**
75
+ * Local embedded Postgres process.
76
+ */
77
+ export type ExternalBindingLocalPostgres = {
78
+ /**
79
+ * Represents a value that can be either a concrete value, a template expression,
80
+ *
81
+ * @remarks
82
+ * or a reference to a Kubernetes Secret
83
+ */
84
+ database: BindingValueStringUnion;
85
+ /**
86
+ * Represents a value that can be either a concrete value, a template expression,
87
+ *
88
+ * @remarks
89
+ * or a reference to a Kubernetes Secret
90
+ */
91
+ host: BindingValueStringUnion;
92
+ password: string;
93
+ /**
94
+ * Represents a value that can be either a concrete value, a template expression,
95
+ *
96
+ * @remarks
97
+ * or a reference to a Kubernetes Secret
98
+ */
99
+ port: BindingValueU16Union;
100
+ /**
101
+ * Represents a value that can be either a concrete value, a template expression,
102
+ *
103
+ * @remarks
104
+ * or a reference to a Kubernetes Secret
105
+ */
106
+ username: BindingValueStringUnion;
107
+ service: "local-postgres";
108
+ type: TypePostgres5;
109
+ };
110
+
111
+ export const TypePostgres4 = {
112
+ Postgres: "postgres",
113
+ } as const;
114
+ export type TypePostgres4 = ClosedEnum<typeof TypePostgres4>;
115
+
116
+ /**
117
+ * Operator-provided / BYO database (Kubernetes, on-prem, or cloud override).
118
+ */
119
+ export type ExternalBindingExternal = {
120
+ /**
121
+ * Represents a value that can be either a concrete value, a template expression,
122
+ *
123
+ * @remarks
124
+ * or a reference to a Kubernetes Secret
125
+ */
126
+ database: BindingValueStringUnion;
127
+ /**
128
+ * Represents a value that can be either a concrete value, a template expression,
129
+ *
130
+ * @remarks
131
+ * or a reference to a Kubernetes Secret
132
+ */
133
+ host: BindingValueStringUnion;
134
+ /**
135
+ * Connection password as a concrete value, never an unresolved `SecretRef`: the platform
136
+ *
137
+ * @remarks
138
+ * materializes the Kubernetes secret into the pod env. The cloud variants carry a secret
139
+ * locator instead.
140
+ */
141
+ password: string;
142
+ /**
143
+ * Represents a value that can be either a concrete value, a template expression,
144
+ *
145
+ * @remarks
146
+ * or a reference to a Kubernetes Secret
147
+ */
148
+ port: BindingValueU16Union;
149
+ /**
150
+ * TLS policy for an operator-provided / BYO Postgres database.
151
+ *
152
+ * @remarks
153
+ *
154
+ * Unlike libpq's ambiguous `prefer` mode, both choices map exactly to the
155
+ * connection settings exposed by every supported SDK.
156
+ */
157
+ sslMode?: ExternalPostgresSslMode | undefined;
158
+ /**
159
+ * Represents a value that can be either a concrete value, a template expression,
160
+ *
161
+ * @remarks
162
+ * or a reference to a Kubernetes Secret
163
+ */
164
+ username: BindingValueStringUnion;
165
+ service: "external";
166
+ type: TypePostgres4;
167
+ };
168
+
169
+ export const TypePostgres3 = {
170
+ Postgres: "postgres",
171
+ } as const;
172
+ export type TypePostgres3 = ClosedEnum<typeof TypePostgres3>;
173
+
174
+ /**
175
+ * Azure Database for PostgreSQL — Flexible Server (host + secret URI).
176
+ */
177
+ export type ExternalBindingFlexibleServer = {
178
+ /**
179
+ * Represents a value that can be either a concrete value, a template expression,
180
+ *
181
+ * @remarks
182
+ * or a reference to a Kubernetes Secret
183
+ */
184
+ database: BindingValueStringUnion;
185
+ /**
186
+ * Represents a value that can be either a concrete value, a template expression,
187
+ *
188
+ * @remarks
189
+ * or a reference to a Kubernetes Secret
190
+ */
191
+ host: BindingValueStringUnion;
192
+ /**
193
+ * Represents a value that can be either a concrete value, a template expression,
194
+ *
195
+ * @remarks
196
+ * or a reference to a Kubernetes Secret
197
+ */
198
+ passwordSecretUri: BindingValueStringUnion;
199
+ /**
200
+ * Represents a value that can be either a concrete value, a template expression,
201
+ *
202
+ * @remarks
203
+ * or a reference to a Kubernetes Secret
204
+ */
205
+ port: BindingValueU16Union;
206
+ /**
207
+ * Represents a value that can be either a concrete value, a template expression,
208
+ *
209
+ * @remarks
210
+ * or a reference to a Kubernetes Secret
211
+ */
212
+ username: BindingValueStringUnion;
213
+ service: "flexible-server";
214
+ type: TypePostgres3;
215
+ };
216
+
217
+ export const TypePostgres2 = {
218
+ Postgres: "postgres",
219
+ } as const;
220
+ export type TypePostgres2 = ClosedEnum<typeof TypePostgres2>;
221
+
222
+ /**
223
+ * GCP Cloud SQL (host + secret name).
224
+ */
225
+ export type ExternalBindingCloudSQL = {
226
+ /**
227
+ * Represents a value that can be either a concrete value, a template expression,
228
+ *
229
+ * @remarks
230
+ * or a reference to a Kubernetes Secret
231
+ */
232
+ database: BindingValueStringUnion;
233
+ /**
234
+ * Represents a value that can be either a concrete value, a template expression,
235
+ *
236
+ * @remarks
237
+ * or a reference to a Kubernetes Secret
238
+ */
239
+ host: BindingValueStringUnion;
240
+ /**
241
+ * Represents a value that can be either a concrete value, a template expression,
242
+ *
243
+ * @remarks
244
+ * or a reference to a Kubernetes Secret
245
+ */
246
+ passwordSecretName: BindingValueStringUnion;
247
+ /**
248
+ * Represents a value that can be either a concrete value, a template expression,
249
+ *
250
+ * @remarks
251
+ * or a reference to a Kubernetes Secret
252
+ */
253
+ port: BindingValueU16Union;
254
+ /**
255
+ * Represents a value that can be either a concrete value, a template expression,
256
+ *
257
+ * @remarks
258
+ * or a reference to a Kubernetes Secret
259
+ */
260
+ serverCaCertificates: BindingValueVecStringUnion;
261
+ /**
262
+ * Represents a value that can be either a concrete value, a template expression,
263
+ *
264
+ * @remarks
265
+ * or a reference to a Kubernetes Secret
266
+ */
267
+ username: BindingValueStringUnion;
268
+ service: "cloud-sql";
269
+ type: TypePostgres2;
270
+ };
271
+
272
+ export const TypePostgres1 = {
273
+ Postgres: "postgres",
274
+ } as const;
275
+ export type TypePostgres1 = ClosedEnum<typeof TypePostgres1>;
276
+
277
+ /**
278
+ * AWS Aurora Serverless v2 (cluster endpoint + secret ARN).
279
+ */
280
+ export type ExternalBindingAurora = {
281
+ /**
282
+ * Represents a value that can be either a concrete value, a template expression,
283
+ *
284
+ * @remarks
285
+ * or a reference to a Kubernetes Secret
286
+ */
287
+ clusterEndpoint: BindingValueStringUnion;
288
+ /**
289
+ * Represents a value that can be either a concrete value, a template expression,
290
+ *
291
+ * @remarks
292
+ * or a reference to a Kubernetes Secret
293
+ */
294
+ database: BindingValueStringUnion;
295
+ /**
296
+ * Represents a value that can be either a concrete value, a template expression,
297
+ *
298
+ * @remarks
299
+ * or a reference to a Kubernetes Secret
300
+ */
301
+ passwordSecretArn: BindingValueStringUnion;
302
+ /**
303
+ * Represents a value that can be either a concrete value, a template expression,
304
+ *
305
+ * @remarks
306
+ * or a reference to a Kubernetes Secret
307
+ */
308
+ port: BindingValueU16Union;
309
+ /**
310
+ * Represents a value that can be either a concrete value, a template expression,
311
+ *
312
+ * @remarks
313
+ * or a reference to a Kubernetes Secret
314
+ */
315
+ username: BindingValueStringUnion;
316
+ service: "aurora";
317
+ type: TypePostgres1;
318
+ };
319
+
320
+ /**
321
+ * External Postgres binding (operator-provided / BYO database)
322
+ */
323
+ export type ExternalBindingUnion6 =
324
+ | ExternalBindingAurora
325
+ | ExternalBindingCloudSQL
326
+ | ExternalBindingFlexibleServer
327
+ | ExternalBindingExternal
328
+ | ExternalBindingLocalPostgres;
329
+
330
+ export const TypeContainerAppsEnvironment = {
331
+ ContainerAppsEnvironment: "container_apps_environment",
332
+ } as const;
333
+ export type TypeContainerAppsEnvironment = ClosedEnum<
334
+ typeof TypeContainerAppsEnvironment
335
+ >;
336
+
337
+ /**
338
+ * External Azure Container Apps Environment binding (pre-existing environment)
339
+ */
340
+ export type ExternalBindingContainerAppsEnvironment = {
341
+ /**
342
+ * Represents a value that can be either a concrete value, a template expression,
343
+ *
344
+ * @remarks
345
+ * or a reference to a Kubernetes Secret
346
+ */
347
+ defaultDomain: BindingValueStringUnion;
348
+ /**
349
+ * Represents a value that can be either a concrete value, a template expression,
350
+ *
351
+ * @remarks
352
+ * or a reference to a Kubernetes Secret
353
+ */
354
+ environmentName: BindingValueStringUnion;
355
+ /**
356
+ * Represents a value that can be either a concrete value, a template expression,
357
+ *
358
+ * @remarks
359
+ * or a reference to a Kubernetes Secret
360
+ */
361
+ resourceGroupName: BindingValueStringUnion;
362
+ /**
363
+ * Represents a value that can be either a concrete value, a template expression,
364
+ *
365
+ * @remarks
366
+ * or a reference to a Kubernetes Secret
367
+ */
368
+ resourceId: BindingValueStringUnion;
369
+ staticIp?: BindingValueStringUnion | null | undefined;
370
+ type: TypeContainerAppsEnvironment;
371
+ };
372
+
373
+ export const TypeVault5 = {
374
+ Vault: "vault",
375
+ } as const;
376
+ export type TypeVault5 = ClosedEnum<typeof TypeVault5>;
377
+
378
+ /**
379
+ * Local development vault
380
+ */
381
+ export type ExternalBindingLocalVault = {
382
+ /**
383
+ * Represents a value that can be either a concrete value, a template expression,
384
+ *
385
+ * @remarks
386
+ * or a reference to a Kubernetes Secret
387
+ */
388
+ dataDir: BindingValueStringUnion;
389
+ /**
390
+ * The vault name for local storage
391
+ */
392
+ vaultName: string;
393
+ service: "local-vault";
394
+ type: TypeVault5;
395
+ };
396
+
397
+ export const TypeVault4 = {
398
+ Vault: "vault",
399
+ } as const;
400
+ export type TypeVault4 = ClosedEnum<typeof TypeVault4>;
401
+
402
+ /**
403
+ * Kubernetes Secrets binding (native K8s secret storage)
404
+ */
405
+ export type ExternalBindingKubernetesSecret = {
406
+ /**
407
+ * Represents a value that can be either a concrete value, a template expression,
408
+ *
409
+ * @remarks
410
+ * or a reference to a Kubernetes Secret
411
+ */
412
+ namespace: BindingValueStringUnion;
413
+ /**
414
+ * Represents a value that can be either a concrete value, a template expression,
415
+ *
416
+ * @remarks
417
+ * or a reference to a Kubernetes Secret
418
+ */
419
+ vaultPrefix: BindingValueStringUnion;
420
+ service: "kubernetes-secret";
421
+ type: TypeVault4;
422
+ };
423
+
424
+ export const TypeVault3 = {
425
+ Vault: "vault",
426
+ } as const;
427
+ export type TypeVault3 = ClosedEnum<typeof TypeVault3>;
428
+
429
+ /**
430
+ * Azure Key Vault binding
431
+ */
432
+ export type ExternalBindingKeyVault = {
433
+ /**
434
+ * Represents a value that can be either a concrete value, a template expression,
435
+ *
436
+ * @remarks
437
+ * or a reference to a Kubernetes Secret
438
+ */
439
+ vaultName: BindingValueStringUnion;
440
+ service: "key-vault";
441
+ type: TypeVault3;
442
+ };
443
+
444
+ export const TypeVault2 = {
445
+ Vault: "vault",
446
+ } as const;
447
+ export type TypeVault2 = ClosedEnum<typeof TypeVault2>;
448
+
449
+ /**
450
+ * GCP Secret Manager binding
451
+ */
452
+ export type ExternalBindingSecretManager = {
453
+ /**
454
+ * Represents a value that can be either a concrete value, a template expression,
455
+ *
456
+ * @remarks
457
+ * or a reference to a Kubernetes Secret
458
+ */
459
+ vaultPrefix: BindingValueStringUnion;
460
+ service: "secret-manager";
461
+ type: TypeVault2;
462
+ };
463
+
464
+ export const TypeVault1 = {
465
+ Vault: "vault",
466
+ } as const;
467
+ export type TypeVault1 = ClosedEnum<typeof TypeVault1>;
468
+
469
+ /**
470
+ * AWS SSM Parameter Store binding (SecureString)
471
+ */
472
+ export type ExternalBindingParameterStore = {
473
+ /**
474
+ * Represents a value that can be either a concrete value, a template expression,
475
+ *
476
+ * @remarks
477
+ * or a reference to a Kubernetes Secret
478
+ */
479
+ vaultPrefix: BindingValueStringUnion;
480
+ service: "parameter-store";
481
+ type: TypeVault1;
482
+ };
483
+
484
+ /**
485
+ * External vault binding (HashiCorp Vault, etc.)
486
+ */
487
+ export type ExternalBindingUnion5 =
488
+ | ExternalBindingParameterStore
489
+ | ExternalBindingSecretManager
490
+ | ExternalBindingKeyVault
491
+ | ExternalBindingKubernetesSecret
492
+ | ExternalBindingLocalVault;
493
+
494
+ export const TypeArtifactRegistry4 = {
495
+ ArtifactRegistry: "artifact_registry",
496
+ } as const;
497
+ export type TypeArtifactRegistry4 = ClosedEnum<typeof TypeArtifactRegistry4>;
498
+
499
+ /**
500
+ * Local container registry
501
+ */
502
+ export type ExternalBindingLocal = {
503
+ /**
504
+ * Represents a value that can be either a concrete value, a template expression,
505
+ *
506
+ * @remarks
507
+ * or a reference to a Kubernetes Secret
508
+ */
509
+ dataDir: BindingValueOptionStringUnion;
510
+ /**
511
+ * Represents a value that can be either a concrete value, a template expression,
512
+ *
513
+ * @remarks
514
+ * or a reference to a Kubernetes Secret
515
+ */
516
+ registryUrl: BindingValueStringUnion;
517
+ service: "local";
518
+ type: TypeArtifactRegistry4;
519
+ };
520
+
521
+ export const TypeArtifactRegistry3 = {
522
+ ArtifactRegistry: "artifact_registry",
523
+ } as const;
524
+ export type TypeArtifactRegistry3 = ClosedEnum<typeof TypeArtifactRegistry3>;
525
+
526
+ /**
527
+ * Google Artifact Registry
528
+ */
529
+ export type ExternalBindingGar = {
530
+ pullServiceAccountEmail?: BindingValueStringUnion | null | undefined;
531
+ pushServiceAccountEmail?: BindingValueStringUnion | null | undefined;
532
+ /**
533
+ * Represents a value that can be either a concrete value, a template expression,
534
+ *
535
+ * @remarks
536
+ * or a reference to a Kubernetes Secret
537
+ */
538
+ repositoryName: BindingValueStringUnion;
539
+ service: "gar";
540
+ type: TypeArtifactRegistry3;
541
+ };
542
+
543
+ export const TypeArtifactRegistry2 = {
544
+ ArtifactRegistry: "artifact_registry",
545
+ } as const;
546
+ export type TypeArtifactRegistry2 = ClosedEnum<typeof TypeArtifactRegistry2>;
547
+
548
+ /**
549
+ * Azure Container Registry
550
+ */
551
+ export type ExternalBindingAcr = {
552
+ /**
553
+ * Represents a value that can be either a concrete value, a template expression,
554
+ *
555
+ * @remarks
556
+ * or a reference to a Kubernetes Secret
557
+ */
558
+ registryName: BindingValueStringUnion;
559
+ repositoryPrefix?: BindingValueStringUnion | null | undefined;
560
+ /**
561
+ * Represents a value that can be either a concrete value, a template expression,
562
+ *
563
+ * @remarks
564
+ * or a reference to a Kubernetes Secret
565
+ */
566
+ resourceGroupName: BindingValueStringUnion;
567
+ service: "acr";
568
+ type: TypeArtifactRegistry2;
569
+ };
570
+
571
+ export const TypeArtifactRegistry1 = {
572
+ ArtifactRegistry: "artifact_registry",
573
+ } as const;
574
+ export type TypeArtifactRegistry1 = ClosedEnum<typeof TypeArtifactRegistry1>;
575
+
576
+ /**
577
+ * AWS ECR (Elastic Container Registry)
578
+ */
579
+ export type ExternalBindingEcr = {
580
+ pullRoleArn?: BindingValueStringUnion | null | undefined;
581
+ pushRoleArn?: BindingValueStringUnion | null | undefined;
582
+ /**
583
+ * Represents a value that can be either a concrete value, a template expression,
584
+ *
585
+ * @remarks
586
+ * or a reference to a Kubernetes Secret
587
+ */
588
+ repositoryPrefix: BindingValueStringUnion;
589
+ service: "ecr";
590
+ type: TypeArtifactRegistry1;
591
+ };
592
+
593
+ /**
594
+ * External artifact registry binding (OCI registry)
595
+ */
596
+ export type ExternalBindingUnion4 =
597
+ | ExternalBindingEcr
598
+ | ExternalBindingAcr
599
+ | ExternalBindingGar
600
+ | ExternalBindingLocal;
601
+
602
+ export const TypeKv5 = {
603
+ Kv: "kv",
604
+ } as const;
605
+ export type TypeKv5 = ClosedEnum<typeof TypeKv5>;
606
+
607
+ /**
608
+ * Local development KV (for testing)
609
+ */
610
+ export type ExternalBindingLocalKv = {
611
+ /**
612
+ * Represents a value that can be either a concrete value, a template expression,
613
+ *
614
+ * @remarks
615
+ * or a reference to a Kubernetes Secret
616
+ */
617
+ dataDir: BindingValueStringUnion;
618
+ keyPrefix?: BindingValueStringUnion | null | undefined;
619
+ service: "local-kv";
620
+ type: TypeKv5;
621
+ };
622
+
623
+ export const TypeKv4 = {
624
+ Kv: "kv",
625
+ } as const;
626
+ export type TypeKv4 = ClosedEnum<typeof TypeKv4>;
627
+
628
+ /**
629
+ * Redis binding (for Kubernetes/local)
630
+ */
631
+ export type ExternalBindingRedis = {
632
+ /**
633
+ * Represents a value that can be either a concrete value, a template expression,
634
+ *
635
+ * @remarks
636
+ * or a reference to a Kubernetes Secret
637
+ */
638
+ connectionUrl: BindingValueStringUnion;
639
+ database?: BindingValueU8Union | null | undefined;
640
+ keyPrefix?: BindingValueStringUnion | null | undefined;
641
+ service: "redis";
642
+ type: TypeKv4;
643
+ };
644
+
645
+ export const TypeKv3 = {
646
+ Kv: "kv",
647
+ } as const;
648
+ export type TypeKv3 = ClosedEnum<typeof TypeKv3>;
649
+
650
+ /**
651
+ * Azure Table Storage binding
652
+ */
653
+ export type ExternalBindingTablestorage = {
654
+ /**
655
+ * Represents a value that can be either a concrete value, a template expression,
656
+ *
657
+ * @remarks
658
+ * or a reference to a Kubernetes Secret
659
+ */
660
+ accountName: BindingValueStringUnion;
661
+ /**
662
+ * Represents a value that can be either a concrete value, a template expression,
663
+ *
664
+ * @remarks
665
+ * or a reference to a Kubernetes Secret
666
+ */
667
+ resourceGroupName: BindingValueStringUnion;
668
+ /**
669
+ * Represents a value that can be either a concrete value, a template expression,
670
+ *
671
+ * @remarks
672
+ * or a reference to a Kubernetes Secret
673
+ */
674
+ tableName: BindingValueStringUnion;
675
+ service: "tablestorage";
676
+ type: TypeKv3;
677
+ };
678
+
679
+ export const TypeKv2 = {
680
+ Kv: "kv",
681
+ } as const;
682
+ export type TypeKv2 = ClosedEnum<typeof TypeKv2>;
683
+
684
+ /**
685
+ * GCP Firestore binding
686
+ */
687
+ export type ExternalBindingFirestore = {
688
+ /**
689
+ * Represents a value that can be either a concrete value, a template expression,
690
+ *
691
+ * @remarks
692
+ * or a reference to a Kubernetes Secret
693
+ */
694
+ collectionName: BindingValueStringUnion;
695
+ /**
696
+ * Represents a value that can be either a concrete value, a template expression,
697
+ *
698
+ * @remarks
699
+ * or a reference to a Kubernetes Secret
700
+ */
701
+ databaseId: BindingValueStringUnion;
702
+ /**
703
+ * Represents a value that can be either a concrete value, a template expression,
704
+ *
705
+ * @remarks
706
+ * or a reference to a Kubernetes Secret
707
+ */
708
+ projectId: BindingValueStringUnion;
709
+ service: "firestore";
710
+ type: TypeKv2;
711
+ };
712
+
713
+ export const TypeKv1 = {
714
+ Kv: "kv",
715
+ } as const;
716
+ export type TypeKv1 = ClosedEnum<typeof TypeKv1>;
717
+
718
+ /**
719
+ * AWS DynamoDB binding
720
+ */
721
+ export type ExternalBindingDynamodb = {
722
+ endpointUrl?: BindingValueStringUnion | null | undefined;
723
+ /**
724
+ * Represents a value that can be either a concrete value, a template expression,
725
+ *
726
+ * @remarks
727
+ * or a reference to a Kubernetes Secret
728
+ */
729
+ region: BindingValueStringUnion;
730
+ /**
731
+ * Represents a value that can be either a concrete value, a template expression,
732
+ *
733
+ * @remarks
734
+ * or a reference to a Kubernetes Secret
735
+ */
736
+ tableName: BindingValueStringUnion;
737
+ service: "dynamodb";
738
+ type: TypeKv1;
739
+ };
740
+
741
+ /**
742
+ * External KV binding (Redis, etc.)
743
+ */
744
+ export type ExternalBindingUnion3 =
745
+ | ExternalBindingDynamodb
746
+ | ExternalBindingFirestore
747
+ | ExternalBindingTablestorage
748
+ | ExternalBindingRedis
749
+ | ExternalBindingLocalKv;
750
+
751
+ export const TypeQueue4 = {
752
+ Queue: "queue",
753
+ } as const;
754
+ export type TypeQueue4 = ClosedEnum<typeof TypeQueue4>;
755
+
756
+ /**
757
+ * Local development queue binding
758
+ */
759
+ export type ExternalBindingLocalQueue = {
760
+ /**
761
+ * Represents a value that can be either a concrete value, a template expression,
762
+ *
763
+ * @remarks
764
+ * or a reference to a Kubernetes Secret
765
+ */
766
+ queuePath: BindingValueStringUnion;
767
+ service: "local-queue";
768
+ type: TypeQueue4;
769
+ };
770
+
771
+ export const TypeQueue3 = {
772
+ Queue: "queue",
773
+ } as const;
774
+ export type TypeQueue3 = ClosedEnum<typeof TypeQueue3>;
775
+
776
+ /**
777
+ * Azure Service Bus binding
778
+ */
779
+ export type ExternalBindingServicebus = {
780
+ /**
781
+ * Represents a value that can be either a concrete value, a template expression,
782
+ *
783
+ * @remarks
784
+ * or a reference to a Kubernetes Secret
785
+ */
786
+ namespace: BindingValueStringUnion;
787
+ /**
788
+ * Represents a value that can be either a concrete value, a template expression,
789
+ *
790
+ * @remarks
791
+ * or a reference to a Kubernetes Secret
792
+ */
793
+ queueName: BindingValueStringUnion;
794
+ service: "servicebus";
795
+ type: TypeQueue3;
796
+ };
797
+
798
+ export const TypeQueue2 = {
799
+ Queue: "queue",
800
+ } as const;
801
+ export type TypeQueue2 = ClosedEnum<typeof TypeQueue2>;
802
+
803
+ /**
804
+ * GCP Pub/Sub binding
805
+ */
806
+ export type ExternalBindingPubsub = {
807
+ /**
808
+ * Represents a value that can be either a concrete value, a template expression,
809
+ *
810
+ * @remarks
811
+ * or a reference to a Kubernetes Secret
812
+ */
813
+ subscription: BindingValueStringUnion;
814
+ /**
815
+ * Represents a value that can be either a concrete value, a template expression,
816
+ *
817
+ * @remarks
818
+ * or a reference to a Kubernetes Secret
819
+ */
820
+ topic: BindingValueStringUnion;
821
+ service: "pubsub";
822
+ type: TypeQueue2;
823
+ };
824
+
825
+ export const TypeQueue1 = {
826
+ Queue: "queue",
827
+ } as const;
828
+ export type TypeQueue1 = ClosedEnum<typeof TypeQueue1>;
829
+
830
+ /**
831
+ * AWS SQS binding
832
+ */
833
+ export type ExternalBindingSqs = {
834
+ /**
835
+ * Represents a value that can be either a concrete value, a template expression,
836
+ *
837
+ * @remarks
838
+ * or a reference to a Kubernetes Secret
839
+ */
840
+ queueUrl: BindingValueStringUnion;
841
+ service: "sqs";
842
+ type: TypeQueue1;
843
+ };
844
+
845
+ /**
846
+ * External queue binding (Kafka, SQS, etc.)
847
+ */
848
+ export type ExternalBindingUnion2 =
849
+ | ExternalBindingSqs
850
+ | ExternalBindingPubsub
851
+ | ExternalBindingServicebus
852
+ | ExternalBindingLocalQueue;
853
+
854
+ export const TypeStorage4 = {
855
+ Storage: "storage",
856
+ } as const;
857
+ export type TypeStorage4 = ClosedEnum<typeof TypeStorage4>;
858
+
859
+ /**
860
+ * Local filesystem storage
861
+ */
862
+ export type ExternalBindingLocalStorage = {
863
+ /**
864
+ * Represents a value that can be either a concrete value, a template expression,
865
+ *
866
+ * @remarks
867
+ * or a reference to a Kubernetes Secret
868
+ */
869
+ storagePath: BindingValueStringUnion;
870
+ service: "local-storage";
871
+ type: TypeStorage4;
872
+ };
873
+
874
+ export const TypeStorage3 = {
875
+ Storage: "storage",
876
+ } as const;
877
+ export type TypeStorage3 = ClosedEnum<typeof TypeStorage3>;
878
+
879
+ /**
880
+ * Google Cloud Storage
881
+ */
882
+ export type ExternalBindingGcs = {
883
+ /**
884
+ * Represents a value that can be either a concrete value, a template expression,
885
+ *
886
+ * @remarks
887
+ * or a reference to a Kubernetes Secret
888
+ */
889
+ bucketName: BindingValueStringUnion;
890
+ service: "gcs";
891
+ type: TypeStorage3;
892
+ };
893
+
894
+ export const TypeStorage2 = {
895
+ Storage: "storage",
896
+ } as const;
897
+ export type TypeStorage2 = ClosedEnum<typeof TypeStorage2>;
898
+
899
+ /**
900
+ * Azure Blob Storage
901
+ */
902
+ export type ExternalBindingBlob = {
903
+ /**
904
+ * Represents a value that can be either a concrete value, a template expression,
905
+ *
906
+ * @remarks
907
+ * or a reference to a Kubernetes Secret
908
+ */
909
+ accountName: BindingValueStringUnion;
910
+ /**
911
+ * Represents a value that can be either a concrete value, a template expression,
912
+ *
913
+ * @remarks
914
+ * or a reference to a Kubernetes Secret
915
+ */
916
+ containerName: BindingValueStringUnion;
917
+ service: "blob";
918
+ type: TypeStorage2;
919
+ };
920
+
921
+ export const TypeStorage1 = {
922
+ Storage: "storage",
923
+ } as const;
924
+ export type TypeStorage1 = ClosedEnum<typeof TypeStorage1>;
925
+
926
+ /**
927
+ * AWS S3
928
+ */
929
+ export type ExternalBindingS3 = {
930
+ accessKeyId?: BindingValueStringUnion | null | undefined;
931
+ /**
932
+ * Represents a value that can be either a concrete value, a template expression,
933
+ *
934
+ * @remarks
935
+ * or a reference to a Kubernetes Secret
936
+ */
937
+ bucketName: BindingValueStringUnion;
938
+ endpoint?: BindingValueStringUnion | null | undefined;
939
+ /**
940
+ * Use path-style URLs (`endpoint/bucket/key`) instead of virtual-hosted
941
+ *
942
+ * @remarks
943
+ * ones (`bucket.endpoint/key`). Defaults to `true` when `endpoint` is
944
+ * set, since most S3-compatible stores require it.
945
+ */
946
+ forcePathStyle?: boolean | null | undefined;
947
+ region?: BindingValueStringUnion | null | undefined;
948
+ secretAccessKey?: BindingValueStringUnion | null | undefined;
949
+ service: "s3";
950
+ type: TypeStorage1;
951
+ };
952
+
953
+ /**
954
+ * External storage binding (S3-compatible, GCS, Blob Storage)
955
+ */
956
+ export type ExternalBindingUnion1 =
957
+ | ExternalBindingS3
958
+ | ExternalBindingBlob
959
+ | ExternalBindingGcs
960
+ | ExternalBindingLocalStorage;
961
+
962
+ /**
963
+ * Represents a binding to pre-existing infrastructure.
964
+ *
965
+ * @remarks
966
+ *
967
+ * The binding type must match the resource type it's applied to.
968
+ * Validated at runtime by the executor.
969
+ */
970
+ export type ExternalBindingUnion =
971
+ | ExternalBindingContainerAppsEnvironment
972
+ | ExternalBindingAi
973
+ | ExternalBindingS3
974
+ | ExternalBindingBlob
975
+ | ExternalBindingGcs
976
+ | ExternalBindingLocalStorage
977
+ | ExternalBindingSqs
978
+ | ExternalBindingPubsub
979
+ | ExternalBindingServicebus
980
+ | ExternalBindingLocalQueue
981
+ | ExternalBindingDynamodb
982
+ | ExternalBindingFirestore
983
+ | ExternalBindingTablestorage
984
+ | ExternalBindingRedis
985
+ | ExternalBindingLocalKv
986
+ | ExternalBindingEcr
987
+ | ExternalBindingAcr
988
+ | ExternalBindingGar
989
+ | ExternalBindingLocal
990
+ | ExternalBindingParameterStore
991
+ | ExternalBindingSecretManager
992
+ | ExternalBindingKeyVault
993
+ | ExternalBindingKubernetesSecret
994
+ | ExternalBindingLocalVault
995
+ | ExternalBindingAurora
996
+ | ExternalBindingCloudSQL
997
+ | ExternalBindingFlexibleServer
998
+ | ExternalBindingExternal
999
+ | ExternalBindingLocalPostgres;
1000
+
1001
+ /** @internal */
1002
+ export const TypeAi$inboundSchema: z.ZodEnum<typeof TypeAi> = z.enum(TypeAi);
1003
+ /** @internal */
1004
+ export const TypeAi$outboundSchema: z.ZodEnum<typeof TypeAi> =
1005
+ TypeAi$inboundSchema;
1006
+
1007
+ /** @internal */
1008
+ export const ExternalBindingAi$inboundSchema: z.ZodType<
1009
+ ExternalBindingAi,
1010
+ unknown
1011
+ > = z.object({
1012
+ apiKey: BindingValueStringUnion$inboundSchema,
1013
+ provider: z.string(),
1014
+ type: TypeAi$inboundSchema,
1015
+ });
1016
+ /** @internal */
1017
+ export type ExternalBindingAi$Outbound = {
1018
+ apiKey: BindingValueStringUnion$Outbound;
1019
+ provider: string;
1020
+ type: string;
1021
+ };
1022
+
1023
+ /** @internal */
1024
+ export const ExternalBindingAi$outboundSchema: z.ZodType<
1025
+ ExternalBindingAi$Outbound,
1026
+ ExternalBindingAi
1027
+ > = z.object({
1028
+ apiKey: BindingValueStringUnion$outboundSchema,
1029
+ provider: z.string(),
1030
+ type: TypeAi$outboundSchema,
1031
+ });
1032
+
1033
+ export function externalBindingAiToJSON(
1034
+ externalBindingAi: ExternalBindingAi,
1035
+ ): string {
1036
+ return JSON.stringify(
1037
+ ExternalBindingAi$outboundSchema.parse(externalBindingAi),
1038
+ );
1039
+ }
1040
+ export function externalBindingAiFromJSON(
1041
+ jsonString: string,
1042
+ ): SafeParseResult<ExternalBindingAi, SDKValidationError> {
1043
+ return safeParse(
1044
+ jsonString,
1045
+ (x) => ExternalBindingAi$inboundSchema.parse(JSON.parse(x)),
1046
+ `Failed to parse 'ExternalBindingAi' from JSON`,
1047
+ );
1048
+ }
1049
+
1050
+ /** @internal */
1051
+ export const TypePostgres5$inboundSchema: z.ZodEnum<typeof TypePostgres5> = z
1052
+ .enum(TypePostgres5);
1053
+ /** @internal */
1054
+ export const TypePostgres5$outboundSchema: z.ZodEnum<typeof TypePostgres5> =
1055
+ TypePostgres5$inboundSchema;
1056
+
1057
+ /** @internal */
1058
+ export const ExternalBindingLocalPostgres$inboundSchema: z.ZodType<
1059
+ ExternalBindingLocalPostgres,
1060
+ unknown
1061
+ > = z.object({
1062
+ database: BindingValueStringUnion$inboundSchema,
1063
+ host: BindingValueStringUnion$inboundSchema,
1064
+ password: z.string(),
1065
+ port: BindingValueU16Union$inboundSchema,
1066
+ username: BindingValueStringUnion$inboundSchema,
1067
+ service: z.literal("local-postgres"),
1068
+ type: TypePostgres5$inboundSchema,
1069
+ });
1070
+ /** @internal */
1071
+ export type ExternalBindingLocalPostgres$Outbound = {
1072
+ database: BindingValueStringUnion$Outbound;
1073
+ host: BindingValueStringUnion$Outbound;
1074
+ password: string;
1075
+ port: BindingValueU16Union$Outbound;
1076
+ username: BindingValueStringUnion$Outbound;
1077
+ service: "local-postgres";
1078
+ type: string;
1079
+ };
1080
+
1081
+ /** @internal */
1082
+ export const ExternalBindingLocalPostgres$outboundSchema: z.ZodType<
1083
+ ExternalBindingLocalPostgres$Outbound,
1084
+ ExternalBindingLocalPostgres
1085
+ > = z.object({
1086
+ database: BindingValueStringUnion$outboundSchema,
1087
+ host: BindingValueStringUnion$outboundSchema,
1088
+ password: z.string(),
1089
+ port: BindingValueU16Union$outboundSchema,
1090
+ username: BindingValueStringUnion$outboundSchema,
1091
+ service: z.literal("local-postgres"),
1092
+ type: TypePostgres5$outboundSchema,
1093
+ });
1094
+
1095
+ export function externalBindingLocalPostgresToJSON(
1096
+ externalBindingLocalPostgres: ExternalBindingLocalPostgres,
1097
+ ): string {
1098
+ return JSON.stringify(
1099
+ ExternalBindingLocalPostgres$outboundSchema.parse(
1100
+ externalBindingLocalPostgres,
1101
+ ),
1102
+ );
1103
+ }
1104
+ export function externalBindingLocalPostgresFromJSON(
1105
+ jsonString: string,
1106
+ ): SafeParseResult<ExternalBindingLocalPostgres, SDKValidationError> {
1107
+ return safeParse(
1108
+ jsonString,
1109
+ (x) => ExternalBindingLocalPostgres$inboundSchema.parse(JSON.parse(x)),
1110
+ `Failed to parse 'ExternalBindingLocalPostgres' from JSON`,
1111
+ );
1112
+ }
1113
+
1114
+ /** @internal */
1115
+ export const TypePostgres4$inboundSchema: z.ZodEnum<typeof TypePostgres4> = z
1116
+ .enum(TypePostgres4);
1117
+ /** @internal */
1118
+ export const TypePostgres4$outboundSchema: z.ZodEnum<typeof TypePostgres4> =
1119
+ TypePostgres4$inboundSchema;
1120
+
1121
+ /** @internal */
1122
+ export const ExternalBindingExternal$inboundSchema: z.ZodType<
1123
+ ExternalBindingExternal,
1124
+ unknown
1125
+ > = z.object({
1126
+ database: BindingValueStringUnion$inboundSchema,
1127
+ host: BindingValueStringUnion$inboundSchema,
1128
+ password: z.string(),
1129
+ port: BindingValueU16Union$inboundSchema,
1130
+ sslMode: ExternalPostgresSslMode$inboundSchema.optional(),
1131
+ username: BindingValueStringUnion$inboundSchema,
1132
+ service: z.literal("external"),
1133
+ type: TypePostgres4$inboundSchema,
1134
+ });
1135
+ /** @internal */
1136
+ export type ExternalBindingExternal$Outbound = {
1137
+ database: BindingValueStringUnion$Outbound;
1138
+ host: BindingValueStringUnion$Outbound;
1139
+ password: string;
1140
+ port: BindingValueU16Union$Outbound;
1141
+ sslMode?: string | undefined;
1142
+ username: BindingValueStringUnion$Outbound;
1143
+ service: "external";
1144
+ type: string;
1145
+ };
1146
+
1147
+ /** @internal */
1148
+ export const ExternalBindingExternal$outboundSchema: z.ZodType<
1149
+ ExternalBindingExternal$Outbound,
1150
+ ExternalBindingExternal
1151
+ > = z.object({
1152
+ database: BindingValueStringUnion$outboundSchema,
1153
+ host: BindingValueStringUnion$outboundSchema,
1154
+ password: z.string(),
1155
+ port: BindingValueU16Union$outboundSchema,
1156
+ sslMode: ExternalPostgresSslMode$outboundSchema.optional(),
1157
+ username: BindingValueStringUnion$outboundSchema,
1158
+ service: z.literal("external"),
1159
+ type: TypePostgres4$outboundSchema,
1160
+ });
1161
+
1162
+ export function externalBindingExternalToJSON(
1163
+ externalBindingExternal: ExternalBindingExternal,
1164
+ ): string {
1165
+ return JSON.stringify(
1166
+ ExternalBindingExternal$outboundSchema.parse(externalBindingExternal),
1167
+ );
1168
+ }
1169
+ export function externalBindingExternalFromJSON(
1170
+ jsonString: string,
1171
+ ): SafeParseResult<ExternalBindingExternal, SDKValidationError> {
1172
+ return safeParse(
1173
+ jsonString,
1174
+ (x) => ExternalBindingExternal$inboundSchema.parse(JSON.parse(x)),
1175
+ `Failed to parse 'ExternalBindingExternal' from JSON`,
1176
+ );
1177
+ }
1178
+
1179
+ /** @internal */
1180
+ export const TypePostgres3$inboundSchema: z.ZodEnum<typeof TypePostgres3> = z
1181
+ .enum(TypePostgres3);
1182
+ /** @internal */
1183
+ export const TypePostgres3$outboundSchema: z.ZodEnum<typeof TypePostgres3> =
1184
+ TypePostgres3$inboundSchema;
1185
+
1186
+ /** @internal */
1187
+ export const ExternalBindingFlexibleServer$inboundSchema: z.ZodType<
1188
+ ExternalBindingFlexibleServer,
1189
+ unknown
1190
+ > = z.object({
1191
+ database: BindingValueStringUnion$inboundSchema,
1192
+ host: BindingValueStringUnion$inboundSchema,
1193
+ passwordSecretUri: BindingValueStringUnion$inboundSchema,
1194
+ port: BindingValueU16Union$inboundSchema,
1195
+ username: BindingValueStringUnion$inboundSchema,
1196
+ service: z.literal("flexible-server"),
1197
+ type: TypePostgres3$inboundSchema,
1198
+ });
1199
+ /** @internal */
1200
+ export type ExternalBindingFlexibleServer$Outbound = {
1201
+ database: BindingValueStringUnion$Outbound;
1202
+ host: BindingValueStringUnion$Outbound;
1203
+ passwordSecretUri: BindingValueStringUnion$Outbound;
1204
+ port: BindingValueU16Union$Outbound;
1205
+ username: BindingValueStringUnion$Outbound;
1206
+ service: "flexible-server";
1207
+ type: string;
1208
+ };
1209
+
1210
+ /** @internal */
1211
+ export const ExternalBindingFlexibleServer$outboundSchema: z.ZodType<
1212
+ ExternalBindingFlexibleServer$Outbound,
1213
+ ExternalBindingFlexibleServer
1214
+ > = z.object({
1215
+ database: BindingValueStringUnion$outboundSchema,
1216
+ host: BindingValueStringUnion$outboundSchema,
1217
+ passwordSecretUri: BindingValueStringUnion$outboundSchema,
1218
+ port: BindingValueU16Union$outboundSchema,
1219
+ username: BindingValueStringUnion$outboundSchema,
1220
+ service: z.literal("flexible-server"),
1221
+ type: TypePostgres3$outboundSchema,
1222
+ });
1223
+
1224
+ export function externalBindingFlexibleServerToJSON(
1225
+ externalBindingFlexibleServer: ExternalBindingFlexibleServer,
1226
+ ): string {
1227
+ return JSON.stringify(
1228
+ ExternalBindingFlexibleServer$outboundSchema.parse(
1229
+ externalBindingFlexibleServer,
1230
+ ),
1231
+ );
1232
+ }
1233
+ export function externalBindingFlexibleServerFromJSON(
1234
+ jsonString: string,
1235
+ ): SafeParseResult<ExternalBindingFlexibleServer, SDKValidationError> {
1236
+ return safeParse(
1237
+ jsonString,
1238
+ (x) => ExternalBindingFlexibleServer$inboundSchema.parse(JSON.parse(x)),
1239
+ `Failed to parse 'ExternalBindingFlexibleServer' from JSON`,
1240
+ );
1241
+ }
1242
+
1243
+ /** @internal */
1244
+ export const TypePostgres2$inboundSchema: z.ZodEnum<typeof TypePostgres2> = z
1245
+ .enum(TypePostgres2);
1246
+ /** @internal */
1247
+ export const TypePostgres2$outboundSchema: z.ZodEnum<typeof TypePostgres2> =
1248
+ TypePostgres2$inboundSchema;
1249
+
1250
+ /** @internal */
1251
+ export const ExternalBindingCloudSQL$inboundSchema: z.ZodType<
1252
+ ExternalBindingCloudSQL,
1253
+ unknown
1254
+ > = z.object({
1255
+ database: BindingValueStringUnion$inboundSchema,
1256
+ host: BindingValueStringUnion$inboundSchema,
1257
+ passwordSecretName: BindingValueStringUnion$inboundSchema,
1258
+ port: BindingValueU16Union$inboundSchema,
1259
+ serverCaCertificates: BindingValueVecStringUnion$inboundSchema,
1260
+ username: BindingValueStringUnion$inboundSchema,
1261
+ service: z.literal("cloud-sql"),
1262
+ type: TypePostgres2$inboundSchema,
1263
+ });
1264
+ /** @internal */
1265
+ export type ExternalBindingCloudSQL$Outbound = {
1266
+ database: BindingValueStringUnion$Outbound;
1267
+ host: BindingValueStringUnion$Outbound;
1268
+ passwordSecretName: BindingValueStringUnion$Outbound;
1269
+ port: BindingValueU16Union$Outbound;
1270
+ serverCaCertificates: BindingValueVecStringUnion$Outbound;
1271
+ username: BindingValueStringUnion$Outbound;
1272
+ service: "cloud-sql";
1273
+ type: string;
1274
+ };
1275
+
1276
+ /** @internal */
1277
+ export const ExternalBindingCloudSQL$outboundSchema: z.ZodType<
1278
+ ExternalBindingCloudSQL$Outbound,
1279
+ ExternalBindingCloudSQL
1280
+ > = z.object({
1281
+ database: BindingValueStringUnion$outboundSchema,
1282
+ host: BindingValueStringUnion$outboundSchema,
1283
+ passwordSecretName: BindingValueStringUnion$outboundSchema,
1284
+ port: BindingValueU16Union$outboundSchema,
1285
+ serverCaCertificates: BindingValueVecStringUnion$outboundSchema,
1286
+ username: BindingValueStringUnion$outboundSchema,
1287
+ service: z.literal("cloud-sql"),
1288
+ type: TypePostgres2$outboundSchema,
1289
+ });
1290
+
1291
+ export function externalBindingCloudSQLToJSON(
1292
+ externalBindingCloudSQL: ExternalBindingCloudSQL,
1293
+ ): string {
1294
+ return JSON.stringify(
1295
+ ExternalBindingCloudSQL$outboundSchema.parse(externalBindingCloudSQL),
1296
+ );
1297
+ }
1298
+ export function externalBindingCloudSQLFromJSON(
1299
+ jsonString: string,
1300
+ ): SafeParseResult<ExternalBindingCloudSQL, SDKValidationError> {
1301
+ return safeParse(
1302
+ jsonString,
1303
+ (x) => ExternalBindingCloudSQL$inboundSchema.parse(JSON.parse(x)),
1304
+ `Failed to parse 'ExternalBindingCloudSQL' from JSON`,
1305
+ );
1306
+ }
1307
+
1308
+ /** @internal */
1309
+ export const TypePostgres1$inboundSchema: z.ZodEnum<typeof TypePostgres1> = z
1310
+ .enum(TypePostgres1);
1311
+ /** @internal */
1312
+ export const TypePostgres1$outboundSchema: z.ZodEnum<typeof TypePostgres1> =
1313
+ TypePostgres1$inboundSchema;
1314
+
1315
+ /** @internal */
1316
+ export const ExternalBindingAurora$inboundSchema: z.ZodType<
1317
+ ExternalBindingAurora,
1318
+ unknown
1319
+ > = z.object({
1320
+ clusterEndpoint: BindingValueStringUnion$inboundSchema,
1321
+ database: BindingValueStringUnion$inboundSchema,
1322
+ passwordSecretArn: BindingValueStringUnion$inboundSchema,
1323
+ port: BindingValueU16Union$inboundSchema,
1324
+ username: BindingValueStringUnion$inboundSchema,
1325
+ service: z.literal("aurora"),
1326
+ type: TypePostgres1$inboundSchema,
1327
+ });
1328
+ /** @internal */
1329
+ export type ExternalBindingAurora$Outbound = {
1330
+ clusterEndpoint: BindingValueStringUnion$Outbound;
1331
+ database: BindingValueStringUnion$Outbound;
1332
+ passwordSecretArn: BindingValueStringUnion$Outbound;
1333
+ port: BindingValueU16Union$Outbound;
1334
+ username: BindingValueStringUnion$Outbound;
1335
+ service: "aurora";
1336
+ type: string;
1337
+ };
1338
+
1339
+ /** @internal */
1340
+ export const ExternalBindingAurora$outboundSchema: z.ZodType<
1341
+ ExternalBindingAurora$Outbound,
1342
+ ExternalBindingAurora
1343
+ > = z.object({
1344
+ clusterEndpoint: BindingValueStringUnion$outboundSchema,
1345
+ database: BindingValueStringUnion$outboundSchema,
1346
+ passwordSecretArn: BindingValueStringUnion$outboundSchema,
1347
+ port: BindingValueU16Union$outboundSchema,
1348
+ username: BindingValueStringUnion$outboundSchema,
1349
+ service: z.literal("aurora"),
1350
+ type: TypePostgres1$outboundSchema,
1351
+ });
1352
+
1353
+ export function externalBindingAuroraToJSON(
1354
+ externalBindingAurora: ExternalBindingAurora,
1355
+ ): string {
1356
+ return JSON.stringify(
1357
+ ExternalBindingAurora$outboundSchema.parse(externalBindingAurora),
1358
+ );
1359
+ }
1360
+ export function externalBindingAuroraFromJSON(
1361
+ jsonString: string,
1362
+ ): SafeParseResult<ExternalBindingAurora, SDKValidationError> {
1363
+ return safeParse(
1364
+ jsonString,
1365
+ (x) => ExternalBindingAurora$inboundSchema.parse(JSON.parse(x)),
1366
+ `Failed to parse 'ExternalBindingAurora' from JSON`,
1367
+ );
1368
+ }
1369
+
1370
+ /** @internal */
1371
+ export const ExternalBindingUnion6$inboundSchema: z.ZodType<
1372
+ ExternalBindingUnion6,
1373
+ unknown
1374
+ > = z.union([
1375
+ z.lazy(() => ExternalBindingAurora$inboundSchema),
1376
+ z.lazy(() => ExternalBindingCloudSQL$inboundSchema),
1377
+ z.lazy(() => ExternalBindingFlexibleServer$inboundSchema),
1378
+ z.lazy(() => ExternalBindingExternal$inboundSchema),
1379
+ z.lazy(() => ExternalBindingLocalPostgres$inboundSchema),
1380
+ ]);
1381
+ /** @internal */
1382
+ export type ExternalBindingUnion6$Outbound =
1383
+ | ExternalBindingAurora$Outbound
1384
+ | ExternalBindingCloudSQL$Outbound
1385
+ | ExternalBindingFlexibleServer$Outbound
1386
+ | ExternalBindingExternal$Outbound
1387
+ | ExternalBindingLocalPostgres$Outbound;
1388
+
1389
+ /** @internal */
1390
+ export const ExternalBindingUnion6$outboundSchema: z.ZodType<
1391
+ ExternalBindingUnion6$Outbound,
1392
+ ExternalBindingUnion6
1393
+ > = z.union([
1394
+ z.lazy(() => ExternalBindingAurora$outboundSchema),
1395
+ z.lazy(() => ExternalBindingCloudSQL$outboundSchema),
1396
+ z.lazy(() => ExternalBindingFlexibleServer$outboundSchema),
1397
+ z.lazy(() => ExternalBindingExternal$outboundSchema),
1398
+ z.lazy(() => ExternalBindingLocalPostgres$outboundSchema),
1399
+ ]);
1400
+
1401
+ export function externalBindingUnion6ToJSON(
1402
+ externalBindingUnion6: ExternalBindingUnion6,
1403
+ ): string {
1404
+ return JSON.stringify(
1405
+ ExternalBindingUnion6$outboundSchema.parse(externalBindingUnion6),
1406
+ );
1407
+ }
1408
+ export function externalBindingUnion6FromJSON(
1409
+ jsonString: string,
1410
+ ): SafeParseResult<ExternalBindingUnion6, SDKValidationError> {
1411
+ return safeParse(
1412
+ jsonString,
1413
+ (x) => ExternalBindingUnion6$inboundSchema.parse(JSON.parse(x)),
1414
+ `Failed to parse 'ExternalBindingUnion6' from JSON`,
1415
+ );
1416
+ }
1417
+
1418
+ /** @internal */
1419
+ export const TypeContainerAppsEnvironment$inboundSchema: z.ZodEnum<
1420
+ typeof TypeContainerAppsEnvironment
1421
+ > = z.enum(TypeContainerAppsEnvironment);
1422
+ /** @internal */
1423
+ export const TypeContainerAppsEnvironment$outboundSchema: z.ZodEnum<
1424
+ typeof TypeContainerAppsEnvironment
1425
+ > = TypeContainerAppsEnvironment$inboundSchema;
1426
+
1427
+ /** @internal */
1428
+ export const ExternalBindingContainerAppsEnvironment$inboundSchema: z.ZodType<
1429
+ ExternalBindingContainerAppsEnvironment,
1430
+ unknown
1431
+ > = z.object({
1432
+ defaultDomain: BindingValueStringUnion$inboundSchema,
1433
+ environmentName: BindingValueStringUnion$inboundSchema,
1434
+ resourceGroupName: BindingValueStringUnion$inboundSchema,
1435
+ resourceId: BindingValueStringUnion$inboundSchema,
1436
+ staticIp: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
1437
+ type: TypeContainerAppsEnvironment$inboundSchema,
1438
+ });
1439
+ /** @internal */
1440
+ export type ExternalBindingContainerAppsEnvironment$Outbound = {
1441
+ defaultDomain: BindingValueStringUnion$Outbound;
1442
+ environmentName: BindingValueStringUnion$Outbound;
1443
+ resourceGroupName: BindingValueStringUnion$Outbound;
1444
+ resourceId: BindingValueStringUnion$Outbound;
1445
+ staticIp?: BindingValueStringUnion$Outbound | null | undefined;
1446
+ type: string;
1447
+ };
1448
+
1449
+ /** @internal */
1450
+ export const ExternalBindingContainerAppsEnvironment$outboundSchema: z.ZodType<
1451
+ ExternalBindingContainerAppsEnvironment$Outbound,
1452
+ ExternalBindingContainerAppsEnvironment
1453
+ > = z.object({
1454
+ defaultDomain: BindingValueStringUnion$outboundSchema,
1455
+ environmentName: BindingValueStringUnion$outboundSchema,
1456
+ resourceGroupName: BindingValueStringUnion$outboundSchema,
1457
+ resourceId: BindingValueStringUnion$outboundSchema,
1458
+ staticIp: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
1459
+ type: TypeContainerAppsEnvironment$outboundSchema,
1460
+ });
1461
+
1462
+ export function externalBindingContainerAppsEnvironmentToJSON(
1463
+ externalBindingContainerAppsEnvironment:
1464
+ ExternalBindingContainerAppsEnvironment,
1465
+ ): string {
1466
+ return JSON.stringify(
1467
+ ExternalBindingContainerAppsEnvironment$outboundSchema.parse(
1468
+ externalBindingContainerAppsEnvironment,
1469
+ ),
1470
+ );
1471
+ }
1472
+ export function externalBindingContainerAppsEnvironmentFromJSON(
1473
+ jsonString: string,
1474
+ ): SafeParseResult<
1475
+ ExternalBindingContainerAppsEnvironment,
1476
+ SDKValidationError
1477
+ > {
1478
+ return safeParse(
1479
+ jsonString,
1480
+ (x) =>
1481
+ ExternalBindingContainerAppsEnvironment$inboundSchema.parse(
1482
+ JSON.parse(x),
1483
+ ),
1484
+ `Failed to parse 'ExternalBindingContainerAppsEnvironment' from JSON`,
1485
+ );
1486
+ }
1487
+
1488
+ /** @internal */
1489
+ export const TypeVault5$inboundSchema: z.ZodEnum<typeof TypeVault5> = z.enum(
1490
+ TypeVault5,
1491
+ );
1492
+ /** @internal */
1493
+ export const TypeVault5$outboundSchema: z.ZodEnum<typeof TypeVault5> =
1494
+ TypeVault5$inboundSchema;
1495
+
1496
+ /** @internal */
1497
+ export const ExternalBindingLocalVault$inboundSchema: z.ZodType<
1498
+ ExternalBindingLocalVault,
1499
+ unknown
1500
+ > = z.object({
1501
+ dataDir: BindingValueStringUnion$inboundSchema,
1502
+ vaultName: z.string(),
1503
+ service: z.literal("local-vault"),
1504
+ type: TypeVault5$inboundSchema,
1505
+ });
1506
+ /** @internal */
1507
+ export type ExternalBindingLocalVault$Outbound = {
1508
+ dataDir: BindingValueStringUnion$Outbound;
1509
+ vaultName: string;
1510
+ service: "local-vault";
1511
+ type: string;
1512
+ };
1513
+
1514
+ /** @internal */
1515
+ export const ExternalBindingLocalVault$outboundSchema: z.ZodType<
1516
+ ExternalBindingLocalVault$Outbound,
1517
+ ExternalBindingLocalVault
1518
+ > = z.object({
1519
+ dataDir: BindingValueStringUnion$outboundSchema,
1520
+ vaultName: z.string(),
1521
+ service: z.literal("local-vault"),
1522
+ type: TypeVault5$outboundSchema,
1523
+ });
1524
+
1525
+ export function externalBindingLocalVaultToJSON(
1526
+ externalBindingLocalVault: ExternalBindingLocalVault,
1527
+ ): string {
1528
+ return JSON.stringify(
1529
+ ExternalBindingLocalVault$outboundSchema.parse(externalBindingLocalVault),
1530
+ );
1531
+ }
1532
+ export function externalBindingLocalVaultFromJSON(
1533
+ jsonString: string,
1534
+ ): SafeParseResult<ExternalBindingLocalVault, SDKValidationError> {
1535
+ return safeParse(
1536
+ jsonString,
1537
+ (x) => ExternalBindingLocalVault$inboundSchema.parse(JSON.parse(x)),
1538
+ `Failed to parse 'ExternalBindingLocalVault' from JSON`,
1539
+ );
1540
+ }
1541
+
1542
+ /** @internal */
1543
+ export const TypeVault4$inboundSchema: z.ZodEnum<typeof TypeVault4> = z.enum(
1544
+ TypeVault4,
1545
+ );
1546
+ /** @internal */
1547
+ export const TypeVault4$outboundSchema: z.ZodEnum<typeof TypeVault4> =
1548
+ TypeVault4$inboundSchema;
1549
+
1550
+ /** @internal */
1551
+ export const ExternalBindingKubernetesSecret$inboundSchema: z.ZodType<
1552
+ ExternalBindingKubernetesSecret,
1553
+ unknown
1554
+ > = z.object({
1555
+ namespace: BindingValueStringUnion$inboundSchema,
1556
+ vaultPrefix: BindingValueStringUnion$inboundSchema,
1557
+ service: z.literal("kubernetes-secret"),
1558
+ type: TypeVault4$inboundSchema,
1559
+ });
1560
+ /** @internal */
1561
+ export type ExternalBindingKubernetesSecret$Outbound = {
1562
+ namespace: BindingValueStringUnion$Outbound;
1563
+ vaultPrefix: BindingValueStringUnion$Outbound;
1564
+ service: "kubernetes-secret";
1565
+ type: string;
1566
+ };
1567
+
1568
+ /** @internal */
1569
+ export const ExternalBindingKubernetesSecret$outboundSchema: z.ZodType<
1570
+ ExternalBindingKubernetesSecret$Outbound,
1571
+ ExternalBindingKubernetesSecret
1572
+ > = z.object({
1573
+ namespace: BindingValueStringUnion$outboundSchema,
1574
+ vaultPrefix: BindingValueStringUnion$outboundSchema,
1575
+ service: z.literal("kubernetes-secret"),
1576
+ type: TypeVault4$outboundSchema,
1577
+ });
1578
+
1579
+ export function externalBindingKubernetesSecretToJSON(
1580
+ externalBindingKubernetesSecret: ExternalBindingKubernetesSecret,
1581
+ ): string {
1582
+ return JSON.stringify(
1583
+ ExternalBindingKubernetesSecret$outboundSchema.parse(
1584
+ externalBindingKubernetesSecret,
1585
+ ),
1586
+ );
1587
+ }
1588
+ export function externalBindingKubernetesSecretFromJSON(
1589
+ jsonString: string,
1590
+ ): SafeParseResult<ExternalBindingKubernetesSecret, SDKValidationError> {
1591
+ return safeParse(
1592
+ jsonString,
1593
+ (x) => ExternalBindingKubernetesSecret$inboundSchema.parse(JSON.parse(x)),
1594
+ `Failed to parse 'ExternalBindingKubernetesSecret' from JSON`,
1595
+ );
1596
+ }
1597
+
1598
+ /** @internal */
1599
+ export const TypeVault3$inboundSchema: z.ZodEnum<typeof TypeVault3> = z.enum(
1600
+ TypeVault3,
1601
+ );
1602
+ /** @internal */
1603
+ export const TypeVault3$outboundSchema: z.ZodEnum<typeof TypeVault3> =
1604
+ TypeVault3$inboundSchema;
1605
+
1606
+ /** @internal */
1607
+ export const ExternalBindingKeyVault$inboundSchema: z.ZodType<
1608
+ ExternalBindingKeyVault,
1609
+ unknown
1610
+ > = z.object({
1611
+ vaultName: BindingValueStringUnion$inboundSchema,
1612
+ service: z.literal("key-vault"),
1613
+ type: TypeVault3$inboundSchema,
1614
+ });
1615
+ /** @internal */
1616
+ export type ExternalBindingKeyVault$Outbound = {
1617
+ vaultName: BindingValueStringUnion$Outbound;
1618
+ service: "key-vault";
1619
+ type: string;
1620
+ };
1621
+
1622
+ /** @internal */
1623
+ export const ExternalBindingKeyVault$outboundSchema: z.ZodType<
1624
+ ExternalBindingKeyVault$Outbound,
1625
+ ExternalBindingKeyVault
1626
+ > = z.object({
1627
+ vaultName: BindingValueStringUnion$outboundSchema,
1628
+ service: z.literal("key-vault"),
1629
+ type: TypeVault3$outboundSchema,
1630
+ });
1631
+
1632
+ export function externalBindingKeyVaultToJSON(
1633
+ externalBindingKeyVault: ExternalBindingKeyVault,
1634
+ ): string {
1635
+ return JSON.stringify(
1636
+ ExternalBindingKeyVault$outboundSchema.parse(externalBindingKeyVault),
1637
+ );
1638
+ }
1639
+ export function externalBindingKeyVaultFromJSON(
1640
+ jsonString: string,
1641
+ ): SafeParseResult<ExternalBindingKeyVault, SDKValidationError> {
1642
+ return safeParse(
1643
+ jsonString,
1644
+ (x) => ExternalBindingKeyVault$inboundSchema.parse(JSON.parse(x)),
1645
+ `Failed to parse 'ExternalBindingKeyVault' from JSON`,
1646
+ );
1647
+ }
1648
+
1649
+ /** @internal */
1650
+ export const TypeVault2$inboundSchema: z.ZodEnum<typeof TypeVault2> = z.enum(
1651
+ TypeVault2,
1652
+ );
1653
+ /** @internal */
1654
+ export const TypeVault2$outboundSchema: z.ZodEnum<typeof TypeVault2> =
1655
+ TypeVault2$inboundSchema;
1656
+
1657
+ /** @internal */
1658
+ export const ExternalBindingSecretManager$inboundSchema: z.ZodType<
1659
+ ExternalBindingSecretManager,
1660
+ unknown
1661
+ > = z.object({
1662
+ vaultPrefix: BindingValueStringUnion$inboundSchema,
1663
+ service: z.literal("secret-manager"),
1664
+ type: TypeVault2$inboundSchema,
1665
+ });
1666
+ /** @internal */
1667
+ export type ExternalBindingSecretManager$Outbound = {
1668
+ vaultPrefix: BindingValueStringUnion$Outbound;
1669
+ service: "secret-manager";
1670
+ type: string;
1671
+ };
1672
+
1673
+ /** @internal */
1674
+ export const ExternalBindingSecretManager$outboundSchema: z.ZodType<
1675
+ ExternalBindingSecretManager$Outbound,
1676
+ ExternalBindingSecretManager
1677
+ > = z.object({
1678
+ vaultPrefix: BindingValueStringUnion$outboundSchema,
1679
+ service: z.literal("secret-manager"),
1680
+ type: TypeVault2$outboundSchema,
1681
+ });
1682
+
1683
+ export function externalBindingSecretManagerToJSON(
1684
+ externalBindingSecretManager: ExternalBindingSecretManager,
1685
+ ): string {
1686
+ return JSON.stringify(
1687
+ ExternalBindingSecretManager$outboundSchema.parse(
1688
+ externalBindingSecretManager,
1689
+ ),
1690
+ );
1691
+ }
1692
+ export function externalBindingSecretManagerFromJSON(
1693
+ jsonString: string,
1694
+ ): SafeParseResult<ExternalBindingSecretManager, SDKValidationError> {
1695
+ return safeParse(
1696
+ jsonString,
1697
+ (x) => ExternalBindingSecretManager$inboundSchema.parse(JSON.parse(x)),
1698
+ `Failed to parse 'ExternalBindingSecretManager' from JSON`,
1699
+ );
1700
+ }
1701
+
1702
+ /** @internal */
1703
+ export const TypeVault1$inboundSchema: z.ZodEnum<typeof TypeVault1> = z.enum(
1704
+ TypeVault1,
1705
+ );
1706
+ /** @internal */
1707
+ export const TypeVault1$outboundSchema: z.ZodEnum<typeof TypeVault1> =
1708
+ TypeVault1$inboundSchema;
1709
+
1710
+ /** @internal */
1711
+ export const ExternalBindingParameterStore$inboundSchema: z.ZodType<
1712
+ ExternalBindingParameterStore,
1713
+ unknown
1714
+ > = z.object({
1715
+ vaultPrefix: BindingValueStringUnion$inboundSchema,
1716
+ service: z.literal("parameter-store"),
1717
+ type: TypeVault1$inboundSchema,
1718
+ });
1719
+ /** @internal */
1720
+ export type ExternalBindingParameterStore$Outbound = {
1721
+ vaultPrefix: BindingValueStringUnion$Outbound;
1722
+ service: "parameter-store";
1723
+ type: string;
1724
+ };
1725
+
1726
+ /** @internal */
1727
+ export const ExternalBindingParameterStore$outboundSchema: z.ZodType<
1728
+ ExternalBindingParameterStore$Outbound,
1729
+ ExternalBindingParameterStore
1730
+ > = z.object({
1731
+ vaultPrefix: BindingValueStringUnion$outboundSchema,
1732
+ service: z.literal("parameter-store"),
1733
+ type: TypeVault1$outboundSchema,
1734
+ });
1735
+
1736
+ export function externalBindingParameterStoreToJSON(
1737
+ externalBindingParameterStore: ExternalBindingParameterStore,
1738
+ ): string {
1739
+ return JSON.stringify(
1740
+ ExternalBindingParameterStore$outboundSchema.parse(
1741
+ externalBindingParameterStore,
1742
+ ),
1743
+ );
1744
+ }
1745
+ export function externalBindingParameterStoreFromJSON(
1746
+ jsonString: string,
1747
+ ): SafeParseResult<ExternalBindingParameterStore, SDKValidationError> {
1748
+ return safeParse(
1749
+ jsonString,
1750
+ (x) => ExternalBindingParameterStore$inboundSchema.parse(JSON.parse(x)),
1751
+ `Failed to parse 'ExternalBindingParameterStore' from JSON`,
1752
+ );
1753
+ }
1754
+
1755
+ /** @internal */
1756
+ export const ExternalBindingUnion5$inboundSchema: z.ZodType<
1757
+ ExternalBindingUnion5,
1758
+ unknown
1759
+ > = z.union([
1760
+ z.lazy(() => ExternalBindingParameterStore$inboundSchema),
1761
+ z.lazy(() => ExternalBindingSecretManager$inboundSchema),
1762
+ z.lazy(() => ExternalBindingKeyVault$inboundSchema),
1763
+ z.lazy(() => ExternalBindingKubernetesSecret$inboundSchema),
1764
+ z.lazy(() => ExternalBindingLocalVault$inboundSchema),
1765
+ ]);
1766
+ /** @internal */
1767
+ export type ExternalBindingUnion5$Outbound =
1768
+ | ExternalBindingParameterStore$Outbound
1769
+ | ExternalBindingSecretManager$Outbound
1770
+ | ExternalBindingKeyVault$Outbound
1771
+ | ExternalBindingKubernetesSecret$Outbound
1772
+ | ExternalBindingLocalVault$Outbound;
1773
+
1774
+ /** @internal */
1775
+ export const ExternalBindingUnion5$outboundSchema: z.ZodType<
1776
+ ExternalBindingUnion5$Outbound,
1777
+ ExternalBindingUnion5
1778
+ > = z.union([
1779
+ z.lazy(() => ExternalBindingParameterStore$outboundSchema),
1780
+ z.lazy(() => ExternalBindingSecretManager$outboundSchema),
1781
+ z.lazy(() => ExternalBindingKeyVault$outboundSchema),
1782
+ z.lazy(() => ExternalBindingKubernetesSecret$outboundSchema),
1783
+ z.lazy(() => ExternalBindingLocalVault$outboundSchema),
1784
+ ]);
1785
+
1786
+ export function externalBindingUnion5ToJSON(
1787
+ externalBindingUnion5: ExternalBindingUnion5,
1788
+ ): string {
1789
+ return JSON.stringify(
1790
+ ExternalBindingUnion5$outboundSchema.parse(externalBindingUnion5),
1791
+ );
1792
+ }
1793
+ export function externalBindingUnion5FromJSON(
1794
+ jsonString: string,
1795
+ ): SafeParseResult<ExternalBindingUnion5, SDKValidationError> {
1796
+ return safeParse(
1797
+ jsonString,
1798
+ (x) => ExternalBindingUnion5$inboundSchema.parse(JSON.parse(x)),
1799
+ `Failed to parse 'ExternalBindingUnion5' from JSON`,
1800
+ );
1801
+ }
1802
+
1803
+ /** @internal */
1804
+ export const TypeArtifactRegistry4$inboundSchema: z.ZodEnum<
1805
+ typeof TypeArtifactRegistry4
1806
+ > = z.enum(TypeArtifactRegistry4);
1807
+ /** @internal */
1808
+ export const TypeArtifactRegistry4$outboundSchema: z.ZodEnum<
1809
+ typeof TypeArtifactRegistry4
1810
+ > = TypeArtifactRegistry4$inboundSchema;
1811
+
1812
+ /** @internal */
1813
+ export const ExternalBindingLocal$inboundSchema: z.ZodType<
1814
+ ExternalBindingLocal,
1815
+ unknown
1816
+ > = z.object({
1817
+ dataDir: BindingValueOptionStringUnion$inboundSchema,
1818
+ registryUrl: BindingValueStringUnion$inboundSchema,
1819
+ service: z.literal("local"),
1820
+ type: TypeArtifactRegistry4$inboundSchema,
1821
+ });
1822
+ /** @internal */
1823
+ export type ExternalBindingLocal$Outbound = {
1824
+ dataDir: BindingValueOptionStringUnion$Outbound;
1825
+ registryUrl: BindingValueStringUnion$Outbound;
1826
+ service: "local";
1827
+ type: string;
1828
+ };
1829
+
1830
+ /** @internal */
1831
+ export const ExternalBindingLocal$outboundSchema: z.ZodType<
1832
+ ExternalBindingLocal$Outbound,
1833
+ ExternalBindingLocal
1834
+ > = z.object({
1835
+ dataDir: BindingValueOptionStringUnion$outboundSchema,
1836
+ registryUrl: BindingValueStringUnion$outboundSchema,
1837
+ service: z.literal("local"),
1838
+ type: TypeArtifactRegistry4$outboundSchema,
1839
+ });
1840
+
1841
+ export function externalBindingLocalToJSON(
1842
+ externalBindingLocal: ExternalBindingLocal,
1843
+ ): string {
1844
+ return JSON.stringify(
1845
+ ExternalBindingLocal$outboundSchema.parse(externalBindingLocal),
1846
+ );
1847
+ }
1848
+ export function externalBindingLocalFromJSON(
1849
+ jsonString: string,
1850
+ ): SafeParseResult<ExternalBindingLocal, SDKValidationError> {
1851
+ return safeParse(
1852
+ jsonString,
1853
+ (x) => ExternalBindingLocal$inboundSchema.parse(JSON.parse(x)),
1854
+ `Failed to parse 'ExternalBindingLocal' from JSON`,
1855
+ );
1856
+ }
1857
+
1858
+ /** @internal */
1859
+ export const TypeArtifactRegistry3$inboundSchema: z.ZodEnum<
1860
+ typeof TypeArtifactRegistry3
1861
+ > = z.enum(TypeArtifactRegistry3);
1862
+ /** @internal */
1863
+ export const TypeArtifactRegistry3$outboundSchema: z.ZodEnum<
1864
+ typeof TypeArtifactRegistry3
1865
+ > = TypeArtifactRegistry3$inboundSchema;
1866
+
1867
+ /** @internal */
1868
+ export const ExternalBindingGar$inboundSchema: z.ZodType<
1869
+ ExternalBindingGar,
1870
+ unknown
1871
+ > = z.object({
1872
+ pullServiceAccountEmail: z.nullable(BindingValueStringUnion$inboundSchema)
1873
+ .optional(),
1874
+ pushServiceAccountEmail: z.nullable(BindingValueStringUnion$inboundSchema)
1875
+ .optional(),
1876
+ repositoryName: BindingValueStringUnion$inboundSchema,
1877
+ service: z.literal("gar"),
1878
+ type: TypeArtifactRegistry3$inboundSchema,
1879
+ });
1880
+ /** @internal */
1881
+ export type ExternalBindingGar$Outbound = {
1882
+ pullServiceAccountEmail?: BindingValueStringUnion$Outbound | null | undefined;
1883
+ pushServiceAccountEmail?: BindingValueStringUnion$Outbound | null | undefined;
1884
+ repositoryName: BindingValueStringUnion$Outbound;
1885
+ service: "gar";
1886
+ type: string;
1887
+ };
1888
+
1889
+ /** @internal */
1890
+ export const ExternalBindingGar$outboundSchema: z.ZodType<
1891
+ ExternalBindingGar$Outbound,
1892
+ ExternalBindingGar
1893
+ > = z.object({
1894
+ pullServiceAccountEmail: z.nullable(BindingValueStringUnion$outboundSchema)
1895
+ .optional(),
1896
+ pushServiceAccountEmail: z.nullable(BindingValueStringUnion$outboundSchema)
1897
+ .optional(),
1898
+ repositoryName: BindingValueStringUnion$outboundSchema,
1899
+ service: z.literal("gar"),
1900
+ type: TypeArtifactRegistry3$outboundSchema,
1901
+ });
1902
+
1903
+ export function externalBindingGarToJSON(
1904
+ externalBindingGar: ExternalBindingGar,
1905
+ ): string {
1906
+ return JSON.stringify(
1907
+ ExternalBindingGar$outboundSchema.parse(externalBindingGar),
1908
+ );
1909
+ }
1910
+ export function externalBindingGarFromJSON(
1911
+ jsonString: string,
1912
+ ): SafeParseResult<ExternalBindingGar, SDKValidationError> {
1913
+ return safeParse(
1914
+ jsonString,
1915
+ (x) => ExternalBindingGar$inboundSchema.parse(JSON.parse(x)),
1916
+ `Failed to parse 'ExternalBindingGar' from JSON`,
1917
+ );
1918
+ }
1919
+
1920
+ /** @internal */
1921
+ export const TypeArtifactRegistry2$inboundSchema: z.ZodEnum<
1922
+ typeof TypeArtifactRegistry2
1923
+ > = z.enum(TypeArtifactRegistry2);
1924
+ /** @internal */
1925
+ export const TypeArtifactRegistry2$outboundSchema: z.ZodEnum<
1926
+ typeof TypeArtifactRegistry2
1927
+ > = TypeArtifactRegistry2$inboundSchema;
1928
+
1929
+ /** @internal */
1930
+ export const ExternalBindingAcr$inboundSchema: z.ZodType<
1931
+ ExternalBindingAcr,
1932
+ unknown
1933
+ > = z.object({
1934
+ registryName: BindingValueStringUnion$inboundSchema,
1935
+ repositoryPrefix: z.nullable(BindingValueStringUnion$inboundSchema)
1936
+ .optional(),
1937
+ resourceGroupName: BindingValueStringUnion$inboundSchema,
1938
+ service: z.literal("acr"),
1939
+ type: TypeArtifactRegistry2$inboundSchema,
1940
+ });
1941
+ /** @internal */
1942
+ export type ExternalBindingAcr$Outbound = {
1943
+ registryName: BindingValueStringUnion$Outbound;
1944
+ repositoryPrefix?: BindingValueStringUnion$Outbound | null | undefined;
1945
+ resourceGroupName: BindingValueStringUnion$Outbound;
1946
+ service: "acr";
1947
+ type: string;
1948
+ };
1949
+
1950
+ /** @internal */
1951
+ export const ExternalBindingAcr$outboundSchema: z.ZodType<
1952
+ ExternalBindingAcr$Outbound,
1953
+ ExternalBindingAcr
1954
+ > = z.object({
1955
+ registryName: BindingValueStringUnion$outboundSchema,
1956
+ repositoryPrefix: z.nullable(BindingValueStringUnion$outboundSchema)
1957
+ .optional(),
1958
+ resourceGroupName: BindingValueStringUnion$outboundSchema,
1959
+ service: z.literal("acr"),
1960
+ type: TypeArtifactRegistry2$outboundSchema,
1961
+ });
1962
+
1963
+ export function externalBindingAcrToJSON(
1964
+ externalBindingAcr: ExternalBindingAcr,
1965
+ ): string {
1966
+ return JSON.stringify(
1967
+ ExternalBindingAcr$outboundSchema.parse(externalBindingAcr),
1968
+ );
1969
+ }
1970
+ export function externalBindingAcrFromJSON(
1971
+ jsonString: string,
1972
+ ): SafeParseResult<ExternalBindingAcr, SDKValidationError> {
1973
+ return safeParse(
1974
+ jsonString,
1975
+ (x) => ExternalBindingAcr$inboundSchema.parse(JSON.parse(x)),
1976
+ `Failed to parse 'ExternalBindingAcr' from JSON`,
1977
+ );
1978
+ }
1979
+
1980
+ /** @internal */
1981
+ export const TypeArtifactRegistry1$inboundSchema: z.ZodEnum<
1982
+ typeof TypeArtifactRegistry1
1983
+ > = z.enum(TypeArtifactRegistry1);
1984
+ /** @internal */
1985
+ export const TypeArtifactRegistry1$outboundSchema: z.ZodEnum<
1986
+ typeof TypeArtifactRegistry1
1987
+ > = TypeArtifactRegistry1$inboundSchema;
1988
+
1989
+ /** @internal */
1990
+ export const ExternalBindingEcr$inboundSchema: z.ZodType<
1991
+ ExternalBindingEcr,
1992
+ unknown
1993
+ > = z.object({
1994
+ pullRoleArn: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
1995
+ pushRoleArn: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
1996
+ repositoryPrefix: BindingValueStringUnion$inboundSchema,
1997
+ service: z.literal("ecr"),
1998
+ type: TypeArtifactRegistry1$inboundSchema,
1999
+ });
2000
+ /** @internal */
2001
+ export type ExternalBindingEcr$Outbound = {
2002
+ pullRoleArn?: BindingValueStringUnion$Outbound | null | undefined;
2003
+ pushRoleArn?: BindingValueStringUnion$Outbound | null | undefined;
2004
+ repositoryPrefix: BindingValueStringUnion$Outbound;
2005
+ service: "ecr";
2006
+ type: string;
2007
+ };
2008
+
2009
+ /** @internal */
2010
+ export const ExternalBindingEcr$outboundSchema: z.ZodType<
2011
+ ExternalBindingEcr$Outbound,
2012
+ ExternalBindingEcr
2013
+ > = z.object({
2014
+ pullRoleArn: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
2015
+ pushRoleArn: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
2016
+ repositoryPrefix: BindingValueStringUnion$outboundSchema,
2017
+ service: z.literal("ecr"),
2018
+ type: TypeArtifactRegistry1$outboundSchema,
2019
+ });
2020
+
2021
+ export function externalBindingEcrToJSON(
2022
+ externalBindingEcr: ExternalBindingEcr,
2023
+ ): string {
2024
+ return JSON.stringify(
2025
+ ExternalBindingEcr$outboundSchema.parse(externalBindingEcr),
2026
+ );
2027
+ }
2028
+ export function externalBindingEcrFromJSON(
2029
+ jsonString: string,
2030
+ ): SafeParseResult<ExternalBindingEcr, SDKValidationError> {
2031
+ return safeParse(
2032
+ jsonString,
2033
+ (x) => ExternalBindingEcr$inboundSchema.parse(JSON.parse(x)),
2034
+ `Failed to parse 'ExternalBindingEcr' from JSON`,
2035
+ );
2036
+ }
2037
+
2038
+ /** @internal */
2039
+ export const ExternalBindingUnion4$inboundSchema: z.ZodType<
2040
+ ExternalBindingUnion4,
2041
+ unknown
2042
+ > = z.union([
2043
+ z.lazy(() => ExternalBindingEcr$inboundSchema),
2044
+ z.lazy(() => ExternalBindingAcr$inboundSchema),
2045
+ z.lazy(() => ExternalBindingGar$inboundSchema),
2046
+ z.lazy(() => ExternalBindingLocal$inboundSchema),
2047
+ ]);
2048
+ /** @internal */
2049
+ export type ExternalBindingUnion4$Outbound =
2050
+ | ExternalBindingEcr$Outbound
2051
+ | ExternalBindingAcr$Outbound
2052
+ | ExternalBindingGar$Outbound
2053
+ | ExternalBindingLocal$Outbound;
2054
+
2055
+ /** @internal */
2056
+ export const ExternalBindingUnion4$outboundSchema: z.ZodType<
2057
+ ExternalBindingUnion4$Outbound,
2058
+ ExternalBindingUnion4
2059
+ > = z.union([
2060
+ z.lazy(() => ExternalBindingEcr$outboundSchema),
2061
+ z.lazy(() => ExternalBindingAcr$outboundSchema),
2062
+ z.lazy(() => ExternalBindingGar$outboundSchema),
2063
+ z.lazy(() => ExternalBindingLocal$outboundSchema),
2064
+ ]);
2065
+
2066
+ export function externalBindingUnion4ToJSON(
2067
+ externalBindingUnion4: ExternalBindingUnion4,
2068
+ ): string {
2069
+ return JSON.stringify(
2070
+ ExternalBindingUnion4$outboundSchema.parse(externalBindingUnion4),
2071
+ );
2072
+ }
2073
+ export function externalBindingUnion4FromJSON(
2074
+ jsonString: string,
2075
+ ): SafeParseResult<ExternalBindingUnion4, SDKValidationError> {
2076
+ return safeParse(
2077
+ jsonString,
2078
+ (x) => ExternalBindingUnion4$inboundSchema.parse(JSON.parse(x)),
2079
+ `Failed to parse 'ExternalBindingUnion4' from JSON`,
2080
+ );
2081
+ }
2082
+
2083
+ /** @internal */
2084
+ export const TypeKv5$inboundSchema: z.ZodEnum<typeof TypeKv5> = z.enum(TypeKv5);
2085
+ /** @internal */
2086
+ export const TypeKv5$outboundSchema: z.ZodEnum<typeof TypeKv5> =
2087
+ TypeKv5$inboundSchema;
2088
+
2089
+ /** @internal */
2090
+ export const ExternalBindingLocalKv$inboundSchema: z.ZodType<
2091
+ ExternalBindingLocalKv,
2092
+ unknown
2093
+ > = z.object({
2094
+ dataDir: BindingValueStringUnion$inboundSchema,
2095
+ keyPrefix: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
2096
+ service: z.literal("local-kv"),
2097
+ type: TypeKv5$inboundSchema,
2098
+ });
2099
+ /** @internal */
2100
+ export type ExternalBindingLocalKv$Outbound = {
2101
+ dataDir: BindingValueStringUnion$Outbound;
2102
+ keyPrefix?: BindingValueStringUnion$Outbound | null | undefined;
2103
+ service: "local-kv";
2104
+ type: string;
2105
+ };
2106
+
2107
+ /** @internal */
2108
+ export const ExternalBindingLocalKv$outboundSchema: z.ZodType<
2109
+ ExternalBindingLocalKv$Outbound,
2110
+ ExternalBindingLocalKv
2111
+ > = z.object({
2112
+ dataDir: BindingValueStringUnion$outboundSchema,
2113
+ keyPrefix: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
2114
+ service: z.literal("local-kv"),
2115
+ type: TypeKv5$outboundSchema,
2116
+ });
2117
+
2118
+ export function externalBindingLocalKvToJSON(
2119
+ externalBindingLocalKv: ExternalBindingLocalKv,
2120
+ ): string {
2121
+ return JSON.stringify(
2122
+ ExternalBindingLocalKv$outboundSchema.parse(externalBindingLocalKv),
2123
+ );
2124
+ }
2125
+ export function externalBindingLocalKvFromJSON(
2126
+ jsonString: string,
2127
+ ): SafeParseResult<ExternalBindingLocalKv, SDKValidationError> {
2128
+ return safeParse(
2129
+ jsonString,
2130
+ (x) => ExternalBindingLocalKv$inboundSchema.parse(JSON.parse(x)),
2131
+ `Failed to parse 'ExternalBindingLocalKv' from JSON`,
2132
+ );
2133
+ }
2134
+
2135
+ /** @internal */
2136
+ export const TypeKv4$inboundSchema: z.ZodEnum<typeof TypeKv4> = z.enum(TypeKv4);
2137
+ /** @internal */
2138
+ export const TypeKv4$outboundSchema: z.ZodEnum<typeof TypeKv4> =
2139
+ TypeKv4$inboundSchema;
2140
+
2141
+ /** @internal */
2142
+ export const ExternalBindingRedis$inboundSchema: z.ZodType<
2143
+ ExternalBindingRedis,
2144
+ unknown
2145
+ > = z.object({
2146
+ connectionUrl: BindingValueStringUnion$inboundSchema,
2147
+ database: z.nullable(BindingValueU8Union$inboundSchema).optional(),
2148
+ keyPrefix: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
2149
+ service: z.literal("redis"),
2150
+ type: TypeKv4$inboundSchema,
2151
+ });
2152
+ /** @internal */
2153
+ export type ExternalBindingRedis$Outbound = {
2154
+ connectionUrl: BindingValueStringUnion$Outbound;
2155
+ database?: BindingValueU8Union$Outbound | null | undefined;
2156
+ keyPrefix?: BindingValueStringUnion$Outbound | null | undefined;
2157
+ service: "redis";
2158
+ type: string;
2159
+ };
2160
+
2161
+ /** @internal */
2162
+ export const ExternalBindingRedis$outboundSchema: z.ZodType<
2163
+ ExternalBindingRedis$Outbound,
2164
+ ExternalBindingRedis
2165
+ > = z.object({
2166
+ connectionUrl: BindingValueStringUnion$outboundSchema,
2167
+ database: z.nullable(BindingValueU8Union$outboundSchema).optional(),
2168
+ keyPrefix: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
2169
+ service: z.literal("redis"),
2170
+ type: TypeKv4$outboundSchema,
2171
+ });
2172
+
2173
+ export function externalBindingRedisToJSON(
2174
+ externalBindingRedis: ExternalBindingRedis,
2175
+ ): string {
2176
+ return JSON.stringify(
2177
+ ExternalBindingRedis$outboundSchema.parse(externalBindingRedis),
2178
+ );
2179
+ }
2180
+ export function externalBindingRedisFromJSON(
2181
+ jsonString: string,
2182
+ ): SafeParseResult<ExternalBindingRedis, SDKValidationError> {
2183
+ return safeParse(
2184
+ jsonString,
2185
+ (x) => ExternalBindingRedis$inboundSchema.parse(JSON.parse(x)),
2186
+ `Failed to parse 'ExternalBindingRedis' from JSON`,
2187
+ );
2188
+ }
2189
+
2190
+ /** @internal */
2191
+ export const TypeKv3$inboundSchema: z.ZodEnum<typeof TypeKv3> = z.enum(TypeKv3);
2192
+ /** @internal */
2193
+ export const TypeKv3$outboundSchema: z.ZodEnum<typeof TypeKv3> =
2194
+ TypeKv3$inboundSchema;
2195
+
2196
+ /** @internal */
2197
+ export const ExternalBindingTablestorage$inboundSchema: z.ZodType<
2198
+ ExternalBindingTablestorage,
2199
+ unknown
2200
+ > = z.object({
2201
+ accountName: BindingValueStringUnion$inboundSchema,
2202
+ resourceGroupName: BindingValueStringUnion$inboundSchema,
2203
+ tableName: BindingValueStringUnion$inboundSchema,
2204
+ service: z.literal("tablestorage"),
2205
+ type: TypeKv3$inboundSchema,
2206
+ });
2207
+ /** @internal */
2208
+ export type ExternalBindingTablestorage$Outbound = {
2209
+ accountName: BindingValueStringUnion$Outbound;
2210
+ resourceGroupName: BindingValueStringUnion$Outbound;
2211
+ tableName: BindingValueStringUnion$Outbound;
2212
+ service: "tablestorage";
2213
+ type: string;
2214
+ };
2215
+
2216
+ /** @internal */
2217
+ export const ExternalBindingTablestorage$outboundSchema: z.ZodType<
2218
+ ExternalBindingTablestorage$Outbound,
2219
+ ExternalBindingTablestorage
2220
+ > = z.object({
2221
+ accountName: BindingValueStringUnion$outboundSchema,
2222
+ resourceGroupName: BindingValueStringUnion$outboundSchema,
2223
+ tableName: BindingValueStringUnion$outboundSchema,
2224
+ service: z.literal("tablestorage"),
2225
+ type: TypeKv3$outboundSchema,
2226
+ });
2227
+
2228
+ export function externalBindingTablestorageToJSON(
2229
+ externalBindingTablestorage: ExternalBindingTablestorage,
2230
+ ): string {
2231
+ return JSON.stringify(
2232
+ ExternalBindingTablestorage$outboundSchema.parse(
2233
+ externalBindingTablestorage,
2234
+ ),
2235
+ );
2236
+ }
2237
+ export function externalBindingTablestorageFromJSON(
2238
+ jsonString: string,
2239
+ ): SafeParseResult<ExternalBindingTablestorage, SDKValidationError> {
2240
+ return safeParse(
2241
+ jsonString,
2242
+ (x) => ExternalBindingTablestorage$inboundSchema.parse(JSON.parse(x)),
2243
+ `Failed to parse 'ExternalBindingTablestorage' from JSON`,
2244
+ );
2245
+ }
2246
+
2247
+ /** @internal */
2248
+ export const TypeKv2$inboundSchema: z.ZodEnum<typeof TypeKv2> = z.enum(TypeKv2);
2249
+ /** @internal */
2250
+ export const TypeKv2$outboundSchema: z.ZodEnum<typeof TypeKv2> =
2251
+ TypeKv2$inboundSchema;
2252
+
2253
+ /** @internal */
2254
+ export const ExternalBindingFirestore$inboundSchema: z.ZodType<
2255
+ ExternalBindingFirestore,
2256
+ unknown
2257
+ > = z.object({
2258
+ collectionName: BindingValueStringUnion$inboundSchema,
2259
+ databaseId: BindingValueStringUnion$inboundSchema,
2260
+ projectId: BindingValueStringUnion$inboundSchema,
2261
+ service: z.literal("firestore"),
2262
+ type: TypeKv2$inboundSchema,
2263
+ });
2264
+ /** @internal */
2265
+ export type ExternalBindingFirestore$Outbound = {
2266
+ collectionName: BindingValueStringUnion$Outbound;
2267
+ databaseId: BindingValueStringUnion$Outbound;
2268
+ projectId: BindingValueStringUnion$Outbound;
2269
+ service: "firestore";
2270
+ type: string;
2271
+ };
2272
+
2273
+ /** @internal */
2274
+ export const ExternalBindingFirestore$outboundSchema: z.ZodType<
2275
+ ExternalBindingFirestore$Outbound,
2276
+ ExternalBindingFirestore
2277
+ > = z.object({
2278
+ collectionName: BindingValueStringUnion$outboundSchema,
2279
+ databaseId: BindingValueStringUnion$outboundSchema,
2280
+ projectId: BindingValueStringUnion$outboundSchema,
2281
+ service: z.literal("firestore"),
2282
+ type: TypeKv2$outboundSchema,
2283
+ });
2284
+
2285
+ export function externalBindingFirestoreToJSON(
2286
+ externalBindingFirestore: ExternalBindingFirestore,
2287
+ ): string {
2288
+ return JSON.stringify(
2289
+ ExternalBindingFirestore$outboundSchema.parse(externalBindingFirestore),
2290
+ );
2291
+ }
2292
+ export function externalBindingFirestoreFromJSON(
2293
+ jsonString: string,
2294
+ ): SafeParseResult<ExternalBindingFirestore, SDKValidationError> {
2295
+ return safeParse(
2296
+ jsonString,
2297
+ (x) => ExternalBindingFirestore$inboundSchema.parse(JSON.parse(x)),
2298
+ `Failed to parse 'ExternalBindingFirestore' from JSON`,
2299
+ );
2300
+ }
2301
+
2302
+ /** @internal */
2303
+ export const TypeKv1$inboundSchema: z.ZodEnum<typeof TypeKv1> = z.enum(TypeKv1);
2304
+ /** @internal */
2305
+ export const TypeKv1$outboundSchema: z.ZodEnum<typeof TypeKv1> =
2306
+ TypeKv1$inboundSchema;
2307
+
2308
+ /** @internal */
2309
+ export const ExternalBindingDynamodb$inboundSchema: z.ZodType<
2310
+ ExternalBindingDynamodb,
2311
+ unknown
2312
+ > = z.object({
2313
+ endpointUrl: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
2314
+ region: BindingValueStringUnion$inboundSchema,
2315
+ tableName: BindingValueStringUnion$inboundSchema,
2316
+ service: z.literal("dynamodb"),
2317
+ type: TypeKv1$inboundSchema,
2318
+ });
2319
+ /** @internal */
2320
+ export type ExternalBindingDynamodb$Outbound = {
2321
+ endpointUrl?: BindingValueStringUnion$Outbound | null | undefined;
2322
+ region: BindingValueStringUnion$Outbound;
2323
+ tableName: BindingValueStringUnion$Outbound;
2324
+ service: "dynamodb";
2325
+ type: string;
2326
+ };
2327
+
2328
+ /** @internal */
2329
+ export const ExternalBindingDynamodb$outboundSchema: z.ZodType<
2330
+ ExternalBindingDynamodb$Outbound,
2331
+ ExternalBindingDynamodb
2332
+ > = z.object({
2333
+ endpointUrl: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
2334
+ region: BindingValueStringUnion$outboundSchema,
2335
+ tableName: BindingValueStringUnion$outboundSchema,
2336
+ service: z.literal("dynamodb"),
2337
+ type: TypeKv1$outboundSchema,
2338
+ });
2339
+
2340
+ export function externalBindingDynamodbToJSON(
2341
+ externalBindingDynamodb: ExternalBindingDynamodb,
2342
+ ): string {
2343
+ return JSON.stringify(
2344
+ ExternalBindingDynamodb$outboundSchema.parse(externalBindingDynamodb),
2345
+ );
2346
+ }
2347
+ export function externalBindingDynamodbFromJSON(
2348
+ jsonString: string,
2349
+ ): SafeParseResult<ExternalBindingDynamodb, SDKValidationError> {
2350
+ return safeParse(
2351
+ jsonString,
2352
+ (x) => ExternalBindingDynamodb$inboundSchema.parse(JSON.parse(x)),
2353
+ `Failed to parse 'ExternalBindingDynamodb' from JSON`,
2354
+ );
2355
+ }
2356
+
2357
+ /** @internal */
2358
+ export const ExternalBindingUnion3$inboundSchema: z.ZodType<
2359
+ ExternalBindingUnion3,
2360
+ unknown
2361
+ > = z.union([
2362
+ z.lazy(() => ExternalBindingDynamodb$inboundSchema),
2363
+ z.lazy(() => ExternalBindingFirestore$inboundSchema),
2364
+ z.lazy(() => ExternalBindingTablestorage$inboundSchema),
2365
+ z.lazy(() => ExternalBindingRedis$inboundSchema),
2366
+ z.lazy(() => ExternalBindingLocalKv$inboundSchema),
2367
+ ]);
2368
+ /** @internal */
2369
+ export type ExternalBindingUnion3$Outbound =
2370
+ | ExternalBindingDynamodb$Outbound
2371
+ | ExternalBindingFirestore$Outbound
2372
+ | ExternalBindingTablestorage$Outbound
2373
+ | ExternalBindingRedis$Outbound
2374
+ | ExternalBindingLocalKv$Outbound;
2375
+
2376
+ /** @internal */
2377
+ export const ExternalBindingUnion3$outboundSchema: z.ZodType<
2378
+ ExternalBindingUnion3$Outbound,
2379
+ ExternalBindingUnion3
2380
+ > = z.union([
2381
+ z.lazy(() => ExternalBindingDynamodb$outboundSchema),
2382
+ z.lazy(() => ExternalBindingFirestore$outboundSchema),
2383
+ z.lazy(() => ExternalBindingTablestorage$outboundSchema),
2384
+ z.lazy(() => ExternalBindingRedis$outboundSchema),
2385
+ z.lazy(() => ExternalBindingLocalKv$outboundSchema),
2386
+ ]);
2387
+
2388
+ export function externalBindingUnion3ToJSON(
2389
+ externalBindingUnion3: ExternalBindingUnion3,
2390
+ ): string {
2391
+ return JSON.stringify(
2392
+ ExternalBindingUnion3$outboundSchema.parse(externalBindingUnion3),
2393
+ );
2394
+ }
2395
+ export function externalBindingUnion3FromJSON(
2396
+ jsonString: string,
2397
+ ): SafeParseResult<ExternalBindingUnion3, SDKValidationError> {
2398
+ return safeParse(
2399
+ jsonString,
2400
+ (x) => ExternalBindingUnion3$inboundSchema.parse(JSON.parse(x)),
2401
+ `Failed to parse 'ExternalBindingUnion3' from JSON`,
2402
+ );
2403
+ }
2404
+
2405
+ /** @internal */
2406
+ export const TypeQueue4$inboundSchema: z.ZodEnum<typeof TypeQueue4> = z.enum(
2407
+ TypeQueue4,
2408
+ );
2409
+ /** @internal */
2410
+ export const TypeQueue4$outboundSchema: z.ZodEnum<typeof TypeQueue4> =
2411
+ TypeQueue4$inboundSchema;
2412
+
2413
+ /** @internal */
2414
+ export const ExternalBindingLocalQueue$inboundSchema: z.ZodType<
2415
+ ExternalBindingLocalQueue,
2416
+ unknown
2417
+ > = z.object({
2418
+ queuePath: BindingValueStringUnion$inboundSchema,
2419
+ service: z.literal("local-queue"),
2420
+ type: TypeQueue4$inboundSchema,
2421
+ });
2422
+ /** @internal */
2423
+ export type ExternalBindingLocalQueue$Outbound = {
2424
+ queuePath: BindingValueStringUnion$Outbound;
2425
+ service: "local-queue";
2426
+ type: string;
2427
+ };
2428
+
2429
+ /** @internal */
2430
+ export const ExternalBindingLocalQueue$outboundSchema: z.ZodType<
2431
+ ExternalBindingLocalQueue$Outbound,
2432
+ ExternalBindingLocalQueue
2433
+ > = z.object({
2434
+ queuePath: BindingValueStringUnion$outboundSchema,
2435
+ service: z.literal("local-queue"),
2436
+ type: TypeQueue4$outboundSchema,
2437
+ });
2438
+
2439
+ export function externalBindingLocalQueueToJSON(
2440
+ externalBindingLocalQueue: ExternalBindingLocalQueue,
2441
+ ): string {
2442
+ return JSON.stringify(
2443
+ ExternalBindingLocalQueue$outboundSchema.parse(externalBindingLocalQueue),
2444
+ );
2445
+ }
2446
+ export function externalBindingLocalQueueFromJSON(
2447
+ jsonString: string,
2448
+ ): SafeParseResult<ExternalBindingLocalQueue, SDKValidationError> {
2449
+ return safeParse(
2450
+ jsonString,
2451
+ (x) => ExternalBindingLocalQueue$inboundSchema.parse(JSON.parse(x)),
2452
+ `Failed to parse 'ExternalBindingLocalQueue' from JSON`,
2453
+ );
2454
+ }
2455
+
2456
+ /** @internal */
2457
+ export const TypeQueue3$inboundSchema: z.ZodEnum<typeof TypeQueue3> = z.enum(
2458
+ TypeQueue3,
2459
+ );
2460
+ /** @internal */
2461
+ export const TypeQueue3$outboundSchema: z.ZodEnum<typeof TypeQueue3> =
2462
+ TypeQueue3$inboundSchema;
2463
+
2464
+ /** @internal */
2465
+ export const ExternalBindingServicebus$inboundSchema: z.ZodType<
2466
+ ExternalBindingServicebus,
2467
+ unknown
2468
+ > = z.object({
2469
+ namespace: BindingValueStringUnion$inboundSchema,
2470
+ queueName: BindingValueStringUnion$inboundSchema,
2471
+ service: z.literal("servicebus"),
2472
+ type: TypeQueue3$inboundSchema,
2473
+ });
2474
+ /** @internal */
2475
+ export type ExternalBindingServicebus$Outbound = {
2476
+ namespace: BindingValueStringUnion$Outbound;
2477
+ queueName: BindingValueStringUnion$Outbound;
2478
+ service: "servicebus";
2479
+ type: string;
2480
+ };
2481
+
2482
+ /** @internal */
2483
+ export const ExternalBindingServicebus$outboundSchema: z.ZodType<
2484
+ ExternalBindingServicebus$Outbound,
2485
+ ExternalBindingServicebus
2486
+ > = z.object({
2487
+ namespace: BindingValueStringUnion$outboundSchema,
2488
+ queueName: BindingValueStringUnion$outboundSchema,
2489
+ service: z.literal("servicebus"),
2490
+ type: TypeQueue3$outboundSchema,
2491
+ });
2492
+
2493
+ export function externalBindingServicebusToJSON(
2494
+ externalBindingServicebus: ExternalBindingServicebus,
2495
+ ): string {
2496
+ return JSON.stringify(
2497
+ ExternalBindingServicebus$outboundSchema.parse(externalBindingServicebus),
2498
+ );
2499
+ }
2500
+ export function externalBindingServicebusFromJSON(
2501
+ jsonString: string,
2502
+ ): SafeParseResult<ExternalBindingServicebus, SDKValidationError> {
2503
+ return safeParse(
2504
+ jsonString,
2505
+ (x) => ExternalBindingServicebus$inboundSchema.parse(JSON.parse(x)),
2506
+ `Failed to parse 'ExternalBindingServicebus' from JSON`,
2507
+ );
2508
+ }
2509
+
2510
+ /** @internal */
2511
+ export const TypeQueue2$inboundSchema: z.ZodEnum<typeof TypeQueue2> = z.enum(
2512
+ TypeQueue2,
2513
+ );
2514
+ /** @internal */
2515
+ export const TypeQueue2$outboundSchema: z.ZodEnum<typeof TypeQueue2> =
2516
+ TypeQueue2$inboundSchema;
2517
+
2518
+ /** @internal */
2519
+ export const ExternalBindingPubsub$inboundSchema: z.ZodType<
2520
+ ExternalBindingPubsub,
2521
+ unknown
2522
+ > = z.object({
2523
+ subscription: BindingValueStringUnion$inboundSchema,
2524
+ topic: BindingValueStringUnion$inboundSchema,
2525
+ service: z.literal("pubsub"),
2526
+ type: TypeQueue2$inboundSchema,
2527
+ });
2528
+ /** @internal */
2529
+ export type ExternalBindingPubsub$Outbound = {
2530
+ subscription: BindingValueStringUnion$Outbound;
2531
+ topic: BindingValueStringUnion$Outbound;
2532
+ service: "pubsub";
2533
+ type: string;
2534
+ };
2535
+
2536
+ /** @internal */
2537
+ export const ExternalBindingPubsub$outboundSchema: z.ZodType<
2538
+ ExternalBindingPubsub$Outbound,
2539
+ ExternalBindingPubsub
2540
+ > = z.object({
2541
+ subscription: BindingValueStringUnion$outboundSchema,
2542
+ topic: BindingValueStringUnion$outboundSchema,
2543
+ service: z.literal("pubsub"),
2544
+ type: TypeQueue2$outboundSchema,
2545
+ });
2546
+
2547
+ export function externalBindingPubsubToJSON(
2548
+ externalBindingPubsub: ExternalBindingPubsub,
2549
+ ): string {
2550
+ return JSON.stringify(
2551
+ ExternalBindingPubsub$outboundSchema.parse(externalBindingPubsub),
2552
+ );
2553
+ }
2554
+ export function externalBindingPubsubFromJSON(
2555
+ jsonString: string,
2556
+ ): SafeParseResult<ExternalBindingPubsub, SDKValidationError> {
2557
+ return safeParse(
2558
+ jsonString,
2559
+ (x) => ExternalBindingPubsub$inboundSchema.parse(JSON.parse(x)),
2560
+ `Failed to parse 'ExternalBindingPubsub' from JSON`,
2561
+ );
2562
+ }
2563
+
2564
+ /** @internal */
2565
+ export const TypeQueue1$inboundSchema: z.ZodEnum<typeof TypeQueue1> = z.enum(
2566
+ TypeQueue1,
2567
+ );
2568
+ /** @internal */
2569
+ export const TypeQueue1$outboundSchema: z.ZodEnum<typeof TypeQueue1> =
2570
+ TypeQueue1$inboundSchema;
2571
+
2572
+ /** @internal */
2573
+ export const ExternalBindingSqs$inboundSchema: z.ZodType<
2574
+ ExternalBindingSqs,
2575
+ unknown
2576
+ > = z.object({
2577
+ queueUrl: BindingValueStringUnion$inboundSchema,
2578
+ service: z.literal("sqs"),
2579
+ type: TypeQueue1$inboundSchema,
2580
+ });
2581
+ /** @internal */
2582
+ export type ExternalBindingSqs$Outbound = {
2583
+ queueUrl: BindingValueStringUnion$Outbound;
2584
+ service: "sqs";
2585
+ type: string;
2586
+ };
2587
+
2588
+ /** @internal */
2589
+ export const ExternalBindingSqs$outboundSchema: z.ZodType<
2590
+ ExternalBindingSqs$Outbound,
2591
+ ExternalBindingSqs
2592
+ > = z.object({
2593
+ queueUrl: BindingValueStringUnion$outboundSchema,
2594
+ service: z.literal("sqs"),
2595
+ type: TypeQueue1$outboundSchema,
2596
+ });
2597
+
2598
+ export function externalBindingSqsToJSON(
2599
+ externalBindingSqs: ExternalBindingSqs,
2600
+ ): string {
2601
+ return JSON.stringify(
2602
+ ExternalBindingSqs$outboundSchema.parse(externalBindingSqs),
2603
+ );
2604
+ }
2605
+ export function externalBindingSqsFromJSON(
2606
+ jsonString: string,
2607
+ ): SafeParseResult<ExternalBindingSqs, SDKValidationError> {
2608
+ return safeParse(
2609
+ jsonString,
2610
+ (x) => ExternalBindingSqs$inboundSchema.parse(JSON.parse(x)),
2611
+ `Failed to parse 'ExternalBindingSqs' from JSON`,
2612
+ );
2613
+ }
2614
+
2615
+ /** @internal */
2616
+ export const ExternalBindingUnion2$inboundSchema: z.ZodType<
2617
+ ExternalBindingUnion2,
2618
+ unknown
2619
+ > = z.union([
2620
+ z.lazy(() => ExternalBindingSqs$inboundSchema),
2621
+ z.lazy(() => ExternalBindingPubsub$inboundSchema),
2622
+ z.lazy(() => ExternalBindingServicebus$inboundSchema),
2623
+ z.lazy(() => ExternalBindingLocalQueue$inboundSchema),
2624
+ ]);
2625
+ /** @internal */
2626
+ export type ExternalBindingUnion2$Outbound =
2627
+ | ExternalBindingSqs$Outbound
2628
+ | ExternalBindingPubsub$Outbound
2629
+ | ExternalBindingServicebus$Outbound
2630
+ | ExternalBindingLocalQueue$Outbound;
2631
+
2632
+ /** @internal */
2633
+ export const ExternalBindingUnion2$outboundSchema: z.ZodType<
2634
+ ExternalBindingUnion2$Outbound,
2635
+ ExternalBindingUnion2
2636
+ > = z.union([
2637
+ z.lazy(() => ExternalBindingSqs$outboundSchema),
2638
+ z.lazy(() => ExternalBindingPubsub$outboundSchema),
2639
+ z.lazy(() => ExternalBindingServicebus$outboundSchema),
2640
+ z.lazy(() => ExternalBindingLocalQueue$outboundSchema),
2641
+ ]);
2642
+
2643
+ export function externalBindingUnion2ToJSON(
2644
+ externalBindingUnion2: ExternalBindingUnion2,
2645
+ ): string {
2646
+ return JSON.stringify(
2647
+ ExternalBindingUnion2$outboundSchema.parse(externalBindingUnion2),
2648
+ );
2649
+ }
2650
+ export function externalBindingUnion2FromJSON(
2651
+ jsonString: string,
2652
+ ): SafeParseResult<ExternalBindingUnion2, SDKValidationError> {
2653
+ return safeParse(
2654
+ jsonString,
2655
+ (x) => ExternalBindingUnion2$inboundSchema.parse(JSON.parse(x)),
2656
+ `Failed to parse 'ExternalBindingUnion2' from JSON`,
2657
+ );
2658
+ }
2659
+
2660
+ /** @internal */
2661
+ export const TypeStorage4$inboundSchema: z.ZodEnum<typeof TypeStorage4> = z
2662
+ .enum(TypeStorage4);
2663
+ /** @internal */
2664
+ export const TypeStorage4$outboundSchema: z.ZodEnum<typeof TypeStorage4> =
2665
+ TypeStorage4$inboundSchema;
2666
+
2667
+ /** @internal */
2668
+ export const ExternalBindingLocalStorage$inboundSchema: z.ZodType<
2669
+ ExternalBindingLocalStorage,
2670
+ unknown
2671
+ > = z.object({
2672
+ storagePath: BindingValueStringUnion$inboundSchema,
2673
+ service: z.literal("local-storage"),
2674
+ type: TypeStorage4$inboundSchema,
2675
+ });
2676
+ /** @internal */
2677
+ export type ExternalBindingLocalStorage$Outbound = {
2678
+ storagePath: BindingValueStringUnion$Outbound;
2679
+ service: "local-storage";
2680
+ type: string;
2681
+ };
2682
+
2683
+ /** @internal */
2684
+ export const ExternalBindingLocalStorage$outboundSchema: z.ZodType<
2685
+ ExternalBindingLocalStorage$Outbound,
2686
+ ExternalBindingLocalStorage
2687
+ > = z.object({
2688
+ storagePath: BindingValueStringUnion$outboundSchema,
2689
+ service: z.literal("local-storage"),
2690
+ type: TypeStorage4$outboundSchema,
2691
+ });
2692
+
2693
+ export function externalBindingLocalStorageToJSON(
2694
+ externalBindingLocalStorage: ExternalBindingLocalStorage,
2695
+ ): string {
2696
+ return JSON.stringify(
2697
+ ExternalBindingLocalStorage$outboundSchema.parse(
2698
+ externalBindingLocalStorage,
2699
+ ),
2700
+ );
2701
+ }
2702
+ export function externalBindingLocalStorageFromJSON(
2703
+ jsonString: string,
2704
+ ): SafeParseResult<ExternalBindingLocalStorage, SDKValidationError> {
2705
+ return safeParse(
2706
+ jsonString,
2707
+ (x) => ExternalBindingLocalStorage$inboundSchema.parse(JSON.parse(x)),
2708
+ `Failed to parse 'ExternalBindingLocalStorage' from JSON`,
2709
+ );
2710
+ }
2711
+
2712
+ /** @internal */
2713
+ export const TypeStorage3$inboundSchema: z.ZodEnum<typeof TypeStorage3> = z
2714
+ .enum(TypeStorage3);
2715
+ /** @internal */
2716
+ export const TypeStorage3$outboundSchema: z.ZodEnum<typeof TypeStorage3> =
2717
+ TypeStorage3$inboundSchema;
2718
+
2719
+ /** @internal */
2720
+ export const ExternalBindingGcs$inboundSchema: z.ZodType<
2721
+ ExternalBindingGcs,
2722
+ unknown
2723
+ > = z.object({
2724
+ bucketName: BindingValueStringUnion$inboundSchema,
2725
+ service: z.literal("gcs"),
2726
+ type: TypeStorage3$inboundSchema,
2727
+ });
2728
+ /** @internal */
2729
+ export type ExternalBindingGcs$Outbound = {
2730
+ bucketName: BindingValueStringUnion$Outbound;
2731
+ service: "gcs";
2732
+ type: string;
2733
+ };
2734
+
2735
+ /** @internal */
2736
+ export const ExternalBindingGcs$outboundSchema: z.ZodType<
2737
+ ExternalBindingGcs$Outbound,
2738
+ ExternalBindingGcs
2739
+ > = z.object({
2740
+ bucketName: BindingValueStringUnion$outboundSchema,
2741
+ service: z.literal("gcs"),
2742
+ type: TypeStorage3$outboundSchema,
2743
+ });
2744
+
2745
+ export function externalBindingGcsToJSON(
2746
+ externalBindingGcs: ExternalBindingGcs,
2747
+ ): string {
2748
+ return JSON.stringify(
2749
+ ExternalBindingGcs$outboundSchema.parse(externalBindingGcs),
2750
+ );
2751
+ }
2752
+ export function externalBindingGcsFromJSON(
2753
+ jsonString: string,
2754
+ ): SafeParseResult<ExternalBindingGcs, SDKValidationError> {
2755
+ return safeParse(
2756
+ jsonString,
2757
+ (x) => ExternalBindingGcs$inboundSchema.parse(JSON.parse(x)),
2758
+ `Failed to parse 'ExternalBindingGcs' from JSON`,
2759
+ );
2760
+ }
2761
+
2762
+ /** @internal */
2763
+ export const TypeStorage2$inboundSchema: z.ZodEnum<typeof TypeStorage2> = z
2764
+ .enum(TypeStorage2);
2765
+ /** @internal */
2766
+ export const TypeStorage2$outboundSchema: z.ZodEnum<typeof TypeStorage2> =
2767
+ TypeStorage2$inboundSchema;
2768
+
2769
+ /** @internal */
2770
+ export const ExternalBindingBlob$inboundSchema: z.ZodType<
2771
+ ExternalBindingBlob,
2772
+ unknown
2773
+ > = z.object({
2774
+ accountName: BindingValueStringUnion$inboundSchema,
2775
+ containerName: BindingValueStringUnion$inboundSchema,
2776
+ service: z.literal("blob"),
2777
+ type: TypeStorage2$inboundSchema,
2778
+ });
2779
+ /** @internal */
2780
+ export type ExternalBindingBlob$Outbound = {
2781
+ accountName: BindingValueStringUnion$Outbound;
2782
+ containerName: BindingValueStringUnion$Outbound;
2783
+ service: "blob";
2784
+ type: string;
2785
+ };
2786
+
2787
+ /** @internal */
2788
+ export const ExternalBindingBlob$outboundSchema: z.ZodType<
2789
+ ExternalBindingBlob$Outbound,
2790
+ ExternalBindingBlob
2791
+ > = z.object({
2792
+ accountName: BindingValueStringUnion$outboundSchema,
2793
+ containerName: BindingValueStringUnion$outboundSchema,
2794
+ service: z.literal("blob"),
2795
+ type: TypeStorage2$outboundSchema,
2796
+ });
2797
+
2798
+ export function externalBindingBlobToJSON(
2799
+ externalBindingBlob: ExternalBindingBlob,
2800
+ ): string {
2801
+ return JSON.stringify(
2802
+ ExternalBindingBlob$outboundSchema.parse(externalBindingBlob),
2803
+ );
2804
+ }
2805
+ export function externalBindingBlobFromJSON(
2806
+ jsonString: string,
2807
+ ): SafeParseResult<ExternalBindingBlob, SDKValidationError> {
2808
+ return safeParse(
2809
+ jsonString,
2810
+ (x) => ExternalBindingBlob$inboundSchema.parse(JSON.parse(x)),
2811
+ `Failed to parse 'ExternalBindingBlob' from JSON`,
2812
+ );
2813
+ }
2814
+
2815
+ /** @internal */
2816
+ export const TypeStorage1$inboundSchema: z.ZodEnum<typeof TypeStorage1> = z
2817
+ .enum(TypeStorage1);
2818
+ /** @internal */
2819
+ export const TypeStorage1$outboundSchema: z.ZodEnum<typeof TypeStorage1> =
2820
+ TypeStorage1$inboundSchema;
2821
+
2822
+ /** @internal */
2823
+ export const ExternalBindingS3$inboundSchema: z.ZodType<
2824
+ ExternalBindingS3,
2825
+ unknown
2826
+ > = z.object({
2827
+ accessKeyId: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
2828
+ bucketName: BindingValueStringUnion$inboundSchema,
2829
+ endpoint: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
2830
+ forcePathStyle: z.nullable(z.boolean()).optional(),
2831
+ region: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
2832
+ secretAccessKey: z.nullable(BindingValueStringUnion$inboundSchema).optional(),
2833
+ service: z.literal("s3"),
2834
+ type: TypeStorage1$inboundSchema,
2835
+ });
2836
+ /** @internal */
2837
+ export type ExternalBindingS3$Outbound = {
2838
+ accessKeyId?: BindingValueStringUnion$Outbound | null | undefined;
2839
+ bucketName: BindingValueStringUnion$Outbound;
2840
+ endpoint?: BindingValueStringUnion$Outbound | null | undefined;
2841
+ forcePathStyle?: boolean | null | undefined;
2842
+ region?: BindingValueStringUnion$Outbound | null | undefined;
2843
+ secretAccessKey?: BindingValueStringUnion$Outbound | null | undefined;
2844
+ service: "s3";
2845
+ type: string;
2846
+ };
2847
+
2848
+ /** @internal */
2849
+ export const ExternalBindingS3$outboundSchema: z.ZodType<
2850
+ ExternalBindingS3$Outbound,
2851
+ ExternalBindingS3
2852
+ > = z.object({
2853
+ accessKeyId: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
2854
+ bucketName: BindingValueStringUnion$outboundSchema,
2855
+ endpoint: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
2856
+ forcePathStyle: z.nullable(z.boolean()).optional(),
2857
+ region: z.nullable(BindingValueStringUnion$outboundSchema).optional(),
2858
+ secretAccessKey: z.nullable(BindingValueStringUnion$outboundSchema)
2859
+ .optional(),
2860
+ service: z.literal("s3"),
2861
+ type: TypeStorage1$outboundSchema,
2862
+ });
2863
+
2864
+ export function externalBindingS3ToJSON(
2865
+ externalBindingS3: ExternalBindingS3,
2866
+ ): string {
2867
+ return JSON.stringify(
2868
+ ExternalBindingS3$outboundSchema.parse(externalBindingS3),
2869
+ );
2870
+ }
2871
+ export function externalBindingS3FromJSON(
2872
+ jsonString: string,
2873
+ ): SafeParseResult<ExternalBindingS3, SDKValidationError> {
2874
+ return safeParse(
2875
+ jsonString,
2876
+ (x) => ExternalBindingS3$inboundSchema.parse(JSON.parse(x)),
2877
+ `Failed to parse 'ExternalBindingS3' from JSON`,
2878
+ );
2879
+ }
2880
+
2881
+ /** @internal */
2882
+ export const ExternalBindingUnion1$inboundSchema: z.ZodType<
2883
+ ExternalBindingUnion1,
2884
+ unknown
2885
+ > = z.union([
2886
+ z.lazy(() => ExternalBindingS3$inboundSchema),
2887
+ z.lazy(() => ExternalBindingBlob$inboundSchema),
2888
+ z.lazy(() => ExternalBindingGcs$inboundSchema),
2889
+ z.lazy(() => ExternalBindingLocalStorage$inboundSchema),
2890
+ ]);
2891
+ /** @internal */
2892
+ export type ExternalBindingUnion1$Outbound =
2893
+ | ExternalBindingS3$Outbound
2894
+ | ExternalBindingBlob$Outbound
2895
+ | ExternalBindingGcs$Outbound
2896
+ | ExternalBindingLocalStorage$Outbound;
2897
+
2898
+ /** @internal */
2899
+ export const ExternalBindingUnion1$outboundSchema: z.ZodType<
2900
+ ExternalBindingUnion1$Outbound,
2901
+ ExternalBindingUnion1
2902
+ > = z.union([
2903
+ z.lazy(() => ExternalBindingS3$outboundSchema),
2904
+ z.lazy(() => ExternalBindingBlob$outboundSchema),
2905
+ z.lazy(() => ExternalBindingGcs$outboundSchema),
2906
+ z.lazy(() => ExternalBindingLocalStorage$outboundSchema),
2907
+ ]);
2908
+
2909
+ export function externalBindingUnion1ToJSON(
2910
+ externalBindingUnion1: ExternalBindingUnion1,
2911
+ ): string {
2912
+ return JSON.stringify(
2913
+ ExternalBindingUnion1$outboundSchema.parse(externalBindingUnion1),
2914
+ );
2915
+ }
2916
+ export function externalBindingUnion1FromJSON(
2917
+ jsonString: string,
2918
+ ): SafeParseResult<ExternalBindingUnion1, SDKValidationError> {
2919
+ return safeParse(
2920
+ jsonString,
2921
+ (x) => ExternalBindingUnion1$inboundSchema.parse(JSON.parse(x)),
2922
+ `Failed to parse 'ExternalBindingUnion1' from JSON`,
2923
+ );
2924
+ }
2925
+
2926
+ /** @internal */
2927
+ export const ExternalBindingUnion$inboundSchema: z.ZodType<
2928
+ ExternalBindingUnion,
2929
+ unknown
2930
+ > = z.union([
2931
+ z.lazy(() => ExternalBindingContainerAppsEnvironment$inboundSchema),
2932
+ z.lazy(() => ExternalBindingAi$inboundSchema),
2933
+ z.union([
2934
+ z.lazy(() => ExternalBindingS3$inboundSchema),
2935
+ z.lazy(() => ExternalBindingBlob$inboundSchema),
2936
+ z.lazy(() => ExternalBindingGcs$inboundSchema),
2937
+ z.lazy(() => ExternalBindingLocalStorage$inboundSchema),
2938
+ ]),
2939
+ z.union([
2940
+ z.lazy(() => ExternalBindingSqs$inboundSchema),
2941
+ z.lazy(() => ExternalBindingPubsub$inboundSchema),
2942
+ z.lazy(() => ExternalBindingServicebus$inboundSchema),
2943
+ z.lazy(() => ExternalBindingLocalQueue$inboundSchema),
2944
+ ]),
2945
+ z.union([
2946
+ z.lazy(() => ExternalBindingDynamodb$inboundSchema),
2947
+ z.lazy(() => ExternalBindingFirestore$inboundSchema),
2948
+ z.lazy(() => ExternalBindingTablestorage$inboundSchema),
2949
+ z.lazy(() => ExternalBindingRedis$inboundSchema),
2950
+ z.lazy(() => ExternalBindingLocalKv$inboundSchema),
2951
+ ]),
2952
+ z.union([
2953
+ z.lazy(() => ExternalBindingEcr$inboundSchema),
2954
+ z.lazy(() => ExternalBindingAcr$inboundSchema),
2955
+ z.lazy(() => ExternalBindingGar$inboundSchema),
2956
+ z.lazy(() => ExternalBindingLocal$inboundSchema),
2957
+ ]),
2958
+ z.union([
2959
+ z.lazy(() => ExternalBindingParameterStore$inboundSchema),
2960
+ z.lazy(() => ExternalBindingSecretManager$inboundSchema),
2961
+ z.lazy(() => ExternalBindingKeyVault$inboundSchema),
2962
+ z.lazy(() => ExternalBindingKubernetesSecret$inboundSchema),
2963
+ z.lazy(() => ExternalBindingLocalVault$inboundSchema),
2964
+ ]),
2965
+ z.union([
2966
+ z.lazy(() => ExternalBindingAurora$inboundSchema),
2967
+ z.lazy(() => ExternalBindingCloudSQL$inboundSchema),
2968
+ z.lazy(() => ExternalBindingFlexibleServer$inboundSchema),
2969
+ z.lazy(() => ExternalBindingExternal$inboundSchema),
2970
+ z.lazy(() => ExternalBindingLocalPostgres$inboundSchema),
2971
+ ]),
2972
+ ]);
2973
+ /** @internal */
2974
+ export type ExternalBindingUnion$Outbound =
2975
+ | ExternalBindingContainerAppsEnvironment$Outbound
2976
+ | ExternalBindingAi$Outbound
2977
+ | ExternalBindingS3$Outbound
2978
+ | ExternalBindingBlob$Outbound
2979
+ | ExternalBindingGcs$Outbound
2980
+ | ExternalBindingLocalStorage$Outbound
2981
+ | ExternalBindingSqs$Outbound
2982
+ | ExternalBindingPubsub$Outbound
2983
+ | ExternalBindingServicebus$Outbound
2984
+ | ExternalBindingLocalQueue$Outbound
2985
+ | ExternalBindingDynamodb$Outbound
2986
+ | ExternalBindingFirestore$Outbound
2987
+ | ExternalBindingTablestorage$Outbound
2988
+ | ExternalBindingRedis$Outbound
2989
+ | ExternalBindingLocalKv$Outbound
2990
+ | ExternalBindingEcr$Outbound
2991
+ | ExternalBindingAcr$Outbound
2992
+ | ExternalBindingGar$Outbound
2993
+ | ExternalBindingLocal$Outbound
2994
+ | ExternalBindingParameterStore$Outbound
2995
+ | ExternalBindingSecretManager$Outbound
2996
+ | ExternalBindingKeyVault$Outbound
2997
+ | ExternalBindingKubernetesSecret$Outbound
2998
+ | ExternalBindingLocalVault$Outbound
2999
+ | ExternalBindingAurora$Outbound
3000
+ | ExternalBindingCloudSQL$Outbound
3001
+ | ExternalBindingFlexibleServer$Outbound
3002
+ | ExternalBindingExternal$Outbound
3003
+ | ExternalBindingLocalPostgres$Outbound;
3004
+
3005
+ /** @internal */
3006
+ export const ExternalBindingUnion$outboundSchema: z.ZodType<
3007
+ ExternalBindingUnion$Outbound,
3008
+ ExternalBindingUnion
3009
+ > = z.union([
3010
+ z.lazy(() => ExternalBindingContainerAppsEnvironment$outboundSchema),
3011
+ z.lazy(() => ExternalBindingAi$outboundSchema),
3012
+ z.union([
3013
+ z.lazy(() => ExternalBindingS3$outboundSchema),
3014
+ z.lazy(() => ExternalBindingBlob$outboundSchema),
3015
+ z.lazy(() => ExternalBindingGcs$outboundSchema),
3016
+ z.lazy(() => ExternalBindingLocalStorage$outboundSchema),
3017
+ ]),
3018
+ z.union([
3019
+ z.lazy(() => ExternalBindingSqs$outboundSchema),
3020
+ z.lazy(() => ExternalBindingPubsub$outboundSchema),
3021
+ z.lazy(() => ExternalBindingServicebus$outboundSchema),
3022
+ z.lazy(() => ExternalBindingLocalQueue$outboundSchema),
3023
+ ]),
3024
+ z.union([
3025
+ z.lazy(() => ExternalBindingDynamodb$outboundSchema),
3026
+ z.lazy(() => ExternalBindingFirestore$outboundSchema),
3027
+ z.lazy(() => ExternalBindingTablestorage$outboundSchema),
3028
+ z.lazy(() => ExternalBindingRedis$outboundSchema),
3029
+ z.lazy(() => ExternalBindingLocalKv$outboundSchema),
3030
+ ]),
3031
+ z.union([
3032
+ z.lazy(() => ExternalBindingEcr$outboundSchema),
3033
+ z.lazy(() => ExternalBindingAcr$outboundSchema),
3034
+ z.lazy(() => ExternalBindingGar$outboundSchema),
3035
+ z.lazy(() => ExternalBindingLocal$outboundSchema),
3036
+ ]),
3037
+ z.union([
3038
+ z.lazy(() => ExternalBindingParameterStore$outboundSchema),
3039
+ z.lazy(() => ExternalBindingSecretManager$outboundSchema),
3040
+ z.lazy(() => ExternalBindingKeyVault$outboundSchema),
3041
+ z.lazy(() => ExternalBindingKubernetesSecret$outboundSchema),
3042
+ z.lazy(() => ExternalBindingLocalVault$outboundSchema),
3043
+ ]),
3044
+ z.union([
3045
+ z.lazy(() => ExternalBindingAurora$outboundSchema),
3046
+ z.lazy(() => ExternalBindingCloudSQL$outboundSchema),
3047
+ z.lazy(() => ExternalBindingFlexibleServer$outboundSchema),
3048
+ z.lazy(() => ExternalBindingExternal$outboundSchema),
3049
+ z.lazy(() => ExternalBindingLocalPostgres$outboundSchema),
3050
+ ]),
3051
+ ]);
3052
+
3053
+ export function externalBindingUnionToJSON(
3054
+ externalBindingUnion: ExternalBindingUnion,
3055
+ ): string {
3056
+ return JSON.stringify(
3057
+ ExternalBindingUnion$outboundSchema.parse(externalBindingUnion),
3058
+ );
3059
+ }
3060
+ export function externalBindingUnionFromJSON(
3061
+ jsonString: string,
3062
+ ): SafeParseResult<ExternalBindingUnion, SDKValidationError> {
3063
+ return safeParse(
3064
+ jsonString,
3065
+ (x) => ExternalBindingUnion$inboundSchema.parse(JSON.parse(x)),
3066
+ `Failed to parse 'ExternalBindingUnion' from JSON`,
3067
+ );
3068
+ }