@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,3483 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-clickhouse-cloud/specs/openapi.json). Do not edit.
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
|
+
import { ClickHouseCloudServiceErrors } from "../errors.ts";
|
|
7
|
+
import { paginateCursor } from "../pagination.ts";
|
|
8
|
+
import {
|
|
9
|
+
ClickHouseCloudProtocol,
|
|
10
|
+
ClickHouseCloudPaginatedProtocol,
|
|
11
|
+
type ClickHouseCloudOpError,
|
|
12
|
+
type ClickHouseCloudOpContext,
|
|
13
|
+
} from "../protocol.ts";
|
|
14
|
+
import * as Retry from "../retry.ts";
|
|
15
|
+
import * as T from "../traits.ts";
|
|
16
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
17
|
+
const __s: any[] = [];
|
|
18
|
+
|
|
19
|
+
export type { ClickHouseCloudOpError, ClickHouseCloudOpContext };
|
|
20
|
+
|
|
21
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
22
|
+
const TELEMETRY = {
|
|
23
|
+
system: "clickhouse-cloud-api",
|
|
24
|
+
responseHeaders: [
|
|
25
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
26
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
27
|
+
],
|
|
28
|
+
prefix: "ClickhouseCloud",
|
|
29
|
+
service: "ClickPipes",
|
|
30
|
+
labels: "clickhouse_cloud",
|
|
31
|
+
propagate: "w3c",
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
/** Type of the Kafka source. */
|
|
35
|
+
export type ClickPipePostKafkaSourceType =
|
|
36
|
+
| "kafka"
|
|
37
|
+
| "redpanda"
|
|
38
|
+
| "msk"
|
|
39
|
+
| "gcmk"
|
|
40
|
+
| "confluent"
|
|
41
|
+
| "warpstream"
|
|
42
|
+
| "azureeventhub"
|
|
43
|
+
| "dokafka";
|
|
44
|
+
/** Format of the Kafka source. */
|
|
45
|
+
export type ClickPipePostKafkaSourceFormat = "JSONEachRow" | "Avro" | "AvroConfluent" | "Protobuf";
|
|
46
|
+
/** Authentication method of the Kafka source. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. Supported authentication methods: kafka: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, msk: SCRAM-SHA-512, IAM_ROLE, IAM_USER, MUTUAL_TLS, gcmk: PLAIN, MUTUAL_TLS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY, confluent: PLAIN, SCRAM-SHA-512, MUTUAL_TLS, warpstream: PLAIN, azureeventhub: PLAIN, redpanda: SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, dokafka: SCRAM-SHA-256, MUTUAL_TLS */
|
|
47
|
+
export type ClickPipePostKafkaSourceAuthentication =
|
|
48
|
+
| "PLAIN"
|
|
49
|
+
| "SCRAM-SHA-256"
|
|
50
|
+
| "SCRAM-SHA-512"
|
|
51
|
+
| "IAM_ROLE"
|
|
52
|
+
| "IAM_USER"
|
|
53
|
+
| "MUTUAL_TLS"
|
|
54
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
55
|
+
/** Offset strategy. */
|
|
56
|
+
export type ClickPipeKafkaOffsetStrategy = "from_beginning" | "from_latest" | "from_timestamp";
|
|
57
|
+
export interface ClickPipeKafkaOffset {
|
|
58
|
+
/** Offset strategy. */
|
|
59
|
+
strategy?: ClickPipeKafkaOffsetStrategy | (string & {}) | undefined;
|
|
60
|
+
/** A minute precision UTC timestamp to start from. Required for "from_timestamp" strategy. */
|
|
61
|
+
timestamp?: string | null | undefined;
|
|
62
|
+
}
|
|
63
|
+
/** Type of the schema registry. Defaults to 'confluent' (a Confluent-compatible REST registry). */
|
|
64
|
+
export type ClickPipeMutateKafkaConfluentSchemaRegistryType = "confluent";
|
|
65
|
+
export interface ClickPipeKafkaSchemaRegistryCredentials {
|
|
66
|
+
/** Username for the schema registry. */
|
|
67
|
+
username: string;
|
|
68
|
+
/** Password for the schema registry. */
|
|
69
|
+
password: string | Redacted.Redacted<string>;
|
|
70
|
+
}
|
|
71
|
+
export interface ClickPipeKafkaSchemaRegistryClientCredentials {
|
|
72
|
+
/** OAuth2 client ID for the schema registry. */
|
|
73
|
+
clientId: string;
|
|
74
|
+
/** OAuth2 client secret for the schema registry. */
|
|
75
|
+
clientSecret: string | Redacted.Redacted<string>;
|
|
76
|
+
}
|
|
77
|
+
/** Credentials for the schema registry. Use a username and password for PLAIN, or a client ID and secret for CLIENT_CREDENTIALS. */
|
|
78
|
+
export type ClickPipeMutateKafkaConfluentSchemaRegistryCredentials =
|
|
79
|
+
| ClickPipeKafkaSchemaRegistryCredentials
|
|
80
|
+
| ClickPipeKafkaSchemaRegistryClientCredentials;
|
|
81
|
+
export interface ClickPipeMutateKafkaConfluentSchemaRegistry {
|
|
82
|
+
/** Type of the schema registry. Defaults to 'confluent' (a Confluent-compatible REST registry). */
|
|
83
|
+
type?: ClickPipeMutateKafkaConfluentSchemaRegistryType | (string & {}) | undefined;
|
|
84
|
+
/** Schema URL. HTTPS required. */
|
|
85
|
+
url: string;
|
|
86
|
+
/** Authentication type of the schema registry. One of 'PLAIN', 'CLIENT_CREDENTIALS'. PLAIN uses a username and password. CLIENT_CREDENTIALS uses the OAuth2 client credentials flow. */
|
|
87
|
+
authentication: string;
|
|
88
|
+
/** PEM encoded CA certificates to validate the schema registry's certificate. */
|
|
89
|
+
caCertificate?: string | null | undefined;
|
|
90
|
+
/** OAuth2 token endpoint. HTTPS required. Required when authentication is CLIENT_CREDENTIALS. */
|
|
91
|
+
tokenUrl?: string | null | undefined;
|
|
92
|
+
/** Space-separated OAuth2 scopes to request. Only used when authentication is CLIENT_CREDENTIALS. */
|
|
93
|
+
scope?: string | null | undefined;
|
|
94
|
+
/** OAuth2 audience to request. Only used when authentication is CLIENT_CREDENTIALS. */
|
|
95
|
+
audience?: string | null | undefined;
|
|
96
|
+
/** Credentials for the schema registry. Use a username and password for PLAIN, or a client ID and secret for CLIENT_CREDENTIALS. */
|
|
97
|
+
credentials: ClickPipeMutateKafkaConfluentSchemaRegistryCredentials;
|
|
98
|
+
}
|
|
99
|
+
/** Type of the schema registry. Use 'glue' for the AWS Glue Schema Registry, which authenticates with IAM instead of credentials. */
|
|
100
|
+
export type ClickPipeKafkaGlueSchemaRegistryType = "glue";
|
|
101
|
+
export interface ClickPipeKafkaGlueSchemaRegistry {
|
|
102
|
+
/** Type of the schema registry. Use 'glue' for the AWS Glue Schema Registry, which authenticates with IAM instead of credentials. */
|
|
103
|
+
type: ClickPipeKafkaGlueSchemaRegistryType;
|
|
104
|
+
/** AWS region of the Glue Schema Registry. */
|
|
105
|
+
glueRegion: string;
|
|
106
|
+
/** Name of the Glue Schema Registry. */
|
|
107
|
+
glueRegistryName: string;
|
|
108
|
+
/** IAM role to assume for Glue Schema Registry access. Defaults to the iamRole of the Kafka source, so it is required when the source does not authenticate with IAM. Read more in ClickPipes documentation: https://clickhouse.com/docs/en/integrations/clickpipes/kafka#iam */
|
|
109
|
+
glueRoleArn?: string | undefined;
|
|
110
|
+
}
|
|
111
|
+
export type ClickPipeMutateKafkaSchemaRegistry =
|
|
112
|
+
| ClickPipeMutateKafkaConfluentSchemaRegistry
|
|
113
|
+
| ClickPipeKafkaGlueSchemaRegistry;
|
|
114
|
+
/** Reverse private endpoint UUIDs used for a secure private connection to the Kafka source. */
|
|
115
|
+
export type ClickPipePostKafkaSourceReversePrivateEndpointIdsList = Array<string>;
|
|
116
|
+
/** How Kafka tombstone records are handled. Set to "delete" to delete the matching destination row; this requires exactly-once delivery. Set to "soft_delete" to write a row with the _is_deleted virtual column set to true; exactly-once delivery is not required. Can only be set at pipe creation. */
|
|
117
|
+
export type ClickPipePostKafkaSourceTombstoneMode = "delete" | "soft_delete";
|
|
118
|
+
export interface PLAIN {
|
|
119
|
+
/** Database username. */
|
|
120
|
+
username?: string | undefined;
|
|
121
|
+
/** Database password. */
|
|
122
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
123
|
+
}
|
|
124
|
+
export interface MskIamUser {
|
|
125
|
+
/** IAM access key ID. */
|
|
126
|
+
accessKeyId?: string | undefined;
|
|
127
|
+
/** IAM secret key. */
|
|
128
|
+
secretKey?: string | Redacted.Redacted<string> | undefined;
|
|
129
|
+
}
|
|
130
|
+
export interface AzureEventHub {
|
|
131
|
+
/** Connection string for Azure EventHub source. */
|
|
132
|
+
connectionString?: string | Redacted.Redacted<string> | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface MutualTLS {
|
|
135
|
+
/** PEM encoded client certificate for mTLS authentication. */
|
|
136
|
+
certificate?: string | undefined;
|
|
137
|
+
/** PEM encoded client private key for mTLS authentication. */
|
|
138
|
+
privateKey?: string | Redacted.Redacted<string> | undefined;
|
|
139
|
+
}
|
|
140
|
+
/** Credentials for Kafka source. Choose one that is supported by the authentication method. */
|
|
141
|
+
export type ClickPipePostKafkaSourceCredentials = PLAIN | MskIamUser | AzureEventHub | MutualTLS;
|
|
142
|
+
export interface ClickPipePostKafkaSource {
|
|
143
|
+
/** Type of the Kafka source. */
|
|
144
|
+
type: ClickPipePostKafkaSourceType | (string & {});
|
|
145
|
+
/** Format of the Kafka source. */
|
|
146
|
+
format: ClickPipePostKafkaSourceFormat | (string & {});
|
|
147
|
+
/** Brokers of the Kafka source. */
|
|
148
|
+
brokers: string;
|
|
149
|
+
/** One or more Kafka topics as a comma-separated string. All topics must have the same schema and are ingested into the same destination table by a single ClickPipe. */
|
|
150
|
+
topics: string;
|
|
151
|
+
/** Consumer group of the Kafka source. If not provided "clickpipes-<<ID>>" will be used. */
|
|
152
|
+
consumerGroup?: string | null | undefined;
|
|
153
|
+
/** Authentication method of the Kafka source. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. Supported authentication methods: kafka: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, msk: SCRAM-SHA-512, IAM_ROLE, IAM_USER, MUTUAL_TLS, gcmk: PLAIN, MUTUAL_TLS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY, confluent: PLAIN, SCRAM-SHA-512, MUTUAL_TLS, warpstream: PLAIN, azureeventhub: PLAIN, redpanda: SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, dokafka: SCRAM-SHA-256, MUTUAL_TLS */
|
|
154
|
+
authentication: ClickPipePostKafkaSourceAuthentication | (string & {});
|
|
155
|
+
/** IAM role for the Kafka source. Use with IAM role authentication. Read more in ClickPipes documentation: https://clickhouse.com/docs/en/integrations/clickpipes/kafka#iam */
|
|
156
|
+
iamRole?: string | null | undefined;
|
|
157
|
+
offset?: ClickPipeKafkaOffset | null | undefined;
|
|
158
|
+
schemaRegistry?: ClickPipeMutateKafkaSchemaRegistry | null | undefined;
|
|
159
|
+
/** PEM encoded CA certificates to validate the broker's certificate. */
|
|
160
|
+
caCertificate?: string | null | undefined;
|
|
161
|
+
/** Reverse private endpoint UUIDs used for a secure private connection to the Kafka source. */
|
|
162
|
+
reversePrivateEndpointIds?: ClickPipePostKafkaSourceReversePrivateEndpointIdsList | undefined;
|
|
163
|
+
/** Enable exactly-once delivery. Guarantees every Kafka record is inserted exactly once across restarts and rebalances. Can only be set at pipe creation. */
|
|
164
|
+
exactlyOnce?: boolean | null | undefined;
|
|
165
|
+
/** How Kafka tombstone records are handled. Set to "delete" to delete the matching destination row; this requires exactly-once delivery. Set to "soft_delete" to write a row with the _is_deleted virtual column set to true; exactly-once delivery is not required. Can only be set at pipe creation. */
|
|
166
|
+
tombstoneMode?: ClickPipePostKafkaSourceTombstoneMode | (string & {}) | null | undefined;
|
|
167
|
+
/** Credentials for Kafka source. Choose one that is supported by the authentication method. */
|
|
168
|
+
credentials?: ClickPipePostKafkaSourceCredentials | undefined;
|
|
169
|
+
/** Base64-encoded .proto source or serialized FileDescriptorSet. Supported only with Protobuf format and cannot be combined with schemaRegistry. */
|
|
170
|
+
protobufSchema?: string | undefined;
|
|
171
|
+
}
|
|
172
|
+
/** Type of the ObjectStorage source. */
|
|
173
|
+
export type ClickPipePostObjectStorageSourceType =
|
|
174
|
+
| "s3"
|
|
175
|
+
| "gcs"
|
|
176
|
+
| "dospaces"
|
|
177
|
+
| "azureblobstorage"
|
|
178
|
+
| "cloudflarer2"
|
|
179
|
+
| "ovhobjectstorage";
|
|
180
|
+
/** Format of the files. */
|
|
181
|
+
export type ClickPipePostObjectStorageSourceFormat =
|
|
182
|
+
| "JSONEachRow"
|
|
183
|
+
| "JSONAsObject"
|
|
184
|
+
| "CSV"
|
|
185
|
+
| "CSVWithNames"
|
|
186
|
+
| "TabSeparated"
|
|
187
|
+
| "TabSeparatedWithNames"
|
|
188
|
+
| "Parquet"
|
|
189
|
+
| "Avro";
|
|
190
|
+
/** Compression algorithm used for the files. */
|
|
191
|
+
export type ClickPipePostObjectStorageSourceCompression =
|
|
192
|
+
| "none"
|
|
193
|
+
| "gzip"
|
|
194
|
+
| "gz"
|
|
195
|
+
| "brotli"
|
|
196
|
+
| "br"
|
|
197
|
+
| "xz"
|
|
198
|
+
| "LZMA"
|
|
199
|
+
| "zstd"
|
|
200
|
+
| "auto";
|
|
201
|
+
/** Authentication method. IAM_USER is for S3, GCS, and DigitalOcean Spaces. IAM_ROLE is for S3 only. SERVICE_ACCOUNT is for GCS only. For GCS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. CONNECTION_STRING is for Azure Blob Storage. PUBLIC uses no authentication. */
|
|
202
|
+
export type ClickPipePostObjectStorageSourceAuthentication =
|
|
203
|
+
| "IAM_ROLE"
|
|
204
|
+
| "IAM_USER"
|
|
205
|
+
| "CONNECTION_STRING"
|
|
206
|
+
| "SERVICE_ACCOUNT"
|
|
207
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
208
|
+
export interface ClickPipePostObjectStorageSource {
|
|
209
|
+
/** Type of the ObjectStorage source. */
|
|
210
|
+
type?: ClickPipePostObjectStorageSourceType | (string & {}) | undefined;
|
|
211
|
+
/** Format of the files. */
|
|
212
|
+
format?: ClickPipePostObjectStorageSourceFormat | (string & {}) | undefined;
|
|
213
|
+
/** Provide a path to the file(s) you want to ingest. You can specify multiple files using bash-like wildcards. For more information, see the documentation on using wildcards in path: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#limitations */
|
|
214
|
+
url?: string | undefined;
|
|
215
|
+
/** Delimiter used in the files. */
|
|
216
|
+
delimiter?: string | null | undefined;
|
|
217
|
+
/** Number of lines to skip at the start of each file. Only for TabSeparated and TabSeparatedWithNames formats. Can only be set at pipe creation. */
|
|
218
|
+
skipFirstLines?: number | undefined;
|
|
219
|
+
/** Compression algorithm used for the files. */
|
|
220
|
+
compression?: ClickPipePostObjectStorageSourceCompression | (string & {}) | null | undefined;
|
|
221
|
+
/** If set to true, the pipe will continuously read new files from the source. If set to false, the pipe will read the files only once. New files have to be uploaded lexically order. */
|
|
222
|
+
isContinuous?: boolean | null | undefined;
|
|
223
|
+
/** Queue URL for event-based continuous ingestion. For S3, provide an SQS queue URL. For GCS, provide a Pub/Sub subscription (e.g. projects/{project}/subscriptions/{name}). When provided, files are ingested based on event notifications rather than lexicographical order. Only applicable when isContinuous is true and authentication is not public. */
|
|
224
|
+
queueUrl?: string | null | undefined;
|
|
225
|
+
/** If set to true, skips the initial load and only ingests files delivered by queue notifications. Only applicable when queueUrl is provided. */
|
|
226
|
+
skipInitialLoad?: boolean | null | undefined;
|
|
227
|
+
/** Skip all files up to and including this object key during the initial load. Cannot be provided when skipInitialLoad is true. */
|
|
228
|
+
startAfter?: string | null | undefined;
|
|
229
|
+
/** Authentication method. IAM_USER is for S3, GCS, and DigitalOcean Spaces. IAM_ROLE is for S3 only. SERVICE_ACCOUNT is for GCS only. For GCS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. CONNECTION_STRING is for Azure Blob Storage. PUBLIC uses no authentication. */
|
|
230
|
+
authentication?:
|
|
231
|
+
| ClickPipePostObjectStorageSourceAuthentication
|
|
232
|
+
| (string & {})
|
|
233
|
+
| null
|
|
234
|
+
| undefined;
|
|
235
|
+
/** IAM role to be used with IAM role authentication. Read more in ClickPipes documentation: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#authentication */
|
|
236
|
+
iamRole?: string | null | undefined;
|
|
237
|
+
/** Connection string for Azure Blob Storage authentication. Required when authentication is CONNECTION_STRING. */
|
|
238
|
+
connectionString?: string | Redacted.Redacted<string> | null | undefined;
|
|
239
|
+
/** Path to the file(s) within the Azure container. Used for Azure Blob Storage sources. You can specify multiple files using bash-like wildcards. For more information, see the documentation on using wildcards in path: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#limitations */
|
|
240
|
+
path?: string | null | undefined;
|
|
241
|
+
/** Container name for Azure Blob Storage. Required when type is azureblobstorage. */
|
|
242
|
+
azureContainerName?: string | null | undefined;
|
|
243
|
+
accessKey?: MskIamUser | null | undefined;
|
|
244
|
+
/** Base64-encoded GCP service account JSON key. Required when authentication is SERVICE_ACCOUNT. */
|
|
245
|
+
serviceAccountKey?: string | Redacted.Redacted<string> | null | undefined;
|
|
246
|
+
}
|
|
247
|
+
/** Format of the Kinesis stream. */
|
|
248
|
+
export type ClickPipePostKinesisSourceFormat =
|
|
249
|
+
| "JSONEachRow"
|
|
250
|
+
| "Avro"
|
|
251
|
+
| "AvroConfluent"
|
|
252
|
+
| "Protobuf";
|
|
253
|
+
/** Type of iterator to use when reading from the Kinesis stream. If AT_TIMESTAMP is used, the timestamp field must be provided. */
|
|
254
|
+
export type ClickPipePostKinesisSourceIteratorType = "TRIM_HORIZON" | "LATEST" | "AT_TIMESTAMP";
|
|
255
|
+
/** Authentication method to use with the Kinesis stream. */
|
|
256
|
+
export type ClickPipePostKinesisSourceAuthentication = "IAM_ROLE" | "IAM_USER";
|
|
257
|
+
/** Type of the schema registry. Kinesis ClickPipes support the AWS Glue Schema Registry, which authenticates with IAM instead of credentials. */
|
|
258
|
+
export type ClickPipeKinesisSchemaRegistryType = "glue";
|
|
259
|
+
export interface ClickPipeKinesisSchemaRegistry {
|
|
260
|
+
/** Type of the schema registry. Kinesis ClickPipes support the AWS Glue Schema Registry, which authenticates with IAM instead of credentials. */
|
|
261
|
+
type: ClickPipeKinesisSchemaRegistryType | (string & {});
|
|
262
|
+
/** AWS region of the Glue Schema Registry. */
|
|
263
|
+
glueRegion: string;
|
|
264
|
+
/** Name of the Glue Schema Registry. */
|
|
265
|
+
glueRegistryName: string;
|
|
266
|
+
/** IAM role to assume for Glue Schema Registry access. Defaults to the IAM identity of the Kinesis source. */
|
|
267
|
+
glueRoleArn?: string | null | undefined;
|
|
268
|
+
}
|
|
269
|
+
export interface ClickPipePostKinesisSource {
|
|
270
|
+
/** Format of the Kinesis stream. */
|
|
271
|
+
format?: ClickPipePostKinesisSourceFormat | (string & {}) | undefined;
|
|
272
|
+
/** Name of the Kinesis stream. */
|
|
273
|
+
streamName?: string | undefined;
|
|
274
|
+
/** AWS region of the Kinesis stream. */
|
|
275
|
+
region?: string | undefined;
|
|
276
|
+
/** Use enhanced fan-out for the Kinesis stream. */
|
|
277
|
+
useEnhancedFanOut?: boolean | null | undefined;
|
|
278
|
+
/** Type of iterator to use when reading from the Kinesis stream. If AT_TIMESTAMP is used, the timestamp field must be provided. */
|
|
279
|
+
iteratorType?: ClickPipePostKinesisSourceIteratorType | (string & {}) | undefined;
|
|
280
|
+
/** UNIX timestamp to start reading from the Kinesis stream. Required if iteratorType is AT_TIMESTAMP. */
|
|
281
|
+
timestamp?: number | null | undefined;
|
|
282
|
+
/** Authentication method to use with the Kinesis stream. */
|
|
283
|
+
authentication?: ClickPipePostKinesisSourceAuthentication | (string & {}) | undefined;
|
|
284
|
+
/** IAM role to use for authentication. Required if IAM_ROLE is used. */
|
|
285
|
+
iamRole?: string | null | undefined;
|
|
286
|
+
schemaRegistry?: ClickPipeKinesisSchemaRegistry | null | undefined;
|
|
287
|
+
accessKey?: MskIamUser | null | undefined;
|
|
288
|
+
/** Base64-encoded .proto source or serialized FileDescriptorSet. Required with Protobuf format unless a schema registry is configured, and not supported with other formats. */
|
|
289
|
+
protobufSchema?: string | undefined;
|
|
290
|
+
}
|
|
291
|
+
/** Format of messages in the Pub/Sub topic. GCP Pub/Sub ClickPipes are in private preview -- contact support to enable this feature for your organization. */
|
|
292
|
+
export type ClickPipePostPubSubServiceAccountSourceFormat = "JSONEachRow" | "Avro" | "Protobuf";
|
|
293
|
+
/** Authenticate with a GCP service account JSON key. */
|
|
294
|
+
export type ClickPipePostPubSubServiceAccountSourceAuthentication = "SERVICE_ACCOUNT";
|
|
295
|
+
/** Starting position strategy for consuming the subscription. The seekTimestamp companion is required only when seekType is "timestamp"; setting it for a mismatched seek type is rejected. */
|
|
296
|
+
export type ClickPipePostPubSubServiceAccountSourceSeekType = "latest" | "earliest" | "timestamp";
|
|
297
|
+
export interface ServiceAccount {
|
|
298
|
+
/** Google Cloud service account JSON key file content, base64 encoded. */
|
|
299
|
+
serviceAccountFile: string | Redacted.Redacted<string>;
|
|
300
|
+
}
|
|
301
|
+
export interface ClickPipePostPubSubServiceAccountSource {
|
|
302
|
+
/** Format of messages in the Pub/Sub topic. GCP Pub/Sub ClickPipes are in private preview -- contact support to enable this feature for your organization. */
|
|
303
|
+
format: ClickPipePostPubSubServiceAccountSourceFormat | (string & {});
|
|
304
|
+
/** GCP project ID that owns the Pub/Sub topic. */
|
|
305
|
+
projectId: string;
|
|
306
|
+
/** Pub/Sub topic name (not the fully-qualified path). */
|
|
307
|
+
topic: string;
|
|
308
|
+
/** Authenticate with a GCP service account JSON key. */
|
|
309
|
+
authentication: ClickPipePostPubSubServiceAccountSourceAuthentication;
|
|
310
|
+
/** Starting position strategy for consuming the subscription. The seekTimestamp companion is required only when seekType is "timestamp"; setting it for a mismatched seek type is rejected. */
|
|
311
|
+
seekType: ClickPipePostPubSubServiceAccountSourceSeekType | (string & {});
|
|
312
|
+
/** RFC 3339 / ISO 8601 timestamp to seek to. Required when seekType is "timestamp"; must be omitted otherwise. */
|
|
313
|
+
seekTimestamp?: string | null | undefined;
|
|
314
|
+
/** Optional Pub/Sub subscription filter expression (CEL). Maximum 256 characters. */
|
|
315
|
+
filter?: string | null | undefined;
|
|
316
|
+
/** Whether to enable ordered delivery of messages (requires messages to be published with ordering keys). */
|
|
317
|
+
enableOrdering?: boolean | null | undefined;
|
|
318
|
+
/** Acknowledgement deadline for messages, in seconds. Must be between 10 and 600. */
|
|
319
|
+
ackDeadline?: number | null | undefined;
|
|
320
|
+
serviceAccountKey: ServiceAccount;
|
|
321
|
+
}
|
|
322
|
+
/** Format of messages in the Pub/Sub topic. GCP Pub/Sub ClickPipes are in private preview -- contact support to enable this feature for your organization. */
|
|
323
|
+
export type ClickPipePostPubSubWorkloadIdentitySourceFormat = "JSONEachRow" | "Avro" | "Protobuf";
|
|
324
|
+
/** SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
325
|
+
export type ClickPipePostPubSubWorkloadIdentitySourceAuthentication =
|
|
326
|
+
"SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
327
|
+
/** Starting position strategy for consuming the subscription. The seekTimestamp companion is required only when seekType is "timestamp"; setting it for a mismatched seek type is rejected. */
|
|
328
|
+
export type ClickPipePostPubSubWorkloadIdentitySourceSeekType = "latest" | "earliest" | "timestamp";
|
|
329
|
+
export interface ClickPipePostPubSubWorkloadIdentitySource {
|
|
330
|
+
/** Format of messages in the Pub/Sub topic. GCP Pub/Sub ClickPipes are in private preview -- contact support to enable this feature for your organization. */
|
|
331
|
+
format: ClickPipePostPubSubWorkloadIdentitySourceFormat | (string & {});
|
|
332
|
+
/** GCP project ID that owns the Pub/Sub topic. */
|
|
333
|
+
projectId: string;
|
|
334
|
+
/** Pub/Sub topic name (not the fully-qualified path). */
|
|
335
|
+
topic: string;
|
|
336
|
+
/** SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
337
|
+
authentication: ClickPipePostPubSubWorkloadIdentitySourceAuthentication;
|
|
338
|
+
/** Starting position strategy for consuming the subscription. The seekTimestamp companion is required only when seekType is "timestamp"; setting it for a mismatched seek type is rejected. */
|
|
339
|
+
seekType: ClickPipePostPubSubWorkloadIdentitySourceSeekType | (string & {});
|
|
340
|
+
/** RFC 3339 / ISO 8601 timestamp to seek to. Required when seekType is "timestamp"; must be omitted otherwise. */
|
|
341
|
+
seekTimestamp?: string | null | undefined;
|
|
342
|
+
/** Optional Pub/Sub subscription filter expression (CEL). Maximum 256 characters. */
|
|
343
|
+
filter?: string | null | undefined;
|
|
344
|
+
/** Whether to enable ordered delivery of messages (requires messages to be published with ordering keys). */
|
|
345
|
+
enableOrdering?: boolean | null | undefined;
|
|
346
|
+
/** Acknowledgement deadline for messages, in seconds. Must be between 10 and 600. */
|
|
347
|
+
ackDeadline?: number | null | undefined;
|
|
348
|
+
}
|
|
349
|
+
export type ClickPipePostPubSubSource =
|
|
350
|
+
| ClickPipePostPubSubServiceAccountSource
|
|
351
|
+
| ClickPipePostPubSubWorkloadIdentitySource;
|
|
352
|
+
/** Type of the Postgres source. Defaults to "postgres" if not specified. */
|
|
353
|
+
export type ClickPipeMutatePostgresSourceType =
|
|
354
|
+
| "postgres"
|
|
355
|
+
| "supabase"
|
|
356
|
+
| "neon"
|
|
357
|
+
| "alloydb"
|
|
358
|
+
| "planetscale"
|
|
359
|
+
| "rdspostgres"
|
|
360
|
+
| "aurorapostgres"
|
|
361
|
+
| "cloudsqlpostgres"
|
|
362
|
+
| "azurepostgres"
|
|
363
|
+
| "crunchybridge"
|
|
364
|
+
| "tigerdata";
|
|
365
|
+
/** Replication mode: "cdc" (change data capture with initial snapshot), "snapshot" (one-time snapshot only), or "cdc_only" (CDC without initial snapshot). */
|
|
366
|
+
export type ClickPipePostgresPipeSettingsReplicationMode = "cdc" | "snapshot" | "cdc_only";
|
|
367
|
+
export interface ClickPipePostgresPipeSettings {
|
|
368
|
+
/** Interval in seconds to sync data from Postgres during CDC replication. */
|
|
369
|
+
syncIntervalSeconds?: number | undefined;
|
|
370
|
+
/** Number of rows to pull in each batch during CDC replication. */
|
|
371
|
+
pullBatchSize?: number | undefined;
|
|
372
|
+
/** PostgreSQL publication name to use for CDC replication. If not provided, ClickPipes will create one automatically. */
|
|
373
|
+
publicationName?: string | undefined;
|
|
374
|
+
/** Replication mode: "cdc" (change data capture with initial snapshot), "snapshot" (one-time snapshot only), or "cdc_only" (CDC without initial snapshot). */
|
|
375
|
+
replicationMode?: ClickPipePostgresPipeSettingsReplicationMode | (string & {}) | undefined;
|
|
376
|
+
/** PostgreSQL replication slot name. Only valid for "cdc_only" mode. For "cdc" mode, ClickPipes creates the slot automatically. */
|
|
377
|
+
replicationSlotName?: string | undefined;
|
|
378
|
+
/** Preserve nullability from Postgres in the destination ClickHouse table. When true, columns without NOT NULL constraints are created as Nullable(...). When false, all columns are non-nullable and NULL values are replaced with the default value for the type. Note: Nullable types have performance overhead in ClickHouse. */
|
|
379
|
+
allowNullableColumns?: boolean | undefined;
|
|
380
|
+
/** Number of parallel workers to use per table in the initial snapshot phase. */
|
|
381
|
+
initialLoadParallelism?: number | undefined;
|
|
382
|
+
/** Number of rows per partition during the snapshot phase. */
|
|
383
|
+
snapshotNumRowsPerPartition?: number | undefined;
|
|
384
|
+
/** Number of tables to snapshot in parallel during the initial load phase. */
|
|
385
|
+
snapshotNumberOfParallelTables?: number | undefined;
|
|
386
|
+
/** Enable failover support for the replication slot on PG17 and newer. Only applicable when ClickPipes creates the replication slot (i.e., replicationSlotName is NOT provided). */
|
|
387
|
+
enableFailoverSlots?: boolean | undefined;
|
|
388
|
+
/** Enable hard delete behavior in ReplacingMergeTree for PostgreSQL DELETE operations. */
|
|
389
|
+
deleteOnMerge?: boolean | undefined;
|
|
390
|
+
/** Store json and jsonb columns in native ClickHouse JSON format (requires ClickHouse 25.3+). Non-object values are wrapped as {"_value": ...}, and json[]/jsonb[] become Array(JSON). When disabled, JSON data is stored as String. Can only be set at creation. Must be enabled for your organization. */
|
|
391
|
+
useJsonNativeFormat?: boolean | undefined;
|
|
392
|
+
}
|
|
393
|
+
/** Authentication method for Postgres connection. IAM_ROLE is only available for services on AWS. */
|
|
394
|
+
export type ClickPipeMutatePostgresSourceAuthentication =
|
|
395
|
+
| "basic"
|
|
396
|
+
| "IAM_ROLE"
|
|
397
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
398
|
+
/** List of column names to exclude from replication. Column names must be unique within this list. */
|
|
399
|
+
export type ClickPipePostgresPipeTableMappingExcludedColumnsList = Array<string>;
|
|
400
|
+
/** Ordered list of column names to use as the sorting (ORDER BY) key in ClickHouse. Only used when useCustomSortingKey is true. Column names must be unique within this list. */
|
|
401
|
+
export type ClickPipePostgresPipeTableMappingSortingKeysList = Array<string>;
|
|
402
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
403
|
+
export type ClickPipePostgresPipeTableMappingTableEngine =
|
|
404
|
+
| "MergeTree"
|
|
405
|
+
| "ReplacingMergeTree"
|
|
406
|
+
| "Null";
|
|
407
|
+
export interface ClickPipePostgresPipeTableMapping {
|
|
408
|
+
/** PostgreSQL source schema name. */
|
|
409
|
+
sourceSchemaName?: string | undefined;
|
|
410
|
+
/** PostgreSQL source table name. */
|
|
411
|
+
sourceTable?: string | undefined;
|
|
412
|
+
/** ClickHouse target table name, optionally prefixed with schema name (e.g., "my_schema_my_table"). The table will be created automatically if it does not exist. For snapshot mode, the target table must be empty. */
|
|
413
|
+
targetTable?: string | undefined;
|
|
414
|
+
/** List of column names to exclude from replication. Column names must be unique within this list. */
|
|
415
|
+
excludedColumns?: ClickPipePostgresPipeTableMappingExcludedColumnsList | undefined;
|
|
416
|
+
/** Whether to use a custom sorting key. If true, sortingKeys must be provided. If false or omitted, the default sorting key is the PostgreSQL primary key. */
|
|
417
|
+
useCustomSortingKey?: boolean | undefined;
|
|
418
|
+
/** Ordered list of column names to use as the sorting (ORDER BY) key in ClickHouse. Only used when useCustomSortingKey is true. Column names must be unique within this list. */
|
|
419
|
+
sortingKeys?: ClickPipePostgresPipeTableMappingSortingKeysList | undefined;
|
|
420
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
421
|
+
tableEngine?: ClickPipePostgresPipeTableMappingTableEngine | (string & {}) | undefined;
|
|
422
|
+
/** Custom partitioning column used for parallel snapshotting. Only beneficial for PostgreSQL 13 (no benefit for PG14+, which supports indexed ctid scans). Must be an indexed column of type: `smallint`, `integer`, `bigint`, `timestamp without time zone`, or `timestamp with time zone`. Unrelated to ClickHouse partitioning. */
|
|
423
|
+
partitionKey?: string | undefined;
|
|
424
|
+
/** ClickHouse PARTITION BY expression applied to the destination table when ClickPipes creates it. */
|
|
425
|
+
partitionByExpr?: string | undefined;
|
|
426
|
+
}
|
|
427
|
+
/** List of table mappings defining which PostgreSQL tables to replicate and how they map to ClickHouse tables. */
|
|
428
|
+
export type ClickPipeMutatePostgresSourceTableMappingsList =
|
|
429
|
+
Array<ClickPipePostgresPipeTableMapping>;
|
|
430
|
+
export interface ClickPipeMutatePostgresSource {
|
|
431
|
+
/** Type of the Postgres source. Defaults to "postgres" if not specified. */
|
|
432
|
+
type?: ClickPipeMutatePostgresSourceType | (string & {}) | null | undefined;
|
|
433
|
+
credentials?: PLAIN | undefined;
|
|
434
|
+
/** PostgreSQL server hostname or IP address. To use a reverse private endpoint, pass the endpoint hostname here. For Cloud SQL with SERVICE_ACCOUNT_WORKLOAD_IDENTITY authentication, pass the instance connection name (project:region:instance). */
|
|
435
|
+
host?: string | undefined;
|
|
436
|
+
/** PostgreSQL server port. */
|
|
437
|
+
port?: number | undefined;
|
|
438
|
+
/** PostgreSQL database name to replicate from. */
|
|
439
|
+
database?: string | undefined;
|
|
440
|
+
settings?: ClickPipePostgresPipeSettings | undefined;
|
|
441
|
+
/** Authentication method for Postgres connection. IAM_ROLE is only available for services on AWS. */
|
|
442
|
+
authentication?: ClickPipeMutatePostgresSourceAuthentication | (string & {}) | undefined;
|
|
443
|
+
/** IAM role ARN for IAM authentication (required for IAM_ROLE authentication, services on AWS only). */
|
|
444
|
+
iamRole?: string | undefined;
|
|
445
|
+
/** TLS/SSL host for secure connections. */
|
|
446
|
+
tlsHost?: string | undefined;
|
|
447
|
+
/** PEM encoded CA certificate to validate the Postgres server certificate. */
|
|
448
|
+
caCertificate?: string | undefined;
|
|
449
|
+
/** Disable TLS for the Postgres connection. Use with caution in production environments. Defaults to false when omitted. */
|
|
450
|
+
disableTls?: boolean | undefined;
|
|
451
|
+
/** Skip TLS certificate verification for the Postgres connection. Use with caution in production environments. */
|
|
452
|
+
skipCertVerification?: boolean | undefined;
|
|
453
|
+
/** List of table mappings defining which PostgreSQL tables to replicate and how they map to ClickHouse tables. */
|
|
454
|
+
tableMappings?: ClickPipeMutatePostgresSourceTableMappingsList | undefined;
|
|
455
|
+
}
|
|
456
|
+
/** Type of the MySQL source. Defaults to "mysql" if not specified. */
|
|
457
|
+
export type ClickPipeMutateMySQLSourceType =
|
|
458
|
+
| "mysql"
|
|
459
|
+
| "rdsmysql"
|
|
460
|
+
| "auroramysql"
|
|
461
|
+
| "cloudsqlmysql"
|
|
462
|
+
| "mariadb"
|
|
463
|
+
| "rdsmariadb";
|
|
464
|
+
/** Replication mode: "cdc" (change data capture with initial snapshot), "snapshot" (one-time snapshot only), or "cdc_only" (CDC without initial snapshot). */
|
|
465
|
+
export type ClickPipeMySQLPipeSettingsReplicationMode = "cdc" | "snapshot" | "cdc_only";
|
|
466
|
+
/** MySQL replication mechanism: "GTID" (Global Transaction Identifier) or "FILE_POS" (binary log file and position). Defaults to "GTID" if not specified. MariaDB supports "GTID" only. For "FILE_POS" on MySQL, contact support. */
|
|
467
|
+
export type ClickPipeMySQLPipeSettingsReplicationMechanism = "GTID" | "FILE_POS";
|
|
468
|
+
export interface ClickPipeMySQLPipeSettings {
|
|
469
|
+
/** Interval in seconds to sync data from MySQL during CDC replication. */
|
|
470
|
+
syncIntervalSeconds?: number | undefined;
|
|
471
|
+
/** Number of rows to pull in each batch during CDC replication. */
|
|
472
|
+
pullBatchSize?: number | undefined;
|
|
473
|
+
/** Replication mode: "cdc" (change data capture with initial snapshot), "snapshot" (one-time snapshot only), or "cdc_only" (CDC without initial snapshot). */
|
|
474
|
+
replicationMode: ClickPipeMySQLPipeSettingsReplicationMode | (string & {});
|
|
475
|
+
/** MySQL replication mechanism: "GTID" (Global Transaction Identifier) or "FILE_POS" (binary log file and position). Defaults to "GTID" if not specified. MariaDB supports "GTID" only. For "FILE_POS" on MySQL, contact support. */
|
|
476
|
+
replicationMechanism?: ClickPipeMySQLPipeSettingsReplicationMechanism | (string & {}) | undefined;
|
|
477
|
+
/** Enable compression for the MySQL connection. */
|
|
478
|
+
useCompression?: boolean | undefined;
|
|
479
|
+
/** Preserve nullability from MySQL in the destination ClickHouse table. When true, columns without NOT NULL constraints are created as Nullable(...). When false, all columns are non-nullable and NULL values are replaced with the default value for the type. Note: Nullable types have performance overhead in ClickHouse. */
|
|
480
|
+
allowNullableColumns?: boolean | undefined;
|
|
481
|
+
/** Number of parallel workers to use per table in the initial snapshot phase. */
|
|
482
|
+
initialLoadParallelism?: number | undefined;
|
|
483
|
+
/** Number of rows per partition during the snapshot phase. */
|
|
484
|
+
snapshotNumRowsPerPartition?: number | undefined;
|
|
485
|
+
/** Number of tables to snapshot in parallel during the initial load phase. */
|
|
486
|
+
snapshotNumberOfParallelTables?: number | undefined;
|
|
487
|
+
/** Enable hard delete behavior in ReplacingMergeTree for MySQL DELETE operations. */
|
|
488
|
+
deleteOnMerge?: boolean | undefined;
|
|
489
|
+
/** Store JSON columns in native ClickHouse JSON format (requires ClickHouse 25.3+). Non-object values are wrapped as {"_value": ...}. When disabled, JSON data is stored as String. Can only be set at creation. Must be enabled for your organization. */
|
|
490
|
+
useJsonNativeFormat?: boolean | undefined;
|
|
491
|
+
}
|
|
492
|
+
/** Authentication method for MySQL connection. IAM_ROLE is only available for services on AWS. */
|
|
493
|
+
export type ClickPipeMutateMySQLSourceAuthentication =
|
|
494
|
+
| "basic"
|
|
495
|
+
| "IAM_ROLE"
|
|
496
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
497
|
+
/** List of column names to exclude from replication. Column names must be unique within this list. */
|
|
498
|
+
export type ClickPipeMySQLPipeTableMappingExcludedColumnsList = Array<string>;
|
|
499
|
+
/** Ordered list of column names to use as the sorting (ORDER BY) key in ClickHouse. Only used when useCustomSortingKey is true. Column names must be unique within this list. */
|
|
500
|
+
export type ClickPipeMySQLPipeTableMappingSortingKeysList = Array<string>;
|
|
501
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
502
|
+
export type ClickPipeMySQLPipeTableMappingTableEngine = "MergeTree" | "ReplacingMergeTree" | "Null";
|
|
503
|
+
export interface ClickPipeMySQLPipeTableMapping {
|
|
504
|
+
/** MySQL source database name. */
|
|
505
|
+
sourceSchemaName: string;
|
|
506
|
+
/** MySQL source table name. */
|
|
507
|
+
sourceTable: string;
|
|
508
|
+
/** ClickHouse target table name, optionally prefixed with schema name (e.g., "my_database_my_table"). The table will be created automatically if it does not exist. For snapshot mode, the target table must be empty. */
|
|
509
|
+
targetTable: string;
|
|
510
|
+
/** List of column names to exclude from replication. Column names must be unique within this list. */
|
|
511
|
+
excludedColumns?: ClickPipeMySQLPipeTableMappingExcludedColumnsList | undefined;
|
|
512
|
+
/** Whether to use a custom sorting key. If true, sortingKeys must be provided. If false or omitted, the default sorting key is the MySQL primary key. */
|
|
513
|
+
useCustomSortingKey?: boolean | undefined;
|
|
514
|
+
/** Ordered list of column names to use as the sorting (ORDER BY) key in ClickHouse. Only used when useCustomSortingKey is true. Column names must be unique within this list. */
|
|
515
|
+
sortingKeys?: ClickPipeMySQLPipeTableMappingSortingKeysList | undefined;
|
|
516
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
517
|
+
tableEngine?: ClickPipeMySQLPipeTableMappingTableEngine | (string & {}) | undefined;
|
|
518
|
+
/** Custom partitioning column used for parallel snapshotting. Must be an indexed column of an integer, date, datetime or timestamp type. Unrelated to ClickHouse partitioning. */
|
|
519
|
+
partitionKey?: string | undefined;
|
|
520
|
+
/** ClickHouse PARTITION BY expression applied to the destination table when ClickPipes creates it. */
|
|
521
|
+
partitionByExpr?: string | undefined;
|
|
522
|
+
}
|
|
523
|
+
/** List of table mappings defining which MySQL tables to replicate and how they map to ClickHouse tables. */
|
|
524
|
+
export type ClickPipeMutateMySQLSourceTableMappingsList = Array<ClickPipeMySQLPipeTableMapping>;
|
|
525
|
+
export interface ClickPipeMutateMySQLSource {
|
|
526
|
+
/** Type of the MySQL source. Defaults to "mysql" if not specified. */
|
|
527
|
+
type?: ClickPipeMutateMySQLSourceType | (string & {}) | null | undefined;
|
|
528
|
+
credentials?: PLAIN | undefined;
|
|
529
|
+
/** MySQL server hostname or IP address. To use a reverse private endpoint, pass the endpoint hostname here. For Cloud SQL with SERVICE_ACCOUNT_WORKLOAD_IDENTITY authentication, pass the instance connection name (project:region:instance). */
|
|
530
|
+
host: string;
|
|
531
|
+
/** MySQL server port. */
|
|
532
|
+
port: number;
|
|
533
|
+
settings: ClickPipeMySQLPipeSettings;
|
|
534
|
+
/** Authentication method for MySQL connection. IAM_ROLE is only available for services on AWS. */
|
|
535
|
+
authentication?: ClickPipeMutateMySQLSourceAuthentication | (string & {}) | undefined;
|
|
536
|
+
/** IAM role ARN for IAM authentication (required for IAM_ROLE authentication, services on AWS only). */
|
|
537
|
+
iamRole?: string | undefined;
|
|
538
|
+
/** TLS/SSL host for secure connections. */
|
|
539
|
+
tlsHost?: string | undefined;
|
|
540
|
+
/** PEM encoded CA certificate to validate the MySQL server certificate. */
|
|
541
|
+
caCertificate?: string | undefined;
|
|
542
|
+
/** Disable TLS for the MySQL connection. Use with caution in production environments. Defaults to false when omitted. */
|
|
543
|
+
disableTls?: boolean | undefined;
|
|
544
|
+
/** Skip TLS certificate verification for the MySQL connection. Use with caution in production environments. */
|
|
545
|
+
skipCertVerification?: boolean | undefined;
|
|
546
|
+
/** Optional MySQL server_id the pipe declares itself as in the MySQL replication topology. Must be unique across replicas connected to the source. If omitted, one is assigned automatically. */
|
|
547
|
+
serverId?: number | undefined;
|
|
548
|
+
/** List of table mappings defining which MySQL tables to replicate and how they map to ClickHouse tables. */
|
|
549
|
+
tableMappings: ClickPipeMutateMySQLSourceTableMappingsList;
|
|
550
|
+
}
|
|
551
|
+
export interface ClickPipeBigQueryPipeSettings {
|
|
552
|
+
/** Replication mode: "cdc" (change data capture with initial snapshot), "snapshot" (one-time snapshot only), or "cdc_only" (CDC without initial snapshot). */
|
|
553
|
+
replicationMode: string;
|
|
554
|
+
/** How changes are captured from BigQuery. "query_based" polls each table using a watermark timestamp column, "events_based" reads the BigQuery change history using the APPENDS or CHANGES table function. Required for "cdc" and "cdc_only" replication modes and not allowed for "snapshot". */
|
|
555
|
+
replicationMethod?: string | undefined;
|
|
556
|
+
/** Interval in seconds between CDC syncs. Not allowed for "snapshot" replication mode. */
|
|
557
|
+
syncIntervalSeconds?: number | undefined;
|
|
558
|
+
/** Number of tables pulled in parallel during a CDC sync. Not allowed for "snapshot" replication mode. */
|
|
559
|
+
queryCdcPullSyncParallelism?: number | undefined;
|
|
560
|
+
/** Each CDC sync reads data only up to now minus this delay, giving recently written rows time to become visible in BigQuery. Increase it if your tables are loaded via batch jobs or Google Cloud Dataflow; if set too low, late-visible rows may be skipped. Not allowed for "snapshot" replication mode. */
|
|
561
|
+
syncDelaySeconds?: number | undefined;
|
|
562
|
+
/** Maximum amount of time one pull (query) can cover. Applies when the pipe has fallen behind, e.g. on the first CDC sync or when resuming after a pause: with a 6 hour limit, a pipe that is 3 days behind catches up in 12 smaller pulls instead of one large query. If a pull fails, only that pull is retried. Not allowed for "snapshot" replication mode. */
|
|
563
|
+
pullWindowSizeSeconds?: number | undefined;
|
|
564
|
+
/** Standard 5-field cron expression (or a descriptor such as "@hourly") that schedules CDC syncs, e.g. "0 * * * *" to sync every hour sharp. Evaluated in UTC unless prefixed with "CRON_TZ=<zone>". Must not fire more than once a minute. Syncs run on this schedule instead of every syncIntervalSeconds, so the two cannot both be set. Not allowed for "snapshot" replication mode. */
|
|
565
|
+
syncCron?: string | undefined;
|
|
566
|
+
/** Allow nullable columns in the destination table. */
|
|
567
|
+
allowNullableColumns?: boolean | undefined;
|
|
568
|
+
/** Number of parallel workers during initial load. */
|
|
569
|
+
initialLoadParallelism?: number | undefined;
|
|
570
|
+
/** Number of rows to snapshot per partition. */
|
|
571
|
+
snapshotNumRowsPerPartition?: number | undefined;
|
|
572
|
+
/** Number of parallel tables to snapshot. */
|
|
573
|
+
snapshotNumberOfParallelTables?: number | undefined;
|
|
574
|
+
}
|
|
575
|
+
/** Columns to exclude from the target table. */
|
|
576
|
+
export type ClickPipeBigQueryPipeTableMappingExcludedColumnsList = Array<string>;
|
|
577
|
+
/** Ordered list of columns to use as sorting key for the target table. */
|
|
578
|
+
export type ClickPipeBigQueryPipeTableMappingSortingKeysList = Array<string>;
|
|
579
|
+
/** Table engine to use for the target table. */
|
|
580
|
+
export type ClickPipeBigQueryPipeTableMappingTableEngine =
|
|
581
|
+
| "MergeTree"
|
|
582
|
+
| "ReplacingMergeTree"
|
|
583
|
+
| "Null";
|
|
584
|
+
export interface ClickPipeBigQueryPipeTableMapping {
|
|
585
|
+
/** Source BigQuery dataset name. */
|
|
586
|
+
sourceDatasetName: string;
|
|
587
|
+
/** Source table name. */
|
|
588
|
+
sourceTable: string;
|
|
589
|
+
/** Target ClickHouse table name. */
|
|
590
|
+
targetTable: string;
|
|
591
|
+
/** Columns to exclude from the target table. */
|
|
592
|
+
excludedColumns?: ClickPipeBigQueryPipeTableMappingExcludedColumnsList | undefined;
|
|
593
|
+
/** Whether to use a custom sorting key for the target table. */
|
|
594
|
+
useCustomSortingKey?: boolean | undefined;
|
|
595
|
+
/** Ordered list of columns to use as sorting key for the target table. */
|
|
596
|
+
sortingKeys?: ClickPipeBigQueryPipeTableMappingSortingKeysList | undefined;
|
|
597
|
+
/** Table engine to use for the target table. */
|
|
598
|
+
tableEngine?: ClickPipeBigQueryPipeTableMappingTableEngine | (string & {}) | undefined;
|
|
599
|
+
/** Source column of type TIMESTAMP used as the CDC watermark. Required for every table when replicationMethod is "query_based"; not allowed otherwise. */
|
|
600
|
+
queryCdcWatermarkColumn?: string | undefined;
|
|
601
|
+
/** BigQuery table function used to read changes: "appends" (newly appended rows) or "changes" (all row changes). Required for every table when replicationMethod is "events_based"; not allowed otherwise. */
|
|
602
|
+
eventsFunction?: string | undefined;
|
|
603
|
+
}
|
|
604
|
+
/** Table mappings for BigQuery pipe. */
|
|
605
|
+
export type ClickPipePostBigQueryServiceAccountSourceTableMappingsList =
|
|
606
|
+
Array<ClickPipeBigQueryPipeTableMapping>;
|
|
607
|
+
/** Authenticate with a Google Cloud service account JSON key. Defaults to SERVICE_ACCOUNT when omitted. */
|
|
608
|
+
export type ClickPipePostBigQueryServiceAccountSourceAuthentication = "SERVICE_ACCOUNT";
|
|
609
|
+
export interface ClickPipePostBigQueryServiceAccountSource {
|
|
610
|
+
/** GCS bucket path for staging snapshot data (e.g., gs://my-bucket/staging/). Data will be automatically cleaned up after initial load. */
|
|
611
|
+
snapshotStagingPath: string;
|
|
612
|
+
settings: ClickPipeBigQueryPipeSettings;
|
|
613
|
+
/** Table mappings for BigQuery pipe. */
|
|
614
|
+
tableMappings: ClickPipePostBigQueryServiceAccountSourceTableMappingsList;
|
|
615
|
+
/** Authenticate with a Google Cloud service account JSON key. Defaults to SERVICE_ACCOUNT when omitted. */
|
|
616
|
+
authentication?:
|
|
617
|
+
| ClickPipePostBigQueryServiceAccountSourceAuthentication
|
|
618
|
+
| (string & {})
|
|
619
|
+
| undefined;
|
|
620
|
+
/** GCP project ID that owns the BigQuery resources. */
|
|
621
|
+
projectId?: string | undefined;
|
|
622
|
+
credentials: ServiceAccount;
|
|
623
|
+
}
|
|
624
|
+
/** Table mappings for BigQuery pipe. */
|
|
625
|
+
export type ClickPipePostBigQueryWorkloadIdentitySourceTableMappingsList =
|
|
626
|
+
Array<ClickPipeBigQueryPipeTableMapping>;
|
|
627
|
+
/** Authenticate with the ClickPipes service tenant identity. Customer credentials must not be provided. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
628
|
+
export type ClickPipePostBigQueryWorkloadIdentitySourceAuthentication =
|
|
629
|
+
"SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
630
|
+
export interface ClickPipePostBigQueryWorkloadIdentitySource {
|
|
631
|
+
/** GCS bucket path for staging snapshot data (e.g., gs://my-bucket/staging/). Data will be automatically cleaned up after initial load. */
|
|
632
|
+
snapshotStagingPath: string;
|
|
633
|
+
settings: ClickPipeBigQueryPipeSettings;
|
|
634
|
+
/** Table mappings for BigQuery pipe. */
|
|
635
|
+
tableMappings: ClickPipePostBigQueryWorkloadIdentitySourceTableMappingsList;
|
|
636
|
+
/** Authenticate with the ClickPipes service tenant identity. Customer credentials must not be provided. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
637
|
+
authentication: ClickPipePostBigQueryWorkloadIdentitySourceAuthentication;
|
|
638
|
+
/** GCP project ID that owns the BigQuery resources. */
|
|
639
|
+
projectId: string;
|
|
640
|
+
}
|
|
641
|
+
export type ClickPipeMutateBigQuerySource =
|
|
642
|
+
| ClickPipePostBigQueryServiceAccountSource
|
|
643
|
+
| ClickPipePostBigQueryWorkloadIdentitySource;
|
|
644
|
+
/** MongoDB read preference for replica set reads. */
|
|
645
|
+
export type ClickPipeMutateMongoDBSourceReadPreference =
|
|
646
|
+
| "primary"
|
|
647
|
+
| "primaryPreferred"
|
|
648
|
+
| "secondary"
|
|
649
|
+
| "secondaryPreferred"
|
|
650
|
+
| "nearest";
|
|
651
|
+
/** Replication mode: "cdc" (change data capture with initial snapshot), "snapshot" (one-time snapshot only), or "cdc_only" (CDC without initial snapshot). */
|
|
652
|
+
export type ClickPipeMongoDBPipeSettingsReplicationMode = "cdc" | "snapshot" | "cdc_only";
|
|
653
|
+
export interface ClickPipeMongoDBPipeSettings {
|
|
654
|
+
/** Interval in seconds to sync data from MongoDB during CDC replication. */
|
|
655
|
+
syncIntervalSeconds?: number | undefined;
|
|
656
|
+
/** Number of rows to pull in each batch during CDC replication. */
|
|
657
|
+
pullBatchSize?: number | undefined;
|
|
658
|
+
/** Replication mode: "cdc" (change data capture with initial snapshot), "snapshot" (one-time snapshot only), or "cdc_only" (CDC without initial snapshot). */
|
|
659
|
+
replicationMode: ClickPipeMongoDBPipeSettingsReplicationMode | (string & {});
|
|
660
|
+
/** Number of parallel workers to use per collection in the initial snapshot phase. */
|
|
661
|
+
initialLoadParallelism?: number | undefined;
|
|
662
|
+
/** Number of rows per partition during the snapshot phase. */
|
|
663
|
+
snapshotNumRowsPerPartition?: number | undefined;
|
|
664
|
+
/** Number of collections to snapshot in parallel during the initial load phase. */
|
|
665
|
+
snapshotNumberOfParallelTables?: number | undefined;
|
|
666
|
+
/** Enable hard delete behavior in ReplacingMergeTree for MongoDB DELETE operations. */
|
|
667
|
+
deleteOnMerge?: boolean | undefined;
|
|
668
|
+
/** Store JSON values in native ClickHouse JSON format. When disabled, JSON data is stored as String. */
|
|
669
|
+
useJsonNativeFormat?: boolean | undefined;
|
|
670
|
+
}
|
|
671
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
672
|
+
export type ClickPipeMongoDBPipeTableMappingTableEngine =
|
|
673
|
+
| "MergeTree"
|
|
674
|
+
| "ReplacingMergeTree"
|
|
675
|
+
| "Null";
|
|
676
|
+
export interface ClickPipeMongoDBPipeColumn {
|
|
677
|
+
/** Top-level document field name. */
|
|
678
|
+
name: string;
|
|
679
|
+
/** ClickHouse type the field is replicated as. Must be a valid ClickHouse column type supported by structured ingestion. */
|
|
680
|
+
type: string;
|
|
681
|
+
}
|
|
682
|
+
/** Typed columns of the collection, taken as provided. When omitted, the columns are inferred from a sample of the collection documents. The _id document is always replicated and uses String type. */
|
|
683
|
+
export type ClickPipeMongoDBStructuredIngestionColumnsList = Array<ClickPipeMongoDBPipeColumn>;
|
|
684
|
+
/** Names of columns, provided or inferred, to leave out of replication. Names that match no column are ignored. Column names must be unique within this list. */
|
|
685
|
+
export type ClickPipeMongoDBStructuredIngestionExcludedColumnsList = Array<string>;
|
|
686
|
+
/** Ordered list of column names to use as the sorting (ORDER BY) key in ClickHouse. When omitted, the sorting key is the _id document key. */
|
|
687
|
+
export type ClickPipeMongoDBStructuredIngestionSortingKeysList = Array<string>;
|
|
688
|
+
export interface ClickPipeMongoDBStructuredIngestion {
|
|
689
|
+
/** Replicate the collection into typed ClickHouse columns instead of a single JSON document column. */
|
|
690
|
+
enabled: boolean;
|
|
691
|
+
/** When true, values that don't fit their column are reported with only the field name and reason, without the value. */
|
|
692
|
+
dropUnexpectedValues?: boolean | undefined;
|
|
693
|
+
/** Typed columns of the collection, taken as provided. When omitted, the columns are inferred from a sample of the collection documents. The _id document is always replicated and uses String type. */
|
|
694
|
+
columns?: ClickPipeMongoDBStructuredIngestionColumnsList | undefined;
|
|
695
|
+
/** Names of columns, provided or inferred, to leave out of replication. Names that match no column are ignored. Column names must be unique within this list. */
|
|
696
|
+
excludedColumns?: ClickPipeMongoDBStructuredIngestionExcludedColumnsList | undefined;
|
|
697
|
+
/** Ordered list of column names to use as the sorting (ORDER BY) key in ClickHouse. When omitted, the sorting key is the _id document key. */
|
|
698
|
+
sortingKeys?: ClickPipeMongoDBStructuredIngestionSortingKeysList | undefined;
|
|
699
|
+
/** ClickHouse PARTITION BY expression applied to the destination table when ClickPipes creates it. */
|
|
700
|
+
partitionByExpr?: string | undefined;
|
|
701
|
+
}
|
|
702
|
+
export interface ClickPipeMongoDBTableConfig {
|
|
703
|
+
/** Persist the full document as it was right before it was deleted, instead of only its _id. Requires changeStreamPreAndPostImages to be enabled on the source collection. */
|
|
704
|
+
persistDeletedDocuments?: boolean | undefined;
|
|
705
|
+
}
|
|
706
|
+
export interface ClickPipeMongoDBPipeTableMapping {
|
|
707
|
+
/** MongoDB source database name. */
|
|
708
|
+
sourceDatabaseName: string;
|
|
709
|
+
/** MongoDB source collection name. */
|
|
710
|
+
sourceCollection: string;
|
|
711
|
+
/** ClickHouse target table name. The table will be created automatically if it does not exist. */
|
|
712
|
+
targetTable: string;
|
|
713
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
714
|
+
tableEngine?: ClickPipeMongoDBPipeTableMappingTableEngine | (string & {}) | undefined;
|
|
715
|
+
structuredIngestion?: ClickPipeMongoDBStructuredIngestion | undefined;
|
|
716
|
+
mongoConfig?: ClickPipeMongoDBTableConfig | undefined;
|
|
717
|
+
}
|
|
718
|
+
/** List of collection mappings defining which MongoDB collections to replicate and how they map to ClickHouse tables. */
|
|
719
|
+
export type ClickPipeMutateMongoDBSourceTableMappingsList = Array<ClickPipeMongoDBPipeTableMapping>;
|
|
720
|
+
export interface ClickPipeMutateMongoDBSource {
|
|
721
|
+
credentials?: PLAIN | undefined;
|
|
722
|
+
/** MongoDB connection URI. Supports both standard URIs (mongodb://...) and SRV URIs (mongodb+srv://...). Embedded credentials are redacted from API responses, so the returned value can differ from what was submitted. */
|
|
723
|
+
uri: string | Redacted.Redacted<string>;
|
|
724
|
+
/** MongoDB read preference for replica set reads. */
|
|
725
|
+
readPreference: ClickPipeMutateMongoDBSourceReadPreference | (string & {});
|
|
726
|
+
/** TLS/SSL host for secure connections. */
|
|
727
|
+
tlsHost?: string | undefined;
|
|
728
|
+
/** Disable TLS for the MongoDB connection. Defaults to false (TLS enabled). */
|
|
729
|
+
disableTls?: boolean | undefined;
|
|
730
|
+
/** Skip TLS certificate verification for the MongoDB connection. Use with caution in production environments. */
|
|
731
|
+
skipCertVerification?: boolean | undefined;
|
|
732
|
+
/** PEM encoded CA certificate to validate the MongoDB server certificate. */
|
|
733
|
+
caCertificate?: string | undefined;
|
|
734
|
+
settings: ClickPipeMongoDBPipeSettings;
|
|
735
|
+
/** List of collection mappings defining which MongoDB collections to replicate and how they map to ClickHouse tables. */
|
|
736
|
+
tableMappings: ClickPipeMutateMongoDBSourceTableMappingsList;
|
|
737
|
+
}
|
|
738
|
+
export interface ClickPipePostSource {
|
|
739
|
+
kafka?: ClickPipePostKafkaSource | undefined;
|
|
740
|
+
objectStorage?: ClickPipePostObjectStorageSource | undefined;
|
|
741
|
+
kinesis?: ClickPipePostKinesisSource | undefined;
|
|
742
|
+
pubsub?: ClickPipePostPubSubSource | undefined;
|
|
743
|
+
postgres?: ClickPipeMutatePostgresSource | undefined;
|
|
744
|
+
mysql?: ClickPipeMutateMySQLSource | undefined;
|
|
745
|
+
bigquery?: ClickPipeMutateBigQuerySource | undefined;
|
|
746
|
+
mongodb?: ClickPipeMutateMongoDBSource | undefined;
|
|
747
|
+
/** Validate data samples received from data source. It will validate the connection and data availability and correctness. If not enabled, only connection will be validated. This has no effect on Postgres or MySQL pipes, they always only validate the connection and table definitions. This is experimental and can be removed in the future. */
|
|
748
|
+
validateSamples?: boolean | undefined;
|
|
749
|
+
}
|
|
750
|
+
/** Engine type of the destination table. */
|
|
751
|
+
export type ClickPipeDestinationTableEngineType =
|
|
752
|
+
| "MergeTree"
|
|
753
|
+
| "ReplacingMergeTree"
|
|
754
|
+
| "SummingMergeTree"
|
|
755
|
+
| "Null";
|
|
756
|
+
/** Column names to sum for SummingMergeTree engine. */
|
|
757
|
+
export type ClickPipeDestinationTableEngineColumnIdsList = Array<string>;
|
|
758
|
+
export interface ClickPipeDestinationTableEngine {
|
|
759
|
+
/** Engine type of the destination table. */
|
|
760
|
+
type?: ClickPipeDestinationTableEngineType | (string & {}) | undefined;
|
|
761
|
+
/** Column name to use as version for ReplacingMergeTree engine. */
|
|
762
|
+
versionColumnId?: string | null | undefined;
|
|
763
|
+
/** Column names to sum for SummingMergeTree engine. */
|
|
764
|
+
columnIds?: ClickPipeDestinationTableEngineColumnIdsList | undefined;
|
|
765
|
+
}
|
|
766
|
+
/** Sorting key of the destination table. An entry that matches the name of a column declared in `columns` is used as that column. Any other entry is used as a SQL expression, for example a JSON sub-path such as `payload.workspace_id`. Entries must not contain commas, and every component must be non-Nullable. */
|
|
767
|
+
export type ClickPipeDestinationTableDefinitionSortingKeyList = Array<string>;
|
|
768
|
+
export interface ClickPipeDestinationTableDefinition {
|
|
769
|
+
engine?: ClickPipeDestinationTableEngine | undefined;
|
|
770
|
+
/** Sorting key of the destination table. An entry that matches the name of a column declared in `columns` is used as that column. Any other entry is used as a SQL expression, for example a JSON sub-path such as `payload.workspace_id`. Entries must not contain commas, and every component must be non-Nullable. */
|
|
771
|
+
sortingKey?: ClickPipeDestinationTableDefinitionSortingKeyList | undefined;
|
|
772
|
+
/** Partition key SQL expression. */
|
|
773
|
+
partitionBy?: string | undefined;
|
|
774
|
+
/** Primary key of SQL expression. */
|
|
775
|
+
primaryKey?: string | undefined;
|
|
776
|
+
/** TTL SQL expression of the destination table. */
|
|
777
|
+
ttl?: string | undefined;
|
|
778
|
+
}
|
|
779
|
+
export interface ClickPipeDestinationColumn {
|
|
780
|
+
/** Name of the column. */
|
|
781
|
+
name?: string | undefined;
|
|
782
|
+
/** Type of the column. */
|
|
783
|
+
type?: string | undefined;
|
|
784
|
+
}
|
|
785
|
+
/** Columns of the destination table. Required field for all pipe types except database pipes (Postgres, MySQL, BigQuery). */
|
|
786
|
+
export type ClickPipeMutateDestinationColumnsList = Array<ClickPipeDestinationColumn>;
|
|
787
|
+
/** Optional. Roles to grant to the ClickHouse user that ClickPipe creates. If omitted, the user is granted the default role (`default_role`). Add your custom roles here if required. The role names `clickpipes` and `clickpipes_system` are reserved for internal use and cannot be assigned. */
|
|
788
|
+
export type ClickPipeMutateDestinationRolesList = Array<string>;
|
|
789
|
+
export interface ClickPipeMutateDestination {
|
|
790
|
+
/** Destination database. */
|
|
791
|
+
database: string;
|
|
792
|
+
/** Destination table. Required field for all pipe types except database pipes (Postgres, MySQL, BigQuery). */
|
|
793
|
+
table?: string | undefined;
|
|
794
|
+
/** Is the table managed by ClickPipes? Required field for all pipe types except database pipes (Postgres, MySQL, BigQuery). */
|
|
795
|
+
managedTable?: boolean | undefined;
|
|
796
|
+
tableDefinition?: ClickPipeDestinationTableDefinition | undefined;
|
|
797
|
+
/** Columns of the destination table. Required field for all pipe types except database pipes (Postgres, MySQL, BigQuery). */
|
|
798
|
+
columns?: ClickPipeMutateDestinationColumnsList | undefined;
|
|
799
|
+
/** Optional. Roles to grant to the ClickHouse user that ClickPipe creates. If omitted, the user is granted the default role (`default_role`). Add your custom roles here if required. The role names `clickpipes` and `clickpipes_system` are reserved for internal use and cannot be assigned. */
|
|
800
|
+
roles?: ClickPipeMutateDestinationRolesList | undefined;
|
|
801
|
+
}
|
|
802
|
+
export interface ClickPipeFieldMapping {
|
|
803
|
+
/** Source field name. */
|
|
804
|
+
sourceField?: string | undefined;
|
|
805
|
+
/** Destination field name. */
|
|
806
|
+
destinationField?: string | undefined;
|
|
807
|
+
}
|
|
808
|
+
/** Field mappings of the ClickPipe. Note that all destination columns must be included in the mappings. */
|
|
809
|
+
export type CreateClickPipeRequestFieldMappingsList = Array<ClickPipeFieldMapping>;
|
|
810
|
+
export interface ClickPipeScaling {
|
|
811
|
+
/** Desired number of replicas. Only for scalable pipes. */
|
|
812
|
+
replicas?: number | undefined;
|
|
813
|
+
/** Desired number of concurrency. Only for S3 pipes. If set to 0, concurrency is auto-scaled based on the cluster memory. */
|
|
814
|
+
concurrency?: number | undefined;
|
|
815
|
+
/** CPU in millicores for each replica. Only for streaming pipes. */
|
|
816
|
+
replicaCpuMillicores?: number | undefined;
|
|
817
|
+
/** Memory in GB for each replica. Only for streaming pipes. */
|
|
818
|
+
replicaMemoryGb?: number | undefined;
|
|
819
|
+
}
|
|
820
|
+
export interface ClickPipeSettingsPutRequest {
|
|
821
|
+
/** Streaming max insert wait time. Configures the max wait period before inserting data into the ClickHouse. */
|
|
822
|
+
streaming_max_insert_wait_ms?: number | undefined;
|
|
823
|
+
/** Object storage concurrency. Number of concurrent file processing threads */
|
|
824
|
+
object_storage_concurrency?: number | undefined;
|
|
825
|
+
/** Object storage polling interval. Configures the refresh interval for querying continuous ingest for new object storage data */
|
|
826
|
+
object_storage_polling_interval_ms?: number | undefined;
|
|
827
|
+
/** Max insert bytes. Number of bytes to process in a single insert batch */
|
|
828
|
+
object_storage_max_insert_bytes?: number | undefined;
|
|
829
|
+
/** Max file count. Maximum number of files to process in a single insert batch */
|
|
830
|
+
object_storage_max_file_count?: number | undefined;
|
|
831
|
+
/** Max file size. Files larger than this are skipped and not retried. Can only lower the limit. Private preview. Contact support to enable it for your organization. */
|
|
832
|
+
object_storage_max_file_size?: number | undefined;
|
|
833
|
+
/** Max threads. Maximum number of concurrent threads for file processing */
|
|
834
|
+
clickhouse_max_threads?: number | undefined;
|
|
835
|
+
/** Max insert threads. Maximum number of concurrent insert threads */
|
|
836
|
+
clickhouse_max_insert_threads?: number | undefined;
|
|
837
|
+
/** Min insert block size bytes. Minimum size of data block for insert (in bytes) */
|
|
838
|
+
clickhouse_min_insert_block_size_bytes?: number | undefined;
|
|
839
|
+
/** Max download threads. Maximum number of concurrent download threads */
|
|
840
|
+
clickhouse_max_download_threads?: number | undefined;
|
|
841
|
+
/** Parallel distributed insert select. Only applies when object_storage_use_cluster_function is enabled. When disabled, this setting is ignored and the effective value is 0. */
|
|
842
|
+
clickhouse_parallel_distributed_insert_select?: number | undefined;
|
|
843
|
+
/** Kafka Read Committed. Whether Kafka consumers read only committed messages */
|
|
844
|
+
kafka_read_committed?: boolean | undefined;
|
|
845
|
+
/** use cluster function. Whether to use ClickHouse cluster function for distributed processing */
|
|
846
|
+
object_storage_use_cluster_function?: boolean | undefined;
|
|
847
|
+
/** parallel view processing. Whether to enable pushing to attached views concurrently instead of sequentially */
|
|
848
|
+
clickhouse_parallel_view_processing?: boolean | undefined;
|
|
849
|
+
}
|
|
850
|
+
export interface CreateClickPipeRequest {
|
|
851
|
+
/** ID of the organization that owns the service. */
|
|
852
|
+
organizationId: string;
|
|
853
|
+
/** ID of the service to create the ClickPipe for. */
|
|
854
|
+
serviceId: string;
|
|
855
|
+
/** Name of the ClickPipe. */
|
|
856
|
+
name: string;
|
|
857
|
+
source: ClickPipePostSource;
|
|
858
|
+
destination: ClickPipeMutateDestination;
|
|
859
|
+
/** Field mappings of the ClickPipe. Note that all destination columns must be included in the mappings. */
|
|
860
|
+
fieldMappings?: CreateClickPipeRequestFieldMappingsList | undefined;
|
|
861
|
+
scaling?: ClickPipeScaling | undefined;
|
|
862
|
+
settings?: ClickPipeSettingsPutRequest | undefined;
|
|
863
|
+
/** Create the ClickPipe in the Stopped state instead of starting ingestion immediately. Start it later with the state endpoint. Not supported for database ClickPipes. */
|
|
864
|
+
startPaused?: boolean | undefined;
|
|
865
|
+
}
|
|
866
|
+
/** Current lifecycle state of the ClickPipe. For database pipes: "Provisioning" (initial setup), "Setup" (configuring replication), "Snapshot" (initial data load), "Running" (actively replicating), "Pausing" (transitioning to paused state), "Paused" (temporarily paused), "Modifying" (applying configuration updates), "Resync" (swapping resync tables with original tables), "Failed" (error occurred), "Unknown". For streaming/object storage pipes (Kafka, Kinesis, S3): "Unknown" (initial state), "Provisioning" (setting up resources), "Running" (actively ingesting data), "Stopping" (transitioning to stopped state), "Stopped" (manually stopped, can be restarted), "Completed" (batch ingestion finished for object storage), "Failed" (error occurred, pipe stopped), "InternalError" (internal system error). */
|
|
867
|
+
export type ClickPipeState =
|
|
868
|
+
| "Unknown"
|
|
869
|
+
| "Provisioning"
|
|
870
|
+
| "Running"
|
|
871
|
+
| "Degraded"
|
|
872
|
+
| "Stopping"
|
|
873
|
+
| "Stopped"
|
|
874
|
+
| "Failed"
|
|
875
|
+
| "Completed"
|
|
876
|
+
| "InternalError"
|
|
877
|
+
| "Setup"
|
|
878
|
+
| "Snapshot"
|
|
879
|
+
| "Paused"
|
|
880
|
+
| "Pausing"
|
|
881
|
+
| "Modifying"
|
|
882
|
+
| "Resync";
|
|
883
|
+
/** Type of the Kafka source. */
|
|
884
|
+
export type ClickPipeKafkaSourceType =
|
|
885
|
+
| "kafka"
|
|
886
|
+
| "redpanda"
|
|
887
|
+
| "msk"
|
|
888
|
+
| "gcmk"
|
|
889
|
+
| "confluent"
|
|
890
|
+
| "warpstream"
|
|
891
|
+
| "azureeventhub"
|
|
892
|
+
| "dokafka";
|
|
893
|
+
/** Format of the Kafka source. */
|
|
894
|
+
export type ClickPipeKafkaSourceFormat = "JSONEachRow" | "Avro" | "AvroConfluent" | "Protobuf";
|
|
895
|
+
/** Authentication method of the Kafka source. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. Supported authentication methods: kafka: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, msk: SCRAM-SHA-512, IAM_ROLE, IAM_USER, MUTUAL_TLS, gcmk: PLAIN, MUTUAL_TLS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY, confluent: PLAIN, SCRAM-SHA-512, MUTUAL_TLS, warpstream: PLAIN, azureeventhub: PLAIN, redpanda: SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, dokafka: SCRAM-SHA-256, MUTUAL_TLS */
|
|
896
|
+
export type ClickPipeKafkaSourceAuthentication =
|
|
897
|
+
| "PLAIN"
|
|
898
|
+
| "SCRAM-SHA-256"
|
|
899
|
+
| "SCRAM-SHA-512"
|
|
900
|
+
| "IAM_ROLE"
|
|
901
|
+
| "IAM_USER"
|
|
902
|
+
| "MUTUAL_TLS"
|
|
903
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
904
|
+
/** Type of the schema registry. Defaults to 'confluent' (a Confluent-compatible REST registry). */
|
|
905
|
+
export type ClickPipeKafkaConfluentSchemaRegistryType = "confluent";
|
|
906
|
+
export interface ClickPipeKafkaConfluentSchemaRegistry {
|
|
907
|
+
/** Type of the schema registry. Defaults to 'confluent' (a Confluent-compatible REST registry). */
|
|
908
|
+
type?: ClickPipeKafkaConfluentSchemaRegistryType | undefined;
|
|
909
|
+
/** Schema URL. HTTPS required. */
|
|
910
|
+
url: string;
|
|
911
|
+
/** Authentication type of the schema registry. One of 'PLAIN', 'CLIENT_CREDENTIALS'. PLAIN uses a username and password. CLIENT_CREDENTIALS uses the OAuth2 client credentials flow. */
|
|
912
|
+
authentication?: string | undefined;
|
|
913
|
+
/** PEM encoded CA certificates to validate the schema registry's certificate. */
|
|
914
|
+
caCertificate?: string | null | undefined;
|
|
915
|
+
/** OAuth2 token endpoint. HTTPS required. Required when authentication is CLIENT_CREDENTIALS. */
|
|
916
|
+
tokenUrl?: string | null | undefined;
|
|
917
|
+
/** Space-separated OAuth2 scopes to request. Only used when authentication is CLIENT_CREDENTIALS. */
|
|
918
|
+
scope?: string | null | undefined;
|
|
919
|
+
/** OAuth2 audience to request. Only used when authentication is CLIENT_CREDENTIALS. */
|
|
920
|
+
audience?: string | null | undefined;
|
|
921
|
+
}
|
|
922
|
+
export type ClickPipeKafkaSchemaRegistry =
|
|
923
|
+
| ClickPipeKafkaConfluentSchemaRegistry
|
|
924
|
+
| ClickPipeKafkaGlueSchemaRegistry;
|
|
925
|
+
/** Reverse private endpoint UUIDs used for a secure private connection to the Kafka source. */
|
|
926
|
+
export type ClickPipeKafkaSourceReversePrivateEndpointIdsList = Array<string>;
|
|
927
|
+
/** How Kafka tombstone records are handled. Set to "delete" to delete the matching destination row; this requires exactly-once delivery. Set to "soft_delete" to write a row with the _is_deleted virtual column set to true; exactly-once delivery is not required. Can only be set at pipe creation. */
|
|
928
|
+
export type ClickPipeKafkaSourceTombstoneMode = "delete" | "soft_delete";
|
|
929
|
+
export interface ClickPipeKafkaSource {
|
|
930
|
+
/** Type of the Kafka source. */
|
|
931
|
+
type?: ClickPipeKafkaSourceType | undefined;
|
|
932
|
+
/** Format of the Kafka source. */
|
|
933
|
+
format?: ClickPipeKafkaSourceFormat | undefined;
|
|
934
|
+
/** Brokers of the Kafka source. */
|
|
935
|
+
brokers?: string | undefined;
|
|
936
|
+
/** One or more Kafka topics as a comma-separated string. All topics must have the same schema and are ingested into the same destination table by a single ClickPipe. */
|
|
937
|
+
topics?: string | undefined;
|
|
938
|
+
/** Consumer group of the Kafka source. If not provided "clickpipes-<<ID>>" will be used. */
|
|
939
|
+
consumerGroup?: string | null | undefined;
|
|
940
|
+
/** Authentication method of the Kafka source. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. Supported authentication methods: kafka: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, msk: SCRAM-SHA-512, IAM_ROLE, IAM_USER, MUTUAL_TLS, gcmk: PLAIN, MUTUAL_TLS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY, confluent: PLAIN, SCRAM-SHA-512, MUTUAL_TLS, warpstream: PLAIN, azureeventhub: PLAIN, redpanda: SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, dokafka: SCRAM-SHA-256, MUTUAL_TLS */
|
|
941
|
+
authentication?: ClickPipeKafkaSourceAuthentication | undefined;
|
|
942
|
+
/** IAM role for the Kafka source. Use with IAM role authentication. Read more in ClickPipes documentation: https://clickhouse.com/docs/en/integrations/clickpipes/kafka#iam */
|
|
943
|
+
iamRole?: string | null | undefined;
|
|
944
|
+
offset?: ClickPipeKafkaOffset | null | undefined;
|
|
945
|
+
schemaRegistry?: ClickPipeKafkaSchemaRegistry | null | undefined;
|
|
946
|
+
/** PEM encoded CA certificates to validate the broker's certificate. */
|
|
947
|
+
caCertificate?: string | null | undefined;
|
|
948
|
+
/** Reverse private endpoint UUIDs used for a secure private connection to the Kafka source. */
|
|
949
|
+
reversePrivateEndpointIds?: ClickPipeKafkaSourceReversePrivateEndpointIdsList | undefined;
|
|
950
|
+
/** Enable exactly-once delivery. Guarantees every Kafka record is inserted exactly once across restarts and rebalances. Can only be set at pipe creation. */
|
|
951
|
+
exactlyOnce?: boolean | null | undefined;
|
|
952
|
+
/** How Kafka tombstone records are handled. Set to "delete" to delete the matching destination row; this requires exactly-once delivery. Set to "soft_delete" to write a row with the _is_deleted virtual column set to true; exactly-once delivery is not required. Can only be set at pipe creation. */
|
|
953
|
+
tombstoneMode?: ClickPipeKafkaSourceTombstoneMode | null | undefined;
|
|
954
|
+
}
|
|
955
|
+
/** Type of the ObjectStorage source. */
|
|
956
|
+
export type ClickPipeObjectStorageSourceType =
|
|
957
|
+
| "s3"
|
|
958
|
+
| "gcs"
|
|
959
|
+
| "dospaces"
|
|
960
|
+
| "azureblobstorage"
|
|
961
|
+
| "cloudflarer2"
|
|
962
|
+
| "ovhobjectstorage";
|
|
963
|
+
/** Format of the files. */
|
|
964
|
+
export type ClickPipeObjectStorageSourceFormat =
|
|
965
|
+
| "JSONEachRow"
|
|
966
|
+
| "JSONAsObject"
|
|
967
|
+
| "CSV"
|
|
968
|
+
| "CSVWithNames"
|
|
969
|
+
| "TabSeparated"
|
|
970
|
+
| "TabSeparatedWithNames"
|
|
971
|
+
| "Parquet"
|
|
972
|
+
| "Avro";
|
|
973
|
+
/** Compression algorithm used for the files. */
|
|
974
|
+
export type ClickPipeObjectStorageSourceCompression =
|
|
975
|
+
| "none"
|
|
976
|
+
| "gzip"
|
|
977
|
+
| "gz"
|
|
978
|
+
| "brotli"
|
|
979
|
+
| "br"
|
|
980
|
+
| "xz"
|
|
981
|
+
| "LZMA"
|
|
982
|
+
| "zstd"
|
|
983
|
+
| "auto";
|
|
984
|
+
/** Authentication method. IAM_USER is for S3, GCS, and DigitalOcean Spaces. IAM_ROLE is for S3 only. SERVICE_ACCOUNT is for GCS only. For GCS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. CONNECTION_STRING is for Azure Blob Storage. PUBLIC uses no authentication. */
|
|
985
|
+
export type ClickPipeObjectStorageSourceAuthentication =
|
|
986
|
+
| "IAM_ROLE"
|
|
987
|
+
| "IAM_USER"
|
|
988
|
+
| "CONNECTION_STRING"
|
|
989
|
+
| "SERVICE_ACCOUNT"
|
|
990
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
991
|
+
export interface ClickPipeObjectStorageSource {
|
|
992
|
+
/** Type of the ObjectStorage source. */
|
|
993
|
+
type?: ClickPipeObjectStorageSourceType | undefined;
|
|
994
|
+
/** Format of the files. */
|
|
995
|
+
format?: ClickPipeObjectStorageSourceFormat | undefined;
|
|
996
|
+
/** Provide a path to the file(s) you want to ingest. You can specify multiple files using bash-like wildcards. For more information, see the documentation on using wildcards in path: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#limitations */
|
|
997
|
+
url?: string | undefined;
|
|
998
|
+
/** Delimiter used in the files. */
|
|
999
|
+
delimiter?: string | null | undefined;
|
|
1000
|
+
/** Number of lines to skip at the start of each file. Only for TabSeparated and TabSeparatedWithNames formats. Can only be set at pipe creation. */
|
|
1001
|
+
skipFirstLines?: number | undefined;
|
|
1002
|
+
/** Compression algorithm used for the files. */
|
|
1003
|
+
compression?: ClickPipeObjectStorageSourceCompression | null | undefined;
|
|
1004
|
+
/** If set to true, the pipe will continuously read new files from the source. If set to false, the pipe will read the files only once. New files have to be uploaded lexically order. */
|
|
1005
|
+
isContinuous?: boolean | null | undefined;
|
|
1006
|
+
/** Queue URL for event-based continuous ingestion. For S3, provide an SQS queue URL. For GCS, provide a Pub/Sub subscription (e.g. projects/{project}/subscriptions/{name}). When provided, files are ingested based on event notifications rather than lexicographical order. Only applicable when isContinuous is true and authentication is not public. */
|
|
1007
|
+
queueUrl?: string | null | undefined;
|
|
1008
|
+
/** If set to true, skips the initial load and only ingests files delivered by queue notifications. Only applicable when queueUrl is provided. */
|
|
1009
|
+
skipInitialLoad?: boolean | null | undefined;
|
|
1010
|
+
/** Skip all files up to and including this object key during the initial load. Cannot be provided when skipInitialLoad is true. */
|
|
1011
|
+
startAfter?: string | null | undefined;
|
|
1012
|
+
/** Authentication method. IAM_USER is for S3, GCS, and DigitalOcean Spaces. IAM_ROLE is for S3 only. SERVICE_ACCOUNT is for GCS only. For GCS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. CONNECTION_STRING is for Azure Blob Storage. PUBLIC uses no authentication. */
|
|
1013
|
+
authentication?: ClickPipeObjectStorageSourceAuthentication | null | undefined;
|
|
1014
|
+
/** IAM role to be used with IAM role authentication. Read more in ClickPipes documentation: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#authentication */
|
|
1015
|
+
iamRole?: string | null | undefined;
|
|
1016
|
+
/** Connection string for Azure Blob Storage authentication. Required when authentication is CONNECTION_STRING. */
|
|
1017
|
+
connectionString?: string | Redacted.Redacted<string> | null | undefined;
|
|
1018
|
+
/** Path to the file(s) within the Azure container. Used for Azure Blob Storage sources. You can specify multiple files using bash-like wildcards. For more information, see the documentation on using wildcards in path: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#limitations */
|
|
1019
|
+
path?: string | null | undefined;
|
|
1020
|
+
/** Container name for Azure Blob Storage. Required when type is azureblobstorage. */
|
|
1021
|
+
azureContainerName?: string | null | undefined;
|
|
1022
|
+
}
|
|
1023
|
+
/** Format of the Kinesis stream. */
|
|
1024
|
+
export type ClickPipeKinesisSourceFormat = "JSONEachRow" | "Avro" | "AvroConfluent" | "Protobuf";
|
|
1025
|
+
/** Type of iterator to use when reading from the Kinesis stream. If AT_TIMESTAMP is used, the timestamp field must be provided. */
|
|
1026
|
+
export type ClickPipeKinesisSourceIteratorType = "TRIM_HORIZON" | "LATEST" | "AT_TIMESTAMP";
|
|
1027
|
+
/** Authentication method to use with the Kinesis stream. */
|
|
1028
|
+
export type ClickPipeKinesisSourceAuthentication = "IAM_ROLE" | "IAM_USER";
|
|
1029
|
+
export interface ClickPipeKinesisSource {
|
|
1030
|
+
/** Format of the Kinesis stream. */
|
|
1031
|
+
format?: ClickPipeKinesisSourceFormat | undefined;
|
|
1032
|
+
/** Name of the Kinesis stream. */
|
|
1033
|
+
streamName?: string | undefined;
|
|
1034
|
+
/** AWS region of the Kinesis stream. */
|
|
1035
|
+
region?: string | undefined;
|
|
1036
|
+
/** Use enhanced fan-out for the Kinesis stream. */
|
|
1037
|
+
useEnhancedFanOut?: boolean | null | undefined;
|
|
1038
|
+
/** Type of iterator to use when reading from the Kinesis stream. If AT_TIMESTAMP is used, the timestamp field must be provided. */
|
|
1039
|
+
iteratorType?: ClickPipeKinesisSourceIteratorType | undefined;
|
|
1040
|
+
/** UNIX timestamp to start reading from the Kinesis stream. Required if iteratorType is AT_TIMESTAMP. */
|
|
1041
|
+
timestamp?: number | null | undefined;
|
|
1042
|
+
/** Authentication method to use with the Kinesis stream. */
|
|
1043
|
+
authentication?: ClickPipeKinesisSourceAuthentication | undefined;
|
|
1044
|
+
/** IAM role to use for authentication. Required if IAM_ROLE is used. */
|
|
1045
|
+
iamRole?: string | null | undefined;
|
|
1046
|
+
schemaRegistry?: ClickPipeKinesisSchemaRegistry | null | undefined;
|
|
1047
|
+
}
|
|
1048
|
+
/** Format of messages in the Pub/Sub topic. GCP Pub/Sub ClickPipes are in private preview -- contact support to enable this feature for your organization. */
|
|
1049
|
+
export type ClickPipePubSubSourceFormat = "JSONEachRow" | "Avro" | "Protobuf";
|
|
1050
|
+
/** Authentication method to use with GCP Pub/Sub. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
1051
|
+
export type ClickPipePubSubSourceAuthentication =
|
|
1052
|
+
| "SERVICE_ACCOUNT"
|
|
1053
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
1054
|
+
/** Starting position strategy for consuming the subscription. The seekTimestamp companion is required only when seekType is "timestamp"; setting it for a mismatched seek type is rejected. */
|
|
1055
|
+
export type ClickPipePubSubSourceSeekType = "latest" | "earliest" | "timestamp";
|
|
1056
|
+
export interface ClickPipePubSubSource {
|
|
1057
|
+
/** Format of messages in the Pub/Sub topic. GCP Pub/Sub ClickPipes are in private preview -- contact support to enable this feature for your organization. */
|
|
1058
|
+
format: ClickPipePubSubSourceFormat;
|
|
1059
|
+
/** GCP project ID that owns the Pub/Sub topic. */
|
|
1060
|
+
projectId: string;
|
|
1061
|
+
/** Pub/Sub topic name (not the fully-qualified path). */
|
|
1062
|
+
topic: string;
|
|
1063
|
+
/** Authentication method to use with GCP Pub/Sub. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
1064
|
+
authentication: ClickPipePubSubSourceAuthentication;
|
|
1065
|
+
/** Starting position strategy for consuming the subscription. The seekTimestamp companion is required only when seekType is "timestamp"; setting it for a mismatched seek type is rejected. */
|
|
1066
|
+
seekType: ClickPipePubSubSourceSeekType;
|
|
1067
|
+
/** RFC 3339 / ISO 8601 timestamp to seek to. Required when seekType is "timestamp"; must be omitted otherwise. */
|
|
1068
|
+
seekTimestamp?: string | null | undefined;
|
|
1069
|
+
/** Optional Pub/Sub subscription filter expression (CEL). Maximum 256 characters. */
|
|
1070
|
+
filter?: string | null | undefined;
|
|
1071
|
+
/** Whether to enable ordered delivery of messages (requires messages to be published with ordering keys). */
|
|
1072
|
+
enableOrdering?: boolean | null | undefined;
|
|
1073
|
+
/** Acknowledgement deadline for messages, in seconds. Must be between 10 and 600. */
|
|
1074
|
+
ackDeadline?: number | null | undefined;
|
|
1075
|
+
}
|
|
1076
|
+
/** Type of the Postgres source. Defaults to "postgres" if not specified. */
|
|
1077
|
+
export type ClickPipePostgresSourceType =
|
|
1078
|
+
| "postgres"
|
|
1079
|
+
| "supabase"
|
|
1080
|
+
| "neon"
|
|
1081
|
+
| "alloydb"
|
|
1082
|
+
| "planetscale"
|
|
1083
|
+
| "rdspostgres"
|
|
1084
|
+
| "aurorapostgres"
|
|
1085
|
+
| "cloudsqlpostgres"
|
|
1086
|
+
| "azurepostgres"
|
|
1087
|
+
| "crunchybridge"
|
|
1088
|
+
| "tigerdata";
|
|
1089
|
+
/** Authentication method for Postgres connection. IAM_ROLE is only available for services on AWS. */
|
|
1090
|
+
export type ClickPipePostgresSourceAuthentication =
|
|
1091
|
+
| "basic"
|
|
1092
|
+
| "IAM_ROLE"
|
|
1093
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
1094
|
+
/** List of table mappings defining which PostgreSQL tables to replicate and how they map to ClickHouse tables. */
|
|
1095
|
+
export type ClickPipePostgresSourceTableMappingsList = Array<ClickPipePostgresPipeTableMapping>;
|
|
1096
|
+
export interface ClickPipePostgresSource {
|
|
1097
|
+
/** Type of the Postgres source. Defaults to "postgres" if not specified. */
|
|
1098
|
+
type?: ClickPipePostgresSourceType | null | undefined;
|
|
1099
|
+
/** PostgreSQL server hostname or IP address. To use a reverse private endpoint, pass the endpoint hostname here. For Cloud SQL with SERVICE_ACCOUNT_WORKLOAD_IDENTITY authentication, pass the instance connection name (project:region:instance). */
|
|
1100
|
+
host?: string | undefined;
|
|
1101
|
+
/** PostgreSQL server port. */
|
|
1102
|
+
port?: number | undefined;
|
|
1103
|
+
/** PostgreSQL database name to replicate from. */
|
|
1104
|
+
database?: string | undefined;
|
|
1105
|
+
/** Authentication method for Postgres connection. IAM_ROLE is only available for services on AWS. */
|
|
1106
|
+
authentication?: ClickPipePostgresSourceAuthentication | undefined;
|
|
1107
|
+
/** IAM role ARN for IAM authentication (required for IAM_ROLE authentication, services on AWS only). */
|
|
1108
|
+
iamRole?: string | undefined;
|
|
1109
|
+
/** TLS/SSL host for secure connections. */
|
|
1110
|
+
tlsHost?: string | undefined;
|
|
1111
|
+
/** PEM encoded CA certificate to validate the Postgres server certificate. */
|
|
1112
|
+
caCertificate?: string | undefined;
|
|
1113
|
+
/** Disable TLS for the Postgres connection. Use with caution in production environments. */
|
|
1114
|
+
disableTls?: boolean | undefined;
|
|
1115
|
+
/** Skip TLS certificate verification for the Postgres connection. Use with caution in production environments. */
|
|
1116
|
+
skipCertVerification?: boolean | undefined;
|
|
1117
|
+
settings?: ClickPipePostgresPipeSettings | undefined;
|
|
1118
|
+
/** List of table mappings defining which PostgreSQL tables to replicate and how they map to ClickHouse tables. */
|
|
1119
|
+
tableMappings?: ClickPipePostgresSourceTableMappingsList | undefined;
|
|
1120
|
+
}
|
|
1121
|
+
/** Type of the MySQL source. Defaults to "mysql" if not specified. */
|
|
1122
|
+
export type ClickPipeMySQLSourceType =
|
|
1123
|
+
| "mysql"
|
|
1124
|
+
| "rdsmysql"
|
|
1125
|
+
| "auroramysql"
|
|
1126
|
+
| "cloudsqlmysql"
|
|
1127
|
+
| "mariadb"
|
|
1128
|
+
| "rdsmariadb";
|
|
1129
|
+
/** Authentication method for MySQL connection. IAM_ROLE is only available for services on AWS. */
|
|
1130
|
+
export type ClickPipeMySQLSourceAuthentication =
|
|
1131
|
+
| "basic"
|
|
1132
|
+
| "IAM_ROLE"
|
|
1133
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
1134
|
+
/** List of table mappings defining which MySQL tables to replicate and how they map to ClickHouse tables. */
|
|
1135
|
+
export type ClickPipeMySQLSourceTableMappingsList = Array<ClickPipeMySQLPipeTableMapping>;
|
|
1136
|
+
export interface ClickPipeMySQLSource {
|
|
1137
|
+
/** Type of the MySQL source. Defaults to "mysql" if not specified. */
|
|
1138
|
+
type?: ClickPipeMySQLSourceType | null | undefined;
|
|
1139
|
+
/** MySQL server hostname or IP address. To use a reverse private endpoint, pass the endpoint hostname here. For Cloud SQL with SERVICE_ACCOUNT_WORKLOAD_IDENTITY authentication, pass the instance connection name (project:region:instance). */
|
|
1140
|
+
host: string;
|
|
1141
|
+
/** MySQL server port. */
|
|
1142
|
+
port: number;
|
|
1143
|
+
/** Authentication method for MySQL connection. IAM_ROLE is only available for services on AWS. */
|
|
1144
|
+
authentication?: ClickPipeMySQLSourceAuthentication | undefined;
|
|
1145
|
+
/** IAM role ARN for IAM authentication (required for IAM_ROLE authentication, services on AWS only). */
|
|
1146
|
+
iamRole?: string | undefined;
|
|
1147
|
+
/** TLS/SSL host for secure connections. */
|
|
1148
|
+
tlsHost?: string | undefined;
|
|
1149
|
+
/** PEM encoded CA certificate to validate the MySQL server certificate. */
|
|
1150
|
+
caCertificate?: string | undefined;
|
|
1151
|
+
/** Disable TLS for the MySQL connection. Use with caution in production environments. */
|
|
1152
|
+
disableTls?: boolean | undefined;
|
|
1153
|
+
/** Skip TLS certificate verification for the MySQL connection. Use with caution in production environments. */
|
|
1154
|
+
skipCertVerification?: boolean | undefined;
|
|
1155
|
+
/** Optional MySQL server_id the pipe declares itself as in the MySQL replication topology. Must be unique across replicas connected to the source. If omitted, one is assigned automatically. */
|
|
1156
|
+
serverId?: number | undefined;
|
|
1157
|
+
settings: ClickPipeMySQLPipeSettings;
|
|
1158
|
+
/** List of table mappings defining which MySQL tables to replicate and how they map to ClickHouse tables. */
|
|
1159
|
+
tableMappings: ClickPipeMySQLSourceTableMappingsList;
|
|
1160
|
+
}
|
|
1161
|
+
/** Table mappings for BigQuery pipe. */
|
|
1162
|
+
export type ClickPipeBigQueryServiceAccountSourceTableMappingsList =
|
|
1163
|
+
Array<ClickPipeBigQueryPipeTableMapping>;
|
|
1164
|
+
/** Authenticated with a Google Cloud service account JSON key. */
|
|
1165
|
+
export type ClickPipeBigQueryServiceAccountSourceAuthentication = "SERVICE_ACCOUNT";
|
|
1166
|
+
export interface ClickPipeBigQueryServiceAccountSource {
|
|
1167
|
+
/** GCS bucket path for staging snapshot data (e.g., gs://my-bucket/staging/). Data will be automatically cleaned up after initial load. */
|
|
1168
|
+
snapshotStagingPath: string;
|
|
1169
|
+
settings: ClickPipeBigQueryPipeSettings;
|
|
1170
|
+
/** Table mappings for BigQuery pipe. */
|
|
1171
|
+
tableMappings: ClickPipeBigQueryServiceAccountSourceTableMappingsList;
|
|
1172
|
+
/** Authenticated with a Google Cloud service account JSON key. */
|
|
1173
|
+
authentication: ClickPipeBigQueryServiceAccountSourceAuthentication;
|
|
1174
|
+
/** GCP project ID that owns the BigQuery resources. */
|
|
1175
|
+
projectId?: string | undefined;
|
|
1176
|
+
}
|
|
1177
|
+
/** Table mappings for BigQuery pipe. */
|
|
1178
|
+
export type ClickPipeBigQueryWorkloadIdentitySourceTableMappingsList =
|
|
1179
|
+
Array<ClickPipeBigQueryPipeTableMapping>;
|
|
1180
|
+
/** Authenticated with the ClickPipes service tenant identity. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
1181
|
+
export type ClickPipeBigQueryWorkloadIdentitySourceAuthentication =
|
|
1182
|
+
"SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
1183
|
+
export interface ClickPipeBigQueryWorkloadIdentitySource {
|
|
1184
|
+
/** GCS bucket path for staging snapshot data (e.g., gs://my-bucket/staging/). Data will be automatically cleaned up after initial load. */
|
|
1185
|
+
snapshotStagingPath: string;
|
|
1186
|
+
settings: ClickPipeBigQueryPipeSettings;
|
|
1187
|
+
/** Table mappings for BigQuery pipe. */
|
|
1188
|
+
tableMappings: ClickPipeBigQueryWorkloadIdentitySourceTableMappingsList;
|
|
1189
|
+
/** Authenticated with the ClickPipes service tenant identity. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
1190
|
+
authentication: ClickPipeBigQueryWorkloadIdentitySourceAuthentication;
|
|
1191
|
+
/** GCP project ID that owns the BigQuery resources. Older pipes created outside OpenAPI may omit this field. */
|
|
1192
|
+
projectId?: string | undefined;
|
|
1193
|
+
}
|
|
1194
|
+
export type ClickPipeBigQuerySource =
|
|
1195
|
+
| ClickPipeBigQueryServiceAccountSource
|
|
1196
|
+
| ClickPipeBigQueryWorkloadIdentitySource;
|
|
1197
|
+
/** MongoDB read preference for replica set reads. */
|
|
1198
|
+
export type ClickPipeMongoDBSourceReadPreference =
|
|
1199
|
+
| "primary"
|
|
1200
|
+
| "primaryPreferred"
|
|
1201
|
+
| "secondary"
|
|
1202
|
+
| "secondaryPreferred"
|
|
1203
|
+
| "nearest";
|
|
1204
|
+
/** List of collection mappings defining which MongoDB collections to replicate and how they map to ClickHouse tables. */
|
|
1205
|
+
export type ClickPipeMongoDBSourceTableMappingsList = Array<ClickPipeMongoDBPipeTableMapping>;
|
|
1206
|
+
export interface ClickPipeMongoDBSource {
|
|
1207
|
+
/** MongoDB connection URI. Supports both standard URIs (mongodb://...) and SRV URIs (mongodb+srv://...). Embedded credentials are redacted from API responses, so the returned value can differ from what was submitted. */
|
|
1208
|
+
uri: string;
|
|
1209
|
+
/** MongoDB read preference for replica set reads. */
|
|
1210
|
+
readPreference: ClickPipeMongoDBSourceReadPreference;
|
|
1211
|
+
/** TLS/SSL host for secure connections. */
|
|
1212
|
+
tlsHost?: string | undefined;
|
|
1213
|
+
/** Disable TLS for the MongoDB connection. Defaults to false (TLS enabled). */
|
|
1214
|
+
disableTls?: boolean | undefined;
|
|
1215
|
+
/** Skip TLS certificate verification for the MongoDB connection. Use with caution in production environments. */
|
|
1216
|
+
skipCertVerification?: boolean | undefined;
|
|
1217
|
+
/** PEM encoded CA certificate to validate the MongoDB server certificate. */
|
|
1218
|
+
caCertificate?: string | undefined;
|
|
1219
|
+
settings?: ClickPipeMongoDBPipeSettings | undefined;
|
|
1220
|
+
/** List of collection mappings defining which MongoDB collections to replicate and how they map to ClickHouse tables. */
|
|
1221
|
+
tableMappings?: ClickPipeMongoDBSourceTableMappingsList | undefined;
|
|
1222
|
+
}
|
|
1223
|
+
export interface ClickPipeSource {
|
|
1224
|
+
kafka?: ClickPipeKafkaSource | null | undefined;
|
|
1225
|
+
objectStorage?: ClickPipeObjectStorageSource | null | undefined;
|
|
1226
|
+
kinesis?: ClickPipeKinesisSource | null | undefined;
|
|
1227
|
+
pubsub?: ClickPipePubSubSource | null | undefined;
|
|
1228
|
+
postgres?: ClickPipePostgresSource | null | undefined;
|
|
1229
|
+
mysql?: ClickPipeMySQLSource | null | undefined;
|
|
1230
|
+
bigquery?: ClickPipeBigQuerySource | null | undefined;
|
|
1231
|
+
mongodb?: ClickPipeMongoDBSource | null | undefined;
|
|
1232
|
+
}
|
|
1233
|
+
/** Columns of the destination table. Required field for all pipe types except database pipes (Postgres, MySQL, BigQuery). */
|
|
1234
|
+
export type ClickPipeDestinationColumnsList = Array<ClickPipeDestinationColumn>;
|
|
1235
|
+
export interface ClickPipeDestination {
|
|
1236
|
+
/** Destination database. */
|
|
1237
|
+
database?: string | undefined;
|
|
1238
|
+
/** Destination table. Required field for all pipe types except database pipes (Postgres, MySQL, BigQuery). */
|
|
1239
|
+
table?: string | undefined;
|
|
1240
|
+
/** Is the table managed by ClickPipes? Required field for all pipe types except database pipes (Postgres, MySQL, BigQuery). */
|
|
1241
|
+
managedTable?: boolean | undefined;
|
|
1242
|
+
tableDefinition?: ClickPipeDestinationTableDefinition | undefined;
|
|
1243
|
+
/** Columns of the destination table. Required field for all pipe types except database pipes (Postgres, MySQL, BigQuery). */
|
|
1244
|
+
columns?: ClickPipeDestinationColumnsList | undefined;
|
|
1245
|
+
}
|
|
1246
|
+
/** Field mappings of the ClickPipe. Note that all destination columns must be included in the mappings. */
|
|
1247
|
+
export type ClickPipeFieldMappingsList = Array<ClickPipeFieldMapping>;
|
|
1248
|
+
export interface ClickPipeSettings {
|
|
1249
|
+
/** Streaming max insert wait time. Configures the max wait period before inserting data into the ClickHouse. */
|
|
1250
|
+
streaming_max_insert_wait_ms?: number | null | undefined;
|
|
1251
|
+
/** Object storage concurrency. Number of concurrent file processing threads */
|
|
1252
|
+
object_storage_concurrency?: number | null | undefined;
|
|
1253
|
+
/** Object storage polling interval. Configures the refresh interval for querying continuous ingest for new object storage data */
|
|
1254
|
+
object_storage_polling_interval_ms?: number | null | undefined;
|
|
1255
|
+
/** Max insert bytes. Number of bytes to process in a single insert batch */
|
|
1256
|
+
object_storage_max_insert_bytes?: number | null | undefined;
|
|
1257
|
+
/** Max file count. Maximum number of files to process in a single insert batch */
|
|
1258
|
+
object_storage_max_file_count?: number | null | undefined;
|
|
1259
|
+
/** Max file size. Files larger than this are skipped and not retried. Can only lower the limit. Private preview. Contact support to enable it for your organization. */
|
|
1260
|
+
object_storage_max_file_size?: number | undefined;
|
|
1261
|
+
/** Max threads. Maximum number of concurrent threads for file processing */
|
|
1262
|
+
clickhouse_max_threads?: number | null | undefined;
|
|
1263
|
+
/** Max insert threads. Maximum number of concurrent insert threads */
|
|
1264
|
+
clickhouse_max_insert_threads?: number | null | undefined;
|
|
1265
|
+
/** Min insert block size bytes. Minimum size of data block for insert (in bytes) */
|
|
1266
|
+
clickhouse_min_insert_block_size_bytes?: number | null | undefined;
|
|
1267
|
+
/** Max download threads. Maximum number of concurrent download threads */
|
|
1268
|
+
clickhouse_max_download_threads?: number | null | undefined;
|
|
1269
|
+
/** Parallel distributed insert select. Only applies when object_storage_use_cluster_function is enabled. When disabled, this setting is ignored and the effective value is 0. */
|
|
1270
|
+
clickhouse_parallel_distributed_insert_select?: number | null | undefined;
|
|
1271
|
+
/** Kafka Read Committed. Whether Kafka consumers read only committed messages */
|
|
1272
|
+
kafka_read_committed?: boolean | undefined;
|
|
1273
|
+
/** use cluster function. Whether to use ClickHouse cluster function for distributed processing */
|
|
1274
|
+
object_storage_use_cluster_function?: boolean | null | undefined;
|
|
1275
|
+
/** parallel view processing. Whether to enable pushing to attached views concurrently instead of sequentially */
|
|
1276
|
+
clickhouse_parallel_view_processing?: boolean | null | undefined;
|
|
1277
|
+
}
|
|
1278
|
+
export interface ClickPipe {
|
|
1279
|
+
/** Unique ClickPipe ID. */
|
|
1280
|
+
id: string;
|
|
1281
|
+
/** ID of the service this ClickPipe belongs to. */
|
|
1282
|
+
serviceId?: string | undefined;
|
|
1283
|
+
/** Name of the ClickPipe. */
|
|
1284
|
+
name?: string | undefined;
|
|
1285
|
+
/** Current lifecycle state of the ClickPipe. For database pipes: "Provisioning" (initial setup), "Setup" (configuring replication), "Snapshot" (initial data load), "Running" (actively replicating), "Pausing" (transitioning to paused state), "Paused" (temporarily paused), "Modifying" (applying configuration updates), "Resync" (swapping resync tables with original tables), "Failed" (error occurred), "Unknown". For streaming/object storage pipes (Kafka, Kinesis, S3): "Unknown" (initial state), "Provisioning" (setting up resources), "Running" (actively ingesting data), "Stopping" (transitioning to stopped state), "Stopped" (manually stopped, can be restarted), "Completed" (batch ingestion finished for object storage), "Failed" (error occurred, pipe stopped), "InternalError" (internal system error). */
|
|
1286
|
+
state?: ClickPipeState | undefined;
|
|
1287
|
+
scaling?: ClickPipeScaling | undefined;
|
|
1288
|
+
source?: ClickPipeSource | undefined;
|
|
1289
|
+
destination?: ClickPipeDestination | undefined;
|
|
1290
|
+
/** Field mappings of the ClickPipe. Note that all destination columns must be included in the mappings. */
|
|
1291
|
+
fieldMappings?: ClickPipeFieldMappingsList | undefined;
|
|
1292
|
+
settings?: ClickPipeSettings | undefined;
|
|
1293
|
+
/** Creation timestamp of the ClickPipe in ISO 8601 format. */
|
|
1294
|
+
createdAt?: string | undefined;
|
|
1295
|
+
/** Last update timestamp of the ClickPipe in ISO 8601 format. */
|
|
1296
|
+
updatedAt?: string | undefined;
|
|
1297
|
+
}
|
|
1298
|
+
/** Reverse private endpoint type. */
|
|
1299
|
+
export type CreateClickPipeReversePrivateEndpointRequestType =
|
|
1300
|
+
| "VPC_ENDPOINT_SERVICE"
|
|
1301
|
+
| "VPC_RESOURCE"
|
|
1302
|
+
| "MSK_MULTI_VPC"
|
|
1303
|
+
| "GCP_PSC_SERVICE_ATTACHMENT";
|
|
1304
|
+
/** MSK cluster authentication type. Required for MSK_MULTI_VPC type. */
|
|
1305
|
+
export type CreateClickPipeReversePrivateEndpointRequestMskAuthentication =
|
|
1306
|
+
| "SASL_IAM"
|
|
1307
|
+
| "SASL_SCRAM";
|
|
1308
|
+
export interface CustomPrivateDnsMapping {
|
|
1309
|
+
/** Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com */
|
|
1310
|
+
privateDnsName?: string | undefined;
|
|
1311
|
+
/** Optional DNS target ID. For VPC_RESOURCE, it is the CHILD resource configuration ID (rcfg-...), or the configuration ID for a single resource. For VPC_ENDPOINT_SERVICE, it is an AWS availability zone ID (for example use1-az1, not the zone name us-east-1a) that the endpoint service offers and ClickPipes supports in the region; if the endpoint is not in that zone yet, ClickPipes adds the zone to the endpoint. Cross-region VPC endpoint services reject targetId. Not supported for other endpoint types. Set it at create time to route a custom DNS name to that target. If the target is not reported in dnsTargets yet, the mapping is not served until it appears; it does not fall back to the default target. If omitted, the default target is used. For VPC_RESOURCE, once dnsTargets is non-empty, adding or changing a targetId requires an ID in that list; unchanged target IDs are not re-checked. */
|
|
1312
|
+
targetId?: string | undefined;
|
|
1313
|
+
}
|
|
1314
|
+
/** Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com */
|
|
1315
|
+
export type CreateClickPipeReversePrivateEndpointRequestCustomPrivateDnsMappingsList =
|
|
1316
|
+
Array<CustomPrivateDnsMapping>;
|
|
1317
|
+
export interface CreateClickPipeReversePrivateEndpointRequest {
|
|
1318
|
+
/** ID of the organization that owns the service. */
|
|
1319
|
+
organizationId: string;
|
|
1320
|
+
/** ID of the service that owns the Reverse Private Endpoint. */
|
|
1321
|
+
serviceId: string;
|
|
1322
|
+
/** Reverse private endpoint description. Maximum length is 255 characters. */
|
|
1323
|
+
description: string;
|
|
1324
|
+
/** Reverse private endpoint type. */
|
|
1325
|
+
type: CreateClickPipeReversePrivateEndpointRequestType | (string & {});
|
|
1326
|
+
/** VPC endpoint service name. */
|
|
1327
|
+
vpcEndpointServiceName?: string | undefined;
|
|
1328
|
+
/** VPC resource configuration ID. Required for VPC_RESOURCE type. */
|
|
1329
|
+
vpcResourceConfigurationId?: string | undefined;
|
|
1330
|
+
/** VPC resource share ARN. Required for VPC_RESOURCE type. */
|
|
1331
|
+
vpcResourceShareArn?: string | undefined;
|
|
1332
|
+
/** MSK cluster ARN. Required for MSK_MULTI_VPC type. */
|
|
1333
|
+
mskClusterArn?: string | undefined;
|
|
1334
|
+
/** MSK cluster authentication type. Required for MSK_MULTI_VPC type. */
|
|
1335
|
+
mskAuthentication?:
|
|
1336
|
+
| CreateClickPipeReversePrivateEndpointRequestMskAuthentication
|
|
1337
|
+
| (string & {})
|
|
1338
|
+
| undefined;
|
|
1339
|
+
/** Private Preview. GCP PSC service attachment URI. Required for GCP_PSC_SERVICE_ATTACHMENT type. Format: projects/{project}/regions/{region}/serviceAttachments/{name}. */
|
|
1340
|
+
gcpServiceAttachment?: string | undefined;
|
|
1341
|
+
/** Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com */
|
|
1342
|
+
customPrivateDnsMappings?:
|
|
1343
|
+
| CreateClickPipeReversePrivateEndpointRequestCustomPrivateDnsMappingsList
|
|
1344
|
+
| undefined;
|
|
1345
|
+
}
|
|
1346
|
+
/** Reverse private endpoint type. */
|
|
1347
|
+
export type ReversePrivateEndpointType =
|
|
1348
|
+
| "VPC_ENDPOINT_SERVICE"
|
|
1349
|
+
| "VPC_RESOURCE"
|
|
1350
|
+
| "MSK_MULTI_VPC"
|
|
1351
|
+
| "GCP_PSC_SERVICE_ATTACHMENT";
|
|
1352
|
+
/** MSK cluster authentication type. Required for MSK_MULTI_VPC type. */
|
|
1353
|
+
export type ReversePrivateEndpointMskAuthentication = "SASL_IAM" | "SASL_SCRAM";
|
|
1354
|
+
/** Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com */
|
|
1355
|
+
export type ReversePrivateEndpointCustomPrivateDnsMappingsList = Array<CustomPrivateDnsMapping>;
|
|
1356
|
+
/** Reverse private endpoint internal DNS names. */
|
|
1357
|
+
export type ReversePrivateEndpointDnsNamesList = Array<string>;
|
|
1358
|
+
/** Reverse private endpoint private DNS names. */
|
|
1359
|
+
export type ReversePrivateEndpointPrivateDnsNamesList = Array<string>;
|
|
1360
|
+
export interface ReversePrivateEndpointPrivateDnsMapping {
|
|
1361
|
+
/** Provider private DNS name reported by the Reverse Private Endpoint. */
|
|
1362
|
+
privateDnsName?: string | undefined;
|
|
1363
|
+
/** Internal DNS target for the provider private DNS name. */
|
|
1364
|
+
internalDnsName?: string | undefined;
|
|
1365
|
+
}
|
|
1366
|
+
/** Read-only provider private DNS names and their internal DNS targets reported by the Reverse Private Endpoint. For VPC_RESOURCE, this list can be empty when CHILD resources have no provider private DNS. */
|
|
1367
|
+
export type ReversePrivateEndpointPrivateDnsMappingsList =
|
|
1368
|
+
Array<ReversePrivateEndpointPrivateDnsMapping>;
|
|
1369
|
+
export interface ReversePrivateEndpointDnsTarget {
|
|
1370
|
+
/** DNS target ID. For VPC_RESOURCE, the associated CHILD resource configuration ID, or the configuration ID for a single resource. For VPC_ENDPOINT_SERVICE, the AWS availability zone ID of the zonal endpoint DNS name. */
|
|
1371
|
+
id?: string | undefined;
|
|
1372
|
+
/** DNS target kind. Current values: 'RESOURCE_CONFIGURATION', 'AVAILABILITY_ZONE'. RESOURCE_CONFIGURATION is used for VPC_RESOURCE targets and AVAILABILITY_ZONE for VPC_ENDPOINT_SERVICE zonal targets. New kinds may be added, so clients must accept unknown values. */
|
|
1373
|
+
kind?: string | undefined;
|
|
1374
|
+
/** Internal DNS name currently reported for this target. To select a target for a custom private DNS mapping, use its id as targetId. */
|
|
1375
|
+
internalDnsName?: string | undefined;
|
|
1376
|
+
}
|
|
1377
|
+
/** Read-only DNS targets the Reverse Private Endpoint currently reports. For VPC_RESOURCE, there is one RESOURCE_CONFIGURATION target per resource configuration association, identified by its CHILD resource configuration ID, or the configuration ID for a single resource. For VPC_ENDPOINT_SERVICE, there is one AVAILABILITY_ZONE target per zonal endpoint DNS name, identified by its AWS availability zone ID; the regional DNS name is the default target and is not listed. Cross-region VPC endpoint services report no AVAILABILITY_ZONE targets. Other endpoint types report an empty list. Targets can appear over time; a custom mapping with a targetId that is not reported yet is not served until it appears. */
|
|
1378
|
+
export type ReversePrivateEndpointDnsTargetsList = Array<ReversePrivateEndpointDnsTarget>;
|
|
1379
|
+
/** Reverse private endpoint status. */
|
|
1380
|
+
export type ReversePrivateEndpointStatus =
|
|
1381
|
+
| "Unknown"
|
|
1382
|
+
| "Provisioning"
|
|
1383
|
+
| "Deleting"
|
|
1384
|
+
| "Ready"
|
|
1385
|
+
| "Failed"
|
|
1386
|
+
| "PendingAcceptance"
|
|
1387
|
+
| "Rejected"
|
|
1388
|
+
| "Expired";
|
|
1389
|
+
export interface ReversePrivateEndpoint {
|
|
1390
|
+
/** Reverse private endpoint description. Maximum length is 255 characters. */
|
|
1391
|
+
description?: string | undefined;
|
|
1392
|
+
/** Reverse private endpoint type. */
|
|
1393
|
+
type?: ReversePrivateEndpointType | undefined;
|
|
1394
|
+
/** VPC endpoint service name. */
|
|
1395
|
+
vpcEndpointServiceName?: string | null | undefined;
|
|
1396
|
+
/** VPC resource configuration ID. Required for VPC_RESOURCE type. */
|
|
1397
|
+
vpcResourceConfigurationId?: string | null | undefined;
|
|
1398
|
+
/** VPC resource share ARN. Required for VPC_RESOURCE type. */
|
|
1399
|
+
vpcResourceShareArn?: string | null | undefined;
|
|
1400
|
+
/** MSK cluster ARN. Required for MSK_MULTI_VPC type. */
|
|
1401
|
+
mskClusterArn?: string | null | undefined;
|
|
1402
|
+
/** MSK cluster authentication type. Required for MSK_MULTI_VPC type. */
|
|
1403
|
+
mskAuthentication?: ReversePrivateEndpointMskAuthentication | null | undefined;
|
|
1404
|
+
/** Private Preview. GCP PSC service attachment URI. Required for GCP_PSC_SERVICE_ATTACHMENT type. Format: projects/{project}/regions/{region}/serviceAttachments/{name}. */
|
|
1405
|
+
gcpServiceAttachment?: string | null | undefined;
|
|
1406
|
+
/** Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com */
|
|
1407
|
+
customPrivateDnsMappings?: ReversePrivateEndpointCustomPrivateDnsMappingsList | undefined;
|
|
1408
|
+
/** Reverse private endpoint ID. */
|
|
1409
|
+
id?: string | undefined;
|
|
1410
|
+
/** ClickHouse service ID reverse private endpoint is associated with. */
|
|
1411
|
+
serviceId?: string | undefined;
|
|
1412
|
+
/** Reverse private endpoint endpoint ID. */
|
|
1413
|
+
endpointId?: string | undefined;
|
|
1414
|
+
/** Reverse private endpoint internal DNS names. */
|
|
1415
|
+
dnsNames?: ReversePrivateEndpointDnsNamesList | undefined;
|
|
1416
|
+
/** Reverse private endpoint private DNS names. */
|
|
1417
|
+
privateDnsNames?: ReversePrivateEndpointPrivateDnsNamesList | undefined;
|
|
1418
|
+
/** Read-only provider private DNS names and their internal DNS targets reported by the Reverse Private Endpoint. For VPC_RESOURCE, this list can be empty when CHILD resources have no provider private DNS. */
|
|
1419
|
+
privateDnsMappings?: ReversePrivateEndpointPrivateDnsMappingsList | undefined;
|
|
1420
|
+
/** Read-only DNS targets the Reverse Private Endpoint currently reports. For VPC_RESOURCE, there is one RESOURCE_CONFIGURATION target per resource configuration association, identified by its CHILD resource configuration ID, or the configuration ID for a single resource. For VPC_ENDPOINT_SERVICE, there is one AVAILABILITY_ZONE target per zonal endpoint DNS name, identified by its AWS availability zone ID; the regional DNS name is the default target and is not listed. Cross-region VPC endpoint services report no AVAILABILITY_ZONE targets. Other endpoint types report an empty list. Targets can appear over time; a custom mapping with a targetId that is not reported yet is not served until it appears. */
|
|
1421
|
+
dnsTargets?: ReversePrivateEndpointDnsTargetsList | undefined;
|
|
1422
|
+
/** Reverse private endpoint status. */
|
|
1423
|
+
status?: ReversePrivateEndpointStatus | undefined;
|
|
1424
|
+
}
|
|
1425
|
+
export interface DeleteClickPipeRequest {
|
|
1426
|
+
/** ID of the organization that owns the service. */
|
|
1427
|
+
organizationId: string;
|
|
1428
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1429
|
+
serviceId: string;
|
|
1430
|
+
/** ID of the ClickPipe to delete. */
|
|
1431
|
+
clickPipeId: string;
|
|
1432
|
+
}
|
|
1433
|
+
export interface DeleteClickPipeResponse {
|
|
1434
|
+
/** HTTP status code. */
|
|
1435
|
+
status?: number | undefined;
|
|
1436
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
1437
|
+
requestId?: string | undefined;
|
|
1438
|
+
}
|
|
1439
|
+
export interface DeleteClickPipeReversePrivateEndpointRequest {
|
|
1440
|
+
/** ID of the organization that owns the service. */
|
|
1441
|
+
organizationId: string;
|
|
1442
|
+
/** ID of the service that owns the Reverse Private Endpoint. */
|
|
1443
|
+
serviceId: string;
|
|
1444
|
+
/** ID of the reverse private endpoint to delete. */
|
|
1445
|
+
reversePrivateEndpointId: string;
|
|
1446
|
+
}
|
|
1447
|
+
export interface DeleteClickPipeReversePrivateEndpointResponse {
|
|
1448
|
+
/** HTTP status code. */
|
|
1449
|
+
status?: number | undefined;
|
|
1450
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
1451
|
+
requestId?: string | undefined;
|
|
1452
|
+
}
|
|
1453
|
+
export interface GetClickPipeRequest {
|
|
1454
|
+
/** ID of the organization that owns the service. */
|
|
1455
|
+
organizationId: string;
|
|
1456
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1457
|
+
serviceId: string;
|
|
1458
|
+
/** ID of the requested ClickPipe. */
|
|
1459
|
+
clickPipeId: string;
|
|
1460
|
+
}
|
|
1461
|
+
export interface GetClickPipeCdcScalingRequest {
|
|
1462
|
+
/** ID of the organization that owns the service. */
|
|
1463
|
+
organizationId: string;
|
|
1464
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1465
|
+
serviceId: string;
|
|
1466
|
+
}
|
|
1467
|
+
export interface ClickPipesCdcScaling {
|
|
1468
|
+
/** CPU in millicores for DB ClickPipes. */
|
|
1469
|
+
replicaCpuMillicores?: number | undefined;
|
|
1470
|
+
/** Memory in GiB for DB ClickPipes. Must be 4× the CPU core count. */
|
|
1471
|
+
replicaMemoryGb?: number | undefined;
|
|
1472
|
+
}
|
|
1473
|
+
export interface GetClickPipeReversePrivateEndpointRequest {
|
|
1474
|
+
/** ID of the organization that owns the service. */
|
|
1475
|
+
organizationId: string;
|
|
1476
|
+
/** ID of the service that owns the Reverse Private Endpoint. */
|
|
1477
|
+
serviceId: string;
|
|
1478
|
+
/** ID of the reverse private endpoint to get. */
|
|
1479
|
+
reversePrivateEndpointId: string;
|
|
1480
|
+
}
|
|
1481
|
+
export interface GetClickPipeSettingsRequest {
|
|
1482
|
+
/** ID of the organization that owns the service. */
|
|
1483
|
+
organizationId: string;
|
|
1484
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1485
|
+
serviceId: string;
|
|
1486
|
+
/** ID of the ClickPipe to get settings for. */
|
|
1487
|
+
clickPipeId: string;
|
|
1488
|
+
}
|
|
1489
|
+
export interface ListClickPipeReversePrivateEndpointsRequest {
|
|
1490
|
+
/** ID of the organization that owns the service. */
|
|
1491
|
+
organizationId: string;
|
|
1492
|
+
/** ID of the service that owns the Reverse Private Endpoint. */
|
|
1493
|
+
serviceId: string;
|
|
1494
|
+
}
|
|
1495
|
+
export type ListClickPipeReversePrivateEndpointsResponseBodyList = Array<ReversePrivateEndpoint>;
|
|
1496
|
+
export type ListClickPipeReversePrivateEndpointsResponse =
|
|
1497
|
+
ListClickPipeReversePrivateEndpointsResponseBodyList;
|
|
1498
|
+
export interface ListClickPipesRequest {
|
|
1499
|
+
/** ID of the organization that owns the service. */
|
|
1500
|
+
organizationId: string;
|
|
1501
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1502
|
+
serviceId: string;
|
|
1503
|
+
/** Maximum number of results to return. */
|
|
1504
|
+
limit?: number | undefined;
|
|
1505
|
+
/** Opaque cursor from a previous response's `nextCursor`, marking where to resume the list. */
|
|
1506
|
+
cursor?: string | undefined;
|
|
1507
|
+
}
|
|
1508
|
+
export type ListClickPipesResponseResultList = Array<ClickPipe>;
|
|
1509
|
+
export interface ListClickPipesResponse {
|
|
1510
|
+
/** HTTP status code. */
|
|
1511
|
+
status?: number | undefined;
|
|
1512
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
1513
|
+
requestId?: string | undefined;
|
|
1514
|
+
result: ListClickPipesResponseResultList;
|
|
1515
|
+
/** Maximum number of results returned in this page. */
|
|
1516
|
+
limit?: number | undefined;
|
|
1517
|
+
/** Total number of results across all pages. It has only informative value, thus is not guaranteed and it is provided on a best-effort basis. Null if the total count is unknown. */
|
|
1518
|
+
totalCount?: number | null | undefined;
|
|
1519
|
+
/** Cursor for the next page, to be sent as the `cursor` query parameter. Null on the last page. */
|
|
1520
|
+
nextCursor?: string | null | undefined;
|
|
1521
|
+
}
|
|
1522
|
+
/** Authentication method of the Kafka source. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. Supported authentication methods: kafka: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, msk: SCRAM-SHA-512, IAM_ROLE, IAM_USER, MUTUAL_TLS, gcmk: PLAIN, MUTUAL_TLS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY, confluent: PLAIN, SCRAM-SHA-512, MUTUAL_TLS, warpstream: PLAIN, azureeventhub: PLAIN, redpanda: SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, dokafka: SCRAM-SHA-256, MUTUAL_TLS */
|
|
1523
|
+
export type ClickPipePatchKafkaSourceAuthentication =
|
|
1524
|
+
| "PLAIN"
|
|
1525
|
+
| "SCRAM-SHA-256"
|
|
1526
|
+
| "SCRAM-SHA-512"
|
|
1527
|
+
| "IAM_ROLE"
|
|
1528
|
+
| "IAM_USER"
|
|
1529
|
+
| "MUTUAL_TLS"
|
|
1530
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
1531
|
+
/** Reverse private endpoint UUIDs used for a secure private connection to the Kafka source. */
|
|
1532
|
+
export type ClickPipePatchKafkaSourceReversePrivateEndpointIdsList = Array<string>;
|
|
1533
|
+
/** Credentials for Kafka source. Choose one that is supported by the authentication method. */
|
|
1534
|
+
export type ClickPipePatchKafkaSourceCredentials = PLAIN | MskIamUser | AzureEventHub | MutualTLS;
|
|
1535
|
+
export interface ClickPipePatchKafkaSource {
|
|
1536
|
+
/** Authentication method of the Kafka source. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. Supported authentication methods: kafka: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, msk: SCRAM-SHA-512, IAM_ROLE, IAM_USER, MUTUAL_TLS, gcmk: PLAIN, MUTUAL_TLS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY, confluent: PLAIN, SCRAM-SHA-512, MUTUAL_TLS, warpstream: PLAIN, azureeventhub: PLAIN, redpanda: SCRAM-SHA-256, SCRAM-SHA-512, MUTUAL_TLS, dokafka: SCRAM-SHA-256, MUTUAL_TLS */
|
|
1537
|
+
authentication?: ClickPipePatchKafkaSourceAuthentication | (string & {}) | null | undefined;
|
|
1538
|
+
/** IAM role for the Kafka source. Use with IAM role authentication. Read more in ClickPipes documentation: https://clickhouse.com/docs/en/integrations/clickpipes/kafka#iam */
|
|
1539
|
+
iamRole?: string | null | undefined;
|
|
1540
|
+
/** PEM encoded CA certificates to validate the broker's certificate. */
|
|
1541
|
+
caCertificate?: string | null | undefined;
|
|
1542
|
+
/** Reverse private endpoint UUIDs used for a secure private connection to the Kafka source. */
|
|
1543
|
+
reversePrivateEndpointIds?: ClickPipePatchKafkaSourceReversePrivateEndpointIdsList | undefined;
|
|
1544
|
+
/** Credentials for Kafka source. Choose one that is supported by the authentication method. */
|
|
1545
|
+
credentials?: ClickPipePatchKafkaSourceCredentials | undefined;
|
|
1546
|
+
}
|
|
1547
|
+
/** Authentication method. IAM_USER is for S3, GCS, and DigitalOcean Spaces. IAM_ROLE is for S3 only. SERVICE_ACCOUNT is for GCS only. For GCS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. CONNECTION_STRING is for Azure Blob Storage. PUBLIC uses no authentication. */
|
|
1548
|
+
export type ClickPipePatchObjectStorageSourceAuthentication =
|
|
1549
|
+
| "IAM_ROLE"
|
|
1550
|
+
| "IAM_USER"
|
|
1551
|
+
| "CONNECTION_STRING"
|
|
1552
|
+
| "SERVICE_ACCOUNT"
|
|
1553
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
1554
|
+
export interface ClickPipePatchObjectStorageSource {
|
|
1555
|
+
/** If set to true, skips the initial load and only ingests files delivered by queue notifications. Only applicable when queueUrl is provided. */
|
|
1556
|
+
skipInitialLoad?: boolean | null | undefined;
|
|
1557
|
+
/** Skip all files up to and including this object key during the initial load. Cannot be provided when skipInitialLoad is true. */
|
|
1558
|
+
startAfter?: string | null | undefined;
|
|
1559
|
+
/** Authentication method. IAM_USER is for S3, GCS, and DigitalOcean Spaces. IAM_ROLE is for S3 only. SERVICE_ACCOUNT is for GCS only. For GCS, SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. CONNECTION_STRING is for Azure Blob Storage. PUBLIC uses no authentication. */
|
|
1560
|
+
authentication?:
|
|
1561
|
+
| ClickPipePatchObjectStorageSourceAuthentication
|
|
1562
|
+
| (string & {})
|
|
1563
|
+
| null
|
|
1564
|
+
| undefined;
|
|
1565
|
+
/** IAM role to be used with IAM role authentication. Read more in ClickPipes documentation: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#authentication */
|
|
1566
|
+
iamRole?: string | null | undefined;
|
|
1567
|
+
/** Connection string for Azure Blob Storage authentication. Required when authentication is CONNECTION_STRING. */
|
|
1568
|
+
connectionString?: string | Redacted.Redacted<string> | null | undefined;
|
|
1569
|
+
/** Path to the file(s) within the Azure container. Used for Azure Blob Storage sources. You can specify multiple files using bash-like wildcards. For more information, see the documentation on using wildcards in path: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#limitations */
|
|
1570
|
+
path?: string | null | undefined;
|
|
1571
|
+
/** Container name for Azure Blob Storage. Required when type is azureblobstorage. */
|
|
1572
|
+
azureContainerName?: string | null | undefined;
|
|
1573
|
+
accessKey?: MskIamUser | null | undefined;
|
|
1574
|
+
/** Base64-encoded GCP service account JSON key. Required when authentication is SERVICE_ACCOUNT. */
|
|
1575
|
+
serviceAccountKey?: string | Redacted.Redacted<string> | null | undefined;
|
|
1576
|
+
}
|
|
1577
|
+
/** Authentication method to use with the Kinesis stream. */
|
|
1578
|
+
export type ClickPipePatchKinesisSourceAuthentication = "IAM_ROLE" | "IAM_USER";
|
|
1579
|
+
export interface ClickPipePatchKinesisSource {
|
|
1580
|
+
/** Authentication method to use with the Kinesis stream. */
|
|
1581
|
+
authentication?: ClickPipePatchKinesisSourceAuthentication | (string & {}) | null | undefined;
|
|
1582
|
+
/** IAM role to use for authentication. Required if IAM_ROLE is used. */
|
|
1583
|
+
iamRole?: string | null | undefined;
|
|
1584
|
+
accessKey?: MskIamUser | null | undefined;
|
|
1585
|
+
}
|
|
1586
|
+
/** Authentication method to use with GCP Pub/Sub. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
1587
|
+
export type ClickPipePatchPubSubSourceAuthentication =
|
|
1588
|
+
| "SERVICE_ACCOUNT"
|
|
1589
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
1590
|
+
export interface ClickPipePatchPubSubSource {
|
|
1591
|
+
/** Authentication method to use with GCP Pub/Sub. SERVICE_ACCOUNT_WORKLOAD_IDENTITY is in Beta. ClickPipes uses the GCP service account returned in gcpWorkloadIdentity.principal by the operation with operationId clickPipesServiceContextGet; grant it access to the source resources. */
|
|
1592
|
+
authentication: ClickPipePatchPubSubSourceAuthentication | (string & {}) | null;
|
|
1593
|
+
/** Acknowledgement deadline for messages, in seconds. Must be between 10 and 600. */
|
|
1594
|
+
ackDeadline?: number | null | undefined;
|
|
1595
|
+
serviceAccountKey?: ServiceAccount | null | undefined;
|
|
1596
|
+
}
|
|
1597
|
+
export interface ClickPipePatchPostgresPipeSettings {
|
|
1598
|
+
/** Interval in seconds to sync data from Postgres during CDC replication. */
|
|
1599
|
+
syncIntervalSeconds?: number | null | undefined;
|
|
1600
|
+
/** Number of rows to pull in each batch during CDC replication. */
|
|
1601
|
+
pullBatchSize?: number | null | undefined;
|
|
1602
|
+
}
|
|
1603
|
+
/** Table mappings to add to the pipe. Can be an empty array if no tables are being added. */
|
|
1604
|
+
export type ClickPipePatchPostgresSourceTableMappingsToAddList =
|
|
1605
|
+
Array<ClickPipePostgresPipeTableMapping>;
|
|
1606
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
1607
|
+
export type ClickPipePatchPostgresPipeRemoveTableMappingTableEngine =
|
|
1608
|
+
| "MergeTree"
|
|
1609
|
+
| "ReplacingMergeTree"
|
|
1610
|
+
| "Null";
|
|
1611
|
+
export interface ClickPipePatchPostgresPipeRemoveTableMapping {
|
|
1612
|
+
/** PostgreSQL source schema name. */
|
|
1613
|
+
sourceSchemaName?: string | null | undefined;
|
|
1614
|
+
/** PostgreSQL source table name. */
|
|
1615
|
+
sourceTable?: string | null | undefined;
|
|
1616
|
+
/** ClickHouse target table name, optionally prefixed with schema name (e.g., "my_schema_my_table"). The table will be created automatically if it does not exist. For snapshot mode, the target table must be empty. */
|
|
1617
|
+
targetTable?: string | null | undefined;
|
|
1618
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
1619
|
+
tableEngine?:
|
|
1620
|
+
| ClickPipePatchPostgresPipeRemoveTableMappingTableEngine
|
|
1621
|
+
| (string & {})
|
|
1622
|
+
| null
|
|
1623
|
+
| undefined;
|
|
1624
|
+
/** Custom partitioning column used for parallel snapshotting. Only beneficial for PostgreSQL 13 (no benefit for PG14+, which supports indexed ctid scans). Must be an indexed column of type: `smallint`, `integer`, `bigint`, `timestamp without time zone`, or `timestamp with time zone`. Unrelated to ClickHouse partitioning. */
|
|
1625
|
+
partitionKey?: string | null | undefined;
|
|
1626
|
+
/** ClickHouse PARTITION BY expression applied to the destination table when ClickPipes creates it. */
|
|
1627
|
+
partitionByExpr?: string | null | undefined;
|
|
1628
|
+
}
|
|
1629
|
+
/** Table mappings to remove from the pipe. Only sourceSchemaName, sourceTable, and targetTable are required for removal. */
|
|
1630
|
+
export type ClickPipePatchPostgresSourceTableMappingsToRemoveList =
|
|
1631
|
+
Array<ClickPipePatchPostgresPipeRemoveTableMapping>;
|
|
1632
|
+
export interface ClickPipePatchPostgresSource {
|
|
1633
|
+
credentials?: PLAIN | undefined;
|
|
1634
|
+
/** PostgreSQL server hostname or IP address. To use a reverse private endpoint, pass the endpoint hostname here. For Cloud SQL with SERVICE_ACCOUNT_WORKLOAD_IDENTITY authentication, pass the instance connection name (project:region:instance). */
|
|
1635
|
+
host?: string | null | undefined;
|
|
1636
|
+
/** PostgreSQL server port. */
|
|
1637
|
+
port?: number | null | undefined;
|
|
1638
|
+
/** PostgreSQL database name to replicate from. */
|
|
1639
|
+
database?: string | null | undefined;
|
|
1640
|
+
/** TLS/SSL host for secure connections. */
|
|
1641
|
+
tlsHost?: string | null | undefined;
|
|
1642
|
+
/** PEM encoded CA certificate to validate the Postgres server certificate. */
|
|
1643
|
+
caCertificate?: string | null | undefined;
|
|
1644
|
+
/** Disable TLS for the Postgres connection. Use with caution in production environments. */
|
|
1645
|
+
disableTls?: boolean | null | undefined;
|
|
1646
|
+
/** Skip TLS certificate verification for the Postgres connection. Use with caution in production environments. */
|
|
1647
|
+
skipCertVerification?: boolean | null | undefined;
|
|
1648
|
+
settings?: ClickPipePatchPostgresPipeSettings | undefined;
|
|
1649
|
+
/** Table mappings to add to the pipe. Can be an empty array if no tables are being added. */
|
|
1650
|
+
tableMappingsToAdd?: ClickPipePatchPostgresSourceTableMappingsToAddList | undefined;
|
|
1651
|
+
/** Table mappings to remove from the pipe. Only sourceSchemaName, sourceTable, and targetTable are required for removal. */
|
|
1652
|
+
tableMappingsToRemove?: ClickPipePatchPostgresSourceTableMappingsToRemoveList | undefined;
|
|
1653
|
+
}
|
|
1654
|
+
/** Authentication method for MySQL connection. IAM_ROLE is only available for services on AWS. */
|
|
1655
|
+
export type ClickPipePatchMySQLSourceAuthentication =
|
|
1656
|
+
| "basic"
|
|
1657
|
+
| "IAM_ROLE"
|
|
1658
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
1659
|
+
export interface ClickPipePatchMySQLPipeSettings {
|
|
1660
|
+
/** Interval in seconds to sync data from MySQL during CDC replication. */
|
|
1661
|
+
syncIntervalSeconds?: number | null | undefined;
|
|
1662
|
+
/** Number of rows to pull in each batch during CDC replication. */
|
|
1663
|
+
pullBatchSize?: number | null | undefined;
|
|
1664
|
+
/** Enable compression for the MySQL connection. */
|
|
1665
|
+
useCompression?: boolean | null | undefined;
|
|
1666
|
+
}
|
|
1667
|
+
/** Table mappings to add to the pipe. Can be an empty array if no tables are being added. */
|
|
1668
|
+
export type ClickPipePatchMySQLSourceTableMappingsToAddList = Array<ClickPipeMySQLPipeTableMapping>;
|
|
1669
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
1670
|
+
export type ClickPipePatchMySQLPipeRemoveTableMappingTableEngine =
|
|
1671
|
+
| "MergeTree"
|
|
1672
|
+
| "ReplacingMergeTree"
|
|
1673
|
+
| "Null";
|
|
1674
|
+
export interface ClickPipePatchMySQLPipeRemoveTableMapping {
|
|
1675
|
+
/** MySQL source database name. */
|
|
1676
|
+
sourceSchemaName: string | null;
|
|
1677
|
+
/** MySQL source table name. */
|
|
1678
|
+
sourceTable: string | null;
|
|
1679
|
+
/** ClickHouse target table name, optionally prefixed with schema name (e.g., "my_database_my_table"). The table will be created automatically if it does not exist. For snapshot mode, the target table must be empty. */
|
|
1680
|
+
targetTable: string | null;
|
|
1681
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
1682
|
+
tableEngine?:
|
|
1683
|
+
| ClickPipePatchMySQLPipeRemoveTableMappingTableEngine
|
|
1684
|
+
| (string & {})
|
|
1685
|
+
| null
|
|
1686
|
+
| undefined;
|
|
1687
|
+
/** Custom partitioning column used for parallel snapshotting. Must be an indexed column of an integer, date, datetime or timestamp type. Unrelated to ClickHouse partitioning. */
|
|
1688
|
+
partitionKey?: string | null | undefined;
|
|
1689
|
+
/** ClickHouse PARTITION BY expression applied to the destination table when ClickPipes creates it. */
|
|
1690
|
+
partitionByExpr?: string | null | undefined;
|
|
1691
|
+
}
|
|
1692
|
+
/** Table mappings to remove from the pipe. Only sourceSchemaName, sourceTable, and targetTable are required for removal. */
|
|
1693
|
+
export type ClickPipePatchMySQLSourceTableMappingsToRemoveList =
|
|
1694
|
+
Array<ClickPipePatchMySQLPipeRemoveTableMapping>;
|
|
1695
|
+
export interface ClickPipePatchMySQLSource {
|
|
1696
|
+
credentials?: PLAIN | undefined;
|
|
1697
|
+
/** MySQL server hostname or IP address. To use a reverse private endpoint, pass the endpoint hostname here. For Cloud SQL with SERVICE_ACCOUNT_WORKLOAD_IDENTITY authentication, pass the instance connection name (project:region:instance). */
|
|
1698
|
+
host: string | null;
|
|
1699
|
+
/** MySQL server port. */
|
|
1700
|
+
port: number | null;
|
|
1701
|
+
/** Authentication method for MySQL connection. IAM_ROLE is only available for services on AWS. */
|
|
1702
|
+
authentication?: ClickPipePatchMySQLSourceAuthentication | (string & {}) | null | undefined;
|
|
1703
|
+
/** IAM role ARN for IAM authentication (required for IAM_ROLE authentication, services on AWS only). */
|
|
1704
|
+
iamRole?: string | null | undefined;
|
|
1705
|
+
/** TLS/SSL host for secure connections. */
|
|
1706
|
+
tlsHost?: string | null | undefined;
|
|
1707
|
+
/** PEM encoded CA certificate to validate the MySQL server certificate. */
|
|
1708
|
+
caCertificate?: string | null | undefined;
|
|
1709
|
+
/** Disable TLS for the MySQL connection. Use with caution in production environments. */
|
|
1710
|
+
disableTls?: boolean | null | undefined;
|
|
1711
|
+
/** Skip TLS certificate verification for the MySQL connection. Use with caution in production environments. */
|
|
1712
|
+
skipCertVerification?: boolean | null | undefined;
|
|
1713
|
+
/** Optional MySQL server_id the pipe declares itself as in the MySQL replication topology. Must be unique across replicas connected to the source. If omitted, one is assigned automatically. */
|
|
1714
|
+
serverId?: number | null | undefined;
|
|
1715
|
+
settings?: ClickPipePatchMySQLPipeSettings | undefined;
|
|
1716
|
+
/** Table mappings to add to the pipe. Can be an empty array if no tables are being added. */
|
|
1717
|
+
tableMappingsToAdd?: ClickPipePatchMySQLSourceTableMappingsToAddList | undefined;
|
|
1718
|
+
/** Table mappings to remove from the pipe. Only sourceSchemaName, sourceTable, and targetTable are required for removal. */
|
|
1719
|
+
tableMappingsToRemove?: ClickPipePatchMySQLSourceTableMappingsToRemoveList | undefined;
|
|
1720
|
+
}
|
|
1721
|
+
/** MongoDB read preference for replica set reads. */
|
|
1722
|
+
export type ClickPipePatchMongoDBSourceReadPreference =
|
|
1723
|
+
| "primary"
|
|
1724
|
+
| "primaryPreferred"
|
|
1725
|
+
| "secondary"
|
|
1726
|
+
| "secondaryPreferred"
|
|
1727
|
+
| "nearest";
|
|
1728
|
+
export interface ClickPipePatchMongoDBPipeSettings {
|
|
1729
|
+
/** Interval in seconds to sync data from MongoDB during CDC replication. */
|
|
1730
|
+
syncIntervalSeconds?: number | null | undefined;
|
|
1731
|
+
/** Number of rows to pull in each batch during CDC replication. */
|
|
1732
|
+
pullBatchSize?: number | null | undefined;
|
|
1733
|
+
}
|
|
1734
|
+
/** Collection mappings to add to the pipe. Can be an empty array if no collections are being added. */
|
|
1735
|
+
export type ClickPipePatchMongoDBSourceTableMappingsToAddList =
|
|
1736
|
+
Array<ClickPipeMongoDBPipeTableMapping>;
|
|
1737
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
1738
|
+
export type ClickPipePatchMongoDBPipeRemoveTableMappingTableEngine =
|
|
1739
|
+
| "MergeTree"
|
|
1740
|
+
| "ReplacingMergeTree"
|
|
1741
|
+
| "Null";
|
|
1742
|
+
export interface ClickPipePatchMongoDBPipeRemoveTableMapping {
|
|
1743
|
+
/** MongoDB source database name. */
|
|
1744
|
+
sourceDatabaseName: string | null;
|
|
1745
|
+
/** MongoDB source collection name. */
|
|
1746
|
+
sourceCollection: string | null;
|
|
1747
|
+
/** ClickHouse target table name. The table will be created automatically if it does not exist. */
|
|
1748
|
+
targetTable: string | null;
|
|
1749
|
+
/** ClickHouse table engine: "ReplacingMergeTree" (handles updates/deletes), "MergeTree" (append-only), or "Null" (forward data to materialized views without storing it). */
|
|
1750
|
+
tableEngine?:
|
|
1751
|
+
| ClickPipePatchMongoDBPipeRemoveTableMappingTableEngine
|
|
1752
|
+
| (string & {})
|
|
1753
|
+
| null
|
|
1754
|
+
| undefined;
|
|
1755
|
+
}
|
|
1756
|
+
/** Collection mappings to remove from the pipe. Only sourceDatabaseName, sourceCollection, and targetTable are required for removal. */
|
|
1757
|
+
export type ClickPipePatchMongoDBSourceTableMappingsToRemoveList =
|
|
1758
|
+
Array<ClickPipePatchMongoDBPipeRemoveTableMapping>;
|
|
1759
|
+
export interface ClickPipePatchMongoDBSource {
|
|
1760
|
+
credentials?: PLAIN | undefined;
|
|
1761
|
+
/** MongoDB connection URI (mongodb:// or mongodb+srv://). Credentials are redacted in responses; a masked value is never saved as a credential, so a real credential equal to [REDACTED] cannot be set. To change the connection, send the full URI with real credentials; omit this field or resend the redacted value to leave it unchanged. */
|
|
1762
|
+
uri: string | Redacted.Redacted<string> | null;
|
|
1763
|
+
/** MongoDB read preference for replica set reads. */
|
|
1764
|
+
readPreference: ClickPipePatchMongoDBSourceReadPreference | (string & {}) | null;
|
|
1765
|
+
/** TLS/SSL host for secure connections. */
|
|
1766
|
+
tlsHost?: string | null | undefined;
|
|
1767
|
+
/** Disable TLS for the MongoDB connection. Defaults to false (TLS enabled). */
|
|
1768
|
+
disableTls?: boolean | null | undefined;
|
|
1769
|
+
/** Skip TLS certificate verification for the MongoDB connection. Use with caution in production environments. */
|
|
1770
|
+
skipCertVerification?: boolean | null | undefined;
|
|
1771
|
+
/** PEM encoded CA certificate to validate the MongoDB server certificate. */
|
|
1772
|
+
caCertificate?: string | null | undefined;
|
|
1773
|
+
settings?: ClickPipePatchMongoDBPipeSettings | undefined;
|
|
1774
|
+
/** Collection mappings to add to the pipe. Can be an empty array if no collections are being added. */
|
|
1775
|
+
tableMappingsToAdd?: ClickPipePatchMongoDBSourceTableMappingsToAddList | undefined;
|
|
1776
|
+
/** Collection mappings to remove from the pipe. Only sourceDatabaseName, sourceCollection, and targetTable are required for removal. */
|
|
1777
|
+
tableMappingsToRemove?: ClickPipePatchMongoDBSourceTableMappingsToRemoveList | undefined;
|
|
1778
|
+
}
|
|
1779
|
+
export interface ClickPipePatchSource {
|
|
1780
|
+
kafka?: ClickPipePatchKafkaSource | undefined;
|
|
1781
|
+
objectStorage?: ClickPipePatchObjectStorageSource | undefined;
|
|
1782
|
+
kinesis?: ClickPipePatchKinesisSource | undefined;
|
|
1783
|
+
pubsub?: ClickPipePatchPubSubSource | undefined;
|
|
1784
|
+
postgres?: ClickPipePatchPostgresSource | undefined;
|
|
1785
|
+
mysql?: ClickPipePatchMySQLSource | undefined;
|
|
1786
|
+
mongodb?: ClickPipePatchMongoDBSource | undefined;
|
|
1787
|
+
/** Validate data samples received from data source. It will validate the connection and data availability and correctness. If not enabled, only connection will be validated. This has no effect on Postgres or MySQL pipes, they always only validate the connection and table definitions. This is experimental and can be removed in the future. */
|
|
1788
|
+
validateSamples?: boolean | undefined;
|
|
1789
|
+
}
|
|
1790
|
+
/** Columns of the destination table. This will not update the table schema, only the ClickPipe configuration. */
|
|
1791
|
+
export type ClickPipePatchDestinationColumnsList = Array<ClickPipeDestinationColumn>;
|
|
1792
|
+
export interface ClickPipePatchDestination {
|
|
1793
|
+
/** Columns of the destination table. This will not update the table schema, only the ClickPipe configuration. */
|
|
1794
|
+
columns?: ClickPipePatchDestinationColumnsList | undefined;
|
|
1795
|
+
}
|
|
1796
|
+
/** Field mappings of the ClickPipe. This will not update the table schema, only the ClickPipe configuration. */
|
|
1797
|
+
export type UpdateClickPipeRequestFieldMappingsList = Array<ClickPipeFieldMapping>;
|
|
1798
|
+
export interface UpdateClickPipeRequest {
|
|
1799
|
+
/** ID of the organization that owns the service. */
|
|
1800
|
+
organizationId: string;
|
|
1801
|
+
/** ID of the service to create the ClickPipe for. */
|
|
1802
|
+
serviceId: string;
|
|
1803
|
+
/** ID of the requested ClickPipe. */
|
|
1804
|
+
clickPipeId: string;
|
|
1805
|
+
/** Name of the ClickPipe. */
|
|
1806
|
+
name?: string | undefined;
|
|
1807
|
+
source?: ClickPipePatchSource | undefined;
|
|
1808
|
+
destination?: ClickPipePatchDestination | undefined;
|
|
1809
|
+
/** Field mappings of the ClickPipe. This will not update the table schema, only the ClickPipe configuration. */
|
|
1810
|
+
fieldMappings?: UpdateClickPipeRequestFieldMappingsList | undefined;
|
|
1811
|
+
settings?: ClickPipeSettingsPutRequest | undefined;
|
|
1812
|
+
}
|
|
1813
|
+
export interface UpdateClickPipeCdcScalingRequest {
|
|
1814
|
+
/** ID of the organization that owns the service. */
|
|
1815
|
+
organizationId: string;
|
|
1816
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1817
|
+
serviceId: string;
|
|
1818
|
+
/** CPU in millicores for DB ClickPipes. */
|
|
1819
|
+
replicaCpuMillicores?: number | undefined;
|
|
1820
|
+
/** Memory in GiB for DB ClickPipes. Must be 4× the CPU core count. */
|
|
1821
|
+
replicaMemoryGb?: number | undefined;
|
|
1822
|
+
}
|
|
1823
|
+
/** Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com */
|
|
1824
|
+
export type UpdateClickPipeReversePrivateEndpointRequestCustomPrivateDnsMappingsList =
|
|
1825
|
+
Array<CustomPrivateDnsMapping>;
|
|
1826
|
+
export interface UpdateClickPipeReversePrivateEndpointRequest {
|
|
1827
|
+
/** ID of the organization that owns the service. */
|
|
1828
|
+
organizationId: string;
|
|
1829
|
+
/** ID of the service that owns the Reverse Private Endpoint. */
|
|
1830
|
+
serviceId: string;
|
|
1831
|
+
/** ID of the reverse private endpoint to update. */
|
|
1832
|
+
reversePrivateEndpointId: string;
|
|
1833
|
+
/** Optional private DNS names for Reverse Private Endpoint. Can be used as data source destination address. Must be unique across the ClickHouse service. Generally available for Google Private Service Connect (PSC). For AWS PrivateLink (VPC endpoint service and VPC resource), available in Private Preview; contact ClickHouse support to enable it for your service. Not supported for MSK multi-VPC. Supports exact names and leading wildcard names such as *.example.com */
|
|
1834
|
+
customPrivateDnsMappings?:
|
|
1835
|
+
| UpdateClickPipeReversePrivateEndpointRequestCustomPrivateDnsMappingsList
|
|
1836
|
+
| undefined;
|
|
1837
|
+
}
|
|
1838
|
+
export interface UpdateClickPipeScalingRequest {
|
|
1839
|
+
/** ID of the organization that owns the service. */
|
|
1840
|
+
organizationId: string;
|
|
1841
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1842
|
+
serviceId: string;
|
|
1843
|
+
/** ID of the ClickPipe to update scaling settings. */
|
|
1844
|
+
clickPipeId: string;
|
|
1845
|
+
/** Number of replicas to scale to. Use to scale Kafka pipes. */
|
|
1846
|
+
replicas?: number | undefined;
|
|
1847
|
+
/** Number of concurrency to scale to. Use to scale S3 pipes. */
|
|
1848
|
+
concurrency?: number | undefined;
|
|
1849
|
+
/** CPU in millicores for each replica. Use to scale streaming pipes. */
|
|
1850
|
+
replicaCpuMillicores?: number | undefined;
|
|
1851
|
+
/** Memory in GB for each replica. Use to scale streaming pipes. */
|
|
1852
|
+
replicaMemoryGb?: number | undefined;
|
|
1853
|
+
}
|
|
1854
|
+
export interface UpdateClickPipeSettingsRequest {
|
|
1855
|
+
/** ID of the organization that owns the service. */
|
|
1856
|
+
organizationId: string;
|
|
1857
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1858
|
+
serviceId: string;
|
|
1859
|
+
/** ID of the ClickPipe to update settings for. */
|
|
1860
|
+
clickPipeId: string;
|
|
1861
|
+
/** Streaming max insert wait time. Configures the max wait period before inserting data into the ClickHouse. */
|
|
1862
|
+
streaming_max_insert_wait_ms?: number | undefined;
|
|
1863
|
+
/** Object storage concurrency. Number of concurrent file processing threads */
|
|
1864
|
+
object_storage_concurrency?: number | undefined;
|
|
1865
|
+
/** Object storage polling interval. Configures the refresh interval for querying continuous ingest for new object storage data */
|
|
1866
|
+
object_storage_polling_interval_ms?: number | undefined;
|
|
1867
|
+
/** Max insert bytes. Number of bytes to process in a single insert batch */
|
|
1868
|
+
object_storage_max_insert_bytes?: number | undefined;
|
|
1869
|
+
/** Max file count. Maximum number of files to process in a single insert batch */
|
|
1870
|
+
object_storage_max_file_count?: number | undefined;
|
|
1871
|
+
/** Max file size. Files larger than this are skipped and not retried. Can only lower the limit. Private preview. Contact support to enable it for your organization. */
|
|
1872
|
+
object_storage_max_file_size?: number | undefined;
|
|
1873
|
+
/** Max threads. Maximum number of concurrent threads for file processing */
|
|
1874
|
+
clickhouse_max_threads?: number | undefined;
|
|
1875
|
+
/** Max insert threads. Maximum number of concurrent insert threads */
|
|
1876
|
+
clickhouse_max_insert_threads?: number | undefined;
|
|
1877
|
+
/** Min insert block size bytes. Minimum size of data block for insert (in bytes) */
|
|
1878
|
+
clickhouse_min_insert_block_size_bytes?: number | undefined;
|
|
1879
|
+
/** Max download threads. Maximum number of concurrent download threads */
|
|
1880
|
+
clickhouse_max_download_threads?: number | undefined;
|
|
1881
|
+
/** Parallel distributed insert select. Only applies when object_storage_use_cluster_function is enabled. When disabled, this setting is ignored and the effective value is 0. */
|
|
1882
|
+
clickhouse_parallel_distributed_insert_select?: number | undefined;
|
|
1883
|
+
/** Kafka Read Committed. Whether Kafka consumers read only committed messages */
|
|
1884
|
+
kafka_read_committed?: boolean | undefined;
|
|
1885
|
+
/** use cluster function. Whether to use ClickHouse cluster function for distributed processing */
|
|
1886
|
+
object_storage_use_cluster_function?: boolean | undefined;
|
|
1887
|
+
/** parallel view processing. Whether to enable pushing to attached views concurrently instead of sequentially */
|
|
1888
|
+
clickhouse_parallel_view_processing?: boolean | undefined;
|
|
1889
|
+
}
|
|
1890
|
+
/** Command to change the state: 'start', 'stop', 'resync'. */
|
|
1891
|
+
export type UpdateClickPipeStateRequestCommand = "start" | "stop" | "resync";
|
|
1892
|
+
export interface UpdateClickPipeStateRequest {
|
|
1893
|
+
/** ID of the organization that owns the service. */
|
|
1894
|
+
organizationId: string;
|
|
1895
|
+
/** ID of the service that owns the ClickPipe. */
|
|
1896
|
+
serviceId: string;
|
|
1897
|
+
/** ID of the ClickPipe to update state. */
|
|
1898
|
+
clickPipeId: string;
|
|
1899
|
+
/** Command to change the state: 'start', 'stop', 'resync'. */
|
|
1900
|
+
command: UpdateClickPipeStateRequestCommand | (string & {});
|
|
1901
|
+
}
|
|
1902
|
+
export type CreateClickPipeError = ClickHouseCloudOpError;
|
|
1903
|
+
/** Create ClickPipe Create a new ClickPipe. */
|
|
1904
|
+
export const createClickPipe: API.OperationMethod<
|
|
1905
|
+
CreateClickPipeRequest,
|
|
1906
|
+
ClickPipe,
|
|
1907
|
+
CreateClickPipeError,
|
|
1908
|
+
ClickHouseCloudOpContext
|
|
1909
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1910
|
+
input: __S(18, __c0, 18) as any as S.Schema<CreateClickPipeRequest>,
|
|
1911
|
+
output: __S(167, __c5, 7) as any as S.Schema<ClickPipe>,
|
|
1912
|
+
errors: [],
|
|
1913
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
1914
|
+
protocol: ClickHouseCloudProtocol,
|
|
1915
|
+
retry: Retry.Retry,
|
|
1916
|
+
telemetry: TELEMETRY,
|
|
1917
|
+
span: "CreateClickPipe",
|
|
1918
|
+
}));
|
|
1919
|
+
|
|
1920
|
+
export type CreateClickPipeReversePrivateEndpointError = ClickHouseCloudOpError;
|
|
1921
|
+
/** Create reverse private endpoint Create a new reverse private endpoint. */
|
|
1922
|
+
export const createClickPipeReversePrivateEndpoint: API.OperationMethod<
|
|
1923
|
+
CreateClickPipeReversePrivateEndpointRequest,
|
|
1924
|
+
ReversePrivateEndpoint,
|
|
1925
|
+
CreateClickPipeReversePrivateEndpointError,
|
|
1926
|
+
ClickHouseCloudOpContext
|
|
1927
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1928
|
+
input: __S(192, __c6, 0) as any as S.Schema<CreateClickPipeReversePrivateEndpointRequest>,
|
|
1929
|
+
output: __S(230, __c7, 6) as any as S.Schema<ReversePrivateEndpoint>,
|
|
1930
|
+
errors: [],
|
|
1931
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
1932
|
+
protocol: ClickHouseCloudProtocol,
|
|
1933
|
+
retry: Retry.Retry,
|
|
1934
|
+
telemetry: TELEMETRY,
|
|
1935
|
+
span: "CreateClickPipeReversePrivateEndpoint",
|
|
1936
|
+
}));
|
|
1937
|
+
|
|
1938
|
+
export type DeleteClickPipeError = ClickHouseCloudOpError;
|
|
1939
|
+
/** Delete ClickPipe Delete the specified ClickPipe. */
|
|
1940
|
+
export const deleteClickPipe: API.OperationMethod<
|
|
1941
|
+
DeleteClickPipeRequest,
|
|
1942
|
+
DeleteClickPipeResponse,
|
|
1943
|
+
DeleteClickPipeError,
|
|
1944
|
+
ClickHouseCloudOpContext
|
|
1945
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1946
|
+
input: __S(448, __c14, 0) as any as S.Schema<DeleteClickPipeRequest>,
|
|
1947
|
+
output: __S(480, __c15, 0) as any as S.Schema<DeleteClickPipeResponse>,
|
|
1948
|
+
errors: [],
|
|
1949
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
1950
|
+
protocol: ClickHouseCloudProtocol,
|
|
1951
|
+
retry: Retry.Retry,
|
|
1952
|
+
telemetry: TELEMETRY,
|
|
1953
|
+
span: "DeleteClickPipe",
|
|
1954
|
+
}));
|
|
1955
|
+
|
|
1956
|
+
export type DeleteClickPipeReversePrivateEndpointError = ClickHouseCloudOpError;
|
|
1957
|
+
/** Delete reverse private endpoint Delete the reverse private endpoint with the specified ID. */
|
|
1958
|
+
export const deleteClickPipeReversePrivateEndpoint: API.OperationMethod<
|
|
1959
|
+
DeleteClickPipeReversePrivateEndpointRequest,
|
|
1960
|
+
DeleteClickPipeReversePrivateEndpointResponse,
|
|
1961
|
+
DeleteClickPipeReversePrivateEndpointError,
|
|
1962
|
+
ClickHouseCloudOpContext
|
|
1963
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1964
|
+
input: __S(512, __c16, 0) as any as S.Schema<DeleteClickPipeReversePrivateEndpointRequest>,
|
|
1965
|
+
output: __S(480, __c15, 0) as any as S.Schema<DeleteClickPipeReversePrivateEndpointResponse>,
|
|
1966
|
+
errors: [],
|
|
1967
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
1968
|
+
protocol: ClickHouseCloudProtocol,
|
|
1969
|
+
retry: Retry.Retry,
|
|
1970
|
+
telemetry: TELEMETRY,
|
|
1971
|
+
span: "DeleteClickPipeReversePrivateEndpoint",
|
|
1972
|
+
}));
|
|
1973
|
+
|
|
1974
|
+
export type GetClickPipeError = ClickHouseCloudOpError;
|
|
1975
|
+
/** Get ClickPipe Returns the specified ClickPipe. */
|
|
1976
|
+
export const getClickPipe: API.OperationMethod<
|
|
1977
|
+
GetClickPipeRequest,
|
|
1978
|
+
ClickPipe,
|
|
1979
|
+
GetClickPipeError,
|
|
1980
|
+
ClickHouseCloudOpContext
|
|
1981
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1982
|
+
input: __S(544, __c17, 0) as any as S.Schema<GetClickPipeRequest>,
|
|
1983
|
+
output: __S(167, __c5, 7) as any as S.Schema<ClickPipe>,
|
|
1984
|
+
errors: [],
|
|
1985
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
1986
|
+
protocol: ClickHouseCloudProtocol,
|
|
1987
|
+
retry: Retry.Retry,
|
|
1988
|
+
telemetry: TELEMETRY,
|
|
1989
|
+
span: "GetClickPipe",
|
|
1990
|
+
}));
|
|
1991
|
+
|
|
1992
|
+
export type GetClickPipeCdcScalingError = ClickHouseCloudOpError;
|
|
1993
|
+
/** Get CDC ClickPipes scaling Get scaling settings for database ClickPipes (PostgreSQL, MySQL, MongoDB, BigQuery). The infrastructure is shared between all database ClickPipes in the service, both for initial load and CDC. For billing purposes, 2 CPU cores and 8 GB of RAM [correspond](https://clickhouse.com/docs/cloud/manage/billing/overview#clickpipes-for-postgres-cdc) to one compute unit. **Note:** For Kafka, Kinesis, and object storage pipes (S3, GCS, Azure Blob), see [Get ClickPipe](#tag/ClickPipes/operation/clickPipeGet). **This endpoint becomes available once at least one database ClickPipe was provisioned.** */
|
|
1994
|
+
export const getClickPipeCdcScaling: API.OperationMethod<
|
|
1995
|
+
GetClickPipeCdcScalingRequest,
|
|
1996
|
+
ClickPipesCdcScaling,
|
|
1997
|
+
GetClickPipeCdcScalingError,
|
|
1998
|
+
ClickHouseCloudOpContext
|
|
1999
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2000
|
+
input: __S(576, __c18, 0) as any as S.Schema<GetClickPipeCdcScalingRequest>,
|
|
2001
|
+
output: __S(608, __c19, 0) as any as S.Schema<ClickPipesCdcScaling>,
|
|
2002
|
+
errors: [],
|
|
2003
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2004
|
+
protocol: ClickHouseCloudProtocol,
|
|
2005
|
+
retry: Retry.Retry,
|
|
2006
|
+
telemetry: TELEMETRY,
|
|
2007
|
+
span: "GetClickPipeCdcScaling",
|
|
2008
|
+
}));
|
|
2009
|
+
|
|
2010
|
+
export type GetClickPipeReversePrivateEndpointError = ClickHouseCloudOpError;
|
|
2011
|
+
/** Get reverse private endpoint Returns the reverse private endpoint with the specified ID. */
|
|
2012
|
+
export const getClickPipeReversePrivateEndpoint: API.OperationMethod<
|
|
2013
|
+
GetClickPipeReversePrivateEndpointRequest,
|
|
2014
|
+
ReversePrivateEndpoint,
|
|
2015
|
+
GetClickPipeReversePrivateEndpointError,
|
|
2016
|
+
ClickHouseCloudOpContext
|
|
2017
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2018
|
+
input: __S(640, __c20, 0) as any as S.Schema<GetClickPipeReversePrivateEndpointRequest>,
|
|
2019
|
+
output: __S(230, __c7, 6) as any as S.Schema<ReversePrivateEndpoint>,
|
|
2020
|
+
errors: [],
|
|
2021
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2022
|
+
protocol: ClickHouseCloudProtocol,
|
|
2023
|
+
retry: Retry.Retry,
|
|
2024
|
+
telemetry: TELEMETRY,
|
|
2025
|
+
span: "GetClickPipeReversePrivateEndpoint",
|
|
2026
|
+
}));
|
|
2027
|
+
|
|
2028
|
+
export type GetClickPipeSettingsError = ClickHouseCloudOpError;
|
|
2029
|
+
/** Get ClickPipe settings Returns the advanced settings for the specified ClickPipe. */
|
|
2030
|
+
export const getClickPipeSettings: API.OperationMethod<
|
|
2031
|
+
GetClickPipeSettingsRequest,
|
|
2032
|
+
ClickPipeSettings,
|
|
2033
|
+
GetClickPipeSettingsError,
|
|
2034
|
+
ClickHouseCloudOpContext
|
|
2035
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2036
|
+
input: __S(672, __c21, 0) as any as S.Schema<GetClickPipeSettingsRequest>,
|
|
2037
|
+
output: __S(96, __c3, 0) as any as S.Schema<ClickPipeSettings>,
|
|
2038
|
+
errors: [],
|
|
2039
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2040
|
+
protocol: ClickHouseCloudProtocol,
|
|
2041
|
+
retry: Retry.Retry,
|
|
2042
|
+
telemetry: TELEMETRY,
|
|
2043
|
+
span: "GetClickPipeSettings",
|
|
2044
|
+
}));
|
|
2045
|
+
|
|
2046
|
+
export type ListClickPipeReversePrivateEndpointsError = ClickHouseCloudOpError;
|
|
2047
|
+
/** List reverse private endpoints Returns a list of reverse private endpoints for the specified service. */
|
|
2048
|
+
export const listClickPipeReversePrivateEndpoints: API.OperationMethod<
|
|
2049
|
+
ListClickPipeReversePrivateEndpointsRequest,
|
|
2050
|
+
ListClickPipeReversePrivateEndpointsResponse,
|
|
2051
|
+
ListClickPipeReversePrivateEndpointsError,
|
|
2052
|
+
ClickHouseCloudOpContext
|
|
2053
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2054
|
+
input: __S(704, __c22, 0) as any as S.Schema<ListClickPipeReversePrivateEndpointsRequest>,
|
|
2055
|
+
output: __S(706, __c22, 2) as any as S.Schema<ListClickPipeReversePrivateEndpointsResponse>,
|
|
2056
|
+
errors: [],
|
|
2057
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2058
|
+
protocol: ClickHouseCloudProtocol,
|
|
2059
|
+
retry: Retry.Retry,
|
|
2060
|
+
telemetry: TELEMETRY,
|
|
2061
|
+
span: "ListClickPipeReversePrivateEndpoints",
|
|
2062
|
+
}));
|
|
2063
|
+
|
|
2064
|
+
export type ListClickPipesError = ClickHouseCloudOpError;
|
|
2065
|
+
/** List ClickPipes Returns the ClickPipes in the specified service. If neither `limit` nor `cursor` is provided, returns all ClickPipes. In this case, `limit` and `totalCount` both equal the number of ClickPipes, and `nextCursor` is `null`. To paginate results, provide `limit` or `cursor`. Paginated results are sorted by creation date in descending order. Use `limit` to set the page size (default: 50). The server caps `limit` at its maximum page size and may return fewer results. Each response includes `limit`, `totalCount`, and `nextCursor`. To retrieve the next page, pass `nextCursor` as the `cursor` query parameter. Continue until `nextCursor` is `null`. */
|
|
2066
|
+
export const listClickPipes: API.PaginatedOperationMethod<
|
|
2067
|
+
ListClickPipesRequest,
|
|
2068
|
+
ListClickPipesResponse,
|
|
2069
|
+
ListClickPipesError,
|
|
2070
|
+
ClickHouseCloudOpContext,
|
|
2071
|
+
ClickPipe
|
|
2072
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
2073
|
+
() => ({
|
|
2074
|
+
input: __S(736, __c23, 0) as any as S.Schema<ListClickPipesRequest>,
|
|
2075
|
+
output: __S(738, __c23, 2) as any as S.Schema<ListClickPipesResponse>,
|
|
2076
|
+
errors: [],
|
|
2077
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2078
|
+
protocol: ClickHouseCloudPaginatedProtocol,
|
|
2079
|
+
retry: Retry.Retry,
|
|
2080
|
+
telemetry: TELEMETRY,
|
|
2081
|
+
span: "ListClickPipes",
|
|
2082
|
+
pagination: {
|
|
2083
|
+
mode: "cursor",
|
|
2084
|
+
inputToken: "cursor",
|
|
2085
|
+
outputToken: "nextCursor",
|
|
2086
|
+
items: "result",
|
|
2087
|
+
pageSize: "limit",
|
|
2088
|
+
} as const,
|
|
2089
|
+
}),
|
|
2090
|
+
paginateCursor,
|
|
2091
|
+
) as any;
|
|
2092
|
+
|
|
2093
|
+
export type UpdateClickPipeError = ClickHouseCloudOpError;
|
|
2094
|
+
/** Update ClickPipe Update the specified ClickPipe. Source fields not present in the per-source update schemas are immutable after creation. For Kafka sources, values submitted for immutable fields (type, format, brokers, topics, consumerGroup, offset, schemaRegistry, exactlyOnce, tombstoneMode) are not applied, except schema registry credentials, which are rejected. */
|
|
2095
|
+
export const updateClickPipe: API.OperationMethod<
|
|
2096
|
+
UpdateClickPipeRequest,
|
|
2097
|
+
ClickPipe,
|
|
2098
|
+
UpdateClickPipeError,
|
|
2099
|
+
ClickHouseCloudOpContext
|
|
2100
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2101
|
+
input: __S(273, __c8, 17) as any as S.Schema<UpdateClickPipeRequest>,
|
|
2102
|
+
output: __S(167, __c5, 7) as any as S.Schema<ClickPipe>,
|
|
2103
|
+
errors: [],
|
|
2104
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2105
|
+
protocol: ClickHouseCloudProtocol,
|
|
2106
|
+
retry: Retry.Retry,
|
|
2107
|
+
telemetry: TELEMETRY,
|
|
2108
|
+
span: "UpdateClickPipe",
|
|
2109
|
+
}));
|
|
2110
|
+
|
|
2111
|
+
export type UpdateClickPipeCdcScalingError = ClickHouseCloudOpError;
|
|
2112
|
+
/** Update CDC ClickPipes scaling Update scaling settings for database ClickPipes (PostgreSQL, MySQL, MongoDB, BigQuery). The infrastructure is shared between all database ClickPipes in the service, both for initial load and CDC. Scaling settings may take a few minutes to fully propagate. For billing purposes, 2 CPU cores and 8 GB of RAM [correspond](https://clickhouse.com/docs/cloud/manage/billing/overview#clickpipes-for-postgres-cdc) to one compute unit. If your organization tier changes, database ClickPipes will be [rescaled](https://clickhouse.com/docs/cloud/manage/billing/overview#compute) appropriately. **Note:** For Kafka, Kinesis, and object storage pipes (S3, GCS, Azure Blob), see [Get ClickPipe](#tag/ClickPipes/operation/clickPipeGet). **This endpoint becomes available once at least one database ClickPipe was provisioned.** */
|
|
2113
|
+
export const updateClickPipeCdcScaling: API.OperationMethod<
|
|
2114
|
+
UpdateClickPipeCdcScalingRequest,
|
|
2115
|
+
ClickPipesCdcScaling,
|
|
2116
|
+
UpdateClickPipeCdcScalingError,
|
|
2117
|
+
ClickHouseCloudOpContext
|
|
2118
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2119
|
+
input: __S(288, __c9, 0) as any as S.Schema<UpdateClickPipeCdcScalingRequest>,
|
|
2120
|
+
output: __S(608, __c19, 0) as any as S.Schema<ClickPipesCdcScaling>,
|
|
2121
|
+
errors: [],
|
|
2122
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2123
|
+
protocol: ClickHouseCloudProtocol,
|
|
2124
|
+
retry: Retry.Retry,
|
|
2125
|
+
telemetry: TELEMETRY,
|
|
2126
|
+
span: "UpdateClickPipeCdcScaling",
|
|
2127
|
+
}));
|
|
2128
|
+
|
|
2129
|
+
export type UpdateClickPipeReversePrivateEndpointError = ClickHouseCloudOpError;
|
|
2130
|
+
/** Update reverse private endpoint Update mutable fields for an existing reverse private endpoint. customPrivateDnsMappings is a full replacement list. Use an empty array to clear mappings. */
|
|
2131
|
+
export const updateClickPipeReversePrivateEndpoint: API.OperationMethod<
|
|
2132
|
+
UpdateClickPipeReversePrivateEndpointRequest,
|
|
2133
|
+
ReversePrivateEndpoint,
|
|
2134
|
+
UpdateClickPipeReversePrivateEndpointError,
|
|
2135
|
+
ClickHouseCloudOpContext
|
|
2136
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2137
|
+
input: __S(320, __c10, 0) as any as S.Schema<UpdateClickPipeReversePrivateEndpointRequest>,
|
|
2138
|
+
output: __S(230, __c7, 6) as any as S.Schema<ReversePrivateEndpoint>,
|
|
2139
|
+
errors: [],
|
|
2140
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2141
|
+
protocol: ClickHouseCloudProtocol,
|
|
2142
|
+
retry: Retry.Retry,
|
|
2143
|
+
telemetry: TELEMETRY,
|
|
2144
|
+
span: "UpdateClickPipeReversePrivateEndpoint",
|
|
2145
|
+
}));
|
|
2146
|
+
|
|
2147
|
+
export type UpdateClickPipeScalingError = ClickHouseCloudOpError;
|
|
2148
|
+
/** Update ClickPipe scaling Change scaling settings for the specified ClickPipe. This endpoint supports Kafka, Kinesis, and object storage pipes (S3, GCS, Azure Blob). **Note:** For database ClickPipes (PostgreSQL, MySQL, MongoDB, BigQuery), use the [Update CDC ClickPipes scaling](#tag/ClickPipes/operation/clickPipeCdcScalingUpdate) endpoint instead. */
|
|
2149
|
+
export const updateClickPipeScaling: API.OperationMethod<
|
|
2150
|
+
UpdateClickPipeScalingRequest,
|
|
2151
|
+
ClickPipe,
|
|
2152
|
+
UpdateClickPipeScalingError,
|
|
2153
|
+
ClickHouseCloudOpContext
|
|
2154
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2155
|
+
input: __S(352, __c11, 0) as any as S.Schema<UpdateClickPipeScalingRequest>,
|
|
2156
|
+
output: __S(167, __c5, 7) as any as S.Schema<ClickPipe>,
|
|
2157
|
+
errors: [],
|
|
2158
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2159
|
+
protocol: ClickHouseCloudProtocol,
|
|
2160
|
+
retry: Retry.Retry,
|
|
2161
|
+
telemetry: TELEMETRY,
|
|
2162
|
+
span: "UpdateClickPipeScaling",
|
|
2163
|
+
}));
|
|
2164
|
+
|
|
2165
|
+
export type UpdateClickPipeSettingsError = ClickHouseCloudOpError;
|
|
2166
|
+
/** Update ClickPipe settings Update the advanced settings for the specified ClickPipe. Send key-value pairs where values can be strings, numbers, or booleans. Omitted keys keep their current value. `null` is not accepted; to reset a setting, send its default value. */
|
|
2167
|
+
export const updateClickPipeSettings: API.OperationMethod<
|
|
2168
|
+
UpdateClickPipeSettingsRequest,
|
|
2169
|
+
ClickPipeSettings,
|
|
2170
|
+
UpdateClickPipeSettingsError,
|
|
2171
|
+
ClickHouseCloudOpContext
|
|
2172
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2173
|
+
input: __S(384, __c12, 0) as any as S.Schema<UpdateClickPipeSettingsRequest>,
|
|
2174
|
+
output: __S(96, __c3, 0) as any as S.Schema<ClickPipeSettings>,
|
|
2175
|
+
errors: [],
|
|
2176
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2177
|
+
protocol: ClickHouseCloudProtocol,
|
|
2178
|
+
retry: Retry.Retry,
|
|
2179
|
+
telemetry: TELEMETRY,
|
|
2180
|
+
span: "UpdateClickPipeSettings",
|
|
2181
|
+
}));
|
|
2182
|
+
|
|
2183
|
+
export type UpdateClickPipeStateError = ClickHouseCloudOpError;
|
|
2184
|
+
/** Update ClickPipe state Start, stop or resync ClickPipe. Stopping a ClickPipe will stop the ingestion process from any state. Starting is allowed for ClickPipes in the "Stopped" state or with a "Failed" state. Resyncing is only for Postgres and MySQL pipes and can be done from any state. */
|
|
2185
|
+
export const updateClickPipeState: API.OperationMethod<
|
|
2186
|
+
UpdateClickPipeStateRequest,
|
|
2187
|
+
ClickPipe,
|
|
2188
|
+
UpdateClickPipeStateError,
|
|
2189
|
+
ClickHouseCloudOpContext
|
|
2190
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2191
|
+
input: __S(416, __c13, 0) as any as S.Schema<UpdateClickPipeStateRequest>,
|
|
2192
|
+
output: __S(167, __c5, 7) as any as S.Schema<ClickPipe>,
|
|
2193
|
+
errors: [],
|
|
2194
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
2195
|
+
protocol: ClickHouseCloudProtocol,
|
|
2196
|
+
retry: Retry.Retry,
|
|
2197
|
+
telemetry: TELEMETRY,
|
|
2198
|
+
span: "UpdateClickPipeState",
|
|
2199
|
+
}));
|
|
2200
|
+
|
|
2201
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
2202
|
+
function __c0(j: number): any {
|
|
2203
|
+
switch (j) {
|
|
2204
|
+
case 0:
|
|
2205
|
+
return S.suspend(() =>
|
|
2206
|
+
S.Struct({
|
|
2207
|
+
username: S.String,
|
|
2208
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
2209
|
+
}),
|
|
2210
|
+
).annotate({ identifier: "ClickPipeKafkaSchemaRegistryCredentials" });
|
|
2211
|
+
case 1:
|
|
2212
|
+
return S.suspend(() =>
|
|
2213
|
+
S.Struct({
|
|
2214
|
+
clientId: S.String,
|
|
2215
|
+
clientSecret: S.String.pipe(T.SensitiveValue({})),
|
|
2216
|
+
}),
|
|
2217
|
+
).annotate({ identifier: "ClickPipeKafkaSchemaRegistryClientCredentials" });
|
|
2218
|
+
case 2:
|
|
2219
|
+
return S.Union([__S(0, __c0, 0), __S(1, __c0, 1)]);
|
|
2220
|
+
case 3:
|
|
2221
|
+
return S.suspend(() =>
|
|
2222
|
+
S.Struct({
|
|
2223
|
+
type: S.optional(S.String),
|
|
2224
|
+
url: S.String,
|
|
2225
|
+
authentication: S.String,
|
|
2226
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
2227
|
+
tokenUrl: S.optional(S.NullOr(S.String)),
|
|
2228
|
+
scope: S.optional(S.NullOr(S.String)),
|
|
2229
|
+
audience: S.optional(S.NullOr(S.String)),
|
|
2230
|
+
credentials: __S(2, __c0, 2),
|
|
2231
|
+
}),
|
|
2232
|
+
).annotate({ identifier: "ClickPipeMutateKafkaConfluentSchemaRegistry" });
|
|
2233
|
+
case 4:
|
|
2234
|
+
return S.Union([__S(3, __c0, 3), __S(129, __c4, 1)]);
|
|
2235
|
+
case 5:
|
|
2236
|
+
return S.suspend(() =>
|
|
2237
|
+
S.Struct({
|
|
2238
|
+
type: S.String,
|
|
2239
|
+
format: S.String,
|
|
2240
|
+
brokers: S.String,
|
|
2241
|
+
topics: S.String,
|
|
2242
|
+
consumerGroup: S.optional(S.NullOr(S.String)),
|
|
2243
|
+
authentication: S.String,
|
|
2244
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
2245
|
+
offset: S.optional(S.NullOr(__S(128, __c4, 0))),
|
|
2246
|
+
schemaRegistry: S.optional(S.NullOr(__S(4, __c0, 4))),
|
|
2247
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
2248
|
+
reversePrivateEndpointIds: S.optional(__S(32, __c1, 0)),
|
|
2249
|
+
exactlyOnce: S.optional(S.NullOr(S.Boolean)),
|
|
2250
|
+
tombstoneMode: S.optional(S.NullOr(S.String)),
|
|
2251
|
+
credentials: S.optional(__S(68, __c2, 4)),
|
|
2252
|
+
protobufSchema: S.optional(S.String),
|
|
2253
|
+
}),
|
|
2254
|
+
).annotate({ identifier: "ClickPipePostKafkaSource" });
|
|
2255
|
+
case 6:
|
|
2256
|
+
return S.suspend(() =>
|
|
2257
|
+
S.Struct({
|
|
2258
|
+
type: S.optional(S.String),
|
|
2259
|
+
format: S.optional(S.String),
|
|
2260
|
+
url: S.optional(S.String),
|
|
2261
|
+
delimiter: S.optional(S.NullOr(S.String)),
|
|
2262
|
+
skipFirstLines: S.optional(S.Number),
|
|
2263
|
+
compression: S.optional(S.NullOr(S.String)),
|
|
2264
|
+
isContinuous: S.optional(S.NullOr(S.Boolean)),
|
|
2265
|
+
queueUrl: S.optional(S.NullOr(S.String)),
|
|
2266
|
+
skipInitialLoad: S.optional(S.NullOr(S.Boolean)),
|
|
2267
|
+
startAfter: S.optional(S.NullOr(S.String)),
|
|
2268
|
+
authentication: S.optional(S.NullOr(S.String)),
|
|
2269
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
2270
|
+
connectionString: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
2271
|
+
path: S.optional(S.NullOr(S.String)),
|
|
2272
|
+
azureContainerName: S.optional(S.NullOr(S.String)),
|
|
2273
|
+
accessKey: S.optional(S.NullOr(__S(65, __c2, 1))),
|
|
2274
|
+
serviceAccountKey: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
2275
|
+
}),
|
|
2276
|
+
).annotate({ identifier: "ClickPipePostObjectStorageSource" });
|
|
2277
|
+
case 7:
|
|
2278
|
+
return S.suspend(() =>
|
|
2279
|
+
S.Struct({
|
|
2280
|
+
format: S.optional(S.String),
|
|
2281
|
+
streamName: S.optional(S.String),
|
|
2282
|
+
region: S.optional(S.String),
|
|
2283
|
+
useEnhancedFanOut: S.optional(S.NullOr(S.Boolean)),
|
|
2284
|
+
iteratorType: S.optional(S.String),
|
|
2285
|
+
timestamp: S.optional(S.NullOr(S.Number)),
|
|
2286
|
+
authentication: S.optional(S.String),
|
|
2287
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
2288
|
+
schemaRegistry: S.optional(S.NullOr(__S(130, __c4, 2))),
|
|
2289
|
+
accessKey: S.optional(S.NullOr(__S(65, __c2, 1))),
|
|
2290
|
+
protobufSchema: S.optional(S.String),
|
|
2291
|
+
}),
|
|
2292
|
+
).annotate({ identifier: "ClickPipePostKinesisSource" });
|
|
2293
|
+
case 8:
|
|
2294
|
+
return S.suspend(() =>
|
|
2295
|
+
S.Struct({
|
|
2296
|
+
format: S.String,
|
|
2297
|
+
projectId: S.String,
|
|
2298
|
+
topic: S.String,
|
|
2299
|
+
authentication: S.String,
|
|
2300
|
+
seekType: S.String,
|
|
2301
|
+
seekTimestamp: S.optional(S.NullOr(S.String)),
|
|
2302
|
+
filter: S.optional(S.NullOr(S.String)),
|
|
2303
|
+
enableOrdering: S.optional(S.NullOr(S.Boolean)),
|
|
2304
|
+
ackDeadline: S.optional(S.NullOr(S.Number)),
|
|
2305
|
+
serviceAccountKey: __S(69, __c2, 5),
|
|
2306
|
+
}),
|
|
2307
|
+
).annotate({ identifier: "ClickPipePostPubSubServiceAccountSource" });
|
|
2308
|
+
case 9:
|
|
2309
|
+
return S.Union([__S(8, __c0, 8), __S(131, __c4, 3)]);
|
|
2310
|
+
case 10:
|
|
2311
|
+
return S.suspend(() =>
|
|
2312
|
+
S.Struct({
|
|
2313
|
+
type: S.optional(S.NullOr(S.String)),
|
|
2314
|
+
credentials: S.optional(__S(64, __c2, 0)),
|
|
2315
|
+
host: S.optional(S.String),
|
|
2316
|
+
port: S.optional(S.Number),
|
|
2317
|
+
database: S.optional(S.String),
|
|
2318
|
+
settings: S.optional(__S(132, __c4, 4)),
|
|
2319
|
+
authentication: S.optional(S.String),
|
|
2320
|
+
iamRole: S.optional(S.String),
|
|
2321
|
+
tlsHost: S.optional(S.String),
|
|
2322
|
+
caCertificate: S.optional(S.String),
|
|
2323
|
+
disableTls: S.optional(S.Boolean),
|
|
2324
|
+
skipCertVerification: S.optional(S.Boolean),
|
|
2325
|
+
tableMappings: S.optional(__S(134, __c4, 6)),
|
|
2326
|
+
}),
|
|
2327
|
+
).annotate({ identifier: "ClickPipeMutatePostgresSource" });
|
|
2328
|
+
case 11:
|
|
2329
|
+
return S.suspend(() =>
|
|
2330
|
+
S.Struct({
|
|
2331
|
+
type: S.optional(S.NullOr(S.String)),
|
|
2332
|
+
credentials: S.optional(__S(64, __c2, 0)),
|
|
2333
|
+
host: S.String,
|
|
2334
|
+
port: S.Number,
|
|
2335
|
+
settings: __S(135, __c4, 7),
|
|
2336
|
+
authentication: S.optional(S.String),
|
|
2337
|
+
iamRole: S.optional(S.String),
|
|
2338
|
+
tlsHost: S.optional(S.String),
|
|
2339
|
+
caCertificate: S.optional(S.String),
|
|
2340
|
+
disableTls: S.optional(S.Boolean),
|
|
2341
|
+
skipCertVerification: S.optional(S.Boolean),
|
|
2342
|
+
serverId: S.optional(S.Number),
|
|
2343
|
+
tableMappings: __S(137, __c4, 9),
|
|
2344
|
+
}),
|
|
2345
|
+
).annotate({ identifier: "ClickPipeMutateMySQLSource" });
|
|
2346
|
+
case 12:
|
|
2347
|
+
return S.suspend(() =>
|
|
2348
|
+
S.Struct({
|
|
2349
|
+
snapshotStagingPath: S.String,
|
|
2350
|
+
settings: __S(138, __c4, 10),
|
|
2351
|
+
tableMappings: __S(140, __c4, 12),
|
|
2352
|
+
authentication: S.optional(S.String),
|
|
2353
|
+
projectId: S.optional(S.String),
|
|
2354
|
+
credentials: __S(69, __c2, 5),
|
|
2355
|
+
}),
|
|
2356
|
+
).annotate({ identifier: "ClickPipePostBigQueryServiceAccountSource" });
|
|
2357
|
+
case 13:
|
|
2358
|
+
return S.suspend(() =>
|
|
2359
|
+
S.Struct({
|
|
2360
|
+
snapshotStagingPath: S.String,
|
|
2361
|
+
settings: __S(138, __c4, 10),
|
|
2362
|
+
tableMappings: __S(140, __c4, 12),
|
|
2363
|
+
authentication: S.String,
|
|
2364
|
+
projectId: S.String,
|
|
2365
|
+
}),
|
|
2366
|
+
).annotate({ identifier: "ClickPipePostBigQueryWorkloadIdentitySource" });
|
|
2367
|
+
case 14:
|
|
2368
|
+
return S.Union([__S(12, __c0, 12), __S(13, __c0, 13)]);
|
|
2369
|
+
case 15:
|
|
2370
|
+
return S.suspend(() =>
|
|
2371
|
+
S.Struct({
|
|
2372
|
+
credentials: S.optional(__S(64, __c2, 0)),
|
|
2373
|
+
uri: S.String.pipe(T.SensitiveValue({})),
|
|
2374
|
+
readPreference: S.String,
|
|
2375
|
+
tlsHost: S.optional(S.String),
|
|
2376
|
+
disableTls: S.optional(S.Boolean),
|
|
2377
|
+
skipCertVerification: S.optional(S.Boolean),
|
|
2378
|
+
caCertificate: S.optional(S.String),
|
|
2379
|
+
settings: __S(141, __c4, 13),
|
|
2380
|
+
tableMappings: __S(147, __c4, 19),
|
|
2381
|
+
}),
|
|
2382
|
+
).annotate({ identifier: "ClickPipeMutateMongoDBSource" });
|
|
2383
|
+
case 16:
|
|
2384
|
+
return S.suspend(() =>
|
|
2385
|
+
S.Struct({
|
|
2386
|
+
kafka: S.optional(__S(5, __c0, 5)),
|
|
2387
|
+
objectStorage: S.optional(__S(6, __c0, 6)),
|
|
2388
|
+
kinesis: S.optional(__S(7, __c0, 7)),
|
|
2389
|
+
pubsub: S.optional(__S(9, __c0, 9)),
|
|
2390
|
+
postgres: S.optional(__S(10, __c0, 10)),
|
|
2391
|
+
mysql: S.optional(__S(11, __c0, 11)),
|
|
2392
|
+
bigquery: S.optional(__S(14, __c0, 14)),
|
|
2393
|
+
mongodb: S.optional(__S(15, __c0, 15)),
|
|
2394
|
+
validateSamples: S.optional(S.Boolean),
|
|
2395
|
+
}),
|
|
2396
|
+
).annotate({ identifier: "ClickPipePostSource" });
|
|
2397
|
+
case 17:
|
|
2398
|
+
return S.suspend(() =>
|
|
2399
|
+
S.Struct({
|
|
2400
|
+
database: S.String,
|
|
2401
|
+
table: S.optional(S.String),
|
|
2402
|
+
managedTable: S.optional(S.Boolean),
|
|
2403
|
+
tableDefinition: S.optional(__S(149, __c4, 21)),
|
|
2404
|
+
columns: S.optional(__S(151, __c4, 23)),
|
|
2405
|
+
roles: S.optional(__S(32, __c1, 0)),
|
|
2406
|
+
}),
|
|
2407
|
+
).annotate({ identifier: "ClickPipeMutateDestination" });
|
|
2408
|
+
case 18:
|
|
2409
|
+
return S.suspend(() =>
|
|
2410
|
+
S.Struct({
|
|
2411
|
+
organizationId: S.String.pipe(T.Label()),
|
|
2412
|
+
serviceId: S.String.pipe(T.Label()),
|
|
2413
|
+
name: S.String,
|
|
2414
|
+
source: __S(16, __c0, 16),
|
|
2415
|
+
destination: __S(17, __c0, 17),
|
|
2416
|
+
fieldMappings: S.optional(__S(153, __c4, 25)),
|
|
2417
|
+
scaling: S.optional(__S(154, __c4, 26)),
|
|
2418
|
+
settings: S.optional(__S(70, __c2, 6)),
|
|
2419
|
+
startPaused: S.optional(S.Boolean),
|
|
2420
|
+
}).pipe(
|
|
2421
|
+
T.Http({
|
|
2422
|
+
method: "POST",
|
|
2423
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes",
|
|
2424
|
+
code: 200,
|
|
2425
|
+
}),
|
|
2426
|
+
),
|
|
2427
|
+
).annotate({ identifier: "CreateClickPipeRequest" });
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
function __c1(j: number): any {
|
|
2431
|
+
switch (j) {
|
|
2432
|
+
case 0:
|
|
2433
|
+
return S.Array(S.String);
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
function __c2(j: number): any {
|
|
2437
|
+
switch (j) {
|
|
2438
|
+
case 0:
|
|
2439
|
+
return S.suspend(() =>
|
|
2440
|
+
S.Struct({
|
|
2441
|
+
username: S.optional(S.String),
|
|
2442
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2443
|
+
}),
|
|
2444
|
+
).annotate({ identifier: "PLAIN" });
|
|
2445
|
+
case 1:
|
|
2446
|
+
return S.suspend(() =>
|
|
2447
|
+
S.Struct({
|
|
2448
|
+
accessKeyId: S.optional(S.String),
|
|
2449
|
+
secretKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2450
|
+
}),
|
|
2451
|
+
).annotate({ identifier: "MskIamUser" });
|
|
2452
|
+
case 2:
|
|
2453
|
+
return S.suspend(() =>
|
|
2454
|
+
S.Struct({
|
|
2455
|
+
connectionString: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2456
|
+
}),
|
|
2457
|
+
).annotate({ identifier: "AzureEventHub" });
|
|
2458
|
+
case 3:
|
|
2459
|
+
return S.suspend(() =>
|
|
2460
|
+
S.Struct({
|
|
2461
|
+
certificate: S.optional(S.String),
|
|
2462
|
+
privateKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2463
|
+
}),
|
|
2464
|
+
).annotate({ identifier: "MutualTLS" });
|
|
2465
|
+
case 4:
|
|
2466
|
+
return S.Union([__S(64, __c2, 0), __S(65, __c2, 1), __S(66, __c2, 2), __S(67, __c2, 3)]);
|
|
2467
|
+
case 5:
|
|
2468
|
+
return S.suspend(() =>
|
|
2469
|
+
S.Struct({
|
|
2470
|
+
serviceAccountFile: S.String.pipe(T.SensitiveValue({})),
|
|
2471
|
+
}),
|
|
2472
|
+
).annotate({ identifier: "ServiceAccount" });
|
|
2473
|
+
case 6:
|
|
2474
|
+
return S.suspend(() =>
|
|
2475
|
+
S.Struct({
|
|
2476
|
+
streaming_max_insert_wait_ms: S.optional(S.Number),
|
|
2477
|
+
object_storage_concurrency: S.optional(S.Number),
|
|
2478
|
+
object_storage_polling_interval_ms: S.optional(S.Number),
|
|
2479
|
+
object_storage_max_insert_bytes: S.optional(S.Number),
|
|
2480
|
+
object_storage_max_file_count: S.optional(S.Number),
|
|
2481
|
+
object_storage_max_file_size: S.optional(S.Number),
|
|
2482
|
+
clickhouse_max_threads: S.optional(S.Number),
|
|
2483
|
+
clickhouse_max_insert_threads: S.optional(S.Number),
|
|
2484
|
+
clickhouse_min_insert_block_size_bytes: S.optional(S.Number),
|
|
2485
|
+
clickhouse_max_download_threads: S.optional(S.Number),
|
|
2486
|
+
clickhouse_parallel_distributed_insert_select: S.optional(S.Number),
|
|
2487
|
+
kafka_read_committed: S.optional(S.Boolean),
|
|
2488
|
+
object_storage_use_cluster_function: S.optional(S.Boolean),
|
|
2489
|
+
clickhouse_parallel_view_processing: S.optional(S.Boolean),
|
|
2490
|
+
}),
|
|
2491
|
+
).annotate({ identifier: "ClickPipeSettingsPutRequest" });
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
function __c3(j: number): any {
|
|
2495
|
+
switch (j) {
|
|
2496
|
+
case 0:
|
|
2497
|
+
return S.suspend(() =>
|
|
2498
|
+
S.Struct({
|
|
2499
|
+
streaming_max_insert_wait_ms: S.optional(S.NullOr(S.Number)),
|
|
2500
|
+
object_storage_concurrency: S.optional(S.NullOr(S.Number)),
|
|
2501
|
+
object_storage_polling_interval_ms: S.optional(S.NullOr(S.Number)),
|
|
2502
|
+
object_storage_max_insert_bytes: S.optional(S.NullOr(S.Number)),
|
|
2503
|
+
object_storage_max_file_count: S.optional(S.NullOr(S.Number)),
|
|
2504
|
+
object_storage_max_file_size: S.optional(S.Number),
|
|
2505
|
+
clickhouse_max_threads: S.optional(S.NullOr(S.Number)),
|
|
2506
|
+
clickhouse_max_insert_threads: S.optional(S.NullOr(S.Number)),
|
|
2507
|
+
clickhouse_min_insert_block_size_bytes: S.optional(S.NullOr(S.Number)),
|
|
2508
|
+
clickhouse_max_download_threads: S.optional(S.NullOr(S.Number)),
|
|
2509
|
+
clickhouse_parallel_distributed_insert_select: S.optional(S.NullOr(S.Number)),
|
|
2510
|
+
kafka_read_committed: S.optional(S.Boolean),
|
|
2511
|
+
object_storage_use_cluster_function: S.optional(S.NullOr(S.Boolean)),
|
|
2512
|
+
clickhouse_parallel_view_processing: S.optional(S.NullOr(S.Boolean)),
|
|
2513
|
+
}),
|
|
2514
|
+
).annotate({ identifier: "ClickPipeSettings" });
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
function __c4(j: number): any {
|
|
2518
|
+
switch (j) {
|
|
2519
|
+
case 0:
|
|
2520
|
+
return S.suspend(() =>
|
|
2521
|
+
S.Struct({
|
|
2522
|
+
strategy: S.optional(S.String),
|
|
2523
|
+
timestamp: S.optional(S.NullOr(S.String)),
|
|
2524
|
+
}),
|
|
2525
|
+
).annotate({ identifier: "ClickPipeKafkaOffset" });
|
|
2526
|
+
case 1:
|
|
2527
|
+
return S.suspend(() =>
|
|
2528
|
+
S.Struct({
|
|
2529
|
+
type: S.String,
|
|
2530
|
+
glueRegion: S.String,
|
|
2531
|
+
glueRegistryName: S.String,
|
|
2532
|
+
glueRoleArn: S.optional(S.String),
|
|
2533
|
+
}),
|
|
2534
|
+
).annotate({ identifier: "ClickPipeKafkaGlueSchemaRegistry" });
|
|
2535
|
+
case 2:
|
|
2536
|
+
return S.suspend(() =>
|
|
2537
|
+
S.Struct({
|
|
2538
|
+
type: S.String,
|
|
2539
|
+
glueRegion: S.String,
|
|
2540
|
+
glueRegistryName: S.String,
|
|
2541
|
+
glueRoleArn: S.optional(S.NullOr(S.String)),
|
|
2542
|
+
}),
|
|
2543
|
+
).annotate({ identifier: "ClickPipeKinesisSchemaRegistry" });
|
|
2544
|
+
case 3:
|
|
2545
|
+
return S.suspend(() =>
|
|
2546
|
+
S.Struct({
|
|
2547
|
+
format: S.String,
|
|
2548
|
+
projectId: S.String,
|
|
2549
|
+
topic: S.String,
|
|
2550
|
+
authentication: S.String,
|
|
2551
|
+
seekType: S.String,
|
|
2552
|
+
seekTimestamp: S.optional(S.NullOr(S.String)),
|
|
2553
|
+
filter: S.optional(S.NullOr(S.String)),
|
|
2554
|
+
enableOrdering: S.optional(S.NullOr(S.Boolean)),
|
|
2555
|
+
ackDeadline: S.optional(S.NullOr(S.Number)),
|
|
2556
|
+
}),
|
|
2557
|
+
).annotate({ identifier: "ClickPipePostPubSubWorkloadIdentitySource" });
|
|
2558
|
+
case 4:
|
|
2559
|
+
return S.suspend(() =>
|
|
2560
|
+
S.Struct({
|
|
2561
|
+
syncIntervalSeconds: S.optional(S.Number),
|
|
2562
|
+
pullBatchSize: S.optional(S.Number),
|
|
2563
|
+
publicationName: S.optional(S.String),
|
|
2564
|
+
replicationMode: S.optional(S.String),
|
|
2565
|
+
replicationSlotName: S.optional(S.String),
|
|
2566
|
+
allowNullableColumns: S.optional(S.Boolean),
|
|
2567
|
+
initialLoadParallelism: S.optional(S.Number),
|
|
2568
|
+
snapshotNumRowsPerPartition: S.optional(S.Number),
|
|
2569
|
+
snapshotNumberOfParallelTables: S.optional(S.Number),
|
|
2570
|
+
enableFailoverSlots: S.optional(S.Boolean),
|
|
2571
|
+
deleteOnMerge: S.optional(S.Boolean),
|
|
2572
|
+
useJsonNativeFormat: S.optional(S.Boolean),
|
|
2573
|
+
}),
|
|
2574
|
+
).annotate({ identifier: "ClickPipePostgresPipeSettings" });
|
|
2575
|
+
case 5:
|
|
2576
|
+
return S.suspend(() =>
|
|
2577
|
+
S.Struct({
|
|
2578
|
+
sourceSchemaName: S.optional(S.String),
|
|
2579
|
+
sourceTable: S.optional(S.String),
|
|
2580
|
+
targetTable: S.optional(S.String),
|
|
2581
|
+
excludedColumns: S.optional(__S(32, __c1, 0)),
|
|
2582
|
+
useCustomSortingKey: S.optional(S.Boolean),
|
|
2583
|
+
sortingKeys: S.optional(__S(32, __c1, 0)),
|
|
2584
|
+
tableEngine: S.optional(S.String),
|
|
2585
|
+
partitionKey: S.optional(S.String),
|
|
2586
|
+
partitionByExpr: S.optional(S.String),
|
|
2587
|
+
}),
|
|
2588
|
+
).annotate({ identifier: "ClickPipePostgresPipeTableMapping" });
|
|
2589
|
+
case 6:
|
|
2590
|
+
return S.Array(__S(133, __c4, 5));
|
|
2591
|
+
case 7:
|
|
2592
|
+
return S.suspend(() =>
|
|
2593
|
+
S.Struct({
|
|
2594
|
+
syncIntervalSeconds: S.optional(S.Number),
|
|
2595
|
+
pullBatchSize: S.optional(S.Number),
|
|
2596
|
+
replicationMode: S.String,
|
|
2597
|
+
replicationMechanism: S.optional(S.String),
|
|
2598
|
+
useCompression: S.optional(S.Boolean),
|
|
2599
|
+
allowNullableColumns: S.optional(S.Boolean),
|
|
2600
|
+
initialLoadParallelism: S.optional(S.Number),
|
|
2601
|
+
snapshotNumRowsPerPartition: S.optional(S.Number),
|
|
2602
|
+
snapshotNumberOfParallelTables: S.optional(S.Number),
|
|
2603
|
+
deleteOnMerge: S.optional(S.Boolean),
|
|
2604
|
+
useJsonNativeFormat: S.optional(S.Boolean),
|
|
2605
|
+
}),
|
|
2606
|
+
).annotate({ identifier: "ClickPipeMySQLPipeSettings" });
|
|
2607
|
+
case 8:
|
|
2608
|
+
return S.suspend(() =>
|
|
2609
|
+
S.Struct({
|
|
2610
|
+
sourceSchemaName: S.String,
|
|
2611
|
+
sourceTable: S.String,
|
|
2612
|
+
targetTable: S.String,
|
|
2613
|
+
excludedColumns: S.optional(__S(32, __c1, 0)),
|
|
2614
|
+
useCustomSortingKey: S.optional(S.Boolean),
|
|
2615
|
+
sortingKeys: S.optional(__S(32, __c1, 0)),
|
|
2616
|
+
tableEngine: S.optional(S.String),
|
|
2617
|
+
partitionKey: S.optional(S.String),
|
|
2618
|
+
partitionByExpr: S.optional(S.String),
|
|
2619
|
+
}),
|
|
2620
|
+
).annotate({ identifier: "ClickPipeMySQLPipeTableMapping" });
|
|
2621
|
+
case 9:
|
|
2622
|
+
return S.Array(__S(136, __c4, 8));
|
|
2623
|
+
case 10:
|
|
2624
|
+
return S.suspend(() =>
|
|
2625
|
+
S.Struct({
|
|
2626
|
+
replicationMode: S.String,
|
|
2627
|
+
replicationMethod: S.optional(S.String),
|
|
2628
|
+
syncIntervalSeconds: S.optional(S.Number),
|
|
2629
|
+
queryCdcPullSyncParallelism: S.optional(S.Number),
|
|
2630
|
+
syncDelaySeconds: S.optional(S.Number),
|
|
2631
|
+
pullWindowSizeSeconds: S.optional(S.Number),
|
|
2632
|
+
syncCron: S.optional(S.String),
|
|
2633
|
+
allowNullableColumns: S.optional(S.Boolean),
|
|
2634
|
+
initialLoadParallelism: S.optional(S.Number),
|
|
2635
|
+
snapshotNumRowsPerPartition: S.optional(S.Number),
|
|
2636
|
+
snapshotNumberOfParallelTables: S.optional(S.Number),
|
|
2637
|
+
}),
|
|
2638
|
+
).annotate({ identifier: "ClickPipeBigQueryPipeSettings" });
|
|
2639
|
+
case 11:
|
|
2640
|
+
return S.suspend(() =>
|
|
2641
|
+
S.Struct({
|
|
2642
|
+
sourceDatasetName: S.String,
|
|
2643
|
+
sourceTable: S.String,
|
|
2644
|
+
targetTable: S.String,
|
|
2645
|
+
excludedColumns: S.optional(__S(32, __c1, 0)),
|
|
2646
|
+
useCustomSortingKey: S.optional(S.Boolean),
|
|
2647
|
+
sortingKeys: S.optional(__S(32, __c1, 0)),
|
|
2648
|
+
tableEngine: S.optional(S.String),
|
|
2649
|
+
queryCdcWatermarkColumn: S.optional(S.String),
|
|
2650
|
+
eventsFunction: S.optional(S.String),
|
|
2651
|
+
}),
|
|
2652
|
+
).annotate({ identifier: "ClickPipeBigQueryPipeTableMapping" });
|
|
2653
|
+
case 12:
|
|
2654
|
+
return S.Array(__S(139, __c4, 11));
|
|
2655
|
+
case 13:
|
|
2656
|
+
return S.suspend(() =>
|
|
2657
|
+
S.Struct({
|
|
2658
|
+
syncIntervalSeconds: S.optional(S.Number),
|
|
2659
|
+
pullBatchSize: S.optional(S.Number),
|
|
2660
|
+
replicationMode: S.String,
|
|
2661
|
+
initialLoadParallelism: S.optional(S.Number),
|
|
2662
|
+
snapshotNumRowsPerPartition: S.optional(S.Number),
|
|
2663
|
+
snapshotNumberOfParallelTables: S.optional(S.Number),
|
|
2664
|
+
deleteOnMerge: S.optional(S.Boolean),
|
|
2665
|
+
useJsonNativeFormat: S.optional(S.Boolean),
|
|
2666
|
+
}),
|
|
2667
|
+
).annotate({ identifier: "ClickPipeMongoDBPipeSettings" });
|
|
2668
|
+
case 14:
|
|
2669
|
+
return S.suspend(() =>
|
|
2670
|
+
S.Struct({
|
|
2671
|
+
name: S.String,
|
|
2672
|
+
type: S.String,
|
|
2673
|
+
}),
|
|
2674
|
+
).annotate({ identifier: "ClickPipeMongoDBPipeColumn" });
|
|
2675
|
+
case 15:
|
|
2676
|
+
return S.Array(__S(142, __c4, 14));
|
|
2677
|
+
case 16:
|
|
2678
|
+
return S.suspend(() =>
|
|
2679
|
+
S.Struct({
|
|
2680
|
+
enabled: S.Boolean,
|
|
2681
|
+
dropUnexpectedValues: S.optional(S.Boolean),
|
|
2682
|
+
columns: S.optional(__S(143, __c4, 15)),
|
|
2683
|
+
excludedColumns: S.optional(__S(32, __c1, 0)),
|
|
2684
|
+
sortingKeys: S.optional(__S(32, __c1, 0)),
|
|
2685
|
+
partitionByExpr: S.optional(S.String),
|
|
2686
|
+
}),
|
|
2687
|
+
).annotate({ identifier: "ClickPipeMongoDBStructuredIngestion" });
|
|
2688
|
+
case 17:
|
|
2689
|
+
return S.suspend(() =>
|
|
2690
|
+
S.Struct({
|
|
2691
|
+
persistDeletedDocuments: S.optional(S.Boolean),
|
|
2692
|
+
}),
|
|
2693
|
+
).annotate({ identifier: "ClickPipeMongoDBTableConfig" });
|
|
2694
|
+
case 18:
|
|
2695
|
+
return S.suspend(() =>
|
|
2696
|
+
S.Struct({
|
|
2697
|
+
sourceDatabaseName: S.String,
|
|
2698
|
+
sourceCollection: S.String,
|
|
2699
|
+
targetTable: S.String,
|
|
2700
|
+
tableEngine: S.optional(S.String),
|
|
2701
|
+
structuredIngestion: S.optional(__S(144, __c4, 16)),
|
|
2702
|
+
mongoConfig: S.optional(__S(145, __c4, 17)),
|
|
2703
|
+
}),
|
|
2704
|
+
).annotate({ identifier: "ClickPipeMongoDBPipeTableMapping" });
|
|
2705
|
+
case 19:
|
|
2706
|
+
return S.Array(__S(146, __c4, 18));
|
|
2707
|
+
case 20:
|
|
2708
|
+
return S.suspend(() =>
|
|
2709
|
+
S.Struct({
|
|
2710
|
+
type: S.optional(S.String),
|
|
2711
|
+
versionColumnId: S.optional(S.NullOr(S.String)),
|
|
2712
|
+
columnIds: S.optional(__S(32, __c1, 0)),
|
|
2713
|
+
}),
|
|
2714
|
+
).annotate({ identifier: "ClickPipeDestinationTableEngine" });
|
|
2715
|
+
case 21:
|
|
2716
|
+
return S.suspend(() =>
|
|
2717
|
+
S.Struct({
|
|
2718
|
+
engine: S.optional(__S(148, __c4, 20)),
|
|
2719
|
+
sortingKey: S.optional(__S(32, __c1, 0)),
|
|
2720
|
+
partitionBy: S.optional(S.String),
|
|
2721
|
+
primaryKey: S.optional(S.String),
|
|
2722
|
+
ttl: S.optional(S.String),
|
|
2723
|
+
}),
|
|
2724
|
+
).annotate({ identifier: "ClickPipeDestinationTableDefinition" });
|
|
2725
|
+
case 22:
|
|
2726
|
+
return S.suspend(() =>
|
|
2727
|
+
S.Struct({
|
|
2728
|
+
name: S.optional(S.String),
|
|
2729
|
+
type: S.optional(S.String),
|
|
2730
|
+
}),
|
|
2731
|
+
).annotate({ identifier: "ClickPipeDestinationColumn" });
|
|
2732
|
+
case 23:
|
|
2733
|
+
return S.Array(__S(150, __c4, 22));
|
|
2734
|
+
case 24:
|
|
2735
|
+
return S.suspend(() =>
|
|
2736
|
+
S.Struct({
|
|
2737
|
+
sourceField: S.optional(S.String),
|
|
2738
|
+
destinationField: S.optional(S.String),
|
|
2739
|
+
}),
|
|
2740
|
+
).annotate({ identifier: "ClickPipeFieldMapping" });
|
|
2741
|
+
case 25:
|
|
2742
|
+
return S.Array(__S(152, __c4, 24));
|
|
2743
|
+
case 26:
|
|
2744
|
+
return S.suspend(() =>
|
|
2745
|
+
S.Struct({
|
|
2746
|
+
replicas: S.optional(S.Number),
|
|
2747
|
+
concurrency: S.optional(S.Number),
|
|
2748
|
+
replicaCpuMillicores: S.optional(S.Number),
|
|
2749
|
+
replicaMemoryGb: S.optional(S.Number),
|
|
2750
|
+
}),
|
|
2751
|
+
).annotate({ identifier: "ClickPipeScaling" });
|
|
2752
|
+
case 27:
|
|
2753
|
+
return S.suspend(() =>
|
|
2754
|
+
S.Struct({
|
|
2755
|
+
type: S.optional(S.String),
|
|
2756
|
+
url: S.String,
|
|
2757
|
+
authentication: S.optional(S.String),
|
|
2758
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
2759
|
+
tokenUrl: S.optional(S.NullOr(S.String)),
|
|
2760
|
+
scope: S.optional(S.NullOr(S.String)),
|
|
2761
|
+
audience: S.optional(S.NullOr(S.String)),
|
|
2762
|
+
}),
|
|
2763
|
+
).annotate({ identifier: "ClickPipeKafkaConfluentSchemaRegistry" });
|
|
2764
|
+
case 28:
|
|
2765
|
+
return S.Union([__S(155, __c4, 27), __S(129, __c4, 1)]);
|
|
2766
|
+
case 29:
|
|
2767
|
+
return S.suspend(() =>
|
|
2768
|
+
S.Struct({
|
|
2769
|
+
type: S.optional(S.String),
|
|
2770
|
+
format: S.optional(S.String),
|
|
2771
|
+
brokers: S.optional(S.String),
|
|
2772
|
+
topics: S.optional(S.String),
|
|
2773
|
+
consumerGroup: S.optional(S.NullOr(S.String)),
|
|
2774
|
+
authentication: S.optional(S.String),
|
|
2775
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
2776
|
+
offset: S.optional(S.NullOr(__S(128, __c4, 0))),
|
|
2777
|
+
schemaRegistry: S.optional(S.NullOr(__S(156, __c4, 28))),
|
|
2778
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
2779
|
+
reversePrivateEndpointIds: S.optional(__S(32, __c1, 0)),
|
|
2780
|
+
exactlyOnce: S.optional(S.NullOr(S.Boolean)),
|
|
2781
|
+
tombstoneMode: S.optional(S.NullOr(S.String)),
|
|
2782
|
+
}),
|
|
2783
|
+
).annotate({ identifier: "ClickPipeKafkaSource" });
|
|
2784
|
+
case 30:
|
|
2785
|
+
return S.suspend(() =>
|
|
2786
|
+
S.Struct({
|
|
2787
|
+
type: S.optional(S.String),
|
|
2788
|
+
format: S.optional(S.String),
|
|
2789
|
+
url: S.optional(S.String),
|
|
2790
|
+
delimiter: S.optional(S.NullOr(S.String)),
|
|
2791
|
+
skipFirstLines: S.optional(S.Number),
|
|
2792
|
+
compression: S.optional(S.NullOr(S.String)),
|
|
2793
|
+
isContinuous: S.optional(S.NullOr(S.Boolean)),
|
|
2794
|
+
queueUrl: S.optional(S.NullOr(S.String)),
|
|
2795
|
+
skipInitialLoad: S.optional(S.NullOr(S.Boolean)),
|
|
2796
|
+
startAfter: S.optional(S.NullOr(S.String)),
|
|
2797
|
+
authentication: S.optional(S.NullOr(S.String)),
|
|
2798
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
2799
|
+
connectionString: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
2800
|
+
path: S.optional(S.NullOr(S.String)),
|
|
2801
|
+
azureContainerName: S.optional(S.NullOr(S.String)),
|
|
2802
|
+
}),
|
|
2803
|
+
).annotate({ identifier: "ClickPipeObjectStorageSource" });
|
|
2804
|
+
case 31:
|
|
2805
|
+
return S.suspend(() =>
|
|
2806
|
+
S.Struct({
|
|
2807
|
+
format: S.optional(S.String),
|
|
2808
|
+
streamName: S.optional(S.String),
|
|
2809
|
+
region: S.optional(S.String),
|
|
2810
|
+
useEnhancedFanOut: S.optional(S.NullOr(S.Boolean)),
|
|
2811
|
+
iteratorType: S.optional(S.String),
|
|
2812
|
+
timestamp: S.optional(S.NullOr(S.Number)),
|
|
2813
|
+
authentication: S.optional(S.String),
|
|
2814
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
2815
|
+
schemaRegistry: S.optional(S.NullOr(__S(130, __c4, 2))),
|
|
2816
|
+
}),
|
|
2817
|
+
).annotate({ identifier: "ClickPipeKinesisSource" });
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
function __c5(j: number): any {
|
|
2821
|
+
switch (j) {
|
|
2822
|
+
case 0:
|
|
2823
|
+
return S.suspend(() =>
|
|
2824
|
+
S.Struct({
|
|
2825
|
+
type: S.optional(S.NullOr(S.String)),
|
|
2826
|
+
host: S.optional(S.String),
|
|
2827
|
+
port: S.optional(S.Number),
|
|
2828
|
+
database: S.optional(S.String),
|
|
2829
|
+
authentication: S.optional(S.String),
|
|
2830
|
+
iamRole: S.optional(S.String),
|
|
2831
|
+
tlsHost: S.optional(S.String),
|
|
2832
|
+
caCertificate: S.optional(S.String),
|
|
2833
|
+
disableTls: S.optional(S.Boolean),
|
|
2834
|
+
skipCertVerification: S.optional(S.Boolean),
|
|
2835
|
+
settings: S.optional(__S(132, __c4, 4)),
|
|
2836
|
+
tableMappings: S.optional(__S(134, __c4, 6)),
|
|
2837
|
+
}),
|
|
2838
|
+
).annotate({ identifier: "ClickPipePostgresSource" });
|
|
2839
|
+
case 1:
|
|
2840
|
+
return S.suspend(() =>
|
|
2841
|
+
S.Struct({
|
|
2842
|
+
type: S.optional(S.NullOr(S.String)),
|
|
2843
|
+
host: S.String,
|
|
2844
|
+
port: S.Number,
|
|
2845
|
+
authentication: S.optional(S.String),
|
|
2846
|
+
iamRole: S.optional(S.String),
|
|
2847
|
+
tlsHost: S.optional(S.String),
|
|
2848
|
+
caCertificate: S.optional(S.String),
|
|
2849
|
+
disableTls: S.optional(S.Boolean),
|
|
2850
|
+
skipCertVerification: S.optional(S.Boolean),
|
|
2851
|
+
serverId: S.optional(S.Number),
|
|
2852
|
+
settings: __S(135, __c4, 7),
|
|
2853
|
+
tableMappings: __S(137, __c4, 9),
|
|
2854
|
+
}),
|
|
2855
|
+
).annotate({ identifier: "ClickPipeMySQLSource" });
|
|
2856
|
+
case 2:
|
|
2857
|
+
return S.suspend(() =>
|
|
2858
|
+
S.Struct({
|
|
2859
|
+
snapshotStagingPath: S.String,
|
|
2860
|
+
settings: __S(138, __c4, 10),
|
|
2861
|
+
tableMappings: __S(140, __c4, 12),
|
|
2862
|
+
authentication: S.String,
|
|
2863
|
+
projectId: S.optional(S.String),
|
|
2864
|
+
}),
|
|
2865
|
+
).annotate({ identifier: "ClickPipeBigQueryServiceAccountSource" });
|
|
2866
|
+
case 3:
|
|
2867
|
+
return S.Union([__S(162, __c5, 2), __S(162, __c5, 2)]);
|
|
2868
|
+
case 4:
|
|
2869
|
+
return S.suspend(() =>
|
|
2870
|
+
S.Struct({
|
|
2871
|
+
uri: S.String,
|
|
2872
|
+
readPreference: S.String,
|
|
2873
|
+
tlsHost: S.optional(S.String),
|
|
2874
|
+
disableTls: S.optional(S.Boolean),
|
|
2875
|
+
skipCertVerification: S.optional(S.Boolean),
|
|
2876
|
+
caCertificate: S.optional(S.String),
|
|
2877
|
+
settings: S.optional(__S(141, __c4, 13)),
|
|
2878
|
+
tableMappings: S.optional(__S(147, __c4, 19)),
|
|
2879
|
+
}),
|
|
2880
|
+
).annotate({ identifier: "ClickPipeMongoDBSource" });
|
|
2881
|
+
case 5:
|
|
2882
|
+
return S.suspend(() =>
|
|
2883
|
+
S.Struct({
|
|
2884
|
+
kafka: S.optional(S.NullOr(__S(157, __c4, 29))),
|
|
2885
|
+
objectStorage: S.optional(S.NullOr(__S(158, __c4, 30))),
|
|
2886
|
+
kinesis: S.optional(S.NullOr(__S(159, __c4, 31))),
|
|
2887
|
+
pubsub: S.optional(S.NullOr(__S(131, __c4, 3))),
|
|
2888
|
+
postgres: S.optional(S.NullOr(__S(160, __c5, 0))),
|
|
2889
|
+
mysql: S.optional(S.NullOr(__S(161, __c5, 1))),
|
|
2890
|
+
bigquery: S.optional(S.NullOr(__S(163, __c5, 3))),
|
|
2891
|
+
mongodb: S.optional(S.NullOr(__S(164, __c5, 4))),
|
|
2892
|
+
}),
|
|
2893
|
+
).annotate({ identifier: "ClickPipeSource" });
|
|
2894
|
+
case 6:
|
|
2895
|
+
return S.suspend(() =>
|
|
2896
|
+
S.Struct({
|
|
2897
|
+
database: S.optional(S.String),
|
|
2898
|
+
table: S.optional(S.String),
|
|
2899
|
+
managedTable: S.optional(S.Boolean),
|
|
2900
|
+
tableDefinition: S.optional(__S(149, __c4, 21)),
|
|
2901
|
+
columns: S.optional(__S(151, __c4, 23)),
|
|
2902
|
+
}),
|
|
2903
|
+
).annotate({ identifier: "ClickPipeDestination" });
|
|
2904
|
+
case 7:
|
|
2905
|
+
return S.suspend(() =>
|
|
2906
|
+
S.Struct({
|
|
2907
|
+
id: S.String,
|
|
2908
|
+
serviceId: S.optional(S.String),
|
|
2909
|
+
name: S.optional(S.String),
|
|
2910
|
+
state: S.optional(S.String),
|
|
2911
|
+
scaling: S.optional(__S(154, __c4, 26)),
|
|
2912
|
+
source: S.optional(__S(165, __c5, 5)),
|
|
2913
|
+
destination: S.optional(__S(166, __c5, 6)),
|
|
2914
|
+
fieldMappings: S.optional(__S(153, __c4, 25)),
|
|
2915
|
+
settings: S.optional(__S(96, __c3, 0)),
|
|
2916
|
+
createdAt: S.optional(S.String),
|
|
2917
|
+
updatedAt: S.optional(S.String),
|
|
2918
|
+
}),
|
|
2919
|
+
).annotate({ identifier: "ClickPipe" });
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
function __c6(j: number): any {
|
|
2923
|
+
switch (j) {
|
|
2924
|
+
case 0:
|
|
2925
|
+
return S.suspend(() =>
|
|
2926
|
+
S.Struct({
|
|
2927
|
+
organizationId: S.String.pipe(T.Label()),
|
|
2928
|
+
serviceId: S.String.pipe(T.Label()),
|
|
2929
|
+
description: S.String,
|
|
2930
|
+
type: S.String,
|
|
2931
|
+
vpcEndpointServiceName: S.optional(S.String),
|
|
2932
|
+
vpcResourceConfigurationId: S.optional(S.String),
|
|
2933
|
+
vpcResourceShareArn: S.optional(S.String),
|
|
2934
|
+
mskClusterArn: S.optional(S.String),
|
|
2935
|
+
mskAuthentication: S.optional(S.String),
|
|
2936
|
+
gcpServiceAttachment: S.optional(S.String),
|
|
2937
|
+
customPrivateDnsMappings: S.optional(__S(225, __c7, 1)),
|
|
2938
|
+
}).pipe(
|
|
2939
|
+
T.Http({
|
|
2940
|
+
method: "POST",
|
|
2941
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints",
|
|
2942
|
+
code: 200,
|
|
2943
|
+
}),
|
|
2944
|
+
),
|
|
2945
|
+
).annotate({ identifier: "CreateClickPipeReversePrivateEndpointRequest" });
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
function __c7(j: number): any {
|
|
2949
|
+
switch (j) {
|
|
2950
|
+
case 0:
|
|
2951
|
+
return S.suspend(() =>
|
|
2952
|
+
S.Struct({
|
|
2953
|
+
privateDnsName: S.optional(S.String),
|
|
2954
|
+
targetId: S.optional(S.String),
|
|
2955
|
+
}),
|
|
2956
|
+
).annotate({ identifier: "CustomPrivateDnsMapping" });
|
|
2957
|
+
case 1:
|
|
2958
|
+
return S.Array(__S(224, __c7, 0));
|
|
2959
|
+
case 2:
|
|
2960
|
+
return S.suspend(() =>
|
|
2961
|
+
S.Struct({
|
|
2962
|
+
privateDnsName: S.optional(S.String),
|
|
2963
|
+
internalDnsName: S.optional(S.String),
|
|
2964
|
+
}),
|
|
2965
|
+
).annotate({ identifier: "ReversePrivateEndpointPrivateDnsMapping" });
|
|
2966
|
+
case 3:
|
|
2967
|
+
return S.Array(__S(226, __c7, 2));
|
|
2968
|
+
case 4:
|
|
2969
|
+
return S.suspend(() =>
|
|
2970
|
+
S.Struct({
|
|
2971
|
+
id: S.optional(S.String),
|
|
2972
|
+
kind: S.optional(S.String),
|
|
2973
|
+
internalDnsName: S.optional(S.String),
|
|
2974
|
+
}),
|
|
2975
|
+
).annotate({ identifier: "ReversePrivateEndpointDnsTarget" });
|
|
2976
|
+
case 5:
|
|
2977
|
+
return S.Array(__S(228, __c7, 4));
|
|
2978
|
+
case 6:
|
|
2979
|
+
return S.suspend(() =>
|
|
2980
|
+
S.Struct({
|
|
2981
|
+
description: S.optional(S.String),
|
|
2982
|
+
type: S.optional(S.String),
|
|
2983
|
+
vpcEndpointServiceName: S.optional(S.NullOr(S.String)),
|
|
2984
|
+
vpcResourceConfigurationId: S.optional(S.NullOr(S.String)),
|
|
2985
|
+
vpcResourceShareArn: S.optional(S.NullOr(S.String)),
|
|
2986
|
+
mskClusterArn: S.optional(S.NullOr(S.String)),
|
|
2987
|
+
mskAuthentication: S.optional(S.NullOr(S.String)),
|
|
2988
|
+
gcpServiceAttachment: S.optional(S.NullOr(S.String)),
|
|
2989
|
+
customPrivateDnsMappings: S.optional(__S(225, __c7, 1)),
|
|
2990
|
+
id: S.optional(S.String),
|
|
2991
|
+
serviceId: S.optional(S.String),
|
|
2992
|
+
endpointId: S.optional(S.String),
|
|
2993
|
+
dnsNames: S.optional(__S(32, __c1, 0)),
|
|
2994
|
+
privateDnsNames: S.optional(__S(32, __c1, 0)),
|
|
2995
|
+
privateDnsMappings: S.optional(__S(227, __c7, 3)),
|
|
2996
|
+
dnsTargets: S.optional(__S(229, __c7, 5)),
|
|
2997
|
+
status: S.optional(S.String),
|
|
2998
|
+
}),
|
|
2999
|
+
).annotate({ identifier: "ReversePrivateEndpoint" });
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
function __c8(j: number): any {
|
|
3003
|
+
switch (j) {
|
|
3004
|
+
case 0:
|
|
3005
|
+
return S.suspend(() =>
|
|
3006
|
+
S.Struct({
|
|
3007
|
+
authentication: S.optional(S.NullOr(S.String)),
|
|
3008
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
3009
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
3010
|
+
reversePrivateEndpointIds: S.optional(__S(32, __c1, 0)),
|
|
3011
|
+
credentials: S.optional(__S(68, __c2, 4)),
|
|
3012
|
+
}),
|
|
3013
|
+
).annotate({ identifier: "ClickPipePatchKafkaSource" });
|
|
3014
|
+
case 1:
|
|
3015
|
+
return S.suspend(() =>
|
|
3016
|
+
S.Struct({
|
|
3017
|
+
skipInitialLoad: S.optional(S.NullOr(S.Boolean)),
|
|
3018
|
+
startAfter: S.optional(S.NullOr(S.String)),
|
|
3019
|
+
authentication: S.optional(S.NullOr(S.String)),
|
|
3020
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
3021
|
+
connectionString: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
3022
|
+
path: S.optional(S.NullOr(S.String)),
|
|
3023
|
+
azureContainerName: S.optional(S.NullOr(S.String)),
|
|
3024
|
+
accessKey: S.optional(S.NullOr(__S(65, __c2, 1))),
|
|
3025
|
+
serviceAccountKey: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
3026
|
+
}),
|
|
3027
|
+
).annotate({ identifier: "ClickPipePatchObjectStorageSource" });
|
|
3028
|
+
case 2:
|
|
3029
|
+
return S.suspend(() =>
|
|
3030
|
+
S.Struct({
|
|
3031
|
+
authentication: S.optional(S.NullOr(S.String)),
|
|
3032
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
3033
|
+
accessKey: S.optional(S.NullOr(__S(65, __c2, 1))),
|
|
3034
|
+
}),
|
|
3035
|
+
).annotate({ identifier: "ClickPipePatchKinesisSource" });
|
|
3036
|
+
case 3:
|
|
3037
|
+
return S.suspend(() =>
|
|
3038
|
+
S.Struct({
|
|
3039
|
+
authentication: S.NullOr(S.String),
|
|
3040
|
+
ackDeadline: S.optional(S.NullOr(S.Number)),
|
|
3041
|
+
serviceAccountKey: S.optional(S.NullOr(__S(69, __c2, 5))),
|
|
3042
|
+
}),
|
|
3043
|
+
).annotate({ identifier: "ClickPipePatchPubSubSource" });
|
|
3044
|
+
case 4:
|
|
3045
|
+
return S.suspend(() =>
|
|
3046
|
+
S.Struct({
|
|
3047
|
+
syncIntervalSeconds: S.optional(S.NullOr(S.Number)),
|
|
3048
|
+
pullBatchSize: S.optional(S.NullOr(S.Number)),
|
|
3049
|
+
}),
|
|
3050
|
+
).annotate({ identifier: "ClickPipePatchPostgresPipeSettings" });
|
|
3051
|
+
case 5:
|
|
3052
|
+
return S.suspend(() =>
|
|
3053
|
+
S.Struct({
|
|
3054
|
+
sourceSchemaName: S.optional(S.NullOr(S.String)),
|
|
3055
|
+
sourceTable: S.optional(S.NullOr(S.String)),
|
|
3056
|
+
targetTable: S.optional(S.NullOr(S.String)),
|
|
3057
|
+
tableEngine: S.optional(S.NullOr(S.String)),
|
|
3058
|
+
partitionKey: S.optional(S.NullOr(S.String)),
|
|
3059
|
+
partitionByExpr: S.optional(S.NullOr(S.String)),
|
|
3060
|
+
}),
|
|
3061
|
+
).annotate({ identifier: "ClickPipePatchPostgresPipeRemoveTableMapping" });
|
|
3062
|
+
case 6:
|
|
3063
|
+
return S.Array(__S(261, __c8, 5));
|
|
3064
|
+
case 7:
|
|
3065
|
+
return S.suspend(() =>
|
|
3066
|
+
S.Struct({
|
|
3067
|
+
credentials: S.optional(__S(64, __c2, 0)),
|
|
3068
|
+
host: S.optional(S.NullOr(S.String)),
|
|
3069
|
+
port: S.optional(S.NullOr(S.Number)),
|
|
3070
|
+
database: S.optional(S.NullOr(S.String)),
|
|
3071
|
+
tlsHost: S.optional(S.NullOr(S.String)),
|
|
3072
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
3073
|
+
disableTls: S.optional(S.NullOr(S.Boolean)),
|
|
3074
|
+
skipCertVerification: S.optional(S.NullOr(S.Boolean)),
|
|
3075
|
+
settings: S.optional(__S(260, __c8, 4)),
|
|
3076
|
+
tableMappingsToAdd: S.optional(__S(134, __c4, 6)),
|
|
3077
|
+
tableMappingsToRemove: S.optional(__S(262, __c8, 6)),
|
|
3078
|
+
}),
|
|
3079
|
+
).annotate({ identifier: "ClickPipePatchPostgresSource" });
|
|
3080
|
+
case 8:
|
|
3081
|
+
return S.suspend(() =>
|
|
3082
|
+
S.Struct({
|
|
3083
|
+
syncIntervalSeconds: S.optional(S.NullOr(S.Number)),
|
|
3084
|
+
pullBatchSize: S.optional(S.NullOr(S.Number)),
|
|
3085
|
+
useCompression: S.optional(S.NullOr(S.Boolean)),
|
|
3086
|
+
}),
|
|
3087
|
+
).annotate({ identifier: "ClickPipePatchMySQLPipeSettings" });
|
|
3088
|
+
case 9:
|
|
3089
|
+
return S.suspend(() =>
|
|
3090
|
+
S.Struct({
|
|
3091
|
+
sourceSchemaName: S.NullOr(S.String),
|
|
3092
|
+
sourceTable: S.NullOr(S.String),
|
|
3093
|
+
targetTable: S.NullOr(S.String),
|
|
3094
|
+
tableEngine: S.optional(S.NullOr(S.String)),
|
|
3095
|
+
partitionKey: S.optional(S.NullOr(S.String)),
|
|
3096
|
+
partitionByExpr: S.optional(S.NullOr(S.String)),
|
|
3097
|
+
}),
|
|
3098
|
+
).annotate({ identifier: "ClickPipePatchMySQLPipeRemoveTableMapping" });
|
|
3099
|
+
case 10:
|
|
3100
|
+
return S.Array(__S(265, __c8, 9));
|
|
3101
|
+
case 11:
|
|
3102
|
+
return S.suspend(() =>
|
|
3103
|
+
S.Struct({
|
|
3104
|
+
credentials: S.optional(__S(64, __c2, 0)),
|
|
3105
|
+
host: S.NullOr(S.String),
|
|
3106
|
+
port: S.NullOr(S.Number),
|
|
3107
|
+
authentication: S.optional(S.NullOr(S.String)),
|
|
3108
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
3109
|
+
tlsHost: S.optional(S.NullOr(S.String)),
|
|
3110
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
3111
|
+
disableTls: S.optional(S.NullOr(S.Boolean)),
|
|
3112
|
+
skipCertVerification: S.optional(S.NullOr(S.Boolean)),
|
|
3113
|
+
serverId: S.optional(S.NullOr(S.Number)),
|
|
3114
|
+
settings: S.optional(__S(264, __c8, 8)),
|
|
3115
|
+
tableMappingsToAdd: S.optional(__S(137, __c4, 9)),
|
|
3116
|
+
tableMappingsToRemove: S.optional(__S(266, __c8, 10)),
|
|
3117
|
+
}),
|
|
3118
|
+
).annotate({ identifier: "ClickPipePatchMySQLSource" });
|
|
3119
|
+
case 12:
|
|
3120
|
+
return S.suspend(() =>
|
|
3121
|
+
S.Struct({
|
|
3122
|
+
sourceDatabaseName: S.NullOr(S.String),
|
|
3123
|
+
sourceCollection: S.NullOr(S.String),
|
|
3124
|
+
targetTable: S.NullOr(S.String),
|
|
3125
|
+
tableEngine: S.optional(S.NullOr(S.String)),
|
|
3126
|
+
}),
|
|
3127
|
+
).annotate({ identifier: "ClickPipePatchMongoDBPipeRemoveTableMapping" });
|
|
3128
|
+
case 13:
|
|
3129
|
+
return S.Array(__S(268, __c8, 12));
|
|
3130
|
+
case 14:
|
|
3131
|
+
return S.suspend(() =>
|
|
3132
|
+
S.Struct({
|
|
3133
|
+
credentials: S.optional(__S(64, __c2, 0)),
|
|
3134
|
+
uri: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
3135
|
+
readPreference: S.NullOr(S.String),
|
|
3136
|
+
tlsHost: S.optional(S.NullOr(S.String)),
|
|
3137
|
+
disableTls: S.optional(S.NullOr(S.Boolean)),
|
|
3138
|
+
skipCertVerification: S.optional(S.NullOr(S.Boolean)),
|
|
3139
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
3140
|
+
settings: S.optional(__S(260, __c8, 4)),
|
|
3141
|
+
tableMappingsToAdd: S.optional(__S(147, __c4, 19)),
|
|
3142
|
+
tableMappingsToRemove: S.optional(__S(269, __c8, 13)),
|
|
3143
|
+
}),
|
|
3144
|
+
).annotate({ identifier: "ClickPipePatchMongoDBSource" });
|
|
3145
|
+
case 15:
|
|
3146
|
+
return S.suspend(() =>
|
|
3147
|
+
S.Struct({
|
|
3148
|
+
kafka: S.optional(__S(256, __c8, 0)),
|
|
3149
|
+
objectStorage: S.optional(__S(257, __c8, 1)),
|
|
3150
|
+
kinesis: S.optional(__S(258, __c8, 2)),
|
|
3151
|
+
pubsub: S.optional(__S(259, __c8, 3)),
|
|
3152
|
+
postgres: S.optional(__S(263, __c8, 7)),
|
|
3153
|
+
mysql: S.optional(__S(267, __c8, 11)),
|
|
3154
|
+
mongodb: S.optional(__S(270, __c8, 14)),
|
|
3155
|
+
validateSamples: S.optional(S.Boolean),
|
|
3156
|
+
}),
|
|
3157
|
+
).annotate({ identifier: "ClickPipePatchSource" });
|
|
3158
|
+
case 16:
|
|
3159
|
+
return S.suspend(() =>
|
|
3160
|
+
S.Struct({
|
|
3161
|
+
columns: S.optional(__S(151, __c4, 23)),
|
|
3162
|
+
}),
|
|
3163
|
+
).annotate({ identifier: "ClickPipePatchDestination" });
|
|
3164
|
+
case 17:
|
|
3165
|
+
return S.suspend(() =>
|
|
3166
|
+
S.Struct({
|
|
3167
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3168
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3169
|
+
clickPipeId: S.String.pipe(T.Label()),
|
|
3170
|
+
name: S.optional(S.String),
|
|
3171
|
+
source: S.optional(__S(271, __c8, 15)),
|
|
3172
|
+
destination: S.optional(__S(272, __c8, 16)),
|
|
3173
|
+
fieldMappings: S.optional(__S(153, __c4, 25)),
|
|
3174
|
+
settings: S.optional(__S(70, __c2, 6)),
|
|
3175
|
+
}).pipe(
|
|
3176
|
+
T.Http({
|
|
3177
|
+
method: "PATCH",
|
|
3178
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}",
|
|
3179
|
+
code: 200,
|
|
3180
|
+
}),
|
|
3181
|
+
),
|
|
3182
|
+
).annotate({ identifier: "UpdateClickPipeRequest" });
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
function __c9(j: number): any {
|
|
3186
|
+
switch (j) {
|
|
3187
|
+
case 0:
|
|
3188
|
+
return S.suspend(() =>
|
|
3189
|
+
S.Struct({
|
|
3190
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3191
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3192
|
+
replicaCpuMillicores: S.optional(S.Number),
|
|
3193
|
+
replicaMemoryGb: S.optional(S.Number),
|
|
3194
|
+
}).pipe(
|
|
3195
|
+
T.Http({
|
|
3196
|
+
method: "PATCH",
|
|
3197
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesCdcScaling",
|
|
3198
|
+
code: 200,
|
|
3199
|
+
}),
|
|
3200
|
+
),
|
|
3201
|
+
).annotate({ identifier: "UpdateClickPipeCdcScalingRequest" });
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
function __c10(j: number): any {
|
|
3205
|
+
switch (j) {
|
|
3206
|
+
case 0:
|
|
3207
|
+
return S.suspend(() =>
|
|
3208
|
+
S.Struct({
|
|
3209
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3210
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3211
|
+
reversePrivateEndpointId: S.String.pipe(T.Label()),
|
|
3212
|
+
customPrivateDnsMappings: S.optional(__S(225, __c7, 1)),
|
|
3213
|
+
}).pipe(
|
|
3214
|
+
T.Http({
|
|
3215
|
+
method: "PATCH",
|
|
3216
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints/{reversePrivateEndpointId}",
|
|
3217
|
+
code: 200,
|
|
3218
|
+
}),
|
|
3219
|
+
),
|
|
3220
|
+
).annotate({ identifier: "UpdateClickPipeReversePrivateEndpointRequest" });
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
function __c11(j: number): any {
|
|
3224
|
+
switch (j) {
|
|
3225
|
+
case 0:
|
|
3226
|
+
return S.suspend(() =>
|
|
3227
|
+
S.Struct({
|
|
3228
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3229
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3230
|
+
clickPipeId: S.String.pipe(T.Label()),
|
|
3231
|
+
replicas: S.optional(S.Number),
|
|
3232
|
+
concurrency: S.optional(S.Number),
|
|
3233
|
+
replicaCpuMillicores: S.optional(S.Number),
|
|
3234
|
+
replicaMemoryGb: S.optional(S.Number),
|
|
3235
|
+
}).pipe(
|
|
3236
|
+
T.Http({
|
|
3237
|
+
method: "PATCH",
|
|
3238
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/scaling",
|
|
3239
|
+
code: 200,
|
|
3240
|
+
}),
|
|
3241
|
+
),
|
|
3242
|
+
).annotate({ identifier: "UpdateClickPipeScalingRequest" });
|
|
3243
|
+
}
|
|
3244
|
+
}
|
|
3245
|
+
function __c12(j: number): any {
|
|
3246
|
+
switch (j) {
|
|
3247
|
+
case 0:
|
|
3248
|
+
return S.suspend(() =>
|
|
3249
|
+
S.Struct({
|
|
3250
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3251
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3252
|
+
clickPipeId: S.String.pipe(T.Label()),
|
|
3253
|
+
streaming_max_insert_wait_ms: S.optional(S.Number),
|
|
3254
|
+
object_storage_concurrency: S.optional(S.Number),
|
|
3255
|
+
object_storage_polling_interval_ms: S.optional(S.Number),
|
|
3256
|
+
object_storage_max_insert_bytes: S.optional(S.Number),
|
|
3257
|
+
object_storage_max_file_count: S.optional(S.Number),
|
|
3258
|
+
object_storage_max_file_size: S.optional(S.Number),
|
|
3259
|
+
clickhouse_max_threads: S.optional(S.Number),
|
|
3260
|
+
clickhouse_max_insert_threads: S.optional(S.Number),
|
|
3261
|
+
clickhouse_min_insert_block_size_bytes: S.optional(S.Number),
|
|
3262
|
+
clickhouse_max_download_threads: S.optional(S.Number),
|
|
3263
|
+
clickhouse_parallel_distributed_insert_select: S.optional(S.Number),
|
|
3264
|
+
kafka_read_committed: S.optional(S.Boolean),
|
|
3265
|
+
object_storage_use_cluster_function: S.optional(S.Boolean),
|
|
3266
|
+
clickhouse_parallel_view_processing: S.optional(S.Boolean),
|
|
3267
|
+
}).pipe(
|
|
3268
|
+
T.Http({
|
|
3269
|
+
method: "PUT",
|
|
3270
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/settings",
|
|
3271
|
+
code: 200,
|
|
3272
|
+
}),
|
|
3273
|
+
),
|
|
3274
|
+
).annotate({ identifier: "UpdateClickPipeSettingsRequest" });
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
function __c13(j: number): any {
|
|
3278
|
+
switch (j) {
|
|
3279
|
+
case 0:
|
|
3280
|
+
return S.suspend(() =>
|
|
3281
|
+
S.Struct({
|
|
3282
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3283
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3284
|
+
clickPipeId: S.String.pipe(T.Label()),
|
|
3285
|
+
command: S.String,
|
|
3286
|
+
}).pipe(
|
|
3287
|
+
T.Http({
|
|
3288
|
+
method: "PATCH",
|
|
3289
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/state",
|
|
3290
|
+
code: 200,
|
|
3291
|
+
}),
|
|
3292
|
+
),
|
|
3293
|
+
).annotate({ identifier: "UpdateClickPipeStateRequest" });
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
3296
|
+
function __c14(j: number): any {
|
|
3297
|
+
switch (j) {
|
|
3298
|
+
case 0:
|
|
3299
|
+
return S.suspend(() =>
|
|
3300
|
+
S.Struct({
|
|
3301
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3302
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3303
|
+
clickPipeId: S.String.pipe(T.Label()),
|
|
3304
|
+
}).pipe(
|
|
3305
|
+
T.Http({
|
|
3306
|
+
method: "DELETE",
|
|
3307
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}",
|
|
3308
|
+
code: 200,
|
|
3309
|
+
}),
|
|
3310
|
+
),
|
|
3311
|
+
).annotate({ identifier: "DeleteClickPipeRequest" });
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
function __c15(j: number): any {
|
|
3315
|
+
switch (j) {
|
|
3316
|
+
case 0:
|
|
3317
|
+
return S.suspend(() =>
|
|
3318
|
+
S.Struct({
|
|
3319
|
+
status: S.optional(S.Number),
|
|
3320
|
+
requestId: S.optional(S.String),
|
|
3321
|
+
}),
|
|
3322
|
+
).annotate({ identifier: "DeleteClickPipeResponse" });
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
function __c16(j: number): any {
|
|
3326
|
+
switch (j) {
|
|
3327
|
+
case 0:
|
|
3328
|
+
return S.suspend(() =>
|
|
3329
|
+
S.Struct({
|
|
3330
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3331
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3332
|
+
reversePrivateEndpointId: S.String.pipe(T.Label()),
|
|
3333
|
+
}).pipe(
|
|
3334
|
+
T.Http({
|
|
3335
|
+
method: "DELETE",
|
|
3336
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints/{reversePrivateEndpointId}",
|
|
3337
|
+
code: 200,
|
|
3338
|
+
}),
|
|
3339
|
+
),
|
|
3340
|
+
).annotate({ identifier: "DeleteClickPipeReversePrivateEndpointRequest" });
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
function __c17(j: number): any {
|
|
3344
|
+
switch (j) {
|
|
3345
|
+
case 0:
|
|
3346
|
+
return S.suspend(() =>
|
|
3347
|
+
S.Struct({
|
|
3348
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3349
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3350
|
+
clickPipeId: S.String.pipe(T.Label()),
|
|
3351
|
+
}).pipe(
|
|
3352
|
+
T.Http({
|
|
3353
|
+
method: "GET",
|
|
3354
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}",
|
|
3355
|
+
code: 200,
|
|
3356
|
+
}),
|
|
3357
|
+
),
|
|
3358
|
+
).annotate({ identifier: "GetClickPipeRequest" });
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
function __c18(j: number): any {
|
|
3362
|
+
switch (j) {
|
|
3363
|
+
case 0:
|
|
3364
|
+
return S.suspend(() =>
|
|
3365
|
+
S.Struct({
|
|
3366
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3367
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3368
|
+
}).pipe(
|
|
3369
|
+
T.Http({
|
|
3370
|
+
method: "GET",
|
|
3371
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesCdcScaling",
|
|
3372
|
+
code: 200,
|
|
3373
|
+
}),
|
|
3374
|
+
),
|
|
3375
|
+
).annotate({ identifier: "GetClickPipeCdcScalingRequest" });
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
function __c19(j: number): any {
|
|
3379
|
+
switch (j) {
|
|
3380
|
+
case 0:
|
|
3381
|
+
return S.suspend(() =>
|
|
3382
|
+
S.Struct({
|
|
3383
|
+
replicaCpuMillicores: S.optional(S.Number),
|
|
3384
|
+
replicaMemoryGb: S.optional(S.Number),
|
|
3385
|
+
}),
|
|
3386
|
+
).annotate({ identifier: "ClickPipesCdcScaling" });
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
function __c20(j: number): any {
|
|
3390
|
+
switch (j) {
|
|
3391
|
+
case 0:
|
|
3392
|
+
return S.suspend(() =>
|
|
3393
|
+
S.Struct({
|
|
3394
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3395
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3396
|
+
reversePrivateEndpointId: S.String.pipe(T.Label()),
|
|
3397
|
+
}).pipe(
|
|
3398
|
+
T.Http({
|
|
3399
|
+
method: "GET",
|
|
3400
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints/{reversePrivateEndpointId}",
|
|
3401
|
+
code: 200,
|
|
3402
|
+
}),
|
|
3403
|
+
),
|
|
3404
|
+
).annotate({ identifier: "GetClickPipeReversePrivateEndpointRequest" });
|
|
3405
|
+
}
|
|
3406
|
+
}
|
|
3407
|
+
function __c21(j: number): any {
|
|
3408
|
+
switch (j) {
|
|
3409
|
+
case 0:
|
|
3410
|
+
return S.suspend(() =>
|
|
3411
|
+
S.Struct({
|
|
3412
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3413
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3414
|
+
clickPipeId: S.String.pipe(T.Label()),
|
|
3415
|
+
}).pipe(
|
|
3416
|
+
T.Http({
|
|
3417
|
+
method: "GET",
|
|
3418
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/settings",
|
|
3419
|
+
code: 200,
|
|
3420
|
+
}),
|
|
3421
|
+
),
|
|
3422
|
+
).annotate({ identifier: "GetClickPipeSettingsRequest" });
|
|
3423
|
+
}
|
|
3424
|
+
}
|
|
3425
|
+
function __c22(j: number): any {
|
|
3426
|
+
switch (j) {
|
|
3427
|
+
case 0:
|
|
3428
|
+
return S.suspend(() =>
|
|
3429
|
+
S.Struct({
|
|
3430
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3431
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3432
|
+
}).pipe(
|
|
3433
|
+
T.Http({
|
|
3434
|
+
method: "GET",
|
|
3435
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints",
|
|
3436
|
+
code: 200,
|
|
3437
|
+
}),
|
|
3438
|
+
),
|
|
3439
|
+
).annotate({ identifier: "ListClickPipeReversePrivateEndpointsRequest" });
|
|
3440
|
+
case 1:
|
|
3441
|
+
return S.Array(__S(230, __c7, 6));
|
|
3442
|
+
case 2:
|
|
3443
|
+
return S.suspend(() => __S(705, __c22, 1).pipe(T.RawResponseRoot())).annotate({
|
|
3444
|
+
identifier: "ListClickPipeReversePrivateEndpointsResponse",
|
|
3445
|
+
});
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
function __c23(j: number): any {
|
|
3449
|
+
switch (j) {
|
|
3450
|
+
case 0:
|
|
3451
|
+
return S.suspend(() =>
|
|
3452
|
+
S.Struct({
|
|
3453
|
+
organizationId: S.String.pipe(T.Label()),
|
|
3454
|
+
serviceId: S.String.pipe(T.Label()),
|
|
3455
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3456
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
3457
|
+
}).pipe(
|
|
3458
|
+
T.Http({
|
|
3459
|
+
method: "GET",
|
|
3460
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes",
|
|
3461
|
+
code: 200,
|
|
3462
|
+
}),
|
|
3463
|
+
),
|
|
3464
|
+
).annotate({ identifier: "ListClickPipesRequest" });
|
|
3465
|
+
case 1:
|
|
3466
|
+
return S.Array(__S(167, __c5, 7));
|
|
3467
|
+
case 2:
|
|
3468
|
+
return S.suspend(() =>
|
|
3469
|
+
S.Struct({
|
|
3470
|
+
status: S.optional(S.Number),
|
|
3471
|
+
requestId: S.optional(S.String),
|
|
3472
|
+
result: __S(737, __c23, 1),
|
|
3473
|
+
limit: S.optional(S.Number),
|
|
3474
|
+
totalCount: S.optional(S.NullOr(S.Number)),
|
|
3475
|
+
nextCursor: S.optional(S.NullOr(S.String)),
|
|
3476
|
+
}),
|
|
3477
|
+
).annotate({ identifier: "ListClickPipesResponse" });
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
3481
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
3482
|
+
return (__s[i] ??= __L.at(f, j));
|
|
3483
|
+
}
|