@spottoai/types-package 1.0.2-beta.22 → 1.0.2-beta.220
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 +68 -3
- package/dist/accounts/accounts.d.ts.map +1 -1
- package/dist/accounts/azureSpSetup.d.ts +249 -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 +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 +45 -0
- package/dist/accounts/readPermissions.d.ts.map +1 -0
- package/dist/accounts/readPermissions.js +70 -0
- package/dist/accounts/readPermissions.js.map +1 -0
- package/dist/accounts/validation.d.ts +24 -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 +975 -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/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 +159 -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 +34 -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 +747 -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 +75 -4
- package/dist/azure/metrics.d.ts.map +1 -1
- package/dist/azure/payloads.d.ts +116 -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 +92 -3
- package/dist/azure/recommendationState.d.ts.map +1 -1
- package/dist/azure/recommendations.d.ts +438 -6
- package/dist/azure/recommendations.d.ts.map +1 -1
- package/dist/azure/recommendations.js.map +1 -1
- package/dist/azure/relationships.d.ts +77 -0
- package/dist/azure/relationships.d.ts.map +1 -0
- package/dist/azure/relationships.js +3 -0
- package/dist/azure/relationships.js.map +1 -0
- package/dist/azure/reports.d.ts +248 -0
- 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/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 +34 -13
- package/dist/azure/subscriptions.d.ts.map +1 -1
- package/dist/azure/views.d.ts +286 -3
- 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 +44 -1
- package/dist/company/company.d.ts.map +1 -1
- package/dist/company/index.d.ts +1 -0
- package/dist/company/index.d.ts.map +1 -1
- package/dist/company/index.js +1 -0
- package/dist/company/index.js.map +1 -1
- package/dist/company/notification.d.ts +31 -1
- package/dist/company/notification.d.ts.map +1 -1
- package/dist/company/notification.js +24 -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/feedbacks/feedback.d.ts +9 -0
- package/dist/feedbacks/feedback.d.ts.map +1 -1
- package/dist/identity/apikey.d.ts +67 -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 +19 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- 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 +3 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +19 -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 +110 -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 +26 -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 +15 -1
- package/dist/users/user.d.ts.map +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,43 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2024 Spotto AI (www.spotto.ai)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
5. NO REVERSE ENGINEERING: Reverse engineering, disassembly, or decompilation of
|
|
24
|
-
the Software is strictly prohibited.
|
|
25
|
-
|
|
26
|
-
6. NO COMMERCIAL USE: Commercial use of the Software by any entity other than
|
|
27
|
-
Spotto AI is strictly prohibited.
|
|
28
|
-
|
|
29
|
-
DISCLAIMER:
|
|
30
|
-
|
|
31
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
32
|
-
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
33
|
-
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
34
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
35
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
36
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
37
|
-
|
|
38
|
-
VIOLATION:
|
|
39
|
-
|
|
40
|
-
Any unauthorized use, distribution, or modification of this Software constitutes
|
|
41
|
-
a violation of this license agreement and may result in legal action.
|
|
42
|
-
|
|
43
|
-
For licensing inquiries, contact: contact@spotto.ai
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
# Types Package
|
|
2
2
|
|
|
3
|
-
A shared TypeScript interfaces package
|
|
4
|
-
**⚠️ RESTRICTED USE - INTERNAL SPOTTO AI ONLY ⚠️**
|
|
5
|
-
|
|
6
|
-
This is a proprietary TypeScript interfaces package for internal use by Spotto AI (www.spotto.ai) only. This package contains common interfaces that can be reused across Spotto AI's API, frontend, and backend projects.
|
|
7
|
-
|
|
8
|
-
**IMPORTANT**: This repository is made public solely for internal sharing between Spotto AI projects. External use, distribution, or modification is strictly prohibited. See LICENSE file for full terms.
|
|
3
|
+
A shared TypeScript interfaces package. This package contains common interfaces that can be reused across your API, frontend, and backend projects.
|
|
9
4
|
|
|
10
5
|
## Features
|
|
11
6
|
|
|
12
7
|
- **Shared Interfaces**: Common TypeScript interfaces for API requests/responses, database models, frontend components, and backend services
|
|
13
|
-
- **Git Dependencies**: Designed to work with Git dependencies
|
|
8
|
+
- **Git Dependencies**: Designed to work with Git dependencies
|
|
14
9
|
- **TypeScript Declaration Files**: Built with declaration files for better IDE support
|
|
15
10
|
- **Modular Structure**: Organized by domain (API, Database, Frontend, Backend)
|
|
16
11
|
|
|
17
12
|
## Installation
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
Since this is an internal Spotto AI package, you'll need to use Git dependencies. Add this to your consuming project's `package.json`:
|
|
14
|
+
Add this to your consuming project's `package.json`:
|
|
21
15
|
|
|
22
16
|
```json
|
|
23
17
|
{
|
|
@@ -114,7 +108,4 @@ This package follows semantic versioning. When making changes:
|
|
|
114
108
|
|
|
115
109
|
## License
|
|
116
110
|
|
|
117
|
-
MIT License - see LICENSE file for details
|
|
118
|
-
**PROPRIETARY LICENSE** - This software is proprietary to Spotto AI and is made available publicly solely for internal use. External use, distribution, or modification is strictly prohibited. See LICENSE file for full terms and restrictions.
|
|
119
|
-
|
|
120
|
-
For licensing inquiries, contact: legal@spotto.ai
|
|
111
|
+
MIT License - see LICENSE file for details
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { SurveyResponse } from '../company';
|
|
2
|
+
import type { EffortEstimateProfileName } from '../azure/recommendations';
|
|
3
|
+
export type SubscriptionType = 'Production' | 'Non-Production' | 'Mixed';
|
|
4
|
+
export type CloudAccountAuthMode = 'servicePrincipal' | 'delegatedUser';
|
|
5
|
+
export type CloudAccountTenantSyncSource = 'manual' | 'scheduled' | 'onboarding';
|
|
6
|
+
export type CloudAccountTenantSyncStatus = 'Idle' | 'Requested' | 'Processing' | 'Completed' | 'Error';
|
|
7
|
+
export type AzureDelegatedOnboardingStatus = 'subscriptionSelectionRequired' | 'active' | 'setupExpired';
|
|
8
|
+
export type AzureDelegatedAuthErrorCode = 'invalid_grant' | 'interaction_required' | 'consent_required' | 'claims_challenge' | 'forbidden' | 'unknown';
|
|
9
|
+
export type AzureDelegatedOAuthStatePhase = 'discoverTenants' | 'tenantSelectionRequired' | 'tenantConsent' | 'completed' | 'failed';
|
|
2
10
|
export interface CloudAccount {
|
|
11
|
+
/** Partition Key */
|
|
3
12
|
companyId: string;
|
|
13
|
+
/** Row Key (Azure Client ID, AWS Access Key ID) */
|
|
4
14
|
id: string;
|
|
5
15
|
name: string;
|
|
6
16
|
companyName: string;
|
|
17
|
+
/** AWS, Azure, GCP, etc. */
|
|
7
18
|
provider: string;
|
|
19
|
+
/** Missing authMode should be treated as servicePrincipal by consumers for backward compatibility. */
|
|
20
|
+
authMode?: CloudAccountAuthMode;
|
|
21
|
+
/** Optional list of subscription group names for this cloud account */
|
|
22
|
+
groupNames?: string[];
|
|
23
|
+
/** Azure Tenant ID */
|
|
8
24
|
tenantId?: string;
|
|
9
25
|
secret?: string;
|
|
10
26
|
secretExpiresAt?: Date;
|
|
@@ -13,14 +29,50 @@ export interface CloudAccount {
|
|
|
13
29
|
createdBy: string;
|
|
14
30
|
status: string;
|
|
15
31
|
objectives?: SurveyResponse[];
|
|
32
|
+
/** Preferred recommendation effort-estimate profile for this cloud account. */
|
|
33
|
+
effortProfile?: EffortEstimateProfileName;
|
|
34
|
+
writeSecret?: string;
|
|
35
|
+
writeSecretExpiresAt?: Date;
|
|
36
|
+
writeClientId?: string;
|
|
37
|
+
writeBitmask?: number;
|
|
38
|
+
readBitmask?: number;
|
|
39
|
+
tenantSyncStatus?: CloudAccountTenantSyncStatus;
|
|
40
|
+
tenantSyncRequestedAt?: Date;
|
|
41
|
+
tenantSyncStartedAt?: Date;
|
|
42
|
+
tenantSyncCompletedAt?: Date;
|
|
43
|
+
tenantSyncError?: string;
|
|
44
|
+
tenantSyncSource?: CloudAccountTenantSyncSource;
|
|
45
|
+
/** Internal delegated-user token cache. Do not expose this field in public API DTOs. */
|
|
46
|
+
delegatedTokenCache?: string;
|
|
47
|
+
onboardingStatus?: AzureDelegatedOnboardingStatus;
|
|
48
|
+
delegatedSetupExpiresAt?: Date | string;
|
|
49
|
+
delegatedTrialStartedAt?: Date | string;
|
|
50
|
+
delegatedTrialExpiresAt?: Date | string;
|
|
51
|
+
reauthRequired?: boolean;
|
|
52
|
+
lastAuthErrorCode?: AzureDelegatedAuthErrorCode;
|
|
53
|
+
lastAuthErrorAt?: Date | string;
|
|
54
|
+
connectedUserObjectId?: string;
|
|
55
|
+
connectedUserTenantId?: string;
|
|
56
|
+
connectedUserEmail?: string;
|
|
57
|
+
connectedUserDisplayName?: string;
|
|
58
|
+
connectedAt?: Date | string;
|
|
59
|
+
lastTokenRefreshAt?: Date | string;
|
|
60
|
+
lastDelegatedTokenCacheUpdatedAt?: Date | string;
|
|
16
61
|
}
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
companyId: string;
|
|
62
|
+
export type PublicCloudAccountDto = Omit<CloudAccount, 'delegatedTokenCache' | 'secret' | 'writeSecret'>;
|
|
63
|
+
export interface SubscriptionInfoBase {
|
|
20
64
|
name: string;
|
|
65
|
+
friendlyName?: string;
|
|
21
66
|
cloudAccountId: string;
|
|
22
67
|
cloudAccountName: string;
|
|
68
|
+
/** Optional group name for subscription-level grouping */
|
|
69
|
+
groupName?: string;
|
|
70
|
+
/** Optional emoji shortcode (Slack-style, e.g. "/face") */
|
|
71
|
+
icon?: string;
|
|
72
|
+
/** Optional subscription type (Production, Non-Production, Mixed) */
|
|
73
|
+
subscriptionType?: SubscriptionType;
|
|
23
74
|
status?: string;
|
|
75
|
+
statusLabel?: string;
|
|
24
76
|
error?: string;
|
|
25
77
|
lastUpdated?: string;
|
|
26
78
|
quotaId?: string;
|
|
@@ -29,5 +81,18 @@ export interface SubscriptionAccount {
|
|
|
29
81
|
currencySymbol?: string;
|
|
30
82
|
foundCurrency?: boolean;
|
|
31
83
|
ready?: boolean;
|
|
84
|
+
secureScore?: number;
|
|
85
|
+
showAmortizedCosts?: boolean;
|
|
86
|
+
totalCost?: number;
|
|
87
|
+
billingItems?: number;
|
|
88
|
+
activityItems?: number;
|
|
89
|
+
eventId?: string;
|
|
90
|
+
readBitmask?: number;
|
|
91
|
+
}
|
|
92
|
+
export interface SubscriptionAccount extends SubscriptionInfoBase {
|
|
93
|
+
/** Partition Key (Azure Subscription ID) */
|
|
94
|
+
id: string;
|
|
95
|
+
/** Row Key */
|
|
96
|
+
companyId: string;
|
|
32
97
|
}
|
|
33
98
|
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/accounts/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/accounts/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,gBAAgB,GAAG,OAAO,CAAC;AACzE,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,eAAe,CAAC;AACxE,MAAM,MAAM,4BAA4B,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,CAAC;AACjF,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;AACvG,MAAM,MAAM,8BAA8B,GAAG,+BAA+B,GAAG,QAAQ,GAAG,cAAc,CAAC;AACzG,MAAM,MAAM,2BAA2B,GACnC,eAAe,GACf,sBAAsB,GACtB,kBAAkB,GAClB,kBAAkB,GAClB,WAAW,GACX,SAAS,CAAC;AACd,MAAM,MAAM,6BAA6B,GACrC,iBAAiB,GACjB,yBAAyB,GACzB,eAAe,GACf,WAAW,GACX,QAAQ,CAAC;AAEb,MAAM,WAAW,YAAY;IAC3B,oBAAoB;IACpB,SAAS,EAAE,MA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KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,cAAc;IACd,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,249 @@
|
|
|
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 AzureSpPermissionScopeKind = 'tenant' | 'application' | 'servicePrincipal' | 'subscription' | 'tenantRoot' | 'managementGroup' | 'provider' | 'storageAccount' | 'storageContainer' | 'costManagementExport';
|
|
10
|
+
export type AzureSpPermissionKey = 'entraApplication' | 'entraServicePrincipal' | 'entraClientSecret' | 'subscriptionReader' | 'tenantRootReader' | 'monitoringReader' | 'logAnalyticsReader' | 'rootManagementGroupReader' | 'managementGroupReader' | 'reservationsReader' | 'savingsPlanReader' | 'graphApplicationReadAll' | 'costManagementProviderRegistration' | 'billingExportStorage' | 'billingExportContainer' | 'billingExportStorageBlobReader' | 'billingExportActualDaily' | 'billingExportAmortizedDaily' | 'billingExportActualBackfill' | 'billingExportAmortizedBackfill' | 'customWriteRoleDefinition' | 'customWriteRoleAssignment';
|
|
11
|
+
export type AzureSpOperationKind = 'discoverApplication' | 'createApplication' | 'discoverServicePrincipal' | 'createServicePrincipal' | 'createClientSecret' | 'assignAzureRole' | 'grantGraphAppRole' | 'registerProvider' | 'prepareStorage' | 'prepareContainer' | 'createOrUpdateCostExport' | 'queueCostExportRun' | 'createOrUpdateCustomRole' | 'validateServicePrincipal' | 'queueFirstSync';
|
|
12
|
+
export type AzureSpOperationPlannedAction = 'none' | 'create' | 'update' | 'grant' | 'queue' | 'skip';
|
|
13
|
+
export type AzureSpOperationCurrentState = 'missing' | 'alreadyExists' | 'unavailable' | 'unknown';
|
|
14
|
+
export type AzureSpOperationResultStatus = 'notStarted' | 'running' | 'alreadyExists' | 'created' | 'updated' | 'granted' | 'queued' | 'skipped' | 'unavailable' | 'failed';
|
|
15
|
+
export type AzureSpBillingExportMode = 'skip' | 'reuseExisting' | 'useExistingStorage' | 'createStorage';
|
|
16
|
+
export type AzureSpBillingExportDataset = 'ActualCost' | 'AmortizedCost';
|
|
17
|
+
export type AzureSpBillingExportEffectiveDefinitionType = 'ActualCost' | 'Usage' | 'AmortizedCost';
|
|
18
|
+
export type AzureSpBillingExportResultStatus = 'notStarted' | 'existing' | 'created' | 'updated' | 'createdRunQueued' | 'queued' | 'requeued' | 'failed' | 'unavailable' | 'skipped';
|
|
19
|
+
export interface AzureSpSetupStartRequest {
|
|
20
|
+
redirectAfter?: string;
|
|
21
|
+
mode?: AzureSpSetupMode;
|
|
22
|
+
targetCloudAccountId?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AzureSpSetupStartResponse {
|
|
25
|
+
setupId: string;
|
|
26
|
+
authorizationUrl: string;
|
|
27
|
+
expiresAt: string;
|
|
28
|
+
}
|
|
29
|
+
export interface AzureSpSetupTenant {
|
|
30
|
+
tenantId: string;
|
|
31
|
+
displayName?: string;
|
|
32
|
+
label: string;
|
|
33
|
+
isAlreadyConnected: boolean;
|
|
34
|
+
connectedCloudAccountId?: string;
|
|
35
|
+
requiresTenantAuthorization: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface AzureSpSetupSubscriptionOption {
|
|
38
|
+
subscriptionId: string;
|
|
39
|
+
displayName: string;
|
|
40
|
+
tenantId: string;
|
|
41
|
+
state?: string;
|
|
42
|
+
isVisible: boolean;
|
|
43
|
+
isReadableCandidate: boolean;
|
|
44
|
+
isSelectedByDefault: boolean;
|
|
45
|
+
warningCode?: string;
|
|
46
|
+
warningMessage?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface AzureSpPermissionManifestItem {
|
|
49
|
+
key: AzureSpPermissionKey;
|
|
50
|
+
requirement: AzureSpPermissionRequirement;
|
|
51
|
+
displayName: string;
|
|
52
|
+
userFacingLabel: string;
|
|
53
|
+
description: string;
|
|
54
|
+
scopeKind: AzureSpPermissionScopeKind;
|
|
55
|
+
defaultSelected: boolean;
|
|
56
|
+
userDeselectable: boolean;
|
|
57
|
+
requiredPrivilege: string;
|
|
58
|
+
detectOperation: AzureSpOperationKind;
|
|
59
|
+
applyOperation: AzureSpOperationKind;
|
|
60
|
+
failureBehavior: AzureSpPermissionFailureBehavior;
|
|
61
|
+
}
|
|
62
|
+
export interface AzureSpSetupPermissionPlanItem {
|
|
63
|
+
key: AzureSpPermissionKey;
|
|
64
|
+
instanceKey: string;
|
|
65
|
+
requirement: AzureSpPermissionRequirement;
|
|
66
|
+
scopeKind: AzureSpPermissionScopeKind;
|
|
67
|
+
displayName: string;
|
|
68
|
+
userFacingLabel: string;
|
|
69
|
+
description: string;
|
|
70
|
+
scope: string;
|
|
71
|
+
externalResourceId?: string;
|
|
72
|
+
idempotencyKey: string;
|
|
73
|
+
roleDefinitionName?: string;
|
|
74
|
+
requiredPrivilege: string;
|
|
75
|
+
selectedByDefault: boolean;
|
|
76
|
+
isDeselectable: boolean;
|
|
77
|
+
capabilityStatus: AzureSpPermissionCapabilityStatus;
|
|
78
|
+
capabilityReason?: string;
|
|
79
|
+
currentState: AzureSpOperationCurrentState;
|
|
80
|
+
plannedAction: AzureSpOperationPlannedAction;
|
|
81
|
+
detectOperation: AzureSpOperationKind;
|
|
82
|
+
applyOperation: AzureSpOperationKind;
|
|
83
|
+
failureBehavior: AzureSpPermissionFailureBehavior;
|
|
84
|
+
status: AzureSpPermissionStatus;
|
|
85
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
86
|
+
message?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface AzureSpSetupOperationResult {
|
|
89
|
+
operationKey: string;
|
|
90
|
+
permissionKey?: AzureSpPermissionKey;
|
|
91
|
+
instanceKey?: string;
|
|
92
|
+
operationKind: AzureSpOperationKind;
|
|
93
|
+
idempotencyKey: string;
|
|
94
|
+
externalResourceId?: string;
|
|
95
|
+
status: AzureSpOperationResultStatus;
|
|
96
|
+
safeMessage?: string;
|
|
97
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
98
|
+
startedAt?: string;
|
|
99
|
+
completedAt?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface AzureSpSetupProgressStep {
|
|
102
|
+
key: 'microsoftAuthorization' | 'tenantSelection' | 'servicePrincipal' | 'credential' | 'readerAccess' | 'optionalPermissions' | 'billingExports' | 'spottoValidation' | 'cloudAccountSaved' | 'firstSyncQueued';
|
|
103
|
+
status: AzureSpPermissionStatus;
|
|
104
|
+
message?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface AzureSpBillingExportStorageOption {
|
|
107
|
+
storageAccountResourceId: string;
|
|
108
|
+
subscriptionId: string;
|
|
109
|
+
resourceGroupName: string;
|
|
110
|
+
storageAccountName: string;
|
|
111
|
+
location?: string;
|
|
112
|
+
isFromCompatibleExistingExport: boolean;
|
|
113
|
+
containerName?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface AzureSpBillingExportDetectedExport {
|
|
116
|
+
subscriptionId: string;
|
|
117
|
+
dataset: AzureSpBillingExportDataset;
|
|
118
|
+
effectiveDefinitionType?: AzureSpBillingExportEffectiveDefinitionType;
|
|
119
|
+
exportName: string;
|
|
120
|
+
exportResourceId: string;
|
|
121
|
+
storageAccountResourceId: string;
|
|
122
|
+
containerName: string;
|
|
123
|
+
rootFolderPath?: string;
|
|
124
|
+
isCompatible: boolean;
|
|
125
|
+
isActiveDaily?: boolean;
|
|
126
|
+
canBeReused?: boolean;
|
|
127
|
+
}
|
|
128
|
+
export interface AzureSpBillingExportPlan {
|
|
129
|
+
enabledByDefault: boolean;
|
|
130
|
+
selectedByDefault: boolean;
|
|
131
|
+
defaultContainerName: 'spotto-cost-exports';
|
|
132
|
+
defaultRootFolderPath: 'spotto';
|
|
133
|
+
defaultResourceGroupName: 'rg-spotto-cost-exports';
|
|
134
|
+
defaultLocation: 'australiaeast';
|
|
135
|
+
detectedCompatibleExports: AzureSpBillingExportDetectedExport[];
|
|
136
|
+
storageOptions: AzureSpBillingExportStorageOption[];
|
|
137
|
+
selectedMode?: AzureSpBillingExportMode;
|
|
138
|
+
selectedReuseDetectedExportResourceIds?: string[];
|
|
139
|
+
selectedStorageAccountResourceId?: string;
|
|
140
|
+
selectedContainerName?: string;
|
|
141
|
+
createStorage?: {
|
|
142
|
+
subscriptionId: string;
|
|
143
|
+
resourceGroupName: string;
|
|
144
|
+
location: string;
|
|
145
|
+
storageAccountName: string;
|
|
146
|
+
containerName: string;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
export interface AzureSpBillingExportResult {
|
|
150
|
+
subscriptionId: string;
|
|
151
|
+
dataset?: AzureSpBillingExportDataset;
|
|
152
|
+
effectiveDefinitionType?: AzureSpBillingExportEffectiveDefinitionType;
|
|
153
|
+
exportKind: 'recurring' | 'backfill' | 'storage' | 'providerRegistration';
|
|
154
|
+
exportName?: string;
|
|
155
|
+
exportResourceId?: string;
|
|
156
|
+
periodName?: string;
|
|
157
|
+
status: AzureSpBillingExportResultStatus;
|
|
158
|
+
storageAccountResourceId?: string;
|
|
159
|
+
containerName?: string;
|
|
160
|
+
rootFolderPath?: string;
|
|
161
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
162
|
+
message?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface AzureSpSetupStatusResponse {
|
|
165
|
+
setupId: string;
|
|
166
|
+
companyId: string;
|
|
167
|
+
mode: AzureSpSetupMode;
|
|
168
|
+
phase: AzureSpSetupPhase;
|
|
169
|
+
result: AzureSpSetupResult;
|
|
170
|
+
selectedTenantId?: string;
|
|
171
|
+
targetCloudAccountId?: string;
|
|
172
|
+
targetCloudAccountName?: string;
|
|
173
|
+
targetAzureApplicationAppId?: string;
|
|
174
|
+
permissionManifestVersion?: string;
|
|
175
|
+
targetPermissionManifestVersion?: string;
|
|
176
|
+
tenants?: AzureSpSetupTenant[];
|
|
177
|
+
subscriptions?: AzureSpSetupSubscriptionOption[];
|
|
178
|
+
permissionPlan?: AzureSpSetupPermissionPlanItem[];
|
|
179
|
+
billingExportPlan?: AzureSpBillingExportPlan;
|
|
180
|
+
billingExportResults?: AzureSpBillingExportResult[];
|
|
181
|
+
operationResults?: AzureSpSetupOperationResult[];
|
|
182
|
+
progress?: AzureSpSetupProgressStep[];
|
|
183
|
+
resultCloudAccountId?: string;
|
|
184
|
+
resultCloudAccountName?: string;
|
|
185
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
186
|
+
errorMessage?: string;
|
|
187
|
+
expiresAt: string;
|
|
188
|
+
canRetry: boolean;
|
|
189
|
+
canExecute: boolean;
|
|
190
|
+
executionId?: string;
|
|
191
|
+
executionAttempt?: number;
|
|
192
|
+
leaseExpiresAt?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface AzureSpSetupSelectTenantRequest {
|
|
195
|
+
tenantId: string;
|
|
196
|
+
}
|
|
197
|
+
export interface AzureSpSetupSelectTenantResponse extends AzureSpSetupStatusResponse {
|
|
198
|
+
selectedTenantId: string;
|
|
199
|
+
authorizationUrl?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface AzureSpSetupAuthorizeTenantResponse {
|
|
202
|
+
setupId: string;
|
|
203
|
+
authorizationUrl: string;
|
|
204
|
+
expiresAt: string;
|
|
205
|
+
}
|
|
206
|
+
export interface AzureSpSetupPlanRequest {
|
|
207
|
+
subscriptionIds: string[];
|
|
208
|
+
selectedPermissionInstanceKeys?: string[];
|
|
209
|
+
useTenantRootReader?: boolean;
|
|
210
|
+
billingExports?: {
|
|
211
|
+
enabled: boolean;
|
|
212
|
+
mode?: AzureSpBillingExportMode;
|
|
213
|
+
reuseDetectedExportResourceIds?: string[];
|
|
214
|
+
storageAccountResourceId?: string;
|
|
215
|
+
createStorage?: {
|
|
216
|
+
subscriptionId: string;
|
|
217
|
+
resourceGroupName: string;
|
|
218
|
+
location: string;
|
|
219
|
+
storageAccountName: string;
|
|
220
|
+
containerName: string;
|
|
221
|
+
};
|
|
222
|
+
containerName?: string;
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
export interface AzureSpSetupPlanResponse extends AzureSpSetupStatusResponse {
|
|
226
|
+
phase: 'readyToExecute';
|
|
227
|
+
permissionPlan: AzureSpSetupPermissionPlanItem[];
|
|
228
|
+
subscriptions: AzureSpSetupSubscriptionOption[];
|
|
229
|
+
}
|
|
230
|
+
export interface AzureSpSetupExecuteRequest {
|
|
231
|
+
subscriptionIds: string[];
|
|
232
|
+
selectedPermissionInstanceKeys: string[];
|
|
233
|
+
billingExports?: AzureSpSetupPlanRequest['billingExports'];
|
|
234
|
+
cloudAccountName?: string;
|
|
235
|
+
groupNames?: string[];
|
|
236
|
+
readBitmask?: number;
|
|
237
|
+
writeBitmask?: number;
|
|
238
|
+
}
|
|
239
|
+
export type AzureSpSetupExecuteResponse = AzureSpSetupStatusResponse;
|
|
240
|
+
export interface AzureSpSetupExecuteSuccessResponse extends AzureSpSetupStatusResponse {
|
|
241
|
+
phase: 'completed';
|
|
242
|
+
result: 'complete' | 'partial';
|
|
243
|
+
resultCloudAccountId: string;
|
|
244
|
+
}
|
|
245
|
+
export interface AzureSpSetupCancelResponse extends AzureSpSetupStatusResponse {
|
|
246
|
+
phase: 'cancelled';
|
|
247
|
+
result: 'cancelled';
|
|
248
|
+
}
|
|
249
|
+
//# 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,GA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aAAa,EAAE,MAAM,CAAC;SACvB,CAAC;QACF,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;AAClC,cAAc,cAAc,CAAC"}
|
package/dist/accounts/index.js
CHANGED
|
@@ -15,4 +15,8 @@ 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);
|
|
21
|
+
__exportStar(require("./validation"), exports);
|
|
18
22
|
//# 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;AAClC,+CAA6B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscription-scoped read capability bitmask enum.
|
|
3
|
+
* Each capability maps to a single bit.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum SubscriptionReadPermission {
|
|
6
|
+
/** Permission to read Azure Monitor metrics. */
|
|
7
|
+
MonitoringReader = 1,// 1
|
|
8
|
+
/** Permission to run Log Analytics / App Insights data queries. */
|
|
9
|
+
LogAnalyticsDataReader = 2
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Cloud-account-scoped read capability bitmask enum.
|
|
13
|
+
* Each capability maps to a single bit.
|
|
14
|
+
*/
|
|
15
|
+
export declare enum CloudAccountReadPermission {
|
|
16
|
+
/** Permission to read management group entities. */
|
|
17
|
+
ManagementGroupReader = 1,// 1
|
|
18
|
+
/** Permission to read reservation resources and related consumption artifacts. */
|
|
19
|
+
ReservationsReader = 2,// 2
|
|
20
|
+
/** Permission to read savings plan resources. */
|
|
21
|
+
SavingsPlanReader = 4,// 4
|
|
22
|
+
/** Permission to read Microsoft Graph applications/service principals. */
|
|
23
|
+
GraphApplicationReadAll = 8
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Metadata for a subscription-scoped read capability.
|
|
27
|
+
*/
|
|
28
|
+
export interface SubscriptionReadPermissionMetadata {
|
|
29
|
+
id: SubscriptionReadPermission;
|
|
30
|
+
displayName: string;
|
|
31
|
+
description: string;
|
|
32
|
+
requiredRoles: string[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Metadata for a cloud-account-scoped read capability.
|
|
36
|
+
*/
|
|
37
|
+
export interface CloudAccountReadPermissionMetadata {
|
|
38
|
+
id: CloudAccountReadPermission;
|
|
39
|
+
displayName: string;
|
|
40
|
+
description: string;
|
|
41
|
+
requiredRoles: string[];
|
|
42
|
+
}
|
|
43
|
+
export declare const SUBSCRIPTION_READ_PERMISSIONS_METADATA: SubscriptionReadPermissionMetadata[];
|
|
44
|
+
export declare const CLOUD_ACCOUNT_READ_PERMISSIONS_METADATA: CloudAccountReadPermissionMetadata[];
|
|
45
|
+
//# sourceMappingURL=readPermissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readPermissions.d.ts","sourceRoot":"","sources":["../../src/accounts/readPermissions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,gDAAgD;IAChD,gBAAgB,IAAS,CAAE,IAAI;IAC/B,mEAAmE;IACnE,sBAAsB,IAAS;CAChC;AAED;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,oDAAoD;IACpD,qBAAqB,IAAS,CAAE,IAAI;IACpC,kFAAkF;IAClF,kBAAkB,IAAS,CAAE,IAAI;IACjC,iDAAiD;IACjD,iBAAiB,IAAS,CAAE,IAAI;IAChC,0EAA0E;IAC1E,uBAAuB,IAAS;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,EAAE,EAAE,0BAA0B,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,EAAE,EAAE,0BAA0B,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,eAAO,MAAM,sCAAsC,EAAE,kCAAkC,EAatF,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,kCAAkC,EAyBvF,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLOUD_ACCOUNT_READ_PERMISSIONS_METADATA = exports.SUBSCRIPTION_READ_PERMISSIONS_METADATA = exports.CloudAccountReadPermission = exports.SubscriptionReadPermission = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Subscription-scoped read capability bitmask enum.
|
|
6
|
+
* Each capability maps to a single bit.
|
|
7
|
+
*/
|
|
8
|
+
var SubscriptionReadPermission;
|
|
9
|
+
(function (SubscriptionReadPermission) {
|
|
10
|
+
/** Permission to read Azure Monitor metrics. */
|
|
11
|
+
SubscriptionReadPermission[SubscriptionReadPermission["MonitoringReader"] = 1] = "MonitoringReader";
|
|
12
|
+
/** Permission to run Log Analytics / App Insights data queries. */
|
|
13
|
+
SubscriptionReadPermission[SubscriptionReadPermission["LogAnalyticsDataReader"] = 2] = "LogAnalyticsDataReader";
|
|
14
|
+
})(SubscriptionReadPermission || (exports.SubscriptionReadPermission = SubscriptionReadPermission = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Cloud-account-scoped read capability bitmask enum.
|
|
17
|
+
* Each capability maps to a single bit.
|
|
18
|
+
*/
|
|
19
|
+
var CloudAccountReadPermission;
|
|
20
|
+
(function (CloudAccountReadPermission) {
|
|
21
|
+
/** Permission to read management group entities. */
|
|
22
|
+
CloudAccountReadPermission[CloudAccountReadPermission["ManagementGroupReader"] = 1] = "ManagementGroupReader";
|
|
23
|
+
/** Permission to read reservation resources and related consumption artifacts. */
|
|
24
|
+
CloudAccountReadPermission[CloudAccountReadPermission["ReservationsReader"] = 2] = "ReservationsReader";
|
|
25
|
+
/** Permission to read savings plan resources. */
|
|
26
|
+
CloudAccountReadPermission[CloudAccountReadPermission["SavingsPlanReader"] = 4] = "SavingsPlanReader";
|
|
27
|
+
/** Permission to read Microsoft Graph applications/service principals. */
|
|
28
|
+
CloudAccountReadPermission[CloudAccountReadPermission["GraphApplicationReadAll"] = 8] = "GraphApplicationReadAll";
|
|
29
|
+
})(CloudAccountReadPermission || (exports.CloudAccountReadPermission = CloudAccountReadPermission = {}));
|
|
30
|
+
exports.SUBSCRIPTION_READ_PERMISSIONS_METADATA = [
|
|
31
|
+
{
|
|
32
|
+
id: SubscriptionReadPermission.MonitoringReader,
|
|
33
|
+
displayName: 'Monitoring Reader',
|
|
34
|
+
description: 'Allows Spotto to read Azure Monitor metrics for subscription resources.',
|
|
35
|
+
requiredRoles: ['Monitoring Reader'],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: SubscriptionReadPermission.LogAnalyticsDataReader,
|
|
39
|
+
displayName: 'Log Analytics Data Reader',
|
|
40
|
+
description: 'Allows Spotto to run Log Analytics and App Insights data queries.',
|
|
41
|
+
requiredRoles: ['Log Analytics Reader'],
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.CLOUD_ACCOUNT_READ_PERMISSIONS_METADATA = [
|
|
45
|
+
{
|
|
46
|
+
id: CloudAccountReadPermission.ManagementGroupReader,
|
|
47
|
+
displayName: 'Management Group Reader',
|
|
48
|
+
description: 'Allows Spotto to read tenant management group entities.',
|
|
49
|
+
requiredRoles: ['Management Group Reader'],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: CloudAccountReadPermission.ReservationsReader,
|
|
53
|
+
displayName: 'Reservations Reader',
|
|
54
|
+
description: 'Allows Spotto to read reservation resources and reservation usage artifacts.',
|
|
55
|
+
requiredRoles: ['Reader'],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: CloudAccountReadPermission.SavingsPlanReader,
|
|
59
|
+
displayName: 'Savings Plan Reader',
|
|
60
|
+
description: 'Allows Spotto to read savings plan resources.',
|
|
61
|
+
requiredRoles: ['Reader'],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: CloudAccountReadPermission.GraphApplicationReadAll,
|
|
65
|
+
displayName: 'Graph Application Read.All',
|
|
66
|
+
description: 'Allows Spotto to read Microsoft Graph applications and service principals.',
|
|
67
|
+
requiredRoles: ['Application.Read.All'],
|
|
68
|
+
},
|
|
69
|
+
];
|
|
70
|
+
//# sourceMappingURL=readPermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readPermissions.js","sourceRoot":"","sources":["../../src/accounts/readPermissions.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,gDAAgD;IAChD,mGAAyB,CAAA;IACzB,mEAAmE;IACnE,+GAA+B,CAAA;AACjC,CAAC,EALW,0BAA0B,0CAA1B,0BAA0B,QAKrC;AAED;;;GAGG;AACH,IAAY,0BASX;AATD,WAAY,0BAA0B;IACpC,oDAAoD;IACpD,6GAA8B,CAAA;IAC9B,kFAAkF;IAClF,uGAA2B,CAAA;IAC3B,iDAAiD;IACjD,qGAA0B,CAAA;IAC1B,0EAA0E;IAC1E,iHAAgC,CAAA;AAClC,CAAC,EATW,0BAA0B,0CAA1B,0BAA0B,QASrC;AAsB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