github-issue-tower-defence-management 1.146.4 → 1.146.6
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/.github/dependabot.yml +2 -0
- package/.github/workflows/codeql.yml +2 -2
- package/.github/workflows/commit-lint.yml +20 -0
- package/.github/workflows/umino-project.yml +0 -1
- package/CHANGELOG.md +14 -0
- package/bin/adapter/entry-points/cli/index.js +2 -2
- package/bin/adapter/entry-points/cli/index.js.map +1 -1
- package/bin/adapter/entry-points/console/ui-dist/assets/index-CPY6wV8C.js +82 -0
- package/bin/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/bin/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.js +26 -100
- package/bin/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.js.map +1 -1
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +49 -576
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
- package/bin/adapter/entry-points/handlers/LiveSessionOauthTokenSelectHandler.js +4 -3
- package/bin/adapter/entry-points/handlers/LiveSessionOauthTokenSelectHandler.js.map +1 -1
- package/bin/adapter/entry-points/handlers/OauthTokenSelectHandler.js +4 -3
- package/bin/adapter/entry-points/handlers/OauthTokenSelectHandler.js.map +1 -1
- package/bin/adapter/entry-points/handlers/notifySilentTmuxSessions.js +3 -2
- package/bin/adapter/entry-points/handlers/notifySilentTmuxSessions.js.map +1 -1
- package/bin/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.js +1 -1
- package/bin/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.js.map +1 -1
- package/bin/adapter/repositories/TmuxSilentSessionNotificationRepository.js +73 -2
- package/bin/adapter/repositories/TmuxSilentSessionNotificationRepository.js.map +1 -1
- package/bin/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.js +31 -7
- package/bin/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.js.map +1 -1
- package/bin/domain/usecases/LiveSessionOauthTokenSelectUseCase.js +3 -1
- package/bin/domain/usecases/LiveSessionOauthTokenSelectUseCase.js.map +1 -1
- package/bin/domain/usecases/OauthTokenSelectUseCase.js +13 -4
- package/bin/domain/usecases/OauthTokenSelectUseCase.js.map +1 -1
- package/package.json +5 -7
- package/renovate.json +5 -0
- package/src/adapter/entry-points/cli/index.ts +2 -2
- package/src/adapter/entry-points/console/consoleGithubTokenResolver.test.ts +22 -20
- package/src/adapter/entry-points/console/consoleOperationApi.test.ts +2 -2
- package/src/adapter/entry-points/console/ui-dist/assets/index-CPY6wV8C.js +82 -0
- package/src/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/src/adapter/entry-points/console/webServer.test.ts +2 -2
- package/src/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.ts +31 -3
- package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts +68 -3
- package/src/adapter/entry-points/handlers/LiveSessionOauthTokenSelectHandler.test.ts +7 -4
- package/src/adapter/entry-points/handlers/LiveSessionOauthTokenSelectHandler.ts +4 -1
- package/src/adapter/entry-points/handlers/OauthTokenSelectHandler.test.ts +6 -2
- package/src/adapter/entry-points/handlers/OauthTokenSelectHandler.ts +8 -2
- package/src/adapter/entry-points/handlers/notifySilentTmuxSessions.test.ts +1 -0
- package/src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts +14 -2
- package/src/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.ts +4 -1
- package/src/adapter/repositories/TmuxSilentSessionNotificationRepository.test.ts +157 -15
- package/src/adapter/repositories/TmuxSilentSessionNotificationRepository.ts +115 -1
- package/src/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.ts +35 -4
- package/src/domain/usecases/LiveSessionOauthTokenSelectUseCase.test.ts +77 -5
- package/src/domain/usecases/LiveSessionOauthTokenSelectUseCase.ts +10 -1
- package/src/domain/usecases/OauthTokenSelectUseCase.test.ts +39 -8
- package/src/domain/usecases/OauthTokenSelectUseCase.ts +25 -5
- package/src/domain/usecases/ProjectRequiredFieldCreateUseCase.test.ts +3 -3
- package/tsconfig.json +0 -5
- package/types/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.d.ts.map +1 -1
- package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
- package/types/adapter/entry-points/handlers/LiveSessionOauthTokenSelectHandler.d.ts +3 -1
- package/types/adapter/entry-points/handlers/LiveSessionOauthTokenSelectHandler.d.ts.map +1 -1
- package/types/adapter/entry-points/handlers/OauthTokenSelectHandler.d.ts +3 -2
- package/types/adapter/entry-points/handlers/OauthTokenSelectHandler.d.ts.map +1 -1
- package/types/adapter/entry-points/handlers/notifySilentTmuxSessions.d.ts +1 -0
- package/types/adapter/entry-points/handlers/notifySilentTmuxSessions.d.ts.map +1 -1
- package/types/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.d.ts.map +1 -1
- package/types/adapter/repositories/TmuxSilentSessionNotificationRepository.d.ts +14 -1
- package/types/adapter/repositories/TmuxSilentSessionNotificationRepository.d.ts.map +1 -1
- package/types/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.d.ts.map +1 -1
- package/types/domain/usecases/LiveSessionOauthTokenSelectUseCase.d.ts.map +1 -1
- package/types/domain/usecases/OauthTokenSelectUseCase.d.ts +4 -1
- package/types/domain/usecases/OauthTokenSelectUseCase.d.ts.map +1 -1
- package/bin/adapter/entry-points/console/ui-dist/assets/index-Bmc_nF1d.js +0 -82
- package/src/adapter/entry-points/console/ui-dist/assets/index-Bmc_nF1d.js +0 -82
|
@@ -1,46 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
4
|
};
|
|
38
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
6
|
exports.HandleScheduledEventUseCaseHandler = void 0;
|
|
40
|
-
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString"));
|
|
41
|
-
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport"));
|
|
42
7
|
const yaml_1 = __importDefault(require("yaml"));
|
|
43
|
-
const typia_1 = __importDefault(require("typia"));
|
|
44
8
|
const fs_1 = __importDefault(require("fs"));
|
|
45
9
|
const os_1 = __importDefault(require("os"));
|
|
46
10
|
const path_1 = __importDefault(require("path"));
|
|
@@ -114,546 +78,55 @@ class HandleScheduledEventUseCaseHandler {
|
|
|
114
78
|
this.handle = async (configFilePath, _verbose, inTmuxProjectOrderOverride = null) => {
|
|
115
79
|
const configFileContent = fs_1.default.readFileSync(configFilePath, 'utf8');
|
|
116
80
|
const input = yaml_1.default.parse(configFileContent);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
expected: "string",
|
|
167
|
-
value: input.org
|
|
168
|
-
}), ("object" === typeof input.workingReport && null !== input.workingReport || _report(_exceptionable, {
|
|
169
|
-
path: _path + ".workingReport",
|
|
170
|
-
expected: "__type",
|
|
171
|
-
value: input.workingReport
|
|
172
|
-
})) && _vo2(input.workingReport, _path + ".workingReport", true && _exceptionable) || _report(_exceptionable, {
|
|
173
|
-
path: _path + ".workingReport",
|
|
174
|
-
expected: "__type",
|
|
175
|
-
value: input.workingReport
|
|
176
|
-
}), "string" === typeof input.urlOfStoryView || _report(_exceptionable, {
|
|
177
|
-
path: _path + ".urlOfStoryView",
|
|
178
|
-
expected: "string",
|
|
179
|
-
value: input.urlOfStoryView
|
|
180
|
-
}), "boolean" === typeof input.disabled || _report(_exceptionable, {
|
|
181
|
-
path: _path + ".disabled",
|
|
182
|
-
expected: "boolean",
|
|
183
|
-
value: input.disabled
|
|
184
|
-
}), null === input.startPreparation || undefined === input.startPreparation || ("object" === typeof input.startPreparation && null !== input.startPreparation || _report(_exceptionable, {
|
|
185
|
-
path: _path + ".startPreparation",
|
|
186
|
-
expected: "(__type.o1 | null | undefined)",
|
|
187
|
-
value: input.startPreparation
|
|
188
|
-
})) && _vo3(input.startPreparation, _path + ".startPreparation", true && _exceptionable) || _report(_exceptionable, {
|
|
189
|
-
path: _path + ".startPreparation",
|
|
190
|
-
expected: "(__type.o1 | null | undefined)",
|
|
191
|
-
value: input.startPreparation
|
|
192
|
-
}), undefined === input.createTaskFromStoryBodyCheckboxEnabled || "boolean" === typeof input.createTaskFromStoryBodyCheckboxEnabled || _report(_exceptionable, {
|
|
193
|
-
path: _path + ".createTaskFromStoryBodyCheckboxEnabled",
|
|
194
|
-
expected: "(boolean | undefined)",
|
|
195
|
-
value: input.createTaskFromStoryBodyCheckboxEnabled
|
|
196
|
-
}), null === input.dailySecurityScan || undefined === input.dailySecurityScan || ("object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan || _report(_exceptionable, {
|
|
197
|
-
path: _path + ".dailySecurityScan",
|
|
198
|
-
expected: "(DailySecurityScanConfig | null | undefined)",
|
|
199
|
-
value: input.dailySecurityScan
|
|
200
|
-
})) && _vo4(input.dailySecurityScan, _path + ".dailySecurityScan", true && _exceptionable) || _report(_exceptionable, {
|
|
201
|
-
path: _path + ".dailySecurityScan",
|
|
202
|
-
expected: "(DailySecurityScanConfig | null | undefined)",
|
|
203
|
-
value: input.dailySecurityScan
|
|
204
|
-
}), null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || (Array.isArray(input.allowedIssueAuthors) || _report(_exceptionable, {
|
|
205
|
-
path: _path + ".allowedIssueAuthors",
|
|
206
|
-
expected: "(Array<string> | null | string | undefined)",
|
|
207
|
-
value: input.allowedIssueAuthors
|
|
208
|
-
})) && input.allowedIssueAuthors.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
|
|
209
|
-
path: _path + ".allowedIssueAuthors[" + _index11 + "]",
|
|
210
|
-
expected: "string",
|
|
211
|
-
value: elem
|
|
212
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
213
|
-
path: _path + ".allowedIssueAuthors",
|
|
214
|
-
expected: "(Array<string> | null | string | undefined)",
|
|
215
|
-
value: input.allowedIssueAuthors
|
|
216
|
-
}), null === input.autoAssignManagerAuthors || undefined === input.autoAssignManagerAuthors || "string" === typeof input.autoAssignManagerAuthors || (Array.isArray(input.autoAssignManagerAuthors) || _report(_exceptionable, {
|
|
217
|
-
path: _path + ".autoAssignManagerAuthors",
|
|
218
|
-
expected: "(Array<string> | null | string | undefined)",
|
|
219
|
-
value: input.autoAssignManagerAuthors
|
|
220
|
-
})) && input.autoAssignManagerAuthors.map((elem, _index12) => "string" === typeof elem || _report(_exceptionable, {
|
|
221
|
-
path: _path + ".autoAssignManagerAuthors[" + _index12 + "]",
|
|
222
|
-
expected: "string",
|
|
223
|
-
value: elem
|
|
224
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
225
|
-
path: _path + ".autoAssignManagerAuthors",
|
|
226
|
-
expected: "(Array<string> | null | string | undefined)",
|
|
227
|
-
value: input.autoAssignManagerAuthors
|
|
228
|
-
}), undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath || _report(_exceptionable, {
|
|
229
|
-
path: _path + ".claudeCodeOauthTokenListJsonPath",
|
|
230
|
-
expected: "(string | undefined)",
|
|
231
|
-
value: input.claudeCodeOauthTokenListJsonPath
|
|
232
|
-
}), undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir || _report(_exceptionable, {
|
|
233
|
-
path: _path + ".consoleDataOutputDir",
|
|
234
|
-
expected: "(string | undefined)",
|
|
235
|
-
value: input.consoleDataOutputDir
|
|
236
|
-
}), undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir || _report(_exceptionable, {
|
|
237
|
-
path: _path + ".dashboardDataDir",
|
|
238
|
-
expected: "(string | undefined)",
|
|
239
|
-
value: input.dashboardDataDir
|
|
240
|
-
}), undefined === input.disks || (Array.isArray(input.disks) || _report(_exceptionable, {
|
|
241
|
-
path: _path + ".disks",
|
|
242
|
-
expected: "(Array<__type> | undefined)",
|
|
243
|
-
value: input.disks
|
|
244
|
-
})) && input.disks.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
245
|
-
path: _path + ".disks[" + _index13 + "]",
|
|
246
|
-
expected: "__type.o2",
|
|
247
|
-
value: elem
|
|
248
|
-
})) && _vo5(elem, _path + ".disks[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
249
|
-
path: _path + ".disks[" + _index13 + "]",
|
|
250
|
-
expected: "__type.o2",
|
|
251
|
-
value: elem
|
|
252
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
253
|
-
path: _path + ".disks",
|
|
254
|
-
expected: "(Array<__type> | undefined)",
|
|
255
|
-
value: input.disks
|
|
256
|
-
}), undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName || _report(_exceptionable, {
|
|
257
|
-
path: _path + ".workflowBlockerStoryName",
|
|
258
|
-
expected: "(string | undefined)",
|
|
259
|
-
value: input.workflowBlockerStoryName
|
|
260
|
-
}), undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir || _report(_exceptionable, {
|
|
261
|
-
path: _path + ".inTmuxDataOutputDir",
|
|
262
|
-
expected: "(string | undefined)",
|
|
263
|
-
value: input.inTmuxDataOutputDir
|
|
264
|
-
}), undefined === input.newIssueRepo || "string" === typeof input.newIssueRepo || _report(_exceptionable, {
|
|
265
|
-
path: _path + ".newIssueRepo",
|
|
266
|
-
expected: "(string | undefined)",
|
|
267
|
-
value: input.newIssueRepo
|
|
268
|
-
}), undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl || _report(_exceptionable, {
|
|
269
|
-
path: _path + ".inTmuxConsoleBaseUrl",
|
|
270
|
-
expected: "(string | undefined)",
|
|
271
|
-
value: input.inTmuxConsoleBaseUrl
|
|
272
|
-
}), undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken || _report(_exceptionable, {
|
|
273
|
-
path: _path + ".inTmuxConsoleToken",
|
|
274
|
-
expected: "(string | undefined)",
|
|
275
|
-
value: input.inTmuxConsoleToken
|
|
276
|
-
}), undefined === input.inTmuxProjectOrder || (Array.isArray(input.inTmuxProjectOrder) || _report(_exceptionable, {
|
|
277
|
-
path: _path + ".inTmuxProjectOrder",
|
|
278
|
-
expected: "(Array<string> | undefined)",
|
|
279
|
-
value: input.inTmuxProjectOrder
|
|
280
|
-
})) && input.inTmuxProjectOrder.map((elem, _index14) => "string" === typeof elem || _report(_exceptionable, {
|
|
281
|
-
path: _path + ".inTmuxProjectOrder[" + _index14 + "]",
|
|
282
|
-
expected: "string",
|
|
283
|
-
value: elem
|
|
284
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
285
|
-
path: _path + ".inTmuxProjectOrder",
|
|
286
|
-
expected: "(Array<string> | undefined)",
|
|
287
|
-
value: input.inTmuxProjectOrder
|
|
288
|
-
}), undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand || _report(_exceptionable, {
|
|
289
|
-
path: _path + ".inTmuxLauncherCommand",
|
|
290
|
-
expected: "(string | undefined)",
|
|
291
|
-
value: input.inTmuxLauncherCommand
|
|
292
|
-
}), undefined === input.tokenExhaustionHandoverEnabled || "boolean" === typeof input.tokenExhaustionHandoverEnabled || _report(_exceptionable, {
|
|
293
|
-
path: _path + ".tokenExhaustionHandoverEnabled",
|
|
294
|
-
expected: "(boolean | undefined)",
|
|
295
|
-
value: input.tokenExhaustionHandoverEnabled
|
|
296
|
-
}), undefined === input.tokenExhaustionHandoverMessage || "string" === typeof input.tokenExhaustionHandoverMessage || _report(_exceptionable, {
|
|
297
|
-
path: _path + ".tokenExhaustionHandoverMessage",
|
|
298
|
-
expected: "(string | undefined)",
|
|
299
|
-
value: input.tokenExhaustionHandoverMessage
|
|
300
|
-
}), undefined === input.tokenExhaustionHandoverBareNameLeaderMessage || "string" === typeof input.tokenExhaustionHandoverBareNameLeaderMessage || _report(_exceptionable, {
|
|
301
|
-
path: _path + ".tokenExhaustionHandoverBareNameLeaderMessage",
|
|
302
|
-
expected: "(string | undefined)",
|
|
303
|
-
value: input.tokenExhaustionHandoverBareNameLeaderMessage
|
|
304
|
-
}), undefined === input.tokenRateLimitSnapshotBaseDir || "string" === typeof input.tokenRateLimitSnapshotBaseDir || _report(_exceptionable, {
|
|
305
|
-
path: _path + ".tokenRateLimitSnapshotBaseDir",
|
|
306
|
-
expected: "(string | undefined)",
|
|
307
|
-
value: input.tokenRateLimitSnapshotBaseDir
|
|
308
|
-
}), undefined === input.tokenExhaustionGracePeriodSeconds || "number" === typeof input.tokenExhaustionGracePeriodSeconds || _report(_exceptionable, {
|
|
309
|
-
path: _path + ".tokenExhaustionGracePeriodSeconds",
|
|
310
|
-
expected: "(number | undefined)",
|
|
311
|
-
value: input.tokenExhaustionGracePeriodSeconds
|
|
312
|
-
}), undefined === input.tokenExhaustionHandoverStateFilePath || "string" === typeof input.tokenExhaustionHandoverStateFilePath || _report(_exceptionable, {
|
|
313
|
-
path: _path + ".tokenExhaustionHandoverStateFilePath",
|
|
314
|
-
expected: "(string | undefined)",
|
|
315
|
-
value: input.tokenExhaustionHandoverStateFilePath
|
|
316
|
-
}), undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled || _report(_exceptionable, {
|
|
317
|
-
path: _path + ".silentNotificationEnabled",
|
|
318
|
-
expected: "(boolean | undefined)",
|
|
319
|
-
value: input.silentNotificationEnabled
|
|
320
|
-
}), undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker || _report(_exceptionable, {
|
|
321
|
-
path: _path + ".ownerCallMarker",
|
|
322
|
-
expected: "(string | undefined)",
|
|
323
|
-
value: input.ownerCallMarker
|
|
324
|
-
}), undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory || _report(_exceptionable, {
|
|
325
|
-
path: _path + ".subAgentOutputRootDirectory",
|
|
326
|
-
expected: "(string | undefined)",
|
|
327
|
-
value: input.subAgentOutputRootDirectory
|
|
328
|
-
}), undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern || _report(_exceptionable, {
|
|
329
|
-
path: _path + ".subAgentProcessMatchPattern",
|
|
330
|
-
expected: "(string | undefined)",
|
|
331
|
-
value: input.subAgentProcessMatchPattern
|
|
332
|
-
}), undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory || _report(_exceptionable, {
|
|
333
|
-
path: _path + ".subAgentTranscriptRootDirectory",
|
|
334
|
-
expected: "(string | undefined)",
|
|
335
|
-
value: input.subAgentTranscriptRootDirectory
|
|
336
|
-
}), undefined === input.subAgentRuntimeRootDirectory || "string" === typeof input.subAgentRuntimeRootDirectory || _report(_exceptionable, {
|
|
337
|
-
path: _path + ".subAgentRuntimeRootDirectory",
|
|
338
|
-
expected: "(string | undefined)",
|
|
339
|
-
value: input.subAgentRuntimeRootDirectory
|
|
340
|
-
}), undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds || _report(_exceptionable, {
|
|
341
|
-
path: _path + ".mainSilentThresholdSeconds",
|
|
342
|
-
expected: "(number | undefined)",
|
|
343
|
-
value: input.mainSilentThresholdSeconds
|
|
344
|
-
}), undefined === input.unansweredOwnerCallGraceSeconds || "number" === typeof input.unansweredOwnerCallGraceSeconds || _report(_exceptionable, {
|
|
345
|
-
path: _path + ".unansweredOwnerCallGraceSeconds",
|
|
346
|
-
expected: "(number | undefined)",
|
|
347
|
-
value: input.unansweredOwnerCallGraceSeconds
|
|
348
|
-
}), undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds || _report(_exceptionable, {
|
|
349
|
-
path: _path + ".subAgentSilentThresholdSeconds",
|
|
350
|
-
expected: "(number | undefined)",
|
|
351
|
-
value: input.subAgentSilentThresholdSeconds
|
|
352
|
-
}), undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds || _report(_exceptionable, {
|
|
353
|
-
path: _path + ".subAgentRunningThresholdSeconds",
|
|
354
|
-
expected: "(number | undefined)",
|
|
355
|
-
value: input.subAgentRunningThresholdSeconds
|
|
356
|
-
}), undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds || _report(_exceptionable, {
|
|
357
|
-
path: _path + ".silentNotificationStaggerSeconds",
|
|
358
|
-
expected: "(number | undefined)",
|
|
359
|
-
value: input.silentNotificationStaggerSeconds
|
|
360
|
-
}), undefined === input.candidateDebounceRecencyWindowSeconds || "number" === typeof input.candidateDebounceRecencyWindowSeconds || _report(_exceptionable, {
|
|
361
|
-
path: _path + ".candidateDebounceRecencyWindowSeconds",
|
|
362
|
-
expected: "(number | undefined)",
|
|
363
|
-
value: input.candidateDebounceRecencyWindowSeconds
|
|
364
|
-
}), undefined === input.candidateDebounceStateFilePath || "string" === typeof input.candidateDebounceStateFilePath || _report(_exceptionable, {
|
|
365
|
-
path: _path + ".candidateDebounceStateFilePath",
|
|
366
|
-
expected: "(string | undefined)",
|
|
367
|
-
value: input.candidateDebounceStateFilePath
|
|
368
|
-
}), undefined === input.activeHubTaskStatus || "string" === typeof input.activeHubTaskStatus || _report(_exceptionable, {
|
|
369
|
-
path: _path + ".activeHubTaskStatus",
|
|
370
|
-
expected: "(string | undefined)",
|
|
371
|
-
value: input.activeHubTaskStatus
|
|
372
|
-
}), undefined === input.hubTaskStatusCacheStateFilePath || "string" === typeof input.hubTaskStatusCacheStateFilePath || _report(_exceptionable, {
|
|
373
|
-
path: _path + ".hubTaskStatusCacheStateFilePath",
|
|
374
|
-
expected: "(string | undefined)",
|
|
375
|
-
value: input.hubTaskStatusCacheStateFilePath
|
|
376
|
-
}), undefined === input.hubTaskStatusCacheTtlSeconds || "number" === typeof input.hubTaskStatusCacheTtlSeconds || _report(_exceptionable, {
|
|
377
|
-
path: _path + ".hubTaskStatusCacheTtlSeconds",
|
|
378
|
-
expected: "(number | undefined)",
|
|
379
|
-
value: input.hubTaskStatusCacheTtlSeconds
|
|
380
|
-
}), undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage || _report(_exceptionable, {
|
|
381
|
-
path: _path + ".silentMainStalledMessage",
|
|
382
|
-
expected: "(string | undefined)",
|
|
383
|
-
value: input.silentMainStalledMessage
|
|
384
|
-
}), undefined === input.silentMainStalledStaleOwnerCallMessage || "string" === typeof input.silentMainStalledStaleOwnerCallMessage || _report(_exceptionable, {
|
|
385
|
-
path: _path + ".silentMainStalledStaleOwnerCallMessage",
|
|
386
|
-
expected: "(string | undefined)",
|
|
387
|
-
value: input.silentMainStalledStaleOwnerCallMessage
|
|
388
|
-
}), undefined === input.silentSubAgentIdleMessageHeader || "string" === typeof input.silentSubAgentIdleMessageHeader || _report(_exceptionable, {
|
|
389
|
-
path: _path + ".silentSubAgentIdleMessageHeader",
|
|
390
|
-
expected: "(string | undefined)",
|
|
391
|
-
value: input.silentSubAgentIdleMessageHeader
|
|
392
|
-
}), undefined === input.silentSubAgentIdleMessageFooter || "string" === typeof input.silentSubAgentIdleMessageFooter || _report(_exceptionable, {
|
|
393
|
-
path: _path + ".silentSubAgentIdleMessageFooter",
|
|
394
|
-
expected: "(string | undefined)",
|
|
395
|
-
value: input.silentSubAgentIdleMessageFooter
|
|
396
|
-
}), undefined === input.silentSubAgentLongRunningMessageHeader || "string" === typeof input.silentSubAgentLongRunningMessageHeader || _report(_exceptionable, {
|
|
397
|
-
path: _path + ".silentSubAgentLongRunningMessageHeader",
|
|
398
|
-
expected: "(string | undefined)",
|
|
399
|
-
value: input.silentSubAgentLongRunningMessageHeader
|
|
400
|
-
}), undefined === input.silentSubAgentLongRunningMessageFooter || "string" === typeof input.silentSubAgentLongRunningMessageFooter || _report(_exceptionable, {
|
|
401
|
-
path: _path + ".silentSubAgentLongRunningMessageFooter",
|
|
402
|
-
expected: "(string | undefined)",
|
|
403
|
-
value: input.silentSubAgentLongRunningMessageFooter
|
|
404
|
-
}), undefined === input.outputDegenerationResetEnabled || "boolean" === typeof input.outputDegenerationResetEnabled || _report(_exceptionable, {
|
|
405
|
-
path: _path + ".outputDegenerationResetEnabled",
|
|
406
|
-
expected: "(boolean | undefined)",
|
|
407
|
-
value: input.outputDegenerationResetEnabled
|
|
408
|
-
}), undefined === input.outputDegenerationWarningMessage || "string" === typeof input.outputDegenerationWarningMessage || _report(_exceptionable, {
|
|
409
|
-
path: _path + ".outputDegenerationWarningMessage",
|
|
410
|
-
expected: "(string | undefined)",
|
|
411
|
-
value: input.outputDegenerationWarningMessage
|
|
412
|
-
}), undefined === input.outputDegenerationGraceSeconds || "number" === typeof input.outputDegenerationGraceSeconds || _report(_exceptionable, {
|
|
413
|
-
path: _path + ".outputDegenerationGraceSeconds",
|
|
414
|
-
expected: "(number | undefined)",
|
|
415
|
-
value: input.outputDegenerationGraceSeconds
|
|
416
|
-
}), undefined === input.outputDegenerationCooldownSeconds || "number" === typeof input.outputDegenerationCooldownSeconds || _report(_exceptionable, {
|
|
417
|
-
path: _path + ".outputDegenerationCooldownSeconds",
|
|
418
|
-
expected: "(number | undefined)",
|
|
419
|
-
value: input.outputDegenerationCooldownSeconds
|
|
420
|
-
}), undefined === input.outputDegenerationCooldownStateFilePath || "string" === typeof input.outputDegenerationCooldownStateFilePath || _report(_exceptionable, {
|
|
421
|
-
path: _path + ".outputDegenerationCooldownStateFilePath",
|
|
422
|
-
expected: "(string | undefined)",
|
|
423
|
-
value: input.outputDegenerationCooldownStateFilePath
|
|
424
|
-
}), ("object" === typeof input.credentials && null !== input.credentials || _report(_exceptionable, {
|
|
425
|
-
path: _path + ".credentials",
|
|
426
|
-
expected: "__type.o3",
|
|
427
|
-
value: input.credentials
|
|
428
|
-
})) && _vo6(input.credentials, _path + ".credentials", true && _exceptionable) || _report(_exceptionable, {
|
|
429
|
-
path: _path + ".credentials",
|
|
430
|
-
expected: "__type.o3",
|
|
431
|
-
value: input.credentials
|
|
432
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
433
|
-
const value = input[key];
|
|
434
|
-
if (undefined === value)
|
|
435
|
-
return true;
|
|
436
|
-
return "string" === typeof value || _report(_exceptionable, {
|
|
437
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
438
|
-
expected: "string",
|
|
439
|
-
value: value
|
|
440
|
-
});
|
|
441
|
-
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.repo || _report(_exceptionable, {
|
|
442
|
-
path: _path + ".repo",
|
|
443
|
-
expected: "string",
|
|
444
|
-
value: input.repo
|
|
445
|
-
}), (Array.isArray(input.members) || _report(_exceptionable, {
|
|
446
|
-
path: _path + ".members",
|
|
447
|
-
expected: "Array<string>",
|
|
448
|
-
value: input.members
|
|
449
|
-
})) && input.members.map((elem, _index15) => "string" === typeof elem || _report(_exceptionable, {
|
|
450
|
-
path: _path + ".members[" + _index15 + "]",
|
|
451
|
-
expected: "string",
|
|
452
|
-
value: elem
|
|
453
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
454
|
-
path: _path + ".members",
|
|
455
|
-
expected: "Array<string>",
|
|
456
|
-
value: input.members
|
|
457
|
-
}), "string" === typeof input.spreadsheetUrl || _report(_exceptionable, {
|
|
458
|
-
path: _path + ".spreadsheetUrl",
|
|
459
|
-
expected: "string",
|
|
460
|
-
value: input.spreadsheetUrl
|
|
461
|
-
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.defaultAgentName || _report(_exceptionable, {
|
|
462
|
-
path: _path + ".defaultAgentName",
|
|
463
|
-
expected: "string",
|
|
464
|
-
value: input.defaultAgentName
|
|
465
|
-
}), null === input.defaultLlmModelName || undefined === input.defaultLlmModelName || "string" === typeof input.defaultLlmModelName || _report(_exceptionable, {
|
|
466
|
-
path: _path + ".defaultLlmModelName",
|
|
467
|
-
expected: "(null | string | undefined)",
|
|
468
|
-
value: input.defaultLlmModelName
|
|
469
|
-
}), null === input.fallbackLlmModelName || undefined === input.fallbackLlmModelName || "string" === typeof input.fallbackLlmModelName || _report(_exceptionable, {
|
|
470
|
-
path: _path + ".fallbackLlmModelName",
|
|
471
|
-
expected: "(null | string | undefined)",
|
|
472
|
-
value: input.fallbackLlmModelName
|
|
473
|
-
}), null === input.defaultLlmAgentName || undefined === input.defaultLlmAgentName || "string" === typeof input.defaultLlmAgentName || _report(_exceptionable, {
|
|
474
|
-
path: _path + ".defaultLlmAgentName",
|
|
475
|
-
expected: "(null | string | undefined)",
|
|
476
|
-
value: input.defaultLlmAgentName
|
|
477
|
-
}), "string" === typeof input.configFilePath || _report(_exceptionable, {
|
|
478
|
-
path: _path + ".configFilePath",
|
|
479
|
-
expected: "string",
|
|
480
|
-
value: input.configFilePath
|
|
481
|
-
}), null === input.maximumPreparingIssuesCount || "number" === typeof input.maximumPreparingIssuesCount || _report(_exceptionable, {
|
|
482
|
-
path: _path + ".maximumPreparingIssuesCount",
|
|
483
|
-
expected: "(null | number)",
|
|
484
|
-
value: input.maximumPreparingIssuesCount
|
|
485
|
-
}), undefined === input.utilizationPercentageThreshold || "number" === typeof input.utilizationPercentageThreshold || _report(_exceptionable, {
|
|
486
|
-
path: _path + ".utilizationPercentageThreshold",
|
|
487
|
-
expected: "(number | undefined)",
|
|
488
|
-
value: input.utilizationPercentageThreshold
|
|
489
|
-
}), null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || (Array.isArray(input.allowedIssueAuthors) || _report(_exceptionable, {
|
|
490
|
-
path: _path + ".allowedIssueAuthors",
|
|
491
|
-
expected: "(Array<string> | null | undefined)",
|
|
492
|
-
value: input.allowedIssueAuthors
|
|
493
|
-
})) && input.allowedIssueAuthors.map((elem, _index16) => "string" === typeof elem || _report(_exceptionable, {
|
|
494
|
-
path: _path + ".allowedIssueAuthors[" + _index16 + "]",
|
|
495
|
-
expected: "string",
|
|
496
|
-
value: elem
|
|
497
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
498
|
-
path: _path + ".allowedIssueAuthors",
|
|
499
|
-
expected: "(Array<string> | null | undefined)",
|
|
500
|
-
value: input.allowedIssueAuthors
|
|
501
|
-
}), undefined === input.preparationProcessCheckCommand || "string" === typeof input.preparationProcessCheckCommand || _report(_exceptionable, {
|
|
502
|
-
path: _path + ".preparationProcessCheckCommand",
|
|
503
|
-
expected: "(string | undefined)",
|
|
504
|
-
value: input.preparationProcessCheckCommand
|
|
505
|
-
}), null === input.codexHomeCandidates || undefined === input.codexHomeCandidates || (Array.isArray(input.codexHomeCandidates) || _report(_exceptionable, {
|
|
506
|
-
path: _path + ".codexHomeCandidates",
|
|
507
|
-
expected: "(Array<string> | null | undefined)",
|
|
508
|
-
value: input.codexHomeCandidates
|
|
509
|
-
})) && input.codexHomeCandidates.map((elem, _index17) => "string" === typeof elem || _report(_exceptionable, {
|
|
510
|
-
path: _path + ".codexHomeCandidates[" + _index17 + "]",
|
|
511
|
-
expected: "string",
|
|
512
|
-
value: elem
|
|
513
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
514
|
-
path: _path + ".codexHomeCandidates",
|
|
515
|
-
expected: "(Array<string> | null | undefined)",
|
|
516
|
-
value: input.codexHomeCandidates
|
|
517
|
-
}), undefined === input.awLogDirectoryPath || "string" === typeof input.awLogDirectoryPath || _report(_exceptionable, {
|
|
518
|
-
path: _path + ".awLogDirectoryPath",
|
|
519
|
-
expected: "(string | undefined)",
|
|
520
|
-
value: input.awLogDirectoryPath
|
|
521
|
-
}), undefined === input.awLogStaleThresholdMinutes || "number" === typeof input.awLogStaleThresholdMinutes || _report(_exceptionable, {
|
|
522
|
-
path: _path + ".awLogStaleThresholdMinutes",
|
|
523
|
-
expected: "(number | undefined)",
|
|
524
|
-
value: input.awLogStaleThresholdMinutes
|
|
525
|
-
}), null === input.awaitingQualityCheckStatus || undefined === input.awaitingQualityCheckStatus || "string" === typeof input.awaitingQualityCheckStatus || _report(_exceptionable, {
|
|
526
|
-
path: _path + ".awaitingQualityCheckStatus",
|
|
527
|
-
expected: "(null | string | undefined)",
|
|
528
|
-
value: input.awaitingQualityCheckStatus
|
|
529
|
-
}), null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || (Array.isArray(input.labelsAsLlmAgentName) || _report(_exceptionable, {
|
|
530
|
-
path: _path + ".labelsAsLlmAgentName",
|
|
531
|
-
expected: "(Array<string> | null | undefined)",
|
|
532
|
-
value: input.labelsAsLlmAgentName
|
|
533
|
-
})) && input.labelsAsLlmAgentName.map((elem, _index18) => "string" === typeof elem || _report(_exceptionable, {
|
|
534
|
-
path: _path + ".labelsAsLlmAgentName[" + _index18 + "]",
|
|
535
|
-
expected: "string",
|
|
536
|
-
value: elem
|
|
537
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
538
|
-
path: _path + ".labelsAsLlmAgentName",
|
|
539
|
-
expected: "(Array<string> | null | undefined)",
|
|
540
|
-
value: input.labelsAsLlmAgentName
|
|
541
|
-
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.scanBaseDirectory || _report(_exceptionable, {
|
|
542
|
-
path: _path + ".scanBaseDirectory",
|
|
543
|
-
expected: "string",
|
|
544
|
-
value: input.scanBaseDirectory
|
|
545
|
-
}), "number" === typeof input.targetHourUtc || _report(_exceptionable, {
|
|
546
|
-
path: _path + ".targetHourUtc",
|
|
547
|
-
expected: "number",
|
|
548
|
-
value: input.targetHourUtc
|
|
549
|
-
}), undefined === input.enableKevNvdReport || "boolean" === typeof input.enableKevNvdReport || _report(_exceptionable, {
|
|
550
|
-
path: _path + ".enableKevNvdReport",
|
|
551
|
-
expected: "(boolean | undefined)",
|
|
552
|
-
value: input.enableKevNvdReport
|
|
553
|
-
}), undefined === input.kevReportRepo || "string" === typeof input.kevReportRepo || _report(_exceptionable, {
|
|
554
|
-
path: _path + ".kevReportRepo",
|
|
555
|
-
expected: "(string | undefined)",
|
|
556
|
-
value: input.kevReportRepo
|
|
557
|
-
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || _report(_exceptionable, {
|
|
558
|
-
path: _path + ".title",
|
|
559
|
-
expected: "string",
|
|
560
|
-
value: input.title
|
|
561
|
-
}), "string" === typeof input.mountpoint || _report(_exceptionable, {
|
|
562
|
-
path: _path + ".mountpoint",
|
|
563
|
-
expected: "string",
|
|
564
|
-
value: input.mountpoint
|
|
565
|
-
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [("object" === typeof input.manager && null !== input.manager || _report(_exceptionable, {
|
|
566
|
-
path: _path + ".manager",
|
|
567
|
-
expected: "__type.o4",
|
|
568
|
-
value: input.manager
|
|
569
|
-
})) && _vo7(input.manager, _path + ".manager", true && _exceptionable) || _report(_exceptionable, {
|
|
570
|
-
path: _path + ".manager",
|
|
571
|
-
expected: "__type.o4",
|
|
572
|
-
value: input.manager
|
|
573
|
-
}), ("object" === typeof input.bot && null !== input.bot || _report(_exceptionable, {
|
|
574
|
-
path: _path + ".bot",
|
|
575
|
-
expected: "__type.o8",
|
|
576
|
-
value: input.bot
|
|
577
|
-
})) && _vo11(input.bot, _path + ".bot", true && _exceptionable) || _report(_exceptionable, {
|
|
578
|
-
path: _path + ".bot",
|
|
579
|
-
expected: "__type.o8",
|
|
580
|
-
value: input.bot
|
|
581
|
-
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [("object" === typeof input.github && null !== input.github || _report(_exceptionable, {
|
|
582
|
-
path: _path + ".github",
|
|
583
|
-
expected: "__type.o5",
|
|
584
|
-
value: input.github
|
|
585
|
-
})) && _vo8(input.github, _path + ".github", true && _exceptionable) || _report(_exceptionable, {
|
|
586
|
-
path: _path + ".github",
|
|
587
|
-
expected: "__type.o5",
|
|
588
|
-
value: input.github
|
|
589
|
-
}), ("object" === typeof input.slack && null !== input.slack || _report(_exceptionable, {
|
|
590
|
-
path: _path + ".slack",
|
|
591
|
-
expected: "__type.o6",
|
|
592
|
-
value: input.slack
|
|
593
|
-
})) && _vo9(input.slack, _path + ".slack", true && _exceptionable) || _report(_exceptionable, {
|
|
594
|
-
path: _path + ".slack",
|
|
595
|
-
expected: "__type.o6",
|
|
596
|
-
value: input.slack
|
|
597
|
-
}), ("object" === typeof input.googleServiceAccount && null !== input.googleServiceAccount || _report(_exceptionable, {
|
|
598
|
-
path: _path + ".googleServiceAccount",
|
|
599
|
-
expected: "__type.o7",
|
|
600
|
-
value: input.googleServiceAccount
|
|
601
|
-
})) && _vo10(input.googleServiceAccount, _path + ".googleServiceAccount", true && _exceptionable) || _report(_exceptionable, {
|
|
602
|
-
path: _path + ".googleServiceAccount",
|
|
603
|
-
expected: "__type.o7",
|
|
604
|
-
value: input.googleServiceAccount
|
|
605
|
-
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.token || _report(_exceptionable, {
|
|
606
|
-
path: _path + ".token",
|
|
607
|
-
expected: "string",
|
|
608
|
-
value: input.token
|
|
609
|
-
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.userToken || _report(_exceptionable, {
|
|
610
|
-
path: _path + ".userToken",
|
|
611
|
-
expected: "string",
|
|
612
|
-
value: input.userToken
|
|
613
|
-
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.serviceAccountKey || _report(_exceptionable, {
|
|
614
|
-
path: _path + ".serviceAccountKey",
|
|
615
|
-
expected: "string",
|
|
616
|
-
value: input.serviceAccountKey
|
|
617
|
-
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [("object" === typeof input.github && null !== input.github || _report(_exceptionable, {
|
|
618
|
-
path: _path + ".github",
|
|
619
|
-
expected: "__type.o9",
|
|
620
|
-
value: input.github
|
|
621
|
-
})) && _vo12(input.github, _path + ".github", true && _exceptionable) || _report(_exceptionable, {
|
|
622
|
-
path: _path + ".github",
|
|
623
|
-
expected: "__type.o9",
|
|
624
|
-
value: input.github
|
|
625
|
-
})].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.token || _report(_exceptionable, {
|
|
626
|
-
path: _path + ".token",
|
|
627
|
-
expected: "string",
|
|
628
|
-
value: input.token
|
|
629
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
630
|
-
if (false === __is(input)) {
|
|
631
|
-
errors = [];
|
|
632
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
633
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
634
|
-
path: _path + "",
|
|
635
|
-
expected: "inputType",
|
|
636
|
-
value: input
|
|
637
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
638
|
-
path: _path + "",
|
|
639
|
-
expected: "inputType",
|
|
640
|
-
value: input
|
|
641
|
-
}))(input, "$input", true);
|
|
642
|
-
const success = 0 === errors.length;
|
|
643
|
-
return success ? {
|
|
644
|
-
success,
|
|
645
|
-
data: input
|
|
646
|
-
} : {
|
|
647
|
-
success,
|
|
648
|
-
errors,
|
|
649
|
-
data: input
|
|
650
|
-
};
|
|
651
|
-
}
|
|
652
|
-
return {
|
|
653
|
-
success: true,
|
|
654
|
-
data: input
|
|
655
|
-
};
|
|
656
|
-
}; })()(input))}`);
|
|
81
|
+
const isInputType = (v) => {
|
|
82
|
+
if (typeof v !== 'object' || v === null)
|
|
83
|
+
return false;
|
|
84
|
+
if (!('credentials' in v) ||
|
|
85
|
+
typeof v.credentials !== 'object' ||
|
|
86
|
+
v.credentials === null)
|
|
87
|
+
return false;
|
|
88
|
+
const credentials = v.credentials;
|
|
89
|
+
if (!('manager' in credentials) ||
|
|
90
|
+
typeof credentials.manager !== 'object' ||
|
|
91
|
+
credentials.manager === null)
|
|
92
|
+
return false;
|
|
93
|
+
const manager = credentials.manager;
|
|
94
|
+
if (!('github' in manager) ||
|
|
95
|
+
typeof manager.github !== 'object' ||
|
|
96
|
+
manager.github === null)
|
|
97
|
+
return false;
|
|
98
|
+
if (!('token' in manager.github) ||
|
|
99
|
+
typeof manager.github.token !== 'string')
|
|
100
|
+
return false;
|
|
101
|
+
if (!('slack' in manager) ||
|
|
102
|
+
typeof manager.slack !== 'object' ||
|
|
103
|
+
manager.slack === null)
|
|
104
|
+
return false;
|
|
105
|
+
if (!('userToken' in manager.slack) ||
|
|
106
|
+
typeof manager.slack.userToken !== 'string')
|
|
107
|
+
return false;
|
|
108
|
+
if (!('googleServiceAccount' in manager) ||
|
|
109
|
+
typeof manager.googleServiceAccount !== 'object' ||
|
|
110
|
+
manager.googleServiceAccount === null)
|
|
111
|
+
return false;
|
|
112
|
+
if (!('serviceAccountKey' in manager.googleServiceAccount) ||
|
|
113
|
+
typeof manager.googleServiceAccount.serviceAccountKey !== 'string')
|
|
114
|
+
return false;
|
|
115
|
+
if (!('bot' in credentials) ||
|
|
116
|
+
typeof credentials.bot !== 'object' ||
|
|
117
|
+
credentials.bot === null)
|
|
118
|
+
return false;
|
|
119
|
+
const bot = credentials.bot;
|
|
120
|
+
if (!('github' in bot) ||
|
|
121
|
+
typeof bot.github !== 'object' ||
|
|
122
|
+
bot.github === null)
|
|
123
|
+
return false;
|
|
124
|
+
if (!('token' in bot.github) || typeof bot.github.token !== 'string')
|
|
125
|
+
return false;
|
|
126
|
+
return true;
|
|
127
|
+
};
|
|
128
|
+
if (!isInputType(input)) {
|
|
129
|
+
throw new Error(`Invalid input: required credential fields are missing. Got: ${JSON.stringify(input)}`);
|
|
657
130
|
}
|
|
658
131
|
if (input.disabled) {
|
|
659
132
|
return null;
|