@vscode/vsce 3.3.3-4 → 3.3.3-5

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/out/package.js CHANGED
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.printAndValidatePackagedFiles = exports.ls = exports.listFiles = exports.packageCommand = exports.createSignatureArchive = exports.verifySignature = exports.generateManifest = exports.signPackage = exports.pack = exports.prepublish = exports.collect = exports.createDefaultProcessors = exports.processFiles = exports.toContentTypes = exports.toVsixManifest = exports.readManifest = exports.validateManifestForPackaging = exports.ValidationProcessor = exports.NLSProcessor = exports.isWebKind = exports.LicenseProcessor = exports.ChangelogProcessor = exports.ReadmeProcessor = exports.MarkdownProcessor = exports.TagsProcessor = exports.ManifestProcessor = exports.Targets = exports.versionBump = exports.BaseProcessor = exports.read = void 0;
29
+ exports.scanFilesForSecrets = exports.printAndValidatePackagedFiles = exports.ls = exports.listFiles = exports.packageCommand = exports.createSignatureArchive = exports.verifySignature = exports.generateManifest = exports.signPackage = exports.pack = exports.prepublish = exports.collect = exports.createDefaultProcessors = exports.processFiles = exports.toContentTypes = exports.toVsixManifest = exports.readManifest = exports.validateManifestForPackaging = exports.ValidationProcessor = exports.NLSProcessor = exports.isWebKind = exports.LicenseProcessor = exports.ChangelogProcessor = exports.ReadmeProcessor = exports.MarkdownProcessor = exports.TagsProcessor = exports.ManifestProcessor = exports.Targets = exports.versionBump = exports.BaseProcessor = exports.read = void 0;
30
30
  const fs = __importStar(require("fs"));
31
31
  const path = __importStar(require("path"));
32
32
  const util_1 = require("util");
@@ -49,6 +49,7 @@ const GitHost = __importStar(require("hosted-git-info"));
49
49
  const parse_semver_1 = __importDefault(require("parse-semver"));
50
50
  const jsonc = __importStar(require("jsonc-parser"));
51
51
  const vsceSign = __importStar(require("@vscode/vsce-sign"));
52
+ const secretLint_1 = require("./secretLint");
52
53
  const MinimatchOptions = { dot: true };
53
54
  function isInMemoryFile(file) {
54
55
  return !!file.contents;
@@ -1556,6 +1557,33 @@ async function printAndValidatePackagedFiles(files, cwd, manifest, options) {
1556
1557
  }
1557
1558
  message += '\n';
1558
1559
  util.log.info(message);
1560
+ await scanFilesForSecrets(files);
1559
1561
  }
1560
1562
  exports.printAndValidatePackagedFiles = printAndValidatePackagedFiles;
