@vercel/sdk 1.17.7 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/bin/mcp-server.js +1735 -4032
  2. package/bin/mcp-server.js.map +47 -47
  3. package/esm/__tests__/checks.test.js +1 -1
  4. package/esm/__tests__/checks.test.js.map +1 -1
  5. package/esm/__tests__/domains.test.js +3 -4
  6. package/esm/__tests__/domains.test.js.map +1 -1
  7. package/esm/__tests__/edgeconfig.test.js +6 -6
  8. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  9. package/esm/__tests__/rollingrelease.test.js +2 -1
  10. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  11. package/esm/__tests__/security.test.js +1 -11
  12. package/esm/__tests__/security.test.js.map +1 -1
  13. package/esm/lib/config.d.ts +3 -3
  14. package/esm/lib/config.js +3 -3
  15. package/esm/lib/encodings.d.ts +1 -0
  16. package/esm/lib/encodings.d.ts.map +1 -1
  17. package/esm/lib/encodings.js +12 -1
  18. package/esm/lib/encodings.js.map +1 -1
  19. package/esm/mcp-server/mcp-server.js +1 -1
  20. package/esm/mcp-server/server.js +1 -1
  21. package/esm/models/authtoken.d.ts +8 -24
  22. package/esm/models/authtoken.d.ts.map +1 -1
  23. package/esm/models/authtoken.js +8 -23
  24. package/esm/models/authtoken.js.map +1 -1
  25. package/esm/models/buydomainsop.d.ts +6 -2
  26. package/esm/models/buydomainsop.d.ts.map +1 -1
  27. package/esm/models/buydomainsop.js +8 -2
  28. package/esm/models/buydomainsop.js.map +1 -1
  29. package/esm/models/buysingledomainop.d.ts +6 -2
  30. package/esm/models/buysingledomainop.d.ts.map +1 -1
  31. package/esm/models/buysingledomainop.js +8 -2
  32. package/esm/models/buysingledomainop.js.map +1 -1
  33. package/esm/models/canceldeploymentop.d.ts +70 -62
  34. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  35. package/esm/models/canceldeploymentop.js +38 -58
  36. package/esm/models/canceldeploymentop.js.map +1 -1
  37. package/esm/models/createdeploymentop.d.ts +70 -62
  38. package/esm/models/createdeploymentop.d.ts.map +1 -1
  39. package/esm/models/createdeploymentop.js +38 -59
  40. package/esm/models/createdeploymentop.js.map +1 -1
  41. package/esm/models/createdrainop.d.ts +72 -248
  42. package/esm/models/createdrainop.d.ts.map +1 -1
  43. package/esm/models/createdrainop.js +72 -229
  44. package/esm/models/createdrainop.js.map +1 -1
  45. package/esm/models/createedgeconfigop.d.ts +4 -21
  46. package/esm/models/createedgeconfigop.d.ts.map +1 -1
  47. package/esm/models/createedgeconfigop.js +4 -19
  48. package/esm/models/createedgeconfigop.js.map +1 -1
  49. package/esm/models/createeventop.d.ts +8 -25
  50. package/esm/models/createeventop.d.ts.map +1 -1
  51. package/esm/models/createeventop.js +8 -23
  52. package/esm/models/createeventop.js.map +1 -1
  53. package/esm/models/createlogdrainop.d.ts +8 -24
  54. package/esm/models/createlogdrainop.d.ts.map +1 -1
  55. package/esm/models/createlogdrainop.js +8 -22
  56. package/esm/models/createlogdrainop.js.map +1 -1
  57. package/esm/models/createprojectenvop.d.ts +68 -308
  58. package/esm/models/createprojectenvop.d.ts.map +1 -1
  59. package/esm/models/createprojectenvop.js +68 -281
  60. package/esm/models/createprojectenvop.js.map +1 -1
  61. package/esm/models/createprojectop.d.ts +76 -332
  62. package/esm/models/createprojectop.d.ts.map +1 -1
  63. package/esm/models/createprojectop.js +84 -316
  64. package/esm/models/createprojectop.js.map +1 -1
  65. package/esm/models/editprojectenvop.d.ts +34 -154
  66. package/esm/models/editprojectenvop.d.ts.map +1 -1
  67. package/esm/models/editprojectenvop.js +34 -141
  68. package/esm/models/editprojectenvop.js.map +1 -1
  69. package/esm/models/filterprojectenvsop.d.ts +102 -462
  70. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  71. package/esm/models/filterprojectenvsop.js +102 -419
  72. package/esm/models/filterprojectenvsop.js.map +1 -1
  73. package/esm/models/forbidden.d.ts +3 -12
  74. package/esm/models/forbidden.d.ts.map +1 -1
  75. package/esm/models/forbidden.js +2 -9
  76. package/esm/models/forbidden.js.map +1 -1
  77. package/esm/models/getaliasop.d.ts +12 -44
  78. package/esm/models/getaliasop.d.ts.map +1 -1
  79. package/esm/models/getaliasop.js +16 -46
  80. package/esm/models/getaliasop.js.map +1 -1
  81. package/esm/models/getalllogdrainsop.d.ts +72 -248
  82. package/esm/models/getalllogdrainsop.d.ts.map +1 -1
  83. package/esm/models/getalllogdrainsop.js +72 -236
  84. package/esm/models/getalllogdrainsop.js.map +1 -1
  85. package/esm/models/getconfigurationop.d.ts +4 -20
  86. package/esm/models/getconfigurationop.d.ts.map +1 -1
  87. package/esm/models/getconfigurationop.js +4 -18
  88. package/esm/models/getconfigurationop.js.map +1 -1
  89. package/esm/models/getdeploymentop.d.ts +70 -62
  90. package/esm/models/getdeploymentop.d.ts.map +1 -1
  91. package/esm/models/getdeploymentop.js +38 -58
  92. package/esm/models/getdeploymentop.js.map +1 -1
  93. package/esm/models/getdomainauthcodeop.d.ts +6 -2
  94. package/esm/models/getdomainauthcodeop.d.ts.map +1 -1
  95. package/esm/models/getdomainauthcodeop.js +8 -2
  96. package/esm/models/getdomainauthcodeop.js.map +1 -1
  97. package/esm/models/getdomaintransferinop.d.ts +6 -2
  98. package/esm/models/getdomaintransferinop.d.ts.map +1 -1
  99. package/esm/models/getdomaintransferinop.js +8 -2
  100. package/esm/models/getdomaintransferinop.js.map +1 -1
  101. package/esm/models/getdrainop.d.ts +72 -248
  102. package/esm/models/getdrainop.d.ts.map +1 -1
  103. package/esm/models/getdrainop.js +72 -227
  104. package/esm/models/getdrainop.js.map +1 -1
  105. package/esm/models/getdrainsop.d.ts +72 -248
  106. package/esm/models/getdrainsop.d.ts.map +1 -1
  107. package/esm/models/getdrainsop.js +72 -227
  108. package/esm/models/getdrainsop.js.map +1 -1
  109. package/esm/models/getedgeconfigop.d.ts +4 -21
  110. package/esm/models/getedgeconfigop.d.ts.map +1 -1
  111. package/esm/models/getedgeconfigop.js +4 -18
  112. package/esm/models/getedgeconfigop.js.map +1 -1
  113. package/esm/models/getintegrationlogdrainsop.d.ts +8 -24
  114. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  115. package/esm/models/getintegrationlogdrainsop.js +8 -23
  116. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  117. package/esm/models/getorderop.d.ts +48 -172
  118. package/esm/models/getorderop.d.ts.map +1 -1
  119. package/esm/models/getorderop.js +50 -159
  120. package/esm/models/getorderop.js.map +1 -1
  121. package/esm/models/getprojectenvop.d.ts +102 -462
  122. package/esm/models/getprojectenvop.d.ts.map +1 -1
  123. package/esm/models/getprojectenvop.js +102 -419
  124. package/esm/models/getprojectenvop.js.map +1 -1
  125. package/esm/models/getprojectsop.d.ts +76 -332
  126. package/esm/models/getprojectsop.d.ts.map +1 -1
  127. package/esm/models/getprojectsop.js +84 -313
  128. package/esm/models/getprojectsop.js.map +1 -1
  129. package/esm/models/getrollingreleasebillingstatusop.d.ts +10 -42
  130. package/esm/models/getrollingreleasebillingstatusop.d.ts.map +1 -1
  131. package/esm/models/getrollingreleasebillingstatusop.js +10 -39
  132. package/esm/models/getrollingreleasebillingstatusop.js.map +1 -1
  133. package/esm/models/listaliasesop.d.ts +12 -44
  134. package/esm/models/listaliasesop.d.ts.map +1 -1
  135. package/esm/models/listaliasesop.js +16 -47
  136. package/esm/models/listaliasesop.js.map +1 -1
  137. package/esm/models/listdeploymentaliasesop.d.ts +12 -44
  138. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  139. package/esm/models/listdeploymentaliasesop.js +16 -46
  140. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  141. package/esm/models/removeprojectenvop.d.ts +102 -462
  142. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  143. package/esm/models/removeprojectenvop.js +102 -420
  144. package/esm/models/removeprojectenvop.js.map +1 -1
  145. package/esm/models/renewdomainop.d.ts +6 -2
  146. package/esm/models/renewdomainop.d.ts.map +1 -1
  147. package/esm/models/renewdomainop.js +8 -2
  148. package/esm/models/renewdomainop.js.map +1 -1
  149. package/esm/models/transferindomainop.d.ts +6 -2
  150. package/esm/models/transferindomainop.d.ts.map +1 -1
  151. package/esm/models/transferindomainop.js +8 -2
  152. package/esm/models/transferindomainop.js.map +1 -1
  153. package/esm/models/updatedomainautorenewop.d.ts +6 -2
  154. package/esm/models/updatedomainautorenewop.d.ts.map +1 -1
  155. package/esm/models/updatedomainautorenewop.js +8 -2
  156. package/esm/models/updatedomainautorenewop.js.map +1 -1
  157. package/esm/models/updatedomainnameserversop.d.ts +6 -2
  158. package/esm/models/updatedomainnameserversop.d.ts.map +1 -1
  159. package/esm/models/updatedomainnameserversop.js +8 -2
  160. package/esm/models/updatedomainnameserversop.js.map +1 -1
  161. package/esm/models/updatedrainop.d.ts +72 -248
  162. package/esm/models/updatedrainop.d.ts.map +1 -1
  163. package/esm/models/updatedrainop.js +72 -229
  164. package/esm/models/updatedrainop.js.map +1 -1
  165. package/esm/models/updateedgeconfigop.d.ts +4 -21
  166. package/esm/models/updateedgeconfigop.d.ts.map +1 -1
  167. package/esm/models/updateedgeconfigop.js +4 -18
  168. package/esm/models/updateedgeconfigop.js.map +1 -1
  169. package/esm/models/updateprojectdatacacheop.d.ts +76 -332
  170. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  171. package/esm/models/updateprojectdatacacheop.js +84 -318
  172. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  173. package/esm/models/updateprojectop.d.ts +76 -332
  174. package/esm/models/updateprojectop.d.ts.map +1 -1
  175. package/esm/models/updateprojectop.js +84 -316
  176. package/esm/models/updateprojectop.js.map +1 -1
  177. package/esm/models/updateprojectprotectionbypassop.d.ts +4 -21
  178. package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
  179. package/esm/models/updateprojectprotectionbypassop.js +4 -19
  180. package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
  181. package/esm/models/userevent.d.ts +54 -14
  182. package/esm/models/userevent.d.ts.map +1 -1
  183. package/esm/models/userevent.js +26 -13
  184. package/esm/models/userevent.js.map +1 -1
  185. package/esm/types/unrecognized.d.ts +7 -1
  186. package/esm/types/unrecognized.d.ts.map +1 -1
  187. package/esm/types/unrecognized.js +9 -1
  188. package/esm/types/unrecognized.js.map +1 -1
  189. package/examples/package-lock.json +1 -1
  190. package/jsr.json +1 -1
  191. package/package.json +1 -1
  192. package/src/__tests__/checks.test.ts +1 -1
  193. package/src/__tests__/domains.test.ts +3 -4
  194. package/src/__tests__/edgeconfig.test.ts +6 -6
  195. package/src/__tests__/rollingrelease.test.ts +2 -1
  196. package/src/__tests__/security.test.ts +1 -11
  197. package/src/lib/config.ts +3 -3
  198. package/src/lib/encodings.ts +17 -3
  199. package/src/mcp-server/mcp-server.ts +1 -1
  200. package/src/mcp-server/server.ts +1 -1
  201. package/src/models/authtoken.ts +16 -42
  202. package/src/models/buydomainsop.ts +14 -4
  203. package/src/models/buysingledomainop.ts +14 -4
  204. package/src/models/canceldeploymentop.ts +140 -127
  205. package/src/models/createdeploymentop.ts +149 -118
  206. package/src/models/createdrainop.ts +154 -511
  207. package/src/models/createedgeconfigop.ts +8 -37
  208. package/src/models/createeventop.ts +16 -43
  209. package/src/models/createlogdrainop.ts +18 -50
  210. package/src/models/createprojectenvop.ts +136 -875
  211. package/src/models/createprojectop.ts +172 -803
  212. package/src/models/editprojectenvop.ts +68 -417
  213. package/src/models/filterprojectenvsop.ts +210 -1337
  214. package/src/models/forbidden.ts +5 -20
  215. package/src/models/getaliasop.ts +36 -101
  216. package/src/models/getalllogdrainsop.ts +160 -551
  217. package/src/models/getconfigurationop.ts +8 -38
  218. package/src/models/getdeploymentop.ts +144 -124
  219. package/src/models/getdomainauthcodeop.ts +14 -4
  220. package/src/models/getdomaintransferinop.ts +14 -4
  221. package/src/models/getdrainop.ts +156 -531
  222. package/src/models/getdrainsop.ts +155 -535
  223. package/src/models/getedgeconfigop.ts +8 -41
  224. package/src/models/getintegrationlogdrainsop.ts +19 -44
  225. package/src/models/getorderop.ts +99 -408
  226. package/src/models/getprojectenvop.ts +208 -1337
  227. package/src/models/getprojectsop.ts +172 -802
  228. package/src/models/getrollingreleasebillingstatusop.ts +20 -100
  229. package/src/models/listaliasesop.ts +36 -100
  230. package/src/models/listdeploymentaliasesop.ts +36 -111
  231. package/src/models/removeprojectenvop.ts +208 -1335
  232. package/src/models/renewdomainop.ts +14 -4
  233. package/src/models/transferindomainop.ts +14 -4
  234. package/src/models/updatedomainautorenewop.ts +14 -4
  235. package/src/models/updatedomainnameserversop.ts +14 -4
  236. package/src/models/updatedrainop.ts +162 -542
  237. package/src/models/updateedgeconfigop.ts +8 -42
  238. package/src/models/updateprojectdatacacheop.ts +167 -781
  239. package/src/models/updateprojectop.ts +172 -803
  240. package/src/models/updateprojectprotectionbypassop.ts +8 -44
  241. package/src/models/userevent.ts +111 -29
  242. package/src/types/unrecognized.ts +9 -1
  243. package/tsconfig.json +0 -1
