@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,58 @@
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.UpdateSecurityGateDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class UpdateSecurityGateDto {
16
+ minScore;
17
+ maxBySeverity;
18
+ enabled;
19
+ inheritFromOrg;
20
+ exceptionReason;
21
+ exceptionExpiresAt;
22
+ }
23
+ exports.UpdateSecurityGateDto = UpdateSecurityGateDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_transformer_1.Type)(() => Number),
27
+ (0, class_validator_1.IsInt)(),
28
+ (0, class_validator_1.Min)(0),
29
+ (0, class_validator_1.Max)(1000),
30
+ __metadata("design:type", Object)
31
+ ], UpdateSecurityGateDto.prototype, "minScore", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsObject)(),
35
+ __metadata("design:type", Object)
36
+ ], UpdateSecurityGateDto.prototype, "maxBySeverity", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsBoolean)(),
40
+ __metadata("design:type", Boolean)
41
+ ], UpdateSecurityGateDto.prototype, "enabled", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsBoolean)(),
45
+ __metadata("design:type", Boolean)
46
+ ], UpdateSecurityGateDto.prototype, "inheritFromOrg", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, class_validator_1.IsString)(),
50
+ (0, class_validator_1.MaxLength)(500),
51
+ __metadata("design:type", Object)
52
+ ], UpdateSecurityGateDto.prototype, "exceptionReason", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_validator_1.IsDateString)(),
56
+ __metadata("design:type", Object)
57
+ ], UpdateSecurityGateDto.prototype, "exceptionExpiresAt", void 0);
58
+ //# sourceMappingURL=update-security-gate.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-security-gate.dto.js","sourceRoot":"","sources":["../../src/dto/update-security-gate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAUyB;AAEzB,MAAa,qBAAqB;IAMhC,QAAQ,CAAiB;IAIzB,aAAa,CAAiC;IAI9C,OAAO,CAAW;IAIlB,cAAc,CAAW;IAKzB,eAAe,CAAiB;IAIhC,kBAAkB,CAAiB;CACpC;AA5BD,sDA4BC;AAtBC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,IAAI,CAAC;;uDACe;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACmC;AAI9C;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sDACM;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6DACa;AAKzB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;8DACiB;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;iEACoB"}
@@ -0,0 +1,6 @@
1
+ import { VulnerabilityStatus } from "../enums";
2
+ export declare class UpdateVulnerabilityDto {
3
+ status?: VulnerabilityStatus;
4
+ recommendation?: string;
5
+ }
6
+ //# sourceMappingURL=update-vulnerability.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-vulnerability.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-vulnerability.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,qBAAa,sBAAsB;IAGjC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAI7B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,30 @@
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.UpdateVulnerabilityDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const enums_1 = require("../enums");
15
+ class UpdateVulnerabilityDto {
16
+ status;
17
+ recommendation;
18
+ }
19
+ exports.UpdateVulnerabilityDto = UpdateVulnerabilityDto;
20
+ __decorate([
21
+ (0, class_validator_1.IsEnum)(enums_1.VulnerabilityStatus),
22
+ (0, class_validator_1.IsOptional)(),
23
+ __metadata("design:type", String)
24
+ ], UpdateVulnerabilityDto.prototype, "status", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsOptional)(),
28
+ __metadata("design:type", String)
29
+ ], UpdateVulnerabilityDto.prototype, "recommendation", void 0);
30
+ //# sourceMappingURL=update-vulnerability.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-vulnerability.dto.js","sourceRoot":"","sources":["../../src/dto/update-vulnerability.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,oCAA+C;AAE/C,MAAa,sBAAsB;IAGjC,MAAM,CAAuB;IAI7B,cAAc,CAAU;CACzB;AARD,wDAQC;AALC;IAFC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;sDACgB;AAI7B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACW"}
@@ -0,0 +1,86 @@
1
+ export declare enum ScanSource {
2
+ TRIVY = "TRIVY",
3
+ SONAR = "SONAR",
4
+ SEMGREP = "SEMGREP",
5
+ NMAP = "NMAP",
6
+ SKIPFISH = "SKIPFISH",
7
+ OSV = "OSV",
8
+ GITLEAKS = "GITLEAKS",
9
+ SYFT = "SYFT"
10
+ }
11
+ export declare enum ScanType {
12
+ CONTAINER = "CONTAINER",
13
+ SAST = "SAST",
14
+ NETWORK = "NETWORK",
15
+ WEB = "WEB",
16
+ DEPENDENCIES = "DEPENDENCIES",
17
+ SECRETS = "SECRETS",
18
+ SBOM = "SBOM"
19
+ }
20
+ export declare enum Severity {
21
+ CRITICAL = "CRITICAL",
22
+ HIGH = "HIGH",
23
+ MEDIUM = "MEDIUM",
24
+ LOW = "LOW",
25
+ INFO = "INFO"
26
+ }
27
+ export declare enum VulnerabilityStatus {
28
+ OPEN = "OPEN",
29
+ CONFIRMED = "CONFIRMED",
30
+ REOPENED = "REOPENED",
31
+ FALSE_POSITIVE = "FALSE_POSITIVE",
32
+ /** Remediação (ex.: IA + PR) entregue; ainda não validada como corrigida em produção — entre aberto e corrigido. */
33
+ PENDING_REMED_REVIEW = "PENDING_REMED_REVIEW",
34
+ FIXED = "FIXED",
35
+ ACCEPTED = "ACCEPTED"
36
+ }
37
+ export declare const ACTIVE_VULNERABILITY_STATUSES: readonly [VulnerabilityStatus.OPEN, VulnerabilityStatus.CONFIRMED, VulnerabilityStatus.REOPENED, VulnerabilityStatus.PENDING_REMED_REVIEW];
38
+ /** Statuses that allow creating a new Jira issue card (manual or automated). */
39
+ export declare const JIRA_ISSUE_ELIGIBLE_STATUSES: readonly [VulnerabilityStatus.OPEN, VulnerabilityStatus.REOPENED];
40
+ export type JiraIssueEligibleStatus = (typeof JIRA_ISSUE_ELIGIBLE_STATUSES)[number];
41
+ export declare function isJiraIssueEligibleStatus(status: string): status is JiraIssueEligibleStatus;
42
+ export declare enum FindingType {
43
+ VULNERABILITY = "VULNERABILITY",
44
+ SECRET = "SECRET",
45
+ LICENSE = "LICENSE",
46
+ MISCONFIGURATION = "MISCONFIGURATION",
47
+ DEPENDENCY = "DEPENDENCY",
48
+ CODE_QUALITY = "CODE_QUALITY",
49
+ COMPLIANCE = "COMPLIANCE",
50
+ BUG = "BUG",
51
+ CODE_SMELL = "CODE_SMELL",
52
+ SECURITY_HOTSPOT = "SECURITY_HOTSPOT",
53
+ OTHER = "OTHER"
54
+ }
55
+ export declare enum ExposureLevel {
56
+ INTERNET_FACING = "INTERNET_FACING",
57
+ INTERNAL = "INTERNAL",
58
+ ISOLATED = "ISOLATED",
59
+ UNKNOWN = "UNKNOWN"
60
+ }
61
+ export declare enum RiskLevel {
62
+ CRITICAL = "CRITICAL",
63
+ HIGH = "HIGH",
64
+ MEDIUM = "MEDIUM",
65
+ LOW = "LOW",
66
+ INFO = "INFO"
67
+ }
68
+ export declare const RISK_LEVEL_THRESHOLDS: {
69
+ readonly CRITICAL: 800;
70
+ readonly HIGH: 600;
71
+ readonly MEDIUM: 400;
72
+ readonly LOW: 200;
73
+ readonly INFO: 0;
74
+ };
75
+ export declare enum RepositoryProvider {
76
+ GITHUB = "GITHUB",
77
+ GITLAB = "GITLAB",
78
+ BITBUCKET = "BITBUCKET"
79
+ }
80
+ export declare enum ExecutionTrigger {
81
+ PIPELINE = "pipeline",
82
+ LOCAL = "local",
83
+ MANUAL = "manual"
84
+ }
85
+ export declare const SOURCE_SCAN_TYPE_MAP: Record<ScanSource, ScanType>;
86
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,oBAAY,QAAQ;IAClB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,oBAAY,QAAQ;IAClB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,GAAG,QAAQ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
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SOURCE_SCAN_TYPE_MAP = exports.ExecutionTrigger = exports.RepositoryProvider = exports.RISK_LEVEL_THRESHOLDS = exports.RiskLevel = exports.ExposureLevel = exports.FindingType = exports.JIRA_ISSUE_ELIGIBLE_STATUSES = exports.ACTIVE_VULNERABILITY_STATUSES = exports.VulnerabilityStatus = exports.Severity = exports.ScanType = exports.ScanSource = void 0;
4
+ exports.isJiraIssueEligibleStatus = isJiraIssueEligibleStatus;
5
+ var ScanSource;
6
+ (function (ScanSource) {
7
+ ScanSource["TRIVY"] = "TRIVY";
8
+ ScanSource["SONAR"] = "SONAR";
9
+ ScanSource["SEMGREP"] = "SEMGREP";
10
+ ScanSource["NMAP"] = "NMAP";
11
+ ScanSource["SKIPFISH"] = "SKIPFISH";
12
+ ScanSource["OSV"] = "OSV";
13
+ ScanSource["GITLEAKS"] = "GITLEAKS";
14
+ ScanSource["SYFT"] = "SYFT";
15
+ })(ScanSource || (exports.ScanSource = ScanSource = {}));
16
+ var ScanType;
17
+ (function (ScanType) {
18
+ ScanType["CONTAINER"] = "CONTAINER";
19
+ ScanType["SAST"] = "SAST";
20
+ ScanType["NETWORK"] = "NETWORK";
21
+ ScanType["WEB"] = "WEB";
22
+ ScanType["DEPENDENCIES"] = "DEPENDENCIES";
23
+ ScanType["SECRETS"] = "SECRETS";
24
+ ScanType["SBOM"] = "SBOM";
25
+ })(ScanType || (exports.ScanType = ScanType = {}));
26
+ var Severity;
27
+ (function (Severity) {
28
+ Severity["CRITICAL"] = "CRITICAL";
29
+ Severity["HIGH"] = "HIGH";
30
+ Severity["MEDIUM"] = "MEDIUM";
31
+ Severity["LOW"] = "LOW";
32
+ Severity["INFO"] = "INFO";
33
+ })(Severity || (exports.Severity = Severity = {}));
34
+ var VulnerabilityStatus;
35
+ (function (VulnerabilityStatus) {
36
+ VulnerabilityStatus["OPEN"] = "OPEN";
37
+ VulnerabilityStatus["CONFIRMED"] = "CONFIRMED";
38
+ VulnerabilityStatus["REOPENED"] = "REOPENED";
39
+ VulnerabilityStatus["FALSE_POSITIVE"] = "FALSE_POSITIVE";
40
+ /** Remediação (ex.: IA + PR) entregue; ainda não validada como corrigida em produção — entre aberto e corrigido. */
41
+ VulnerabilityStatus["PENDING_REMED_REVIEW"] = "PENDING_REMED_REVIEW";
42
+ VulnerabilityStatus["FIXED"] = "FIXED";
43
+ VulnerabilityStatus["ACCEPTED"] = "ACCEPTED";
44
+ })(VulnerabilityStatus || (exports.VulnerabilityStatus = VulnerabilityStatus = {}));
45
+ exports.ACTIVE_VULNERABILITY_STATUSES = [
46
+ VulnerabilityStatus.OPEN,
47
+ VulnerabilityStatus.CONFIRMED,
48
+ VulnerabilityStatus.REOPENED,
49
+ VulnerabilityStatus.PENDING_REMED_REVIEW,
50
+ ];
51
+ /** Statuses that allow creating a new Jira issue card (manual or automated). */
52
+ exports.JIRA_ISSUE_ELIGIBLE_STATUSES = [
53
+ VulnerabilityStatus.OPEN,
54
+ VulnerabilityStatus.REOPENED,
55
+ ];
56
+ function isJiraIssueEligibleStatus(status) {
57
+ return exports.JIRA_ISSUE_ELIGIBLE_STATUSES.includes(status);
58
+ }
59
+ /// Tipos normalizados de findings para classificação consistente
60
+ var FindingType;
61
+ (function (FindingType) {
62
+ /// Vulnerabilidade de segurança (CVE, CWE, etc.)
63
+ FindingType["VULNERABILITY"] = "VULNERABILITY";
64
+ /// Credencial ou chave exposta (API keys, tokens, senhas)
65
+ FindingType["SECRET"] = "SECRET";
66
+ /// Problema de licença de software (incompatível, expirada, etc.)
67
+ FindingType["LICENSE"] = "LICENSE";
68
+ /// Problema de configuração (misconfiguration)
69
+ FindingType["MISCONFIGURATION"] = "MISCONFIGURATION";
70
+ /// Problema de dependência (versão desatualizada, incompatível)
71
+ FindingType["DEPENDENCY"] = "DEPENDENCY";
72
+ /// Problema de qualidade de código (code smell, technical debt)
73
+ FindingType["CODE_QUALITY"] = "CODE_QUALITY";
74
+ /// Problema de conformidade (compliance)
75
+ FindingType["COMPLIANCE"] = "COMPLIANCE";
76
+ /// Bug funcional
77
+ FindingType["BUG"] = "BUG";
78
+ /// Code smell
79
+ FindingType["CODE_SMELL"] = "CODE_SMELL";
80
+ /// Security hotspot (potencial vulnerabilidade)
81
+ FindingType["SECURITY_HOTSPOT"] = "SECURITY_HOTSPOT";
82
+ /// Outro tipo de finding não classificado acima
83
+ FindingType["OTHER"] = "OTHER";
84
+ })(FindingType || (exports.FindingType = FindingType = {}));
85
+ /// Enterprise exposure levels para classificação de risco
86
+ var ExposureLevel;
87
+ (function (ExposureLevel) {
88
+ ExposureLevel["INTERNET_FACING"] = "INTERNET_FACING";
89
+ ExposureLevel["INTERNAL"] = "INTERNAL";
90
+ ExposureLevel["ISOLATED"] = "ISOLATED";
91
+ ExposureLevel["UNKNOWN"] = "UNKNOWN";
92
+ })(ExposureLevel || (exports.ExposureLevel = ExposureLevel = {}));
93
+ /// Níveis de risco baseados no score calculado
94
+ var RiskLevel;
95
+ (function (RiskLevel) {
96
+ RiskLevel["CRITICAL"] = "CRITICAL";
97
+ RiskLevel["HIGH"] = "HIGH";
98
+ RiskLevel["MEDIUM"] = "MEDIUM";
99
+ RiskLevel["LOW"] = "LOW";
100
+ RiskLevel["INFO"] = "INFO";
101
+ })(RiskLevel || (exports.RiskLevel = RiskLevel = {}));
102
+ /// Thresholds para níveis de risco (0-1000)
103
+ exports.RISK_LEVEL_THRESHOLDS = {
104
+ CRITICAL: 800,
105
+ HIGH: 600,
106
+ MEDIUM: 400,
107
+ LOW: 200,
108
+ INFO: 0,
109
+ };
110
+ var RepositoryProvider;
111
+ (function (RepositoryProvider) {
112
+ RepositoryProvider["GITHUB"] = "GITHUB";
113
+ RepositoryProvider["GITLAB"] = "GITLAB";
114
+ RepositoryProvider["BITBUCKET"] = "BITBUCKET";
115
+ })(RepositoryProvider || (exports.RepositoryProvider = RepositoryProvider = {}));
116
+ var ExecutionTrigger;
117
+ (function (ExecutionTrigger) {
118
+ ExecutionTrigger["PIPELINE"] = "pipeline";
119
+ ExecutionTrigger["LOCAL"] = "local";
120
+ ExecutionTrigger["MANUAL"] = "manual";
121
+ })(ExecutionTrigger || (exports.ExecutionTrigger = ExecutionTrigger = {}));
122
+ exports.SOURCE_SCAN_TYPE_MAP = {
123
+ [ScanSource.TRIVY]: ScanType.CONTAINER,
124
+ [ScanSource.SONAR]: ScanType.SAST,
125
+ [ScanSource.SEMGREP]: ScanType.SAST,
126
+ [ScanSource.NMAP]: ScanType.NETWORK,
127
+ [ScanSource.SKIPFISH]: ScanType.WEB,
128
+ [ScanSource.OSV]: ScanType.DEPENDENCIES,
129
+ [ScanSource.GITLEAKS]: ScanType.SECRETS,
130
+ [ScanSource.SYFT]: ScanType.SBOM,
131
+ };
132
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;AAuDA,8DAEC;AAzDD,IAAY,UASX;AATD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,mCAAqB,CAAA;IACrB,yBAAW,CAAA;IACX,mCAAqB,CAAA;IACrB,2BAAa,CAAA;AACf,CAAC,EATW,UAAU,0BAAV,UAAU,QASrB;AAED,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,mCAAuB,CAAA;IACvB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,uBAAW,CAAA;IACX,yCAA6B,CAAA;IAC7B,+BAAmB,CAAA;IACnB,yBAAa,CAAA;AACf,CAAC,EARW,QAAQ,wBAAR,QAAQ,QAQnB;AAED,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,yBAAa,CAAA;AACf,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;A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1,6 @@
1
+ export declare const KUBBISEC_GITHUB_PR_LABEL: {
2
+ readonly name: "kubbisec";
3
+ readonly color: "00d9f6";
4
+ readonly description: "Pull requests opened by KubbiSec";
5
+ };
6
+ //# sourceMappingURL=kubbisec-github-label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kubbisec-github-label.d.ts","sourceRoot":"","sources":["../../src/github/kubbisec-github-label.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KUBBISEC_GITHUB_PR_LABEL = void 0;
4
+ exports.KUBBISEC_GITHUB_PR_LABEL = {
5
+ name: "kubbisec",
6
+ color: "00d9f6",
7
+ description: "Pull requests opened by KubbiSec",
8
+ };
9
+ //# sourceMappingURL=kubbisec-github-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kubbisec-github-label.js","sourceRoot":"","sources":["../../src/github/kubbisec-github-label.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,kCAAkC;CACvC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export * from "./assistant";
2
+ export * from "./github/kubbisec-github-label";
3
+ export * from "./dto";
4
+ export * from "./dto/metrics.dto";
5
+ export * from "./ai";
6
+ export * from "./enums";
7
+ export * from "./rbac";
8
+ export * from "./cli-user-error";
9
+ export * from "./redaction";
10
+ export * from "./severity-map";
11
+ export * from "./sort-findings";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./assistant"), exports);
18
+ __exportStar(require("./github/kubbisec-github-label"), exports);
19
+ __exportStar(require("./dto"), exports);
20
+ __exportStar(require("./dto/metrics.dto"), exports);
21
+ __exportStar(require("./ai"), exports);
22
+ __exportStar(require("./enums"), exports);
23
+ __exportStar(require("./rbac"), exports);
24
+ __exportStar(require("./cli-user-error"), exports);
25
+ __exportStar(require("./redaction"), exports);
26
+ __exportStar(require("./severity-map"), exports);
27
+ __exportStar(require("./sort-findings"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iEAA+C;AAC/C,wCAAsB;AACtB,oDAAkC;AAClC,uCAAqB;AACrB,0CAAwB;AACxB,yCAAuB;AACvB,mDAAiC;AACjC,8CAA4B;AAC5B,iDAA+B;AAC/B,kDAAgC"}
@@ -0,0 +1,23 @@
1
+ import type { OrgRoleSlug } from "./kubbisec-permissions";
2
+ /** Stored on `member.role` / invitation; must match Better Auth `organization({ roles })` keys. */
3
+ export declare const BETTER_AUTH_ORG_ROLE_BY_SLUG: {
4
+ readonly org_administrator: "org_administrator";
5
+ readonly org_finance: "org_finance";
6
+ readonly org_security_engineer: "org_security_engineer";
7
+ readonly org_delivery_engineer: "org_delivery_engineer";
8
+ readonly org_observer: "org_observer";
9
+ };
10
+ export declare const ORG_INVITE_ROLE_OPTIONS: {
11
+ value: OrgRoleSlug;
12
+ label: string;
13
+ }[];
14
+ /** All assignable org roles (invites exclude org_administrator by design). */
15
+ export declare const ORG_MEMBER_ROLE_OPTIONS: {
16
+ value: OrgRoleSlug;
17
+ label: string;
18
+ }[];
19
+ /** Maps legacy Better Auth roles and Kubbisec slugs stored in DB → canonical `OrgRoleSlug`. */
20
+ export declare function normalizeStoredOrgRole(raw: string | null | undefined): OrgRoleSlug;
21
+ /** Role string stored by Better Auth / Prisma `member.role` (single slug). */
22
+ export declare function toBetterAuthOrgRole(slug: OrgRoleSlug): OrgRoleSlug;
23
+ //# sourceMappingURL=better-auth-org-roles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"better-auth-org-roles.d.ts","sourceRoot":"","sources":["../../src/rbac/better-auth-org-roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,mGAAmG;AACnG,eAAO,MAAM,4BAA4B;;;;;;CAMY,CAAC;AAEtD,eAAO,MAAM,uBAAuB,EAAE;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAK1E,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,uBAAuB,EAAE;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAI1E,CAAC;AAEF,+FAA+F;AAC/F,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,CAyBlF;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAElE"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ORG_MEMBER_ROLE_OPTIONS = exports.ORG_INVITE_ROLE_OPTIONS = exports.BETTER_AUTH_ORG_ROLE_BY_SLUG = void 0;
4
+ exports.normalizeStoredOrgRole = normalizeStoredOrgRole;
5
+ exports.toBetterAuthOrgRole = toBetterAuthOrgRole;
6
+ /** Stored on `member.role` / invitation; must match Better Auth `organization({ roles })` keys. */
7
+ exports.BETTER_AUTH_ORG_ROLE_BY_SLUG = {
8
+ org_administrator: "org_administrator",
9
+ org_finance: "org_finance",
10
+ org_security_engineer: "org_security_engineer",
11
+ org_delivery_engineer: "org_delivery_engineer",
12
+ org_observer: "org_observer",
13
+ };
14
+ exports.ORG_INVITE_ROLE_OPTIONS = [
15
+ { value: "org_finance", label: "Financeiro" },
16
+ { value: "org_security_engineer", label: "AppSec / DevSecOps" },
17
+ { value: "org_delivery_engineer", label: "DevOps / entrega" },
18
+ { value: "org_observer", label: "Observador" },
19
+ ];
20
+ /** All assignable org roles (invites exclude org_administrator by design). */
21
+ exports.ORG_MEMBER_ROLE_OPTIONS = [
22
+ { value: "org_administrator", label: "Administrador da organização" },
23
+ { value: "org_finance", label: "Financeiro" },
24
+ ...exports.ORG_INVITE_ROLE_OPTIONS,
25
+ ];
26
+ /** Maps legacy Better Auth roles and Kubbisec slugs stored in DB → canonical `OrgRoleSlug`. */
27
+ function normalizeStoredOrgRole(raw) {
28
+ if (!raw)
29
+ return "org_observer";
30
+ const r = raw.trim();
31
+ if (r === "org_administrator" ||
32
+ r === "org_finance" ||
33
+ r === "org_security_engineer" ||
34
+ r === "org_delivery_engineer" ||
35
+ r === "org_observer") {
36
+ return r;
37
+ }
38
+ const lower = r.toLowerCase();
39
+ if (lower === "owner" ||
40
+ lower === "admin" ||
41
+ lower === "administrator" ||
42
+ lower === "org_admin") {
43
+ return "org_administrator";
44
+ }
45
+ if (lower === "member" || lower === "org_member") {
46
+ return "org_delivery_engineer";
47
+ }
48
+ return "org_observer";
49
+ }
50
+ /** Role string stored by Better Auth / Prisma `member.role` (single slug). */
51
+ function toBetterAuthOrgRole(slug) {
52
+ return exports.BETTER_AUTH_ORG_ROLE_BY_SLUG[slug];
53
+ }
54
+ //# sourceMappingURL=better-auth-org-roles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"better-auth-org-roles.js","sourceRoot":"","sources":["../../src/rbac/better-auth-org-roles.ts"],"names":[],"mappings":";;;AA0BA,wDAyBC;AAGD,kDAEC;AAtDD,mGAAmG;AACtF,QAAA,4BAA4B,GAAG;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,YAAY,EAAE,cAAc;CACuB,CAAC;AAEzC,QAAA,uBAAuB,GAA4C;IAC9E,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;IAC7C,EAAE,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,oBAAoB,EAAE;IAC/D,EAAE,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,kBAAkB,EAAE;IAC7D,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,EAAE;CAC/C,CAAC;AAEF,8EAA8E;AACjE,QAAA,uBAAuB,GAA4C;IAC9E,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,8BAA8B,EAAE;IACrE,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;IAC7C,GAAG,+BAAuB;CAC3B,CAAC;AAEF,+FAA+F;AAC/F,SAAgB,sBAAsB,CAAC,GAA8B;IACnE,IAAI,CAAC,GAAG;QAAE,OAAO,cAAc,CAAC;IAChC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IACrB,IACE,CAAC,KAAK,mBAAmB;QACzB,CAAC,KAAK,aAAa;QACnB,CAAC,KAAK,uBAAuB;QAC7B,CAAC,KAAK,uBAAuB;QAC7B,CAAC,KAAK,cAAc,EACpB,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,KAAK,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9B,IACE,KAAK,KAAK,OAAO;QACjB,KAAK,KAAK,OAAO;QACjB,KAAK,KAAK,eAAe;QACzB,KAAK,KAAK,WAAW,EACrB,CAAC;QACD,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IACD,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,YAAY,EAAE,CAAC;QACjD,OAAO,uBAAuB,CAAC;IACjC,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,8EAA8E;AAC9E,SAAgB,mBAAmB,CAAC,IAAiB;IACnD,OAAO,oCAA4B,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from "./kubbisec-permissions";
2
+ export * from "./kubbisec-permission-descriptions";
3
+ export * from "./better-auth-org-roles";
4
+ export * from "./resolve-org-permissions";
5
+ export * from "./resolve-platform-permissions";
6
+ export * from "./platform-staff";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rbac/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./kubbisec-permissions"), exports);
18
+ __exportStar(require("./kubbisec-permission-descriptions"), exports);
19
+ __exportStar(require("./better-auth-org-roles"), exports);
20
+ __exportStar(require("./resolve-org-permissions"), exports);
21
+ __exportStar(require("./resolve-platform-permissions"), exports);
22
+ __exportStar(require("./platform-staff"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rbac/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,qEAAmD;AACnD,0DAAwC;AACxC,4DAA0C;AAC1C,iEAA+C;AAC/C,mDAAiC"}
@@ -0,0 +1,9 @@
1
+ import { type KubbisecPermission } from "./kubbisec-permissions";
2
+ /**
3
+ * Human-readable descriptions (pt-BR) — keep in sync with docs/core/rbac-catalog.md
4
+ */
5
+ export declare const KUBBISEC_PERMISSION_DESCRIPTIONS: Record<KubbisecPermission, string>;
6
+ export declare function getKubbisecPermissionDescription(permission: KubbisecPermission): string;
7
+ /** Ensures every catalog permission has a pt-BR description at build/test time. */
8
+ export declare function assertKubbisecPermissionDescriptionsComplete(): void;
9
+ //# sourceMappingURL=kubbisec-permission-descriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kubbisec-permission-descriptions.d.ts","sourceRoot":"","sources":["../../src/rbac/kubbisec-permission-descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEvF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAyF/E,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAEvF;AAED,mFAAmF;AACnF,wBAAgB,4CAA4C,IAAI,IAAI,CAOnE"}