@databricks/sdk-genie 0.1.0-dev.4 → 0.1.0-dev.6

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,35 +1,35 @@
1
1
  // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
2
  import { z } from 'zod';
3
- export var ColumnTypeName;
4
- (function (ColumnTypeName) {
5
- ColumnTypeName["BOOLEAN"] = "BOOLEAN";
6
- ColumnTypeName["BYTE"] = "BYTE";
7
- ColumnTypeName["SHORT"] = "SHORT";
8
- ColumnTypeName["INT"] = "INT";
9
- ColumnTypeName["LONG"] = "LONG";
10
- ColumnTypeName["FLOAT"] = "FLOAT";
11
- ColumnTypeName["DOUBLE"] = "DOUBLE";
12
- ColumnTypeName["DATE"] = "DATE";
13
- ColumnTypeName["TIMESTAMP"] = "TIMESTAMP";
14
- ColumnTypeName["STRING"] = "STRING";
15
- ColumnTypeName["BINARY"] = "BINARY";
16
- ColumnTypeName["DECIMAL"] = "DECIMAL";
17
- ColumnTypeName["INTERVAL"] = "INTERVAL";
18
- ColumnTypeName["ARRAY"] = "ARRAY";
19
- ColumnTypeName["STRUCT"] = "STRUCT";
20
- ColumnTypeName["MAP"] = "MAP";
21
- ColumnTypeName["CHAR"] = "CHAR";
22
- ColumnTypeName["NULL"] = "NULL";
23
- ColumnTypeName["USER_DEFINED_TYPE"] = "USER_DEFINED_TYPE";
24
- ColumnTypeName["TIMESTAMP_NTZ"] = "TIMESTAMP_NTZ";
25
- ColumnTypeName["VARIANT"] = "VARIANT";
26
- ColumnTypeName["GEOMETRY"] = "GEOMETRY";
27
- ColumnTypeName["GEOGRAPHY"] = "GEOGRAPHY";
28
- ColumnTypeName["TABLE_TYPE"] = "TABLE_TYPE";
29
- })(ColumnTypeName || (ColumnTypeName = {}));
3
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
4
+ export const ColumnTypeName = {
5
+ BOOLEAN: 'BOOLEAN',
6
+ BYTE: 'BYTE',
7
+ SHORT: 'SHORT',
8
+ INT: 'INT',
9
+ LONG: 'LONG',
10
+ FLOAT: 'FLOAT',
11
+ DOUBLE: 'DOUBLE',
12
+ DATE: 'DATE',
13
+ TIMESTAMP: 'TIMESTAMP',
14
+ STRING: 'STRING',
15
+ BINARY: 'BINARY',
16
+ DECIMAL: 'DECIMAL',
17
+ INTERVAL: 'INTERVAL',
18
+ ARRAY: 'ARRAY',
19
+ STRUCT: 'STRUCT',
20
+ MAP: 'MAP',
21
+ CHAR: 'CHAR',
22
+ NULL: 'NULL',
23
+ USER_DEFINED_TYPE: 'USER_DEFINED_TYPE',
24
+ TIMESTAMP_NTZ: 'TIMESTAMP_NTZ',
25
+ VARIANT: 'VARIANT',
26
+ GEOMETRY: 'GEOMETRY',
27
+ GEOGRAPHY: 'GEOGRAPHY',
28
+ TABLE_TYPE: 'TABLE_TYPE',
29
+ };
30
30
  /** Error codes returned by Databricks APIs to indicate specific failure conditions. */
