@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
@@ -118,15 +118,6 @@ export type GetAllLogDrainsDrainsLogDrainsSchemas = {
118
118
  speedInsights?: GetAllLogDrainsDrainsSpeedInsights | undefined;
119
119
  };
120
120
 
121
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type =
122
- {
123
- Internal: "internal",
124
- } as const;
125
- export type GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type =
126
- ClosedEnum<
127
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type
128
- >;
129
-
130
121
  export const GetAllLogDrainsDeliveryTarget = {
131
122
  VercelOtelTracesDb: "vercel-otel-traces-db",
132
123
  } as const;
@@ -135,35 +126,16 @@ export type GetAllLogDrainsDeliveryTarget = ClosedEnum<
135
126
  >;
136
127
 
137
128
  export type GetAllLogDrainsDelivery4 = {
138
- type:
139
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type;
129
+ type: "internal";
140
130
  target: GetAllLogDrainsDeliveryTarget;
141
131
  };
142
132
 
143
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType =
144
- {
145
- Clickhouse: "clickhouse",
146
- } as const;
147
- export type GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType =
148
- ClosedEnum<
149
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType
150
- >;
151
-
152
133
  export type GetAllLogDrainsDelivery3 = {
153
- type:
154
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType;
134
+ type: "clickhouse";
155
135
  endpoint: string;
156
136
  table: string;
157
137
  };
158
138
 
159
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType = {
160
- Otlphttp: "otlphttp",
161
- } as const;
162
- export type GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType =
163
- ClosedEnum<
164
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType
165
- >;
166
-
167
139
  export type GetAllLogDrainsDeliveryLogDrainsEndpoint = {
168
140
  traces: string;
169
141
  };
@@ -192,20 +164,13 @@ export type GetAllLogDrainsDeliveryLogDrainsSecret =
192
164
  | string;
193
165
 
194
166
  export type GetAllLogDrainsDelivery2 = {
195
- type: GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType;
167
+ type: "otlphttp";
196
168
  endpoint: GetAllLogDrainsDeliveryLogDrainsEndpoint;
197
169
  encoding: GetAllLogDrainsDeliveryLogDrainsResponseEncoding;
198
170
  headers: { [k: string]: string };
199
171
  secret?: GetAllLogDrainsSecretLogDrainsResponse2 | string | undefined;
200
172
  };
201
173
 
