@spottoai/types-package 1.0.2-beta.27 → 1.0.2-beta.270
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 +4 -13
- package/dist/accounts/accounts.d.ts +426 -2
- package/dist/accounts/accounts.d.ts.map +1 -1
- package/dist/accounts/accounts.js +123 -0
- package/dist/accounts/accounts.js.map +1 -1
- package/dist/accounts/azureSpSetup.d.ts +297 -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/index.d.ts +3 -0
- package/dist/accounts/index.d.ts.map +1 -1
- package/dist/accounts/index.js +3 -0
- package/dist/accounts/index.js.map +1 -1
- package/dist/accounts/readPermissions.d.ts +64 -0
- package/dist/accounts/readPermissions.d.ts.map +1 -0
- package/dist/accounts/readPermissions.js +148 -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 +34 -0
- package/dist/accounts/writePermissions.d.ts.map +1 -0
- package/dist/accounts/writePermissions.js +37 -0
- package/dist/accounts/writePermissions.js.map +1 -0
- package/dist/ai/index.d.ts +994 -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/azure/activityLogs.d.ts +65 -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 +137 -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/billingPlots.d.ts +249 -0
- package/dist/azure/billingPlots.d.ts.map +1 -0
- package/dist/azure/billingPlots.js +6 -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 +586 -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 +44 -0
- 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/costEstimation.d.ts +78 -0
- package/dist/azure/costEstimation.d.ts.map +1 -0
- package/dist/azure/costEstimation.js +3 -0
- package/dist/azure/costEstimation.js.map +1 -0
- package/dist/azure/governance.d.ts +826 -0
- package/dist/azure/governance.d.ts.map +1 -0
- package/dist/azure/governance.js +14 -0
- package/dist/azure/governance.js.map +1 -0
- package/dist/azure/metrics.d.ts +81 -4
- package/dist/azure/metrics.d.ts.map +1 -1
- package/dist/azure/payloads.d.ts +292 -1
- package/dist/azure/payloads.d.ts.map +1 -1
- package/dist/azure/prices.d.ts +177 -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 +113 -0
- package/dist/azure/recommendationAudit.d.ts.map +1 -0
- package/dist/azure/recommendationAudit.js +10 -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/recommendationWorkflow.d.ts +124 -0
- package/dist/azure/recommendationWorkflow.d.ts.map +1 -0
- package/dist/azure/recommendationWorkflow.js +15 -0
- package/dist/azure/recommendationWorkflow.js.map +1 -0
- package/dist/azure/recommendations.d.ts +537 -6
- package/dist/azure/recommendations.d.ts.map +1 -1
- package/dist/azure/recommendations.js.map +1 -1
- 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/reports.d.ts +279 -1
- package/dist/azure/reports.d.ts.map +1 -1
- package/dist/azure/reports.js +13 -0
- 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/resources.d.ts +80 -0
- package/dist/azure/resources.d.ts.map +1 -1
- package/dist/azure/reviewChecklist.d.ts +139 -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/security.d.ts +15 -1
- package/dist/azure/security.d.ts.map +1 -1
- package/dist/azure/serviceRetirement.d.ts +28 -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/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 +46 -15
- package/dist/azure/subscriptions.d.ts.map +1 -1
- package/dist/azure/views.d.ts +540 -4
- package/dist/azure/views.d.ts.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -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 +9 -0
- package/dist/common/provider.d.ts.map +1 -0
- package/dist/common/provider.js +9 -0
- package/dist/common/provider.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 +60 -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/index.d.ts +2 -0
- package/dist/company/index.d.ts.map +1 -1
- package/dist/company/index.js +2 -0
- package/dist/company/index.js.map +1 -1
- package/dist/company/notification.d.ts +34 -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/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 +130 -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 +361 -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 +23 -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 +7 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +23 -0
- package/dist/events/index.js.map +1 -0
- package/dist/features-and-permissions/access.d.ts +137 -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 +23 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/dist/index.vite.d.ts +43 -0
- package/dist/index.vite.d.ts.map +1 -0
- package/dist/index.vite.js +59 -0
- package/dist/index.vite.js.map +1 -0
- package/dist/integrations/autotask.d.ts +90 -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 +67 -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/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 +257 -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 +6 -0
- package/dist/users/companyUser.d.ts.map +1 -1
- package/dist/users/companyUser.js.map +1 -1
- package/dist/users/user.d.ts +16 -1
- package/dist/users/user.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,126 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTION_SYNC_STEP_ORDER = exports.getAzureSyncFeatureIdsForScope = exports.getAzureSyncFeatureOptions = exports.sortAzureSyncFeatureIds = exports.isAzureSyncFeatureSupportedInScope = exports.getAzureSyncFeatureMetadata = exports.isAzureSyncFeatureId = exports.AZURE_SYNC_FEATURE_METADATA = exports.AZURE_SYNC_FEATURE_ORDER = void 0;
|
|
4
|
+
exports.AZURE_SYNC_FEATURE_ORDER = [
|
|
5
|
+
'activityMonitoring',
|
|
6
|
+
'metrics',
|
|
7
|
+
'billing',
|
|
8
|
+
'pricing',
|
|
9
|
+
'costEstimation',
|
|
10
|
+
'commitments',
|
|
11
|
+
'relationshipGraphs',
|
|
12
|
+
'governance',
|
|
13
|
+
'availabilityZones',
|
|
14
|
+
'reliability',
|
|
15
|
+
'perimeterInsights',
|
|
16
|
+
'reportEvidencePack',
|
|
17
|
+
];
|
|
18
|
+
exports.AZURE_SYNC_FEATURE_METADATA = [
|
|
19
|
+
{
|
|
20
|
+
id: 'activityMonitoring',
|
|
21
|
+
displayName: 'Activity monitoring',
|
|
22
|
+
description: 'Collects Azure activity logs and activity-derived operational events.',
|
|
23
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
24
|
+
warning: 'Disabling activity monitoring prevents activity log collection and related detections.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'metrics',
|
|
28
|
+
displayName: 'Metrics',
|
|
29
|
+
description: 'Collects subscription resource metrics used for utilization and rightsizing insights.',
|
|
30
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'billing',
|
|
34
|
+
displayName: 'Billing',
|
|
35
|
+
description: 'Collects billing and cost usage data.',
|
|
36
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: 'pricing',
|
|
40
|
+
displayName: 'Pricing',
|
|
41
|
+
description: 'Collects Azure price data used for cost calculations.',
|
|
42
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'costEstimation',
|
|
46
|
+
displayName: 'Cost estimation',
|
|
47
|
+
description: 'Builds estimated costs when billing-backed usage is unavailable or incomplete.',
|
|
48
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'commitments',
|
|
52
|
+
displayName: 'Reservations and commitments',
|
|
53
|
+
description: 'Collects reserved instances, savings plans, and commitment utilization data.',
|
|
54
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'relationshipGraphs',
|
|
58
|
+
displayName: 'Relationship graphs',
|
|
59
|
+
description: 'Builds relationship graph artifacts from scanned Azure resources.',
|
|
60
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'governance',
|
|
64
|
+
displayName: 'Governance',
|
|
65
|
+
description: 'Builds tenant and subscription governance reports and graph artifacts.',
|
|
66
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'availabilityZones',
|
|
70
|
+
displayName: 'Availability zones',
|
|
71
|
+
description: 'Collects tenant-level availability zone mappings.',
|
|
72
|
+
supportedScopes: ['cloudAccount'],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'reliability',
|
|
76
|
+
displayName: 'Reliability',
|
|
77
|
+
description: 'Collects reliability signals and recommendations for subscription resources.',
|
|
78
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: 'perimeterInsights',
|
|
82
|
+
displayName: 'Perimeter insights',
|
|
83
|
+
description: 'Builds public IP and perimeter exposure insights.',
|
|
84
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'reportEvidencePack',
|
|
88
|
+
displayName: 'Report evidence pack',
|
|
89
|
+
description: 'Builds evidence artifacts used by reports and review workflows.',
|
|
90
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
const AZURE_SYNC_FEATURE_ORDER_INDEX = new Map(exports.AZURE_SYNC_FEATURE_ORDER.map((featureId, index) => [featureId, index]));
|
|
94
|
+
const AZURE_SYNC_FEATURE_IDS = new Set(exports.AZURE_SYNC_FEATURE_ORDER);
|
|
95
|
+
const isAzureSyncFeatureId = (value) => AZURE_SYNC_FEATURE_IDS.has(value);
|
|
96
|
+
exports.isAzureSyncFeatureId = isAzureSyncFeatureId;
|
|
97
|
+
const getAzureSyncFeatureMetadata = (featureId) => exports.AZURE_SYNC_FEATURE_METADATA.find((feature) => feature.id === featureId) ?? {
|
|
98
|
+
id: featureId,
|
|
99
|
+
displayName: featureId,
|
|
100
|
+
description: '',
|
|
101
|
+
supportedScopes: ['cloudAccount', 'subscription'],
|
|
102
|
+
};
|
|
103
|
+
exports.getAzureSyncFeatureMetadata = getAzureSyncFeatureMetadata;
|
|
104
|
+
const isAzureSyncFeatureSupportedInScope = (featureId, scope) => (0, exports.getAzureSyncFeatureMetadata)(featureId).supportedScopes.includes(scope);
|
|
105
|
+
exports.isAzureSyncFeatureSupportedInScope = isAzureSyncFeatureSupportedInScope;
|
|
106
|
+
const sortAzureSyncFeatureIds = (featureIds) => [...featureIds].sort((left, right) => (AZURE_SYNC_FEATURE_ORDER_INDEX.get(left) ?? Number.MAX_SAFE_INTEGER) -
|
|
107
|
+
(AZURE_SYNC_FEATURE_ORDER_INDEX.get(right) ?? Number.MAX_SAFE_INTEGER));
|
|
108
|
+
exports.sortAzureSyncFeatureIds = sortAzureSyncFeatureIds;
|
|
109
|
+
const supportsAzureSyncFeatureScope = (feature, scope) => feature.supportedScopes.includes(scope);
|
|
110
|
+
const getAzureSyncFeatureOptions = (scope) => exports.AZURE_SYNC_FEATURE_METADATA.filter((feature) => supportsAzureSyncFeatureScope(feature, scope));
|
|
111
|
+
exports.getAzureSyncFeatureOptions = getAzureSyncFeatureOptions;
|
|
112
|
+
const getAzureSyncFeatureIdsForScope = (scope) => (0, exports.getAzureSyncFeatureOptions)(scope).map((feature) => feature.id);
|
|
113
|
+
exports.getAzureSyncFeatureIdsForScope = getAzureSyncFeatureIdsForScope;
|
|
114
|
+
exports.SUBSCRIPTION_SYNC_STEP_ORDER = [
|
|
115
|
+
'metrics',
|
|
116
|
+
'resourcegroups',
|
|
117
|
+
'activities',
|
|
118
|
+
'queries',
|
|
119
|
+
'reliability',
|
|
120
|
+
'billing',
|
|
121
|
+
'costestimation',
|
|
122
|
+
'pricing',
|
|
123
|
+
'commitments',
|
|
124
|
+
'views',
|
|
125
|
+
];
|
|
3
126
|
//# sourceMappingURL=accounts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/accounts/accounts.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/accounts/accounts.ts"],"names":[],"mappings":";;;AAwLa,QAAA,wBAAwB,GAAG;IACtC,oBAAoB;IACpB,SAAS;IACT,SAAS;IACT,SAAS;IACT,gBAAgB;IAChB,aAAa;IACb,oBAAoB;IACpB,YAAY;IACZ,mBAAmB;IACnB,aAAa;IACb,mBAAmB;IACnB,oBAAoB;CACZ,CAAC;AAaE,QAAA,2BAA2B,GAAG;IACzC;QACE,EAAE,EAAE,oBAAoB;QACxB,WAAW,EAAE,qBAAqB;QAClC,WAAW,EAAE,uEAAuE;QACpF,eAAe,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;QACjD,OAAO,EAAE,wFAAwF;KAClG;IACD;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS;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G,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,gBAAgB,CAAC;IACrE,CAAC,8BAA8B,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,gBAAgB,CAAC,CACzE,CAAC;AALS,QAAA,uBAAuB,2BAKhC;AAEJ,MAAM,6BAA6B,GAAG,CACpC,OAAiC,EACjC,KAAyC,EAChC,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAE/C,MAAM,0BAA0B,GAAG,CAAC,KAAyC,EAA8B,EAAE,CAClH,mCAA2B,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,6BAA6B,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AADpF,QAAA,0BAA0B,8BAC0D;AAE1F,MAAM,8BAA8B,GAAG,CAAC,KAAyC,EAAwB,EAAE,CAChH,IAAA,kCAA0B,EAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AADpD,QAAA,8BAA8B,kCACsB;AAUpD,QAAA,4BAA4B,GAAG;IAC1C,SAAS;IACT,gBAAgB;IAChB,YAAY;IACZ,SAAS;IACT,aAAa;IACb,SAAS;IACT,gBAAgB;IAChB,SAAS;IACT,aAAa;IACb,OAAO;CACC,CAAC"}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
export type AzureSpSetupPhase = 'created' | 'authorizing' | 'authorized' | 'tenantSelectionRequired' | 'planning' | 'readyToExecute' | 'executing' | 'completed' | 'needsAdminAction' | 'failed' | 'cancelled' | 'expired';
|
|
2
|
+
export type AzureSpSetupResult = 'none' | 'complete' | 'partial' | 'needsAdminAction' | 'failed' | 'cancelled' | 'expired';
|
|
3
|
+
export type AzureSpSetupMode = 'createCloudAccount' | 'grantAdditionalPermissions';
|
|
4
|
+
export type AzureSpSetupErrorCode = 'access_denied' | 'duplicate_tenant' | 'target_cloud_account_required' | 'target_cloud_account_not_found' | 'target_cloud_account_tenant_mismatch' | 'target_cloud_account_not_service_principal' | 'insufficient_entra_permission' | 'insufficient_rbac_permission' | 'tenant_selection_required' | 'no_readable_subscription_selected' | 'subscription_reader_assignment_failed' | 'service_principal_validation_failed' | 'graph_admin_consent_failed' | 'billing_export_storage_failed' | 'billing_export_failed' | 'billing_export_unavailable' | 'provider_registration_failed' | 'optional_assignment_failed' | 'setup_expired' | 'setup_cancelled' | 'azure_propagation_pending' | 'unknown';
|
|
5
|
+
export type AzureSpPermissionRequirement = 'required' | 'recommended' | 'optional';
|
|
6
|
+
export type AzureSpPermissionStatus = 'notStarted' | 'running' | 'succeeded' | 'failed' | 'skipped' | 'alreadyExists';
|
|
7
|
+
export type AzureSpPermissionCapabilityStatus = 'unknown' | 'likelyAllowed' | 'likelyMissing';
|
|
8
|
+
export type AzureSpPermissionFailureBehavior = 'blockSetup' | 'completePartial' | 'warnOnly';
|
|
9
|
+
export type AzureSpSetupPermissionCapabilityGroupKey = 'baselineResourceInventory' | 'monitoringLogs' | 'costBillingExports' | 'governanceIdentity' | 'reservationsSavingsPlans' | 'optionalWriteActions';
|
|
10
|
+
export type AzureSpSetupPermissionCapabilityGroupStatus = AzureSpPermissionStatus | 'partial';
|
|
11
|
+
export type AzureSpSetupPermissionCapabilitySeverity = 'required' | 'recommended' | 'optionalAdvanced';
|
|
12
|
+
export type AzureSpPermissionScopeKind = 'tenant' | 'application' | 'servicePrincipal' | 'subscription' | 'tenantRoot' | 'managementGroup' | 'provider' | 'storageAccount' | 'storageContainer' | 'costManagementExport';
|
|
13
|
+
export type AzureSpPermissionKey = 'entraApplication' | 'entraServicePrincipal' | 'entraClientSecret' | 'subscriptionReader' | 'tenantRootReader' | 'monitoringReader' | 'logAnalyticsReader' | 'rootManagementGroupReader' | 'managementGroupReader' | 'reservationsReader' | 'reservationsContributor' | 'savingsPlanReader' | 'graphApplicationReadAll' | 'billingScopeReader' | 'costManagementProviderRegistration' | 'billingExportStorage' | 'billingExportContainer' | 'billingExportStorageBlobReader' | 'billingExportActualDaily' | 'billingExportAmortizedDaily' | 'billingExportActualBackfill' | 'billingExportAmortizedBackfill' | 'customWriteRoleDefinition' | 'customWriteRoleAssignment';
|
|
14
|
+
export type AzureSpOperationKind = 'discoverApplication' | 'createApplication' | 'discoverServicePrincipal' | 'createServicePrincipal' | 'createClientSecret' | 'assignAzureRole' | 'grantGraphAppRole' | 'registerProvider' | 'prepareStorage' | 'prepareContainer' | 'createOrUpdateCostExport' | 'queueCostExportRun' | 'createOrUpdateCustomRole' | 'validateServicePrincipal' | 'queueFirstSync';
|
|
15
|
+
export type AzureSpOperationPlannedAction = 'none' | 'create' | 'update' | 'grant' | 'queue' | 'skip';
|
|
16
|
+
export type AzureSpOperationCurrentState = 'missing' | 'alreadyExists' | 'unavailable' | 'unknown';
|
|
17
|
+
export type AzureSpOperationResultStatus = 'notStarted' | 'running' | 'alreadyExists' | 'created' | 'updated' | 'granted' | 'queued' | 'skipped' | 'unavailable' | 'failed';
|
|
18
|
+
export type AzureSpBillingExportMode = 'skip' | 'reuseExisting' | 'useExistingStorage' | 'createStorage';
|
|
19
|
+
export type AzureSpBillingExportDataset = 'ActualCost' | 'AmortizedCost';
|
|
20
|
+
export type AzureSpBillingExportEffectiveDefinitionType = 'ActualCost' | 'Usage' | 'AmortizedCost';
|
|
21
|
+
export type AzureSpBillingExportResultStatus = 'notStarted' | 'existing' | 'created' | 'updated' | 'createdRunQueued' | 'queued' | 'requeued' | 'failed' | 'unavailable' | 'skipped';
|
|
22
|
+
export interface AzureSpSetupStartRequest {
|
|
23
|
+
redirectAfter?: string;
|
|
24
|
+
mode?: AzureSpSetupMode;
|
|
25
|
+
targetCloudAccountId?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface AzureSpSetupStartResponse {
|
|
28
|
+
setupId: string;
|
|
29
|
+
authorizationUrl: string;
|
|
30
|
+
expiresAt: string;
|
|
31
|
+
}
|
|
32
|
+
export interface AzureSpSetupTenant {
|
|
33
|
+
tenantId: string;
|
|
34
|
+
displayName?: string;
|
|
35
|
+
label: string;
|
|
36
|
+
isAlreadyConnected: boolean;
|
|
37
|
+
connectedCloudAccountId?: string;
|
|
38
|
+
requiresTenantAuthorization: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface AzureSpSetupSubscriptionOption {
|
|
41
|
+
subscriptionId: string;
|
|
42
|
+
displayName: string;
|
|
43
|
+
tenantId: string;
|
|
44
|
+
state?: string;
|
|
45
|
+
isVisible: boolean;
|
|
46
|
+
isReadableCandidate: boolean;
|
|
47
|
+
isSelectedByDefault: boolean;
|
|
48
|
+
warningCode?: string;
|
|
49
|
+
warningMessage?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface AzureSpPermissionManifestItem {
|
|
52
|
+
key: AzureSpPermissionKey;
|
|
53
|
+
requirement: AzureSpPermissionRequirement;
|
|
54
|
+
displayName: string;
|
|
55
|
+
userFacingLabel: string;
|
|
56
|
+
description: string;
|
|
57
|
+
scopeKind: AzureSpPermissionScopeKind;
|
|
58
|
+
defaultSelected: boolean;
|
|
59
|
+
userDeselectable: boolean;
|
|
60
|
+
requiredPrivilege: string;
|
|
61
|
+
detectOperation: AzureSpOperationKind;
|
|
62
|
+
applyOperation: AzureSpOperationKind;
|
|
63
|
+
failureBehavior: AzureSpPermissionFailureBehavior;
|
|
64
|
+
}
|
|
65
|
+
export interface AzureSpSetupPermissionPlanItem {
|
|
66
|
+
key: AzureSpPermissionKey;
|
|
67
|
+
instanceKey: string;
|
|
68
|
+
requirement: AzureSpPermissionRequirement;
|
|
69
|
+
scopeKind: AzureSpPermissionScopeKind;
|
|
70
|
+
displayName: string;
|
|
71
|
+
userFacingLabel: string;
|
|
72
|
+
description: string;
|
|
73
|
+
scope: string;
|
|
74
|
+
externalResourceId?: string;
|
|
75
|
+
idempotencyKey: string;
|
|
76
|
+
roleDefinitionName?: string;
|
|
77
|
+
requiredPrivilege: string;
|
|
78
|
+
selectedByDefault: boolean;
|
|
79
|
+
isDeselectable: boolean;
|
|
80
|
+
capabilityStatus: AzureSpPermissionCapabilityStatus;
|
|
81
|
+
capabilityReason?: string;
|
|
82
|
+
currentState: AzureSpOperationCurrentState;
|
|
83
|
+
plannedAction: AzureSpOperationPlannedAction;
|
|
84
|
+
detectOperation: AzureSpOperationKind;
|
|
85
|
+
applyOperation: AzureSpOperationKind;
|
|
86
|
+
failureBehavior: AzureSpPermissionFailureBehavior;
|
|
87
|
+
status: AzureSpPermissionStatus;
|
|
88
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
89
|
+
message?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface AzureSpSetupOperationResult {
|
|
92
|
+
operationKey: string;
|
|
93
|
+
permissionKey?: AzureSpPermissionKey;
|
|
94
|
+
instanceKey?: string;
|
|
95
|
+
operationKind: AzureSpOperationKind;
|
|
96
|
+
idempotencyKey: string;
|
|
97
|
+
externalResourceId?: string;
|
|
98
|
+
status: AzureSpOperationResultStatus;
|
|
99
|
+
safeMessage?: string;
|
|
100
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
101
|
+
startedAt?: string;
|
|
102
|
+
completedAt?: string;
|
|
103
|
+
}
|
|
104
|
+
export interface AzureSpSetupProgressStep {
|
|
105
|
+
key: 'microsoftAuthorization' | 'tenantSelection' | 'servicePrincipal' | 'credential' | 'readerAccess' | 'optionalPermissions' | 'billingExports' | 'spottoValidation' | 'cloudAccountSaved' | 'firstSyncQueued';
|
|
106
|
+
status: AzureSpPermissionStatus;
|
|
107
|
+
message?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface AzureSpSetupPermissionCapabilityCounts {
|
|
110
|
+
total: number;
|
|
111
|
+
selectedByDefault: number;
|
|
112
|
+
selectedForExecution: number;
|
|
113
|
+
succeeded: number;
|
|
114
|
+
alreadyExists: number;
|
|
115
|
+
failed: number;
|
|
116
|
+
skipped: number;
|
|
117
|
+
notStarted: number;
|
|
118
|
+
running: number;
|
|
119
|
+
}
|
|
120
|
+
export interface AzureSpSetupPermissionCapabilitySummary {
|
|
121
|
+
key: AzureSpSetupPermissionCapabilityGroupKey;
|
|
122
|
+
displayName: string;
|
|
123
|
+
description: string;
|
|
124
|
+
requirement: AzureSpPermissionRequirement;
|
|
125
|
+
severity: AzureSpSetupPermissionCapabilitySeverity;
|
|
126
|
+
selectedByDefault: boolean;
|
|
127
|
+
selectedForExecution: boolean;
|
|
128
|
+
status: AzureSpSetupPermissionCapabilityGroupStatus;
|
|
129
|
+
benefit: string;
|
|
130
|
+
skippedImpact: string;
|
|
131
|
+
permissionInstanceKeys: string[];
|
|
132
|
+
selectedPermissionInstanceKeys: string[];
|
|
133
|
+
counts: AzureSpSetupPermissionCapabilityCounts;
|
|
134
|
+
}
|
|
135
|
+
export interface AzureSpSetupPermissionSummary {
|
|
136
|
+
posture: 'recommendedReadOnly';
|
|
137
|
+
title: string;
|
|
138
|
+
description: string;
|
|
139
|
+
mode: AzureSpSetupMode;
|
|
140
|
+
modeLabel: string;
|
|
141
|
+
modeDescription: string;
|
|
142
|
+
recommendedReadOnlyByDefault: true;
|
|
143
|
+
optionalWriteSelectedByDefault: boolean;
|
|
144
|
+
totalPermissionCount: number;
|
|
145
|
+
selectedByDefaultCount: number;
|
|
146
|
+
selectedForExecutionCount: number;
|
|
147
|
+
optionalWritePermissionCount: number;
|
|
148
|
+
capabilityGroups: AzureSpSetupPermissionCapabilitySummary[];
|
|
149
|
+
}
|
|
150
|
+
export interface AzureSpBillingExportStorageOption {
|
|
151
|
+
storageAccountResourceId: string;
|
|
152
|
+
subscriptionId: string;
|
|
153
|
+
resourceGroupName: string;
|
|
154
|
+
storageAccountName: string;
|
|
155
|
+
location?: string;
|
|
156
|
+
isFromCompatibleExistingExport: boolean;
|
|
157
|
+
containerName?: string;
|
|
158
|
+
}
|
|
159
|
+
export interface AzureSpBillingExportDetectedExport {
|
|
160
|
+
subscriptionId: string;
|
|
161
|
+
exportScope?: string;
|
|
162
|
+
exportScopeLabel?: string;
|
|
163
|
+
requiresBillingScopeReader?: boolean;
|
|
164
|
+
dataset: AzureSpBillingExportDataset;
|
|
165
|
+
effectiveDefinitionType?: AzureSpBillingExportEffectiveDefinitionType;
|
|
166
|
+
exportName: string;
|
|
167
|
+
exportResourceId: string;
|
|
168
|
+
storageAccountResourceId: string;
|
|
169
|
+
containerName: string;
|
|
170
|
+
rootFolderPath?: string;
|
|
171
|
+
isCompatible: boolean;
|
|
172
|
+
isActiveDaily?: boolean;
|
|
173
|
+
canBeReused?: boolean;
|
|
174
|
+
}
|
|
175
|
+
export interface AzureSpBillingExportPlan {
|
|
176
|
+
enabledByDefault: boolean;
|
|
177
|
+
selectedByDefault: boolean;
|
|
178
|
+
defaultContainerName: 'spotto-cost-exports';
|
|
179
|
+
defaultRootFolderPath: 'spotto';
|
|
180
|
+
defaultResourceGroupName: 'rg-spotto-cost-exports';
|
|
181
|
+
defaultLocation: 'australiaeast';
|
|
182
|
+
detectedCompatibleExports: AzureSpBillingExportDetectedExport[];
|
|
183
|
+
storageOptions: AzureSpBillingExportStorageOption[];
|
|
184
|
+
selectedMode?: AzureSpBillingExportMode;
|
|
185
|
+
selectedReuseDetectedExportResourceIds?: string[];
|
|
186
|
+
selectedStorageAccountResourceId?: string;
|
|
187
|
+
selectedContainerName?: string;
|
|
188
|
+
createStorage?: {
|
|
189
|
+
subscriptionId: string;
|
|
190
|
+
resourceGroupName: string;
|
|
191
|
+
location: string;
|
|
192
|
+
storageAccountName: string;
|
|
193
|
+
containerName: string;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
export interface AzureSpBillingExportResult {
|
|
197
|
+
subscriptionId: string;
|
|
198
|
+
dataset?: AzureSpBillingExportDataset;
|
|
199
|
+
effectiveDefinitionType?: AzureSpBillingExportEffectiveDefinitionType;
|
|
200
|
+
exportKind: 'recurring' | 'backfill' | 'storage' | 'providerRegistration';
|
|
201
|
+
exportName?: string;
|
|
202
|
+
exportResourceId?: string;
|
|
203
|
+
periodName?: string;
|
|
204
|
+
status: AzureSpBillingExportResultStatus;
|
|
205
|
+
storageAccountResourceId?: string;
|
|
206
|
+
containerName?: string;
|
|
207
|
+
rootFolderPath?: string;
|
|
208
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
209
|
+
message?: string;
|
|
210
|
+
}
|
|
211
|
+
export interface AzureSpSetupStatusResponse {
|
|
212
|
+
setupId: string;
|
|
213
|
+
companyId: string;
|
|
214
|
+
mode: AzureSpSetupMode;
|
|
215
|
+
phase: AzureSpSetupPhase;
|
|
216
|
+
result: AzureSpSetupResult;
|
|
217
|
+
selectedTenantId?: string;
|
|
218
|
+
targetCloudAccountId?: string;
|
|
219
|
+
targetCloudAccountName?: string;
|
|
220
|
+
targetAzureApplicationAppId?: string;
|
|
221
|
+
permissionManifestVersion?: string;
|
|
222
|
+
targetPermissionManifestVersion?: string;
|
|
223
|
+
tenants?: AzureSpSetupTenant[];
|
|
224
|
+
subscriptions?: AzureSpSetupSubscriptionOption[];
|
|
225
|
+
permissionPlan?: AzureSpSetupPermissionPlanItem[];
|
|
226
|
+
permissionSummary?: AzureSpSetupPermissionSummary;
|
|
227
|
+
billingExportPlan?: AzureSpBillingExportPlan;
|
|
228
|
+
billingExportResults?: AzureSpBillingExportResult[];
|
|
229
|
+
operationResults?: AzureSpSetupOperationResult[];
|
|
230
|
+
progress?: AzureSpSetupProgressStep[];
|
|
231
|
+
resultCloudAccountId?: string;
|
|
232
|
+
resultCloudAccountName?: string;
|
|
233
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
234
|
+
errorMessage?: string;
|
|
235
|
+
expiresAt: string;
|
|
236
|
+
canRetry: boolean;
|
|
237
|
+
canExecute: boolean;
|
|
238
|
+
executionId?: string;
|
|
239
|
+
executionAttempt?: number;
|
|
240
|
+
leaseExpiresAt?: string;
|
|
241
|
+
}
|
|
242
|
+
export interface AzureSpSetupSelectTenantRequest {
|
|
243
|
+
tenantId: string;
|
|
244
|
+
}
|
|
245
|
+
export interface AzureSpSetupSelectTenantResponse extends AzureSpSetupStatusResponse {
|
|
246
|
+
selectedTenantId: string;
|
|
247
|
+
authorizationUrl?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface AzureSpSetupAuthorizeTenantResponse {
|
|
250
|
+
setupId: string;
|
|
251
|
+
authorizationUrl: string;
|
|
252
|
+
expiresAt: string;
|
|
253
|
+
}
|
|
254
|
+
export interface AzureSpSetupPlanRequest {
|
|
255
|
+
subscriptionIds: string[];
|
|
256
|
+
selectedPermissionInstanceKeys?: string[];
|
|
257
|
+
useTenantRootReader?: boolean;
|
|
258
|
+
billingExports?: {
|
|
259
|
+
enabled: boolean;
|
|
260
|
+
mode?: AzureSpBillingExportMode;
|
|
261
|
+
reuseDetectedExportResourceIds?: string[];
|
|
262
|
+
storageAccountResourceId?: string;
|
|
263
|
+
createStorage?: {
|
|
264
|
+
subscriptionId: string;
|
|
265
|
+
resourceGroupName: string;
|
|
266
|
+
location: string;
|
|
267
|
+
storageAccountName: string;
|
|
268
|
+
containerName: string;
|
|
269
|
+
};
|
|
270
|
+
containerName?: string;
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
export interface AzureSpSetupPlanResponse extends AzureSpSetupStatusResponse {
|
|
274
|
+
phase: 'readyToExecute';
|
|
275
|
+
permissionPlan: AzureSpSetupPermissionPlanItem[];
|
|
276
|
+
subscriptions: AzureSpSetupSubscriptionOption[];
|
|
277
|
+
}
|
|
278
|
+
export interface AzureSpSetupExecuteRequest {
|
|
279
|
+
subscriptionIds: string[];
|
|
280
|
+
selectedPermissionInstanceKeys: string[];
|
|
281
|
+
billingExports?: AzureSpSetupPlanRequest['billingExports'];
|
|
282
|
+
cloudAccountName?: string;
|
|
283
|
+
groupNames?: string[];
|
|
284
|
+
readBitmask?: number;
|
|
285
|
+
writeBitmask?: number;
|
|
286
|
+
}
|
|
287
|
+
export type AzureSpSetupExecuteResponse = AzureSpSetupStatusResponse;
|
|
288
|
+
export interface AzureSpSetupExecuteSuccessResponse extends AzureSpSetupStatusResponse {
|
|
289
|
+
phase: 'completed';
|
|
290
|
+
result: 'complete' | 'partial';
|
|
291
|
+
resultCloudAccountId: string;
|
|
292
|
+
}
|
|
293
|
+
export interface AzureSpSetupCancelResponse extends AzureSpSetupStatusResponse {
|
|
294
|
+
phase: 'cancelled';
|
|
295
|
+
result: 'cancelled';
|
|
296
|
+
}
|
|
297
|
+
//# sourceMappingURL=azureSpSetup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureSpSetup.d.ts","sourceRoot":"","sources":["../../src/accounts/azureSpSetup.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,aAAa,GACb,YAAY,GACZ,yBAAyB,GACzB,UAAU,GACV,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,kBAAkB,GAClB,QAAQ,GACR,WAAW,GACX,SAAS,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,kBAAkB,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAE3H,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,4BAA4B,CAAC;AAEnF,MAAM,MAAM,qBAAqB,GAC7B,eAAe,GACf,kBAAkB,GAClB,+BAA+B,GAC/B,gCAAgC,GAChC,sCAAsC,GACtC,4CAA4C,GAC5C,+BAA+B,GAC/B,8BAA8B,GAC9B,2BAA2B,GAC3B,mCAAmC,GACnC,uCAAuC,GACvC,qCAAqC,GACrC,4BAA4B,GAC5B,+BAA+B,GAC/B,uBAAuB,GACvB,4BAA4B,GAC5B,8BAA8B,GAC9B,4BAA4B,GAC5B,eAAe,GACf,iBAAiB,GACjB,2BAA2B,GAC3B,SAAS,CAAC;AAEd,MAAM,MAAM,4BAA4B,GAAG,UAAU,GAAG,aAAa,GAAG,UAAU,CAAC;AACnF,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,G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,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,wBAAyB,SAAQ,0BAA0B;IAC1E,KAAK,EAAE,gBAAgB,CAAC;IACxB,cAAc,EAAE,8BAA8B,EAAE,CAAC;IACjD,aAAa,EAAE,8BAA8B,EAAE,CAAC;CACjD;AAED,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,8BAA8B,EAAE,MAAM,EAAE,CAAC;IACzC,cAAc,CAAC,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,2BAA2B,GAAG,0BAA0B,CAAC;AAErE,MAAM,WAAW,kCAAmC,SAAQ,0BAA0B;IACpF,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,0BAA2B,SAAQ,0BAA0B;IAC5E,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureSpSetup.js","sourceRoot":"","sources":["../../src/accounts/azureSpSetup.ts"],"names":[],"mappings":""}
|
package/dist/accounts/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accounts/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accounts/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
package/dist/accounts/index.js
CHANGED
|
@@ -15,4 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./accounts"), exports);
|
|
18
|
+
__exportStar(require("./azureSpSetup"), exports);
|
|
19
|
+
__exportStar(require("./writePermissions"), exports);
|
|
20
|
+
__exportStar(require("./readPermissions"), exports);
|
|
18
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,iDAA+B;AAC/B,qDAAmC;AACnC,oDAAkC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type { CloudAccountCapabilityValidationPlan, CloudAccountCapabilityValidationProgress, CloudAccountCapabilityValidationResult, CloudAccountCapabilityValidationScope, CloudAccountCapabilityValidationStatus, CloudAccountReadAccessValidation, CloudAccountValidationResult, CloudAccountValidationStreamEvent, CloudAccountWriteAccessValidation, SubscriptionReadValidationResult, SubscriptionValidationStatus, } from './validation';
|
|
2
|
+
/**
|
|
3
|
+
* Subscription-scoped read capability bitmask enum.
|
|
4
|
+
* Each capability maps to a single bit.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum SubscriptionReadPermission {
|
|
7
|
+
/** Permission to read Azure Monitor metrics. */
|
|
8
|
+
MonitoringReader = 1,// 1
|
|
9
|
+
/** Permission to run Log Analytics / App Insights data queries. */
|
|
10
|
+
LogAnalyticsDataReader = 2,// 2
|
|
11
|
+
/** Permission to read subscription resource groups. */
|
|
12
|
+
ResourceGroupsReader = 4,// 4
|
|
13
|
+
/** Permission to read subscription resource inventory. */
|
|
14
|
+
ResourceInventoryReader = 8,// 8
|
|
15
|
+
/** Permission to read Azure Activity Log events. */
|
|
16
|
+
ActivityLogReader = 16,// 16
|
|
17
|
+
/** Permission to run Azure Resource Graph queries. */
|
|
18
|
+
ResourceGraphReader = 32,// 32
|
|
19
|
+
/** Permission to read Azure Cost Management query results. */
|
|
20
|
+
CostManagementReader = 64,// 64
|
|
21
|
+
/** Permission to read Azure Consumption usage details. */
|
|
22
|
+
ConsumptionUsageReader = 128,// 128
|
|
23
|
+
/** Permission to read Azure Advisor recommendations and Advisor score. */
|
|
24
|
+
AdvisorRecommendationsReader = 256,// 256
|
|
25
|
+
/** Permission to read Defender for Cloud security posture data. */
|
|
26
|
+
SecurityReader = 512
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Cloud-account-scoped read capability bitmask enum.
|
|
30
|
+
* Each capability maps to a single bit.
|
|
31
|
+
*/
|
|
32
|
+
export declare enum CloudAccountReadPermission {
|
|
33
|
+
/** Permission to read management group entities. */
|
|
34
|
+
ManagementGroupReader = 1,// 1
|
|
35
|
+
/** Permission to read reservation resources and related consumption artifacts. */
|
|
36
|
+
ReservationsReader = 2,// 2
|
|
37
|
+
/** Permission to read savings plan resources. */
|
|
38
|
+
SavingsPlanReader = 4,// 4
|
|
39
|
+
/** Permission to read Microsoft Graph applications/service principals. */
|
|
40
|
+
GraphApplicationReadAll = 8
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Metadata for a subscription-scoped read capability.
|
|
44
|
+
*/
|
|
45
|
+
export interface SubscriptionReadPermissionMetadata {
|
|
46
|
+
id: SubscriptionReadPermission;
|
|
47
|
+
displayName: string;
|
|
48
|
+
description: string;
|
|
49
|
+
requiredRoles: string[];
|
|
50
|
+
documentationUrl?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Metadata for a cloud-account-scoped read capability.
|
|
54
|
+
*/
|
|
55
|
+
export interface CloudAccountReadPermissionMetadata {
|
|
56
|
+
id: CloudAccountReadPermission;
|
|
57
|
+
displayName: string;
|
|
58
|
+
description: string;
|
|
59
|
+
requiredRoles: string[];
|
|
60
|
+
documentationUrl?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare const SUBSCRIPTION_READ_PERMISSIONS_METADATA: SubscriptionReadPermissionMetadata[];
|
|
63
|
+
export declare const CLOUD_ACCOUNT_READ_PERMISSIONS_METADATA: CloudAccountReadPermissionMetadata[];
|
|
64
|
+
//# sourceMappingURL=readPermissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readPermissions.d.ts","sourceRoot":"","sources":["../../src/accounts/readPermissions.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,oCAAoC,EACpC,wCAAwC,EACxC,sCAAsC,EACtC,qCAAqC,EACrC,sCAAsC,EACtC,gCAAgC,EAChC,4BAA4B,EAC5B,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,gDAAgD;IAChD,gBAAgB,IAAS,CAAE,IAAI;IAC/B,mEAAmE;IACnE,sBAAsB,IAAS,CAAE,IAAI;IACrC,uDAAuD;IACvD,oBAAoB,IAAS,CAAE,IAAI;IACnC,0DAA0D;IAC1D,uBAAuB,IAAS,CAAE,IAAI;IACtC,oDAAoD;IACpD,iBAAiB,KAAS,CAAE,KAAK;IACjC,sDAAsD;IACtD,mBAAmB,KAAS,CAAE,KAAK;IACnC,8DAA8D;IAC9D,oBAAoB,KAAS,CAAE,KAAK;IACpC,0DAA0D;IAC1D,sBAAsB,MAAS,CAAE,MAAM;IACvC,0EAA0E;IAC1E,4BAA4B,MAAS,CAAE,MAAM;IAC7C,mEAAmE;IACnE,cAAc,MAAS;CACxB;AAED;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,o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