@databricks/sdk-postgres 0.33.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,2961 +1,1889 @@
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 { z } from "zod";
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { FieldMask } from "@databricks/sdk-core/wkt";
4
+
5
+ //#region src/v1/model.ts
5
6
  /** The replication state of a single replicated table (CdfStatus). */
6
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
7
- export const CdfState = {
8
- /** Default value. Returned when the replication state is unknown or not set. */
9
- CDF_STATE_UNSPECIFIED: 'CDF_STATE_UNSPECIFIED',
10
- /**
11
- * Taking the initial snapshot: the table's existing rows are being written
12
- * to the Delta table.
13
- */
14
- CDF_STATE_SNAPSHOTTING: 'CDF_STATE_SNAPSHOTTING',
15
- /** Continuously streaming WAL changes to the Delta table. */
16
- CDF_STATE_STREAMING: 'CDF_STATE_STREAMING',
17
- /**
18
- * Reserved: replication for this table was superseded by a newer one.
19
- * Not currently returned by the API.
20
- */
21
- CDF_STATE_TERMINATED: 'CDF_STATE_TERMINATED',
22
- /**
23
- * The table is not being replicated: it was skipped because it is not
24
- * eligible for replication, or replication errored. See status_detail for
25
- * the specific reason.
26
- */
27
- CDF_STATE_SKIPPED: 'CDF_STATE_SKIPPED',
7
+ const CdfState = {
8
+ CDF_STATE_UNSPECIFIED: "CDF_STATE_UNSPECIFIED",
9
+ CDF_STATE_SNAPSHOTTING: "CDF_STATE_SNAPSHOTTING",
10
+ CDF_STATE_STREAMING: "CDF_STATE_STREAMING",
11
+ CDF_STATE_TERMINATED: "CDF_STATE_TERMINATED",
12
+ CDF_STATE_SKIPPED: "CDF_STATE_SKIPPED"
28
13
  };
29
14
  /** The compute endpoint type. Either `read_write` or `read_only`. */
30
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
31
- export const EndpointType = {
32
- /** Default value, not used */
33
- ENDPOINT_TYPE_UNSPECIFIED: 'ENDPOINT_TYPE_UNSPECIFIED',
34
- ENDPOINT_TYPE_READ_WRITE: 'ENDPOINT_TYPE_READ_WRITE',
35
- ENDPOINT_TYPE_READ_ONLY: 'ENDPOINT_TYPE_READ_ONLY',
15
+ const EndpointType = {
16
+ ENDPOINT_TYPE_UNSPECIFIED: "ENDPOINT_TYPE_UNSPECIFIED",
17
+ ENDPOINT_TYPE_READ_WRITE: "ENDPOINT_TYPE_READ_WRITE",
18
+ ENDPOINT_TYPE_READ_ONLY: "ENDPOINT_TYPE_READ_ONLY"
36
19
  };
37
20
  /** Error codes returned by Databricks APIs to indicate specific failure conditions. */
38
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
39
- export const ErrorCode = {
40
- /**
41
- * Unknown error. This error generally should not be returned explicitly, but will be used
42
- * as a fallback if the error enum is missing from the message for some reason.
43
- *
44
- * It's assigned tag 0 to follow the best practice from
45
- * https://developers.google.com/protocol-buffers/docs/style#enums
46
- *
47
- * TODO(PLAT-55898): Add custom option to declare HTTP and gRPC mappings.
48
- * Maps to:
49
- * - google.rpc.Code: UNKNOWN = 2;
50
- * - HTTP code: 500 Internal Server Error
51
- */
52
- UNKNOWN: 'UNKNOWN',
53
- /**
54
- * Internal error. This means that some invariants expected by the underlying system have been
55
- * broken. This error code is reserved for serious errors, which generally cannot be resolved
56
- * by the user.
57
- *
58
- * Prefer this over all kinds of detailed error messages (e.g IO_ERROR), unless there's some
59
- * automation that relies on the custom error code.
60
- *
61
- * Maps to:
62
- * - google.rpc.Code: INTERNAL = 13;
63
- * - HTTP code: 500 Internal Server Error
64
- */
65
- INTERNAL_ERROR: 'INTERNAL_ERROR',
66
- /**
67
- * The service is currently unavailable. This is most likely a transient condition, which can be
68
- * corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent
69
- * operations.
70
- *
71
- * Prefer this over SERVICE_UNDER_MAINTENANCE, WORKSPACE_TEMPORARILY_UNAVAILABLE.
72
- *
73
- * See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
74
- * for guideline on how to pick this vs RESOURCE_EXHAUSTED.
75
- *
76
- * Maps to:
77
- * - google.rpc.Code: UNAVAILABLE = 14;
78
- * - HTTP code: 503 Service Unavailable
79
- */
80
- TEMPORARILY_UNAVAILABLE: 'TEMPORARILY_UNAVAILABLE',
81
- /**
82
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
83
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
84
- * Indicates that an IOException has been internally thrown.
85
- */
86
- IO_ERROR: 'IO_ERROR',
87
- /**
88
- * The request is invalid. Prefer more specific error code whenever possible.
89
- * Also see similar recommendation for the google.rpc.Code.FAILED_PRECONDITION.
90
- *
91
- * Prefer this error code over MALFORMED_REQUEST, INVALID_STATE, UNPARSEABLE_HTTP_ERROR.
92
- *
93
- * Maps to:
94
- * - google.rpc.Code: FAILED_PRECONDITION = 9;
95
- * - HTTP code: 400 Bad Request
96
- */
97
- BAD_REQUEST: 'BAD_REQUEST',
98
- /**
99
- * An external service is unavailable temporarily as it is being updated/re-deployed. Indicates
100
- * gateway proxy to safely retry the request.
101
- */
102
- SERVICE_UNDER_MAINTENANCE: 'SERVICE_UNDER_MAINTENANCE',
103
- /** A workspace is temporarily unavailable as the workspace is being re-assigned. */
104
- WORKSPACE_TEMPORARILY_UNAVAILABLE: 'WORKSPACE_TEMPORARILY_UNAVAILABLE',
105
- /**
106
- * The deadline expired before the operation could complete. For operations that change the state
107
- * of the system, this error may be returned even if the operation has completed successfully.
108
- * For example, a successful response from a server could have been delayed long enough for
109
- * the deadline to expire. When possible - implementations should make sure further processing of
110
- * the request is aborted, e.g. by throwing an exception instead of making the RPC request,
111
- * making the database query, etc.
112
- *
113
- * Maps to:
114
- * - google.rpc.Code: DEADLINE_EXCEEDED = 4;
115
- * - HTTP code: 504 Gateway Timeout
116
- */
117
- DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',
118
- /**
119
- * The operation was canceled by the caller. An example - client closed the connection without
120
- * waiting for a response.
121
- *
122
- * Maps to:
123
- * - google.rpc.Code: CANCELLED = 1;
124
- * - HTTP code: 499 Client Closed Request
125
- */
126
- CANCELLED: 'CANCELLED',
127
- /**
128
- * The operation is rejected because of either rate limiting or resource quota,
129
- * such as the client has sent too many requests recently or the client has allocated too many
130
- * resources.
131
- *
132
- * See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
133
- * for guideline on how to pick this vs TEMPORARILY_UNAVAILABLE.
134
- *
135
- * Maps to:
136
- * - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
137
- * - HTTP code: 429 Too Many Requests
138
- */
139
- RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',
140
- /**
141
- * The operation was aborted, typically due to a concurrency issue such as a sequencer
142
- * check failure, transaction abort, or transaction conflict.
143
- *
144
- * Maps to:
145
- * - google.rpc.Code: ABORTED = 10;
146
- * - HTTP code: 409 Conflict
147
- */
148
- ABORTED: 'ABORTED',
149
- /**
150
- * Operation was performed on a resource that does not exist,
151
- * e.g. file or directory was not found.
152
- *
153
- * Maps to:
154
- * - google.rpc.Code: NOT_FOUND = 5;
155
- * - HTTP code: 404 Not Found
156
- */
157
- NOT_FOUND: 'NOT_FOUND',
158
- /**
159
- * Operation was rejected due a conflict with an existing resource, e.g. attempted to create
160
- * file or directory that already exists.
161
- *
162
- * Prefer this over RESOURCE_CONFLICT.
163
- *
164
- * Maps to:
165
- * - google.rpc.Code: ALREADY_EXISTS = 6;
166
- * - HTTP code: 409 Conflict
167
- */
168
- ALREADY_EXISTS: 'ALREADY_EXISTS',
169
- /**
170
- * The request does not have valid authentication (AuthN) credentials for the operation.
171
- *
172
- * Prefer this over CUSTOMER_UNAUTHORIZED, unless you need to keep consistent behavior with legacy
173
- * code.
174
- * For authorization (AuthZ) errors use PERMISSION_DENIED.
175
- *
176
- * Maps to:
177
- * - google.rpc.Code: UNAUTHENTICATED = 16;
178
- * - HTTP code: 401 Unauthorized
179
- */
180
- UNAUTHENTICATED: 'UNAUTHENTICATED',
181
- /**
182
- * The service is currently unavailable. Please note that the unavailability may or may not be transient.
183
- * That means if this is a non-transient condition, retrying it does not work. If the unavailability
184
- * is certainly a transient condition, pleases use `TEMPORARILY_UNAVAILABLE` which signals its transient
185
- * nature explicitly.
186
- * An example of this error code’s use case is that when DNS resolution fails, the DNS resolver does
187
- * not know whether it is because the domain name is completely wrong (non-transient situation) or
188
- * the domain name is valid but the DNS server does not have an entry for this domain name yet (transient
189
- * situation). Hence, `UNAVAILABLE` is suitable for this case.
190
- *
191
- * Maps to:
192
- * - google.rpc.Code: UNAVAILABLE = 14;
193
- * - HTTP code: 503 Service Unavailable
194
- */
195
- UNAVAILABLE: 'UNAVAILABLE',
196
- /**
197
- * Supplied value for a parameter was invalid (e.g., giving a number for a string parameter).
198
- *
199
- * Maps to:
200
- * - google.rpc.Code: INVALID_ARGUMENT = 3;
201
- * - HTTP code: 400 Bad Request
202
- */
203
- INVALID_PARAMETER_VALUE: 'INVALID_PARAMETER_VALUE',
204
- /**
205
- * Indicates that the given API endpoint does not exist. Legacy, when possible - NOT_IMPLEMENTED
206
- * should be used instead to indicate that API doesn't exist.
207
- *
208
- * Maps to:
209
- * - google.rpc.Code: NOT_FOUND = 5;
210
- * - HTTP code: 404 Not Found
211
- */
212
- ENDPOINT_NOT_FOUND: 'ENDPOINT_NOT_FOUND',
213
- /** Indicates that the given API request was malformed. */
214
- MALFORMED_REQUEST: 'MALFORMED_REQUEST',
215
- /**
216
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
217
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
218
- * If one or more of the inputs to a given RPC are not in a valid state for the action.
219
- */
220
- INVALID_STATE: 'INVALID_STATE',
221
- /**
222
- * The caller does not have permission to execute the specified operation.
223
- * PERMISSION_DENIED must not be used for rejections caused by exhausting some resource,
224
- * use RESOURCE_EXHAUSTED instead for those errors.
225
- * PERMISSION_DENIED must not be used if the caller can not be identified,
226
- * use CUSTOMER_UNAUTHORIZED instead for those errors.
227
- * This error code does not imply the request is valid or the requested entity exists or
228
- * satisfies other pre-conditions.
229
- *
230
- * Maps to:
231
- * - google.rpc.Code: PERMISSION_DENIED = 7;
232
- * - HTTP code: 403 Forbidden
233
- */
234
- PERMISSION_DENIED: 'PERMISSION_DENIED',
235
- /**
236
- * NOTE: Deprecated due to inconsistent mapping in legacy code, see
237
- * https://docs.google.com/document/d/17TZIKX_Y39cJMBr333lc-d5dTvvBLSu3DPUyGU5eMJg/edit?disco=AAAAzVGt6FA.
238
- * Prefer using NOT_FOUND or PERMISSION_DENIED.
239
- *
240
- * If a given user/entity is trying to use a feature which has been disabled.
241
- *
242
- * Maps to:
243
- * - google.rpc.Code: NOT_FOUND = 5;
244
- * - HTTP code: 404 Not Found
245
- */
246
- FEATURE_DISABLED: 'FEATURE_DISABLED',
247
- /**
248
- * The request does not have valid authentication (AuthN) credentials for the operation.
249
- *
250
- * For authentication (AuthN) errors prefer using UNAUTHENTICATED, unless you need to keep
251
- * consistent behavior with legacy code.
252
- * For authorization (AuthZ) errors use PERMISSION_DENIED.
253
- *
254
- * Important: name is confusing, this error code is for authentication (AuthN) errors, not
255
- * authorization (AuthZ) errors. It maps to 401 Unauthorized and suffers from the same confusing
256
- * naming. See https://datatracker.ietf.org/doc/html/rfc7235#section-3.1 - "[...] status code
257
- * indicates that the request has not been applied because it lacks valid authentication
258
- * credentials for the target resource. [...] If the request included authentication credentials,
259
- * then the 401 response indicates that authorization has been refused for those credentials."
260
- *
261
- * Also, see https://stackoverflow.com/a/6937030/16352922, it covers it pretty well.
262
- *
263
- * Maps to:
264
- * - google.rpc.Code: UNAUTHENTICATED = 16;
265
- * - HTTP code: 401 Unauthorized
266
- */
267
- CUSTOMER_UNAUTHORIZED: 'CUSTOMER_UNAUTHORIZED',
268
- /**
269
- * The operation is rejected because of request rate limit, for example rate limiting applied to
270
- * users, workspaces, IP addresses, etc.
271
- *
272
- * Prefer a more generic RESOURCE_EXHAUSTED for the new use cases.
273
- *
274
- * See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
275
- * for guideline on the rate limiting vs throttling.
276
- *
277
- * Maps to:
278
- * - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
279
- * - HTTP code: 429 Too Many Requests
280
- */
281
- REQUEST_LIMIT_EXCEEDED: 'REQUEST_LIMIT_EXCEEDED',
282
- /** Indicates API request was rejected due a conflict with an existing resource. */
283
- RESOURCE_CONFLICT: 'RESOURCE_CONFLICT',
284
- /**
285
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
286
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
287
- * Indicates that the HTTP response cannot be correctly deserialized.
288
- * This currently is only used in DUST test clients, and not by any real service code.
289
- */
290
- UNPARSEABLE_HTTP_ERROR: 'UNPARSEABLE_HTTP_ERROR',
291
- /**
292
- * The operation is not implemented or is not supported/enabled in this service.
293
- *
294
- * Maps to:
295
- * - google.rpc.Code: UNIMPLEMENTED = 12;
296
- * - HTTP code: 501 Not Implemented
297
- */
298
- NOT_IMPLEMENTED: 'NOT_IMPLEMENTED',
299
- /**
300
- * Unrecoverable data loss or corruption.
301
- *
302
- * One of the major use cases is to indicate that server failed to validate the integrity of
303
- * the request. This error can occur when the checksum specified in the `X-Databricks-Checksum`
304
- * request header (or trailer) doesn't match the actual request content checksum.
305
- *
306
- * Note, in case of the severe corruption that results in a malformed request, the server may
307
- * send a generic `400 Bad Request` response rather than sending this error code.
308
- *
309
- * Maps to:
310
- * - google.rpc.Code: DATA_LOSS = 15;
311
- * - HTTP code: 500 Internal Server Error
312
- */
313
- DATA_LOSS: 'DATA_LOSS',
314
- /** If the user attempts to perform an invalid state transition on a shard. */
315
- INVALID_STATE_TRANSITION: 'INVALID_STATE_TRANSITION',
316
- /**
317
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
318
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
319
- * Unable to perform the operation because the shard was locked by some other operation.
320
- */
321
- COULD_NOT_ACQUIRE_LOCK: 'COULD_NOT_ACQUIRE_LOCK',
322
- /**
323
- * NOTE: Deprecated, prefer using ALREADY_EXISTS.
324
- * Unlike ALREADY_EXISTS - this maps to HTTP code 400 Bad Request due to legacy reasons,
325
- * remapping will be a backwards incompatible change.
326
- *
327
- * Operation was performed on a resource that already exists.
328
- */
329
- RESOURCE_ALREADY_EXISTS: 'RESOURCE_ALREADY_EXISTS',
330
- /**
331
- * NOTE: Deprecated, prefer using NOT_FOUND - see the note for the RESOURCE_ALREADY_EXISTS,
332
- * because this pair of codes is related and RESOURCE_ALREADY_EXISTS has bad mapping to the HTTP
333
- * codes we added new error codes NOT_FOUND and ALREADY_EXISTS, and recommend to use them instead.
334
- *
335
- * Operation was performed on a resource that does not exist.
336
- */
337
- RESOURCE_DOES_NOT_EXIST: 'RESOURCE_DOES_NOT_EXIST',
338
- /**
339
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
340
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
341
- */
342
- QUOTA_EXCEEDED: 'QUOTA_EXCEEDED',
343
- /**
344
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
345
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
346
- */
347
- MAX_BLOCK_SIZE_EXCEEDED: 'MAX_BLOCK_SIZE_EXCEEDED',
348
- /**
349
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
350
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
351
- */
352
- MAX_READ_SIZE_EXCEEDED: 'MAX_READ_SIZE_EXCEEDED',
353
- PARTIAL_DELETE: 'PARTIAL_DELETE',
354
- MAX_LIST_SIZE_EXCEEDED: 'MAX_LIST_SIZE_EXCEEDED',
355
- /**
356
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
357
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
358
- */
359
- DRY_RUN_FAILED: 'DRY_RUN_FAILED',
360
- /**
361
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
362
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
363
- * Cluster request was rejected because it would exceed a resource limit.
364
- */
365
- RESOURCE_LIMIT_EXCEEDED: 'RESOURCE_LIMIT_EXCEEDED',
366
- /**
367
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
368
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
369
- */
370
- DIRECTORY_NOT_EMPTY: 'DIRECTORY_NOT_EMPTY',
371
- /**
372
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
373
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
374
- */
375
- DIRECTORY_PROTECTED: 'DIRECTORY_PROTECTED',
376
- /**
377
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
378
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
379
- */
380
- MAX_NOTEBOOK_SIZE_EXCEEDED: 'MAX_NOTEBOOK_SIZE_EXCEEDED',
381
- MAX_CHILD_NODE_SIZE_EXCEEDED: 'MAX_CHILD_NODE_SIZE_EXCEEDED',
382
- /**
383
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
384
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
385
- */
386
- SEARCH_QUERY_TOO_LONG: 'SEARCH_QUERY_TOO_LONG',
387
- /**
388
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
389
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
390
- */
391
- SEARCH_QUERY_TOO_SHORT: 'SEARCH_QUERY_TOO_SHORT',
392
- /**
393
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
394
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
395
- */
396
- MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST: 'MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST',
397
- /**
398
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
399
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
400
- */
401
- PERMISSION_NOT_PROPAGATED: 'PERMISSION_NOT_PROPAGATED',
402
- /**
403
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
404
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
405
- */
406
- DEPLOYMENT_TIMEOUT: 'DEPLOYMENT_TIMEOUT',
407
- /**
408
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
409
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
410
- */
411
- GIT_CONFLICT: 'GIT_CONFLICT',
412
- /**
413
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
414
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
415
- */
416
- GIT_UNKNOWN_REF: 'GIT_UNKNOWN_REF',
417
- /**
418
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
419
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
420
- */
421
- GIT_SENSITIVE_TOKEN_DETECTED: 'GIT_SENSITIVE_TOKEN_DETECTED',
422
- /**
423
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
424
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
425
- */
426
- GIT_URL_NOT_ON_ALLOW_LIST: 'GIT_URL_NOT_ON_ALLOW_LIST',
427
- /**
428
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
429
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
430
- */
431
- GIT_REMOTE_ERROR: 'GIT_REMOTE_ERROR',
432
- /**
433
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
434
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
435
- */
436
- PROJECTS_OPERATION_TIMEOUT: 'PROJECTS_OPERATION_TIMEOUT',
437
- /**
438
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
439
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
440
- */
441
- IPYNB_FILE_IN_REPO: 'IPYNB_FILE_IN_REPO',
442
- /**
443
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
444
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
445
- */
446
- INSECURE_PARTNER_RESPONSE: 'INSECURE_PARTNER_RESPONSE',
447
- /**
448
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
449
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
450
- */
451
- MALFORMED_PARTNER_RESPONSE: 'MALFORMED_PARTNER_RESPONSE',
452
- METASTORE_DOES_NOT_EXIST: 'METASTORE_DOES_NOT_EXIST',
453
- /**
454
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
455
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
456
- */
457
- DAC_DOES_NOT_EXIST: 'DAC_DOES_NOT_EXIST',
458
- CATALOG_DOES_NOT_EXIST: 'CATALOG_DOES_NOT_EXIST',
459
- SCHEMA_DOES_NOT_EXIST: 'SCHEMA_DOES_NOT_EXIST',
460
- TABLE_DOES_NOT_EXIST: 'TABLE_DOES_NOT_EXIST',
461
- SHARE_DOES_NOT_EXIST: 'SHARE_DOES_NOT_EXIST',
462
- RECIPIENT_DOES_NOT_EXIST: 'RECIPIENT_DOES_NOT_EXIST',
463
- STORAGE_CREDENTIAL_DOES_NOT_EXIST: 'STORAGE_CREDENTIAL_DOES_NOT_EXIST',
464
- EXTERNAL_LOCATION_DOES_NOT_EXIST: 'EXTERNAL_LOCATION_DOES_NOT_EXIST',
465
- PRINCIPAL_DOES_NOT_EXIST: 'PRINCIPAL_DOES_NOT_EXIST',
466
- PROVIDER_DOES_NOT_EXIST: 'PROVIDER_DOES_NOT_EXIST',
467
- /**
468
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
469
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
470
- */
471
- METASTORE_ALREADY_EXISTS: 'METASTORE_ALREADY_EXISTS',
472
- /**
473
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
474
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
475
- */
476
- DAC_ALREADY_EXISTS: 'DAC_ALREADY_EXISTS',
477
- /**
478
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
479
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
480
- */
481
- CATALOG_ALREADY_EXISTS: 'CATALOG_ALREADY_EXISTS',
482
- /**
483
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
484
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
485
- */
486
- SCHEMA_ALREADY_EXISTS: 'SCHEMA_ALREADY_EXISTS',
487
- /**
488
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
489
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
490
- */
491
- TABLE_ALREADY_EXISTS: 'TABLE_ALREADY_EXISTS',
492
- /**
493
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
494
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
495
- */
496
- SHARE_ALREADY_EXISTS: 'SHARE_ALREADY_EXISTS',
497
- /**
498
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
499
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
500
- */
501
- RECIPIENT_ALREADY_EXISTS: 'RECIPIENT_ALREADY_EXISTS',
502
- /**
503
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
504
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
505
- */
506
- STORAGE_CREDENTIAL_ALREADY_EXISTS: 'STORAGE_CREDENTIAL_ALREADY_EXISTS',
507
- /**
508
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
509
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
510
- */
511
- EXTERNAL_LOCATION_ALREADY_EXISTS: 'EXTERNAL_LOCATION_ALREADY_EXISTS',
512
- /**
513
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
514
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
515
- */
516
- PROVIDER_ALREADY_EXISTS: 'PROVIDER_ALREADY_EXISTS',
517
- /**
518
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
519
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
520
- */
521
- CATALOG_NOT_EMPTY: 'CATALOG_NOT_EMPTY',
522
- /**
523
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
524
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
525
- */
526
- SCHEMA_NOT_EMPTY: 'SCHEMA_NOT_EMPTY',
527
- /**
528
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
529
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
530
- */
531
- METASTORE_NOT_EMPTY: 'METASTORE_NOT_EMPTY',
532
- /**
533
- * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
534
- * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
535
- */
536
- PROVIDER_SHARE_NOT_ACCESSIBLE: 'PROVIDER_SHARE_NOT_ACCESSIBLE',
21
+ const ErrorCode = {
22
+ UNKNOWN: "UNKNOWN",
23
+ INTERNAL_ERROR: "INTERNAL_ERROR",
24
+ TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE",
25
+ IO_ERROR: "IO_ERROR",
26
+ BAD_REQUEST: "BAD_REQUEST",
27
+ SERVICE_UNDER_MAINTENANCE: "SERVICE_UNDER_MAINTENANCE",
28
+ WORKSPACE_TEMPORARILY_UNAVAILABLE: "WORKSPACE_TEMPORARILY_UNAVAILABLE",
29
+ DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED",
30
+ CANCELLED: "CANCELLED",
31
+ RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED",
32
+ ABORTED: "ABORTED",
33
+ NOT_FOUND: "NOT_FOUND",
34
+ ALREADY_EXISTS: "ALREADY_EXISTS",
35
+ UNAUTHENTICATED: "UNAUTHENTICATED",
36
+ UNAVAILABLE: "UNAVAILABLE",
37
+ INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
38
+ ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND",
39
+ MALFORMED_REQUEST: "MALFORMED_REQUEST",
40
+ INVALID_STATE: "INVALID_STATE",
41
+ PERMISSION_DENIED: "PERMISSION_DENIED",
42
+ FEATURE_DISABLED: "FEATURE_DISABLED",
43
+ CUSTOMER_UNAUTHORIZED: "CUSTOMER_UNAUTHORIZED",
44
+ REQUEST_LIMIT_EXCEEDED: "REQUEST_LIMIT_EXCEEDED",
45
+ RESOURCE_CONFLICT: "RESOURCE_CONFLICT",
46
+ UNPARSEABLE_HTTP_ERROR: "UNPARSEABLE_HTTP_ERROR",
47
+ NOT_IMPLEMENTED: "NOT_IMPLEMENTED",
48
+ DATA_LOSS: "DATA_LOSS",
49
+ INVALID_STATE_TRANSITION: "INVALID_STATE_TRANSITION",
50
+ COULD_NOT_ACQUIRE_LOCK: "COULD_NOT_ACQUIRE_LOCK",
51
+ RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS",
52
+ RESOURCE_DOES_NOT_EXIST: "RESOURCE_DOES_NOT_EXIST",
53
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
54
+ MAX_BLOCK_SIZE_EXCEEDED: "MAX_BLOCK_SIZE_EXCEEDED",
55
+ MAX_READ_SIZE_EXCEEDED: "MAX_READ_SIZE_EXCEEDED",
56
+ PARTIAL_DELETE: "PARTIAL_DELETE",
57
+ MAX_LIST_SIZE_EXCEEDED: "MAX_LIST_SIZE_EXCEEDED",
58
+ DRY_RUN_FAILED: "DRY_RUN_FAILED",
59
+ RESOURCE_LIMIT_EXCEEDED: "RESOURCE_LIMIT_EXCEEDED",
60
+ DIRECTORY_NOT_EMPTY: "DIRECTORY_NOT_EMPTY",
61
+ DIRECTORY_PROTECTED: "DIRECTORY_PROTECTED",
62
+ MAX_NOTEBOOK_SIZE_EXCEEDED: "MAX_NOTEBOOK_SIZE_EXCEEDED",
63
+ MAX_CHILD_NODE_SIZE_EXCEEDED: "MAX_CHILD_NODE_SIZE_EXCEEDED",
64
+ SEARCH_QUERY_TOO_LONG: "SEARCH_QUERY_TOO_LONG",
65
+ SEARCH_QUERY_TOO_SHORT: "SEARCH_QUERY_TOO_SHORT",
66
+ MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST: "MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST",
67
+ PERMISSION_NOT_PROPAGATED: "PERMISSION_NOT_PROPAGATED",
68
+ DEPLOYMENT_TIMEOUT: "DEPLOYMENT_TIMEOUT",
69
+ GIT_CONFLICT: "GIT_CONFLICT",
70
+ GIT_UNKNOWN_REF: "GIT_UNKNOWN_REF",
71
+ GIT_SENSITIVE_TOKEN_DETECTED: "GIT_SENSITIVE_TOKEN_DETECTED",
72
+ GIT_URL_NOT_ON_ALLOW_LIST: "GIT_URL_NOT_ON_ALLOW_LIST",
73
+ GIT_REMOTE_ERROR: "GIT_REMOTE_ERROR",
74
+ PROJECTS_OPERATION_TIMEOUT: "PROJECTS_OPERATION_TIMEOUT",
75
+ IPYNB_FILE_IN_REPO: "IPYNB_FILE_IN_REPO",
76
+ INSECURE_PARTNER_RESPONSE: "INSECURE_PARTNER_RESPONSE",
77
+ MALFORMED_PARTNER_RESPONSE: "MALFORMED_PARTNER_RESPONSE",
78
+ METASTORE_DOES_NOT_EXIST: "METASTORE_DOES_NOT_EXIST",
79
+ DAC_DOES_NOT_EXIST: "DAC_DOES_NOT_EXIST",
80
+ CATALOG_DOES_NOT_EXIST: "CATALOG_DOES_NOT_EXIST",
81
+ SCHEMA_DOES_NOT_EXIST: "SCHEMA_DOES_NOT_EXIST",
82
+ TABLE_DOES_NOT_EXIST: "TABLE_DOES_NOT_EXIST",
83
+ SHARE_DOES_NOT_EXIST: "SHARE_DOES_NOT_EXIST",
84
+ RECIPIENT_DOES_NOT_EXIST: "RECIPIENT_DOES_NOT_EXIST",
85
+ STORAGE_CREDENTIAL_DOES_NOT_EXIST: "STORAGE_CREDENTIAL_DOES_NOT_EXIST",
86
+ EXTERNAL_LOCATION_DOES_NOT_EXIST: "EXTERNAL_LOCATION_DOES_NOT_EXIST",
87
+ PRINCIPAL_DOES_NOT_EXIST: "PRINCIPAL_DOES_NOT_EXIST",
88
+ PROVIDER_DOES_NOT_EXIST: "PROVIDER_DOES_NOT_EXIST",
89
+ METASTORE_ALREADY_EXISTS: "METASTORE_ALREADY_EXISTS",
90
+ DAC_ALREADY_EXISTS: "DAC_ALREADY_EXISTS",
91
+ CATALOG_ALREADY_EXISTS: "CATALOG_ALREADY_EXISTS",
92
+ SCHEMA_ALREADY_EXISTS: "SCHEMA_ALREADY_EXISTS",
93
+ TABLE_ALREADY_EXISTS: "TABLE_ALREADY_EXISTS",
94
+ SHARE_ALREADY_EXISTS: "SHARE_ALREADY_EXISTS",
95
+ RECIPIENT_ALREADY_EXISTS: "RECIPIENT_ALREADY_EXISTS",
96
+ STORAGE_CREDENTIAL_ALREADY_EXISTS: "STORAGE_CREDENTIAL_ALREADY_EXISTS",
97
+ EXTERNAL_LOCATION_ALREADY_EXISTS: "EXTERNAL_LOCATION_ALREADY_EXISTS",
98
+ PROVIDER_ALREADY_EXISTS: "PROVIDER_ALREADY_EXISTS",
99
+ CATALOG_NOT_EMPTY: "CATALOG_NOT_EMPTY",
100
+ SCHEMA_NOT_EMPTY: "SCHEMA_NOT_EMPTY",
101
+ METASTORE_NOT_EMPTY: "METASTORE_NOT_EMPTY",
102
+ PROVIDER_SHARE_NOT_ACCESSIBLE: "PROVIDER_SHARE_NOT_ACCESSIBLE"
537
103
  };
538
104
  /**
539
- * Controls how the Data API exposes the OpenAPI documentation endpoint.
540
- * Only IGNORE_PRIVILEGES and DISABLED are supported today; "follow-privileges"
541
- * is not implemented yet (it may be added later as value 3 — adding new enum
542
- * values is backward-compatible).
543
- */
544
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
545
- export const OpenApiMode = {
546
- /** Unspecified; the server applies its default mode. */
547
- OPEN_API_MODE_UNSPECIFIED: 'OPEN_API_MODE_UNSPECIFIED',
548
- /** Generate OpenAPI output ignoring the privileges of the requesting role. */
549
- OPEN_API_MODE_IGNORE_PRIVILEGES: 'OPEN_API_MODE_IGNORE_PRIVILEGES',
550
- /** Disable the OpenAPI documentation endpoint entirely. */
551
- OPEN_API_MODE_DISABLED: 'OPEN_API_MODE_DISABLED',
105
+ * Controls how the Data API exposes the OpenAPI documentation endpoint.
106
+ * Only IGNORE_PRIVILEGES and DISABLED are supported today; "follow-privileges"
107
+ * is not implemented yet (it may be added later as value 3 — adding new enum
108
+ * values is backward-compatible).
109
+ */
110
+ const OpenApiMode = {
111
+ OPEN_API_MODE_UNSPECIFIED: "OPEN_API_MODE_UNSPECIFIED",
112
+ OPEN_API_MODE_IGNORE_PRIVILEGES: "OPEN_API_MODE_IGNORE_PRIVILEGES",
113
+ OPEN_API_MODE_DISABLED: "OPEN_API_MODE_DISABLED"
552
114
  };
553
115
  /** The current phase of the data synchronization pipeline. */
554
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
555
- export const ProvisioningPhase = {
556
- /** The default phase. It should not be reported by any synced tables. */
557
- PROVISIONING_PHASE_UNSPECIFIED: 'PROVISIONING_PHASE_UNSPECIFIED',
558
- /** Ingestion phase of the synced table. This is when the synced table is ingesting data from the delta table. */
559
- PROVISIONING_PHASE_MAIN: 'PROVISIONING_PHASE_MAIN',
560
- /** Index scan phase of the synced table. This is when the synced table is creating indexes on the ingested data. */
561
- PROVISIONING_PHASE_INDEX_SCAN: 'PROVISIONING_PHASE_INDEX_SCAN',
562
- /** Index sort phase of the synced table. This is when the synced table is creating indexes on the ingested data. */
563
- PROVISIONING_PHASE_INDEX_SORT: 'PROVISIONING_PHASE_INDEX_SORT',
116
+ const ProvisioningPhase = {
117
+ PROVISIONING_PHASE_UNSPECIFIED: "PROVISIONING_PHASE_UNSPECIFIED",
118
+ PROVISIONING_PHASE_MAIN: "PROVISIONING_PHASE_MAIN",
119
+ PROVISIONING_PHASE_INDEX_SCAN: "PROVISIONING_PHASE_INDEX_SCAN",
120
+ PROVISIONING_PHASE_INDEX_SORT: "PROVISIONING_PHASE_INDEX_SORT"
564
121
  };
565
122
  /** The state of a synced table. */
566
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
567
- export const SyncedTableState = {
568
- /** The default state. It should not be reported by any synced tables. */
569
- SYNCED_TABLE_STATE_UNSPECIFIED: 'SYNCED_TABLE_STATE_UNSPECIFIED',
570
- /**
571
- * The synced table has just been created and resources are being provisioned. This is also the
572
- * catch-all state if there is not a more suitable state to report for the synced table.
573
- */
574
- SYNCED_TABLE_PROVISIONING: 'SYNCED_TABLE_PROVISIONING',
575
- /** The synced table is provisioning resources for the data synchronization pipeline. */
576
- SYNCED_TABLE_PROVISIONING_PIPELINE_RESOURCES: 'SYNCED_TABLE_PROVISIONING_PIPELINE_RESOURCES',
577
- /** The synced table is executing the initial data synchronization. */
578
- SYNCED_TABLE_PROVISIONING_INITIAL_SNAPSHOT: 'SYNCED_TABLE_PROVISIONING_INITIAL_SNAPSHOT',
579
- /** The synced table is ready to serve data. */
580
- SYNCED_TABLE_ONLINE: 'SYNCED_TABLE_ONLINE',
581
- /**
582
- * The synced table is ready to serve data and is continuously updating. Only shown for synced
583
- * tables using the "Continuous" sync mode.
584
- */
585
- SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE: 'SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE',
586
- /**
587
- * The synced table is ready to serve data and an active update is in progress. Only shown for
588
- * synced tables using the "Triggered" sync mode.
589
- */
590
- SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE: 'SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE',
591
- /**
592
- * The synced table is ready to serve data and there are no active updates. Only shown for synced
593
- * tables using the "Triggered" sync mode.
594
- */
595
- SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE: 'SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE',
596
- /** The synced table has encountered an internal error and is not available for serving. */
597
- SYNCED_TABLE_OFFLINE: 'SYNCED_TABLE_OFFLINE',
598
- /**
599
- * The synced table is not available for serving because the data synchronization pipeline has
600
- * failed. Please review the pipeline event logs to troubleshoot.
601
- */
602
- SYNCED_TABLE_OFFLINE_FAILED: 'SYNCED_TABLE_OFFLINE_FAILED',
603
- /**
604
- * The data synchronization pipeline has encountered an error but the synced table is still
605
- * available for serving (potentially stale) data. Please review the pipeline event logs to
606
- * troubleshoot.
607
- */
608
- SYNCED_TABLE_ONLINE_PIPELINE_FAILED: 'SYNCED_TABLE_ONLINE_PIPELINE_FAILED',
609
- /**
610
- * The synced table is available for serving, and is provisioning resources for a newly started
611
- * data synchronization pipeline.
612
- */
613
- SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES: 'SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES',
123
+ const SyncedTableState = {
124
+ SYNCED_TABLE_STATE_UNSPECIFIED: "SYNCED_TABLE_STATE_UNSPECIFIED",
125
+ SYNCED_TABLE_PROVISIONING: "SYNCED_TABLE_PROVISIONING",
126
+ SYNCED_TABLE_PROVISIONING_PIPELINE_RESOURCES: "SYNCED_TABLE_PROVISIONING_PIPELINE_RESOURCES",
127
+ SYNCED_TABLE_PROVISIONING_INITIAL_SNAPSHOT: "SYNCED_TABLE_PROVISIONING_INITIAL_SNAPSHOT",
128
+ SYNCED_TABLE_ONLINE: "SYNCED_TABLE_ONLINE",
129
+ SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE: "SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE",
130
+ SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE: "SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE",
131
+ SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE: "SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE",
132
+ SYNCED_TABLE_OFFLINE: "SYNCED_TABLE_OFFLINE",
133
+ SYNCED_TABLE_OFFLINE_FAILED: "SYNCED_TABLE_OFFLINE_FAILED",
134
+ SYNCED_TABLE_ONLINE_PIPELINE_FAILED: "SYNCED_TABLE_ONLINE_PIPELINE_FAILED",
135
+ SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES: "SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES"
614
136
  };
615
137
  /** The state of the branch. */
616
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
617
- export const BranchStatus_State = {
618
- /** Default value, not used. */
619
- STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',
620
- /** The branch is being created but is not yet available for querying. */
621
- INIT: 'INIT',
622
- /** The branch is being imported and is not yet available for querying. */
623
- IMPORTING: 'IMPORTING',
624
- /** The branch is being reset to a specific point in time or LSN and is not yet available for querying. */
625
- RESETTING: 'RESETTING',
626
- /** The branch is fully operational and ready for querying. */
627
- READY: 'READY',
628
- /** The branch is stored in cost-effective archival storage. Expect slow query response times. */
629
- ARCHIVED: 'ARCHIVED',
630
- /** The branch is deleted and is not available for querying, but can be undeleted. */
631
- DELETED: 'DELETED',
138
+ const BranchStatus_State = {
139
+ STATE_UNSPECIFIED: "STATE_UNSPECIFIED",
140
+ INIT: "INIT",
141
+ IMPORTING: "IMPORTING",
142
+ RESETTING: "RESETTING",
143
+ READY: "READY",
144
+ ARCHIVED: "ARCHIVED",
145
+ DELETED: "DELETED"
632
146
  };
633
147
  /** The state of the compute endpoint. */
634
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
635
- export const EndpointStatus_State = {
636
- /** Default value, not used */
637
- STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',
638
- INIT: 'INIT',
639
- ACTIVE: 'ACTIVE',
640
- IDLE: 'IDLE',
641
- DEGRADED: 'DEGRADED',
148
+ const EndpointStatus_State = {
149
+ STATE_UNSPECIFIED: "STATE_UNSPECIFIED",
150
+ INIT: "INIT",
151
+ ACTIVE: "ACTIVE",
152
+ IDLE: "IDLE",
153
+ DEGRADED: "DEGRADED"
642
154
  };
643
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
644
- export const ProvisioningInfo_State = {
645
- STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',
646
- PROVISIONING: 'PROVISIONING',
647
- ACTIVE: 'ACTIVE',
648
- FAILED: 'FAILED',
649
- DELETING: 'DELETING',
650
- UPDATING: 'UPDATING',
651
- DEGRADED: 'DEGRADED',
155
+ const ProvisioningInfo_State = {
156
+ STATE_UNSPECIFIED: "STATE_UNSPECIFIED",
157
+ PROVISIONING: "PROVISIONING",
158
+ ACTIVE: "ACTIVE",
159
+ FAILED: "FAILED",
160
+ DELETING: "DELETING",
161
+ UPDATING: "UPDATING",
162
+ DEGRADED: "DEGRADED"
652
163
  };
653
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
654
- export const RequestedClaims_PermissionSet = {
655
- PERMISSION_SET_UNSPECIFIED: 'PERMISSION_SET_UNSPECIFIED',
656
- READ_ONLY: 'READ_ONLY',
164
+ const RequestedClaims_PermissionSet = {
165
+ PERMISSION_SET_UNSPECIFIED: "PERMISSION_SET_UNSPECIFIED",
166
+ READ_ONLY: "READ_ONLY"
657
167
  };
658
168
  /** How the role is authenticated when connecting to Postgres. */
659
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
660
- export const Role_AuthMethod = {
661
- AUTH_METHOD_UNSPECIFIED: 'AUTH_METHOD_UNSPECIFIED',
662
- /** NO_LOGIN means this role cannot be used for interactive access */
663
- NO_LOGIN: 'NO_LOGIN',
664
- /** PG_PASSWORD_SCRAM_SHA_256 is a password-based authentication */
665
- PG_PASSWORD_SCRAM_SHA_256: 'PG_PASSWORD_SCRAM_SHA_256',
666
- /**
667
- * LAKEBASE_OAUTH_V1 is for logging in with the managed identities like
668
- * the <Databricks> service principal, <Databricks> Group or <Databricks> user.
669
- */
670
- LAKEBASE_OAUTH_V1: 'LAKEBASE_OAUTH_V1',
169
+ const Role_AuthMethod = {
170
+ AUTH_METHOD_UNSPECIFIED: "AUTH_METHOD_UNSPECIFIED",
171
+ NO_LOGIN: "NO_LOGIN",
172
+ PG_PASSWORD_SCRAM_SHA_256: "PG_PASSWORD_SCRAM_SHA_256",
173
+ LAKEBASE_OAUTH_V1: "LAKEBASE_OAUTH_V1"
671
174
  };
672
175
  /**
673
- * The type of the <Databricks> managed identity that this Role represents.
674
- * Leave empty if you wish to create a regular Postgres role not associated with a <Databricks> identity.
675
- */
676
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
677
- export const Role_IdentityType = {
678
- /** Default value, not used */
679
- IDENTITY_TYPE_UNSPECIFIED: 'IDENTITY_TYPE_UNSPECIFIED',
680
- /** A user in a <Databricks> workspace. */
681
- USER: 'USER',
682
- /** A service principal in a <Databricks> workspace. */
683
- SERVICE_PRINCIPAL: 'SERVICE_PRINCIPAL',
684
- /** A group in a <Databricks> workspace. */
685
- GROUP: 'GROUP',
176
+ * The type of the <Databricks> managed identity that this Role represents.
177
+ * Leave empty if you wish to create a regular Postgres role not associated with a <Databricks> identity.
178
+ */
179
+ const Role_IdentityType = {
180
+ IDENTITY_TYPE_UNSPECIFIED: "IDENTITY_TYPE_UNSPECIFIED",
181
+ USER: "USER",
182
+ SERVICE_PRINCIPAL: "SERVICE_PRINCIPAL",
183
+ GROUP: "GROUP"
686
184
  };
687
185
  /** Roles that the DatabaseInstanceRole can be a member of. */
688
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
689
- export const Role_MembershipRole = {
690
- /** Indicates that the DatabaseInstanceRole is not a member of any standard, managed roles. */
691
- MEMBERSHIP_ROLE_UNSPECIFIED: 'MEMBERSHIP_ROLE_UNSPECIFIED',
692
- /** Indicates membership in DATABRICKS_SUPERUSER, the highest set of privileges exposed to customers. */
693
- DATABRICKS_SUPERUSER: 'DATABRICKS_SUPERUSER',
186
+ const Role_MembershipRole = {
187
+ MEMBERSHIP_ROLE_UNSPECIFIED: "MEMBERSHIP_ROLE_UNSPECIFIED",
188
+ DATABRICKS_SUPERUSER: "DATABRICKS_SUPERUSER"
694
189
  };
695
190
  /** How the column's value is populated and kept up to date. */
696
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
697
- export const SyncedTable_SyncedTableSpec_ExtraColumn_Maintenance = {
698
- /** A plain column with no computed value. */
699
- MAINTENANCE_UNSPECIFIED: 'MAINTENANCE_UNSPECIFIED',
700
- /** The value is computed by PostgreSQL and stored. */
701
- STORED_GENERATED: 'STORED_GENERATED',
191
+ const SyncedTable_SyncedTableSpec_ExtraColumn_Maintenance = {
192
+ MAINTENANCE_UNSPECIFIED: "MAINTENANCE_UNSPECIFIED",
193
+ STORED_GENERATED: "STORED_GENERATED"
702
194
  };
703
195
  /** PostgreSQL-specific target types that can override the default Delta-to-PG mapping. */
704
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
705
- export const SyncedTable_SyncedTableSpec_PgSpecificType = {
706
- /** Default value. Indicates that no type override was selected. */
707
- PG_SPECIFIC_TYPE_UNSPECIFIED: 'PG_SPECIFIC_TYPE_UNSPECIFIED',
708
- /** Maps the column to the pgvector vector type. */
709
- PG_SPECIFIC_TYPE_VECTOR: 'PG_SPECIFIC_TYPE_VECTOR',
196
+ const SyncedTable_SyncedTableSpec_PgSpecificType = {
197
+ PG_SPECIFIC_TYPE_UNSPECIFIED: "PG_SPECIFIC_TYPE_UNSPECIFIED",
198
+ PG_SPECIFIC_TYPE_VECTOR: "PG_SPECIFIC_TYPE_VECTOR"
710
199
  };
711
200
  /** Scheduling policy of the synced table's underlying pipeline. */
712
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
713
- export const SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy = {
714
- SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED: 'SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED',
715
- /**
716
- * Pipeline runs continuously after generating the initial data.
717
- * Requires the source table to have Change Data Feed (CDF) enabled.
718
- */
719
- CONTINUOUS: 'CONTINUOUS',
720
- /**
721
- * Pipeline stops after generating the initial data and can be triggered later (manually, through a cron job or through data triggers).
722
- * Requires the source table to have Change Data Feed (CDF) enabled.
723
- */
724
- TRIGGERED: 'TRIGGERED',
725
- /**
726
- * Pipeline stops after generating the initial data and can be triggered later (manually, through a cron job or through data triggers).
727
- * Successive updates always perform a full copy of the source table data (no incremental updates).
728
- * Does not require the source table to have Change Data Feed (CDF) enabled.
729
- */
730
- SNAPSHOT: 'SNAPSHOT',
201
+ const SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy = {
202
+ SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED: "SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED",
203
+ CONTINUOUS: "CONTINUOUS",
204
+ TRIGGERED: "TRIGGERED",
205
+ SNAPSHOT: "SNAPSHOT"
731
206
  };
732
- export const unmarshalApiErrorSchema = z
733
- .object({
734
- error_code: z.string().optional(),
735
- message: z.string().optional(),
736
- stack_trace: z.string().optional(),
737
- details: z.array(z.record(z.string(), z.unknown())).optional(),
738
- })
739
- .transform(d => ({
740
- errorCode: d.error_code,
741
- message: d.message,
742
- stackTrace: d.stack_trace,
743
- details: d.details,
744
- }));
745
- export const unmarshalBranchSchema = z
746
- .object({
747
- name: z.string().optional(),
748
- uid: z.string().optional(),
749
- parent: z.string().optional(),
750
- create_time: z
751
- .string()
752
- .transform(s => Temporal.Instant.from(s))
753
- .optional(),
754
- update_time: z
755
- .string()
756
- .transform(s => Temporal.Instant.from(s))
757
- .optional(),
758
- spec: z.lazy(() => unmarshalBranchSpecSchema).optional(),
759
- status: z.lazy(() => unmarshalBranchStatusSchema).optional(),
760
- branch_id: z.string().optional(),
761
- })
762
- .transform(d => ({
763
- name: d.name,
764
- uid: d.uid,
765
- parent: d.parent,
766
- createTime: d.create_time,
767
- updateTime: d.update_time,
768
- spec: d.spec,
769
- status: d.status,
770
- branchId: d.branch_id,
771
- }));
772
- export const unmarshalBranchOperationMetadataSchema = z.object({});
773
- export const unmarshalBranchSpecSchema = z
774
- .object({
775
- source_branch: z.string().optional(),
776
- source_branch_lsn: z.string().optional(),
777
- source_branch_time: z
778
- .string()
779
- .transform(s => Temporal.Instant.from(s))
780
- .optional(),
781
- is_protected: z.boolean().optional(),
782
- expire_time: z
783
- .string()
784
- .transform(s => Temporal.Instant.from(s))
785
- .optional(),
786
- ttl: z
787
- .string()
788
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
789
- .optional(),
790
- no_expiry: z.boolean().optional(),
791
- })
792
- .transform(d => ({
793
- sourceBranch: d.source_branch,
794
- sourceBranchLsn: d.source_branch_lsn,
795
- sourceBranchTime: d.source_branch_time,
796
- isProtected: d.is_protected,
797
- expiration: d.expire_time !== undefined
798
- ? { $case: 'expireTime', expireTime: d.expire_time }
799
- : d.ttl !== undefined
800
- ? { $case: 'ttl', ttl: d.ttl }
801
- : d.no_expiry !== undefined
802
- ? { $case: 'noExpiry', noExpiry: d.no_expiry }
803
- : undefined,
804
- }));
805
- export const unmarshalBranchStatusSchema = z
806
- .object({
807
- source_branch: z.string().optional(),
808
- source_branch_lsn: z.string().optional(),
809
- source_branch_time: z
810
- .string()
811
- .transform(s => Temporal.Instant.from(s))
812
- .optional(),
813
- default: z.boolean().optional(),
814
- is_protected: z.boolean().optional(),
815
- current_state: z.string().optional(),
816
- pending_state: z.string().optional(),
817
- state_change_time: z
818
- .string()
819
- .transform(s => Temporal.Instant.from(s))
820
- .optional(),
821
- logical_size_bytes: z
822
- .union([z.number(), z.bigint()])
823
- .transform(v => BigInt(v))
824
- .optional(),
825
- expire_time: z
826
- .string()
827
- .transform(s => Temporal.Instant.from(s))
828
- .optional(),
829
- branch_id: z.string().optional(),
830
- delete_time: z
831
- .string()
832
- .transform(s => Temporal.Instant.from(s))
833
- .optional(),
834
- purge_time: z
835
- .string()
836
- .transform(s => Temporal.Instant.from(s))
837
- .optional(),
838
- })
839
- .transform(d => ({
840
- sourceBranch: d.source_branch,
841
- sourceBranchLsn: d.source_branch_lsn,
842
- sourceBranchTime: d.source_branch_time,
843
- default: d.default,
844
- isProtected: d.is_protected,
845
- currentState: d.current_state,
846
- pendingState: d.pending_state,
847
- stateChangeTime: d.state_change_time,
848
- logicalSizeBytes: d.logical_size_bytes,
849
- expireTime: d.expire_time,
850
- branchId: d.branch_id,
851
- deleteTime: d.delete_time,
852
- purgeTime: d.purge_time,
853
- }));
854
- export const unmarshalCatalogSchema = z
855
- .object({
856
- name: z.string().optional(),
857
- uid: z.string().optional(),
858
- spec: z.lazy(() => unmarshalCatalog_CatalogSpecSchema).optional(),
859
- status: z.lazy(() => unmarshalCatalog_CatalogStatusSchema).optional(),
860
- create_time: z
861
- .string()
862
- .transform(s => Temporal.Instant.from(s))
863
- .optional(),
864
- update_time: z
865
- .string()
866
- .transform(s => Temporal.Instant.from(s))
867
- .optional(),
868
- catalog_id: z.string().optional(),
869
- })
870
- .transform(d => ({
871
- name: d.name,
872
- uid: d.uid,
873
- spec: d.spec,
874
- status: d.status,
875
- createTime: d.create_time,
876
- updateTime: d.update_time,
877
- catalogId: d.catalog_id,
878
- }));
879
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
880
- export const unmarshalCatalog_CatalogSpecSchema = z
881
- .object({
882
- postgres_database: z.string().optional(),
883
- create_database_if_missing: z.boolean().optional(),
884
- branch: z.string().optional(),
885
- })
886
- .transform(d => ({
887
- postgresDatabase: d.postgres_database,
888
- createDatabaseIfMissing: d.create_database_if_missing,
889
- branch: d.branch,
890
- }));
891
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
892
- export const unmarshalCatalog_CatalogStatusSchema = z
893
- .object({
894
- postgres_database: z.string().optional(),
895
- project: z.string().optional(),
896
- branch: z.string().optional(),
897
- })
898
- .transform(d => ({
899
- postgresDatabase: d.postgres_database,
900
- project: d.project,
901
- branch: d.branch,
902
- }));
903
- export const unmarshalCatalogOperationMetadataSchema = z.object({});
904
- export const unmarshalCdfConfigSchema = z
905
- .object({
906
- name: z.string().optional(),
907
- catalog: z.string().optional(),
908
- schema: z.string().optional(),
909
- create_time: z
910
- .string()
911
- .transform(s => Temporal.Instant.from(s))
912
- .optional(),
913
- cdf_config_id: z.string().optional(),
914
- postgres_schema: z.string().optional(),
915
- })
916
- .transform(d => ({
917
- name: d.name,
918
- catalog: d.catalog,
919
- schema: d.schema,
920
- createTime: d.create_time,
921
- cdfConfigId: d.cdf_config_id,
922
- postgresSchema: d.postgres_schema,
923
- }));
924
- export const unmarshalCdfConfigOperationMetadataSchema = z.object({});
925
- export const unmarshalCdfStatusSchema = z
926
- .object({
927
- name: z.string().optional(),
928
- postgres_table: z.string().optional(),
929
- uc_table: z.string().optional(),
930
- state: z.string().optional(),
931
- committed_lsn: z.string().optional(),
932
- last_sync_time: z
933
- .string()
934
- .transform(s => Temporal.Instant.from(s))
935
- .optional(),
936
- create_time: z
937
- .string()
938
- .transform(s => Temporal.Instant.from(s))
939
- .optional(),
940
- status_detail: z.string().optional(),
941
- })
942
- .transform(d => ({
943
- name: d.name,
944
- postgresTable: d.postgres_table,
945
- ucTable: d.uc_table,
946
- state: d.state,
947
- committedLsn: d.committed_lsn,
948
- lastSyncTime: d.last_sync_time,
949
- createTime: d.create_time,
950
- statusDetail: d.status_detail,
951
- }));
952
- export const unmarshalDataApiSchema = z
953
- .object({
954
- name: z.string().optional(),
955
- parent: z.string().optional(),
956
- create_time: z
957
- .string()
958
- .transform(s => Temporal.Instant.from(s))
959
- .optional(),
960
- update_time: z
961
- .string()
962
- .transform(s => Temporal.Instant.from(s))
963
- .optional(),
964
- spec: z.lazy(() => unmarshalDataApi_DataApiSpecSchema).optional(),
965
- status: z.lazy(() => unmarshalDataApi_DataApiStatusSchema).optional(),
966
- })
967
- .transform(d => ({
968
- name: d.name,
969
- parent: d.parent,
970
- createTime: d.create_time,
971
- updateTime: d.update_time,
972
- spec: d.spec,
973
- status: d.status,
974
- }));
975
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
976
- export const unmarshalDataApi_DataApiSpecSchema = z
977
- .object({
978
- db_aggregates_enabled: z.boolean().optional(),
979
- db_extra_search_path: z.array(z.string()).optional(),
980
- db_max_rows: z.number().optional(),
981
- db_schemas: z.array(z.string()).optional(),
982
- jwt_role_claim_key: z.string().optional(),
983
- jwt_cache_max_lifetime: z
984
- .string()
985
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
986
- .optional(),
987
- openapi_mode: z.string().optional(),
988
- server_cors_allowed_origins: z.array(z.string()).optional(),
989
- server_timing_enabled: z.boolean().optional(),
990
- })
991
- .transform(d => ({
992
- dbAggregatesEnabled: d.db_aggregates_enabled,
993
- dbExtraSearchPath: d.db_extra_search_path,
994
- dbMaxRows: d.db_max_rows,
995
- dbSchemas: d.db_schemas,
996
- jwtRoleClaimKey: d.jwt_role_claim_key,
997
- jwtCacheMaxLifetime: d.jwt_cache_max_lifetime,
998
- openapiMode: d.openapi_mode,
999
- serverCorsAllowedOrigins: d.server_cors_allowed_origins,
1000
- serverTimingEnabled: d.server_timing_enabled,
1001
- }));
1002
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1003
- export const unmarshalDataApi_DataApiStatusSchema = z
1004
- .object({
1005
- db_aggregates_enabled: z.boolean().optional(),
1006
- db_extra_search_path: z.array(z.string()).optional(),
1007
- db_max_rows: z.number().optional(),
1008
- db_schemas: z.array(z.string()).optional(),
1009
- jwt_role_claim_key: z.string().optional(),
1010
- jwt_cache_max_lifetime: z
1011
- .string()
1012
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
1013
- .optional(),
1014
- openapi_mode: z.string().optional(),
1015
- server_cors_allowed_origins: z.array(z.string()).optional(),
1016
- server_timing_enabled: z.boolean().optional(),
1017
- url: z.string().optional(),
1018
- available_schemas: z.array(z.string()).optional(),
1019
- })
1020
- .transform(d => ({
1021
- dbAggregatesEnabled: d.db_aggregates_enabled,
1022
- dbExtraSearchPath: d.db_extra_search_path,
1023
- dbMaxRows: d.db_max_rows,
1024
- dbSchemas: d.db_schemas,
1025
- jwtRoleClaimKey: d.jwt_role_claim_key,
1026
- jwtCacheMaxLifetime: d.jwt_cache_max_lifetime,
1027
- openapiMode: d.openapi_mode,
1028
- serverCorsAllowedOrigins: d.server_cors_allowed_origins,
1029
- serverTimingEnabled: d.server_timing_enabled,
1030
- url: d.url,
1031
- availableSchemas: d.available_schemas,
1032
- }));
1033
- export const unmarshalDataApiOperationMetadataSchema = z.object({});
1034
- export const unmarshalDatabaseSchema = z
1035
- .object({
1036
- name: z.string().optional(),
1037
- parent: z.string().optional(),
1038
- create_time: z
1039
- .string()
1040
- .transform(s => Temporal.Instant.from(s))
1041
- .optional(),
1042
- update_time: z
1043
- .string()
1044
- .transform(s => Temporal.Instant.from(s))
1045
- .optional(),
1046
- spec: z.lazy(() => unmarshalDatabase_DatabaseSpecSchema).optional(),
1047
- status: z.lazy(() => unmarshalDatabase_DatabaseStatusSchema).optional(),
1048
- database_id: z.string().optional(),
1049
- })
1050
- .transform(d => ({
1051
- name: d.name,
1052
- parent: d.parent,
1053
- createTime: d.create_time,
1054
- updateTime: d.update_time,
1055
- spec: d.spec,
1056
- status: d.status,
1057
- databaseId: d.database_id,
1058
- }));
1059
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1060
- export const unmarshalDatabase_DatabaseSpecSchema = z
1061
- .object({
1062
- role: z.string().optional(),
1063
- postgres_database: z.string().optional(),
1064
- })
1065
- .transform(d => ({
1066
- role: d.role,
1067
- postgresDatabase: d.postgres_database,
1068
- }));
1069
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1070
- export const unmarshalDatabase_DatabaseStatusSchema = z
1071
- .object({
1072
- role: z.string().optional(),
1073
- postgres_database: z.string().optional(),
1074
- database_id: z.string().optional(),
1075
- })
1076
- .transform(d => ({
1077
- role: d.role,
1078
- postgresDatabase: d.postgres_database,
1079
- databaseId: d.database_id,
1080
- }));
1081
- export const unmarshalDatabaseCredentialSchema = z
1082
- .object({
1083
- token: z.string().optional(),
1084
- expire_time: z
1085
- .string()
1086
- .transform(s => Temporal.Instant.from(s))
1087
- .optional(),
1088
- })
1089
- .transform(d => ({
1090
- token: d.token,
1091
- expireTime: d.expire_time,
1092
- }));
1093
- export const unmarshalDatabaseOperationMetadataSchema = z.object({});
1094
- export const unmarshalDeltaTableSyncInfoSchema = z
1095
- .object({
1096
- delta_commit_version: z
1097
- .union([z.number(), z.bigint()])
1098
- .transform(v => BigInt(v))
1099
- .optional(),
1100
- delta_commit_time: z
1101
- .string()
1102
- .transform(s => Temporal.Instant.from(s))
1103
- .optional(),
1104
- })
1105
- .transform(d => ({
1106
- deltaCommitVersion: d.delta_commit_version,
1107
- deltaCommitTime: d.delta_commit_time,
1108
- }));
1109
- export const unmarshalEndpointSchema = z
1110
- .object({
1111
- name: z.string().optional(),
1112
- uid: z.string().optional(),
1113
- parent: z.string().optional(),
1114
- create_time: z
1115
- .string()
1116
- .transform(s => Temporal.Instant.from(s))
1117
- .optional(),
1118
- update_time: z
1119
- .string()
1120
- .transform(s => Temporal.Instant.from(s))
1121
- .optional(),
1122
- spec: z.lazy(() => unmarshalEndpointSpecSchema).optional(),
1123
- status: z.lazy(() => unmarshalEndpointStatusSchema).optional(),
1124
- endpoint_id: z.string().optional(),
1125
- })
1126
- .transform(d => ({
1127
- name: d.name,
1128
- uid: d.uid,
1129
- parent: d.parent,
1130
- createTime: d.create_time,
1131
- updateTime: d.update_time,
1132
- spec: d.spec,
1133
- status: d.status,
1134
- endpointId: d.endpoint_id,
1135
- }));
1136
- export const unmarshalEndpointGroupSpecSchema = z
1137
- .object({
1138
- min: z.number().optional(),
1139
- max: z.number().optional(),
1140
- enable_readable_secondaries: z.boolean().optional(),
1141
- })
1142
- .transform(d => ({
1143
- min: d.min,
1144
- max: d.max,
1145
- enableReadableSecondaries: d.enable_readable_secondaries,
1146
- }));
1147
- export const unmarshalEndpointGroupStatusSchema = z
1148
- .object({
1149
- min: z.number().optional(),
1150
- max: z.number().optional(),
1151
- enable_readable_secondaries: z.boolean().optional(),
1152
- })
1153
- .transform(d => ({
1154
- min: d.min,
1155
- max: d.max,
1156
- enableReadableSecondaries: d.enable_readable_secondaries,
1157
- }));
1158
- export const unmarshalEndpointHostsSchema = z
1159
- .object({
1160
- host: z.string().optional(),
1161
- read_only_host: z.string().optional(),
1162
- read_write_pooled_host: z.string().optional(),
1163
- read_only_pooled_host: z.string().optional(),
1164
- })
1165
- .transform(d => ({
1166
- host: d.host,
1167
- readOnlyHost: d.read_only_host,
1168
- readWritePooledHost: d.read_write_pooled_host,
1169
- readOnlyPooledHost: d.read_only_pooled_host,
1170
- }));
1171
- export const unmarshalEndpointOperationMetadataSchema = z.object({});
1172
- export const unmarshalEndpointSettingsSchema = z
1173
- .object({
1174
- pg_settings: z.record(z.string(), z.string()).optional(),
1175
- })
1176
- .transform(d => ({
1177
- pgSettings: d.pg_settings,
1178
- }));
1179
- export const unmarshalEndpointSpecSchema = z
1180
- .object({
1181
- endpoint_type: z.string().optional(),
1182
- autoscaling_limit_min_cu: z.number().optional(),
1183
- autoscaling_limit_max_cu: z.number().optional(),
1184
- disabled: z.boolean().optional(),
1185
- suspend_timeout_duration: z
1186
- .string()
1187
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
1188
- .optional(),
1189
- no_suspension: z.boolean().optional(),
1190
- settings: z.lazy(() => unmarshalEndpointSettingsSchema).optional(),
1191
- group: z.lazy(() => unmarshalEndpointGroupSpecSchema).optional(),
1192
- })
1193
- .transform(d => ({
1194
- endpointType: d.endpoint_type,
1195
- autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
1196
- autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
1197
- disabled: d.disabled,
1198
- suspension: d.suspend_timeout_duration !== undefined
1199
- ? {
1200
- $case: 'suspendTimeoutDuration',
1201
- suspendTimeoutDuration: d.suspend_timeout_duration,
1202
- }
1203
- : d.no_suspension !== undefined
1204
- ? { $case: 'noSuspension', noSuspension: d.no_suspension }
1205
- : undefined,
1206
- settings: d.settings,
1207
- group: d.group,
1208
- }));
1209
- export const unmarshalEndpointStatusSchema = z
1210
- .object({
1211
- endpoint_type: z.string().optional(),
1212
- hosts: z.lazy(() => unmarshalEndpointHostsSchema).optional(),
1213
- last_active_time: z
1214
- .string()
1215
- .transform(s => Temporal.Instant.from(s))
1216
- .optional(),
1217
- autoscaling_limit_min_cu: z.number().optional(),
1218
- autoscaling_limit_max_cu: z.number().optional(),
1219
- current_state: z.string().optional(),
1220
- pending_state: z.string().optional(),
1221
- disabled: z.boolean().optional(),
1222
- suspend_timeout_duration: z
1223
- .string()
1224
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
1225
- .optional(),
1226
- settings: z.lazy(() => unmarshalEndpointSettingsSchema).optional(),
1227
- group: z.lazy(() => unmarshalEndpointGroupStatusSchema).optional(),
1228
- endpoint_id: z.string().optional(),
1229
- })
1230
- .transform(d => ({
1231
- endpointType: d.endpoint_type,
1232
- hosts: d.hosts,
1233
- lastActiveTime: d.last_active_time,
1234
- autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
1235
- autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
1236
- currentState: d.current_state,
1237
- pendingState: d.pending_state,
1238
- disabled: d.disabled,
1239
- suspendTimeoutDuration: d.suspend_timeout_duration,
1240
- settings: d.settings,
1241
- group: d.group,
1242
- endpointId: d.endpoint_id,
1243
- }));
1244
- export const unmarshalInitialBranchSpecSchema = z
1245
- .object({
1246
- is_protected: z.boolean().optional(),
1247
- })
1248
- .transform(d => ({
1249
- isProtected: d.is_protected,
1250
- }));
1251
- export const unmarshalInitialEndpointSpecSchema = z
1252
- .object({
1253
- group: z.lazy(() => unmarshalEndpointGroupSpecSchema).optional(),
1254
- autoscaling_limit_min_cu: z.number().optional(),
1255
- autoscaling_limit_max_cu: z.number().optional(),
1256
- suspend_timeout_duration: z
1257
- .string()
1258
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
1259
- .optional(),
1260
- no_suspension: z.boolean().optional(),
1261
- })
1262
- .transform(d => ({
1263
- group: d.group,
1264
- autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
1265
- autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
1266
- suspension: d.suspend_timeout_duration !== undefined
1267
- ? {
1268
- $case: 'suspendTimeoutDuration',
1269
- suspendTimeoutDuration: d.suspend_timeout_duration,
1270
- }
1271
- : d.no_suspension !== undefined
1272
- ? { $case: 'noSuspension', noSuspension: d.no_suspension }
1273
- : undefined,
1274
- }));
1275
- export const unmarshalListBranchesResponseSchema = z
1276
- .object({
1277
- branches: z.array(z.lazy(() => unmarshalBranchSchema)).optional(),
1278
- next_page_token: z.string().optional(),
1279
- })
1280
- .transform(d => ({
1281
- branches: d.branches,
1282
- nextPageToken: d.next_page_token,
1283
- }));
1284
- export const unmarshalListCdfConfigsResponseSchema = z
1285
- .object({
1286
- cdf_configs: z.array(z.lazy(() => unmarshalCdfConfigSchema)).optional(),
1287
- next_page_token: z.string().optional(),
1288
- })
1289
- .transform(d => ({
1290
- cdfConfigs: d.cdf_configs,
1291
- nextPageToken: d.next_page_token,
1292
- }));
1293
- export const unmarshalListCdfStatusesResponseSchema = z
1294
- .object({
1295
- cdf_statuses: z.array(z.lazy(() => unmarshalCdfStatusSchema)).optional(),
1296
- next_page_token: z.string().optional(),
1297
- })
1298
- .transform(d => ({
1299
- cdfStatuses: d.cdf_statuses,
1300
- nextPageToken: d.next_page_token,
1301
- }));
1302
- export const unmarshalListDatabasesResponseSchema = z
1303
- .object({
1304
- databases: z.array(z.lazy(() => unmarshalDatabaseSchema)).optional(),
1305
- next_page_token: z.string().optional(),
1306
- })
1307
- .transform(d => ({
1308
- databases: d.databases,
1309
- nextPageToken: d.next_page_token,
1310
- }));
1311
- export const unmarshalListEndpointsResponseSchema = z
1312
- .object({
1313
- endpoints: z.array(z.lazy(() => unmarshalEndpointSchema)).optional(),
1314
- next_page_token: z.string().optional(),
1315
- })
1316
- .transform(d => ({
1317
- endpoints: d.endpoints,
1318
- nextPageToken: d.next_page_token,
1319
- }));
1320
- export const unmarshalListProjectsResponseSchema = z
1321
- .object({
1322
- projects: z.array(z.lazy(() => unmarshalProjectSchema)).optional(),
1323
- next_page_token: z.string().optional(),
1324
- })
1325
- .transform(d => ({
1326
- projects: d.projects,
1327
- nextPageToken: d.next_page_token,
1328
- }));
1329
- export const unmarshalListRolesResponseSchema = z
1330
- .object({
1331
- roles: z.array(z.lazy(() => unmarshalRoleSchema)).optional(),
1332
- next_page_token: z.string().optional(),
1333
- })
1334
- .transform(d => ({
1335
- roles: d.roles,
1336
- nextPageToken: d.next_page_token,
1337
- }));
1338
- export const unmarshalNewPipelineSpecSchema = z
1339
- .object({
1340
- storage_catalog: z.string().optional(),
1341
- storage_schema: z.string().optional(),
1342
- budget_policy_id: z.string().optional(),
1343
- })
1344
- .transform(d => ({
1345
- storageCatalog: d.storage_catalog,
1346
- storageSchema: d.storage_schema,
1347
- budgetPolicyId: d.budget_policy_id,
1348
- }));
1349
- export const unmarshalOperationSchema = z
1350
- .object({
1351
- name: z.string().optional(),
1352
- metadata: z.record(z.string(), z.unknown()).optional(),
1353
- done: z.boolean().optional(),
1354
- error: z.lazy(() => unmarshalApiErrorSchema).optional(),
1355
- response: z.record(z.string(), z.unknown()).optional(),
1356
- })
1357
- .transform(d => ({
1358
- name: d.name,
1359
- metadata: d.metadata,
1360
- done: d.done,
1361
- result: d.error !== undefined
1362
- ? { $case: 'error', error: d.error }
1363
- : d.response !== undefined
1364
- ? { $case: 'response', response: d.response }
1365
- : undefined,
1366
- }));
1367
- export const unmarshalProjectSchema = z
1368
- .object({
1369
- name: z.string().optional(),
1370
- uid: z.string().optional(),
1371
- create_time: z
1372
- .string()
1373
- .transform(s => Temporal.Instant.from(s))
1374
- .optional(),
1375
- update_time: z
1376
- .string()
1377
- .transform(s => Temporal.Instant.from(s))
1378
- .optional(),
1379
- spec: z.lazy(() => unmarshalProjectSpecSchema).optional(),
1380
- status: z.lazy(() => unmarshalProjectStatusSchema).optional(),
1381
- initial_endpoint_spec: z
1382
- .lazy(() => unmarshalInitialEndpointSpecSchema)
1383
- .optional(),
1384
- delete_time: z
1385
- .string()
1386
- .transform(s => Temporal.Instant.from(s))
1387
- .optional(),
1388
- purge_time: z
1389
- .string()
1390
- .transform(s => Temporal.Instant.from(s))
1391
- .optional(),
1392
- initial_branch_spec: z
1393
- .lazy(() => unmarshalInitialBranchSpecSchema)
1394
- .optional(),
1395
- project_id: z.string().optional(),
1396
- })
1397
- .transform(d => ({
1398
- name: d.name,
1399
- uid: d.uid,
1400
- createTime: d.create_time,
1401
- updateTime: d.update_time,
1402
- spec: d.spec,
1403
- status: d.status,
1404
- initialEndpointSpec: d.initial_endpoint_spec,
1405
- deleteTime: d.delete_time,
1406
- purgeTime: d.purge_time,
1407
- initialBranchSpec: d.initial_branch_spec,
1408
- projectId: d.project_id,
1409
- }));
1410
- export const unmarshalProjectCustomTagSchema = z
1411
- .object({
1412
- key: z.string().optional(),
1413
- value: z.string().optional(),
1414
- })
1415
- .transform(d => ({
1416
- key: d.key,
1417
- value: d.value,
1418
- }));
1419
- export const unmarshalProjectDefaultEndpointSettingsSchema = z
1420
- .object({
1421
- autoscaling_limit_min_cu: z.number().optional(),
1422
- autoscaling_limit_max_cu: z.number().optional(),
1423
- suspend_timeout_duration: z
1424
- .string()
1425
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
1426
- .optional(),
1427
- no_suspension: z.boolean().optional(),
1428
- pg_settings: z.record(z.string(), z.string()).optional(),
1429
- })
1430
- .transform(d => ({
1431
- autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
1432
- autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
1433
- suspension: d.suspend_timeout_duration !== undefined
1434
- ? {
1435
- $case: 'suspendTimeoutDuration',
1436
- suspendTimeoutDuration: d.suspend_timeout_duration,
1437
- }
1438
- : d.no_suspension !== undefined
1439
- ? { $case: 'noSuspension', noSuspension: d.no_suspension }
1440
- : undefined,
1441
- pgSettings: d.pg_settings,
1442
- }));
1443
- export const unmarshalProjectOperationMetadataSchema = z.object({});
1444
- export const unmarshalProjectSpecSchema = z
1445
- .object({
1446
- display_name: z.string().optional(),
1447
- pg_version: z.number().optional(),
1448
- history_retention_duration: z
1449
- .string()
1450
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
1451
- .optional(),
1452
- default_endpoint_settings: z
1453
- .lazy(() => unmarshalProjectDefaultEndpointSettingsSchema)
1454
- .optional(),
1455
- budget_policy_id: z.string().optional(),
1456
- custom_tags: z
1457
- .array(z.lazy(() => unmarshalProjectCustomTagSchema))
1458
- .optional(),
1459
- enable_pg_native_login: z.boolean().optional(),
1460
- default_branch: z.string().optional(),
1461
- })
1462
- .transform(d => ({
1463
- displayName: d.display_name,
1464
- pgVersion: d.pg_version,
1465
- historyRetentionDuration: d.history_retention_duration,
1466
- defaultEndpointSettings: d.default_endpoint_settings,
1467
- budgetPolicyId: d.budget_policy_id,
1468
- customTags: d.custom_tags,
1469
- enablePgNativeLogin: d.enable_pg_native_login,
1470
- defaultBranch: d.default_branch,
1471
- }));
1472
- export const unmarshalProjectStatusSchema = z
1473
- .object({
1474
- display_name: z.string().optional(),
1475
- pg_version: z.number().optional(),
1476
- history_retention_duration: z
1477
- .string()
1478
- .transform(s => Temporal.Duration.from('PT' + s.toUpperCase()))
1479
- .optional(),
1480
- default_endpoint_settings: z
1481
- .lazy(() => unmarshalProjectDefaultEndpointSettingsSchema)
1482
- .optional(),
1483
- branch_logical_size_limit_bytes: z
1484
- .union([z.number(), z.bigint()])
1485
- .transform(v => BigInt(v))
1486
- .optional(),
1487
- synthetic_storage_size_bytes: z
1488
- .union([z.number(), z.bigint()])
1489
- .transform(v => BigInt(v))
1490
- .optional(),
1491
- compute_last_active_time: z
1492
- .string()
1493
- .transform(s => Temporal.Instant.from(s))
1494
- .optional(),
1495
- budget_policy_id: z.string().optional(),
1496
- custom_tags: z
1497
- .array(z.lazy(() => unmarshalProjectCustomTagSchema))
1498
- .optional(),
1499
- owner: z.string().optional(),
1500
- enable_pg_native_login: z.boolean().optional(),
1501
- default_branch: z.string().optional(),
1502
- project_id: z.string().optional(),
1503
- })
1504
- .transform(d => ({
1505
- displayName: d.display_name,
1506
- pgVersion: d.pg_version,
1507
- historyRetentionDuration: d.history_retention_duration,
1508
- defaultEndpointSettings: d.default_endpoint_settings,
1509
- branchLogicalSizeLimitBytes: d.branch_logical_size_limit_bytes,
1510
- syntheticStorageSizeBytes: d.synthetic_storage_size_bytes,
1511
- computeLastActiveTime: d.compute_last_active_time,
1512
- budgetPolicyId: d.budget_policy_id,
1513
- customTags: d.custom_tags,
1514
- owner: d.owner,
1515
- enablePgNativeLogin: d.enable_pg_native_login,
1516
- defaultBranch: d.default_branch,
1517
- projectId: d.project_id,
1518
- }));
1519
- export const unmarshalRoleSchema = z
1520
- .object({
1521
- name: z.string().optional(),
1522
- parent: z.string().optional(),
1523
- create_time: z
1524
- .string()
1525
- .transform(s => Temporal.Instant.from(s))
1526
- .optional(),
1527
- update_time: z
1528
- .string()
1529
- .transform(s => Temporal.Instant.from(s))
1530
- .optional(),
1531
- spec: z.lazy(() => unmarshalRole_RoleSpecSchema).optional(),
1532
- status: z.lazy(() => unmarshalRole_RoleStatusSchema).optional(),
1533
- role_id: z.string().optional(),
1534
- })
1535
- .transform(d => ({
1536
- name: d.name,
1537
- parent: d.parent,
1538
- createTime: d.create_time,
1539
- updateTime: d.update_time,
1540
- spec: d.spec,
1541
- status: d.status,
1542
- roleId: d.role_id,
1543
- }));
1544
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1545
- export const unmarshalRole_AttributesSchema = z
1546
- .object({
1547
- createdb: z.boolean().optional(),
1548
- createrole: z.boolean().optional(),
1549
- bypassrls: z.boolean().optional(),
1550
- })
1551
- .transform(d => ({
1552
- createdb: d.createdb,
1553
- createrole: d.createrole,
1554
- bypassrls: d.bypassrls,
1555
- }));
1556
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1557
- export const unmarshalRole_RoleSpecSchema = z
1558
- .object({
1559
- membership_roles: z.array(z.string()).optional(),
1560
- identity_type: z.string().optional(),
1561
- attributes: z.lazy(() => unmarshalRole_AttributesSchema).optional(),
1562
- auth_method: z.string().optional(),
1563
- postgres_role: z.string().optional(),
1564
- })
1565
- .transform(d => ({
1566
- membershipRoles: d.membership_roles,
1567
- identityType: d.identity_type,
1568
- attributes: d.attributes,
1569
- authMethod: d.auth_method,
1570
- postgresRole: d.postgres_role,
1571
- }));
1572
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1573
- export const unmarshalRole_RoleStatusSchema = z
1574
- .object({
1575
- membership_roles: z.array(z.string()).optional(),
1576
- identity_type: z.string().optional(),
1577
- attributes: z.lazy(() => unmarshalRole_AttributesSchema).optional(),
1578
- auth_method: z.string().optional(),
1579
- postgres_role: z.string().optional(),
1580
- role_id: z.string().optional(),
1581
- })
1582
- .transform(d => ({
1583
- membershipRoles: d.membership_roles,
1584
- identityType: d.identity_type,
1585
- attributes: d.attributes,
1586
- authMethod: d.auth_method,
1587
- postgresRole: d.postgres_role,
1588
- roleId: d.role_id,
1589
- }));
1590
- export const unmarshalRoleOperationMetadataSchema = z.object({});
1591
- export const unmarshalSyncedTableSchema = z
1592
- .object({
1593
- name: z.string().optional(),
1594
- uid: z.string().optional(),
1595
- spec: z.lazy(() => unmarshalSyncedTable_SyncedTableSpecSchema).optional(),
1596
- status: z
1597
- .lazy(() => unmarshalSyncedTable_SyncedTableStatusSchema)
1598
- .optional(),
1599
- create_time: z
1600
- .string()
1601
- .transform(s => Temporal.Instant.from(s))
1602
- .optional(),
1603
- synced_table_id: z.string().optional(),
1604
- })
1605
- .transform(d => ({
1606
- name: d.name,
1607
- uid: d.uid,
1608
- spec: d.spec,
1609
- status: d.status,
1610
- createTime: d.create_time,
1611
- syncedTableId: d.synced_table_id,
1612
- }));
1613
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1614
- export const unmarshalSyncedTable_SyncedTableSpecSchema = z
1615
- .object({
1616
- postgres_database: z.string().optional(),
1617
- branch: z.string().optional(),
1618
- scheduling_policy: z.string().optional(),
1619
- source_table_full_name: z.string().optional(),
1620
- primary_key_columns: z.array(z.string()).optional(),
1621
- timeseries_key: z.string().optional(),
1622
- existing_pipeline_id: z.string().optional(),
1623
- create_database_objects_if_missing: z.boolean().optional(),
1624
- new_pipeline_spec: z
1625
- .lazy(() => unmarshalNewPipelineSpecSchema)
1626
- .optional(),
1627
- accelerated_sync: z.boolean().optional(),
1628
- type_overrides: z
1629
- .array(z.lazy(() => unmarshalSyncedTable_SyncedTableSpec_TypeOverrideSchema))
1630
- .optional(),
1631
- extra_columns: z
1632
- .array(z.lazy(() => unmarshalSyncedTable_SyncedTableSpec_ExtraColumnSchema))
1633
- .optional(),
1634
- })
1635
- .transform(d => ({
1636
- postgresDatabase: d.postgres_database,
1637
- branch: d.branch,
1638
- schedulingPolicy: d.scheduling_policy,
1639
- sourceTableFullName: d.source_table_full_name,
1640
- primaryKeyColumns: d.primary_key_columns,
1641
- timeseriesKey: d.timeseries_key,
1642
- existingPipelineId: d.existing_pipeline_id,
1643
- createDatabaseObjectsIfMissing: d.create_database_objects_if_missing,
1644
- newPipelineSpec: d.new_pipeline_spec,
1645
- acceleratedSync: d.accelerated_sync,
1646
- typeOverrides: d.type_overrides,
1647
- extraColumns: d.extra_columns,
1648
- }));
1649
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1650
- export const unmarshalSyncedTable_SyncedTableSpec_ExtraColumnSchema = z
1651
- .object({
1652
- column_name: z.string().optional(),
1653
- column_type: z.string().optional(),
1654
- maintenance: z.string().optional(),
1655
- compute: z.string().optional(),
1656
- })
1657
- .transform(d => ({
1658
- columnName: d.column_name,
1659
- columnType: d.column_type,
1660
- maintenance: d.maintenance,
1661
- compute: d.compute,
1662
- }));
1663
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1664
- export const unmarshalSyncedTable_SyncedTableSpec_TypeOverrideSchema = z
1665
- .object({
1666
- column_name: z.string().optional(),
1667
- pg_type: z.string().optional(),
1668
- size: z.number().optional(),
1669
- })
1670
- .transform(d => ({
1671
- columnName: d.column_name,
1672
- pgType: d.pg_type,
1673
- size: d.size,
1674
- }));
1675
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1676
- export const unmarshalSyncedTable_SyncedTableStatusSchema = z
1677
- .object({
1678
- message: z.string().optional(),
1679
- detailed_state: z.string().optional(),
1680
- last_sync: z.lazy(() => unmarshalSyncedTablePositionSchema).optional(),
1681
- ongoing_sync_progress: z
1682
- .lazy(() => unmarshalSyncedTablePipelineProgressSchema)
1683
- .optional(),
1684
- provisioning_phase: z.string().optional(),
1685
- last_processed_commit_version: z
1686
- .union([z.number(), z.bigint()])
1687
- .transform(v => BigInt(v))
1688
- .optional(),
1689
- last_sync_time: z
1690
- .string()
1691
- .transform(s => Temporal.Instant.from(s))
1692
- .optional(),
1693
- pipeline_id: z.string().optional(),
1694
- unity_catalog_provisioning_state: z.string().optional(),
1695
- project: z.string().optional(),
1696
- })
1697
- .transform(d => ({
1698
- message: d.message,
1699
- detailedState: d.detailed_state,
1700
- lastSync: d.last_sync,
1701
- ongoingSyncProgress: d.ongoing_sync_progress,
1702
- provisioningPhase: d.provisioning_phase,
1703
- lastProcessedCommitVersion: d.last_processed_commit_version,
1704
- lastSyncTime: d.last_sync_time,
1705
- pipelineId: d.pipeline_id,
1706
- unityCatalogProvisioningState: d.unity_catalog_provisioning_state,
1707
- project: d.project,
1708
- }));
1709
- export const unmarshalSyncedTableOperationMetadataSchema = z.object({});
1710
- export const unmarshalSyncedTablePipelineProgressSchema = z
1711
- .object({
1712
- latest_version_currently_processing: z
1713
- .union([z.number(), z.bigint()])
1714
- .transform(v => BigInt(v))
1715
- .optional(),
1716
- synced_row_count: z
1717
- .union([z.number(), z.bigint()])
1718
- .transform(v => BigInt(v))
1719
- .optional(),
1720
- total_row_count: z
1721
- .union([z.number(), z.bigint()])
1722
- .transform(v => BigInt(v))
1723
- .optional(),
1724
- sync_progress_completion: z.number().optional(),
1725
- estimated_completion_time_seconds: z.number().optional(),
1726
- })
1727
- .transform(d => ({
1728
- latestVersionCurrentlyProcessing: d.latest_version_currently_processing,
1729
- syncedRowCount: d.synced_row_count,
1730
- totalRowCount: d.total_row_count,
1731
- syncProgressCompletion: d.sync_progress_completion,
1732
- estimatedCompletionTimeSeconds: d.estimated_completion_time_seconds,
1733
- }));
1734
- export const unmarshalSyncedTablePositionSchema = z
1735
- .object({
1736
- sync_start_time: z
1737
- .string()
1738
- .transform(s => Temporal.Instant.from(s))
1739
- .optional(),
1740
- sync_end_time: z
1741
- .string()
1742
- .transform(s => Temporal.Instant.from(s))
1743
- .optional(),
1744
- delta_table_sync_info: z
1745
- .lazy(() => unmarshalDeltaTableSyncInfoSchema)
1746
- .optional(),
1747
- })
1748
- .transform(d => ({
1749
- syncStartTime: d.sync_start_time,
1750
- syncEndTime: d.sync_end_time,
1751
- sourceSyncInfo: d.delta_table_sync_info !== undefined
1752
- ? {
1753
- $case: 'deltaTableSyncInfo',
1754
- deltaTableSyncInfo: d.delta_table_sync_info,
1755
- }
1756
- : undefined,
1757
- }));
1758
- export const marshalBranchSchema = z
1759
- .object({
1760
- name: z.string().optional(),
1761
- uid: z.string().optional(),
1762
- parent: z.string().optional(),
1763
- createTime: z
1764
- .any()
1765
- .transform((d) => d.toString())
1766
- .optional(),
1767
- updateTime: z
1768
- .any()
1769
- .transform((d) => d.toString())
1770
- .optional(),
1771
- spec: z.lazy(() => marshalBranchSpecSchema).optional(),
1772
- status: z.lazy(() => marshalBranchStatusSchema).optional(),
1773
- branchId: z.string().optional(),
1774
- })
1775
- .transform(d => ({
1776
- name: d.name,
1777
- uid: d.uid,
1778
- parent: d.parent,
1779
- create_time: d.createTime,
1780
- update_time: d.updateTime,
1781
- spec: d.spec,
1782
- status: d.status,
1783
- branch_id: d.branchId,
1784
- }));
1785
- export const marshalBranchSpecSchema = z
1786
- .object({
1787
- sourceBranch: z.string().optional(),
1788
- sourceBranchLsn: z.string().optional(),
1789
- sourceBranchTime: z
1790
- .any()
1791
- .transform((d) => d.toString())
1792
- .optional(),
1793
- isProtected: z.boolean().optional(),
1794
- expiration: z
1795
- .discriminatedUnion('$case', [
1796
- z.object({
1797
- $case: z.literal('expireTime'),
1798
- expireTime: z.any().transform((d) => d.toString()),
1799
- }),
1800
- z.object({
1801
- $case: z.literal('ttl'),
1802
- ttl: z
1803
- .any()
1804
- .transform((d) => d.toString().slice(2).toLowerCase()),
1805
- }),
1806
- z.object({ $case: z.literal('noExpiry'), noExpiry: z.boolean() }),
1807
- ])
1808
- .optional(),
1809
- })
1810
- .transform(d => ({
1811
- source_branch: d.sourceBranch,
1812
- source_branch_lsn: d.sourceBranchLsn,
1813
- source_branch_time: d.sourceBranchTime,
1814
- is_protected: d.isProtected,
1815
- ...(d.expiration?.$case === 'expireTime' && {
1816
- expire_time: d.expiration.expireTime,
1817
- }),
1818
- ...(d.expiration?.$case === 'ttl' && { ttl: d.expiration.ttl }),
1819
- ...(d.expiration?.$case === 'noExpiry' && {
1820
- no_expiry: d.expiration.noExpiry,
1821
- }),
1822
- }));
1823
- export const marshalBranchStatusSchema = z
1824
- .object({
1825
- sourceBranch: z.string().optional(),
1826
- sourceBranchLsn: z.string().optional(),
1827
- sourceBranchTime: z
1828
- .any()
1829
- .transform((d) => d.toString())
1830
- .optional(),
1831
- default: z.boolean().optional(),
1832
- isProtected: z.boolean().optional(),
1833
- currentState: z.string().optional(),
1834
- pendingState: z.string().optional(),
1835
- stateChangeTime: z
1836
- .any()
1837
- .transform((d) => d.toString())
1838
- .optional(),
1839
- logicalSizeBytes: z.bigint().optional(),
1840
- expireTime: z
1841
- .any()
1842
- .transform((d) => d.toString())
1843
- .optional(),
1844
- branchId: z.string().optional(),
1845
- deleteTime: z
1846
- .any()
1847
- .transform((d) => d.toString())
1848
- .optional(),
1849
- purgeTime: z
1850
- .any()
1851
- .transform((d) => d.toString())
1852
- .optional(),
1853
- })
1854
- .transform(d => ({
1855
- source_branch: d.sourceBranch,
1856
- source_branch_lsn: d.sourceBranchLsn,
1857
- source_branch_time: d.sourceBranchTime,
1858
- default: d.default,
1859
- is_protected: d.isProtected,
1860
- current_state: d.currentState,
1861
- pending_state: d.pendingState,
1862
- state_change_time: d.stateChangeTime,
1863
- logical_size_bytes: d.logicalSizeBytes,
1864
- expire_time: d.expireTime,
1865
- branch_id: d.branchId,
1866
- delete_time: d.deleteTime,
1867
- purge_time: d.purgeTime,
1868
- }));
1869
- export const marshalCatalogSchema = z
1870
- .object({
1871
- name: z.string().optional(),
1872
- uid: z.string().optional(),
1873
- spec: z.lazy(() => marshalCatalog_CatalogSpecSchema).optional(),
1874
- status: z.lazy(() => marshalCatalog_CatalogStatusSchema).optional(),
1875
- createTime: z
1876
- .any()
1877
- .transform((d) => d.toString())
1878
- .optional(),
1879
- updateTime: z
1880
- .any()
1881
- .transform((d) => d.toString())
1882
- .optional(),
1883
- catalogId: z.string().optional(),
1884
- })
1885
- .transform(d => ({
1886
- name: d.name,
1887
- uid: d.uid,
1888
- spec: d.spec,
1889
- status: d.status,
1890
- create_time: d.createTime,
1891
- update_time: d.updateTime,
1892
- catalog_id: d.catalogId,
1893
- }));
1894
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1895
- export const marshalCatalog_CatalogSpecSchema = z
1896
- .object({
1897
- postgresDatabase: z.string().optional(),
1898
- createDatabaseIfMissing: z.boolean().optional(),
1899
- branch: z.string().optional(),
1900
- })
1901
- .transform(d => ({
1902
- postgres_database: d.postgresDatabase,
1903
- create_database_if_missing: d.createDatabaseIfMissing,
1904
- branch: d.branch,
1905
- }));
1906
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1907
- export const marshalCatalog_CatalogStatusSchema = z
1908
- .object({
1909
- postgresDatabase: z.string().optional(),
1910
- project: z.string().optional(),
1911
- branch: z.string().optional(),
1912
- })
1913
- .transform(d => ({
1914
- postgres_database: d.postgresDatabase,
1915
- project: d.project,
1916
- branch: d.branch,
1917
- }));
1918
- export const marshalCdfConfigSchema = z
1919
- .object({
1920
- name: z.string().optional(),
1921
- catalog: z.string().optional(),
1922
- schema: z.string().optional(),
1923
- createTime: z
1924
- .any()
1925
- .transform((d) => d.toString())
1926
- .optional(),
1927
- cdfConfigId: z.string().optional(),
1928
- postgresSchema: z.string().optional(),
1929
- })
1930
- .transform(d => ({
1931
- name: d.name,
1932
- catalog: d.catalog,
1933
- schema: d.schema,
1934
- create_time: d.createTime,
1935
- cdf_config_id: d.cdfConfigId,
1936
- postgres_schema: d.postgresSchema,
1937
- }));
1938
- export const marshalDataApiSchema = z
1939
- .object({
1940
- name: z.string().optional(),
1941
- parent: z.string().optional(),
1942
- createTime: z
1943
- .any()
1944
- .transform((d) => d.toString())
1945
- .optional(),
1946
- updateTime: z
1947
- .any()
1948
- .transform((d) => d.toString())
1949
- .optional(),
1950
- spec: z.lazy(() => marshalDataApi_DataApiSpecSchema).optional(),
1951
- status: z.lazy(() => marshalDataApi_DataApiStatusSchema).optional(),
1952
- })
1953
- .transform(d => ({
1954
- name: d.name,
1955
- parent: d.parent,
1956
- create_time: d.createTime,
1957
- update_time: d.updateTime,
1958
- spec: d.spec,
1959
- status: d.status,
1960
- }));
1961
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1962
- export const marshalDataApi_DataApiSpecSchema = z
1963
- .object({
1964
- dbAggregatesEnabled: z.boolean().optional(),
1965
- dbExtraSearchPath: z.array(z.string()).optional(),
1966
- dbMaxRows: z.number().optional(),
1967
- dbSchemas: z.array(z.string()).optional(),
1968
- jwtRoleClaimKey: z.string().optional(),
1969
- jwtCacheMaxLifetime: z
1970
- .any()
1971
- .transform((d) => d.toString().slice(2).toLowerCase())
1972
- .optional(),
1973
- openapiMode: z.string().optional(),
1974
- serverCorsAllowedOrigins: z.array(z.string()).optional(),
1975
- serverTimingEnabled: z.boolean().optional(),
1976
- })
1977
- .transform(d => ({
1978
- db_aggregates_enabled: d.dbAggregatesEnabled,
1979
- db_extra_search_path: d.dbExtraSearchPath,
1980
- db_max_rows: d.dbMaxRows,
1981
- db_schemas: d.dbSchemas,
1982
- jwt_role_claim_key: d.jwtRoleClaimKey,
1983
- jwt_cache_max_lifetime: d.jwtCacheMaxLifetime,
1984
- openapi_mode: d.openapiMode,
1985
- server_cors_allowed_origins: d.serverCorsAllowedOrigins,
1986
- server_timing_enabled: d.serverTimingEnabled,
1987
- }));
1988
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1989
- export const marshalDataApi_DataApiStatusSchema = z
1990
- .object({
1991
- dbAggregatesEnabled: z.boolean().optional(),
1992
- dbExtraSearchPath: z.array(z.string()).optional(),
1993
- dbMaxRows: z.number().optional(),
1994
- dbSchemas: z.array(z.string()).optional(),
1995
- jwtRoleClaimKey: z.string().optional(),
1996
- jwtCacheMaxLifetime: z
1997
- .any()
1998
- .transform((d) => d.toString().slice(2).toLowerCase())
1999
- .optional(),
2000
- openapiMode: z.string().optional(),
2001
- serverCorsAllowedOrigins: z.array(z.string()).optional(),
2002
- serverTimingEnabled: z.boolean().optional(),
2003
- url: z.string().optional(),
2004
- availableSchemas: z.array(z.string()).optional(),
2005
- })
2006
- .transform(d => ({
2007
- db_aggregates_enabled: d.dbAggregatesEnabled,
2008
- db_extra_search_path: d.dbExtraSearchPath,
2009
- db_max_rows: d.dbMaxRows,
2010
- db_schemas: d.dbSchemas,
2011
- jwt_role_claim_key: d.jwtRoleClaimKey,
2012
- jwt_cache_max_lifetime: d.jwtCacheMaxLifetime,
2013
- openapi_mode: d.openapiMode,
2014
- server_cors_allowed_origins: d.serverCorsAllowedOrigins,
2015
- server_timing_enabled: d.serverTimingEnabled,
2016
- url: d.url,
2017
- available_schemas: d.availableSchemas,
2018
- }));
2019
- export const marshalDatabaseSchema = z
2020
- .object({
2021
- name: z.string().optional(),
2022
- parent: z.string().optional(),
2023
- createTime: z
2024
- .any()
2025
- .transform((d) => d.toString())
2026
- .optional(),
2027
- updateTime: z
2028
- .any()
2029
- .transform((d) => d.toString())
2030
- .optional(),
2031
- spec: z.lazy(() => marshalDatabase_DatabaseSpecSchema).optional(),
2032
- status: z.lazy(() => marshalDatabase_DatabaseStatusSchema).optional(),
2033
- databaseId: z.string().optional(),
2034
- })
2035
- .transform(d => ({
2036
- name: d.name,
2037
- parent: d.parent,
2038
- create_time: d.createTime,
2039
- update_time: d.updateTime,
2040
- spec: d.spec,
2041
- status: d.status,
2042
- database_id: d.databaseId,
2043
- }));
2044
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2045
- export const marshalDatabase_DatabaseSpecSchema = z
2046
- .object({
2047
- role: z.string().optional(),
2048
- postgresDatabase: z.string().optional(),
2049
- })
2050
- .transform(d => ({
2051
- role: d.role,
2052
- postgres_database: d.postgresDatabase,
2053
- }));
2054
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2055
- export const marshalDatabase_DatabaseStatusSchema = z
2056
- .object({
2057
- role: z.string().optional(),
2058
- postgresDatabase: z.string().optional(),
2059
- databaseId: z.string().optional(),
2060
- })
2061
- .transform(d => ({
2062
- role: d.role,
2063
- postgres_database: d.postgresDatabase,
2064
- database_id: d.databaseId,
2065
- }));
2066
- export const marshalDeltaTableSyncInfoSchema = z
2067
- .object({
2068
- deltaCommitVersion: z.bigint().optional(),
2069
- deltaCommitTime: z
2070
- .any()
2071
- .transform((d) => d.toString())
2072
- .optional(),
2073
- })
2074
- .transform(d => ({
2075
- delta_commit_version: d.deltaCommitVersion,
2076
- delta_commit_time: d.deltaCommitTime,
2077
- }));
2078
- export const marshalEndpointSchema = z
2079
- .object({
2080
- name: z.string().optional(),
2081
- uid: z.string().optional(),
2082
- parent: z.string().optional(),
2083
- createTime: z
2084
- .any()
2085
- .transform((d) => d.toString())
2086
- .optional(),
2087
- updateTime: z
2088
- .any()
2089
- .transform((d) => d.toString())
2090
- .optional(),
2091
- spec: z.lazy(() => marshalEndpointSpecSchema).optional(),
2092
- status: z.lazy(() => marshalEndpointStatusSchema).optional(),
2093
- endpointId: z.string().optional(),
2094
- })
2095
- .transform(d => ({
2096
- name: d.name,
2097
- uid: d.uid,
2098
- parent: d.parent,
2099
- create_time: d.createTime,
2100
- update_time: d.updateTime,
2101
- spec: d.spec,
2102
- status: d.status,
2103
- endpoint_id: d.endpointId,
2104
- }));
2105
- export const marshalEndpointGroupSpecSchema = z
2106
- .object({
2107
- min: z.number().optional(),
2108
- max: z.number().optional(),
2109
- enableReadableSecondaries: z.boolean().optional(),
2110
- })
2111
- .transform(d => ({
2112
- min: d.min,
2113
- max: d.max,
2114
- enable_readable_secondaries: d.enableReadableSecondaries,
2115
- }));
2116
- export const marshalEndpointGroupStatusSchema = z
2117
- .object({
2118
- min: z.number().optional(),
2119
- max: z.number().optional(),
2120
- enableReadableSecondaries: z.boolean().optional(),
2121
- })
2122
- .transform(d => ({
2123
- min: d.min,
2124
- max: d.max,
2125
- enable_readable_secondaries: d.enableReadableSecondaries,
2126
- }));
2127
- export const marshalEndpointHostsSchema = z
2128
- .object({
2129
- host: z.string().optional(),
2130
- readOnlyHost: z.string().optional(),
2131
- readWritePooledHost: z.string().optional(),
2132
- readOnlyPooledHost: z.string().optional(),
2133
- })
2134
- .transform(d => ({
2135
- host: d.host,
2136
- read_only_host: d.readOnlyHost,
2137
- read_write_pooled_host: d.readWritePooledHost,
2138
- read_only_pooled_host: d.readOnlyPooledHost,
2139
- }));
2140
- export const marshalEndpointSettingsSchema = z
2141
- .object({
2142
- pgSettings: z.record(z.string(), z.string()).optional(),
2143
- })
2144
- .transform(d => ({
2145
- pg_settings: d.pgSettings,
2146
- }));
2147
- export const marshalEndpointSpecSchema = z
2148
- .object({
2149
- endpointType: z.string().optional(),
2150
- autoscalingLimitMinCu: z.number().optional(),
2151
- autoscalingLimitMaxCu: z.number().optional(),
2152
- disabled: z.boolean().optional(),
2153
- suspension: z
2154
- .discriminatedUnion('$case', [
2155
- z.object({
2156
- $case: z.literal('suspendTimeoutDuration'),
2157
- suspendTimeoutDuration: z
2158
- .any()
2159
- .transform((d) => d.toString().slice(2).toLowerCase()),
2160
- }),
2161
- z.object({ $case: z.literal('noSuspension'), noSuspension: z.boolean() }),
2162
- ])
2163
- .optional(),
2164
- settings: z.lazy(() => marshalEndpointSettingsSchema).optional(),
2165
- group: z.lazy(() => marshalEndpointGroupSpecSchema).optional(),
2166
- })
2167
- .transform(d => ({
2168
- endpoint_type: d.endpointType,
2169
- autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
2170
- autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
2171
- disabled: d.disabled,
2172
- ...(d.suspension?.$case === 'suspendTimeoutDuration' && {
2173
- suspend_timeout_duration: d.suspension.suspendTimeoutDuration,
2174
- }),
2175
- ...(d.suspension?.$case === 'noSuspension' && {
2176
- no_suspension: d.suspension.noSuspension,
2177
- }),
2178
- settings: d.settings,
2179
- group: d.group,
2180
- }));
2181
- export const marshalEndpointStatusSchema = z
2182
- .object({
2183
- endpointType: z.string().optional(),
2184
- hosts: z.lazy(() => marshalEndpointHostsSchema).optional(),
2185
- lastActiveTime: z
2186
- .any()
2187
- .transform((d) => d.toString())
2188
- .optional(),
2189
- autoscalingLimitMinCu: z.number().optional(),
2190
- autoscalingLimitMaxCu: z.number().optional(),
2191
- currentState: z.string().optional(),
2192
- pendingState: z.string().optional(),
2193
- disabled: z.boolean().optional(),
2194
- suspendTimeoutDuration: z
2195
- .any()
2196
- .transform((d) => d.toString().slice(2).toLowerCase())
2197
- .optional(),
2198
- settings: z.lazy(() => marshalEndpointSettingsSchema).optional(),
2199
- group: z.lazy(() => marshalEndpointGroupStatusSchema).optional(),
2200
- endpointId: z.string().optional(),
2201
- })
2202
- .transform(d => ({
2203
- endpoint_type: d.endpointType,
2204
- hosts: d.hosts,
2205
- last_active_time: d.lastActiveTime,
2206
- autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
2207
- autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
2208
- current_state: d.currentState,
2209
- pending_state: d.pendingState,
2210
- disabled: d.disabled,
2211
- suspend_timeout_duration: d.suspendTimeoutDuration,
2212
- settings: d.settings,
2213
- group: d.group,
2214
- endpoint_id: d.endpointId,
2215
- }));
2216
- export const marshalGenerateDatabaseCredentialRequestSchema = z
2217
- .object({
2218
- claims: z.array(z.lazy(() => marshalRequestedClaimsSchema)).optional(),
2219
- endpoint: z.string().optional(),
2220
- expiration: z
2221
- .discriminatedUnion('$case', [
2222
- z.object({
2223
- $case: z.literal('ttl'),
2224
- ttl: z
2225
- .any()
2226
- .transform((d) => d.toString().slice(2).toLowerCase()),
2227
- }),
2228
- z.object({
2229
- $case: z.literal('expireTime'),
2230
- expireTime: z.any().transform((d) => d.toString()),
2231
- }),
2232
- ])
2233
- .optional(),
2234
- })
2235
- .transform(d => ({
2236
- claims: d.claims,
2237
- endpoint: d.endpoint,
2238
- ...(d.expiration?.$case === 'ttl' && { ttl: d.expiration.ttl }),
2239
- ...(d.expiration?.$case === 'expireTime' && {
2240
- expire_time: d.expiration.expireTime,
2241
- }),
2242
- }));
2243
- export const marshalInitialBranchSpecSchema = z
2244
- .object({
2245
- isProtected: z.boolean().optional(),
2246
- })
2247
- .transform(d => ({
2248
- is_protected: d.isProtected,
2249
- }));
2250
- export const marshalInitialEndpointSpecSchema = z
2251
- .object({
2252
- group: z.lazy(() => marshalEndpointGroupSpecSchema).optional(),
2253
- autoscalingLimitMinCu: z.number().optional(),
2254
- autoscalingLimitMaxCu: z.number().optional(),
2255
- suspension: z
2256
- .discriminatedUnion('$case', [
2257
- z.object({
2258
- $case: z.literal('suspendTimeoutDuration'),
2259
- suspendTimeoutDuration: z
2260
- .any()
2261
- .transform((d) => d.toString().slice(2).toLowerCase()),
2262
- }),
2263
- z.object({ $case: z.literal('noSuspension'), noSuspension: z.boolean() }),
2264
- ])
2265
- .optional(),
2266
- })
2267
- .transform(d => ({
2268
- group: d.group,
2269
- autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
2270
- autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
2271
- ...(d.suspension?.$case === 'suspendTimeoutDuration' && {
2272
- suspend_timeout_duration: d.suspension.suspendTimeoutDuration,
2273
- }),
2274
- ...(d.suspension?.$case === 'noSuspension' && {
2275
- no_suspension: d.suspension.noSuspension,
2276
- }),
2277
- }));
2278
- export const marshalNewPipelineSpecSchema = z
2279
- .object({
2280
- storageCatalog: z.string().optional(),
2281
- storageSchema: z.string().optional(),
2282
- budgetPolicyId: z.string().optional(),
2283
- })
2284
- .transform(d => ({
2285
- storage_catalog: d.storageCatalog,
2286
- storage_schema: d.storageSchema,
2287
- budget_policy_id: d.budgetPolicyId,
2288
- }));
2289
- export const marshalProjectSchema = z
2290
- .object({
2291
- name: z.string().optional(),
2292
- uid: z.string().optional(),
2293
- createTime: z
2294
- .any()
2295
- .transform((d) => d.toString())
2296
- .optional(),
2297
- updateTime: z
2298
- .any()
2299
- .transform((d) => d.toString())
2300
- .optional(),
2301
- spec: z.lazy(() => marshalProjectSpecSchema).optional(),
2302
- status: z.lazy(() => marshalProjectStatusSchema).optional(),
2303
- initialEndpointSpec: z
2304
- .lazy(() => marshalInitialEndpointSpecSchema)
2305
- .optional(),
2306
- deleteTime: z
2307
- .any()
2308
- .transform((d) => d.toString())
2309
- .optional(),
2310
- purgeTime: z
2311
- .any()
2312
- .transform((d) => d.toString())
2313
- .optional(),
2314
- initialBranchSpec: z.lazy(() => marshalInitialBranchSpecSchema).optional(),
2315
- projectId: z.string().optional(),
2316
- })
2317
- .transform(d => ({
2318
- name: d.name,
2319
- uid: d.uid,
2320
- create_time: d.createTime,
2321
- update_time: d.updateTime,
2322
- spec: d.spec,
2323
- status: d.status,
2324
- initial_endpoint_spec: d.initialEndpointSpec,
2325
- delete_time: d.deleteTime,
2326
- purge_time: d.purgeTime,
2327
- initial_branch_spec: d.initialBranchSpec,
2328
- project_id: d.projectId,
2329
- }));
2330
- export const marshalProjectCustomTagSchema = z
2331
- .object({
2332
- key: z.string().optional(),
2333
- value: z.string().optional(),
2334
- })
2335
- .transform(d => ({
2336
- key: d.key,
2337
- value: d.value,
2338
- }));
2339
- export const marshalProjectDefaultEndpointSettingsSchema = z
2340
- .object({
2341
- autoscalingLimitMinCu: z.number().optional(),
2342
- autoscalingLimitMaxCu: z.number().optional(),
2343
- suspension: z
2344
- .discriminatedUnion('$case', [
2345
- z.object({
2346
- $case: z.literal('suspendTimeoutDuration'),
2347
- suspendTimeoutDuration: z
2348
- .any()
2349
- .transform((d) => d.toString().slice(2).toLowerCase()),
2350
- }),
2351
- z.object({ $case: z.literal('noSuspension'), noSuspension: z.boolean() }),
2352
- ])
2353
- .optional(),
2354
- pgSettings: z.record(z.string(), z.string()).optional(),
2355
- })
2356
- .transform(d => ({
2357
- autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
2358
- autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
2359
- ...(d.suspension?.$case === 'suspendTimeoutDuration' && {
2360
- suspend_timeout_duration: d.suspension.suspendTimeoutDuration,
2361
- }),
2362
- ...(d.suspension?.$case === 'noSuspension' && {
2363
- no_suspension: d.suspension.noSuspension,
2364
- }),
2365
- pg_settings: d.pgSettings,
2366
- }));
2367
- export const marshalProjectSpecSchema = z
2368
- .object({
2369
- displayName: z.string().optional(),
2370
- pgVersion: z.number().optional(),
2371
- historyRetentionDuration: z
2372
- .any()
2373
- .transform((d) => d.toString().slice(2).toLowerCase())
2374
- .optional(),
2375
- defaultEndpointSettings: z
2376
- .lazy(() => marshalProjectDefaultEndpointSettingsSchema)
2377
- .optional(),
2378
- budgetPolicyId: z.string().optional(),
2379
- customTags: z.array(z.lazy(() => marshalProjectCustomTagSchema)).optional(),
2380
- enablePgNativeLogin: z.boolean().optional(),
2381
- defaultBranch: z.string().optional(),
2382
- })
2383
- .transform(d => ({
2384
- display_name: d.displayName,
2385
- pg_version: d.pgVersion,
2386
- history_retention_duration: d.historyRetentionDuration,
2387
- default_endpoint_settings: d.defaultEndpointSettings,
2388
- budget_policy_id: d.budgetPolicyId,
2389
- custom_tags: d.customTags,
2390
- enable_pg_native_login: d.enablePgNativeLogin,
2391
- default_branch: d.defaultBranch,
2392
- }));
2393
- export const marshalProjectStatusSchema = z
2394
- .object({
2395
- displayName: z.string().optional(),
2396
- pgVersion: z.number().optional(),
2397
- historyRetentionDuration: z
2398
- .any()
2399
- .transform((d) => d.toString().slice(2).toLowerCase())
2400
- .optional(),
2401
- defaultEndpointSettings: z
2402
- .lazy(() => marshalProjectDefaultEndpointSettingsSchema)
2403
- .optional(),
2404
- branchLogicalSizeLimitBytes: z.bigint().optional(),
2405
- syntheticStorageSizeBytes: z.bigint().optional(),
2406
- computeLastActiveTime: z
2407
- .any()
2408
- .transform((d) => d.toString())
2409
- .optional(),
2410
- budgetPolicyId: z.string().optional(),
2411
- customTags: z.array(z.lazy(() => marshalProjectCustomTagSchema)).optional(),
2412
- owner: z.string().optional(),
2413
- enablePgNativeLogin: z.boolean().optional(),
2414
- defaultBranch: z.string().optional(),
2415
- projectId: z.string().optional(),
2416
- })
2417
- .transform(d => ({
2418
- display_name: d.displayName,
2419
- pg_version: d.pgVersion,
2420
- history_retention_duration: d.historyRetentionDuration,
2421
- default_endpoint_settings: d.defaultEndpointSettings,
2422
- branch_logical_size_limit_bytes: d.branchLogicalSizeLimitBytes,
2423
- synthetic_storage_size_bytes: d.syntheticStorageSizeBytes,
2424
- compute_last_active_time: d.computeLastActiveTime,
2425
- budget_policy_id: d.budgetPolicyId,
2426
- custom_tags: d.customTags,
2427
- owner: d.owner,
2428
- enable_pg_native_login: d.enablePgNativeLogin,
2429
- default_branch: d.defaultBranch,
2430
- project_id: d.projectId,
2431
- }));
2432
- export const marshalRequestedClaimsSchema = z
2433
- .object({
2434
- permissionSet: z.string().optional(),
2435
- resources: z.array(z.lazy(() => marshalRequestedResourceSchema)).optional(),
2436
- })
2437
- .transform(d => ({
2438
- permission_set: d.permissionSet,
2439
- resources: d.resources,
2440
- }));
2441
- export const marshalRequestedResourceSchema = z
2442
- .object({
2443
- resourceName: z
2444
- .discriminatedUnion('$case', [
2445
- z.object({ $case: z.literal('tableName'), tableName: z.string() }),
2446
- ])
2447
- .optional(),
2448
- })
2449
- .transform(d => ({
2450
- ...(d.resourceName?.$case === 'tableName' && {
2451
- table_name: d.resourceName.tableName,
2452
- }),
2453
- }));
2454
- export const marshalRoleSchema = z
2455
- .object({
2456
- name: z.string().optional(),
2457
- parent: z.string().optional(),
2458
- createTime: z
2459
- .any()
2460
- .transform((d) => d.toString())
2461
- .optional(),
2462
- updateTime: z
2463
- .any()
2464
- .transform((d) => d.toString())
2465
- .optional(),
2466
- spec: z.lazy(() => marshalRole_RoleSpecSchema).optional(),
2467
- status: z.lazy(() => marshalRole_RoleStatusSchema).optional(),
2468
- roleId: z.string().optional(),
2469
- })
2470
- .transform(d => ({
2471
- name: d.name,
2472
- parent: d.parent,
2473
- create_time: d.createTime,
2474
- update_time: d.updateTime,
2475
- spec: d.spec,
2476
- status: d.status,
2477
- role_id: d.roleId,
2478
- }));
2479
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2480
- export const marshalRole_AttributesSchema = z
2481
- .object({
2482
- createdb: z.boolean().optional(),
2483
- createrole: z.boolean().optional(),
2484
- bypassrls: z.boolean().optional(),
2485
- })
2486
- .transform(d => ({
2487
- createdb: d.createdb,
2488
- createrole: d.createrole,
2489
- bypassrls: d.bypassrls,
2490
- }));
2491
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2492
- export const marshalRole_RoleSpecSchema = z
2493
- .object({
2494
- membershipRoles: z.array(z.string()).optional(),
2495
- identityType: z.string().optional(),
2496
- attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
2497
- authMethod: z.string().optional(),
2498
- postgresRole: z.string().optional(),
2499
- })
2500
- .transform(d => ({
2501
- membership_roles: d.membershipRoles,
2502
- identity_type: d.identityType,
2503
- attributes: d.attributes,
2504
- auth_method: d.authMethod,
2505
- postgres_role: d.postgresRole,
2506
- }));
2507
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2508
- export const marshalRole_RoleStatusSchema = z
2509
- .object({
2510
- membershipRoles: z.array(z.string()).optional(),
2511
- identityType: z.string().optional(),
2512
- attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
2513
- authMethod: z.string().optional(),
2514
- postgresRole: z.string().optional(),
2515
- roleId: z.string().optional(),
2516
- })
2517
- .transform(d => ({
2518
- membership_roles: d.membershipRoles,
2519
- identity_type: d.identityType,
2520
- attributes: d.attributes,
2521
- auth_method: d.authMethod,
2522
- postgres_role: d.postgresRole,
2523
- role_id: d.roleId,
2524
- }));
2525
- export const marshalSyncedTableSchema = z
2526
- .object({
2527
- name: z.string().optional(),
2528
- uid: z.string().optional(),
2529
- spec: z.lazy(() => marshalSyncedTable_SyncedTableSpecSchema).optional(),
2530
- status: z.lazy(() => marshalSyncedTable_SyncedTableStatusSchema).optional(),
2531
- createTime: z
2532
- .any()
2533
- .transform((d) => d.toString())
2534
- .optional(),
2535
- syncedTableId: z.string().optional(),
2536
- })
2537
- .transform(d => ({
2538
- name: d.name,
2539
- uid: d.uid,
2540
- spec: d.spec,
2541
- status: d.status,
2542
- create_time: d.createTime,
2543
- synced_table_id: d.syncedTableId,
2544
- }));
2545
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2546
- export const marshalSyncedTable_SyncedTableSpecSchema = z
2547
- .object({
2548
- postgresDatabase: z.string().optional(),
2549
- branch: z.string().optional(),
2550
- schedulingPolicy: z.string().optional(),
2551
- sourceTableFullName: z.string().optional(),
2552
- primaryKeyColumns: z.array(z.string()).optional(),
2553
- timeseriesKey: z.string().optional(),
2554
- existingPipelineId: z.string().optional(),
2555
- createDatabaseObjectsIfMissing: z.boolean().optional(),
2556
- newPipelineSpec: z.lazy(() => marshalNewPipelineSpecSchema).optional(),
2557
- acceleratedSync: z.boolean().optional(),
2558
- typeOverrides: z
2559
- .array(z.lazy(() => marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema))
2560
- .optional(),
2561
- extraColumns: z
2562
- .array(z.lazy(() => marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema))
2563
- .optional(),
2564
- })
2565
- .transform(d => ({
2566
- postgres_database: d.postgresDatabase,
2567
- branch: d.branch,
2568
- scheduling_policy: d.schedulingPolicy,
2569
- source_table_full_name: d.sourceTableFullName,
2570
- primary_key_columns: d.primaryKeyColumns,
2571
- timeseries_key: d.timeseriesKey,
2572
- existing_pipeline_id: d.existingPipelineId,
2573
- create_database_objects_if_missing: d.createDatabaseObjectsIfMissing,
2574
- new_pipeline_spec: d.newPipelineSpec,
2575
- accelerated_sync: d.acceleratedSync,
2576
- type_overrides: d.typeOverrides,
2577
- extra_columns: d.extraColumns,
2578
- }));
2579
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2580
- export const marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema = z
2581
- .object({
2582
- columnName: z.string().optional(),
2583
- columnType: z.string().optional(),
2584
- maintenance: z.string().optional(),
2585
- compute: z.string().optional(),
2586
- })
2587
- .transform(d => ({
2588
- column_name: d.columnName,
2589
- column_type: d.columnType,
2590
- maintenance: d.maintenance,
2591
- compute: d.compute,
2592
- }));
2593
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2594
- export const marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema = z
2595
- .object({
2596
- columnName: z.string().optional(),
2597
- pgType: z.string().optional(),
2598
- size: z.number().optional(),
2599
- })
2600
- .transform(d => ({
2601
- column_name: d.columnName,
2602
- pg_type: d.pgType,
2603
- size: d.size,
2604
- }));
2605
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2606
- export const marshalSyncedTable_SyncedTableStatusSchema = z
2607
- .object({
2608
- message: z.string().optional(),
2609
- detailedState: z.string().optional(),
2610
- lastSync: z.lazy(() => marshalSyncedTablePositionSchema).optional(),
2611
- ongoingSyncProgress: z
2612
- .lazy(() => marshalSyncedTablePipelineProgressSchema)
2613
- .optional(),
2614
- provisioningPhase: z.string().optional(),
2615
- lastProcessedCommitVersion: z.bigint().optional(),
2616
- lastSyncTime: z
2617
- .any()
2618
- .transform((d) => d.toString())
2619
- .optional(),
2620
- pipelineId: z.string().optional(),
2621
- unityCatalogProvisioningState: z.string().optional(),
2622
- project: z.string().optional(),
2623
- })
2624
- .transform(d => ({
2625
- message: d.message,
2626
- detailed_state: d.detailedState,
2627
- last_sync: d.lastSync,
2628
- ongoing_sync_progress: d.ongoingSyncProgress,
2629
- provisioning_phase: d.provisioningPhase,
2630
- last_processed_commit_version: d.lastProcessedCommitVersion,
2631
- last_sync_time: d.lastSyncTime,
2632
- pipeline_id: d.pipelineId,
2633
- unity_catalog_provisioning_state: d.unityCatalogProvisioningState,
2634
- project: d.project,
2635
- }));
2636
- export const marshalSyncedTablePipelineProgressSchema = z
2637
- .object({
2638
- latestVersionCurrentlyProcessing: z.bigint().optional(),
2639
- syncedRowCount: z.bigint().optional(),
2640
- totalRowCount: z.bigint().optional(),
2641
- syncProgressCompletion: z.number().optional(),
2642
- estimatedCompletionTimeSeconds: z.number().optional(),
2643
- })
2644
- .transform(d => ({
2645
- latest_version_currently_processing: d.latestVersionCurrentlyProcessing,
2646
- synced_row_count: d.syncedRowCount,
2647
- total_row_count: d.totalRowCount,
2648
- sync_progress_completion: d.syncProgressCompletion,
2649
- estimated_completion_time_seconds: d.estimatedCompletionTimeSeconds,
2650
- }));
2651
- export const marshalSyncedTablePositionSchema = z
2652
- .object({
2653
- syncStartTime: z
2654
- .any()
2655
- .transform((d) => d.toString())
2656
- .optional(),
2657
- syncEndTime: z
2658
- .any()
2659
- .transform((d) => d.toString())
2660
- .optional(),
2661
- sourceSyncInfo: z
2662
- .discriminatedUnion('$case', [
2663
- z.object({
2664
- $case: z.literal('deltaTableSyncInfo'),
2665
- deltaTableSyncInfo: z.lazy(() => marshalDeltaTableSyncInfoSchema),
2666
- }),
2667
- ])
2668
- .optional(),
2669
- })
2670
- .transform(d => ({
2671
- sync_start_time: d.syncStartTime,
2672
- sync_end_time: d.syncEndTime,
2673
- ...(d.sourceSyncInfo?.$case === 'deltaTableSyncInfo' && {
2674
- delta_table_sync_info: d.sourceSyncInfo.deltaTableSyncInfo,
2675
- }),
2676
- }));
2677
- export const marshalUndeleteBranchRequestSchema = z
2678
- .object({
2679
- name: z.string().optional(),
2680
- })
2681
- .transform(d => ({
2682
- name: d.name,
2683
- }));
2684
- export const marshalUndeleteProjectRequestSchema = z
2685
- .object({
2686
- name: z.string().optional(),
2687
- })
2688
- .transform(d => ({
2689
- name: d.name,
2690
- }));
207
+ const unmarshalApiErrorSchema = z.object({
208
+ error_code: z.string().optional(),
209
+ message: z.string().optional(),
210
+ stack_trace: z.string().optional(),
211
+ details: z.array(z.record(z.string(), z.unknown())).optional()
212
+ }).transform((d) => ({
213
+ errorCode: d.error_code,
214
+ message: d.message,
215
+ stackTrace: d.stack_trace,
216
+ details: d.details
217
+ }));
218
+ const unmarshalBranchSchema = z.object({
219
+ name: z.string().optional(),
220
+ uid: z.string().optional(),
221
+ parent: z.string().optional(),
222
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
223
+ update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
224
+ spec: z.lazy(() => unmarshalBranchSpecSchema).optional(),
225
+ status: z.lazy(() => unmarshalBranchStatusSchema).optional(),
226
+ branch_id: z.string().optional()
227
+ }).transform((d) => ({
228
+ name: d.name,
229
+ uid: d.uid,
230
+ parent: d.parent,
231
+ createTime: d.create_time,
232
+ updateTime: d.update_time,
233
+ spec: d.spec,
234
+ status: d.status,
235
+ branchId: d.branch_id
236
+ }));
237
+ const unmarshalBranchOperationMetadataSchema = z.object({});
238
+ const unmarshalBranchSpecSchema = z.object({
239
+ source_branch: z.string().optional(),
240
+ source_branch_lsn: z.string().optional(),
241
+ source_branch_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
242
+ is_protected: z.boolean().optional(),
243
+ expire_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
244
+ ttl: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
245
+ no_expiry: z.boolean().optional()
246
+ }).transform((d) => ({
247
+ sourceBranch: d.source_branch,
248
+ sourceBranchLsn: d.source_branch_lsn,
249
+ sourceBranchTime: d.source_branch_time,
250
+ isProtected: d.is_protected,
251
+ expiration: d.expire_time !== void 0 ? {
252
+ $case: "expireTime",
253
+ expireTime: d.expire_time
254
+ } : d.ttl !== void 0 ? {
255
+ $case: "ttl",
256
+ ttl: d.ttl
257
+ } : d.no_expiry !== void 0 ? {
258
+ $case: "noExpiry",
259
+ noExpiry: d.no_expiry
260
+ } : void 0
261
+ }));
262
+ const unmarshalBranchStatusSchema = z.object({
263
+ source_branch: z.string().optional(),
264
+ source_branch_lsn: z.string().optional(),
265
+ source_branch_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
266
+ default: z.boolean().optional(),
267
+ is_protected: z.boolean().optional(),
268
+ current_state: z.string().optional(),
269
+ pending_state: z.string().optional(),
270
+ state_change_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
271
+ logical_size_bytes: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
272
+ expire_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
273
+ branch_id: z.string().optional(),
274
+ delete_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
275
+ purge_time: z.string().transform((s) => Temporal.Instant.from(s)).optional()
276
+ }).transform((d) => ({
277
+ sourceBranch: d.source_branch,
278
+ sourceBranchLsn: d.source_branch_lsn,
279
+ sourceBranchTime: d.source_branch_time,
280
+ default: d.default,
281
+ isProtected: d.is_protected,
282
+ currentState: d.current_state,
283
+ pendingState: d.pending_state,
284
+ stateChangeTime: d.state_change_time,
285
+ logicalSizeBytes: d.logical_size_bytes,
286
+ expireTime: d.expire_time,
287
+ branchId: d.branch_id,
288
+ deleteTime: d.delete_time,
289
+ purgeTime: d.purge_time
290
+ }));
291
+ const unmarshalCatalogSchema = z.object({
292
+ name: z.string().optional(),
293
+ uid: z.string().optional(),
294
+ spec: z.lazy(() => unmarshalCatalog_CatalogSpecSchema).optional(),
295
+ status: z.lazy(() => unmarshalCatalog_CatalogStatusSchema).optional(),
296
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
297
+ update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
298
+ catalog_id: z.string().optional()
299
+ }).transform((d) => ({
300
+ name: d.name,
301
+ uid: d.uid,
302
+ spec: d.spec,
303
+ status: d.status,
304
+ createTime: d.create_time,
305
+ updateTime: d.update_time,
306
+ catalogId: d.catalog_id
307
+ }));
308
+ const unmarshalCatalog_CatalogSpecSchema = z.object({
309
+ postgres_database: z.string().optional(),
310
+ create_database_if_missing: z.boolean().optional(),
311
+ branch: z.string().optional()
312
+ }).transform((d) => ({
313
+ postgresDatabase: d.postgres_database,
314
+ createDatabaseIfMissing: d.create_database_if_missing,
315
+ branch: d.branch
316
+ }));
317
+ const unmarshalCatalog_CatalogStatusSchema = z.object({
318
+ postgres_database: z.string().optional(),
319
+ project: z.string().optional(),
320
+ branch: z.string().optional()
321
+ }).transform((d) => ({
322
+ postgresDatabase: d.postgres_database,
323
+ project: d.project,
324
+ branch: d.branch
325
+ }));
326
+ const unmarshalCatalogOperationMetadataSchema = z.object({});
327
+ const unmarshalCdfConfigSchema = z.object({
328
+ name: z.string().optional(),
329
+ catalog: z.string().optional(),
330
+ schema: z.string().optional(),
331
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
332
+ cdf_config_id: z.string().optional(),
333
+ postgres_schema: z.string().optional()
334
+ }).transform((d) => ({
335
+ name: d.name,
336
+ catalog: d.catalog,
337
+ schema: d.schema,
338
+ createTime: d.create_time,
339
+ cdfConfigId: d.cdf_config_id,
340
+ postgresSchema: d.postgres_schema
341
+ }));
342
+ const unmarshalCdfConfigOperationMetadataSchema = z.object({});
343
+ const unmarshalCdfStatusSchema = z.object({
344
+ name: z.string().optional(),
345
+ postgres_table: z.string().optional(),
346
+ uc_table: z.string().optional(),
347
+ state: z.string().optional(),
348
+ committed_lsn: z.string().optional(),
349
+ last_sync_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
350
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
351
+ status_detail: z.string().optional()
352
+ }).transform((d) => ({
353
+ name: d.name,
354
+ postgresTable: d.postgres_table,
355
+ ucTable: d.uc_table,
356
+ state: d.state,
357
+ committedLsn: d.committed_lsn,
358
+ lastSyncTime: d.last_sync_time,
359
+ createTime: d.create_time,
360
+ statusDetail: d.status_detail
361
+ }));
362
+ const unmarshalDataApiSchema = z.object({
363
+ name: z.string().optional(),
364
+ parent: z.string().optional(),
365
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
366
+ update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
367
+ spec: z.lazy(() => unmarshalDataApi_DataApiSpecSchema).optional(),
368
+ status: z.lazy(() => unmarshalDataApi_DataApiStatusSchema).optional()
369
+ }).transform((d) => ({
370
+ name: d.name,
371
+ parent: d.parent,
372
+ createTime: d.create_time,
373
+ updateTime: d.update_time,
374
+ spec: d.spec,
375
+ status: d.status
376
+ }));
377
+ const unmarshalDataApi_DataApiSpecSchema = z.object({
378
+ db_aggregates_enabled: z.boolean().optional(),
379
+ db_extra_search_path: z.array(z.string()).optional(),
380
+ db_max_rows: z.number().optional(),
381
+ db_schemas: z.array(z.string()).optional(),
382
+ jwt_role_claim_key: z.string().optional(),
383
+ jwt_cache_max_lifetime: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
384
+ openapi_mode: z.string().optional(),
385
+ server_cors_allowed_origins: z.array(z.string()).optional(),
386
+ server_timing_enabled: z.boolean().optional()
387
+ }).transform((d) => ({
388
+ dbAggregatesEnabled: d.db_aggregates_enabled,
389
+ dbExtraSearchPath: d.db_extra_search_path,
390
+ dbMaxRows: d.db_max_rows,
391
+ dbSchemas: d.db_schemas,
392
+ jwtRoleClaimKey: d.jwt_role_claim_key,
393
+ jwtCacheMaxLifetime: d.jwt_cache_max_lifetime,
394
+ openapiMode: d.openapi_mode,
395
+ serverCorsAllowedOrigins: d.server_cors_allowed_origins,
396
+ serverTimingEnabled: d.server_timing_enabled
397
+ }));
398
+ const unmarshalDataApi_DataApiStatusSchema = z.object({
399
+ db_aggregates_enabled: z.boolean().optional(),
400
+ db_extra_search_path: z.array(z.string()).optional(),
401
+ db_max_rows: z.number().optional(),
402
+ db_schemas: z.array(z.string()).optional(),
403
+ jwt_role_claim_key: z.string().optional(),
404
+ jwt_cache_max_lifetime: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
405
+ openapi_mode: z.string().optional(),
406
+ server_cors_allowed_origins: z.array(z.string()).optional(),
407
+ server_timing_enabled: z.boolean().optional(),
408
+ url: z.string().optional(),
409
+ available_schemas: z.array(z.string()).optional()
410
+ }).transform((d) => ({
411
+ dbAggregatesEnabled: d.db_aggregates_enabled,
412
+ dbExtraSearchPath: d.db_extra_search_path,
413
+ dbMaxRows: d.db_max_rows,
414
+ dbSchemas: d.db_schemas,
415
+ jwtRoleClaimKey: d.jwt_role_claim_key,
416
+ jwtCacheMaxLifetime: d.jwt_cache_max_lifetime,
417
+ openapiMode: d.openapi_mode,
418
+ serverCorsAllowedOrigins: d.server_cors_allowed_origins,
419
+ serverTimingEnabled: d.server_timing_enabled,
420
+ url: d.url,
421
+ availableSchemas: d.available_schemas
422
+ }));
423
+ const unmarshalDataApiOperationMetadataSchema = z.object({});
424
+ const unmarshalDatabaseSchema = z.object({
425
+ name: z.string().optional(),
426
+ parent: z.string().optional(),
427
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
428
+ update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
429
+ spec: z.lazy(() => unmarshalDatabase_DatabaseSpecSchema).optional(),
430
+ status: z.lazy(() => unmarshalDatabase_DatabaseStatusSchema).optional(),
431
+ database_id: z.string().optional()
432
+ }).transform((d) => ({
433
+ name: d.name,
434
+ parent: d.parent,
435
+ createTime: d.create_time,
436
+ updateTime: d.update_time,
437
+ spec: d.spec,
438
+ status: d.status,
439
+ databaseId: d.database_id
440
+ }));
441
+ const unmarshalDatabase_DatabaseSpecSchema = z.object({
442
+ role: z.string().optional(),
443
+ postgres_database: z.string().optional()
444
+ }).transform((d) => ({
445
+ role: d.role,
446
+ postgresDatabase: d.postgres_database
447
+ }));
448
+ const unmarshalDatabase_DatabaseStatusSchema = z.object({
449
+ role: z.string().optional(),
450
+ postgres_database: z.string().optional(),
451
+ database_id: z.string().optional()
452
+ }).transform((d) => ({
453
+ role: d.role,
454
+ postgresDatabase: d.postgres_database,
455
+ databaseId: d.database_id
456
+ }));
457
+ const unmarshalDatabaseCredentialSchema = z.object({
458
+ token: z.string().optional(),
459
+ expire_time: z.string().transform((s) => Temporal.Instant.from(s)).optional()
460
+ }).transform((d) => ({
461
+ token: d.token,
462
+ expireTime: d.expire_time
463
+ }));
464
+ const unmarshalDatabaseOperationMetadataSchema = z.object({});
465
+ const unmarshalDeltaTableSyncInfoSchema = z.object({
466
+ delta_commit_version: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
467
+ delta_commit_time: z.string().transform((s) => Temporal.Instant.from(s)).optional()
468
+ }).transform((d) => ({
469
+ deltaCommitVersion: d.delta_commit_version,
470
+ deltaCommitTime: d.delta_commit_time
471
+ }));
472
+ const unmarshalEndpointSchema = z.object({
473
+ name: z.string().optional(),
474
+ uid: z.string().optional(),
475
+ parent: z.string().optional(),
476
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
477
+ update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
478
+ spec: z.lazy(() => unmarshalEndpointSpecSchema).optional(),
479
+ status: z.lazy(() => unmarshalEndpointStatusSchema).optional(),
480
+ endpoint_id: z.string().optional()
481
+ }).transform((d) => ({
482
+ name: d.name,
483
+ uid: d.uid,
484
+ parent: d.parent,
485
+ createTime: d.create_time,
486
+ updateTime: d.update_time,
487
+ spec: d.spec,
488
+ status: d.status,
489
+ endpointId: d.endpoint_id
490
+ }));
491
+ const unmarshalEndpointGroupSpecSchema = z.object({
492
+ min: z.number().optional(),
493
+ max: z.number().optional(),
494
+ enable_readable_secondaries: z.boolean().optional()
495
+ }).transform((d) => ({
496
+ min: d.min,
497
+ max: d.max,
498
+ enableReadableSecondaries: d.enable_readable_secondaries
499
+ }));
500
+ const unmarshalEndpointGroupStatusSchema = z.object({
501
+ min: z.number().optional(),
502
+ max: z.number().optional(),
503
+ enable_readable_secondaries: z.boolean().optional()
504
+ }).transform((d) => ({
505
+ min: d.min,
506
+ max: d.max,
507
+ enableReadableSecondaries: d.enable_readable_secondaries
508
+ }));
509
+ const unmarshalEndpointHostsSchema = z.object({
510
+ host: z.string().optional(),
511
+ read_only_host: z.string().optional(),
512
+ read_write_pooled_host: z.string().optional(),
513
+ read_only_pooled_host: z.string().optional()
514
+ }).transform((d) => ({
515
+ host: d.host,
516
+ readOnlyHost: d.read_only_host,
517
+ readWritePooledHost: d.read_write_pooled_host,
518
+ readOnlyPooledHost: d.read_only_pooled_host
519
+ }));
520
+ const unmarshalEndpointOperationMetadataSchema = z.object({});
521
+ const unmarshalEndpointSettingsSchema = z.object({ pg_settings: z.record(z.string(), z.string()).optional() }).transform((d) => ({ pgSettings: d.pg_settings }));
522
+ const unmarshalEndpointSpecSchema = z.object({
523
+ endpoint_type: z.string().optional(),
524
+ autoscaling_limit_min_cu: z.number().optional(),
525
+ autoscaling_limit_max_cu: z.number().optional(),
526
+ disabled: z.boolean().optional(),
527
+ suspend_timeout_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
528
+ no_suspension: z.boolean().optional(),
529
+ settings: z.lazy(() => unmarshalEndpointSettingsSchema).optional(),
530
+ group: z.lazy(() => unmarshalEndpointGroupSpecSchema).optional()
531
+ }).transform((d) => ({
532
+ endpointType: d.endpoint_type,
533
+ autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
534
+ autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
535
+ disabled: d.disabled,
536
+ suspension: d.suspend_timeout_duration !== void 0 ? {
537
+ $case: "suspendTimeoutDuration",
538
+ suspendTimeoutDuration: d.suspend_timeout_duration
539
+ } : d.no_suspension !== void 0 ? {
540
+ $case: "noSuspension",
541
+ noSuspension: d.no_suspension
542
+ } : void 0,
543
+ settings: d.settings,
544
+ group: d.group
545
+ }));
546
+ const unmarshalEndpointStatusSchema = z.object({
547
+ endpoint_type: z.string().optional(),
548
+ hosts: z.lazy(() => unmarshalEndpointHostsSchema).optional(),
549
+ last_active_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
550
+ autoscaling_limit_min_cu: z.number().optional(),
551
+ autoscaling_limit_max_cu: z.number().optional(),
552
+ current_state: z.string().optional(),
553
+ pending_state: z.string().optional(),
554
+ disabled: z.boolean().optional(),
555
+ suspend_timeout_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
556
+ settings: z.lazy(() => unmarshalEndpointSettingsSchema).optional(),
557
+ group: z.lazy(() => unmarshalEndpointGroupStatusSchema).optional(),
558
+ endpoint_id: z.string().optional()
559
+ }).transform((d) => ({
560
+ endpointType: d.endpoint_type,
561
+ hosts: d.hosts,
562
+ lastActiveTime: d.last_active_time,
563
+ autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
564
+ autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
565
+ currentState: d.current_state,
566
+ pendingState: d.pending_state,
567
+ disabled: d.disabled,
568
+ suspendTimeoutDuration: d.suspend_timeout_duration,
569
+ settings: d.settings,
570
+ group: d.group,
571
+ endpointId: d.endpoint_id
572
+ }));
573
+ const unmarshalInitialBranchSpecSchema = z.object({ is_protected: z.boolean().optional() }).transform((d) => ({ isProtected: d.is_protected }));
574
+ const unmarshalInitialEndpointSpecSchema = z.object({
575
+ group: z.lazy(() => unmarshalEndpointGroupSpecSchema).optional(),
576
+ autoscaling_limit_min_cu: z.number().optional(),
577
+ autoscaling_limit_max_cu: z.number().optional(),
578
+ suspend_timeout_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
579
+ no_suspension: z.boolean().optional()
580
+ }).transform((d) => ({
581
+ group: d.group,
582
+ autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
583
+ autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
584
+ suspension: d.suspend_timeout_duration !== void 0 ? {
585
+ $case: "suspendTimeoutDuration",
586
+ suspendTimeoutDuration: d.suspend_timeout_duration
587
+ } : d.no_suspension !== void 0 ? {
588
+ $case: "noSuspension",
589
+ noSuspension: d.no_suspension
590
+ } : void 0
591
+ }));
592
+ const unmarshalListBranchesResponseSchema = z.object({
593
+ branches: z.array(z.lazy(() => unmarshalBranchSchema)).optional(),
594
+ next_page_token: z.string().optional()
595
+ }).transform((d) => ({
596
+ branches: d.branches,
597
+ nextPageToken: d.next_page_token
598
+ }));
599
+ const unmarshalListCdfConfigsResponseSchema = z.object({
600
+ cdf_configs: z.array(z.lazy(() => unmarshalCdfConfigSchema)).optional(),
601
+ next_page_token: z.string().optional()
602
+ }).transform((d) => ({
603
+ cdfConfigs: d.cdf_configs,
604
+ nextPageToken: d.next_page_token
605
+ }));
606
+ const unmarshalListCdfStatusesResponseSchema = z.object({
607
+ cdf_statuses: z.array(z.lazy(() => unmarshalCdfStatusSchema)).optional(),
608
+ next_page_token: z.string().optional()
609
+ }).transform((d) => ({
610
+ cdfStatuses: d.cdf_statuses,
611
+ nextPageToken: d.next_page_token
612
+ }));
613
+ const unmarshalListDatabasesResponseSchema = z.object({
614
+ databases: z.array(z.lazy(() => unmarshalDatabaseSchema)).optional(),
615
+ next_page_token: z.string().optional()
616
+ }).transform((d) => ({
617
+ databases: d.databases,
618
+ nextPageToken: d.next_page_token
619
+ }));
620
+ const unmarshalListEndpointsResponseSchema = z.object({
621
+ endpoints: z.array(z.lazy(() => unmarshalEndpointSchema)).optional(),
622
+ next_page_token: z.string().optional()
623
+ }).transform((d) => ({
624
+ endpoints: d.endpoints,
625
+ nextPageToken: d.next_page_token
626
+ }));
627
+ const unmarshalListProjectsResponseSchema = z.object({
628
+ projects: z.array(z.lazy(() => unmarshalProjectSchema)).optional(),
629
+ next_page_token: z.string().optional()
630
+ }).transform((d) => ({
631
+ projects: d.projects,
632
+ nextPageToken: d.next_page_token
633
+ }));
634
+ const unmarshalListRolesResponseSchema = z.object({
635
+ roles: z.array(z.lazy(() => unmarshalRoleSchema)).optional(),
636
+ next_page_token: z.string().optional()
637
+ }).transform((d) => ({
638
+ roles: d.roles,
639
+ nextPageToken: d.next_page_token
640
+ }));
641
+ const unmarshalNewPipelineSpecSchema = z.object({
642
+ storage_catalog: z.string().optional(),
643
+ storage_schema: z.string().optional(),
644
+ budget_policy_id: z.string().optional()
645
+ }).transform((d) => ({
646
+ storageCatalog: d.storage_catalog,
647
+ storageSchema: d.storage_schema,
648
+ budgetPolicyId: d.budget_policy_id
649
+ }));
650
+ const unmarshalOperationSchema = z.object({
651
+ name: z.string().optional(),
652
+ metadata: z.record(z.string(), z.unknown()).optional(),
653
+ done: z.boolean().optional(),
654
+ error: z.lazy(() => unmarshalApiErrorSchema).optional(),
655
+ response: z.record(z.string(), z.unknown()).optional()
656
+ }).transform((d) => ({
657
+ name: d.name,
658
+ metadata: d.metadata,
659
+ done: d.done,
660
+ result: d.error !== void 0 ? {
661
+ $case: "error",
662
+ error: d.error
663
+ } : d.response !== void 0 ? {
664
+ $case: "response",
665
+ response: d.response
666
+ } : void 0
667
+ }));
668
+ const unmarshalProjectSchema = z.object({
669
+ name: z.string().optional(),
670
+ uid: z.string().optional(),
671
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
672
+ update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
673
+ spec: z.lazy(() => unmarshalProjectSpecSchema).optional(),
674
+ status: z.lazy(() => unmarshalProjectStatusSchema).optional(),
675
+ initial_endpoint_spec: z.lazy(() => unmarshalInitialEndpointSpecSchema).optional(),
676
+ delete_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
677
+ purge_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
678
+ initial_branch_spec: z.lazy(() => unmarshalInitialBranchSpecSchema).optional(),
679
+ project_id: z.string().optional()
680
+ }).transform((d) => ({
681
+ name: d.name,
682
+ uid: d.uid,
683
+ createTime: d.create_time,
684
+ updateTime: d.update_time,
685
+ spec: d.spec,
686
+ status: d.status,
687
+ initialEndpointSpec: d.initial_endpoint_spec,
688
+ deleteTime: d.delete_time,
689
+ purgeTime: d.purge_time,
690
+ initialBranchSpec: d.initial_branch_spec,
691
+ projectId: d.project_id
692
+ }));
693
+ const unmarshalProjectCustomTagSchema = z.object({
694
+ key: z.string().optional(),
695
+ value: z.string().optional()
696
+ }).transform((d) => ({
697
+ key: d.key,
698
+ value: d.value
699
+ }));
700
+ const unmarshalProjectDefaultEndpointSettingsSchema = z.object({
701
+ autoscaling_limit_min_cu: z.number().optional(),
702
+ autoscaling_limit_max_cu: z.number().optional(),
703
+ suspend_timeout_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
704
+ no_suspension: z.boolean().optional(),
705
+ pg_settings: z.record(z.string(), z.string()).optional()
706
+ }).transform((d) => ({
707
+ autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
708
+ autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
709
+ suspension: d.suspend_timeout_duration !== void 0 ? {
710
+ $case: "suspendTimeoutDuration",
711
+ suspendTimeoutDuration: d.suspend_timeout_duration
712
+ } : d.no_suspension !== void 0 ? {
713
+ $case: "noSuspension",
714
+ noSuspension: d.no_suspension
715
+ } : void 0,
716
+ pgSettings: d.pg_settings
717
+ }));
718
+ const unmarshalProjectOperationMetadataSchema = z.object({});
719
+ const unmarshalProjectSpecSchema = z.object({
720
+ display_name: z.string().optional(),
721
+ pg_version: z.number().optional(),
722
+ history_retention_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
723
+ default_endpoint_settings: z.lazy(() => unmarshalProjectDefaultEndpointSettingsSchema).optional(),
724
+ budget_policy_id: z.string().optional(),
725
+ custom_tags: z.array(z.lazy(() => unmarshalProjectCustomTagSchema)).optional(),
726
+ enable_pg_native_login: z.boolean().optional(),
727
+ default_branch: z.string().optional()
728
+ }).transform((d) => ({
729
+ displayName: d.display_name,
730
+ pgVersion: d.pg_version,
731
+ historyRetentionDuration: d.history_retention_duration,
732
+ defaultEndpointSettings: d.default_endpoint_settings,
733
+ budgetPolicyId: d.budget_policy_id,
734
+ customTags: d.custom_tags,
735
+ enablePgNativeLogin: d.enable_pg_native_login,
736
+ defaultBranch: d.default_branch
737
+ }));
738
+ const unmarshalProjectStatusSchema = z.object({
739
+ display_name: z.string().optional(),
740
+ pg_version: z.number().optional(),
741
+ history_retention_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
742
+ default_endpoint_settings: z.lazy(() => unmarshalProjectDefaultEndpointSettingsSchema).optional(),
743
+ branch_logical_size_limit_bytes: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
744
+ synthetic_storage_size_bytes: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
745
+ compute_last_active_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
746
+ budget_policy_id: z.string().optional(),
747
+ custom_tags: z.array(z.lazy(() => unmarshalProjectCustomTagSchema)).optional(),
748
+ owner: z.string().optional(),
749
+ enable_pg_native_login: z.boolean().optional(),
750
+ default_branch: z.string().optional(),
751
+ project_id: z.string().optional()
752
+ }).transform((d) => ({
753
+ displayName: d.display_name,
754
+ pgVersion: d.pg_version,
755
+ historyRetentionDuration: d.history_retention_duration,
756
+ defaultEndpointSettings: d.default_endpoint_settings,
757
+ branchLogicalSizeLimitBytes: d.branch_logical_size_limit_bytes,
758
+ syntheticStorageSizeBytes: d.synthetic_storage_size_bytes,
759
+ computeLastActiveTime: d.compute_last_active_time,
760
+ budgetPolicyId: d.budget_policy_id,
761
+ customTags: d.custom_tags,
762
+ owner: d.owner,
763
+ enablePgNativeLogin: d.enable_pg_native_login,
764
+ defaultBranch: d.default_branch,
765
+ projectId: d.project_id
766
+ }));
767
+ const unmarshalRoleSchema = z.object({
768
+ name: z.string().optional(),
769
+ parent: z.string().optional(),
770
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
771
+ update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
772
+ spec: z.lazy(() => unmarshalRole_RoleSpecSchema).optional(),
773
+ status: z.lazy(() => unmarshalRole_RoleStatusSchema).optional(),
774
+ role_id: z.string().optional()
775
+ }).transform((d) => ({
776
+ name: d.name,
777
+ parent: d.parent,
778
+ createTime: d.create_time,
779
+ updateTime: d.update_time,
780
+ spec: d.spec,
781
+ status: d.status,
782
+ roleId: d.role_id
783
+ }));
784
+ const unmarshalRole_AttributesSchema = z.object({
785
+ createdb: z.boolean().optional(),
786
+ createrole: z.boolean().optional(),
787
+ bypassrls: z.boolean().optional()
788
+ }).transform((d) => ({
789
+ createdb: d.createdb,
790
+ createrole: d.createrole,
791
+ bypassrls: d.bypassrls
792
+ }));
793
+ const unmarshalRole_RoleSpecSchema = z.object({
794
+ membership_roles: z.array(z.string()).optional(),
795
+ identity_type: z.string().optional(),
796
+ attributes: z.lazy(() => unmarshalRole_AttributesSchema).optional(),
797
+ auth_method: z.string().optional(),
798
+ postgres_role: z.string().optional()
799
+ }).transform((d) => ({
800
+ membershipRoles: d.membership_roles,
801
+ identityType: d.identity_type,
802
+ attributes: d.attributes,
803
+ authMethod: d.auth_method,
804
+ postgresRole: d.postgres_role
805
+ }));
806
+ const unmarshalRole_RoleStatusSchema = z.object({
807
+ membership_roles: z.array(z.string()).optional(),
808
+ identity_type: z.string().optional(),
809
+ attributes: z.lazy(() => unmarshalRole_AttributesSchema).optional(),
810
+ auth_method: z.string().optional(),
811
+ postgres_role: z.string().optional(),
812
+ role_id: z.string().optional()
813
+ }).transform((d) => ({
814
+ membershipRoles: d.membership_roles,
815
+ identityType: d.identity_type,
816
+ attributes: d.attributes,
817
+ authMethod: d.auth_method,
818
+ postgresRole: d.postgres_role,
819
+ roleId: d.role_id
820
+ }));
821
+ const unmarshalRoleOperationMetadataSchema = z.object({});
822
+ const unmarshalSyncedTableSchema = z.object({
823
+ name: z.string().optional(),
824
+ uid: z.string().optional(),
825
+ spec: z.lazy(() => unmarshalSyncedTable_SyncedTableSpecSchema).optional(),
826
+ status: z.lazy(() => unmarshalSyncedTable_SyncedTableStatusSchema).optional(),
827
+ create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
828
+ synced_table_id: z.string().optional()
829
+ }).transform((d) => ({
830
+ name: d.name,
831
+ uid: d.uid,
832
+ spec: d.spec,
833
+ status: d.status,
834
+ createTime: d.create_time,
835
+ syncedTableId: d.synced_table_id
836
+ }));
837
+ const unmarshalSyncedTable_SyncedTableSpecSchema = z.object({
838
+ postgres_database: z.string().optional(),
839
+ branch: z.string().optional(),
840
+ scheduling_policy: z.string().optional(),
841
+ source_table_full_name: z.string().optional(),
842
+ primary_key_columns: z.array(z.string()).optional(),
843
+ timeseries_key: z.string().optional(),
844
+ existing_pipeline_id: z.string().optional(),
845
+ create_database_objects_if_missing: z.boolean().optional(),
846
+ new_pipeline_spec: z.lazy(() => unmarshalNewPipelineSpecSchema).optional(),
847
+ accelerated_sync: z.boolean().optional(),
848
+ type_overrides: z.array(z.lazy(() => unmarshalSyncedTable_SyncedTableSpec_TypeOverrideSchema)).optional(),
849
+ extra_columns: z.array(z.lazy(() => unmarshalSyncedTable_SyncedTableSpec_ExtraColumnSchema)).optional()
850
+ }).transform((d) => ({
851
+ postgresDatabase: d.postgres_database,
852
+ branch: d.branch,
853
+ schedulingPolicy: d.scheduling_policy,
854
+ sourceTableFullName: d.source_table_full_name,
855
+ primaryKeyColumns: d.primary_key_columns,
856
+ timeseriesKey: d.timeseries_key,
857
+ existingPipelineId: d.existing_pipeline_id,
858
+ createDatabaseObjectsIfMissing: d.create_database_objects_if_missing,
859
+ newPipelineSpec: d.new_pipeline_spec,
860
+ acceleratedSync: d.accelerated_sync,
861
+ typeOverrides: d.type_overrides,
862
+ extraColumns: d.extra_columns
863
+ }));
864
+ const unmarshalSyncedTable_SyncedTableSpec_ExtraColumnSchema = z.object({
865
+ column_name: z.string().optional(),
866
+ column_type: z.string().optional(),
867
+ maintenance: z.string().optional(),
868
+ compute: z.string().optional()
869
+ }).transform((d) => ({
870
+ columnName: d.column_name,
871
+ columnType: d.column_type,
872
+ maintenance: d.maintenance,
873
+ compute: d.compute
874
+ }));
875
+ const unmarshalSyncedTable_SyncedTableSpec_TypeOverrideSchema = z.object({
876
+ column_name: z.string().optional(),
877
+ pg_type: z.string().optional(),
878
+ size: z.number().optional()
879
+ }).transform((d) => ({
880
+ columnName: d.column_name,
881
+ pgType: d.pg_type,
882
+ size: d.size
883
+ }));
884
+ const unmarshalSyncedTable_SyncedTableStatusSchema = z.object({
885
+ message: z.string().optional(),
886
+ detailed_state: z.string().optional(),
887
+ last_sync: z.lazy(() => unmarshalSyncedTablePositionSchema).optional(),
888
+ ongoing_sync_progress: z.lazy(() => unmarshalSyncedTablePipelineProgressSchema).optional(),
889
+ provisioning_phase: z.string().optional(),
890
+ last_processed_commit_version: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
891
+ last_sync_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
892
+ pipeline_id: z.string().optional(),
893
+ unity_catalog_provisioning_state: z.string().optional(),
894
+ project: z.string().optional()
895
+ }).transform((d) => ({
896
+ message: d.message,
897
+ detailedState: d.detailed_state,
898
+ lastSync: d.last_sync,
899
+ ongoingSyncProgress: d.ongoing_sync_progress,
900
+ provisioningPhase: d.provisioning_phase,
901
+ lastProcessedCommitVersion: d.last_processed_commit_version,
902
+ lastSyncTime: d.last_sync_time,
903
+ pipelineId: d.pipeline_id,
904
+ unityCatalogProvisioningState: d.unity_catalog_provisioning_state,
905
+ project: d.project
906
+ }));
907
+ const unmarshalSyncedTableOperationMetadataSchema = z.object({});
908
+ const unmarshalSyncedTablePipelineProgressSchema = z.object({
909
+ latest_version_currently_processing: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
910
+ synced_row_count: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
911
+ total_row_count: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
912
+ sync_progress_completion: z.number().optional(),
913
+ estimated_completion_time_seconds: z.number().optional()
914
+ }).transform((d) => ({
915
+ latestVersionCurrentlyProcessing: d.latest_version_currently_processing,
916
+ syncedRowCount: d.synced_row_count,
917
+ totalRowCount: d.total_row_count,
918
+ syncProgressCompletion: d.sync_progress_completion,
919
+ estimatedCompletionTimeSeconds: d.estimated_completion_time_seconds
920
+ }));
921
+ const unmarshalSyncedTablePositionSchema = z.object({
922
+ sync_start_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
923
+ sync_end_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
924
+ delta_table_sync_info: z.lazy(() => unmarshalDeltaTableSyncInfoSchema).optional()
925
+ }).transform((d) => ({
926
+ syncStartTime: d.sync_start_time,
927
+ syncEndTime: d.sync_end_time,
928
+ sourceSyncInfo: d.delta_table_sync_info !== void 0 ? {
929
+ $case: "deltaTableSyncInfo",
930
+ deltaTableSyncInfo: d.delta_table_sync_info
931
+ } : void 0
932
+ }));
933
+ const marshalBranchSchema = z.object({
934
+ name: z.string().optional(),
935
+ uid: z.string().optional(),
936
+ parent: z.string().optional(),
937
+ createTime: z.any().transform((d) => d.toString()).optional(),
938
+ updateTime: z.any().transform((d) => d.toString()).optional(),
939
+ spec: z.lazy(() => marshalBranchSpecSchema).optional(),
940
+ status: z.lazy(() => marshalBranchStatusSchema).optional(),
941
+ branchId: z.string().optional()
942
+ }).transform((d) => ({
943
+ name: d.name,
944
+ uid: d.uid,
945
+ parent: d.parent,
946
+ create_time: d.createTime,
947
+ update_time: d.updateTime,
948
+ spec: d.spec,
949
+ status: d.status,
950
+ branch_id: d.branchId
951
+ }));
952
+ const marshalBranchSpecSchema = z.object({
953
+ sourceBranch: z.string().optional(),
954
+ sourceBranchLsn: z.string().optional(),
955
+ sourceBranchTime: z.any().transform((d) => d.toString()).optional(),
956
+ isProtected: z.boolean().optional(),
957
+ expiration: z.discriminatedUnion("$case", [
958
+ z.object({
959
+ $case: z.literal("expireTime"),
960
+ expireTime: z.any().transform((d) => d.toString())
961
+ }),
962
+ z.object({
963
+ $case: z.literal("ttl"),
964
+ ttl: z.any().transform((d) => d.toString().slice(2).toLowerCase())
965
+ }),
966
+ z.object({
967
+ $case: z.literal("noExpiry"),
968
+ noExpiry: z.boolean()
969
+ })
970
+ ]).optional()
971
+ }).transform((d) => ({
972
+ source_branch: d.sourceBranch,
973
+ source_branch_lsn: d.sourceBranchLsn,
974
+ source_branch_time: d.sourceBranchTime,
975
+ is_protected: d.isProtected,
976
+ ...d.expiration?.$case === "expireTime" && { expire_time: d.expiration.expireTime },
977
+ ...d.expiration?.$case === "ttl" && { ttl: d.expiration.ttl },
978
+ ...d.expiration?.$case === "noExpiry" && { no_expiry: d.expiration.noExpiry }
979
+ }));
980
+ const marshalBranchStatusSchema = z.object({
981
+ sourceBranch: z.string().optional(),
982
+ sourceBranchLsn: z.string().optional(),
983
+ sourceBranchTime: z.any().transform((d) => d.toString()).optional(),
984
+ default: z.boolean().optional(),
985
+ isProtected: z.boolean().optional(),
986
+ currentState: z.string().optional(),
987
+ pendingState: z.string().optional(),
988
+ stateChangeTime: z.any().transform((d) => d.toString()).optional(),
989
+ logicalSizeBytes: z.bigint().optional(),
990
+ expireTime: z.any().transform((d) => d.toString()).optional(),
991
+ branchId: z.string().optional(),
992
+ deleteTime: z.any().transform((d) => d.toString()).optional(),
993
+ purgeTime: z.any().transform((d) => d.toString()).optional()
994
+ }).transform((d) => ({
995
+ source_branch: d.sourceBranch,
996
+ source_branch_lsn: d.sourceBranchLsn,
997
+ source_branch_time: d.sourceBranchTime,
998
+ default: d.default,
999
+ is_protected: d.isProtected,
1000
+ current_state: d.currentState,
1001
+ pending_state: d.pendingState,
1002
+ state_change_time: d.stateChangeTime,
1003
+ logical_size_bytes: d.logicalSizeBytes,
1004
+ expire_time: d.expireTime,
1005
+ branch_id: d.branchId,
1006
+ delete_time: d.deleteTime,
1007
+ purge_time: d.purgeTime
1008
+ }));
1009
+ const marshalCatalogSchema = z.object({
1010
+ name: z.string().optional(),
1011
+ uid: z.string().optional(),
1012
+ spec: z.lazy(() => marshalCatalog_CatalogSpecSchema).optional(),
1013
+ status: z.lazy(() => marshalCatalog_CatalogStatusSchema).optional(),
1014
+ createTime: z.any().transform((d) => d.toString()).optional(),
1015
+ updateTime: z.any().transform((d) => d.toString()).optional(),
1016
+ catalogId: z.string().optional()
1017
+ }).transform((d) => ({
1018
+ name: d.name,
1019
+ uid: d.uid,
1020
+ spec: d.spec,
1021
+ status: d.status,
1022
+ create_time: d.createTime,
1023
+ update_time: d.updateTime,
1024
+ catalog_id: d.catalogId
1025
+ }));
1026
+ const marshalCatalog_CatalogSpecSchema = z.object({
1027
+ postgresDatabase: z.string().optional(),
1028
+ createDatabaseIfMissing: z.boolean().optional(),
1029
+ branch: z.string().optional()
1030
+ }).transform((d) => ({
1031
+ postgres_database: d.postgresDatabase,
1032
+ create_database_if_missing: d.createDatabaseIfMissing,
1033
+ branch: d.branch
1034
+ }));
1035
+ const marshalCatalog_CatalogStatusSchema = z.object({
1036
+ postgresDatabase: z.string().optional(),
1037
+ project: z.string().optional(),
1038
+ branch: z.string().optional()
1039
+ }).transform((d) => ({
1040
+ postgres_database: d.postgresDatabase,
1041
+ project: d.project,
1042
+ branch: d.branch
1043
+ }));
1044
+ const marshalCdfConfigSchema = z.object({
1045
+ name: z.string().optional(),
1046
+ catalog: z.string().optional(),
1047
+ schema: z.string().optional(),
1048
+ createTime: z.any().transform((d) => d.toString()).optional(),
1049
+ cdfConfigId: z.string().optional(),
1050
+ postgresSchema: z.string().optional()
1051
+ }).transform((d) => ({
1052
+ name: d.name,
1053
+ catalog: d.catalog,
1054
+ schema: d.schema,
1055
+ create_time: d.createTime,
1056
+ cdf_config_id: d.cdfConfigId,
1057
+ postgres_schema: d.postgresSchema
1058
+ }));
1059
+ const marshalDataApiSchema = z.object({
1060
+ name: z.string().optional(),
1061
+ parent: z.string().optional(),
1062
+ createTime: z.any().transform((d) => d.toString()).optional(),
1063
+ updateTime: z.any().transform((d) => d.toString()).optional(),
1064
+ spec: z.lazy(() => marshalDataApi_DataApiSpecSchema).optional(),
1065
+ status: z.lazy(() => marshalDataApi_DataApiStatusSchema).optional()
1066
+ }).transform((d) => ({
1067
+ name: d.name,
1068
+ parent: d.parent,
1069
+ create_time: d.createTime,
1070
+ update_time: d.updateTime,
1071
+ spec: d.spec,
1072
+ status: d.status
1073
+ }));
1074
+ const marshalDataApi_DataApiSpecSchema = z.object({
1075
+ dbAggregatesEnabled: z.boolean().optional(),
1076
+ dbExtraSearchPath: z.array(z.string()).optional(),
1077
+ dbMaxRows: z.number().optional(),
1078
+ dbSchemas: z.array(z.string()).optional(),
1079
+ jwtRoleClaimKey: z.string().optional(),
1080
+ jwtCacheMaxLifetime: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
1081
+ openapiMode: z.string().optional(),
1082
+ serverCorsAllowedOrigins: z.array(z.string()).optional(),
1083
+ serverTimingEnabled: z.boolean().optional()
1084
+ }).transform((d) => ({
1085
+ db_aggregates_enabled: d.dbAggregatesEnabled,
1086
+ db_extra_search_path: d.dbExtraSearchPath,
1087
+ db_max_rows: d.dbMaxRows,
1088
+ db_schemas: d.dbSchemas,
1089
+ jwt_role_claim_key: d.jwtRoleClaimKey,
1090
+ jwt_cache_max_lifetime: d.jwtCacheMaxLifetime,
1091
+ openapi_mode: d.openapiMode,
1092
+ server_cors_allowed_origins: d.serverCorsAllowedOrigins,
1093
+ server_timing_enabled: d.serverTimingEnabled
1094
+ }));
1095
+ const marshalDataApi_DataApiStatusSchema = z.object({
1096
+ dbAggregatesEnabled: z.boolean().optional(),
1097
+ dbExtraSearchPath: z.array(z.string()).optional(),
1098
+ dbMaxRows: z.number().optional(),
1099
+ dbSchemas: z.array(z.string()).optional(),
1100
+ jwtRoleClaimKey: z.string().optional(),
1101
+ jwtCacheMaxLifetime: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
1102
+ openapiMode: z.string().optional(),
1103
+ serverCorsAllowedOrigins: z.array(z.string()).optional(),
1104
+ serverTimingEnabled: z.boolean().optional(),
1105
+ url: z.string().optional(),
1106
+ availableSchemas: z.array(z.string()).optional()
1107
+ }).transform((d) => ({
1108
+ db_aggregates_enabled: d.dbAggregatesEnabled,
1109
+ db_extra_search_path: d.dbExtraSearchPath,
1110
+ db_max_rows: d.dbMaxRows,
1111
+ db_schemas: d.dbSchemas,
1112
+ jwt_role_claim_key: d.jwtRoleClaimKey,
1113
+ jwt_cache_max_lifetime: d.jwtCacheMaxLifetime,
1114
+ openapi_mode: d.openapiMode,
1115
+ server_cors_allowed_origins: d.serverCorsAllowedOrigins,
1116
+ server_timing_enabled: d.serverTimingEnabled,
1117
+ url: d.url,
1118
+ available_schemas: d.availableSchemas
1119
+ }));
1120
+ const marshalDatabaseSchema = z.object({
1121
+ name: z.string().optional(),
1122
+ parent: z.string().optional(),
1123
+ createTime: z.any().transform((d) => d.toString()).optional(),
1124
+ updateTime: z.any().transform((d) => d.toString()).optional(),
1125
+ spec: z.lazy(() => marshalDatabase_DatabaseSpecSchema).optional(),
1126
+ status: z.lazy(() => marshalDatabase_DatabaseStatusSchema).optional(),
1127
+ databaseId: z.string().optional()
1128
+ }).transform((d) => ({
1129
+ name: d.name,
1130
+ parent: d.parent,
1131
+ create_time: d.createTime,
1132
+ update_time: d.updateTime,
1133
+ spec: d.spec,
1134
+ status: d.status,
1135
+ database_id: d.databaseId
1136
+ }));
1137
+ const marshalDatabase_DatabaseSpecSchema = z.object({
1138
+ role: z.string().optional(),
1139
+ postgresDatabase: z.string().optional()
1140
+ }).transform((d) => ({
1141
+ role: d.role,
1142
+ postgres_database: d.postgresDatabase
1143
+ }));
1144
+ const marshalDatabase_DatabaseStatusSchema = z.object({
1145
+ role: z.string().optional(),
1146
+ postgresDatabase: z.string().optional(),
1147
+ databaseId: z.string().optional()
1148
+ }).transform((d) => ({
1149
+ role: d.role,
1150
+ postgres_database: d.postgresDatabase,
1151
+ database_id: d.databaseId
1152
+ }));
1153
+ const marshalDeltaTableSyncInfoSchema = z.object({
1154
+ deltaCommitVersion: z.bigint().optional(),
1155
+ deltaCommitTime: z.any().transform((d) => d.toString()).optional()
1156
+ }).transform((d) => ({
1157
+ delta_commit_version: d.deltaCommitVersion,
1158
+ delta_commit_time: d.deltaCommitTime
1159
+ }));
1160
+ const marshalEndpointSchema = z.object({
1161
+ name: z.string().optional(),
1162
+ uid: z.string().optional(),
1163
+ parent: z.string().optional(),
1164
+ createTime: z.any().transform((d) => d.toString()).optional(),
1165
+ updateTime: z.any().transform((d) => d.toString()).optional(),
1166
+ spec: z.lazy(() => marshalEndpointSpecSchema).optional(),
1167
+ status: z.lazy(() => marshalEndpointStatusSchema).optional(),
1168
+ endpointId: z.string().optional()
1169
+ }).transform((d) => ({
1170
+ name: d.name,
1171
+ uid: d.uid,
1172
+ parent: d.parent,
1173
+ create_time: d.createTime,
1174
+ update_time: d.updateTime,
1175
+ spec: d.spec,
1176
+ status: d.status,
1177
+ endpoint_id: d.endpointId
1178
+ }));
1179
+ const marshalEndpointGroupSpecSchema = z.object({
1180
+ min: z.number().optional(),
1181
+ max: z.number().optional(),
1182
+ enableReadableSecondaries: z.boolean().optional()
1183
+ }).transform((d) => ({
1184
+ min: d.min,
1185
+ max: d.max,
1186
+ enable_readable_secondaries: d.enableReadableSecondaries
1187
+ }));
1188
+ const marshalEndpointGroupStatusSchema = z.object({
1189
+ min: z.number().optional(),
1190
+ max: z.number().optional(),
1191
+ enableReadableSecondaries: z.boolean().optional()
1192
+ }).transform((d) => ({
1193
+ min: d.min,
1194
+ max: d.max,
1195
+ enable_readable_secondaries: d.enableReadableSecondaries
1196
+ }));
1197
+ const marshalEndpointHostsSchema = z.object({
1198
+ host: z.string().optional(),
1199
+ readOnlyHost: z.string().optional(),
1200
+ readWritePooledHost: z.string().optional(),
1201
+ readOnlyPooledHost: z.string().optional()
1202
+ }).transform((d) => ({
1203
+ host: d.host,
1204
+ read_only_host: d.readOnlyHost,
1205
+ read_write_pooled_host: d.readWritePooledHost,
1206
+ read_only_pooled_host: d.readOnlyPooledHost
1207
+ }));
1208
+ const marshalEndpointSettingsSchema = z.object({ pgSettings: z.record(z.string(), z.string()).optional() }).transform((d) => ({ pg_settings: d.pgSettings }));
1209
+ const marshalEndpointSpecSchema = z.object({
1210
+ endpointType: z.string().optional(),
1211
+ autoscalingLimitMinCu: z.number().optional(),
1212
+ autoscalingLimitMaxCu: z.number().optional(),
1213
+ disabled: z.boolean().optional(),
1214
+ suspension: z.discriminatedUnion("$case", [z.object({
1215
+ $case: z.literal("suspendTimeoutDuration"),
1216
+ suspendTimeoutDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase())
1217
+ }), z.object({
1218
+ $case: z.literal("noSuspension"),
1219
+ noSuspension: z.boolean()
1220
+ })]).optional(),
1221
+ settings: z.lazy(() => marshalEndpointSettingsSchema).optional(),
1222
+ group: z.lazy(() => marshalEndpointGroupSpecSchema).optional()
1223
+ }).transform((d) => ({
1224
+ endpoint_type: d.endpointType,
1225
+ autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
1226
+ autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
1227
+ disabled: d.disabled,
1228
+ ...d.suspension?.$case === "suspendTimeoutDuration" && { suspend_timeout_duration: d.suspension.suspendTimeoutDuration },
1229
+ ...d.suspension?.$case === "noSuspension" && { no_suspension: d.suspension.noSuspension },
1230
+ settings: d.settings,
1231
+ group: d.group
1232
+ }));
1233
+ const marshalEndpointStatusSchema = z.object({
1234
+ endpointType: z.string().optional(),
1235
+ hosts: z.lazy(() => marshalEndpointHostsSchema).optional(),
1236
+ lastActiveTime: z.any().transform((d) => d.toString()).optional(),
1237
+ autoscalingLimitMinCu: z.number().optional(),
1238
+ autoscalingLimitMaxCu: z.number().optional(),
1239
+ currentState: z.string().optional(),
1240
+ pendingState: z.string().optional(),
1241
+ disabled: z.boolean().optional(),
1242
+ suspendTimeoutDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
1243
+ settings: z.lazy(() => marshalEndpointSettingsSchema).optional(),
1244
+ group: z.lazy(() => marshalEndpointGroupStatusSchema).optional(),
1245
+ endpointId: z.string().optional()
1246
+ }).transform((d) => ({
1247
+ endpoint_type: d.endpointType,
1248
+ hosts: d.hosts,
1249
+ last_active_time: d.lastActiveTime,
1250
+ autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
1251
+ autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
1252
+ current_state: d.currentState,
1253
+ pending_state: d.pendingState,
1254
+ disabled: d.disabled,
1255
+ suspend_timeout_duration: d.suspendTimeoutDuration,
1256
+ settings: d.settings,
1257
+ group: d.group,
1258
+ endpoint_id: d.endpointId
1259
+ }));
1260
+ const marshalGenerateDatabaseCredentialRequestSchema = z.object({
1261
+ claims: z.array(z.lazy(() => marshalRequestedClaimsSchema)).optional(),
1262
+ endpoint: z.string().optional(),
1263
+ expiration: z.discriminatedUnion("$case", [z.object({
1264
+ $case: z.literal("ttl"),
1265
+ ttl: z.any().transform((d) => d.toString().slice(2).toLowerCase())
1266
+ }), z.object({
1267
+ $case: z.literal("expireTime"),
1268
+ expireTime: z.any().transform((d) => d.toString())
1269
+ })]).optional()
1270
+ }).transform((d) => ({
1271
+ claims: d.claims,
1272
+ endpoint: d.endpoint,
1273
+ ...d.expiration?.$case === "ttl" && { ttl: d.expiration.ttl },
1274
+ ...d.expiration?.$case === "expireTime" && { expire_time: d.expiration.expireTime }
1275
+ }));
1276
+ const marshalInitialBranchSpecSchema = z.object({ isProtected: z.boolean().optional() }).transform((d) => ({ is_protected: d.isProtected }));
1277
+ const marshalInitialEndpointSpecSchema = z.object({
1278
+ group: z.lazy(() => marshalEndpointGroupSpecSchema).optional(),
1279
+ autoscalingLimitMinCu: z.number().optional(),
1280
+ autoscalingLimitMaxCu: z.number().optional(),
1281
+ suspension: z.discriminatedUnion("$case", [z.object({
1282
+ $case: z.literal("suspendTimeoutDuration"),
1283
+ suspendTimeoutDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase())
1284
+ }), z.object({
1285
+ $case: z.literal("noSuspension"),
1286
+ noSuspension: z.boolean()
1287
+ })]).optional()
1288
+ }).transform((d) => ({
1289
+ group: d.group,
1290
+ autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
1291
+ autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
1292
+ ...d.suspension?.$case === "suspendTimeoutDuration" && { suspend_timeout_duration: d.suspension.suspendTimeoutDuration },
1293
+ ...d.suspension?.$case === "noSuspension" && { no_suspension: d.suspension.noSuspension }
1294
+ }));
1295
+ const marshalNewPipelineSpecSchema = z.object({
1296
+ storageCatalog: z.string().optional(),
1297
+ storageSchema: z.string().optional(),
1298
+ budgetPolicyId: z.string().optional()
1299
+ }).transform((d) => ({
1300
+ storage_catalog: d.storageCatalog,
1301
+ storage_schema: d.storageSchema,
1302
+ budget_policy_id: d.budgetPolicyId
1303
+ }));
1304
+ const marshalProjectSchema = z.object({
1305
+ name: z.string().optional(),
1306
+ uid: z.string().optional(),
1307
+ createTime: z.any().transform((d) => d.toString()).optional(),
1308
+ updateTime: z.any().transform((d) => d.toString()).optional(),
1309
+ spec: z.lazy(() => marshalProjectSpecSchema).optional(),
1310
+ status: z.lazy(() => marshalProjectStatusSchema).optional(),
1311
+ initialEndpointSpec: z.lazy(() => marshalInitialEndpointSpecSchema).optional(),
1312
+ deleteTime: z.any().transform((d) => d.toString()).optional(),
1313
+ purgeTime: z.any().transform((d) => d.toString()).optional(),
1314
+ initialBranchSpec: z.lazy(() => marshalInitialBranchSpecSchema).optional(),
1315
+ projectId: z.string().optional()
1316
+ }).transform((d) => ({
1317
+ name: d.name,
1318
+ uid: d.uid,
1319
+ create_time: d.createTime,
1320
+ update_time: d.updateTime,
1321
+ spec: d.spec,
1322
+ status: d.status,
1323
+ initial_endpoint_spec: d.initialEndpointSpec,
1324
+ delete_time: d.deleteTime,
1325
+ purge_time: d.purgeTime,
1326
+ initial_branch_spec: d.initialBranchSpec,
1327
+ project_id: d.projectId
1328
+ }));
1329
+ const marshalProjectCustomTagSchema = z.object({
1330
+ key: z.string().optional(),
1331
+ value: z.string().optional()
1332
+ }).transform((d) => ({
1333
+ key: d.key,
1334
+ value: d.value
1335
+ }));
1336
+ const marshalProjectDefaultEndpointSettingsSchema = z.object({
1337
+ autoscalingLimitMinCu: z.number().optional(),
1338
+ autoscalingLimitMaxCu: z.number().optional(),
1339
+ suspension: z.discriminatedUnion("$case", [z.object({
1340
+ $case: z.literal("suspendTimeoutDuration"),
1341
+ suspendTimeoutDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase())
1342
+ }), z.object({
1343
+ $case: z.literal("noSuspension"),
1344
+ noSuspension: z.boolean()
1345
+ })]).optional(),
1346
+ pgSettings: z.record(z.string(), z.string()).optional()
1347
+ }).transform((d) => ({
1348
+ autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
1349
+ autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
1350
+ ...d.suspension?.$case === "suspendTimeoutDuration" && { suspend_timeout_duration: d.suspension.suspendTimeoutDuration },
1351
+ ...d.suspension?.$case === "noSuspension" && { no_suspension: d.suspension.noSuspension },
1352
+ pg_settings: d.pgSettings
1353
+ }));
1354
+ const marshalProjectSpecSchema = z.object({
1355
+ displayName: z.string().optional(),
1356
+ pgVersion: z.number().optional(),
1357
+ historyRetentionDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
1358
+ defaultEndpointSettings: z.lazy(() => marshalProjectDefaultEndpointSettingsSchema).optional(),
1359
+ budgetPolicyId: z.string().optional(),
1360
+ customTags: z.array(z.lazy(() => marshalProjectCustomTagSchema)).optional(),
1361
+ enablePgNativeLogin: z.boolean().optional(),
1362
+ defaultBranch: z.string().optional()
1363
+ }).transform((d) => ({
1364
+ display_name: d.displayName,
1365
+ pg_version: d.pgVersion,
1366
+ history_retention_duration: d.historyRetentionDuration,
1367
+ default_endpoint_settings: d.defaultEndpointSettings,
1368
+ budget_policy_id: d.budgetPolicyId,
1369
+ custom_tags: d.customTags,
1370
+ enable_pg_native_login: d.enablePgNativeLogin,
1371
+ default_branch: d.defaultBranch
1372
+ }));
1373
+ const marshalProjectStatusSchema = z.object({
1374
+ displayName: z.string().optional(),
1375
+ pgVersion: z.number().optional(),
1376
+ historyRetentionDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
1377
+ defaultEndpointSettings: z.lazy(() => marshalProjectDefaultEndpointSettingsSchema).optional(),
1378
+ branchLogicalSizeLimitBytes: z.bigint().optional(),
1379
+ syntheticStorageSizeBytes: z.bigint().optional(),
1380
+ computeLastActiveTime: z.any().transform((d) => d.toString()).optional(),
1381
+ budgetPolicyId: z.string().optional(),
1382
+ customTags: z.array(z.lazy(() => marshalProjectCustomTagSchema)).optional(),
1383
+ owner: z.string().optional(),
1384
+ enablePgNativeLogin: z.boolean().optional(),
1385
+ defaultBranch: z.string().optional(),
1386
+ projectId: z.string().optional()
1387
+ }).transform((d) => ({
1388
+ display_name: d.displayName,
1389
+ pg_version: d.pgVersion,
1390
+ history_retention_duration: d.historyRetentionDuration,
1391
+ default_endpoint_settings: d.defaultEndpointSettings,
1392
+ branch_logical_size_limit_bytes: d.branchLogicalSizeLimitBytes,
1393
+ synthetic_storage_size_bytes: d.syntheticStorageSizeBytes,
1394
+ compute_last_active_time: d.computeLastActiveTime,
1395
+ budget_policy_id: d.budgetPolicyId,
1396
+ custom_tags: d.customTags,
1397
+ owner: d.owner,
1398
+ enable_pg_native_login: d.enablePgNativeLogin,
1399
+ default_branch: d.defaultBranch,
1400
+ project_id: d.projectId
1401
+ }));
1402
+ const marshalRequestedClaimsSchema = z.object({
1403
+ permissionSet: z.string().optional(),
1404
+ resources: z.array(z.lazy(() => marshalRequestedResourceSchema)).optional()
1405
+ }).transform((d) => ({
1406
+ permission_set: d.permissionSet,
1407
+ resources: d.resources
1408
+ }));
1409
+ const marshalRequestedResourceSchema = z.object({ resourceName: z.discriminatedUnion("$case", [z.object({
1410
+ $case: z.literal("tableName"),
1411
+ tableName: z.string()
1412
+ })]).optional() }).transform((d) => ({ ...d.resourceName?.$case === "tableName" && { table_name: d.resourceName.tableName } }));
1413
+ const marshalRoleSchema = z.object({
1414
+ name: z.string().optional(),
1415
+ parent: z.string().optional(),
1416
+ createTime: z.any().transform((d) => d.toString()).optional(),
1417
+ updateTime: z.any().transform((d) => d.toString()).optional(),
1418
+ spec: z.lazy(() => marshalRole_RoleSpecSchema).optional(),
1419
+ status: z.lazy(() => marshalRole_RoleStatusSchema).optional(),
1420
+ roleId: z.string().optional()
1421
+ }).transform((d) => ({
1422
+ name: d.name,
1423
+ parent: d.parent,
1424
+ create_time: d.createTime,
1425
+ update_time: d.updateTime,
1426
+ spec: d.spec,
1427
+ status: d.status,
1428
+ role_id: d.roleId
1429
+ }));
1430
+ const marshalRole_AttributesSchema = z.object({
1431
+ createdb: z.boolean().optional(),
1432
+ createrole: z.boolean().optional(),
1433
+ bypassrls: z.boolean().optional()
1434
+ }).transform((d) => ({
1435
+ createdb: d.createdb,
1436
+ createrole: d.createrole,
1437
+ bypassrls: d.bypassrls
1438
+ }));
1439
+ const marshalRole_RoleSpecSchema = z.object({
1440
+ membershipRoles: z.array(z.string()).optional(),
1441
+ identityType: z.string().optional(),
1442
+ attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
1443
+ authMethod: z.string().optional(),
1444
+ postgresRole: z.string().optional()
1445
+ }).transform((d) => ({
1446
+ membership_roles: d.membershipRoles,
1447
+ identity_type: d.identityType,
1448
+ attributes: d.attributes,
1449
+ auth_method: d.authMethod,
1450
+ postgres_role: d.postgresRole
1451
+ }));
1452
+ const marshalRole_RoleStatusSchema = z.object({
1453
+ membershipRoles: z.array(z.string()).optional(),
1454
+ identityType: z.string().optional(),
1455
+ attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
1456
+ authMethod: z.string().optional(),
1457
+ postgresRole: z.string().optional(),
1458
+ roleId: z.string().optional()
1459
+ }).transform((d) => ({
1460
+ membership_roles: d.membershipRoles,
1461
+ identity_type: d.identityType,
1462
+ attributes: d.attributes,
1463
+ auth_method: d.authMethod,
1464
+ postgres_role: d.postgresRole,
1465
+ role_id: d.roleId
1466
+ }));
1467
+ const marshalSyncedTableSchema = z.object({
1468
+ name: z.string().optional(),
1469
+ uid: z.string().optional(),
1470
+ spec: z.lazy(() => marshalSyncedTable_SyncedTableSpecSchema).optional(),
1471
+ status: z.lazy(() => marshalSyncedTable_SyncedTableStatusSchema).optional(),
1472
+ createTime: z.any().transform((d) => d.toString()).optional(),
1473
+ syncedTableId: z.string().optional()
1474
+ }).transform((d) => ({
1475
+ name: d.name,
1476
+ uid: d.uid,
1477
+ spec: d.spec,
1478
+ status: d.status,
1479
+ create_time: d.createTime,
1480
+ synced_table_id: d.syncedTableId
1481
+ }));
1482
+ const marshalSyncedTable_SyncedTableSpecSchema = z.object({
1483
+ postgresDatabase: z.string().optional(),
1484
+ branch: z.string().optional(),
1485
+ schedulingPolicy: z.string().optional(),
1486
+ sourceTableFullName: z.string().optional(),
1487
+ primaryKeyColumns: z.array(z.string()).optional(),
1488
+ timeseriesKey: z.string().optional(),
1489
+ existingPipelineId: z.string().optional(),
1490
+ createDatabaseObjectsIfMissing: z.boolean().optional(),
1491
+ newPipelineSpec: z.lazy(() => marshalNewPipelineSpecSchema).optional(),
1492
+ acceleratedSync: z.boolean().optional(),
1493
+ typeOverrides: z.array(z.lazy(() => marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema)).optional(),
1494
+ extraColumns: z.array(z.lazy(() => marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema)).optional()
1495
+ }).transform((d) => ({
1496
+ postgres_database: d.postgresDatabase,
1497
+ branch: d.branch,
1498
+ scheduling_policy: d.schedulingPolicy,
1499
+ source_table_full_name: d.sourceTableFullName,
1500
+ primary_key_columns: d.primaryKeyColumns,
1501
+ timeseries_key: d.timeseriesKey,
1502
+ existing_pipeline_id: d.existingPipelineId,
1503
+ create_database_objects_if_missing: d.createDatabaseObjectsIfMissing,
1504
+ new_pipeline_spec: d.newPipelineSpec,
1505
+ accelerated_sync: d.acceleratedSync,
1506
+ type_overrides: d.typeOverrides,
1507
+ extra_columns: d.extraColumns
1508
+ }));
1509
+ const marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema = z.object({
1510
+ columnName: z.string().optional(),
1511
+ columnType: z.string().optional(),
1512
+ maintenance: z.string().optional(),
1513
+ compute: z.string().optional()
1514
+ }).transform((d) => ({
1515
+ column_name: d.columnName,
1516
+ column_type: d.columnType,
1517
+ maintenance: d.maintenance,
1518
+ compute: d.compute
1519
+ }));
1520
+ const marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema = z.object({
1521
+ columnName: z.string().optional(),
1522
+ pgType: z.string().optional(),
1523
+ size: z.number().optional()
1524
+ }).transform((d) => ({
1525
+ column_name: d.columnName,
1526
+ pg_type: d.pgType,
1527
+ size: d.size
1528
+ }));
1529
+ const marshalSyncedTable_SyncedTableStatusSchema = z.object({
1530
+ message: z.string().optional(),
1531
+ detailedState: z.string().optional(),
1532
+ lastSync: z.lazy(() => marshalSyncedTablePositionSchema).optional(),
1533
+ ongoingSyncProgress: z.lazy(() => marshalSyncedTablePipelineProgressSchema).optional(),
1534
+ provisioningPhase: z.string().optional(),
1535
+ lastProcessedCommitVersion: z.bigint().optional(),
1536
+ lastSyncTime: z.any().transform((d) => d.toString()).optional(),
1537
+ pipelineId: z.string().optional(),
1538
+ unityCatalogProvisioningState: z.string().optional(),
1539
+ project: z.string().optional()
1540
+ }).transform((d) => ({
1541
+ message: d.message,
1542
+ detailed_state: d.detailedState,
1543
+ last_sync: d.lastSync,
1544
+ ongoing_sync_progress: d.ongoingSyncProgress,
1545
+ provisioning_phase: d.provisioningPhase,
1546
+ last_processed_commit_version: d.lastProcessedCommitVersion,
1547
+ last_sync_time: d.lastSyncTime,
1548
+ pipeline_id: d.pipelineId,
1549
+ unity_catalog_provisioning_state: d.unityCatalogProvisioningState,
1550
+ project: d.project
1551
+ }));
1552
+ const marshalSyncedTablePipelineProgressSchema = z.object({
1553
+ latestVersionCurrentlyProcessing: z.bigint().optional(),
1554
+ syncedRowCount: z.bigint().optional(),
1555
+ totalRowCount: z.bigint().optional(),
1556
+ syncProgressCompletion: z.number().optional(),
1557
+ estimatedCompletionTimeSeconds: z.number().optional()
1558
+ }).transform((d) => ({
1559
+ latest_version_currently_processing: d.latestVersionCurrentlyProcessing,
1560
+ synced_row_count: d.syncedRowCount,
1561
+ total_row_count: d.totalRowCount,
1562
+ sync_progress_completion: d.syncProgressCompletion,
1563
+ estimated_completion_time_seconds: d.estimatedCompletionTimeSeconds
1564
+ }));
1565
+ const marshalSyncedTablePositionSchema = z.object({
1566
+ syncStartTime: z.any().transform((d) => d.toString()).optional(),
1567
+ syncEndTime: z.any().transform((d) => d.toString()).optional(),
1568
+ sourceSyncInfo: z.discriminatedUnion("$case", [z.object({
1569
+ $case: z.literal("deltaTableSyncInfo"),
1570
+ deltaTableSyncInfo: z.lazy(() => marshalDeltaTableSyncInfoSchema)
1571
+ })]).optional()
1572
+ }).transform((d) => ({
1573
+ sync_start_time: d.syncStartTime,
1574
+ sync_end_time: d.syncEndTime,
1575
+ ...d.sourceSyncInfo?.$case === "deltaTableSyncInfo" && { delta_table_sync_info: d.sourceSyncInfo.deltaTableSyncInfo }
1576
+ }));
1577
+ const marshalUndeleteBranchRequestSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
1578
+ const marshalUndeleteProjectRequestSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
2691
1579
  const branchFieldMaskSchema = {
2692
- branchId: { wire: 'branch_id' },
2693
- createTime: { wire: 'create_time' },
2694
- name: { wire: 'name' },
2695
- parent: { wire: 'parent' },
2696
- spec: { wire: 'spec', children: () => branchSpecFieldMaskSchema },
2697
- status: { wire: 'status', children: () => branchStatusFieldMaskSchema },
2698
- uid: { wire: 'uid' },
2699
- updateTime: { wire: 'update_time' },
1580
+ branchId: { wire: "branch_id" },
1581
+ createTime: { wire: "create_time" },
1582
+ name: { wire: "name" },
1583
+ parent: { wire: "parent" },
1584
+ spec: {
1585
+ wire: "spec",
1586
+ children: () => branchSpecFieldMaskSchema
1587
+ },
1588
+ status: {
1589
+ wire: "status",
1590
+ children: () => branchStatusFieldMaskSchema
1591
+ },
1592
+ uid: { wire: "uid" },
1593
+ updateTime: { wire: "update_time" }
2700
1594
  };
2701
- export function branchFieldMask(...paths) {
2702
- return FieldMask.build(paths, branchFieldMaskSchema);
1595
+ function branchFieldMask(...paths) {
1596
+ return FieldMask.build(paths, branchFieldMaskSchema);
2703
1597
  }
2704
1598
  const branchSpecFieldMaskSchema = {
2705
- expireTime: { wire: 'expire_time' },
2706
- isProtected: { wire: 'is_protected' },
2707
- noExpiry: { wire: 'no_expiry' },
2708
- sourceBranch: { wire: 'source_branch' },
2709
- sourceBranchLsn: { wire: 'source_branch_lsn' },
2710
- sourceBranchTime: { wire: 'source_branch_time' },
2711
- ttl: { wire: 'ttl' },
1599
+ expireTime: { wire: "expire_time" },
1600
+ isProtected: { wire: "is_protected" },
1601
+ noExpiry: { wire: "no_expiry" },
1602
+ sourceBranch: { wire: "source_branch" },
1603
+ sourceBranchLsn: { wire: "source_branch_lsn" },
1604
+ sourceBranchTime: { wire: "source_branch_time" },
1605
+ ttl: { wire: "ttl" }
2712
1606
  };
2713
1607
  const branchStatusFieldMaskSchema = {
2714
- branchId: { wire: 'branch_id' },
2715
- currentState: { wire: 'current_state' },
2716
- default: { wire: 'default' },
2717
- deleteTime: { wire: 'delete_time' },
2718
- expireTime: { wire: 'expire_time' },
2719
- isProtected: { wire: 'is_protected' },
2720
- logicalSizeBytes: { wire: 'logical_size_bytes' },
2721
- pendingState: { wire: 'pending_state' },
2722
- purgeTime: { wire: 'purge_time' },
2723
- sourceBranch: { wire: 'source_branch' },
2724
- sourceBranchLsn: { wire: 'source_branch_lsn' },
2725
- sourceBranchTime: { wire: 'source_branch_time' },
2726
- stateChangeTime: { wire: 'state_change_time' },
1608
+ branchId: { wire: "branch_id" },
1609
+ currentState: { wire: "current_state" },
1610
+ default: { wire: "default" },
1611
+ deleteTime: { wire: "delete_time" },
1612
+ expireTime: { wire: "expire_time" },
1613
+ isProtected: { wire: "is_protected" },
1614
+ logicalSizeBytes: { wire: "logical_size_bytes" },
1615
+ pendingState: { wire: "pending_state" },
1616
+ purgeTime: { wire: "purge_time" },
1617
+ sourceBranch: { wire: "source_branch" },
1618
+ sourceBranchLsn: { wire: "source_branch_lsn" },
1619
+ sourceBranchTime: { wire: "source_branch_time" },
1620
+ stateChangeTime: { wire: "state_change_time" }
2727
1621
  };
2728
1622
  const dataApiFieldMaskSchema = {
2729
- createTime: { wire: 'create_time' },
2730
- name: { wire: 'name' },
2731
- parent: { wire: 'parent' },
2732
- spec: { wire: 'spec', children: () => dataApi_DataApiSpecFieldMaskSchema },
2733
- status: {
2734
- wire: 'status',
2735
- children: () => dataApi_DataApiStatusFieldMaskSchema,
2736
- },
2737
- updateTime: { wire: 'update_time' },
1623
+ createTime: { wire: "create_time" },
1624
+ name: { wire: "name" },
1625
+ parent: { wire: "parent" },
1626
+ spec: {
1627
+ wire: "spec",
1628
+ children: () => dataApi_DataApiSpecFieldMaskSchema
1629
+ },
1630
+ status: {
1631
+ wire: "status",
1632
+ children: () => dataApi_DataApiStatusFieldMaskSchema
1633
+ },
1634
+ updateTime: { wire: "update_time" }
2738
1635
  };
2739
- export function dataApiFieldMask(...paths) {
2740
- return FieldMask.build(paths, dataApiFieldMaskSchema);
1636
+ function dataApiFieldMask(...paths) {
1637
+ return FieldMask.build(paths, dataApiFieldMaskSchema);
2741
1638
  }
2742
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2743
1639
  const dataApi_DataApiSpecFieldMaskSchema = {
2744
- dbAggregatesEnabled: { wire: 'db_aggregates_enabled' },
2745
- dbExtraSearchPath: { wire: 'db_extra_search_path' },
2746
- dbMaxRows: { wire: 'db_max_rows' },
2747
- dbSchemas: { wire: 'db_schemas' },
2748
- jwtCacheMaxLifetime: { wire: 'jwt_cache_max_lifetime' },
2749
- jwtRoleClaimKey: { wire: 'jwt_role_claim_key' },
2750
- openapiMode: { wire: 'openapi_mode' },
2751
- serverCorsAllowedOrigins: { wire: 'server_cors_allowed_origins' },
2752
- serverTimingEnabled: { wire: 'server_timing_enabled' },
1640
+ dbAggregatesEnabled: { wire: "db_aggregates_enabled" },
1641
+ dbExtraSearchPath: { wire: "db_extra_search_path" },
1642
+ dbMaxRows: { wire: "db_max_rows" },
1643
+ dbSchemas: { wire: "db_schemas" },
1644
+ jwtCacheMaxLifetime: { wire: "jwt_cache_max_lifetime" },
1645
+ jwtRoleClaimKey: { wire: "jwt_role_claim_key" },
1646
+ openapiMode: { wire: "openapi_mode" },
1647
+ serverCorsAllowedOrigins: { wire: "server_cors_allowed_origins" },
1648
+ serverTimingEnabled: { wire: "server_timing_enabled" }
2753
1649
  };
2754
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2755
1650
  const dataApi_DataApiStatusFieldMaskSchema = {
2756
- availableSchemas: { wire: 'available_schemas' },
2757
- dbAggregatesEnabled: { wire: 'db_aggregates_enabled' },
2758
- dbExtraSearchPath: { wire: 'db_extra_search_path' },
2759
- dbMaxRows: { wire: 'db_max_rows' },
2760
- dbSchemas: { wire: 'db_schemas' },
2761
- jwtCacheMaxLifetime: { wire: 'jwt_cache_max_lifetime' },
2762
- jwtRoleClaimKey: { wire: 'jwt_role_claim_key' },
2763
- openapiMode: { wire: 'openapi_mode' },
2764
- serverCorsAllowedOrigins: { wire: 'server_cors_allowed_origins' },
2765
- serverTimingEnabled: { wire: 'server_timing_enabled' },
2766
- url: { wire: 'url' },
1651
+ availableSchemas: { wire: "available_schemas" },
1652
+ dbAggregatesEnabled: { wire: "db_aggregates_enabled" },
1653
+ dbExtraSearchPath: { wire: "db_extra_search_path" },
1654
+ dbMaxRows: { wire: "db_max_rows" },
1655
+ dbSchemas: { wire: "db_schemas" },
1656
+ jwtCacheMaxLifetime: { wire: "jwt_cache_max_lifetime" },
1657
+ jwtRoleClaimKey: { wire: "jwt_role_claim_key" },
1658
+ openapiMode: { wire: "openapi_mode" },
1659
+ serverCorsAllowedOrigins: { wire: "server_cors_allowed_origins" },
1660
+ serverTimingEnabled: { wire: "server_timing_enabled" },
1661
+ url: { wire: "url" }
2767
1662
  };
2768
1663
  const databaseFieldMaskSchema = {
2769
- createTime: { wire: 'create_time' },
2770
- databaseId: { wire: 'database_id' },
2771
- name: { wire: 'name' },
2772
- parent: { wire: 'parent' },
2773
- spec: { wire: 'spec', children: () => database_DatabaseSpecFieldMaskSchema },
2774
- status: {
2775
- wire: 'status',
2776
- children: () => database_DatabaseStatusFieldMaskSchema,
2777
- },
2778
- updateTime: { wire: 'update_time' },
1664
+ createTime: { wire: "create_time" },
1665
+ databaseId: { wire: "database_id" },
1666
+ name: { wire: "name" },
1667
+ parent: { wire: "parent" },
1668
+ spec: {
1669
+ wire: "spec",
1670
+ children: () => database_DatabaseSpecFieldMaskSchema
1671
+ },
1672
+ status: {
1673
+ wire: "status",
1674
+ children: () => database_DatabaseStatusFieldMaskSchema
1675
+ },
1676
+ updateTime: { wire: "update_time" }
2779
1677
  };
2780
- export function databaseFieldMask(...paths) {
2781
- return FieldMask.build(paths, databaseFieldMaskSchema);
1678
+ function databaseFieldMask(...paths) {
1679
+ return FieldMask.build(paths, databaseFieldMaskSchema);
2782
1680
  }
2783
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2784
1681
  const database_DatabaseSpecFieldMaskSchema = {
2785
- postgresDatabase: { wire: 'postgres_database' },
2786
- role: { wire: 'role' },
1682
+ postgresDatabase: { wire: "postgres_database" },
1683
+ role: { wire: "role" }
2787
1684
  };
2788
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2789
1685
  const database_DatabaseStatusFieldMaskSchema = {
2790
- databaseId: { wire: 'database_id' },
2791
- postgresDatabase: { wire: 'postgres_database' },
2792
- role: { wire: 'role' },
1686
+ databaseId: { wire: "database_id" },
1687
+ postgresDatabase: { wire: "postgres_database" },
1688
+ role: { wire: "role" }
2793
1689
  };
2794
1690
  const endpointFieldMaskSchema = {
2795
- createTime: { wire: 'create_time' },
2796
- endpointId: { wire: 'endpoint_id' },
2797
- name: { wire: 'name' },
2798
- parent: { wire: 'parent' },
2799
- spec: { wire: 'spec', children: () => endpointSpecFieldMaskSchema },
2800
- status: { wire: 'status', children: () => endpointStatusFieldMaskSchema },
2801
- uid: { wire: 'uid' },
2802
- updateTime: { wire: 'update_time' },
1691
+ createTime: { wire: "create_time" },
1692
+ endpointId: { wire: "endpoint_id" },
1693
+ name: { wire: "name" },
1694
+ parent: { wire: "parent" },
1695
+ spec: {
1696
+ wire: "spec",
1697
+ children: () => endpointSpecFieldMaskSchema
1698
+ },
1699
+ status: {
1700
+ wire: "status",
1701
+ children: () => endpointStatusFieldMaskSchema
1702
+ },
1703
+ uid: { wire: "uid" },
1704
+ updateTime: { wire: "update_time" }
2803
1705
  };
2804
- export function endpointFieldMask(...paths) {
2805
- return FieldMask.build(paths, endpointFieldMaskSchema);
1706
+ function endpointFieldMask(...paths) {
1707
+ return FieldMask.build(paths, endpointFieldMaskSchema);
2806
1708
  }
2807
1709
  const endpointGroupSpecFieldMaskSchema = {
2808
- enableReadableSecondaries: { wire: 'enable_readable_secondaries' },
2809
- max: { wire: 'max' },
2810
- min: { wire: 'min' },
1710
+ enableReadableSecondaries: { wire: "enable_readable_secondaries" },
1711
+ max: { wire: "max" },
1712
+ min: { wire: "min" }
2811
1713
  };
2812
1714
  const endpointGroupStatusFieldMaskSchema = {
2813
- enableReadableSecondaries: { wire: 'enable_readable_secondaries' },
2814
- max: { wire: 'max' },
2815
- min: { wire: 'min' },
1715
+ enableReadableSecondaries: { wire: "enable_readable_secondaries" },
1716
+ max: { wire: "max" },
1717
+ min: { wire: "min" }
2816
1718
  };
2817
1719
  const endpointHostsFieldMaskSchema = {
2818
- host: { wire: 'host' },
2819
- readOnlyHost: { wire: 'read_only_host' },
2820
- readOnlyPooledHost: { wire: 'read_only_pooled_host' },
2821
- readWritePooledHost: { wire: 'read_write_pooled_host' },
2822
- };
2823
- const endpointSettingsFieldMaskSchema = {
2824
- pgSettings: { wire: 'pg_settings' },
1720
+ host: { wire: "host" },
1721
+ readOnlyHost: { wire: "read_only_host" },
1722
+ readOnlyPooledHost: { wire: "read_only_pooled_host" },
1723
+ readWritePooledHost: { wire: "read_write_pooled_host" }
2825
1724
  };
1725
+ const endpointSettingsFieldMaskSchema = { pgSettings: { wire: "pg_settings" } };
2826
1726
  const endpointSpecFieldMaskSchema = {
2827
- autoscalingLimitMaxCu: { wire: 'autoscaling_limit_max_cu' },
2828
- autoscalingLimitMinCu: { wire: 'autoscaling_limit_min_cu' },
2829
- disabled: { wire: 'disabled' },
2830
- endpointType: { wire: 'endpoint_type' },
2831
- group: { wire: 'group', children: () => endpointGroupSpecFieldMaskSchema },
2832
- noSuspension: { wire: 'no_suspension' },
2833
- settings: { wire: 'settings', children: () => endpointSettingsFieldMaskSchema },
2834
- suspendTimeoutDuration: { wire: 'suspend_timeout_duration' },
1727
+ autoscalingLimitMaxCu: { wire: "autoscaling_limit_max_cu" },
1728
+ autoscalingLimitMinCu: { wire: "autoscaling_limit_min_cu" },
1729
+ disabled: { wire: "disabled" },
1730
+ endpointType: { wire: "endpoint_type" },
1731
+ group: {
1732
+ wire: "group",
1733
+ children: () => endpointGroupSpecFieldMaskSchema
1734
+ },
1735
+ noSuspension: { wire: "no_suspension" },
1736
+ settings: {
1737
+ wire: "settings",
1738
+ children: () => endpointSettingsFieldMaskSchema
1739
+ },
1740
+ suspendTimeoutDuration: { wire: "suspend_timeout_duration" }
2835
1741
  };
2836
1742
  const endpointStatusFieldMaskSchema = {
2837
- autoscalingLimitMaxCu: { wire: 'autoscaling_limit_max_cu' },
2838
- autoscalingLimitMinCu: { wire: 'autoscaling_limit_min_cu' },
2839
- currentState: { wire: 'current_state' },
2840
- disabled: { wire: 'disabled' },
2841
- endpointId: { wire: 'endpoint_id' },
2842
- endpointType: { wire: 'endpoint_type' },
2843
- group: { wire: 'group', children: () => endpointGroupStatusFieldMaskSchema },
2844
- hosts: { wire: 'hosts', children: () => endpointHostsFieldMaskSchema },
2845
- lastActiveTime: { wire: 'last_active_time' },
2846
- pendingState: { wire: 'pending_state' },
2847
- settings: { wire: 'settings', children: () => endpointSettingsFieldMaskSchema },
2848
- suspendTimeoutDuration: { wire: 'suspend_timeout_duration' },
2849
- };
2850
- const initialBranchSpecFieldMaskSchema = {
2851
- isProtected: { wire: 'is_protected' },
1743
+ autoscalingLimitMaxCu: { wire: "autoscaling_limit_max_cu" },
1744
+ autoscalingLimitMinCu: { wire: "autoscaling_limit_min_cu" },
1745
+ currentState: { wire: "current_state" },
1746
+ disabled: { wire: "disabled" },
1747
+ endpointId: { wire: "endpoint_id" },
1748
+ endpointType: { wire: "endpoint_type" },
1749
+ group: {
1750
+ wire: "group",
1751
+ children: () => endpointGroupStatusFieldMaskSchema
1752
+ },
1753
+ hosts: {
1754
+ wire: "hosts",
1755
+ children: () => endpointHostsFieldMaskSchema
1756
+ },
1757
+ lastActiveTime: { wire: "last_active_time" },
1758
+ pendingState: { wire: "pending_state" },
1759
+ settings: {
1760
+ wire: "settings",
1761
+ children: () => endpointSettingsFieldMaskSchema
1762
+ },
1763
+ suspendTimeoutDuration: { wire: "suspend_timeout_duration" }
2852
1764
  };
1765
+ const initialBranchSpecFieldMaskSchema = { isProtected: { wire: "is_protected" } };
2853
1766
  const initialEndpointSpecFieldMaskSchema = {
2854
- autoscalingLimitMaxCu: { wire: 'autoscaling_limit_max_cu' },
2855
- autoscalingLimitMinCu: { wire: 'autoscaling_limit_min_cu' },
2856
- group: { wire: 'group', children: () => endpointGroupSpecFieldMaskSchema },
2857
- noSuspension: { wire: 'no_suspension' },
2858
- suspendTimeoutDuration: { wire: 'suspend_timeout_duration' },
1767
+ autoscalingLimitMaxCu: { wire: "autoscaling_limit_max_cu" },
1768
+ autoscalingLimitMinCu: { wire: "autoscaling_limit_min_cu" },
1769
+ group: {
1770
+ wire: "group",
1771
+ children: () => endpointGroupSpecFieldMaskSchema
1772
+ },
1773
+ noSuspension: { wire: "no_suspension" },
1774
+ suspendTimeoutDuration: { wire: "suspend_timeout_duration" }
2859
1775
  };
2860
1776
  const projectFieldMaskSchema = {
2861
- createTime: { wire: 'create_time' },
2862
- deleteTime: { wire: 'delete_time' },
2863
- initialBranchSpec: {
2864
- wire: 'initial_branch_spec',
2865
- children: () => initialBranchSpecFieldMaskSchema,
2866
- },
2867
- initialEndpointSpec: {
2868
- wire: 'initial_endpoint_spec',
2869
- children: () => initialEndpointSpecFieldMaskSchema,
2870
- },
2871
- name: { wire: 'name' },
2872
- projectId: { wire: 'project_id' },
2873
- purgeTime: { wire: 'purge_time' },
2874
- spec: { wire: 'spec', children: () => projectSpecFieldMaskSchema },
2875
- status: { wire: 'status', children: () => projectStatusFieldMaskSchema },
2876
- uid: { wire: 'uid' },
2877
- updateTime: { wire: 'update_time' },
1777
+ createTime: { wire: "create_time" },
1778
+ deleteTime: { wire: "delete_time" },
1779
+ initialBranchSpec: {
1780
+ wire: "initial_branch_spec",
1781
+ children: () => initialBranchSpecFieldMaskSchema
1782
+ },
1783
+ initialEndpointSpec: {
1784
+ wire: "initial_endpoint_spec",
1785
+ children: () => initialEndpointSpecFieldMaskSchema
1786
+ },
1787
+ name: { wire: "name" },
1788
+ projectId: { wire: "project_id" },
1789
+ purgeTime: { wire: "purge_time" },
1790
+ spec: {
1791
+ wire: "spec",
1792
+ children: () => projectSpecFieldMaskSchema
1793
+ },
1794
+ status: {
1795
+ wire: "status",
1796
+ children: () => projectStatusFieldMaskSchema
1797
+ },
1798
+ uid: { wire: "uid" },
1799
+ updateTime: { wire: "update_time" }
2878
1800
  };
2879
- export function projectFieldMask(...paths) {
2880
- return FieldMask.build(paths, projectFieldMaskSchema);
1801
+ function projectFieldMask(...paths) {
1802
+ return FieldMask.build(paths, projectFieldMaskSchema);
2881
1803
  }
2882
1804
  const projectDefaultEndpointSettingsFieldMaskSchema = {
2883
- autoscalingLimitMaxCu: { wire: 'autoscaling_limit_max_cu' },
2884
- autoscalingLimitMinCu: { wire: 'autoscaling_limit_min_cu' },
2885
- noSuspension: { wire: 'no_suspension' },
2886
- pgSettings: { wire: 'pg_settings' },
2887
- suspendTimeoutDuration: { wire: 'suspend_timeout_duration' },
1805
+ autoscalingLimitMaxCu: { wire: "autoscaling_limit_max_cu" },
1806
+ autoscalingLimitMinCu: { wire: "autoscaling_limit_min_cu" },
1807
+ noSuspension: { wire: "no_suspension" },
1808
+ pgSettings: { wire: "pg_settings" },
1809
+ suspendTimeoutDuration: { wire: "suspend_timeout_duration" }
2888
1810
  };
2889
1811
  const projectSpecFieldMaskSchema = {
2890
- budgetPolicyId: { wire: 'budget_policy_id' },
2891
- customTags: { wire: 'custom_tags' },
2892
- defaultBranch: { wire: 'default_branch' },
2893
- defaultEndpointSettings: {
2894
- wire: 'default_endpoint_settings',
2895
- children: () => projectDefaultEndpointSettingsFieldMaskSchema,
2896
- },
2897
- displayName: { wire: 'display_name' },
2898
- enablePgNativeLogin: { wire: 'enable_pg_native_login' },
2899
- historyRetentionDuration: { wire: 'history_retention_duration' },
2900
- pgVersion: { wire: 'pg_version' },
1812
+ budgetPolicyId: { wire: "budget_policy_id" },
1813
+ customTags: { wire: "custom_tags" },
1814
+ defaultBranch: { wire: "default_branch" },
1815
+ defaultEndpointSettings: {
1816
+ wire: "default_endpoint_settings",
1817
+ children: () => projectDefaultEndpointSettingsFieldMaskSchema
1818
+ },
1819
+ displayName: { wire: "display_name" },
1820
+ enablePgNativeLogin: { wire: "enable_pg_native_login" },
1821
+ historyRetentionDuration: { wire: "history_retention_duration" },
1822
+ pgVersion: { wire: "pg_version" }
2901
1823
  };
2902
1824
  const projectStatusFieldMaskSchema = {
2903
- branchLogicalSizeLimitBytes: { wire: 'branch_logical_size_limit_bytes' },
2904
- budgetPolicyId: { wire: 'budget_policy_id' },
2905
- computeLastActiveTime: { wire: 'compute_last_active_time' },
2906
- customTags: { wire: 'custom_tags' },
2907
- defaultBranch: { wire: 'default_branch' },
2908
- defaultEndpointSettings: {
2909
- wire: 'default_endpoint_settings',
2910
- children: () => projectDefaultEndpointSettingsFieldMaskSchema,
2911
- },
2912
- displayName: { wire: 'display_name' },
2913
- enablePgNativeLogin: { wire: 'enable_pg_native_login' },
2914
- historyRetentionDuration: { wire: 'history_retention_duration' },
2915
- owner: { wire: 'owner' },
2916
- pgVersion: { wire: 'pg_version' },
2917
- projectId: { wire: 'project_id' },
2918
- syntheticStorageSizeBytes: { wire: 'synthetic_storage_size_bytes' },
1825
+ branchLogicalSizeLimitBytes: { wire: "branch_logical_size_limit_bytes" },
1826
+ budgetPolicyId: { wire: "budget_policy_id" },
1827
+ computeLastActiveTime: { wire: "compute_last_active_time" },
1828
+ customTags: { wire: "custom_tags" },
1829
+ defaultBranch: { wire: "default_branch" },
1830
+ defaultEndpointSettings: {
1831
+ wire: "default_endpoint_settings",
1832
+ children: () => projectDefaultEndpointSettingsFieldMaskSchema
1833
+ },
1834
+ displayName: { wire: "display_name" },
1835
+ enablePgNativeLogin: { wire: "enable_pg_native_login" },
1836
+ historyRetentionDuration: { wire: "history_retention_duration" },
1837
+ owner: { wire: "owner" },
1838
+ pgVersion: { wire: "pg_version" },
1839
+ projectId: { wire: "project_id" },
1840
+ syntheticStorageSizeBytes: { wire: "synthetic_storage_size_bytes" }
2919
1841
  };
2920
1842
  const roleFieldMaskSchema = {
2921
- createTime: { wire: 'create_time' },
2922
- name: { wire: 'name' },
2923
- parent: { wire: 'parent' },
2924
- roleId: { wire: 'role_id' },
2925
- spec: { wire: 'spec', children: () => role_RoleSpecFieldMaskSchema },
2926
- status: { wire: 'status', children: () => role_RoleStatusFieldMaskSchema },
2927
- updateTime: { wire: 'update_time' },
1843
+ createTime: { wire: "create_time" },
1844
+ name: { wire: "name" },
1845
+ parent: { wire: "parent" },
1846
+ roleId: { wire: "role_id" },
1847
+ spec: {
1848
+ wire: "spec",
1849
+ children: () => role_RoleSpecFieldMaskSchema
1850
+ },
1851
+ status: {
1852
+ wire: "status",
1853
+ children: () => role_RoleStatusFieldMaskSchema
1854
+ },
1855
+ updateTime: { wire: "update_time" }
2928
1856
  };
2929
- export function roleFieldMask(...paths) {
2930
- return FieldMask.build(paths, roleFieldMaskSchema);
1857
+ function roleFieldMask(...paths) {
1858
+ return FieldMask.build(paths, roleFieldMaskSchema);
2931
1859
  }
2932
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2933
1860
  const role_AttributesFieldMaskSchema = {
2934
- bypassrls: { wire: 'bypassrls' },
2935
- createdb: { wire: 'createdb' },
2936
- createrole: { wire: 'createrole' },
1861
+ bypassrls: { wire: "bypassrls" },
1862
+ createdb: { wire: "createdb" },
1863
+ createrole: { wire: "createrole" }
2937
1864
  };
2938
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2939
1865
  const role_RoleSpecFieldMaskSchema = {
2940
- attributes: {
2941
- wire: 'attributes',
2942
- children: () => role_AttributesFieldMaskSchema,
2943
- },
2944
- authMethod: { wire: 'auth_method' },
2945
- identityType: { wire: 'identity_type' },
2946
- membershipRoles: { wire: 'membership_roles' },
2947
- postgresRole: { wire: 'postgres_role' },
1866
+ attributes: {
1867
+ wire: "attributes",
1868
+ children: () => role_AttributesFieldMaskSchema
1869
+ },
1870
+ authMethod: { wire: "auth_method" },
1871
+ identityType: { wire: "identity_type" },
1872
+ membershipRoles: { wire: "membership_roles" },
1873
+ postgresRole: { wire: "postgres_role" }
2948
1874
  };
2949
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2950
1875
  const role_RoleStatusFieldMaskSchema = {
2951
- attributes: {
2952
- wire: 'attributes',
2953
- children: () => role_AttributesFieldMaskSchema,
2954
- },
2955
- authMethod: { wire: 'auth_method' },
2956
- identityType: { wire: 'identity_type' },
2957
- membershipRoles: { wire: 'membership_roles' },
2958
- postgresRole: { wire: 'postgres_role' },
2959
- roleId: { wire: 'role_id' },
1876
+ attributes: {
1877
+ wire: "attributes",
1878
+ children: () => role_AttributesFieldMaskSchema
1879
+ },
1880
+ authMethod: { wire: "auth_method" },
1881
+ identityType: { wire: "identity_type" },
1882
+ membershipRoles: { wire: "membership_roles" },
1883
+ postgresRole: { wire: "postgres_role" },
1884
+ roleId: { wire: "role_id" }
2960
1885
  };
1886
+
1887
+ //#endregion
1888
+ export { BranchStatus_State, CdfState, EndpointStatus_State, EndpointType, ErrorCode, OpenApiMode, ProvisioningInfo_State, ProvisioningPhase, RequestedClaims_PermissionSet, Role_AuthMethod, Role_IdentityType, Role_MembershipRole, SyncedTableState, SyncedTable_SyncedTableSpec_ExtraColumn_Maintenance, SyncedTable_SyncedTableSpec_PgSpecificType, SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy, branchFieldMask, dataApiFieldMask, databaseFieldMask, endpointFieldMask, marshalBranchSchema, marshalBranchSpecSchema, marshalBranchStatusSchema, marshalCatalogSchema, marshalCatalog_CatalogSpecSchema, marshalCatalog_CatalogStatusSchema, marshalCdfConfigSchema, marshalDataApiSchema, marshalDataApi_DataApiSpecSchema, marshalDataApi_DataApiStatusSchema, marshalDatabaseSchema, marshalDatabase_DatabaseSpecSchema, marshalDatabase_DatabaseStatusSchema, marshalDeltaTableSyncInfoSchema, marshalEndpointGroupSpecSchema, marshalEndpointGroupStatusSchema, marshalEndpointHostsSchema, marshalEndpointSchema, marshalEndpointSettingsSchema, marshalEndpointSpecSchema, marshalEndpointStatusSchema, marshalGenerateDatabaseCredentialRequestSchema, marshalInitialBranchSpecSchema, marshalInitialEndpointSpecSchema, marshalNewPipelineSpecSchema, marshalProjectCustomTagSchema, marshalProjectDefaultEndpointSettingsSchema, marshalProjectSchema, marshalProjectSpecSchema, marshalProjectStatusSchema, marshalRequestedClaimsSchema, marshalRequestedResourceSchema, marshalRoleSchema, marshalRole_AttributesSchema, marshalRole_RoleSpecSchema, marshalRole_RoleStatusSchema, marshalSyncedTablePipelineProgressSchema, marshalSyncedTablePositionSchema, marshalSyncedTableSchema, marshalSyncedTable_SyncedTableSpecSchema, marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema, marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema, marshalSyncedTable_SyncedTableStatusSchema, marshalUndeleteBranchRequestSchema, marshalUndeleteProjectRequestSchema, projectFieldMask, roleFieldMask, unmarshalApiErrorSchema, unmarshalBranchOperationMetadataSchema, unmarshalBranchSchema, unmarshalBranchSpecSchema, unmarshalBranchStatusSchema, unmarshalCatalogOperationMetadataSchema, unmarshalCatalogSchema, unmarshalCatalog_CatalogSpecSchema, unmarshalCatalog_CatalogStatusSchema, unmarshalCdfConfigOperationMetadataSchema, unmarshalCdfConfigSchema, unmarshalCdfStatusSchema, unmarshalDataApiOperationMetadataSchema, unmarshalDataApiSchema, unmarshalDataApi_DataApiSpecSchema, unmarshalDataApi_DataApiStatusSchema, unmarshalDatabaseCredentialSchema, unmarshalDatabaseOperationMetadataSchema, unmarshalDatabaseSchema, unmarshalDatabase_DatabaseSpecSchema, unmarshalDatabase_DatabaseStatusSchema, unmarshalDeltaTableSyncInfoSchema, unmarshalEndpointGroupSpecSchema, unmarshalEndpointGroupStatusSchema, unmarshalEndpointHostsSchema, unmarshalEndpointOperationMetadataSchema, unmarshalEndpointSchema, unmarshalEndpointSettingsSchema, unmarshalEndpointSpecSchema, unmarshalEndpointStatusSchema, unmarshalInitialBranchSpecSchema, unmarshalInitialEndpointSpecSchema, unmarshalListBranchesResponseSchema, unmarshalListCdfConfigsResponseSchema, unmarshalListCdfStatusesResponseSchema, unmarshalListDatabasesResponseSchema, unmarshalListEndpointsResponseSchema, unmarshalListProjectsResponseSchema, unmarshalListRolesResponseSchema, unmarshalNewPipelineSpecSchema, unmarshalOperationSchema, unmarshalProjectCustomTagSchema, unmarshalProjectDefaultEndpointSettingsSchema, unmarshalProjectOperationMetadataSchema, unmarshalProjectSchema, unmarshalProjectSpecSchema, unmarshalProjectStatusSchema, unmarshalRoleOperationMetadataSchema, unmarshalRoleSchema, unmarshalRole_AttributesSchema, unmarshalRole_RoleSpecSchema, unmarshalRole_RoleStatusSchema, unmarshalSyncedTableOperationMetadataSchema, unmarshalSyncedTablePipelineProgressSchema, unmarshalSyncedTablePositionSchema, unmarshalSyncedTableSchema, unmarshalSyncedTable_SyncedTableSpecSchema, unmarshalSyncedTable_SyncedTableSpec_ExtraColumnSchema, unmarshalSyncedTable_SyncedTableSpec_TypeOverrideSchema, unmarshalSyncedTable_SyncedTableStatusSchema };
2961
1889
  //# sourceMappingURL=model.js.map