@distilled.cloud/starburst-galaxy 0.0.0-stage → 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 +114 -2
  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 +87 -3
  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,1257 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as C from "@distilled.cloud/core/category";
3
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-starburst-galaxy/specs/{v1,v2}.json). Do not edit.
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import { StarburstGalaxyServiceErrors } from "../errors.ts";
7
+ import { paginateToken } from "../pagination.ts";
8
+ import {
9
+ StarburstGalaxyProtocol,
10
+ type StarburstGalaxyOpError,
11
+ type StarburstGalaxyOpContext,
12
+ } from "../protocol.ts";
13
+ import * as Retry from "../retry.ts";
14
+ import * as T from "../traits.ts";
15
+ // Schema table, filled on first reach (see __S at the end).
16
+ const __s: any[] = [];
17
+
18
+ export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
19
+
20
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
21
+ const TELEMETRY = {
22
+ system: "starburst-galaxy-api",
23
+ responseHeaders: [
24
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
25
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
26
+ ],
27
+ prefix: "StarburstGalaxy",
28
+ service: "DiscoveryService",
29
+ labels: "starburst_galaxy",
30
+ propagate: "w3c",
31
+ } as const;
32
+
33
+ export class BadRequest
34
+ extends /*@__PURE__*/ T.applyErrorMatchers(
35
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
36
+ message: S.String,
37
+ body: S.Unknown,
38
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
39
+ }).pipe(C.withBadRequestError),
40
+ [{ status: 400 }],
41
+ ) {}
42
+
43
+ export class Conflict
44
+ extends /*@__PURE__*/ T.applyErrorMatchers(
45
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
46
+ message: S.String,
47
+ body: S.Unknown,
48
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
49
+ }).pipe(C.withConflictError),
50
+ [{ status: 409 }],
51
+ ) {}
52
+
53
+ export class Forbidden
54
+ extends /*@__PURE__*/ T.applyErrorMatchers(
55
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
56
+ message: S.String,
57
+ body: S.Unknown,
58
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
59
+ }).pipe(C.withAuthError),
60
+ [{ status: 403 }],
61
+ ) {}
62
+
63
+ export class NotFound
64
+ extends /*@__PURE__*/ T.applyErrorMatchers(
65
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
66
+ message: S.String,
67
+ body: S.Unknown,
68
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
69
+ }).pipe(C.withBadRequestError),
70
+ [{ status: 404 }],
71
+ ) {}
72
+
73
+ export interface DeleteCatalogMetadataRequest {
74
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
75
+ catalogId: string;
76
+ }
77
+ export interface DeleteCatalogMetadataResponse {}
78
+ export interface DeleteCatalogSchemaRequest {
79
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
80
+ catalogId: string;
81
+ /** A schema from a catalog */
82
+ schemaId: string;
83
+ }
84
+ export interface DeleteCatalogSchemaResponse {}
85
+ export interface DeleteCatalogSchemaTableRequest {
86
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
87
+ catalogId: string;
88
+ /** A schema from a catalog */
89
+ schemaId: string;
90
+ /** A table from a catalog */
91
+ tableId: string;
92
+ }
93
+ export interface DeleteCatalogSchemaTableResponse {}
94
+ export interface DeleteCatalogSchemaTableColumnRequest {
95
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
96
+ catalogId: string;
97
+ /** A schema from a catalog */
98
+ schemaId: string;
99
+ /** A table from a catalog */
100
+ tableId: string;
101
+ /** A column from a catalog */
102
+ columnId: string;
103
+ }
104
+ export interface DeleteCatalogSchemaTableColumnResponse {}
105
+ export interface GetCatalogMetadataRequest {
106
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
107
+ catalogId: string;
108
+ }
109
+ /** The role that owns this resource (read only) */
110
+ export interface RoleWithName2 {
111
+ /** Role ID (read only) */
112
+ roleId: string;
113
+ /** Role name (read only) */
114
+ roleName: string;
115
+ }
116
+ /** Tags assigned directly to this catalog (read only) */
117
+ export interface TagName {
118
+ /** Tag ID (read only) */
119
+ tagId: string;
120
+ /** Tag name (read only) */
121
+ name: string;
122
+ }
123
+ /** Any tags set for this catalog (read only) */
124
+ export type CatalogMetadataTagsList = Array<TagName>;
125
+ /** Users directly assigned to this group (read only) */
126
+ export interface UserAndEmail {
127
+ /** User ID */
128
+ userId: string;
129
+ /** User email */
130
+ email: string;
131
+ }
132
+ /** Any contacts set for this catalog (read only) */
133
+ export type CatalogMetadataContactsList = Array<UserAndEmail>;
134
+ /** A catalog (read only) */
135
+ export interface CatalogMetadata {
136
+ /** Catalog ID (read only) */
137
+ catalogId: string;
138
+ /** Catalog name (read only) */
139
+ catalogName: string;
140
+ /** Any description set for this catalog (read only) */
141
+ description?: string | undefined;
142
+ owner?: RoleWithName2 | undefined;
143
+ /** Any tags set for this catalog (read only) */
144
+ tags: CatalogMetadataTagsList;
145
+ /** Any contacts set for this catalog (read only) */
146
+ contacts: CatalogMetadataContactsList;
147
+ }
148
+ export interface GetCatalogSchemaRequest {
149
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
150
+ catalogId: string;
151
+ /** A schema from a catalog */
152
+ schemaId: string;
153
+ }
154
+ /** Any tags set for this schema (read only) */
155
+ export type SchemaTagsList = Array<TagName>;
156
+ /** Any contacts set for this schema (read only) */
157
+ export type SchemaContactsList = Array<UserAndEmail>;
158
+ /** Any links set for this schema (read only) */
159
+ export interface Link {
160
+ /** The name of the link */
161
+ name: string;
162
+ /** The link URI */
163
+ uri: string;
164
+ }
165
+ /** Any links set for this schema (read only) */
166
+ export type SchemaLinksList = Array<Link>;
167
+ /** A schema from a catalog (read only) */
168
+ export interface Schema {
169
+ /** Schema ID (read only) */
170
+ schemaId: string;
171
+ /** Any description set for this schema (read only) */
172
+ description?: string | undefined;
173
+ owner?: RoleWithName2 | undefined;
174
+ /** Any tags set for this schema (read only) */
175
+ tags: SchemaTagsList;
176
+ /** Any contacts set for this schema (read only) */
177
+ contacts: SchemaContactsList;
178
+ /** Any links set for this schema (read only) */
179
+ links: SchemaLinksList;
180
+ }
181
+ export interface GetCatalogSchemaTableRequest {
182
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
183
+ catalogId: string;
184
+ /** A schema from a catalog */
185
+ schemaId: string;
186
+ /** A table from a catalog */
187
+ tableId: string;
188
+ }
189
+ /** Any tags set for this table (read only) */
190
+ export type TableTagsList = Array<TagName>;
191
+ /** Any contacts set for this table (read only) */
192
+ export type TableContactsList = Array<UserAndEmail>;
193
+ /** A table from a catalog (read only) */
194
+ export interface Table {
195
+ /** Table ID (read only) */
196
+ tableId: string;
197
+ /** Any table type returned from the data source (read only) */
198
+ tableType?: string | undefined;
199
+ /** Any description set for this table (read only) */
200
+ description?: string | undefined;
201
+ owner?: RoleWithName2 | undefined;
202
+ /** Any tags set for this table (read only) */
203
+ tags: TableTagsList;
204
+ /** Any contacts set for this table (read only) */
205
+ contacts: TableContactsList;
206
+ }
207
+ export interface GetCatalogSchemaTableColumnRequest {
208
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
209
+ catalogId: string;
210
+ /** A schema from a catalog */
211
+ schemaId: string;
212
+ /** A table from a catalog */
213
+ tableId: string;
214
+ /** A column from a catalog */
215
+ columnId: string;
216
+ }
217
+ /** Any tags set for this column (read only) */
218
+ export type ColumnTagsList = Array<TagName>;
219
+ /** A column from a catalog (read only) */
220
+ export interface Column {
221
+ /** Column ID (read only) */
222
+ columnId: string;
223
+ /** Any data type returned from the data source (read only) */
224
+ dataType?: string | undefined;
225
+ /** Any column default returned from the data source (read only) */
226
+ columnDefault?: string | undefined;
227
+ /** Whether the column is nullable or not (read only) */
228
+ nullable: boolean;
229
+ /** Any description set for this column (read only) */
230
+ description?: string | undefined;
231
+ /** Any tags set for this column (read only) */
232
+ tags: ColumnTagsList;
233
+ }
234
+ export interface ListCatalogSchemasRequest {
235
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
236
+ catalogId: string;
237
+ /** Pagination token */
238
+ pageToken?: string | undefined;
239
+ /** Page size or 0 for default (current maximum is 100) */
240
+ pageSize?: number | undefined;
241
+ }
242
+ /** A page of results. */
243
+ export type PaginatedSchemaResultList = Array<Schema>;
244
+ export interface PaginatedSchema {
245
+ /** The next page token to use or "" if there are no more pages. */
246
+ nextPageToken?: string | undefined;
247
+ /** A page of results. */
248
+ result: PaginatedSchemaResultList;
249
+ }
250
+ export interface ListCatalogSchemaTableColumnsRequest {
251
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
252
+ catalogId: string;
253
+ /** A schema from a catalog */
254
+ schemaId: string;
255
+ /** A table from a catalog */
256
+ tableId: string;
257
+ /** Pagination token */
258
+ pageToken?: string | undefined;
259
+ /** Page size or 0 for default (current maximum is 100) */
260
+ pageSize?: number | undefined;
261
+ }
262
+ /** A page of results. */
263
+ export type PaginatedColumnResultList = Array<Column>;
264
+ export interface PaginatedColumn {
265
+ /** The next page token to use or "" if there are no more pages. */
266
+ nextPageToken?: string | undefined;
267
+ /** A page of results. */
268
+ result: PaginatedColumnResultList;
269
+ }
270
+ export interface ListCatalogSchemaTablesRequest {
271
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
272
+ catalogId: string;
273
+ /** A schema from a catalog */
274
+ schemaId: string;
275
+ /** Pagination token */
276
+ pageToken?: string | undefined;
277
+ /** Page size or 0 for default (current maximum is 100) */
278
+ pageSize?: number | undefined;
279
+ }
280
+ /** A page of results. */
281
+ export type PaginatedTableResultList = Array<Table>;
282
+ export interface PaginatedTable {
283
+ /** The next page token to use or "" if there are no more pages. */
284
+ nextPageToken?: string | undefined;
285
+ /** A page of results. */
286
+ result: PaginatedTableResultList;
287
+ }
288
+ /** Catalog contacts */
289
+ export interface UserAndEmailPatch {
290
+ /** User ID */
291
+ userId?: string | undefined;
292
+ /** User email */
293
+ email?: string | undefined;
294
+ }
295
+ /** Catalog contacts */
296
+ export type UpdateCatalogMetadataRequestContactsList = Array<UserAndEmailPatch>;
297
+ export interface UpdateCatalogMetadataRequest {
298
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
299
+ catalogId: string;
300
+ /** Catalog contacts */
301
+ contacts?: UpdateCatalogMetadataRequestContactsList | undefined;
302
+ }
303
+ /** Schema contacts */
304
+ export type UpdateCatalogSchemaRequestContactsList = Array<UserAndEmailPatch>;
305
+ /** Schema links */
306
+ export interface LinkPatch {
307
+ /** The name of the link */
308
+ name?: string | undefined;
309
+ /** The link URI */
310
+ uri?: string | undefined;
311
+ }
312
+ /** Schema links */
313
+ export type UpdateCatalogSchemaRequestLinksList = Array<LinkPatch>;
314
+ export interface UpdateCatalogSchemaRequest {
315
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
316
+ catalogId: string;
317
+ /** A schema from a catalog */
318
+ schemaId: string;
319
+ /** Schema description */
320
+ description?: string | undefined;
321
+ /** Schema contacts */
322
+ contacts?: UpdateCatalogSchemaRequestContactsList | undefined;
323
+ /** Schema links */
324
+ links?: UpdateCatalogSchemaRequestLinksList | undefined;
325
+ }
326
+ /** Table contacts */
327
+ export type UpdateCatalogSchemaTableRequestContactsList = Array<UserAndEmailPatch>;
328
+ export interface UpdateCatalogSchemaTableRequest {
329
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
330
+ catalogId: string;
331
+ /** A schema from a catalog */
332
+ schemaId: string;
333
+ /** A table from a catalog */
334
+ tableId: string;
335
+ /** Table description */
336
+ description?: string | undefined;
337
+ /** Table contacts */
338
+ contacts?: UpdateCatalogSchemaTableRequestContactsList | undefined;
339
+ }
340
+ export interface UpdateCatalogSchemaTableColumnRequest {
341
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
342
+ catalogId: string;
343
+ /** A schema from a catalog */
344
+ schemaId: string;
345
+ /** A table from a catalog */
346
+ tableId: string;
347
+ /** A column from a catalog */
348
+ columnId: string;
349
+ /** Column description */
350
+ description?: string | undefined;
351
+ }
352
+ /** Map of column ID to new description */
353
+ export type UpdateCatalogSchemaTableColumnsRequestDescriptionsMap = {
354
+ [key: string]: string | undefined;
355
+ };
356
+ export interface UpdateCatalogSchemaTableColumnsRequest {
357
+ /** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
358
+ catalogId: string;
359
+ /** A schema from a catalog */
360
+ schemaId: string;
361
+ /** A table from a catalog */
362
+ tableId: string;
363
+ /** Map of column ID to new description */
364
+ descriptions?: UpdateCatalogSchemaTableColumnsRequestDescriptionsMap | undefined;
365
+ }
366
+ export interface UpdateCatalogSchemaTableColumnsResponse {}
367
+ /** Any fields/values that are invalid or incorrect */
368
+ export type BadRequestFieldsList = Array<string>;
369
+ /** Invalid request */
370
+ export interface BadRequest2 {
371
+ /** Description of the error */
372
+ message?: string | undefined;
373
+ /** Any fields/values that are invalid or incorrect */
374
+ fields?: BadRequestFieldsList | undefined;
375
+ }
376
+ /** Any additional details (read only) */
377
+ export type ErrorinfoMetadataMap = { [key: string]: string | undefined };
378
+ /** Error details (read only) */
379
+ export interface Errorinfo {
380
+ /** Error reason/detail (read only) */
381
+ reason: string;
382
+ /** Any additional details (read only) */
383
+ metadata: ErrorinfoMetadataMap;
384
+ }
385
+ /** Concurrency conflict, such as read-modify-write conflict. */
386
+ export interface Aborted {
387
+ /** Description of the error */
388
+ message: string;
389
+ detail: Errorinfo;
390
+ }
391
+ /** Already exists */
392
+ export interface Exists {
393
+ message?: string | undefined;
394
+ }
395
+ /** Authorization failed */
396
+ export type Forbidden2 = Exists;
397
+ /** Any fields/values that weren't found */
398
+ export type NotFoundFieldsList = Array<string>;
399
+ /** A resource or required component was not found */
400
+ export interface NotFound2 {
401
+ /** Name of the resource */
402
+ message: string;
403
+ /** Violation description */
404
+ description?: string | undefined;
405
+ /** Any fields/values that weren't found */
406
+ fields?: NotFoundFieldsList | undefined;
407
+ }
408
+ export type DeleteCatalogMetadataError =
409
+ | BadRequest
410
+ | Forbidden
411
+ | NotFound
412
+ | Conflict
413
+ | StarburstGalaxyOpError;
414
+ /** Delete catalog metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
415
+ export const deleteCatalogMetadata: API.OperationMethod<
416
+ DeleteCatalogMetadataRequest,
417
+ DeleteCatalogMetadataResponse,
418
+ DeleteCatalogMetadataError,
419
+ StarburstGalaxyOpContext
420
+ > = /*@__PURE__*/ API.make(() => ({
421
+ input: __S(52, __c13, 0) as any as S.Schema<DeleteCatalogMetadataRequest>,
422
+ output: __S(56, __c14, 0) as any as S.Schema<DeleteCatalogMetadataResponse>,
423
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
424
+ serviceErrors: StarburstGalaxyServiceErrors,
425
+ protocol: StarburstGalaxyProtocol,
426
+ retry: Retry.Retry,
427
+ telemetry: TELEMETRY,
428
+ span: "DeleteCatalogMetadata",
429
+ }));
430
+
431
+ export type DeleteCatalogSchemaError =
432
+ | BadRequest
433
+ | Forbidden
434
+ | NotFound
435
+ | Conflict
436
+ | StarburstGalaxyOpError;
437
+ /** Delete schema metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
438
+ export const deleteCatalogSchema: API.OperationMethod<
439
+ DeleteCatalogSchemaRequest,
440
+ DeleteCatalogSchemaResponse,
441
+ DeleteCatalogSchemaError,
442
+ StarburstGalaxyOpContext
443
+ > = /*@__PURE__*/ API.make(() => ({
444
+ input: __S(60, __c15, 0) as any as S.Schema<DeleteCatalogSchemaRequest>,
445
+ output: __S(56, __c14, 0) as any as S.Schema<DeleteCatalogSchemaResponse>,
446
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
447
+ serviceErrors: StarburstGalaxyServiceErrors,
448
+ protocol: StarburstGalaxyProtocol,
449
+ retry: Retry.Retry,
450
+ telemetry: TELEMETRY,
451
+ span: "DeleteCatalogSchema",
452
+ }));
453
+
454
+ export type DeleteCatalogSchemaTableError =
455
+ | BadRequest
456
+ | Forbidden
457
+ | NotFound
458
+ | Conflict
459
+ | StarburstGalaxyOpError;
460
+ /** Delete table metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
461
+ export const deleteCatalogSchemaTable: API.OperationMethod<
462
+ DeleteCatalogSchemaTableRequest,
463
+ DeleteCatalogSchemaTableResponse,
464
+ DeleteCatalogSchemaTableError,
465
+ StarburstGalaxyOpContext
466
+ > = /*@__PURE__*/ API.make(() => ({
467
+ input: __S(64, __c16, 0) as any as S.Schema<DeleteCatalogSchemaTableRequest>,
468
+ output: __S(56, __c14, 0) as any as S.Schema<DeleteCatalogSchemaTableResponse>,
469
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
470
+ serviceErrors: StarburstGalaxyServiceErrors,
471
+ protocol: StarburstGalaxyProtocol,
472
+ retry: Retry.Retry,
473
+ telemetry: TELEMETRY,
474
+ span: "DeleteCatalogSchemaTable",
475
+ }));
476
+
477
+ export type DeleteCatalogSchemaTableColumnError =
478
+ | BadRequest
479
+ | Forbidden
480
+ | NotFound
481
+ | Conflict
482
+ | StarburstGalaxyOpError;
483
+ /** Delete column metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
484
+ export const deleteCatalogSchemaTableColumn: API.OperationMethod<
485
+ DeleteCatalogSchemaTableColumnRequest,
486
+ DeleteCatalogSchemaTableColumnResponse,
487
+ DeleteCatalogSchemaTableColumnError,
488
+ StarburstGalaxyOpContext
489
+ > = /*@__PURE__*/ API.make(() => ({
490
+ input: __S(68, __c17, 0) as any as S.Schema<DeleteCatalogSchemaTableColumnRequest>,
491
+ output: __S(56, __c14, 0) as any as S.Schema<DeleteCatalogSchemaTableColumnResponse>,
492
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
493
+ serviceErrors: StarburstGalaxyServiceErrors,
494
+ protocol: StarburstGalaxyProtocol,
495
+ retry: Retry.Retry,
496
+ telemetry: TELEMETRY,
497
+ span: "DeleteCatalogSchemaTableColumn",
498
+ }));
499
+
500
+ export type GetCatalogMetadataError =
501
+ | BadRequest
502
+ | Forbidden
503
+ | NotFound
504
+ | Conflict
505
+ | StarburstGalaxyOpError;
506
+ /** Return catalog metadata with any Galaxy added metadata */
507
+ export const getCatalogMetadata: API.OperationMethod<
508
+ GetCatalogMetadataRequest,
509
+ CatalogMetadata,
510
+ GetCatalogMetadataError,
511
+ StarburstGalaxyOpContext
512
+ > = /*@__PURE__*/ API.make(() => ({
513
+ input: __S(72, __c18, 0) as any as S.Schema<GetCatalogMetadataRequest>,
514
+ output: __S(76, __c19, 0) as any as S.Schema<CatalogMetadata>,
515
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
516
+ serviceErrors: StarburstGalaxyServiceErrors,
517
+ protocol: StarburstGalaxyProtocol,
518
+ retry: Retry.Retry,
519
+ telemetry: TELEMETRY,
520
+ span: "GetCatalogMetadata",
521
+ }));
522
+
523
+ export type GetCatalogSchemaError =
524
+ | BadRequest
525
+ | Forbidden
526
+ | NotFound
527
+ | Conflict
528
+ | StarburstGalaxyOpError;
529
+ /** Return a specific schema with any Galaxy added metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
530
+ export const getCatalogSchema: API.OperationMethod<
531
+ GetCatalogSchemaRequest,
532
+ Schema,
533
+ GetCatalogSchemaError,
534
+ StarburstGalaxyOpContext
535
+ > = /*@__PURE__*/ API.make(() => ({
536
+ input: __S(88, __c22, 0) as any as S.Schema<GetCatalogSchemaRequest>,
537
+ output: __S(94, __c23, 2) as any as S.Schema<Schema>,
538
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
539
+ serviceErrors: StarburstGalaxyServiceErrors,
540
+ protocol: StarburstGalaxyProtocol,
541
+ retry: Retry.Retry,
542
+ telemetry: TELEMETRY,
543
+ span: "GetCatalogSchema",
544
+ }));
545
+
546
+ export type GetCatalogSchemaTableError =
547
+ | BadRequest
548
+ | Forbidden
549
+ | NotFound
550
+ | Conflict
551
+ | StarburstGalaxyOpError;
552
+ /** Return a specific table with any Galaxy added metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
553
+ export const getCatalogSchemaTable: API.OperationMethod<
554
+ GetCatalogSchemaTableRequest,
555
+ Table,
556
+ GetCatalogSchemaTableError,
557
+ StarburstGalaxyOpContext
558
+ > = /*@__PURE__*/ API.make(() => ({
559
+ input: __S(0, __c0, 0) as any as S.Schema<GetCatalogSchemaTableRequest>,
560
+ output: __S(4, __c1, 0) as any as S.Schema<Table>,
561
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
562
+ serviceErrors: StarburstGalaxyServiceErrors,
563
+ protocol: StarburstGalaxyProtocol,
564
+ retry: Retry.Retry,
565
+ telemetry: TELEMETRY,
566
+ span: "GetCatalogSchemaTable",
567
+ }));
568
+
569
+ export type GetCatalogSchemaTableColumnError =
570
+ | BadRequest
571
+ | Forbidden
572
+ | NotFound
573
+ | Conflict
574
+ | StarburstGalaxyOpError;
575
+ /** Return a specific column with any Galaxy added metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
576
+ export const getCatalogSchemaTableColumn: API.OperationMethod<
577
+ GetCatalogSchemaTableColumnRequest,
578
+ Column,
579
+ GetCatalogSchemaTableColumnError,
580
+ StarburstGalaxyOpContext
581
+ > = /*@__PURE__*/ API.make(() => ({
582
+ input: __S(8, __c2, 0) as any as S.Schema<GetCatalogSchemaTableColumnRequest>,
583
+ output: __S(12, __c3, 0) as any as S.Schema<Column>,
584
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
585
+ serviceErrors: StarburstGalaxyServiceErrors,
586
+ protocol: StarburstGalaxyProtocol,
587
+ retry: Retry.Retry,
588
+ telemetry: TELEMETRY,
589
+ span: "GetCatalogSchemaTableColumn",
590
+ }));
591
+
592
+ export type ListCatalogSchemasError =
593
+ | BadRequest
594
+ | Forbidden
595
+ | NotFound
596
+ | Conflict
597
+ | StarburstGalaxyOpError;
598
+ /** Return a catalog's schemas along with any Galaxy added metadata */
599
+ export const listCatalogSchemas: API.PaginatedOperationMethod<
600
+ ListCatalogSchemasRequest,
601
+ PaginatedSchema,
602
+ ListCatalogSchemasError,
603
+ StarburstGalaxyOpContext,
604
+ Schema
605
+ > = /*@__PURE__*/ API.makePaginated(
606
+ () => ({
607
+ input: __S(16, __c4, 0) as any as S.Schema<ListCatalogSchemasRequest>,
608
+ output: __S(18, __c4, 2) as any as S.Schema<PaginatedSchema>,
609
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
610
+ serviceErrors: StarburstGalaxyServiceErrors,
611
+ protocol: StarburstGalaxyProtocol,
612
+ retry: Retry.Retry,
613
+ telemetry: TELEMETRY,
614
+ span: "ListCatalogSchemas",
615
+ pagination: {
616
+ mode: "token",
617
+ inputToken: "pageToken",
618
+ outputToken: "nextPageToken",
619
+ items: "result",
620
+ pageSize: "pageSize",
621
+ } as const,
622
+ }),
623
+ paginateToken,
624
+ ) as any;
625
+
626
+ export type ListCatalogSchemaTableColumnsError =
627
+ | BadRequest
628
+ | Forbidden
629
+ | NotFound
630
+ | Conflict
631
+ | StarburstGalaxyOpError;
632
+ /** Return a catalog table's columns along with any Galaxy added metadata */
633
+ export const listCatalogSchemaTableColumns: API.PaginatedOperationMethod<
634
+ ListCatalogSchemaTableColumnsRequest,
635
+ PaginatedColumn,
636
+ ListCatalogSchemaTableColumnsError,
637
+ StarburstGalaxyOpContext,
638
+ Column
639
+ > = /*@__PURE__*/ API.makePaginated(
640
+ () => ({
641
+ input: __S(20, __c5, 0) as any as S.Schema<ListCatalogSchemaTableColumnsRequest>,
642
+ output: __S(22, __c5, 2) as any as S.Schema<PaginatedColumn>,
643
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
644
+ serviceErrors: StarburstGalaxyServiceErrors,
645
+ protocol: StarburstGalaxyProtocol,
646
+ retry: Retry.Retry,
647
+ telemetry: TELEMETRY,
648
+ span: "ListCatalogSchemaTableColumns",
649
+ pagination: {
650
+ mode: "token",
651
+ inputToken: "pageToken",
652
+ outputToken: "nextPageToken",
653
+ items: "result",
654
+ pageSize: "pageSize",
655
+ } as const,
656
+ }),
657
+ paginateToken,
658
+ ) as any;
659
+
660
+ export type ListCatalogSchemaTablesError =
661
+ | BadRequest
662
+ | Forbidden
663
+ | NotFound
664
+ | Conflict
665
+ | StarburstGalaxyOpError;
666
+ /** Return a catalog schema's tables along with any Galaxy added metadata */
667
+ export const listCatalogSchemaTables: API.PaginatedOperationMethod<
668
+ ListCatalogSchemaTablesRequest,
669
+ PaginatedTable,
670
+ ListCatalogSchemaTablesError,
671
+ StarburstGalaxyOpContext,
672
+ Table
673
+ > = /*@__PURE__*/ API.makePaginated(
674
+ () => ({
675
+ input: __S(24, __c6, 0) as any as S.Schema<ListCatalogSchemaTablesRequest>,
676
+ output: __S(26, __c6, 2) as any as S.Schema<PaginatedTable>,
677
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
678
+ serviceErrors: StarburstGalaxyServiceErrors,
679
+ protocol: StarburstGalaxyProtocol,
680
+ retry: Retry.Retry,
681
+ telemetry: TELEMETRY,
682
+ span: "ListCatalogSchemaTables",
683
+ pagination: {
684
+ mode: "token",
685
+ inputToken: "pageToken",
686
+ outputToken: "nextPageToken",
687
+ items: "result",
688
+ pageSize: "pageSize",
689
+ } as const,
690
+ }),
691
+ paginateToken,
692
+ ) as any;
693
+
694
+ export type UpdateCatalogMetadataError =
695
+ | BadRequest
696
+ | Forbidden
697
+ | NotFound
698
+ | Conflict
699
+ | StarburstGalaxyOpError;
700
+ /** Update catalog metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. Only include fields you wish to update. Missing or unrecognized fields are ignored. */
701
+ export const updateCatalogMetadata: API.OperationMethod<
702
+ UpdateCatalogMetadataRequest,
703
+ CatalogMetadata,
704
+ UpdateCatalogMetadataError,
705
+ StarburstGalaxyOpContext
706
+ > = /*@__PURE__*/ API.make(() => ({
707
+ input: __S(28, __c7, 0) as any as S.Schema<UpdateCatalogMetadataRequest>,
708
+ output: __S(76, __c19, 0) as any as S.Schema<CatalogMetadata>,
709
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
710
+ serviceErrors: StarburstGalaxyServiceErrors,
711
+ protocol: StarburstGalaxyProtocol,
712
+ retry: Retry.Retry,
713
+ telemetry: TELEMETRY,
714
+ span: "UpdateCatalogMetadata",
715
+ }));
716
+
717
+ export type UpdateCatalogSchemaError =
718
+ | BadRequest
719
+ | Forbidden
720
+ | NotFound
721
+ | Conflict
722
+ | StarburstGalaxyOpError;
723
+ /** Update schema metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. Only include fields you wish to update. Missing or unrecognized fields are ignored. */
724
+ export const updateCatalogSchema: API.OperationMethod<
725
+ UpdateCatalogSchemaRequest,
726
+ Schema,
727
+ UpdateCatalogSchemaError,
728
+ StarburstGalaxyOpContext
729
+ > = /*@__PURE__*/ API.make(() => ({
730
+ input: __S(38, __c9, 2) as any as S.Schema<UpdateCatalogSchemaRequest>,
731
+ output: __S(94, __c23, 2) as any as S.Schema<Schema>,
732
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
733
+ serviceErrors: StarburstGalaxyServiceErrors,
734
+ protocol: StarburstGalaxyProtocol,
735
+ retry: Retry.Retry,
736
+ telemetry: TELEMETRY,
737
+ span: "UpdateCatalogSchema",
738
+ }));
739
+
740
+ export type UpdateCatalogSchemaTableError =
741
+ | BadRequest
742
+ | Forbidden
743
+ | NotFound
744
+ | Conflict
745
+ | StarburstGalaxyOpError;
746
+ /** Update table metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. Only include fields you wish to update. Missing or unrecognized fields are ignored. */
747
+ export const updateCatalogSchemaTable: API.OperationMethod<
748
+ UpdateCatalogSchemaTableRequest,
749
+ Table,
750
+ UpdateCatalogSchemaTableError,
751
+ StarburstGalaxyOpContext
752
+ > = /*@__PURE__*/ API.make(() => ({
753
+ input: __S(40, __c10, 0) as any as S.Schema<UpdateCatalogSchemaTableRequest>,
754
+ output: __S(4, __c1, 0) as any as S.Schema<Table>,
755
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
756
+ serviceErrors: StarburstGalaxyServiceErrors,
757
+ protocol: StarburstGalaxyProtocol,
758
+ retry: Retry.Retry,
759
+ telemetry: TELEMETRY,
760
+ span: "UpdateCatalogSchemaTable",
761
+ }));
762
+
763
+ export type UpdateCatalogSchemaTableColumnError =
764
+ | BadRequest
765
+ | Forbidden
766
+ | NotFound
767
+ | Conflict
768
+ | StarburstGalaxyOpError;
769
+ /** Update column metadata **BETA API:** This API is subject to incompatible changes, or even removal, in the future. Only include fields you wish to update. Missing or unrecognized fields are ignored. */
770
+ export const updateCatalogSchemaTableColumn: API.OperationMethod<
771
+ UpdateCatalogSchemaTableColumnRequest,
772
+ Column,
773
+ UpdateCatalogSchemaTableColumnError,
774
+ StarburstGalaxyOpContext
775
+ > = /*@__PURE__*/ API.make(() => ({
776
+ input: __S(44, __c11, 0) as any as S.Schema<UpdateCatalogSchemaTableColumnRequest>,
777
+ output: __S(12, __c3, 0) as any as S.Schema<Column>,
778
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
779
+ serviceErrors: StarburstGalaxyServiceErrors,
780
+ protocol: StarburstGalaxyProtocol,
781
+ retry: Retry.Retry,
782
+ telemetry: TELEMETRY,
783
+ span: "UpdateCatalogSchemaTableColumn",
784
+ }));
785
+
786
+ export type UpdateCatalogSchemaTableColumnsError =
787
+ | BadRequest
788
+ | Forbidden
789
+ | NotFound
790
+ | Conflict
791
+ | StarburstGalaxyOpError;
792
+ /** Update descriptions for multiple columns in a single request **BETA API:** This API is subject to incompatible changes, or even removal, in the future. Only include fields you wish to update. Missing or unrecognized fields are ignored. */
793
+ export const updateCatalogSchemaTableColumns: API.OperationMethod<
794
+ UpdateCatalogSchemaTableColumnsRequest,
795
+ UpdateCatalogSchemaTableColumnsResponse,
796
+ UpdateCatalogSchemaTableColumnsError,
797
+ StarburstGalaxyOpContext
798
+ > = /*@__PURE__*/ API.make(() => ({
799
+ input: __S(49, __c12, 1) as any as S.Schema<UpdateCatalogSchemaTableColumnsRequest>,
800
+ output: __S(56, __c14, 0) as any as S.Schema<UpdateCatalogSchemaTableColumnsResponse>,
801
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
802
+ serviceErrors: StarburstGalaxyServiceErrors,
803
+ protocol: StarburstGalaxyProtocol,
804
+ retry: Retry.Retry,
805
+ telemetry: TELEMETRY,
806
+ span: "UpdateCatalogSchemaTableColumns",
807
+ }));
808
+
809
+ // Schema builders: each runs one schema initializer, on that schema's first use.
810
+ function __c0(j: number): any {
811
+ switch (j) {
812
+ case 0:
813
+ return S.suspend(() =>
814
+ S.Struct({
815
+ catalogId: S.String.pipe(T.Label()),
816
+ schemaId: S.String.pipe(T.Label()),
817
+ tableId: S.String.pipe(T.Label()),
818
+ }).pipe(
819
+ T.Http({
820
+ method: "GET",
821
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}",
822
+ code: 200,
823
+ }),
824
+ ),
825
+ ).annotate({ identifier: "GetCatalogSchemaTableRequest" });
826
+ }
827
+ }
828
+ function __c1(j: number): any {
829
+ switch (j) {
830
+ case 0:
831
+ return S.suspend(() =>
832
+ S.Struct({
833
+ tableId: S.String,
834
+ tableType: S.optional(S.String),
835
+ description: S.optional(S.String),
836
+ owner: S.optional(__S(84, __c21, 0)),
837
+ tags: __S(81, __c20, 1),
838
+ contacts: __S(86, __c21, 2),
839
+ }),
840
+ ).annotate({ identifier: "Table" });
841
+ }
842
+ }
843
+ function __c2(j: number): any {
844
+ switch (j) {
845
+ case 0:
846
+ return S.suspend(() =>
847
+ S.Struct({
848
+ catalogId: S.String.pipe(T.Label()),
849
+ schemaId: S.String.pipe(T.Label()),
850
+ tableId: S.String.pipe(T.Label()),
851
+ columnId: S.String.pipe(T.Label()),
852
+ }).pipe(
853
+ T.Http({
854
+ method: "GET",
855
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/column/{columnId}",
856
+ code: 200,
857
+ }),
858
+ ),
859
+ ).annotate({ identifier: "GetCatalogSchemaTableColumnRequest" });
860
+ }
861
+ }
862
+ function __c3(j: number): any {
863
+ switch (j) {
864
+ case 0:
865
+ return S.suspend(() =>
866
+ S.Struct({
867
+ columnId: S.String,
868
+ dataType: S.optional(S.String),
869
+ columnDefault: S.optional(S.String),
870
+ nullable: S.Boolean,
871
+ description: S.optional(S.String),
872
+ tags: __S(81, __c20, 1),
873
+ }),
874
+ ).annotate({ identifier: "Column" });
875
+ }
876
+ }
877
+ function __c4(j: number): any {
878
+ switch (j) {
879
+ case 0:
880
+ return S.suspend(() =>
881
+ S.Struct({
882
+ catalogId: S.String.pipe(T.Label()),
883
+ pageToken: S.optional(S.String.pipe(T.Query())),
884
+ pageSize: S.optional(S.Number.pipe(T.Query())),
885
+ }).pipe(
886
+ T.Http({ method: "GET", uri: "/public/api/v1/catalog/{catalogId}/schema", code: 200 }),
887
+ ),
888
+ ).annotate({ identifier: "ListCatalogSchemasRequest" });
889
+ case 1:
890
+ return S.Array(__S(94, __c23, 2));
891
+ case 2:
892
+ return S.suspend(() =>
893
+ S.Struct({
894
+ nextPageToken: S.optional(S.String),
895
+ result: __S(17, __c4, 1),
896
+ }),
897
+ ).annotate({ identifier: "PaginatedSchema" });
898
+ }
899
+ }
900
+ function __c5(j: number): any {
901
+ switch (j) {
902
+ case 0:
903
+ return S.suspend(() =>
904
+ S.Struct({
905
+ catalogId: S.String.pipe(T.Label()),
906
+ schemaId: S.String.pipe(T.Label()),
907
+ tableId: S.String.pipe(T.Label()),
908
+ pageToken: S.optional(S.String.pipe(T.Query())),
909
+ pageSize: S.optional(S.Number.pipe(T.Query())),
910
+ }).pipe(
911
+ T.Http({
912
+ method: "GET",
913
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/column",
914
+ code: 200,
915
+ }),
916
+ ),
917
+ ).annotate({ identifier: "ListCatalogSchemaTableColumnsRequest" });
918
+ case 1:
919
+ return S.Array(__S(12, __c3, 0));
920
+ case 2:
921
+ return S.suspend(() =>
922
+ S.Struct({
923
+ nextPageToken: S.optional(S.String),
924
+ result: __S(21, __c5, 1),
925
+ }),
926
+ ).annotate({ identifier: "PaginatedColumn" });
927
+ }
928
+ }
929
+ function __c6(j: number): any {
930
+ switch (j) {
931
+ case 0:
932
+ return S.suspend(() =>
933
+ S.Struct({
934
+ catalogId: S.String.pipe(T.Label()),
935
+ schemaId: S.String.pipe(T.Label()),
936
+ pageToken: S.optional(S.String.pipe(T.Query())),
937
+ pageSize: S.optional(S.Number.pipe(T.Query())),
938
+ }).pipe(
939
+ T.Http({
940
+ method: "GET",
941
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table",
942
+ code: 200,
943
+ }),
944
+ ),
945
+ ).annotate({ identifier: "ListCatalogSchemaTablesRequest" });
946
+ case 1:
947
+ return S.Array(__S(4, __c1, 0));
948
+ case 2:
949
+ return S.suspend(() =>
950
+ S.Struct({
951
+ nextPageToken: S.optional(S.String),
952
+ result: __S(25, __c6, 1),
953
+ }),
954
+ ).annotate({ identifier: "PaginatedTable" });
955
+ }
956
+ }
957
+ function __c7(j: number): any {
958
+ switch (j) {
959
+ case 0:
960
+ return S.suspend(() =>
961
+ S.Struct({
962
+ catalogId: S.String.pipe(T.Label()),
963
+ contacts: S.optional(__S(33, __c8, 1)),
964
+ }).pipe(
965
+ T.Http({
966
+ method: "PATCH",
967
+ uri: "/public/api/v1/catalog/{catalogId}/catalogMetadata",
968
+ code: 200,
969
+ }),
970
+ ),
971
+ ).annotate({ identifier: "UpdateCatalogMetadataRequest" });
972
+ }
973
+ }
974
+ function __c8(j: number): any {
975
+ switch (j) {
976
+ case 0:
977
+ return S.suspend(() =>
978
+ S.Struct({
979
+ userId: S.optional(S.String),
980
+ email: S.optional(S.String),
981
+ }),
982
+ ).annotate({ identifier: "UserAndEmailPatch" });
983
+ case 1:
984
+ return S.Array(__S(32, __c8, 0));
985
+ }
986
+ }
987
+ function __c9(j: number): any {
988
+ switch (j) {
989
+ case 0:
990
+ return S.suspend(() =>
991
+ S.Struct({
992
+ name: S.optional(S.String),
993
+ uri: S.optional(S.String),
994
+ }),
995
+ ).annotate({ identifier: "LinkPatch" });
996
+ case 1:
997
+ return S.Array(__S(36, __c9, 0));
998
+ case 2:
999
+ return S.suspend(() =>
1000
+ S.Struct({
1001
+ catalogId: S.String.pipe(T.Label()),
1002
+ schemaId: S.String.pipe(T.Label()),
1003
+ description: S.optional(S.String),
1004
+ contacts: S.optional(__S(33, __c8, 1)),
1005
+ links: S.optional(__S(37, __c9, 1)),
1006
+ }).pipe(
1007
+ T.Http({
1008
+ method: "PATCH",
1009
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}",
1010
+ code: 200,
1011
+ }),
1012
+ ),
1013
+ ).annotate({ identifier: "UpdateCatalogSchemaRequest" });
1014
+ }
1015
+ }
1016
+ function __c10(j: number): any {
1017
+ switch (j) {
1018
+ case 0:
1019
+ return S.suspend(() =>
1020
+ S.Struct({
1021
+ catalogId: S.String.pipe(T.Label()),
1022
+ schemaId: S.String.pipe(T.Label()),
1023
+ tableId: S.String.pipe(T.Label()),
1024
+ description: S.optional(S.String),
1025
+ contacts: S.optional(__S(33, __c8, 1)),
1026
+ }).pipe(
1027
+ T.Http({
1028
+ method: "PATCH",
1029
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}",
1030
+ code: 200,
1031
+ }),
1032
+ ),
1033
+ ).annotate({ identifier: "UpdateCatalogSchemaTableRequest" });
1034
+ }
1035
+ }
1036
+ function __c11(j: number): any {
1037
+ switch (j) {
1038
+ case 0:
1039
+ return S.suspend(() =>
1040
+ S.Struct({
1041
+ catalogId: S.String.pipe(T.Label()),
1042
+ schemaId: S.String.pipe(T.Label()),
1043
+ tableId: S.String.pipe(T.Label()),
1044
+ columnId: S.String.pipe(T.Label()),
1045
+ description: S.optional(S.String),
1046
+ }).pipe(
1047
+ T.Http({
1048
+ method: "PATCH",
1049
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/column/{columnId}",
1050
+ code: 200,
1051
+ }),
1052
+ ),
1053
+ ).annotate({ identifier: "UpdateCatalogSchemaTableColumnRequest" });
1054
+ }
1055
+ }
1056
+ function __c12(j: number): any {
1057
+ switch (j) {
1058
+ case 0:
1059
+ return S.Record(S.String, S.String);
1060
+ case 1:
1061
+ return S.suspend(() =>
1062
+ S.Struct({
1063
+ catalogId: S.String.pipe(T.Label()),
1064
+ schemaId: S.String.pipe(T.Label()),
1065
+ tableId: S.String.pipe(T.Label()),
1066
+ descriptions: S.optional(__S(48, __c12, 0)),
1067
+ }).pipe(
1068
+ T.Http({
1069
+ method: "PATCH",
1070
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/column",
1071
+ code: 200,
1072
+ }),
1073
+ ),
1074
+ ).annotate({ identifier: "UpdateCatalogSchemaTableColumnsRequest" });
1075
+ }
1076
+ }
1077
+ function __c13(j: number): any {
1078
+ switch (j) {
1079
+ case 0:
1080
+ return S.suspend(() =>
1081
+ S.Struct({
1082
+ catalogId: S.String.pipe(T.Label()),
1083
+ }).pipe(T.Http({ method: "DELETE", uri: "/public/api/v1/catalog/{catalogId}", code: 200 })),
1084
+ ).annotate({ identifier: "DeleteCatalogMetadataRequest" });
1085
+ }
1086
+ }
1087
+ function __c14(j: number): any {
1088
+ switch (j) {
1089
+ case 0:
1090
+ return S.suspend(() => S.Struct({})).annotate({
1091
+ identifier: "DeleteCatalogMetadataResponse",
1092
+ });
1093
+ }
1094
+ }
1095
+ function __c15(j: number): any {
1096
+ switch (j) {
1097
+ case 0:
1098
+ return S.suspend(() =>
1099
+ S.Struct({
1100
+ catalogId: S.String.pipe(T.Label()),
1101
+ schemaId: S.String.pipe(T.Label()),
1102
+ }).pipe(
1103
+ T.Http({
1104
+ method: "DELETE",
1105
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}",
1106
+ code: 200,
1107
+ }),
1108
+ ),
1109
+ ).annotate({ identifier: "DeleteCatalogSchemaRequest" });
1110
+ }
1111
+ }
1112
+ function __c16(j: number): any {
1113
+ switch (j) {
1114
+ case 0:
1115
+ return S.suspend(() =>
1116
+ S.Struct({
1117
+ catalogId: S.String.pipe(T.Label()),
1118
+ schemaId: S.String.pipe(T.Label()),
1119
+ tableId: S.String.pipe(T.Label()),
1120
+ }).pipe(
1121
+ T.Http({
1122
+ method: "DELETE",
1123
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}",
1124
+ code: 200,
1125
+ }),
1126
+ ),
1127
+ ).annotate({ identifier: "DeleteCatalogSchemaTableRequest" });
1128
+ }
1129
+ }
1130
+ function __c17(j: number): any {
1131
+ switch (j) {
1132
+ case 0:
1133
+ return S.suspend(() =>
1134
+ S.Struct({
1135
+ catalogId: S.String.pipe(T.Label()),
1136
+ schemaId: S.String.pipe(T.Label()),
1137
+ tableId: S.String.pipe(T.Label()),
1138
+ columnId: S.String.pipe(T.Label()),
1139
+ }).pipe(
1140
+ T.Http({
1141
+ method: "DELETE",
1142
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/column/{columnId}",
1143
+ code: 200,
1144
+ }),
1145
+ ),
1146
+ ).annotate({ identifier: "DeleteCatalogSchemaTableColumnRequest" });
1147
+ }
1148
+ }
1149
+ function __c18(j: number): any {
1150
+ switch (j) {
1151
+ case 0:
1152
+ return S.suspend(() =>
1153
+ S.Struct({
1154
+ catalogId: S.String.pipe(T.Label()),
1155
+ }).pipe(
1156
+ T.Http({
1157
+ method: "GET",
1158
+ uri: "/public/api/v1/catalog/{catalogId}/catalogMetadata",
1159
+ code: 200,
1160
+ }),
1161
+ ),
1162
+ ).annotate({ identifier: "GetCatalogMetadataRequest" });
1163
+ }
1164
+ }
1165
+ function __c19(j: number): any {
1166
+ switch (j) {
1167
+ case 0:
1168
+ return S.suspend(() =>
1169
+ S.Struct({
1170
+ catalogId: S.String,
1171
+ catalogName: S.String,
1172
+ description: S.optional(S.String),
1173
+ owner: S.optional(__S(84, __c21, 0)),
1174
+ tags: __S(81, __c20, 1),
1175
+ contacts: __S(86, __c21, 2),
1176
+ }),
1177
+ ).annotate({ identifier: "CatalogMetadata" });
1178
+ }
1179
+ }
1180
+ function __c20(j: number): any {
1181
+ switch (j) {
1182
+ case 0:
1183
+ return S.suspend(() =>
1184
+ S.Struct({
1185
+ tagId: S.String,
1186
+ name: S.String,
1187
+ }),
1188
+ ).annotate({ identifier: "TagName" });
1189
+ case 1:
1190
+ return S.Array(__S(80, __c20, 0));
1191
+ }
1192
+ }
1193
+ function __c21(j: number): any {
1194
+ switch (j) {
1195
+ case 0:
1196
+ return S.suspend(() =>
1197
+ S.Struct({
1198
+ roleId: S.String,
1199
+ roleName: S.String,
1200
+ }),
1201
+ ).annotate({ identifier: "RoleWithName2" });
1202
+ case 1:
1203
+ return S.suspend(() =>
1204
+ S.Struct({
1205
+ userId: S.String,
1206
+ email: S.String,
1207
+ }),
1208
+ ).annotate({ identifier: "UserAndEmail" });
1209
+ case 2:
1210
+ return S.Array(__S(85, __c21, 1));
1211
+ }
1212
+ }
1213
+ function __c22(j: number): any {
1214
+ switch (j) {
1215
+ case 0:
1216
+ return S.suspend(() =>
1217
+ S.Struct({
1218
+ catalogId: S.String.pipe(T.Label()),
1219
+ schemaId: S.String.pipe(T.Label()),
1220
+ }).pipe(
1221
+ T.Http({
1222
+ method: "GET",
1223
+ uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}",
1224
+ code: 200,
1225
+ }),
1226
+ ),
1227
+ ).annotate({ identifier: "GetCatalogSchemaRequest" });
1228
+ }
1229
+ }
1230
+ function __c23(j: number): any {
1231
+ switch (j) {
1232
+ case 0:
1233
+ return S.suspend(() =>
1234
+ S.Struct({
1235
+ name: S.String,
1236
+ uri: S.String,
1237
+ }),
1238
+ ).annotate({ identifier: "Link" });
1239
+ case 1:
1240
+ return S.Array(__S(92, __c23, 0));
1241
+ case 2:
1242
+ return S.suspend(() =>
1243
+ S.Struct({
1244
+ schemaId: S.String,
1245
+ description: S.optional(S.String),
1246
+ owner: S.optional(__S(84, __c21, 0)),
1247
+ tags: __S(81, __c20, 1),
1248
+ contacts: __S(86, __c21, 2),
1249
+ links: __S(93, __c23, 1),
1250
+ }),
1251
+ ).annotate({ identifier: "Schema" });
1252
+ }
1253
+ }
1254
+ // Schema table: entry i is schema j of builder f, made on first reach.
1255
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1256
+ return (__s[i] ??= __L.at(f, j));
1257
+ }