@camunda/ccma-api 1.1.0 → 2.0.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/dist/index.d.ts +5 -5
- package/dist/index.js.map +2 -2
- package/dist/services/accounts/hdp.service.d.ts +15 -0
- package/dist/services/accounts/hdp.service.js +42 -0
- package/dist/services/accounts/hdp.service.js.map +2 -2
- package/dist/services/accounts/orgs.service.d.ts +33 -1
- package/dist/services/accounts/orgs.service.js +73 -0
- package/dist/services/accounts/orgs.service.js.map +2 -2
- package/dist/services/accounts/orgs.v2.service.js +23 -7
- package/dist/services/accounts/orgs.v2.service.js.map +2 -2
- package/dist/services/accounts/orgs.v2.service.spec.d.ts +1 -0
- package/dist/services/console/console.admin.service.d.ts +59 -0
- package/dist/services/console/console.admin.service.js +108 -0
- package/dist/services/console/console.admin.service.js.map +2 -2
- package/dist/services/console/console.cluster-clients.service.d.ts +19 -0
- package/dist/services/console/console.cluster-clients.service.js +32 -0
- package/dist/services/console/console.cluster-clients.service.js.map +2 -2
- package/dist/services/console/console.cluster.service.d.ts +46 -1
- package/dist/services/console/console.cluster.service.js +32 -0
- package/dist/services/console/console.cluster.service.js.map +2 -2
- package/dist/services/console/console.cluster.v2.service.d.ts +11 -3
- package/dist/services/console/console.cluster.v2.service.js +57 -8
- package/dist/services/console/console.cluster.v2.service.js.map +2 -2
- package/dist/services/console/console.cluster.v2.service.spec.d.ts +1 -0
- package/package.json +2 -2
|
@@ -60,6 +60,28 @@ export interface RotateLiteLLMKeySecretsForOrgResponse {
|
|
|
60
60
|
secretsUpdated: number;
|
|
61
61
|
failedClusterIds: string[];
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Request to re-point the managed LLM connector secrets of every cluster of an
|
|
65
|
+
* org at the upstream that the org metadata names now.
|
|
66
|
+
*
|
|
67
|
+
* The rotate route writes the API key alone. This one writes the API endpoint
|
|
68
|
+
* and the default model too, because a move from one upstream to the other
|
|
69
|
+
* changes all three values.
|
|
70
|
+
*/
|
|
71
|
+
export interface RepointLlmSecretsForOrgRequest extends RequestBaseParams {
|
|
72
|
+
params: {
|
|
73
|
+
orgId: string;
|
|
74
|
+
headers: {
|
|
75
|
+
[key: string]: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/** Same counters as the rotate route. `secretsUpdated` counts clusters. */
|
|
80
|
+
export interface RepointLlmSecretsForOrgResponse {
|
|
81
|
+
clustersChecked: number;
|
|
82
|
+
secretsUpdated: number;
|
|
83
|
+
failedClusterIds: string[];
|
|
84
|
+
}
|
|
63
85
|
export type SpecExplainerFieldSource = 'plan' | 'generation' | 'planType' | 'override' | 'modification' | 'infra' | 'computed' | 'featureFlag' | 'org' | 'cluster';
|
|
64
86
|
export interface SpecExplainerFieldAnnotation {
|
|
65
87
|
source: SpecExplainerFieldSource;
|
|
@@ -228,11 +250,39 @@ export interface AdminClusterAutoUpdateRequest extends RequestBaseParams {
|
|
|
228
250
|
clusterId: string;
|
|
229
251
|
};
|
|
230
252
|
}
|
|
253
|
+
export interface AdminClusterOptionalTelemetryRequest extends RequestBaseParams {
|
|
254
|
+
params: {
|
|
255
|
+
clusterId: string;
|
|
256
|
+
};
|
|
257
|
+
body: {
|
|
258
|
+
optionalTelemetryEnabled: boolean;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
export interface AdminClusterNonSpotNodesRequest extends RequestBaseParams {
|
|
262
|
+
params: {
|
|
263
|
+
clusterId: string;
|
|
264
|
+
};
|
|
265
|
+
body: {
|
|
266
|
+
nonSpotNodesEnabled: boolean;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
231
269
|
export declare class ConsoleAdminService {
|
|
232
270
|
static updateClusterToNewPlanType(params: UpdateClusterToNewPlanTypeRequest): Promise<void>;
|
|
233
271
|
static updateClusterMetricsStartDate(params: UpdateClusterMetricsStartDateRequest): Promise<void>;
|
|
234
272
|
static disableClusterAutoUpdate(params: AdminClusterAutoUpdateRequest): Promise<void>;
|
|
235
273
|
static enableClusterAutoUpdate(params: AdminClusterAutoUpdateRequest): Promise<void>;
|
|
274
|
+
/**
|
|
275
|
+
* Set optional product telemetry for a cluster. Optional telemetry is
|
|
276
|
+
* Camunda-managed: the customer cluster PATCH does not accept the field, so
|
|
277
|
+
* this admin route is the only writer.
|
|
278
|
+
*/
|
|
279
|
+
static updateClusterOptionalTelemetry(params: AdminClusterOptionalTelemetryRequest): Promise<void>;
|
|
280
|
+
/**
|
|
281
|
+
* Move a cluster to non-spot nodes, or let it get spot nodes again. The
|
|
282
|
+
* cluster restarts on both directions, because the value goes into the
|
|
283
|
+
* `availabilityClass` of the spec.
|
|
284
|
+
*/
|
|
285
|
+
static updateClusterNonSpotNodes(params: AdminClusterNonSpotNodesRequest): Promise<void>;
|
|
236
286
|
static signalSignup(params: SignalSignupRequest): Promise<void>;
|
|
237
287
|
static unlinkClusterFromModification(params: {
|
|
238
288
|
uuid: string;
|
|
@@ -419,6 +469,15 @@ export declare class ConsoleAdminService {
|
|
|
419
469
|
}>;
|
|
420
470
|
static createLiteLLMSecretsForOrg(params: CreateLiteLLMSecretsForOrgRequest): Promise<void>;
|
|
421
471
|
static rotateLiteLLMKeySecretsForOrg(params: RotateLiteLLMKeySecretsForOrgRequest): Promise<RotateLiteLLMKeySecretsForOrgResponse>;
|
|
472
|
+
/**
|
|
473
|
+
* Re-point the managed LLM connector secrets of every cluster of an org.
|
|
474
|
+
*
|
|
475
|
+
* Console reads the org fresh and writes the API key, the API endpoint and
|
|
476
|
+
* the default model of the upstream that the metadata of the org names. Use
|
|
477
|
+
* it after a move from one upstream to the other. For a rotation on one
|
|
478
|
+
* upstream, use `rotateLiteLLMKeySecretsForOrg`, which writes the key alone.
|
|
479
|
+
*/
|
|
480
|
+
static repointLlmSecretsForOrg(params: RepointLlmSecretsForOrgRequest): Promise<RepointLlmSecretsForOrgResponse>;
|
|
422
481
|
static getSpecExplainer(params: GetSpecExplainerRequest): Promise<SpecExplainerResponse>;
|
|
423
482
|
/**
|
|
424
483
|
* Raw Kubernetes CRD state for a cluster (Console Admin debugging). The
|
|
@@ -132,6 +132,72 @@ class ConsoleAdminService {
|
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Set optional product telemetry for a cluster. Optional telemetry is
|
|
137
|
+
* Camunda-managed: the customer cluster PATCH does not accept the field, so
|
|
138
|
+
* this admin route is the only writer.
|
|
139
|
+
*/
|
|
140
|
+
static async updateClusterOptionalTelemetry(params) {
|
|
141
|
+
const serviceContext = {
|
|
142
|
+
method: {
|
|
143
|
+
name: "ConsoleAdminService.updateClusterOptionalTelemetry",
|
|
144
|
+
url: `api/admin/clusters/${params.params.clusterId}/optional-telemetry`,
|
|
145
|
+
normalizedUrl: "api/admin/clusters/:clusterId/optional-telemetry",
|
|
146
|
+
type: "patch"
|
|
147
|
+
},
|
|
148
|
+
source: params.config.metrics?.source || "unset",
|
|
149
|
+
target: { name: "console", type: "internal" }
|
|
150
|
+
};
|
|
151
|
+
const response = await request({
|
|
152
|
+
config: params.config,
|
|
153
|
+
base: { id: "console" },
|
|
154
|
+
url: serviceContext.method.url,
|
|
155
|
+
method: serviceContext.method.type,
|
|
156
|
+
metricsDetails: serviceContext,
|
|
157
|
+
responseType: "none",
|
|
158
|
+
body: params.body
|
|
159
|
+
});
|
|
160
|
+
if (!response.ok) {
|
|
161
|
+
throw new HttpError(
|
|
162
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
163
|
+
response.status,
|
|
164
|
+
response.statusText
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Move a cluster to non-spot nodes, or let it get spot nodes again. The
|
|
170
|
+
* cluster restarts on both directions, because the value goes into the
|
|
171
|
+
* `availabilityClass` of the spec.
|
|
172
|
+
*/
|
|
173
|
+
static async updateClusterNonSpotNodes(params) {
|
|
174
|
+
const serviceContext = {
|
|
175
|
+
method: {
|
|
176
|
+
name: "ConsoleAdminService.updateClusterNonSpotNodes",
|
|
177
|
+
url: `api/admin/clusters/${params.params.clusterId}/non-spot-nodes`,
|
|
178
|
+
normalizedUrl: "api/admin/clusters/:clusterId/non-spot-nodes",
|
|
179
|
+
type: "patch"
|
|
180
|
+
},
|
|
181
|
+
source: params.config.metrics?.source || "unset",
|
|
182
|
+
target: { name: "console", type: "internal" }
|
|
183
|
+
};
|
|
184
|
+
const response = await request({
|
|
185
|
+
config: params.config,
|
|
186
|
+
base: { id: "console" },
|
|
187
|
+
url: serviceContext.method.url,
|
|
188
|
+
method: serviceContext.method.type,
|
|
189
|
+
metricsDetails: serviceContext,
|
|
190
|
+
responseType: "none",
|
|
191
|
+
body: params.body
|
|
192
|
+
});
|
|
193
|
+
if (!response.ok) {
|
|
194
|
+
throw new HttpError(
|
|
195
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
196
|
+
response.status,
|
|
197
|
+
response.statusText
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
135
201
|
static async signalSignup(params) {
|
|
136
202
|
const serviceContext = {
|
|
137
203
|
method: {
|
|
@@ -1720,6 +1786,48 @@ class ConsoleAdminService {
|
|
|
1720
1786
|
}
|
|
1721
1787
|
return response.body;
|
|
1722
1788
|
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Re-point the managed LLM connector secrets of every cluster of an org.
|
|
1791
|
+
*
|
|
1792
|
+
* Console reads the org fresh and writes the API key, the API endpoint and
|
|
1793
|
+
* the default model of the upstream that the metadata of the org names. Use
|
|
1794
|
+
* it after a move from one upstream to the other. For a rotation on one
|
|
1795
|
+
* upstream, use `rotateLiteLLMKeySecretsForOrg`, which writes the key alone.
|
|
1796
|
+
*/
|
|
1797
|
+
static async repointLlmSecretsForOrg(params) {
|
|
1798
|
+
const serviceContext = {
|
|
1799
|
+
method: {
|
|
1800
|
+
name: `ConsoleAdminService.repointLlmSecretsForOrg`,
|
|
1801
|
+
url: `api/admin/clusters/org/${params.params.orgId}/litellm-secrets/repoint`,
|
|
1802
|
+
normalizedUrl: `api/admin/clusters/org/:orgId/litellm-secrets/repoint`,
|
|
1803
|
+
type: "post"
|
|
1804
|
+
},
|
|
1805
|
+
source: params.config.metrics?.source || "unset",
|
|
1806
|
+
target: {
|
|
1807
|
+
name: "console",
|
|
1808
|
+
type: "internal"
|
|
1809
|
+
}
|
|
1810
|
+
};
|
|
1811
|
+
const response = await request({
|
|
1812
|
+
config: params.config,
|
|
1813
|
+
base: {
|
|
1814
|
+
id: "console"
|
|
1815
|
+
},
|
|
1816
|
+
responseType: "json",
|
|
1817
|
+
headers: params.params.headers,
|
|
1818
|
+
url: serviceContext.method.url,
|
|
1819
|
+
method: serviceContext.method.type,
|
|
1820
|
+
metricsDetails: serviceContext
|
|
1821
|
+
});
|
|
1822
|
+
if (!response.ok) {
|
|
1823
|
+
throw new HttpError(
|
|
1824
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
1825
|
+
response.status,
|
|
1826
|
+
response.statusText
|
|
1827
|
+
);
|
|
1828
|
+
}
|
|
1829
|
+
return response.body;
|
|
1830
|
+
}
|
|
1723
1831
|
static async getSpecExplainer(params) {
|
|
1724
1832
|
const serviceContext = {
|
|
1725
1833
|
method: {
|