@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,580 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-starburst-galaxy/specs/{v1,v2}.json). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { StarburstGalaxyServiceErrors } from "../errors.ts";
|
|
7
|
+
import {
|
|
8
|
+
StarburstGalaxyProtocol,
|
|
9
|
+
type StarburstGalaxyOpError,
|
|
10
|
+
type StarburstGalaxyOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
import * as T from "../traits.ts";
|
|
14
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
15
|
+
const __s: any[] = [];
|
|
16
|
+
|
|
17
|
+
export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
|
|
18
|
+
|
|
19
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
20
|
+
const TELEMETRY = {
|
|
21
|
+
system: "starburst-galaxy-api",
|
|
22
|
+
responseHeaders: [
|
|
23
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
24
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
25
|
+
],
|
|
26
|
+
prefix: "StarburstGalaxy",
|
|
27
|
+
service: "DataQualityMetricsService",
|
|
28
|
+
labels: "starburst_galaxy",
|
|
29
|
+
propagate: "w3c",
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
export class BadRequest
|
|
33
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
34
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
35
|
+
message: S.String,
|
|
36
|
+
body: S.Unknown,
|
|
37
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
38
|
+
}).pipe(C.withBadRequestError),
|
|
39
|
+
[{ status: 400 }],
|
|
40
|
+
) {}
|
|
41
|
+
|
|
42
|
+
export class Forbidden
|
|
43
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
44
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
45
|
+
message: S.String,
|
|
46
|
+
body: S.Unknown,
|
|
47
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
48
|
+
}).pipe(C.withAuthError),
|
|
49
|
+
[{ status: 403 }],
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
export class NotFound
|
|
53
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
54
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
55
|
+
message: S.String,
|
|
56
|
+
body: S.Unknown,
|
|
57
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
58
|
+
}).pipe(C.withBadRequestError),
|
|
59
|
+
[{ status: 404 }],
|
|
60
|
+
) {}
|
|
61
|
+
|
|
62
|
+
export interface GetCatalogDataQualitySummaryRequest {
|
|
63
|
+
/** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
64
|
+
catalogId: string;
|
|
65
|
+
}
|
|
66
|
+
/** Summaries for each day (read only) */
|
|
67
|
+
export interface DailyQualityEvaluationSummary {
|
|
68
|
+
/** Summarization day */
|
|
69
|
+
day: string;
|
|
70
|
+
/** Number of total evaluations conducted on the specified day */
|
|
71
|
+
totalEvaluations: number;
|
|
72
|
+
/** Number of successful evaluations conducted on the specified day */
|
|
73
|
+
successfulEvaluations: number;
|
|
74
|
+
/** Number of failed evaluations conducted on the specified day */
|
|
75
|
+
failedEvaluations: number;
|
|
76
|
+
}
|
|
77
|
+
/** Summaries for each day (read only) */
|
|
78
|
+
export type DataQualityCatalogSummaryDailySummariesList = Array<DailyQualityEvaluationSummary>;
|
|
79
|
+
/** Summaries per schema (read only) */
|
|
80
|
+
export interface SchemaDataQualityChecksRollup {
|
|
81
|
+
/** Schema ID */
|
|
82
|
+
schemaId: string;
|
|
83
|
+
/** Total number of quality checks */
|
|
84
|
+
numberOfChecks: number;
|
|
85
|
+
/** Number of evaluated quality checks */
|
|
86
|
+
evaluatedChecks: number;
|
|
87
|
+
/** Number of failed quality checks */
|
|
88
|
+
failedChecks: number;
|
|
89
|
+
/** Number of successful quality checks */
|
|
90
|
+
successfulChecks: number;
|
|
91
|
+
/** Number of not yet evaluated quality checks */
|
|
92
|
+
notYetEvaluatedChecks: number;
|
|
93
|
+
}
|
|
94
|
+
/** Summaries per schema (read only) */
|
|
95
|
+
export type DataQualityCatalogSummarySchemaSummariesList = Array<SchemaDataQualityChecksRollup>;
|
|
96
|
+
export type Severity = "Low" | "Medium" | "High" | "Critical";
|
|
97
|
+
/** Counts grouped by severities (read only) */
|
|
98
|
+
export interface SeverityEvaluationCounts {
|
|
99
|
+
/** Data quality check severity */
|
|
100
|
+
severity: Severity;
|
|
101
|
+
/** Total evaluations */
|
|
102
|
+
totalEvaluations: number;
|
|
103
|
+
/** Successful evaluations */
|
|
104
|
+
successfulEvaluations: number;
|
|
105
|
+
/** Failed evaluations */
|
|
106
|
+
failedEvaluations: number;
|
|
107
|
+
}
|
|
108
|
+
/** Counts grouped by severities (read only) */
|
|
109
|
+
export type DataQualityCatalogSummarySeverityCountsList = Array<SeverityEvaluationCounts>;
|
|
110
|
+
export type Category = "Validity" | "Completeness" | "Consistency" | "Accuracy" | "None";
|
|
111
|
+
/** Counts grouped by category (read only) */
|
|
112
|
+
export interface CategoryEvaluationCounts {
|
|
113
|
+
/** Data quality check category */
|
|
114
|
+
category: Category;
|
|
115
|
+
/** Total evaluations */
|
|
116
|
+
totalEvaluations: number;
|
|
117
|
+
/** Successful evaluations */
|
|
118
|
+
successfulEvaluations: number;
|
|
119
|
+
/** Failed evaluations */
|
|
120
|
+
failedEvaluations: number;
|
|
121
|
+
}
|
|
122
|
+
/** Counts grouped by category (read only) */
|
|
123
|
+
export type DataQualityCatalogSummaryCategoryCountsList = Array<CategoryEvaluationCounts>;
|
|
124
|
+
/** Data quality catalog summary (read only) */
|
|
125
|
+
export interface DataQualityCatalogSummary {
|
|
126
|
+
/** Summaries for each day (read only) */
|
|
127
|
+
dailySummaries: DataQualityCatalogSummaryDailySummariesList;
|
|
128
|
+
/** Summaries per schema (read only) */
|
|
129
|
+
schemaSummaries: DataQualityCatalogSummarySchemaSummariesList;
|
|
130
|
+
/** Counts grouped by severities (read only) */
|
|
131
|
+
severityCounts: DataQualityCatalogSummarySeverityCountsList;
|
|
132
|
+
/** Counts grouped by category (read only) */
|
|
133
|
+
categoryCounts: DataQualityCatalogSummaryCategoryCountsList;
|
|
134
|
+
}
|
|
135
|
+
export interface GetCatalogSchemaDataQualitySummaryRequest {
|
|
136
|
+
/** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
137
|
+
catalogId: string;
|
|
138
|
+
/** A schema from a catalog */
|
|
139
|
+
schemaId: string;
|
|
140
|
+
}
|
|
141
|
+
/** Summaries for each day (read only) */
|
|
142
|
+
export type DataQualitySchemaSummaryDailySummariesList = Array<DailyQualityEvaluationSummary>;
|
|
143
|
+
/** Summaries per table (read only) */
|
|
144
|
+
export interface TableDataQualityChecksRollup {
|
|
145
|
+
/** Table ID */
|
|
146
|
+
tableId: string;
|
|
147
|
+
/** Total number of quality checks */
|
|
148
|
+
numberOfChecks: number;
|
|
149
|
+
/** Number of evaluated quality checks */
|
|
150
|
+
evaluatedChecks: number;
|
|
151
|
+
/** Number of failed quality checks */
|
|
152
|
+
failedChecks: number;
|
|
153
|
+
/** Number of successful quality checks */
|
|
154
|
+
successfulChecks: number;
|
|
155
|
+
/** Number of not yet evaluated quality checks */
|
|
156
|
+
notYetEvaluatedChecks: number;
|
|
157
|
+
}
|
|
158
|
+
/** Summaries per table (read only) */
|
|
159
|
+
export type DataQualitySchemaSummaryTableSummariesList = Array<TableDataQualityChecksRollup>;
|
|
160
|
+
/** Counts grouped by severities (read only) */
|
|
161
|
+
export type DataQualitySchemaSummarySeverityCountsList = Array<SeverityEvaluationCounts>;
|
|
162
|
+
/** Counts grouped by category (read only) */
|
|
163
|
+
export type DataQualitySchemaSummaryCategoryCountsList = Array<CategoryEvaluationCounts>;
|
|
164
|
+
/** Data quality schema summary (read only) */
|
|
165
|
+
export interface DataQualitySchemaSummary {
|
|
166
|
+
/** Summaries for each day (read only) */
|
|
167
|
+
dailySummaries: DataQualitySchemaSummaryDailySummariesList;
|
|
168
|
+
/** Summaries per table (read only) */
|
|
169
|
+
tableSummaries: DataQualitySchemaSummaryTableSummariesList;
|
|
170
|
+
/** Counts grouped by severities (read only) */
|
|
171
|
+
severityCounts: DataQualitySchemaSummarySeverityCountsList;
|
|
172
|
+
/** Counts grouped by category (read only) */
|
|
173
|
+
categoryCounts: DataQualitySchemaSummaryCategoryCountsList;
|
|
174
|
+
}
|
|
175
|
+
export interface GetCatalogSchemaTableDataQualitySummaryRequest {
|
|
176
|
+
/** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
177
|
+
catalogId: string;
|
|
178
|
+
/** A schema from a catalog */
|
|
179
|
+
schemaId: string;
|
|
180
|
+
/** A table from a catalog */
|
|
181
|
+
tableId: string;
|
|
182
|
+
}
|
|
183
|
+
/** Summaries for each day (read only) */
|
|
184
|
+
export type DataQualityTableSummaryDailySummariesList = Array<DailyQualityEvaluationSummary>;
|
|
185
|
+
/** Summaries per quality check (read only) */
|
|
186
|
+
export interface DataQualityCheckRollup {
|
|
187
|
+
/** Data Quality check ID (read only) */
|
|
188
|
+
dataQualityCheckId: string;
|
|
189
|
+
/** Data Quality check name */
|
|
190
|
+
name: string;
|
|
191
|
+
/** Total number of quality checks */
|
|
192
|
+
numberOfChecks: number;
|
|
193
|
+
/** Number of evaluated quality checks */
|
|
194
|
+
evaluatedChecks: number;
|
|
195
|
+
/** Number of failed quality checks */
|
|
196
|
+
failedChecks: number;
|
|
197
|
+
/** Number of successful quality checks */
|
|
198
|
+
successfulChecks: number;
|
|
199
|
+
/** Number of not yet evaluated quality checks */
|
|
200
|
+
notYetEvaluatedChecks: number;
|
|
201
|
+
}
|
|
202
|
+
/** Summaries per quality check (read only) */
|
|
203
|
+
export type DataQualityTableSummaryQualityCheckSummariesList = Array<DataQualityCheckRollup>;
|
|
204
|
+
/** Counts grouped by severities (read only) */
|
|
205
|
+
export type DataQualityTableSummarySeverityCountsList = Array<SeverityEvaluationCounts>;
|
|
206
|
+
/** Counts grouped by category (read only) */
|
|
207
|
+
export type DataQualityTableSummaryCategoryCountsList = Array<CategoryEvaluationCounts>;
|
|
208
|
+
/** Data quality summary (read only) */
|
|
209
|
+
export interface DataQualityTableSummary {
|
|
210
|
+
/** Summaries for each day (read only) */
|
|
211
|
+
dailySummaries: DataQualityTableSummaryDailySummariesList;
|
|
212
|
+
/** Summaries per quality check (read only) */
|
|
213
|
+
qualityCheckSummaries: DataQualityTableSummaryQualityCheckSummariesList;
|
|
214
|
+
/** Counts grouped by severities (read only) */
|
|
215
|
+
severityCounts: DataQualityTableSummarySeverityCountsList;
|
|
216
|
+
/** Counts grouped by category (read only) */
|
|
217
|
+
categoryCounts: DataQualityTableSummaryCategoryCountsList;
|
|
218
|
+
}
|
|
219
|
+
export interface GetDataQualitySummaryRequest {}
|
|
220
|
+
/** Summaries for each day (read only) */
|
|
221
|
+
export type DataQualityAccountSummaryDailySummariesList = Array<DailyQualityEvaluationSummary>;
|
|
222
|
+
/** Tags assigned directly to this catalog (read only) */
|
|
223
|
+
export interface CatalogDataQualityChecksRollupTagsItem {
|
|
224
|
+
/** Tag ID (read only) */
|
|
225
|
+
tagId: string;
|
|
226
|
+
/** Tag name (read only) */
|
|
227
|
+
name: string;
|
|
228
|
+
}
|
|
229
|
+
/** Tags assigned directly to this catalog (read only) */
|
|
230
|
+
export type CatalogDataQualityChecksRollupTagsList = Array<CatalogDataQualityChecksRollupTagsItem>;
|
|
231
|
+
/** Summaries per catalog (read only) */
|
|
232
|
+
export interface CatalogDataQualityChecksRollup {
|
|
233
|
+
/** Catalog ID (read only) */
|
|
234
|
+
catalogId: string;
|
|
235
|
+
/** Catalog name (read only) */
|
|
236
|
+
catalogName: string;
|
|
237
|
+
/** Type segment of the type-specific catalog endpoint that serves this catalog. Absent if no such endpoint exists (read only) */
|
|
238
|
+
catalogType?: string | undefined;
|
|
239
|
+
/** Tags assigned directly to this catalog (read only) */
|
|
240
|
+
tags?: CatalogDataQualityChecksRollupTagsList | undefined;
|
|
241
|
+
/** Total number of quality checks */
|
|
242
|
+
numberOfChecks: number;
|
|
243
|
+
/** Number of evaluated quality checks */
|
|
244
|
+
evaluatedChecks: number;
|
|
245
|
+
/** Number of failed quality checks */
|
|
246
|
+
failedChecks: number;
|
|
247
|
+
/** Number of successful quality checks */
|
|
248
|
+
successfulChecks: number;
|
|
249
|
+
/** Number of not yet evaluated quality checks */
|
|
250
|
+
notYetEvaluatedChecks: number;
|
|
251
|
+
}
|
|
252
|
+
/** Summaries per catalog (read only) */
|
|
253
|
+
export type DataQualityAccountSummaryCatalogSummariesList = Array<CatalogDataQualityChecksRollup>;
|
|
254
|
+
/** Counts grouped by severities (read only) */
|
|
255
|
+
export type DataQualityAccountSummarySeverityCountsList = Array<SeverityEvaluationCounts>;
|
|
256
|
+
/** Counts grouped by category (read only) */
|
|
257
|
+
export type DataQualityAccountSummaryCategoryCountsList = Array<CategoryEvaluationCounts>;
|
|
258
|
+
/** Data quality account summary (read only) */
|
|
259
|
+
export interface DataQualityAccountSummary {
|
|
260
|
+
/** Summaries for each day (read only) */
|
|
261
|
+
dailySummaries: DataQualityAccountSummaryDailySummariesList;
|
|
262
|
+
/** Summaries per catalog (read only) */
|
|
263
|
+
catalogSummaries: DataQualityAccountSummaryCatalogSummariesList;
|
|
264
|
+
/** Counts grouped by severities (read only) */
|
|
265
|
+
severityCounts: DataQualityAccountSummarySeverityCountsList;
|
|
266
|
+
/** Counts grouped by category (read only) */
|
|
267
|
+
categoryCounts: DataQualityAccountSummaryCategoryCountsList;
|
|
268
|
+
}
|
|
269
|
+
/** Any fields/values that are invalid or incorrect */
|
|
270
|
+
export type BadRequestFieldsList = Array<string>;
|
|
271
|
+
/** Invalid request */
|
|
272
|
+
export interface BadRequest2 {
|
|
273
|
+
/** Description of the error */
|
|
274
|
+
message?: string | undefined;
|
|
275
|
+
/** Any fields/values that are invalid or incorrect */
|
|
276
|
+
fields?: BadRequestFieldsList | undefined;
|
|
277
|
+
}
|
|
278
|
+
/** Authorization failed */
|
|
279
|
+
export interface Forbidden2 {
|
|
280
|
+
message?: string | undefined;
|
|
281
|
+
}
|
|
282
|
+
/** Any fields/values that weren't found */
|
|
283
|
+
export type NotFoundFieldsList = Array<string>;
|
|
284
|
+
/** A resource or required component was not found */
|
|
285
|
+
export interface NotFound2 {
|
|
286
|
+
/** Name of the resource */
|
|
287
|
+
message: string;
|
|
288
|
+
/** Violation description */
|
|
289
|
+
description?: string | undefined;
|
|
290
|
+
/** Any fields/values that weren't found */
|
|
291
|
+
fields?: NotFoundFieldsList | undefined;
|
|
292
|
+
}
|
|
293
|
+
export type GetCatalogDataQualitySummaryError =
|
|
294
|
+
| BadRequest
|
|
295
|
+
| Forbidden
|
|
296
|
+
| NotFound
|
|
297
|
+
| StarburstGalaxyOpError;
|
|
298
|
+
/** Get data quality summary for a catalog */
|
|
299
|
+
export const getCatalogDataQualitySummary: API.OperationMethod<
|
|
300
|
+
GetCatalogDataQualitySummaryRequest,
|
|
301
|
+
DataQualityCatalogSummary,
|
|
302
|
+
GetCatalogDataQualitySummaryError,
|
|
303
|
+
StarburstGalaxyOpContext
|
|
304
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
305
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetCatalogDataQualitySummaryRequest>,
|
|
306
|
+
output: __S(3, __c0, 3) as any as S.Schema<DataQualityCatalogSummary>,
|
|
307
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
308
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
309
|
+
protocol: StarburstGalaxyProtocol,
|
|
310
|
+
retry: Retry.Retry,
|
|
311
|
+
telemetry: TELEMETRY,
|
|
312
|
+
span: "GetCatalogDataQualitySummary",
|
|
313
|
+
}));
|
|
314
|
+
|
|
315
|
+
export type GetCatalogSchemaDataQualitySummaryError =
|
|
316
|
+
| BadRequest
|
|
317
|
+
| Forbidden
|
|
318
|
+
| NotFound
|
|
319
|
+
| StarburstGalaxyOpError;
|
|
320
|
+
/** Get data quality summary for a schema */
|
|
321
|
+
export const getCatalogSchemaDataQualitySummary: API.OperationMethod<
|
|
322
|
+
GetCatalogSchemaDataQualitySummaryRequest,
|
|
323
|
+
DataQualitySchemaSummary,
|
|
324
|
+
GetCatalogSchemaDataQualitySummaryError,
|
|
325
|
+
StarburstGalaxyOpContext
|
|
326
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
327
|
+
input: __S(16, __c2, 0) as any as S.Schema<GetCatalogSchemaDataQualitySummaryRequest>,
|
|
328
|
+
output: __S(19, __c2, 3) as any as S.Schema<DataQualitySchemaSummary>,
|
|
329
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
330
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
331
|
+
protocol: StarburstGalaxyProtocol,
|
|
332
|
+
retry: Retry.Retry,
|
|
333
|
+
telemetry: TELEMETRY,
|
|
334
|
+
span: "GetCatalogSchemaDataQualitySummary",
|
|
335
|
+
}));
|
|
336
|
+
|
|
337
|
+
export type GetCatalogSchemaTableDataQualitySummaryError =
|
|
338
|
+
| BadRequest
|
|
339
|
+
| Forbidden
|
|
340
|
+
| NotFound
|
|
341
|
+
| StarburstGalaxyOpError;
|
|
342
|
+
/** Get data quality summary for a table */
|
|
343
|
+
export const getCatalogSchemaTableDataQualitySummary: API.OperationMethod<
|
|
344
|
+
GetCatalogSchemaTableDataQualitySummaryRequest,
|
|
345
|
+
DataQualityTableSummary,
|
|
346
|
+
GetCatalogSchemaTableDataQualitySummaryError,
|
|
347
|
+
StarburstGalaxyOpContext
|
|
348
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
349
|
+
input: __S(24, __c3, 0) as any as S.Schema<GetCatalogSchemaTableDataQualitySummaryRequest>,
|
|
350
|
+
output: __S(27, __c3, 3) as any as S.Schema<DataQualityTableSummary>,
|
|
351
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
352
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
353
|
+
protocol: StarburstGalaxyProtocol,
|
|
354
|
+
retry: Retry.Retry,
|
|
355
|
+
telemetry: TELEMETRY,
|
|
356
|
+
span: "GetCatalogSchemaTableDataQualitySummary",
|
|
357
|
+
}));
|
|
358
|
+
|
|
359
|
+
export type GetDataQualitySummaryError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
360
|
+
/** Get data quality summary for an account */
|
|
361
|
+
export const getDataQualitySummary: API.OperationMethod<
|
|
362
|
+
GetDataQualitySummaryRequest,
|
|
363
|
+
DataQualityAccountSummary,
|
|
364
|
+
GetDataQualitySummaryError,
|
|
365
|
+
StarburstGalaxyOpContext
|
|
366
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
367
|
+
input: __S(32, __c4, 0) as any as S.Schema<GetDataQualitySummaryRequest>,
|
|
368
|
+
output: __S(37, __c4, 5) as any as S.Schema<DataQualityAccountSummary>,
|
|
369
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
370
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
371
|
+
protocol: StarburstGalaxyProtocol,
|
|
372
|
+
retry: Retry.Retry,
|
|
373
|
+
telemetry: TELEMETRY,
|
|
374
|
+
span: "GetDataQualitySummary",
|
|
375
|
+
}));
|
|
376
|
+
|
|
377
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
378
|
+
function __c0(j: number): any {
|
|
379
|
+
switch (j) {
|
|
380
|
+
case 0:
|
|
381
|
+
return S.suspend(() =>
|
|
382
|
+
S.Struct({
|
|
383
|
+
catalogId: S.String.pipe(T.Label()),
|
|
384
|
+
}).pipe(
|
|
385
|
+
T.Http({
|
|
386
|
+
method: "GET",
|
|
387
|
+
uri: "/public/api/v1/catalog/{catalogId}/dataQualitySummary",
|
|
388
|
+
code: 200,
|
|
389
|
+
}),
|
|
390
|
+
),
|
|
391
|
+
).annotate({ identifier: "GetCatalogDataQualitySummaryRequest" });
|
|
392
|
+
case 1:
|
|
393
|
+
return S.suspend(() =>
|
|
394
|
+
S.Struct({
|
|
395
|
+
schemaId: S.String,
|
|
396
|
+
numberOfChecks: S.Number,
|
|
397
|
+
evaluatedChecks: S.Number,
|
|
398
|
+
failedChecks: S.Number,
|
|
399
|
+
successfulChecks: S.Number,
|
|
400
|
+
notYetEvaluatedChecks: S.Number,
|
|
401
|
+
}),
|
|
402
|
+
).annotate({ identifier: "SchemaDataQualityChecksRollup" });
|
|
403
|
+
case 2:
|
|
404
|
+
return S.Array(__S(1, __c0, 1));
|
|
405
|
+
case 3:
|
|
406
|
+
return S.suspend(() =>
|
|
407
|
+
S.Struct({
|
|
408
|
+
dailySummaries: __S(9, __c1, 1),
|
|
409
|
+
schemaSummaries: __S(2, __c0, 2),
|
|
410
|
+
severityCounts: __S(11, __c1, 3),
|
|
411
|
+
categoryCounts: __S(13, __c1, 5),
|
|
412
|
+
}),
|
|
413
|
+
).annotate({ identifier: "DataQualityCatalogSummary" });
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function __c1(j: number): any {
|
|
417
|
+
switch (j) {
|
|
418
|
+
case 0:
|
|
419
|
+
return S.suspend(() =>
|
|
420
|
+
S.Struct({
|
|
421
|
+
day: S.String,
|
|
422
|
+
totalEvaluations: S.Number,
|
|
423
|
+
successfulEvaluations: S.Number,
|
|
424
|
+
failedEvaluations: S.Number,
|
|
425
|
+
}),
|
|
426
|
+
).annotate({ identifier: "DailyQualityEvaluationSummary" });
|
|
427
|
+
case 1:
|
|
428
|
+
return S.Array(__S(8, __c1, 0));
|
|
429
|
+
case 2:
|
|
430
|
+
return S.suspend(() =>
|
|
431
|
+
S.Struct({
|
|
432
|
+
severity: S.String,
|
|
433
|
+
totalEvaluations: S.Number,
|
|
434
|
+
successfulEvaluations: S.Number,
|
|
435
|
+
failedEvaluations: S.Number,
|
|
436
|
+
}),
|
|
437
|
+
).annotate({ identifier: "SeverityEvaluationCounts" });
|
|
438
|
+
case 3:
|
|
439
|
+
return S.Array(__S(10, __c1, 2));
|
|
440
|
+
case 4:
|
|
441
|
+
return S.suspend(() =>
|
|
442
|
+
S.Struct({
|
|
443
|
+
category: S.String,
|
|
444
|
+
totalEvaluations: S.Number,
|
|
445
|
+
successfulEvaluations: S.Number,
|
|
446
|
+
failedEvaluations: S.Number,
|
|
447
|
+
}),
|
|
448
|
+
).annotate({ identifier: "CategoryEvaluationCounts" });
|
|
449
|
+
case 5:
|
|
450
|
+
return S.Array(__S(12, __c1, 4));
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
function __c2(j: number): any {
|
|
454
|
+
switch (j) {
|
|
455
|
+
case 0:
|
|
456
|
+
return S.suspend(() =>
|
|
457
|
+
S.Struct({
|
|
458
|
+
catalogId: S.String.pipe(T.Label()),
|
|
459
|
+
schemaId: S.String.pipe(T.Label()),
|
|
460
|
+
}).pipe(
|
|
461
|
+
T.Http({
|
|
462
|
+
method: "GET",
|
|
463
|
+
uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/dataQualitySummary",
|
|
464
|
+
code: 200,
|
|
465
|
+
}),
|
|
466
|
+
),
|
|
467
|
+
).annotate({ identifier: "GetCatalogSchemaDataQualitySummaryRequest" });
|
|
468
|
+
case 1:
|
|
469
|
+
return S.suspend(() =>
|
|
470
|
+
S.Struct({
|
|
471
|
+
tableId: S.String,
|
|
472
|
+
numberOfChecks: S.Number,
|
|
473
|
+
evaluatedChecks: S.Number,
|
|
474
|
+
failedChecks: S.Number,
|
|
475
|
+
successfulChecks: S.Number,
|
|
476
|
+
notYetEvaluatedChecks: S.Number,
|
|
477
|
+
}),
|
|
478
|
+
).annotate({ identifier: "TableDataQualityChecksRollup" });
|
|
479
|
+
case 2:
|
|
480
|
+
return S.Array(__S(17, __c2, 1));
|
|
481
|
+
case 3:
|
|
482
|
+
return S.suspend(() =>
|
|
483
|
+
S.Struct({
|
|
484
|
+
dailySummaries: __S(9, __c1, 1),
|
|
485
|
+
tableSummaries: __S(18, __c2, 2),
|
|
486
|
+
severityCounts: __S(11, __c1, 3),
|
|
487
|
+
categoryCounts: __S(13, __c1, 5),
|
|
488
|
+
}),
|
|
489
|
+
).annotate({ identifier: "DataQualitySchemaSummary" });
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
function __c3(j: number): any {
|
|
493
|
+
switch (j) {
|
|
494
|
+
case 0:
|
|
495
|
+
return S.suspend(() =>
|
|
496
|
+
S.Struct({
|
|
497
|
+
catalogId: S.String.pipe(T.Label()),
|
|
498
|
+
schemaId: S.String.pipe(T.Label()),
|
|
499
|
+
tableId: S.String.pipe(T.Label()),
|
|
500
|
+
}).pipe(
|
|
501
|
+
T.Http({
|
|
502
|
+
method: "GET",
|
|
503
|
+
uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/dataQualitySummary",
|
|
504
|
+
code: 200,
|
|
505
|
+
}),
|
|
506
|
+
),
|
|
507
|
+
).annotate({ identifier: "GetCatalogSchemaTableDataQualitySummaryRequest" });
|
|
508
|
+
case 1:
|
|
509
|
+
return S.suspend(() =>
|
|
510
|
+
S.Struct({
|
|
511
|
+
dataQualityCheckId: S.String,
|
|
512
|
+
name: S.String,
|
|
513
|
+
numberOfChecks: S.Number,
|
|
514
|
+
evaluatedChecks: S.Number,
|
|
515
|
+
failedChecks: S.Number,
|
|
516
|
+
successfulChecks: S.Number,
|
|
517
|
+
notYetEvaluatedChecks: S.Number,
|
|
518
|
+
}),
|
|
519
|
+
).annotate({ identifier: "DataQualityCheckRollup" });
|
|
520
|
+
case 2:
|
|
521
|
+
return S.Array(__S(25, __c3, 1));
|
|
522
|
+
case 3:
|
|
523
|
+
return S.suspend(() =>
|
|
524
|
+
S.Struct({
|
|
525
|
+
dailySummaries: __S(9, __c1, 1),
|
|
526
|
+
qualityCheckSummaries: __S(26, __c3, 2),
|
|
527
|
+
severityCounts: __S(11, __c1, 3),
|
|
528
|
+
categoryCounts: __S(13, __c1, 5),
|
|
529
|
+
}),
|
|
530
|
+
).annotate({ identifier: "DataQualityTableSummary" });
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
function __c4(j: number): any {
|
|
534
|
+
switch (j) {
|
|
535
|
+
case 0:
|
|
536
|
+
return S.suspend(() =>
|
|
537
|
+
S.Struct({}).pipe(
|
|
538
|
+
T.Http({ method: "GET", uri: "/public/api/v1/dataQualitySummary", code: 200 }),
|
|
539
|
+
),
|
|
540
|
+
).annotate({ identifier: "GetDataQualitySummaryRequest" });
|
|
541
|
+
case 1:
|
|
542
|
+
return S.suspend(() =>
|
|
543
|
+
S.Struct({
|
|
544
|
+
tagId: S.String,
|
|
545
|
+
name: S.String,
|
|
546
|
+
}),
|
|
547
|
+
).annotate({ identifier: "CatalogDataQualityChecksRollupTagsItem" });
|
|
548
|
+
case 2:
|
|
549
|
+
return S.Array(__S(33, __c4, 1));
|
|
550
|
+
case 3:
|
|
551
|
+
return S.suspend(() =>
|
|
552
|
+
S.Struct({
|
|
553
|
+
catalogId: S.String,
|
|
554
|
+
catalogName: S.String,
|
|
555
|
+
catalogType: S.optional(S.String),
|
|
556
|
+
tags: S.optional(__S(34, __c4, 2)),
|
|
557
|
+
numberOfChecks: S.Number,
|
|
558
|
+
evaluatedChecks: S.Number,
|
|
559
|
+
failedChecks: S.Number,
|
|
560
|
+
successfulChecks: S.Number,
|
|
561
|
+
notYetEvaluatedChecks: S.Number,
|
|
562
|
+
}),
|
|
563
|
+
).annotate({ identifier: "CatalogDataQualityChecksRollup" });
|
|
564
|
+
case 4:
|
|
565
|
+
return S.Array(__S(35, __c4, 3));
|
|
566
|
+
case 5:
|
|
567
|
+
return S.suspend(() =>
|
|
568
|
+
S.Struct({
|
|
569
|
+
dailySummaries: __S(9, __c1, 1),
|
|
570
|
+
catalogSummaries: __S(36, __c4, 4),
|
|
571
|
+
severityCounts: __S(11, __c1, 3),
|
|
572
|
+
categoryCounts: __S(13, __c1, 5),
|
|
573
|
+
}),
|
|
574
|
+
).annotate({ identifier: "DataQualityAccountSummary" });
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
578
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
579
|
+
return (__s[i] ??= __L.at(f, j));
|
|
580
|
+
}
|