@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,223 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import { type StarburstGalaxyOpError, type StarburstGalaxyOpContext } from "../protocol.ts";
|
|
4
|
+
export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
|
|
5
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
6
|
+
readonly message: any;
|
|
7
|
+
readonly body: any;
|
|
8
|
+
readonly headers: any;
|
|
9
|
+
}> & (new (...args: any[]) => {
|
|
10
|
+
"@distilled.cloud/error/categories": {
|
|
11
|
+
BadRequestError: true;
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
15
|
+
}
|
|
16
|
+
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
17
|
+
readonly message: any;
|
|
18
|
+
readonly body: any;
|
|
19
|
+
readonly headers: any;
|
|
20
|
+
}> & (new (...args: any[]) => {
|
|
21
|
+
"@distilled.cloud/error/categories": {
|
|
22
|
+
ConflictError: true;
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
26
|
+
}
|
|
27
|
+
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
28
|
+
readonly message: any;
|
|
29
|
+
readonly body: any;
|
|
30
|
+
readonly headers: any;
|
|
31
|
+
}> & (new (...args: any[]) => {
|
|
32
|
+
"@distilled.cloud/error/categories": {
|
|
33
|
+
AuthError: true;
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
37
|
+
}
|
|
38
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
39
|
+
readonly message: any;
|
|
40
|
+
readonly body: any;
|
|
41
|
+
readonly headers: any;
|
|
42
|
+
}> & (new (...args: any[]) => {
|
|
43
|
+
"@distilled.cloud/error/categories": {
|
|
44
|
+
BadRequestError: true;
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
48
|
+
}
|
|
49
|
+
declare const PreconditionFailed_base: S.TaggedErrorClass<"PreconditionFailed", {
|
|
50
|
+
readonly message: any;
|
|
51
|
+
readonly body: any;
|
|
52
|
+
readonly headers: any;
|
|
53
|
+
}>;
|
|
54
|
+
export declare class PreconditionFailed extends /*@__PURE__*/ PreconditionFailed_base {
|
|
55
|
+
}
|
|
56
|
+
export interface CreateDataDomainRequest {
|
|
57
|
+
/** Data Domain name */
|
|
58
|
+
name: string;
|
|
59
|
+
/** Long form description of the Data Domain */
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
/** Data Domain contact */
|
|
62
|
+
contactUserId?: string | undefined;
|
|
63
|
+
/** Owning role ID */
|
|
64
|
+
roleId?: string | undefined;
|
|
65
|
+
}
|
|
66
|
+
/** Created by user. If empty then the user is inactive/deleted. (read only) */
|
|
67
|
+
export interface UserAndEmail2 {
|
|
68
|
+
/** User ID */
|
|
69
|
+
userId: string;
|
|
70
|
+
/** User email */
|
|
71
|
+
email: string;
|
|
72
|
+
}
|
|
73
|
+
/** Data products assigned to this domain (read only) */
|
|
74
|
+
export interface DataProductIdAndName {
|
|
75
|
+
/** Data Product ID (read only) */
|
|
76
|
+
dataProductId: string;
|
|
77
|
+
/** Data Product name (read only) */
|
|
78
|
+
name: string;
|
|
79
|
+
}
|
|
80
|
+
/** Data products assigned to this domain (read only) */
|
|
81
|
+
export type DataDomainAssignedDataProductsList = Array<DataProductIdAndName>;
|
|
82
|
+
/** Roles assigned to this group (read only) */
|
|
83
|
+
export interface RoleWithName {
|
|
84
|
+
/** Role ID (read only) */
|
|
85
|
+
roleId: string;
|
|
86
|
+
/** Role name (read only) */
|
|
87
|
+
roleName: string;
|
|
88
|
+
}
|
|
89
|
+
/** A Galaxy Data Domain */
|
|
90
|
+
export interface DataDomain {
|
|
91
|
+
/** 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) */
|
|
92
|
+
syncToken: string;
|
|
93
|
+
/** Data Domain ID (read only) */
|
|
94
|
+
dataDomainId: string;
|
|
95
|
+
/** Data Domain name (read only) */
|
|
96
|
+
name: string;
|
|
97
|
+
/** Description of the Data Domain (read only) */
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
contact?: UserAndEmail2 | undefined;
|
|
100
|
+
/** True if this is the account's default domain (read only) */
|
|
101
|
+
isDefault: boolean;
|
|
102
|
+
/** Data products assigned to this domain (read only) */
|
|
103
|
+
assignedDataProducts: DataDomainAssignedDataProductsList;
|
|
104
|
+
owningRole: RoleWithName;
|
|
105
|
+
/** Creation date (read only) */
|
|
106
|
+
createdOn: string;
|
|
107
|
+
/** Modified date (read only) */
|
|
108
|
+
modifiedOn: string;
|
|
109
|
+
createdBy?: UserAndEmail2 | undefined;
|
|
110
|
+
modifiedBy?: UserAndEmail2 | undefined;
|
|
111
|
+
}
|
|
112
|
+
export interface DeleteDataDomainRequest {
|
|
113
|
+
/** - A Galaxy Data Domain - 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 `=`) */
|
|
114
|
+
dataDomainId: string;
|
|
115
|
+
}
|
|
116
|
+
export interface DeleteDataDomainResponse {
|
|
117
|
+
}
|
|
118
|
+
export interface GetDataDomainRequest {
|
|
119
|
+
/** - A Galaxy Data Domain - 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 `=`) */
|
|
120
|
+
dataDomainId: string;
|
|
121
|
+
}
|
|
122
|
+
export interface ListDataDomainsRequest {
|
|
123
|
+
/** Pagination token */
|
|
124
|
+
pageToken?: string | undefined;
|
|
125
|
+
/** Page size or 0 for default (current maximum is 100) */
|
|
126
|
+
pageSize?: number | undefined;
|
|
127
|
+
}
|
|
128
|
+
/** A page of results. */
|
|
129
|
+
export type PaginatedDataDomainResultList = Array<DataDomain>;
|
|
130
|
+
export interface PaginatedDataDomain {
|
|
131
|
+
/** The next page token to use or "" if there are no more pages. */
|
|
132
|
+
nextPageToken?: string | undefined;
|
|
133
|
+
/** A page of results. */
|
|
134
|
+
result: PaginatedDataDomainResultList;
|
|
135
|
+
}
|
|
136
|
+
/** Data product IDs to reassign */
|
|
137
|
+
export type ReassignDataDomainDataProductsRequestDataProductIdsList = Array<string>;
|
|
138
|
+
export interface ReassignDataDomainDataProductsRequest {
|
|
139
|
+
/** - A Galaxy Data Domain - 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 `=`) */
|
|
140
|
+
dataDomainId: string;
|
|
141
|
+
/** Data product IDs to reassign */
|
|
142
|
+
dataProductIds?: ReassignDataDomainDataProductsRequestDataProductIdsList | undefined;
|
|
143
|
+
}
|
|
144
|
+
export interface ReassignDataDomainDataProductsResponse {
|
|
145
|
+
}
|
|
146
|
+
export interface UpdateDataDomainRequest {
|
|
147
|
+
/** - A Galaxy Data Domain - 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 `=`) */
|
|
148
|
+
dataDomainId: string;
|
|
149
|
+
/** Long form description of the Data Domain */
|
|
150
|
+
description?: string | undefined;
|
|
151
|
+
/** Data Domain contact */
|
|
152
|
+
contactUserId?: string | undefined;
|
|
153
|
+
/** Owning role ID */
|
|
154
|
+
roleId?: string | undefined;
|
|
155
|
+
}
|
|
156
|
+
/** Any fields/values that are invalid or incorrect */
|
|
157
|
+
export type BadRequestFieldsList = Array<string>;
|
|
158
|
+
/** Invalid request */
|
|
159
|
+
export interface BadRequest2 {
|
|
160
|
+
/** Description of the error */
|
|
161
|
+
message?: string | undefined;
|
|
162
|
+
/** Any fields/values that are invalid or incorrect */
|
|
163
|
+
fields?: BadRequestFieldsList | undefined;
|
|
164
|
+
}
|
|
165
|
+
/** Already exists */
|
|
166
|
+
export interface Exists {
|
|
167
|
+
message?: string | undefined;
|
|
168
|
+
}
|
|
169
|
+
/** Authorization failed */
|
|
170
|
+
export type Forbidden2 = Exists;
|
|
171
|
+
/** Any fields/values that weren't found */
|
|
172
|
+
export type NotFoundFieldsList = Array<string>;
|
|
173
|
+
/** A resource or required component was not found */
|
|
174
|
+
export interface NotFound2 {
|
|
175
|
+
/** Name of the resource */
|
|
176
|
+
message: string;
|
|
177
|
+
/** Violation description */
|
|
178
|
+
description?: string | undefined;
|
|
179
|
+
/** Any fields/values that weren't found */
|
|
180
|
+
fields?: NotFoundFieldsList | undefined;
|
|
181
|
+
}
|
|
182
|
+
export type TypeEnum = "TermsOfService";
|
|
183
|
+
/** Field violations (read only) */
|
|
184
|
+
export interface Violation {
|
|
185
|
+
/** Violation type */
|
|
186
|
+
type: TypeEnum;
|
|
187
|
+
/** Violation subject */
|
|
188
|
+
subject: string;
|
|
189
|
+
/** Violation description */
|
|
190
|
+
description: string;
|
|
191
|
+
}
|
|
192
|
+
/** Field violations (read only) */
|
|
193
|
+
export type PreconditionfailureViolationsList = Array<Violation>;
|
|
194
|
+
/** Error details (read only) */
|
|
195
|
+
export interface Preconditionfailure {
|
|
196
|
+
/** Field violations (read only) */
|
|
197
|
+
violations: PreconditionfailureViolationsList;
|
|
198
|
+
}
|
|
199
|
+
/** Request can not be executed in the current system state, such as deleting a non-empty directory. */
|
|
200
|
+
export interface FailedPrecondition {
|
|
201
|
+
/** Description of the error */
|
|
202
|
+
message: string;
|
|
203
|
+
detail: Preconditionfailure;
|
|
204
|
+
}
|
|
205
|
+
export type CreateDataDomainError = BadRequest | Forbidden | Conflict | StarburstGalaxyOpError;
|
|
206
|
+
/** Create a Data Domain **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
207
|
+
export declare const createDataDomain: API.OperationMethod<CreateDataDomainRequest, DataDomain, CreateDataDomainError, StarburstGalaxyOpContext>;
|
|
208
|
+
export type DeleteDataDomainError = BadRequest | Forbidden | NotFound | PreconditionFailed | StarburstGalaxyOpError;
|
|
209
|
+
/** Delete a Data Domain **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
210
|
+
export declare const deleteDataDomain: API.OperationMethod<DeleteDataDomainRequest, DeleteDataDomainResponse, DeleteDataDomainError, StarburstGalaxyOpContext>;
|
|
211
|
+
export type GetDataDomainError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
212
|
+
/** Get Data Domain by id **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
213
|
+
export declare const getDataDomain: API.OperationMethod<GetDataDomainRequest, DataDomain, GetDataDomainError, StarburstGalaxyOpContext>;
|
|
214
|
+
export type ListDataDomainsError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
215
|
+
/** Return a paginated list of Data Domains **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
216
|
+
export declare const listDataDomains: API.PaginatedOperationMethod<ListDataDomainsRequest, PaginatedDataDomain, ListDataDomainsError, StarburstGalaxyOpContext, DataDomain>;
|
|
217
|
+
export type ReassignDataDomainDataProductsError = BadRequest | Forbidden | NotFound | Conflict | StarburstGalaxyOpError;
|
|
218
|
+
/** Reassign a set of data products into this data domain **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. */
|
|
219
|
+
export declare const reassignDataDomainDataProducts: API.OperationMethod<ReassignDataDomainDataProductsRequest, ReassignDataDomainDataProductsResponse, ReassignDataDomainDataProductsError, StarburstGalaxyOpContext>;
|
|
220
|
+
export type UpdateDataDomainError = BadRequest | Forbidden | NotFound | Conflict | StarburstGalaxyOpError;
|
|
221
|
+
/** Update a Data Domain **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. */
|
|
222
|
+
export declare const updateDataDomain: API.OperationMethod<UpdateDataDomainRequest, DataDomain, UpdateDataDomainError, StarburstGalaxyOpContext>;
|
|
223
|
+
//# sourceMappingURL=data_domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data_domain.d.ts","sources":["../../src/services/data_domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAIvD,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC9B,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC;;;;;;;;;;AAejE,qBAAa,UACX,SAAQ,aAAa,CAAC,eAOrB;CAAG;;;;;;;;;;AAEN,qBAAa,QACX,SAAQ,aAAa,CAAC,aAOrB;CAAG;;;;;;;;;;AAEN,qBAAa,SACX,SAAQ,aAAa,CAAC,cAOrB;CAAG;;;;;;;;;;AAEN,qBAAa,QACX,SAAQ,aAAa,CAAC,aAOrB;CAAG;;;;;;AAEN,qBAAa,kBACX,SAAQ,aAAa,CAAC,uBAOrB;CAAG;AAEN,MAAM,WAAW,uBAAuB;IACtC,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,0BAA0B;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAA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arburstGalaxyServiceErrors as s,f as c,kd as l,l as u,ld as d,m as f,n as p,nd as m,o as h,od as g,pagination$paginateToken as _,protocol$StarburstGalaxyProtocol as v,qd as y,retry$Retry as b,td as x,traits$Http as S,traits$Label as C,traits$Query as w,traits$applyErrorMatchers as T,vd as E,ya as D,za as O}from"../_bundle/sdk.js";const k={system:`starburst-galaxy-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`StarburstGalaxy`,service:`DataDomainService`,labels:`starburst_galaxy`,propagate:`w3c`};const A=/*@__PURE__*/ c(function BadRequest(t){return f(t,new.target,[`$7($6()("BadRequest",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:400}])`,[E,O,m,x,d,e,y,T]])});const j=/*@__PURE__*/ c(function Conflict(t){return f(t,new.target,[`$7($6()("Conflict",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:409}])`,[E,n,m,x,d,e,y,T]])});const M=/*@__PURE__*/ c(function Forbidden(t){return f(t,new.target,[`$7($6()("Forbidden",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:403}])`,[E,D,m,x,d,e,y,T]])});const N=/*@__PURE__*/ c(function NotFound(t){return f(t,new.target,[`$7($6()("NotFound",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:404}])`,[E,O,m,x,d,e,y,T]])});const P=/*@__PURE__*/ c(function PreconditionFailed(t){return f(t,new.target,[`$6($5()("PreconditionFailed",{message:$1,body:$2,headers:$4($3($1,$1))}),[{status:412}])`,[E,m,x,d,e,y,T]])});const F=/*@__PURE__*/ p(n=>n===r?u(`CreateDataDomain`,`{input:#1,output:#6:4,errors:[$7,$8,$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>2)@"%Request";$4({name:$2,description:$3($2),contactUserId:$3($2),roleId:$3($2)}).pipe($1({method:"POST",uri:"/public/api/v1/dataDomain",code:200}))`,[E,S,m,e,g,t,__d0,A,M,j,s,v,b,k]):a(F,n));const I=/*@__PURE__*/ p(e=>e===r?u(`DeleteDataDomain`,`{input:#1,output:#6:0,errors:[$7,$8,$9,$10],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$5(>2)@"%Request";$4({dataDomainId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/public/api/v1/dataDomain/{dataDomainId}",code:200}))`,[E,S,C,m,g,t,__d1,A,M,N,P,s,v,b,k]):a(I,e));const L=/*@__PURE__*/ p(e=>e===r?u(`GetDataDomain`,`{input:#1,output:#6:4,errors:[$7,$8,$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>2)@"%Request";$4({dataDomainId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/public/api/v1/dataDomain/{dataDomainId}",code:200}))`,[E,S,C,m,g,t,__d0,A,M,N,s,v,b,k]):a(L,e));const R=/*@__PURE__*/ h(n=>n===r?u(`ListDataDomains`,`{input:#1,output:#3,errors:[$10,$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%",pagination:{mode:"token",inputToken:"pageToken",outputToken:"nextPageToken",items:"result",pageSize:"pageSize"},strategy:$17};$7(>4)@"%Request";$9(#8:4);$7(>5)@"PaginatedDataDomain";$6({pageToken:$4($3.pipe($2())),pageSize:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/public/api/v1/dataDomain",code:200}));$6({nextPageToken:$4($3),result:#2})`,[E,S,w,m,e,l,g,t,__d0,i,A,M,N,s,v,b,k,_]):a(R,n));const z=/*@__PURE__*/ p(n=>n===r?u(`ReassignDataDomainDataProducts`,`{input:#2,output:#8:0,errors:[$9,$10,$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$2($1);$7(>3)@"%Request";$6({dataDomainId:$1.pipe($4()),dataProductIds:$5(#1)}).pipe($3({method:"PATCH",uri:"/public/api/v1/dataDomain/{dataDomainId}/dataProductsReassignment",code:200}))`,[E,m,i,S,C,e,g,t,__d1,A,M,N,j,s,v,b,k]):a(z,n));const B=/*@__PURE__*/ p(n=>n===r?u(`UpdateDataDomain`,`{input:#1,output:#7:4,errors:[$8,$9,$10,$11],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$6(>2)@"%Request";$5({dataDomainId:$3.pipe($2()),description:$4($3),contactUserId:$4($3),roleId:$4($3)}).pipe($1({method:"PATCH",uri:"/public/api/v1/dataDomain/{dataDomainId}",code:200}))`,[E,S,C,m,e,g,t,__d0,A,M,N,j,s,v,b,k]):a(B,n));function __d0(){return[`$3(>5)@"UserAndEmail2";$3(>6)@"DataProductIdAndName";$4(#1);$3(>7)@"RoleWithName";$3(>8)@"DataDomain";$2({userId:$1,email:$1});$2({dataProductId:$1,name:$1});$2({roleId:$1,roleName:$1});$2({syncToken:$1,dataDomainId:$1,name:$1,description:$5($1),contact:$5(#0),isDefault:$6,assignedDataProducts:#2,owningRole:#3,createdOn:$1,modifiedOn:$1,createdBy:$5(#0),modifiedBy:$5(#0)})`,[E,m,g,t,i,e,o]]}function __d1(){return[`$2(>1)@"DeleteDataDomainResponse";$1({})`,[E,g,t]]}export{A as BadRequest,j as Conflict,M as Forbidden,N as NotFound,P as PreconditionFailed,F as createDataDomain,I as deleteDataDomain,L as getDataDomain,R as listDataDomains,z as reassignDataDomainDataProducts,B as updateDataDomain};
|
|
2
|
+
//# sourceMappingURL=data_domain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data_domain.js","names":["API.newError","__L.at","C.withBadRequestError","S.String","S.Unknown","S.Record","S.optional","S.TaggedError","T.applyErrorMatchers","C.withConflictError","C.withAuthError","API.D","API.named","T.Http","S.Struct","S.suspend","Retry.Retry","API.call","T.Label","T.Query","S.Number","S.Array","S.Boolean","optional","suspend","withConflictError","D","Array","call","Boolean","StarburstGalaxyServiceErrors","error","Number","named","Record","newError","op","String","opPaginated","Struct","paginateToken","StarburstGalaxyProtocol","TaggedError","Retry","Unknown","Http","Label","Query","applyErrorMatchers","at","withAuthError","withBadRequestError","TELEMETRY","BadRequest","i","Conflict","Forbidden","NotFound","PreconditionFailed","createDataDomain","deleteDataDomain","getDataDomain","listDataDomains","reassignDataDomainDataProducts","updateDataDomain"],"sources":["../../src/services/data_domain.ts"],"mappings":"kZAkBA,MAAMoD,EAAY,CAChB,OAAQ,uBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,kBACR,QAAS,oBACT,OAAQ,mBACR,UAAW,KACb,EAEA,MAAaC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAOrD,EAAasD,EAAG,WAAY,CAAC,4FAA6F,CAACrD,EAAQC,EAAuBC,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CACnP,CAAC,EAED,MAAa+C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOvD,EAAasD,EAAG,WAAY,CAAC,0FAA2F,CAACrD,EAAQQ,EAAqBN,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CAC/O,CAAC,EAED,MAAagD,EAA+B,gBAAU,SAAS,UAAU,EAAa,CACpF,OAAOxD,EAAasD,EAAG,WAAY,CAAC,2FAA4F,CAACrD,EAAQS,EAAiBP,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CAC5O,CAAC,EAED,MAAaiD,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOzD,EAAasD,EAAG,WAAY,CAAC,0FAA2F,CAACrD,EAAQC,EAAuBC,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CACjP,CAAC,EAED,MAAakD,EAAwC,gBAAU,SAAS,mBAAmB,EAAa,CACtG,O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,EAAYG,EAAWC,EAAUF,EAAUzB,EAA8BW,EAAyBzB,EAAaoC,CAAS,CAAC,EAAInC,EAAS8C,EAAgCT,CAAC,CAAC,EAS9oB,MAAaU,EAKK,gBAAQ,GAAgBV,IAAM3C,EAAQC,EAAU,mBAAoB,4SAA6S,CAACX,EAAQY,EAAQK,EAASf,EAAUG,EAAYQ,EAAUC,EAAW,KAAMsC,EAAYG,EAAWC,EAAUF,EAAUzB,EAA8BW,EAAyBzB,EAAaoC,CAAS,CAAC,EAAInC,EAAS+C,EAAkBV,CAAC,CAAC,EAMxmB,SAAS,MAAY,CACnB,MAAO,CAAC,0XAA2X,CAACrD,EAAQE,EAAUW,EAAUC,EAAWM,EAASf,EAAYgB,CAAS,CAAC,CAC5c,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,2CAA4C,CAACrB,EAAQa,EAAUC,CAAS,CAAC,CACnF"}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import { type StarburstGalaxyOpError, type StarburstGalaxyOpContext } from "../protocol.ts";
|
|
4
|
+
export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
|
|
5
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
6
|
+
readonly message: any;
|
|
7
|
+
readonly body: any;
|
|
8
|
+
readonly headers: any;
|
|
9
|
+
}> & (new (...args: any[]) => {
|
|
10
|
+
"@distilled.cloud/error/categories": {
|
|
11
|
+
BadRequestError: true;
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
15
|
+
}
|
|
16
|
+
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
17
|
+
readonly message: any;
|
|
18
|
+
readonly body: any;
|
|
19
|
+
readonly headers: any;
|
|
20
|
+
}> & (new (...args: any[]) => {
|
|
21
|
+
"@distilled.cloud/error/categories": {
|
|
22
|
+
ConflictError: true;
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
26
|
+
}
|
|
27
|
+
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
28
|
+
readonly message: any;
|
|
29
|
+
readonly body: any;
|
|
30
|
+
readonly headers: any;
|
|
31
|
+
}> & (new (...args: any[]) => {
|
|
32
|
+
"@distilled.cloud/error/categories": {
|
|
33
|
+
AuthError: true;
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
37
|
+
}
|
|
38
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
39
|
+
readonly message: any;
|
|
40
|
+
readonly body: any;
|
|
41
|
+
readonly headers: any;
|
|
42
|
+
}> & (new (...args: any[]) => {
|
|
43
|
+
"@distilled.cloud/error/categories": {
|
|
44
|
+
BadRequestError: true;
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
48
|
+
}
|
|
49
|
+
/** Data Product contacts (read only) */
|
|
50
|
+
export interface UserAndEmailV2 {
|
|
51
|
+
/** User ID */
|
|
52
|
+
userId: string;
|
|
53
|
+
/** User email */
|
|
54
|
+
email: string;
|
|
55
|
+
}
|
|
56
|
+
/** Data Product contacts */
|
|
57
|
+
export type CreateDataProductRequestContactsList = Array<UserAndEmailV2>;
|
|
58
|
+
/** Any links for this Data Product (read only) */
|
|
59
|
+
export interface LinkV2 {
|
|
60
|
+
/** The name of the link */
|
|
61
|
+
name: string;
|
|
62
|
+
/** The link URI */
|
|
63
|
+
uri: string;
|
|
64
|
+
}
|
|
65
|
+
/** Any links for this Data Product */
|
|
66
|
+
export type CreateDataProductRequestLinksList = Array<LinkV2>;
|
|
67
|
+
export type DataDomainReferenceIdReferenceType = "id";
|
|
68
|
+
/** Reference a Data Domain by its id */
|
|
69
|
+
export interface DataDomainReferenceId {
|
|
70
|
+
referenceType: DataDomainReferenceIdReferenceType;
|
|
71
|
+
/** Data Domain ID */
|
|
72
|
+
id: string;
|
|
73
|
+
}
|
|
74
|
+
export type DataDomainReferenceNameReferenceType = "name";
|
|
75
|
+
/** Reference a Data Domain by its name */
|
|
76
|
+
export interface DataDomainReferenceName {
|
|
77
|
+
referenceType: DataDomainReferenceNameReferenceType;
|
|
78
|
+
/** Data Domain name */
|
|
79
|
+
name: string;
|
|
80
|
+
}
|
|
81
|
+
export type DataDomainReferenceDefaultReferenceType = "default";
|
|
82
|
+
/** Reference the account's default Data Domain */
|
|
83
|
+
export interface DataDomainReferenceDefault {
|
|
84
|
+
referenceType: DataDomainReferenceDefaultReferenceType;
|
|
85
|
+
}
|
|
86
|
+
/** Owning Data Domain, identified by either id or name */
|
|
87
|
+
export type DataDomainReference = DataDomainReferenceId | DataDomainReferenceName | DataDomainReferenceDefault;
|
|
88
|
+
export interface CreateDataProductRequest {
|
|
89
|
+
/** Data Product name */
|
|
90
|
+
name: string;
|
|
91
|
+
/** Short summary of Data Product */
|
|
92
|
+
summary: string;
|
|
93
|
+
/** Long form description of Data Product */
|
|
94
|
+
description?: string | undefined;
|
|
95
|
+
/** Catalog ID */
|
|
96
|
+
catalogId: string;
|
|
97
|
+
/** Name of the data product schema */
|
|
98
|
+
schemaName: string;
|
|
99
|
+
/** Data Product contacts */
|
|
100
|
+
contacts: CreateDataProductRequestContactsList;
|
|
101
|
+
/** Any links for this Data Product */
|
|
102
|
+
links?: CreateDataProductRequestLinksList | undefined;
|
|
103
|
+
/** Default cluster ID for Data Product */
|
|
104
|
+
defaultClusterId?: string | undefined;
|
|
105
|
+
/** Business context for the Data Product, used to guide AI agents */
|
|
106
|
+
businessContext?: string | undefined;
|
|
107
|
+
dataDomain: DataDomainReference;
|
|
108
|
+
}
|
|
109
|
+
/** Set of local regions for the catalog (read only) */
|
|
110
|
+
export type DataProductCatalogDetailsLocalRegionsList = Array<string>;
|
|
111
|
+
/** Catalog details (read only) */
|
|
112
|
+
export interface DataProductCatalogDetails {
|
|
113
|
+
/** Catalog Id (read only) */
|
|
114
|
+
catalogId: string;
|
|
115
|
+
/** Name of the catalog (read only) */
|
|
116
|
+
catalogName: string;
|
|
117
|
+
/** Kind of catalog (read only) */
|
|
118
|
+
catalogKind: string;
|
|
119
|
+
/** Set of local regions for the catalog (read only) */
|
|
120
|
+
localRegions: DataProductCatalogDetailsLocalRegionsList;
|
|
121
|
+
}
|
|
122
|
+
/** Data Product contacts (read only) */
|
|
123
|
+
export type DataProductV2ContactsList = Array<UserAndEmailV2>;
|
|
124
|
+
/** Any links for this Data Product (read only) */
|
|
125
|
+
export type DataProductV2LinksList = Array<LinkV2>;
|
|
126
|
+
/** Created by user. If empty then the user is inactive/deleted. (read only) */
|
|
127
|
+
export type UserAndEmail2 = UserAndEmailV2;
|
|
128
|
+
/** A Galaxy Data Product */
|
|
129
|
+
export interface DataProductV2 {
|
|
130
|
+
/** 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) */
|
|
131
|
+
syncToken: string;
|
|
132
|
+
/** Data Product ID (read only) */
|
|
133
|
+
dataProductId: string;
|
|
134
|
+
/** Data Product name (read only) */
|
|
135
|
+
name: string;
|
|
136
|
+
/** Short summary of Data Product (read only) */
|
|
137
|
+
summary: string;
|
|
138
|
+
/** Long form description of Data Product (read only) */
|
|
139
|
+
description?: string | undefined;
|
|
140
|
+
catalog?: DataProductCatalogDetails | undefined;
|
|
141
|
+
/** Name of the data product schema (read only) */
|
|
142
|
+
schemaName?: string | undefined;
|
|
143
|
+
/** Data Product contacts (read only) */
|
|
144
|
+
contacts: DataProductV2ContactsList;
|
|
145
|
+
/** Any links for this Data Product (read only) */
|
|
146
|
+
links: DataProductV2LinksList;
|
|
147
|
+
/** Default cluster ID for Data Product (read only) */
|
|
148
|
+
defaultClusterId?: string | undefined;
|
|
149
|
+
/** Owning Data Domain ID (read only) */
|
|
150
|
+
dataDomainId: string;
|
|
151
|
+
/** Creation date (read only) */
|
|
152
|
+
createdOn: string;
|
|
153
|
+
/** Modified date (read only) */
|
|
154
|
+
modifiedOn: string;
|
|
155
|
+
createdBy?: UserAndEmailV2 | undefined;
|
|
156
|
+
modifiedBy?: UserAndEmailV2 | undefined;
|
|
157
|
+
/** Business context for the Data Product, used to guide AI agents (read only) */
|
|
158
|
+
businessContext?: string | undefined;
|
|
159
|
+
}
|
|
160
|
+
export interface DeleteDataProductRequest {
|
|
161
|
+
/** A Galaxy Data Product */
|
|
162
|
+
dataProductId: string;
|
|
163
|
+
}
|
|
164
|
+
export interface DeleteDataProductResponse {
|
|
165
|
+
}
|
|
166
|
+
export interface GetDataProductRequest {
|
|
167
|
+
/** A Galaxy Data Product */
|
|
168
|
+
dataProductId: string;
|
|
169
|
+
}
|
|
170
|
+
export interface GetDataProductDataDomainRequest {
|
|
171
|
+
/** A Galaxy Data Product */
|
|
172
|
+
dataProductId: string;
|
|
173
|
+
}
|
|
174
|
+
/** A data domain id and name */
|
|
175
|
+
export interface DataDomainIdAndName {
|
|
176
|
+
/** Data Domain ID (read only) */
|
|
177
|
+
dataDomainId: string;
|
|
178
|
+
/** Data Domain name (read only) */
|
|
179
|
+
name: string;
|
|
180
|
+
}
|
|
181
|
+
export interface ListDataProductsRequest {
|
|
182
|
+
/** Pagination token */
|
|
183
|
+
pageToken?: string | undefined;
|
|
184
|
+
/** Page size or 0 for default (current maximum is 100) */
|
|
185
|
+
pageSize?: number | undefined;
|
|
186
|
+
}
|
|
187
|
+
/** A page of results. */
|
|
188
|
+
export type PaginatedDataProductV2ResultList = Array<DataProductV2>;
|
|
189
|
+
export interface PaginatedDataProductV2 {
|
|
190
|
+
/** The next page token to use or "" if there are no more pages. */
|
|
191
|
+
nextPageToken?: string | undefined;
|
|
192
|
+
/** A page of results. */
|
|
193
|
+
result: PaginatedDataProductV2ResultList;
|
|
194
|
+
}
|
|
195
|
+
/** Data Product contacts */
|
|
196
|
+
export interface UserAndEmailPatchV2 {
|
|
197
|
+
/** User ID */
|
|
198
|
+
userId?: string | undefined;
|
|
199
|
+
/** User email */
|
|
200
|
+
email?: string | undefined;
|
|
201
|
+
}
|
|
202
|
+
/** Data Product contacts */
|
|
203
|
+
export type UpdateDataProductRequestContactsList = Array<UserAndEmailPatchV2>;
|
|
204
|
+
/** Any links for this Data Product */
|
|
205
|
+
export interface LinkPatchV2 {
|
|
206
|
+
/** The name of the link */
|
|
207
|
+
name?: string | undefined;
|
|
208
|
+
/** The link URI */
|
|
209
|
+
uri?: string | undefined;
|
|
210
|
+
}
|
|
211
|
+
/** Any links for this Data Product */
|
|
212
|
+
export type UpdateDataProductRequestLinksList = Array<LinkPatchV2>;
|
|
213
|
+
export interface UpdateDataProductRequest {
|
|
214
|
+
/** A Galaxy Data Product */
|
|
215
|
+
dataProductId: string;
|
|
216
|
+
/** Data Product name */
|
|
217
|
+
name?: string | undefined;
|
|
218
|
+
/** Short summary of Data Product */
|
|
219
|
+
summary?: string | undefined;
|
|
220
|
+
/** Long form description of Data Product */
|
|
221
|
+
description?: string | undefined;
|
|
222
|
+
/** Data Product contacts */
|
|
223
|
+
contacts?: UpdateDataProductRequestContactsList | undefined;
|
|
224
|
+
/** Any links for this Data Product */
|
|
225
|
+
links?: UpdateDataProductRequestLinksList | undefined;
|
|
226
|
+
/** Default cluster ID for Data Product */
|
|
227
|
+
defaultClusterId?: string | undefined;
|
|
228
|
+
/** Owning Data Domain ID */
|
|
229
|
+
dataDomainId?: string | undefined;
|
|
230
|
+
/** Business context for the Data Product, used to guide AI agents */
|
|
231
|
+
businessContext?: string | undefined;
|
|
232
|
+
}
|
|
233
|
+
/** Any fields/values that are invalid or incorrect */
|
|
234
|
+
export type BadRequestFieldsList = Array<string>;
|
|
235
|
+
/** Invalid request */
|
|
236
|
+
export interface BadRequest2 {
|
|
237
|
+
/** Description of the error */
|
|
238
|
+
message?: string | undefined;
|
|
239
|
+
/** Any fields/values that are invalid or incorrect */
|
|
240
|
+
fields?: BadRequestFieldsList | undefined;
|
|
241
|
+
}
|
|
242
|
+
/** Already exists */
|
|
243
|
+
export interface Exists {
|
|
244
|
+
message?: string | undefined;
|
|
245
|
+
}
|
|
246
|
+
/** Authorization failed */
|
|
247
|
+
export type Forbidden2 = Exists;
|
|
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
|
+
/** Any fields/values that weren't found */
|
|
262
|
+
export type NotFoundFieldsList = Array<string>;
|
|
263
|
+
/** A resource or required component was not found */
|
|
264
|
+
export interface NotFound2 {
|
|
265
|
+
/** Name of the resource */
|
|
266
|
+
message: string;
|
|
267
|
+
/** Violation description */
|
|
268
|
+
description?: string | undefined;
|
|
269
|
+
/** Any fields/values that weren't found */
|
|
270
|
+
fields?: NotFoundFieldsList | undefined;
|
|
271
|
+
}
|
|
272
|
+
export type CreateDataProductError = BadRequest | Forbidden | NotFound | Conflict | StarburstGalaxyOpError;
|
|
273
|
+
/** Create a Data Product **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
274
|
+
export declare const createDataProduct: API.OperationMethod<CreateDataProductRequest, DataProductV2, CreateDataProductError, StarburstGalaxyOpContext>;
|
|
275
|
+
export type DeleteDataProductError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
276
|
+
/** Delete a Data Product **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
277
|
+
export declare const deleteDataProduct: API.OperationMethod<DeleteDataProductRequest, DeleteDataProductResponse, DeleteDataProductError, StarburstGalaxyOpContext>;
|
|
278
|
+
export type GetDataProductError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
279
|
+
/** Get Data Product by id **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
280
|
+
export declare const getDataProduct: API.OperationMethod<GetDataProductRequest, DataProductV2, GetDataProductError, StarburstGalaxyOpContext>;
|
|
281
|
+
export type GetDataProductDataDomainError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
282
|
+
/** Get the Data Domain id and name for a Data Product */
|
|
283
|
+
export declare const getDataProductDataDomain: API.OperationMethod<GetDataProductDataDomainRequest, DataDomainIdAndName, GetDataProductDataDomainError, StarburstGalaxyOpContext>;
|
|
284
|
+
export type ListDataProductsError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
285
|
+
/** 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. */
|
|
286
|
+
export declare const listDataProducts: API.PaginatedOperationMethod<ListDataProductsRequest, PaginatedDataProductV2, ListDataProductsError, StarburstGalaxyOpContext, DataProductV2>;
|
|
287
|
+
export type UpdateDataProductError = BadRequest | Forbidden | NotFound | Conflict | StarburstGalaxyOpError;
|
|
288
|
+
/** 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. */
|
|
289
|
+
export declare const updateDataProduct: API.OperationMethod<UpdateDataProductRequest, DataProductV2, UpdateDataProductError, StarburstGalaxyOpContext>;
|
|
290
|
+
//# sourceMappingURL=data_product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data_product.d.ts","sources":["../../src/services/data_product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAIvD,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC9B,MAAM,gBAAgB,C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+1,2 @@
|
|
|
1
|
+
import{Ad as e,Bd as t,Ca as n,a as r,ad as i,b as a,errors$StarburstGalaxyServiceErrors as o,f as s,kd as c,l,ld as u,m as d,n as f,nd as p,o as m,od as h,pagination$paginateToken as g,protocol$StarburstGalaxyProtocol as _,qd as v,retry$Retry as y,sd as b,td as x,traits$Http as S,traits$Label as C,traits$Query as w,traits$applyErrorMatchers as T,vd as E,ya as D,za as O}from"../_bundle/sdk.js";const k={system:`starburst-galaxy-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`StarburstGalaxy`,service:`DataProductService`,labels:`starburst_galaxy`,propagate:`w3c`};const A=/*@__PURE__*/ s(function BadRequest(t){return d(t,new.target,[`$7($6()("BadRequest",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:400}])`,[E,O,p,x,u,e,v,T]])});const j=/*@__PURE__*/ s(function Conflict(t){return d(t,new.target,[`$7($6()("Conflict",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:409}])`,[E,n,p,x,u,e,v,T]])});const M=/*@__PURE__*/ s(function Forbidden(t){return d(t,new.target,[`$7($6()("Forbidden",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:403}])`,[E,D,p,x,u,e,v,T]])});const N=/*@__PURE__*/ s(function NotFound(t){return d(t,new.target,[`$7($6()("NotFound",{message:$2,body:$3,headers:$5($4($2,$2))}).pipe($1),[{status:404}])`,[E,O,p,x,u,e,v,T]])});const P=/*@__PURE__*/ f(n=>n===r?l(`CreateDataProduct`,`{input:#5,output:#7:6,errors:[$8,$9,$10,$11],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$3(>6)@"DataDomainReferenceId";$3(>7)@"DataDomainReferenceName";$3(>8)@"DataDomainReferenceDefault";$4([#1,#2,#3]);$3(>9)@"%Request";$2({referenceType:$1,id:$1});$2({referenceType:$1,name:$1});$2({referenceType:$1});$2({name:$1,summary:$1,description:$6($1),catalogId:$1,schemaName:$1,contacts:#7:1,links:$6(#7:3),defaultClusterId:$6($1),businessContext:$6($1),dataDomain:#4}).pipe($5({method:"POST",uri:"/public/api/v2/dataProduct",code:200}))`,[E,p,h,t,b,S,e,__d0,A,M,N,j,o,_,y,k]):a(P,n));const F=/*@__PURE__*/ f(e=>e===r?l(`DeleteDataProduct`,`{input:#1,output:#2,errors:[$6,$7,$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({dataProductId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/public/api/v2/dataProduct/{dataProductId}",code:200}));$4({})`,[E,S,C,p,h,t,A,M,N,o,_,y,k]):a(F,e));const I=/*@__PURE__*/ f(e=>e===r?l(`GetDataProduct`,`{input:#1,output:#6:6,errors:[$7,$8,$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>2)@"%Request";$4({dataProductId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/public/api/v2/dataProduct/{dataProductId}",code:200}))`,[E,S,C,p,h,t,__d0,A,M,N,o,_,y,k]):a(I,e));const L=/*@__PURE__*/ f(e=>e===r?l(`GetDataProductDataDomain`,`{input:#1,output:#2,errors:[$6,$7,$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>3)@"%Request";$5(>4)@"DataDomainIdAndName";$4({dataProductId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/public/api/v1/dataProduct/{dataProductId}/dataDomain",code:200}));$4({dataDomainId:$3,name:$3})`,[E,S,C,p,h,t,A,M,N,o,_,y,k]):a(L,e));const R=/*@__PURE__*/ m(n=>n===r?l(`ListDataProducts`,`{input:#1,output:#3,errors:[$10,$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%",pagination:{mode:"token",inputToken:"pageToken",outputToken:"nextPageToken",items:"result",pageSize:"pageSize"},strategy:$17};$7(>4)@"%Request";$9(#8:6);$7(>5)@"PaginatedDataProductV2";$6({pageToken:$4($3.pipe($2())),pageSize:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/public/api/v2/dataProduct",code:200}));$6({nextPageToken:$4($3),result:#2})`,[E,S,w,p,e,c,h,t,__d0,i,A,M,N,o,_,y,k,g]):a(R,n));const z=/*@__PURE__*/ f(n=>n===r?l(`UpdateDataProduct`,`{input:#5,output:#8:6,errors:[$9,$10,$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$4(>6)@"UserAndEmailPatchV2";$5(#1);$4(>7)@"LinkPatchV2";$5(#3);$4(>8)@"%Request";$3({userId:$2($1),email:$2($1)});$3({name:$2($1),uri:$2($1)});$3({dataProductId:$1.pipe($7()),name:$2($1),summary:$2($1),description:$2($1),contacts:$2(#2),links:$2(#4),defaultClusterId:$2($1),dataDomainId:$2($1),businessContext:$2($1)}).pipe($6({method:"PATCH",uri:"/public/api/v2/dataProduct/{dataProductId}",code:200}))`,[E,p,e,h,t,i,S,C,__d0,A,M,N,j,o,_,y,k]):a(z,n));function __d0(){return[`$3(>7)@"UserAndEmailV2";$4(#0);$3(>8)@"LinkV2";$4(#2);$4($1);$3(>9)@"DataProductCatalogDetails";$3(>10)@"DataProductV2";$2({userId:$1,email:$1});$2({name:$1,uri:$1});$2({catalogId:$1,catalogName:$1,catalogKind:$1,localRegions:#4});$2({syncToken:$1,dataProductId:$1,name:$1,summary:$1,description:$5($1),catalog:$5(#5),schemaName:$5($1),contacts:#1,links:#3,defaultClusterId:$5($1),dataDomainId:$1,createdOn:$1,modifiedOn:$1,createdBy:$5(#0),modifiedBy:$5(#0),businessContext:$5($1)})`,[E,p,h,t,i,e]]}export{A as BadRequest,j as Conflict,M as Forbidden,N as NotFound,P as createDataProduct,F as deleteDataProduct,I as getDataProduct,L as getDataProductDataDomain,R as listDataProducts,z as updateDataProduct};
|
|
2
|
+
//# sourceMappingURL=data_product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data_product.js","names":["API.newError","__L.at","C.withBadRequestError","S.String","S.Unknown","S.Record","S.optional","S.TaggedError","T.applyErrorMatchers","C.withConflictError","C.withAuthError","API.D","API.named","S.Struct","S.suspend","S.Union","T.Http","Retry.Retry","API.call","T.Label","T.Query","S.Number","S.Array","optional","suspend","withConflictError","D","Array","call","StarburstGalaxyServiceErrors","error","Number","Record","newError","op","String","opPaginated","Struct","paginateToken","StarburstGalaxyProtocol","TaggedError","Retry","Union","Unknown","Http","Label","Query","applyErrorMatchers","at","withAuthError","withBadRequestError","TELEMETRY","BadRequest","i","Conflict","Forbidden","NotFound","createDataProduct","named","deleteDataProduct","getDataProduct","getDataProductDataDomain","listDataProducts","updateDataProduct"],"sources":["../../src/services/data_product.ts"],"mappings":"6YAkBA,MAAMmD,EAAY,CAChB,OAAQ,uBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,kBACR,QAAS,qBACT,OAAQ,mBACR,UAAW,KACb,EAEA,MAAaC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAOpD,EAAaqD,EAAG,WAAY,CAAC,4FAA6F,CAACpD,EAAQC,EAAuBC,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CACnP,CAAC,EAED,MAAa8C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOtD,EAAaqD,EAAG,WAAY,CAAC,0FAA2F,CAACpD,EAAQQ,EAAqBN,EAAUC,EAAWC,EAAUC,EAAYC,EAAeC,CAAoB,CAAC,CAAC,CAC/O,CAAC,EAED,MAAa+C,EAA+B,gBAAU,SAAS,UAAU,EAAa,CACpF,OAAOvD,EAAaqD,EAAG,WAAY,CAAC,2FAA4F,CAACpD,EAAQS,EAAiBP,EAAUC,EAAWC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