@spottoai/types-package 1.0.2-beta.24 → 1.0.2-beta.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/LICENSE +18 -40
  2. package/README.md +4 -13
  3. package/dist/accounts/accounts.d.ts +146 -2
  4. package/dist/accounts/accounts.d.ts.map +1 -1
  5. package/dist/accounts/accounts.js +13 -0
  6. package/dist/accounts/accounts.js.map +1 -1
  7. package/dist/accounts/azureSpSetup.d.ts +297 -0
  8. package/dist/accounts/azureSpSetup.d.ts.map +1 -0
  9. package/dist/accounts/azureSpSetup.js +3 -0
  10. package/dist/accounts/azureSpSetup.js.map +1 -0
  11. package/dist/accounts/index.d.ts +3 -0
  12. package/dist/accounts/index.d.ts.map +1 -1
  13. package/dist/accounts/index.js +3 -0
  14. package/dist/accounts/index.js.map +1 -1
  15. package/dist/accounts/readPermissions.d.ts +64 -0
  16. package/dist/accounts/readPermissions.d.ts.map +1 -0
  17. package/dist/accounts/readPermissions.js +148 -0
  18. package/dist/accounts/readPermissions.js.map +1 -0
  19. package/dist/accounts/validation.d.ts +91 -0
  20. package/dist/accounts/validation.d.ts.map +1 -0
  21. package/dist/accounts/validation.js +3 -0
  22. package/dist/accounts/validation.js.map +1 -0
  23. package/dist/accounts/writePermissions.d.ts +34 -0
  24. package/dist/accounts/writePermissions.d.ts.map +1 -0
  25. package/dist/accounts/writePermissions.js +37 -0
  26. package/dist/accounts/writePermissions.js.map +1 -0
  27. package/dist/ai/index.d.ts +975 -9
  28. package/dist/ai/index.d.ts.map +1 -1
  29. package/dist/ai/index.js +1 -1
  30. package/dist/ai/index.js.map +1 -1
  31. package/dist/azure/activityLogs.d.ts +65 -0
  32. package/dist/azure/activityLogs.d.ts.map +1 -0
  33. package/dist/azure/activityLogs.js +6 -0
  34. package/dist/azure/activityLogs.js.map +1 -0
  35. package/dist/azure/benefits.d.ts +137 -0
  36. package/dist/azure/benefits.d.ts.map +1 -0
  37. package/dist/azure/benefits.js +3 -0
  38. package/dist/azure/benefits.js.map +1 -0
  39. package/dist/azure/billingPlots.d.ts +249 -0
  40. package/dist/azure/billingPlots.d.ts.map +1 -0
  41. package/dist/azure/billingPlots.js +6 -0
  42. package/dist/azure/billingPlots.js.map +1 -0
  43. package/dist/azure/budgets.d.ts +4 -0
  44. package/dist/azure/budgets.d.ts.map +1 -1
  45. package/dist/azure/commitmentsPlanning.d.ts +586 -0
  46. package/dist/azure/commitmentsPlanning.d.ts.map +1 -0
  47. package/dist/azure/commitmentsPlanning.js +3 -0
  48. package/dist/azure/commitmentsPlanning.js.map +1 -0
  49. package/dist/azure/common.d.ts +34 -0
  50. package/dist/azure/common.d.ts.map +1 -1
  51. package/dist/azure/configs.d.ts +75 -2
  52. package/dist/azure/configs.d.ts.map +1 -1
  53. package/dist/azure/costEstimation.d.ts +78 -0
  54. package/dist/azure/costEstimation.d.ts.map +1 -0
  55. package/dist/azure/costEstimation.js +3 -0
  56. package/dist/azure/costEstimation.js.map +1 -0
  57. package/dist/azure/governance.d.ts +826 -0
  58. package/dist/azure/governance.d.ts.map +1 -0
  59. package/dist/azure/governance.js +14 -0
  60. package/dist/azure/governance.js.map +1 -0
  61. package/dist/azure/metrics.d.ts +75 -4
  62. package/dist/azure/metrics.d.ts.map +1 -1
  63. package/dist/azure/payloads.d.ts +135 -1
  64. package/dist/azure/payloads.d.ts.map +1 -1
  65. package/dist/azure/prices.d.ts +177 -0
  66. package/dist/azure/prices.d.ts.map +1 -1
  67. package/dist/azure/publicIpAddresses.d.ts +171 -0
  68. package/dist/azure/publicIpAddresses.d.ts.map +1 -0
  69. package/dist/azure/publicIpAddresses.js +6 -0
  70. package/dist/azure/publicIpAddresses.js.map +1 -0
  71. package/dist/azure/recommendationAudit.d.ts +113 -0
  72. package/dist/azure/recommendationAudit.d.ts.map +1 -0
  73. package/dist/azure/recommendationAudit.js +10 -0
  74. package/dist/azure/recommendationAudit.js.map +1 -0
  75. package/dist/azure/recommendationState.d.ts +92 -3
  76. package/dist/azure/recommendationState.d.ts.map +1 -1
  77. package/dist/azure/recommendationWorkflow.d.ts +124 -0
  78. package/dist/azure/recommendationWorkflow.d.ts.map +1 -0
  79. package/dist/azure/recommendationWorkflow.js +15 -0
  80. package/dist/azure/recommendationWorkflow.js.map +1 -0
  81. package/dist/azure/recommendations.d.ts +459 -6
  82. package/dist/azure/recommendations.d.ts.map +1 -1
  83. package/dist/azure/recommendations.js.map +1 -1
  84. package/dist/azure/relationships.d.ts +77 -0
  85. package/dist/azure/relationships.d.ts.map +1 -0
  86. package/dist/azure/relationships.js +3 -0
  87. package/dist/azure/relationships.js.map +1 -0
  88. package/dist/azure/reports.d.ts +248 -0
  89. package/dist/azure/reports.d.ts.map +1 -1
  90. package/dist/azure/reports.js +13 -0
  91. package/dist/azure/reports.js.map +1 -1
  92. package/dist/azure/resources.d.ts +80 -0
  93. package/dist/azure/resources.d.ts.map +1 -1
  94. package/dist/azure/reviewChecklist.d.ts +139 -0
  95. package/dist/azure/reviewChecklist.d.ts.map +1 -0
  96. package/dist/azure/reviewChecklist.js +3 -0
  97. package/dist/azure/reviewChecklist.js.map +1 -0
  98. package/dist/azure/security.d.ts +15 -1
  99. package/dist/azure/security.d.ts.map +1 -1
  100. package/dist/azure/serviceRetirement.d.ts +28 -0
  101. package/dist/azure/serviceRetirement.d.ts.map +1 -0
  102. package/dist/azure/serviceRetirement.js +3 -0
  103. package/dist/azure/serviceRetirement.js.map +1 -0
  104. package/dist/azure/serviceRetirementState.d.ts +22 -0
  105. package/dist/azure/serviceRetirementState.d.ts.map +1 -0
  106. package/dist/azure/serviceRetirementState.js +3 -0
  107. package/dist/azure/serviceRetirementState.js.map +1 -0
  108. package/dist/azure/storage-inventory.d.ts +241 -0
  109. package/dist/azure/storage-inventory.d.ts.map +1 -0
  110. package/dist/azure/storage-inventory.js +3 -0
  111. package/dist/azure/storage-inventory.js.map +1 -0
  112. package/dist/azure/subscriptions.d.ts +34 -13
  113. package/dist/azure/subscriptions.d.ts.map +1 -1
  114. package/dist/azure/views.d.ts +452 -3
  115. package/dist/azure/views.d.ts.map +1 -1
  116. package/dist/common/index.d.ts +1 -0
  117. package/dist/common/index.d.ts.map +1 -1
  118. package/dist/common/index.js +1 -0
  119. package/dist/common/index.js.map +1 -1
  120. package/dist/common/pagination.d.ts +3 -0
  121. package/dist/common/pagination.d.ts.map +1 -1
  122. package/dist/common/provider.d.ts +9 -0
  123. package/dist/common/provider.d.ts.map +1 -0
  124. package/dist/common/provider.js +9 -0
  125. package/dist/common/provider.js.map +1 -0
  126. package/dist/company/billingAccount.d.ts +30 -0
  127. package/dist/company/billingAccount.d.ts.map +1 -0
  128. package/dist/company/billingAccount.js +3 -0
  129. package/dist/company/billingAccount.js.map +1 -0
  130. package/dist/company/company.d.ts +48 -1
  131. package/dist/company/company.d.ts.map +1 -1
  132. package/dist/company/companyHierarchy.d.ts +53 -0
  133. package/dist/company/companyHierarchy.d.ts.map +1 -0
  134. package/dist/company/companyHierarchy.js +3 -0
  135. package/dist/company/companyHierarchy.js.map +1 -0
  136. package/dist/company/index.d.ts +2 -0
  137. package/dist/company/index.d.ts.map +1 -1
  138. package/dist/company/index.js +2 -0
  139. package/dist/company/index.js.map +1 -1
  140. package/dist/company/notification.d.ts +34 -1
  141. package/dist/company/notification.d.ts.map +1 -1
  142. package/dist/company/notification.js +27 -12
  143. package/dist/company/notification.js.map +1 -1
  144. package/dist/company/survey.d.ts +3 -0
  145. package/dist/company/survey.d.ts.map +1 -1
  146. package/dist/events/alertDefinitionRun.d.ts +23 -0
  147. package/dist/events/alertDefinitionRun.d.ts.map +1 -0
  148. package/dist/events/alertDefinitionRun.js +3 -0
  149. package/dist/events/alertDefinitionRun.js.map +1 -0
  150. package/dist/events/baseAlert.d.ts +130 -0
  151. package/dist/events/baseAlert.d.ts.map +1 -0
  152. package/dist/events/baseAlert.js +3 -0
  153. package/dist/events/baseAlert.js.map +1 -0
  154. package/dist/events/cost.d.ts +361 -0
  155. package/dist/events/cost.d.ts.map +1 -0
  156. package/dist/events/cost.js +3 -0
  157. package/dist/events/cost.js.map +1 -0
  158. package/dist/events/costAnomalies.d.ts +47 -0
  159. package/dist/events/costAnomalies.d.ts.map +1 -0
  160. package/dist/events/costAnomalies.js +3 -0
  161. package/dist/events/costAnomalies.js.map +1 -0
  162. package/dist/events/costViews.d.ts +23 -0
  163. package/dist/events/costViews.d.ts.map +1 -0
  164. package/dist/events/costViews.js +3 -0
  165. package/dist/events/costViews.js.map +1 -0
  166. package/dist/events/eventStatus.d.ts +67 -0
  167. package/dist/events/eventStatus.d.ts.map +1 -0
  168. package/dist/events/eventStatus.js +3 -0
  169. package/dist/events/eventStatus.js.map +1 -0
  170. package/dist/events/index.d.ts +7 -0
  171. package/dist/events/index.d.ts.map +1 -0
  172. package/dist/events/index.js +23 -0
  173. package/dist/events/index.js.map +1 -0
  174. package/dist/feedbacks/feedback.d.ts +9 -0
  175. package/dist/feedbacks/feedback.d.ts.map +1 -1
  176. package/dist/identity/apikey.d.ts +67 -0
  177. package/dist/identity/apikey.d.ts.map +1 -0
  178. package/dist/identity/apikey.js +3 -0
  179. package/dist/identity/apikey.js.map +1 -0
  180. package/dist/identity/index.d.ts +2 -0
  181. package/dist/identity/index.d.ts.map +1 -0
  182. package/dist/identity/index.js +18 -0
  183. package/dist/identity/index.js.map +1 -0
  184. package/dist/index.d.ts +20 -0
  185. package/dist/index.d.ts.map +1 -1
  186. package/dist/index.js +20 -1
  187. package/dist/index.js.map +1 -1
  188. package/dist/index.vite.d.ts +35 -0
  189. package/dist/index.vite.d.ts.map +1 -0
  190. package/dist/index.vite.js +51 -0
  191. package/dist/index.vite.js.map +1 -0
  192. package/dist/integrations/halo.d.ts +76 -0
  193. package/dist/integrations/halo.d.ts.map +1 -0
  194. package/dist/integrations/halo.js +3 -0
  195. package/dist/integrations/halo.js.map +1 -0
  196. package/dist/integrations/index.d.ts +3 -0
  197. package/dist/integrations/index.d.ts.map +1 -0
  198. package/dist/integrations/index.js +19 -0
  199. package/dist/integrations/index.js.map +1 -0
  200. package/dist/integrations/integrationTickets.d.ts +67 -0
  201. package/dist/integrations/integrationTickets.d.ts.map +1 -0
  202. package/dist/integrations/integrationTickets.js +3 -0
  203. package/dist/integrations/integrationTickets.js.map +1 -0
  204. package/dist/scheduler/index.d.ts +2 -0
  205. package/dist/scheduler/index.d.ts.map +1 -0
  206. package/dist/scheduler/index.js +18 -0
  207. package/dist/scheduler/index.js.map +1 -0
  208. package/dist/scheduler/scheduler.d.ts +113 -0
  209. package/dist/scheduler/scheduler.d.ts.map +1 -0
  210. package/dist/scheduler/scheduler.js +3 -0
  211. package/dist/scheduler/scheduler.js.map +1 -0
  212. package/dist/tags/index.d.ts +2 -0
  213. package/dist/tags/index.d.ts.map +1 -0
  214. package/dist/tags/index.js +18 -0
  215. package/dist/tags/index.js.map +1 -0
  216. package/dist/tags/tags.d.ts +26 -0
  217. package/dist/tags/tags.d.ts.map +1 -0
  218. package/dist/tags/tags.js +10 -0
  219. package/dist/tags/tags.js.map +1 -0
  220. package/dist/unknown/services.d.ts +12 -0
  221. package/dist/unknown/services.d.ts.map +1 -0
  222. package/dist/unknown/services.js +3 -0
  223. package/dist/unknown/services.js.map +1 -0
  224. package/dist/users/companyUser.d.ts +6 -0
  225. package/dist/users/companyUser.d.ts.map +1 -1
  226. package/dist/users/companyUser.js.map +1 -1
  227. package/dist/users/user.d.ts +15 -1
  228. package/dist/users/user.d.ts.map +1 -1
  229. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,43 +1,21 @@
