@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
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Cache } from './cache';
|
|
4
|
+
export { Combination, type CombinationPreviewResponse, type CombinationPreviewParams } from './combination';
|
|
5
|
+
export {
|
|
6
|
+
Compiler,
|
|
7
|
+
type ChartConfig,
|
|
8
|
+
type CompilerErrorItem,
|
|
9
|
+
type InlineField,
|
|
10
|
+
type Manifest,
|
|
11
|
+
type ManifestEntry,
|
|
12
|
+
type RefWithLabel,
|
|
13
|
+
type SubqueryCondition,
|
|
14
|
+
type CompilerCompileResponse,
|
|
15
|
+
type CompilerCompileDashboardResponse,
|
|
16
|
+
type CompilerEnumerateResponse,
|
|
17
|
+
type CompilerExecuteResponse,
|
|
18
|
+
type CompilerResolveResponse,
|
|
19
|
+
type CompilerValidateResponse,
|
|
20
|
+
type CompilerCompileParams,
|
|
21
|
+
type CompilerCompileDashboardParams,
|
|
22
|
+
type CompilerEnumerateParams,
|
|
23
|
+
type CompilerExecuteParams,
|
|
24
|
+
type CompilerResolveParams,
|
|
25
|
+
type CompilerValidateParams,
|
|
26
|
+
} from './compiler';
|
|
27
|
+
export {
|
|
28
|
+
type ManifestRegenerateAndCreatePrResponse,
|
|
29
|
+
type ManifestRegenerateAndCreatePrParams,
|
|
30
|
+
} from './manifest';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Manifest extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Regenerate manifest through compiler validation and open a PR.
|
|
11
|
+
*
|
|
12
|
+
* This endpoint is remote-source only. It regenerates compiler artifacts from the
|
|
13
|
+
* selected connection, then creates a GitHub PR with updated
|
|
14
|
+
* `.kater/manifest.yaml` (and dependency graph when requested).
|
|
15
|
+
*/
|
|
16
|
+
regenerateAndCreatePr(
|
|
17
|
+
params: ManifestRegenerateAndCreatePrParams,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<ManifestRegenerateAndCreatePrResponse> {
|
|
20
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
21
|
+
return this._client.post('/api/v1/compiler/manifest/recovery-pr', {
|
|
22
|
+
query: { source },
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
headers: buildHeaders([
|
|
26
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
27
|
+
options?.headers,
|
|
28
|
+
]),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Response model for manifest recovery PR creation.
|
|
35
|
+
*/
|
|
36
|
+
export interface ManifestRegenerateAndCreatePrResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Remote branch name used for the PR
|
|
39
|
+
*/
|
|
40
|
+
branch_name: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Created pull request number
|
|
44
|
+
*/
|
|
45
|
+
pr_number: number;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Created pull request URL
|
|
49
|
+
*/
|
|
50
|
+
pr_url: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ManifestRegenerateAndCreatePrParams {
|
|
54
|
+
/**
|
|
55
|
+
* Body param: Connection kater_id to regenerate and commit manifest for
|
|
56
|
+
*/
|
|
57
|
+
connection_id: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Query param
|
|
61
|
+
*/
|
|
62
|
+
source?: string | null;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Body param: Also include .kater/dependency_graph.yaml in the PR when available.
|
|
66
|
+
*/
|
|
67
|
+
include_dependency_graph?: boolean;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Header param
|
|
71
|
+
*/
|
|
72
|
+
'X-Kater-CLI-ID'?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export declare namespace Manifest {
|
|
76
|
+
export {
|
|
77
|
+
type ManifestRegenerateAndCreatePrResponse as ManifestRegenerateAndCreatePrResponse,
|
|
78
|
+
type ManifestRegenerateAndCreatePrParams as ManifestRegenerateAndCreatePrParams,
|
|
79
|
+
};
|
|
80
|
+
}
|