@@ -36,15 +36,6 @@ export type GetDrainResponseBodyDrainsSchemas = {
36
36
  speedInsights?: GetDrainResponseBodyDrainsSpeedInsights | undefined;
37
37
  };
38
38
 
39
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type =
40
- {
41
- Internal: "internal",
42
- } as const;
43
- export type GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type =
44
- ClosedEnum<
45
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type
46
- >;
47
-
48
39
  export const GetDrainDeliveryDrainsTarget = {
49
40
  VercelOtelTracesDb: "vercel-otel-traces-db",
50
41
  } as const;
@@ -53,34 +44,16 @@ export type GetDrainDeliveryDrainsTarget = ClosedEnum<
53
44
  >;
54
45
 
55
46
  export type GetDrainDeliveryDrains4 = {
56
- type: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type;
47
+ type: "internal";
57
48
  target: GetDrainDeliveryDrainsTarget;
58
49
  };
59
50
 
60
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type =
61
- {
62
- Clickhouse: "clickhouse",
63
- } as const;
64
- export type GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type =
65
- ClosedEnum<
66
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type
67
- >;
68
-
69
51
  export type GetDrainDeliveryDrains3 = {
70
- type: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type;
52
+ type: "clickhouse";
71
53
  endpoint: string;
72
54
  table: string;
73
55
  };
74
56
 
75
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType =
76
- {
77
- Otlphttp: "otlphttp",
78
- } as const;
79
- export type GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType =
80
- ClosedEnum<
81
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType
82
- >;
83
-
84
57
  export type GetDrainDeliveryDrainsEndpoint = {
85
58
  traces: string;
86
59
  };
@@ -109,20 +82,13 @@ export type GetDrainDeliveryDrainsResponse200Secret =
109
82
  | string;
110
83
 
111
84
  export type GetDrainDeliveryDrains2 = {
112
- type: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType;
85
+ type: "otlphttp";
113
86
  endpoint: GetDrainDeliveryDrainsEndpoint;
114
87
  encoding: GetDrainDeliveryDrainsResponse200Encoding;
115
88
  headers: { [k: string]: string };
116
89
  secret?: GetDrainSecretDrainsResponse2002 | string | undefined;
117
90
  };
118
91
 