31
- export var ErrorCode;
32
- (function (ErrorCode) {
31
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
32
+ export const ErrorCode = {
33
33
  /**
34
34
  * Unknown error. This error generally should not be returned explicitly, but will be used
35
35
  * as a fallback if the error enum is missing from the message for some reason.
@@ -42,7 +42,7 @@ export var ErrorCode;
42
42
  * - google.rpc.Code: UNKNOWN = 2;
43
43
  * - HTTP code: 500 Internal Server Error
44
44
  */
45
- ErrorCode["UNKNOWN"] = "UNKNOWN";
45
+ UNKNOWN: 'UNKNOWN',
46
46
  /**
47
47
  * Internal error. This means that some invariants expected by the underlying system have been
48
48
  * broken. This error code is reserved for serious errors, which generally cannot be resolved
@@ -55,7 +55,7 @@ export var ErrorCode;
55
55
  * - google.rpc.Code: INTERNAL = 13;
56
56
  * - HTTP code: 500 Internal Server Error
57
57
  */
58
- ErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
58
+ INTERNAL_ERROR: 'INTERNAL_ERROR',
59
59
  /**
60
60
  * The service is currently unavailable. This is most likely a transient condition, which can be
61
61
  * corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent
@@ -70,13 +70,13 @@ export var ErrorCode;
70
70
  * - google.rpc.Code: UNAVAILABLE = 14;
71
71
  * - HTTP code: 503 Service Unavailable
72
72
  */
73
- ErrorCode["TEMPORARILY_UNAVAILABLE"] = "TEMPORARILY_UNAVAILABLE";
73
+ TEMPORARILY_UNAVAILABLE: 'TEMPORARILY_UNAVAILABLE',
74
74
  /**
75
75
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
76
76
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
77
77
  * Indicates that an IOException has been internally thrown.
78
78
  */
79
- ErrorCode["IO_ERROR"] = "IO_ERROR";
79
+ IO_ERROR: 'IO_ERROR',
80
80
  /**
81
81
  * The request is invalid. Prefer more specific error code whenever possible.
82
82
  * Also see similar recommendation for the google.rpc.Code.FAILED_PRECONDITION.
@@ -87,14 +87,14 @@ export var ErrorCode;
87
87
  * - google.rpc.Code: FAILED_PRECONDITION = 9;
88
88
  * - HTTP code: 400 Bad Request
89
89
  */
90
- ErrorCode["BAD_REQUEST"] = "BAD_REQUEST";
90
+ BAD_REQUEST: 'BAD_REQUEST',
91
91
  /**
92
92
  * An external service is unavailable temporarily as it is being updated/re-deployed. Indicates
93
93
  * gateway proxy to safely retry the request.
94
94
  */
95
- ErrorCode["SERVICE_UNDER_MAINTENANCE"] = "SERVICE_UNDER_MAINTENANCE";
95
+ SERVICE_UNDER_MAINTENANCE: 'SERVICE_UNDER_MAINTENANCE',
96
96
  /** A workspace is temporarily unavailable as the workspace is being re-assigned. */
97
- ErrorCode["WORKSPACE_TEMPORARILY_UNAVAILABLE"] = "WORKSPACE_TEMPORARILY_UNAVAILABLE";
97
+ WORKSPACE_TEMPORARILY_UNAVAILABLE: 'WORKSPACE_TEMPORARILY_UNAVAILABLE',
98
98
  /**
99
99
  * The deadline expired before the operation could complete. For operations that change the state
100
100
  * of the system, this error may be returned even if the operation has completed successfully.
@@ -107,7 +107,7 @@ export var ErrorCode;
107
107
  * - google.rpc.Code: DEADLINE_EXCEEDED = 4;
108
108
  * - HTTP code: 504 Gateway Timeout
109
109
  */
110
- ErrorCode["DEADLINE_EXCEEDED"] = "DEADLINE_EXCEEDED";
110
+ DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',
111
111
  /**
112
112
  * The operation was canceled by the caller. An example - client closed the connection without
113
113
  * waiting for a response.
@@ -116,7 +116,7 @@ export var ErrorCode;
116
116
  * - google.rpc.Code: CANCELLED = 1;
117
117
  * - HTTP code: 499 Client Closed Request
118
118
  */
119
- ErrorCode["CANCELLED"] = "CANCELLED";
119
+ CANCELLED: 'CANCELLED',
120
120
  /**
121
121
  * The operation is rejected because of either rate limiting or resource quota,
122
122
  * such as the client has sent too many requests recently or the client has allocated too many
@@ -129,7 +129,7 @@ export var ErrorCode;
129
129
  * - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
130
130
  * - HTTP code: 429 Too Many Requests
131
131
  */
132
- ErrorCode["RESOURCE_EXHAUSTED"] = "RESOURCE_EXHAUSTED";
132
+ RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',
133
133
  /**
134
134
  * The operation was aborted, typically due to a concurrency issue such as a sequencer
135
135
  * check failure, transaction abort, or transaction conflict.
@@ -138,7 +138,7 @@ export var ErrorCode;
138
138
  * - google.rpc.Code: ABORTED = 10;
139
139
  * - HTTP code: 409 Conflict
140
140
  */
141
- ErrorCode["ABORTED"] = "ABORTED";
141
+ ABORTED: 'ABORTED',
142
142
  /**
143
143
  * Operation was performed on a resource that does not exist,
144
144
  * e.g. file or directory was not found.
@@ -147,7 +147,7 @@ export var ErrorCode;
147
147
  * - google.rpc.Code: NOT_FOUND = 5;
148
148
  * - HTTP code: 404 Not Found
149
149
  */
150
- ErrorCode["NOT_FOUND"] = "NOT_FOUND";
150
+ NOT_FOUND: 'NOT_FOUND',
151
151
  /**
152
152
  * Operation was rejected due a conflict with an existing resource, e.g. attempted to create
153
153
  * file or directory that already exists.
@@ -158,7 +158,7 @@ export var ErrorCode;
158
158
  * - google.rpc.Code: ALREADY_EXISTS = 6;
159
159
  * - HTTP code: 409 Conflict
160
160
  */
161
- ErrorCode["ALREADY_EXISTS"] = "ALREADY_EXISTS";
161
+ ALREADY_EXISTS: 'ALREADY_EXISTS',
162
162
  /**
163
163
  * The request does not have valid authentication (AuthN) credentials for the operation.
164
164
  *
@@ -170,7 +170,7 @@ export var ErrorCode;
170
170
  * - google.rpc.Code: UNAUTHENTICATED = 16;
171
171
  * - HTTP code: 401 Unauthorized
172
172
  */
173
- ErrorCode["UNAUTHENTICATED"] = "UNAUTHENTICATED";
173
+ UNAUTHENTICATED: 'UNAUTHENTICATED',
174
174
  /**
175
175
  * The service is currently unavailable. Please note that the unavailability may or may not be transient.
176
176
  * That means if this is a non-transient condition, retrying it does not work. If the unavailability
@@ -185,7 +185,7 @@ export var ErrorCode;
185
185
  * - google.rpc.Code: UNAVAILABLE = 14;
186
186
  * - HTTP code: 503 Service Unavailable
187
187
  */
188
- ErrorCode["UNAVAILABLE"] = "UNAVAILABLE";
188
+ UNAVAILABLE: 'UNAVAILABLE',
189
189
  /**
190
190
  * Supplied value for a parameter was invalid (e.g., giving a number for a string parameter).
191
191
  *
@@ -193,7 +193,7 @@ export var ErrorCode;
193
193
  * - google.rpc.Code: INVALID_ARGUMENT = 3;
194
194
  * - HTTP code: 400 Bad Request
195
195
  */
196
- ErrorCode["INVALID_PARAMETER_VALUE"] = "INVALID_PARAMETER_VALUE";
196
+ INVALID_PARAMETER_VALUE: 'INVALID_PARAMETER_VALUE',
197
197
  /**
198
198
  * Indicates that the given API endpoint does not exist. Legacy, when possible - NOT_IMPLEMENTED
199
199
  * should be used instead to indicate that API doesn't exist.
@@ -202,15 +202,15 @@ export var ErrorCode;
202
202
  * - google.rpc.Code: NOT_FOUND = 5;
203
203
  * - HTTP code: 404 Not Found
204
204
  */
205
- ErrorCode["ENDPOINT_NOT_FOUND"] = "ENDPOINT_NOT_FOUND";
205
+ ENDPOINT_NOT_FOUND: 'ENDPOINT_NOT_FOUND',
206
206
  /** Indicates that the given API request was malformed. */
207
- ErrorCode["MALFORMED_REQUEST"] = "MALFORMED_REQUEST";
207
+ MALFORMED_REQUEST: 'MALFORMED_REQUEST',
208
208
  /**
209
209
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
210
210
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
211
211
  * If one or more of the inputs to a given RPC are not in a valid state for the action.
212
212
  */
213
- ErrorCode["INVALID_STATE"] = "INVALID_STATE";
213
+ INVALID_STATE: 'INVALID_STATE',
214
214
  /**
215
215
  * The caller does not have permission to execute the specified operation.
216
216
  * PERMISSION_DENIED must not be used for rejections caused by exhausting some resource,
@@ -224,7 +224,7 @@ export var ErrorCode;
224
224
  * - google.rpc.Code: PERMISSION_DENIED = 7;
225
225
  * - HTTP code: 403 Forbidden
226
226
  */
227
- ErrorCode["PERMISSION_DENIED"] = "PERMISSION_DENIED";
227
+ PERMISSION_DENIED: 'PERMISSION_DENIED',
228
228
  /**
229
229
  * NOTE: Deprecated due to inconsistent mapping in legacy code, see
230
230
  * https://docs.google.com/document/d/17TZIKX_Y39cJMBr333lc-d5dTvvBLSu3DPUyGU5eMJg/edit?disco=AAAAzVGt6FA.
@@ -236,7 +236,7 @@ export var ErrorCode;
236
236
  * - google.rpc.Code: NOT_FOUND = 5;
237
237
  * - HTTP code: 404 Not Found
238
238
  */
239
- ErrorCode["FEATURE_DISABLED"] = "FEATURE_DISABLED";
239
+ FEATURE_DISABLED: 'FEATURE_DISABLED',
240
240
  /**
241
241
  * The request does not have valid authentication (AuthN) credentials for the operation.
242
242
  *
@@ -257,7 +257,7 @@ export var ErrorCode;
257
257
  * - google.rpc.Code: UNAUTHENTICATED = 16;
258
258
  * - HTTP code: 401 Unauthorized
259
259
  */
260
- ErrorCode["CUSTOMER_UNAUTHORIZED"] = "CUSTOMER_UNAUTHORIZED";
260
+ CUSTOMER_UNAUTHORIZED: 'CUSTOMER_UNAUTHORIZED',
261
261
  /**
262
262
  * The operation is rejected because of request rate limit, for example rate limiting applied to
263
263
  * users, workspaces, IP addresses, etc.
@@ -271,16 +271,16 @@ export var ErrorCode;
271
271
  * - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
272
272
  * - HTTP code: 429 Too Many Requests
273
273
  */
274
- ErrorCode["REQUEST_LIMIT_EXCEEDED"] = "REQUEST_LIMIT_EXCEEDED";
274
+ REQUEST_LIMIT_EXCEEDED: 'REQUEST_LIMIT_EXCEEDED',
275
275
  /** Indicates API request was rejected due a conflict with an existing resource. */
276
- ErrorCode["RESOURCE_CONFLICT"] = "RESOURCE_CONFLICT";
276
+ RESOURCE_CONFLICT: 'RESOURCE_CONFLICT',
277
277
  /**
278
278
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
279
279
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
280
280
  * Indicates that the HTTP response cannot be correctly deserialized.
281
281
  * This currently is only used in DUST test clients, and not by any real service code.
282
282
  */
283
- ErrorCode["UNPARSEABLE_HTTP_ERROR"] = "UNPARSEABLE_HTTP_ERROR";
283
+ UNPARSEABLE_HTTP_ERROR: 'UNPARSEABLE_HTTP_ERROR',
284
284
  /**
285
285
  * The operation is not implemented or is not supported/enabled in this service.
286
286
  *
@@ -288,7 +288,7 @@ export var ErrorCode;
288
288
  * - google.rpc.Code: UNIMPLEMENTED = 12;
289
289
  * - HTTP code: 501 Not Implemented
290
290
  */
291
- ErrorCode["NOT_IMPLEMENTED"] = "NOT_IMPLEMENTED";
291
+ NOT_IMPLEMENTED: 'NOT_IMPLEMENTED',
292
292
  /**
293
293
  * Unrecoverable data loss or corruption.
294
294
  *
@@ -303,15 +303,15 @@ export var ErrorCode;
303
303
  * - google.rpc.Code: DATA_LOSS = 15;
304
304
  * - HTTP code: 500 Internal Server Error
305
305
  */
306
- ErrorCode["DATA_LOSS"] = "DATA_LOSS";
306
+ DATA_LOSS: 'DATA_LOSS',
307
307
  /** If the user attempts to perform an invalid state transition on a shard. */
308
- ErrorCode["INVALID_STATE_TRANSITION"] = "INVALID_STATE_TRANSITION";
308
+ INVALID_STATE_TRANSITION: 'INVALID_STATE_TRANSITION',
309
309
  /**
310
310
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
311
311
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
312
312
  * Unable to perform the operation because the shard was locked by some other operation.
313
313
  */
314
- ErrorCode["COULD_NOT_ACQUIRE_LOCK"] = "COULD_NOT_ACQUIRE_LOCK";
314
+ COULD_NOT_ACQUIRE_LOCK: 'COULD_NOT_ACQUIRE_LOCK',
315
315
  /**
316
316
  * NOTE: Deprecated, prefer using ALREADY_EXISTS.
317
317
  * Unlike ALREADY_EXISTS - this maps to HTTP code 400 Bad Request due to legacy reasons,
@@ -319,7 +319,7 @@ export var ErrorCode;
319
319
  *
320
320
  * Operation was performed on a resource that already exists.
321
321
  */
322
- ErrorCode["RESOURCE_ALREADY_EXISTS"] = "RESOURCE_ALREADY_EXISTS";
322
+ RESOURCE_ALREADY_EXISTS: 'RESOURCE_ALREADY_EXISTS',
323
323
  /**
324
324
  * NOTE: Deprecated, prefer using NOT_FOUND - see the note for the RESOURCE_ALREADY_EXISTS,
325
325
  * because this pair of codes is related and RESOURCE_ALREADY_EXISTS has bad mapping to the HTTP
@@ -327,245 +327,245 @@ export var ErrorCode;
327
327
  *
328
328
  * Operation was performed on a resource that does not exist.
329
329
  */
330
- ErrorCode["RESOURCE_DOES_NOT_EXIST"] = "RESOURCE_DOES_NOT_EXIST";
330
+ RESOURCE_DOES_NOT_EXIST: 'RESOURCE_DOES_NOT_EXIST',
331
331
  /**
332
332
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
333
333
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
334
334
  */
335
- ErrorCode["QUOTA_EXCEEDED"] = "QUOTA_EXCEEDED";
335
+ QUOTA_EXCEEDED: 'QUOTA_EXCEEDED',
336
336
  /**
337
337
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
338
338
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
339
339
  */
340
- ErrorCode["MAX_BLOCK_SIZE_EXCEEDED"] = "MAX_BLOCK_SIZE_EXCEEDED";
340
+ MAX_BLOCK_SIZE_EXCEEDED: 'MAX_BLOCK_SIZE_EXCEEDED',
341
341
  /**
342
342
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
343
343
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
344
344
  */
345
- ErrorCode["MAX_READ_SIZE_EXCEEDED"] = "MAX_READ_SIZE_EXCEEDED";
346
- ErrorCode["PARTIAL_DELETE"] = "PARTIAL_DELETE";
347
- ErrorCode["MAX_LIST_SIZE_EXCEEDED"] = "MAX_LIST_SIZE_EXCEEDED";
345
+ MAX_READ_SIZE_EXCEEDED: 'MAX_READ_SIZE_EXCEEDED',
346
+ PARTIAL_DELETE: 'PARTIAL_DELETE',
347
+ MAX_LIST_SIZE_EXCEEDED: 'MAX_LIST_SIZE_EXCEEDED',
348
348
  /**
349
349
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
350
350
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
351
351
  */
352
- ErrorCode["DRY_RUN_FAILED"] = "DRY_RUN_FAILED";
352
+ DRY_RUN_FAILED: 'DRY_RUN_FAILED',
353
353
  /**
354
354
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
355
355
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
356
356
  * Cluster request was rejected because it would exceed a resource limit.
357
357
  */
358
- ErrorCode["RESOURCE_LIMIT_EXCEEDED"] = "RESOURCE_LIMIT_EXCEEDED";
358
+ RESOURCE_LIMIT_EXCEEDED: 'RESOURCE_LIMIT_EXCEEDED',
359
359
  /**
360
360
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
361
361
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
362
362
  */
363
- ErrorCode["DIRECTORY_NOT_EMPTY"] = "DIRECTORY_NOT_EMPTY";
363
+ DIRECTORY_NOT_EMPTY: 'DIRECTORY_NOT_EMPTY',
364
364
  /**
365
365
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
366
366
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
367
367
  */
368
- ErrorCode["DIRECTORY_PROTECTED"] = "DIRECTORY_PROTECTED";
368
+ DIRECTORY_PROTECTED: 'DIRECTORY_PROTECTED',
369
369
  /**
370
370
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
371
371
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
372
372
  */
373
- ErrorCode["MAX_NOTEBOOK_SIZE_EXCEEDED"] = "MAX_NOTEBOOK_SIZE_EXCEEDED";
374
- ErrorCode["MAX_CHILD_NODE_SIZE_EXCEEDED"] = "MAX_CHILD_NODE_SIZE_EXCEEDED";
373
+ MAX_NOTEBOOK_SIZE_EXCEEDED: 'MAX_NOTEBOOK_SIZE_EXCEEDED',
374
+ MAX_CHILD_NODE_SIZE_EXCEEDED: 'MAX_CHILD_NODE_SIZE_EXCEEDED',
375
375
  /**
376
376
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
377
377
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
378
378
  */
379
- ErrorCode["SEARCH_QUERY_TOO_LONG"] = "SEARCH_QUERY_TOO_LONG";
379
+ SEARCH_QUERY_TOO_LONG: 'SEARCH_QUERY_TOO_LONG',
380
380
  /**
381
381
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
382
382
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
383
383
  */
384
- ErrorCode["SEARCH_QUERY_TOO_SHORT"] = "SEARCH_QUERY_TOO_SHORT";
384
+ SEARCH_QUERY_TOO_SHORT: 'SEARCH_QUERY_TOO_SHORT',
385
385
  /**
386
386
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
387
387
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
388
388
  */
389
- ErrorCode["MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST"] = "MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST";
389
+ MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST: 'MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST',
390
390
  /**
391
391
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
392
392
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
393
393
  */
394
- ErrorCode["PERMISSION_NOT_PROPAGATED"] = "PERMISSION_NOT_PROPAGATED";
394
+ PERMISSION_NOT_PROPAGATED: 'PERMISSION_NOT_PROPAGATED',
395
395
  /**
396
396
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
397
397
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
398
398
  */
399
- ErrorCode["DEPLOYMENT_TIMEOUT"] = "DEPLOYMENT_TIMEOUT";
399
+ DEPLOYMENT_TIMEOUT: 'DEPLOYMENT_TIMEOUT',
400
400
  /**
401
401
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
402
402
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
403
403
  */
404
- ErrorCode["GIT_CONFLICT"] = "GIT_CONFLICT";
404
+ GIT_CONFLICT: 'GIT_CONFLICT',
405
405
  /**
406
406
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
407
407
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
408
408
  */
409
- ErrorCode["GIT_UNKNOWN_REF"] = "GIT_UNKNOWN_REF";
409
+ GIT_UNKNOWN_REF: 'GIT_UNKNOWN_REF',
410
410
  /**
411
411
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
412
412
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
413
413
  */
414
- ErrorCode["GIT_SENSITIVE_TOKEN_DETECTED"] = "GIT_SENSITIVE_TOKEN_DETECTED";
414
+ GIT_SENSITIVE_TOKEN_DETECTED: 'GIT_SENSITIVE_TOKEN_DETECTED',
415
415
  /**
416
416
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
417
417
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
418
418
  */
419
- ErrorCode["GIT_URL_NOT_ON_ALLOW_LIST"] = "GIT_URL_NOT_ON_ALLOW_LIST";
419
+ GIT_URL_NOT_ON_ALLOW_LIST: 'GIT_URL_NOT_ON_ALLOW_LIST',
420
420
  /**
421
421
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
422
422
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
423
423
  */
424
- ErrorCode["GIT_REMOTE_ERROR"] = "GIT_REMOTE_ERROR";
424
+ GIT_REMOTE_ERROR: 'GIT_REMOTE_ERROR',
425
425
  /**
426
426
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
427
427
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
428
428
  */
429
- ErrorCode["PROJECTS_OPERATION_TIMEOUT"] = "PROJECTS_OPERATION_TIMEOUT";
429
+ PROJECTS_OPERATION_TIMEOUT: 'PROJECTS_OPERATION_TIMEOUT',
430
430
  /**
431
431
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
432
432
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
433
433
  */
434
- ErrorCode["IPYNB_FILE_IN_REPO"] = "IPYNB_FILE_IN_REPO";
434
+ IPYNB_FILE_IN_REPO: 'IPYNB_FILE_IN_REPO',
435
435
  /**
436
436
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
437
437
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
438
438
  */
439
- ErrorCode["INSECURE_PARTNER_RESPONSE"] = "INSECURE_PARTNER_RESPONSE";
439
+ INSECURE_PARTNER_RESPONSE: 'INSECURE_PARTNER_RESPONSE',
440
440
  /**
441
441
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
442
442
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
443
443
  */
444
- ErrorCode["MALFORMED_PARTNER_RESPONSE"] = "MALFORMED_PARTNER_RESPONSE";
445
- ErrorCode["METASTORE_DOES_NOT_EXIST"] = "METASTORE_DOES_NOT_EXIST";
444
+ MALFORMED_PARTNER_RESPONSE: 'MALFORMED_PARTNER_RESPONSE',
445
+ METASTORE_DOES_NOT_EXIST: 'METASTORE_DOES_NOT_EXIST',
446
446
  /**
447
447
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
448
448
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
449
449
  */
450
- ErrorCode["DAC_DOES_NOT_EXIST"] = "DAC_DOES_NOT_EXIST";
451
- ErrorCode["CATALOG_DOES_NOT_EXIST"] = "CATALOG_DOES_NOT_EXIST";
452
- ErrorCode["SCHEMA_DOES_NOT_EXIST"] = "SCHEMA_DOES_NOT_EXIST";
453
- ErrorCode["TABLE_DOES_NOT_EXIST"] = "TABLE_DOES_NOT_EXIST";
454
- ErrorCode["SHARE_DOES_NOT_EXIST"] = "SHARE_DOES_NOT_EXIST";
455
- ErrorCode["RECIPIENT_DOES_NOT_EXIST"] = "RECIPIENT_DOES_NOT_EXIST";
456
- ErrorCode["STORAGE_CREDENTIAL_DOES_NOT_EXIST"] = "STORAGE_CREDENTIAL_DOES_NOT_EXIST";
457
- ErrorCode["EXTERNAL_LOCATION_DOES_NOT_EXIST"] = "EXTERNAL_LOCATION_DOES_NOT_EXIST";
458
- ErrorCode["PRINCIPAL_DOES_NOT_EXIST"] = "PRINCIPAL_DOES_NOT_EXIST";
459
- ErrorCode["PROVIDER_DOES_NOT_EXIST"] = "PROVIDER_DOES_NOT_EXIST";
450
+ DAC_DOES_NOT_EXIST: 'DAC_DOES_NOT_EXIST',
451
+ CATALOG_DOES_NOT_EXIST: 'CATALOG_DOES_NOT_EXIST',
452
+ SCHEMA_DOES_NOT_EXIST: 'SCHEMA_DOES_NOT_EXIST',
453
+ TABLE_DOES_NOT_EXIST: 'TABLE_DOES_NOT_EXIST',
454
+ SHARE_DOES_NOT_EXIST: 'SHARE_DOES_NOT_EXIST',
455
+ RECIPIENT_DOES_NOT_EXIST: 'RECIPIENT_DOES_NOT_EXIST',
456
+ STORAGE_CREDENTIAL_DOES_NOT_EXIST: 'STORAGE_CREDENTIAL_DOES_NOT_EXIST',
457
+ EXTERNAL_LOCATION_DOES_NOT_EXIST: 'EXTERNAL_LOCATION_DOES_NOT_EXIST',
458
+ PRINCIPAL_DOES_NOT_EXIST: 'PRINCIPAL_DOES_NOT_EXIST',
459
+ PROVIDER_DOES_NOT_EXIST: 'PROVIDER_DOES_NOT_EXIST',
460
460
  /**
461
461
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
462
462
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
463
463
  */
464
- ErrorCode["METASTORE_ALREADY_EXISTS"] = "METASTORE_ALREADY_EXISTS";
464
+ METASTORE_ALREADY_EXISTS: 'METASTORE_ALREADY_EXISTS',
465
465
  /**
466
466
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
467
467
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
468
468
  */
469
- ErrorCode["DAC_ALREADY_EXISTS"] = "DAC_ALREADY_EXISTS";
469
+ DAC_ALREADY_EXISTS: 'DAC_ALREADY_EXISTS',
470
470
  /**
471
471
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
472
472
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
473
473
  */
474
- ErrorCode["CATALOG_ALREADY_EXISTS"] = "CATALOG_ALREADY_EXISTS";
474
+ CATALOG_ALREADY_EXISTS: 'CATALOG_ALREADY_EXISTS',
475
475
  /**
476
476
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
477
477
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
478
478
  */
479
- ErrorCode["SCHEMA_ALREADY_EXISTS"] = "SCHEMA_ALREADY_EXISTS";
479
+ SCHEMA_ALREADY_EXISTS: 'SCHEMA_ALREADY_EXISTS',
480
480
  /**
481
481
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
482
482
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
483
483
  */
484
- ErrorCode["TABLE_ALREADY_EXISTS"] = "TABLE_ALREADY_EXISTS";
484
+ TABLE_ALREADY_EXISTS: 'TABLE_ALREADY_EXISTS',
485
485
  /**
486
486
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
487
487
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
488
488
  */
489
- ErrorCode["SHARE_ALREADY_EXISTS"] = "SHARE_ALREADY_EXISTS";
489
+ SHARE_ALREADY_EXISTS: 'SHARE_ALREADY_EXISTS',
490
490
  /**
491
491
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
492
492
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
493
493
  */
494
- ErrorCode["RECIPIENT_ALREADY_EXISTS"] = "RECIPIENT_ALREADY_EXISTS";
494
+ RECIPIENT_ALREADY_EXISTS: 'RECIPIENT_ALREADY_EXISTS',
495
495
  /**
496
496
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
497
497
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
498
498
  */
499
- ErrorCode["STORAGE_CREDENTIAL_ALREADY_EXISTS"] = "STORAGE_CREDENTIAL_ALREADY_EXISTS";
499
+ STORAGE_CREDENTIAL_ALREADY_EXISTS: 'STORAGE_CREDENTIAL_ALREADY_EXISTS',
500
500
  /**
501
501
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
502
502
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
503
503
  */
504
- ErrorCode["EXTERNAL_LOCATION_ALREADY_EXISTS"] = "EXTERNAL_LOCATION_ALREADY_EXISTS";
504
+ EXTERNAL_LOCATION_ALREADY_EXISTS: 'EXTERNAL_LOCATION_ALREADY_EXISTS',
505
505
  /**
506
506
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
507
507
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
508
508
  */
509
- ErrorCode["PROVIDER_ALREADY_EXISTS"] = "PROVIDER_ALREADY_EXISTS";
509
+ PROVIDER_ALREADY_EXISTS: 'PROVIDER_ALREADY_EXISTS',
510
510
  /**
511
511
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
512
512
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
513
513
  */
514
- ErrorCode["CATALOG_NOT_EMPTY"] = "CATALOG_NOT_EMPTY";
514
+ CATALOG_NOT_EMPTY: 'CATALOG_NOT_EMPTY',
515
515
  /**
516
516
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
517
517
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
518
518
  */
519
- ErrorCode["SCHEMA_NOT_EMPTY"] = "SCHEMA_NOT_EMPTY";
519
+ SCHEMA_NOT_EMPTY: 'SCHEMA_NOT_EMPTY',
520
520
  /**
521
521
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
522
522
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
523
523
  */
524
- ErrorCode["METASTORE_NOT_EMPTY"] = "METASTORE_NOT_EMPTY";
524
+ METASTORE_NOT_EMPTY: 'METASTORE_NOT_EMPTY',
525
525
  /**
526
526
  * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
527
527
  * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
528
528
  */
529
- ErrorCode["PROVIDER_SHARE_NOT_ACCESSIBLE"] = "PROVIDER_SHARE_NOT_ACCESSIBLE";
530
- })(ErrorCode || (ErrorCode = {}));
531
- export var EvaluationStatusType;
532
- (function (EvaluationStatusType) {
533
- EvaluationStatusType["EVALUATION_STATUS_TYPE_UNSPECIFIED"] = "EVALUATION_STATUS_TYPE_UNSPECIFIED";
534
- EvaluationStatusType["RUNNING"] = "RUNNING";
535
- EvaluationStatusType["DONE"] = "DONE";
536
- EvaluationStatusType["NOT_STARTED"] = "NOT_STARTED";
537
- EvaluationStatusType["EVALUATION_FAILED"] = "EVALUATION_FAILED";
538
- EvaluationStatusType["EVALUATION_CANCELLED"] = "EVALUATION_CANCELLED";
539
- EvaluationStatusType["EVALUATION_TIMEOUT"] = "EVALUATION_TIMEOUT";
540
- })(EvaluationStatusType || (EvaluationStatusType = {}));
541
- export var Format;
542
- (function (Format) {
543
- Format["FORMAT_UNSPECIFIED"] = "FORMAT_UNSPECIFIED";
544
- Format["JSON_ARRAY"] = "JSON_ARRAY";
545
- Format["ARROW_STREAM"] = "ARROW_STREAM";
546
- Format["CSV"] = "CSV";
547
- })(Format || (Format = {}));
548
- export var GenieEvalAssessment;
549
- (function (GenieEvalAssessment) {
550
- GenieEvalAssessment["GENIE_EVAL_ASSESSMENT_UNSPECIFIED"] = "GENIE_EVAL_ASSESSMENT_UNSPECIFIED";
551
- GenieEvalAssessment["GOOD"] = "GOOD";
552
- GenieEvalAssessment["BAD"] = "BAD";
553
- GenieEvalAssessment["NEEDS_REVIEW"] = "NEEDS_REVIEW";
554
- })(GenieEvalAssessment || (GenieEvalAssessment = {}));
555
- export var GenieEvalResponseType;
556
- (function (GenieEvalResponseType) {
557
- GenieEvalResponseType["GENIE_EVAL_RESPONSE_TYPE_UNSPECIFIED"] = "GENIE_EVAL_RESPONSE_TYPE_UNSPECIFIED";
558
- GenieEvalResponseType["TEXT"] = "TEXT";
559
- GenieEvalResponseType["SQL"] = "SQL";
560
- })(GenieEvalResponseType || (GenieEvalResponseType = {}));
529
+ PROVIDER_SHARE_NOT_ACCESSIBLE: 'PROVIDER_SHARE_NOT_ACCESSIBLE',
530
+ };
531
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
532
+ export const EvaluationStatusType = {
533
+ EVALUATION_STATUS_TYPE_UNSPECIFIED: 'EVALUATION_STATUS_TYPE_UNSPECIFIED',
534
+ RUNNING: 'RUNNING',
535
+ DONE: 'DONE',
536
+ NOT_STARTED: 'NOT_STARTED',
537
+ EVALUATION_FAILED: 'EVALUATION_FAILED',
538
+ EVALUATION_CANCELLED: 'EVALUATION_CANCELLED',
539
+ EVALUATION_TIMEOUT: 'EVALUATION_TIMEOUT',
540
+ };
541
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
542
+ export const Format = {
543
+ FORMAT_UNSPECIFIED: 'FORMAT_UNSPECIFIED',
544
+ JSON_ARRAY: 'JSON_ARRAY',
545
+ ARROW_STREAM: 'ARROW_STREAM',
546
+ CSV: 'CSV',
547
+ };
548
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
549
+ export const GenieEvalAssessment = {
550
+ GENIE_EVAL_ASSESSMENT_UNSPECIFIED: 'GENIE_EVAL_ASSESSMENT_UNSPECIFIED',
551
+ GOOD: 'GOOD',
552
+ BAD: 'BAD',
553
+ NEEDS_REVIEW: 'NEEDS_REVIEW',
554
+ };
555
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
556
+ export const GenieEvalResponseType = {
557
+ GENIE_EVAL_RESPONSE_TYPE_UNSPECIFIED: 'GENIE_EVAL_RESPONSE_TYPE_UNSPECIFIED',
558
+ TEXT: 'TEXT',
559
+ SQL: 'SQL',
560
+ };
561
561
  /** Feedback rating for Genie messages */
