@discover-cloud/shared 1.2.9 → 1.3.0
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/dist/authorization/index.d.ts +1 -1
- package/dist/authorization/index.js +1 -1
- package/dist/authorization/permission-cache.service.d.ts +104 -16
- package/dist/authorization/permission-cache.service.js +156 -143
- package/dist/authorization/permission-checker.d.ts +30 -0
- package/dist/authorization/permission-checker.js +40 -0
- package/dist/contracts/auth-service/account.dto.d.ts +30 -0
- package/dist/contracts/auth-service/account.dto.js +7 -0
- package/dist/contracts/auth-service/auth.dto.d.ts +21 -0
- package/dist/contracts/auth-service/auth.dto.js +10 -0
- package/dist/dtos/auth-service.dto.d.ts +72 -26
- package/dist/dtos/auth-service.dto.js +4 -0
- package/dist/dtos/cloud-service.dto.d.ts +51 -27
- package/dist/dtos/cloud-service.dto.js +5 -0
- package/dist/dtos/insights-service.dto.d.ts +18 -27
- package/dist/dtos/insights-service.dto.js +8 -0
- package/dist/dtos/response.dto.d.ts +7 -84
- package/dist/dtos/response.dto.js +2 -21
- package/dist/dtos/user-service.dto.d.ts +118 -13
- package/dist/enums/domain.enums.d.ts +246 -75
- package/dist/enums/domain.enums.js +305 -102
- package/dist/enums/permissions.enums.d.ts +142 -80
- package/dist/enums/permissions.enums.js +174 -133
- package/dist/errors/app-error.d.ts +13 -18
- package/dist/errors/app-error.js +14 -20
- package/dist/errors/http-errors.d.ts +105 -17
- package/dist/errors/http-errors.js +118 -33
- package/dist/http/index.d.ts +1 -0
- package/dist/http/index.js +1 -0
- package/dist/http/request-context.d.ts +8 -0
- package/dist/http/request-context.js +37 -0
- package/dist/http/service-client.d.ts +91 -38
- package/dist/http/service-client.js +102 -53
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/jwt/index.d.ts +2 -1
- package/dist/jwt/index.js +2 -1
- package/dist/jwt/machine-jwt-verifier.d.ts +21 -0
- package/dist/jwt/machine-jwt-verifier.js +84 -0
- package/dist/jwt/machine-token-client.d.ts +35 -4
- package/dist/jwt/machine-token-client.js +57 -23
- package/dist/jwt/user-jwt-verifier.d.ts +31 -0
- package/dist/jwt/user-jwt-verifier.js +101 -0
- package/dist/messaging/index.d.ts +1 -0
- package/dist/{security → messaging}/index.js +1 -1
- package/dist/messaging/rabbitmq.client.d.ts +13 -0
- package/dist/messaging/rabbitmq.client.js +127 -0
- package/dist/middleware/error-handler.middleware.d.ts +8 -28
- package/dist/middleware/error-handler.middleware.js +61 -52
- package/dist/middleware/index.d.ts +7 -5
- package/dist/middleware/index.js +7 -5
- package/dist/middleware/request-context.middleware.d.ts +17 -0
- package/dist/middleware/request-context.middleware.js +73 -0
- package/dist/middleware/require-auth.middleware.d.ts +17 -70
- package/dist/middleware/require-auth.middleware.js +24 -103
- package/dist/middleware/require-machine.middleware.d.ts +38 -0
- package/dist/middleware/require-machine.middleware.js +123 -0
- package/dist/middleware/require-org-permission-from-body.middleware.d.ts +10 -0
- package/dist/middleware/require-org-permission-from-body.middleware.js +24 -0
- package/dist/middleware/require-org-permission.middleware.d.ts +19 -0
- package/dist/middleware/require-org-permission.middleware.js +115 -0
- package/dist/middleware/require-platform-permission.middleware.d.ts +19 -0
- package/dist/middleware/require-platform-permission.middleware.js +91 -0
- package/dist/middleware/require-user.middleware.d.ts +14 -0
- package/dist/middleware/require-user.middleware.js +30 -0
- package/dist/middleware/require-workspace-permission.middleware.d.ts +20 -0
- package/dist/middleware/require-workspace-permission.middleware.js +114 -0
- package/dist/middleware/validate.middleware.d.ts +29 -29
- package/dist/middleware/validate.middleware.js +30 -32
- package/dist/types/express.types.d.ts +83 -122
- package/dist/types/express.types.js +28 -47
- package/dist/utils/date.util.d.ts +6 -0
- package/dist/utils/date.util.js +11 -0
- package/dist/utils/env.util.d.ts +6 -0
- package/dist/utils/env.util.js +19 -0
- package/dist/utils/index.d.ts +5 -4
- package/dist/utils/index.js +5 -4
- package/dist/utils/logger.util.d.ts +26 -0
- package/dist/utils/logger.util.js +53 -0
- package/dist/utils/pagination.util.d.ts +6 -0
- package/dist/utils/pagination.util.js +20 -0
- package/dist/utils/response.util.d.ts +27 -0
- package/dist/utils/response.util.js +56 -0
- package/dist/utils/slug.util.d.ts +9 -0
- package/dist/utils/slug.util.js +32 -0
- package/dist/utils/url-safety.util.d.ts +6 -0
- package/dist/utils/url-safety.util.js +72 -0
- package/package.json +3 -1
- package/dist/authorization/permissions.d.ts +0 -78
- package/dist/authorization/permissions.js +0 -174
- package/dist/context/access-context.d.ts +0 -10
- package/dist/context/access-context.js +0 -2
- package/dist/context/index.d.ts +0 -1
- package/dist/context/index.js +0 -17
- package/dist/dto/auth-service.dtos.d.ts +0 -44
- package/dist/dto/auth-service.dtos.js +0 -2
- package/dist/dto/index.d.ts +0 -3
- package/dist/dto/index.js +0 -19
- package/dist/dto/response.dtos.d.ts +0 -55
- package/dist/dto/response.dtos.js +0 -6
- package/dist/dto/user-service.dtos.d.ts +0 -50
- package/dist/dto/user-service.dtos.js +0 -2
- package/dist/enums/auth-service.enums.d.ts +0 -12
- package/dist/enums/auth-service.enums.js +0 -17
- package/dist/enums/permissions.types.d.ts +0 -12
- package/dist/enums/permissions.types.js +0 -17
- package/dist/enums/user-service.enums.d.ts +0 -32
- package/dist/enums/user-service.enums.js +0 -41
- package/dist/internal/index.d.ts +0 -4
- package/dist/internal/index.js +0 -20
- package/dist/internal/internal-jwt.service.d.ts +0 -13
- package/dist/internal/internal-jwt.service.js +0 -88
- package/dist/internal/internal-jwt.types.d.ts +0 -7
- package/dist/internal/internal-jwt.types.js +0 -2
- package/dist/internal/internal-key-manager.d.ts +0 -16
- package/dist/internal/internal-key-manager.js +0 -67
- package/dist/internal/registry.d.ts +0 -8
- package/dist/internal/registry.js +0 -34
- package/dist/internal/service-client.d.ts +0 -9
- package/dist/internal/service-client.js +0 -94
- package/dist/jwt/internal-jwt-verifier.d.ts +0 -41
- package/dist/jwt/internal-jwt-verifier.js +0 -185
- package/dist/jwt/jwt-verifier.d.ts +0 -9
- package/dist/jwt/jwt-verifier.js +0 -36
- package/dist/jwt/service-client.d.ts +0 -7
- package/dist/jwt/service-client.js +0 -87
- package/dist/middleware/authorize.d.ts +0 -3
- package/dist/middleware/authorize.js +0 -24
- package/dist/middleware/authorize.middleware.d.ts +0 -54
- package/dist/middleware/authorize.middleware.js +0 -104
- package/dist/middleware/error-handler.d.ts +0 -4
- package/dist/middleware/error-handler.js +0 -23
- package/dist/middleware/request-id.d.ts +0 -2
- package/dist/middleware/request-id.js +0 -9
- package/dist/middleware/request-id.middleware.d.ts +0 -22
- package/dist/middleware/request-id.middleware.js +0 -34
- package/dist/middleware/require-auth.d.ts +0 -10
- package/dist/middleware/require-auth.js +0 -34
- package/dist/middleware/require-human.middleware.d.ts +0 -2
- package/dist/middleware/require-human.middleware.js +0 -18
- package/dist/middleware/require-internal.middleware.d.ts +0 -18
- package/dist/middleware/require-internal.middleware.js +0 -183
- package/dist/middleware/validate.d.ts +0 -5
- package/dist/middleware/validate.js +0 -18
- package/dist/middleware/validated-merge.middleware.d.ts +0 -20
- package/dist/middleware/validated-merge.middleware.js +0 -33
- package/dist/middleware/verify-internal-jwt.d.ts +0 -7
- package/dist/middleware/verify-internal-jwt.js +0 -25
- package/dist/security/guard.d.ts +0 -10
- package/dist/security/guard.js +0 -40
- package/dist/security/index.d.ts +0 -1
- package/dist/types/express.d.ts +0 -22
- package/dist/types/express.js +0 -3
- package/dist/utils/date.utils.d.ts +0 -25
- package/dist/utils/date.utils.js +0 -30
- package/dist/utils/env.d.ts +0 -46
- package/dist/utils/env.js +0 -61
- package/dist/utils/env.utils.d.ts +0 -46
- package/dist/utils/env.utils.js +0 -61
- package/dist/utils/logger.utils.d.ts +0 -66
- package/dist/utils/logger.utils.js +0 -97
- package/dist/utils/response.d.ts +0 -4
- package/dist/utils/response.js +0 -35
- package/dist/utils/response.utils.d.ts +0 -54
- package/dist/utils/response.utils.js +0 -85
|
@@ -1,88 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* General-purpose enums for entity lifecycle, UI preferences, and
|
|
6
|
-
* cloud provider configuration.
|
|
7
|
-
*
|
|
8
|
-
* Permission-related enums (AccountRole, GlobalPermission, OrganizationRole,
|
|
9
|
-
* OrgPermission) live in permissions.enums.ts, not here.
|
|
10
|
-
*/
|
|
2
|
+
/* ---------------------------------------------------------------------------
|
|
3
|
+
Cloud Providers
|
|
4
|
+
--------------------------------------------------------------------------- */
|
|
11
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
/* ====================================================================
|
|
14
|
-
ACCOUNT
|
|
15
|
-
==================================================================== */
|
|
16
|
-
var AccountStatus;
|
|
17
|
-
(function (AccountStatus) {
|
|
18
|
-
AccountStatus["ACTIVE"] = "ACTIVE";
|
|
19
|
-
AccountStatus["SUSPENDED"] = "SUSPENDED";
|
|
20
|
-
AccountStatus["DELETED"] = "DELETED";
|
|
21
|
-
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
|
22
|
-
/* ====================================================================
|
|
23
|
-
ORGANIZATION
|
|
24
|
-
==================================================================== */
|
|
25
|
-
var OrganizationStatus;
|
|
26
|
-
(function (OrganizationStatus) {
|
|
27
|
-
OrganizationStatus["ACTIVE"] = "ACTIVE";
|
|
28
|
-
OrganizationStatus["SUSPENDED"] = "SUSPENDED";
|
|
29
|
-
OrganizationStatus["CLOSED"] = "CLOSED";
|
|
30
|
-
})(OrganizationStatus || (exports.OrganizationStatus = OrganizationStatus = {}));
|
|
31
|
-
var MembershipStatus;
|
|
32
|
-
(function (MembershipStatus) {
|
|
33
|
-
MembershipStatus["PENDING"] = "PENDING";
|
|
34
|
-
MembershipStatus["ACTIVE"] = "ACTIVE";
|
|
35
|
-
MembershipStatus["SUSPENDED"] = "SUSPENDED";
|
|
36
|
-
MembershipStatus["REMOVED"] = "REMOVED";
|
|
37
|
-
})(MembershipStatus || (exports.MembershipStatus = MembershipStatus = {}));
|
|
38
|
-
/* ====================================================================
|
|
39
|
-
UI PREFERENCES
|
|
40
|
-
==================================================================== */
|
|
41
|
-
var Theme;
|
|
42
|
-
(function (Theme) {
|
|
43
|
-
Theme["LIGHT"] = "LIGHT";
|
|
44
|
-
Theme["DARK"] = "DARK";
|
|
45
|
-
Theme["SYSTEM"] = "SYSTEM";
|
|
46
|
-
})(Theme || (exports.Theme = Theme = {}));
|
|
47
|
-
var Currency;
|
|
48
|
-
(function (Currency) {
|
|
49
|
-
Currency["USD"] = "USD";
|
|
50
|
-
Currency["EUR"] = "EUR";
|
|
51
|
-
Currency["GBP"] = "GBP";
|
|
52
|
-
Currency["INR"] = "INR";
|
|
53
|
-
Currency["AUD"] = "AUD";
|
|
54
|
-
Currency["CAD"] = "CAD";
|
|
55
|
-
Currency["JPY"] = "JPY";
|
|
56
|
-
Currency["SGD"] = "SGD";
|
|
57
|
-
})(Currency || (exports.Currency = Currency = {}));
|
|
58
|
-
/* ====================================================================
|
|
59
|
-
CLOUD PROVIDERS
|
|
60
|
-
Used by cloud-service for account connections, and by insights-service
|
|
61
|
-
for normalising cost/resource data across providers.
|
|
62
|
-
==================================================================== */
|
|
6
|
+
exports.InviteStatus = exports.InviteScopeType = exports.NotificationChannelType = exports.AlertRuleMetric = exports.AlertRuleOperator = exports.RoleAssignmentStatus = exports.ScopeType = exports.PermissionCategory = exports.RoleCategory = exports.RoleType = exports.WorkspaceType = exports.MembershipStatus = exports.WorkspaceStatus = exports.OrganizationStatus = exports.Currency = exports.Theme = exports.UserStatus = exports.PlatformRoleAssignmentStatus = exports.PlatformPermissionCategory = exports.PlatformRoleCategory = exports.PlatformRoleType = exports.OAuthProvider = exports.AccountTokenType = exports.AccountStatus = exports.ReportFormat = exports.ReportStatus = exports.ReportType = exports.AlertStatus = exports.RecommendationStatus = exports.RecommendationCategory = exports.Severity = exports.ResourceEventType = exports.SyncType = exports.SyncStatus = exports.CloudAccountStatus = exports.AzureAuthMethod = exports.GcpAuthMethod = exports.AwsAuthMethod = exports.CloudProvider = void 0;
|
|
63
7
|
var CloudProvider;
|
|
64
8
|
(function (CloudProvider) {
|
|
65
9
|
CloudProvider["AWS"] = "AWS";
|
|
66
10
|
CloudProvider["GCP"] = "GCP";
|
|
67
11
|
CloudProvider["AZURE"] = "AZURE";
|
|
68
12
|
})(CloudProvider || (exports.CloudProvider = CloudProvider = {}));
|
|
69
|
-
/*
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
Each provider has its own enum — exactly one is set per CloudAccount
|
|
73
|
-
and determines how the credential cipher stores + retrieves secrets.
|
|
74
|
-
==================================================================== */
|
|
75
|
-
/**
|
|
76
|
-
* AWS auth methods.
|
|
77
|
-
*
|
|
78
|
-
* ACCESS_KEY — Long-lived Access Key ID + Secret Access Key.
|
|
79
|
-
* Simplest to set up; least preferred for production.
|
|
80
|
-
* IAM_ROLE — Cross-account role assumption via Role ARN + External ID.
|
|
81
|
-
* Recommended for production AWS integrations.
|
|
82
|
-
* IAM_IDENTITY_CENTER — AWS SSO / IAM Identity Center (formerly AWS SSO).
|
|
83
|
-
* Used in organisations with centralised identity.
|
|
84
|
-
* IAM_ROLES_ANYWHERE — Certificate-based role assumption for non-AWS workloads.
|
|
85
|
-
*/
|
|
13
|
+
/* ---------------------------------------------------------------------------
|
|
14
|
+
Cloud Authentication
|
|
15
|
+
--------------------------------------------------------------------------- */
|
|
86
16
|
var AwsAuthMethod;
|
|
87
17
|
(function (AwsAuthMethod) {
|
|
88
18
|
AwsAuthMethod["ACCESS_KEY"] = "ACCESS_KEY";
|
|
@@ -90,29 +20,12 @@ var AwsAuthMethod;
|
|
|
90
20
|
AwsAuthMethod["IAM_IDENTITY_CENTER"] = "IAM_IDENTITY_CENTER";
|
|
91
21
|
AwsAuthMethod["IAM_ROLES_ANYWHERE"] = "IAM_ROLES_ANYWHERE";
|
|
92
22
|
})(AwsAuthMethod || (exports.AwsAuthMethod = AwsAuthMethod = {}));
|
|
93
|
-
/**
|
|
94
|
-
* GCP auth methods.
|
|
95
|
-
*
|
|
96
|
-
* SERVICE_ACCOUNT_KEY — JSON key file for a GCP service account.
|
|
97
|
-
* Simpler but requires secure key storage.
|
|
98
|
-
* WORKLOAD_IDENTITY — Keyless auth using Workload Identity Federation.
|
|
99
|
-
* Preferred for production.
|
|
100
|
-
* SERVICE_ACCOUNT_IMPERSONATION — Short-lived tokens via service account impersonation.
|
|
101
|
-
*/
|
|
102
23
|
var GcpAuthMethod;
|
|
103
24
|
(function (GcpAuthMethod) {
|
|
104
25
|
GcpAuthMethod["SERVICE_ACCOUNT_KEY"] = "SERVICE_ACCOUNT_KEY";
|
|
105
26
|
GcpAuthMethod["WORKLOAD_IDENTITY"] = "WORKLOAD_IDENTITY";
|
|
106
27
|
GcpAuthMethod["SERVICE_ACCOUNT_IMPERSONATION"] = "SERVICE_ACCOUNT_IMPERSONATION";
|
|
107
28
|
})(GcpAuthMethod || (exports.GcpAuthMethod = GcpAuthMethod = {}));
|
|
108
|
-
/**
|
|
109
|
-
* Azure auth methods.
|
|
110
|
-
*
|
|
111
|
-
* SERVICE_PRINCIPAL_SECRET — Client ID + Client Secret for an app registration.
|
|
112
|
-
* SERVICE_PRINCIPAL_CERTIFICATE — Client ID + certificate (more secure than secret).
|
|
113
|
-
* MANAGED_IDENTITY_USER — User-assigned managed identity.
|
|
114
|
-
* MANAGED_IDENTITY_SYSTEM — System-assigned managed identity (tied to the resource).
|
|
115
|
-
*/
|
|
116
29
|
var AzureAuthMethod;
|
|
117
30
|
(function (AzureAuthMethod) {
|
|
118
31
|
AzureAuthMethod["SERVICE_PRINCIPAL_SECRET"] = "SERVICE_PRINCIPAL_SECRET";
|
|
@@ -120,10 +33,9 @@ var AzureAuthMethod;
|
|
|
120
33
|
AzureAuthMethod["MANAGED_IDENTITY_USER"] = "MANAGED_IDENTITY_USER";
|
|
121
34
|
AzureAuthMethod["MANAGED_IDENTITY_SYSTEM"] = "MANAGED_IDENTITY_SYSTEM";
|
|
122
35
|
})(AzureAuthMethod || (exports.AzureAuthMethod = AzureAuthMethod = {}));
|
|
123
|
-
/*
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
==================================================================== */
|
|
36
|
+
/* ---------------------------------------------------------------------------
|
|
37
|
+
Cloud Account Status
|
|
38
|
+
--------------------------------------------------------------------------- */
|
|
127
39
|
var CloudAccountStatus;
|
|
128
40
|
(function (CloudAccountStatus) {
|
|
129
41
|
CloudAccountStatus["PENDING"] = "PENDING";
|
|
@@ -131,10 +43,9 @@ var CloudAccountStatus;
|
|
|
131
43
|
CloudAccountStatus["ERROR"] = "ERROR";
|
|
132
44
|
CloudAccountStatus["INACTIVE"] = "INACTIVE";
|
|
133
45
|
})(CloudAccountStatus || (exports.CloudAccountStatus = CloudAccountStatus = {}));
|
|
134
|
-
/*
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
==================================================================== */
|
|
46
|
+
/* ---------------------------------------------------------------------------
|
|
47
|
+
Sync Jobs
|
|
48
|
+
--------------------------------------------------------------------------- */
|
|
138
49
|
var SyncStatus;
|
|
139
50
|
(function (SyncStatus) {
|
|
140
51
|
SyncStatus["PENDING"] = "PENDING";
|
|
@@ -150,3 +61,295 @@ var SyncType;
|
|
|
150
61
|
SyncType["RESOURCES"] = "RESOURCES";
|
|
151
62
|
SyncType["BUDGETS"] = "BUDGETS";
|
|
152
63
|
})(SyncType || (exports.SyncType = SyncType = {}));
|
|
64
|
+
/* ---------------------------------------------------------------------------
|
|
65
|
+
Resource Events
|
|
66
|
+
--------------------------------------------------------------------------- */
|
|
67
|
+
/**
|
|
68
|
+
* Type of change detected in a cloud resource lifecycle.
|
|
69
|
+
*/
|
|
70
|
+
var ResourceEventType;
|
|
71
|
+
(function (ResourceEventType) {
|
|
72
|
+
ResourceEventType["CREATED"] = "CREATED";
|
|
73
|
+
ResourceEventType["UPDATED"] = "UPDATED";
|
|
74
|
+
ResourceEventType["DELETED"] = "DELETED";
|
|
75
|
+
ResourceEventType["STATUS_CHANGED"] = "STATUS_CHANGED";
|
|
76
|
+
ResourceEventType["CONFIG_CHANGED"] = "CONFIG_CHANGED";
|
|
77
|
+
ResourceEventType["TAG_CHANGED"] = "TAG_CHANGED";
|
|
78
|
+
ResourceEventType["SECURITY_CHANGED"] = "SECURITY_CHANGED";
|
|
79
|
+
ResourceEventType["COST_CHANGED"] = "COST_CHANGED";
|
|
80
|
+
})(ResourceEventType || (exports.ResourceEventType = ResourceEventType = {}));
|
|
81
|
+
/* ---------------------------------------------------------------------------
|
|
82
|
+
Severity
|
|
83
|
+
--------------------------------------------------------------------------- */
|
|
84
|
+
/**
|
|
85
|
+
* Generic severity scale used by alerts, recommendations,
|
|
86
|
+
* resource events, and future security findings.
|
|
87
|
+
*/
|
|
88
|
+
var Severity;
|
|
89
|
+
(function (Severity) {
|
|
90
|
+
Severity["INFO"] = "INFO";
|
|
91
|
+
Severity["LOW"] = "LOW";
|
|
92
|
+
Severity["MEDIUM"] = "MEDIUM";
|
|
93
|
+
Severity["HIGH"] = "HIGH";
|
|
94
|
+
Severity["CRITICAL"] = "CRITICAL";
|
|
95
|
+
})(Severity || (exports.Severity = Severity = {}));
|
|
96
|
+
/* ---------------------------------------------------------------------------
|
|
97
|
+
Recommendations
|
|
98
|
+
--------------------------------------------------------------------------- */
|
|
99
|
+
/**
|
|
100
|
+
* Optimization recommendation category.
|
|
101
|
+
*/
|
|
102
|
+
var RecommendationCategory;
|
|
103
|
+
(function (RecommendationCategory) {
|
|
104
|
+
RecommendationCategory["COST"] = "COST";
|
|
105
|
+
RecommendationCategory["SECURITY"] = "SECURITY";
|
|
106
|
+
RecommendationCategory["PERFORMANCE"] = "PERFORMANCE";
|
|
107
|
+
RecommendationCategory["RELIABILITY"] = "RELIABILITY";
|
|
108
|
+
})(RecommendationCategory || (exports.RecommendationCategory = RecommendationCategory = {}));
|
|
109
|
+
/**
|
|
110
|
+
* Lifecycle status of a recommendation.
|
|
111
|
+
*/
|
|
112
|
+
var RecommendationStatus;
|
|
113
|
+
(function (RecommendationStatus) {
|
|
114
|
+
RecommendationStatus["OPEN"] = "OPEN";
|
|
115
|
+
RecommendationStatus["APPLIED"] = "APPLIED";
|
|
116
|
+
RecommendationStatus["DISMISSED"] = "DISMISSED";
|
|
117
|
+
})(RecommendationStatus || (exports.RecommendationStatus = RecommendationStatus = {}));
|
|
118
|
+
/* ---------------------------------------------------------------------------
|
|
119
|
+
Alerts
|
|
120
|
+
--------------------------------------------------------------------------- */
|
|
121
|
+
/**
|
|
122
|
+
* User-facing alert lifecycle state.
|
|
123
|
+
*/
|
|
124
|
+
var AlertStatus;
|
|
125
|
+
(function (AlertStatus) {
|
|
126
|
+
AlertStatus["OPEN"] = "OPEN";
|
|
127
|
+
AlertStatus["ACKNOWLEDGED"] = "ACKNOWLEDGED";
|
|
128
|
+
AlertStatus["RESOLVED"] = "RESOLVED";
|
|
129
|
+
})(AlertStatus || (exports.AlertStatus = AlertStatus = {}));
|
|
130
|
+
/* ---------------------------------------------------------------------------
|
|
131
|
+
Reports
|
|
132
|
+
--------------------------------------------------------------------------- */
|
|
133
|
+
var ReportType;
|
|
134
|
+
(function (ReportType) {
|
|
135
|
+
ReportType["COST"] = "COST";
|
|
136
|
+
ReportType["RESOURCE"] = "RESOURCE";
|
|
137
|
+
ReportType["SECURITY"] = "SECURITY";
|
|
138
|
+
ReportType["COMPLIANCE"] = "COMPLIANCE";
|
|
139
|
+
ReportType["EXECUTIVE"] = "EXECUTIVE";
|
|
140
|
+
})(ReportType || (exports.ReportType = ReportType = {}));
|
|
141
|
+
var ReportStatus;
|
|
142
|
+
(function (ReportStatus) {
|
|
143
|
+
ReportStatus["PENDING"] = "PENDING";
|
|
144
|
+
ReportStatus["GENERATING"] = "GENERATING";
|
|
145
|
+
ReportStatus["COMPLETED"] = "COMPLETED";
|
|
146
|
+
ReportStatus["FAILED"] = "FAILED";
|
|
147
|
+
})(ReportStatus || (exports.ReportStatus = ReportStatus = {}));
|
|
148
|
+
var ReportFormat;
|
|
149
|
+
(function (ReportFormat) {
|
|
150
|
+
ReportFormat["PDF"] = "PDF";
|
|
151
|
+
ReportFormat["CSV"] = "CSV";
|
|
152
|
+
ReportFormat["EXCEL"] = "EXCEL";
|
|
153
|
+
})(ReportFormat || (exports.ReportFormat = ReportFormat = {}));
|
|
154
|
+
/* ---------------------------------------------------------------------------
|
|
155
|
+
Auth Service
|
|
156
|
+
--------------------------------------------------------------------------- */
|
|
157
|
+
var AccountStatus;
|
|
158
|
+
(function (AccountStatus) {
|
|
159
|
+
AccountStatus["ACTIVE"] = "ACTIVE";
|
|
160
|
+
AccountStatus["SUSPENDED"] = "SUSPENDED";
|
|
161
|
+
AccountStatus["PENDING_DELETION"] = "PENDING_DELETION";
|
|
162
|
+
AccountStatus["DELETED"] = "DELETED";
|
|
163
|
+
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
|
164
|
+
var AccountTokenType;
|
|
165
|
+
(function (AccountTokenType) {
|
|
166
|
+
AccountTokenType["EMAIL_VERIFICATION"] = "EMAIL_VERIFICATION";
|
|
167
|
+
AccountTokenType["PASSWORD_RESET"] = "PASSWORD_RESET";
|
|
168
|
+
AccountTokenType["MAGIC_LINK"] = "MAGIC_LINK";
|
|
169
|
+
AccountTokenType["UNLOCK_ACCOUNT"] = "UNLOCK_ACCOUNT";
|
|
170
|
+
})(AccountTokenType || (exports.AccountTokenType = AccountTokenType = {}));
|
|
171
|
+
var OAuthProvider;
|
|
172
|
+
(function (OAuthProvider) {
|
|
173
|
+
OAuthProvider["GOOGLE"] = "GOOGLE";
|
|
174
|
+
OAuthProvider["GITHUB"] = "GITHUB";
|
|
175
|
+
OAuthProvider["MICROSOFT"] = "MICROSOFT";
|
|
176
|
+
OAuthProvider["AMAZON"] = "AMAZON";
|
|
177
|
+
})(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
|
|
178
|
+
var PlatformRoleType;
|
|
179
|
+
(function (PlatformRoleType) {
|
|
180
|
+
PlatformRoleType["SYSTEM"] = "SYSTEM";
|
|
181
|
+
PlatformRoleType["CUSTOM"] = "CUSTOM";
|
|
182
|
+
})(PlatformRoleType || (exports.PlatformRoleType = PlatformRoleType = {}));
|
|
183
|
+
var PlatformRoleCategory;
|
|
184
|
+
(function (PlatformRoleCategory) {
|
|
185
|
+
PlatformRoleCategory["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
186
|
+
PlatformRoleCategory["SYSTEM_ADMIN"] = "SYSTEM_ADMIN";
|
|
187
|
+
PlatformRoleCategory["SUPPORT"] = "SUPPORT";
|
|
188
|
+
PlatformRoleCategory["ACCOUNT_MANAGER"] = "ACCOUNT_MANAGER";
|
|
189
|
+
PlatformRoleCategory["SECURITY"] = "SECURITY";
|
|
190
|
+
PlatformRoleCategory["BILLING"] = "BILLING";
|
|
191
|
+
PlatformRoleCategory["AUDITOR"] = "AUDITOR";
|
|
192
|
+
PlatformRoleCategory["CUSTOM"] = "CUSTOM";
|
|
193
|
+
})(PlatformRoleCategory || (exports.PlatformRoleCategory = PlatformRoleCategory = {}));
|
|
194
|
+
var PlatformPermissionCategory;
|
|
195
|
+
(function (PlatformPermissionCategory) {
|
|
196
|
+
PlatformPermissionCategory["TENANT_MANAGEMENT"] = "TENANT_MANAGEMENT";
|
|
197
|
+
PlatformPermissionCategory["USER_MANAGEMENT"] = "USER_MANAGEMENT";
|
|
198
|
+
PlatformPermissionCategory["ACCESS_MANAGEMENT"] = "ACCESS_MANAGEMENT";
|
|
199
|
+
PlatformPermissionCategory["BILLING_AND_SUBSCRIPTION"] = "BILLING_AND_SUBSCRIPTION";
|
|
200
|
+
PlatformPermissionCategory["SYSTEM_CONFIGURATION"] = "SYSTEM_CONFIGURATION";
|
|
201
|
+
PlatformPermissionCategory["SECURITY_AND_COMPLIANCE"] = "SECURITY_AND_COMPLIANCE";
|
|
202
|
+
PlatformPermissionCategory["SUPPORT_AND_TROUBLESHOOTING"] = "SUPPORT_AND_TROUBLESHOOTING";
|
|
203
|
+
PlatformPermissionCategory["ANALYTICS_AND_REPORTING"] = "ANALYTICS_AND_REPORTING";
|
|
204
|
+
})(PlatformPermissionCategory || (exports.PlatformPermissionCategory = PlatformPermissionCategory = {}));
|
|
205
|
+
var PlatformRoleAssignmentStatus;
|
|
206
|
+
(function (PlatformRoleAssignmentStatus) {
|
|
207
|
+
PlatformRoleAssignmentStatus["ACTIVE"] = "ACTIVE";
|
|
208
|
+
PlatformRoleAssignmentStatus["REVOKED"] = "REVOKED";
|
|
209
|
+
})(PlatformRoleAssignmentStatus || (exports.PlatformRoleAssignmentStatus = PlatformRoleAssignmentStatus = {}));
|
|
210
|
+
/* ---------------------------------------------------------------------------
|
|
211
|
+
User Service
|
|
212
|
+
--------------------------------------------------------------------------- */
|
|
213
|
+
var UserStatus;
|
|
214
|
+
(function (UserStatus) {
|
|
215
|
+
UserStatus["ACTIVE"] = "ACTIVE";
|
|
216
|
+
UserStatus["SUSPENDED"] = "SUSPENDED";
|
|
217
|
+
UserStatus["PENDING_DELETION"] = "PENDING_DELETION";
|
|
218
|
+
UserStatus["DELETED"] = "DELETED";
|
|
219
|
+
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
220
|
+
var Theme;
|
|
221
|
+
(function (Theme) {
|
|
222
|
+
Theme["LIGHT"] = "LIGHT";
|
|
223
|
+
Theme["DARK"] = "DARK";
|
|
224
|
+
Theme["SYSTEM"] = "SYSTEM";
|
|
225
|
+
})(Theme || (exports.Theme = Theme = {}));
|
|
226
|
+
var Currency;
|
|
227
|
+
(function (Currency) {
|
|
228
|
+
Currency["USD"] = "USD";
|
|
229
|
+
Currency["EUR"] = "EUR";
|
|
230
|
+
Currency["GBP"] = "GBP";
|
|
231
|
+
Currency["INR"] = "INR";
|
|
232
|
+
Currency["AUD"] = "AUD";
|
|
233
|
+
Currency["CAD"] = "CAD";
|
|
234
|
+
Currency["JPY"] = "JPY";
|
|
235
|
+
Currency["SGD"] = "SGD";
|
|
236
|
+
})(Currency || (exports.Currency = Currency = {}));
|
|
237
|
+
var OrganizationStatus;
|
|
238
|
+
(function (OrganizationStatus) {
|
|
239
|
+
OrganizationStatus["ACTIVE"] = "ACTIVE";
|
|
240
|
+
OrganizationStatus["SUSPENDED"] = "SUSPENDED";
|
|
241
|
+
OrganizationStatus["PENDING_DELETION"] = "PENDING_DELETION";
|
|
242
|
+
OrganizationStatus["DELETED"] = "DELETED";
|
|
243
|
+
})(OrganizationStatus || (exports.OrganizationStatus = OrganizationStatus = {}));
|
|
244
|
+
var WorkspaceStatus;
|
|
245
|
+
(function (WorkspaceStatus) {
|
|
246
|
+
WorkspaceStatus["ACTIVE"] = "ACTIVE";
|
|
247
|
+
WorkspaceStatus["SUSPENDED"] = "SUSPENDED";
|
|
248
|
+
WorkspaceStatus["PENDING_DELETION"] = "PENDING_DELETION";
|
|
249
|
+
WorkspaceStatus["DELETED"] = "DELETED";
|
|
250
|
+
})(WorkspaceStatus || (exports.WorkspaceStatus = WorkspaceStatus = {}));
|
|
251
|
+
var MembershipStatus;
|
|
252
|
+
(function (MembershipStatus) {
|
|
253
|
+
MembershipStatus["ACTIVE"] = "ACTIVE";
|
|
254
|
+
MembershipStatus["INACTIVE"] = "INACTIVE";
|
|
255
|
+
})(MembershipStatus || (exports.MembershipStatus = MembershipStatus = {}));
|
|
256
|
+
var WorkspaceType;
|
|
257
|
+
(function (WorkspaceType) {
|
|
258
|
+
WorkspaceType["PERSONAL"] = "PERSONAL";
|
|
259
|
+
WorkspaceType["TEAM"] = "TEAM";
|
|
260
|
+
WorkspaceType["ORGANIZATION"] = "ORGANIZATION";
|
|
261
|
+
})(WorkspaceType || (exports.WorkspaceType = WorkspaceType = {}));
|
|
262
|
+
var RoleType;
|
|
263
|
+
(function (RoleType) {
|
|
264
|
+
RoleType["SYSTEM"] = "SYSTEM";
|
|
265
|
+
RoleType["CUSTOM"] = "CUSTOM";
|
|
266
|
+
})(RoleType || (exports.RoleType = RoleType = {}));
|
|
267
|
+
var RoleCategory;
|
|
268
|
+
(function (RoleCategory) {
|
|
269
|
+
RoleCategory["OWNER"] = "OWNER";
|
|
270
|
+
RoleCategory["ADMIN"] = "ADMIN";
|
|
271
|
+
RoleCategory["MEMBER"] = "MEMBER";
|
|
272
|
+
RoleCategory["VIEWER"] = "VIEWER";
|
|
273
|
+
RoleCategory["FINOPS"] = "FINOPS";
|
|
274
|
+
RoleCategory["BILLING"] = "BILLING";
|
|
275
|
+
RoleCategory["SECURITY"] = "SECURITY";
|
|
276
|
+
RoleCategory["ENGINEERING"] = "ENGINEERING";
|
|
277
|
+
RoleCategory["DEVELOPER"] = "DEVELOPER";
|
|
278
|
+
RoleCategory["AUTOMATION"] = "AUTOMATION";
|
|
279
|
+
RoleCategory["CUSTOM"] = "CUSTOM";
|
|
280
|
+
})(RoleCategory || (exports.RoleCategory = RoleCategory = {}));
|
|
281
|
+
var PermissionCategory;
|
|
282
|
+
(function (PermissionCategory) {
|
|
283
|
+
PermissionCategory["ORGANIZATION"] = "ORGANIZATION";
|
|
284
|
+
PermissionCategory["ORGANIZATION_MEMBERS"] = "ORGANIZATION_MEMBERS";
|
|
285
|
+
PermissionCategory["ORGANIZATION_INVITES"] = "ORGANIZATION_INVITES";
|
|
286
|
+
PermissionCategory["ORGANIZATION_ROLES"] = "ORGANIZATION_ROLES";
|
|
287
|
+
PermissionCategory["WORKSPACE"] = "WORKSPACE";
|
|
288
|
+
PermissionCategory["WORKSPACE_MEMBERS"] = "WORKSPACE_MEMBERS";
|
|
289
|
+
PermissionCategory["WORKSPACE_INVITES"] = "WORKSPACE_INVITES";
|
|
290
|
+
PermissionCategory["CLOUD_ACCOUNT"] = "CLOUD_ACCOUNT";
|
|
291
|
+
PermissionCategory["CLOUD_RESOURCE"] = "CLOUD_RESOURCE";
|
|
292
|
+
PermissionCategory["INVENTORY"] = "INVENTORY";
|
|
293
|
+
PermissionCategory["COST_MANAGEMENT"] = "COST_MANAGEMENT";
|
|
294
|
+
PermissionCategory["BUDGET"] = "BUDGET";
|
|
295
|
+
PermissionCategory["FORECASTING"] = "FORECASTING";
|
|
296
|
+
PermissionCategory["OPTIMIZATION"] = "OPTIMIZATION";
|
|
297
|
+
PermissionCategory["RECOMMENDATION"] = "RECOMMENDATION";
|
|
298
|
+
PermissionCategory["ALERTING"] = "ALERTING";
|
|
299
|
+
PermissionCategory["ANOMALY_DETECTION"] = "ANOMALY_DETECTION";
|
|
300
|
+
PermissionCategory["NOTIFICATION"] = "NOTIFICATION";
|
|
301
|
+
PermissionCategory["DASHBOARD"] = "DASHBOARD";
|
|
302
|
+
PermissionCategory["REPORTING"] = "REPORTING";
|
|
303
|
+
PermissionCategory["ANALYTICS"] = "ANALYTICS";
|
|
304
|
+
PermissionCategory["SECURITY"] = "SECURITY";
|
|
305
|
+
PermissionCategory["COMPLIANCE"] = "COMPLIANCE";
|
|
306
|
+
PermissionCategory["AUDIT"] = "AUDIT";
|
|
307
|
+
PermissionCategory["AUTOMATION"] = "AUTOMATION";
|
|
308
|
+
PermissionCategory["WORKFLOW"] = "WORKFLOW";
|
|
309
|
+
PermissionCategory["BILLING"] = "BILLING";
|
|
310
|
+
PermissionCategory["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
311
|
+
PermissionCategory["SYSTEM_CONFIG"] = "SYSTEM_CONFIG";
|
|
312
|
+
})(PermissionCategory || (exports.PermissionCategory = PermissionCategory = {}));
|
|
313
|
+
var ScopeType;
|
|
314
|
+
(function (ScopeType) {
|
|
315
|
+
ScopeType["ORGANIZATION"] = "ORGANIZATION";
|
|
316
|
+
ScopeType["WORKSPACE"] = "WORKSPACE";
|
|
317
|
+
})(ScopeType || (exports.ScopeType = ScopeType = {}));
|
|
318
|
+
var RoleAssignmentStatus;
|
|
319
|
+
(function (RoleAssignmentStatus) {
|
|
320
|
+
RoleAssignmentStatus["ACTIVE"] = "ACTIVE";
|
|
321
|
+
RoleAssignmentStatus["REVOKED"] = "REVOKED";
|
|
322
|
+
})(RoleAssignmentStatus || (exports.RoleAssignmentStatus = RoleAssignmentStatus = {}));
|
|
323
|
+
var AlertRuleOperator;
|
|
324
|
+
(function (AlertRuleOperator) {
|
|
325
|
+
AlertRuleOperator["GT"] = "GT";
|
|
326
|
+
AlertRuleOperator["LT"] = "LT";
|
|
327
|
+
AlertRuleOperator["GTE"] = "GTE";
|
|
328
|
+
AlertRuleOperator["LTE"] = "LTE";
|
|
329
|
+
})(AlertRuleOperator || (exports.AlertRuleOperator = AlertRuleOperator = {}));
|
|
330
|
+
var AlertRuleMetric;
|
|
331
|
+
(function (AlertRuleMetric) {
|
|
332
|
+
AlertRuleMetric["COST_DAILY"] = "COST_DAILY";
|
|
333
|
+
AlertRuleMetric["COST_MONTHLY"] = "COST_MONTHLY";
|
|
334
|
+
AlertRuleMetric["RESOURCE_COUNT"] = "RESOURCE_COUNT";
|
|
335
|
+
AlertRuleMetric["BUDGET_UTILIZATION"] = "BUDGET_UTILIZATION";
|
|
336
|
+
})(AlertRuleMetric || (exports.AlertRuleMetric = AlertRuleMetric = {}));
|
|
337
|
+
var NotificationChannelType;
|
|
338
|
+
(function (NotificationChannelType) {
|
|
339
|
+
NotificationChannelType["EMAIL"] = "EMAIL";
|
|
340
|
+
NotificationChannelType["SLACK"] = "SLACK";
|
|
341
|
+
NotificationChannelType["WEBHOOK"] = "WEBHOOK";
|
|
342
|
+
})(NotificationChannelType || (exports.NotificationChannelType = NotificationChannelType = {}));
|
|
343
|
+
var InviteScopeType;
|
|
344
|
+
(function (InviteScopeType) {
|
|
345
|
+
InviteScopeType["ORGANIZATION"] = "ORGANIZATION";
|
|
346
|
+
InviteScopeType["WORKSPACE"] = "WORKSPACE";
|
|
347
|
+
})(InviteScopeType || (exports.InviteScopeType = InviteScopeType = {}));
|
|
348
|
+
var InviteStatus;
|
|
349
|
+
(function (InviteStatus) {
|
|
350
|
+
InviteStatus["PENDING"] = "PENDING";
|
|
351
|
+
InviteStatus["ACCEPTED"] = "ACCEPTED";
|
|
352
|
+
InviteStatus["REJECTED"] = "REJECTED";
|
|
353
|
+
InviteStatus["REVOKED"] = "REVOKED";
|
|
354
|
+
InviteStatus["EXPIRED"] = "EXPIRED";
|
|
355
|
+
})(InviteStatus || (exports.InviteStatus = InviteStatus = {}));
|