@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.
- package/LICENSE +201 -0
- package/README.md +114 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +84 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +83 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +42 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +29 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/catalog.d.ts +2791 -0
- package/lib/services/catalog.d.ts.map +1 -0
- package/lib/services/catalog.js +101 -0
- package/lib/services/catalog.js.map +1 -0
- package/lib/services/cluster.d.ts +248 -0
- package/lib/services/cluster.d.ts.map +1 -0
- package/lib/services/cluster.js +2 -0
- package/lib/services/cluster.js.map +1 -0
- package/lib/services/column_mask.d.ts +162 -0
- package/lib/services/column_mask.d.ts.map +1 -0
- package/lib/services/column_mask.js +2 -0
- package/lib/services/column_mask.js.map +1 -0
- package/lib/services/cross_account_iam_role.d.ts +133 -0
- package/lib/services/cross_account_iam_role.d.ts.map +1 -0
- package/lib/services/cross_account_iam_role.js +2 -0
- package/lib/services/cross_account_iam_role.js.map +1 -0
- package/lib/services/data_domain.d.ts +223 -0
- package/lib/services/data_domain.d.ts.map +1 -0
- package/lib/services/data_domain.js +2 -0
- package/lib/services/data_domain.js.map +1 -0
- package/lib/services/data_product.d.ts +290 -0
- package/lib/services/data_product.d.ts.map +1 -0
- package/lib/services/data_product.js +2 -0
- package/lib/services/data_product.js.map +1 -0
- package/lib/services/data_product_usage_example.d.ts +158 -0
- package/lib/services/data_product_usage_example.d.ts.map +1 -0
- package/lib/services/data_product_usage_example.js +2 -0
- package/lib/services/data_product_usage_example.js.map +1 -0
- package/lib/services/data_quality.d.ts +344 -0
- package/lib/services/data_quality.d.ts.map +1 -0
- package/lib/services/data_quality.js +2 -0
- package/lib/services/data_quality.js.map +1 -0
- package/lib/services/data_quality_metrics.d.ts +282 -0
- package/lib/services/data_quality_metrics.d.ts.map +1 -0
- package/lib/services/data_quality_metrics.js +2 -0
- package/lib/services/data_quality_metrics.js.map +1 -0
- package/lib/services/data_quality_schedule.d.ts +220 -0
- package/lib/services/data_quality_schedule.d.ts.map +1 -0
- package/lib/services/data_quality_schedule.js +2 -0
- package/lib/services/data_quality_schedule.js.map +1 -0
- package/lib/services/discovery.d.ts +439 -0
- package/lib/services/discovery.d.ts.map +1 -0
- package/lib/services/discovery.js +36 -0
- package/lib/services/discovery.js.map +1 -0
- package/lib/services/file_ingest_source.d.ts +205 -0
- package/lib/services/file_ingest_source.d.ts.map +1 -0
- package/lib/services/file_ingest_source.js +2 -0
- package/lib/services/file_ingest_source.js.map +1 -0
- package/lib/services/group.d.ts +140 -0
- package/lib/services/group.d.ts.map +1 -0
- package/lib/services/group.js +2 -0
- package/lib/services/group.js.map +1 -0
- package/lib/services/index.d.ts +26 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +25 -0
- package/lib/services/kafka_ingest_source.d.ts +236 -0
- package/lib/services/kafka_ingest_source.d.ts.map +1 -0
- package/lib/services/kafka_ingest_source.js +2 -0
- package/lib/services/kafka_ingest_source.js.map +1 -0
- package/lib/services/live_table.d.ts +851 -0
- package/lib/services/live_table.d.ts.map +1 -0
- package/lib/services/live_table.js +20 -0
- package/lib/services/live_table.js.map +1 -0
- package/lib/services/policy.d.ts +213 -0
- package/lib/services/policy.d.ts.map +1 -0
- package/lib/services/policy.js +2 -0
- package/lib/services/policy.js.map +1 -0
- package/lib/services/privatelink.d.ts +95 -0
- package/lib/services/privatelink.d.ts.map +1 -0
- package/lib/services/privatelink.js +2 -0
- package/lib/services/privatelink.js.map +1 -0
- package/lib/services/privilege.d.ts +167 -0
- package/lib/services/privilege.d.ts.map +1 -0
- package/lib/services/privilege.js +2 -0
- package/lib/services/privilege.js.map +1 -0
- package/lib/services/role.d.ts +222 -0
- package/lib/services/role.d.ts.map +1 -0
- package/lib/services/role.js +2 -0
- package/lib/services/role.js.map +1 -0
- package/lib/services/row_filter.d.ts +155 -0
- package/lib/services/row_filter.d.ts.map +1 -0
- package/lib/services/row_filter.js +2 -0
- package/lib/services/row_filter.js.map +1 -0
- package/lib/services/schema_discovery.d.ts +236 -0
- package/lib/services/schema_discovery.d.ts.map +1 -0
- package/lib/services/schema_discovery.js +2 -0
- package/lib/services/schema_discovery.js.map +1 -0
- package/lib/services/service_account.d.ts +206 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +2 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/sql_jobs.d.ts +264 -0
- package/lib/services/sql_jobs.d.ts.map +1 -0
- package/lib/services/sql_jobs.js +2 -0
- package/lib/services/sql_jobs.js.map +1 -0
- package/lib/services/tag.d.ts +287 -0
- package/lib/services/tag.d.ts.map +1 -0
- package/lib/services/tag.js +2 -0
- package/lib/services/tag.js.map +1 -0
- package/lib/services/user.d.ts +175 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +2 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services.lazy/catalog.js +4 -0
- package/lib/services.lazy/cluster.js +1 -0
- package/lib/services.lazy/column_mask.js +1 -0
- package/lib/services.lazy/cross_account_iam_role.js +1 -0
- package/lib/services.lazy/data_domain.js +1 -0
- package/lib/services.lazy/data_product.js +1 -0
- package/lib/services.lazy/data_product_usage_example.js +1 -0
- package/lib/services.lazy/data_quality.js +1 -0
- package/lib/services.lazy/data_quality_metrics.js +1 -0
- package/lib/services.lazy/data_quality_schedule.js +1 -0
- package/lib/services.lazy/discovery.js +4 -0
- package/lib/services.lazy/file_ingest_source.js +1 -0
- package/lib/services.lazy/group.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/kafka_ingest_source.js +1 -0
- package/lib/services.lazy/live_table.js +4 -0
- package/lib/services.lazy/policy.js +1 -0
- package/lib/services.lazy/privatelink.js +1 -0
- package/lib/services.lazy/privilege.js +1 -0
- package/lib/services.lazy/role.js +1 -0
- package/lib/services.lazy/row_filter.js +1 -0
- package/lib/services.lazy/schema_discovery.js +1 -0
- package/lib/services.lazy/service_account.js +1 -0
- package/lib/services.lazy/sql_jobs.js +1 -0
- package/lib/services.lazy/tag.js +1 -0
- package/lib/services.lazy/user.js +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +87 -3
- package/src/credentials.ts +205 -0
- package/src/errors.ts +102 -0
- package/src/index.ts +45 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +94 -0
- package/src/retry.ts +50 -0
- package/src/services/catalog.ts +6636 -0
- package/src/services/cluster.ts +492 -0
- package/src/services/column_mask.ts +388 -0
- package/src/services/cross_account_iam_role.ts +328 -0
- package/src/services/data_domain.ts +509 -0
- package/src/services/data_product.ts +641 -0
- package/src/services/data_product_usage_example.ts +380 -0
- package/src/services/data_quality.ts +771 -0
- package/src/services/data_quality_metrics.ts +580 -0
- package/src/services/data_quality_schedule.ts +454 -0
- package/src/services/discovery.ts +1257 -0
- package/src/services/file_ingest_source.ts +480 -0
- package/src/services/group.ts +282 -0
- package/src/services/index.ts +26 -0
- package/src/services/kafka_ingest_source.ts +545 -0
- package/src/services/live_table.ts +1537 -0
- package/src/services/policy.ts +526 -0
- package/src/services/privatelink.ts +209 -0
- package/src/services/privilege.ts +423 -0
- package/src/services/role.ts +501 -0
- package/src/services/row_filter.ts +365 -0
- package/src/services/schema_discovery.ts +516 -0
- package/src/services/service_account.ts +525 -0
- package/src/services/sql_jobs.ts +621 -0
- package/src/services/tag.ts +785 -0
- package/src/services/user.ts +375 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,785 @@
|
|
|
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: "TagService",
|
|
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 ApplyCatalogSchemaTableColumnTagRequest {
|
|
74
|
+
/** - A tag - 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
|
+
tagId: string;
|
|
76
|
+
/** - 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 `=`) */
|
|
77
|
+
catalogId: string;
|
|
78
|
+
/** A schema from a catalog */
|
|
79
|
+
schemaId: string;
|
|
80
|
+
/** A table from a catalog */
|
|
81
|
+
tableId: string;
|
|
82
|
+
/** A column from a catalog */
|
|
83
|
+
columnId: string;
|
|
84
|
+
}
|
|
85
|
+
export interface ApplyCatalogSchemaTableColumnTagResponse {}
|
|
86
|
+
export interface ApplyCatalogSchemaTableTagRequest {
|
|
87
|
+
/** - A tag - 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 `=`) */
|
|
88
|
+
tagId: string;
|
|
89
|
+
/** - 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 `=`) */
|
|
90
|
+
catalogId: string;
|
|
91
|
+
/** A schema from a catalog */
|
|
92
|
+
schemaId: string;
|
|
93
|
+
/** A table from a catalog */
|
|
94
|
+
tableId: string;
|
|
95
|
+
}
|
|
96
|
+
export interface ApplyCatalogSchemaTableTagResponse {}
|
|
97
|
+
export interface ApplyCatalogSchemaTagRequest {
|
|
98
|
+
/** - A tag - 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 `=`) */
|
|
99
|
+
tagId: string;
|
|
100
|
+
/** - 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 `=`) */
|
|
101
|
+
catalogId: string;
|
|
102
|
+
/** A schema from a catalog */
|
|
103
|
+
schemaId: string;
|
|
104
|
+
}
|
|
105
|
+
export interface ApplyCatalogSchemaTagResponse {}
|
|
106
|
+
export interface ApplyCatalogTagRequest {
|
|
107
|
+
/** - A tag - 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 `=`) */
|
|
108
|
+
tagId: string;
|
|
109
|
+
/** - 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 `=`) */
|
|
110
|
+
catalogId: string;
|
|
111
|
+
}
|
|
112
|
+
export interface ApplyCatalogTagResponse {}
|
|
113
|
+
export interface CreateTagRequest {
|
|
114
|
+
/** Tag name (read only) */
|
|
115
|
+
name: string;
|
|
116
|
+
/** Tag color (read only) */
|
|
117
|
+
color: string;
|
|
118
|
+
/** comment (read only) */
|
|
119
|
+
description?: string | undefined;
|
|
120
|
+
}
|
|
121
|
+
/** A tag */
|
|
122
|
+
export interface Tag {
|
|
123
|
+
/** 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) */
|
|
124
|
+
syncToken: string;
|
|
125
|
+
/** Tag ID (read only) */
|
|
126
|
+
tagId: string;
|
|
127
|
+
/** Tag name (read only) */
|
|
128
|
+
name: string;
|
|
129
|
+
/** Tag color (read only) */
|
|
130
|
+
color: string;
|
|
131
|
+
/** Comment (read only) */
|
|
132
|
+
description?: string | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface DeleteTagRequest {
|
|
135
|
+
/** - A tag - 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 `=`) */
|
|
136
|
+
tagId: string;
|
|
137
|
+
}
|
|
138
|
+
export interface DeleteTagResponse {}
|
|
139
|
+
export interface GetTagRequest {
|
|
140
|
+
/** - A tag - 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 `=`) */
|
|
141
|
+
tagId: string;
|
|
142
|
+
}
|
|
143
|
+
export interface ListTagsRequest {
|
|
144
|
+
/** Pagination token */
|
|
145
|
+
pageToken?: string | undefined;
|
|
146
|
+
/** Page size or 0 for default (current maximum is 100) */
|
|
147
|
+
pageSize?: number | undefined;
|
|
148
|
+
}
|
|
149
|
+
/** A page of results. */
|
|
150
|
+
export type PaginatedTagResultList = Array<Tag>;
|
|
151
|
+
export interface PaginatedTag {
|
|
152
|
+
/** The next page token to use or "" if there are no more pages. */
|
|
153
|
+
nextPageToken?: string | undefined;
|
|
154
|
+
/** A page of results. */
|
|
155
|
+
result: PaginatedTagResultList;
|
|
156
|
+
}
|
|
157
|
+
export interface RemoveCatalogSchemaTableColumnTagRequest {
|
|
158
|
+
/** - A tag - 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 `=`) */
|
|
159
|
+
tagId: string;
|
|
160
|
+
/** - 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 `=`) */
|
|
161
|
+
catalogId: string;
|
|
162
|
+
/** A schema from a catalog */
|
|
163
|
+
schemaId: string;
|
|
164
|
+
/** A table from a catalog */
|
|
165
|
+
tableId: string;
|
|
166
|
+
/** A column from a catalog */
|
|
167
|
+
columnId: string;
|
|
168
|
+
}
|
|
169
|
+
export interface RemoveCatalogSchemaTableColumnTagResponse {}
|
|
170
|
+
export interface RemoveCatalogSchemaTableTagRequest {
|
|
171
|
+
/** - A tag - 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 `=`) */
|
|
172
|
+
tagId: string;
|
|
173
|
+
/** - 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 `=`) */
|
|
174
|
+
catalogId: string;
|
|
175
|
+
/** A schema from a catalog */
|
|
176
|
+
schemaId: string;
|
|
177
|
+
/** A table from a catalog */
|
|
178
|
+
tableId: string;
|
|
179
|
+
}
|
|
180
|
+
export interface RemoveCatalogSchemaTableTagResponse {}
|
|
181
|
+
export interface RemoveCatalogSchemaTagRequest {
|
|
182
|
+
/** - A tag - 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
|
+
tagId: string;
|
|
184
|
+
/** - 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 `=`) */
|
|
185
|
+
catalogId: string;
|
|
186
|
+
/** A schema from a catalog */
|
|
187
|
+
schemaId: string;
|
|
188
|
+
}
|
|
189
|
+
export interface RemoveCatalogSchemaTagResponse {}
|
|
190
|
+
export interface RemoveCatalogTagRequest {
|
|
191
|
+
/** - A tag - 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 `=`) */
|
|
192
|
+
tagId: string;
|
|
193
|
+
/** - 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 `=`) */
|
|
194
|
+
catalogId: string;
|
|
195
|
+
}
|
|
196
|
+
export interface RemoveCatalogTagResponse {}
|
|
197
|
+
export interface UpdateTagRequest {
|
|
198
|
+
/** - A tag - 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 `=`) */
|
|
199
|
+
tagId: string;
|
|
200
|
+
/** Tag name */
|
|
201
|
+
name?: string | undefined;
|
|
202
|
+
/** Tag color */
|
|
203
|
+
color?: string | undefined;
|
|
204
|
+
/** comment */
|
|
205
|
+
description?: string | undefined;
|
|
206
|
+
}
|
|
207
|
+
/** Any fields/values that are invalid or incorrect */
|
|
208
|
+
export type BadRequestFieldsList = Array<string>;
|
|
209
|
+
/** Invalid request */
|
|
210
|
+
export interface BadRequest2 {
|
|
211
|
+
/** Description of the error */
|
|
212
|
+
message?: string | undefined;
|
|
213
|
+
/** Any fields/values that are invalid or incorrect */
|
|
214
|
+
fields?: BadRequestFieldsList | undefined;
|
|
215
|
+
}
|
|
216
|
+
/** Already exists */
|
|
217
|
+
export interface Exists {
|
|
218
|
+
message?: string | undefined;
|
|
219
|
+
}
|
|
220
|
+
/** Any additional details (read only) */
|
|
221
|
+
export type ErrorinfoMetadataMap = { [key: string]: string | undefined };
|
|
222
|
+
/** Error details (read only) */
|
|
223
|
+
export interface Errorinfo {
|
|
224
|
+
/** Error reason/detail (read only) */
|
|
225
|
+
reason: string;
|
|
226
|
+
/** Any additional details (read only) */
|
|
227
|
+
metadata: ErrorinfoMetadataMap;
|
|
228
|
+
}
|
|
229
|
+
/** Concurrency conflict, such as read-modify-write conflict. */
|
|
230
|
+
export interface Aborted {
|
|
231
|
+
/** Description of the error */
|
|
232
|
+
message: string;
|
|
233
|
+
detail: Errorinfo;
|
|
234
|
+
}
|
|
235
|
+
/** Authorization failed */
|
|
236
|
+
export type Forbidden2 = Exists;
|
|
237
|
+
/** Any fields/values that weren't found */
|
|
238
|
+
export type NotFoundFieldsList = Array<string>;
|
|
239
|
+
/** A resource or required component was not found */
|
|
240
|
+
export interface NotFound2 {
|
|
241
|
+
/** Name of the resource */
|
|
242
|
+
message: string;
|
|
243
|
+
/** Violation description */
|
|
244
|
+
description?: string | undefined;
|
|
245
|
+
/** Any fields/values that weren't found */
|
|
246
|
+
fields?: NotFoundFieldsList | undefined;
|
|
247
|
+
}
|
|
248
|
+
/** Error details (read only) */
|
|
249
|
+
export interface Resourceinfo {
|
|
250
|
+
/** Name of the resource (read only) */
|
|
251
|
+
resourceName: string;
|
|
252
|
+
/** Violation description (read only) */
|
|
253
|
+
description: string;
|
|
254
|
+
}
|
|
255
|
+
/** A specified resource is not found. */
|
|
256
|
+
export interface NotFoundError {
|
|
257
|
+
/** Description of the error */
|
|
258
|
+
message: string;
|
|
259
|
+
detail: Resourceinfo;
|
|
260
|
+
}
|
|
261
|
+
export type ApplyCatalogSchemaTableColumnTagError =
|
|
262
|
+
| BadRequest
|
|
263
|
+
| Forbidden
|
|
264
|
+
| NotFound
|
|
265
|
+
| Conflict
|
|
266
|
+
| StarburstGalaxyOpError;
|
|
267
|
+
/** Apply a tag to a column */
|
|
268
|
+
export const applyCatalogSchemaTableColumnTag: API.OperationMethod<
|
|
269
|
+
ApplyCatalogSchemaTableColumnTagRequest,
|
|
270
|
+
ApplyCatalogSchemaTableColumnTagResponse,
|
|
271
|
+
ApplyCatalogSchemaTableColumnTagError,
|
|
272
|
+
StarburstGalaxyOpContext
|
|
273
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
274
|
+
input: __S(28, __c7, 0) as any as S.Schema<ApplyCatalogSchemaTableColumnTagRequest>,
|
|
275
|
+
output: __S(32, __c8, 0) as any as S.Schema<ApplyCatalogSchemaTableColumnTagResponse>,
|
|
276
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
277
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
278
|
+
protocol: StarburstGalaxyProtocol,
|
|
279
|
+
retry: Retry.Retry,
|
|
280
|
+
telemetry: TELEMETRY,
|
|
281
|
+
span: "ApplyCatalogSchemaTableColumnTag",
|
|
282
|
+
}));
|
|
283
|
+
|
|
284
|
+
export type ApplyCatalogSchemaTableTagError =
|
|
285
|
+
| BadRequest
|
|
286
|
+
| Forbidden
|
|
287
|
+
| NotFound
|
|
288
|
+
| Conflict
|
|
289
|
+
| StarburstGalaxyOpError;
|
|
290
|
+
/** Apply a tag to a table */
|
|
291
|
+
export const applyCatalogSchemaTableTag: API.OperationMethod<
|
|
292
|
+
ApplyCatalogSchemaTableTagRequest,
|
|
293
|
+
ApplyCatalogSchemaTableTagResponse,
|
|
294
|
+
ApplyCatalogSchemaTableTagError,
|
|
295
|
+
StarburstGalaxyOpContext
|
|
296
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
297
|
+
input: __S(36, __c9, 0) as any as S.Schema<ApplyCatalogSchemaTableTagRequest>,
|
|
298
|
+
output: __S(32, __c8, 0) as any as S.Schema<ApplyCatalogSchemaTableTagResponse>,
|
|
299
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
300
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
301
|
+
protocol: StarburstGalaxyProtocol,
|
|
302
|
+
retry: Retry.Retry,
|
|
303
|
+
telemetry: TELEMETRY,
|
|
304
|
+
span: "ApplyCatalogSchemaTableTag",
|
|
305
|
+
}));
|
|
306
|
+
|
|
307
|
+
export type ApplyCatalogSchemaTagError =
|
|
308
|
+
| BadRequest
|
|
309
|
+
| Forbidden
|
|
310
|
+
| NotFound
|
|
311
|
+
| Conflict
|
|
312
|
+
| StarburstGalaxyOpError;
|
|
313
|
+
/** Apply a tag to a schema */
|
|
314
|
+
export const applyCatalogSchemaTag: API.OperationMethod<
|
|
315
|
+
ApplyCatalogSchemaTagRequest,
|
|
316
|
+
ApplyCatalogSchemaTagResponse,
|
|
317
|
+
ApplyCatalogSchemaTagError,
|
|
318
|
+
StarburstGalaxyOpContext
|
|
319
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
320
|
+
input: __S(40, __c10, 0) as any as S.Schema<ApplyCatalogSchemaTagRequest>,
|
|
321
|
+
output: __S(32, __c8, 0) as any as S.Schema<ApplyCatalogSchemaTagResponse>,
|
|
322
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
323
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
324
|
+
protocol: StarburstGalaxyProtocol,
|
|
325
|
+
retry: Retry.Retry,
|
|
326
|
+
telemetry: TELEMETRY,
|
|
327
|
+
span: "ApplyCatalogSchemaTag",
|
|
328
|
+
}));
|
|
329
|
+
|
|
330
|
+
export type ApplyCatalogTagError =
|
|
331
|
+
| BadRequest
|
|
332
|
+
| Forbidden
|
|
333
|
+
| NotFound
|
|
334
|
+
| Conflict
|
|
335
|
+
| StarburstGalaxyOpError;
|
|
336
|
+
/** Apply a tag to a catalog */
|
|
337
|
+
export const applyCatalogTag: API.OperationMethod<
|
|
338
|
+
ApplyCatalogTagRequest,
|
|
339
|
+
ApplyCatalogTagResponse,
|
|
340
|
+
ApplyCatalogTagError,
|
|
341
|
+
StarburstGalaxyOpContext
|
|
342
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
343
|
+
input: __S(44, __c11, 0) as any as S.Schema<ApplyCatalogTagRequest>,
|
|
344
|
+
output: __S(32, __c8, 0) as any as S.Schema<ApplyCatalogTagResponse>,
|
|
345
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
346
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
347
|
+
protocol: StarburstGalaxyProtocol,
|
|
348
|
+
retry: Retry.Retry,
|
|
349
|
+
telemetry: TELEMETRY,
|
|
350
|
+
span: "ApplyCatalogTag",
|
|
351
|
+
}));
|
|
352
|
+
|
|
353
|
+
export type CreateTagError = BadRequest | Forbidden | NotFound | Conflict | StarburstGalaxyOpError;
|
|
354
|
+
/** Create a tag */
|
|
355
|
+
export const createTag: API.OperationMethod<
|
|
356
|
+
CreateTagRequest,
|
|
357
|
+
Tag,
|
|
358
|
+
CreateTagError,
|
|
359
|
+
StarburstGalaxyOpContext
|
|
360
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
361
|
+
input: __S(48, __c12, 0) as any as S.Schema<CreateTagRequest>,
|
|
362
|
+
output: __S(52, __c13, 0) as any as S.Schema<Tag>,
|
|
363
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
364
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
365
|
+
protocol: StarburstGalaxyProtocol,
|
|
366
|
+
retry: Retry.Retry,
|
|
367
|
+
telemetry: TELEMETRY,
|
|
368
|
+
span: "CreateTag",
|
|
369
|
+
}));
|
|
370
|
+
|
|
371
|
+
export type DeleteTagError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
372
|
+
/** Delete a tag */
|
|
373
|
+
export const deleteTag: API.OperationMethod<
|
|
374
|
+
DeleteTagRequest,
|
|
375
|
+
DeleteTagResponse,
|
|
376
|
+
DeleteTagError,
|
|
377
|
+
StarburstGalaxyOpContext
|
|
378
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
379
|
+
input: __S(56, __c14, 0) as any as S.Schema<DeleteTagRequest>,
|
|
380
|
+
output: __S(32, __c8, 0) as any as S.Schema<DeleteTagResponse>,
|
|
381
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
382
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
383
|
+
protocol: StarburstGalaxyProtocol,
|
|
384
|
+
retry: Retry.Retry,
|
|
385
|
+
telemetry: TELEMETRY,
|
|
386
|
+
span: "DeleteTag",
|
|
387
|
+
}));
|
|
388
|
+
|
|
389
|
+
export type GetTagError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
390
|
+
/** Get a tag by id */
|
|
391
|
+
export const getTag: API.OperationMethod<
|
|
392
|
+
GetTagRequest,
|
|
393
|
+
Tag,
|
|
394
|
+
GetTagError,
|
|
395
|
+
StarburstGalaxyOpContext
|
|
396
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
397
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetTagRequest>,
|
|
398
|
+
output: __S(52, __c13, 0) as any as S.Schema<Tag>,
|
|
399
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
400
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
401
|
+
protocol: StarburstGalaxyProtocol,
|
|
402
|
+
retry: Retry.Retry,
|
|
403
|
+
telemetry: TELEMETRY,
|
|
404
|
+
span: "GetTag",
|
|
405
|
+
}));
|
|
406
|
+
|
|
407
|
+
export type ListTagsError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
408
|
+
/** Return all tags defined for your account */
|
|
409
|
+
export const listTags: API.PaginatedOperationMethod<
|
|
410
|
+
ListTagsRequest,
|
|
411
|
+
PaginatedTag,
|
|
412
|
+
ListTagsError,
|
|
413
|
+
StarburstGalaxyOpContext,
|
|
414
|
+
Tag
|
|
415
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
416
|
+
() => ({
|
|
417
|
+
input: __S(4, __c1, 0) as any as S.Schema<ListTagsRequest>,
|
|
418
|
+
output: __S(6, __c1, 2) as any as S.Schema<PaginatedTag>,
|
|
419
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
420
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
421
|
+
protocol: StarburstGalaxyProtocol,
|
|
422
|
+
retry: Retry.Retry,
|
|
423
|
+
telemetry: TELEMETRY,
|
|
424
|
+
span: "ListTags",
|
|
425
|
+
pagination: {
|
|
426
|
+
mode: "token",
|
|
427
|
+
inputToken: "pageToken",
|
|
428
|
+
outputToken: "nextPageToken",
|
|
429
|
+
items: "result",
|
|
430
|
+
pageSize: "pageSize",
|
|
431
|
+
} as const,
|
|
432
|
+
}),
|
|
433
|
+
paginateToken,
|
|
434
|
+
) as any;
|
|
435
|
+
|
|
436
|
+
export type RemoveCatalogSchemaTableColumnTagError =
|
|
437
|
+
| BadRequest
|
|
438
|
+
| Forbidden
|
|
439
|
+
| NotFound
|
|
440
|
+
| Conflict
|
|
441
|
+
| StarburstGalaxyOpError;
|
|
442
|
+
/** Revoke a tag applied to a column */
|
|
443
|
+
export const removeCatalogSchemaTableColumnTag: API.OperationMethod<
|
|
444
|
+
RemoveCatalogSchemaTableColumnTagRequest,
|
|
445
|
+
RemoveCatalogSchemaTableColumnTagResponse,
|
|
446
|
+
RemoveCatalogSchemaTableColumnTagError,
|
|
447
|
+
StarburstGalaxyOpContext
|
|
448
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
449
|
+
input: __S(8, __c2, 0) as any as S.Schema<RemoveCatalogSchemaTableColumnTagRequest>,
|
|
450
|
+
output: __S(32, __c8, 0) as any as S.Schema<RemoveCatalogSchemaTableColumnTagResponse>,
|
|
451
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
452
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
453
|
+
protocol: StarburstGalaxyProtocol,
|
|
454
|
+
retry: Retry.Retry,
|
|
455
|
+
telemetry: TELEMETRY,
|
|
456
|
+
span: "RemoveCatalogSchemaTableColumnTag",
|
|
457
|
+
}));
|
|
458
|
+
|
|
459
|
+
export type RemoveCatalogSchemaTableTagError =
|
|
460
|
+
| BadRequest
|
|
461
|
+
| Forbidden
|
|
462
|
+
| NotFound
|
|
463
|
+
| Conflict
|
|
464
|
+
| StarburstGalaxyOpError;
|
|
465
|
+
/** Revoke a tag applied to a table */
|
|
466
|
+
export const removeCatalogSchemaTableTag: API.OperationMethod<
|
|
467
|
+
RemoveCatalogSchemaTableTagRequest,
|
|
468
|
+
RemoveCatalogSchemaTableTagResponse,
|
|
469
|
+
RemoveCatalogSchemaTableTagError,
|
|
470
|
+
StarburstGalaxyOpContext
|
|
471
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
472
|
+
input: __S(12, __c3, 0) as any as S.Schema<RemoveCatalogSchemaTableTagRequest>,
|
|
473
|
+
output: __S(32, __c8, 0) as any as S.Schema<RemoveCatalogSchemaTableTagResponse>,
|
|
474
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
475
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
476
|
+
protocol: StarburstGalaxyProtocol,
|
|
477
|
+
retry: Retry.Retry,
|
|
478
|
+
telemetry: TELEMETRY,
|
|
479
|
+
span: "RemoveCatalogSchemaTableTag",
|
|
480
|
+
}));
|
|
481
|
+
|
|
482
|
+
export type RemoveCatalogSchemaTagError =
|
|
483
|
+
| BadRequest
|
|
484
|
+
| Forbidden
|
|
485
|
+
| NotFound
|
|
486
|
+
| Conflict
|
|
487
|
+
| StarburstGalaxyOpError;
|
|
488
|
+
/** Revoke a tag applied to a schema */
|
|
489
|
+
export const removeCatalogSchemaTag: API.OperationMethod<
|
|
490
|
+
RemoveCatalogSchemaTagRequest,
|
|
491
|
+
RemoveCatalogSchemaTagResponse,
|
|
492
|
+
RemoveCatalogSchemaTagError,
|
|
493
|
+
StarburstGalaxyOpContext
|
|
494
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
495
|
+
input: __S(16, __c4, 0) as any as S.Schema<RemoveCatalogSchemaTagRequest>,
|
|
496
|
+
output: __S(32, __c8, 0) as any as S.Schema<RemoveCatalogSchemaTagResponse>,
|
|
497
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
498
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
499
|
+
protocol: StarburstGalaxyProtocol,
|
|
500
|
+
retry: Retry.Retry,
|
|
501
|
+
telemetry: TELEMETRY,
|
|
502
|
+
span: "RemoveCatalogSchemaTag",
|
|
503
|
+
}));
|
|
504
|
+
|
|
505
|
+
export type RemoveCatalogTagError =
|
|
506
|
+
| BadRequest
|
|
507
|
+
| Forbidden
|
|
508
|
+
| NotFound
|
|
509
|
+
| Conflict
|
|
510
|
+
| StarburstGalaxyOpError;
|
|
511
|
+
/** Revoke a tag applied to a catalog */
|
|
512
|
+
export const removeCatalogTag: API.OperationMethod<
|
|
513
|
+
RemoveCatalogTagRequest,
|
|
514
|
+
RemoveCatalogTagResponse,
|
|
515
|
+
RemoveCatalogTagError,
|
|
516
|
+
StarburstGalaxyOpContext
|
|
517
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
518
|
+
input: __S(20, __c5, 0) as any as S.Schema<RemoveCatalogTagRequest>,
|
|
519
|
+
output: __S(32, __c8, 0) as any as S.Schema<RemoveCatalogTagResponse>,
|
|
520
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
521
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
522
|
+
protocol: StarburstGalaxyProtocol,
|
|
523
|
+
retry: Retry.Retry,
|
|
524
|
+
telemetry: TELEMETRY,
|
|
525
|
+
span: "RemoveCatalogTag",
|
|
526
|
+
}));
|
|
527
|
+
|
|
528
|
+
export type UpdateTagError = BadRequest | Forbidden | NotFound | Conflict | StarburstGalaxyOpError;
|
|
529
|
+
/** Update a tag Only include fields you wish to update. Missing or unrecognized fields are ignored. */
|
|
530
|
+
export const updateTag: API.OperationMethod<
|
|
531
|
+
UpdateTagRequest,
|
|
532
|
+
Tag,
|
|
533
|
+
UpdateTagError,
|
|
534
|
+
StarburstGalaxyOpContext
|
|
535
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
536
|
+
input: __S(24, __c6, 0) as any as S.Schema<UpdateTagRequest>,
|
|
537
|
+
output: __S(52, __c13, 0) as any as S.Schema<Tag>,
|
|
538
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
539
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
540
|
+
protocol: StarburstGalaxyProtocol,
|
|
541
|
+
retry: Retry.Retry,
|
|
542
|
+
telemetry: TELEMETRY,
|
|
543
|
+
span: "UpdateTag",
|
|
544
|
+
}));
|
|
545
|
+
|
|
546
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
547
|
+
function __c0(j: number): any {
|
|
548
|
+
switch (j) {
|
|
549
|
+
case 0:
|
|
550
|
+
return S.suspend(() =>
|
|
551
|
+
S.Struct({
|
|
552
|
+
tagId: S.String.pipe(T.Label()),
|
|
553
|
+
}).pipe(T.Http({ method: "GET", uri: "/public/api/v1/tag/{tagId}", code: 200 })),
|
|
554
|
+
).annotate({ identifier: "GetTagRequest" });
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
function __c1(j: number): any {
|
|
558
|
+
switch (j) {
|
|
559
|
+
case 0:
|
|
560
|
+
return S.suspend(() =>
|
|
561
|
+
S.Struct({
|
|
562
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
563
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
564
|
+
}).pipe(T.Http({ method: "GET", uri: "/public/api/v1/tag", code: 200 })),
|
|
565
|
+
).annotate({ identifier: "ListTagsRequest" });
|
|
566
|
+
case 1:
|
|
567
|
+
return S.Array(__S(52, __c13, 0));
|
|
568
|
+
case 2:
|
|
569
|
+
return S.suspend(() =>
|
|
570
|
+
S.Struct({
|
|
571
|
+
nextPageToken: S.optional(S.String),
|
|
572
|
+
result: __S(5, __c1, 1),
|
|
573
|
+
}),
|
|
574
|
+
).annotate({ identifier: "PaginatedTag" });
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
function __c2(j: number): any {
|
|
578
|
+
switch (j) {
|
|
579
|
+
case 0:
|
|
580
|
+
return S.suspend(() =>
|
|
581
|
+
S.Struct({
|
|
582
|
+
tagId: S.String.pipe(T.Label()),
|
|
583
|
+
catalogId: S.String.pipe(T.Label()),
|
|
584
|
+
schemaId: S.String.pipe(T.Label()),
|
|
585
|
+
tableId: S.String.pipe(T.Label()),
|
|
586
|
+
columnId: S.String.pipe(T.Label()),
|
|
587
|
+
}).pipe(
|
|
588
|
+
T.Http({
|
|
589
|
+
method: "DELETE",
|
|
590
|
+
uri: "/public/api/v1/tag/{tagId}/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/column/{columnId}",
|
|
591
|
+
code: 200,
|
|
592
|
+
}),
|
|
593
|
+
),
|
|
594
|
+
).annotate({ identifier: "RemoveCatalogSchemaTableColumnTagRequest" });
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
function __c3(j: number): any {
|
|
598
|
+
switch (j) {
|
|
599
|
+
case 0:
|
|
600
|
+
return S.suspend(() =>
|
|
601
|
+
S.Struct({
|
|
602
|
+
tagId: S.String.pipe(T.Label()),
|
|
603
|
+
catalogId: S.String.pipe(T.Label()),
|
|
604
|
+
schemaId: S.String.pipe(T.Label()),
|
|
605
|
+
tableId: S.String.pipe(T.Label()),
|
|
606
|
+
}).pipe(
|
|
607
|
+
T.Http({
|
|
608
|
+
method: "DELETE",
|
|
609
|
+
uri: "/public/api/v1/tag/{tagId}/catalog/{catalogId}/schema/{schemaId}/table/{tableId}",
|
|
610
|
+
code: 200,
|
|
611
|
+
}),
|
|
612
|
+
),
|
|
613
|
+
).annotate({ identifier: "RemoveCatalogSchemaTableTagRequest" });
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
function __c4(j: number): any {
|
|
617
|
+
switch (j) {
|
|
618
|
+
case 0:
|
|
619
|
+
return S.suspend(() =>
|
|
620
|
+
S.Struct({
|
|
621
|
+
tagId: S.String.pipe(T.Label()),
|
|
622
|
+
catalogId: S.String.pipe(T.Label()),
|
|
623
|
+
schemaId: S.String.pipe(T.Label()),
|
|
624
|
+
}).pipe(
|
|
625
|
+
T.Http({
|
|
626
|
+
method: "DELETE",
|
|
627
|
+
uri: "/public/api/v1/tag/{tagId}/catalog/{catalogId}/schema/{schemaId}",
|
|
628
|
+
code: 200,
|
|
629
|
+
}),
|
|
630
|
+
),
|
|
631
|
+
).annotate({ identifier: "RemoveCatalogSchemaTagRequest" });
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
function __c5(j: number): any {
|
|
635
|
+
switch (j) {
|
|
636
|
+
case 0:
|
|
637
|
+
return S.suspend(() =>
|
|
638
|
+
S.Struct({
|
|
639
|
+
tagId: S.String.pipe(T.Label()),
|
|
640
|
+
catalogId: S.String.pipe(T.Label()),
|
|
641
|
+
}).pipe(
|
|
642
|
+
T.Http({
|
|
643
|
+
method: "DELETE",
|
|
644
|
+
uri: "/public/api/v1/tag/{tagId}/catalog/{catalogId}",
|
|
645
|
+
code: 200,
|
|
646
|
+
}),
|
|
647
|
+
),
|
|
648
|
+
).annotate({ identifier: "RemoveCatalogTagRequest" });
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
function __c6(j: number): any {
|
|
652
|
+
switch (j) {
|
|
653
|
+
case 0:
|
|
654
|
+
return S.suspend(() =>
|
|
655
|
+
S.Struct({
|
|
656
|
+
tagId: S.String.pipe(T.Label()),
|
|
657
|
+
name: S.optional(S.String),
|
|
658
|
+
color: S.optional(S.String),
|
|
659
|
+
description: S.optional(S.String),
|
|
660
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/public/api/v1/tag/{tagId}", code: 200 })),
|
|
661
|
+
).annotate({ identifier: "UpdateTagRequest" });
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
function __c7(j: number): any {
|
|
665
|
+
switch (j) {
|
|
666
|
+
case 0:
|
|
667
|
+
return S.suspend(() =>
|
|
668
|
+
S.Struct({
|
|
669
|
+
tagId: S.String.pipe(T.Label()),
|
|
670
|
+
catalogId: S.String.pipe(T.Label()),
|
|
671
|
+
schemaId: S.String.pipe(T.Label()),
|
|
672
|
+
tableId: S.String.pipe(T.Label()),
|
|
673
|
+
columnId: S.String.pipe(T.Label()),
|
|
674
|
+
}).pipe(
|
|
675
|
+
T.Http({
|
|
676
|
+
method: "PUT",
|
|
677
|
+
uri: "/public/api/v1/tag/{tagId}/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/column/{columnId}",
|
|
678
|
+
code: 200,
|
|
679
|
+
}),
|
|
680
|
+
),
|
|
681
|
+
).annotate({ identifier: "ApplyCatalogSchemaTableColumnTagRequest" });
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
function __c8(j: number): any {
|
|
685
|
+
switch (j) {
|
|
686
|
+
case 0:
|
|
687
|
+
return S.suspend(() => S.Struct({})).annotate({
|
|
688
|
+
identifier: "ApplyCatalogSchemaTableColumnTagResponse",
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
function __c9(j: number): any {
|
|
693
|
+
switch (j) {
|
|
694
|
+
case 0:
|
|
695
|
+
return S.suspend(() =>
|
|
696
|
+
S.Struct({
|
|
697
|
+
tagId: S.String.pipe(T.Label()),
|
|
698
|
+
catalogId: S.String.pipe(T.Label()),
|
|
699
|
+
schemaId: S.String.pipe(T.Label()),
|
|
700
|
+
tableId: S.String.pipe(T.Label()),
|
|
701
|
+
}).pipe(
|
|
702
|
+
T.Http({
|
|
703
|
+
method: "PUT",
|
|
704
|
+
uri: "/public/api/v1/tag/{tagId}/catalog/{catalogId}/schema/{schemaId}/table/{tableId}",
|
|
705
|
+
code: 200,
|
|
706
|
+
}),
|
|
707
|
+
),
|
|
708
|
+
).annotate({ identifier: "ApplyCatalogSchemaTableTagRequest" });
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
function __c10(j: number): any {
|
|
712
|
+
switch (j) {
|
|
713
|
+
case 0:
|
|
714
|
+
return S.suspend(() =>
|
|
715
|
+
S.Struct({
|
|
716
|
+
tagId: S.String.pipe(T.Label()),
|
|
717
|
+
catalogId: S.String.pipe(T.Label()),
|
|
718
|
+
schemaId: S.String.pipe(T.Label()),
|
|
719
|
+
}).pipe(
|
|
720
|
+
T.Http({
|
|
721
|
+
method: "PUT",
|
|
722
|
+
uri: "/public/api/v1/tag/{tagId}/catalog/{catalogId}/schema/{schemaId}",
|
|
723
|
+
code: 200,
|
|
724
|
+
}),
|
|
725
|
+
),
|
|
726
|
+
).annotate({ identifier: "ApplyCatalogSchemaTagRequest" });
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
function __c11(j: number): any {
|
|
730
|
+
switch (j) {
|
|
731
|
+
case 0:
|
|
732
|
+
return S.suspend(() =>
|
|
733
|
+
S.Struct({
|
|
734
|
+
tagId: S.String.pipe(T.Label()),
|
|
735
|
+
catalogId: S.String.pipe(T.Label()),
|
|
736
|
+
}).pipe(
|
|
737
|
+
T.Http({
|
|
738
|
+
method: "PUT",
|
|
739
|
+
uri: "/public/api/v1/tag/{tagId}/catalog/{catalogId}",
|
|
740
|
+
code: 200,
|
|
741
|
+
}),
|
|
742
|
+
),
|
|
743
|
+
).annotate({ identifier: "ApplyCatalogTagRequest" });
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
function __c12(j: number): any {
|
|
747
|
+
switch (j) {
|
|
748
|
+
case 0:
|
|
749
|
+
return S.suspend(() =>
|
|
750
|
+
S.Struct({
|
|
751
|
+
name: S.String,
|
|
752
|
+
color: S.String,
|
|
753
|
+
description: S.optional(S.String),
|
|
754
|
+
}).pipe(T.Http({ method: "POST", uri: "/public/api/v1/tag", code: 200 })),
|
|
755
|
+
).annotate({ identifier: "CreateTagRequest" });
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
function __c13(j: number): any {
|
|
759
|
+
switch (j) {
|
|
760
|
+
case 0:
|
|
761
|
+
return S.suspend(() =>
|
|
762
|
+
S.Struct({
|
|
763
|
+
syncToken: S.String,
|
|
764
|
+
tagId: S.String,
|
|
765
|
+
name: S.String,
|
|
766
|
+
color: S.String,
|
|
767
|
+
description: S.optional(S.String),
|
|
768
|
+
}),
|
|
769
|
+
).annotate({ identifier: "Tag" });
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
function __c14(j: number): any {
|
|
773
|
+
switch (j) {
|
|
774
|
+
case 0:
|
|
775
|
+
return S.suspend(() =>
|
|
776
|
+
S.Struct({
|
|
777
|
+
tagId: S.String.pipe(T.Label()),
|
|
778
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/public/api/v1/tag/{tagId}", code: 200 })),
|
|
779
|
+
).annotate({ identifier: "DeleteTagRequest" });
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
783
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
784
|
+
return (__s[i] ??= __L.at(f, j));
|
|
785
|
+
}
|