@katerai/sdk 0.4.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 +8 -0
- package/package.json +1 -1
- package/resources/v1/connections/connections.d.mts +22 -6
- package/resources/v1/connections/connections.d.mts.map +1 -1
- package/resources/v1/connections/connections.d.ts +22 -6
- package/resources/v1/connections/connections.d.ts.map +1 -1
- package/resources/v1/connections/connections.js.map +1 -1
- package/resources/v1/connections/connections.mjs +1 -1
- package/resources/v1/connections/connections.mjs.map +1 -1
- package/resources/v1/connections/databases.d.mts +1 -118
- package/resources/v1/connections/databases.d.mts.map +1 -1
- package/resources/v1/connections/databases.d.ts +1 -118
- package/resources/v1/connections/databases.d.ts.map +1 -1
- package/resources/v1/connections/databases.js +0 -35
- package/resources/v1/connections/databases.js.map +1 -1
- package/resources/v1/connections/databases.mjs +0 -35
- package/resources/v1/connections/databases.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 +1 -1
- package/resources/v1/connections/index.mjs.map +1 -1
- package/src/resources/v1/connections/connections.ts +26 -20
- package/src/resources/v1/connections/databases.ts +1 -165
- package/src/resources/v1/connections/index.ts +1 -8
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.0 (2026-01-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/kater-ai/kater-typescript-sdk/compare/v0.4.0...v0.5.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **core,api:** add database_object_name field to Database and Schema ([7d157ea](https://github.com/kater-ai/kater-typescript-sdk/commit/7d157ea42ff72226afb38cea3ac4b68aa0226d1e))
|
|
10
|
+
|
|
3
11
|
## 0.4.0 (2026-01-29)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.3.0...v0.4.0](https://github.com/kater-ai/kater-typescript-sdk/compare/v0.3.0...v0.4.0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as DatabasesAPI from "./databases.mjs";
|
|
3
|
-
import { DatabaseDeleteSchemaParams,
|
|
3
|
+
import { DatabaseDeleteSchemaParams, Databases } from "./databases.mjs";
|
|
4
4
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
5
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
6
|
export declare class Connections extends APIResource {
|
|
@@ -143,6 +143,10 @@ export declare namespace Connection {
|
|
|
143
143
|
* Database ID
|
|
144
144
|
*/
|
|
145
145
|
id: string;
|
|
146
|
+
/**
|
|
147
|
+
* Actual name of the database in the warehouse
|
|
148
|
+
*/
|
|
149
|
+
database_object_name: string;
|
|
146
150
|
/**
|
|
147
151
|
* Database name
|
|
148
152
|
*/
|
|
@@ -173,6 +177,10 @@ export declare namespace Connection {
|
|
|
173
177
|
* Schema ID
|
|
174
178
|
*/
|
|
175
179
|
id: string;
|
|
180
|
+
/**
|
|
181
|
+
* Actual name of the schema in the warehouse
|
|
182
|
+
*/
|
|
183
|
+
database_object_name: string;
|
|
176
184
|
/**
|
|
177
185
|
* Schema name
|
|
178
186
|
*/
|
|
@@ -286,9 +294,9 @@ export declare namespace Connection {
|
|
|
286
294
|
*/
|
|
287
295
|
export interface DatabaseConfig {
|
|
288
296
|
/**
|
|
289
|
-
*
|
|
297
|
+
* The actual name of the database object in the warehouse
|
|
290
298
|
*/
|
|
291
|
-
|
|
299
|
+
database_object_name: string;
|
|
292
300
|
/**
|
|
293
301
|
* Description of the database
|
|
294
302
|
*/
|
|
@@ -297,6 +305,10 @@ export interface DatabaseConfig {
|
|
|
297
305
|
* Human-readable label for the database (defaults to name if not set)
|
|
298
306
|
*/
|
|
299
307
|
label?: string | null;
|
|
308
|
+
/**
|
|
309
|
+
* Database name (defaults to database_object_name if not set)
|
|
310
|
+
*/
|
|
311
|
+
name?: string | null;
|
|
300
312
|
/**
|
|
301
313
|
* Schema configurations to include (empty = discover all schemas)
|
|
302
314
|
*/
|
|
@@ -312,9 +324,9 @@ export declare namespace DatabaseConfig {
|
|
|
312
324
|
*/
|
|
313
325
|
interface Schema {
|
|
314
326
|
/**
|
|
315
|
-
*
|
|
327
|
+
* The actual name of the schema object in the warehouse
|
|
316
328
|
*/
|
|
317
|
-
|
|
329
|
+
database_object_name: string;
|
|
318
330
|
/**
|
|
319
331
|
* Description of the schema
|
|
320
332
|
*/
|
|
@@ -323,6 +335,10 @@ export declare namespace DatabaseConfig {
|
|
|
323
335
|
* Human-readable label for the schema (defaults to name if not set)
|
|
324
336
|
*/
|
|
325
337
|
label?: string | null;
|
|
338
|
+
/**
|
|
339
|
+
* Schema name (defaults to database_object_name if not set)
|
|
340
|
+
*/
|
|
341
|
+
name?: string | null;
|
|
326
342
|
}
|
|
327
343
|
}
|
|
328
344
|
export type ConnectionListResponse = Array<Connection>;
|
|
@@ -826,6 +842,6 @@ export interface ConnectionUpdateParams {
|
|
|
826
842
|
}
|
|
827
843
|
export declare namespace Connections {
|
|
828
844
|
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
|
|
845
|
+
export { Databases as Databases, type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
830
846
|
}
|
|
831
847
|
//# sourceMappingURL=connections.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,0BAA0B,EAAE,SAAS,EAAE;OACzC,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIhF;;;;;;;;OAQG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAIzB;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlE;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOxE;;;;;;;;;OASG;IACH,kBAAkB,CAChB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oCAAoC,CAAC;IAInD;;OAEG;IACH,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KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAClG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as DatabasesAPI from "./databases.js";
|
|
3
|
-
import { DatabaseDeleteSchemaParams,
|
|
3
|
+
import { DatabaseDeleteSchemaParams, 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 {
|
|
@@ -143,6 +143,10 @@ export declare namespace Connection {
|
|
|
143
143
|
* Database ID
|
|
144
144
|
*/
|
|
145
145
|
id: string;
|
|
146
|
+
/**
|
|
147
|
+
* Actual name of the database in the warehouse
|
|
148
|
+
*/
|
|
149
|
+
database_object_name: string;
|
|
146
150
|
/**
|
|
147
151
|
* Database name
|
|
148
152
|
*/
|
|
@@ -173,6 +177,10 @@ export declare namespace Connection {
|
|
|
173
177
|
* Schema ID
|
|
174
178
|
*/
|
|
175
179
|
id: string;
|
|
180
|
+
/**
|
|
181
|
+
* Actual name of the schema in the warehouse
|
|
182
|
+
*/
|
|
183
|
+
database_object_name: string;
|
|
176
184
|
/**
|
|
177
185
|
* Schema name
|
|
178
186
|
*/
|
|
@@ -286,9 +294,9 @@ export declare namespace Connection {
|
|
|
286
294
|
*/
|
|
287
295
|
export interface DatabaseConfig {
|
|
288
296
|
/**
|
|
289
|
-
*
|
|
297
|
+
* The actual name of the database object in the warehouse
|
|
290
298
|
*/
|
|
291
|
-
|
|
299
|
+
database_object_name: string;
|
|
292
300
|
/**
|
|
293
301
|
* Description of the database
|
|
294
302
|
*/
|
|
@@ -297,6 +305,10 @@ export interface DatabaseConfig {
|
|
|
297
305
|
* Human-readable label for the database (defaults to name if not set)
|
|
298
306
|
*/
|
|
299
307
|
label?: string | null;
|
|
308
|
+
/**
|
|
309
|
+
* Database name (defaults to database_object_name if not set)
|
|
310
|
+
*/
|
|
311
|
+
name?: string | null;
|
|
300
312
|
/**
|
|
301
313
|
* Schema configurations to include (empty = discover all schemas)
|
|
302
314
|
*/
|
|
@@ -312,9 +324,9 @@ export declare namespace DatabaseConfig {
|
|
|
312
324
|
*/
|
|
313
325
|
interface Schema {
|
|
314
326
|
/**
|
|
315
|
-
*
|
|
327
|
+
* The actual name of the schema object in the warehouse
|
|
316
328
|
*/
|
|
317
|
-
|
|
329
|
+
database_object_name: string;
|
|
318
330
|
/**
|
|
319
331
|
* Description of the schema
|
|
320
332
|
*/
|
|
@@ -323,6 +335,10 @@ export declare namespace DatabaseConfig {
|
|
|
323
335
|
* Human-readable label for the schema (defaults to name if not set)
|
|
324
336
|
*/
|
|
325
337
|
label?: string | null;
|
|
338
|
+
/**
|
|
339
|
+
* Schema name (defaults to database_object_name if not set)
|
|
340
|
+
*/
|
|
341
|
+
name?: string | null;
|
|
326
342
|
}
|
|
327
343
|
}
|
|
328
344
|
export type ConnectionListResponse = Array<Connection>;
|
|
@@ -826,6 +842,6 @@ export interface ConnectionUpdateParams {
|
|
|
826
842
|
}
|
|
827
843
|
export declare namespace Connections {
|
|
828
844
|
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
|
|
845
|
+
export { Databases as Databases, type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
830
846
|
}
|
|
831
847
|
//# 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,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,0BAA0B,EAAE,SAAS,EAAE;OACzC,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIhF;;;;;;;;OAQG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAIzB;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlE;;;;;;;;;OASG;IACH,MAAM,CAAC,YA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AAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE9B;;WAEG;QACH,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC3C;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAClG"}
|
|
@@ -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,8CAAoE;AAEpE,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,CAAC,IAA4B,E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O,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,uBAAuB,YAAY,OAAO,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAjGD,kCAiGC;AAs7BD,WAAW,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as DatabasesAPI from "./databases.mjs";
|
|
4
|
-
import { Databases
|
|
4
|
+
import { Databases } from "./databases.mjs";
|
|
5
5
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
6
|
import { path } from "../../../internal/utils/path.mjs";
|
|
7
7
|
export class Connections extends APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAA8B,SAAS,EAAE;OAEzC,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgG/E,CAAC;IA9FC;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;OAYG;IAC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
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as ConnectionsAPI from "./connections.mjs";
|
|
3
2
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
4
|
export declare class Databases extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Update a database's metadata.
|
|
8
|
-
*
|
|
9
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
10
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
11
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
12
|
-
* affected).
|
|
13
|
-
*
|
|
14
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
15
|
-
*
|
|
16
|
-
* Raises: DatabaseNotFoundError: If database doesn't exist (404)
|
|
17
|
-
*/
|
|
18
|
-
update(databaseID: string, params: DatabaseUpdateParams, options?: RequestOptions): APIPromise<DatabaseUpdateResponse>;
|
|
19
5
|
/**
|
|
20
6
|
* Delete a schema from a connection.
|
|
21
7
|
*
|
|
@@ -28,115 +14,12 @@ export declare class Databases extends APIResource {
|
|
|
28
14
|
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
29
15
|
*/
|
|
30
16
|
deleteSchema(schemaID: string, params: DatabaseDeleteSchemaParams, options?: RequestOptions): APIPromise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Update a schema's metadata.
|
|
33
|
-
*
|
|
34
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
35
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
36
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
37
|
-
* affected).
|
|
38
|
-
*
|
|
39
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
40
|
-
*
|
|
41
|
-
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
42
|
-
*/
|
|
43
|
-
updateSchema(schemaID: string, params: DatabaseUpdateSchemaParams, options?: RequestOptions): APIPromise<DatabaseUpdateSchemaResponse>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Response for database/schema updates that may involve a rename PR.
|
|
47
|
-
*/
|
|
48
|
-
export interface DatabaseUpdateResponse {
|
|
49
|
-
/**
|
|
50
|
-
* Updated connection
|
|
51
|
-
*/
|
|
52
|
-
connection: ConnectionsAPI.Connection;
|
|
53
|
-
/**
|
|
54
|
-
* GitHub PR number
|
|
55
|
-
*/
|
|
56
|
-
pr_number?: number | null;
|
|
57
|
-
/**
|
|
58
|
-
* PR status: 'open' or 'merged'
|
|
59
|
-
*/
|
|
60
|
-
pr_status?: string | null;
|
|
61
|
-
/**
|
|
62
|
-
* GitHub PR URL (if rename PR created)
|
|
63
|
-
*/
|
|
64
|
-
pr_url?: string | null;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Response for database/schema updates that may involve a rename PR.
|
|
68
|
-
*/
|
|
69
|
-
export interface DatabaseUpdateSchemaResponse {
|
|
70
|
-
/**
|
|
71
|
-
* Updated connection
|
|
72
|
-
*/
|
|
73
|
-
connection: ConnectionsAPI.Connection;
|
|
74
|
-
/**
|
|
75
|
-
* GitHub PR number
|
|
76
|
-
*/
|
|
77
|
-
pr_number?: number | null;
|
|
78
|
-
/**
|
|
79
|
-
* PR status: 'open' or 'merged'
|
|
80
|
-
*/
|
|
81
|
-
pr_status?: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* GitHub PR URL (if rename PR created)
|
|
84
|
-
*/
|
|
85
|
-
pr_url?: string | null;
|
|
86
|
-
}
|
|
87
|
-
export interface DatabaseUpdateParams {
|
|
88
|
-
/**
|
|
89
|
-
* Path param
|
|
90
|
-
*/
|
|
91
|
-
connection_id: string;
|
|
92
|
-
/**
|
|
93
|
-
* Body param: If true and a name change requires a PR, auto-merge it
|
|
94
|
-
*/
|
|
95
|
-
auto_merge?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Body param: Database description
|
|
98
|
-
*/
|
|
99
|
-
description?: string | null;
|
|
100
|
-
/**
|
|
101
|
-
* Body param: Human-readable display label
|
|
102
|
-
*/
|
|
103
|
-
label?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
* Body param: Database name
|
|
106
|
-
*/
|
|
107
|
-
name?: string | null;
|
|
108
17
|
}
|
|
109
18
|
export interface DatabaseDeleteSchemaParams {
|
|
110
19
|
connection_id: string;
|
|
111
20
|
database_id: string;
|
|
112
21
|
}
|
|
113
|
-
export interface DatabaseUpdateSchemaParams {
|
|
114
|
-
/**
|
|
115
|
-
* Path param
|
|
116
|
-
*/
|
|
117
|
-
connection_id: string;
|
|
118
|
-
/**
|
|
119
|
-
* Path param
|
|
120
|
-
*/
|
|
121
|
-
database_id: string;
|
|
122
|
-
/**
|
|
123
|
-
* Body param: If true and a name change requires a PR, auto-merge it
|
|
124
|
-
*/
|
|
125
|
-
auto_merge?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Body param: Schema description
|
|
128
|
-
*/
|
|
129
|
-
description?: string | null;
|
|
130
|
-
/**
|
|
131
|
-
* Body param: Human-readable display label
|
|
132
|
-
*/
|
|
133
|
-
label?: string | null;
|
|
134
|
-
/**
|
|
135
|
-
* Body param: Schema name
|
|
136
|
-
*/
|
|
137
|
-
name?: string | null;
|
|
138
|
-
}
|
|
139
22
|
export declare namespace Databases {
|
|
140
|
-
export { type
|
|
23
|
+
export { type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
141
24
|
}
|
|
142
25
|
//# sourceMappingURL=databases.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databases.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,
|
|
1
|
+
{"version":3,"file":"databases.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAC1E"}
|
|
@@ -1,21 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as ConnectionsAPI from "./connections.js";
|
|
3
2
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
4
|
export declare class Databases extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Update a database's metadata.
|
|
8
|
-
*
|
|
9
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
10
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
11
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
12
|
-
* affected).
|
|
13
|
-
*
|
|
14
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
15
|
-
*
|
|
16
|
-
* Raises: DatabaseNotFoundError: If database doesn't exist (404)
|
|
17
|
-
*/
|
|
18
|
-
update(databaseID: string, params: DatabaseUpdateParams, options?: RequestOptions): APIPromise<DatabaseUpdateResponse>;
|
|
19
5
|
/**
|
|
20
6
|
* Delete a schema from a connection.
|
|
21
7
|
*
|
|
@@ -28,115 +14,12 @@ export declare class Databases extends APIResource {
|
|
|
28
14
|
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
29
15
|
*/
|
|
30
16
|
deleteSchema(schemaID: string, params: DatabaseDeleteSchemaParams, options?: RequestOptions): APIPromise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Update a schema's metadata.
|
|
33
|
-
*
|
|
34
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
35
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
36
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
37
|
-
* affected).
|
|
38
|
-
*
|
|
39
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
40
|
-
*
|
|
41
|
-
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
42
|
-
*/
|
|
43
|
-
updateSchema(schemaID: string, params: DatabaseUpdateSchemaParams, options?: RequestOptions): APIPromise<DatabaseUpdateSchemaResponse>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Response for database/schema updates that may involve a rename PR.
|
|
47
|
-
*/
|
|
48
|
-
export interface DatabaseUpdateResponse {
|
|
49
|
-
/**
|
|
50
|
-
* Updated connection
|
|
51
|
-
*/
|
|
52
|
-
connection: ConnectionsAPI.Connection;
|
|
53
|
-
/**
|
|
54
|
-
* GitHub PR number
|
|
55
|
-
*/
|
|
56
|
-
pr_number?: number | null;
|
|
57
|
-
/**
|
|
58
|
-
* PR status: 'open' or 'merged'
|
|
59
|
-
*/
|
|
60
|
-
pr_status?: string | null;
|
|
61
|
-
/**
|
|
62
|
-
* GitHub PR URL (if rename PR created)
|
|
63
|
-
*/
|
|
64
|
-
pr_url?: string | null;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Response for database/schema updates that may involve a rename PR.
|
|
68
|
-
*/
|
|
69
|
-
export interface DatabaseUpdateSchemaResponse {
|
|
70
|
-
/**
|
|
71
|
-
* Updated connection
|
|
72
|
-
*/
|
|
73
|
-
connection: ConnectionsAPI.Connection;
|
|
74
|
-
/**
|
|
75
|
-
* GitHub PR number
|
|
76
|
-
*/
|
|
77
|
-
pr_number?: number | null;
|
|
78
|
-
/**
|
|
79
|
-
* PR status: 'open' or 'merged'
|
|
80
|
-
*/
|
|
81
|
-
pr_status?: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* GitHub PR URL (if rename PR created)
|
|
84
|
-
*/
|
|
85
|
-
pr_url?: string | null;
|
|
86
|
-
}
|
|
87
|
-
export interface DatabaseUpdateParams {
|
|
88
|
-
/**
|
|
89
|
-
* Path param
|
|
90
|
-
*/
|
|
91
|
-
connection_id: string;
|
|
92
|
-
/**
|
|
93
|
-
* Body param: If true and a name change requires a PR, auto-merge it
|
|
94
|
-
*/
|
|
95
|
-
auto_merge?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Body param: Database description
|
|
98
|
-
*/
|
|
99
|
-
description?: string | null;
|
|
100
|
-
/**
|
|
101
|
-
* Body param: Human-readable display label
|
|
102
|
-
*/
|
|
103
|
-
label?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
* Body param: Database name
|
|
106
|
-
*/
|
|
107
|
-
name?: string | null;
|
|
108
17
|
}
|
|
109
18
|
export interface DatabaseDeleteSchemaParams {
|
|
110
19
|
connection_id: string;
|
|
111
20
|
database_id: string;
|
|
112
21
|
}
|
|
113
|
-
export interface DatabaseUpdateSchemaParams {
|
|
114
|
-
/**
|
|
115
|
-
* Path param
|
|
116
|
-
*/
|
|
117
|
-
connection_id: string;
|
|
118
|
-
/**
|
|
119
|
-
* Path param
|
|
120
|
-
*/
|
|
121
|
-
database_id: string;
|
|
122
|
-
/**
|
|
123
|
-
* Body param: If true and a name change requires a PR, auto-merge it
|
|
124
|
-
*/
|
|
125
|
-
auto_merge?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Body param: Schema description
|
|
128
|
-
*/
|
|
129
|
-
description?: string | null;
|
|
130
|
-
/**
|
|
131
|
-
* Body param: Human-readable display label
|
|
132
|
-
*/
|
|
133
|
-
label?: string | null;
|
|
134
|
-
/**
|
|
135
|
-
* Body param: Schema name
|
|
136
|
-
*/
|
|
137
|
-
name?: string | null;
|
|
138
|
-
}
|
|
139
22
|
export declare namespace Databases {
|
|
140
|
-
export { type
|
|
23
|
+
export { type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
141
24
|
}
|
|
142
25
|
//# sourceMappingURL=databases.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,
|
|
1
|
+
{"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAC1E"}
|
|
@@ -6,25 +6,6 @@ const resource_1 = require("../../../core/resource.js");
|
|
|
6
6
|
const headers_1 = require("../../../internal/headers.js");
|
|
7
7
|
const path_1 = require("../../../internal/utils/path.js");
|
|
8
8
|
class Databases extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Update a database's metadata.
|
|
11
|
-
*
|
|
12
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
13
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
14
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
15
|
-
* affected).
|
|
16
|
-
*
|
|
17
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
18
|
-
*
|
|
19
|
-
* Raises: DatabaseNotFoundError: If database doesn't exist (404)
|
|
20
|
-
*/
|
|
21
|
-
update(databaseID, params, options) {
|
|
22
|
-
const { connection_id, ...body } = params;
|
|
23
|
-
return this._client.patch((0, path_1.path) `/api/v1/connections/${connection_id}/databases/${databaseID}`, {
|
|
24
|
-
body,
|
|
25
|
-
...options,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
9
|
/**
|
|
29
10
|
* Delete a schema from a connection.
|
|
30
11
|
*
|
|
@@ -40,22 +21,6 @@ class Databases extends resource_1.APIResource {
|
|
|
40
21
|
const { connection_id, database_id } = params;
|
|
41
22
|
return this._client.delete((0, path_1.path) `/api/v1/connections/${connection_id}/databases/${database_id}/schemas/${schemaID}`, { ...options, headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]) });
|
|
42
23
|
}
|
|
43
|
-
/**
|
|
44
|
-
* Update a schema's metadata.
|
|
45
|
-
*
|
|
46
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
47
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
48
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
49
|
-
* affected).
|
|
50
|
-
*
|
|
51
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
52
|
-
*
|
|
53
|
-
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
54
|
-
*/
|
|
55
|
-
updateSchema(schemaID, params, options) {
|
|
56
|
-
const { connection_id, database_id, ...body } = params;
|
|
57
|
-
return this._client.patch((0, path_1.path) `/api/v1/connections/${connection_id}/databases/${database_id}/schemas/${schemaID}`, { body, ...options });
|
|
58
|
-
}
|
|
59
24
|
}
|
|
60
25
|
exports.Databases = Databases;
|
|
61
26
|
//# sourceMappingURL=databases.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databases.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"databases.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAgB,EAChB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAA,WAAI,EAAA,uBAAuB,aAAa,cAAc,WAAW,YAAY,QAAQ,EAAE,EACvF,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAC7E,CAAC;IACJ,CAAC;CACF;AAvBD,8BAuBC"}
|
|
@@ -3,25 +3,6 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
export class Databases extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Update a database's metadata.
|
|
8
|
-
*
|
|
9
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
10
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
11
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
12
|
-
* affected).
|
|
13
|
-
*
|
|
14
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
15
|
-
*
|
|
16
|
-
* Raises: DatabaseNotFoundError: If database doesn't exist (404)
|
|
17
|
-
*/
|
|
18
|
-
update(databaseID, params, options) {
|
|
19
|
-
const { connection_id, ...body } = params;
|
|
20
|
-
return this._client.patch(path `/api/v1/connections/${connection_id}/databases/${databaseID}`, {
|
|
21
|
-
body,
|
|
22
|
-
...options,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
6
|
/**
|
|
26
7
|
* Delete a schema from a connection.
|
|
27
8
|
*
|
|
@@ -37,21 +18,5 @@ export class Databases extends APIResource {
|
|
|
37
18
|
const { connection_id, database_id } = params;
|
|
38
19
|
return this._client.delete(path `/api/v1/connections/${connection_id}/databases/${database_id}/schemas/${schemaID}`, { ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) });
|
|
39
20
|
}
|
|
40
|
-
/**
|
|
41
|
-
* Update a schema's metadata.
|
|
42
|
-
*
|
|
43
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
44
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
45
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
46
|
-
* affected).
|
|
47
|
-
*
|
|
48
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
49
|
-
*
|
|
50
|
-
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
51
|
-
*/
|
|
52
|
-
updateSchema(schemaID, params, options) {
|
|
53
|
-
const { connection_id, database_id, ...body } = params;
|
|
54
|
-
return this._client.patch(path `/api/v1/connections/${connection_id}/databases/${database_id}/schemas/${schemaID}`, { body, ...options });
|
|
55
|
-
}
|
|
56
21
|
}
|
|
57
22
|
//# sourceMappingURL=databases.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databases.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"databases.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAgB,EAChB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAI,CAAA,uBAAuB,aAAa,cAAc,WAAW,YAAY,QAAQ,EAAE,EACvF,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAC7E,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Connections, type Connection, type DatabaseConfig, type ConnectionListResponse, type ConnectionRetrieveCredentialResponse, type ConnectionSyncResponse, type ConnectionCreateParams, type ConnectionUpdateParams, } from "./connections.mjs";
|
|
2
|
-
export { Databases, type
|
|
2
|
+
export { Databases, type DatabaseDeleteSchemaParams } from "./databases.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EAAE,SAAS,EAAE,KAAK,0BAA0B,EAAE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Connections, type Connection, type DatabaseConfig, type ConnectionListResponse, type ConnectionRetrieveCredentialResponse, type ConnectionSyncResponse, type ConnectionCreateParams, type ConnectionUpdateParams, } from "./connections.js";
|
|
2
|
-
export { Databases, type
|
|
2
|
+
export { Databases, type DatabaseDeleteSchemaParams } from "./databases.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EAAE,SAAS,EAAE,KAAK,0BAA0B,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,4CAAyE;AAAhE,sGAAA,SAAS,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAQZ;OACM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAQZ;OACM,EAAE,SAAS,EAAmC"}
|
|
@@ -2,14 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as DatabasesAPI from './databases';
|
|
5
|
-
import {
|
|
6
|
-
DatabaseDeleteSchemaParams,
|
|
7
|
-
DatabaseUpdateParams,
|
|
8
|
-
DatabaseUpdateResponse,
|
|
9
|
-
DatabaseUpdateSchemaParams,
|
|
10
|
-
DatabaseUpdateSchemaResponse,
|
|
11
|
-
Databases,
|
|
12
|
-
} from './databases';
|
|
5
|
+
import { DatabaseDeleteSchemaParams, Databases } from './databases';
|
|
13
6
|
import { APIPromise } from '../../../core/api-promise';
|
|
14
7
|
import { buildHeaders } from '../../../internal/headers';
|
|
15
8
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -207,6 +200,11 @@ export namespace Connection {
|
|
|
207
200
|
*/
|
|
208
201
|
id: string;
|
|
209
202
|
|
|
203
|
+
/**
|
|
204
|
+
* Actual name of the database in the warehouse
|
|
205
|
+
*/
|
|
206
|
+
database_object_name: string;
|
|
207
|
+
|
|
210
208
|
/**
|
|
211
209
|
* Database name
|
|
212
210
|
*/
|
|
@@ -243,6 +241,11 @@ export namespace Connection {
|
|
|
243
241
|
*/
|
|
244
242
|
id: string;
|
|
245
243
|
|
|
244
|
+
/**
|
|
245
|
+
* Actual name of the schema in the warehouse
|
|
246
|
+
*/
|
|
247
|
+
database_object_name: string;
|
|
248
|
+
|
|
246
249
|
/**
|
|
247
250
|
* Schema name
|
|
248
251
|
*/
|
|
@@ -376,9 +379,9 @@ export namespace Connection {
|
|
|
376
379
|
*/
|
|
377
380
|
export interface DatabaseConfig {
|
|
378
381
|
/**
|
|
379
|
-
*
|
|
382
|
+
* The actual name of the database object in the warehouse
|
|
380
383
|
*/
|
|
381
|
-
|
|
384
|
+
database_object_name: string;
|
|
382
385
|
|
|
383
386
|
/**
|
|
384
387
|
* Description of the database
|
|
@@ -390,6 +393,11 @@ export interface DatabaseConfig {
|
|
|
390
393
|
*/
|
|
391
394
|
label?: string | null;
|
|
392
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Database name (defaults to database_object_name if not set)
|
|
398
|
+
*/
|
|
399
|
+
name?: string | null;
|
|
400
|
+
|
|
393
401
|
/**
|
|
394
402
|
* Schema configurations to include (empty = discover all schemas)
|
|
395
403
|
*/
|
|
@@ -407,9 +415,9 @@ export namespace DatabaseConfig {
|
|
|
407
415
|
*/
|
|
408
416
|
export interface Schema {
|
|
409
417
|
/**
|
|
410
|
-
*
|
|
418
|
+
* The actual name of the schema object in the warehouse
|
|
411
419
|
*/
|
|
412
|
-
|
|
420
|
+
database_object_name: string;
|
|
413
421
|
|
|
414
422
|
/**
|
|
415
423
|
* Description of the schema
|
|
@@ -420,6 +428,11 @@ export namespace DatabaseConfig {
|
|
|
420
428
|
* Human-readable label for the schema (defaults to name if not set)
|
|
421
429
|
*/
|
|
422
430
|
label?: string | null;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Schema name (defaults to database_object_name if not set)
|
|
434
|
+
*/
|
|
435
|
+
name?: string | null;
|
|
423
436
|
}
|
|
424
437
|
}
|
|
425
438
|
|
|
@@ -1055,12 +1068,5 @@ export declare namespace Connections {
|
|
|
1055
1068
|
type ConnectionUpdateParams as ConnectionUpdateParams,
|
|
1056
1069
|
};
|
|
1057
1070
|
|
|
1058
|
-
export {
|
|
1059
|
-
Databases as Databases,
|
|
1060
|
-
type DatabaseUpdateResponse as DatabaseUpdateResponse,
|
|
1061
|
-
type DatabaseUpdateSchemaResponse as DatabaseUpdateSchemaResponse,
|
|
1062
|
-
type DatabaseUpdateParams as DatabaseUpdateParams,
|
|
1063
|
-
type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams,
|
|
1064
|
-
type DatabaseUpdateSchemaParams as DatabaseUpdateSchemaParams,
|
|
1065
|
-
};
|
|
1071
|
+
export { Databases as Databases, type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
1066
1072
|
}
|
|
@@ -1,37 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as ConnectionsAPI from './connections';
|
|
5
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
6
5
|
import { buildHeaders } from '../../../internal/headers';
|
|
7
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
7
|
import { path } from '../../../internal/utils/path';
|
|
9
8
|
|
|
10
9
|
export class Databases extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Update a database's metadata.
|
|
13
|
-
*
|
|
14
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
15
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
16
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
17
|
-
* affected).
|
|
18
|
-
*
|
|
19
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
20
|
-
*
|
|
21
|
-
* Raises: DatabaseNotFoundError: If database doesn't exist (404)
|
|
22
|
-
*/
|
|
23
|
-
update(
|
|
24
|
-
databaseID: string,
|
|
25
|
-
params: DatabaseUpdateParams,
|
|
26
|
-
options?: RequestOptions,
|
|
27
|
-
): APIPromise<DatabaseUpdateResponse> {
|
|
28
|
-
const { connection_id, ...body } = params;
|
|
29
|
-
return this._client.patch(path`/api/v1/connections/${connection_id}/databases/${databaseID}`, {
|
|
30
|
-
body,
|
|
31
|
-
...options,
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
10
|
/**
|
|
36
11
|
* Delete a schema from a connection.
|
|
37
12
|
*
|
|
@@ -54,107 +29,6 @@ export class Databases extends APIResource {
|
|
|
54
29
|
{ ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) },
|
|
55
30
|
);
|
|
56
31
|
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Update a schema's metadata.
|
|
60
|
-
*
|
|
61
|
-
* Updates label and/or description fields directly. If a name change is requested,
|
|
62
|
-
* a GitHub PR is created to update view YAML files. The name change is applied to
|
|
63
|
-
* the DB when the PR merges (or immediately if auto_merge is true or no views are
|
|
64
|
-
* affected).
|
|
65
|
-
*
|
|
66
|
-
* RLS: Filtered to current client (DualClientRLSDB).
|
|
67
|
-
*
|
|
68
|
-
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
69
|
-
*/
|
|
70
|
-
updateSchema(
|
|
71
|
-
schemaID: string,
|
|
72
|
-
params: DatabaseUpdateSchemaParams,
|
|
73
|
-
options?: RequestOptions,
|
|
74
|
-
): APIPromise<DatabaseUpdateSchemaResponse> {
|
|
75
|
-
const { connection_id, database_id, ...body } = params;
|
|
76
|
-
return this._client.patch(
|
|
77
|
-
path`/api/v1/connections/${connection_id}/databases/${database_id}/schemas/${schemaID}`,
|
|
78
|
-
{ body, ...options },
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Response for database/schema updates that may involve a rename PR.
|
|
85
|
-
*/
|
|
86
|
-
export interface DatabaseUpdateResponse {
|
|
87
|
-
/**
|
|
88
|
-
* Updated connection
|
|
89
|
-
*/
|
|
90
|
-
connection: ConnectionsAPI.Connection;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* GitHub PR number
|
|
94
|
-
*/
|
|
95
|
-
pr_number?: number | null;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* PR status: 'open' or 'merged'
|
|
99
|
-
*/
|
|
100
|
-
pr_status?: string | null;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* GitHub PR URL (if rename PR created)
|
|
104
|
-
*/
|
|
105
|
-
pr_url?: string | null;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Response for database/schema updates that may involve a rename PR.
|
|
110
|
-
*/
|
|
111
|
-
export interface DatabaseUpdateSchemaResponse {
|
|
112
|
-
/**
|
|
113
|
-
* Updated connection
|
|
114
|
-
*/
|
|
115
|
-
connection: ConnectionsAPI.Connection;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* GitHub PR number
|
|
119
|
-
*/
|
|
120
|
-
pr_number?: number | null;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* PR status: 'open' or 'merged'
|
|
124
|
-
*/
|
|
125
|
-
pr_status?: string | null;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* GitHub PR URL (if rename PR created)
|
|
129
|
-
*/
|
|
130
|
-
pr_url?: string | null;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface DatabaseUpdateParams {
|
|
134
|
-
/**
|
|
135
|
-
* Path param
|
|
136
|
-
*/
|
|
137
|
-
connection_id: string;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Body param: If true and a name change requires a PR, auto-merge it
|
|
141
|
-
*/
|
|
142
|
-
auto_merge?: boolean;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Body param: Database description
|
|
146
|
-
*/
|
|
147
|
-
description?: string | null;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Body param: Human-readable display label
|
|
151
|
-
*/
|
|
152
|
-
label?: string | null;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Body param: Database name
|
|
156
|
-
*/
|
|
157
|
-
name?: string | null;
|
|
158
32
|
}
|
|
159
33
|
|
|
160
34
|
export interface DatabaseDeleteSchemaParams {
|
|
@@ -163,44 +37,6 @@ export interface DatabaseDeleteSchemaParams {
|
|
|
163
37
|
database_id: string;
|
|
164
38
|
}
|
|
165
39
|
|
|
166
|
-
export interface DatabaseUpdateSchemaParams {
|
|
167
|
-
/**
|
|
168
|
-
* Path param
|
|
169
|
-
*/
|
|
170
|
-
connection_id: string;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Path param
|
|
174
|
-
*/
|
|
175
|
-
database_id: string;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Body param: If true and a name change requires a PR, auto-merge it
|
|
179
|
-
*/
|
|
180
|
-
auto_merge?: boolean;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Body param: Schema description
|
|
184
|
-
*/
|
|
185
|
-
description?: string | null;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Body param: Human-readable display label
|
|
189
|
-
*/
|
|
190
|
-
label?: string | null;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Body param: Schema name
|
|
194
|
-
*/
|
|
195
|
-
name?: string | null;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
40
|
export declare namespace Databases {
|
|
199
|
-
export {
|
|
200
|
-
type DatabaseUpdateResponse as DatabaseUpdateResponse,
|
|
201
|
-
type DatabaseUpdateSchemaResponse as DatabaseUpdateSchemaResponse,
|
|
202
|
-
type DatabaseUpdateParams as DatabaseUpdateParams,
|
|
203
|
-
type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams,
|
|
204
|
-
type DatabaseUpdateSchemaParams as DatabaseUpdateSchemaParams,
|
|
205
|
-
};
|
|
41
|
+
export { type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
206
42
|
}
|
|
@@ -10,11 +10,4 @@ export {
|
|
|
10
10
|
type ConnectionCreateParams,
|
|
11
11
|
type ConnectionUpdateParams,
|
|
12
12
|
} from './connections';
|
|
13
|
-
export {
|
|
14
|
-
Databases,
|
|
15
|
-
type DatabaseUpdateResponse,
|
|
16
|
-
type DatabaseUpdateSchemaResponse,
|
|
17
|
-
type DatabaseUpdateParams,
|
|
18
|
-
type DatabaseDeleteSchemaParams,
|
|
19
|
-
type DatabaseUpdateSchemaParams,
|
|
20
|
-
} from './databases';
|
|
13
|
+
export { Databases, type DatabaseDeleteSchemaParams } from './databases';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.5.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.5.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|