@databricks/sdk-uc-tables 0.27.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +129 -125
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +354 -457
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -7
- package/dist/v1/index.js +4 -7
- package/dist/v1/model.d.ts +772 -785
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +799 -1077
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/v1/model.js
CHANGED
|
@@ -1,1090 +1,812 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/v1/model.ts
|
|
4
|
+
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
29
|
};
|
|
30
30
|
/** Data source format */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* END - Query federation data source formats.
|
|
63
|
-
* Vector search managed index format
|
|
64
|
-
*/
|
|
65
|
-
VECTOR_INDEX_FORMAT: 'VECTOR_INDEX_FORMAT',
|
|
66
|
-
/** Brickstore managed online row-oriented storage format. */
|
|
67
|
-
DATABRICKS_ROW_STORE_FORMAT: 'DATABRICKS_ROW_STORE_FORMAT',
|
|
68
|
-
/** Uniform storage format for Hudi */
|
|
69
|
-
DELTA_UNIFORM_HUDI: 'DELTA_UNIFORM_HUDI',
|
|
70
|
-
/** Uniform storage format for Iceberg */
|
|
71
|
-
DELTA_UNIFORM_ICEBERG: 'DELTA_UNIFORM_ICEBERG',
|
|
72
|
-
/** Apache Iceberg DataFormat */
|
|
73
|
-
ICEBERG: 'ICEBERG',
|
|
31
|
+
const DataSourceFormat = {
|
|
32
|
+
DELTA: "DELTA",
|
|
33
|
+
CSV: "CSV",
|
|
34
|
+
JSON: "JSON",
|
|
35
|
+
AVRO: "AVRO",
|
|
36
|
+
PARQUET: "PARQUET",
|
|
37
|
+
ORC: "ORC",
|
|
38
|
+
TEXT: "TEXT",
|
|
39
|
+
UNITY_CATALOG: "UNITY_CATALOG",
|
|
40
|
+
DELTASHARING: "DELTASHARING",
|
|
41
|
+
DATABRICKS_FORMAT: "DATABRICKS_FORMAT",
|
|
42
|
+
MYSQL_FORMAT: "MYSQL_FORMAT",
|
|
43
|
+
ORACLE_FORMAT: "ORACLE_FORMAT",
|
|
44
|
+
POSTGRESQL_FORMAT: "POSTGRESQL_FORMAT",
|
|
45
|
+
REDSHIFT_FORMAT: "REDSHIFT_FORMAT",
|
|
46
|
+
SNOWFLAKE_FORMAT: "SNOWFLAKE_FORMAT",
|
|
47
|
+
SQLDW_FORMAT: "SQLDW_FORMAT",
|
|
48
|
+
SQLSERVER_FORMAT: "SQLSERVER_FORMAT",
|
|
49
|
+
SALESFORCE_FORMAT: "SALESFORCE_FORMAT",
|
|
50
|
+
SALESFORCE_DATA_CLOUD_FORMAT: "SALESFORCE_DATA_CLOUD_FORMAT",
|
|
51
|
+
TERADATA_FORMAT: "TERADATA_FORMAT",
|
|
52
|
+
BIGQUERY_FORMAT: "BIGQUERY_FORMAT",
|
|
53
|
+
NETSUITE_FORMAT: "NETSUITE_FORMAT",
|
|
54
|
+
WORKDAY_RAAS_FORMAT: "WORKDAY_RAAS_FORMAT",
|
|
55
|
+
MONGODB_FORMAT: "MONGODB_FORMAT",
|
|
56
|
+
HIVE: "HIVE",
|
|
57
|
+
VECTOR_INDEX_FORMAT: "VECTOR_INDEX_FORMAT",
|
|
58
|
+
DATABRICKS_ROW_STORE_FORMAT: "DATABRICKS_ROW_STORE_FORMAT",
|
|
59
|
+
DELTA_UNIFORM_HUDI: "DELTA_UNIFORM_HUDI",
|
|
60
|
+
DELTA_UNIFORM_ICEBERG: "DELTA_UNIFORM_ICEBERG",
|
|
61
|
+
ICEBERG: "ICEBERG"
|
|
74
62
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
* to the remote source.
|
|
141
|
-
*/
|
|
142
|
-
TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_DELTASHARING: 'TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_DELTASHARING',
|
|
143
|
-
/**
|
|
144
|
-
* This is the delta sharing version of TABLE_DELTA_UNIFORM_ICEBERG_EXTERNAL.
|
|
145
|
-
* Unlike the above foreign iceberg kinds which originate from external catalogs,
|
|
146
|
-
* this represents an external uniform iceberg table shared via Delta Sharing.
|
|
147
|
-
*/
|
|
148
|
-
TABLE_DELTA_UNIFORM_ICEBERG_EXTERNAL_DELTASHARING: 'TABLE_DELTA_UNIFORM_ICEBERG_EXTERNAL_DELTASHARING',
|
|
149
|
-
/** These represent 2 variations of Managed Iceberg tables. See ManagedIcebergTableUtils.scala for more details. */
|
|
150
|
-
TABLE_ICEBERG_UNIFORM_MANAGED: 'TABLE_ICEBERG_UNIFORM_MANAGED',
|
|
151
|
-
TABLE_DELTA_ICEBERG_MANAGED: 'TABLE_DELTA_ICEBERG_MANAGED',
|
|
152
|
-
TABLE_ONLINE_VECTOR_INDEX_REPLICA: 'TABLE_ONLINE_VECTOR_INDEX_REPLICA',
|
|
153
|
-
TABLE_ONLINE_VECTOR_INDEX_DIRECT: 'TABLE_ONLINE_VECTOR_INDEX_DIRECT',
|
|
154
|
-
TABLE_ONLINE_VIEW: 'TABLE_ONLINE_VIEW',
|
|
155
|
-
TABLE_DB_STORAGE: 'TABLE_DB_STORAGE',
|
|
156
|
-
TABLE_MANAGED_POSTGRESQL: 'TABLE_MANAGED_POSTGRESQL',
|
|
63
|
+
const SecurableKind = {
|
|
64
|
+
TABLE_STANDARD: "TABLE_STANDARD",
|
|
65
|
+
TABLE_EXTERNAL: "TABLE_EXTERNAL",
|
|
66
|
+
TABLE_DELTA: "TABLE_DELTA",
|
|
67
|
+
TABLE_DELTA_EXTERNAL: "TABLE_DELTA_EXTERNAL",
|
|
68
|
+
TABLE_VIEW: "TABLE_VIEW",
|
|
69
|
+
TABLE_METRIC_VIEW: "TABLE_METRIC_VIEW",
|
|
70
|
+
TABLE_DELTASHARING: "TABLE_DELTASHARING",
|
|
71
|
+
TABLE_DELTASHARING_MUTABLE: "TABLE_DELTASHARING_MUTABLE",
|
|
72
|
+
TABLE_VIEW_DELTASHARING: "TABLE_VIEW_DELTASHARING",
|
|
73
|
+
TABLE_METRIC_VIEW_DELTASHARING: "TABLE_METRIC_VIEW_DELTASHARING",
|
|
74
|
+
TABLE_MATERIALIZED_VIEW_DELTASHARING: "TABLE_MATERIALIZED_VIEW_DELTASHARING",
|
|
75
|
+
TABLE_STREAMING_LIVE_TABLE_DELTASHARING: "TABLE_STREAMING_LIVE_TABLE_DELTASHARING",
|
|
76
|
+
TABLE_FOREIGN_DELTASHARING: "TABLE_FOREIGN_DELTASHARING",
|
|
77
|
+
TABLE_DELTA_ICEBERG_DELTASHARING: "TABLE_DELTA_ICEBERG_DELTASHARING",
|
|
78
|
+
TABLE_DELTASHARING_OPEN_DIR_BASED: "TABLE_DELTASHARING_OPEN_DIR_BASED",
|
|
79
|
+
TABLE_FEATURE_STORE: "TABLE_FEATURE_STORE",
|
|
80
|
+
TABLE_FEATURE_STORE_EXTERNAL: "TABLE_FEATURE_STORE_EXTERNAL",
|
|
81
|
+
TABLE_STREAMING_LIVE_TABLE: "TABLE_STREAMING_LIVE_TABLE",
|
|
82
|
+
TABLE_SYSTEM: "TABLE_SYSTEM",
|
|
83
|
+
TABLE_SYSTEM_DELTASHARING: "TABLE_SYSTEM_DELTASHARING",
|
|
84
|
+
TABLE_MATERIALIZED_VIEW: "TABLE_MATERIALIZED_VIEW",
|
|
85
|
+
TABLE_INTERNAL: "TABLE_INTERNAL",
|
|
86
|
+
TABLE_FOREIGN_BIGQUERY: "TABLE_FOREIGN_BIGQUERY",
|
|
87
|
+
TABLE_FOREIGN_MYSQL: "TABLE_FOREIGN_MYSQL",
|
|
88
|
+
TABLE_FOREIGN_ORACLE: "TABLE_FOREIGN_ORACLE",
|
|
89
|
+
TABLE_FOREIGN_POSTGRESQL: "TABLE_FOREIGN_POSTGRESQL",
|
|
90
|
+
TABLE_FOREIGN_SQLDW: "TABLE_FOREIGN_SQLDW",
|
|
91
|
+
TABLE_FOREIGN_REDSHIFT: "TABLE_FOREIGN_REDSHIFT",
|
|
92
|
+
TABLE_FOREIGN_SNOWFLAKE: "TABLE_FOREIGN_SNOWFLAKE",
|
|
93
|
+
TABLE_FOREIGN_SQLSERVER: "TABLE_FOREIGN_SQLSERVER",
|
|
94
|
+
TABLE_FOREIGN_SALESFORCE: "TABLE_FOREIGN_SALESFORCE",
|
|
95
|
+
TABLE_FOREIGN_SALESFORCE_DATA_CLOUD: "TABLE_FOREIGN_SALESFORCE_DATA_CLOUD",
|
|
96
|
+
TABLE_FOREIGN_SALESFORCE_DATA_CLOUD_FILE_SHARING: "TABLE_FOREIGN_SALESFORCE_DATA_CLOUD_FILE_SHARING",
|
|
97
|
+
TABLE_FOREIGN_SALESFORCE_DATA_CLOUD_FILE_SHARING_VIEW: "TABLE_FOREIGN_SALESFORCE_DATA_CLOUD_FILE_SHARING_VIEW",
|
|
98
|
+
TABLE_FOREIGN_TERADATA: "TABLE_FOREIGN_TERADATA",
|
|
99
|
+
TABLE_FOREIGN_NETSUITE: "TABLE_FOREIGN_NETSUITE",
|
|
100
|
+
TABLE_FOREIGN_DATABRICKS: "TABLE_FOREIGN_DATABRICKS",
|
|
101
|
+
TABLE_FOREIGN_WORKDAY_RAAS: "TABLE_FOREIGN_WORKDAY_RAAS",
|
|
102
|
+
TABLE_FOREIGN_HIVE_METASTORE: "TABLE_FOREIGN_HIVE_METASTORE",
|
|
103
|
+
TABLE_FOREIGN_HIVE_METASTORE_MANAGED: "TABLE_FOREIGN_HIVE_METASTORE_MANAGED",
|
|
104
|
+
TABLE_FOREIGN_HIVE_METASTORE_DBFS_MANAGED: "TABLE_FOREIGN_HIVE_METASTORE_DBFS_MANAGED",
|
|
105
|
+
TABLE_FOREIGN_HIVE_METASTORE_EXTERNAL: "TABLE_FOREIGN_HIVE_METASTORE_EXTERNAL",
|
|
106
|
+
TABLE_FOREIGN_HIVE_METASTORE_DBFS_EXTERNAL: "TABLE_FOREIGN_HIVE_METASTORE_DBFS_EXTERNAL",
|
|
107
|
+
TABLE_FOREIGN_HIVE_METASTORE_VIEW: "TABLE_FOREIGN_HIVE_METASTORE_VIEW",
|
|
108
|
+
TABLE_FOREIGN_HIVE_METASTORE_DBFS_VIEW: "TABLE_FOREIGN_HIVE_METASTORE_DBFS_VIEW",
|
|
109
|
+
TABLE_FOREIGN_HIVE_METASTORE_SHALLOW_CLONE_MANAGED: "TABLE_FOREIGN_HIVE_METASTORE_SHALLOW_CLONE_MANAGED",
|
|
110
|
+
TABLE_FOREIGN_HIVE_METASTORE_DBFS_SHALLOW_CLONE_MANAGED: "TABLE_FOREIGN_HIVE_METASTORE_DBFS_SHALLOW_CLONE_MANAGED",
|
|
111
|
+
TABLE_FOREIGN_HIVE_METASTORE_SHALLOW_CLONE_EXTERNAL: "TABLE_FOREIGN_HIVE_METASTORE_SHALLOW_CLONE_EXTERNAL",
|
|
112
|
+
TABLE_FOREIGN_HIVE_METASTORE_DBFS_SHALLOW_CLONE_EXTERNAL: "TABLE_FOREIGN_HIVE_METASTORE_DBFS_SHALLOW_CLONE_EXTERNAL",
|
|
113
|
+
TABLE_FOREIGN_MONGODB: "TABLE_FOREIGN_MONGODB",
|
|
114
|
+
TABLE_DELTA_UNIFORM_HUDI_EXTERNAL: "TABLE_DELTA_UNIFORM_HUDI_EXTERNAL",
|
|
115
|
+
TABLE_DELTA_UNIFORM_ICEBERG_EXTERNAL: "TABLE_DELTA_UNIFORM_ICEBERG_EXTERNAL",
|
|
116
|
+
TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_HIVE_METASTORE_EXTERNAL: "TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_HIVE_METASTORE_EXTERNAL",
|
|
117
|
+
TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_HIVE_METASTORE_MANAGED: "TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_HIVE_METASTORE_MANAGED",
|
|
118
|
+
TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_SNOWFLAKE: "TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_SNOWFLAKE",
|
|
119
|
+
TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_DELTASHARING: "TABLE_DELTA_UNIFORM_ICEBERG_FOREIGN_DELTASHARING",
|
|
120
|
+
TABLE_DELTA_UNIFORM_ICEBERG_EXTERNAL_DELTASHARING: "TABLE_DELTA_UNIFORM_ICEBERG_EXTERNAL_DELTASHARING",
|
|
121
|
+
TABLE_ICEBERG_UNIFORM_MANAGED: "TABLE_ICEBERG_UNIFORM_MANAGED",
|
|
122
|
+
TABLE_DELTA_ICEBERG_MANAGED: "TABLE_DELTA_ICEBERG_MANAGED",
|
|
123
|
+
TABLE_ONLINE_VECTOR_INDEX_REPLICA: "TABLE_ONLINE_VECTOR_INDEX_REPLICA",
|
|
124
|
+
TABLE_ONLINE_VECTOR_INDEX_DIRECT: "TABLE_ONLINE_VECTOR_INDEX_DIRECT",
|
|
125
|
+
TABLE_ONLINE_VIEW: "TABLE_ONLINE_VIEW",
|
|
126
|
+
TABLE_DB_STORAGE: "TABLE_DB_STORAGE",
|
|
127
|
+
TABLE_MANAGED_POSTGRESQL: "TABLE_MANAGED_POSTGRESQL"
|
|
157
128
|
};
|
|
158
129
|
/** The type of Unity Catalog securable. */
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
/** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */
|
|
178
|
-
STAGING_TABLE: 'STAGING_TABLE',
|
|
130
|
+
const SecurableType = {
|
|
131
|
+
CATALOG: "CATALOG",
|
|
132
|
+
SCHEMA: "SCHEMA",
|
|
133
|
+
TABLE: "TABLE",
|
|
134
|
+
STORAGE_CREDENTIAL: "STORAGE_CREDENTIAL",
|
|
135
|
+
EXTERNAL_LOCATION: "EXTERNAL_LOCATION",
|
|
136
|
+
FUNCTION: "FUNCTION",
|
|
137
|
+
SHARE: "SHARE",
|
|
138
|
+
PROVIDER: "PROVIDER",
|
|
139
|
+
RECIPIENT: "RECIPIENT",
|
|
140
|
+
CLEAN_ROOM: "CLEAN_ROOM",
|
|
141
|
+
METASTORE: "METASTORE",
|
|
142
|
+
PIPELINE: "PIPELINE",
|
|
143
|
+
VOLUME: "VOLUME",
|
|
144
|
+
CONNECTION: "CONNECTION",
|
|
145
|
+
CREDENTIAL: "CREDENTIAL",
|
|
146
|
+
EXTERNAL_METADATA: "EXTERNAL_METADATA",
|
|
147
|
+
STAGING_TABLE: "STAGING_TABLE"
|
|
179
148
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
AWS_SSE_KMS: 'AWS_SSE_KMS',
|
|
149
|
+
const SseEncryptionAlgorithm = {
|
|
150
|
+
SSE_ENCRYPTION_ALGORITHM_UNSPECIFIED: "SSE_ENCRYPTION_ALGORITHM_UNSPECIFIED",
|
|
151
|
+
AWS_SSE_S3: "AWS_SSE_S3",
|
|
152
|
+
AWS_SSE_KMS: "AWS_SSE_KMS"
|
|
185
153
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
METRIC_VIEW: 'METRIC_VIEW',
|
|
154
|
+
const TableType = {
|
|
155
|
+
MANAGED: "MANAGED",
|
|
156
|
+
EXTERNAL: "EXTERNAL",
|
|
157
|
+
VIEW: "VIEW",
|
|
158
|
+
MATERIALIZED_VIEW: "MATERIALIZED_VIEW",
|
|
159
|
+
STREAMING_TABLE: "STREAMING_TABLE",
|
|
160
|
+
MANAGED_SHALLOW_CLONE: "MANAGED_SHALLOW_CLONE",
|
|
161
|
+
FOREIGN: "FOREIGN",
|
|
162
|
+
EXTERNAL_SHALLOW_CLONE: "EXTERNAL_SHALLOW_CLONE",
|
|
163
|
+
METRIC_VIEW: "METRIC_VIEW"
|
|
197
164
|
};
|
|
198
165
|
/**
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
BEFORE_ACCESS_TOKEN: 'BEFORE_ACCESS_TOKEN',
|
|
166
|
+
* During the OAuth flow, specifies which stage the option should be displayed in the UI.
|
|
167
|
+
* OAUTH_STAGE_UNSPECIFIED is the default value for options unrelated to the OAuth flow.
|
|
168
|
+
* BEFORE_AUTHORIZATION_CODE corresponds to options necessary to initiate the OAuth process.
|
|
169
|
+
* BEFORE_ACCESS_TOKEN corresponds to options that are necessary to create a foreign connection,
|
|
170
|
+
* but that should be displayed after the authorization code has already been received.
|
|
171
|
+
*/
|
|
172
|
+
const OptionSpec_OauthStage = {
|
|
173
|
+
OAUTH_STAGE_UNSPECIFIED: "OAUTH_STAGE_UNSPECIFIED",
|
|
174
|
+
BEFORE_AUTHORIZATION_CODE: "BEFORE_AUTHORIZATION_CODE",
|
|
175
|
+
BEFORE_ACCESS_TOKEN: "BEFORE_ACCESS_TOKEN"
|
|
210
176
|
};
|
|
211
177
|
/**
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
OPTION_MULTILINE_STRING: 'OPTION_MULTILINE_STRING',
|
|
178
|
+
* Type of the option, we purposely follow JavaScript types so that
|
|
179
|
+
* the UI can map the options to JS types.
|
|
180
|
+
* https://www.w3schools.com/js/js_datatypes.asp
|
|
181
|
+
* Enum is a special case that it's just string with selections.
|
|
182
|
+
*/
|
|
183
|
+
const OptionSpec_OptionType = {
|
|
184
|
+
OPTION_TYPE_UNSPECIFIED: "OPTION_TYPE_UNSPECIFIED",
|
|
185
|
+
OPTION_BOOLEAN: "OPTION_BOOLEAN",
|
|
186
|
+
OPTION_NUMBER: "OPTION_NUMBER",
|
|
187
|
+
OPTION_BIGINT: "OPTION_BIGINT",
|
|
188
|
+
OPTION_STRING: "OPTION_STRING",
|
|
189
|
+
OPTION_ENUM: "OPTION_ENUM",
|
|
190
|
+
OPTION_SERVICE_CREDENTIAL: "OPTION_SERVICE_CREDENTIAL",
|
|
191
|
+
OPTION_MULTILINE_STRING: "OPTION_MULTILINE_STRING"
|
|
227
192
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
})
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}))
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
})
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}));
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}))
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
})
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
}));
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}
|
|
847
|
-
export const marshalForeignKeyConstraintSchema = z
|
|
848
|
-
.object({
|
|
849
|
-
name: z.string().optional(),
|
|
850
|
-
childColumns: z.array(z.string()).optional(),
|
|
851
|
-
parentTable: z.string().optional(),
|
|
852
|
-
parentColumns: z.array(z.string()).optional(),
|
|
853
|
-
rely: z.boolean().optional(),
|
|
854
|
-
})
|
|
855
|
-
.transform(d => ({
|
|
856
|
-
name: d.name,
|
|
857
|
-
child_columns: d.childColumns,
|
|
858
|
-
parent_table: d.parentTable,
|
|
859
|
-
parent_columns: d.parentColumns,
|
|
860
|
-
rely: d.rely,
|
|
861
|
-
}));
|
|
862
|
-
export const marshalFunctionDependencySchema = z
|
|
863
|
-
.object({
|
|
864
|
-
functionFullName: z.string().optional(),
|
|
865
|
-
})
|
|
866
|
-
.transform(d => ({
|
|
867
|
-
function_full_name: d.functionFullName,
|
|
868
|
-
}));
|
|
869
|
-
export const marshalNamedTableConstraintSchema = z
|
|
870
|
-
.object({
|
|
871
|
-
name: z.string().optional(),
|
|
872
|
-
})
|
|
873
|
-
.transform(d => ({
|
|
874
|
-
name: d.name,
|
|
875
|
-
}));
|
|
876
|
-
export const marshalOptionSpecSchema = z
|
|
877
|
-
.object({
|
|
878
|
-
name: z.string().optional(),
|
|
879
|
-
type: z.string().optional(),
|
|
880
|
-
defaultValue: z.string().optional(),
|
|
881
|
-
allowedValues: z.array(z.string()).optional(),
|
|
882
|
-
hint: z.string().optional(),
|
|
883
|
-
description: z.string().optional(),
|
|
884
|
-
isRequired: z.boolean().optional(),
|
|
885
|
-
isSecret: z.boolean().optional(),
|
|
886
|
-
isHidden: z.boolean().optional(),
|
|
887
|
-
isUpdatable: z.boolean().optional(),
|
|
888
|
-
oauthStage: z.string().optional(),
|
|
889
|
-
isLoggable: z.boolean().optional(),
|
|
890
|
-
isCreatable: z.boolean().optional(),
|
|
891
|
-
isCopiable: z.boolean().optional(),
|
|
892
|
-
})
|
|
893
|
-
.transform(d => ({
|
|
894
|
-
name: d.name,
|
|
895
|
-
type: d.type,
|
|
896
|
-
default_value: d.defaultValue,
|
|
897
|
-
allowed_values: d.allowedValues,
|
|
898
|
-
hint: d.hint,
|
|
899
|
-
description: d.description,
|
|
900
|
-
is_required: d.isRequired,
|
|
901
|
-
is_secret: d.isSecret,
|
|
902
|
-
is_hidden: d.isHidden,
|
|
903
|
-
is_updatable: d.isUpdatable,
|
|
904
|
-
oauth_stage: d.oauthStage,
|
|
905
|
-
is_loggable: d.isLoggable,
|
|
906
|
-
is_creatable: d.isCreatable,
|
|
907
|
-
is_copiable: d.isCopiable,
|
|
908
|
-
}));
|
|
909
|
-
export const marshalPolicyFunctionArgumentSchema = z
|
|
910
|
-
.object({
|
|
911
|
-
arg: z
|
|
912
|
-
.discriminatedUnion('$case', [
|
|
913
|
-
z.object({ $case: z.literal('column'), column: z.string() }),
|
|
914
|
-
z.object({ $case: z.literal('constant'), constant: z.string() }),
|
|
915
|
-
])
|
|
916
|
-
.optional(),
|
|
917
|
-
})
|
|
918
|
-
.transform(d => ({
|
|
919
|
-
...(d.arg?.$case === 'column' && { column: d.arg.column }),
|
|
920
|
-
...(d.arg?.$case === 'constant' && { constant: d.arg.constant }),
|
|
921
|
-
}));
|
|
922
|
-
export const marshalPrimaryKeyConstraintSchema = z
|
|
923
|
-
.object({
|
|
924
|
-
name: z.string().optional(),
|
|
925
|
-
childColumns: z.array(z.string()).optional(),
|
|
926
|
-
timeseriesColumns: z.array(z.string()).optional(),
|
|
927
|
-
rely: z.boolean().optional(),
|
|
928
|
-
})
|
|
929
|
-
.transform(d => ({
|
|
930
|
-
name: d.name,
|
|
931
|
-
child_columns: d.childColumns,
|
|
932
|
-
timeseries_columns: d.timeseriesColumns,
|
|
933
|
-
rely: d.rely,
|
|
934
|
-
}));
|
|
935
|
-
export const marshalRowFilterSchema = z
|
|
936
|
-
.object({
|
|
937
|
-
functionName: z.string().optional(),
|
|
938
|
-
inputColumnNames: z.array(z.string()).optional(),
|
|
939
|
-
inputArguments: z
|
|
940
|
-
.array(z.lazy(() => marshalPolicyFunctionArgumentSchema))
|
|
941
|
-
.optional(),
|
|
942
|
-
})
|
|
943
|
-
.transform(d => ({
|
|
944
|
-
function_name: d.functionName,
|
|
945
|
-
input_column_names: d.inputColumnNames,
|
|
946
|
-
input_arguments: d.inputArguments,
|
|
947
|
-
}));
|
|
948
|
-
export const marshalSecurableKindManifestSchema = z
|
|
949
|
-
.object({
|
|
950
|
-
securableType: z.string().optional(),
|
|
951
|
-
securableKind: z.string().optional(),
|
|
952
|
-
assignablePrivileges: z.array(z.string()).optional(),
|
|
953
|
-
options: z.array(z.lazy(() => marshalOptionSpecSchema)).optional(),
|
|
954
|
-
capabilities: z.array(z.string()).optional(),
|
|
955
|
-
})
|
|
956
|
-
.transform(d => ({
|
|
957
|
-
securable_type: d.securableType,
|
|
958
|
-
securable_kind: d.securableKind,
|
|
959
|
-
assignable_privileges: d.assignablePrivileges,
|
|
960
|
-
options: d.options,
|
|
961
|
-
capabilities: d.capabilities,
|
|
962
|
-
}));
|
|
963
|
-
export const marshalSseEncryptionDetailsSchema = z
|
|
964
|
-
.object({
|
|
965
|
-
algorithm: z.string().optional(),
|
|
966
|
-
awsKmsKeyArn: z.string().optional(),
|
|
967
|
-
})
|
|
968
|
-
.transform(d => ({
|
|
969
|
-
algorithm: d.algorithm,
|
|
970
|
-
aws_kms_key_arn: d.awsKmsKeyArn,
|
|
971
|
-
}));
|
|
972
|
-
export const marshalTableConstraintSchema = z
|
|
973
|
-
.object({
|
|
974
|
-
constraint: z
|
|
975
|
-
.discriminatedUnion('$case', [
|
|
976
|
-
z.object({
|
|
977
|
-
$case: z.literal('primaryKeyConstraint'),
|
|
978
|
-
primaryKeyConstraint: z.lazy(() => marshalPrimaryKeyConstraintSchema),
|
|
979
|
-
}),
|
|
980
|
-
z.object({
|
|
981
|
-
$case: z.literal('foreignKeyConstraint'),
|
|
982
|
-
foreignKeyConstraint: z.lazy(() => marshalForeignKeyConstraintSchema),
|
|
983
|
-
}),
|
|
984
|
-
z.object({
|
|
985
|
-
$case: z.literal('namedTableConstraint'),
|
|
986
|
-
namedTableConstraint: z.lazy(() => marshalNamedTableConstraintSchema),
|
|
987
|
-
}),
|
|
988
|
-
])
|
|
989
|
-
.optional(),
|
|
990
|
-
})
|
|
991
|
-
.transform(d => ({
|
|
992
|
-
...(d.constraint?.$case === 'primaryKeyConstraint' && {
|
|
993
|
-
primary_key_constraint: d.constraint.primaryKeyConstraint,
|
|
994
|
-
}),
|
|
995
|
-
...(d.constraint?.$case === 'foreignKeyConstraint' && {
|
|
996
|
-
foreign_key_constraint: d.constraint.foreignKeyConstraint,
|
|
997
|
-
}),
|
|
998
|
-
...(d.constraint?.$case === 'namedTableConstraint' && {
|
|
999
|
-
named_table_constraint: d.constraint.namedTableConstraint,
|
|
1000
|
-
}),
|
|
1001
|
-
}));
|
|
1002
|
-
export const marshalTableDependencySchema = z
|
|
1003
|
-
.object({
|
|
1004
|
-
tableFullName: z.string().optional(),
|
|
1005
|
-
})
|
|
1006
|
-
.transform(d => ({
|
|
1007
|
-
table_full_name: d.tableFullName,
|
|
1008
|
-
}));
|
|
1009
|
-
export const marshalUpdateTableRequestSchema = z
|
|
1010
|
-
.object({
|
|
1011
|
-
fullNameArg: z.string().optional(),
|
|
1012
|
-
name: z.string().optional(),
|
|
1013
|
-
catalogName: z.string().optional(),
|
|
1014
|
-
schemaName: z.string().optional(),
|
|
1015
|
-
tableType: z.string().optional(),
|
|
1016
|
-
dataSourceFormat: z.string().optional(),
|
|
1017
|
-
storageLocation: z.string().optional(),
|
|
1018
|
-
viewDefinition: z.string().optional(),
|
|
1019
|
-
viewDependencies: z.lazy(() => marshalDependencyListSchema).optional(),
|
|
1020
|
-
sqlPath: z.string().optional(),
|
|
1021
|
-
owner: z.string().optional(),
|
|
1022
|
-
comment: z.string().optional(),
|
|
1023
|
-
storageCredentialName: z.string().optional(),
|
|
1024
|
-
tableConstraints: z
|
|
1025
|
-
.array(z.lazy(() => marshalTableConstraintSchema))
|
|
1026
|
-
.optional(),
|
|
1027
|
-
rowFilter: z.lazy(() => marshalRowFilterSchema).optional(),
|
|
1028
|
-
pipelineId: z.string().optional(),
|
|
1029
|
-
enablePredictiveOptimization: z.string().optional(),
|
|
1030
|
-
metastoreId: z.string().optional(),
|
|
1031
|
-
fullName: z.string().optional(),
|
|
1032
|
-
dataAccessConfigurationId: z.string().optional(),
|
|
1033
|
-
createdAt: z.bigint().optional(),
|
|
1034
|
-
createdBy: z.string().optional(),
|
|
1035
|
-
updatedAt: z.bigint().optional(),
|
|
1036
|
-
updatedBy: z.string().optional(),
|
|
1037
|
-
tableId: z.string().optional(),
|
|
1038
|
-
deltaRuntimePropertiesKvpairs: z
|
|
1039
|
-
.lazy(() => marshalDeltaRuntimePropertiesKvPairsSchema)
|
|
1040
|
-
.optional(),
|
|
1041
|
-
deletedAt: z.bigint().optional(),
|
|
1042
|
-
effectivePredictiveOptimizationFlag: z
|
|
1043
|
-
.lazy(() => marshalEffectivePredictiveOptimizationFlagSchema)
|
|
1044
|
-
.optional(),
|
|
1045
|
-
accessPoint: z.string().optional(),
|
|
1046
|
-
browseOnly: z.boolean().optional(),
|
|
1047
|
-
encryptionDetails: z.lazy(() => marshalEncryptionDetailsSchema).optional(),
|
|
1048
|
-
securableKindManifest: z
|
|
1049
|
-
.lazy(() => marshalSecurableKindManifestSchema)
|
|
1050
|
-
.optional(),
|
|
1051
|
-
columns: z.array(z.lazy(() => marshalColumnInfoSchema)).optional(),
|
|
1052
|
-
properties: z.record(z.string(), z.string()).optional(),
|
|
1053
|
-
})
|
|
1054
|
-
.transform(d => ({
|
|
1055
|
-
full_name_arg: d.fullNameArg,
|
|
1056
|
-
name: d.name,
|
|
1057
|
-
catalog_name: d.catalogName,
|
|
1058
|
-
schema_name: d.schemaName,
|
|
1059
|
-
table_type: d.tableType,
|
|
1060
|
-
data_source_format: d.dataSourceFormat,
|
|
1061
|
-
storage_location: d.storageLocation,
|
|
1062
|
-
view_definition: d.viewDefinition,
|
|
1063
|
-
view_dependencies: d.viewDependencies,
|
|
1064
|
-
sql_path: d.sqlPath,
|
|
1065
|
-
owner: d.owner,
|
|
1066
|
-
comment: d.comment,
|
|
1067
|
-
storage_credential_name: d.storageCredentialName,
|
|
1068
|
-
table_constraints: d.tableConstraints,
|
|
1069
|
-
row_filter: d.rowFilter,
|
|
1070
|
-
pipeline_id: d.pipelineId,
|
|
1071
|
-
enable_predictive_optimization: d.enablePredictiveOptimization,
|
|
1072
|
-
metastore_id: d.metastoreId,
|
|
1073
|
-
full_name: d.fullName,
|
|
1074
|
-
data_access_configuration_id: d.dataAccessConfigurationId,
|
|
1075
|
-
created_at: d.createdAt,
|
|
1076
|
-
created_by: d.createdBy,
|
|
1077
|
-
updated_at: d.updatedAt,
|
|
1078
|
-
updated_by: d.updatedBy,
|
|
1079
|
-
table_id: d.tableId,
|
|
1080
|
-
delta_runtime_properties_kvpairs: d.deltaRuntimePropertiesKvpairs,
|
|
1081
|
-
deleted_at: d.deletedAt,
|
|
1082
|
-
effective_predictive_optimization_flag: d.effectivePredictiveOptimizationFlag,
|
|
1083
|
-
access_point: d.accessPoint,
|
|
1084
|
-
browse_only: d.browseOnly,
|
|
1085
|
-
encryption_details: d.encryptionDetails,
|
|
1086
|
-
securable_kind_manifest: d.securableKindManifest,
|
|
1087
|
-
columns: d.columns,
|
|
1088
|
-
properties: d.properties,
|
|
1089
|
-
}));
|
|
193
|
+
const unmarshalColumnInfoSchema = z.object({
|
|
194
|
+
name: z.string().optional(),
|
|
195
|
+
type_text: z.string().optional(),
|
|
196
|
+
type_name: z.string().optional(),
|
|
197
|
+
position: z.number().optional(),
|
|
198
|
+
type_precision: z.number().optional(),
|
|
199
|
+
type_scale: z.number().optional(),
|
|
200
|
+
type_interval_type: z.string().optional(),
|
|
201
|
+
type_json: z.string().optional(),
|
|
202
|
+
comment: z.string().optional(),
|
|
203
|
+
nullable: z.boolean().optional(),
|
|
204
|
+
partition_index: z.number().optional(),
|
|
205
|
+
mask: z.lazy(() => unmarshalColumnMaskSchema).optional()
|
|
206
|
+
}).transform((d) => ({
|
|
207
|
+
name: d.name,
|
|
208
|
+
typeText: d.type_text,
|
|
209
|
+
typeName: d.type_name,
|
|
210
|
+
position: d.position,
|
|
211
|
+
typePrecision: d.type_precision,
|
|
212
|
+
typeScale: d.type_scale,
|
|
213
|
+
typeIntervalType: d.type_interval_type,
|
|
214
|
+
typeJson: d.type_json,
|
|
215
|
+
comment: d.comment,
|
|
216
|
+
nullable: d.nullable,
|
|
217
|
+
partitionIndex: d.partition_index,
|
|
218
|
+
mask: d.mask
|
|
219
|
+
}));
|
|
220
|
+
const unmarshalColumnMaskSchema = z.object({
|
|
221
|
+
function_name: z.string().optional(),
|
|
222
|
+
using_column_names: z.array(z.string()).optional(),
|
|
223
|
+
using_arguments: z.array(z.lazy(() => unmarshalPolicyFunctionArgumentSchema)).optional()
|
|
224
|
+
}).transform((d) => ({
|
|
225
|
+
functionName: d.function_name,
|
|
226
|
+
usingColumnNames: d.using_column_names,
|
|
227
|
+
usingArguments: d.using_arguments
|
|
228
|
+
}));
|
|
229
|
+
const unmarshalConnectionDependencySchema = z.object({ connection_name: z.string().optional() }).transform((d) => ({ connectionName: d.connection_name }));
|
|
230
|
+
const unmarshalCredentialDependencySchema = z.object({ credential_name: z.string().optional() }).transform((d) => ({ credentialName: d.credential_name }));
|
|
231
|
+
const unmarshalDeleteTableConstraintResponseSchema = z.object({});
|
|
232
|
+
const unmarshalDeleteTableResponseSchema = z.object({});
|
|
233
|
+
const unmarshalDeltaRuntimePropertiesKvPairsSchema = z.object({ delta_runtime_properties: z.record(z.string(), z.string()).optional() }).transform((d) => ({ deltaRuntimeProperties: d.delta_runtime_properties }));
|
|
234
|
+
const unmarshalDependencySchema = z.object({
|
|
235
|
+
table: z.lazy(() => unmarshalTableDependencySchema).optional(),
|
|
236
|
+
function: z.lazy(() => unmarshalFunctionDependencySchema).optional(),
|
|
237
|
+
connection: z.lazy(() => unmarshalConnectionDependencySchema).optional(),
|
|
238
|
+
credential: z.lazy(() => unmarshalCredentialDependencySchema).optional()
|
|
239
|
+
}).transform((d) => ({ value: d.table !== void 0 ? {
|
|
240
|
+
$case: "table",
|
|
241
|
+
table: d.table
|
|
242
|
+
} : d.function !== void 0 ? {
|
|
243
|
+
$case: "function",
|
|
244
|
+
function: d.function
|
|
245
|
+
} : d.connection !== void 0 ? {
|
|
246
|
+
$case: "connection",
|
|
247
|
+
connection: d.connection
|
|
248
|
+
} : d.credential !== void 0 ? {
|
|
249
|
+
$case: "credential",
|
|
250
|
+
credential: d.credential
|
|
251
|
+
} : void 0 }));
|
|
252
|
+
const unmarshalDependencyListSchema = z.object({ dependencies: z.array(z.lazy(() => unmarshalDependencySchema)).optional() }).transform((d) => ({ dependencies: d.dependencies }));
|
|
253
|
+
const unmarshalEffectivePredictiveOptimizationFlagSchema = z.object({
|
|
254
|
+
value: z.string().optional(),
|
|
255
|
+
inherited_from_type: z.string().optional(),
|
|
256
|
+
inherited_from_name: z.string().optional()
|
|
257
|
+
}).transform((d) => ({
|
|
258
|
+
value: d.value,
|
|
259
|
+
inheritedFromType: d.inherited_from_type,
|
|
260
|
+
inheritedFromName: d.inherited_from_name
|
|
261
|
+
}));
|
|
262
|
+
const unmarshalEncryptionDetailsSchema = z.object({ sse_encryption_details: z.lazy(() => unmarshalSseEncryptionDetailsSchema).optional() }).transform((d) => ({ encryptionDetailsType: d.sse_encryption_details !== void 0 ? {
|
|
263
|
+
$case: "sseEncryptionDetails",
|
|
264
|
+
sseEncryptionDetails: d.sse_encryption_details
|
|
265
|
+
} : void 0 }));
|
|
266
|
+
const unmarshalForeignKeyConstraintSchema = z.object({
|
|
267
|
+
name: z.string().optional(),
|
|
268
|
+
child_columns: z.array(z.string()).optional(),
|
|
269
|
+
parent_table: z.string().optional(),
|
|
270
|
+
parent_columns: z.array(z.string()).optional(),
|
|
271
|
+
rely: z.boolean().optional()
|
|
272
|
+
}).transform((d) => ({
|
|
273
|
+
name: d.name,
|
|
274
|
+
childColumns: d.child_columns,
|
|
275
|
+
parentTable: d.parent_table,
|
|
276
|
+
parentColumns: d.parent_columns,
|
|
277
|
+
rely: d.rely
|
|
278
|
+
}));
|
|
279
|
+
const unmarshalFunctionDependencySchema = z.object({ function_full_name: z.string().optional() }).transform((d) => ({ functionFullName: d.function_full_name }));
|
|
280
|
+
const unmarshalListTableSummariesResponseSchema = z.object({
|
|
281
|
+
tables: z.array(z.lazy(() => unmarshalTableSummarySchema)).optional(),
|
|
282
|
+
next_page_token: z.string().optional()
|
|
283
|
+
}).transform((d) => ({
|
|
284
|
+
tables: d.tables,
|
|
285
|
+
nextPageToken: d.next_page_token
|
|
286
|
+
}));
|
|
287
|
+
const unmarshalListTablesResponseSchema = z.object({
|
|
288
|
+
tables: z.array(z.lazy(() => unmarshalTableInfoSchema)).optional(),
|
|
289
|
+
next_page_token: z.string().optional()
|
|
290
|
+
}).transform((d) => ({
|
|
291
|
+
tables: d.tables,
|
|
292
|
+
nextPageToken: d.next_page_token
|
|
293
|
+
}));
|
|
294
|
+
const unmarshalNamedTableConstraintSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
295
|
+
const unmarshalOptionSpecSchema = z.object({
|
|
296
|
+
name: z.string().optional(),
|
|
297
|
+
type: z.string().optional(),
|
|
298
|
+
default_value: z.string().optional(),
|
|
299
|
+
allowed_values: z.array(z.string()).optional(),
|
|
300
|
+
hint: z.string().optional(),
|
|
301
|
+
description: z.string().optional(),
|
|
302
|
+
is_required: z.boolean().optional(),
|
|
303
|
+
is_secret: z.boolean().optional(),
|
|
304
|
+
is_hidden: z.boolean().optional(),
|
|
305
|
+
is_updatable: z.boolean().optional(),
|
|
306
|
+
oauth_stage: z.string().optional(),
|
|
307
|
+
is_loggable: z.boolean().optional(),
|
|
308
|
+
is_creatable: z.boolean().optional(),
|
|
309
|
+
is_copiable: z.boolean().optional()
|
|
310
|
+
}).transform((d) => ({
|
|
311
|
+
name: d.name,
|
|
312
|
+
type: d.type,
|
|
313
|
+
defaultValue: d.default_value,
|
|
314
|
+
allowedValues: d.allowed_values,
|
|
315
|
+
hint: d.hint,
|
|
316
|
+
description: d.description,
|
|
317
|
+
isRequired: d.is_required,
|
|
318
|
+
isSecret: d.is_secret,
|
|
319
|
+
isHidden: d.is_hidden,
|
|
320
|
+
isUpdatable: d.is_updatable,
|
|
321
|
+
oauthStage: d.oauth_stage,
|
|
322
|
+
isLoggable: d.is_loggable,
|
|
323
|
+
isCreatable: d.is_creatable,
|
|
324
|
+
isCopiable: d.is_copiable
|
|
325
|
+
}));
|
|
326
|
+
const unmarshalPolicyFunctionArgumentSchema = z.object({
|
|
327
|
+
column: z.string().optional(),
|
|
328
|
+
constant: z.string().optional()
|
|
329
|
+
}).transform((d) => ({ arg: d.column !== void 0 ? {
|
|
330
|
+
$case: "column",
|
|
331
|
+
column: d.column
|
|
332
|
+
} : d.constant !== void 0 ? {
|
|
333
|
+
$case: "constant",
|
|
334
|
+
constant: d.constant
|
|
335
|
+
} : void 0 }));
|
|
336
|
+
const unmarshalPrimaryKeyConstraintSchema = z.object({
|
|
337
|
+
name: z.string().optional(),
|
|
338
|
+
child_columns: z.array(z.string()).optional(),
|
|
339
|
+
timeseries_columns: z.array(z.string()).optional(),
|
|
340
|
+
rely: z.boolean().optional()
|
|
341
|
+
}).transform((d) => ({
|
|
342
|
+
name: d.name,
|
|
343
|
+
childColumns: d.child_columns,
|
|
344
|
+
timeseriesColumns: d.timeseries_columns,
|
|
345
|
+
rely: d.rely
|
|
346
|
+
}));
|
|
347
|
+
const unmarshalRowFilterSchema = z.object({
|
|
348
|
+
function_name: z.string().optional(),
|
|
349
|
+
input_column_names: z.array(z.string()).optional(),
|
|
350
|
+
input_arguments: z.array(z.lazy(() => unmarshalPolicyFunctionArgumentSchema)).optional()
|
|
351
|
+
}).transform((d) => ({
|
|
352
|
+
functionName: d.function_name,
|
|
353
|
+
inputColumnNames: d.input_column_names,
|
|
354
|
+
inputArguments: d.input_arguments
|
|
355
|
+
}));
|
|
356
|
+
const unmarshalSecurableKindManifestSchema = z.object({
|
|
357
|
+
securable_type: z.string().optional(),
|
|
358
|
+
securable_kind: z.string().optional(),
|
|
359
|
+
assignable_privileges: z.array(z.string()).optional(),
|
|
360
|
+
options: z.array(z.lazy(() => unmarshalOptionSpecSchema)).optional(),
|
|
361
|
+
capabilities: z.array(z.string()).optional()
|
|
362
|
+
}).transform((d) => ({
|
|
363
|
+
securableType: d.securable_type,
|
|
364
|
+
securableKind: d.securable_kind,
|
|
365
|
+
assignablePrivileges: d.assignable_privileges,
|
|
366
|
+
options: d.options,
|
|
367
|
+
capabilities: d.capabilities
|
|
368
|
+
}));
|
|
369
|
+
const unmarshalSseEncryptionDetailsSchema = z.object({
|
|
370
|
+
algorithm: z.string().optional(),
|
|
371
|
+
aws_kms_key_arn: z.string().optional()
|
|
372
|
+
}).transform((d) => ({
|
|
373
|
+
algorithm: d.algorithm,
|
|
374
|
+
awsKmsKeyArn: d.aws_kms_key_arn
|
|
375
|
+
}));
|
|
376
|
+
const unmarshalTableConstraintSchema = z.object({
|
|
377
|
+
primary_key_constraint: z.lazy(() => unmarshalPrimaryKeyConstraintSchema).optional(),
|
|
378
|
+
foreign_key_constraint: z.lazy(() => unmarshalForeignKeyConstraintSchema).optional(),
|
|
379
|
+
named_table_constraint: z.lazy(() => unmarshalNamedTableConstraintSchema).optional()
|
|
380
|
+
}).transform((d) => ({ constraint: d.primary_key_constraint !== void 0 ? {
|
|
381
|
+
$case: "primaryKeyConstraint",
|
|
382
|
+
primaryKeyConstraint: d.primary_key_constraint
|
|
383
|
+
} : d.foreign_key_constraint !== void 0 ? {
|
|
384
|
+
$case: "foreignKeyConstraint",
|
|
385
|
+
foreignKeyConstraint: d.foreign_key_constraint
|
|
386
|
+
} : d.named_table_constraint !== void 0 ? {
|
|
387
|
+
$case: "namedTableConstraint",
|
|
388
|
+
namedTableConstraint: d.named_table_constraint
|
|
389
|
+
} : void 0 }));
|
|
390
|
+
const unmarshalTableDependencySchema = z.object({ table_full_name: z.string().optional() }).transform((d) => ({ tableFullName: d.table_full_name }));
|
|
391
|
+
const unmarshalTableExistsResponseSchema = z.object({ table_exists: z.boolean().optional() }).transform((d) => ({ tableExists: d.table_exists }));
|
|
392
|
+
const unmarshalTableInfoSchema = z.object({
|
|
393
|
+
name: z.string().optional(),
|
|
394
|
+
catalog_name: z.string().optional(),
|
|
395
|
+
schema_name: z.string().optional(),
|
|
396
|
+
table_type: z.string().optional(),
|
|
397
|
+
data_source_format: z.string().optional(),
|
|
398
|
+
storage_location: z.string().optional(),
|
|
399
|
+
view_definition: z.string().optional(),
|
|
400
|
+
view_dependencies: z.lazy(() => unmarshalDependencyListSchema).optional(),
|
|
401
|
+
sql_path: z.string().optional(),
|
|
402
|
+
owner: z.string().optional(),
|
|
403
|
+
comment: z.string().optional(),
|
|
404
|
+
storage_credential_name: z.string().optional(),
|
|
405
|
+
table_constraints: z.array(z.lazy(() => unmarshalTableConstraintSchema)).optional(),
|
|
406
|
+
row_filter: z.lazy(() => unmarshalRowFilterSchema).optional(),
|
|
407
|
+
pipeline_id: z.string().optional(),
|
|
408
|
+
enable_predictive_optimization: z.string().optional(),
|
|
409
|
+
metastore_id: z.string().optional(),
|
|
410
|
+
full_name: z.string().optional(),
|
|
411
|
+
data_access_configuration_id: z.string().optional(),
|
|
412
|
+
created_at: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
413
|
+
created_by: z.string().optional(),
|
|
414
|
+
updated_at: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
415
|
+
updated_by: z.string().optional(),
|
|
416
|
+
table_id: z.string().optional(),
|
|
417
|
+
delta_runtime_properties_kvpairs: z.lazy(() => unmarshalDeltaRuntimePropertiesKvPairsSchema).optional(),
|
|
418
|
+
deleted_at: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
419
|
+
effective_predictive_optimization_flag: z.lazy(() => unmarshalEffectivePredictiveOptimizationFlagSchema).optional(),
|
|
420
|
+
access_point: z.string().optional(),
|
|
421
|
+
browse_only: z.boolean().optional(),
|
|
422
|
+
encryption_details: z.lazy(() => unmarshalEncryptionDetailsSchema).optional(),
|
|
423
|
+
securable_kind_manifest: z.lazy(() => unmarshalSecurableKindManifestSchema).optional(),
|
|
424
|
+
columns: z.array(z.lazy(() => unmarshalColumnInfoSchema)).optional(),
|
|
425
|
+
properties: z.record(z.string(), z.string()).optional()
|
|
426
|
+
}).transform((d) => ({
|
|
427
|
+
name: d.name,
|
|
428
|
+
catalogName: d.catalog_name,
|
|
429
|
+
schemaName: d.schema_name,
|
|
430
|
+
tableType: d.table_type,
|
|
431
|
+
dataSourceFormat: d.data_source_format,
|
|
432
|
+
storageLocation: d.storage_location,
|
|
433
|
+
viewDefinition: d.view_definition,
|
|
434
|
+
viewDependencies: d.view_dependencies,
|
|
435
|
+
sqlPath: d.sql_path,
|
|
436
|
+
owner: d.owner,
|
|
437
|
+
comment: d.comment,
|
|
438
|
+
storageCredentialName: d.storage_credential_name,
|
|
439
|
+
tableConstraints: d.table_constraints,
|
|
440
|
+
rowFilter: d.row_filter,
|
|
441
|
+
pipelineId: d.pipeline_id,
|
|
442
|
+
enablePredictiveOptimization: d.enable_predictive_optimization,
|
|
443
|
+
metastoreId: d.metastore_id,
|
|
444
|
+
fullName: d.full_name,
|
|
445
|
+
dataAccessConfigurationId: d.data_access_configuration_id,
|
|
446
|
+
createdAt: d.created_at,
|
|
447
|
+
createdBy: d.created_by,
|
|
448
|
+
updatedAt: d.updated_at,
|
|
449
|
+
updatedBy: d.updated_by,
|
|
450
|
+
tableId: d.table_id,
|
|
451
|
+
deltaRuntimePropertiesKvpairs: d.delta_runtime_properties_kvpairs,
|
|
452
|
+
deletedAt: d.deleted_at,
|
|
453
|
+
effectivePredictiveOptimizationFlag: d.effective_predictive_optimization_flag,
|
|
454
|
+
accessPoint: d.access_point,
|
|
455
|
+
browseOnly: d.browse_only,
|
|
456
|
+
encryptionDetails: d.encryption_details,
|
|
457
|
+
securableKindManifest: d.securable_kind_manifest,
|
|
458
|
+
columns: d.columns,
|
|
459
|
+
properties: d.properties
|
|
460
|
+
}));
|
|
461
|
+
const unmarshalTableSummarySchema = z.object({
|
|
462
|
+
full_name: z.string().optional(),
|
|
463
|
+
table_type: z.string().optional(),
|
|
464
|
+
securable_kind_manifest: z.lazy(() => unmarshalSecurableKindManifestSchema).optional()
|
|
465
|
+
}).transform((d) => ({
|
|
466
|
+
fullName: d.full_name,
|
|
467
|
+
tableType: d.table_type,
|
|
468
|
+
securableKindManifest: d.securable_kind_manifest
|
|
469
|
+
}));
|
|
470
|
+
const unmarshalUpdateTableResponseSchema = z.object({});
|
|
471
|
+
const marshalColumnInfoSchema = z.object({
|
|
472
|
+
name: z.string().optional(),
|
|
473
|
+
typeText: z.string().optional(),
|
|
474
|
+
typeName: z.string().optional(),
|
|
475
|
+
position: z.number().optional(),
|
|
476
|
+
typePrecision: z.number().optional(),
|
|
477
|
+
typeScale: z.number().optional(),
|
|
478
|
+
typeIntervalType: z.string().optional(),
|
|
479
|
+
typeJson: z.string().optional(),
|
|
480
|
+
comment: z.string().optional(),
|
|
481
|
+
nullable: z.boolean().optional(),
|
|
482
|
+
partitionIndex: z.number().optional(),
|
|
483
|
+
mask: z.lazy(() => marshalColumnMaskSchema).optional()
|
|
484
|
+
}).transform((d) => ({
|
|
485
|
+
name: d.name,
|
|
486
|
+
type_text: d.typeText,
|
|
487
|
+
type_name: d.typeName,
|
|
488
|
+
position: d.position,
|
|
489
|
+
type_precision: d.typePrecision,
|
|
490
|
+
type_scale: d.typeScale,
|
|
491
|
+
type_interval_type: d.typeIntervalType,
|
|
492
|
+
type_json: d.typeJson,
|
|
493
|
+
comment: d.comment,
|
|
494
|
+
nullable: d.nullable,
|
|
495
|
+
partition_index: d.partitionIndex,
|
|
496
|
+
mask: d.mask
|
|
497
|
+
}));
|
|
498
|
+
const marshalColumnMaskSchema = z.object({
|
|
499
|
+
functionName: z.string().optional(),
|
|
500
|
+
usingColumnNames: z.array(z.string()).optional(),
|
|
501
|
+
usingArguments: z.array(z.lazy(() => marshalPolicyFunctionArgumentSchema)).optional()
|
|
502
|
+
}).transform((d) => ({
|
|
503
|
+
function_name: d.functionName,
|
|
504
|
+
using_column_names: d.usingColumnNames,
|
|
505
|
+
using_arguments: d.usingArguments
|
|
506
|
+
}));
|
|
507
|
+
const marshalConnectionDependencySchema = z.object({ connectionName: z.string().optional() }).transform((d) => ({ connection_name: d.connectionName }));
|
|
508
|
+
const marshalCreateTableConstraintRequestSchema = z.object({
|
|
509
|
+
fullNameArg: z.string().optional(),
|
|
510
|
+
constraint: z.lazy(() => marshalTableConstraintSchema).optional()
|
|
511
|
+
}).transform((d) => ({
|
|
512
|
+
full_name_arg: d.fullNameArg,
|
|
513
|
+
constraint: d.constraint
|
|
514
|
+
}));
|
|
515
|
+
const marshalCreateTableRequestSchema = z.object({
|
|
516
|
+
name: z.string().optional(),
|
|
517
|
+
catalogName: z.string().optional(),
|
|
518
|
+
schemaName: z.string().optional(),
|
|
519
|
+
tableType: z.string().optional(),
|
|
520
|
+
dataSourceFormat: z.string().optional(),
|
|
521
|
+
storageLocation: z.string().optional(),
|
|
522
|
+
viewDefinition: z.string().optional(),
|
|
523
|
+
viewDependencies: z.lazy(() => marshalDependencyListSchema).optional(),
|
|
524
|
+
sqlPath: z.string().optional(),
|
|
525
|
+
owner: z.string().optional(),
|
|
526
|
+
comment: z.string().optional(),
|
|
527
|
+
storageCredentialName: z.string().optional(),
|
|
528
|
+
tableConstraints: z.array(z.lazy(() => marshalTableConstraintSchema)).optional(),
|
|
529
|
+
rowFilter: z.lazy(() => marshalRowFilterSchema).optional(),
|
|
530
|
+
pipelineId: z.string().optional(),
|
|
531
|
+
enablePredictiveOptimization: z.string().optional(),
|
|
532
|
+
metastoreId: z.string().optional(),
|
|
533
|
+
fullName: z.string().optional(),
|
|
534
|
+
dataAccessConfigurationId: z.string().optional(),
|
|
535
|
+
createdAt: z.bigint().optional(),
|
|
536
|
+
createdBy: z.string().optional(),
|
|
537
|
+
updatedAt: z.bigint().optional(),
|
|
538
|
+
updatedBy: z.string().optional(),
|
|
539
|
+
tableId: z.string().optional(),
|
|
540
|
+
deltaRuntimePropertiesKvpairs: z.lazy(() => marshalDeltaRuntimePropertiesKvPairsSchema).optional(),
|
|
541
|
+
deletedAt: z.bigint().optional(),
|
|
542
|
+
effectivePredictiveOptimizationFlag: z.lazy(() => marshalEffectivePredictiveOptimizationFlagSchema).optional(),
|
|
543
|
+
accessPoint: z.string().optional(),
|
|
544
|
+
browseOnly: z.boolean().optional(),
|
|
545
|
+
encryptionDetails: z.lazy(() => marshalEncryptionDetailsSchema).optional(),
|
|
546
|
+
securableKindManifest: z.lazy(() => marshalSecurableKindManifestSchema).optional(),
|
|
547
|
+
columns: z.array(z.lazy(() => marshalColumnInfoSchema)).optional(),
|
|
548
|
+
properties: z.record(z.string(), z.string()).optional()
|
|
549
|
+
}).transform((d) => ({
|
|
550
|
+
name: d.name,
|
|
551
|
+
catalog_name: d.catalogName,
|
|
552
|
+
schema_name: d.schemaName,
|
|
553
|
+
table_type: d.tableType,
|
|
554
|
+
data_source_format: d.dataSourceFormat,
|
|
555
|
+
storage_location: d.storageLocation,
|
|
556
|
+
view_definition: d.viewDefinition,
|
|
557
|
+
view_dependencies: d.viewDependencies,
|
|
558
|
+
sql_path: d.sqlPath,
|
|
559
|
+
owner: d.owner,
|
|
560
|
+
comment: d.comment,
|
|
561
|
+
storage_credential_name: d.storageCredentialName,
|
|
562
|
+
table_constraints: d.tableConstraints,
|
|
563
|
+
row_filter: d.rowFilter,
|
|
564
|
+
pipeline_id: d.pipelineId,
|
|
565
|
+
enable_predictive_optimization: d.enablePredictiveOptimization,
|
|
566
|
+
metastore_id: d.metastoreId,
|
|
567
|
+
full_name: d.fullName,
|
|
568
|
+
data_access_configuration_id: d.dataAccessConfigurationId,
|
|
569
|
+
created_at: d.createdAt,
|
|
570
|
+
created_by: d.createdBy,
|
|
571
|
+
updated_at: d.updatedAt,
|
|
572
|
+
updated_by: d.updatedBy,
|
|
573
|
+
table_id: d.tableId,
|
|
574
|
+
delta_runtime_properties_kvpairs: d.deltaRuntimePropertiesKvpairs,
|
|
575
|
+
deleted_at: d.deletedAt,
|
|
576
|
+
effective_predictive_optimization_flag: d.effectivePredictiveOptimizationFlag,
|
|
577
|
+
access_point: d.accessPoint,
|
|
578
|
+
browse_only: d.browseOnly,
|
|
579
|
+
encryption_details: d.encryptionDetails,
|
|
580
|
+
securable_kind_manifest: d.securableKindManifest,
|
|
581
|
+
columns: d.columns,
|
|
582
|
+
properties: d.properties
|
|
583
|
+
}));
|
|
584
|
+
const marshalCredentialDependencySchema = z.object({ credentialName: z.string().optional() }).transform((d) => ({ credential_name: d.credentialName }));
|
|
585
|
+
const marshalDeltaRuntimePropertiesKvPairsSchema = z.object({ deltaRuntimeProperties: z.record(z.string(), z.string()).optional() }).transform((d) => ({ delta_runtime_properties: d.deltaRuntimeProperties }));
|
|
586
|
+
const marshalDependencySchema = z.object({ value: z.discriminatedUnion("$case", [
|
|
587
|
+
z.object({
|
|
588
|
+
$case: z.literal("table"),
|
|
589
|
+
table: z.lazy(() => marshalTableDependencySchema)
|
|
590
|
+
}),
|
|
591
|
+
z.object({
|
|
592
|
+
$case: z.literal("function"),
|
|
593
|
+
function: z.lazy(() => marshalFunctionDependencySchema)
|
|
594
|
+
}),
|
|
595
|
+
z.object({
|
|
596
|
+
$case: z.literal("connection"),
|
|
597
|
+
connection: z.lazy(() => marshalConnectionDependencySchema)
|
|
598
|
+
}),
|
|
599
|
+
z.object({
|
|
600
|
+
$case: z.literal("credential"),
|
|
601
|
+
credential: z.lazy(() => marshalCredentialDependencySchema)
|
|
602
|
+
})
|
|
603
|
+
]).optional() }).transform((d) => ({
|
|
604
|
+
...d.value?.$case === "table" && { table: d.value.table },
|
|
605
|
+
...d.value?.$case === "function" && { function: d.value.function },
|
|
606
|
+
...d.value?.$case === "connection" && { connection: d.value.connection },
|
|
607
|
+
...d.value?.$case === "credential" && { credential: d.value.credential }
|
|
608
|
+
}));
|
|
609
|
+
const marshalDependencyListSchema = z.object({ dependencies: z.array(z.lazy(() => marshalDependencySchema)).optional() }).transform((d) => ({ dependencies: d.dependencies }));
|
|
610
|
+
const marshalEffectivePredictiveOptimizationFlagSchema = z.object({
|
|
611
|
+
value: z.string().optional(),
|
|
612
|
+
inheritedFromType: z.string().optional(),
|
|
613
|
+
inheritedFromName: z.string().optional()
|
|
614
|
+
}).transform((d) => ({
|
|
615
|
+
value: d.value,
|
|
616
|
+
inherited_from_type: d.inheritedFromType,
|
|
617
|
+
inherited_from_name: d.inheritedFromName
|
|
618
|
+
}));
|
|
619
|
+
const marshalEncryptionDetailsSchema = z.object({ encryptionDetailsType: z.discriminatedUnion("$case", [z.object({
|
|
620
|
+
$case: z.literal("sseEncryptionDetails"),
|
|
621
|
+
sseEncryptionDetails: z.lazy(() => marshalSseEncryptionDetailsSchema)
|
|
622
|
+
})]).optional() }).transform((d) => ({ ...d.encryptionDetailsType?.$case === "sseEncryptionDetails" && { sse_encryption_details: d.encryptionDetailsType.sseEncryptionDetails } }));
|
|
623
|
+
const marshalForeignKeyConstraintSchema = z.object({
|
|
624
|
+
name: z.string().optional(),
|
|
625
|
+
childColumns: z.array(z.string()).optional(),
|
|
626
|
+
parentTable: z.string().optional(),
|
|
627
|
+
parentColumns: z.array(z.string()).optional(),
|
|
628
|
+
rely: z.boolean().optional()
|
|
629
|
+
}).transform((d) => ({
|
|
630
|
+
name: d.name,
|
|
631
|
+
child_columns: d.childColumns,
|
|
632
|
+
parent_table: d.parentTable,
|
|
633
|
+
parent_columns: d.parentColumns,
|
|
634
|
+
rely: d.rely
|
|
635
|
+
}));
|
|
636
|
+
const marshalFunctionDependencySchema = z.object({ functionFullName: z.string().optional() }).transform((d) => ({ function_full_name: d.functionFullName }));
|
|
637
|
+
const marshalNamedTableConstraintSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
638
|
+
const marshalOptionSpecSchema = z.object({
|
|
639
|
+
name: z.string().optional(),
|
|
640
|
+
type: z.string().optional(),
|
|
641
|
+
defaultValue: z.string().optional(),
|
|
642
|
+
allowedValues: z.array(z.string()).optional(),
|
|
643
|
+
hint: z.string().optional(),
|
|
644
|
+
description: z.string().optional(),
|
|
645
|
+
isRequired: z.boolean().optional(),
|
|
646
|
+
isSecret: z.boolean().optional(),
|
|
647
|
+
isHidden: z.boolean().optional(),
|
|
648
|
+
isUpdatable: z.boolean().optional(),
|
|
649
|
+
oauthStage: z.string().optional(),
|
|
650
|
+
isLoggable: z.boolean().optional(),
|
|
651
|
+
isCreatable: z.boolean().optional(),
|
|
652
|
+
isCopiable: z.boolean().optional()
|
|
653
|
+
}).transform((d) => ({
|
|
654
|
+
name: d.name,
|
|
655
|
+
type: d.type,
|
|
656
|
+
default_value: d.defaultValue,
|
|
657
|
+
allowed_values: d.allowedValues,
|
|
658
|
+
hint: d.hint,
|
|
659
|
+
description: d.description,
|
|
660
|
+
is_required: d.isRequired,
|
|
661
|
+
is_secret: d.isSecret,
|
|
662
|
+
is_hidden: d.isHidden,
|
|
663
|
+
is_updatable: d.isUpdatable,
|
|
664
|
+
oauth_stage: d.oauthStage,
|
|
665
|
+
is_loggable: d.isLoggable,
|
|
666
|
+
is_creatable: d.isCreatable,
|
|
667
|
+
is_copiable: d.isCopiable
|
|
668
|
+
}));
|
|
669
|
+
const marshalPolicyFunctionArgumentSchema = z.object({ arg: z.discriminatedUnion("$case", [z.object({
|
|
670
|
+
$case: z.literal("column"),
|
|
671
|
+
column: z.string()
|
|
672
|
+
}), z.object({
|
|
673
|
+
$case: z.literal("constant"),
|
|
674
|
+
constant: z.string()
|
|
675
|
+
})]).optional() }).transform((d) => ({
|
|
676
|
+
...d.arg?.$case === "column" && { column: d.arg.column },
|
|
677
|
+
...d.arg?.$case === "constant" && { constant: d.arg.constant }
|
|
678
|
+
}));
|
|
679
|
+
const marshalPrimaryKeyConstraintSchema = z.object({
|
|
680
|
+
name: z.string().optional(),
|
|
681
|
+
childColumns: z.array(z.string()).optional(),
|
|
682
|
+
timeseriesColumns: z.array(z.string()).optional(),
|
|
683
|
+
rely: z.boolean().optional()
|
|
684
|
+
}).transform((d) => ({
|
|
685
|
+
name: d.name,
|
|
686
|
+
child_columns: d.childColumns,
|
|
687
|
+
timeseries_columns: d.timeseriesColumns,
|
|
688
|
+
rely: d.rely
|
|
689
|
+
}));
|
|
690
|
+
const marshalRowFilterSchema = z.object({
|
|
691
|
+
functionName: z.string().optional(),
|
|
692
|
+
inputColumnNames: z.array(z.string()).optional(),
|
|
693
|
+
inputArguments: z.array(z.lazy(() => marshalPolicyFunctionArgumentSchema)).optional()
|
|
694
|
+
}).transform((d) => ({
|
|
695
|
+
function_name: d.functionName,
|
|
696
|
+
input_column_names: d.inputColumnNames,
|
|
697
|
+
input_arguments: d.inputArguments
|
|
698
|
+
}));
|
|
699
|
+
const marshalSecurableKindManifestSchema = z.object({
|
|
700
|
+
securableType: z.string().optional(),
|
|
701
|
+
securableKind: z.string().optional(),
|
|
702
|
+
assignablePrivileges: z.array(z.string()).optional(),
|
|
703
|
+
options: z.array(z.lazy(() => marshalOptionSpecSchema)).optional(),
|
|
704
|
+
capabilities: z.array(z.string()).optional()
|
|
705
|
+
}).transform((d) => ({
|
|
706
|
+
securable_type: d.securableType,
|
|
707
|
+
securable_kind: d.securableKind,
|
|
708
|
+
assignable_privileges: d.assignablePrivileges,
|
|
709
|
+
options: d.options,
|
|
710
|
+
capabilities: d.capabilities
|
|
711
|
+
}));
|
|
712
|
+
const marshalSseEncryptionDetailsSchema = z.object({
|
|
713
|
+
algorithm: z.string().optional(),
|
|
714
|
+
awsKmsKeyArn: z.string().optional()
|
|
715
|
+
}).transform((d) => ({
|
|
716
|
+
algorithm: d.algorithm,
|
|
717
|
+
aws_kms_key_arn: d.awsKmsKeyArn
|
|
718
|
+
}));
|
|
719
|
+
const marshalTableConstraintSchema = z.object({ constraint: z.discriminatedUnion("$case", [
|
|
720
|
+
z.object({
|
|
721
|
+
$case: z.literal("primaryKeyConstraint"),
|
|
722
|
+
primaryKeyConstraint: z.lazy(() => marshalPrimaryKeyConstraintSchema)
|
|
723
|
+
}),
|
|
724
|
+
z.object({
|
|
725
|
+
$case: z.literal("foreignKeyConstraint"),
|
|
726
|
+
foreignKeyConstraint: z.lazy(() => marshalForeignKeyConstraintSchema)
|
|
727
|
+
}),
|
|
728
|
+
z.object({
|
|
729
|
+
$case: z.literal("namedTableConstraint"),
|
|
730
|
+
namedTableConstraint: z.lazy(() => marshalNamedTableConstraintSchema)
|
|
731
|
+
})
|
|
732
|
+
]).optional() }).transform((d) => ({
|
|
733
|
+
...d.constraint?.$case === "primaryKeyConstraint" && { primary_key_constraint: d.constraint.primaryKeyConstraint },
|
|
734
|
+
...d.constraint?.$case === "foreignKeyConstraint" && { foreign_key_constraint: d.constraint.foreignKeyConstraint },
|
|
735
|
+
...d.constraint?.$case === "namedTableConstraint" && { named_table_constraint: d.constraint.namedTableConstraint }
|
|
736
|
+
}));
|
|
737
|
+
const marshalTableDependencySchema = z.object({ tableFullName: z.string().optional() }).transform((d) => ({ table_full_name: d.tableFullName }));
|
|
738
|
+
const marshalUpdateTableRequestSchema = z.object({
|
|
739
|
+
fullNameArg: z.string().optional(),
|
|
740
|
+
name: z.string().optional(),
|
|
741
|
+
catalogName: z.string().optional(),
|
|
742
|
+
schemaName: z.string().optional(),
|
|
743
|
+
tableType: z.string().optional(),
|
|
744
|
+
dataSourceFormat: z.string().optional(),
|
|
745
|
+
storageLocation: z.string().optional(),
|
|
746
|
+
viewDefinition: z.string().optional(),
|
|
747
|
+
viewDependencies: z.lazy(() => marshalDependencyListSchema).optional(),
|
|
748
|
+
sqlPath: z.string().optional(),
|
|
749
|
+
owner: z.string().optional(),
|
|
750
|
+
comment: z.string().optional(),
|
|
751
|
+
storageCredentialName: z.string().optional(),
|
|
752
|
+
tableConstraints: z.array(z.lazy(() => marshalTableConstraintSchema)).optional(),
|
|
753
|
+
rowFilter: z.lazy(() => marshalRowFilterSchema).optional(),
|
|
754
|
+
pipelineId: z.string().optional(),
|
|
755
|
+
enablePredictiveOptimization: z.string().optional(),
|
|
756
|
+
metastoreId: z.string().optional(),
|
|
757
|
+
fullName: z.string().optional(),
|
|
758
|
+
dataAccessConfigurationId: z.string().optional(),
|
|
759
|
+
createdAt: z.bigint().optional(),
|
|
760
|
+
createdBy: z.string().optional(),
|
|
761
|
+
updatedAt: z.bigint().optional(),
|
|
762
|
+
updatedBy: z.string().optional(),
|
|
763
|
+
tableId: z.string().optional(),
|
|
764
|
+
deltaRuntimePropertiesKvpairs: z.lazy(() => marshalDeltaRuntimePropertiesKvPairsSchema).optional(),
|
|
765
|
+
deletedAt: z.bigint().optional(),
|
|
766
|
+
effectivePredictiveOptimizationFlag: z.lazy(() => marshalEffectivePredictiveOptimizationFlagSchema).optional(),
|
|
767
|
+
accessPoint: z.string().optional(),
|
|
768
|
+
browseOnly: z.boolean().optional(),
|
|
769
|
+
encryptionDetails: z.lazy(() => marshalEncryptionDetailsSchema).optional(),
|
|
770
|
+
securableKindManifest: z.lazy(() => marshalSecurableKindManifestSchema).optional(),
|
|
771
|
+
columns: z.array(z.lazy(() => marshalColumnInfoSchema)).optional(),
|
|
772
|
+
properties: z.record(z.string(), z.string()).optional()
|
|
773
|
+
}).transform((d) => ({
|
|
774
|
+
full_name_arg: d.fullNameArg,
|
|
775
|
+
name: d.name,
|
|
776
|
+
catalog_name: d.catalogName,
|
|
777
|
+
schema_name: d.schemaName,
|
|
778
|
+
table_type: d.tableType,
|
|
779
|
+
data_source_format: d.dataSourceFormat,
|
|
780
|
+
storage_location: d.storageLocation,
|
|
781
|
+
view_definition: d.viewDefinition,
|
|
782
|
+
view_dependencies: d.viewDependencies,
|
|
783
|
+
sql_path: d.sqlPath,
|
|
784
|
+
owner: d.owner,
|
|
785
|
+
comment: d.comment,
|
|
786
|
+
storage_credential_name: d.storageCredentialName,
|
|
787
|
+
table_constraints: d.tableConstraints,
|
|
788
|
+
row_filter: d.rowFilter,
|
|
789
|
+
pipeline_id: d.pipelineId,
|
|
790
|
+
enable_predictive_optimization: d.enablePredictiveOptimization,
|
|
791
|
+
metastore_id: d.metastoreId,
|
|
792
|
+
full_name: d.fullName,
|
|
793
|
+
data_access_configuration_id: d.dataAccessConfigurationId,
|
|
794
|
+
created_at: d.createdAt,
|
|
795
|
+
created_by: d.createdBy,
|
|
796
|
+
updated_at: d.updatedAt,
|
|
797
|
+
updated_by: d.updatedBy,
|
|
798
|
+
table_id: d.tableId,
|
|
799
|
+
delta_runtime_properties_kvpairs: d.deltaRuntimePropertiesKvpairs,
|
|
800
|
+
deleted_at: d.deletedAt,
|
|
801
|
+
effective_predictive_optimization_flag: d.effectivePredictiveOptimizationFlag,
|
|
802
|
+
access_point: d.accessPoint,
|
|
803
|
+
browse_only: d.browseOnly,
|
|
804
|
+
encryption_details: d.encryptionDetails,
|
|
805
|
+
securable_kind_manifest: d.securableKindManifest,
|
|
806
|
+
columns: d.columns,
|
|
807
|
+
properties: d.properties
|
|
808
|
+
}));
|
|
809
|
+
|
|
810
|
+
//#endregion
|
|
811
|
+
export { ColumnTypeName, DataSourceFormat, OptionSpec_OauthStage, OptionSpec_OptionType, SecurableKind, SecurableType, SseEncryptionAlgorithm, TableType, marshalColumnInfoSchema, marshalColumnMaskSchema, marshalConnectionDependencySchema, marshalCreateTableConstraintRequestSchema, marshalCreateTableRequestSchema, marshalCredentialDependencySchema, marshalDeltaRuntimePropertiesKvPairsSchema, marshalDependencyListSchema, marshalDependencySchema, marshalEffectivePredictiveOptimizationFlagSchema, marshalEncryptionDetailsSchema, marshalForeignKeyConstraintSchema, marshalFunctionDependencySchema, marshalNamedTableConstraintSchema, marshalOptionSpecSchema, marshalPolicyFunctionArgumentSchema, marshalPrimaryKeyConstraintSchema, marshalRowFilterSchema, marshalSecurableKindManifestSchema, marshalSseEncryptionDetailsSchema, marshalTableConstraintSchema, marshalTableDependencySchema, marshalUpdateTableRequestSchema, unmarshalColumnInfoSchema, unmarshalColumnMaskSchema, unmarshalConnectionDependencySchema, unmarshalCredentialDependencySchema, unmarshalDeleteTableConstraintResponseSchema, unmarshalDeleteTableResponseSchema, unmarshalDeltaRuntimePropertiesKvPairsSchema, unmarshalDependencyListSchema, unmarshalDependencySchema, unmarshalEffectivePredictiveOptimizationFlagSchema, unmarshalEncryptionDetailsSchema, unmarshalForeignKeyConstraintSchema, unmarshalFunctionDependencySchema, unmarshalListTableSummariesResponseSchema, unmarshalListTablesResponseSchema, unmarshalNamedTableConstraintSchema, unmarshalOptionSpecSchema, unmarshalPolicyFunctionArgumentSchema, unmarshalPrimaryKeyConstraintSchema, unmarshalRowFilterSchema, unmarshalSecurableKindManifestSchema, unmarshalSseEncryptionDetailsSchema, unmarshalTableConstraintSchema, unmarshalTableDependencySchema, unmarshalTableExistsResponseSchema, unmarshalTableInfoSchema, unmarshalTableSummarySchema, unmarshalUpdateTableResponseSchema };
|
|
1090
812
|
//# sourceMappingURL=model.js.map
|