562
- export var GenieFeedbackRating;
563
- (function (GenieFeedbackRating) {
564
- GenieFeedbackRating["GENIE_FEEDBACK_RATING_UNSPECIFIED"] = "GENIE_FEEDBACK_RATING_UNSPECIFIED";
565
- GenieFeedbackRating["POSITIVE"] = "POSITIVE";
566
- GenieFeedbackRating["NEGATIVE"] = "NEGATIVE";
567
- GenieFeedbackRating["NONE"] = "NONE";
568
- })(GenieFeedbackRating || (GenieFeedbackRating = {}));
562
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
563
+ export const GenieFeedbackRating = {
564
+ GENIE_FEEDBACK_RATING_UNSPECIFIED: 'GENIE_FEEDBACK_RATING_UNSPECIFIED',
565
+ POSITIVE: 'POSITIVE',
566
+ NEGATIVE: 'NEGATIVE',
567
+ NONE: 'NONE',
568
+ };
569
569
  /**
570
570
  * copied from proto3 / Google Well Known Types, source:
571
571
  * https://github.com/protocolbuffers/protobuf/blob/450d24ca820750c5db5112a6f0b0c2efb9758021/src/google/protobuf/struct.proto
@@ -574,48 +574,48 @@ export var GenieFeedbackRating;
574
574
  *
575
575
  * The JSON representation for `NullValue` is JSON `null`.
576
576
  */
