@katerai/sdk 0.2.1 → 0.4.0
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/CHANGELOG.md +16 -0
- package/README.md +11 -15
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +7 -29
- package/client.js.map +1 -1
- package/client.mjs +7 -29
- package/client.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/healthz.d.mts +16 -0
- package/resources/healthz.d.mts.map +1 -0
- package/resources/healthz.d.ts +16 -0
- package/resources/healthz.d.ts.map +1 -0
- package/resources/healthz.js +15 -0
- package/resources/healthz.js.map +1 -0
- package/resources/healthz.mjs +11 -0
- package/resources/healthz.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/readyz.d.mts +16 -0
- package/resources/readyz.d.mts.map +1 -0
- package/resources/readyz.d.ts +16 -0
- package/resources/readyz.d.ts.map +1 -0
- package/resources/readyz.js +15 -0
- package/resources/readyz.js.map +1 -0
- package/resources/readyz.mjs +11 -0
- package/resources/readyz.mjs.map +1 -0
- package/resources/v1/connections/connections.d.mts +258 -65
- package/resources/v1/connections/connections.d.mts.map +1 -1
- package/resources/v1/connections/connections.d.ts +258 -65
- package/resources/v1/connections/connections.d.ts.map +1 -1
- package/resources/v1/connections/connections.js +33 -0
- package/resources/v1/connections/connections.js.map +1 -1
- package/resources/v1/connections/connections.mjs +34 -1
- package/resources/v1/connections/connections.mjs.map +1 -1
- package/resources/v1/connections/databases.d.mts +118 -1
- package/resources/v1/connections/databases.d.mts.map +1 -1
- package/resources/v1/connections/databases.d.ts +118 -1
- package/resources/v1/connections/databases.d.ts.map +1 -1
- package/resources/v1/connections/databases.js +35 -0
- package/resources/v1/connections/databases.js.map +1 -1
- package/resources/v1/connections/databases.mjs +35 -0
- package/resources/v1/connections/databases.mjs.map +1 -1
- package/resources/v1/connections/index.d.mts +2 -2
- package/resources/v1/connections/index.d.mts.map +1 -1
- package/resources/v1/connections/index.d.ts +2 -2
- package/resources/v1/connections/index.d.ts.map +1 -1
- package/resources/v1/connections/index.js.map +1 -1
- package/resources/v1/connections/index.mjs +1 -1
- package/resources/v1/connections/index.mjs.map +1 -1
- package/resources/v1/github/github.d.mts +50 -42
- package/resources/v1/github/github.d.mts.map +1 -1
- package/resources/v1/github/github.d.ts +50 -42
- package/resources/v1/github/github.d.ts.map +1 -1
- package/resources/v1/github/github.js +12 -16
- package/resources/v1/github/github.js.map +1 -1
- package/resources/v1/github/github.mjs +12 -16
- package/resources/v1/github/github.mjs.map +1 -1
- package/resources/v1/github/index.d.mts +3 -4
- package/resources/v1/github/index.d.mts.map +1 -1
- package/resources/v1/github/index.d.ts +3 -4
- package/resources/v1/github/index.d.ts.map +1 -1
- package/resources/v1/github/index.js +1 -3
- package/resources/v1/github/index.js.map +1 -1
- package/resources/v1/github/index.mjs +0 -1
- package/resources/v1/github/index.mjs.map +1 -1
- package/resources/v1/github/scaffold.d.mts +1 -16
- package/resources/v1/github/scaffold.d.mts.map +1 -1
- package/resources/v1/github/scaffold.d.ts +1 -16
- package/resources/v1/github/scaffold.d.ts.map +1 -1
- package/resources/v1/github/scaffold.js +0 -6
- package/resources/v1/github/scaffold.js.map +1 -1
- package/resources/v1/github/scaffold.mjs +0 -6
- package/resources/v1/github/scaffold.mjs.map +1 -1
- package/resources/v1/github/webhooks.d.mts +18 -6
- package/resources/v1/github/webhooks.d.mts.map +1 -1
- package/resources/v1/github/webhooks.d.ts +18 -6
- package/resources/v1/github/webhooks.d.ts.map +1 -1
- package/resources/v1/github/webhooks.js +15 -3
- package/resources/v1/github/webhooks.js.map +1 -1
- package/resources/v1/github/webhooks.mjs +15 -3
- package/resources/v1/github/webhooks.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -4
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +1 -3
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +0 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/me.d.mts +1 -9
- package/resources/v1/me.d.mts.map +1 -1
- package/resources/v1/me.d.ts +1 -9
- package/resources/v1/me.d.ts.map +1 -1
- package/resources/v1/me.js +0 -9
- package/resources/v1/me.js.map +1 -1
- package/resources/v1/me.mjs +0 -9
- package/resources/v1/me.mjs.map +1 -1
- package/resources/v1/v1.d.mts +6 -10
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -10
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +0 -4
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +0 -4
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +12 -37
- package/src/internal/utils/log.ts +0 -1
- package/src/resources/healthz.ts +20 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/readyz.ts +20 -0
- package/src/resources/v1/connections/connections.ts +330 -68
- package/src/resources/v1/connections/databases.ts +165 -1
- package/src/resources/v1/connections/index.ts +9 -1
- package/src/resources/v1/github/github.ts +68 -56
- package/src/resources/v1/github/index.ts +7 -6
- package/src/resources/v1/github/scaffold.ts +1 -28
- package/src/resources/v1/github/webhooks.ts +45 -5
- package/src/resources/v1/index.ts +7 -11
- package/src/resources/v1/me.ts +1 -17
- package/src/resources/v1/v1.ts +14 -25
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/api-keys.d.mts +0 -142
- package/resources/v1/api-keys.d.mts.map +0 -1
- package/resources/v1/api-keys.d.ts +0 -142
- package/resources/v1/api-keys.d.ts.map +0 -1
- package/resources/v1/api-keys.js +0 -66
- package/resources/v1/api-keys.js.map +0 -1
- package/resources/v1/api-keys.mjs +0 -62
- package/resources/v1/api-keys.mjs.map +0 -1
- package/resources/v1/github/admin.d.mts +0 -33
- package/resources/v1/github/admin.d.mts.map +0 -1
- package/resources/v1/github/admin.d.ts +0 -33
- package/resources/v1/github/admin.d.ts.map +0 -1
- package/resources/v1/github/admin.js +0 -17
- package/resources/v1/github/admin.js.map +0 -1
- package/resources/v1/github/admin.mjs +0 -13
- package/resources/v1/github/admin.mjs.map +0 -1
- package/src/resources/v1/api-keys.ts +0 -186
- package/src/resources/v1/github/admin.ts +0 -56
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as DatabasesAPI from "./databases.js";
|
|
3
|
-
import { DatabaseDeleteSchemaParams, Databases } from "./databases.js";
|
|
3
|
+
import { DatabaseDeleteSchemaParams, DatabaseUpdateParams, DatabaseUpdateResponse, DatabaseUpdateSchemaParams, DatabaseUpdateSchemaResponse, Databases } from "./databases.js";
|
|
4
4
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
5
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
6
|
export declare class Connections extends APIResource {
|
|
@@ -13,12 +13,26 @@ export declare class Connections extends APIResource {
|
|
|
13
13
|
* Get a single warehouse connection by kater_id.
|
|
14
14
|
*
|
|
15
15
|
* Returns connection from the database (source of truth) with full hierarchy.
|
|
16
|
+
* Supports content negotiation via Accept header (handled by MultiFormatRoute):
|
|
17
|
+
*
|
|
18
|
+
* - application/json (default): Returns JSON response
|
|
19
|
+
* - application/yaml: Returns YAML representation
|
|
16
20
|
*
|
|
17
21
|
* RLS: Filtered to current client (DualClientRLSDB).
|
|
18
22
|
*
|
|
19
23
|
* Raises: NotFoundError: If connection doesn't exist (404)
|
|
20
24
|
*/
|
|
21
25
|
retrieve(connectionID: string, options?: RequestOptions): APIPromise<Connection>;
|
|
26
|
+
/**
|
|
27
|
+
* Update a warehouse connection's metadata.
|
|
28
|
+
*
|
|
29
|
+
* Updates name, label, and/or description fields.
|
|
30
|
+
*
|
|
31
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
32
|
+
*
|
|
33
|
+
* Raises: ConnectionNotFoundError: If connection doesn't exist (404)
|
|
34
|
+
*/
|
|
35
|
+
update(connectionID: string, body: ConnectionUpdateParams, options?: RequestOptions): APIPromise<Connection>;
|
|
22
36
|
/**
|
|
23
37
|
* List all warehouse connections for the client.
|
|
24
38
|
*
|
|
@@ -29,6 +43,17 @@ export declare class Connections extends APIResource {
|
|
|
29
43
|
* RLS: Filtered to current client (DualClientRLSDB).
|
|
30
44
|
*/
|
|
31
45
|
list(options?: RequestOptions): APIPromise<ConnectionListResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete a warehouse connection.
|
|
48
|
+
*
|
|
49
|
+
* Soft-deletes the connection record and cascades to all associated databases and
|
|
50
|
+
* schemas, setting deleted_at and deleted_by fields.
|
|
51
|
+
*
|
|
52
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
53
|
+
*
|
|
54
|
+
* Raises: ConnectionNotFoundError: If connection doesn't exist (404)
|
|
55
|
+
*/
|
|
56
|
+
delete(connectionID: string, options?: RequestOptions): APIPromise<void>;
|
|
32
57
|
/**
|
|
33
58
|
* Get decrypted warehouse credentials for a connection.
|
|
34
59
|
*
|
|
@@ -48,12 +73,12 @@ export declare class Connections extends APIResource {
|
|
|
48
73
|
/**
|
|
49
74
|
* Response model for a single connection.
|
|
50
75
|
*
|
|
51
|
-
* All data comes from the database (source of truth).
|
|
52
|
-
* kater_id.
|
|
76
|
+
* All data comes from the database (source of truth). JSON responses use 'id'
|
|
77
|
+
* field; YAML responses transform to 'kater_id' via MultiFormatRoute.
|
|
53
78
|
*/
|
|
54
79
|
export interface Connection {
|
|
55
80
|
/**
|
|
56
|
-
* Connection ID
|
|
81
|
+
* Connection ID
|
|
57
82
|
*/
|
|
58
83
|
id: string;
|
|
59
84
|
/**
|
|
@@ -68,14 +93,6 @@ export interface Connection {
|
|
|
68
93
|
* Databases in this connection
|
|
69
94
|
*/
|
|
70
95
|
databases: Array<Connection.Database>;
|
|
71
|
-
/**
|
|
72
|
-
* Connection description
|
|
73
|
-
*/
|
|
74
|
-
description: string | null;
|
|
75
|
-
/**
|
|
76
|
-
* Human-readable label
|
|
77
|
-
*/
|
|
78
|
-
label: string | null;
|
|
79
96
|
/**
|
|
80
97
|
* Connection name
|
|
81
98
|
*/
|
|
@@ -85,33 +102,37 @@ export interface Connection {
|
|
|
85
102
|
*/
|
|
86
103
|
updated_at: string;
|
|
87
104
|
/**
|
|
88
|
-
*
|
|
105
|
+
* Warehouse-specific configuration
|
|
89
106
|
*/
|
|
90
|
-
|
|
107
|
+
warehouse_metadata: Connection.SnowflakeMetadata | Connection.PostgresMetadata | Connection.DatabricksMetadata | Connection.ClickHouseMetadata | Connection.MssqlMetadata;
|
|
91
108
|
/**
|
|
92
|
-
*
|
|
109
|
+
* Warehouse type (snowflake, postgresql, etc.)
|
|
93
110
|
*/
|
|
94
|
-
|
|
111
|
+
warehouse_type: string;
|
|
95
112
|
/**
|
|
96
|
-
*
|
|
113
|
+
* Default timezone for the connection
|
|
97
114
|
*/
|
|
98
|
-
|
|
115
|
+
database_timezone?: string | null;
|
|
99
116
|
/**
|
|
100
|
-
*
|
|
117
|
+
* Connection description
|
|
101
118
|
*/
|
|
102
|
-
|
|
119
|
+
description?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* Human-readable label
|
|
122
|
+
*/
|
|
123
|
+
label?: string | null;
|
|
103
124
|
/**
|
|
104
|
-
*
|
|
125
|
+
* Query timeout in seconds
|
|
105
126
|
*/
|
|
106
|
-
|
|
127
|
+
query_timeout?: number | null;
|
|
107
128
|
/**
|
|
108
|
-
*
|
|
129
|
+
* Timezone conversion mode (do_not_convert, convert_to_utc)
|
|
109
130
|
*/
|
|
110
|
-
|
|
131
|
+
query_timezone_conversion?: string | null;
|
|
111
132
|
/**
|
|
112
|
-
*
|
|
133
|
+
* Sync identifier for schema sync
|
|
113
134
|
*/
|
|
114
|
-
|
|
135
|
+
sync_id?: string | null;
|
|
115
136
|
}
|
|
116
137
|
export declare namespace Connection {
|
|
117
138
|
/**
|
|
@@ -122,14 +143,6 @@ export declare namespace Connection {
|
|
|
122
143
|
* Database ID
|
|
123
144
|
*/
|
|
124
145
|
id: string;
|
|
125
|
-
/**
|
|
126
|
-
* Database description
|
|
127
|
-
*/
|
|
128
|
-
description: string | null;
|
|
129
|
-
/**
|
|
130
|
-
* Human-readable label
|
|
131
|
-
*/
|
|
132
|
-
label: string | null;
|
|
133
146
|
/**
|
|
134
147
|
* Database name
|
|
135
148
|
*/
|
|
@@ -138,10 +151,18 @@ export declare namespace Connection {
|
|
|
138
151
|
* Schemas in this database
|
|
139
152
|
*/
|
|
140
153
|
schemas: Array<Database.Schema>;
|
|
154
|
+
/**
|
|
155
|
+
* Database description
|
|
156
|
+
*/
|
|
157
|
+
description?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* Human-readable label
|
|
160
|
+
*/
|
|
161
|
+
label?: string | null;
|
|
141
162
|
/**
|
|
142
163
|
* Timezone for the database
|
|
143
164
|
*/
|
|
144
|
-
timezone
|
|
165
|
+
timezone?: string | null;
|
|
145
166
|
}
|
|
146
167
|
namespace Database {
|
|
147
168
|
/**
|
|
@@ -153,19 +174,112 @@ export declare namespace Connection {
|
|
|
153
174
|
*/
|
|
154
175
|
id: string;
|
|
155
176
|
/**
|
|
156
|
-
* Schema
|
|
177
|
+
* Schema name
|
|
157
178
|
*/
|
|
158
|
-
|
|
179
|
+
name: string;
|
|
159
180
|
/**
|
|
160
|
-
*
|
|
181
|
+
* Schema description
|
|
161
182
|
*/
|
|
162
|
-
|
|
183
|
+
description?: string | null;
|
|
163
184
|
/**
|
|
164
|
-
*
|
|
185
|
+
* Human-readable label
|
|
165
186
|
*/
|
|
166
|
-
|
|
187
|
+
label?: string | null;
|
|
167
188
|
}
|
|
168
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* Snowflake-specific warehouse metadata.
|
|
192
|
+
*/
|
|
193
|
+
interface SnowflakeMetadata {
|
|
194
|
+
/**
|
|
195
|
+
* Authentication method
|
|
196
|
+
*/
|
|
197
|
+
auth_method: 'username_password' | 'key_pair';
|
|
198
|
+
/**
|
|
199
|
+
* Snowflake role
|
|
200
|
+
*/
|
|
201
|
+
role: string;
|
|
202
|
+
/**
|
|
203
|
+
* Snowflake account identifier
|
|
204
|
+
*/
|
|
205
|
+
snowflake_account_id: string;
|
|
206
|
+
/**
|
|
207
|
+
* Compute warehouse name
|
|
208
|
+
*/
|
|
209
|
+
warehouse: string;
|
|
210
|
+
/**
|
|
211
|
+
* Warehouse type discriminator
|
|
212
|
+
*/
|
|
213
|
+
warehouse_type: 'snowflake';
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* PostgreSQL-specific warehouse metadata.
|
|
217
|
+
*/
|
|
218
|
+
interface PostgresMetadata {
|
|
219
|
+
/**
|
|
220
|
+
* Database host
|
|
221
|
+
*/
|
|
222
|
+
host: string;
|
|
223
|
+
/**
|
|
224
|
+
* Database port
|
|
225
|
+
*/
|
|
226
|
+
port: number;
|
|
227
|
+
/**
|
|
228
|
+
* Warehouse type discriminator
|
|
229
|
+
*/
|
|
230
|
+
warehouse_type: 'postgresql';
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Databricks-specific warehouse metadata.
|
|
234
|
+
*/
|
|
235
|
+
interface DatabricksMetadata {
|
|
236
|
+
/**
|
|
237
|
+
* SQL warehouse HTTP path
|
|
238
|
+
*/
|
|
239
|
+
http_path: string;
|
|
240
|
+
/**
|
|
241
|
+
* Databricks server hostname
|
|
242
|
+
*/
|
|
243
|
+
server_hostname: string;
|
|
244
|
+
/**
|
|
245
|
+
* Warehouse type discriminator
|
|
246
|
+
*/
|
|
247
|
+
warehouse_type: 'databricks';
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* ClickHouse-specific warehouse metadata.
|
|
251
|
+
*/
|
|
252
|
+
interface ClickHouseMetadata {
|
|
253
|
+
/**
|
|
254
|
+
* ClickHouse host
|
|
255
|
+
*/
|
|
256
|
+
host: string;
|
|
257
|
+
/**
|
|
258
|
+
* ClickHouse port
|
|
259
|
+
*/
|
|
260
|
+
port: number;
|
|
261
|
+
/**
|
|
262
|
+
* Warehouse type discriminator
|
|
263
|
+
*/
|
|
264
|
+
warehouse_type: 'clickhouse';
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Microsoft SQL Server-specific warehouse metadata.
|
|
268
|
+
*/
|
|
269
|
+
interface MssqlMetadata {
|
|
270
|
+
/**
|
|
271
|
+
* SQL Server host
|
|
272
|
+
*/
|
|
273
|
+
host: string;
|
|
274
|
+
/**
|
|
275
|
+
* SQL Server port
|
|
276
|
+
*/
|
|
277
|
+
port: number;
|
|
278
|
+
/**
|
|
279
|
+
* Warehouse type discriminator
|
|
280
|
+
*/
|
|
281
|
+
warehouse_type: 'mssql';
|
|
282
|
+
}
|
|
169
283
|
}
|
|
170
284
|
/**
|
|
171
285
|
* Database configuration for connection creation request.
|
|
@@ -224,7 +338,7 @@ export declare namespace ConnectionRetrieveCredentialResponse {
|
|
|
224
338
|
/**
|
|
225
339
|
* Database name
|
|
226
340
|
*/
|
|
227
|
-
database: string
|
|
341
|
+
database: string;
|
|
228
342
|
/**
|
|
229
343
|
* Database host
|
|
230
344
|
*/
|
|
@@ -304,7 +418,7 @@ export declare namespace ConnectionRetrieveCredentialResponse {
|
|
|
304
418
|
/**
|
|
305
419
|
* Passphrase if key is encrypted
|
|
306
420
|
*/
|
|
307
|
-
private_key_passphrase
|
|
421
|
+
private_key_passphrase?: string | null;
|
|
308
422
|
}
|
|
309
423
|
}
|
|
310
424
|
/**
|
|
@@ -332,10 +446,6 @@ export declare namespace ConnectionRetrieveCredentialResponse {
|
|
|
332
446
|
* ClickHouse credential response.
|
|
333
447
|
*/
|
|
334
448
|
interface ClickHouseCredentialResponse {
|
|
335
|
-
/**
|
|
336
|
-
* Database name
|
|
337
|
-
*/
|
|
338
|
-
database: string | null;
|
|
339
449
|
/**
|
|
340
450
|
* ClickHouse host
|
|
341
451
|
*/
|
|
@@ -356,15 +466,15 @@ export declare namespace ConnectionRetrieveCredentialResponse {
|
|
|
356
466
|
* Warehouse type
|
|
357
467
|
*/
|
|
358
468
|
warehouse_type: 'clickhouse';
|
|
469
|
+
/**
|
|
470
|
+
* Database name
|
|
471
|
+
*/
|
|
472
|
+
database?: string | null;
|
|
359
473
|
}
|
|
360
474
|
/**
|
|
361
475
|
* Microsoft SQL Server credential response.
|
|
362
476
|
*/
|
|
363
477
|
interface MssqlCredentialResponse {
|
|
364
|
-
/**
|
|
365
|
-
* Database name
|
|
366
|
-
*/
|
|
367
|
-
database: string | null;
|
|
368
478
|
/**
|
|
369
479
|
* SQL Server host
|
|
370
480
|
*/
|
|
@@ -385,26 +495,35 @@ export declare namespace ConnectionRetrieveCredentialResponse {
|
|
|
385
495
|
* Warehouse type
|
|
386
496
|
*/
|
|
387
497
|
warehouse_type: 'mssql';
|
|
498
|
+
/**
|
|
499
|
+
* Database name
|
|
500
|
+
*/
|
|
501
|
+
database?: string | null;
|
|
388
502
|
}
|
|
389
503
|
}
|
|
390
504
|
/**
|
|
391
505
|
* Response for syncing views.
|
|
392
506
|
*
|
|
393
|
-
* Returned after successfully creating a PR with merged ViewSchema files
|
|
507
|
+
* Returned after successfully creating a PR with merged ViewSchema files, or
|
|
508
|
+
* indicating that all views are already up to date.
|
|
394
509
|
*/
|
|
395
510
|
export interface ConnectionSyncResponse {
|
|
396
511
|
/**
|
|
397
|
-
*
|
|
512
|
+
* Number of views in the PR
|
|
398
513
|
*/
|
|
399
|
-
|
|
514
|
+
views_updated: number;
|
|
400
515
|
/**
|
|
401
|
-
*
|
|
516
|
+
* Status message
|
|
402
517
|
*/
|
|
403
|
-
|
|
518
|
+
message?: string | null;
|
|
404
519
|
/**
|
|
405
|
-
*
|
|
520
|
+
* GitHub PR number
|
|
406
521
|
*/
|
|
407
|
-
|
|
522
|
+
pr_number?: number | null;
|
|
523
|
+
/**
|
|
524
|
+
* GitHub PR URL
|
|
525
|
+
*/
|
|
526
|
+
pr_url?: string | null;
|
|
408
527
|
}
|
|
409
528
|
export type ConnectionCreateParams = ConnectionCreateParams.PostgresConnectionConfig | ConnectionCreateParams.SnowflakeConnectionConfig | ConnectionCreateParams.DatabricksConnectionConfig | ConnectionCreateParams.ClickHouseConnectionConfig | ConnectionCreateParams.MssqlConnectionConfig;
|
|
410
529
|
export declare namespace ConnectionCreateParams {
|
|
@@ -418,7 +537,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
418
537
|
*/
|
|
419
538
|
host: string;
|
|
420
539
|
/**
|
|
421
|
-
* Name of the connection
|
|
540
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
422
541
|
*/
|
|
423
542
|
name: string;
|
|
424
543
|
/**
|
|
@@ -433,6 +552,10 @@ export declare namespace ConnectionCreateParams {
|
|
|
433
552
|
* Warehouse type
|
|
434
553
|
*/
|
|
435
554
|
warehouse_type: 'postgresql';
|
|
555
|
+
/**
|
|
556
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
557
|
+
*/
|
|
558
|
+
database_timezone?: string | null;
|
|
436
559
|
/**
|
|
437
560
|
* Description of the connection
|
|
438
561
|
*/
|
|
@@ -445,6 +568,14 @@ export declare namespace ConnectionCreateParams {
|
|
|
445
568
|
* Database port
|
|
446
569
|
*/
|
|
447
570
|
port?: number;
|
|
571
|
+
/**
|
|
572
|
+
* Query timeout in seconds (1-3600)
|
|
573
|
+
*/
|
|
574
|
+
query_timeout?: number | null;
|
|
575
|
+
/**
|
|
576
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
577
|
+
*/
|
|
578
|
+
query_timezone_conversion?: string | null;
|
|
448
579
|
}
|
|
449
580
|
interface SnowflakeConnectionConfig {
|
|
450
581
|
/**
|
|
@@ -460,7 +591,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
460
591
|
*/
|
|
461
592
|
databases: Array<DatabaseConfig>;
|
|
462
593
|
/**
|
|
463
|
-
* Name of the connection
|
|
594
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
464
595
|
*/
|
|
465
596
|
name: string;
|
|
466
597
|
/**
|
|
@@ -479,6 +610,10 @@ export declare namespace ConnectionCreateParams {
|
|
|
479
610
|
* Warehouse type
|
|
480
611
|
*/
|
|
481
612
|
warehouse_type: 'snowflake';
|
|
613
|
+
/**
|
|
614
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
615
|
+
*/
|
|
616
|
+
database_timezone?: string | null;
|
|
482
617
|
/**
|
|
483
618
|
* Description of the connection
|
|
484
619
|
*/
|
|
@@ -487,6 +622,14 @@ export declare namespace ConnectionCreateParams {
|
|
|
487
622
|
* Human-readable label for the connection (defaults to name if not set)
|
|
488
623
|
*/
|
|
489
624
|
label?: string | null;
|
|
625
|
+
/**
|
|
626
|
+
* Query timeout in seconds (1-3600)
|
|
627
|
+
*/
|
|
628
|
+
query_timeout?: number | null;
|
|
629
|
+
/**
|
|
630
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
631
|
+
*/
|
|
632
|
+
query_timezone_conversion?: string | null;
|
|
490
633
|
}
|
|
491
634
|
namespace SnowflakeConnectionConfig {
|
|
492
635
|
/**
|
|
@@ -534,7 +677,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
534
677
|
*/
|
|
535
678
|
http_path: string;
|
|
536
679
|
/**
|
|
537
|
-
* Name of the connection
|
|
680
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
538
681
|
*/
|
|
539
682
|
name: string;
|
|
540
683
|
/**
|
|
@@ -545,6 +688,10 @@ export declare namespace ConnectionCreateParams {
|
|
|
545
688
|
* Warehouse type
|
|
546
689
|
*/
|
|
547
690
|
warehouse_type: 'databricks';
|
|
691
|
+
/**
|
|
692
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
693
|
+
*/
|
|
694
|
+
database_timezone?: string | null;
|
|
548
695
|
/**
|
|
549
696
|
* Description of the connection
|
|
550
697
|
*/
|
|
@@ -553,6 +700,14 @@ export declare namespace ConnectionCreateParams {
|
|
|
553
700
|
* Human-readable label for the connection (defaults to name if not set)
|
|
554
701
|
*/
|
|
555
702
|
label?: string | null;
|
|
703
|
+
/**
|
|
704
|
+
* Query timeout in seconds (1-3600)
|
|
705
|
+
*/
|
|
706
|
+
query_timeout?: number | null;
|
|
707
|
+
/**
|
|
708
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
709
|
+
*/
|
|
710
|
+
query_timezone_conversion?: string | null;
|
|
556
711
|
}
|
|
557
712
|
interface ClickHouseConnectionConfig {
|
|
558
713
|
/**
|
|
@@ -564,7 +719,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
564
719
|
*/
|
|
565
720
|
host: string;
|
|
566
721
|
/**
|
|
567
|
-
* Name of the connection
|
|
722
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
568
723
|
*/
|
|
569
724
|
name: string;
|
|
570
725
|
/**
|
|
@@ -579,6 +734,10 @@ export declare namespace ConnectionCreateParams {
|
|
|
579
734
|
* Warehouse type
|
|
580
735
|
*/
|
|
581
736
|
warehouse_type: 'clickhouse';
|
|
737
|
+
/**
|
|
738
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
739
|
+
*/
|
|
740
|
+
database_timezone?: string | null;
|
|
582
741
|
/**
|
|
583
742
|
* Description of the connection
|
|
584
743
|
*/
|
|
@@ -591,6 +750,14 @@ export declare namespace ConnectionCreateParams {
|
|
|
591
750
|
* ClickHouse port
|
|
592
751
|
*/
|
|
593
752
|
port?: number;
|
|
753
|
+
/**
|
|
754
|
+
* Query timeout in seconds (1-3600)
|
|
755
|
+
*/
|
|
756
|
+
query_timeout?: number | null;
|
|
757
|
+
/**
|
|
758
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
759
|
+
*/
|
|
760
|
+
query_timezone_conversion?: string | null;
|
|
594
761
|
}
|
|
595
762
|
interface MssqlConnectionConfig {
|
|
596
763
|
/**
|
|
@@ -602,7 +769,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
602
769
|
*/
|
|
603
770
|
host: string;
|
|
604
771
|
/**
|
|
605
|
-
* Name of the connection
|
|
772
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
606
773
|
*/
|
|
607
774
|
name: string;
|
|
608
775
|
/**
|
|
@@ -617,6 +784,10 @@ export declare namespace ConnectionCreateParams {
|
|
|
617
784
|
* Warehouse type
|
|
618
785
|
*/
|
|
619
786
|
warehouse_type: 'mssql';
|
|
787
|
+
/**
|
|
788
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
789
|
+
*/
|
|
790
|
+
database_timezone?: string | null;
|
|
620
791
|
/**
|
|
621
792
|
* Description of the connection
|
|
622
793
|
*/
|
|
@@ -629,10 +800,32 @@ export declare namespace ConnectionCreateParams {
|
|
|
629
800
|
* SQL Server port
|
|
630
801
|
*/
|
|
631
802
|
port?: number;
|
|
803
|
+
/**
|
|
804
|
+
* Query timeout in seconds (1-3600)
|
|
805
|
+
*/
|
|
806
|
+
query_timeout?: number | null;
|
|
807
|
+
/**
|
|
808
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
809
|
+
*/
|
|
810
|
+
query_timezone_conversion?: string | null;
|
|
632
811
|
}
|
|
633
812
|
}
|
|
813
|
+
export interface ConnectionUpdateParams {
|
|
814
|
+
/**
|
|
815
|
+
* Connection description
|
|
816
|
+
*/
|
|
817
|
+
description?: string | null;
|
|
818
|
+
/**
|
|
819
|
+
* Human-readable display label
|
|
820
|
+
*/
|
|
821
|
+
label?: string | null;
|
|
822
|
+
/**
|
|
823
|
+
* Connection name (snake_case identifier)
|
|
824
|
+
*/
|
|
825
|
+
name?: string | null;
|
|
826
|
+
}
|
|
634
827
|
export declare namespace Connections {
|
|
635
|
-
export { type Connection as Connection, type DatabaseConfig as DatabaseConfig, type ConnectionListResponse as ConnectionListResponse, type ConnectionRetrieveCredentialResponse as ConnectionRetrieveCredentialResponse, type ConnectionSyncResponse as ConnectionSyncResponse, type ConnectionCreateParams as ConnectionCreateParams, };
|
|
636
|
-
export { Databases as Databases, type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
828
|
+
export { type Connection as Connection, type DatabaseConfig as DatabaseConfig, type ConnectionListResponse as ConnectionListResponse, type ConnectionRetrieveCredentialResponse as ConnectionRetrieveCredentialResponse, type ConnectionSyncResponse as ConnectionSyncResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionUpdateParams as ConnectionUpdateParams, };
|
|
829
|
+
export { Databases as Databases, type DatabaseUpdateResponse as DatabaseUpdateResponse, type DatabaseUpdateSchemaResponse as DatabaseUpdateSchemaResponse, type DatabaseUpdateParams as DatabaseUpdateParams, type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams, type DatabaseUpdateSchemaParams as DatabaseUpdateSchemaParams, };
|
|
637
830
|
}
|
|
638
831
|
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,E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EACrD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -6,6 +6,7 @@ const tslib_1 = require("../../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const DatabasesAPI = tslib_1.__importStar(require("./databases.js"));
|
|
8
8
|
const databases_1 = require("./databases.js");
|
|
9
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
9
10
|
const path_1 = require("../../../internal/utils/path.js");
|
|
10
11
|
class Connections extends resource_1.APIResource {
|
|
11
12
|
constructor() {
|
|
@@ -22,6 +23,10 @@ class Connections extends resource_1.APIResource {
|
|
|
22
23
|
* Get a single warehouse connection by kater_id.
|
|
23
24
|
*
|
|
24
25
|
* Returns connection from the database (source of truth) with full hierarchy.
|
|
26
|
+
* Supports content negotiation via Accept header (handled by MultiFormatRoute):
|
|
27
|
+
*
|
|
28
|
+
* - application/json (default): Returns JSON response
|
|
29
|
+
* - application/yaml: Returns YAML representation
|
|
25
30
|
*
|
|
26
31
|
* RLS: Filtered to current client (DualClientRLSDB).
|
|
27
32
|
*
|
|
@@ -30,6 +35,18 @@ class Connections extends resource_1.APIResource {
|
|
|
30
35
|
retrieve(connectionID, options) {
|
|
31
36
|
return this._client.get((0, path_1.path) `/api/v1/connections/${connectionID}`, options);
|
|
32
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Update a warehouse connection's metadata.
|
|
40
|
+
*
|
|
41
|
+
* Updates name, label, and/or description fields.
|
|
42
|
+
*
|
|
43
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
44
|
+
*
|
|
45
|
+
* Raises: ConnectionNotFoundError: If connection doesn't exist (404)
|
|
46
|
+
*/
|
|
47
|
+
update(connectionID, body, options) {
|
|
48
|
+
return this._client.patch((0, path_1.path) `/api/v1/connections/${connectionID}`, { body, ...options });
|
|
49
|
+
}
|
|
33
50
|
/**
|
|
34
51
|
* List all warehouse connections for the client.
|
|
35
52
|
*
|
|
@@ -42,6 +59,22 @@ class Connections extends resource_1.APIResource {
|
|
|
42
59
|
list(options) {
|
|
43
60
|
return this._client.get('/api/v1/connections', options);
|
|
44
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Delete a warehouse connection.
|
|
64
|
+
*
|
|
65
|
+
* Soft-deletes the connection record and cascades to all associated databases and
|
|
66
|
+
* schemas, setting deleted_at and deleted_by fields.
|
|
67
|
+
*
|
|
68
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
69
|
+
*
|
|
70
|
+
* Raises: ConnectionNotFoundError: If connection doesn't exist (404)
|
|
71
|
+
*/
|
|
72
|
+
delete(connectionID, options) {
|
|
73
|
+
return this._client.delete((0, path_1.path) `/api/v1/connections/${connectionID}`, {
|
|
74
|
+
...options,
|
|
75
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
45
78
|
/**
|
|
46
79
|
* Get decrypted warehouse credentials for a connection.
|
|
47
80
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qEAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qEAA4C;AAC5C,8CAOqB;AAErB,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgG/E,CAAC;IA9FC;;OAEG;IACH,MAAM,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