1
- PROPRIETARY LICENSE AGREEMENT
1
+ MIT License
2
2
 
3
3
  Copyright (c) 2024 Spotto AI (www.spotto.ai)
4
4
 
5
- This software and associated documentation files (the "Software") are the proprietary
6
- and confidential information of Spotto AI. The Software is made available publicly
7
- solely for internal use by Spotto AI and its authorized projects.
8
-
9
- RESTRICTIONS:
10
-
11
- 1. NO PERMISSION TO USE: Except as expressly stated below, no person or entity is
12
- granted any right, title, or interest in or to the Software.
13
-
14
- 2. INTERNAL USE ONLY: The Software may only be used internally by Spotto AI and its
15
- authorized projects for development, testing, and deployment purposes.
16
-
17
- 3. NO REDISTRIBUTION: The Software may not be redistributed, sold, leased, or
18
- otherwise made available to third parties.
19
-
20
- 4. NO DERIVATIVE WORKS: No derivative works based on the Software may be created
21
- without explicit written permission from Spotto AI.
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 for private repositories. This package contains common interfaces that can be reused across your API, frontend, and backend projects.
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 for private repositories
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
- Since this is a private repository, you'll need to use Git dependencies instead of npm. Add this to your consuming project's `package.json`:
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,41 @@
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 BillingExportLocatorScopeType = 'tenant' | 'billingAccount';
8
+ export interface BillingExportLocatorEntry {
9
+ scopeType: BillingExportLocatorScopeType;
10
+ scopePath: string;
11
+ exportName: string;
12
+ storageAccountName: string;
13
+ container: string;
14
+ rootFolderPath: string;
15
+ }
16
+ export interface CloudAccountBillingExportLocator {
17
+ actual?: BillingExportLocatorEntry;
18
+ amortized?: BillingExportLocatorEntry;
19
+ }
20
+ export declare const SUBSCRIPTION_SYNC_STEP_ORDER: readonly ["metrics", "resourcegroups", "activities", "queries", "reliability", "billing", "costestimation", "pricing", "commitments", "views"];
21
+ export type SubscriptionSyncStepId = (typeof SUBSCRIPTION_SYNC_STEP_ORDER)[number];
22
+ export type AzureDelegatedOnboardingStatus = 'subscriptionSelectionRequired' | 'active' | 'setupExpired';
23
+ export type AzureDelegatedAuthErrorCode = 'invalid_grant' | 'interaction_required' | 'consent_required' | 'claims_challenge' | 'forbidden' | 'unknown';
24
+ export type AzureDelegatedOAuthStatePhase = 'discoverTenants' | 'tenantSelectionRequired' | 'tenantConsent' | 'completed' | 'failed';
2
25
  export interface CloudAccount {
26
+ /** Partition Key */
3
27
  companyId: string;
28
+ /** Row Key (Azure Client ID, AWS Access Key ID) */
4
29
  id: string;
5
30
  name: string;
6
31
  companyName: string;
32
+ /** AWS, Azure, GCP, etc. */
7
33
  provider: string;
34
+ /** Missing authMode should be treated as servicePrincipal by consumers for backward compatibility. */
35
+ authMode?: CloudAccountAuthMode;
36
+ /** Optional list of subscription group names for this cloud account */
37
+ groupNames?: string[];
38
+ /** Azure Tenant ID */
8
39
  tenantId?: string;
9
40
  secret?: string;
10
41
  secretExpiresAt?: Date;
@@ -13,14 +44,113 @@ export interface CloudAccount {
13
44
  createdBy: string;
14
45
  status: string;
15
46
  objectives?: SurveyResponse[];
47
+ /** Preferred recommendation effort-estimate profile for this cloud account. */
48
+ effortProfile?: EffortEstimateProfileName;
49
+ writeSecret?: string;
50
+ writeSecretExpiresAt?: Date;
51
+ writeClientId?: string;
52
+ writeBitmask?: number;
53
+ readBitmask?: number;
54
+ tenantSyncStatus?: CloudAccountTenantSyncStatus;
55
+ tenantSyncRequestedAt?: Date;
56
+ tenantSyncStartedAt?: Date;
57
+ tenantSyncCompletedAt?: Date;
58
+ tenantSyncError?: string;
59
+ tenantSyncSource?: CloudAccountTenantSyncSource;
60
+ /** Internal delegated-user token cache. Do not expose this field in public API DTOs. */
61
+ delegatedTokenCache?: string;
62
+ onboardingStatus?: AzureDelegatedOnboardingStatus;
63
+ delegatedSetupExpiresAt?: Date | string;
64
+ delegatedTrialStartedAt?: Date | string;
65
+ delegatedTrialExpiresAt?: Date | string;
66
+ reauthRequired?: boolean;
67
+ lastAuthErrorCode?: AzureDelegatedAuthErrorCode;
68
+ lastAuthErrorAt?: Date | string;
69
+ connectedUserObjectId?: string;
70
+ connectedUserTenantId?: string;
71
+ connectedUserEmail?: string;
72
+ connectedUserDisplayName?: string;
73
+ connectedAt?: Date | string;
74
+ lastTokenRefreshAt?: Date | string;
75
+ lastDelegatedTokenCacheUpdatedAt?: Date | string;
76
+ /** Internal manual billing export locator override. Do not expose this field in public API DTOs. */
77
+ billingExportLocator?: string | CloudAccountBillingExportLocator;
78
+ }
79
+ export type PublicCloudAccountDto = Omit<CloudAccount, 'delegatedTokenCache' | 'secret' | 'writeSecret' | 'billingExportLocator'> & {
80
+ /** Display-only masked preview of the stored read secret. Never contains the full secret value. */
81
+ secretPreview?: string;
82
+ /** Display-only masked preview of the stored write secret. Never contains the full secret value. */
83
+ writeSecretPreview?: string;
84
+ };
85
+ export interface SyncProgressIssue {
86
+ type: 'capabilityMissing' | 'billingExport';
87
+ scope: 'cloudAccount' | 'subscription';
88
+ capabilityKey?: string;
89
+ capabilityDisplayName?: string;
90
+ capabilityDescription?: string;
91
+ requiredRoles?: string[];
92
+ message: string;
93
+ code?: string;
94
+ title?: string;
95
+ remediation?: string;
96
+ sourceSelected?: 'export' | 'query';
97
+ fallbackUsed?: boolean;
98
+ degraded?: boolean;
16
99
  }
17
- export interface SubscriptionAccount {
100
+ export type SubscriptionSyncProgressStepStatus = 'idle' | 'pending' | 'queued' | 'inProgress' | 'completed' | 'error';
101
+ export type SubscriptionSyncProgressSubStepStatus = SubscriptionSyncProgressStepStatus | 'skipped';
102
+ export type SubscriptionSyncProgressContextValue = string | number | boolean;
103
+ export interface SubscriptionSyncProgressSubStep {
18
104
  id: string;
19
- companyId: string;
105
+ status: SubscriptionSyncProgressSubStepStatus;
106
+ label?: string;
107
+ attempts?: number;
108
+ lastUpdated?: string;
109
+ lastError?: string;
110
+ durationMs?: number;
111
+ context?: Record<string, SubscriptionSyncProgressContextValue>;
112
+ }
113
+ export interface SubscriptionSyncProgressStep {
114
+ id: SubscriptionSyncStepId;
115
+ status: SubscriptionSyncProgressStepStatus;
116
+ attempts: number;
117
+ lastUpdated: string;
118
+ lastError?: string;
119
+ runId?: string;
120
+ active: boolean;
121
+ callCount?: number;
122
+ note?: string;
123
+ issue?: SyncProgressIssue;
124
+ subSteps?: SubscriptionSyncProgressSubStep[];
125
+ }
126
+ export interface SubscriptionSyncProgress {
127
+ runId?: string;
128
+ overallStatus: 'idle' | 'processing' | 'completed' | 'error';
129
+ progressLabel: string;
130
+ completedSteps: number;
131
+ totalSteps: number;
132
+ activeComponents: SubscriptionSyncStepId[];
133
+ currentStepId?: SubscriptionSyncStepId;
134
+ lastErrorComponent?: SubscriptionSyncStepId;
135
+ lastErrorMessage?: string;
136
+ initiatedAt?: string;
137
+ completedAt?: string;
138
+ lastUpdated: string;
139
+ steps: SubscriptionSyncProgressStep[];
140
+ }
141
+ export interface SubscriptionInfoBase {
20
142
  name: string;
143
+ friendlyName?: string;
21
144
  cloudAccountId: string;
22
145
  cloudAccountName: string;
146
+ /** Optional group name for subscription-level grouping */
147
+ groupName?: string;
148
+ /** Optional emoji shortcode (Slack-style, e.g. "/face") */
149
+ icon?: string;
150
+ /** Optional subscription type (Production, Non-Production, Mixed) */
151
+ subscriptionType?: SubscriptionType;
23
152
  status?: string;
153
+ statusLabel?: string;
24
154
  error?: string;
25
155
  lastUpdated?: string;
26
156
  quotaId?: string;
@@ -29,5 +159,19 @@ export interface SubscriptionAccount {
29
159
  currencySymbol?: string;
30
160
  foundCurrency?: boolean;
31
161
  ready?: boolean;
162
+ secureScore?: number;
163
+ showAmortizedCosts?: boolean;
164
+ totalCost?: number;
165
+ billingItems?: number;
166
+ activityItems?: number;
167
+ eventId?: string;
168
+ readBitmask?: number;
169
+ syncProgress?: SubscriptionSyncProgress | string | null;
170
+ }
171
+ export interface SubscriptionAccount extends SubscriptionInfoBase {
172
+ /** Partition Key (Azure Subscription ID) */
173
+ id: string;
174
+ /** Row Key */
175
+ companyId: string;
32
176
  }
33
177
  //# 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;AAE5C,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb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3 +1,16 @@
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
+ 'commitments',
14
+ 'views',
15
+ ];
3
16
  //# 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":";;;AAuBa,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;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jB,kBAAkB,EAAE,MAAM,CAAC;YAC3B,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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=azureSpSetup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureSpSetup.js","sourceRoot":"","sources":["../../src/accounts/azureSpSetup.ts"],"names":[],"mappings":""}
@@ -1,2 +1,5 @@
1
1
  export * from './accounts';
2
+ export * from './azureSpSetup';
3
+ export * from './writePermissions';
4
+ export * from './readPermissions';
2
5
  //# sourceMappingURL=index.d.ts.map
@@ -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"}