@distilled.cloud/clickhouse-cloud 0.0.0 → 1.0.0-rc.22
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 +134 -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 +34 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +58 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +49 -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 +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +35 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/api_keys.d.ts +175 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +2 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/backup.d.ts +117 -0
- package/lib/services/backup.d.ts.map +1 -0
- package/lib/services/backup.js +2 -0
- package/lib/services/backup.js.map +1 -0
- package/lib/services/billing.d.ts +69 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +2 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/click_pipes.d.ts +1637 -0
- package/lib/services/click_pipes.d.ts.map +1 -0
- package/lib/services/click_pipes.js +31 -0
- package/lib/services/click_pipes.js.map +1 -0
- package/lib/services/index.d.ts +14 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +13 -0
- package/lib/services/organization.d.ts +336 -0
- package/lib/services/organization.d.ts.map +1 -0
- package/lib/services/organization.js +2 -0
- package/lib/services/organization.js.map +1 -0
- package/lib/services/postgres.d.ts +726 -0
- package/lib/services/postgres.d.ts.map +1 -0
- package/lib/services/postgres.js +31 -0
- package/lib/services/postgres.js.map +1 -0
- package/lib/services/prometheus.d.ts +71 -0
- package/lib/services/prometheus.d.ts.map +1 -0
- package/lib/services/prometheus.js +2 -0
- package/lib/services/prometheus.js.map +1 -0
- package/lib/services/query_api_endpoints.d.ts +189 -0
- package/lib/services/query_api_endpoints.d.ts.map +1 -0
- package/lib/services/query_api_endpoints.js +2 -0
- package/lib/services/query_api_endpoints.js.map +1 -0
- package/lib/services/role_management.d.ts +159 -0
- package/lib/services/role_management.d.ts.map +1 -0
- package/lib/services/role_management.js +2 -0
- package/lib/services/role_management.js.map +1 -0
- package/lib/services/saved_queries.d.ts +129 -0
- package/lib/services/saved_queries.d.ts.map +1 -0
- package/lib/services/saved_queries.js +2 -0
- package/lib/services/saved_queries.js.map +1 -0
- package/lib/services/service.d.ts +886 -0
- package/lib/services/service.d.ts.map +1 -0
- package/lib/services/service.js +41 -0
- package/lib/services/service.js.map +1 -0
- package/lib/services/udf.d.ts +373 -0
- package/lib/services/udf.d.ts.map +1 -0
- package/lib/services/udf.js +24 -0
- package/lib/services/udf.js.map +1 -0
- package/lib/services/user_management.d.ts +150 -0
- package/lib/services/user_management.d.ts.map +1 -0
- package/lib/services/user_management.js +2 -0
- package/lib/services/user_management.js.map +1 -0
- package/lib/services.lazy/api_keys.js +1 -0
- package/lib/services.lazy/backup.js +1 -0
- package/lib/services.lazy/billing.js +1 -0
- package/lib/services.lazy/click_pipes.js +3 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/organization.js +1 -0
- package/lib/services.lazy/postgres.js +4 -0
- package/lib/services.lazy/prometheus.js +1 -0
- package/lib/services.lazy/query_api_endpoints.js +1 -0
- package/lib/services.lazy/role_management.js +1 -0
- package/lib/services.lazy/saved_queries.js +1 -0
- package/lib/services.lazy/service.js +4 -0
- package/lib/services.lazy/udf.js +3 -0
- package/lib/services.lazy/user_management.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/lib/unstable-services/backup.d.ts +165 -0
- package/lib/unstable-services/backup.d.ts.map +1 -0
- package/lib/unstable-services/backup.js +2 -0
- package/lib/unstable-services/backup.js.map +1 -0
- package/lib/unstable-services/billing.d.ts +84 -0
- package/lib/unstable-services/billing.d.ts.map +1 -0
- package/lib/unstable-services/billing.js +2 -0
- package/lib/unstable-services/billing.js.map +1 -0
- package/lib/unstable-services/click_pipes.d.ts +324 -0
- package/lib/unstable-services/click_pipes.d.ts.map +1 -0
- package/lib/unstable-services/click_pipes.js +2 -0
- package/lib/unstable-services/click_pipes.js.map +1 -0
- package/lib/unstable-services/click_stack.d.ts +3538 -0
- package/lib/unstable-services/click_stack.d.ts.map +1 -0
- package/lib/unstable-services/click_stack.js +60 -0
- package/lib/unstable-services/click_stack.js.map +1 -0
- package/lib/unstable-services/index.d.ts +11 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +10 -0
- package/lib/unstable-services/notifications.d.ts +166 -0
- package/lib/unstable-services/notifications.d.ts.map +1 -0
- package/lib/unstable-services/notifications.js +2 -0
- package/lib/unstable-services/notifications.js.map +1 -0
- package/lib/unstable-services/organization.d.ts +403 -0
- package/lib/unstable-services/organization.d.ts.map +1 -0
- package/lib/unstable-services/organization.js +26 -0
- package/lib/unstable-services/organization.js.map +1 -0
- package/lib/unstable-services/postgres.d.ts +415 -0
- package/lib/unstable-services/postgres.d.ts.map +1 -0
- package/lib/unstable-services/postgres.js +2 -0
- package/lib/unstable-services/postgres.js.map +1 -0
- package/lib/unstable-services/service.d.ts +244 -0
- package/lib/unstable-services/service.d.ts.map +1 -0
- package/lib/unstable-services/service.js +2 -0
- package/lib/unstable-services/service.js.map +1 -0
- package/lib/unstable-services/snapshot.d.ts +146 -0
- package/lib/unstable-services/snapshot.d.ts.map +1 -0
- package/lib/unstable-services/snapshot.js +2 -0
- package/lib/unstable-services/snapshot.js.map +1 -0
- package/lib/unstable-services/user_management.d.ts +41 -0
- package/lib/unstable-services/user_management.d.ts.map +1 -0
- package/lib/unstable-services/user_management.js +2 -0
- package/lib/unstable-services/user_management.js.map +1 -0
- package/lib/unstable-services.lazy/backup.js +1 -0
- package/lib/unstable-services.lazy/billing.js +1 -0
- package/lib/unstable-services.lazy/click_pipes.js +1 -0
- package/lib/unstable-services.lazy/click_stack.js +4 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/notifications.js +1 -0
- package/lib/unstable-services.lazy/organization.js +4 -0
- package/lib/unstable-services.lazy/postgres.js +1 -0
- package/lib/unstable-services.lazy/service.js +1 -0
- package/lib/unstable-services.lazy/snapshot.js +1 -0
- package/lib/unstable-services.lazy/user_management.js +1 -0
- package/package.json +89 -2
- package/src/credentials.ts +88 -0
- package/src/errors.ts +76 -0
- package/src/index.ts +53 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +76 -0
- package/src/retry.ts +53 -0
- package/src/services/api_keys.ts +466 -0
- package/src/services/backup.ts +347 -0
- package/src/services/billing.ts +170 -0
- package/src/services/click_pipes.ts +3483 -0
- package/src/services/index.ts +14 -0
- package/src/services/organization.ts +901 -0
- package/src/services/postgres.ts +1967 -0
- package/src/services/prometheus.ts +271 -0
- package/src/services/query_api_endpoints.ts +466 -0
- package/src/services/role_management.ts +436 -0
- package/src/services/saved_queries.ts +384 -0
- package/src/services/service.ts +2112 -0
- package/src/services/udf.ts +1019 -0
- package/src/services/user_management.ts +508 -0
- package/src/traits.ts +45 -0
- package/src/unstable-services/backup.ts +422 -0
- package/src/unstable-services/billing.ts +232 -0
- package/src/unstable-services/click_pipes.ts +702 -0
- package/src/unstable-services/click_stack.ts +7114 -0
- package/src/unstable-services/index.ts +11 -0
- package/src/unstable-services/notifications.ts +451 -0
- package/src/unstable-services/organization.ts +1107 -0
- package/src/unstable-services/postgres.ts +1061 -0
- package/src/unstable-services/service.ts +795 -0
- package/src/unstable-services/snapshot.ts +397 -0
- package/src/unstable-services/user_management.ts +127 -0
|
@@ -0,0 +1,1107 @@
|
|
|
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-clickhouse-cloud/specs/openapi.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 { ClickHouseCloudServiceErrors } from "../errors.ts";
|
|
8
|
+
import {
|
|
9
|
+
ClickHouseCloudProtocol,
|
|
10
|
+
type ClickHouseCloudOpError,
|
|
11
|
+
type ClickHouseCloudOpContext,
|
|
12
|
+
} from "../protocol.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
import * as T from "../traits.ts";
|
|
15
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
16
|
+
const __s: any[] = [];
|
|
17
|
+
|
|
18
|
+
export type { ClickHouseCloudOpError, ClickHouseCloudOpContext };
|
|
19
|
+
|
|
20
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
21
|
+
const TELEMETRY = {
|
|
22
|
+
system: "clickhouse-cloud-api",
|
|
23
|
+
responseHeaders: [
|
|
24
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
25
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
26
|
+
],
|
|
27
|
+
prefix: "ClickhouseCloud",
|
|
28
|
+
service: "Organizations",
|
|
29
|
+
labels: "clickhouse_cloud",
|
|
30
|
+
propagate: "w3c",
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
/** The feature is not available to this organization or service: its plan does not include it, it is not enabled for the organization, or it is not set up. The message says which. */
|
|
34
|
+
export class FeatureUnavailable
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<FeatureUnavailable>()("FeatureUnavailable", {
|
|
37
|
+
message: S.String,
|
|
38
|
+
body: /*@__PURE__*/ S.optional(S.Unknown),
|
|
39
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
40
|
+
}).pipe(C.withAuthError),
|
|
41
|
+
[{ status: 403, message: { includes: "Not a byoc organization" } }],
|
|
42
|
+
) {}
|
|
43
|
+
|
|
44
|
+
export interface CreateOrganizationByocInfrastructureEnrollmentTokenRequest {
|
|
45
|
+
/** ID of the requested organization. */
|
|
46
|
+
organizationId: string;
|
|
47
|
+
/** ID of the requested BYOC Infrastructure */
|
|
48
|
+
byocInfrastructureId: string;
|
|
49
|
+
/** Lifetime of the token in seconds: whole minutes between 3600 and 86400. Omitted: four hours */
|
|
50
|
+
ttlSeconds?: number | undefined;
|
|
51
|
+
}
|
|
52
|
+
export interface ByocInfrastructureEnrollmentToken {
|
|
53
|
+
/** One-time token the connector enrolls with. It cannot be read again after this response */
|
|
54
|
+
token: string | Redacted.Redacted<string>;
|
|
55
|
+
/** When the token expires. ISO-8601 */
|
|
56
|
+
expiresAt: string;
|
|
57
|
+
}
|
|
58
|
+
export interface GetByocInfrastructureRequest {
|
|
59
|
+
/** ID of the requested organization. */
|
|
60
|
+
organizationId: string;
|
|
61
|
+
/** ID of the requested BYOC Infrastructure */
|
|
62
|
+
byocInfrastructureId: string;
|
|
63
|
+
}
|
|
64
|
+
/** Region the BYOC infrastructure is located in */
|
|
65
|
+
export type ByocInfrastructureDetailsRegionId =
|
|
66
|
+
| "ap-northeast-1"
|
|
67
|
+
| "ap-northeast-2"
|
|
68
|
+
| "ap-south-1"
|
|
69
|
+
| "ap-southeast-1"
|
|
70
|
+
| "ap-southeast-2"
|
|
71
|
+
| "ca-central-1"
|
|
72
|
+
| "eu-central-1"
|
|
73
|
+
| "eu-west-1"
|
|
74
|
+
| "eu-west-2"
|
|
75
|
+
| "il-central-1"
|
|
76
|
+
| "us-east-1"
|
|
77
|
+
| "us-east-2"
|
|
78
|
+
| "us-west-2"
|
|
79
|
+
| "us-east1"
|
|
80
|
+
| "us-central1"
|
|
81
|
+
| "europe-west2"
|
|
82
|
+
| "europe-west4"
|
|
83
|
+
| "asia-southeast1"
|
|
84
|
+
| "asia-northeast1"
|
|
85
|
+
| "eastus"
|
|
86
|
+
| "eastus2"
|
|
87
|
+
| "westus3"
|
|
88
|
+
| "germanywestcentral"
|
|
89
|
+
| "centralus";
|
|
90
|
+
/** Cloud provider of the region */
|
|
91
|
+
export type ByocInfrastructureDetailsCloudProvider = "gcp" | "aws" | "azure";
|
|
92
|
+
/** Availability zones the infrastructure spans */
|
|
93
|
+
export type ByocInfrastructureDetailsVpcAvailabilityZoneListList = Array<string>;
|
|
94
|
+
/** Customer private subnet IDs or names (BYO-VPC only; exactly one entry on GCP) */
|
|
95
|
+
export type ByocInfrastructureDetailsByoVpcPrivateSubnetIdsList = Array<string>;
|
|
96
|
+
/** Secondary IP range names pinned for pod IPs (GCP BYO-VPC only). Absent when all secondary ranges are used */
|
|
97
|
+
export type ByocInfrastructureDetailsByoVpcPodCidrRangeNamesList = Array<string>;
|
|
98
|
+
/** At least three distinct availability zones of the region. Omitted: the region default */
|
|
99
|
+
export type ByocRestrictedFactsAvailabilityZonesList = Array<string>;
|
|
100
|
+
/** Direct image mode only (required there): IAM roles of the cluster nodes, in `accountId` */
|
|
101
|
+
export type ByocRestrictedFactsNodeRoleArnsList = Array<string>;
|
|
102
|
+
export interface ByocRestrictedFacts {
|
|
103
|
+
/** Name of the EKS cluster the connector runs in */
|
|
104
|
+
clusterName: string;
|
|
105
|
+
/** Node group the platform components run on. Omitted: `system` */
|
|
106
|
+
platformNodeGroup?: string | undefined;
|
|
107
|
+
/** At least three distinct availability zones of the region. Omitted: the region default */
|
|
108
|
+
availabilityZones?: ByocRestrictedFactsAvailabilityZonesList | undefined;
|
|
109
|
+
/** Prefix of the namespace each service runs in. Must match the executor configuration. Omitted: `ns-` */
|
|
110
|
+
namespacePrefix?: string | undefined;
|
|
111
|
+
/** Direct image mode only (required there): IAM role of the connector executor, in `accountId` */
|
|
112
|
+
executorRoleArn?: string | undefined;
|
|
113
|
+
/** Direct image mode only (required there): IAM roles of the cluster nodes, in `accountId` */
|
|
114
|
+
nodeRoleArns?: ByocRestrictedFactsNodeRoleArnsList | undefined;
|
|
115
|
+
/** How the connector pulls platform images: `direct` from the ClickHouse registry, or `bundle` from `imageRegistry` */
|
|
116
|
+
imageMode: string;
|
|
117
|
+
/** Bundle image mode only (required there): OCI repository root holding the platform images */
|
|
118
|
+
imageRegistry?: string | undefined;
|
|
119
|
+
/** S3 bucket services store data in */
|
|
120
|
+
dataBucket: string;
|
|
121
|
+
/** S3 bucket services store backups in */
|
|
122
|
+
backupBucket: string;
|
|
123
|
+
/** IAM role services assume to reach the buckets, in `accountId` */
|
|
124
|
+
storageRoleArn: string;
|
|
125
|
+
/** Remote-write URL of the connector scraper. Required unless `enableMonitoring` is false */
|
|
126
|
+
scraperEndpoint?: string | undefined;
|
|
127
|
+
/** Install the monitoring components. Default true */
|
|
128
|
+
enableMonitoring?: boolean | undefined;
|
|
129
|
+
/** Install the volume snapshot controller. Default true */
|
|
130
|
+
enableSnapshotController?: boolean | undefined;
|
|
131
|
+
/** Install the ClickHouse autoscaler. Default false */
|
|
132
|
+
enableAutoscaler?: boolean | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface ByocConnectorComponent {
|
|
135
|
+
/** Connector component, e.g. scraper, executor or troubleshooter */
|
|
136
|
+
name?: string | undefined;
|
|
137
|
+
/** State the component last reported */
|
|
138
|
+
state?: string | undefined;
|
|
139
|
+
/** Version the component last reported */
|
|
140
|
+
version?: string | undefined;
|
|
141
|
+
/** Last heartbeat of the component. ISO-8601 */
|
|
142
|
+
lastHeartbeatAt?: string | undefined;
|
|
143
|
+
}
|
|
144
|
+
/** Components the connector reports on */
|
|
145
|
+
export type ByocConnectorComponentsList = Array<ByocConnectorComponent>;
|
|
146
|
+
export interface ByocConnector {
|
|
147
|
+
/** Last heartbeat of the connector. ISO-8601. Absent until the connector first reports */
|
|
148
|
+
lastHeartbeatAt?: string | undefined;
|
|
149
|
+
/** Components the connector reports on */
|
|
150
|
+
components?: ByocConnectorComponentsList | undefined;
|
|
151
|
+
/** State of the platform layer the connector installs */
|
|
152
|
+
platformState?: string | undefined;
|
|
153
|
+
/** What you need to do when the platform layer waits on you */
|
|
154
|
+
platformDetail?: string | undefined;
|
|
155
|
+
}
|
|
156
|
+
export interface ByocInfrastructureDetails {
|
|
157
|
+
/** Unique identifier of the BYOC infrastructure */
|
|
158
|
+
id?: string | undefined;
|
|
159
|
+
/** State of the infrastructure. Current values: 'infra-provisioning', 'infra-terminated', 'infra-terminating', 'infra-ready', 'infra-degraded', 'infra-upgrading', 'infra-awaiting-connector'. New states may be added; treat an unknown state as not ready */
|
|
160
|
+
state?: string | undefined;
|
|
161
|
+
/** Cloud account ID the BYOC infrastructure is bound to: AWS account ID, GCP project ID, or Azure subscription ID */
|
|
162
|
+
accountId?: string | undefined;
|
|
163
|
+
/** Region the BYOC infrastructure is located in */
|
|
164
|
+
regionId?: ByocInfrastructureDetailsRegionId | undefined;
|
|
165
|
+
/** Cloud provider of the region */
|
|
166
|
+
cloudProvider?: ByocInfrastructureDetailsCloudProvider | undefined;
|
|
167
|
+
/** Human readable name for infrastructure */
|
|
168
|
+
displayName?: string | undefined;
|
|
169
|
+
/** Whether private link connectivity is enabled on the infrastructure */
|
|
170
|
+
enablePrivateLink?: boolean | undefined;
|
|
171
|
+
/** Whether the private load balancer is enabled on the infrastructure */
|
|
172
|
+
enablePrivateLoadBalancer?: boolean | undefined;
|
|
173
|
+
/** Whether the public load balancer is enabled on the infrastructure */
|
|
174
|
+
enablePublicLoadBalancer?: boolean | undefined;
|
|
175
|
+
/** CIDR range of the ClickHouse-managed VPC. Absent for BYO-VPC infrastructures */
|
|
176
|
+
vpcCidrRange?: string | undefined;
|
|
177
|
+
/** Availability zones the infrastructure spans */
|
|
178
|
+
vpcAvailabilityZoneList?: ByocInfrastructureDetailsVpcAvailabilityZoneListList | undefined;
|
|
179
|
+
/** True when the infrastructure runs in a customer-provided VPC (BYO-VPC) instead of a ClickHouse-managed one */
|
|
180
|
+
isByoVpc?: boolean | undefined;
|
|
181
|
+
/** Customer VPC ID or network name (BYO-VPC only) */
|
|
182
|
+
byoVpcId?: string | undefined;
|
|
183
|
+
/** Customer private subnet IDs or names (BYO-VPC only; exactly one entry on GCP) */
|
|
184
|
+
byoVpcPrivateSubnetIds?: ByocInfrastructureDetailsByoVpcPrivateSubnetIdsList | undefined;
|
|
185
|
+
/** Secondary IP range names pinned for pod IPs (GCP BYO-VPC only). Absent when all secondary ranges are used */
|
|
186
|
+
byoVpcPodCidrRangeNames?: ByocInfrastructureDetailsByoVpcPodCidrRangeNamesList | undefined;
|
|
187
|
+
/** Shared VPC host project owning the VPC and subnet (GCP BYO-VPC only). Absent when the VPC lives in the service project */
|
|
188
|
+
byoVpcSharedVpcHostProjectId?: string | undefined;
|
|
189
|
+
/** Customer-provided Private Service Connect NAT subnet name configured for private link (GCP BYO-VPC only) */
|
|
190
|
+
gcpPscSubnetId?: string | undefined;
|
|
191
|
+
/** Access model of the infrastructure: `standard` or `restricted`. With `restricted`, private link, load balancer and VPC fields are false or absent */
|
|
192
|
+
accessModel?: string | undefined;
|
|
193
|
+
restrictedFacts?: ByocRestrictedFacts | undefined;
|
|
194
|
+
connector?: ByocConnector | undefined;
|
|
195
|
+
}
|
|
196
|
+
export interface GetByocInfrastructureCustomerAuthorizedAccessRequest {
|
|
197
|
+
/** ID of the organization that owns the BYOC infrastructure. */
|
|
198
|
+
organizationId: string;
|
|
199
|
+
/** ID of the BYOC infrastructure. */
|
|
200
|
+
byocInfrastructureId: string;
|
|
201
|
+
}
|
|
202
|
+
export interface ByocCustomerAuthorizedAccess {
|
|
203
|
+
/** When ClickHouse personnel may access the infrastructure. Current values: always, never, window. New values may be added over time. When the setting has never been configured this is `always`, the data plane default */
|
|
204
|
+
mode: string;
|
|
205
|
+
/** Start of the access window. ISO-8601. Present only when `mode` is `window` */
|
|
206
|
+
startTimestamp?: string | undefined;
|
|
207
|
+
/** Length of the access window in seconds, counted from `startTimestamp`. Present only when `mode` is `window` */
|
|
208
|
+
durationSeconds?: number | undefined;
|
|
209
|
+
/** Whether the data plane currently allows ClickHouse personnel access, evaluated at the time of the request */
|
|
210
|
+
allowed: boolean;
|
|
211
|
+
/** End of the current access window. ISO-8601. Present only while access is allowed until a deadline */
|
|
212
|
+
windowEndTimestamp?: string | undefined;
|
|
213
|
+
}
|
|
214
|
+
export interface GetByocInfrastructurePrivateEndpointConfigRequest {
|
|
215
|
+
/** ID of the requested organization. */
|
|
216
|
+
organizationId: string;
|
|
217
|
+
/** ID of the requested BYOC Infrastructure */
|
|
218
|
+
byocInfrastructureId: string;
|
|
219
|
+
}
|
|
220
|
+
export interface ByocInfrastructurePrivateEndpointConfig {
|
|
221
|
+
/** Cloud-provider identifier of the private link endpoint service of the infrastructure: VPC endpoint service name on AWS, Private Service Connect service attachment on GCP, or Private Link service on Azure */
|
|
222
|
+
endpointName: string;
|
|
223
|
+
/** Private DNS hostname under which services of the infrastructure are reachable over private link */
|
|
224
|
+
privateDnsHostname: string;
|
|
225
|
+
}
|
|
226
|
+
export interface GetByocInfrastructureProgressRequest {
|
|
227
|
+
/** ID of the requested organization. */
|
|
228
|
+
organizationId: string;
|
|
229
|
+
/** ID of the requested BYOC Infrastructure */
|
|
230
|
+
byocInfrastructureId: string;
|
|
231
|
+
}
|
|
232
|
+
/** Overall provisioning status of the infrastructure */
|
|
233
|
+
export type ByocInfrastructureProgressStatus =
|
|
234
|
+
| "not_started"
|
|
235
|
+
| "pending"
|
|
236
|
+
| "waiting"
|
|
237
|
+
| "in_progress"
|
|
238
|
+
| "ready"
|
|
239
|
+
| "failed";
|
|
240
|
+
/** Status of this stage */
|
|
241
|
+
export type ByocInfrastructureProgressStageStatus =
|
|
242
|
+
| "not_started"
|
|
243
|
+
| "pending"
|
|
244
|
+
| "waiting"
|
|
245
|
+
| "in_progress"
|
|
246
|
+
| "ready"
|
|
247
|
+
| "failed";
|
|
248
|
+
/** Nested stages; leaf entries are individual cloud resources */
|
|
249
|
+
export type ByocInfrastructureProgressStageSubStagesList = Array<ByocInfrastructureProgressStage>;
|
|
250
|
+
export interface ByocInfrastructureProgressStage {
|
|
251
|
+
/** Name of the provisioning stage or resource */
|
|
252
|
+
name?: string | undefined;
|
|
253
|
+
/** Status of this stage */
|
|
254
|
+
status?: ByocInfrastructureProgressStageStatus | undefined;
|
|
255
|
+
/** Timestamp the stage status last changed. ISO-8601 */
|
|
256
|
+
updatedAt?: string | undefined;
|
|
257
|
+
/** Human readable detail for the current status, e.g. an error message */
|
|
258
|
+
message?: string | undefined;
|
|
259
|
+
/** Nested stages; leaf entries are individual cloud resources */
|
|
260
|
+
subStages?: ByocInfrastructureProgressStageSubStagesList | undefined;
|
|
261
|
+
}
|
|
262
|
+
/** Top-level provisioning stages with their nested resources */
|
|
263
|
+
export type ByocInfrastructureProgressStagesList = Array<ByocInfrastructureProgressStage>;
|
|
264
|
+
export interface ByocInfrastructureProgress {
|
|
265
|
+
/** Unique identifier of the BYOC infrastructure */
|
|
266
|
+
id?: string | undefined;
|
|
267
|
+
/** Overall provisioning status of the infrastructure */
|
|
268
|
+
status?: ByocInfrastructureProgressStatus | undefined;
|
|
269
|
+
/** Timestamp the overall status last changed. ISO-8601 */
|
|
270
|
+
updatedAt?: string | undefined;
|
|
271
|
+
/** Top-level provisioning stages with their nested resources */
|
|
272
|
+
stages?: ByocInfrastructureProgressStagesList | undefined;
|
|
273
|
+
}
|
|
274
|
+
export interface GetByocInfrastructureTagsRequest {
|
|
275
|
+
/** ID of the requested organization. */
|
|
276
|
+
organizationId: string;
|
|
277
|
+
/** ID of the requested BYOC Infrastructure */
|
|
278
|
+
byocInfrastructureId: string;
|
|
279
|
+
}
|
|
280
|
+
export type ByocInfrastructureTags = { [key: string]: string | undefined };
|
|
281
|
+
export interface ByocInfrastructureTagsResponse {
|
|
282
|
+
tags: ByocInfrastructureTags;
|
|
283
|
+
}
|
|
284
|
+
export interface GetOrganizationQuotaRequest {
|
|
285
|
+
/** ID of the requested organization. */
|
|
286
|
+
organizationId: string;
|
|
287
|
+
/** Code of the requested quota. */
|
|
288
|
+
quotaCode: string;
|
|
289
|
+
}
|
|
290
|
+
/** Stable identifier of the quota. Use it to request a single quota by code. */
|
|
291
|
+
export type OrganizationQuotaQuotaCode =
|
|
292
|
+
| "services-per-organization"
|
|
293
|
+
| "postgres-services-per-organization"
|
|
294
|
+
| "replicas-per-warehouse"
|
|
295
|
+
| "api-keys-per-organization";
|
|
296
|
+
/** Granularity at which the limit is applied. For example, `replicas-per-warehouse` is an organization-wide setting that limits each warehouse individually. */
|
|
297
|
+
export type OrganizationQuotaScope = "organization" | "warehouse";
|
|
298
|
+
export interface OrganizationQuota {
|
|
299
|
+
/** Stable identifier of the quota. Use it to request a single quota by code. */
|
|
300
|
+
quotaCode: OrganizationQuotaQuotaCode;
|
|
301
|
+
/** Human-readable name of the quota. */
|
|
302
|
+
name: string;
|
|
303
|
+
/** Explanation of the resource the quota limits and how the limit is applied. */
|
|
304
|
+
description: string;
|
|
305
|
+
/** Granularity at which the limit is applied. For example, `replicas-per-warehouse` is an organization-wide setting that limits each warehouse individually. */
|
|
306
|
+
scope: OrganizationQuotaScope;
|
|
307
|
+
/** Limit currently applied to the organization, including any adjustments made for the organization. The value can change when the billing status of the organization changes. */
|
|
308
|
+
value: number;
|
|
309
|
+
/** Current consumption of the quota. Omitted for quotas that do not report usage. Usage can exceed `value` when a limit was lowered after resources were created; existing resources are not affected. */
|
|
310
|
+
usage?: number | undefined;
|
|
311
|
+
/** Whether the limit can be raised for the organization by contacting ClickHouse support. */
|
|
312
|
+
adjustable: boolean;
|
|
313
|
+
}
|
|
314
|
+
export interface ListOrganizationPublicPreviewsRequest {
|
|
315
|
+
/** ID of the requested organization. */
|
|
316
|
+
organizationId: string;
|
|
317
|
+
}
|
|
318
|
+
export interface PublicPreview {
|
|
319
|
+
/** Stable identifier of the preview feature. */
|
|
320
|
+
id: string;
|
|
321
|
+
/** Name of the preview feature. */
|
|
322
|
+
name: string;
|
|
323
|
+
/** What the preview feature does. */
|
|
324
|
+
description: string;
|
|
325
|
+
/** Link to the documentation of the preview feature. */
|
|
326
|
+
docsUrl: string;
|
|
327
|
+
/** Whether the preview feature is on for the organization. */
|
|
328
|
+
enabled: boolean;
|
|
329
|
+
/** Whether the caller may switch the preview feature on or off. */
|
|
330
|
+
canToggle: boolean;
|
|
331
|
+
}
|
|
332
|
+
export type ListOrganizationPublicPreviewsResponseBodyList = Array<PublicPreview>;
|
|
333
|
+
export type ListOrganizationPublicPreviewsResponse = ListOrganizationPublicPreviewsResponseBodyList;
|
|
334
|
+
export interface ListOrganizationQuotasRequest {
|
|
335
|
+
/** ID of the requested organization. */
|
|
336
|
+
organizationId: string;
|
|
337
|
+
}
|
|
338
|
+
export type ListOrganizationQuotasResponseBodyList = Array<OrganizationQuota>;
|
|
339
|
+
export type ListOrganizationQuotasResponse = ListOrganizationQuotasResponseBodyList;
|
|
340
|
+
export interface UpdateByocInfrastructureCustomerAuthorizedAccessRequest {
|
|
341
|
+
/** ID of the organization that owns the BYOC infrastructure. */
|
|
342
|
+
organizationId: string;
|
|
343
|
+
/** ID of the BYOC infrastructure. */
|
|
344
|
+
byocInfrastructureId: string;
|
|
345
|
+
/** When ClickHouse personnel may access the infrastructure. Current values: always, never, window. New values may be added over time. `always` allows access, `never` denies it, and `window` allows it during a single time window described by `startTimestamp` and `durationSeconds` */
|
|
346
|
+
mode: string;
|
|
347
|
+
/** Start of the access window. ISO-8601. Required when `mode` is `window`, not allowed otherwise */
|
|
348
|
+
startTimestamp?: string | undefined;
|
|
349
|
+
/** Length of the access window in seconds, from 1 to 172800 (48 hours). Required when `mode` is `window`, not allowed otherwise */
|
|
350
|
+
durationSeconds?: number | undefined;
|
|
351
|
+
}
|
|
352
|
+
export interface UpdateOrganizationPublicPreviewRequest {
|
|
353
|
+
/** ID of the requested organization. */
|
|
354
|
+
organizationId: string;
|
|
355
|
+
/** ID of the requested preview feature. */
|
|
356
|
+
previewId: string;
|
|
357
|
+
/** Whether the preview feature should be on. */
|
|
358
|
+
enabled: boolean;
|
|
359
|
+
}
|
|
360
|
+
/** Region in which the BYOC infrastructure will be located */
|
|
361
|
+
export type ValidateByocInfrastructureRequestRegionId =
|
|
362
|
+
| "ap-northeast-1"
|
|
363
|
+
| "ap-northeast-2"
|
|
364
|
+
| "ap-south-1"
|
|
365
|
+
| "ap-southeast-1"
|
|
366
|
+
| "ap-southeast-2"
|
|
367
|
+
| "ca-central-1"
|
|
368
|
+
| "eu-central-1"
|
|
369
|
+
| "eu-west-1"
|
|
370
|
+
| "eu-west-2"
|
|
371
|
+
| "il-central-1"
|
|
372
|
+
| "us-east-1"
|
|
373
|
+
| "us-east-2"
|
|
374
|
+
| "us-west-2"
|
|
375
|
+
| "us-east1"
|
|
376
|
+
| "us-central1"
|
|
377
|
+
| "europe-west2"
|
|
378
|
+
| "europe-west4"
|
|
379
|
+
| "asia-southeast1"
|
|
380
|
+
| "asia-northeast1"
|
|
381
|
+
| "eastus"
|
|
382
|
+
| "eastus2"
|
|
383
|
+
| "westus3"
|
|
384
|
+
| "germanywestcentral"
|
|
385
|
+
| "centralus";
|
|
386
|
+
export type ValidateByocInfrastructureRequestAvailabilityZoneSuffixesItem =
|
|
387
|
+
| "a"
|
|
388
|
+
| "b"
|
|
389
|
+
| "c"
|
|
390
|
+
| "d"
|
|
391
|
+
| "e"
|
|
392
|
+
| "f";
|
|
393
|
+
/** List of availability zone suffixes */
|
|
394
|
+
export type ValidateByocInfrastructureRequestAvailabilityZoneSuffixesList = Array<
|
|
395
|
+
ValidateByocInfrastructureRequestAvailabilityZoneSuffixesItem | (string & {})
|
|
396
|
+
>;
|
|
397
|
+
/** BYO-VPC only: private subnet IDs or names (1-6 entries on AWS, exactly one on GCP) */
|
|
398
|
+
export type ValidateByocInfrastructureRequestPrivateSubnetIdsList = Array<string>;
|
|
399
|
+
/** AWS BYO-VPC only: public subnet IDs (at most 6 entries) */
|
|
400
|
+
export type ValidateByocInfrastructureRequestPublicSubnetIdsList = Array<string>;
|
|
401
|
+
/** GCP BYO-VPC only: secondary IP range names on the subnet to use for pod IPs. Omitted: all secondary ranges are used */
|
|
402
|
+
export type ValidateByocInfrastructureRequestGcpPodCidrRangeNamesList = Array<string>;
|
|
403
|
+
export interface ValidateByocInfrastructureRequest {
|
|
404
|
+
/** ID of the requested organization. */
|
|
405
|
+
organizationId: string;
|
|
406
|
+
/** Region in which the BYOC infrastructure will be located */
|
|
407
|
+
regionId: ValidateByocInfrastructureRequestRegionId | (string & {});
|
|
408
|
+
/** Cloud account ID the BYOC infrastructure is configured for: AWS account ID, GCP project ID, or Azure subscription ID */
|
|
409
|
+
accountId: string;
|
|
410
|
+
/** List of availability zone suffixes */
|
|
411
|
+
availabilityZoneSuffixes?:
|
|
412
|
+
| ValidateByocInfrastructureRequestAvailabilityZoneSuffixesList
|
|
413
|
+
| undefined;
|
|
414
|
+
/** CIDR range for the ClickHouse-managed VPC. Mutually exclusive with the BYO-VPC fields (`vpcId`, `privateSubnetIds`, `publicSubnetIds`) */
|
|
415
|
+
vpcCidrRange?: string | undefined;
|
|
416
|
+
/** AWS only: ExternalID baked into the ClickHouse management role trust policy in your account */
|
|
417
|
+
externalId?: string | undefined;
|
|
418
|
+
/** Azure only (required for Azure regions): Entra tenant ID of the subscription */
|
|
419
|
+
tenantId?: string | undefined;
|
|
420
|
+
/** Azure only (required for Azure regions): client ID of the service principal ClickHouse uses to manage the infrastructure */
|
|
421
|
+
servicePrincipalClientId?: string | undefined;
|
|
422
|
+
/** BYO-VPC only (AWS and GCP): ID or network name of the customer-provided VPC to deploy into. Requires `privateSubnetIds` */
|
|
423
|
+
vpcId?: string | undefined;
|
|
424
|
+
/** BYO-VPC only: private subnet IDs or names (1-6 entries on AWS, exactly one on GCP) */
|
|
425
|
+
privateSubnetIds?: ValidateByocInfrastructureRequestPrivateSubnetIdsList | undefined;
|
|
426
|
+
/** AWS BYO-VPC only: public subnet IDs (at most 6 entries) */
|
|
427
|
+
publicSubnetIds?: ValidateByocInfrastructureRequestPublicSubnetIdsList | undefined;
|
|
428
|
+
/** GCP BYO-VPC only: secondary IP range names on the subnet to use for pod IPs. Omitted: all secondary ranges are used */
|
|
429
|
+
gcpPodCidrRangeNames?: ValidateByocInfrastructureRequestGcpPodCidrRangeNamesList | undefined;
|
|
430
|
+
/** GCP BYO-VPC only: Shared VPC host project owning the VPC and subnet, when different from `accountId` */
|
|
431
|
+
gcpSharedVpcHostProjectId?: string | undefined;
|
|
432
|
+
tags?: ByocInfrastructureTags | undefined;
|
|
433
|
+
/** How ClickHouse reaches the infrastructure. `standard` (default) provisions it through a management role in your account; `restricted` registers a cluster you own, reached only through the connector you install. `restricted` is AWS only and requires `restrictedFacts` */
|
|
434
|
+
accessModel?: string | undefined;
|
|
435
|
+
restrictedFacts?: ByocRestrictedFacts | undefined;
|
|
436
|
+
}
|
|
437
|
+
/** Cloud provider of the requested region */
|
|
438
|
+
export type ByocInfrastructureValidationCloudProvider = "gcp" | "aws" | "azure";
|
|
439
|
+
export interface ByocInfrastructureValidationCheck {
|
|
440
|
+
/** Human readable name of the check */
|
|
441
|
+
name?: string | undefined;
|
|
442
|
+
/** Cloud permission or action the check simulated */
|
|
443
|
+
action?: string | undefined;
|
|
444
|
+
/** Whether the account allowed the simulated action */
|
|
445
|
+
allowed?: boolean | undefined;
|
|
446
|
+
/** Cloud-provider detail for a denied check, e.g. an IAM decision reason */
|
|
447
|
+
reason?: string | undefined;
|
|
448
|
+
/** Free-form grouping of related checks, e.g. base or vpc-write. Groupings may change as validations evolve */
|
|
449
|
+
group?: string | undefined;
|
|
450
|
+
}
|
|
451
|
+
/** Individual permission checks with their outcomes */
|
|
452
|
+
export type ByocInfrastructureValidationChecksList = Array<ByocInfrastructureValidationCheck>;
|
|
453
|
+
export interface ByocInfrastructureValidation {
|
|
454
|
+
/** Cloud provider of the requested region */
|
|
455
|
+
cloudProvider?: ByocInfrastructureValidationCloudProvider | undefined;
|
|
456
|
+
/** True when every check passed */
|
|
457
|
+
allPassed?: boolean | undefined;
|
|
458
|
+
/** True when at least one check passed */
|
|
459
|
+
anyPassed?: boolean | undefined;
|
|
460
|
+
/** Whether preflight validation is implemented for the requested cloud and configuration. When false, an empty check list means nothing was verified rather than everything passed */
|
|
461
|
+
supported?: boolean | undefined;
|
|
462
|
+
/** Individual permission checks with their outcomes */
|
|
463
|
+
checks?: ByocInfrastructureValidationChecksList | undefined;
|
|
464
|
+
}
|
|
465
|
+
export type CreateOrganizationByocInfrastructureEnrollmentTokenError = ClickHouseCloudOpError;
|
|
466
|
+
/** Create BYOC infrastructure enrollment token **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Restricted access only. Mints a token the connector enrolls the infrastructure with. Every call mints a new token; earlier tokens stay valid until they expire. Answers 409 until ClickHouse has admitted the roles the infrastructure registered, which follows creation within minutes. */
|
|
467
|
+
export const createOrganizationByocInfrastructureEnrollmentToken: API.OperationMethod<
|
|
468
|
+
CreateOrganizationByocInfrastructureEnrollmentTokenRequest,
|
|
469
|
+
ByocInfrastructureEnrollmentToken,
|
|
470
|
+
CreateOrganizationByocInfrastructureEnrollmentTokenError,
|
|
471
|
+
ClickHouseCloudOpContext
|
|
472
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
473
|
+
input: __S(
|
|
474
|
+
0,
|
|
475
|
+
__c0,
|
|
476
|
+
0,
|
|
477
|
+
) as any as S.Schema<CreateOrganizationByocInfrastructureEnrollmentTokenRequest>,
|
|
478
|
+
output: __S(1, __c0, 1) as any as S.Schema<ByocInfrastructureEnrollmentToken>,
|
|
479
|
+
errors: [],
|
|
480
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
481
|
+
protocol: ClickHouseCloudProtocol,
|
|
482
|
+
retry: Retry.Retry,
|
|
483
|
+
telemetry: TELEMETRY,
|
|
484
|
+
span: "CreateOrganizationByocInfrastructureEnrollmentToken",
|
|
485
|
+
}));
|
|
486
|
+
|
|
487
|
+
export type GetByocInfrastructureError = ClickHouseCloudOpError;
|
|
488
|
+
/** Get BYOC infrastructure details **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the full configuration of a BYOC infrastructure, including private link and load balancer state, network layout, and BYO-VPC settings read from the data plane. */
|
|
489
|
+
export const getByocInfrastructure: API.OperationMethod<
|
|
490
|
+
GetByocInfrastructureRequest,
|
|
491
|
+
ByocInfrastructureDetails,
|
|
492
|
+
GetByocInfrastructureError,
|
|
493
|
+
ClickHouseCloudOpContext
|
|
494
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
495
|
+
input: __S(32, __c4, 0) as any as S.Schema<GetByocInfrastructureRequest>,
|
|
496
|
+
output: __S(36, __c4, 4) as any as S.Schema<ByocInfrastructureDetails>,
|
|
497
|
+
errors: [],
|
|
498
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
499
|
+
protocol: ClickHouseCloudProtocol,
|
|
500
|
+
retry: Retry.Retry,
|
|
501
|
+
telemetry: TELEMETRY,
|
|
502
|
+
span: "GetByocInfrastructure",
|
|
503
|
+
}));
|
|
504
|
+
|
|
505
|
+
export type GetByocInfrastructureCustomerAuthorizedAccessError = ClickHouseCloudOpError;
|
|
506
|
+
/** Get BYOC infrastructure customer-authorized access **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the customer setting that controls when ClickHouse personnel may access the BYOC infrastructure, together with the data plane verdict at the time of the request. */
|
|
507
|
+
export const getByocInfrastructureCustomerAuthorizedAccess: API.OperationMethod<
|
|
508
|
+
GetByocInfrastructureCustomerAuthorizedAccessRequest,
|
|
509
|
+
ByocCustomerAuthorizedAccess,
|
|
510
|
+
GetByocInfrastructureCustomerAuthorizedAccessError,
|
|
511
|
+
ClickHouseCloudOpContext
|
|
512
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
513
|
+
input: __S(48, __c6, 0) as any as S.Schema<GetByocInfrastructureCustomerAuthorizedAccessRequest>,
|
|
514
|
+
output: __S(56, __c7, 0) as any as S.Schema<ByocCustomerAuthorizedAccess>,
|
|
515
|
+
errors: [],
|
|
516
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
517
|
+
protocol: ClickHouseCloudProtocol,
|
|
518
|
+
retry: Retry.Retry,
|
|
519
|
+
telemetry: TELEMETRY,
|
|
520
|
+
span: "GetByocInfrastructureCustomerAuthorizedAccess",
|
|
521
|
+
}));
|
|
522
|
+
|
|
523
|
+
export type GetByocInfrastructurePrivateEndpointConfigError = ClickHouseCloudOpError;
|
|
524
|
+
/** Get BYOC infrastructure private endpoint configuration **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the private link endpoint service details of a BYOC infrastructure. For BYOC organizations this replaces the deprecated organization-level `privateEndpointConfig` endpoint. */
|
|
525
|
+
export const getByocInfrastructurePrivateEndpointConfig: API.OperationMethod<
|
|
526
|
+
GetByocInfrastructurePrivateEndpointConfigRequest,
|
|
527
|
+
ByocInfrastructurePrivateEndpointConfig,
|
|
528
|
+
GetByocInfrastructurePrivateEndpointConfigError,
|
|
529
|
+
ClickHouseCloudOpContext
|
|
530
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
531
|
+
input: __S(64, __c8, 0) as any as S.Schema<GetByocInfrastructurePrivateEndpointConfigRequest>,
|
|
532
|
+
output: __S(65, __c8, 1) as any as S.Schema<ByocInfrastructurePrivateEndpointConfig>,
|
|
533
|
+
errors: [],
|
|
534
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
535
|
+
protocol: ClickHouseCloudProtocol,
|
|
536
|
+
retry: Retry.Retry,
|
|
537
|
+
telemetry: TELEMETRY,
|
|
538
|
+
span: "GetByocInfrastructurePrivateEndpointConfig",
|
|
539
|
+
}));
|
|
540
|
+
|
|
541
|
+
export type GetByocInfrastructureProgressError = ClickHouseCloudOpError;
|
|
542
|
+
/** Get BYOC infrastructure provisioning progress **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns the stage-by-stage provisioning progress of a BYOC infrastructure, more granular than the `state` field: overall status plus a tree of provisioning stages down to individual cloud resources. */
|
|
543
|
+
export const getByocInfrastructureProgress: API.OperationMethod<
|
|
544
|
+
GetByocInfrastructureProgressRequest,
|
|
545
|
+
ByocInfrastructureProgress,
|
|
546
|
+
GetByocInfrastructureProgressError,
|
|
547
|
+
ClickHouseCloudOpContext
|
|
548
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
549
|
+
input: __S(72, __c9, 0) as any as S.Schema<GetByocInfrastructureProgressRequest>,
|
|
550
|
+
output: __S(76, __c9, 4) as any as S.Schema<ByocInfrastructureProgress>,
|
|
551
|
+
errors: [],
|
|
552
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
553
|
+
protocol: ClickHouseCloudProtocol,
|
|
554
|
+
retry: Retry.Retry,
|
|
555
|
+
telemetry: TELEMETRY,
|
|
556
|
+
span: "GetByocInfrastructureProgress",
|
|
557
|
+
}));
|
|
558
|
+
|
|
559
|
+
export type GetByocInfrastructureTagsError = ClickHouseCloudOpError;
|
|
560
|
+
/** Get BYOC infrastructure tags **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the additional tags currently applied to the cloud resources of the BYOC infrastructure. Tags are replaced as a whole through the infrastructure update endpoint. */
|
|
561
|
+
export const getByocInfrastructureTags: API.OperationMethod<
|
|
562
|
+
GetByocInfrastructureTagsRequest,
|
|
563
|
+
ByocInfrastructureTagsResponse,
|
|
564
|
+
GetByocInfrastructureTagsError,
|
|
565
|
+
ClickHouseCloudOpContext
|
|
566
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
567
|
+
input: __S(80, __c10, 0) as any as S.Schema<GetByocInfrastructureTagsRequest>,
|
|
568
|
+
output: __S(81, __c10, 1) as any as S.Schema<ByocInfrastructureTagsResponse>,
|
|
569
|
+
errors: [],
|
|
570
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
571
|
+
protocol: ClickHouseCloudProtocol,
|
|
572
|
+
retry: Retry.Retry,
|
|
573
|
+
telemetry: TELEMETRY,
|
|
574
|
+
span: "GetByocInfrastructureTags",
|
|
575
|
+
}));
|
|
576
|
+
|
|
577
|
+
export type GetOrganizationQuotaError = ClickHouseCloudOpError;
|
|
578
|
+
/** Get organization quota details **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns a single organization quota identified by its quota code. Responds with a not found error when the quota code is unknown or the quota does not apply to the organization. */
|
|
579
|
+
export const getOrganizationQuota: API.OperationMethod<
|
|
580
|
+
GetOrganizationQuotaRequest,
|
|
581
|
+
OrganizationQuota,
|
|
582
|
+
GetOrganizationQuotaError,
|
|
583
|
+
ClickHouseCloudOpContext
|
|
584
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
585
|
+
input: __S(96, __c12, 0) as any as S.Schema<GetOrganizationQuotaRequest>,
|
|
586
|
+
output: __S(104, __c13, 0) as any as S.Schema<OrganizationQuota>,
|
|
587
|
+
errors: [],
|
|
588
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
589
|
+
protocol: ClickHouseCloudProtocol,
|
|
590
|
+
retry: Retry.Retry,
|
|
591
|
+
telemetry: TELEMETRY,
|
|
592
|
+
span: "GetOrganizationQuota",
|
|
593
|
+
}));
|
|
594
|
+
|
|
595
|
+
export type ListOrganizationPublicPreviewsError = ClickHouseCloudOpError;
|
|
596
|
+
/** Get list of organization preview features **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns the preview features offered to the organization, with whether each one is on and whether the caller can switch it. */
|
|
597
|
+
export const listOrganizationPublicPreviews: API.OperationMethod<
|
|
598
|
+
ListOrganizationPublicPreviewsRequest,
|
|
599
|
+
ListOrganizationPublicPreviewsResponse,
|
|
600
|
+
ListOrganizationPublicPreviewsError,
|
|
601
|
+
ClickHouseCloudOpContext
|
|
602
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
603
|
+
input: __S(112, __c14, 0) as any as S.Schema<ListOrganizationPublicPreviewsRequest>,
|
|
604
|
+
output: __S(114, __c14, 2) as any as S.Schema<ListOrganizationPublicPreviewsResponse>,
|
|
605
|
+
errors: [],
|
|
606
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
607
|
+
protocol: ClickHouseCloudProtocol,
|
|
608
|
+
retry: Retry.Retry,
|
|
609
|
+
telemetry: TELEMETRY,
|
|
610
|
+
span: "ListOrganizationPublicPreviews",
|
|
611
|
+
}));
|
|
612
|
+
|
|
613
|
+
export type ListOrganizationQuotasError = ClickHouseCloudOpError;
|
|
614
|
+
/** Get organization quotas **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns the resource quotas enforced for the organization together with their current usage where available. Quotas that do not apply to the organization are omitted. Quota values reflect the limits currently enforced, so they can be polled to detect changes, for example after a billing status change. The response contains one entry per quota code; quotas enforced per resource may additionally appear under resource-scoped endpoints in the future. */
|
|
615
|
+
export const listOrganizationQuotas: API.OperationMethod<
|
|
616
|
+
ListOrganizationQuotasRequest,
|
|
617
|
+
ListOrganizationQuotasResponse,
|
|
618
|
+
ListOrganizationQuotasError,
|
|
619
|
+
ClickHouseCloudOpContext
|
|
620
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
621
|
+
input: __S(128, __c16, 0) as any as S.Schema<ListOrganizationQuotasRequest>,
|
|
622
|
+
output: __S(130, __c16, 2) as any as S.Schema<ListOrganizationQuotasResponse>,
|
|
623
|
+
errors: [],
|
|
624
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
625
|
+
protocol: ClickHouseCloudProtocol,
|
|
626
|
+
retry: Retry.Retry,
|
|
627
|
+
telemetry: TELEMETRY,
|
|
628
|
+
span: "ListOrganizationQuotas",
|
|
629
|
+
}));
|
|
630
|
+
|
|
631
|
+
export type UpdateByocInfrastructureCustomerAuthorizedAccessError = ClickHouseCloudOpError;
|
|
632
|
+
/** Update BYOC infrastructure customer-authorized access **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Replaces the customer setting that controls when ClickHouse personnel may access the BYOC infrastructure. Allow access with `mode: always`, deny it with `mode: never`, or allow it for a single window with `mode: window`, `startTimestamp` and `durationSeconds`. Returns the stored setting together with the data plane verdict. */
|
|
633
|
+
export const updateByocInfrastructureCustomerAuthorizedAccess: API.OperationMethod<
|
|
634
|
+
UpdateByocInfrastructureCustomerAuthorizedAccessRequest,
|
|
635
|
+
ByocCustomerAuthorizedAccess,
|
|
636
|
+
UpdateByocInfrastructureCustomerAuthorizedAccessError,
|
|
637
|
+
ClickHouseCloudOpContext
|
|
638
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
639
|
+
input: __S(
|
|
640
|
+
8,
|
|
641
|
+
__c1,
|
|
642
|
+
0,
|
|
643
|
+
) as any as S.Schema<UpdateByocInfrastructureCustomerAuthorizedAccessRequest>,
|
|
644
|
+
output: __S(56, __c7, 0) as any as S.Schema<ByocCustomerAuthorizedAccess>,
|
|
645
|
+
errors: [],
|
|
646
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
647
|
+
protocol: ClickHouseCloudProtocol,
|
|
648
|
+
retry: Retry.Retry,
|
|
649
|
+
telemetry: TELEMETRY,
|
|
650
|
+
span: "UpdateByocInfrastructureCustomerAuthorizedAccess",
|
|
651
|
+
}));
|
|
652
|
+
|
|
653
|
+
export type UpdateOrganizationPublicPreviewError = ClickHouseCloudOpError;
|
|
654
|
+
/** Update organization preview feature **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Switches a preview feature on or off for the organization. Use an ID returned by the list endpoint; an unknown ID returns 404. Only previews offered to the organization can be switched on, otherwise the request returns 403; switching off is always allowed. */
|
|
655
|
+
export const updateOrganizationPublicPreview: API.OperationMethod<
|
|
656
|
+
UpdateOrganizationPublicPreviewRequest,
|
|
657
|
+
PublicPreview,
|
|
658
|
+
UpdateOrganizationPublicPreviewError,
|
|
659
|
+
ClickHouseCloudOpContext
|
|
660
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
661
|
+
input: __S(16, __c2, 0) as any as S.Schema<UpdateOrganizationPublicPreviewRequest>,
|
|
662
|
+
output: __S(120, __c15, 0) as any as S.Schema<PublicPreview>,
|
|
663
|
+
errors: [],
|
|
664
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
665
|
+
protocol: ClickHouseCloudProtocol,
|
|
666
|
+
retry: Retry.Retry,
|
|
667
|
+
telemetry: TELEMETRY,
|
|
668
|
+
span: "UpdateOrganizationPublicPreview",
|
|
669
|
+
}));
|
|
670
|
+
|
|
671
|
+
export type ValidateByocInfrastructureError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
672
|
+
/** Validate BYOC infrastructure prerequisites **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Preflight-validates that a cloud account is ready for BYOC infrastructure creation: simulates the cloud permissions ClickHouse needs (and, for BYO-VPC, checks the provided network resources) without creating anything. Takes the same parameters as infrastructure creation, so a payload that passes validation will not be rejected by create for the same inputs. */
|
|
673
|
+
export const validateByocInfrastructure: API.OperationMethod<
|
|
674
|
+
ValidateByocInfrastructureRequest,
|
|
675
|
+
ByocInfrastructureValidation,
|
|
676
|
+
ValidateByocInfrastructureError,
|
|
677
|
+
ClickHouseCloudOpContext
|
|
678
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
679
|
+
input: __S(25, __c3, 1) as any as S.Schema<ValidateByocInfrastructureRequest>,
|
|
680
|
+
output: __S(28, __c3, 4) as any as S.Schema<ByocInfrastructureValidation>,
|
|
681
|
+
errors: [FeatureUnavailable],
|
|
682
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
683
|
+
protocol: ClickHouseCloudProtocol,
|
|
684
|
+
retry: Retry.Retry,
|
|
685
|
+
telemetry: TELEMETRY,
|
|
686
|
+
span: "ValidateByocInfrastructure",
|
|
687
|
+
}));
|
|
688
|
+
|
|
689
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
690
|
+
function __c0(j: number): any {
|
|
691
|
+
switch (j) {
|
|
692
|
+
case 0:
|
|
693
|
+
return S.suspend(() =>
|
|
694
|
+
S.Struct({
|
|
695
|
+
organizationId: S.String.pipe(T.Label()),
|
|
696
|
+
byocInfrastructureId: S.String.pipe(T.Label()),
|
|
697
|
+
ttlSeconds: S.optional(S.Number),
|
|
698
|
+
}).pipe(
|
|
699
|
+
T.Http({
|
|
700
|
+
method: "POST",
|
|
701
|
+
uri: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/enrollmentToken",
|
|
702
|
+
code: 200,
|
|
703
|
+
}),
|
|
704
|
+
),
|
|
705
|
+
).annotate({ identifier: "CreateOrganizationByocInfrastructureEnrollmentTokenRequest" });
|
|
706
|
+
case 1:
|
|
707
|
+
return S.suspend(() =>
|
|
708
|
+
S.Struct({
|
|
709
|
+
token: S.String.pipe(T.SensitiveValue({})),
|
|
710
|
+
expiresAt: S.String,
|
|
711
|
+
}),
|
|
712
|
+
).annotate({ identifier: "ByocInfrastructureEnrollmentToken" });
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
function __c1(j: number): any {
|
|
716
|
+
switch (j) {
|
|
717
|
+
case 0:
|
|
718
|
+
return S.suspend(() =>
|
|
719
|
+
S.Struct({
|
|
720
|
+
organizationId: S.String.pipe(T.Label()),
|
|
721
|
+
byocInfrastructureId: S.String.pipe(T.Label()),
|
|
722
|
+
mode: S.String,
|
|
723
|
+
startTimestamp: S.optional(S.String),
|
|
724
|
+
durationSeconds: S.optional(S.Number),
|
|
725
|
+
}).pipe(
|
|
726
|
+
T.Http({
|
|
727
|
+
method: "PATCH",
|
|
728
|
+
uri: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/customerAuthorizedAccess",
|
|
729
|
+
code: 200,
|
|
730
|
+
}),
|
|
731
|
+
),
|
|
732
|
+
).annotate({ identifier: "UpdateByocInfrastructureCustomerAuthorizedAccessRequest" });
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
function __c2(j: number): any {
|
|
736
|
+
switch (j) {
|
|
737
|
+
case 0:
|
|
738
|
+
return S.suspend(() =>
|
|
739
|
+
S.Struct({
|
|
740
|
+
organizationId: S.String.pipe(T.Label()),
|
|
741
|
+
previewId: S.String.pipe(T.Label()),
|
|
742
|
+
enabled: S.Boolean,
|
|
743
|
+
}).pipe(
|
|
744
|
+
T.Http({
|
|
745
|
+
method: "PATCH",
|
|
746
|
+
uri: "/v1/organizations/{organizationId}/previews/{previewId}",
|
|
747
|
+
code: 200,
|
|
748
|
+
}),
|
|
749
|
+
),
|
|
750
|
+
).annotate({ identifier: "UpdateOrganizationPublicPreviewRequest" });
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
function __c3(j: number): any {
|
|
754
|
+
switch (j) {
|
|
755
|
+
case 0:
|
|
756
|
+
return S.Array(S.String);
|
|
757
|
+
case 1:
|
|
758
|
+
return S.suspend(() =>
|
|
759
|
+
S.Struct({
|
|
760
|
+
organizationId: S.String.pipe(T.Label()),
|
|
761
|
+
regionId: S.String,
|
|
762
|
+
accountId: S.String,
|
|
763
|
+
availabilityZoneSuffixes: S.optional(__S(24, __c3, 0)),
|
|
764
|
+
vpcCidrRange: S.optional(S.String),
|
|
765
|
+
externalId: S.optional(S.String),
|
|
766
|
+
tenantId: S.optional(S.String),
|
|
767
|
+
servicePrincipalClientId: S.optional(S.String),
|
|
768
|
+
vpcId: S.optional(S.String),
|
|
769
|
+
privateSubnetIds: S.optional(__S(40, __c5, 0)),
|
|
770
|
+
publicSubnetIds: S.optional(__S(40, __c5, 0)),
|
|
771
|
+
gcpPodCidrRangeNames: S.optional(__S(40, __c5, 0)),
|
|
772
|
+
gcpSharedVpcHostProjectId: S.optional(S.String),
|
|
773
|
+
tags: S.optional(__S(88, __c11, 0)),
|
|
774
|
+
accessModel: S.optional(S.String),
|
|
775
|
+
restrictedFacts: S.optional(__S(41, __c5, 1)),
|
|
776
|
+
}).pipe(
|
|
777
|
+
T.Http({
|
|
778
|
+
method: "POST",
|
|
779
|
+
uri: "/v1/organizations/{organizationId}/byocInfrastructure/validate",
|
|
780
|
+
code: 200,
|
|
781
|
+
}),
|
|
782
|
+
),
|
|
783
|
+
).annotate({ identifier: "ValidateByocInfrastructureRequest" });
|
|
784
|
+
case 2:
|
|
785
|
+
return S.suspend(() =>
|
|
786
|
+
S.Struct({
|
|
787
|
+
name: S.optional(S.String),
|
|
788
|
+
action: S.optional(S.String),
|
|
789
|
+
allowed: S.optional(S.Boolean),
|
|
790
|
+
reason: S.optional(S.String),
|
|
791
|
+
group: S.optional(S.String),
|
|
792
|
+
}),
|
|
793
|
+
).annotate({ identifier: "ByocInfrastructureValidationCheck" });
|
|
794
|
+
case 3:
|
|
795
|
+
return S.Array(__S(26, __c3, 2));
|
|
796
|
+
case 4:
|
|
797
|
+
return S.suspend(() =>
|
|
798
|
+
S.Struct({
|
|
799
|
+
cloudProvider: S.optional(S.String),
|
|
800
|
+
allPassed: S.optional(S.Boolean),
|
|
801
|
+
anyPassed: S.optional(S.Boolean),
|
|
802
|
+
supported: S.optional(S.Boolean),
|
|
803
|
+
checks: S.optional(__S(27, __c3, 3)),
|
|
804
|
+
}),
|
|
805
|
+
).annotate({ identifier: "ByocInfrastructureValidation" });
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
function __c4(j: number): any {
|
|
809
|
+
switch (j) {
|
|
810
|
+
case 0:
|
|
811
|
+
return S.suspend(() =>
|
|
812
|
+
S.Struct({
|
|
813
|
+
organizationId: S.String.pipe(T.Label()),
|
|
814
|
+
byocInfrastructureId: S.String.pipe(T.Label()),
|
|
815
|
+
}).pipe(
|
|
816
|
+
T.Http({
|
|
817
|
+
method: "GET",
|
|
818
|
+
uri: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}",
|
|
819
|
+
code: 200,
|
|
820
|
+
}),
|
|
821
|
+
),
|
|
822
|
+
).annotate({ identifier: "GetByocInfrastructureRequest" });
|
|
823
|
+
case 1:
|
|
824
|
+
return S.suspend(() =>
|
|
825
|
+
S.Struct({
|
|
826
|
+
name: S.optional(S.String),
|
|
827
|
+
state: S.optional(S.String),
|
|
828
|
+
version: S.optional(S.String),
|
|
829
|
+
lastHeartbeatAt: S.optional(S.String),
|
|
830
|
+
}),
|
|
831
|
+
).annotate({ identifier: "ByocConnectorComponent" });
|
|
832
|
+
case 2:
|
|
833
|
+
return S.Array(__S(33, __c4, 1));
|
|
834
|
+
case 3:
|
|
835
|
+
return S.suspend(() =>
|
|
836
|
+
S.Struct({
|
|
837
|
+
lastHeartbeatAt: S.optional(S.String),
|
|
838
|
+
components: S.optional(__S(34, __c4, 2)),
|
|
839
|
+
platformState: S.optional(S.String),
|
|
840
|
+
platformDetail: S.optional(S.String),
|
|
841
|
+
}),
|
|
842
|
+
).annotate({ identifier: "ByocConnector" });
|
|
843
|
+
case 4:
|
|
844
|
+
return S.suspend(() =>
|
|
845
|
+
S.Struct({
|
|
846
|
+
id: S.optional(S.String),
|
|
847
|
+
state: S.optional(S.String),
|
|
848
|
+
accountId: S.optional(S.String),
|
|
849
|
+
regionId: S.optional(S.String),
|
|
850
|
+
cloudProvider: S.optional(S.String),
|
|
851
|
+
displayName: S.optional(S.String),
|
|
852
|
+
enablePrivateLink: S.optional(S.Boolean),
|
|
853
|
+
enablePrivateLoadBalancer: S.optional(S.Boolean),
|
|
854
|
+
enablePublicLoadBalancer: S.optional(S.Boolean),
|
|
855
|
+
vpcCidrRange: S.optional(S.String),
|
|
856
|
+
vpcAvailabilityZoneList: S.optional(__S(40, __c5, 0)),
|
|
857
|
+
isByoVpc: S.optional(S.Boolean),
|
|
858
|
+
byoVpcId: S.optional(S.String),
|
|
859
|
+
byoVpcPrivateSubnetIds: S.optional(__S(40, __c5, 0)),
|
|
860
|
+
byoVpcPodCidrRangeNames: S.optional(__S(40, __c5, 0)),
|
|
861
|
+
byoVpcSharedVpcHostProjectId: S.optional(S.String),
|
|
862
|
+
gcpPscSubnetId: S.optional(S.String),
|
|
863
|
+
accessModel: S.optional(S.String),
|
|
864
|
+
restrictedFacts: S.optional(__S(41, __c5, 1)),
|
|
865
|
+
connector: S.optional(__S(35, __c4, 3)),
|
|
866
|
+
}),
|
|
867
|
+
).annotate({ identifier: "ByocInfrastructureDetails" });
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
function __c5(j: number): any {
|
|
871
|
+
switch (j) {
|
|
872
|
+
case 0:
|
|
873
|
+
return S.Array(S.String);
|
|
874
|
+
case 1:
|
|
875
|
+
return S.suspend(() =>
|
|
876
|
+
S.Struct({
|
|
877
|
+
clusterName: S.String,
|
|
878
|
+
platformNodeGroup: S.optional(S.String),
|
|
879
|
+
availabilityZones: S.optional(__S(40, __c5, 0)),
|
|
880
|
+
namespacePrefix: S.optional(S.String),
|
|
881
|
+
executorRoleArn: S.optional(S.String),
|
|
882
|
+
nodeRoleArns: S.optional(__S(40, __c5, 0)),
|
|
883
|
+
imageMode: S.String,
|
|
884
|
+
imageRegistry: S.optional(S.String),
|
|
885
|
+
dataBucket: S.String,
|
|
886
|
+
backupBucket: S.String,
|
|
887
|
+
storageRoleArn: S.String,
|
|
888
|
+
scraperEndpoint: S.optional(S.String),
|
|
889
|
+
enableMonitoring: S.optional(S.Boolean),
|
|
890
|
+
enableSnapshotController: S.optional(S.Boolean),
|
|
891
|
+
enableAutoscaler: S.optional(S.Boolean),
|
|
892
|
+
}),
|
|
893
|
+
).annotate({ identifier: "ByocRestrictedFacts" });
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
function __c6(j: number): any {
|
|
897
|
+
switch (j) {
|
|
898
|
+
case 0:
|
|
899
|
+
return S.suspend(() =>
|
|
900
|
+
S.Struct({
|
|
901
|
+
organizationId: S.String.pipe(T.Label()),
|
|
902
|
+
byocInfrastructureId: S.String.pipe(T.Label()),
|
|
903
|
+
}).pipe(
|
|
904
|
+
T.Http({
|
|
905
|
+
method: "GET",
|
|
906
|
+
uri: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/customerAuthorizedAccess",
|
|
907
|
+
code: 200,
|
|
908
|
+
}),
|
|
909
|
+
),
|
|
910
|
+
).annotate({ identifier: "GetByocInfrastructureCustomerAuthorizedAccessRequest" });
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
function __c7(j: number): any {
|
|
914
|
+
switch (j) {
|
|
915
|
+
case 0:
|
|
916
|
+
return S.suspend(() =>
|
|
917
|
+
S.Struct({
|
|
918
|
+
mode: S.String,
|
|
919
|
+
startTimestamp: S.optional(S.String),
|
|
920
|
+
durationSeconds: S.optional(S.Number),
|
|
921
|
+
allowed: S.Boolean,
|
|
922
|
+
windowEndTimestamp: S.optional(S.String),
|
|
923
|
+
}),
|
|
924
|
+
).annotate({ identifier: "ByocCustomerAuthorizedAccess" });
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
function __c8(j: number): any {
|
|
928
|
+
switch (j) {
|
|
929
|
+
case 0:
|
|
930
|
+
return S.suspend(() =>
|
|
931
|
+
S.Struct({
|
|
932
|
+
organizationId: S.String.pipe(T.Label()),
|
|
933
|
+
byocInfrastructureId: S.String.pipe(T.Label()),
|
|
934
|
+
}).pipe(
|
|
935
|
+
T.Http({
|
|
936
|
+
method: "GET",
|
|
937
|
+
uri: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/privateEndpointConfig",
|
|
938
|
+
code: 200,
|
|
939
|
+
}),
|
|
940
|
+
),
|
|
941
|
+
).annotate({ identifier: "GetByocInfrastructurePrivateEndpointConfigRequest" });
|
|
942
|
+
case 1:
|
|
943
|
+
return S.suspend(() =>
|
|
944
|
+
S.Struct({
|
|
945
|
+
endpointName: S.String,
|
|
946
|
+
privateDnsHostname: S.String,
|
|
947
|
+
}),
|
|
948
|
+
).annotate({ identifier: "ByocInfrastructurePrivateEndpointConfig" });
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
function __c9(j: number): any {
|
|
952
|
+
switch (j) {
|
|
953
|
+
case 0:
|
|
954
|
+
return S.suspend(() =>
|
|
955
|
+
S.Struct({
|
|
956
|
+
organizationId: S.String.pipe(T.Label()),
|
|
957
|
+
byocInfrastructureId: S.String.pipe(T.Label()),
|
|
958
|
+
}).pipe(
|
|
959
|
+
T.Http({
|
|
960
|
+
method: "GET",
|
|
961
|
+
uri: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/progress",
|
|
962
|
+
code: 200,
|
|
963
|
+
}),
|
|
964
|
+
),
|
|
965
|
+
).annotate({ identifier: "GetByocInfrastructureProgressRequest" });
|
|
966
|
+
case 1:
|
|
967
|
+
return S.Array(/*@__PURE__*/ S.suspend(() => __S(74, __c9, 2)));
|
|
968
|
+
case 2:
|
|
969
|
+
return S.suspend(() =>
|
|
970
|
+
S.Struct({
|
|
971
|
+
name: S.optional(S.String),
|
|
972
|
+
status: S.optional(S.String),
|
|
973
|
+
updatedAt: S.optional(S.String),
|
|
974
|
+
message: S.optional(S.String),
|
|
975
|
+
subStages: S.optional(__S(73, __c9, 1)),
|
|
976
|
+
}),
|
|
977
|
+
).annotate({ identifier: "ByocInfrastructureProgressStage" });
|
|
978
|
+
case 3:
|
|
979
|
+
return S.Array(__S(74, __c9, 2));
|
|
980
|
+
case 4:
|
|
981
|
+
return S.suspend(() =>
|
|
982
|
+
S.Struct({
|
|
983
|
+
id: S.optional(S.String),
|
|
984
|
+
status: S.optional(S.String),
|
|
985
|
+
updatedAt: S.optional(S.String),
|
|
986
|
+
stages: S.optional(__S(75, __c9, 3)),
|
|
987
|
+
}),
|
|
988
|
+
).annotate({ identifier: "ByocInfrastructureProgress" });
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
function __c10(j: number): any {
|
|
992
|
+
switch (j) {
|
|
993
|
+
case 0:
|
|
994
|
+
return S.suspend(() =>
|
|
995
|
+
S.Struct({
|
|
996
|
+
organizationId: S.String.pipe(T.Label()),
|
|
997
|
+
byocInfrastructureId: S.String.pipe(T.Label()),
|
|
998
|
+
}).pipe(
|
|
999
|
+
T.Http({
|
|
1000
|
+
method: "GET",
|
|
1001
|
+
uri: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/tags",
|
|
1002
|
+
code: 200,
|
|
1003
|
+
}),
|
|
1004
|
+
),
|
|
1005
|
+
).annotate({ identifier: "GetByocInfrastructureTagsRequest" });
|
|
1006
|
+
case 1:
|
|
1007
|
+
return S.suspend(() =>
|
|
1008
|
+
S.Struct({
|
|
1009
|
+
tags: __S(88, __c11, 0),
|
|
1010
|
+
}),
|
|
1011
|
+
).annotate({ identifier: "ByocInfrastructureTagsResponse" });
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
function __c11(j: number): any {
|
|
1015
|
+
switch (j) {
|
|
1016
|
+
case 0:
|
|
1017
|
+
return S.Record(S.String, S.String);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
function __c12(j: number): any {
|
|
1021
|
+
switch (j) {
|
|
1022
|
+
case 0:
|
|
1023
|
+
return S.suspend(() =>
|
|
1024
|
+
S.Struct({
|
|
1025
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1026
|
+
quotaCode: S.String.pipe(T.Label()),
|
|
1027
|
+
}).pipe(
|
|
1028
|
+
T.Http({
|
|
1029
|
+
method: "GET",
|
|
1030
|
+
uri: "/v1/organizations/{organizationId}/quotas/{quotaCode}",
|
|
1031
|
+
code: 200,
|
|
1032
|
+
}),
|
|
1033
|
+
),
|
|
1034
|
+
).annotate({ identifier: "GetOrganizationQuotaRequest" });
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
function __c13(j: number): any {
|
|
1038
|
+
switch (j) {
|
|
1039
|
+
case 0:
|
|
1040
|
+
return S.suspend(() =>
|
|
1041
|
+
S.Struct({
|
|
1042
|
+
quotaCode: S.String,
|
|
1043
|
+
name: S.String,
|
|
1044
|
+
description: S.String,
|
|
1045
|
+
scope: S.String,
|
|
1046
|
+
value: S.Number,
|
|
1047
|
+
usage: S.optional(S.Number),
|
|
1048
|
+
adjustable: S.Boolean,
|
|
1049
|
+
}),
|
|
1050
|
+
).annotate({ identifier: "OrganizationQuota" });
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
function __c14(j: number): any {
|
|
1054
|
+
switch (j) {
|
|
1055
|
+
case 0:
|
|
1056
|
+
return S.suspend(() =>
|
|
1057
|
+
S.Struct({
|
|
1058
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1059
|
+
}).pipe(
|
|
1060
|
+
T.Http({ method: "GET", uri: "/v1/organizations/{organizationId}/previews", code: 200 }),
|
|
1061
|
+
),
|
|
1062
|
+
).annotate({ identifier: "ListOrganizationPublicPreviewsRequest" });
|
|
1063
|
+
case 1:
|
|
1064
|
+
return S.Array(__S(120, __c15, 0));
|
|
1065
|
+
case 2:
|
|
1066
|
+
return S.suspend(() => __S(113, __c14, 1).pipe(T.RawResponseRoot())).annotate({
|
|
1067
|
+
identifier: "ListOrganizationPublicPreviewsResponse",
|
|
1068
|
+
});
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
function __c15(j: number): any {
|
|
1072
|
+
switch (j) {
|
|
1073
|
+
case 0:
|
|
1074
|
+
return S.suspend(() =>
|
|
1075
|
+
S.Struct({
|
|
1076
|
+
id: S.String,
|
|
1077
|
+
name: S.String,
|
|
1078
|
+
description: S.String,
|
|
1079
|
+
docsUrl: S.String,
|
|
1080
|
+
enabled: S.Boolean,
|
|
1081
|
+
canToggle: S.Boolean,
|
|
1082
|
+
}),
|
|
1083
|
+
).annotate({ identifier: "PublicPreview" });
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
function __c16(j: number): any {
|
|
1087
|
+
switch (j) {
|
|
1088
|
+
case 0:
|
|
1089
|
+
return S.suspend(() =>
|
|
1090
|
+
S.Struct({
|
|
1091
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1092
|
+
}).pipe(
|
|
1093
|
+
T.Http({ method: "GET", uri: "/v1/organizations/{organizationId}/quotas", code: 200 }),
|
|
1094
|
+
),
|
|
1095
|
+
).annotate({ identifier: "ListOrganizationQuotasRequest" });
|
|
1096
|
+
case 1:
|
|
1097
|
+
return S.Array(__S(104, __c13, 0));
|
|
1098
|
+
case 2:
|
|
1099
|
+
return S.suspend(() => __S(129, __c16, 1).pipe(T.RawResponseRoot())).annotate({
|
|
1100
|
+
identifier: "ListOrganizationQuotasResponse",
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1105
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1106
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1107
|
+
}
|