@spottoai/types-package 1.0.2-beta.36 → 1.0.2-beta.360
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/LICENSE +18 -40
- package/README.md +98 -18
- package/dist/accounts/accounts.d.ts +545 -3
- package/dist/accounts/accounts.d.ts.map +1 -1
- package/dist/accounts/accounts.js +122 -0
- package/dist/accounts/accounts.js.map +1 -1
- package/dist/accounts/azureSpSetup.d.ts +401 -0
- package/dist/accounts/azureSpSetup.d.ts.map +1 -0
- package/dist/accounts/azureSpSetup.js +3 -0
- package/dist/accounts/azureSpSetup.js.map +1 -0
- package/dist/accounts/azureSpSetupDurable.d.ts +118 -0
- package/dist/accounts/azureSpSetupDurable.d.ts.map +1 -0
- package/dist/accounts/azureSpSetupDurable.js +3 -0
- package/dist/accounts/azureSpSetupDurable.js.map +1 -0
- package/dist/accounts/index.d.ts +4 -0
- package/dist/accounts/index.d.ts.map +1 -1
- package/dist/accounts/index.js +4 -0
- package/dist/accounts/index.js.map +1 -1
- package/dist/accounts/readPermissions.d.ts +76 -0
- package/dist/accounts/readPermissions.d.ts.map +1 -0
- package/dist/accounts/readPermissions.js +202 -0
- package/dist/accounts/readPermissions.js.map +1 -0
- package/dist/accounts/validation.d.ts +91 -0
- package/dist/accounts/validation.d.ts.map +1 -0
- package/dist/accounts/validation.js +3 -0
- package/dist/accounts/validation.js.map +1 -0
- package/dist/accounts/writePermissions.d.ts +36 -0
- package/dist/accounts/writePermissions.d.ts.map +1 -0
- package/dist/accounts/writePermissions.js +47 -0
- package/dist/accounts/writePermissions.js.map +1 -0
- package/dist/ai/index.d.ts +1019 -9
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/index.js.map +1 -1
- package/dist/assessments/artifact.d.ts +84 -0
- package/dist/assessments/artifact.d.ts.map +1 -0
- package/dist/assessments/artifact.js +3 -0
- package/dist/assessments/artifact.js.map +1 -0
- package/dist/assessments/catalogue.d.ts +53 -0
- package/dist/assessments/catalogue.d.ts.map +1 -0
- package/dist/assessments/catalogue.js +16 -0
- package/dist/assessments/catalogue.js.map +1 -0
- package/dist/assessments/common.d.ts +27 -0
- package/dist/assessments/common.d.ts.map +1 -0
- package/dist/assessments/common.js +3 -0
- package/dist/assessments/common.js.map +1 -0
- package/dist/assessments/evidence.d.ts +78 -0
- package/dist/assessments/evidence.d.ts.map +1 -0
- package/dist/assessments/evidence.js +3 -0
- package/dist/assessments/evidence.js.map +1 -0
- package/dist/assessments/export.d.ts +27 -0
- package/dist/assessments/export.d.ts.map +1 -0
- package/dist/assessments/export.js +3 -0
- package/dist/assessments/export.js.map +1 -0
- package/dist/assessments/index.d.ts +11 -0
- package/dist/assessments/index.d.ts.map +1 -0
- package/dist/assessments/index.js +27 -0
- package/dist/assessments/index.js.map +1 -0
- package/dist/assessments/queue.d.ts +20 -0
- package/dist/assessments/queue.d.ts.map +1 -0
- package/dist/assessments/queue.js +6 -0
- package/dist/assessments/queue.js.map +1 -0
- package/dist/assessments/review.d.ts +36 -0
- package/dist/assessments/review.d.ts.map +1 -0
- package/dist/assessments/review.js +3 -0
- package/dist/assessments/review.js.map +1 -0
- package/dist/assessments/run.d.ts +62 -0
- package/dist/assessments/run.d.ts.map +1 -0
- package/dist/assessments/run.js +3 -0
- package/dist/assessments/run.js.map +1 -0
- package/dist/assessments/sow.d.ts +30 -0
- package/dist/assessments/sow.d.ts.map +1 -0
- package/dist/assessments/sow.js +3 -0
- package/dist/assessments/sow.js.map +1 -0
- package/dist/assessments/status.d.ts +27 -0
- package/dist/assessments/status.d.ts.map +1 -0
- package/dist/assessments/status.js +27 -0
- package/dist/assessments/status.js.map +1 -0
- package/dist/aws/commitments-planning.d.ts +3 -0
- package/dist/aws/commitments-planning.d.ts.map +1 -0
- package/dist/aws/commitments-planning.js +6 -0
- package/dist/aws/commitments-planning.js.map +1 -0
- package/dist/aws/commitmentsPlanningValidation.d.ts +7 -0
- package/dist/aws/commitmentsPlanningValidation.d.ts.map +1 -0
- package/dist/aws/commitmentsPlanningValidation.js +125 -0
- package/dist/aws/commitmentsPlanningValidation.js.map +1 -0
- package/dist/aws/estates.d.ts +153 -0
- package/dist/aws/estates.d.ts.map +1 -0
- package/dist/aws/estates.js +25 -0
- package/dist/aws/estates.js.map +1 -0
- package/dist/aws/index.d.ts +20 -0
- package/dist/aws/index.d.ts.map +1 -0
- package/dist/aws/index.js +35 -0
- package/dist/aws/index.js.map +1 -0
- package/dist/aws/onboarding.d.ts +54 -0
- package/dist/aws/onboarding.d.ts.map +1 -0
- package/dist/aws/onboarding.js +3 -0
- package/dist/aws/onboarding.js.map +1 -0
- package/dist/aws/pluginPublicArtifactBodyValidation.d.ts +10 -0
- package/dist/aws/pluginPublicArtifactBodyValidation.d.ts.map +1 -0
- package/dist/aws/pluginPublicArtifactBodyValidation.js +225 -0
- package/dist/aws/pluginPublicArtifactBodyValidation.js.map +1 -0
- package/dist/aws/pluginPublicArtifactEvidence.d.ts +161 -0
- package/dist/aws/pluginPublicArtifactEvidence.d.ts.map +1 -0
- package/dist/aws/pluginPublicArtifactEvidence.js +3 -0
- package/dist/aws/pluginPublicArtifactEvidence.js.map +1 -0
- package/dist/aws/pluginPublicArtifactManifestValidation.d.ts +4 -0
- package/dist/aws/pluginPublicArtifactManifestValidation.d.ts.map +1 -0
- package/dist/aws/pluginPublicArtifactManifestValidation.js +259 -0
- package/dist/aws/pluginPublicArtifactManifestValidation.js.map +1 -0
- package/dist/aws/pluginPublicArtifactSectionValidation.d.ts +6 -0
- package/dist/aws/pluginPublicArtifactSectionValidation.d.ts.map +1 -0
- package/dist/aws/pluginPublicArtifactSectionValidation.js +471 -0
- package/dist/aws/pluginPublicArtifactSectionValidation.js.map +1 -0
- package/dist/aws/pluginPublicArtifactValidation.d.ts +3 -0
- package/dist/aws/pluginPublicArtifactValidation.d.ts.map +1 -0
- package/dist/aws/pluginPublicArtifactValidation.js +9 -0
- package/dist/aws/pluginPublicArtifactValidation.js.map +1 -0
- package/dist/aws/pluginPublicArtifactValidationHelpers.d.ts +23 -0
- package/dist/aws/pluginPublicArtifactValidationHelpers.d.ts.map +1 -0
- package/dist/aws/pluginPublicArtifactValidationHelpers.js +240 -0
- package/dist/aws/pluginPublicArtifactValidationHelpers.js.map +1 -0
- package/dist/aws/pluginPublicArtifacts.d.ts +253 -0
- package/dist/aws/pluginPublicArtifacts.d.ts.map +1 -0
- package/dist/aws/pluginPublicArtifacts.js +116 -0
- package/dist/aws/pluginPublicArtifacts.js.map +1 -0
- package/dist/aws/portalCommitmentsPlanningPublicArtifactValidation.d.ts +4 -0
- package/dist/aws/portalCommitmentsPlanningPublicArtifactValidation.d.ts.map +1 -0
- package/dist/aws/portalCommitmentsPlanningPublicArtifactValidation.js +513 -0
- package/dist/aws/portalCommitmentsPlanningPublicArtifactValidation.js.map +1 -0
- package/dist/aws/portalCommitmentsPlanningPublicArtifacts.d.ts +13 -0
- package/dist/aws/portalCommitmentsPlanningPublicArtifacts.d.ts.map +1 -0
- package/dist/aws/portalCommitmentsPlanningPublicArtifacts.js +5 -0
- package/dist/aws/portalCommitmentsPlanningPublicArtifacts.js.map +1 -0
- package/dist/aws/portalPublicArtifactCurrentValidation.d.ts +4 -0
- package/dist/aws/portalPublicArtifactCurrentValidation.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifactCurrentValidation.js +333 -0
- package/dist/aws/portalPublicArtifactCurrentValidation.js.map +1 -0
- package/dist/aws/portalPublicArtifactEvidenceValidation.d.ts +6 -0
- package/dist/aws/portalPublicArtifactEvidenceValidation.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifactEvidenceValidation.js +301 -0
- package/dist/aws/portalPublicArtifactEvidenceValidation.js.map +1 -0
- package/dist/aws/portalPublicArtifactHistoryAiValidation.d.ts +8 -0
- package/dist/aws/portalPublicArtifactHistoryAiValidation.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifactHistoryAiValidation.js +377 -0
- package/dist/aws/portalPublicArtifactHistoryAiValidation.js.map +1 -0
- package/dist/aws/portalPublicArtifactHistoryTypes.d.ts +178 -0
- package/dist/aws/portalPublicArtifactHistoryTypes.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifactHistoryTypes.js +44 -0
- package/dist/aws/portalPublicArtifactHistoryTypes.js.map +1 -0
- package/dist/aws/portalPublicArtifactNestedEvidence.d.ts +127 -0
- package/dist/aws/portalPublicArtifactNestedEvidence.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifactNestedEvidence.js +3 -0
- package/dist/aws/portalPublicArtifactNestedEvidence.js.map +1 -0
- package/dist/aws/portalPublicArtifactNestedEvidenceValidation.d.ts +6 -0
- package/dist/aws/portalPublicArtifactNestedEvidenceValidation.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifactNestedEvidenceValidation.js +405 -0
- package/dist/aws/portalPublicArtifactNestedEvidenceValidation.js.map +1 -0
- package/dist/aws/portalPublicArtifactValidation.d.ts +3 -0
- package/dist/aws/portalPublicArtifactValidation.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifactValidation.js +14 -0
- package/dist/aws/portalPublicArtifactValidation.js.map +1 -0
- package/dist/aws/portalPublicArtifactValidationCommon.d.ts +30 -0
- package/dist/aws/portalPublicArtifactValidationCommon.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifactValidationCommon.js +167 -0
- package/dist/aws/portalPublicArtifactValidationCommon.js.map +1 -0
- package/dist/aws/portalPublicArtifacts.d.ts +400 -0
- package/dist/aws/portalPublicArtifacts.d.ts.map +1 -0
- package/dist/aws/portalPublicArtifacts.js +85 -0
- package/dist/aws/portalPublicArtifacts.js.map +1 -0
- package/dist/aws/portalRelationshipPublicArtifactValidation.d.ts +4 -0
- package/dist/aws/portalRelationshipPublicArtifactValidation.d.ts.map +1 -0
- package/dist/aws/portalRelationshipPublicArtifactValidation.js +338 -0
- package/dist/aws/portalRelationshipPublicArtifactValidation.js.map +1 -0
- package/dist/aws/portalRelationshipPublicArtifacts.d.ts +196 -0
- package/dist/aws/portalRelationshipPublicArtifacts.d.ts.map +1 -0
- package/dist/aws/portalRelationshipPublicArtifacts.js +63 -0
- package/dist/aws/portalRelationshipPublicArtifacts.js.map +1 -0
- package/dist/aws/portalRelationshipResourceNodeTypes.d.ts +269 -0
- package/dist/aws/portalRelationshipResourceNodeTypes.d.ts.map +1 -0
- package/dist/aws/portalRelationshipResourceNodeTypes.js +3 -0
- package/dist/aws/portalRelationshipResourceNodeTypes.js.map +1 -0
- package/dist/aws/portalRelationshipResourceNodeValidation.d.ts +2 -0
- package/dist/aws/portalRelationshipResourceNodeValidation.d.ts.map +1 -0
- package/dist/aws/portalRelationshipResourceNodeValidation.js +372 -0
- package/dist/aws/portalRelationshipResourceNodeValidation.js.map +1 -0
- package/dist/aws/publicArtifacts.d.ts +76 -0
- package/dist/aws/publicArtifacts.d.ts.map +1 -0
- package/dist/aws/publicArtifacts.js +17 -0
- package/dist/aws/publicArtifacts.js.map +1 -0
- package/dist/aws/relationships.d.ts +4 -0
- package/dist/aws/relationships.d.ts.map +1 -0
- package/dist/aws/relationships.js +6 -0
- package/dist/aws/relationships.js.map +1 -0
- package/dist/aws/requests.d.ts +84 -0
- package/dist/aws/requests.d.ts.map +1 -0
- package/dist/aws/requests.js +23 -0
- package/dist/aws/requests.js.map +1 -0
- package/dist/azure/activityLogs.d.ts +71 -0
- package/dist/azure/activityLogs.d.ts.map +1 -0
- package/dist/azure/activityLogs.js +6 -0
- package/dist/azure/activityLogs.js.map +1 -0
- package/dist/azure/advisorScore.d.ts +39 -0
- package/dist/azure/advisorScore.d.ts.map +1 -0
- package/dist/azure/advisorScore.js +3 -0
- package/dist/azure/advisorScore.js.map +1 -0
- package/dist/azure/benefits.d.ts +161 -0
- package/dist/azure/benefits.d.ts.map +1 -0
- package/dist/azure/benefits.js +3 -0
- package/dist/azure/benefits.js.map +1 -0
- package/dist/azure/billingArtifactCanonicalization.d.ts +28 -0
- package/dist/azure/billingArtifactCanonicalization.d.ts.map +1 -0
- package/dist/azure/billingArtifactCanonicalization.js +291 -0
- package/dist/azure/billingArtifactCanonicalization.js.map +1 -0
- package/dist/azure/billingArtifactEvidence.d.ts +39 -0
- package/dist/azure/billingArtifactEvidence.d.ts.map +1 -0
- package/dist/azure/billingArtifactEvidence.js +29 -0
- package/dist/azure/billingArtifactEvidence.js.map +1 -0
- package/dist/azure/billingArtifactGeneration.d.ts +114 -0
- package/dist/azure/billingArtifactGeneration.d.ts.map +1 -0
- package/dist/azure/billingArtifactGeneration.js +238 -0
- package/dist/azure/billingArtifactGeneration.js.map +1 -0
- package/dist/azure/billingGeneration.d.ts +50 -0
- package/dist/azure/billingGeneration.d.ts.map +1 -0
- package/dist/azure/billingGeneration.js +3 -0
- package/dist/azure/billingGeneration.js.map +1 -0
- package/dist/azure/billingPlots.d.ts +273 -0
- package/dist/azure/billingPlots.d.ts.map +1 -0
- package/dist/azure/billingPlots.js +192 -0
- package/dist/azure/billingPlots.js.map +1 -0
- package/dist/azure/budgets.d.ts +4 -0
- package/dist/azure/budgets.d.ts.map +1 -1
- package/dist/azure/commitmentsPlanning.d.ts +731 -0
- package/dist/azure/commitmentsPlanning.d.ts.map +1 -0
- package/dist/azure/commitmentsPlanning.js +3 -0
- package/dist/azure/commitmentsPlanning.js.map +1 -0
- package/dist/azure/common.d.ts +48 -1
- package/dist/azure/common.d.ts.map +1 -1
- package/dist/azure/configs.d.ts +75 -2
- package/dist/azure/configs.d.ts.map +1 -1
- package/dist/azure/costComposition.d.ts +74 -0
- package/dist/azure/costComposition.d.ts.map +1 -0
- package/dist/azure/costComposition.js +3 -0
- package/dist/azure/costComposition.js.map +1 -0
- package/dist/azure/dataProtection.d.ts +229 -0
- package/dist/azure/dataProtection.d.ts.map +1 -0
- package/dist/azure/dataProtection.js +9 -0
- package/dist/azure/dataProtection.js.map +1 -0
- package/dist/azure/governance.d.ts +942 -0
- package/dist/azure/governance.d.ts.map +1 -0
- package/dist/azure/governance.js +18 -0
- package/dist/azure/governance.js.map +1 -0
- package/dist/azure/licensing.d.ts +386 -0
- package/dist/azure/licensing.d.ts.map +1 -0
- package/dist/azure/licensing.js +3 -0
- package/dist/azure/licensing.js.map +1 -0
- package/dist/azure/metrics.d.ts +99 -4
- package/dist/azure/metrics.d.ts.map +1 -1
- package/dist/azure/payloads.d.ts +376 -1
- package/dist/azure/payloads.d.ts.map +1 -1
- package/dist/azure/portalArtifacts.d.ts +14 -0
- package/dist/azure/portalArtifacts.d.ts.map +1 -0
- package/dist/azure/portalArtifacts.js +5 -0
- package/dist/azure/portalArtifacts.js.map +1 -0
- package/dist/azure/prices.d.ts +250 -0
- package/dist/azure/prices.d.ts.map +1 -1
- package/dist/azure/publicIpAddresses.d.ts +171 -0
- package/dist/azure/publicIpAddresses.d.ts.map +1 -0
- package/dist/azure/publicIpAddresses.js +6 -0
- package/dist/azure/publicIpAddresses.js.map +1 -0
- package/dist/azure/recommendationAudit.d.ts +167 -0
- package/dist/azure/recommendationAudit.d.ts.map +1 -0
- package/dist/azure/recommendationAudit.js +20 -0
- package/dist/azure/recommendationAudit.js.map +1 -0
- package/dist/azure/recommendationState.d.ts +93 -4
- package/dist/azure/recommendationState.d.ts.map +1 -1
- package/dist/azure/recommendationTracks.d.ts +214 -0
- package/dist/azure/recommendationTracks.d.ts.map +1 -0
- package/dist/azure/recommendationTracks.js +44 -0
- package/dist/azure/recommendationTracks.js.map +1 -0
- package/dist/azure/recommendationWorkflow.d.ts +304 -0
- package/dist/azure/recommendationWorkflow.d.ts.map +1 -0
- package/dist/azure/recommendationWorkflow.js +17 -0
- package/dist/azure/recommendationWorkflow.js.map +1 -0
- package/dist/azure/recommendations.d.ts +582 -12
- package/dist/azure/recommendations.d.ts.map +1 -1
- package/dist/azure/recommendations.js.map +1 -1
- package/dist/azure/regulatoryCompliance.d.ts +301 -0
- package/dist/azure/regulatoryCompliance.d.ts.map +1 -0
- package/dist/azure/regulatoryCompliance.js +10 -0
- package/dist/azure/regulatoryCompliance.js.map +1 -0
- package/dist/azure/relationships.d.ts +193 -0
- package/dist/azure/relationships.d.ts.map +1 -0
- package/dist/azure/relationships.js +6 -0
- package/dist/azure/relationships.js.map +1 -0
- package/dist/azure/reportingTemplates.d.ts +70 -0
- package/dist/azure/reportingTemplates.d.ts.map +1 -0
- package/dist/azure/reportingTemplates.js +5 -0
- package/dist/azure/reportingTemplates.js.map +1 -0
- package/dist/azure/reports.d.ts +260 -2
- package/dist/azure/reports.d.ts.map +1 -1
- package/dist/azure/reports.js +1 -1
- package/dist/azure/reports.js.map +1 -1
- package/dist/azure/resourceHealth.d.ts +264 -0
- package/dist/azure/resourceHealth.d.ts.map +1 -0
- package/dist/azure/resourceHealth.js +16 -0
- package/dist/azure/resourceHealth.js.map +1 -0
- package/dist/azure/resourceOptimization.d.ts +79 -0
- package/dist/azure/resourceOptimization.d.ts.map +1 -0
- package/dist/azure/resourceOptimization.js +3 -0
- package/dist/azure/resourceOptimization.js.map +1 -0
- package/dist/azure/resources.d.ts +80 -0
- package/dist/azure/resources.d.ts.map +1 -1
- package/dist/azure/reviewChecklist.d.ts +147 -0
- package/dist/azure/reviewChecklist.d.ts.map +1 -0
- package/dist/azure/reviewChecklist.js +3 -0
- package/dist/azure/reviewChecklist.js.map +1 -0
- package/dist/azure/secureScore.d.ts +23 -0
- package/dist/azure/secureScore.d.ts.map +1 -0
- package/dist/azure/secureScore.js +3 -0
- package/dist/azure/secureScore.js.map +1 -0
- package/dist/azure/security.d.ts +10 -0
- package/dist/azure/security.d.ts.map +1 -1
- package/dist/azure/serviceRetirement.d.ts +59 -0
- package/dist/azure/serviceRetirement.d.ts.map +1 -0
- package/dist/azure/serviceRetirement.js +3 -0
- package/dist/azure/serviceRetirement.js.map +1 -0
- package/dist/azure/serviceRetirementState.d.ts +22 -0
- package/dist/azure/serviceRetirementState.d.ts.map +1 -0
- package/dist/azure/serviceRetirementState.js +3 -0
- package/dist/azure/serviceRetirementState.js.map +1 -0
- package/dist/azure/serviceRetirementWorkManagement.d.ts +7 -0
- package/dist/azure/serviceRetirementWorkManagement.d.ts.map +1 -0
- package/dist/azure/serviceRetirementWorkManagement.js +3 -0
- package/dist/azure/serviceRetirementWorkManagement.js.map +1 -0
- package/dist/azure/storage-inventory.d.ts +241 -0
- package/dist/azure/storage-inventory.d.ts.map +1 -0
- package/dist/azure/storage-inventory.js +3 -0
- package/dist/azure/storage-inventory.js.map +1 -0
- package/dist/azure/subscriptions.d.ts +89 -8
- package/dist/azure/subscriptions.d.ts.map +1 -1
- package/dist/azure/views.d.ts +815 -7
- package/dist/azure/views.d.ts.map +1 -1
- package/dist/azure/views.js +185 -0
- package/dist/azure/views.js.map +1 -1
- package/dist/azure/workManagement.d.ts +154 -0
- package/dist/azure/workManagement.d.ts.map +1 -0
- package/dist/azure/workManagement.js +8 -0
- package/dist/azure/workManagement.js.map +1 -0
- package/dist/common/artifactControlData.d.ts +12 -0
- package/dist/common/artifactControlData.d.ts.map +1 -0
- package/dist/common/artifactControlData.js +102 -0
- package/dist/common/artifactControlData.js.map +1 -0
- package/dist/common/artifactEvidence.d.ts +144 -0
- package/dist/common/artifactEvidence.d.ts.map +1 -0
- package/dist/common/artifactEvidence.js +181 -0
- package/dist/common/artifactEvidence.js.map +1 -0
- package/dist/common/artifactEvidenceValidation.d.ts +16 -0
- package/dist/common/artifactEvidenceValidation.d.ts.map +1 -0
- package/dist/common/artifactEvidenceValidation.js +31 -0
- package/dist/common/artifactEvidenceValidation.js.map +1 -0
- package/dist/common/artifactGeneration.d.ts +93 -0
- package/dist/common/artifactGeneration.d.ts.map +1 -0
- package/dist/common/artifactGeneration.js +5 -0
- package/dist/common/artifactGeneration.js.map +1 -0
- package/dist/common/capabilityPassport.d.ts +114 -0
- package/dist/common/capabilityPassport.d.ts.map +1 -0
- package/dist/common/capabilityPassport.js +211 -0
- package/dist/common/capabilityPassport.js.map +1 -0
- package/dist/common/index.d.ts +6 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +6 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/pagination.d.ts +3 -0
- package/dist/common/pagination.d.ts.map +1 -1
- package/dist/common/provider.d.ts +33 -0
- package/dist/common/provider.d.ts.map +1 -0
- package/dist/common/provider.js +15 -0
- package/dist/common/provider.js.map +1 -0
- package/dist/common/providerSyncProgress.d.ts +91 -0
- package/dist/common/providerSyncProgress.d.ts.map +1 -0
- package/dist/common/providerSyncProgress.js +3 -0
- package/dist/common/providerSyncProgress.js.map +1 -0
- package/dist/common/relationships.d.ts +8 -0
- package/dist/common/relationships.d.ts.map +1 -0
- package/dist/common/relationships.js +3 -0
- package/dist/common/relationships.js.map +1 -0
- package/dist/common/syncProgress.d.ts +27 -0
- package/dist/common/syncProgress.d.ts.map +1 -0
- package/dist/common/syncProgress.js +3 -0
- package/dist/common/syncProgress.js.map +1 -0
- package/dist/company/billingAccount.d.ts +30 -0
- package/dist/company/billingAccount.d.ts.map +1 -0
- package/dist/company/billingAccount.js +3 -0
- package/dist/company/billingAccount.js.map +1 -0
- package/dist/company/company.d.ts +91 -1
- package/dist/company/company.d.ts.map +1 -1
- package/dist/company/companyHierarchy.d.ts +53 -0
- package/dist/company/companyHierarchy.d.ts.map +1 -0
- package/dist/company/companyHierarchy.js +3 -0
- package/dist/company/companyHierarchy.js.map +1 -0
- package/dist/company/companyNotes.d.ts +288 -0
- package/dist/company/companyNotes.d.ts.map +1 -0
- package/dist/company/companyNotes.js +42 -0
- package/dist/company/companyNotes.js.map +1 -0
- package/dist/company/customProperties.d.ts +2 -0
- package/dist/company/customProperties.d.ts.map +1 -0
- package/dist/company/customProperties.js +18 -0
- package/dist/company/customProperties.js.map +1 -0
- package/dist/company/index.d.ts +3 -0
- package/dist/company/index.d.ts.map +1 -1
- package/dist/company/index.js +3 -0
- package/dist/company/index.js.map +1 -1
- package/dist/company/notification.d.ts +35 -1
- package/dist/company/notification.d.ts.map +1 -1
- package/dist/company/notification.js +27 -12
- package/dist/company/notification.js.map +1 -1
- package/dist/company/survey.d.ts +3 -0
- package/dist/company/survey.d.ts.map +1 -1
- package/dist/customProperties/customProperties.d.ts +87 -0
- package/dist/customProperties/customProperties.d.ts.map +1 -0
- package/dist/customProperties/customProperties.js +3 -0
- package/dist/customProperties/customProperties.js.map +1 -0
- package/dist/customProperties/index.d.ts +2 -0
- package/dist/customProperties/index.d.ts.map +1 -0
- package/dist/customProperties/index.js +18 -0
- package/dist/customProperties/index.js.map +1 -0
- package/dist/esm/accounts/accounts.js +115 -0
- package/dist/esm/accounts/azureSpSetup.js +1 -0
- package/dist/esm/accounts/azureSpSetupDurable.js +1 -0
- package/dist/esm/accounts/index.js +5 -0
- package/dist/esm/accounts/readPermissions.js +198 -0
- package/dist/esm/accounts/validation.js +1 -0
- package/dist/esm/accounts/writePermissions.js +43 -0
- package/dist/esm/ai/index.js +2 -0
- package/dist/esm/assessments/artifact.js +1 -0
- package/dist/esm/assessments/catalogue.js +12 -0
- package/dist/esm/assessments/common.js +1 -0
- package/dist/esm/assessments/evidence.js +1 -0
- package/dist/esm/assessments/export.js +1 -0
- package/dist/esm/assessments/index.js +10 -0
- package/dist/esm/assessments/queue.js +2 -0
- package/dist/esm/assessments/review.js +1 -0
- package/dist/esm/assessments/run.js +1 -0
- package/dist/esm/assessments/sow.js +1 -0
- package/dist/esm/assessments/status.js +23 -0
- package/dist/esm/aws/commitments-planning.js +1 -0
- package/dist/esm/aws/commitmentsPlanningValidation.js +121 -0
- package/dist/esm/aws/estates.js +21 -0
- package/dist/esm/aws/index.js +18 -0
- package/dist/esm/aws/onboarding.js +1 -0
- package/dist/esm/aws/pluginPublicArtifactBodyValidation.js +217 -0
- package/dist/esm/aws/pluginPublicArtifactEvidence.js +1 -0
- package/dist/esm/aws/pluginPublicArtifactManifestValidation.js +255 -0
- package/dist/esm/aws/pluginPublicArtifactSectionValidation.js +464 -0
- package/dist/esm/aws/pluginPublicArtifactValidation.js +2 -0
- package/dist/esm/aws/pluginPublicArtifactValidationHelpers.js +216 -0
- package/dist/esm/aws/pluginPublicArtifacts.js +109 -0
- package/dist/esm/aws/portalCommitmentsPlanningPublicArtifactValidation.js +509 -0
- package/dist/esm/aws/portalCommitmentsPlanningPublicArtifacts.js +1 -0
- package/dist/esm/aws/portalPublicArtifactCurrentValidation.js +328 -0
- package/dist/esm/aws/portalPublicArtifactEvidenceValidation.js +294 -0
- package/dist/esm/aws/portalPublicArtifactHistoryAiValidation.js +368 -0
- package/dist/esm/aws/portalPublicArtifactHistoryTypes.js +40 -0
- package/dist/esm/aws/portalPublicArtifactNestedEvidence.js +1 -0
- package/dist/esm/aws/portalPublicArtifactNestedEvidenceValidation.js +397 -0
- package/dist/esm/aws/portalPublicArtifactValidation.js +2 -0
- package/dist/esm/aws/portalPublicArtifactValidationCommon.js +139 -0
- package/dist/esm/aws/portalPublicArtifacts.js +73 -0
- package/dist/esm/aws/portalRelationshipPublicArtifactValidation.js +334 -0
- package/dist/esm/aws/portalRelationshipPublicArtifacts.js +59 -0
- package/dist/esm/aws/portalRelationshipResourceNodeTypes.js +1 -0
- package/dist/esm/aws/portalRelationshipResourceNodeValidation.js +368 -0
- package/dist/esm/aws/publicArtifacts.js +13 -0
- package/dist/esm/aws/relationships.js +1 -0
- package/dist/esm/aws/requests.js +19 -0
- package/dist/esm/azure/activityLogs.js +2 -0
- package/dist/esm/azure/advisorScore.js +1 -0
- package/dist/esm/azure/benefits.js +1 -0
- package/dist/esm/azure/billingArtifactCanonicalization.js +281 -0
- package/dist/esm/azure/billingArtifactEvidence.js +23 -0
- package/dist/esm/azure/billingArtifactGeneration.js +229 -0
- package/dist/esm/azure/billingGeneration.js +1 -0
- package/dist/esm/azure/billingPlots.js +187 -0
- package/dist/esm/azure/budgets.js +1 -0
- package/dist/esm/azure/commitmentsPlanning.js +1 -0
- package/dist/esm/azure/common.js +1 -0
- package/dist/esm/azure/configs.js +1 -0
- package/dist/esm/azure/costComposition.js +1 -0
- package/dist/esm/azure/dataProtection.js +5 -0
- package/dist/esm/azure/governance.js +14 -0
- package/dist/esm/azure/licensing.js +1 -0
- package/dist/esm/azure/metrics.js +1 -0
- package/dist/esm/azure/payloads.js +1 -0
- package/dist/esm/azure/portalArtifacts.js +1 -0
- package/dist/esm/azure/prices.js +1 -0
- package/dist/esm/azure/publicIpAddresses.js +2 -0
- package/dist/esm/azure/recommendationAudit.js +16 -0
- package/dist/esm/azure/recommendationState.js +1 -0
- package/dist/esm/azure/recommendationTracks.js +40 -0
- package/dist/esm/azure/recommendationWorkflow.js +13 -0
- package/dist/esm/azure/recommendations.js +10 -0
- package/dist/esm/azure/regulatoryCompliance.js +6 -0
- package/dist/esm/azure/relationships.js +2 -0
- package/dist/esm/azure/reportingTemplates.js +1 -0
- package/dist/esm/azure/reports.js +12 -0
- package/dist/esm/azure/resourceHealth.js +12 -0
- package/dist/esm/azure/resourceOptimization.js +1 -0
- package/dist/esm/azure/resources.js +1 -0
- package/dist/esm/azure/reviewChecklist.js +1 -0
- package/dist/esm/azure/secureScore.js +1 -0
- package/dist/esm/azure/security.js +1 -0
- package/dist/esm/azure/serviceRetirement.js +1 -0
- package/dist/esm/azure/serviceRetirementState.js +1 -0
- package/dist/esm/azure/serviceRetirementWorkManagement.js +1 -0
- package/dist/esm/azure/storage-inventory.js +1 -0
- package/dist/esm/azure/subscriptions.js +1 -0
- package/dist/esm/azure/views.js +181 -0
- package/dist/esm/azure/workManagement.js +4 -0
- package/dist/esm/common/artifactControlData.js +95 -0
- package/dist/esm/common/artifactEvidence.js +173 -0
- package/dist/esm/common/artifactEvidenceValidation.js +24 -0
- package/dist/esm/common/artifactGeneration.js +1 -0
- package/dist/esm/common/capabilityPassport.js +206 -0
- package/dist/esm/common/index.js +7 -0
- package/dist/esm/common/pagination.js +1 -0
- package/dist/esm/common/provider.js +11 -0
- package/dist/esm/common/providerSyncProgress.js +1 -0
- package/dist/esm/common/relationships.js +1 -0
- package/dist/esm/common/syncProgress.js +1 -0
- package/dist/esm/company/billingAccount.js +1 -0
- package/dist/esm/company/company.js +1 -0
- package/dist/esm/company/companyHierarchy.js +1 -0
- package/dist/esm/company/companyNotes.js +38 -0
- package/dist/esm/company/customProperties.js +1 -0
- package/dist/esm/company/index.js +6 -0
- package/dist/esm/company/notification.js +43 -0
- package/dist/esm/company/survey.js +1 -0
- package/dist/esm/customProperties/customProperties.js +1 -0
- package/dist/esm/customProperties/index.js +1 -0
- package/dist/esm/entries/aws.js +3 -0
- package/dist/esm/entries/commitments-planning.js +3 -0
- package/dist/esm/entries/provider.js +3 -0
- package/dist/esm/entries/recommendations.js +3 -0
- package/dist/esm/entries/relationships.js +3 -0
- package/dist/esm/entries/root.js +3 -0
- package/dist/esm/events/actionGroups.js +1 -0
- package/dist/esm/events/alertDefinitionRun.js +1 -0
- package/dist/esm/events/baseAlert.js +1 -0
- package/dist/esm/events/cost.js +1 -0
- package/dist/esm/events/costAnomalies.js +1 -0
- package/dist/esm/events/costViews.js +1 -0
- package/dist/esm/events/eventStatus.js +1 -0
- package/dist/esm/events/index.js +8 -0
- package/dist/esm/events/quickAlerts.js +2 -0
- package/dist/esm/features-and-permissions/access.js +1 -0
- package/dist/esm/features-and-permissions/index.js +1 -0
- package/dist/esm/feedbacks/feedback.js +1 -0
- package/dist/esm/identity/apikey.js +1 -0
- package/dist/esm/identity/index.js +1 -0
- package/dist/esm/index.js +58 -0
- package/dist/esm/index.vite.js +48 -0
- package/dist/esm/integrations/autotask.js +1 -0
- package/dist/esm/integrations/azureDevOps.js +1 -0
- package/dist/esm/integrations/github.js +1 -0
- package/dist/esm/integrations/halo.js +1 -0
- package/dist/esm/integrations/index.js +5 -0
- package/dist/esm/integrations/integrationTickets.js +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/portfolio/index.js +2 -0
- package/dist/esm/portfolio/portfolioOperations.js +1 -0
- package/dist/esm/portfolio/portfolioProjections.js +17 -0
- package/dist/esm/scheduler/index.js +1 -0
- package/dist/esm/scheduler/scheduler.js +1 -0
- package/dist/esm/tags/index.js +1 -0
- package/dist/esm/tags/tags.js +6 -0
- package/dist/esm/unknown/services.js +1 -0
- package/dist/esm/users/companyUser.js +2 -0
- package/dist/esm/users/index.js +2 -0
- package/dist/esm/users/user.js +1 -0
- package/dist/events/actionGroups.d.ts +85 -0
- package/dist/events/actionGroups.d.ts.map +1 -0
- package/dist/events/actionGroups.js +3 -0
- package/dist/events/actionGroups.js.map +1 -0
- package/dist/events/alertDefinitionRun.d.ts +23 -0
- package/dist/events/alertDefinitionRun.d.ts.map +1 -0
- package/dist/events/alertDefinitionRun.js +3 -0
- package/dist/events/alertDefinitionRun.js.map +1 -0
- package/dist/events/baseAlert.d.ts +140 -0
- package/dist/events/baseAlert.d.ts.map +1 -0
- package/dist/events/baseAlert.js +3 -0
- package/dist/events/baseAlert.js.map +1 -0
- package/dist/events/cost.d.ts +371 -0
- package/dist/events/cost.d.ts.map +1 -0
- package/dist/events/cost.js +3 -0
- package/dist/events/cost.js.map +1 -0
- package/dist/events/costAnomalies.d.ts +47 -0
- package/dist/events/costAnomalies.d.ts.map +1 -0
- package/dist/events/costAnomalies.js +3 -0
- package/dist/events/costAnomalies.js.map +1 -0
- package/dist/events/costViews.d.ts +25 -0
- package/dist/events/costViews.d.ts.map +1 -0
- package/dist/events/costViews.js +3 -0
- package/dist/events/costViews.js.map +1 -0
- package/dist/events/eventStatus.d.ts +67 -0
- package/dist/events/eventStatus.d.ts.map +1 -0
- package/dist/events/eventStatus.js +3 -0
- package/dist/events/eventStatus.js.map +1 -0
- package/dist/events/index.d.ts +9 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +25 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/quickAlerts.d.ts +67 -0
- package/dist/events/quickAlerts.d.ts.map +1 -0
- package/dist/events/quickAlerts.js +7 -0
- package/dist/events/quickAlerts.js.map +1 -0
- package/dist/features-and-permissions/access.d.ts +139 -0
- package/dist/features-and-permissions/access.d.ts.map +1 -0
- package/dist/features-and-permissions/access.js +3 -0
- package/dist/features-and-permissions/access.js.map +1 -0
- package/dist/features-and-permissions/index.d.ts +2 -0
- package/dist/features-and-permissions/index.d.ts.map +1 -0
- package/dist/features-and-permissions/index.js +18 -0
- package/dist/features-and-permissions/index.js.map +1 -0
- package/dist/feedbacks/feedback.d.ts +9 -0
- package/dist/feedbacks/feedback.d.ts.map +1 -1
- package/dist/identity/apikey.d.ts +84 -0
- package/dist/identity/apikey.d.ts.map +1 -0
- package/dist/identity/apikey.js +3 -0
- package/dist/identity/apikey.js.map +1 -0
- package/dist/identity/index.d.ts +2 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +18 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -1
- package/dist/index.js.map +1 -1
- package/dist/index.vite.d.ts +49 -0
- package/dist/index.vite.d.ts.map +1 -0
- package/dist/index.vite.js +65 -0
- package/dist/index.vite.js.map +1 -0
- package/dist/integrations/autotask.d.ts +108 -0
- package/dist/integrations/autotask.d.ts.map +1 -0
- package/dist/integrations/autotask.js +3 -0
- package/dist/integrations/autotask.js.map +1 -0
- package/dist/integrations/azureDevOps.d.ts +130 -0
- package/dist/integrations/azureDevOps.d.ts.map +1 -0
- package/dist/integrations/azureDevOps.js +3 -0
- package/dist/integrations/azureDevOps.js.map +1 -0
- package/dist/integrations/github.d.ts +96 -0
- package/dist/integrations/github.d.ts.map +1 -0
- package/dist/integrations/github.js +3 -0
- package/dist/integrations/github.js.map +1 -0
- package/dist/integrations/halo.d.ts +76 -0
- package/dist/integrations/halo.d.ts.map +1 -0
- package/dist/integrations/halo.js +3 -0
- package/dist/integrations/halo.js.map +1 -0
- package/dist/integrations/index.d.ts +6 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +22 -0
- package/dist/integrations/index.js.map +1 -0
- package/dist/integrations/integrationTickets.d.ts +77 -0
- package/dist/integrations/integrationTickets.d.ts.map +1 -0
- package/dist/integrations/integrationTickets.js +3 -0
- package/dist/integrations/integrationTickets.js.map +1 -0
- package/dist/portfolio/index.d.ts +3 -0
- package/dist/portfolio/index.d.ts.map +1 -0
- package/dist/portfolio/index.js +19 -0
- package/dist/portfolio/index.js.map +1 -0
- package/dist/portfolio/portfolioOperations.d.ts +174 -0
- package/dist/portfolio/portfolioOperations.d.ts.map +1 -0
- package/dist/portfolio/portfolioOperations.js +3 -0
- package/dist/portfolio/portfolioOperations.js.map +1 -0
- package/dist/portfolio/portfolioProjections.d.ts +460 -0
- package/dist/portfolio/portfolioProjections.d.ts.map +1 -0
- package/dist/portfolio/portfolioProjections.js +21 -0
- package/dist/portfolio/portfolioProjections.js.map +1 -0
- package/dist/scheduler/index.d.ts +2 -0
- package/dist/scheduler/index.d.ts.map +1 -0
- package/dist/scheduler/index.js +18 -0
- package/dist/scheduler/index.js.map +1 -0
- package/dist/scheduler/scheduler.d.ts +263 -0
- package/dist/scheduler/scheduler.d.ts.map +1 -0
- package/dist/scheduler/scheduler.js +3 -0
- package/dist/scheduler/scheduler.js.map +1 -0
- package/dist/tags/index.d.ts +2 -0
- package/dist/tags/index.d.ts.map +1 -0
- package/dist/tags/index.js +18 -0
- package/dist/tags/index.js.map +1 -0
- package/dist/tags/tags.d.ts +37 -0
- package/dist/tags/tags.d.ts.map +1 -0
- package/dist/tags/tags.js +10 -0
- package/dist/tags/tags.js.map +1 -0
- package/dist/unknown/services.d.ts +12 -0
- package/dist/unknown/services.d.ts.map +1 -0
- package/dist/unknown/services.js +3 -0
- package/dist/unknown/services.js.map +1 -0
- package/dist/users/companyUser.d.ts +14 -0
- package/dist/users/companyUser.d.ts.map +1 -1
- package/dist/users/companyUser.js.map +1 -1
- package/dist/users/user.d.ts +20 -1
- package/dist/users/user.d.ts.map +1 -1
- package/package.json +68 -5
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Write Permission Bitmask Enum
|
|
3
|
+
* Each permission gets a unique bit position for efficient storage
|
|
4
|
+
*/
|
|
5
|
+
export var WritePermission;
|
|
6
|
+
(function (WritePermission) {
|
|
7
|
+
/** Permission to dismiss Azure Advisor recommendations */
|
|
8
|
+
WritePermission[WritePermission["DismissRecommendations"] = 1] = "DismissRecommendations";
|
|
9
|
+
/** Permission to enable storage inventory reports on storage accounts */
|
|
10
|
+
WritePermission[WritePermission["StorageInventory"] = 2] = "StorageInventory";
|
|
11
|
+
/** Permission to create scoped Azure Policy exemptions */
|
|
12
|
+
WritePermission[WritePermission["PolicyExemptions"] = 4] = "PolicyExemptions";
|
|
13
|
+
})(WritePermission || (WritePermission = {}));
|
|
14
|
+
/**
|
|
15
|
+
* Permission metadata array
|
|
16
|
+
* Define all available write permissions with their metadata
|
|
17
|
+
*/
|
|
18
|
+
export const WRITE_PERMISSIONS_METADATA = [
|
|
19
|
+
{
|
|
20
|
+
id: WritePermission.DismissRecommendations,
|
|
21
|
+
displayName: 'Dismiss Azure Advisor Recommendations',
|
|
22
|
+
description: 'Allows Spotto to dismiss recommendations in Azure when dismissed here.',
|
|
23
|
+
requiredRoles: ['Advisor Recommendations Contributor'],
|
|
24
|
+
documentationUrl: 'https://learn.microsoft.com/en-us/azure/advisor/permissions',
|
|
25
|
+
scriptGeneratorUrl: '/scripts/advisor-role',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: WritePermission.StorageInventory,
|
|
29
|
+
displayName: 'Enable Storage Inventory Reports',
|
|
30
|
+
description: 'Allows Spotto to enable blob inventory on storage accounts you select.',
|
|
31
|
+
requiredRoles: ['Storage Account Contributor'],
|
|
32
|
+
documentationUrl: 'https://learn.microsoft.com/en-us/azure/storage/blobs/blob-inventory',
|
|
33
|
+
scriptGeneratorUrl: '/scripts/storage-role',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: WritePermission.PolicyExemptions,
|
|
37
|
+
displayName: 'Create Azure Policy Exemptions',
|
|
38
|
+
description: 'Allows Spotto to create narrowly scoped exemptions for selected Azure Policy initiative controls.',
|
|
39
|
+
requiredRoles: ['Custom role with Azure Policy exemption actions at the target and assignment scopes'],
|
|
40
|
+
documentationUrl: 'https://docs.spotto.ai/docs/portal/write-permissions/policy-exemptions',
|
|
41
|
+
scriptGeneratorUrl: '/scripts/policy-exemptions-role',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const ARCHITECTURE_ASSESSMENT_REQUIRED_CONTEXT_CATEGORIES = [
|
|
2
|
+
'company-profile',
|
|
3
|
+
'architecture',
|
|
4
|
+
'operations',
|
|
5
|
+
'reliability',
|
|
6
|
+
'roadmap',
|
|
7
|
+
];
|
|
8
|
+
export const ARCHITECTURE_ASSESSMENT_OPTIONAL_CONTEXT_CATEGORIES = [
|
|
9
|
+
'security',
|
|
10
|
+
'performance',
|
|
11
|
+
'finops',
|
|
12
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './status.js';
|
|
2
|
+
export * from './common.js';
|
|
3
|
+
export * from './catalogue.js';
|
|
4
|
+
export * from './run.js';
|
|
5
|
+
export * from './evidence.js';
|
|
6
|
+
export * from './artifact.js';
|
|
7
|
+
export * from './review.js';
|
|
8
|
+
export * from './queue.js';
|
|
9
|
+
export * from './export.js';
|
|
10
|
+
export * from './sow.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const ARCHITECTURE_ASSESSMENT_TYPE = 'architecture';
|
|
2
|
+
export const ASSESSMENT_TYPES = [ARCHITECTURE_ASSESSMENT_TYPE];
|
|
3
|
+
export const ASSESSMENT_PROVIDER_NAMES = ['azure'];
|
|
4
|
+
export const ASSESSMENT_RELEASE_STAGES = ['preview', 'ga'];
|
|
5
|
+
export const ASSESSMENT_RUN_STATUSES = ['draft', 'queued', 'running', 'needs_review', 'approved', 'published', 'failed'];
|
|
6
|
+
export const ASSESSMENT_EXPORT_FORMATS = ['docx'];
|
|
7
|
+
export const ASSESSMENT_EXPORT_STATUSES = ['requested', 'completed', 'failed'];
|
|
8
|
+
export const ASSESSMENT_EVIDENCE_SOURCE_TYPES = [
|
|
9
|
+
'company_context_note',
|
|
10
|
+
'subscription_report_evidence_pack',
|
|
11
|
+
'portal_artifact',
|
|
12
|
+
'raw_artifact',
|
|
13
|
+
'conformed_artifact',
|
|
14
|
+
'review_checklist',
|
|
15
|
+
'derived_summary',
|
|
16
|
+
'ai_inference',
|
|
17
|
+
'evidence_gap',
|
|
18
|
+
];
|
|
19
|
+
export const ASSESSMENT_EVIDENCE_CONFIDENCE_LEVELS = ['confirmed', 'customer_supplied', 'derived', 'inferred', 'gap'];
|
|
20
|
+
export const ASSESSMENT_PRIORITY_LEVELS = ['critical', 'high', 'medium', 'low', 'informational'];
|
|
21
|
+
export const ASSESSMENT_EFFORT_BANDS = ['low', 'medium', 'high', 'unknown'];
|
|
22
|
+
export const ASSESSMENT_IMPACT_LEVELS = ['low', 'medium', 'high', 'unknown'];
|
|
23
|
+
export const ASSESSMENT_PILLARS = ['architecture', 'security', 'reliability', 'performance', 'operations', 'finops', 'roadmap'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { validateAwsCommitmentsPlanningViewIdentity } from './commitmentsPlanningValidation.js';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { ProviderName } from '../common/provider.js';
|
|
2
|
+
import { asRecord, assertAccount, assertExactKeys, assertValue } from './pluginPublicArtifactValidationHelpers.js';
|
|
3
|
+
const FORBIDDEN_AWS_COMMITMENTS_KEYS = new Set([
|
|
4
|
+
'billingScopeId',
|
|
5
|
+
'breakCostEstimate',
|
|
6
|
+
'cloudAccountId',
|
|
7
|
+
'companyId',
|
|
8
|
+
'credentialHealth',
|
|
9
|
+
'credentialId',
|
|
10
|
+
'managementGroupId',
|
|
11
|
+
'pricingQuote',
|
|
12
|
+
'quotePolicy',
|
|
13
|
+
'resourceGroupId',
|
|
14
|
+
'storageCapacity',
|
|
15
|
+
'storageDimensions',
|
|
16
|
+
'subscription',
|
|
17
|
+
'subscriptionId',
|
|
18
|
+
'tenantId',
|
|
19
|
+
'unlockFinancialLedger',
|
|
20
|
+
]);
|
|
21
|
+
/**
|
|
22
|
+
* Validates the security-sensitive AWS identity boundary of a commitments view.
|
|
23
|
+
* A full public-artifact validator should call this before publication or response.
|
|
24
|
+
*/
|
|
25
|
+
export function validateAwsCommitmentsPlanningViewIdentity(value, expectedAccountId) {
|
|
26
|
+
const view = asRecord(value, 'commitmentsPlanning');
|
|
27
|
+
const providerScope = asRecord(view.providerScope, 'commitmentsPlanning.providerScope');
|
|
28
|
+
assertExactKeys(providerScope, ['providerName', 'providerScopeId'], 'commitmentsPlanning.providerScope');
|
|
29
|
+
assertValue(providerScope.providerName, ProviderName.Aws, 'commitmentsPlanning.providerScope.providerName');
|
|
30
|
+
const accountId = String(providerScope.providerScopeId ?? '');
|
|
31
|
+
assertAccount(providerScope.providerScopeId, accountId, 'commitmentsPlanning.providerScope.providerScopeId');
|
|
32
|
+
if (expectedAccountId !== undefined) {
|
|
33
|
+
assertAccount(expectedAccountId, accountId, 'expectedAccountId');
|
|
34
|
+
}
|
|
35
|
+
validateInventory(view.inventory, accountId);
|
|
36
|
+
validatePurchaseRecommendations(view.purchaseRecommendations, accountId);
|
|
37
|
+
validateBoundIdentities(view, accountId, 'commitmentsPlanning');
|
|
38
|
+
}
|
|
39
|
+
function validateInventory(value, accountId) {
|
|
40
|
+
if (!Array.isArray(value))
|
|
41
|
+
throw new Error('commitmentsPlanning.inventory must be an array.');
|
|
42
|
+
value.forEach((item, index) => {
|
|
43
|
+
const field = `commitmentsPlanning.inventory[${index}]`;
|
|
44
|
+
const record = asRecord(item, field);
|
|
45
|
+
assertValue(record.sourceKind, 'aws-native', `${field}.sourceKind`);
|
|
46
|
+
assertValue(record.provider, ProviderName.Aws, `${field}.provider`);
|
|
47
|
+
assertValue(record.appliedScopeType, 'linked-account', `${field}.appliedScopeType`);
|
|
48
|
+
validateAppliedScope(record.appliedScopeProperties, accountId, `${field}.appliedScopeProperties`);
|
|
49
|
+
validateAwsShape(record.shape, `${field}.shape`);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function validatePurchaseRecommendations(value, accountId) {
|
|
53
|
+
if (value === undefined)
|
|
54
|
+
return;
|
|
55
|
+
if (!Array.isArray(value))
|
|
56
|
+
throw new Error('commitmentsPlanning.purchaseRecommendations must be an array.');
|
|
57
|
+
value.forEach((item, index) => {
|
|
58
|
+
const field = `commitmentsPlanning.purchaseRecommendations[${index}]`;
|
|
59
|
+
const record = asRecord(item, field);
|
|
60
|
+
assertValue(record.purchaseScope, 'linked-account', `${field}.purchaseScope`);
|
|
61
|
+
validateAppliedScope(record.appliedScopeProperties, accountId, `${field}.appliedScopeProperties`);
|
|
62
|
+
validateAwsSource(record.source, `${field}.source`);
|
|
63
|
+
validateAwsShape(record.currentShape, `${field}.currentShape`);
|
|
64
|
+
validateAwsShape(record.targetShape, `${field}.targetShape`, true);
|
|
65
|
+
if (record.eligibility !== undefined) {
|
|
66
|
+
const eligibility = asRecord(record.eligibility, `${field}.eligibility`);
|
|
67
|
+
validateAwsShape(eligibility.currentShape, `${field}.eligibility.currentShape`);
|
|
68
|
+
validateAwsShape(eligibility.targetShape, `${field}.eligibility.targetShape`);
|
|
69
|
+
if (eligibility.source !== undefined)
|
|
70
|
+
validateAwsSource(eligibility.source, `${field}.eligibility.source`);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function validateAppliedScope(value, accountId, field) {
|
|
75
|
+
const scope = asRecord(value, field);
|
|
76
|
+
assertExactKeys(scope, ['accountId', 'region', 'availabilityZone'], field);
|
|
77
|
+
assertAccount(scope.accountId, accountId, `${field}.accountId`);
|
|
78
|
+
}
|
|
79
|
+
function validateAwsSource(value, field) {
|
|
80
|
+
const source = asRecord(value, field);
|
|
81
|
+
assertValue(source.sourceKind, 'aws-native', `${field}.sourceKind`);
|
|
82
|
+
}
|
|
83
|
+
function validateAwsShape(value, field, required = false) {
|
|
84
|
+
if (value === undefined && !required)
|
|
85
|
+
return;
|
|
86
|
+
const shape = asRecord(value, field);
|
|
87
|
+
assertValue(shape.provider, 'aws', `${field}.provider`);
|
|
88
|
+
}
|
|
89
|
+
function validateBoundIdentities(value, accountId, field) {
|
|
90
|
+
if (Array.isArray(value)) {
|
|
91
|
+
value.forEach((item, index) => validateBoundIdentities(item, accountId, `${field}[${index}]`));
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (!value || typeof value !== 'object') {
|
|
95
|
+
if (typeof value === 'string')
|
|
96
|
+
validateArnAccount(value, accountId, field);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
for (const [key, child] of Object.entries(value)) {
|
|
100
|
+
if (FORBIDDEN_AWS_COMMITMENTS_KEYS.has(key)) {
|
|
101
|
+
throw new Error(`${field}.${key} is not allowed in an AWS commitments artifact.`);
|
|
102
|
+
}
|
|
103
|
+
if (key === 'accountId')
|
|
104
|
+
assertAccount(child, accountId, `${field}.${key}`);
|
|
105
|
+
if (key === 'providerName')
|
|
106
|
+
assertValue(child, ProviderName.Aws, `${field}.${key}`);
|
|
107
|
+
if (key === 'provider')
|
|
108
|
+
assertValue(child, 'aws', `${field}.${key}`);
|
|
109
|
+
if (key === 'sourceKind' && child === 'azure-native') {
|
|
110
|
+
throw new Error(`${field}.${key} cannot contain Azure-native evidence.`);
|
|
111
|
+
}
|
|
112
|
+
validateBoundIdentities(child, accountId, `${field}.${key}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function validateArnAccount(value, accountId, field) {
|
|
116
|
+
if (!value.startsWith('arn:'))
|
|
117
|
+
return;
|
|
118
|
+
const arnAccountId = value.split(':', 6)[4];
|
|
119
|
+
if (arnAccountId)
|
|
120
|
+
assertAccount(arnAccountId, accountId, field);
|
|
121
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AWS_FORBIDDEN_CREDENTIAL_FIELDS } from './requests.js';
|
|
2
|
+
/** Schema version for the API-owned AWS company estate manifest. */
|
|
3
|
+
export const AWS_ESTATES_MANIFEST_SCHEMA_VERSION = 1;
|
|
4
|
+
/** Public provider discriminator used by the AWS estate manifest API. */
|
|
5
|
+
export const AWS_ESTATES_MANIFEST_PROVIDER = 'AWS';
|
|
6
|
+
export const AWS_ESTATE_KINDS = ['standalone', 'organization'];
|
|
7
|
+
export const AWS_ESTATE_ACCOUNT_SOURCES = ['manual'];
|
|
8
|
+
export const AWS_ESTATE_ROLE_DEPLOYMENT_MODES = ['customer-managed'];
|
|
9
|
+
export const AWS_ESTATE_ACCOUNT_PURPOSES = ['resource-discovery', 'organization-discovery', 'billing-definition', 'billing-storage'];
|
|
10
|
+
/**
|
|
11
|
+
* Credential-shaped fields that manifest API boundaries must reject
|
|
12
|
+
* recursively before persisting untyped JSON.
|
|
13
|
+
*/
|
|
14
|
+
export const AWS_ESTATES_MANIFEST_FORBIDDEN_CREDENTIAL_FIELDS = [
|
|
15
|
+
...AWS_FORBIDDEN_CREDENTIAL_FIELDS,
|
|
16
|
+
'externalId',
|
|
17
|
+
'accessToken',
|
|
18
|
+
'connectionString',
|
|
19
|
+
'sasToken',
|
|
20
|
+
'storageCredential',
|
|
21
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './estates.js';
|
|
2
|
+
export * from './commitmentsPlanningValidation.js';
|
|
3
|
+
export * from './onboarding.js';
|
|
4
|
+
export * from './pluginPublicArtifacts.js';
|
|
5
|
+
export * from './pluginPublicArtifactEvidence.js';
|
|
6
|
+
export * from './pluginPublicArtifactValidation.js';
|
|
7
|
+
export * from './portalPublicArtifacts.js';
|
|
8
|
+
export * from './portalCommitmentsPlanningPublicArtifacts.js';
|
|
9
|
+
export * from './portalCommitmentsPlanningPublicArtifactValidation.js';
|
|
10
|
+
export * from './portalRelationshipPublicArtifacts.js';
|
|
11
|
+
export * from './portalRelationshipResourceNodeTypes.js';
|
|
12
|
+
export * from './portalRelationshipPublicArtifactValidation.js';
|
|
13
|
+
export * from './portalPublicArtifactHistoryTypes.js';
|
|
14
|
+
export * from './portalPublicArtifactNestedEvidence.js';
|
|
15
|
+
export * from './portalPublicArtifactNestedEvidenceValidation.js';
|
|
16
|
+
export * from './portalPublicArtifactValidation.js';
|
|
17
|
+
export * from './publicArtifacts.js';
|
|
18
|
+
export * from './requests.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { AWS_PLUGIN_PUBLIC_ARTIFACT_SCHEMA_VERSION, buildAwsPluginResourceLogicalName, buildAwsPluginSubscriptionLogicalName, sha256AwsPluginIdentity, } from './pluginPublicArtifacts.js';
|
|
2
|
+
import { AWS_PUBLIC_ARTIFACT_SCHEMA_VERSION } from './publicArtifacts.js';
|
|
3
|
+
import { asRecord, assertAccount, assertExactKeys, assertJsonEqual, assertPublicJson, assertValue, isoTimestamp, optionalEnum, requiredEnum, requiredString, sha256, stringArray, validateBilling, validateMetricWindow, validateSelector, validateTagRuleScope, } from './pluginPublicArtifactValidationHelpers.js';
|
|
4
|
+
import { validateResourceSections, validateSubscriptionSections } from './pluginPublicArtifactSectionValidation.js';
|
|
5
|
+
export { validateSourceBinding } from './pluginPublicArtifactSectionValidation.js';
|
|
6
|
+
/** Validates and returns one lossless AWS plugin subscription-detail body. */
|
|
7
|
+
export function validateAwsPluginSubscriptionDetailArtifact(value) {
|
|
8
|
+
const artifact = asRecord(value, 'artifact');
|
|
9
|
+
assertExactKeys(artifact, [
|
|
10
|
+
'schemaVersion',
|
|
11
|
+
'pluginSchemaVersion',
|
|
12
|
+
'provider',
|
|
13
|
+
'accountId',
|
|
14
|
+
'artifactType',
|
|
15
|
+
'artifactGeneration',
|
|
16
|
+
'generatedAt',
|
|
17
|
+
'logicalName',
|
|
18
|
+
'target',
|
|
19
|
+
'sections',
|
|
20
|
+
], 'artifact');
|
|
21
|
+
validateArtifactEnvelope(artifact, 'plugin-subscription');
|
|
22
|
+
const target = validateTarget(artifact.target, 'subscription-detail');
|
|
23
|
+
const accountId = requiredString(artifact.accountId, 'artifact.accountId');
|
|
24
|
+
assertAccount(target.accountId, accountId, 'artifact.target.accountId');
|
|
25
|
+
assertValue(artifact.logicalName, buildAwsPluginSubscriptionLogicalName(target.targetKeySha256), 'artifact.logicalName');
|
|
26
|
+
validateSubscriptionSections(artifact.sections, target, requiredString(artifact.generatedAt, 'artifact.generatedAt'));
|
|
27
|
+
assertPublicJson(artifact, 'artifact');
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
/** Validates and returns one lossless AWS plugin resource-detail body. */
|
|
31
|
+
export function validateAwsPluginResourceDetailArtifact(value) {
|
|
32
|
+
const artifact = asRecord(value, 'artifact');
|
|
33
|
+
assertExactKeys(artifact, [
|
|
34
|
+
'schemaVersion',
|
|
35
|
+
'pluginSchemaVersion',
|
|
36
|
+
'provider',
|
|
37
|
+
'accountId',
|
|
38
|
+
'artifactType',
|
|
39
|
+
'artifactGeneration',
|
|
40
|
+
'generatedAt',
|
|
41
|
+
'logicalName',
|
|
42
|
+
'target',
|
|
43
|
+
'selector',
|
|
44
|
+
'stableKey',
|
|
45
|
+
'sections',
|
|
46
|
+
], 'artifact');
|
|
47
|
+
validateArtifactEnvelope(artifact, 'plugin-resource');
|
|
48
|
+
const target = validateTarget(artifact.target, 'resource-detail');
|
|
49
|
+
const accountId = requiredString(artifact.accountId, 'artifact.accountId');
|
|
50
|
+
assertAccount(target.accountId, accountId, 'artifact.target.accountId');
|
|
51
|
+
assertValue(artifact.logicalName, buildAwsPluginResourceLogicalName(target.stableKeySha256, target.targetKeySha256), 'artifact.logicalName');
|
|
52
|
+
assertJsonEqual(artifact.selector, target.selector, 'artifact.selector');
|
|
53
|
+
assertValue(artifact.stableKey, target.stableKey, 'artifact.stableKey');
|
|
54
|
+
validateResourceSections(artifact.sections, target, requiredString(artifact.generatedAt, 'artifact.generatedAt'));
|
|
55
|
+
assertPublicJson(artifact, 'artifact');
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
function validateArtifactEnvelope(artifact, artifactType) {
|
|
59
|
+
assertValue(artifact.schemaVersion, AWS_PUBLIC_ARTIFACT_SCHEMA_VERSION, 'artifact.schemaVersion');
|
|
60
|
+
assertValue(artifact.pluginSchemaVersion, AWS_PLUGIN_PUBLIC_ARTIFACT_SCHEMA_VERSION, 'artifact.pluginSchemaVersion');
|
|
61
|
+
assertValue(artifact.provider, 'aws', 'artifact.provider');
|
|
62
|
+
requiredString(artifact.accountId, 'artifact.accountId');
|
|
63
|
+
assertValue(artifact.artifactType, artifactType, 'artifact.artifactType');
|
|
64
|
+
const generation = validateGeneration(artifact.artifactGeneration, 'artifact.artifactGeneration');
|
|
65
|
+
assertValue(isoTimestamp(artifact.generatedAt, 'artifact.generatedAt'), generation.generatedAt, 'artifact.generatedAt');
|
|
66
|
+
}
|
|
67
|
+
function validateGeneration(value, field) {
|
|
68
|
+
const generation = asRecord(value, field);
|
|
69
|
+
assertExactKeys(generation, ['runId', 'generatedAt'], field);
|
|
70
|
+
return {
|
|
71
|
+
runId: requiredString(generation.runId, `${field}.runId`),
|
|
72
|
+
generatedAt: isoTimestamp(generation.generatedAt, `${field}.generatedAt`),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export function validateTarget(value, kind) {
|
|
76
|
+
const target = asRecord(value, 'target');
|
|
77
|
+
assertValue(target.kind, kind, 'target.kind');
|
|
78
|
+
assertValue(target.provider, 'aws', 'target.provider');
|
|
79
|
+
requiredString(target.accountId, 'target.accountId');
|
|
80
|
+
requiredString(target.targetKey, 'target.targetKey');
|
|
81
|
+
sha256(target.targetKeySha256, 'target.targetKeySha256');
|
|
82
|
+
assertValue(target.targetKeySha256, sha256AwsPluginIdentity(requiredString(target.targetKey, 'target.targetKey')), 'target.targetKeySha256');
|
|
83
|
+
validateBilling(target.billing);
|
|
84
|
+
stringArray(target.resourceRegions, 'target.resourceRegions');
|
|
85
|
+
validateMetricWindow(target.metricTimeWindow, 'target.metricTimeWindow');
|
|
86
|
+
validateRecommendationScopes(target.recommendationScopes, requiredString(target.accountId, 'target.accountId'));
|
|
87
|
+
if (kind === 'subscription-detail') {
|
|
88
|
+
assertExactKeys(target, [
|
|
89
|
+
'kind',
|
|
90
|
+
'provider',
|
|
91
|
+
'accountId',
|
|
92
|
+
'targetKey',
|
|
93
|
+
'targetKeySha256',
|
|
94
|
+
'accountSummaryTargetKey',
|
|
95
|
+
'resourceCollectionTargetKey',
|
|
96
|
+
'recommendationsTargetKey',
|
|
97
|
+
'aiCostSummaryTargetKey',
|
|
98
|
+
'serviceRetirementTargetKey',
|
|
99
|
+
'commitmentAnalysisTargetKey',
|
|
100
|
+
'reliabilityTargetKey',
|
|
101
|
+
'accountGovernanceTargetKey',
|
|
102
|
+
'billing',
|
|
103
|
+
'resourceRegions',
|
|
104
|
+
'metricTimeWindow',
|
|
105
|
+
'aiCostSummaryAudience',
|
|
106
|
+
'serviceRetirementRegions',
|
|
107
|
+
'recommendationScopes',
|
|
108
|
+
'commitmentAnalysis',
|
|
109
|
+
'reliability',
|
|
110
|
+
'accountGovernance',
|
|
111
|
+
], 'target');
|
|
112
|
+
optionalEnum(target.aiCostSummaryAudience, ['portal', 'plugin'], 'target.aiCostSummaryAudience');
|
|
113
|
+
requiredString(target.accountSummaryTargetKey, 'target.accountSummaryTargetKey');
|
|
114
|
+
requiredString(target.resourceCollectionTargetKey, 'target.resourceCollectionTargetKey');
|
|
115
|
+
requiredString(target.recommendationsTargetKey, 'target.recommendationsTargetKey');
|
|
116
|
+
requiredString(target.serviceRetirementTargetKey, 'target.serviceRetirementTargetKey');
|
|
117
|
+
validateOptionalTargetKey(target.aiCostSummaryTargetKey, target.aiCostSummaryAudience !== undefined, 'target.aiCostSummaryTargetKey');
|
|
118
|
+
validateOptionalTargetKey(target.commitmentAnalysisTargetKey, target.commitmentAnalysis !== undefined, 'target.commitmentAnalysisTargetKey');
|
|
119
|
+
validateOptionalTargetKey(target.reliabilityTargetKey, target.reliability !== undefined, 'target.reliabilityTargetKey');
|
|
120
|
+
validateOptionalTargetKey(target.accountGovernanceTargetKey, target.accountGovernance !== undefined, 'target.accountGovernanceTargetKey');
|
|
121
|
+
stringArray(target.serviceRetirementRegions, 'target.serviceRetirementRegions');
|
|
122
|
+
validateCommitmentAnalysisTarget(target.commitmentAnalysis);
|
|
123
|
+
validateReliabilityTarget(target.reliability);
|
|
124
|
+
validateAccountGovernanceTarget(target.accountGovernance);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
assertExactKeys(target, [
|
|
128
|
+
'kind',
|
|
129
|
+
'provider',
|
|
130
|
+
'accountId',
|
|
131
|
+
'targetKey',
|
|
132
|
+
'targetKeySha256',
|
|
133
|
+
'resourceCollectionTargetKey',
|
|
134
|
+
'recommendationsTargetKey',
|
|
135
|
+
'billing',
|
|
136
|
+
'resourceRegions',
|
|
137
|
+
'metricTimeWindow',
|
|
138
|
+
'tagRuleScope',
|
|
139
|
+
'selector',
|
|
140
|
+
'stableKey',
|
|
141
|
+
'stableKeySha256',
|
|
142
|
+
'relationshipTargetKey',
|
|
143
|
+
'serviceRetirementTargetKey',
|
|
144
|
+
'recommendationScopes',
|
|
145
|
+
], 'target');
|
|
146
|
+
validateTagRuleScope(target.tagRuleScope);
|
|
147
|
+
requiredString(target.resourceCollectionTargetKey, 'target.resourceCollectionTargetKey');
|
|
148
|
+
requiredString(target.recommendationsTargetKey, 'target.recommendationsTargetKey');
|
|
149
|
+
validateSelector(target.selector, 'target.selector');
|
|
150
|
+
const stableKey = requiredString(target.stableKey, 'target.stableKey');
|
|
151
|
+
if (asRecord(target.selector, 'target.selector').kind === 'stable-key') {
|
|
152
|
+
assertValue(asRecord(target.selector, 'target.selector').stableKey, stableKey, 'target.selector.stableKey');
|
|
153
|
+
}
|
|
154
|
+
sha256(target.stableKeySha256, 'target.stableKeySha256');
|
|
155
|
+
assertValue(target.stableKeySha256, sha256AwsPluginIdentity(stableKey), 'target.stableKeySha256');
|
|
156
|
+
requiredString(target.relationshipTargetKey, 'target.relationshipTargetKey');
|
|
157
|
+
requiredString(target.serviceRetirementTargetKey, 'target.serviceRetirementTargetKey');
|
|
158
|
+
}
|
|
159
|
+
return value;
|
|
160
|
+
}
|
|
161
|
+
function validateOptionalTargetKey(value, required, field) {
|
|
162
|
+
if (required)
|
|
163
|
+
requiredString(value, field);
|
|
164
|
+
else if (value !== undefined)
|
|
165
|
+
throw new Error(`${field} requires its corresponding optional target.`);
|
|
166
|
+
}
|
|
167
|
+
function validateCommitmentAnalysisTarget(value) {
|
|
168
|
+
if (value === undefined)
|
|
169
|
+
return;
|
|
170
|
+
const target = asRecord(value, 'target.commitmentAnalysis');
|
|
171
|
+
assertExactKeys(target, ['resourceRegions', 'maxBenefitEntries'], 'target.commitmentAnalysis');
|
|
172
|
+
stringArray(target.resourceRegions, 'target.commitmentAnalysis.resourceRegions');
|
|
173
|
+
if (!Number.isSafeInteger(target.maxBenefitEntries) || Number(target.maxBenefitEntries) <= 0) {
|
|
174
|
+
throw new Error('target.commitmentAnalysis.maxBenefitEntries must be a positive safe integer.');
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
function validateReliabilityTarget(value) {
|
|
178
|
+
if (value === undefined)
|
|
179
|
+
return;
|
|
180
|
+
const target = asRecord(value, 'target.reliability');
|
|
181
|
+
assertExactKeys(target, ['includeTemplateContent', 'includeScoring', 'maxResultsPerSection', 'sectionScopeKeys'], 'target.reliability');
|
|
182
|
+
if (target.includeTemplateContent !== undefined)
|
|
183
|
+
assertValue(target.includeTemplateContent, true, 'target.reliability.includeTemplateContent');
|
|
184
|
+
if (target.includeScoring !== undefined)
|
|
185
|
+
assertValue(target.includeScoring, true, 'target.reliability.includeScoring');
|
|
186
|
+
if (!Number.isSafeInteger(target.maxResultsPerSection) || Number(target.maxResultsPerSection) <= 0) {
|
|
187
|
+
throw new Error('target.reliability.maxResultsPerSection must be a positive safe integer.');
|
|
188
|
+
}
|
|
189
|
+
stringArray(target.sectionScopeKeys, 'target.reliability.sectionScopeKeys');
|
|
190
|
+
}
|
|
191
|
+
function validateAccountGovernanceTarget(value) {
|
|
192
|
+
if (value === undefined)
|
|
193
|
+
return;
|
|
194
|
+
const target = asRecord(value, 'target.accountGovernance');
|
|
195
|
+
assertExactKeys(target, ['apiRegion'], 'target.accountGovernance');
|
|
196
|
+
requiredString(target.apiRegion, 'target.accountGovernance.apiRegion');
|
|
197
|
+
}
|
|
198
|
+
function validateRecommendationScopes(value, accountId) {
|
|
199
|
+
if (!Array.isArray(value))
|
|
200
|
+
throw new Error('target.recommendationScopes must be an array.');
|
|
201
|
+
const scopes = value;
|
|
202
|
+
scopes.forEach((value, index) => {
|
|
203
|
+
const field = `target.recommendationScopes[${index}]`;
|
|
204
|
+
const scope = asRecord(value, field);
|
|
205
|
+
assertExactKeys(scope, ['source', 'scope', 'accountId', 'scopeDiscriminator', 'computeOptimizerFamily', 'resourceRegions', 'targetKey', 'actionabilityTargetKey'], field);
|
|
206
|
+
requiredEnum(scope.source, ['custom', 'compute-optimizer', 'cost-optimization-hub', 'resilience-hub', 'security-hub', 'trusted-advisor', 'well-architected'], `${field}.source`);
|
|
207
|
+
assertValue(scope.scope, 'account', `${field}.scope`);
|
|
208
|
+
assertAccount(scope.accountId, accountId, `${field}.accountId`);
|
|
209
|
+
if (scope.scopeDiscriminator !== undefined)
|
|
210
|
+
requiredString(scope.scopeDiscriminator, `${field}.scopeDiscriminator`);
|
|
211
|
+
if (scope.computeOptimizerFamily !== undefined)
|
|
212
|
+
requiredString(scope.computeOptimizerFamily, `${field}.computeOptimizerFamily`);
|
|
213
|
+
stringArray(scope.resourceRegions, `${field}.resourceRegions`);
|
|
214
|
+
requiredString(scope.targetKey, `${field}.targetKey`);
|
|
215
|
+
requiredString(scope.actionabilityTargetKey, `${field}.actionabilityTargetKey`);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|