577
- export var NullValue;
578
- (function (NullValue) {
577
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
578
+ export const NullValue = {
579
579
  /** Null value. */
580
- NullValue["NULL_VALUE"] = "NULL_VALUE";
581
- })(NullValue || (NullValue = {}));
582
- export var ScoreReason;
583
- (function (ScoreReason) {
584
- ScoreReason["SCORE_REASON_UNSPECIFIED"] = "SCORE_REASON_UNSPECIFIED";
585
- ScoreReason["EMPTY_RESULT"] = "EMPTY_RESULT";
586
- ScoreReason["RESULT_MISSING_ROWS"] = "RESULT_MISSING_ROWS";
587
- ScoreReason["RESULT_EXTRA_ROWS"] = "RESULT_EXTRA_ROWS";
588
- ScoreReason["RESULT_MISSING_COLUMNS"] = "RESULT_MISSING_COLUMNS";
589
- ScoreReason["RESULT_EXTRA_COLUMNS"] = "RESULT_EXTRA_COLUMNS";
590
- ScoreReason["SINGLE_CELL_DIFFERENCE"] = "SINGLE_CELL_DIFFERENCE";
591
- ScoreReason["EMPTY_GOOD_SQL"] = "EMPTY_GOOD_SQL";
592
- ScoreReason["COLUMN_TYPE_DIFFERENCE"] = "COLUMN_TYPE_DIFFERENCE";
580
+ NULL_VALUE: 'NULL_VALUE',
581
+ };
582
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
583
+ export const ScoreReason = {
584
+ SCORE_REASON_UNSPECIFIED: 'SCORE_REASON_UNSPECIFIED',
585
+ EMPTY_RESULT: 'EMPTY_RESULT',
586
+ RESULT_MISSING_ROWS: 'RESULT_MISSING_ROWS',
587
+ RESULT_EXTRA_ROWS: 'RESULT_EXTRA_ROWS',
588
+ RESULT_MISSING_COLUMNS: 'RESULT_MISSING_COLUMNS',
589
+ RESULT_EXTRA_COLUMNS: 'RESULT_EXTRA_COLUMNS',
590
+ SINGLE_CELL_DIFFERENCE: 'SINGLE_CELL_DIFFERENCE',
591
+ EMPTY_GOOD_SQL: 'EMPTY_GOOD_SQL',
592
+ COLUMN_TYPE_DIFFERENCE: 'COLUMN_TYPE_DIFFERENCE',
593
593
  /** Deprecated LLM Judge error categories - kept for backward compatibility */
594
- ScoreReason["LLM_JUDGE_MISSING_JOIN"] = "LLM_JUDGE_MISSING_JOIN";
595
- ScoreReason["LLM_JUDGE_WRONG_FILTER"] = "LLM_JUDGE_WRONG_FILTER";
596
- ScoreReason["LLM_JUDGE_WRONG_AGGREGATION"] = "LLM_JUDGE_WRONG_AGGREGATION";
597
- ScoreReason["LLM_JUDGE_WRONG_COLUMNS"] = "LLM_JUDGE_WRONG_COLUMNS";
598
- ScoreReason["LLM_JUDGE_SYNTAX_ERROR"] = "LLM_JUDGE_SYNTAX_ERROR";
599
- ScoreReason["LLM_JUDGE_SEMANTIC_ERROR"] = "LLM_JUDGE_SEMANTIC_ERROR";
594
+ LLM_JUDGE_MISSING_JOIN: 'LLM_JUDGE_MISSING_JOIN',
595
+ LLM_JUDGE_WRONG_FILTER: 'LLM_JUDGE_WRONG_FILTER',
596
+ LLM_JUDGE_WRONG_AGGREGATION: 'LLM_JUDGE_WRONG_AGGREGATION',
597
+ LLM_JUDGE_WRONG_COLUMNS: 'LLM_JUDGE_WRONG_COLUMNS',
598
+ LLM_JUDGE_SYNTAX_ERROR: 'LLM_JUDGE_SYNTAX_ERROR',
599
+ LLM_JUDGE_SEMANTIC_ERROR: 'LLM_JUDGE_SEMANTIC_ERROR',
600
600
  /** New LLM Judge error categories - aligned with LlmJudgeFunctionSpec */
601
- ScoreReason["LLM_JUDGE_OTHER"] = "LLM_JUDGE_OTHER";
602
- ScoreReason["LLM_JUDGE_MISSING_OR_INCORRECT_FILTER"] = "LLM_JUDGE_MISSING_OR_INCORRECT_FILTER";
603
- ScoreReason["LLM_JUDGE_INCOMPLETE_OR_PARTIAL_OUTPUT"] = "LLM_JUDGE_INCOMPLETE_OR_PARTIAL_OUTPUT";
604
- ScoreReason["LLM_JUDGE_MISINTERPRETATION_OF_USER_REQUEST"] = "LLM_JUDGE_MISINTERPRETATION_OF_USER_REQUEST";
605
- ScoreReason["LLM_JUDGE_INSTRUCTION_COMPLIANCE_OR_MISSING_BUSINESS_LOGIC"] = "LLM_JUDGE_INSTRUCTION_COMPLIANCE_OR_MISSING_BUSINESS_LOGIC";
606
- ScoreReason["LLM_JUDGE_INCORRECT_METRIC_CALCULATION"] = "LLM_JUDGE_INCORRECT_METRIC_CALCULATION";
607
- ScoreReason["LLM_JUDGE_INCORRECT_TABLE_OR_FIELD_USAGE"] = "LLM_JUDGE_INCORRECT_TABLE_OR_FIELD_USAGE";
608
- ScoreReason["LLM_JUDGE_INCORRECT_FUNCTION_USAGE"] = "LLM_JUDGE_INCORRECT_FUNCTION_USAGE";
609
- ScoreReason["LLM_JUDGE_MISSING_OR_INCORRECT_JOIN"] = "LLM_JUDGE_MISSING_OR_INCORRECT_JOIN";
610
- ScoreReason["LLM_JUDGE_MISSING_OR_INCORRECT_AGGREGATION"] = "LLM_JUDGE_MISSING_OR_INCORRECT_AGGREGATION";
611
- ScoreReason["LLM_JUDGE_FORMATTING_ERROR"] = "LLM_JUDGE_FORMATTING_ERROR";
612
- })(ScoreReason || (ScoreReason = {}));
601
+ LLM_JUDGE_OTHER: 'LLM_JUDGE_OTHER',
602
+ LLM_JUDGE_MISSING_OR_INCORRECT_FILTER: 'LLM_JUDGE_MISSING_OR_INCORRECT_FILTER',
603
+ LLM_JUDGE_INCOMPLETE_OR_PARTIAL_OUTPUT: 'LLM_JUDGE_INCOMPLETE_OR_PARTIAL_OUTPUT',
604
+ LLM_JUDGE_MISINTERPRETATION_OF_USER_REQUEST: 'LLM_JUDGE_MISINTERPRETATION_OF_USER_REQUEST',
605
+ LLM_JUDGE_INSTRUCTION_COMPLIANCE_OR_MISSING_BUSINESS_LOGIC: 'LLM_JUDGE_INSTRUCTION_COMPLIANCE_OR_MISSING_BUSINESS_LOGIC',
606
+ LLM_JUDGE_INCORRECT_METRIC_CALCULATION: 'LLM_JUDGE_INCORRECT_METRIC_CALCULATION',
607
+ LLM_JUDGE_INCORRECT_TABLE_OR_FIELD_USAGE: 'LLM_JUDGE_INCORRECT_TABLE_OR_FIELD_USAGE',
608
+ LLM_JUDGE_INCORRECT_FUNCTION_USAGE: 'LLM_JUDGE_INCORRECT_FUNCTION_USAGE',
609
+ LLM_JUDGE_MISSING_OR_INCORRECT_JOIN: 'LLM_JUDGE_MISSING_OR_INCORRECT_JOIN',
610
+ LLM_JUDGE_MISSING_OR_INCORRECT_AGGREGATION: 'LLM_JUDGE_MISSING_OR_INCORRECT_AGGREGATION',
611
+ LLM_JUDGE_FORMATTING_ERROR: 'LLM_JUDGE_FORMATTING_ERROR',
612
+ };
613
613
  /** Purpose/intent of a text attachment */
