opal-security 3.2.3 → 4.0.2
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/README.md +46 -61
- package/bin/dev +5 -5
- package/bin/run +2 -4
- package/build/commands/aws/identity.js +16 -0
- package/build/commands/clear-auth-config.d.ts +6 -0
- package/build/commands/clear-auth-config.js +22 -0
- package/{lib → build}/commands/groups/get.js +14 -16
- package/{lib → build}/commands/iam-roles/start.js +28 -30
- package/build/commands/kube-roles/start.js +71 -0
- package/{lib → build}/commands/login.d.ts +1 -0
- package/build/commands/login.js +379 -0
- package/build/commands/logout.js +22 -0
- package/{lib → build}/commands/postgres-instances/start.js +25 -27
- package/{lib → build}/commands/request/create.js +34 -36
- package/{lib → build}/commands/request/get.js +22 -24
- package/{lib → build}/commands/request/list.js +17 -19
- package/{lib → build}/commands/resources/get.js +15 -18
- package/build/commands/set-auth-config.d.ts +11 -0
- package/build/commands/set-auth-config.js +59 -0
- package/build/commands/set-custom-header.js +35 -0
- package/{lib → build}/commands/set-token.js +15 -17
- package/{lib → build}/commands/set-url.js +26 -28
- package/{lib → build}/commands/ssh/copyFrom.js +22 -24
- package/{lib → build}/commands/ssh/copyTo.js +22 -24
- package/{lib → build}/commands/ssh/start.js +30 -33
- package/build/commands/whoami.js +27 -0
- package/{lib → build}/graphql/fragment-masking.d.ts +1 -1
- package/{lib → build}/graphql/fragment-masking.js +3 -8
- package/{lib → build}/graphql/gql.d.ts +1 -1
- package/{lib → build}/graphql/gql.js +2 -5
- package/{lib → build}/graphql/graphql.js +256 -261
- package/build/graphql/index.d.ts +2 -0
- package/build/graphql/index.js +2 -0
- package/{lib → build}/handler.d.ts +1 -1
- package/build/handler.js +36 -0
- package/build/index.js +1 -0
- package/{lib → build}/labels.d.ts +1 -1
- package/build/labels.js +37 -0
- package/{lib → build}/lib/apollo.d.ts +2 -2
- package/{lib → build}/lib/apollo.js +62 -69
- package/build/lib/auth-success-template.d.ts +3 -0
- package/build/lib/auth-success-template.js +149 -0
- package/{lib → build}/lib/aws.js +2 -7
- package/{lib → build}/lib/cmd.d.ts +4 -4
- package/{lib → build}/lib/cmd.js +16 -20
- package/build/lib/config.js +46 -0
- package/{lib → build}/lib/credentials/index.d.ts +3 -2
- package/build/lib/credentials/index.js +85 -0
- package/{lib → build}/lib/credentials/keychain.js +4 -10
- package/{lib → build}/lib/credentials/localEncryption.js +12 -17
- package/{lib → build}/lib/flags.js +7 -10
- package/build/lib/local-auth-server.d.ts +5 -0
- package/build/lib/local-auth-server.js +69 -0
- package/build/lib/request/api/index.d.ts +6 -0
- package/build/lib/request/api/index.js +8 -0
- package/{lib → build}/lib/request/api/mutations/create-request.d.ts +2 -2
- package/{lib → build}/lib/request/api/mutations/create-request.js +3 -6
- package/{lib → build}/lib/request/api/queries/apps.d.ts +1 -1
- package/{lib → build}/lib/request/api/queries/apps.js +3 -6
- package/{lib → build}/lib/request/api/queries/assets.d.ts +2 -2
- package/{lib → build}/lib/request/api/queries/assets.js +7 -11
- package/{lib → build}/lib/request/api/queries/request-defaults.d.ts +2 -2
- package/{lib → build}/lib/request/api/queries/request-defaults.js +3 -6
- package/{lib → build}/lib/request/api/queries/requests.d.ts +3 -3
- package/{lib → build}/lib/request/api/queries/requests.js +10 -16
- package/{lib → build}/lib/request/api/queries/roles.d.ts +1 -1
- package/{lib → build}/lib/request/api/queries/roles.js +14 -18
- package/{lib → build}/lib/request/displays.d.ts +2 -2
- package/{lib → build}/lib/request/displays.js +27 -37
- package/{lib → build}/lib/request/prompts/apps-prompt.d.ts +1 -1
- package/build/lib/request/prompts/apps-prompt.js +33 -0
- package/{lib → build}/lib/request/prompts/asset-prompt.d.ts +1 -1
- package/build/lib/request/prompts/asset-prompt.js +61 -0
- package/{lib → build}/lib/request/prompts/duration-prompt.d.ts +1 -1
- package/{lib → build}/lib/request/prompts/duration-prompt.js +6 -10
- package/build/lib/request/prompts/index.d.ts +7 -0
- package/build/lib/request/prompts/index.js +8 -0
- package/{lib → build}/lib/request/prompts/reason-prompt.d.ts +1 -1
- package/{lib → build}/lib/request/prompts/reason-prompt.js +3 -6
- package/{lib → build}/lib/request/prompts/role-prompt.d.ts +1 -1
- package/build/lib/request/prompts/role-prompt.js +33 -0
- package/{lib → build}/lib/request/prompts/validate-prompt.d.ts +1 -1
- package/{lib → build}/lib/request/prompts/validate-prompt.js +9 -13
- package/{lib → build}/lib/request/request-utils.d.ts +2 -2
- package/{lib → build}/lib/request/request-utils.js +50 -62
- package/{lib → build}/lib/request/types.d.ts +1 -1
- package/build/lib/request/types.js +12 -0
- package/{lib → build}/lib/resources.d.ts +1 -1
- package/{lib → build}/lib/resources.js +18 -23
- package/{lib → build}/lib/sessions.d.ts +1 -1
- package/{lib → build}/lib/sessions.js +57 -32
- package/{lib → build}/lib/ssh.d.ts +1 -1
- package/{lib → build}/lib/ssh.js +6 -11
- package/{lib → build}/lib/util.js +7 -14
- package/{lib → build}/types.js +98 -101
- package/oclif.manifest.json +77 -98
- package/package.json +24 -14
- package/lib/commands/aws/identity.js +0 -18
- package/lib/commands/clear-auth-provider.d.ts +0 -9
- package/lib/commands/clear-auth-provider.js +0 -28
- package/lib/commands/curl-example.d.ts +0 -8
- package/lib/commands/curl-example.js +0 -34
- package/lib/commands/kube-roles/start.js +0 -73
- package/lib/commands/login.js +0 -286
- package/lib/commands/logout.js +0 -23
- package/lib/commands/set-auth-provider.d.ts +0 -11
- package/lib/commands/set-auth-provider.js +0 -44
- package/lib/commands/set-custom-header.js +0 -37
- package/lib/commands/whoami.js +0 -34
- package/lib/graphql/index.d.ts +0 -2
- package/lib/graphql/index.js +0 -5
- package/lib/handler.js +0 -41
- package/lib/index.js +0 -5
- package/lib/labels.js +0 -40
- package/lib/lib/config.js +0 -54
- package/lib/lib/credentials/index.js +0 -67
- package/lib/lib/request/api/index.d.ts +0 -6
- package/lib/lib/request/api/index.js +0 -20
- package/lib/lib/request/prompts/apps-prompt.js +0 -35
- package/lib/lib/request/prompts/asset-prompt.js +0 -81
- package/lib/lib/request/prompts/index.d.ts +0 -8
- package/lib/lib/request/prompts/index.js +0 -20
- package/lib/lib/request/prompts/role-prompt.js +0 -44
- package/lib/lib/request/types.js +0 -15
- /package/{lib → build}/commands/aws/identity.d.ts +0 -0
- /package/{lib → build}/commands/groups/get.d.ts +0 -0
- /package/{lib → build}/commands/iam-roles/start.d.ts +0 -0
- /package/{lib → build}/commands/kube-roles/start.d.ts +0 -0
- /package/{lib → build}/commands/logout.d.ts +0 -0
- /package/{lib → build}/commands/postgres-instances/start.d.ts +0 -0
- /package/{lib → build}/commands/request/create.d.ts +0 -0
- /package/{lib → build}/commands/request/get.d.ts +0 -0
- /package/{lib → build}/commands/request/list.d.ts +0 -0
- /package/{lib → build}/commands/resources/get.d.ts +0 -0
- /package/{lib → build}/commands/set-custom-header.d.ts +0 -0
- /package/{lib → build}/commands/set-token.d.ts +0 -0
- /package/{lib → build}/commands/set-url.d.ts +0 -0
- /package/{lib → build}/commands/ssh/copyFrom.d.ts +0 -0
- /package/{lib → build}/commands/ssh/copyTo.d.ts +0 -0
- /package/{lib → build}/commands/ssh/start.d.ts +0 -0
- /package/{lib → build}/commands/whoami.d.ts +0 -0
- /package/{lib → build}/graphql/graphql.d.ts +0 -0
- /package/{lib → build}/index.d.ts +0 -0
- /package/{lib → build}/lib/aws.d.ts +0 -0
- /package/{lib → build}/lib/config.d.ts +0 -0
- /package/{lib → build}/lib/credentials/keychain.d.ts +0 -0
- /package/{lib → build}/lib/credentials/localEncryption.d.ts +0 -0
- /package/{lib → build}/lib/flags.d.ts +0 -0
- /package/{lib → build}/lib/util.d.ts +0 -0
- /package/{lib → build}/types.d.ts +0 -0
package/{lib → build}/lib/ssh.js
RENAMED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const resources_1 = require("./resources");
|
|
6
|
-
const selectComputeInstance = async (command, action) => {
|
|
7
|
-
return (0, resources_1.promptUserForResource)(command, "AWS_EC2_INSTANCE", `Select an EC2 instance to ${action}`);
|
|
1
|
+
import { runCommandExecWithCallback } from "./cmd.js";
|
|
2
|
+
import { promptUserForResource } from "./resources.js";
|
|
3
|
+
export const selectComputeInstance = async (command, action) => {
|
|
4
|
+
return promptUserForResource(command, "AWS_EC2_INSTANCE", `Select an EC2 instance to ${action}`);
|
|
8
5
|
};
|
|
9
|
-
|
|
10
|
-
const assertSessionManagerPluginExists = async () => {
|
|
6
|
+
export const assertSessionManagerPluginExists = async () => {
|
|
11
7
|
const errorMessage = "❗ AWS session manager plugin is required to use SSH functionality. " +
|
|
12
8
|
"Please install it then retry your command. Installation instructions can be found at " +
|
|
13
9
|
"https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html.";
|
|
@@ -15,7 +11,7 @@ const assertSessionManagerPluginExists = async () => {
|
|
|
15
11
|
if (process.platform === "win32")
|
|
16
12
|
checkPluginCommand = "where session-manager-plugin";
|
|
17
13
|
try {
|
|
18
|
-
const stdOut = await
|
|
14
|
+
const stdOut = await runCommandExecWithCallback(checkPluginCommand, (error, stdOut, stdErr) => {
|
|
19
15
|
// Error if there's no output, meaning the plugin is not installed
|
|
20
16
|
if (!stdOut) {
|
|
21
17
|
console.log(errorMessage);
|
|
@@ -32,4 +28,3 @@ const assertSessionManagerPluginExists = async () => {
|
|
|
32
28
|
}
|
|
33
29
|
return false;
|
|
34
30
|
};
|
|
35
|
-
exports.assertSessionManagerPluginExists = assertSessionManagerPluginExists;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.displayContent = exports.copyToClipboard = exports.sleep = void 0;
|
|
4
|
-
exports.restrictToDev = restrictToDev;
|
|
5
|
-
const node_child_process_1 = require("node:child_process");
|
|
1
|
+
import { exec, spawn } from "node:child_process";
|
|
6
2
|
/*
|
|
7
3
|
Use restrictToDev function in the run functions of commands still in development-
|
|
8
4
|
|
|
@@ -12,18 +8,17 @@ async run() {
|
|
|
12
8
|
...
|
|
13
9
|
}
|
|
14
10
|
*/
|
|
15
|
-
function restrictToDev() {
|
|
11
|
+
export function restrictToDev() {
|
|
16
12
|
if (process.env.NODE_ENV !== "development") {
|
|
17
13
|
console.error("Command still under development. Please look out for product announcements for official release.");
|
|
18
14
|
process.exit(1);
|
|
19
15
|
}
|
|
20
16
|
}
|
|
21
|
-
const sleep = (ms) => {
|
|
17
|
+
export const sleep = (ms) => {
|
|
22
18
|
return new Promise((resolve) => {
|
|
23
19
|
setTimeout(resolve, ms);
|
|
24
20
|
});
|
|
25
21
|
};
|
|
26
|
-
exports.sleep = sleep;
|
|
27
22
|
const getCopyCommand = () => {
|
|
28
23
|
switch (process.platform) {
|
|
29
24
|
case "darwin":
|
|
@@ -34,11 +29,10 @@ const getCopyCommand = () => {
|
|
|
34
29
|
return "xclip -selection clipboard";
|
|
35
30
|
}
|
|
36
31
|
};
|
|
37
|
-
const copyToClipboard = (content) => {
|
|
32
|
+
export const copyToClipboard = (content) => {
|
|
38
33
|
const copyCommand = getCopyCommand();
|
|
39
|
-
return
|
|
34
|
+
return exec(`echo "${content}" | ${copyCommand}`);
|
|
40
35
|
};
|
|
41
|
-
exports.copyToClipboard = copyToClipboard;
|
|
42
36
|
const getDisplayCommand = () => {
|
|
43
37
|
switch (process.platform) {
|
|
44
38
|
case "win32":
|
|
@@ -47,11 +41,10 @@ const getDisplayCommand = () => {
|
|
|
47
41
|
return "less";
|
|
48
42
|
}
|
|
49
43
|
};
|
|
50
|
-
const displayContent = (content) => {
|
|
44
|
+
export const displayContent = (content) => {
|
|
51
45
|
const displayCommand = getDisplayCommand();
|
|
52
|
-
return
|
|
46
|
+
return spawn(`cat <<< "${content}" | ${displayCommand}`, {
|
|
53
47
|
stdio: "inherit",
|
|
54
48
|
shell: true,
|
|
55
49
|
});
|
|
56
50
|
};
|
|
57
|
-
exports.displayContent = displayContent;
|
package/{lib → build}/types.js
RENAMED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Visibility = exports.ViolationStatus = exports.UserProductRole = exports.ThirdPartyProvider = exports.SyncType = exports.SyncTaskStatus = exports.SupportTicketLinkType = exports.StringFormatType = exports.ServiceType = exports.SearchType = exports.ReviewerUserStatus = exports.ReviewerAction = exports.ResourceType = exports.RequestType = exports.RequestStatus = exports.RequestReviewerType = exports.PropagationTaskType = exports.PropagationStatusCode = exports.OrganizationType = exports.NotificationType = exports.MonitorSubtype = exports.MonitorStatus = exports.MessageChannelType = exports.MessageChannelSettingType = exports.IntegrationType = exports.ImportSetting = exports.IdpConnectionType = exports.IdpAuthType = exports.HrIdpStatus = exports.GroupType = exports.GroupOnCallScheduleBindingType = exports.GroupMemberRole = exports.GroupFunction = exports.GeneralSettingType = exports.EventType = exports.EntityType = exports.ConnectionType = exports.AuthType = exports.AuthSessionStatus = exports.AuthFlowType = exports.ApiAuthType = exports.ApiAccessLevel = exports.AccessReviewUserWarningType = exports.AccessReviewSummaryStatus = exports.AccessReviewStatus = exports.AccessReviewReviewerAssignmentPolicy = exports.AccessReviewItemStatus = exports.AccessReviewItemOutcome = exports.AccessReviewAction = void 0;
|
|
4
|
-
var AccessReviewAction;
|
|
1
|
+
export var AccessReviewAction;
|
|
5
2
|
(function (AccessReviewAction) {
|
|
6
3
|
AccessReviewAction["Accept"] = "ACCEPT";
|
|
7
4
|
AccessReviewAction["Revoke"] = "REVOKE";
|
|
8
5
|
AccessReviewAction["Update"] = "UPDATE";
|
|
9
6
|
AccessReviewAction["NoAction"] = "NO_ACTION";
|
|
10
|
-
})(AccessReviewAction || (
|
|
11
|
-
var AccessReviewItemOutcome;
|
|
7
|
+
})(AccessReviewAction || (AccessReviewAction = {}));
|
|
8
|
+
export var AccessReviewItemOutcome;
|
|
12
9
|
(function (AccessReviewItemOutcome) {
|
|
13
10
|
AccessReviewItemOutcome["None"] = "NONE";
|
|
14
11
|
AccessReviewItemOutcome["Accepted"] = "ACCEPTED";
|
|
15
12
|
AccessReviewItemOutcome["Revoked"] = "REVOKED";
|
|
16
13
|
AccessReviewItemOutcome["Updated"] = "UPDATED";
|
|
17
|
-
})(AccessReviewItemOutcome || (
|
|
18
|
-
var AccessReviewItemStatus;
|
|
14
|
+
})(AccessReviewItemOutcome || (AccessReviewItemOutcome = {}));
|
|
15
|
+
export var AccessReviewItemStatus;
|
|
19
16
|
(function (AccessReviewItemStatus) {
|
|
20
17
|
AccessReviewItemStatus["NotStarted"] = "NOT_STARTED";
|
|
21
18
|
AccessReviewItemStatus["Completed"] = "COMPLETED";
|
|
@@ -23,19 +20,19 @@ var AccessReviewItemStatus;
|
|
|
23
20
|
AccessReviewItemStatus["NeedsAttention"] = "NEEDS_ATTENTION";
|
|
24
21
|
AccessReviewItemStatus["NeedsEndSystemRevocation"] = "NEEDS_END_SYSTEM_REVOCATION";
|
|
25
22
|
AccessReviewItemStatus["NeedsUpdateRequestApproval"] = "NEEDS_UPDATE_REQUEST_APPROVAL";
|
|
26
|
-
})(AccessReviewItemStatus || (
|
|
27
|
-
var AccessReviewReviewerAssignmentPolicy;
|
|
23
|
+
})(AccessReviewItemStatus || (AccessReviewItemStatus = {}));
|
|
24
|
+
export var AccessReviewReviewerAssignmentPolicy;
|
|
28
25
|
(function (AccessReviewReviewerAssignmentPolicy) {
|
|
29
26
|
AccessReviewReviewerAssignmentPolicy["Manually"] = "MANUALLY";
|
|
30
27
|
AccessReviewReviewerAssignmentPolicy["ByOwningTeamAdmin"] = "BY_OWNING_TEAM_ADMIN";
|
|
31
28
|
AccessReviewReviewerAssignmentPolicy["ByManager"] = "BY_MANAGER";
|
|
32
|
-
})(AccessReviewReviewerAssignmentPolicy || (
|
|
33
|
-
var AccessReviewStatus;
|
|
29
|
+
})(AccessReviewReviewerAssignmentPolicy || (AccessReviewReviewerAssignmentPolicy = {}));
|
|
30
|
+
export var AccessReviewStatus;
|
|
34
31
|
(function (AccessReviewStatus) {
|
|
35
32
|
AccessReviewStatus["Started"] = "STARTED";
|
|
36
33
|
AccessReviewStatus["Completed"] = "COMPLETED";
|
|
37
|
-
})(AccessReviewStatus || (
|
|
38
|
-
var AccessReviewSummaryStatus;
|
|
34
|
+
})(AccessReviewStatus || (AccessReviewStatus = {}));
|
|
35
|
+
export var AccessReviewSummaryStatus;
|
|
39
36
|
(function (AccessReviewSummaryStatus) {
|
|
40
37
|
AccessReviewSummaryStatus["NoReviewNeeded"] = "NO_REVIEW_NEEDED";
|
|
41
38
|
AccessReviewSummaryStatus["NotStarted"] = "NOT_STARTED";
|
|
@@ -44,39 +41,39 @@ var AccessReviewSummaryStatus;
|
|
|
44
41
|
AccessReviewSummaryStatus["NeedsAttention"] = "NEEDS_ATTENTION";
|
|
45
42
|
AccessReviewSummaryStatus["NeedsEndSystemRevocation"] = "NEEDS_END_SYSTEM_REVOCATION";
|
|
46
43
|
AccessReviewSummaryStatus["NeedsUpdateRequestApproval"] = "NEEDS_UPDATE_REQUEST_APPROVAL";
|
|
47
|
-
})(AccessReviewSummaryStatus || (
|
|
48
|
-
var AccessReviewUserWarningType;
|
|
44
|
+
})(AccessReviewSummaryStatus || (AccessReviewSummaryStatus = {}));
|
|
45
|
+
export var AccessReviewUserWarningType;
|
|
49
46
|
(function (AccessReviewUserWarningType) {
|
|
50
47
|
AccessReviewUserWarningType["MultipleReviewersRequired"] = "MULTIPLE_REVIEWERS_REQUIRED";
|
|
51
48
|
AccessReviewUserWarningType["UserDeleted"] = "USER_DELETED";
|
|
52
49
|
AccessReviewUserWarningType["UserTeamUpdated"] = "USER_TEAM_UPDATED";
|
|
53
|
-
})(AccessReviewUserWarningType || (
|
|
54
|
-
var ApiAccessLevel;
|
|
50
|
+
})(AccessReviewUserWarningType || (AccessReviewUserWarningType = {}));
|
|
51
|
+
export var ApiAccessLevel;
|
|
55
52
|
(function (ApiAccessLevel) {
|
|
56
53
|
ApiAccessLevel["ReadOnly"] = "READ_ONLY";
|
|
57
54
|
ApiAccessLevel["FullAccess"] = "FULL_ACCESS";
|
|
58
|
-
})(ApiAccessLevel || (
|
|
59
|
-
var ApiAuthType;
|
|
55
|
+
})(ApiAccessLevel || (ApiAccessLevel = {}));
|
|
56
|
+
export var ApiAuthType;
|
|
60
57
|
(function (ApiAuthType) {
|
|
61
58
|
ApiAuthType["Auth"] = "AUTH";
|
|
62
59
|
ApiAuthType["Unauth"] = "UNAUTH";
|
|
63
60
|
ApiAuthType["Admin"] = "ADMIN";
|
|
64
61
|
ApiAuthType["OnPrem"] = "ON_PREM";
|
|
65
62
|
ApiAuthType["Auditor"] = "AUDITOR";
|
|
66
|
-
})(ApiAuthType || (
|
|
67
|
-
var AuthFlowType;
|
|
63
|
+
})(ApiAuthType || (ApiAuthType = {}));
|
|
64
|
+
export var AuthFlowType;
|
|
68
65
|
(function (AuthFlowType) {
|
|
69
66
|
AuthFlowType["Code"] = "CODE";
|
|
70
67
|
AuthFlowType["Manual"] = "MANUAL";
|
|
71
68
|
AuthFlowType["Link"] = "LINK";
|
|
72
|
-
})(AuthFlowType || (
|
|
73
|
-
var AuthSessionStatus;
|
|
69
|
+
})(AuthFlowType || (AuthFlowType = {}));
|
|
70
|
+
export var AuthSessionStatus;
|
|
74
71
|
(function (AuthSessionStatus) {
|
|
75
72
|
AuthSessionStatus["SessionValid"] = "SESSION_VALID";
|
|
76
73
|
AuthSessionStatus["SessionNotFound"] = "SESSION_NOT_FOUND";
|
|
77
74
|
AuthSessionStatus["SessionExpired"] = "SESSION_EXPIRED";
|
|
78
|
-
})(AuthSessionStatus || (
|
|
79
|
-
var AuthType;
|
|
75
|
+
})(AuthSessionStatus || (AuthSessionStatus = {}));
|
|
76
|
+
export var AuthType;
|
|
80
77
|
(function (AuthType) {
|
|
81
78
|
AuthType["ActiveDirectory"] = "ACTIVE_DIRECTORY";
|
|
82
79
|
AuthType["Aws"] = "AWS";
|
|
@@ -92,8 +89,8 @@ var AuthType;
|
|
|
92
89
|
AuthType["MongoAtlas"] = "MONGO_ATLAS";
|
|
93
90
|
AuthType["OktaDirectory"] = "OKTA_DIRECTORY";
|
|
94
91
|
AuthType["Pagerduty"] = "PAGERDUTY";
|
|
95
|
-
})(AuthType || (
|
|
96
|
-
var ConnectionType;
|
|
92
|
+
})(AuthType || (AuthType = {}));
|
|
93
|
+
export var ConnectionType;
|
|
97
94
|
(function (ConnectionType) {
|
|
98
95
|
ConnectionType["ActiveDirectory"] = "ACTIVE_DIRECTORY";
|
|
99
96
|
/**
|
|
@@ -126,8 +123,8 @@ var ConnectionType;
|
|
|
126
123
|
ConnectionType["Tailscale"] = "TAILSCALE";
|
|
127
124
|
ConnectionType["Teleport"] = "TELEPORT";
|
|
128
125
|
ConnectionType["Workday"] = "WORKDAY";
|
|
129
|
-
})(ConnectionType || (
|
|
130
|
-
var EntityType;
|
|
126
|
+
})(ConnectionType || (ConnectionType = {}));
|
|
127
|
+
export var EntityType;
|
|
131
128
|
(function (EntityType) {
|
|
132
129
|
EntityType["Resource"] = "RESOURCE";
|
|
133
130
|
EntityType["ResourceProposal"] = "RESOURCE_PROPOSAL";
|
|
@@ -162,8 +159,8 @@ var EntityType;
|
|
|
162
159
|
EntityType["Monitor"] = "MONITOR";
|
|
163
160
|
EntityType["SupportTicket"] = "SUPPORT_TICKET";
|
|
164
161
|
EntityType["AccessReviewTemplate"] = "ACCESS_REVIEW_TEMPLATE";
|
|
165
|
-
})(EntityType || (
|
|
166
|
-
var EventType;
|
|
162
|
+
})(EntityType || (EntityType = {}));
|
|
163
|
+
export var EventType;
|
|
167
164
|
(function (EventType) {
|
|
168
165
|
EventType["UsersCreated"] = "USERS_CREATED";
|
|
169
166
|
EventType["UsersDeleted"] = "USERS_DELETED";
|
|
@@ -284,8 +281,8 @@ var EventType;
|
|
|
284
281
|
EventType["RemoteEventUserPasswordExpired"] = "REMOTE_EVENT_USER_PASSWORD_EXPIRED";
|
|
285
282
|
EventType["RemoteEventUserPasswordUpdated"] = "REMOTE_EVENT_USER_PASSWORD_UPDATED";
|
|
286
283
|
EventType["RemoteEventUserPasswordReset"] = "REMOTE_EVENT_USER_PASSWORD_RESET";
|
|
287
|
-
})(EventType || (
|
|
288
|
-
var GeneralSettingType;
|
|
284
|
+
})(EventType || (EventType = {}));
|
|
285
|
+
export var GeneralSettingType;
|
|
289
286
|
(function (GeneralSettingType) {
|
|
290
287
|
GeneralSettingType["SlackApprovals"] = "SLACK_APPROVALS";
|
|
291
288
|
GeneralSettingType["RequireManagerCc"] = "REQUIRE_MANAGER_CC";
|
|
@@ -295,26 +292,26 @@ var GeneralSettingType;
|
|
|
295
292
|
GeneralSettingType["NestedGroups"] = "NESTED_GROUPS";
|
|
296
293
|
GeneralSettingType["RequireSupportTicket"] = "REQUIRE_SUPPORT_TICKET";
|
|
297
294
|
GeneralSettingType["ToxicSetBlockRequest"] = "TOXIC_SET_BLOCK_REQUEST";
|
|
298
|
-
})(GeneralSettingType || (
|
|
299
|
-
var GroupFunction;
|
|
295
|
+
})(GeneralSettingType || (GeneralSettingType = {}));
|
|
296
|
+
export var GroupFunction;
|
|
300
297
|
(function (GroupFunction) {
|
|
301
298
|
GroupFunction["Regular"] = "REGULAR";
|
|
302
299
|
GroupFunction["Team"] = "TEAM";
|
|
303
300
|
GroupFunction["OnCall"] = "ON_CALL";
|
|
304
301
|
GroupFunction["Unknown"] = "UNKNOWN";
|
|
305
|
-
})(GroupFunction || (
|
|
306
|
-
var GroupMemberRole;
|
|
302
|
+
})(GroupFunction || (GroupFunction = {}));
|
|
303
|
+
export var GroupMemberRole;
|
|
307
304
|
(function (GroupMemberRole) {
|
|
308
305
|
GroupMemberRole["Member"] = "MEMBER";
|
|
309
306
|
GroupMemberRole["Admin"] = "ADMIN";
|
|
310
307
|
GroupMemberRole["SessionedMember"] = "SESSIONED_MEMBER";
|
|
311
|
-
})(GroupMemberRole || (
|
|
312
|
-
var GroupOnCallScheduleBindingType;
|
|
308
|
+
})(GroupMemberRole || (GroupMemberRole = {}));
|
|
309
|
+
export var GroupOnCallScheduleBindingType;
|
|
313
310
|
(function (GroupOnCallScheduleBindingType) {
|
|
314
311
|
GroupOnCallScheduleBindingType["Members"] = "MEMBERS";
|
|
315
312
|
GroupOnCallScheduleBindingType["Reviewers"] = "REVIEWERS";
|
|
316
|
-
})(GroupOnCallScheduleBindingType || (
|
|
317
|
-
var GroupType;
|
|
313
|
+
})(GroupOnCallScheduleBindingType || (GroupOnCallScheduleBindingType = {}));
|
|
314
|
+
export var GroupType;
|
|
318
315
|
(function (GroupType) {
|
|
319
316
|
GroupType["ActiveDirectoryGroup"] = "ACTIVE_DIRECTORY_GROUP";
|
|
320
317
|
GroupType["DuoGroup"] = "DUO_GROUP";
|
|
@@ -323,9 +320,9 @@ var GroupType;
|
|
|
323
320
|
GroupType["LdapGroup"] = "LDAP_GROUP";
|
|
324
321
|
GroupType["OktaGroup"] = "OKTA_GROUP";
|
|
325
322
|
GroupType["OpalGroup"] = "OPAL_GROUP";
|
|
326
|
-
})(GroupType || (
|
|
323
|
+
})(GroupType || (GroupType = {}));
|
|
327
324
|
/** User status pulled from an HR/IDP provider. */
|
|
328
|
-
var HrIdpStatus;
|
|
325
|
+
export var HrIdpStatus;
|
|
329
326
|
(function (HrIdpStatus) {
|
|
330
327
|
/** User is a regular, active user. */
|
|
331
328
|
HrIdpStatus["Active"] = "ACTIVE";
|
|
@@ -341,63 +338,63 @@ var HrIdpStatus;
|
|
|
341
338
|
HrIdpStatus["Deprovisioned"] = "DEPROVISIONED";
|
|
342
339
|
/** User does not exist in the HR/IDP system. */
|
|
343
340
|
HrIdpStatus["NotFound"] = "NOT_FOUND";
|
|
344
|
-
})(HrIdpStatus || (
|
|
345
|
-
var IdpAuthType;
|
|
341
|
+
})(HrIdpStatus || (HrIdpStatus = {}));
|
|
342
|
+
export var IdpAuthType;
|
|
346
343
|
(function (IdpAuthType) {
|
|
347
344
|
IdpAuthType["Google"] = "GOOGLE";
|
|
348
345
|
IdpAuthType["Okta"] = "OKTA";
|
|
349
|
-
})(IdpAuthType || (
|
|
350
|
-
var IdpConnectionType;
|
|
346
|
+
})(IdpAuthType || (IdpAuthType = {}));
|
|
347
|
+
export var IdpConnectionType;
|
|
351
348
|
(function (IdpConnectionType) {
|
|
352
349
|
IdpConnectionType["Google"] = "GOOGLE";
|
|
353
350
|
IdpConnectionType["Okta"] = "OKTA";
|
|
354
|
-
})(IdpConnectionType || (
|
|
355
|
-
var ImportSetting;
|
|
351
|
+
})(IdpConnectionType || (IdpConnectionType = {}));
|
|
352
|
+
export var ImportSetting;
|
|
356
353
|
(function (ImportSetting) {
|
|
357
354
|
ImportSetting["All"] = "ALL";
|
|
358
355
|
ImportSetting["Tagged"] = "TAGGED";
|
|
359
356
|
ImportSetting["Manual"] = "MANUAL";
|
|
360
357
|
ImportSetting["None"] = "NONE";
|
|
361
|
-
})(ImportSetting || (
|
|
362
|
-
var IntegrationType;
|
|
358
|
+
})(ImportSetting || (ImportSetting = {}));
|
|
359
|
+
export var IntegrationType;
|
|
363
360
|
(function (IntegrationType) {
|
|
364
361
|
IntegrationType["User"] = "USER";
|
|
365
362
|
IntegrationType["Org"] = "ORG";
|
|
366
|
-
})(IntegrationType || (
|
|
367
|
-
var MessageChannelSettingType;
|
|
363
|
+
})(IntegrationType || (IntegrationType = {}));
|
|
364
|
+
export var MessageChannelSettingType;
|
|
368
365
|
(function (MessageChannelSettingType) {
|
|
369
366
|
MessageChannelSettingType["AccessRequested"] = "ACCESS_REQUESTED";
|
|
370
367
|
MessageChannelSettingType["AccessGranted"] = "ACCESS_GRANTED";
|
|
371
368
|
MessageChannelSettingType["AccessRevoked"] = "ACCESS_REVOKED";
|
|
372
|
-
})(MessageChannelSettingType || (
|
|
373
|
-
var MessageChannelType;
|
|
369
|
+
})(MessageChannelSettingType || (MessageChannelSettingType = {}));
|
|
370
|
+
export var MessageChannelType;
|
|
374
371
|
(function (MessageChannelType) {
|
|
375
372
|
MessageChannelType["Audit"] = "AUDIT";
|
|
376
373
|
MessageChannelType["Reviewer"] = "REVIEWER";
|
|
377
374
|
MessageChannelType["Monitor"] = "MONITOR";
|
|
378
|
-
})(MessageChannelType || (
|
|
379
|
-
var MonitorStatus;
|
|
375
|
+
})(MessageChannelType || (MessageChannelType = {}));
|
|
376
|
+
export var MonitorStatus;
|
|
380
377
|
(function (MonitorStatus) {
|
|
381
378
|
MonitorStatus["Ok"] = "OK";
|
|
382
379
|
MonitorStatus["Triggered"] = "TRIGGERED";
|
|
383
380
|
MonitorStatus["Snoozed"] = "SNOOZED";
|
|
384
|
-
})(MonitorStatus || (
|
|
385
|
-
var MonitorSubtype;
|
|
381
|
+
})(MonitorStatus || (MonitorStatus = {}));
|
|
382
|
+
export var MonitorSubtype;
|
|
386
383
|
(function (MonitorSubtype) {
|
|
387
384
|
MonitorSubtype["Event"] = "EVENT";
|
|
388
385
|
MonitorSubtype["ToxicSet"] = "TOXIC_SET";
|
|
389
|
-
})(MonitorSubtype || (
|
|
390
|
-
var NotificationType;
|
|
386
|
+
})(MonitorSubtype || (MonitorSubtype = {}));
|
|
387
|
+
export var NotificationType;
|
|
391
388
|
(function (NotificationType) {
|
|
392
389
|
NotificationType["Slack"] = "SLACK";
|
|
393
390
|
NotificationType["Email"] = "EMAIL";
|
|
394
|
-
})(NotificationType || (
|
|
395
|
-
var OrganizationType;
|
|
391
|
+
})(NotificationType || (NotificationType = {}));
|
|
392
|
+
export var OrganizationType;
|
|
396
393
|
(function (OrganizationType) {
|
|
397
394
|
OrganizationType["Cloud"] = "CLOUD";
|
|
398
395
|
OrganizationType["OnPrem"] = "ON_PREM";
|
|
399
|
-
})(OrganizationType || (
|
|
400
|
-
var PropagationStatusCode;
|
|
396
|
+
})(OrganizationType || (OrganizationType = {}));
|
|
397
|
+
export var PropagationStatusCode;
|
|
401
398
|
(function (PropagationStatusCode) {
|
|
402
399
|
PropagationStatusCode["Success"] = "SUCCESS";
|
|
403
400
|
PropagationStatusCode["ErrRemoteInternalError"] = "ERR_REMOTE_INTERNAL_ERROR";
|
|
@@ -410,8 +407,8 @@ var PropagationStatusCode;
|
|
|
410
407
|
PropagationStatusCode["ErrUnknown"] = "ERR_UNKNOWN";
|
|
411
408
|
PropagationStatusCode["ErrOpalInternalError"] = "ERR_OPAL_INTERNAL_ERROR";
|
|
412
409
|
PropagationStatusCode["Pending"] = "PENDING";
|
|
413
|
-
})(PropagationStatusCode || (
|
|
414
|
-
var PropagationTaskType;
|
|
410
|
+
})(PropagationStatusCode || (PropagationStatusCode = {}));
|
|
411
|
+
export var PropagationTaskType;
|
|
415
412
|
(function (PropagationTaskType) {
|
|
416
413
|
PropagationTaskType["ResourcesDeleteUsers"] = "RESOURCES_DELETE_USERS";
|
|
417
414
|
PropagationTaskType["ResourcesCreateUsers"] = "RESOURCES_CREATE_USERS";
|
|
@@ -424,25 +421,25 @@ var PropagationTaskType;
|
|
|
424
421
|
PropagationTaskType["GroupsDeleteResources"] = "GROUPS_DELETE_RESOURCES";
|
|
425
422
|
PropagationTaskType["ConnectionsCreateUsers"] = "CONNECTIONS_CREATE_USERS";
|
|
426
423
|
PropagationTaskType["ConnectionsDeleteUsers"] = "CONNECTIONS_DELETE_USERS";
|
|
427
|
-
})(PropagationTaskType || (
|
|
428
|
-
var RequestReviewerType;
|
|
424
|
+
})(PropagationTaskType || (PropagationTaskType = {}));
|
|
425
|
+
export var RequestReviewerType;
|
|
429
426
|
(function (RequestReviewerType) {
|
|
430
427
|
RequestReviewerType["TeamAdmin"] = "TEAM_ADMIN";
|
|
431
428
|
RequestReviewerType["Manager"] = "MANAGER";
|
|
432
|
-
})(RequestReviewerType || (
|
|
433
|
-
var RequestStatus;
|
|
429
|
+
})(RequestReviewerType || (RequestReviewerType = {}));
|
|
430
|
+
export var RequestStatus;
|
|
434
431
|
(function (RequestStatus) {
|
|
435
432
|
RequestStatus["Pending"] = "PENDING";
|
|
436
433
|
RequestStatus["Approved"] = "APPROVED";
|
|
437
434
|
RequestStatus["Denied"] = "DENIED";
|
|
438
435
|
RequestStatus["Canceled"] = "CANCELED";
|
|
439
|
-
})(RequestStatus || (
|
|
440
|
-
var RequestType;
|
|
436
|
+
})(RequestStatus || (RequestStatus = {}));
|
|
437
|
+
export var RequestType;
|
|
441
438
|
(function (RequestType) {
|
|
442
439
|
RequestType["Incoming"] = "INCOMING";
|
|
443
440
|
RequestType["Outgoing"] = "OUTGOING";
|
|
444
|
-
})(RequestType || (
|
|
445
|
-
var ResourceType;
|
|
441
|
+
})(RequestType || (RequestType = {}));
|
|
442
|
+
export var ResourceType;
|
|
446
443
|
(function (ResourceType) {
|
|
447
444
|
ResourceType["AwsIamRole"] = "AWS_IAM_ROLE";
|
|
448
445
|
ResourceType["AwsEc2Instance"] = "AWS_EC2_INSTANCE";
|
|
@@ -468,13 +465,13 @@ var ResourceType;
|
|
|
468
465
|
ResourceType["SalesforcePermissionSet"] = "SALESFORCE_PERMISSION_SET";
|
|
469
466
|
ResourceType["SalesforceProfile"] = "SALESFORCE_PROFILE";
|
|
470
467
|
ResourceType["SalesforceRole"] = "SALESFORCE_ROLE";
|
|
471
|
-
})(ResourceType || (
|
|
472
|
-
var ReviewerAction;
|
|
468
|
+
})(ResourceType || (ResourceType = {}));
|
|
469
|
+
export var ReviewerAction;
|
|
473
470
|
(function (ReviewerAction) {
|
|
474
471
|
ReviewerAction["Approved"] = "APPROVED";
|
|
475
472
|
ReviewerAction["Denied"] = "DENIED";
|
|
476
|
-
})(ReviewerAction || (
|
|
477
|
-
var ReviewerUserStatus;
|
|
473
|
+
})(ReviewerAction || (ReviewerAction = {}));
|
|
474
|
+
export var ReviewerUserStatus;
|
|
478
475
|
(function (ReviewerUserStatus) {
|
|
479
476
|
ReviewerUserStatus["NotStarted"] = "NOT_STARTED";
|
|
480
477
|
ReviewerUserStatus["NeedsEndSystemRevocation"] = "NEEDS_END_SYSTEM_REVOCATION";
|
|
@@ -482,13 +479,13 @@ var ReviewerUserStatus;
|
|
|
482
479
|
ReviewerUserStatus["Accepted"] = "ACCEPTED";
|
|
483
480
|
ReviewerUserStatus["Revoked"] = "REVOKED";
|
|
484
481
|
ReviewerUserStatus["Updated"] = "UPDATED";
|
|
485
|
-
})(ReviewerUserStatus || (
|
|
486
|
-
var SearchType;
|
|
482
|
+
})(ReviewerUserStatus || (ReviewerUserStatus = {}));
|
|
483
|
+
export var SearchType;
|
|
487
484
|
(function (SearchType) {
|
|
488
485
|
SearchType["Local"] = "LOCAL";
|
|
489
486
|
SearchType["Global"] = "GLOBAL";
|
|
490
|
-
})(SearchType || (
|
|
491
|
-
var ServiceType;
|
|
487
|
+
})(SearchType || (SearchType = {}));
|
|
488
|
+
export var ServiceType;
|
|
492
489
|
(function (ServiceType) {
|
|
493
490
|
ServiceType["ActiveDirectory"] = "ACTIVE_DIRECTORY";
|
|
494
491
|
ServiceType["AwsIam"] = "AWS_IAM";
|
|
@@ -511,23 +508,23 @@ var ServiceType;
|
|
|
511
508
|
ServiceType["Salesforce"] = "SALESFORCE";
|
|
512
509
|
ServiceType["Ssh"] = "SSH";
|
|
513
510
|
ServiceType["Unknown"] = "UNKNOWN";
|
|
514
|
-
})(ServiceType || (
|
|
515
|
-
var StringFormatType;
|
|
511
|
+
})(ServiceType || (ServiceType = {}));
|
|
512
|
+
export var StringFormatType;
|
|
516
513
|
(function (StringFormatType) {
|
|
517
514
|
StringFormatType["Email"] = "EMAIL";
|
|
518
|
-
})(StringFormatType || (
|
|
519
|
-
var SupportTicketLinkType;
|
|
515
|
+
})(StringFormatType || (StringFormatType = {}));
|
|
516
|
+
export var SupportTicketLinkType;
|
|
520
517
|
(function (SupportTicketLinkType) {
|
|
521
518
|
SupportTicketLinkType["Grant"] = "GRANT";
|
|
522
519
|
SupportTicketLinkType["Revoke"] = "REVOKE";
|
|
523
|
-
})(SupportTicketLinkType || (
|
|
524
|
-
var SyncTaskStatus;
|
|
520
|
+
})(SupportTicketLinkType || (SupportTicketLinkType = {}));
|
|
521
|
+
export var SyncTaskStatus;
|
|
525
522
|
(function (SyncTaskStatus) {
|
|
526
523
|
SyncTaskStatus["Started"] = "STARTED";
|
|
527
524
|
SyncTaskStatus["Completed"] = "COMPLETED";
|
|
528
525
|
SyncTaskStatus["CompletedWithErrors"] = "COMPLETED_WITH_ERRORS";
|
|
529
|
-
})(SyncTaskStatus || (
|
|
530
|
-
var SyncType;
|
|
526
|
+
})(SyncTaskStatus || (SyncTaskStatus = {}));
|
|
527
|
+
export var SyncType;
|
|
531
528
|
(function (SyncType) {
|
|
532
529
|
SyncType["PullConnectionsAll"] = "PULL_CONNECTIONS_ALL";
|
|
533
530
|
SyncType["PullConnectionsAllResources"] = "PULL_CONNECTIONS_ALL_RESOURCES";
|
|
@@ -540,8 +537,8 @@ var SyncType;
|
|
|
540
537
|
SyncType["PullHrIdpDataPartial"] = "PULL_HR_IDP_DATA_PARTIAL";
|
|
541
538
|
SyncType["CheckMonitors"] = "CHECK_MONITORS";
|
|
542
539
|
SyncType["PullUarRemoteTickets"] = "PULL_UAR_REMOTE_TICKETS";
|
|
543
|
-
})(SyncType || (
|
|
544
|
-
var ThirdPartyProvider;
|
|
540
|
+
})(SyncType || (SyncType = {}));
|
|
541
|
+
export var ThirdPartyProvider;
|
|
545
542
|
(function (ThirdPartyProvider) {
|
|
546
543
|
ThirdPartyProvider["Auth0"] = "AUTH0";
|
|
547
544
|
ThirdPartyProvider["Duo"] = "DUO";
|
|
@@ -556,19 +553,19 @@ var ThirdPartyProvider;
|
|
|
556
553
|
ThirdPartyProvider["Opsgenie"] = "OPSGENIE";
|
|
557
554
|
ThirdPartyProvider["Linear"] = "LINEAR";
|
|
558
555
|
ThirdPartyProvider["Salesforce"] = "SALESFORCE";
|
|
559
|
-
})(ThirdPartyProvider || (
|
|
560
|
-
var UserProductRole;
|
|
556
|
+
})(ThirdPartyProvider || (ThirdPartyProvider = {}));
|
|
557
|
+
export var UserProductRole;
|
|
561
558
|
(function (UserProductRole) {
|
|
562
559
|
UserProductRole["Member"] = "MEMBER";
|
|
563
560
|
UserProductRole["Admin"] = "ADMIN";
|
|
564
|
-
})(UserProductRole || (
|
|
565
|
-
var ViolationStatus;
|
|
561
|
+
})(UserProductRole || (UserProductRole = {}));
|
|
562
|
+
export var ViolationStatus;
|
|
566
563
|
(function (ViolationStatus) {
|
|
567
564
|
ViolationStatus["Ok"] = "OK";
|
|
568
565
|
ViolationStatus["Triggered"] = "TRIGGERED";
|
|
569
|
-
})(ViolationStatus || (
|
|
570
|
-
var Visibility;
|
|
566
|
+
})(ViolationStatus || (ViolationStatus = {}));
|
|
567
|
+
export var Visibility;
|
|
571
568
|
(function (Visibility) {
|
|
572
569
|
Visibility["Team"] = "TEAM";
|
|
573
570
|
Visibility["Global"] = "GLOBAL";
|
|
574
|
-
})(Visibility || (
|
|
571
|
+
})(Visibility || (Visibility = {}));
|