@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,545 @@
|
|
|
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: "KafkaIngestSourceService",
|
|
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
|
+
/** Kafka broker addresses */
|
|
75
|
+
export type CreateKafkaIngestSourceRequestKafkaBrokersList = Array<string>;
|
|
76
|
+
export type KafkaAuthNoAuthAuthType = "noAuth";
|
|
77
|
+
/** No authentication */
|
|
78
|
+
export interface KafkaAuthNoAuth {
|
|
79
|
+
authType: KafkaAuthNoAuthAuthType;
|
|
80
|
+
}
|
|
81
|
+
export type KafkaAuthSaslPlainAuthAuthType = "saslPlainAuth";
|
|
82
|
+
/** SASL/PLAIN authentication over TLS */
|
|
83
|
+
export interface KafkaAuthSaslPlainAuth {
|
|
84
|
+
authType: KafkaAuthSaslPlainAuthAuthType;
|
|
85
|
+
/** SASL username */
|
|
86
|
+
username: string;
|
|
87
|
+
/** SASL password */
|
|
88
|
+
password: string | Redacted.Redacted<string>;
|
|
89
|
+
}
|
|
90
|
+
export type KafkaAuthSaslScramAuthAuthType = "saslScramAuth";
|
|
91
|
+
export type ScramType = "Sha256" | "Sha512";
|
|
92
|
+
/** SASL/SCRAM authentication over TLS */
|
|
93
|
+
export interface KafkaAuthSaslScramAuth {
|
|
94
|
+
authType: KafkaAuthSaslScramAuthAuthType;
|
|
95
|
+
/** SASL username */
|
|
96
|
+
username: string;
|
|
97
|
+
/** SASL password */
|
|
98
|
+
password: string | Redacted.Redacted<string>;
|
|
99
|
+
/** SCRAM hash algorithm */
|
|
100
|
+
scramType: ScramType | (string & {});
|
|
101
|
+
}
|
|
102
|
+
export type KafkaAuthIamAuthAuthType = "iamAuth";
|
|
103
|
+
/** AWS IAM role authentication */
|
|
104
|
+
export interface KafkaAuthIamAuth {
|
|
105
|
+
authType: KafkaAuthIamAuthAuthType;
|
|
106
|
+
/** ARN of the AWS IAM role */
|
|
107
|
+
awsRoleArn: string;
|
|
108
|
+
}
|
|
109
|
+
/** Kafka authentication configuration */
|
|
110
|
+
export type KafkaAuth =
|
|
111
|
+
| KafkaAuthNoAuth
|
|
112
|
+
| KafkaAuthSaslPlainAuth
|
|
113
|
+
| KafkaAuthSaslScramAuth
|
|
114
|
+
| KafkaAuthIamAuth;
|
|
115
|
+
export interface CreateKafkaIngestSourceRequest {
|
|
116
|
+
/** Name */
|
|
117
|
+
name: string;
|
|
118
|
+
/** Description */
|
|
119
|
+
description?: string | undefined;
|
|
120
|
+
/** Kafka broker addresses */
|
|
121
|
+
kafkaBrokers: CreateKafkaIngestSourceRequestKafkaBrokersList;
|
|
122
|
+
kafkaAuth: KafkaAuth;
|
|
123
|
+
/** Cloud region ID where icehouse ingest work is scheduled */
|
|
124
|
+
cloudRegionId?: string | undefined;
|
|
125
|
+
}
|
|
126
|
+
/** Kafka brokers for this source */
|
|
127
|
+
export type KafkaIngestSourceKafkaBrokersList = Array<string>;
|
|
128
|
+
/** A Kafka source from which ingest tables can be populated */
|
|
129
|
+
export interface KafkaIngestSource {
|
|
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
|
+
/** Ingest source ID */
|
|
133
|
+
kafkaIngestSourceId: string;
|
|
134
|
+
/** Ingest source name */
|
|
135
|
+
name: string;
|
|
136
|
+
/** Ingest source description */
|
|
137
|
+
description?: string | undefined;
|
|
138
|
+
/** Kafka brokers for this source */
|
|
139
|
+
kafkaBrokers: KafkaIngestSourceKafkaBrokersList;
|
|
140
|
+
}
|
|
141
|
+
export interface DeleteKafkaIngestSourceRequest {
|
|
142
|
+
/** A Kafka source from which ingest tables can be populated */
|
|
143
|
+
kafkaIngestSourceId: string;
|
|
144
|
+
}
|
|
145
|
+
export interface DeleteKafkaIngestSourceResponse {}
|
|
146
|
+
export interface GetKafkaIngestSourceRequest {
|
|
147
|
+
/** A Kafka source from which ingest tables can be populated */
|
|
148
|
+
kafkaIngestSourceId: string;
|
|
149
|
+
}
|
|
150
|
+
export interface ListKafkaIngestSourcesRequest {
|
|
151
|
+
/** Pagination token */
|
|
152
|
+
pageToken?: string | undefined;
|
|
153
|
+
/** Page size or 0 for default (current maximum is 100) */
|
|
154
|
+
pageSize?: number | undefined;
|
|
155
|
+
}
|
|
156
|
+
/** A page of results. */
|
|
157
|
+
export type PaginatedKafkaIngestSourceResultList = Array<KafkaIngestSource>;
|
|
158
|
+
export interface PaginatedKafkaIngestSource {
|
|
159
|
+
/** The next page token to use or "" if there are no more pages. */
|
|
160
|
+
nextPageToken?: string | undefined;
|
|
161
|
+
/** A page of results. */
|
|
162
|
+
result: PaginatedKafkaIngestSourceResultList;
|
|
163
|
+
}
|
|
164
|
+
export type KafkaAuthPatchNoAuthPatchAuthType = "noAuth";
|
|
165
|
+
/** No authentication */
|
|
166
|
+
export interface KafkaAuthPatchNoAuthPatch {
|
|
167
|
+
authType: KafkaAuthPatchNoAuthPatchAuthType;
|
|
168
|
+
}
|
|
169
|
+
export type KafkaAuthPatchSaslPlainAuthPatchAuthType = "saslPlainAuth";
|
|
170
|
+
/** SASL/PLAIN authentication over TLS */
|
|
171
|
+
export interface KafkaAuthPatchSaslPlainAuthPatch {
|
|
172
|
+
authType: KafkaAuthPatchSaslPlainAuthPatchAuthType;
|
|
173
|
+
/** SASL username */
|
|
174
|
+
username?: string | undefined;
|
|
175
|
+
/** SASL password */
|
|
176
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
177
|
+
}
|
|
178
|
+
export type KafkaAuthPatchSaslScramAuthPatchAuthType = "saslScramAuth";
|
|
179
|
+
/** SASL/SCRAM authentication over TLS */
|
|
180
|
+
export interface KafkaAuthPatchSaslScramAuthPatch {
|
|
181
|
+
authType: KafkaAuthPatchSaslScramAuthPatchAuthType;
|
|
182
|
+
/** SASL username */
|
|
183
|
+
username?: string | undefined;
|
|
184
|
+
/** SASL password */
|
|
185
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
186
|
+
/** SCRAM hash algorithm */
|
|
187
|
+
scramType?: ScramType | (string & {}) | undefined;
|
|
188
|
+
}
|
|
189
|
+
export type KafkaAuthPatchIamAuthPatchAuthType = "iamAuth";
|
|
190
|
+
/** AWS IAM role authentication */
|
|
191
|
+
export interface KafkaAuthPatchIamAuthPatch {
|
|
192
|
+
authType: KafkaAuthPatchIamAuthPatchAuthType;
|
|
193
|
+
/** ARN of the AWS IAM role */
|
|
194
|
+
awsRoleArn?: string | undefined;
|
|
195
|
+
}
|
|
196
|
+
/** New Kafka auth for the source */
|
|
197
|
+
export type KafkaAuthPatch =
|
|
198
|
+
| KafkaAuthPatchNoAuthPatch
|
|
199
|
+
| KafkaAuthPatchSaslPlainAuthPatch
|
|
200
|
+
| KafkaAuthPatchSaslScramAuthPatch
|
|
201
|
+
| KafkaAuthPatchIamAuthPatch;
|
|
202
|
+
export interface UpdateKafkaIngestSourceRequest {
|
|
203
|
+
/** A Kafka source from which ingest tables can be populated */
|
|
204
|
+
kafkaIngestSourceId: string;
|
|
205
|
+
/** New source name */
|
|
206
|
+
name?: string | undefined;
|
|
207
|
+
/** New source description */
|
|
208
|
+
description?: string | undefined;
|
|
209
|
+
kafkaAuth?: KafkaAuthPatch | undefined;
|
|
210
|
+
}
|
|
211
|
+
export interface UpdateKafkaIngestSourceResponse {}
|
|
212
|
+
/** Any fields/values that are invalid or incorrect */
|
|
213
|
+
export type BadRequestFieldsList = Array<string>;
|
|
214
|
+
/** Invalid request */
|
|
215
|
+
export interface BadRequest2 {
|
|
216
|
+
/** Description of the error */
|
|
217
|
+
message?: string | undefined;
|
|
218
|
+
/** Any fields/values that are invalid or incorrect */
|
|
219
|
+
fields?: BadRequestFieldsList | undefined;
|
|
220
|
+
}
|
|
221
|
+
/** Already exists */
|
|
222
|
+
export interface Exists {
|
|
223
|
+
message?: string | undefined;
|
|
224
|
+
}
|
|
225
|
+
/** Authorization failed */
|
|
226
|
+
export type Forbidden2 = Exists;
|
|
227
|
+
/** Error details (read only) */
|
|
228
|
+
export interface Resourceinfo {
|
|
229
|
+
/** Name of the resource (read only) */
|
|
230
|
+
resourceName: string;
|
|
231
|
+
/** Violation description (read only) */
|
|
232
|
+
description: string;
|
|
233
|
+
}
|
|
234
|
+
/** A specified resource is not found. */
|
|
235
|
+
export interface NotFoundError {
|
|
236
|
+
/** Description of the error */
|
|
237
|
+
message: string;
|
|
238
|
+
detail: Resourceinfo;
|
|
239
|
+
}
|
|
240
|
+
/** Any fields/values that weren't found */
|
|
241
|
+
export type NotFoundFieldsList = Array<string>;
|
|
242
|
+
/** A resource or required component was not found */
|
|
243
|
+
export interface NotFound2 {
|
|
244
|
+
/** Name of the resource */
|
|
245
|
+
message: string;
|
|
246
|
+
/** Violation description */
|
|
247
|
+
description?: string | undefined;
|
|
248
|
+
/** Any fields/values that weren't found */
|
|
249
|
+
fields?: NotFoundFieldsList | undefined;
|
|
250
|
+
}
|
|
251
|
+
export type CreateKafkaIngestSourceError =
|
|
252
|
+
| BadRequest
|
|
253
|
+
| Forbidden
|
|
254
|
+
| NotFound
|
|
255
|
+
| Conflict
|
|
256
|
+
| StarburstGalaxyOpError;
|
|
257
|
+
/** Create a Kafka ingest source **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
258
|
+
export const createKafkaIngestSource: API.OperationMethod<
|
|
259
|
+
CreateKafkaIngestSourceRequest,
|
|
260
|
+
KafkaIngestSource,
|
|
261
|
+
CreateKafkaIngestSourceError,
|
|
262
|
+
StarburstGalaxyOpContext
|
|
263
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
264
|
+
input: __S(4, __c0, 4) as any as S.Schema<CreateKafkaIngestSourceRequest>,
|
|
265
|
+
output: __S(9, __c1, 1) as any as S.Schema<KafkaIngestSource>,
|
|
266
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
267
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
268
|
+
protocol: StarburstGalaxyProtocol,
|
|
269
|
+
retry: Retry.Retry,
|
|
270
|
+
telemetry: TELEMETRY,
|
|
271
|
+
span: "CreateKafkaIngestSource",
|
|
272
|
+
}));
|
|
273
|
+
|
|
274
|
+
export type DeleteKafkaIngestSourceError =
|
|
275
|
+
| BadRequest
|
|
276
|
+
| Forbidden
|
|
277
|
+
| NotFound
|
|
278
|
+
| StarburstGalaxyOpError;
|
|
279
|
+
/** Deletes a Kafka ingest source **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
280
|
+
export const deleteKafkaIngestSource: API.OperationMethod<
|
|
281
|
+
DeleteKafkaIngestSourceRequest,
|
|
282
|
+
DeleteKafkaIngestSourceResponse,
|
|
283
|
+
DeleteKafkaIngestSourceError,
|
|
284
|
+
StarburstGalaxyOpContext
|
|
285
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
286
|
+
input: __S(24, __c3, 0) as any as S.Schema<DeleteKafkaIngestSourceRequest>,
|
|
287
|
+
output: __S(32, __c4, 0) as any as S.Schema<DeleteKafkaIngestSourceResponse>,
|
|
288
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
289
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
290
|
+
protocol: StarburstGalaxyProtocol,
|
|
291
|
+
retry: Retry.Retry,
|
|
292
|
+
telemetry: TELEMETRY,
|
|
293
|
+
span: "DeleteKafkaIngestSource",
|
|
294
|
+
}));
|
|
295
|
+
|
|
296
|
+
export type GetKafkaIngestSourceError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
297
|
+
/** Returns a single kafka ingest source **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
298
|
+
export const getKafkaIngestSource: API.OperationMethod<
|
|
299
|
+
GetKafkaIngestSourceRequest,
|
|
300
|
+
KafkaIngestSource,
|
|
301
|
+
GetKafkaIngestSourceError,
|
|
302
|
+
StarburstGalaxyOpContext
|
|
303
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
304
|
+
input: __S(40, __c5, 0) as any as S.Schema<GetKafkaIngestSourceRequest>,
|
|
305
|
+
output: __S(9, __c1, 1) as any as S.Schema<KafkaIngestSource>,
|
|
306
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
307
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
308
|
+
protocol: StarburstGalaxyProtocol,
|
|
309
|
+
retry: Retry.Retry,
|
|
310
|
+
telemetry: TELEMETRY,
|
|
311
|
+
span: "GetKafkaIngestSource",
|
|
312
|
+
}));
|
|
313
|
+
|
|
314
|
+
export type ListKafkaIngestSourcesError =
|
|
315
|
+
| BadRequest
|
|
316
|
+
| Forbidden
|
|
317
|
+
| NotFound
|
|
318
|
+
| StarburstGalaxyOpError;
|
|
319
|
+
/** Returns all Kafka ingest sources in your account **BETA API:** This API is subject to incompatible changes, or even removal, in the future. */
|
|
320
|
+
export const listKafkaIngestSources: API.PaginatedOperationMethod<
|
|
321
|
+
ListKafkaIngestSourcesRequest,
|
|
322
|
+
PaginatedKafkaIngestSource,
|
|
323
|
+
ListKafkaIngestSourcesError,
|
|
324
|
+
StarburstGalaxyOpContext,
|
|
325
|
+
KafkaIngestSource
|
|
326
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
327
|
+
() => ({
|
|
328
|
+
input: __S(48, __c6, 0) as any as S.Schema<ListKafkaIngestSourcesRequest>,
|
|
329
|
+
output: __S(50, __c6, 2) as any as S.Schema<PaginatedKafkaIngestSource>,
|
|
330
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
331
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
332
|
+
protocol: StarburstGalaxyProtocol,
|
|
333
|
+
retry: Retry.Retry,
|
|
334
|
+
telemetry: TELEMETRY,
|
|
335
|
+
span: "ListKafkaIngestSources",
|
|
336
|
+
pagination: {
|
|
337
|
+
mode: "token",
|
|
338
|
+
inputToken: "pageToken",
|
|
339
|
+
outputToken: "nextPageToken",
|
|
340
|
+
items: "result",
|
|
341
|
+
pageSize: "pageSize",
|
|
342
|
+
} as const,
|
|
343
|
+
}),
|
|
344
|
+
paginateToken,
|
|
345
|
+
) as any;
|
|
346
|
+
|
|
347
|
+
export type UpdateKafkaIngestSourceError =
|
|
348
|
+
| BadRequest
|
|
349
|
+
| Forbidden
|
|
350
|
+
| NotFound
|
|
351
|
+
| Conflict
|
|
352
|
+
| StarburstGalaxyOpError;
|
|
353
|
+
/** Update a Kafka 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. */
|
|
354
|
+
export const updateKafkaIngestSource: API.OperationMethod<
|
|
355
|
+
UpdateKafkaIngestSourceRequest,
|
|
356
|
+
UpdateKafkaIngestSourceResponse,
|
|
357
|
+
UpdateKafkaIngestSourceError,
|
|
358
|
+
StarburstGalaxyOpContext
|
|
359
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
360
|
+
input: __S(60, __c7, 4) as any as S.Schema<UpdateKafkaIngestSourceRequest>,
|
|
361
|
+
output: __S(32, __c4, 0) as any as S.Schema<UpdateKafkaIngestSourceResponse>,
|
|
362
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
363
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
364
|
+
protocol: StarburstGalaxyProtocol,
|
|
365
|
+
retry: Retry.Retry,
|
|
366
|
+
telemetry: TELEMETRY,
|
|
367
|
+
span: "UpdateKafkaIngestSource",
|
|
368
|
+
}));
|
|
369
|
+
|
|
370
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
371
|
+
function __c0(j: number): any {
|
|
372
|
+
switch (j) {
|
|
373
|
+
case 0:
|
|
374
|
+
return S.suspend(() =>
|
|
375
|
+
S.Struct({
|
|
376
|
+
authType: S.String,
|
|
377
|
+
username: S.String,
|
|
378
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
379
|
+
}),
|
|
380
|
+
).annotate({ identifier: "KafkaAuthSaslPlainAuth" });
|
|
381
|
+
case 1:
|
|
382
|
+
return S.suspend(() =>
|
|
383
|
+
S.Struct({
|
|
384
|
+
authType: S.String,
|
|
385
|
+
username: S.String,
|
|
386
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
387
|
+
scramType: S.String,
|
|
388
|
+
}),
|
|
389
|
+
).annotate({ identifier: "KafkaAuthSaslScramAuth" });
|
|
390
|
+
case 2:
|
|
391
|
+
return S.suspend(() =>
|
|
392
|
+
S.Struct({
|
|
393
|
+
authType: S.String,
|
|
394
|
+
awsRoleArn: S.String,
|
|
395
|
+
}),
|
|
396
|
+
).annotate({ identifier: "KafkaAuthIamAuth" });
|
|
397
|
+
case 3:
|
|
398
|
+
return S.Union([__S(16, __c2, 0), __S(0, __c0, 0), __S(1, __c0, 1), __S(2, __c0, 2)]);
|
|
399
|
+
case 4:
|
|
400
|
+
return S.suspend(() =>
|
|
401
|
+
S.Struct({
|
|
402
|
+
name: S.String,
|
|
403
|
+
description: S.optional(S.String),
|
|
404
|
+
kafkaBrokers: __S(8, __c1, 0),
|
|
405
|
+
kafkaAuth: __S(3, __c0, 3),
|
|
406
|
+
cloudRegionId: S.optional(S.String),
|
|
407
|
+
}).pipe(T.Http({ method: "POST", uri: "/public/api/v1/kafkaIngestSource", code: 200 })),
|
|
408
|
+
).annotate({ identifier: "CreateKafkaIngestSourceRequest" });
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function __c1(j: number): any {
|
|
412
|
+
switch (j) {
|
|
413
|
+
case 0:
|
|
414
|
+
return S.Array(S.String);
|
|
415
|
+
case 1:
|
|
416
|
+
return S.suspend(() =>
|
|
417
|
+
S.Struct({
|
|
418
|
+
syncToken: S.String,
|
|
419
|
+
kafkaIngestSourceId: S.String,
|
|
420
|
+
name: S.String,
|
|
421
|
+
description: S.optional(S.String),
|
|
422
|
+
kafkaBrokers: __S(8, __c1, 0),
|
|
423
|
+
}),
|
|
424
|
+
).annotate({ identifier: "KafkaIngestSource" });
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
function __c2(j: number): any {
|
|
428
|
+
switch (j) {
|
|
429
|
+
case 0:
|
|
430
|
+
return S.suspend(() =>
|
|
431
|
+
S.Struct({
|
|
432
|
+
authType: S.String,
|
|
433
|
+
}),
|
|
434
|
+
).annotate({ identifier: "KafkaAuthNoAuth" });
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
function __c3(j: number): any {
|
|
438
|
+
switch (j) {
|
|
439
|
+
case 0:
|
|
440
|
+
return S.suspend(() =>
|
|
441
|
+
S.Struct({
|
|
442
|
+
kafkaIngestSourceId: S.String.pipe(T.Label()),
|
|
443
|
+
}).pipe(
|
|
444
|
+
T.Http({
|
|
445
|
+
method: "DELETE",
|
|
446
|
+
uri: "/public/api/v1/kafkaIngestSource/{kafkaIngestSourceId}",
|
|
447
|
+
code: 200,
|
|
448
|
+
}),
|
|
449
|
+
),
|
|
450
|
+
).annotate({ identifier: "DeleteKafkaIngestSourceRequest" });
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
function __c4(j: number): any {
|
|
454
|
+
switch (j) {
|
|
455
|
+
case 0:
|
|
456
|
+
return S.suspend(() => S.Struct({})).annotate({
|
|
457
|
+
identifier: "DeleteKafkaIngestSourceResponse",
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function __c5(j: number): any {
|
|
462
|
+
switch (j) {
|
|
463
|
+
case 0:
|
|
464
|
+
return S.suspend(() =>
|
|
465
|
+
S.Struct({
|
|
466
|
+
kafkaIngestSourceId: S.String.pipe(T.Label()),
|
|
467
|
+
}).pipe(
|
|
468
|
+
T.Http({
|
|
469
|
+
method: "GET",
|
|
470
|
+
uri: "/public/api/v1/kafkaIngestSource/{kafkaIngestSourceId}",
|
|
471
|
+
code: 200,
|
|
472
|
+
}),
|
|
473
|
+
),
|
|
474
|
+
).annotate({ identifier: "GetKafkaIngestSourceRequest" });
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
function __c6(j: number): any {
|
|
478
|
+
switch (j) {
|
|
479
|
+
case 0:
|
|
480
|
+
return S.suspend(() =>
|
|
481
|
+
S.Struct({
|
|
482
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
483
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
484
|
+
}).pipe(T.Http({ method: "GET", uri: "/public/api/v1/kafkaIngestSource", code: 200 })),
|
|
485
|
+
).annotate({ identifier: "ListKafkaIngestSourcesRequest" });
|
|
486
|
+
case 1:
|
|
487
|
+
return S.Array(__S(9, __c1, 1));
|
|
488
|
+
case 2:
|
|
489
|
+
return S.suspend(() =>
|
|
490
|
+
S.Struct({
|
|
491
|
+
nextPageToken: S.optional(S.String),
|
|
492
|
+
result: __S(49, __c6, 1),
|
|
493
|
+
}),
|
|
494
|
+
).annotate({ identifier: "PaginatedKafkaIngestSource" });
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
function __c7(j: number): any {
|
|
498
|
+
switch (j) {
|
|
499
|
+
case 0:
|
|
500
|
+
return S.suspend(() =>
|
|
501
|
+
S.Struct({
|
|
502
|
+
authType: S.String,
|
|
503
|
+
username: S.optional(S.String),
|
|
504
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
505
|
+
}),
|
|
506
|
+
).annotate({ identifier: "KafkaAuthPatchSaslPlainAuthPatch" });
|
|
507
|
+
case 1:
|
|
508
|
+
return S.suspend(() =>
|
|
509
|
+
S.Struct({
|
|
510
|
+
authType: S.String,
|
|
511
|
+
username: S.optional(S.String),
|
|
512
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
513
|
+
scramType: S.optional(S.String),
|
|
514
|
+
}),
|
|
515
|
+
).annotate({ identifier: "KafkaAuthPatchSaslScramAuthPatch" });
|
|
516
|
+
case 2:
|
|
517
|
+
return S.suspend(() =>
|
|
518
|
+
S.Struct({
|
|
519
|
+
authType: S.String,
|
|
520
|
+
awsRoleArn: S.optional(S.String),
|
|
521
|
+
}),
|
|
522
|
+
).annotate({ identifier: "KafkaAuthPatchIamAuthPatch" });
|
|
523
|
+
case 3:
|
|
524
|
+
return S.Union([__S(16, __c2, 0), __S(56, __c7, 0), __S(57, __c7, 1), __S(58, __c7, 2)]);
|
|
525
|
+
case 4:
|
|
526
|
+
return S.suspend(() =>
|
|
527
|
+
S.Struct({
|
|
528
|
+
kafkaIngestSourceId: S.String.pipe(T.Label()),
|
|
529
|
+
name: S.optional(S.String),
|
|
530
|
+
description: S.optional(S.String),
|
|
531
|
+
kafkaAuth: S.optional(__S(59, __c7, 3)),
|
|
532
|
+
}).pipe(
|
|
533
|
+
T.Http({
|
|
534
|
+
method: "PATCH",
|
|
535
|
+
uri: "/public/api/v1/kafkaIngestSource/{kafkaIngestSourceId}",
|
|
536
|
+
code: 200,
|
|
537
|
+
}),
|
|
538
|
+
),
|
|
539
|
+
).annotate({ identifier: "UpdateKafkaIngestSourceRequest" });
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
543
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
544
|
+
return (__s[i] ??= __L.at(f, j));
|
|
545
|
+
}
|