614
- export var TextAttachmentPurpose;
615
- (function (TextAttachmentPurpose) {
616
- TextAttachmentPurpose["TEXT_ATTACHMENT_PURPOSE_UNSPECIFIED"] = "TEXT_ATTACHMENT_PURPOSE_UNSPECIFIED";
617
- TextAttachmentPurpose["FOLLOW_UP_QUESTION"] = "FOLLOW_UP_QUESTION";
618
- })(TextAttachmentPurpose || (TextAttachmentPurpose = {}));
614
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
615
+ export const TextAttachmentPurpose = {
616
+ TEXT_ATTACHMENT_PURPOSE_UNSPECIFIED: 'TEXT_ATTACHMENT_PURPOSE_UNSPECIFIED',
617
+ FOLLOW_UP_QUESTION: 'FOLLOW_UP_QUESTION',
618
+ };
619
619
  /**
620
620
  * ThoughtType.
621
621
  * The possible values are:
@@ -628,88 +628,87 @@ export var TextAttachmentPurpose;
628
628
  * The category of a Thought.
629
629
  * Additional values may be added in the future.
630
630
  */
631
- export var ThoughtType;
632
- (function (ThoughtType) {
633
- ThoughtType["THOUGHT_TYPE_UNSPECIFIED"] = "THOUGHT_TYPE_UNSPECIFIED";
631
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
632
+ export const ThoughtType = {
633
+ THOUGHT_TYPE_UNSPECIFIED: 'THOUGHT_TYPE_UNSPECIFIED',
634
634
  /** A high-level description of how the question was interpreted. */
635
- ThoughtType["THOUGHT_TYPE_DESCRIPTION"] = "THOUGHT_TYPE_DESCRIPTION";
635
+ THOUGHT_TYPE_DESCRIPTION: 'THOUGHT_TYPE_DESCRIPTION',
636
636
  /** How ambiguous parts of the question were resolved. */
637
- ThoughtType["THOUGHT_TYPE_UNDERSTANDING"] = "THOUGHT_TYPE_UNDERSTANDING";
637
+ THOUGHT_TYPE_UNDERSTANDING: 'THOUGHT_TYPE_UNDERSTANDING',
638
638
  /** Which tables or datasets were identified as relevant. */
639
- ThoughtType["THOUGHT_TYPE_DATA_SOURCING"] = "THOUGHT_TYPE_DATA_SOURCING";
639
+ THOUGHT_TYPE_DATA_SOURCING: 'THOUGHT_TYPE_DATA_SOURCING',
640
640
  /** Which author-defined instructions were referenced. */
641
- ThoughtType["THOUGHT_TYPE_INSTRUCTIONS"] = "THOUGHT_TYPE_INSTRUCTIONS";
641
+ THOUGHT_TYPE_INSTRUCTIONS: 'THOUGHT_TYPE_INSTRUCTIONS',
642
642
  /** The logical steps taken to compute the answer. */
643
- ThoughtType["THOUGHT_TYPE_STEPS"] = "THOUGHT_TYPE_STEPS";
644
- })(ThoughtType || (ThoughtType = {}));
645
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
646
- export var MessageError_Type;
647
- (function (MessageError_Type) {
648
- MessageError_Type["TYPE_UNSPECIFIED"] = "TYPE_UNSPECIFIED";
649
- MessageError_Type["UNEXPECTED_REPLY_PROCESS_EXCEPTION"] = "UNEXPECTED_REPLY_PROCESS_EXCEPTION";
650
- MessageError_Type["GENERIC_CHAT_COMPLETION_EXCEPTION"] = "GENERIC_CHAT_COMPLETION_EXCEPTION";
643
+ THOUGHT_TYPE_STEPS: 'THOUGHT_TYPE_STEPS',
644
+ };
645
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
646
+ export const MessageError_Type = {
647
+ TYPE_UNSPECIFIED: 'TYPE_UNSPECIFIED',
648
+ UNEXPECTED_REPLY_PROCESS_EXCEPTION: 'UNEXPECTED_REPLY_PROCESS_EXCEPTION',
649
+ GENERIC_CHAT_COMPLETION_EXCEPTION: 'GENERIC_CHAT_COMPLETION_EXCEPTION',
651
650
  /** TokenCounter estimates were off and OpenAi responds with an error due to the token limit. */
652
- MessageError_Type["CONTEXT_EXCEEDED_EXCEPTION"] = "CONTEXT_EXCEEDED_EXCEPTION";
653
- MessageError_Type["DEPLOYMENT_NOT_FOUND_EXCEPTION"] = "DEPLOYMENT_NOT_FOUND_EXCEPTION";
654
- MessageError_Type["FUNCTIONS_NOT_AVAILABLE_EXCEPTION"] = "FUNCTIONS_NOT_AVAILABLE_EXCEPTION";
655
- MessageError_Type["INVALID_COMPLETION_REQUEST_EXCEPTION"] = "INVALID_COMPLETION_REQUEST_EXCEPTION";
656
- MessageError_Type["CONTENT_FILTER_EXCEPTION"] = "CONTENT_FILTER_EXCEPTION";
657
- MessageError_Type["FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION"] = "FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION";
658
- MessageError_Type["RETRYABLE_PROCESSING_EXCEPTION"] = "RETRYABLE_PROCESSING_EXCEPTION";
659
- MessageError_Type["INVALID_FUNCTION_CALL_EXCEPTION"] = "INVALID_FUNCTION_CALL_EXCEPTION";
651
+ CONTEXT_EXCEEDED_EXCEPTION: 'CONTEXT_EXCEEDED_EXCEPTION',
652
+ DEPLOYMENT_NOT_FOUND_EXCEPTION: 'DEPLOYMENT_NOT_FOUND_EXCEPTION',
653
+ FUNCTIONS_NOT_AVAILABLE_EXCEPTION: 'FUNCTIONS_NOT_AVAILABLE_EXCEPTION',
654
+ INVALID_COMPLETION_REQUEST_EXCEPTION: 'INVALID_COMPLETION_REQUEST_EXCEPTION',
655
+ CONTENT_FILTER_EXCEPTION: 'CONTENT_FILTER_EXCEPTION',
656
+ FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION: 'FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION',
657
+ RETRYABLE_PROCESSING_EXCEPTION: 'RETRYABLE_PROCESSING_EXCEPTION',
658
+ INVALID_FUNCTION_CALL_EXCEPTION: 'INVALID_FUNCTION_CALL_EXCEPTION',
660
659
  /** Request can not fit into model or the configured limits and TokenCounter registers token limit exceeded. */
661
- MessageError_Type["LOCAL_CONTEXT_EXCEEDED_EXCEPTION"] = "LOCAL_CONTEXT_EXCEEDED_EXCEPTION";
662
- MessageError_Type["CHAT_COMPLETION_NETWORK_EXCEPTION"] = "CHAT_COMPLETION_NETWORK_EXCEPTION";
663
- MessageError_Type["INVALID_CHAT_COMPLETION_JSON_EXCEPTION"] = "INVALID_CHAT_COMPLETION_JSON_EXCEPTION";
664
- MessageError_Type["GENERIC_CHAT_COMPLETION_SERVICE_EXCEPTION"] = "GENERIC_CHAT_COMPLETION_SERVICE_EXCEPTION";
665
- MessageError_Type["WAREHOUSE_ACCESS_MISSING_EXCEPTION"] = "WAREHOUSE_ACCESS_MISSING_EXCEPTION";
666
- MessageError_Type["WAREHOUSE_NOT_FOUND_EXCEPTION"] = "WAREHOUSE_NOT_FOUND_EXCEPTION";
667
- MessageError_Type["NO_TABLES_TO_QUERY_EXCEPTION"] = "NO_TABLES_TO_QUERY_EXCEPTION";
668
- MessageError_Type["SQL_EXECUTION_EXCEPTION"] = "SQL_EXECUTION_EXCEPTION";
669
- MessageError_Type["REPLY_PROCESS_TIMEOUT_EXCEPTION"] = "REPLY_PROCESS_TIMEOUT_EXCEPTION";
670
- MessageError_Type["COULD_NOT_GET_UC_SCHEMA_EXCEPTION"] = "COULD_NOT_GET_UC_SCHEMA_EXCEPTION";
671
- MessageError_Type["INVALID_TABLE_IDENTIFIER_EXCEPTION"] = "INVALID_TABLE_IDENTIFIER_EXCEPTION";
672
- MessageError_Type["TOO_MANY_TABLES_EXCEPTION"] = "TOO_MANY_TABLES_EXCEPTION";
673
- MessageError_Type["FUNCTION_ARGUMENTS_INVALID_EXCEPTION"] = "FUNCTION_ARGUMENTS_INVALID_EXCEPTION";
674
- MessageError_Type["GENERIC_SQL_EXEC_API_CALL_EXCEPTION"] = "GENERIC_SQL_EXEC_API_CALL_EXCEPTION";
675
- MessageError_Type["CHAT_COMPLETION_CLIENT_EXCEPTION"] = "CHAT_COMPLETION_CLIENT_EXCEPTION";
676
- MessageError_Type["CHAT_COMPLETION_CLIENT_TIMEOUT_EXCEPTION"] = "CHAT_COMPLETION_CLIENT_TIMEOUT_EXCEPTION";
677
- MessageError_Type["UNKNOWN_AI_MODEL"] = "UNKNOWN_AI_MODEL";
678
- MessageError_Type["TABLES_MISSING_EXCEPTION"] = "TABLES_MISSING_EXCEPTION";
679
- MessageError_Type["MESSAGE_DELETED_WHILE_EXECUTING_EXCEPTION"] = "MESSAGE_DELETED_WHILE_EXECUTING_EXCEPTION";
680
- MessageError_Type["MESSAGE_UPDATED_WHILE_EXECUTING_EXCEPTION"] = "MESSAGE_UPDATED_WHILE_EXECUTING_EXCEPTION";
681
- MessageError_Type["BLOCK_MULTIPLE_EXECUTIONS_EXCEPTION"] = "BLOCK_MULTIPLE_EXECUTIONS_EXCEPTION";
682
- MessageError_Type["INVALID_CERTIFIED_ANSWER_IDENTIFIER_EXCEPTION"] = "INVALID_CERTIFIED_ANSWER_IDENTIFIER_EXCEPTION";
683
- MessageError_Type["TOO_MANY_CERTIFIED_ANSWERS_EXCEPTION"] = "TOO_MANY_CERTIFIED_ANSWERS_EXCEPTION";
684
- MessageError_Type["RATE_LIMIT_EXCEEDED_GENERIC_EXCEPTION"] = "RATE_LIMIT_EXCEEDED_GENERIC_EXCEPTION";
685
- MessageError_Type["RATE_LIMIT_EXCEEDED_SPECIFIED_WAIT_EXCEPTION"] = "RATE_LIMIT_EXCEEDED_SPECIFIED_WAIT_EXCEPTION";
686
- MessageError_Type["FUNCTION_CALL_MISSING_PARAMETER_EXCEPTION"] = "FUNCTION_CALL_MISSING_PARAMETER_EXCEPTION";
687
- MessageError_Type["INVALID_CERTIFIED_ANSWER_FUNCTION_EXCEPTION"] = "INVALID_CERTIFIED_ANSWER_FUNCTION_EXCEPTION";
688
- MessageError_Type["ILLEGAL_PARAMETER_DEFINITION_EXCEPTION"] = "ILLEGAL_PARAMETER_DEFINITION_EXCEPTION";
689
- MessageError_Type["NO_QUERY_TO_VISUALIZE_EXCEPTION"] = "NO_QUERY_TO_VISUALIZE_EXCEPTION";
690
- MessageError_Type["NO_DEPLOYMENTS_AVAILABLE_TO_WORKSPACE"] = "NO_DEPLOYMENTS_AVAILABLE_TO_WORKSPACE";
691
- MessageError_Type["STOP_PROCESS_DUE_TO_AUTO_REGENERATE"] = "STOP_PROCESS_DUE_TO_AUTO_REGENERATE";
692
- MessageError_Type["FUNCTION_ARGUMENTS_INVALID_TYPE_EXCEPTION"] = "FUNCTION_ARGUMENTS_INVALID_TYPE_EXCEPTION";
693
- MessageError_Type["MESSAGE_CANCELLED_WHILE_EXECUTING_EXCEPTION"] = "MESSAGE_CANCELLED_WHILE_EXECUTING_EXCEPTION";
694
- MessageError_Type["COULD_NOT_GET_MODEL_DEPLOYMENTS_EXCEPTION"] = "COULD_NOT_GET_MODEL_DEPLOYMENTS_EXCEPTION";
695
- MessageError_Type["GENERATED_SQL_QUERY_TOO_LONG_EXCEPTION"] = "GENERATED_SQL_QUERY_TOO_LONG_EXCEPTION";
696
- MessageError_Type["MISSING_SQL_QUERY_EXCEPTION"] = "MISSING_SQL_QUERY_EXCEPTION";
697
- MessageError_Type["DESCRIBE_QUERY_UNEXPECTED_FAILURE"] = "DESCRIBE_QUERY_UNEXPECTED_FAILURE";
698
- MessageError_Type["DESCRIBE_QUERY_TIMEOUT"] = "DESCRIBE_QUERY_TIMEOUT";
699
- MessageError_Type["DESCRIBE_QUERY_INVALID_SQL_ERROR"] = "DESCRIBE_QUERY_INVALID_SQL_ERROR";
700
- MessageError_Type["INVALID_SQL_UNKNOWN_TABLE_EXCEPTION"] = "INVALID_SQL_UNKNOWN_TABLE_EXCEPTION";
701
- MessageError_Type["INVALID_SQL_MULTIPLE_STATEMENTS_EXCEPTION"] = "INVALID_SQL_MULTIPLE_STATEMENTS_EXCEPTION";
702
- MessageError_Type["INVALID_SQL_MULTIPLE_DATASET_REFERENCES_EXCEPTION"] = "INVALID_SQL_MULTIPLE_DATASET_REFERENCES_EXCEPTION";
703
- MessageError_Type["MESSAGE_ATTACHMENT_TOO_LONG_ERROR"] = "MESSAGE_ATTACHMENT_TOO_LONG_ERROR";
704
- MessageError_Type["INTERNAL_CATALOG_PATH_OVERLAP_EXCEPTION"] = "INTERNAL_CATALOG_PATH_OVERLAP_EXCEPTION";
705
- MessageError_Type["INTERNAL_CATALOG_MISSING_UC_PATH_EXCEPTION"] = "INTERNAL_CATALOG_MISSING_UC_PATH_EXCEPTION";
706
- MessageError_Type["EXCEEDED_MAX_TOKEN_LENGTH_EXCEPTION"] = "EXCEEDED_MAX_TOKEN_LENGTH_EXCEPTION";
707
- MessageError_Type["INTERNAL_CATALOG_ASSET_CREATION_ONGOING_EXCEPTION"] = "INTERNAL_CATALOG_ASSET_CREATION_ONGOING_EXCEPTION";
708
- MessageError_Type["INTERNAL_CATALOG_ASSET_CREATION_FAILED_EXCEPTION"] = "INTERNAL_CATALOG_ASSET_CREATION_FAILED_EXCEPTION";
709
- MessageError_Type["INTERNAL_CATALOG_ASSET_CREATION_UNSUPPORTED_EXCEPTION"] = "INTERNAL_CATALOG_ASSET_CREATION_UNSUPPORTED_EXCEPTION";
710
- MessageError_Type["UNSUPPORTED_CONVERSATION_TYPE_EXCEPTION"] = "UNSUPPORTED_CONVERSATION_TYPE_EXCEPTION";
711
- MessageError_Type["COULD_NOT_GET_DASHBOARD_SCHEMA_EXCEPTION"] = "COULD_NOT_GET_DASHBOARD_SCHEMA_EXCEPTION";
712
- })(MessageError_Type || (MessageError_Type = {}));
660
+ LOCAL_CONTEXT_EXCEEDED_EXCEPTION: 'LOCAL_CONTEXT_EXCEEDED_EXCEPTION',
661
+ CHAT_COMPLETION_NETWORK_EXCEPTION: 'CHAT_COMPLETION_NETWORK_EXCEPTION',
662
+ INVALID_CHAT_COMPLETION_JSON_EXCEPTION: 'INVALID_CHAT_COMPLETION_JSON_EXCEPTION',
663
+ GENERIC_CHAT_COMPLETION_SERVICE_EXCEPTION: 'GENERIC_CHAT_COMPLETION_SERVICE_EXCEPTION',
664
+ WAREHOUSE_ACCESS_MISSING_EXCEPTION: 'WAREHOUSE_ACCESS_MISSING_EXCEPTION',
665
+ WAREHOUSE_NOT_FOUND_EXCEPTION: 'WAREHOUSE_NOT_FOUND_EXCEPTION',
666
+ NO_TABLES_TO_QUERY_EXCEPTION: 'NO_TABLES_TO_QUERY_EXCEPTION',
667
+ SQL_EXECUTION_EXCEPTION: 'SQL_EXECUTION_EXCEPTION',
668
+ REPLY_PROCESS_TIMEOUT_EXCEPTION: 'REPLY_PROCESS_TIMEOUT_EXCEPTION',
669
+ COULD_NOT_GET_UC_SCHEMA_EXCEPTION: 'COULD_NOT_GET_UC_SCHEMA_EXCEPTION',
670
+ INVALID_TABLE_IDENTIFIER_EXCEPTION: 'INVALID_TABLE_IDENTIFIER_EXCEPTION',
671
+ TOO_MANY_TABLES_EXCEPTION: 'TOO_MANY_TABLES_EXCEPTION',
672
+ FUNCTION_ARGUMENTS_INVALID_EXCEPTION: 'FUNCTION_ARGUMENTS_INVALID_EXCEPTION',
673
+ GENERIC_SQL_EXEC_API_CALL_EXCEPTION: 'GENERIC_SQL_EXEC_API_CALL_EXCEPTION',
674
+ CHAT_COMPLETION_CLIENT_EXCEPTION: 'CHAT_COMPLETION_CLIENT_EXCEPTION',
675
+ CHAT_COMPLETION_CLIENT_TIMEOUT_EXCEPTION: 'CHAT_COMPLETION_CLIENT_TIMEOUT_EXCEPTION',
676
+ UNKNOWN_AI_MODEL: 'UNKNOWN_AI_MODEL',
677
+ TABLES_MISSING_EXCEPTION: 'TABLES_MISSING_EXCEPTION',
678
+ MESSAGE_DELETED_WHILE_EXECUTING_EXCEPTION: 'MESSAGE_DELETED_WHILE_EXECUTING_EXCEPTION',
679
+ MESSAGE_UPDATED_WHILE_EXECUTING_EXCEPTION: 'MESSAGE_UPDATED_WHILE_EXECUTING_EXCEPTION',
680
+ BLOCK_MULTIPLE_EXECUTIONS_EXCEPTION: 'BLOCK_MULTIPLE_EXECUTIONS_EXCEPTION',
681
+ INVALID_CERTIFIED_ANSWER_IDENTIFIER_EXCEPTION: 'INVALID_CERTIFIED_ANSWER_IDENTIFIER_EXCEPTION',
682
+ TOO_MANY_CERTIFIED_ANSWERS_EXCEPTION: 'TOO_MANY_CERTIFIED_ANSWERS_EXCEPTION',
683
+ RATE_LIMIT_EXCEEDED_GENERIC_EXCEPTION: 'RATE_LIMIT_EXCEEDED_GENERIC_EXCEPTION',
684
+ RATE_LIMIT_EXCEEDED_SPECIFIED_WAIT_EXCEPTION: 'RATE_LIMIT_EXCEEDED_SPECIFIED_WAIT_EXCEPTION',
685
+ FUNCTION_CALL_MISSING_PARAMETER_EXCEPTION: 'FUNCTION_CALL_MISSING_PARAMETER_EXCEPTION',
686
+ INVALID_CERTIFIED_ANSWER_FUNCTION_EXCEPTION: 'INVALID_CERTIFIED_ANSWER_FUNCTION_EXCEPTION',
687
+ ILLEGAL_PARAMETER_DEFINITION_EXCEPTION: 'ILLEGAL_PARAMETER_DEFINITION_EXCEPTION',
688
+ NO_QUERY_TO_VISUALIZE_EXCEPTION: 'NO_QUERY_TO_VISUALIZE_EXCEPTION',
689
+ NO_DEPLOYMENTS_AVAILABLE_TO_WORKSPACE: 'NO_DEPLOYMENTS_AVAILABLE_TO_WORKSPACE',
690
+ STOP_PROCESS_DUE_TO_AUTO_REGENERATE: 'STOP_PROCESS_DUE_TO_AUTO_REGENERATE',
691
+ FUNCTION_ARGUMENTS_INVALID_TYPE_EXCEPTION: 'FUNCTION_ARGUMENTS_INVALID_TYPE_EXCEPTION',
692
+ MESSAGE_CANCELLED_WHILE_EXECUTING_EXCEPTION: 'MESSAGE_CANCELLED_WHILE_EXECUTING_EXCEPTION',
693
+ COULD_NOT_GET_MODEL_DEPLOYMENTS_EXCEPTION: 'COULD_NOT_GET_MODEL_DEPLOYMENTS_EXCEPTION',
694
+ GENERATED_SQL_QUERY_TOO_LONG_EXCEPTION: 'GENERATED_SQL_QUERY_TOO_LONG_EXCEPTION',
695
+ MISSING_SQL_QUERY_EXCEPTION: 'MISSING_SQL_QUERY_EXCEPTION',
696
+ DESCRIBE_QUERY_UNEXPECTED_FAILURE: 'DESCRIBE_QUERY_UNEXPECTED_FAILURE',
697
+ DESCRIBE_QUERY_TIMEOUT: 'DESCRIBE_QUERY_TIMEOUT',
698
+ DESCRIBE_QUERY_INVALID_SQL_ERROR: 'DESCRIBE_QUERY_INVALID_SQL_ERROR',
699
+ INVALID_SQL_UNKNOWN_TABLE_EXCEPTION: 'INVALID_SQL_UNKNOWN_TABLE_EXCEPTION',
700
+ INVALID_SQL_MULTIPLE_STATEMENTS_EXCEPTION: 'INVALID_SQL_MULTIPLE_STATEMENTS_EXCEPTION',
701
+ INVALID_SQL_MULTIPLE_DATASET_REFERENCES_EXCEPTION: 'INVALID_SQL_MULTIPLE_DATASET_REFERENCES_EXCEPTION',
702
+ MESSAGE_ATTACHMENT_TOO_LONG_ERROR: 'MESSAGE_ATTACHMENT_TOO_LONG_ERROR',
703
+ INTERNAL_CATALOG_PATH_OVERLAP_EXCEPTION: 'INTERNAL_CATALOG_PATH_OVERLAP_EXCEPTION',
704
+ INTERNAL_CATALOG_MISSING_UC_PATH_EXCEPTION: 'INTERNAL_CATALOG_MISSING_UC_PATH_EXCEPTION',
705
+ EXCEEDED_MAX_TOKEN_LENGTH_EXCEPTION: 'EXCEEDED_MAX_TOKEN_LENGTH_EXCEPTION',
706
+ INTERNAL_CATALOG_ASSET_CREATION_ONGOING_EXCEPTION: 'INTERNAL_CATALOG_ASSET_CREATION_ONGOING_EXCEPTION',
707
+ INTERNAL_CATALOG_ASSET_CREATION_FAILED_EXCEPTION: 'INTERNAL_CATALOG_ASSET_CREATION_FAILED_EXCEPTION',
708
+ INTERNAL_CATALOG_ASSET_CREATION_UNSUPPORTED_EXCEPTION: 'INTERNAL_CATALOG_ASSET_CREATION_UNSUPPORTED_EXCEPTION',
709
+ UNSUPPORTED_CONVERSATION_TYPE_EXCEPTION: 'UNSUPPORTED_CONVERSATION_TYPE_EXCEPTION',
710
+ COULD_NOT_GET_DASHBOARD_SCHEMA_EXCEPTION: 'COULD_NOT_GET_DASHBOARD_SCHEMA_EXCEPTION',
711
+ };
713
712
  /**
714
713
  * MessageStatus.
715
714
  * The possible values are:
@@ -724,31 +723,29 @@ export var MessageError_Type;
724
723
  * * `QUERY_RESULT_EXPIRED`: SQL result is not available anymore. The user needs to rerun the query. Rerun the SQL query result by calling [executeMessageAttachmentQuery](:method:genie/executeMessageAttachmentQuery) API.
725
724
  * * `CANCELLED`: Message has been cancelled.
726
725
  */
