opal-security 3.2.2 → 3.2.3
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 +22 -22
- package/lib/commands/login.js +11 -11
- package/lib/commands/request/get.js +2 -1
- package/lib/graphql/graphql.d.ts +855 -158
- package/lib/graphql/graphql.js +107 -10
- package/lib/handler.d.ts +6 -6
- package/lib/handler.js +1 -1
- package/lib/labels.js +3 -0
- package/lib/lib/apollo.d.ts +3 -3
- package/lib/lib/apollo.js +24 -47
- package/lib/lib/request/api/mutations/create-request.d.ts +2 -2
- package/lib/lib/request/api/queries/apps.d.ts +2 -2
- package/lib/lib/request/api/queries/assets.d.ts +3 -3
- package/lib/lib/request/api/queries/assets.js +5 -5
- package/lib/lib/request/api/queries/request-defaults.d.ts +2 -2
- package/lib/lib/request/api/queries/request-defaults.js +2 -1
- package/lib/lib/request/api/queries/requests.d.ts +4 -4
- package/lib/lib/request/api/queries/roles.d.ts +3 -3
- package/lib/lib/request/api/queries/roles.js +9 -9
- package/lib/lib/request/displays.d.ts +3 -3
- package/lib/lib/request/displays.js +15 -15
- package/lib/lib/request/prompts/apps-prompt.d.ts +2 -2
- package/lib/lib/request/prompts/asset-prompt.d.ts +3 -3
- package/lib/lib/request/prompts/duration-prompt.js +3 -0
- package/lib/lib/request/prompts/role-prompt.d.ts +2 -2
- package/lib/lib/request/request-utils.d.ts +7 -8
- package/lib/lib/request/request-utils.js +17 -16
- package/lib/lib/resources.d.ts +1 -1
- package/lib/lib/sessions.d.ts +1 -1
- package/lib/lib/sessions.js +3 -2
- package/oclif.manifest.json +1 -1
- package/package.json +4 -3
package/lib/graphql/graphql.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.GetAssociatedItemsDocument = exports.GroupAccessLevelsDocument = exports.ResourceAccessLevelsDocument = exports.GetBundleDocument = exports.GetRequestsDocument = exports.GetRequestDocument = exports.RequestDefaultsDocument = exports.GetCatalogItemDocument = exports.PaginatedEntityDropdownDocument = exports.GetRequestableAppsQueryDocument = exports.CreateRequestDocument = exports.CheckAuthSessionQueryDocument = exports.GetGroupDocument = exports.RequestFieldsFragmentDoc = exports.GroupFieldsFragmentDoc = exports.ResourceFieldsFragmentDoc = exports.RequestDecisionLevel = exports.WebhookPubsubPublishConnectionAuthType = exports.WebhookPubsubPublishConnectionApiKeyLocation = exports.Visibility = exports.VerifyFactorStatus = exports.UsersSortByField = exports.UserProductRole = exports.UserErrorType = exports.UsageAttributionType = exports.UiSource = exports.TimePeriod = exports.TimeBucket = exports.ThirdPartyProvider = exports.TaskTrigger = void 0;
|
|
3
|
+
exports.GroupBindingsSortByField = exports.GroupBindingSuggestionsSortByField = exports.GeneralSettingType = exports.FiltersMatchMode = exports.FilterRule = exports.FactorType = exports.ExternalEventsSortByFields = exports.ExternalEventType = exports.EventType = exports.EventSeverity = exports.ErrorNotificationSettingType = exports.EntityType = exports.EntityPermissionsSortByField = exports.ConnectionValidationStatus = exports.ConnectionValidationSeverity = exports.ConnectionType = exports.BundlesSortByField = exports.BundleItemsSortByField = exports.AuthType = exports.AuthSessionStatus = exports.AuthFlowType = exports.AssociatedItemsSortByField = exports.AssignmentsSortByField = exports.AppsSortByField = exports.AppType = exports.AppItemsSortByField = exports.AppCategory = exports.ApiAuthType = exports.ApiAccessLevel = exports.AldwinRole = exports.AccessType = exports.AccessRuleStatus = exports.AccessReviewUserWarningType = exports.AccessReviewType = exports.AccessReviewTab = exports.AccessReviewSummaryStatus = exports.AccessReviewStatus = exports.AccessReviewReviewerAssignmentPolicy = exports.AccessReviewPreviewSortByField = exports.AccessReviewItemsSortByField = exports.AccessReviewItemStatus = exports.AccessReviewItemOutcome = exports.AccessReviewGroupResourceVisibilityPolicy = exports.AccessReviewGroupItemKind = exports.AccessReviewEndUserView = exports.AccessReviewAssignedStatus = exports.AccessReviewAction = exports.AccessOption = exports.AccessChangeType = exports.AwsIdentityCenterImportSetting = void 0;
|
|
4
|
+
exports.SortDirection = exports.ServiceType = exports.SearchType = exports.RolePermissionTargetType = exports.RolePermission = exports.RoleAssignmentsSortByField = exports.RoleAssignmentSource = exports.RiskLevel = exports.ReviewerUserStatus = exports.ReviewerAction = exports.ReviewStageOperator = exports.ResourceUserSource = exports.ResourceUserSortByField = exports.ResourceType = exports.RequestsSortByField = exports.RequestType = exports.RequestTemplateCustomFieldType = exports.RequestStatus = exports.RequestReviewerDelegationsSortByField = exports.RequestMessageLevel = exports.RequestMessageCode = exports.RequestApprovalType = exports.RecommendationsSubscoreType = exports.RecommendationsMetricType = exports.RecommendationsFeedbackType = exports.RecommendationsEntityType = exports.PubsubPublishMessageType = exports.PubsubPublishMessageStatusCode = exports.PubsubPublishConnectionType = exports.ProvisioningAction = exports.ProvisionStrategy = exports.ProvisionSource = exports.PropagationTaskType = exports.PropagationStatusCode = exports.OwnersSortByField = exports.OrganizationType = exports.OidcProviderType = exports.NotificationType = exports.MessageChannelType = exports.MfaProvider = exports.IntegrationType = exports.ImportSetting = exports.IdpConnectionUserAttributeUseAs = exports.IdpConnectionType = exports.HrIdpStatus = exports.HealthStatus = exports.GroupUserSource = exports.GroupUserSortByField = exports.GroupType = exports.GroupResourceSource = void 0;
|
|
5
|
+
exports.GetAssociatedItemsDocument = exports.GroupAccessLevelsDocument = exports.ResourceAccessLevelsDocument = exports.GetBundleDocument = exports.GetRequestsDocument = exports.GetRequestDocument = exports.RequestDefaultsDocument = exports.GetCatalogItemDocument = exports.PaginatedEntityDropdownDocument = exports.GetRequestableAppsQueryDocument = exports.CreateRequestDocument = exports.CheckAuthSessionQueryDocument = exports.GetGroupDocument = exports.RequestFieldsFragmentDoc = exports.GroupFieldsFragmentDoc = exports.ResourceFieldsFragmentDoc = exports.RequestDecisionLevel = exports.WebhookPubsubPublishConnectionAuthType = exports.WebhookPubsubPublishConnectionApiKeyLocation = exports.Visibility = exports.VerifyFactorStatus = exports.UsersSortByField = exports.UserProductRole = exports.UserErrorType = exports.UsageAttributionType = exports.UiSource = exports.TimePeriod = exports.TimeBucket = exports.ThirdPartyProvider = exports.TaskTrigger = exports.TagsSortByField = exports.TagFilterMatchMode = exports.SyncType = exports.SyncTaskStatus = exports.SubEventsSortByField = exports.StringFormatType = void 0;
|
|
6
6
|
var AwsIdentityCenterImportSetting;
|
|
7
7
|
(function (AwsIdentityCenterImportSetting) {
|
|
8
8
|
AwsIdentityCenterImportSetting["All"] = "ALL";
|
|
@@ -12,6 +12,7 @@ var AwsIdentityCenterImportSetting;
|
|
|
12
12
|
var AccessChangeType;
|
|
13
13
|
(function (AccessChangeType) {
|
|
14
14
|
AccessChangeType["ConvertedToJit"] = "CONVERTED_TO_JIT";
|
|
15
|
+
AccessChangeType["Extended"] = "EXTENDED";
|
|
15
16
|
AccessChangeType["Other"] = "OTHER";
|
|
16
17
|
AccessChangeType["Revoked"] = "REVOKED";
|
|
17
18
|
})(AccessChangeType || (exports.AccessChangeType = AccessChangeType = {}));
|
|
@@ -74,6 +75,11 @@ var AccessReviewItemsSortByField;
|
|
|
74
75
|
AccessReviewItemsSortByField["Name"] = "NAME";
|
|
75
76
|
AccessReviewItemsSortByField["Status"] = "STATUS";
|
|
76
77
|
})(AccessReviewItemsSortByField || (exports.AccessReviewItemsSortByField = AccessReviewItemsSortByField = {}));
|
|
78
|
+
var AccessReviewPreviewSortByField;
|
|
79
|
+
(function (AccessReviewPreviewSortByField) {
|
|
80
|
+
AccessReviewPreviewSortByField["EntityName"] = "ENTITY_NAME";
|
|
81
|
+
AccessReviewPreviewSortByField["ReviewCount"] = "REVIEW_COUNT";
|
|
82
|
+
})(AccessReviewPreviewSortByField || (exports.AccessReviewPreviewSortByField = AccessReviewPreviewSortByField = {}));
|
|
77
83
|
var AccessReviewReviewerAssignmentPolicy;
|
|
78
84
|
(function (AccessReviewReviewerAssignmentPolicy) {
|
|
79
85
|
AccessReviewReviewerAssignmentPolicy["ByApprovers"] = "BY_APPROVERS";
|
|
@@ -165,8 +171,10 @@ var AppCategory;
|
|
|
165
171
|
AppCategory["Custom"] = "CUSTOM";
|
|
166
172
|
AppCategory["Databases"] = "DATABASES";
|
|
167
173
|
AppCategory["DeveloperTools"] = "DEVELOPER_TOOLS";
|
|
174
|
+
AppCategory["HrSystems"] = "HR_SYSTEMS";
|
|
168
175
|
AppCategory["Identity"] = "IDENTITY";
|
|
169
176
|
AppCategory["OktaApp"] = "OKTA_APP";
|
|
177
|
+
AppCategory["SaasApps"] = "SAAS_APPS";
|
|
170
178
|
})(AppCategory || (exports.AppCategory = AppCategory = {}));
|
|
171
179
|
var AppItemsSortByField;
|
|
172
180
|
(function (AppItemsSortByField) {
|
|
@@ -190,6 +198,7 @@ var AssignmentsSortByField;
|
|
|
190
198
|
(function (AssignmentsSortByField) {
|
|
191
199
|
AssignmentsSortByField["EntityName"] = "ENTITY_NAME";
|
|
192
200
|
AssignmentsSortByField["PrincipalName"] = "PRINCIPAL_NAME";
|
|
201
|
+
AssignmentsSortByField["ReviewerName"] = "REVIEWER_NAME";
|
|
193
202
|
AssignmentsSortByField["Type"] = "TYPE";
|
|
194
203
|
})(AssignmentsSortByField || (exports.AssignmentsSortByField = AssignmentsSortByField = {}));
|
|
195
204
|
var AssociatedItemsSortByField;
|
|
@@ -217,15 +226,18 @@ var AuthType;
|
|
|
217
226
|
AuthType["Aws"] = "AWS";
|
|
218
227
|
AuthType["AwsSso"] = "AWS_SSO";
|
|
219
228
|
AuthType["AzureAd"] = "AZURE_AD";
|
|
229
|
+
AuthType["Coupa"] = "COUPA";
|
|
220
230
|
AuthType["Custom"] = "CUSTOM";
|
|
221
231
|
AuthType["CustomConnector"] = "CUSTOM_CONNECTOR";
|
|
222
232
|
AuthType["Databricks"] = "DATABRICKS";
|
|
233
|
+
AuthType["DatastaxAstra"] = "DATASTAX_ASTRA";
|
|
223
234
|
AuthType["Duo"] = "DUO";
|
|
224
235
|
AuthType["Gcp"] = "GCP";
|
|
225
236
|
AuthType["GitHub"] = "GIT_HUB";
|
|
226
237
|
AuthType["GitLab"] = "GIT_LAB";
|
|
227
238
|
AuthType["GoogleGroups"] = "GOOGLE_GROUPS";
|
|
228
239
|
AuthType["GoogleWorkspace"] = "GOOGLE_WORKSPACE";
|
|
240
|
+
AuthType["Ilevel"] = "ILEVEL";
|
|
229
241
|
AuthType["Ldap"] = "LDAP";
|
|
230
242
|
AuthType["Mongo"] = "MONGO";
|
|
231
243
|
AuthType["MongoAtlas"] = "MONGO_ATLAS";
|
|
@@ -261,15 +273,18 @@ var ConnectionType;
|
|
|
261
273
|
ConnectionType["Aws"] = "AWS";
|
|
262
274
|
ConnectionType["AwsSso"] = "AWS_SSO";
|
|
263
275
|
ConnectionType["AzureAd"] = "AZURE_AD";
|
|
276
|
+
ConnectionType["Coupa"] = "COUPA";
|
|
264
277
|
ConnectionType["Custom"] = "CUSTOM";
|
|
265
278
|
ConnectionType["CustomConnector"] = "CUSTOM_CONNECTOR";
|
|
266
279
|
ConnectionType["Databricks"] = "DATABRICKS";
|
|
280
|
+
ConnectionType["DatastaxAstra"] = "DATASTAX_ASTRA";
|
|
267
281
|
ConnectionType["Duo"] = "DUO";
|
|
268
282
|
ConnectionType["Gcp"] = "GCP";
|
|
269
283
|
ConnectionType["GitHub"] = "GIT_HUB";
|
|
270
284
|
ConnectionType["GitLab"] = "GIT_LAB";
|
|
271
285
|
ConnectionType["GoogleGroups"] = "GOOGLE_GROUPS";
|
|
272
286
|
ConnectionType["GoogleWorkspace"] = "GOOGLE_WORKSPACE";
|
|
287
|
+
ConnectionType["Ilevel"] = "ILEVEL";
|
|
273
288
|
ConnectionType["Ldap"] = "LDAP";
|
|
274
289
|
ConnectionType["Mariadb"] = "MARIADB";
|
|
275
290
|
ConnectionType["Mongo"] = "MONGO";
|
|
@@ -297,6 +312,11 @@ var ConnectionValidationStatus;
|
|
|
297
312
|
ConnectionValidationStatus["Failed"] = "FAILED";
|
|
298
313
|
ConnectionValidationStatus["Success"] = "SUCCESS";
|
|
299
314
|
})(ConnectionValidationStatus || (exports.ConnectionValidationStatus = ConnectionValidationStatus = {}));
|
|
315
|
+
var EntityPermissionsSortByField;
|
|
316
|
+
(function (EntityPermissionsSortByField) {
|
|
317
|
+
EntityPermissionsSortByField["AccessLevelName"] = "ACCESS_LEVEL_NAME";
|
|
318
|
+
EntityPermissionsSortByField["Name"] = "NAME";
|
|
319
|
+
})(EntityPermissionsSortByField || (exports.EntityPermissionsSortByField = EntityPermissionsSortByField = {}));
|
|
300
320
|
var EntityType;
|
|
301
321
|
(function (EntityType) {
|
|
302
322
|
EntityType["AccessLevel"] = "ACCESS_LEVEL";
|
|
@@ -316,6 +336,7 @@ var EntityType;
|
|
|
316
336
|
EntityType["Bundle"] = "BUNDLE";
|
|
317
337
|
EntityType["ConfigurationTemplate"] = "CONFIGURATION_TEMPLATE";
|
|
318
338
|
EntityType["Connection"] = "CONNECTION";
|
|
339
|
+
EntityType["ConnectionUser"] = "CONNECTION_USER";
|
|
319
340
|
EntityType["Event"] = "EVENT";
|
|
320
341
|
EntityType["EventFilter"] = "EVENT_FILTER";
|
|
321
342
|
EntityType["EventStreamConnection"] = "EVENT_STREAM_CONNECTION";
|
|
@@ -356,13 +377,17 @@ var EventSeverity;
|
|
|
356
377
|
})(EventSeverity || (exports.EventSeverity = EventSeverity = {}));
|
|
357
378
|
var EventType;
|
|
358
379
|
(function (EventType) {
|
|
380
|
+
EventType["AccessExtended"] = "ACCESS_EXTENDED";
|
|
359
381
|
EventType["AccessReviewsCreated"] = "ACCESS_REVIEWS_CREATED";
|
|
382
|
+
EventType["AccessReviewsReportUpdated"] = "ACCESS_REVIEWS_REPORT_UPDATED";
|
|
360
383
|
EventType["AccessReviewsUpdated"] = "ACCESS_REVIEWS_UPDATED";
|
|
361
384
|
EventType["AccessReviewAutoAssignReviewerByApprovers"] = "ACCESS_REVIEW_AUTO_ASSIGN_REVIEWER_BY_APPROVERS";
|
|
362
385
|
EventType["AccessReviewAutoAssignReviewerByManager"] = "ACCESS_REVIEW_AUTO_ASSIGN_REVIEWER_BY_MANAGER";
|
|
363
386
|
EventType["AccessReviewAutoAssignReviewerByOwningTeamAdmin"] = "ACCESS_REVIEW_AUTO_ASSIGN_REVIEWER_BY_OWNING_TEAM_ADMIN";
|
|
364
387
|
EventType["AccessReviewConnectionReviewed"] = "ACCESS_REVIEW_CONNECTION_REVIEWED";
|
|
365
388
|
EventType["AccessReviewConnectionReviewersUpdated"] = "ACCESS_REVIEW_CONNECTION_REVIEWERS_UPDATED";
|
|
389
|
+
EventType["AccessReviewDelegationCreated"] = "ACCESS_REVIEW_DELEGATION_CREATED";
|
|
390
|
+
EventType["AccessReviewDelegationDeleted"] = "ACCESS_REVIEW_DELEGATION_DELETED";
|
|
366
391
|
EventType["AccessReviewGroupAccessToGroupAccepted"] = "ACCESS_REVIEW_GROUP_ACCESS_TO_GROUP_ACCEPTED";
|
|
367
392
|
EventType["AccessReviewGroupAccessToGroupRevoked"] = "ACCESS_REVIEW_GROUP_ACCESS_TO_GROUP_REVOKED";
|
|
368
393
|
EventType["AccessReviewGroupAccessToGroupRevokedDecision"] = "ACCESS_REVIEW_GROUP_ACCESS_TO_GROUP_REVOKED_DECISION";
|
|
@@ -424,6 +449,8 @@ var EventType;
|
|
|
424
449
|
EventType["ConfigurationTemplateCreated"] = "CONFIGURATION_TEMPLATE_CREATED";
|
|
425
450
|
EventType["ConfigurationTemplateCustomRequestNotificationUpdated"] = "CONFIGURATION_TEMPLATE_CUSTOM_REQUEST_NOTIFICATION_UPDATED";
|
|
426
451
|
EventType["ConfigurationTemplateDeleted"] = "CONFIGURATION_TEMPLATE_DELETED";
|
|
452
|
+
EventType["ConfigurationTemplateMaxDirectUsersAllowedUpdated"] = "CONFIGURATION_TEMPLATE_MAX_DIRECT_USERS_ALLOWED_UPDATED";
|
|
453
|
+
EventType["ConfigurationTemplateMaxUsersExceededMessageUpdated"] = "CONFIGURATION_TEMPLATE_MAX_USERS_EXCEEDED_MESSAGE_UPDATED";
|
|
427
454
|
EventType["ConfigurationTemplateNameUpdated"] = "CONFIGURATION_TEMPLATE_NAME_UPDATED";
|
|
428
455
|
EventType["ConfigurationTemplateOncallSchedulesUpdated"] = "CONFIGURATION_TEMPLATE_ONCALL_SCHEDULES_UPDATED";
|
|
429
456
|
EventType["ConfigurationTemplateRequestConfigDeleted"] = "CONFIGURATION_TEMPLATE_REQUEST_CONFIG_DELETED";
|
|
@@ -454,6 +481,8 @@ var EventType;
|
|
|
454
481
|
EventType["ConnectionVisibilityGroupsRemoved"] = "CONNECTION_VISIBILITY_GROUPS_REMOVED";
|
|
455
482
|
EventType["ConnectionVisibilityUpdated"] = "CONNECTION_VISIBILITY_UPDATED";
|
|
456
483
|
EventType["ConnectionWebhookEnabledUpdated"] = "CONNECTION_WEBHOOK_ENABLED_UPDATED";
|
|
484
|
+
EventType["EntityTagAdded"] = "ENTITY_TAG_ADDED";
|
|
485
|
+
EventType["EntityTagRemoved"] = "ENTITY_TAG_REMOVED";
|
|
457
486
|
EventType["EventMonitorEventsDetected"] = "EVENT_MONITOR_EVENTS_DETECTED";
|
|
458
487
|
EventType["EventStreamConnectionsCreated"] = "EVENT_STREAM_CONNECTIONS_CREATED";
|
|
459
488
|
EventType["EventStreamConnectionsDeleted"] = "EVENT_STREAM_CONNECTIONS_DELETED";
|
|
@@ -476,6 +505,8 @@ var EventType;
|
|
|
476
505
|
EventType["GroupBindingUpdated"] = "GROUP_BINDING_UPDATED";
|
|
477
506
|
EventType["GroupConfigurationTemplateUpdated"] = "GROUP_CONFIGURATION_TEMPLATE_UPDATED";
|
|
478
507
|
EventType["GroupCustomRequestNotificationUpdated"] = "GROUP_CUSTOM_REQUEST_NOTIFICATION_UPDATED";
|
|
508
|
+
EventType["GroupExtensionsDurationInMinutesUpdated"] = "GROUP_EXTENSIONS_DURATION_IN_MINUTES_UPDATED";
|
|
509
|
+
EventType["GroupExtensionsEnabledUpdated"] = "GROUP_EXTENSIONS_ENABLED_UPDATED";
|
|
479
510
|
EventType["GroupFoldersCreated"] = "GROUP_FOLDERS_CREATED";
|
|
480
511
|
EventType["GroupFoldersDeleted"] = "GROUP_FOLDERS_DELETED";
|
|
481
512
|
EventType["GroupFunctionUpdated"] = "GROUP_FUNCTION_UPDATED";
|
|
@@ -483,7 +514,9 @@ var EventType;
|
|
|
483
514
|
EventType["GroupIsRequestableUpdated"] = "GROUP_IS_REQUESTABLE_UPDATED";
|
|
484
515
|
EventType["GroupLeadersCreated"] = "GROUP_LEADERS_CREATED";
|
|
485
516
|
EventType["GroupLeadersRemoved"] = "GROUP_LEADERS_REMOVED";
|
|
517
|
+
EventType["GroupMaxDirectUsersAllowedUpdated"] = "GROUP_MAX_DIRECT_USERS_ALLOWED_UPDATED";
|
|
486
518
|
EventType["GroupMaxDurationUpdated"] = "GROUP_MAX_DURATION_UPDATED";
|
|
519
|
+
EventType["GroupMaxUsersExceededMessageUpdated"] = "GROUP_MAX_USERS_EXCEEDED_MESSAGE_UPDATED";
|
|
487
520
|
EventType["GroupNameUpdated"] = "GROUP_NAME_UPDATED";
|
|
488
521
|
EventType["GroupRecommendedDurationUpdated"] = "GROUP_RECOMMENDED_DURATION_UPDATED";
|
|
489
522
|
EventType["GroupRemovedFromBinding"] = "GROUP_REMOVED_FROM_BINDING";
|
|
@@ -548,6 +581,7 @@ var EventType;
|
|
|
548
581
|
EventType["PropagatedRemoveUserFromResource"] = "PROPAGATED_REMOVE_USER_FROM_RESOURCE";
|
|
549
582
|
EventType["PropagationComputeRemoteUserPushTasks"] = "PROPAGATION_COMPUTE_REMOTE_USER_PUSH_TASKS";
|
|
550
583
|
EventType["PropagationFailureAddResourceToGroup"] = "PROPAGATION_FAILURE_ADD_RESOURCE_TO_GROUP";
|
|
584
|
+
EventType["PropagationFailureAddUserToConnection"] = "PROPAGATION_FAILURE_ADD_USER_TO_CONNECTION";
|
|
551
585
|
EventType["PropagationFailureAddUserToGroup"] = "PROPAGATION_FAILURE_ADD_USER_TO_GROUP";
|
|
552
586
|
EventType["PropagationFailureAddUserToResource"] = "PROPAGATION_FAILURE_ADD_USER_TO_RESOURCE";
|
|
553
587
|
EventType["PropagationFailureRemoveResourceFromGroup"] = "PROPAGATION_FAILURE_REMOVE_RESOURCE_FROM_GROUP";
|
|
@@ -559,6 +593,7 @@ var EventType;
|
|
|
559
593
|
EventType["PropagationManualAddUserToResource"] = "PROPAGATION_MANUAL_ADD_USER_TO_RESOURCE";
|
|
560
594
|
EventType["PropagationManualRemoveUserFromResource"] = "PROPAGATION_MANUAL_REMOVE_USER_FROM_RESOURCE";
|
|
561
595
|
EventType["PropagationSuccessAddResourceToGroup"] = "PROPAGATION_SUCCESS_ADD_RESOURCE_TO_GROUP";
|
|
596
|
+
EventType["PropagationSuccessAddUserToConnection"] = "PROPAGATION_SUCCESS_ADD_USER_TO_CONNECTION";
|
|
562
597
|
EventType["PropagationSuccessAddUserToGroup"] = "PROPAGATION_SUCCESS_ADD_USER_TO_GROUP";
|
|
563
598
|
EventType["PropagationSuccessAddUserToResource"] = "PROPAGATION_SUCCESS_ADD_USER_TO_RESOURCE";
|
|
564
599
|
EventType["PropagationSuccessRemoveResourceFromGroup"] = "PROPAGATION_SUCCESS_REMOVE_RESOURCE_FROM_GROUP";
|
|
@@ -605,6 +640,7 @@ var EventType;
|
|
|
605
640
|
EventType["RequestResourceRequested"] = "REQUEST_RESOURCE_REQUESTED";
|
|
606
641
|
EventType["RequestReviewersAddedToRequests"] = "REQUEST_REVIEWERS_ADDED_TO_REQUESTS";
|
|
607
642
|
EventType["RequestReviewersApproved"] = "REQUEST_REVIEWERS_APPROVED";
|
|
643
|
+
EventType["RequestReviewersApprovedOnBehalfOf"] = "REQUEST_REVIEWERS_APPROVED_ON_BEHALF_OF";
|
|
608
644
|
EventType["RequestReviewersDenied"] = "REQUEST_REVIEWERS_DENIED";
|
|
609
645
|
EventType["RequestSkipManagerAddedToRequests"] = "REQUEST_SKIP_MANAGER_ADDED_TO_REQUESTS";
|
|
610
646
|
EventType["RequestSupportTicketAdded"] = "REQUEST_SUPPORT_TICKET_ADDED";
|
|
@@ -627,10 +663,14 @@ var EventType;
|
|
|
627
663
|
EventType["ResourceConfigurationTemplateUpdated"] = "RESOURCE_CONFIGURATION_TEMPLATE_UPDATED";
|
|
628
664
|
EventType["ResourceConnectRequireMfaUpdated"] = "RESOURCE_CONNECT_REQUIRE_MFA_UPDATED";
|
|
629
665
|
EventType["ResourceCustomRequestNotificationUpdated"] = "RESOURCE_CUSTOM_REQUEST_NOTIFICATION_UPDATED";
|
|
666
|
+
EventType["ResourceExtensionsDurationInMinutesUpdated"] = "RESOURCE_EXTENSIONS_DURATION_IN_MINUTES_UPDATED";
|
|
667
|
+
EventType["ResourceExtensionsEnabledUpdated"] = "RESOURCE_EXTENSIONS_ENABLED_UPDATED";
|
|
630
668
|
EventType["ResourceFoldersCreated"] = "RESOURCE_FOLDERS_CREATED";
|
|
631
669
|
EventType["ResourceFoldersDeleted"] = "RESOURCE_FOLDERS_DELETED";
|
|
632
670
|
EventType["ResourceIsRequestableUpdated"] = "RESOURCE_IS_REQUESTABLE_UPDATED";
|
|
671
|
+
EventType["ResourceMaxDirectUsersAllowedUpdated"] = "RESOURCE_MAX_DIRECT_USERS_ALLOWED_UPDATED";
|
|
633
672
|
EventType["ResourceMaxDurationUpdated"] = "RESOURCE_MAX_DURATION_UPDATED";
|
|
673
|
+
EventType["ResourceMaxUsersExceededMessageUpdated"] = "RESOURCE_MAX_USERS_EXCEEDED_MESSAGE_UPDATED";
|
|
634
674
|
EventType["ResourceNameUpdated"] = "RESOURCE_NAME_UPDATED";
|
|
635
675
|
EventType["ResourceRecommendedDurationUpdated"] = "RESOURCE_RECOMMENDED_DURATION_UPDATED";
|
|
636
676
|
EventType["ResourceRequestRequireMfaUpdated"] = "RESOURCE_REQUEST_REQUIRE_MFA_UPDATED";
|
|
@@ -684,6 +724,26 @@ var EventType;
|
|
|
684
724
|
EventType["UserTeamAttrUpdated"] = "USER_TEAM_ATTR_UPDATED";
|
|
685
725
|
EventType["UserTeamUpdated"] = "USER_TEAM_UPDATED";
|
|
686
726
|
})(EventType || (exports.EventType = EventType = {}));
|
|
727
|
+
var ExternalEventType;
|
|
728
|
+
(function (ExternalEventType) {
|
|
729
|
+
ExternalEventType["GroupsCreated"] = "GROUPS_CREATED";
|
|
730
|
+
ExternalEventType["GroupsDeleted"] = "GROUPS_DELETED";
|
|
731
|
+
ExternalEventType["GroupAddedToResource"] = "GROUP_ADDED_TO_RESOURCE";
|
|
732
|
+
ExternalEventType["GroupRemovedFromResource"] = "GROUP_REMOVED_FROM_RESOURCE";
|
|
733
|
+
ExternalEventType["GroupUsed"] = "GROUP_USED";
|
|
734
|
+
ExternalEventType["LoginSuccess"] = "LOGIN_SUCCESS";
|
|
735
|
+
ExternalEventType["ResourcesCreated"] = "RESOURCES_CREATED";
|
|
736
|
+
ExternalEventType["ResourcesDeleted"] = "RESOURCES_DELETED";
|
|
737
|
+
ExternalEventType["ResourceRead"] = "RESOURCE_READ";
|
|
738
|
+
ExternalEventType["UserAddedToGroup"] = "USER_ADDED_TO_GROUP";
|
|
739
|
+
ExternalEventType["UserAddedToResource"] = "USER_ADDED_TO_RESOURCE";
|
|
740
|
+
ExternalEventType["UserRemovedFromGroup"] = "USER_REMOVED_FROM_GROUP";
|
|
741
|
+
ExternalEventType["UserRemovedFromResource"] = "USER_REMOVED_FROM_RESOURCE";
|
|
742
|
+
})(ExternalEventType || (exports.ExternalEventType = ExternalEventType = {}));
|
|
743
|
+
var ExternalEventsSortByFields;
|
|
744
|
+
(function (ExternalEventsSortByFields) {
|
|
745
|
+
ExternalEventsSortByFields["EventTime"] = "EVENT_TIME";
|
|
746
|
+
})(ExternalEventsSortByFields || (exports.ExternalEventsSortByFields = ExternalEventsSortByFields = {}));
|
|
687
747
|
var FactorType;
|
|
688
748
|
(function (FactorType) {
|
|
689
749
|
FactorType["OktaPush"] = "OKTA_PUSH";
|
|
@@ -704,8 +764,14 @@ var GeneralSettingType;
|
|
|
704
764
|
GeneralSettingType["AccessExpiringNotifications"] = "ACCESS_EXPIRING_NOTIFICATIONS";
|
|
705
765
|
GeneralSettingType["AccessReviewReminders"] = "ACCESS_REVIEW_REMINDERS";
|
|
706
766
|
GeneralSettingType["AccessRuleFailsafe"] = "ACCESS_RULE_FAILSAFE";
|
|
767
|
+
GeneralSettingType["AiAccessRequestGrading"] = "AI_ACCESS_REQUEST_GRADING";
|
|
768
|
+
GeneralSettingType["AiAllFeatures"] = "AI_ALL_FEATURES";
|
|
769
|
+
GeneralSettingType["AiCustomRoleDescriptionGenerator"] = "AI_CUSTOM_ROLE_DESCRIPTION_GENERATOR";
|
|
770
|
+
GeneralSettingType["AiCustomRoleSummary"] = "AI_CUSTOM_ROLE_SUMMARY";
|
|
771
|
+
GeneralSettingType["AiRiskCenterAskOpal"] = "AI_RISK_CENTER_ASK_OPAL";
|
|
707
772
|
GeneralSettingType["AutoMergeUsersByEmail"] = "AUTO_MERGE_USERS_BY_EMAIL";
|
|
708
773
|
GeneralSettingType["DisableNonAdminLogins"] = "DISABLE_NON_ADMIN_LOGINS";
|
|
774
|
+
GeneralSettingType["DisableRequestDelegation"] = "DISABLE_REQUEST_DELEGATION";
|
|
709
775
|
GeneralSettingType["GlobalRequesterRole"] = "GLOBAL_REQUESTER_ROLE";
|
|
710
776
|
GeneralSettingType["NestedGroups"] = "NESTED_GROUPS";
|
|
711
777
|
GeneralSettingType["RequireManagerCc"] = "REQUIRE_MANAGER_CC";
|
|
@@ -715,6 +781,7 @@ var GeneralSettingType;
|
|
|
715
781
|
GeneralSettingType["ToxicSetBlockRequest"] = "TOXIC_SET_BLOCK_REQUEST";
|
|
716
782
|
GeneralSettingType["UserDeprovisionDeleteDeprovisioned"] = "USER_DEPROVISION_DELETE_DEPROVISIONED";
|
|
717
783
|
GeneralSettingType["UserImpersonation"] = "USER_IMPERSONATION";
|
|
784
|
+
GeneralSettingType["UserRevokeEndSystemAccessDeprovisioned"] = "USER_REVOKE_END_SYSTEM_ACCESS_DEPROVISIONED";
|
|
718
785
|
GeneralSettingType["UseOidcMfaForGatingOpalActions"] = "USE_OIDC_MFA_FOR_GATING_OPAL_ACTIONS";
|
|
719
786
|
GeneralSettingType["UseOktaMfaForGatingOpalActions"] = "USE_OKTA_MFA_FOR_GATING_OPAL_ACTIONS";
|
|
720
787
|
})(GeneralSettingType || (exports.GeneralSettingType = GeneralSettingType = {}));
|
|
@@ -808,14 +875,9 @@ var HrIdpStatus;
|
|
|
808
875
|
*/
|
|
809
876
|
HrIdpStatus["Suspended"] = "SUSPENDED";
|
|
810
877
|
})(HrIdpStatus || (exports.HrIdpStatus = HrIdpStatus = {}));
|
|
811
|
-
var IdentityCategory;
|
|
812
|
-
(function (IdentityCategory) {
|
|
813
|
-
IdentityCategory["All"] = "ALL";
|
|
814
|
-
IdentityCategory["Nhi"] = "NHI";
|
|
815
|
-
IdentityCategory["User"] = "USER";
|
|
816
|
-
})(IdentityCategory || (exports.IdentityCategory = IdentityCategory = {}));
|
|
817
878
|
var IdpConnectionType;
|
|
818
879
|
(function (IdpConnectionType) {
|
|
880
|
+
IdpConnectionType["ActiveDirectory"] = "ACTIVE_DIRECTORY";
|
|
819
881
|
IdpConnectionType["AzureAd"] = "AZURE_AD";
|
|
820
882
|
IdpConnectionType["Google"] = "GOOGLE";
|
|
821
883
|
IdpConnectionType["Okta"] = "OKTA";
|
|
@@ -870,6 +932,7 @@ var OidcProviderType;
|
|
|
870
932
|
(function (OidcProviderType) {
|
|
871
933
|
OidcProviderType["AwsSession"] = "AWS_SESSION";
|
|
872
934
|
OidcProviderType["Mfa"] = "MFA";
|
|
935
|
+
OidcProviderType["Signin"] = "SIGNIN";
|
|
873
936
|
})(OidcProviderType || (exports.OidcProviderType = OidcProviderType = {}));
|
|
874
937
|
var OrganizationType;
|
|
875
938
|
(function (OrganizationType) {
|
|
@@ -908,6 +971,7 @@ var PropagationStatusCode;
|
|
|
908
971
|
})(PropagationStatusCode || (exports.PropagationStatusCode = PropagationStatusCode = {}));
|
|
909
972
|
var PropagationTaskType;
|
|
910
973
|
(function (PropagationTaskType) {
|
|
974
|
+
PropagationTaskType["ConnectionsCreateEntities"] = "CONNECTIONS_CREATE_ENTITIES";
|
|
911
975
|
PropagationTaskType["ConnectionsDeleteUsers"] = "CONNECTIONS_DELETE_USERS";
|
|
912
976
|
PropagationTaskType["GroupsCreateGroups"] = "GROUPS_CREATE_GROUPS";
|
|
913
977
|
PropagationTaskType["GroupsCreateResources"] = "GROUPS_CREATE_RESOURCES";
|
|
@@ -931,6 +995,16 @@ var ProvisionSource;
|
|
|
931
995
|
ProvisionSource["Opal"] = "OPAL";
|
|
932
996
|
ProvisionSource["Unknown"] = "UNKNOWN";
|
|
933
997
|
})(ProvisionSource || (exports.ProvisionSource = ProvisionSource = {}));
|
|
998
|
+
var ProvisionStrategy;
|
|
999
|
+
(function (ProvisionStrategy) {
|
|
1000
|
+
ProvisionStrategy["None"] = "NONE";
|
|
1001
|
+
ProvisionStrategy["PushEntityToConnection"] = "PUSH_ENTITY_TO_CONNECTION";
|
|
1002
|
+
})(ProvisionStrategy || (exports.ProvisionStrategy = ProvisionStrategy = {}));
|
|
1003
|
+
var ProvisioningAction;
|
|
1004
|
+
(function (ProvisioningAction) {
|
|
1005
|
+
ProvisioningAction["Create"] = "CREATE";
|
|
1006
|
+
ProvisioningAction["Delete"] = "DELETE";
|
|
1007
|
+
})(ProvisioningAction || (exports.ProvisioningAction = ProvisioningAction = {}));
|
|
934
1008
|
var PubsubPublishConnectionType;
|
|
935
1009
|
(function (PubsubPublishConnectionType) {
|
|
936
1010
|
PubsubPublishConnectionType["Webhook"] = "WEBHOOK";
|
|
@@ -1025,6 +1099,8 @@ var RequestApprovalType;
|
|
|
1025
1099
|
})(RequestApprovalType || (exports.RequestApprovalType = RequestApprovalType = {}));
|
|
1026
1100
|
var RequestMessageCode;
|
|
1027
1101
|
(function (RequestMessageCode) {
|
|
1102
|
+
RequestMessageCode["EntityNotRequestable"] = "ENTITY_NOT_REQUESTABLE";
|
|
1103
|
+
RequestMessageCode["ItemAtCapacity"] = "ITEM_AT_CAPACITY";
|
|
1028
1104
|
RequestMessageCode["LinkedGroupNotRequestable"] = "LINKED_GROUP_NOT_REQUESTABLE";
|
|
1029
1105
|
RequestMessageCode["NestedGroupAccessNotAllowed"] = "NESTED_GROUP_ACCESS_NOT_ALLOWED";
|
|
1030
1106
|
RequestMessageCode["RequestResetsAccessDuration"] = "REQUEST_RESETS_ACCESS_DURATION";
|
|
@@ -1036,6 +1112,12 @@ var RequestMessageLevel;
|
|
|
1036
1112
|
RequestMessageLevel["Info"] = "INFO";
|
|
1037
1113
|
RequestMessageLevel["Warning"] = "WARNING";
|
|
1038
1114
|
})(RequestMessageLevel || (exports.RequestMessageLevel = RequestMessageLevel = {}));
|
|
1115
|
+
var RequestReviewerDelegationsSortByField;
|
|
1116
|
+
(function (RequestReviewerDelegationsSortByField) {
|
|
1117
|
+
RequestReviewerDelegationsSortByField["CreatedAt"] = "CREATED_AT";
|
|
1118
|
+
RequestReviewerDelegationsSortByField["EndTime"] = "END_TIME";
|
|
1119
|
+
RequestReviewerDelegationsSortByField["StartTime"] = "START_TIME";
|
|
1120
|
+
})(RequestReviewerDelegationsSortByField || (exports.RequestReviewerDelegationsSortByField = RequestReviewerDelegationsSortByField = {}));
|
|
1039
1121
|
var RequestStatus;
|
|
1040
1122
|
(function (RequestStatus) {
|
|
1041
1123
|
RequestStatus["Approved"] = "APPROVED";
|
|
@@ -1069,6 +1151,7 @@ var ResourceType;
|
|
|
1069
1151
|
ResourceType["AwsEc2Instance"] = "AWS_EC2_INSTANCE";
|
|
1070
1152
|
ResourceType["AwsEksCluster"] = "AWS_EKS_CLUSTER";
|
|
1071
1153
|
ResourceType["AwsIamRole"] = "AWS_IAM_ROLE";
|
|
1154
|
+
ResourceType["AwsOrganizationalUnit"] = "AWS_ORGANIZATIONAL_UNIT";
|
|
1072
1155
|
ResourceType["AwsRdsMysqlCluster"] = "AWS_RDS_MYSQL_CLUSTER";
|
|
1073
1156
|
ResourceType["AwsRdsMysqlInstance"] = "AWS_RDS_MYSQL_INSTANCE";
|
|
1074
1157
|
ResourceType["AwsRdsPostgresCluster"] = "AWS_RDS_POSTGRES_CLUSTER";
|
|
@@ -1087,9 +1170,11 @@ var ResourceType;
|
|
|
1087
1170
|
ResourceType["AzureSubscription"] = "AZURE_SUBSCRIPTION";
|
|
1088
1171
|
ResourceType["AzureUserAssignedManagedIdentity"] = "AZURE_USER_ASSIGNED_MANAGED_Identity";
|
|
1089
1172
|
ResourceType["AzureVirtualMachine"] = "AZURE_VIRTUAL_MACHINE";
|
|
1173
|
+
ResourceType["CoupaRole"] = "COUPA_ROLE";
|
|
1090
1174
|
ResourceType["Custom"] = "CUSTOM";
|
|
1091
1175
|
ResourceType["CustomConnector"] = "CUSTOM_CONNECTOR";
|
|
1092
1176
|
ResourceType["DatabricksAccountServicePrincipal"] = "DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL";
|
|
1177
|
+
ResourceType["DatastaxAstraRole"] = "DATASTAX_ASTRA_ROLE";
|
|
1093
1178
|
ResourceType["GcpBigQueryDataset"] = "GCP_BIG_QUERY_DATASET";
|
|
1094
1179
|
ResourceType["GcpBigQueryTable"] = "GCP_BIG_QUERY_TABLE";
|
|
1095
1180
|
ResourceType["GcpBucket"] = "GCP_BUCKET";
|
|
@@ -1105,6 +1190,7 @@ var ResourceType;
|
|
|
1105
1190
|
ResourceType["GitHubRepo"] = "GIT_HUB_REPO";
|
|
1106
1191
|
ResourceType["GitLabProject"] = "GIT_LAB_PROJECT";
|
|
1107
1192
|
ResourceType["GoogleWorkspaceRole"] = "GOOGLE_WORKSPACE_ROLE";
|
|
1193
|
+
ResourceType["IlevelAdvancedRole"] = "ILEVEL_ADVANCED_ROLE";
|
|
1108
1194
|
ResourceType["MariadbInstance"] = "MARIADB_INSTANCE";
|
|
1109
1195
|
ResourceType["MongoAtlasInstance"] = "MONGO_ATLAS_INSTANCE";
|
|
1110
1196
|
ResourceType["MongoInstance"] = "MONGO_INSTANCE";
|
|
@@ -1196,7 +1282,7 @@ var RoleAssignmentsSortByField;
|
|
|
1196
1282
|
})(RoleAssignmentsSortByField || (exports.RoleAssignmentsSortByField = RoleAssignmentsSortByField = {}));
|
|
1197
1283
|
var RolePermission;
|
|
1198
1284
|
(function (RolePermission) {
|
|
1199
|
-
RolePermission["
|
|
1285
|
+
RolePermission["AssignUarReviewers"] = "ASSIGN_UAR_REVIEWERS";
|
|
1200
1286
|
RolePermission["Create"] = "CREATE";
|
|
1201
1287
|
RolePermission["Delete"] = "DELETE";
|
|
1202
1288
|
RolePermission["EditAssignments"] = "EDIT_ASSIGNMENTS";
|
|
@@ -1209,6 +1295,9 @@ var RolePermission;
|
|
|
1209
1295
|
RolePermission["Import"] = "IMPORT";
|
|
1210
1296
|
RolePermission["Read"] = "READ";
|
|
1211
1297
|
RolePermission["ReadAssignments"] = "READ_ASSIGNMENTS";
|
|
1298
|
+
RolePermission["ReadSettings"] = "READ_SETTINGS";
|
|
1299
|
+
RolePermission["RequestOnBehalf"] = "REQUEST_ON_BEHALF";
|
|
1300
|
+
RolePermission["ResetMfa"] = "RESET_MFA";
|
|
1212
1301
|
RolePermission["SendReminders"] = "SEND_REMINDERS";
|
|
1213
1302
|
RolePermission["Stop"] = "STOP";
|
|
1214
1303
|
RolePermission["Sync"] = "SYNC";
|
|
@@ -1239,9 +1328,11 @@ var ServiceType;
|
|
|
1239
1328
|
ServiceType["AwsIam"] = "AWS_IAM";
|
|
1240
1329
|
ServiceType["AwsSso"] = "AWS_SSO";
|
|
1241
1330
|
ServiceType["AzureAd"] = "AZURE_AD";
|
|
1331
|
+
ServiceType["Coupa"] = "COUPA";
|
|
1242
1332
|
ServiceType["Custom"] = "CUSTOM";
|
|
1243
1333
|
ServiceType["CustomConnector"] = "CUSTOM_CONNECTOR";
|
|
1244
1334
|
ServiceType["Databricks"] = "DATABRICKS";
|
|
1335
|
+
ServiceType["DatastaxAstra"] = "DATASTAX_ASTRA";
|
|
1245
1336
|
ServiceType["Duo"] = "DUO";
|
|
1246
1337
|
ServiceType["GcpBigQuery"] = "GCP_BIG_QUERY";
|
|
1247
1338
|
ServiceType["GcpIam"] = "GCP_IAM";
|
|
@@ -1330,6 +1421,7 @@ var TagsSortByField;
|
|
|
1330
1421
|
var TaskTrigger;
|
|
1331
1422
|
(function (TaskTrigger) {
|
|
1332
1423
|
TaskTrigger["AccessExpired"] = "ACCESS_EXPIRED";
|
|
1424
|
+
TaskTrigger["AccessExtended"] = "ACCESS_EXTENDED";
|
|
1333
1425
|
TaskTrigger["AccessReview"] = "ACCESS_REVIEW";
|
|
1334
1426
|
TaskTrigger["AdminAction"] = "ADMIN_ACTION";
|
|
1335
1427
|
TaskTrigger["BreakGlassUsed"] = "BREAK_GLASS_USED";
|
|
@@ -1365,6 +1457,8 @@ var ThirdPartyProvider;
|
|
|
1365
1457
|
(function (ThirdPartyProvider) {
|
|
1366
1458
|
ThirdPartyProvider["Auth0"] = "AUTH0";
|
|
1367
1459
|
ThirdPartyProvider["GitHub"] = "GIT_HUB";
|
|
1460
|
+
ThirdPartyProvider["GitHubConnection"] = "GIT_HUB_CONNECTION";
|
|
1461
|
+
ThirdPartyProvider["GitHubRegistration"] = "GIT_HUB_REGISTRATION";
|
|
1368
1462
|
ThirdPartyProvider["GitLab"] = "GIT_LAB";
|
|
1369
1463
|
ThirdPartyProvider["GitLabConnection"] = "GIT_LAB_CONNECTION";
|
|
1370
1464
|
ThirdPartyProvider["GoogleChat"] = "GOOGLE_CHAT";
|
|
@@ -1393,6 +1487,7 @@ var TimePeriod;
|
|
|
1393
1487
|
})(TimePeriod || (exports.TimePeriod = TimePeriod = {}));
|
|
1394
1488
|
var UiSource;
|
|
1395
1489
|
(function (UiSource) {
|
|
1490
|
+
UiSource["Catalog"] = "CATALOG";
|
|
1396
1491
|
UiSource["PublicApi"] = "PUBLIC_API";
|
|
1397
1492
|
UiSource["ThreatCenter"] = "THREAT_CENTER";
|
|
1398
1493
|
UiSource["Unknown"] = "UNKNOWN";
|
|
@@ -1416,6 +1511,8 @@ var UsersSortByField;
|
|
|
1416
1511
|
UsersSortByField["CreatedAt"] = "CREATED_AT";
|
|
1417
1512
|
UsersSortByField["Email"] = "EMAIL";
|
|
1418
1513
|
UsersSortByField["FirstName"] = "FIRST_NAME";
|
|
1514
|
+
UsersSortByField["FullName"] = "FULL_NAME";
|
|
1515
|
+
UsersSortByField["HrIdpStatus"] = "HR_IDP_STATUS";
|
|
1419
1516
|
UsersSortByField["LastName"] = "LAST_NAME";
|
|
1420
1517
|
UsersSortByField["Manager"] = "MANAGER";
|
|
1421
1518
|
UsersSortByField["Team"] = "TEAM";
|
package/lib/handler.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ApolloClient, ErrorLike, OperationVariables } from "@apollo/client";
|
|
2
2
|
import type { Command } from "@oclif/core";
|
|
3
3
|
interface QueryHandlerProps<TVar = Record<string, any>> {
|
|
4
4
|
command: Command;
|
|
5
5
|
query: string;
|
|
6
6
|
variables?: TVar;
|
|
7
7
|
}
|
|
8
|
-
export declare const runMutation: ({ command, query, variables, }: QueryHandlerProps) => Promise<{
|
|
9
|
-
resp:
|
|
10
|
-
error:
|
|
8
|
+
export declare const runMutation: <TResponse = any, TVar extends OperationVariables = Record<string, any>>({ command, query, variables, }: QueryHandlerProps<TVar>) => Promise<{
|
|
9
|
+
resp: ApolloClient.MutateResult<TResponse> | undefined;
|
|
10
|
+
error: ErrorLike | null;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const runQueryDeprecated: <TResponse = any, TVar extends OperationVariables = Record<string, any>>({ command, query, variables, }: QueryHandlerProps<TVar>) => Promise<{
|
|
13
|
-
resp:
|
|
14
|
-
error:
|
|
13
|
+
resp: ApolloClient.QueryResult<TResponse> | null | undefined;
|
|
14
|
+
error: ErrorLike | null;
|
|
15
15
|
}>;
|
|
16
16
|
export {};
|
package/lib/handler.js
CHANGED
|
@@ -5,7 +5,7 @@ const graphql_tag_1 = require("graphql-tag");
|
|
|
5
5
|
const apollo_1 = require("./lib/apollo");
|
|
6
6
|
const runMutation = async ({ command, query, variables, }) => {
|
|
7
7
|
await (0, apollo_1.initClient)(command);
|
|
8
|
-
let mutationResp =
|
|
8
|
+
let mutationResp = undefined;
|
|
9
9
|
let mutationError = null;
|
|
10
10
|
try {
|
|
11
11
|
mutationResp = await (apollo_1.client === null || apollo_1.client === void 0 ? void 0 : apollo_1.client.mutate({
|
package/lib/labels.js
CHANGED
|
@@ -30,6 +30,9 @@ exports.connectionTypeLabelByType = {
|
|
|
30
30
|
[graphql_1.ConnectionType.AzureAd]: "Azure",
|
|
31
31
|
[graphql_1.ConnectionType.Snowflake]: "Snowflake",
|
|
32
32
|
[graphql_1.ConnectionType.Databricks]: "Databricks",
|
|
33
|
+
[graphql_1.ConnectionType.Coupa]: "Coupa",
|
|
34
|
+
[graphql_1.ConnectionType.DatastaxAstra]: "DataStax Astra",
|
|
35
|
+
[graphql_1.ConnectionType.Ilevel]: "iLEVEL",
|
|
33
36
|
};
|
|
34
37
|
exports.DisplayLabels = {
|
|
35
38
|
[graphql_1.EntityType.Resource]: "Resource",
|
package/lib/lib/apollo.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApolloClient
|
|
1
|
+
import { ApolloClient } from "@apollo/client";
|
|
2
2
|
import type { Command } from "@oclif/core";
|
|
3
|
-
export declare let client: ApolloClient
|
|
3
|
+
export declare let client: ApolloClient | null;
|
|
4
4
|
export declare let cookieStr: string;
|
|
5
5
|
export declare const printResponse: (command: Command, resp: any) => void;
|
|
6
6
|
export declare const handleError: (command: Command, err: any, resp?: any) => void;
|
|
7
7
|
export declare const initClient: (command: Command, fetchAccessToken?: boolean) => Promise<void>;
|
|
8
|
-
export declare function getClient(command: Command, fetchAccessToken?: boolean): Promise<ApolloClient
|
|
8
|
+
export declare function getClient(command: Command, fetchAccessToken?: boolean): Promise<ApolloClient>;
|
package/lib/lib/apollo.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.initClient = exports.handleError = exports.printResponse = exports.cookieStr = exports.client = void 0;
|
|
4
4
|
exports.getClient = getClient;
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@apollo/client");
|
|
6
6
|
const context_1 = require("@apollo/client/link/context");
|
|
7
7
|
const error_1 = require("@apollo/client/link/error");
|
|
8
8
|
const chalk_1 = require("chalk");
|
|
9
|
-
const moment = require("moment");
|
|
10
9
|
const prettyjson_1 = require("prettyjson");
|
|
10
|
+
const operators_1 = require("rxjs/operators");
|
|
11
11
|
const semver_1 = require("semver");
|
|
12
|
-
const
|
|
12
|
+
const invariant_1 = require("@apollo/client/utilities/invariant");
|
|
13
|
+
const rxjs_1 = require("rxjs");
|
|
13
14
|
const login_1 = require("../commands/login");
|
|
14
|
-
const cmd_1 = require("../lib/cmd");
|
|
15
15
|
const config_1 = require("../lib/config");
|
|
16
16
|
const credentials_1 = require("../lib/credentials");
|
|
17
17
|
const fetch = require("node-fetch");
|
|
@@ -79,13 +79,12 @@ const initClient = async (command, fetchAccessToken = true) => {
|
|
|
79
79
|
const customHeaderKey = customHeader === undefined ? "" : customHeader.split(":")[0];
|
|
80
80
|
const customHeaderValue = customHeader === undefined ? "" : customHeader.split(":")[1];
|
|
81
81
|
const agent = specifiedUrl.includes("https") ? httpsAgent : httpAgent;
|
|
82
|
-
const httpLink =
|
|
82
|
+
const httpLink = new client_1.HttpLink({
|
|
83
83
|
uri: `${specifiedUrl}/query`,
|
|
84
84
|
credentials: "include",
|
|
85
85
|
fetch,
|
|
86
86
|
fetchOptions: {
|
|
87
87
|
agent: agent,
|
|
88
|
-
credentials: "include",
|
|
89
88
|
},
|
|
90
89
|
});
|
|
91
90
|
const authLink = (0, context_1.setContext)((_, { headers }) => {
|
|
@@ -149,14 +148,13 @@ const initClient = async (command, fetchAccessToken = true) => {
|
|
|
149
148
|
}
|
|
150
149
|
}
|
|
151
150
|
};
|
|
152
|
-
const checkCLIVersionLink = new
|
|
153
|
-
return forward(operation).map((response) => {
|
|
151
|
+
const checkCLIVersionLink = new client_1.ApolloLink((operation, forward) => {
|
|
152
|
+
return forward(operation).pipe((0, operators_1.map)((response) => {
|
|
154
153
|
checkCLIVersion(operation);
|
|
155
154
|
return response;
|
|
156
|
-
});
|
|
155
|
+
}));
|
|
157
156
|
});
|
|
158
|
-
const errorLink =
|
|
159
|
-
var _a;
|
|
157
|
+
const errorLink = new error_1.ErrorLink(({ error, operation, forward }) => {
|
|
160
158
|
// There's a few GQL operations where we don't want to use this error handler:
|
|
161
159
|
const customErrorOperations = [
|
|
162
160
|
// This is triggered just after the user called `opal login` or `opal set-token`, and has
|
|
@@ -168,43 +166,23 @@ const initClient = async (command, fetchAccessToken = true) => {
|
|
|
168
166
|
// can be out of date and not include the new cliClientId field.
|
|
169
167
|
login_1.CLISignInMethodName,
|
|
170
168
|
];
|
|
171
|
-
if (
|
|
169
|
+
if (operation.operationName &&
|
|
170
|
+
customErrorOperations.includes(operation.operationName)) {
|
|
172
171
|
return;
|
|
173
172
|
}
|
|
174
|
-
if (
|
|
175
|
-
|
|
176
|
-
if ("
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
errorMessage = result;
|
|
181
|
-
else if (result.length > 0) {
|
|
182
|
-
errorMessage = (_a = result[0]) === null || _a === void 0 ? void 0 : _a.message;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
switch (networkError.statusCode) {
|
|
186
|
-
case 401: {
|
|
187
|
-
command.log("Your session is invalid or expired. Authenticating now...\n");
|
|
188
|
-
const loginCommand = new login_1.default([], command.config);
|
|
189
|
-
return (0, core_1.fromPromise)(loginCommand.run().then(() => {
|
|
190
|
-
if (cmd_1.mostRecentCommandTime && cmd_1.mostRecentCommand) {
|
|
191
|
-
const lastCommandReexecutionDuration = moment.duration(2, "minutes");
|
|
192
|
-
const lastCommandReexecutionDurationHasElapsed = cmd_1.mostRecentCommandTime.add(lastCommandReexecutionDuration) >
|
|
193
|
-
moment(new Date());
|
|
194
|
-
if (lastCommandReexecutionDurationHasElapsed) {
|
|
195
|
-
cmd_1.mostRecentCommand.run();
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
})).flatMap(() => forward(operation));
|
|
199
|
-
}
|
|
200
|
-
default:
|
|
201
|
-
return (0, exports.handleError)(command, `Received status code ${networkError.statusCode} from server${errorMessage ? ` with message "${errorMessage}"` : ""}`);
|
|
173
|
+
if (error) {
|
|
174
|
+
const errorMessage = error.message;
|
|
175
|
+
if (errorMessage.includes("invalid authentication")) {
|
|
176
|
+
command.log("Your session is invalid or expired. Authenticating now...\n");
|
|
177
|
+
const loginCommand = new login_1.default([], command.config);
|
|
178
|
+
return (0, rxjs_1.from)(loginCommand.run()).pipe((0, operators_1.mergeMap)(() => forward(operation)));
|
|
202
179
|
}
|
|
180
|
+
return (0, exports.handleError)(command, `Received error from server${errorMessage ? ` with message "${errorMessage}"` : ""}`);
|
|
203
181
|
}
|
|
204
182
|
});
|
|
205
183
|
// Parses our auth-session cookie out of the Set-Cookie response header, saving it locally so we can use it for future requests
|
|
206
|
-
const preserveCookiesLink = new
|
|
207
|
-
return forward(operation).map((response) => {
|
|
184
|
+
const preserveCookiesLink = new client_1.ApolloLink((operation, forward) => {
|
|
185
|
+
return forward(operation).pipe((0, operators_1.map)((response) => {
|
|
208
186
|
var _a, _b, _c, _d;
|
|
209
187
|
const cookieHeaderStr = (_c = (_b = (_a = operation.getContext().response) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.get("Set-Cookie")) !== null && _c !== void 0 ? _c : "";
|
|
210
188
|
const authSessionCookie = (_d = cookieHeaderStr.match(/auth-session=[^;]+;/)) === null || _d === void 0 ? void 0 : _d[0];
|
|
@@ -212,21 +190,20 @@ const initClient = async (command, fetchAccessToken = true) => {
|
|
|
212
190
|
exports.cookieStr = authSessionCookie;
|
|
213
191
|
}
|
|
214
192
|
return response;
|
|
215
|
-
});
|
|
193
|
+
}));
|
|
216
194
|
});
|
|
217
195
|
let link = authLink.concat(httpLink);
|
|
218
196
|
link = checkCLIVersionLink.concat(link);
|
|
219
197
|
link = preserveCookiesLink.concat(link);
|
|
220
198
|
link = errorLink.concat(link);
|
|
221
|
-
exports.client = new
|
|
199
|
+
exports.client = new client_1.ApolloClient({
|
|
222
200
|
link: link,
|
|
223
|
-
|
|
224
|
-
cache: new core_1.InMemoryCache(),
|
|
201
|
+
cache: new client_1.InMemoryCache(),
|
|
225
202
|
});
|
|
226
203
|
};
|
|
227
204
|
exports.initClient = initClient;
|
|
228
205
|
async function getClient(command, fetchAccessToken = true) {
|
|
229
206
|
await (0, exports.initClient)(command, fetchAccessToken);
|
|
230
|
-
(0,
|
|
207
|
+
(0, invariant_1.invariant)(exports.client, "Failed to initialize Opal Client");
|
|
231
208
|
return exports.client;
|
|
232
209
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ApolloClient
|
|
1
|
+
import type { ApolloClient } from "@apollo/client";
|
|
2
2
|
import type { Command } from "@oclif/core";
|
|
3
3
|
import type { RequestedGroupInput, RequestedResourceInput } from "../../../../graphql/graphql";
|
|
4
|
-
export declare function createRequest(cmd: Command, client: ApolloClient
|
|
4
|
+
export declare function createRequest(cmd: Command, client: ApolloClient, requestedResources: RequestedResourceInput[], requestedGroups: RequestedGroupInput[], reason: string, durationInMinutes?: number): Promise<{
|
|
5
5
|
__typename?: "Request";
|
|
6
6
|
id: string;
|
|
7
7
|
status: import("../../../../graphql/graphql").RequestStatus;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApolloClient
|
|
1
|
+
import type { ApolloClient } from "@apollo/client";
|
|
2
2
|
import type { Command } from "@oclif/core";
|
|
3
3
|
import type { PromptChoice } from "../../types";
|
|
4
|
-
export declare function queryRequestableApps(cmd: Command, client: ApolloClient
|
|
4
|
+
export declare function queryRequestableApps(cmd: Command, client: ApolloClient, input: string | undefined): Promise<PromptChoice[] | undefined>;
|