@katerai/sdk 0.9.0 → 0.11.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 +52 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -0
- package/client.js.map +1 -1
- package/client.mjs +7 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/compiler/cache.d.mts +4 -0
- package/resources/v1/compiler/cache.d.mts.map +1 -0
- package/resources/v1/compiler/cache.d.ts +4 -0
- package/resources/v1/compiler/cache.d.ts.map +1 -0
- package/resources/v1/compiler/cache.js +9 -0
- package/resources/v1/compiler/cache.js.map +1 -0
- package/resources/v1/compiler/cache.mjs +5 -0
- package/resources/v1/compiler/cache.mjs.map +1 -0
- package/resources/v1/compiler/combination.d.mts +120 -0
- package/resources/v1/compiler/combination.d.mts.map +1 -0
- package/resources/v1/compiler/combination.d.ts +120 -0
- package/resources/v1/compiler/combination.d.ts.map +1 -0
- package/resources/v1/compiler/combination.js +30 -0
- package/resources/v1/compiler/combination.js.map +1 -0
- package/resources/v1/compiler/combination.mjs +26 -0
- package/resources/v1/compiler/combination.mjs.map +1 -0
- package/resources/v1/compiler/compiler.d.mts +2291 -0
- package/resources/v1/compiler/compiler.d.mts.map +1 -0
- package/resources/v1/compiler/compiler.d.ts +2291 -0
- package/resources/v1/compiler/compiler.d.ts.map +1 -0
- package/resources/v1/compiler/compiler.js +145 -0
- package/resources/v1/compiler/compiler.js.map +1 -0
- package/resources/v1/compiler/compiler.mjs +140 -0
- package/resources/v1/compiler/compiler.mjs.map +1 -0
- package/resources/v1/compiler/index.d.mts +5 -0
- package/resources/v1/compiler/index.d.mts.map +1 -0
- package/resources/v1/compiler/index.d.ts +5 -0
- package/resources/v1/compiler/index.d.ts.map +1 -0
- package/resources/v1/compiler/index.js +11 -0
- package/resources/v1/compiler/index.js.map +1 -0
- package/resources/v1/compiler/index.mjs +5 -0
- package/resources/v1/compiler/index.mjs.map +1 -0
- package/resources/v1/compiler/manifest.d.mts +52 -0
- package/resources/v1/compiler/manifest.d.mts.map +1 -0
- package/resources/v1/compiler/manifest.d.ts +52 -0
- package/resources/v1/compiler/manifest.d.ts.map +1 -0
- package/resources/v1/compiler/manifest.js +29 -0
- package/resources/v1/compiler/manifest.js.map +1 -0
- package/resources/v1/compiler/manifest.mjs +25 -0
- package/resources/v1/compiler/manifest.mjs.map +1 -0
- package/resources/v1/compiler.d.mts +1 -1142
- package/resources/v1/compiler.d.mts.map +1 -1
- package/resources/v1/compiler.d.ts +1 -1142
- package/resources/v1/compiler.d.ts.map +1 -1
- package/resources/v1/compiler.js +2 -66
- package/resources/v1/compiler.js.map +1 -1
- package/resources/v1/compiler.mjs +1 -64
- package/resources/v1/compiler.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +4 -4
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/tenants/tenants.d.mts +66 -10
- package/resources/v1/tenants/tenants.d.mts.map +1 -1
- package/resources/v1/tenants/tenants.d.ts +66 -10
- package/resources/v1/tenants/tenants.d.ts.map +1 -1
- package/resources/v1/tenants/tenants.js +27 -4
- package/resources/v1/tenants/tenants.js.map +1 -1
- package/resources/v1/tenants/tenants.mjs +27 -4
- package/resources/v1/tenants/tenants.mjs.map +1 -1
- package/resources/v1/v1.d.mts +3 -3
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +3 -3
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +9 -1
- package/src/resources/v1/compiler/cache.ts +5 -0
- package/src/resources/v1/compiler/combination.ts +157 -0
- package/src/resources/v1/compiler/compiler.ts +2991 -0
- package/src/resources/v1/compiler/index.ts +30 -0
- package/src/resources/v1/compiler/manifest.ts +80 -0
- package/src/resources/v1/compiler.ts +1 -1514
- package/src/resources/v1/index.ts +7 -1
- package/src/resources/v1/tenants/tenants.ts +99 -12
- package/src/resources/v1/v1.ts +21 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
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.Combination = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
+
class Combination extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Preview a single combination: resolve, compile, execute, and build config.
|
|
10
|
+
*
|
|
11
|
+
* Chains existing services to provide a single-call preview for the query gallery.
|
|
12
|
+
* Returns data + WidgetConfig for immediate rendering.
|
|
13
|
+
*
|
|
14
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
15
|
+
*/
|
|
16
|
+
preview(params, options) {
|
|
17
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
18
|
+
return this._client.post('/api/v1/compiler/combination/preview', {
|
|
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
|
+
exports.Combination = Combination;
|
|
30
|
+
//# sourceMappingURL=combination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combination.js","sourceRoot":"","sources":["../../../src/resources/v1/compiler/combination.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAGzD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;OAOG;IACH,OAAO,CACL,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC/D,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;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;AAxBD,kCAwBC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 Combination extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Preview a single combination: resolve, compile, execute, and build config.
|
|
7
|
+
*
|
|
8
|
+
* Chains existing services to provide a single-call preview for the query gallery.
|
|
9
|
+
* Returns data + WidgetConfig for immediate rendering.
|
|
10
|
+
*
|
|
11
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
12
|
+
*/
|
|
13
|
+
preview(params, options) {
|
|
14
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
15
|
+
return this._client.post('/api/v1/compiler/combination/preview', {
|
|
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
|
+
//# sourceMappingURL=combination.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combination.mjs","sourceRoot":"","sources":["../../../src/resources/v1/compiler/combination.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;OAOG;IACH,OAAO,CACL,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC/D,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"}
|