@distilled.cloud/clickhouse-cloud 0.0.0 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +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,702 @@
|
|
|
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 {
|
|
8
|
+
ClickHouseCloudProtocol,
|
|
9
|
+
type ClickHouseCloudOpError,
|
|
10
|
+
type ClickHouseCloudOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
import * as T from "../traits.ts";
|
|
14
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
15
|
+
const __s: any[] = [];
|
|
16
|
+
|
|
17
|
+
export type { ClickHouseCloudOpError, ClickHouseCloudOpContext };
|
|
18
|
+
|
|
19
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
20
|
+
const TELEMETRY = {
|
|
21
|
+
system: "clickhouse-cloud-api",
|
|
22
|
+
responseHeaders: [
|
|
23
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
24
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
25
|
+
],
|
|
26
|
+
prefix: "ClickhouseCloud",
|
|
27
|
+
service: "ClickPipes",
|
|
28
|
+
labels: "clickhouse_cloud",
|
|
29
|
+
propagate: "w3c",
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
/** Type of the Kafka source. */
|
|
33
|
+
export type ClickPipePostKafkaSourceType =
|
|
34
|
+
| "kafka"
|
|
35
|
+
| "redpanda"
|
|
36
|
+
| "msk"
|
|
37
|
+
| "gcmk"
|
|
38
|
+
| "confluent"
|
|
39
|
+
| "warpstream"
|
|
40
|
+
| "azureeventhub"
|
|
41
|
+
| "dokafka";
|
|
42
|
+
/** Format of the Kafka source. */
|
|
43
|
+
export type ClickPipePostKafkaSourceFormat = "JSONEachRow" | "Avro" | "AvroConfluent" | "Protobuf";
|
|
44
|
+
/** 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 */
|
|
45
|
+
export type ClickPipePostKafkaSourceAuthentication =
|
|
46
|
+
| "PLAIN"
|
|
47
|
+
| "SCRAM-SHA-256"
|
|
48
|
+
| "SCRAM-SHA-512"
|
|
49
|
+
| "IAM_ROLE"
|
|
50
|
+
| "IAM_USER"
|
|
51
|
+
| "MUTUAL_TLS"
|
|
52
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
53
|
+
/** Offset strategy. */
|
|
54
|
+
export type ClickPipeKafkaOffsetStrategy = "from_beginning" | "from_latest" | "from_timestamp";
|
|
55
|
+
export interface ClickPipeKafkaOffset {
|
|
56
|
+
/** Offset strategy. */
|
|
57
|
+
strategy?: ClickPipeKafkaOffsetStrategy | (string & {}) | undefined;
|
|
58
|
+
/** A minute precision UTC timestamp to start from. Required for "from_timestamp" strategy. */
|
|
59
|
+
timestamp?: string | null | undefined;
|
|
60
|
+
}
|
|
61
|
+
/** Type of the schema registry. Defaults to 'confluent' (a Confluent-compatible REST registry). */
|
|
62
|
+
export type ClickPipeMutateKafkaConfluentSchemaRegistryType = "confluent";
|
|
63
|
+
export interface ClickPipeKafkaSchemaRegistryCredentials {
|
|
64
|
+
/** Username for the schema registry. */
|
|
65
|
+
username: string;
|
|
66
|
+
/** Password for the schema registry. */
|
|
67
|
+
password: string | Redacted.Redacted<string>;
|
|
68
|
+
}
|
|
69
|
+
export interface ClickPipeKafkaSchemaRegistryClientCredentials {
|
|
70
|
+
/** OAuth2 client ID for the schema registry. */
|
|
71
|
+
clientId: string;
|
|
72
|
+
/** OAuth2 client secret for the schema registry. */
|
|
73
|
+
clientSecret: string | Redacted.Redacted<string>;
|
|
74
|
+
}
|
|
75
|
+
/** Credentials for the schema registry. Use a username and password for PLAIN, or a client ID and secret for CLIENT_CREDENTIALS. */
|
|
76
|
+
export type ClickPipeMutateKafkaConfluentSchemaRegistryCredentials =
|
|
77
|
+
| ClickPipeKafkaSchemaRegistryCredentials
|
|
78
|
+
| ClickPipeKafkaSchemaRegistryClientCredentials;
|
|
79
|
+
export interface ClickPipeMutateKafkaConfluentSchemaRegistry {
|
|
80
|
+
/** Type of the schema registry. Defaults to 'confluent' (a Confluent-compatible REST registry). */
|
|
81
|
+
type?: ClickPipeMutateKafkaConfluentSchemaRegistryType | (string & {}) | undefined;
|
|
82
|
+
/** Schema URL. HTTPS required. */
|
|
83
|
+
url: string;
|
|
84
|
+
/** 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. */
|
|
85
|
+
authentication: string;
|
|
86
|
+
/** PEM encoded CA certificates to validate the schema registry's certificate. */
|
|
87
|
+
caCertificate?: string | null | undefined;
|
|
88
|
+
/** OAuth2 token endpoint. HTTPS required. Required when authentication is CLIENT_CREDENTIALS. */
|
|
89
|
+
tokenUrl?: string | null | undefined;
|
|
90
|
+
/** Space-separated OAuth2 scopes to request. Only used when authentication is CLIENT_CREDENTIALS. */
|
|
91
|
+
scope?: string | null | undefined;
|
|
92
|
+
/** OAuth2 audience to request. Only used when authentication is CLIENT_CREDENTIALS. */
|
|
93
|
+
audience?: string | null | undefined;
|
|
94
|
+
/** Credentials for the schema registry. Use a username and password for PLAIN, or a client ID and secret for CLIENT_CREDENTIALS. */
|
|
95
|
+
credentials: ClickPipeMutateKafkaConfluentSchemaRegistryCredentials;
|
|
96
|
+
}
|
|
97
|
+
/** Type of the schema registry. Use 'glue' for the AWS Glue Schema Registry, which authenticates with IAM instead of credentials. */
|
|
98
|
+
export type ClickPipeKafkaGlueSchemaRegistryType = "glue";
|
|
99
|
+
export interface ClickPipeKafkaGlueSchemaRegistry {
|
|
100
|
+
/** Type of the schema registry. Use 'glue' for the AWS Glue Schema Registry, which authenticates with IAM instead of credentials. */
|
|
101
|
+
type: ClickPipeKafkaGlueSchemaRegistryType;
|
|
102
|
+
/** AWS region of the Glue Schema Registry. */
|
|
103
|
+
glueRegion: string;
|
|
104
|
+
/** Name of the Glue Schema Registry. */
|
|
105
|
+
glueRegistryName: string;
|
|
106
|
+
/** 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 */
|
|
107
|
+
glueRoleArn?: string | undefined;
|
|
108
|
+
}
|
|
109
|
+
export type ClickPipeMutateKafkaSchemaRegistry =
|
|
110
|
+
| ClickPipeMutateKafkaConfluentSchemaRegistry
|
|
111
|
+
| ClickPipeKafkaGlueSchemaRegistry;
|
|
112
|
+
/** Reverse private endpoint UUIDs used for a secure private connection to the Kafka source. */
|
|
113
|
+
export type ClickPipePostKafkaSourceReversePrivateEndpointIdsList = Array<string>;
|
|
114
|
+
/** 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. */
|
|
115
|
+
export type ClickPipePostKafkaSourceTombstoneMode = "delete" | "soft_delete";
|
|
116
|
+
export interface PLAIN {
|
|
117
|
+
/** Database username. */
|
|
118
|
+
username?: string | undefined;
|
|
119
|
+
/** Database password. */
|
|
120
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
121
|
+
}
|
|
122
|
+
export interface MskIamUser {
|
|
123
|
+
/** IAM access key ID. */
|
|
124
|
+
accessKeyId?: string | undefined;
|
|
125
|
+
/** IAM secret key. */
|
|
126
|
+
secretKey?: string | Redacted.Redacted<string> | undefined;
|
|
127
|
+
}
|
|
128
|
+
export interface AzureEventHub {
|
|
129
|
+
/** Connection string for Azure EventHub source. */
|
|
130
|
+
connectionString?: string | Redacted.Redacted<string> | undefined;
|
|
131
|
+
}
|
|
132
|
+
export interface MutualTLS {
|
|
133
|
+
/** PEM encoded client certificate for mTLS authentication. */
|
|
134
|
+
certificate?: string | undefined;
|
|
135
|
+
/** PEM encoded client private key for mTLS authentication. */
|
|
136
|
+
privateKey?: string | Redacted.Redacted<string> | undefined;
|
|
137
|
+
}
|
|
138
|
+
/** Credentials for Kafka source. Choose one that is supported by the authentication method. */
|
|
139
|
+
export type ClickPipePostKafkaSourceCredentials = PLAIN | MskIamUser | AzureEventHub | MutualTLS;
|
|
140
|
+
export interface ClickPipePostKafkaSource {
|
|
141
|
+
/** Type of the Kafka source. */
|
|
142
|
+
type: ClickPipePostKafkaSourceType | (string & {});
|
|
143
|
+
/** Format of the Kafka source. */
|
|
144
|
+
format: ClickPipePostKafkaSourceFormat | (string & {});
|
|
145
|
+
/** Brokers of the Kafka source. */
|
|
146
|
+
brokers: string;
|
|
147
|
+
/** 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. */
|
|
148
|
+
topics: string;
|
|
149
|
+
/** Consumer group of the Kafka source. If not provided "clickpipes-<<ID>>" will be used. */
|
|
150
|
+
consumerGroup?: string | null | undefined;
|
|
151
|
+
/** 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 */
|
|
152
|
+
authentication: ClickPipePostKafkaSourceAuthentication | (string & {});
|
|
153
|
+
/** 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 */
|
|
154
|
+
iamRole?: string | null | undefined;
|
|
155
|
+
offset?: ClickPipeKafkaOffset | null | undefined;
|
|
156
|
+
schemaRegistry?: ClickPipeMutateKafkaSchemaRegistry | null | undefined;
|
|
157
|
+
/** PEM encoded CA certificates to validate the broker's certificate. */
|
|
158
|
+
caCertificate?: string | null | undefined;
|
|
159
|
+
/** Reverse private endpoint UUIDs used for a secure private connection to the Kafka source. */
|
|
160
|
+
reversePrivateEndpointIds?: ClickPipePostKafkaSourceReversePrivateEndpointIdsList | undefined;
|
|
161
|
+
/** Enable exactly-once delivery. Guarantees every Kafka record is inserted exactly once across restarts and rebalances. Can only be set at pipe creation. */
|
|
162
|
+
exactlyOnce?: boolean | null | undefined;
|
|
163
|
+
/** 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. */
|
|
164
|
+
tombstoneMode?: ClickPipePostKafkaSourceTombstoneMode | (string & {}) | null | undefined;
|
|
165
|
+
/** Credentials for Kafka source. Choose one that is supported by the authentication method. */
|
|
166
|
+
credentials?: ClickPipePostKafkaSourceCredentials | undefined;
|
|
167
|
+
/** Base64-encoded .proto source or serialized FileDescriptorSet. Supported only with Protobuf format and cannot be combined with schemaRegistry. */
|
|
168
|
+
protobufSchema?: string | undefined;
|
|
169
|
+
}
|
|
170
|
+
/** Format of the Kinesis stream. */
|
|
171
|
+
export type ClickPipePostKinesisSourceFormat =
|
|
172
|
+
| "JSONEachRow"
|
|
173
|
+
| "Avro"
|
|
174
|
+
| "AvroConfluent"
|
|
175
|
+
| "Protobuf";
|
|
176
|
+
/** Type of iterator to use when reading from the Kinesis stream. If AT_TIMESTAMP is used, the timestamp field must be provided. */
|
|
177
|
+
export type ClickPipePostKinesisSourceIteratorType = "TRIM_HORIZON" | "LATEST" | "AT_TIMESTAMP";
|
|
178
|
+
/** Authentication method to use with the Kinesis stream. */
|
|
179
|
+
export type ClickPipePostKinesisSourceAuthentication = "IAM_ROLE" | "IAM_USER";
|
|
180
|
+
/** Type of the schema registry. Kinesis ClickPipes support the AWS Glue Schema Registry, which authenticates with IAM instead of credentials. */
|
|
181
|
+
export type ClickPipeKinesisSchemaRegistryType = "glue";
|
|
182
|
+
export interface ClickPipeKinesisSchemaRegistry {
|
|
183
|
+
/** Type of the schema registry. Kinesis ClickPipes support the AWS Glue Schema Registry, which authenticates with IAM instead of credentials. */
|
|
184
|
+
type: ClickPipeKinesisSchemaRegistryType | (string & {});
|
|
185
|
+
/** AWS region of the Glue Schema Registry. */
|
|
186
|
+
glueRegion: string;
|
|
187
|
+
/** Name of the Glue Schema Registry. */
|
|
188
|
+
glueRegistryName: string;
|
|
189
|
+
/** IAM role to assume for Glue Schema Registry access. Defaults to the IAM identity of the Kinesis source. */
|
|
190
|
+
glueRoleArn?: string | null | undefined;
|
|
191
|
+
}
|
|
192
|
+
export interface ClickPipePostKinesisSource {
|
|
193
|
+
/** Format of the Kinesis stream. */
|
|
194
|
+
format?: ClickPipePostKinesisSourceFormat | (string & {}) | undefined;
|
|
195
|
+
/** Name of the Kinesis stream. */
|
|
196
|
+
streamName?: string | undefined;
|
|
197
|
+
/** AWS region of the Kinesis stream. */
|
|
198
|
+
region?: string | undefined;
|
|
199
|
+
/** Use enhanced fan-out for the Kinesis stream. */
|
|
200
|
+
useEnhancedFanOut?: boolean | null | undefined;
|
|
201
|
+
/** Type of iterator to use when reading from the Kinesis stream. If AT_TIMESTAMP is used, the timestamp field must be provided. */
|
|
202
|
+
iteratorType?: ClickPipePostKinesisSourceIteratorType | (string & {}) | undefined;
|
|
203
|
+
/** UNIX timestamp to start reading from the Kinesis stream. Required if iteratorType is AT_TIMESTAMP. */
|
|
204
|
+
timestamp?: number | null | undefined;
|
|
205
|
+
/** Authentication method to use with the Kinesis stream. */
|
|
206
|
+
authentication?: ClickPipePostKinesisSourceAuthentication | (string & {}) | undefined;
|
|
207
|
+
/** IAM role to use for authentication. Required if IAM_ROLE is used. */
|
|
208
|
+
iamRole?: string | null | undefined;
|
|
209
|
+
schemaRegistry?: ClickPipeKinesisSchemaRegistry | null | undefined;
|
|
210
|
+
accessKey?: MskIamUser | null | undefined;
|
|
211
|
+
/** Base64-encoded .proto source or serialized FileDescriptorSet. Required with Protobuf format unless a schema registry is configured, and not supported with other formats. */
|
|
212
|
+
protobufSchema?: string | undefined;
|
|
213
|
+
}
|
|
214
|
+
/** 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. */
|
|
215
|
+
export type ClickPipePostPubSubServiceAccountSourceFormat = "JSONEachRow" | "Avro" | "Protobuf";
|
|
216
|
+
/** Authenticate with a GCP service account JSON key. */
|
|
217
|
+
export type ClickPipePostPubSubServiceAccountSourceAuthentication = "SERVICE_ACCOUNT";
|
|
218
|
+
/** 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. */
|
|
219
|
+
export type ClickPipePostPubSubServiceAccountSourceSeekType = "latest" | "earliest" | "timestamp";
|
|
220
|
+
export interface ServiceAccount {
|
|
221
|
+
/** Google Cloud service account JSON key file content, base64 encoded. */
|
|
222
|
+
serviceAccountFile: string | Redacted.Redacted<string>;
|
|
223
|
+
}
|
|
224
|
+
export interface ClickPipePostPubSubServiceAccountSource {
|
|
225
|
+
/** 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. */
|
|
226
|
+
format: ClickPipePostPubSubServiceAccountSourceFormat | (string & {});
|
|
227
|
+
/** GCP project ID that owns the Pub/Sub topic. */
|
|
228
|
+
projectId: string;
|
|
229
|
+
/** Pub/Sub topic name (not the fully-qualified path). */
|
|
230
|
+
topic: string;
|
|
231
|
+
/** Authenticate with a GCP service account JSON key. */
|
|
232
|
+
authentication: ClickPipePostPubSubServiceAccountSourceAuthentication;
|
|
233
|
+
/** 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. */
|
|
234
|
+
seekType: ClickPipePostPubSubServiceAccountSourceSeekType | (string & {});
|
|
235
|
+
/** RFC 3339 / ISO 8601 timestamp to seek to. Required when seekType is "timestamp"; must be omitted otherwise. */
|
|
236
|
+
seekTimestamp?: string | null | undefined;
|
|
237
|
+
/** Optional Pub/Sub subscription filter expression (CEL). Maximum 256 characters. */
|
|
238
|
+
filter?: string | null | undefined;
|
|
239
|
+
/** Whether to enable ordered delivery of messages (requires messages to be published with ordering keys). */
|
|
240
|
+
enableOrdering?: boolean | null | undefined;
|
|
241
|
+
/** Acknowledgement deadline for messages, in seconds. Must be between 10 and 600. */
|
|
242
|
+
ackDeadline?: number | null | undefined;
|
|
243
|
+
serviceAccountKey: ServiceAccount;
|
|
244
|
+
}
|
|
245
|
+
/** 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. */
|
|
246
|
+
export type ClickPipePostPubSubWorkloadIdentitySourceFormat = "JSONEachRow" | "Avro" | "Protobuf";
|
|
247
|
+
/** 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. */
|
|
248
|
+
export type ClickPipePostPubSubWorkloadIdentitySourceAuthentication =
|
|
249
|
+
"SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
250
|
+
/** 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. */
|
|
251
|
+
export type ClickPipePostPubSubWorkloadIdentitySourceSeekType = "latest" | "earliest" | "timestamp";
|
|
252
|
+
export interface ClickPipePostPubSubWorkloadIdentitySource {
|
|
253
|
+
/** 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. */
|
|
254
|
+
format: ClickPipePostPubSubWorkloadIdentitySourceFormat | (string & {});
|
|
255
|
+
/** GCP project ID that owns the Pub/Sub topic. */
|
|
256
|
+
projectId: string;
|
|
257
|
+
/** Pub/Sub topic name (not the fully-qualified path). */
|
|
258
|
+
topic: string;
|
|
259
|
+
/** 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. */
|
|
260
|
+
authentication: ClickPipePostPubSubWorkloadIdentitySourceAuthentication;
|
|
261
|
+
/** 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. */
|
|
262
|
+
seekType: ClickPipePostPubSubWorkloadIdentitySourceSeekType | (string & {});
|
|
263
|
+
/** RFC 3339 / ISO 8601 timestamp to seek to. Required when seekType is "timestamp"; must be omitted otherwise. */
|
|
264
|
+
seekTimestamp?: string | null | undefined;
|
|
265
|
+
/** Optional Pub/Sub subscription filter expression (CEL). Maximum 256 characters. */
|
|
266
|
+
filter?: string | null | undefined;
|
|
267
|
+
/** Whether to enable ordered delivery of messages (requires messages to be published with ordering keys). */
|
|
268
|
+
enableOrdering?: boolean | null | undefined;
|
|
269
|
+
/** Acknowledgement deadline for messages, in seconds. Must be between 10 and 600. */
|
|
270
|
+
ackDeadline?: number | null | undefined;
|
|
271
|
+
}
|
|
272
|
+
export type ClickPipePostPubSubSource =
|
|
273
|
+
| ClickPipePostPubSubServiceAccountSource
|
|
274
|
+
| ClickPipePostPubSubWorkloadIdentitySource;
|
|
275
|
+
/** Type of the ObjectStorage source. */
|
|
276
|
+
export type ClickPipePostObjectStorageSourceType =
|
|
277
|
+
| "s3"
|
|
278
|
+
| "gcs"
|
|
279
|
+
| "dospaces"
|
|
280
|
+
| "azureblobstorage"
|
|
281
|
+
| "cloudflarer2"
|
|
282
|
+
| "ovhobjectstorage";
|
|
283
|
+
/** Format of the files. */
|
|
284
|
+
export type ClickPipePostObjectStorageSourceFormat =
|
|
285
|
+
| "JSONEachRow"
|
|
286
|
+
| "JSONAsObject"
|
|
287
|
+
| "CSV"
|
|
288
|
+
| "CSVWithNames"
|
|
289
|
+
| "TabSeparated"
|
|
290
|
+
| "TabSeparatedWithNames"
|
|
291
|
+
| "Parquet"
|
|
292
|
+
| "Avro";
|
|
293
|
+
/** Compression algorithm used for the files. */
|
|
294
|
+
export type ClickPipePostObjectStorageSourceCompression =
|
|
295
|
+
| "none"
|
|
296
|
+
| "gzip"
|
|
297
|
+
| "gz"
|
|
298
|
+
| "brotli"
|
|
299
|
+
| "br"
|
|
300
|
+
| "xz"
|
|
301
|
+
| "LZMA"
|
|
302
|
+
| "zstd"
|
|
303
|
+
| "auto";
|
|
304
|
+
/** 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. */
|
|
305
|
+
export type ClickPipePostObjectStorageSourceAuthentication =
|
|
306
|
+
| "IAM_ROLE"
|
|
307
|
+
| "IAM_USER"
|
|
308
|
+
| "CONNECTION_STRING"
|
|
309
|
+
| "SERVICE_ACCOUNT"
|
|
310
|
+
| "SERVICE_ACCOUNT_WORKLOAD_IDENTITY";
|
|
311
|
+
export interface ClickPipePostObjectStorageSource {
|
|
312
|
+
/** Type of the ObjectStorage source. */
|
|
313
|
+
type?: ClickPipePostObjectStorageSourceType | (string & {}) | undefined;
|
|
314
|
+
/** Format of the files. */
|
|
315
|
+
format?: ClickPipePostObjectStorageSourceFormat | (string & {}) | undefined;
|
|
316
|
+
/** 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 */
|
|
317
|
+
url?: string | undefined;
|
|
318
|
+
/** Delimiter used in the files. */
|
|
319
|
+
delimiter?: string | null | undefined;
|
|
320
|
+
/** Number of lines to skip at the start of each file. Only for TabSeparated and TabSeparatedWithNames formats. Can only be set at pipe creation. */
|
|
321
|
+
skipFirstLines?: number | undefined;
|
|
322
|
+
/** Compression algorithm used for the files. */
|
|
323
|
+
compression?: ClickPipePostObjectStorageSourceCompression | (string & {}) | null | undefined;
|
|
324
|
+
/** 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. */
|
|
325
|
+
isContinuous?: boolean | null | undefined;
|
|
326
|
+
/** 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. */
|
|
327
|
+
queueUrl?: string | null | undefined;
|
|
328
|
+
/** If set to true, skips the initial load and only ingests files delivered by queue notifications. Only applicable when queueUrl is provided. */
|
|
329
|
+
skipInitialLoad?: boolean | null | undefined;
|
|
330
|
+
/** Skip all files up to and including this object key during the initial load. Cannot be provided when skipInitialLoad is true. */
|
|
331
|
+
startAfter?: string | null | undefined;
|
|
332
|
+
/** 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. */
|
|
333
|
+
authentication?:
|
|
334
|
+
| ClickPipePostObjectStorageSourceAuthentication
|
|
335
|
+
| (string & {})
|
|
336
|
+
| null
|
|
337
|
+
| undefined;
|
|
338
|
+
/** IAM role to be used with IAM role authentication. Read more in ClickPipes documentation: https://clickhouse.com/docs/en/integrations/clickpipes/object-storage#authentication */
|
|
339
|
+
iamRole?: string | null | undefined;
|
|
340
|
+
/** Connection string for Azure Blob Storage authentication. Required when authentication is CONNECTION_STRING. */
|
|
341
|
+
connectionString?: string | Redacted.Redacted<string> | null | undefined;
|
|
342
|
+
/** 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 */
|
|
343
|
+
path?: string | null | undefined;
|
|
344
|
+
/** Container name for Azure Blob Storage. Required when type is azureblobstorage. */
|
|
345
|
+
azureContainerName?: string | null | undefined;
|
|
346
|
+
accessKey?: MskIamUser | null | undefined;
|
|
347
|
+
/** Base64-encoded GCP service account JSON key. Required when authentication is SERVICE_ACCOUNT. */
|
|
348
|
+
serviceAccountKey?: string | Redacted.Redacted<string> | null | undefined;
|
|
349
|
+
}
|
|
350
|
+
export interface ClickPipeSchemaDiscoverySource {
|
|
351
|
+
kafka?: ClickPipePostKafkaSource | undefined;
|
|
352
|
+
kinesis?: ClickPipePostKinesisSource | undefined;
|
|
353
|
+
pubsub?: ClickPipePostPubSubSource | undefined;
|
|
354
|
+
objectStorage?: ClickPipePostObjectStorageSource | undefined;
|
|
355
|
+
}
|
|
356
|
+
export interface DiscoverClickPipeSchemaRequest {
|
|
357
|
+
/** ID of the organization that owns the service. */
|
|
358
|
+
organizationId: string;
|
|
359
|
+
/** ID of the service to run schema discovery against. */
|
|
360
|
+
serviceId: string;
|
|
361
|
+
source: ClickPipeSchemaDiscoverySource;
|
|
362
|
+
}
|
|
363
|
+
export interface ClickPipeSchemaDiscoveryField {
|
|
364
|
+
/** Name of the inferred field. */
|
|
365
|
+
name?: string | undefined;
|
|
366
|
+
/** Inferred ClickHouse data type of the field. */
|
|
367
|
+
type?: string | undefined;
|
|
368
|
+
/** Whether the field is optional (nullable) in the source. */
|
|
369
|
+
optional?: boolean | null | undefined;
|
|
370
|
+
/** Whether the field is metadata added by ClickPipes (for example `_topic` or `_path`) rather than part of the source data. */
|
|
371
|
+
isVirtual?: boolean | null | undefined;
|
|
372
|
+
/** Whether this metadata field is left unselected by default when building destination columns. */
|
|
373
|
+
isVirtualDisabledDefault?: boolean | null | undefined;
|
|
374
|
+
}
|
|
375
|
+
/** Inferred schema fields with their ClickHouse data types. */
|
|
376
|
+
export type ClickPipeSchemaDiscoveryResponseFieldsList = Array<ClickPipeSchemaDiscoveryField>;
|
|
377
|
+
/** Source-specific schema discovery metadata. */
|
|
378
|
+
export type ClickPipeSchemaDiscoveryMeta = { [key: string]: string | undefined };
|
|
379
|
+
export interface ClickPipeSchemaDiscoveryResponse {
|
|
380
|
+
/** Inferred schema fields with their ClickHouse data types. */
|
|
381
|
+
fields?: ClickPipeSchemaDiscoveryResponseFieldsList | undefined;
|
|
382
|
+
meta?: ClickPipeSchemaDiscoveryMeta | null | undefined;
|
|
383
|
+
}
|
|
384
|
+
export interface GetClickPipesServiceContextRequest {
|
|
385
|
+
/** ID of the organization that owns the service. */
|
|
386
|
+
organizationId: string;
|
|
387
|
+
/** ID of the service to get ClickPipes context for. */
|
|
388
|
+
serviceId: string;
|
|
389
|
+
}
|
|
390
|
+
export interface ClickPipesGcpWorkloadIdentityContext {
|
|
391
|
+
/** Whether the ClickPipes deployment supports GCP workload identity, which is in Beta. The principal field identifies the GCP service account used for source access. */
|
|
392
|
+
supported?: boolean | undefined;
|
|
393
|
+
/** Whether the service tenant identity is ready for workload identity authentication. */
|
|
394
|
+
ready?: boolean | null | undefined;
|
|
395
|
+
/** GCP service account used by ClickPipes for workload identity authentication. Grant this service account access to customer source resources. */
|
|
396
|
+
principal?: string | null | undefined;
|
|
397
|
+
}
|
|
398
|
+
export interface ClickPipesServiceContext {
|
|
399
|
+
gcpWorkloadIdentity?: ClickPipesGcpWorkloadIdentityContext | undefined;
|
|
400
|
+
}
|
|
401
|
+
export type DiscoverClickPipeSchemaError = ClickHouseCloudOpError;
|
|
402
|
+
/** Discover ClickPipe source schema **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Infers the schema (field names and ClickHouse data types) of a ClickPipe source without creating a pipe. Supported for Kafka, Kinesis, Pub/Sub, and object storage sources. Object storage inference runs on the destination service, which must be running. */
|
|
403
|
+
export const discoverClickPipeSchema: API.OperationMethod<
|
|
404
|
+
DiscoverClickPipeSchemaRequest,
|
|
405
|
+
ClickPipeSchemaDiscoveryResponse,
|
|
406
|
+
DiscoverClickPipeSchemaError,
|
|
407
|
+
ClickHouseCloudOpContext
|
|
408
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
409
|
+
input: __S(22, __c0, 22) as any as S.Schema<DiscoverClickPipeSchemaRequest>,
|
|
410
|
+
output: __S(26, __c0, 26) as any as S.Schema<ClickPipeSchemaDiscoveryResponse>,
|
|
411
|
+
errors: [],
|
|
412
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
413
|
+
protocol: ClickHouseCloudProtocol,
|
|
414
|
+
retry: Retry.Retry,
|
|
415
|
+
telemetry: TELEMETRY,
|
|
416
|
+
span: "DiscoverClickPipeSchema",
|
|
417
|
+
}));
|
|
418
|
+
|
|
419
|
+
export type GetClickPipesServiceContextError = ClickHouseCloudOpError;
|
|
420
|
+
/** Get ClickPipes service context **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns service-level ClickPipes capabilities and Beta workload identity context, including the GCP service account to grant access to customer source resources. */
|
|
421
|
+
export const getClickPipesServiceContext: API.OperationMethod<
|
|
422
|
+
GetClickPipesServiceContextRequest,
|
|
423
|
+
ClickPipesServiceContext,
|
|
424
|
+
GetClickPipesServiceContextError,
|
|
425
|
+
ClickHouseCloudOpContext
|
|
426
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
427
|
+
input: __S(32, __c1, 0) as any as S.Schema<GetClickPipesServiceContextRequest>,
|
|
428
|
+
output: __S(34, __c1, 2) as any as S.Schema<ClickPipesServiceContext>,
|
|
429
|
+
errors: [],
|
|
430
|
+
serviceErrors: ClickHouseCloudServiceErrors,
|
|
431
|
+
protocol: ClickHouseCloudProtocol,
|
|
432
|
+
retry: Retry.Retry,
|
|
433
|
+
telemetry: TELEMETRY,
|
|
434
|
+
span: "GetClickPipesServiceContext",
|
|
435
|
+
}));
|
|
436
|
+
|
|
437
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
438
|
+
function __c0(j: number): any {
|
|
439
|
+
switch (j) {
|
|
440
|
+
case 0:
|
|
441
|
+
return S.suspend(() =>
|
|
442
|
+
S.Struct({
|
|
443
|
+
strategy: S.optional(S.String),
|
|
444
|
+
timestamp: S.optional(S.NullOr(S.String)),
|
|
445
|
+
}),
|
|
446
|
+
).annotate({ identifier: "ClickPipeKafkaOffset" });
|
|
447
|
+
case 1:
|
|
448
|
+
return S.suspend(() =>
|
|
449
|
+
S.Struct({
|
|
450
|
+
username: S.String,
|
|
451
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
452
|
+
}),
|
|
453
|
+
).annotate({ identifier: "ClickPipeKafkaSchemaRegistryCredentials" });
|
|
454
|
+
case 2:
|
|
455
|
+
return S.suspend(() =>
|
|
456
|
+
S.Struct({
|
|
457
|
+
clientId: S.String,
|
|
458
|
+
clientSecret: S.String.pipe(T.SensitiveValue({})),
|
|
459
|
+
}),
|
|
460
|
+
).annotate({ identifier: "ClickPipeKafkaSchemaRegistryClientCredentials" });
|
|
461
|
+
case 3:
|
|
462
|
+
return S.Union([__S(1, __c0, 1), __S(2, __c0, 2)]);
|
|
463
|
+
case 4:
|
|
464
|
+
return S.suspend(() =>
|
|
465
|
+
S.Struct({
|
|
466
|
+
type: S.optional(S.String),
|
|
467
|
+
url: S.String,
|
|
468
|
+
authentication: S.String,
|
|
469
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
470
|
+
tokenUrl: S.optional(S.NullOr(S.String)),
|
|
471
|
+
scope: S.optional(S.NullOr(S.String)),
|
|
472
|
+
audience: S.optional(S.NullOr(S.String)),
|
|
473
|
+
credentials: __S(3, __c0, 3),
|
|
474
|
+
}),
|
|
475
|
+
).annotate({ identifier: "ClickPipeMutateKafkaConfluentSchemaRegistry" });
|
|
476
|
+
case 5:
|
|
477
|
+
return S.suspend(() =>
|
|
478
|
+
S.Struct({
|
|
479
|
+
type: S.String,
|
|
480
|
+
glueRegion: S.String,
|
|
481
|
+
glueRegistryName: S.String,
|
|
482
|
+
glueRoleArn: S.optional(S.String),
|
|
483
|
+
}),
|
|
484
|
+
).annotate({ identifier: "ClickPipeKafkaGlueSchemaRegistry" });
|
|
485
|
+
case 6:
|
|
486
|
+
return S.Union([__S(4, __c0, 4), __S(5, __c0, 5)]);
|
|
487
|
+
case 7:
|
|
488
|
+
return S.Array(S.String);
|
|
489
|
+
case 8:
|
|
490
|
+
return S.suspend(() =>
|
|
491
|
+
S.Struct({
|
|
492
|
+
username: S.optional(S.String),
|
|
493
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
494
|
+
}),
|
|
495
|
+
).annotate({ identifier: "PLAIN" });
|
|
496
|
+
case 9:
|
|
497
|
+
return S.suspend(() =>
|
|
498
|
+
S.Struct({
|
|
499
|
+
accessKeyId: S.optional(S.String),
|
|
500
|
+
secretKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
501
|
+
}),
|
|
502
|
+
).annotate({ identifier: "MskIamUser" });
|
|
503
|
+
case 10:
|
|
504
|
+
return S.suspend(() =>
|
|
505
|
+
S.Struct({
|
|
506
|
+
connectionString: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
507
|
+
}),
|
|
508
|
+
).annotate({ identifier: "AzureEventHub" });
|
|
509
|
+
case 11:
|
|
510
|
+
return S.suspend(() =>
|
|
511
|
+
S.Struct({
|
|
512
|
+
certificate: S.optional(S.String),
|
|
513
|
+
privateKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
514
|
+
}),
|
|
515
|
+
).annotate({ identifier: "MutualTLS" });
|
|
516
|
+
case 12:
|
|
517
|
+
return S.Union([__S(8, __c0, 8), __S(9, __c0, 9), __S(10, __c0, 10), __S(11, __c0, 11)]);
|
|
518
|
+
case 13:
|
|
519
|
+
return S.suspend(() =>
|
|
520
|
+
S.Struct({
|
|
521
|
+
type: S.String,
|
|
522
|
+
format: S.String,
|
|
523
|
+
brokers: S.String,
|
|
524
|
+
topics: S.String,
|
|
525
|
+
consumerGroup: S.optional(S.NullOr(S.String)),
|
|
526
|
+
authentication: S.String,
|
|
527
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
528
|
+
offset: S.optional(S.NullOr(__S(0, __c0, 0))),
|
|
529
|
+
schemaRegistry: S.optional(S.NullOr(__S(6, __c0, 6))),
|
|
530
|
+
caCertificate: S.optional(S.NullOr(S.String)),
|
|
531
|
+
reversePrivateEndpointIds: S.optional(__S(7, __c0, 7)),
|
|
532
|
+
exactlyOnce: S.optional(S.NullOr(S.Boolean)),
|
|
533
|
+
tombstoneMode: S.optional(S.NullOr(S.String)),
|
|
534
|
+
credentials: S.optional(__S(12, __c0, 12)),
|
|
535
|
+
protobufSchema: S.optional(S.String),
|
|
536
|
+
}),
|
|
537
|
+
).annotate({ identifier: "ClickPipePostKafkaSource" });
|
|
538
|
+
case 14:
|
|
539
|
+
return S.suspend(() =>
|
|
540
|
+
S.Struct({
|
|
541
|
+
type: S.String,
|
|
542
|
+
glueRegion: S.String,
|
|
543
|
+
glueRegistryName: S.String,
|
|
544
|
+
glueRoleArn: S.optional(S.NullOr(S.String)),
|
|
545
|
+
}),
|
|
546
|
+
).annotate({ identifier: "ClickPipeKinesisSchemaRegistry" });
|
|
547
|
+
case 15:
|
|
548
|
+
return S.suspend(() =>
|
|
549
|
+
S.Struct({
|
|
550
|
+
format: S.optional(S.String),
|
|
551
|
+
streamName: S.optional(S.String),
|
|
552
|
+
region: S.optional(S.String),
|
|
553
|
+
useEnhancedFanOut: S.optional(S.NullOr(S.Boolean)),
|
|
554
|
+
iteratorType: S.optional(S.String),
|
|
555
|
+
timestamp: S.optional(S.NullOr(S.Number)),
|
|
556
|
+
authentication: S.optional(S.String),
|
|
557
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
558
|
+
schemaRegistry: S.optional(S.NullOr(__S(14, __c0, 14))),
|
|
559
|
+
accessKey: S.optional(S.NullOr(__S(9, __c0, 9))),
|
|
560
|
+
protobufSchema: S.optional(S.String),
|
|
561
|
+
}),
|
|
562
|
+
).annotate({ identifier: "ClickPipePostKinesisSource" });
|
|
563
|
+
case 16:
|
|
564
|
+
return S.suspend(() =>
|
|
565
|
+
S.Struct({
|
|
566
|
+
serviceAccountFile: S.String.pipe(T.SensitiveValue({})),
|
|
567
|
+
}),
|
|
568
|
+
).annotate({ identifier: "ServiceAccount" });
|
|
569
|
+
case 17:
|
|
570
|
+
return S.suspend(() =>
|
|
571
|
+
S.Struct({
|
|
572
|
+
format: S.String,
|
|
573
|
+
projectId: S.String,
|
|
574
|
+
topic: S.String,
|
|
575
|
+
authentication: S.String,
|
|
576
|
+
seekType: S.String,
|
|
577
|
+
seekTimestamp: S.optional(S.NullOr(S.String)),
|
|
578
|
+
filter: S.optional(S.NullOr(S.String)),
|
|
579
|
+
enableOrdering: S.optional(S.NullOr(S.Boolean)),
|
|
580
|
+
ackDeadline: S.optional(S.NullOr(S.Number)),
|
|
581
|
+
serviceAccountKey: __S(16, __c0, 16),
|
|
582
|
+
}),
|
|
583
|
+
).annotate({ identifier: "ClickPipePostPubSubServiceAccountSource" });
|
|
584
|
+
case 18:
|
|
585
|
+
return S.suspend(() =>
|
|
586
|
+
S.Struct({
|
|
587
|
+
format: S.String,
|
|
588
|
+
projectId: S.String,
|
|
589
|
+
topic: S.String,
|
|
590
|
+
authentication: S.String,
|
|
591
|
+
seekType: S.String,
|
|
592
|
+
seekTimestamp: S.optional(S.NullOr(S.String)),
|
|
593
|
+
filter: S.optional(S.NullOr(S.String)),
|
|
594
|
+
enableOrdering: S.optional(S.NullOr(S.Boolean)),
|
|
595
|
+
ackDeadline: S.optional(S.NullOr(S.Number)),
|
|
596
|
+
}),
|
|
597
|
+
).annotate({ identifier: "ClickPipePostPubSubWorkloadIdentitySource" });
|
|
598
|
+
case 19:
|
|
599
|
+
return S.Union([__S(17, __c0, 17), __S(18, __c0, 18)]);
|
|
600
|
+
case 20:
|
|
601
|
+
return S.suspend(() =>
|
|
602
|
+
S.Struct({
|
|
603
|
+
type: S.optional(S.String),
|
|
604
|
+
format: S.optional(S.String),
|
|
605
|
+
url: S.optional(S.String),
|
|
606
|
+
delimiter: S.optional(S.NullOr(S.String)),
|
|
607
|
+
skipFirstLines: S.optional(S.Number),
|
|
608
|
+
compression: S.optional(S.NullOr(S.String)),
|
|
609
|
+
isContinuous: S.optional(S.NullOr(S.Boolean)),
|
|
610
|
+
queueUrl: S.optional(S.NullOr(S.String)),
|
|
611
|
+
skipInitialLoad: S.optional(S.NullOr(S.Boolean)),
|
|
612
|
+
startAfter: S.optional(S.NullOr(S.String)),
|
|
613
|
+
authentication: S.optional(S.NullOr(S.String)),
|
|
614
|
+
iamRole: S.optional(S.NullOr(S.String)),
|
|
615
|
+
connectionString: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
616
|
+
path: S.optional(S.NullOr(S.String)),
|
|
617
|
+
azureContainerName: S.optional(S.NullOr(S.String)),
|
|
618
|
+
accessKey: S.optional(S.NullOr(__S(9, __c0, 9))),
|
|
619
|
+
serviceAccountKey: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
620
|
+
}),
|
|
621
|
+
).annotate({ identifier: "ClickPipePostObjectStorageSource" });
|
|
622
|
+
case 21:
|
|
623
|
+
return S.suspend(() =>
|
|
624
|
+
S.Struct({
|
|
625
|
+
kafka: S.optional(__S(13, __c0, 13)),
|
|
626
|
+
kinesis: S.optional(__S(15, __c0, 15)),
|
|
627
|
+
pubsub: S.optional(__S(19, __c0, 19)),
|
|
628
|
+
objectStorage: S.optional(__S(20, __c0, 20)),
|
|
629
|
+
}),
|
|
630
|
+
).annotate({ identifier: "ClickPipeSchemaDiscoverySource" });
|
|
631
|
+
case 22:
|
|
632
|
+
return S.suspend(() =>
|
|
633
|
+
S.Struct({
|
|
634
|
+
organizationId: S.String.pipe(T.Label()),
|
|
635
|
+
serviceId: S.String.pipe(T.Label()),
|
|
636
|
+
source: __S(21, __c0, 21),
|
|
637
|
+
}).pipe(
|
|
638
|
+
T.Http({
|
|
639
|
+
method: "POST",
|
|
640
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/schemaDiscovery",
|
|
641
|
+
code: 200,
|
|
642
|
+
}),
|
|
643
|
+
),
|
|
644
|
+
).annotate({ identifier: "DiscoverClickPipeSchemaRequest" });
|
|
645
|
+
case 23:
|
|
646
|
+
return S.suspend(() =>
|
|
647
|
+
S.Struct({
|
|
648
|
+
name: S.optional(S.String),
|
|
649
|
+
type: S.optional(S.String),
|
|
650
|
+
optional: S.optional(S.NullOr(S.Boolean)),
|
|
651
|
+
isVirtual: S.optional(S.NullOr(S.Boolean)),
|
|
652
|
+
isVirtualDisabledDefault: S.optional(S.NullOr(S.Boolean)),
|
|
653
|
+
}),
|
|
654
|
+
).annotate({ identifier: "ClickPipeSchemaDiscoveryField" });
|
|
655
|
+
case 24:
|
|
656
|
+
return S.Array(__S(23, __c0, 23));
|
|
657
|
+
case 25:
|
|
658
|
+
return S.Record(S.String, S.String);
|
|
659
|
+
case 26:
|
|
660
|
+
return S.suspend(() =>
|
|
661
|
+
S.Struct({
|
|
662
|
+
fields: S.optional(__S(24, __c0, 24)),
|
|
663
|
+
meta: S.optional(S.NullOr(__S(25, __c0, 25))),
|
|
664
|
+
}),
|
|
665
|
+
).annotate({ identifier: "ClickPipeSchemaDiscoveryResponse" });
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
function __c1(j: number): any {
|
|
669
|
+
switch (j) {
|
|
670
|
+
case 0:
|
|
671
|
+
return S.suspend(() =>
|
|
672
|
+
S.Struct({
|
|
673
|
+
organizationId: S.String.pipe(T.Label()),
|
|
674
|
+
serviceId: S.String.pipe(T.Label()),
|
|
675
|
+
}).pipe(
|
|
676
|
+
T.Http({
|
|
677
|
+
method: "GET",
|
|
678
|
+
uri: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/context",
|
|
679
|
+
code: 200,
|
|
680
|
+
}),
|
|
681
|
+
),
|
|
682
|
+
).annotate({ identifier: "GetClickPipesServiceContextRequest" });
|
|
683
|
+
case 1:
|
|
684
|
+
return S.suspend(() =>
|
|
685
|
+
S.Struct({
|
|
686
|
+
supported: S.optional(S.Boolean),
|
|
687
|
+
ready: S.optional(S.NullOr(S.Boolean)),
|
|
688
|
+
principal: S.optional(S.NullOr(S.String)),
|
|
689
|
+
}),
|
|
690
|
+
).annotate({ identifier: "ClickPipesGcpWorkloadIdentityContext" });
|
|
691
|
+
case 2:
|
|
692
|
+
return S.suspend(() =>
|
|
693
|
+
S.Struct({
|
|
694
|
+
gcpWorkloadIdentity: S.optional(__S(33, __c1, 1)),
|
|
695
|
+
}),
|
|
696
|
+
).annotate({ identifier: "ClickPipesServiceContext" });
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
700
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
701
|
+
return (__s[i] ??= __L.at(f, j));
|
|
702
|
+
}
|