@camunda/ccma-api 11.1.0 → 12.1.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 +6 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +2 -2
- package/dist/services/accounts/hdp.service.d.ts +0 -12
- package/dist/services/accounts/hdp.service.js +0 -32
- package/dist/services/accounts/hdp.service.js.map +2 -2
- package/dist/services/console/console.cli.actions.service.d.ts +47 -0
- package/dist/services/console/console.cli.actions.service.js +115 -0
- package/dist/services/console/console.cli.actions.service.js.map +7 -0
- package/dist/services/console/console.cli.actions.service.spec.d.ts +1 -0
- package/dist/services/console/console.cli.cluster.service.d.ts +94 -0
- package/dist/services/console/console.cli.cluster.service.js +53 -0
- package/dist/services/console/console.cli.cluster.service.js.map +7 -0
- package/dist/services/console/console.cli.cluster.service.spec.d.ts +1 -0
- package/dist/services/console/console.cli.extras.service.d.ts +119 -0
- package/dist/services/console/console.cli.extras.service.js +169 -0
- package/dist/services/console/console.cli.extras.service.js.map +7 -0
- package/dist/services/console/console.cli.extras.service.spec.d.ts +1 -0
- package/dist/services/console/console.cli.org.service.d.ts +53 -0
- package/dist/services/console/console.cli.org.service.js +60 -0
- package/dist/services/console/console.cli.org.service.js.map +7 -0
- package/dist/services/console/console.cli.org.service.spec.d.ts +1 -0
- package/dist/services/console/console.cli.resources.service.d.ts +136 -0
- package/dist/services/console/console.cli.resources.service.js +218 -0
- package/dist/services/console/console.cli.resources.service.js.map +7 -0
- package/dist/services/console/console.cli.resources.service.spec.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { RequestBaseParams } from '../../types/general.types.js';
|
|
2
|
+
/** The shapes of `packages/shared-route-schemas/src/console/cli-org.ts`. */
|
|
3
|
+
export interface ConsoleCliApiClient {
|
|
4
|
+
/** The id in the paths of `/api-clients/:clientId`. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** The client id that the client sends to get a token. */
|
|
7
|
+
clientId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
permissions: string[];
|
|
10
|
+
createdAt?: string;
|
|
11
|
+
lastUsedAt?: string;
|
|
12
|
+
/** The id of the user that created the client. */
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
}
|
|
15
|
+
/** The answer of a create: the only time that the secret is shown. */
|
|
16
|
+
export interface ConsoleCliCreatedApiClient extends ConsoleCliApiClient {
|
|
17
|
+
secret: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ConsoleCliOrgParams extends RequestBaseParams {
|
|
20
|
+
params: {
|
|
21
|
+
orgId: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface ConsoleCliApiClientParams extends RequestBaseParams {
|
|
25
|
+
params: {
|
|
26
|
+
orgId: string;
|
|
27
|
+
clientId: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface CreateConsoleCliApiClientParams extends ConsoleCliOrgParams {
|
|
31
|
+
body: {
|
|
32
|
+
name: string;
|
|
33
|
+
permissions?: string[];
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export interface UpdateConsoleCliApiClientParams extends ConsoleCliApiClientParams {
|
|
37
|
+
body: {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The org routes of `/cli/v1` (see `ConsoleCliService`): the API clients of
|
|
43
|
+
* the org.
|
|
44
|
+
*/
|
|
45
|
+
export declare class ConsoleCliOrgService {
|
|
46
|
+
private static call;
|
|
47
|
+
private static callJson;
|
|
48
|
+
/** The list never holds a secret. */
|
|
49
|
+
static listApiClients(params: ConsoleCliOrgParams): Promise<ConsoleCliApiClient[]>;
|
|
50
|
+
static createApiClient(params: CreateConsoleCliApiClientParams): Promise<ConsoleCliCreatedApiClient>;
|
|
51
|
+
static updateApiClient(params: UpdateConsoleCliApiClientParams): Promise<ConsoleCliApiClient>;
|
|
52
|
+
static deleteApiClient(params: ConsoleCliApiClientParams): Promise<void>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { request } from "../../utils/api.js";
|
|
2
|
+
import { HttpError } from "../../utils/errors.js";
|
|
3
|
+
class ConsoleCliOrgService {
|
|
4
|
+
static async call(params, name, type) {
|
|
5
|
+
const { orgId, clientId } = params.params;
|
|
6
|
+
const template = `cli/v1/orgs/:orgId/api-clients${clientId === void 0 ? "" : "/:clientId"}`;
|
|
7
|
+
const serviceContext = {
|
|
8
|
+
method: {
|
|
9
|
+
name: `ConsoleCliOrgService.${name}`,
|
|
10
|
+
url: template,
|
|
11
|
+
normalizedUrl: template,
|
|
12
|
+
type
|
|
13
|
+
},
|
|
14
|
+
source: params.config.metrics?.source || "unset",
|
|
15
|
+
target: { name: "console", type: "internal" }
|
|
16
|
+
};
|
|
17
|
+
const response = await request({
|
|
18
|
+
...params,
|
|
19
|
+
base: { id: "console" },
|
|
20
|
+
url: `cli/v1/orgs/${encodeURIComponent(orgId)}/api-clients${clientId === void 0 ? "" : `/${encodeURIComponent(clientId)}`}`,
|
|
21
|
+
logUrl: template,
|
|
22
|
+
method: type,
|
|
23
|
+
metricsDetails: serviceContext,
|
|
24
|
+
body: params.body,
|
|
25
|
+
responseType: type === "delete" ? "none" : "json"
|
|
26
|
+
});
|
|
27
|
+
if (!response.ok) {
|
|
28
|
+
throw new HttpError(
|
|
29
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
30
|
+
response.status,
|
|
31
|
+
response.statusText
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
return response.body;
|
|
35
|
+
}
|
|
36
|
+
static async callJson(...args) {
|
|
37
|
+
const body = await ConsoleCliOrgService.call(...args);
|
|
38
|
+
if (body === void 0) {
|
|
39
|
+
throw new HttpError(`ConsoleCliOrgService.${args[1]}: no body`, 500, "");
|
|
40
|
+
}
|
|
41
|
+
return body;
|
|
42
|
+
}
|
|
43
|
+
/** The list never holds a secret. */
|
|
44
|
+
static listApiClients(params) {
|
|
45
|
+
return ConsoleCliOrgService.callJson(params, "listApiClients", "get");
|
|
46
|
+
}
|
|
47
|
+
static createApiClient(params) {
|
|
48
|
+
return ConsoleCliOrgService.callJson(params, "createApiClient", "post");
|
|
49
|
+
}
|
|
50
|
+
static updateApiClient(params) {
|
|
51
|
+
return ConsoleCliOrgService.callJson(params, "updateApiClient", "patch");
|
|
52
|
+
}
|
|
53
|
+
static async deleteApiClient(params) {
|
|
54
|
+
await ConsoleCliOrgService.call(params, "deleteApiClient", "delete");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
ConsoleCliOrgService
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=console.cli.org.service.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/services/console/console.cli.org.service.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport type {\n RequestBaseParams,\n RequestBaseServiceContext,\n} from '../../types/general.types.js'\nimport { request } from '../../utils/api.js'\nimport { HttpError } from '../../utils/errors.js'\n\n/** The shapes of `packages/shared-route-schemas/src/console/cli-org.ts`. */\nexport interface ConsoleCliApiClient {\n /** The id in the paths of `/api-clients/:clientId`. */\n id: string\n /** The client id that the client sends to get a token. */\n clientId: string\n name: string\n permissions: string[]\n createdAt?: string\n lastUsedAt?: string\n /** The id of the user that created the client. */\n createdBy?: string\n}\n\n/** The answer of a create: the only time that the secret is shown. */\nexport interface ConsoleCliCreatedApiClient extends ConsoleCliApiClient {\n secret: string\n}\n\nexport interface ConsoleCliOrgParams extends RequestBaseParams {\n params: { orgId: string }\n}\n\nexport interface ConsoleCliApiClientParams extends RequestBaseParams {\n params: { orgId: string; clientId: string }\n}\n\nexport interface CreateConsoleCliApiClientParams extends ConsoleCliOrgParams {\n body: { name: string; permissions?: string[] }\n}\n\nexport interface UpdateConsoleCliApiClientParams\n extends ConsoleCliApiClientParams {\n body: { name: string }\n}\n\n/**\n * The org routes of `/cli/v1` (see `ConsoleCliService`): the API clients of\n * the org.\n */\nexport class ConsoleCliOrgService {\n private static async call<T>(\n params: RequestBaseParams & {\n params: { orgId: string; clientId?: string }\n body?: unknown\n },\n name: string,\n type: 'get' | 'post' | 'patch' | 'delete',\n ): Promise<T | undefined> {\n const { orgId, clientId } = params.params\n const template = `cli/v1/orgs/:orgId/api-clients${clientId === undefined ? '' : '/:clientId'}`\n const serviceContext: RequestBaseServiceContext = {\n method: {\n name: `ConsoleCliOrgService.${name}`,\n url: template,\n normalizedUrl: template,\n type,\n },\n source: params.config.metrics?.source || 'unset',\n target: { name: 'console', type: 'internal' },\n }\n\n const response = await request<T>({\n ...params,\n base: { id: 'console' },\n url: `cli/v1/orgs/${encodeURIComponent(orgId)}/api-clients${clientId === undefined ? '' : `/${encodeURIComponent(clientId)}`}`,\n logUrl: template,\n method: type,\n metricsDetails: serviceContext,\n body: params.body,\n responseType: type === 'delete' ? 'none' : 'json',\n })\n\n if (!response.ok) {\n throw new HttpError(\n `${serviceContext.method.name}: ${response.status} ${response.statusText}`,\n response.status,\n response.statusText,\n )\n }\n return response.body\n }\n\n private static async callJson<T>(\n ...args: Parameters<typeof ConsoleCliOrgService.call>\n ): Promise<T> {\n const body = await ConsoleCliOrgService.call<T>(...args)\n if (body === undefined) {\n throw new HttpError(`ConsoleCliOrgService.${args[1]}: no body`, 500, '')\n }\n return body\n }\n\n /** The list never holds a secret. */\n public static listApiClients(\n params: ConsoleCliOrgParams,\n ): Promise<ConsoleCliApiClient[]> {\n return ConsoleCliOrgService.callJson(params, 'listApiClients', 'get')\n }\n\n public static createApiClient(\n params: CreateConsoleCliApiClientParams,\n ): Promise<ConsoleCliCreatedApiClient> {\n return ConsoleCliOrgService.callJson(params, 'createApiClient', 'post')\n }\n\n public static updateApiClient(\n params: UpdateConsoleCliApiClientParams,\n ): Promise<ConsoleCliApiClient> {\n return ConsoleCliOrgService.callJson(params, 'updateApiClient', 'patch')\n }\n\n public static async deleteApiClient(\n params: ConsoleCliApiClientParams,\n ): Promise<void> {\n await ConsoleCliOrgService.call(params, 'deleteApiClient', 'delete')\n }\n}\n"],
|
|
5
|
+
"mappings": "AAUA,SAAS,eAAe;AACxB,SAAS,iBAAiB;AA0CnB,MAAM,qBAAqB;AAAA,EAChC,aAAqB,KACnB,QAIA,MACA,MACwB;AACxB,UAAM,EAAE,OAAO,SAAS,IAAI,OAAO;AACnC,UAAM,WAAW,iCAAiC,aAAa,SAAY,KAAK,YAAY;AAC5F,UAAM,iBAA4C;AAAA,MAChD,QAAQ;AAAA,QACN,MAAM,wBAAwB,IAAI;AAAA,QAClC,KAAK;AAAA,QACL,eAAe;AAAA,QACf;AAAA,MACF;AAAA,MACA,QAAQ,OAAO,OAAO,SAAS,UAAU;AAAA,MACzC,QAAQ,EAAE,MAAM,WAAW,MAAM,WAAW;AAAA,IAC9C;AAEA,UAAM,WAAW,MAAM,QAAW;AAAA,MAChC,GAAG;AAAA,MACH,MAAM,EAAE,IAAI,UAAU;AAAA,MACtB,KAAK,eAAe,mBAAmB,KAAK,CAAC,eAAe,aAAa,SAAY,KAAK,IAAI,mBAAmB,QAAQ,CAAC,EAAE;AAAA,MAC5H,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,MAAM,OAAO;AAAA,MACb,cAAc,SAAS,WAAW,SAAS;AAAA,IAC7C,CAAC;AAED,QAAI,CAAC,SAAS,IAAI;AAChB,YAAM,IAAI;AAAA,QACR,GAAG,eAAe,OAAO,IAAI,KAAK,SAAS,MAAM,IAAI,SAAS,UAAU;AAAA,QACxE,SAAS;AAAA,QACT,SAAS;AAAA,MACX;AAAA,IACF;AACA,WAAO,SAAS;AAAA,EAClB;AAAA,EAEA,aAAqB,YAChB,MACS;AACZ,UAAM,OAAO,MAAM,qBAAqB,KAAQ,GAAG,IAAI;AACvD,QAAI,SAAS,QAAW;AACtB,YAAM,IAAI,UAAU,wBAAwB,KAAK,CAAC,CAAC,aAAa,KAAK,EAAE;AAAA,IACzE;AACA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,OAAc,eACZ,QACgC;AAChC,WAAO,qBAAqB,SAAS,QAAQ,kBAAkB,KAAK;AAAA,EACtE;AAAA,EAEA,OAAc,gBACZ,QACqC;AACrC,WAAO,qBAAqB,SAAS,QAAQ,mBAAmB,MAAM;AAAA,EACxE;AAAA,EAEA,OAAc,gBACZ,QAC8B;AAC9B,WAAO,qBAAqB,SAAS,QAAQ,mBAAmB,OAAO;AAAA,EACzE;AAAA,EAEA,aAAoB,gBAClB,QACe;AACf,UAAM,qBAAqB,KAAK,QAAQ,mBAAmB,QAAQ;AAAA,EACrE;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { ConsoleCliClusterParams } from './console.cli.service.js';
|
|
2
|
+
/** The shapes of `packages/shared-route-schemas/src/console/cli*.ts`. */
|
|
3
|
+
export interface ConsoleCliSecret {
|
|
4
|
+
name: string;
|
|
5
|
+
/** Set only when the list was read with `withValues`. */
|
|
6
|
+
value?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ConsoleCliAlert {
|
|
9
|
+
id: string;
|
|
10
|
+
type: string;
|
|
11
|
+
report: 'Email' | 'Webhook';
|
|
12
|
+
webhookUrl?: string;
|
|
13
|
+
email?: string;
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
updatedAt?: string;
|
|
17
|
+
updatedBy?: string;
|
|
18
|
+
lastTriggeredAt?: string;
|
|
19
|
+
triggerCount?: number;
|
|
20
|
+
/** True if webhook calls are signed. The secret is never shown. */
|
|
21
|
+
hmac?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ConsoleCliCreateAlert {
|
|
24
|
+
type: string;
|
|
25
|
+
report: 'Email' | 'Webhook';
|
|
26
|
+
webhookUrl?: string;
|
|
27
|
+
hmacSecret?: string;
|
|
28
|
+
ignoreHead?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** A missing field keeps its value. */
|
|
31
|
+
export interface ConsoleCliUpdateAlert {
|
|
32
|
+
type?: string;
|
|
33
|
+
report?: 'Email' | 'Webhook';
|
|
34
|
+
webhookUrl?: string;
|
|
35
|
+
hmacSecret?: string;
|
|
36
|
+
removeHmac?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ConsoleCliClient {
|
|
39
|
+
/** The `clientId`. */
|
|
40
|
+
id: string;
|
|
41
|
+
uuid?: string;
|
|
42
|
+
name: string;
|
|
43
|
+
permissions: string[];
|
|
44
|
+
createdAt?: string;
|
|
45
|
+
createdBy?: string;
|
|
46
|
+
lastUsedAt?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ConsoleCliCreatedClient extends ConsoleCliClient {
|
|
49
|
+
secret: string;
|
|
50
|
+
connection: {
|
|
51
|
+
clusterId: string;
|
|
52
|
+
zeebeGrpc?: string;
|
|
53
|
+
zeebeRest?: string;
|
|
54
|
+
oauthUrl?: string;
|
|
55
|
+
audience: string;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export interface ConsoleCliBackup {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
status: string;
|
|
62
|
+
createdAt?: string;
|
|
63
|
+
completedAt?: string;
|
|
64
|
+
generation?: string;
|
|
65
|
+
generationId?: string;
|
|
66
|
+
zeebeStatus?: string;
|
|
67
|
+
operateStatus?: string;
|
|
68
|
+
tasklistStatus?: string;
|
|
69
|
+
optimizeStatus?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface ConsoleCliRestore {
|
|
72
|
+
id: string;
|
|
73
|
+
backupId: string;
|
|
74
|
+
state: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The `/cli/v1` routes of console-backend for secrets, alerts, clients and
|
|
78
|
+
* backups. c4 calls them while the flag `console.c4CliApi` is on (#11623).
|
|
79
|
+
*/
|
|
80
|
+
export declare class ConsoleCliResourcesService {
|
|
81
|
+
/**
|
|
82
|
+
* `path` is the template with `:name` parts, `values` fills them. Only the
|
|
83
|
+
* template goes to the logs and metrics: it holds no ids.
|
|
84
|
+
*/
|
|
85
|
+
private static call;
|
|
86
|
+
/** Values only with `withValues`: that needs the right to change secrets. */
|
|
87
|
+
static listSecrets(params: ConsoleCliClusterParams & {
|
|
88
|
+
withValues?: boolean;
|
|
89
|
+
}): Promise<ConsoleCliSecret[]>;
|
|
90
|
+
/** Creates the secret, or changes it if it exists. */
|
|
91
|
+
static setSecret(params: ConsoleCliClusterParams & {
|
|
92
|
+
name: string;
|
|
93
|
+
value: string;
|
|
94
|
+
}): Promise<void>;
|
|
95
|
+
static deleteSecret(params: ConsoleCliClusterParams & {
|
|
96
|
+
name: string;
|
|
97
|
+
}): Promise<void>;
|
|
98
|
+
static listAlerts(params: ConsoleCliClusterParams): Promise<ConsoleCliAlert[]>;
|
|
99
|
+
static createAlert(params: ConsoleCliClusterParams & {
|
|
100
|
+
body: ConsoleCliCreateAlert;
|
|
101
|
+
}): Promise<ConsoleCliAlert>;
|
|
102
|
+
static updateAlert(params: ConsoleCliClusterParams & {
|
|
103
|
+
alertId: string;
|
|
104
|
+
body: ConsoleCliUpdateAlert;
|
|
105
|
+
}): Promise<ConsoleCliAlert>;
|
|
106
|
+
static deleteAlert(params: ConsoleCliClusterParams & {
|
|
107
|
+
alertId: string;
|
|
108
|
+
}): Promise<void>;
|
|
109
|
+
static listClients(params: ConsoleCliClusterParams): Promise<ConsoleCliClient[]>;
|
|
110
|
+
/** The answer holds the secret. It is the only time that it is shown. */
|
|
111
|
+
static createClient(params: ConsoleCliClusterParams & {
|
|
112
|
+
body: {
|
|
113
|
+
name: string;
|
|
114
|
+
permissions: string[];
|
|
115
|
+
};
|
|
116
|
+
}): Promise<ConsoleCliCreatedClient>;
|
|
117
|
+
static updateClient(params: ConsoleCliClusterParams & {
|
|
118
|
+
clientId: string;
|
|
119
|
+
name: string;
|
|
120
|
+
}): Promise<ConsoleCliClient>;
|
|
121
|
+
/** The answer holds the new secret. It is the only time that it is shown. */
|
|
122
|
+
static rotateClientSecret(params: ConsoleCliClusterParams & {
|
|
123
|
+
clientId: string;
|
|
124
|
+
}): Promise<ConsoleCliCreatedClient>;
|
|
125
|
+
static deleteClient(params: ConsoleCliClusterParams & {
|
|
126
|
+
clientId: string;
|
|
127
|
+
}): Promise<void>;
|
|
128
|
+
static listBackups(params: ConsoleCliClusterParams): Promise<ConsoleCliBackup[]>;
|
|
129
|
+
static createBackup(params: ConsoleCliClusterParams): Promise<ConsoleCliBackup>;
|
|
130
|
+
static deleteBackup(params: ConsoleCliClusterParams & {
|
|
131
|
+
backupId: string;
|
|
132
|
+
}): Promise<void>;
|
|
133
|
+
static restoreBackup(params: ConsoleCliClusterParams & {
|
|
134
|
+
backupId: string;
|
|
135
|
+
}): Promise<ConsoleCliRestore>;
|
|
136
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { request } from "../../utils/api.js";
|
|
2
|
+
import { HttpError } from "../../utils/errors.js";
|
|
3
|
+
class ConsoleCliResourcesService {
|
|
4
|
+
/**
|
|
5
|
+
* `path` is the template with `:name` parts, `values` fills them. Only the
|
|
6
|
+
* template goes to the logs and metrics: it holds no ids.
|
|
7
|
+
*/
|
|
8
|
+
static async call(params, name, type, path, options = {}) {
|
|
9
|
+
const { orgId, clusterId } = params.params;
|
|
10
|
+
const template = `cli/v1/orgs/:orgId/clusters/:clusterId/${path}`;
|
|
11
|
+
const realPath = path.replace(
|
|
12
|
+
/:(\w+)/gu,
|
|
13
|
+
(_match, key) => encodeURIComponent(options.values?.[key] ?? "")
|
|
14
|
+
);
|
|
15
|
+
const serviceContext = {
|
|
16
|
+
method: {
|
|
17
|
+
name: `ConsoleCliResourcesService.${name}`,
|
|
18
|
+
url: template,
|
|
19
|
+
normalizedUrl: template,
|
|
20
|
+
type
|
|
21
|
+
},
|
|
22
|
+
source: params.config.metrics?.source || "unset",
|
|
23
|
+
target: { name: "console", type: "internal" }
|
|
24
|
+
};
|
|
25
|
+
const response = await request({
|
|
26
|
+
...params,
|
|
27
|
+
base: { id: "console" },
|
|
28
|
+
url: `cli/v1/orgs/${encodeURIComponent(orgId)}/clusters/${encodeURIComponent(clusterId)}/${realPath}${options.query ?? ""}`,
|
|
29
|
+
logUrl: template,
|
|
30
|
+
method: type,
|
|
31
|
+
metricsDetails: serviceContext,
|
|
32
|
+
body: options.body,
|
|
33
|
+
redactBody: options.redactBody,
|
|
34
|
+
// A 204 gives `{}`.
|
|
35
|
+
responseType: "json"
|
|
36
|
+
});
|
|
37
|
+
if (!response.ok || response.body === void 0) {
|
|
38
|
+
throw new HttpError(
|
|
39
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
40
|
+
response.status,
|
|
41
|
+
response.statusText
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
return response.body;
|
|
45
|
+
}
|
|
46
|
+
/** Values only with `withValues`: that needs the right to change secrets. */
|
|
47
|
+
static listSecrets(params) {
|
|
48
|
+
return ConsoleCliResourcesService.call(
|
|
49
|
+
params,
|
|
50
|
+
"listSecrets",
|
|
51
|
+
"get",
|
|
52
|
+
"secrets",
|
|
53
|
+
{
|
|
54
|
+
query: params.withValues ? "?withValues=true" : void 0
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
/** Creates the secret, or changes it if it exists. */
|
|
59
|
+
static async setSecret(params) {
|
|
60
|
+
await ConsoleCliResourcesService.call(
|
|
61
|
+
params,
|
|
62
|
+
"setSecret",
|
|
63
|
+
"put",
|
|
64
|
+
"secrets/:name",
|
|
65
|
+
{
|
|
66
|
+
values: { name: params.name },
|
|
67
|
+
body: { value: params.value },
|
|
68
|
+
redactBody: true
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
static async deleteSecret(params) {
|
|
73
|
+
await ConsoleCliResourcesService.call(
|
|
74
|
+
params,
|
|
75
|
+
"deleteSecret",
|
|
76
|
+
"delete",
|
|
77
|
+
"secrets/:name",
|
|
78
|
+
{
|
|
79
|
+
values: { name: params.name }
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
static listAlerts(params) {
|
|
84
|
+
return ConsoleCliResourcesService.call(
|
|
85
|
+
params,
|
|
86
|
+
"listAlerts",
|
|
87
|
+
"get",
|
|
88
|
+
"alerts"
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
static createAlert(params) {
|
|
92
|
+
return ConsoleCliResourcesService.call(
|
|
93
|
+
params,
|
|
94
|
+
"createAlert",
|
|
95
|
+
"post",
|
|
96
|
+
"alerts",
|
|
97
|
+
{
|
|
98
|
+
body: params.body
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
static updateAlert(params) {
|
|
103
|
+
return ConsoleCliResourcesService.call(
|
|
104
|
+
params,
|
|
105
|
+
"updateAlert",
|
|
106
|
+
"patch",
|
|
107
|
+
"alerts/:alertId",
|
|
108
|
+
{
|
|
109
|
+
values: { alertId: params.alertId },
|
|
110
|
+
body: params.body
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
static async deleteAlert(params) {
|
|
115
|
+
await ConsoleCliResourcesService.call(
|
|
116
|
+
params,
|
|
117
|
+
"deleteAlert",
|
|
118
|
+
"delete",
|
|
119
|
+
"alerts/:alertId",
|
|
120
|
+
{
|
|
121
|
+
values: { alertId: params.alertId }
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
static listClients(params) {
|
|
126
|
+
return ConsoleCliResourcesService.call(
|
|
127
|
+
params,
|
|
128
|
+
"listClients",
|
|
129
|
+
"get",
|
|
130
|
+
"clients"
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
/** The answer holds the secret. It is the only time that it is shown. */
|
|
134
|
+
static createClient(params) {
|
|
135
|
+
return ConsoleCliResourcesService.call(
|
|
136
|
+
params,
|
|
137
|
+
"createClient",
|
|
138
|
+
"post",
|
|
139
|
+
"clients",
|
|
140
|
+
{
|
|
141
|
+
body: params.body
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
static updateClient(params) {
|
|
146
|
+
return ConsoleCliResourcesService.call(
|
|
147
|
+
params,
|
|
148
|
+
"updateClient",
|
|
149
|
+
"patch",
|
|
150
|
+
"clients/:clientId",
|
|
151
|
+
{
|
|
152
|
+
values: { clientId: params.clientId },
|
|
153
|
+
body: { name: params.name }
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
/** The answer holds the new secret. It is the only time that it is shown. */
|
|
158
|
+
static rotateClientSecret(params) {
|
|
159
|
+
return ConsoleCliResourcesService.call(
|
|
160
|
+
params,
|
|
161
|
+
"rotateClientSecret",
|
|
162
|
+
"post",
|
|
163
|
+
"clients/:clientId/rotate-secret",
|
|
164
|
+
{ values: { clientId: params.clientId } }
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
static async deleteClient(params) {
|
|
168
|
+
await ConsoleCliResourcesService.call(
|
|
169
|
+
params,
|
|
170
|
+
"deleteClient",
|
|
171
|
+
"delete",
|
|
172
|
+
"clients/:clientId",
|
|
173
|
+
{
|
|
174
|
+
values: { clientId: params.clientId }
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
static listBackups(params) {
|
|
179
|
+
return ConsoleCliResourcesService.call(
|
|
180
|
+
params,
|
|
181
|
+
"listBackups",
|
|
182
|
+
"get",
|
|
183
|
+
"backups"
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
static createBackup(params) {
|
|
187
|
+
return ConsoleCliResourcesService.call(
|
|
188
|
+
params,
|
|
189
|
+
"createBackup",
|
|
190
|
+
"post",
|
|
191
|
+
"backups"
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
static async deleteBackup(params) {
|
|
195
|
+
await ConsoleCliResourcesService.call(
|
|
196
|
+
params,
|
|
197
|
+
"deleteBackup",
|
|
198
|
+
"delete",
|
|
199
|
+
"backups/:backupId",
|
|
200
|
+
{
|
|
201
|
+
values: { backupId: params.backupId }
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
static restoreBackup(params) {
|
|
206
|
+
return ConsoleCliResourcesService.call(
|
|
207
|
+
params,
|
|
208
|
+
"restoreBackup",
|
|
209
|
+
"post",
|
|
210
|
+
"backups/:backupId/restore",
|
|
211
|
+
{ values: { backupId: params.backupId } }
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
export {
|
|
216
|
+
ConsoleCliResourcesService
|
|
217
|
+
};
|
|
218
|
+
//# sourceMappingURL=console.cli.resources.service.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/services/console/console.cli.resources.service.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport type {\n RequestBaseMethodType,\n RequestBaseServiceContext,\n} from '../../types/general.types.js'\nimport { request } from '../../utils/api.js'\nimport { HttpError } from '../../utils/errors.js'\nimport type { ConsoleCliClusterParams } from './console.cli.service.js'\n\n/** The shapes of `packages/shared-route-schemas/src/console/cli*.ts`. */\nexport interface ConsoleCliSecret {\n name: string\n /** Set only when the list was read with `withValues`. */\n value?: string\n}\n\nexport interface ConsoleCliAlert {\n id: string\n type: string\n report: 'Email' | 'Webhook'\n webhookUrl?: string\n email?: string\n createdAt?: string\n createdBy?: string\n updatedAt?: string\n updatedBy?: string\n lastTriggeredAt?: string\n triggerCount?: number\n /** True if webhook calls are signed. The secret is never shown. */\n hmac?: boolean\n}\n\nexport interface ConsoleCliCreateAlert {\n type: string\n report: 'Email' | 'Webhook'\n webhookUrl?: string\n hmacSecret?: string\n ignoreHead?: boolean\n}\n\n/** A missing field keeps its value. */\nexport interface ConsoleCliUpdateAlert {\n type?: string\n report?: 'Email' | 'Webhook'\n webhookUrl?: string\n hmacSecret?: string\n removeHmac?: boolean\n}\n\nexport interface ConsoleCliClient {\n /** The `clientId`. */\n id: string\n uuid?: string\n name: string\n permissions: string[]\n createdAt?: string\n createdBy?: string\n lastUsedAt?: string\n}\n\nexport interface ConsoleCliCreatedClient extends ConsoleCliClient {\n secret: string\n connection: {\n clusterId: string\n zeebeGrpc?: string\n zeebeRest?: string\n oauthUrl?: string\n audience: string\n }\n}\n\nexport interface ConsoleCliBackup {\n id: string\n name: string\n status: string\n createdAt?: string\n completedAt?: string\n generation?: string\n generationId?: string\n zeebeStatus?: string\n operateStatus?: string\n tasklistStatus?: string\n optimizeStatus?: string\n}\n\nexport interface ConsoleCliRestore {\n id: string\n backupId: string\n state: string\n}\n\n/**\n * The `/cli/v1` routes of console-backend for secrets, alerts, clients and\n * backups. c4 calls them while the flag `console.c4CliApi` is on (#11623).\n */\nexport class ConsoleCliResourcesService {\n /**\n * `path` is the template with `:name` parts, `values` fills them. Only the\n * template goes to the logs and metrics: it holds no ids.\n */\n private static async call<T>(\n params: ConsoleCliClusterParams,\n name: string,\n type: RequestBaseMethodType,\n path: string,\n options: {\n values?: Record<string, string>\n body?: unknown\n query?: string\n redactBody?: boolean\n } = {},\n ): Promise<T> {\n const { orgId, clusterId } = params.params\n const template = `cli/v1/orgs/:orgId/clusters/:clusterId/${path}`\n const realPath = path.replace(/:(\\w+)/gu, (_match, key: string) =>\n encodeURIComponent(options.values?.[key] ?? ''),\n )\n const serviceContext: RequestBaseServiceContext = {\n method: {\n name: `ConsoleCliResourcesService.${name}`,\n url: template,\n normalizedUrl: template,\n type,\n },\n source: params.config.metrics?.source || 'unset',\n target: { name: 'console', type: 'internal' },\n }\n\n const response = await request<T>({\n ...params,\n base: { id: 'console' },\n url: `cli/v1/orgs/${encodeURIComponent(orgId)}/clusters/${encodeURIComponent(clusterId)}/${realPath}${options.query ?? ''}`,\n logUrl: template,\n method: type,\n metricsDetails: serviceContext,\n body: options.body,\n redactBody: options.redactBody,\n // A 204 gives `{}`.\n responseType: 'json',\n })\n\n if (!response.ok || response.body === undefined) {\n throw new HttpError(\n `${serviceContext.method.name}: ${response.status} ${response.statusText}`,\n response.status,\n response.statusText,\n )\n }\n return response.body\n }\n\n /** Values only with `withValues`: that needs the right to change secrets. */\n public static listSecrets(\n params: ConsoleCliClusterParams & { withValues?: boolean },\n ): Promise<ConsoleCliSecret[]> {\n return ConsoleCliResourcesService.call(\n params,\n 'listSecrets',\n 'get',\n 'secrets',\n {\n query: params.withValues ? '?withValues=true' : undefined,\n },\n )\n }\n\n /** Creates the secret, or changes it if it exists. */\n public static async setSecret(\n params: ConsoleCliClusterParams & { name: string; value: string },\n ): Promise<void> {\n await ConsoleCliResourcesService.call(\n params,\n 'setSecret',\n 'put',\n 'secrets/:name',\n {\n values: { name: params.name },\n body: { value: params.value },\n redactBody: true,\n },\n )\n }\n\n public static async deleteSecret(\n params: ConsoleCliClusterParams & { name: string },\n ): Promise<void> {\n await ConsoleCliResourcesService.call(\n params,\n 'deleteSecret',\n 'delete',\n 'secrets/:name',\n {\n values: { name: params.name },\n },\n )\n }\n\n public static listAlerts(\n params: ConsoleCliClusterParams,\n ): Promise<ConsoleCliAlert[]> {\n return ConsoleCliResourcesService.call(\n params,\n 'listAlerts',\n 'get',\n 'alerts',\n )\n }\n\n public static createAlert(\n params: ConsoleCliClusterParams & { body: ConsoleCliCreateAlert },\n ): Promise<ConsoleCliAlert> {\n return ConsoleCliResourcesService.call(\n params,\n 'createAlert',\n 'post',\n 'alerts',\n {\n body: params.body,\n },\n )\n }\n\n public static updateAlert(\n params: ConsoleCliClusterParams & {\n alertId: string\n body: ConsoleCliUpdateAlert\n },\n ): Promise<ConsoleCliAlert> {\n return ConsoleCliResourcesService.call(\n params,\n 'updateAlert',\n 'patch',\n 'alerts/:alertId',\n {\n values: { alertId: params.alertId },\n body: params.body,\n },\n )\n }\n\n public static async deleteAlert(\n params: ConsoleCliClusterParams & { alertId: string },\n ): Promise<void> {\n await ConsoleCliResourcesService.call(\n params,\n 'deleteAlert',\n 'delete',\n 'alerts/:alertId',\n {\n values: { alertId: params.alertId },\n },\n )\n }\n\n public static listClients(\n params: ConsoleCliClusterParams,\n ): Promise<ConsoleCliClient[]> {\n return ConsoleCliResourcesService.call(\n params,\n 'listClients',\n 'get',\n 'clients',\n )\n }\n\n /** The answer holds the secret. It is the only time that it is shown. */\n public static createClient(\n params: ConsoleCliClusterParams & {\n body: { name: string; permissions: string[] }\n },\n ): Promise<ConsoleCliCreatedClient> {\n return ConsoleCliResourcesService.call(\n params,\n 'createClient',\n 'post',\n 'clients',\n {\n body: params.body,\n },\n )\n }\n\n public static updateClient(\n params: ConsoleCliClusterParams & { clientId: string; name: string },\n ): Promise<ConsoleCliClient> {\n return ConsoleCliResourcesService.call(\n params,\n 'updateClient',\n 'patch',\n 'clients/:clientId',\n {\n values: { clientId: params.clientId },\n body: { name: params.name },\n },\n )\n }\n\n /** The answer holds the new secret. It is the only time that it is shown. */\n public static rotateClientSecret(\n params: ConsoleCliClusterParams & { clientId: string },\n ): Promise<ConsoleCliCreatedClient> {\n return ConsoleCliResourcesService.call(\n params,\n 'rotateClientSecret',\n 'post',\n 'clients/:clientId/rotate-secret',\n { values: { clientId: params.clientId } },\n )\n }\n\n public static async deleteClient(\n params: ConsoleCliClusterParams & { clientId: string },\n ): Promise<void> {\n await ConsoleCliResourcesService.call(\n params,\n 'deleteClient',\n 'delete',\n 'clients/:clientId',\n {\n values: { clientId: params.clientId },\n },\n )\n }\n\n public static listBackups(\n params: ConsoleCliClusterParams,\n ): Promise<ConsoleCliBackup[]> {\n return ConsoleCliResourcesService.call(\n params,\n 'listBackups',\n 'get',\n 'backups',\n )\n }\n\n public static createBackup(\n params: ConsoleCliClusterParams,\n ): Promise<ConsoleCliBackup> {\n return ConsoleCliResourcesService.call(\n params,\n 'createBackup',\n 'post',\n 'backups',\n )\n }\n\n public static async deleteBackup(\n params: ConsoleCliClusterParams & { backupId: string },\n ): Promise<void> {\n await ConsoleCliResourcesService.call(\n params,\n 'deleteBackup',\n 'delete',\n 'backups/:backupId',\n {\n values: { backupId: params.backupId },\n },\n )\n }\n\n public static restoreBackup(\n params: ConsoleCliClusterParams & { backupId: string },\n ): Promise<ConsoleCliRestore> {\n return ConsoleCliResourcesService.call(\n params,\n 'restoreBackup',\n 'post',\n 'backups/:backupId/restore',\n { values: { backupId: params.backupId } },\n )\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "Centralized API service layer for Camunda Cloud Management Apps",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@camunda/ccma-shared-types": "
|
|
44
|
+
"@camunda/ccma-shared-types": "18.0.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "node esbuild.mjs && tsc --emitDeclarationOnly --outDir dist",
|