119
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONType = {
120
- Http: "http",
121
- } as const;
122
- export type GetDrainDeliveryDrainsResponse200ApplicationJSONType = ClosedEnum<
123
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONType
124
- >;
125
-
126
92
  export const GetDrainDeliveryDrainsResponseEncoding = {
127
93
  Json: "json",
128
94
  Ndjson: "ndjson",
@@ -155,7 +121,7 @@ export type GetDrainDeliveryDrainsResponseSecret =
155
121
  | string;
156
122
 
157
123
  export type GetDrainDeliveryDrains1 = {
158
- type: GetDrainDeliveryDrainsResponse200ApplicationJSONType;
124
+ type: "http";
159
125
  endpoint: string;
160
126
  encoding: GetDrainDeliveryDrainsResponseEncoding;
161
127
  compression?: GetDrainDeliveryDrainsCompression | undefined;
@@ -210,62 +176,27 @@ export type GetDrainResponseBodyDrainsDisabledReason = ClosedEnum<
210
176
  typeof GetDrainResponseBodyDrainsDisabledReason
211
177
  >;
212
178
 
213
- export const GetDrainSourceDrainsResponse200Kind = {
214
- Integration: "integration",
215
- } as const;
216
- export type GetDrainSourceDrainsResponse200Kind = ClosedEnum<
217
- typeof GetDrainSourceDrainsResponse200Kind
218
- >;
219
-
220
179
  export type GetDrainSourceDrains2 = {
221
- kind: GetDrainSourceDrainsResponse200Kind;
180
+ kind: "integration";
222
181
  resourceId?: string | undefined;
223
182
  externalResourceId?: string | undefined;
224
183
  integrationId: string;
225
184
  integrationConfigurationId: string;
226
185
  };
227
186
 
228
- export const GetDrainSourceDrainsResponseKind = {
229
- SelfServed: "self-served",
230
- } as const;
231
- export type GetDrainSourceDrainsResponseKind = ClosedEnum<
232
- typeof GetDrainSourceDrainsResponseKind
233
- >;
234
-
235
187
  export type GetDrainSourceDrains1 = {
236
- kind: GetDrainSourceDrainsResponseKind;
188
+ kind: "self-served";
237
189
  };
238
190
 
239
191
  export type GetDrainResponseBodyDrainsSource =
240
- | GetDrainSourceDrains2
241
- | GetDrainSourceDrains1;
242
-
243
- export const GetDrainFilterV2DrainsResponse200Version = {
244
- V2: "v2",
245
- } as const;
246
- export type GetDrainFilterV2DrainsResponse200Version = ClosedEnum<
247
- typeof GetDrainFilterV2DrainsResponse200Version
248
- >;
249
-
250
- export const GetDrainFilterDrainsResponse200Type = {
251
- Odata: "odata",
252
- } as const;
253
- export type GetDrainFilterDrainsResponse200Type = ClosedEnum<
254
- typeof GetDrainFilterDrainsResponse200Type
255
- >;
192
+ | GetDrainSourceDrains1
193
+ | GetDrainSourceDrains2;
256
194
 
257
195
  export type GetDrainFilterDrains2 = {
258
- type: GetDrainFilterDrainsResponse200Type;
196
+ type: "odata";
259
197
  text: string;
260
198
  };
261
199
 
262
- export const GetDrainFilterDrainsResponseType = {
263
- Basic: "basic",
264
- } as const;
265
- export type GetDrainFilterDrainsResponseType = ClosedEnum<
266
- typeof GetDrainFilterDrainsResponseType
267
- >;
268
-
269
200
  export type GetDrainFilterDrainsProject = {
270
201
  ids?: Array<string> | undefined;
271
202
  };
@@ -301,62 +232,41 @@ export type GetDrainFilterDrainsDeployment = {
301
232
  };
302
233
 
303
234
  export type GetDrainFilterDrains1 = {
304
- type: GetDrainFilterDrainsResponseType;
235
+ type: "basic";
305
236
  project?: GetDrainFilterDrainsProject | undefined;
306
237
  log?: GetDrainFilterDrainsLog | undefined;
307
238
  deployment?: GetDrainFilterDrainsDeployment | undefined;
308
239
  };
309
240
 
310
241
  export type GetDrainFilterV2DrainsFilter =
311
- | GetDrainFilterDrains2
312
- | GetDrainFilterDrains1;
242
+ | GetDrainFilterDrains1
243
+ | GetDrainFilterDrains2;
313
244
 
314
245
  export type GetDrainFilterV2Drains2 = {
315
- version: GetDrainFilterV2DrainsResponse200Version;
316
- filter: GetDrainFilterDrains2 | GetDrainFilterDrains1;
246
+ version: "v2";
247
+ filter: GetDrainFilterDrains1 | GetDrainFilterDrains2;
317
248
  };
318
249
 
319
- export const GetDrainFilterV2DrainsResponseVersion = {
320
- V1: "v1",
321
- } as const;
322
- export type GetDrainFilterV2DrainsResponseVersion = ClosedEnum<
323
- typeof GetDrainFilterV2DrainsResponseVersion
324
- >;
325
-
326
250
  export type GetDrainFilterV2Drains1 = {
327
- version: GetDrainFilterV2DrainsResponseVersion;
251
+ version: "v1";
328
252
  };
329
253
 
330
254
  export type GetDrainResponseBodyDrainsFilterV2 =
331
- | GetDrainFilterV2Drains2
332
- | GetDrainFilterV2Drains1;
333
-
334
- export const GetDrainProjectAccessDrainsAccess = {
335
- Some: "some",
336
- } as const;
337
- export type GetDrainProjectAccessDrainsAccess = ClosedEnum<
338
- typeof GetDrainProjectAccessDrainsAccess
339
- >;
255
+ | GetDrainFilterV2Drains1
256
+ | GetDrainFilterV2Drains2;
340
257
 
341
258
  export type GetDrainProjectAccess2 = {
342
- access: GetDrainProjectAccessDrainsAccess;
259
+ access: "some";
343
260
  projectIds: Array<string>;
344
261
  };
345
262
 
346
- export const GetDrainProjectAccessAccess = {
347
- All: "all",
348
- } as const;
349
- export type GetDrainProjectAccessAccess = ClosedEnum<
350
- typeof GetDrainProjectAccessAccess
351
- >;
352
-
353
263
  export type GetDrainProjectAccess1 = {
354
- access: GetDrainProjectAccessAccess;
264
+ access: "all";
355
265
  };
356
266
 
357
267
  export type ResponseBodyProjectAccess =
358
- | GetDrainProjectAccess2
359
- | GetDrainProjectAccess1;
268
+ | GetDrainProjectAccess1
269
+ | GetDrainProjectAccess2;
360
270
 
361
271
  export type GetDrainResponseBody2 = {
362
272
  id: string;
@@ -379,13 +289,13 @@ export type GetDrainResponseBody2 = {
379
289
  disabledReason?: GetDrainResponseBodyDrainsDisabledReason | undefined;
380
290
  disabledBy?: string | undefined;
381
291
  firstErrorTimestamp?: number | undefined;
382
- source: GetDrainSourceDrains2 | GetDrainSourceDrains1;
292
+ source: GetDrainSourceDrains1 | GetDrainSourceDrains2;
383
293
  filter?: string | undefined;
384
- filterV2?: GetDrainFilterV2Drains2 | GetDrainFilterV2Drains1 | undefined;
294
+ filterV2?: GetDrainFilterV2Drains1 | GetDrainFilterV2Drains2 | undefined;
385
295
  integrationIcon?: string | undefined;
386
296
  integrationConfigurationUri?: string | undefined;
387
297
  integrationWebsite?: string | undefined;
388
- projectAccess?: GetDrainProjectAccess2 | GetDrainProjectAccess1 | undefined;
298
+ projectAccess?: GetDrainProjectAccess1 | GetDrainProjectAccess2 | undefined;
389
299
  };
390
300
 
391
301
  export type GetDrainResponseBodyLog = {};
@@ -403,43 +313,22 @@ export type GetDrainResponseBodySchemas = {
403
313
  speedInsights?: GetDrainResponseBodySpeedInsights | undefined;
404
314
  };
405
315
 
406
- export const GetDrainDeliveryDrainsResponse200Type = {
407
- Internal: "internal",
408
- } as const;
409
- export type GetDrainDeliveryDrainsResponse200Type = ClosedEnum<
410
- typeof GetDrainDeliveryDrainsResponse200Type
411
- >;
412
-
413
316
  export const GetDrainDeliveryTarget = {
414
317
  VercelOtelTracesDb: "vercel-otel-traces-db",
415
318
  } as const;
416
319
  export type GetDrainDeliveryTarget = ClosedEnum<typeof GetDrainDeliveryTarget>;
417
320
 
418
321
  export type GetDrainDelivery4 = {
419
- type: GetDrainDeliveryDrainsResponse200Type;
322
+ type: "internal";
420
323
  target: GetDrainDeliveryTarget;
421
324
  };
422
325
 
423
- export const GetDrainDeliveryDrainsResponseType = {
424
- Clickhouse: "clickhouse",
425
- } as const;
426
- export type GetDrainDeliveryDrainsResponseType = ClosedEnum<
427
- typeof GetDrainDeliveryDrainsResponseType
428
- >;
429
-
430
326
  export type GetDrainDelivery3 = {
431
- type: GetDrainDeliveryDrainsResponseType;
327
+ type: "clickhouse";
432
328
  endpoint: string;
433
329
  table: string;
434
330
  };
435
331
 
436
- export const GetDrainDeliveryDrainsType = {
437
- Otlphttp: "otlphttp",
438
- } as const;
439
- export type GetDrainDeliveryDrainsType = ClosedEnum<
440
- typeof GetDrainDeliveryDrainsType
441
- >;
442
-
443
332
  export type GetDrainDeliveryEndpoint = {
444
333
  traces: string;
445
334
  };
@@ -466,18 +355,13 @@ export type GetDrainSecretDrains2 = {
466
355
  export type GetDrainDeliveryDrainsSecret = GetDrainSecretDrains2 | string;
467
356
 
468
357
  export type GetDrainDelivery2 = {
469
- type: GetDrainDeliveryDrainsType;
358
+ type: "otlphttp";
470
359
  endpoint: GetDrainDeliveryEndpoint;
471
360
  encoding: GetDrainDeliveryDrainsEncoding;
472
361
  headers: { [k: string]: string };
473
362
  secret?: GetDrainSecretDrains2 | string | undefined;
474
363
  };
475
364
 
476
- export const GetDrainDeliveryType = {
477
- Http: "http",
478
- } as const;
479
- export type GetDrainDeliveryType = ClosedEnum<typeof GetDrainDeliveryType>;
480
-
481
365
  export const GetDrainDeliveryEncoding = {
482
366
  Json: "json",
483
367
  Ndjson: "ndjson",
@@ -506,7 +390,7 @@ export type GetDrainSecret2 = {
506
390
  export type GetDrainDeliverySecret = GetDrainSecret2 | string;
507
391
 
508
392
  export type GetDrainDelivery1 = {
509
- type: GetDrainDeliveryType;
393
+ type: "http";
510
394
  endpoint: string;
511
395
  encoding: GetDrainDeliveryEncoding;
512
396
  compression?: GetDrainDeliveryCompression | undefined;
@@ -561,56 +445,25 @@ export type GetDrainResponseBodyDisabledReason = ClosedEnum<
561
445
  typeof GetDrainResponseBodyDisabledReason
562
446
  >;
563
447
 
564
- export const GetDrainSourceDrainsKind = {
565
- Integration: "integration",
566
- } as const;
567
- export type GetDrainSourceDrainsKind = ClosedEnum<
568
- typeof GetDrainSourceDrainsKind
569
- >;
570
-
571
448
  export type GetDrainSource2 = {
572
- kind: GetDrainSourceDrainsKind;
449
+ kind: "integration";
573
450
  resourceId?: string | undefined;
574
451
  externalResourceId?: string | undefined;
575
452
  integrationId: string;
576
453
  integrationConfigurationId: string;
577
454
  };
578
455
 
579
- export const GetDrainSourceKind = {
580
- SelfServed: "self-served",
581
- } as const;
582
- export type GetDrainSourceKind = ClosedEnum<typeof GetDrainSourceKind>;
583
-
584
456
  export type GetDrainSource1 = {
585
- kind: GetDrainSourceKind;
457
+ kind: "self-served";
586
458
  };
587
459
 
588
- export type GetDrainResponseBodySource = GetDrainSource2 | GetDrainSource1;
589
-
590
- export const GetDrainFilterV2DrainsVersion = {
591
- V2: "v2",
592
- } as const;
593
- export type GetDrainFilterV2DrainsVersion = ClosedEnum<
594
- typeof GetDrainFilterV2DrainsVersion
595
- >;
596
-
597
- export const GetDrainFilterDrainsType = {
598
- Odata: "odata",
599
- } as const;
600
- export type GetDrainFilterDrainsType = ClosedEnum<
601
- typeof GetDrainFilterDrainsType
602
- >;
460
+ export type GetDrainResponseBodySource = GetDrainSource1 | GetDrainSource2;
603
461
 
604
462
  export type GetDrainFilter2 = {
605
- type: GetDrainFilterDrainsType;
463
+ type: "odata";
606
464
  text: string;
607
465
  };
608
466
 
609
- export const GetDrainFilterType = {
610
- Basic: "basic",
611
- } as const;
612
- export type GetDrainFilterType = ClosedEnum<typeof GetDrainFilterType>;
613
-
614
467
  export type GetDrainFilterProject = {
615
468
  ids?: Array<string> | undefined;
616
469
  };
@@ -644,33 +497,26 @@ export type GetDrainFilterDeployment = {
644
497
  };
645
498
 
646
499
  export type GetDrainFilter1 = {
647
- type: GetDrainFilterType;
500
+ type: "basic";
648
501
  project?: GetDrainFilterProject | undefined;
649
502
  log?: GetDrainFilterLog | undefined;
650
503
  deployment?: GetDrainFilterDeployment | undefined;
651
504
  };
652
505
 
653
- export type GetDrainFilterV2Filter = GetDrainFilter2 | GetDrainFilter1;
506
+ export type GetDrainFilterV2Filter = GetDrainFilter1 | GetDrainFilter2;
654
507
 
655
508
  export type GetDrainFilterV22 = {
656
- version: GetDrainFilterV2DrainsVersion;
657
- filter: GetDrainFilter2 | GetDrainFilter1;
509
+ version: "v2";
510
+ filter: GetDrainFilter1 | GetDrainFilter2;
658
511
  };
659
512
 
660
- export const GetDrainFilterV2Version = {
661
- V1: "v1",
662
- } as const;
663
- export type GetDrainFilterV2Version = ClosedEnum<
664
- typeof GetDrainFilterV2Version
665
- >;
666
-
667
513
  export type GetDrainFilterV21 = {
668
- version: GetDrainFilterV2Version;
514
+ version: "v1";
669
515
  };
670
516
 
671
517
  export type GetDrainResponseBodyFilterV2 =
672
- | GetDrainFilterV22
673
- | GetDrainFilterV21;
518
+ | GetDrainFilterV21
519
+ | GetDrainFilterV22;
674
520
 
675
521
  export type GetDrainResponseBody1 = {
676
522
  id: string;
@@ -693,9 +539,9 @@ export type GetDrainResponseBody1 = {
693
539
  disabledReason?: GetDrainResponseBodyDisabledReason | undefined;
694
540
  disabledBy?: string | undefined;
695
541
  firstErrorTimestamp?: number | undefined;
696
- source: GetDrainSource2 | GetDrainSource1;
542
+ source: GetDrainSource1 | GetDrainSource2;
697
543
  filter?: string | undefined;
698
- filterV2?: GetDrainFilterV22 | GetDrainFilterV21 | undefined;
544
+ filterV2?: GetDrainFilterV21 | GetDrainFilterV22 | undefined;
699
545
  };
700
546
 
701
547
  export type GetDrainResponseBody =
@@ -958,20 +804,6 @@ export function getDrainResponseBodyDrainsSchemasFromJSON(
958
804
  );
959
805
  }
960
806
 
961
- /** @internal */
962
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema:
963
- z.ZodNativeEnum<
964
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type
965
- > = z.nativeEnum(
966
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type,
967
- );
968
- /** @internal */
969
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$outboundSchema:
970
- z.ZodNativeEnum<
971
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type
972
- > =
973
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema;
974
-
975
807
  /** @internal */
976
808
  export const GetDrainDeliveryDrainsTarget$inboundSchema: z.ZodNativeEnum<
977
809
  typeof GetDrainDeliveryDrainsTarget
@@ -987,13 +819,12 @@ export const GetDrainDeliveryDrains4$inboundSchema: z.ZodType<
987
819
  z.ZodTypeDef,
988
820
  unknown
989
821
  > = z.object({
990
- type:
991
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema,
822
+ type: z.literal("internal"),
992
823
  target: GetDrainDeliveryDrainsTarget$inboundSchema,
993
824
  });
994
825
  /** @internal */
995
826
  export type GetDrainDeliveryDrains4$Outbound = {
996
- type: string;
827
+ type: "internal";
997
828
  target: string;
998
829
  };
999
830
 
@@ -1003,8 +834,7 @@ export const GetDrainDeliveryDrains4$outboundSchema: z.ZodType<
1003
834
  z.ZodTypeDef,
1004
835
  GetDrainDeliveryDrains4
1005
836
  > = z.object({
1006
- type:
1007
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$outboundSchema,
837
+ type: z.literal("internal"),
1008
838
  target: GetDrainDeliveryDrainsTarget$outboundSchema,
1009
839
  });
1010
840
 
@@ -1025,34 +855,19 @@ export function getDrainDeliveryDrains4FromJSON(
1025
855
  );
1026
856
  }
1027
857
 
1028
- /** @internal */
1029
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema:
1030
- z.ZodNativeEnum<
1031
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type
1032
- > = z.nativeEnum(
1033
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type,
1034
- );
1035
- /** @internal */
1036
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$outboundSchema:
1037
- z.ZodNativeEnum<
1038
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type
1039
- > =
1040
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema;
1041
-
1042
858
  /** @internal */
1043
859
  export const GetDrainDeliveryDrains3$inboundSchema: z.ZodType<
1044
860
  GetDrainDeliveryDrains3,
1045
861
  z.ZodTypeDef,
1046
862
  unknown
1047
863
  > = z.object({
1048
- type:
1049
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema,
864
+ type: z.literal("clickhouse"),
1050
865
  endpoint: z.string(),
1051
866
  table: z.string(),
1052
867
  });
1053
868
  /** @internal */
1054
869
  export type GetDrainDeliveryDrains3$Outbound = {
1055
- type: string;
870
+ type: "clickhouse";
1056
871
  endpoint: string;
1057
872
  table: string;
1058
873
  };
@@ -1063,8 +878,7 @@ export const GetDrainDeliveryDrains3$outboundSchema: z.ZodType<
1063
878
  z.ZodTypeDef,
1064
879
  GetDrainDeliveryDrains3
1065
880
  > = z.object({
1066
- type:
1067
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$outboundSchema,
881
+ type: z.literal("clickhouse"),
1068
882
  endpoint: z.string(),
1069
883
  table: z.string(),
1070
884
  });
@@ -1086,20 +900,6 @@ export function getDrainDeliveryDrains3FromJSON(
1086
900
  );
1087
901
  }
1088
902
 
1089
- /** @internal */
1090
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1091
- z.ZodNativeEnum<
1092
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType
1093
- > = z.nativeEnum(
1094
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType,
1095
- );
1096
- /** @internal */
1097
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema:
1098
- z.ZodNativeEnum<
1099
- typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType
1100
- > =
1101
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1102
-
1103
903
  /** @internal */
1104
904
  export const GetDrainDeliveryDrainsEndpoint$inboundSchema: z.ZodType<
1105
905
  GetDrainDeliveryDrainsEndpoint,
@@ -1256,8 +1056,7 @@ export const GetDrainDeliveryDrains2$inboundSchema: z.ZodType<
1256
1056
  z.ZodTypeDef,
1257
1057
  unknown
1258
1058
  > = z.object({
1259
- type:
1260
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1059
+ type: z.literal("otlphttp"),
1261
1060
  endpoint: z.lazy(() => GetDrainDeliveryDrainsEndpoint$inboundSchema),
1262
1061
  encoding: GetDrainDeliveryDrainsResponse200Encoding$inboundSchema,
1263
1062
  headers: z.record(z.string()),
@@ -1268,7 +1067,7 @@ export const GetDrainDeliveryDrains2$inboundSchema: z.ZodType<
1268
1067
  });
1269
1068
  /** @internal */
1270
1069
  export type GetDrainDeliveryDrains2$Outbound = {
1271
- type: string;
1070
+ type: "otlphttp";
1272
1071
  endpoint: GetDrainDeliveryDrainsEndpoint$Outbound;
1273
1072
  encoding: string;
1274
1073
  headers: { [k: string]: string };
@@ -1281,8 +1080,7 @@ export const GetDrainDeliveryDrains2$outboundSchema: z.ZodType<
1281
1080
  z.ZodTypeDef,
1282
1081
  GetDrainDeliveryDrains2
1283
1082
  > = z.object({
1284
- type:
1285
- GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1083
+ type: z.literal("otlphttp"),
1286
1084
  endpoint: z.lazy(() => GetDrainDeliveryDrainsEndpoint$outboundSchema),
1287
1085
  encoding: GetDrainDeliveryDrainsResponse200Encoding$outboundSchema,
1288
1086
  headers: z.record(z.string()),
@@ -1309,15 +1107,6 @@ export function getDrainDeliveryDrains2FromJSON(
1309
1107
  );
1310
1108
  }
1311
1109
 
1312
- /** @internal */
1313
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema:
1314
- z.ZodNativeEnum<typeof GetDrainDeliveryDrainsResponse200ApplicationJSONType> =
1315
- z.nativeEnum(GetDrainDeliveryDrainsResponse200ApplicationJSONType);
1316
- /** @internal */
1317
- export const GetDrainDeliveryDrainsResponse200ApplicationJSONType$outboundSchema:
1318
- z.ZodNativeEnum<typeof GetDrainDeliveryDrainsResponse200ApplicationJSONType> =
1319
- GetDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema;
1320
-
1321
1110
  /** @internal */
1322
1111
  export const GetDrainDeliveryDrainsResponseEncoding$inboundSchema:
1323
1112
  z.ZodNativeEnum<typeof GetDrainDeliveryDrainsResponseEncoding> = z.nativeEnum(
@@ -1437,7 +1226,7 @@ export const GetDrainDeliveryDrains1$inboundSchema: z.ZodType<
1437
1226
  z.ZodTypeDef,
1438
1227
  unknown
1439
1228
  > = z.object({
1440
- type: GetDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema,
1229
+ type: z.literal("http"),
1441
1230
  endpoint: z.string(),
1442
1231
  encoding: GetDrainDeliveryDrainsResponseEncoding$inboundSchema,
1443
1232
  compression: GetDrainDeliveryDrainsCompression$inboundSchema.optional(),
@@ -1449,7 +1238,7 @@ export const GetDrainDeliveryDrains1$inboundSchema: z.ZodType<
1449
1238
  });
1450
1239
  /** @internal */
1451
1240
  export type GetDrainDeliveryDrains1$Outbound = {
1452
- type: string;
1241
+ type: "http";
1453
1242
  endpoint: string;
1454
1243
  encoding: string;
1455
1244
  compression?: string | undefined;
@@ -1463,7 +1252,7 @@ export const GetDrainDeliveryDrains1$outboundSchema: z.ZodType<
1463
1252
  z.ZodTypeDef,
1464
1253
  GetDrainDeliveryDrains1
1465
1254
  > = z.object({
1466
- type: GetDrainDeliveryDrainsResponse200ApplicationJSONType$outboundSchema,
1255
+ type: z.literal("http"),
1467
1256
  endpoint: z.string(),
1468
1257
  encoding: GetDrainDeliveryDrainsResponseEncoding$outboundSchema,
1469
1258
  compression: GetDrainDeliveryDrainsCompression$outboundSchema.optional(),
@@ -1628,22 +1417,13 @@ export const GetDrainResponseBodyDrainsDisabledReason$outboundSchema:
1628
1417
  z.ZodNativeEnum<typeof GetDrainResponseBodyDrainsDisabledReason> =
1629
1418
  GetDrainResponseBodyDrainsDisabledReason$inboundSchema;
1630
1419
 
1631
- /** @internal */
1632
- export const GetDrainSourceDrainsResponse200Kind$inboundSchema: z.ZodNativeEnum<
1633
- typeof GetDrainSourceDrainsResponse200Kind
1634
- > = z.nativeEnum(GetDrainSourceDrainsResponse200Kind);
1635
- /** @internal */
1636
- export const GetDrainSourceDrainsResponse200Kind$outboundSchema:
1637
- z.ZodNativeEnum<typeof GetDrainSourceDrainsResponse200Kind> =
1638
- GetDrainSourceDrainsResponse200Kind$inboundSchema;
1639
-
1640
1420
  /** @internal */
1641
1421
  export const GetDrainSourceDrains2$inboundSchema: z.ZodType<
1642
1422
  GetDrainSourceDrains2,
1643
1423
  z.ZodTypeDef,
1644
1424
  unknown
1645
1425
  > = z.object({
1646
- kind: GetDrainSourceDrainsResponse200Kind$inboundSchema,
1426
+ kind: z.literal("integration"),
1647
1427
  resourceId: z.string().optional(),
1648
1428
  externalResourceId: z.string().optional(),
1649
1429
  integrationId: z.string(),
@@ -1651,7 +1431,7 @@ export const GetDrainSourceDrains2$inboundSchema: z.ZodType<
1651
1431
  });
1652
1432
  /** @internal */
1653
1433
  export type GetDrainSourceDrains2$Outbound = {
1654
- kind: string;
1434
+ kind: "integration";
1655
1435
  resourceId?: string | undefined;
1656
1436
  externalResourceId?: string | undefined;
1657
1437
  integrationId: string;
@@ -1664,7 +1444,7 @@ export const GetDrainSourceDrains2$outboundSchema: z.ZodType<
1664
1444
  z.ZodTypeDef,
1665
1445
  GetDrainSourceDrains2
1666
1446
  > = z.object({
1667
- kind: GetDrainSourceDrainsResponse200Kind$outboundSchema,
1447
+ kind: z.literal("integration"),
1668
1448
  resourceId: z.string().optional(),
1669
1449
  externalResourceId: z.string().optional(),
1670
1450
  integrationId: z.string(),
@@ -1688,26 +1468,17 @@ export function getDrainSourceDrains2FromJSON(
1688
1468
  );
1689
1469
  }
1690
1470
 
1691
- /** @internal */
1692
- export const GetDrainSourceDrainsResponseKind$inboundSchema: z.ZodNativeEnum<
1693
- typeof GetDrainSourceDrainsResponseKind
1694
- > = z.nativeEnum(GetDrainSourceDrainsResponseKind);
1695
- /** @internal */
1696
- export const GetDrainSourceDrainsResponseKind$outboundSchema: z.ZodNativeEnum<
1697
- typeof GetDrainSourceDrainsResponseKind
1698
- > = GetDrainSourceDrainsResponseKind$inboundSchema;
1699
-
1700
1471
  /** @internal */
1701
1472
  export const GetDrainSourceDrains1$inboundSchema: z.ZodType<
1702
1473
  GetDrainSourceDrains1,
1703
1474
  z.ZodTypeDef,
1704
1475
  unknown
1705
1476
  > = z.object({
1706
- kind: GetDrainSourceDrainsResponseKind$inboundSchema,
1477
+ kind: z.literal("self-served"),
1707
1478
  });
1708
1479
  /** @internal */
1709
1480
  export type GetDrainSourceDrains1$Outbound = {
1710
- kind: string;
1481
+ kind: "self-served";
1711
1482
  };
1712
1483
 
1713
1484
  /** @internal */
@@ -1716,7 +1487,7 @@ export const GetDrainSourceDrains1$outboundSchema: z.ZodType<
1716
1487
  z.ZodTypeDef,
1717
1488
  GetDrainSourceDrains1
1718
1489
  > = z.object({
1719
- kind: GetDrainSourceDrainsResponseKind$outboundSchema,
1490
+ kind: z.literal("self-served"),
1720
1491
  });
1721
1492
 
1722
1493
  export function getDrainSourceDrains1ToJSON(
@@ -1742,13 +1513,13 @@ export const GetDrainResponseBodyDrainsSource$inboundSchema: z.ZodType<
1742
1513
  z.ZodTypeDef,
1743
1514
  unknown
1744
1515
  > = z.union([
1745
- z.lazy(() => GetDrainSourceDrains2$inboundSchema),
1746
1516
  z.lazy(() => GetDrainSourceDrains1$inboundSchema),
1517
+ z.lazy(() => GetDrainSourceDrains2$inboundSchema),
1747
1518
  ]);
1748
1519
  /** @internal */
1749
1520
  export type GetDrainResponseBodyDrainsSource$Outbound =
1750
- | GetDrainSourceDrains2$Outbound
1751
- | GetDrainSourceDrains1$Outbound;
1521
+ | GetDrainSourceDrains1$Outbound
1522
+ | GetDrainSourceDrains2$Outbound;
1752
1523
 
1753
1524
  /** @internal */
1754
1525
  export const GetDrainResponseBodyDrainsSource$outboundSchema: z.ZodType<
@@ -1756,8 +1527,8 @@ export const GetDrainResponseBodyDrainsSource$outboundSchema: z.ZodType<
1756
1527
  z.ZodTypeDef,
1757
1528
  GetDrainResponseBodyDrainsSource
1758
1529
  > = z.union([
1759
- z.lazy(() => GetDrainSourceDrains2$outboundSchema),
1760
1530
  z.lazy(() => GetDrainSourceDrains1$outboundSchema),
1531
+ z.lazy(() => GetDrainSourceDrains2$outboundSchema),
1761
1532
  ]);
1762
1533
 
1763
1534
  export function getDrainResponseBodyDrainsSourceToJSON(
@@ -1779,36 +1550,18 @@ export function getDrainResponseBodyDrainsSourceFromJSON(
1779
1550
  );
1780
1551
  }
1781
1552
 
1782
- /** @internal */
1783
- export const GetDrainFilterV2DrainsResponse200Version$inboundSchema:
1784
- z.ZodNativeEnum<typeof GetDrainFilterV2DrainsResponse200Version> = z
1785
- .nativeEnum(GetDrainFilterV2DrainsResponse200Version);
1786
- /** @internal */
1787
- export const GetDrainFilterV2DrainsResponse200Version$outboundSchema:
1788
- z.ZodNativeEnum<typeof GetDrainFilterV2DrainsResponse200Version> =
1789
- GetDrainFilterV2DrainsResponse200Version$inboundSchema;
1790
-
1791
- /** @internal */
1792
- export const GetDrainFilterDrainsResponse200Type$inboundSchema: z.ZodNativeEnum<
1793
- typeof GetDrainFilterDrainsResponse200Type
1794
- > = z.nativeEnum(GetDrainFilterDrainsResponse200Type);
1795
- /** @internal */
1796
- export const GetDrainFilterDrainsResponse200Type$outboundSchema:
1797
- z.ZodNativeEnum<typeof GetDrainFilterDrainsResponse200Type> =
1798
- GetDrainFilterDrainsResponse200Type$inboundSchema;
1799
-
1800
1553
  /** @internal */
1801
1554
  export const GetDrainFilterDrains2$inboundSchema: z.ZodType<
1802
1555
  GetDrainFilterDrains2,
1803
1556
  z.ZodTypeDef,
1804
1557
  unknown
1805
1558
  > = z.object({
1806
- type: GetDrainFilterDrainsResponse200Type$inboundSchema,
1559
+ type: z.literal("odata"),
1807
1560
  text: z.string(),
1808
1561
  });
1809
1562
  /** @internal */
1810
1563
  export type GetDrainFilterDrains2$Outbound = {
1811
- type: string;
1564
+ type: "odata";
1812
1565
  text: string;
1813
1566
  };
1814
1567
 
@@ -1818,7 +1571,7 @@ export const GetDrainFilterDrains2$outboundSchema: z.ZodType<
1818
1571
  z.ZodTypeDef,
1819
1572
  GetDrainFilterDrains2
1820
1573
  > = z.object({
1821
- type: GetDrainFilterDrainsResponse200Type$outboundSchema,
1574
+ type: z.literal("odata"),
1822
1575
  text: z.string(),
1823
1576
  });
1824
1577
 
@@ -1839,15 +1592,6 @@ export function getDrainFilterDrains2FromJSON(
1839
1592
  );
1840
1593
  }
1841
1594
 
1842
- /** @internal */
1843
- export const GetDrainFilterDrainsResponseType$inboundSchema: z.ZodNativeEnum<
1844
- typeof GetDrainFilterDrainsResponseType
1845
- > = z.nativeEnum(GetDrainFilterDrainsResponseType);
1846
- /** @internal */
1847
- export const GetDrainFilterDrainsResponseType$outboundSchema: z.ZodNativeEnum<
1848
- typeof GetDrainFilterDrainsResponseType
1849
- > = GetDrainFilterDrainsResponseType$inboundSchema;
1850
-
1851
1595
  /** @internal */
1852
1596
  export const GetDrainFilterDrainsProject$inboundSchema: z.ZodType<
1853
1597
  GetDrainFilterDrainsProject,
@@ -2006,7 +1750,7 @@ export const GetDrainFilterDrains1$inboundSchema: z.ZodType<
2006
1750
  z.ZodTypeDef,
2007
1751
  unknown
2008
1752
  > = z.object({
2009
- type: GetDrainFilterDrainsResponseType$inboundSchema,
1753
+ type: z.literal("basic"),
2010
1754
  project: z.lazy(() => GetDrainFilterDrainsProject$inboundSchema).optional(),
2011
1755
  log: z.lazy(() => GetDrainFilterDrainsLog$inboundSchema).optional(),
2012
1756
  deployment: z.lazy(() => GetDrainFilterDrainsDeployment$inboundSchema)
@@ -2014,7 +1758,7 @@ export const GetDrainFilterDrains1$inboundSchema: z.ZodType<
2014
1758
  });
2015
1759
  /** @internal */
2016
1760
  export type GetDrainFilterDrains1$Outbound = {
2017
- type: string;
1761
+ type: "basic";
2018
1762
  project?: GetDrainFilterDrainsProject$Outbound | undefined;
2019
1763
  log?: GetDrainFilterDrainsLog$Outbound | undefined;
2020
1764
  deployment?: GetDrainFilterDrainsDeployment$Outbound | undefined;
@@ -2026,7 +1770,7 @@ export const GetDrainFilterDrains1$outboundSchema: z.ZodType<
2026
1770
  z.ZodTypeDef,
2027
1771
  GetDrainFilterDrains1
2028
1772
  > = z.object({
2029
- type: GetDrainFilterDrainsResponseType$outboundSchema,
1773
+ type: z.literal("basic"),
2030
1774
  project: z.lazy(() => GetDrainFilterDrainsProject$outboundSchema).optional(),
2031
1775
  log: z.lazy(() => GetDrainFilterDrainsLog$outboundSchema).optional(),
2032
1776
  deployment: z.lazy(() => GetDrainFilterDrainsDeployment$outboundSchema)
@@ -2056,13 +1800,13 @@ export const GetDrainFilterV2DrainsFilter$inboundSchema: z.ZodType<
2056
1800
  z.ZodTypeDef,
2057
1801
  unknown
2058
1802
  > = z.union([
2059
- z.lazy(() => GetDrainFilterDrains2$inboundSchema),
2060
1803
  z.lazy(() => GetDrainFilterDrains1$inboundSchema),
1804
+ z.lazy(() => GetDrainFilterDrains2$inboundSchema),
2061
1805
  ]);
2062
1806
  /** @internal */
2063
1807
  export type GetDrainFilterV2DrainsFilter$Outbound =
2064
- | GetDrainFilterDrains2$Outbound
2065
- | GetDrainFilterDrains1$Outbound;
1808
+ | GetDrainFilterDrains1$Outbound
1809
+ | GetDrainFilterDrains2$Outbound;
2066
1810
 
2067
1811
  /** @internal */
2068
1812
  export const GetDrainFilterV2DrainsFilter$outboundSchema: z.ZodType<
@@ -2070,8 +1814,8 @@ export const GetDrainFilterV2DrainsFilter$outboundSchema: z.ZodType<
2070
1814
  z.ZodTypeDef,
2071
1815
  GetDrainFilterV2DrainsFilter
2072
1816
  > = z.union([
2073
- z.lazy(() => GetDrainFilterDrains2$outboundSchema),
2074
1817
  z.lazy(() => GetDrainFilterDrains1$outboundSchema),
1818
+ z.lazy(() => GetDrainFilterDrains2$outboundSchema),
2075
1819
  ]);
2076
1820
 
2077
1821
  export function getDrainFilterV2DrainsFilterToJSON(
@@ -2099,16 +1843,16 @@ export const GetDrainFilterV2Drains2$inboundSchema: z.ZodType<
2099
1843
  z.ZodTypeDef,
2100
1844
  unknown
2101
1845
  > = z.object({
2102
- version: GetDrainFilterV2DrainsResponse200Version$inboundSchema,
1846
+ version: z.literal("v2"),
2103
1847
  filter: z.union([
2104
- z.lazy(() => GetDrainFilterDrains2$inboundSchema),
2105
1848
  z.lazy(() => GetDrainFilterDrains1$inboundSchema),
1849
+ z.lazy(() => GetDrainFilterDrains2$inboundSchema),
2106
1850
  ]),
2107
1851
  });
2108
1852
  /** @internal */
2109
1853
  export type GetDrainFilterV2Drains2$Outbound = {
2110
- version: string;
2111
- filter: GetDrainFilterDrains2$Outbound | GetDrainFilterDrains1$Outbound;
1854
+ version: "v2";
1855
+ filter: GetDrainFilterDrains1$Outbound | GetDrainFilterDrains2$Outbound;
2112
1856
  };
2113
1857
 
2114
1858
  /** @internal */
@@ -2117,10 +1861,10 @@ export const GetDrainFilterV2Drains2$outboundSchema: z.ZodType<
2117
1861
  z.ZodTypeDef,
2118
1862
  GetDrainFilterV2Drains2
2119
1863
  > = z.object({
2120
- version: GetDrainFilterV2DrainsResponse200Version$outboundSchema,
1864
+ version: z.literal("v2"),
2121
1865
  filter: z.union([
2122
- z.lazy(() => GetDrainFilterDrains2$outboundSchema),
2123
1866
  z.lazy(() => GetDrainFilterDrains1$outboundSchema),
1867
+ z.lazy(() => GetDrainFilterDrains2$outboundSchema),
2124
1868
  ]),
2125
1869
  });
2126
1870
 
@@ -2141,27 +1885,17 @@ export function getDrainFilterV2Drains2FromJSON(
2141
1885
  );
2142
1886
  }
2143
1887
 
2144
- /** @internal */
2145
- export const GetDrainFilterV2DrainsResponseVersion$inboundSchema:
2146
- z.ZodNativeEnum<typeof GetDrainFilterV2DrainsResponseVersion> = z.nativeEnum(
2147
- GetDrainFilterV2DrainsResponseVersion,
2148
- );
2149
- /** @internal */
2150
- export const GetDrainFilterV2DrainsResponseVersion$outboundSchema:
2151
- z.ZodNativeEnum<typeof GetDrainFilterV2DrainsResponseVersion> =
2152
- GetDrainFilterV2DrainsResponseVersion$inboundSchema;
2153
-
2154
1888
  /** @internal */
2155
1889
  export const GetDrainFilterV2Drains1$inboundSchema: z.ZodType<
2156
1890
  GetDrainFilterV2Drains1,
2157
1891
  z.ZodTypeDef,
2158
1892
  unknown
2159
1893
  > = z.object({
2160
- version: GetDrainFilterV2DrainsResponseVersion$inboundSchema,
1894
+ version: z.literal("v1"),
2161
1895
  });
2162
1896
  /** @internal */
2163
1897
  export type GetDrainFilterV2Drains1$Outbound = {
2164
- version: string;
1898
+ version: "v1";
2165
1899
  };
2166
1900
 
2167
1901
  /** @internal */
@@ -2170,7 +1904,7 @@ export const GetDrainFilterV2Drains1$outboundSchema: z.ZodType<
2170
1904
  z.ZodTypeDef,
2171
1905
  GetDrainFilterV2Drains1
2172
1906
  > = z.object({
2173
- version: GetDrainFilterV2DrainsResponseVersion$outboundSchema,
1907
+ version: z.literal("v1"),
2174
1908
  });
2175
1909
 
2176
1910
  export function getDrainFilterV2Drains1ToJSON(
@@ -2196,13 +1930,13 @@ export const GetDrainResponseBodyDrainsFilterV2$inboundSchema: z.ZodType<
2196
1930
  z.ZodTypeDef,
2197
1931
  unknown
2198
1932
  > = z.union([
2199
- z.lazy(() => GetDrainFilterV2Drains2$inboundSchema),
2200
1933
  z.lazy(() => GetDrainFilterV2Drains1$inboundSchema),
1934
+ z.lazy(() => GetDrainFilterV2Drains2$inboundSchema),
2201
1935
  ]);
2202
1936
  /** @internal */
2203
1937
  export type GetDrainResponseBodyDrainsFilterV2$Outbound =
2204
- | GetDrainFilterV2Drains2$Outbound
2205
- | GetDrainFilterV2Drains1$Outbound;
1938
+ | GetDrainFilterV2Drains1$Outbound
1939
+ | GetDrainFilterV2Drains2$Outbound;
2206
1940
 
2207
1941
  /** @internal */
2208
1942
  export const GetDrainResponseBodyDrainsFilterV2$outboundSchema: z.ZodType<
@@ -2210,8 +1944,8 @@ export const GetDrainResponseBodyDrainsFilterV2$outboundSchema: z.ZodType<
2210
1944
  z.ZodTypeDef,
2211
1945
  GetDrainResponseBodyDrainsFilterV2
2212
1946
  > = z.union([
2213
- z.lazy(() => GetDrainFilterV2Drains2$outboundSchema),
2214
1947
  z.lazy(() => GetDrainFilterV2Drains1$outboundSchema),
1948
+ z.lazy(() => GetDrainFilterV2Drains2$outboundSchema),
2215
1949
  ]);
2216
1950
 
2217
1951
  export function getDrainResponseBodyDrainsFilterV2ToJSON(
@@ -2234,27 +1968,18 @@ export function getDrainResponseBodyDrainsFilterV2FromJSON(
2234
1968
  );
2235
1969
  }
2236
1970
 
2237
- /** @internal */
2238
- export const GetDrainProjectAccessDrainsAccess$inboundSchema: z.ZodNativeEnum<
2239
- typeof GetDrainProjectAccessDrainsAccess
2240
- > = z.nativeEnum(GetDrainProjectAccessDrainsAccess);
2241
- /** @internal */
2242
- export const GetDrainProjectAccessDrainsAccess$outboundSchema: z.ZodNativeEnum<
2243
- typeof GetDrainProjectAccessDrainsAccess
2244
- > = GetDrainProjectAccessDrainsAccess$inboundSchema;
2245
-
2246
1971
  /** @internal */
2247
1972
  export const GetDrainProjectAccess2$inboundSchema: z.ZodType<
2248
1973
  GetDrainProjectAccess2,
2249
1974
  z.ZodTypeDef,
2250
1975
  unknown
2251
1976
  > = z.object({
2252
- access: GetDrainProjectAccessDrainsAccess$inboundSchema,
1977
+ access: z.literal("some"),
2253
1978
  projectIds: z.array(z.string()),
2254
1979
  });
2255
1980
  /** @internal */
2256
1981
  export type GetDrainProjectAccess2$Outbound = {
2257
- access: string;
1982
+ access: "some";
2258
1983
  projectIds: Array<string>;
2259
1984
  };
2260
1985
 
@@ -2264,7 +1989,7 @@ export const GetDrainProjectAccess2$outboundSchema: z.ZodType<
2264
1989
  z.ZodTypeDef,
2265
1990
  GetDrainProjectAccess2
2266
1991
  > = z.object({
2267
- access: GetDrainProjectAccessDrainsAccess$outboundSchema,
1992
+ access: z.literal("some"),
2268
1993
  projectIds: z.array(z.string()),
2269
1994
  });
2270
1995
 
@@ -2285,26 +2010,17 @@ export function getDrainProjectAccess2FromJSON(
2285
2010
  );
2286
2011
  }
2287
2012
 
2288
- /** @internal */
2289
- export const GetDrainProjectAccessAccess$inboundSchema: z.ZodNativeEnum<
2290
- typeof GetDrainProjectAccessAccess
2291
- > = z.nativeEnum(GetDrainProjectAccessAccess);
2292
- /** @internal */
2293
- export const GetDrainProjectAccessAccess$outboundSchema: z.ZodNativeEnum<
2294
- typeof GetDrainProjectAccessAccess
2295
- > = GetDrainProjectAccessAccess$inboundSchema;
2296
-
2297
2013
  /** @internal */
2298
2014
  export const GetDrainProjectAccess1$inboundSchema: z.ZodType<
2299
2015
  GetDrainProjectAccess1,
2300
2016
  z.ZodTypeDef,
2301
2017
  unknown
2302
2018
  > = z.object({
2303
- access: GetDrainProjectAccessAccess$inboundSchema,
2019
+ access: z.literal("all"),
2304
2020
  });
2305
2021
  /** @internal */
2306
2022
  export type GetDrainProjectAccess1$Outbound = {
2307
- access: string;
2023
+ access: "all";
2308
2024
  };
2309
2025
 
2310
2026
  /** @internal */
@@ -2313,7 +2029,7 @@ export const GetDrainProjectAccess1$outboundSchema: z.ZodType<
2313
2029
  z.ZodTypeDef,
2314
2030
  GetDrainProjectAccess1
2315
2031
  > = z.object({
2316
- access: GetDrainProjectAccessAccess$outboundSchema,
2032
+ access: z.literal("all"),
2317
2033
  });
2318
2034
 
2319
2035
  export function getDrainProjectAccess1ToJSON(
@@ -2339,13 +2055,13 @@ export const ResponseBodyProjectAccess$inboundSchema: z.ZodType<
2339
2055
  z.ZodTypeDef,
2340
2056
  unknown
2341
2057
  > = z.union([
2342
- z.lazy(() => GetDrainProjectAccess2$inboundSchema),
2343
2058
  z.lazy(() => GetDrainProjectAccess1$inboundSchema),
2059
+ z.lazy(() => GetDrainProjectAccess2$inboundSchema),
2344
2060
  ]);
2345
2061
  /** @internal */
2346
2062
  export type ResponseBodyProjectAccess$Outbound =
2347
- | GetDrainProjectAccess2$Outbound
2348
- | GetDrainProjectAccess1$Outbound;
2063
+ | GetDrainProjectAccess1$Outbound
2064
+ | GetDrainProjectAccess2$Outbound;
2349
2065
 
2350
2066
  /** @internal */
2351
2067
  export const ResponseBodyProjectAccess$outboundSchema: z.ZodType<
@@ -2353,8 +2069,8 @@ export const ResponseBodyProjectAccess$outboundSchema: z.ZodType<
2353
2069
  z.ZodTypeDef,
2354
2070
  ResponseBodyProjectAccess
2355
2071
  > = z.union([
2356
- z.lazy(() => GetDrainProjectAccess2$outboundSchema),
2357
2072
  z.lazy(() => GetDrainProjectAccess1$outboundSchema),
2073
+ z.lazy(() => GetDrainProjectAccess2$outboundSchema),
2358
2074
  ]);
2359
2075
 
2360
2076
  export function responseBodyProjectAccessToJSON(
@@ -2405,20 +2121,20 @@ export const GetDrainResponseBody2$inboundSchema: z.ZodType<
2405
2121
  disabledBy: z.string().optional(),
2406
2122
  firstErrorTimestamp: z.number().optional(),
2407
2123
  source: z.union([
2408
- z.lazy(() => GetDrainSourceDrains2$inboundSchema),
2409
2124
  z.lazy(() => GetDrainSourceDrains1$inboundSchema),
2125
+ z.lazy(() => GetDrainSourceDrains2$inboundSchema),
2410
2126
  ]),
2411
2127
  filter: z.string().optional(),
2412
2128
  filterV2: z.union([
2413
- z.lazy(() => GetDrainFilterV2Drains2$inboundSchema),
2414
2129
  z.lazy(() => GetDrainFilterV2Drains1$inboundSchema),
2130
+ z.lazy(() => GetDrainFilterV2Drains2$inboundSchema),
2415
2131
  ]).optional(),
2416
2132
  integrationIcon: z.string().optional(),
2417
2133
  integrationConfigurationUri: z.string().optional(),
2418
2134
  integrationWebsite: z.string().optional(),
2419
2135
  projectAccess: z.union([
2420
- z.lazy(() => GetDrainProjectAccess2$inboundSchema),
2421
2136
  z.lazy(() => GetDrainProjectAccess1$inboundSchema),
2137
+ z.lazy(() => GetDrainProjectAccess2$inboundSchema),
2422
2138
  ]).optional(),
2423
2139
  });
2424
2140
  /** @internal */
@@ -2443,18 +2159,18 @@ export type GetDrainResponseBody2$Outbound = {
2443
2159
  disabledReason?: string | undefined;
2444
2160
  disabledBy?: string | undefined;
2445
2161
  firstErrorTimestamp?: number | undefined;
2446
- source: GetDrainSourceDrains2$Outbound | GetDrainSourceDrains1$Outbound;
2162
+ source: GetDrainSourceDrains1$Outbound | GetDrainSourceDrains2$Outbound;
2447
2163
  filter?: string | undefined;
2448
2164
  filterV2?:
2449
- | GetDrainFilterV2Drains2$Outbound
2450
2165
  | GetDrainFilterV2Drains1$Outbound
2166
+ | GetDrainFilterV2Drains2$Outbound
2451
2167
  | undefined;
2452
2168
  integrationIcon?: string | undefined;
2453
2169
  integrationConfigurationUri?: string | undefined;
2454
2170
  integrationWebsite?: string | undefined;
2455
2171
  projectAccess?:
2456
- | GetDrainProjectAccess2$Outbound
2457
2172
  | GetDrainProjectAccess1$Outbound
2173
+ | GetDrainProjectAccess2$Outbound
2458
2174
  | undefined;
2459
2175
  };
2460
2176
 
@@ -2489,20 +2205,20 @@ export const GetDrainResponseBody2$outboundSchema: z.ZodType<
2489
2205
  disabledBy: z.string().optional(),
2490
2206
  firstErrorTimestamp: z.number().optional(),
2491
2207
  source: z.union([
2492
- z.lazy(() => GetDrainSourceDrains2$outboundSchema),
2493
2208
  z.lazy(() => GetDrainSourceDrains1$outboundSchema),
2209
+ z.lazy(() => GetDrainSourceDrains2$outboundSchema),
2494
2210
  ]),
2495
2211
  filter: z.string().optional(),
2496
2212
  filterV2: z.union([
2497
- z.lazy(() => GetDrainFilterV2Drains2$outboundSchema),
2498
2213
  z.lazy(() => GetDrainFilterV2Drains1$outboundSchema),
2214
+ z.lazy(() => GetDrainFilterV2Drains2$outboundSchema),
2499
2215
  ]).optional(),
2500
2216
  integrationIcon: z.string().optional(),
2501
2217
  integrationConfigurationUri: z.string().optional(),
2502
2218
  integrationWebsite: z.string().optional(),
2503
2219
  projectAccess: z.union([
2504
- z.lazy(() => GetDrainProjectAccess2$outboundSchema),
2505
2220
  z.lazy(() => GetDrainProjectAccess1$outboundSchema),
2221
+ z.lazy(() => GetDrainProjectAccess2$outboundSchema),
2506
2222
  ]).optional(),
2507
2223
  });
2508
2224
 
@@ -2721,16 +2437,6 @@ export function getDrainResponseBodySchemasFromJSON(
2721
2437
  );
2722
2438
  }
2723
2439
 
2724
- /** @internal */
2725
- export const GetDrainDeliveryDrainsResponse200Type$inboundSchema:
2726
- z.ZodNativeEnum<typeof GetDrainDeliveryDrainsResponse200Type> = z.nativeEnum(
2727
- GetDrainDeliveryDrainsResponse200Type,
2728
- );
2729
- /** @internal */
2730
- export const GetDrainDeliveryDrainsResponse200Type$outboundSchema:
2731
- z.ZodNativeEnum<typeof GetDrainDeliveryDrainsResponse200Type> =
2732
- GetDrainDeliveryDrainsResponse200Type$inboundSchema;
2733
-
2734
2440
  /** @internal */
2735
2441
  export const GetDrainDeliveryTarget$inboundSchema: z.ZodNativeEnum<
2736
2442
  typeof GetDrainDeliveryTarget
@@ -2746,12 +2452,12 @@ export const GetDrainDelivery4$inboundSchema: z.ZodType<
2746
2452
  z.ZodTypeDef,
2747
2453
  unknown
2748
2454
  > = z.object({
2749
- type: GetDrainDeliveryDrainsResponse200Type$inboundSchema,
2455
+ type: z.literal("internal"),
2750
2456
  target: GetDrainDeliveryTarget$inboundSchema,
2751
2457
  });
2752
2458
  /** @internal */
2753
2459
  export type GetDrainDelivery4$Outbound = {
2754
- type: string;
2460
+ type: "internal";
2755
2461
  target: string;
2756
2462
  };
2757
2463
 
@@ -2761,7 +2467,7 @@ export const GetDrainDelivery4$outboundSchema: z.ZodType<
2761
2467
  z.ZodTypeDef,
2762
2468
  GetDrainDelivery4
2763
2469
  > = z.object({
2764
- type: GetDrainDeliveryDrainsResponse200Type$outboundSchema,
2470
+ type: z.literal("internal"),
2765
2471
  target: GetDrainDeliveryTarget$outboundSchema,
2766
2472
  });
2767
2473
 
@@ -2782,28 +2488,19 @@ export function getDrainDelivery4FromJSON(
2782
2488
  );
2783
2489
  }
2784
2490
 
2785
- /** @internal */
2786
- export const GetDrainDeliveryDrainsResponseType$inboundSchema: z.ZodNativeEnum<
2787
- typeof GetDrainDeliveryDrainsResponseType
2788
- > = z.nativeEnum(GetDrainDeliveryDrainsResponseType);
2789
- /** @internal */
2790
- export const GetDrainDeliveryDrainsResponseType$outboundSchema: z.ZodNativeEnum<
2791
- typeof GetDrainDeliveryDrainsResponseType
2792
- > = GetDrainDeliveryDrainsResponseType$inboundSchema;
2793
-
2794
2491
  /** @internal */
2795
2492
  export const GetDrainDelivery3$inboundSchema: z.ZodType<
2796
2493
  GetDrainDelivery3,
2797
2494
  z.ZodTypeDef,
2798
2495
  unknown
2799
2496
  > = z.object({
2800
- type: GetDrainDeliveryDrainsResponseType$inboundSchema,
2497
+ type: z.literal("clickhouse"),
2801
2498
  endpoint: z.string(),
2802
2499
  table: z.string(),
2803
2500
  });
2804
2501
  /** @internal */
2805
2502
  export type GetDrainDelivery3$Outbound = {
2806
- type: string;
2503
+ type: "clickhouse";
2807
2504
  endpoint: string;
2808
2505
  table: string;
2809
2506
  };
@@ -2814,7 +2511,7 @@ export const GetDrainDelivery3$outboundSchema: z.ZodType<
2814
2511
  z.ZodTypeDef,
2815
2512
  GetDrainDelivery3
2816
2513
  > = z.object({
2817
- type: GetDrainDeliveryDrainsResponseType$outboundSchema,
2514
+ type: z.literal("clickhouse"),
2818
2515
  endpoint: z.string(),
2819
2516
  table: z.string(),
2820
2517
  });
@@ -2836,15 +2533,6 @@ export function getDrainDelivery3FromJSON(
2836
2533
  );
2837
2534
  }
2838
2535
 
2839
- /** @internal */
2840
- export const GetDrainDeliveryDrainsType$inboundSchema: z.ZodNativeEnum<
2841
- typeof GetDrainDeliveryDrainsType
2842
- > = z.nativeEnum(GetDrainDeliveryDrainsType);
2843
- /** @internal */
2844
- export const GetDrainDeliveryDrainsType$outboundSchema: z.ZodNativeEnum<
2845
- typeof GetDrainDeliveryDrainsType
2846
- > = GetDrainDeliveryDrainsType$inboundSchema;
2847
-
2848
2536
  /** @internal */
2849
2537
  export const GetDrainDeliveryEndpoint$inboundSchema: z.ZodType<
2850
2538
  GetDrainDeliveryEndpoint,
@@ -2984,7 +2672,7 @@ export const GetDrainDelivery2$inboundSchema: z.ZodType<
2984
2672
  z.ZodTypeDef,
2985
2673
  unknown
2986
2674
  > = z.object({
2987
- type: GetDrainDeliveryDrainsType$inboundSchema,
2675
+ type: z.literal("otlphttp"),
2988
2676
  endpoint: z.lazy(() => GetDrainDeliveryEndpoint$inboundSchema),
2989
2677
  encoding: GetDrainDeliveryDrainsEncoding$inboundSchema,
2990
2678
  headers: z.record(z.string()),
@@ -2995,7 +2683,7 @@ export const GetDrainDelivery2$inboundSchema: z.ZodType<
2995
2683
  });
2996
2684
  /** @internal */
2997
2685
  export type GetDrainDelivery2$Outbound = {
2998
- type: string;
2686
+ type: "otlphttp";
2999
2687
  endpoint: GetDrainDeliveryEndpoint$Outbound;
3000
2688
  encoding: string;
3001
2689
  headers: { [k: string]: string };
@@ -3008,7 +2696,7 @@ export const GetDrainDelivery2$outboundSchema: z.ZodType<
3008
2696
  z.ZodTypeDef,
3009
2697
  GetDrainDelivery2
3010
2698
  > = z.object({
3011
- type: GetDrainDeliveryDrainsType$outboundSchema,
2699
+ type: z.literal("otlphttp"),
3012
2700
  endpoint: z.lazy(() => GetDrainDeliveryEndpoint$outboundSchema),
3013
2701
  encoding: GetDrainDeliveryDrainsEncoding$outboundSchema,
3014
2702
  headers: z.record(z.string()),
@@ -3035,15 +2723,6 @@ export function getDrainDelivery2FromJSON(
3035
2723
  );
3036
2724
  }
3037
2725
 
3038
- /** @internal */
3039
- export const GetDrainDeliveryType$inboundSchema: z.ZodNativeEnum<
3040
- typeof GetDrainDeliveryType
3041
- > = z.nativeEnum(GetDrainDeliveryType);
3042
- /** @internal */
3043
- export const GetDrainDeliveryType$outboundSchema: z.ZodNativeEnum<
3044
- typeof GetDrainDeliveryType
3045
- > = GetDrainDeliveryType$inboundSchema;
3046
-
3047
2726
  /** @internal */
3048
2727
  export const GetDrainDeliveryEncoding$inboundSchema: z.ZodNativeEnum<
3049
2728
  typeof GetDrainDeliveryEncoding
@@ -3147,7 +2826,7 @@ export const GetDrainDelivery1$inboundSchema: z.ZodType<
3147
2826
  z.ZodTypeDef,
3148
2827
  unknown
3149
2828
  > = z.object({
3150
- type: GetDrainDeliveryType$inboundSchema,
2829
+ type: z.literal("http"),
3151
2830
  endpoint: z.string(),
3152
2831
  encoding: GetDrainDeliveryEncoding$inboundSchema,
3153
2832
  compression: GetDrainDeliveryCompression$inboundSchema.optional(),
@@ -3157,7 +2836,7 @@ export const GetDrainDelivery1$inboundSchema: z.ZodType<
3157
2836
  });
3158
2837
  /** @internal */
3159
2838
  export type GetDrainDelivery1$Outbound = {
3160
- type: string;
2839
+ type: "http";
3161
2840
  endpoint: string;
3162
2841
  encoding: string;
3163
2842
  compression?: string | undefined;
@@ -3171,7 +2850,7 @@ export const GetDrainDelivery1$outboundSchema: z.ZodType<
3171
2850
  z.ZodTypeDef,
3172
2851
  GetDrainDelivery1
3173
2852
  > = z.object({
3174
- type: GetDrainDeliveryType$outboundSchema,
2853
+ type: z.literal("http"),
3175
2854
  endpoint: z.string(),
3176
2855
  encoding: GetDrainDeliveryEncoding$outboundSchema,
3177
2856
  compression: GetDrainDeliveryCompression$outboundSchema.optional(),
@@ -3332,22 +3011,13 @@ export const GetDrainResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum<
3332
3011
  typeof GetDrainResponseBodyDisabledReason
3333
3012
  > = GetDrainResponseBodyDisabledReason$inboundSchema;
3334
3013
 
3335
- /** @internal */
3336
- export const GetDrainSourceDrainsKind$inboundSchema: z.ZodNativeEnum<
3337
- typeof GetDrainSourceDrainsKind
3338
- > = z.nativeEnum(GetDrainSourceDrainsKind);
3339
- /** @internal */
3340
- export const GetDrainSourceDrainsKind$outboundSchema: z.ZodNativeEnum<
3341
- typeof GetDrainSourceDrainsKind
3342
- > = GetDrainSourceDrainsKind$inboundSchema;
3343
-
3344
3014
  /** @internal */
3345
3015
  export const GetDrainSource2$inboundSchema: z.ZodType<
3346
3016
  GetDrainSource2,
3347
3017
  z.ZodTypeDef,
3348
3018
  unknown
3349
3019
  > = z.object({
3350
- kind: GetDrainSourceDrainsKind$inboundSchema,
3020
+ kind: z.literal("integration"),
3351
3021
  resourceId: z.string().optional(),
3352
3022
  externalResourceId: z.string().optional(),
3353
3023
  integrationId: z.string(),
@@ -3355,7 +3025,7 @@ export const GetDrainSource2$inboundSchema: z.ZodType<
3355
3025
  });
3356
3026
  /** @internal */
3357
3027
  export type GetDrainSource2$Outbound = {
3358
- kind: string;
3028
+ kind: "integration";
3359
3029
  resourceId?: string | undefined;
3360
3030
  externalResourceId?: string | undefined;
3361
3031
  integrationId: string;
@@ -3368,7 +3038,7 @@ export const GetDrainSource2$outboundSchema: z.ZodType<
3368
3038
  z.ZodTypeDef,
3369
3039
  GetDrainSource2
3370
3040
  > = z.object({
3371
- kind: GetDrainSourceDrainsKind$outboundSchema,
3041
+ kind: z.literal("integration"),
3372
3042
  resourceId: z.string().optional(),
3373
3043
  externalResourceId: z.string().optional(),
3374
3044
  integrationId: z.string(),
@@ -3390,26 +3060,17 @@ export function getDrainSource2FromJSON(
3390
3060
  );
3391
3061
  }
3392
3062
 
3393
- /** @internal */
3394
- export const GetDrainSourceKind$inboundSchema: z.ZodNativeEnum<
3395
- typeof GetDrainSourceKind
3396
- > = z.nativeEnum(GetDrainSourceKind);
3397
- /** @internal */
3398
- export const GetDrainSourceKind$outboundSchema: z.ZodNativeEnum<
3399
- typeof GetDrainSourceKind
3400
- > = GetDrainSourceKind$inboundSchema;
3401
-
3402
3063
  /** @internal */
3403
3064
  export const GetDrainSource1$inboundSchema: z.ZodType<
3404
3065
  GetDrainSource1,
3405
3066
  z.ZodTypeDef,
3406
3067
  unknown
3407
3068
  > = z.object({
3408
- kind: GetDrainSourceKind$inboundSchema,
3069
+ kind: z.literal("self-served"),
3409
3070
  });
3410
3071
  /** @internal */
3411
3072
  export type GetDrainSource1$Outbound = {
3412
- kind: string;
3073
+ kind: "self-served";
3413
3074
  };
3414
3075
 
3415
3076
  /** @internal */
@@ -3418,7 +3079,7 @@ export const GetDrainSource1$outboundSchema: z.ZodType<
3418
3079
  z.ZodTypeDef,
3419
3080
  GetDrainSource1
3420
3081
  > = z.object({
3421
- kind: GetDrainSourceKind$outboundSchema,
3082
+ kind: z.literal("self-served"),
3422
3083
  });
3423
3084
 
3424
3085
  export function getDrainSource1ToJSON(
@@ -3442,13 +3103,13 @@ export const GetDrainResponseBodySource$inboundSchema: z.ZodType<
3442
3103
  z.ZodTypeDef,
3443
3104
  unknown
3444
3105
  > = z.union([
3445
- z.lazy(() => GetDrainSource2$inboundSchema),
3446
3106
  z.lazy(() => GetDrainSource1$inboundSchema),
3107
+ z.lazy(() => GetDrainSource2$inboundSchema),
3447
3108
  ]);
3448
3109
  /** @internal */
3449
3110
  export type GetDrainResponseBodySource$Outbound =
3450
- | GetDrainSource2$Outbound
3451
- | GetDrainSource1$Outbound;
3111
+ | GetDrainSource1$Outbound
3112
+ | GetDrainSource2$Outbound;
3452
3113
 
3453
3114
  /** @internal */
3454
3115
  export const GetDrainResponseBodySource$outboundSchema: z.ZodType<
@@ -3456,8 +3117,8 @@ export const GetDrainResponseBodySource$outboundSchema: z.ZodType<
3456
3117
  z.ZodTypeDef,
3457
3118
  GetDrainResponseBodySource
3458
3119
  > = z.union([
3459
- z.lazy(() => GetDrainSource2$outboundSchema),
3460
3120
  z.lazy(() => GetDrainSource1$outboundSchema),
3121
+ z.lazy(() => GetDrainSource2$outboundSchema),
3461
3122
  ]);
3462
3123
 
3463
3124
  export function getDrainResponseBodySourceToJSON(
@@ -3477,36 +3138,18 @@ export function getDrainResponseBodySourceFromJSON(
3477
3138
  );
3478
3139
  }
3479
3140
 
3480
- /** @internal */
3481
- export const GetDrainFilterV2DrainsVersion$inboundSchema: z.ZodNativeEnum<
3482
- typeof GetDrainFilterV2DrainsVersion
3483
- > = z.nativeEnum(GetDrainFilterV2DrainsVersion);
3484
- /** @internal */
3485
- export const GetDrainFilterV2DrainsVersion$outboundSchema: z.ZodNativeEnum<
3486
- typeof GetDrainFilterV2DrainsVersion
3487
- > = GetDrainFilterV2DrainsVersion$inboundSchema;
3488
-
3489
- /** @internal */
3490
- export const GetDrainFilterDrainsType$inboundSchema: z.ZodNativeEnum<
3491
- typeof GetDrainFilterDrainsType
3492
- > = z.nativeEnum(GetDrainFilterDrainsType);
3493
- /** @internal */
3494
- export const GetDrainFilterDrainsType$outboundSchema: z.ZodNativeEnum<
3495
- typeof GetDrainFilterDrainsType
3496
- > = GetDrainFilterDrainsType$inboundSchema;
3497
-
3498
3141
  /** @internal */
3499
3142
  export const GetDrainFilter2$inboundSchema: z.ZodType<
3500
3143
  GetDrainFilter2,
3501
3144
  z.ZodTypeDef,
3502
3145
  unknown
3503
3146
  > = z.object({
3504
- type: GetDrainFilterDrainsType$inboundSchema,
3147
+ type: z.literal("odata"),
3505
3148
  text: z.string(),
3506
3149
  });
3507
3150
  /** @internal */
3508
3151
  export type GetDrainFilter2$Outbound = {
3509
- type: string;
3152
+ type: "odata";
3510
3153
  text: string;
3511
3154
  };
3512
3155
 
@@ -3516,7 +3159,7 @@ export const GetDrainFilter2$outboundSchema: z.ZodType<
3516
3159
  z.ZodTypeDef,
3517
3160
  GetDrainFilter2
3518
3161
  > = z.object({
3519
- type: GetDrainFilterDrainsType$outboundSchema,
3162
+ type: z.literal("odata"),
3520
3163
  text: z.string(),
3521
3164
  });
3522
3165
 
@@ -3535,15 +3178,6 @@ export function getDrainFilter2FromJSON(
3535
3178
  );
3536
3179
  }
3537
3180
 
3538
- /** @internal */
3539
- export const GetDrainFilterType$inboundSchema: z.ZodNativeEnum<
3540
- typeof GetDrainFilterType
3541
- > = z.nativeEnum(GetDrainFilterType);
3542
- /** @internal */
3543
- export const GetDrainFilterType$outboundSchema: z.ZodNativeEnum<
3544
- typeof GetDrainFilterType
3545
- > = GetDrainFilterType$inboundSchema;
3546
-
3547
3181
  /** @internal */
3548
3182
  export const GetDrainFilterProject$inboundSchema: z.ZodType<
3549
3183
  GetDrainFilterProject,
@@ -3696,14 +3330,14 @@ export const GetDrainFilter1$inboundSchema: z.ZodType<
3696
3330
  z.ZodTypeDef,
3697
3331
  unknown
3698
3332
  > = z.object({
3699
- type: GetDrainFilterType$inboundSchema,
3333
+ type: z.literal("basic"),
3700
3334
  project: z.lazy(() => GetDrainFilterProject$inboundSchema).optional(),
3701
3335
  log: z.lazy(() => GetDrainFilterLog$inboundSchema).optional(),
3702
3336
  deployment: z.lazy(() => GetDrainFilterDeployment$inboundSchema).optional(),
3703
3337
  });
3704
3338
  /** @internal */
3705
3339
  export type GetDrainFilter1$Outbound = {
3706
- type: string;
3340
+ type: "basic";
3707
3341
  project?: GetDrainFilterProject$Outbound | undefined;
3708
3342
  log?: GetDrainFilterLog$Outbound | undefined;
3709
3343
  deployment?: GetDrainFilterDeployment$Outbound | undefined;
@@ -3715,7 +3349,7 @@ export const GetDrainFilter1$outboundSchema: z.ZodType<
3715
3349
  z.ZodTypeDef,
3716
3350
  GetDrainFilter1
3717
3351
  > = z.object({
3718
- type: GetDrainFilterType$outboundSchema,
3352
+ type: z.literal("basic"),
3719
3353
  project: z.lazy(() => GetDrainFilterProject$outboundSchema).optional(),
3720
3354
  log: z.lazy(() => GetDrainFilterLog$outboundSchema).optional(),
3721
3355
  deployment: z.lazy(() => GetDrainFilterDeployment$outboundSchema).optional(),
@@ -3742,13 +3376,13 @@ export const GetDrainFilterV2Filter$inboundSchema: z.ZodType<
3742
3376
  z.ZodTypeDef,
3743
3377
  unknown
3744
3378
  > = z.union([
3745
- z.lazy(() => GetDrainFilter2$inboundSchema),
3746
3379
  z.lazy(() => GetDrainFilter1$inboundSchema),
3380
+ z.lazy(() => GetDrainFilter2$inboundSchema),
3747
3381
  ]);
3748
3382
  /** @internal */
3749
3383
  export type GetDrainFilterV2Filter$Outbound =
3750
- | GetDrainFilter2$Outbound
3751
- | GetDrainFilter1$Outbound;
3384
+ | GetDrainFilter1$Outbound
3385
+ | GetDrainFilter2$Outbound;
3752
3386
 
3753
3387
  /** @internal */
3754
3388
  export const GetDrainFilterV2Filter$outboundSchema: z.ZodType<
@@ -3756,8 +3390,8 @@ export const GetDrainFilterV2Filter$outboundSchema: z.ZodType<
3756
3390
  z.ZodTypeDef,
3757
3391
  GetDrainFilterV2Filter
3758
3392
  > = z.union([
3759
- z.lazy(() => GetDrainFilter2$outboundSchema),
3760
3393
  z.lazy(() => GetDrainFilter1$outboundSchema),
3394
+ z.lazy(() => GetDrainFilter2$outboundSchema),
3761
3395
  ]);
3762
3396
 
3763
3397
  export function getDrainFilterV2FilterToJSON(
@@ -3783,16 +3417,16 @@ export const GetDrainFilterV22$inboundSchema: z.ZodType<
3783
3417
  z.ZodTypeDef,
3784
3418
  unknown
3785
3419
  > = z.object({
3786
- version: GetDrainFilterV2DrainsVersion$inboundSchema,
3420
+ version: z.literal("v2"),
3787
3421
  filter: z.union([
3788
- z.lazy(() => GetDrainFilter2$inboundSchema),
3789
3422
  z.lazy(() => GetDrainFilter1$inboundSchema),
3423
+ z.lazy(() => GetDrainFilter2$inboundSchema),
3790
3424
  ]),
3791
3425
  });
3792
3426
  /** @internal */
3793
3427
  export type GetDrainFilterV22$Outbound = {
3794
- version: string;
3795
- filter: GetDrainFilter2$Outbound | GetDrainFilter1$Outbound;
3428
+ version: "v2";
3429
+ filter: GetDrainFilter1$Outbound | GetDrainFilter2$Outbound;
3796
3430
  };
3797
3431
 
3798
3432
  /** @internal */
@@ -3801,10 +3435,10 @@ export const GetDrainFilterV22$outboundSchema: z.ZodType<
3801
3435
  z.ZodTypeDef,
3802
3436
  GetDrainFilterV22
3803
3437
  > = z.object({
3804
- version: GetDrainFilterV2DrainsVersion$outboundSchema,
3438
+ version: z.literal("v2"),
3805
3439
  filter: z.union([
3806
- z.lazy(() => GetDrainFilter2$outboundSchema),
3807
3440
  z.lazy(() => GetDrainFilter1$outboundSchema),
3441
+ z.lazy(() => GetDrainFilter2$outboundSchema),
3808
3442
  ]),
3809
3443
  });
3810
3444
 
@@ -3825,26 +3459,17 @@ export function getDrainFilterV22FromJSON(
3825
3459
  );
3826
3460
  }
3827
3461
 
3828
- /** @internal */
3829
- export const GetDrainFilterV2Version$inboundSchema: z.ZodNativeEnum<
3830
- typeof GetDrainFilterV2Version
3831
- > = z.nativeEnum(GetDrainFilterV2Version);
3832
- /** @internal */
3833
- export const GetDrainFilterV2Version$outboundSchema: z.ZodNativeEnum<
3834
- typeof GetDrainFilterV2Version
3835
- > = GetDrainFilterV2Version$inboundSchema;
3836
-
3837
3462
  /** @internal */
3838
3463
  export const GetDrainFilterV21$inboundSchema: z.ZodType<
3839
3464
  GetDrainFilterV21,
3840
3465
  z.ZodTypeDef,
3841
3466
  unknown
3842
3467
  > = z.object({
3843
- version: GetDrainFilterV2Version$inboundSchema,
3468
+ version: z.literal("v1"),
3844
3469
  });
3845
3470
  /** @internal */
3846
3471
  export type GetDrainFilterV21$Outbound = {
3847
- version: string;
3472
+ version: "v1";
3848
3473
  };
3849
3474
 
3850
3475
  /** @internal */
@@ -3853,7 +3478,7 @@ export const GetDrainFilterV21$outboundSchema: z.ZodType<
3853
3478
  z.ZodTypeDef,
3854
3479
  GetDrainFilterV21
3855
3480
  > = z.object({
3856
- version: GetDrainFilterV2Version$outboundSchema,
3481
+ version: z.literal("v1"),
3857
3482
  });
3858
3483
 
3859
3484
  export function getDrainFilterV21ToJSON(
@@ -3879,13 +3504,13 @@ export const GetDrainResponseBodyFilterV2$inboundSchema: z.ZodType<
3879
3504
  z.ZodTypeDef,
3880
3505
  unknown
3881
3506
  > = z.union([
3882
- z.lazy(() => GetDrainFilterV22$inboundSchema),
3883
3507
  z.lazy(() => GetDrainFilterV21$inboundSchema),
3508
+ z.lazy(() => GetDrainFilterV22$inboundSchema),
3884
3509
  ]);
3885
3510
  /** @internal */
3886
3511
  export type GetDrainResponseBodyFilterV2$Outbound =
3887
- | GetDrainFilterV22$Outbound
3888
- | GetDrainFilterV21$Outbound;
3512
+ | GetDrainFilterV21$Outbound
3513
+ | GetDrainFilterV22$Outbound;
3889
3514
 
3890
3515
  /** @internal */
3891
3516
  export const GetDrainResponseBodyFilterV2$outboundSchema: z.ZodType<
@@ -3893,8 +3518,8 @@ export const GetDrainResponseBodyFilterV2$outboundSchema: z.ZodType<
3893
3518
  z.ZodTypeDef,
3894
3519
  GetDrainResponseBodyFilterV2
3895
3520
  > = z.union([
3896
- z.lazy(() => GetDrainFilterV22$outboundSchema),
3897
3521
  z.lazy(() => GetDrainFilterV21$outboundSchema),
3522
+ z.lazy(() => GetDrainFilterV22$outboundSchema),
3898
3523
  ]);
3899
3524
 
3900
3525
  export function getDrainResponseBodyFilterV2ToJSON(
@@ -3944,13 +3569,13 @@ export const GetDrainResponseBody1$inboundSchema: z.ZodType<
3944
3569
  disabledBy: z.string().optional(),
3945
3570
  firstErrorTimestamp: z.number().optional(),
3946
3571
  source: z.union([
3947
- z.lazy(() => GetDrainSource2$inboundSchema),
3948
3572
  z.lazy(() => GetDrainSource1$inboundSchema),
3573
+ z.lazy(() => GetDrainSource2$inboundSchema),
3949
3574
  ]),
3950
3575
  filter: z.string().optional(),
3951
3576
  filterV2: z.union([
3952
- z.lazy(() => GetDrainFilterV22$inboundSchema),
3953
3577
  z.lazy(() => GetDrainFilterV21$inboundSchema),
3578
+ z.lazy(() => GetDrainFilterV22$inboundSchema),
3954
3579
  ]).optional(),
3955
3580
  });
3956
3581
  /** @internal */
@@ -3975,11 +3600,11 @@ export type GetDrainResponseBody1$Outbound = {
3975
3600
  disabledReason?: string | undefined;
3976
3601
  disabledBy?: string | undefined;
3977
3602
  firstErrorTimestamp?: number | undefined;
3978
- source: GetDrainSource2$Outbound | GetDrainSource1$Outbound;
3603
+ source: GetDrainSource1$Outbound | GetDrainSource2$Outbound;
3979
3604
  filter?: string | undefined;
3980
3605
  filterV2?:
3981
- | GetDrainFilterV22$Outbound
3982
3606
  | GetDrainFilterV21$Outbound
3607
+ | GetDrainFilterV22$Outbound
3983
3608
  | undefined;
3984
3609
  };
3985
3610
 
@@ -4011,13 +3636,13 @@ export const GetDrainResponseBody1$outboundSchema: z.ZodType<
4011
3636
  disabledBy: z.string().optional(),
4012
3637
  firstErrorTimestamp: z.number().optional(),
4013
3638
  source: z.union([
4014
- z.lazy(() => GetDrainSource2$outboundSchema),
4015
3639
  z.lazy(() => GetDrainSource1$outboundSchema),
3640
+ z.lazy(() => GetDrainSource2$outboundSchema),
4016
3641
  ]),
4017
3642
  filter: z.string().optional(),
4018
3643
  filterV2: z.union([
4019
- z.lazy(() => GetDrainFilterV22$outboundSchema),
4020
3644
  z.lazy(() => GetDrainFilterV21$outboundSchema),
3645
+ z.lazy(() => GetDrainFilterV22$outboundSchema),
4021
3646
  ]).optional(),
4022
3647
  });
4023
3648