@katerai/sdk 0.7.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/package.json +1 -1
  3. package/resources/v1/compiler.d.mts +1116 -0
  4. package/resources/v1/compiler.d.mts.map +1 -0
  5. package/resources/v1/compiler.d.ts +1116 -0
  6. package/resources/v1/compiler.d.ts.map +1 -0
  7. package/resources/v1/compiler.js +70 -0
  8. package/resources/v1/compiler.js.map +1 -0
  9. package/resources/v1/compiler.mjs +66 -0
  10. package/resources/v1/compiler.mjs.map +1 -0
  11. package/resources/v1/index.d.mts +2 -1
  12. package/resources/v1/index.d.mts.map +1 -1
  13. package/resources/v1/index.d.ts +2 -1
  14. package/resources/v1/index.d.ts.map +1 -1
  15. package/resources/v1/index.js +5 -3
  16. package/resources/v1/index.js.map +1 -1
  17. package/resources/v1/index.mjs +2 -1
  18. package/resources/v1/index.mjs.map +1 -1
  19. package/resources/v1/tenants/groups.d.mts +43 -0
  20. package/resources/v1/tenants/groups.d.mts.map +1 -0
  21. package/resources/v1/tenants/groups.d.ts +43 -0
  22. package/resources/v1/tenants/groups.d.ts.map +1 -0
  23. package/resources/v1/tenants/groups.js +20 -0
  24. package/resources/v1/tenants/groups.js.map +1 -0
  25. package/resources/v1/tenants/groups.mjs +16 -0
  26. package/resources/v1/tenants/groups.mjs.map +1 -0
  27. package/resources/v1/tenants/index.d.mts +3 -0
  28. package/resources/v1/tenants/index.d.mts.map +1 -0
  29. package/resources/v1/tenants/index.d.ts +3 -0
  30. package/resources/v1/tenants/index.d.ts.map +1 -0
  31. package/resources/v1/tenants/index.js +9 -0
  32. package/resources/v1/tenants/index.js.map +1 -0
  33. package/resources/v1/tenants/index.mjs +4 -0
  34. package/resources/v1/tenants/index.mjs.map +1 -0
  35. package/resources/v1/tenants/tenants.d.mts +169 -0
  36. package/resources/v1/tenants/tenants.d.mts.map +1 -0
  37. package/resources/v1/tenants/tenants.d.ts +169 -0
  38. package/resources/v1/tenants/tenants.d.ts.map +1 -0
  39. package/resources/v1/tenants/tenants.js +70 -0
  40. package/resources/v1/tenants/tenants.js.map +1 -0
  41. package/resources/v1/tenants/tenants.mjs +65 -0
  42. package/resources/v1/tenants/tenants.mjs.map +1 -0
  43. package/resources/v1/tenants.d.mts +1 -125
  44. package/resources/v1/tenants.d.mts.map +1 -1
  45. package/resources/v1/tenants.d.ts +1 -125
  46. package/resources/v1/tenants.d.ts.map +1 -1
  47. package/resources/v1/tenants.js +2 -46
  48. package/resources/v1/tenants.js.map +1 -1
  49. package/resources/v1/tenants.mjs +1 -44
  50. package/resources/v1/tenants.mjs.map +1 -1
  51. package/resources/v1/v1.d.mts +7 -3
  52. package/resources/v1/v1.d.mts.map +1 -1
  53. package/resources/v1/v1.d.ts +7 -3
  54. package/resources/v1/v1.d.ts.map +1 -1
  55. package/resources/v1/v1.js +6 -2
  56. package/resources/v1/v1.js.map +1 -1
  57. package/resources/v1/v1.mjs +6 -2
  58. package/resources/v1/v1.mjs.map +1 -1
  59. package/src/resources/v1/compiler.ts +1484 -0
  60. package/src/resources/v1/index.ts +18 -1
  61. package/src/resources/v1/tenants/groups.ts +52 -0
  62. package/src/resources/v1/tenants/index.ts +10 -0
  63. package/src/resources/v1/tenants/tenants.ts +220 -0
  64. package/src/resources/v1/tenants.ts +1 -162
  65. package/src/resources/v1/v1.ts +40 -2
  66. package/src/version.ts +1 -1
  67. package/version.d.mts +1 -1
  68. package/version.d.ts +1 -1
  69. package/version.js +1 -1
  70. package/version.mjs +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../src/resources/v1/compiler.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;I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AG,IAAI,CAAC;IAEtC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Compiler = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ class Compiler extends resource_1.APIResource {
8
+ /**
9
+ * Compile a resolved query to SQL.
10
+ *
11
+ * Takes a previously resolved query and generates the final SQL statement for the
12
+ * target dialect.
13
+ *
14
+ * RLS: Filtered to current client (ClientRLSDB).
15
+ */
16
+ compile(params, options) {
17
+ const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
18
+ return this._client.post('/api/v1/compiler/compile', {
19
+ query: { source },
20
+ body,
21
+ ...options,
22
+ headers: (0, headers_1.buildHeaders)([
23
+ { ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
24
+ options?.headers,
25
+ ]),
26
+ });
27
+ }
28
+ /**
29
+ * Resolve a query template with user-selected parameters.
30
+ *
31
+ * Takes a query reference and variable selections, returns the fully resolved
32
+ * query object ready for compilation.
33
+ *
34
+ * RLS: Filtered to current client (ClientRLSDB).
35
+ */
36
+ resolve(params, options) {
37
+ const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
38
+ return this._client.post('/api/v1/compiler/resolve', {
39
+ query: { source },
40
+ body,
41
+ ...options,
42
+ headers: (0, headers_1.buildHeaders)([
43
+ { ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
44
+ options?.headers,
45
+ ]),
46
+ });
47
+ }
48
+ /**
49
+ * Validate a schema file set against a connection.
50
+ *
51
+ * Checks all views, queries, and related schemas for correctness and returns any
52
+ * errors or warnings found.
53
+ *
54
+ * RLS: Filtered to current client (ClientRLSDB).
55
+ */
56
+ validate(params, options) {
57
+ const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
58
+ return this._client.post('/api/v1/compiler/validate', {
59
+ query: { source },
60
+ body,
61
+ ...options,
62
+ headers: (0, headers_1.buildHeaders)([
63
+ { ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
64
+ options?.headers,
65
+ ]),
66
+ });
67
+ }
68
+ }
69
+ exports.Compiler = Compiler;
70
+ //# sourceMappingURL=compiler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.js","sourceRoot":"","sources":["../../src/resources/v1/compiler.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAGtD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;OAOG;IACH,OAAO,CAAC,MAA6B,EAAE,OAAwB;QAC7D,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GA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AC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA/DD,4BA+DC"}
@@ -0,0 +1,66 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
4
+ export class Compiler extends APIResource {
5
+ /**
6
+ * Compile a resolved query to SQL.
7
+ *
8
+ * Takes a previously resolved query and generates the final SQL statement for the
9
+ * target dialect.
10
+ *
11
+ * RLS: Filtered to current client (ClientRLSDB).
12
+ */
13
+ compile(params, options) {
14
+ const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
15
+ return this._client.post('/api/v1/compiler/compile', {
16
+ query: { source },
17
+ body,
18
+ ...options,
19
+ headers: buildHeaders([
20
+ { ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
21
+ options?.headers,
22
+ ]),
23
+ });
24
+ }
25
+ /**
26
+ * Resolve a query template with user-selected parameters.
27
+ *
28
+ * Takes a query reference and variable selections, returns the fully resolved
29
+ * query object ready for compilation.
30
+ *
31
+ * RLS: Filtered to current client (ClientRLSDB).
32
+ */
33
+ resolve(params, options) {
34
+ const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
35
+ return this._client.post('/api/v1/compiler/resolve', {
36
+ query: { source },
37
+ body,
38
+ ...options,
39
+ headers: buildHeaders([
40
+ { ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
41
+ options?.headers,
42
+ ]),
43
+ });
44
+ }
45
+ /**
46
+ * Validate a schema file set against a connection.
47
+ *
48
+ * Checks all views, queries, and related schemas for correctness and returns any
49
+ * errors or warnings found.
50
+ *
51
+ * RLS: Filtered to current client (ClientRLSDB).
52
+ */
53
+ validate(params, options) {
54
+ const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
55
+ return this._client.post('/api/v1/compiler/validate', {
56
+ query: { source },
57
+ body,
58
+ ...options,
59
+ headers: buildHeaders([
60
+ { ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
61
+ options?.headers,
62
+ ]),
63
+ });
64
+ }
65
+ }
66
+ //# sourceMappingURL=compiler.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.mjs","sourceRoot":"","sources":["../../src/resources/v1/compiler.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,OAAO,CAAC,MAA6B,EAAE,OAAwB;QAC7D,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC5E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,MAA6B,EAAE,OAAwB;QAC7D,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC5E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,MAA8B,EAAE,OAAwB;QAC/D,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACpD,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC5E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,4 +1,5 @@
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";
1
2
  export { Connections, type Connection, type ConnectionListConnectionsResponse, type ConnectionListConnectionsParams, } from "./connections.mjs";
2
- export { Tenants, type ImportTenantsResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants.mjs";
3
+ export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants/index.mjs";
3
4
  export { V1 } from "./v1.mjs";
4
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,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
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"}
@@ -1,4 +1,5 @@
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";
1
2
  export { Connections, type Connection, type ConnectionListConnectionsResponse, type ConnectionListConnectionsParams, } from "./connections.js";
2
- export { Tenants, type ImportTenantsResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants.js";
3
+ export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants/index.js";
3
4
  export { V1 } from "./v1.js";
4
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,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
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"}
@@ -1,11 +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.Connections = void 0;
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; } });
5
7
  var connections_1 = require("./connections.js");
6
8
  Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return connections_1.Connections; } });
7
- var tenants_1 = require("./tenants.js");
8
- Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return tenants_1.Tenants; } });
9
+ var index_1 = require("./tenants/index.js");
10
+ Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return index_1.Tenants; } });
9
11
  var v1_1 = require("./v1.js");