1563
+ async function scanFilesForSecrets(files) {
1564
+ const onDiskFiles = files.filter(file => !isInMemoryFile(file));
1565
+ const inMemoryFiles = files.filter(file => isInMemoryFile(file));
1566
+ const onDiskResult = await (0, secretLint_1.lintFiles)(onDiskFiles.map(file => file.localPath));
1567
+ const inMemoryResults = await Promise.all(inMemoryFiles.map(file => (0, secretLint_1.lintText)(typeof file.contents === 'string' ? file.contents : file.contents.toString('utf8'), file.path)));
1568
+ const secretsFound = [...inMemoryResults, onDiskResult].filter(result => !result.ok).flatMap(result => result.results);
1569
+ if (secretsFound.length === 0) {
1570
+ return;
1571
+ }
1572
+ // secrets found
1573
+ const noneDotEnvSecretsFound = secretsFound.filter(result => result.ruleId !== '@secretlint/secretlint-rule-no-dotenv');
1574
+ if (noneDotEnvSecretsFound.length > 0) {
1575
+ let errorOutput = '';
1576
+ for (const secret of noneDotEnvSecretsFound) {
1577
+ errorOutput += '\n' + (0, secretLint_1.prettyPrintLintResult)(secret);
1578
+ }
1579
+ util.log.error(`Secrets have been detected in the files which are being packaged:\n\n${errorOutput}`);
1580
+ }
1581
+ // .env file found
1582
+ const allRuleIds = new Set(secretsFound.map(result => result.ruleId).filter(Boolean));
1583
+ if (allRuleIds.has('@secretlint/secretlint-rule-no-dotenv')) {
1584
+ util.log.error(`${chalk_1.default.bold.red('.env')} files should not be packaged. Ignore them in your ${chalk_1.default.bold('.vscodeignore')} file or exclude them from the package.json ${chalk_1.default.bold('files')} property.`);
1585
+ }
1586
+ process.exit(1);
1587
+ }
1588
+ exports.scanFilesForSecrets = scanFilesForSecrets;
1561
1589
  //# sourceMappingURL=package.js.map
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.prettyPrintLintResult = exports.lintText = exports.lintFiles = void 0;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const secret_lint_types_1 = require("./typings/secret-lint-types");
9
+ const lintConfig = {
10
+ rules: [
11
+ {
12
+ id: "@secretlint/secretlint-rule-preset-recommend",
13
+ rules: [
14
+ {
15
+ "id": "@secretlint/secretlint-rule-basicauth",
16
+ "allowMessageIds": ["BasicAuth"]
17
+ }
18
+ ]
19
+ }, {
20
+ id: "@secretlint/secretlint-rule-no-dotenv"
21
+ }
22
+ ]
23
+ };
24
+ const lintOptions = {
25
+ configFileJSON: lintConfig,
26
+ formatter: "@secretlint/secretlint-formatter-sarif",
27
+ color: true,
28
+ maskSecrets: false
29
+ };
30
+ // Helper function to dynamically import the createEngine function
31
+ async function getEngine() {
32
+ // Use a raw dynamic import that will not be transformed
33
+ // This is necessary because @secretlint/node is an ESM module
34
+ const secretlintModule = await eval('import("@secretlint/node")');
35
+ const engine = await secretlintModule.createEngine(lintOptions);
36
+ return engine;
37
+ }
38
+ async function lintFiles(filePaths) {
39
+ const engine = await getEngine();
40
+ const engineResult = await engine.executeOnFiles({
41
+ filePathList: filePaths
42
+ });
43
+ return parseResult(engineResult);
44
+ }
45
+ exports.lintFiles = lintFiles;
46
+ async function lintText(content, fileName) {
47
+ const engine = await getEngine();
48
+ const engineResult = await engine.executeOnContent({
49
+ content,
50
+ filePath: fileName
51
+ });
52
+ return parseResult(engineResult);
53
+ }
54
+ exports.lintText = lintText;
55
+ function parseResult(result) {
56
+ const output = secret_lint_types_1.Convert.toSecretLintOutput(result.output);
57
+ const results = output.runs.at(0)?.results ?? [];
58
+ return { ok: result.ok, results };
59
+ }
60
+ function prettyPrintLintResult(result) {
61
+ if (!result.message.text) {
62
+ return JSON.stringify(result);
63
+ }
64
+ const text = result.message.text;
65
+ const titleColor = result.level === undefined || result.level === secret_lint_types_1.Level.Error ? chalk_1.default.bold.red : chalk_1.default.bold.yellow;
66
+ const title = text.length > 54 ? text.slice(0, 50) + '...' : text;
67
+ let output = `\t${titleColor(title)}\n`;
68
+ if (result.locations) {
69
+ result.locations.forEach(location => {
70
+ output += `\t${prettyPrintLocation(location)}\n`;
71
+ });
72
+ }
73
+ return output;
74
+ }
75
+ exports.prettyPrintLintResult = prettyPrintLintResult;
76
+ function prettyPrintLocation(location) {
77
+ if (!location.physicalLocation) {
78
+ return JSON.stringify(location);
79
+ }
80
+ const uri = location.physicalLocation.artifactLocation?.uri;
81
+ if (!uri) {
82
+ return JSON.stringify(location);
83
+ }
84
+ let output = uri;
85
+ const region = location.physicalLocation.region;
86
+ const regionStringified = region ? prettyPrintRegion(region) : undefined;
87
+ if (regionStringified) {
88
+ output += `#${regionStringified}`;
89
+ }
90
+ return output;
91
+ }
92
+ function prettyPrintRegion(region) {
93
+ const startPosition = prettyPrintPosition(region.startLine, region.startColumn);
94
+ const endPosition = prettyPrintPosition(region.endLine, region.endColumn);
95
+ if (!startPosition) {
96
+ return undefined;
97
+ }
98
+ let output = startPosition;
99
+ if (endPosition && startPosition !== endPosition) {
100
+ output += `-${endPosition}`;
101
+ }
102
+ return output;
103
+ }
104
+ function prettyPrintPosition(line, column) {
105
+ if (line === undefined) {
106
+ return undefined;
107
+ }
108
+ let output = line.toString();
109
+ if (column !== undefined) {
110
+ output += `:${column}`;
111
+ }
112
+ return output;
113
+ }
114
+ //# sourceMappingURL=secretLint.js.map
@@ -0,0 +1,878 @@
1
+ "use strict";
2
+ // To parse this data:
3
+ //
4
+ // import { Convert, SecretLintOutput } from "./file";
5
+ //
6
+ // const secretLintOutput = Convert.toSecretLintOutput(json);
7
+ //
8
+ // These functions will throw an error if the JSON doesn't
9
+ // match the expected interface, even if the JSON is valid.
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.Convert = exports.ColumnKind = exports.Version = exports.Status = exports.SuppressionKind = exports.ResultKind = exports.Importance = exports.BaselineState = exports.Content = exports.Level = exports.Role = void 0;
12
+ var Role;
13
+ (function (Role) {
14
+ Role["Added"] = "added";
15
+ Role["AnalysisTarget"] = "analysisTarget";
16
+ Role["Attachment"] = "attachment";
17
+ Role["DebugOutputFile"] = "debugOutputFile";
18
+ Role["Deleted"] = "deleted";
19
+ Role["Directory"] = "directory";
20
+ Role["Driver"] = "driver";
21
+ Role["Extension"] = "extension";
22
+ Role["MemoryContents"] = "memoryContents";
23
+ Role["Modified"] = "modified";
24
+ Role["Policy"] = "policy";
25
+ Role["ReferencedOnCommandLine"] = "referencedOnCommandLine";
26
+ Role["Renamed"] = "renamed";
27
+ Role["ResponseFile"] = "responseFile";
28
+ Role["ResultFile"] = "resultFile";
29
+ Role["StandardStream"] = "standardStream";
30
+ Role["Taxonomy"] = "taxonomy";
31
+ Role["ToolSpecifiedConfiguration"] = "toolSpecifiedConfiguration";
32
+ Role["TracedFile"] = "tracedFile";
33
+ Role["Translation"] = "translation";
34
+ Role["Uncontrolled"] = "uncontrolled";
35
+ Role["Unmodified"] = "unmodified";
36
+ Role["UserSpecifiedConfiguration"] = "userSpecifiedConfiguration";
37
+ })(Role = exports.Role || (exports.Role = {}));
38
+ /**
39
+ * Specifies the failure level for the report.
40
+ *
41
+ * A value specifying the severity level of the notification.
42
+ *
43
+ * A value specifying the severity level of the result.
44
+ */
45
+ var Level;
46
+ (function (Level) {
47
+ Level["Error"] = "error";
48
+ Level["None"] = "none";
49
+ Level["Note"] = "note";
50
+ Level["Warning"] = "warning";
51
+ })(Level = exports.Level || (exports.Level = {}));
52
+ var Content;
53
+ (function (Content) {
54
+ Content["LocalizedData"] = "localizedData";
55
+ Content["NonLocalizedData"] = "nonLocalizedData";
56
+ })(Content = exports.Content || (exports.Content = {}));
57
+ /**
58
+ * The state of a result relative to a baseline of a previous run.
59
+ */
60
+ var BaselineState;
61
+ (function (BaselineState) {
62
+ BaselineState["Absent"] = "absent";
63
+ BaselineState["New"] = "new";
64
+ BaselineState["Unchanged"] = "unchanged";
65
+ BaselineState["Updated"] = "updated";
66
+ })(BaselineState = exports.BaselineState || (exports.BaselineState = {}));
67
+ /**
68
+ * Specifies the importance of this location in understanding the code flow in which it
69
+ * occurs. The order from most to least important is "essential", "important",
70
+ * "unimportant". Default: "important".
71
+ */
72
+ var Importance;
73
+ (function (Importance) {
74
+ Importance["Essential"] = "essential";
75
+ Importance["Important"] = "important";
76
+ Importance["Unimportant"] = "unimportant";
77
+ })(Importance = exports.Importance || (exports.Importance = {}));
78
+ /**
79
+ * A value that categorizes results by evaluation state.
80
+ */
81
+ var ResultKind;
82
+ (function (ResultKind) {
83
+ ResultKind["Fail"] = "fail";
84
+ ResultKind["Informational"] = "informational";
85
+ ResultKind["NotApplicable"] = "notApplicable";
86
+ ResultKind["Open"] = "open";
87
+ ResultKind["Pass"] = "pass";
88
+ ResultKind["Review"] = "review";
89
+ })(ResultKind = exports.ResultKind || (exports.ResultKind = {}));
90
+ /**
91
+ * A string that indicates where the suppression is persisted.
92
+ */
93
+ var SuppressionKind;
94
+ (function (SuppressionKind) {
95
+ SuppressionKind["External"] = "external";
96
+ SuppressionKind["InSource"] = "inSource";
97
+ })(SuppressionKind = exports.SuppressionKind || (exports.SuppressionKind = {}));
98
+ /**
99
+ * A string that indicates the review status of the suppression.
100
+ */
101
+ var Status;
102
+ (function (Status) {
103
+ Status["Accepted"] = "accepted";
104
+ Status["Rejected"] = "rejected";
105
+ Status["UnderReview"] = "underReview";
106
+ })(Status = exports.Status || (exports.Status = {}));
107
+ /**
108
+ * The SARIF format version of this external properties object.
109
+ *
110
+ * The SARIF format version of this log file.
111
+ */
112
+ var Version;
113
+ (function (Version) {
114
+ Version["The210"] = "2.1.0";
115
+ })(Version = exports.Version || (exports.Version = {}));
116
+ /**
117
+ * Specifies the unit in which the tool measures columns.
118
+ */
119
+ var ColumnKind;
120
+ (function (ColumnKind) {
121
+ ColumnKind["UnicodeCodePoints"] = "unicodeCodePoints";
122
+ ColumnKind["Utf16CodeUnits"] = "utf16CodeUnits";
123
+ })(ColumnKind = exports.ColumnKind || (exports.ColumnKind = {}));
124
+ // Converts JSON strings to/from your types
125
+ // and asserts the results of JSON.parse at runtime
126
+ class Convert {
127
+ static toSecretLintOutput(json) {
128
+ return cast(JSON.parse(json), r("SecretLintOutput"));
129
+ }
130
+ static SecretLintOutputToJson(value) {
131
+ return JSON.stringify(uncast(value, r("SecretLintOutput")), null, 2);
132
+ }
133
+ }
134
+ exports.Convert = Convert;
135
+ function invalidValue(typ, val, key, parent = '') {
136
+ const prettyTyp = prettyTypeName(typ);
137
+ const parentText = parent ? ` on ${parent}` : '';
138
+ const keyText = key ? ` for key "${key}"` : '';
139
+ throw Error(`Invalid value${keyText}${parentText}. Expected ${prettyTyp} but got ${JSON.stringify(val)}`);
140
+ }
141
+ function prettyTypeName(typ) {
142
+ if (Array.isArray(typ)) {
143
+ if (typ.length === 2 && typ[0] === undefined) {
144
+ return `an optional ${prettyTypeName(typ[1])}`;
145
+ }
146
+ else {
147
+ return `one of [${typ.map(a => { return prettyTypeName(a); }).join(", ")}]`;
148
+ }
149
+ }
150
+ else if (typeof typ === "object" && typ.literal !== undefined) {
151
+ return typ.literal;
152
+ }
153
+ else {
154
+ return typeof typ;
155
+ }
156
+ }
157
+ function jsonToJSProps(typ) {
158
+ if (typ.jsonToJS === undefined) {
159
+ const map = {};
160
+ typ.props.forEach((p) => map[p.json] = { key: p.js, typ: p.typ });
161
+ typ.jsonToJS = map;
162
+ }
163
+ return typ.jsonToJS;
164
+ }
165
+ function jsToJSONProps(typ) {
166
+ if (typ.jsToJSON === undefined) {
167
+ const map = {};
168
+ typ.props.forEach((p) => map[p.js] = { key: p.json, typ: p.typ });
169
+ typ.jsToJSON = map;
170
+ }
171
+ return typ.jsToJSON;
172
+ }
173
+ function transform(val, typ, getProps, key = '', parent = '') {
174
+ function transformPrimitive(typ, val) {
175
+ if (typeof typ === typeof val)
176
+ return val;
177
+ return invalidValue(typ, val, key, parent);
178
+ }
179
+ function transformUnion(typs, val) {
180
+ // val must validate against one typ in typs
181
+ const l = typs.length;
182
+ for (let i = 0; i < l; i++) {
183
+ const typ = typs[i];
184
+ try {
185
+ return transform(val, typ, getProps);
186
+ }
187
+ catch (_) { }
188
+ }
189
+ return invalidValue(typs, val, key, parent);
190
+ }
191
+ function transformEnum(cases, val) {
192
+ if (cases.indexOf(val) !== -1)
193
+ return val;
194
+ return invalidValue(cases.map(a => { return l(a); }), val, key, parent);
195
+ }
196
+ function transformArray(typ, val) {
197
+ // val must be an array with no invalid elements
198
+ if (!Array.isArray(val))
199
+ return invalidValue(l("array"), val, key, parent);
200
+ return val.map(el => transform(el, typ, getProps));
201
+ }
202
+ function transformDate(val) {
203
+ if (val === null) {
204
+ return null;
205
+ }
206
+ const d = new Date(val);
207
+ if (isNaN(d.valueOf())) {
208
+ return invalidValue(l("Date"), val, key, parent);
209
+ }
210
+ return d;
211
+ }
212
+ function transformObject(props, additional, val) {
213
+ if (val === null || typeof val !== "object" || Array.isArray(val)) {
214
+ return invalidValue(l(ref || "object"), val, key, parent);
215
+ }
216
+ const result = {};
217
+ Object.getOwnPropertyNames(props).forEach(key => {
218
+ const prop = props[key];
219
+ const v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined;
220
+ result[prop.key] = transform(v, prop.typ, getProps, key, ref);
221
+ });
222
+ Object.getOwnPropertyNames(val).forEach(key => {
223
+ if (!Object.prototype.hasOwnProperty.call(props, key)) {
224
+ result[key] = transform(val[key], additional, getProps, key, ref);
225
+ }
226
+ });
227
+ return result;
228
+ }
229
+ if (typ === "any")
230
+ return val;
231
+ if (typ === null) {
232
+ if (val === null)
233
+ return val;
234
+ return invalidValue(typ, val, key, parent);
235
+ }
236
+ if (typ === false)
237
+ return invalidValue(typ, val, key, parent);
238
+ let ref = undefined;
239
+ while (typeof typ === "object" && typ.ref !== undefined) {
240
+ ref = typ.ref;
241
+ typ = typeMap[typ.ref];
242
+ }
243
+ if (Array.isArray(typ))
244
+ return transformEnum(typ, val);
245
+ if (typeof typ === "object") {
246
+ return typ.hasOwnProperty("unionMembers") ? transformUnion(typ.unionMembers, val)
247
+ : typ.hasOwnProperty("arrayItems") ? transformArray(typ.arrayItems, val)
248
+ : typ.hasOwnProperty("props") ? transformObject(getProps(typ), typ.additional, val)
249
+ : invalidValue(typ, val, key, parent);
250
+ }
251
+ // Numbers can be parsed by Date but shouldn't be.
252
+ if (typ === Date && typeof val !== "number")
253
+ return transformDate(val);
254
+ return transformPrimitive(typ, val);
255
+ }
256
+ function cast(val, typ) {
257
+ return transform(val, typ, jsonToJSProps);
258
+ }
259
+ function uncast(val, typ) {
260
+ return transform(val, typ, jsToJSONProps);
261
+ }
262
+ function l(typ) {
263
+ return { literal: typ };
264
+ }
265
+ function a(typ) {
266
+ return { arrayItems: typ };
267
+ }
268
+ function u(...typs) {
269
+ return { unionMembers: typs };
270
+ }
271
+ function o(props, additional) {
272
+ return { props, additional };
273
+ }
274
+ function m(additional) {
275
+ return { props: [], additional };
276
+ }
277
+ function r(name) {
278
+ return { ref: name };
279
+ }
280
+ const typeMap = {
281
+ "SecretLintOutput": o([
282
+ { json: "$schema", js: "$schema", typ: u(undefined, "") },
283
+ { json: "inlineExternalProperties", js: "inlineExternalProperties", typ: u(undefined, a(r("ExternalProperties"))) },
284
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
285
+ { json: "runs", js: "runs", typ: a(r("Run")) },
286
+ { json: "version", js: "version", typ: r("Version") },
287
+ ], false),
288
+ "ExternalProperties": o([
289
+ { json: "addresses", js: "addresses", typ: u(undefined, a(r("Address"))) },
290
+ { json: "artifacts", js: "artifacts", typ: u(undefined, a(r("Artifact"))) },
291
+ { json: "conversion", js: "conversion", typ: u(undefined, r("Conversion")) },
292
+ { json: "driver", js: "driver", typ: u(undefined, r("ToolComponent")) },
293
+ { json: "extensions", js: "extensions", typ: u(undefined, a(r("ToolComponent"))) },
294
+ { json: "externalizedProperties", js: "externalizedProperties", typ: u(undefined, r("PropertyBag")) },
295
+ { json: "graphs", js: "graphs", typ: u(undefined, a(r("Graph"))) },
296
+ { json: "guid", js: "guid", typ: u(undefined, "") },
297
+ { json: "invocations", js: "invocations", typ: u(undefined, a(r("Invocation"))) },
298
+ { json: "logicalLocations", js: "logicalLocations", typ: u(undefined, a(r("LogicalLocation"))) },
299
+ { json: "policies", js: "policies", typ: u(undefined, a(r("ToolComponent"))) },
300
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
301
+ { json: "results", js: "results", typ: u(undefined, a(r("Result"))) },
302
+ { json: "runGuid", js: "runGuid", typ: u(undefined, "") },
303
+ { json: "schema", js: "schema", typ: u(undefined, "") },
304
+ { json: "taxonomies", js: "taxonomies", typ: u(undefined, a(r("ToolComponent"))) },
305
+ { json: "threadFlowLocations", js: "threadFlowLocations", typ: u(undefined, a(r("ThreadFlowLocation"))) },
306
+ { json: "translations", js: "translations", typ: u(undefined, a(r("ToolComponent"))) },
307
+ { json: "version", js: "version", typ: u(undefined, r("Version")) },
308
+ { json: "webRequests", js: "webRequests", typ: u(undefined, a(r("WebRequest"))) },
309
+ { json: "webResponses", js: "webResponses", typ: u(undefined, a(r("WebResponse"))) },
310
+ ], false),
311
+ "Address": o([
312
+ { json: "absoluteAddress", js: "absoluteAddress", typ: u(undefined, 0) },
313
+ { json: "fullyQualifiedName", js: "fullyQualifiedName", typ: u(undefined, "") },
314
+ { json: "index", js: "index", typ: u(undefined, 0) },
315
+ { json: "kind", js: "kind", typ: u(undefined, "") },
316
+ { json: "length", js: "length", typ: u(undefined, 0) },
317
+ { json: "name", js: "name", typ: u(undefined, "") },
318
+ { json: "offsetFromParent", js: "offsetFromParent", typ: u(undefined, 0) },
319
+ { json: "parentIndex", js: "parentIndex", typ: u(undefined, 0) },
320
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
321
+ { json: "relativeAddress", js: "relativeAddress", typ: u(undefined, 0) },
322
+ ], false),
323
+ "PropertyBag": o([
324
+ { json: "tags", js: "tags", typ: u(undefined, a("")) },
325
+ ], "any"),
326
+ "Artifact": o([
327
+ { json: "contents", js: "contents", typ: u(undefined, r("ArtifactContent")) },
328
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
329
+ { json: "encoding", js: "encoding", typ: u(undefined, "") },
330
+ { json: "hashes", js: "hashes", typ: u(undefined, m("")) },
331
+ { json: "lastModifiedTimeUtc", js: "lastModifiedTimeUtc", typ: u(undefined, Date) },
332
+ { json: "length", js: "length", typ: u(undefined, 0) },
333
+ { json: "location", js: "location", typ: u(undefined, r("ArtifactLocation")) },
334
+ { json: "mimeType", js: "mimeType", typ: u(undefined, "") },
335
+ { json: "offset", js: "offset", typ: u(undefined, 0) },
336
+ { json: "parentIndex", js: "parentIndex", typ: u(undefined, 0) },
337
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
338
+ { json: "roles", js: "roles", typ: u(undefined, a(r("Role"))) },
339
+ { json: "sourceLanguage", js: "sourceLanguage", typ: u(undefined, "") },
340
+ ], false),
341
+ "ArtifactContent": o([
342
+ { json: "binary", js: "binary", typ: u(undefined, "") },
343
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
344
+ { json: "rendered", js: "rendered", typ: u(undefined, r("MultiformatMessageString")) },
345
+ { json: "text", js: "text", typ: u(undefined, "") },
346
+ ], false),
347
+ "MultiformatMessageString": o([
348
+ { json: "markdown", js: "markdown", typ: u(undefined, "") },
349
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
350
+ { json: "text", js: "text", typ: "" },
351
+ ], false),
352
+ "Message": o([
353
+ { json: "arguments", js: "arguments", typ: u(undefined, a("")) },
354
+ { json: "id", js: "id", typ: u(undefined, "") },
355
+ { json: "markdown", js: "markdown", typ: u(undefined, "") },
356
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
357
+ { json: "text", js: "text", typ: u(undefined, "") },
358
+ ], false),
359
+ "ArtifactLocation": o([
360
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
361
+ { json: "index", js: "index", typ: u(undefined, 0) },
362
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
363
+ { json: "uri", js: "uri", typ: u(undefined, "") },
364
+ { json: "uriBaseId", js: "uriBaseId", typ: u(undefined, "") },
365
+ ], false),
366
+ "Conversion": o([
367
+ { json: "analysisToolLogFiles", js: "analysisToolLogFiles", typ: u(undefined, a(r("ArtifactLocation"))) },
368
+ { json: "invocation", js: "invocation", typ: u(undefined, r("Invocation")) },
369
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
370
+ { json: "tool", js: "tool", typ: r("Tool") },
371
+ ], false),
372
+ "Invocation": o([
373
+ { json: "account", js: "account", typ: u(undefined, "") },
374
+ { json: "arguments", js: "arguments", typ: u(undefined, a("")) },
375
+ { json: "commandLine", js: "commandLine", typ: u(undefined, "") },
376
+ { json: "endTimeUtc", js: "endTimeUtc", typ: u(undefined, Date) },
377
+ { json: "environmentVariables", js: "environmentVariables", typ: u(undefined, m("")) },
378
+ { json: "executableLocation", js: "executableLocation", typ: u(undefined, r("ArtifactLocation")) },
379
+ { json: "executionSuccessful", js: "executionSuccessful", typ: true },
380
+ { json: "exitCode", js: "exitCode", typ: u(undefined, 0) },
381
+ { json: "exitCodeDescription", js: "exitCodeDescription", typ: u(undefined, "") },
382
+ { json: "exitSignalName", js: "exitSignalName", typ: u(undefined, "") },
383
+ { json: "exitSignalNumber", js: "exitSignalNumber", typ: u(undefined, 0) },
384
+ { json: "machine", js: "machine", typ: u(undefined, "") },
385
+ { json: "notificationConfigurationOverrides", js: "notificationConfigurationOverrides", typ: u(undefined, a(r("ConfigurationOverride"))) },
386
+ { json: "processId", js: "processId", typ: u(undefined, 0) },
387
+ { json: "processStartFailureMessage", js: "processStartFailureMessage", typ: u(undefined, "") },
388
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
389
+ { json: "responseFiles", js: "responseFiles", typ: u(undefined, a(r("ArtifactLocation"))) },
390
+ { json: "ruleConfigurationOverrides", js: "ruleConfigurationOverrides", typ: u(undefined, a(r("ConfigurationOverride"))) },
391
+ { json: "startTimeUtc", js: "startTimeUtc", typ: u(undefined, Date) },
392
+ { json: "stderr", js: "stderr", typ: u(undefined, r("ArtifactLocation")) },
393
+ { json: "stdin", js: "stdin", typ: u(undefined, r("ArtifactLocation")) },
394
+ { json: "stdout", js: "stdout", typ: u(undefined, r("ArtifactLocation")) },
395
+ { json: "stdoutStderr", js: "stdoutStderr", typ: u(undefined, r("ArtifactLocation")) },
396
+ { json: "toolConfigurationNotifications", js: "toolConfigurationNotifications", typ: u(undefined, a(r("Notification"))) },
397
+ { json: "toolExecutionNotifications", js: "toolExecutionNotifications", typ: u(undefined, a(r("Notification"))) },
398
+ { json: "workingDirectory", js: "workingDirectory", typ: u(undefined, r("ArtifactLocation")) },
399
+ ], false),
400
+ "ConfigurationOverride": o([
401
+ { json: "configuration", js: "configuration", typ: r("ReportingConfiguration") },
402
+ { json: "descriptor", js: "descriptor", typ: r("ReportingDescriptorReference") },
403
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
404
+ ], false),
405
+ "ReportingConfiguration": o([
406
+ { json: "enabled", js: "enabled", typ: u(undefined, true) },
407
+ { json: "level", js: "level", typ: u(undefined, r("Level")) },
408
+ { json: "parameters", js: "parameters", typ: u(undefined, r("PropertyBag")) },
409
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
410
+ { json: "rank", js: "rank", typ: u(undefined, 3.14) },
411
+ ], false),
412
+ "ReportingDescriptorReference": o([
413
+ { json: "guid", js: "guid", typ: u(undefined, "") },
414
+ { json: "id", js: "id", typ: u(undefined, "") },
415
+ { json: "index", js: "index", typ: u(undefined, 0) },
416
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
417
+ { json: "toolComponent", js: "toolComponent", typ: u(undefined, r("ToolComponentReference")) },
418
+ ], false),
419
+ "ToolComponentReference": o([
420
+ { json: "guid", js: "guid", typ: u(undefined, "") },
421
+ { json: "index", js: "index", typ: u(undefined, 0) },
422
+ { json: "name", js: "name", typ: u(undefined, "") },
423
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
424
+ ], false),
425
+ "Notification": o([
426
+ { json: "associatedRule", js: "associatedRule", typ: u(undefined, r("ReportingDescriptorReference")) },
427
+ { json: "descriptor", js: "descriptor", typ: u(undefined, r("ReportingDescriptorReference")) },
428
+ { json: "exception", js: "exception", typ: u(undefined, r("Exception")) },
429
+ { json: "level", js: "level", typ: u(undefined, r("Level")) },
430
+ { json: "locations", js: "locations", typ: u(undefined, a(r("Location"))) },
431
+ { json: "message", js: "message", typ: r("Message") },
432
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
433
+ { json: "threadId", js: "threadId", typ: u(undefined, 0) },
434
+ { json: "timeUtc", js: "timeUtc", typ: u(undefined, Date) },
435
+ ], false),
436
+ "Exception": o([
437
+ { json: "innerExceptions", js: "innerExceptions", typ: u(undefined, a(r("Exception"))) },
438
+ { json: "kind", js: "kind", typ: u(undefined, "") },
439
+ { json: "message", js: "message", typ: u(undefined, "") },
440
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
441
+ { json: "stack", js: "stack", typ: u(undefined, r("Stack")) },
442
+ ], false),
443
+ "Stack": o([
444
+ { json: "frames", js: "frames", typ: a(r("StackFrame")) },
445
+ { json: "message", js: "message", typ: u(undefined, r("Message")) },
446
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
447
+ ], false),
448
+ "StackFrame": o([
449
+ { json: "location", js: "location", typ: u(undefined, r("Location")) },
450
+ { json: "module", js: "module", typ: u(undefined, "") },
451
+ { json: "parameters", js: "parameters", typ: u(undefined, a("")) },
452
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
453
+ { json: "threadId", js: "threadId", typ: u(undefined, 0) },
454
+ ], false),
455
+ "Location": o([
456
+ { json: "annotations", js: "annotations", typ: u(undefined, a(r("Region"))) },
457
+ { json: "id", js: "id", typ: u(undefined, 0) },
458
+ { json: "logicalLocations", js: "logicalLocations", typ: u(undefined, a(r("LogicalLocation"))) },
459
+ { json: "message", js: "message", typ: u(undefined, r("Message")) },
460
+ { json: "physicalLocation", js: "physicalLocation", typ: u(undefined, r("PhysicalLocation")) },
461
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
462
+ { json: "relationships", js: "relationships", typ: u(undefined, a(r("LocationRelationship"))) },
463
+ ], false),
464
+ "Region": o([
465
+ { json: "byteLength", js: "byteLength", typ: u(undefined, 0) },
466
+ { json: "byteOffset", js: "byteOffset", typ: u(undefined, 0) },
467
+ { json: "charLength", js: "charLength", typ: u(undefined, 0) },
468
+ { json: "charOffset", js: "charOffset", typ: u(undefined, 0) },
469
+ { json: "endColumn", js: "endColumn", typ: u(undefined, 0) },
470
+ { json: "endLine", js: "endLine", typ: u(undefined, 0) },
471
+ { json: "message", js: "message", typ: u(undefined, r("Message")) },
472
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
473
+ { json: "snippet", js: "snippet", typ: u(undefined, r("ArtifactContent")) },
474
+ { json: "sourceLanguage", js: "sourceLanguage", typ: u(undefined, "") },
475
+ { json: "startColumn", js: "startColumn", typ: u(undefined, 0) },
476
+ { json: "startLine", js: "startLine", typ: u(undefined, 0) },
477
+ ], false),
478
+ "LogicalLocation": o([
479
+ { json: "decoratedName", js: "decoratedName", typ: u(undefined, "") },
480
+ { json: "fullyQualifiedName", js: "fullyQualifiedName", typ: u(undefined, "") },
481
+ { json: "index", js: "index", typ: u(undefined, 0) },
482
+ { json: "kind", js: "kind", typ: u(undefined, "") },
483
+ { json: "name", js: "name", typ: u(undefined, "") },
484
+ { json: "parentIndex", js: "parentIndex", typ: u(undefined, 0) },
485
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
486
+ ], false),
487
+ "PhysicalLocation": o([
488
+ { json: "address", js: "address", typ: u(undefined, r("Address")) },
489
+ { json: "artifactLocation", js: "artifactLocation", typ: u(undefined, r("ArtifactLocation")) },
490
+ { json: "contextRegion", js: "contextRegion", typ: u(undefined, r("Region")) },
491
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
492
+ { json: "region", js: "region", typ: u(undefined, r("Region")) },
493
+ ], false),
494
+ "LocationRelationship": o([
495
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
496
+ { json: "kinds", js: "kinds", typ: u(undefined, a("")) },
497
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
498
+ { json: "target", js: "target", typ: 0 },
499
+ ], false),
500
+ "Tool": o([
501
+ { json: "driver", js: "driver", typ: r("ToolComponent") },
502
+ { json: "extensions", js: "extensions", typ: u(undefined, a(r("ToolComponent"))) },
503
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
504
+ ], false),
505
+ "ToolComponent": o([
506
+ { json: "associatedComponent", js: "associatedComponent", typ: u(undefined, r("ToolComponentReference")) },
507
+ { json: "contents", js: "contents", typ: u(undefined, a(r("Content"))) },
508
+ { json: "dottedQuadFileVersion", js: "dottedQuadFileVersion", typ: u(undefined, "") },
509
+ { json: "downloadUri", js: "downloadUri", typ: u(undefined, "") },
510
+ { json: "fullDescription", js: "fullDescription", typ: u(undefined, r("MultiformatMessageString")) },
511
+ { json: "fullName", js: "fullName", typ: u(undefined, "") },
512
+ { json: "globalMessageStrings", js: "globalMessageStrings", typ: u(undefined, m(r("MultiformatMessageString"))) },
513
+ { json: "guid", js: "guid", typ: u(undefined, "") },
514
+ { json: "informationUri", js: "informationUri", typ: u(undefined, "") },
515
+ { json: "isComprehensive", js: "isComprehensive", typ: u(undefined, true) },
516
+ { json: "language", js: "language", typ: u(undefined, "") },
517
+ { json: "localizedDataSemanticVersion", js: "localizedDataSemanticVersion", typ: u(undefined, "") },
518
+ { json: "locations", js: "locations", typ: u(undefined, a(r("ArtifactLocation"))) },
519
+ { json: "minimumRequiredLocalizedDataSemanticVersion", js: "minimumRequiredLocalizedDataSemanticVersion", typ: u(undefined, "") },
520
+ { json: "name", js: "name", typ: "" },
521
+ { json: "notifications", js: "notifications", typ: u(undefined, a(r("ReportingDescriptor"))) },
522
+ { json: "organization", js: "organization", typ: u(undefined, "") },
523
+ { json: "product", js: "product", typ: u(undefined, "") },
524
+ { json: "productSuite", js: "productSuite", typ: u(undefined, "") },
525
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
526
+ { json: "releaseDateUtc", js: "releaseDateUtc", typ: u(undefined, "") },
527
+ { json: "rules", js: "rules", typ: u(undefined, a(r("ReportingDescriptor"))) },
528
+ { json: "semanticVersion", js: "semanticVersion", typ: u(undefined, "") },
529
+ { json: "shortDescription", js: "shortDescription", typ: u(undefined, r("MultiformatMessageString")) },
530
+ { json: "supportedTaxonomies", js: "supportedTaxonomies", typ: u(undefined, a(r("ToolComponentReference"))) },
531
+ { json: "taxa", js: "taxa", typ: u(undefined, a(r("ReportingDescriptor"))) },
532
+ { json: "translationMetadata", js: "translationMetadata", typ: u(undefined, r("TranslationMetadata")) },
533
+ { json: "version", js: "version", typ: u(undefined, "") },
534
+ ], false),
535
+ "ReportingDescriptor": o([
536
+ { json: "defaultConfiguration", js: "defaultConfiguration", typ: u(undefined, r("ReportingConfiguration")) },
537
+ { json: "deprecatedGuids", js: "deprecatedGuids", typ: u(undefined, a("")) },
538
+ { json: "deprecatedIds", js: "deprecatedIds", typ: u(undefined, a("")) },
539
+ { json: "deprecatedNames", js: "deprecatedNames", typ: u(undefined, a("")) },
540
+ { json: "fullDescription", js: "fullDescription", typ: u(undefined, r("MultiformatMessageString")) },
541
+ { json: "guid", js: "guid", typ: u(undefined, "") },
542
+ { json: "help", js: "help", typ: u(undefined, r("MultiformatMessageString")) },
543
+ { json: "helpUri", js: "helpUri", typ: u(undefined, "") },
544
+ { json: "id", js: "id", typ: "" },
545
+ { json: "messageStrings", js: "messageStrings", typ: u(undefined, m(r("MultiformatMessageString"))) },
546
+ { json: "name", js: "name", typ: u(undefined, "") },
547
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
548
+ { json: "relationships", js: "relationships", typ: u(undefined, a(r("ReportingDescriptorRelationship"))) },
549
+ { json: "shortDescription", js: "shortDescription", typ: u(undefined, r("MultiformatMessageString")) },
550
+ ], false),
551
+ "ReportingDescriptorRelationship": o([
552
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
553
+ { json: "kinds", js: "kinds", typ: u(undefined, a("")) },
554
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
555
+ { json: "target", js: "target", typ: r("ReportingDescriptorReference") },
556
+ ], false),
557
+ "TranslationMetadata": o([
558
+ { json: "downloadUri", js: "downloadUri", typ: u(undefined, "") },
559
+ { json: "fullDescription", js: "fullDescription", typ: u(undefined, r("MultiformatMessageString")) },
560
+ { json: "fullName", js: "fullName", typ: u(undefined, "") },
561
+ { json: "informationUri", js: "informationUri", typ: u(undefined, "") },
562
+ { json: "name", js: "name", typ: "" },
563
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
564
+ { json: "shortDescription", js: "shortDescription", typ: u(undefined, r("MultiformatMessageString")) },
565
+ ], false),
566
+ "Graph": o([
567
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
568
+ { json: "edges", js: "edges", typ: u(undefined, a(r("Edge"))) },
569
+ { json: "nodes", js: "nodes", typ: u(undefined, a(r("Node"))) },
570
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
571
+ ], false),
572
+ "Edge": o([
573
+ { json: "id", js: "id", typ: "" },
574
+ { json: "label", js: "label", typ: u(undefined, r("Message")) },
575
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
576
+ { json: "sourceNodeId", js: "sourceNodeId", typ: "" },
577
+ { json: "targetNodeId", js: "targetNodeId", typ: "" },
578
+ ], false),
579
+ "Node": o([
580
+ { json: "children", js: "children", typ: u(undefined, a(r("Node"))) },
581
+ { json: "id", js: "id", typ: "" },
582
+ { json: "label", js: "label", typ: u(undefined, r("Message")) },
583
+ { json: "location", js: "location", typ: u(undefined, r("Location")) },
584
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
585
+ ], false),
586
+ "Result": o([
587
+ { json: "analysisTarget", js: "analysisTarget", typ: u(undefined, r("ArtifactLocation")) },
588
+ { json: "attachments", js: "attachments", typ: u(undefined, a(r("Attachment"))) },
589
+ { json: "baselineState", js: "baselineState", typ: u(undefined, r("BaselineState")) },
590
+ { json: "codeFlows", js: "codeFlows", typ: u(undefined, a(r("CodeFlow"))) },
591
+ { json: "correlationGuid", js: "correlationGuid", typ: u(undefined, "") },
592
+ { json: "fingerprints", js: "fingerprints", typ: u(undefined, m("")) },
593
+ { json: "fixes", js: "fixes", typ: u(undefined, a(r("Fix"))) },
594
+ { json: "graphs", js: "graphs", typ: u(undefined, a(r("Graph"))) },
595
+ { json: "graphTraversals", js: "graphTraversals", typ: u(undefined, a(r("GraphTraversal"))) },
596
+ { json: "guid", js: "guid", typ: u(undefined, "") },
597
+ { json: "hostedViewerUri", js: "hostedViewerUri", typ: u(undefined, "") },
598
+ { json: "kind", js: "kind", typ: u(undefined, r("ResultKind")) },
599
+ { json: "level", js: "level", typ: u(undefined, r("Level")) },
600
+ { json: "locations", js: "locations", typ: u(undefined, a(r("Location"))) },
601
+ { json: "message", js: "message", typ: r("Message") },
602
+ { json: "occurrenceCount", js: "occurrenceCount", typ: u(undefined, 0) },
603
+ { json: "partialFingerprints", js: "partialFingerprints", typ: u(undefined, m("")) },
604
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
605
+ { json: "provenance", js: "provenance", typ: u(undefined, r("ResultProvenance")) },
606
+ { json: "rank", js: "rank", typ: u(undefined, 3.14) },
607
+ { json: "relatedLocations", js: "relatedLocations", typ: u(undefined, a(r("Location"))) },
608
+ { json: "rule", js: "rule", typ: u(undefined, r("ReportingDescriptorReference")) },
609
+ { json: "ruleId", js: "ruleId", typ: u(undefined, "") },
610
+ { json: "ruleIndex", js: "ruleIndex", typ: u(undefined, 0) },
611
+ { json: "stacks", js: "stacks", typ: u(undefined, a(r("Stack"))) },
612
+ { json: "suppressions", js: "suppressions", typ: u(undefined, a(r("Suppression"))) },
613
+ { json: "taxa", js: "taxa", typ: u(undefined, a(r("ReportingDescriptorReference"))) },
614
+ { json: "webRequest", js: "webRequest", typ: u(undefined, r("WebRequest")) },
615
+ { json: "webResponse", js: "webResponse", typ: u(undefined, r("WebResponse")) },
616
+ { json: "workItemUris", js: "workItemUris", typ: u(undefined, a("")) },
617
+ ], false),
618
+ "Attachment": o([
619
+ { json: "artifactLocation", js: "artifactLocation", typ: r("ArtifactLocation") },
620
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
621
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
622
+ { json: "rectangles", js: "rectangles", typ: u(undefined, a(r("Rectangle"))) },
623
+ { json: "regions", js: "regions", typ: u(undefined, a(r("Region"))) },
624
+ ], false),
625
+ "Rectangle": o([
626
+ { json: "bottom", js: "bottom", typ: u(undefined, 3.14) },
627
+ { json: "left", js: "left", typ: u(undefined, 3.14) },
628
+ { json: "message", js: "message", typ: u(undefined, r("Message")) },
629
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
630
+ { json: "right", js: "right", typ: u(undefined, 3.14) },
631
+ { json: "top", js: "top", typ: u(undefined, 3.14) },
632
+ ], false),
633
+ "CodeFlow": o([
634
+ { json: "message", js: "message", typ: u(undefined, r("Message")) },
635
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
636
+ { json: "threadFlows", js: "threadFlows", typ: a(r("ThreadFlow")) },
637
+ ], false),
638
+ "ThreadFlow": o([
639
+ { json: "id", js: "id", typ: u(undefined, "") },
640
+ { json: "immutableState", js: "immutableState", typ: u(undefined, m(r("MultiformatMessageString"))) },
641
+ { json: "initialState", js: "initialState", typ: u(undefined, m(r("MultiformatMessageString"))) },
642
+ { json: "locations", js: "locations", typ: a(r("ThreadFlowLocation")) },
643
+ { json: "message", js: "message", typ: u(undefined, r("Message")) },
644
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
645
+ ], false),
646
+ "ThreadFlowLocation": o([
647
+ { json: "executionOrder", js: "executionOrder", typ: u(undefined, 0) },
648
+ { json: "executionTimeUtc", js: "executionTimeUtc", typ: u(undefined, Date) },
649
+ { json: "importance", js: "importance", typ: u(undefined, r("Importance")) },
650
+ { json: "index", js: "index", typ: u(undefined, 0) },
651
+ { json: "kinds", js: "kinds", typ: u(undefined, a("")) },
652
+ { json: "location", js: "location", typ: u(undefined, r("Location")) },
653
+ { json: "module", js: "module", typ: u(undefined, "") },
654
+ { json: "nestingLevel", js: "nestingLevel", typ: u(undefined, 0) },
655
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
656
+ { json: "stack", js: "stack", typ: u(undefined, r("Stack")) },
657
+ { json: "state", js: "state", typ: u(undefined, m(r("MultiformatMessageString"))) },
658
+ { json: "taxa", js: "taxa", typ: u(undefined, a(r("ReportingDescriptorReference"))) },
659
+ { json: "webRequest", js: "webRequest", typ: u(undefined, r("WebRequest")) },
660
+ { json: "webResponse", js: "webResponse", typ: u(undefined, r("WebResponse")) },
661
+ ], false),
662
+ "WebRequest": o([
663
+ { json: "body", js: "body", typ: u(undefined, r("ArtifactContent")) },
664
+ { json: "headers", js: "headers", typ: u(undefined, m("")) },
665
+ { json: "index", js: "index", typ: u(undefined, 0) },
666
+ { json: "method", js: "method", typ: u(undefined, "") },
667
+ { json: "parameters", js: "parameters", typ: u(undefined, m("")) },
668
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
669
+ { json: "protocol", js: "protocol", typ: u(undefined, "") },
670
+ { json: "target", js: "target", typ: u(undefined, "") },
671
+ { json: "version", js: "version", typ: u(undefined, "") },
672
+ ], false),
673
+ "WebResponse": o([
674
+ { json: "body", js: "body", typ: u(undefined, r("ArtifactContent")) },
675
+ { json: "headers", js: "headers", typ: u(undefined, m("")) },
676
+ { json: "index", js: "index", typ: u(undefined, 0) },
677
+ { json: "noResponseReceived", js: "noResponseReceived", typ: u(undefined, true) },
678
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
679
+ { json: "protocol", js: "protocol", typ: u(undefined, "") },
680
+ { json: "reasonPhrase", js: "reasonPhrase", typ: u(undefined, "") },
681
+ { json: "statusCode", js: "statusCode", typ: u(undefined, 0) },
682
+ { json: "version", js: "version", typ: u(undefined, "") },
683
+ ], false),
684
+ "Fix": o([
685
+ { json: "artifactChanges", js: "artifactChanges", typ: a(r("ArtifactChange")) },
686
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
687
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
688
+ ], false),
689
+ "ArtifactChange": o([
690
+ { json: "artifactLocation", js: "artifactLocation", typ: r("ArtifactLocation") },
691
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
692
+ { json: "replacements", js: "replacements", typ: a(r("Replacement")) },
693
+ ], false),
694
+ "Replacement": o([
695
+ { json: "deletedRegion", js: "deletedRegion", typ: r("Region") },
696
+ { json: "insertedContent", js: "insertedContent", typ: u(undefined, r("ArtifactContent")) },
697
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
698
+ ], false),
699
+ "GraphTraversal": o([
700
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
701
+ { json: "edgeTraversals", js: "edgeTraversals", typ: u(undefined, a(r("EdgeTraversal"))) },
702
+ { json: "immutableState", js: "immutableState", typ: u(undefined, m(r("MultiformatMessageString"))) },
703
+ { json: "initialState", js: "initialState", typ: u(undefined, m(r("MultiformatMessageString"))) },
704
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
705
+ { json: "resultGraphIndex", js: "resultGraphIndex", typ: u(undefined, 0) },
706
+ { json: "runGraphIndex", js: "runGraphIndex", typ: u(undefined, 0) },
707
+ ], false),
708
+ "EdgeTraversal": o([
709
+ { json: "edgeId", js: "edgeId", typ: "" },
710
+ { json: "finalState", js: "finalState", typ: u(undefined, m(r("MultiformatMessageString"))) },
711
+ { json: "message", js: "message", typ: u(undefined, r("Message")) },
712
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
713
+ { json: "stepOverEdgeCount", js: "stepOverEdgeCount", typ: u(undefined, 0) },
714
+ ], false),
715
+ "ResultProvenance": o([
716
+ { json: "conversionSources", js: "conversionSources", typ: u(undefined, a(r("PhysicalLocation"))) },
717
+ { json: "firstDetectionRunGuid", js: "firstDetectionRunGuid", typ: u(undefined, "") },
718
+ { json: "firstDetectionTimeUtc", js: "firstDetectionTimeUtc", typ: u(undefined, Date) },
719
+ { json: "invocationIndex", js: "invocationIndex", typ: u(undefined, 0) },
720
+ { json: "lastDetectionRunGuid", js: "lastDetectionRunGuid", typ: u(undefined, "") },
721
+ { json: "lastDetectionTimeUtc", js: "lastDetectionTimeUtc", typ: u(undefined, Date) },
722
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
723
+ ], false),
724
+ "Suppression": o([
725
+ { json: "guid", js: "guid", typ: u(undefined, "") },
726
+ { json: "justification", js: "justification", typ: u(undefined, "") },
727
+ { json: "kind", js: "kind", typ: r("SuppressionKind") },
728
+ { json: "location", js: "location", typ: u(undefined, r("Location")) },
729
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
730
+ { json: "status", js: "status", typ: u(undefined, r("Status")) },
731
+ ], false),
732
+ "Run": o([
733
+ { json: "addresses", js: "addresses", typ: u(undefined, a(r("Address"))) },
734
+ { json: "artifacts", js: "artifacts", typ: u(undefined, a(r("Artifact"))) },
735
+ { json: "automationDetails", js: "automationDetails", typ: u(undefined, r("RunAutomationDetails")) },
736
+ { json: "baselineGuid", js: "baselineGuid", typ: u(undefined, "") },
737
+ { json: "columnKind", js: "columnKind", typ: u(undefined, r("ColumnKind")) },
738
+ { json: "conversion", js: "conversion", typ: u(undefined, r("Conversion")) },
739
+ { json: "defaultEncoding", js: "defaultEncoding", typ: u(undefined, "") },
740
+ { json: "defaultSourceLanguage", js: "defaultSourceLanguage", typ: u(undefined, "") },
741
+ { json: "externalPropertyFileReferences", js: "externalPropertyFileReferences", typ: u(undefined, r("ExternalPropertyFileReferences")) },
742
+ { json: "graphs", js: "graphs", typ: u(undefined, a(r("Graph"))) },
743
+ { json: "invocations", js: "invocations", typ: u(undefined, a(r("Invocation"))) },
744
+ { json: "language", js: "language", typ: u(undefined, "") },
745
+ { json: "logicalLocations", js: "logicalLocations", typ: u(undefined, a(r("LogicalLocation"))) },
746
+ { json: "newlineSequences", js: "newlineSequences", typ: u(undefined, a("")) },
747
+ { json: "originalUriBaseIds", js: "originalUriBaseIds", typ: u(undefined, m(r("ArtifactLocation"))) },
748
+ { json: "policies", js: "policies", typ: u(undefined, a(r("ToolComponent"))) },
749
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
750
+ { json: "redactionTokens", js: "redactionTokens", typ: u(undefined, a("")) },
751
+ { json: "results", js: "results", typ: u(undefined, a(r("Result"))) },
752
+ { json: "runAggregates", js: "runAggregates", typ: u(undefined, a(r("RunAutomationDetails"))) },
753
+ { json: "specialLocations", js: "specialLocations", typ: u(undefined, r("SpecialLocations")) },
754
+ { json: "taxonomies", js: "taxonomies", typ: u(undefined, a(r("ToolComponent"))) },
755
+ { json: "threadFlowLocations", js: "threadFlowLocations", typ: u(undefined, a(r("ThreadFlowLocation"))) },
756
+ { json: "tool", js: "tool", typ: r("Tool") },
757
+ { json: "translations", js: "translations", typ: u(undefined, a(r("ToolComponent"))) },
758
+ { json: "versionControlProvenance", js: "versionControlProvenance", typ: u(undefined, a(r("VersionControlDetails"))) },
759
+ { json: "webRequests", js: "webRequests", typ: u(undefined, a(r("WebRequest"))) },
760
+ { json: "webResponses", js: "webResponses", typ: u(undefined, a(r("WebResponse"))) },
761
+ ], false),
762
+ "RunAutomationDetails": o([
763
+ { json: "correlationGuid", js: "correlationGuid", typ: u(undefined, "") },
764
+ { json: "description", js: "description", typ: u(undefined, r("Message")) },
765
+ { json: "guid", js: "guid", typ: u(undefined, "") },
766
+ { json: "id", js: "id", typ: u(undefined, "") },
767
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
768
+ ], false),
769
+ "ExternalPropertyFileReferences": o([
770
+ { json: "addresses", js: "addresses", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
771
+ { json: "artifacts", js: "artifacts", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
772
+ { json: "conversion", js: "conversion", typ: u(undefined, r("ExternalPropertyFileReference")) },
773
+ { json: "driver", js: "driver", typ: u(undefined, r("ExternalPropertyFileReference")) },
774
+ { json: "extensions", js: "extensions", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
775
+ { json: "externalizedProperties", js: "externalizedProperties", typ: u(undefined, r("ExternalPropertyFileReference")) },
776
+ { json: "graphs", js: "graphs", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
777
+ { json: "invocations", js: "invocations", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
778
+ { json: "logicalLocations", js: "logicalLocations", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
779
+ { json: "policies", js: "policies", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
780
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
781
+ { json: "results", js: "results", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
782
+ { json: "taxonomies", js: "taxonomies", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
783
+ { json: "threadFlowLocations", js: "threadFlowLocations", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
784
+ { json: "translations", js: "translations", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
785
+ { json: "webRequests", js: "webRequests", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
786
+ { json: "webResponses", js: "webResponses", typ: u(undefined, a(r("ExternalPropertyFileReference"))) },
787
+ ], false),
788
+ "ExternalPropertyFileReference": o([
789
+ { json: "guid", js: "guid", typ: u(undefined, "") },
790
+ { json: "itemCount", js: "itemCount", typ: u(undefined, 0) },
791
+ { json: "location", js: "location", typ: u(undefined, r("ArtifactLocation")) },
792
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
793
+ ], false),
794
+ "SpecialLocations": o([
795
+ { json: "displayBase", js: "displayBase", typ: u(undefined, r("ArtifactLocation")) },
796
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
797
+ ], false),
798
+ "VersionControlDetails": o([
799
+ { json: "asOfTimeUtc", js: "asOfTimeUtc", typ: u(undefined, Date) },
800
+ { json: "branch", js: "branch", typ: u(undefined, "") },
801
+ { json: "mappedTo", js: "mappedTo", typ: u(undefined, r("ArtifactLocation")) },
802
+ { json: "properties", js: "properties", typ: u(undefined, r("PropertyBag")) },
803
+ { json: "repositoryUri", js: "repositoryUri", typ: "" },
804
+ { json: "revisionId", js: "revisionId", typ: u(undefined, "") },
805
+ { json: "revisionTag", js: "revisionTag", typ: u(undefined, "") },
806
+ ], false),
807
+ "Role": [
808
+ "added",
809
+ "analysisTarget",
810
+ "attachment",
811
+ "debugOutputFile",
812
+ "deleted",
813
+ "directory",
814
+ "driver",
815
+ "extension",
816
+ "memoryContents",
817
+ "modified",
818
+ "policy",
819
+ "referencedOnCommandLine",
820
+ "renamed",
821
+ "responseFile",
822
+ "resultFile",
823
+ "standardStream",
824
+ "taxonomy",
825
+ "toolSpecifiedConfiguration",
826
+ "tracedFile",
827
+ "translation",
828
+ "uncontrolled",
829
+ "unmodified",
830
+ "userSpecifiedConfiguration",
831
+ ],
832
+ "Level": [
833
+ "error",
834
+ "none",
835
+ "note",
836
+ "warning",
837
+ ],
838
+ "Content": [
839
+ "localizedData",
840
+ "nonLocalizedData",
841
+ ],
842
+ "BaselineState": [
843
+ "absent",
844
+ "new",
845
+ "unchanged",
846
+ "updated",
847
+ ],
848
+ "Importance": [
849
+ "essential",
850
+ "important",
851
+ "unimportant",
852
+ ],
853
+ "ResultKind": [
854
+ "fail",
855
+ "informational",
856
+ "notApplicable",
857
+ "open",
858
+ "pass",
859
+ "review",
860
+ ],
861
+ "SuppressionKind": [
862
+ "external",
863
+ "inSource",
864
+ ],
865
+ "Status": [
866
+ "accepted",
867
+ "rejected",
868
+ "underReview",
869
+ ],
870
+ "Version": [
871
+ "2.1.0",
872
+ ],
873
+ "ColumnKind": [
874
+ "unicodeCodePoints",
875
+ "utf16CodeUnits",
876
+ ],
877
+ };
878
+ //# sourceMappingURL=secret-lint-types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "3.3.3-4",
3
+ "version": "3.3.3-5",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,6 +39,10 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@azure/identity": "^4.1.0",
42
+ "@secretlint/node": "^9.3.2",
43
+ "@secretlint/secretlint-formatter-sarif": "^9.3.2",
44
+ "@secretlint/secretlint-rule-no-dotenv": "^9.3.2",
45
+ "@secretlint/secretlint-rule-preset-recommend": "^9.3.2",
42
46
  "@vscode/vsce-sign": "^2.0.0",
43
47
  "azure-devops-node-api": "^12.5.0",
44
48
  "chalk": "^2.4.2",
@@ -55,6 +59,7 @@
55
59
  "minimatch": "^3.0.3",
56
60
  "parse-semver": "^1.1.1",
57
61
  "read": "^1.0.7",
62
+ "secretlint": "^9.3.2",
58
63
  "semver": "^7.5.2",
59
64
  "tmp": "^0.2.3",
60
65
  "typed-rest-client": "^1.8.4",