@katerai/sdk 0.3.0 → 0.5.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 +2 -6
- package/client.d.mts +6 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -3
- 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 +274 -65
- package/resources/v1/connections/connections.d.mts.map +1 -1
- package/resources/v1/connections/connections.d.ts +274 -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 +33 -0
- package/resources/v1/connections/connections.mjs.map +1 -1
- package/resources/v1/connections/index.d.mts +1 -1
- package/resources/v1/connections/index.d.mts.map +1 -1
- package/resources/v1/connections/index.d.ts +1 -1
- 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.map +1 -1
- package/resources/v1/github/github.d.mts +61 -1
- package/resources/v1/github/github.d.mts.map +1 -1
- package/resources/v1/github/github.d.ts +61 -1
- package/resources/v1/github/github.d.ts.map +1 -1
- package/resources/v1/github/github.js +22 -0
- package/resources/v1/github/github.js.map +1 -1
- package/resources/v1/github/github.mjs +22 -0
- package/resources/v1/github/github.mjs.map +1 -1
- package/resources/v1/github/index.d.mts +2 -1
- package/resources/v1/github/index.d.mts.map +1 -1
- package/resources/v1/github/index.d.ts +2 -1
- package/resources/v1/github/index.d.ts.map +1 -1
- package/resources/v1/github/index.js +3 -1
- package/resources/v1/github/index.js.map +1 -1
- package/resources/v1/github/index.mjs +2 -1
- package/resources/v1/github/index.mjs.map +1 -1
- package/resources/v1/github/webhooks.d.mts +28 -0
- package/resources/v1/github/webhooks.d.mts.map +1 -0
- package/resources/v1/github/webhooks.d.ts +28 -0
- package/resources/v1/github/webhooks.d.ts.map +1 -0
- package/resources/v1/github/webhooks.js +27 -0
- package/resources/v1/github/webhooks.js.map +1 -0
- package/resources/v1/github/webhooks.mjs +23 -0
- package/resources/v1/github/webhooks.mjs.map +1 -0
- package/resources/v1/index.d.mts +2 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/v1.d.mts +4 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +11 -36
- 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 +337 -69
- package/src/resources/v1/connections/index.ts +1 -0
- package/src/resources/v1/github/github.ts +97 -1
- package/src/resources/v1/github/index.ts +10 -1
- package/src/resources/v1/github/webhooks.ts +60 -0
- package/src/resources/v1/index.ts +10 -1
- package/src/resources/v1/v1.ts +20 -2
- 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
|
@@ -4,6 +4,7 @@ import { APIResource } from '../../../core/resource';
|
|
|
4
4
|
import * as DatabasesAPI from './databases';
|
|
5
5
|
import { DatabaseDeleteSchemaParams, Databases } from './databases';
|
|
6
6
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
7
8
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
9
|
import { path } from '../../../internal/utils/path';
|
|
9
10
|
|
|
@@ -21,6 +22,10 @@ export class Connections extends APIResource {
|
|
|
21
22
|
* Get a single warehouse connection by kater_id.
|
|
22
23
|
*
|
|
23
24
|
* Returns connection from the database (source of truth) with full hierarchy.
|
|
25
|
+
* Supports content negotiation via Accept header (handled by MultiFormatRoute):
|
|
26
|
+
*
|
|
27
|
+
* - application/json (default): Returns JSON response
|
|
28
|
+
* - application/yaml: Returns YAML representation
|
|
24
29
|
*
|
|
25
30
|
* RLS: Filtered to current client (DualClientRLSDB).
|
|
26
31
|
*
|
|
@@ -30,6 +35,23 @@ export class Connections extends APIResource {
|
|
|
30
35
|
return this._client.get(path`/api/v1/connections/${connectionID}`, options);
|
|
31
36
|
}
|
|
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(
|
|
48
|
+
connectionID: string,
|
|
49
|
+
body: ConnectionUpdateParams,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): APIPromise<Connection> {
|
|
52
|
+
return this._client.patch(path`/api/v1/connections/${connectionID}`, { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
|
|
33
55
|
/**
|
|
34
56
|
* List all warehouse connections for the client.
|
|
35
57
|
*
|
|
@@ -43,6 +65,23 @@ export class Connections extends APIResource {
|
|
|
43
65
|
return this._client.get('/api/v1/connections', options);
|
|
44
66
|
}
|
|
45
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Delete a warehouse connection.
|
|
70
|
+
*
|
|
71
|
+
* Soft-deletes the connection record and cascades to all associated databases and
|
|
72
|
+
* schemas, setting deleted_at and deleted_by fields.
|
|
73
|
+
*
|
|
74
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
75
|
+
*
|
|
76
|
+
* Raises: ConnectionNotFoundError: If connection doesn't exist (404)
|
|
77
|
+
*/
|
|
78
|
+
delete(connectionID: string, options?: RequestOptions): APIPromise<void> {
|
|
79
|
+
return this._client.delete(path`/api/v1/connections/${connectionID}`, {
|
|
80
|
+
...options,
|
|
81
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
46
85
|
/**
|
|
47
86
|
* Get decrypted warehouse credentials for a connection.
|
|
48
87
|
*
|
|
@@ -71,12 +110,12 @@ export class Connections extends APIResource {
|
|
|
71
110
|
/**
|
|
72
111
|
* Response model for a single connection.
|
|
73
112
|
*
|
|
74
|
-
* All data comes from the database (source of truth).
|
|
75
|
-
* kater_id.
|
|
113
|
+
* All data comes from the database (source of truth). JSON responses use 'id'
|
|
114
|
+
* field; YAML responses transform to 'kater_id' via MultiFormatRoute.
|
|
76
115
|
*/
|
|
77
116
|
export interface Connection {
|
|
78
117
|
/**
|
|
79
|
-
* Connection ID
|
|
118
|
+
* Connection ID
|
|
80
119
|
*/
|
|
81
120
|
id: string;
|
|
82
121
|
|
|
@@ -95,16 +134,6 @@ export interface Connection {
|
|
|
95
134
|
*/
|
|
96
135
|
databases: Array<Connection.Database>;
|
|
97
136
|
|
|
98
|
-
/**
|
|
99
|
-
* Connection description
|
|
100
|
-
*/
|
|
101
|
-
description: string | null;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Human-readable label
|
|
105
|
-
*/
|
|
106
|
-
label: string | null;
|
|
107
|
-
|
|
108
137
|
/**
|
|
109
138
|
* Connection name
|
|
110
139
|
*/
|
|
@@ -116,39 +145,49 @@ export interface Connection {
|
|
|
116
145
|
updated_at: string;
|
|
117
146
|
|
|
118
147
|
/**
|
|
119
|
-
*
|
|
148
|
+
* Warehouse-specific configuration
|
|
120
149
|
*/
|
|
121
|
-
|
|
150
|
+
warehouse_metadata:
|
|
151
|
+
| Connection.SnowflakeMetadata
|
|
152
|
+
| Connection.PostgresMetadata
|
|
153
|
+
| Connection.DatabricksMetadata
|
|
154
|
+
| Connection.ClickHouseMetadata
|
|
155
|
+
| Connection.MssqlMetadata;
|
|
122
156
|
|
|
123
157
|
/**
|
|
124
|
-
*
|
|
158
|
+
* Warehouse type (snowflake, postgresql, etc.)
|
|
125
159
|
*/
|
|
126
|
-
|
|
160
|
+
warehouse_type: string;
|
|
127
161
|
|
|
128
162
|
/**
|
|
129
|
-
*
|
|
163
|
+
* Default timezone for the connection
|
|
130
164
|
*/
|
|
131
|
-
|
|
165
|
+
database_timezone?: string | null;
|
|
132
166
|
|
|
133
167
|
/**
|
|
134
|
-
*
|
|
168
|
+
* Connection description
|
|
135
169
|
*/
|
|
136
|
-
|
|
170
|
+
description?: string | null;
|
|
137
171
|
|
|
138
172
|
/**
|
|
139
|
-
*
|
|
173
|
+
* Human-readable label
|
|
140
174
|
*/
|
|
141
|
-
|
|
175
|
+
label?: string | null;
|
|
142
176
|
|
|
143
177
|
/**
|
|
144
|
-
*
|
|
178
|
+
* Query timeout in seconds
|
|
145
179
|
*/
|
|
146
|
-
|
|
180
|
+
query_timeout?: number | null;
|
|
147
181
|
|
|
148
182
|
/**
|
|
149
|
-
*
|
|
183
|
+
* Timezone conversion mode (do_not_convert, convert_to_utc)
|
|
150
184
|
*/
|
|
151
|
-
|
|
185
|
+
query_timezone_conversion?: string | null;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Sync identifier for schema sync
|
|
189
|
+
*/
|
|
190
|
+
sync_id?: string | null;
|
|
152
191
|
}
|
|
153
192
|
|
|
154
193
|
export namespace Connection {
|
|
@@ -162,14 +201,9 @@ export namespace Connection {
|
|
|
162
201
|
id: string;
|
|
163
202
|
|
|
164
203
|
/**
|
|
165
|
-
*
|
|
166
|
-
*/
|
|
167
|
-
description: string | null;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Human-readable label
|
|
204
|
+
* Actual name of the database in the warehouse
|
|
171
205
|
*/
|
|
172
|
-
|
|
206
|
+
database_object_name: string;
|
|
173
207
|
|
|
174
208
|
/**
|
|
175
209
|
* Database name
|
|
@@ -181,10 +215,20 @@ export namespace Connection {
|
|
|
181
215
|
*/
|
|
182
216
|
schemas: Array<Database.Schema>;
|
|
183
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Database description
|
|
220
|
+
*/
|
|
221
|
+
description?: string | null;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Human-readable label
|
|
225
|
+
*/
|
|
226
|
+
label?: string | null;
|
|
227
|
+
|
|
184
228
|
/**
|
|
185
229
|
* Timezone for the database
|
|
186
230
|
*/
|
|
187
|
-
timezone
|
|
231
|
+
timezone?: string | null;
|
|
188
232
|
}
|
|
189
233
|
|
|
190
234
|
export namespace Database {
|
|
@@ -198,21 +242,136 @@ export namespace Connection {
|
|
|
198
242
|
id: string;
|
|
199
243
|
|
|
200
244
|
/**
|
|
201
|
-
*
|
|
245
|
+
* Actual name of the schema in the warehouse
|
|
202
246
|
*/
|
|
203
|
-
|
|
247
|
+
database_object_name: string;
|
|
204
248
|
|
|
205
249
|
/**
|
|
206
|
-
*
|
|
250
|
+
* Schema name
|
|
207
251
|
*/
|
|
208
|
-
|
|
252
|
+
name: string;
|
|
209
253
|
|
|
210
254
|
/**
|
|
211
|
-
* Schema
|
|
255
|
+
* Schema description
|
|
212
256
|
*/
|
|
213
|
-
|
|
257
|
+
description?: string | null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Human-readable label
|
|
261
|
+
*/
|
|
262
|
+
label?: string | null;
|
|
214
263
|
}
|
|
215
264
|
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Snowflake-specific warehouse metadata.
|
|
268
|
+
*/
|
|
269
|
+
export interface SnowflakeMetadata {
|
|
270
|
+
/**
|
|
271
|
+
* Authentication method
|
|
272
|
+
*/
|
|
273
|
+
auth_method: 'username_password' | 'key_pair';
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Snowflake role
|
|
277
|
+
*/
|
|
278
|
+
role: string;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Snowflake account identifier
|
|
282
|
+
*/
|
|
283
|
+
snowflake_account_id: string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Compute warehouse name
|
|
287
|
+
*/
|
|
288
|
+
warehouse: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Warehouse type discriminator
|
|
292
|
+
*/
|
|
293
|
+
warehouse_type: 'snowflake';
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* PostgreSQL-specific warehouse metadata.
|
|
298
|
+
*/
|
|
299
|
+
export interface PostgresMetadata {
|
|
300
|
+
/**
|
|
301
|
+
* Database host
|
|
302
|
+
*/
|
|
303
|
+
host: string;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Database port
|
|
307
|
+
*/
|
|
308
|
+
port: number;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Warehouse type discriminator
|
|
312
|
+
*/
|
|
313
|
+
warehouse_type: 'postgresql';
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Databricks-specific warehouse metadata.
|
|
318
|
+
*/
|
|
319
|
+
export interface DatabricksMetadata {
|
|
320
|
+
/**
|
|
321
|
+
* SQL warehouse HTTP path
|
|
322
|
+
*/
|
|
323
|
+
http_path: string;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Databricks server hostname
|
|
327
|
+
*/
|
|
328
|
+
server_hostname: string;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Warehouse type discriminator
|
|
332
|
+
*/
|
|
333
|
+
warehouse_type: 'databricks';
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* ClickHouse-specific warehouse metadata.
|
|
338
|
+
*/
|
|
339
|
+
export interface ClickHouseMetadata {
|
|
340
|
+
/**
|
|
341
|
+
* ClickHouse host
|
|
342
|
+
*/
|
|
343
|
+
host: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* ClickHouse port
|
|
347
|
+
*/
|
|
348
|
+
port: number;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Warehouse type discriminator
|
|
352
|
+
*/
|
|
353
|
+
warehouse_type: 'clickhouse';
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Microsoft SQL Server-specific warehouse metadata.
|
|
358
|
+
*/
|
|
359
|
+
export interface MssqlMetadata {
|
|
360
|
+
/**
|
|
361
|
+
* SQL Server host
|
|
362
|
+
*/
|
|
363
|
+
host: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* SQL Server port
|
|
367
|
+
*/
|
|
368
|
+
port: number;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Warehouse type discriminator
|
|
372
|
+
*/
|
|
373
|
+
warehouse_type: 'mssql';
|
|
374
|
+
}
|
|
216
375
|
}
|
|
217
376
|
|
|
218
377
|
/**
|
|
@@ -220,9 +379,9 @@ export namespace Connection {
|
|
|
220
379
|
*/
|
|
221
380
|
export interface DatabaseConfig {
|
|
222
381
|
/**
|
|
223
|
-
*
|
|
382
|
+
* The actual name of the database object in the warehouse
|
|
224
383
|
*/
|
|
225
|
-
|
|
384
|
+
database_object_name: string;
|
|
226
385
|
|
|
227
386
|
/**
|
|
228
387
|
* Description of the database
|
|
@@ -234,6 +393,11 @@ export interface DatabaseConfig {
|
|
|
234
393
|
*/
|
|
235
394
|
label?: string | null;
|
|
236
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Database name (defaults to database_object_name if not set)
|
|
398
|
+
*/
|
|
399
|
+
name?: string | null;
|
|
400
|
+
|
|
237
401
|
/**
|
|
238
402
|
* Schema configurations to include (empty = discover all schemas)
|
|
239
403
|
*/
|
|
@@ -251,9 +415,9 @@ export namespace DatabaseConfig {
|
|
|
251
415
|
*/
|
|
252
416
|
export interface Schema {
|
|
253
417
|
/**
|
|
254
|
-
*
|
|
418
|
+
* The actual name of the schema object in the warehouse
|
|
255
419
|
*/
|
|
256
|
-
|
|
420
|
+
database_object_name: string;
|
|
257
421
|
|
|
258
422
|
/**
|
|
259
423
|
* Description of the schema
|
|
@@ -264,6 +428,11 @@ export namespace DatabaseConfig {
|
|
|
264
428
|
* Human-readable label for the schema (defaults to name if not set)
|
|
265
429
|
*/
|
|
266
430
|
label?: string | null;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Schema name (defaults to database_object_name if not set)
|
|
434
|
+
*/
|
|
435
|
+
name?: string | null;
|
|
267
436
|
}
|
|
268
437
|
}
|
|
269
438
|
|
|
@@ -287,7 +456,7 @@ export namespace ConnectionRetrieveCredentialResponse {
|
|
|
287
456
|
/**
|
|
288
457
|
* Database name
|
|
289
458
|
*/
|
|
290
|
-
database: string
|
|
459
|
+
database: string;
|
|
291
460
|
|
|
292
461
|
/**
|
|
293
462
|
* Database host
|
|
@@ -385,7 +554,7 @@ export namespace ConnectionRetrieveCredentialResponse {
|
|
|
385
554
|
/**
|
|
386
555
|
* Passphrase if key is encrypted
|
|
387
556
|
*/
|
|
388
|
-
private_key_passphrase
|
|
557
|
+
private_key_passphrase?: string | null;
|
|
389
558
|
}
|
|
390
559
|
}
|
|
391
560
|
|
|
@@ -418,11 +587,6 @@ export namespace ConnectionRetrieveCredentialResponse {
|
|
|
418
587
|
* ClickHouse credential response.
|
|
419
588
|
*/
|
|
420
589
|
export interface ClickHouseCredentialResponse {
|
|
421
|
-
/**
|
|
422
|
-
* Database name
|
|
423
|
-
*/
|
|
424
|
-
database: string | null;
|
|
425
|
-
|
|
426
590
|
/**
|
|
427
591
|
* ClickHouse host
|
|
428
592
|
*/
|
|
@@ -447,17 +611,17 @@ export namespace ConnectionRetrieveCredentialResponse {
|
|
|
447
611
|
* Warehouse type
|
|
448
612
|
*/
|
|
449
613
|
warehouse_type: 'clickhouse';
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Database name
|
|
617
|
+
*/
|
|
618
|
+
database?: string | null;
|
|
450
619
|
}
|
|
451
620
|
|
|
452
621
|
/**
|
|
453
622
|
* Microsoft SQL Server credential response.
|
|
454
623
|
*/
|
|
455
624
|
export interface MssqlCredentialResponse {
|
|
456
|
-
/**
|
|
457
|
-
* Database name
|
|
458
|
-
*/
|
|
459
|
-
database: string | null;
|
|
460
|
-
|
|
461
625
|
/**
|
|
462
626
|
* SQL Server host
|
|
463
627
|
*/
|
|
@@ -482,29 +646,40 @@ export namespace ConnectionRetrieveCredentialResponse {
|
|
|
482
646
|
* Warehouse type
|
|
483
647
|
*/
|
|
484
648
|
warehouse_type: 'mssql';
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Database name
|
|
652
|
+
*/
|
|
653
|
+
database?: string | null;
|
|
485
654
|
}
|
|
486
655
|
}
|
|
487
656
|
|
|
488
657
|
/**
|
|
489
658
|
* Response for syncing views.
|
|
490
659
|
*
|
|
491
|
-
* Returned after successfully creating a PR with merged ViewSchema files
|
|
660
|
+
* Returned after successfully creating a PR with merged ViewSchema files, or
|
|
661
|
+
* indicating that all views are already up to date.
|
|
492
662
|
*/
|
|
493
663
|
export interface ConnectionSyncResponse {
|
|
494
664
|
/**
|
|
495
|
-
*
|
|
665
|
+
* Number of views in the PR
|
|
496
666
|
*/
|
|
497
|
-
|
|
667
|
+
views_updated: number;
|
|
498
668
|
|
|
499
669
|
/**
|
|
500
|
-
*
|
|
670
|
+
* Status message
|
|
501
671
|
*/
|
|
502
|
-
|
|
672
|
+
message?: string | null;
|
|
503
673
|
|
|
504
674
|
/**
|
|
505
|
-
*
|
|
675
|
+
* GitHub PR number
|
|
506
676
|
*/
|
|
507
|
-
|
|
677
|
+
pr_number?: number | null;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* GitHub PR URL
|
|
681
|
+
*/
|
|
682
|
+
pr_url?: string | null;
|
|
508
683
|
}
|
|
509
684
|
|
|
510
685
|
export type ConnectionCreateParams =
|
|
@@ -527,7 +702,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
527
702
|
host: string;
|
|
528
703
|
|
|
529
704
|
/**
|
|
530
|
-
* Name of the connection
|
|
705
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
531
706
|
*/
|
|
532
707
|
name: string;
|
|
533
708
|
|
|
@@ -546,6 +721,11 @@ export declare namespace ConnectionCreateParams {
|
|
|
546
721
|
*/
|
|
547
722
|
warehouse_type: 'postgresql';
|
|
548
723
|
|
|
724
|
+
/**
|
|
725
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
726
|
+
*/
|
|
727
|
+
database_timezone?: string | null;
|
|
728
|
+
|
|
549
729
|
/**
|
|
550
730
|
* Description of the connection
|
|
551
731
|
*/
|
|
@@ -560,6 +740,16 @@ export declare namespace ConnectionCreateParams {
|
|
|
560
740
|
* Database port
|
|
561
741
|
*/
|
|
562
742
|
port?: number;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Query timeout in seconds (1-3600)
|
|
746
|
+
*/
|
|
747
|
+
query_timeout?: number | null;
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
751
|
+
*/
|
|
752
|
+
query_timezone_conversion?: string | null;
|
|
563
753
|
}
|
|
564
754
|
|
|
565
755
|
export interface SnowflakeConnectionConfig {
|
|
@@ -579,7 +769,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
579
769
|
databases: Array<DatabaseConfig>;
|
|
580
770
|
|
|
581
771
|
/**
|
|
582
|
-
* Name of the connection
|
|
772
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
583
773
|
*/
|
|
584
774
|
name: string;
|
|
585
775
|
|
|
@@ -603,6 +793,11 @@ export declare namespace ConnectionCreateParams {
|
|
|
603
793
|
*/
|
|
604
794
|
warehouse_type: 'snowflake';
|
|
605
795
|
|
|
796
|
+
/**
|
|
797
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
798
|
+
*/
|
|
799
|
+
database_timezone?: string | null;
|
|
800
|
+
|
|
606
801
|
/**
|
|
607
802
|
* Description of the connection
|
|
608
803
|
*/
|
|
@@ -612,6 +807,16 @@ export declare namespace ConnectionCreateParams {
|
|
|
612
807
|
* Human-readable label for the connection (defaults to name if not set)
|
|
613
808
|
*/
|
|
614
809
|
label?: string | null;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Query timeout in seconds (1-3600)
|
|
813
|
+
*/
|
|
814
|
+
query_timeout?: number | null;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
818
|
+
*/
|
|
819
|
+
query_timezone_conversion?: string | null;
|
|
615
820
|
}
|
|
616
821
|
|
|
617
822
|
export namespace SnowflakeConnectionConfig {
|
|
@@ -668,7 +873,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
668
873
|
http_path: string;
|
|
669
874
|
|
|
670
875
|
/**
|
|
671
|
-
* Name of the connection
|
|
876
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
672
877
|
*/
|
|
673
878
|
name: string;
|
|
674
879
|
|
|
@@ -682,6 +887,11 @@ export declare namespace ConnectionCreateParams {
|
|
|
682
887
|
*/
|
|
683
888
|
warehouse_type: 'databricks';
|
|
684
889
|
|
|
890
|
+
/**
|
|
891
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
892
|
+
*/
|
|
893
|
+
database_timezone?: string | null;
|
|
894
|
+
|
|
685
895
|
/**
|
|
686
896
|
* Description of the connection
|
|
687
897
|
*/
|
|
@@ -691,6 +901,16 @@ export declare namespace ConnectionCreateParams {
|
|
|
691
901
|
* Human-readable label for the connection (defaults to name if not set)
|
|
692
902
|
*/
|
|
693
903
|
label?: string | null;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Query timeout in seconds (1-3600)
|
|
907
|
+
*/
|
|
908
|
+
query_timeout?: number | null;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
912
|
+
*/
|
|
913
|
+
query_timezone_conversion?: string | null;
|
|
694
914
|
}
|
|
695
915
|
|
|
696
916
|
export interface ClickHouseConnectionConfig {
|
|
@@ -705,7 +925,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
705
925
|
host: string;
|
|
706
926
|
|
|
707
927
|
/**
|
|
708
|
-
* Name of the connection
|
|
928
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
709
929
|
*/
|
|
710
930
|
name: string;
|
|
711
931
|
|
|
@@ -724,6 +944,11 @@ export declare namespace ConnectionCreateParams {
|
|
|
724
944
|
*/
|
|
725
945
|
warehouse_type: 'clickhouse';
|
|
726
946
|
|
|
947
|
+
/**
|
|
948
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
949
|
+
*/
|
|
950
|
+
database_timezone?: string | null;
|
|
951
|
+
|
|
727
952
|
/**
|
|
728
953
|
* Description of the connection
|
|
729
954
|
*/
|
|
@@ -738,6 +963,16 @@ export declare namespace ConnectionCreateParams {
|
|
|
738
963
|
* ClickHouse port
|
|
739
964
|
*/
|
|
740
965
|
port?: number;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Query timeout in seconds (1-3600)
|
|
969
|
+
*/
|
|
970
|
+
query_timeout?: number | null;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
974
|
+
*/
|
|
975
|
+
query_timezone_conversion?: string | null;
|
|
741
976
|
}
|
|
742
977
|
|
|
743
978
|
export interface MssqlConnectionConfig {
|
|
@@ -752,7 +987,7 @@ export declare namespace ConnectionCreateParams {
|
|
|
752
987
|
host: string;
|
|
753
988
|
|
|
754
989
|
/**
|
|
755
|
-
* Name of the connection
|
|
990
|
+
* Name of the connection (snake_case: lowercase letters, numbers, underscores)
|
|
756
991
|
*/
|
|
757
992
|
name: string;
|
|
758
993
|
|
|
@@ -771,6 +1006,11 @@ export declare namespace ConnectionCreateParams {
|
|
|
771
1006
|
*/
|
|
772
1007
|
warehouse_type: 'mssql';
|
|
773
1008
|
|
|
1009
|
+
/**
|
|
1010
|
+
* Default timezone for the connection (e.g., 'UTC', 'America/New_York')
|
|
1011
|
+
*/
|
|
1012
|
+
database_timezone?: string | null;
|
|
1013
|
+
|
|
774
1014
|
/**
|
|
775
1015
|
* Description of the connection
|
|
776
1016
|
*/
|
|
@@ -785,9 +1025,36 @@ export declare namespace ConnectionCreateParams {
|
|
|
785
1025
|
* SQL Server port
|
|
786
1026
|
*/
|
|
787
1027
|
port?: number;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Query timeout in seconds (1-3600)
|
|
1031
|
+
*/
|
|
1032
|
+
query_timeout?: number | null;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* Timezone conversion mode: 'do_not_convert' or 'convert_to_utc'
|
|
1036
|
+
*/
|
|
1037
|
+
query_timezone_conversion?: string | null;
|
|
788
1038
|
}
|
|
789
1039
|
}
|
|
790
1040
|
|
|
1041
|
+
export interface ConnectionUpdateParams {
|
|
1042
|
+
/**
|
|
1043
|
+
* Connection description
|
|
1044
|
+
*/
|
|
1045
|
+
description?: string | null;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Human-readable display label
|
|
1049
|
+
*/
|
|
1050
|
+
label?: string | null;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Connection name (snake_case identifier)
|
|
1054
|
+
*/
|
|
1055
|
+
name?: string | null;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
791
1058
|
Connections.Databases = Databases;
|
|
792
1059
|
|
|
793
1060
|
export declare namespace Connections {
|
|
@@ -798,6 +1065,7 @@ export declare namespace Connections {
|
|
|
798
1065
|
type ConnectionRetrieveCredentialResponse as ConnectionRetrieveCredentialResponse,
|
|
799
1066
|
type ConnectionSyncResponse as ConnectionSyncResponse,
|
|
800
1067
|
type ConnectionCreateParams as ConnectionCreateParams,
|
|
1068
|
+
type ConnectionUpdateParams as ConnectionUpdateParams,
|
|
801
1069
|
};
|
|
802
1070
|
|
|
803
1071
|
export { Databases as Databases, type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|