@spottoai/types-package 1.0.2-beta.23 → 1.0.2-beta.232
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 +118 -3
- package/dist/accounts/accounts.d.ts.map +1 -1
- package/dist/accounts/accounts.js +12 -0
- package/dist/accounts/accounts.js.map +1 -1
- package/dist/accounts/azureSpSetup.d.ts +294 -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 +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 +75 -4
- package/dist/azure/metrics.d.ts.map +1 -1
- package/dist/azure/payloads.d.ts +135 -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 +458 -7
- 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 +48 -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/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 +113 -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,28 @@
|
|
|
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 declare const SUBSCRIPTION_SYNC_STEP_ORDER: readonly ["metrics", "resourcegroups", "activities", "queries", "reliability", "billing", "costestimation", "pricing", "views"];
|
|
8
|
+
export type SubscriptionSyncStepId = (typeof SUBSCRIPTION_SYNC_STEP_ORDER)[number];
|
|
9
|
+
export type AzureDelegatedOnboardingStatus = 'subscriptionSelectionRequired' | 'active' | 'setupExpired';
|
|
10
|
+
export type AzureDelegatedAuthErrorCode = 'invalid_grant' | 'interaction_required' | 'consent_required' | 'claims_challenge' | 'forbidden' | 'unknown';
|
|
11
|
+
export type AzureDelegatedOAuthStatePhase = 'discoverTenants' | 'tenantSelectionRequired' | 'tenantConsent' | 'completed' | 'failed';
|
|
2
12
|
export interface CloudAccount {
|
|
13
|
+
/** Partition Key */
|
|
3
14
|
companyId: string;
|
|
15
|
+
/** Row Key (Azure Client ID, AWS Access Key ID) */
|
|
4
16
|
id: string;
|
|
5
17
|
name: string;
|
|
6
18
|
companyName: string;
|
|
19
|
+
/** AWS, Azure, GCP, etc. */
|
|
7
20
|
provider: string;
|
|
21
|
+
/** Missing authMode should be treated as servicePrincipal by consumers for backward compatibility. */
|
|
22
|
+
authMode?: CloudAccountAuthMode;
|
|
23
|
+
/** Optional list of subscription group names for this cloud account */
|
|
24
|
+
groupNames?: string[];
|
|
25
|
+
/** Azure Tenant ID */
|
|
8
26
|
tenantId?: string;
|
|
9
27
|
secret?: string;
|
|
10
28
|
secretExpiresAt?: Date;
|
|
@@ -13,14 +31,97 @@ export interface CloudAccount {
|
|
|
13
31
|
createdBy: string;
|
|
14
32
|
status: string;
|
|
15
33
|
objectives?: SurveyResponse[];
|
|
34
|
+
/** Preferred recommendation effort-estimate profile for this cloud account. */
|
|
35
|
+
effortProfile?: EffortEstimateProfileName;
|
|
36
|
+
writeSecret?: string;
|
|
37
|
+
writeSecretExpiresAt?: Date;
|
|
38
|
+
writeClientId?: string;
|
|
39
|
+
writeBitmask?: number;
|
|
40
|
+
readBitmask?: number;
|
|
41
|
+
tenantSyncStatus?: CloudAccountTenantSyncStatus;
|
|
42
|
+
tenantSyncRequestedAt?: Date;
|
|
43
|
+
tenantSyncStartedAt?: Date;
|
|
44
|
+
tenantSyncCompletedAt?: Date;
|
|
45
|
+
tenantSyncError?: string;
|
|
46
|
+
tenantSyncSource?: CloudAccountTenantSyncSource;
|
|
47
|
+
/** Internal delegated-user token cache. Do not expose this field in public API DTOs. */
|
|
48
|
+
delegatedTokenCache?: string;
|
|
49
|
+
onboardingStatus?: AzureDelegatedOnboardingStatus;
|
|
50
|
+
delegatedSetupExpiresAt?: Date | string;
|
|
51
|
+
delegatedTrialStartedAt?: Date | string;
|
|
52
|
+
delegatedTrialExpiresAt?: Date | string;
|
|
53
|
+
reauthRequired?: boolean;
|
|
54
|
+
lastAuthErrorCode?: AzureDelegatedAuthErrorCode;
|
|
55
|
+
lastAuthErrorAt?: Date | string;
|
|
56
|
+
connectedUserObjectId?: string;
|
|
57
|
+
connectedUserTenantId?: string;
|
|
58
|
+
connectedUserEmail?: string;
|
|
59
|
+
connectedUserDisplayName?: string;
|
|
60
|
+
connectedAt?: Date | string;
|
|
61
|
+
lastTokenRefreshAt?: Date | string;
|
|
62
|
+
lastDelegatedTokenCacheUpdatedAt?: Date | string;
|
|
16
63
|
}
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
64
|
+
export type PublicCloudAccountDto = Omit<CloudAccount, 'delegatedTokenCache' | 'secret' | 'writeSecret'> & {
|
|
65
|
+
/** Display-only masked preview of the stored read secret. Never contains the full secret value. */
|
|
66
|
+
secretPreview?: string;
|
|
67
|
+
/** Display-only masked preview of the stored write secret. Never contains the full secret value. */
|
|
68
|
+
writeSecretPreview?: string;
|
|
69
|
+
};
|
|
70
|
+
export interface SyncProgressIssue {
|
|
71
|
+
type: 'capabilityMissing' | 'billingExport';
|
|
72
|
+
scope: 'cloudAccount' | 'subscription';
|
|
73
|
+
capabilityKey?: string;
|
|
74
|
+
capabilityDisplayName?: string;
|
|
75
|
+
capabilityDescription?: string;
|
|
76
|
+
requiredRoles?: string[];
|
|
77
|
+
message: string;
|
|
78
|
+
code?: string;
|
|
79
|
+
title?: string;
|
|
80
|
+
remediation?: string;
|
|
81
|
+
sourceSelected?: 'export' | 'query';
|
|
82
|
+
fallbackUsed?: boolean;
|
|
83
|
+
degraded?: boolean;
|
|
84
|
+
}
|
|
85
|
+
export interface SubscriptionSyncProgressStep {
|
|
86
|
+
id: SubscriptionSyncStepId;
|
|
87
|
+
status: 'idle' | 'pending' | 'queued' | 'inProgress' | 'completed' | 'error';
|
|
88
|
+
attempts: number;
|
|
89
|
+
lastUpdated: string;
|
|
90
|
+
lastError?: string;
|
|
91
|
+
runId?: string;
|
|
92
|
+
active: boolean;
|
|
93
|
+
callCount?: number;
|
|
94
|
+
note?: string;
|
|
95
|
+
issue?: SyncProgressIssue;
|
|
96
|
+
}
|
|
97
|
+
export interface SubscriptionSyncProgress {
|
|
98
|
+
runId?: string;
|
|
99
|
+
overallStatus: 'idle' | 'processing' | 'completed' | 'error';
|
|
100
|
+
progressLabel: string;
|
|
101
|
+
completedSteps: number;
|
|
102
|
+
totalSteps: number;
|
|
103
|
+
activeComponents: SubscriptionSyncStepId[];
|
|
104
|
+
currentStepId?: SubscriptionSyncStepId;
|
|
105
|
+
lastErrorComponent?: SubscriptionSyncStepId;
|
|
106
|
+
lastErrorMessage?: string;
|
|
107
|
+
initiatedAt?: string;
|
|
108
|
+
completedAt?: string;
|
|
109
|
+
lastUpdated: string;
|
|
110
|
+
steps: SubscriptionSyncProgressStep[];
|
|
111
|
+
}
|
|
112
|
+
export interface SubscriptionInfoBase {
|
|
20
113
|
name: string;
|
|
114
|
+
friendlyName?: string;
|
|
21
115
|
cloudAccountId: string;
|
|
22
116
|
cloudAccountName: string;
|
|
117
|
+
/** Optional group name for subscription-level grouping */
|
|
118
|
+
groupName?: string;
|
|
119
|
+
/** Optional emoji shortcode (Slack-style, e.g. "/face") */
|
|
120
|
+
icon?: string;
|
|
121
|
+
/** Optional subscription type (Production, Non-Production, Mixed) */
|
|
122
|
+
subscriptionType?: SubscriptionType;
|
|
23
123
|
status?: string;
|
|
124
|
+
statusLabel?: string;
|
|
24
125
|
error?: string;
|
|
25
126
|
lastUpdated?: string;
|
|
26
127
|
quotaId?: string;
|
|
@@ -29,5 +130,19 @@ export interface SubscriptionAccount {
|
|
|
29
130
|
currencySymbol?: string;
|
|
30
131
|
foundCurrency?: boolean;
|
|
31
132
|
ready?: boolean;
|
|
133
|
+
secureScore?: number;
|
|
134
|
+
showAmortizedCosts?: boolean;
|
|
135
|
+
totalCost?: number;
|
|
136
|
+
billingItems?: number;
|
|
137
|
+
activityItems?: number;
|
|
138
|
+
eventId?: string;
|
|
139
|
+
readBitmask?: number;
|
|
140
|
+
syncProgress?: SubscriptionSyncProgress | string | null;
|
|
141
|
+
}
|
|
142
|
+
export interface SubscriptionAccount extends SubscriptionInfoBase {
|
|
143
|
+
/** Partition Key (Azure Subscription ID) */
|
|
144
|
+
id: string;
|
|
145
|
+
/** Row Key */
|
|
146
|
+
companyId: string;
|
|
32
147
|
}
|
|
33
148
|
//# 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,G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,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,wBAAwB,GAAG,MAAM,GAAG,IAAI,CAAC;CACzD;AAED,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,cAAc;IACd,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTION_SYNC_STEP_ORDER = void 0;
|
|
4
|
+
exports.SUBSCRIPTION_SYNC_STEP_ORDER = [
|
|
5
|
+
'metrics',
|
|
6
|
+
'resourcegroups',
|
|
7
|
+
'activities',
|
|
8
|
+
'queries',
|
|
9
|
+
'reliability',
|
|
10
|
+
'billing',
|
|
11
|
+
'costestimation',
|
|
12
|
+
'pricing',
|
|
13
|
+
'views',
|
|
14
|
+
];
|
|
3
15
|
//# 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":";;;AAOa,QAAA,4BAA4B,GAAG;IAC1C,SAAS;IACT,gBAAgB;IAChB,YAAY;IACZ,SAAS;IACT,aAAa;IACb,SAAS;IACT,gBAAgB;IAChB,SAAS;IACT,OAAO;CACC,CAAC"}
|
|
@@ -0,0 +1,294 @@
|
|
|
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' | 'savingsPlanReader' | 'graphApplicationReadAll' | '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
|
+
dataset: AzureSpBillingExportDataset;
|
|
162
|
+
effectiveDefinitionType?: AzureSpBillingExportEffectiveDefinitionType;
|
|
163
|
+
exportName: string;
|
|
164
|
+
exportResourceId: string;
|
|
165
|
+
storageAccountResourceId: string;
|
|
166
|
+
containerName: string;
|
|
167
|
+
rootFolderPath?: string;
|
|
168
|
+
isCompatible: boolean;
|
|
169
|
+
isActiveDaily?: boolean;
|
|
170
|
+
canBeReused?: boolean;
|
|
171
|
+
}
|
|
172
|
+
export interface AzureSpBillingExportPlan {
|
|
173
|
+
enabledByDefault: boolean;
|
|
174
|
+
selectedByDefault: boolean;
|
|
175
|
+
defaultContainerName: 'spotto-cost-exports';
|
|
176
|
+
defaultRootFolderPath: 'spotto';
|
|
177
|
+
defaultResourceGroupName: 'rg-spotto-cost-exports';
|
|
178
|
+
defaultLocation: 'australiaeast';
|
|
179
|
+
detectedCompatibleExports: AzureSpBillingExportDetectedExport[];
|
|
180
|
+
storageOptions: AzureSpBillingExportStorageOption[];
|
|
181
|
+
selectedMode?: AzureSpBillingExportMode;
|
|
182
|
+
selectedReuseDetectedExportResourceIds?: string[];
|
|
183
|
+
selectedStorageAccountResourceId?: string;
|
|
184
|
+
selectedContainerName?: string;
|
|
185
|
+
createStorage?: {
|
|
186
|
+
subscriptionId: string;
|
|
187
|
+
resourceGroupName: string;
|
|
188
|
+
location: string;
|
|
189
|
+
storageAccountName: string;
|
|
190
|
+
containerName: string;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
export interface AzureSpBillingExportResult {
|
|
194
|
+
subscriptionId: string;
|
|
195
|
+
dataset?: AzureSpBillingExportDataset;
|
|
196
|
+
effectiveDefinitionType?: AzureSpBillingExportEffectiveDefinitionType;
|
|
197
|
+
exportKind: 'recurring' | 'backfill' | 'storage' | 'providerRegistration';
|
|
198
|
+
exportName?: string;
|
|
199
|
+
exportResourceId?: string;
|
|
200
|
+
periodName?: string;
|
|
201
|
+
status: AzureSpBillingExportResultStatus;
|
|
202
|
+
storageAccountResourceId?: string;
|
|
203
|
+
containerName?: string;
|
|
204
|
+
rootFolderPath?: string;
|
|
205
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
206
|
+
message?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface AzureSpSetupStatusResponse {
|
|
209
|
+
setupId: string;
|
|
210
|
+
companyId: string;
|
|
211
|
+
mode: AzureSpSetupMode;
|
|
212
|
+
phase: AzureSpSetupPhase;
|
|
213
|
+
result: AzureSpSetupResult;
|
|
214
|
+
selectedTenantId?: string;
|
|
215
|
+
targetCloudAccountId?: string;
|
|
216
|
+
targetCloudAccountName?: string;
|
|
217
|
+
targetAzureApplicationAppId?: string;
|
|
218
|
+
permissionManifestVersion?: string;
|
|
219
|
+
targetPermissionManifestVersion?: string;
|
|
220
|
+
tenants?: AzureSpSetupTenant[];
|
|
221
|
+
subscriptions?: AzureSpSetupSubscriptionOption[];
|
|
222
|
+
permissionPlan?: AzureSpSetupPermissionPlanItem[];
|
|
223
|
+
permissionSummary?: AzureSpSetupPermissionSummary;
|
|
224
|
+
billingExportPlan?: AzureSpBillingExportPlan;
|
|
225
|
+
billingExportResults?: AzureSpBillingExportResult[];
|
|
226
|
+
operationResults?: AzureSpSetupOperationResult[];
|
|
227
|
+
progress?: AzureSpSetupProgressStep[];
|
|
228
|
+
resultCloudAccountId?: string;
|
|
229
|
+
resultCloudAccountName?: string;
|
|
230
|
+
errorCode?: AzureSpSetupErrorCode;
|
|
231
|
+
errorMessage?: string;
|
|
232
|
+
expiresAt: string;
|
|
233
|
+
canRetry: boolean;
|
|
234
|
+
canExecute: boolean;
|
|
235
|
+
executionId?: string;
|
|
236
|
+
executionAttempt?: number;
|
|
237
|
+
leaseExpiresAt?: string;
|
|
238
|
+
}
|
|
239
|
+
export interface AzureSpSetupSelectTenantRequest {
|
|
240
|
+
tenantId: string;
|
|
241
|
+
}
|
|
242
|
+
export interface AzureSpSetupSelectTenantResponse extends AzureSpSetupStatusResponse {
|
|
243
|
+
selectedTenantId: string;
|
|
244
|
+
authorizationUrl?: string;
|
|
245
|
+
}
|
|
246
|
+
export interface AzureSpSetupAuthorizeTenantResponse {
|
|
247
|
+
setupId: string;
|
|
248
|
+
authorizationUrl: string;
|
|
249
|
+
expiresAt: string;
|
|
250
|
+
}
|
|
251
|
+
export interface AzureSpSetupPlanRequest {
|
|
252
|
+
subscriptionIds: string[];
|
|
253
|
+
selectedPermissionInstanceKeys?: string[];
|
|
254
|
+
useTenantRootReader?: boolean;
|
|
255
|
+
billingExports?: {
|
|
256
|
+
enabled: boolean;
|
|
257
|
+
mode?: AzureSpBillingExportMode;
|
|
258
|
+
reuseDetectedExportResourceIds?: string[];
|
|
259
|
+
storageAccountResourceId?: string;
|
|
260
|
+
createStorage?: {
|
|
261
|
+
subscriptionId: string;
|
|
262
|
+
resourceGroupName: string;
|
|
263
|
+
location: string;
|
|
264
|
+
storageAccountName: string;
|
|
265
|
+
containerName: string;
|
|
266
|
+
};
|
|
267
|
+
containerName?: string;
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
export interface AzureSpSetupPlanResponse extends AzureSpSetupStatusResponse {
|
|
271
|
+
phase: 'readyToExecute';
|
|
272
|
+
permissionPlan: AzureSpSetupPermissionPlanItem[];
|
|
273
|
+
subscriptions: AzureSpSetupSubscriptionOption[];
|
|
274
|
+
}
|
|
275
|
+
export interface AzureSpSetupExecuteRequest {
|
|
276
|
+
subscriptionIds: string[];
|
|
277
|
+
selectedPermissionInstanceKeys: string[];
|
|
278
|
+
billingExports?: AzureSpSetupPlanRequest['billingExports'];
|
|
279
|
+
cloudAccountName?: string;
|
|
280
|
+
groupNames?: string[];
|
|
281
|
+
readBitmask?: number;
|
|
282
|
+
writeBitmask?: number;
|
|
283
|
+
}
|
|
284
|
+
export type AzureSpSetupExecuteResponse = AzureSpSetupStatusResponse;
|
|
285
|
+
export interface AzureSpSetupExecuteSuccessResponse extends AzureSpSetupStatusResponse {
|
|
286
|
+
phase: 'completed';
|
|
287
|
+
result: 'complete' | 'partial';
|
|
288
|
+
resultCloudAccountId: string;
|
|
289
|
+
}
|
|
290
|
+
export interface AzureSpSetupCancelResponse extends AzureSpSetupStatusResponse {
|
|
291
|
+
phase: 'cancelled';
|
|
292
|
+
result: 'cancelled';
|
|
293
|
+
}
|
|
294
|
+
//# 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,GAAG,SAAS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E,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"}
|