@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,641 @@
|
|
|
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: "DataProductService",
|
|
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
|
+
/** Data Product contacts (read only) */
|
|
74
|
+
export interface UserAndEmailV2 {
|
|
75
|
+
/** User ID */
|
|
76
|
+
userId: string;
|
|
77
|
+
/** User email */
|
|
78
|
+
email: string;
|
|
79
|
+
}
|
|
80
|
+
/** Data Product contacts */
|
|
81
|
+
export type CreateDataProductRequestContactsList = Array<UserAndEmailV2>;
|
|
82
|
+
/** Any links for this Data Product (read only) */
|
|
83
|
+
export interface LinkV2 {
|
|
84
|
+
/** The name of the link */
|
|
85
|
+
name: string;
|
|
86
|
+
/** The link URI */
|
|
87
|
+
uri: string;
|
|
88
|
+
}
|
|
89
|
+
/** Any links for this Data Product */
|
|
90
|
+
export type CreateDataProductRequestLinksList = Array<LinkV2>;
|
|
91
|
+
export type DataDomainReferenceIdReferenceType = "id";
|
|
92
|
+
/** Reference a Data Domain by its id */
|
|
93
|
+
export interface DataDomainReferenceId {
|
|
94
|
+
referenceType: DataDomainReferenceIdReferenceType;
|
|
95
|
+
/** Data Domain ID */
|
|
96
|
+
id: string;
|
|
97
|
+
}
|
|
98
|
+
export type DataDomainReferenceNameReferenceType = "name";
|
|
99
|
+
/** Reference a Data Domain by its name */
|
|
100
|
+
export interface DataDomainReferenceName {
|
|
101
|
+
referenceType: DataDomainReferenceNameReferenceType;
|
|
102
|
+
/** Data Domain name */
|
|
103
|
+
name: string;
|
|
104
|
+
}
|
|
105
|
+
export type DataDomainReferenceDefaultReferenceType = "default";
|
|
106
|
+
/** Reference the account's default Data Domain */
|
|
107
|
+
export interface DataDomainReferenceDefault {
|
|
108
|
+
referenceType: DataDomainReferenceDefaultReferenceType;
|
|
109
|
+
}
|
|
110
|
+
/** Owning Data Domain, identified by either id or name */
|
|
111
|
+
export type DataDomainReference =
|
|
112
|
+
| DataDomainReferenceId
|
|
113
|
+
| DataDomainReferenceName
|
|
114
|
+
| DataDomainReferenceDefault;
|
|
115
|
+
export interface CreateDataProductRequest {
|
|
116
|
+
/** Data Product name */
|
|
117
|
+
name: string;
|
|
118
|
+
/** Short summary of Data Product */
|
|
119
|
+
summary: string;
|
|
120
|
+
/** Long form description of Data Product */
|
|
121
|
+
description?: string | undefined;
|
|
122
|
+
/** Catalog ID */
|
|
123
|
+
catalogId: string;
|
|
124
|
+
/** Name of the data product schema */
|
|
125
|
+
schemaName: string;
|
|
126
|
+
/** Data Product contacts */
|
|
127
|
+
contacts: CreateDataProductRequestContactsList;
|
|
128
|
+
/** Any links for this Data Product */
|
|
129
|
+
links?: CreateDataProductRequestLinksList | undefined;
|
|
130
|
+
/** Default cluster ID for Data Product */
|
|
131
|
+
defaultClusterId?: string | undefined;
|
|
132
|
+
/** Business context for the Data Product, used to guide AI agents */
|
|
133
|
+
businessContext?: string | undefined;
|
|
134
|
+
dataDomain: DataDomainReference;
|
|
135
|
+
}
|
|
136
|
+
/** Set of local regions for the catalog (read only) */
|
|
137
|
+
export type DataProductCatalogDetailsLocalRegionsList = Array<string>;
|
|
138
|
+
/** Catalog details (read only) */
|
|
139
|
+
export interface DataProductCatalogDetails {
|
|
140
|
+
/** Catalog Id (read only) */
|
|
141
|
+
catalogId: string;
|
|
142
|
+
/** Name of the catalog (read only) */
|
|
143
|
+
catalogName: string;
|
|
144
|
+
/** Kind of catalog (read only) */
|
|
145
|
+
catalogKind: string;
|
|
146
|
+
/** Set of local regions for the catalog (read only) */
|
|
147
|
+
localRegions: DataProductCatalogDetailsLocalRegionsList;
|
|
148
|
+
}
|
|
149
|
+
/** Data Product contacts (read only) */
|
|
150
|
+
export type DataProductV2ContactsList = Array<UserAndEmailV2>;
|
|
151
|
+
/** Any links for this Data Product (read only) */
|
|
152
|
+
export type DataProductV2LinksList = Array<LinkV2>;
|
|
153
|
+
/** Created by user. If empty then the user is inactive/deleted. (read only) */
|
|
154
|
+
export type UserAndEmail2 = UserAndEmailV2;
|
|
155
|
+
/** A Galaxy Data Product */
|
|
156
|
+
export interface DataProductV2 {
|
|
157
|
+
/** 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) */
|
|
158
|
+
syncToken: string;
|
|
159
|
+
/** Data Product ID (read only) */
|
|
160
|
+
dataProductId: string;
|
|
161
|
+
/** Data Product name (read only) */
|
|
162
|
+
name: string;
|
|
163
|
+
/** Short summary of Data Product (read only) */
|
|
164
|
+
summary: string;
|
|
165
|
+
/** Long form description of Data Product (read only) */
|
|
166
|
+
description?: string | undefined;
|
|
167
|
+
catalog?: DataProductCatalogDetails | undefined;
|
|
168
|
+
/** Name of the data product schema (read only) */
|
|
169
|
+
schemaName?: string | undefined;
|
|
170
|
+
/** Data Product contacts (read only) */
|
|
171
|
+
contacts: DataProductV2ContactsList;
|
|
172
|
+
/** Any links for this Data Product (read only) */
|
|
173
|
+
links: DataProductV2LinksList;
|
|
174
|
+
/** Default cluster ID for Data Product (read only) */
|
|
175
|
+
defaultClusterId?: string | undefined;
|
|
176
|
+
/** Owning Data Domain ID (read only) */
|
|
177
|
+
dataDomainId: string;
|
|
178
|
+
/** Creation date (read only) */
|
|
179
|
+
createdOn: string;
|
|
180
|
+
/** Modified date (read only) */
|
|
181
|
+
modifiedOn: string;
|
|
182
|
+
createdBy?: UserAndEmailV2 | undefined;
|
|
183
|
+
modifiedBy?: UserAndEmailV2 | undefined;
|
|
184
|
+
/** Business context for the Data Product, used to guide AI agents (read only) */
|
|
185
|
+
businessContext?: string | undefined;
|
|
186
|
+
}
|
|
187
|
+
export interface DeleteDataProductRequest {
|
|
188
|
+
/** A Galaxy Data Product */
|
|
189
|
+
dataProductId: string;
|
|
190
|
+
}
|
|
191
|
+
export interface DeleteDataProductResponse {}
|
|
192
|
+
export interface GetDataProductRequest {
|
|
193
|
+
/** A Galaxy Data Product */
|
|
194
|
+
dataProductId: string;
|
|
195
|
+
}
|
|
196
|
+
export interface GetDataProductDataDomainRequest {
|
|
197
|
+
/** A Galaxy Data Product */
|
|
198
|
+
dataProductId: string;
|
|
199
|
+
}
|
|
200
|
+
/** A data domain id and name */
|
|
201
|
+
export interface DataDomainIdAndName {
|
|
202
|
+
/** Data Domain ID (read only) */
|
|
203
|
+
dataDomainId: string;
|
|
204
|
+
/** Data Domain name (read only) */
|
|
205
|
+
name: string;
|
|
206
|
+
}
|
|
207
|
+
export interface ListDataProductsRequest {
|
|
208
|
+
/** Pagination token */
|
|
209
|
+
pageToken?: string | undefined;
|
|
210
|
+
/** Page size or 0 for default (current maximum is 100) */
|
|
211
|
+
pageSize?: number | undefined;
|
|
212
|
+
}
|
|
213
|
+
/** A page of results. */
|
|
214
|
+
export type PaginatedDataProductV2ResultList = Array<DataProductV2>;
|
|
215
|
+
export interface PaginatedDataProductV2 {
|
|
216
|
+
/** The next page token to use or "" if there are no more pages. */
|
|
217
|
+
nextPageToken?: string | undefined;
|
|
218
|
+
/** A page of results. */
|
|
219
|
+
result: PaginatedDataProductV2ResultList;
|
|
220
|
+
}
|
|
221
|
+
/** Data Product contacts */
|
|
222
|
+
export interface UserAndEmailPatchV2 {
|
|
223
|
+
/** User ID */
|
|
224
|
+
userId?: string | undefined;
|
|
225
|
+
/** User email */
|
|
226
|
+
email?: string | undefined;
|
|
227
|
+
}
|
|
228
|
+
/** Data Product contacts */
|
|
229
|
+
export type UpdateDataProductRequestContactsList = Array<UserAndEmailPatchV2>;
|
|
230
|
+
/** Any links for this Data Product */
|
|
231
|
+
export interface LinkPatchV2 {
|
|
232
|
+
/** The name of the link */
|
|
233
|
+
name?: string | undefined;
|
|
234
|
+
/** The link URI */
|
|
235
|
+
uri?: string | undefined;
|
|
236
|
+
}
|
|
237
|
+
/** Any links for this Data Product */
|
|
238
|
+
export type UpdateDataProductRequestLinksList = Array<LinkPatchV2>;
|
|
239
|
+
export interface UpdateDataProductRequest {
|
|
240
|
+
/** A Galaxy Data Product */
|
|
241
|
+
dataProductId: string;
|
|
242
|
+
/** Data Product name */
|
|
243
|
+
name?: string | undefined;
|
|
244
|
+
/** Short summary of Data Product */
|
|
245
|
+
summary?: string | undefined;
|
|
246
|
+
/** Long form description of Data Product */
|
|
247
|
+
description?: string | undefined;
|
|
248
|
+
/** Data Product contacts */
|
|
249
|
+
contacts?: UpdateDataProductRequestContactsList | undefined;
|
|
250
|
+
/** Any links for this Data Product */
|
|
251
|
+
links?: UpdateDataProductRequestLinksList | undefined;
|
|
252
|
+
/** Default cluster ID for Data Product */
|
|
253
|
+
defaultClusterId?: string | undefined;
|
|
254
|
+
/** Owning Data Domain ID */
|
|
255
|
+
dataDomainId?: string | undefined;
|
|
256
|
+
/** Business context for the Data Product, used to guide AI agents */
|
|
257
|
+
businessContext?: string | undefined;
|
|
258
|
+
}
|
|
259
|
+
/** Any fields/values that are invalid or incorrect */
|
|
260
|
+
export type BadRequestFieldsList = Array<string>;
|
|
261
|
+
/** Invalid request */
|
|
262
|
+
export interface BadRequest2 {
|
|
263
|
+
/** Description of the error */
|
|
264
|
+
message?: string | undefined;
|
|
265
|
+
/** Any fields/values that are invalid or incorrect */
|
|
266
|
+
fields?: BadRequestFieldsList | undefined;
|
|
267
|
+
}
|
|
268
|
+
/** Already exists */
|
|
269
|
+
export interface Exists {
|
|
270
|
+
message?: string | undefined;
|
|
271
|
+
}
|
|
272
|
+
/** Authorization failed */
|
|
273
|
+
export type Forbidden2 = Exists;
|
|
274
|
+
/** Error details (read only) */
|
|
275
|
+
export interface Resourceinfo {
|
|
276
|
+
/** Name of the resource (read only) */
|
|
277
|
+
resourceName: string;
|
|
278
|
+
/** Violation description (read only) */
|
|
279
|
+
description: string;
|
|
280
|
+
}
|
|
281
|
+
/** A specified resource is not found. */
|
|
282
|
+
export interface NotFoundError {
|
|
283
|
+
/** Description of the error */
|
|
284
|
+
message: string;
|
|
285
|
+
detail: Resourceinfo;
|
|
286
|
+
}
|
|
287
|
+
/** Any fields/values that weren't found */
|
|
288
|
+
export type NotFoundFieldsList = Array<string>;
|
|
289
|
+
/** A resource or required component was not found */
|
|
290
|
+
export interface NotFound2 {
|
|
291
|
+
/** Name of the resource */
|
|
292
|
+
message: string;
|
|
293
|
+
/** Violation description */
|
|
294
|
+
description?: string | undefined;
|
|
295
|
+
/** Any fields/values that weren't found */
|
|
296
|
+
fields?: NotFoundFieldsList | undefined;
|
|
297
|
+
}
|
|
298
|
+
export type CreateDataProductError =
|
|
299
|
+
| BadRequest
|
|
300
|
+
| Forbidden
|
|
301
|
+
| NotFound
|
|
302
|
+
| Conflict
|
|
303
|
+
| StarburstGalaxyOpError;
|
|
304
|
+
/** Create a Data Product **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
305
|
+
export const createDataProduct: API.OperationMethod<
|
|
306
|
+
CreateDataProductRequest,
|
|
307
|
+
DataProductV2,
|
|
308
|
+
CreateDataProductError,
|
|
309
|
+
StarburstGalaxyOpContext
|
|
310
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
311
|
+
input: __S(4, __c0, 4) as any as S.Schema<CreateDataProductRequest>,
|
|
312
|
+
output: __S(14, __c1, 6) as any as S.Schema<DataProductV2>,
|
|
313
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
314
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
315
|
+
protocol: StarburstGalaxyProtocol,
|
|
316
|
+
retry: Retry.Retry,
|
|
317
|
+
telemetry: TELEMETRY,
|
|
318
|
+
span: "CreateDataProduct",
|
|
319
|
+
}));
|
|
320
|
+
|
|
321
|
+
export type DeleteDataProductError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
322
|
+
/** Delete a Data Product **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
323
|
+
export const deleteDataProduct: API.OperationMethod<
|
|
324
|
+
DeleteDataProductRequest,
|
|
325
|
+
DeleteDataProductResponse,
|
|
326
|
+
DeleteDataProductError,
|
|
327
|
+
StarburstGalaxyOpContext
|
|
328
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
329
|
+
input: __S(16, __c2, 0) as any as S.Schema<DeleteDataProductRequest>,
|
|
330
|
+
output: __S(17, __c2, 1) as any as S.Schema<DeleteDataProductResponse>,
|
|
331
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
332
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
333
|
+
protocol: StarburstGalaxyProtocol,
|
|
334
|
+
retry: Retry.Retry,
|
|
335
|
+
telemetry: TELEMETRY,
|
|
336
|
+
span: "DeleteDataProduct",
|
|
337
|
+
}));
|
|
338
|
+
|
|
339
|
+
export type GetDataProductError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
340
|
+
/** Get Data Product by id **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
341
|
+
export const getDataProduct: API.OperationMethod<
|
|
342
|
+
GetDataProductRequest,
|
|
343
|
+
DataProductV2,
|
|
344
|
+
GetDataProductError,
|
|
345
|
+
StarburstGalaxyOpContext
|
|
346
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
347
|
+
input: __S(24, __c3, 0) as any as S.Schema<GetDataProductRequest>,
|
|
348
|
+
output: __S(14, __c1, 6) as any as S.Schema<DataProductV2>,
|
|
349
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
350
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
351
|
+
protocol: StarburstGalaxyProtocol,
|
|
352
|
+
retry: Retry.Retry,
|
|
353
|
+
telemetry: TELEMETRY,
|
|
354
|
+
span: "GetDataProduct",
|
|
355
|
+
}));
|
|
356
|
+
|
|
357
|
+
export type GetDataProductDataDomainError =
|
|
358
|
+
| BadRequest
|
|
359
|
+
| Forbidden
|
|
360
|
+
| NotFound
|
|
361
|
+
| StarburstGalaxyOpError;
|
|
362
|
+
/** Get the Data Domain id and name for a Data Product */
|
|
363
|
+
export const getDataProductDataDomain: API.OperationMethod<
|
|
364
|
+
GetDataProductDataDomainRequest,
|
|
365
|
+
DataDomainIdAndName,
|
|
366
|
+
GetDataProductDataDomainError,
|
|
367
|
+
StarburstGalaxyOpContext
|
|
368
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
369
|
+
input: __S(32, __c4, 0) as any as S.Schema<GetDataProductDataDomainRequest>,
|
|
370
|
+
output: __S(33, __c4, 1) as any as S.Schema<DataDomainIdAndName>,
|
|
371
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
372
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
373
|
+
protocol: StarburstGalaxyProtocol,
|
|
374
|
+
retry: Retry.Retry,
|
|
375
|
+
telemetry: TELEMETRY,
|
|
376
|
+
span: "GetDataProductDataDomain",
|
|
377
|
+
}));
|
|
378
|
+
|
|
379
|
+
export type ListDataProductsError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
380
|
+
/** Return a paginated list of Data Products that are visible to the logged in role **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
381
|
+
export const listDataProducts: API.PaginatedOperationMethod<
|
|
382
|
+
ListDataProductsRequest,
|
|
383
|
+
PaginatedDataProductV2,
|
|
384
|
+
ListDataProductsError,
|
|
385
|
+
StarburstGalaxyOpContext,
|
|
386
|
+
DataProductV2
|
|
387
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
388
|
+
() => ({
|
|
389
|
+
input: __S(40, __c5, 0) as any as S.Schema<ListDataProductsRequest>,
|
|
390
|
+
output: __S(42, __c5, 2) as any as S.Schema<PaginatedDataProductV2>,
|
|
391
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
392
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
393
|
+
protocol: StarburstGalaxyProtocol,
|
|
394
|
+
retry: Retry.Retry,
|
|
395
|
+
telemetry: TELEMETRY,
|
|
396
|
+
span: "ListDataProducts",
|
|
397
|
+
pagination: {
|
|
398
|
+
mode: "token",
|
|
399
|
+
inputToken: "pageToken",
|
|
400
|
+
outputToken: "nextPageToken",
|
|
401
|
+
items: "result",
|
|
402
|
+
pageSize: "pageSize",
|
|
403
|
+
} as const,
|
|
404
|
+
}),
|
|
405
|
+
paginateToken,
|
|
406
|
+
) as any;
|
|
407
|
+
|
|
408
|
+
export type UpdateDataProductError =
|
|
409
|
+
| BadRequest
|
|
410
|
+
| Forbidden
|
|
411
|
+
| NotFound
|
|
412
|
+
| Conflict
|
|
413
|
+
| StarburstGalaxyOpError;
|
|
414
|
+
/** Update a Data Product **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. */
|
|
415
|
+
export const updateDataProduct: API.OperationMethod<
|
|
416
|
+
UpdateDataProductRequest,
|
|
417
|
+
DataProductV2,
|
|
418
|
+
UpdateDataProductError,
|
|
419
|
+
StarburstGalaxyOpContext
|
|
420
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
421
|
+
input: __S(52, __c6, 4) as any as S.Schema<UpdateDataProductRequest>,
|
|
422
|
+
output: __S(14, __c1, 6) as any as S.Schema<DataProductV2>,
|
|
423
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
424
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
425
|
+
protocol: StarburstGalaxyProtocol,
|
|
426
|
+
retry: Retry.Retry,
|
|
427
|
+
telemetry: TELEMETRY,
|
|
428
|
+
span: "UpdateDataProduct",
|
|
429
|
+
}));
|
|
430
|
+
|
|
431
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
432
|
+
function __c0(j: number): any {
|
|
433
|
+
switch (j) {
|
|
434
|
+
case 0:
|
|
435
|
+
return S.suspend(() =>
|
|
436
|
+
S.Struct({
|
|
437
|
+
referenceType: S.String,
|
|
438
|
+
id: S.String,
|
|
439
|
+
}),
|
|
440
|
+
).annotate({ identifier: "DataDomainReferenceId" });
|
|
441
|
+
case 1:
|
|
442
|
+
return S.suspend(() =>
|
|
443
|
+
S.Struct({
|
|
444
|
+
referenceType: S.String,
|
|
445
|
+
name: S.String,
|
|
446
|
+
}),
|
|
447
|
+
).annotate({ identifier: "DataDomainReferenceName" });
|
|
448
|
+
case 2:
|
|
449
|
+
return S.suspend(() =>
|
|
450
|
+
S.Struct({
|
|
451
|
+
referenceType: S.String,
|
|
452
|
+
}),
|
|
453
|
+
).annotate({ identifier: "DataDomainReferenceDefault" });
|
|
454
|
+
case 3:
|
|
455
|
+
return S.Union([__S(0, __c0, 0), __S(1, __c0, 1), __S(2, __c0, 2)]);
|
|
456
|
+
case 4:
|
|
457
|
+
return S.suspend(() =>
|
|
458
|
+
S.Struct({
|
|
459
|
+
name: S.String,
|
|
460
|
+
summary: S.String,
|
|
461
|
+
description: S.optional(S.String),
|
|
462
|
+
catalogId: S.String,
|
|
463
|
+
schemaName: S.String,
|
|
464
|
+
contacts: __S(9, __c1, 1),
|
|
465
|
+
links: S.optional(__S(11, __c1, 3)),
|
|
466
|
+
defaultClusterId: S.optional(S.String),
|
|
467
|
+
businessContext: S.optional(S.String),
|
|
468
|
+
dataDomain: __S(3, __c0, 3),
|
|
469
|
+
}).pipe(T.Http({ method: "POST", uri: "/public/api/v2/dataProduct", code: 200 })),
|
|
470
|
+
).annotate({ identifier: "CreateDataProductRequest" });
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function __c1(j: number): any {
|
|
474
|
+
switch (j) {
|
|
475
|
+
case 0:
|
|
476
|
+
return S.suspend(() =>
|
|
477
|
+
S.Struct({
|
|
478
|
+
userId: S.String,
|
|
479
|
+
email: S.String,
|
|
480
|
+
}),
|
|
481
|
+
).annotate({ identifier: "UserAndEmailV2" });
|
|
482
|
+
case 1:
|
|
483
|
+
return S.Array(__S(8, __c1, 0));
|
|
484
|
+
case 2:
|
|
485
|
+
return S.suspend(() =>
|
|
486
|
+
S.Struct({
|
|
487
|
+
name: S.String,
|
|
488
|
+
uri: S.String,
|
|
489
|
+
}),
|
|
490
|
+
).annotate({ identifier: "LinkV2" });
|
|
491
|
+
case 3:
|
|
492
|
+
return S.Array(__S(10, __c1, 2));
|
|
493
|
+
case 4:
|
|
494
|
+
return S.Array(S.String);
|
|
495
|
+
case 5:
|
|
496
|
+
return S.suspend(() =>
|
|
497
|
+
S.Struct({
|
|
498
|
+
catalogId: S.String,
|
|
499
|
+
catalogName: S.String,
|
|
500
|
+
catalogKind: S.String,
|
|
501
|
+
localRegions: __S(12, __c1, 4),
|
|
502
|
+
}),
|
|
503
|
+
).annotate({ identifier: "DataProductCatalogDetails" });
|
|
504
|
+
case 6:
|
|
505
|
+
return S.suspend(() =>
|
|
506
|
+
S.Struct({
|
|
507
|
+
syncToken: S.String,
|
|
508
|
+
dataProductId: S.String,
|
|
509
|
+
name: S.String,
|
|
510
|
+
summary: S.String,
|
|
511
|
+
description: S.optional(S.String),
|
|
512
|
+
catalog: S.optional(__S(13, __c1, 5)),
|
|
513
|
+
schemaName: S.optional(S.String),
|
|
514
|
+
contacts: __S(9, __c1, 1),
|
|
515
|
+
links: __S(11, __c1, 3),
|
|
516
|
+
defaultClusterId: S.optional(S.String),
|
|
517
|
+
dataDomainId: S.String,
|
|
518
|
+
createdOn: S.String,
|
|
519
|
+
modifiedOn: S.String,
|
|
520
|
+
createdBy: S.optional(__S(8, __c1, 0)),
|
|
521
|
+
modifiedBy: S.optional(__S(8, __c1, 0)),
|
|
522
|
+
businessContext: S.optional(S.String),
|
|
523
|
+
}),
|
|
524
|
+
).annotate({ identifier: "DataProductV2" });
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
function __c2(j: number): any {
|
|
528
|
+
switch (j) {
|
|
529
|
+
case 0:
|
|
530
|
+
return S.suspend(() =>
|
|
531
|
+
S.Struct({
|
|
532
|
+
dataProductId: S.String.pipe(T.Label()),
|
|
533
|
+
}).pipe(
|
|
534
|
+
T.Http({
|
|
535
|
+
method: "DELETE",
|
|
536
|
+
uri: "/public/api/v2/dataProduct/{dataProductId}",
|
|
537
|
+
code: 200,
|
|
538
|
+
}),
|
|
539
|
+
),
|
|
540
|
+
).annotate({ identifier: "DeleteDataProductRequest" });
|
|
541
|
+
case 1:
|
|
542
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteDataProductResponse" });
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
function __c3(j: number): any {
|
|
546
|
+
switch (j) {
|
|
547
|
+
case 0:
|
|
548
|
+
return S.suspend(() =>
|
|
549
|
+
S.Struct({
|
|
550
|
+
dataProductId: S.String.pipe(T.Label()),
|
|
551
|
+
}).pipe(
|
|
552
|
+
T.Http({ method: "GET", uri: "/public/api/v2/dataProduct/{dataProductId}", code: 200 }),
|
|
553
|
+
),
|
|
554
|
+
).annotate({ identifier: "GetDataProductRequest" });
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
function __c4(j: number): any {
|
|
558
|
+
switch (j) {
|
|
559
|
+
case 0:
|
|
560
|
+
return S.suspend(() =>
|
|
561
|
+
S.Struct({
|
|
562
|
+
dataProductId: S.String.pipe(T.Label()),
|
|
563
|
+
}).pipe(
|
|
564
|
+
T.Http({
|
|
565
|
+
method: "GET",
|
|
566
|
+
uri: "/public/api/v1/dataProduct/{dataProductId}/dataDomain",
|
|
567
|
+
code: 200,
|
|
568
|
+
}),
|
|
569
|
+
),
|
|
570
|
+
).annotate({ identifier: "GetDataProductDataDomainRequest" });
|
|
571
|
+
case 1:
|
|
572
|
+
return S.suspend(() =>
|
|
573
|
+
S.Struct({
|
|
574
|
+
dataDomainId: S.String,
|
|
575
|
+
name: S.String,
|
|
576
|
+
}),
|
|
577
|
+
).annotate({ identifier: "DataDomainIdAndName" });
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
function __c5(j: number): any {
|
|
581
|
+
switch (j) {
|
|
582
|
+
case 0:
|
|
583
|
+
return S.suspend(() =>
|
|
584
|
+
S.Struct({
|
|
585
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
586
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
587
|
+
}).pipe(T.Http({ method: "GET", uri: "/public/api/v2/dataProduct", code: 200 })),
|
|
588
|
+
).annotate({ identifier: "ListDataProductsRequest" });
|
|
589
|
+
case 1:
|
|
590
|
+
return S.Array(__S(14, __c1, 6));
|
|
591
|
+
case 2:
|
|
592
|
+
return S.suspend(() =>
|
|
593
|
+
S.Struct({
|
|
594
|
+
nextPageToken: S.optional(S.String),
|
|
595
|
+
result: __S(41, __c5, 1),
|
|
596
|
+
}),
|
|
597
|
+
).annotate({ identifier: "PaginatedDataProductV2" });
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
function __c6(j: number): any {
|
|
601
|
+
switch (j) {
|
|
602
|
+
case 0:
|
|
603
|
+
return S.suspend(() =>
|
|
604
|
+
S.Struct({
|
|
605
|
+
userId: S.optional(S.String),
|
|
606
|
+
email: S.optional(S.String),
|
|
607
|
+
}),
|
|
608
|
+
).annotate({ identifier: "UserAndEmailPatchV2" });
|
|
609
|
+
case 1:
|
|
610
|
+
return S.Array(__S(48, __c6, 0));
|
|
611
|
+
case 2:
|
|
612
|
+
return S.suspend(() =>
|
|
613
|
+
S.Struct({
|
|
614
|
+
name: S.optional(S.String),
|
|
615
|
+
uri: S.optional(S.String),
|
|
616
|
+
}),
|
|
617
|
+
).annotate({ identifier: "LinkPatchV2" });
|
|
618
|
+
case 3:
|
|
619
|
+
return S.Array(__S(50, __c6, 2));
|
|
620
|
+
case 4:
|
|
621
|
+
return S.suspend(() =>
|
|
622
|
+
S.Struct({
|
|
623
|
+
dataProductId: S.String.pipe(T.Label()),
|
|
624
|
+
name: S.optional(S.String),
|
|
625
|
+
summary: S.optional(S.String),
|
|
626
|
+
description: S.optional(S.String),
|
|
627
|
+
contacts: S.optional(__S(49, __c6, 1)),
|
|
628
|
+
links: S.optional(__S(51, __c6, 3)),
|
|
629
|
+
defaultClusterId: S.optional(S.String),
|
|
630
|
+
dataDomainId: S.optional(S.String),
|
|
631
|
+
businessContext: S.optional(S.String),
|
|
632
|
+
}).pipe(
|
|
633
|
+
T.Http({ method: "PATCH", uri: "/public/api/v2/dataProduct/{dataProductId}", code: 200 }),
|
|
634
|
+
),
|
|
635
|
+
).annotate({ identifier: "UpdateDataProductRequest" });
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
639
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
640
|
+
return (__s[i] ??= __L.at(f, j));
|
|
641
|
+
}
|