@acomo/cli 1.0.11 → 1.0.13
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/AGENTS.md +142 -0
- package/README.md +11 -21
- package/dist/index.js +1542 -217
- package/dist/index.js.map +4 -4
- package/package.json +11 -5
- package/bin/acomo +0 -2
package/dist/index.js
CHANGED
|
@@ -1,38 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
+
}) : x)(function(x) {
|
|
6
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
+
});
|
|
8
9
|
var __export = (target, all) => {
|
|
9
10
|
for (var name in all)
|
|
10
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
12
|
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
13
|
|
|
29
14
|
// src/index.ts
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
import { readFileSync as readFileSync4 } from "fs";
|
|
16
|
+
import { resolve as resolve5, dirname as dirname3 } from "path";
|
|
17
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
33
18
|
|
|
34
19
|
// ../node_modules/yargs/lib/platform-shims/esm.mjs
|
|
35
|
-
|
|
20
|
+
import { notStrictEqual, strictEqual } from "assert";
|
|
36
21
|
|
|
37
22
|
// ../node_modules/cliui/build/lib/index.js
|
|
38
23
|
var align = {
|
|
@@ -323,30 +308,30 @@ function ui(opts) {
|
|
|
323
308
|
}
|
|
324
309
|
|
|
325
310
|
// ../node_modules/escalade/sync/index.mjs
|
|
326
|
-
|
|
327
|
-
|
|
311
|
+
import { dirname, resolve } from "path";
|
|
312
|
+
import { readdirSync, statSync } from "fs";
|
|
328
313
|
function sync_default(start, callback) {
|
|
329
|
-
let dir =
|
|
330
|
-
let tmp, stats =
|
|
314
|
+
let dir = resolve(".", start);
|
|
315
|
+
let tmp, stats = statSync(dir);
|
|
331
316
|
if (!stats.isDirectory()) {
|
|
332
|
-
dir =
|
|
317
|
+
dir = dirname(dir);
|
|
333
318
|
}
|
|
334
319
|
while (true) {
|
|
335
|
-
tmp = callback(dir,
|
|
336
|
-
if (tmp) return
|
|
337
|
-
dir =
|
|
320
|
+
tmp = callback(dir, readdirSync(dir));
|
|
321
|
+
if (tmp) return resolve(dir, tmp);
|
|
322
|
+
dir = dirname(tmp = dir);
|
|
338
323
|
if (tmp === dir) break;
|
|
339
324
|
}
|
|
340
325
|
}
|
|
341
326
|
|
|
342
327
|
// ../node_modules/yargs/lib/platform-shims/esm.mjs
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
328
|
+
import { inspect } from "util";
|
|
329
|
+
import { readFileSync as readFileSync3 } from "fs";
|
|
330
|
+
import { fileURLToPath } from "url";
|
|
346
331
|
|
|
347
332
|
// ../node_modules/yargs-parser/build/lib/index.js
|
|
348
|
-
|
|
349
|
-
|
|
333
|
+
import { format } from "util";
|
|
334
|
+
import { normalize, resolve as resolve2 } from "path";
|
|
350
335
|
|
|
351
336
|
// ../node_modules/yargs-parser/build/lib/string-utils.js
|
|
352
337
|
function camelCase(str) {
|
|
@@ -1284,7 +1269,7 @@ function stripQuotes(val) {
|
|
|
1284
1269
|
}
|
|
1285
1270
|
|
|
1286
1271
|
// ../node_modules/yargs-parser/build/lib/index.js
|
|
1287
|
-
|
|
1272
|
+
import { readFileSync } from "fs";
|
|
1288
1273
|
var _a;
|
|
1289
1274
|
var _b;
|
|
1290
1275
|
var _c;
|
|
@@ -1302,16 +1287,16 @@ var parser = new YargsParser({
|
|
|
1302
1287
|
env: () => {
|
|
1303
1288
|
return env;
|
|
1304
1289
|
},
|
|
1305
|
-
format
|
|
1306
|
-
normalize
|
|
1307
|
-
resolve:
|
|
1290
|
+
format,
|
|
1291
|
+
normalize,
|
|
1292
|
+
resolve: resolve2,
|
|
1308
1293
|
// TODO: figure out a way to combine ESM and CJS coverage, such that
|
|
1309
1294
|
// we can exercise all the lines below:
|
|
1310
1295
|
require: (path2) => {
|
|
1311
|
-
if (typeof
|
|
1312
|
-
return
|
|
1296
|
+
if (typeof __require !== "undefined") {
|
|
1297
|
+
return __require(path2);
|
|
1313
1298
|
} else if (path2.match(/\.json$/)) {
|
|
1314
|
-
return JSON.parse(
|
|
1299
|
+
return JSON.parse(readFileSync(path2, "utf8"));
|
|
1315
1300
|
} else {
|
|
1316
1301
|
throw Error("only .json config files are supported in ESM");
|
|
1317
1302
|
}
|
|
@@ -1330,7 +1315,7 @@ yargsParser.looksLikeNumber = looksLikeNumber;
|
|
|
1330
1315
|
var lib_default = yargsParser;
|
|
1331
1316
|
|
|
1332
1317
|
// ../node_modules/yargs/lib/platform-shims/esm.mjs
|
|
1333
|
-
|
|
1318
|
+
import { basename, dirname as dirname2, extname, relative, resolve as resolve4 } from "path";
|
|
1334
1319
|
|
|
1335
1320
|
// ../node_modules/yargs/build/lib/utils/process-argv.js
|
|
1336
1321
|
function getProcessArgvBinIndex() {
|
|
@@ -1363,19 +1348,19 @@ var YError = class _YError extends Error {
|
|
|
1363
1348
|
};
|
|
1364
1349
|
|
|
1365
1350
|
// ../node_modules/y18n/build/lib/platform-shims/node.js
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1351
|
+
import { readFileSync as readFileSync2, statSync as statSync2, writeFile } from "fs";
|
|
1352
|
+
import { format as format2 } from "util";
|
|
1353
|
+
import { resolve as resolve3 } from "path";
|
|
1369
1354
|
var node_default = {
|
|
1370
1355
|
fs: {
|
|
1371
|
-
readFileSync:
|
|
1372
|
-
writeFile
|
|
1356
|
+
readFileSync: readFileSync2,
|
|
1357
|
+
writeFile
|
|
1373
1358
|
},
|
|
1374
|
-
format:
|
|
1375
|
-
resolve:
|
|
1359
|
+
format: format2,
|
|
1360
|
+
resolve: resolve3,
|
|
1376
1361
|
exists: (file) => {
|
|
1377
1362
|
try {
|
|
1378
|
-
return (
|
|
1363
|
+
return statSync2(file).isFile();
|
|
1379
1364
|
} catch (err) {
|
|
1380
1365
|
return false;
|
|
1381
1366
|
}
|
|
@@ -1550,27 +1535,26 @@ var y18n2 = (opts) => {
|
|
|
1550
1535
|
var y18n_default = y18n2;
|
|
1551
1536
|
|
|
1552
1537
|
// ../node_modules/yargs/lib/platform-shims/esm.mjs
|
|
1553
|
-
var import_meta = {};
|
|
1554
1538
|
var REQUIRE_ERROR = "require is not supported by ESM";
|
|
1555
1539
|
var REQUIRE_DIRECTORY_ERROR = "loading a directory of commands is not supported yet for ESM";
|
|
1556
|
-
var
|
|
1540
|
+
var __dirname;
|
|
1557
1541
|
try {
|
|
1558
|
-
|
|
1542
|
+
__dirname = fileURLToPath(import.meta.url);
|
|
1559
1543
|
} catch (e) {
|
|
1560
|
-
|
|
1544
|
+
__dirname = process.cwd();
|
|
1561
1545
|
}
|
|
1562
|
-
var mainFilename =
|
|
1546
|
+
var mainFilename = __dirname.substring(0, __dirname.lastIndexOf("node_modules"));
|
|
1563
1547
|
var esm_default = {
|
|
1564
1548
|
assert: {
|
|
1565
|
-
notStrictEqual
|
|
1566
|
-
strictEqual
|
|
1549
|
+
notStrictEqual,
|
|
1550
|
+
strictEqual
|
|
1567
1551
|
},
|
|
1568
1552
|
cliui: ui,
|
|
1569
1553
|
findUp: sync_default,
|
|
1570
1554
|
getEnv: (key) => {
|
|
1571
1555
|
return process.env[key];
|
|
1572
1556
|
},
|
|
1573
|
-
inspect
|
|
1557
|
+
inspect,
|
|
1574
1558
|
getCallerFile: () => {
|
|
1575
1559
|
throw new YError(REQUIRE_DIRECTORY_ERROR);
|
|
1576
1560
|
},
|
|
@@ -1578,11 +1562,11 @@ var esm_default = {
|
|
|
1578
1562
|
mainFilename: mainFilename || process.cwd(),
|
|
1579
1563
|
Parser: lib_default,
|
|
1580
1564
|
path: {
|
|
1581
|
-
basename
|
|
1582
|
-
dirname:
|
|
1583
|
-
extname
|
|
1584
|
-
relative
|
|
1585
|
-
resolve:
|
|
1565
|
+
basename,
|
|
1566
|
+
dirname: dirname2,
|
|
1567
|
+
extname,
|
|
1568
|
+
relative,
|
|
1569
|
+
resolve: resolve4
|
|
1586
1570
|
},
|
|
1587
1571
|
process: {
|
|
1588
1572
|
argv: () => process.argv,
|
|
@@ -1593,7 +1577,7 @@ var esm_default = {
|
|
|
1593
1577
|
nextTick: process.nextTick,
|
|
1594
1578
|
stdColumns: typeof process.stdout.columns !== "undefined" ? process.stdout.columns : null
|
|
1595
1579
|
},
|
|
1596
|
-
readFileSync:
|
|
1580
|
+
readFileSync: readFileSync3,
|
|
1597
1581
|
require: () => {
|
|
1598
1582
|
throw new YError(REQUIRE_ERROR);
|
|
1599
1583
|
},
|
|
@@ -1604,7 +1588,7 @@ var esm_default = {
|
|
|
1604
1588
|
return [...str].length;
|
|
1605
1589
|
},
|
|
1606
1590
|
y18n: y18n_default({
|
|
1607
|
-
directory: (
|
|
1591
|
+
directory: resolve4(__dirname, "../../../locales"),
|
|
1608
1592
|
updateFiles: false
|
|
1609
1593
|
})
|
|
1610
1594
|
};
|
|
@@ -1815,10 +1799,10 @@ function isFunction(arg) {
|
|
|
1815
1799
|
|
|
1816
1800
|
// ../node_modules/yargs/build/lib/utils/which-module.js
|
|
1817
1801
|
function whichModule(exported) {
|
|
1818
|
-
if (typeof
|
|
1802
|
+
if (typeof __require === "undefined")
|
|
1819
1803
|
return null;
|
|
1820
|
-
for (let i = 0, files = Object.keys(
|
|
1821
|
-
mod =
|
|
1804
|
+
for (let i = 0, files = Object.keys(__require.cache), mod; i < files.length; i++) {
|
|
1805
|
+
mod = __require.cache[files[i]];
|
|
1822
1806
|
if (mod.exports === exported)
|
|
1823
1807
|
return mod;
|
|
1824
1808
|
}
|
|
@@ -3343,7 +3327,7 @@ function applyExtends(config, cwd, mergeExtends, _shim) {
|
|
|
3343
3327
|
let pathToDefault = null;
|
|
3344
3328
|
if (!isPath) {
|
|
3345
3329
|
try {
|
|
3346
|
-
pathToDefault =
|
|
3330
|
+
pathToDefault = __require.resolve(config.extends);
|
|
3347
3331
|
} catch (_err) {
|
|
3348
3332
|
return config;
|
|
3349
3333
|
}
|
|
@@ -3352,7 +3336,7 @@ function applyExtends(config, cwd, mergeExtends, _shim) {
|
|
|
3352
3336
|
}
|
|
3353
3337
|
checkForCircularExtends(pathToDefault);
|
|
3354
3338
|
previouslyVisitedConfigs.push(pathToDefault);
|
|
3355
|
-
defaultConfig = isPath ? JSON.parse(shim2.readFileSync(pathToDefault, "utf8")) :
|
|
3339
|
+
defaultConfig = isPath ? JSON.parse(shim2.readFileSync(pathToDefault, "utf8")) : __require(config.extends);
|
|
3356
3340
|
delete config.extends;
|
|
3357
3341
|
defaultConfig = applyExtends(defaultConfig, shim2.path.dirname(pathToDefault), mergeExtends, shim2);
|
|
3358
3342
|
}
|
|
@@ -12115,32 +12099,35 @@ var textFieldType = (type) => {
|
|
|
12115
12099
|
};
|
|
12116
12100
|
|
|
12117
12101
|
// src/lib/config-store.ts
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
var CONFIG_DIR =
|
|
12122
|
-
var CONFIG_FILE =
|
|
12102
|
+
import fs from "fs";
|
|
12103
|
+
import path from "path";
|
|
12104
|
+
import os from "os";
|
|
12105
|
+
var CONFIG_DIR = path.join(os.homedir(), ".acomo");
|
|
12106
|
+
var CONFIG_FILE = path.join(CONFIG_DIR, "config.json");
|
|
12123
12107
|
var ENV_KEYS = {
|
|
12124
12108
|
baseUrl: "ACOMO_BASE_URL",
|
|
12125
12109
|
tenantId: "ACOMO_TENANT_ID",
|
|
12126
|
-
accessToken: "ACOMO_ACCESS_TOKEN"
|
|
12127
|
-
email: "ACOMO_EMAIL"
|
|
12110
|
+
accessToken: "ACOMO_ACCESS_TOKEN"
|
|
12128
12111
|
};
|
|
12112
|
+
var DEFAULT_BASE_URL = "https://acomo.app";
|
|
12129
12113
|
function loadEnvConfig() {
|
|
12130
12114
|
const env2 = {};
|
|
12131
12115
|
if (process.env[ENV_KEYS.baseUrl]) env2.baseUrl = process.env[ENV_KEYS.baseUrl];
|
|
12132
12116
|
if (process.env[ENV_KEYS.tenantId]) env2.tenantId = process.env[ENV_KEYS.tenantId];
|
|
12133
12117
|
if (process.env[ENV_KEYS.accessToken]) env2.accessToken = process.env[ENV_KEYS.accessToken];
|
|
12134
|
-
if (process.env[ENV_KEYS.email]) env2.email = process.env[ENV_KEYS.email];
|
|
12135
12118
|
return env2;
|
|
12136
12119
|
}
|
|
12137
12120
|
function loadConfig() {
|
|
12138
12121
|
try {
|
|
12139
|
-
if (!
|
|
12122
|
+
if (!fs.existsSync(CONFIG_FILE)) {
|
|
12140
12123
|
return null;
|
|
12141
12124
|
}
|
|
12142
|
-
const content =
|
|
12143
|
-
|
|
12125
|
+
const content = fs.readFileSync(CONFIG_FILE, "utf-8");
|
|
12126
|
+
const raw = JSON.parse(content);
|
|
12127
|
+
const baseUrl = typeof raw.baseUrl === "string" ? raw.baseUrl : "";
|
|
12128
|
+
const tenantId = typeof raw.tenantId === "string" ? raw.tenantId : "";
|
|
12129
|
+
const accessToken = typeof raw.accessToken === "string" ? raw.accessToken : "";
|
|
12130
|
+
return { baseUrl, tenantId, accessToken };
|
|
12144
12131
|
} catch (error) {
|
|
12145
12132
|
return null;
|
|
12146
12133
|
}
|
|
@@ -12152,10 +12139,9 @@ function resolveConfig() {
|
|
|
12152
12139
|
return null;
|
|
12153
12140
|
}
|
|
12154
12141
|
const merged = {
|
|
12155
|
-
baseUrl: envConfig.baseUrl ?? fileConfig?.baseUrl ?? "",
|
|
12142
|
+
baseUrl: (envConfig.baseUrl ?? fileConfig?.baseUrl ?? "").trim(),
|
|
12156
12143
|
tenantId: envConfig.tenantId ?? fileConfig?.tenantId ?? "",
|
|
12157
|
-
accessToken: envConfig.accessToken ?? fileConfig?.accessToken ?? ""
|
|
12158
|
-
email: envConfig.email ?? fileConfig?.email
|
|
12144
|
+
accessToken: envConfig.accessToken ?? fileConfig?.accessToken ?? ""
|
|
12159
12145
|
};
|
|
12160
12146
|
if (!merged.accessToken || !merged.tenantId) {
|
|
12161
12147
|
return null;
|
|
@@ -12163,36 +12149,45 @@ function resolveConfig() {
|
|
|
12163
12149
|
return merged;
|
|
12164
12150
|
}
|
|
12165
12151
|
function saveConfig(config) {
|
|
12166
|
-
if (!
|
|
12167
|
-
|
|
12152
|
+
if (!fs.existsSync(CONFIG_DIR)) {
|
|
12153
|
+
fs.mkdirSync(CONFIG_DIR, { recursive: true });
|
|
12168
12154
|
}
|
|
12169
|
-
|
|
12155
|
+
fs.writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2), {
|
|
12170
12156
|
mode: 384
|
|
12171
12157
|
});
|
|
12172
12158
|
}
|
|
12173
12159
|
function clearConfig() {
|
|
12174
12160
|
try {
|
|
12175
|
-
if (
|
|
12176
|
-
|
|
12161
|
+
if (fs.existsSync(CONFIG_FILE)) {
|
|
12162
|
+
fs.unlinkSync(CONFIG_FILE);
|
|
12177
12163
|
}
|
|
12178
12164
|
} catch (error) {
|
|
12179
12165
|
}
|
|
12180
12166
|
}
|
|
12181
12167
|
|
|
12182
12168
|
// src/lib/api-client.ts
|
|
12183
|
-
|
|
12169
|
+
var REQUIRED_KEYS = [
|
|
12170
|
+
{ key: "baseUrl", envKey: ENV_KEYS.baseUrl },
|
|
12171
|
+
{ key: "tenantId", envKey: ENV_KEYS.tenantId },
|
|
12172
|
+
{ key: "accessToken", envKey: ENV_KEYS.accessToken }
|
|
12173
|
+
];
|
|
12174
|
+
function createConfiguration() {
|
|
12184
12175
|
const config = resolveConfig();
|
|
12185
12176
|
if (!config) {
|
|
12186
|
-
throw new Error("\u8A8D\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`acomo login` \u3092\u5B9F\u884C\u3059\u308B\u304B\u3001\u74B0\u5883\u5909\u6570 (ACOMO_ACCESS_TOKEN, ACOMO_TENANT_ID) \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002");
|
|
12177
|
+
throw new Error("\u8A8D\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`acomo login` \u3092\u5B9F\u884C\u3059\u308B\u304B\u3001\u74B0\u5883\u5909\u6570 (ACOMO_ACCESS_TOKEN, ACOMO_TENANT_ID, ACOMO_BASE_URL) \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002");
|
|
12178
|
+
}
|
|
12179
|
+
const missing = REQUIRED_KEYS.filter(({ key }) => !config[key] || String(config[key]).trim() === "");
|
|
12180
|
+
if (missing.length > 0) {
|
|
12181
|
+
const keys = missing.map(({ key }) => key).join(", ");
|
|
12182
|
+
const envVars = missing.map(({ envKey }) => envKey).join(", ");
|
|
12183
|
+
const message = missing.length === 1 ? `${missing[0].key} \u304C\u672A\u8A2D\u5B9A\u3067\u3059\u3002\`acomo login\` \u3092\u5B9F\u884C\u3059\u308B\u304B\u3001\u74B0\u5883\u5909\u6570 ${missing[0].envKey} \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002` : `\u6B21\u306E\u8A2D\u5B9A\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u307E\u3059: ${keys}\u3002\`acomo login\` \u3092\u5B9F\u884C\u3059\u308B\u304B\u3001\u74B0\u5883\u5909\u6570 ${envVars} \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002`;
|
|
12184
|
+
throw new Error(message);
|
|
12187
12185
|
}
|
|
12188
12186
|
const params = {
|
|
12189
12187
|
basePath: config.baseUrl,
|
|
12190
12188
|
accessToken: config.accessToken,
|
|
12191
12189
|
apiKey: config.tenantId
|
|
12192
12190
|
};
|
|
12193
|
-
if (options?.accept === "text/plain") {
|
|
12194
|
-
params.headers = { Accept: "text/plain" };
|
|
12195
|
-
}
|
|
12196
12191
|
return new Configuration(params);
|
|
12197
12192
|
}
|
|
12198
12193
|
function extractApiClasses() {
|
|
@@ -12221,118 +12216,88 @@ function buildOperationRegistry(config) {
|
|
|
12221
12216
|
}
|
|
12222
12217
|
|
|
12223
12218
|
// src/commands/login.ts
|
|
12224
|
-
|
|
12219
|
+
import * as readline from "readline";
|
|
12225
12220
|
function command2() {
|
|
12226
12221
|
return "login";
|
|
12227
12222
|
}
|
|
12228
12223
|
function describe() {
|
|
12229
12224
|
return "acomo \u306B\u30ED\u30B0\u30A4\u30F3\u3057\u307E\u3059";
|
|
12230
12225
|
}
|
|
12226
|
+
var helpOptions = [
|
|
12227
|
+
{ name: "base-url", type: "string", description: `baseUrl (env: ${ENV_KEYS.baseUrl})` },
|
|
12228
|
+
{ name: "tenant-id", type: "string", description: `tenantId (env: ${ENV_KEYS.tenantId})` },
|
|
12229
|
+
{ name: "access-token", type: "string", description: `accessToken (env: ${ENV_KEYS.accessToken})` }
|
|
12230
|
+
];
|
|
12231
12231
|
function builder(yargs) {
|
|
12232
|
-
return yargs.option("url", {
|
|
12232
|
+
return yargs.option("base-url", {
|
|
12233
12233
|
type: "string",
|
|
12234
|
-
description: `
|
|
12235
|
-
default: process.env[ENV_KEYS.baseUrl] || "https://acomo.app"
|
|
12234
|
+
description: `baseUrl (env: ${ENV_KEYS.baseUrl})`
|
|
12236
12235
|
}).option("tenant-id", {
|
|
12237
12236
|
type: "string",
|
|
12238
|
-
description: `
|
|
12237
|
+
description: `tenantId (env: ${ENV_KEYS.tenantId})`,
|
|
12239
12238
|
default: process.env[ENV_KEYS.tenantId]
|
|
12240
|
-
}).option("token", {
|
|
12239
|
+
}).option("access-token", {
|
|
12241
12240
|
type: "string",
|
|
12242
|
-
description:
|
|
12241
|
+
description: `accessToken (env: ${ENV_KEYS.accessToken})`,
|
|
12243
12242
|
default: process.env[ENV_KEYS.accessToken]
|
|
12244
|
-
}).option("email", {
|
|
12245
|
-
type: "string",
|
|
12246
|
-
description: `\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9 (env: ${ENV_KEYS.email})`,
|
|
12247
|
-
default: process.env[ENV_KEYS.email]
|
|
12248
|
-
}).option("password", {
|
|
12249
|
-
type: "string",
|
|
12250
|
-
description: "\u30D1\u30B9\u30EF\u30FC\u30C9"
|
|
12251
12243
|
});
|
|
12252
12244
|
}
|
|
12253
|
-
async function promptInput(question,
|
|
12245
|
+
async function promptInput(question, defaultValue, displayDefault) {
|
|
12254
12246
|
const rl = readline.createInterface({
|
|
12255
12247
|
input: process.stdin,
|
|
12256
12248
|
output: process.stdout
|
|
12257
12249
|
});
|
|
12250
|
+
const shown = displayDefault !== void 0 ? displayDefault : defaultValue;
|
|
12251
|
+
const prompt = shown !== void 0 && shown !== "" ? `${question} [${shown}]: ` : `${question}: `;
|
|
12258
12252
|
return new Promise((resolve6) => {
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
stdin.on("data", (char) => {
|
|
12265
|
-
const c = char.toString();
|
|
12266
|
-
if (c === "\n" || c === "\r" || c === "") {
|
|
12267
|
-
stdin.pause();
|
|
12268
|
-
if (stdin.setRawMode) stdin.setRawMode(false);
|
|
12269
|
-
process.stdout.write("\n");
|
|
12270
|
-
rl.close();
|
|
12271
|
-
resolve6(password);
|
|
12272
|
-
} else if (c === "") {
|
|
12273
|
-
process.exit(130);
|
|
12274
|
-
} else if (c === "\x7F") {
|
|
12275
|
-
if (password.length > 0) {
|
|
12276
|
-
password = password.slice(0, -1);
|
|
12277
|
-
process.stdout.write("\b \b");
|
|
12278
|
-
}
|
|
12279
|
-
} else {
|
|
12280
|
-
password += c;
|
|
12281
|
-
process.stdout.write("*");
|
|
12282
|
-
}
|
|
12283
|
-
});
|
|
12284
|
-
} else {
|
|
12285
|
-
rl.question(question, (answer) => {
|
|
12286
|
-
rl.close();
|
|
12287
|
-
resolve6(answer);
|
|
12288
|
-
});
|
|
12289
|
-
}
|
|
12253
|
+
rl.question(prompt, (answer) => {
|
|
12254
|
+
rl.close();
|
|
12255
|
+
const trimmed = answer.trim();
|
|
12256
|
+
resolve6(trimmed !== "" ? trimmed : defaultValue ?? "");
|
|
12257
|
+
});
|
|
12290
12258
|
});
|
|
12291
12259
|
}
|
|
12260
|
+
function maskAccessToken(token) {
|
|
12261
|
+
return token && token.length > 10 ? `${token.slice(0, 10)}...` : token;
|
|
12262
|
+
}
|
|
12292
12263
|
async function handler(argv) {
|
|
12293
12264
|
try {
|
|
12294
|
-
const
|
|
12295
|
-
const
|
|
12265
|
+
const existing = loadConfig();
|
|
12266
|
+
const defaultBaseUrl = argv.baseUrl ?? existing?.baseUrl ?? process.env[ENV_KEYS.baseUrl] ?? DEFAULT_BASE_URL;
|
|
12267
|
+
const defaultTenantId = argv.tenantId ?? existing?.tenantId ?? process.env[ENV_KEYS.tenantId] ?? "";
|
|
12268
|
+
const defaultAccessToken = argv.accessToken ?? existing?.accessToken ?? process.env[ENV_KEYS.accessToken] ?? "";
|
|
12269
|
+
let baseUrl;
|
|
12270
|
+
let tenantId;
|
|
12271
|
+
let accessToken;
|
|
12272
|
+
if (process.stdin.isTTY) {
|
|
12273
|
+
baseUrl = (await promptInput("baseUrl", defaultBaseUrl)).trim() || defaultBaseUrl;
|
|
12274
|
+
tenantId = (await promptInput("tenantId", defaultTenantId)).trim();
|
|
12275
|
+
accessToken = (await promptInput("accessToken", defaultAccessToken, maskAccessToken(defaultAccessToken))).trim();
|
|
12276
|
+
} else {
|
|
12277
|
+
baseUrl = defaultBaseUrl;
|
|
12278
|
+
tenantId = defaultTenantId;
|
|
12279
|
+
accessToken = defaultAccessToken;
|
|
12280
|
+
}
|
|
12296
12281
|
if (!tenantId) {
|
|
12297
|
-
console.error(
|
|
12282
|
+
console.error(
|
|
12283
|
+
`tenantId \u304C\u6307\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002--tenant-id \u30AA\u30D7\u30B7\u30E7\u30F3\u307E\u305F\u306F\u74B0\u5883\u5909\u6570 ${ENV_KEYS.tenantId} \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002`
|
|
12284
|
+
);
|
|
12298
12285
|
process.exit(1);
|
|
12299
12286
|
}
|
|
12300
|
-
if (
|
|
12301
|
-
|
|
12302
|
-
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
console.log("\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u8A2D\u5B9A\u3057\u307E\u3057\u305F\u3002");
|
|
12308
|
-
return;
|
|
12309
|
-
}
|
|
12310
|
-
let email = argv.email;
|
|
12311
|
-
let password = argv.password;
|
|
12312
|
-
if (!email) {
|
|
12313
|
-
email = await promptInput("Email: ");
|
|
12314
|
-
}
|
|
12315
|
-
if (!password) {
|
|
12316
|
-
password = await promptInput("Password: ", true);
|
|
12287
|
+
if (!accessToken) {
|
|
12288
|
+
console.error(
|
|
12289
|
+
`\u975E\u30A4\u30F3\u30BF\u30E9\u30AF\u30C6\u30A3\u30D6\u74B0\u5883\u3067\u306F --access-token \u3068 --tenant-id\uFF08\u307E\u305F\u306F\u74B0\u5883\u5909\u6570\uFF09\u306E\u6307\u5B9A\u304C\u5FC5\u8981\u3067\u3059\u3002
|
|
12290
|
+
acomo login --tenant-id <id> --access-token <accessToken>
|
|
12291
|
+
\u307E\u305F\u306F\u74B0\u5883\u5909\u6570 ${ENV_KEYS.accessToken}, ${ENV_KEYS.tenantId} \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002`
|
|
12292
|
+
);
|
|
12293
|
+
process.exit(1);
|
|
12317
12294
|
}
|
|
12318
|
-
const config = new Configuration({
|
|
12319
|
-
basePath: url
|
|
12320
|
-
});
|
|
12321
|
-
const authApi = new AuthApi(config);
|
|
12322
|
-
const response = await authApi.signInWithEmailAndPassword({
|
|
12323
|
-
signInDto: {
|
|
12324
|
-
authTenantId: tenantId,
|
|
12325
|
-
email,
|
|
12326
|
-
password
|
|
12327
|
-
}
|
|
12328
|
-
});
|
|
12329
12295
|
saveConfig({
|
|
12330
|
-
baseUrl:
|
|
12296
|
+
baseUrl: baseUrl || DEFAULT_BASE_URL,
|
|
12331
12297
|
tenantId,
|
|
12332
|
-
accessToken
|
|
12333
|
-
email
|
|
12298
|
+
accessToken
|
|
12334
12299
|
});
|
|
12335
|
-
console.log("\u30ED\u30B0\u30A4\u30F3\
|
|
12300
|
+
console.log("\u30ED\u30B0\u30A4\u30F3\u60C5\u5831\u3092\u8A2D\u5B9A\u3057\u307E\u3057\u305F\u3002");
|
|
12336
12301
|
} catch (error) {
|
|
12337
12302
|
console.error("\u30ED\u30B0\u30A4\u30F3\u306B\u5931\u6557\u3057\u307E\u3057\u305F:", error.message);
|
|
12338
12303
|
process.exit(1);
|
|
@@ -12346,6 +12311,7 @@ function command3() {
|
|
|
12346
12311
|
function describe2() {
|
|
12347
12312
|
return "acomo \u304B\u3089\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u307E\u3059\uFF08\u30ED\u30FC\u30AB\u30EB\u8A2D\u5B9A\u3092\u30AF\u30EA\u30A2\uFF09";
|
|
12348
12313
|
}
|
|
12314
|
+
var helpOptions2 = [];
|
|
12349
12315
|
function builder2(yargs) {
|
|
12350
12316
|
return yargs;
|
|
12351
12317
|
}
|
|
@@ -12366,6 +12332,12 @@ function command4() {
|
|
|
12366
12332
|
function describe3() {
|
|
12367
12333
|
return "\u8A2D\u5B9A\u306E\u8868\u793A\u30FB\u66F4\u65B0";
|
|
12368
12334
|
}
|
|
12335
|
+
var helpPositionals = [
|
|
12336
|
+
{ name: "subcommand", type: "string", required: true, description: "show | set" },
|
|
12337
|
+
{ name: "key", type: "string", required: false, description: "\u8A2D\u5B9A\u30AD\u30FC (baseUrl, tenantId, accessToken)\uFF08set \u6642\uFF09" },
|
|
12338
|
+
{ name: "value", type: "string", required: false, description: "\u8A2D\u5B9A\u5024\uFF08set \u6642\uFF09" }
|
|
12339
|
+
];
|
|
12340
|
+
var helpOptions3 = [];
|
|
12369
12341
|
function builder3(yargs) {
|
|
12370
12342
|
return yargs.command(
|
|
12371
12343
|
"show",
|
|
@@ -12379,7 +12351,7 @@ function builder3(yargs) {
|
|
|
12379
12351
|
"\u8A2D\u5B9A\u3092\u66F4\u65B0",
|
|
12380
12352
|
(y) => y.positional("key", {
|
|
12381
12353
|
type: "string",
|
|
12382
|
-
description: "\u8A2D\u5B9A\u30AD\u30FC (baseUrl, tenantId, accessToken
|
|
12354
|
+
description: "\u8A2D\u5B9A\u30AD\u30FC (baseUrl, tenantId, accessToken)"
|
|
12383
12355
|
}).positional("value", {
|
|
12384
12356
|
type: "string",
|
|
12385
12357
|
description: "\u8A2D\u5B9A\u5024"
|
|
@@ -12403,6 +12375,11 @@ async function showHandler(argv) {
|
|
|
12403
12375
|
accessToken: config.accessToken ? `${config.accessToken.slice(0, 10)}...` : ""
|
|
12404
12376
|
};
|
|
12405
12377
|
console.log(JSON.stringify(masked, null, 2));
|
|
12378
|
+
if (!config.baseUrl || config.baseUrl.trim() === "") {
|
|
12379
|
+
console.error(
|
|
12380
|
+
"baseUrl \u304C\u672A\u8A2D\u5B9A\u3067\u3059\u3002API \u547C\u3073\u51FA\u3057\u304C\u5931\u6557\u3059\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`acomo login` \u3067\u8A2D\u5B9A\u3059\u308B\u304B\u3001\u74B0\u5883\u5909\u6570 ACOMO_BASE_URL \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
|
|
12381
|
+
);
|
|
12382
|
+
}
|
|
12406
12383
|
} catch (error) {
|
|
12407
12384
|
console.error("\u8A2D\u5B9A\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F:", error.message);
|
|
12408
12385
|
process.exit(1);
|
|
@@ -12416,7 +12393,7 @@ async function setHandler(argv) {
|
|
|
12416
12393
|
process.exit(1);
|
|
12417
12394
|
}
|
|
12418
12395
|
const { key, value } = argv;
|
|
12419
|
-
const allowedKeys = ["baseUrl", "tenantId", "accessToken"
|
|
12396
|
+
const allowedKeys = ["baseUrl", "tenantId", "accessToken"];
|
|
12420
12397
|
if (!allowedKeys.includes(key)) {
|
|
12421
12398
|
console.error(`\u7121\u52B9\u306A\u30AD\u30FC\u3067\u3059: ${key}`);
|
|
12422
12399
|
console.error(`\u5229\u7528\u53EF\u80FD\u306A\u30AD\u30FC: ${allowedKeys.join(", ")}`);
|
|
@@ -12558,9 +12535,1105 @@ var operationDescriptions = {
|
|
|
12558
12535
|
"validateExpression": "expression\u304C\u6B63\u3057\u3044\u304B\u3092\u8FD4\u3057\u307E\u3059\u3002"
|
|
12559
12536
|
};
|
|
12560
12537
|
|
|
12538
|
+
// src/generated/operation-params.ts
|
|
12539
|
+
var operationParams = {
|
|
12540
|
+
"approveWorkflowProcess": {
|
|
12541
|
+
httpMethod: "POST",
|
|
12542
|
+
path: "/api/v1/engine/approve/{processId}",
|
|
12543
|
+
params: [
|
|
12544
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" }
|
|
12545
|
+
]
|
|
12546
|
+
},
|
|
12547
|
+
"approveWorkflowProcessWithNodeId": {
|
|
12548
|
+
httpMethod: "POST",
|
|
12549
|
+
path: "/api/v1/engine/approve/{processId}/{nodeId}",
|
|
12550
|
+
params: [
|
|
12551
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
12552
|
+
{ name: "nodeId", in: "path", required: true, type: "string", description: "" }
|
|
12553
|
+
]
|
|
12554
|
+
},
|
|
12555
|
+
"askAiForDataSchema": {
|
|
12556
|
+
httpMethod: "POST",
|
|
12557
|
+
path: "/api/v1/ai/dataSchema",
|
|
12558
|
+
params: [],
|
|
12559
|
+
requestBody: {
|
|
12560
|
+
dtoName: "askAiForDataSchemaDto",
|
|
12561
|
+
properties: [
|
|
12562
|
+
{ name: "request", type: "string", description: "\u4F9D\u983C\u6587", required: true, example: "\u7D4C\u8CBB\u306E\u7533\u8ACB\u30FB\u627F\u8A8D\u696D\u52D9\u306E\u30E2\u30C7\u30EB\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002" },
|
|
12563
|
+
{ name: "enableExistingDataSchemaReference", type: "boolean", description: "\u65E2\u5B58\u306E\u30C7\u30FC\u30BF\u30B9\u30AD\u30FC\u30DE\u306E\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u53C2\u8003\u306B\u3059\u308B\u304B\u3069\u3046\u304B\u3092\u8868\u3059\u30AA\u30D7\u30B7\u30E7\u30F3\u3067\u3059\u3002\ntrue\u306A\u3089\u3070\u3001\u65E2\u5B58\u306E\u516C\u958B\u6E08\u307F\u30E2\u30C7\u30EB\u306E\u30C7\u30FC\u30BF\u30B9\u30AD\u30FC\u30DE\u306E\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u6700\u5927100\u4EF6\u8AAD\u307F\u53D6\u308A\u3001\u751F\u6210\u6642\u306B\u53C2\u8003\u60C5\u5831\u3068\u3057\u3066\u4F7F\u7528\u3057\u307E\u3059\u3002\u5FC5\u305A\u4F7F\u308F\u308C\u308B\u3068\u306F\u9650\u308A\u307E\u305B\u3093\u3002\nfalse\u306A\u3089\u3070\u3001\u30BC\u30ED\u30D9\u30FC\u30B9\u3067\u691C\u8A0E\u3057\u307E\u3059\u3002\n\u30C7\u30D5\u30A9\u30EB\u30C8\u306Ffalse\u3067\u3059\u3002", required: true, example: false }
|
|
12564
|
+
]
|
|
12565
|
+
}
|
|
12566
|
+
},
|
|
12567
|
+
"askAiForModelDefinition": {
|
|
12568
|
+
httpMethod: "POST",
|
|
12569
|
+
path: "/api/v1/ai/definition",
|
|
12570
|
+
params: [],
|
|
12571
|
+
requestBody: {
|
|
12572
|
+
dtoName: "askAiForDefintionDto",
|
|
12573
|
+
properties: [
|
|
12574
|
+
{ name: "request", type: "string", description: "\u4F9D\u983C\u6587", required: true, example: "\u7D4C\u8CBB\u306E\u7533\u8ACB\u30FB\u627F\u8A8D\u696D\u52D9\u306E\u30E2\u30C7\u30EB\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }
|
|
12575
|
+
]
|
|
12576
|
+
}
|
|
12577
|
+
},
|
|
12578
|
+
"chatForWorkflowModeling": {
|
|
12579
|
+
httpMethod: "POST",
|
|
12580
|
+
path: "/api/v1/ai/chat",
|
|
12581
|
+
params: [],
|
|
12582
|
+
requestBody: {
|
|
12583
|
+
dtoName: "chatAiDto",
|
|
12584
|
+
properties: [
|
|
12585
|
+
{ name: "chatId", type: "string", description: "\u30C1\u30E3\u30C3\u30C8ID", required: true },
|
|
12586
|
+
{ name: "request", type: "string", description: "\u4F9D\u983C\u6587", required: true, example: "\u7D4C\u8CBB\u306E\u7533\u8ACB\u30FB\u627F\u8A8D\u696D\u52D9\u306E\u30E2\u30C7\u30EB\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }
|
|
12587
|
+
]
|
|
12588
|
+
}
|
|
12589
|
+
},
|
|
12590
|
+
"connectivityTest": {
|
|
12591
|
+
httpMethod: "POST",
|
|
12592
|
+
path: "/api/v1/slack/connectivityTest",
|
|
12593
|
+
params: []
|
|
12594
|
+
},
|
|
12595
|
+
"convertExpression": {
|
|
12596
|
+
httpMethod: "GET",
|
|
12597
|
+
path: "/api/v1/models/convertExpression/{expressionString}",
|
|
12598
|
+
params: [
|
|
12599
|
+
{ name: "expressionString", in: "path", required: true, type: "string", description: "" }
|
|
12600
|
+
]
|
|
12601
|
+
},
|
|
12602
|
+
"createCorsOrigins": {
|
|
12603
|
+
httpMethod: "POST",
|
|
12604
|
+
path: "/api/v1/cors",
|
|
12605
|
+
params: [],
|
|
12606
|
+
requestBody: {
|
|
12607
|
+
dtoName: "createCorsAllowedOriginDto",
|
|
12608
|
+
properties: [
|
|
12609
|
+
{ name: "url", type: "string", description: "", required: true },
|
|
12610
|
+
{ name: "description", type: "string", description: "", required: true }
|
|
12611
|
+
]
|
|
12612
|
+
}
|
|
12613
|
+
},
|
|
12614
|
+
"createGroup": {
|
|
12615
|
+
httpMethod: "POST",
|
|
12616
|
+
path: "/api/v1/groups",
|
|
12617
|
+
params: []
|
|
12618
|
+
},
|
|
12619
|
+
"createMyOrganization": {
|
|
12620
|
+
httpMethod: "POST",
|
|
12621
|
+
path: "/api/v1/account/my/organization",
|
|
12622
|
+
params: []
|
|
12623
|
+
},
|
|
12624
|
+
"createMyOrganizationsTenant": {
|
|
12625
|
+
httpMethod: "POST",
|
|
12626
|
+
path: "/api/v1/account/my/organization/tenants",
|
|
12627
|
+
params: [],
|
|
12628
|
+
requestBody: {
|
|
12629
|
+
dtoName: "createTenantDto",
|
|
12630
|
+
properties: [
|
|
12631
|
+
{ name: "authTenantId", type: "string", description: "Auth\u30C6\u30CA\u30F3\u30C8ID", required: true },
|
|
12632
|
+
{ name: "name", type: "string", description: "\u30C6\u30CA\u30F3\u30C8\u540D", required: true }
|
|
12633
|
+
]
|
|
12634
|
+
}
|
|
12635
|
+
},
|
|
12636
|
+
"createOrUpdateAuthConfigsIdentityProvider": {
|
|
12637
|
+
httpMethod: "PUT",
|
|
12638
|
+
path: "/api/v1/authConfig/identityProviders",
|
|
12639
|
+
params: [],
|
|
12640
|
+
requestBody: {
|
|
12641
|
+
dtoName: "createOrUpdateIdentityProviderDto",
|
|
12642
|
+
properties: [
|
|
12643
|
+
{ name: "thirdPartyType", type: '"google" | "github" | "gitlab" | "slack" | "custom"', description: "\u30B5\u30FC\u30C9\u30D1\u30FC\u30C6\u30A3\u7A2E\u5225", required: true, example: "google" },
|
|
12644
|
+
{ name: "thirdPartyId", type: "string", description: "\u30B5\u30FC\u30C9\u30D1\u30FC\u30C6\u30A3Id", required: false, example: "google" },
|
|
12645
|
+
{ name: "name", type: "string", description: "\u8A8D\u8A3C\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u540D", required: true, example: "Google" },
|
|
12646
|
+
{ name: "clientId", type: "string", description: "\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8ID", required: true },
|
|
12647
|
+
{ name: "clientSecret", type: "string", description: "\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8", required: true },
|
|
12648
|
+
{ name: "oidcDiscoveryEndpoint", type: "string", description: "OIDC\u30C7\u30A3\u30B9\u30AB\u30D0\u30EA\u30FC\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8", required: false },
|
|
12649
|
+
{ name: "scope", type: "string[]", description: "OAuth Scope", required: false }
|
|
12650
|
+
]
|
|
12651
|
+
}
|
|
12652
|
+
},
|
|
12653
|
+
"createResetPasswordLink": {
|
|
12654
|
+
httpMethod: "POST",
|
|
12655
|
+
path: "/api/v1/authentication/createResetPasswordLink",
|
|
12656
|
+
params: []
|
|
12657
|
+
},
|
|
12658
|
+
"createRole": {
|
|
12659
|
+
httpMethod: "POST",
|
|
12660
|
+
path: "/api/v1/roles",
|
|
12661
|
+
params: []
|
|
12662
|
+
},
|
|
12663
|
+
"createSetting": {
|
|
12664
|
+
httpMethod: "POST",
|
|
12665
|
+
path: "/api/v1/settings",
|
|
12666
|
+
params: []
|
|
12667
|
+
},
|
|
12668
|
+
"createUser": {
|
|
12669
|
+
httpMethod: "POST",
|
|
12670
|
+
path: "/api/v1/users",
|
|
12671
|
+
params: []
|
|
12672
|
+
},
|
|
12673
|
+
"createWorkflowModel": {
|
|
12674
|
+
httpMethod: "POST",
|
|
12675
|
+
path: "/api/v1/models",
|
|
12676
|
+
params: [],
|
|
12677
|
+
requestBody: {
|
|
12678
|
+
dtoName: "createModelDto",
|
|
12679
|
+
properties: [
|
|
12680
|
+
{ name: "name", type: "string", description: "\u30E2\u30C7\u30EB\u540D", required: true, example: "\u7D4C\u8CBB\u7533\u8ACB\u30FB\u627F\u8A8D\u30D5\u30ED\u30FC" },
|
|
12681
|
+
{ name: "description", type: "string", description: "\u8AAC\u660E", required: false, example: "\u7D4C\u8CBB\u7533\u8ACB\u306E\u627F\u8A8D\u3092\u884C\u3044\u307E\u3059\u3002" },
|
|
12682
|
+
{ name: "definition", type: "object", description: "\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u5B9A\u7FA9", required: true },
|
|
12683
|
+
{ name: "dataSchema", type: "object", description: "\u30C7\u30FC\u30BF\u30B9\u30AD\u30FC\u30DE", required: true },
|
|
12684
|
+
{ name: "policy", type: "object", description: "\u30C7\u30FC\u30BF\u30A2\u30AF\u30BB\u30B9\u30DD\u30EA\u30B7\u30FC", required: true }
|
|
12685
|
+
]
|
|
12686
|
+
}
|
|
12687
|
+
},
|
|
12688
|
+
"deleteAuthConfigsIdentityProvider": {
|
|
12689
|
+
httpMethod: "DELETE",
|
|
12690
|
+
path: "/api/v1/authConfig/identityProviders/{thirdPartyId}",
|
|
12691
|
+
params: [
|
|
12692
|
+
{ name: "thirdPartyId", in: "path", required: true, type: "string", description: "" }
|
|
12693
|
+
]
|
|
12694
|
+
},
|
|
12695
|
+
"deleteCorsOrigins": {
|
|
12696
|
+
httpMethod: "DELETE",
|
|
12697
|
+
path: "/api/v1/cors/{id}",
|
|
12698
|
+
params: [
|
|
12699
|
+
{ name: "id", in: "path", required: true, type: "string", description: "" }
|
|
12700
|
+
]
|
|
12701
|
+
},
|
|
12702
|
+
"deleteMyOrganizationsTenant": {
|
|
12703
|
+
httpMethod: "DELETE",
|
|
12704
|
+
path: "/api/v1/account/my/organization/tenants/{tenantId}",
|
|
12705
|
+
params: [
|
|
12706
|
+
{ name: "tenantId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
12707
|
+
]
|
|
12708
|
+
},
|
|
12709
|
+
"deleteMyProcessDataFile": {
|
|
12710
|
+
httpMethod: "POST",
|
|
12711
|
+
path: "/api/v1/my/processes/{processId}/files/delete",
|
|
12712
|
+
params: [
|
|
12713
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
12714
|
+
],
|
|
12715
|
+
requestBody: {
|
|
12716
|
+
dtoName: "createProcessFileDto",
|
|
12717
|
+
properties: [
|
|
12718
|
+
{ name: "property", type: "string", description: "\u30D7\u30ED\u30D1\u30C6\u30A3\uFF08\u30C7\u30FC\u30BF\u9805\u76EE\u540D\uFF09", required: true, example: "attachmentFiles" },
|
|
12719
|
+
{ name: "fileName", type: "string", description: "\u30D5\u30A1\u30A4\u30EB\u540D", required: true, example: "\u9818\u53CE\u66F8.pdf" }
|
|
12720
|
+
]
|
|
12721
|
+
}
|
|
12722
|
+
},
|
|
12723
|
+
"deleteProcessDataFile": {
|
|
12724
|
+
httpMethod: "POST",
|
|
12725
|
+
path: "/api/v1/processes/{processId}/files/delete",
|
|
12726
|
+
params: [
|
|
12727
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
12728
|
+
],
|
|
12729
|
+
requestBody: {
|
|
12730
|
+
dtoName: "createProcessFileDto",
|
|
12731
|
+
properties: [
|
|
12732
|
+
{ name: "property", type: "string", description: "\u30D7\u30ED\u30D1\u30C6\u30A3\uFF08\u30C7\u30FC\u30BF\u9805\u76EE\u540D\uFF09", required: true, example: "attachmentFiles" },
|
|
12733
|
+
{ name: "fileName", type: "string", description: "\u30D5\u30A1\u30A4\u30EB\u540D", required: true, example: "\u9818\u53CE\u66F8.pdf" }
|
|
12734
|
+
]
|
|
12735
|
+
}
|
|
12736
|
+
},
|
|
12737
|
+
"deleteWorkflowModel": {
|
|
12738
|
+
httpMethod: "DELETE",
|
|
12739
|
+
path: "/api/v1/models/{modelId}",
|
|
12740
|
+
params: [
|
|
12741
|
+
{ name: "modelId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
12742
|
+
]
|
|
12743
|
+
},
|
|
12744
|
+
"deleteWorkflowProcess": {
|
|
12745
|
+
httpMethod: "DELETE",
|
|
12746
|
+
path: "/api/v1/processes/{processId}",
|
|
12747
|
+
params: [
|
|
12748
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
12749
|
+
]
|
|
12750
|
+
},
|
|
12751
|
+
"enableMySubscriptions": {
|
|
12752
|
+
httpMethod: "POST",
|
|
12753
|
+
path: "/api/v1/account/my/organization/subscriptions/enable",
|
|
12754
|
+
params: []
|
|
12755
|
+
},
|
|
12756
|
+
"generateToken": {
|
|
12757
|
+
httpMethod: "POST",
|
|
12758
|
+
path: "/api/v1/clientAuth/oauth/token",
|
|
12759
|
+
params: []
|
|
12760
|
+
},
|
|
12761
|
+
"getAccessToken": {
|
|
12762
|
+
httpMethod: "GET",
|
|
12763
|
+
path: "/api/v1/clientAuth/{clientAccessTokenId}",
|
|
12764
|
+
params: [
|
|
12765
|
+
{ name: "clientAccessTokenId", in: "path", required: true, type: "string", description: "" }
|
|
12766
|
+
]
|
|
12767
|
+
},
|
|
12768
|
+
"getAccount": {
|
|
12769
|
+
httpMethod: "GET",
|
|
12770
|
+
path: "/api/v1/account",
|
|
12771
|
+
params: []
|
|
12772
|
+
},
|
|
12773
|
+
"getAuthConfig": {
|
|
12774
|
+
httpMethod: "GET",
|
|
12775
|
+
path: "/api/v1/authConfig",
|
|
12776
|
+
params: []
|
|
12777
|
+
},
|
|
12778
|
+
"getChannels": {
|
|
12779
|
+
httpMethod: "GET",
|
|
12780
|
+
path: "/api/v1/slack/channels",
|
|
12781
|
+
params: []
|
|
12782
|
+
},
|
|
12783
|
+
"getCorsOrigins": {
|
|
12784
|
+
httpMethod: "GET",
|
|
12785
|
+
path: "/api/v1/cors/{id}",
|
|
12786
|
+
params: [
|
|
12787
|
+
{ name: "id", in: "path", required: true, type: "string", description: "" }
|
|
12788
|
+
]
|
|
12789
|
+
},
|
|
12790
|
+
"getCurrentTenant": {
|
|
12791
|
+
httpMethod: "GET",
|
|
12792
|
+
path: "/api/v1/profile/tenant",
|
|
12793
|
+
params: []
|
|
12794
|
+
},
|
|
12795
|
+
"getCurrentUser": {
|
|
12796
|
+
httpMethod: "GET",
|
|
12797
|
+
path: "/api/v1/profile/user",
|
|
12798
|
+
params: []
|
|
12799
|
+
},
|
|
12800
|
+
"getDiffs": {
|
|
12801
|
+
httpMethod: "GET",
|
|
12802
|
+
path: "/api/v1/processes/{processId}/diffs",
|
|
12803
|
+
params: [
|
|
12804
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
12805
|
+
]
|
|
12806
|
+
},
|
|
12807
|
+
"getGroup": {
|
|
12808
|
+
httpMethod: "GET",
|
|
12809
|
+
path: "/api/v1/groups/{groupId}",
|
|
12810
|
+
params: [
|
|
12811
|
+
{ name: "groupId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
12812
|
+
]
|
|
12813
|
+
},
|
|
12814
|
+
"getIdentityProvider": {
|
|
12815
|
+
httpMethod: "GET",
|
|
12816
|
+
path: "/api/v1/authConfig/identityProviders/{thirdPartyId}",
|
|
12817
|
+
params: [
|
|
12818
|
+
{ name: "thirdPartyId", in: "path", required: true, type: "string", description: "" }
|
|
12819
|
+
]
|
|
12820
|
+
},
|
|
12821
|
+
"getIdentityProviders": {
|
|
12822
|
+
httpMethod: "GET",
|
|
12823
|
+
path: "/api/v1/authConfig/identityProviders",
|
|
12824
|
+
params: [
|
|
12825
|
+
{ name: "authTenantId", in: "query", required: true, type: "string", description: "Auth\u30C6\u30CA\u30F3\u30C8ID", example: "mytenant-xhwpda" }
|
|
12826
|
+
]
|
|
12827
|
+
},
|
|
12828
|
+
"getMyCheckoutUrl": {
|
|
12829
|
+
httpMethod: "POST",
|
|
12830
|
+
path: "/api/v1/account/subscriptions/checkout",
|
|
12831
|
+
params: [],
|
|
12832
|
+
requestBody: {
|
|
12833
|
+
dtoName: "subscribeDto",
|
|
12834
|
+
properties: [
|
|
12835
|
+
{ name: "authTenantId", type: "string", description: "", required: true },
|
|
12836
|
+
{ name: "planName", type: "string", description: "", required: true },
|
|
12837
|
+
{ name: "quantity", type: "number", description: "", required: true },
|
|
12838
|
+
{ name: "successUrl", type: "string", description: "", required: true },
|
|
12839
|
+
{ name: "cancelUrl", type: "string", description: "", required: true },
|
|
12840
|
+
{ name: "isTrial", type: "boolean", description: "", required: true }
|
|
12841
|
+
]
|
|
12842
|
+
}
|
|
12843
|
+
},
|
|
12844
|
+
"getMyCustomerPortalUrl": {
|
|
12845
|
+
httpMethod: "POST",
|
|
12846
|
+
path: "/api/v1/account/subscriptions/portal",
|
|
12847
|
+
params: [],
|
|
12848
|
+
requestBody: {
|
|
12849
|
+
dtoName: "customerPortalDto",
|
|
12850
|
+
properties: [
|
|
12851
|
+
{ name: "returnUrl", type: "string", description: "", required: true }
|
|
12852
|
+
]
|
|
12853
|
+
}
|
|
12854
|
+
},
|
|
12855
|
+
"getMyDiffs": {
|
|
12856
|
+
httpMethod: "GET",
|
|
12857
|
+
path: "/api/v1/my/processes/{processId}/diffs",
|
|
12858
|
+
params: [
|
|
12859
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
12860
|
+
]
|
|
12861
|
+
},
|
|
12862
|
+
"getMyModel": {
|
|
12863
|
+
httpMethod: "GET",
|
|
12864
|
+
path: "/api/v1/my/models/{modelId}",
|
|
12865
|
+
params: [
|
|
12866
|
+
{ name: "modelId", in: "path", required: true, type: "string", description: "" },
|
|
12867
|
+
{ name: "nodeActionType", in: "query", required: false, type: "string", description: "\u7279\u5B9A\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u53EF\u80FD\u306A\u30E2\u30C7\u30EB\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" }
|
|
12868
|
+
]
|
|
12869
|
+
},
|
|
12870
|
+
"getMyOrganization": {
|
|
12871
|
+
httpMethod: "GET",
|
|
12872
|
+
path: "/api/v1/account/my/organization",
|
|
12873
|
+
params: []
|
|
12874
|
+
},
|
|
12875
|
+
"getMyOrganizationsTenant": {
|
|
12876
|
+
httpMethod: "GET",
|
|
12877
|
+
path: "/api/v1/account/my/organization/tenants/{tenantId}",
|
|
12878
|
+
params: [
|
|
12879
|
+
{ name: "tenantId", in: "path", required: true, type: "string", description: "" }
|
|
12880
|
+
]
|
|
12881
|
+
},
|
|
12882
|
+
"getMyOrganizationsTenantPlanStatus": {
|
|
12883
|
+
httpMethod: "GET",
|
|
12884
|
+
path: "/api/v1/account/my/organization/tenants/{tenantId}/plan",
|
|
12885
|
+
params: [
|
|
12886
|
+
{ name: "tenantId", in: "path", required: true, type: "string", description: "" }
|
|
12887
|
+
]
|
|
12888
|
+
},
|
|
12889
|
+
"getMyProcessDataFileDownloadUrl": {
|
|
12890
|
+
httpMethod: "POST",
|
|
12891
|
+
path: "/api/v1/my/processes/{processId}/files/getDownloadUrl",
|
|
12892
|
+
params: [
|
|
12893
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" },
|
|
12894
|
+
{ name: "disposition", in: "query", required: true, type: "string", description: "" }
|
|
12895
|
+
],
|
|
12896
|
+
requestBody: {
|
|
12897
|
+
dtoName: "createProcessFileDto",
|
|
12898
|
+
properties: [
|
|
12899
|
+
{ name: "property", type: "string", description: "\u30D7\u30ED\u30D1\u30C6\u30A3\uFF08\u30C7\u30FC\u30BF\u9805\u76EE\u540D\uFF09", required: true, example: "attachmentFiles" },
|
|
12900
|
+
{ name: "fileName", type: "string", description: "\u30D5\u30A1\u30A4\u30EB\u540D", required: true, example: "\u9818\u53CE\u66F8.pdf" }
|
|
12901
|
+
]
|
|
12902
|
+
}
|
|
12903
|
+
},
|
|
12904
|
+
"getMyProcesses": {
|
|
12905
|
+
httpMethod: "GET",
|
|
12906
|
+
path: "/api/v1/my/processes/{processId}",
|
|
12907
|
+
params: [
|
|
12908
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
12909
|
+
{ name: "processHistoryType", in: "query", required: false, type: "string", description: "actioned=true\u306E\u3068\u304D\u3001\u30A2\u30AF\u30B7\u30E7\u30F3\u5C65\u6B74\u7A2E\u5225\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002actioned=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
12910
|
+
{ name: "nodeActionType", in: "query", required: false, type: "string", description: "permitted=true\u306E\u3068\u304D\u3001\u6307\u5B9A\u3057\u305F\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002permitted=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
12911
|
+
{ name: "actioned", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u3057\u305F\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
12912
|
+
{ name: "permitted", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" }
|
|
12913
|
+
]
|
|
12914
|
+
},
|
|
12915
|
+
"getMyProcessesWithNodeId": {
|
|
12916
|
+
httpMethod: "GET",
|
|
12917
|
+
path: "/api/v1/my/processes/{processId}/{nodeId}",
|
|
12918
|
+
params: [
|
|
12919
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
12920
|
+
{ name: "nodeId", in: "path", required: true, type: "string", description: "" },
|
|
12921
|
+
{ name: "processHistoryType", in: "query", required: false, type: "string", description: "actioned=true\u306E\u3068\u304D\u3001\u30A2\u30AF\u30B7\u30E7\u30F3\u5C65\u6B74\u7A2E\u5225\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002actioned=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
12922
|
+
{ name: "nodeActionType", in: "query", required: false, type: "string", description: "permitted=true\u306E\u3068\u304D\u3001\u6307\u5B9A\u3057\u305F\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002permitted=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
12923
|
+
{ name: "actioned", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u3057\u305F\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
12924
|
+
{ name: "permitted", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" }
|
|
12925
|
+
]
|
|
12926
|
+
},
|
|
12927
|
+
"getMySubscriptions": {
|
|
12928
|
+
httpMethod: "GET",
|
|
12929
|
+
path: "/api/v1/account/my/organization/subscriptions",
|
|
12930
|
+
params: [
|
|
12931
|
+
{ name: "organizationId", in: "path", required: true, type: "string", description: "" }
|
|
12932
|
+
]
|
|
12933
|
+
},
|
|
12934
|
+
"getMySubscriptionsCheckoutUrl": {
|
|
12935
|
+
httpMethod: "POST",
|
|
12936
|
+
path: "/api/v1/account/my/organization/subscriptions/checkout",
|
|
12937
|
+
params: [],
|
|
12938
|
+
requestBody: {
|
|
12939
|
+
dtoName: "subscribeDto",
|
|
12940
|
+
properties: [
|
|
12941
|
+
{ name: "authTenantId", type: "string", description: "", required: true },
|
|
12942
|
+
{ name: "planName", type: "string", description: "", required: true },
|
|
12943
|
+
{ name: "quantity", type: "number", description: "", required: true },
|
|
12944
|
+
{ name: "successUrl", type: "string", description: "", required: true },
|
|
12945
|
+
{ name: "cancelUrl", type: "string", description: "", required: true },
|
|
12946
|
+
{ name: "isTrial", type: "boolean", description: "", required: true }
|
|
12947
|
+
]
|
|
12948
|
+
}
|
|
12949
|
+
},
|
|
12950
|
+
"getMySubscriptionsCustomerPortalUrl": {
|
|
12951
|
+
httpMethod: "POST",
|
|
12952
|
+
path: "/api/v1/account/my/organization/subscriptions/portal",
|
|
12953
|
+
params: [],
|
|
12954
|
+
requestBody: {
|
|
12955
|
+
dtoName: "customerPortalDto",
|
|
12956
|
+
properties: [
|
|
12957
|
+
{ name: "returnUrl", type: "string", description: "", required: true }
|
|
12958
|
+
]
|
|
12959
|
+
}
|
|
12960
|
+
},
|
|
12961
|
+
"getMyTenants": {
|
|
12962
|
+
httpMethod: "GET",
|
|
12963
|
+
path: "/api/v1/account/tenants",
|
|
12964
|
+
params: []
|
|
12965
|
+
},
|
|
12966
|
+
"getMyTenantsWithSignInMethod": {
|
|
12967
|
+
httpMethod: "GET",
|
|
12968
|
+
path: "/api/v1/account/tenants/signInMethod",
|
|
12969
|
+
params: []
|
|
12970
|
+
},
|
|
12971
|
+
"getMyTrialSubscription": {
|
|
12972
|
+
httpMethod: "GET",
|
|
12973
|
+
path: "/api/v1/account/subscriptions/trial",
|
|
12974
|
+
params: []
|
|
12975
|
+
},
|
|
12976
|
+
"getMyUserAuthInfo": {
|
|
12977
|
+
httpMethod: "GET",
|
|
12978
|
+
path: "/api/v1/authentication/userAuthInfo",
|
|
12979
|
+
params: []
|
|
12980
|
+
},
|
|
12981
|
+
"getProcessDataFileDownloadUrl": {
|
|
12982
|
+
httpMethod: "POST",
|
|
12983
|
+
path: "/api/v1/processes/{processId}/files/getDownloadUrl",
|
|
12984
|
+
params: [
|
|
12985
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" },
|
|
12986
|
+
{ name: "disposition", in: "query", required: true, type: "string", description: "" }
|
|
12987
|
+
],
|
|
12988
|
+
requestBody: {
|
|
12989
|
+
dtoName: "createProcessFileDto",
|
|
12990
|
+
properties: [
|
|
12991
|
+
{ name: "property", type: "string", description: "\u30D7\u30ED\u30D1\u30C6\u30A3\uFF08\u30C7\u30FC\u30BF\u9805\u76EE\u540D\uFF09", required: true, example: "attachmentFiles" },
|
|
12992
|
+
{ name: "fileName", type: "string", description: "\u30D5\u30A1\u30A4\u30EB\u540D", required: true, example: "\u9818\u53CE\u66F8.pdf" }
|
|
12993
|
+
]
|
|
12994
|
+
}
|
|
12995
|
+
},
|
|
12996
|
+
"getProcessWithNodeActions": {
|
|
12997
|
+
httpMethod: "GET",
|
|
12998
|
+
path: "/api/v1/my/processes/nodeActions/{processId}",
|
|
12999
|
+
params: [
|
|
13000
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
13001
|
+
{ name: "processHistoryType", in: "query", required: false, type: "string", description: "actioned=true\u306E\u3068\u304D\u3001\u30A2\u30AF\u30B7\u30E7\u30F3\u5C65\u6B74\u7A2E\u5225\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002actioned=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
13002
|
+
{ name: "nodeActionType", in: "query", required: false, type: "string", description: "permitted=true\u306E\u3068\u304D\u3001\u6307\u5B9A\u3057\u305F\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002\u8FD4\u5374\u3059\u308B\u30CE\u30FC\u30C9\u3092\u53EF\u80FD\u306A\u30A2\u30AF\u30B7\u30E7\u30F3\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002permitted=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
13003
|
+
{ name: "actioned", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u3057\u305F\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
13004
|
+
{ name: "permitted", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" }
|
|
13005
|
+
]
|
|
13006
|
+
},
|
|
13007
|
+
"getProcessWithSpecificNodeActions": {
|
|
13008
|
+
httpMethod: "GET",
|
|
13009
|
+
path: "/api/v1/my/processes/nodeActions/{processId}/{nodeId}",
|
|
13010
|
+
params: [
|
|
13011
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
13012
|
+
{ name: "nodeId", in: "path", required: true, type: "string", description: "" },
|
|
13013
|
+
{ name: "processHistoryType", in: "query", required: false, type: "string", description: "actioned=true\u306E\u3068\u304D\u3001\u30A2\u30AF\u30B7\u30E7\u30F3\u5C65\u6B74\u7A2E\u5225\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002actioned=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
13014
|
+
{ name: "nodeActionType", in: "query", required: false, type: "string", description: "permitted=true\u306E\u3068\u304D\u3001\u6307\u5B9A\u3057\u305F\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002\u8FD4\u5374\u3059\u308B\u30CE\u30FC\u30C9\u3092\u53EF\u80FD\u306A\u30A2\u30AF\u30B7\u30E7\u30F3\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002permitted=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
13015
|
+
{ name: "actioned", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u3057\u305F\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
13016
|
+
{ name: "permitted", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" }
|
|
13017
|
+
]
|
|
13018
|
+
},
|
|
13019
|
+
"getRole": {
|
|
13020
|
+
httpMethod: "GET",
|
|
13021
|
+
path: "/api/v1/roles/{roleId}",
|
|
13022
|
+
params: [
|
|
13023
|
+
{ name: "roleId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13024
|
+
]
|
|
13025
|
+
},
|
|
13026
|
+
"getRootGroup": {
|
|
13027
|
+
httpMethod: "GET",
|
|
13028
|
+
path: "/api/v1/groups/root",
|
|
13029
|
+
params: []
|
|
13030
|
+
},
|
|
13031
|
+
"getSession": {
|
|
13032
|
+
httpMethod: "GET",
|
|
13033
|
+
path: "/api/v1/authentication/session",
|
|
13034
|
+
params: []
|
|
13035
|
+
},
|
|
13036
|
+
"getSlack": {
|
|
13037
|
+
httpMethod: "GET",
|
|
13038
|
+
path: "/api/v1/slack",
|
|
13039
|
+
params: []
|
|
13040
|
+
},
|
|
13041
|
+
"getTenantPlanStatus": {
|
|
13042
|
+
httpMethod: "GET",
|
|
13043
|
+
path: "/api/v1/account/subscriptions/tenantPlanStatus/{authTenantId}",
|
|
13044
|
+
params: [
|
|
13045
|
+
{ name: "authTenantId", in: "path", required: true, type: "string", description: "" }
|
|
13046
|
+
]
|
|
13047
|
+
},
|
|
13048
|
+
"getUser": {
|
|
13049
|
+
httpMethod: "GET",
|
|
13050
|
+
path: "/api/v1/users/{userId}",
|
|
13051
|
+
params: [
|
|
13052
|
+
{ name: "userId", in: "path", required: true, type: "string", description: "" }
|
|
13053
|
+
]
|
|
13054
|
+
},
|
|
13055
|
+
"getUserAuthInfo": {
|
|
13056
|
+
httpMethod: "GET",
|
|
13057
|
+
path: "/api/v1/users/{userId}/userAuthInfo",
|
|
13058
|
+
params: [
|
|
13059
|
+
{ name: "userId", in: "path", required: true, type: "string", description: "" }
|
|
13060
|
+
]
|
|
13061
|
+
},
|
|
13062
|
+
"getWorkflowModel": {
|
|
13063
|
+
httpMethod: "GET",
|
|
13064
|
+
path: "/api/v1/models/{modelId}",
|
|
13065
|
+
params: [
|
|
13066
|
+
{ name: "modelId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13067
|
+
]
|
|
13068
|
+
},
|
|
13069
|
+
"getWorkflowModelWithLatestModelHistory": {
|
|
13070
|
+
httpMethod: "GET",
|
|
13071
|
+
path: "/api/v1/models/{modelId}/edit",
|
|
13072
|
+
params: [
|
|
13073
|
+
{ name: "modelId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13074
|
+
]
|
|
13075
|
+
},
|
|
13076
|
+
"getWorkflowProcess": {
|
|
13077
|
+
httpMethod: "GET",
|
|
13078
|
+
path: "/api/v1/processes/{processId}",
|
|
13079
|
+
params: [
|
|
13080
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13081
|
+
]
|
|
13082
|
+
},
|
|
13083
|
+
"hasAccessToken": {
|
|
13084
|
+
httpMethod: "GET",
|
|
13085
|
+
path: "/api/v1/slack/hasAccessToken",
|
|
13086
|
+
params: []
|
|
13087
|
+
},
|
|
13088
|
+
"installSlackApp": {
|
|
13089
|
+
httpMethod: "POST",
|
|
13090
|
+
path: "/api/v1/slack/install",
|
|
13091
|
+
params: []
|
|
13092
|
+
},
|
|
13093
|
+
"listAccessToken": {
|
|
13094
|
+
httpMethod: "GET",
|
|
13095
|
+
path: "/api/v1/clientAuth",
|
|
13096
|
+
params: [
|
|
13097
|
+
{ name: "revoked", in: "query", required: false, type: "boolean", description: "\u53D6\u6D88\u30D5\u30E9\u30B0" }
|
|
13098
|
+
]
|
|
13099
|
+
},
|
|
13100
|
+
"listApis": {
|
|
13101
|
+
httpMethod: "GET",
|
|
13102
|
+
path: "/api/v1/development/apis",
|
|
13103
|
+
params: []
|
|
13104
|
+
},
|
|
13105
|
+
"listCorsOrigins": {
|
|
13106
|
+
httpMethod: "GET",
|
|
13107
|
+
path: "/api/v1/cors",
|
|
13108
|
+
params: [
|
|
13109
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13110
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13111
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13112
|
+
]
|
|
13113
|
+
},
|
|
13114
|
+
"listGroups": {
|
|
13115
|
+
httpMethod: "GET",
|
|
13116
|
+
path: "/api/v1/groups",
|
|
13117
|
+
params: [
|
|
13118
|
+
{ name: "parentId", in: "query", required: true, type: "string", description: "" },
|
|
13119
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13120
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13121
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13122
|
+
]
|
|
13123
|
+
},
|
|
13124
|
+
"listGroupsByUser": {
|
|
13125
|
+
httpMethod: "GET",
|
|
13126
|
+
path: "/api/v1/users/{userId}/groups",
|
|
13127
|
+
params: [
|
|
13128
|
+
{ name: "userId", in: "path", required: true, type: "string", description: "" },
|
|
13129
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13130
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13131
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13132
|
+
]
|
|
13133
|
+
},
|
|
13134
|
+
"listModelHistories": {
|
|
13135
|
+
httpMethod: "GET",
|
|
13136
|
+
path: "/api/v1/models/{modelId}/histories",
|
|
13137
|
+
params: [
|
|
13138
|
+
{ name: "modelId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13139
|
+
]
|
|
13140
|
+
},
|
|
13141
|
+
"listModelWithNodeActions": {
|
|
13142
|
+
httpMethod: "GET",
|
|
13143
|
+
path: "/api/v1/my/models/nodeActions",
|
|
13144
|
+
params: [
|
|
13145
|
+
{ name: "nodeActionType", in: "query", required: true, type: "string", description: "" },
|
|
13146
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13147
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13148
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13149
|
+
]
|
|
13150
|
+
},
|
|
13151
|
+
"listMyModels": {
|
|
13152
|
+
httpMethod: "GET",
|
|
13153
|
+
path: "/api/v1/my/models",
|
|
13154
|
+
params: [
|
|
13155
|
+
{ name: "nodeActionType", in: "query", required: false, type: "string", description: "\u7279\u5B9A\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u53EF\u80FD\u306A\u30E2\u30C7\u30EB\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
13156
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13157
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13158
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13159
|
+
]
|
|
13160
|
+
},
|
|
13161
|
+
"listMyOrganizationsTenants": {
|
|
13162
|
+
httpMethod: "GET",
|
|
13163
|
+
path: "/api/v1/account/my/organization/tenants",
|
|
13164
|
+
params: []
|
|
13165
|
+
},
|
|
13166
|
+
"listMyPlans": {
|
|
13167
|
+
httpMethod: "GET",
|
|
13168
|
+
path: "/api/v1/account/subscriptions/plans",
|
|
13169
|
+
params: []
|
|
13170
|
+
},
|
|
13171
|
+
"listMyProcesses": {
|
|
13172
|
+
httpMethod: "GET",
|
|
13173
|
+
path: "/api/v1/my/processes",
|
|
13174
|
+
params: [
|
|
13175
|
+
{ name: "processHistoryType", in: "query", required: false, type: "string", description: "actioned=true\u306E\u3068\u304D\u3001\u30A2\u30AF\u30B7\u30E7\u30F3\u5C65\u6B74\u7A2E\u5225\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002actioned=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
13176
|
+
{ name: "nodeActionType", in: "query", required: false, type: "string", description: "permitted=true\u306E\u3068\u304D\u3001\u6307\u5B9A\u3057\u305F\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002permitted=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
13177
|
+
{ name: "actioned", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u3057\u305F\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
13178
|
+
{ name: "permitted", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
13179
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13180
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13181
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13182
|
+
]
|
|
13183
|
+
},
|
|
13184
|
+
"listMySubscriptions": {
|
|
13185
|
+
httpMethod: "GET",
|
|
13186
|
+
path: "/api/v1/account/subscriptions",
|
|
13187
|
+
params: []
|
|
13188
|
+
},
|
|
13189
|
+
"listMySystemActionPolicies": {
|
|
13190
|
+
httpMethod: "GET",
|
|
13191
|
+
path: "/api/v1/my/systemActionPolicies",
|
|
13192
|
+
params: []
|
|
13193
|
+
},
|
|
13194
|
+
"listProcessWithNodeActions": {
|
|
13195
|
+
httpMethod: "GET",
|
|
13196
|
+
path: "/api/v1/my/processes/nodeActions",
|
|
13197
|
+
params: [
|
|
13198
|
+
{ name: "processHistoryType", in: "query", required: false, type: "string", description: "actioned=true\u306E\u3068\u304D\u3001\u30A2\u30AF\u30B7\u30E7\u30F3\u5C65\u6B74\u7A2E\u5225\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002actioned=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
13199
|
+
{ name: "nodeActionType", in: "query", required: false, type: "string", description: "permitted=true\u306E\u3068\u304D\u3001\u6307\u5B9A\u3057\u305F\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002\u307E\u305F\u3001\u8FD4\u5374\u3059\u308B\u30CE\u30FC\u30C9\u3092\u53EF\u80FD\u306A\u30A2\u30AF\u30B7\u30E7\u30F3\u3067\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002permitted=false\u306E\u5834\u5408\u306F\u3001\u3053\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306F\u7121\u8996\u3055\u308C\u307E\u3059\u3002" },
|
|
13200
|
+
{ name: "actioned", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u3057\u305F\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
13201
|
+
{ name: "permitted", in: "query", required: false, type: "boolean", description: "true\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30A2\u30AF\u30B7\u30E7\u30F3\u53EF\u80FD\u306A\u30D7\u30ED\u30BB\u30B9\u306B\u7D5E\u308A\u8FBC\u307F\u307E\u3059\u3002" },
|
|
13202
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13203
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13204
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13205
|
+
]
|
|
13206
|
+
},
|
|
13207
|
+
"listRoles": {
|
|
13208
|
+
httpMethod: "GET",
|
|
13209
|
+
path: "/api/v1/roles",
|
|
13210
|
+
params: [
|
|
13211
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13212
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13213
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13214
|
+
]
|
|
13215
|
+
},
|
|
13216
|
+
"listRolesByUser": {
|
|
13217
|
+
httpMethod: "GET",
|
|
13218
|
+
path: "/api/v1/users/{userId}/roles",
|
|
13219
|
+
params: [
|
|
13220
|
+
{ name: "userId", in: "path", required: true, type: "string", description: "" },
|
|
13221
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13222
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13223
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13224
|
+
]
|
|
13225
|
+
},
|
|
13226
|
+
"listSettings": {
|
|
13227
|
+
httpMethod: "GET",
|
|
13228
|
+
path: "/api/v1/settings",
|
|
13229
|
+
params: []
|
|
13230
|
+
},
|
|
13231
|
+
"listSystemActionPolicies": {
|
|
13232
|
+
httpMethod: "GET",
|
|
13233
|
+
path: "/api/v1/actions/systemActionPolicies",
|
|
13234
|
+
params: [
|
|
13235
|
+
{ name: "userId", in: "query", required: true, type: "string", description: "" }
|
|
13236
|
+
]
|
|
13237
|
+
},
|
|
13238
|
+
"listUserModelWithNodeActions": {
|
|
13239
|
+
httpMethod: "GET",
|
|
13240
|
+
path: "/api/v1/actions/models",
|
|
13241
|
+
params: [
|
|
13242
|
+
{ name: "userId", in: "query", required: true, type: "string", description: "" },
|
|
13243
|
+
{ name: "nodeActionType", in: "query", required: true, type: "string", description: "" },
|
|
13244
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13245
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13246
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13247
|
+
]
|
|
13248
|
+
},
|
|
13249
|
+
"listUserProcessWithNodeActions": {
|
|
13250
|
+
httpMethod: "GET",
|
|
13251
|
+
path: "/api/v1/actions/processes",
|
|
13252
|
+
params: [
|
|
13253
|
+
{ name: "userId", in: "query", required: true, type: "string", description: "" },
|
|
13254
|
+
{ name: "nodeActionType", in: "query", required: true, type: "string", description: "" },
|
|
13255
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13256
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13257
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13258
|
+
]
|
|
13259
|
+
},
|
|
13260
|
+
"listUsers": {
|
|
13261
|
+
httpMethod: "GET",
|
|
13262
|
+
path: "/api/v1/users",
|
|
13263
|
+
params: [
|
|
13264
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13265
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13266
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13267
|
+
]
|
|
13268
|
+
},
|
|
13269
|
+
"listWorkflowModels": {
|
|
13270
|
+
httpMethod: "GET",
|
|
13271
|
+
path: "/api/v1/models",
|
|
13272
|
+
params: [
|
|
13273
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13274
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13275
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13276
|
+
]
|
|
13277
|
+
},
|
|
13278
|
+
"listWorkflowProcesses": {
|
|
13279
|
+
httpMethod: "GET",
|
|
13280
|
+
path: "/api/v1/processes",
|
|
13281
|
+
params: [
|
|
13282
|
+
{ name: "filter", in: "query", required: false, type: "string", description: '\u691C\u7D22\u6761\u4EF6<br>\u4EE5\u4E0B\u306E\u3088\u3046\u306A\u6587\u5B57\u5217\u3092\u53D7\u3051\u53D6\u3063\u3066\u691C\u7D22\u6761\u4EF6\u3068\u3057\u307E\u3059\u3002<br>{"name":{"equals":"example"},"price":{"lt":1000}}', example: '{"name":{"equals":"example"}}' },
|
|
13283
|
+
{ name: "skip", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u6642\u306B\u53D6\u5F97\u305B\u305A\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F1\u4EF6\u76EE\u304B\u3089\u53D6\u5F97\u3057\u307E\u3059\u3002" },
|
|
13284
|
+
{ name: "take", in: "query", required: false, type: "string", description: "\u53D6\u5F97\u4EF6\u6570<br>\u6307\u5B9A\u3057\u306A\u3044\u5834\u5408\u306F\u5168\u4EF6\u53D6\u5F97\u3055\u308C\u307E\u3059\u3002" }
|
|
13285
|
+
]
|
|
13286
|
+
},
|
|
13287
|
+
"listWorkflowProcessHistories": {
|
|
13288
|
+
httpMethod: "GET",
|
|
13289
|
+
path: "/api/v1/processes/{processId}/histories",
|
|
13290
|
+
params: [
|
|
13291
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" }
|
|
13292
|
+
]
|
|
13293
|
+
},
|
|
13294
|
+
"publishWorkflowModel": {
|
|
13295
|
+
httpMethod: "PUT",
|
|
13296
|
+
path: "/api/v1/models/{modelId}/publish",
|
|
13297
|
+
params: [
|
|
13298
|
+
{ name: "modelId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13299
|
+
]
|
|
13300
|
+
},
|
|
13301
|
+
"rejectWorkflowProcess": {
|
|
13302
|
+
httpMethod: "POST",
|
|
13303
|
+
path: "/api/v1/engine/reject/{processId}",
|
|
13304
|
+
params: [
|
|
13305
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" }
|
|
13306
|
+
]
|
|
13307
|
+
},
|
|
13308
|
+
"rejectWorkflowProcessWithNodeId": {
|
|
13309
|
+
httpMethod: "POST",
|
|
13310
|
+
path: "/api/v1/engine/reject/{processId}/{nodeId}",
|
|
13311
|
+
params: [
|
|
13312
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
13313
|
+
{ name: "nodeId", in: "path", required: true, type: "string", description: "" }
|
|
13314
|
+
]
|
|
13315
|
+
},
|
|
13316
|
+
"restoreWorkflowProcessHistory": {
|
|
13317
|
+
httpMethod: "POST",
|
|
13318
|
+
path: "/api/v1/processes/{processId}/restore-history/{historyId}",
|
|
13319
|
+
params: [
|
|
13320
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" },
|
|
13321
|
+
{ name: "historyId", in: "path", required: true, type: "string", description: "", example: "123" }
|
|
13322
|
+
],
|
|
13323
|
+
requestBody: {
|
|
13324
|
+
dtoName: "restoreHistoryDto",
|
|
13325
|
+
properties: [
|
|
13326
|
+
{ name: "scope", type: "object", description: "\u5FA9\u5143\u30B9\u30B3\u30FC\u30D7\n- all: \u5168\u3066\u306E\u60C5\u5831\u3092\u5FA9\u5143\uFF08\u30C7\u30D5\u30A9\u30EB\u30C8\uFF09\n- data: \u30C7\u30FC\u30BF\u306E\u307F\u3092\u5FA9\u5143\n- state: \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u72B6\u614B\u306E\u307F\u3092\u5FA9\u5143", required: false, example: "all" }
|
|
13327
|
+
]
|
|
13328
|
+
}
|
|
13329
|
+
},
|
|
13330
|
+
"revertWorkflowProcess": {
|
|
13331
|
+
httpMethod: "POST",
|
|
13332
|
+
path: "/api/v1/engine/revert/{processId}/{nodeId}",
|
|
13333
|
+
params: [
|
|
13334
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
13335
|
+
{ name: "nodeId", in: "path", required: true, type: "string", description: "" }
|
|
13336
|
+
]
|
|
13337
|
+
},
|
|
13338
|
+
"revokeAccessToken": {
|
|
13339
|
+
httpMethod: "POST",
|
|
13340
|
+
path: "/api/v1/slack/revoke",
|
|
13341
|
+
params: []
|
|
13342
|
+
},
|
|
13343
|
+
"revokeToken": {
|
|
13344
|
+
httpMethod: "POST",
|
|
13345
|
+
path: "/api/v1/clientAuth/oauth/revoke",
|
|
13346
|
+
params: []
|
|
13347
|
+
},
|
|
13348
|
+
"saveWorkflowModel": {
|
|
13349
|
+
httpMethod: "PUT",
|
|
13350
|
+
path: "/api/v1/models/{modelId}",
|
|
13351
|
+
params: [
|
|
13352
|
+
{ name: "modelId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13353
|
+
],
|
|
13354
|
+
requestBody: {
|
|
13355
|
+
dtoName: "updateModelDto",
|
|
13356
|
+
properties: [
|
|
13357
|
+
{ name: "name", type: "string", description: "\u30E2\u30C7\u30EB\u540D", required: true, example: "\u7D4C\u8CBB\u7533\u8ACB\u30FB\u627F\u8A8D\u30D5\u30ED\u30FC" },
|
|
13358
|
+
{ name: "description", type: "string", description: "\u8AAC\u660E", required: false, example: "\u7D4C\u8CBB\u7533\u8ACB\u306E\u627F\u8A8D\u3092\u884C\u3044\u307E\u3059\u3002" },
|
|
13359
|
+
{ name: "definition", type: "object", description: "\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u5B9A\u7FA9", required: true },
|
|
13360
|
+
{ name: "dataSchema", type: "object", description: "\u30C7\u30FC\u30BF\u30B9\u30AD\u30FC\u30DE", required: true },
|
|
13361
|
+
{ name: "policy", type: "object", description: "\u30C7\u30FC\u30BF\u30A2\u30AF\u30BB\u30B9\u30DD\u30EA\u30B7\u30FC", required: true }
|
|
13362
|
+
]
|
|
13363
|
+
}
|
|
13364
|
+
},
|
|
13365
|
+
"saveWorkflowProcess": {
|
|
13366
|
+
httpMethod: "PUT",
|
|
13367
|
+
path: "/api/v1/engine/save/{processId}",
|
|
13368
|
+
params: [
|
|
13369
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" }
|
|
13370
|
+
]
|
|
13371
|
+
},
|
|
13372
|
+
"saveWorkflowProcessWithNodeId": {
|
|
13373
|
+
httpMethod: "PUT",
|
|
13374
|
+
path: "/api/v1/engine/save/{processId}/{nodeId}",
|
|
13375
|
+
params: [
|
|
13376
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
13377
|
+
{ name: "nodeId", in: "path", required: true, type: "string", description: "" }
|
|
13378
|
+
]
|
|
13379
|
+
},
|
|
13380
|
+
"sendInitializeMyPasswordEmail": {
|
|
13381
|
+
httpMethod: "POST",
|
|
13382
|
+
path: "/api/v1/authentication/sendInitializePasswordEmail",
|
|
13383
|
+
params: []
|
|
13384
|
+
},
|
|
13385
|
+
"sendInitializePasswordEmail": {
|
|
13386
|
+
httpMethod: "POST",
|
|
13387
|
+
path: "/api/v1/authentication/sendInitializePasswordEmail/{email}",
|
|
13388
|
+
params: [
|
|
13389
|
+
{ name: "email", in: "path", required: true, type: "string", description: "" }
|
|
13390
|
+
]
|
|
13391
|
+
},
|
|
13392
|
+
"signInWithEmailAndPassword": {
|
|
13393
|
+
httpMethod: "POST",
|
|
13394
|
+
path: "/api/v1/authentication/signin",
|
|
13395
|
+
params: [],
|
|
13396
|
+
requestBody: {
|
|
13397
|
+
dtoName: "signInDto",
|
|
13398
|
+
properties: [
|
|
13399
|
+
{ name: "authTenantId", type: "string", description: "Auth\u30C6\u30CA\u30F3\u30C8ID", required: true, example: "mytenant-xhwpda" },
|
|
13400
|
+
{ name: "email", type: "string", description: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9", required: true, example: "user@acomo.app" },
|
|
13401
|
+
{ name: "password", type: "string", description: "\u30D1\u30B9\u30EF\u30FC\u30C9", required: true, example: "password" }
|
|
13402
|
+
]
|
|
13403
|
+
}
|
|
13404
|
+
},
|
|
13405
|
+
"signOut": {
|
|
13406
|
+
httpMethod: "POST",
|
|
13407
|
+
path: "/api/v1/authentication/signout",
|
|
13408
|
+
params: []
|
|
13409
|
+
},
|
|
13410
|
+
"startWorkflowProcess": {
|
|
13411
|
+
httpMethod: "POST",
|
|
13412
|
+
path: "/api/v1/engine/start/{modelId}",
|
|
13413
|
+
params: [
|
|
13414
|
+
{ name: "modelId", in: "path", required: true, type: "string", description: "" }
|
|
13415
|
+
]
|
|
13416
|
+
},
|
|
13417
|
+
"submitWorkflowProcess": {
|
|
13418
|
+
httpMethod: "POST",
|
|
13419
|
+
path: "/api/v1/engine/submit/{processId}",
|
|
13420
|
+
params: [
|
|
13421
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" }
|
|
13422
|
+
]
|
|
13423
|
+
},
|
|
13424
|
+
"submitWorkflowProcessWithNodeId": {
|
|
13425
|
+
httpMethod: "POST",
|
|
13426
|
+
path: "/api/v1/engine/submit/{processId}/{nodeId}",
|
|
13427
|
+
params: [
|
|
13428
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "" },
|
|
13429
|
+
{ name: "nodeId", in: "path", required: true, type: "string", description: "" }
|
|
13430
|
+
]
|
|
13431
|
+
},
|
|
13432
|
+
"updateAccessToken": {
|
|
13433
|
+
httpMethod: "PUT",
|
|
13434
|
+
path: "/api/v1/clientAuth/{clientAccessTokenId}",
|
|
13435
|
+
params: [
|
|
13436
|
+
{ name: "clientAccessTokenId", in: "path", required: true, type: "string", description: "" }
|
|
13437
|
+
]
|
|
13438
|
+
},
|
|
13439
|
+
"updateCorsOrigins": {
|
|
13440
|
+
httpMethod: "POST",
|
|
13441
|
+
path: "/api/v1/cors/{id}",
|
|
13442
|
+
params: [
|
|
13443
|
+
{ name: "id", in: "path", required: true, type: "string", description: "" }
|
|
13444
|
+
],
|
|
13445
|
+
requestBody: {
|
|
13446
|
+
dtoName: "updateCorsAllowedOriginDto",
|
|
13447
|
+
properties: [
|
|
13448
|
+
{ name: "url", type: "string", description: "", required: true },
|
|
13449
|
+
{ name: "description", type: "string", description: "", required: true }
|
|
13450
|
+
]
|
|
13451
|
+
}
|
|
13452
|
+
},
|
|
13453
|
+
"updateGroup": {
|
|
13454
|
+
httpMethod: "PUT",
|
|
13455
|
+
path: "/api/v1/groups/{groupId}",
|
|
13456
|
+
params: [
|
|
13457
|
+
{ name: "groupId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13458
|
+
]
|
|
13459
|
+
},
|
|
13460
|
+
"updateMyOrganization": {
|
|
13461
|
+
httpMethod: "PUT",
|
|
13462
|
+
path: "/api/v1/account/my/organization",
|
|
13463
|
+
params: [],
|
|
13464
|
+
requestBody: {
|
|
13465
|
+
dtoName: "updateOrganizationDto",
|
|
13466
|
+
properties: [
|
|
13467
|
+
{ name: "name", type: "string", description: "\u7D44\u7E54\u540D", required: true, example: "acomo.inc" }
|
|
13468
|
+
]
|
|
13469
|
+
}
|
|
13470
|
+
},
|
|
13471
|
+
"updateMyOrganizationsTenant": {
|
|
13472
|
+
httpMethod: "PUT",
|
|
13473
|
+
path: "/api/v1/account/my/organization/tenants/{tenantId}",
|
|
13474
|
+
params: [
|
|
13475
|
+
{ name: "tenantId", in: "path", required: true, type: "string", description: "" }
|
|
13476
|
+
],
|
|
13477
|
+
requestBody: {
|
|
13478
|
+
dtoName: "updateTenantDto",
|
|
13479
|
+
properties: [
|
|
13480
|
+
{ name: "name", type: "string", description: "\u30C6\u30CA\u30F3\u30C8\u540D", required: true }
|
|
13481
|
+
]
|
|
13482
|
+
}
|
|
13483
|
+
},
|
|
13484
|
+
"updateRole": {
|
|
13485
|
+
httpMethod: "PUT",
|
|
13486
|
+
path: "/api/v1/roles/{roleId}",
|
|
13487
|
+
params: [
|
|
13488
|
+
{ name: "roleId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13489
|
+
]
|
|
13490
|
+
},
|
|
13491
|
+
"updateSettings": {
|
|
13492
|
+
httpMethod: "PUT",
|
|
13493
|
+
path: "/api/v1/settings",
|
|
13494
|
+
params: []
|
|
13495
|
+
},
|
|
13496
|
+
"updateSlack": {
|
|
13497
|
+
httpMethod: "PUT",
|
|
13498
|
+
path: "/api/v1/slack",
|
|
13499
|
+
params: []
|
|
13500
|
+
},
|
|
13501
|
+
"updateUser": {
|
|
13502
|
+
httpMethod: "PUT",
|
|
13503
|
+
path: "/api/v1/users/{userId}",
|
|
13504
|
+
params: [
|
|
13505
|
+
{ name: "userId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13506
|
+
]
|
|
13507
|
+
},
|
|
13508
|
+
"updateWorkflowProcess": {
|
|
13509
|
+
httpMethod: "PUT",
|
|
13510
|
+
path: "/api/v1/processes/{processId}",
|
|
13511
|
+
params: [
|
|
13512
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13513
|
+
],
|
|
13514
|
+
requestBody: {
|
|
13515
|
+
dtoName: "updateProcessDto",
|
|
13516
|
+
properties: [
|
|
13517
|
+
{ name: "name", type: "string", description: "\u30D7\u30ED\u30BB\u30B9\u540D", required: false, example: "\u7D4C\u8CBB\u7533\u8ACB: A\u3055\u3093" },
|
|
13518
|
+
{ name: "description", type: "string", description: "\u8AAC\u660E", required: false, example: "2023\u5E743\u6708\u5206\u306E\u7D4C\u8CBB\u7533\u8ACB\u3067\u3059\u3002" }
|
|
13519
|
+
]
|
|
13520
|
+
}
|
|
13521
|
+
},
|
|
13522
|
+
"uploadMyProcessDataFile": {
|
|
13523
|
+
httpMethod: "POST",
|
|
13524
|
+
path: "/api/v1/my/processes/{processId}/files/upload",
|
|
13525
|
+
params: [
|
|
13526
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13527
|
+
],
|
|
13528
|
+
requestBody: {
|
|
13529
|
+
dtoName: "createProcessFileDto",
|
|
13530
|
+
properties: [
|
|
13531
|
+
{ name: "property", type: "string", description: "\u30D7\u30ED\u30D1\u30C6\u30A3\uFF08\u30C7\u30FC\u30BF\u9805\u76EE\u540D\uFF09", required: true, example: "attachmentFiles" },
|
|
13532
|
+
{ name: "fileName", type: "string", description: "\u30D5\u30A1\u30A4\u30EB\u540D", required: true, example: "\u9818\u53CE\u66F8.pdf" }
|
|
13533
|
+
]
|
|
13534
|
+
}
|
|
13535
|
+
},
|
|
13536
|
+
"uploadProcessDataFile": {
|
|
13537
|
+
httpMethod: "POST",
|
|
13538
|
+
path: "/api/v1/processes/{processId}/files/upload",
|
|
13539
|
+
params: [
|
|
13540
|
+
{ name: "processId", in: "path", required: true, type: "string", description: "", example: "1" }
|
|
13541
|
+
],
|
|
13542
|
+
requestBody: {
|
|
13543
|
+
dtoName: "createProcessFileDto",
|
|
13544
|
+
properties: [
|
|
13545
|
+
{ name: "property", type: "string", description: "\u30D7\u30ED\u30D1\u30C6\u30A3\uFF08\u30C7\u30FC\u30BF\u9805\u76EE\u540D\uFF09", required: true, example: "attachmentFiles" },
|
|
13546
|
+
{ name: "fileName", type: "string", description: "\u30D5\u30A1\u30A4\u30EB\u540D", required: true, example: "\u9818\u53CE\u66F8.pdf" }
|
|
13547
|
+
]
|
|
13548
|
+
}
|
|
13549
|
+
},
|
|
13550
|
+
"validateExpression": {
|
|
13551
|
+
httpMethod: "GET",
|
|
13552
|
+
path: "/api/v1/models/validate/{expressionJson}",
|
|
13553
|
+
params: [
|
|
13554
|
+
{ name: "expressionJson", in: "path", required: true, type: "string", description: "" }
|
|
13555
|
+
]
|
|
13556
|
+
}
|
|
13557
|
+
};
|
|
13558
|
+
|
|
13559
|
+
// src/lib/help-schema.ts
|
|
13560
|
+
var GLOBAL_OPTIONS = [
|
|
13561
|
+
{
|
|
13562
|
+
name: "format",
|
|
13563
|
+
type: "string",
|
|
13564
|
+
description: "\u51FA\u529B\u5F62\u5F0F\uFF08API \u306E Accept \u30D8\u30C3\u30C0\u30FC\uFF09\u3002\u30D1\u30A4\u30D7\u6642\u306F json \u304C\u30C7\u30D5\u30A9\u30EB\u30C8\u3002",
|
|
13565
|
+
choices: ["text", "json"],
|
|
13566
|
+
default: void 0
|
|
13567
|
+
},
|
|
13568
|
+
{ name: "help", type: "boolean", description: "Show help" },
|
|
13569
|
+
{ name: "version", type: "boolean", description: "Show version number" }
|
|
13570
|
+
];
|
|
13571
|
+
function buildRootHelp(commands) {
|
|
13572
|
+
return {
|
|
13573
|
+
command: "acomo",
|
|
13574
|
+
kind: "root",
|
|
13575
|
+
summary: "acomo \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u7BA1\u7406\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u516C\u5F0F CLI",
|
|
13576
|
+
usage: "acomo <command> [options]",
|
|
13577
|
+
commands,
|
|
13578
|
+
globalOptions: GLOBAL_OPTIONS
|
|
13579
|
+
};
|
|
13580
|
+
}
|
|
13581
|
+
function buildCommandHelp(params) {
|
|
13582
|
+
return {
|
|
13583
|
+
command: params.command,
|
|
13584
|
+
kind: params.kind,
|
|
13585
|
+
summary: params.summary,
|
|
13586
|
+
usage: params.usage,
|
|
13587
|
+
positionals: params.positionals,
|
|
13588
|
+
options: params.options,
|
|
13589
|
+
inputSchema: params.inputSchema,
|
|
13590
|
+
minimalArgs: params.minimalArgs,
|
|
13591
|
+
exampleCommand: params.exampleCommand
|
|
13592
|
+
};
|
|
13593
|
+
}
|
|
13594
|
+
|
|
12561
13595
|
// src/index.ts
|
|
12562
|
-
var
|
|
12563
|
-
var
|
|
13596
|
+
var scriptDir = dirname3(fileURLToPath2(import.meta.url));
|
|
13597
|
+
var GLOBAL_OPTIONS2 = [
|
|
13598
|
+
{ name: "help", type: "boolean", description: "Show help" },
|
|
13599
|
+
{ name: "version", type: "boolean", description: "Show version number" }
|
|
13600
|
+
];
|
|
13601
|
+
var OPTIONS_WITH_VALUE = /* @__PURE__ */ new Set([
|
|
13602
|
+
"--base-url",
|
|
13603
|
+
"--tenant-id",
|
|
13604
|
+
"--access-token"
|
|
13605
|
+
]);
|
|
13606
|
+
function getHelpRequestedCommand(argv) {
|
|
13607
|
+
const args = argv.slice(2);
|
|
13608
|
+
let helpRequested = false;
|
|
13609
|
+
let command5 = null;
|
|
13610
|
+
let i = 0;
|
|
13611
|
+
while (i < args.length) {
|
|
13612
|
+
const a = args[i];
|
|
13613
|
+
if (a === "--help" || a === "-h") {
|
|
13614
|
+
helpRequested = true;
|
|
13615
|
+
i += 1;
|
|
13616
|
+
continue;
|
|
13617
|
+
}
|
|
13618
|
+
if (a.startsWith("-")) {
|
|
13619
|
+
if (OPTIONS_WITH_VALUE.has(a)) i += 1;
|
|
13620
|
+
i += 1;
|
|
13621
|
+
continue;
|
|
13622
|
+
}
|
|
13623
|
+
if (command5 === null) command5 = a;
|
|
13624
|
+
i += 1;
|
|
13625
|
+
}
|
|
13626
|
+
return { help: helpRequested, command: helpRequested ? command5 : null };
|
|
13627
|
+
}
|
|
13628
|
+
function getOperationRequestSchema(operationId) {
|
|
13629
|
+
return operationParams[operationId];
|
|
13630
|
+
}
|
|
13631
|
+
var EXIT_CODES = {
|
|
13632
|
+
GENERAL: 1,
|
|
13633
|
+
AUTH: 2,
|
|
13634
|
+
VALIDATION: 3,
|
|
13635
|
+
NOT_FOUND: 4
|
|
13636
|
+
};
|
|
12564
13637
|
async function resolveParams(positional) {
|
|
12565
13638
|
if (positional) {
|
|
12566
13639
|
try {
|
|
@@ -12585,39 +13658,278 @@ async function resolveParams(positional) {
|
|
|
12585
13658
|
}
|
|
12586
13659
|
return void 0;
|
|
12587
13660
|
}
|
|
12588
|
-
function
|
|
13661
|
+
function placeholderForType(type) {
|
|
13662
|
+
if (type === "string") return "";
|
|
13663
|
+
if (type === "number" || type === "integer") return 0;
|
|
13664
|
+
if (type === "boolean") return false;
|
|
13665
|
+
if (type.includes("[]")) return [];
|
|
13666
|
+
if (type === "object" || /[A-Z]/.test(type) || type.endsWith("Dto"))
|
|
13667
|
+
return {};
|
|
13668
|
+
return "";
|
|
13669
|
+
}
|
|
13670
|
+
function buildExampleParams(params) {
|
|
13671
|
+
const out = {};
|
|
13672
|
+
for (const p of params) {
|
|
13673
|
+
if (p.required) out[p.name] = placeholderForType(p.type);
|
|
13674
|
+
}
|
|
13675
|
+
return out;
|
|
13676
|
+
}
|
|
13677
|
+
function buildExampleBody(properties) {
|
|
13678
|
+
const out = {};
|
|
13679
|
+
for (const p of properties) {
|
|
13680
|
+
if (p.required) out[p.name] = placeholderForType(p.type);
|
|
13681
|
+
}
|
|
13682
|
+
return out;
|
|
13683
|
+
}
|
|
13684
|
+
function normalizeDescription(desc) {
|
|
13685
|
+
return desc.replace(/<br\s*\/?>/gi, "\n").trim();
|
|
13686
|
+
}
|
|
13687
|
+
function buildRootHelpDescriptor() {
|
|
13688
|
+
const commands = [
|
|
13689
|
+
{
|
|
13690
|
+
name: command2(),
|
|
13691
|
+
kind: "builtin-command",
|
|
13692
|
+
summary: describe()
|
|
13693
|
+
},
|
|
13694
|
+
{
|
|
13695
|
+
name: command3(),
|
|
13696
|
+
kind: "builtin-command",
|
|
13697
|
+
summary: describe2()
|
|
13698
|
+
},
|
|
13699
|
+
{
|
|
13700
|
+
name: "config",
|
|
13701
|
+
kind: "builtin-command",
|
|
13702
|
+
summary: describe3()
|
|
13703
|
+
}
|
|
13704
|
+
];
|
|
13705
|
+
const config = resolveConfig();
|
|
13706
|
+
if (config) {
|
|
13707
|
+
try {
|
|
13708
|
+
const configuration = createConfiguration();
|
|
13709
|
+
const registry = buildOperationRegistry(configuration);
|
|
13710
|
+
for (const [operationId] of registry) {
|
|
13711
|
+
const summary = operationDescriptions[operationId] ?? operationId;
|
|
13712
|
+
commands.push({ name: operationId, kind: "api-command", summary });
|
|
13713
|
+
}
|
|
13714
|
+
} catch {
|
|
13715
|
+
}
|
|
13716
|
+
}
|
|
13717
|
+
return buildRootHelp(commands);
|
|
13718
|
+
}
|
|
13719
|
+
function buildBuiltinHelpDescriptor(cmd) {
|
|
13720
|
+
const scriptName = "acomo";
|
|
13721
|
+
let summary;
|
|
13722
|
+
let positionals = [];
|
|
13723
|
+
let options;
|
|
13724
|
+
let exampleCommand = null;
|
|
13725
|
+
if (cmd === command2()) {
|
|
13726
|
+
summary = describe();
|
|
13727
|
+
options = [...helpOptions, ...GLOBAL_OPTIONS2];
|
|
13728
|
+
exampleCommand = "acomo login --tenant-id <tenantId> --access-token <accessToken>";
|
|
13729
|
+
} else if (cmd === command3()) {
|
|
13730
|
+
summary = describe2();
|
|
13731
|
+
options = [...helpOptions2, ...GLOBAL_OPTIONS2];
|
|
13732
|
+
exampleCommand = "acomo logout";
|
|
13733
|
+
} else if (cmd === "config") {
|
|
13734
|
+
summary = describe3();
|
|
13735
|
+
positionals = [...helpPositionals];
|
|
13736
|
+
options = [...helpOptions3, ...GLOBAL_OPTIONS2];
|
|
13737
|
+
exampleCommand = "acomo config show";
|
|
13738
|
+
} else {
|
|
13739
|
+
return null;
|
|
13740
|
+
}
|
|
13741
|
+
return buildCommandHelp({
|
|
13742
|
+
command: cmd,
|
|
13743
|
+
kind: "builtin-command",
|
|
13744
|
+
summary,
|
|
13745
|
+
usage: `${scriptName} ${cmd}${positionals.length ? " <subcommand> [key] [value]" : " [options]"}`,
|
|
13746
|
+
positionals,
|
|
13747
|
+
options,
|
|
13748
|
+
inputSchema: null,
|
|
13749
|
+
minimalArgs: null,
|
|
13750
|
+
exampleCommand
|
|
13751
|
+
});
|
|
13752
|
+
}
|
|
13753
|
+
function buildApiCommandHelpDescriptor(operationId) {
|
|
13754
|
+
const paramInfo = getOperationRequestSchema(operationId);
|
|
13755
|
+
if (!paramInfo) return null;
|
|
13756
|
+
const summary = operationDescriptions[operationId] ?? operationId;
|
|
13757
|
+
const toParamEntry = (p) => {
|
|
13758
|
+
const entry = {
|
|
13759
|
+
name: p.name,
|
|
13760
|
+
type: p.type,
|
|
13761
|
+
required: p.required,
|
|
13762
|
+
description: normalizeDescription(p.description || "")
|
|
13763
|
+
};
|
|
13764
|
+
if (p.example !== void 0) entry.example = p.example;
|
|
13765
|
+
return entry;
|
|
13766
|
+
};
|
|
13767
|
+
const pathParams = paramInfo.params.filter((p) => p.in === "path").map(toParamEntry);
|
|
13768
|
+
const queryParams = paramInfo.params.filter((p) => p.in === "query").map(toParamEntry);
|
|
13769
|
+
const requestBody = paramInfo.requestBody ? {
|
|
13770
|
+
dtoName: paramInfo.requestBody.dtoName,
|
|
13771
|
+
properties: paramInfo.requestBody.properties.map((p) => {
|
|
13772
|
+
const entry = {
|
|
13773
|
+
name: p.name,
|
|
13774
|
+
type: p.type,
|
|
13775
|
+
required: p.required,
|
|
13776
|
+
description: normalizeDescription(p.description || "")
|
|
13777
|
+
};
|
|
13778
|
+
if (p.example !== void 0) entry.example = p.example;
|
|
13779
|
+
return entry;
|
|
13780
|
+
})
|
|
13781
|
+
} : null;
|
|
13782
|
+
const minimalArgs = {
|
|
13783
|
+
...buildExampleParams(paramInfo.params)
|
|
13784
|
+
};
|
|
13785
|
+
if (paramInfo.requestBody) {
|
|
13786
|
+
const bodyExample = buildExampleBody(paramInfo.requestBody.properties);
|
|
13787
|
+
for (const [k, v] of Object.entries(bodyExample)) minimalArgs[k] = v;
|
|
13788
|
+
}
|
|
13789
|
+
const exampleCommand = `acomo ${operationId} '${JSON.stringify(minimalArgs)}'`;
|
|
13790
|
+
const positionals = [
|
|
13791
|
+
{
|
|
13792
|
+
name: "params",
|
|
13793
|
+
type: "object",
|
|
13794
|
+
required: false,
|
|
13795
|
+
description: "JSON \u30D1\u30E9\u30E1\u30FC\u30BF"
|
|
13796
|
+
}
|
|
13797
|
+
];
|
|
13798
|
+
return buildCommandHelp({
|
|
13799
|
+
command: operationId,
|
|
13800
|
+
kind: "api-command",
|
|
13801
|
+
summary,
|
|
13802
|
+
usage: `acomo ${operationId} [params]`,
|
|
13803
|
+
positionals,
|
|
13804
|
+
options: GLOBAL_OPTIONS2,
|
|
13805
|
+
inputSchema: {
|
|
13806
|
+
pathParams,
|
|
13807
|
+
queryParams,
|
|
13808
|
+
requestBody,
|
|
13809
|
+
stdinSupported: true,
|
|
13810
|
+
positionalJsonSupported: true
|
|
13811
|
+
},
|
|
13812
|
+
minimalArgs,
|
|
13813
|
+
exampleCommand
|
|
13814
|
+
});
|
|
13815
|
+
}
|
|
13816
|
+
async function handleError(error) {
|
|
13817
|
+
const jsonMode = !process.stdout.isTTY;
|
|
12589
13818
|
if (error.name === "ResponseError") {
|
|
12590
|
-
|
|
13819
|
+
const status = error.response?.status || 0;
|
|
13820
|
+
const exitCode = status === 401 || status === 403 ? EXIT_CODES.AUTH : status === 404 ? EXIT_CODES.NOT_FOUND : EXIT_CODES.GENERAL;
|
|
12591
13821
|
if (error.response) {
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
13822
|
+
let body;
|
|
13823
|
+
try {
|
|
13824
|
+
body = await error.response.json();
|
|
13825
|
+
} catch {
|
|
13826
|
+
body = { message: error.message };
|
|
13827
|
+
}
|
|
13828
|
+
if (jsonMode) {
|
|
13829
|
+
const errObj = {
|
|
13830
|
+
error: true,
|
|
13831
|
+
code: status === 401 ? "AUTH_REQUIRED" : status === 403 ? "FORBIDDEN" : status === 404 ? "NOT_FOUND" : "API_ERROR",
|
|
13832
|
+
status,
|
|
13833
|
+
message: body.message ?? error.message,
|
|
13834
|
+
...status === 401 ? { suggestion: "`acomo login` \u3092\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002" } : {}
|
|
13835
|
+
};
|
|
13836
|
+
console.error(JSON.stringify(errObj));
|
|
13837
|
+
} else {
|
|
13838
|
+
console.error(`API \u30A8\u30E9\u30FC (${status})`);
|
|
13839
|
+
console.error(
|
|
13840
|
+
typeof body === "string" ? body : JSON.stringify(body, null, 2)
|
|
13841
|
+
);
|
|
13842
|
+
if (status === 401) {
|
|
12596
13843
|
console.error("\n`acomo login` \u3092\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002");
|
|
12597
13844
|
}
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
13845
|
+
}
|
|
13846
|
+
process.exit(exitCode);
|
|
13847
|
+
}
|
|
13848
|
+
}
|
|
13849
|
+
if (error.name === "FetchError") {
|
|
13850
|
+
const message = "\u63A5\u7D9A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002baseUrl\uFF08ACOMO_BASE_URL\uFF09\u3068\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002";
|
|
13851
|
+
if (jsonMode) {
|
|
13852
|
+
console.error(
|
|
13853
|
+
JSON.stringify({
|
|
13854
|
+
error: true,
|
|
13855
|
+
code: "CONNECTION_ERROR",
|
|
13856
|
+
message,
|
|
13857
|
+
suggestion: "`acomo login` \u3067 baseUrl \u3092\u8A2D\u5B9A\u3059\u308B\u304B\u3001\u74B0\u5883\u5909\u6570 ACOMO_BASE_URL \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
|
|
13858
|
+
})
|
|
13859
|
+
);
|
|
13860
|
+
} else {
|
|
13861
|
+
console.error(message);
|
|
13862
|
+
console.error(
|
|
13863
|
+
"\n`acomo login` \u3067 baseUrl \u3092\u8A2D\u5B9A\u3059\u308B\u304B\u3001\u74B0\u5883\u5909\u6570 ACOMO_BASE_URL \u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
|
|
13864
|
+
);
|
|
12601
13865
|
}
|
|
13866
|
+
process.exit(EXIT_CODES.GENERAL);
|
|
12602
13867
|
}
|
|
12603
13868
|
if (error.name === "RequiredError") {
|
|
12604
|
-
|
|
12605
|
-
|
|
13869
|
+
if (jsonMode) {
|
|
13870
|
+
console.error(
|
|
13871
|
+
JSON.stringify({
|
|
13872
|
+
error: true,
|
|
13873
|
+
code: "VALIDATION_ERROR",
|
|
13874
|
+
message: error.message,
|
|
13875
|
+
suggestion: "\u5FC5\u9808\u30D1\u30E9\u30E1\u30FC\u30BF\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`acomo <command> --help` \u3067\u30D1\u30E9\u30E1\u30FC\u30BF\u60C5\u5831\u3092\u78BA\u8A8D\u3067\u304D\u307E\u3059\u3002"
|
|
13876
|
+
})
|
|
13877
|
+
);
|
|
13878
|
+
} else {
|
|
13879
|
+
console.error(`\u5FC5\u9808\u30D1\u30E9\u30E1\u30FC\u30BF\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u307E\u3059: ${error.message}`);
|
|
13880
|
+
}
|
|
13881
|
+
process.exit(EXIT_CODES.VALIDATION);
|
|
13882
|
+
}
|
|
13883
|
+
if (error.message?.startsWith("\u7121\u52B9\u306A JSON")) {
|
|
13884
|
+
if (jsonMode) {
|
|
13885
|
+
console.error(
|
|
13886
|
+
JSON.stringify({
|
|
13887
|
+
error: true,
|
|
13888
|
+
code: "INVALID_INPUT",
|
|
13889
|
+
message: error.message
|
|
13890
|
+
})
|
|
13891
|
+
);
|
|
13892
|
+
} else {
|
|
13893
|
+
console.error(`\u30A8\u30E9\u30FC: ${error.message}`);
|
|
13894
|
+
}
|
|
13895
|
+
process.exit(EXIT_CODES.VALIDATION);
|
|
12606
13896
|
}
|
|
12607
|
-
|
|
12608
|
-
|
|
13897
|
+
if (jsonMode) {
|
|
13898
|
+
console.error(
|
|
13899
|
+
JSON.stringify({
|
|
13900
|
+
error: true,
|
|
13901
|
+
code: "UNKNOWN_ERROR",
|
|
13902
|
+
message: error.message
|
|
13903
|
+
})
|
|
13904
|
+
);
|
|
13905
|
+
} else {
|
|
13906
|
+
console.error(`\u30A8\u30E9\u30FC: ${error.message}`);
|
|
13907
|
+
}
|
|
13908
|
+
process.exit(EXIT_CODES.GENERAL);
|
|
12609
13909
|
}
|
|
12610
13910
|
async function main() {
|
|
13911
|
+
const { help, command: command5 } = getHelpRequestedCommand(process.argv);
|
|
13912
|
+
if (help) {
|
|
13913
|
+
let descriptor;
|
|
13914
|
+
if (!command5) {
|
|
13915
|
+
descriptor = buildRootHelpDescriptor();
|
|
13916
|
+
} else {
|
|
13917
|
+
const builtin = buildBuiltinHelpDescriptor(command5);
|
|
13918
|
+
if (builtin) {
|
|
13919
|
+
descriptor = builtin;
|
|
13920
|
+
} else {
|
|
13921
|
+
const api = buildApiCommandHelpDescriptor(command5);
|
|
13922
|
+
if (api) descriptor = api;
|
|
13923
|
+
else descriptor = buildRootHelpDescriptor();
|
|
13924
|
+
}
|
|
13925
|
+
}
|
|
13926
|
+
console.log(JSON.stringify(descriptor, null, 2));
|
|
13927
|
+
process.exit(0);
|
|
13928
|
+
}
|
|
12611
13929
|
const pkg = JSON.parse(
|
|
12612
|
-
(
|
|
13930
|
+
readFileSync4(resolve5(scriptDir, "../package.json"), "utf-8")
|
|
12613
13931
|
);
|
|
12614
|
-
const argv = yargs_default(hideBin(process.argv)).scriptName("acomo").usage("Usage: $0 <command> [options]").
|
|
12615
|
-
alias: "f",
|
|
12616
|
-
type: "string",
|
|
12617
|
-
description: "\u51FA\u529B\u5F62\u5F0F\uFF08API \u306E Accept \u30D8\u30C3\u30C0\u30FC\uFF09",
|
|
12618
|
-
choices: ["text", "json"],
|
|
12619
|
-
default: "text"
|
|
12620
|
-
}).help().alias("h", "help").version(pkg.version).alias("v", "version");
|
|
13932
|
+
const argv = yargs_default(hideBin(process.argv)).scriptName("acomo").usage("Usage: $0 <command> [options]").help().alias("h", "help").version(pkg.version).alias("v", "version");
|
|
12621
13933
|
argv.command(
|
|
12622
13934
|
command2(),
|
|
12623
13935
|
describe(),
|
|
@@ -12642,27 +13954,40 @@ async function main() {
|
|
|
12642
13954
|
const configuration = createConfiguration();
|
|
12643
13955
|
const registry = buildOperationRegistry(configuration);
|
|
12644
13956
|
for (const [operationId] of registry) {
|
|
13957
|
+
const paramInfo = getOperationRequestSchema(operationId);
|
|
12645
13958
|
argv.command(
|
|
12646
13959
|
`${operationId} [params]`,
|
|
12647
13960
|
operationDescriptions[operationId] ?? operationId,
|
|
12648
|
-
(y) =>
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
13961
|
+
(y) => {
|
|
13962
|
+
y.positional("params", {
|
|
13963
|
+
type: "string",
|
|
13964
|
+
description: "JSON \u30D1\u30E9\u30E1\u30FC\u30BF"
|
|
13965
|
+
});
|
|
13966
|
+
return y;
|
|
13967
|
+
},
|
|
12652
13968
|
async (cmdArgv) => {
|
|
12653
13969
|
try {
|
|
12654
|
-
const params = await resolveParams(
|
|
13970
|
+
const params = await resolveParams(
|
|
13971
|
+
cmdArgv.params
|
|
13972
|
+
);
|
|
12655
13973
|
const entry = registry.get(operationId);
|
|
12656
|
-
const
|
|
12657
|
-
const
|
|
12658
|
-
|
|
13974
|
+
const apiConfig = createConfiguration();
|
|
13975
|
+
const instance = new entry.instance.constructor(
|
|
13976
|
+
apiConfig
|
|
13977
|
+
);
|
|
13978
|
+
const rawResponse = await instance[entry.method + "Raw"](
|
|
13979
|
+
params ?? {}
|
|
12659
13980
|
);
|
|
12660
|
-
|
|
12661
|
-
|
|
13981
|
+
if (!rawResponse.raw.ok) {
|
|
13982
|
+
throw new ResponseError(
|
|
13983
|
+
rawResponse.raw,
|
|
13984
|
+
"Response returned an error code"
|
|
13985
|
+
);
|
|
13986
|
+
}
|
|
12662
13987
|
const text = await rawResponse.raw.text();
|
|
12663
13988
|
process.stdout.write(text + "\n");
|
|
12664
13989
|
} catch (error) {
|
|
12665
|
-
handleError(error);
|
|
13990
|
+
await handleError(error);
|
|
12666
13991
|
}
|
|
12667
13992
|
}
|
|
12668
13993
|
);
|
|
@@ -12672,8 +13997,8 @@ async function main() {
|
|
|
12672
13997
|
}
|
|
12673
13998
|
argv.demandCommand(1, "\u30B3\u30DE\u30F3\u30C9\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002").strict().parse();
|
|
12674
13999
|
}
|
|
12675
|
-
main().catch((error) => {
|
|
12676
|
-
handleError(error);
|
|
14000
|
+
main().catch(async (error) => {
|
|
14001
|
+
await handleError(error);
|
|
12677
14002
|
});
|
|
12678
14003
|
/*! Bundled license information:
|
|
12679
14004
|
|