727
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
728
- export var MessageStatus_MessageStatus;
729
- (function (MessageStatus_MessageStatus) {
730
- MessageStatus_MessageStatus["FETCHING_METADATA"] = "FETCHING_METADATA";
731
- MessageStatus_MessageStatus["FILTERING_CONTEXT"] = "FILTERING_CONTEXT";
732
- MessageStatus_MessageStatus["ASKING_AI"] = "ASKING_AI";
733
- MessageStatus_MessageStatus["PENDING_WAREHOUSE"] = "PENDING_WAREHOUSE";
734
- MessageStatus_MessageStatus["EXECUTING_QUERY"] = "EXECUTING_QUERY";
735
- MessageStatus_MessageStatus["FAILED"] = "FAILED";
736
- MessageStatus_MessageStatus["COMPLETED"] = "COMPLETED";
737
- MessageStatus_MessageStatus["SUBMITTED"] = "SUBMITTED";
738
- MessageStatus_MessageStatus["QUERY_RESULT_EXPIRED"] = "QUERY_RESULT_EXPIRED";
739
- MessageStatus_MessageStatus["CANCELLED"] = "CANCELLED";
740
- })(MessageStatus_MessageStatus || (MessageStatus_MessageStatus = {}));
741
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
742
- export var StatementStatus_State;
743
- (function (StatementStatus_State) {
744
- StatementStatus_State["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
745
- StatementStatus_State["PENDING"] = "PENDING";
746
- StatementStatus_State["RUNNING"] = "RUNNING";
747
- StatementStatus_State["SUCCEEDED"] = "SUCCEEDED";
748
- StatementStatus_State["FAILED"] = "FAILED";
749
- StatementStatus_State["CANCELED"] = "CANCELED";
750
- StatementStatus_State["CLOSED"] = "CLOSED";
751
- })(StatementStatus_State || (StatementStatus_State = {}));
726
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
727
+ export const MessageStatus_MessageStatus = {
728
+ FETCHING_METADATA: 'FETCHING_METADATA',
729
+ FILTERING_CONTEXT: 'FILTERING_CONTEXT',
730
+ ASKING_AI: 'ASKING_AI',
731
+ PENDING_WAREHOUSE: 'PENDING_WAREHOUSE',
732
+ EXECUTING_QUERY: 'EXECUTING_QUERY',
733
+ FAILED: 'FAILED',
734
+ COMPLETED: 'COMPLETED',
735
+ SUBMITTED: 'SUBMITTED',
736
+ QUERY_RESULT_EXPIRED: 'QUERY_RESULT_EXPIRED',
737
+ CANCELLED: 'CANCELLED',
738
+ };
739
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
740
+ export const StatementStatus_State = {
741
+ STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',
742
+ PENDING: 'PENDING',
743
+ RUNNING: 'RUNNING',
744
+ SUCCEEDED: 'SUCCEEDED',
745
+ FAILED: 'FAILED',
746
+ CANCELED: 'CANCELED',
747
+ CLOSED: 'CLOSED',
748
+ };
752
749
  export const unmarshalChunkInfoSchema = z
753
750
  .object({
754
751
  chunk_index: z.number().optional(),
@@ -779,7 +776,7 @@ export const unmarshalColumnInfoSchema = z
779
776
  .object({
780
777
  name: z.string().optional(),
781
778
  type_text: z.string().optional(),
782
- type_name: z.enum(ColumnTypeName).optional(),
779
+ type_name: z.string().optional(),
783
780
  position: z.number().optional(),
784
781
  type_precision: z.number().optional(),
785
782
  type_scale: z.number().optional(),
@@ -819,7 +816,7 @@ export const unmarshalColumnMaskSchema = z
819
816
  }));
820
817
  export const unmarshalDatabricksServiceExceptionProtoSchema = z
821
818
  .object({
822
- error_code: z.enum(ErrorCode).optional(),
819
+ error_code: z.string().optional(),
823
820
  message: z.string().optional(),
824
821
  stack_trace: z.string().optional(),
825
822
  })
@@ -930,7 +927,7 @@ export const unmarshalGenieEvalResponseSchema = z
930
927
  sql_execution_result: z
931
928
  .lazy(() => unmarshalStatementResponseSchema)
932
929
  .optional(),
933
- response_type: z.enum(GenieEvalResponseType).optional(),
930
+ response_type: z.string().optional(),
934
931
  })
