@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/v1/model.js CHANGED
@@ -1,2794 +1,1930 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { Temporal } from '@js-temporal/polyfill';
3
- import { FieldMask } from '@databricks/sdk-core/wkt';
4
- import { z } from 'zod';
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
- * Scalar data types for request-time field definitions.
7
- * Only flat (non-nested) types are supported.
8
- */
9
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
10
- export 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',
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
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
26
- export const Function_FunctionType = {
27
- FUNCTION_TYPE_UNSPECIFIED: 'FUNCTION_TYPE_UNSPECIFIED',
28
- AVG: 'AVG',
29
- COUNT: 'COUNT',
30
- SUM: 'SUM',
31
- MIN: 'MIN',
32
- MAX: 'MAX',
33
- FIRST: 'FIRST',
34
- LAST: 'LAST',
35
- APPROX_COUNT_DISTINCT: 'APPROX_COUNT_DISTINCT',
36
- APPROX_PERCENTILE: 'APPROX_PERCENTILE',
37
- STDDEV_POP: 'STDDEV_POP',
38
- STDDEV_SAMP: 'STDDEV_SAMP',
39
- VAR_POP: 'VAR_POP',
40
- VAR_SAMP: 'VAR_SAMP',
41
- };
42
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
43
- export const MaterializedFeature_PipelineScheduleState = {
44
- /** Default value, not used. */
45
- PIPELINE_SCHEDULE_STATE_UNSPECIFIED: 'PIPELINE_SCHEDULE_STATE_UNSPECIFIED',
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
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
55
- export const SchemaLocator_Format = {
56
- /** Default value. Format is not set; the request will be rejected. */
57
- FORMAT_UNSPECIFIED: 'FORMAT_UNSPECIFIED',
58
- /** Avro-encoded schema. */
59
- FORMAT_AVRO: 'FORMAT_AVRO',
60
- /** Protobuf-encoded schema. */
61
- FORMAT_PROTOBUF: 'FORMAT_PROTOBUF',
62
- /** JSON-encoded schema. */
63
- FORMAT_JSON: 'FORMAT_JSON',
64
- };
65
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
66
- export const StreamingMode_StreamingModeType = {
67
- /** Default value, not used. */
68
- STREAMING_MODE_TYPE_UNSPECIFIED: 'STREAMING_MODE_TYPE_UNSPECIFIED',
69
- /**
70
- * Real-time mode. Ultra-low-latency trigger intended for operational workloads
71
- * that need responses in milliseconds or sub-second latency.
72
- */
73
- STREAMING_MODE_TYPE_RTM: 'STREAMING_MODE_TYPE_RTM',
74
- /**
75
- * Micro-batch mode in Structured Streaming. Better suited for ETL and analytics
76
- * workloads where latency is measured in seconds or minutes and cost efficiency
77
- * matters more.
78
- */
79
- STREAMING_MODE_TYPE_MBM: 'STREAMING_MODE_TYPE_MBM',
80
- };
81
- export const unmarshalAggregationFunctionSchema = z
82
- .object({
83
- avg: z.lazy(() => unmarshalAvgFunctionSchema).optional(),
84
- count_function: z.lazy(() => unmarshalCountFunctionSchema).optional(),
85
- sum: z.lazy(() => unmarshalSumFunctionSchema).optional(),
86
- min: z.lazy(() => unmarshalMinFunctionSchema).optional(),
87
- max: z.lazy(() => unmarshalMaxFunctionSchema).optional(),
88
- first: z.lazy(() => unmarshalFirstFunctionSchema).optional(),
89
- last: z.lazy(() => unmarshalLastFunctionSchema).optional(),
90
- approx_count_distinct: z
91
- .lazy(() => unmarshalApproxCountDistinctFunctionSchema)
92
- .optional(),
93
- approx_percentile: z
94
- .lazy(() => unmarshalApproxPercentileFunctionSchema)
95
- .optional(),
96
- stddev_pop: z.lazy(() => unmarshalStddevPopFunctionSchema).optional(),
97
- stddev_samp: z.lazy(() => unmarshalStddevSampFunctionSchema).optional(),
98
- var_pop: z.lazy(() => unmarshalVarPopFunctionSchema).optional(),
99
- var_samp: z.lazy(() => unmarshalVarSampFunctionSchema).optional(),
100
- first_n: z.lazy(() => unmarshalFirstNFunctionSchema).optional(),
101
- last_n: z.lazy(() => unmarshalLastNFunctionSchema).optional(),
102
- first_distinct: z
103
- .lazy(() => unmarshalFirstDistinctFunctionSchema)
104
- .optional(),
105
- last_distinct: z
106
- .lazy(() => unmarshalLastDistinctFunctionSchema)
107
- .optional(),
108
- time_window: z.lazy(() => unmarshalTimeWindowSchema).optional(),
109
- })
110
- .transform(d => ({
111
- operation: d.avg !== undefined
112
- ? { $case: 'avg', avg: d.avg }
113
- : d.count_function !== undefined
114
- ? { $case: 'countFunction', countFunction: d.count_function }
115
- : d.sum !== undefined
116
- ? { $case: 'sum', sum: d.sum }
117
- : d.min !== undefined
118
- ? { $case: 'min', min: d.min }
119
- : d.max !== undefined
120
- ? { $case: 'max', max: d.max }
121
- : d.first !== undefined
122
- ? { $case: 'first', first: d.first }
123
- : d.last !== undefined
124
- ? { $case: 'last', last: d.last }
125
- : d.approx_count_distinct !== undefined
126
- ? {
127
- $case: 'approxCountDistinct',
128
- approxCountDistinct: d.approx_count_distinct,
129
- }
130
- : d.approx_percentile !== undefined
131
- ? {
132
- $case: 'approxPercentile',
133
- approxPercentile: d.approx_percentile,
134
- }
135
- : d.stddev_pop !== undefined
136
- ? {
137
- $case: 'stddevPop',
138
- stddevPop: d.stddev_pop,
139
- }
140
- : d.stddev_samp !== undefined
141
- ? {
142
- $case: 'stddevSamp',
143
- stddevSamp: d.stddev_samp,
144
- }
145
- : d.var_pop !== undefined
146
- ? { $case: 'varPop', varPop: d.var_pop }
147
- : d.var_samp !== undefined
148
- ? {
149
- $case: 'varSamp',
150
- varSamp: d.var_samp,
151
- }
152
- : d.first_n !== undefined
153
- ? {
154
- $case: 'firstN',
155
- firstN: d.first_n,
156
- }
157
- : d.last_n !== undefined
158
- ? {
159
- $case: 'lastN',
160
- lastN: d.last_n,
161
- }
162
- : d.first_distinct !== undefined
163
- ? {
164
- $case: 'firstDistinct',
165
- firstDistinct: d.first_distinct,
166
- }
167
- : d.last_distinct !== undefined
168
- ? {
169
- $case: 'lastDistinct',
170
- lastDistinct: d.last_distinct,
171
- }
172
- : undefined,
173
- timeWindow: d.time_window,
174
- }));
175
- export const unmarshalApproxCountDistinctFunctionSchema = z
176
- .object({
177
- input: z.string().optional(),
178
- relative_sd: z.number().optional(),
179
- })
180
- .transform(d => ({
181
- input: d.input,
182
- relativeSd: d.relative_sd,
183
- }));
184
- export const unmarshalApproxPercentileFunctionSchema = z
185
- .object({
186
- input: z.string().optional(),
187
- percentile: z.number().optional(),
188
- accuracy: z
189
- .union([z.number(), z.bigint()])
190
- .transform(v => BigInt(v))
191
- .optional(),
192
- })
193
- .transform(d => ({
194
- input: d.input,
195
- percentile: d.percentile,
196
- accuracy: d.accuracy,
197
- }));
198
- export const unmarshalAuthConfigSchema = z
199
- .object({
200
- uc_service_credential_name: z.string().optional(),
201
- mtls_config: z.lazy(() => unmarshalMtlsConfigSchema).optional(),
202
- })
203
- .transform(d => ({
204
- authConfig: d.uc_service_credential_name !== undefined
205
- ? {
206
- $case: 'ucServiceCredentialName',
207
- ucServiceCredentialName: d.uc_service_credential_name,
208
- }
209
- : d.mtls_config !== undefined
210
- ? { $case: 'mtlsConfig', mtlsConfig: d.mtls_config }
211
- : undefined,
212
- }));
213
- export const unmarshalAvgFunctionSchema = z
214
- .object({
215
- input: z.string().optional(),
216
- })
217
- .transform(d => ({
218
- input: d.input,
219
- }));
220
- export const unmarshalBackfillSourceSchema = z
221
- .object({
222
- delta_table_source: z
223
- .lazy(() => unmarshalDeltaTableSourceSchema)
224
- .optional(),
225
- delta_table_name: z.string().optional(),
226
- })
227
- .transform(d => ({
228
- backfillSource: d.delta_table_source !== undefined
229
- ? {
230
- $case: 'deltaTableSource',
231
- deltaTableSource: d.delta_table_source,
232
- }
233
- : d.delta_table_name !== undefined
234
- ? {
235
- $case: 'deltaTableName',
236
- deltaTableName: d.delta_table_name,
237
- }
238
- : undefined,
239
- }));
240
- export const unmarshalBatchCreateMaterializedFeaturesResponseSchema = z
241
- .object({
242
- materialized_features: z
243
- .array(z.lazy(() => unmarshalMaterializedFeatureSchema))
244
- .optional(),
245
- })
246
- .transform(d => ({
247
- materializedFeatures: d.materialized_features,
248
- }));
249
- export const unmarshalColumnIdentifierSchema = z
250
- .object({
251
- variant_expr_path: z.string().optional(),
252
- })
253
- .transform(d => ({
254
- variantExprPath: d.variant_expr_path,
255
- }));
256
- export const unmarshalColumnSelectionSchema = z
257
- .object({
258
- column: z.string().optional(),
259
- })
260
- .transform(d => ({
261
- column: d.column,
262
- }));
263
- export const unmarshalContinuousWindowSchema = z
264
- .object({
265
- window_duration: z
266
- .string()
267
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
268
- .optional(),
269
- offset: z
270
- .string()
271
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
272
- .optional(),
273
- })
274
- .transform(d => ({
275
- windowDuration: d.window_duration,
276
- offset: d.offset,
277
- }));
278
- export const unmarshalCountFunctionSchema = z
279
- .object({
280
- input: z.string().optional(),
281
- })
282
- .transform(d => ({
283
- input: d.input,
284
- }));
285
- export const unmarshalCronScheduleSchema = z
286
- .object({
287
- cron_expression: z.string().optional(),
288
- })
289
- .transform(d => ({
290
- cronExpression: d.cron_expression,
291
- }));
292
- export const unmarshalDataSourceSchema = z
293
- .object({
294
- delta_table_source: z
295
- .lazy(() => unmarshalDeltaTableSourceSchema)
296
- .optional(),
297
- kafka_source: z.lazy(() => unmarshalKafkaSourceSchema).optional(),
298
- request_source: z.lazy(() => unmarshalRequestSourceSchema).optional(),
299
- stream_source: z.lazy(() => unmarshalStreamSourceSchema).optional(),
300
- })
301
- .transform(d => ({
302
- dataSource: d.delta_table_source !== undefined
303
- ? {
304
- $case: 'deltaTableSource',
305
- deltaTableSource: d.delta_table_source,
306
- }
307
- : d.kafka_source !== undefined
308
- ? { $case: 'kafkaSource', kafkaSource: d.kafka_source }
309
- : d.request_source !== undefined
310
- ? { $case: 'requestSource', requestSource: d.request_source }
311
- : d.stream_source !== undefined
312
- ? { $case: 'streamSource', streamSource: d.stream_source }
313
- : undefined,
314
- }));
315
- export const unmarshalDeltaTableSourceSchema = z
316
- .object({
317
- full_name: z.string().optional(),
318
- entity_columns: z.array(z.string()).optional(),
319
- timeseries_column: z.string().optional(),
320
- filter_condition: z.string().optional(),
321
- transformation_sql: z.string().optional(),
322
- dataframe_schema: z.string().optional(),
323
- })
324
- .transform(d => ({
325
- fullName: d.full_name,
326
- entityColumns: d.entity_columns,
327
- timeseriesColumn: d.timeseries_column,
328
- filterCondition: d.filter_condition,
329
- transformationSql: d.transformation_sql,
330
- dataframeSchema: d.dataframe_schema,
331
- }));
332
- export const unmarshalDirectMtlsConfigSchema = z
333
- .object({
334
- bootstrap_servers: z.string().optional(),
335
- mtls_config: z.lazy(() => unmarshalMtlsConfigSchema).optional(),
336
- })
337
- .transform(d => ({
338
- bootstrapServers: d.bootstrap_servers,
339
- mtlsConfig: d.mtls_config,
340
- }));
341
- export const unmarshalDirectSchemasSchema = z
342
- .object({
343
- payload_schema: z.lazy(() => unmarshalSchemaConfigSchema).optional(),
344
- key_schema: z.lazy(() => unmarshalSchemaConfigSchema).optional(),
345
- })
346
- .transform(d => ({
347
- payloadSchema: d.payload_schema,
348
- keySchema: d.key_schema,
349
- }));
350
- export const unmarshalEntityColumnSchema = z
351
- .object({
352
- name: z.string().optional(),
353
- })
354
- .transform(d => ({
355
- name: d.name,
356
- }));
357
- export const unmarshalFeatureSchema = z
358
- .object({
359
- full_name: z.string().optional(),
360
- source: z.lazy(() => unmarshalDataSourceSchema).optional(),
361
- inputs: z.array(z.string()).optional(),
362
- function: z.lazy(() => unmarshalFunctionSchema).optional(),
363
- time_window: z.lazy(() => unmarshalTimeWindowSchema).optional(),
364
- description: z.string().optional(),
365
- filter_condition: z.string().optional(),
366
- lineage_context: z.lazy(() => unmarshalLineageContextSchema).optional(),
367
- entities: z.array(z.lazy(() => unmarshalEntityColumnSchema)).optional(),
368
- timeseries_column: z.lazy(() => unmarshalTimeseriesColumnSchema).optional(),
369
- catalog_name: z.string().optional(),
370
- schema_name: z.string().optional(),
371
- name: z.string().optional(),
372
- created_at: z
373
- .string()
374
- .transform(s => Temporal.Instant.from(s))
375
- .optional(),
376
- created_by: z.string().optional(),
377
- })
378
- .transform(d => ({
379
- fullName: d.full_name,
380
- source: d.source,
381
- inputs: d.inputs,
382
- function: d.function,
383
- timeWindow: d.time_window,
384
- description: d.description,
385
- filterCondition: d.filter_condition,
386
- lineageContext: d.lineage_context,
387
- entities: d.entities,
388
- timeseriesColumn: d.timeseries_column,
389
- catalogName: d.catalog_name,
390
- schemaName: d.schema_name,
391
- name: d.name,
392
- createdAt: d.created_at,
393
- createdBy: d.created_by,
394
- }));
395
- export const unmarshalFieldDefinitionSchema = z
396
- .object({
397
- name: z.string().optional(),
398
- data_type: z.string().optional(),
399
- })
400
- .transform(d => ({
401
- name: d.name,
402
- dataType: d.data_type,
403
- }));
404
- export const unmarshalFirstDistinctFunctionSchema = z
405
- .object({
406
- input: z.string().optional(),
407
- n: z
408
- .union([z.number(), z.bigint()])
409
- .transform(v => BigInt(v))
410
- .optional(),
411
- })
412
- .transform(d => ({
413
- input: d.input,
414
- n: d.n,
415
- }));
416
- export const unmarshalFirstFunctionSchema = z
417
- .object({
418
- input: z.string().optional(),
419
- })
420
- .transform(d => ({
421
- input: d.input,
422
- }));
423
- export const unmarshalFirstNFunctionSchema = z
424
- .object({
425
- input: z.string().optional(),
426
- n: z
427
- .union([z.number(), z.bigint()])
428
- .transform(v => BigInt(v))
429
- .optional(),
430
- })
431
- .transform(d => ({
432
- input: d.input,
433
- n: d.n,
434
- }));
435
- export const unmarshalFlatSchemaSchema = z
436
- .object({
437
- fields: z.array(z.lazy(() => unmarshalFieldDefinitionSchema)).optional(),
438
- })
439
- .transform(d => ({
440
- fields: d.fields,
441
- }));
442
- export const unmarshalFunctionSchema = z
443
- .object({
444
- function_type: z.string().optional(),
445
- extra_parameters: z
446
- .array(z.lazy(() => unmarshalFunction_ExtraParameterSchema))
447
- .optional(),
448
- aggregation_function: z
449
- .lazy(() => unmarshalAggregationFunctionSchema)
450
- .optional(),
451
- column_selection: z.lazy(() => unmarshalColumnSelectionSchema).optional(),
452
- })
453
- .transform(d => ({
454
- functionType: d.function_type,
455
- extraParameters: d.extra_parameters,
456
- function: d.aggregation_function !== undefined
457
- ? {
458
- $case: 'aggregationFunction',
459
- aggregationFunction: d.aggregation_function,
460
- }
461
- : d.column_selection !== undefined
462
- ? {
463
- $case: 'columnSelection',
464
- columnSelection: d.column_selection,
465
- }
466
- : undefined,
467
- }));
468
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
469
- export const unmarshalFunction_ExtraParameterSchema = z
470
- .object({
471
- key: z.string().optional(),
472
- value: z.string().optional(),
473
- })
474
- .transform(d => ({
475
- key: d.key,
476
- value: d.value,
477
- }));
478
- export const unmarshalIngestionConfigSchema = z
479
- .object({
480
- ingestion_destination: z
481
- .lazy(() => unmarshalIngestionDestinationSchema)
482
- .optional(),
483
- backfill_source: z.lazy(() => unmarshalBackfillSourceSchema).optional(),
484
- deduplication_columns: z.array(z.string()).optional(),
485
- ingestion_pipeline_id: z.string().optional(),
486
- ingestion_job_id: z
487
- .union([z.number(), z.bigint()])
488
- .transform(v => BigInt(v))
489
- .optional(),
490
- backfill_job_id: z
491
- .union([z.number(), z.bigint()])
492
- .transform(v => BigInt(v))
493
- .optional(),
494
- })
495
- .transform(d => ({
496
- ingestionDestination: d.ingestion_destination,
497
- backfillSource: d.backfill_source,
498
- deduplicationColumns: d.deduplication_columns,
499
- ingestionPipelineId: d.ingestion_pipeline_id,
500
- ingestionJobId: d.ingestion_job_id,
501
- backfillJobId: d.backfill_job_id,
502
- }));
503
- export const unmarshalIngestionDestinationSchema = z
504
- .object({
505
- delta_table_name: z.string().optional(),
506
- })
507
- .transform(d => ({
508
- ingestionDestination: d.delta_table_name !== undefined
509
- ? {
510
- $case: 'deltaTableName',
511
- deltaTableName: d.delta_table_name,
512
- }
513
- : undefined,
514
- }));
515
- export const unmarshalJobContextSchema = z
516
- .object({
517
- job_id: z
518
- .union([z.number(), z.bigint()])
519
- .transform(v => BigInt(v))
520
- .optional(),
521
- job_run_id: z
522
- .union([z.number(), z.bigint()])
523
- .transform(v => BigInt(v))
524
- .optional(),
525
- })
526
- .transform(d => ({
527
- jobId: d.job_id,
528
- jobRunId: d.job_run_id,
529
- }));
530
- export const unmarshalKafkaConfigSchema = z
531
- .object({
532
- name: z.string().optional(),
533
- bootstrap_servers: z.string().optional(),
534
- subscription_mode: z.lazy(() => unmarshalSubscriptionModeSchema).optional(),
535
- auth_config: z.lazy(() => unmarshalAuthConfigSchema).optional(),
536
- key_schema: z.lazy(() => unmarshalSchemaConfigSchema).optional(),
537
- value_schema: z.lazy(() => unmarshalSchemaConfigSchema).optional(),
538
- extra_options: z.record(z.string(), z.string()).optional(),
539
- backfill_source: z.lazy(() => unmarshalBackfillSourceSchema).optional(),
540
- ingestion_config: z.lazy(() => unmarshalIngestionConfigSchema).optional(),
541
- })
542
- .transform(d => ({
543
- name: d.name,
544
- bootstrapServers: d.bootstrap_servers,
545
- subscriptionMode: d.subscription_mode,
546
- authConfig: d.auth_config,
547
- keySchema: d.key_schema,
548
- valueSchema: d.value_schema,
549
- extraOptions: d.extra_options,
550
- backfillSource: d.backfill_source,
551
- ingestionConfig: d.ingestion_config,
552
- }));
553
- export const unmarshalKafkaSourceSchema = z
554
- .object({
555
- name: z.string().optional(),
556
- entity_column_identifiers: z
557
- .array(z.lazy(() => unmarshalColumnIdentifierSchema))
558
- .optional(),
559
- timeseries_column_identifier: z
560
- .lazy(() => unmarshalColumnIdentifierSchema)
561
- .optional(),
562
- filter_condition: z.string().optional(),
563
- })
564
- .transform(d => ({
565
- name: d.name,
566
- entityColumnIdentifiers: d.entity_column_identifiers,
567
- timeseriesColumnIdentifier: d.timeseries_column_identifier,
568
- filterCondition: d.filter_condition,
569
- }));
570
- export const unmarshalKafkaStreamConfigSchema = z
571
- .object({
572
- subscription_mode: z
573
- .lazy(() => unmarshalKafkaSubscriptionModeSchema)
574
- .optional(),
575
- extra_options: z.record(z.string(), z.string()).optional(),
576
- })
577
- .transform(d => ({
578
- subscriptionMode: d.subscription_mode,
579
- extraOptions: d.extra_options,
580
- }));
581
- export const unmarshalKafkaSubscriptionModeSchema = z
582
- .object({
583
- assign: z.string().optional(),
584
- subscribe: z.string().optional(),
585
- subscribe_pattern: z.string().optional(),
586
- })
587
- .transform(d => ({
588
- subscriptionMode: d.assign !== undefined
589
- ? { $case: 'assign', assign: d.assign }
590
- : d.subscribe !== undefined
591
- ? { $case: 'subscribe', subscribe: d.subscribe }
592
- : d.subscribe_pattern !== undefined
593
- ? {
594
- $case: 'subscribePattern',
595
- subscribePattern: d.subscribe_pattern,
596
- }
597
- : undefined,
598
- }));
599
- export const unmarshalKinesisStreamConfigSchema = z
600
- .object({
601
- stream_names: z.lazy(() => unmarshalStreamNameListSchema).optional(),
602
- stream_arns: z.lazy(() => unmarshalStreamArnListSchema).optional(),
603
- extra_options: z.record(z.string(), z.string()).optional(),
604
- })
605
- .transform(d => ({
606
- streamIdentifier: d.stream_names !== undefined
607
- ? { $case: 'streamNames', streamNames: d.stream_names }
608
- : d.stream_arns !== undefined
609
- ? { $case: 'streamArns', streamArns: d.stream_arns }
610
- : undefined,
611
- extraOptions: d.extra_options,
612
- }));
613
- export const unmarshalLastDistinctFunctionSchema = z
614
- .object({
615
- input: z.string().optional(),
616
- n: z
617
- .union([z.number(), z.bigint()])
618
- .transform(v => BigInt(v))
619
- .optional(),
620
- })
621
- .transform(d => ({
622
- input: d.input,
623
- n: d.n,
624
- }));
625
- export const unmarshalLastFunctionSchema = z
626
- .object({
627
- input: z.string().optional(),
628
- })
629
- .transform(d => ({
630
- input: d.input,
631
- }));
632
- export const unmarshalLastNFunctionSchema = z
633
- .object({
634
- input: z.string().optional(),
635
- n: z
636
- .union([z.number(), z.bigint()])
637
- .transform(v => BigInt(v))
638
- .optional(),
639
- })
640
- .transform(d => ({
641
- input: d.input,
642
- n: d.n,
643
- }));
644
- export const unmarshalLineageContextSchema = z
645
- .object({
646
- notebook_id: z
647
- .union([z.number(), z.bigint()])
648
- .transform(v => BigInt(v))
649
- .optional(),
650
- job_context: z.lazy(() => unmarshalJobContextSchema).optional(),
651
- })
652
- .transform(d => ({
653
- notebookId: d.notebook_id,
654
- jobContext: d.job_context,
655
- }));
656
- export const unmarshalListFeaturesResponseSchema = z
657
- .object({
658
- features: z.array(z.lazy(() => unmarshalFeatureSchema)).optional(),
659
- next_page_token: z.string().optional(),
660
- })
661
- .transform(d => ({
662
- features: d.features,
663
- nextPageToken: d.next_page_token,
664
- }));
665
- export const unmarshalListKafkaConfigsResponseSchema = z
666
- .object({
667
- kafka_configs: z
668
- .array(z.lazy(() => unmarshalKafkaConfigSchema))
669
- .optional(),
670
- next_page_token: z.string().optional(),
671
- })
672
- .transform(d => ({
673
- kafkaConfigs: d.kafka_configs,
674
- nextPageToken: d.next_page_token,
675
- }));
676
- export const unmarshalListMaterializedFeaturesResponseSchema = z
677
- .object({
678
- materialized_features: z
679
- .array(z.lazy(() => unmarshalMaterializedFeatureSchema))
680
- .optional(),
681
- next_page_token: z.string().optional(),
682
- })
683
- .transform(d => ({
684
- materializedFeatures: d.materialized_features,
685
- nextPageToken: d.next_page_token,
686
- }));
687
- export const unmarshalListStreamsResponseSchema = z
688
- .object({
689
- streams: z.array(z.lazy(() => unmarshalStreamSchema)).optional(),
690
- next_page_token: z.string().optional(),
691
- })
692
- .transform(d => ({
693
- streams: d.streams,
694
- nextPageToken: d.next_page_token,
695
- }));
696
- export const unmarshalMaterializedFeatureSchema = z
697
- .object({
698
- materialized_feature_id: z.string().optional(),
699
- feature_name: z.string().optional(),
700
- offline_store_config: z
701
- .lazy(() => unmarshalOfflineStoreConfigSchema)
702
- .optional(),
703
- online_store_config: z
704
- .lazy(() => unmarshalOnlineStoreConfigSchema)
705
- .optional(),
706
- table_name: z.string().optional(),
707
- pipeline_schedule_state: z.string().optional(),
708
- last_materialization_time: z
709
- .string()
710
- .transform(s => Temporal.Instant.from(s))
711
- .optional(),
712
- cron_schedule: z.string().optional(),
713
- is_online: z.boolean().optional(),
714
- cron_schedule_trigger: z
715
- .lazy(() => unmarshalCronScheduleSchema)
716
- .optional(),
717
- table_trigger: z.lazy(() => unmarshalTableTriggerSchema).optional(),
718
- streaming_mode: z.lazy(() => unmarshalStreamingModeSchema).optional(),
719
- })
720
- .transform(d => ({
721
- materializedFeatureId: d.materialized_feature_id,
722
- featureName: d.feature_name,
723
- destination: d.offline_store_config !== undefined
724
- ? {
725
- $case: 'offlineStoreConfig',
726
- offlineStoreConfig: d.offline_store_config,
727
- }
728
- : d.online_store_config !== undefined
729
- ? {
730
- $case: 'onlineStoreConfig',
731
- onlineStoreConfig: d.online_store_config,
732
- }
733
- : undefined,
734
- tableName: d.table_name,
735
- pipelineScheduleState: d.pipeline_schedule_state,
736
- lastMaterializationTime: d.last_materialization_time,
737
- cronSchedule: d.cron_schedule,
738
- isOnline: d.is_online,
739
- trigger: d.cron_schedule_trigger !== undefined
740
- ? {
741
- $case: 'cronScheduleTrigger',
742
- cronScheduleTrigger: d.cron_schedule_trigger,
743
- }
744
- : d.table_trigger !== undefined
745
- ? { $case: 'tableTrigger', tableTrigger: d.table_trigger }
746
- : d.streaming_mode !== undefined
747
- ? {
748
- $case: 'streamingMode',
749
- streamingMode: d.streaming_mode,
750
- }
751
- : undefined,
752
- }));
753
- export const unmarshalMaxFunctionSchema = z
754
- .object({
755
- input: z.string().optional(),
756
- })
757
- .transform(d => ({
758
- input: d.input,
759
- }));
760
- export const unmarshalMinFunctionSchema = z
761
- .object({
762
- input: z.string().optional(),
763
- })
764
- .transform(d => ({
765
- input: d.input,
766
- }));
767
- export const unmarshalMtlsConfigSchema = z
768
- .object({
769
- keystore_location: z.string().optional(),
770
- keystore_password_ref: z
771
- .lazy(() => unmarshalSecretScopeReferenceSchema)
772
- .optional(),
773
- key_password_ref: z
774
- .lazy(() => unmarshalSecretScopeReferenceSchema)
775
- .optional(),
776
- truststore_location: z.string().optional(),
777
- truststore_password_ref: z
778
- .lazy(() => unmarshalSecretScopeReferenceSchema)
779
- .optional(),
780
- disable_hostname_verification: z.boolean().optional(),
781
- })
782
- .transform(d => ({
783
- keystoreLocation: d.keystore_location,
784
- keystorePasswordRef: d.keystore_password_ref,
785
- keyPasswordRef: d.key_password_ref,
786
- truststoreLocation: d.truststore_location,
787
- truststorePasswordRef: d.truststore_password_ref,
788
- disableHostnameVerification: d.disable_hostname_verification,
789
- }));
790
- export const unmarshalOfflineStoreConfigSchema = z
791
- .object({
792
- catalog_name: z.string().optional(),
793
- schema_name: z.string().optional(),
794
- table_name_prefix: z.string().optional(),
795
- })
796
- .transform(d => ({
797
- catalogName: d.catalog_name,
798
- schemaName: d.schema_name,
799
- tableNamePrefix: d.table_name_prefix,
800
- }));
801
- export const unmarshalOnlineStoreConfigSchema = z
802
- .object({
803
- catalog_name: z.string().optional(),
804
- schema_name: z.string().optional(),
805
- table_name_prefix: z.string().optional(),
806
- online_store_name: z.string().optional(),
807
- })
808
- .transform(d => ({
809
- catalogName: d.catalog_name,
810
- schemaName: d.schema_name,
811
- tableNamePrefix: d.table_name_prefix,
812
- onlineStoreName: d.online_store_name,
813
- }));
814
- export const unmarshalProtoSchemaSpecSchema = z
815
- .object({
816
- schema_text: z.string().optional(),
817
- message_name: z.string().optional(),
818
- })
819
- .transform(d => ({
820
- schemaText: d.schema_text,
821
- messageName: d.message_name,
822
- }));
823
- export const unmarshalRequestSourceSchema = z
824
- .object({
825
- flat_schema: z.lazy(() => unmarshalFlatSchemaSchema).optional(),
826
- })
827
- .transform(d => ({
828
- schema: d.flat_schema !== undefined
829
- ? { $case: 'flatSchema', flatSchema: d.flat_schema }
830
- : undefined,
831
- }));
832
- export const unmarshalRollingWindowSchema = z
833
- .object({
834
- window_duration: z
835
- .string()
836
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
837
- .optional(),
838
- delay: z
839
- .string()
840
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
841
- .optional(),
842
- })
843
- .transform(d => ({
844
- windowDuration: d.window_duration,
845
- delay: d.delay,
846
- }));
847
- export const unmarshalSawtoothWindowSchema = z
848
- .object({
849
- window_duration: z
850
- .string()
851
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
852
- .optional(),
853
- delay: z
854
- .string()
855
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
856
- .optional(),
857
- })
858
- .transform(d => ({
859
- windowDuration: d.window_duration,
860
- delay: d.delay,
861
- }));
862
- export const unmarshalSchemaConfigSchema = z
863
- .object({
864
- json_schema: z.string().optional(),
865
- avro_schema: z.string().optional(),
866
- proto_schema: z.lazy(() => unmarshalProtoSchemaSpecSchema).optional(),
867
- })
868
- .transform(d => ({
869
- schema: d.json_schema !== undefined
870
- ? { $case: 'jsonSchema', jsonSchema: d.json_schema }
871
- : d.avro_schema !== undefined
872
- ? { $case: 'avroSchema', avroSchema: d.avro_schema }
873
- : d.proto_schema !== undefined
874
- ? { $case: 'protoSchema', protoSchema: d.proto_schema }
875
- : undefined,
876
- }));
877
- export const unmarshalSchemaLocatorSchema = z
878
- .object({
879
- confluent_schema: z
880
- .lazy(() => unmarshalSchemaLocator_ConfluentSchemaSchema)
881
- .optional(),
882
- format: z.string().optional(),
883
- })
884
- .transform(d => ({
885
- registrySchema: d.confluent_schema !== undefined
886
- ? {
887
- $case: 'confluentSchema',
888
- confluentSchema: d.confluent_schema,
889
- }
890
- : undefined,
891
- format: d.format,
892
- }));
893
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
894
- export const unmarshalSchemaLocator_ConfluentSchemaSchema = z
895
- .object({
896
- subject: z.string().optional(),
897
- })
898
- .transform(d => ({
899
- subject: d.subject,
900
- }));
901
- export const unmarshalSchemaRegistryConfigSchema = z
902
- .object({
903
- uc_connection: z.string().optional(),
904
- api_secret_ref: z
905
- .lazy(() => unmarshalSecretScopeReferenceSchema)
906
- .optional(),
907
- payload_schema_locator: z
908
- .lazy(() => unmarshalSchemaLocatorSchema)
909
- .optional(),
910
- key_schema_locator: z.lazy(() => unmarshalSchemaLocatorSchema).optional(),
911
- })
912
- .transform(d => ({
913
- ucConnection: d.uc_connection,
914
- apiSecretRef: d.api_secret_ref,
915
- payloadSchemaLocator: d.payload_schema_locator,
916
- keySchemaLocator: d.key_schema_locator,
917
- }));
918
- export const unmarshalSecretScopeReferenceSchema = z
919
- .object({
920
- scope: z.string().optional(),
921
- key: z.string().optional(),
922
- })
923
- .transform(d => ({
924
- scope: d.scope,
925
- key: d.key,
926
- }));
927
- export const unmarshalSlidingWindowSchema = z
928
- .object({
929
- window_duration: z
930
- .string()
931
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
932
- .optional(),
933
- slide_duration: z
934
- .string()
935
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
936
- .optional(),
937
- })
938
- .transform(d => ({
939
- windowDuration: d.window_duration,
940
- slideDuration: d.slide_duration,
941
- }));
942
- export const unmarshalStddevPopFunctionSchema = z
943
- .object({
944
- input: z.string().optional(),
945
- })
946
- .transform(d => ({
947
- input: d.input,
948
- }));
949
- export const unmarshalStddevSampFunctionSchema = z
950
- .object({
951
- input: z.string().optional(),
952
- })
953
- .transform(d => ({
954
- input: d.input,
955
- }));
956
- export const unmarshalStreamSchema = z
957
- .object({
958
- name: z.string().optional(),
959
- description: z.string().optional(),
960
- source_config: z.lazy(() => unmarshalStreamSourceConfigSchema).optional(),
961
- connection_config: z
962
- .lazy(() => unmarshalStreamConnectionConfigSchema)
963
- .optional(),
964
- schema_config: z.lazy(() => unmarshalStreamSchemaConfigSchema).optional(),
965
- ingestion_config: z.lazy(() => unmarshalIngestionConfigSchema).optional(),
966
- create_time: z
967
- .string()
968
- .transform(s => Temporal.Instant.from(s))
969
- .optional(),
970
- created_by: z.string().optional(),
971
- update_time: z
972
- .string()
973
- .transform(s => Temporal.Instant.from(s))
974
- .optional(),
975
- updated_by: z.string().optional(),
976
- browse_only: z.boolean().optional(),
977
- })
978
- .transform(d => ({
979
- name: d.name,
980
- description: d.description,
981
- sourceConfig: d.source_config,
982
- connectionConfig: d.connection_config,
983
- schemaConfig: d.schema_config,
984
- ingestionConfig: d.ingestion_config,
985
- createTime: d.create_time,
986
- createdBy: d.created_by,
987
- updateTime: d.update_time,
988
- updatedBy: d.updated_by,
989
- browseOnly: d.browse_only,
990
- }));
991
- export const unmarshalStreamArnListSchema = z
992
- .object({
993
- arns: z.array(z.string()).optional(),
994
- })
995
- .transform(d => ({
996
- arns: d.arns,
997
- }));
998
- export const unmarshalStreamConnectionConfigSchema = z
999
- .object({
1000
- uc_connection_name: z.string().optional(),
1001
- direct_mtls_config: z
1002
- .lazy(() => unmarshalDirectMtlsConfigSchema)
1003
- .optional(),
1004
- })
1005
- .transform(d => ({
1006
- connectionConfig: d.uc_connection_name !== undefined
1007
- ? {
1008
- $case: 'ucConnectionName',
1009
- ucConnectionName: d.uc_connection_name,
1010
- }
1011
- : d.direct_mtls_config !== undefined
1012
- ? {
1013
- $case: 'directMtlsConfig',
1014
- directMtlsConfig: d.direct_mtls_config,
1015
- }
1016
- : undefined,
1017
- }));
1018
- export const unmarshalStreamNameListSchema = z
1019
- .object({
1020
- names: z.array(z.string()).optional(),
1021
- })
1022
- .transform(d => ({
1023
- names: d.names,
1024
- }));
1025
- export const unmarshalStreamSchemaConfigSchema = z
1026
- .object({
1027
- direct_schemas: z.lazy(() => unmarshalDirectSchemasSchema).optional(),
1028
- schema_registry_config: z
1029
- .lazy(() => unmarshalSchemaRegistryConfigSchema)
1030
- .optional(),
1031
- })
1032
- .transform(d => ({
1033
- schemaConfig: d.direct_schemas !== undefined
1034
- ? { $case: 'directSchemas', directSchemas: d.direct_schemas }
1035
- : d.schema_registry_config !== undefined
1036
- ? {
1037
- $case: 'schemaRegistryConfig',
1038
- schemaRegistryConfig: d.schema_registry_config,
1039
- }
1040
- : undefined,
1041
- }));
1042
- export const unmarshalStreamSourceSchema = z
1043
- .object({
1044
- full_name: z.string().optional(),
1045
- filter_condition: z.string().optional(),
1046
- transformation_sql: z.string().optional(),
1047
- dataframe_schema: z.string().optional(),
1048
- })
1049
- .transform(d => ({
1050
- fullName: d.full_name,
1051
- filterCondition: d.filter_condition,
1052
- transformationSql: d.transformation_sql,
1053
- dataframeSchema: d.dataframe_schema,
1054
- }));
1055
- export const unmarshalStreamSourceConfigSchema = z
1056
- .object({
1057
- kafka_stream_config: z
1058
- .lazy(() => unmarshalKafkaStreamConfigSchema)
1059
- .optional(),
1060
- kinesis_stream_config: z
1061
- .lazy(() => unmarshalKinesisStreamConfigSchema)
1062
- .optional(),
1063
- })
1064
- .transform(d => ({
1065
- sourceConfig: d.kafka_stream_config !== undefined
1066
- ? {
1067
- $case: 'kafkaStreamConfig',
1068
- kafkaStreamConfig: d.kafka_stream_config,
1069
- }
1070
- : d.kinesis_stream_config !== undefined
1071
- ? {
1072
- $case: 'kinesisStreamConfig',
1073
- kinesisStreamConfig: d.kinesis_stream_config,
1074
- }
1075
- : undefined,
1076
- }));
1077
- export const unmarshalStreamingModeSchema = z
1078
- .object({
1079
- mode: z.string().optional(),
1080
- freshness_target: z.string().optional(),
1081
- })
1082
- .transform(d => ({
1083
- mode: d.mode,
1084
- freshnessTarget: d.freshness_target,
1085
- }));
1086
- export const unmarshalSubscriptionModeSchema = z
1087
- .object({
1088
- assign: z.string().optional(),
1089
- subscribe: z.string().optional(),
1090
- subscribe_pattern: z.string().optional(),
1091
- })
1092
- .transform(d => ({
1093
- subscriptionMode: d.assign !== undefined
1094
- ? { $case: 'assign', assign: d.assign }
1095
- : d.subscribe !== undefined
1096
- ? { $case: 'subscribe', subscribe: d.subscribe }
1097
- : d.subscribe_pattern !== undefined
1098
- ? {
1099
- $case: 'subscribePattern',
1100
- subscribePattern: d.subscribe_pattern,
1101
- }
1102
- : undefined,
1103
- }));
1104
- export const unmarshalSumFunctionSchema = z
1105
- .object({
1106
- input: z.string().optional(),
1107
- })
1108
- .transform(d => ({
1109
- input: d.input,
1110
- }));
1111
- export const unmarshalTableTriggerSchema = z.object({});
1112
- export const unmarshalTimeWindowSchema = z
1113
- .object({
1114
- continuous: z.lazy(() => unmarshalContinuousWindowSchema).optional(),
1115
- tumbling: z.lazy(() => unmarshalTumblingWindowSchema).optional(),
1116
- sliding: z.lazy(() => unmarshalSlidingWindowSchema).optional(),
1117
- rolling: z.lazy(() => unmarshalRollingWindowSchema).optional(),
1118
- sawtooth: z.lazy(() => unmarshalSawtoothWindowSchema).optional(),
1119
- })
1120
- .transform(d => ({
1121
- windowType: d.continuous !== undefined
1122
- ? { $case: 'continuous', continuous: d.continuous }
1123
- : d.tumbling !== undefined
1124
- ? { $case: 'tumbling', tumbling: d.tumbling }
1125
- : d.sliding !== undefined
1126
- ? { $case: 'sliding', sliding: d.sliding }
1127
- : d.rolling !== undefined
1128
- ? { $case: 'rolling', rolling: d.rolling }
1129
- : d.sawtooth !== undefined
1130
- ? { $case: 'sawtooth', sawtooth: d.sawtooth }
1131
- : undefined,
1132
- }));
1133
- export const unmarshalTimeseriesColumnSchema = z
1134
- .object({
1135
- name: z.string().optional(),
1136
- })
1137
- .transform(d => ({
1138
- name: d.name,
1139
- }));
1140
- export const unmarshalTumblingWindowSchema = z
1141
- .object({
1142
- window_duration: z
1143
- .string()
1144
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
1145
- .optional(),
1146
- })
1147
- .transform(d => ({
1148
- windowDuration: d.window_duration,
1149
- }));
1150
- export const unmarshalVarPopFunctionSchema = z
1151
- .object({
1152
- input: z.string().optional(),
1153
- })
1154
- .transform(d => ({
1155
- input: d.input,
1156
- }));
1157
- export const unmarshalVarSampFunctionSchema = z
1158
- .object({
1159
- input: z.string().optional(),
1160
- })
1161
- .transform(d => ({
1162
- input: d.input,
1163
- }));
1164
- export const marshalAggregationFunctionSchema = z
1165
- .object({
1166
- operation: z
1167
- .discriminatedUnion('$case', [
1168
- z.object({
1169
- $case: z.literal('avg'),
1170
- avg: z.lazy(() => marshalAvgFunctionSchema),
1171
- }),
1172
- z.object({
1173
- $case: z.literal('countFunction'),
1174
- countFunction: z.lazy(() => marshalCountFunctionSchema),
1175
- }),
1176
- z.object({
1177
- $case: z.literal('sum'),
1178
- sum: z.lazy(() => marshalSumFunctionSchema),
1179
- }),
1180
- z.object({
1181
- $case: z.literal('min'),
1182
- min: z.lazy(() => marshalMinFunctionSchema),
1183
- }),
1184
- z.object({
1185
- $case: z.literal('max'),
1186
- max: z.lazy(() => marshalMaxFunctionSchema),
1187
- }),
1188
- z.object({
1189
- $case: z.literal('first'),
1190
- first: z.lazy(() => marshalFirstFunctionSchema),
1191
- }),
1192
- z.object({
1193
- $case: z.literal('last'),
1194
- last: z.lazy(() => marshalLastFunctionSchema),
1195
- }),
1196
- z.object({
1197
- $case: z.literal('approxCountDistinct'),
1198
- approxCountDistinct: z.lazy(() => marshalApproxCountDistinctFunctionSchema),
1199
- }),
1200
- z.object({
1201
- $case: z.literal('approxPercentile'),
1202
- approxPercentile: z.lazy(() => marshalApproxPercentileFunctionSchema),
1203
- }),
1204
- z.object({
1205
- $case: z.literal('stddevPop'),
1206
- stddevPop: z.lazy(() => marshalStddevPopFunctionSchema),
1207
- }),
1208
- z.object({
1209
- $case: z.literal('stddevSamp'),
1210
- stddevSamp: z.lazy(() => marshalStddevSampFunctionSchema),
1211
- }),
1212
- z.object({
1213
- $case: z.literal('varPop'),
1214
- varPop: z.lazy(() => marshalVarPopFunctionSchema),
1215
- }),
1216
- z.object({
1217
- $case: z.literal('varSamp'),
1218
- varSamp: z.lazy(() => marshalVarSampFunctionSchema),
1219
- }),
1220
- z.object({
1221
- $case: z.literal('firstN'),
1222
- firstN: z.lazy(() => marshalFirstNFunctionSchema),
1223
- }),
1224
- z.object({
1225
- $case: z.literal('lastN'),
1226
- lastN: z.lazy(() => marshalLastNFunctionSchema),
1227
- }),
1228
- z.object({
1229
- $case: z.literal('firstDistinct'),
1230
- firstDistinct: z.lazy(() => marshalFirstDistinctFunctionSchema),
1231
- }),
1232
- z.object({
1233
- $case: z.literal('lastDistinct'),
1234
- lastDistinct: z.lazy(() => marshalLastDistinctFunctionSchema),
1235
- }),
1236
- ])
1237
- .optional(),
1238
- timeWindow: z.lazy(() => marshalTimeWindowSchema).optional(),
1239
- })
1240
- .transform(d => ({
1241
- ...(d.operation?.$case === 'avg' && { avg: d.operation.avg }),
1242
- ...(d.operation?.$case === 'countFunction' && {
1243
- count_function: d.operation.countFunction,
1244
- }),
1245
- ...(d.operation?.$case === 'sum' && { sum: d.operation.sum }),
1246
- ...(d.operation?.$case === 'min' && { min: d.operation.min }),
1247
- ...(d.operation?.$case === 'max' && { max: d.operation.max }),
1248
- ...(d.operation?.$case === 'first' && { first: d.operation.first }),
1249
- ...(d.operation?.$case === 'last' && { last: d.operation.last }),
1250
- ...(d.operation?.$case === 'approxCountDistinct' && {
1251
- approx_count_distinct: d.operation.approxCountDistinct,
1252
- }),
1253
- ...(d.operation?.$case === 'approxPercentile' && {
1254
- approx_percentile: d.operation.approxPercentile,
1255
- }),
1256
- ...(d.operation?.$case === 'stddevPop' && {
1257
- stddev_pop: d.operation.stddevPop,
1258
- }),
1259
- ...(d.operation?.$case === 'stddevSamp' && {
1260
- stddev_samp: d.operation.stddevSamp,
1261
- }),
1262
- ...(d.operation?.$case === 'varPop' && { var_pop: d.operation.varPop }),
1263
- ...(d.operation?.$case === 'varSamp' && { var_samp: d.operation.varSamp }),
1264
- ...(d.operation?.$case === 'firstN' && { first_n: d.operation.firstN }),
1265
- ...(d.operation?.$case === 'lastN' && { last_n: d.operation.lastN }),
1266
- ...(d.operation?.$case === 'firstDistinct' && {
1267
- first_distinct: d.operation.firstDistinct,
1268
- }),
1269
- ...(d.operation?.$case === 'lastDistinct' && {
1270
- last_distinct: d.operation.lastDistinct,
1271
- }),
1272
- time_window: d.timeWindow,
1273
- }));
1274
- export const marshalApproxCountDistinctFunctionSchema = z
1275
- .object({
1276
- input: z.string().optional(),
1277
- relativeSd: z.number().optional(),
1278
- })
1279
- .transform(d => ({
1280
- input: d.input,
1281
- relative_sd: d.relativeSd,
1282
- }));
1283
- export const marshalApproxPercentileFunctionSchema = z
1284
- .object({
1285
- input: z.string().optional(),
1286
- percentile: z.number().optional(),
1287
- accuracy: z.bigint().optional(),
1288
- })
1289
- .transform(d => ({
1290
- input: d.input,
1291
- percentile: d.percentile,
1292
- accuracy: d.accuracy,
1293
- }));
1294
- export const marshalAuthConfigSchema = z
1295
- .object({
1296
- authConfig: z
1297
- .discriminatedUnion('$case', [
1298
- z.object({
1299
- $case: z.literal('ucServiceCredentialName'),
1300
- ucServiceCredentialName: z.string(),
1301
- }),
1302
- z.object({
1303
- $case: z.literal('mtlsConfig'),
1304
- mtlsConfig: z.lazy(() => marshalMtlsConfigSchema),
1305
- }),
1306
- ])
1307
- .optional(),
1308
- })
1309
- .transform(d => ({
1310
- ...(d.authConfig?.$case === 'ucServiceCredentialName' && {
1311
- uc_service_credential_name: d.authConfig.ucServiceCredentialName,
1312
- }),
1313
- ...(d.authConfig?.$case === 'mtlsConfig' && {
1314
- mtls_config: d.authConfig.mtlsConfig,
1315
- }),
1316
- }));
1317
- export const marshalAvgFunctionSchema = z
1318
- .object({
1319
- input: z.string().optional(),
1320
- })
1321
- .transform(d => ({
1322
- input: d.input,
1323
- }));
1324
- export const marshalBackfillSourceSchema = z
1325
- .object({
1326
- backfillSource: z
1327
- .discriminatedUnion('$case', [
1328
- z.object({
1329
- $case: z.literal('deltaTableSource'),
1330
- deltaTableSource: z.lazy(() => marshalDeltaTableSourceSchema),
1331
- }),
1332
- z.object({
1333
- $case: z.literal('deltaTableName'),
1334
- deltaTableName: z.string(),
1335
- }),
1336
- ])
1337
- .optional(),
1338
- })
1339
- .transform(d => ({
1340
- ...(d.backfillSource?.$case === 'deltaTableSource' && {
1341
- delta_table_source: d.backfillSource.deltaTableSource,
1342
- }),
1343
- ...(d.backfillSource?.$case === 'deltaTableName' && {
1344
- delta_table_name: d.backfillSource.deltaTableName,
1345
- }),
1346
- }));
1347
- export const marshalBatchCreateMaterializedFeaturesRequestSchema = z
1348
- .object({
1349
- requests: z
1350
- .array(z.lazy(() => marshalCreateMaterializedFeatureRequestSchema))
1351
- .optional(),
1352
- })
1353
- .transform(d => ({
1354
- requests: d.requests,
1355
- }));
1356
- export const marshalColumnIdentifierSchema = z
1357
- .object({
1358
- variantExprPath: z.string().optional(),
1359
- })
1360
- .transform(d => ({
1361
- variant_expr_path: d.variantExprPath,
1362
- }));
1363
- export const marshalColumnSelectionSchema = z
1364
- .object({
1365
- column: z.string().optional(),
1366
- })
1367
- .transform(d => ({
1368
- column: d.column,
1369
- }));
1370
- export const marshalContinuousWindowSchema = z
1371
- .object({
1372
- windowDuration: z
1373
- .any()
1374
- .transform((d) => d.toString().slice(2).toLowerCase())
1375
- .optional(),
1376
- offset: z
1377
- .any()
1378
- .transform((d) => d.toString().slice(2).toLowerCase())
1379
- .optional(),
1380
- })
1381
- .transform(d => ({
1382
- window_duration: d.windowDuration,
1383
- offset: d.offset,
1384
- }));
1385
- export const marshalCountFunctionSchema = z
1386
- .object({
1387
- input: z.string().optional(),
1388
- })
1389
- .transform(d => ({
1390
- input: d.input,
1391
- }));
1392
- export const marshalCreateMaterializedFeatureRequestSchema = z
1393
- .object({
1394
- materializedFeature: z
1395
- .lazy(() => marshalMaterializedFeatureSchema)
1396
- .optional(),
1397
- })
1398
- .transform(d => ({
1399
- materialized_feature: d.materializedFeature,
1400
- }));
1401
- export const marshalCronScheduleSchema = z
1402
- .object({
1403
- cronExpression: z.string().optional(),
1404
- })
1405
- .transform(d => ({
1406
- cron_expression: d.cronExpression,
1407
- }));
1408
- export const marshalDataSourceSchema = z
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
- approxCountDistinct: {
2302
- wire: 'approx_count_distinct',
2303
- children: () => approxCountDistinctFunctionFieldMaskSchema,
2304
- },
2305
- approxPercentile: {
2306
- wire: 'approx_percentile',
2307
- children: () => approxPercentileFunctionFieldMaskSchema,
2308
- },
2309
- avg: { wire: 'avg', children: () => avgFunctionFieldMaskSchema },
2310
- countFunction: {
2311
- wire: 'count_function',
2312
- children: () => countFunctionFieldMaskSchema,
2313
- },
2314
- first: { wire: 'first', children: () => firstFunctionFieldMaskSchema },
2315
- firstDistinct: {
2316
- wire: 'first_distinct',
2317
- children: () => firstDistinctFunctionFieldMaskSchema,
2318
- },
2319
- firstN: { wire: 'first_n', children: () => firstNFunctionFieldMaskSchema },
2320
- last: { wire: 'last', children: () => lastFunctionFieldMaskSchema },
2321
- lastDistinct: {
2322
- wire: 'last_distinct',
2323
- children: () => lastDistinctFunctionFieldMaskSchema,
2324
- },
2325
- lastN: { wire: 'last_n', children: () => lastNFunctionFieldMaskSchema },
2326
- max: { wire: 'max', children: () => maxFunctionFieldMaskSchema },
2327
- min: { wire: 'min', children: () => minFunctionFieldMaskSchema },
2328
- stddevPop: {
2329
- wire: 'stddev_pop',
2330
- children: () => stddevPopFunctionFieldMaskSchema,
2331
- },
2332
- stddevSamp: {
2333
- wire: 'stddev_samp',
2334
- children: () => stddevSampFunctionFieldMaskSchema,
2335
- },
2336
- sum: { wire: 'sum', children: () => sumFunctionFieldMaskSchema },
2337
- timeWindow: { wire: 'time_window', children: () => timeWindowFieldMaskSchema },
2338
- varPop: { wire: 'var_pop', children: () => varPopFunctionFieldMaskSchema },
2339
- varSamp: { wire: 'var_samp', children: () => varSampFunctionFieldMaskSchema },
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
- input: { wire: 'input' },
2343
- relativeSd: { wire: 'relative_sd' },
1478
+ input: { wire: "input" },
1479
+ relativeSd: { wire: "relative_sd" }
2344
1480
  };