202
- export const GetAllLogDrainsDeliveryLogDrainsResponse200Type = {
203
- Http: "http",
204
- } as const;
205
- export type GetAllLogDrainsDeliveryLogDrainsResponse200Type = ClosedEnum<
206
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200Type
207
- >;
208
-
209
174
  export const GetAllLogDrainsDeliveryLogDrainsEncoding = {
210
175
  Json: "json",
211
176
  Ndjson: "ndjson",
@@ -238,7 +203,7 @@ export type GetAllLogDrainsDeliverySecret =
238
203
  | string;
239
204
 
240
205
  export type GetAllLogDrainsDelivery1 = {
241
- type: GetAllLogDrainsDeliveryLogDrainsResponse200Type;
206
+ type: "http";
242
207
  endpoint: string;
243
208
  encoding: GetAllLogDrainsDeliveryLogDrainsEncoding;
244
209
  compression?: GetAllLogDrainsDeliveryLogDrainsCompression | undefined;
@@ -293,62 +258,27 @@ export type GetAllLogDrainsDrainsLogDrainsDisabledReason = ClosedEnum<
293
258
  typeof GetAllLogDrainsDrainsLogDrainsDisabledReason
294
259
  >;
295
260
 
296
- export const GetAllLogDrainsSourceLogDrainsKind = {
297
- Integration: "integration",
298
- } as const;
299
- export type GetAllLogDrainsSourceLogDrainsKind = ClosedEnum<
300
- typeof GetAllLogDrainsSourceLogDrainsKind
301
- >;
302
-
303
261
  export type GetAllLogDrainsSource2 = {
304
- kind: GetAllLogDrainsSourceLogDrainsKind;
262
+ kind: "integration";
305
263
  resourceId?: string | undefined;
306
264
  externalResourceId?: string | undefined;
307
265
  integrationId: string;
308
266
  integrationConfigurationId: string;
309
267
  };
310
268
 
311
- export const GetAllLogDrainsSourceKind = {
312
- SelfServed: "self-served",
313
- } as const;
314
- export type GetAllLogDrainsSourceKind = ClosedEnum<
315
- typeof GetAllLogDrainsSourceKind
316
- >;
317
-
318
269
  export type GetAllLogDrainsSource1 = {
319
- kind: GetAllLogDrainsSourceKind;
270
+ kind: "self-served";
320
271
  };
321
272
 
322
273
  export type GetAllLogDrainsDrainsSource =
323
- | GetAllLogDrainsSource2
324
- | GetAllLogDrainsSource1;
325
-
326
- export const GetAllLogDrainsFilterV2LogDrainsVersion = {
327
- V2: "v2",
328
- } as const;
329
- export type GetAllLogDrainsFilterV2LogDrainsVersion = ClosedEnum<
330
- typeof GetAllLogDrainsFilterV2LogDrainsVersion
331
- >;
332
-
333
- export const GetAllLogDrainsFilterLogDrainsResponseType = {
334
- Odata: "odata",
335
- } as const;
336
- export type GetAllLogDrainsFilterLogDrainsResponseType = ClosedEnum<
337
- typeof GetAllLogDrainsFilterLogDrainsResponseType
338
- >;
274
+ | GetAllLogDrainsSource1
275
+ | GetAllLogDrainsSource2;
339
276
 
340
277
  export type GetAllLogDrainsFilter2 = {
341
- type: GetAllLogDrainsFilterLogDrainsResponseType;
278
+ type: "odata";
342
279
  text: string;
343
280
  };
344
281
 
345
- export const GetAllLogDrainsFilterLogDrainsType = {
346
- Basic: "basic",
347
- } as const;
348
- export type GetAllLogDrainsFilterLogDrainsType = ClosedEnum<
349
- typeof GetAllLogDrainsFilterLogDrainsType
350
- >;
351
-
352
282
  export type GetAllLogDrainsFilterProject = {
353
283
  ids?: Array<string> | undefined;
354
284
  };
@@ -384,62 +314,41 @@ export type GetAllLogDrainsFilterLogDrainsDeployment = {
384
314
  };
385
315
 
386
316
  export type GetAllLogDrainsFilter1 = {
387
- type: GetAllLogDrainsFilterLogDrainsType;
317
+ type: "basic";
388
318
  project?: GetAllLogDrainsFilterProject | undefined;
389
319
  log?: GetAllLogDrainsFilterLog | undefined;
390
320
  deployment?: GetAllLogDrainsFilterLogDrainsDeployment | undefined;
391
321
  };
392
322
 
393
323
  export type GetAllLogDrainsFilterV2LogDrainsFilter =
394
- | GetAllLogDrainsFilter2
395
- | GetAllLogDrainsFilter1;
324
+ | GetAllLogDrainsFilter1
325
+ | GetAllLogDrainsFilter2;
396
326
 
397
327
  export type GetAllLogDrainsFilterV22 = {
398
- version: GetAllLogDrainsFilterV2LogDrainsVersion;
399
- filter: GetAllLogDrainsFilter2 | GetAllLogDrainsFilter1;
328
+ version: "v2";
329
+ filter: GetAllLogDrainsFilter1 | GetAllLogDrainsFilter2;
400
330
  };
401
331
 
402
- export const GetAllLogDrainsFilterV2Version = {
403
- V1: "v1",
404
- } as const;
405
- export type GetAllLogDrainsFilterV2Version = ClosedEnum<
406
- typeof GetAllLogDrainsFilterV2Version
407
- >;
408
-
409
332
  export type GetAllLogDrainsFilterV21 = {
410
- version: GetAllLogDrainsFilterV2Version;
333
+ version: "v1";
411
334
  };
412
335
 
413
336
  export type GetAllLogDrainsDrainsLogDrainsFilterV2 =
414
- | GetAllLogDrainsFilterV22
415
- | GetAllLogDrainsFilterV21;
416
-
417
- export const GetAllLogDrainsProjectAccessLogDrainsAccess = {
418
- Some: "some",
419
- } as const;
420
- export type GetAllLogDrainsProjectAccessLogDrainsAccess = ClosedEnum<
421
- typeof GetAllLogDrainsProjectAccessLogDrainsAccess
422
- >;
337
+ | GetAllLogDrainsFilterV21
338
+ | GetAllLogDrainsFilterV22;
423
339
 
424
340
  export type GetAllLogDrainsProjectAccess2 = {
425
- access: GetAllLogDrainsProjectAccessLogDrainsAccess;
341
+ access: "some";
426
342
  projectIds: Array<string>;
427
343
  };
428
344
 
429
- export const GetAllLogDrainsProjectAccessAccess = {
430
- All: "all",
431
- } as const;
432
- export type GetAllLogDrainsProjectAccessAccess = ClosedEnum<
433
- typeof GetAllLogDrainsProjectAccessAccess
434
- >;
435
-
436
345
  export type GetAllLogDrainsProjectAccess1 = {
437
- access: GetAllLogDrainsProjectAccessAccess;
346
+ access: "all";
438
347
  };
439
348
 
440
349
  export type GetAllLogDrainsDrainsProjectAccess =
441
- | GetAllLogDrainsProjectAccess2
442
- | GetAllLogDrainsProjectAccess1;
350
+ | GetAllLogDrainsProjectAccess1
351
+ | GetAllLogDrainsProjectAccess2;
443
352
 
444
353
  export type GetAllLogDrainsDrains2 = {
445
354
  id: string;
@@ -462,15 +371,15 @@ export type GetAllLogDrainsDrains2 = {
462
371
  disabledReason?: GetAllLogDrainsDrainsLogDrainsDisabledReason | undefined;
463
372
  disabledBy?: string | undefined;
464
373
  firstErrorTimestamp?: number | undefined;
465
- source: GetAllLogDrainsSource2 | GetAllLogDrainsSource1;
374
+ source: GetAllLogDrainsSource1 | GetAllLogDrainsSource2;
466
375
  filter?: string | undefined;
467
- filterV2?: GetAllLogDrainsFilterV22 | GetAllLogDrainsFilterV21 | undefined;
376
+ filterV2?: GetAllLogDrainsFilterV21 | GetAllLogDrainsFilterV22 | undefined;
468
377
  integrationIcon?: string | undefined;
469
378
  integrationConfigurationUri?: string | undefined;
470
379
  integrationWebsite?: string | undefined;
471
380
  projectAccess?:
472
- | GetAllLogDrainsProjectAccess2
473
381
  | GetAllLogDrainsProjectAccess1
382
+ | GetAllLogDrainsProjectAccess2
474
383
  | undefined;
475
384
  };
476
385
 
@@ -489,13 +398,6 @@ export type GetAllLogDrainsDrainsSchemas = {
489
398
  speedInsights?: GetAllLogDrainsDrainsLogDrainsSpeedInsights | undefined;
490
399
  };
491
400
 
492
- export const GetAllLogDrainsDeliveryLogDrainsResponseType = {
493
- Internal: "internal",
494
- } as const;
495
- export type GetAllLogDrainsDeliveryLogDrainsResponseType = ClosedEnum<
496
- typeof GetAllLogDrainsDeliveryLogDrainsResponseType
497
- >;
498
-
499
401
  export const GetAllLogDrainsDeliveryLogDrainsTarget = {
500
402
  VercelOtelTracesDb: "vercel-otel-traces-db",
501
403
  } as const;
@@ -504,30 +406,16 @@ export type GetAllLogDrainsDeliveryLogDrainsTarget = ClosedEnum<
504
406
  >;
505
407
 
506
408
  export type GetAllLogDrainsDeliveryLogDrains4 = {
507
- type: GetAllLogDrainsDeliveryLogDrainsResponseType;
409
+ type: "internal";
508
410
  target: GetAllLogDrainsDeliveryLogDrainsTarget;
509
411
  };
510
412
 
511
- export const GetAllLogDrainsDeliveryLogDrainsType = {
512
- Clickhouse: "clickhouse",
513
- } as const;
514
- export type GetAllLogDrainsDeliveryLogDrainsType = ClosedEnum<
515
- typeof GetAllLogDrainsDeliveryLogDrainsType
516
- >;
517
-
518
413
  export type GetAllLogDrainsDeliveryLogDrains3 = {
519
- type: GetAllLogDrainsDeliveryLogDrainsType;
414
+ type: "clickhouse";
520
415
  endpoint: string;
521
416
  table: string;
522
417
  };
523
418
 
524
- export const GetAllLogDrainsDeliveryType = {
525
- Otlphttp: "otlphttp",
526
- } as const;
527
- export type GetAllLogDrainsDeliveryType = ClosedEnum<
528
- typeof GetAllLogDrainsDeliveryType
529
- >;
530
-
531
419
  export type GetAllLogDrainsDeliveryEndpoint = {
532
420
  traces: string;
533
421
  };
@@ -556,22 +444,13 @@ export type GetAllLogDrainsDeliveryLogDrainsResponse200Secret =
556
444
  | string;
557
445
 
558
446
  export type GetAllLogDrainsDeliveryLogDrains2 = {
559
- type: GetAllLogDrainsDeliveryType;
447
+ type: "otlphttp";
560
448
  endpoint: GetAllLogDrainsDeliveryEndpoint;
561
449
  encoding: GetAllLogDrainsDeliveryEncoding;
562
450
  headers: { [k: string]: string };
563
451
  secret?: GetAllLogDrainsSecret2 | string | undefined;
564
452
  };
565
453
 
566
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType =
567
- {
568
- Http: "http",
569
- } as const;
570
- export type GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType =
571
- ClosedEnum<
572
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType
573
- >;
574
-
575
454
  export const GetAllLogDrainsDeliveryLogDrainsResponse200Encoding = {
576
455
  Json: "json",
577
456
  Ndjson: "ndjson",
@@ -604,8 +483,7 @@ export type GetAllLogDrainsDeliveryLogDrainsResponseSecret =
604
483
  | string;
605
484
 
606
485
  export type GetAllLogDrainsDeliveryLogDrains1 = {
607
- type:
608
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType;
486
+ type: "http";
609
487
  endpoint: string;
610
488
  encoding: GetAllLogDrainsDeliveryLogDrainsResponse200Encoding;
611
489
  compression?: GetAllLogDrainsDeliveryCompression | undefined;
@@ -660,62 +538,27 @@ export type GetAllLogDrainsDrainsDisabledReason = ClosedEnum<
660
538
  typeof GetAllLogDrainsDrainsDisabledReason
661
539
  >;
662
540
 
663
- export const GetAllLogDrainsSourceLogDrainsResponse200Kind = {
664
- Integration: "integration",
665
- } as const;
666
- export type GetAllLogDrainsSourceLogDrainsResponse200Kind = ClosedEnum<
667
- typeof GetAllLogDrainsSourceLogDrainsResponse200Kind
668
- >;
669
-
670
541
  export type GetAllLogDrainsSourceLogDrains2 = {
671
- kind: GetAllLogDrainsSourceLogDrainsResponse200Kind;
542
+ kind: "integration";
672
543
  resourceId?: string | undefined;
673
544
  externalResourceId?: string | undefined;
674
545
  integrationId: string;
675
546
  integrationConfigurationId: string;
676
547
  };
677
548
 
678
- export const GetAllLogDrainsSourceLogDrainsResponseKind = {
679
- SelfServed: "self-served",
680
- } as const;
681
- export type GetAllLogDrainsSourceLogDrainsResponseKind = ClosedEnum<
682
- typeof GetAllLogDrainsSourceLogDrainsResponseKind
683
- >;
684
-
685
549
  export type GetAllLogDrainsSourceLogDrains1 = {
686
- kind: GetAllLogDrainsSourceLogDrainsResponseKind;
550
+ kind: "self-served";
687
551
  };
688
552
 
689
553
  export type GetAllLogDrainsDrainsLogDrainsSource =
690
- | GetAllLogDrainsSourceLogDrains2
691
- | GetAllLogDrainsSourceLogDrains1;
692
-
693
- export const GetAllLogDrainsFilterV2LogDrainsResponse200Version = {
694
- V2: "v2",
695
- } as const;
696
- export type GetAllLogDrainsFilterV2LogDrainsResponse200Version = ClosedEnum<
697
- typeof GetAllLogDrainsFilterV2LogDrainsResponse200Version
698
- >;
699
-
700
- export const GetAllLogDrainsFilterType = {
701
- Odata: "odata",
702
- } as const;
703
- export type GetAllLogDrainsFilterType = ClosedEnum<
704
- typeof GetAllLogDrainsFilterType
705
- >;
554
+ | GetAllLogDrainsSourceLogDrains1
555
+ | GetAllLogDrainsSourceLogDrains2;
706
556
 
707
557
  export type GetAllLogDrainsFilterLogDrains2 = {
708
- type: GetAllLogDrainsFilterType;
558
+ type: "odata";
709
559
  text: string;
710
560
  };
711
561
 
712
- export const GetAllLogDrainsFilterLogDrainsResponse200Type = {
713
- Basic: "basic",
714
- } as const;
715
- export type GetAllLogDrainsFilterLogDrainsResponse200Type = ClosedEnum<
716
- typeof GetAllLogDrainsFilterLogDrainsResponse200Type
717
- >;
718
-
719
562
  export type GetAllLogDrainsFilterLogDrainsProject = {
720
563
  ids?: Array<string> | undefined;
721
564
  };
@@ -751,35 +594,28 @@ export type GetAllLogDrainsFilterDeployment = {
751
594
  };
752
595
 
753
596
  export type GetAllLogDrainsFilterLogDrains1 = {
754
- type: GetAllLogDrainsFilterLogDrainsResponse200Type;
597
+ type: "basic";
755
598
  project?: GetAllLogDrainsFilterLogDrainsProject | undefined;
756
599
  log?: GetAllLogDrainsFilterLogDrainsLog | undefined;
757
600
  deployment?: GetAllLogDrainsFilterDeployment | undefined;
758
601
  };
759
602
 
760
603
  export type GetAllLogDrainsFilterV2Filter =
761
- | GetAllLogDrainsFilterLogDrains2
762
- | GetAllLogDrainsFilterLogDrains1;
604
+ | GetAllLogDrainsFilterLogDrains1
605
+ | GetAllLogDrainsFilterLogDrains2;
763
606
 
764
607
  export type GetAllLogDrainsFilterV2LogDrains2 = {
765
- version: GetAllLogDrainsFilterV2LogDrainsResponse200Version;
766
- filter: GetAllLogDrainsFilterLogDrains2 | GetAllLogDrainsFilterLogDrains1;
608
+ version: "v2";
609
+ filter: GetAllLogDrainsFilterLogDrains1 | GetAllLogDrainsFilterLogDrains2;
767
610
  };
768
611
 
769
- export const GetAllLogDrainsFilterV2LogDrainsResponseVersion = {
770
- V1: "v1",
771
- } as const;
772
- export type GetAllLogDrainsFilterV2LogDrainsResponseVersion = ClosedEnum<
773
- typeof GetAllLogDrainsFilterV2LogDrainsResponseVersion
774
- >;
775
-
776
612
  export type GetAllLogDrainsFilterV2LogDrains1 = {
777
- version: GetAllLogDrainsFilterV2LogDrainsResponseVersion;
613
+ version: "v1";
778
614
  };
779
615
 
780
616
  export type GetAllLogDrainsDrainsFilterV2 =
781
- | GetAllLogDrainsFilterV2LogDrains2
782
- | GetAllLogDrainsFilterV2LogDrains1;
617
+ | GetAllLogDrainsFilterV2LogDrains1
618
+ | GetAllLogDrainsFilterV2LogDrains2;
783
619
 
784
620
  export type GetAllLogDrainsDrains1 = {
785
621
  id: string;
@@ -802,11 +638,11 @@ export type GetAllLogDrainsDrains1 = {
802
638
  disabledReason?: GetAllLogDrainsDrainsDisabledReason | undefined;
803
639
  disabledBy?: string | undefined;
804
640
  firstErrorTimestamp?: number | undefined;
805
- source: GetAllLogDrainsSourceLogDrains2 | GetAllLogDrainsSourceLogDrains1;
641
+ source: GetAllLogDrainsSourceLogDrains1 | GetAllLogDrainsSourceLogDrains2;
806
642
  filter?: string | undefined;
807
643
  filterV2?:
808
- | GetAllLogDrainsFilterV2LogDrains2
809
644
  | GetAllLogDrainsFilterV2LogDrains1
645
+ | GetAllLogDrainsFilterV2LogDrains2
810
646
  | undefined;
811
647
  };
812
648
 
@@ -1209,20 +1045,6 @@ export function getAllLogDrainsDrainsLogDrainsSchemasFromJSON(
1209
1045
  );
1210
1046
  }
1211
1047
 
1212
- /** @internal */
1213
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$inboundSchema:
1214
- z.ZodNativeEnum<
1215
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type
1216
- > = z.nativeEnum(
1217
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type,
1218
- );
1219
- /** @internal */
1220
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$outboundSchema:
1221
- z.ZodNativeEnum<
1222
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type
1223
- > =
1224
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$inboundSchema;
1225
-
1226
1048
  /** @internal */
1227
1049
  export const GetAllLogDrainsDeliveryTarget$inboundSchema: z.ZodNativeEnum<
1228
1050
  typeof GetAllLogDrainsDeliveryTarget
@@ -1238,13 +1060,12 @@ export const GetAllLogDrainsDelivery4$inboundSchema: z.ZodType<
1238
1060
  z.ZodTypeDef,
1239
1061
  unknown
1240
1062
  > = z.object({
1241
- type:
1242
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$inboundSchema,
1063
+ type: z.literal("internal"),
1243
1064
  target: GetAllLogDrainsDeliveryTarget$inboundSchema,
1244
1065
  });
1245
1066
  /** @internal */
1246
1067
  export type GetAllLogDrainsDelivery4$Outbound = {
1247
- type: string;
1068
+ type: "internal";
1248
1069
  target: string;
1249
1070
  };
1250
1071
 
@@ -1254,8 +1075,7 @@ export const GetAllLogDrainsDelivery4$outboundSchema: z.ZodType<
1254
1075
  z.ZodTypeDef,
1255
1076
  GetAllLogDrainsDelivery4
1256
1077
  > = z.object({
1257
- type:
1258
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$outboundSchema,
1078
+ type: z.literal("internal"),
1259
1079
  target: GetAllLogDrainsDeliveryTarget$outboundSchema,
1260
1080
  });
1261
1081
 
@@ -1276,34 +1096,19 @@ export function getAllLogDrainsDelivery4FromJSON(
1276
1096
  );
1277
1097
  }
1278
1098
 
1279
- /** @internal */
1280
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1281
- z.ZodNativeEnum<
1282
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType
1283
- > = z.nativeEnum(
1284
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType,
1285
- );
1286
- /** @internal */
1287
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema:
1288
- z.ZodNativeEnum<
1289
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType
1290
- > =
1291
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1292
-
1293
1099
  /** @internal */
1294
1100
  export const GetAllLogDrainsDelivery3$inboundSchema: z.ZodType<
1295
1101
  GetAllLogDrainsDelivery3,
1296
1102
  z.ZodTypeDef,
1297
1103
  unknown
1298
1104
  > = z.object({
1299
- type:
1300
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1105
+ type: z.literal("clickhouse"),
1301
1106
  endpoint: z.string(),
1302
1107
  table: z.string(),
1303
1108
  });
1304
1109
  /** @internal */
1305
1110
  export type GetAllLogDrainsDelivery3$Outbound = {
1306
- type: string;
1111
+ type: "clickhouse";
1307
1112
  endpoint: string;
1308
1113
  table: string;
1309
1114
  };
@@ -1314,8 +1119,7 @@ export const GetAllLogDrainsDelivery3$outboundSchema: z.ZodType<
1314
1119
  z.ZodTypeDef,
1315
1120
  GetAllLogDrainsDelivery3
1316
1121
  > = z.object({
1317
- type:
1318
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1122
+ type: z.literal("clickhouse"),
1319
1123
  endpoint: z.string(),
1320
1124
  table: z.string(),
1321
1125
  });
@@ -1337,20 +1141,6 @@ export function getAllLogDrainsDelivery3FromJSON(
1337
1141
  );
1338
1142
  }
1339
1143
 
1340
- /** @internal */
1341
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$inboundSchema:
1342
- z.ZodNativeEnum<
1343
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType
1344
- > = z.nativeEnum(
1345
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType,
1346
- );
1347
- /** @internal */
1348
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$outboundSchema:
1349
- z.ZodNativeEnum<
1350
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType
1351
- > =
1352
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$inboundSchema;
1353
-
1354
1144
  /** @internal */
1355
1145
  export const GetAllLogDrainsDeliveryLogDrainsEndpoint$inboundSchema: z.ZodType<
1356
1146
  GetAllLogDrainsDeliveryLogDrainsEndpoint,
@@ -1516,8 +1306,7 @@ export const GetAllLogDrainsDelivery2$inboundSchema: z.ZodType<
1516
1306
  z.ZodTypeDef,
1517
1307
  unknown
1518
1308
  > = z.object({
1519
- type:
1520
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$inboundSchema,
1309
+ type: z.literal("otlphttp"),
1521
1310
  endpoint: z.lazy(() =>
1522
1311
  GetAllLogDrainsDeliveryLogDrainsEndpoint$inboundSchema
1523
1312
  ),
@@ -1530,7 +1319,7 @@ export const GetAllLogDrainsDelivery2$inboundSchema: z.ZodType<
1530
1319
  });
1531
1320
  /** @internal */
1532
1321
  export type GetAllLogDrainsDelivery2$Outbound = {
1533
- type: string;
1322
+ type: "otlphttp";
1534
1323
  endpoint: GetAllLogDrainsDeliveryLogDrainsEndpoint$Outbound;
1535
1324
  encoding: string;
1536
1325
  headers: { [k: string]: string };
@@ -1546,8 +1335,7 @@ export const GetAllLogDrainsDelivery2$outboundSchema: z.ZodType<
1546
1335
  z.ZodTypeDef,
1547
1336
  GetAllLogDrainsDelivery2
1548
1337
  > = z.object({
1549
- type:
1550
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$outboundSchema,
1338
+ type: z.literal("otlphttp"),
1551
1339
  endpoint: z.lazy(() =>
1552
1340
  GetAllLogDrainsDeliveryLogDrainsEndpoint$outboundSchema
1553
1341
  ),
@@ -1576,15 +1364,6 @@ export function getAllLogDrainsDelivery2FromJSON(
1576
1364
  );
1577
1365
  }
1578
1366
 
1579
- /** @internal */
1580
- export const GetAllLogDrainsDeliveryLogDrainsResponse200Type$inboundSchema:
1581
- z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsResponse200Type> = z
1582
- .nativeEnum(GetAllLogDrainsDeliveryLogDrainsResponse200Type);
1583
- /** @internal */
1584
- export const GetAllLogDrainsDeliveryLogDrainsResponse200Type$outboundSchema:
1585
- z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsResponse200Type> =
1586
- GetAllLogDrainsDeliveryLogDrainsResponse200Type$inboundSchema;
1587
-
1588
1367
  /** @internal */
1589
1368
  export const GetAllLogDrainsDeliveryLogDrainsEncoding$inboundSchema:
1590
1369
  z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsEncoding> = z
@@ -1702,7 +1481,7 @@ export const GetAllLogDrainsDelivery1$inboundSchema: z.ZodType<
1702
1481
  z.ZodTypeDef,
1703
1482
  unknown
1704
1483
  > = z.object({
1705
- type: GetAllLogDrainsDeliveryLogDrainsResponse200Type$inboundSchema,
1484
+ type: z.literal("http"),
1706
1485
  endpoint: z.string(),
1707
1486
  encoding: GetAllLogDrainsDeliveryLogDrainsEncoding$inboundSchema,
1708
1487
  compression: GetAllLogDrainsDeliveryLogDrainsCompression$inboundSchema
@@ -1715,7 +1494,7 @@ export const GetAllLogDrainsDelivery1$inboundSchema: z.ZodType<
1715
1494
  });
1716
1495
  /** @internal */
1717
1496
  export type GetAllLogDrainsDelivery1$Outbound = {
1718
- type: string;
1497
+ type: "http";
1719
1498
  endpoint: string;
1720
1499
  encoding: string;
1721
1500
  compression?: string | undefined;
@@ -1729,7 +1508,7 @@ export const GetAllLogDrainsDelivery1$outboundSchema: z.ZodType<
1729
1508
  z.ZodTypeDef,
1730
1509
  GetAllLogDrainsDelivery1
1731
1510
  > = z.object({
1732
- type: GetAllLogDrainsDeliveryLogDrainsResponse200Type$outboundSchema,
1511
+ type: z.literal("http"),
1733
1512
  endpoint: z.string(),
1734
1513
  encoding: GetAllLogDrainsDeliveryLogDrainsEncoding$outboundSchema,
1735
1514
  compression: GetAllLogDrainsDeliveryLogDrainsCompression$outboundSchema
@@ -1897,22 +1676,13 @@ export const GetAllLogDrainsDrainsLogDrainsDisabledReason$outboundSchema:
1897
1676
  z.ZodNativeEnum<typeof GetAllLogDrainsDrainsLogDrainsDisabledReason> =
1898
1677
  GetAllLogDrainsDrainsLogDrainsDisabledReason$inboundSchema;
1899
1678
 
1900
- /** @internal */
1901
- export const GetAllLogDrainsSourceLogDrainsKind$inboundSchema: z.ZodNativeEnum<
1902
- typeof GetAllLogDrainsSourceLogDrainsKind
1903
- > = z.nativeEnum(GetAllLogDrainsSourceLogDrainsKind);
1904
- /** @internal */
1905
- export const GetAllLogDrainsSourceLogDrainsKind$outboundSchema: z.ZodNativeEnum<
1906
- typeof GetAllLogDrainsSourceLogDrainsKind
1907
- > = GetAllLogDrainsSourceLogDrainsKind$inboundSchema;
1908
-
1909
1679
  /** @internal */
1910
1680
  export const GetAllLogDrainsSource2$inboundSchema: z.ZodType<
1911
1681
  GetAllLogDrainsSource2,
1912
1682
  z.ZodTypeDef,
1913
1683
  unknown
1914
1684
  > = z.object({
1915
- kind: GetAllLogDrainsSourceLogDrainsKind$inboundSchema,
1685
+ kind: z.literal("integration"),
1916
1686
  resourceId: z.string().optional(),
1917
1687
  externalResourceId: z.string().optional(),
1918
1688
  integrationId: z.string(),
@@ -1920,7 +1690,7 @@ export const GetAllLogDrainsSource2$inboundSchema: z.ZodType<
1920
1690
  });
1921
1691
  /** @internal */
1922
1692
  export type GetAllLogDrainsSource2$Outbound = {
1923
- kind: string;
1693
+ kind: "integration";
1924
1694
  resourceId?: string | undefined;
1925
1695
  externalResourceId?: string | undefined;
1926
1696
  integrationId: string;
@@ -1933,7 +1703,7 @@ export const GetAllLogDrainsSource2$outboundSchema: z.ZodType<
1933
1703
  z.ZodTypeDef,
1934
1704
  GetAllLogDrainsSource2
1935
1705
  > = z.object({
1936
- kind: GetAllLogDrainsSourceLogDrainsKind$outboundSchema,
1706
+ kind: z.literal("integration"),
1937
1707
  resourceId: z.string().optional(),
1938
1708
  externalResourceId: z.string().optional(),
1939
1709
  integrationId: z.string(),
@@ -1957,26 +1727,17 @@ export function getAllLogDrainsSource2FromJSON(
1957
1727
  );
1958
1728
  }
1959
1729
 
1960
- /** @internal */
1961
- export const GetAllLogDrainsSourceKind$inboundSchema: z.ZodNativeEnum<
1962
- typeof GetAllLogDrainsSourceKind
1963
- > = z.nativeEnum(GetAllLogDrainsSourceKind);
1964
- /** @internal */
1965
- export const GetAllLogDrainsSourceKind$outboundSchema: z.ZodNativeEnum<
1966
- typeof GetAllLogDrainsSourceKind
1967
- > = GetAllLogDrainsSourceKind$inboundSchema;
1968
-
1969
1730
  /** @internal */
1970
1731
  export const GetAllLogDrainsSource1$inboundSchema: z.ZodType<
1971
1732
  GetAllLogDrainsSource1,
1972
1733
  z.ZodTypeDef,
1973
1734
  unknown
1974
1735
  > = z.object({
1975
- kind: GetAllLogDrainsSourceKind$inboundSchema,
1736
+ kind: z.literal("self-served"),
1976
1737
  });
1977
1738
  /** @internal */
1978
1739
  export type GetAllLogDrainsSource1$Outbound = {
1979
- kind: string;
1740
+ kind: "self-served";
1980
1741
  };
1981
1742
 
1982
1743
  /** @internal */
@@ -1985,7 +1746,7 @@ export const GetAllLogDrainsSource1$outboundSchema: z.ZodType<
1985
1746
  z.ZodTypeDef,
1986
1747
  GetAllLogDrainsSource1
1987
1748
  > = z.object({
1988
- kind: GetAllLogDrainsSourceKind$outboundSchema,
1749
+ kind: z.literal("self-served"),
1989
1750
  });
1990
1751
 
1991
1752
  export function getAllLogDrainsSource1ToJSON(
@@ -2011,13 +1772,13 @@ export const GetAllLogDrainsDrainsSource$inboundSchema: z.ZodType<
2011
1772
  z.ZodTypeDef,
2012
1773
  unknown
2013
1774
  > = z.union([
2014
- z.lazy(() => GetAllLogDrainsSource2$inboundSchema),
2015
1775
  z.lazy(() => GetAllLogDrainsSource1$inboundSchema),
1776
+ z.lazy(() => GetAllLogDrainsSource2$inboundSchema),
2016
1777
  ]);
2017
1778
  /** @internal */
2018
1779
  export type GetAllLogDrainsDrainsSource$Outbound =
2019
- | GetAllLogDrainsSource2$Outbound
2020
- | GetAllLogDrainsSource1$Outbound;
1780
+ | GetAllLogDrainsSource1$Outbound
1781
+ | GetAllLogDrainsSource2$Outbound;
2021
1782
 
2022
1783
  /** @internal */
2023
1784
  export const GetAllLogDrainsDrainsSource$outboundSchema: z.ZodType<
@@ -2025,8 +1786,8 @@ export const GetAllLogDrainsDrainsSource$outboundSchema: z.ZodType<
2025
1786
  z.ZodTypeDef,
2026
1787
  GetAllLogDrainsDrainsSource
2027
1788
  > = z.union([
2028
- z.lazy(() => GetAllLogDrainsSource2$outboundSchema),
2029
1789
  z.lazy(() => GetAllLogDrainsSource1$outboundSchema),
1790
+ z.lazy(() => GetAllLogDrainsSource2$outboundSchema),
2030
1791
  ]);
2031
1792
 
2032
1793
  export function getAllLogDrainsDrainsSourceToJSON(
@@ -2048,36 +1809,18 @@ export function getAllLogDrainsDrainsSourceFromJSON(
2048
1809
  );
2049
1810
  }
2050
1811
 
2051
- /** @internal */
2052
- export const GetAllLogDrainsFilterV2LogDrainsVersion$inboundSchema:
2053
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterV2LogDrainsVersion> = z
2054
- .nativeEnum(GetAllLogDrainsFilterV2LogDrainsVersion);
2055
- /** @internal */
2056
- export const GetAllLogDrainsFilterV2LogDrainsVersion$outboundSchema:
2057
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterV2LogDrainsVersion> =
2058
- GetAllLogDrainsFilterV2LogDrainsVersion$inboundSchema;
2059
-
2060
- /** @internal */
2061
- export const GetAllLogDrainsFilterLogDrainsResponseType$inboundSchema:
2062
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterLogDrainsResponseType> = z
2063
- .nativeEnum(GetAllLogDrainsFilterLogDrainsResponseType);
2064
- /** @internal */
2065
- export const GetAllLogDrainsFilterLogDrainsResponseType$outboundSchema:
2066
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterLogDrainsResponseType> =
2067
- GetAllLogDrainsFilterLogDrainsResponseType$inboundSchema;
2068
-
2069
1812
  /** @internal */
2070
1813
  export const GetAllLogDrainsFilter2$inboundSchema: z.ZodType<
2071
1814
  GetAllLogDrainsFilter2,
2072
1815
  z.ZodTypeDef,
2073
1816
  unknown
2074
1817
  > = z.object({
2075
- type: GetAllLogDrainsFilterLogDrainsResponseType$inboundSchema,
1818
+ type: z.literal("odata"),
2076
1819
  text: z.string(),
2077
1820
  });
2078
1821
  /** @internal */
2079
1822
  export type GetAllLogDrainsFilter2$Outbound = {
2080
- type: string;
1823
+ type: "odata";
2081
1824
  text: string;
2082
1825
  };
2083
1826
 
@@ -2087,7 +1830,7 @@ export const GetAllLogDrainsFilter2$outboundSchema: z.ZodType<
2087
1830
  z.ZodTypeDef,
2088
1831
  GetAllLogDrainsFilter2
2089
1832
  > = z.object({
2090
- type: GetAllLogDrainsFilterLogDrainsResponseType$outboundSchema,
1833
+ type: z.literal("odata"),
2091
1834
  text: z.string(),
2092
1835
  });
2093
1836
 
@@ -2108,15 +1851,6 @@ export function getAllLogDrainsFilter2FromJSON(
2108
1851
  );
2109
1852
  }
2110
1853
 
2111
- /** @internal */
2112
- export const GetAllLogDrainsFilterLogDrainsType$inboundSchema: z.ZodNativeEnum<
2113
- typeof GetAllLogDrainsFilterLogDrainsType
2114
- > = z.nativeEnum(GetAllLogDrainsFilterLogDrainsType);
2115
- /** @internal */
2116
- export const GetAllLogDrainsFilterLogDrainsType$outboundSchema: z.ZodNativeEnum<
2117
- typeof GetAllLogDrainsFilterLogDrainsType
2118
- > = GetAllLogDrainsFilterLogDrainsType$inboundSchema;
2119
-
2120
1854
  /** @internal */
2121
1855
  export const GetAllLogDrainsFilterProject$inboundSchema: z.ZodType<
2122
1856
  GetAllLogDrainsFilterProject,
@@ -2287,7 +2021,7 @@ export const GetAllLogDrainsFilter1$inboundSchema: z.ZodType<
2287
2021
  z.ZodTypeDef,
2288
2022
  unknown
2289
2023
  > = z.object({
2290
- type: GetAllLogDrainsFilterLogDrainsType$inboundSchema,
2024
+ type: z.literal("basic"),
2291
2025
  project: z.lazy(() => GetAllLogDrainsFilterProject$inboundSchema).optional(),
2292
2026
  log: z.lazy(() => GetAllLogDrainsFilterLog$inboundSchema).optional(),
2293
2027
  deployment: z.lazy(() =>
@@ -2296,7 +2030,7 @@ export const GetAllLogDrainsFilter1$inboundSchema: z.ZodType<
2296
2030
  });
2297
2031
  /** @internal */
2298
2032
  export type GetAllLogDrainsFilter1$Outbound = {
2299
- type: string;
2033
+ type: "basic";
2300
2034
  project?: GetAllLogDrainsFilterProject$Outbound | undefined;
2301
2035
  log?: GetAllLogDrainsFilterLog$Outbound | undefined;
2302
2036
  deployment?: GetAllLogDrainsFilterLogDrainsDeployment$Outbound | undefined;
@@ -2308,7 +2042,7 @@ export const GetAllLogDrainsFilter1$outboundSchema: z.ZodType<
2308
2042
  z.ZodTypeDef,
2309
2043
  GetAllLogDrainsFilter1
2310
2044
  > = z.object({
2311
- type: GetAllLogDrainsFilterLogDrainsType$outboundSchema,
2045
+ type: z.literal("basic"),
2312
2046
  project: z.lazy(() => GetAllLogDrainsFilterProject$outboundSchema).optional(),
2313
2047
  log: z.lazy(() => GetAllLogDrainsFilterLog$outboundSchema).optional(),
2314
2048
  deployment: z.lazy(() =>
@@ -2339,13 +2073,13 @@ export const GetAllLogDrainsFilterV2LogDrainsFilter$inboundSchema: z.ZodType<
2339
2073
  z.ZodTypeDef,
2340
2074
  unknown
2341
2075
  > = z.union([
2342
- z.lazy(() => GetAllLogDrainsFilter2$inboundSchema),
2343
2076
  z.lazy(() => GetAllLogDrainsFilter1$inboundSchema),
2077
+ z.lazy(() => GetAllLogDrainsFilter2$inboundSchema),
2344
2078
  ]);
2345
2079
  /** @internal */
2346
2080
  export type GetAllLogDrainsFilterV2LogDrainsFilter$Outbound =
2347
- | GetAllLogDrainsFilter2$Outbound
2348
- | GetAllLogDrainsFilter1$Outbound;
2081
+ | GetAllLogDrainsFilter1$Outbound
2082
+ | GetAllLogDrainsFilter2$Outbound;
2349
2083
 
2350
2084
  /** @internal */
2351
2085
  export const GetAllLogDrainsFilterV2LogDrainsFilter$outboundSchema: z.ZodType<
@@ -2353,8 +2087,8 @@ export const GetAllLogDrainsFilterV2LogDrainsFilter$outboundSchema: z.ZodType<
2353
2087
  z.ZodTypeDef,
2354
2088
  GetAllLogDrainsFilterV2LogDrainsFilter
2355
2089
  > = z.union([
2356
- z.lazy(() => GetAllLogDrainsFilter2$outboundSchema),
2357
2090
  z.lazy(() => GetAllLogDrainsFilter1$outboundSchema),
2091
+ z.lazy(() => GetAllLogDrainsFilter2$outboundSchema),
2358
2092
  ]);
2359
2093
 
2360
2094
  export function getAllLogDrainsFilterV2LogDrainsFilterToJSON(
@@ -2384,16 +2118,16 @@ export const GetAllLogDrainsFilterV22$inboundSchema: z.ZodType<
2384
2118
  z.ZodTypeDef,
2385
2119
  unknown
2386
2120
  > = z.object({
2387
- version: GetAllLogDrainsFilterV2LogDrainsVersion$inboundSchema,
2121
+ version: z.literal("v2"),
2388
2122
  filter: z.union([
2389
- z.lazy(() => GetAllLogDrainsFilter2$inboundSchema),
2390
2123
  z.lazy(() => GetAllLogDrainsFilter1$inboundSchema),
2124
+ z.lazy(() => GetAllLogDrainsFilter2$inboundSchema),
2391
2125
  ]),
2392
2126
  });
2393
2127
  /** @internal */
2394
2128
  export type GetAllLogDrainsFilterV22$Outbound = {
2395
- version: string;
2396
- filter: GetAllLogDrainsFilter2$Outbound | GetAllLogDrainsFilter1$Outbound;
2129
+ version: "v2";
2130
+ filter: GetAllLogDrainsFilter1$Outbound | GetAllLogDrainsFilter2$Outbound;
2397
2131
  };
2398
2132
 
2399
2133
  /** @internal */
@@ -2402,10 +2136,10 @@ export const GetAllLogDrainsFilterV22$outboundSchema: z.ZodType<
2402
2136
  z.ZodTypeDef,
2403
2137
  GetAllLogDrainsFilterV22
2404
2138
  > = z.object({
2405
- version: GetAllLogDrainsFilterV2LogDrainsVersion$outboundSchema,
2139
+ version: z.literal("v2"),
2406
2140
  filter: z.union([
2407
- z.lazy(() => GetAllLogDrainsFilter2$outboundSchema),
2408
2141
  z.lazy(() => GetAllLogDrainsFilter1$outboundSchema),
2142
+ z.lazy(() => GetAllLogDrainsFilter2$outboundSchema),
2409
2143
  ]),
2410
2144
  });
2411
2145
 
@@ -2426,26 +2160,17 @@ export function getAllLogDrainsFilterV22FromJSON(
2426
2160
  );
2427
2161
  }
2428
2162
 
2429
- /** @internal */
2430
- export const GetAllLogDrainsFilterV2Version$inboundSchema: z.ZodNativeEnum<
2431
- typeof GetAllLogDrainsFilterV2Version
2432
- > = z.nativeEnum(GetAllLogDrainsFilterV2Version);
2433
- /** @internal */
2434
- export const GetAllLogDrainsFilterV2Version$outboundSchema: z.ZodNativeEnum<
2435
- typeof GetAllLogDrainsFilterV2Version
2436
- > = GetAllLogDrainsFilterV2Version$inboundSchema;
2437
-
2438
2163
  /** @internal */
2439
2164
  export const GetAllLogDrainsFilterV21$inboundSchema: z.ZodType<
2440
2165
  GetAllLogDrainsFilterV21,
2441
2166
  z.ZodTypeDef,
2442
2167
  unknown
2443
2168
  > = z.object({
2444
- version: GetAllLogDrainsFilterV2Version$inboundSchema,
2169
+ version: z.literal("v1"),
2445
2170
  });
2446
2171
  /** @internal */
2447
2172
  export type GetAllLogDrainsFilterV21$Outbound = {
2448
- version: string;
2173
+ version: "v1";
2449
2174
  };
2450
2175
 
2451
2176
  /** @internal */
@@ -2454,7 +2179,7 @@ export const GetAllLogDrainsFilterV21$outboundSchema: z.ZodType<
2454
2179
  z.ZodTypeDef,
2455
2180
  GetAllLogDrainsFilterV21
2456
2181
  > = z.object({
2457
- version: GetAllLogDrainsFilterV2Version$outboundSchema,
2182
+ version: z.literal("v1"),
2458
2183
  });
2459
2184
 
2460
2185
  export function getAllLogDrainsFilterV21ToJSON(
@@ -2480,13 +2205,13 @@ export const GetAllLogDrainsDrainsLogDrainsFilterV2$inboundSchema: z.ZodType<
2480
2205
  z.ZodTypeDef,
2481
2206
  unknown
2482
2207
  > = z.union([
2483
- z.lazy(() => GetAllLogDrainsFilterV22$inboundSchema),
2484
2208
  z.lazy(() => GetAllLogDrainsFilterV21$inboundSchema),
2209
+ z.lazy(() => GetAllLogDrainsFilterV22$inboundSchema),
2485
2210
  ]);
2486
2211
  /** @internal */
2487
2212
  export type GetAllLogDrainsDrainsLogDrainsFilterV2$Outbound =
2488
- | GetAllLogDrainsFilterV22$Outbound
2489
- | GetAllLogDrainsFilterV21$Outbound;
2213
+ | GetAllLogDrainsFilterV21$Outbound
2214
+ | GetAllLogDrainsFilterV22$Outbound;
2490
2215
 
2491
2216
  /** @internal */
2492
2217
  export const GetAllLogDrainsDrainsLogDrainsFilterV2$outboundSchema: z.ZodType<
@@ -2494,8 +2219,8 @@ export const GetAllLogDrainsDrainsLogDrainsFilterV2$outboundSchema: z.ZodType<
2494
2219
  z.ZodTypeDef,
2495
2220
  GetAllLogDrainsDrainsLogDrainsFilterV2
2496
2221
  > = z.union([
2497
- z.lazy(() => GetAllLogDrainsFilterV22$outboundSchema),
2498
2222
  z.lazy(() => GetAllLogDrainsFilterV21$outboundSchema),
2223
+ z.lazy(() => GetAllLogDrainsFilterV22$outboundSchema),
2499
2224
  ]);
2500
2225
 
2501
2226
  export function getAllLogDrainsDrainsLogDrainsFilterV2ToJSON(
@@ -2519,27 +2244,18 @@ export function getAllLogDrainsDrainsLogDrainsFilterV2FromJSON(
2519
2244
  );
2520
2245
  }
2521
2246
 
2522
- /** @internal */
2523
- export const GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema:
2524
- z.ZodNativeEnum<typeof GetAllLogDrainsProjectAccessLogDrainsAccess> = z
2525
- .nativeEnum(GetAllLogDrainsProjectAccessLogDrainsAccess);
2526
- /** @internal */
2527
- export const GetAllLogDrainsProjectAccessLogDrainsAccess$outboundSchema:
2528
- z.ZodNativeEnum<typeof GetAllLogDrainsProjectAccessLogDrainsAccess> =
2529
- GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema;
2530
-
2531
2247
  /** @internal */
2532
2248
  export const GetAllLogDrainsProjectAccess2$inboundSchema: z.ZodType<
2533
2249
  GetAllLogDrainsProjectAccess2,
2534
2250
  z.ZodTypeDef,
2535
2251
  unknown
2536
2252
  > = z.object({
2537
- access: GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema,
2253
+ access: z.literal("some"),
2538
2254
  projectIds: z.array(z.string()),
2539
2255
  });
2540
2256
  /** @internal */
2541
2257
  export type GetAllLogDrainsProjectAccess2$Outbound = {
2542
- access: string;
2258
+ access: "some";
2543
2259
  projectIds: Array<string>;
2544
2260
  };
2545
2261
 
@@ -2549,7 +2265,7 @@ export const GetAllLogDrainsProjectAccess2$outboundSchema: z.ZodType<
2549
2265
  z.ZodTypeDef,
2550
2266
  GetAllLogDrainsProjectAccess2
2551
2267
  > = z.object({
2552
- access: GetAllLogDrainsProjectAccessLogDrainsAccess$outboundSchema,
2268
+ access: z.literal("some"),
2553
2269
  projectIds: z.array(z.string()),
2554
2270
  });
2555
2271
 
@@ -2572,26 +2288,17 @@ export function getAllLogDrainsProjectAccess2FromJSON(
2572
2288
  );
2573
2289
  }
2574
2290
 
2575
- /** @internal */
2576
- export const GetAllLogDrainsProjectAccessAccess$inboundSchema: z.ZodNativeEnum<
2577
- typeof GetAllLogDrainsProjectAccessAccess
2578
- > = z.nativeEnum(GetAllLogDrainsProjectAccessAccess);
2579
- /** @internal */
2580
- export const GetAllLogDrainsProjectAccessAccess$outboundSchema: z.ZodNativeEnum<
2581
- typeof GetAllLogDrainsProjectAccessAccess
2582
- > = GetAllLogDrainsProjectAccessAccess$inboundSchema;
2583
-
2584
2291
  /** @internal */
2585
2292
  export const GetAllLogDrainsProjectAccess1$inboundSchema: z.ZodType<
2586
2293
  GetAllLogDrainsProjectAccess1,
2587
2294
  z.ZodTypeDef,
2588
2295
  unknown
2589
2296
  > = z.object({
2590
- access: GetAllLogDrainsProjectAccessAccess$inboundSchema,
2297
+ access: z.literal("all"),
2591
2298
  });
2592
2299
  /** @internal */
2593
2300
  export type GetAllLogDrainsProjectAccess1$Outbound = {
2594
- access: string;
2301
+ access: "all";
2595
2302
  };
2596
2303
 
2597
2304
  /** @internal */
@@ -2600,7 +2307,7 @@ export const GetAllLogDrainsProjectAccess1$outboundSchema: z.ZodType<
2600
2307
  z.ZodTypeDef,
2601
2308
  GetAllLogDrainsProjectAccess1
2602
2309
  > = z.object({
2603
- access: GetAllLogDrainsProjectAccessAccess$outboundSchema,
2310
+ access: z.literal("all"),
2604
2311
  });
2605
2312
 
2606
2313
  export function getAllLogDrainsProjectAccess1ToJSON(
@@ -2628,13 +2335,13 @@ export const GetAllLogDrainsDrainsProjectAccess$inboundSchema: z.ZodType<
2628
2335
  z.ZodTypeDef,
2629
2336
  unknown
2630
2337
  > = z.union([
2631
- z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema),
2632
2338
  z.lazy(() => GetAllLogDrainsProjectAccess1$inboundSchema),
2339
+ z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema),
2633
2340
  ]);
2634
2341
  /** @internal */
2635
2342
  export type GetAllLogDrainsDrainsProjectAccess$Outbound =
2636
- | GetAllLogDrainsProjectAccess2$Outbound
2637
- | GetAllLogDrainsProjectAccess1$Outbound;
2343
+ | GetAllLogDrainsProjectAccess1$Outbound
2344
+ | GetAllLogDrainsProjectAccess2$Outbound;
2638
2345
 
2639
2346
  /** @internal */
2640
2347
  export const GetAllLogDrainsDrainsProjectAccess$outboundSchema: z.ZodType<
@@ -2642,8 +2349,8 @@ export const GetAllLogDrainsDrainsProjectAccess$outboundSchema: z.ZodType<
2642
2349
  z.ZodTypeDef,
2643
2350
  GetAllLogDrainsDrainsProjectAccess
2644
2351
  > = z.union([
2645
- z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema),
2646
2352
  z.lazy(() => GetAllLogDrainsProjectAccess1$outboundSchema),
2353
+ z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema),
2647
2354
  ]);
2648
2355
 
2649
2356
  export function getAllLogDrainsDrainsProjectAccessToJSON(
@@ -2697,20 +2404,20 @@ export const GetAllLogDrainsDrains2$inboundSchema: z.ZodType<
2697
2404
  disabledBy: z.string().optional(),
2698
2405
  firstErrorTimestamp: z.number().optional(),
2699
2406
  source: z.union([
2700
- z.lazy(() => GetAllLogDrainsSource2$inboundSchema),
2701
2407
  z.lazy(() => GetAllLogDrainsSource1$inboundSchema),
2408
+ z.lazy(() => GetAllLogDrainsSource2$inboundSchema),
2702
2409
  ]),
2703
2410
  filter: z.string().optional(),
2704
2411
  filterV2: z.union([
2705
- z.lazy(() => GetAllLogDrainsFilterV22$inboundSchema),
2706
2412
  z.lazy(() => GetAllLogDrainsFilterV21$inboundSchema),
2413
+ z.lazy(() => GetAllLogDrainsFilterV22$inboundSchema),
2707
2414
  ]).optional(),
2708
2415
  integrationIcon: z.string().optional(),
2709
2416
  integrationConfigurationUri: z.string().optional(),
2710
2417
  integrationWebsite: z.string().optional(),
2711
2418
  projectAccess: z.union([
2712
- z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema),
2713
2419
  z.lazy(() => GetAllLogDrainsProjectAccess1$inboundSchema),
2420
+ z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema),
2714
2421
  ]).optional(),
2715
2422
  });
2716
2423
  /** @internal */
@@ -2735,18 +2442,18 @@ export type GetAllLogDrainsDrains2$Outbound = {
2735
2442
  disabledReason?: string | undefined;
2736
2443
  disabledBy?: string | undefined;
2737
2444
  firstErrorTimestamp?: number | undefined;
2738
- source: GetAllLogDrainsSource2$Outbound | GetAllLogDrainsSource1$Outbound;
2445
+ source: GetAllLogDrainsSource1$Outbound | GetAllLogDrainsSource2$Outbound;
2739
2446
  filter?: string | undefined;
2740
2447
  filterV2?:
2741
- | GetAllLogDrainsFilterV22$Outbound
2742
2448
  | GetAllLogDrainsFilterV21$Outbound
2449
+ | GetAllLogDrainsFilterV22$Outbound
2743
2450
  | undefined;
2744
2451
  integrationIcon?: string | undefined;
2745
2452
  integrationConfigurationUri?: string | undefined;
2746
2453
  integrationWebsite?: string | undefined;
2747
2454
  projectAccess?:
2748
- | GetAllLogDrainsProjectAccess2$Outbound
2749
2455
  | GetAllLogDrainsProjectAccess1$Outbound
2456
+ | GetAllLogDrainsProjectAccess2$Outbound
2750
2457
  | undefined;
2751
2458
  };
2752
2459
 
@@ -2781,20 +2488,20 @@ export const GetAllLogDrainsDrains2$outboundSchema: z.ZodType<
2781
2488
  disabledBy: z.string().optional(),
2782
2489
  firstErrorTimestamp: z.number().optional(),
2783
2490
  source: z.union([
2784
- z.lazy(() => GetAllLogDrainsSource2$outboundSchema),
2785
2491
  z.lazy(() => GetAllLogDrainsSource1$outboundSchema),
2492
+ z.lazy(() => GetAllLogDrainsSource2$outboundSchema),
2786
2493
  ]),
2787
2494
  filter: z.string().optional(),
2788
2495
  filterV2: z.union([
2789
- z.lazy(() => GetAllLogDrainsFilterV22$outboundSchema),
2790
2496
  z.lazy(() => GetAllLogDrainsFilterV21$outboundSchema),
2497
+ z.lazy(() => GetAllLogDrainsFilterV22$outboundSchema),
2791
2498
  ]).optional(),
2792
2499
  integrationIcon: z.string().optional(),
2793
2500
  integrationConfigurationUri: z.string().optional(),
2794
2501
  integrationWebsite: z.string().optional(),
2795
2502
  projectAccess: z.union([
2796
- z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema),
2797
2503
  z.lazy(() => GetAllLogDrainsProjectAccess1$outboundSchema),
2504
+ z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema),
2798
2505
  ]).optional(),
2799
2506
  });
2800
2507
 
@@ -3034,15 +2741,6 @@ export function getAllLogDrainsDrainsSchemasFromJSON(
3034
2741
  );
3035
2742
  }
3036
2743
 
3037
- /** @internal */
3038
- export const GetAllLogDrainsDeliveryLogDrainsResponseType$inboundSchema:
3039
- z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsResponseType> = z
3040
- .nativeEnum(GetAllLogDrainsDeliveryLogDrainsResponseType);
3041
- /** @internal */
3042
- export const GetAllLogDrainsDeliveryLogDrainsResponseType$outboundSchema:
3043
- z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsResponseType> =
3044
- GetAllLogDrainsDeliveryLogDrainsResponseType$inboundSchema;
3045
-
3046
2744
  /** @internal */
3047
2745
  export const GetAllLogDrainsDeliveryLogDrainsTarget$inboundSchema:
3048
2746
  z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsTarget> = z.nativeEnum(
@@ -3059,12 +2757,12 @@ export const GetAllLogDrainsDeliveryLogDrains4$inboundSchema: z.ZodType<
3059
2757
  z.ZodTypeDef,
3060
2758
  unknown
3061
2759
  > = z.object({
3062
- type: GetAllLogDrainsDeliveryLogDrainsResponseType$inboundSchema,
2760
+ type: z.literal("internal"),
3063
2761
  target: GetAllLogDrainsDeliveryLogDrainsTarget$inboundSchema,
3064
2762
  });
3065
2763
  /** @internal */
3066
2764
  export type GetAllLogDrainsDeliveryLogDrains4$Outbound = {
3067
- type: string;
2765
+ type: "internal";
3068
2766
  target: string;
3069
2767
  };
3070
2768
 
@@ -3074,7 +2772,7 @@ export const GetAllLogDrainsDeliveryLogDrains4$outboundSchema: z.ZodType<
3074
2772
  z.ZodTypeDef,
3075
2773
  GetAllLogDrainsDeliveryLogDrains4
3076
2774
  > = z.object({
3077
- type: GetAllLogDrainsDeliveryLogDrainsResponseType$outboundSchema,
2775
+ type: z.literal("internal"),
3078
2776
  target: GetAllLogDrainsDeliveryLogDrainsTarget$outboundSchema,
3079
2777
  });
3080
2778
 
@@ -3097,29 +2795,19 @@ export function getAllLogDrainsDeliveryLogDrains4FromJSON(
3097
2795
  );
3098
2796
  }
3099
2797
 
3100
- /** @internal */
3101
- export const GetAllLogDrainsDeliveryLogDrainsType$inboundSchema:
3102
- z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsType> = z.nativeEnum(
3103
- GetAllLogDrainsDeliveryLogDrainsType,
3104
- );
3105
- /** @internal */
3106
- export const GetAllLogDrainsDeliveryLogDrainsType$outboundSchema:
3107
- z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsType> =
3108
- GetAllLogDrainsDeliveryLogDrainsType$inboundSchema;
3109
-
3110
2798
  /** @internal */
3111
2799
  export const GetAllLogDrainsDeliveryLogDrains3$inboundSchema: z.ZodType<
3112
2800
  GetAllLogDrainsDeliveryLogDrains3,
3113
2801
  z.ZodTypeDef,
3114
2802
  unknown
3115
2803
  > = z.object({
3116
- type: GetAllLogDrainsDeliveryLogDrainsType$inboundSchema,
2804
+ type: z.literal("clickhouse"),
3117
2805
  endpoint: z.string(),
3118
2806
  table: z.string(),
3119
2807
  });
3120
2808
  /** @internal */
3121
2809
  export type GetAllLogDrainsDeliveryLogDrains3$Outbound = {
3122
- type: string;
2810
+ type: "clickhouse";
3123
2811
  endpoint: string;
3124
2812
  table: string;
3125
2813
  };
@@ -3130,7 +2818,7 @@ export const GetAllLogDrainsDeliveryLogDrains3$outboundSchema: z.ZodType<
3130
2818
  z.ZodTypeDef,
3131
2819
  GetAllLogDrainsDeliveryLogDrains3
3132
2820
  > = z.object({
3133
- type: GetAllLogDrainsDeliveryLogDrainsType$outboundSchema,
2821
+ type: z.literal("clickhouse"),
3134
2822
  endpoint: z.string(),
3135
2823
  table: z.string(),
3136
2824
  });
@@ -3154,15 +2842,6 @@ export function getAllLogDrainsDeliveryLogDrains3FromJSON(
3154
2842
  );
3155
2843
  }
3156
2844
 
3157
- /** @internal */
3158
- export const GetAllLogDrainsDeliveryType$inboundSchema: z.ZodNativeEnum<
3159
- typeof GetAllLogDrainsDeliveryType
3160
- > = z.nativeEnum(GetAllLogDrainsDeliveryType);
3161
- /** @internal */
3162
- export const GetAllLogDrainsDeliveryType$outboundSchema: z.ZodNativeEnum<
3163
- typeof GetAllLogDrainsDeliveryType
3164
- > = GetAllLogDrainsDeliveryType$inboundSchema;
3165
-
3166
2845
  /** @internal */
3167
2846
  export const GetAllLogDrainsDeliveryEndpoint$inboundSchema: z.ZodType<
3168
2847
  GetAllLogDrainsDeliveryEndpoint,
@@ -3316,7 +2995,7 @@ export const GetAllLogDrainsDeliveryLogDrains2$inboundSchema: z.ZodType<
3316
2995
  z.ZodTypeDef,
3317
2996
  unknown
3318
2997
  > = z.object({
3319
- type: GetAllLogDrainsDeliveryType$inboundSchema,
2998
+ type: z.literal("otlphttp"),
3320
2999
  endpoint: z.lazy(() => GetAllLogDrainsDeliveryEndpoint$inboundSchema),
3321
3000
  encoding: GetAllLogDrainsDeliveryEncoding$inboundSchema,
3322
3001
  headers: z.record(z.string()),
@@ -3327,7 +3006,7 @@ export const GetAllLogDrainsDeliveryLogDrains2$inboundSchema: z.ZodType<
3327
3006
  });
3328
3007
  /** @internal */
3329
3008
  export type GetAllLogDrainsDeliveryLogDrains2$Outbound = {
3330
- type: string;
3009
+ type: "otlphttp";
3331
3010
  endpoint: GetAllLogDrainsDeliveryEndpoint$Outbound;
3332
3011
  encoding: string;
3333
3012
  headers: { [k: string]: string };
@@ -3340,7 +3019,7 @@ export const GetAllLogDrainsDeliveryLogDrains2$outboundSchema: z.ZodType<
3340
3019
  z.ZodTypeDef,
3341
3020
  GetAllLogDrainsDeliveryLogDrains2
3342
3021
  > = z.object({
3343
- type: GetAllLogDrainsDeliveryType$outboundSchema,
3022
+ type: z.literal("otlphttp"),
3344
3023
  endpoint: z.lazy(() => GetAllLogDrainsDeliveryEndpoint$outboundSchema),
3345
3024
  encoding: GetAllLogDrainsDeliveryEncoding$outboundSchema,
3346
3025
  headers: z.record(z.string()),
@@ -3369,20 +3048,6 @@ export function getAllLogDrainsDeliveryLogDrains2FromJSON(
3369
3048
  );
3370
3049
  }
3371
3050
 
3372
- /** @internal */
3373
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$inboundSchema:
3374
- z.ZodNativeEnum<
3375
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType
3376
- > = z.nativeEnum(
3377
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType,
3378
- );
3379
- /** @internal */
3380
- export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$outboundSchema:
3381
- z.ZodNativeEnum<
3382
- typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType
3383
- > =
3384
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$inboundSchema;
3385
-
3386
3051
  /** @internal */
3387
3052
  export const GetAllLogDrainsDeliveryLogDrainsResponse200Encoding$inboundSchema:
3388
3053
  z.ZodNativeEnum<typeof GetAllLogDrainsDeliveryLogDrainsResponse200Encoding> =
@@ -3515,8 +3180,7 @@ export const GetAllLogDrainsDeliveryLogDrains1$inboundSchema: z.ZodType<
3515
3180
  z.ZodTypeDef,
3516
3181
  unknown
3517
3182
  > = z.object({
3518
- type:
3519
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$inboundSchema,
3183
+ type: z.literal("http"),
3520
3184
  endpoint: z.string(),
3521
3185
  encoding: GetAllLogDrainsDeliveryLogDrainsResponse200Encoding$inboundSchema,
3522
3186
  compression: GetAllLogDrainsDeliveryCompression$inboundSchema.optional(),
@@ -3528,7 +3192,7 @@ export const GetAllLogDrainsDeliveryLogDrains1$inboundSchema: z.ZodType<
3528
3192
  });
3529
3193
  /** @internal */
3530
3194
  export type GetAllLogDrainsDeliveryLogDrains1$Outbound = {
3531
- type: string;
3195
+ type: "http";
3532
3196
  endpoint: string;
3533
3197
  encoding: string;
3534
3198
  compression?: string | undefined;
@@ -3545,8 +3209,7 @@ export const GetAllLogDrainsDeliveryLogDrains1$outboundSchema: z.ZodType<
3545
3209
  z.ZodTypeDef,
3546
3210
  GetAllLogDrainsDeliveryLogDrains1
3547
3211
  > = z.object({
3548
- type:
3549
- GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$outboundSchema,
3212
+ type: z.literal("http"),
3550
3213
  endpoint: z.string(),
3551
3214
  encoding: GetAllLogDrainsDeliveryLogDrainsResponse200Encoding$outboundSchema,
3552
3215
  compression: GetAllLogDrainsDeliveryCompression$outboundSchema.optional(),
@@ -3712,22 +3375,13 @@ export const GetAllLogDrainsDrainsDisabledReason$outboundSchema:
3712
3375
  z.ZodNativeEnum<typeof GetAllLogDrainsDrainsDisabledReason> =
3713
3376
  GetAllLogDrainsDrainsDisabledReason$inboundSchema;
3714
3377
 
3715
- /** @internal */
3716
- export const GetAllLogDrainsSourceLogDrainsResponse200Kind$inboundSchema:
3717
- z.ZodNativeEnum<typeof GetAllLogDrainsSourceLogDrainsResponse200Kind> = z
3718
- .nativeEnum(GetAllLogDrainsSourceLogDrainsResponse200Kind);
3719
- /** @internal */
3720
- export const GetAllLogDrainsSourceLogDrainsResponse200Kind$outboundSchema:
3721
- z.ZodNativeEnum<typeof GetAllLogDrainsSourceLogDrainsResponse200Kind> =
3722
- GetAllLogDrainsSourceLogDrainsResponse200Kind$inboundSchema;
3723
-
3724
3378
  /** @internal */
3725
3379
  export const GetAllLogDrainsSourceLogDrains2$inboundSchema: z.ZodType<
3726
3380
  GetAllLogDrainsSourceLogDrains2,
3727
3381
  z.ZodTypeDef,
3728
3382
  unknown
3729
3383
  > = z.object({
3730
- kind: GetAllLogDrainsSourceLogDrainsResponse200Kind$inboundSchema,
3384
+ kind: z.literal("integration"),
3731
3385
  resourceId: z.string().optional(),
3732
3386
  externalResourceId: z.string().optional(),
3733
3387
  integrationId: z.string(),
@@ -3735,7 +3389,7 @@ export const GetAllLogDrainsSourceLogDrains2$inboundSchema: z.ZodType<
3735
3389
  });
3736
3390
  /** @internal */
3737
3391
  export type GetAllLogDrainsSourceLogDrains2$Outbound = {
3738
- kind: string;
3392
+ kind: "integration";
3739
3393
  resourceId?: string | undefined;
3740
3394
  externalResourceId?: string | undefined;
3741
3395
  integrationId: string;
@@ -3748,7 +3402,7 @@ export const GetAllLogDrainsSourceLogDrains2$outboundSchema: z.ZodType<
3748
3402
  z.ZodTypeDef,
3749
3403
  GetAllLogDrainsSourceLogDrains2
3750
3404
  > = z.object({
3751
- kind: GetAllLogDrainsSourceLogDrainsResponse200Kind$outboundSchema,
3405
+ kind: z.literal("integration"),
3752
3406
  resourceId: z.string().optional(),
3753
3407
  externalResourceId: z.string().optional(),
3754
3408
  integrationId: z.string(),
@@ -3774,26 +3428,17 @@ export function getAllLogDrainsSourceLogDrains2FromJSON(
3774
3428
  );
3775
3429
  }
3776
3430
 
3777
- /** @internal */
3778
- export const GetAllLogDrainsSourceLogDrainsResponseKind$inboundSchema:
3779
- z.ZodNativeEnum<typeof GetAllLogDrainsSourceLogDrainsResponseKind> = z
3780
- .nativeEnum(GetAllLogDrainsSourceLogDrainsResponseKind);
3781
- /** @internal */
3782
- export const GetAllLogDrainsSourceLogDrainsResponseKind$outboundSchema:
3783
- z.ZodNativeEnum<typeof GetAllLogDrainsSourceLogDrainsResponseKind> =
3784
- GetAllLogDrainsSourceLogDrainsResponseKind$inboundSchema;
3785
-
3786
3431
  /** @internal */
3787
3432
  export const GetAllLogDrainsSourceLogDrains1$inboundSchema: z.ZodType<
3788
3433
  GetAllLogDrainsSourceLogDrains1,
3789
3434
  z.ZodTypeDef,
3790
3435
  unknown
3791
3436
  > = z.object({
3792
- kind: GetAllLogDrainsSourceLogDrainsResponseKind$inboundSchema,
3437
+ kind: z.literal("self-served"),
3793
3438
  });
3794
3439
  /** @internal */
3795
3440
  export type GetAllLogDrainsSourceLogDrains1$Outbound = {
3796
- kind: string;
3441
+ kind: "self-served";
3797
3442
  };
3798
3443
 
3799
3444
  /** @internal */
@@ -3802,7 +3447,7 @@ export const GetAllLogDrainsSourceLogDrains1$outboundSchema: z.ZodType<
3802
3447
  z.ZodTypeDef,
3803
3448
  GetAllLogDrainsSourceLogDrains1
3804
3449
  > = z.object({
3805
- kind: GetAllLogDrainsSourceLogDrainsResponseKind$outboundSchema,
3450
+ kind: z.literal("self-served"),
3806
3451
  });
3807
3452
 
3808
3453
  export function getAllLogDrainsSourceLogDrains1ToJSON(
@@ -3830,13 +3475,13 @@ export const GetAllLogDrainsDrainsLogDrainsSource$inboundSchema: z.ZodType<
3830
3475
  z.ZodTypeDef,
3831
3476
  unknown
3832
3477
  > = z.union([
3833
- z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema),
3834
3478
  z.lazy(() => GetAllLogDrainsSourceLogDrains1$inboundSchema),
3479
+ z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema),
3835
3480
  ]);
3836
3481
  /** @internal */
3837
3482
  export type GetAllLogDrainsDrainsLogDrainsSource$Outbound =
3838
- | GetAllLogDrainsSourceLogDrains2$Outbound
3839
- | GetAllLogDrainsSourceLogDrains1$Outbound;
3483
+ | GetAllLogDrainsSourceLogDrains1$Outbound
3484
+ | GetAllLogDrainsSourceLogDrains2$Outbound;
3840
3485
 
3841
3486
  /** @internal */
3842
3487
  export const GetAllLogDrainsDrainsLogDrainsSource$outboundSchema: z.ZodType<
@@ -3844,8 +3489,8 @@ export const GetAllLogDrainsDrainsLogDrainsSource$outboundSchema: z.ZodType<
3844
3489
  z.ZodTypeDef,
3845
3490
  GetAllLogDrainsDrainsLogDrainsSource
3846
3491
  > = z.union([
3847
- z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema),
3848
3492
  z.lazy(() => GetAllLogDrainsSourceLogDrains1$outboundSchema),
3493
+ z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema),
3849
3494
  ]);
3850
3495
 
3851
3496
  export function getAllLogDrainsDrainsLogDrainsSourceToJSON(
@@ -3868,36 +3513,18 @@ export function getAllLogDrainsDrainsLogDrainsSourceFromJSON(
3868
3513
  );
3869
3514
  }
3870
3515
 
3871
- /** @internal */
3872
- export const GetAllLogDrainsFilterV2LogDrainsResponse200Version$inboundSchema:
3873
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterV2LogDrainsResponse200Version> = z
3874
- .nativeEnum(GetAllLogDrainsFilterV2LogDrainsResponse200Version);
3875
- /** @internal */
3876
- export const GetAllLogDrainsFilterV2LogDrainsResponse200Version$outboundSchema:
3877
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterV2LogDrainsResponse200Version> =
3878
- GetAllLogDrainsFilterV2LogDrainsResponse200Version$inboundSchema;
3879
-
3880
- /** @internal */
3881
- export const GetAllLogDrainsFilterType$inboundSchema: z.ZodNativeEnum<
3882
- typeof GetAllLogDrainsFilterType
3883
- > = z.nativeEnum(GetAllLogDrainsFilterType);
3884
- /** @internal */
3885
- export const GetAllLogDrainsFilterType$outboundSchema: z.ZodNativeEnum<
3886
- typeof GetAllLogDrainsFilterType
3887
- > = GetAllLogDrainsFilterType$inboundSchema;
3888
-
3889
3516
  /** @internal */
3890
3517
  export const GetAllLogDrainsFilterLogDrains2$inboundSchema: z.ZodType<
3891
3518
  GetAllLogDrainsFilterLogDrains2,
3892
3519
  z.ZodTypeDef,
3893
3520
  unknown
3894
3521
  > = z.object({
3895
- type: GetAllLogDrainsFilterType$inboundSchema,
3522
+ type: z.literal("odata"),
3896
3523
  text: z.string(),
3897
3524
  });
3898
3525
  /** @internal */
3899
3526
  export type GetAllLogDrainsFilterLogDrains2$Outbound = {
3900
- type: string;
3527
+ type: "odata";
3901
3528
  text: string;
3902
3529
  };
3903
3530
 
@@ -3907,7 +3534,7 @@ export const GetAllLogDrainsFilterLogDrains2$outboundSchema: z.ZodType<
3907
3534
  z.ZodTypeDef,
3908
3535
  GetAllLogDrainsFilterLogDrains2
3909
3536
  > = z.object({
3910
- type: GetAllLogDrainsFilterType$outboundSchema,
3537
+ type: z.literal("odata"),
3911
3538
  text: z.string(),
3912
3539
  });
3913
3540
 
@@ -3930,15 +3557,6 @@ export function getAllLogDrainsFilterLogDrains2FromJSON(
3930
3557
  );
3931
3558
  }
3932
3559
 
3933
- /** @internal */
3934
- export const GetAllLogDrainsFilterLogDrainsResponse200Type$inboundSchema:
3935
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterLogDrainsResponse200Type> = z
3936
- .nativeEnum(GetAllLogDrainsFilterLogDrainsResponse200Type);
3937
- /** @internal */
3938
- export const GetAllLogDrainsFilterLogDrainsResponse200Type$outboundSchema:
3939
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterLogDrainsResponse200Type> =
3940
- GetAllLogDrainsFilterLogDrainsResponse200Type$inboundSchema;
3941
-
3942
3560
  /** @internal */
3943
3561
  export const GetAllLogDrainsFilterLogDrainsProject$inboundSchema: z.ZodType<
3944
3562
  GetAllLogDrainsFilterLogDrainsProject,
@@ -4100,7 +3718,7 @@ export const GetAllLogDrainsFilterLogDrains1$inboundSchema: z.ZodType<
4100
3718
  z.ZodTypeDef,
4101
3719
  unknown
4102
3720
  > = z.object({
4103
- type: GetAllLogDrainsFilterLogDrainsResponse200Type$inboundSchema,
3721
+ type: z.literal("basic"),
4104
3722
  project: z.lazy(() => GetAllLogDrainsFilterLogDrainsProject$inboundSchema)
4105
3723
  .optional(),
4106
3724
  log: z.lazy(() => GetAllLogDrainsFilterLogDrainsLog$inboundSchema).optional(),
@@ -4109,7 +3727,7 @@ export const GetAllLogDrainsFilterLogDrains1$inboundSchema: z.ZodType<
4109
3727
  });
4110
3728
  /** @internal */
4111
3729
  export type GetAllLogDrainsFilterLogDrains1$Outbound = {
4112
- type: string;
3730
+ type: "basic";
4113
3731
  project?: GetAllLogDrainsFilterLogDrainsProject$Outbound | undefined;
4114
3732
  log?: GetAllLogDrainsFilterLogDrainsLog$Outbound | undefined;
4115
3733
  deployment?: GetAllLogDrainsFilterDeployment$Outbound | undefined;
@@ -4121,7 +3739,7 @@ export const GetAllLogDrainsFilterLogDrains1$outboundSchema: z.ZodType<
4121
3739
  z.ZodTypeDef,
4122
3740
  GetAllLogDrainsFilterLogDrains1
4123
3741
  > = z.object({
4124
- type: GetAllLogDrainsFilterLogDrainsResponse200Type$outboundSchema,
3742
+ type: z.literal("basic"),
4125
3743
  project: z.lazy(() => GetAllLogDrainsFilterLogDrainsProject$outboundSchema)
4126
3744
  .optional(),
4127
3745
  log: z.lazy(() => GetAllLogDrainsFilterLogDrainsLog$outboundSchema)
@@ -4155,13 +3773,13 @@ export const GetAllLogDrainsFilterV2Filter$inboundSchema: z.ZodType<
4155
3773
  z.ZodTypeDef,
4156
3774
  unknown
4157
3775
  > = z.union([
4158
- z.lazy(() => GetAllLogDrainsFilterLogDrains2$inboundSchema),
4159
3776
  z.lazy(() => GetAllLogDrainsFilterLogDrains1$inboundSchema),
3777
+ z.lazy(() => GetAllLogDrainsFilterLogDrains2$inboundSchema),
4160
3778
  ]);
4161
3779
  /** @internal */
4162
3780
  export type GetAllLogDrainsFilterV2Filter$Outbound =
4163
- | GetAllLogDrainsFilterLogDrains2$Outbound
4164
- | GetAllLogDrainsFilterLogDrains1$Outbound;
3781
+ | GetAllLogDrainsFilterLogDrains1$Outbound
3782
+ | GetAllLogDrainsFilterLogDrains2$Outbound;
4165
3783
 
4166
3784
  /** @internal */
4167
3785
  export const GetAllLogDrainsFilterV2Filter$outboundSchema: z.ZodType<
@@ -4169,8 +3787,8 @@ export const GetAllLogDrainsFilterV2Filter$outboundSchema: z.ZodType<
4169
3787
  z.ZodTypeDef,
4170
3788
  GetAllLogDrainsFilterV2Filter
4171
3789
  > = z.union([
4172
- z.lazy(() => GetAllLogDrainsFilterLogDrains2$outboundSchema),
4173
3790
  z.lazy(() => GetAllLogDrainsFilterLogDrains1$outboundSchema),
3791
+ z.lazy(() => GetAllLogDrainsFilterLogDrains2$outboundSchema),
4174
3792
  ]);
4175
3793
 
4176
3794
  export function getAllLogDrainsFilterV2FilterToJSON(
@@ -4198,18 +3816,18 @@ export const GetAllLogDrainsFilterV2LogDrains2$inboundSchema: z.ZodType<
4198
3816
  z.ZodTypeDef,
4199
3817
  unknown
4200
3818
  > = z.object({
4201
- version: GetAllLogDrainsFilterV2LogDrainsResponse200Version$inboundSchema,
3819
+ version: z.literal("v2"),
4202
3820
  filter: z.union([
4203
- z.lazy(() => GetAllLogDrainsFilterLogDrains2$inboundSchema),
4204
3821
  z.lazy(() => GetAllLogDrainsFilterLogDrains1$inboundSchema),
3822
+ z.lazy(() => GetAllLogDrainsFilterLogDrains2$inboundSchema),
4205
3823
  ]),
4206
3824
  });
4207
3825
  /** @internal */
4208
3826
  export type GetAllLogDrainsFilterV2LogDrains2$Outbound = {
4209
- version: string;
3827
+ version: "v2";
4210
3828
  filter:
4211
- | GetAllLogDrainsFilterLogDrains2$Outbound
4212
- | GetAllLogDrainsFilterLogDrains1$Outbound;
3829
+ | GetAllLogDrainsFilterLogDrains1$Outbound
3830
+ | GetAllLogDrainsFilterLogDrains2$Outbound;
4213
3831
  };
4214
3832
 
4215
3833
  /** @internal */
@@ -4218,10 +3836,10 @@ export const GetAllLogDrainsFilterV2LogDrains2$outboundSchema: z.ZodType<
4218
3836
  z.ZodTypeDef,
4219
3837
  GetAllLogDrainsFilterV2LogDrains2
4220
3838
  > = z.object({
4221
- version: GetAllLogDrainsFilterV2LogDrainsResponse200Version$outboundSchema,
3839
+ version: z.literal("v2"),
4222
3840
  filter: z.union([
4223
- z.lazy(() => GetAllLogDrainsFilterLogDrains2$outboundSchema),
4224
3841
  z.lazy(() => GetAllLogDrainsFilterLogDrains1$outboundSchema),
3842
+ z.lazy(() => GetAllLogDrainsFilterLogDrains2$outboundSchema),
4225
3843
  ]),
4226
3844
  });
4227
3845
 
@@ -4244,26 +3862,17 @@ export function getAllLogDrainsFilterV2LogDrains2FromJSON(
4244
3862
  );
4245
3863
  }
4246
3864
 
4247
- /** @internal */
4248
- export const GetAllLogDrainsFilterV2LogDrainsResponseVersion$inboundSchema:
4249
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterV2LogDrainsResponseVersion> = z
4250
- .nativeEnum(GetAllLogDrainsFilterV2LogDrainsResponseVersion);
4251
- /** @internal */
4252
- export const GetAllLogDrainsFilterV2LogDrainsResponseVersion$outboundSchema:
4253
- z.ZodNativeEnum<typeof GetAllLogDrainsFilterV2LogDrainsResponseVersion> =
4254
- GetAllLogDrainsFilterV2LogDrainsResponseVersion$inboundSchema;
4255
-
4256
3865
  /** @internal */
4257
3866
  export const GetAllLogDrainsFilterV2LogDrains1$inboundSchema: z.ZodType<
4258
3867
  GetAllLogDrainsFilterV2LogDrains1,
4259
3868
  z.ZodTypeDef,
4260
3869
  unknown
4261
3870
  > = z.object({
4262
- version: GetAllLogDrainsFilterV2LogDrainsResponseVersion$inboundSchema,
3871
+ version: z.literal("v1"),
4263
3872
  });
4264
3873
  /** @internal */
4265
3874
  export type GetAllLogDrainsFilterV2LogDrains1$Outbound = {
4266
- version: string;
3875
+ version: "v1";
4267
3876
  };
4268
3877
 
4269
3878
  /** @internal */
@@ -4272,7 +3881,7 @@ export const GetAllLogDrainsFilterV2LogDrains1$outboundSchema: z.ZodType<
4272
3881
  z.ZodTypeDef,
4273
3882
  GetAllLogDrainsFilterV2LogDrains1
4274
3883
  > = z.object({
4275
- version: GetAllLogDrainsFilterV2LogDrainsResponseVersion$outboundSchema,
3884
+ version: z.literal("v1"),
4276
3885
  });
4277
3886
 
4278
3887
  export function getAllLogDrainsFilterV2LogDrains1ToJSON(
@@ -4300,13 +3909,13 @@ export const GetAllLogDrainsDrainsFilterV2$inboundSchema: z.ZodType<
4300
3909
  z.ZodTypeDef,
4301
3910
  unknown
4302
3911
  > = z.union([
4303
- z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$inboundSchema),
4304
3912
  z.lazy(() => GetAllLogDrainsFilterV2LogDrains1$inboundSchema),
3913
+ z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$inboundSchema),
4305
3914
  ]);
4306
3915
  /** @internal */
4307
3916
  export type GetAllLogDrainsDrainsFilterV2$Outbound =
4308
- | GetAllLogDrainsFilterV2LogDrains2$Outbound
4309
- | GetAllLogDrainsFilterV2LogDrains1$Outbound;
3917
+ | GetAllLogDrainsFilterV2LogDrains1$Outbound
3918
+ | GetAllLogDrainsFilterV2LogDrains2$Outbound;
4310
3919
 
4311
3920
  /** @internal */
4312
3921
  export const GetAllLogDrainsDrainsFilterV2$outboundSchema: z.ZodType<
@@ -4314,8 +3923,8 @@ export const GetAllLogDrainsDrainsFilterV2$outboundSchema: z.ZodType<
4314
3923
  z.ZodTypeDef,
4315
3924
  GetAllLogDrainsDrainsFilterV2
4316
3925
  > = z.union([
4317
- z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$outboundSchema),
4318
3926
  z.lazy(() => GetAllLogDrainsFilterV2LogDrains1$outboundSchema),
3927
+ z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$outboundSchema),
4319
3928
  ]);
4320
3929
 
4321
3930
  export function getAllLogDrainsDrainsFilterV2ToJSON(
@@ -4365,13 +3974,13 @@ export const GetAllLogDrainsDrains1$inboundSchema: z.ZodType<
4365
3974
  disabledBy: z.string().optional(),
4366
3975
  firstErrorTimestamp: z.number().optional(),
4367
3976
  source: z.union([
4368
- z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema),
4369
3977
  z.lazy(() => GetAllLogDrainsSourceLogDrains1$inboundSchema),
3978
+ z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema),
4370
3979
  ]),
4371
3980
  filter: z.string().optional(),
4372
3981
  filterV2: z.union([
4373
- z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$inboundSchema),
4374
3982
  z.lazy(() => GetAllLogDrainsFilterV2LogDrains1$inboundSchema),
3983
+ z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$inboundSchema),
4375
3984
  ]).optional(),
4376
3985
  });
4377
3986
  /** @internal */
@@ -4397,12 +4006,12 @@ export type GetAllLogDrainsDrains1$Outbound = {
4397
4006
  disabledBy?: string | undefined;
4398
4007
  firstErrorTimestamp?: number | undefined;
4399
4008
  source:
4400
- | GetAllLogDrainsSourceLogDrains2$Outbound
4401
- | GetAllLogDrainsSourceLogDrains1$Outbound;
4009
+ | GetAllLogDrainsSourceLogDrains1$Outbound
4010
+ | GetAllLogDrainsSourceLogDrains2$Outbound;
4402
4011
  filter?: string | undefined;
4403
4012
  filterV2?:
4404
- | GetAllLogDrainsFilterV2LogDrains2$Outbound
4405
4013
  | GetAllLogDrainsFilterV2LogDrains1$Outbound
4014
+ | GetAllLogDrainsFilterV2LogDrains2$Outbound
4406
4015
  | undefined;
4407
4016
  };
4408
4017
 
@@ -4434,13 +4043,13 @@ export const GetAllLogDrainsDrains1$outboundSchema: z.ZodType<
4434
4043
  disabledBy: z.string().optional(),
4435
4044
  firstErrorTimestamp: z.number().optional(),
4436
4045
  source: z.union([
4437
- z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema),
4438
4046
  z.lazy(() => GetAllLogDrainsSourceLogDrains1$outboundSchema),
4047
+ z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema),
4439
4048
  ]),
4440
4049
  filter: z.string().optional(),
4441
4050
  filterV2: z.union([
4442
- z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$outboundSchema),
4443
4051
  z.lazy(() => GetAllLogDrainsFilterV2LogDrains1$outboundSchema),
4052
+ z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$outboundSchema),
4444
4053
  ]).optional(),
4445
4054
  });
4446
4055