@databricks/sdk-genie 0.0.0-dev → 0.1.0-dev.2
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/LICENSE +203 -0
- package/dist/v1/client.d.ts +154 -0
- package/dist/v1/client.d.ts.map +1 -0
- package/dist/v1/client.js +1004 -0
- package/dist/v1/client.js.map +1 -0
- package/dist/v1/index.d.ts +4 -0
- package/dist/v1/index.d.ts.map +1 -0
- package/dist/v1/index.js +4 -0
- package/dist/v1/index.js.map +1 -0
- package/dist/v1/model.d.ts +1728 -0
- package/dist/v1/model.d.ts.map +1 -0
- package/dist/v1/model.js +1627 -0
- package/dist/v1/model.js.map +1 -0
- package/dist/v1/transport.d.ts +5 -0
- package/dist/v1/transport.d.ts.map +1 -0
- package/dist/v1/transport.js +57 -0
- package/dist/v1/transport.js.map +1 -0
- package/dist/v1/utils.d.ts +22 -0
- package/dist/v1/utils.d.ts.map +1 -0
- package/dist/v1/utils.js +113 -0
- package/dist/v1/utils.js.map +1 -0
- package/package.json +38 -4
- package/src/v1/client.ts +1317 -0
- package/src/v1/index.ts +102 -0
- package/src/v1/model.ts +2738 -0
- package/src/v1/transport.ts +73 -0
- package/src/v1/utils.ts +156 -0
- package/README.md +0 -1
- package/index.js +0 -1
package/dist/v1/model.js
ADDED
|
@@ -0,0 +1,1627 @@
|
|
|
1
|
+
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
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 = {}));
|
|
30
|
+
/** Error codes returned by Databricks APIs to indicate specific failure conditions. */
|
|
31
|
+
export var ErrorCode;
|
|
32
|
+
(function (ErrorCode) {
|
|
33
|
+
/**
|
|
34
|
+
* Unknown error. This error generally should not be returned explicitly, but will be used
|
|
35
|
+
* as a fallback if the error enum is missing from the message for some reason.
|
|
36
|
+
*
|
|
37
|
+
* It's assigned tag 0 to follow the best practice from
|
|
38
|
+
* https://developers.google.com/protocol-buffers/docs/style#enums
|
|
39
|
+
*
|
|
40
|
+
* TODO(PLAT-55898): Add custom option to declare HTTP and gRPC mappings.
|
|
41
|
+
* Maps to:
|
|
42
|
+
* - google.rpc.Code: UNKNOWN = 2;
|
|
43
|
+
* - HTTP code: 500 Internal Server Error
|
|
44
|
+
*/
|
|
45
|
+
ErrorCode["UNKNOWN"] = "UNKNOWN";
|
|
46
|
+
/**
|
|
47
|
+
* Internal error. This means that some invariants expected by the underlying system have been
|
|
48
|
+
* broken. This error code is reserved for serious errors, which generally cannot be resolved
|
|
49
|
+
* by the user.
|
|
50
|
+
*
|
|
51
|
+
* Prefer this over all kinds of detailed error messages (e.g IO_ERROR), unless there's some
|
|
52
|
+
* automation that relies on the custom error code.
|
|
53
|
+
*
|
|
54
|
+
* Maps to:
|
|
55
|
+
* - google.rpc.Code: INTERNAL = 13;
|
|
56
|
+
* - HTTP code: 500 Internal Server Error
|
|
57
|
+
*/
|
|
58
|
+
ErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
59
|
+
/**
|
|
60
|
+
* The service is currently unavailable. This is most likely a transient condition, which can be
|
|
61
|
+
* corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent
|
|
62
|
+
* operations.
|
|
63
|
+
*
|
|
64
|
+
* Prefer this over SERVICE_UNDER_MAINTENANCE, WORKSPACE_TEMPORARILY_UNAVAILABLE.
|
|
65
|
+
*
|
|
66
|
+
* See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
|
|
67
|
+
* for guideline on how to pick this vs RESOURCE_EXHAUSTED.
|
|
68
|
+
*
|
|
69
|
+
* Maps to:
|
|
70
|
+
* - google.rpc.Code: UNAVAILABLE = 14;
|
|
71
|
+
* - HTTP code: 503 Service Unavailable
|
|
72
|
+
*/
|
|
73
|
+
ErrorCode["TEMPORARILY_UNAVAILABLE"] = "TEMPORARILY_UNAVAILABLE";
|
|
74
|
+
/**
|
|
75
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
76
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
77
|
+
* Indicates that an IOException has been internally thrown.
|
|
78
|
+
*/
|
|
79
|
+
ErrorCode["IO_ERROR"] = "IO_ERROR";
|
|
80
|
+
/**
|
|
81
|
+
* The request is invalid. Prefer more specific error code whenever possible.
|
|
82
|
+
* Also see similar recommendation for the google.rpc.Code.FAILED_PRECONDITION.
|
|
83
|
+
*
|
|
84
|
+
* Prefer this error code over MALFORMED_REQUEST, INVALID_STATE, UNPARSEABLE_HTTP_ERROR.
|
|
85
|
+
*
|
|
86
|
+
* Maps to:
|
|
87
|
+
* - google.rpc.Code: FAILED_PRECONDITION = 9;
|
|
88
|
+
* - HTTP code: 400 Bad Request
|
|
89
|
+
*/
|
|
90
|
+
ErrorCode["BAD_REQUEST"] = "BAD_REQUEST";
|
|
91
|
+
/**
|
|
92
|
+
* An external service is unavailable temporarily as it is being updated/re-deployed. Indicates
|
|
93
|
+
* gateway proxy to safely retry the request.
|
|
94
|
+
*/
|
|
95
|
+
ErrorCode["SERVICE_UNDER_MAINTENANCE"] = "SERVICE_UNDER_MAINTENANCE";
|
|
96
|
+
/** A workspace is temporarily unavailable as the workspace is being re-assigned. */
|
|
97
|
+
ErrorCode["WORKSPACE_TEMPORARILY_UNAVAILABLE"] = "WORKSPACE_TEMPORARILY_UNAVAILABLE";
|
|
98
|
+
/**
|
|
99
|
+
* The deadline expired before the operation could complete. For operations that change the state
|
|
100
|
+
* of the system, this error may be returned even if the operation has completed successfully.
|
|
101
|
+
* For example, a successful response from a server could have been delayed long enough for
|
|
102
|
+
* the deadline to expire. When possible - implementations should make sure further processing of
|
|
103
|
+
* the request is aborted, e.g. by throwing an exception instead of making the RPC request,
|
|
104
|
+
* making the database query, etc.
|
|
105
|
+
*
|
|
106
|
+
* Maps to:
|
|
107
|
+
* - google.rpc.Code: DEADLINE_EXCEEDED = 4;
|
|
108
|
+
* - HTTP code: 504 Gateway Timeout
|
|
109
|
+
*/
|
|
110
|
+
ErrorCode["DEADLINE_EXCEEDED"] = "DEADLINE_EXCEEDED";
|
|
111
|
+
/**
|
|
112
|
+
* The operation was canceled by the caller. An example - client closed the connection without
|
|
113
|
+
* waiting for a response.
|
|
114
|
+
*
|
|
115
|
+
* Maps to:
|
|
116
|
+
* - google.rpc.Code: CANCELLED = 1;
|
|
117
|
+
* - HTTP code: 499 Client Closed Request
|
|
118
|
+
*/
|
|
119
|
+
ErrorCode["CANCELLED"] = "CANCELLED";
|
|
120
|
+
/**
|
|
121
|
+
* The operation is rejected because of either rate limiting or resource quota,
|
|
122
|
+
* such as the client has sent too many requests recently or the client has allocated too many
|
|
123
|
+
* resources.
|
|
124
|
+
*
|
|
125
|
+
* See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
|
|
126
|
+
* for guideline on how to pick this vs TEMPORARILY_UNAVAILABLE.
|
|
127
|
+
*
|
|
128
|
+
* Maps to:
|
|
129
|
+
* - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
|
|
130
|
+
* - HTTP code: 429 Too Many Requests
|
|
131
|
+
*/
|
|
132
|
+
ErrorCode["RESOURCE_EXHAUSTED"] = "RESOURCE_EXHAUSTED";
|
|
133
|
+
/**
|
|
134
|
+
* The operation was aborted, typically due to a concurrency issue such as a sequencer
|
|
135
|
+
* check failure, transaction abort, or transaction conflict.
|
|
136
|
+
*
|
|
137
|
+
* Maps to:
|
|
138
|
+
* - google.rpc.Code: ABORTED = 10;
|
|
139
|
+
* - HTTP code: 409 Conflict
|
|
140
|
+
*/
|
|
141
|
+
ErrorCode["ABORTED"] = "ABORTED";
|
|
142
|
+
/**
|
|
143
|
+
* Operation was performed on a resource that does not exist,
|
|
144
|
+
* e.g. file or directory was not found.
|
|
145
|
+
*
|
|
146
|
+
* Maps to:
|
|
147
|
+
* - google.rpc.Code: NOT_FOUND = 5;
|
|
148
|
+
* - HTTP code: 404 Not Found
|
|
149
|
+
*/
|
|
150
|
+
ErrorCode["NOT_FOUND"] = "NOT_FOUND";
|
|
151
|
+
/**
|
|
152
|
+
* Operation was rejected due a conflict with an existing resource, e.g. attempted to create
|
|
153
|
+
* file or directory that already exists.
|
|
154
|
+
*
|
|
155
|
+
* Prefer this over RESOURCE_CONFLICT.
|
|
156
|
+
*
|
|
157
|
+
* Maps to:
|
|
158
|
+
* - google.rpc.Code: ALREADY_EXISTS = 6;
|
|
159
|
+
* - HTTP code: 409 Conflict
|
|
160
|
+
*/
|
|
161
|
+
ErrorCode["ALREADY_EXISTS"] = "ALREADY_EXISTS";
|
|
162
|
+
/**
|
|
163
|
+
* The request does not have valid authentication (AuthN) credentials for the operation.
|
|
164
|
+
*
|
|
165
|
+
* Prefer this over CUSTOMER_UNAUTHORIZED, unless you need to keep consistent behavior with legacy
|
|
166
|
+
* code.
|
|
167
|
+
* For authorization (AuthZ) errors use PERMISSION_DENIED.
|
|
168
|
+
*
|
|
169
|
+
* Maps to:
|
|
170
|
+
* - google.rpc.Code: UNAUTHENTICATED = 16;
|
|
171
|
+
* - HTTP code: 401 Unauthorized
|
|
172
|
+
*/
|
|
173
|
+
ErrorCode["UNAUTHENTICATED"] = "UNAUTHENTICATED";
|
|
174
|
+
/**
|
|
175
|
+
* The service is currently unavailable. Please note that the unavailability may or may not be transient.
|
|
176
|
+
* That means if this is a non-transient condition, retrying it does not work. If the unavailability
|
|
177
|
+
* is certainly a transient condition, pleases use `TEMPORARILY_UNAVAILABLE` which signals its transient
|
|
178
|
+
* nature explicitly.
|
|
179
|
+
* An example of this error code’s use case is that when DNS resolution fails, the DNS resolver does
|
|
180
|
+
* not know whether it is because the domain name is completely wrong (non-transient situation) or
|
|
181
|
+
* the domain name is valid but the DNS server does not have an entry for this domain name yet (transient
|
|
182
|
+
* situation). Hence, `UNAVAILABLE` is suitable for this case.
|
|
183
|
+
*
|
|
184
|
+
* Maps to:
|
|
185
|
+
* - google.rpc.Code: UNAVAILABLE = 14;
|
|
186
|
+
* - HTTP code: 503 Service Unavailable
|
|
187
|
+
*/
|
|
188
|
+
ErrorCode["UNAVAILABLE"] = "UNAVAILABLE";
|
|
189
|
+
/**
|
|
190
|
+
* Supplied value for a parameter was invalid (e.g., giving a number for a string parameter).
|
|
191
|
+
*
|
|
192
|
+
* Maps to:
|
|
193
|
+
* - google.rpc.Code: INVALID_ARGUMENT = 3;
|
|
194
|
+
* - HTTP code: 400 Bad Request
|
|
195
|
+
*/
|
|
196
|
+
ErrorCode["INVALID_PARAMETER_VALUE"] = "INVALID_PARAMETER_VALUE";
|
|
197
|
+
/**
|
|
198
|
+
* Indicates that the given API endpoint does not exist. Legacy, when possible - NOT_IMPLEMENTED
|
|
199
|
+
* should be used instead to indicate that API doesn't exist.
|
|
200
|
+
*
|
|
201
|
+
* Maps to:
|
|
202
|
+
* - google.rpc.Code: NOT_FOUND = 5;
|
|
203
|
+
* - HTTP code: 404 Not Found
|
|
204
|
+
*/
|
|
205
|
+
ErrorCode["ENDPOINT_NOT_FOUND"] = "ENDPOINT_NOT_FOUND";
|
|
206
|
+
/** Indicates that the given API request was malformed. */
|
|
207
|
+
ErrorCode["MALFORMED_REQUEST"] = "MALFORMED_REQUEST";
|
|
208
|
+
/**
|
|
209
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
210
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
211
|
+
* If one or more of the inputs to a given RPC are not in a valid state for the action.
|
|
212
|
+
*/
|
|
213
|
+
ErrorCode["INVALID_STATE"] = "INVALID_STATE";
|
|
214
|
+
/**
|
|
215
|
+
* The caller does not have permission to execute the specified operation.
|
|
216
|
+
* PERMISSION_DENIED must not be used for rejections caused by exhausting some resource,
|
|
217
|
+
* use RESOURCE_EXHAUSTED instead for those errors.
|
|
218
|
+
* PERMISSION_DENIED must not be used if the caller can not be identified,
|
|
219
|
+
* use CUSTOMER_UNAUTHORIZED instead for those errors.
|
|
220
|
+
* This error code does not imply the request is valid or the requested entity exists or
|
|
221
|
+
* satisfies other pre-conditions.
|
|
222
|
+
*
|
|
223
|
+
* Maps to:
|
|
224
|
+
* - google.rpc.Code: PERMISSION_DENIED = 7;
|
|
225
|
+
* - HTTP code: 403 Forbidden
|
|
226
|
+
*/
|
|
227
|
+
ErrorCode["PERMISSION_DENIED"] = "PERMISSION_DENIED";
|
|
228
|
+
/**
|
|
229
|
+
* NOTE: Deprecated due to inconsistent mapping in legacy code, see
|
|
230
|
+
* https://docs.google.com/document/d/17TZIKX_Y39cJMBr333lc-d5dTvvBLSu3DPUyGU5eMJg/edit?disco=AAAAzVGt6FA.
|
|
231
|
+
* Prefer using NOT_FOUND or PERMISSION_DENIED.
|
|
232
|
+
*
|
|
233
|
+
* If a given user/entity is trying to use a feature which has been disabled.
|
|
234
|
+
*
|
|
235
|
+
* Maps to:
|
|
236
|
+
* - google.rpc.Code: NOT_FOUND = 5;
|
|
237
|
+
* - HTTP code: 404 Not Found
|
|
238
|
+
*/
|
|
239
|
+
ErrorCode["FEATURE_DISABLED"] = "FEATURE_DISABLED";
|
|
240
|
+
/**
|
|
241
|
+
* The request does not have valid authentication (AuthN) credentials for the operation.
|
|
242
|
+
*
|
|
243
|
+
* For authentication (AuthN) errors prefer using UNAUTHENTICATED, unless you need to keep
|
|
244
|
+
* consistent behavior with legacy code.
|
|
245
|
+
* For authorization (AuthZ) errors use PERMISSION_DENIED.
|
|
246
|
+
*
|
|
247
|
+
* Important: name is confusing, this error code is for authentication (AuthN) errors, not
|
|
248
|
+
* authorization (AuthZ) errors. It maps to 401 Unauthorized and suffers from the same confusing
|
|
249
|
+
* naming. See https://datatracker.ietf.org/doc/html/rfc7235#section-3.1 - "[...] status code
|
|
250
|
+
* indicates that the request has not been applied because it lacks valid authentication
|
|
251
|
+
* credentials for the target resource. [...] If the request included authentication credentials,
|
|
252
|
+
* then the 401 response indicates that authorization has been refused for those credentials."
|
|
253
|
+
*
|
|
254
|
+
* Also, see https://stackoverflow.com/a/6937030/16352922, it covers it pretty well.
|
|
255
|
+
*
|
|
256
|
+
* Maps to:
|
|
257
|
+
* - google.rpc.Code: UNAUTHENTICATED = 16;
|
|
258
|
+
* - HTTP code: 401 Unauthorized
|
|
259
|
+
*/
|
|
260
|
+
ErrorCode["CUSTOMER_UNAUTHORIZED"] = "CUSTOMER_UNAUTHORIZED";
|
|
261
|
+
/**
|
|
262
|
+
* The operation is rejected because of request rate limit, for example rate limiting applied to
|
|
263
|
+
* users, workspaces, IP addresses, etc.
|
|
264
|
+
*
|
|
265
|
+
* Prefer a more generic RESOURCE_EXHAUSTED for the new use cases.
|
|
266
|
+
*
|
|
267
|
+
* See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
|
|
268
|
+
* for guideline on the rate limiting vs throttling.
|
|
269
|
+
*
|
|
270
|
+
* Maps to:
|
|
271
|
+
* - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
|
|
272
|
+
* - HTTP code: 429 Too Many Requests
|
|
273
|
+
*/
|
|
274
|
+
ErrorCode["REQUEST_LIMIT_EXCEEDED"] = "REQUEST_LIMIT_EXCEEDED";
|
|
275
|
+
/** Indicates API request was rejected due a conflict with an existing resource. */
|
|
276
|
+
ErrorCode["RESOURCE_CONFLICT"] = "RESOURCE_CONFLICT";
|
|
277
|
+
/**
|
|
278
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
279
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
280
|
+
* Indicates that the HTTP response cannot be correctly deserialized.
|
|
281
|
+
* This currently is only used in DUST test clients, and not by any real service code.
|
|
282
|
+
*/
|
|
283
|
+
ErrorCode["UNPARSEABLE_HTTP_ERROR"] = "UNPARSEABLE_HTTP_ERROR";
|
|
284
|
+
/**
|
|
285
|
+
* The operation is not implemented or is not supported/enabled in this service.
|
|
286
|
+
*
|
|
287
|
+
* Maps to:
|
|
288
|
+
* - google.rpc.Code: UNIMPLEMENTED = 12;
|
|
289
|
+
* - HTTP code: 501 Not Implemented
|
|
290
|
+
*/
|
|
291
|
+
ErrorCode["NOT_IMPLEMENTED"] = "NOT_IMPLEMENTED";
|
|
292
|
+
/**
|
|
293
|
+
* Unrecoverable data loss or corruption.
|
|
294
|
+
*
|
|
295
|
+
* One of the major use cases is to indicate that server failed to validate the integrity of
|
|
296
|
+
* the request. This error can occur when the checksum specified in the `X-Databricks-Checksum`
|
|
297
|
+
* request header (or trailer) doesn't match the actual request content checksum.
|
|
298
|
+
*
|
|
299
|
+
* Note, in case of the severe corruption that results in a malformed request, the server may
|
|
300
|
+
* send a generic `400 Bad Request` response rather than sending this error code.
|
|
301
|
+
*
|
|
302
|
+
* Maps to:
|
|
303
|
+
* - google.rpc.Code: DATA_LOSS = 15;
|
|
304
|
+
* - HTTP code: 500 Internal Server Error
|
|
305
|
+
*/
|
|
306
|
+
ErrorCode["DATA_LOSS"] = "DATA_LOSS";
|
|
307
|
+
/** If the user attempts to perform an invalid state transition on a shard. */
|
|
308
|
+
ErrorCode["INVALID_STATE_TRANSITION"] = "INVALID_STATE_TRANSITION";
|
|
309
|
+
/**
|
|
310
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
311
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
312
|
+
* Unable to perform the operation because the shard was locked by some other operation.
|
|
313
|
+
*/
|
|
314
|
+
ErrorCode["COULD_NOT_ACQUIRE_LOCK"] = "COULD_NOT_ACQUIRE_LOCK";
|
|
315
|
+
/**
|
|
316
|
+
* NOTE: Deprecated, prefer using ALREADY_EXISTS.
|
|
317
|
+
* Unlike ALREADY_EXISTS - this maps to HTTP code 400 Bad Request due to legacy reasons,
|
|
318
|
+
* remapping will be a backwards incompatible change.
|
|
319
|
+
*
|
|
320
|
+
* Operation was performed on a resource that already exists.
|
|
321
|
+
*/
|
|
322
|
+
ErrorCode["RESOURCE_ALREADY_EXISTS"] = "RESOURCE_ALREADY_EXISTS";
|
|
323
|
+
/**
|
|
324
|
+
* NOTE: Deprecated, prefer using NOT_FOUND - see the note for the RESOURCE_ALREADY_EXISTS,
|
|
325
|
+
* because this pair of codes is related and RESOURCE_ALREADY_EXISTS has bad mapping to the HTTP
|
|
326
|
+
* codes we added new error codes NOT_FOUND and ALREADY_EXISTS, and recommend to use them instead.
|
|
327
|
+
*
|
|
328
|
+
* Operation was performed on a resource that does not exist.
|
|
329
|
+
*/
|
|
330
|
+
ErrorCode["RESOURCE_DOES_NOT_EXIST"] = "RESOURCE_DOES_NOT_EXIST";
|
|
331
|
+
/**
|
|
332
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
333
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
334
|
+
*/
|
|
335
|
+
ErrorCode["QUOTA_EXCEEDED"] = "QUOTA_EXCEEDED";
|
|
336
|
+
/**
|
|
337
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
338
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
339
|
+
*/
|
|
340
|
+
ErrorCode["MAX_BLOCK_SIZE_EXCEEDED"] = "MAX_BLOCK_SIZE_EXCEEDED";
|
|
341
|
+
/**
|
|
342
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
343
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
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";
|
|
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
|
+
ErrorCode["DRY_RUN_FAILED"] = "DRY_RUN_FAILED";
|
|
353
|
+
/**
|
|
354
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
355
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
356
|
+
* Cluster request was rejected because it would exceed a resource limit.
|
|
357
|
+
*/
|
|
358
|
+
ErrorCode["RESOURCE_LIMIT_EXCEEDED"] = "RESOURCE_LIMIT_EXCEEDED";
|
|
359
|
+
/**
|
|
360
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
361
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
362
|
+
*/
|
|
363
|
+
ErrorCode["DIRECTORY_NOT_EMPTY"] = "DIRECTORY_NOT_EMPTY";
|
|
364
|
+
/**
|
|
365
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
366
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
367
|
+
*/
|
|
368
|
+
ErrorCode["DIRECTORY_PROTECTED"] = "DIRECTORY_PROTECTED";
|
|
369
|
+
/**
|
|
370
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
371
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
372
|
+
*/
|
|
373
|
+
ErrorCode["MAX_NOTEBOOK_SIZE_EXCEEDED"] = "MAX_NOTEBOOK_SIZE_EXCEEDED";
|
|
374
|
+
ErrorCode["MAX_CHILD_NODE_SIZE_EXCEEDED"] = "MAX_CHILD_NODE_SIZE_EXCEEDED";
|
|
375
|
+
/**
|
|
376
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
377
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
378
|
+
*/
|
|
379
|
+
ErrorCode["SEARCH_QUERY_TOO_LONG"] = "SEARCH_QUERY_TOO_LONG";
|
|
380
|
+
/**
|
|
381
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
382
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
383
|
+
*/
|
|
384
|
+
ErrorCode["SEARCH_QUERY_TOO_SHORT"] = "SEARCH_QUERY_TOO_SHORT";
|
|
385
|
+
/**
|
|
386
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
387
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
388
|
+
*/
|
|
389
|
+
ErrorCode["MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST"] = "MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST";
|
|
390
|
+
/**
|
|
391
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
392
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
393
|
+
*/
|
|
394
|
+
ErrorCode["PERMISSION_NOT_PROPAGATED"] = "PERMISSION_NOT_PROPAGATED";
|
|
395
|
+
/**
|
|
396
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
397
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
398
|
+
*/
|
|
399
|
+
ErrorCode["DEPLOYMENT_TIMEOUT"] = "DEPLOYMENT_TIMEOUT";
|
|
400
|
+
/**
|
|
401
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
402
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
403
|
+
*/
|
|
404
|
+
ErrorCode["GIT_CONFLICT"] = "GIT_CONFLICT";
|
|
405
|
+
/**
|
|
406
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
407
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
408
|
+
*/
|
|
409
|
+
ErrorCode["GIT_UNKNOWN_REF"] = "GIT_UNKNOWN_REF";
|
|
410
|
+
/**
|
|
411
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
412
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
413
|
+
*/
|
|
414
|
+
ErrorCode["GIT_SENSITIVE_TOKEN_DETECTED"] = "GIT_SENSITIVE_TOKEN_DETECTED";
|
|
415
|
+
/**
|
|
416
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
417
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
418
|
+
*/
|
|
419
|
+
ErrorCode["GIT_URL_NOT_ON_ALLOW_LIST"] = "GIT_URL_NOT_ON_ALLOW_LIST";
|
|
420
|
+
/**
|
|
421
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
422
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
423
|
+
*/
|
|
424
|
+
ErrorCode["GIT_REMOTE_ERROR"] = "GIT_REMOTE_ERROR";
|
|
425
|
+
/**
|
|
426
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
427
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
428
|
+
*/
|
|
429
|
+
ErrorCode["PROJECTS_OPERATION_TIMEOUT"] = "PROJECTS_OPERATION_TIMEOUT";
|
|
430
|
+
/**
|
|
431
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
432
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
433
|
+
*/
|
|
434
|
+
ErrorCode["IPYNB_FILE_IN_REPO"] = "IPYNB_FILE_IN_REPO";
|
|
435
|
+
/**
|
|
436
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
437
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
438
|
+
*/
|
|
439
|
+
ErrorCode["INSECURE_PARTNER_RESPONSE"] = "INSECURE_PARTNER_RESPONSE";
|
|
440
|
+
/**
|
|
441
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
442
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
443
|
+
*/
|
|
444
|
+
ErrorCode["MALFORMED_PARTNER_RESPONSE"] = "MALFORMED_PARTNER_RESPONSE";
|
|
445
|
+
ErrorCode["METASTORE_DOES_NOT_EXIST"] = "METASTORE_DOES_NOT_EXIST";
|
|
446
|
+
/**
|
|
447
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
448
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
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";
|
|
460
|
+
/**
|
|
461
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
462
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
463
|
+
*/
|
|
464
|
+
ErrorCode["METASTORE_ALREADY_EXISTS"] = "METASTORE_ALREADY_EXISTS";
|
|
465
|
+
/**
|
|
466
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
467
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
468
|
+
*/
|
|
469
|
+
ErrorCode["DAC_ALREADY_EXISTS"] = "DAC_ALREADY_EXISTS";
|
|
470
|
+
/**
|
|
471
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
472
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
473
|
+
*/
|
|
474
|
+
ErrorCode["CATALOG_ALREADY_EXISTS"] = "CATALOG_ALREADY_EXISTS";
|
|
475
|
+
/**
|
|
476
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
477
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
478
|
+
*/
|
|
479
|
+
ErrorCode["SCHEMA_ALREADY_EXISTS"] = "SCHEMA_ALREADY_EXISTS";
|
|
480
|
+
/**
|
|
481
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
482
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
483
|
+
*/
|
|
484
|
+
ErrorCode["TABLE_ALREADY_EXISTS"] = "TABLE_ALREADY_EXISTS";
|
|
485
|
+
/**
|
|
486
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
487
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
488
|
+
*/
|
|
489
|
+
ErrorCode["SHARE_ALREADY_EXISTS"] = "SHARE_ALREADY_EXISTS";
|
|
490
|
+
/**
|
|
491
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
492
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
493
|
+
*/
|
|
494
|
+
ErrorCode["RECIPIENT_ALREADY_EXISTS"] = "RECIPIENT_ALREADY_EXISTS";
|
|
495
|
+
/**
|
|
496
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
497
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
498
|
+
*/
|
|
499
|
+
ErrorCode["STORAGE_CREDENTIAL_ALREADY_EXISTS"] = "STORAGE_CREDENTIAL_ALREADY_EXISTS";
|
|
500
|
+
/**
|
|
501
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
502
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
503
|
+
*/
|
|
504
|
+
ErrorCode["EXTERNAL_LOCATION_ALREADY_EXISTS"] = "EXTERNAL_LOCATION_ALREADY_EXISTS";
|
|
505
|
+
/**
|
|
506
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
507
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
508
|
+
*/
|
|
509
|
+
ErrorCode["PROVIDER_ALREADY_EXISTS"] = "PROVIDER_ALREADY_EXISTS";
|
|
510
|
+
/**
|
|
511
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
512
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
513
|
+
*/
|
|
514
|
+
ErrorCode["CATALOG_NOT_EMPTY"] = "CATALOG_NOT_EMPTY";
|
|
515
|
+
/**
|
|
516
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
517
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
518
|
+
*/
|
|
519
|
+
ErrorCode["SCHEMA_NOT_EMPTY"] = "SCHEMA_NOT_EMPTY";
|
|
520
|
+
/**
|
|
521
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
522
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
523
|
+
*/
|
|
524
|
+
ErrorCode["METASTORE_NOT_EMPTY"] = "METASTORE_NOT_EMPTY";
|
|
525
|
+
/**
|
|
526
|
+
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
527
|
+
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
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 = {}));
|
|
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 = {}));
|
|
569
|
+
/**
|
|
570
|
+
* copied from proto3 / Google Well Known Types, source:
|
|
571
|
+
* https://github.com/protocolbuffers/protobuf/blob/450d24ca820750c5db5112a6f0b0c2efb9758021/src/google/protobuf/struct.proto
|
|
572
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
573
|
+
* `Value` type union.
|
|
574
|
+
*
|
|
575
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
576
|
+
*/
|
|
577
|
+
export var NullValue;
|
|
578
|
+
(function (NullValue) {
|
|
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";
|
|
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";
|
|
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 = {}));
|
|
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 = {}));
|
|
619
|
+
/**
|
|
620
|
+
* ThoughtType.
|
|
621
|
+
* The possible values are:
|
|
622
|
+
* * `THOUGHT_TYPE_UNSPECIFIED`: Default value that should not be used.
|
|
623
|
+
* * `THOUGHT_TYPE_DESCRIPTION`: A high-level description of how the question was interpreted.
|
|
624
|
+
* * `THOUGHT_TYPE_UNDERSTANDING`: How ambiguous parts of the question were resolved.
|
|
625
|
+
* * `THOUGHT_TYPE_DATA_SOURCING`: Which tables or datasets were identified as relevant.
|
|
626
|
+
* * `THOUGHT_TYPE_INSTRUCTIONS`: Which author-defined instructions were referenced.
|
|
627
|
+
* * `THOUGHT_TYPE_STEPS`: The logical steps taken to compute the answer.
|
|
628
|
+
* The category of a Thought.
|
|
629
|
+
* Additional values may be added in the future.
|
|
630
|
+
*/
|
|
631
|
+
export var ThoughtType;
|
|
632
|
+
(function (ThoughtType) {
|
|
633
|
+
ThoughtType["THOUGHT_TYPE_UNSPECIFIED"] = "THOUGHT_TYPE_UNSPECIFIED";
|
|
634
|
+
/** A high-level description of how the question was interpreted. */
|
|
635
|
+
ThoughtType["THOUGHT_TYPE_DESCRIPTION"] = "THOUGHT_TYPE_DESCRIPTION";
|
|
636
|
+
/** How ambiguous parts of the question were resolved. */
|
|
637
|
+
ThoughtType["THOUGHT_TYPE_UNDERSTANDING"] = "THOUGHT_TYPE_UNDERSTANDING";
|
|
638
|
+
/** Which tables or datasets were identified as relevant. */
|
|
639
|
+
ThoughtType["THOUGHT_TYPE_DATA_SOURCING"] = "THOUGHT_TYPE_DATA_SOURCING";
|
|
640
|
+
/** Which author-defined instructions were referenced. */
|
|
641
|
+
ThoughtType["THOUGHT_TYPE_INSTRUCTIONS"] = "THOUGHT_TYPE_INSTRUCTIONS";
|
|
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";
|
|
651
|
+
/** 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";
|
|
660
|
+
/** 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 = {}));
|
|
713
|
+
/**
|
|
714
|
+
* MessageStatus.
|
|
715
|
+
* The possible values are:
|
|
716
|
+
* * `FETCHING_METADATA`: Fetching metadata from the data sources.
|
|
717
|
+
* * `FILTERING_CONTEXT`: Running smart context step to determine relevant context.
|
|
718
|
+
* * `ASKING_AI`: Waiting for the LLM to respond to the user's question.
|
|
719
|
+
* * `PENDING_WAREHOUSE`: Waiting for warehouse before the SQL query can start executing.
|
|
720
|
+
* * `EXECUTING_QUERY`: Executing a generated SQL query. Get the SQL query result by calling [getMessageAttachmentQueryResult](:method:genie/getMessageAttachmentQueryResult) API.
|
|
721
|
+
* * `FAILED`: The response generation or query execution failed. See `error` field.
|
|
722
|
+
* * `COMPLETED`: Message processing is completed. Results are in the `attachments` field. Get the SQL query result by calling [getMessageAttachmentQueryResult](:method:genie/getMessageAttachmentQueryResult) API.
|
|
723
|
+
* * `SUBMITTED`: Message has been submitted.
|
|
724
|
+
* * `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
|
+
* * `CANCELLED`: Message has been cancelled.
|
|
726
|
+
*/
|
|
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 = {}));
|
|
752
|
+
export const unmarshalChunkInfoSchema = z
|
|
753
|
+
.object({
|
|
754
|
+
chunk_index: z.number().optional(),
|
|
755
|
+
row_offset: z
|
|
756
|
+
.union([z.number(), z.bigint()])
|
|
757
|
+
.transform(v => BigInt(v))
|
|
758
|
+
.optional(),
|
|
759
|
+
row_count: z
|
|
760
|
+
.union([z.number(), z.bigint()])
|
|
761
|
+
.transform(v => BigInt(v))
|
|
762
|
+
.optional(),
|
|
763
|
+
byte_count: z
|
|
764
|
+
.union([z.number(), z.bigint()])
|
|
765
|
+
.transform(v => BigInt(v))
|
|
766
|
+
.optional(),
|
|
767
|
+
next_chunk_index: z.number().optional(),
|
|
768
|
+
next_chunk_internal_link: z.string().optional(),
|
|
769
|
+
})
|
|
770
|
+
.transform(d => ({
|
|
771
|
+
chunkIndex: d.chunk_index,
|
|
772
|
+
rowOffset: d.row_offset,
|
|
773
|
+
rowCount: d.row_count,
|
|
774
|
+
byteCount: d.byte_count,
|
|
775
|
+
nextChunkIndex: d.next_chunk_index,
|
|
776
|
+
nextChunkInternalLink: d.next_chunk_internal_link,
|
|
777
|
+
}));
|
|
778
|
+
export const unmarshalColumnInfoSchema = z
|
|
779
|
+
.object({
|
|
780
|
+
name: z.string().optional(),
|
|
781
|
+
type_text: z.string().optional(),
|
|
782
|
+
type_name: z.enum(ColumnTypeName).optional(),
|
|
783
|
+
position: z.number().optional(),
|
|
784
|
+
type_precision: z.number().optional(),
|
|
785
|
+
type_scale: z.number().optional(),
|
|
786
|
+
type_interval_type: z.string().optional(),
|
|
787
|
+
type_json: z.string().optional(),
|
|
788
|
+
comment: z.string().optional(),
|
|
789
|
+
nullable: z.boolean().optional(),
|
|
790
|
+
partition_index: z.number().optional(),
|
|
791
|
+
mask: z.lazy(() => unmarshalColumnMaskSchema).optional(),
|
|
792
|
+
})
|
|
793
|
+
.transform(d => ({
|
|
794
|
+
name: d.name,
|
|
795
|
+
typeText: d.type_text,
|
|
796
|
+
typeName: d.type_name,
|
|
797
|
+
position: d.position,
|
|
798
|
+
typePrecision: d.type_precision,
|
|
799
|
+
typeScale: d.type_scale,
|
|
800
|
+
typeIntervalType: d.type_interval_type,
|
|
801
|
+
typeJson: d.type_json,
|
|
802
|
+
comment: d.comment,
|
|
803
|
+
nullable: d.nullable,
|
|
804
|
+
partitionIndex: d.partition_index,
|
|
805
|
+
mask: d.mask,
|
|
806
|
+
}));
|
|
807
|
+
export const unmarshalColumnMaskSchema = z
|
|
808
|
+
.object({
|
|
809
|
+
function_name: z.string().optional(),
|
|
810
|
+
using_column_names: z.array(z.string()).optional(),
|
|
811
|
+
using_arguments: z
|
|
812
|
+
.array(z.lazy(() => unmarshalPolicyFunctionArgumentSchema))
|
|
813
|
+
.optional(),
|
|
814
|
+
})
|
|
815
|
+
.transform(d => ({
|
|
816
|
+
functionName: d.function_name,
|
|
817
|
+
usingColumnNames: d.using_column_names,
|
|
818
|
+
usingArguments: d.using_arguments,
|
|
819
|
+
}));
|
|
820
|
+
export const unmarshalDatabricksServiceExceptionProtoSchema = z
|
|
821
|
+
.object({
|
|
822
|
+
error_code: z.enum(ErrorCode).optional(),
|
|
823
|
+
message: z.string().optional(),
|
|
824
|
+
stack_trace: z.string().optional(),
|
|
825
|
+
})
|
|
826
|
+
.transform(d => ({
|
|
827
|
+
errorCode: d.error_code,
|
|
828
|
+
message: d.message,
|
|
829
|
+
stackTrace: d.stack_trace,
|
|
830
|
+
}));
|
|
831
|
+
export const unmarshalExternalLinkSchema = z
|
|
832
|
+
.object({
|
|
833
|
+
external_link: z.string().optional(),
|
|
834
|
+
expiration: z.string().optional(),
|
|
835
|
+
http_headers: z.record(z.string(), z.string()).optional(),
|
|
836
|
+
chunk_index: z.number().optional(),
|
|
837
|
+
row_offset: z
|
|
838
|
+
.union([z.number(), z.bigint()])
|
|
839
|
+
.transform(v => BigInt(v))
|
|
840
|
+
.optional(),
|
|
841
|
+
row_count: z
|
|
842
|
+
.union([z.number(), z.bigint()])
|
|
843
|
+
.transform(v => BigInt(v))
|
|
844
|
+
.optional(),
|
|
845
|
+
byte_count: z
|
|
846
|
+
.union([z.number(), z.bigint()])
|
|
847
|
+
.transform(v => BigInt(v))
|
|
848
|
+
.optional(),
|
|
849
|
+
next_chunk_index: z.number().optional(),
|
|
850
|
+
next_chunk_internal_link: z.string().optional(),
|
|
851
|
+
})
|
|
852
|
+
.transform(d => ({
|
|
853
|
+
externalLink: d.external_link,
|
|
854
|
+
expiration: d.expiration,
|
|
855
|
+
httpHeaders: d.http_headers,
|
|
856
|
+
chunkIndex: d.chunk_index,
|
|
857
|
+
rowOffset: d.row_offset,
|
|
858
|
+
rowCount: d.row_count,
|
|
859
|
+
byteCount: d.byte_count,
|
|
860
|
+
nextChunkIndex: d.next_chunk_index,
|
|
861
|
+
nextChunkInternalLink: d.next_chunk_internal_link,
|
|
862
|
+
}));
|
|
863
|
+
export const unmarshalGenieAttachmentSchema = z
|
|
864
|
+
.object({
|
|
865
|
+
text: z.lazy(() => unmarshalTextAttachmentSchema).optional(),
|
|
866
|
+
query: z.lazy(() => unmarshalGenieQueryAttachmentSchema).optional(),
|
|
867
|
+
suggested_questions: z
|
|
868
|
+
.lazy(() => unmarshalGenieSuggestedQuestionsAttachmentSchema)
|
|
869
|
+
.optional(),
|
|
870
|
+
attachment_id: z.string().optional(),
|
|
871
|
+
})
|
|
872
|
+
.transform(d => ({
|
|
873
|
+
attachment: d.text !== undefined
|
|
874
|
+
? { $case: 'text', text: d.text }
|
|
875
|
+
: d.query !== undefined
|
|
876
|
+
? { $case: 'query', query: d.query }
|
|
877
|
+
: d.suggested_questions !== undefined
|
|
878
|
+
? {
|
|
879
|
+
$case: 'suggestedQuestions',
|
|
880
|
+
suggestedQuestions: d.suggested_questions,
|
|
881
|
+
}
|
|
882
|
+
: undefined,
|
|
883
|
+
attachmentId: d.attachment_id,
|
|
884
|
+
}));
|
|
885
|
+
export const unmarshalGenieConversationSchema = z
|
|
886
|
+
.object({
|
|
887
|
+
id: z.string().optional(),
|
|
888
|
+
space_id: z.string().optional(),
|
|
889
|
+
user_id: z
|
|
890
|
+
.union([z.number(), z.bigint()])
|
|
891
|
+
.transform(v => BigInt(v))
|
|
892
|
+
.optional(),
|
|
893
|
+
created_timestamp: z
|
|
894
|
+
.union([z.number(), z.bigint()])
|
|
895
|
+
.transform(v => BigInt(v))
|
|
896
|
+
.optional(),
|
|
897
|
+
last_updated_timestamp: z
|
|
898
|
+
.union([z.number(), z.bigint()])
|
|
899
|
+
.transform(v => BigInt(v))
|
|
900
|
+
.optional(),
|
|
901
|
+
title: z.string().optional(),
|
|
902
|
+
conversation_id: z.string().optional(),
|
|
903
|
+
})
|
|
904
|
+
.transform(d => ({
|
|
905
|
+
id: d.id,
|
|
906
|
+
spaceId: d.space_id,
|
|
907
|
+
userId: d.user_id,
|
|
908
|
+
createdTimestamp: d.created_timestamp,
|
|
909
|
+
lastUpdatedTimestamp: d.last_updated_timestamp,
|
|
910
|
+
title: d.title,
|
|
911
|
+
conversationId: d.conversation_id,
|
|
912
|
+
}));
|
|
913
|
+
export const unmarshalGenieConversationSummarySchema = z
|
|
914
|
+
.object({
|
|
915
|
+
conversation_id: z.string().optional(),
|
|
916
|
+
title: z.string().optional(),
|
|
917
|
+
created_timestamp: z
|
|
918
|
+
.union([z.number(), z.bigint()])
|
|
919
|
+
.transform(v => BigInt(v))
|
|
920
|
+
.optional(),
|
|
921
|
+
})
|
|
922
|
+
.transform(d => ({
|
|
923
|
+
conversationId: d.conversation_id,
|
|
924
|
+
title: d.title,
|
|
925
|
+
createdTimestamp: d.created_timestamp,
|
|
926
|
+
}));
|
|
927
|
+
export const unmarshalGenieEvalResponseSchema = z
|
|
928
|
+
.object({
|
|
929
|
+
response: z.string().optional(),
|
|
930
|
+
sql_execution_result: z
|
|
931
|
+
.lazy(() => unmarshalStatementResponseSchema)
|
|
932
|
+
.optional(),
|
|
933
|
+
response_type: z.enum(GenieEvalResponseType).optional(),
|
|
934
|
+
})
|
|
935
|
+
.transform(d => ({
|
|
936
|
+
response: d.response,
|
|
937
|
+
sqlExecutionResult: d.sql_execution_result,
|
|
938
|
+
responseType: d.response_type,
|
|
939
|
+
}));
|
|
940
|
+
export const unmarshalGenieEvalResultSchema = z
|
|
941
|
+
.object({
|
|
942
|
+
result_id: z.string().optional(),
|
|
943
|
+
space_id: z.string().optional(),
|
|
944
|
+
benchmark_question_id: z.string().optional(),
|
|
945
|
+
status: z.enum(EvaluationStatusType).optional(),
|
|
946
|
+
question: z.string().optional(),
|
|
947
|
+
benchmark_answer: z.string().optional(),
|
|
948
|
+
created_by_user: z
|
|
949
|
+
.union([z.number(), z.bigint()])
|
|
950
|
+
.transform(v => BigInt(v))
|
|
951
|
+
.optional(),
|
|
952
|
+
})
|
|
953
|
+
.transform(d => ({
|
|
954
|
+
resultId: d.result_id,
|
|
955
|
+
spaceId: d.space_id,
|
|
956
|
+
benchmarkQuestionId: d.benchmark_question_id,
|
|
957
|
+
status: d.status,
|
|
958
|
+
question: d.question,
|
|
959
|
+
benchmarkAnswer: d.benchmark_answer,
|
|
960
|
+
createdByUser: d.created_by_user,
|
|
961
|
+
}));
|
|
962
|
+
export const unmarshalGenieEvalResultDetailsSchema = z
|
|
963
|
+
.object({
|
|
964
|
+
result_id: z.string().optional(),
|
|
965
|
+
space_id: z.string().optional(),
|
|
966
|
+
benchmark_question_id: z.string().optional(),
|
|
967
|
+
eval_run_status: z.enum(EvaluationStatusType).optional(),
|
|
968
|
+
assessment: z.enum(GenieEvalAssessment).optional(),
|
|
969
|
+
manual_assessment: z.boolean().optional(),
|
|
970
|
+
assessment_reasons: z.array(z.enum(ScoreReason)).optional(),
|
|
971
|
+
actual_response: z
|
|
972
|
+
.array(z.lazy(() => unmarshalGenieEvalResponseSchema))
|
|
973
|
+
.optional(),
|
|
974
|
+
expected_response: z
|
|
975
|
+
.array(z.lazy(() => unmarshalGenieEvalResponseSchema))
|
|
976
|
+
.optional(),
|
|
977
|
+
})
|
|
978
|
+
.transform(d => ({
|
|
979
|
+
resultId: d.result_id,
|
|
980
|
+
spaceId: d.space_id,
|
|
981
|
+
benchmarkQuestionId: d.benchmark_question_id,
|
|
982
|
+
evalRunStatus: d.eval_run_status,
|
|
983
|
+
assessment: d.assessment,
|
|
984
|
+
manualAssessment: d.manual_assessment,
|
|
985
|
+
assessmentReasons: d.assessment_reasons,
|
|
986
|
+
actualResponse: d.actual_response,
|
|
987
|
+
expectedResponse: d.expected_response,
|
|
988
|
+
}));
|
|
989
|
+
export const unmarshalGenieEvalRunResponseSchema = z
|
|
990
|
+
.object({
|
|
991
|
+
eval_run_id: z.string().optional(),
|
|
992
|
+
eval_run_status: z.enum(EvaluationStatusType).optional(),
|
|
993
|
+
run_by_user: z
|
|
994
|
+
.union([z.number(), z.bigint()])
|
|
995
|
+
.transform(v => BigInt(v))
|
|
996
|
+
.optional(),
|
|
997
|
+
created_timestamp: z
|
|
998
|
+
.union([z.number(), z.bigint()])
|
|
999
|
+
.transform(v => BigInt(v))
|
|
1000
|
+
.optional(),
|
|
1001
|
+
num_questions: z
|
|
1002
|
+
.union([z.number(), z.bigint()])
|
|
1003
|
+
.transform(v => BigInt(v))
|
|
1004
|
+
.optional(),
|
|
1005
|
+
num_correct: z
|
|
1006
|
+
.union([z.number(), z.bigint()])
|
|
1007
|
+
.transform(v => BigInt(v))
|
|
1008
|
+
.optional(),
|
|
1009
|
+
num_needs_review: z
|
|
1010
|
+
.union([z.number(), z.bigint()])
|
|
1011
|
+
.transform(v => BigInt(v))
|
|
1012
|
+
.optional(),
|
|
1013
|
+
num_done: z
|
|
1014
|
+
.union([z.number(), z.bigint()])
|
|
1015
|
+
.transform(v => BigInt(v))
|
|
1016
|
+
.optional(),
|
|
1017
|
+
last_updated_timestamp: z
|
|
1018
|
+
.union([z.number(), z.bigint()])
|
|
1019
|
+
.transform(v => BigInt(v))
|
|
1020
|
+
.optional(),
|
|
1021
|
+
})
|
|
1022
|
+
.transform(d => ({
|
|
1023
|
+
evalRunId: d.eval_run_id,
|
|
1024
|
+
evalRunStatus: d.eval_run_status,
|
|
1025
|
+
runByUser: d.run_by_user,
|
|
1026
|
+
createdTimestamp: d.created_timestamp,
|
|
1027
|
+
numQuestions: d.num_questions,
|
|
1028
|
+
numCorrect: d.num_correct,
|
|
1029
|
+
numNeedsReview: d.num_needs_review,
|
|
1030
|
+
numDone: d.num_done,
|
|
1031
|
+
lastUpdatedTimestamp: d.last_updated_timestamp,
|
|
1032
|
+
}));
|
|
1033
|
+
export const unmarshalGenieFeedbackSchema = z
|
|
1034
|
+
.object({
|
|
1035
|
+
rating: z.enum(GenieFeedbackRating).optional(),
|
|
1036
|
+
comment: z.string().optional(),
|
|
1037
|
+
})
|
|
1038
|
+
.transform(d => ({
|
|
1039
|
+
rating: d.rating,
|
|
1040
|
+
comment: d.comment,
|
|
1041
|
+
}));
|
|
1042
|
+
export const unmarshalGenieGenerateDownloadFullQueryResultResponseSchema = z
|
|
1043
|
+
.object({
|
|
1044
|
+
download_id: z.string().optional(),
|
|
1045
|
+
download_id_signature: z.string().optional(),
|
|
1046
|
+
})
|
|
1047
|
+
.transform(d => ({
|
|
1048
|
+
downloadId: d.download_id,
|
|
1049
|
+
downloadIdSignature: d.download_id_signature,
|
|
1050
|
+
}));
|
|
1051
|
+
export const unmarshalGenieGetDownloadFullQueryResultResponseSchema = z
|
|
1052
|
+
.object({
|
|
1053
|
+
statement_response: z
|
|
1054
|
+
.lazy(() => unmarshalStatementResponseSchema)
|
|
1055
|
+
.optional(),
|
|
1056
|
+
})
|
|
1057
|
+
.transform(d => ({
|
|
1058
|
+
statementResponse: d.statement_response,
|
|
1059
|
+
}));
|
|
1060
|
+
export const unmarshalGenieGetMessageQueryResultResponseSchema = z
|
|
1061
|
+
.object({
|
|
1062
|
+
statement_response: z
|
|
1063
|
+
.lazy(() => unmarshalStatementResponseSchema)
|
|
1064
|
+
.optional(),
|
|
1065
|
+
})
|
|
1066
|
+
.transform(d => ({
|
|
1067
|
+
statementResponse: d.statement_response,
|
|
1068
|
+
}));
|
|
1069
|
+
export const unmarshalGenieListConversationCommentsResponseSchema = z
|
|
1070
|
+
.object({
|
|
1071
|
+
comments: z
|
|
1072
|
+
.array(z.lazy(() => unmarshalGenieMessageCommentSchema))
|
|
1073
|
+
.optional(),
|
|
1074
|
+
next_page_token: z.string().optional(),
|
|
1075
|
+
})
|
|
1076
|
+
.transform(d => ({
|
|
1077
|
+
comments: d.comments,
|
|
1078
|
+
nextPageToken: d.next_page_token,
|
|
1079
|
+
}));
|
|
1080
|
+
export const unmarshalGenieListConversationMessagesResponseSchema = z
|
|
1081
|
+
.object({
|
|
1082
|
+
messages: z.array(z.lazy(() => unmarshalGenieMessageSchema)).optional(),
|
|
1083
|
+
next_page_token: z.string().optional(),
|
|
1084
|
+
})
|
|
1085
|
+
.transform(d => ({
|
|
1086
|
+
messages: d.messages,
|
|
1087
|
+
nextPageToken: d.next_page_token,
|
|
1088
|
+
}));
|
|
1089
|
+
export const unmarshalGenieListConversationsResponseSchema = z
|
|
1090
|
+
.object({
|
|
1091
|
+
conversations: z
|
|
1092
|
+
.array(z.lazy(() => unmarshalGenieConversationSummarySchema))
|
|
1093
|
+
.optional(),
|
|
1094
|
+
next_page_token: z.string().optional(),
|
|
1095
|
+
})
|
|
1096
|
+
.transform(d => ({
|
|
1097
|
+
conversations: d.conversations,
|
|
1098
|
+
nextPageToken: d.next_page_token,
|
|
1099
|
+
}));
|
|
1100
|
+
export const unmarshalGenieListEvalResultsResponseSchema = z
|
|
1101
|
+
.object({
|
|
1102
|
+
eval_results: z
|
|
1103
|
+
.array(z.lazy(() => unmarshalGenieEvalResultSchema))
|
|
1104
|
+
.optional(),
|
|
1105
|
+
next_page_token: z.string().optional(),
|
|
1106
|
+
})
|
|
1107
|
+
.transform(d => ({
|
|
1108
|
+
evalResults: d.eval_results,
|
|
1109
|
+
nextPageToken: d.next_page_token,
|
|
1110
|
+
}));
|
|
1111
|
+
export const unmarshalGenieListEvalRunsResponseSchema = z
|
|
1112
|
+
.object({
|
|
1113
|
+
eval_runs: z
|
|
1114
|
+
.array(z.lazy(() => unmarshalGenieEvalRunResponseSchema))
|
|
1115
|
+
.optional(),
|
|
1116
|
+
next_page_token: z.string().optional(),
|
|
1117
|
+
})
|
|
1118
|
+
.transform(d => ({
|
|
1119
|
+
evalRuns: d.eval_runs,
|
|
1120
|
+
nextPageToken: d.next_page_token,
|
|
1121
|
+
}));
|
|
1122
|
+
export const unmarshalGenieListMessageCommentsResponseSchema = z
|
|
1123
|
+
.object({
|
|
1124
|
+
comments: z
|
|
1125
|
+
.array(z.lazy(() => unmarshalGenieMessageCommentSchema))
|
|
1126
|
+
.optional(),
|
|
1127
|
+
next_page_token: z.string().optional(),
|
|
1128
|
+
})
|
|
1129
|
+
.transform(d => ({
|
|
1130
|
+
comments: d.comments,
|
|
1131
|
+
nextPageToken: d.next_page_token,
|
|
1132
|
+
}));
|
|
1133
|
+
export const unmarshalGenieListSpacesResponseSchema = z
|
|
1134
|
+
.object({
|
|
1135
|
+
spaces: z.array(z.lazy(() => unmarshalGenieSpaceSchema)).optional(),
|
|
1136
|
+
next_page_token: z.string().optional(),
|
|
1137
|
+
})
|
|
1138
|
+
.transform(d => ({
|
|
1139
|
+
spaces: d.spaces,
|
|
1140
|
+
nextPageToken: d.next_page_token,
|
|
1141
|
+
}));
|
|
1142
|
+
export const unmarshalGenieMessageSchema = z
|
|
1143
|
+
.object({
|
|
1144
|
+
id: z.string().optional(),
|
|
1145
|
+
space_id: z.string().optional(),
|
|
1146
|
+
conversation_id: z.string().optional(),
|
|
1147
|
+
user_id: z
|
|
1148
|
+
.union([z.number(), z.bigint()])
|
|
1149
|
+
.transform(v => BigInt(v))
|
|
1150
|
+
.optional(),
|
|
1151
|
+
created_timestamp: z
|
|
1152
|
+
.union([z.number(), z.bigint()])
|
|
1153
|
+
.transform(v => BigInt(v))
|
|
1154
|
+
.optional(),
|
|
1155
|
+
last_updated_timestamp: z
|
|
1156
|
+
.union([z.number(), z.bigint()])
|
|
1157
|
+
.transform(v => BigInt(v))
|
|
1158
|
+
.optional(),
|
|
1159
|
+
status: z.enum(MessageStatus_MessageStatus).optional(),
|
|
1160
|
+
content: z.string().optional(),
|
|
1161
|
+
attachments: z
|
|
1162
|
+
.array(z.lazy(() => unmarshalGenieAttachmentSchema))
|
|
1163
|
+
.optional(),
|
|
1164
|
+
query_result: z.lazy(() => unmarshalResultSchema).optional(),
|
|
1165
|
+
error: z.lazy(() => unmarshalMessageErrorSchema).optional(),
|
|
1166
|
+
message_id: z.string().optional(),
|
|
1167
|
+
feedback: z.lazy(() => unmarshalGenieFeedbackSchema).optional(),
|
|
1168
|
+
})
|
|
1169
|
+
.transform(d => ({
|
|
1170
|
+
id: d.id,
|
|
1171
|
+
spaceId: d.space_id,
|
|
1172
|
+
conversationId: d.conversation_id,
|
|
1173
|
+
userId: d.user_id,
|
|
1174
|
+
createdTimestamp: d.created_timestamp,
|
|
1175
|
+
lastUpdatedTimestamp: d.last_updated_timestamp,
|
|
1176
|
+
status: d.status,
|
|
1177
|
+
content: d.content,
|
|
1178
|
+
attachments: d.attachments,
|
|
1179
|
+
queryResult: d.query_result,
|
|
1180
|
+
error: d.error,
|
|
1181
|
+
messageId: d.message_id,
|
|
1182
|
+
feedback: d.feedback,
|
|
1183
|
+
}));
|
|
1184
|
+
export const unmarshalGenieMessageCommentSchema = z
|
|
1185
|
+
.object({
|
|
1186
|
+
space_id: z.string().optional(),
|
|
1187
|
+
conversation_id: z.string().optional(),
|
|
1188
|
+
message_id: z.string().optional(),
|
|
1189
|
+
message_comment_id: z.string().optional(),
|
|
1190
|
+
user_id: z
|
|
1191
|
+
.union([z.number(), z.bigint()])
|
|
1192
|
+
.transform(v => BigInt(v))
|
|
1193
|
+
.optional(),
|
|
1194
|
+
content: z.string().optional(),
|
|
1195
|
+
created_timestamp: z
|
|
1196
|
+
.union([z.number(), z.bigint()])
|
|
1197
|
+
.transform(v => BigInt(v))
|
|
1198
|
+
.optional(),
|
|
1199
|
+
})
|
|
1200
|
+
.transform(d => ({
|
|
1201
|
+
spaceId: d.space_id,
|
|
1202
|
+
conversationId: d.conversation_id,
|
|
1203
|
+
messageId: d.message_id,
|
|
1204
|
+
messageCommentId: d.message_comment_id,
|
|
1205
|
+
userId: d.user_id,
|
|
1206
|
+
content: d.content,
|
|
1207
|
+
createdTimestamp: d.created_timestamp,
|
|
1208
|
+
}));
|
|
1209
|
+
export const unmarshalGenieQueryAttachmentSchema = z
|
|
1210
|
+
.object({
|
|
1211
|
+
title: z.string().optional(),
|
|
1212
|
+
query: z.string().optional(),
|
|
1213
|
+
description: z.string().optional(),
|
|
1214
|
+
last_updated_timestamp: z
|
|
1215
|
+
.union([z.number(), z.bigint()])
|
|
1216
|
+
.transform(v => BigInt(v))
|
|
1217
|
+
.optional(),
|
|
1218
|
+
parameters: z
|
|
1219
|
+
.array(z.lazy(() => unmarshalQueryAttachmentParameterSchema))
|
|
1220
|
+
.optional(),
|
|
1221
|
+
id: z.string().optional(),
|
|
1222
|
+
statement_id: z.string().optional(),
|
|
1223
|
+
query_result_metadata: z
|
|
1224
|
+
.lazy(() => unmarshalGenieResultMetadataSchema)
|
|
1225
|
+
.optional(),
|
|
1226
|
+
thoughts: z.array(z.lazy(() => unmarshalThoughtSchema)).optional(),
|
|
1227
|
+
})
|
|
1228
|
+
.transform(d => ({
|
|
1229
|
+
title: d.title,
|
|
1230
|
+
query: d.query,
|
|
1231
|
+
description: d.description,
|
|
1232
|
+
lastUpdatedTimestamp: d.last_updated_timestamp,
|
|
1233
|
+
parameters: d.parameters,
|
|
1234
|
+
id: d.id,
|
|
1235
|
+
statementId: d.statement_id,
|
|
1236
|
+
queryResultMetadata: d.query_result_metadata,
|
|
1237
|
+
thoughts: d.thoughts,
|
|
1238
|
+
}));
|
|
1239
|
+
export const unmarshalGenieResultMetadataSchema = z
|
|
1240
|
+
.object({
|
|
1241
|
+
row_count: z
|
|
1242
|
+
.union([z.number(), z.bigint()])
|
|
1243
|
+
.transform(v => BigInt(v))
|
|
1244
|
+
.optional(),
|
|
1245
|
+
is_truncated: z.boolean().optional(),
|
|
1246
|
+
})
|
|
1247
|
+
.transform(d => ({
|
|
1248
|
+
rowCount: d.row_count,
|
|
1249
|
+
isTruncated: d.is_truncated,
|
|
1250
|
+
}));
|
|
1251
|
+
export const unmarshalGenieSpaceSchema = z
|
|
1252
|
+
.object({
|
|
1253
|
+
space_id: z.string().optional(),
|
|
1254
|
+
title: z.string().optional(),
|
|
1255
|
+
description: z.string().optional(),
|
|
1256
|
+
warehouse_id: z.string().optional(),
|
|
1257
|
+
parent_path: z.string().optional(),
|
|
1258
|
+
serialized_space: z.string().optional(),
|
|
1259
|
+
etag: z.string().optional(),
|
|
1260
|
+
})
|
|
1261
|
+
.transform(d => ({
|
|
1262
|
+
spaceId: d.space_id,
|
|
1263
|
+
title: d.title,
|
|
1264
|
+
description: d.description,
|
|
1265
|
+
warehouseId: d.warehouse_id,
|
|
1266
|
+
parentPath: d.parent_path,
|
|
1267
|
+
serializedSpace: d.serialized_space,
|
|
1268
|
+
etag: d.etag,
|
|
1269
|
+
}));
|
|
1270
|
+
export const unmarshalGenieStartConversationResponseSchema = z
|
|
1271
|
+
.object({
|
|
1272
|
+
message_id: z.string().optional(),
|
|
1273
|
+
message: z.lazy(() => unmarshalGenieMessageSchema).optional(),
|
|
1274
|
+
conversation_id: z.string().optional(),
|
|
1275
|
+
conversation: z.lazy(() => unmarshalGenieConversationSchema).optional(),
|
|
1276
|
+
})
|
|
1277
|
+
.transform(d => ({
|
|
1278
|
+
messageId: d.message_id,
|
|
1279
|
+
message: d.message,
|
|
1280
|
+
conversationId: d.conversation_id,
|
|
1281
|
+
conversation: d.conversation,
|
|
1282
|
+
}));
|
|
1283
|
+
export const unmarshalGenieSuggestedQuestionsAttachmentSchema = z
|
|
1284
|
+
.object({
|
|
1285
|
+
questions: z.array(z.string()).optional(),
|
|
1286
|
+
})
|
|
1287
|
+
.transform(d => ({
|
|
1288
|
+
questions: d.questions,
|
|
1289
|
+
}));
|
|
1290
|
+
export const unmarshalListValueSchema = z
|
|
1291
|
+
.object({
|
|
1292
|
+
values: z.array(z.lazy(() => unmarshalValueSchema)).optional(),
|
|
1293
|
+
})
|
|
1294
|
+
.transform(d => ({
|
|
1295
|
+
values: d.values,
|
|
1296
|
+
}));
|
|
1297
|
+
export const unmarshalMapStringValueEntrySchema = z
|
|
1298
|
+
.object({
|
|
1299
|
+
key: z.string().optional(),
|
|
1300
|
+
value: z.lazy(() => unmarshalValueSchema).optional(),
|
|
1301
|
+
})
|
|
1302
|
+
.transform(d => ({
|
|
1303
|
+
key: d.key,
|
|
1304
|
+
value: d.value,
|
|
1305
|
+
}));
|
|
1306
|
+
export const unmarshalMessageErrorSchema = z
|
|
1307
|
+
.object({
|
|
1308
|
+
error: z.string().optional(),
|
|
1309
|
+
type: z.enum(MessageError_Type).optional(),
|
|
1310
|
+
})
|
|
1311
|
+
.transform(d => ({
|
|
1312
|
+
error: d.error,
|
|
1313
|
+
type: d.type,
|
|
1314
|
+
}));
|
|
1315
|
+
export const unmarshalPolicyFunctionArgumentSchema = z
|
|
1316
|
+
.object({
|
|
1317
|
+
column: z.string().optional(),
|
|
1318
|
+
constant: z.string().optional(),
|
|
1319
|
+
})
|
|
1320
|
+
.transform(d => ({
|
|
1321
|
+
arg: d.column !== undefined
|
|
1322
|
+
? { $case: 'column', column: d.column }
|
|
1323
|
+
: d.constant !== undefined
|
|
1324
|
+
? { $case: 'constant', constant: d.constant }
|
|
1325
|
+
: undefined,
|
|
1326
|
+
}));
|
|
1327
|
+
export const unmarshalQueryAttachmentParameterSchema = z
|
|
1328
|
+
.object({
|
|
1329
|
+
keyword: z.string().optional(),
|
|
1330
|
+
value: z.string().optional(),
|
|
1331
|
+
sql_type: z.string().optional(),
|
|
1332
|
+
})
|
|
1333
|
+
.transform(d => ({
|
|
1334
|
+
keyword: d.keyword,
|
|
1335
|
+
value: d.value,
|
|
1336
|
+
sqlType: d.sql_type,
|
|
1337
|
+
}));
|
|
1338
|
+
export const unmarshalResultSchema = z
|
|
1339
|
+
.object({
|
|
1340
|
+
statement_id: z.string().optional(),
|
|
1341
|
+
row_count: z
|
|
1342
|
+
.union([z.number(), z.bigint()])
|
|
1343
|
+
.transform(v => BigInt(v))
|
|
1344
|
+
.optional(),
|
|
1345
|
+
is_truncated: z.boolean().optional(),
|
|
1346
|
+
statement_id_signature: z.string().optional(),
|
|
1347
|
+
})
|
|
1348
|
+
.transform(d => ({
|
|
1349
|
+
statementId: d.statement_id,
|
|
1350
|
+
rowCount: d.row_count,
|
|
1351
|
+
isTruncated: d.is_truncated,
|
|
1352
|
+
statementIdSignature: d.statement_id_signature,
|
|
1353
|
+
}));
|
|
1354
|
+
export const unmarshalResultDataSchema = z
|
|
1355
|
+
.object({
|
|
1356
|
+
external_links: z
|
|
1357
|
+
.array(z.lazy(() => unmarshalExternalLinkSchema))
|
|
1358
|
+
.optional(),
|
|
1359
|
+
data_array: z.array(z.lazy(() => unmarshalListValueSchema)).optional(),
|
|
1360
|
+
chunk_index: z.number().optional(),
|
|
1361
|
+
row_offset: z
|
|
1362
|
+
.union([z.number(), z.bigint()])
|
|
1363
|
+
.transform(v => BigInt(v))
|
|
1364
|
+
.optional(),
|
|
1365
|
+
row_count: z
|
|
1366
|
+
.union([z.number(), z.bigint()])
|
|
1367
|
+
.transform(v => BigInt(v))
|
|
1368
|
+
.optional(),
|
|
1369
|
+
byte_count: z
|
|
1370
|
+
.union([z.number(), z.bigint()])
|
|
1371
|
+
.transform(v => BigInt(v))
|
|
1372
|
+
.optional(),
|
|
1373
|
+
next_chunk_index: z.number().optional(),
|
|
1374
|
+
next_chunk_internal_link: z.string().optional(),
|
|
1375
|
+
})
|
|
1376
|
+
.transform(d => ({
|
|
1377
|
+
externalLinks: d.external_links,
|
|
1378
|
+
dataArray: d.data_array,
|
|
1379
|
+
chunkIndex: d.chunk_index,
|
|
1380
|
+
rowOffset: d.row_offset,
|
|
1381
|
+
rowCount: d.row_count,
|
|
1382
|
+
byteCount: d.byte_count,
|
|
1383
|
+
nextChunkIndex: d.next_chunk_index,
|
|
1384
|
+
nextChunkInternalLink: d.next_chunk_internal_link,
|
|
1385
|
+
}));
|
|
1386
|
+
export const unmarshalResultManifestSchema = z
|
|
1387
|
+
.object({
|
|
1388
|
+
format: z.enum(Format).optional(),
|
|
1389
|
+
schema: z.lazy(() => unmarshalSchemaSchema).optional(),
|
|
1390
|
+
total_chunk_count: z.number().optional(),
|
|
1391
|
+
chunks: z.array(z.lazy(() => unmarshalChunkInfoSchema)).optional(),
|
|
1392
|
+
total_row_count: z
|
|
1393
|
+
.union([z.number(), z.bigint()])
|
|
1394
|
+
.transform(v => BigInt(v))
|
|
1395
|
+
.optional(),
|
|
1396
|
+
total_byte_count: z
|
|
1397
|
+
.union([z.number(), z.bigint()])
|
|
1398
|
+
.transform(v => BigInt(v))
|
|
1399
|
+
.optional(),
|
|
1400
|
+
truncated: z.boolean().optional(),
|
|
1401
|
+
})
|
|
1402
|
+
.transform(d => ({
|
|
1403
|
+
format: d.format,
|
|
1404
|
+
schema: d.schema,
|
|
1405
|
+
totalChunkCount: d.total_chunk_count,
|
|
1406
|
+
chunks: d.chunks,
|
|
1407
|
+
totalRowCount: d.total_row_count,
|
|
1408
|
+
totalByteCount: d.total_byte_count,
|
|
1409
|
+
truncated: d.truncated,
|
|
1410
|
+
}));
|
|
1411
|
+
export const unmarshalSchemaSchema = z
|
|
1412
|
+
.object({
|
|
1413
|
+
column_count: z.number().optional(),
|
|
1414
|
+
columns: z.array(z.lazy(() => unmarshalColumnInfoSchema)).optional(),
|
|
1415
|
+
})
|
|
1416
|
+
.transform(d => ({
|
|
1417
|
+
columnCount: d.column_count,
|
|
1418
|
+
columns: d.columns,
|
|
1419
|
+
}));
|
|
1420
|
+
export const unmarshalStatementResponseSchema = z
|
|
1421
|
+
.object({
|
|
1422
|
+
statement_id: z.string().optional(),
|
|
1423
|
+
status: z.lazy(() => unmarshalStatementStatusSchema).optional(),
|
|
1424
|
+
manifest: z.lazy(() => unmarshalResultManifestSchema).optional(),
|
|
1425
|
+
result: z.lazy(() => unmarshalResultDataSchema).optional(),
|
|
1426
|
+
})
|
|
1427
|
+
.transform(d => ({
|
|
1428
|
+
statementId: d.statement_id,
|
|
1429
|
+
status: d.status,
|
|
1430
|
+
manifest: d.manifest,
|
|
1431
|
+
result: d.result,
|
|
1432
|
+
}));
|
|
1433
|
+
export const unmarshalStatementStatusSchema = z
|
|
1434
|
+
.object({
|
|
1435
|
+
state: z.enum(StatementStatus_State).optional(),
|
|
1436
|
+
error: z
|
|
1437
|
+
.lazy(() => unmarshalDatabricksServiceExceptionProtoSchema)
|
|
1438
|
+
.optional(),
|
|
1439
|
+
sql_state: z.string().optional(),
|
|
1440
|
+
})
|
|
1441
|
+
.transform(d => ({
|
|
1442
|
+
state: d.state,
|
|
1443
|
+
error: d.error,
|
|
1444
|
+
sqlState: d.sql_state,
|
|
1445
|
+
}));
|
|
1446
|
+
export const unmarshalStructSchema = z
|
|
1447
|
+
.object({
|
|
1448
|
+
fields: z
|
|
1449
|
+
.array(z.lazy(() => unmarshalMapStringValueEntrySchema))
|
|
1450
|
+
.optional(),
|
|
1451
|
+
})
|
|
1452
|
+
.transform(d => ({
|
|
1453
|
+
fields: d.fields,
|
|
1454
|
+
}));
|
|
1455
|
+
export const unmarshalTextAttachmentSchema = z
|
|
1456
|
+
.object({
|
|
1457
|
+
content: z.string().optional(),
|
|
1458
|
+
id: z.string().optional(),
|
|
1459
|
+
purpose: z.enum(TextAttachmentPurpose).optional(),
|
|
1460
|
+
})
|
|
1461
|
+
.transform(d => ({
|
|
1462
|
+
content: d.content,
|
|
1463
|
+
id: d.id,
|
|
1464
|
+
purpose: d.purpose,
|
|
1465
|
+
}));
|
|
1466
|
+
export const unmarshalThoughtSchema = z
|
|
1467
|
+
.object({
|
|
1468
|
+
thought_type: z.enum(ThoughtType).optional(),
|
|
1469
|
+
content: z.string().optional(),
|
|
1470
|
+
})
|
|
1471
|
+
.transform(d => ({
|
|
1472
|
+
thoughtType: d.thought_type,
|
|
1473
|
+
content: d.content,
|
|
1474
|
+
}));
|
|
1475
|
+
export const unmarshalValueSchema = z
|
|
1476
|
+
.object({
|
|
1477
|
+
null_value: z.enum(NullValue).optional(),
|
|
1478
|
+
number_value: z.number().optional(),
|
|
1479
|
+
string_value: z.string().optional(),
|
|
1480
|
+
bool_value: z.boolean().optional(),
|
|
1481
|
+
struct_value: z.lazy(() => unmarshalStructSchema).optional(),
|
|
1482
|
+
list_value: z.lazy(() => unmarshalListValueSchema).optional(),
|
|
1483
|
+
})
|
|
1484
|
+
.transform(d => ({
|
|
1485
|
+
kind: d.null_value !== undefined
|
|
1486
|
+
? { $case: 'nullValue', nullValue: d.null_value }
|
|
1487
|
+
: d.number_value !== undefined
|
|
1488
|
+
? { $case: 'numberValue', numberValue: d.number_value }
|
|
1489
|
+
: d.string_value !== undefined
|
|
1490
|
+
? { $case: 'stringValue', stringValue: d.string_value }
|
|
1491
|
+
: d.bool_value !== undefined
|
|
1492
|
+
? { $case: 'boolValue', boolValue: d.bool_value }
|
|
1493
|
+
: d.struct_value !== undefined
|
|
1494
|
+
? { $case: 'structValue', structValue: d.struct_value }
|
|
1495
|
+
: d.list_value !== undefined
|
|
1496
|
+
? { $case: 'listValue', listValue: d.list_value }
|
|
1497
|
+
: undefined,
|
|
1498
|
+
}));
|
|
1499
|
+
export const marshalGenieCreateConversationMessageRequestSchema = z
|
|
1500
|
+
.object({
|
|
1501
|
+
spaceId: z.string().optional(),
|
|
1502
|
+
conversationId: z.string().optional(),
|
|
1503
|
+
content: z.string().optional(),
|
|
1504
|
+
})
|
|
1505
|
+
.transform(d => ({
|
|
1506
|
+
space_id: d.spaceId,
|
|
1507
|
+
conversation_id: d.conversationId,
|
|
1508
|
+
content: d.content,
|
|
1509
|
+
}));
|
|
1510
|
+
export const marshalGenieCreateEvalRunRequestSchema = z
|
|
1511
|
+
.object({
|
|
1512
|
+
spaceId: z.string().optional(),
|
|
1513
|
+
benchmarkQuestionIds: z.array(z.string()).optional(),
|
|
1514
|
+
})
|
|
1515
|
+
.transform(d => ({
|
|
1516
|
+
space_id: d.spaceId,
|
|
1517
|
+
benchmark_question_ids: d.benchmarkQuestionIds,
|
|
1518
|
+
}));
|
|
1519
|
+
export const marshalGenieCreateMessageCommentRequestSchema = z
|
|
1520
|
+
.object({
|
|
1521
|
+
spaceId: z.string().optional(),
|
|
1522
|
+
conversationId: z.string().optional(),
|
|
1523
|
+
messageId: z.string().optional(),
|
|
1524
|
+
content: z.string().optional(),
|
|
1525
|
+
})
|
|
1526
|
+
.transform(d => ({
|
|
1527
|
+
space_id: d.spaceId,
|
|
1528
|
+
conversation_id: d.conversationId,
|
|
1529
|
+
message_id: d.messageId,
|
|
1530
|
+
content: d.content,
|
|
1531
|
+
}));
|
|
1532
|
+
export const marshalGenieCreateSpaceRequestSchema = z
|
|
1533
|
+
.object({
|
|
1534
|
+
warehouseId: z.string().optional(),
|
|
1535
|
+
parentPath: z.string().optional(),
|
|
1536
|
+
serializedSpace: z.string().optional(),
|
|
1537
|
+
title: z.string().optional(),
|
|
1538
|
+
description: z.string().optional(),
|
|
1539
|
+
})
|
|
1540
|
+
.transform(d => ({
|
|
1541
|
+
warehouse_id: d.warehouseId,
|
|
1542
|
+
parent_path: d.parentPath,
|
|
1543
|
+
serialized_space: d.serializedSpace,
|
|
1544
|
+
title: d.title,
|
|
1545
|
+
description: d.description,
|
|
1546
|
+
}));
|
|
1547
|
+
export const marshalGenieExecuteMessageAttachmentQueryRequestSchema = z
|
|
1548
|
+
.object({
|
|
1549
|
+
messageId: z.string().optional(),
|
|
1550
|
+
spaceId: z.string().optional(),
|
|
1551
|
+
conversationId: z.string().optional(),
|
|
1552
|
+
attachmentId: z.string().optional(),
|
|
1553
|
+
})
|
|
1554
|
+
.transform(d => ({
|
|
1555
|
+
message_id: d.messageId,
|
|
1556
|
+
space_id: d.spaceId,
|
|
1557
|
+
conversation_id: d.conversationId,
|
|
1558
|
+
attachment_id: d.attachmentId,
|
|
1559
|
+
}));
|
|
1560
|
+
export const marshalGenieExecuteMessageQueryRequestSchema = z
|
|
1561
|
+
.object({
|
|
1562
|
+
messageId: z.string().optional(),
|
|
1563
|
+
spaceId: z.string().optional(),
|
|
1564
|
+
conversationId: z.string().optional(),
|
|
1565
|
+
})
|
|
1566
|
+
.transform(d => ({
|
|
1567
|
+
message_id: d.messageId,
|
|
1568
|
+
space_id: d.spaceId,
|
|
1569
|
+
conversation_id: d.conversationId,
|
|
1570
|
+
}));
|
|
1571
|
+
export const marshalGenieGenerateDownloadFullQueryResultRequestSchema = z
|
|
1572
|
+
.object({
|
|
1573
|
+
spaceId: z.string().optional(),
|
|
1574
|
+
conversationId: z.string().optional(),
|
|
1575
|
+
messageId: z.string().optional(),
|
|
1576
|
+
attachmentId: z.string().optional(),
|
|
1577
|
+
})
|
|
1578
|
+
.transform(d => ({
|
|
1579
|
+
space_id: d.spaceId,
|
|
1580
|
+
conversation_id: d.conversationId,
|
|
1581
|
+
message_id: d.messageId,
|
|
1582
|
+
attachment_id: d.attachmentId,
|
|
1583
|
+
}));
|
|
1584
|
+
export const marshalGenieSendMessageFeedbackRequestSchema = z
|
|
1585
|
+
.object({
|
|
1586
|
+
spaceId: z.string().optional(),
|
|
1587
|
+
conversationId: z.string().optional(),
|
|
1588
|
+
messageId: z.string().optional(),
|
|
1589
|
+
rating: z.enum(GenieFeedbackRating).optional(),
|
|
1590
|
+
comment: z.string().optional(),
|
|
1591
|
+
})
|
|
1592
|
+
.transform(d => ({
|
|
1593
|
+
space_id: d.spaceId,
|
|
1594
|
+
conversation_id: d.conversationId,
|
|
1595
|
+
message_id: d.messageId,
|
|
1596
|
+
rating: d.rating,
|
|
1597
|
+
comment: d.comment,
|
|
1598
|
+
}));
|
|
1599
|
+
export const marshalGenieStartConversationMessageRequestSchema = z
|
|
1600
|
+
.object({
|
|
1601
|
+
spaceId: z.string().optional(),
|
|
1602
|
+
content: z.string().optional(),
|
|
1603
|
+
})
|
|
1604
|
+
.transform(d => ({
|
|
1605
|
+
space_id: d.spaceId,
|
|
1606
|
+
content: d.content,
|
|
1607
|
+
}));
|
|
1608
|
+
export const marshalGenieUpdateSpaceRequestSchema = z
|
|
1609
|
+
.object({
|
|
1610
|
+
spaceId: z.string().optional(),
|
|
1611
|
+
serializedSpace: z.string().optional(),
|
|
1612
|
+
title: z.string().optional(),
|
|
1613
|
+
description: z.string().optional(),
|
|
1614
|
+
warehouseId: z.string().optional(),
|
|
1615
|
+
etag: z.string().optional(),
|
|
1616
|
+
parentPath: z.string().optional(),
|
|
1617
|
+
})
|
|
1618
|
+
.transform(d => ({
|
|
1619
|
+
space_id: d.spaceId,
|
|
1620
|
+
serialized_space: d.serializedSpace,
|
|
1621
|
+
title: d.title,
|
|
1622
|
+
description: d.description,
|
|
1623
|
+
warehouse_id: d.warehouseId,
|
|
1624
|
+
etag: d.etag,
|
|
1625
|
+
parent_path: d.parentPath,
|
|
1626
|
+
}));
|
|
1627
|
+
//# sourceMappingURL=model.js.map
|