@distilled.cloud/starburst-galaxy 0.0.0 → 1.0.0-rc.21

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.
Files changed (190) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +110 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +84 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +83 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +42 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +29 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +32 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/catalog.d.ts +2791 -0
  26. package/lib/services/catalog.d.ts.map +1 -0
  27. package/lib/services/catalog.js +101 -0
  28. package/lib/services/catalog.js.map +1 -0
  29. package/lib/services/cluster.d.ts +248 -0
  30. package/lib/services/cluster.d.ts.map +1 -0
  31. package/lib/services/cluster.js +2 -0
  32. package/lib/services/cluster.js.map +1 -0
  33. package/lib/services/column_mask.d.ts +162 -0
  34. package/lib/services/column_mask.d.ts.map +1 -0
  35. package/lib/services/column_mask.js +2 -0
  36. package/lib/services/column_mask.js.map +1 -0
  37. package/lib/services/cross_account_iam_role.d.ts +133 -0
  38. package/lib/services/cross_account_iam_role.d.ts.map +1 -0
  39. package/lib/services/cross_account_iam_role.js +2 -0
  40. package/lib/services/cross_account_iam_role.js.map +1 -0
  41. package/lib/services/data_domain.d.ts +223 -0
  42. package/lib/services/data_domain.d.ts.map +1 -0
  43. package/lib/services/data_domain.js +2 -0
  44. package/lib/services/data_domain.js.map +1 -0
  45. package/lib/services/data_product.d.ts +290 -0
  46. package/lib/services/data_product.d.ts.map +1 -0
  47. package/lib/services/data_product.js +2 -0
  48. package/lib/services/data_product.js.map +1 -0
  49. package/lib/services/data_product_usage_example.d.ts +158 -0
  50. package/lib/services/data_product_usage_example.d.ts.map +1 -0
  51. package/lib/services/data_product_usage_example.js +2 -0
  52. package/lib/services/data_product_usage_example.js.map +1 -0
  53. package/lib/services/data_quality.d.ts +344 -0
  54. package/lib/services/data_quality.d.ts.map +1 -0
  55. package/lib/services/data_quality.js +2 -0
  56. package/lib/services/data_quality.js.map +1 -0
  57. package/lib/services/data_quality_metrics.d.ts +282 -0
  58. package/lib/services/data_quality_metrics.d.ts.map +1 -0
  59. package/lib/services/data_quality_metrics.js +2 -0
  60. package/lib/services/data_quality_metrics.js.map +1 -0
  61. package/lib/services/data_quality_schedule.d.ts +220 -0
  62. package/lib/services/data_quality_schedule.d.ts.map +1 -0
  63. package/lib/services/data_quality_schedule.js +2 -0
  64. package/lib/services/data_quality_schedule.js.map +1 -0
  65. package/lib/services/discovery.d.ts +439 -0
  66. package/lib/services/discovery.d.ts.map +1 -0
  67. package/lib/services/discovery.js +36 -0
  68. package/lib/services/discovery.js.map +1 -0
  69. package/lib/services/file_ingest_source.d.ts +205 -0
  70. package/lib/services/file_ingest_source.d.ts.map +1 -0
  71. package/lib/services/file_ingest_source.js +2 -0
  72. package/lib/services/file_ingest_source.js.map +1 -0
  73. package/lib/services/group.d.ts +140 -0
  74. package/lib/services/group.d.ts.map +1 -0
  75. package/lib/services/group.js +2 -0
  76. package/lib/services/group.js.map +1 -0
  77. package/lib/services/index.d.ts +26 -0
  78. package/lib/services/index.d.ts.map +1 -0
  79. package/lib/services/index.js +25 -0
  80. package/lib/services/kafka_ingest_source.d.ts +236 -0
  81. package/lib/services/kafka_ingest_source.d.ts.map +1 -0
  82. package/lib/services/kafka_ingest_source.js +2 -0
  83. package/lib/services/kafka_ingest_source.js.map +1 -0
  84. package/lib/services/live_table.d.ts +851 -0
  85. package/lib/services/live_table.d.ts.map +1 -0
  86. package/lib/services/live_table.js +20 -0
  87. package/lib/services/live_table.js.map +1 -0
  88. package/lib/services/policy.d.ts +213 -0
  89. package/lib/services/policy.d.ts.map +1 -0
  90. package/lib/services/policy.js +2 -0
  91. package/lib/services/policy.js.map +1 -0
  92. package/lib/services/privatelink.d.ts +95 -0
  93. package/lib/services/privatelink.d.ts.map +1 -0
  94. package/lib/services/privatelink.js +2 -0
  95. package/lib/services/privatelink.js.map +1 -0
  96. package/lib/services/privilege.d.ts +167 -0
  97. package/lib/services/privilege.d.ts.map +1 -0
  98. package/lib/services/privilege.js +2 -0
  99. package/lib/services/privilege.js.map +1 -0
  100. package/lib/services/role.d.ts +222 -0
  101. package/lib/services/role.d.ts.map +1 -0
  102. package/lib/services/role.js +2 -0
  103. package/lib/services/role.js.map +1 -0
  104. package/lib/services/row_filter.d.ts +155 -0
  105. package/lib/services/row_filter.d.ts.map +1 -0
  106. package/lib/services/row_filter.js +2 -0
  107. package/lib/services/row_filter.js.map +1 -0
  108. package/lib/services/schema_discovery.d.ts +236 -0
  109. package/lib/services/schema_discovery.d.ts.map +1 -0
  110. package/lib/services/schema_discovery.js +2 -0
  111. package/lib/services/schema_discovery.js.map +1 -0
  112. package/lib/services/service_account.d.ts +206 -0
  113. package/lib/services/service_account.d.ts.map +1 -0
  114. package/lib/services/service_account.js +2 -0
  115. package/lib/services/service_account.js.map +1 -0
  116. package/lib/services/sql_jobs.d.ts +264 -0
  117. package/lib/services/sql_jobs.d.ts.map +1 -0
  118. package/lib/services/sql_jobs.js +2 -0
  119. package/lib/services/sql_jobs.js.map +1 -0
  120. package/lib/services/tag.d.ts +287 -0
  121. package/lib/services/tag.d.ts.map +1 -0
  122. package/lib/services/tag.js +2 -0
  123. package/lib/services/tag.js.map +1 -0
  124. package/lib/services/user.d.ts +175 -0
  125. package/lib/services/user.d.ts.map +1 -0
  126. package/lib/services/user.js +2 -0
  127. package/lib/services/user.js.map +1 -0
  128. package/lib/services.lazy/catalog.js +4 -0
  129. package/lib/services.lazy/cluster.js +1 -0
  130. package/lib/services.lazy/column_mask.js +1 -0
  131. package/lib/services.lazy/cross_account_iam_role.js +1 -0
  132. package/lib/services.lazy/data_domain.js +1 -0
  133. package/lib/services.lazy/data_product.js +1 -0
  134. package/lib/services.lazy/data_product_usage_example.js +1 -0
  135. package/lib/services.lazy/data_quality.js +1 -0
  136. package/lib/services.lazy/data_quality_metrics.js +1 -0
  137. package/lib/services.lazy/data_quality_schedule.js +1 -0
  138. package/lib/services.lazy/discovery.js +4 -0
  139. package/lib/services.lazy/file_ingest_source.js +1 -0
  140. package/lib/services.lazy/group.js +1 -0
  141. package/lib/services.lazy/index.js +3 -0
  142. package/lib/services.lazy/kafka_ingest_source.js +1 -0
  143. package/lib/services.lazy/live_table.js +4 -0
  144. package/lib/services.lazy/policy.js +1 -0
  145. package/lib/services.lazy/privatelink.js +1 -0
  146. package/lib/services.lazy/privilege.js +1 -0
  147. package/lib/services.lazy/role.js +1 -0
  148. package/lib/services.lazy/row_filter.js +1 -0
  149. package/lib/services.lazy/schema_discovery.js +1 -0
  150. package/lib/services.lazy/service_account.js +1 -0
  151. package/lib/services.lazy/sql_jobs.js +1 -0
  152. package/lib/services.lazy/tag.js +1 -0
  153. package/lib/services.lazy/user.js +1 -0
  154. package/lib/traits.d.ts +11 -0
  155. package/lib/traits.d.ts.map +1 -0
  156. package/lib/traits.js +1 -0
  157. package/package.json +82 -2
  158. package/src/credentials.ts +205 -0
  159. package/src/errors.ts +102 -0
  160. package/src/index.ts +45 -0
  161. package/src/pagination.ts +9 -0
  162. package/src/protocol.ts +94 -0
  163. package/src/retry.ts +50 -0
  164. package/src/services/catalog.ts +6636 -0
  165. package/src/services/cluster.ts +492 -0
  166. package/src/services/column_mask.ts +388 -0
  167. package/src/services/cross_account_iam_role.ts +328 -0
  168. package/src/services/data_domain.ts +509 -0
  169. package/src/services/data_product.ts +641 -0
  170. package/src/services/data_product_usage_example.ts +380 -0
  171. package/src/services/data_quality.ts +771 -0
  172. package/src/services/data_quality_metrics.ts +580 -0
  173. package/src/services/data_quality_schedule.ts +454 -0
  174. package/src/services/discovery.ts +1257 -0
  175. package/src/services/file_ingest_source.ts +480 -0
  176. package/src/services/group.ts +282 -0
  177. package/src/services/index.ts +26 -0
  178. package/src/services/kafka_ingest_source.ts +545 -0
  179. package/src/services/live_table.ts +1537 -0
  180. package/src/services/policy.ts +526 -0
  181. package/src/services/privatelink.ts +209 -0
  182. package/src/services/privilege.ts +423 -0
  183. package/src/services/role.ts +501 -0
  184. package/src/services/row_filter.ts +365 -0
  185. package/src/services/schema_discovery.ts +516 -0
  186. package/src/services/service_account.ts +525 -0
  187. package/src/services/sql_jobs.ts +621 -0
  188. package/src/services/tag.ts +785 -0
  189. package/src/services/user.ts +375 -0
  190. package/src/traits.ts +44 -0
