@nocobase/server 2.1.0-beta.2 → 2.1.0-beta.21
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/LICENSE +201 -661
- package/README.md +79 -10
- package/lib/acl/available-action.js +1 -1
- package/lib/aes-encryptor.js +3 -2
- package/lib/ai/create-docs-index.js +2 -1
- package/lib/app-supervisor/app-options-factory.d.ts +1 -0
- package/lib/app-supervisor/index.js +15 -1
- package/lib/app-supervisor/main-only-adapter.d.ts +1 -1
- package/lib/app-supervisor/main-only-adapter.js +17 -12
- package/lib/application.d.ts +1 -2
- package/lib/application.js +3 -24
- package/lib/audit-manager/index.d.ts +2 -0
- package/lib/audit-manager/index.js +5 -2
- package/lib/commands/create-migration.js +1 -1
- package/lib/commands/install.js +3 -1
- package/lib/commands/pm.js +7 -0
- package/lib/commands/start.js +2 -2
- package/lib/commands/upgrade.js +3 -1
- package/lib/event-queue.js +1 -1
- package/lib/gateway/index.d.ts +13 -3
- package/lib/gateway/index.js +137 -15
- package/lib/gateway/utils.d.ts +17 -0
- package/lib/gateway/utils.js +115 -0
- package/lib/helper.js +33 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/main-data-source.js +1 -1
- package/lib/plugin-manager/deps.js +2 -1
- package/lib/plugin-manager/options/resource.d.ts +11 -1
- package/lib/plugin-manager/options/resource.js +155 -53
- package/lib/plugin-manager/plugin-manager.d.ts +7 -2
- package/lib/plugin-manager/plugin-manager.js +56 -43
- package/lib/plugin-manager/utils.d.ts +7 -1
- package/lib/plugin-manager/utils.js +33 -9
- package/lib/plugin.js +33 -1
- package/lib/pub-sub-manager/handler-manager.d.ts +1 -0
- package/lib/pub-sub-manager/handler-manager.js +11 -0
- package/lib/pub-sub-manager/pub-sub-manager.js +2 -1
- package/lib/swagger/app.d.ts +102 -0
- package/lib/swagger/app.js +124 -0
- package/lib/swagger/base.d.ts +244 -0
- package/lib/swagger/base.js +292 -0
- package/lib/swagger/collections.d.ts +996 -0
- package/lib/swagger/collections.js +1264 -0
- package/lib/swagger/index.d.ts +1774 -0
- package/lib/swagger/index.js +70 -0
- package/lib/swagger/pm.d.ts +462 -0
- package/lib/swagger/pm.js +422 -0
- package/lib/sync-message-manager.js +8 -1
- package/lib/worker-mode.d.ts +19 -0
- package/lib/worker-mode.js +67 -0
- package/package.json +18 -18
- package/lib/swagger/index.json +0 -1569
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var swagger_exports = {};
|
|
38
|
+
__export(swagger_exports, {
|
|
39
|
+
default: () => swagger_default
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(swagger_exports);
|
|
42
|
+
var import_app = __toESM(require("./app"));
|
|
43
|
+
var import_base = __toESM(require("./base"));
|
|
44
|
+
var import_collections = __toESM(require("./collections"));
|
|
45
|
+
var import_pm = __toESM(require("./pm"));
|
|
46
|
+
var swagger_default = {
|
|
47
|
+
...import_base.default,
|
|
48
|
+
tags: [
|
|
49
|
+
...import_base.default.tags.slice(0, 5),
|
|
50
|
+
{
|
|
51
|
+
name: "app",
|
|
52
|
+
description: "Application lifecycle and runtime metadata."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "pm",
|
|
56
|
+
description: "Plugin manager operations."
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
components: {
|
|
60
|
+
...import_base.default.components,
|
|
61
|
+
schemas: {
|
|
62
|
+
...import_pm.pmComponents.schemas
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
paths: {
|
|
66
|
+
...import_collections.default,
|
|
67
|
+
...import_app.default,
|
|
68
|
+
...import_pm.default
|
|
69
|
+
}
|
|
70
|
+
};
|
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const pmComponents: {
|
|
10
|
+
readonly schemas: {
|
|
11
|
+
readonly PMPluginListSummaryItem: {
|
|
12
|
+
readonly type: "object";
|
|
13
|
+
readonly description: "Compact plugin row returned when listing with `mode=summary`.";
|
|
14
|
+
readonly properties: {
|
|
15
|
+
readonly displayName: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
};
|
|
18
|
+
readonly packageName: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
};
|
|
21
|
+
readonly enabled: {
|
|
22
|
+
readonly type: "boolean";
|
|
23
|
+
};
|
|
24
|
+
readonly description: {
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly additionalProperties: true;
|
|
29
|
+
};
|
|
30
|
+
readonly PMPlugin: {
|
|
31
|
+
readonly type: "object";
|
|
32
|
+
readonly properties: {
|
|
33
|
+
readonly id: {
|
|
34
|
+
readonly type: "integer";
|
|
35
|
+
};
|
|
36
|
+
readonly name: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly description: "Plugin short name.";
|
|
39
|
+
};
|
|
40
|
+
readonly packageName: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
readonly description: "Plugin package name.";
|
|
43
|
+
};
|
|
44
|
+
readonly version: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
};
|
|
47
|
+
readonly enabled: {
|
|
48
|
+
readonly type: "boolean";
|
|
49
|
+
};
|
|
50
|
+
readonly installed: {
|
|
51
|
+
readonly type: "boolean";
|
|
52
|
+
};
|
|
53
|
+
readonly builtIn: {
|
|
54
|
+
readonly type: "boolean";
|
|
55
|
+
};
|
|
56
|
+
readonly options: {
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly additionalProperties: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly additionalProperties: true;
|
|
62
|
+
};
|
|
63
|
+
readonly PMEnabledPlugin: {
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly properties: {
|
|
66
|
+
readonly name: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
readonly packageName: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
};
|
|
72
|
+
readonly options: {
|
|
73
|
+
readonly type: "object";
|
|
74
|
+
readonly additionalProperties: true;
|
|
75
|
+
};
|
|
76
|
+
readonly url: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly description: "Resolved client bundle URL.";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly additionalProperties: true;
|
|
82
|
+
};
|
|
83
|
+
readonly PMPluginActionResult: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
readonly description: "Queued successfully.";
|
|
86
|
+
readonly example: "ok";
|
|
87
|
+
};
|
|
88
|
+
readonly PMInstallOrUpdatePayload: {
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
readonly description: "JSON payload for installing or updating a plugin from npm or a compressed package URL.";
|
|
91
|
+
readonly properties: {
|
|
92
|
+
readonly packageName: {
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
readonly description: "Plugin package name.";
|
|
95
|
+
};
|
|
96
|
+
readonly version: {
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
readonly description: "Target plugin version.";
|
|
99
|
+
};
|
|
100
|
+
readonly registry: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly description: "Custom npm registry URL.";
|
|
103
|
+
};
|
|
104
|
+
readonly authToken: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly description: "Authentication token used when accessing a private registry.";
|
|
107
|
+
};
|
|
108
|
+
readonly compressedFileUrl: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
readonly description: "Remote compressed package URL.";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly additionalProperties: true;
|
|
114
|
+
};
|
|
115
|
+
readonly PMUploadPayload: {
|
|
116
|
+
readonly type: "object";
|
|
117
|
+
readonly description: "Multipart payload for uploading a plugin package file.";
|
|
118
|
+
readonly properties: {
|
|
119
|
+
readonly packageName: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly description: "Plugin package name. Required when updating from an uploaded file.";
|
|
122
|
+
};
|
|
123
|
+
readonly version: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
};
|
|
126
|
+
readonly registry: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
};
|
|
129
|
+
readonly authToken: {
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
};
|
|
132
|
+
readonly file: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly format: "binary";
|
|
135
|
+
readonly description: "Compressed plugin package file.";
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
readonly additionalProperties: true;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
declare const _default: {
|
|
143
|
+
readonly '/pm:list': {
|
|
144
|
+
readonly get: {
|
|
145
|
+
readonly tags: readonly ["pm"];
|
|
146
|
+
readonly summary: "List available plugins";
|
|
147
|
+
readonly description: "Return plugin metadata from the plugin manager. Pass `mode=summary` for a lightweight list built from discovered packages; omit `mode` for full records (locale-aware via the nocobase plugin).";
|
|
148
|
+
readonly parameters: readonly [{
|
|
149
|
+
name: string;
|
|
150
|
+
in: string;
|
|
151
|
+
required: boolean;
|
|
152
|
+
description: string;
|
|
153
|
+
schema: {
|
|
154
|
+
type: string;
|
|
155
|
+
enum: string[];
|
|
156
|
+
};
|
|
157
|
+
}];
|
|
158
|
+
readonly responses: {
|
|
159
|
+
readonly 200: {
|
|
160
|
+
description: string;
|
|
161
|
+
content: {
|
|
162
|
+
'application/json': {
|
|
163
|
+
schema: {
|
|
164
|
+
oneOf: {
|
|
165
|
+
type: string;
|
|
166
|
+
items: {
|
|
167
|
+
$ref: string;
|
|
168
|
+
};
|
|
169
|
+
}[];
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
readonly '/pm:get': {
|
|
178
|
+
readonly get: {
|
|
179
|
+
readonly tags: readonly ["pm"];
|
|
180
|
+
readonly summary: "Get plugin details";
|
|
181
|
+
readonly description: "Return metadata for a single plugin.";
|
|
182
|
+
readonly parameters: readonly [{
|
|
183
|
+
name: string;
|
|
184
|
+
in: string;
|
|
185
|
+
description: string;
|
|
186
|
+
required: boolean;
|
|
187
|
+
schema: {
|
|
188
|
+
type: string;
|
|
189
|
+
};
|
|
190
|
+
}];
|
|
191
|
+
readonly responses: {
|
|
192
|
+
readonly 200: {
|
|
193
|
+
readonly description: "OK";
|
|
194
|
+
readonly content: {
|
|
195
|
+
readonly 'application/json': {
|
|
196
|
+
readonly schema: {
|
|
197
|
+
readonly $ref: "#/components/schemas/PMPlugin";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
readonly '/pm:listEnabled': {
|
|
206
|
+
readonly get: {
|
|
207
|
+
readonly tags: readonly ["pm"];
|
|
208
|
+
readonly summary: "List enabled client plugins";
|
|
209
|
+
readonly description: "Return enabled plugins that expose a `dist/client/index.js` entry.";
|
|
210
|
+
readonly parameters: readonly [];
|
|
211
|
+
readonly responses: {
|
|
212
|
+
readonly 200: {
|
|
213
|
+
description: string;
|
|
214
|
+
content: {
|
|
215
|
+
'application/json': {
|
|
216
|
+
schema: {
|
|
217
|
+
type: string;
|
|
218
|
+
items: {
|
|
219
|
+
$ref: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly '/pm:listEnabledV2': {
|
|
229
|
+
readonly get: {
|
|
230
|
+
readonly tags: readonly ["pm"];
|
|
231
|
+
readonly summary: "List enabled client-v2 plugins";
|
|
232
|
+
readonly description: "Return enabled plugins that expose a `dist/client-v2/index.js` entry.";
|
|
233
|
+
readonly parameters: readonly [];
|
|
234
|
+
readonly responses: {
|
|
235
|
+
readonly 200: {
|
|
236
|
+
description: string;
|
|
237
|
+
content: {
|
|
238
|
+
'application/json': {
|
|
239
|
+
schema: {
|
|
240
|
+
type: string;
|
|
241
|
+
items: {
|
|
242
|
+
$ref: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
readonly '/pm:add': {
|
|
252
|
+
readonly post: {
|
|
253
|
+
readonly tags: readonly ["pm"];
|
|
254
|
+
readonly summary: "Install a plugin";
|
|
255
|
+
readonly description: "Queue a plugin installation from npm, a remote compressed package URL, or an uploaded package file.";
|
|
256
|
+
readonly requestBody: {
|
|
257
|
+
readonly required: true;
|
|
258
|
+
readonly content: {
|
|
259
|
+
readonly 'application/json': {
|
|
260
|
+
readonly schema: {
|
|
261
|
+
readonly $ref: "#/components/schemas/PMInstallOrUpdatePayload";
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly 'multipart/form-data': {
|
|
265
|
+
readonly schema: {
|
|
266
|
+
readonly $ref: "#/components/schemas/PMUploadPayload";
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
readonly responses: {
|
|
272
|
+
readonly 200: {
|
|
273
|
+
description: string;
|
|
274
|
+
content: {
|
|
275
|
+
'application/json': {
|
|
276
|
+
schema: {
|
|
277
|
+
oneOf: ({
|
|
278
|
+
type: string;
|
|
279
|
+
example: string;
|
|
280
|
+
$ref?: undefined;
|
|
281
|
+
} | {
|
|
282
|
+
$ref: string;
|
|
283
|
+
type?: undefined;
|
|
284
|
+
example?: undefined;
|
|
285
|
+
})[];
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
readonly '/pm:update': {
|
|
294
|
+
readonly post: {
|
|
295
|
+
readonly tags: readonly ["pm"];
|
|
296
|
+
readonly summary: "Update a plugin";
|
|
297
|
+
readonly description: "Queue a plugin update from npm, a remote compressed package URL, or an uploaded package file.";
|
|
298
|
+
readonly requestBody: {
|
|
299
|
+
readonly required: true;
|
|
300
|
+
readonly content: {
|
|
301
|
+
readonly 'application/json': {
|
|
302
|
+
readonly schema: {
|
|
303
|
+
readonly $ref: "#/components/schemas/PMInstallOrUpdatePayload";
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
readonly 'multipart/form-data': {
|
|
307
|
+
readonly schema: {
|
|
308
|
+
readonly $ref: "#/components/schemas/PMUploadPayload";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly responses: {
|
|
314
|
+
readonly 200: {
|
|
315
|
+
description: string;
|
|
316
|
+
content: {
|
|
317
|
+
'application/json': {
|
|
318
|
+
schema: {
|
|
319
|
+
oneOf: ({
|
|
320
|
+
type: string;
|
|
321
|
+
example: string;
|
|
322
|
+
$ref?: undefined;
|
|
323
|
+
} | {
|
|
324
|
+
$ref: string;
|
|
325
|
+
type?: undefined;
|
|
326
|
+
example?: undefined;
|
|
327
|
+
})[];
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
readonly '/pm:enable': {
|
|
336
|
+
readonly post: {
|
|
337
|
+
readonly tags: readonly ["pm"];
|
|
338
|
+
readonly summary: "Enable a plugin";
|
|
339
|
+
readonly description: "Run plugin enable via the plugin manager. Use `awaitResponse=true` to wait for completion. Multiple plugins can be passed in `filterByTk` as a comma-separated list.";
|
|
340
|
+
readonly parameters: readonly [{
|
|
341
|
+
name: string;
|
|
342
|
+
in: string;
|
|
343
|
+
required: boolean;
|
|
344
|
+
description: string;
|
|
345
|
+
schema: {
|
|
346
|
+
type: string;
|
|
347
|
+
};
|
|
348
|
+
}, {
|
|
349
|
+
name: string;
|
|
350
|
+
in: string;
|
|
351
|
+
required: boolean;
|
|
352
|
+
description: string;
|
|
353
|
+
schema: {
|
|
354
|
+
type: string;
|
|
355
|
+
default: boolean;
|
|
356
|
+
};
|
|
357
|
+
}];
|
|
358
|
+
readonly responses: {
|
|
359
|
+
readonly 200: {
|
|
360
|
+
description: string;
|
|
361
|
+
content: {
|
|
362
|
+
'application/json': {
|
|
363
|
+
schema: {
|
|
364
|
+
oneOf: ({
|
|
365
|
+
type: string;
|
|
366
|
+
example: string;
|
|
367
|
+
$ref?: undefined;
|
|
368
|
+
} | {
|
|
369
|
+
$ref: string;
|
|
370
|
+
type?: undefined;
|
|
371
|
+
example?: undefined;
|
|
372
|
+
})[];
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
readonly '/pm:disable': {
|
|
381
|
+
readonly post: {
|
|
382
|
+
readonly tags: readonly ["pm"];
|
|
383
|
+
readonly summary: "Disable a plugin";
|
|
384
|
+
readonly description: "Run plugin disable via the plugin manager. Use `awaitResponse=true` to wait for completion. Multiple plugins can be passed in `filterByTk` as a comma-separated list.";
|
|
385
|
+
readonly parameters: readonly [{
|
|
386
|
+
name: string;
|
|
387
|
+
in: string;
|
|
388
|
+
required: boolean;
|
|
389
|
+
description: string;
|
|
390
|
+
schema: {
|
|
391
|
+
type: string;
|
|
392
|
+
};
|
|
393
|
+
}, {
|
|
394
|
+
name: string;
|
|
395
|
+
in: string;
|
|
396
|
+
required: boolean;
|
|
397
|
+
description: string;
|
|
398
|
+
schema: {
|
|
399
|
+
type: string;
|
|
400
|
+
default: boolean;
|
|
401
|
+
};
|
|
402
|
+
}];
|
|
403
|
+
readonly responses: {
|
|
404
|
+
readonly 200: {
|
|
405
|
+
description: string;
|
|
406
|
+
content: {
|
|
407
|
+
'application/json': {
|
|
408
|
+
schema: {
|
|
409
|
+
oneOf: ({
|
|
410
|
+
type: string;
|
|
411
|
+
example: string;
|
|
412
|
+
$ref?: undefined;
|
|
413
|
+
} | {
|
|
414
|
+
$ref: string;
|
|
415
|
+
type?: undefined;
|
|
416
|
+
example?: undefined;
|
|
417
|
+
})[];
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
readonly '/pm:remove': {
|
|
426
|
+
readonly post: {
|
|
427
|
+
readonly tags: readonly ["pm"];
|
|
428
|
+
readonly summary: "Remove a plugin";
|
|
429
|
+
readonly description: "Queue a removal operation for a plugin.";
|
|
430
|
+
readonly parameters: readonly [{
|
|
431
|
+
name: string;
|
|
432
|
+
in: string;
|
|
433
|
+
description: string;
|
|
434
|
+
required: boolean;
|
|
435
|
+
schema: {
|
|
436
|
+
type: string;
|
|
437
|
+
};
|
|
438
|
+
}];
|
|
439
|
+
readonly responses: {
|
|
440
|
+
readonly 200: {
|
|
441
|
+
description: string;
|
|
442
|
+
content: {
|
|
443
|
+
'application/json': {
|
|
444
|
+
schema: {
|
|
445
|
+
oneOf: ({
|
|
446
|
+
type: string;
|
|
447
|
+
example: string;
|
|
448
|
+
$ref?: undefined;
|
|
449
|
+
} | {
|
|
450
|
+
$ref: string;
|
|
451
|
+
type?: undefined;
|
|
452
|
+
example?: undefined;
|
|
453
|
+
})[];
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
export default _default;
|