2345
1481
  const approxPercentileFunctionFieldMaskSchema = {
2346
- accuracy: { wire: 'accuracy' },
2347
- input: { wire: 'input' },
2348
- percentile: { wire: 'percentile' },
1482
+ accuracy: { wire: "accuracy" },
1483
+ input: { wire: "input" },
1484
+ percentile: { wire: "percentile" }
2349
1485
  };
2350
1486
  const authConfigFieldMaskSchema = {
2351
- mtlsConfig: { wire: 'mtls_config', children: () => mtlsConfigFieldMaskSchema },
2352
- ucServiceCredentialName: { wire: 'uc_service_credential_name' },
2353
- };
2354
- const avgFunctionFieldMaskSchema = {
2355
- input: { wire: 'input' },
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
- deltaTableName: { wire: 'delta_table_name' },
2359
- deltaTableSource: {
2360
- wire: 'delta_table_source',
2361
- children: () => deltaTableSourceFieldMaskSchema,
2362
- },
2363
- };
2364
- const columnIdentifierFieldMaskSchema = {
2365
- variantExprPath: { wire: 'variant_expr_path' },
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
- offset: { wire: 'offset' },
2372
- windowDuration: { wire: 'window_duration' },
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
- deltaTableSource: {
2382
- wire: 'delta_table_source',
2383
- children: () => deltaTableSourceFieldMaskSchema,
2384
- },
2385
- kafkaSource: {
2386
- wire: 'kafka_source',
2387
- children: () => kafkaSourceFieldMaskSchema,
2388
- },
2389
- requestSource: {
2390
- wire: 'request_source',
2391
- children: () => requestSourceFieldMaskSchema,
2392
- },
2393
- streamSource: {
2394
- wire: 'stream_source',
2395
- children: () => streamSourceFieldMaskSchema,
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
- dataframeSchema: { wire: 'dataframe_schema' },
2400
- entityColumns: { wire: 'entity_columns' },
2401
- filterCondition: { wire: 'filter_condition' },
2402
- fullName: { wire: 'full_name' },
2403
- timeseriesColumn: { wire: 'timeseries_column' },
2404
- transformationSql: { wire: 'transformation_sql' },
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
- bootstrapServers: { wire: 'bootstrap_servers' },
2408
- mtlsConfig: { wire: 'mtls_config', children: () => mtlsConfigFieldMaskSchema },
1536
+ bootstrapServers: { wire: "bootstrap_servers" },
1537
+ mtlsConfig: {
1538
+ wire: "mtls_config",
1539
+ children: () => mtlsConfigFieldMaskSchema
1540
+ }
2409
1541
  };
2410
1542
  const directSchemasFieldMaskSchema = {
2411
- keySchema: { wire: 'key_schema', children: () => schemaConfigFieldMaskSchema },
2412
- payloadSchema: {
2413
- wire: 'payload_schema',
2414
- children: () => schemaConfigFieldMaskSchema,
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
- catalogName: { wire: 'catalog_name' },
2419
- createdAt: { wire: 'created_at' },
2420
- createdBy: { wire: 'created_by' },
2421
- description: { wire: 'description' },
2422
- entities: { wire: 'entities' },
2423
- filterCondition: { wire: 'filter_condition' },
2424
- fullName: { wire: 'full_name' },
2425
- function: { wire: 'function', children: () => functionFieldMaskSchema },
2426
- inputs: { wire: 'inputs' },
2427
- lineageContext: {
2428
- wire: 'lineage_context',
2429
- children: () => lineageContextFieldMaskSchema,
2430
- },
2431
- name: { wire: 'name' },
2432
- schemaName: { wire: 'schema_name' },
2433
- source: { wire: 'source', children: () => dataSourceFieldMaskSchema },
2434
- timeWindow: { wire: 'time_window', children: () => timeWindowFieldMaskSchema },
2435
- timeseriesColumn: {
2436
- wire: 'timeseries_column',
2437
- children: () => timeseriesColumnFieldMaskSchema,
2438
- },
2439
- };
2440
- export function featureFieldMask(...paths) {
2441
- return FieldMask.build(paths, featureFieldMaskSchema);
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
- input: { wire: 'input' },
2445
- n: { wire: 'n' },
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
- input: { wire: 'input' },
2452
- n: { wire: 'n' },
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
- aggregationFunction: {
2459
- wire: 'aggregation_function',
2460
- children: () => aggregationFunctionFieldMaskSchema,
2461
- },
2462
- columnSelection: {
2463
- wire: 'column_selection',
2464
- children: () => columnSelectionFieldMaskSchema,
2465
- },
2466
- extraParameters: { wire: 'extra_parameters' },
2467
- functionType: { wire: 'function_type' },
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
- backfillJobId: { wire: 'backfill_job_id' },
2471
- backfillSource: {
2472
- wire: 'backfill_source',
2473
- children: () => backfillSourceFieldMaskSchema,
2474
- },
2475
- deduplicationColumns: { wire: 'deduplication_columns' },
2476
- ingestionDestination: {
2477
- wire: 'ingestion_destination',
2478
- children: () => ingestionDestinationFieldMaskSchema,
2479
- },
2480
- ingestionJobId: { wire: 'ingestion_job_id' },
2481
- ingestionPipelineId: { wire: 'ingestion_pipeline_id' },
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
- jobId: { wire: 'job_id' },
2488
- jobRunId: { wire: 'job_run_id' },
1625
+ jobId: { wire: "job_id" },
1626
+ jobRunId: { wire: "job_run_id" }
2489
1627
  };
2490
1628
  const kafkaConfigFieldMaskSchema = {
2491
- authConfig: { wire: 'auth_config', children: () => authConfigFieldMaskSchema },
2492
- backfillSource: {
2493
- wire: 'backfill_source',
2494
- children: () => backfillSourceFieldMaskSchema,
2495
- },
2496
- bootstrapServers: { wire: 'bootstrap_servers' },
2497
- extraOptions: { wire: 'extra_options' },
2498
- ingestionConfig: {
2499
- wire: 'ingestion_config',
2500
- children: () => ingestionConfigFieldMaskSchema,
2501
- },
2502
- keySchema: { wire: 'key_schema', children: () => schemaConfigFieldMaskSchema },
2503
- name: { wire: 'name' },
2504
- subscriptionMode: {
2505
- wire: 'subscription_mode',
2506
- children: () => subscriptionModeFieldMaskSchema,
2507
- },
2508
- valueSchema: {
2509
- wire: 'value_schema',
2510
- children: () => schemaConfigFieldMaskSchema,
2511
- },
2512
- };
2513
- export function kafkaConfigFieldMask(...paths) {
2514
- return FieldMask.build(paths, kafkaConfigFieldMaskSchema);
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
- entityColumnIdentifiers: { wire: 'entity_column_identifiers' },
2518
- filterCondition: { wire: 'filter_condition' },
2519
- name: { wire: 'name' },
2520
- timeseriesColumnIdentifier: {
2521
- wire: 'timeseries_column_identifier',
2522
- children: () => columnIdentifierFieldMaskSchema,
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
- extraOptions: { wire: 'extra_options' },
2527
- subscriptionMode: {
2528
- wire: 'subscription_mode',
2529
- children: () => kafkaSubscriptionModeFieldMaskSchema,
2530
- },
1670
+ extraOptions: { wire: "extra_options" },
1671
+ subscriptionMode: {
1672
+ wire: "subscription_mode",
1673
+ children: () => kafkaSubscriptionModeFieldMaskSchema
1674
+ }
2531
1675
  };
2532
1676
  const kafkaSubscriptionModeFieldMaskSchema = {
2533
- assign: { wire: 'assign' },
2534
- subscribe: { wire: 'subscribe' },
2535
- subscribePattern: { wire: 'subscribe_pattern' },
1677
+ assign: { wire: "assign" },
1678
+ subscribe: { wire: "subscribe" },
1679
+ subscribePattern: { wire: "subscribe_pattern" }
2536
1680
  };
2537
1681
  const kinesisStreamConfigFieldMaskSchema = {
2538
- extraOptions: { wire: 'extra_options' },
2539
- streamArns: {
2540
- wire: 'stream_arns',
2541
- children: () => streamArnListFieldMaskSchema,
2542
- },
2543
- streamNames: {
2544
- wire: 'stream_names',
2545
- children: () => streamNameListFieldMaskSchema,
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
- input: { wire: 'input' },
2550
- n: { wire: 'n' },
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
- input: { wire: 'input' },
2557
- n: { wire: 'n' },
1698
+ input: { wire: "input" },
1699
+ n: { wire: "n" }
2558
1700
  };
2559
1701
  const lineageContextFieldMaskSchema = {
2560
- jobContext: { wire: 'job_context', children: () => jobContextFieldMaskSchema },
2561
- notebookId: { wire: 'notebook_id' },
1702
+ jobContext: {
1703
+ wire: "job_context",
1704
+ children: () => jobContextFieldMaskSchema
1705
+ },
1706
+ notebookId: { wire: "notebook_id" }
2562
1707
  };
2563
1708
  const materializedFeatureFieldMaskSchema = {
2564
- cronSchedule: { wire: 'cron_schedule' },
2565
- cronScheduleTrigger: {
2566
- wire: 'cron_schedule_trigger',
2567
- children: () => cronScheduleFieldMaskSchema,
2568
- },
2569
- featureName: { wire: 'feature_name' },
2570
- isOnline: { wire: 'is_online' },
2571
- lastMaterializationTime: { wire: 'last_materialization_time' },
2572
- materializedFeatureId: { wire: 'materialized_feature_id' },
2573
- offlineStoreConfig: {
2574
- wire: 'offline_store_config',
2575
- children: () => offlineStoreConfigFieldMaskSchema,
2576
- },
2577
- onlineStoreConfig: {
2578
- wire: 'online_store_config',
2579
- children: () => onlineStoreConfigFieldMaskSchema,
2580
- },
2581
- pipelineScheduleState: { wire: 'pipeline_schedule_state' },
2582
- streamingMode: {
2583
- wire: 'streaming_mode',
2584
- children: () => streamingModeFieldMaskSchema,
2585
- },
2586
- tableName: { wire: 'table_name' },
2587
- tableTrigger: {
2588
- wire: 'table_trigger',
2589
- children: () => tableTriggerFieldMaskSchema,
2590
- },
2591
- };
2592
- export function materializedFeatureFieldMask(...paths) {
2593
- return FieldMask.build(paths, materializedFeatureFieldMaskSchema);
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
- input: { wire: 'input' },
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
- disableHostnameVerification: { wire: 'disable_hostname_verification' },
2603
- keyPasswordRef: {
2604
- wire: 'key_password_ref',
2605
- children: () => secretScopeReferenceFieldMaskSchema,
2606
- },
2607
- keystoreLocation: { wire: 'keystore_location' },
2608
- keystorePasswordRef: {
2609
- wire: 'keystore_password_ref',
2610
- children: () => secretScopeReferenceFieldMaskSchema,
2611
- },
2612
- truststoreLocation: { wire: 'truststore_location' },
2613
- truststorePasswordRef: {
2614
- wire: 'truststore_password_ref',
2615
- children: () => secretScopeReferenceFieldMaskSchema,
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
- catalogName: { wire: 'catalog_name' },
2620
- schemaName: { wire: 'schema_name' },
2621
- tableNamePrefix: { wire: 'table_name_prefix' },
1760
+ catalogName: { wire: "catalog_name" },
1761
+ schemaName: { wire: "schema_name" },
1762
+ tableNamePrefix: { wire: "table_name_prefix" }
2622
1763
  };
2623
1764
  const onlineStoreConfigFieldMaskSchema = {
2624
- catalogName: { wire: 'catalog_name' },
2625
- onlineStoreName: { wire: 'online_store_name' },
2626
- schemaName: { wire: 'schema_name' },
2627
- tableNamePrefix: { wire: 'table_name_prefix' },
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
- messageName: { wire: 'message_name' },
2631
- schemaText: { wire: 'schema_text' },
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
- delay: { wire: 'delay' },
2638
- windowDuration: { wire: 'window_duration' },
1779
+ delay: { wire: "delay" },
1780
+ windowDuration: { wire: "window_duration" }
2639
1781
  };
2640
1782
  const sawtoothWindowFieldMaskSchema = {
2641
- delay: { wire: 'delay' },
2642
- windowDuration: { wire: 'window_duration' },
1783
+ delay: { wire: "delay" },
1784
+ windowDuration: { wire: "window_duration" }
2643
1785
  };
2644
1786
  const schemaConfigFieldMaskSchema = {
2645
- avroSchema: { wire: 'avro_schema' },
2646
- jsonSchema: { wire: 'json_schema' },
2647
- protoSchema: {
2648
- wire: 'proto_schema',
2649
- children: () => protoSchemaSpecFieldMaskSchema,
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
- confluentSchema: {
2654
- wire: 'confluent_schema',
2655
- children: () => schemaLocator_ConfluentSchemaFieldMaskSchema,
2656
- },
2657
- format: { wire: 'format' },
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
- apiSecretRef: {
2665
- wire: 'api_secret_ref',
2666
- children: () => secretScopeReferenceFieldMaskSchema,
2667
- },
2668
- keySchemaLocator: {
2669
- wire: 'key_schema_locator',
2670
- children: () => schemaLocatorFieldMaskSchema,
2671
- },
2672
- payloadSchemaLocator: {
2673
- wire: 'payload_schema_locator',
2674
- children: () => schemaLocatorFieldMaskSchema,
2675
- },
2676
- ucConnection: { wire: 'uc_connection' },
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
- key: { wire: 'key' },
2680
- scope: { wire: 'scope' },
1818
+ key: { wire: "key" },
1819
+ scope: { wire: "scope" }
2681
1820
  };
2682
1821
  const slidingWindowFieldMaskSchema = {
2683
- slideDuration: { wire: 'slide_duration' },
2684
- windowDuration: { wire: 'window_duration' },
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
- browseOnly: { wire: 'browse_only' },
2694
- connectionConfig: {
2695
- wire: 'connection_config',
2696
- children: () => streamConnectionConfigFieldMaskSchema,
2697
- },
2698
- createTime: { wire: 'create_time' },
2699
- createdBy: { wire: 'created_by' },
2700
- description: { wire: 'description' },
2701
- ingestionConfig: {
2702
- wire: 'ingestion_config',
2703
- children: () => ingestionConfigFieldMaskSchema,
2704
- },
2705
- name: { wire: 'name' },
2706
- schemaConfig: {
2707
- wire: 'schema_config',
2708
- children: () => streamSchemaConfigFieldMaskSchema,
2709
- },
2710
- sourceConfig: {
2711
- wire: 'source_config',
2712
- children: () => streamSourceConfigFieldMaskSchema,
2713
- },
2714
- updateTime: { wire: 'update_time' },
2715
- updatedBy: { wire: 'updated_by' },
2716
- };
2717
- export function streamFieldMask(...paths) {
2718
- return FieldMask.build(paths, streamFieldMaskSchema);
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
- directMtlsConfig: {
2725
- wire: 'direct_mtls_config',
2726
- children: () => directMtlsConfigFieldMaskSchema,
2727
- },
2728
- ucConnectionName: { wire: 'uc_connection_name' },
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
- directSchemas: {
2735
- wire: 'direct_schemas',
2736
- children: () => directSchemasFieldMaskSchema,
2737
- },
2738
- schemaRegistryConfig: {
2739
- wire: 'schema_registry_config',
2740
- children: () => schemaRegistryConfigFieldMaskSchema,
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
- dataframeSchema: { wire: 'dataframe_schema' },
2745
- filterCondition: { wire: 'filter_condition' },
2746
- fullName: { wire: 'full_name' },
2747
- transformationSql: { wire: 'transformation_sql' },
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
- kafkaStreamConfig: {
2751
- wire: 'kafka_stream_config',
2752
- children: () => kafkaStreamConfigFieldMaskSchema,
2753
- },
2754
- kinesisStreamConfig: {
2755
- wire: 'kinesis_stream_config',
2756
- children: () => kinesisStreamConfigFieldMaskSchema,
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
- freshnessTarget: { wire: 'freshness_target' },
2761
- mode: { wire: 'mode' },
1891
+ freshnessTarget: { wire: "freshness_target" },
1892
+ mode: { wire: "mode" }
2762
1893
  };
2763
1894
  const subscriptionModeFieldMaskSchema = {
2764
- assign: { wire: 'assign' },
2765
- subscribe: { wire: 'subscribe' },
2766
- subscribePattern: { wire: 'subscribe_pattern' },
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
- continuous: {
2774
- wire: 'continuous',
2775
- children: () => continuousWindowFieldMaskSchema,
2776
- },
2777
- rolling: { wire: 'rolling', children: () => rollingWindowFieldMaskSchema },
2778
- sawtooth: { wire: 'sawtooth', children: () => sawtoothWindowFieldMaskSchema },
2779
- sliding: { wire: 'sliding', children: () => slidingWindowFieldMaskSchema },
2780
- tumbling: { wire: 'tumbling', children: () => tumblingWindowFieldMaskSchema },
2781
- };
2782
- const timeseriesColumnFieldMaskSchema = {
2783
- name: { wire: 'name' },
2784
- };
2785
- const tumblingWindowFieldMaskSchema = {
2786
- windowDuration: { wire: 'window_duration' },
2787
- };
2788
- const varPopFunctionFieldMaskSchema = {
2789
- input: { wire: 'input' },
2790
- };
2791
- const varSampFunctionFieldMaskSchema = {
2792
- input: { wire: 'input' },
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