@@ -0,0 +1,851 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import { type StarburstGalaxyOpError, type StarburstGalaxyOpContext } from "../protocol.ts";
4
+ export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
5
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
+ readonly message: any;
7
+ readonly body: any;
8
+ readonly headers: any;
9
+ }> & (new (...args: any[]) => {
10
+ "@distilled.cloud/error/categories": {
11
+ BadRequestError: true;
12
+ };
13
+ });
14
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
15
+ }
16
+ declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
17
+ readonly message: any;
18
+ readonly body: any;
19
+ readonly headers: any;
20
+ }> & (new (...args: any[]) => {
21
+ "@distilled.cloud/error/categories": {
22
+ ConflictError: true;
23
+ };
24
+ });
25
+ export declare class Conflict extends /*@__PURE__*/ Conflict_base {
26
+ }
27
+ declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
28
+ readonly message: any;
29
+ readonly body: any;
30
+ readonly headers: any;
31
+ }> & (new (...args: any[]) => {
32
+ "@distilled.cloud/error/categories": {
33
+ AuthError: true;
34
+ };
35
+ });
36
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
37
+ }
38
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
39
+ readonly message: any;
40
+ readonly body: any;
41
+ readonly headers: any;
42
+ }> & (new (...args: any[]) => {
43
+ "@distilled.cloud/error/categories": {
44
+ BadRequestError: true;
45
+ };
46
+ });
47
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
48
+ }
49
+ export type FailureMode = "Continue" | "FailFast";
50
+ export type NewTypePropertiesNewKafkaIngestPropertiesTypeKey = "newKafkaIngestProperties";
51
+ export type KafkaStartStrategy = "Earliest" | "Latest";
52
+ export type LatencyMode = "BalancedMode" | "LowLatencyMode";
53
+ /** Properties required for creating a new live table ingesting from Kafka */
54
+ export interface NewTypePropertiesNewKafkaIngestProperties {
55
+ typeKey: NewTypePropertiesNewKafkaIngestPropertiesTypeKey;
56
+ /** ID of the Kafka ingest source obtained from the /kafkaIngestSource endpoint */
57
+ kafkaIngestSourceId: string;
58
+ /** Kafka topic name */
59
+ kafkaTopicName: string;
60
+ /** Stream start strategy */
61
+ startStrategy: KafkaStartStrategy | (string & {});
62
+ /** Throughput limit per partition */
63
+ partitionMaxBytesPerSec: number;
64
+ /** Latency mode for commits */
65
+ latencyMode: LatencyMode | (string & {});
66
+ }
67
+ export type NewTypePropertiesNewFileIngestPropertiesTypeKey = "newFileIngestProperties";
68
+ export type FileFormat = "Json" | "Csv";
69
+ export type CsvDelimiter = "Comma" | "Tab" | "Pipe" | "Semicolon";
70
+ export type CsvQuoteChar = "DoubleQuote" | "SingleQuote";
71
+ export type CsvEscapeChar = "DoubleQuote" | "Backslash";
72
+ /** CSV format parameters. Required for CSV format, must be absent for other formats */
73
+ export interface NewTypePropertiesNewFileIngestPropertiesCsvParameters {
74
+ /** CSV delimiter character */
75
+ delimiter: CsvDelimiter | (string & {});
76
+ /** CSV quote character */
77
+ quoteChar: CsvQuoteChar | (string & {});
78
+ /** CSV escape character */
79
+ escapeChar: CsvEscapeChar | (string & {});
80
+ /** Number of CSV header lines to exclude */
81
+ numHeaderLinesToExclude: number;
82
+ }
83
+ /** Properties required for creating a new live table ingesting from a file */
84
+ export interface NewTypePropertiesNewFileIngestProperties {
85
+ typeKey: NewTypePropertiesNewFileIngestPropertiesTypeKey;
86
+ /** ID of the file ingest source obtained from the /fileIngestSource endpoint */
87
+ fileIngestSourceId: string;
88
+ /** Suffix to append to the name from ingest source */
89
+ pathSuffix?: string | undefined;
90
+ /** File format */
91
+ fileFormat: FileFormat | (string & {});
92
+ /** List files in object storage every polling interval */
93
+ pollingIntervalInMinutes: number;
94
+ /** CSV format parameters. Required for CSV format, must be absent for other formats */
95
+ csvParameters?: NewTypePropertiesNewFileIngestPropertiesCsvParameters | undefined;
96
+ }
97
+ export type NewTypePropertiesNewIngestJsonTransformPropertiesTypeKey = "newIngestJsonTransformProperties";
98
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
99
+ export type NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemFieldParserConfigParseParametersMap = {
100
+ [key: string]: string | undefined;
101
+ };
102
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
103
+ export interface NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemFieldParserConfig {
104
+ /** JSON pointer (IETF RFC 6901) */
105
+ pointer: string;
106
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
107
+ parseParameters?: NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemFieldParserConfigParseParametersMap | undefined;
108
+ }
109
+ export type TypeId = "Boolean" | "Integer" | "Bigint" | "Real" | "Double" | "Decimal" | "Date" | "Time" | "Timestamp" | "TimestampTz" | "Varchar" | "Uuid" | "Varbinary" | "Row" | "Array" | "Map";
110
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
111
+ export type NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemTrinoTypeTypeParametersMap = {
112
+ [key: string]: string | undefined;
113
+ };
114
+ /** Column type; adheres to Trino conventions */
115
+ export interface NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemTrinoType {
116
+ /** Trino type enum */
117
+ typeId: TypeId | (string & {});
118
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
119
+ typeParameters?: NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemTrinoTypeTypeParametersMap | undefined;
120
+ }
121
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
122
+ export type NewJsonIngestColumnFieldParserConfigParseParametersMap = {
123
+ [key: string]: string | undefined;
124
+ };
125
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
126
+ export interface NewJsonIngestColumnFieldParserConfig {
127
+ /** JSON pointer (IETF RFC 6901) */
128
+ pointer: string;
129
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
130
+ parseParameters?: NewJsonIngestColumnFieldParserConfigParseParametersMap | undefined;
131
+ }
132
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
133
+ export type NewJsonIngestColumnTrinoTypeTypeParametersMap = {
134
+ [key: string]: string | undefined;
135
+ };
136
+ /** Column type; adheres to Trino conventions */
137
+ export interface NewJsonIngestColumnTrinoType {
138
+ /** Trino type enum */
139
+ typeId: TypeId | (string & {});
140
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
141
+ typeParameters?: NewJsonIngestColumnTrinoTypeTypeParametersMap | undefined;
142
+ }
143
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
144
+ export type NewJsonIngestColumnNestedColumnsList = Array<NewJsonIngestColumn>;
145
+ /** Schema of the transformed table */
146
+ export interface NewJsonIngestColumn {
147
+ /** Name of the transform column; adheres to Trino conventions */
148
+ trinoColumnName: string;
149
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
150
+ fieldParserConfig: NewJsonIngestColumnFieldParserConfig;
151
+ /** Column type; adheres to Trino conventions */
152
+ trinoType: NewJsonIngestColumnTrinoType;
153
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
154
+ nestedColumns?: NewJsonIngestColumnNestedColumnsList | undefined;
155
+ }
156
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
157
+ export type NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemNestedColumnsList = Array<NewJsonIngestColumn>;
158
+ /** Schema of the transformed table */
159
+ export interface NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItem {
160
+ /** Name of the transform column; adheres to Trino conventions */
161
+ trinoColumnName: string;
162
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
163
+ fieldParserConfig: NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemFieldParserConfig;
164
+ /** Column type; adheres to Trino conventions */
165
+ trinoType: NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemTrinoType;
166
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
167
+ nestedColumns?: NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItemNestedColumnsList | undefined;
168
+ }
169
+ /** Schema of the transformed table */
170
+ export type NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaItem>;
171
+ /** Custom partition spec for transform live tables */
172
+ export interface NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem {
173
+ /** Column name from IngestColumn or NewIngestColumn */
174
+ trinoColumnName: string;
175
+ /** One of {identity, year, month, day, hour, bucket, truncate, void} */
176
+ transformType: string;
177
+ /** Bucket count when transformType=bucket */
178
+ bucketCount?: number | undefined;
179
+ /** Width when transformType=truncate */
180
+ truncateWidth?: number | undefined;
181
+ }
182
+ /** Custom partition spec for transform live tables */
183
+ export type NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem>;
184
+ export type FanoutTransform = "Identity";
185
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
186
+ export interface NewTypePropertiesNewIngestJsonTransformPropertiesFanoutColumnsItem {
187
+ /** Name of the column to route on, from IngestColumn or NewIngestColumn */
188
+ trinoColumnName: string;
189
+ /** Transform applied to the column value to form the route */
190
+ transform: FanoutTransform | (string & {});
191
+ }
192
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
193
+ export type NewTypePropertiesNewIngestJsonTransformPropertiesFanoutColumnsList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesFanoutColumnsItem>;
194
+ /** Properties required for creating a new JSON transform live table */
195
+ export interface NewTypePropertiesNewIngestJsonTransformProperties {
196
+ typeKey: NewTypePropertiesNewIngestJsonTransformPropertiesTypeKey;
197
+ /** ID of the source table */
198
+ liveTableId: string;
199
+ /** Schema of the transformed table */
200
+ userDefinedSchema: NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedSchemaList;
201
+ /** Custom partition spec for transform live tables */
202
+ userDefinedPartitionSpec?: NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecList | undefined;
203
+ /** Sort column */
204
+ sortColumnName?: string | undefined;
205
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
206
+ fanoutColumns?: NewTypePropertiesNewIngestJsonTransformPropertiesFanoutColumnsList | undefined;
207
+ }
208
+ export type NewTypePropertiesNewIngestSchemaRegistryAvroTransformPropertiesTypeKey = "newIngestSchemaRegistryAvroTransformProperties";
209
+ /** Custom partition spec for transform live tables */
210
+ export type NewTypePropertiesNewIngestSchemaRegistryAvroTransformPropertiesUserDefinedPartitionSpecItem = NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem;
211
+ /** Custom partition spec for transform live tables */
212
+ export type NewTypePropertiesNewIngestSchemaRegistryAvroTransformPropertiesUserDefinedPartitionSpecList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem>;
213
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
214
+ export type NewTypePropertiesNewIngestSchemaRegistryAvroTransformPropertiesFanoutColumnsItem = NewTypePropertiesNewIngestJsonTransformPropertiesFanoutColumnsItem;
215
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
216
+ export type NewTypePropertiesNewIngestSchemaRegistryAvroTransformPropertiesFanoutColumnsList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesFanoutColumnsItem>;
217
+ /** Properties required for creating a new schema registry Avro transform live table */
218
+ export interface NewTypePropertiesNewIngestSchemaRegistryAvroTransformProperties {
219
+ typeKey: NewTypePropertiesNewIngestSchemaRegistryAvroTransformPropertiesTypeKey;
220
+ /** ID of the source table */
221
+ liveTableId: string;
222
+ /** Schema registry ID associated with the live table */
223
+ schemaRegistryId: string;
224
+ /** Subject name in the schema registry */
225
+ subjectName: string;
226
+ /** Custom partition spec for transform live tables */
227
+ userDefinedPartitionSpec?: NewTypePropertiesNewIngestSchemaRegistryAvroTransformPropertiesUserDefinedPartitionSpecList | undefined;
228
+ /** Sort column */
229
+ sortColumnName?: string | undefined;
230
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
231
+ fanoutColumns?: NewTypePropertiesNewIngestSchemaRegistryAvroTransformPropertiesFanoutColumnsList | undefined;
232
+ }
233
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesTypeKey = "newFilterAndProjectTransformProperties";
234
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
235
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemTypeTypeParametersMap = {
236
+ [key: string]: string | undefined;
237
+ };
238
+ /** Column type; adheres to Trino conventions */
239
+ export interface NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemType {
240
+ /** Trino type enum */
241
+ typeId: TypeId | (string & {});
242
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
243
+ typeParameters?: NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemTypeTypeParametersMap | undefined;
244
+ }
245
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
246
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsItemTypeTypeParametersMap = {
247
+ [key: string]: string | undefined;
248
+ };
249
+ /** Column type; adheres to Trino conventions */
250
+ export interface NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsItemType {
251
+ /** Trino type enum */
252
+ typeId: TypeId | (string & {});
253
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
254
+ typeParameters?: NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsItemTypeTypeParametersMap | undefined;
255
+ }
256
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
257
+ export type NewFilterAndProjectTransformNestedColumnTypeTypeParametersMap = {
258
+ [key: string]: string | undefined;
259
+ };
260
+ /** Column type; adheres to Trino conventions */
261
+ export interface NewFilterAndProjectTransformNestedColumnType {
262
+ /** Trino type enum */
263
+ typeId: TypeId | (string & {});
264
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
265
+ typeParameters?: NewFilterAndProjectTransformNestedColumnTypeTypeParametersMap | undefined;
266
+ }
267
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
268
+ export type NewFilterAndProjectTransformNestedColumnNestedColumnsList = Array<NewFilterAndProjectTransformNestedColumn>;
269
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
270
+ export interface NewFilterAndProjectTransformNestedColumn {
271
+ /** Name of the nested field; adheres to Trino conventions */
272
+ name: string;
273
+ /** Column type; adheres to Trino conventions */
274
+ type: NewFilterAndProjectTransformNestedColumnType;
275
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
276
+ nestedColumns?: NewFilterAndProjectTransformNestedColumnNestedColumnsList | undefined;
277
+ }
278
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
279
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsItemNestedColumnsList = Array<NewFilterAndProjectTransformNestedColumn>;
280
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
281
+ export interface NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsItem {
282
+ /** Name of the nested field; adheres to Trino conventions */
283
+ name: string;
284
+ /** Column type; adheres to Trino conventions */
285
+ type: NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsItemType;
286
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
287
+ nestedColumns?: NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsItemNestedColumnsList | undefined;
288
+ }
289
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
290
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsList = Array<NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsItem>;
291
+ /** Output columns of the transform; each carries its name, type, and the Trino SQL scalar expression over the input table's columns that produces its value */
292
+ export interface NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItem {
293
+ /** Name of the output column; adheres to Trino conventions */
294
+ name: string;
295
+ /** Column type; adheres to Trino conventions */
296
+ type: NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemType;
297
+ /** Trino SQL scalar expression over the input table's columns that produces this column's value */
298
+ expression: string;
299
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
300
+ nestedColumns?: NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItemNestedColumnsList | undefined;
301
+ }
302
+ /** Output columns of the transform; each carries its name, type, and the Trino SQL scalar expression over the input table's columns that produces its value */
303
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsList = Array<NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsItem>;
304
+ /** Trino SQL boolean predicates over the input table's columns that select which rows are emitted; at most one is supported */
305
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesFilterExpressionsList = Array<string>;
306
+ /** Custom partition spec for transform live tables */
307
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesUserDefinedPartitionSpecItem = NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem;
308
+ /** Custom partition spec for transform live tables */
309
+ export type NewTypePropertiesNewFilterAndProjectTransformPropertiesUserDefinedPartitionSpecList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem>;
310
+ /** Properties required for creating a new filter and project transform live table */
311
+ export interface NewTypePropertiesNewFilterAndProjectTransformProperties {
312
+ typeKey: NewTypePropertiesNewFilterAndProjectTransformPropertiesTypeKey;
313
+ /** ID of the source transform table */
314
+ liveTableId: string;
315
+ /** Output columns of the transform; each carries its name, type, and the Trino SQL scalar expression over the input table's columns that produces its value */
316
+ columns: NewTypePropertiesNewFilterAndProjectTransformPropertiesColumnsList;
317
+ /** Trino SQL boolean predicates over the input table's columns that select which rows are emitted; at most one is supported */
318
+ filterExpressions: NewTypePropertiesNewFilterAndProjectTransformPropertiesFilterExpressionsList;
319
+ /** Custom partition spec for transform live tables */
320
+ userDefinedPartitionSpec?: NewTypePropertiesNewFilterAndProjectTransformPropertiesUserDefinedPartitionSpecList | undefined;
321
+ /** Sort column */
322
+ sortColumnName?: string | undefined;
323
+ }
324
+ /** Type-specific properties for the new live table */
325
+ export type NewTypeProperties = NewTypePropertiesNewKafkaIngestProperties | NewTypePropertiesNewFileIngestProperties | NewTypePropertiesNewIngestJsonTransformProperties | NewTypePropertiesNewIngestSchemaRegistryAvroTransformProperties | NewTypePropertiesNewFilterAndProjectTransformProperties;
326
+ export interface CreateLiveTableRequest {
327
+ /** Table description */
328
+ description?: string | undefined;
329
+ /** ID of the table publisher catalog, a Glue or Galaxy metastore catalog. Optional when galaxyRestCatalogId is set */
330
+ catalogId?: string | undefined;
331
+ /** ID of the Galaxy REST metastore catalog serving the table. Optional when catalogId is set. When both are set the catalogs must share the same default bucket and directory, and the table publisher catalog's storage settings apply */
332
+ galaxyRestCatalogId?: string | undefined;
333
+ /** Name of the table's schema */
334
+ schemaName: string;
335
+ /** Table name */
336
+ tableName: string;
337
+ /** If configured, data older than dataRetentionDays is deleted from Iceberg; otherwise, data is kept forever */
338
+ dataRetentionDays?: number | undefined;
339
+ /** Number of days to retain table snapshots; older snapshots are automatically removed during maintenance */
340
+ snapshotRetentionDays?: number | undefined;
341
+ /** Failure mode */
342
+ failureMode: FailureMode | (string & {});
343
+ typeProperties: NewTypeProperties;
344
+ }
345
+ export type LiveTableState = "Stopped" | "Stopping" | "Running";
346
+ export type TypePropertiesKafkaIngestPropertiesTypeKey = "kafkaIngestProperties";
347
+ /** Properties for a live table ingesting from Kafka */
348
+ export interface TypePropertiesKafkaIngestProperties {
349
+ typeKey: TypePropertiesKafkaIngestPropertiesTypeKey;
350
+ /** ID of the Kafka ingest source obtained from the /kafkaIngestSource endpoint */
351
+ kafkaIngestSourceId: string;
352
+ /** Kafka topic name */
353
+ kafkaTopicName: string;
354
+ /** Stream start strategy */
355
+ startStrategy: KafkaStartStrategy;
356
+ /** Throughput limit per partition */
357
+ partitionMaxBytesPerSec: number;
358
+ /** Latency mode for commits */
359
+ latencyMode: LatencyMode;
360
+ }
361
+ export type TypePropertiesFileIngestPropertiesTypeKey = "fileIngestProperties";
362
+ /** CSV format parameters. Required for CSV format, must be absent for other formats */
363
+ export interface TypePropertiesFileIngestPropertiesCsvParameters {
364
+ /** CSV delimiter character */
365
+ delimiter: CsvDelimiter;
366
+ /** CSV quote character */
367
+ quoteChar: CsvQuoteChar;
368
+ /** CSV escape character */
369
+ escapeChar: CsvEscapeChar;
370
+ /** Number of CSV header lines to exclude */
371
+ numHeaderLinesToExclude: number;
372
+ }
373
+ /** Properties for a live table ingesting from a file */
374
+ export interface TypePropertiesFileIngestProperties {
375
+ typeKey: TypePropertiesFileIngestPropertiesTypeKey;
376
+ /** ID of the file ingest source obtained from the /fileIngestSource endpoint */
377
+ fileIngestSourceId: string;
378
+ /** Suffix to append to the name from ingest source */
379
+ pathSuffix?: string | undefined;
380
+ /** File format */
381
+ fileFormat: FileFormat;
382
+ /** List files in object storage every polling interval */
383
+ pollingIntervalInMinutes: number;
384
+ /** CSV format parameters. Required for CSV format, must be absent for other formats */
385
+ csvParameters?: TypePropertiesFileIngestPropertiesCsvParameters | undefined;
386
+ }
387
+ export type TypePropertiesIngestJsonTransformPropertiesTypeKey = "ingestJsonTransformProperties";
388
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
389
+ export type TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemFieldParserConfigParseParametersMap = {
390
+ [key: string]: string | undefined;
391
+ };
392
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
393
+ export interface TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemFieldParserConfig {
394
+ /** JSON pointer (IETF RFC 6901) */
395
+ pointer: string;
396
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
397
+ parseParameters?: TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemFieldParserConfigParseParametersMap | undefined;
398
+ }
399
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
400
+ export type TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemTrinoTypeTypeParametersMap = {
401
+ [key: string]: string | undefined;
402
+ };
403
+ /** Column type; adheres to Trino conventions */
404
+ export interface TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemTrinoType {
405
+ /** Trino type enum */
406
+ typeId: TypeId;
407
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
408
+ typeParameters?: TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemTrinoTypeTypeParametersMap | undefined;
409
+ }
410
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
411
+ export type IngestColumnFieldParserConfigParseParametersMap = {
412
+ [key: string]: string | undefined;
413
+ };
414
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
415
+ export interface IngestColumnFieldParserConfig {
416
+ /** JSON pointer (IETF RFC 6901) */
417
+ pointer: string;
418
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
419
+ parseParameters?: IngestColumnFieldParserConfigParseParametersMap | undefined;
420
+ }
421
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
422
+ export type IngestColumnTrinoTypeTypeParametersMap = {
423
+ [key: string]: string | undefined;
424
+ };
425
+ /** Column type; adheres to Trino conventions */
426
+ export interface IngestColumnTrinoType {
427
+ /** Trino type enum */
428
+ typeId: TypeId;
429
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
430
+ typeParameters?: IngestColumnTrinoTypeTypeParametersMap | undefined;
431
+ }
432
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
433
+ export type IngestColumnNestedColumnsList = Array<IngestColumn>;
434
+ /** Schema of the transformed table */
435
+ export interface IngestColumn {
436
+ /** ID of the transform column */
437
+ columnId: number;
438
+ /** Name of the transform column; adheres to Trino conventions */
439
+ trinoColumnName: string;
440
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
441
+ fieldParserConfig: IngestColumnFieldParserConfig;
442
+ /** Column type; adheres to Trino conventions */
443
+ trinoType: IngestColumnTrinoType;
444
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
445
+ nestedColumns: IngestColumnNestedColumnsList;
446
+ }
447
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
448
+ export type TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemNestedColumnsList = Array<IngestColumn>;
449
+ /** Schema of the transformed table */
450
+ export interface TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItem {
451
+ /** ID of the transform column */
452
+ columnId: number;
453
+ /** Name of the transform column; adheres to Trino conventions */
454
+ trinoColumnName: string;
455
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
456
+ fieldParserConfig: TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemFieldParserConfig;
457
+ /** Column type; adheres to Trino conventions */
458
+ trinoType: TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemTrinoType;
459
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
460
+ nestedColumns: TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItemNestedColumnsList;
461
+ }
462
+ /** Schema of the transformed table */
463
+ export type TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaList = Array<TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaItem>;
464
+ /** Custom partition spec for transform live tables */
465
+ export type TypePropertiesIngestJsonTransformPropertiesUserDefinedPartitionSpecItem = NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem;
466
+ /** Custom partition spec for transform live tables */
467
+ export type TypePropertiesIngestJsonTransformPropertiesUserDefinedPartitionSpecList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem>;
468
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
469
+ export interface TypePropertiesIngestJsonTransformPropertiesFanoutColumnsItem {
470
+ /** Name of the column to route on, from IngestColumn or NewIngestColumn */
471
+ trinoColumnName: string;
472
+ /** Transform applied to the column value to form the route */
473
+ transform: FanoutTransform;
474
+ }
475
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
476
+ export type TypePropertiesIngestJsonTransformPropertiesFanoutColumnsList = Array<TypePropertiesIngestJsonTransformPropertiesFanoutColumnsItem>;
477
+ /** Properties for a JSON transform live table */
478
+ export interface TypePropertiesIngestJsonTransformProperties {
479
+ typeKey: TypePropertiesIngestJsonTransformPropertiesTypeKey;
480
+ /** ID of the source table */
481
+ liveTableId: string;
482
+ /** Schema of the transformed table */
483
+ userDefinedSchema: TypePropertiesIngestJsonTransformPropertiesUserDefinedSchemaList;
484
+ /** Custom partition spec for transform live tables */
485
+ userDefinedPartitionSpec?: TypePropertiesIngestJsonTransformPropertiesUserDefinedPartitionSpecList | undefined;
486
+ /** Sort column */
487
+ sortColumnName?: string | undefined;
488
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
489
+ fanoutColumns?: TypePropertiesIngestJsonTransformPropertiesFanoutColumnsList | undefined;
490
+ }
491
+ export type TypePropertiesIngestSchemaRegistryAvroTransformPropertiesTypeKey = "ingestSchemaRegistryAvroTransformProperties";
492
+ /** Custom partition spec for transform live tables */
493
+ export type TypePropertiesIngestSchemaRegistryAvroTransformPropertiesUserDefinedPartitionSpecItem = NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem;
494
+ /** Custom partition spec for transform live tables */
495
+ export type TypePropertiesIngestSchemaRegistryAvroTransformPropertiesUserDefinedPartitionSpecList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem>;
496
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
497
+ export type TypePropertiesIngestSchemaRegistryAvroTransformPropertiesFanoutColumnsItem = TypePropertiesIngestJsonTransformPropertiesFanoutColumnsItem;
498
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
499
+ export type TypePropertiesIngestSchemaRegistryAvroTransformPropertiesFanoutColumnsList = Array<TypePropertiesIngestJsonTransformPropertiesFanoutColumnsItem>;
500
+ /** Properties for a schema registry Avro transform live table */
501
+ export interface TypePropertiesIngestSchemaRegistryAvroTransformProperties {
502
+ typeKey: TypePropertiesIngestSchemaRegistryAvroTransformPropertiesTypeKey;
503
+ /** ID of the source table */
504
+ liveTableId: string;
505
+ /** Schema registry id associated with the live table */
506
+ schemaRegistryId: string;
507
+ /** Subject name in the schema registry */
508
+ subjectName: string;
509
+ /** Custom partition spec for transform live tables */
510
+ userDefinedPartitionSpec?: TypePropertiesIngestSchemaRegistryAvroTransformPropertiesUserDefinedPartitionSpecList | undefined;
511
+ /** Sort column */
512
+ sortColumnName?: string | undefined;
513
+ /** Fans the table's output out into one sink table per distinct combination of these column values, instead of a single output table. Order is part of the route's identity, and the columns cannot be changed once the table exists */
514
+ fanoutColumns?: TypePropertiesIngestSchemaRegistryAvroTransformPropertiesFanoutColumnsList | undefined;
515
+ }
516
+ export type TypePropertiesFilterAndProjectTransformPropertiesTypeKey = "filterAndProjectTransformProperties";
517
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
518
+ export type TypePropertiesFilterAndProjectTransformPropertiesColumnsItemTrinoTypeTypeParametersMap = {
519
+ [key: string]: string | undefined;
520
+ };
521
+ /** Column type; adheres to Trino conventions */
522
+ export interface TypePropertiesFilterAndProjectTransformPropertiesColumnsItemTrinoType {
523
+ /** Trino type enum */
524
+ typeId: TypeId;
525
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
526
+ typeParameters?: TypePropertiesFilterAndProjectTransformPropertiesColumnsItemTrinoTypeTypeParametersMap | undefined;
527
+ }
528
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
529
+ export type FilterAndProjectTransformColumnTrinoTypeTypeParametersMap = {
530
+ [key: string]: string | undefined;
531
+ };
532
+ /** Column type; adheres to Trino conventions */
533
+ export interface FilterAndProjectTransformColumnTrinoType {
534
+ /** Trino type enum */
535
+ typeId: TypeId;
536
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
537
+ typeParameters?: FilterAndProjectTransformColumnTrinoTypeTypeParametersMap | undefined;
538
+ }
539
+ /** Nested columns for complex types (Row, Map, Array) */
540
+ export type FilterAndProjectTransformColumnNestedColumnsList = Array<FilterAndProjectTransformColumn>;
541
+ /** Output columns and the expressions that produce their values */
542
+ export interface FilterAndProjectTransformColumn {
543
+ /** ID of the transform column */
544
+ columnId: number;
545
+ /** Column name */
546
+ trinoColumnName: string;
547
+ /** Column type; adheres to Trino conventions */
548
+ trinoType: FilterAndProjectTransformColumnTrinoType;
549
+ /** Trino SQL expression producing this column's value; present only for top-level columns */
550
+ expression?: string | undefined;
551
+ /** Nested columns for complex types (Row, Map, Array) */
552
+ nestedColumns: FilterAndProjectTransformColumnNestedColumnsList;
553
+ }
554
+ /** Nested columns for complex types (Row, Map, Array) */
555
+ export type TypePropertiesFilterAndProjectTransformPropertiesColumnsItemNestedColumnsList = Array<FilterAndProjectTransformColumn>;
556
+ /** Output columns and the expressions that produce their values */
557
+ export interface TypePropertiesFilterAndProjectTransformPropertiesColumnsItem {
558
+ /** ID of the transform column */
559
+ columnId: number;
560
+ /** Column name */
561
+ trinoColumnName: string;
562
+ /** Column type; adheres to Trino conventions */
563
+ trinoType: TypePropertiesFilterAndProjectTransformPropertiesColumnsItemTrinoType;
564
+ /** Trino SQL expression producing this column's value; present only for top-level columns */
565
+ expression?: string | undefined;
566
+ /** Nested columns for complex types (Row, Map, Array) */
567
+ nestedColumns: TypePropertiesFilterAndProjectTransformPropertiesColumnsItemNestedColumnsList;
568
+ }
569
+ /** Output columns and the expressions that produce their values */
570
+ export type TypePropertiesFilterAndProjectTransformPropertiesColumnsList = Array<TypePropertiesFilterAndProjectTransformPropertiesColumnsItem>;
571
+ /** Filter predicates over the input table's columns; at most one is supported */
572
+ export type TypePropertiesFilterAndProjectTransformPropertiesFilterExpressionsList = Array<string>;
573
+ /** Custom partition spec for transform live tables */
574
+ export type TypePropertiesFilterAndProjectTransformPropertiesUserDefinedPartitionSpecItem = NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem;
575
+ /** Custom partition spec for transform live tables */
576
+ export type TypePropertiesFilterAndProjectTransformPropertiesUserDefinedPartitionSpecList = Array<NewTypePropertiesNewIngestJsonTransformPropertiesUserDefinedPartitionSpecItem>;
577
+ /** Properties for a filter and project transform live table */
578
+ export interface TypePropertiesFilterAndProjectTransformProperties {
579
+ typeKey: TypePropertiesFilterAndProjectTransformPropertiesTypeKey;
580
+ /** ID of the source transform table */
581
+ liveTableId: string;
582
+ /** Output columns and the expressions that produce their values */
583
+ columns: TypePropertiesFilterAndProjectTransformPropertiesColumnsList;
584
+ /** Filter predicates over the input table's columns; at most one is supported */
585
+ filterExpressions: TypePropertiesFilterAndProjectTransformPropertiesFilterExpressionsList;
586
+ /** Custom partition spec for transform live tables */
587
+ userDefinedPartitionSpec?: TypePropertiesFilterAndProjectTransformPropertiesUserDefinedPartitionSpecList | undefined;
588
+ /** Sort column */
589
+ sortColumnName?: string | undefined;
590
+ }
591
+ /** Type-specific live table properties */
592
+ export type TypeProperties = TypePropertiesKafkaIngestProperties | TypePropertiesFileIngestProperties | TypePropertiesIngestJsonTransformProperties | TypePropertiesIngestSchemaRegistryAvroTransformProperties | TypePropertiesFilterAndProjectTransformProperties;
593
+ /** A managed live table */
594
+ export interface LiveTable {
595
+ /** Used to ensure consistency for resource updates. A syncToken that is returned from the server is valid until the resource is updated when a new syncToken will be generated. Only the latest version of the object is maintained. (read only) */
596
+ syncToken: string;
597
+ /** Table ID */
598
+ liveTableId: string;
599
+ /** Table description */
600
+ description?: string | undefined;
601
+ /** Region in which the table is stored */
602
+ cloudRegionId: string;
603
+ /** ID of the table publisher catalog, a Glue or Galaxy metastore catalog. Absent when the table is only served by a Galaxy REST metastore catalog */
604
+ catalogId?: string | undefined;
605
+ /** ID of the Galaxy REST metastore catalog serving the table, if any */
606
+ galaxyRestCatalogId?: string | undefined;
607
+ /** Name of the catalog supplying the table's storage location: the table publisher catalog if set, otherwise the Galaxy REST metastore catalog */
608
+ catalogName: string;
609
+ /** Name of the table's schema */
610
+ schemaName: string;
611
+ /** Table name */
612
+ tableName: string;
613
+ /** Table state */
614
+ liveTableState: LiveTableState;
615
+ /** If configured, data older than dataRetentionDays is deleted from Iceberg; otherwise, data is kept forever */
616
+ dataRetentionDays?: number | undefined;
617
+ /** Number of days to retain table snapshots; older snapshots are automatically removed during maintenance */
618
+ snapshotRetentionDays: number;
619
+ /** Failure mode. */
620
+ failureMode: FailureMode;
621
+ /** Number of undismissed error notifications in the last five days */
622
+ errorNotificationCount: number;
623
+ /** Number of undismissed warning notifications in the last five days */
624
+ warnNotificationCount: number;
625
+ /** Type of stop event if table is stopped */
626
+ stopType?: string | undefined;
627
+ /** Message explaining why the table was stopped */
628
+ stopMessage?: string | undefined;
629
+ typeProperties: TypeProperties;
630
+ }
631
+ export interface DeleteLiveTableRequest {
632
+ /** A managed live table */
633
+ liveTableId: string;
634
+ }
635
+ export interface DeleteLiveTableResponse {
636
+ }
637
+ export interface GetLiveTableRequest {
638
+ /** A managed live table */
639
+ liveTableId: string;
640
+ }
641
+ export interface ListBriefLiveTablesRequest {
642
+ /** Pagination token */
643
+ pageToken?: string | undefined;
644
+ /** Page size or 0 for default (current maximum is 100) */
645
+ pageSize?: number | undefined;
646
+ }
647
+ /** A page of results. */
648
+ export type PaginatedLiveTableResultList = Array<LiveTable>;
649
+ export interface PaginatedLiveTable {
650
+ /** The next page token to use or "" if there are no more pages. */
651
+ nextPageToken?: string | undefined;
652
+ /** A page of results. */
653
+ result: PaginatedLiveTableResultList;
654
+ }
655
+ export interface ListLiveTablesRequest {
656
+ /** Pagination token */
657
+ pageToken?: string | undefined;
658
+ /** Page size or 0 for default (current maximum is 100) */
659
+ pageSize?: number | undefined;
660
+ }
661
+ export type NewSchemaNewJsonSchemaTypeKey = "newJsonSchema";
662
+ export type UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateTypeKey = "newJsonIngestColumnInSchemaUpdate";
663
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
664
+ export type UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateFieldParserConfigParseParametersMap = {
665
+ [key: string]: string | undefined;
666
+ };
667
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
668
+ export interface UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateFieldParserConfig {
669
+ /** JSON pointer (IETF RFC 6901) */
670
+ pointer: string;
671
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
672
+ parseParameters?: UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateFieldParserConfigParseParametersMap | undefined;
673
+ }
674
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
675
+ export type UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateTrinoTypeTypeParametersMap = {
676
+ [key: string]: string | undefined;
677
+ };
678
+ /** Column type; adheres to Trino conventions */
679
+ export interface UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateTrinoType {
680
+ /** Trino type enum */
681
+ typeId: TypeId | (string & {});
682
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
683
+ typeParameters?: UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateTrinoTypeTypeParametersMap | undefined;
684
+ }
685
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
686
+ export type NewJsonIngestColumnInSchemaUpdateFieldParserConfigParseParametersMap = {
687
+ [key: string]: string | undefined;
688
+ };
689
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
690
+ export interface NewJsonIngestColumnInSchemaUpdateFieldParserConfig {
691
+ /** JSON pointer (IETF RFC 6901) */
692
+ pointer: string;
693
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
694
+ parseParameters?: NewJsonIngestColumnInSchemaUpdateFieldParserConfigParseParametersMap | undefined;
695
+ }
696
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
697
+ export type NewJsonIngestColumnInSchemaUpdateTrinoTypeTypeParametersMap = {
698
+ [key: string]: string | undefined;
699
+ };
700
+ /** Column type; adheres to Trino conventions */
701
+ export interface NewJsonIngestColumnInSchemaUpdateTrinoType {
702
+ /** Trino type enum */
703
+ typeId: TypeId | (string & {});
704
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
705
+ typeParameters?: NewJsonIngestColumnInSchemaUpdateTrinoTypeTypeParametersMap | undefined;
706
+ }
707
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
708
+ export type NewJsonIngestColumnInSchemaUpdateNestedColumnsList = Array<NewJsonIngestColumnInSchemaUpdate>;
709
+ /** An added column */
710
+ export interface NewJsonIngestColumnInSchemaUpdate {
711
+ /** Name of the transform column; adheres to Trino conventions */
712
+ trinoColumnName: string;
713
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
714
+ fieldParserConfig: NewJsonIngestColumnInSchemaUpdateFieldParserConfig;
715
+ /** Column type; adheres to Trino conventions */
716
+ trinoType: NewJsonIngestColumnInSchemaUpdateTrinoType;
717
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
718
+ nestedColumns: NewJsonIngestColumnInSchemaUpdateNestedColumnsList;
719
+ }
720
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
721
+ export type UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateNestedColumnsList = Array<NewJsonIngestColumnInSchemaUpdate>;
722
+ /** An added column */
723
+ export interface UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdate {
724
+ typeKey: UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateTypeKey;
725
+ /** Name of the transform column; adheres to Trino conventions */
726
+ trinoColumnName: string;
727
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
728
+ fieldParserConfig: UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateFieldParserConfig;
729
+ /** Column type; adheres to Trino conventions */
730
+ trinoType: UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateTrinoType;
731
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
732
+ nestedColumns: UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdateNestedColumnsList;
733
+ }
734
+ export type UpdatedJsonIngestColumnExistingJsonIngestColumnTypeKey = "existingJsonIngestColumn";
735
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
736
+ export type UpdatedJsonIngestColumnExistingJsonIngestColumnFieldParserConfigParseParametersMap = {
737
+ [key: string]: string | undefined;
738
+ };
739
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
740
+ export interface UpdatedJsonIngestColumnExistingJsonIngestColumnFieldParserConfig {
741
+ /** JSON pointer (IETF RFC 6901) */
742
+ pointer: string;
743
+ /** Parameters for parsing Varchar and time types. For Varchar, the only allowed parameter is "varchar.type", with valid values "scalar" or "json". For Timestamp and TimestampTz, the only allowed parameters are: - "timestamp.converter", with valid values "unixtime" or "iso8601". - "timestamp.unit", with valid values "nanos", "micros", "millis", "secs", "mins", "hours", or "days". */
744
+ parseParameters?: UpdatedJsonIngestColumnExistingJsonIngestColumnFieldParserConfigParseParametersMap | undefined;
745
+ }
746
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
747
+ export type UpdatedJsonIngestColumnExistingJsonIngestColumnTrinoTypeTypeParametersMap = {
748
+ [key: string]: string | undefined;
749
+ };
750
+ /** Column type; adheres to Trino conventions */
751
+ export interface UpdatedJsonIngestColumnExistingJsonIngestColumnTrinoType {
752
+ /** Trino type enum */
753
+ typeId: TypeId | (string & {});
754
+ /** Parameters for completing the type specification. Types Decimal, Time, Timestamp, and TimestampTz require a parameter named `precision`, which is the number of digits. Type Decimal also requires a parameter named `scale`, which is the number of digits to the right of the decimal point. */
755
+ typeParameters?: UpdatedJsonIngestColumnExistingJsonIngestColumnTrinoTypeTypeParametersMap | undefined;
756
+ }
757
+ /** A new set of columns for this table (replaces the old one) */
758
+ export type UpdatedJsonIngestColumn = UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdate | UpdatedJsonIngestColumnExistingJsonIngestColumn;
759
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
760
+ export type UpdatedJsonIngestColumnExistingJsonIngestColumnNestedColumnsList = Array<UpdatedJsonIngestColumn>;
761
+ /** An existing column; same ID but other properties may differ */
762
+ export interface UpdatedJsonIngestColumnExistingJsonIngestColumn {
763
+ typeKey: UpdatedJsonIngestColumnExistingJsonIngestColumnTypeKey;
764
+ /** ID of the transform column */
765
+ columnId: number;
766
+ /** Name of the transform column; adheres to Trino conventions */
767
+ trinoColumnName: string;
768
+ /** JSON pointer (and parsing parameters) to the raw-table field transformed into this column value */
769
+ fieldParserConfig: UpdatedJsonIngestColumnExistingJsonIngestColumnFieldParserConfig;
770
+ /** Column type; adheres to Trino conventions */
771
+ trinoType: UpdatedJsonIngestColumnExistingJsonIngestColumnTrinoType;
772
+ /** Nested columns for complex types (Row, Map, Array). For primitive types, this list is empty. For the Row type, this contains the fields of the row. For the Map type, this contains the key and value types. For the Array type, this contains the single element type. */
773
+ nestedColumns?: UpdatedJsonIngestColumnExistingJsonIngestColumnNestedColumnsList | undefined;
774
+ }
775
+ /** A new set of columns for this table (replaces the old one) */
776
+ export type NewSchemaNewJsonSchemaColumnsItem = UpdatedJsonIngestColumnNewJsonIngestColumnInSchemaUpdate | UpdatedJsonIngestColumnExistingJsonIngestColumn;
777
+ /** A new set of columns for this table (replaces the old one) */
778
+ export type NewSchemaNewJsonSchemaColumnsList = Array<NewSchemaNewJsonSchemaColumnsItem>;
779
+ /** New schema for a JSON transform live table */
780
+ export interface NewSchemaNewJsonSchema {
781
+ typeKey: NewSchemaNewJsonSchemaTypeKey | (string & {});
782
+ /** A new set of columns for this table (replaces the old one) */
783
+ columns: NewSchemaNewJsonSchemaColumnsList;
784
+ /** If present, table storage will be sorted by this */
785
+ sortColumnName?: string | undefined;
786
+ }
787
+ export interface UpdateLiveTableSchemaRequest {
788
+ /** Used to ensure consistency for resource updates. A syncToken that is returned from the server is valid until the resource is updated when a new syncToken will be generated. Only the latest version of the object is maintained. (read only) */
789
+ syncToken: string;
790
+ /** ID of live table whose schema is being updated */
791
+ transformLiveTableSchemaUpdateId: string;
792
+ newSchema: NewSchemaNewJsonSchema;
793
+ }
794
+ /** Any fields/values that are invalid or incorrect */
795
+ export type BadRequestFieldsList = Array<string>;
796
+ /** Invalid request */
797
+ export interface BadRequest2 {
798
+ /** Description of the error */
799
+ message?: string | undefined;
800
+ /** Any fields/values that are invalid or incorrect */
801
+ fields?: BadRequestFieldsList | undefined;
802
+ }
803
+ /** Already exists */
804
+ export interface Exists {
805
+ message?: string | undefined;
806
+ }
807
+ /** Authorization failed */
808
+ export type Forbidden2 = Exists;
809
+ /** Error details (read only) */
810
+ export interface Resourceinfo {
811
+ /** Name of the resource (read only) */
812
+ resourceName: string;
813
+ /** Violation description (read only) */
814
+ description: string;
815
+ }
816
+ /** A specified resource is not found. */
817
+ export interface NotFoundError {
818
+ /** Description of the error */
819
+ message: string;
820
+ detail: Resourceinfo;
821
+ }
822
+ /** Any fields/values that weren't found */
823
+ export type NotFoundFieldsList = Array<string>;
824
+ /** A resource or required component was not found */
825
+ export interface NotFound2 {
826
+ /** Name of the resource */
827
+ message: string;
828
+ /** Violation description */
829
+ description?: string | undefined;
830
+ /** Any fields/values that weren't found */
831
+ fields?: NotFoundFieldsList | undefined;
832
+ }
833
+ export type CreateLiveTableError = BadRequest | Forbidden | NotFound | Conflict | StarburstGalaxyOpError;
834
+ /** Creates a new live table **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
835
+ export declare const createLiveTable: API.OperationMethod<CreateLiveTableRequest, LiveTable, CreateLiveTableError, StarburstGalaxyOpContext>;
836
+ export type DeleteLiveTableError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
837
+ /** Deletes a live table **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
838
+ export declare const deleteLiveTable: API.OperationMethod<DeleteLiveTableRequest, DeleteLiveTableResponse, DeleteLiveTableError, StarburstGalaxyOpContext>;
839
+ export type GetLiveTableError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
840
+ /** Returns a live table by ID **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
841
+ export declare const getLiveTable: API.OperationMethod<GetLiveTableRequest, LiveTable, GetLiveTableError, StarburstGalaxyOpContext>;
842
+ export type ListBriefLiveTablesError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
843
+ /** Returns all live tables in your account, but in brief form, without all details **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
844
+ export declare const listBriefLiveTables: API.PaginatedOperationMethod<ListBriefLiveTablesRequest, PaginatedLiveTable, ListBriefLiveTablesError, StarburstGalaxyOpContext, LiveTable>;
845
+ export type ListLiveTablesError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
846
+ /** Returns all live tables in your account **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
847
+ export declare const listLiveTables: API.PaginatedOperationMethod<ListLiveTablesRequest, PaginatedLiveTable, ListLiveTablesError, StarburstGalaxyOpContext, LiveTable>;
848
+ export type UpdateLiveTableSchemaError = BadRequest | Forbidden | NotFound | Conflict | StarburstGalaxyOpError;
849
+ /** Updates a live table's schema **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
850
+ export declare const updateLiveTableSchema: API.OperationMethod<UpdateLiveTableSchemaRequest, LiveTable, UpdateLiveTableSchemaError, StarburstGalaxyOpContext>;
851
+ //# sourceMappingURL=live_table.d.ts.map