10
12
  Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
11
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,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
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"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Compiler, } from "./compiler.mjs";
2
3
  export { Connections, } from "./connections.mjs";
3
- export { Tenants, } from "./tenants.mjs";
4
+ export { Tenants, } from "./tenants/index.mjs";
4
5
  export { V1 } from "./v1.mjs";
5
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,WAAW,GAIZ;OACM,EACL,OAAO,GAIR;OACM,EAAE,EAAE,EAAE"}
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"}
@@ -0,0 +1,43 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../../internal/request-options.mjs";
4
+ export declare class Groups extends APIResource {
5
+ /**
6
+ * Get all tenant groups as a TenantGroupSchema object.
7
+ *
8
+ * Returns tenant groups in the YAML-compatible schema format. Supports content
9
+ * negotiation: JSON by default, YAML with Accept: application/yaml.
10
+ *
11
+ * RLS: Filtered to current client (ClientRLSDB).
12
+ */
13
+ getTenantGroupsSchema(options?: RequestOptions): APIPromise<GroupGetTenantGroupsSchemaResponse>;
14
+ }
15
+ /**
16
+ * Schema for tenant group configuration files
17
+ */
18
+ export interface GroupGetTenantGroupsSchemaResponse {
19
+ /**
20
+ * Array of tenant group configurations
21
+ */
22
+ tenant_groups: Array<GroupGetTenantGroupsSchemaResponse.TenantGroup>;
23
+ }
24
+ export declare namespace GroupGetTenantGroupsSchemaResponse {
25
+ interface TenantGroup {
26
+ /**
27
+ * Unique Kater identifier
28
+ */
29
+ kater_id: string;
30
+ /**
31
+ * Name identifier
32
+ */
33
+ name: string;
34
+ /**
35
+ * Description text
36
+ */
37
+ description?: string | null;
38
+ }
39
+ }
40
+ export declare namespace Groups {
41
+ export { type GroupGetTenantGroupsSchemaResponse as GroupGetTenantGroupsSchemaResponse };
42
+ }
43
+ //# sourceMappingURL=groups.d.mts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,43 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import { APIPromise } from "../../../core/api-promise.js";
3
+ import { RequestOptions } from "../../../internal/request-options.js";
4
+ export declare class Groups extends APIResource {
5
+ /**
6
+ * Get all tenant groups as a TenantGroupSchema object.
7
+ *
8
+ * Returns tenant groups in the YAML-compatible schema format. Supports content
9
+ * negotiation: JSON by default, YAML with Accept: application/yaml.
10
+ *
11
+ * RLS: Filtered to current client (ClientRLSDB).
12
+ */
13
+ getTenantGroupsSchema(options?: RequestOptions): APIPromise<GroupGetTenantGroupsSchemaResponse>;
14
+ }
15
+ /**
16
+ * Schema for tenant group configuration files
17
+ */
18
+ export interface GroupGetTenantGroupsSchemaResponse {
19
+ /**
20
+ * Array of tenant group configurations
21
+ */
22
+ tenant_groups: Array<GroupGetTenantGroupsSchemaResponse.TenantGroup>;
23
+ }
24
+ export declare namespace GroupGetTenantGroupsSchemaResponse {
25
+ interface TenantGroup {
26
+ /**
27
+ * Unique Kater identifier
28
+ */
29
+ kater_id: string;
30
+ /**
31
+ * Name identifier
32
+ */
33
+ name: string;
34
+ /**
35
+ * Description text
36
+ */
37
+ description?: string | null;
38
+ }
39
+ }
40
+ export declare namespace Groups {
41
+ export { type GroupGetTenantGroupsSchemaResponse as GroupGetTenantGroupsSchemaResponse };
42
+ }
43
+ //# sourceMappingURL=groups.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Groups = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ class Groups extends resource_1.APIResource {
7
+ /**
8
+ * Get all tenant groups as a TenantGroupSchema object.
9
+ *
10
+ * Returns tenant groups in the YAML-compatible schema format. Supports content
11
+ * negotiation: JSON by default, YAML with Accept: application/yaml.
12
+ *
13
+ * RLS: Filtered to current client (ClientRLSDB).
14
+ */
15
+ getTenantGroupsSchema(options) {
16
+ return this._client.get('/api/v1/tenants/groups/schema', options);
17
+ }
18
+ }
19
+ exports.Groups = Groups;
20
+ //# sourceMappingURL=groups.js.map
@@ -0,0 +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,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAZD,wBAYC"}
@@ -0,0 +1,16 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ export class Groups extends APIResource {
4
+ /**
5
+ * Get all tenant groups as a TenantGroupSchema object.
6
+ *
7
+ * Returns tenant groups in the YAML-compatible schema format. Supports content
8
+ * negotiation: JSON by default, YAML with Accept: application/yaml.
9
+ *
10
+ * RLS: Filtered to current client (ClientRLSDB).
11
+ */
12
+ getTenantGroupsSchema(options) {
13
+ return this._client.get('/api/v1/tenants/groups/schema', options);
14
+ }
15
+ }
16
+ //# sourceMappingURL=groups.mjs.map
@@ -0,0 +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,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { Groups, type GroupGetTenantGroupsSchemaResponse } from "./groups.mjs";
2
+ export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export { Groups, type GroupGetTenantGroupsSchemaResponse } from "./groups.js";
2
+ export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Tenants = exports.Groups = void 0;
5
+ var groups_1 = require("./groups.js");
6
+ Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
7
+ var tenants_1 = require("./tenants.js");
8
+ Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return tenants_1.Tenants; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Groups } from "./groups.mjs";
3
+ export { Tenants, } from "./tenants.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,169 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as GroupsAPI from "./groups.mjs";
3
+ import { GroupGetTenantGroupsSchemaResponse, Groups } from "./groups.mjs";
4
+ import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { type Uploadable } from "../../../core/uploads.mjs";
6
+ import { RequestOptions } from "../../../internal/request-options.mjs";
7
+ export declare class Tenants extends APIResource {
8
+ groups: GroupsAPI.Groups;
9
+ /**
10
+ * Get all tenants as a TenantSchema object.
11
+ *
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.
15
+ *
16
+ * RLS: Filtered to current client (ClientRLSDB).
17
+ */
18
+ getTenantsSchema(options?: RequestOptions): APIPromise<TenantGetTenantsSchemaResponse>;
19
+ /**
20
+ * Import tenants from a CSV file using upsert semantics.
21
+ *
22
+ * Expected CSV format:
23
+ *
24
+ * - tenant_key (required): Unique tenant identifier
25
+ * - tenant_name (optional): Human-readable name
26
+ * - group_names (optional): Comma-separated list of group names
27
+ *
28
+ * Creates new tenants and updates existing ones with new name/groups. Groups are
29
+ * added additively (not replaced) and auto-created if needed.
30
+ *
31
+ * RLS: Filtered to current client (ClientRLSDB).
32
+ *
33
+ * Raises: ValidationError: If CSV format is invalid (400)
34
+ * TenantCreationNotAllowedError: If tenancy type is NONE (400)
35
+ */
36
+ importFromCsv(body: TenantImportFromCsvParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
37
+ /**
38
+ * Import tenants from a warehouse table using upsert semantics.
39
+ *
40
+ * Creates new tenants and updates existing ones with new name/groups. Groups are
41
+ * added additively (not replaced).
42
+ *
43
+ * Streams data from the warehouse in batches to handle large datasets without
44
+ * loading everything into memory.
45
+ *
46
+ * For tenants with groups, groups are aggregated per tenant key and auto-created
47
+ * if they don't exist.
48
+ *
49
+ * RLS: Filtered to current client (ClientRLSDB).
50
+ *
51
+ * Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
52
+ * TenantCreationNotAllowedError: If tenancy type is NONE (400)
53
+ */
54
+ importFromWarehouse(body: TenantImportFromWarehouseParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
55
+ }
56
+ /**
57
+ * Response model for tenant import operation.
58
+ */
59
+ export interface ImportTenantsResponse {
60
+ /**
61
+ * Unique tenant keys found in source
62
+ */
63
+ total_found: number;
64
+ /**
65
+ * New tenants created
66
+ */
67
+ total_imported: number;
68
+ /**
69
+ * Existing tenants updated
70
+ */
71
+ total_updated: number;
72
+ /**
73
+ * Tenant-specific errors
74
+ */
75
+ errors?: Array<ImportTenantsResponse.Error>;
76
+ /**
77
+ * Groups that were auto-created
78
+ */
79
+ groups_created?: Array<string>;
80
+ }
81
+ export declare namespace ImportTenantsResponse {
82
+ /**
83
+ * Error for a single tenant during import.
84
+ */
85
+ interface Error {
86
+ /**
87
+ * Error code
88
+ */
89
+ code: string;
90
+ /**
91
+ * Error message
92
+ */
93
+ message: string;
94
+ /**
95
+ * Tenant key that failed
96
+ */
97
+ tenant_key: string;
98
+ }
99
+ }
100
+ /**
101
+ * Schema for tenant configuration files
102
+ */
103
+ export interface TenantGetTenantsSchemaResponse {
104
+ /**
105
+ * Array of tenant configurations
106
+ */
107
+ tenants: Array<TenantGetTenantsSchemaResponse.Tenant>;
108
+ }
109
+ export declare namespace TenantGetTenantsSchemaResponse {
110
+ interface Tenant {
111
+ /**
112
+ * Unique Kater identifier
113
+ */
114
+ kater_id: string;
115
+ /**
116
+ * Unique key identifier for the tenant (e.g., 'acme_corp')
117
+ */
118
+ tenant_key: string;
119
+ /**
120
+ * References to tenant groups this tenant belongs to
121
+ */
122
+ groups?: Array<string> | null;
123
+ /**
124
+ * Human-readable display name for the tenant
125
+ */
126
+ name?: string | null;
127
+ }
128
+ }
129
+ export interface TenantImportFromCsvParams {
130
+ /**
131
+ * CSV file with tenant data
132
+ */
133
+ file: Uploadable;
134
+ }
135
+ export interface TenantImportFromWarehouseParams {
136
+ /**
137
+ * Warehouse connection ID to query
138
+ */
139
+ connection_id: string;
140
+ /**
141
+ * Database name containing the tenant table
142
+ */
143
+ database: string;
144
+ /**
145
+ * Schema name containing the tenant table
146
+ */
147
+ schema: string;
148
+ /**
149
+ * Table name containing tenant data
150
+ */
151
+ table: string;
152
+ /**
153
+ * Column name for tenant key
154
+ */
155
+ tenant_key_column: string;
156
+ /**
157
+ * Column name for tenant group (optional)
158
+ */
159
+ tenant_group_column?: string | null;
160
+ /**
161
+ * Column name for tenant display name (optional)
162
+ */
163
+ tenant_name_column?: string | null;
164
+ }
165
+ export declare namespace Tenants {
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 };
168
+ }
169
+ //# sourceMappingURL=tenants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAA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