935
932
  .transform(d => ({
936
933
  response: d.response,
@@ -942,7 +939,7 @@ export const unmarshalGenieEvalResultSchema = z
942
939
  result_id: z.string().optional(),
943
940
  space_id: z.string().optional(),
944
941
  benchmark_question_id: z.string().optional(),
945
- status: z.enum(EvaluationStatusType).optional(),
942
+ status: z.string().optional(),
946
943
  question: z.string().optional(),
947
944
  benchmark_answer: z.string().optional(),
948
945
  created_by_user: z
@@ -964,10 +961,10 @@ export const unmarshalGenieEvalResultDetailsSchema = z
964
961
  result_id: z.string().optional(),
965
962
  space_id: z.string().optional(),
966
963
  benchmark_question_id: z.string().optional(),
967
- eval_run_status: z.enum(EvaluationStatusType).optional(),
968
- assessment: z.enum(GenieEvalAssessment).optional(),
964
+ eval_run_status: z.string().optional(),
965
+ assessment: z.string().optional(),
969
966
  manual_assessment: z.boolean().optional(),
970
- assessment_reasons: z.array(z.enum(ScoreReason)).optional(),
967
+ assessment_reasons: z.array(z.string()).optional(),
971
968
  actual_response: z
972
969
  .array(z.lazy(() => unmarshalGenieEvalResponseSchema))
973
970
  .optional(),
@@ -989,7 +986,7 @@ export const unmarshalGenieEvalResultDetailsSchema = z
989
986
  export const unmarshalGenieEvalRunResponseSchema = z
990
987
  .object({
991
988
  eval_run_id: z.string().optional(),
992
- eval_run_status: z.enum(EvaluationStatusType).optional(),
989
+ eval_run_status: z.string().optional(),
993
990
  run_by_user: z
994
991
  .union([z.number(), z.bigint()])
995
992
  .transform(v => BigInt(v))
@@ -1032,7 +1029,7 @@ export const unmarshalGenieEvalRunResponseSchema = z
1032
1029
  }));
1033
1030
  export const unmarshalGenieFeedbackSchema = z
1034
1031
  .object({
1035
- rating: z.enum(GenieFeedbackRating).optional(),
1032
+ rating: z.string().optional(),
1036
1033
  comment: z.string().optional(),
1037
1034
  })
1038
1035
  .transform(d => ({
@@ -1156,7 +1153,7 @@ export const unmarshalGenieMessageSchema = z
1156
1153
  .union([z.number(), z.bigint()])
1157
1154
  .transform(v => BigInt(v))
1158
1155
  .optional(),
1159
- status: z.enum(MessageStatus_MessageStatus).optional(),
1156
+ status: z.string().optional(),
1160
1157
  content: z.string().optional(),
1161
1158
  attachments: z
1162
1159
  .array(z.lazy(() => unmarshalGenieAttachmentSchema))
@@ -1306,7 +1303,7 @@ export const unmarshalMapStringValueEntrySchema = z
1306
1303
  export const unmarshalMessageErrorSchema = z
1307
1304
  .object({
1308
1305
  error: z.string().optional(),
1309
- type: z.enum(MessageError_Type).optional(),
1306
+ type: z.string().optional(),
1310
1307
  })
1311
1308
  .transform(d => ({
1312
1309
  error: d.error,
@@ -1385,7 +1382,7 @@ export const unmarshalResultDataSchema = z
1385
1382
  }));
1386
1383
  export const unmarshalResultManifestSchema = z
1387
1384
  .object({
1388
- format: z.enum(Format).optional(),
1385
+ format: z.string().optional(),
1389
1386
  schema: z.lazy(() => unmarshalSchemaSchema).optional(),
1390
1387
  total_chunk_count: z.number().optional(),
1391
1388
  chunks: z.array(z.lazy(() => unmarshalChunkInfoSchema)).optional(),
@@ -1432,7 +1429,7 @@ export const unmarshalStatementResponseSchema = z
1432
1429
  }));
1433
1430
  export const unmarshalStatementStatusSchema = z
1434
1431
  .object({
1435
- state: z.enum(StatementStatus_State).optional(),
1432
+ state: z.string().optional(),
1436
1433
  error: z
1437
1434
  .lazy(() => unmarshalDatabricksServiceExceptionProtoSchema)
1438
1435
  .optional(),
@@ -1456,7 +1453,7 @@ export const unmarshalTextAttachmentSchema = z
1456
1453
  .object({
1457
1454
  content: z.string().optional(),
1458
1455
  id: z.string().optional(),
1459
- purpose: z.enum(TextAttachmentPurpose).optional(),
1456
+ purpose: z.string().optional(),
1460
1457
  })
1461
1458
  .transform(d => ({
1462
1459
  content: d.content,
@@ -1465,7 +1462,7 @@ export const unmarshalTextAttachmentSchema = z
1465
1462
  }));
1466
1463
  export const unmarshalThoughtSchema = z
1467
1464
  .object({
1468
- thought_type: z.enum(ThoughtType).optional(),
1465
+ thought_type: z.string().optional(),
1469
1466
  content: z.string().optional(),
1470
1467
  })
1471
1468
  .transform(d => ({
@@ -1474,7 +1471,7 @@ export const unmarshalThoughtSchema = z
1474
1471
  }));
1475
1472
  export const unmarshalValueSchema = z
1476
1473
  .object({
1477
- null_value: z.enum(NullValue).optional(),
1474
+ null_value: z.string().optional(),
1478
1475
  number_value: z.number().optional(),
1479
1476
  string_value: z.string().optional(),
1480
1477
  bool_value: z.boolean().optional(),
@@ -1586,7 +1583,7 @@ export const marshalGenieSendMessageFeedbackRequestSchema = z
1586
1583
  spaceId: z.string().optional(),
1587
1584
  conversationId: z.string().optional(),
1588
1585
  messageId: z.string().optional(),
1589
- rating: z.enum(GenieFeedbackRating).optional(),
1586
+ rating: z.string().optional(),
1590
1587
  comment: z.string().optional(),
1591
1588
  })
1592
1589
  .transform(d => ({