@distilled.cloud/starburst-galaxy 0.0.0 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +110 -4
- 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 +82 -2
- 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,480 @@
|
|
|
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 type * as Redacted from "effect/Redacted";
|
|
7
|
+
import { StarburstGalaxyServiceErrors } from "../errors.ts";
|
|
8
|
+
import { paginateToken } from "../pagination.ts";
|
|
9
|
+
import {
|
|
10
|
+
StarburstGalaxyProtocol,
|
|
11
|
+
type StarburstGalaxyOpError,
|
|
12
|
+
type StarburstGalaxyOpContext,
|
|
13
|
+
} from "../protocol.ts";
|
|
14
|
+
import * as Retry from "../retry.ts";
|
|
15
|
+
import * as T from "../traits.ts";
|
|
16
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
17
|
+
const __s: any[] = [];
|
|
18
|
+
|
|
19
|
+
export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
|
|
20
|
+
|
|
21
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
22
|
+
const TELEMETRY = {
|
|
23
|
+
system: "starburst-galaxy-api",
|
|
24
|
+
responseHeaders: [
|
|
25
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
26
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
27
|
+
],
|
|
28
|
+
prefix: "StarburstGalaxy",
|
|
29
|
+
service: "FileIngestSourceService",
|
|
30
|
+
labels: "starburst_galaxy",
|
|
31
|
+
propagate: "w3c",
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
export class BadRequest
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
37
|
+
message: S.String,
|
|
38
|
+
body: S.Unknown,
|
|
39
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
40
|
+
}).pipe(C.withBadRequestError),
|
|
41
|
+
[{ status: 400 }],
|
|
42
|
+
) {}
|
|
43
|
+
|
|
44
|
+
export class Conflict
|
|
45
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
46
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
47
|
+
message: S.String,
|
|
48
|
+
body: S.Unknown,
|
|
49
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
50
|
+
}).pipe(C.withConflictError),
|
|
51
|
+
[{ status: 409 }],
|
|
52
|
+
) {}
|
|
53
|
+
|
|
54
|
+
export class Forbidden
|
|
55
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
56
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
57
|
+
message: S.String,
|
|
58
|
+
body: S.Unknown,
|
|
59
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
60
|
+
}).pipe(C.withAuthError),
|
|
61
|
+
[{ status: 403 }],
|
|
62
|
+
) {}
|
|
63
|
+
|
|
64
|
+
export class NotFound
|
|
65
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
66
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
67
|
+
message: S.String,
|
|
68
|
+
body: S.Unknown,
|
|
69
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
70
|
+
}).pipe(C.withBadRequestError),
|
|
71
|
+
[{ status: 404 }],
|
|
72
|
+
) {}
|
|
73
|
+
|
|
74
|
+
export type CloudStorageCredentialsBasicAwsCredentialsCredentialsType = "basicAwsCredentials";
|
|
75
|
+
/** AWS access key and secret credentials */
|
|
76
|
+
export interface CloudStorageCredentialsBasicAwsCredentials {
|
|
77
|
+
credentialsType: CloudStorageCredentialsBasicAwsCredentialsCredentialsType;
|
|
78
|
+
/** AWS access key ID */
|
|
79
|
+
accessKeyId: string;
|
|
80
|
+
/** AWS secret access key */
|
|
81
|
+
secretAccessKey: string | Redacted.Redacted<string>;
|
|
82
|
+
}
|
|
83
|
+
export type CloudStorageCredentialsExternalIamRoleCredentialsType = "externalIamRole";
|
|
84
|
+
/** External IAM role credentials */
|
|
85
|
+
export interface CloudStorageCredentialsExternalIamRole {
|
|
86
|
+
credentialsType: CloudStorageCredentialsExternalIamRoleCredentialsType;
|
|
87
|
+
/** ARN of the external IAM role */
|
|
88
|
+
externalRoleArn: string;
|
|
89
|
+
}
|
|
90
|
+
/** Cloud storage credentials */
|
|
91
|
+
export type CloudStorageCredentials =
|
|
92
|
+
| CloudStorageCredentialsBasicAwsCredentials
|
|
93
|
+
| CloudStorageCredentialsExternalIamRole;
|
|
94
|
+
export interface CreateFileIngestSourceRequest {
|
|
95
|
+
/** Name */
|
|
96
|
+
name: string;
|
|
97
|
+
/** Description */
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
/** Cloud region ID where icehouse ingest work is scheduled */
|
|
100
|
+
sourceCloudRegionId?: string | undefined;
|
|
101
|
+
/** Cloud region ID where the storage bucket lives */
|
|
102
|
+
bucketCloudRegionId: string;
|
|
103
|
+
/** Storage bucket */
|
|
104
|
+
bucket: string;
|
|
105
|
+
/** File name prefix or path */
|
|
106
|
+
pathPrefix?: string | undefined;
|
|
107
|
+
cloudStorageCredentials: CloudStorageCredentials;
|
|
108
|
+
}
|
|
109
|
+
/** A file source from which ingest tables can be populated */
|
|
110
|
+
export interface FileIngestSource {
|
|
111
|
+
/** 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) */
|
|
112
|
+
syncToken: string;
|
|
113
|
+
/** ID */
|
|
114
|
+
fileIngestSourceId: string;
|
|
115
|
+
/** Name */
|
|
116
|
+
name: string;
|
|
117
|
+
/** Description */
|
|
118
|
+
description?: string | undefined;
|
|
119
|
+
/** Storage bucket */
|
|
120
|
+
bucket: string;
|
|
121
|
+
/** File name prefix or path */
|
|
122
|
+
prefix?: string | undefined;
|
|
123
|
+
}
|
|
124
|
+
export interface DeleteFileIngestSourceRequest {
|
|
125
|
+
/** A file source from which ingest tables can be populated */
|
|
126
|
+
fileIngestSourceId: string;
|
|
127
|
+
}
|
|
128
|
+
export interface DeleteFileIngestSourceResponse {}
|
|
129
|
+
export interface GetFileIngestSourceRequest {
|
|
130
|
+
/** A file source from which ingest tables can be populated */
|
|
131
|
+
fileIngestSourceId: string;
|
|
132
|
+
}
|
|
133
|
+
export interface ListFileIngestSourcesRequest {
|
|
134
|
+
/** Pagination token */
|
|
135
|
+
pageToken?: string | undefined;
|
|
136
|
+
/** Page size or 0 for default (current maximum is 100) */
|
|
137
|
+
pageSize?: number | undefined;
|
|
138
|
+
}
|
|
139
|
+
/** A page of results. */
|
|
140
|
+
export type PaginatedFileIngestSourceResultList = Array<FileIngestSource>;
|
|
141
|
+
export interface PaginatedFileIngestSource {
|
|
142
|
+
/** The next page token to use or "" if there are no more pages. */
|
|
143
|
+
nextPageToken?: string | undefined;
|
|
144
|
+
/** A page of results. */
|
|
145
|
+
result: PaginatedFileIngestSourceResultList;
|
|
146
|
+
}
|
|
147
|
+
export type CloudStorageCredentialsPatchBasicAwsCredentialsPatchCredentialsType =
|
|
148
|
+
"basicAwsCredentials";
|
|
149
|
+
/** AWS access key and secret credentials */
|
|
150
|
+
export interface CloudStorageCredentialsPatchBasicAwsCredentialsPatch {
|
|
151
|
+
credentialsType: CloudStorageCredentialsPatchBasicAwsCredentialsPatchCredentialsType;
|
|
152
|
+
/** AWS access key ID */
|
|
153
|
+
accessKeyId?: string | undefined;
|
|
154
|
+
/** AWS secret access key */
|
|
155
|
+
secretAccessKey?: string | Redacted.Redacted<string> | undefined;
|
|
156
|
+
}
|
|
157
|
+
export type CloudStorageCredentialsPatchExternalIamRolePatchCredentialsType = "externalIamRole";
|
|
158
|
+
/** External IAM role credentials */
|
|
159
|
+
export interface CloudStorageCredentialsPatchExternalIamRolePatch {
|
|
160
|
+
credentialsType: CloudStorageCredentialsPatchExternalIamRolePatchCredentialsType;
|
|
161
|
+
/** ARN of the external IAM role */
|
|
162
|
+
externalRoleArn?: string | undefined;
|
|
163
|
+
}
|
|
164
|
+
/** New cloud storage credentials for the source */
|
|
165
|
+
export type CloudStorageCredentialsPatch =
|
|
166
|
+
| CloudStorageCredentialsPatchBasicAwsCredentialsPatch
|
|
167
|
+
| CloudStorageCredentialsPatchExternalIamRolePatch;
|
|
168
|
+
export interface UpdateFileIngestSourceRequest {
|
|
169
|
+
/** A file source from which ingest tables can be populated */
|
|
170
|
+
fileIngestSourceId: string;
|
|
171
|
+
/** New source name */
|
|
172
|
+
name?: string | undefined;
|
|
173
|
+
/** New source description */
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
cloudStorageCredentials?: CloudStorageCredentialsPatch | undefined;
|
|
176
|
+
}
|
|
177
|
+
export interface UpdateFileIngestSourceResponse {}
|
|
178
|
+
/** Any fields/values that are invalid or incorrect */
|
|
179
|
+
export type BadRequestFieldsList = Array<string>;
|
|
180
|
+
/** Invalid request */
|
|
181
|
+
export interface BadRequest2 {
|
|
182
|
+
/** Description of the error */
|
|
183
|
+
message?: string | undefined;
|
|
184
|
+
/** Any fields/values that are invalid or incorrect */
|
|
185
|
+
fields?: BadRequestFieldsList | undefined;
|
|
186
|
+
}
|
|
187
|
+
/** Already exists */
|
|
188
|
+
export interface Exists {
|
|
189
|
+
message?: string | undefined;
|
|
190
|
+
}
|
|
191
|
+
/** Authorization failed */
|
|
192
|
+
export type Forbidden2 = Exists;
|
|
193
|
+
/** Error details (read only) */
|
|
194
|
+
export interface Resourceinfo {
|
|
195
|
+
/** Name of the resource (read only) */
|
|
196
|
+
resourceName: string;
|
|
197
|
+
/** Violation description (read only) */
|
|
198
|
+
description: string;
|
|
199
|
+
}
|
|
200
|
+
/** A specified resource is not found. */
|
|
201
|
+
export interface NotFoundError {
|
|
202
|
+
/** Description of the error */
|
|
203
|
+
message: string;
|
|
204
|
+
detail: Resourceinfo;
|
|
205
|
+
}
|
|
206
|
+
/** Any fields/values that weren't found */
|
|
207
|
+
export type NotFoundFieldsList = Array<string>;
|
|
208
|
+
/** A resource or required component was not found */
|
|
209
|
+
export interface NotFound2 {
|
|
210
|
+
/** Name of the resource */
|
|
211
|
+
message: string;
|
|
212
|
+
/** Violation description */
|
|
213
|
+
description?: string | undefined;
|
|
214
|
+
/** Any fields/values that weren't found */
|
|
215
|
+
fields?: NotFoundFieldsList | undefined;
|
|
216
|
+
}
|
|
217
|
+
export type CreateFileIngestSourceError =
|
|
218
|
+
| BadRequest
|
|
219
|
+
| Forbidden
|
|
220
|
+
| NotFound
|
|
221
|
+
| Conflict
|
|
222
|
+
| StarburstGalaxyOpError;
|
|
223
|
+
/** Create a file ingest source **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
224
|
+
export const createFileIngestSource: API.OperationMethod<
|
|
225
|
+
CreateFileIngestSourceRequest,
|
|
226
|
+
FileIngestSource,
|
|
227
|
+
CreateFileIngestSourceError,
|
|
228
|
+
StarburstGalaxyOpContext
|
|
229
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
230
|
+
input: __S(3, __c0, 3) as any as S.Schema<CreateFileIngestSourceRequest>,
|
|
231
|
+
output: __S(4, __c1, 0) as any as S.Schema<FileIngestSource>,
|
|
232
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
233
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
234
|
+
protocol: StarburstGalaxyProtocol,
|
|
235
|
+
retry: Retry.Retry,
|
|
236
|
+
telemetry: TELEMETRY,
|
|
237
|
+
span: "CreateFileIngestSource",
|
|
238
|
+
}));
|
|
239
|
+
|
|
240
|
+
export type DeleteFileIngestSourceError =
|
|
241
|
+
| BadRequest
|
|
242
|
+
| Forbidden
|
|
243
|
+
| NotFound
|
|
244
|
+
| StarburstGalaxyOpError;
|
|
245
|
+
/** Deletes a file ingest source **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
246
|
+
export const deleteFileIngestSource: API.OperationMethod<
|
|
247
|
+
DeleteFileIngestSourceRequest,
|
|
248
|
+
DeleteFileIngestSourceResponse,
|
|
249
|
+
DeleteFileIngestSourceError,
|
|
250
|
+
StarburstGalaxyOpContext
|
|
251
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
252
|
+
input: __S(8, __c2, 0) as any as S.Schema<DeleteFileIngestSourceRequest>,
|
|
253
|
+
output: __S(12, __c3, 0) as any as S.Schema<DeleteFileIngestSourceResponse>,
|
|
254
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
255
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
256
|
+
protocol: StarburstGalaxyProtocol,
|
|
257
|
+
retry: Retry.Retry,
|
|
258
|
+
telemetry: TELEMETRY,
|
|
259
|
+
span: "DeleteFileIngestSource",
|
|
260
|
+
}));
|
|
261
|
+
|
|
262
|
+
export type GetFileIngestSourceError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
263
|
+
/** Returns a single file ingest source **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
264
|
+
export const getFileIngestSource: API.OperationMethod<
|
|
265
|
+
GetFileIngestSourceRequest,
|
|
266
|
+
FileIngestSource,
|
|
267
|
+
GetFileIngestSourceError,
|
|
268
|
+
StarburstGalaxyOpContext
|
|
269
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
270
|
+
input: __S(16, __c4, 0) as any as S.Schema<GetFileIngestSourceRequest>,
|
|
271
|
+
output: __S(4, __c1, 0) as any as S.Schema<FileIngestSource>,
|
|
272
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
273
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
274
|
+
protocol: StarburstGalaxyProtocol,
|
|
275
|
+
retry: Retry.Retry,
|
|
276
|
+
telemetry: TELEMETRY,
|
|
277
|
+
span: "GetFileIngestSource",
|
|
278
|
+
}));
|
|
279
|
+
|
|
280
|
+
export type ListFileIngestSourcesError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
281
|
+
/** Returns all file ingest sources in your account **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
282
|
+
export const listFileIngestSources: API.PaginatedOperationMethod<
|
|
283
|
+
ListFileIngestSourcesRequest,
|
|
284
|
+
PaginatedFileIngestSource,
|
|
285
|
+
ListFileIngestSourcesError,
|
|
286
|
+
StarburstGalaxyOpContext,
|
|
287
|
+
FileIngestSource
|
|
288
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
289
|
+
() => ({
|
|
290
|
+
input: __S(20, __c5, 0) as any as S.Schema<ListFileIngestSourcesRequest>,
|
|
291
|
+
output: __S(22, __c5, 2) as any as S.Schema<PaginatedFileIngestSource>,
|
|
292
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
293
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
294
|
+
protocol: StarburstGalaxyProtocol,
|
|
295
|
+
retry: Retry.Retry,
|
|
296
|
+
telemetry: TELEMETRY,
|
|
297
|
+
span: "ListFileIngestSources",
|
|
298
|
+
pagination: {
|
|
299
|
+
mode: "token",
|
|
300
|
+
inputToken: "pageToken",
|
|
301
|
+
outputToken: "nextPageToken",
|
|
302
|
+
items: "result",
|
|
303
|
+
pageSize: "pageSize",
|
|
304
|
+
} as const,
|
|
305
|
+
}),
|
|
306
|
+
paginateToken,
|
|
307
|
+
) as any;
|
|
308
|
+
|
|
309
|
+
export type UpdateFileIngestSourceError =
|
|
310
|
+
| BadRequest
|
|
311
|
+
| Forbidden
|
|
312
|
+
| NotFound
|
|
313
|
+
| Conflict
|
|
314
|
+
| StarburstGalaxyOpError;
|
|
315
|
+
/** Update a file ingest source **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. */
|
|
316
|
+
export const updateFileIngestSource: API.OperationMethod<
|
|
317
|
+
UpdateFileIngestSourceRequest,
|
|
318
|
+
UpdateFileIngestSourceResponse,
|
|
319
|
+
UpdateFileIngestSourceError,
|
|
320
|
+
StarburstGalaxyOpContext
|
|
321
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
322
|
+
input: __S(27, __c6, 3) as any as S.Schema<UpdateFileIngestSourceRequest>,
|
|
323
|
+
output: __S(12, __c3, 0) as any as S.Schema<UpdateFileIngestSourceResponse>,
|
|
324
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
325
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
326
|
+
protocol: StarburstGalaxyProtocol,
|
|
327
|
+
retry: Retry.Retry,
|
|
328
|
+
telemetry: TELEMETRY,
|
|
329
|
+
span: "UpdateFileIngestSource",
|
|
330
|
+
}));
|
|
331
|
+
|
|
332
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
333
|
+
function __c0(j: number): any {
|
|
334
|
+
switch (j) {
|
|
335
|
+
case 0:
|
|
336
|
+
return S.suspend(() =>
|
|
337
|
+
S.Struct({
|
|
338
|
+
credentialsType: S.String,
|
|
339
|
+
accessKeyId: S.String,
|
|
340
|
+
secretAccessKey: S.String.pipe(T.SensitiveValue({})),
|
|
341
|
+
}),
|
|
342
|
+
).annotate({ identifier: "CloudStorageCredentialsBasicAwsCredentials" });
|
|
343
|
+
case 1:
|
|
344
|
+
return S.suspend(() =>
|
|
345
|
+
S.Struct({
|
|
346
|
+
credentialsType: S.String,
|
|
347
|
+
externalRoleArn: S.String,
|
|
348
|
+
}),
|
|
349
|
+
).annotate({ identifier: "CloudStorageCredentialsExternalIamRole" });
|
|
350
|
+
case 2:
|
|
351
|
+
return S.Union([__S(0, __c0, 0), __S(1, __c0, 1)]);
|
|
352
|
+
case 3:
|
|
353
|
+
return S.suspend(() =>
|
|
354
|
+
S.Struct({
|
|
355
|
+
name: S.String,
|
|
356
|
+
description: S.optional(S.String),
|
|
357
|
+
sourceCloudRegionId: S.optional(S.String),
|
|
358
|
+
bucketCloudRegionId: S.String,
|
|
359
|
+
bucket: S.String,
|
|
360
|
+
pathPrefix: S.optional(S.String),
|
|
361
|
+
cloudStorageCredentials: __S(2, __c0, 2),
|
|
362
|
+
}).pipe(T.Http({ method: "POST", uri: "/public/api/v1/fileIngestSource", code: 200 })),
|
|
363
|
+
).annotate({ identifier: "CreateFileIngestSourceRequest" });
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
function __c1(j: number): any {
|
|
367
|
+
switch (j) {
|
|
368
|
+
case 0:
|
|
369
|
+
return S.suspend(() =>
|
|
370
|
+
S.Struct({
|
|
371
|
+
syncToken: S.String,
|
|
372
|
+
fileIngestSourceId: S.String,
|
|
373
|
+
name: S.String,
|
|
374
|
+
description: S.optional(S.String),
|
|
375
|
+
bucket: S.String,
|
|
376
|
+
prefix: S.optional(S.String),
|
|
377
|
+
}),
|
|
378
|
+
).annotate({ identifier: "FileIngestSource" });
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function __c2(j: number): any {
|
|
382
|
+
switch (j) {
|
|
383
|
+
case 0:
|
|
384
|
+
return S.suspend(() =>
|
|
385
|
+
S.Struct({
|
|
386
|
+
fileIngestSourceId: S.String.pipe(T.Label()),
|
|
387
|
+
}).pipe(
|
|
388
|
+
T.Http({
|
|
389
|
+
method: "DELETE",
|
|
390
|
+
uri: "/public/api/v1/fileIngestSource/{fileIngestSourceId}",
|
|
391
|
+
code: 200,
|
|
392
|
+
}),
|
|
393
|
+
),
|
|
394
|
+
).annotate({ identifier: "DeleteFileIngestSourceRequest" });
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
function __c3(j: number): any {
|
|
398
|
+
switch (j) {
|
|
399
|
+
case 0:
|
|
400
|
+
return S.suspend(() => S.Struct({})).annotate({
|
|
401
|
+
identifier: "DeleteFileIngestSourceResponse",
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
function __c4(j: number): any {
|
|
406
|
+
switch (j) {
|
|
407
|
+
case 0:
|
|
408
|
+
return S.suspend(() =>
|
|
409
|
+
S.Struct({
|
|
410
|
+
fileIngestSourceId: S.String.pipe(T.Label()),
|
|
411
|
+
}).pipe(
|
|
412
|
+
T.Http({
|
|
413
|
+
method: "GET",
|
|
414
|
+
uri: "/public/api/v1/fileIngestSource/{fileIngestSourceId}",
|
|
415
|
+
code: 200,
|
|
416
|
+
}),
|
|
417
|
+
),
|
|
418
|
+
).annotate({ identifier: "GetFileIngestSourceRequest" });
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function __c5(j: number): any {
|
|
422
|
+
switch (j) {
|
|
423
|
+
case 0:
|
|
424
|
+
return S.suspend(() =>
|
|
425
|
+
S.Struct({
|
|
426
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
427
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
428
|
+
}).pipe(T.Http({ method: "GET", uri: "/public/api/v1/fileIngestSource", code: 200 })),
|
|
429
|
+
).annotate({ identifier: "ListFileIngestSourcesRequest" });
|
|
430
|
+
case 1:
|
|
431
|
+
return S.Array(__S(4, __c1, 0));
|
|
432
|
+
case 2:
|
|
433
|
+
return S.suspend(() =>
|
|
434
|
+
S.Struct({
|
|
435
|
+
nextPageToken: S.optional(S.String),
|
|
436
|
+
result: __S(21, __c5, 1),
|
|
437
|
+
}),
|
|
438
|
+
).annotate({ identifier: "PaginatedFileIngestSource" });
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
function __c6(j: number): any {
|
|
442
|
+
switch (j) {
|
|
443
|
+
case 0:
|
|
444
|
+
return S.suspend(() =>
|
|
445
|
+
S.Struct({
|
|
446
|
+
credentialsType: S.String,
|
|
447
|
+
accessKeyId: S.optional(S.String),
|
|
448
|
+
secretAccessKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
449
|
+
}),
|
|
450
|
+
).annotate({ identifier: "CloudStorageCredentialsPatchBasicAwsCredentialsPatch" });
|
|
451
|
+
case 1:
|
|
452
|
+
return S.suspend(() =>
|
|
453
|
+
S.Struct({
|
|
454
|
+
credentialsType: S.String,
|
|
455
|
+
externalRoleArn: S.optional(S.String),
|
|
456
|
+
}),
|
|
457
|
+
).annotate({ identifier: "CloudStorageCredentialsPatchExternalIamRolePatch" });
|
|
458
|
+
case 2:
|
|
459
|
+
return S.Union([__S(24, __c6, 0), __S(25, __c6, 1)]);
|
|
460
|
+
case 3:
|
|
461
|
+
return S.suspend(() =>
|
|
462
|
+
S.Struct({
|
|
463
|
+
fileIngestSourceId: S.String.pipe(T.Label()),
|
|
464
|
+
name: S.optional(S.String),
|
|
465
|
+
description: S.optional(S.String),
|
|
466
|
+
cloudStorageCredentials: S.optional(__S(26, __c6, 2)),
|
|
467
|
+
}).pipe(
|
|
468
|
+
T.Http({
|
|
469
|
+
method: "PATCH",
|
|
470
|
+
uri: "/public/api/v1/fileIngestSource/{fileIngestSourceId}",
|
|
471
|
+
code: 200,
|
|
472
|
+
}),
|
|
473
|
+
),
|
|
474
|
+
).annotate({ identifier: "UpdateFileIngestSourceRequest" });
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
478
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
479
|
+
return (__s[i] ??= __L.at(f, j));
|
|
480
|
+
}
|