@kubbisec/ai-linux-arm64 0.1.10 → 0.1.11

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.
Files changed (149) hide show
  1. package/bin/kubbisec +0 -0
  2. package/bundled/components/kubbisec-model-selector.d.ts +44 -0
  3. package/bundled/components/kubbisec-model-selector.d.ts.map +1 -0
  4. package/bundled/components/kubbisec-model-selector.js +197 -0
  5. package/bundled/components/kubbisec-model-selector.js.map +1 -0
  6. package/bundled/config/ensure-kubbisec-project-settings.d.ts +5 -4
  7. package/bundled/config/ensure-kubbisec-project-settings.d.ts.map +1 -1
  8. package/bundled/config/ensure-kubbisec-project-settings.js +9 -22
  9. package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -1
  10. package/bundled/config/llm-config.d.ts +3 -1
  11. package/bundled/config/llm-config.d.ts.map +1 -1
  12. package/bundled/config/llm-config.js +13 -8
  13. package/bundled/config/llm-config.js.map +1 -1
  14. package/bundled/config/materialize-kubbisec-pi-resources.d.ts +14 -8
  15. package/bundled/config/materialize-kubbisec-pi-resources.d.ts.map +1 -1
  16. package/bundled/config/materialize-kubbisec-pi-resources.js +112 -40
  17. package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -1
  18. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.d.ts +311 -0
  19. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.d.ts.map +1 -0
  20. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.js +357 -0
  21. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.js.map +1 -0
  22. package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts +2 -0
  23. package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts.map +1 -0
  24. package/bundled/node_modules/@aspm/shared/dist/ai/index.js +18 -0
  25. package/bundled/node_modules/@aspm/shared/dist/ai/index.js.map +1 -0
  26. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.d.ts +20 -0
  27. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.d.ts.map +1 -0
  28. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.js +33 -0
  29. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.js.map +1 -0
  30. package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts +2 -0
  31. package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts.map +1 -0
  32. package/bundled/node_modules/@aspm/shared/dist/assistant/index.js +18 -0
  33. package/bundled/node_modules/@aspm/shared/dist/assistant/index.js.map +1 -0
  34. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.d.ts +18 -0
  35. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.d.ts.map +1 -0
  36. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.js +92 -0
  37. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.js.map +1 -0
  38. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.d.ts +25 -0
  39. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.d.ts.map +1 -0
  40. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.js +85 -0
  41. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.js.map +1 -0
  42. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.d.ts +14 -0
  43. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.d.ts.map +1 -0
  44. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.js +64 -0
  45. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.js.map +1 -0
  46. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.d.ts +18 -0
  47. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.d.ts.map +1 -0
  48. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.js +124 -0
  49. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.js.map +1 -0
  50. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.d.ts +65 -0
  51. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.d.ts.map +1 -0
  52. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.js +359 -0
  53. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.js.map +1 -0
  54. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts +26 -0
  55. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts.map +1 -0
  56. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js +139 -0
  57. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js.map +1 -0
  58. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.d.ts +8 -0
  59. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.d.ts.map +1 -0
  60. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.js +51 -0
  61. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.js.map +1 -0
  62. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.d.ts +34 -0
  63. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.d.ts.map +1 -0
  64. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.js +186 -0
  65. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.js.map +1 -0
  66. package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts +13 -0
  67. package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts.map +1 -0
  68. package/bundled/node_modules/@aspm/shared/dist/dto/index.js +41 -0
  69. package/bundled/node_modules/@aspm/shared/dist/dto/index.js.map +1 -0
  70. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.d.ts +203 -0
  71. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.d.ts.map +1 -0
  72. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.js +42 -0
  73. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.js.map +1 -0
  74. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.d.ts +7 -0
  75. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.d.ts.map +1 -0
  76. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.js +47 -0
  77. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.js.map +1 -0
  78. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.d.ts +6 -0
  79. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.d.ts.map +1 -0
  80. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.js +36 -0
  81. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.js.map +1 -0
  82. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.d.ts +9 -0
  83. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.d.ts.map +1 -0
  84. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.js +58 -0
  85. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.js.map +1 -0
  86. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.d.ts +6 -0
  87. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.d.ts.map +1 -0
  88. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.js +30 -0
  89. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.js.map +1 -0
  90. package/bundled/node_modules/@aspm/shared/dist/enums.d.ts +86 -0
  91. package/bundled/node_modules/@aspm/shared/dist/enums.d.ts.map +1 -0
  92. package/bundled/node_modules/@aspm/shared/dist/enums.js +132 -0
  93. package/bundled/node_modules/@aspm/shared/dist/enums.js.map +1 -0
  94. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.d.ts +6 -0
  95. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.d.ts.map +1 -0
  96. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.js +9 -0
  97. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.js.map +1 -0
  98. package/bundled/node_modules/@aspm/shared/dist/index.d.ts +12 -0
  99. package/bundled/node_modules/@aspm/shared/dist/index.d.ts.map +1 -0
  100. package/bundled/node_modules/@aspm/shared/dist/index.js +28 -0
  101. package/bundled/node_modules/@aspm/shared/dist/index.js.map +1 -0
  102. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.d.ts +23 -0
  103. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.d.ts.map +1 -0
  104. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.js +54 -0
  105. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.js.map +1 -0
  106. package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts +7 -0
  107. package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts.map +1 -0
  108. package/bundled/node_modules/@aspm/shared/dist/rbac/index.js +23 -0
  109. package/bundled/node_modules/@aspm/shared/dist/rbac/index.js.map +1 -0
  110. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts +9 -0
  111. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map +1 -0
  112. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js +91 -0
  113. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js.map +1 -0
  114. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts +12 -0
  115. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts.map +1 -0
  116. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js +86 -0
  117. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js.map +1 -0
  118. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.d.ts +14 -0
  119. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.d.ts.map +1 -0
  120. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.js +52 -0
  121. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.js.map +1 -0
  122. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts +10 -0
  123. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts.map +1 -0
  124. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js +199 -0
  125. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js.map +1 -0
  126. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.d.ts +7 -0
  127. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.d.ts.map +1 -0
  128. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.js +23 -0
  129. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.js.map +1 -0
  130. package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts +13 -0
  131. package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts.map +1 -0
  132. package/bundled/node_modules/@aspm/shared/dist/redaction.js +249 -0
  133. package/bundled/node_modules/@aspm/shared/dist/redaction.js.map +1 -0
  134. package/bundled/node_modules/@aspm/shared/dist/severity-map.d.ts +8 -0
  135. package/bundled/node_modules/@aspm/shared/dist/severity-map.d.ts.map +1 -0
  136. package/bundled/node_modules/@aspm/shared/dist/severity-map.js +47 -0
  137. package/bundled/node_modules/@aspm/shared/dist/severity-map.js.map +1 -0
  138. package/bundled/node_modules/@aspm/shared/dist/sort-findings.d.ts +16 -0
  139. package/bundled/node_modules/@aspm/shared/dist/sort-findings.d.ts.map +1 -0
  140. package/bundled/node_modules/@aspm/shared/dist/sort-findings.js +67 -0
  141. package/bundled/node_modules/@aspm/shared/dist/sort-findings.js.map +1 -0
  142. package/bundled/node_modules/@aspm/shared/package.json +39 -0
  143. package/bundled/resolve-bundled-dist-root.js +9 -5
  144. package/bundled/resolve-bundled-dist-root.js.map +1 -1
  145. package/bundled/workflow/session-workflow-mode.d.ts +10 -0
  146. package/bundled/workflow/session-workflow-mode.d.ts.map +1 -0
  147. package/bundled/workflow/session-workflow-mode.js +51 -0
  148. package/bundled/workflow/session-workflow-mode.js.map +1 -0
  149. package/package.json +1 -1
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateVulnerabilityDto = exports.EnterpriseVulnerabilityDataDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const enums_1 = require("../enums");
15
+ /**
16
+ * Enterprise risk scoring fields for vulnerability
17
+ */
18
+ class EnterpriseVulnerabilityDataDto {
19
+ cveId;
20
+ cvssScore;
21
+ cvssVector;
22
+ cvssVersion;
23
+ epssScore;
24
+ epssPercentile;
25
+ cweId;
26
+ cweName;
27
+ exposureLevel;
28
+ exposureDetails;
29
+ }
30
+ exports.EnterpriseVulnerabilityDataDto = EnterpriseVulnerabilityDataDto;
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.MaxLength)(20),
35
+ __metadata("design:type", String)
36
+ ], EnterpriseVulnerabilityDataDto.prototype, "cveId", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNumber)(),
39
+ (0, class_validator_1.IsOptional)(),
40
+ __metadata("design:type", Number)
41
+ ], EnterpriseVulnerabilityDataDto.prototype, "cvssScore", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsString)(),
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.MaxLength)(255),
46
+ __metadata("design:type", String)
47
+ ], EnterpriseVulnerabilityDataDto.prototype, "cvssVector", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsString)(),
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.MaxLength)(10),
52
+ __metadata("design:type", String)
53
+ ], EnterpriseVulnerabilityDataDto.prototype, "cvssVersion", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsNumber)(),
56
+ (0, class_validator_1.IsOptional)(),
57
+ __metadata("design:type", Number)
58
+ ], EnterpriseVulnerabilityDataDto.prototype, "epssScore", void 0);
59
+ __decorate([
60
+ (0, class_validator_1.IsNumber)(),
61
+ (0, class_validator_1.IsOptional)(),
62
+ __metadata("design:type", Number)
63
+ ], EnterpriseVulnerabilityDataDto.prototype, "epssPercentile", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsString)(),
66
+ (0, class_validator_1.IsOptional)(),
67
+ (0, class_validator_1.MaxLength)(20),
68
+ __metadata("design:type", String)
69
+ ], EnterpriseVulnerabilityDataDto.prototype, "cweId", void 0);
70
+ __decorate([
71
+ (0, class_validator_1.IsString)(),
72
+ (0, class_validator_1.IsOptional)(),
73
+ (0, class_validator_1.MaxLength)(500),
74
+ __metadata("design:type", String)
75
+ ], EnterpriseVulnerabilityDataDto.prototype, "cweName", void 0);
76
+ __decorate([
77
+ (0, class_validator_1.IsString)(),
78
+ (0, class_validator_1.IsOptional)(),
79
+ (0, class_validator_1.MaxLength)(30),
80
+ __metadata("design:type", String)
81
+ ], EnterpriseVulnerabilityDataDto.prototype, "exposureLevel", void 0);
82
+ __decorate([
83
+ (0, class_validator_1.IsObject)(),
84
+ (0, class_validator_1.IsOptional)(),
85
+ __metadata("design:type", Object)
86
+ ], EnterpriseVulnerabilityDataDto.prototype, "exposureDetails", void 0);
87
+ class CreateVulnerabilityDto {
88
+ sourceId;
89
+ title;
90
+ description;
91
+ severity;
92
+ findingType;
93
+ category;
94
+ affectedComponent;
95
+ affectedVersion;
96
+ fixedVersion;
97
+ location;
98
+ recommendation;
99
+ references;
100
+ rawData;
101
+ status;
102
+ enterprise;
103
+ }
104
+ exports.CreateVulnerabilityDto = CreateVulnerabilityDto;
105
+ __decorate([
106
+ (0, class_validator_1.IsString)(),
107
+ (0, class_validator_1.IsOptional)(),
108
+ (0, class_validator_1.MaxLength)(100),
109
+ __metadata("design:type", String)
110
+ ], CreateVulnerabilityDto.prototype, "sourceId", void 0);
111
+ __decorate([
112
+ (0, class_validator_1.IsString)(),
113
+ (0, class_validator_1.IsNotEmpty)(),
114
+ (0, class_validator_1.MaxLength)(500),
115
+ __metadata("design:type", String)
116
+ ], CreateVulnerabilityDto.prototype, "title", void 0);
117
+ __decorate([
118
+ (0, class_validator_1.IsString)(),
119
+ (0, class_validator_1.IsOptional)(),
120
+ __metadata("design:type", String)
121
+ ], CreateVulnerabilityDto.prototype, "description", void 0);
122
+ __decorate([
123
+ (0, class_validator_1.IsEnum)(enums_1.Severity),
124
+ __metadata("design:type", String)
125
+ ], CreateVulnerabilityDto.prototype, "severity", void 0);
126
+ __decorate([
127
+ (0, class_validator_1.IsEnum)(enums_1.FindingType),
128
+ (0, class_validator_1.IsOptional)(),
129
+ __metadata("design:type", String)
130
+ ], CreateVulnerabilityDto.prototype, "findingType", void 0);
131
+ __decorate([
132
+ (0, class_validator_1.IsString)(),
133
+ (0, class_validator_1.IsOptional)(),
134
+ (0, class_validator_1.MaxLength)(100),
135
+ __metadata("design:type", String)
136
+ ], CreateVulnerabilityDto.prototype, "category", void 0);
137
+ __decorate([
138
+ (0, class_validator_1.IsString)(),
139
+ (0, class_validator_1.IsOptional)(),
140
+ (0, class_validator_1.MaxLength)(500),
141
+ __metadata("design:type", String)
142
+ ], CreateVulnerabilityDto.prototype, "affectedComponent", void 0);
143
+ __decorate([
144
+ (0, class_validator_1.IsString)(),
145
+ (0, class_validator_1.IsOptional)(),
146
+ (0, class_validator_1.MaxLength)(100),
147
+ __metadata("design:type", String)
148
+ ], CreateVulnerabilityDto.prototype, "affectedVersion", void 0);
149
+ __decorate([
150
+ (0, class_validator_1.IsString)(),
151
+ (0, class_validator_1.IsOptional)(),
152
+ (0, class_validator_1.MaxLength)(100),
153
+ __metadata("design:type", String)
154
+ ], CreateVulnerabilityDto.prototype, "fixedVersion", void 0);
155
+ __decorate([
156
+ (0, class_validator_1.IsString)(),
157
+ (0, class_validator_1.IsOptional)(),
158
+ (0, class_validator_1.MaxLength)(1000),
159
+ __metadata("design:type", String)
160
+ ], CreateVulnerabilityDto.prototype, "location", void 0);
161
+ __decorate([
162
+ (0, class_validator_1.IsString)(),
163
+ (0, class_validator_1.IsOptional)(),
164
+ __metadata("design:type", String)
165
+ ], CreateVulnerabilityDto.prototype, "recommendation", void 0);
166
+ __decorate([
167
+ (0, class_validator_1.IsArray)(),
168
+ (0, class_validator_1.IsString)({ each: true }),
169
+ (0, class_validator_1.IsOptional)(),
170
+ __metadata("design:type", Array)
171
+ ], CreateVulnerabilityDto.prototype, "references", void 0);
172
+ __decorate([
173
+ (0, class_validator_1.IsObject)(),
174
+ (0, class_validator_1.IsOptional)(),
175
+ __metadata("design:type", Object)
176
+ ], CreateVulnerabilityDto.prototype, "rawData", void 0);
177
+ __decorate([
178
+ (0, class_validator_1.IsEnum)(enums_1.VulnerabilityStatus),
179
+ (0, class_validator_1.IsOptional)(),
180
+ __metadata("design:type", String)
181
+ ], CreateVulnerabilityDto.prototype, "status", void 0);
182
+ __decorate([
183
+ (0, class_validator_1.IsOptional)(),
184
+ __metadata("design:type", EnterpriseVulnerabilityDataDto)
185
+ ], CreateVulnerabilityDto.prototype, "enterprise", void 0);
186
+ //# sourceMappingURL=create-vulnerability.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-vulnerability.dto.js","sourceRoot":"","sources":["../../src/dto/create-vulnerability.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAWyB;AACzB,oCAAsE;AAEtE;;GAEG;AACH,MAAa,8BAA8B;IAIzC,KAAK,CAAU;IAIf,SAAS,CAAU;IAKnB,UAAU,CAAU;IAKpB,WAAW,CAAU;IAIrB,SAAS,CAAU;IAInB,cAAc,CAAU;IAKxB,KAAK,CAAU;IAKf,OAAO,CAAU;IAKjB,aAAa,CAA2D;IAIxE,eAAe,CAA2B;CAC3C;AA9CD,wEA8CC;AA1CC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;6DACC;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACM;AAKnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;kEACK;AAKpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;mEACO;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACW;AAKxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;6DACC;AAKf;IAHC,IAAA,0BAA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V,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;+DACU;AAKzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;4DACO;AAKtB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,IAAI,CAAC;;wDACE;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACW;AAKxB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;0DACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACqB;AAIlC;IAFC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;sDACgB;AAG7B;IADC,IAAA,4BAAU,GAAE;8BACA,8BAA8B;0DAAC"}
@@ -0,0 +1,13 @@
1
+ export { BULK_IMPORT_GITHUB_PROJECTS_MAX, BulkImportGithubProjectRowDto, BulkImportGithubProjectsDto, } from "./bulk-import-github-projects.dto";
2
+ export { CreateBundleReportDto } from "./create-bundle-report.dto";
3
+ export { CreateCoverageReportDto } from "./create-coverage-report.dto";
4
+ export { ASSET_CI_PROVIDERS, ASSET_CRITICALITIES, ASSET_ENVIRONMENTS, ASSET_EXPOSURES, ASSET_POLICY_LEVELS, ASSET_TYPES, CreateProjectDto, type AssetCiProvider, type AssetCriticality, type AssetEnvironment, type AssetExposure, type AssetPolicyLevel, type AssetType, } from "./create-project.dto";
5
+ export { CreateReportDto, ExecutionContextDto } from "./create-report.dto";
6
+ export { CreateScanTargetDto } from "./create-scan-target.dto";
7
+ export { CreateVulnerabilityDto, EnterpriseVulnerabilityDataDto, } from "./create-vulnerability.dto";
8
+ export { CreateUploadSessionDto, ErrorCategory, GetProductMetricsQuery, GetQueueMetricsQuery, GetUploadSessionsMetricsQuery, IngestionQueueName, NormalizedError, OperationalLimitsDto, PlanLimitsDto, PlanType, ProductMetricsDto, QueueMetricsDto, TechnologyMetricsDto, UploadSessionMetricsDto, UploadSessionStatus, } from "./metrics.dto";
9
+ export { UpdateCoverageGateDto } from "./update-coverage-gate.dto";
10
+ export { UpdatePerformanceGateDto } from "./update-performance-gate.dto";
11
+ export { UpdateSecurityGateDto } from "./update-security-gate.dto";
12
+ export { UpdateVulnerabilityDto } from "./update-vulnerability.dto";
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,SAAS,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,6BAA6B,EAC7B,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateVulnerabilityDto = exports.UpdateSecurityGateDto = exports.UpdatePerformanceGateDto = exports.UpdateCoverageGateDto = exports.UploadSessionStatus = exports.PlanType = exports.IngestionQueueName = exports.ErrorCategory = exports.EnterpriseVulnerabilityDataDto = exports.CreateVulnerabilityDto = exports.CreateScanTargetDto = exports.ExecutionContextDto = exports.CreateReportDto = exports.CreateProjectDto = exports.ASSET_TYPES = exports.ASSET_POLICY_LEVELS = exports.ASSET_EXPOSURES = exports.ASSET_ENVIRONMENTS = exports.ASSET_CRITICALITIES = exports.ASSET_CI_PROVIDERS = exports.CreateCoverageReportDto = exports.CreateBundleReportDto = exports.BulkImportGithubProjectsDto = exports.BulkImportGithubProjectRowDto = exports.BULK_IMPORT_GITHUB_PROJECTS_MAX = void 0;
4
+ var bulk_import_github_projects_dto_1 = require("./bulk-import-github-projects.dto");
5
+ Object.defineProperty(exports, "BULK_IMPORT_GITHUB_PROJECTS_MAX", { enumerable: true, get: function () { return bulk_import_github_projects_dto_1.BULK_IMPORT_GITHUB_PROJECTS_MAX; } });
6
+ Object.defineProperty(exports, "BulkImportGithubProjectRowDto", { enumerable: true, get: function () { return bulk_import_github_projects_dto_1.BulkImportGithubProjectRowDto; } });
7
+ Object.defineProperty(exports, "BulkImportGithubProjectsDto", { enumerable: true, get: function () { return bulk_import_github_projects_dto_1.BulkImportGithubProjectsDto; } });
8
+ var create_bundle_report_dto_1 = require("./create-bundle-report.dto");
9
+ Object.defineProperty(exports, "CreateBundleReportDto", { enumerable: true, get: function () { return create_bundle_report_dto_1.CreateBundleReportDto; } });
10
+ var create_coverage_report_dto_1 = require("./create-coverage-report.dto");
11
+ Object.defineProperty(exports, "CreateCoverageReportDto", { enumerable: true, get: function () { return create_coverage_report_dto_1.CreateCoverageReportDto; } });
12
+ var create_project_dto_1 = require("./create-project.dto");
13
+ Object.defineProperty(exports, "ASSET_CI_PROVIDERS", { enumerable: true, get: function () { return create_project_dto_1.ASSET_CI_PROVIDERS; } });
14
+ Object.defineProperty(exports, "ASSET_CRITICALITIES", { enumerable: true, get: function () { return create_project_dto_1.ASSET_CRITICALITIES; } });
15
+ Object.defineProperty(exports, "ASSET_ENVIRONMENTS", { enumerable: true, get: function () { return create_project_dto_1.ASSET_ENVIRONMENTS; } });
16
+ Object.defineProperty(exports, "ASSET_EXPOSURES", { enumerable: true, get: function () { return create_project_dto_1.ASSET_EXPOSURES; } });
17
+ Object.defineProperty(exports, "ASSET_POLICY_LEVELS", { enumerable: true, get: function () { return create_project_dto_1.ASSET_POLICY_LEVELS; } });
18
+ Object.defineProperty(exports, "ASSET_TYPES", { enumerable: true, get: function () { return create_project_dto_1.ASSET_TYPES; } });
19
+ Object.defineProperty(exports, "CreateProjectDto", { enumerable: true, get: function () { return create_project_dto_1.CreateProjectDto; } });
20
+ var create_report_dto_1 = require("./create-report.dto");
21
+ Object.defineProperty(exports, "CreateReportDto", { enumerable: true, get: function () { return create_report_dto_1.CreateReportDto; } });
22
+ Object.defineProperty(exports, "ExecutionContextDto", { enumerable: true, get: function () { return create_report_dto_1.ExecutionContextDto; } });
23
+ var create_scan_target_dto_1 = require("./create-scan-target.dto");
24
+ Object.defineProperty(exports, "CreateScanTargetDto", { enumerable: true, get: function () { return create_scan_target_dto_1.CreateScanTargetDto; } });
25
+ var create_vulnerability_dto_1 = require("./create-vulnerability.dto");
26
+ Object.defineProperty(exports, "CreateVulnerabilityDto", { enumerable: true, get: function () { return create_vulnerability_dto_1.CreateVulnerabilityDto; } });
27
+ Object.defineProperty(exports, "EnterpriseVulnerabilityDataDto", { enumerable: true, get: function () { return create_vulnerability_dto_1.EnterpriseVulnerabilityDataDto; } });
28
+ var metrics_dto_1 = require("./metrics.dto");
29
+ Object.defineProperty(exports, "ErrorCategory", { enumerable: true, get: function () { return metrics_dto_1.ErrorCategory; } });
30
+ Object.defineProperty(exports, "IngestionQueueName", { enumerable: true, get: function () { return metrics_dto_1.IngestionQueueName; } });
31
+ Object.defineProperty(exports, "PlanType", { enumerable: true, get: function () { return metrics_dto_1.PlanType; } });
32
+ Object.defineProperty(exports, "UploadSessionStatus", { enumerable: true, get: function () { return metrics_dto_1.UploadSessionStatus; } });
33
+ var update_coverage_gate_dto_1 = require("./update-coverage-gate.dto");
34
+ Object.defineProperty(exports, "UpdateCoverageGateDto", { enumerable: true, get: function () { return update_coverage_gate_dto_1.UpdateCoverageGateDto; } });
35
+ var update_performance_gate_dto_1 = require("./update-performance-gate.dto");
36
+ Object.defineProperty(exports, "UpdatePerformanceGateDto", { enumerable: true, get: function () { return update_performance_gate_dto_1.UpdatePerformanceGateDto; } });
37
+ var update_security_gate_dto_1 = require("./update-security-gate.dto");
38
+ Object.defineProperty(exports, "UpdateSecurityGateDto", { enumerable: true, get: function () { return update_security_gate_dto_1.UpdateSecurityGateDto; } });
39
+ var update_vulnerability_dto_1 = require("./update-vulnerability.dto");
40
+ Object.defineProperty(exports, "UpdateVulnerabilityDto", { enumerable: true, get: function () { return update_vulnerability_dto_1.UpdateVulnerabilityDto; } });
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;AAAA,qFAI2C;AAHzC,kJAAA,+BAA+B,OAAA;AAC/B,gJAAA,6BAA6B,OAAA;AAC7B,8IAAA,2BAA2B,OAAA;AAE7B,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA;AAC9B,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,2DAc8B;AAb5B,wHAAA,kBAAkB,OAAA;AAClB,yHAAA,mBAAmB,OAAA;AACnB,wHAAA,kBAAkB,OAAA;AAClB,qHAAA,eAAe,OAAA;AACf,yHAAA,mBAAmB,OAAA;AACnB,iHAAA,WAAW,OAAA;AACX,sHAAA,gBAAgB,OAAA;AAQlB,yDAA2E;AAAlE,oHAAA,eAAe,OAAA;AAAE,wHAAA,mBAAmB,OAAA;AAC7C,mEAA+D;AAAtD,6HAAA,mBAAmB,OAAA;AAC5B,uEAGoC;AAFlC,kIAAA,sBAAsB,OAAA;AACtB,0IAAA,8BAA8B,OAAA;AAEhC,6CAgBuB;AAdrB,4GAAA,aAAa,OAAA;AAIb,iHAAA,kBAAkB,OAAA;AAIlB,uGAAA,QAAQ,OAAA;AAKR,kHAAA,mBAAmB,OAAA;AAErB,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA;AAC9B,6EAAyE;AAAhE,uIAAA,wBAAwB,OAAA;AACjC,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA;AAC9B,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA"}
@@ -0,0 +1,203 @@
1
+ /**
2
+ * DTOs para métricas de observabilidade da ingestão assíncrona
3
+ * @aspm/shared
4
+ */
5
+ export declare enum UploadSessionStatus {
6
+ PENDING = "pending",
7
+ UPLOADING = "uploading",
8
+ QUEUED = "queued",
9
+ PROCESSING = "processing",
10
+ COMPLETED = "completed",
11
+ FAILED = "failed",
12
+ CANCELLED = "cancelled",
13
+ TIMED_OUT = "timed_out"
14
+ }
15
+ export declare enum ErrorCategory {
16
+ NETWORK = "network",
17
+ VALIDATION = "validation",
18
+ STORAGE = "storage",
19
+ PARSING = "parsing",
20
+ DATABASE = "database",
21
+ QUEUE = "queue",
22
+ INTERNAL = "internal"
23
+ }
24
+ export declare enum IngestionQueueName {
25
+ REPORT_INGESTION = "report.ingestion",
26
+ COVERAGE_INGESTION = "coverage.ingestion",
27
+ PRE_SIGNED_UPLOAD = "presigned.upload"
28
+ }
29
+ export interface NormalizedError {
30
+ code: string;
31
+ message: string;
32
+ category: ErrorCategory;
33
+ occurredAt: string;
34
+ retryable: boolean;
35
+ details?: Record<string, unknown>;
36
+ }
37
+ export interface UploadSessionMetricsDto {
38
+ sessionId: string;
39
+ projectId: string;
40
+ organizationId: string;
41
+ source: string;
42
+ scanType: string;
43
+ status: UploadSessionStatus;
44
+ createdAt: string;
45
+ startedAt?: string;
46
+ completedAt?: string;
47
+ failedAt?: string;
48
+ attempts: number;
49
+ lastAttemptAt?: string;
50
+ normalizedErrors: NormalizedError[];
51
+ uploadDurationMs?: number;
52
+ processingDurationMs?: number;
53
+ totalDurationMs?: number;
54
+ payloadSizeBytes: number;
55
+ payloadFileCount: number;
56
+ isLargePayload: boolean;
57
+ userId?: string;
58
+ apiKeyId?: string;
59
+ clientVersion?: string;
60
+ clientIp?: string;
61
+ userAgent?: string;
62
+ reportId?: string;
63
+ vulnerabilitiesCount: number;
64
+ packagesCount: number;
65
+ criticalCount: number;
66
+ highCount: number;
67
+ mediumCount: number;
68
+ lowCount: number;
69
+ infoCount: number;
70
+ }
71
+ export interface QueueMetricsDto {
72
+ queueName: string;
73
+ organizationId?: string;
74
+ waiting: number;
75
+ active: number;
76
+ delayed: number;
77
+ failed: number;
78
+ completed: number;
79
+ paused: number;
80
+ avgWaitTimeMs: number;
81
+ avgProcessingTimeMs: number;
82
+ p95WaitTimeMs?: number;
83
+ p99WaitTimeMs?: number;
84
+ failureRate: number;
85
+ failureByReason: Record<string, number>;
86
+ jobsPerMinute: number;
87
+ jobsPerHour: number;
88
+ stalled: boolean;
89
+ workerCount: number;
90
+ lastJobProcessedAt?: string;
91
+ }
92
+ export interface ProductMetricsDto {
93
+ periodStart: string;
94
+ periodEnd: string;
95
+ organizationId?: string;
96
+ totalUploadSessions: number;
97
+ completedUploadSessions: number;
98
+ failedUploadSessions: number;
99
+ avgUploadDurationMs: number;
100
+ avgProcessingDurationMs: number;
101
+ uploadsBySource: Record<string, number>;
102
+ failuresBySource: Record<string, number>;
103
+ totalPayloadBytes: number;
104
+ largePayloadCount: number;
105
+ avgPayloadSizeBytes: number;
106
+ totalVulnerabilitiesProcessed: number;
107
+ vulnerabilitiesBySeverity: Record<string, number>;
108
+ slaCompliance: number;
109
+ avgSessionAgeMs: number;
110
+ }
111
+ export interface TechnologyMetricsDto {
112
+ timestamp: string;
113
+ dbConnectionPoolActive: number;
114
+ dbConnectionPoolIdle: number;
115
+ dbQueryLatencyP50Ms: number;
116
+ dbQueryLatencyP95Ms: number;
117
+ dbQueryLatencyP99Ms: number;
118
+ redisMemoryUsedBytes: number;
119
+ redisMemoryMaxBytes: number;
120
+ redisConnectedClients: number;
121
+ redisCommandLatencyP95Ms: number;
122
+ s3UploadSuccessRate: number;
123
+ s3UploadLatencyP95Ms: number;
124
+ s3UploadLatencyP99Ms: number;
125
+ apiRequestRate: number;
126
+ apiErrorRate: number;
127
+ apiLatencyP50Ms: number;
128
+ apiLatencyP95Ms: number;
129
+ apiLatencyP99Ms: number;
130
+ }
131
+ export interface OperationalLimitsDto {
132
+ queue: {
133
+ maxWaitingJobs: number;
134
+ maxFailedJobsPercent: number;
135
+ maxStalledJobsPercent: number;
136
+ maxProcessingTimeMinutes: number;
137
+ workerMinCount: number;
138
+ };
139
+ uploadSession: {
140
+ maxRetryAttempts: number;
141
+ maxPendingTimeMinutes: number;
142
+ maxProcessingTimeMinutes: number;
143
+ maxUploadTimeMinutes: number;
144
+ };
145
+ performance: {
146
+ maxDbQueryLatencyMs: number;
147
+ maxRedisLatencyMs: number;
148
+ maxS3LatencyMs: number;
149
+ maxApiLatencyMs: number;
150
+ };
151
+ errorRate: {
152
+ maxErrorRatePercent: number;
153
+ errorRateWindowMinutes: number;
154
+ };
155
+ }
156
+ export declare enum PlanType {
157
+ FREE = "free",
158
+ STARTER = "starter",
159
+ PROFESSIONAL = "professional",
160
+ ENTERPRISE = "enterprise"
161
+ }
162
+ export interface PlanLimitsDto {
163
+ plan: PlanType;
164
+ maxPayloadSizeBytes: number;
165
+ maxFilesPerUpload: number;
166
+ queuePriority: number;
167
+ maxUploadsPerMinute: number;
168
+ maxConcurrentSessions: number;
169
+ metricsRetentionDays: number;
170
+ sessionRetentionDays: number;
171
+ }
172
+ export interface GetUploadSessionsMetricsQuery {
173
+ organizationId?: string;
174
+ projectId?: string;
175
+ status?: UploadSessionStatus;
176
+ source?: string;
177
+ periodStart?: string;
178
+ periodEnd?: string;
179
+ limit?: number;
180
+ offset?: number;
181
+ }
182
+ export interface GetQueueMetricsQuery {
183
+ queueName?: IngestionQueueName;
184
+ organizationId?: string;
185
+ includeDetails?: boolean;
186
+ }
187
+ export interface GetProductMetricsQuery {
188
+ organizationId?: string;
189
+ periodStart: string;
190
+ periodEnd: string;
191
+ granularity?: "hour" | "day" | "week" | "month";
192
+ }
193
+ export interface CreateUploadSessionDto {
194
+ projectId: string;
195
+ source: string;
196
+ scanType: string;
197
+ target?: string;
198
+ payloadSizeBytes: number;
199
+ payloadFileCount?: number;
200
+ clientVersion?: string;
201
+ userAgent?: string;
202
+ }
203
+ //# sourceMappingURL=metrics.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.dto.d.ts","sourceRoot":"","sources":["../../src/dto/metrics.dto.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,oBAAY,kBAAkB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C,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;CACjD;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * DTOs para métricas de observabilidade da ingestão assíncrona
4
+ * @aspm/shared
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.PlanType = exports.IngestionQueueName = exports.ErrorCategory = exports.UploadSessionStatus = void 0;
8
+ var UploadSessionStatus;
9
+ (function (UploadSessionStatus) {
10
+ UploadSessionStatus["PENDING"] = "pending";
11
+ UploadSessionStatus["UPLOADING"] = "uploading";
12
+ UploadSessionStatus["QUEUED"] = "queued";
13
+ UploadSessionStatus["PROCESSING"] = "processing";
14
+ UploadSessionStatus["COMPLETED"] = "completed";
15
+ UploadSessionStatus["FAILED"] = "failed";
16
+ UploadSessionStatus["CANCELLED"] = "cancelled";
17
+ UploadSessionStatus["TIMED_OUT"] = "timed_out";
18
+ })(UploadSessionStatus || (exports.UploadSessionStatus = UploadSessionStatus = {}));
19
+ var ErrorCategory;
20
+ (function (ErrorCategory) {
21
+ ErrorCategory["NETWORK"] = "network";
22
+ ErrorCategory["VALIDATION"] = "validation";
23
+ ErrorCategory["STORAGE"] = "storage";
24
+ ErrorCategory["PARSING"] = "parsing";
25
+ ErrorCategory["DATABASE"] = "database";
26
+ ErrorCategory["QUEUE"] = "queue";
27
+ ErrorCategory["INTERNAL"] = "internal";
28
+ })(ErrorCategory || (exports.ErrorCategory = ErrorCategory = {}));
29
+ var IngestionQueueName;
30
+ (function (IngestionQueueName) {
31
+ IngestionQueueName["REPORT_INGESTION"] = "report.ingestion";
32
+ IngestionQueueName["COVERAGE_INGESTION"] = "coverage.ingestion";
33
+ IngestionQueueName["PRE_SIGNED_UPLOAD"] = "presigned.upload";
34
+ })(IngestionQueueName || (exports.IngestionQueueName = IngestionQueueName = {}));
35
+ var PlanType;
36
+ (function (PlanType) {
37
+ PlanType["FREE"] = "free";
38
+ PlanType["STARTER"] = "starter";
39
+ PlanType["PROFESSIONAL"] = "professional";
40
+ PlanType["ENTERPRISE"] = "enterprise";
41
+ })(PlanType || (exports.PlanType = PlanType = {}));
42
+ //# sourceMappingURL=metrics.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.dto.js","sourceRoot":"","sources":["../../src/dto/metrics.dto.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,8CAAuB,CAAA;AACzB,CAAC,EATW,mBAAmB,mCAAnB,mBAAmB,QAS9B;AAED,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,sCAAqB,CAAA;AACvB,CAAC,EARW,aAAa,6BAAb,aAAa,QAQxB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;IACzC,4DAAsC,CAAA;AACxC,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AA+KD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,yCAA6B,CAAA;IAC7B,qCAAyB,CAAA;AAC3B,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB"}
@@ -0,0 +1,7 @@
1
+ export declare class UpdateCoverageGateDto {
2
+ lineCoverageMin?: number;
3
+ branchCoverageMin?: number;
4
+ functionCoverageMin?: number;
5
+ enabled?: boolean;
6
+ }
7
+ //# sourceMappingURL=update-coverage-gate.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-coverage-gate.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-coverage-gate.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAKhC,eAAe,CAAC,EAAE,MAAM,CAAC;IAMzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAM3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAI7B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UpdateCoverageGateDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class UpdateCoverageGateDto {
15
+ lineCoverageMin;
16
+ branchCoverageMin;
17
+ functionCoverageMin;
18
+ enabled;
19
+ }
20
+ exports.UpdateCoverageGateDto = UpdateCoverageGateDto;
21
+ __decorate([
22
+ (0, class_validator_1.IsOptional)(),
23
+ (0, class_validator_1.IsNumber)(),
24
+ (0, class_validator_1.Min)(0),
25
+ (0, class_validator_1.Max)(100),
26
+ __metadata("design:type", Number)
27
+ ], UpdateCoverageGateDto.prototype, "lineCoverageMin", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_validator_1.IsNumber)(),
31
+ (0, class_validator_1.Min)(0),
32
+ (0, class_validator_1.Max)(100),
33
+ __metadata("design:type", Number)
34
+ ], UpdateCoverageGateDto.prototype, "branchCoverageMin", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsNumber)(),
38
+ (0, class_validator_1.Min)(0),
39
+ (0, class_validator_1.Max)(100),
40
+ __metadata("design:type", Number)
41
+ ], UpdateCoverageGateDto.prototype, "functionCoverageMin", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsBoolean)(),
45
+ __metadata("design:type", Boolean)
46
+ ], UpdateCoverageGateDto.prototype, "enabled", void 0);
47
+ //# sourceMappingURL=update-coverage-gate.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-coverage-gate.dto.js","sourceRoot":"","sources":["../../src/dto/update-coverage-gate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAE5E,MAAa,qBAAqB;IAKhC,eAAe,CAAU;IAMzB,iBAAiB,CAAU;IAM3B,mBAAmB,CAAU;IAI7B,OAAO,CAAW;CACnB;AAtBD,sDAsBC;AAjBC;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;8DACgB;AAMzB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;gEACkB;AAM3B;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;kEACoB;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sDACM"}
@@ -0,0 +1,6 @@
1
+ export declare class UpdatePerformanceGateDto {
2
+ maxBundleSizeBytes?: number;
3
+ maxLatencyMs?: Record<string, number>;
4
+ enabled?: boolean;
5
+ }
6
+ //# sourceMappingURL=update-performance-gate.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-performance-gate.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-performance-gate.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,wBAAwB;IAInC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAI5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAItC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UpdatePerformanceGateDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class UpdatePerformanceGateDto {
15
+ maxBundleSizeBytes;
16
+ maxLatencyMs; // { "/projects": 200, "/projects/:id/reports": 500 }
17
+ enabled;
18
+ }
19
+ exports.UpdatePerformanceGateDto = UpdatePerformanceGateDto;
20
+ __decorate([
21
+ (0, class_validator_1.IsOptional)(),
22
+ (0, class_validator_1.IsNumber)(),
23
+ (0, class_validator_1.Min)(0),
24
+ __metadata("design:type", Number)
25
+ ], UpdatePerformanceGateDto.prototype, "maxBundleSizeBytes", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsObject)(),
28
+ (0, class_validator_1.IsOptional)(),
29
+ __metadata("design:type", Object)
30
+ ], UpdatePerformanceGateDto.prototype, "maxLatencyMs", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsBoolean)(),
34
+ __metadata("design:type", Boolean)
35
+ ], UpdatePerformanceGateDto.prototype, "enabled", void 0);
36
+ //# sourceMappingURL=update-performance-gate.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-performance-gate.dto.js","sourceRoot":"","sources":["../../src/dto/update-performance-gate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiF;AAEjF,MAAa,wBAAwB;IAInC,kBAAkB,CAAU;IAI5B,YAAY,CAA0B,CAAC,qDAAqD;IAI5F,OAAO,CAAW;CACnB;AAbD,4DAaC;AATC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;oEACqB;AAI5B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACyB;AAItC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yDACM"}
@@ -0,0 +1,9 @@
1
+ export declare class UpdateSecurityGateDto {
2
+ minScore?: number | null;
3
+ maxBySeverity?: Record<string, number> | null;
4
+ enabled?: boolean;
5
+ inheritFromOrg?: boolean;
6
+ exceptionReason?: string | null;
7
+ exceptionExpiresAt?: string | null;
8
+ }
9
+ //# sourceMappingURL=update-security-gate.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-security-gate.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-security-gate.dto.ts"],"names":[],"mappings":"AAaA,qBAAa,qBAAqB;IAMhC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIzB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAI9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAIlB,cAAc,CAAC,EAAE,OAAO,CAAC;IAKzB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIhC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC"}