@databricks/sdk-features 0.34.0 → 0.35.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.
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +80 -76
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +527 -690
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -8
- package/dist/v1/index.js +4 -8
- package/dist/v1/model.d.ts +1163 -1199
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +1838 -2702
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/v1/model.js
CHANGED
|
@@ -1,2794 +1,1930 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
2
|
+
import { FieldMask } from "@databricks/sdk-core/wkt";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/v1/model.ts
|
|
5
6
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
DECIMAL: 'DECIMAL',
|
|
7
|
+
* Scalar data types for request-time field definitions.
|
|
8
|
+
* Only flat (non-nested) types are supported.
|
|
9
|
+
*/
|
|
10
|
+
const ScalarDataType = {
|
|
11
|
+
SCALAR_DATA_TYPE_UNSPECIFIED: "SCALAR_DATA_TYPE_UNSPECIFIED",
|
|
12
|
+
INTEGER: "INTEGER",
|
|
13
|
+
FLOAT: "FLOAT",
|
|
14
|
+
BOOLEAN: "BOOLEAN",
|
|
15
|
+
STRING: "STRING",
|
|
16
|
+
DOUBLE: "DOUBLE",
|
|
17
|
+
LONG: "LONG",
|
|
18
|
+
TIMESTAMP: "TIMESTAMP",
|
|
19
|
+
DATE: "DATE",
|
|
20
|
+
SHORT: "SHORT",
|
|
21
|
+
BINARY: "BINARY",
|
|
22
|
+
DECIMAL: "DECIMAL"
|
|
23
23
|
};
|
|
24
24
|
/** Deprecated: Use the function-specific messages in AggregationFunction.function_type oneof instead. Kept for backwards compatibility. */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/** Pipeline was configured to run once then stop. */
|
|
47
|
-
SNAPSHOT: 'SNAPSHOT',
|
|
48
|
-
/** Pipeline is actively running and computing features. */
|
|
49
|
-
ACTIVE: 'ACTIVE',
|
|
50
|
-
/** Pipeline is paused and not computing features. */
|
|
51
|
-
PAUSED: 'PAUSED',
|
|
25
|
+
const Function_FunctionType = {
|
|
26
|
+
FUNCTION_TYPE_UNSPECIFIED: "FUNCTION_TYPE_UNSPECIFIED",
|
|
27
|
+
AVG: "AVG",
|
|
28
|
+
COUNT: "COUNT",
|
|
29
|
+
SUM: "SUM",
|
|
30
|
+
MIN: "MIN",
|
|
31
|
+
MAX: "MAX",
|
|
32
|
+
FIRST: "FIRST",
|
|
33
|
+
LAST: "LAST",
|
|
34
|
+
APPROX_COUNT_DISTINCT: "APPROX_COUNT_DISTINCT",
|
|
35
|
+
APPROX_PERCENTILE: "APPROX_PERCENTILE",
|
|
36
|
+
STDDEV_POP: "STDDEV_POP",
|
|
37
|
+
STDDEV_SAMP: "STDDEV_SAMP",
|
|
38
|
+
VAR_POP: "VAR_POP",
|
|
39
|
+
VAR_SAMP: "VAR_SAMP"
|
|
40
|
+
};
|
|
41
|
+
const MaterializedFeature_PipelineScheduleState = {
|
|
42
|
+
PIPELINE_SCHEDULE_STATE_UNSPECIFIED: "PIPELINE_SCHEDULE_STATE_UNSPECIFIED",
|
|
43
|
+
SNAPSHOT: "SNAPSHOT",
|
|
44
|
+
ACTIVE: "ACTIVE",
|
|
45
|
+
PAUSED: "PAUSED"
|
|
52
46
|
};
|
|
53
47
|
/** Supported serialization formats for a schema registry schema. */
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
})
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}));
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}));
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}));
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
})
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}));
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
})
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}));
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
})
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
})
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
})
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
})
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}))
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
})
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
})
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
})
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
})
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
}))
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
})
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}))
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
})
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}));
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
})
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
})
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
}));
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
}))
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
})
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
})
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
}));
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
})
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
})
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
}))
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
})
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
}))
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
})
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
}))
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
}));
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
})
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
}))
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
})
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
})
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
})
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
}));
|
|
1408
|
-
|
|
1409
|
-
.object({
|
|
1410
|
-
dataSource: z
|
|
1411
|
-
.discriminatedUnion('$case', [
|
|
1412
|
-
z.object({
|
|
1413
|
-
$case: z.literal('deltaTableSource'),
|
|
1414
|
-
deltaTableSource: z.lazy(() => marshalDeltaTableSourceSchema),
|
|
1415
|
-
}),
|
|
1416
|
-
z.object({
|
|
1417
|
-
$case: z.literal('kafkaSource'),
|
|
1418
|
-
kafkaSource: z.lazy(() => marshalKafkaSourceSchema),
|
|
1419
|
-
}),
|
|
1420
|
-
z.object({
|
|
1421
|
-
$case: z.literal('requestSource'),
|
|
1422
|
-
requestSource: z.lazy(() => marshalRequestSourceSchema),
|
|
1423
|
-
}),
|
|
1424
|
-
z.object({
|
|
1425
|
-
$case: z.literal('streamSource'),
|
|
1426
|
-
streamSource: z.lazy(() => marshalStreamSourceSchema),
|
|
1427
|
-
}),
|
|
1428
|
-
])
|
|
1429
|
-
.optional(),
|
|
1430
|
-
})
|
|
1431
|
-
.transform(d => ({
|
|
1432
|
-
...(d.dataSource?.$case === 'deltaTableSource' && {
|
|
1433
|
-
delta_table_source: d.dataSource.deltaTableSource,
|
|
1434
|
-
}),
|
|
1435
|
-
...(d.dataSource?.$case === 'kafkaSource' && {
|
|
1436
|
-
kafka_source: d.dataSource.kafkaSource,
|
|
1437
|
-
}),
|
|
1438
|
-
...(d.dataSource?.$case === 'requestSource' && {
|
|
1439
|
-
request_source: d.dataSource.requestSource,
|
|
1440
|
-
}),
|
|
1441
|
-
...(d.dataSource?.$case === 'streamSource' && {
|
|
1442
|
-
stream_source: d.dataSource.streamSource,
|
|
1443
|
-
}),
|
|
1444
|
-
}));
|
|
1445
|
-
export const marshalDeltaTableSourceSchema = z
|
|
1446
|
-
.object({
|
|
1447
|
-
fullName: z.string().optional(),
|
|
1448
|
-
entityColumns: z.array(z.string()).optional(),
|
|
1449
|
-
timeseriesColumn: z.string().optional(),
|
|
1450
|
-
filterCondition: z.string().optional(),
|
|
1451
|
-
transformationSql: z.string().optional(),
|
|
1452
|
-
dataframeSchema: z.string().optional(),
|
|
1453
|
-
})
|
|
1454
|
-
.transform(d => ({
|
|
1455
|
-
full_name: d.fullName,
|
|
1456
|
-
entity_columns: d.entityColumns,
|
|
1457
|
-
timeseries_column: d.timeseriesColumn,
|
|
1458
|
-
filter_condition: d.filterCondition,
|
|
1459
|
-
transformation_sql: d.transformationSql,
|
|
1460
|
-
dataframe_schema: d.dataframeSchema,
|
|
1461
|
-
}));
|
|
1462
|
-
export const marshalDirectMtlsConfigSchema = z
|
|
1463
|
-
.object({
|
|
1464
|
-
bootstrapServers: z.string().optional(),
|
|
1465
|
-
mtlsConfig: z.lazy(() => marshalMtlsConfigSchema).optional(),
|
|
1466
|
-
})
|
|
1467
|
-
.transform(d => ({
|
|
1468
|
-
bootstrap_servers: d.bootstrapServers,
|
|
1469
|
-
mtls_config: d.mtlsConfig,
|
|
1470
|
-
}));
|
|
1471
|
-
export const marshalDirectSchemasSchema = z
|
|
1472
|
-
.object({
|
|
1473
|
-
payloadSchema: z.lazy(() => marshalSchemaConfigSchema).optional(),
|
|
1474
|
-
keySchema: z.lazy(() => marshalSchemaConfigSchema).optional(),
|
|
1475
|
-
})
|
|
1476
|
-
.transform(d => ({
|
|
1477
|
-
payload_schema: d.payloadSchema,
|
|
1478
|
-
key_schema: d.keySchema,
|
|
1479
|
-
}));
|
|
1480
|
-
export const marshalEntityColumnSchema = z
|
|
1481
|
-
.object({
|
|
1482
|
-
name: z.string().optional(),
|
|
1483
|
-
})
|
|
1484
|
-
.transform(d => ({
|
|
1485
|
-
name: d.name,
|
|
1486
|
-
}));
|
|
1487
|
-
export const marshalFeatureSchema = z
|
|
1488
|
-
.object({
|
|
1489
|
-
fullName: z.string().optional(),
|
|
1490
|
-
source: z.lazy(() => marshalDataSourceSchema).optional(),
|
|
1491
|
-
inputs: z.array(z.string()).optional(),
|
|
1492
|
-
function: z.lazy(() => marshalFunctionSchema).optional(),
|
|
1493
|
-
timeWindow: z.lazy(() => marshalTimeWindowSchema).optional(),
|
|
1494
|
-
description: z.string().optional(),
|
|
1495
|
-
filterCondition: z.string().optional(),
|
|
1496
|
-
lineageContext: z.lazy(() => marshalLineageContextSchema).optional(),
|
|
1497
|
-
entities: z.array(z.lazy(() => marshalEntityColumnSchema)).optional(),
|
|
1498
|
-
timeseriesColumn: z.lazy(() => marshalTimeseriesColumnSchema).optional(),
|
|
1499
|
-
catalogName: z.string().optional(),
|
|
1500
|
-
schemaName: z.string().optional(),
|
|
1501
|
-
name: z.string().optional(),
|
|
1502
|
-
createdAt: z
|
|
1503
|
-
.any()
|
|
1504
|
-
.transform((d) => d.toString())
|
|
1505
|
-
.optional(),
|
|
1506
|
-
createdBy: z.string().optional(),
|
|
1507
|
-
})
|
|
1508
|
-
.transform(d => ({
|
|
1509
|
-
full_name: d.fullName,
|
|
1510
|
-
source: d.source,
|
|
1511
|
-
inputs: d.inputs,
|
|
1512
|
-
function: d.function,
|
|
1513
|
-
time_window: d.timeWindow,
|
|
1514
|
-
description: d.description,
|
|
1515
|
-
filter_condition: d.filterCondition,
|
|
1516
|
-
lineage_context: d.lineageContext,
|
|
1517
|
-
entities: d.entities,
|
|
1518
|
-
timeseries_column: d.timeseriesColumn,
|
|
1519
|
-
catalog_name: d.catalogName,
|
|
1520
|
-
schema_name: d.schemaName,
|
|
1521
|
-
name: d.name,
|
|
1522
|
-
created_at: d.createdAt,
|
|
1523
|
-
created_by: d.createdBy,
|
|
1524
|
-
}));
|
|
1525
|
-
export const marshalFieldDefinitionSchema = z
|
|
1526
|
-
.object({
|
|
1527
|
-
name: z.string().optional(),
|
|
1528
|
-
dataType: z.string().optional(),
|
|
1529
|
-
})
|
|
1530
|
-
.transform(d => ({
|
|
1531
|
-
name: d.name,
|
|
1532
|
-
data_type: d.dataType,
|
|
1533
|
-
}));
|
|
1534
|
-
export const marshalFirstDistinctFunctionSchema = z
|
|
1535
|
-
.object({
|
|
1536
|
-
input: z.string().optional(),
|
|
1537
|
-
n: z.bigint().optional(),
|
|
1538
|
-
})
|
|
1539
|
-
.transform(d => ({
|
|
1540
|
-
input: d.input,
|
|
1541
|
-
n: d.n,
|
|
1542
|
-
}));
|
|
1543
|
-
export const marshalFirstFunctionSchema = z
|
|
1544
|
-
.object({
|
|
1545
|
-
input: z.string().optional(),
|
|
1546
|
-
})
|
|
1547
|
-
.transform(d => ({
|
|
1548
|
-
input: d.input,
|
|
1549
|
-
}));
|
|
1550
|
-
export const marshalFirstNFunctionSchema = z
|
|
1551
|
-
.object({
|
|
1552
|
-
input: z.string().optional(),
|
|
1553
|
-
n: z.bigint().optional(),
|
|
1554
|
-
})
|
|
1555
|
-
.transform(d => ({
|
|
1556
|
-
input: d.input,
|
|
1557
|
-
n: d.n,
|
|
1558
|
-
}));
|
|
1559
|
-
export const marshalFlatSchemaSchema = z
|
|
1560
|
-
.object({
|
|
1561
|
-
fields: z.array(z.lazy(() => marshalFieldDefinitionSchema)).optional(),
|
|
1562
|
-
})
|
|
1563
|
-
.transform(d => ({
|
|
1564
|
-
fields: d.fields,
|
|
1565
|
-
}));
|
|
1566
|
-
export const marshalFunctionSchema = z
|
|
1567
|
-
.object({
|
|
1568
|
-
functionType: z.string().optional(),
|
|
1569
|
-
extraParameters: z
|
|
1570
|
-
.array(z.lazy(() => marshalFunction_ExtraParameterSchema))
|
|
1571
|
-
.optional(),
|
|
1572
|
-
function: z
|
|
1573
|
-
.discriminatedUnion('$case', [
|
|
1574
|
-
z.object({
|
|
1575
|
-
$case: z.literal('aggregationFunction'),
|
|
1576
|
-
aggregationFunction: z.lazy(() => marshalAggregationFunctionSchema),
|
|
1577
|
-
}),
|
|
1578
|
-
z.object({
|
|
1579
|
-
$case: z.literal('columnSelection'),
|
|
1580
|
-
columnSelection: z.lazy(() => marshalColumnSelectionSchema),
|
|
1581
|
-
}),
|
|
1582
|
-
])
|
|
1583
|
-
.optional(),
|
|
1584
|
-
})
|
|
1585
|
-
.transform(d => ({
|
|
1586
|
-
function_type: d.functionType,
|
|
1587
|
-
extra_parameters: d.extraParameters,
|
|
1588
|
-
...(d.function?.$case === 'aggregationFunction' && {
|
|
1589
|
-
aggregation_function: d.function.aggregationFunction,
|
|
1590
|
-
}),
|
|
1591
|
-
...(d.function?.$case === 'columnSelection' && {
|
|
1592
|
-
column_selection: d.function.columnSelection,
|
|
1593
|
-
}),
|
|
1594
|
-
}));
|
|
1595
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1596
|
-
export const marshalFunction_ExtraParameterSchema = z
|
|
1597
|
-
.object({
|
|
1598
|
-
key: z.string().optional(),
|
|
1599
|
-
value: z.string().optional(),
|
|
1600
|
-
})
|
|
1601
|
-
.transform(d => ({
|
|
1602
|
-
key: d.key,
|
|
1603
|
-
value: d.value,
|
|
1604
|
-
}));
|
|
1605
|
-
export const marshalIngestionConfigSchema = z
|
|
1606
|
-
.object({
|
|
1607
|
-
ingestionDestination: z
|
|
1608
|
-
.lazy(() => marshalIngestionDestinationSchema)
|
|
1609
|
-
.optional(),
|
|
1610
|
-
backfillSource: z.lazy(() => marshalBackfillSourceSchema).optional(),
|
|
1611
|
-
deduplicationColumns: z.array(z.string()).optional(),
|
|
1612
|
-
ingestionPipelineId: z.string().optional(),
|
|
1613
|
-
ingestionJobId: z.bigint().optional(),
|
|
1614
|
-
backfillJobId: z.bigint().optional(),
|
|
1615
|
-
})
|
|
1616
|
-
.transform(d => ({
|
|
1617
|
-
ingestion_destination: d.ingestionDestination,
|
|
1618
|
-
backfill_source: d.backfillSource,
|
|
1619
|
-
deduplication_columns: d.deduplicationColumns,
|
|
1620
|
-
ingestion_pipeline_id: d.ingestionPipelineId,
|
|
1621
|
-
ingestion_job_id: d.ingestionJobId,
|
|
1622
|
-
backfill_job_id: d.backfillJobId,
|
|
1623
|
-
}));
|
|
1624
|
-
export const marshalIngestionDestinationSchema = z
|
|
1625
|
-
.object({
|
|
1626
|
-
ingestionDestination: z
|
|
1627
|
-
.discriminatedUnion('$case', [
|
|
1628
|
-
z.object({
|
|
1629
|
-
$case: z.literal('deltaTableName'),
|
|
1630
|
-
deltaTableName: z.string(),
|
|
1631
|
-
}),
|
|
1632
|
-
])
|
|
1633
|
-
.optional(),
|
|
1634
|
-
})
|
|
1635
|
-
.transform(d => ({
|
|
1636
|
-
...(d.ingestionDestination?.$case === 'deltaTableName' && {
|
|
1637
|
-
delta_table_name: d.ingestionDestination.deltaTableName,
|
|
1638
|
-
}),
|
|
1639
|
-
}));
|
|
1640
|
-
export const marshalJobContextSchema = z
|
|
1641
|
-
.object({
|
|
1642
|
-
jobId: z.bigint().optional(),
|
|
1643
|
-
jobRunId: z.bigint().optional(),
|
|
1644
|
-
})
|
|
1645
|
-
.transform(d => ({
|
|
1646
|
-
job_id: d.jobId,
|
|
1647
|
-
job_run_id: d.jobRunId,
|
|
1648
|
-
}));
|
|
1649
|
-
export const marshalKafkaConfigSchema = z
|
|
1650
|
-
.object({
|
|
1651
|
-
name: z.string().optional(),
|
|
1652
|
-
bootstrapServers: z.string().optional(),
|
|
1653
|
-
subscriptionMode: z.lazy(() => marshalSubscriptionModeSchema).optional(),
|
|
1654
|
-
authConfig: z.lazy(() => marshalAuthConfigSchema).optional(),
|
|
1655
|
-
keySchema: z.lazy(() => marshalSchemaConfigSchema).optional(),
|
|
1656
|
-
valueSchema: z.lazy(() => marshalSchemaConfigSchema).optional(),
|
|
1657
|
-
extraOptions: z.record(z.string(), z.string()).optional(),
|
|
1658
|
-
backfillSource: z.lazy(() => marshalBackfillSourceSchema).optional(),
|
|
1659
|
-
ingestionConfig: z.lazy(() => marshalIngestionConfigSchema).optional(),
|
|
1660
|
-
})
|
|
1661
|
-
.transform(d => ({
|
|
1662
|
-
name: d.name,
|
|
1663
|
-
bootstrap_servers: d.bootstrapServers,
|
|
1664
|
-
subscription_mode: d.subscriptionMode,
|
|
1665
|
-
auth_config: d.authConfig,
|
|
1666
|
-
key_schema: d.keySchema,
|
|
1667
|
-
value_schema: d.valueSchema,
|
|
1668
|
-
extra_options: d.extraOptions,
|
|
1669
|
-
backfill_source: d.backfillSource,
|
|
1670
|
-
ingestion_config: d.ingestionConfig,
|
|
1671
|
-
}));
|
|
1672
|
-
export const marshalKafkaSourceSchema = z
|
|
1673
|
-
.object({
|
|
1674
|
-
name: z.string().optional(),
|
|
1675
|
-
entityColumnIdentifiers: z
|
|
1676
|
-
.array(z.lazy(() => marshalColumnIdentifierSchema))
|
|
1677
|
-
.optional(),
|
|
1678
|
-
timeseriesColumnIdentifier: z
|
|
1679
|
-
.lazy(() => marshalColumnIdentifierSchema)
|
|
1680
|
-
.optional(),
|
|
1681
|
-
filterCondition: z.string().optional(),
|
|
1682
|
-
})
|
|
1683
|
-
.transform(d => ({
|
|
1684
|
-
name: d.name,
|
|
1685
|
-
entity_column_identifiers: d.entityColumnIdentifiers,
|
|
1686
|
-
timeseries_column_identifier: d.timeseriesColumnIdentifier,
|
|
1687
|
-
filter_condition: d.filterCondition,
|
|
1688
|
-
}));
|
|
1689
|
-
export const marshalKafkaStreamConfigSchema = z
|
|
1690
|
-
.object({
|
|
1691
|
-
subscriptionMode: z
|
|
1692
|
-
.lazy(() => marshalKafkaSubscriptionModeSchema)
|
|
1693
|
-
.optional(),
|
|
1694
|
-
extraOptions: z.record(z.string(), z.string()).optional(),
|
|
1695
|
-
})
|
|
1696
|
-
.transform(d => ({
|
|
1697
|
-
subscription_mode: d.subscriptionMode,
|
|
1698
|
-
extra_options: d.extraOptions,
|
|
1699
|
-
}));
|
|
1700
|
-
export const marshalKafkaSubscriptionModeSchema = z
|
|
1701
|
-
.object({
|
|
1702
|
-
subscriptionMode: z
|
|
1703
|
-
.discriminatedUnion('$case', [
|
|
1704
|
-
z.object({ $case: z.literal('assign'), assign: z.string() }),
|
|
1705
|
-
z.object({ $case: z.literal('subscribe'), subscribe: z.string() }),
|
|
1706
|
-
z.object({
|
|
1707
|
-
$case: z.literal('subscribePattern'),
|
|
1708
|
-
subscribePattern: z.string(),
|
|
1709
|
-
}),
|
|
1710
|
-
])
|
|
1711
|
-
.optional(),
|
|
1712
|
-
})
|
|
1713
|
-
.transform(d => ({
|
|
1714
|
-
...(d.subscriptionMode?.$case === 'assign' && {
|
|
1715
|
-
assign: d.subscriptionMode.assign,
|
|
1716
|
-
}),
|
|
1717
|
-
...(d.subscriptionMode?.$case === 'subscribe' && {
|
|
1718
|
-
subscribe: d.subscriptionMode.subscribe,
|
|
1719
|
-
}),
|
|
1720
|
-
...(d.subscriptionMode?.$case === 'subscribePattern' && {
|
|
1721
|
-
subscribe_pattern: d.subscriptionMode.subscribePattern,
|
|
1722
|
-
}),
|
|
1723
|
-
}));
|
|
1724
|
-
export const marshalKinesisStreamConfigSchema = z
|
|
1725
|
-
.object({
|
|
1726
|
-
streamIdentifier: z
|
|
1727
|
-
.discriminatedUnion('$case', [
|
|
1728
|
-
z.object({
|
|
1729
|
-
$case: z.literal('streamNames'),
|
|
1730
|
-
streamNames: z.lazy(() => marshalStreamNameListSchema),
|
|
1731
|
-
}),
|
|
1732
|
-
z.object({
|
|
1733
|
-
$case: z.literal('streamArns'),
|
|
1734
|
-
streamArns: z.lazy(() => marshalStreamArnListSchema),
|
|
1735
|
-
}),
|
|
1736
|
-
])
|
|
1737
|
-
.optional(),
|
|
1738
|
-
extraOptions: z.record(z.string(), z.string()).optional(),
|
|
1739
|
-
})
|
|
1740
|
-
.transform(d => ({
|
|
1741
|
-
...(d.streamIdentifier?.$case === 'streamNames' && {
|
|
1742
|
-
stream_names: d.streamIdentifier.streamNames,
|
|
1743
|
-
}),
|
|
1744
|
-
...(d.streamIdentifier?.$case === 'streamArns' && {
|
|
1745
|
-
stream_arns: d.streamIdentifier.streamArns,
|
|
1746
|
-
}),
|
|
1747
|
-
extra_options: d.extraOptions,
|
|
1748
|
-
}));
|
|
1749
|
-
export const marshalLastDistinctFunctionSchema = z
|
|
1750
|
-
.object({
|
|
1751
|
-
input: z.string().optional(),
|
|
1752
|
-
n: z.bigint().optional(),
|
|
1753
|
-
})
|
|
1754
|
-
.transform(d => ({
|
|
1755
|
-
input: d.input,
|
|
1756
|
-
n: d.n,
|
|
1757
|
-
}));
|
|
1758
|
-
export const marshalLastFunctionSchema = z
|
|
1759
|
-
.object({
|
|
1760
|
-
input: z.string().optional(),
|
|
1761
|
-
})
|
|
1762
|
-
.transform(d => ({
|
|
1763
|
-
input: d.input,
|
|
1764
|
-
}));
|
|
1765
|
-
export const marshalLastNFunctionSchema = z
|
|
1766
|
-
.object({
|
|
1767
|
-
input: z.string().optional(),
|
|
1768
|
-
n: z.bigint().optional(),
|
|
1769
|
-
})
|
|
1770
|
-
.transform(d => ({
|
|
1771
|
-
input: d.input,
|
|
1772
|
-
n: d.n,
|
|
1773
|
-
}));
|
|
1774
|
-
export const marshalLineageContextSchema = z
|
|
1775
|
-
.object({
|
|
1776
|
-
notebookId: z.bigint().optional(),
|
|
1777
|
-
jobContext: z.lazy(() => marshalJobContextSchema).optional(),
|
|
1778
|
-
})
|
|
1779
|
-
.transform(d => ({
|
|
1780
|
-
notebook_id: d.notebookId,
|
|
1781
|
-
job_context: d.jobContext,
|
|
1782
|
-
}));
|
|
1783
|
-
export const marshalMaterializedFeatureSchema = z
|
|
1784
|
-
.object({
|
|
1785
|
-
materializedFeatureId: z.string().optional(),
|
|
1786
|
-
featureName: z.string().optional(),
|
|
1787
|
-
destination: z
|
|
1788
|
-
.discriminatedUnion('$case', [
|
|
1789
|
-
z.object({
|
|
1790
|
-
$case: z.literal('offlineStoreConfig'),
|
|
1791
|
-
offlineStoreConfig: z.lazy(() => marshalOfflineStoreConfigSchema),
|
|
1792
|
-
}),
|
|
1793
|
-
z.object({
|
|
1794
|
-
$case: z.literal('onlineStoreConfig'),
|
|
1795
|
-
onlineStoreConfig: z.lazy(() => marshalOnlineStoreConfigSchema),
|
|
1796
|
-
}),
|
|
1797
|
-
])
|
|
1798
|
-
.optional(),
|
|
1799
|
-
tableName: z.string().optional(),
|
|
1800
|
-
pipelineScheduleState: z.string().optional(),
|
|
1801
|
-
lastMaterializationTime: z
|
|
1802
|
-
.any()
|
|
1803
|
-
.transform((d) => d.toString())
|
|
1804
|
-
.optional(),
|
|
1805
|
-
cronSchedule: z.string().optional(),
|
|
1806
|
-
isOnline: z.boolean().optional(),
|
|
1807
|
-
trigger: z
|
|
1808
|
-
.discriminatedUnion('$case', [
|
|
1809
|
-
z.object({
|
|
1810
|
-
$case: z.literal('cronScheduleTrigger'),
|
|
1811
|
-
cronScheduleTrigger: z.lazy(() => marshalCronScheduleSchema),
|
|
1812
|
-
}),
|
|
1813
|
-
z.object({
|
|
1814
|
-
$case: z.literal('tableTrigger'),
|
|
1815
|
-
tableTrigger: z.lazy(() => marshalTableTriggerSchema),
|
|
1816
|
-
}),
|
|
1817
|
-
z.object({
|
|
1818
|
-
$case: z.literal('streamingMode'),
|
|
1819
|
-
streamingMode: z.lazy(() => marshalStreamingModeSchema),
|
|
1820
|
-
}),
|
|
1821
|
-
])
|
|
1822
|
-
.optional(),
|
|
1823
|
-
})
|
|
1824
|
-
.transform(d => ({
|
|
1825
|
-
materialized_feature_id: d.materializedFeatureId,
|
|
1826
|
-
feature_name: d.featureName,
|
|
1827
|
-
...(d.destination?.$case === 'offlineStoreConfig' && {
|
|
1828
|
-
offline_store_config: d.destination.offlineStoreConfig,
|
|
1829
|
-
}),
|
|
1830
|
-
...(d.destination?.$case === 'onlineStoreConfig' && {
|
|
1831
|
-
online_store_config: d.destination.onlineStoreConfig,
|
|
1832
|
-
}),
|
|
1833
|
-
table_name: d.tableName,
|
|
1834
|
-
pipeline_schedule_state: d.pipelineScheduleState,
|
|
1835
|
-
last_materialization_time: d.lastMaterializationTime,
|
|
1836
|
-
cron_schedule: d.cronSchedule,
|
|
1837
|
-
is_online: d.isOnline,
|
|
1838
|
-
...(d.trigger?.$case === 'cronScheduleTrigger' && {
|
|
1839
|
-
cron_schedule_trigger: d.trigger.cronScheduleTrigger,
|
|
1840
|
-
}),
|
|
1841
|
-
...(d.trigger?.$case === 'tableTrigger' && {
|
|
1842
|
-
table_trigger: d.trigger.tableTrigger,
|
|
1843
|
-
}),
|
|
1844
|
-
...(d.trigger?.$case === 'streamingMode' && {
|
|
1845
|
-
streaming_mode: d.trigger.streamingMode,
|
|
1846
|
-
}),
|
|
1847
|
-
}));
|
|
1848
|
-
export const marshalMaxFunctionSchema = z
|
|
1849
|
-
.object({
|
|
1850
|
-
input: z.string().optional(),
|
|
1851
|
-
})
|
|
1852
|
-
.transform(d => ({
|
|
1853
|
-
input: d.input,
|
|
1854
|
-
}));
|
|
1855
|
-
export const marshalMinFunctionSchema = z
|
|
1856
|
-
.object({
|
|
1857
|
-
input: z.string().optional(),
|
|
1858
|
-
})
|
|
1859
|
-
.transform(d => ({
|
|
1860
|
-
input: d.input,
|
|
1861
|
-
}));
|
|
1862
|
-
export const marshalMtlsConfigSchema = z
|
|
1863
|
-
.object({
|
|
1864
|
-
keystoreLocation: z.string().optional(),
|
|
1865
|
-
keystorePasswordRef: z
|
|
1866
|
-
.lazy(() => marshalSecretScopeReferenceSchema)
|
|
1867
|
-
.optional(),
|
|
1868
|
-
keyPasswordRef: z.lazy(() => marshalSecretScopeReferenceSchema).optional(),
|
|
1869
|
-
truststoreLocation: z.string().optional(),
|
|
1870
|
-
truststorePasswordRef: z
|
|
1871
|
-
.lazy(() => marshalSecretScopeReferenceSchema)
|
|
1872
|
-
.optional(),
|
|
1873
|
-
disableHostnameVerification: z.boolean().optional(),
|
|
1874
|
-
})
|
|
1875
|
-
.transform(d => ({
|
|
1876
|
-
keystore_location: d.keystoreLocation,
|
|
1877
|
-
keystore_password_ref: d.keystorePasswordRef,
|
|
1878
|
-
key_password_ref: d.keyPasswordRef,
|
|
1879
|
-
truststore_location: d.truststoreLocation,
|
|
1880
|
-
truststore_password_ref: d.truststorePasswordRef,
|
|
1881
|
-
disable_hostname_verification: d.disableHostnameVerification,
|
|
1882
|
-
}));
|
|
1883
|
-
export const marshalOfflineStoreConfigSchema = z
|
|
1884
|
-
.object({
|
|
1885
|
-
catalogName: z.string().optional(),
|
|
1886
|
-
schemaName: z.string().optional(),
|
|
1887
|
-
tableNamePrefix: z.string().optional(),
|
|
1888
|
-
})
|
|
1889
|
-
.transform(d => ({
|
|
1890
|
-
catalog_name: d.catalogName,
|
|
1891
|
-
schema_name: d.schemaName,
|
|
1892
|
-
table_name_prefix: d.tableNamePrefix,
|
|
1893
|
-
}));
|
|
1894
|
-
export const marshalOnlineStoreConfigSchema = z
|
|
1895
|
-
.object({
|
|
1896
|
-
catalogName: z.string().optional(),
|
|
1897
|
-
schemaName: z.string().optional(),
|
|
1898
|
-
tableNamePrefix: z.string().optional(),
|
|
1899
|
-
onlineStoreName: z.string().optional(),
|
|
1900
|
-
})
|
|
1901
|
-
.transform(d => ({
|
|
1902
|
-
catalog_name: d.catalogName,
|
|
1903
|
-
schema_name: d.schemaName,
|
|
1904
|
-
table_name_prefix: d.tableNamePrefix,
|
|
1905
|
-
online_store_name: d.onlineStoreName,
|
|
1906
|
-
}));
|
|
1907
|
-
export const marshalProtoSchemaSpecSchema = z
|
|
1908
|
-
.object({
|
|
1909
|
-
schemaText: z.string().optional(),
|
|
1910
|
-
messageName: z.string().optional(),
|
|
1911
|
-
})
|
|
1912
|
-
.transform(d => ({
|
|
1913
|
-
schema_text: d.schemaText,
|
|
1914
|
-
message_name: d.messageName,
|
|
1915
|
-
}));
|
|
1916
|
-
export const marshalRequestSourceSchema = z
|
|
1917
|
-
.object({
|
|
1918
|
-
schema: z
|
|
1919
|
-
.discriminatedUnion('$case', [
|
|
1920
|
-
z.object({
|
|
1921
|
-
$case: z.literal('flatSchema'),
|
|
1922
|
-
flatSchema: z.lazy(() => marshalFlatSchemaSchema),
|
|
1923
|
-
}),
|
|
1924
|
-
])
|
|
1925
|
-
.optional(),
|
|
1926
|
-
})
|
|
1927
|
-
.transform(d => ({
|
|
1928
|
-
...(d.schema?.$case === 'flatSchema' && { flat_schema: d.schema.flatSchema }),
|
|
1929
|
-
}));
|
|
1930
|
-
export const marshalRollingWindowSchema = z
|
|
1931
|
-
.object({
|
|
1932
|
-
windowDuration: z
|
|
1933
|
-
.any()
|
|
1934
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
1935
|
-
.optional(),
|
|
1936
|
-
delay: z
|
|
1937
|
-
.any()
|
|
1938
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
1939
|
-
.optional(),
|
|
1940
|
-
})
|
|
1941
|
-
.transform(d => ({
|
|
1942
|
-
window_duration: d.windowDuration,
|
|
1943
|
-
delay: d.delay,
|
|
1944
|
-
}));
|
|
1945
|
-
export const marshalSawtoothWindowSchema = z
|
|
1946
|
-
.object({
|
|
1947
|
-
windowDuration: z
|
|
1948
|
-
.any()
|
|
1949
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
1950
|
-
.optional(),
|
|
1951
|
-
delay: z
|
|
1952
|
-
.any()
|
|
1953
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
1954
|
-
.optional(),
|
|
1955
|
-
})
|
|
1956
|
-
.transform(d => ({
|
|
1957
|
-
window_duration: d.windowDuration,
|
|
1958
|
-
delay: d.delay,
|
|
1959
|
-
}));
|
|
1960
|
-
export const marshalSchemaConfigSchema = z
|
|
1961
|
-
.object({
|
|
1962
|
-
schema: z
|
|
1963
|
-
.discriminatedUnion('$case', [
|
|
1964
|
-
z.object({ $case: z.literal('jsonSchema'), jsonSchema: z.string() }),
|
|
1965
|
-
z.object({ $case: z.literal('avroSchema'), avroSchema: z.string() }),
|
|
1966
|
-
z.object({
|
|
1967
|
-
$case: z.literal('protoSchema'),
|
|
1968
|
-
protoSchema: z.lazy(() => marshalProtoSchemaSpecSchema),
|
|
1969
|
-
}),
|
|
1970
|
-
])
|
|
1971
|
-
.optional(),
|
|
1972
|
-
})
|
|
1973
|
-
.transform(d => ({
|
|
1974
|
-
...(d.schema?.$case === 'jsonSchema' && { json_schema: d.schema.jsonSchema }),
|
|
1975
|
-
...(d.schema?.$case === 'avroSchema' && { avro_schema: d.schema.avroSchema }),
|
|
1976
|
-
...(d.schema?.$case === 'protoSchema' && {
|
|
1977
|
-
proto_schema: d.schema.protoSchema,
|
|
1978
|
-
}),
|
|
1979
|
-
}));
|
|
1980
|
-
export const marshalSchemaLocatorSchema = z
|
|
1981
|
-
.object({
|
|
1982
|
-
registrySchema: z
|
|
1983
|
-
.discriminatedUnion('$case', [
|
|
1984
|
-
z.object({
|
|
1985
|
-
$case: z.literal('confluentSchema'),
|
|
1986
|
-
confluentSchema: z.lazy(() => marshalSchemaLocator_ConfluentSchemaSchema),
|
|
1987
|
-
}),
|
|
1988
|
-
])
|
|
1989
|
-
.optional(),
|
|
1990
|
-
format: z.string().optional(),
|
|
1991
|
-
})
|
|
1992
|
-
.transform(d => ({
|
|
1993
|
-
...(d.registrySchema?.$case === 'confluentSchema' && {
|
|
1994
|
-
confluent_schema: d.registrySchema.confluentSchema,
|
|
1995
|
-
}),
|
|
1996
|
-
format: d.format,
|
|
1997
|
-
}));
|
|
1998
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1999
|
-
export const marshalSchemaLocator_ConfluentSchemaSchema = z
|
|
2000
|
-
.object({
|
|
2001
|
-
subject: z.string().optional(),
|
|
2002
|
-
})
|
|
2003
|
-
.transform(d => ({
|
|
2004
|
-
subject: d.subject,
|
|
2005
|
-
}));
|
|
2006
|
-
export const marshalSchemaRegistryConfigSchema = z
|
|
2007
|
-
.object({
|
|
2008
|
-
ucConnection: z.string().optional(),
|
|
2009
|
-
apiSecretRef: z.lazy(() => marshalSecretScopeReferenceSchema).optional(),
|
|
2010
|
-
payloadSchemaLocator: z.lazy(() => marshalSchemaLocatorSchema).optional(),
|
|
2011
|
-
keySchemaLocator: z.lazy(() => marshalSchemaLocatorSchema).optional(),
|
|
2012
|
-
})
|
|
2013
|
-
.transform(d => ({
|
|
2014
|
-
uc_connection: d.ucConnection,
|
|
2015
|
-
api_secret_ref: d.apiSecretRef,
|
|
2016
|
-
payload_schema_locator: d.payloadSchemaLocator,
|
|
2017
|
-
key_schema_locator: d.keySchemaLocator,
|
|
2018
|
-
}));
|
|
2019
|
-
export const marshalSecretScopeReferenceSchema = z
|
|
2020
|
-
.object({
|
|
2021
|
-
scope: z.string().optional(),
|
|
2022
|
-
key: z.string().optional(),
|
|
2023
|
-
})
|
|
2024
|
-
.transform(d => ({
|
|
2025
|
-
scope: d.scope,
|
|
2026
|
-
key: d.key,
|
|
2027
|
-
}));
|
|
2028
|
-
export const marshalSlidingWindowSchema = z
|
|
2029
|
-
.object({
|
|
2030
|
-
windowDuration: z
|
|
2031
|
-
.any()
|
|
2032
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
2033
|
-
.optional(),
|
|
2034
|
-
slideDuration: z
|
|
2035
|
-
.any()
|
|
2036
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
2037
|
-
.optional(),
|
|
2038
|
-
})
|
|
2039
|
-
.transform(d => ({
|
|
2040
|
-
window_duration: d.windowDuration,
|
|
2041
|
-
slide_duration: d.slideDuration,
|
|
2042
|
-
}));
|
|
2043
|
-
export const marshalStddevPopFunctionSchema = z
|
|
2044
|
-
.object({
|
|
2045
|
-
input: z.string().optional(),
|
|
2046
|
-
})
|
|
2047
|
-
.transform(d => ({
|
|
2048
|
-
input: d.input,
|
|
2049
|
-
}));
|
|
2050
|
-
export const marshalStddevSampFunctionSchema = z
|
|
2051
|
-
.object({
|
|
2052
|
-
input: z.string().optional(),
|
|
2053
|
-
})
|
|
2054
|
-
.transform(d => ({
|
|
2055
|
-
input: d.input,
|
|
2056
|
-
}));
|
|
2057
|
-
export const marshalStreamSchema = z
|
|
2058
|
-
.object({
|
|
2059
|
-
name: z.string().optional(),
|
|
2060
|
-
description: z.string().optional(),
|
|
2061
|
-
sourceConfig: z.lazy(() => marshalStreamSourceConfigSchema).optional(),
|
|
2062
|
-
connectionConfig: z
|
|
2063
|
-
.lazy(() => marshalStreamConnectionConfigSchema)
|
|
2064
|
-
.optional(),
|
|
2065
|
-
schemaConfig: z.lazy(() => marshalStreamSchemaConfigSchema).optional(),
|
|
2066
|
-
ingestionConfig: z.lazy(() => marshalIngestionConfigSchema).optional(),
|
|
2067
|
-
createTime: z
|
|
2068
|
-
.any()
|
|
2069
|
-
.transform((d) => d.toString())
|
|
2070
|
-
.optional(),
|
|
2071
|
-
createdBy: z.string().optional(),
|
|
2072
|
-
updateTime: z
|
|
2073
|
-
.any()
|
|
2074
|
-
.transform((d) => d.toString())
|
|
2075
|
-
.optional(),
|
|
2076
|
-
updatedBy: z.string().optional(),
|
|
2077
|
-
browseOnly: z.boolean().optional(),
|
|
2078
|
-
})
|
|
2079
|
-
.transform(d => ({
|
|
2080
|
-
name: d.name,
|
|
2081
|
-
description: d.description,
|
|
2082
|
-
source_config: d.sourceConfig,
|
|
2083
|
-
connection_config: d.connectionConfig,
|
|
2084
|
-
schema_config: d.schemaConfig,
|
|
2085
|
-
ingestion_config: d.ingestionConfig,
|
|
2086
|
-
create_time: d.createTime,
|
|
2087
|
-
created_by: d.createdBy,
|
|
2088
|
-
update_time: d.updateTime,
|
|
2089
|
-
updated_by: d.updatedBy,
|
|
2090
|
-
browse_only: d.browseOnly,
|
|
2091
|
-
}));
|
|
2092
|
-
export const marshalStreamArnListSchema = z
|
|
2093
|
-
.object({
|
|
2094
|
-
arns: z.array(z.string()).optional(),
|
|
2095
|
-
})
|
|
2096
|
-
.transform(d => ({
|
|
2097
|
-
arns: d.arns,
|
|
2098
|
-
}));
|
|
2099
|
-
export const marshalStreamConnectionConfigSchema = z
|
|
2100
|
-
.object({
|
|
2101
|
-
connectionConfig: z
|
|
2102
|
-
.discriminatedUnion('$case', [
|
|
2103
|
-
z.object({
|
|
2104
|
-
$case: z.literal('ucConnectionName'),
|
|
2105
|
-
ucConnectionName: z.string(),
|
|
2106
|
-
}),
|
|
2107
|
-
z.object({
|
|
2108
|
-
$case: z.literal('directMtlsConfig'),
|
|
2109
|
-
directMtlsConfig: z.lazy(() => marshalDirectMtlsConfigSchema),
|
|
2110
|
-
}),
|
|
2111
|
-
])
|
|
2112
|
-
.optional(),
|
|
2113
|
-
})
|
|
2114
|
-
.transform(d => ({
|
|
2115
|
-
...(d.connectionConfig?.$case === 'ucConnectionName' && {
|
|
2116
|
-
uc_connection_name: d.connectionConfig.ucConnectionName,
|
|
2117
|
-
}),
|
|
2118
|
-
...(d.connectionConfig?.$case === 'directMtlsConfig' && {
|
|
2119
|
-
direct_mtls_config: d.connectionConfig.directMtlsConfig,
|
|
2120
|
-
}),
|
|
2121
|
-
}));
|
|
2122
|
-
export const marshalStreamNameListSchema = z
|
|
2123
|
-
.object({
|
|
2124
|
-
names: z.array(z.string()).optional(),
|
|
2125
|
-
})
|
|
2126
|
-
.transform(d => ({
|
|
2127
|
-
names: d.names,
|
|
2128
|
-
}));
|
|
2129
|
-
export const marshalStreamSchemaConfigSchema = z
|
|
2130
|
-
.object({
|
|
2131
|
-
schemaConfig: z
|
|
2132
|
-
.discriminatedUnion('$case', [
|
|
2133
|
-
z.object({
|
|
2134
|
-
$case: z.literal('directSchemas'),
|
|
2135
|
-
directSchemas: z.lazy(() => marshalDirectSchemasSchema),
|
|
2136
|
-
}),
|
|
2137
|
-
z.object({
|
|
2138
|
-
$case: z.literal('schemaRegistryConfig'),
|
|
2139
|
-
schemaRegistryConfig: z.lazy(() => marshalSchemaRegistryConfigSchema),
|
|
2140
|
-
}),
|
|
2141
|
-
])
|
|
2142
|
-
.optional(),
|
|
2143
|
-
})
|
|
2144
|
-
.transform(d => ({
|
|
2145
|
-
...(d.schemaConfig?.$case === 'directSchemas' && {
|
|
2146
|
-
direct_schemas: d.schemaConfig.directSchemas,
|
|
2147
|
-
}),
|
|
2148
|
-
...(d.schemaConfig?.$case === 'schemaRegistryConfig' && {
|
|
2149
|
-
schema_registry_config: d.schemaConfig.schemaRegistryConfig,
|
|
2150
|
-
}),
|
|
2151
|
-
}));
|
|
2152
|
-
export const marshalStreamSourceSchema = z
|
|
2153
|
-
.object({
|
|
2154
|
-
fullName: z.string().optional(),
|
|
2155
|
-
filterCondition: z.string().optional(),
|
|
2156
|
-
transformationSql: z.string().optional(),
|
|
2157
|
-
dataframeSchema: z.string().optional(),
|
|
2158
|
-
})
|
|
2159
|
-
.transform(d => ({
|
|
2160
|
-
full_name: d.fullName,
|
|
2161
|
-
filter_condition: d.filterCondition,
|
|
2162
|
-
transformation_sql: d.transformationSql,
|
|
2163
|
-
dataframe_schema: d.dataframeSchema,
|
|
2164
|
-
}));
|
|
2165
|
-
export const marshalStreamSourceConfigSchema = z
|
|
2166
|
-
.object({
|
|
2167
|
-
sourceConfig: z
|
|
2168
|
-
.discriminatedUnion('$case', [
|
|
2169
|
-
z.object({
|
|
2170
|
-
$case: z.literal('kafkaStreamConfig'),
|
|
2171
|
-
kafkaStreamConfig: z.lazy(() => marshalKafkaStreamConfigSchema),
|
|
2172
|
-
}),
|
|
2173
|
-
z.object({
|
|
2174
|
-
$case: z.literal('kinesisStreamConfig'),
|
|
2175
|
-
kinesisStreamConfig: z.lazy(() => marshalKinesisStreamConfigSchema),
|
|
2176
|
-
}),
|
|
2177
|
-
])
|
|
2178
|
-
.optional(),
|
|
2179
|
-
})
|
|
2180
|
-
.transform(d => ({
|
|
2181
|
-
...(d.sourceConfig?.$case === 'kafkaStreamConfig' && {
|
|
2182
|
-
kafka_stream_config: d.sourceConfig.kafkaStreamConfig,
|
|
2183
|
-
}),
|
|
2184
|
-
...(d.sourceConfig?.$case === 'kinesisStreamConfig' && {
|
|
2185
|
-
kinesis_stream_config: d.sourceConfig.kinesisStreamConfig,
|
|
2186
|
-
}),
|
|
2187
|
-
}));
|
|
2188
|
-
export const marshalStreamingModeSchema = z
|
|
2189
|
-
.object({
|
|
2190
|
-
mode: z.string().optional(),
|
|
2191
|
-
freshnessTarget: z.string().optional(),
|
|
2192
|
-
})
|
|
2193
|
-
.transform(d => ({
|
|
2194
|
-
mode: d.mode,
|
|
2195
|
-
freshness_target: d.freshnessTarget,
|
|
2196
|
-
}));
|
|
2197
|
-
export const marshalSubscriptionModeSchema = z
|
|
2198
|
-
.object({
|
|
2199
|
-
subscriptionMode: z
|
|
2200
|
-
.discriminatedUnion('$case', [
|
|
2201
|
-
z.object({ $case: z.literal('assign'), assign: z.string() }),
|
|
2202
|
-
z.object({ $case: z.literal('subscribe'), subscribe: z.string() }),
|
|
2203
|
-
z.object({
|
|
2204
|
-
$case: z.literal('subscribePattern'),
|
|
2205
|
-
subscribePattern: z.string(),
|
|
2206
|
-
}),
|
|
2207
|
-
])
|
|
2208
|
-
.optional(),
|
|
2209
|
-
})
|
|
2210
|
-
.transform(d => ({
|
|
2211
|
-
...(d.subscriptionMode?.$case === 'assign' && {
|
|
2212
|
-
assign: d.subscriptionMode.assign,
|
|
2213
|
-
}),
|
|
2214
|
-
...(d.subscriptionMode?.$case === 'subscribe' && {
|
|
2215
|
-
subscribe: d.subscriptionMode.subscribe,
|
|
2216
|
-
}),
|
|
2217
|
-
...(d.subscriptionMode?.$case === 'subscribePattern' && {
|
|
2218
|
-
subscribe_pattern: d.subscriptionMode.subscribePattern,
|
|
2219
|
-
}),
|
|
2220
|
-
}));
|
|
2221
|
-
export const marshalSumFunctionSchema = z
|
|
2222
|
-
.object({
|
|
2223
|
-
input: z.string().optional(),
|
|
2224
|
-
})
|
|
2225
|
-
.transform(d => ({
|
|
2226
|
-
input: d.input,
|
|
2227
|
-
}));
|
|
2228
|
-
export const marshalTableTriggerSchema = z.object({});
|
|
2229
|
-
export const marshalTimeWindowSchema = z
|
|
2230
|
-
.object({
|
|
2231
|
-
windowType: z
|
|
2232
|
-
.discriminatedUnion('$case', [
|
|
2233
|
-
z.object({
|
|
2234
|
-
$case: z.literal('continuous'),
|
|
2235
|
-
continuous: z.lazy(() => marshalContinuousWindowSchema),
|
|
2236
|
-
}),
|
|
2237
|
-
z.object({
|
|
2238
|
-
$case: z.literal('tumbling'),
|
|
2239
|
-
tumbling: z.lazy(() => marshalTumblingWindowSchema),
|
|
2240
|
-
}),
|
|
2241
|
-
z.object({
|
|
2242
|
-
$case: z.literal('sliding'),
|
|
2243
|
-
sliding: z.lazy(() => marshalSlidingWindowSchema),
|
|
2244
|
-
}),
|
|
2245
|
-
z.object({
|
|
2246
|
-
$case: z.literal('rolling'),
|
|
2247
|
-
rolling: z.lazy(() => marshalRollingWindowSchema),
|
|
2248
|
-
}),
|
|
2249
|
-
z.object({
|
|
2250
|
-
$case: z.literal('sawtooth'),
|
|
2251
|
-
sawtooth: z.lazy(() => marshalSawtoothWindowSchema),
|
|
2252
|
-
}),
|
|
2253
|
-
])
|
|
2254
|
-
.optional(),
|
|
2255
|
-
})
|
|
2256
|
-
.transform(d => ({
|
|
2257
|
-
...(d.windowType?.$case === 'continuous' && {
|
|
2258
|
-
continuous: d.windowType.continuous,
|
|
2259
|
-
}),
|
|
2260
|
-
...(d.windowType?.$case === 'tumbling' && {
|
|
2261
|
-
tumbling: d.windowType.tumbling,
|
|
2262
|
-
}),
|
|
2263
|
-
...(d.windowType?.$case === 'sliding' && { sliding: d.windowType.sliding }),
|
|
2264
|
-
...(d.windowType?.$case === 'rolling' && { rolling: d.windowType.rolling }),
|
|
2265
|
-
...(d.windowType?.$case === 'sawtooth' && {
|
|
2266
|
-
sawtooth: d.windowType.sawtooth,
|
|
2267
|
-
}),
|
|
2268
|
-
}));
|
|
2269
|
-
export const marshalTimeseriesColumnSchema = z
|
|
2270
|
-
.object({
|
|
2271
|
-
name: z.string().optional(),
|
|
2272
|
-
})
|
|
2273
|
-
.transform(d => ({
|
|
2274
|
-
name: d.name,
|
|
2275
|
-
}));
|
|
2276
|
-
export const marshalTumblingWindowSchema = z
|
|
2277
|
-
.object({
|
|
2278
|
-
windowDuration: z
|
|
2279
|
-
.any()
|
|
2280
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
2281
|
-
.optional(),
|
|
2282
|
-
})
|
|
2283
|
-
.transform(d => ({
|
|
2284
|
-
window_duration: d.windowDuration,
|
|
2285
|
-
}));
|
|
2286
|
-
export const marshalVarPopFunctionSchema = z
|
|
2287
|
-
.object({
|
|
2288
|
-
input: z.string().optional(),
|
|
2289
|
-
})
|
|
2290
|
-
.transform(d => ({
|
|
2291
|
-
input: d.input,
|
|
2292
|
-
}));
|
|
2293
|
-
export const marshalVarSampFunctionSchema = z
|
|
2294
|
-
.object({
|
|
2295
|
-
input: z.string().optional(),
|
|
2296
|
-
})
|
|
2297
|
-
.transform(d => ({
|
|
2298
|
-
input: d.input,
|
|
2299
|
-
}));
|
|
48
|
+
const SchemaLocator_Format = {
|
|
49
|
+
FORMAT_UNSPECIFIED: "FORMAT_UNSPECIFIED",
|
|
50
|
+
FORMAT_AVRO: "FORMAT_AVRO",
|
|
51
|
+
FORMAT_PROTOBUF: "FORMAT_PROTOBUF",
|
|
52
|
+
FORMAT_JSON: "FORMAT_JSON"
|
|
53
|
+
};
|
|
54
|
+
const StreamingMode_StreamingModeType = {
|
|
55
|
+
STREAMING_MODE_TYPE_UNSPECIFIED: "STREAMING_MODE_TYPE_UNSPECIFIED",
|
|
56
|
+
STREAMING_MODE_TYPE_RTM: "STREAMING_MODE_TYPE_RTM",
|
|
57
|
+
STREAMING_MODE_TYPE_MBM: "STREAMING_MODE_TYPE_MBM"
|
|
58
|
+
};
|
|
59
|
+
const unmarshalAggregationFunctionSchema = z.object({
|
|
60
|
+
avg: z.lazy(() => unmarshalAvgFunctionSchema).optional(),
|
|
61
|
+
count_function: z.lazy(() => unmarshalCountFunctionSchema).optional(),
|
|
62
|
+
sum: z.lazy(() => unmarshalSumFunctionSchema).optional(),
|
|
63
|
+
min: z.lazy(() => unmarshalMinFunctionSchema).optional(),
|
|
64
|
+
max: z.lazy(() => unmarshalMaxFunctionSchema).optional(),
|
|
65
|
+
first: z.lazy(() => unmarshalFirstFunctionSchema).optional(),
|
|
66
|
+
last: z.lazy(() => unmarshalLastFunctionSchema).optional(),
|
|
67
|
+
approx_count_distinct: z.lazy(() => unmarshalApproxCountDistinctFunctionSchema).optional(),
|
|
68
|
+
approx_percentile: z.lazy(() => unmarshalApproxPercentileFunctionSchema).optional(),
|
|
69
|
+
stddev_pop: z.lazy(() => unmarshalStddevPopFunctionSchema).optional(),
|
|
70
|
+
stddev_samp: z.lazy(() => unmarshalStddevSampFunctionSchema).optional(),
|
|
71
|
+
var_pop: z.lazy(() => unmarshalVarPopFunctionSchema).optional(),
|
|
72
|
+
var_samp: z.lazy(() => unmarshalVarSampFunctionSchema).optional(),
|
|
73
|
+
first_n: z.lazy(() => unmarshalFirstNFunctionSchema).optional(),
|
|
74
|
+
last_n: z.lazy(() => unmarshalLastNFunctionSchema).optional(),
|
|
75
|
+
first_distinct: z.lazy(() => unmarshalFirstDistinctFunctionSchema).optional(),
|
|
76
|
+
last_distinct: z.lazy(() => unmarshalLastDistinctFunctionSchema).optional(),
|
|
77
|
+
time_window: z.lazy(() => unmarshalTimeWindowSchema).optional()
|
|
78
|
+
}).transform((d) => ({
|
|
79
|
+
operation: d.avg !== void 0 ? {
|
|
80
|
+
$case: "avg",
|
|
81
|
+
avg: d.avg
|
|
82
|
+
} : d.count_function !== void 0 ? {
|
|
83
|
+
$case: "countFunction",
|
|
84
|
+
countFunction: d.count_function
|
|
85
|
+
} : d.sum !== void 0 ? {
|
|
86
|
+
$case: "sum",
|
|
87
|
+
sum: d.sum
|
|
88
|
+
} : d.min !== void 0 ? {
|
|
89
|
+
$case: "min",
|
|
90
|
+
min: d.min
|
|
91
|
+
} : d.max !== void 0 ? {
|
|
92
|
+
$case: "max",
|
|
93
|
+
max: d.max
|
|
94
|
+
} : d.first !== void 0 ? {
|
|
95
|
+
$case: "first",
|
|
96
|
+
first: d.first
|
|
97
|
+
} : d.last !== void 0 ? {
|
|
98
|
+
$case: "last",
|
|
99
|
+
last: d.last
|
|
100
|
+
} : d.approx_count_distinct !== void 0 ? {
|
|
101
|
+
$case: "approxCountDistinct",
|
|
102
|
+
approxCountDistinct: d.approx_count_distinct
|
|
103
|
+
} : d.approx_percentile !== void 0 ? {
|
|
104
|
+
$case: "approxPercentile",
|
|
105
|
+
approxPercentile: d.approx_percentile
|
|
106
|
+
} : d.stddev_pop !== void 0 ? {
|
|
107
|
+
$case: "stddevPop",
|
|
108
|
+
stddevPop: d.stddev_pop
|
|
109
|
+
} : d.stddev_samp !== void 0 ? {
|
|
110
|
+
$case: "stddevSamp",
|
|
111
|
+
stddevSamp: d.stddev_samp
|
|
112
|
+
} : d.var_pop !== void 0 ? {
|
|
113
|
+
$case: "varPop",
|
|
114
|
+
varPop: d.var_pop
|
|
115
|
+
} : d.var_samp !== void 0 ? {
|
|
116
|
+
$case: "varSamp",
|
|
117
|
+
varSamp: d.var_samp
|
|
118
|
+
} : d.first_n !== void 0 ? {
|
|
119
|
+
$case: "firstN",
|
|
120
|
+
firstN: d.first_n
|
|
121
|
+
} : d.last_n !== void 0 ? {
|
|
122
|
+
$case: "lastN",
|
|
123
|
+
lastN: d.last_n
|
|
124
|
+
} : d.first_distinct !== void 0 ? {
|
|
125
|
+
$case: "firstDistinct",
|
|
126
|
+
firstDistinct: d.first_distinct
|
|
127
|
+
} : d.last_distinct !== void 0 ? {
|
|
128
|
+
$case: "lastDistinct",
|
|
129
|
+
lastDistinct: d.last_distinct
|
|
130
|
+
} : void 0,
|
|
131
|
+
timeWindow: d.time_window
|
|
132
|
+
}));
|
|
133
|
+
const unmarshalApproxCountDistinctFunctionSchema = z.object({
|
|
134
|
+
input: z.string().optional(),
|
|
135
|
+
relative_sd: z.number().optional()
|
|
136
|
+
}).transform((d) => ({
|
|
137
|
+
input: d.input,
|
|
138
|
+
relativeSd: d.relative_sd
|
|
139
|
+
}));
|
|
140
|
+
const unmarshalApproxPercentileFunctionSchema = z.object({
|
|
141
|
+
input: z.string().optional(),
|
|
142
|
+
percentile: z.number().optional(),
|
|
143
|
+
accuracy: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional()
|
|
144
|
+
}).transform((d) => ({
|
|
145
|
+
input: d.input,
|
|
146
|
+
percentile: d.percentile,
|
|
147
|
+
accuracy: d.accuracy
|
|
148
|
+
}));
|
|
149
|
+
const unmarshalAuthConfigSchema = z.object({
|
|
150
|
+
uc_service_credential_name: z.string().optional(),
|
|
151
|
+
mtls_config: z.lazy(() => unmarshalMtlsConfigSchema).optional()
|
|
152
|
+
}).transform((d) => ({ authConfig: d.uc_service_credential_name !== void 0 ? {
|
|
153
|
+
$case: "ucServiceCredentialName",
|
|
154
|
+
ucServiceCredentialName: d.uc_service_credential_name
|
|
155
|
+
} : d.mtls_config !== void 0 ? {
|
|
156
|
+
$case: "mtlsConfig",
|
|
157
|
+
mtlsConfig: d.mtls_config
|
|
158
|
+
} : void 0 }));
|
|
159
|
+
const unmarshalAvgFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
160
|
+
const unmarshalBackfillSourceSchema = z.object({
|
|
161
|
+
delta_table_source: z.lazy(() => unmarshalDeltaTableSourceSchema).optional(),
|
|
162
|
+
delta_table_name: z.string().optional()
|
|
163
|
+
}).transform((d) => ({ backfillSource: d.delta_table_source !== void 0 ? {
|
|
164
|
+
$case: "deltaTableSource",
|
|
165
|
+
deltaTableSource: d.delta_table_source
|
|
166
|
+
} : d.delta_table_name !== void 0 ? {
|
|
167
|
+
$case: "deltaTableName",
|
|
168
|
+
deltaTableName: d.delta_table_name
|
|
169
|
+
} : void 0 }));
|
|
170
|
+
const unmarshalBatchCreateMaterializedFeaturesResponseSchema = z.object({ materialized_features: z.array(z.lazy(() => unmarshalMaterializedFeatureSchema)).optional() }).transform((d) => ({ materializedFeatures: d.materialized_features }));
|
|
171
|
+
const unmarshalColumnIdentifierSchema = z.object({ variant_expr_path: z.string().optional() }).transform((d) => ({ variantExprPath: d.variant_expr_path }));
|
|
172
|
+
const unmarshalColumnSelectionSchema = z.object({ column: z.string().optional() }).transform((d) => ({ column: d.column }));
|
|
173
|
+
const unmarshalContinuousWindowSchema = z.object({
|
|
174
|
+
window_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
175
|
+
offset: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional()
|
|
176
|
+
}).transform((d) => ({
|
|
177
|
+
windowDuration: d.window_duration,
|
|
178
|
+
offset: d.offset
|
|
179
|
+
}));
|
|
180
|
+
const unmarshalCountFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
181
|
+
const unmarshalCronScheduleSchema = z.object({ cron_expression: z.string().optional() }).transform((d) => ({ cronExpression: d.cron_expression }));
|
|
182
|
+
const unmarshalDataSourceSchema = z.object({
|
|
183
|
+
delta_table_source: z.lazy(() => unmarshalDeltaTableSourceSchema).optional(),
|
|
184
|
+
kafka_source: z.lazy(() => unmarshalKafkaSourceSchema).optional(),
|
|
185
|
+
request_source: z.lazy(() => unmarshalRequestSourceSchema).optional(),
|
|
186
|
+
stream_source: z.lazy(() => unmarshalStreamSourceSchema).optional()
|
|
187
|
+
}).transform((d) => ({ dataSource: d.delta_table_source !== void 0 ? {
|
|
188
|
+
$case: "deltaTableSource",
|
|
189
|
+
deltaTableSource: d.delta_table_source
|
|
190
|
+
} : d.kafka_source !== void 0 ? {
|
|
191
|
+
$case: "kafkaSource",
|
|
192
|
+
kafkaSource: d.kafka_source
|
|
193
|
+
} : d.request_source !== void 0 ? {
|
|
194
|
+
$case: "requestSource",
|
|
195
|
+
requestSource: d.request_source
|
|
196
|
+
} : d.stream_source !== void 0 ? {
|
|
197
|
+
$case: "streamSource",
|
|
198
|
+
streamSource: d.stream_source
|
|
199
|
+
} : void 0 }));
|
|
200
|
+
const unmarshalDeltaTableSourceSchema = z.object({
|
|
201
|
+
full_name: z.string().optional(),
|
|
202
|
+
entity_columns: z.array(z.string()).optional(),
|
|
203
|
+
timeseries_column: z.string().optional(),
|
|
204
|
+
filter_condition: z.string().optional(),
|
|
205
|
+
transformation_sql: z.string().optional(),
|
|
206
|
+
dataframe_schema: z.string().optional()
|
|
207
|
+
}).transform((d) => ({
|
|
208
|
+
fullName: d.full_name,
|
|
209
|
+
entityColumns: d.entity_columns,
|
|
210
|
+
timeseriesColumn: d.timeseries_column,
|
|
211
|
+
filterCondition: d.filter_condition,
|
|
212
|
+
transformationSql: d.transformation_sql,
|
|
213
|
+
dataframeSchema: d.dataframe_schema
|
|
214
|
+
}));
|
|
215
|
+
const unmarshalDirectMtlsConfigSchema = z.object({
|
|
216
|
+
bootstrap_servers: z.string().optional(),
|
|
217
|
+
mtls_config: z.lazy(() => unmarshalMtlsConfigSchema).optional()
|
|
218
|
+
}).transform((d) => ({
|
|
219
|
+
bootstrapServers: d.bootstrap_servers,
|
|
220
|
+
mtlsConfig: d.mtls_config
|
|
221
|
+
}));
|
|
222
|
+
const unmarshalDirectSchemasSchema = z.object({
|
|
223
|
+
payload_schema: z.lazy(() => unmarshalSchemaConfigSchema).optional(),
|
|
224
|
+
key_schema: z.lazy(() => unmarshalSchemaConfigSchema).optional()
|
|
225
|
+
}).transform((d) => ({
|
|
226
|
+
payloadSchema: d.payload_schema,
|
|
227
|
+
keySchema: d.key_schema
|
|
228
|
+
}));
|
|
229
|
+
const unmarshalEntityColumnSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
230
|
+
const unmarshalFeatureSchema = z.object({
|
|
231
|
+
full_name: z.string().optional(),
|
|
232
|
+
source: z.lazy(() => unmarshalDataSourceSchema).optional(),
|
|
233
|
+
inputs: z.array(z.string()).optional(),
|
|
234
|
+
function: z.lazy(() => unmarshalFunctionSchema).optional(),
|
|
235
|
+
time_window: z.lazy(() => unmarshalTimeWindowSchema).optional(),
|
|
236
|
+
description: z.string().optional(),
|
|
237
|
+
filter_condition: z.string().optional(),
|
|
238
|
+
lineage_context: z.lazy(() => unmarshalLineageContextSchema).optional(),
|
|
239
|
+
entities: z.array(z.lazy(() => unmarshalEntityColumnSchema)).optional(),
|
|
240
|
+
timeseries_column: z.lazy(() => unmarshalTimeseriesColumnSchema).optional(),
|
|
241
|
+
catalog_name: z.string().optional(),
|
|
242
|
+
schema_name: z.string().optional(),
|
|
243
|
+
name: z.string().optional(),
|
|
244
|
+
created_at: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
245
|
+
created_by: z.string().optional()
|
|
246
|
+
}).transform((d) => ({
|
|
247
|
+
fullName: d.full_name,
|
|
248
|
+
source: d.source,
|
|
249
|
+
inputs: d.inputs,
|
|
250
|
+
function: d.function,
|
|
251
|
+
timeWindow: d.time_window,
|
|
252
|
+
description: d.description,
|
|
253
|
+
filterCondition: d.filter_condition,
|
|
254
|
+
lineageContext: d.lineage_context,
|
|
255
|
+
entities: d.entities,
|
|
256
|
+
timeseriesColumn: d.timeseries_column,
|
|
257
|
+
catalogName: d.catalog_name,
|
|
258
|
+
schemaName: d.schema_name,
|
|
259
|
+
name: d.name,
|
|
260
|
+
createdAt: d.created_at,
|
|
261
|
+
createdBy: d.created_by
|
|
262
|
+
}));
|
|
263
|
+
const unmarshalFieldDefinitionSchema = z.object({
|
|
264
|
+
name: z.string().optional(),
|
|
265
|
+
data_type: z.string().optional()
|
|
266
|
+
}).transform((d) => ({
|
|
267
|
+
name: d.name,
|
|
268
|
+
dataType: d.data_type
|
|
269
|
+
}));
|
|
270
|
+
const unmarshalFirstDistinctFunctionSchema = z.object({
|
|
271
|
+
input: z.string().optional(),
|
|
272
|
+
n: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional()
|
|
273
|
+
}).transform((d) => ({
|
|
274
|
+
input: d.input,
|
|
275
|
+
n: d.n
|
|
276
|
+
}));
|
|
277
|
+
const unmarshalFirstFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
278
|
+
const unmarshalFirstNFunctionSchema = z.object({
|
|
279
|
+
input: z.string().optional(),
|
|
280
|
+
n: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional()
|
|
281
|
+
}).transform((d) => ({
|
|
282
|
+
input: d.input,
|
|
283
|
+
n: d.n
|
|
284
|
+
}));
|
|
285
|
+
const unmarshalFlatSchemaSchema = z.object({ fields: z.array(z.lazy(() => unmarshalFieldDefinitionSchema)).optional() }).transform((d) => ({ fields: d.fields }));
|
|
286
|
+
const unmarshalFunctionSchema = z.object({
|
|
287
|
+
function_type: z.string().optional(),
|
|
288
|
+
extra_parameters: z.array(z.lazy(() => unmarshalFunction_ExtraParameterSchema)).optional(),
|
|
289
|
+
aggregation_function: z.lazy(() => unmarshalAggregationFunctionSchema).optional(),
|
|
290
|
+
column_selection: z.lazy(() => unmarshalColumnSelectionSchema).optional()
|
|
291
|
+
}).transform((d) => ({
|
|
292
|
+
functionType: d.function_type,
|
|
293
|
+
extraParameters: d.extra_parameters,
|
|
294
|
+
function: d.aggregation_function !== void 0 ? {
|
|
295
|
+
$case: "aggregationFunction",
|
|
296
|
+
aggregationFunction: d.aggregation_function
|
|
297
|
+
} : d.column_selection !== void 0 ? {
|
|
298
|
+
$case: "columnSelection",
|
|
299
|
+
columnSelection: d.column_selection
|
|
300
|
+
} : void 0
|
|
301
|
+
}));
|
|
302
|
+
const unmarshalFunction_ExtraParameterSchema = z.object({
|
|
303
|
+
key: z.string().optional(),
|
|
304
|
+
value: z.string().optional()
|
|
305
|
+
}).transform((d) => ({
|
|
306
|
+
key: d.key,
|
|
307
|
+
value: d.value
|
|
308
|
+
}));
|
|
309
|
+
const unmarshalIngestionConfigSchema = z.object({
|
|
310
|
+
ingestion_destination: z.lazy(() => unmarshalIngestionDestinationSchema).optional(),
|
|
311
|
+
backfill_source: z.lazy(() => unmarshalBackfillSourceSchema).optional(),
|
|
312
|
+
deduplication_columns: z.array(z.string()).optional(),
|
|
313
|
+
ingestion_pipeline_id: z.string().optional(),
|
|
314
|
+
ingestion_job_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
315
|
+
backfill_job_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional()
|
|
316
|
+
}).transform((d) => ({
|
|
317
|
+
ingestionDestination: d.ingestion_destination,
|
|
318
|
+
backfillSource: d.backfill_source,
|
|
319
|
+
deduplicationColumns: d.deduplication_columns,
|
|
320
|
+
ingestionPipelineId: d.ingestion_pipeline_id,
|
|
321
|
+
ingestionJobId: d.ingestion_job_id,
|
|
322
|
+
backfillJobId: d.backfill_job_id
|
|
323
|
+
}));
|
|
324
|
+
const unmarshalIngestionDestinationSchema = z.object({ delta_table_name: z.string().optional() }).transform((d) => ({ ingestionDestination: d.delta_table_name !== void 0 ? {
|
|
325
|
+
$case: "deltaTableName",
|
|
326
|
+
deltaTableName: d.delta_table_name
|
|
327
|
+
} : void 0 }));
|
|
328
|
+
const unmarshalJobContextSchema = z.object({
|
|
329
|
+
job_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
330
|
+
job_run_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional()
|
|
331
|
+
}).transform((d) => ({
|
|
332
|
+
jobId: d.job_id,
|
|
333
|
+
jobRunId: d.job_run_id
|
|
334
|
+
}));
|
|
335
|
+
const unmarshalKafkaConfigSchema = z.object({
|
|
336
|
+
name: z.string().optional(),
|
|
337
|
+
bootstrap_servers: z.string().optional(),
|
|
338
|
+
subscription_mode: z.lazy(() => unmarshalSubscriptionModeSchema).optional(),
|
|
339
|
+
auth_config: z.lazy(() => unmarshalAuthConfigSchema).optional(),
|
|
340
|
+
key_schema: z.lazy(() => unmarshalSchemaConfigSchema).optional(),
|
|
341
|
+
value_schema: z.lazy(() => unmarshalSchemaConfigSchema).optional(),
|
|
342
|
+
extra_options: z.record(z.string(), z.string()).optional(),
|
|
343
|
+
backfill_source: z.lazy(() => unmarshalBackfillSourceSchema).optional(),
|
|
344
|
+
ingestion_config: z.lazy(() => unmarshalIngestionConfigSchema).optional()
|
|
345
|
+
}).transform((d) => ({
|
|
346
|
+
name: d.name,
|
|
347
|
+
bootstrapServers: d.bootstrap_servers,
|
|
348
|
+
subscriptionMode: d.subscription_mode,
|
|
349
|
+
authConfig: d.auth_config,
|
|
350
|
+
keySchema: d.key_schema,
|
|
351
|
+
valueSchema: d.value_schema,
|
|
352
|
+
extraOptions: d.extra_options,
|
|
353
|
+
backfillSource: d.backfill_source,
|
|
354
|
+
ingestionConfig: d.ingestion_config
|
|
355
|
+
}));
|
|
356
|
+
const unmarshalKafkaSourceSchema = z.object({
|
|
357
|
+
name: z.string().optional(),
|
|
358
|
+
entity_column_identifiers: z.array(z.lazy(() => unmarshalColumnIdentifierSchema)).optional(),
|
|
359
|
+
timeseries_column_identifier: z.lazy(() => unmarshalColumnIdentifierSchema).optional(),
|
|
360
|
+
filter_condition: z.string().optional()
|
|
361
|
+
}).transform((d) => ({
|
|
362
|
+
name: d.name,
|
|
363
|
+
entityColumnIdentifiers: d.entity_column_identifiers,
|
|
364
|
+
timeseriesColumnIdentifier: d.timeseries_column_identifier,
|
|
365
|
+
filterCondition: d.filter_condition
|
|
366
|
+
}));
|
|
367
|
+
const unmarshalKafkaStreamConfigSchema = z.object({
|
|
368
|
+
subscription_mode: z.lazy(() => unmarshalKafkaSubscriptionModeSchema).optional(),
|
|
369
|
+
extra_options: z.record(z.string(), z.string()).optional()
|
|
370
|
+
}).transform((d) => ({
|
|
371
|
+
subscriptionMode: d.subscription_mode,
|
|
372
|
+
extraOptions: d.extra_options
|
|
373
|
+
}));
|
|
374
|
+
const unmarshalKafkaSubscriptionModeSchema = z.object({
|
|
375
|
+
assign: z.string().optional(),
|
|
376
|
+
subscribe: z.string().optional(),
|
|
377
|
+
subscribe_pattern: z.string().optional()
|
|
378
|
+
}).transform((d) => ({ subscriptionMode: d.assign !== void 0 ? {
|
|
379
|
+
$case: "assign",
|
|
380
|
+
assign: d.assign
|
|
381
|
+
} : d.subscribe !== void 0 ? {
|
|
382
|
+
$case: "subscribe",
|
|
383
|
+
subscribe: d.subscribe
|
|
384
|
+
} : d.subscribe_pattern !== void 0 ? {
|
|
385
|
+
$case: "subscribePattern",
|
|
386
|
+
subscribePattern: d.subscribe_pattern
|
|
387
|
+
} : void 0 }));
|
|
388
|
+
const unmarshalKinesisStreamConfigSchema = z.object({
|
|
389
|
+
stream_names: z.lazy(() => unmarshalStreamNameListSchema).optional(),
|
|
390
|
+
stream_arns: z.lazy(() => unmarshalStreamArnListSchema).optional(),
|
|
391
|
+
extra_options: z.record(z.string(), z.string()).optional()
|
|
392
|
+
}).transform((d) => ({
|
|
393
|
+
streamIdentifier: d.stream_names !== void 0 ? {
|
|
394
|
+
$case: "streamNames",
|
|
395
|
+
streamNames: d.stream_names
|
|
396
|
+
} : d.stream_arns !== void 0 ? {
|
|
397
|
+
$case: "streamArns",
|
|
398
|
+
streamArns: d.stream_arns
|
|
399
|
+
} : void 0,
|
|
400
|
+
extraOptions: d.extra_options
|
|
401
|
+
}));
|
|
402
|
+
const unmarshalLastDistinctFunctionSchema = z.object({
|
|
403
|
+
input: z.string().optional(),
|
|
404
|
+
n: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional()
|
|
405
|
+
}).transform((d) => ({
|
|
406
|
+
input: d.input,
|
|
407
|
+
n: d.n
|
|
408
|
+
}));
|
|
409
|
+
const unmarshalLastFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
410
|
+
const unmarshalLastNFunctionSchema = z.object({
|
|
411
|
+
input: z.string().optional(),
|
|
412
|
+
n: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional()
|
|
413
|
+
}).transform((d) => ({
|
|
414
|
+
input: d.input,
|
|
415
|
+
n: d.n
|
|
416
|
+
}));
|
|
417
|
+
const unmarshalLineageContextSchema = z.object({
|
|
418
|
+
notebook_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
419
|
+
job_context: z.lazy(() => unmarshalJobContextSchema).optional()
|
|
420
|
+
}).transform((d) => ({
|
|
421
|
+
notebookId: d.notebook_id,
|
|
422
|
+
jobContext: d.job_context
|
|
423
|
+
}));
|
|
424
|
+
const unmarshalListFeaturesResponseSchema = z.object({
|
|
425
|
+
features: z.array(z.lazy(() => unmarshalFeatureSchema)).optional(),
|
|
426
|
+
next_page_token: z.string().optional()
|
|
427
|
+
}).transform((d) => ({
|
|
428
|
+
features: d.features,
|
|
429
|
+
nextPageToken: d.next_page_token
|
|
430
|
+
}));
|
|
431
|
+
const unmarshalListKafkaConfigsResponseSchema = z.object({
|
|
432
|
+
kafka_configs: z.array(z.lazy(() => unmarshalKafkaConfigSchema)).optional(),
|
|
433
|
+
next_page_token: z.string().optional()
|
|
434
|
+
}).transform((d) => ({
|
|
435
|
+
kafkaConfigs: d.kafka_configs,
|
|
436
|
+
nextPageToken: d.next_page_token
|
|
437
|
+
}));
|
|
438
|
+
const unmarshalListMaterializedFeaturesResponseSchema = z.object({
|
|
439
|
+
materialized_features: z.array(z.lazy(() => unmarshalMaterializedFeatureSchema)).optional(),
|
|
440
|
+
next_page_token: z.string().optional()
|
|
441
|
+
}).transform((d) => ({
|
|
442
|
+
materializedFeatures: d.materialized_features,
|
|
443
|
+
nextPageToken: d.next_page_token
|
|
444
|
+
}));
|
|
445
|
+
const unmarshalListStreamsResponseSchema = z.object({
|
|
446
|
+
streams: z.array(z.lazy(() => unmarshalStreamSchema)).optional(),
|
|
447
|
+
next_page_token: z.string().optional()
|
|
448
|
+
}).transform((d) => ({
|
|
449
|
+
streams: d.streams,
|
|
450
|
+
nextPageToken: d.next_page_token
|
|
451
|
+
}));
|
|
452
|
+
const unmarshalMaterializedFeatureSchema = z.object({
|
|
453
|
+
materialized_feature_id: z.string().optional(),
|
|
454
|
+
feature_name: z.string().optional(),
|
|
455
|
+
offline_store_config: z.lazy(() => unmarshalOfflineStoreConfigSchema).optional(),
|
|
456
|
+
online_store_config: z.lazy(() => unmarshalOnlineStoreConfigSchema).optional(),
|
|
457
|
+
table_name: z.string().optional(),
|
|
458
|
+
pipeline_schedule_state: z.string().optional(),
|
|
459
|
+
last_materialization_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
460
|
+
cron_schedule: z.string().optional(),
|
|
461
|
+
is_online: z.boolean().optional(),
|
|
462
|
+
cron_schedule_trigger: z.lazy(() => unmarshalCronScheduleSchema).optional(),
|
|
463
|
+
table_trigger: z.lazy(() => unmarshalTableTriggerSchema).optional(),
|
|
464
|
+
streaming_mode: z.lazy(() => unmarshalStreamingModeSchema).optional()
|
|
465
|
+
}).transform((d) => ({
|
|
466
|
+
materializedFeatureId: d.materialized_feature_id,
|
|
467
|
+
featureName: d.feature_name,
|
|
468
|
+
destination: d.offline_store_config !== void 0 ? {
|
|
469
|
+
$case: "offlineStoreConfig",
|
|
470
|
+
offlineStoreConfig: d.offline_store_config
|
|
471
|
+
} : d.online_store_config !== void 0 ? {
|
|
472
|
+
$case: "onlineStoreConfig",
|
|
473
|
+
onlineStoreConfig: d.online_store_config
|
|
474
|
+
} : void 0,
|
|
475
|
+
tableName: d.table_name,
|
|
476
|
+
pipelineScheduleState: d.pipeline_schedule_state,
|
|
477
|
+
lastMaterializationTime: d.last_materialization_time,
|
|
478
|
+
cronSchedule: d.cron_schedule,
|
|
479
|
+
isOnline: d.is_online,
|
|
480
|
+
trigger: d.cron_schedule_trigger !== void 0 ? {
|
|
481
|
+
$case: "cronScheduleTrigger",
|
|
482
|
+
cronScheduleTrigger: d.cron_schedule_trigger
|
|
483
|
+
} : d.table_trigger !== void 0 ? {
|
|
484
|
+
$case: "tableTrigger",
|
|
485
|
+
tableTrigger: d.table_trigger
|
|
486
|
+
} : d.streaming_mode !== void 0 ? {
|
|
487
|
+
$case: "streamingMode",
|
|
488
|
+
streamingMode: d.streaming_mode
|
|
489
|
+
} : void 0
|
|
490
|
+
}));
|
|
491
|
+
const unmarshalMaxFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
492
|
+
const unmarshalMinFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
493
|
+
const unmarshalMtlsConfigSchema = z.object({
|
|
494
|
+
keystore_location: z.string().optional(),
|
|
495
|
+
keystore_password_ref: z.lazy(() => unmarshalSecretScopeReferenceSchema).optional(),
|
|
496
|
+
key_password_ref: z.lazy(() => unmarshalSecretScopeReferenceSchema).optional(),
|
|
497
|
+
truststore_location: z.string().optional(),
|
|
498
|
+
truststore_password_ref: z.lazy(() => unmarshalSecretScopeReferenceSchema).optional(),
|
|
499
|
+
disable_hostname_verification: z.boolean().optional()
|
|
500
|
+
}).transform((d) => ({
|
|
501
|
+
keystoreLocation: d.keystore_location,
|
|
502
|
+
keystorePasswordRef: d.keystore_password_ref,
|
|
503
|
+
keyPasswordRef: d.key_password_ref,
|
|
504
|
+
truststoreLocation: d.truststore_location,
|
|
505
|
+
truststorePasswordRef: d.truststore_password_ref,
|
|
506
|
+
disableHostnameVerification: d.disable_hostname_verification
|
|
507
|
+
}));
|
|
508
|
+
const unmarshalOfflineStoreConfigSchema = z.object({
|
|
509
|
+
catalog_name: z.string().optional(),
|
|
510
|
+
schema_name: z.string().optional(),
|
|
511
|
+
table_name_prefix: z.string().optional()
|
|
512
|
+
}).transform((d) => ({
|
|
513
|
+
catalogName: d.catalog_name,
|
|
514
|
+
schemaName: d.schema_name,
|
|
515
|
+
tableNamePrefix: d.table_name_prefix
|
|
516
|
+
}));
|
|
517
|
+
const unmarshalOnlineStoreConfigSchema = z.object({
|
|
518
|
+
catalog_name: z.string().optional(),
|
|
519
|
+
schema_name: z.string().optional(),
|
|
520
|
+
table_name_prefix: z.string().optional(),
|
|
521
|
+
online_store_name: z.string().optional()
|
|
522
|
+
}).transform((d) => ({
|
|
523
|
+
catalogName: d.catalog_name,
|
|
524
|
+
schemaName: d.schema_name,
|
|
525
|
+
tableNamePrefix: d.table_name_prefix,
|
|
526
|
+
onlineStoreName: d.online_store_name
|
|
527
|
+
}));
|
|
528
|
+
const unmarshalProtoSchemaSpecSchema = z.object({
|
|
529
|
+
schema_text: z.string().optional(),
|
|
530
|
+
message_name: z.string().optional()
|
|
531
|
+
}).transform((d) => ({
|
|
532
|
+
schemaText: d.schema_text,
|
|
533
|
+
messageName: d.message_name
|
|
534
|
+
}));
|
|
535
|
+
const unmarshalRequestSourceSchema = z.object({ flat_schema: z.lazy(() => unmarshalFlatSchemaSchema).optional() }).transform((d) => ({ schema: d.flat_schema !== void 0 ? {
|
|
536
|
+
$case: "flatSchema",
|
|
537
|
+
flatSchema: d.flat_schema
|
|
538
|
+
} : void 0 }));
|
|
539
|
+
const unmarshalRollingWindowSchema = z.object({
|
|
540
|
+
window_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
541
|
+
delay: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional()
|
|
542
|
+
}).transform((d) => ({
|
|
543
|
+
windowDuration: d.window_duration,
|
|
544
|
+
delay: d.delay
|
|
545
|
+
}));
|
|
546
|
+
const unmarshalSawtoothWindowSchema = z.object({
|
|
547
|
+
window_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
548
|
+
delay: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional()
|
|
549
|
+
}).transform((d) => ({
|
|
550
|
+
windowDuration: d.window_duration,
|
|
551
|
+
delay: d.delay
|
|
552
|
+
}));
|
|
553
|
+
const unmarshalSchemaConfigSchema = z.object({
|
|
554
|
+
json_schema: z.string().optional(),
|
|
555
|
+
avro_schema: z.string().optional(),
|
|
556
|
+
proto_schema: z.lazy(() => unmarshalProtoSchemaSpecSchema).optional()
|
|
557
|
+
}).transform((d) => ({ schema: d.json_schema !== void 0 ? {
|
|
558
|
+
$case: "jsonSchema",
|
|
559
|
+
jsonSchema: d.json_schema
|
|
560
|
+
} : d.avro_schema !== void 0 ? {
|
|
561
|
+
$case: "avroSchema",
|
|
562
|
+
avroSchema: d.avro_schema
|
|
563
|
+
} : d.proto_schema !== void 0 ? {
|
|
564
|
+
$case: "protoSchema",
|
|
565
|
+
protoSchema: d.proto_schema
|
|
566
|
+
} : void 0 }));
|
|
567
|
+
const unmarshalSchemaLocatorSchema = z.object({
|
|
568
|
+
confluent_schema: z.lazy(() => unmarshalSchemaLocator_ConfluentSchemaSchema).optional(),
|
|
569
|
+
format: z.string().optional()
|
|
570
|
+
}).transform((d) => ({
|
|
571
|
+
registrySchema: d.confluent_schema !== void 0 ? {
|
|
572
|
+
$case: "confluentSchema",
|
|
573
|
+
confluentSchema: d.confluent_schema
|
|
574
|
+
} : void 0,
|
|
575
|
+
format: d.format
|
|
576
|
+
}));
|
|
577
|
+
const unmarshalSchemaLocator_ConfluentSchemaSchema = z.object({ subject: z.string().optional() }).transform((d) => ({ subject: d.subject }));
|
|
578
|
+
const unmarshalSchemaRegistryConfigSchema = z.object({
|
|
579
|
+
uc_connection: z.string().optional(),
|
|
580
|
+
api_secret_ref: z.lazy(() => unmarshalSecretScopeReferenceSchema).optional(),
|
|
581
|
+
payload_schema_locator: z.lazy(() => unmarshalSchemaLocatorSchema).optional(),
|
|
582
|
+
key_schema_locator: z.lazy(() => unmarshalSchemaLocatorSchema).optional()
|
|
583
|
+
}).transform((d) => ({
|
|
584
|
+
ucConnection: d.uc_connection,
|
|
585
|
+
apiSecretRef: d.api_secret_ref,
|
|
586
|
+
payloadSchemaLocator: d.payload_schema_locator,
|
|
587
|
+
keySchemaLocator: d.key_schema_locator
|
|
588
|
+
}));
|
|
589
|
+
const unmarshalSecretScopeReferenceSchema = z.object({
|
|
590
|
+
scope: z.string().optional(),
|
|
591
|
+
key: z.string().optional()
|
|
592
|
+
}).transform((d) => ({
|
|
593
|
+
scope: d.scope,
|
|
594
|
+
key: d.key
|
|
595
|
+
}));
|
|
596
|
+
const unmarshalSlidingWindowSchema = z.object({
|
|
597
|
+
window_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
598
|
+
slide_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional()
|
|
599
|
+
}).transform((d) => ({
|
|
600
|
+
windowDuration: d.window_duration,
|
|
601
|
+
slideDuration: d.slide_duration
|
|
602
|
+
}));
|
|
603
|
+
const unmarshalStddevPopFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
604
|
+
const unmarshalStddevSampFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
605
|
+
const unmarshalStreamSchema = z.object({
|
|
606
|
+
name: z.string().optional(),
|
|
607
|
+
description: z.string().optional(),
|
|
608
|
+
source_config: z.lazy(() => unmarshalStreamSourceConfigSchema).optional(),
|
|
609
|
+
connection_config: z.lazy(() => unmarshalStreamConnectionConfigSchema).optional(),
|
|
610
|
+
schema_config: z.lazy(() => unmarshalStreamSchemaConfigSchema).optional(),
|
|
611
|
+
ingestion_config: z.lazy(() => unmarshalIngestionConfigSchema).optional(),
|
|
612
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
613
|
+
created_by: z.string().optional(),
|
|
614
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
615
|
+
updated_by: z.string().optional(),
|
|
616
|
+
browse_only: z.boolean().optional()
|
|
617
|
+
}).transform((d) => ({
|
|
618
|
+
name: d.name,
|
|
619
|
+
description: d.description,
|
|
620
|
+
sourceConfig: d.source_config,
|
|
621
|
+
connectionConfig: d.connection_config,
|
|
622
|
+
schemaConfig: d.schema_config,
|
|
623
|
+
ingestionConfig: d.ingestion_config,
|
|
624
|
+
createTime: d.create_time,
|
|
625
|
+
createdBy: d.created_by,
|
|
626
|
+
updateTime: d.update_time,
|
|
627
|
+
updatedBy: d.updated_by,
|
|
628
|
+
browseOnly: d.browse_only
|
|
629
|
+
}));
|
|
630
|
+
const unmarshalStreamArnListSchema = z.object({ arns: z.array(z.string()).optional() }).transform((d) => ({ arns: d.arns }));
|
|
631
|
+
const unmarshalStreamConnectionConfigSchema = z.object({
|
|
632
|
+
uc_connection_name: z.string().optional(),
|
|
633
|
+
direct_mtls_config: z.lazy(() => unmarshalDirectMtlsConfigSchema).optional()
|
|
634
|
+
}).transform((d) => ({ connectionConfig: d.uc_connection_name !== void 0 ? {
|
|
635
|
+
$case: "ucConnectionName",
|
|
636
|
+
ucConnectionName: d.uc_connection_name
|
|
637
|
+
} : d.direct_mtls_config !== void 0 ? {
|
|
638
|
+
$case: "directMtlsConfig",
|
|
639
|
+
directMtlsConfig: d.direct_mtls_config
|
|
640
|
+
} : void 0 }));
|
|
641
|
+
const unmarshalStreamNameListSchema = z.object({ names: z.array(z.string()).optional() }).transform((d) => ({ names: d.names }));
|
|
642
|
+
const unmarshalStreamSchemaConfigSchema = z.object({
|
|
643
|
+
direct_schemas: z.lazy(() => unmarshalDirectSchemasSchema).optional(),
|
|
644
|
+
schema_registry_config: z.lazy(() => unmarshalSchemaRegistryConfigSchema).optional()
|
|
645
|
+
}).transform((d) => ({ schemaConfig: d.direct_schemas !== void 0 ? {
|
|
646
|
+
$case: "directSchemas",
|
|
647
|
+
directSchemas: d.direct_schemas
|
|
648
|
+
} : d.schema_registry_config !== void 0 ? {
|
|
649
|
+
$case: "schemaRegistryConfig",
|
|
650
|
+
schemaRegistryConfig: d.schema_registry_config
|
|
651
|
+
} : void 0 }));
|
|
652
|
+
const unmarshalStreamSourceSchema = z.object({
|
|
653
|
+
full_name: z.string().optional(),
|
|
654
|
+
filter_condition: z.string().optional(),
|
|
655
|
+
transformation_sql: z.string().optional(),
|
|
656
|
+
dataframe_schema: z.string().optional()
|
|
657
|
+
}).transform((d) => ({
|
|
658
|
+
fullName: d.full_name,
|
|
659
|
+
filterCondition: d.filter_condition,
|
|
660
|
+
transformationSql: d.transformation_sql,
|
|
661
|
+
dataframeSchema: d.dataframe_schema
|
|
662
|
+
}));
|
|
663
|
+
const unmarshalStreamSourceConfigSchema = z.object({
|
|
664
|
+
kafka_stream_config: z.lazy(() => unmarshalKafkaStreamConfigSchema).optional(),
|
|
665
|
+
kinesis_stream_config: z.lazy(() => unmarshalKinesisStreamConfigSchema).optional()
|
|
666
|
+
}).transform((d) => ({ sourceConfig: d.kafka_stream_config !== void 0 ? {
|
|
667
|
+
$case: "kafkaStreamConfig",
|
|
668
|
+
kafkaStreamConfig: d.kafka_stream_config
|
|
669
|
+
} : d.kinesis_stream_config !== void 0 ? {
|
|
670
|
+
$case: "kinesisStreamConfig",
|
|
671
|
+
kinesisStreamConfig: d.kinesis_stream_config
|
|
672
|
+
} : void 0 }));
|
|
673
|
+
const unmarshalStreamingModeSchema = z.object({
|
|
674
|
+
mode: z.string().optional(),
|
|
675
|
+
freshness_target: z.string().optional()
|
|
676
|
+
}).transform((d) => ({
|
|
677
|
+
mode: d.mode,
|
|
678
|
+
freshnessTarget: d.freshness_target
|
|
679
|
+
}));
|
|
680
|
+
const unmarshalSubscriptionModeSchema = z.object({
|
|
681
|
+
assign: z.string().optional(),
|
|
682
|
+
subscribe: z.string().optional(),
|
|
683
|
+
subscribe_pattern: z.string().optional()
|
|
684
|
+
}).transform((d) => ({ subscriptionMode: d.assign !== void 0 ? {
|
|
685
|
+
$case: "assign",
|
|
686
|
+
assign: d.assign
|
|
687
|
+
} : d.subscribe !== void 0 ? {
|
|
688
|
+
$case: "subscribe",
|
|
689
|
+
subscribe: d.subscribe
|
|
690
|
+
} : d.subscribe_pattern !== void 0 ? {
|
|
691
|
+
$case: "subscribePattern",
|
|
692
|
+
subscribePattern: d.subscribe_pattern
|
|
693
|
+
} : void 0 }));
|
|
694
|
+
const unmarshalSumFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
695
|
+
const unmarshalTableTriggerSchema = z.object({});
|
|
696
|
+
const unmarshalTimeWindowSchema = z.object({
|
|
697
|
+
continuous: z.lazy(() => unmarshalContinuousWindowSchema).optional(),
|
|
698
|
+
tumbling: z.lazy(() => unmarshalTumblingWindowSchema).optional(),
|
|
699
|
+
sliding: z.lazy(() => unmarshalSlidingWindowSchema).optional(),
|
|
700
|
+
rolling: z.lazy(() => unmarshalRollingWindowSchema).optional(),
|
|
701
|
+
sawtooth: z.lazy(() => unmarshalSawtoothWindowSchema).optional()
|
|
702
|
+
}).transform((d) => ({ windowType: d.continuous !== void 0 ? {
|
|
703
|
+
$case: "continuous",
|
|
704
|
+
continuous: d.continuous
|
|
705
|
+
} : d.tumbling !== void 0 ? {
|
|
706
|
+
$case: "tumbling",
|
|
707
|
+
tumbling: d.tumbling
|
|
708
|
+
} : d.sliding !== void 0 ? {
|
|
709
|
+
$case: "sliding",
|
|
710
|
+
sliding: d.sliding
|
|
711
|
+
} : d.rolling !== void 0 ? {
|
|
712
|
+
$case: "rolling",
|
|
713
|
+
rolling: d.rolling
|
|
714
|
+
} : d.sawtooth !== void 0 ? {
|
|
715
|
+
$case: "sawtooth",
|
|
716
|
+
sawtooth: d.sawtooth
|
|
717
|
+
} : void 0 }));
|
|
718
|
+
const unmarshalTimeseriesColumnSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
719
|
+
const unmarshalTumblingWindowSchema = z.object({ window_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional() }).transform((d) => ({ windowDuration: d.window_duration }));
|
|
720
|
+
const unmarshalVarPopFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
721
|
+
const unmarshalVarSampFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
722
|
+
const marshalAggregationFunctionSchema = z.object({
|
|
723
|
+
operation: z.discriminatedUnion("$case", [
|
|
724
|
+
z.object({
|
|
725
|
+
$case: z.literal("avg"),
|
|
726
|
+
avg: z.lazy(() => marshalAvgFunctionSchema)
|
|
727
|
+
}),
|
|
728
|
+
z.object({
|
|
729
|
+
$case: z.literal("countFunction"),
|
|
730
|
+
countFunction: z.lazy(() => marshalCountFunctionSchema)
|
|
731
|
+
}),
|
|
732
|
+
z.object({
|
|
733
|
+
$case: z.literal("sum"),
|
|
734
|
+
sum: z.lazy(() => marshalSumFunctionSchema)
|
|
735
|
+
}),
|
|
736
|
+
z.object({
|
|
737
|
+
$case: z.literal("min"),
|
|
738
|
+
min: z.lazy(() => marshalMinFunctionSchema)
|
|
739
|
+
}),
|
|
740
|
+
z.object({
|
|
741
|
+
$case: z.literal("max"),
|
|
742
|
+
max: z.lazy(() => marshalMaxFunctionSchema)
|
|
743
|
+
}),
|
|
744
|
+
z.object({
|
|
745
|
+
$case: z.literal("first"),
|
|
746
|
+
first: z.lazy(() => marshalFirstFunctionSchema)
|
|
747
|
+
}),
|
|
748
|
+
z.object({
|
|
749
|
+
$case: z.literal("last"),
|
|
750
|
+
last: z.lazy(() => marshalLastFunctionSchema)
|
|
751
|
+
}),
|
|
752
|
+
z.object({
|
|
753
|
+
$case: z.literal("approxCountDistinct"),
|
|
754
|
+
approxCountDistinct: z.lazy(() => marshalApproxCountDistinctFunctionSchema)
|
|
755
|
+
}),
|
|
756
|
+
z.object({
|
|
757
|
+
$case: z.literal("approxPercentile"),
|
|
758
|
+
approxPercentile: z.lazy(() => marshalApproxPercentileFunctionSchema)
|
|
759
|
+
}),
|
|
760
|
+
z.object({
|
|
761
|
+
$case: z.literal("stddevPop"),
|
|
762
|
+
stddevPop: z.lazy(() => marshalStddevPopFunctionSchema)
|
|
763
|
+
}),
|
|
764
|
+
z.object({
|
|
765
|
+
$case: z.literal("stddevSamp"),
|
|
766
|
+
stddevSamp: z.lazy(() => marshalStddevSampFunctionSchema)
|
|
767
|
+
}),
|
|
768
|
+
z.object({
|
|
769
|
+
$case: z.literal("varPop"),
|
|
770
|
+
varPop: z.lazy(() => marshalVarPopFunctionSchema)
|
|
771
|
+
}),
|
|
772
|
+
z.object({
|
|
773
|
+
$case: z.literal("varSamp"),
|
|
774
|
+
varSamp: z.lazy(() => marshalVarSampFunctionSchema)
|
|
775
|
+
}),
|
|
776
|
+
z.object({
|
|
777
|
+
$case: z.literal("firstN"),
|
|
778
|
+
firstN: z.lazy(() => marshalFirstNFunctionSchema)
|
|
779
|
+
}),
|
|
780
|
+
z.object({
|
|
781
|
+
$case: z.literal("lastN"),
|
|
782
|
+
lastN: z.lazy(() => marshalLastNFunctionSchema)
|
|
783
|
+
}),
|
|
784
|
+
z.object({
|
|
785
|
+
$case: z.literal("firstDistinct"),
|
|
786
|
+
firstDistinct: z.lazy(() => marshalFirstDistinctFunctionSchema)
|
|
787
|
+
}),
|
|
788
|
+
z.object({
|
|
789
|
+
$case: z.literal("lastDistinct"),
|
|
790
|
+
lastDistinct: z.lazy(() => marshalLastDistinctFunctionSchema)
|
|
791
|
+
})
|
|
792
|
+
]).optional(),
|
|
793
|
+
timeWindow: z.lazy(() => marshalTimeWindowSchema).optional()
|
|
794
|
+
}).transform((d) => ({
|
|
795
|
+
...d.operation?.$case === "avg" && { avg: d.operation.avg },
|
|
796
|
+
...d.operation?.$case === "countFunction" && { count_function: d.operation.countFunction },
|
|
797
|
+
...d.operation?.$case === "sum" && { sum: d.operation.sum },
|
|
798
|
+
...d.operation?.$case === "min" && { min: d.operation.min },
|
|
799
|
+
...d.operation?.$case === "max" && { max: d.operation.max },
|
|
800
|
+
...d.operation?.$case === "first" && { first: d.operation.first },
|
|
801
|
+
...d.operation?.$case === "last" && { last: d.operation.last },
|
|
802
|
+
...d.operation?.$case === "approxCountDistinct" && { approx_count_distinct: d.operation.approxCountDistinct },
|
|
803
|
+
...d.operation?.$case === "approxPercentile" && { approx_percentile: d.operation.approxPercentile },
|
|
804
|
+
...d.operation?.$case === "stddevPop" && { stddev_pop: d.operation.stddevPop },
|
|
805
|
+
...d.operation?.$case === "stddevSamp" && { stddev_samp: d.operation.stddevSamp },
|
|
806
|
+
...d.operation?.$case === "varPop" && { var_pop: d.operation.varPop },
|
|
807
|
+
...d.operation?.$case === "varSamp" && { var_samp: d.operation.varSamp },
|
|
808
|
+
...d.operation?.$case === "firstN" && { first_n: d.operation.firstN },
|
|
809
|
+
...d.operation?.$case === "lastN" && { last_n: d.operation.lastN },
|
|
810
|
+
...d.operation?.$case === "firstDistinct" && { first_distinct: d.operation.firstDistinct },
|
|
811
|
+
...d.operation?.$case === "lastDistinct" && { last_distinct: d.operation.lastDistinct },
|
|
812
|
+
time_window: d.timeWindow
|
|
813
|
+
}));
|
|
814
|
+
const marshalApproxCountDistinctFunctionSchema = z.object({
|
|
815
|
+
input: z.string().optional(),
|
|
816
|
+
relativeSd: z.number().optional()
|
|
817
|
+
}).transform((d) => ({
|
|
818
|
+
input: d.input,
|
|
819
|
+
relative_sd: d.relativeSd
|
|
820
|
+
}));
|
|
821
|
+
const marshalApproxPercentileFunctionSchema = z.object({
|
|
822
|
+
input: z.string().optional(),
|
|
823
|
+
percentile: z.number().optional(),
|
|
824
|
+
accuracy: z.bigint().optional()
|
|
825
|
+
}).transform((d) => ({
|
|
826
|
+
input: d.input,
|
|
827
|
+
percentile: d.percentile,
|
|
828
|
+
accuracy: d.accuracy
|
|
829
|
+
}));
|
|
830
|
+
const marshalAuthConfigSchema = z.object({ authConfig: z.discriminatedUnion("$case", [z.object({
|
|
831
|
+
$case: z.literal("ucServiceCredentialName"),
|
|
832
|
+
ucServiceCredentialName: z.string()
|
|
833
|
+
}), z.object({
|
|
834
|
+
$case: z.literal("mtlsConfig"),
|
|
835
|
+
mtlsConfig: z.lazy(() => marshalMtlsConfigSchema)
|
|
836
|
+
})]).optional() }).transform((d) => ({
|
|
837
|
+
...d.authConfig?.$case === "ucServiceCredentialName" && { uc_service_credential_name: d.authConfig.ucServiceCredentialName },
|
|
838
|
+
...d.authConfig?.$case === "mtlsConfig" && { mtls_config: d.authConfig.mtlsConfig }
|
|
839
|
+
}));
|
|
840
|
+
const marshalAvgFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
841
|
+
const marshalBackfillSourceSchema = z.object({ backfillSource: z.discriminatedUnion("$case", [z.object({
|
|
842
|
+
$case: z.literal("deltaTableSource"),
|
|
843
|
+
deltaTableSource: z.lazy(() => marshalDeltaTableSourceSchema)
|
|
844
|
+
}), z.object({
|
|
845
|
+
$case: z.literal("deltaTableName"),
|
|
846
|
+
deltaTableName: z.string()
|
|
847
|
+
})]).optional() }).transform((d) => ({
|
|
848
|
+
...d.backfillSource?.$case === "deltaTableSource" && { delta_table_source: d.backfillSource.deltaTableSource },
|
|
849
|
+
...d.backfillSource?.$case === "deltaTableName" && { delta_table_name: d.backfillSource.deltaTableName }
|
|
850
|
+
}));
|
|
851
|
+
const marshalBatchCreateMaterializedFeaturesRequestSchema = z.object({ requests: z.array(z.lazy(() => marshalCreateMaterializedFeatureRequestSchema)).optional() }).transform((d) => ({ requests: d.requests }));
|
|
852
|
+
const marshalColumnIdentifierSchema = z.object({ variantExprPath: z.string().optional() }).transform((d) => ({ variant_expr_path: d.variantExprPath }));
|
|
853
|
+
const marshalColumnSelectionSchema = z.object({ column: z.string().optional() }).transform((d) => ({ column: d.column }));
|
|
854
|
+
const marshalContinuousWindowSchema = z.object({
|
|
855
|
+
windowDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
856
|
+
offset: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional()
|
|
857
|
+
}).transform((d) => ({
|
|
858
|
+
window_duration: d.windowDuration,
|
|
859
|
+
offset: d.offset
|
|
860
|
+
}));
|
|
861
|
+
const marshalCountFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
862
|
+
const marshalCreateMaterializedFeatureRequestSchema = z.object({ materializedFeature: z.lazy(() => marshalMaterializedFeatureSchema).optional() }).transform((d) => ({ materialized_feature: d.materializedFeature }));
|
|
863
|
+
const marshalCronScheduleSchema = z.object({ cronExpression: z.string().optional() }).transform((d) => ({ cron_expression: d.cronExpression }));
|
|
864
|
+
const marshalDataSourceSchema = z.object({ dataSource: z.discriminatedUnion("$case", [
|
|
865
|
+
z.object({
|
|
866
|
+
$case: z.literal("deltaTableSource"),
|
|
867
|
+
deltaTableSource: z.lazy(() => marshalDeltaTableSourceSchema)
|
|
868
|
+
}),
|
|
869
|
+
z.object({
|
|
870
|
+
$case: z.literal("kafkaSource"),
|
|
871
|
+
kafkaSource: z.lazy(() => marshalKafkaSourceSchema)
|
|
872
|
+
}),
|
|
873
|
+
z.object({
|
|
874
|
+
$case: z.literal("requestSource"),
|
|
875
|
+
requestSource: z.lazy(() => marshalRequestSourceSchema)
|
|
876
|
+
}),
|
|
877
|
+
z.object({
|
|
878
|
+
$case: z.literal("streamSource"),
|
|
879
|
+
streamSource: z.lazy(() => marshalStreamSourceSchema)
|
|
880
|
+
})
|
|
881
|
+
]).optional() }).transform((d) => ({
|
|
882
|
+
...d.dataSource?.$case === "deltaTableSource" && { delta_table_source: d.dataSource.deltaTableSource },
|
|
883
|
+
...d.dataSource?.$case === "kafkaSource" && { kafka_source: d.dataSource.kafkaSource },
|
|
884
|
+
...d.dataSource?.$case === "requestSource" && { request_source: d.dataSource.requestSource },
|
|
885
|
+
...d.dataSource?.$case === "streamSource" && { stream_source: d.dataSource.streamSource }
|
|
886
|
+
}));
|
|
887
|
+
const marshalDeltaTableSourceSchema = z.object({
|
|
888
|
+
fullName: z.string().optional(),
|
|
889
|
+
entityColumns: z.array(z.string()).optional(),
|
|
890
|
+
timeseriesColumn: z.string().optional(),
|
|
891
|
+
filterCondition: z.string().optional(),
|
|
892
|
+
transformationSql: z.string().optional(),
|
|
893
|
+
dataframeSchema: z.string().optional()
|
|
894
|
+
}).transform((d) => ({
|
|
895
|
+
full_name: d.fullName,
|
|
896
|
+
entity_columns: d.entityColumns,
|
|
897
|
+
timeseries_column: d.timeseriesColumn,
|
|
898
|
+
filter_condition: d.filterCondition,
|
|
899
|
+
transformation_sql: d.transformationSql,
|
|
900
|
+
dataframe_schema: d.dataframeSchema
|
|
901
|
+
}));
|
|
902
|
+
const marshalDirectMtlsConfigSchema = z.object({
|
|
903
|
+
bootstrapServers: z.string().optional(),
|
|
904
|
+
mtlsConfig: z.lazy(() => marshalMtlsConfigSchema).optional()
|
|
905
|
+
}).transform((d) => ({
|
|
906
|
+
bootstrap_servers: d.bootstrapServers,
|
|
907
|
+
mtls_config: d.mtlsConfig
|
|
908
|
+
}));
|
|
909
|
+
const marshalDirectSchemasSchema = z.object({
|
|
910
|
+
payloadSchema: z.lazy(() => marshalSchemaConfigSchema).optional(),
|
|
911
|
+
keySchema: z.lazy(() => marshalSchemaConfigSchema).optional()
|
|
912
|
+
}).transform((d) => ({
|
|
913
|
+
payload_schema: d.payloadSchema,
|
|
914
|
+
key_schema: d.keySchema
|
|
915
|
+
}));
|
|
916
|
+
const marshalEntityColumnSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
917
|
+
const marshalFeatureSchema = z.object({
|
|
918
|
+
fullName: z.string().optional(),
|
|
919
|
+
source: z.lazy(() => marshalDataSourceSchema).optional(),
|
|
920
|
+
inputs: z.array(z.string()).optional(),
|
|
921
|
+
function: z.lazy(() => marshalFunctionSchema).optional(),
|
|
922
|
+
timeWindow: z.lazy(() => marshalTimeWindowSchema).optional(),
|
|
923
|
+
description: z.string().optional(),
|
|
924
|
+
filterCondition: z.string().optional(),
|
|
925
|
+
lineageContext: z.lazy(() => marshalLineageContextSchema).optional(),
|
|
926
|
+
entities: z.array(z.lazy(() => marshalEntityColumnSchema)).optional(),
|
|
927
|
+
timeseriesColumn: z.lazy(() => marshalTimeseriesColumnSchema).optional(),
|
|
928
|
+
catalogName: z.string().optional(),
|
|
929
|
+
schemaName: z.string().optional(),
|
|
930
|
+
name: z.string().optional(),
|
|
931
|
+
createdAt: z.any().transform((d) => d.toString()).optional(),
|
|
932
|
+
createdBy: z.string().optional()
|
|
933
|
+
}).transform((d) => ({
|
|
934
|
+
full_name: d.fullName,
|
|
935
|
+
source: d.source,
|
|
936
|
+
inputs: d.inputs,
|
|
937
|
+
function: d.function,
|
|
938
|
+
time_window: d.timeWindow,
|
|
939
|
+
description: d.description,
|
|
940
|
+
filter_condition: d.filterCondition,
|
|
941
|
+
lineage_context: d.lineageContext,
|
|
942
|
+
entities: d.entities,
|
|
943
|
+
timeseries_column: d.timeseriesColumn,
|
|
944
|
+
catalog_name: d.catalogName,
|
|
945
|
+
schema_name: d.schemaName,
|
|
946
|
+
name: d.name,
|
|
947
|
+
created_at: d.createdAt,
|
|
948
|
+
created_by: d.createdBy
|
|
949
|
+
}));
|
|
950
|
+
const marshalFieldDefinitionSchema = z.object({
|
|
951
|
+
name: z.string().optional(),
|
|
952
|
+
dataType: z.string().optional()
|
|
953
|
+
}).transform((d) => ({
|
|
954
|
+
name: d.name,
|
|
955
|
+
data_type: d.dataType
|
|
956
|
+
}));
|
|
957
|
+
const marshalFirstDistinctFunctionSchema = z.object({
|
|
958
|
+
input: z.string().optional(),
|
|
959
|
+
n: z.bigint().optional()
|
|
960
|
+
}).transform((d) => ({
|
|
961
|
+
input: d.input,
|
|
962
|
+
n: d.n
|
|
963
|
+
}));
|
|
964
|
+
const marshalFirstFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
965
|
+
const marshalFirstNFunctionSchema = z.object({
|
|
966
|
+
input: z.string().optional(),
|
|
967
|
+
n: z.bigint().optional()
|
|
968
|
+
}).transform((d) => ({
|
|
969
|
+
input: d.input,
|
|
970
|
+
n: d.n
|
|
971
|
+
}));
|
|
972
|
+
const marshalFlatSchemaSchema = z.object({ fields: z.array(z.lazy(() => marshalFieldDefinitionSchema)).optional() }).transform((d) => ({ fields: d.fields }));
|
|
973
|
+
const marshalFunctionSchema = z.object({
|
|
974
|
+
functionType: z.string().optional(),
|
|
975
|
+
extraParameters: z.array(z.lazy(() => marshalFunction_ExtraParameterSchema)).optional(),
|
|
976
|
+
function: z.discriminatedUnion("$case", [z.object({
|
|
977
|
+
$case: z.literal("aggregationFunction"),
|
|
978
|
+
aggregationFunction: z.lazy(() => marshalAggregationFunctionSchema)
|
|
979
|
+
}), z.object({
|
|
980
|
+
$case: z.literal("columnSelection"),
|
|
981
|
+
columnSelection: z.lazy(() => marshalColumnSelectionSchema)
|
|
982
|
+
})]).optional()
|
|
983
|
+
}).transform((d) => ({
|
|
984
|
+
function_type: d.functionType,
|
|
985
|
+
extra_parameters: d.extraParameters,
|
|
986
|
+
...d.function?.$case === "aggregationFunction" && { aggregation_function: d.function.aggregationFunction },
|
|
987
|
+
...d.function?.$case === "columnSelection" && { column_selection: d.function.columnSelection }
|
|
988
|
+
}));
|
|
989
|
+
const marshalFunction_ExtraParameterSchema = z.object({
|
|
990
|
+
key: z.string().optional(),
|
|
991
|
+
value: z.string().optional()
|
|
992
|
+
}).transform((d) => ({
|
|
993
|
+
key: d.key,
|
|
994
|
+
value: d.value
|
|
995
|
+
}));
|
|
996
|
+
const marshalIngestionConfigSchema = z.object({
|
|
997
|
+
ingestionDestination: z.lazy(() => marshalIngestionDestinationSchema).optional(),
|
|
998
|
+
backfillSource: z.lazy(() => marshalBackfillSourceSchema).optional(),
|
|
999
|
+
deduplicationColumns: z.array(z.string()).optional(),
|
|
1000
|
+
ingestionPipelineId: z.string().optional(),
|
|
1001
|
+
ingestionJobId: z.bigint().optional(),
|
|
1002
|
+
backfillJobId: z.bigint().optional()
|
|
1003
|
+
}).transform((d) => ({
|
|
1004
|
+
ingestion_destination: d.ingestionDestination,
|
|
1005
|
+
backfill_source: d.backfillSource,
|
|
1006
|
+
deduplication_columns: d.deduplicationColumns,
|
|
1007
|
+
ingestion_pipeline_id: d.ingestionPipelineId,
|
|
1008
|
+
ingestion_job_id: d.ingestionJobId,
|
|
1009
|
+
backfill_job_id: d.backfillJobId
|
|
1010
|
+
}));
|
|
1011
|
+
const marshalIngestionDestinationSchema = z.object({ ingestionDestination: z.discriminatedUnion("$case", [z.object({
|
|
1012
|
+
$case: z.literal("deltaTableName"),
|
|
1013
|
+
deltaTableName: z.string()
|
|
1014
|
+
})]).optional() }).transform((d) => ({ ...d.ingestionDestination?.$case === "deltaTableName" && { delta_table_name: d.ingestionDestination.deltaTableName } }));
|
|
1015
|
+
const marshalJobContextSchema = z.object({
|
|
1016
|
+
jobId: z.bigint().optional(),
|
|
1017
|
+
jobRunId: z.bigint().optional()
|
|
1018
|
+
}).transform((d) => ({
|
|
1019
|
+
job_id: d.jobId,
|
|
1020
|
+
job_run_id: d.jobRunId
|
|
1021
|
+
}));
|
|
1022
|
+
const marshalKafkaConfigSchema = z.object({
|
|
1023
|
+
name: z.string().optional(),
|
|
1024
|
+
bootstrapServers: z.string().optional(),
|
|
1025
|
+
subscriptionMode: z.lazy(() => marshalSubscriptionModeSchema).optional(),
|
|
1026
|
+
authConfig: z.lazy(() => marshalAuthConfigSchema).optional(),
|
|
1027
|
+
keySchema: z.lazy(() => marshalSchemaConfigSchema).optional(),
|
|
1028
|
+
valueSchema: z.lazy(() => marshalSchemaConfigSchema).optional(),
|
|
1029
|
+
extraOptions: z.record(z.string(), z.string()).optional(),
|
|
1030
|
+
backfillSource: z.lazy(() => marshalBackfillSourceSchema).optional(),
|
|
1031
|
+
ingestionConfig: z.lazy(() => marshalIngestionConfigSchema).optional()
|
|
1032
|
+
}).transform((d) => ({
|
|
1033
|
+
name: d.name,
|
|
1034
|
+
bootstrap_servers: d.bootstrapServers,
|
|
1035
|
+
subscription_mode: d.subscriptionMode,
|
|
1036
|
+
auth_config: d.authConfig,
|
|
1037
|
+
key_schema: d.keySchema,
|
|
1038
|
+
value_schema: d.valueSchema,
|
|
1039
|
+
extra_options: d.extraOptions,
|
|
1040
|
+
backfill_source: d.backfillSource,
|
|
1041
|
+
ingestion_config: d.ingestionConfig
|
|
1042
|
+
}));
|
|
1043
|
+
const marshalKafkaSourceSchema = z.object({
|
|
1044
|
+
name: z.string().optional(),
|
|
1045
|
+
entityColumnIdentifiers: z.array(z.lazy(() => marshalColumnIdentifierSchema)).optional(),
|
|
1046
|
+
timeseriesColumnIdentifier: z.lazy(() => marshalColumnIdentifierSchema).optional(),
|
|
1047
|
+
filterCondition: z.string().optional()
|
|
1048
|
+
}).transform((d) => ({
|
|
1049
|
+
name: d.name,
|
|
1050
|
+
entity_column_identifiers: d.entityColumnIdentifiers,
|
|
1051
|
+
timeseries_column_identifier: d.timeseriesColumnIdentifier,
|
|
1052
|
+
filter_condition: d.filterCondition
|
|
1053
|
+
}));
|
|
1054
|
+
const marshalKafkaStreamConfigSchema = z.object({
|
|
1055
|
+
subscriptionMode: z.lazy(() => marshalKafkaSubscriptionModeSchema).optional(),
|
|
1056
|
+
extraOptions: z.record(z.string(), z.string()).optional()
|
|
1057
|
+
}).transform((d) => ({
|
|
1058
|
+
subscription_mode: d.subscriptionMode,
|
|
1059
|
+
extra_options: d.extraOptions
|
|
1060
|
+
}));
|
|
1061
|
+
const marshalKafkaSubscriptionModeSchema = z.object({ subscriptionMode: z.discriminatedUnion("$case", [
|
|
1062
|
+
z.object({
|
|
1063
|
+
$case: z.literal("assign"),
|
|
1064
|
+
assign: z.string()
|
|
1065
|
+
}),
|
|
1066
|
+
z.object({
|
|
1067
|
+
$case: z.literal("subscribe"),
|
|
1068
|
+
subscribe: z.string()
|
|
1069
|
+
}),
|
|
1070
|
+
z.object({
|
|
1071
|
+
$case: z.literal("subscribePattern"),
|
|
1072
|
+
subscribePattern: z.string()
|
|
1073
|
+
})
|
|
1074
|
+
]).optional() }).transform((d) => ({
|
|
1075
|
+
...d.subscriptionMode?.$case === "assign" && { assign: d.subscriptionMode.assign },
|
|
1076
|
+
...d.subscriptionMode?.$case === "subscribe" && { subscribe: d.subscriptionMode.subscribe },
|
|
1077
|
+
...d.subscriptionMode?.$case === "subscribePattern" && { subscribe_pattern: d.subscriptionMode.subscribePattern }
|
|
1078
|
+
}));
|
|
1079
|
+
const marshalKinesisStreamConfigSchema = z.object({
|
|
1080
|
+
streamIdentifier: z.discriminatedUnion("$case", [z.object({
|
|
1081
|
+
$case: z.literal("streamNames"),
|
|
1082
|
+
streamNames: z.lazy(() => marshalStreamNameListSchema)
|
|
1083
|
+
}), z.object({
|
|
1084
|
+
$case: z.literal("streamArns"),
|
|
1085
|
+
streamArns: z.lazy(() => marshalStreamArnListSchema)
|
|
1086
|
+
})]).optional(),
|
|
1087
|
+
extraOptions: z.record(z.string(), z.string()).optional()
|
|
1088
|
+
}).transform((d) => ({
|
|
1089
|
+
...d.streamIdentifier?.$case === "streamNames" && { stream_names: d.streamIdentifier.streamNames },
|
|
1090
|
+
...d.streamIdentifier?.$case === "streamArns" && { stream_arns: d.streamIdentifier.streamArns },
|
|
1091
|
+
extra_options: d.extraOptions
|
|
1092
|
+
}));
|
|
1093
|
+
const marshalLastDistinctFunctionSchema = z.object({
|
|
1094
|
+
input: z.string().optional(),
|
|
1095
|
+
n: z.bigint().optional()
|
|
1096
|
+
}).transform((d) => ({
|
|
1097
|
+
input: d.input,
|
|
1098
|
+
n: d.n
|
|
1099
|
+
}));
|
|
1100
|
+
const marshalLastFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
1101
|
+
const marshalLastNFunctionSchema = z.object({
|
|
1102
|
+
input: z.string().optional(),
|
|
1103
|
+
n: z.bigint().optional()
|
|
1104
|
+
}).transform((d) => ({
|
|
1105
|
+
input: d.input,
|
|
1106
|
+
n: d.n
|
|
1107
|
+
}));
|
|
1108
|
+
const marshalLineageContextSchema = z.object({
|
|
1109
|
+
notebookId: z.bigint().optional(),
|
|
1110
|
+
jobContext: z.lazy(() => marshalJobContextSchema).optional()
|
|
1111
|
+
}).transform((d) => ({
|
|
1112
|
+
notebook_id: d.notebookId,
|
|
1113
|
+
job_context: d.jobContext
|
|
1114
|
+
}));
|
|
1115
|
+
const marshalMaterializedFeatureSchema = z.object({
|
|
1116
|
+
materializedFeatureId: z.string().optional(),
|
|
1117
|
+
featureName: z.string().optional(),
|
|
1118
|
+
destination: z.discriminatedUnion("$case", [z.object({
|
|
1119
|
+
$case: z.literal("offlineStoreConfig"),
|
|
1120
|
+
offlineStoreConfig: z.lazy(() => marshalOfflineStoreConfigSchema)
|
|
1121
|
+
}), z.object({
|
|
1122
|
+
$case: z.literal("onlineStoreConfig"),
|
|
1123
|
+
onlineStoreConfig: z.lazy(() => marshalOnlineStoreConfigSchema)
|
|
1124
|
+
})]).optional(),
|
|
1125
|
+
tableName: z.string().optional(),
|
|
1126
|
+
pipelineScheduleState: z.string().optional(),
|
|
1127
|
+
lastMaterializationTime: z.any().transform((d) => d.toString()).optional(),
|
|
1128
|
+
cronSchedule: z.string().optional(),
|
|
1129
|
+
isOnline: z.boolean().optional(),
|
|
1130
|
+
trigger: z.discriminatedUnion("$case", [
|
|
1131
|
+
z.object({
|
|
1132
|
+
$case: z.literal("cronScheduleTrigger"),
|
|
1133
|
+
cronScheduleTrigger: z.lazy(() => marshalCronScheduleSchema)
|
|
1134
|
+
}),
|
|
1135
|
+
z.object({
|
|
1136
|
+
$case: z.literal("tableTrigger"),
|
|
1137
|
+
tableTrigger: z.lazy(() => marshalTableTriggerSchema)
|
|
1138
|
+
}),
|
|
1139
|
+
z.object({
|
|
1140
|
+
$case: z.literal("streamingMode"),
|
|
1141
|
+
streamingMode: z.lazy(() => marshalStreamingModeSchema)
|
|
1142
|
+
})
|
|
1143
|
+
]).optional()
|
|
1144
|
+
}).transform((d) => ({
|
|
1145
|
+
materialized_feature_id: d.materializedFeatureId,
|
|
1146
|
+
feature_name: d.featureName,
|
|
1147
|
+
...d.destination?.$case === "offlineStoreConfig" && { offline_store_config: d.destination.offlineStoreConfig },
|
|
1148
|
+
...d.destination?.$case === "onlineStoreConfig" && { online_store_config: d.destination.onlineStoreConfig },
|
|
1149
|
+
table_name: d.tableName,
|
|
1150
|
+
pipeline_schedule_state: d.pipelineScheduleState,
|
|
1151
|
+
last_materialization_time: d.lastMaterializationTime,
|
|
1152
|
+
cron_schedule: d.cronSchedule,
|
|
1153
|
+
is_online: d.isOnline,
|
|
1154
|
+
...d.trigger?.$case === "cronScheduleTrigger" && { cron_schedule_trigger: d.trigger.cronScheduleTrigger },
|
|
1155
|
+
...d.trigger?.$case === "tableTrigger" && { table_trigger: d.trigger.tableTrigger },
|
|
1156
|
+
...d.trigger?.$case === "streamingMode" && { streaming_mode: d.trigger.streamingMode }
|
|
1157
|
+
}));
|
|
1158
|
+
const marshalMaxFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
1159
|
+
const marshalMinFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
1160
|
+
const marshalMtlsConfigSchema = z.object({
|
|
1161
|
+
keystoreLocation: z.string().optional(),
|
|
1162
|
+
keystorePasswordRef: z.lazy(() => marshalSecretScopeReferenceSchema).optional(),
|
|
1163
|
+
keyPasswordRef: z.lazy(() => marshalSecretScopeReferenceSchema).optional(),
|
|
1164
|
+
truststoreLocation: z.string().optional(),
|
|
1165
|
+
truststorePasswordRef: z.lazy(() => marshalSecretScopeReferenceSchema).optional(),
|
|
1166
|
+
disableHostnameVerification: z.boolean().optional()
|
|
1167
|
+
}).transform((d) => ({
|
|
1168
|
+
keystore_location: d.keystoreLocation,
|
|
1169
|
+
keystore_password_ref: d.keystorePasswordRef,
|
|
1170
|
+
key_password_ref: d.keyPasswordRef,
|
|
1171
|
+
truststore_location: d.truststoreLocation,
|
|
1172
|
+
truststore_password_ref: d.truststorePasswordRef,
|
|
1173
|
+
disable_hostname_verification: d.disableHostnameVerification
|
|
1174
|
+
}));
|
|
1175
|
+
const marshalOfflineStoreConfigSchema = z.object({
|
|
1176
|
+
catalogName: z.string().optional(),
|
|
1177
|
+
schemaName: z.string().optional(),
|
|
1178
|
+
tableNamePrefix: z.string().optional()
|
|
1179
|
+
}).transform((d) => ({
|
|
1180
|
+
catalog_name: d.catalogName,
|
|
1181
|
+
schema_name: d.schemaName,
|
|
1182
|
+
table_name_prefix: d.tableNamePrefix
|
|
1183
|
+
}));
|
|
1184
|
+
const marshalOnlineStoreConfigSchema = z.object({
|
|
1185
|
+
catalogName: z.string().optional(),
|
|
1186
|
+
schemaName: z.string().optional(),
|
|
1187
|
+
tableNamePrefix: z.string().optional(),
|
|
1188
|
+
onlineStoreName: z.string().optional()
|
|
1189
|
+
}).transform((d) => ({
|
|
1190
|
+
catalog_name: d.catalogName,
|
|
1191
|
+
schema_name: d.schemaName,
|
|
1192
|
+
table_name_prefix: d.tableNamePrefix,
|
|
1193
|
+
online_store_name: d.onlineStoreName
|
|
1194
|
+
}));
|
|
1195
|
+
const marshalProtoSchemaSpecSchema = z.object({
|
|
1196
|
+
schemaText: z.string().optional(),
|
|
1197
|
+
messageName: z.string().optional()
|
|
1198
|
+
}).transform((d) => ({
|
|
1199
|
+
schema_text: d.schemaText,
|
|
1200
|
+
message_name: d.messageName
|
|
1201
|
+
}));
|
|
1202
|
+
const marshalRequestSourceSchema = z.object({ schema: z.discriminatedUnion("$case", [z.object({
|
|
1203
|
+
$case: z.literal("flatSchema"),
|
|
1204
|
+
flatSchema: z.lazy(() => marshalFlatSchemaSchema)
|
|
1205
|
+
})]).optional() }).transform((d) => ({ ...d.schema?.$case === "flatSchema" && { flat_schema: d.schema.flatSchema } }));
|
|
1206
|
+
const marshalRollingWindowSchema = z.object({
|
|
1207
|
+
windowDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
1208
|
+
delay: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional()
|
|
1209
|
+
}).transform((d) => ({
|
|
1210
|
+
window_duration: d.windowDuration,
|
|
1211
|
+
delay: d.delay
|
|
1212
|
+
}));
|
|
1213
|
+
const marshalSawtoothWindowSchema = z.object({
|
|
1214
|
+
windowDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
1215
|
+
delay: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional()
|
|
1216
|
+
}).transform((d) => ({
|
|
1217
|
+
window_duration: d.windowDuration,
|
|
1218
|
+
delay: d.delay
|
|
1219
|
+
}));
|
|
1220
|
+
const marshalSchemaConfigSchema = z.object({ schema: z.discriminatedUnion("$case", [
|
|
1221
|
+
z.object({
|
|
1222
|
+
$case: z.literal("jsonSchema"),
|
|
1223
|
+
jsonSchema: z.string()
|
|
1224
|
+
}),
|
|
1225
|
+
z.object({
|
|
1226
|
+
$case: z.literal("avroSchema"),
|
|
1227
|
+
avroSchema: z.string()
|
|
1228
|
+
}),
|
|
1229
|
+
z.object({
|
|
1230
|
+
$case: z.literal("protoSchema"),
|
|
1231
|
+
protoSchema: z.lazy(() => marshalProtoSchemaSpecSchema)
|
|
1232
|
+
})
|
|
1233
|
+
]).optional() }).transform((d) => ({
|
|
1234
|
+
...d.schema?.$case === "jsonSchema" && { json_schema: d.schema.jsonSchema },
|
|
1235
|
+
...d.schema?.$case === "avroSchema" && { avro_schema: d.schema.avroSchema },
|
|
1236
|
+
...d.schema?.$case === "protoSchema" && { proto_schema: d.schema.protoSchema }
|
|
1237
|
+
}));
|
|
1238
|
+
const marshalSchemaLocatorSchema = z.object({
|
|
1239
|
+
registrySchema: z.discriminatedUnion("$case", [z.object({
|
|
1240
|
+
$case: z.literal("confluentSchema"),
|
|
1241
|
+
confluentSchema: z.lazy(() => marshalSchemaLocator_ConfluentSchemaSchema)
|
|
1242
|
+
})]).optional(),
|
|
1243
|
+
format: z.string().optional()
|
|
1244
|
+
}).transform((d) => ({
|
|
1245
|
+
...d.registrySchema?.$case === "confluentSchema" && { confluent_schema: d.registrySchema.confluentSchema },
|
|
1246
|
+
format: d.format
|
|
1247
|
+
}));
|
|
1248
|
+
const marshalSchemaLocator_ConfluentSchemaSchema = z.object({ subject: z.string().optional() }).transform((d) => ({ subject: d.subject }));
|
|
1249
|
+
const marshalSchemaRegistryConfigSchema = z.object({
|
|
1250
|
+
ucConnection: z.string().optional(),
|
|
1251
|
+
apiSecretRef: z.lazy(() => marshalSecretScopeReferenceSchema).optional(),
|
|
1252
|
+
payloadSchemaLocator: z.lazy(() => marshalSchemaLocatorSchema).optional(),
|
|
1253
|
+
keySchemaLocator: z.lazy(() => marshalSchemaLocatorSchema).optional()
|
|
1254
|
+
}).transform((d) => ({
|
|
1255
|
+
uc_connection: d.ucConnection,
|
|
1256
|
+
api_secret_ref: d.apiSecretRef,
|
|
1257
|
+
payload_schema_locator: d.payloadSchemaLocator,
|
|
1258
|
+
key_schema_locator: d.keySchemaLocator
|
|
1259
|
+
}));
|
|
1260
|
+
const marshalSecretScopeReferenceSchema = z.object({
|
|
1261
|
+
scope: z.string().optional(),
|
|
1262
|
+
key: z.string().optional()
|
|
1263
|
+
}).transform((d) => ({
|
|
1264
|
+
scope: d.scope,
|
|
1265
|
+
key: d.key
|
|
1266
|
+
}));
|
|
1267
|
+
const marshalSlidingWindowSchema = z.object({
|
|
1268
|
+
windowDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
1269
|
+
slideDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional()
|
|
1270
|
+
}).transform((d) => ({
|
|
1271
|
+
window_duration: d.windowDuration,
|
|
1272
|
+
slide_duration: d.slideDuration
|
|
1273
|
+
}));
|
|
1274
|
+
const marshalStddevPopFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
1275
|
+
const marshalStddevSampFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
1276
|
+
const marshalStreamSchema = z.object({
|
|
1277
|
+
name: z.string().optional(),
|
|
1278
|
+
description: z.string().optional(),
|
|
1279
|
+
sourceConfig: z.lazy(() => marshalStreamSourceConfigSchema).optional(),
|
|
1280
|
+
connectionConfig: z.lazy(() => marshalStreamConnectionConfigSchema).optional(),
|
|
1281
|
+
schemaConfig: z.lazy(() => marshalStreamSchemaConfigSchema).optional(),
|
|
1282
|
+
ingestionConfig: z.lazy(() => marshalIngestionConfigSchema).optional(),
|
|
1283
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1284
|
+
createdBy: z.string().optional(),
|
|
1285
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
1286
|
+
updatedBy: z.string().optional(),
|
|
1287
|
+
browseOnly: z.boolean().optional()
|
|
1288
|
+
}).transform((d) => ({
|
|
1289
|
+
name: d.name,
|
|
1290
|
+
description: d.description,
|
|
1291
|
+
source_config: d.sourceConfig,
|
|
1292
|
+
connection_config: d.connectionConfig,
|
|
1293
|
+
schema_config: d.schemaConfig,
|
|
1294
|
+
ingestion_config: d.ingestionConfig,
|
|
1295
|
+
create_time: d.createTime,
|
|
1296
|
+
created_by: d.createdBy,
|
|
1297
|
+
update_time: d.updateTime,
|
|
1298
|
+
updated_by: d.updatedBy,
|
|
1299
|
+
browse_only: d.browseOnly
|
|
1300
|
+
}));
|
|
1301
|
+
const marshalStreamArnListSchema = z.object({ arns: z.array(z.string()).optional() }).transform((d) => ({ arns: d.arns }));
|
|
1302
|
+
const marshalStreamConnectionConfigSchema = z.object({ connectionConfig: z.discriminatedUnion("$case", [z.object({
|
|
1303
|
+
$case: z.literal("ucConnectionName"),
|
|
1304
|
+
ucConnectionName: z.string()
|
|
1305
|
+
}), z.object({
|
|
1306
|
+
$case: z.literal("directMtlsConfig"),
|
|
1307
|
+
directMtlsConfig: z.lazy(() => marshalDirectMtlsConfigSchema)
|
|
1308
|
+
})]).optional() }).transform((d) => ({
|
|
1309
|
+
...d.connectionConfig?.$case === "ucConnectionName" && { uc_connection_name: d.connectionConfig.ucConnectionName },
|
|
1310
|
+
...d.connectionConfig?.$case === "directMtlsConfig" && { direct_mtls_config: d.connectionConfig.directMtlsConfig }
|
|
1311
|
+
}));
|
|
1312
|
+
const marshalStreamNameListSchema = z.object({ names: z.array(z.string()).optional() }).transform((d) => ({ names: d.names }));
|
|
1313
|
+
const marshalStreamSchemaConfigSchema = z.object({ schemaConfig: z.discriminatedUnion("$case", [z.object({
|
|
1314
|
+
$case: z.literal("directSchemas"),
|
|
1315
|
+
directSchemas: z.lazy(() => marshalDirectSchemasSchema)
|
|
1316
|
+
}), z.object({
|
|
1317
|
+
$case: z.literal("schemaRegistryConfig"),
|
|
1318
|
+
schemaRegistryConfig: z.lazy(() => marshalSchemaRegistryConfigSchema)
|
|
1319
|
+
})]).optional() }).transform((d) => ({
|
|
1320
|
+
...d.schemaConfig?.$case === "directSchemas" && { direct_schemas: d.schemaConfig.directSchemas },
|
|
1321
|
+
...d.schemaConfig?.$case === "schemaRegistryConfig" && { schema_registry_config: d.schemaConfig.schemaRegistryConfig }
|
|
1322
|
+
}));
|
|
1323
|
+
const marshalStreamSourceSchema = z.object({
|
|
1324
|
+
fullName: z.string().optional(),
|
|
1325
|
+
filterCondition: z.string().optional(),
|
|
1326
|
+
transformationSql: z.string().optional(),
|
|
1327
|
+
dataframeSchema: z.string().optional()
|
|
1328
|
+
}).transform((d) => ({
|
|
1329
|
+
full_name: d.fullName,
|
|
1330
|
+
filter_condition: d.filterCondition,
|
|
1331
|
+
transformation_sql: d.transformationSql,
|
|
1332
|
+
dataframe_schema: d.dataframeSchema
|
|
1333
|
+
}));
|
|
1334
|
+
const marshalStreamSourceConfigSchema = z.object({ sourceConfig: z.discriminatedUnion("$case", [z.object({
|
|
1335
|
+
$case: z.literal("kafkaStreamConfig"),
|
|
1336
|
+
kafkaStreamConfig: z.lazy(() => marshalKafkaStreamConfigSchema)
|
|
1337
|
+
}), z.object({
|
|
1338
|
+
$case: z.literal("kinesisStreamConfig"),
|
|
1339
|
+
kinesisStreamConfig: z.lazy(() => marshalKinesisStreamConfigSchema)
|
|
1340
|
+
})]).optional() }).transform((d) => ({
|
|
1341
|
+
...d.sourceConfig?.$case === "kafkaStreamConfig" && { kafka_stream_config: d.sourceConfig.kafkaStreamConfig },
|
|
1342
|
+
...d.sourceConfig?.$case === "kinesisStreamConfig" && { kinesis_stream_config: d.sourceConfig.kinesisStreamConfig }
|
|
1343
|
+
}));
|
|
1344
|
+
const marshalStreamingModeSchema = z.object({
|
|
1345
|
+
mode: z.string().optional(),
|
|
1346
|
+
freshnessTarget: z.string().optional()
|
|
1347
|
+
}).transform((d) => ({
|
|
1348
|
+
mode: d.mode,
|
|
1349
|
+
freshness_target: d.freshnessTarget
|
|
1350
|
+
}));
|
|
1351
|
+
const marshalSubscriptionModeSchema = z.object({ subscriptionMode: z.discriminatedUnion("$case", [
|
|
1352
|
+
z.object({
|
|
1353
|
+
$case: z.literal("assign"),
|
|
1354
|
+
assign: z.string()
|
|
1355
|
+
}),
|
|
1356
|
+
z.object({
|
|
1357
|
+
$case: z.literal("subscribe"),
|
|
1358
|
+
subscribe: z.string()
|
|
1359
|
+
}),
|
|
1360
|
+
z.object({
|
|
1361
|
+
$case: z.literal("subscribePattern"),
|
|
1362
|
+
subscribePattern: z.string()
|
|
1363
|
+
})
|
|
1364
|
+
]).optional() }).transform((d) => ({
|
|
1365
|
+
...d.subscriptionMode?.$case === "assign" && { assign: d.subscriptionMode.assign },
|
|
1366
|
+
...d.subscriptionMode?.$case === "subscribe" && { subscribe: d.subscriptionMode.subscribe },
|
|
1367
|
+
...d.subscriptionMode?.$case === "subscribePattern" && { subscribe_pattern: d.subscriptionMode.subscribePattern }
|
|
1368
|
+
}));
|
|
1369
|
+
const marshalSumFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
1370
|
+
const marshalTableTriggerSchema = z.object({});
|
|
1371
|
+
const marshalTimeWindowSchema = z.object({ windowType: z.discriminatedUnion("$case", [
|
|
1372
|
+
z.object({
|
|
1373
|
+
$case: z.literal("continuous"),
|
|
1374
|
+
continuous: z.lazy(() => marshalContinuousWindowSchema)
|
|
1375
|
+
}),
|
|
1376
|
+
z.object({
|
|
1377
|
+
$case: z.literal("tumbling"),
|
|
1378
|
+
tumbling: z.lazy(() => marshalTumblingWindowSchema)
|
|
1379
|
+
}),
|
|
1380
|
+
z.object({
|
|
1381
|
+
$case: z.literal("sliding"),
|
|
1382
|
+
sliding: z.lazy(() => marshalSlidingWindowSchema)
|
|
1383
|
+
}),
|
|
1384
|
+
z.object({
|
|
1385
|
+
$case: z.literal("rolling"),
|
|
1386
|
+
rolling: z.lazy(() => marshalRollingWindowSchema)
|
|
1387
|
+
}),
|
|
1388
|
+
z.object({
|
|
1389
|
+
$case: z.literal("sawtooth"),
|
|
1390
|
+
sawtooth: z.lazy(() => marshalSawtoothWindowSchema)
|
|
1391
|
+
})
|
|
1392
|
+
]).optional() }).transform((d) => ({
|
|
1393
|
+
...d.windowType?.$case === "continuous" && { continuous: d.windowType.continuous },
|
|
1394
|
+
...d.windowType?.$case === "tumbling" && { tumbling: d.windowType.tumbling },
|
|
1395
|
+
...d.windowType?.$case === "sliding" && { sliding: d.windowType.sliding },
|
|
1396
|
+
...d.windowType?.$case === "rolling" && { rolling: d.windowType.rolling },
|
|
1397
|
+
...d.windowType?.$case === "sawtooth" && { sawtooth: d.windowType.sawtooth }
|
|
1398
|
+
}));
|
|
1399
|
+
const marshalTimeseriesColumnSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
1400
|
+
const marshalTumblingWindowSchema = z.object({ windowDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional() }).transform((d) => ({ window_duration: d.windowDuration }));
|
|
1401
|
+
const marshalVarPopFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
1402
|
+
const marshalVarSampFunctionSchema = z.object({ input: z.string().optional() }).transform((d) => ({ input: d.input }));
|
|
2300
1403
|
const aggregationFunctionFieldMaskSchema = {
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
1404
|
+
approxCountDistinct: {
|
|
1405
|
+
wire: "approx_count_distinct",
|
|
1406
|
+
children: () => approxCountDistinctFunctionFieldMaskSchema
|
|
1407
|
+
},
|
|
1408
|
+
approxPercentile: {
|
|
1409
|
+
wire: "approx_percentile",
|
|
1410
|
+
children: () => approxPercentileFunctionFieldMaskSchema
|
|
1411
|
+
},
|
|
1412
|
+
avg: {
|
|
1413
|
+
wire: "avg",
|
|
1414
|
+
children: () => avgFunctionFieldMaskSchema
|
|
1415
|
+
},
|
|
1416
|
+
countFunction: {
|
|
1417
|
+
wire: "count_function",
|
|
1418
|
+
children: () => countFunctionFieldMaskSchema
|
|
1419
|
+
},
|
|
1420
|
+
first: {
|
|
1421
|
+
wire: "first",
|
|
1422
|
+
children: () => firstFunctionFieldMaskSchema
|
|
1423
|
+
},
|
|
1424
|
+
firstDistinct: {
|
|
1425
|
+
wire: "first_distinct",
|
|
1426
|
+
children: () => firstDistinctFunctionFieldMaskSchema
|
|
1427
|
+
},
|
|
1428
|
+
firstN: {
|
|
1429
|
+
wire: "first_n",
|
|
1430
|
+
children: () => firstNFunctionFieldMaskSchema
|
|
1431
|
+
},
|
|
1432
|
+
last: {
|
|
1433
|
+
wire: "last",
|
|
1434
|
+
children: () => lastFunctionFieldMaskSchema
|
|
1435
|
+
},
|
|
1436
|
+
lastDistinct: {
|
|
1437
|
+
wire: "last_distinct",
|
|
1438
|
+
children: () => lastDistinctFunctionFieldMaskSchema
|
|
1439
|
+
},
|
|
1440
|
+
lastN: {
|
|
1441
|
+
wire: "last_n",
|
|
1442
|
+
children: () => lastNFunctionFieldMaskSchema
|
|
1443
|
+
},
|
|
1444
|
+
max: {
|
|
1445
|
+
wire: "max",
|
|
1446
|
+
children: () => maxFunctionFieldMaskSchema
|
|
1447
|
+
},
|
|
1448
|
+
min: {
|
|
1449
|
+
wire: "min",
|
|
1450
|
+
children: () => minFunctionFieldMaskSchema
|
|
1451
|
+
},
|
|
1452
|
+
stddevPop: {
|
|
1453
|
+
wire: "stddev_pop",
|
|
1454
|
+
children: () => stddevPopFunctionFieldMaskSchema
|
|
1455
|
+
},
|
|
1456
|
+
stddevSamp: {
|
|
1457
|
+
wire: "stddev_samp",
|
|
1458
|
+
children: () => stddevSampFunctionFieldMaskSchema
|
|
1459
|
+
},
|
|
1460
|
+
sum: {
|
|
1461
|
+
wire: "sum",
|
|
1462
|
+
children: () => sumFunctionFieldMaskSchema
|
|
1463
|
+
},
|
|
1464
|
+
timeWindow: {
|
|
1465
|
+
wire: "time_window",
|
|
1466
|
+
children: () => timeWindowFieldMaskSchema
|
|
1467
|
+
},
|
|
1468
|
+
varPop: {
|
|
1469
|
+
wire: "var_pop",
|
|
1470
|
+
children: () => varPopFunctionFieldMaskSchema
|
|
1471
|
+
},
|
|
1472
|
+
varSamp: {
|
|
1473
|
+
wire: "var_samp",
|
|
1474
|
+
children: () => varSampFunctionFieldMaskSchema
|
|
1475
|
+
}
|
|
2340
1476
|
};
|
|
2341
1477
|
const approxCountDistinctFunctionFieldMaskSchema = {
|
|
2342
|
-
|
|
2343
|
-
|
|
1478
|
+
input: { wire: "input" },
|
|
1479
|
+
relativeSd: { wire: "relative_sd" }
|
|
2344
1480
|
};
|
|
2345
1481
|
const approxPercentileFunctionFieldMaskSchema = {
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
1482
|
+
accuracy: { wire: "accuracy" },
|
|
1483
|
+
input: { wire: "input" },
|
|
1484
|
+
percentile: { wire: "percentile" }
|
|
2349
1485
|
};
|
|
2350
1486
|
const authConfigFieldMaskSchema = {
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
1487
|
+
mtlsConfig: {
|
|
1488
|
+
wire: "mtls_config",
|
|
1489
|
+
children: () => mtlsConfigFieldMaskSchema
|
|
1490
|
+
},
|
|
1491
|
+
ucServiceCredentialName: { wire: "uc_service_credential_name" }
|
|
2356
1492
|
};
|
|
1493
|
+
const avgFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
2357
1494
|
const backfillSourceFieldMaskSchema = {
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
};
|
|
2364
|
-
const columnIdentifierFieldMaskSchema = {
|
|
2365
|
-
|
|
2366
|
-
};
|
|
2367
|
-
const columnSelectionFieldMaskSchema = {
|
|
2368
|
-
column: { wire: 'column' },
|
|
2369
|
-
};
|
|
1495
|
+
deltaTableName: { wire: "delta_table_name" },
|
|
1496
|
+
deltaTableSource: {
|
|
1497
|
+
wire: "delta_table_source",
|
|
1498
|
+
children: () => deltaTableSourceFieldMaskSchema
|
|
1499
|
+
}
|
|
1500
|
+
};
|
|
1501
|
+
const columnIdentifierFieldMaskSchema = { variantExprPath: { wire: "variant_expr_path" } };
|
|
1502
|
+
const columnSelectionFieldMaskSchema = { column: { wire: "column" } };
|
|
2370
1503
|
const continuousWindowFieldMaskSchema = {
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
};
|
|
2374
|
-
const countFunctionFieldMaskSchema = {
|
|
2375
|
-
input: { wire: 'input' },
|
|
2376
|
-
};
|
|
2377
|
-
const cronScheduleFieldMaskSchema = {
|
|
2378
|
-
cronExpression: { wire: 'cron_expression' },
|
|
1504
|
+
offset: { wire: "offset" },
|
|
1505
|
+
windowDuration: { wire: "window_duration" }
|
|
2379
1506
|
};
|
|
1507
|
+
const countFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
1508
|
+
const cronScheduleFieldMaskSchema = { cronExpression: { wire: "cron_expression" } };
|
|
2380
1509
|
const dataSourceFieldMaskSchema = {
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
1510
|
+
deltaTableSource: {
|
|
1511
|
+
wire: "delta_table_source",
|
|
1512
|
+
children: () => deltaTableSourceFieldMaskSchema
|
|
1513
|
+
},
|
|
1514
|
+
kafkaSource: {
|
|
1515
|
+
wire: "kafka_source",
|
|
1516
|
+
children: () => kafkaSourceFieldMaskSchema
|
|
1517
|
+
},
|
|
1518
|
+
requestSource: {
|
|
1519
|
+
wire: "request_source",
|
|
1520
|
+
children: () => requestSourceFieldMaskSchema
|
|
1521
|
+
},
|
|
1522
|
+
streamSource: {
|
|
1523
|
+
wire: "stream_source",
|
|
1524
|
+
children: () => streamSourceFieldMaskSchema
|
|
1525
|
+
}
|
|
2397
1526
|
};
|
|
2398
1527
|
const deltaTableSourceFieldMaskSchema = {
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
1528
|
+
dataframeSchema: { wire: "dataframe_schema" },
|
|
1529
|
+
entityColumns: { wire: "entity_columns" },
|
|
1530
|
+
filterCondition: { wire: "filter_condition" },
|
|
1531
|
+
fullName: { wire: "full_name" },
|
|
1532
|
+
timeseriesColumn: { wire: "timeseries_column" },
|
|
1533
|
+
transformationSql: { wire: "transformation_sql" }
|
|
2405
1534
|
};
|
|
2406
1535
|
const directMtlsConfigFieldMaskSchema = {
|
|
2407
|
-
|
|
2408
|
-
|
|
1536
|
+
bootstrapServers: { wire: "bootstrap_servers" },
|
|
1537
|
+
mtlsConfig: {
|
|
1538
|
+
wire: "mtls_config",
|
|
1539
|
+
children: () => mtlsConfigFieldMaskSchema
|
|
1540
|
+
}
|
|
2409
1541
|
};
|
|
2410
1542
|
const directSchemasFieldMaskSchema = {
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
1543
|
+
keySchema: {
|
|
1544
|
+
wire: "key_schema",
|
|
1545
|
+
children: () => schemaConfigFieldMaskSchema
|
|
1546
|
+
},
|
|
1547
|
+
payloadSchema: {
|
|
1548
|
+
wire: "payload_schema",
|
|
1549
|
+
children: () => schemaConfigFieldMaskSchema
|
|
1550
|
+
}
|
|
2416
1551
|
};
|
|
2417
1552
|
const featureFieldMaskSchema = {
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
|
|
1553
|
+
catalogName: { wire: "catalog_name" },
|
|
1554
|
+
createdAt: { wire: "created_at" },
|
|
1555
|
+
createdBy: { wire: "created_by" },
|
|
1556
|
+
description: { wire: "description" },
|
|
1557
|
+
entities: { wire: "entities" },
|
|
1558
|
+
filterCondition: { wire: "filter_condition" },
|
|
1559
|
+
fullName: { wire: "full_name" },
|
|
1560
|
+
function: {
|
|
1561
|
+
wire: "function",
|
|
1562
|
+
children: () => functionFieldMaskSchema
|
|
1563
|
+
},
|
|
1564
|
+
inputs: { wire: "inputs" },
|
|
1565
|
+
lineageContext: {
|
|
1566
|
+
wire: "lineage_context",
|
|
1567
|
+
children: () => lineageContextFieldMaskSchema
|
|
1568
|
+
},
|
|
1569
|
+
name: { wire: "name" },
|
|
1570
|
+
schemaName: { wire: "schema_name" },
|
|
1571
|
+
source: {
|
|
1572
|
+
wire: "source",
|
|
1573
|
+
children: () => dataSourceFieldMaskSchema
|
|
1574
|
+
},
|
|
1575
|
+
timeWindow: {
|
|
1576
|
+
wire: "time_window",
|
|
1577
|
+
children: () => timeWindowFieldMaskSchema
|
|
1578
|
+
},
|
|
1579
|
+
timeseriesColumn: {
|
|
1580
|
+
wire: "timeseries_column",
|
|
1581
|
+
children: () => timeseriesColumnFieldMaskSchema
|
|
1582
|
+
}
|
|
1583
|
+
};
|
|
1584
|
+
function featureFieldMask(...paths) {
|
|
1585
|
+
return FieldMask.build(paths, featureFieldMaskSchema);
|
|
2442
1586
|
}
|
|
2443
1587
|
const firstDistinctFunctionFieldMaskSchema = {
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
};
|
|
2447
|
-
const firstFunctionFieldMaskSchema = {
|
|
2448
|
-
input: { wire: 'input' },
|
|
1588
|
+
input: { wire: "input" },
|
|
1589
|
+
n: { wire: "n" }
|
|
2449
1590
|
};
|
|
1591
|
+
const firstFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
2450
1592
|
const firstNFunctionFieldMaskSchema = {
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
};
|
|
2454
|
-
const flatSchemaFieldMaskSchema = {
|
|
2455
|
-
fields: { wire: 'fields' },
|
|
1593
|
+
input: { wire: "input" },
|
|
1594
|
+
n: { wire: "n" }
|
|
2456
1595
|
};
|
|
1596
|
+
const flatSchemaFieldMaskSchema = { fields: { wire: "fields" } };
|
|
2457
1597
|
const functionFieldMaskSchema = {
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
1598
|
+
aggregationFunction: {
|
|
1599
|
+
wire: "aggregation_function",
|
|
1600
|
+
children: () => aggregationFunctionFieldMaskSchema
|
|
1601
|
+
},
|
|
1602
|
+
columnSelection: {
|
|
1603
|
+
wire: "column_selection",
|
|
1604
|
+
children: () => columnSelectionFieldMaskSchema
|
|
1605
|
+
},
|
|
1606
|
+
extraParameters: { wire: "extra_parameters" },
|
|
1607
|
+
functionType: { wire: "function_type" }
|
|
2468
1608
|
};
|
|
2469
1609
|
const ingestionConfigFieldMaskSchema = {
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
};
|
|
2483
|
-
const ingestionDestinationFieldMaskSchema = {
|
|
2484
|
-
deltaTableName: { wire: 'delta_table_name' },
|
|
2485
|
-
};
|
|
1610
|
+
backfillJobId: { wire: "backfill_job_id" },
|
|
1611
|
+
backfillSource: {
|
|
1612
|
+
wire: "backfill_source",
|
|
1613
|
+
children: () => backfillSourceFieldMaskSchema
|
|
1614
|
+
},
|
|
1615
|
+
deduplicationColumns: { wire: "deduplication_columns" },
|
|
1616
|
+
ingestionDestination: {
|
|
1617
|
+
wire: "ingestion_destination",
|
|
1618
|
+
children: () => ingestionDestinationFieldMaskSchema
|
|
1619
|
+
},
|
|
1620
|
+
ingestionJobId: { wire: "ingestion_job_id" },
|
|
1621
|
+
ingestionPipelineId: { wire: "ingestion_pipeline_id" }
|
|
1622
|
+
};
|
|
1623
|
+
const ingestionDestinationFieldMaskSchema = { deltaTableName: { wire: "delta_table_name" } };
|
|
2486
1624
|
const jobContextFieldMaskSchema = {
|
|
2487
|
-
|
|
2488
|
-
|
|
1625
|
+
jobId: { wire: "job_id" },
|
|
1626
|
+
jobRunId: { wire: "job_run_id" }
|
|
2489
1627
|
};
|
|
2490
1628
|
const kafkaConfigFieldMaskSchema = {
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
1629
|
+
authConfig: {
|
|
1630
|
+
wire: "auth_config",
|
|
1631
|
+
children: () => authConfigFieldMaskSchema
|
|
1632
|
+
},
|
|
1633
|
+
backfillSource: {
|
|
1634
|
+
wire: "backfill_source",
|
|
1635
|
+
children: () => backfillSourceFieldMaskSchema
|
|
1636
|
+
},
|
|
1637
|
+
bootstrapServers: { wire: "bootstrap_servers" },
|
|
1638
|
+
extraOptions: { wire: "extra_options" },
|
|
1639
|
+
ingestionConfig: {
|
|
1640
|
+
wire: "ingestion_config",
|
|
1641
|
+
children: () => ingestionConfigFieldMaskSchema
|
|
1642
|
+
},
|
|
1643
|
+
keySchema: {
|
|
1644
|
+
wire: "key_schema",
|
|
1645
|
+
children: () => schemaConfigFieldMaskSchema
|
|
1646
|
+
},
|
|
1647
|
+
name: { wire: "name" },
|
|
1648
|
+
subscriptionMode: {
|
|
1649
|
+
wire: "subscription_mode",
|
|
1650
|
+
children: () => subscriptionModeFieldMaskSchema
|
|
1651
|
+
},
|
|
1652
|
+
valueSchema: {
|
|
1653
|
+
wire: "value_schema",
|
|
1654
|
+
children: () => schemaConfigFieldMaskSchema
|
|
1655
|
+
}
|
|
1656
|
+
};
|
|
1657
|
+
function kafkaConfigFieldMask(...paths) {
|
|
1658
|
+
return FieldMask.build(paths, kafkaConfigFieldMaskSchema);
|
|
2515
1659
|
}
|
|
2516
1660
|
const kafkaSourceFieldMaskSchema = {
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
1661
|
+
entityColumnIdentifiers: { wire: "entity_column_identifiers" },
|
|
1662
|
+
filterCondition: { wire: "filter_condition" },
|
|
1663
|
+
name: { wire: "name" },
|
|
1664
|
+
timeseriesColumnIdentifier: {
|
|
1665
|
+
wire: "timeseries_column_identifier",
|
|
1666
|
+
children: () => columnIdentifierFieldMaskSchema
|
|
1667
|
+
}
|
|
2524
1668
|
};
|
|
2525
1669
|
const kafkaStreamConfigFieldMaskSchema = {
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
1670
|
+
extraOptions: { wire: "extra_options" },
|
|
1671
|
+
subscriptionMode: {
|
|
1672
|
+
wire: "subscription_mode",
|
|
1673
|
+
children: () => kafkaSubscriptionModeFieldMaskSchema
|
|
1674
|
+
}
|
|
2531
1675
|
};
|
|
2532
1676
|
const kafkaSubscriptionModeFieldMaskSchema = {
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
1677
|
+
assign: { wire: "assign" },
|
|
1678
|
+
subscribe: { wire: "subscribe" },
|
|
1679
|
+
subscribePattern: { wire: "subscribe_pattern" }
|
|
2536
1680
|
};
|
|
2537
1681
|
const kinesisStreamConfigFieldMaskSchema = {
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
1682
|
+
extraOptions: { wire: "extra_options" },
|
|
1683
|
+
streamArns: {
|
|
1684
|
+
wire: "stream_arns",
|
|
1685
|
+
children: () => streamArnListFieldMaskSchema
|
|
1686
|
+
},
|
|
1687
|
+
streamNames: {
|
|
1688
|
+
wire: "stream_names",
|
|
1689
|
+
children: () => streamNameListFieldMaskSchema
|
|
1690
|
+
}
|
|
2547
1691
|
};
|
|
2548
1692
|
const lastDistinctFunctionFieldMaskSchema = {
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
};
|
|
2552
|
-
const lastFunctionFieldMaskSchema = {
|
|
2553
|
-
input: { wire: 'input' },
|
|
1693
|
+
input: { wire: "input" },
|
|
1694
|
+
n: { wire: "n" }
|
|
2554
1695
|
};
|
|
1696
|
+
const lastFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
2555
1697
|
const lastNFunctionFieldMaskSchema = {
|
|
2556
|
-
|
|
2557
|
-
|
|
1698
|
+
input: { wire: "input" },
|
|
1699
|
+
n: { wire: "n" }
|
|
2558
1700
|
};
|
|
2559
1701
|
const lineageContextFieldMaskSchema = {
|
|
2560
|
-
|
|
2561
|
-
|
|
1702
|
+
jobContext: {
|
|
1703
|
+
wire: "job_context",
|
|
1704
|
+
children: () => jobContextFieldMaskSchema
|
|
1705
|
+
},
|
|
1706
|
+
notebookId: { wire: "notebook_id" }
|
|
2562
1707
|
};
|
|
2563
1708
|
const materializedFeatureFieldMaskSchema = {
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
};
|
|
2592
|
-
|
|
2593
|
-
|
|
1709
|
+
cronSchedule: { wire: "cron_schedule" },
|
|
1710
|
+
cronScheduleTrigger: {
|
|
1711
|
+
wire: "cron_schedule_trigger",
|
|
1712
|
+
children: () => cronScheduleFieldMaskSchema
|
|
1713
|
+
},
|
|
1714
|
+
featureName: { wire: "feature_name" },
|
|
1715
|
+
isOnline: { wire: "is_online" },
|
|
1716
|
+
lastMaterializationTime: { wire: "last_materialization_time" },
|
|
1717
|
+
materializedFeatureId: { wire: "materialized_feature_id" },
|
|
1718
|
+
offlineStoreConfig: {
|
|
1719
|
+
wire: "offline_store_config",
|
|
1720
|
+
children: () => offlineStoreConfigFieldMaskSchema
|
|
1721
|
+
},
|
|
1722
|
+
onlineStoreConfig: {
|
|
1723
|
+
wire: "online_store_config",
|
|
1724
|
+
children: () => onlineStoreConfigFieldMaskSchema
|
|
1725
|
+
},
|
|
1726
|
+
pipelineScheduleState: { wire: "pipeline_schedule_state" },
|
|
1727
|
+
streamingMode: {
|
|
1728
|
+
wire: "streaming_mode",
|
|
1729
|
+
children: () => streamingModeFieldMaskSchema
|
|
1730
|
+
},
|
|
1731
|
+
tableName: { wire: "table_name" },
|
|
1732
|
+
tableTrigger: {
|
|
1733
|
+
wire: "table_trigger",
|
|
1734
|
+
children: () => tableTriggerFieldMaskSchema
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
function materializedFeatureFieldMask(...paths) {
|
|
1738
|
+
return FieldMask.build(paths, materializedFeatureFieldMaskSchema);
|
|
2594
1739
|
}
|
|
2595
|
-
const maxFunctionFieldMaskSchema = {
|
|
2596
|
-
|
|
2597
|
-
};
|
|
2598
|
-
const minFunctionFieldMaskSchema = {
|
|
2599
|
-
input: { wire: 'input' },
|
|
2600
|
-
};
|
|
1740
|
+
const maxFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
1741
|
+
const minFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
2601
1742
|
const mtlsConfigFieldMaskSchema = {
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
1743
|
+
disableHostnameVerification: { wire: "disable_hostname_verification" },
|
|
1744
|
+
keyPasswordRef: {
|
|
1745
|
+
wire: "key_password_ref",
|
|
1746
|
+
children: () => secretScopeReferenceFieldMaskSchema
|
|
1747
|
+
},
|
|
1748
|
+
keystoreLocation: { wire: "keystore_location" },
|
|
1749
|
+
keystorePasswordRef: {
|
|
1750
|
+
wire: "keystore_password_ref",
|
|
1751
|
+
children: () => secretScopeReferenceFieldMaskSchema
|
|
1752
|
+
},
|
|
1753
|
+
truststoreLocation: { wire: "truststore_location" },
|
|
1754
|
+
truststorePasswordRef: {
|
|
1755
|
+
wire: "truststore_password_ref",
|
|
1756
|
+
children: () => secretScopeReferenceFieldMaskSchema
|
|
1757
|
+
}
|
|
2617
1758
|
};
|
|
2618
1759
|
const offlineStoreConfigFieldMaskSchema = {
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
1760
|
+
catalogName: { wire: "catalog_name" },
|
|
1761
|
+
schemaName: { wire: "schema_name" },
|
|
1762
|
+
tableNamePrefix: { wire: "table_name_prefix" }
|
|
2622
1763
|
};
|
|
2623
1764
|
const onlineStoreConfigFieldMaskSchema = {
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
1765
|
+
catalogName: { wire: "catalog_name" },
|
|
1766
|
+
onlineStoreName: { wire: "online_store_name" },
|
|
1767
|
+
schemaName: { wire: "schema_name" },
|
|
1768
|
+
tableNamePrefix: { wire: "table_name_prefix" }
|
|
2628
1769
|
};
|
|
2629
1770
|
const protoSchemaSpecFieldMaskSchema = {
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
};
|
|
2633
|
-
const requestSourceFieldMaskSchema = {
|
|
2634
|
-
flatSchema: { wire: 'flat_schema', children: () => flatSchemaFieldMaskSchema },
|
|
1771
|
+
messageName: { wire: "message_name" },
|
|
1772
|
+
schemaText: { wire: "schema_text" }
|
|
2635
1773
|
};
|
|
1774
|
+
const requestSourceFieldMaskSchema = { flatSchema: {
|
|
1775
|
+
wire: "flat_schema",
|
|
1776
|
+
children: () => flatSchemaFieldMaskSchema
|
|
1777
|
+
} };
|
|
2636
1778
|
const rollingWindowFieldMaskSchema = {
|
|
2637
|
-
|
|
2638
|
-
|
|
1779
|
+
delay: { wire: "delay" },
|
|
1780
|
+
windowDuration: { wire: "window_duration" }
|
|
2639
1781
|
};
|
|
2640
1782
|
const sawtoothWindowFieldMaskSchema = {
|
|
2641
|
-
|
|
2642
|
-
|
|
1783
|
+
delay: { wire: "delay" },
|
|
1784
|
+
windowDuration: { wire: "window_duration" }
|
|
2643
1785
|
};
|
|
2644
1786
|
const schemaConfigFieldMaskSchema = {
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
1787
|
+
avroSchema: { wire: "avro_schema" },
|
|
1788
|
+
jsonSchema: { wire: "json_schema" },
|
|
1789
|
+
protoSchema: {
|
|
1790
|
+
wire: "proto_schema",
|
|
1791
|
+
children: () => protoSchemaSpecFieldMaskSchema
|
|
1792
|
+
}
|
|
2651
1793
|
};
|
|
2652
1794
|
const schemaLocatorFieldMaskSchema = {
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
};
|
|
2659
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2660
|
-
const schemaLocator_ConfluentSchemaFieldMaskSchema = {
|
|
2661
|
-
subject: { wire: 'subject' },
|
|
1795
|
+
confluentSchema: {
|
|
1796
|
+
wire: "confluent_schema",
|
|
1797
|
+
children: () => schemaLocator_ConfluentSchemaFieldMaskSchema
|
|
1798
|
+
},
|
|
1799
|
+
format: { wire: "format" }
|
|
2662
1800
|
};
|
|
1801
|
+
const schemaLocator_ConfluentSchemaFieldMaskSchema = { subject: { wire: "subject" } };
|
|
2663
1802
|
const schemaRegistryConfigFieldMaskSchema = {
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
1803
|
+
apiSecretRef: {
|
|
1804
|
+
wire: "api_secret_ref",
|
|
1805
|
+
children: () => secretScopeReferenceFieldMaskSchema
|
|
1806
|
+
},
|
|
1807
|
+
keySchemaLocator: {
|
|
1808
|
+
wire: "key_schema_locator",
|
|
1809
|
+
children: () => schemaLocatorFieldMaskSchema
|
|
1810
|
+
},
|
|
1811
|
+
payloadSchemaLocator: {
|
|
1812
|
+
wire: "payload_schema_locator",
|
|
1813
|
+
children: () => schemaLocatorFieldMaskSchema
|
|
1814
|
+
},
|
|
1815
|
+
ucConnection: { wire: "uc_connection" }
|
|
2677
1816
|
};
|
|
2678
1817
|
const secretScopeReferenceFieldMaskSchema = {
|
|
2679
|
-
|
|
2680
|
-
|
|
1818
|
+
key: { wire: "key" },
|
|
1819
|
+
scope: { wire: "scope" }
|
|
2681
1820
|
};
|
|
2682
1821
|
const slidingWindowFieldMaskSchema = {
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
};
|
|
2686
|
-
const stddevPopFunctionFieldMaskSchema = {
|
|
2687
|
-
input: { wire: 'input' },
|
|
2688
|
-
};
|
|
2689
|
-
const stddevSampFunctionFieldMaskSchema = {
|
|
2690
|
-
input: { wire: 'input' },
|
|
1822
|
+
slideDuration: { wire: "slide_duration" },
|
|
1823
|
+
windowDuration: { wire: "window_duration" }
|
|
2691
1824
|
};
|
|
1825
|
+
const stddevPopFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
1826
|
+
const stddevSampFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
2692
1827
|
const streamFieldMaskSchema = {
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
};
|
|
2717
|
-
|
|
2718
|
-
|
|
1828
|
+
browseOnly: { wire: "browse_only" },
|
|
1829
|
+
connectionConfig: {
|
|
1830
|
+
wire: "connection_config",
|
|
1831
|
+
children: () => streamConnectionConfigFieldMaskSchema
|
|
1832
|
+
},
|
|
1833
|
+
createTime: { wire: "create_time" },
|
|
1834
|
+
createdBy: { wire: "created_by" },
|
|
1835
|
+
description: { wire: "description" },
|
|
1836
|
+
ingestionConfig: {
|
|
1837
|
+
wire: "ingestion_config",
|
|
1838
|
+
children: () => ingestionConfigFieldMaskSchema
|
|
1839
|
+
},
|
|
1840
|
+
name: { wire: "name" },
|
|
1841
|
+
schemaConfig: {
|
|
1842
|
+
wire: "schema_config",
|
|
1843
|
+
children: () => streamSchemaConfigFieldMaskSchema
|
|
1844
|
+
},
|
|
1845
|
+
sourceConfig: {
|
|
1846
|
+
wire: "source_config",
|
|
1847
|
+
children: () => streamSourceConfigFieldMaskSchema
|
|
1848
|
+
},
|
|
1849
|
+
updateTime: { wire: "update_time" },
|
|
1850
|
+
updatedBy: { wire: "updated_by" }
|
|
1851
|
+
};
|
|
1852
|
+
function streamFieldMask(...paths) {
|
|
1853
|
+
return FieldMask.build(paths, streamFieldMaskSchema);
|
|
2719
1854
|
}
|
|
2720
|
-
const streamArnListFieldMaskSchema = {
|
|
2721
|
-
arns: { wire: 'arns' },
|
|
2722
|
-
};
|
|
1855
|
+
const streamArnListFieldMaskSchema = { arns: { wire: "arns" } };
|
|
2723
1856
|
const streamConnectionConfigFieldMaskSchema = {
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
};
|
|
2730
|
-
const streamNameListFieldMaskSchema = {
|
|
2731
|
-
names: { wire: 'names' },
|
|
1857
|
+
directMtlsConfig: {
|
|
1858
|
+
wire: "direct_mtls_config",
|
|
1859
|
+
children: () => directMtlsConfigFieldMaskSchema
|
|
1860
|
+
},
|
|
1861
|
+
ucConnectionName: { wire: "uc_connection_name" }
|
|
2732
1862
|
};
|
|
1863
|
+
const streamNameListFieldMaskSchema = { names: { wire: "names" } };
|
|
2733
1864
|
const streamSchemaConfigFieldMaskSchema = {
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
1865
|
+
directSchemas: {
|
|
1866
|
+
wire: "direct_schemas",
|
|
1867
|
+
children: () => directSchemasFieldMaskSchema
|
|
1868
|
+
},
|
|
1869
|
+
schemaRegistryConfig: {
|
|
1870
|
+
wire: "schema_registry_config",
|
|
1871
|
+
children: () => schemaRegistryConfigFieldMaskSchema
|
|
1872
|
+
}
|
|
2742
1873
|
};
|
|
2743
1874
|
const streamSourceFieldMaskSchema = {
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
1875
|
+
dataframeSchema: { wire: "dataframe_schema" },
|
|
1876
|
+
filterCondition: { wire: "filter_condition" },
|
|
1877
|
+
fullName: { wire: "full_name" },
|
|
1878
|
+
transformationSql: { wire: "transformation_sql" }
|
|
2748
1879
|
};
|
|
2749
1880
|
const streamSourceConfigFieldMaskSchema = {
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
1881
|
+
kafkaStreamConfig: {
|
|
1882
|
+
wire: "kafka_stream_config",
|
|
1883
|
+
children: () => kafkaStreamConfigFieldMaskSchema
|
|
1884
|
+
},
|
|
1885
|
+
kinesisStreamConfig: {
|
|
1886
|
+
wire: "kinesis_stream_config",
|
|
1887
|
+
children: () => kinesisStreamConfigFieldMaskSchema
|
|
1888
|
+
}
|
|
2758
1889
|
};
|
|
2759
1890
|
const streamingModeFieldMaskSchema = {
|
|
2760
|
-
|
|
2761
|
-
|
|
1891
|
+
freshnessTarget: { wire: "freshness_target" },
|
|
1892
|
+
mode: { wire: "mode" }
|
|
2762
1893
|
};
|
|
2763
1894
|
const subscriptionModeFieldMaskSchema = {
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
};
|
|
2768
|
-
const sumFunctionFieldMaskSchema = {
|
|
2769
|
-
input: { wire: 'input' },
|
|
1895
|
+
assign: { wire: "assign" },
|
|
1896
|
+
subscribe: { wire: "subscribe" },
|
|
1897
|
+
subscribePattern: { wire: "subscribe_pattern" }
|
|
2770
1898
|
};
|
|
1899
|
+
const sumFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
2771
1900
|
const tableTriggerFieldMaskSchema = {};
|
|
2772
1901
|
const timeWindowFieldMaskSchema = {
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
};
|
|
1902
|
+
continuous: {
|
|
1903
|
+
wire: "continuous",
|
|
1904
|
+
children: () => continuousWindowFieldMaskSchema
|
|
1905
|
+
},
|
|
1906
|
+
rolling: {
|
|
1907
|
+
wire: "rolling",
|
|
1908
|
+
children: () => rollingWindowFieldMaskSchema
|
|
1909
|
+
},
|
|
1910
|
+
sawtooth: {
|
|
1911
|
+
wire: "sawtooth",
|
|
1912
|
+
children: () => sawtoothWindowFieldMaskSchema
|
|
1913
|
+
},
|
|
1914
|
+
sliding: {
|
|
1915
|
+
wire: "sliding",
|
|
1916
|
+
children: () => slidingWindowFieldMaskSchema
|
|
1917
|
+
},
|
|
1918
|
+
tumbling: {
|
|
1919
|
+
wire: "tumbling",
|
|
1920
|
+
children: () => tumblingWindowFieldMaskSchema
|
|
1921
|
+
}
|
|
1922
|
+
};
|
|
1923
|
+
const timeseriesColumnFieldMaskSchema = { name: { wire: "name" } };
|
|
1924
|
+
const tumblingWindowFieldMaskSchema = { windowDuration: { wire: "window_duration" } };
|
|
1925
|
+
const varPopFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
1926
|
+
const varSampFunctionFieldMaskSchema = { input: { wire: "input" } };
|
|
1927
|
+
|
|
1928
|
+
//#endregion
|
|
1929
|
+
export { Function_FunctionType, MaterializedFeature_PipelineScheduleState, ScalarDataType, SchemaLocator_Format, StreamingMode_StreamingModeType, featureFieldMask, kafkaConfigFieldMask, marshalAggregationFunctionSchema, marshalApproxCountDistinctFunctionSchema, marshalApproxPercentileFunctionSchema, marshalAuthConfigSchema, marshalAvgFunctionSchema, marshalBackfillSourceSchema, marshalBatchCreateMaterializedFeaturesRequestSchema, marshalColumnIdentifierSchema, marshalColumnSelectionSchema, marshalContinuousWindowSchema, marshalCountFunctionSchema, marshalCreateMaterializedFeatureRequestSchema, marshalCronScheduleSchema, marshalDataSourceSchema, marshalDeltaTableSourceSchema, marshalDirectMtlsConfigSchema, marshalDirectSchemasSchema, marshalEntityColumnSchema, marshalFeatureSchema, marshalFieldDefinitionSchema, marshalFirstDistinctFunctionSchema, marshalFirstFunctionSchema, marshalFirstNFunctionSchema, marshalFlatSchemaSchema, marshalFunctionSchema, marshalFunction_ExtraParameterSchema, marshalIngestionConfigSchema, marshalIngestionDestinationSchema, marshalJobContextSchema, marshalKafkaConfigSchema, marshalKafkaSourceSchema, marshalKafkaStreamConfigSchema, marshalKafkaSubscriptionModeSchema, marshalKinesisStreamConfigSchema, marshalLastDistinctFunctionSchema, marshalLastFunctionSchema, marshalLastNFunctionSchema, marshalLineageContextSchema, marshalMaterializedFeatureSchema, marshalMaxFunctionSchema, marshalMinFunctionSchema, marshalMtlsConfigSchema, marshalOfflineStoreConfigSchema, marshalOnlineStoreConfigSchema, marshalProtoSchemaSpecSchema, marshalRequestSourceSchema, marshalRollingWindowSchema, marshalSawtoothWindowSchema, marshalSchemaConfigSchema, marshalSchemaLocatorSchema, marshalSchemaLocator_ConfluentSchemaSchema, marshalSchemaRegistryConfigSchema, marshalSecretScopeReferenceSchema, marshalSlidingWindowSchema, marshalStddevPopFunctionSchema, marshalStddevSampFunctionSchema, marshalStreamArnListSchema, marshalStreamConnectionConfigSchema, marshalStreamNameListSchema, marshalStreamSchema, marshalStreamSchemaConfigSchema, marshalStreamSourceConfigSchema, marshalStreamSourceSchema, marshalStreamingModeSchema, marshalSubscriptionModeSchema, marshalSumFunctionSchema, marshalTableTriggerSchema, marshalTimeWindowSchema, marshalTimeseriesColumnSchema, marshalTumblingWindowSchema, marshalVarPopFunctionSchema, marshalVarSampFunctionSchema, materializedFeatureFieldMask, streamFieldMask, unmarshalAggregationFunctionSchema, unmarshalApproxCountDistinctFunctionSchema, unmarshalApproxPercentileFunctionSchema, unmarshalAuthConfigSchema, unmarshalAvgFunctionSchema, unmarshalBackfillSourceSchema, unmarshalBatchCreateMaterializedFeaturesResponseSchema, unmarshalColumnIdentifierSchema, unmarshalColumnSelectionSchema, unmarshalContinuousWindowSchema, unmarshalCountFunctionSchema, unmarshalCronScheduleSchema, unmarshalDataSourceSchema, unmarshalDeltaTableSourceSchema, unmarshalDirectMtlsConfigSchema, unmarshalDirectSchemasSchema, unmarshalEntityColumnSchema, unmarshalFeatureSchema, unmarshalFieldDefinitionSchema, unmarshalFirstDistinctFunctionSchema, unmarshalFirstFunctionSchema, unmarshalFirstNFunctionSchema, unmarshalFlatSchemaSchema, unmarshalFunctionSchema, unmarshalFunction_ExtraParameterSchema, unmarshalIngestionConfigSchema, unmarshalIngestionDestinationSchema, unmarshalJobContextSchema, unmarshalKafkaConfigSchema, unmarshalKafkaSourceSchema, unmarshalKafkaStreamConfigSchema, unmarshalKafkaSubscriptionModeSchema, unmarshalKinesisStreamConfigSchema, unmarshalLastDistinctFunctionSchema, unmarshalLastFunctionSchema, unmarshalLastNFunctionSchema, unmarshalLineageContextSchema, unmarshalListFeaturesResponseSchema, unmarshalListKafkaConfigsResponseSchema, unmarshalListMaterializedFeaturesResponseSchema, unmarshalListStreamsResponseSchema, unmarshalMaterializedFeatureSchema, unmarshalMaxFunctionSchema, unmarshalMinFunctionSchema, unmarshalMtlsConfigSchema, unmarshalOfflineStoreConfigSchema, unmarshalOnlineStoreConfigSchema, unmarshalProtoSchemaSpecSchema, unmarshalRequestSourceSchema, unmarshalRollingWindowSchema, unmarshalSawtoothWindowSchema, unmarshalSchemaConfigSchema, unmarshalSchemaLocatorSchema, unmarshalSchemaLocator_ConfluentSchemaSchema, unmarshalSchemaRegistryConfigSchema, unmarshalSecretScopeReferenceSchema, unmarshalSlidingWindowSchema, unmarshalStddevPopFunctionSchema, unmarshalStddevSampFunctionSchema, unmarshalStreamArnListSchema, unmarshalStreamConnectionConfigSchema, unmarshalStreamNameListSchema, unmarshalStreamSchema, unmarshalStreamSchemaConfigSchema, unmarshalStreamSourceConfigSchema, unmarshalStreamSourceSchema, unmarshalStreamingModeSchema, unmarshalSubscriptionModeSchema, unmarshalSumFunctionSchema, unmarshalTableTriggerSchema, unmarshalTimeWindowSchema, unmarshalTimeseriesColumnSchema, unmarshalTumblingWindowSchema, unmarshalVarPopFunctionSchema, unmarshalVarSampFunctionSchema };
|
|
2794
1930
|
//# sourceMappingURL=model.js.map
|