@katerai/sdk 0.6.0 → 0.8.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 +34 -0
- package/README.md +23 -16
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +37 -15
- package/client.js.map +1 -1
- package/client.mjs +37 -15
- 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 +2 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/index.d.mts +0 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -2
- package/resources/index.mjs.map +1 -1
- package/resources/v1/compiler.d.mts +1116 -0
- package/resources/v1/compiler.d.mts.map +1 -0
- package/resources/v1/compiler.d.ts +1116 -0
- package/resources/v1/compiler.d.ts.map +1 -0
- package/resources/v1/compiler.js +70 -0
- package/resources/v1/compiler.js.map +1 -0
- package/resources/v1/compiler.mjs +66 -0
- package/resources/v1/compiler.mjs.map +1 -0
- package/resources/v1/connections.d.mts +216 -1
- package/resources/v1/connections.d.mts.map +1 -1
- package/resources/v1/connections.d.ts +216 -1
- package/resources/v1/connections.d.ts.map +1 -1
- package/resources/v1/connections.js +22 -2
- package/resources/v1/connections.js.map +1 -1
- package/resources/v1/connections.mjs +20 -1
- package/resources/v1/connections.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -6
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -6
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +7 -13
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +2 -5
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/tenants/groups.d.mts +5 -5
- package/resources/v1/tenants/groups.d.mts.map +1 -1
- package/resources/v1/tenants/groups.d.ts +5 -5
- package/resources/v1/tenants/groups.d.ts.map +1 -1
- package/resources/v1/tenants/groups.js +1 -1
- package/resources/v1/tenants/groups.js.map +1 -1
- package/resources/v1/tenants/groups.mjs +1 -1
- package/resources/v1/tenants/groups.mjs.map +1 -1
- package/resources/v1/tenants/index.d.mts +2 -4
- package/resources/v1/tenants/index.d.mts.map +1 -1
- package/resources/v1/tenants/index.d.ts +2 -4
- package/resources/v1/tenants/index.d.ts.map +1 -1
- package/resources/v1/tenants/index.js +1 -5
- package/resources/v1/tenants/index.js.map +1 -1
- package/resources/v1/tenants/index.mjs +0 -2
- package/resources/v1/tenants/index.mjs.map +1 -1
- package/resources/v1/tenants/tenants.d.mts +72 -151
- package/resources/v1/tenants/tenants.d.mts.map +1 -1
- package/resources/v1/tenants/tenants.d.ts +72 -151
- package/resources/v1/tenants/tenants.d.ts.map +1 -1
- package/resources/v1/tenants/tenants.js +29 -72
- package/resources/v1/tenants/tenants.js.map +1 -1
- package/resources/v1/tenants/tenants.mjs +29 -72
- package/resources/v1/tenants/tenants.mjs.map +1 -1
- package/resources/v1/v1.d.mts +9 -21
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +9 -21
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +6 -18
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +6 -18
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +48 -23
- package/src/internal/utils/log.ts +1 -0
- package/src/resources/index.ts +0 -2
- package/src/resources/v1/compiler.ts +1484 -0
- package/src/resources/v1/connections.ts +277 -1
- package/src/resources/v1/index.ts +23 -43
- package/src/resources/v1/tenants/groups.ts +5 -5
- package/src/resources/v1/tenants/index.ts +5 -24
- package/src/resources/v1/tenants/tenants.ts +89 -213
- package/src/resources/v1/v1.ts +49 -101
- 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/healthz.d.mts +0 -16
- package/resources/healthz.d.mts.map +0 -1
- package/resources/healthz.d.ts +0 -16
- package/resources/healthz.d.ts.map +0 -1
- package/resources/healthz.js +0 -15
- package/resources/healthz.js.map +0 -1
- package/resources/healthz.mjs +0 -11
- package/resources/healthz.mjs.map +0 -1
- package/resources/readyz.d.mts +0 -16
- package/resources/readyz.d.mts.map +0 -1
- package/resources/readyz.d.ts +0 -16
- package/resources/readyz.d.ts.map +0 -1
- package/resources/readyz.js +0 -15
- package/resources/readyz.js.map +0 -1
- package/resources/readyz.mjs +0 -11
- package/resources/readyz.mjs.map +0 -1
- package/resources/v1/connections/connections.d.mts +0 -1470
- package/resources/v1/connections/connections.d.mts.map +0 -1
- package/resources/v1/connections/connections.d.ts +0 -1470
- package/resources/v1/connections/connections.d.ts.map +0 -1
- package/resources/v1/connections/connections.js +0 -163
- package/resources/v1/connections/connections.js.map +0 -1
- package/resources/v1/connections/connections.mjs +0 -158
- package/resources/v1/connections/connections.mjs.map +0 -1
- package/resources/v1/connections/databases.d.mts +0 -25
- package/resources/v1/connections/databases.d.mts.map +0 -1
- package/resources/v1/connections/databases.d.ts +0 -25
- package/resources/v1/connections/databases.d.ts.map +0 -1
- package/resources/v1/connections/databases.js +0 -26
- package/resources/v1/connections/databases.js.map +0 -1
- package/resources/v1/connections/databases.mjs +0 -22
- package/resources/v1/connections/databases.mjs.map +0 -1
- package/resources/v1/connections/index.d.mts +0 -5
- package/resources/v1/connections/index.d.mts.map +0 -1
- package/resources/v1/connections/index.d.ts +0 -5
- package/resources/v1/connections/index.d.ts.map +0 -1
- package/resources/v1/connections/index.js +0 -13
- package/resources/v1/connections/index.js.map +0 -1
- package/resources/v1/connections/index.mjs +0 -6
- package/resources/v1/connections/index.mjs.map +0 -1
- package/resources/v1/connections/views.d.mts +0 -77
- package/resources/v1/connections/views.d.mts.map +0 -1
- package/resources/v1/connections/views.d.ts +0 -77
- package/resources/v1/connections/views.d.ts.map +0 -1
- package/resources/v1/connections/views.js +0 -24
- package/resources/v1/connections/views.js.map +0 -1
- package/resources/v1/connections/views.mjs +0 -20
- package/resources/v1/connections/views.mjs.map +0 -1
- package/resources/v1/connections/yaml.d.mts +0 -57
- package/resources/v1/connections/yaml.d.mts.map +0 -1
- package/resources/v1/connections/yaml.d.ts +0 -57
- package/resources/v1/connections/yaml.d.ts.map +0 -1
- package/resources/v1/connections/yaml.js +0 -22
- package/resources/v1/connections/yaml.js.map +0 -1
- package/resources/v1/connections/yaml.mjs +0 -18
- package/resources/v1/connections/yaml.mjs.map +0 -1
- package/resources/v1/github/github.d.mts +0 -99
- package/resources/v1/github/github.d.mts.map +0 -1
- package/resources/v1/github/github.d.ts +0 -99
- package/resources/v1/github/github.d.ts.map +0 -1
- package/resources/v1/github/github.js +0 -49
- package/resources/v1/github/github.js.map +0 -1
- package/resources/v1/github/github.mjs +0 -44
- package/resources/v1/github/github.mjs.map +0 -1
- package/resources/v1/github/index.d.mts +0 -5
- package/resources/v1/github/index.d.mts.map +0 -1
- package/resources/v1/github/index.d.ts +0 -5
- package/resources/v1/github/index.d.ts.map +0 -1
- package/resources/v1/github/index.js +0 -13
- package/resources/v1/github/index.js.map +0 -1
- package/resources/v1/github/index.mjs +0 -6
- package/resources/v1/github/index.mjs.map +0 -1
- package/resources/v1/github/repos.d.mts +0 -54
- package/resources/v1/github/repos.d.mts.map +0 -1
- package/resources/v1/github/repos.d.ts +0 -54
- package/resources/v1/github/repos.d.ts.map +0 -1
- package/resources/v1/github/repos.js +0 -22
- package/resources/v1/github/repos.js.map +0 -1
- package/resources/v1/github/repos.mjs +0 -18
- package/resources/v1/github/repos.mjs.map +0 -1
- package/resources/v1/github/scaffold.d.mts +0 -29
- package/resources/v1/github/scaffold.d.mts.map +0 -1
- package/resources/v1/github/scaffold.d.ts +0 -29
- package/resources/v1/github/scaffold.d.ts.map +0 -1
- package/resources/v1/github/scaffold.js +0 -21
- package/resources/v1/github/scaffold.js.map +0 -1
- package/resources/v1/github/scaffold.mjs +0 -17
- package/resources/v1/github/scaffold.mjs.map +0 -1
- package/resources/v1/github/webhooks.d.mts +0 -28
- package/resources/v1/github/webhooks.d.mts.map +0 -1
- package/resources/v1/github/webhooks.d.ts +0 -28
- package/resources/v1/github/webhooks.d.ts.map +0 -1
- package/resources/v1/github/webhooks.js +0 -27
- package/resources/v1/github/webhooks.js.map +0 -1
- package/resources/v1/github/webhooks.mjs +0 -23
- package/resources/v1/github/webhooks.mjs.map +0 -1
- package/resources/v1/github.d.mts +0 -2
- package/resources/v1/github.d.mts.map +0 -1
- package/resources/v1/github.d.ts +0 -2
- package/resources/v1/github.d.ts.map +0 -1
- package/resources/v1/github.js +0 -6
- package/resources/v1/github.js.map +0 -1
- package/resources/v1/github.mjs +0 -3
- package/resources/v1/github.mjs.map +0 -1
- package/resources/v1/groups/groups.d.mts +0 -162
- package/resources/v1/groups/groups.d.mts.map +0 -1
- package/resources/v1/groups/groups.d.ts +0 -162
- package/resources/v1/groups/groups.d.ts.map +0 -1
- package/resources/v1/groups/groups.js +0 -81
- package/resources/v1/groups/groups.js.map +0 -1
- package/resources/v1/groups/groups.mjs +0 -76
- package/resources/v1/groups/groups.mjs.map +0 -1
- package/resources/v1/groups/index.d.mts +0 -3
- package/resources/v1/groups/index.d.mts.map +0 -1
- package/resources/v1/groups/index.d.ts +0 -3
- package/resources/v1/groups/index.d.ts.map +0 -1
- package/resources/v1/groups/index.js +0 -9
- package/resources/v1/groups/index.js.map +0 -1
- package/resources/v1/groups/index.mjs +0 -4
- package/resources/v1/groups/index.mjs.map +0 -1
- package/resources/v1/groups/tenants.d.mts +0 -55
- package/resources/v1/groups/tenants.d.mts.map +0 -1
- package/resources/v1/groups/tenants.d.ts +0 -55
- package/resources/v1/groups/tenants.d.ts.map +0 -1
- package/resources/v1/groups/tenants.js +0 -39
- package/resources/v1/groups/tenants.js.map +0 -1
- package/resources/v1/groups/tenants.mjs +0 -35
- package/resources/v1/groups/tenants.mjs.map +0 -1
- package/resources/v1/groups.d.mts +0 -2
- package/resources/v1/groups.d.mts.map +0 -1
- package/resources/v1/groups.d.ts +0 -2
- package/resources/v1/groups.d.ts.map +0 -1
- package/resources/v1/groups.js +0 -6
- package/resources/v1/groups.js.map +0 -1
- package/resources/v1/groups.mjs +0 -3
- package/resources/v1/groups.mjs.map +0 -1
- package/resources/v1/me.d.mts +0 -43
- package/resources/v1/me.d.mts.map +0 -1
- package/resources/v1/me.d.ts +0 -43
- package/resources/v1/me.d.ts.map +0 -1
- package/resources/v1/me.js +0 -20
- package/resources/v1/me.js.map +0 -1
- package/resources/v1/me.mjs +0 -16
- package/resources/v1/me.mjs.map +0 -1
- package/resources/v1/org/client.d.mts +0 -53
- package/resources/v1/org/client.d.mts.map +0 -1
- package/resources/v1/org/client.d.ts +0 -53
- package/resources/v1/org/client.d.ts.map +0 -1
- package/resources/v1/org/client.js +0 -25
- package/resources/v1/org/client.js.map +0 -1
- package/resources/v1/org/client.mjs +0 -21
- package/resources/v1/org/client.mjs.map +0 -1
- package/resources/v1/org/index.d.mts +0 -4
- package/resources/v1/org/index.d.mts.map +0 -1
- package/resources/v1/org/index.d.ts +0 -4
- package/resources/v1/org/index.d.ts.map +0 -1
- package/resources/v1/org/index.js +0 -11
- package/resources/v1/org/index.js.map +0 -1
- package/resources/v1/org/index.mjs +0 -5
- package/resources/v1/org/index.mjs.map +0 -1
- package/resources/v1/org/org.d.mts +0 -14
- package/resources/v1/org/org.d.mts.map +0 -1
- package/resources/v1/org/org.d.ts +0 -14
- package/resources/v1/org/org.d.ts.map +0 -1
- package/resources/v1/org/org.js +0 -21
- package/resources/v1/org/org.js.map +0 -1
- package/resources/v1/org/org.mjs +0 -16
- package/resources/v1/org/org.mjs.map +0 -1
- package/resources/v1/org/users.d.mts +0 -87
- package/resources/v1/org/users.d.mts.map +0 -1
- package/resources/v1/org/users.d.ts +0 -87
- package/resources/v1/org/users.d.ts.map +0 -1
- package/resources/v1/org/users.js +0 -60
- package/resources/v1/org/users.js.map +0 -1
- package/resources/v1/org/users.mjs +0 -56
- package/resources/v1/org/users.mjs.map +0 -1
- package/resources/v1/org.d.mts +0 -2
- package/resources/v1/org.d.mts.map +0 -1
- package/resources/v1/org.d.ts +0 -2
- package/resources/v1/org.d.ts.map +0 -1
- package/resources/v1/org.js +0 -6
- package/resources/v1/org.js.map +0 -1
- package/resources/v1/org.mjs +0 -3
- package/resources/v1/org.mjs.map +0 -1
- package/resources/v1/tenants/batch.d.mts +0 -159
- package/resources/v1/tenants/batch.d.mts.map +0 -1
- package/resources/v1/tenants/batch.d.ts +0 -159
- package/resources/v1/tenants/batch.d.ts.map +0 -1
- package/resources/v1/tenants/batch.js +0 -42
- package/resources/v1/tenants/batch.js.map +0 -1
- package/resources/v1/tenants/batch.mjs +0 -38
- package/resources/v1/tenants/batch.mjs.map +0 -1
- package/resources/v1/tenants/import.d.mts +0 -126
- package/resources/v1/tenants/import.d.mts.map +0 -1
- package/resources/v1/tenants/import.d.ts +0 -126
- package/resources/v1/tenants/import.d.ts.map +0 -1
- package/resources/v1/tenants/import.js +0 -50
- package/resources/v1/tenants/import.js.map +0 -1
- package/resources/v1/tenants/import.mjs +0 -46
- package/resources/v1/tenants/import.mjs.map +0 -1
- package/src/resources/healthz.ts +0 -20
- package/src/resources/readyz.ts +0 -20
- package/src/resources/v1/connections/connections.ts +0 -1905
- package/src/resources/v1/connections/databases.ts +0 -42
- package/src/resources/v1/connections/index.ts +0 -33
- package/src/resources/v1/connections/views.ts +0 -112
- package/src/resources/v1/connections/yaml.ts +0 -81
- package/src/resources/v1/github/github.ts +0 -165
- package/src/resources/v1/github/index.ts +0 -20
- package/src/resources/v1/github/repos.ts +0 -85
- package/src/resources/v1/github/scaffold.ts +0 -44
- package/src/resources/v1/github/webhooks.ts +0 -60
- package/src/resources/v1/github.ts +0 -3
- package/src/resources/v1/groups/groups.ts +0 -218
- package/src/resources/v1/groups/index.ts +0 -10
- package/src/resources/v1/groups/tenants.ts +0 -78
- package/src/resources/v1/groups.ts +0 -3
- package/src/resources/v1/me.ts +0 -62
- package/src/resources/v1/org/client.ts +0 -81
- package/src/resources/v1/org/index.ts +0 -11
- package/src/resources/v1/org/org.ts +0 -32
- package/src/resources/v1/org/users.ts +0 -127
- package/src/resources/v1/org.ts +0 -3
- package/src/resources/v1/tenants/batch.ts +0 -200
- package/src/resources/v1/tenants/import.ts +0 -158
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
export class Connections extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* List warehouse connections for the client.
|
|
6
|
+
*
|
|
7
|
+
* Filter connections by approval status using the `status` query parameter:
|
|
8
|
+
*
|
|
9
|
+
* - `approved` (default): Only approved connections (is_pending_approval=false)
|
|
10
|
+
* - `pending`: Only connections awaiting PR approval (is_pending_approval=true)
|
|
11
|
+
* - `all`: All connections regardless of approval status
|
|
12
|
+
*
|
|
13
|
+
* Pending connections include their approval PR URLs when available. Returns empty
|
|
14
|
+
* list if GitHub is not configured.
|
|
15
|
+
*
|
|
16
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
17
|
+
*/
|
|
18
|
+
listConnections(query = {}, options) {
|
|
19
|
+
return this._client.get('/api/v1/connections', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
3
22
|
//# sourceMappingURL=connections.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;OAaG;IACH,eAAe,CACb,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
package/resources/v1/index.d.mts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { Me, type ClientUser, type ClientUserRole } from "./me.mjs";
|
|
5
|
-
export { Org } from "./org/index.mjs";
|
|
6
|
-
export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantRetrieveSchemaResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants/index.mjs";
|
|
1
|
+
export { Compiler, type ChartConfig, type CompilerErrorItem, type InlineField, type Manifest, type ManifestEntry, type RefWithLabel, type SubqueryCondition, type CompilerCompileResponse, type CompilerResolveResponse, type CompilerValidateResponse, type CompilerCompileParams, type CompilerResolveParams, type CompilerValidateParams, } from "./compiler.mjs";
|
|
2
|
+
export { Connections, type Connection, type ConnectionListConnectionsResponse, type ConnectionListConnectionsParams, } from "./connections.mjs";
|
|
3
|
+
export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants/index.mjs";
|
|
7
4
|
export { V1 } from "./v1.mjs";
|
|
8
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { Me, type ClientUser, type ClientUserRole } from "./me.js";
|
|
5
|
-
export { Org } from "./org/index.js";
|
|
6
|
-
export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantRetrieveSchemaResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants/index.js";
|
|
1
|
+
export { Compiler, type ChartConfig, type CompilerErrorItem, type InlineField, type Manifest, type ManifestEntry, type RefWithLabel, type SubqueryCondition, type CompilerCompileResponse, type CompilerResolveResponse, type CompilerValidateResponse, type CompilerCompileParams, type CompilerResolveParams, type CompilerValidateParams, } from "./compiler.js";
|
|
2
|
+
export { Connections, type Connection, type ConnectionListConnectionsResponse, type ConnectionListConnectionsParams, } from "./connections.js";
|
|
3
|
+
export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants/index.js";
|
|
7
4
|
export { V1 } from "./v1.js";
|
|
8
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V1 = exports.Tenants = exports.
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
var
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
-
var me_1 = require("./me.js");
|
|
12
|
-
Object.defineProperty(exports, "Me", { enumerable: true, get: function () { return me_1.Me; } });
|
|
13
|
-
var index_4 = require("./org/index.js");
|
|
14
|
-
Object.defineProperty(exports, "Org", { enumerable: true, get: function () { return index_4.Org; } });
|
|
15
|
-
var index_5 = require("./tenants/index.js");
|
|
16
|
-
Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return index_5.Tenants; } });
|
|
4
|
+
exports.V1 = exports.Tenants = exports.Connections = exports.Compiler = void 0;
|
|
5
|
+
var compiler_1 = require("./compiler.js");
|
|
6
|
+
Object.defineProperty(exports, "Compiler", { enumerable: true, get: function () { return compiler_1.Compiler; } });
|
|
7
|
+
var connections_1 = require("./connections.js");
|
|
8
|
+
Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return connections_1.Connections; } });
|
|
9
|
+
var index_1 = require("./tenants/index.js");
|
|
10
|
+
Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return index_1.Tenants; } });
|
|
17
11
|
var v1_1 = require("./v1.js");
|
|
18
12
|
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
19
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAeoB;AAdlB,oGAAA,QAAQ,OAAA;AAeV,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,4CAMyB;AALvB,gGAAA,OAAO,OAAA;AAMT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/v1/index.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { Groups, } from "./groups/index.mjs";
|
|
5
|
-
export { Me } from "./me.mjs";
|
|
6
|
-
export { Org } from "./org/index.mjs";
|
|
2
|
+
export { Compiler, } from "./compiler.mjs";
|
|
3
|
+
export { Connections, } from "./connections.mjs";
|
|
7
4
|
export { Tenants, } from "./tenants/index.mjs";
|
|
8
5
|
export { V1 } from "./v1.mjs";
|
|
9
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAcT;OACM,EACL,WAAW,GAIZ;OACM,EACL,OAAO,GAKR;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -10,18 +10,18 @@ export declare class Groups extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
getTenantGroupsSchema(options?: RequestOptions): APIPromise<GroupGetTenantGroupsSchemaResponse>;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Schema for tenant group configuration files
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface GroupGetTenantGroupsSchemaResponse {
|
|
19
19
|
/**
|
|
20
20
|
* Array of tenant group configurations
|
|
21
21
|
*/
|
|
22
|
-
tenant_groups: Array<
|
|
22
|
+
tenant_groups: Array<GroupGetTenantGroupsSchemaResponse.TenantGroup>;
|
|
23
23
|
}
|
|
24
|
-
export declare namespace
|
|
24
|
+
export declare namespace GroupGetTenantGroupsSchemaResponse {
|
|
25
25
|
interface TenantGroup {
|
|
26
26
|
/**
|
|
27
27
|
* Unique Kater identifier
|
|
@@ -38,6 +38,6 @@ export declare namespace GroupRetrieveSchemaResponse {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
export declare namespace Groups {
|
|
41
|
-
export { type
|
|
41
|
+
export { type GroupGetTenantGroupsSchemaResponse as GroupGetTenantGroupsSchemaResponse };
|
|
42
42
|
}
|
|
43
43
|
//# sourceMappingURL=groups.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGhG;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
|
|
@@ -10,18 +10,18 @@ export declare class Groups extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
getTenantGroupsSchema(options?: RequestOptions): APIPromise<GroupGetTenantGroupsSchemaResponse>;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Schema for tenant group configuration files
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface GroupGetTenantGroupsSchemaResponse {
|
|
19
19
|
/**
|
|
20
20
|
* Array of tenant group configurations
|
|
21
21
|
*/
|
|
22
|
-
tenant_groups: Array<
|
|
22
|
+
tenant_groups: Array<GroupGetTenantGroupsSchemaResponse.TenantGroup>;
|
|
23
23
|
}
|
|
24
|
-
export declare namespace
|
|
24
|
+
export declare namespace GroupGetTenantGroupsSchemaResponse {
|
|
25
25
|
interface TenantGroup {
|
|
26
26
|
/**
|
|
27
27
|
* Unique Kater identifier
|
|
@@ -38,6 +38,6 @@ export declare namespace GroupRetrieveSchemaResponse {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
export declare namespace Groups {
|
|
41
|
-
export { type
|
|
41
|
+
export { type GroupGetTenantGroupsSchemaResponse as GroupGetTenantGroupsSchemaResponse };
|
|
42
42
|
}
|
|
43
43
|
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGhG;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAZD,wBAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { Import, type ImportTenants, type ImportFromCsvParams, type ImportFromWarehouseParams, } from "./import.mjs";
|
|
4
|
-
export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantRetrieveSchemaResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants.mjs";
|
|
1
|
+
export { Groups, type GroupGetTenantGroupsSchemaResponse } from "./groups.mjs";
|
|
2
|
+
export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants.mjs";
|
|
5
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,kCAAkC,EAAE;OACnD,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { Import, type ImportTenants, type ImportFromCsvParams, type ImportFromWarehouseParams, } from "./import.js";
|
|
4
|
-
export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantRetrieveSchemaResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants.js";
|
|
1
|
+
export { Groups, type GroupGetTenantGroupsSchemaResponse } from "./groups.js";
|
|
2
|
+
export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants.js";
|
|
5
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,kCAAkC,EAAE;OACnD,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Tenants = exports.
|
|
5
|
-
var batch_1 = require("./batch.js");
|
|
6
|
-
Object.defineProperty(exports, "Batch", { enumerable: true, get: function () { return batch_1.Batch; } });
|
|
4
|
+
exports.Tenants = exports.Groups = void 0;
|
|
7
5
|
var groups_1 = require("./groups.js");
|
|
8
6
|
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
|
|
9
|
-
var import_1 = require("./import.js");
|
|
10
|
-
Object.defineProperty(exports, "Import", { enumerable: true, get: function () { return import_1.Import; } });
|
|
11
7
|
var tenants_1 = require("./tenants.js");
|
|
12
8
|
Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return tenants_1.Tenants; } });
|
|
13
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAA2E;AAAlE,gGAAA,MAAM,OAAA;AACf,wCAMmB;AALjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { Batch, } from "./batch.mjs";
|
|
3
2
|
export { Groups } from "./groups.mjs";
|
|
4
|
-
export { Import, } from "./import.mjs";
|
|
5
3
|
export { Tenants, } from "./tenants.mjs";
|
|
6
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAA2C;OACnD,EACL,OAAO,GAKR"}
|
|
@@ -1,185 +1,112 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as BatchAPI from "./batch.mjs";
|
|
3
|
-
import { Batch, BatchCreateParams, BatchCreateResponse, BatchDeleteParams, BatchDeleteResponse, BatchTenantError, BatchTenantSuccess, BatchUpdateParams, BatchUpdateResponse } from "./batch.mjs";
|
|
4
2
|
import * as GroupsAPI from "./groups.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import * as ImportAPI from "./import.mjs";
|
|
7
|
-
import { Import, ImportFromCsvParams, ImportFromWarehouseParams, ImportTenants } from "./import.mjs";
|
|
3
|
+
import { GroupGetTenantGroupsSchemaResponse, Groups } from "./groups.mjs";
|
|
8
4
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { type Uploadable } from "../../../core/uploads.mjs";
|
|
9
6
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
10
7
|
export declare class Tenants extends APIResource {
|
|
11
|
-
batch: BatchAPI.Batch;
|
|
12
|
-
import: ImportAPI.Import;
|
|
13
8
|
groups: GroupsAPI.Groups;
|
|
14
9
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* Validates the client's tenancy type and creates the tenant accordingly:
|
|
18
|
-
*
|
|
19
|
-
* - ROW tenancy: Creates tenant with optional group associations
|
|
20
|
-
* - DATABASE tenancy: Requires database_name, creates tenant with database
|
|
21
|
-
* association
|
|
22
|
-
* - NONE tenancy: Returns error (tenant creation not allowed)
|
|
23
|
-
*
|
|
24
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
25
|
-
*/
|
|
26
|
-
create(body: TenantCreateParams, options?: RequestOptions): APIPromise<Tenant>;
|
|
27
|
-
/**
|
|
28
|
-
* Get a single tenant by ID.
|
|
10
|
+
* Get all tenants as a TenantSchema object.
|
|
29
11
|
*
|
|
30
|
-
* Returns the
|
|
12
|
+
* Returns tenants in the YAML-compatible schema format with group references.
|
|
13
|
+
* Supports content negotiation: JSON by default, YAML with Accept:
|
|
14
|
+
* application/yaml.
|
|
31
15
|
*
|
|
32
16
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
33
|
-
*
|
|
34
|
-
* Raises: TenantNotFoundError: If tenant doesn't exist (404)
|
|
35
17
|
*/
|
|
36
|
-
|
|
18
|
+
getTenantsSchema(options?: RequestOptions): APIPromise<TenantGetTenantsSchemaResponse>;
|
|
37
19
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* Updates tenant metadata, group associations, and/or database associations. Group
|
|
41
|
-
* associations use replace semantics:
|
|
20
|
+
* Import tenants from a CSV file using upsert semantics.
|
|
42
21
|
*
|
|
43
|
-
*
|
|
44
|
-
* - Pass empty list to remove all group associations
|
|
45
|
-
* - Pass list of names to replace all associations
|
|
22
|
+
* Expected CSV format:
|
|
46
23
|
*
|
|
47
|
-
*
|
|
24
|
+
* - tenant_key (required): Unique tenant identifier
|
|
25
|
+
* - tenant_name (optional): Human-readable name
|
|
26
|
+
* - group_names (optional): Comma-separated list of group names
|
|
48
27
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
28
|
+
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
29
|
+
* added additively (not replaced) and auto-created if needed.
|
|
51
30
|
*
|
|
52
31
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
53
32
|
*
|
|
54
|
-
* Raises:
|
|
33
|
+
* Raises: ValidationError: If CSV format is invalid (400)
|
|
34
|
+
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
55
35
|
*/
|
|
56
|
-
|
|
36
|
+
importFromCsv(body: TenantImportFromCsvParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
57
37
|
/**
|
|
58
|
-
*
|
|
38
|
+
* Import tenants from a warehouse table using upsert semantics.
|
|
59
39
|
*
|
|
60
|
-
*
|
|
40
|
+
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
41
|
+
* added additively (not replaced).
|
|
61
42
|
*
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
list(options?: RequestOptions): APIPromise<TenantListResponse>;
|
|
65
|
-
/**
|
|
66
|
-
* Delete a tenant.
|
|
43
|
+
* Streams data from the warehouse in batches to handle large datasets without
|
|
44
|
+
* loading everything into memory.
|
|
67
45
|
*
|
|
68
|
-
*
|
|
46
|
+
* For tenants with groups, groups are aggregated per tenant key and auto-created
|
|
47
|
+
* if they don't exist.
|
|
69
48
|
*
|
|
70
49
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
71
50
|
*
|
|
72
|
-
* Raises:
|
|
51
|
+
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
52
|
+
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
73
53
|
*/
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Get all tenants as a TenantSchema object.
|
|
77
|
-
*
|
|
78
|
-
* Returns tenants in the YAML-compatible schema format with group references.
|
|
79
|
-
* Supports content negotiation: JSON by default, YAML with Accept:
|
|
80
|
-
* application/yaml.
|
|
81
|
-
*
|
|
82
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
83
|
-
*/
|
|
84
|
-
retrieveSchema(options?: RequestOptions): APIPromise<TenantRetrieveSchemaResponse>;
|
|
54
|
+
importFromWarehouse(body: TenantImportFromWarehouseParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
85
55
|
}
|
|
86
56
|
/**
|
|
87
|
-
*
|
|
57
|
+
* Response model for tenant import operation.
|
|
88
58
|
*/
|
|
89
|
-
export interface
|
|
59
|
+
export interface ImportTenantsResponse {
|
|
90
60
|
/**
|
|
91
|
-
* Unique tenant
|
|
61
|
+
* Unique tenant keys found in source
|
|
92
62
|
*/
|
|
93
|
-
|
|
63
|
+
total_found: number;
|
|
94
64
|
/**
|
|
95
|
-
*
|
|
65
|
+
* New tenants created
|
|
96
66
|
*/
|
|
97
|
-
|
|
67
|
+
total_imported: number;
|
|
98
68
|
/**
|
|
99
|
-
*
|
|
69
|
+
* Existing tenants updated
|
|
100
70
|
*/
|
|
101
|
-
|
|
71
|
+
total_updated: number;
|
|
102
72
|
/**
|
|
103
|
-
*
|
|
73
|
+
* Tenant-specific errors
|
|
104
74
|
*/
|
|
105
|
-
|
|
75
|
+
errors?: Array<ImportTenantsResponse.Error>;
|
|
106
76
|
/**
|
|
107
|
-
*
|
|
77
|
+
* Groups that were auto-created
|
|
108
78
|
*/
|
|
109
|
-
|
|
79
|
+
groups_created?: Array<string>;
|
|
110
80
|
}
|
|
111
|
-
|
|
112
|
-
* Response model for a single tenant.
|
|
113
|
-
*/
|
|
114
|
-
export interface Tenant {
|
|
81
|
+
export declare namespace ImportTenantsResponse {
|
|
115
82
|
/**
|
|
116
|
-
*
|
|
83
|
+
* Error for a single tenant during import.
|
|
117
84
|
*/
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Creation timestamp
|
|
121
|
-
*/
|
|
122
|
-
created_at: string;
|
|
123
|
-
/**
|
|
124
|
-
* Associated databases
|
|
125
|
-
*/
|
|
126
|
-
databases: Array<Tenant.Database>;
|
|
127
|
-
/**
|
|
128
|
-
* Associated groups
|
|
129
|
-
*/
|
|
130
|
-
groups: Array<Tenant.Group>;
|
|
131
|
-
/**
|
|
132
|
-
* Human-readable tenant name
|
|
133
|
-
*/
|
|
134
|
-
name: string | null;
|
|
135
|
-
/**
|
|
136
|
-
* Unique tenant identifier
|
|
137
|
-
*/
|
|
138
|
-
tenant_key: string;
|
|
139
|
-
/**
|
|
140
|
-
* Last update timestamp
|
|
141
|
-
*/
|
|
142
|
-
updated_at: string;
|
|
143
|
-
}
|
|
144
|
-
export declare namespace Tenant {
|
|
145
|
-
/**
|
|
146
|
-
* Database information in tenant responses.
|
|
147
|
-
*/
|
|
148
|
-
interface Database {
|
|
149
|
-
/**
|
|
150
|
-
* Database ID
|
|
151
|
-
*/
|
|
152
|
-
id: string;
|
|
85
|
+
interface Error {
|
|
153
86
|
/**
|
|
154
|
-
*
|
|
87
|
+
* Error code
|
|
155
88
|
*/
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Group information in tenant responses.
|
|
160
|
-
*/
|
|
161
|
-
interface Group {
|
|
89
|
+
code: string;
|
|
162
90
|
/**
|
|
163
|
-
*
|
|
91
|
+
* Error message
|
|
164
92
|
*/
|
|
165
|
-
|
|
93
|
+
message: string;
|
|
166
94
|
/**
|
|
167
|
-
*
|
|
95
|
+
* Tenant key that failed
|
|
168
96
|
*/
|
|
169
|
-
|
|
97
|
+
tenant_key: string;
|
|
170
98
|
}
|
|
171
99
|
}
|
|
172
|
-
export type TenantListResponse = Array<Tenant>;
|
|
173
100
|
/**
|
|
174
101
|
* Schema for tenant configuration files
|
|
175
102
|
*/
|
|
176
|
-
export interface
|
|
103
|
+
export interface TenantGetTenantsSchemaResponse {
|
|
177
104
|
/**
|
|
178
105
|
* Array of tenant configurations
|
|
179
106
|
*/
|
|
180
|
-
tenants: Array<
|
|
107
|
+
tenants: Array<TenantGetTenantsSchemaResponse.Tenant>;
|
|
181
108
|
}
|
|
182
|
-
export declare namespace
|
|
109
|
+
export declare namespace TenantGetTenantsSchemaResponse {
|
|
183
110
|
interface Tenant {
|
|
184
111
|
/**
|
|
185
112
|
* Unique Kater identifier
|
|
@@ -199,50 +126,44 @@ export declare namespace TenantRetrieveSchemaResponse {
|
|
|
199
126
|
name?: string | null;
|
|
200
127
|
}
|
|
201
128
|
}
|
|
202
|
-
export interface
|
|
203
|
-
/**
|
|
204
|
-
* Unique tenant identifier within the client
|
|
205
|
-
*/
|
|
206
|
-
tenant_key: string;
|
|
129
|
+
export interface TenantImportFromCsvParams {
|
|
207
130
|
/**
|
|
208
|
-
*
|
|
131
|
+
* CSV file with tenant data
|
|
209
132
|
*/
|
|
210
|
-
|
|
133
|
+
file: Uploadable;
|
|
134
|
+
}
|
|
135
|
+
export interface TenantImportFromWarehouseParams {
|
|
211
136
|
/**
|
|
212
|
-
*
|
|
137
|
+
* Warehouse connection ID to query
|
|
213
138
|
*/
|
|
214
|
-
|
|
139
|
+
connection_id: string;
|
|
215
140
|
/**
|
|
216
|
-
*
|
|
141
|
+
* Database name containing the tenant table
|
|
217
142
|
*/
|
|
218
|
-
|
|
143
|
+
database: string;
|
|
219
144
|
/**
|
|
220
|
-
*
|
|
145
|
+
* Schema name containing the tenant table
|
|
221
146
|
*/
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
export interface TenantUpdateParams {
|
|
147
|
+
schema: string;
|
|
225
148
|
/**
|
|
226
|
-
*
|
|
149
|
+
* Table name containing tenant data
|
|
227
150
|
*/
|
|
228
|
-
|
|
151
|
+
table: string;
|
|
229
152
|
/**
|
|
230
|
-
*
|
|
153
|
+
* Column name for tenant key
|
|
231
154
|
*/
|
|
232
|
-
|
|
155
|
+
tenant_key_column: string;
|
|
233
156
|
/**
|
|
234
|
-
*
|
|
157
|
+
* Column name for tenant group (optional)
|
|
235
158
|
*/
|
|
236
|
-
|
|
159
|
+
tenant_group_column?: string | null;
|
|
237
160
|
/**
|
|
238
|
-
*
|
|
161
|
+
* Column name for tenant display name (optional)
|
|
239
162
|
*/
|
|
240
|
-
|
|
163
|
+
tenant_name_column?: string | null;
|
|
241
164
|
}
|
|
242
165
|
export declare namespace Tenants {
|
|
243
|
-
export { type
|
|
244
|
-
export {
|
|
245
|
-
export { Import as Import, type ImportTenants as ImportTenants, type ImportFromCsvParams as ImportFromCsvParams, type ImportFromWarehouseParams as ImportFromWarehouseParams, };
|
|
246
|
-
export { Groups as Groups, type GroupRetrieveSchemaResponse as GroupRetrieveSchemaResponse };
|
|
166
|
+
export { type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
|
|
167
|
+
export { Groups as Groups, type GroupGetTenantGroupsSchemaResponse as GroupGetTenantGroupsSchemaResponse };
|
|
247
168
|
}
|
|
248
169
|
//# sourceMappingURL=tenants.d.mts.map
|