From 6714bc4069cad5fbabcb3c9da6fbbcb2f8cbf491 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravosudko Date: Tue, 16 Mar 2021 12:14:50 +0000 Subject: [PATCH] add templates and helpers for types generation add generated models and factories types (#225) * WIP on generating TS type declarations for operations * add templates for type files and add template helper functions * move typings to src/types * re-use signature getter for models and generated client * add types index and remove unused templates * unify export syntax * reduce blocklisted models filtering duplication * export model types * add factories templates and push generated model types * switch to named model exports * actually run eslint on templates dir * set proper return type for Collection and mark optional arguments * mark read-only properties * do default export models along with named export * expose Client type and add missing types * add re-generated models and remove manually-generated types * restore array type value and read-only modifier * bring models named export back * generate factories types * export GeneratedClient * to be switched to Client in the downnstream branch * specify correct types for Model constructor arguments * import Client for all models * remove default exports from models * remove models and factories index template * add extra newline for generated models, remove indents from type map, do not re-export model types * move eslint target for templates to downstream branch * add missing 'autogenerated' warning banner to templates * remove extra whitespaces, regenerate files * parametrize Collection return type in generated files * include generic type into imports list and re-generate types * preserve non-optinal query parameters * correct return type to be Response instead of undefined, include CRUD return type into imports * CR: remove copyright banners from templates Add type definitions for core objects, add typescript-eslint-plugin + tsd (re-opened) (#230) * WIP on generating TS type declarations for operations * WIP on adding types for core objects * update type references in core objects * WIP on adding types for core objects * update type references in core objects * run typescript-eslint on src/types * WIP on fixing ts-lint errors * represent object type as Record * define RequestOptions type * define more specific type for core objects * add basic tsd test * install @types/node-fetch types * specify sourceType: module for types eslint config * add more tsd assertions * complete basic coverage for core object types assertions * include tsd run into test target * export types matching code exports * fix syntactic error in command * fix indents and apply basic eslint rules to definitions files * parametrize Collection type definition * list known config properties, update jwt function return type * widen type for cache middleware next function * replace MemoryStore references with CacheStorage * extract IRequestExecutor interface, make MemoryStore parameters optional * allow request executors w/o event emission * correct types for collection subscribers * CR: cascade eslint configuration * fix revealed eslint errors * move type tests to a separate directory * CR: break down type tests * add type assertions for generated client methods * use named import for Response * allow imports for create and delete operations only * remove unused import * fix rebase artifact remove irrelevant changes update changelog entry for 4.5.0 OKTA-373751 <<>> Artifact: okta-sdk-nodejs --- .eslintignore | 1 + src/.eslintrc => .eslintrc | 12 +- CHANGELOG.md | 4 +- package.json | 20 +- src/generated-client.d.ts | 469 +++++++++++ src/types/.eslintrc | 21 + src/types/api-error.d.ts | 30 + src/types/client.d.ts | 46 ++ src/types/collection.d.ts | 48 ++ src/types/config-loader.d.ts | 31 + src/types/default-cache-middleware.d.ts | 25 + src/types/default-request-executor.d.ts | 39 + src/types/factories/ApplicationFactory.d.ts | 21 + .../BrowserPluginApplicationFactory.d.ts | 21 + src/types/factories/PolicyFactory.d.ts | 21 + src/types/factories/PolicyRuleFactory.d.ts | 21 + src/types/factories/UserFactorFactory.d.ts | 21 + src/types/generated-client.d.ts | 526 +++++++++++++ src/types/http-error.d.ts | 25 + src/types/http.d.ts | 56 ++ src/types/index.d.ts | 21 + src/types/jwt.d.ts | 36 + src/types/memory-store.d.ts | 34 + src/types/model-factory.d.ts | 24 + src/types/models/AcsEndpoint.d.ts | 30 + src/types/models/ActivateFactorRequest.d.ts | 33 + ...stanceConditionEvaluatorAppOrInstance.d.ts | 31 + .../AppAndInstancePolicyRuleCondition.d.ts | 30 + .../AppInstancePolicyRuleCondition.d.ts | 30 + src/types/models/AppLink.d.ts | 38 + src/types/models/AppUser.d.ts | 47 ++ src/types/models/AppUserCredentials.d.ts | 30 + .../models/AppUserPasswordCredential.d.ts | 29 + src/types/models/Application.d.ts | 119 +++ .../models/ApplicationAccessibility.d.ts | 31 + src/types/models/ApplicationCredentials.d.ts | 31 + .../ApplicationCredentialsOAuthClient.d.ts | 32 + .../models/ApplicationCredentialsScheme.d.ts | 28 + .../models/ApplicationCredentialsSigning.d.ts | 33 + .../ApplicationCredentialsSigningUse.d.ts | 28 + ...pplicationCredentialsUsernameTemplate.d.ts | 31 + .../models/ApplicationGroupAssignment.d.ts | 35 + src/types/models/ApplicationLicensing.d.ts | 29 + src/types/models/ApplicationSettings.d.ts | 33 + .../ApplicationSettingsApplication.d.ts | 28 + .../ApplicationSettingsNotifications.d.ts | 29 + .../ApplicationSettingsNotificationsVpn.d.ts | 31 + ...cationSettingsNotificationsVpnNetwork.d.ts | 31 + src/types/models/ApplicationSignOnMode.d.ts | 28 + src/types/models/ApplicationVisibility.d.ts | 31 + .../models/ApplicationVisibilityHide.d.ts | 30 + src/types/models/AssignRoleRequest.d.ts | 29 + src/types/models/AuthenticationProvider.d.ts | 30 + .../models/AuthenticationProviderType.d.ts | 28 + src/types/models/AuthorizationServer.d.ts | 85 ++ .../AuthorizationServerCredentials.d.ts | 29 + ...rizationServerCredentialsRotationMode.d.ts | 28 + ...izationServerCredentialsSigningConfig.d.ts | 34 + .../AuthorizationServerCredentialsUse.d.ts | 28 + .../models/AuthorizationServerPolicy.d.ts | 50 ++ .../models/AuthorizationServerPolicyRule.d.ts | 45 ++ .../AuthorizationServerPolicyRuleActions.d.ts | 29 + ...thorizationServerPolicyRuleConditions.d.ts | 35 + src/types/models/AutoLoginApplication.d.ts | 31 + .../models/AutoLoginApplicationSettings.d.ts | 29 + .../AutoLoginApplicationSettingsSignOn.d.ts | 30 + .../models/BasicApplicationSettings.d.ts | 29 + .../BasicApplicationSettingsApplication.d.ts | 30 + src/types/models/BasicAuthApplication.d.ts | 31 + ...oreScheduledActionPolicyRuleCondition.d.ts | 31 + src/types/models/BookmarkApplication.d.ts | 29 + .../models/BookmarkApplicationSettings.d.ts | 29 + ...ookmarkApplicationSettingsApplication.d.ts | 30 + .../models/BrowserPluginApplication.d.ts | 29 + src/types/models/CallUserFactor.d.ts | 29 + src/types/models/CallUserFactorProfile.d.ts | 30 + src/types/models/CatalogApplication.d.ts | 40 + .../models/CatalogApplicationStatus.d.ts | 28 + src/types/models/ChangePasswordRequest.d.ts | 30 + src/types/models/ClientPolicyCondition.d.ts | 29 + .../models/ContextPolicyRuleCondition.d.ts | 29 + src/types/models/CreateSessionRequest.d.ts | 29 + src/types/models/CreateUserRequest.d.ts | 34 + src/types/models/Csr.d.ts | 32 + src/types/models/CsrMetadata.d.ts | 31 + src/types/models/CsrMetadataSubject.d.ts | 34 + .../models/CsrMetadataSubjectAltNames.d.ts | 29 + src/types/models/CustomHotpUserFactor.d.ts | 30 + .../models/CustomHotpUserFactorProfile.d.ts | 29 + .../models/DevicePolicyRuleCondition.d.ts | 32 + .../DevicePolicyRuleConditionPlatform.d.ts | 30 + src/types/models/Duration.d.ts | 30 + src/types/models/EmailUserFactor.d.ts | 29 + src/types/models/EmailUserFactorProfile.d.ts | 29 + src/types/models/EnabledStatus.d.ts | 28 + src/types/models/EventHook.d.ts | 45 ++ src/types/models/EventHookChannel.d.ts | 31 + src/types/models/EventHookChannelConfig.d.ts | 31 + .../EventHookChannelConfigAuthScheme.d.ts | 31 + .../EventHookChannelConfigAuthSchemeType.d.ts | 28 + .../models/EventHookChannelConfigHeader.d.ts | 30 + src/types/models/EventSubscriptions.d.ts | 30 + src/types/models/FactorProvider.d.ts | 28 + src/types/models/FactorResultType.d.ts | 28 + src/types/models/FactorStatus.d.ts | 28 + src/types/models/FactorType.d.ts | 28 + src/types/models/Feature.d.ts | 43 ++ src/types/models/FeatureStage.d.ts | 31 + src/types/models/FeatureStageState.d.ts | 28 + src/types/models/FeatureStageValue.d.ts | 28 + src/types/models/FeatureType.d.ts | 28 + src/types/models/ForgotPasswordResponse.d.ts | 29 + .../models/GrantTypePolicyRuleCondition.d.ts | 29 + src/types/models/Group.d.ts | 58 ++ src/types/models/GroupCondition.d.ts | 30 + .../models/GroupPolicyRuleCondition.d.ts | 30 + src/types/models/GroupProfile.d.ts | 30 + src/types/models/GroupRule.d.ts | 44 ++ src/types/models/GroupRuleAction.d.ts | 29 + src/types/models/GroupRuleConditions.d.ts | 31 + src/types/models/GroupRuleExpression.d.ts | 30 + .../models/GroupRuleGroupAssignment.d.ts | 29 + src/types/models/GroupRuleGroupCondition.d.ts | 30 + .../models/GroupRulePeopleCondition.d.ts | 31 + src/types/models/GroupRuleStatus.d.ts | 28 + src/types/models/GroupRuleUserCondition.d.ts | 30 + src/types/models/GroupType.d.ts | 28 + src/types/models/HardwareUserFactor.d.ts | 29 + .../models/HardwareUserFactorProfile.d.ts | 29 + src/types/models/IdentityProvider.d.ts | 68 ++ .../IdentityProviderApplicationUser.d.ts | 35 + .../models/IdentityProviderCredentials.d.ts | 33 + .../IdentityProviderCredentialsClient.d.ts | 30 + .../IdentityProviderCredentialsSigning.d.ts | 29 + .../IdentityProviderCredentialsTrust.d.ts | 33 + src/types/models/IdentityProviderPolicy.d.ts | 34 + .../IdentityProviderPolicyRuleCondition.d.ts | 30 + .../models/InactivityPolicyRuleCondition.d.ts | 30 + src/types/models/InlineHook.d.ts | 47 ++ src/types/models/InlineHookChannel.d.ts | 31 + src/types/models/InlineHookChannelConfig.d.ts | 31 + .../InlineHookChannelConfigAuthScheme.d.ts | 31 + .../InlineHookChannelConfigHeaders.d.ts | 30 + src/types/models/InlineHookPayload.d.ts | 28 + src/types/models/InlineHookResponse.d.ts | 29 + .../InlineHookResponseCommandValue.d.ts | 31 + .../models/InlineHookResponseCommands.d.ts | 30 + src/types/models/InlineHookStatus.d.ts | 28 + src/types/models/InlineHookType.d.ts | 28 + src/types/models/IonField.d.ts | 37 + src/types/models/IonForm.d.ts | 37 + src/types/models/JsonWebKey.d.ts | 44 ++ src/types/models/JwkUse.d.ts | 29 + ...ifecycleExpirationPolicyRuleCondition.d.ts | 31 + src/types/models/LinkedObject.d.ts | 33 + src/types/models/LinkedObjectDetails.d.ts | 32 + src/types/models/LinkedObjectDetailsType.d.ts | 28 + src/types/models/LogActor.d.ts | 33 + .../models/LogAuthenticationContext.d.ts | 38 + .../models/LogAuthenticationProvider.d.ts | 28 + src/types/models/LogClient.d.ts | 35 + src/types/models/LogCredentialProvider.d.ts | 28 + src/types/models/LogCredentialType.d.ts | 28 + src/types/models/LogDebugContext.d.ts | 29 + src/types/models/LogEvent.d.ts | 52 ++ src/types/models/LogGeographicalContext.d.ts | 33 + src/types/models/LogGeolocation.d.ts | 30 + src/types/models/LogIpAddress.d.ts | 32 + src/types/models/LogIssuer.d.ts | 30 + src/types/models/LogOutcome.d.ts | 30 + src/types/models/LogRequest.d.ts | 29 + src/types/models/LogSecurityContext.d.ts | 33 + src/types/models/LogSeverity.d.ts | 28 + src/types/models/LogTarget.d.ts | 33 + src/types/models/LogTransaction.d.ts | 31 + src/types/models/LogUserAgent.d.ts | 31 + .../MDMEnrollmentPolicyRuleCondition.d.ts | 30 + src/types/models/OAuth2Actor.d.ts | 30 + src/types/models/OAuth2Claim.d.ts | 39 + src/types/models/OAuth2ClaimConditions.d.ts | 29 + src/types/models/OAuth2Client.d.ts | 33 + src/types/models/OAuth2RefreshToken.d.ts | 40 + src/types/models/OAuth2Scope.d.ts | 36 + src/types/models/OAuth2ScopeConsentGrant.d.ts | 42 + .../models/OAuth2ScopeConsentGrantSource.d.ts | 28 + .../models/OAuth2ScopeConsentGrantStatus.d.ts | 28 + ...th2ScopesMediationPolicyRuleCondition.d.ts | 29 + src/types/models/OAuth2Token.d.ts | 39 + .../models/OAuthApplicationCredentials.d.ts | 29 + .../models/OAuthAuthorizationPolicy.d.ts | 28 + .../OAuthEndpointAuthenticationMethod.d.ts | 28 + src/types/models/OAuthGrantType.d.ts | 28 + src/types/models/OAuthResponseType.d.ts | 28 + src/types/models/OktaSignOnPolicy.d.ts | 28 + .../models/OktaSignOnPolicyConditions.d.ts | 29 + src/types/models/OktaSignOnPolicyRule.d.ts | 32 + .../models/OktaSignOnPolicyRuleActions.d.ts | 29 + .../OktaSignOnPolicyRuleConditions.d.ts | 33 + .../OktaSignOnPolicyRuleSignonActions.d.ts | 34 + ...aSignOnPolicyRuleSignonSessionActions.d.ts | 31 + .../models/OpenIdConnectApplication.d.ts | 31 + ...OpenIdConnectApplicationConsentMethod.d.ts | 28 + .../OpenIdConnectApplicationIssuerMode.d.ts | 28 + .../OpenIdConnectApplicationSettings.d.ts | 29 + ...penIdConnectApplicationSettingsClient.d.ts | 46 ++ ...dConnectApplicationSettingsClientKeys.d.ts | 29 + ...onnectApplicationSettingsRefreshToken.d.ts | 30 + .../models/OpenIdConnectApplicationType.d.ts | 28 + ...OpenIdConnectRefreshTokenRotationType.d.ts | 28 + src/types/models/PasswordCredential.d.ts | 32 + src/types/models/PasswordCredentialHash.d.ts | 33 + .../PasswordCredentialHashAlgorithm.d.ts | 28 + src/types/models/PasswordCredentialHook.d.ts | 29 + src/types/models/PasswordDictionary.d.ts | 29 + .../models/PasswordDictionaryCommon.d.ts | 29 + ...PasswordExpirationPolicyRuleCondition.d.ts | 30 + src/types/models/PasswordPolicy.d.ts | 29 + ...PolicyAuthenticationProviderCondition.d.ts | 30 + .../models/PasswordPolicyConditions.d.ts | 31 + .../PasswordPolicyDelegationSettings.d.ts | 29 + ...sswordPolicyDelegationSettingsOptions.d.ts | 29 + .../PasswordPolicyPasswordSettings.d.ts | 33 + .../PasswordPolicyPasswordSettingsAge.d.ts | 32 + ...swordPolicyPasswordSettingsComplexity.d.ts | 36 + ...PasswordPolicyPasswordSettingsLockout.d.ts | 32 + .../models/PasswordPolicyRecoveryEmail.d.ts | 30 + ...PasswordPolicyRecoveryEmailProperties.d.ts | 29 + ...swordPolicyRecoveryEmailRecoveryToken.d.ts | 29 + .../PasswordPolicyRecoveryFactorSettings.d.ts | 29 + .../models/PasswordPolicyRecoveryFactors.d.ts | 34 + .../PasswordPolicyRecoveryQuestion.d.ts | 30 + ...swordPolicyRecoveryQuestionComplexity.d.ts | 29 + ...swordPolicyRecoveryQuestionProperties.d.ts | 29 + .../PasswordPolicyRecoverySettings.d.ts | 29 + src/types/models/PasswordPolicyRule.d.ts | 32 + .../models/PasswordPolicyRuleAction.d.ts | 29 + .../models/PasswordPolicyRuleActions.d.ts | 31 + .../models/PasswordPolicyRuleConditions.d.ts | 31 + src/types/models/PasswordPolicySettings.d.ts | 33 + .../PlatformConditionEvaluatorPlatform.d.ts | 30 + ...itionEvaluatorPlatformOperatingSystem.d.ts | 31 + ...aluatorPlatformOperatingSystemVersion.d.ts | 30 + .../models/PlatformPolicyRuleCondition.d.ts | 30 + src/types/models/Policy.d.ts | 51 ++ src/types/models/PolicyAccountLink.d.ts | 30 + src/types/models/PolicyAccountLinkFilter.d.ts | 29 + .../models/PolicyAccountLinkFilterGroups.d.ts | 29 + src/types/models/PolicyNetworkCondition.d.ts | 31 + src/types/models/PolicyPeopleCondition.d.ts | 31 + src/types/models/PolicyRule.d.ts | 39 + .../PolicyRuleAuthContextCondition.d.ts | 29 + src/types/models/PolicyRuleConditions.d.ts | 69 ++ src/types/models/PolicySubject.d.ts | 34 + src/types/models/PolicySubjectMatchType.d.ts | 28 + src/types/models/PolicyType.d.ts | 28 + src/types/models/PolicyUserNameTemplate.d.ts | 29 + src/types/models/Protocol.d.ts | 41 + src/types/models/ProtocolAlgorithmType.d.ts | 29 + .../ProtocolAlgorithmTypeSignature.d.ts | 30 + src/types/models/ProtocolAlgorithms.d.ts | 30 + src/types/models/ProtocolEndpoint.d.ts | 32 + src/types/models/ProtocolEndpoints.d.ts | 36 + src/types/models/ProtocolRelayState.d.ts | 29 + .../models/ProtocolRelayStateFormat.d.ts | 28 + src/types/models/ProtocolSettings.d.ts | 29 + src/types/models/Provisioning.d.ts | 33 + src/types/models/ProvisioningConditions.d.ts | 31 + .../ProvisioningDeprovisionedCondition.d.ts | 29 + src/types/models/ProvisioningGroups.d.ts | 32 + .../ProvisioningSuspendedCondition.d.ts | 29 + src/types/models/PushUserFactor.d.ts | 32 + src/types/models/PushUserFactorProfile.d.ts | 34 + .../models/RecoveryQuestionCredential.d.ts | 30 + src/types/models/ResetPasswordToken.d.ts | 29 + src/types/models/ResponseLinks.d.ts | 28 + src/types/models/RiskPolicyRuleCondition.d.ts | 29 + .../models/RiskScorePolicyRuleCondition.d.ts | 29 + src/types/models/Role.d.ts | 47 ++ src/types/models/RoleAssignmentType.d.ts | 28 + src/types/models/RoleStatus.d.ts | 28 + src/types/models/RoleType.d.ts | 28 + src/types/models/SamlApplication.d.ts | 29 + src/types/models/SamlApplicationSettings.d.ts | 29 + .../models/SamlApplicationSettingsSignOn.d.ts | 51 ++ src/types/models/SamlAttributeStatement.d.ts | 34 + .../models/ScheduledUserLifecycleAction.d.ts | 29 + .../models/SchemeApplicationCredentials.d.ts | 35 + src/types/models/Scope.d.ts | 30 + src/types/models/ScopeType.d.ts | 28 + .../SecurePasswordStoreApplication.d.ts | 31 + ...ecurePasswordStoreApplicationSettings.d.ts | 29 + ...rdStoreApplicationSettingsApplication.d.ts | 37 + src/types/models/SecurityQuestion.d.ts | 31 + .../models/SecurityQuestionUserFactor.d.ts | 29 + .../SecurityQuestionUserFactorProfile.d.ts | 31 + src/types/models/Session.d.ts | 43 ++ .../models/SessionAuthenticationMethod.d.ts | 28 + src/types/models/SessionIdentityProvider.d.ts | 30 + .../models/SessionIdentityProviderType.d.ts | 28 + src/types/models/SessionStatus.d.ts | 28 + src/types/models/SmsTemplate.d.ts | 41 + src/types/models/SmsTemplateTranslations.d.ts | 28 + src/types/models/SmsTemplateType.d.ts | 28 + src/types/models/SmsUserFactor.d.ts | 29 + src/types/models/SmsUserFactorProfile.d.ts | 29 + src/types/models/SocialAuthToken.d.ts | 34 + src/types/models/SwaApplication.d.ts | 29 + src/types/models/SwaApplicationSettings.d.ts | 29 + .../SwaApplicationSettingsApplication.d.ts | 33 + .../models/SwaThreeFieldApplication.d.ts | 29 + .../SwaThreeFieldApplicationSettings.d.ts | 29 + ...eeFieldApplicationSettingsApplication.d.ts | 35 + src/types/models/TempPassword.d.ts | 29 + ...enAuthorizationServerPolicyRuleAction.d.ts | 31 + src/types/models/TokenUserFactor.d.ts | 29 + src/types/models/TokenUserFactorProfile.d.ts | 29 + src/types/models/TotpUserFactor.d.ts | 29 + src/types/models/TotpUserFactorProfile.d.ts | 29 + src/types/models/TrustedOrigin.d.ts | 40 + src/types/models/U2fUserFactor.d.ts | 29 + src/types/models/U2fUserFactorProfile.d.ts | 29 + src/types/models/User.d.ts | 157 ++++ src/types/models/UserActivationToken.d.ts | 30 + src/types/models/UserCondition.d.ts | 30 + src/types/models/UserCredentials.d.ts | 33 + src/types/models/UserFactor.d.ts | 49 ++ ...erIdentifierConditionEvaluatorPattern.d.ts | 30 + .../UserIdentifierPolicyRuleCondition.d.ts | 31 + .../UserIdentityProviderLinkRequest.d.ts | 29 + ...LifecycleAttributePolicyRuleCondition.d.ts | 30 + src/types/models/UserNextLogin.d.ts | 28 + src/types/models/UserPolicyRuleCondition.d.ts | 37 + src/types/models/UserProfile.d.ts | 59 ++ src/types/models/UserStatus.d.ts | 28 + .../models/UserStatusPolicyRuleCondition.d.ts | 29 + src/types/models/UserType.d.ts | 40 + src/types/models/VerifyFactorRequest.d.ts | 36 + .../models/VerifyUserFactorResponse.d.ts | 33 + src/types/models/WebAuthnUserFactor.d.ts | 29 + .../models/WebAuthnUserFactorProfile.d.ts | 30 + src/types/models/WebUserFactor.d.ts | 29 + src/types/models/WebUserFactorProfile.d.ts | 29 + src/types/models/WsFederationApplication.d.ts | 29 + .../WsFederationApplicationSettings.d.ts | 29 + ...erationApplicationSettingsApplication.d.ts | 40 + src/types/oauth.d.ts | 55 ++ src/types/okta-response-headers.d.ts | 23 + src/types/request-executor.d.ts | 28 + src/types/request-options.d.ts | 20 + src/types/resolution-factory.d.ts | 23 + src/types/resource.d.ts | 19 + templates/.eslintrc | 11 + templates/factories.index.js.hbs | 14 +- templates/factory.d.ts.hbs | 12 + templates/factory.js.hbs | 14 +- templates/generated-client.d.ts.hbs | 15 + templates/generated-client.js.hbs | 14 +- templates/helpers/operation.js | 271 ++++++- templates/index.js | 52 +- templates/license-banner.txt | 2 +- templates/model.d.ts.hbs | 46 ++ templates/model.index.js.hbs | 14 +- templates/model.js.hbs | 16 +- test/.eslintrc | 74 +- test/delete-resources.js | 61 +- test/jest/.eslintrc | 1 - test/type/.eslintrc | 5 + test/type/api-error.test-d.ts | 8 + test/type/client.test-d.ts | 18 + test/type/collection.test-d.ts | 23 + test/type/config-loader.test-d.ts | 9 + test/type/default-cache-middleware.test-d.ts | 15 + test/type/default-request-executor.test-d.ts | 15 + test/type/http-error.test-d.ts | 8 + test/type/http.test-d.ts | 22 + test/type/jwt.test-d.ts | 6 + test/type/memory-store.test-d.ts | 8 + test/type/model-factory.test-d.ts | 8 + test/type/oauth.test-d.ts | 8 + test/type/okta-response-headers.test-d.ts | 4 + test/type/request-executor.test-d.ts | 6 + test/type/resolution-factory.test-d.ts | 10 + test/type/resource.test-d.ts | 6 + utils/maintain-banners.js | 5 +- yarn.lock | 726 ++++++++++++++++-- 385 files changed, 13462 insertions(+), 270 deletions(-) create mode 100644 .eslintignore rename src/.eslintrc => .eslintrc (88%) create mode 100644 src/generated-client.d.ts create mode 100644 src/types/.eslintrc create mode 100644 src/types/api-error.d.ts create mode 100644 src/types/client.d.ts create mode 100644 src/types/collection.d.ts create mode 100644 src/types/config-loader.d.ts create mode 100644 src/types/default-cache-middleware.d.ts create mode 100644 src/types/default-request-executor.d.ts create mode 100644 src/types/factories/ApplicationFactory.d.ts create mode 100644 src/types/factories/BrowserPluginApplicationFactory.d.ts create mode 100644 src/types/factories/PolicyFactory.d.ts create mode 100644 src/types/factories/PolicyRuleFactory.d.ts create mode 100644 src/types/factories/UserFactorFactory.d.ts create mode 100644 src/types/generated-client.d.ts create mode 100644 src/types/http-error.d.ts create mode 100644 src/types/http.d.ts create mode 100644 src/types/index.d.ts create mode 100644 src/types/jwt.d.ts create mode 100644 src/types/memory-store.d.ts create mode 100644 src/types/model-factory.d.ts create mode 100644 src/types/models/AcsEndpoint.d.ts create mode 100644 src/types/models/ActivateFactorRequest.d.ts create mode 100644 src/types/models/AppAndInstanceConditionEvaluatorAppOrInstance.d.ts create mode 100644 src/types/models/AppAndInstancePolicyRuleCondition.d.ts create mode 100644 src/types/models/AppInstancePolicyRuleCondition.d.ts create mode 100644 src/types/models/AppLink.d.ts create mode 100644 src/types/models/AppUser.d.ts create mode 100644 src/types/models/AppUserCredentials.d.ts create mode 100644 src/types/models/AppUserPasswordCredential.d.ts create mode 100644 src/types/models/Application.d.ts create mode 100644 src/types/models/ApplicationAccessibility.d.ts create mode 100644 src/types/models/ApplicationCredentials.d.ts create mode 100644 src/types/models/ApplicationCredentialsOAuthClient.d.ts create mode 100644 src/types/models/ApplicationCredentialsScheme.d.ts create mode 100644 src/types/models/ApplicationCredentialsSigning.d.ts create mode 100644 src/types/models/ApplicationCredentialsSigningUse.d.ts create mode 100644 src/types/models/ApplicationCredentialsUsernameTemplate.d.ts create mode 100644 src/types/models/ApplicationGroupAssignment.d.ts create mode 100644 src/types/models/ApplicationLicensing.d.ts create mode 100644 src/types/models/ApplicationSettings.d.ts create mode 100644 src/types/models/ApplicationSettingsApplication.d.ts create mode 100644 src/types/models/ApplicationSettingsNotifications.d.ts create mode 100644 src/types/models/ApplicationSettingsNotificationsVpn.d.ts create mode 100644 src/types/models/ApplicationSettingsNotificationsVpnNetwork.d.ts create mode 100644 src/types/models/ApplicationSignOnMode.d.ts create mode 100644 src/types/models/ApplicationVisibility.d.ts create mode 100644 src/types/models/ApplicationVisibilityHide.d.ts create mode 100644 src/types/models/AssignRoleRequest.d.ts create mode 100644 src/types/models/AuthenticationProvider.d.ts create mode 100644 src/types/models/AuthenticationProviderType.d.ts create mode 100644 src/types/models/AuthorizationServer.d.ts create mode 100644 src/types/models/AuthorizationServerCredentials.d.ts create mode 100644 src/types/models/AuthorizationServerCredentialsRotationMode.d.ts create mode 100644 src/types/models/AuthorizationServerCredentialsSigningConfig.d.ts create mode 100644 src/types/models/AuthorizationServerCredentialsUse.d.ts create mode 100644 src/types/models/AuthorizationServerPolicy.d.ts create mode 100644 src/types/models/AuthorizationServerPolicyRule.d.ts create mode 100644 src/types/models/AuthorizationServerPolicyRuleActions.d.ts create mode 100644 src/types/models/AuthorizationServerPolicyRuleConditions.d.ts create mode 100644 src/types/models/AutoLoginApplication.d.ts create mode 100644 src/types/models/AutoLoginApplicationSettings.d.ts create mode 100644 src/types/models/AutoLoginApplicationSettingsSignOn.d.ts create mode 100644 src/types/models/BasicApplicationSettings.d.ts create mode 100644 src/types/models/BasicApplicationSettingsApplication.d.ts create mode 100644 src/types/models/BasicAuthApplication.d.ts create mode 100644 src/types/models/BeforeScheduledActionPolicyRuleCondition.d.ts create mode 100644 src/types/models/BookmarkApplication.d.ts create mode 100644 src/types/models/BookmarkApplicationSettings.d.ts create mode 100644 src/types/models/BookmarkApplicationSettingsApplication.d.ts create mode 100644 src/types/models/BrowserPluginApplication.d.ts create mode 100644 src/types/models/CallUserFactor.d.ts create mode 100644 src/types/models/CallUserFactorProfile.d.ts create mode 100644 src/types/models/CatalogApplication.d.ts create mode 100644 src/types/models/CatalogApplicationStatus.d.ts create mode 100644 src/types/models/ChangePasswordRequest.d.ts create mode 100644 src/types/models/ClientPolicyCondition.d.ts create mode 100644 src/types/models/ContextPolicyRuleCondition.d.ts create mode 100644 src/types/models/CreateSessionRequest.d.ts create mode 100644 src/types/models/CreateUserRequest.d.ts create mode 100644 src/types/models/Csr.d.ts create mode 100644 src/types/models/CsrMetadata.d.ts create mode 100644 src/types/models/CsrMetadataSubject.d.ts create mode 100644 src/types/models/CsrMetadataSubjectAltNames.d.ts create mode 100644 src/types/models/CustomHotpUserFactor.d.ts create mode 100644 src/types/models/CustomHotpUserFactorProfile.d.ts create mode 100644 src/types/models/DevicePolicyRuleCondition.d.ts create mode 100644 src/types/models/DevicePolicyRuleConditionPlatform.d.ts create mode 100644 src/types/models/Duration.d.ts create mode 100644 src/types/models/EmailUserFactor.d.ts create mode 100644 src/types/models/EmailUserFactorProfile.d.ts create mode 100644 src/types/models/EnabledStatus.d.ts create mode 100644 src/types/models/EventHook.d.ts create mode 100644 src/types/models/EventHookChannel.d.ts create mode 100644 src/types/models/EventHookChannelConfig.d.ts create mode 100644 src/types/models/EventHookChannelConfigAuthScheme.d.ts create mode 100644 src/types/models/EventHookChannelConfigAuthSchemeType.d.ts create mode 100644 src/types/models/EventHookChannelConfigHeader.d.ts create mode 100644 src/types/models/EventSubscriptions.d.ts create mode 100644 src/types/models/FactorProvider.d.ts create mode 100644 src/types/models/FactorResultType.d.ts create mode 100644 src/types/models/FactorStatus.d.ts create mode 100644 src/types/models/FactorType.d.ts create mode 100644 src/types/models/Feature.d.ts create mode 100644 src/types/models/FeatureStage.d.ts create mode 100644 src/types/models/FeatureStageState.d.ts create mode 100644 src/types/models/FeatureStageValue.d.ts create mode 100644 src/types/models/FeatureType.d.ts create mode 100644 src/types/models/ForgotPasswordResponse.d.ts create mode 100644 src/types/models/GrantTypePolicyRuleCondition.d.ts create mode 100644 src/types/models/Group.d.ts create mode 100644 src/types/models/GroupCondition.d.ts create mode 100644 src/types/models/GroupPolicyRuleCondition.d.ts create mode 100644 src/types/models/GroupProfile.d.ts create mode 100644 src/types/models/GroupRule.d.ts create mode 100644 src/types/models/GroupRuleAction.d.ts create mode 100644 src/types/models/GroupRuleConditions.d.ts create mode 100644 src/types/models/GroupRuleExpression.d.ts create mode 100644 src/types/models/GroupRuleGroupAssignment.d.ts create mode 100644 src/types/models/GroupRuleGroupCondition.d.ts create mode 100644 src/types/models/GroupRulePeopleCondition.d.ts create mode 100644 src/types/models/GroupRuleStatus.d.ts create mode 100644 src/types/models/GroupRuleUserCondition.d.ts create mode 100644 src/types/models/GroupType.d.ts create mode 100644 src/types/models/HardwareUserFactor.d.ts create mode 100644 src/types/models/HardwareUserFactorProfile.d.ts create mode 100644 src/types/models/IdentityProvider.d.ts create mode 100644 src/types/models/IdentityProviderApplicationUser.d.ts create mode 100644 src/types/models/IdentityProviderCredentials.d.ts create mode 100644 src/types/models/IdentityProviderCredentialsClient.d.ts create mode 100644 src/types/models/IdentityProviderCredentialsSigning.d.ts create mode 100644 src/types/models/IdentityProviderCredentialsTrust.d.ts create mode 100644 src/types/models/IdentityProviderPolicy.d.ts create mode 100644 src/types/models/IdentityProviderPolicyRuleCondition.d.ts create mode 100644 src/types/models/InactivityPolicyRuleCondition.d.ts create mode 100644 src/types/models/InlineHook.d.ts create mode 100644 src/types/models/InlineHookChannel.d.ts create mode 100644 src/types/models/InlineHookChannelConfig.d.ts create mode 100644 src/types/models/InlineHookChannelConfigAuthScheme.d.ts create mode 100644 src/types/models/InlineHookChannelConfigHeaders.d.ts create mode 100644 src/types/models/InlineHookPayload.d.ts create mode 100644 src/types/models/InlineHookResponse.d.ts create mode 100644 src/types/models/InlineHookResponseCommandValue.d.ts create mode 100644 src/types/models/InlineHookResponseCommands.d.ts create mode 100644 src/types/models/InlineHookStatus.d.ts create mode 100644 src/types/models/InlineHookType.d.ts create mode 100644 src/types/models/IonField.d.ts create mode 100644 src/types/models/IonForm.d.ts create mode 100644 src/types/models/JsonWebKey.d.ts create mode 100644 src/types/models/JwkUse.d.ts create mode 100644 src/types/models/LifecycleExpirationPolicyRuleCondition.d.ts create mode 100644 src/types/models/LinkedObject.d.ts create mode 100644 src/types/models/LinkedObjectDetails.d.ts create mode 100644 src/types/models/LinkedObjectDetailsType.d.ts create mode 100644 src/types/models/LogActor.d.ts create mode 100644 src/types/models/LogAuthenticationContext.d.ts create mode 100644 src/types/models/LogAuthenticationProvider.d.ts create mode 100644 src/types/models/LogClient.d.ts create mode 100644 src/types/models/LogCredentialProvider.d.ts create mode 100644 src/types/models/LogCredentialType.d.ts create mode 100644 src/types/models/LogDebugContext.d.ts create mode 100644 src/types/models/LogEvent.d.ts create mode 100644 src/types/models/LogGeographicalContext.d.ts create mode 100644 src/types/models/LogGeolocation.d.ts create mode 100644 src/types/models/LogIpAddress.d.ts create mode 100644 src/types/models/LogIssuer.d.ts create mode 100644 src/types/models/LogOutcome.d.ts create mode 100644 src/types/models/LogRequest.d.ts create mode 100644 src/types/models/LogSecurityContext.d.ts create mode 100644 src/types/models/LogSeverity.d.ts create mode 100644 src/types/models/LogTarget.d.ts create mode 100644 src/types/models/LogTransaction.d.ts create mode 100644 src/types/models/LogUserAgent.d.ts create mode 100644 src/types/models/MDMEnrollmentPolicyRuleCondition.d.ts create mode 100644 src/types/models/OAuth2Actor.d.ts create mode 100644 src/types/models/OAuth2Claim.d.ts create mode 100644 src/types/models/OAuth2ClaimConditions.d.ts create mode 100644 src/types/models/OAuth2Client.d.ts create mode 100644 src/types/models/OAuth2RefreshToken.d.ts create mode 100644 src/types/models/OAuth2Scope.d.ts create mode 100644 src/types/models/OAuth2ScopeConsentGrant.d.ts create mode 100644 src/types/models/OAuth2ScopeConsentGrantSource.d.ts create mode 100644 src/types/models/OAuth2ScopeConsentGrantStatus.d.ts create mode 100644 src/types/models/OAuth2ScopesMediationPolicyRuleCondition.d.ts create mode 100644 src/types/models/OAuth2Token.d.ts create mode 100644 src/types/models/OAuthApplicationCredentials.d.ts create mode 100644 src/types/models/OAuthAuthorizationPolicy.d.ts create mode 100644 src/types/models/OAuthEndpointAuthenticationMethod.d.ts create mode 100644 src/types/models/OAuthGrantType.d.ts create mode 100644 src/types/models/OAuthResponseType.d.ts create mode 100644 src/types/models/OktaSignOnPolicy.d.ts create mode 100644 src/types/models/OktaSignOnPolicyConditions.d.ts create mode 100644 src/types/models/OktaSignOnPolicyRule.d.ts create mode 100644 src/types/models/OktaSignOnPolicyRuleActions.d.ts create mode 100644 src/types/models/OktaSignOnPolicyRuleConditions.d.ts create mode 100644 src/types/models/OktaSignOnPolicyRuleSignonActions.d.ts create mode 100644 src/types/models/OktaSignOnPolicyRuleSignonSessionActions.d.ts create mode 100644 src/types/models/OpenIdConnectApplication.d.ts create mode 100644 src/types/models/OpenIdConnectApplicationConsentMethod.d.ts create mode 100644 src/types/models/OpenIdConnectApplicationIssuerMode.d.ts create mode 100644 src/types/models/OpenIdConnectApplicationSettings.d.ts create mode 100644 src/types/models/OpenIdConnectApplicationSettingsClient.d.ts create mode 100644 src/types/models/OpenIdConnectApplicationSettingsClientKeys.d.ts create mode 100644 src/types/models/OpenIdConnectApplicationSettingsRefreshToken.d.ts create mode 100644 src/types/models/OpenIdConnectApplicationType.d.ts create mode 100644 src/types/models/OpenIdConnectRefreshTokenRotationType.d.ts create mode 100644 src/types/models/PasswordCredential.d.ts create mode 100644 src/types/models/PasswordCredentialHash.d.ts create mode 100644 src/types/models/PasswordCredentialHashAlgorithm.d.ts create mode 100644 src/types/models/PasswordCredentialHook.d.ts create mode 100644 src/types/models/PasswordDictionary.d.ts create mode 100644 src/types/models/PasswordDictionaryCommon.d.ts create mode 100644 src/types/models/PasswordExpirationPolicyRuleCondition.d.ts create mode 100644 src/types/models/PasswordPolicy.d.ts create mode 100644 src/types/models/PasswordPolicyAuthenticationProviderCondition.d.ts create mode 100644 src/types/models/PasswordPolicyConditions.d.ts create mode 100644 src/types/models/PasswordPolicyDelegationSettings.d.ts create mode 100644 src/types/models/PasswordPolicyDelegationSettingsOptions.d.ts create mode 100644 src/types/models/PasswordPolicyPasswordSettings.d.ts create mode 100644 src/types/models/PasswordPolicyPasswordSettingsAge.d.ts create mode 100644 src/types/models/PasswordPolicyPasswordSettingsComplexity.d.ts create mode 100644 src/types/models/PasswordPolicyPasswordSettingsLockout.d.ts create mode 100644 src/types/models/PasswordPolicyRecoveryEmail.d.ts create mode 100644 src/types/models/PasswordPolicyRecoveryEmailProperties.d.ts create mode 100644 src/types/models/PasswordPolicyRecoveryEmailRecoveryToken.d.ts create mode 100644 src/types/models/PasswordPolicyRecoveryFactorSettings.d.ts create mode 100644 src/types/models/PasswordPolicyRecoveryFactors.d.ts create mode 100644 src/types/models/PasswordPolicyRecoveryQuestion.d.ts create mode 100644 src/types/models/PasswordPolicyRecoveryQuestionComplexity.d.ts create mode 100644 src/types/models/PasswordPolicyRecoveryQuestionProperties.d.ts create mode 100644 src/types/models/PasswordPolicyRecoverySettings.d.ts create mode 100644 src/types/models/PasswordPolicyRule.d.ts create mode 100644 src/types/models/PasswordPolicyRuleAction.d.ts create mode 100644 src/types/models/PasswordPolicyRuleActions.d.ts create mode 100644 src/types/models/PasswordPolicyRuleConditions.d.ts create mode 100644 src/types/models/PasswordPolicySettings.d.ts create mode 100644 src/types/models/PlatformConditionEvaluatorPlatform.d.ts create mode 100644 src/types/models/PlatformConditionEvaluatorPlatformOperatingSystem.d.ts create mode 100644 src/types/models/PlatformConditionEvaluatorPlatformOperatingSystemVersion.d.ts create mode 100644 src/types/models/PlatformPolicyRuleCondition.d.ts create mode 100644 src/types/models/Policy.d.ts create mode 100644 src/types/models/PolicyAccountLink.d.ts create mode 100644 src/types/models/PolicyAccountLinkFilter.d.ts create mode 100644 src/types/models/PolicyAccountLinkFilterGroups.d.ts create mode 100644 src/types/models/PolicyNetworkCondition.d.ts create mode 100644 src/types/models/PolicyPeopleCondition.d.ts create mode 100644 src/types/models/PolicyRule.d.ts create mode 100644 src/types/models/PolicyRuleAuthContextCondition.d.ts create mode 100644 src/types/models/PolicyRuleConditions.d.ts create mode 100644 src/types/models/PolicySubject.d.ts create mode 100644 src/types/models/PolicySubjectMatchType.d.ts create mode 100644 src/types/models/PolicyType.d.ts create mode 100644 src/types/models/PolicyUserNameTemplate.d.ts create mode 100644 src/types/models/Protocol.d.ts create mode 100644 src/types/models/ProtocolAlgorithmType.d.ts create mode 100644 src/types/models/ProtocolAlgorithmTypeSignature.d.ts create mode 100644 src/types/models/ProtocolAlgorithms.d.ts create mode 100644 src/types/models/ProtocolEndpoint.d.ts create mode 100644 src/types/models/ProtocolEndpoints.d.ts create mode 100644 src/types/models/ProtocolRelayState.d.ts create mode 100644 src/types/models/ProtocolRelayStateFormat.d.ts create mode 100644 src/types/models/ProtocolSettings.d.ts create mode 100644 src/types/models/Provisioning.d.ts create mode 100644 src/types/models/ProvisioningConditions.d.ts create mode 100644 src/types/models/ProvisioningDeprovisionedCondition.d.ts create mode 100644 src/types/models/ProvisioningGroups.d.ts create mode 100644 src/types/models/ProvisioningSuspendedCondition.d.ts create mode 100644 src/types/models/PushUserFactor.d.ts create mode 100644 src/types/models/PushUserFactorProfile.d.ts create mode 100644 src/types/models/RecoveryQuestionCredential.d.ts create mode 100644 src/types/models/ResetPasswordToken.d.ts create mode 100644 src/types/models/ResponseLinks.d.ts create mode 100644 src/types/models/RiskPolicyRuleCondition.d.ts create mode 100644 src/types/models/RiskScorePolicyRuleCondition.d.ts create mode 100644 src/types/models/Role.d.ts create mode 100644 src/types/models/RoleAssignmentType.d.ts create mode 100644 src/types/models/RoleStatus.d.ts create mode 100644 src/types/models/RoleType.d.ts create mode 100644 src/types/models/SamlApplication.d.ts create mode 100644 src/types/models/SamlApplicationSettings.d.ts create mode 100644 src/types/models/SamlApplicationSettingsSignOn.d.ts create mode 100644 src/types/models/SamlAttributeStatement.d.ts create mode 100644 src/types/models/ScheduledUserLifecycleAction.d.ts create mode 100644 src/types/models/SchemeApplicationCredentials.d.ts create mode 100644 src/types/models/Scope.d.ts create mode 100644 src/types/models/ScopeType.d.ts create mode 100644 src/types/models/SecurePasswordStoreApplication.d.ts create mode 100644 src/types/models/SecurePasswordStoreApplicationSettings.d.ts create mode 100644 src/types/models/SecurePasswordStoreApplicationSettingsApplication.d.ts create mode 100644 src/types/models/SecurityQuestion.d.ts create mode 100644 src/types/models/SecurityQuestionUserFactor.d.ts create mode 100644 src/types/models/SecurityQuestionUserFactorProfile.d.ts create mode 100644 src/types/models/Session.d.ts create mode 100644 src/types/models/SessionAuthenticationMethod.d.ts create mode 100644 src/types/models/SessionIdentityProvider.d.ts create mode 100644 src/types/models/SessionIdentityProviderType.d.ts create mode 100644 src/types/models/SessionStatus.d.ts create mode 100644 src/types/models/SmsTemplate.d.ts create mode 100644 src/types/models/SmsTemplateTranslations.d.ts create mode 100644 src/types/models/SmsTemplateType.d.ts create mode 100644 src/types/models/SmsUserFactor.d.ts create mode 100644 src/types/models/SmsUserFactorProfile.d.ts create mode 100644 src/types/models/SocialAuthToken.d.ts create mode 100644 src/types/models/SwaApplication.d.ts create mode 100644 src/types/models/SwaApplicationSettings.d.ts create mode 100644 src/types/models/SwaApplicationSettingsApplication.d.ts create mode 100644 src/types/models/SwaThreeFieldApplication.d.ts create mode 100644 src/types/models/SwaThreeFieldApplicationSettings.d.ts create mode 100644 src/types/models/SwaThreeFieldApplicationSettingsApplication.d.ts create mode 100644 src/types/models/TempPassword.d.ts create mode 100644 src/types/models/TokenAuthorizationServerPolicyRuleAction.d.ts create mode 100644 src/types/models/TokenUserFactor.d.ts create mode 100644 src/types/models/TokenUserFactorProfile.d.ts create mode 100644 src/types/models/TotpUserFactor.d.ts create mode 100644 src/types/models/TotpUserFactorProfile.d.ts create mode 100644 src/types/models/TrustedOrigin.d.ts create mode 100644 src/types/models/U2fUserFactor.d.ts create mode 100644 src/types/models/U2fUserFactorProfile.d.ts create mode 100644 src/types/models/User.d.ts create mode 100644 src/types/models/UserActivationToken.d.ts create mode 100644 src/types/models/UserCondition.d.ts create mode 100644 src/types/models/UserCredentials.d.ts create mode 100644 src/types/models/UserFactor.d.ts create mode 100644 src/types/models/UserIdentifierConditionEvaluatorPattern.d.ts create mode 100644 src/types/models/UserIdentifierPolicyRuleCondition.d.ts create mode 100644 src/types/models/UserIdentityProviderLinkRequest.d.ts create mode 100644 src/types/models/UserLifecycleAttributePolicyRuleCondition.d.ts create mode 100644 src/types/models/UserNextLogin.d.ts create mode 100644 src/types/models/UserPolicyRuleCondition.d.ts create mode 100644 src/types/models/UserProfile.d.ts create mode 100644 src/types/models/UserStatus.d.ts create mode 100644 src/types/models/UserStatusPolicyRuleCondition.d.ts create mode 100644 src/types/models/UserType.d.ts create mode 100644 src/types/models/VerifyFactorRequest.d.ts create mode 100644 src/types/models/VerifyUserFactorResponse.d.ts create mode 100644 src/types/models/WebAuthnUserFactor.d.ts create mode 100644 src/types/models/WebAuthnUserFactorProfile.d.ts create mode 100644 src/types/models/WebUserFactor.d.ts create mode 100644 src/types/models/WebUserFactorProfile.d.ts create mode 100644 src/types/models/WsFederationApplication.d.ts create mode 100644 src/types/models/WsFederationApplicationSettings.d.ts create mode 100644 src/types/models/WsFederationApplicationSettingsApplication.d.ts create mode 100644 src/types/oauth.d.ts create mode 100644 src/types/okta-response-headers.d.ts create mode 100644 src/types/request-executor.d.ts create mode 100644 src/types/request-options.d.ts create mode 100644 src/types/resolution-factory.d.ts create mode 100644 src/types/resource.d.ts create mode 100644 templates/.eslintrc create mode 100644 templates/factory.d.ts.hbs create mode 100644 templates/generated-client.d.ts.hbs create mode 100644 templates/model.d.ts.hbs create mode 100644 test/type/.eslintrc create mode 100644 test/type/api-error.test-d.ts create mode 100644 test/type/client.test-d.ts create mode 100644 test/type/collection.test-d.ts create mode 100644 test/type/config-loader.test-d.ts create mode 100644 test/type/default-cache-middleware.test-d.ts create mode 100644 test/type/default-request-executor.test-d.ts create mode 100644 test/type/http-error.test-d.ts create mode 100644 test/type/http.test-d.ts create mode 100644 test/type/jwt.test-d.ts create mode 100644 test/type/memory-store.test-d.ts create mode 100644 test/type/model-factory.test-d.ts create mode 100644 test/type/oauth.test-d.ts create mode 100644 test/type/okta-response-headers.test-d.ts create mode 100644 test/type/request-executor.test-d.ts create mode 100644 test/type/resolution-factory.test-d.ts create mode 100644 test/type/resource.test-d.ts diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..73e6e7bb8 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +test/jest/coverage/ diff --git a/src/.eslintrc b/.eslintrc similarity index 88% rename from src/.eslintrc rename to .eslintrc index e7e0e5c84..cec5b37ca 100644 --- a/src/.eslintrc +++ b/.eslintrc @@ -1,5 +1,5 @@ { - "parserOptions": { + "parserOptions": { "ecmaVersion": 2017 }, "rules": { @@ -68,17 +68,9 @@ "space-in-parens": [2, "never"], "space-infix-ops": 2 }, - "globals": { - "after": true, - "afterEach": true, - "before": true, - "beforeEach": true, - "describe": true, - "it": true - }, "env": { "es6": true, "node": true }, "extends": "eslint:recommended" -} +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 08f0e1a2a..8e66097d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ ## 4.5.0 -- [#220](https://github.com/okta/okta-sdk-nodejs/pull/220) Rename private instance variable +### Features + +- [#231](https://github.com/okta/okta-sdk-nodejs/pull/231) Adds TypeScript type definitions ## 4.4.0 diff --git a/package.json b/package.json index 5675f3247..fdeb0827f 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,12 @@ "README.md" ], "main": "src/index.js", + "types": "src/types/index.d.ts", "scripts": { "banners": "./utils/maintain-banners.js", "prebuild": "rimraf ./src/models ./src/factories ./src/generated-client.js", - "build": "okta-sdk-generator -t templates/ -o .", - "eslint": "eslint -c src/.eslintrc src/ && eslint -c test/.eslintrc test/it test/unit && eslint -c test/jest/.eslintrc test/jest/ && eslint -c src/.eslintrc utils/", + "build": "okta-sdk-generator -t templates/ -o . && yarn banners", + "eslint": "eslint .", "jest": "JEST_JUNIT_OUTPUT_DIR=./test-reports jest --coverage --ci --testResultsProcessor=jest-junit test/jest/*.js", "predocs": "rimraf ./jsdocs && mkdir jsdocs/ && ./utils/make-jsdoc-readme.js > ./jsdocs/jsdoc-temp.md", "docs": "./node_modules/.bin/jsdoc src/ -c ./docs/config.json -d ./jsdocs/ -P ./package.json -R ./jsdocs/jsdoc-temp.md -r", @@ -22,13 +23,15 @@ "test:integration:ssws": "MOCHA_FILE=./test-reports/it-results.xml OKTA_CLIENT_AUTHORIZATIONMODE=SSWS nyc --reporter=text --reporter=html mocha --reporter=mocha-junit-reporter --reporter-options toConsole=true --retries 2 test/it/*.js --no-timeouts", "test:integration:oauth": "OKTA_CLIENT_AUTHORIZATIONMODE=PrivateKey nyc --reporter=text --reporter=html mocha test/it/user-get.js --no-timeouts", "test:unit": "MOCHA_FILE=./test-reports/junit-results.xml nyc --reporter=text --reporter=html mocha --reporter=mocha-junit-reporter test/unit/*.js --no-timeouts", - "test": "npm run eslint && npm run test:unit && npm run test:integration && npm run jest", + "test:types": "tsd", + "test": "yarn eslint && yarn test:types && yarn test:unit && yarn test:integration && yarn jest", "aftertest": "mocha test/delete-resources.js --no-timeouts" }, "keywords": [], "license": "Apache-2.0", "repository": "https://github.com/okta/okta-sdk-nodejs", "dependencies": { + "@types/node-fetch": "^2.5.8", "deep-copy": "^1.4.2", "isomorphic-fetch": "^3.0.0", "js-yaml": "^3.14.1", @@ -41,8 +44,10 @@ }, "devDependencies": { "@okta/openapi": "^2.1.6", + "@typescript-eslint/eslint-plugin": "^4.15.2", + "@typescript-eslint/parser": "^4.15.2", "chai": "^4.2.0", - "eslint": "^7.15.0", + "eslint": "^7.20.0", "eslint-plugin-jest": "^24.1.3", "fake-fs": "^0.5.0", "faker": "^5.1.0", @@ -56,7 +61,9 @@ "nyc": "^15.1.0", "rimraf": "^3.0.2", "sinon": "^9.2.1", - "speakeasy": "^2.0.0" + "speakeasy": "^2.0.0", + "tsd": "^0.14.0", + "typescript": "^4.2.2" }, "jest": { "restoreMocks": true, @@ -64,5 +71,8 @@ "setupFiles": [ "jest-date-mock" ] + }, + "tsd": { + "directory": "test/type" } } diff --git a/src/generated-client.d.ts b/src/generated-client.d.ts new file mode 100644 index 000000000..c4022bb03 --- /dev/null +++ b/src/generated-client.d.ts @@ -0,0 +1,469 @@ +/*! + * Copyright (c) 2017-2020, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +export = GeneratedApiClient; + +declare class GeneratedApiClient { + listApplications(queryParameters: { + q: string, + after: string, + limit: string, + filter: string, + expand: string, + includeNonDeleted: string, + }): Promise; + createApplication(application: Application, queryParameters: { + activate: string, + }): Promise; + deleteApplication(appId: string): undefined; + getApplication(appId: string, queryParameters: { + expand: string, + }): Promise; + updateApplication(appId: string, application: Application): Promise; + listCsrsForApplication(appId: string): Promise; + generateCsrForApplication(appId: string, csrMetadata: CsrMetadata): Promise; + revokeCsrFromApplication(appId: string, csrId: string): undefined; + getCsrForApplication(appId: string, csrId: string): Promise; + publishCerCert(appId: string, csrId: string, certificate: string): Promise; + publishBinaryCerCert(appId: string, csrId: string, certificate: string): Promise; + publishDerCert(appId: string, csrId: string, certificate: string): Promise; + publishBinaryDerCert(appId: string, csrId: string, certificate: string): Promise; + publishBinaryPemCert(appId: string, csrId: string, certificate: string): Promise; + listApplicationKeys(appId: string): Promise; + generateApplicationKey(appId: string, queryParameters: { + validityYears: string, + }): Promise; + getApplicationKey(appId: string, keyId: string): Promise; + cloneApplicationKey(appId: string, keyId: string, queryParameters: { + targetAid: string, + }): Promise; + listScopeConsentGrants(appId: string, queryParameters: { + expand: string, + }): Promise; + grantConsentToScope(appId: string, oAuth2ScopeConsentGrant: OAuth2ScopeConsentGrant): Promise; + revokeScopeConsentGrant(appId: string, grantId: string): undefined; + getScopeConsentGrant(appId: string, grantId: string, queryParameters: { + expand: string, + }): Promise; + listApplicationGroupAssignments(appId: string, queryParameters: { + q: string, + after: string, + limit: string, + expand: string, + }): Promise; + deleteApplicationGroupAssignment(appId: string, groupId: string): undefined; + getApplicationGroupAssignment(appId: string, groupId: string, queryParameters: { + expand: string, + }): Promise; + createApplicationGroupAssignment(appId: string, groupId: string, applicationGroupAssignment: ApplicationGroupAssignment): Promise; + activateApplication(appId: string): undefined; + deactivateApplication(appId: string): undefined; + revokeOAuth2TokensForApplication(appId: string): undefined; + listOAuth2TokensForApplication(appId: string, queryParameters: { + expand: string, + after: string, + limit: string, + }): Promise; + revokeOAuth2TokenForApplication(appId: string, tokenId: string): undefined; + getOAuth2TokenForApplication(appId: string, tokenId: string, queryParameters: { + expand: string, + }): Promise; + listApplicationUsers(appId: string, queryParameters: { + q: string, + query_scope: string, + after: string, + limit: string, + filter: string, + expand: string, + }): Promise; + assignUserToApplication(appId: string, appUser: AppUser): Promise; + deleteApplicationUser(appId: string, userId: string, queryParameters: { + sendEmail: string, + }): undefined; + getApplicationUser(appId: string, userId: string, queryParameters: { + expand: string, + }): Promise; + updateApplicationUser(appId: string, userId: string, appUser: AppUser): Promise; + listAuthorizationServers(queryParameters: { + q: string, + limit: string, + after: string, + }): Promise; + createAuthorizationServer(authorizationServer: AuthorizationServer): Promise; + deleteAuthorizationServer(authServerId: string): undefined; + getAuthorizationServer(authServerId: string): Promise; + updateAuthorizationServer(authServerId: string, authorizationServer: AuthorizationServer): Promise; + listOAuth2Claims(authServerId: string): Promise; + createOAuth2Claim(authServerId: string, oAuth2Claim: OAuth2Claim): Promise; + deleteOAuth2Claim(authServerId: string, claimId: string): undefined; + getOAuth2Claim(authServerId: string, claimId: string): Promise; + updateOAuth2Claim(authServerId: string, claimId: string, oAuth2Claim: OAuth2Claim): Promise; + listOAuth2ClientsForAuthorizationServer(authServerId: string): Promise; + revokeRefreshTokensForAuthorizationServerAndClient(authServerId: string, clientId: string): undefined; + listRefreshTokensForAuthorizationServerAndClient(authServerId: string, clientId: string, queryParameters: { + expand: string, + after: string, + limit: string, + }): Promise; + revokeRefreshTokenForAuthorizationServerAndClient(authServerId: string, clientId: string, tokenId: string): undefined; + getRefreshTokenForAuthorizationServerAndClient(authServerId: string, clientId: string, tokenId: string, queryParameters: { + expand: string, + }): Promise; + listAuthorizationServerKeys(authServerId: string): Promise; + rotateAuthorizationServerKeys(authServerId: string): Promise; + activateAuthorizationServer(authServerId: string): undefined; + deactivateAuthorizationServer(authServerId: string): undefined; + listAuthorizationServerPolicies(authServerId: string): Promise; + createAuthorizationServerPolicy(authServerId: string, authorizationServerPolicy: AuthorizationServerPolicy): Promise; + deleteAuthorizationServerPolicy(authServerId: string, policyId: string): undefined; + getAuthorizationServerPolicy(authServerId: string, policyId: string): Promise; + updateAuthorizationServerPolicy(authServerId: string, policyId: string, authorizationServerPolicy: AuthorizationServerPolicy): Promise; + listAuthorizationServerPolicyRules(policyId: string, authServerId: string): Promise; + createAuthorizationServerPolicyRule(policyId: string, authServerId: string, authorizationServerPolicyRule: AuthorizationServerPolicyRule): Promise; + deleteAuthorizationServerPolicyRule(policyId: string, authServerId: string, ruleId: string): undefined; + getAuthorizationServerPolicyRule(policyId: string, authServerId: string, ruleId: string): Promise; + updateAuthorizationServerPolicyRule(policyId: string, authServerId: string, ruleId: string, authorizationServerPolicyRule: AuthorizationServerPolicyRule): Promise; + listOAuth2Scopes(authServerId: string, queryParameters: { + q: string, + filter: string, + cursor: string, + limit: string, + }): Promise; + createOAuth2Scope(authServerId: string, oAuth2Scope: OAuth2Scope): Promise; + deleteOAuth2Scope(authServerId: string, scopeId: string): undefined; + getOAuth2Scope(authServerId: string, scopeId: string): Promise; + updateOAuth2Scope(authServerId: string, scopeId: string, oAuth2Scope: OAuth2Scope): Promise; + listEventHooks(): Promise; + createEventHook(eventHook: EventHook): Promise; + deleteEventHook(eventHookId: string): undefined; + getEventHook(eventHookId: string): Promise; + updateEventHook(eventHookId: string, eventHook: EventHook): Promise; + activateEventHook(eventHookId: string): Promise; + deactivateEventHook(eventHookId: string): Promise; + verifyEventHook(eventHookId: string): Promise; + listFeatures(): Promise; + getFeature(featureId: string): Promise; + listFeatureDependencies(featureId: string): Promise; + listFeatureDependents(featureId: string): Promise; + updateFeatureLifecycle(featureId: string, lifecycle: string, queryParameters: { + mode: string, + }): Promise; + listGroups(queryParameters: { + q: string, + filter: string, + after: string, + limit: string, + expand: string, + }): Promise; + createGroup(group: Group): Promise; + listGroupRules(queryParameters: { + limit: string, + after: string, + search: string, + expand: string, + }): Promise; + createGroupRule(groupRule: GroupRule): Promise; + deleteGroupRule(ruleId: string): undefined; + getGroupRule(ruleId: string, queryParameters: { + expand: string, + }): Promise; + updateGroupRule(ruleId: string, groupRule: GroupRule): Promise; + activateGroupRule(ruleId: string): undefined; + deactivateGroupRule(ruleId: string): undefined; + deleteGroup(groupId: string): undefined; + getGroup(groupId: string): Promise; + updateGroup(groupId: string, group: Group): Promise; + listAssignedApplicationsForGroup(groupId: string, queryParameters: { + after: string, + limit: string, + }): Promise; + listGroupAssignedRoles(groupId: string, queryParameters: { + expand: string, + }): Promise; + assignRoleToGroup(groupId: string, assignRoleRequest: AssignRoleRequest, queryParameters: { + disableNotifications: string, + }): Promise; + removeRoleFromGroup(groupId: string, roleId: string): undefined; + getRole(groupId: string, roleId: string): Promise; + listApplicationTargetsForApplicationAdministratorRoleForGroup(groupId: string, roleId: string, queryParameters: { + after: string, + limit: string, + }): Promise; + removeApplicationTargetFromApplicationAdministratorRoleGivenToGroup(groupId: string, roleId: string, appName: string): undefined; + addApplicationTargetToAdminRoleGivenToGroup(groupId: string, roleId: string, appName: string): undefined; + removeApplicationTargetFromAdministratorRoleGivenToGroup(groupId: string, roleId: string, appName: string, applicationId: string): undefined; + addApplicationInstanceTargetToAppAdminRoleGivenToGroup(groupId: string, roleId: string, appName: string, applicationId: string): undefined; + listGroupTargetsForGroupRole(groupId: string, roleId: string, queryParameters: { + after: string, + limit: string, + }): Promise; + removeGroupTargetFromGroupAdministratorRoleGivenToGroup(groupId: string, roleId: string, targetGroupId: string): undefined; + addGroupTargetToGroupAdministratorRoleForGroup(groupId: string, roleId: string, targetGroupId: string): undefined; + listGroupUsers(groupId: string, queryParameters: { + after: string, + limit: string, + }): Promise; + removeUserFromGroup(groupId: string, userId: string): undefined; + addUserToGroup(groupId: string, userId: string): undefined; + listIdentityProviders(queryParameters: { + q: string, + after: string, + limit: string, + type: string, + }): Promise; + createIdentityProvider(identityProvider: IdentityProvider): Promise; + listIdentityProviderKeys(queryParameters: { + after: string, + limit: string, + }): Promise; + createIdentityProviderKey(jsonWebKey: JsonWebKey): Promise; + deleteIdentityProviderKey(keyId: string): undefined; + getIdentityProviderKey(keyId: string): Promise; + deleteIdentityProvider(idpId: string): undefined; + getIdentityProvider(idpId: string): Promise; + updateIdentityProvider(idpId: string, identityProvider: IdentityProvider): Promise; + listCsrsForIdentityProvider(idpId: string): Promise; + generateCsrForIdentityProvider(idpId: string, csrMetadata: CsrMetadata): Promise; + revokeCsrForIdentityProvider(idpId: string, csrId: string): undefined; + getCsrForIdentityProvider(idpId: string, csrId: string): Promise; + publishCerCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + publishBinaryCerCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + publishDerCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + publishBinaryDerCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + publishBinaryPemCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + listIdentityProviderSigningKeys(idpId: string): Promise; + generateIdentityProviderSigningKey(idpId: string, queryParameters: { + validityYears: string, + }): Promise; + getIdentityProviderSigningKey(idpId: string, keyId: string): Promise; + cloneIdentityProviderKey(idpId: string, keyId: string, queryParameters: { + targetIdpId: string, + }): Promise; + activateIdentityProvider(idpId: string): Promise; + deactivateIdentityProvider(idpId: string): Promise; + listIdentityProviderApplicationUsers(idpId: string): Promise; + unlinkUserFromIdentityProvider(idpId: string, userId: string): undefined; + getIdentityProviderApplicationUser(idpId: string, userId: string): Promise; + linkUserToIdentityProvider(idpId: string, userId: string, userIdentityProviderLinkRequest: UserIdentityProviderLinkRequest): Promise; + listSocialAuthTokens(idpId: string, userId: string): Promise; + listInlineHooks(queryParameters: { + type: string, + }): Promise; + createInlineHook(inlineHook: InlineHook): Promise; + deleteInlineHook(inlineHookId: string): undefined; + getInlineHook(inlineHookId: string): Promise; + updateInlineHook(inlineHookId: string, inlineHook: InlineHook): Promise; + executeInlineHook(inlineHookId: string, inlineHookPayload: InlineHookPayload): Promise; + activateInlineHook(inlineHookId: string): Promise; + deactivateInlineHook(inlineHookId: string): Promise; + getLogs(queryParameters: { + since: string, + until: string, + filter: string, + q: string, + limit: string, + sortOrder: string, + after: string, + }): Promise; + listLinkedObjectDefinitions(): Promise; + addLinkedObjectDefinition(linkedObject: LinkedObject): Promise; + deleteLinkedObjectDefinition(linkedObjectName: string): undefined; + getLinkedObjectDefinition(linkedObjectName: string): Promise; + listUserTypes(): Promise; + createUserType(userType: UserType): Promise; + deleteUserType(typeId: string): undefined; + getUserType(typeId: string): Promise; + updateUserType(typeId: string, userType: UserType): Promise; + replaceUserType(typeId: string, userType: UserType): Promise; + listPolicies(queryParameters: { + type: string, + status: string, + expand: string, + }): Promise; + createPolicy(policy: Policy, queryParameters: { + activate: string, + }): Promise; + deletePolicy(policyId: string): undefined; + getPolicy(policyId: string, queryParameters: { + expand: string, + }): Promise; + updatePolicy(policyId: string, policy: Policy): Promise; + activatePolicy(policyId: string): undefined; + deactivatePolicy(policyId: string): undefined; + listPolicyRules(policyId: string): Promise; + createPolicyRule(policyId: string, policyRule: PolicyRule): Promise; + deletePolicyRule(policyId: string, ruleId: string): undefined; + getPolicyRule(policyId: string, ruleId: string): Promise; + updatePolicyRule(policyId: string, ruleId: string, policyRule: PolicyRule): Promise; + activatePolicyRule(policyId: string, ruleId: string): undefined; + deactivatePolicyRule(policyId: string, ruleId: string): undefined; + createSession(createSessionRequest: CreateSessionRequest): Promise; + endSession(sessionId: string): undefined; + getSession(sessionId: string): Promise; + refreshSession(sessionId: string): Promise; + listSmsTemplates(queryParameters: { + templateType: string, + }): Promise; + createSmsTemplate(smsTemplate: SmsTemplate): Promise; + deleteSmsTemplate(templateId: string): undefined; + getSmsTemplate(templateId: string): Promise; + partialUpdateSmsTemplate(templateId: string, smsTemplate: SmsTemplate): Promise; + updateSmsTemplate(templateId: string, smsTemplate: SmsTemplate): Promise; + listOrigins(queryParameters: { + q: string, + filter: string, + after: string, + limit: string, + }): Promise; + createOrigin(trustedOrigin: TrustedOrigin): Promise; + deleteOrigin(trustedOriginId: string): undefined; + getOrigin(trustedOriginId: string): Promise; + updateOrigin(trustedOriginId: string, trustedOrigin: TrustedOrigin): Promise; + activateOrigin(trustedOriginId: string): Promise; + deactivateOrigin(trustedOriginId: string): Promise; + listUsers(queryParameters: { + q: string, + after: string, + limit: string, + filter: string, + search: string, + sortBy: string, + sortOrder: string, + }): Promise; + createUser(createUserRequest: CreateUserRequest, queryParameters: { + activate: string, + provider: string, + nextLogin: string, + }): Promise; + setLinkedObjectForUser(associatedUserId: string, primaryRelationshipName: string, primaryUserId: string): undefined; + deactivateOrDeleteUser(userId: string, queryParameters: { + sendEmail: string, + }): undefined; + getUser(userId: string): Promise; + partialUpdateUser(userId: string, user: User, queryParameters: { + strict: string, + }): Promise; + updateUser(userId: string, user: User, queryParameters: { + strict: string, + }): Promise; + listAppLinks(userId: string): Promise; + listUserClients(userId: string): Promise; + revokeGrantsForUserAndClient(userId: string, clientId: string): undefined; + listGrantsForUserAndClient(userId: string, clientId: string, queryParameters: { + expand: string, + after: string, + limit: string, + }): Promise; + revokeTokensForUserAndClient(userId: string, clientId: string): undefined; + listRefreshTokensForUserAndClient(userId: string, clientId: string, queryParameters: { + expand: string, + after: string, + limit: string, + }): Promise; + revokeTokenForUserAndClient(userId: string, clientId: string, tokenId: string): undefined; + getRefreshTokenForUserAndClient(userId: string, clientId: string, tokenId: string, queryParameters: { + expand: string, + limit: string, + after: string, + }): Promise; + changePassword(userId: string, changePasswordRequest: ChangePasswordRequest, queryParameters: { + strict: string, + }): Promise; + changeRecoveryQuestion(userId: string, userCredentials: UserCredentials): Promise; + forgotPasswordGenerateOneTimeToken(userId: string, queryParameters: { + sendEmail: string, + }): Promise; + forgotPasswordSetNewPassword(userId: string, userCredentials: UserCredentials, queryParameters: { + sendEmail: string, + }): Promise; + listFactors(userId: string): Promise; + enrollFactor(userId: string, userFactor: UserFactor, queryParameters: { + updatePhone: string, + templateId: string, + tokenLifetimeSeconds: string, + activate: string, + }): Promise; + listSupportedFactors(userId: string): Promise; + listSupportedSecurityQuestions(userId: string): Promise; + deleteFactor(userId: string, factorId: string): undefined; + getFactor(userId: string, factorId: string): Promise; + activateFactor(userId: string, factorId: string, activateFactorRequest: ActivateFactorRequest): Promise; + getFactorTransactionStatus(userId: string, factorId: string, transactionId: string): Promise; + verifyFactor(userId: string, factorId: string, verifyFactorRequest: VerifyFactorRequest, queryParameters: { + templateId: string, + tokenLifetimeSeconds: string, + }): Promise; + revokeUserGrants(userId: string): undefined; + listUserGrants(userId: string, queryParameters: { + scopeId: string, + expand: string, + after: string, + limit: string, + }): Promise; + revokeUserGrant(userId: string, grantId: string): undefined; + getUserGrant(userId: string, grantId: string, queryParameters: { + expand: string, + }): Promise; + listUserGroups(userId: string): Promise; + listUserIdentityProviders(userId: string): Promise; + activateUser(userId: string, queryParameters: { + sendEmail: string, + }): Promise; + deactivateUser(userId: string, queryParameters: { + sendEmail: string, + }): undefined; + expirePassword(userId: string): Promise; + expirePasswordAndGetTemporaryPassword(userId: string): Promise; + reactivateUser(userId: string, queryParameters: { + sendEmail: string, + }): Promise; + resetFactors(userId: string): undefined; + resetPassword(userId: string, queryParameters: { + sendEmail: string, + }): Promise; + suspendUser(userId: string): undefined; + unlockUser(userId: string): undefined; + unsuspendUser(userId: string): undefined; + removeLinkedObjectForUser(userId: string, relationshipName: string): undefined; + getLinkedObjectsForUser(userId: string, relationshipName: string, queryParameters: { + after: string, + limit: string, + }): Promise; + listAssignedRolesForUser(userId: string, queryParameters: { + expand: string, + }): Promise; + assignRoleToUser(userId: string, assignRoleRequest: AssignRoleRequest, queryParameters: { + disableNotifications: string, + }): Promise; + removeRoleFromUser(userId: string, roleId: string): undefined; + listApplicationTargetsForApplicationAdministratorRoleForUser(userId: string, roleId: string, queryParameters: { + after: string, + limit: string, + }): Promise; + addAllAppsAsTargetToRole(userId: string, roleId: string): undefined; + removeApplicationTargetFromApplicationAdministratorRoleForUser(userId: string, roleId: string, appName: string): undefined; + addApplicationTargetToAdminRoleForUser(userId: string, roleId: string, appName: string): undefined; + removeApplicationTargetFromAdministratorRoleForUser(userId: string, roleId: string, appName: string, applicationId: string): undefined; + addApplicationTargetToAppAdminRoleForUser(userId: string, roleId: string, appName: string, applicationId: string): undefined; + listGroupTargetsForRole(userId: string, roleId: string, queryParameters: { + after: string, + limit: string, + }): Promise; + removeGroupTargetFromRole(userId: string, roleId: string, groupId: string): undefined; + addGroupTargetToRole(userId: string, roleId: string, groupId: string): undefined; + clearUserSessions(userId: string, queryParameters: { + oauthTokens: string, + }): undefined; +} + +module.exports = GeneratedApiClient; diff --git a/src/types/.eslintrc b/src/types/.eslintrc new file mode 100644 index 000000000..2a12cacf4 --- /dev/null +++ b/src/types/.eslintrc @@ -0,0 +1,21 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "sourceType": "module" + }, + "rules": { + "new-cap": [ + 2, + { + "capIsNew": false, + "properties": false + } + ] + }, + "plugins": [ + "@typescript-eslint" + ], + "extends": [ + "plugin:@typescript-eslint/recommended" + ] +} diff --git a/src/types/api-error.d.ts b/src/types/api-error.d.ts new file mode 100644 index 000000000..1777d8edc --- /dev/null +++ b/src/types/api-error.d.ts @@ -0,0 +1,30 @@ + +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ +import { Headers } from 'node-fetch'; + +declare class OktaApiError extends Error { + constructor(url: string, status: number, responseBody: Record, headers: Headers); + name: string; + status: number; + errorCode: string | number; + errorSummary: string; + errorCauses: string; + errorLink: string; + errorId: string; + url: string; + headers: Headers; + stack: string; + message: string; +} + +export default OktaApiError; diff --git a/src/types/client.d.ts b/src/types/client.d.ts new file mode 100644 index 000000000..729bdeee3 --- /dev/null +++ b/src/types/client.d.ts @@ -0,0 +1,46 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import GeneratedApiClient from './generated-client'; +import Oauth from './oauth'; +import Http from './http'; +import { IRequestExecutor } from './request-executor'; +import defaultCacheMiddleware from './default-cache-middleware'; +import { CacheStorage } from './memory-store'; + +interface ConfigProperties { + orgUrl?: string, + token?: string, + clientId?: string, + scopes?: string[], + requestExecutor?: IRequestExecutor, + authorizationMode?: string, + privateKey?: string | Record + cacheStore?: CacheStorage, + cacheMiddleware?: typeof defaultCacheMiddleware | unknown +} + +declare class Client extends GeneratedApiClient { + constructor(config?: ConfigProperties); + + requestExecutor: IRequestExecutor; + authorizationMode: string; + baseUrl: string; + apiToken: string; + clientId: string; + scopes: string[]; + privateKey: string; + oauth: Oauth; + http: Http; +} + +export default Client; diff --git a/src/types/collection.d.ts b/src/types/collection.d.ts new file mode 100644 index 000000000..5c27152b0 --- /dev/null +++ b/src/types/collection.d.ts @@ -0,0 +1,48 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import RequestOptions from './request-options'; +import ModelFactory from './model-factory'; +import ModelResolutionFactory from './resolution-factory'; +import Client from './client'; + +declare class Collection { + constructor(client: Client, uri: string, factory: ModelFactory | ModelResolutionFactory, request?: RequestOptions); + + nextUri: string; + client: Client; + factory: ModelFactory | ModelResolutionFactory; + currentItems: Record[]; + request: RequestOptions; + next(): Promise<{ + done: boolean, + value: T | null + }>; + [Symbol.asyncIterator](): { + next: () => Promise<{ + done: boolean, + value: T | null + }>; + }; + getNextPage(): Promise>; + each(iterator: (item: T) => Promise | boolean | unknown): Promise; + subscribe(config: { + interval: number; + next: (item: T) => unknown | Promise; + error: (e: Error) => unknown | Promise; + complete: () => void; + }): { + unsubscribe(): void; + }; +} + +export default Collection; diff --git a/src/types/config-loader.d.ts b/src/types/config-loader.d.ts new file mode 100644 index 000000000..48b90c1c4 --- /dev/null +++ b/src/types/config-loader.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +declare class ConfigLoader { + prefix: string; + config: { + client: { + authorizationMode: string; + orgUrl: string; + token: string; + clientId: string; + scopes: string; + privateKey: string; + }; + }; + applyDefaults(): void; + applyEnvVars(): void; + applyYamlFile(path: string): void; + apply(config: Record): void; +} + +export default ConfigLoader; diff --git a/src/types/default-cache-middleware.d.ts b/src/types/default-cache-middleware.d.ts new file mode 100644 index 000000000..737df32a4 --- /dev/null +++ b/src/types/default-cache-middleware.d.ts @@ -0,0 +1,25 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import { Response } from 'node-fetch'; +import { CacheStorage } from './memory-store'; +import RequestOptions from './request-options'; + +declare function defaultCacheMiddleware(ctx: { + isCollection?: boolean, + resources?: string[], + res?: Response, + req: RequestOptions, + cacheStore: CacheStorage, +}, next: () => unknown): Promise; + +export default defaultCacheMiddleware; diff --git a/src/types/default-request-executor.d.ts b/src/types/default-request-executor.d.ts new file mode 100644 index 000000000..1b058c6d0 --- /dev/null +++ b/src/types/default-request-executor.d.ts @@ -0,0 +1,39 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import { Response } from 'node-fetch'; +import RequestExecutor from './request-executor'; +import RequestOptions from './request-options'; + + +declare class DefaultRequestExecutor extends RequestExecutor { + constructor(config?: { + maxRetries: number, + requestTimeout: number, + }); + + requestTimeout: number; + maxRetries: number; + retryCountHeader: string; + retryForHeader: string; + buildRetryRequest(request: RequestOptions, requestId: string, delayMs: number): RequestOptions; + validateRetryResponseHeaders(response: Response): boolean; + getOktaRequestId(response: Response): string; + getRateLimitReset(response: Response): string; + getResponseDate(response: Response): string; + getRetryDelayMs(response: Response): number; + parseResponse(request: RequestOptions, response: Response): Response | Promise; + maxRetriesReached(request: RequestOptions): boolean; + retryRequest(request: RequestOptions, response: Response, delayMs: number): Promise; +} + +export default DefaultRequestExecutor; diff --git a/src/types/factories/ApplicationFactory.d.ts b/src/types/factories/ApplicationFactory.d.ts new file mode 100644 index 000000000..7abab69fe --- /dev/null +++ b/src/types/factories/ApplicationFactory.d.ts @@ -0,0 +1,21 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import ModelResolutionFactory from '../resolution-factory'; + +declare class ApplicationFactory extends ModelResolutionFactory { +} + +export default ApplicationFactory; diff --git a/src/types/factories/BrowserPluginApplicationFactory.d.ts b/src/types/factories/BrowserPluginApplicationFactory.d.ts new file mode 100644 index 000000000..71140be35 --- /dev/null +++ b/src/types/factories/BrowserPluginApplicationFactory.d.ts @@ -0,0 +1,21 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import ModelResolutionFactory from '../resolution-factory'; + +declare class BrowserPluginApplicationFactory extends ModelResolutionFactory { +} + +export default BrowserPluginApplicationFactory; diff --git a/src/types/factories/PolicyFactory.d.ts b/src/types/factories/PolicyFactory.d.ts new file mode 100644 index 000000000..2ffee38c9 --- /dev/null +++ b/src/types/factories/PolicyFactory.d.ts @@ -0,0 +1,21 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import ModelResolutionFactory from '../resolution-factory'; + +declare class PolicyFactory extends ModelResolutionFactory { +} + +export default PolicyFactory; diff --git a/src/types/factories/PolicyRuleFactory.d.ts b/src/types/factories/PolicyRuleFactory.d.ts new file mode 100644 index 000000000..8cefe70a2 --- /dev/null +++ b/src/types/factories/PolicyRuleFactory.d.ts @@ -0,0 +1,21 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import ModelResolutionFactory from '../resolution-factory'; + +declare class PolicyRuleFactory extends ModelResolutionFactory { +} + +export default PolicyRuleFactory; diff --git a/src/types/factories/UserFactorFactory.d.ts b/src/types/factories/UserFactorFactory.d.ts new file mode 100644 index 000000000..40cd03ab0 --- /dev/null +++ b/src/types/factories/UserFactorFactory.d.ts @@ -0,0 +1,21 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import ModelResolutionFactory from '../resolution-factory'; + +declare class UserFactorFactory extends ModelResolutionFactory { +} + +export default UserFactorFactory; diff --git a/src/types/generated-client.d.ts b/src/types/generated-client.d.ts new file mode 100644 index 000000000..5a5d21769 --- /dev/null +++ b/src/types/generated-client.d.ts @@ -0,0 +1,526 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Collection from './collection'; +import { Application } from './models/Application'; +import { Response } from 'node-fetch'; +import { Csr } from './models/Csr'; +import { CsrMetadata } from './models/CsrMetadata'; +import { JsonWebKey } from './models/JsonWebKey'; +import { OAuth2ScopeConsentGrant } from './models/OAuth2ScopeConsentGrant'; +import { ApplicationGroupAssignment } from './models/ApplicationGroupAssignment'; +import { OAuth2Token } from './models/OAuth2Token'; +import { AppUser } from './models/AppUser'; +import { AuthorizationServer } from './models/AuthorizationServer'; +import { OAuth2Claim } from './models/OAuth2Claim'; +import { OAuth2Client } from './models/OAuth2Client'; +import { OAuth2RefreshToken } from './models/OAuth2RefreshToken'; +import { JwkUse } from './models/JwkUse'; +import { AuthorizationServerPolicy } from './models/AuthorizationServerPolicy'; +import { AuthorizationServerPolicyRule } from './models/AuthorizationServerPolicyRule'; +import { OAuth2Scope } from './models/OAuth2Scope'; +import { EventHook } from './models/EventHook'; +import { Feature } from './models/Feature'; +import { Group } from './models/Group'; +import { GroupRule } from './models/GroupRule'; +import { Role } from './models/Role'; +import { AssignRoleRequest } from './models/AssignRoleRequest'; +import { CatalogApplication } from './models/CatalogApplication'; +import { User } from './models/User'; +import { IdentityProvider } from './models/IdentityProvider'; +import { IdentityProviderApplicationUser } from './models/IdentityProviderApplicationUser'; +import { UserIdentityProviderLinkRequest } from './models/UserIdentityProviderLinkRequest'; +import { SocialAuthToken } from './models/SocialAuthToken'; +import { InlineHook } from './models/InlineHook'; +import { InlineHookPayload } from './models/InlineHookPayload'; +import { InlineHookResponse } from './models/InlineHookResponse'; +import { LogEvent } from './models/LogEvent'; +import { LinkedObject } from './models/LinkedObject'; +import { UserType } from './models/UserType'; +import { Policy } from './models/Policy'; +import { PolicyRule } from './models/PolicyRule'; +import { CreateSessionRequest } from './models/CreateSessionRequest'; +import { Session } from './models/Session'; +import { SmsTemplate } from './models/SmsTemplate'; +import { TrustedOrigin } from './models/TrustedOrigin'; +import { CreateUserRequest } from './models/CreateUserRequest'; +import { AppLink } from './models/AppLink'; +import { ChangePasswordRequest } from './models/ChangePasswordRequest'; +import { UserCredentials } from './models/UserCredentials'; +import { ForgotPasswordResponse } from './models/ForgotPasswordResponse'; +import { UserFactor } from './models/UserFactor'; +import { SecurityQuestion } from './models/SecurityQuestion'; +import { ActivateFactorRequest } from './models/ActivateFactorRequest'; +import { VerifyUserFactorResponse } from './models/VerifyUserFactorResponse'; +import { VerifyFactorRequest } from './models/VerifyFactorRequest'; +import { UserActivationToken } from './models/UserActivationToken'; +import { TempPassword } from './models/TempPassword'; +import { ResetPasswordToken } from './models/ResetPasswordToken'; +import { ResponseLinks } from './models/ResponseLinks'; + +declare class GeneratedApiClient { + listApplications(queryParameters?: { + q?: string, + after?: string, + limit?: number, + filter?: string, + expand?: string, + includeNonDeleted?: boolean, + }): Collection; + createApplication(application: Application, queryParameters?: { + activate?: boolean, + }): Promise; + deleteApplication(appId: string): Promise; + getApplication(appId: string, queryParameters?: { + expand?: string, + }): Promise; + updateApplication(appId: string, application: Application): Promise; + listCsrsForApplication(appId: string): Collection; + generateCsrForApplication(appId: string, csrMetadata: CsrMetadata): Promise; + revokeCsrFromApplication(appId: string, csrId: string): Promise; + getCsrForApplication(appId: string, csrId: string): Promise; + publishCerCert(appId: string, csrId: string, certificate: string): Promise; + publishBinaryCerCert(appId: string, csrId: string, certificate: string): Promise; + publishDerCert(appId: string, csrId: string, certificate: string): Promise; + publishBinaryDerCert(appId: string, csrId: string, certificate: string): Promise; + publishBinaryPemCert(appId: string, csrId: string, certificate: string): Promise; + listApplicationKeys(appId: string): Collection; + generateApplicationKey(appId: string, queryParameters?: { + validityYears?: number, + }): Promise; + getApplicationKey(appId: string, keyId: string): Promise; + cloneApplicationKey(appId: string, keyId: string, queryParameters: { + targetAid: string, + }): Promise; + listScopeConsentGrants(appId: string, queryParameters?: { + expand?: string, + }): Collection; + grantConsentToScope(appId: string, oAuth2ScopeConsentGrant: OAuth2ScopeConsentGrant): Promise; + revokeScopeConsentGrant(appId: string, grantId: string): Promise; + getScopeConsentGrant(appId: string, grantId: string, queryParameters?: { + expand?: string, + }): Promise; + listApplicationGroupAssignments(appId: string, queryParameters?: { + q?: string, + after?: string, + limit?: number, + expand?: string, + }): Collection; + deleteApplicationGroupAssignment(appId: string, groupId: string): Promise; + getApplicationGroupAssignment(appId: string, groupId: string, queryParameters?: { + expand?: string, + }): Promise; + createApplicationGroupAssignment(appId: string, groupId: string, applicationGroupAssignment: ApplicationGroupAssignment): Promise; + activateApplication(appId: string): Promise; + deactivateApplication(appId: string): Promise; + revokeOAuth2TokensForApplication(appId: string): Promise; + listOAuth2TokensForApplication(appId: string, queryParameters?: { + expand?: string, + after?: string, + limit?: number, + }): Collection; + revokeOAuth2TokenForApplication(appId: string, tokenId: string): Promise; + getOAuth2TokenForApplication(appId: string, tokenId: string, queryParameters?: { + expand?: string, + }): Promise; + listApplicationUsers(appId: string, queryParameters?: { + q?: string, + query_scope?: string, + after?: string, + limit?: number, + filter?: string, + expand?: string, + }): Collection; + assignUserToApplication(appId: string, appUser: AppUser): Promise; + deleteApplicationUser(appId: string, userId: string, queryParameters?: { + sendEmail?: boolean, + }): Promise; + getApplicationUser(appId: string, userId: string, queryParameters?: { + expand?: string, + }): Promise; + updateApplicationUser(appId: string, userId: string, appUser: AppUser): Promise; + listAuthorizationServers(queryParameters?: { + q?: string, + limit?: string, + after?: string, + }): Collection; + createAuthorizationServer(authorizationServer: AuthorizationServer): Promise; + deleteAuthorizationServer(authServerId: string): Promise; + getAuthorizationServer(authServerId: string): Promise; + updateAuthorizationServer(authServerId: string, authorizationServer: AuthorizationServer): Promise; + listOAuth2Claims(authServerId: string): Collection; + createOAuth2Claim(authServerId: string, oAuth2Claim: OAuth2Claim): Promise; + deleteOAuth2Claim(authServerId: string, claimId: string): Promise; + getOAuth2Claim(authServerId: string, claimId: string): Promise; + updateOAuth2Claim(authServerId: string, claimId: string, oAuth2Claim: OAuth2Claim): Promise; + listOAuth2ClientsForAuthorizationServer(authServerId: string): Collection; + revokeRefreshTokensForAuthorizationServerAndClient(authServerId: string, clientId: string): Promise; + listRefreshTokensForAuthorizationServerAndClient(authServerId: string, clientId: string, queryParameters?: { + expand?: string, + after?: string, + limit?: number, + }): Collection; + revokeRefreshTokenForAuthorizationServerAndClient(authServerId: string, clientId: string, tokenId: string): Promise; + getRefreshTokenForAuthorizationServerAndClient(authServerId: string, clientId: string, tokenId: string, queryParameters?: { + expand?: string, + }): Promise; + listAuthorizationServerKeys(authServerId: string): Collection; + rotateAuthorizationServerKeys(authServerId: string, jwkUse: JwkUse): Collection; + activateAuthorizationServer(authServerId: string): Promise; + deactivateAuthorizationServer(authServerId: string): Promise; + listAuthorizationServerPolicies(authServerId: string): Collection; + createAuthorizationServerPolicy(authServerId: string, authorizationServerPolicy: AuthorizationServerPolicy): Promise; + deleteAuthorizationServerPolicy(authServerId: string, policyId: string): Promise; + getAuthorizationServerPolicy(authServerId: string, policyId: string): Promise; + updateAuthorizationServerPolicy(authServerId: string, policyId: string, authorizationServerPolicy: AuthorizationServerPolicy): Promise; + listAuthorizationServerPolicyRules(policyId: string, authServerId: string): Collection; + createAuthorizationServerPolicyRule(policyId: string, authServerId: string, authorizationServerPolicyRule: AuthorizationServerPolicyRule): Promise; + deleteAuthorizationServerPolicyRule(policyId: string, authServerId: string, ruleId: string): Promise; + getAuthorizationServerPolicyRule(policyId: string, authServerId: string, ruleId: string): Promise; + updateAuthorizationServerPolicyRule(policyId: string, authServerId: string, ruleId: string, authorizationServerPolicyRule: AuthorizationServerPolicyRule): Promise; + listOAuth2Scopes(authServerId: string, queryParameters?: { + q?: string, + filter?: string, + cursor?: string, + limit?: number, + }): Collection; + createOAuth2Scope(authServerId: string, oAuth2Scope: OAuth2Scope): Promise; + deleteOAuth2Scope(authServerId: string, scopeId: string): Promise; + getOAuth2Scope(authServerId: string, scopeId: string): Promise; + updateOAuth2Scope(authServerId: string, scopeId: string, oAuth2Scope: OAuth2Scope): Promise; + listEventHooks(): Collection; + createEventHook(eventHook: EventHook): Promise; + deleteEventHook(eventHookId: string): Promise; + getEventHook(eventHookId: string): Promise; + updateEventHook(eventHookId: string, eventHook: EventHook): Promise; + activateEventHook(eventHookId: string): Promise; + deactivateEventHook(eventHookId: string): Promise; + verifyEventHook(eventHookId: string): Promise; + listFeatures(): Collection; + getFeature(featureId: string): Promise; + listFeatureDependencies(featureId: string): Collection; + listFeatureDependents(featureId: string): Collection; + updateFeatureLifecycle(featureId: string, lifecycle: string, queryParameters?: { + mode?: string, + }): Promise; + listGroups(queryParameters?: { + q?: string, + filter?: string, + after?: string, + limit?: number, + expand?: string, + }): Collection; + createGroup(group: Group): Promise; + listGroupRules(queryParameters?: { + limit?: number, + after?: string, + search?: string, + expand?: string, + }): Collection; + createGroupRule(groupRule: GroupRule): Promise; + deleteGroupRule(ruleId: string): Promise; + getGroupRule(ruleId: string, queryParameters?: { + expand?: string, + }): Promise; + updateGroupRule(ruleId: string, groupRule: GroupRule): Promise; + activateGroupRule(ruleId: string): Promise; + deactivateGroupRule(ruleId: string): Promise; + deleteGroup(groupId: string): Promise; + getGroup(groupId: string): Promise; + updateGroup(groupId: string, group: Group): Promise; + listAssignedApplicationsForGroup(groupId: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + listGroupAssignedRoles(groupId: string, queryParameters?: { + expand?: string, + }): Collection; + assignRoleToGroup(groupId: string, assignRoleRequest: AssignRoleRequest, queryParameters?: { + disableNotifications?: string, + }): Promise; + removeRoleFromGroup(groupId: string, roleId: string): Promise; + getRole(groupId: string, roleId: string): Promise; + listApplicationTargetsForApplicationAdministratorRoleForGroup(groupId: string, roleId: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + removeApplicationTargetFromApplicationAdministratorRoleGivenToGroup(groupId: string, roleId: string, appName: string): Promise; + addApplicationTargetToAdminRoleGivenToGroup(groupId: string, roleId: string, appName: string): Promise; + removeApplicationTargetFromAdministratorRoleGivenToGroup(groupId: string, roleId: string, appName: string, applicationId: string): Promise; + addApplicationInstanceTargetToAppAdminRoleGivenToGroup(groupId: string, roleId: string, appName: string, applicationId: string): Promise; + listGroupTargetsForGroupRole(groupId: string, roleId: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + removeGroupTargetFromGroupAdministratorRoleGivenToGroup(groupId: string, roleId: string, targetGroupId: string): Promise; + addGroupTargetToGroupAdministratorRoleForGroup(groupId: string, roleId: string, targetGroupId: string): Promise; + listGroupUsers(groupId: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + removeUserFromGroup(groupId: string, userId: string): Promise; + addUserToGroup(groupId: string, userId: string): Promise; + listIdentityProviders(queryParameters?: { + q?: string, + after?: string, + limit?: number, + type?: string, + }): Collection; + createIdentityProvider(identityProvider: IdentityProvider): Promise; + listIdentityProviderKeys(queryParameters?: { + after?: string, + limit?: number, + }): Collection; + createIdentityProviderKey(jsonWebKey: JsonWebKey): Promise; + deleteIdentityProviderKey(keyId: string): Promise; + getIdentityProviderKey(keyId: string): Promise; + deleteIdentityProvider(idpId: string): Promise; + getIdentityProvider(idpId: string): Promise; + updateIdentityProvider(idpId: string, identityProvider: IdentityProvider): Promise; + listCsrsForIdentityProvider(idpId: string): Collection; + generateCsrForIdentityProvider(idpId: string, csrMetadata: CsrMetadata): Promise; + revokeCsrForIdentityProvider(idpId: string, csrId: string): Promise; + getCsrForIdentityProvider(idpId: string, csrId: string): Promise; + publishCerCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + publishBinaryCerCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + publishDerCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + publishBinaryDerCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + publishBinaryPemCertForIdentityProvider(idpId: string, csrId: string, certificate: string): Promise; + listIdentityProviderSigningKeys(idpId: string): Collection; + generateIdentityProviderSigningKey(idpId: string, queryParameters: { + validityYears: number, + }): Promise; + getIdentityProviderSigningKey(idpId: string, keyId: string): Promise; + cloneIdentityProviderKey(idpId: string, keyId: string, queryParameters: { + targetIdpId: string, + }): Promise; + activateIdentityProvider(idpId: string): Promise; + deactivateIdentityProvider(idpId: string): Promise; + listIdentityProviderApplicationUsers(idpId: string): Collection; + unlinkUserFromIdentityProvider(idpId: string, userId: string): Promise; + getIdentityProviderApplicationUser(idpId: string, userId: string): Promise; + linkUserToIdentityProvider(idpId: string, userId: string, userIdentityProviderLinkRequest: UserIdentityProviderLinkRequest): Promise; + listSocialAuthTokens(idpId: string, userId: string): Collection; + listInlineHooks(queryParameters?: { + type?: string, + }): Collection; + createInlineHook(inlineHook: InlineHook): Promise; + deleteInlineHook(inlineHookId: string): Promise; + getInlineHook(inlineHookId: string): Promise; + updateInlineHook(inlineHookId: string, inlineHook: InlineHook): Promise; + executeInlineHook(inlineHookId: string, inlineHookPayload: InlineHookPayload): Promise; + activateInlineHook(inlineHookId: string): Promise; + deactivateInlineHook(inlineHookId: string): Promise; + getLogs(queryParameters?: { + since?: string, + until?: string, + filter?: string, + q?: string, + limit?: number, + sortOrder?: string, + after?: string, + }): Collection; + listLinkedObjectDefinitions(): Collection; + addLinkedObjectDefinition(linkedObject: LinkedObject): Promise; + deleteLinkedObjectDefinition(linkedObjectName: string): Promise; + getLinkedObjectDefinition(linkedObjectName: string): Promise; + listUserTypes(): Collection; + createUserType(userType: UserType): Promise; + deleteUserType(typeId: string): Promise; + getUserType(typeId: string): Promise; + updateUserType(typeId: string, userType: UserType): Promise; + replaceUserType(typeId: string, userType: UserType): Promise; + listPolicies(queryParameters: { + type: string, + status?: string, + expand?: string, + }): Collection; + createPolicy(policy: Policy, queryParameters?: { + activate?: boolean, + }): Promise; + deletePolicy(policyId: string): Promise; + getPolicy(policyId: string, queryParameters?: { + expand?: string, + }): Promise; + updatePolicy(policyId: string, policy: Policy): Promise; + activatePolicy(policyId: string): Promise; + deactivatePolicy(policyId: string): Promise; + listPolicyRules(policyId: string): Collection; + createPolicyRule(policyId: string, policyRule: PolicyRule): Promise; + deletePolicyRule(policyId: string, ruleId: string): Promise; + getPolicyRule(policyId: string, ruleId: string): Promise; + updatePolicyRule(policyId: string, ruleId: string, policyRule: PolicyRule): Promise; + activatePolicyRule(policyId: string, ruleId: string): Promise; + deactivatePolicyRule(policyId: string, ruleId: string): Promise; + createSession(createSessionRequest: CreateSessionRequest): Promise; + endSession(sessionId: string): Promise; + getSession(sessionId: string): Promise; + refreshSession(sessionId: string): Promise; + listSmsTemplates(queryParameters?: { + templateType?: string, + }): Collection; + createSmsTemplate(smsTemplate: SmsTemplate): Promise; + deleteSmsTemplate(templateId: string): Promise; + getSmsTemplate(templateId: string): Promise; + partialUpdateSmsTemplate(templateId: string, smsTemplate: SmsTemplate): Promise; + updateSmsTemplate(templateId: string, smsTemplate: SmsTemplate): Promise; + listOrigins(queryParameters?: { + q?: string, + filter?: string, + after?: string, + limit?: number, + }): Collection; + createOrigin(trustedOrigin: TrustedOrigin): Promise; + deleteOrigin(trustedOriginId: string): Promise; + getOrigin(trustedOriginId: string): Promise; + updateOrigin(trustedOriginId: string, trustedOrigin: TrustedOrigin): Promise; + activateOrigin(trustedOriginId: string): Promise; + deactivateOrigin(trustedOriginId: string): Promise; + listUsers(queryParameters?: { + q?: string, + after?: string, + limit?: number, + filter?: string, + search?: string, + sortBy?: string, + sortOrder?: string, + }): Collection; + createUser(createUserRequest: CreateUserRequest, queryParameters?: { + activate?: boolean, + provider?: boolean, + nextLogin?: string, + }): Promise; + setLinkedObjectForUser(associatedUserId: string, primaryRelationshipName: string, primaryUserId: string): Promise; + deactivateOrDeleteUser(userId: string, queryParameters?: { + sendEmail?: boolean, + }): Promise; + getUser(userId: string): Promise; + partialUpdateUser(userId: string, user: User, queryParameters?: { + strict?: boolean, + }): Promise; + updateUser(userId: string, user: User, queryParameters?: { + strict?: boolean, + }): Promise; + listAppLinks(userId: string): Collection; + listUserClients(userId: string): Collection; + revokeGrantsForUserAndClient(userId: string, clientId: string): Promise; + listGrantsForUserAndClient(userId: string, clientId: string, queryParameters?: { + expand?: string, + after?: string, + limit?: number, + }): Collection; + revokeTokensForUserAndClient(userId: string, clientId: string): Promise; + listRefreshTokensForUserAndClient(userId: string, clientId: string, queryParameters?: { + expand?: string, + after?: string, + limit?: number, + }): Collection; + revokeTokenForUserAndClient(userId: string, clientId: string, tokenId: string): Promise; + getRefreshTokenForUserAndClient(userId: string, clientId: string, tokenId: string, queryParameters?: { + expand?: string, + limit?: number, + after?: string, + }): Promise; + changePassword(userId: string, changePasswordRequest: ChangePasswordRequest, queryParameters?: { + strict?: boolean, + }): Promise; + changeRecoveryQuestion(userId: string, userCredentials: UserCredentials): Promise; + forgotPasswordGenerateOneTimeToken(userId: string, queryParameters?: { + sendEmail?: boolean, + }): Promise; + forgotPasswordSetNewPassword(userId: string, userCredentials: UserCredentials, queryParameters?: { + sendEmail?: boolean, + }): Promise; + listFactors(userId: string): Collection; + enrollFactor(userId: string, userFactor: UserFactor, queryParameters?: { + updatePhone?: boolean, + templateId?: string, + tokenLifetimeSeconds?: number, + activate?: boolean, + }): Promise; + listSupportedFactors(userId: string): Collection; + listSupportedSecurityQuestions(userId: string): Collection; + deleteFactor(userId: string, factorId: string): Promise; + getFactor(userId: string, factorId: string): Promise; + activateFactor(userId: string, factorId: string, activateFactorRequest: ActivateFactorRequest): Promise; + getFactorTransactionStatus(userId: string, factorId: string, transactionId: string): Promise; + verifyFactor(userId: string, factorId: string, verifyFactorRequest: VerifyFactorRequest, queryParameters?: { + templateId?: string, + tokenLifetimeSeconds?: number, + }): Promise; + revokeUserGrants(userId: string): Promise; + listUserGrants(userId: string, queryParameters?: { + scopeId?: string, + expand?: string, + after?: string, + limit?: number, + }): Collection; + revokeUserGrant(userId: string, grantId: string): Promise; + getUserGrant(userId: string, grantId: string, queryParameters?: { + expand?: string, + }): Promise; + listUserGroups(userId: string): Collection; + listUserIdentityProviders(userId: string): Collection; + activateUser(userId: string, queryParameters: { + sendEmail: boolean, + }): Promise; + deactivateUser(userId: string, queryParameters?: { + sendEmail?: boolean, + }): Promise; + expirePassword(userId: string): Promise; + expirePasswordAndGetTemporaryPassword(userId: string): Promise; + reactivateUser(userId: string, queryParameters?: { + sendEmail?: boolean, + }): Promise; + resetFactors(userId: string): Promise; + resetPassword(userId: string, queryParameters: { + sendEmail: boolean, + }): Promise; + suspendUser(userId: string): Promise; + unlockUser(userId: string): Promise; + unsuspendUser(userId: string): Promise; + removeLinkedObjectForUser(userId: string, relationshipName: string): Promise; + getLinkedObjectsForUser(userId: string, relationshipName: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + listAssignedRolesForUser(userId: string, queryParameters?: { + expand?: string, + }): Collection; + assignRoleToUser(userId: string, assignRoleRequest: AssignRoleRequest, queryParameters?: { + disableNotifications?: string, + }): Promise; + removeRoleFromUser(userId: string, roleId: string): Promise; + listApplicationTargetsForApplicationAdministratorRoleForUser(userId: string, roleId: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + addAllAppsAsTargetToRole(userId: string, roleId: string): Promise; + removeApplicationTargetFromApplicationAdministratorRoleForUser(userId: string, roleId: string, appName: string): Promise; + addApplicationTargetToAdminRoleForUser(userId: string, roleId: string, appName: string): Promise; + removeApplicationTargetFromAdministratorRoleForUser(userId: string, roleId: string, appName: string, applicationId: string): Promise; + addApplicationTargetToAppAdminRoleForUser(userId: string, roleId: string, appName: string, applicationId: string): Promise; + listGroupTargetsForRole(userId: string, roleId: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + removeGroupTargetFromRole(userId: string, roleId: string, groupId: string): Promise; + addGroupTargetToRole(userId: string, roleId: string, groupId: string): Promise; + clearUserSessions(userId: string, queryParameters?: { + oauthTokens?: boolean, + }): Promise; +} + +export default GeneratedApiClient; diff --git a/src/types/http-error.d.ts b/src/types/http-error.d.ts new file mode 100644 index 000000000..2f86fff79 --- /dev/null +++ b/src/types/http-error.d.ts @@ -0,0 +1,25 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ +import { Headers } from 'node-fetch'; + +declare class HttpError extends Error { + constructor(url: string, status: number | string, responseBody: string, headers: Headers); + + name: string; + status: string | number; + url: string; + headers: Headers; + stack: string; + message: string; +} + +export default HttpError; diff --git a/src/types/http.d.ts b/src/types/http.d.ts new file mode 100644 index 000000000..384feaaa3 --- /dev/null +++ b/src/types/http.d.ts @@ -0,0 +1,56 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import OAuth from './oauth'; +import { Response } from 'node-fetch'; +import { CacheStorage } from './memory-store'; +import { IRequestExecutor } from './request-executor'; +import defaultCacheMiddleware from './default-cache-middleware'; +import RequestOptions from './request-options'; + +interface RequestContext { + isCollection?: boolean, + resources?: string[], +} + +declare class Http { + static errorFilter(response: Response): Promise; + constructor(httpConfig: { + requestExecutor: IRequestExecutor, + oauth: OAuth, + cacheStore?: CacheStorage, + cacheMiddleware?: typeof defaultCacheMiddleware | unknown, + }); + defaultHeaders: Record; + requestExecutor: IRequestExecutor; + cacheStore: CacheStorage; + cacheMiddleware: typeof defaultCacheMiddleware | unknown; + oauth: OAuth; + prepareRequest(request: RequestOptions): Promise; + http(uri: string, request?: RequestOptions, context?: { + isCollection: boolean, + resources: string[], + }): Promise; + delete(uri: string, request?: RequestOptions, context?: { + isCollection: boolean, + resources: string[], + }): Promise; + json(uri: string, request?: RequestOptions, context?: RequestContext): Promise>; + getJson(uri: string, request?: RequestOptions, context?: RequestContext): Promise>; + post(uri: string, request?: RequestOptions, context?: RequestContext): Promise; + postJson(uri: string, request?: RequestOptions, context?: RequestContext): Promise; + putJson(uri: string, request?: RequestOptions, context?: RequestContext): Promise; + put(uri: string, request?: RequestOptions, context?: RequestContext): Promise; +} + +export default Http; + diff --git a/src/types/index.d.ts b/src/types/index.d.ts new file mode 100644 index 000000000..b0d6c964d --- /dev/null +++ b/src/types/index.d.ts @@ -0,0 +1,21 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import Client from './client'; +import DefaultRequestExecutor from './default-request-executor'; +import RequestExecutor from './request-executor'; + +export { + Client, + DefaultRequestExecutor, + RequestExecutor, +}; diff --git a/src/types/jwt.d.ts b/src/types/jwt.d.ts new file mode 100644 index 000000000..27849e7d1 --- /dev/null +++ b/src/types/jwt.d.ts @@ -0,0 +1,36 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ +import Client from './client'; + +export class Jwt { + constructor(claims: Record, enforceDefaultFields: boolean); + + compact(): string; + isExpired(): boolean; + isNotBefore(): boolean; + isSupportedAlg(alg: string): boolean; + setClaim(claim: string, value: string): Jwt; + setExpiration(exp: Date | number): Jwt; + setHeader(param: string, value: unknown): Jwt; + setIssuedAt(iat: number): Jwt; + setIssuer(iss: string): Jwt; + setJti(jti: string): Jwt; + setNotBefore(nbf: Date | number): Jwt; + setSigningAlgorithm(alg: string): Jwt; + setSigningKey(key: string | ArrayBuffer | Buffer): Jwt; + setSubject(sub: string): Jwt; + sign(payload: Record, algorithm: string, cryptoInput: string | ArrayBuffer | Buffer): string; + toString(): string; +} + +export function makeJwt(client: Client, endpoint: string): Jwt; +export function getPemAndJwk(privateKey: string | Record): {jwk: Record, pem: string}; diff --git a/src/types/memory-store.d.ts b/src/types/memory-store.d.ts new file mode 100644 index 000000000..633bd0665 --- /dev/null +++ b/src/types/memory-store.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +/** Interface methods required for cache storage implementations. */ +export interface CacheStorage { + get(key: string): Promise; + set(key: string, value: string, options?: Record): Promise; + delete(key: string): Promise; +} + +declare class MemoryStore implements CacheStorage { + constructor(options?: { + keyLimit?: number, + expirationPoll?: number, + }); + + _keyLimit: number; + _store: Map; + _interval: NodeJS.Timeout; + get(key: string): Promise; + set(key: string, string: string, options?: {ttl: number }): Promise; + delete(key: string): Promise; +} + +export default MemoryStore; diff --git a/src/types/model-factory.d.ts b/src/types/model-factory.d.ts new file mode 100644 index 000000000..5db9820c5 --- /dev/null +++ b/src/types/model-factory.d.ts @@ -0,0 +1,24 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import Client from './client'; +import Resource from './resource'; + +declare class ModelFactory { + constructor(Ctor: typeof Resource); + + Ctor: typeof Resource; + createInstance(resource: Record, client: Client): Resource; +} + +export default ModelFactory; + diff --git a/src/types/models/AcsEndpoint.d.ts b/src/types/models/AcsEndpoint.d.ts new file mode 100644 index 000000000..a62b151d4 --- /dev/null +++ b/src/types/models/AcsEndpoint.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AcsEndpoint extends Resource { + constructor(resourceJson: Record, client: Client); + + index: number; + url: string; + +} + +export { + AcsEndpoint +}; diff --git a/src/types/models/ActivateFactorRequest.d.ts b/src/types/models/ActivateFactorRequest.d.ts new file mode 100644 index 000000000..2fef7b30b --- /dev/null +++ b/src/types/models/ActivateFactorRequest.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ActivateFactorRequest extends Resource { + constructor(resourceJson: Record, client: Client); + + attestation: string; + clientData: string; + passCode: string; + registrationData: string; + stateToken: string; + +} + +export { + ActivateFactorRequest +}; diff --git a/src/types/models/AppAndInstanceConditionEvaluatorAppOrInstance.d.ts b/src/types/models/AppAndInstanceConditionEvaluatorAppOrInstance.d.ts new file mode 100644 index 000000000..3022d523b --- /dev/null +++ b/src/types/models/AppAndInstanceConditionEvaluatorAppOrInstance.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AppAndInstanceConditionEvaluatorAppOrInstance extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly id: string; + name: string; + type: string; + +} + +export { + AppAndInstanceConditionEvaluatorAppOrInstance +}; diff --git a/src/types/models/AppAndInstancePolicyRuleCondition.d.ts b/src/types/models/AppAndInstancePolicyRuleCondition.d.ts new file mode 100644 index 000000000..4b406aca2 --- /dev/null +++ b/src/types/models/AppAndInstancePolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AppAndInstancePolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + include: []; + +} + +export { + AppAndInstancePolicyRuleCondition +}; diff --git a/src/types/models/AppInstancePolicyRuleCondition.d.ts b/src/types/models/AppInstancePolicyRuleCondition.d.ts new file mode 100644 index 000000000..7ce4f6c7a --- /dev/null +++ b/src/types/models/AppInstancePolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AppInstancePolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + include: []; + +} + +export { + AppInstancePolicyRuleCondition +}; diff --git a/src/types/models/AppLink.d.ts b/src/types/models/AppLink.d.ts new file mode 100644 index 000000000..8d80adeac --- /dev/null +++ b/src/types/models/AppLink.d.ts @@ -0,0 +1,38 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AppLink extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly appAssignmentId: string; + readonly appInstanceId: string; + readonly appName: string; + readonly credentialsSetup: boolean; + readonly hidden: boolean; + readonly id: string; + readonly label: string; + readonly linkUrl: string; + readonly logoUrl: string; + readonly sortOrder: number; + +} + +export { + AppLink +}; diff --git a/src/types/models/AppUser.d.ts b/src/types/models/AppUser.d.ts new file mode 100644 index 000000000..319dac91a --- /dev/null +++ b/src/types/models/AppUser.d.ts @@ -0,0 +1,47 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import { AppUserCredentials } from './AppUserCredentials'; + +declare class AppUser extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + readonly created: string; + credentials: AppUserCredentials; + readonly externalId: string; + id: string; + readonly lastSync: string; + readonly lastUpdated: string; + readonly passwordChanged: string; + profile: {[name: string]: unknown}; + scope: string; + readonly status: string; + readonly statusChanged: string; + readonly syncState: string; + + update(): Promise; + delete(queryParameters?: { + sendEmail?: boolean, + }): Promise; +} + +export { + AppUser +}; diff --git a/src/types/models/AppUserCredentials.d.ts b/src/types/models/AppUserCredentials.d.ts new file mode 100644 index 000000000..af92c13bc --- /dev/null +++ b/src/types/models/AppUserCredentials.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { AppUserPasswordCredential } from './AppUserPasswordCredential'; + +declare class AppUserCredentials extends Resource { + constructor(resourceJson: Record, client: Client); + + password: AppUserPasswordCredential; + userName: string; + +} + +export { + AppUserCredentials +}; diff --git a/src/types/models/AppUserPasswordCredential.d.ts b/src/types/models/AppUserPasswordCredential.d.ts new file mode 100644 index 000000000..518d56d87 --- /dev/null +++ b/src/types/models/AppUserPasswordCredential.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AppUserPasswordCredential extends Resource { + constructor(resourceJson: Record, client: Client); + + value: string; + +} + +export { + AppUserPasswordCredential +}; diff --git a/src/types/models/Application.d.ts b/src/types/models/Application.d.ts new file mode 100644 index 000000000..76aaeb296 --- /dev/null +++ b/src/types/models/Application.d.ts @@ -0,0 +1,119 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import Collection from '../collection'; +import { AppUser } from './AppUser'; +import { ApplicationGroupAssignment } from './ApplicationGroupAssignment'; +import { JsonWebKey } from './JsonWebKey'; +import { CsrMetadata } from './CsrMetadata'; +import { Csr } from './Csr'; +import { OAuth2Token } from './OAuth2Token'; +import { OAuth2ScopeConsentGrant } from './OAuth2ScopeConsentGrant'; +import { ApplicationAccessibility } from './ApplicationAccessibility'; +import { ApplicationCredentials } from './ApplicationCredentials'; +import { ApplicationLicensing } from './ApplicationLicensing'; +import { ApplicationSettings } from './ApplicationSettings'; +import { ApplicationSignOnMode } from './ApplicationSignOnMode'; +import { ApplicationVisibility } from './ApplicationVisibility'; + +declare class Application extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + accessibility: ApplicationAccessibility; + readonly created: string; + credentials: ApplicationCredentials; + features: []; + readonly id: string; + label: string; + readonly lastUpdated: string; + licensing: ApplicationLicensing; + readonly name: string; + profile: {[name: string]: unknown}; + settings: ApplicationSettings; + signOnMode: ApplicationSignOnMode; + readonly status: string; + visibility: ApplicationVisibility; + + update(): Promise; + delete(): Promise; + activate(): Promise; + deactivate(): Promise; + listApplicationUsers(queryParameters?: { + q?: string, + query_scope?: string, + after?: string, + limit?: number, + filter?: string, + expand?: string, + }): Collection; + assignUserToApplication(appUser: AppUser): Promise; + getApplicationUser(userId: string, queryParameters?: { + expand?: string, + }): Promise; + createApplicationGroupAssignment(groupId: string, applicationGroupAssignment: ApplicationGroupAssignment): Promise; + getApplicationGroupAssignment(groupId: string, queryParameters?: { + expand?: string, + }): Promise; + cloneApplicationKey(keyId: string, queryParameters: { + targetAid: string, + }): Promise; + getApplicationKey(keyId: string): Promise; + listGroupAssignments(queryParameters?: { + q?: string, + after?: string, + limit?: number, + expand?: string, + }): Collection; + listKeys(): Collection; + generateKey(queryParameters?: { + validityYears?: number, + }): Promise; + generateCsr(csrMetadata: CsrMetadata): Promise; + getCsr(csrId: string): Promise; + revokeCsr(csrId: string): Promise; + listCsrs(): Collection; + publishCerCert(csrId: string, certificate: string): Promise; + publishBinaryCerCert(csrId: string, certificate: string): Promise; + publishDerCert(csrId: string, certificate: string): Promise; + publishBinaryDerCert(csrId: string, certificate: string): Promise; + publishBinaryPemCert(csrId: string, certificate: string): Promise; + listOAuth2Tokens(queryParameters?: { + expand?: string, + after?: string, + limit?: number, + }): Collection; + revokeOAuth2TokenForApplication(tokenId: string): Promise; + getOAuth2Token(tokenId: string, queryParameters?: { + expand?: string, + }): Promise; + revokeOAuth2Tokens(): Promise; + listScopeConsentGrants(queryParameters?: { + expand?: string, + }): Collection; + grantConsentToScope(oAuth2ScopeConsentGrant: OAuth2ScopeConsentGrant): Promise; + revokeScopeConsentGrant(grantId: string): Promise; + getScopeConsentGrant(grantId: string, queryParameters?: { + expand?: string, + }): Promise; +} + +export { + Application +}; diff --git a/src/types/models/ApplicationAccessibility.d.ts b/src/types/models/ApplicationAccessibility.d.ts new file mode 100644 index 000000000..9dbe0e2fb --- /dev/null +++ b/src/types/models/ApplicationAccessibility.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationAccessibility extends Resource { + constructor(resourceJson: Record, client: Client); + + errorRedirectUrl: string; + loginRedirectUrl: string; + selfService: boolean; + +} + +export { + ApplicationAccessibility +}; diff --git a/src/types/models/ApplicationCredentials.d.ts b/src/types/models/ApplicationCredentials.d.ts new file mode 100644 index 000000000..9bd3b4c9b --- /dev/null +++ b/src/types/models/ApplicationCredentials.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ApplicationCredentialsSigning } from './ApplicationCredentialsSigning'; +import { ApplicationCredentialsUsernameTemplate } from './ApplicationCredentialsUsernameTemplate'; + +declare class ApplicationCredentials extends Resource { + constructor(resourceJson: Record, client: Client); + + signing: ApplicationCredentialsSigning; + userNameTemplate: ApplicationCredentialsUsernameTemplate; + +} + +export { + ApplicationCredentials +}; diff --git a/src/types/models/ApplicationCredentialsOAuthClient.d.ts b/src/types/models/ApplicationCredentialsOAuthClient.d.ts new file mode 100644 index 000000000..e2dd6c40c --- /dev/null +++ b/src/types/models/ApplicationCredentialsOAuthClient.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { OAuthEndpointAuthenticationMethod } from './OAuthEndpointAuthenticationMethod'; + +declare class ApplicationCredentialsOAuthClient extends Resource { + constructor(resourceJson: Record, client: Client); + + autoKeyRotation: boolean; + client_id: string; + client_secret: string; + token_endpoint_auth_method: OAuthEndpointAuthenticationMethod; + +} + +export { + ApplicationCredentialsOAuthClient +}; diff --git a/src/types/models/ApplicationCredentialsScheme.d.ts b/src/types/models/ApplicationCredentialsScheme.d.ts new file mode 100644 index 000000000..fb38cb51a --- /dev/null +++ b/src/types/models/ApplicationCredentialsScheme.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationCredentialsScheme extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + ApplicationCredentialsScheme +}; diff --git a/src/types/models/ApplicationCredentialsSigning.d.ts b/src/types/models/ApplicationCredentialsSigning.d.ts new file mode 100644 index 000000000..958122ee7 --- /dev/null +++ b/src/types/models/ApplicationCredentialsSigning.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ApplicationCredentialsSigningUse } from './ApplicationCredentialsSigningUse'; + +declare class ApplicationCredentialsSigning extends Resource { + constructor(resourceJson: Record, client: Client); + + kid: string; + readonly lastRotated: string; + readonly nextRotation: string; + rotationMode: string; + use: ApplicationCredentialsSigningUse; + +} + +export { + ApplicationCredentialsSigning +}; diff --git a/src/types/models/ApplicationCredentialsSigningUse.d.ts b/src/types/models/ApplicationCredentialsSigningUse.d.ts new file mode 100644 index 000000000..4e46c13d9 --- /dev/null +++ b/src/types/models/ApplicationCredentialsSigningUse.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationCredentialsSigningUse extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + ApplicationCredentialsSigningUse +}; diff --git a/src/types/models/ApplicationCredentialsUsernameTemplate.d.ts b/src/types/models/ApplicationCredentialsUsernameTemplate.d.ts new file mode 100644 index 000000000..3fea7e13a --- /dev/null +++ b/src/types/models/ApplicationCredentialsUsernameTemplate.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationCredentialsUsernameTemplate extends Resource { + constructor(resourceJson: Record, client: Client); + + suffix: string; + template: string; + type: string; + +} + +export { + ApplicationCredentialsUsernameTemplate +}; diff --git a/src/types/models/ApplicationGroupAssignment.d.ts b/src/types/models/ApplicationGroupAssignment.d.ts new file mode 100644 index 000000000..0a2548a04 --- /dev/null +++ b/src/types/models/ApplicationGroupAssignment.d.ts @@ -0,0 +1,35 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; + +declare class ApplicationGroupAssignment extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + readonly id: string; + readonly lastUpdated: string; + priority: number; + profile: {[name: string]: unknown}; + + delete(): Promise; +} + +export { + ApplicationGroupAssignment +}; diff --git a/src/types/models/ApplicationLicensing.d.ts b/src/types/models/ApplicationLicensing.d.ts new file mode 100644 index 000000000..c32932aa6 --- /dev/null +++ b/src/types/models/ApplicationLicensing.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationLicensing extends Resource { + constructor(resourceJson: Record, client: Client); + + seatCount: number; + +} + +export { + ApplicationLicensing +}; diff --git a/src/types/models/ApplicationSettings.d.ts b/src/types/models/ApplicationSettings.d.ts new file mode 100644 index 000000000..a680bb8cc --- /dev/null +++ b/src/types/models/ApplicationSettings.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ApplicationSettingsApplication } from './ApplicationSettingsApplication'; +import { ApplicationSettingsNotifications } from './ApplicationSettingsNotifications'; + +declare class ApplicationSettings extends Resource { + constructor(resourceJson: Record, client: Client); + + app: ApplicationSettingsApplication; + implicitAssignment: boolean; + inlineHookId: string; + notifications: ApplicationSettingsNotifications; + +} + +export { + ApplicationSettings +}; diff --git a/src/types/models/ApplicationSettingsApplication.d.ts b/src/types/models/ApplicationSettingsApplication.d.ts new file mode 100644 index 000000000..f52ddb10b --- /dev/null +++ b/src/types/models/ApplicationSettingsApplication.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationSettingsApplication extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + ApplicationSettingsApplication +}; diff --git a/src/types/models/ApplicationSettingsNotifications.d.ts b/src/types/models/ApplicationSettingsNotifications.d.ts new file mode 100644 index 000000000..0eac4ea68 --- /dev/null +++ b/src/types/models/ApplicationSettingsNotifications.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ApplicationSettingsNotificationsVpn } from './ApplicationSettingsNotificationsVpn'; + +declare class ApplicationSettingsNotifications extends Resource { + constructor(resourceJson: Record, client: Client); + + vpn: ApplicationSettingsNotificationsVpn; + +} + +export { + ApplicationSettingsNotifications +}; diff --git a/src/types/models/ApplicationSettingsNotificationsVpn.d.ts b/src/types/models/ApplicationSettingsNotificationsVpn.d.ts new file mode 100644 index 000000000..2c824ddff --- /dev/null +++ b/src/types/models/ApplicationSettingsNotificationsVpn.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ApplicationSettingsNotificationsVpnNetwork } from './ApplicationSettingsNotificationsVpnNetwork'; + +declare class ApplicationSettingsNotificationsVpn extends Resource { + constructor(resourceJson: Record, client: Client); + + helpUrl: string; + message: string; + network: ApplicationSettingsNotificationsVpnNetwork; + +} + +export { + ApplicationSettingsNotificationsVpn +}; diff --git a/src/types/models/ApplicationSettingsNotificationsVpnNetwork.d.ts b/src/types/models/ApplicationSettingsNotificationsVpnNetwork.d.ts new file mode 100644 index 000000000..49d5ddec1 --- /dev/null +++ b/src/types/models/ApplicationSettingsNotificationsVpnNetwork.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationSettingsNotificationsVpnNetwork extends Resource { + constructor(resourceJson: Record, client: Client); + + connection: string; + exclude: []; + include: []; + +} + +export { + ApplicationSettingsNotificationsVpnNetwork +}; diff --git a/src/types/models/ApplicationSignOnMode.d.ts b/src/types/models/ApplicationSignOnMode.d.ts new file mode 100644 index 000000000..c01fc1a98 --- /dev/null +++ b/src/types/models/ApplicationSignOnMode.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationSignOnMode extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + ApplicationSignOnMode +}; diff --git a/src/types/models/ApplicationVisibility.d.ts b/src/types/models/ApplicationVisibility.d.ts new file mode 100644 index 000000000..c9cf75013 --- /dev/null +++ b/src/types/models/ApplicationVisibility.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ApplicationVisibilityHide } from './ApplicationVisibilityHide'; + +declare class ApplicationVisibility extends Resource { + constructor(resourceJson: Record, client: Client); + + appLinks: {[name: string]: unknown}; + autoSubmitToolbar: boolean; + hide: ApplicationVisibilityHide; + +} + +export { + ApplicationVisibility +}; diff --git a/src/types/models/ApplicationVisibilityHide.d.ts b/src/types/models/ApplicationVisibilityHide.d.ts new file mode 100644 index 000000000..60cca4875 --- /dev/null +++ b/src/types/models/ApplicationVisibilityHide.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ApplicationVisibilityHide extends Resource { + constructor(resourceJson: Record, client: Client); + + iOS: boolean; + web: boolean; + +} + +export { + ApplicationVisibilityHide +}; diff --git a/src/types/models/AssignRoleRequest.d.ts b/src/types/models/AssignRoleRequest.d.ts new file mode 100644 index 000000000..26ec54612 --- /dev/null +++ b/src/types/models/AssignRoleRequest.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { RoleType } from './RoleType'; + +declare class AssignRoleRequest extends Resource { + constructor(resourceJson: Record, client: Client); + + type: RoleType; + +} + +export { + AssignRoleRequest +}; diff --git a/src/types/models/AuthenticationProvider.d.ts b/src/types/models/AuthenticationProvider.d.ts new file mode 100644 index 000000000..52f11e594 --- /dev/null +++ b/src/types/models/AuthenticationProvider.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { AuthenticationProviderType } from './AuthenticationProviderType'; + +declare class AuthenticationProvider extends Resource { + constructor(resourceJson: Record, client: Client); + + name: string; + type: AuthenticationProviderType; + +} + +export { + AuthenticationProvider +}; diff --git a/src/types/models/AuthenticationProviderType.d.ts b/src/types/models/AuthenticationProviderType.d.ts new file mode 100644 index 000000000..fdb9391c0 --- /dev/null +++ b/src/types/models/AuthenticationProviderType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AuthenticationProviderType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + AuthenticationProviderType +}; diff --git a/src/types/models/AuthorizationServer.d.ts b/src/types/models/AuthorizationServer.d.ts new file mode 100644 index 000000000..64c2dc9b3 --- /dev/null +++ b/src/types/models/AuthorizationServer.d.ts @@ -0,0 +1,85 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import Collection from '../collection'; +import { OAuth2Claim } from './OAuth2Claim'; +import { Response } from 'node-fetch'; +import { OAuth2Client } from './OAuth2Client'; +import { OAuth2RefreshToken } from './OAuth2RefreshToken'; +import { JsonWebKey } from './JsonWebKey'; +import { JwkUse } from './JwkUse'; +import { AuthorizationServerPolicy } from './AuthorizationServerPolicy'; +import { OAuth2Scope } from './OAuth2Scope'; +import { AuthorizationServerCredentials } from './AuthorizationServerCredentials'; + +declare class AuthorizationServer extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + audiences: []; + readonly created: string; + credentials: AuthorizationServerCredentials; + description: string; + readonly id: string; + issuer: string; + issuerMode: string; + readonly lastUpdated: string; + name: string; + status: string; + + update(): Promise; + delete(): Promise; + listOAuth2Claims(): Collection; + createOAuth2Claim(oAuth2Claim: OAuth2Claim): Promise; + deleteOAuth2Claim(claimId: string): Promise; + getOAuth2Claim(claimId: string): Promise; + updateOAuth2Claim(claimId: string, oAuth2Claim: OAuth2Claim): Promise; + listOAuth2Clients(): Collection; + revokeRefreshTokensForClient(clientId: string): Promise; + listRefreshTokensForClient(clientId: string, queryParameters?: { + expand?: string, + after?: string, + limit?: number, + }): Collection; + getRefreshTokenForClient(clientId: string, tokenId: string, queryParameters?: { + expand?: string, + }): Promise; + revokeRefreshTokenForClient(clientId: string, tokenId: string): Promise; + listKeys(): Collection; + rotateKeys(jwkUse: JwkUse): Collection; + activate(): Promise; + deactivate(): Promise; + listPolicies(): Collection; + createPolicy(authorizationServerPolicy: AuthorizationServerPolicy): Promise; + deletePolicy(policyId: string): Promise; + getPolicy(policyId: string): Promise; + updatePolicy(policyId: string, authorizationServerPolicy: AuthorizationServerPolicy): Promise; + listOAuth2Scopes(queryParameters?: { + q?: string, + filter?: string, + cursor?: string, + limit?: number, + }): Collection; + createOAuth2Scope(oAuth2Scope: OAuth2Scope): Promise; + deleteOAuth2Scope(scopeId: string): Promise; + getOAuth2Scope(scopeId: string): Promise; + updateOAuth2Scope(scopeId: string, oAuth2Scope: OAuth2Scope): Promise; +} + +export { + AuthorizationServer +}; diff --git a/src/types/models/AuthorizationServerCredentials.d.ts b/src/types/models/AuthorizationServerCredentials.d.ts new file mode 100644 index 000000000..6c1285074 --- /dev/null +++ b/src/types/models/AuthorizationServerCredentials.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { AuthorizationServerCredentialsSigningConfig } from './AuthorizationServerCredentialsSigningConfig'; + +declare class AuthorizationServerCredentials extends Resource { + constructor(resourceJson: Record, client: Client); + + signing: AuthorizationServerCredentialsSigningConfig; + +} + +export { + AuthorizationServerCredentials +}; diff --git a/src/types/models/AuthorizationServerCredentialsRotationMode.d.ts b/src/types/models/AuthorizationServerCredentialsRotationMode.d.ts new file mode 100644 index 000000000..7f5204c3b --- /dev/null +++ b/src/types/models/AuthorizationServerCredentialsRotationMode.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AuthorizationServerCredentialsRotationMode extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + AuthorizationServerCredentialsRotationMode +}; diff --git a/src/types/models/AuthorizationServerCredentialsSigningConfig.d.ts b/src/types/models/AuthorizationServerCredentialsSigningConfig.d.ts new file mode 100644 index 000000000..ae084ed71 --- /dev/null +++ b/src/types/models/AuthorizationServerCredentialsSigningConfig.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { AuthorizationServerCredentialsRotationMode } from './AuthorizationServerCredentialsRotationMode'; +import { AuthorizationServerCredentialsUse } from './AuthorizationServerCredentialsUse'; + +declare class AuthorizationServerCredentialsSigningConfig extends Resource { + constructor(resourceJson: Record, client: Client); + + kid: string; + readonly lastRotated: string; + readonly nextRotation: string; + rotationMode: AuthorizationServerCredentialsRotationMode; + use: AuthorizationServerCredentialsUse; + +} + +export { + AuthorizationServerCredentialsSigningConfig +}; diff --git a/src/types/models/AuthorizationServerCredentialsUse.d.ts b/src/types/models/AuthorizationServerCredentialsUse.d.ts new file mode 100644 index 000000000..b8ebbaeb9 --- /dev/null +++ b/src/types/models/AuthorizationServerCredentialsUse.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AuthorizationServerCredentialsUse extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + AuthorizationServerCredentialsUse +}; diff --git a/src/types/models/AuthorizationServerPolicy.d.ts b/src/types/models/AuthorizationServerPolicy.d.ts new file mode 100644 index 000000000..0179a6a3f --- /dev/null +++ b/src/types/models/AuthorizationServerPolicy.d.ts @@ -0,0 +1,50 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import Collection from '../collection'; +import { AuthorizationServerPolicyRule } from './AuthorizationServerPolicyRule'; +import { Response } from 'node-fetch'; +import { PolicyRuleConditions } from './PolicyRuleConditions'; +import { PolicyType } from './PolicyType'; + +declare class AuthorizationServerPolicy extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + conditions: PolicyRuleConditions; + readonly created: string; + description: string; + readonly id: string; + readonly lastUpdated: string; + name: string; + priority: number; + status: string; + system: boolean; + type: PolicyType; + + update(authServerId: string): Promise; + delete(authServerId: string): Promise; + listPolicyRules(authServerId: string): Collection; + createPolicyRule(authServerId: string, authorizationServerPolicyRule: AuthorizationServerPolicyRule): Promise; + getPolicyRule(authServerId: string, ruleId: string): Promise; + deletePolicyRule(authServerId: string, ruleId: string): Promise; +} + +export { + AuthorizationServerPolicy +}; diff --git a/src/types/models/AuthorizationServerPolicyRule.d.ts b/src/types/models/AuthorizationServerPolicyRule.d.ts new file mode 100644 index 000000000..fcbc9340d --- /dev/null +++ b/src/types/models/AuthorizationServerPolicyRule.d.ts @@ -0,0 +1,45 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import { AuthorizationServerPolicyRuleActions } from './AuthorizationServerPolicyRuleActions'; +import { AuthorizationServerPolicyRuleConditions } from './AuthorizationServerPolicyRuleConditions'; + +declare class AuthorizationServerPolicyRule extends Resource { + constructor(resourceJson: Record, client: Client); + + actions: AuthorizationServerPolicyRuleActions; + conditions: AuthorizationServerPolicyRuleConditions; + readonly created: string; + readonly id: string; + readonly lastUpdated: string; + name: string; + priority: number; + status: string; + system: boolean; + type: string; + + update(authServerId: string): Promise; + delete(authServerId: string): Promise; + activate(): Promise; + deactivate(): Promise; +} + +export { + AuthorizationServerPolicyRule +}; +export default AuthorizationServerPolicyRule; diff --git a/src/types/models/AuthorizationServerPolicyRuleActions.d.ts b/src/types/models/AuthorizationServerPolicyRuleActions.d.ts new file mode 100644 index 000000000..14a36af34 --- /dev/null +++ b/src/types/models/AuthorizationServerPolicyRuleActions.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { TokenAuthorizationServerPolicyRuleAction } from './TokenAuthorizationServerPolicyRuleAction'; + +declare class AuthorizationServerPolicyRuleActions extends Resource { + constructor(resourceJson: Record, client: Client); + + token: TokenAuthorizationServerPolicyRuleAction; + +} + +export { + AuthorizationServerPolicyRuleActions +}; diff --git a/src/types/models/AuthorizationServerPolicyRuleConditions.d.ts b/src/types/models/AuthorizationServerPolicyRuleConditions.d.ts new file mode 100644 index 000000000..83404c7e7 --- /dev/null +++ b/src/types/models/AuthorizationServerPolicyRuleConditions.d.ts @@ -0,0 +1,35 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ClientPolicyCondition } from './ClientPolicyCondition'; +import { GrantTypePolicyRuleCondition } from './GrantTypePolicyRuleCondition'; +import { PolicyPeopleCondition } from './PolicyPeopleCondition'; +import { OAuth2ScopesMediationPolicyRuleCondition } from './OAuth2ScopesMediationPolicyRuleCondition'; + +declare class AuthorizationServerPolicyRuleConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + clients: ClientPolicyCondition; + grantTypes: GrantTypePolicyRuleCondition; + people: PolicyPeopleCondition; + scopes: OAuth2ScopesMediationPolicyRuleCondition; + +} + +export { + AuthorizationServerPolicyRuleConditions +}; diff --git a/src/types/models/AutoLoginApplication.d.ts b/src/types/models/AutoLoginApplication.d.ts new file mode 100644 index 000000000..0b018e343 --- /dev/null +++ b/src/types/models/AutoLoginApplication.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Application } from './Application'; +import Client from '../client'; +import { SchemeApplicationCredentials } from './SchemeApplicationCredentials'; +import { AutoLoginApplicationSettings } from './AutoLoginApplicationSettings'; + +declare class AutoLoginApplication extends Application { + constructor(resourceJson: Record, client: Client); + + credentials: SchemeApplicationCredentials; + settings: AutoLoginApplicationSettings; + +} + +export { + AutoLoginApplication +}; diff --git a/src/types/models/AutoLoginApplicationSettings.d.ts b/src/types/models/AutoLoginApplicationSettings.d.ts new file mode 100644 index 000000000..f50f9c6e6 --- /dev/null +++ b/src/types/models/AutoLoginApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { AutoLoginApplicationSettingsSignOn } from './AutoLoginApplicationSettingsSignOn'; + +declare class AutoLoginApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + signOn: AutoLoginApplicationSettingsSignOn; + +} + +export { + AutoLoginApplicationSettings +}; diff --git a/src/types/models/AutoLoginApplicationSettingsSignOn.d.ts b/src/types/models/AutoLoginApplicationSettingsSignOn.d.ts new file mode 100644 index 000000000..7849b123d --- /dev/null +++ b/src/types/models/AutoLoginApplicationSettingsSignOn.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class AutoLoginApplicationSettingsSignOn extends Resource { + constructor(resourceJson: Record, client: Client); + + loginUrl: string; + redirectUrl: string; + +} + +export { + AutoLoginApplicationSettingsSignOn +}; diff --git a/src/types/models/BasicApplicationSettings.d.ts b/src/types/models/BasicApplicationSettings.d.ts new file mode 100644 index 000000000..f1175ddef --- /dev/null +++ b/src/types/models/BasicApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { BasicApplicationSettingsApplication } from './BasicApplicationSettingsApplication'; + +declare class BasicApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + app: BasicApplicationSettingsApplication; + +} + +export { + BasicApplicationSettings +}; diff --git a/src/types/models/BasicApplicationSettingsApplication.d.ts b/src/types/models/BasicApplicationSettingsApplication.d.ts new file mode 100644 index 000000000..a12480666 --- /dev/null +++ b/src/types/models/BasicApplicationSettingsApplication.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettingsApplication } from './ApplicationSettingsApplication'; +import Client from '../client'; + + +declare class BasicApplicationSettingsApplication extends ApplicationSettingsApplication { + constructor(resourceJson: Record, client: Client); + + authURL: string; + url: string; + +} + +export { + BasicApplicationSettingsApplication +}; diff --git a/src/types/models/BasicAuthApplication.d.ts b/src/types/models/BasicAuthApplication.d.ts new file mode 100644 index 000000000..ec92ad1d7 --- /dev/null +++ b/src/types/models/BasicAuthApplication.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Application } from './Application'; +import Client from '../client'; +import { SchemeApplicationCredentials } from './SchemeApplicationCredentials'; +import { BasicApplicationSettings } from './BasicApplicationSettings'; + +declare class BasicAuthApplication extends Application { + constructor(resourceJson: Record, client: Client); + + credentials: SchemeApplicationCredentials; + settings: BasicApplicationSettings; + +} + +export { + BasicAuthApplication +}; diff --git a/src/types/models/BeforeScheduledActionPolicyRuleCondition.d.ts b/src/types/models/BeforeScheduledActionPolicyRuleCondition.d.ts new file mode 100644 index 000000000..cbbb990b9 --- /dev/null +++ b/src/types/models/BeforeScheduledActionPolicyRuleCondition.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Duration } from './Duration'; +import { ScheduledUserLifecycleAction } from './ScheduledUserLifecycleAction'; + +declare class BeforeScheduledActionPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + duration: Duration; + lifecycleAction: ScheduledUserLifecycleAction; + +} + +export { + BeforeScheduledActionPolicyRuleCondition +}; diff --git a/src/types/models/BookmarkApplication.d.ts b/src/types/models/BookmarkApplication.d.ts new file mode 100644 index 000000000..385c89ca8 --- /dev/null +++ b/src/types/models/BookmarkApplication.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Application } from './Application'; +import Client from '../client'; +import { BookmarkApplicationSettings } from './BookmarkApplicationSettings'; + +declare class BookmarkApplication extends Application { + constructor(resourceJson: Record, client: Client); + + settings: BookmarkApplicationSettings; + +} + +export { + BookmarkApplication +}; diff --git a/src/types/models/BookmarkApplicationSettings.d.ts b/src/types/models/BookmarkApplicationSettings.d.ts new file mode 100644 index 000000000..1693165a2 --- /dev/null +++ b/src/types/models/BookmarkApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { BookmarkApplicationSettingsApplication } from './BookmarkApplicationSettingsApplication'; + +declare class BookmarkApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + app: BookmarkApplicationSettingsApplication; + +} + +export { + BookmarkApplicationSettings +}; diff --git a/src/types/models/BookmarkApplicationSettingsApplication.d.ts b/src/types/models/BookmarkApplicationSettingsApplication.d.ts new file mode 100644 index 000000000..9547c4eb1 --- /dev/null +++ b/src/types/models/BookmarkApplicationSettingsApplication.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettingsApplication } from './ApplicationSettingsApplication'; +import Client from '../client'; + + +declare class BookmarkApplicationSettingsApplication extends ApplicationSettingsApplication { + constructor(resourceJson: Record, client: Client); + + requestIntegration: boolean; + url: string; + +} + +export { + BookmarkApplicationSettingsApplication +}; diff --git a/src/types/models/BrowserPluginApplication.d.ts b/src/types/models/BrowserPluginApplication.d.ts new file mode 100644 index 000000000..ce45f7428 --- /dev/null +++ b/src/types/models/BrowserPluginApplication.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Application } from './Application'; +import Client from '../client'; +import { SchemeApplicationCredentials } from './SchemeApplicationCredentials'; + +declare class BrowserPluginApplication extends Application { + constructor(resourceJson: Record, client: Client); + + credentials: SchemeApplicationCredentials; + +} + +export { + BrowserPluginApplication +}; diff --git a/src/types/models/CallUserFactor.d.ts b/src/types/models/CallUserFactor.d.ts new file mode 100644 index 000000000..18641ba6f --- /dev/null +++ b/src/types/models/CallUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { CallUserFactorProfile } from './CallUserFactorProfile'; + +declare class CallUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: CallUserFactorProfile; + +} + +export { + CallUserFactor +}; diff --git a/src/types/models/CallUserFactorProfile.d.ts b/src/types/models/CallUserFactorProfile.d.ts new file mode 100644 index 000000000..356f27356 --- /dev/null +++ b/src/types/models/CallUserFactorProfile.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class CallUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + phoneExtension: string; + phoneNumber: string; + +} + +export { + CallUserFactorProfile +}; diff --git a/src/types/models/CatalogApplication.d.ts b/src/types/models/CatalogApplication.d.ts new file mode 100644 index 000000000..dae1880fb --- /dev/null +++ b/src/types/models/CatalogApplication.d.ts @@ -0,0 +1,40 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { CatalogApplicationStatus } from './CatalogApplicationStatus'; + +declare class CatalogApplication extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + category: string; + description: string; + displayName: string; + features: []; + readonly id: string; + readonly lastUpdated: string; + name: string; + signOnModes: []; + status: CatalogApplicationStatus; + verificationStatus: string; + website: string; + +} + +export { + CatalogApplication +}; diff --git a/src/types/models/CatalogApplicationStatus.d.ts b/src/types/models/CatalogApplicationStatus.d.ts new file mode 100644 index 000000000..51a969b2c --- /dev/null +++ b/src/types/models/CatalogApplicationStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class CatalogApplicationStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + CatalogApplicationStatus +}; diff --git a/src/types/models/ChangePasswordRequest.d.ts b/src/types/models/ChangePasswordRequest.d.ts new file mode 100644 index 000000000..e64e940f9 --- /dev/null +++ b/src/types/models/ChangePasswordRequest.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordCredential } from './PasswordCredential'; + +declare class ChangePasswordRequest extends Resource { + constructor(resourceJson: Record, client: Client); + + newPassword: PasswordCredential; + oldPassword: PasswordCredential; + +} + +export { + ChangePasswordRequest +}; diff --git a/src/types/models/ClientPolicyCondition.d.ts b/src/types/models/ClientPolicyCondition.d.ts new file mode 100644 index 000000000..f2272fa68 --- /dev/null +++ b/src/types/models/ClientPolicyCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ClientPolicyCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + include: []; + +} + +export { + ClientPolicyCondition +}; diff --git a/src/types/models/ContextPolicyRuleCondition.d.ts b/src/types/models/ContextPolicyRuleCondition.d.ts new file mode 100644 index 000000000..c7961ff69 --- /dev/null +++ b/src/types/models/ContextPolicyRuleCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ContextPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + expression: string; + +} + +export { + ContextPolicyRuleCondition +}; diff --git a/src/types/models/CreateSessionRequest.d.ts b/src/types/models/CreateSessionRequest.d.ts new file mode 100644 index 000000000..d6d461562 --- /dev/null +++ b/src/types/models/CreateSessionRequest.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class CreateSessionRequest extends Resource { + constructor(resourceJson: Record, client: Client); + + sessionToken: string; + +} + +export { + CreateSessionRequest +}; diff --git a/src/types/models/CreateUserRequest.d.ts b/src/types/models/CreateUserRequest.d.ts new file mode 100644 index 000000000..b1205ee50 --- /dev/null +++ b/src/types/models/CreateUserRequest.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { UserCredentials } from './UserCredentials'; +import { UserProfile } from './UserProfile'; +import { UserType } from './UserType'; + +declare class CreateUserRequest extends Resource { + constructor(resourceJson: Record, client: Client); + + credentials: UserCredentials; + groupIds: []; + profile: UserProfile; + type: UserType; + +} + +export { + CreateUserRequest +}; diff --git a/src/types/models/Csr.d.ts b/src/types/models/Csr.d.ts new file mode 100644 index 000000000..d6ba55d0d --- /dev/null +++ b/src/types/models/Csr.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class Csr extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly created: string; + readonly csr: string; + readonly id: string; + readonly kty: string; + +} + +export { + Csr +}; diff --git a/src/types/models/CsrMetadata.d.ts b/src/types/models/CsrMetadata.d.ts new file mode 100644 index 000000000..6d1305125 --- /dev/null +++ b/src/types/models/CsrMetadata.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { CsrMetadataSubject } from './CsrMetadataSubject'; +import { CsrMetadataSubjectAltNames } from './CsrMetadataSubjectAltNames'; + +declare class CsrMetadata extends Resource { + constructor(resourceJson: Record, client: Client); + + subject: CsrMetadataSubject; + subjectAltNames: CsrMetadataSubjectAltNames; + +} + +export { + CsrMetadata +}; diff --git a/src/types/models/CsrMetadataSubject.d.ts b/src/types/models/CsrMetadataSubject.d.ts new file mode 100644 index 000000000..f8e05732d --- /dev/null +++ b/src/types/models/CsrMetadataSubject.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class CsrMetadataSubject extends Resource { + constructor(resourceJson: Record, client: Client); + + commonName: string; + countryName: string; + localityName: string; + organizationName: string; + organizationalUnitName: string; + stateOrProvinceName: string; + +} + +export { + CsrMetadataSubject +}; diff --git a/src/types/models/CsrMetadataSubjectAltNames.d.ts b/src/types/models/CsrMetadataSubjectAltNames.d.ts new file mode 100644 index 000000000..7d38eb063 --- /dev/null +++ b/src/types/models/CsrMetadataSubjectAltNames.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class CsrMetadataSubjectAltNames extends Resource { + constructor(resourceJson: Record, client: Client); + + dnsNames: []; + +} + +export { + CsrMetadataSubjectAltNames +}; diff --git a/src/types/models/CustomHotpUserFactor.d.ts b/src/types/models/CustomHotpUserFactor.d.ts new file mode 100644 index 000000000..678a3bcdf --- /dev/null +++ b/src/types/models/CustomHotpUserFactor.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { CustomHotpUserFactorProfile } from './CustomHotpUserFactorProfile'; + +declare class CustomHotpUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + factorProfileId: string; + profile: CustomHotpUserFactorProfile; + +} + +export { + CustomHotpUserFactor +}; diff --git a/src/types/models/CustomHotpUserFactorProfile.d.ts b/src/types/models/CustomHotpUserFactorProfile.d.ts new file mode 100644 index 000000000..f2a3afcb4 --- /dev/null +++ b/src/types/models/CustomHotpUserFactorProfile.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class CustomHotpUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + sharedSecret: string; + +} + +export { + CustomHotpUserFactorProfile +}; diff --git a/src/types/models/DevicePolicyRuleCondition.d.ts b/src/types/models/DevicePolicyRuleCondition.d.ts new file mode 100644 index 000000000..ce14f5e80 --- /dev/null +++ b/src/types/models/DevicePolicyRuleCondition.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { DevicePolicyRuleConditionPlatform } from './DevicePolicyRuleConditionPlatform'; + +declare class DevicePolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + migrated: boolean; + platform: DevicePolicyRuleConditionPlatform; + rooted: boolean; + trustLevel: string; + +} + +export { + DevicePolicyRuleCondition +}; diff --git a/src/types/models/DevicePolicyRuleConditionPlatform.d.ts b/src/types/models/DevicePolicyRuleConditionPlatform.d.ts new file mode 100644 index 000000000..9aafa695d --- /dev/null +++ b/src/types/models/DevicePolicyRuleConditionPlatform.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class DevicePolicyRuleConditionPlatform extends Resource { + constructor(resourceJson: Record, client: Client); + + supportedMDMFrameworks: []; + types: []; + +} + +export { + DevicePolicyRuleConditionPlatform +}; diff --git a/src/types/models/Duration.d.ts b/src/types/models/Duration.d.ts new file mode 100644 index 000000000..ee609ae8f --- /dev/null +++ b/src/types/models/Duration.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class Duration extends Resource { + constructor(resourceJson: Record, client: Client); + + number: number; + unit: string; + +} + +export { + Duration +}; diff --git a/src/types/models/EmailUserFactor.d.ts b/src/types/models/EmailUserFactor.d.ts new file mode 100644 index 000000000..666cb3e63 --- /dev/null +++ b/src/types/models/EmailUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { EmailUserFactorProfile } from './EmailUserFactorProfile'; + +declare class EmailUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: EmailUserFactorProfile; + +} + +export { + EmailUserFactor +}; diff --git a/src/types/models/EmailUserFactorProfile.d.ts b/src/types/models/EmailUserFactorProfile.d.ts new file mode 100644 index 000000000..17d7b0858 --- /dev/null +++ b/src/types/models/EmailUserFactorProfile.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class EmailUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + email: string; + +} + +export { + EmailUserFactorProfile +}; diff --git a/src/types/models/EnabledStatus.d.ts b/src/types/models/EnabledStatus.d.ts new file mode 100644 index 000000000..6a639a45e --- /dev/null +++ b/src/types/models/EnabledStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class EnabledStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + EnabledStatus +}; diff --git a/src/types/models/EventHook.d.ts b/src/types/models/EventHook.d.ts new file mode 100644 index 000000000..7b58c2964 --- /dev/null +++ b/src/types/models/EventHook.d.ts @@ -0,0 +1,45 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import { EventHookChannel } from './EventHookChannel'; +import { EventSubscriptions } from './EventSubscriptions'; + +declare class EventHook extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + channel: EventHookChannel; + readonly created: string; + createdBy: string; + events: EventSubscriptions; + readonly id: string; + readonly lastUpdated: string; + name: string; + status: string; + verificationStatus: string; + + update(): Promise; + delete(): Promise; + activate(): Promise; + deactivate(): Promise; + verify(): Promise; +} + +export { + EventHook +}; diff --git a/src/types/models/EventHookChannel.d.ts b/src/types/models/EventHookChannel.d.ts new file mode 100644 index 000000000..5cc0c6964 --- /dev/null +++ b/src/types/models/EventHookChannel.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { EventHookChannelConfig } from './EventHookChannelConfig'; + +declare class EventHookChannel extends Resource { + constructor(resourceJson: Record, client: Client); + + config: EventHookChannelConfig; + type: string; + version: string; + +} + +export { + EventHookChannel +}; diff --git a/src/types/models/EventHookChannelConfig.d.ts b/src/types/models/EventHookChannelConfig.d.ts new file mode 100644 index 000000000..25f224f3e --- /dev/null +++ b/src/types/models/EventHookChannelConfig.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { EventHookChannelConfigAuthScheme } from './EventHookChannelConfigAuthScheme'; + +declare class EventHookChannelConfig extends Resource { + constructor(resourceJson: Record, client: Client); + + authScheme: EventHookChannelConfigAuthScheme; + headers: []; + uri: string; + +} + +export { + EventHookChannelConfig +}; diff --git a/src/types/models/EventHookChannelConfigAuthScheme.d.ts b/src/types/models/EventHookChannelConfigAuthScheme.d.ts new file mode 100644 index 000000000..496cc7574 --- /dev/null +++ b/src/types/models/EventHookChannelConfigAuthScheme.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { EventHookChannelConfigAuthSchemeType } from './EventHookChannelConfigAuthSchemeType'; + +declare class EventHookChannelConfigAuthScheme extends Resource { + constructor(resourceJson: Record, client: Client); + + key: string; + type: EventHookChannelConfigAuthSchemeType; + value: string; + +} + +export { + EventHookChannelConfigAuthScheme +}; diff --git a/src/types/models/EventHookChannelConfigAuthSchemeType.d.ts b/src/types/models/EventHookChannelConfigAuthSchemeType.d.ts new file mode 100644 index 000000000..c9b6c8537 --- /dev/null +++ b/src/types/models/EventHookChannelConfigAuthSchemeType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class EventHookChannelConfigAuthSchemeType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + EventHookChannelConfigAuthSchemeType +}; diff --git a/src/types/models/EventHookChannelConfigHeader.d.ts b/src/types/models/EventHookChannelConfigHeader.d.ts new file mode 100644 index 000000000..23f5c47fd --- /dev/null +++ b/src/types/models/EventHookChannelConfigHeader.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class EventHookChannelConfigHeader extends Resource { + constructor(resourceJson: Record, client: Client); + + key: string; + value: string; + +} + +export { + EventHookChannelConfigHeader +}; diff --git a/src/types/models/EventSubscriptions.d.ts b/src/types/models/EventSubscriptions.d.ts new file mode 100644 index 000000000..bf57560c7 --- /dev/null +++ b/src/types/models/EventSubscriptions.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class EventSubscriptions extends Resource { + constructor(resourceJson: Record, client: Client); + + items: []; + type: string; + +} + +export { + EventSubscriptions +}; diff --git a/src/types/models/FactorProvider.d.ts b/src/types/models/FactorProvider.d.ts new file mode 100644 index 000000000..9b47f28bc --- /dev/null +++ b/src/types/models/FactorProvider.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class FactorProvider extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + FactorProvider +}; diff --git a/src/types/models/FactorResultType.d.ts b/src/types/models/FactorResultType.d.ts new file mode 100644 index 000000000..401cd970c --- /dev/null +++ b/src/types/models/FactorResultType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class FactorResultType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + FactorResultType +}; diff --git a/src/types/models/FactorStatus.d.ts b/src/types/models/FactorStatus.d.ts new file mode 100644 index 000000000..cce54a539 --- /dev/null +++ b/src/types/models/FactorStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class FactorStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + FactorStatus +}; diff --git a/src/types/models/FactorType.d.ts b/src/types/models/FactorType.d.ts new file mode 100644 index 000000000..6d3c85236 --- /dev/null +++ b/src/types/models/FactorType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class FactorType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + FactorType +}; diff --git a/src/types/models/Feature.d.ts b/src/types/models/Feature.d.ts new file mode 100644 index 000000000..811b6a2aa --- /dev/null +++ b/src/types/models/Feature.d.ts @@ -0,0 +1,43 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import Collection from '../collection'; +import { FeatureStage } from './FeatureStage'; +import { EnabledStatus } from './EnabledStatus'; +import { FeatureType } from './FeatureType'; + +declare class Feature extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + description: string; + readonly id: string; + name: string; + stage: FeatureStage; + status: EnabledStatus; + type: FeatureType; + + updateLifecycle(lifecycle: string, queryParameters?: { + mode?: string, + }): Promise; + getDependents(): Collection; + getDependencies(): Collection; +} + +export { + Feature +}; diff --git a/src/types/models/FeatureStage.d.ts b/src/types/models/FeatureStage.d.ts new file mode 100644 index 000000000..af79cd588 --- /dev/null +++ b/src/types/models/FeatureStage.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { FeatureStageState } from './FeatureStageState'; +import { FeatureStageValue } from './FeatureStageValue'; + +declare class FeatureStage extends Resource { + constructor(resourceJson: Record, client: Client); + + state: FeatureStageState; + value: FeatureStageValue; + +} + +export { + FeatureStage +}; diff --git a/src/types/models/FeatureStageState.d.ts b/src/types/models/FeatureStageState.d.ts new file mode 100644 index 000000000..f35458662 --- /dev/null +++ b/src/types/models/FeatureStageState.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class FeatureStageState extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + FeatureStageState +}; diff --git a/src/types/models/FeatureStageValue.d.ts b/src/types/models/FeatureStageValue.d.ts new file mode 100644 index 000000000..edc8bb8bb --- /dev/null +++ b/src/types/models/FeatureStageValue.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class FeatureStageValue extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + FeatureStageValue +}; diff --git a/src/types/models/FeatureType.d.ts b/src/types/models/FeatureType.d.ts new file mode 100644 index 000000000..0f840f4f0 --- /dev/null +++ b/src/types/models/FeatureType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class FeatureType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + FeatureType +}; diff --git a/src/types/models/ForgotPasswordResponse.d.ts b/src/types/models/ForgotPasswordResponse.d.ts new file mode 100644 index 000000000..2ed443c3f --- /dev/null +++ b/src/types/models/ForgotPasswordResponse.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ForgotPasswordResponse extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly resetPasswordUrl: string; + +} + +export { + ForgotPasswordResponse +}; diff --git a/src/types/models/GrantTypePolicyRuleCondition.d.ts b/src/types/models/GrantTypePolicyRuleCondition.d.ts new file mode 100644 index 000000000..ef4945840 --- /dev/null +++ b/src/types/models/GrantTypePolicyRuleCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GrantTypePolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + include: []; + +} + +export { + GrantTypePolicyRuleCondition +}; diff --git a/src/types/models/Group.d.ts b/src/types/models/Group.d.ts new file mode 100644 index 000000000..f5d68092e --- /dev/null +++ b/src/types/models/Group.d.ts @@ -0,0 +1,58 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import Collection from '../collection'; +import { User } from './User'; +import { Application } from './Application'; +import { AssignRoleRequest } from './AssignRoleRequest'; +import { Role } from './Role'; +import { GroupProfile } from './GroupProfile'; +import { GroupType } from './GroupType'; + +declare class Group extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + readonly created: string; + readonly id: string; + readonly lastMembershipUpdated: string; + readonly lastUpdated: string; + readonly objectClass: []; + profile: GroupProfile; + readonly type: GroupType; + + update(): Promise; + delete(): Promise; + removeUser(userId: string): Promise; + listUsers(queryParameters?: { + after?: string, + limit?: number, + }): Collection; + listApplications(queryParameters?: { + after?: string, + limit?: number, + }): Collection; + assignRole(assignRoleRequest: AssignRoleRequest, queryParameters?: { + disableNotifications?: string, + }): Promise; +} + +export { + Group +}; diff --git a/src/types/models/GroupCondition.d.ts b/src/types/models/GroupCondition.d.ts new file mode 100644 index 000000000..700f86f8d --- /dev/null +++ b/src/types/models/GroupCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + include: []; + +} + +export { + GroupCondition +}; diff --git a/src/types/models/GroupPolicyRuleCondition.d.ts b/src/types/models/GroupPolicyRuleCondition.d.ts new file mode 100644 index 000000000..c9a605b8a --- /dev/null +++ b/src/types/models/GroupPolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + include: []; + +} + +export { + GroupPolicyRuleCondition +}; diff --git a/src/types/models/GroupProfile.d.ts b/src/types/models/GroupProfile.d.ts new file mode 100644 index 000000000..bd9581c37 --- /dev/null +++ b/src/types/models/GroupProfile.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + description: string; + name: string; + +} + +export { + GroupProfile +}; diff --git a/src/types/models/GroupRule.d.ts b/src/types/models/GroupRule.d.ts new file mode 100644 index 000000000..cd6a4a875 --- /dev/null +++ b/src/types/models/GroupRule.d.ts @@ -0,0 +1,44 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import { GroupRuleAction } from './GroupRuleAction'; +import { GroupRuleConditions } from './GroupRuleConditions'; +import { GroupRuleStatus } from './GroupRuleStatus'; + +declare class GroupRule extends Resource { + constructor(resourceJson: Record, client: Client); + + actions: GroupRuleAction; + conditions: GroupRuleConditions; + readonly created: string; + readonly id: string; + readonly lastUpdated: string; + name: string; + readonly status: GroupRuleStatus; + type: string; + + update(): Promise; + delete(): Promise; + activate(): Promise; + deactivate(): Promise; +} + +export { + GroupRule +}; +export default GroupRule; diff --git a/src/types/models/GroupRuleAction.d.ts b/src/types/models/GroupRuleAction.d.ts new file mode 100644 index 000000000..1cd194519 --- /dev/null +++ b/src/types/models/GroupRuleAction.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { GroupRuleGroupAssignment } from './GroupRuleGroupAssignment'; + +declare class GroupRuleAction extends Resource { + constructor(resourceJson: Record, client: Client); + + assignUserToGroups: GroupRuleGroupAssignment; + +} + +export { + GroupRuleAction +}; diff --git a/src/types/models/GroupRuleConditions.d.ts b/src/types/models/GroupRuleConditions.d.ts new file mode 100644 index 000000000..b288d8b75 --- /dev/null +++ b/src/types/models/GroupRuleConditions.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { GroupRuleExpression } from './GroupRuleExpression'; +import { GroupRulePeopleCondition } from './GroupRulePeopleCondition'; + +declare class GroupRuleConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + expression: GroupRuleExpression; + people: GroupRulePeopleCondition; + +} + +export { + GroupRuleConditions +}; diff --git a/src/types/models/GroupRuleExpression.d.ts b/src/types/models/GroupRuleExpression.d.ts new file mode 100644 index 000000000..637dde693 --- /dev/null +++ b/src/types/models/GroupRuleExpression.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupRuleExpression extends Resource { + constructor(resourceJson: Record, client: Client); + + type: string; + value: string; + +} + +export { + GroupRuleExpression +}; diff --git a/src/types/models/GroupRuleGroupAssignment.d.ts b/src/types/models/GroupRuleGroupAssignment.d.ts new file mode 100644 index 000000000..26ef6c4f5 --- /dev/null +++ b/src/types/models/GroupRuleGroupAssignment.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupRuleGroupAssignment extends Resource { + constructor(resourceJson: Record, client: Client); + + groupIds: []; + +} + +export { + GroupRuleGroupAssignment +}; diff --git a/src/types/models/GroupRuleGroupCondition.d.ts b/src/types/models/GroupRuleGroupCondition.d.ts new file mode 100644 index 000000000..1a1e636f5 --- /dev/null +++ b/src/types/models/GroupRuleGroupCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupRuleGroupCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + include: []; + +} + +export { + GroupRuleGroupCondition +}; diff --git a/src/types/models/GroupRulePeopleCondition.d.ts b/src/types/models/GroupRulePeopleCondition.d.ts new file mode 100644 index 000000000..0412436b5 --- /dev/null +++ b/src/types/models/GroupRulePeopleCondition.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { GroupRuleGroupCondition } from './GroupRuleGroupCondition'; +import { GroupRuleUserCondition } from './GroupRuleUserCondition'; + +declare class GroupRulePeopleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + groups: GroupRuleGroupCondition; + users: GroupRuleUserCondition; + +} + +export { + GroupRulePeopleCondition +}; diff --git a/src/types/models/GroupRuleStatus.d.ts b/src/types/models/GroupRuleStatus.d.ts new file mode 100644 index 000000000..139540fb6 --- /dev/null +++ b/src/types/models/GroupRuleStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupRuleStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + GroupRuleStatus +}; diff --git a/src/types/models/GroupRuleUserCondition.d.ts b/src/types/models/GroupRuleUserCondition.d.ts new file mode 100644 index 000000000..bd4e6aeb5 --- /dev/null +++ b/src/types/models/GroupRuleUserCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupRuleUserCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + include: []; + +} + +export { + GroupRuleUserCondition +}; diff --git a/src/types/models/GroupType.d.ts b/src/types/models/GroupType.d.ts new file mode 100644 index 000000000..68121a174 --- /dev/null +++ b/src/types/models/GroupType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class GroupType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + GroupType +}; diff --git a/src/types/models/HardwareUserFactor.d.ts b/src/types/models/HardwareUserFactor.d.ts new file mode 100644 index 000000000..d681e6bbf --- /dev/null +++ b/src/types/models/HardwareUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { HardwareUserFactorProfile } from './HardwareUserFactorProfile'; + +declare class HardwareUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: HardwareUserFactorProfile; + +} + +export { + HardwareUserFactor +}; diff --git a/src/types/models/HardwareUserFactorProfile.d.ts b/src/types/models/HardwareUserFactorProfile.d.ts new file mode 100644 index 000000000..898c90f6f --- /dev/null +++ b/src/types/models/HardwareUserFactorProfile.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class HardwareUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + credentialId: string; + +} + +export { + HardwareUserFactorProfile +}; diff --git a/src/types/models/IdentityProvider.d.ts b/src/types/models/IdentityProvider.d.ts new file mode 100644 index 000000000..054b8080b --- /dev/null +++ b/src/types/models/IdentityProvider.d.ts @@ -0,0 +1,68 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import Collection from '../collection'; +import { Csr } from './Csr'; +import { CsrMetadata } from './CsrMetadata'; +import { Response } from 'node-fetch'; +import { JsonWebKey } from './JsonWebKey'; +import { IdentityProviderApplicationUser } from './IdentityProviderApplicationUser'; +import { UserIdentityProviderLinkRequest } from './UserIdentityProviderLinkRequest'; +import { SocialAuthToken } from './SocialAuthToken'; +import { IdentityProviderPolicy } from './IdentityProviderPolicy'; +import { Protocol } from './Protocol'; + +declare class IdentityProvider extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + readonly created: string; + readonly id: string; + issuerMode: string; + readonly lastUpdated: string; + name: string; + policy: IdentityProviderPolicy; + protocol: Protocol; + status: string; + type: string; + + update(): Promise; + delete(): Promise; + listSigningCsrs(): Collection; + generateCsr(csrMetadata: CsrMetadata): Promise; + deleteSigningCsr(csrId: string): Promise; + getSigningCsr(csrId: string): Promise; + listSigningKeys(): Collection; + generateSigningKey(queryParameters: { + validityYears: number, + }): Promise; + getSigningKey(keyId: string): Promise; + cloneKey(keyId: string, queryParameters: { + targetIdpId: string, + }): Promise; + activate(): Promise; + deactivate(): Promise; + listUsers(): Collection; + unlinkUser(userId: string): Promise; + getUser(userId: string): Promise; + linkUser(userId: string, userIdentityProviderLinkRequest: UserIdentityProviderLinkRequest): Promise; + listSocialAuthTokens(userId: string): Collection; +} + +export { + IdentityProvider +}; diff --git a/src/types/models/IdentityProviderApplicationUser.d.ts b/src/types/models/IdentityProviderApplicationUser.d.ts new file mode 100644 index 000000000..007d3f9b9 --- /dev/null +++ b/src/types/models/IdentityProviderApplicationUser.d.ts @@ -0,0 +1,35 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class IdentityProviderApplicationUser extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + created: string; + externalId: string; + readonly id: string; + lastUpdated: string; + profile: {[name: string]: unknown}; + +} + +export { + IdentityProviderApplicationUser +}; diff --git a/src/types/models/IdentityProviderCredentials.d.ts b/src/types/models/IdentityProviderCredentials.d.ts new file mode 100644 index 000000000..df335203c --- /dev/null +++ b/src/types/models/IdentityProviderCredentials.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { IdentityProviderCredentialsClient } from './IdentityProviderCredentialsClient'; +import { IdentityProviderCredentialsSigning } from './IdentityProviderCredentialsSigning'; +import { IdentityProviderCredentialsTrust } from './IdentityProviderCredentialsTrust'; + +declare class IdentityProviderCredentials extends Resource { + constructor(resourceJson: Record, client: Client); + + client: IdentityProviderCredentialsClient; + signing: IdentityProviderCredentialsSigning; + trust: IdentityProviderCredentialsTrust; + +} + +export { + IdentityProviderCredentials +}; diff --git a/src/types/models/IdentityProviderCredentialsClient.d.ts b/src/types/models/IdentityProviderCredentialsClient.d.ts new file mode 100644 index 000000000..7d67ce97a --- /dev/null +++ b/src/types/models/IdentityProviderCredentialsClient.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class IdentityProviderCredentialsClient extends Resource { + constructor(resourceJson: Record, client: Client); + + client_id: string; + client_secret: string; + +} + +export { + IdentityProviderCredentialsClient +}; diff --git a/src/types/models/IdentityProviderCredentialsSigning.d.ts b/src/types/models/IdentityProviderCredentialsSigning.d.ts new file mode 100644 index 000000000..3373f6649 --- /dev/null +++ b/src/types/models/IdentityProviderCredentialsSigning.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class IdentityProviderCredentialsSigning extends Resource { + constructor(resourceJson: Record, client: Client); + + kid: string; + +} + +export { + IdentityProviderCredentialsSigning +}; diff --git a/src/types/models/IdentityProviderCredentialsTrust.d.ts b/src/types/models/IdentityProviderCredentialsTrust.d.ts new file mode 100644 index 000000000..ef8efe41e --- /dev/null +++ b/src/types/models/IdentityProviderCredentialsTrust.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class IdentityProviderCredentialsTrust extends Resource { + constructor(resourceJson: Record, client: Client); + + audience: string; + issuer: string; + kid: string; + revocation: string; + revocationCacheLifetime: number; + +} + +export { + IdentityProviderCredentialsTrust +}; diff --git a/src/types/models/IdentityProviderPolicy.d.ts b/src/types/models/IdentityProviderPolicy.d.ts new file mode 100644 index 000000000..3c449943e --- /dev/null +++ b/src/types/models/IdentityProviderPolicy.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Policy } from './Policy'; +import Client from '../client'; +import { PolicyAccountLink } from './PolicyAccountLink'; +import { Provisioning } from './Provisioning'; +import { PolicySubject } from './PolicySubject'; + +declare class IdentityProviderPolicy extends Policy { + constructor(resourceJson: Record, client: Client); + + accountLink: PolicyAccountLink; + maxClockSkew: number; + provisioning: Provisioning; + subject: PolicySubject; + +} + +export { + IdentityProviderPolicy +}; diff --git a/src/types/models/IdentityProviderPolicyRuleCondition.d.ts b/src/types/models/IdentityProviderPolicyRuleCondition.d.ts new file mode 100644 index 000000000..24939006d --- /dev/null +++ b/src/types/models/IdentityProviderPolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class IdentityProviderPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + idpIds: []; + provider: string; + +} + +export { + IdentityProviderPolicyRuleCondition +}; diff --git a/src/types/models/InactivityPolicyRuleCondition.d.ts b/src/types/models/InactivityPolicyRuleCondition.d.ts new file mode 100644 index 000000000..9c9377534 --- /dev/null +++ b/src/types/models/InactivityPolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InactivityPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + number: number; + unit: string; + +} + +export { + InactivityPolicyRuleCondition +}; diff --git a/src/types/models/InlineHook.d.ts b/src/types/models/InlineHook.d.ts new file mode 100644 index 000000000..fbb45f605 --- /dev/null +++ b/src/types/models/InlineHook.d.ts @@ -0,0 +1,47 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { InlineHookPayload } from './InlineHookPayload'; +import { InlineHookResponse } from './InlineHookResponse'; +import { Response } from 'node-fetch'; +import { InlineHookChannel } from './InlineHookChannel'; +import { InlineHookStatus } from './InlineHookStatus'; +import { InlineHookType } from './InlineHookType'; + +declare class InlineHook extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + channel: InlineHookChannel; + readonly created: string; + readonly id: string; + readonly lastUpdated: string; + name: string; + status: InlineHookStatus; + type: InlineHookType; + version: string; + + update(): Promise; + delete(): Promise; + activate(): Promise; + deactivate(): Promise; + execute(inlineHookPayload: InlineHookPayload): Promise; +} + +export { + InlineHook +}; diff --git a/src/types/models/InlineHookChannel.d.ts b/src/types/models/InlineHookChannel.d.ts new file mode 100644 index 000000000..df192f717 --- /dev/null +++ b/src/types/models/InlineHookChannel.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { InlineHookChannelConfig } from './InlineHookChannelConfig'; + +declare class InlineHookChannel extends Resource { + constructor(resourceJson: Record, client: Client); + + config: InlineHookChannelConfig; + type: string; + version: string; + +} + +export { + InlineHookChannel +}; diff --git a/src/types/models/InlineHookChannelConfig.d.ts b/src/types/models/InlineHookChannelConfig.d.ts new file mode 100644 index 000000000..9ee9127e8 --- /dev/null +++ b/src/types/models/InlineHookChannelConfig.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { InlineHookChannelConfigAuthScheme } from './InlineHookChannelConfigAuthScheme'; + +declare class InlineHookChannelConfig extends Resource { + constructor(resourceJson: Record, client: Client); + + authScheme: InlineHookChannelConfigAuthScheme; + headers: []; + uri: string; + +} + +export { + InlineHookChannelConfig +}; diff --git a/src/types/models/InlineHookChannelConfigAuthScheme.d.ts b/src/types/models/InlineHookChannelConfigAuthScheme.d.ts new file mode 100644 index 000000000..21d591a28 --- /dev/null +++ b/src/types/models/InlineHookChannelConfigAuthScheme.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InlineHookChannelConfigAuthScheme extends Resource { + constructor(resourceJson: Record, client: Client); + + key: string; + type: string; + value: string; + +} + +export { + InlineHookChannelConfigAuthScheme +}; diff --git a/src/types/models/InlineHookChannelConfigHeaders.d.ts b/src/types/models/InlineHookChannelConfigHeaders.d.ts new file mode 100644 index 000000000..1619a388e --- /dev/null +++ b/src/types/models/InlineHookChannelConfigHeaders.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InlineHookChannelConfigHeaders extends Resource { + constructor(resourceJson: Record, client: Client); + + key: string; + value: string; + +} + +export { + InlineHookChannelConfigHeaders +}; diff --git a/src/types/models/InlineHookPayload.d.ts b/src/types/models/InlineHookPayload.d.ts new file mode 100644 index 000000000..96629671a --- /dev/null +++ b/src/types/models/InlineHookPayload.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InlineHookPayload extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + InlineHookPayload +}; diff --git a/src/types/models/InlineHookResponse.d.ts b/src/types/models/InlineHookResponse.d.ts new file mode 100644 index 000000000..dd50220d6 --- /dev/null +++ b/src/types/models/InlineHookResponse.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InlineHookResponse extends Resource { + constructor(resourceJson: Record, client: Client); + + commands: []; + +} + +export { + InlineHookResponse +}; diff --git a/src/types/models/InlineHookResponseCommandValue.d.ts b/src/types/models/InlineHookResponseCommandValue.d.ts new file mode 100644 index 000000000..a7d608d7f --- /dev/null +++ b/src/types/models/InlineHookResponseCommandValue.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InlineHookResponseCommandValue extends Resource { + constructor(resourceJson: Record, client: Client); + + op: string; + path: string; + value: string; + +} + +export { + InlineHookResponseCommandValue +}; diff --git a/src/types/models/InlineHookResponseCommands.d.ts b/src/types/models/InlineHookResponseCommands.d.ts new file mode 100644 index 000000000..8f1a3be46 --- /dev/null +++ b/src/types/models/InlineHookResponseCommands.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InlineHookResponseCommands extends Resource { + constructor(resourceJson: Record, client: Client); + + type: string; + value: []; + +} + +export { + InlineHookResponseCommands +}; diff --git a/src/types/models/InlineHookStatus.d.ts b/src/types/models/InlineHookStatus.d.ts new file mode 100644 index 000000000..b5bfb2eb5 --- /dev/null +++ b/src/types/models/InlineHookStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InlineHookStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + InlineHookStatus +}; diff --git a/src/types/models/InlineHookType.d.ts b/src/types/models/InlineHookType.d.ts new file mode 100644 index 000000000..b08d26a27 --- /dev/null +++ b/src/types/models/InlineHookType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class InlineHookType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + InlineHookType +}; diff --git a/src/types/models/IonField.d.ts b/src/types/models/IonField.d.ts new file mode 100644 index 000000000..134db4e96 --- /dev/null +++ b/src/types/models/IonField.d.ts @@ -0,0 +1,37 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { IonForm } from './IonForm'; + +declare class IonField extends Resource { + constructor(resourceJson: Record, client: Client); + + form: IonForm; + label: string; + mutable: boolean; + name: string; + required: boolean; + secret: boolean; + type: string; + value: {[name: string]: unknown}; + visible: boolean; + +} + +export { + IonField +}; diff --git a/src/types/models/IonForm.d.ts b/src/types/models/IonForm.d.ts new file mode 100644 index 000000000..477fa1e8d --- /dev/null +++ b/src/types/models/IonForm.d.ts @@ -0,0 +1,37 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class IonForm extends Resource { + constructor(resourceJson: Record, client: Client); + + accepts: string; + href: string; + method: string; + name: string; + produces: string; + refresh: number; + rel: []; + relatesTo: []; + readonly value: []; + +} + +export { + IonForm +}; diff --git a/src/types/models/JsonWebKey.d.ts b/src/types/models/JsonWebKey.d.ts new file mode 100644 index 000000000..8c02c7016 --- /dev/null +++ b/src/types/models/JsonWebKey.d.ts @@ -0,0 +1,44 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class JsonWebKey extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + alg: string; + readonly created: string; + e: string; + readonly expiresAt: string; + key_ops: []; + kid: string; + kty: string; + readonly lastUpdated: string; + n: string; + readonly status: string; + use: string; + x5c: []; + x5t: string; + 'x5t#S256': string; + x5u: string; + +} + +export { + JsonWebKey +}; diff --git a/src/types/models/JwkUse.d.ts b/src/types/models/JwkUse.d.ts new file mode 100644 index 000000000..ca581db62 --- /dev/null +++ b/src/types/models/JwkUse.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class JwkUse extends Resource { + constructor(resourceJson: Record, client: Client); + + use: string; + +} + +export { + JwkUse +}; diff --git a/src/types/models/LifecycleExpirationPolicyRuleCondition.d.ts b/src/types/models/LifecycleExpirationPolicyRuleCondition.d.ts new file mode 100644 index 000000000..8d2e4354e --- /dev/null +++ b/src/types/models/LifecycleExpirationPolicyRuleCondition.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LifecycleExpirationPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + lifecycleStatus: string; + number: number; + unit: string; + +} + +export { + LifecycleExpirationPolicyRuleCondition +}; diff --git a/src/types/models/LinkedObject.d.ts b/src/types/models/LinkedObject.d.ts new file mode 100644 index 000000000..c7ea28b86 --- /dev/null +++ b/src/types/models/LinkedObject.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import { LinkedObjectDetails } from './LinkedObjectDetails'; + +declare class LinkedObject extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + associated: LinkedObjectDetails; + primary: LinkedObjectDetails; + + delete(): Promise; +} + +export { + LinkedObject +}; diff --git a/src/types/models/LinkedObjectDetails.d.ts b/src/types/models/LinkedObjectDetails.d.ts new file mode 100644 index 000000000..c6999d005 --- /dev/null +++ b/src/types/models/LinkedObjectDetails.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { LinkedObjectDetailsType } from './LinkedObjectDetailsType'; + +declare class LinkedObjectDetails extends Resource { + constructor(resourceJson: Record, client: Client); + + description: string; + name: string; + title: string; + type: LinkedObjectDetailsType; + +} + +export { + LinkedObjectDetails +}; diff --git a/src/types/models/LinkedObjectDetailsType.d.ts b/src/types/models/LinkedObjectDetailsType.d.ts new file mode 100644 index 000000000..a5ea9eeb1 --- /dev/null +++ b/src/types/models/LinkedObjectDetailsType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LinkedObjectDetailsType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + LinkedObjectDetailsType +}; diff --git a/src/types/models/LogActor.d.ts b/src/types/models/LogActor.d.ts new file mode 100644 index 000000000..b2e52cb60 --- /dev/null +++ b/src/types/models/LogActor.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogActor extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly alternateId: string; + readonly detail: {[name: string]: unknown}; + readonly displayName: string; + readonly id: string; + readonly type: string; + +} + +export { + LogActor +}; diff --git a/src/types/models/LogAuthenticationContext.d.ts b/src/types/models/LogAuthenticationContext.d.ts new file mode 100644 index 000000000..f93061fcb --- /dev/null +++ b/src/types/models/LogAuthenticationContext.d.ts @@ -0,0 +1,38 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { LogAuthenticationProvider } from './LogAuthenticationProvider'; +import { LogCredentialProvider } from './LogCredentialProvider'; +import { LogCredentialType } from './LogCredentialType'; +import { LogIssuer } from './LogIssuer'; + +declare class LogAuthenticationContext extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly authenticationProvider: LogAuthenticationProvider; + readonly authenticationStep: number; + credentialProvider: LogCredentialProvider; + credentialType: LogCredentialType; + readonly externalSessionId: string; + readonly interface: string; + readonly issuer: LogIssuer; + +} + +export { + LogAuthenticationContext +}; diff --git a/src/types/models/LogAuthenticationProvider.d.ts b/src/types/models/LogAuthenticationProvider.d.ts new file mode 100644 index 000000000..a1382fdda --- /dev/null +++ b/src/types/models/LogAuthenticationProvider.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogAuthenticationProvider extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + LogAuthenticationProvider +}; diff --git a/src/types/models/LogClient.d.ts b/src/types/models/LogClient.d.ts new file mode 100644 index 000000000..c82278ca1 --- /dev/null +++ b/src/types/models/LogClient.d.ts @@ -0,0 +1,35 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { LogGeographicalContext } from './LogGeographicalContext'; +import { LogUserAgent } from './LogUserAgent'; + +declare class LogClient extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly device: string; + readonly geographicalContext: LogGeographicalContext; + readonly id: string; + readonly ipAddress: string; + readonly userAgent: LogUserAgent; + readonly zone: string; + +} + +export { + LogClient +}; diff --git a/src/types/models/LogCredentialProvider.d.ts b/src/types/models/LogCredentialProvider.d.ts new file mode 100644 index 000000000..9a4cec366 --- /dev/null +++ b/src/types/models/LogCredentialProvider.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogCredentialProvider extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + LogCredentialProvider +}; diff --git a/src/types/models/LogCredentialType.d.ts b/src/types/models/LogCredentialType.d.ts new file mode 100644 index 000000000..cd450d3ee --- /dev/null +++ b/src/types/models/LogCredentialType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogCredentialType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + LogCredentialType +}; diff --git a/src/types/models/LogDebugContext.d.ts b/src/types/models/LogDebugContext.d.ts new file mode 100644 index 000000000..b7de88169 --- /dev/null +++ b/src/types/models/LogDebugContext.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogDebugContext extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly debugData: {[name: string]: unknown}; + +} + +export { + LogDebugContext +}; diff --git a/src/types/models/LogEvent.d.ts b/src/types/models/LogEvent.d.ts new file mode 100644 index 000000000..6c92fa3ad --- /dev/null +++ b/src/types/models/LogEvent.d.ts @@ -0,0 +1,52 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { LogActor } from './LogActor'; +import { LogAuthenticationContext } from './LogAuthenticationContext'; +import { LogClient } from './LogClient'; +import { LogDebugContext } from './LogDebugContext'; +import { LogOutcome } from './LogOutcome'; +import { LogRequest } from './LogRequest'; +import { LogSecurityContext } from './LogSecurityContext'; +import { LogSeverity } from './LogSeverity'; +import { LogTransaction } from './LogTransaction'; + +declare class LogEvent extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly actor: LogActor; + readonly authenticationContext: LogAuthenticationContext; + readonly client: LogClient; + readonly debugContext: LogDebugContext; + readonly displayMessage: string; + readonly eventType: string; + readonly legacyEventType: string; + readonly outcome: LogOutcome; + readonly published: string; + readonly request: LogRequest; + readonly securityContext: LogSecurityContext; + readonly severity: LogSeverity; + readonly target: []; + readonly transaction: LogTransaction; + readonly uuid: string; + readonly version: string; + +} + +export { + LogEvent +}; diff --git a/src/types/models/LogGeographicalContext.d.ts b/src/types/models/LogGeographicalContext.d.ts new file mode 100644 index 000000000..da264a2ed --- /dev/null +++ b/src/types/models/LogGeographicalContext.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { LogGeolocation } from './LogGeolocation'; + +declare class LogGeographicalContext extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly city: string; + readonly country: string; + readonly geolocation: LogGeolocation; + readonly postalCode: string; + readonly state: string; + +} + +export { + LogGeographicalContext +}; diff --git a/src/types/models/LogGeolocation.d.ts b/src/types/models/LogGeolocation.d.ts new file mode 100644 index 000000000..0788f9dba --- /dev/null +++ b/src/types/models/LogGeolocation.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogGeolocation extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly lat: number; + readonly lon: number; + +} + +export { + LogGeolocation +}; diff --git a/src/types/models/LogIpAddress.d.ts b/src/types/models/LogIpAddress.d.ts new file mode 100644 index 000000000..311dfb870 --- /dev/null +++ b/src/types/models/LogIpAddress.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { LogGeographicalContext } from './LogGeographicalContext'; + +declare class LogIpAddress extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly geographicalContext: LogGeographicalContext; + readonly ip: string; + readonly source: string; + readonly version: string; + +} + +export { + LogIpAddress +}; diff --git a/src/types/models/LogIssuer.d.ts b/src/types/models/LogIssuer.d.ts new file mode 100644 index 000000000..2f8d4edf4 --- /dev/null +++ b/src/types/models/LogIssuer.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogIssuer extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly id: string; + readonly type: string; + +} + +export { + LogIssuer +}; diff --git a/src/types/models/LogOutcome.d.ts b/src/types/models/LogOutcome.d.ts new file mode 100644 index 000000000..97483a716 --- /dev/null +++ b/src/types/models/LogOutcome.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogOutcome extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly reason: string; + readonly result: string; + +} + +export { + LogOutcome +}; diff --git a/src/types/models/LogRequest.d.ts b/src/types/models/LogRequest.d.ts new file mode 100644 index 000000000..74e5c94c7 --- /dev/null +++ b/src/types/models/LogRequest.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogRequest extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly ipChain: []; + +} + +export { + LogRequest +}; diff --git a/src/types/models/LogSecurityContext.d.ts b/src/types/models/LogSecurityContext.d.ts new file mode 100644 index 000000000..a1e9ba048 --- /dev/null +++ b/src/types/models/LogSecurityContext.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogSecurityContext extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly asNumber: number; + readonly asOrg: string; + readonly domain: string; + readonly isProxy: boolean; + readonly isp: string; + +} + +export { + LogSecurityContext +}; diff --git a/src/types/models/LogSeverity.d.ts b/src/types/models/LogSeverity.d.ts new file mode 100644 index 000000000..bad564222 --- /dev/null +++ b/src/types/models/LogSeverity.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogSeverity extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + LogSeverity +}; diff --git a/src/types/models/LogTarget.d.ts b/src/types/models/LogTarget.d.ts new file mode 100644 index 000000000..67a3e80f1 --- /dev/null +++ b/src/types/models/LogTarget.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogTarget extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly alternateId: string; + readonly detailEntry: {[name: string]: unknown}; + readonly displayName: string; + readonly id: string; + readonly type: string; + +} + +export { + LogTarget +}; diff --git a/src/types/models/LogTransaction.d.ts b/src/types/models/LogTransaction.d.ts new file mode 100644 index 000000000..49862a827 --- /dev/null +++ b/src/types/models/LogTransaction.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogTransaction extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly detail: {[name: string]: unknown}; + readonly id: string; + readonly type: string; + +} + +export { + LogTransaction +}; diff --git a/src/types/models/LogUserAgent.d.ts b/src/types/models/LogUserAgent.d.ts new file mode 100644 index 000000000..d31cf0701 --- /dev/null +++ b/src/types/models/LogUserAgent.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class LogUserAgent extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly browser: string; + readonly os: string; + readonly rawUserAgent: string; + +} + +export { + LogUserAgent +}; diff --git a/src/types/models/MDMEnrollmentPolicyRuleCondition.d.ts b/src/types/models/MDMEnrollmentPolicyRuleCondition.d.ts new file mode 100644 index 000000000..113fbdcef --- /dev/null +++ b/src/types/models/MDMEnrollmentPolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class MDMEnrollmentPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + blockNonSafeAndroid: boolean; + enrollment: string; + +} + +export { + MDMEnrollmentPolicyRuleCondition +}; diff --git a/src/types/models/OAuth2Actor.d.ts b/src/types/models/OAuth2Actor.d.ts new file mode 100644 index 000000000..80b4ab4ef --- /dev/null +++ b/src/types/models/OAuth2Actor.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuth2Actor extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly id: string; + type: string; + +} + +export { + OAuth2Actor +}; diff --git a/src/types/models/OAuth2Claim.d.ts b/src/types/models/OAuth2Claim.d.ts new file mode 100644 index 000000000..d7ebdb882 --- /dev/null +++ b/src/types/models/OAuth2Claim.d.ts @@ -0,0 +1,39 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { OAuth2ClaimConditions } from './OAuth2ClaimConditions'; + +declare class OAuth2Claim extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + alwaysIncludeInToken: boolean; + claimType: string; + conditions: OAuth2ClaimConditions; + group_filter_type: string; + readonly id: string; + name: string; + status: string; + system: boolean; + value: string; + valueType: string; + +} + +export { + OAuth2Claim +}; diff --git a/src/types/models/OAuth2ClaimConditions.d.ts b/src/types/models/OAuth2ClaimConditions.d.ts new file mode 100644 index 000000000..b0c76c62f --- /dev/null +++ b/src/types/models/OAuth2ClaimConditions.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuth2ClaimConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + scopes: []; + +} + +export { + OAuth2ClaimConditions +}; diff --git a/src/types/models/OAuth2Client.d.ts b/src/types/models/OAuth2Client.d.ts new file mode 100644 index 000000000..a9c5941e7 --- /dev/null +++ b/src/types/models/OAuth2Client.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuth2Client extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + readonly client_id: string; + readonly client_name: string; + readonly client_uri: string; + readonly logo_uri: string; + +} + +export { + OAuth2Client +}; diff --git a/src/types/models/OAuth2RefreshToken.d.ts b/src/types/models/OAuth2RefreshToken.d.ts new file mode 100644 index 000000000..0e449c1ac --- /dev/null +++ b/src/types/models/OAuth2RefreshToken.d.ts @@ -0,0 +1,40 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { OAuth2Actor } from './OAuth2Actor'; + +declare class OAuth2RefreshToken extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + clientId: string; + readonly created: string; + createdBy: OAuth2Actor; + readonly expiresAt: string; + readonly id: string; + issuer: string; + readonly lastUpdated: string; + scopes: []; + status: string; + userId: string; + +} + +export { + OAuth2RefreshToken +}; diff --git a/src/types/models/OAuth2Scope.d.ts b/src/types/models/OAuth2Scope.d.ts new file mode 100644 index 000000000..b6b039b03 --- /dev/null +++ b/src/types/models/OAuth2Scope.d.ts @@ -0,0 +1,36 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuth2Scope extends Resource { + constructor(resourceJson: Record, client: Client); + + consent: string; + default: boolean; + description: string; + displayName: string; + readonly id: string; + metadataPublish: string; + name: string; + system: boolean; + +} + +export { + OAuth2Scope +}; diff --git a/src/types/models/OAuth2ScopeConsentGrant.d.ts b/src/types/models/OAuth2ScopeConsentGrant.d.ts new file mode 100644 index 000000000..70f0092e0 --- /dev/null +++ b/src/types/models/OAuth2ScopeConsentGrant.d.ts @@ -0,0 +1,42 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { OAuth2Actor } from './OAuth2Actor'; +import { OAuth2ScopeConsentGrantSource } from './OAuth2ScopeConsentGrantSource'; +import { OAuth2ScopeConsentGrantStatus } from './OAuth2ScopeConsentGrantStatus'; + +declare class OAuth2ScopeConsentGrant extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + clientId: string; + readonly created: string; + createdBy: OAuth2Actor; + readonly id: string; + issuer: string; + readonly lastUpdated: string; + scopeId: string; + source: OAuth2ScopeConsentGrantSource; + status: OAuth2ScopeConsentGrantStatus; + userId: string; + +} + +export { + OAuth2ScopeConsentGrant +}; diff --git a/src/types/models/OAuth2ScopeConsentGrantSource.d.ts b/src/types/models/OAuth2ScopeConsentGrantSource.d.ts new file mode 100644 index 000000000..a1f4fd334 --- /dev/null +++ b/src/types/models/OAuth2ScopeConsentGrantSource.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuth2ScopeConsentGrantSource extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OAuth2ScopeConsentGrantSource +}; diff --git a/src/types/models/OAuth2ScopeConsentGrantStatus.d.ts b/src/types/models/OAuth2ScopeConsentGrantStatus.d.ts new file mode 100644 index 000000000..416e9281c --- /dev/null +++ b/src/types/models/OAuth2ScopeConsentGrantStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuth2ScopeConsentGrantStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OAuth2ScopeConsentGrantStatus +}; diff --git a/src/types/models/OAuth2ScopesMediationPolicyRuleCondition.d.ts b/src/types/models/OAuth2ScopesMediationPolicyRuleCondition.d.ts new file mode 100644 index 000000000..09a327521 --- /dev/null +++ b/src/types/models/OAuth2ScopesMediationPolicyRuleCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuth2ScopesMediationPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + include: []; + +} + +export { + OAuth2ScopesMediationPolicyRuleCondition +}; diff --git a/src/types/models/OAuth2Token.d.ts b/src/types/models/OAuth2Token.d.ts new file mode 100644 index 000000000..0e69d4fb5 --- /dev/null +++ b/src/types/models/OAuth2Token.d.ts @@ -0,0 +1,39 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuth2Token extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + clientId: string; + readonly created: string; + readonly expiresAt: string; + readonly id: string; + issuer: string; + readonly lastUpdated: string; + scopes: []; + status: string; + userId: string; + +} + +export { + OAuth2Token +}; diff --git a/src/types/models/OAuthApplicationCredentials.d.ts b/src/types/models/OAuthApplicationCredentials.d.ts new file mode 100644 index 000000000..601651219 --- /dev/null +++ b/src/types/models/OAuthApplicationCredentials.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationCredentials } from './ApplicationCredentials'; +import Client from '../client'; +import { ApplicationCredentialsOAuthClient } from './ApplicationCredentialsOAuthClient'; + +declare class OAuthApplicationCredentials extends ApplicationCredentials { + constructor(resourceJson: Record, client: Client); + + oauthClient: ApplicationCredentialsOAuthClient; + +} + +export { + OAuthApplicationCredentials +}; diff --git a/src/types/models/OAuthAuthorizationPolicy.d.ts b/src/types/models/OAuthAuthorizationPolicy.d.ts new file mode 100644 index 000000000..f51a2f90d --- /dev/null +++ b/src/types/models/OAuthAuthorizationPolicy.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Policy } from './Policy'; +import Client from '../client'; + + +declare class OAuthAuthorizationPolicy extends Policy { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OAuthAuthorizationPolicy +}; diff --git a/src/types/models/OAuthEndpointAuthenticationMethod.d.ts b/src/types/models/OAuthEndpointAuthenticationMethod.d.ts new file mode 100644 index 000000000..2e9e0d82e --- /dev/null +++ b/src/types/models/OAuthEndpointAuthenticationMethod.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuthEndpointAuthenticationMethod extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OAuthEndpointAuthenticationMethod +}; diff --git a/src/types/models/OAuthGrantType.d.ts b/src/types/models/OAuthGrantType.d.ts new file mode 100644 index 000000000..933993488 --- /dev/null +++ b/src/types/models/OAuthGrantType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuthGrantType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OAuthGrantType +}; diff --git a/src/types/models/OAuthResponseType.d.ts b/src/types/models/OAuthResponseType.d.ts new file mode 100644 index 000000000..b2b836c25 --- /dev/null +++ b/src/types/models/OAuthResponseType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OAuthResponseType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OAuthResponseType +}; diff --git a/src/types/models/OktaSignOnPolicy.d.ts b/src/types/models/OktaSignOnPolicy.d.ts new file mode 100644 index 000000000..268f321cf --- /dev/null +++ b/src/types/models/OktaSignOnPolicy.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Policy } from './Policy'; +import Client from '../client'; + + +declare class OktaSignOnPolicy extends Policy { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OktaSignOnPolicy +}; diff --git a/src/types/models/OktaSignOnPolicyConditions.d.ts b/src/types/models/OktaSignOnPolicyConditions.d.ts new file mode 100644 index 000000000..d34a407ae --- /dev/null +++ b/src/types/models/OktaSignOnPolicyConditions.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PolicyPeopleCondition } from './PolicyPeopleCondition'; + +declare class OktaSignOnPolicyConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + people: PolicyPeopleCondition; + +} + +export { + OktaSignOnPolicyConditions +}; diff --git a/src/types/models/OktaSignOnPolicyRule.d.ts b/src/types/models/OktaSignOnPolicyRule.d.ts new file mode 100644 index 000000000..e944ed85d --- /dev/null +++ b/src/types/models/OktaSignOnPolicyRule.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { PolicyRule } from './PolicyRule'; +import Client from '../client'; +import { OktaSignOnPolicyRuleActions } from './OktaSignOnPolicyRuleActions'; +import { OktaSignOnPolicyRuleConditions } from './OktaSignOnPolicyRuleConditions'; + +declare class OktaSignOnPolicyRule extends PolicyRule { + constructor(resourceJson: Record, client: Client); + + actions: OktaSignOnPolicyRuleActions; + conditions: OktaSignOnPolicyRuleConditions; + name: string; + +} + +export { + OktaSignOnPolicyRule +}; diff --git a/src/types/models/OktaSignOnPolicyRuleActions.d.ts b/src/types/models/OktaSignOnPolicyRuleActions.d.ts new file mode 100644 index 000000000..3280a7594 --- /dev/null +++ b/src/types/models/OktaSignOnPolicyRuleActions.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { OktaSignOnPolicyRuleSignonActions } from './OktaSignOnPolicyRuleSignonActions'; + +declare class OktaSignOnPolicyRuleActions extends Resource { + constructor(resourceJson: Record, client: Client); + + signon: OktaSignOnPolicyRuleSignonActions; + +} + +export { + OktaSignOnPolicyRuleActions +}; diff --git a/src/types/models/OktaSignOnPolicyRuleConditions.d.ts b/src/types/models/OktaSignOnPolicyRuleConditions.d.ts new file mode 100644 index 000000000..1db06cad7 --- /dev/null +++ b/src/types/models/OktaSignOnPolicyRuleConditions.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PolicyRuleAuthContextCondition } from './PolicyRuleAuthContextCondition'; +import { PolicyNetworkCondition } from './PolicyNetworkCondition'; +import { PolicyPeopleCondition } from './PolicyPeopleCondition'; + +declare class OktaSignOnPolicyRuleConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + authContext: PolicyRuleAuthContextCondition; + network: PolicyNetworkCondition; + people: PolicyPeopleCondition; + +} + +export { + OktaSignOnPolicyRuleConditions +}; diff --git a/src/types/models/OktaSignOnPolicyRuleSignonActions.d.ts b/src/types/models/OktaSignOnPolicyRuleSignonActions.d.ts new file mode 100644 index 000000000..ed514ba21 --- /dev/null +++ b/src/types/models/OktaSignOnPolicyRuleSignonActions.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { OktaSignOnPolicyRuleSignonSessionActions } from './OktaSignOnPolicyRuleSignonSessionActions'; + +declare class OktaSignOnPolicyRuleSignonActions extends Resource { + constructor(resourceJson: Record, client: Client); + + access: string; + factorLifetime: number; + factorPromptMode: string; + rememberDeviceByDefault: boolean; + requireFactor: boolean; + session: OktaSignOnPolicyRuleSignonSessionActions; + +} + +export { + OktaSignOnPolicyRuleSignonActions +}; diff --git a/src/types/models/OktaSignOnPolicyRuleSignonSessionActions.d.ts b/src/types/models/OktaSignOnPolicyRuleSignonSessionActions.d.ts new file mode 100644 index 000000000..6c55a2320 --- /dev/null +++ b/src/types/models/OktaSignOnPolicyRuleSignonSessionActions.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OktaSignOnPolicyRuleSignonSessionActions extends Resource { + constructor(resourceJson: Record, client: Client); + + maxSessionIdleMinutes: number; + maxSessionLifetimeMinutes: number; + usePersistentCookie: boolean; + +} + +export { + OktaSignOnPolicyRuleSignonSessionActions +}; diff --git a/src/types/models/OpenIdConnectApplication.d.ts b/src/types/models/OpenIdConnectApplication.d.ts new file mode 100644 index 000000000..5b86d341a --- /dev/null +++ b/src/types/models/OpenIdConnectApplication.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Application } from './Application'; +import Client from '../client'; +import { OAuthApplicationCredentials } from './OAuthApplicationCredentials'; +import { OpenIdConnectApplicationSettings } from './OpenIdConnectApplicationSettings'; + +declare class OpenIdConnectApplication extends Application { + constructor(resourceJson: Record, client: Client); + + credentials: OAuthApplicationCredentials; + settings: OpenIdConnectApplicationSettings; + +} + +export { + OpenIdConnectApplication +}; diff --git a/src/types/models/OpenIdConnectApplicationConsentMethod.d.ts b/src/types/models/OpenIdConnectApplicationConsentMethod.d.ts new file mode 100644 index 000000000..2af89c573 --- /dev/null +++ b/src/types/models/OpenIdConnectApplicationConsentMethod.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OpenIdConnectApplicationConsentMethod extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OpenIdConnectApplicationConsentMethod +}; diff --git a/src/types/models/OpenIdConnectApplicationIssuerMode.d.ts b/src/types/models/OpenIdConnectApplicationIssuerMode.d.ts new file mode 100644 index 000000000..cbe597918 --- /dev/null +++ b/src/types/models/OpenIdConnectApplicationIssuerMode.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OpenIdConnectApplicationIssuerMode extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OpenIdConnectApplicationIssuerMode +}; diff --git a/src/types/models/OpenIdConnectApplicationSettings.d.ts b/src/types/models/OpenIdConnectApplicationSettings.d.ts new file mode 100644 index 000000000..c36ac3255 --- /dev/null +++ b/src/types/models/OpenIdConnectApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { OpenIdConnectApplicationSettingsClient } from './OpenIdConnectApplicationSettingsClient'; + +declare class OpenIdConnectApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + oauthClient: OpenIdConnectApplicationSettingsClient; + +} + +export { + OpenIdConnectApplicationSettings +}; diff --git a/src/types/models/OpenIdConnectApplicationSettingsClient.d.ts b/src/types/models/OpenIdConnectApplicationSettingsClient.d.ts new file mode 100644 index 000000000..317de8f87 --- /dev/null +++ b/src/types/models/OpenIdConnectApplicationSettingsClient.d.ts @@ -0,0 +1,46 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { OpenIdConnectApplicationType } from './OpenIdConnectApplicationType'; +import { OpenIdConnectApplicationConsentMethod } from './OpenIdConnectApplicationConsentMethod'; +import { OpenIdConnectApplicationIssuerMode } from './OpenIdConnectApplicationIssuerMode'; +import { OpenIdConnectApplicationSettingsClientKeys } from './OpenIdConnectApplicationSettingsClientKeys'; +import { OpenIdConnectApplicationSettingsRefreshToken } from './OpenIdConnectApplicationSettingsRefreshToken'; + +declare class OpenIdConnectApplicationSettingsClient extends Resource { + constructor(resourceJson: Record, client: Client); + + application_type: OpenIdConnectApplicationType; + client_uri: string; + consent_method: OpenIdConnectApplicationConsentMethod; + grant_types: []; + initiate_login_uri: string; + issuer_mode: OpenIdConnectApplicationIssuerMode; + jwks: OpenIdConnectApplicationSettingsClientKeys; + logo_uri: string; + policy_uri: string; + post_logout_redirect_uris: []; + redirect_uris: []; + refresh_token: OpenIdConnectApplicationSettingsRefreshToken; + response_types: []; + tos_uri: string; + +} + +export { + OpenIdConnectApplicationSettingsClient +}; diff --git a/src/types/models/OpenIdConnectApplicationSettingsClientKeys.d.ts b/src/types/models/OpenIdConnectApplicationSettingsClientKeys.d.ts new file mode 100644 index 000000000..25874cba6 --- /dev/null +++ b/src/types/models/OpenIdConnectApplicationSettingsClientKeys.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OpenIdConnectApplicationSettingsClientKeys extends Resource { + constructor(resourceJson: Record, client: Client); + + keys: []; + +} + +export { + OpenIdConnectApplicationSettingsClientKeys +}; diff --git a/src/types/models/OpenIdConnectApplicationSettingsRefreshToken.d.ts b/src/types/models/OpenIdConnectApplicationSettingsRefreshToken.d.ts new file mode 100644 index 000000000..fd211d45f --- /dev/null +++ b/src/types/models/OpenIdConnectApplicationSettingsRefreshToken.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { OpenIdConnectRefreshTokenRotationType } from './OpenIdConnectRefreshTokenRotationType'; + +declare class OpenIdConnectApplicationSettingsRefreshToken extends Resource { + constructor(resourceJson: Record, client: Client); + + leeway: number; + rotation_type: OpenIdConnectRefreshTokenRotationType; + +} + +export { + OpenIdConnectApplicationSettingsRefreshToken +}; diff --git a/src/types/models/OpenIdConnectApplicationType.d.ts b/src/types/models/OpenIdConnectApplicationType.d.ts new file mode 100644 index 000000000..8c749e256 --- /dev/null +++ b/src/types/models/OpenIdConnectApplicationType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OpenIdConnectApplicationType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OpenIdConnectApplicationType +}; diff --git a/src/types/models/OpenIdConnectRefreshTokenRotationType.d.ts b/src/types/models/OpenIdConnectRefreshTokenRotationType.d.ts new file mode 100644 index 000000000..7fa009cb7 --- /dev/null +++ b/src/types/models/OpenIdConnectRefreshTokenRotationType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class OpenIdConnectRefreshTokenRotationType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + OpenIdConnectRefreshTokenRotationType +}; diff --git a/src/types/models/PasswordCredential.d.ts b/src/types/models/PasswordCredential.d.ts new file mode 100644 index 000000000..fb92d35fa --- /dev/null +++ b/src/types/models/PasswordCredential.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordCredentialHash } from './PasswordCredentialHash'; +import { PasswordCredentialHook } from './PasswordCredentialHook'; + +declare class PasswordCredential extends Resource { + constructor(resourceJson: Record, client: Client); + + hash: PasswordCredentialHash; + hook: PasswordCredentialHook; + value: string; + +} + +export { + PasswordCredential +}; diff --git a/src/types/models/PasswordCredentialHash.d.ts b/src/types/models/PasswordCredentialHash.d.ts new file mode 100644 index 000000000..da43773e1 --- /dev/null +++ b/src/types/models/PasswordCredentialHash.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordCredentialHashAlgorithm } from './PasswordCredentialHashAlgorithm'; + +declare class PasswordCredentialHash extends Resource { + constructor(resourceJson: Record, client: Client); + + algorithm: PasswordCredentialHashAlgorithm; + salt: string; + saltOrder: string; + value: string; + workFactor: number; + +} + +export { + PasswordCredentialHash +}; diff --git a/src/types/models/PasswordCredentialHashAlgorithm.d.ts b/src/types/models/PasswordCredentialHashAlgorithm.d.ts new file mode 100644 index 000000000..81289bb2c --- /dev/null +++ b/src/types/models/PasswordCredentialHashAlgorithm.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordCredentialHashAlgorithm extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + PasswordCredentialHashAlgorithm +}; diff --git a/src/types/models/PasswordCredentialHook.d.ts b/src/types/models/PasswordCredentialHook.d.ts new file mode 100644 index 000000000..b829eaba8 --- /dev/null +++ b/src/types/models/PasswordCredentialHook.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordCredentialHook extends Resource { + constructor(resourceJson: Record, client: Client); + + type: string; + +} + +export { + PasswordCredentialHook +}; diff --git a/src/types/models/PasswordDictionary.d.ts b/src/types/models/PasswordDictionary.d.ts new file mode 100644 index 000000000..42e87ff1d --- /dev/null +++ b/src/types/models/PasswordDictionary.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordDictionaryCommon } from './PasswordDictionaryCommon'; + +declare class PasswordDictionary extends Resource { + constructor(resourceJson: Record, client: Client); + + common: PasswordDictionaryCommon; + +} + +export { + PasswordDictionary +}; diff --git a/src/types/models/PasswordDictionaryCommon.d.ts b/src/types/models/PasswordDictionaryCommon.d.ts new file mode 100644 index 000000000..1c78b45c0 --- /dev/null +++ b/src/types/models/PasswordDictionaryCommon.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordDictionaryCommon extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: boolean; + +} + +export { + PasswordDictionaryCommon +}; diff --git a/src/types/models/PasswordExpirationPolicyRuleCondition.d.ts b/src/types/models/PasswordExpirationPolicyRuleCondition.d.ts new file mode 100644 index 000000000..6538a688b --- /dev/null +++ b/src/types/models/PasswordExpirationPolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordExpirationPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + number: number; + unit: string; + +} + +export { + PasswordExpirationPolicyRuleCondition +}; diff --git a/src/types/models/PasswordPolicy.d.ts b/src/types/models/PasswordPolicy.d.ts new file mode 100644 index 000000000..98c9313de --- /dev/null +++ b/src/types/models/PasswordPolicy.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Policy } from './Policy'; +import Client from '../client'; +import { PasswordPolicySettings } from './PasswordPolicySettings'; + +declare class PasswordPolicy extends Policy { + constructor(resourceJson: Record, client: Client); + + settings: PasswordPolicySettings; + +} + +export { + PasswordPolicy +}; diff --git a/src/types/models/PasswordPolicyAuthenticationProviderCondition.d.ts b/src/types/models/PasswordPolicyAuthenticationProviderCondition.d.ts new file mode 100644 index 000000000..c06e7e328 --- /dev/null +++ b/src/types/models/PasswordPolicyAuthenticationProviderCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordPolicyAuthenticationProviderCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + include: []; + provider: string; + +} + +export { + PasswordPolicyAuthenticationProviderCondition +}; diff --git a/src/types/models/PasswordPolicyConditions.d.ts b/src/types/models/PasswordPolicyConditions.d.ts new file mode 100644 index 000000000..f040d7790 --- /dev/null +++ b/src/types/models/PasswordPolicyConditions.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyAuthenticationProviderCondition } from './PasswordPolicyAuthenticationProviderCondition'; +import { PolicyPeopleCondition } from './PolicyPeopleCondition'; + +declare class PasswordPolicyConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + authProvider: PasswordPolicyAuthenticationProviderCondition; + people: PolicyPeopleCondition; + +} + +export { + PasswordPolicyConditions +}; diff --git a/src/types/models/PasswordPolicyDelegationSettings.d.ts b/src/types/models/PasswordPolicyDelegationSettings.d.ts new file mode 100644 index 000000000..30e950cff --- /dev/null +++ b/src/types/models/PasswordPolicyDelegationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyDelegationSettingsOptions } from './PasswordPolicyDelegationSettingsOptions'; + +declare class PasswordPolicyDelegationSettings extends Resource { + constructor(resourceJson: Record, client: Client); + + options: PasswordPolicyDelegationSettingsOptions; + +} + +export { + PasswordPolicyDelegationSettings +}; diff --git a/src/types/models/PasswordPolicyDelegationSettingsOptions.d.ts b/src/types/models/PasswordPolicyDelegationSettingsOptions.d.ts new file mode 100644 index 000000000..f3a8f802a --- /dev/null +++ b/src/types/models/PasswordPolicyDelegationSettingsOptions.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordPolicyDelegationSettingsOptions extends Resource { + constructor(resourceJson: Record, client: Client); + + skipUnlock: boolean; + +} + +export { + PasswordPolicyDelegationSettingsOptions +}; diff --git a/src/types/models/PasswordPolicyPasswordSettings.d.ts b/src/types/models/PasswordPolicyPasswordSettings.d.ts new file mode 100644 index 000000000..58ecd02ef --- /dev/null +++ b/src/types/models/PasswordPolicyPasswordSettings.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyPasswordSettingsAge } from './PasswordPolicyPasswordSettingsAge'; +import { PasswordPolicyPasswordSettingsComplexity } from './PasswordPolicyPasswordSettingsComplexity'; +import { PasswordPolicyPasswordSettingsLockout } from './PasswordPolicyPasswordSettingsLockout'; + +declare class PasswordPolicyPasswordSettings extends Resource { + constructor(resourceJson: Record, client: Client); + + age: PasswordPolicyPasswordSettingsAge; + complexity: PasswordPolicyPasswordSettingsComplexity; + lockout: PasswordPolicyPasswordSettingsLockout; + +} + +export { + PasswordPolicyPasswordSettings +}; diff --git a/src/types/models/PasswordPolicyPasswordSettingsAge.d.ts b/src/types/models/PasswordPolicyPasswordSettingsAge.d.ts new file mode 100644 index 000000000..9c5404352 --- /dev/null +++ b/src/types/models/PasswordPolicyPasswordSettingsAge.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordPolicyPasswordSettingsAge extends Resource { + constructor(resourceJson: Record, client: Client); + + expireWarnDays: number; + historyCount: number; + maxAgeDays: number; + minAgeMinutes: number; + +} + +export { + PasswordPolicyPasswordSettingsAge +}; diff --git a/src/types/models/PasswordPolicyPasswordSettingsComplexity.d.ts b/src/types/models/PasswordPolicyPasswordSettingsComplexity.d.ts new file mode 100644 index 000000000..59c98c784 --- /dev/null +++ b/src/types/models/PasswordPolicyPasswordSettingsComplexity.d.ts @@ -0,0 +1,36 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordDictionary } from './PasswordDictionary'; + +declare class PasswordPolicyPasswordSettingsComplexity extends Resource { + constructor(resourceJson: Record, client: Client); + + dictionary: PasswordDictionary; + excludeAttributes: []; + excludeUsername: boolean; + minLength: number; + minLowerCase: number; + minNumber: number; + minSymbol: number; + minUpperCase: number; + +} + +export { + PasswordPolicyPasswordSettingsComplexity +}; diff --git a/src/types/models/PasswordPolicyPasswordSettingsLockout.d.ts b/src/types/models/PasswordPolicyPasswordSettingsLockout.d.ts new file mode 100644 index 000000000..b0d242836 --- /dev/null +++ b/src/types/models/PasswordPolicyPasswordSettingsLockout.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordPolicyPasswordSettingsLockout extends Resource { + constructor(resourceJson: Record, client: Client); + + autoUnlockMinutes: number; + maxAttempts: number; + showLockoutFailures: boolean; + userLockoutNotificationChannels: []; + +} + +export { + PasswordPolicyPasswordSettingsLockout +}; diff --git a/src/types/models/PasswordPolicyRecoveryEmail.d.ts b/src/types/models/PasswordPolicyRecoveryEmail.d.ts new file mode 100644 index 000000000..160adc4b6 --- /dev/null +++ b/src/types/models/PasswordPolicyRecoveryEmail.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyRecoveryEmailProperties } from './PasswordPolicyRecoveryEmailProperties'; + +declare class PasswordPolicyRecoveryEmail extends Resource { + constructor(resourceJson: Record, client: Client); + + properties: PasswordPolicyRecoveryEmailProperties; + readonly status: string; + +} + +export { + PasswordPolicyRecoveryEmail +}; diff --git a/src/types/models/PasswordPolicyRecoveryEmailProperties.d.ts b/src/types/models/PasswordPolicyRecoveryEmailProperties.d.ts new file mode 100644 index 000000000..60109ce13 --- /dev/null +++ b/src/types/models/PasswordPolicyRecoveryEmailProperties.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyRecoveryEmailRecoveryToken } from './PasswordPolicyRecoveryEmailRecoveryToken'; + +declare class PasswordPolicyRecoveryEmailProperties extends Resource { + constructor(resourceJson: Record, client: Client); + + recoveryToken: PasswordPolicyRecoveryEmailRecoveryToken; + +} + +export { + PasswordPolicyRecoveryEmailProperties +}; diff --git a/src/types/models/PasswordPolicyRecoveryEmailRecoveryToken.d.ts b/src/types/models/PasswordPolicyRecoveryEmailRecoveryToken.d.ts new file mode 100644 index 000000000..ead7a9cad --- /dev/null +++ b/src/types/models/PasswordPolicyRecoveryEmailRecoveryToken.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordPolicyRecoveryEmailRecoveryToken extends Resource { + constructor(resourceJson: Record, client: Client); + + tokenLifetimeMinutes: number; + +} + +export { + PasswordPolicyRecoveryEmailRecoveryToken +}; diff --git a/src/types/models/PasswordPolicyRecoveryFactorSettings.d.ts b/src/types/models/PasswordPolicyRecoveryFactorSettings.d.ts new file mode 100644 index 000000000..4400abc94 --- /dev/null +++ b/src/types/models/PasswordPolicyRecoveryFactorSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordPolicyRecoveryFactorSettings extends Resource { + constructor(resourceJson: Record, client: Client); + + status: string; + +} + +export { + PasswordPolicyRecoveryFactorSettings +}; diff --git a/src/types/models/PasswordPolicyRecoveryFactors.d.ts b/src/types/models/PasswordPolicyRecoveryFactors.d.ts new file mode 100644 index 000000000..b3f077933 --- /dev/null +++ b/src/types/models/PasswordPolicyRecoveryFactors.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyRecoveryFactorSettings } from './PasswordPolicyRecoveryFactorSettings'; +import { PasswordPolicyRecoveryEmail } from './PasswordPolicyRecoveryEmail'; +import { PasswordPolicyRecoveryQuestion } from './PasswordPolicyRecoveryQuestion'; + +declare class PasswordPolicyRecoveryFactors extends Resource { + constructor(resourceJson: Record, client: Client); + + okta_call: PasswordPolicyRecoveryFactorSettings; + okta_email: PasswordPolicyRecoveryEmail; + okta_sms: PasswordPolicyRecoveryFactorSettings; + recovery_question: PasswordPolicyRecoveryQuestion; + +} + +export { + PasswordPolicyRecoveryFactors +}; diff --git a/src/types/models/PasswordPolicyRecoveryQuestion.d.ts b/src/types/models/PasswordPolicyRecoveryQuestion.d.ts new file mode 100644 index 000000000..bf0395f9d --- /dev/null +++ b/src/types/models/PasswordPolicyRecoveryQuestion.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyRecoveryQuestionProperties } from './PasswordPolicyRecoveryQuestionProperties'; + +declare class PasswordPolicyRecoveryQuestion extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly properties: PasswordPolicyRecoveryQuestionProperties; + readonly status: string; + +} + +export { + PasswordPolicyRecoveryQuestion +}; diff --git a/src/types/models/PasswordPolicyRecoveryQuestionComplexity.d.ts b/src/types/models/PasswordPolicyRecoveryQuestionComplexity.d.ts new file mode 100644 index 000000000..e379bef2a --- /dev/null +++ b/src/types/models/PasswordPolicyRecoveryQuestionComplexity.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordPolicyRecoveryQuestionComplexity extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly minLength: number; + +} + +export { + PasswordPolicyRecoveryQuestionComplexity +}; diff --git a/src/types/models/PasswordPolicyRecoveryQuestionProperties.d.ts b/src/types/models/PasswordPolicyRecoveryQuestionProperties.d.ts new file mode 100644 index 000000000..7e721a763 --- /dev/null +++ b/src/types/models/PasswordPolicyRecoveryQuestionProperties.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyRecoveryQuestionComplexity } from './PasswordPolicyRecoveryQuestionComplexity'; + +declare class PasswordPolicyRecoveryQuestionProperties extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly complexity: PasswordPolicyRecoveryQuestionComplexity; + +} + +export { + PasswordPolicyRecoveryQuestionProperties +}; diff --git a/src/types/models/PasswordPolicyRecoverySettings.d.ts b/src/types/models/PasswordPolicyRecoverySettings.d.ts new file mode 100644 index 000000000..b8acd8379 --- /dev/null +++ b/src/types/models/PasswordPolicyRecoverySettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyRecoveryFactors } from './PasswordPolicyRecoveryFactors'; + +declare class PasswordPolicyRecoverySettings extends Resource { + constructor(resourceJson: Record, client: Client); + + factors: PasswordPolicyRecoveryFactors; + +} + +export { + PasswordPolicyRecoverySettings +}; diff --git a/src/types/models/PasswordPolicyRule.d.ts b/src/types/models/PasswordPolicyRule.d.ts new file mode 100644 index 000000000..8f0005921 --- /dev/null +++ b/src/types/models/PasswordPolicyRule.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { PolicyRule } from './PolicyRule'; +import Client from '../client'; +import { PasswordPolicyRuleActions } from './PasswordPolicyRuleActions'; +import { PasswordPolicyRuleConditions } from './PasswordPolicyRuleConditions'; + +declare class PasswordPolicyRule extends PolicyRule { + constructor(resourceJson: Record, client: Client); + + actions: PasswordPolicyRuleActions; + conditions: PasswordPolicyRuleConditions; + name: string; + +} + +export { + PasswordPolicyRule +}; diff --git a/src/types/models/PasswordPolicyRuleAction.d.ts b/src/types/models/PasswordPolicyRuleAction.d.ts new file mode 100644 index 000000000..9570f1d85 --- /dev/null +++ b/src/types/models/PasswordPolicyRuleAction.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PasswordPolicyRuleAction extends Resource { + constructor(resourceJson: Record, client: Client); + + access: string; + +} + +export { + PasswordPolicyRuleAction +}; diff --git a/src/types/models/PasswordPolicyRuleActions.d.ts b/src/types/models/PasswordPolicyRuleActions.d.ts new file mode 100644 index 000000000..afe234e71 --- /dev/null +++ b/src/types/models/PasswordPolicyRuleActions.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyRuleAction } from './PasswordPolicyRuleAction'; + +declare class PasswordPolicyRuleActions extends Resource { + constructor(resourceJson: Record, client: Client); + + passwordChange: PasswordPolicyRuleAction; + selfServicePasswordReset: PasswordPolicyRuleAction; + selfServiceUnlock: PasswordPolicyRuleAction; + +} + +export { + PasswordPolicyRuleActions +}; diff --git a/src/types/models/PasswordPolicyRuleConditions.d.ts b/src/types/models/PasswordPolicyRuleConditions.d.ts new file mode 100644 index 000000000..c6ba120fa --- /dev/null +++ b/src/types/models/PasswordPolicyRuleConditions.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PolicyNetworkCondition } from './PolicyNetworkCondition'; +import { PolicyPeopleCondition } from './PolicyPeopleCondition'; + +declare class PasswordPolicyRuleConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + network: PolicyNetworkCondition; + people: PolicyPeopleCondition; + +} + +export { + PasswordPolicyRuleConditions +}; diff --git a/src/types/models/PasswordPolicySettings.d.ts b/src/types/models/PasswordPolicySettings.d.ts new file mode 100644 index 000000000..8e8674cb4 --- /dev/null +++ b/src/types/models/PasswordPolicySettings.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordPolicyDelegationSettings } from './PasswordPolicyDelegationSettings'; +import { PasswordPolicyPasswordSettings } from './PasswordPolicyPasswordSettings'; +import { PasswordPolicyRecoverySettings } from './PasswordPolicyRecoverySettings'; + +declare class PasswordPolicySettings extends Resource { + constructor(resourceJson: Record, client: Client); + + delegation: PasswordPolicyDelegationSettings; + password: PasswordPolicyPasswordSettings; + recovery: PasswordPolicyRecoverySettings; + +} + +export { + PasswordPolicySettings +}; diff --git a/src/types/models/PlatformConditionEvaluatorPlatform.d.ts b/src/types/models/PlatformConditionEvaluatorPlatform.d.ts new file mode 100644 index 000000000..15c857a73 --- /dev/null +++ b/src/types/models/PlatformConditionEvaluatorPlatform.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PlatformConditionEvaluatorPlatformOperatingSystem } from './PlatformConditionEvaluatorPlatformOperatingSystem'; + +declare class PlatformConditionEvaluatorPlatform extends Resource { + constructor(resourceJson: Record, client: Client); + + os: PlatformConditionEvaluatorPlatformOperatingSystem; + type: string; + +} + +export { + PlatformConditionEvaluatorPlatform +}; diff --git a/src/types/models/PlatformConditionEvaluatorPlatformOperatingSystem.d.ts b/src/types/models/PlatformConditionEvaluatorPlatformOperatingSystem.d.ts new file mode 100644 index 000000000..94f6bbfa2 --- /dev/null +++ b/src/types/models/PlatformConditionEvaluatorPlatformOperatingSystem.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PlatformConditionEvaluatorPlatformOperatingSystemVersion } from './PlatformConditionEvaluatorPlatformOperatingSystemVersion'; + +declare class PlatformConditionEvaluatorPlatformOperatingSystem extends Resource { + constructor(resourceJson: Record, client: Client); + + expression: string; + type: string; + version: PlatformConditionEvaluatorPlatformOperatingSystemVersion; + +} + +export { + PlatformConditionEvaluatorPlatformOperatingSystem +}; diff --git a/src/types/models/PlatformConditionEvaluatorPlatformOperatingSystemVersion.d.ts b/src/types/models/PlatformConditionEvaluatorPlatformOperatingSystemVersion.d.ts new file mode 100644 index 000000000..42fdc64f5 --- /dev/null +++ b/src/types/models/PlatformConditionEvaluatorPlatformOperatingSystemVersion.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PlatformConditionEvaluatorPlatformOperatingSystemVersion extends Resource { + constructor(resourceJson: Record, client: Client); + + matchType: string; + value: string; + +} + +export { + PlatformConditionEvaluatorPlatformOperatingSystemVersion +}; diff --git a/src/types/models/PlatformPolicyRuleCondition.d.ts b/src/types/models/PlatformPolicyRuleCondition.d.ts new file mode 100644 index 000000000..81b1ed063 --- /dev/null +++ b/src/types/models/PlatformPolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PlatformPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + include: []; + +} + +export { + PlatformPolicyRuleCondition +}; diff --git a/src/types/models/Policy.d.ts b/src/types/models/Policy.d.ts new file mode 100644 index 000000000..578faa6a2 --- /dev/null +++ b/src/types/models/Policy.d.ts @@ -0,0 +1,51 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import Collection from '../collection'; +import { PolicyRule } from './PolicyRule'; +import { PolicyRuleConditions } from './PolicyRuleConditions'; +import { PolicyType } from './PolicyType'; + +declare class Policy extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + conditions: PolicyRuleConditions; + readonly created: string; + description: string; + readonly id: string; + readonly lastUpdated: string; + name: string; + priority: number; + status: string; + system: boolean; + type: PolicyType; + + update(): Promise; + delete(): Promise; + activate(): Promise; + deactivate(): Promise; + listPolicyRules(): Collection; + createRule(policyRule: PolicyRule): Promise; + getPolicyRule(ruleId: string): Promise; +} + +export { + Policy +}; diff --git a/src/types/models/PolicyAccountLink.d.ts b/src/types/models/PolicyAccountLink.d.ts new file mode 100644 index 000000000..c652dd5a0 --- /dev/null +++ b/src/types/models/PolicyAccountLink.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PolicyAccountLinkFilter } from './PolicyAccountLinkFilter'; + +declare class PolicyAccountLink extends Resource { + constructor(resourceJson: Record, client: Client); + + action: string; + filter: PolicyAccountLinkFilter; + +} + +export { + PolicyAccountLink +}; diff --git a/src/types/models/PolicyAccountLinkFilter.d.ts b/src/types/models/PolicyAccountLinkFilter.d.ts new file mode 100644 index 000000000..07e3aab38 --- /dev/null +++ b/src/types/models/PolicyAccountLinkFilter.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PolicyAccountLinkFilterGroups } from './PolicyAccountLinkFilterGroups'; + +declare class PolicyAccountLinkFilter extends Resource { + constructor(resourceJson: Record, client: Client); + + groups: PolicyAccountLinkFilterGroups; + +} + +export { + PolicyAccountLinkFilter +}; diff --git a/src/types/models/PolicyAccountLinkFilterGroups.d.ts b/src/types/models/PolicyAccountLinkFilterGroups.d.ts new file mode 100644 index 000000000..b3d0658fe --- /dev/null +++ b/src/types/models/PolicyAccountLinkFilterGroups.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PolicyAccountLinkFilterGroups extends Resource { + constructor(resourceJson: Record, client: Client); + + include: []; + +} + +export { + PolicyAccountLinkFilterGroups +}; diff --git a/src/types/models/PolicyNetworkCondition.d.ts b/src/types/models/PolicyNetworkCondition.d.ts new file mode 100644 index 000000000..812425bd9 --- /dev/null +++ b/src/types/models/PolicyNetworkCondition.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PolicyNetworkCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + connection: string; + exclude: []; + include: []; + +} + +export { + PolicyNetworkCondition +}; diff --git a/src/types/models/PolicyPeopleCondition.d.ts b/src/types/models/PolicyPeopleCondition.d.ts new file mode 100644 index 000000000..1cb60c102 --- /dev/null +++ b/src/types/models/PolicyPeopleCondition.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { GroupCondition } from './GroupCondition'; +import { UserCondition } from './UserCondition'; + +declare class PolicyPeopleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + groups: GroupCondition; + users: UserCondition; + +} + +export { + PolicyPeopleCondition +}; diff --git a/src/types/models/PolicyRule.d.ts b/src/types/models/PolicyRule.d.ts new file mode 100644 index 000000000..49d79005d --- /dev/null +++ b/src/types/models/PolicyRule.d.ts @@ -0,0 +1,39 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; + +declare class PolicyRule extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly created: string; + readonly id: string; + readonly lastUpdated: string; + priority: number; + status: string; + system: boolean; + type: string; + + update(): Promise; + delete(): Promise; + activate(): Promise; + deactivate(): Promise; +} + +export { + PolicyRule +}; diff --git a/src/types/models/PolicyRuleAuthContextCondition.d.ts b/src/types/models/PolicyRuleAuthContextCondition.d.ts new file mode 100644 index 000000000..1efa56a49 --- /dev/null +++ b/src/types/models/PolicyRuleAuthContextCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PolicyRuleAuthContextCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + authType: string; + +} + +export { + PolicyRuleAuthContextCondition +}; diff --git a/src/types/models/PolicyRuleConditions.d.ts b/src/types/models/PolicyRuleConditions.d.ts new file mode 100644 index 000000000..f49f76893 --- /dev/null +++ b/src/types/models/PolicyRuleConditions.d.ts @@ -0,0 +1,69 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { AppAndInstancePolicyRuleCondition } from './AppAndInstancePolicyRuleCondition'; +import { AppInstancePolicyRuleCondition } from './AppInstancePolicyRuleCondition'; +import { PolicyRuleAuthContextCondition } from './PolicyRuleAuthContextCondition'; +import { PasswordPolicyAuthenticationProviderCondition } from './PasswordPolicyAuthenticationProviderCondition'; +import { BeforeScheduledActionPolicyRuleCondition } from './BeforeScheduledActionPolicyRuleCondition'; +import { ClientPolicyCondition } from './ClientPolicyCondition'; +import { ContextPolicyRuleCondition } from './ContextPolicyRuleCondition'; +import { DevicePolicyRuleCondition } from './DevicePolicyRuleCondition'; +import { GrantTypePolicyRuleCondition } from './GrantTypePolicyRuleCondition'; +import { GroupPolicyRuleCondition } from './GroupPolicyRuleCondition'; +import { IdentityProviderPolicyRuleCondition } from './IdentityProviderPolicyRuleCondition'; +import { MDMEnrollmentPolicyRuleCondition } from './MDMEnrollmentPolicyRuleCondition'; +import { PolicyNetworkCondition } from './PolicyNetworkCondition'; +import { PolicyPeopleCondition } from './PolicyPeopleCondition'; +import { PlatformPolicyRuleCondition } from './PlatformPolicyRuleCondition'; +import { RiskPolicyRuleCondition } from './RiskPolicyRuleCondition'; +import { RiskScorePolicyRuleCondition } from './RiskScorePolicyRuleCondition'; +import { OAuth2ScopesMediationPolicyRuleCondition } from './OAuth2ScopesMediationPolicyRuleCondition'; +import { UserIdentifierPolicyRuleCondition } from './UserIdentifierPolicyRuleCondition'; +import { UserStatusPolicyRuleCondition } from './UserStatusPolicyRuleCondition'; +import { UserPolicyRuleCondition } from './UserPolicyRuleCondition'; + +declare class PolicyRuleConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + app: AppAndInstancePolicyRuleCondition; + apps: AppInstancePolicyRuleCondition; + authContext: PolicyRuleAuthContextCondition; + authProvider: PasswordPolicyAuthenticationProviderCondition; + beforeScheduledAction: BeforeScheduledActionPolicyRuleCondition; + clients: ClientPolicyCondition; + context: ContextPolicyRuleCondition; + device: DevicePolicyRuleCondition; + grantTypes: GrantTypePolicyRuleCondition; + groups: GroupPolicyRuleCondition; + identityProvider: IdentityProviderPolicyRuleCondition; + mdmEnrollment: MDMEnrollmentPolicyRuleCondition; + network: PolicyNetworkCondition; + people: PolicyPeopleCondition; + platform: PlatformPolicyRuleCondition; + risk: RiskPolicyRuleCondition; + riskScore: RiskScorePolicyRuleCondition; + scopes: OAuth2ScopesMediationPolicyRuleCondition; + userIdentifier: UserIdentifierPolicyRuleCondition; + userStatus: UserStatusPolicyRuleCondition; + users: UserPolicyRuleCondition; + +} + +export { + PolicyRuleConditions +}; diff --git a/src/types/models/PolicySubject.d.ts b/src/types/models/PolicySubject.d.ts new file mode 100644 index 000000000..9644601d9 --- /dev/null +++ b/src/types/models/PolicySubject.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PolicySubjectMatchType } from './PolicySubjectMatchType'; +import { PolicyUserNameTemplate } from './PolicyUserNameTemplate'; + +declare class PolicySubject extends Resource { + constructor(resourceJson: Record, client: Client); + + filter: string; + format: []; + matchAttribute: string; + matchType: PolicySubjectMatchType; + userNameTemplate: PolicyUserNameTemplate; + +} + +export { + PolicySubject +}; diff --git a/src/types/models/PolicySubjectMatchType.d.ts b/src/types/models/PolicySubjectMatchType.d.ts new file mode 100644 index 000000000..baa4d5cb2 --- /dev/null +++ b/src/types/models/PolicySubjectMatchType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PolicySubjectMatchType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + PolicySubjectMatchType +}; diff --git a/src/types/models/PolicyType.d.ts b/src/types/models/PolicyType.d.ts new file mode 100644 index 000000000..8211bbf88 --- /dev/null +++ b/src/types/models/PolicyType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PolicyType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + PolicyType +}; diff --git a/src/types/models/PolicyUserNameTemplate.d.ts b/src/types/models/PolicyUserNameTemplate.d.ts new file mode 100644 index 000000000..d4910a158 --- /dev/null +++ b/src/types/models/PolicyUserNameTemplate.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PolicyUserNameTemplate extends Resource { + constructor(resourceJson: Record, client: Client); + + template: string; + +} + +export { + PolicyUserNameTemplate +}; diff --git a/src/types/models/Protocol.d.ts b/src/types/models/Protocol.d.ts new file mode 100644 index 000000000..6140e7f48 --- /dev/null +++ b/src/types/models/Protocol.d.ts @@ -0,0 +1,41 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ProtocolAlgorithms } from './ProtocolAlgorithms'; +import { IdentityProviderCredentials } from './IdentityProviderCredentials'; +import { ProtocolEndpoints } from './ProtocolEndpoints'; +import { ProtocolEndpoint } from './ProtocolEndpoint'; +import { ProtocolRelayState } from './ProtocolRelayState'; +import { ProtocolSettings } from './ProtocolSettings'; + +declare class Protocol extends Resource { + constructor(resourceJson: Record, client: Client); + + algorithms: ProtocolAlgorithms; + credentials: IdentityProviderCredentials; + endpoints: ProtocolEndpoints; + issuer: ProtocolEndpoint; + relayState: ProtocolRelayState; + scopes: []; + settings: ProtocolSettings; + type: string; + +} + +export { + Protocol +}; diff --git a/src/types/models/ProtocolAlgorithmType.d.ts b/src/types/models/ProtocolAlgorithmType.d.ts new file mode 100644 index 000000000..5b81c281c --- /dev/null +++ b/src/types/models/ProtocolAlgorithmType.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ProtocolAlgorithmTypeSignature } from './ProtocolAlgorithmTypeSignature'; + +declare class ProtocolAlgorithmType extends Resource { + constructor(resourceJson: Record, client: Client); + + signature: ProtocolAlgorithmTypeSignature; + +} + +export { + ProtocolAlgorithmType +}; diff --git a/src/types/models/ProtocolAlgorithmTypeSignature.d.ts b/src/types/models/ProtocolAlgorithmTypeSignature.d.ts new file mode 100644 index 000000000..458c56314 --- /dev/null +++ b/src/types/models/ProtocolAlgorithmTypeSignature.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ProtocolAlgorithmTypeSignature extends Resource { + constructor(resourceJson: Record, client: Client); + + algorithm: string; + scope: string; + +} + +export { + ProtocolAlgorithmTypeSignature +}; diff --git a/src/types/models/ProtocolAlgorithms.d.ts b/src/types/models/ProtocolAlgorithms.d.ts new file mode 100644 index 000000000..32d1789ef --- /dev/null +++ b/src/types/models/ProtocolAlgorithms.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ProtocolAlgorithmType } from './ProtocolAlgorithmType'; + +declare class ProtocolAlgorithms extends Resource { + constructor(resourceJson: Record, client: Client); + + request: ProtocolAlgorithmType; + response: ProtocolAlgorithmType; + +} + +export { + ProtocolAlgorithms +}; diff --git a/src/types/models/ProtocolEndpoint.d.ts b/src/types/models/ProtocolEndpoint.d.ts new file mode 100644 index 000000000..497994395 --- /dev/null +++ b/src/types/models/ProtocolEndpoint.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ProtocolEndpoint extends Resource { + constructor(resourceJson: Record, client: Client); + + binding: string; + destination: string; + type: string; + url: string; + +} + +export { + ProtocolEndpoint +}; diff --git a/src/types/models/ProtocolEndpoints.d.ts b/src/types/models/ProtocolEndpoints.d.ts new file mode 100644 index 000000000..698d7e7a7 --- /dev/null +++ b/src/types/models/ProtocolEndpoints.d.ts @@ -0,0 +1,36 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ProtocolEndpoint } from './ProtocolEndpoint'; + +declare class ProtocolEndpoints extends Resource { + constructor(resourceJson: Record, client: Client); + + acs: ProtocolEndpoint; + authorization: ProtocolEndpoint; + jwks: ProtocolEndpoint; + metadata: ProtocolEndpoint; + slo: ProtocolEndpoint; + sso: ProtocolEndpoint; + token: ProtocolEndpoint; + userInfo: ProtocolEndpoint; + +} + +export { + ProtocolEndpoints +}; diff --git a/src/types/models/ProtocolRelayState.d.ts b/src/types/models/ProtocolRelayState.d.ts new file mode 100644 index 000000000..4fda7e327 --- /dev/null +++ b/src/types/models/ProtocolRelayState.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ProtocolRelayStateFormat } from './ProtocolRelayStateFormat'; + +declare class ProtocolRelayState extends Resource { + constructor(resourceJson: Record, client: Client); + + format: ProtocolRelayStateFormat; + +} + +export { + ProtocolRelayState +}; diff --git a/src/types/models/ProtocolRelayStateFormat.d.ts b/src/types/models/ProtocolRelayStateFormat.d.ts new file mode 100644 index 000000000..ed6628627 --- /dev/null +++ b/src/types/models/ProtocolRelayStateFormat.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ProtocolRelayStateFormat extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + ProtocolRelayStateFormat +}; diff --git a/src/types/models/ProtocolSettings.d.ts b/src/types/models/ProtocolSettings.d.ts new file mode 100644 index 000000000..0d90d5ab0 --- /dev/null +++ b/src/types/models/ProtocolSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ProtocolSettings extends Resource { + constructor(resourceJson: Record, client: Client); + + nameFormat: string; + +} + +export { + ProtocolSettings +}; diff --git a/src/types/models/Provisioning.d.ts b/src/types/models/Provisioning.d.ts new file mode 100644 index 000000000..716203eee --- /dev/null +++ b/src/types/models/Provisioning.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ProvisioningConditions } from './ProvisioningConditions'; +import { ProvisioningGroups } from './ProvisioningGroups'; + +declare class Provisioning extends Resource { + constructor(resourceJson: Record, client: Client); + + action: string; + conditions: ProvisioningConditions; + groups: ProvisioningGroups; + profileMaster: boolean; + +} + +export { + Provisioning +}; diff --git a/src/types/models/ProvisioningConditions.d.ts b/src/types/models/ProvisioningConditions.d.ts new file mode 100644 index 000000000..9722e52c0 --- /dev/null +++ b/src/types/models/ProvisioningConditions.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ProvisioningDeprovisionedCondition } from './ProvisioningDeprovisionedCondition'; +import { ProvisioningSuspendedCondition } from './ProvisioningSuspendedCondition'; + +declare class ProvisioningConditions extends Resource { + constructor(resourceJson: Record, client: Client); + + deprovisioned: ProvisioningDeprovisionedCondition; + suspended: ProvisioningSuspendedCondition; + +} + +export { + ProvisioningConditions +}; diff --git a/src/types/models/ProvisioningDeprovisionedCondition.d.ts b/src/types/models/ProvisioningDeprovisionedCondition.d.ts new file mode 100644 index 000000000..48717bbb3 --- /dev/null +++ b/src/types/models/ProvisioningDeprovisionedCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ProvisioningDeprovisionedCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + action: string; + +} + +export { + ProvisioningDeprovisionedCondition +}; diff --git a/src/types/models/ProvisioningGroups.d.ts b/src/types/models/ProvisioningGroups.d.ts new file mode 100644 index 000000000..a24e45415 --- /dev/null +++ b/src/types/models/ProvisioningGroups.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ProvisioningGroups extends Resource { + constructor(resourceJson: Record, client: Client); + + action: string; + assignments: []; + filter: []; + sourceAttributeName: string; + +} + +export { + ProvisioningGroups +}; diff --git a/src/types/models/ProvisioningSuspendedCondition.d.ts b/src/types/models/ProvisioningSuspendedCondition.d.ts new file mode 100644 index 000000000..dfbbf62b9 --- /dev/null +++ b/src/types/models/ProvisioningSuspendedCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ProvisioningSuspendedCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + action: string; + +} + +export { + ProvisioningSuspendedCondition +}; diff --git a/src/types/models/PushUserFactor.d.ts b/src/types/models/PushUserFactor.d.ts new file mode 100644 index 000000000..d9e488f1e --- /dev/null +++ b/src/types/models/PushUserFactor.d.ts @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { FactorResultType } from './FactorResultType'; +import { PushUserFactorProfile } from './PushUserFactorProfile'; + +declare class PushUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + expiresAt: string; + factorResult: FactorResultType; + profile: PushUserFactorProfile; + +} + +export { + PushUserFactor +}; diff --git a/src/types/models/PushUserFactorProfile.d.ts b/src/types/models/PushUserFactorProfile.d.ts new file mode 100644 index 000000000..43e998e73 --- /dev/null +++ b/src/types/models/PushUserFactorProfile.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class PushUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + credentialId: string; + deviceToken: string; + deviceType: string; + name: string; + platform: string; + version: string; + +} + +export { + PushUserFactorProfile +}; diff --git a/src/types/models/RecoveryQuestionCredential.d.ts b/src/types/models/RecoveryQuestionCredential.d.ts new file mode 100644 index 000000000..013508707 --- /dev/null +++ b/src/types/models/RecoveryQuestionCredential.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class RecoveryQuestionCredential extends Resource { + constructor(resourceJson: Record, client: Client); + + answer: string; + question: string; + +} + +export { + RecoveryQuestionCredential +}; diff --git a/src/types/models/ResetPasswordToken.d.ts b/src/types/models/ResetPasswordToken.d.ts new file mode 100644 index 000000000..583cf4aee --- /dev/null +++ b/src/types/models/ResetPasswordToken.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ResetPasswordToken extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly resetPasswordUrl: string; + +} + +export { + ResetPasswordToken +}; diff --git a/src/types/models/ResponseLinks.d.ts b/src/types/models/ResponseLinks.d.ts new file mode 100644 index 000000000..db86787f9 --- /dev/null +++ b/src/types/models/ResponseLinks.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ResponseLinks extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + ResponseLinks +}; diff --git a/src/types/models/RiskPolicyRuleCondition.d.ts b/src/types/models/RiskPolicyRuleCondition.d.ts new file mode 100644 index 000000000..81b6a2291 --- /dev/null +++ b/src/types/models/RiskPolicyRuleCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class RiskPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + behaviors: []; + +} + +export { + RiskPolicyRuleCondition +}; diff --git a/src/types/models/RiskScorePolicyRuleCondition.d.ts b/src/types/models/RiskScorePolicyRuleCondition.d.ts new file mode 100644 index 000000000..f19735759 --- /dev/null +++ b/src/types/models/RiskScorePolicyRuleCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class RiskScorePolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + level: string; + +} + +export { + RiskScorePolicyRuleCondition +}; diff --git a/src/types/models/Role.d.ts b/src/types/models/Role.d.ts new file mode 100644 index 000000000..c843db249 --- /dev/null +++ b/src/types/models/Role.d.ts @@ -0,0 +1,47 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import { RoleAssignmentType } from './RoleAssignmentType'; +import { RoleStatus } from './RoleStatus'; +import { RoleType } from './RoleType'; + +declare class Role extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + assignmentType: RoleAssignmentType; + readonly created: string; + description: string; + readonly id: string; + readonly label: string; + readonly lastUpdated: string; + readonly status: RoleStatus; + type: RoleType; + + addAdminGroupTarget(targetGroupId: string): Promise; + addAppInstanceTargetToAdminRole(appName: string, applicationId: string): Promise; + addAppTargetToAdminRole(appName: string): Promise; + addAllAppsAsTargetToRole(): Promise; + addAppTargetToAppAdminRoleForUser(appName: string, applicationId: string): Promise; + addAppTargetToAdminRoleForUser(appName: string): Promise; +} + +export { + Role +}; diff --git a/src/types/models/RoleAssignmentType.d.ts b/src/types/models/RoleAssignmentType.d.ts new file mode 100644 index 000000000..5a01d74f9 --- /dev/null +++ b/src/types/models/RoleAssignmentType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class RoleAssignmentType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + RoleAssignmentType +}; diff --git a/src/types/models/RoleStatus.d.ts b/src/types/models/RoleStatus.d.ts new file mode 100644 index 000000000..9a32043c5 --- /dev/null +++ b/src/types/models/RoleStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class RoleStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + RoleStatus +}; diff --git a/src/types/models/RoleType.d.ts b/src/types/models/RoleType.d.ts new file mode 100644 index 000000000..153bbd01b --- /dev/null +++ b/src/types/models/RoleType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class RoleType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + RoleType +}; diff --git a/src/types/models/SamlApplication.d.ts b/src/types/models/SamlApplication.d.ts new file mode 100644 index 000000000..659ec3483 --- /dev/null +++ b/src/types/models/SamlApplication.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Application } from './Application'; +import Client from '../client'; +import { SamlApplicationSettings } from './SamlApplicationSettings'; + +declare class SamlApplication extends Application { + constructor(resourceJson: Record, client: Client); + + settings: SamlApplicationSettings; + +} + +export { + SamlApplication +}; diff --git a/src/types/models/SamlApplicationSettings.d.ts b/src/types/models/SamlApplicationSettings.d.ts new file mode 100644 index 000000000..8bbfcb114 --- /dev/null +++ b/src/types/models/SamlApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { SamlApplicationSettingsSignOn } from './SamlApplicationSettingsSignOn'; + +declare class SamlApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + signOn: SamlApplicationSettingsSignOn; + +} + +export { + SamlApplicationSettings +}; diff --git a/src/types/models/SamlApplicationSettingsSignOn.d.ts b/src/types/models/SamlApplicationSettingsSignOn.d.ts new file mode 100644 index 000000000..d1b7e535b --- /dev/null +++ b/src/types/models/SamlApplicationSettingsSignOn.d.ts @@ -0,0 +1,51 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SamlApplicationSettingsSignOn extends Resource { + constructor(resourceJson: Record, client: Client); + + acsEndpoints: []; + allowMultipleAcsEndpoints: boolean; + assertionSigned: boolean; + attributeStatements: []; + audience: string; + audienceOverride: string; + authnContextClassRef: string; + defaultRelayState: string; + destination: string; + destinationOverride: string; + digestAlgorithm: string; + honorForceAuthn: boolean; + idpIssuer: string; + recipient: string; + recipientOverride: string; + requestCompressed: boolean; + responseSigned: boolean; + signatureAlgorithm: string; + spIssuer: string; + ssoAcsUrl: string; + ssoAcsUrlOverride: string; + subjectNameIdFormat: string; + subjectNameIdTemplate: string; + +} + +export { + SamlApplicationSettingsSignOn +}; diff --git a/src/types/models/SamlAttributeStatement.d.ts b/src/types/models/SamlAttributeStatement.d.ts new file mode 100644 index 000000000..e1c1fe837 --- /dev/null +++ b/src/types/models/SamlAttributeStatement.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SamlAttributeStatement extends Resource { + constructor(resourceJson: Record, client: Client); + + filterType: string; + filterValue: string; + name: string; + namespace: string; + type: string; + values: []; + +} + +export { + SamlAttributeStatement +}; diff --git a/src/types/models/ScheduledUserLifecycleAction.d.ts b/src/types/models/ScheduledUserLifecycleAction.d.ts new file mode 100644 index 000000000..6b0121429 --- /dev/null +++ b/src/types/models/ScheduledUserLifecycleAction.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ScheduledUserLifecycleAction extends Resource { + constructor(resourceJson: Record, client: Client); + + status: string; + +} + +export { + ScheduledUserLifecycleAction +}; diff --git a/src/types/models/SchemeApplicationCredentials.d.ts b/src/types/models/SchemeApplicationCredentials.d.ts new file mode 100644 index 000000000..6eff7d998 --- /dev/null +++ b/src/types/models/SchemeApplicationCredentials.d.ts @@ -0,0 +1,35 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationCredentials } from './ApplicationCredentials'; +import Client from '../client'; +import { PasswordCredential } from './PasswordCredential'; +import { ApplicationCredentialsScheme } from './ApplicationCredentialsScheme'; +import { ApplicationCredentialsSigning } from './ApplicationCredentialsSigning'; + +declare class SchemeApplicationCredentials extends ApplicationCredentials { + constructor(resourceJson: Record, client: Client); + + password: PasswordCredential; + revealPassword: boolean; + scheme: ApplicationCredentialsScheme; + signing: ApplicationCredentialsSigning; + userName: string; + +} + +export { + SchemeApplicationCredentials +}; diff --git a/src/types/models/Scope.d.ts b/src/types/models/Scope.d.ts new file mode 100644 index 000000000..cc2b6cae3 --- /dev/null +++ b/src/types/models/Scope.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ScopeType } from './ScopeType'; + +declare class Scope extends Resource { + constructor(resourceJson: Record, client: Client); + + stringValue: string; + type: ScopeType; + +} + +export { + Scope +}; diff --git a/src/types/models/ScopeType.d.ts b/src/types/models/ScopeType.d.ts new file mode 100644 index 000000000..8c1d3bd49 --- /dev/null +++ b/src/types/models/ScopeType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class ScopeType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + ScopeType +}; diff --git a/src/types/models/SecurePasswordStoreApplication.d.ts b/src/types/models/SecurePasswordStoreApplication.d.ts new file mode 100644 index 000000000..290671c09 --- /dev/null +++ b/src/types/models/SecurePasswordStoreApplication.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Application } from './Application'; +import Client from '../client'; +import { SchemeApplicationCredentials } from './SchemeApplicationCredentials'; +import { SecurePasswordStoreApplicationSettings } from './SecurePasswordStoreApplicationSettings'; + +declare class SecurePasswordStoreApplication extends Application { + constructor(resourceJson: Record, client: Client); + + credentials: SchemeApplicationCredentials; + settings: SecurePasswordStoreApplicationSettings; + +} + +export { + SecurePasswordStoreApplication +}; diff --git a/src/types/models/SecurePasswordStoreApplicationSettings.d.ts b/src/types/models/SecurePasswordStoreApplicationSettings.d.ts new file mode 100644 index 000000000..1bfb4ef9e --- /dev/null +++ b/src/types/models/SecurePasswordStoreApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { SecurePasswordStoreApplicationSettingsApplication } from './SecurePasswordStoreApplicationSettingsApplication'; + +declare class SecurePasswordStoreApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + app: SecurePasswordStoreApplicationSettingsApplication; + +} + +export { + SecurePasswordStoreApplicationSettings +}; diff --git a/src/types/models/SecurePasswordStoreApplicationSettingsApplication.d.ts b/src/types/models/SecurePasswordStoreApplicationSettingsApplication.d.ts new file mode 100644 index 000000000..c809ddcd5 --- /dev/null +++ b/src/types/models/SecurePasswordStoreApplicationSettingsApplication.d.ts @@ -0,0 +1,37 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettingsApplication } from './ApplicationSettingsApplication'; +import Client from '../client'; + + +declare class SecurePasswordStoreApplicationSettingsApplication extends ApplicationSettingsApplication { + constructor(resourceJson: Record, client: Client); + + optionalField1: string; + optionalField1Value: string; + optionalField2: string; + optionalField2Value: string; + optionalField3: string; + optionalField3Value: string; + passwordField: string; + url: string; + usernameField: string; + +} + +export { + SecurePasswordStoreApplicationSettingsApplication +}; diff --git a/src/types/models/SecurityQuestion.d.ts b/src/types/models/SecurityQuestion.d.ts new file mode 100644 index 000000000..509a1144e --- /dev/null +++ b/src/types/models/SecurityQuestion.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SecurityQuestion extends Resource { + constructor(resourceJson: Record, client: Client); + + answer: string; + question: string; + questionText: string; + +} + +export { + SecurityQuestion +}; diff --git a/src/types/models/SecurityQuestionUserFactor.d.ts b/src/types/models/SecurityQuestionUserFactor.d.ts new file mode 100644 index 000000000..4831cb49d --- /dev/null +++ b/src/types/models/SecurityQuestionUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { SecurityQuestionUserFactorProfile } from './SecurityQuestionUserFactorProfile'; + +declare class SecurityQuestionUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: SecurityQuestionUserFactorProfile; + +} + +export { + SecurityQuestionUserFactor +}; diff --git a/src/types/models/SecurityQuestionUserFactorProfile.d.ts b/src/types/models/SecurityQuestionUserFactorProfile.d.ts new file mode 100644 index 000000000..9d4baeba6 --- /dev/null +++ b/src/types/models/SecurityQuestionUserFactorProfile.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SecurityQuestionUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + answer: string; + question: string; + questionText: string; + +} + +export { + SecurityQuestionUserFactorProfile +}; diff --git a/src/types/models/Session.d.ts b/src/types/models/Session.d.ts new file mode 100644 index 000000000..cd4ab4f7a --- /dev/null +++ b/src/types/models/Session.d.ts @@ -0,0 +1,43 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import { SessionIdentityProvider } from './SessionIdentityProvider'; +import { SessionStatus } from './SessionStatus'; + +declare class Session extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + readonly amr: []; + readonly createdAt: string; + readonly expiresAt: string; + readonly id: string; + readonly idp: SessionIdentityProvider; + readonly lastFactorVerification: string; + readonly lastPasswordVerification: string; + readonly login: string; + readonly status: SessionStatus; + readonly userId: string; + + delete(): Promise; + refresh(): Promise; +} + +export { + Session +}; diff --git a/src/types/models/SessionAuthenticationMethod.d.ts b/src/types/models/SessionAuthenticationMethod.d.ts new file mode 100644 index 000000000..3ed48a6a6 --- /dev/null +++ b/src/types/models/SessionAuthenticationMethod.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SessionAuthenticationMethod extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + SessionAuthenticationMethod +}; diff --git a/src/types/models/SessionIdentityProvider.d.ts b/src/types/models/SessionIdentityProvider.d.ts new file mode 100644 index 000000000..38e4c34f3 --- /dev/null +++ b/src/types/models/SessionIdentityProvider.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { SessionIdentityProviderType } from './SessionIdentityProviderType'; + +declare class SessionIdentityProvider extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly id: string; + readonly type: SessionIdentityProviderType; + +} + +export { + SessionIdentityProvider +}; diff --git a/src/types/models/SessionIdentityProviderType.d.ts b/src/types/models/SessionIdentityProviderType.d.ts new file mode 100644 index 000000000..9cfb90d90 --- /dev/null +++ b/src/types/models/SessionIdentityProviderType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SessionIdentityProviderType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + SessionIdentityProviderType +}; diff --git a/src/types/models/SessionStatus.d.ts b/src/types/models/SessionStatus.d.ts new file mode 100644 index 000000000..553aef012 --- /dev/null +++ b/src/types/models/SessionStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SessionStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + SessionStatus +}; diff --git a/src/types/models/SmsTemplate.d.ts b/src/types/models/SmsTemplate.d.ts new file mode 100644 index 000000000..e5276c779 --- /dev/null +++ b/src/types/models/SmsTemplate.d.ts @@ -0,0 +1,41 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; +import { SmsTemplateTranslations } from './SmsTemplateTranslations'; +import { SmsTemplateType } from './SmsTemplateType'; + +declare class SmsTemplate extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly created: string; + readonly id: string; + readonly lastUpdated: string; + name: string; + template: string; + translations: SmsTemplateTranslations; + type: SmsTemplateType; + + update(): Promise; + delete(): Promise; + partialUpdate(): Promise; +} + +export { + SmsTemplate +}; +export default SmsTemplate; diff --git a/src/types/models/SmsTemplateTranslations.d.ts b/src/types/models/SmsTemplateTranslations.d.ts new file mode 100644 index 000000000..571275381 --- /dev/null +++ b/src/types/models/SmsTemplateTranslations.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SmsTemplateTranslations extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + SmsTemplateTranslations +}; diff --git a/src/types/models/SmsTemplateType.d.ts b/src/types/models/SmsTemplateType.d.ts new file mode 100644 index 000000000..d84a235f8 --- /dev/null +++ b/src/types/models/SmsTemplateType.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SmsTemplateType extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + SmsTemplateType +}; diff --git a/src/types/models/SmsUserFactor.d.ts b/src/types/models/SmsUserFactor.d.ts new file mode 100644 index 000000000..3ae4f4a04 --- /dev/null +++ b/src/types/models/SmsUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { SmsUserFactorProfile } from './SmsUserFactorProfile'; + +declare class SmsUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: SmsUserFactorProfile; + +} + +export { + SmsUserFactor +}; diff --git a/src/types/models/SmsUserFactorProfile.d.ts b/src/types/models/SmsUserFactorProfile.d.ts new file mode 100644 index 000000000..abae8cd43 --- /dev/null +++ b/src/types/models/SmsUserFactorProfile.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SmsUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + phoneNumber: string; + +} + +export { + SmsUserFactorProfile +}; diff --git a/src/types/models/SocialAuthToken.d.ts b/src/types/models/SocialAuthToken.d.ts new file mode 100644 index 000000000..9ac7aa102 --- /dev/null +++ b/src/types/models/SocialAuthToken.d.ts @@ -0,0 +1,34 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class SocialAuthToken extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly expiresAt: string; + readonly id: string; + scopes: []; + token: string; + tokenAuthScheme: string; + tokenType: string; + +} + +export { + SocialAuthToken +}; diff --git a/src/types/models/SwaApplication.d.ts b/src/types/models/SwaApplication.d.ts new file mode 100644 index 000000000..a3d7f09ee --- /dev/null +++ b/src/types/models/SwaApplication.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { BrowserPluginApplication } from './BrowserPluginApplication'; +import Client from '../client'; +import { SwaApplicationSettings } from './SwaApplicationSettings'; + +declare class SwaApplication extends BrowserPluginApplication { + constructor(resourceJson: Record, client: Client); + + settings: SwaApplicationSettings; + +} + +export { + SwaApplication +}; diff --git a/src/types/models/SwaApplicationSettings.d.ts b/src/types/models/SwaApplicationSettings.d.ts new file mode 100644 index 000000000..5ec722d27 --- /dev/null +++ b/src/types/models/SwaApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { SwaApplicationSettingsApplication } from './SwaApplicationSettingsApplication'; + +declare class SwaApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + app: SwaApplicationSettingsApplication; + +} + +export { + SwaApplicationSettings +}; diff --git a/src/types/models/SwaApplicationSettingsApplication.d.ts b/src/types/models/SwaApplicationSettingsApplication.d.ts new file mode 100644 index 000000000..09e1e9074 --- /dev/null +++ b/src/types/models/SwaApplicationSettingsApplication.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettingsApplication } from './ApplicationSettingsApplication'; +import Client from '../client'; + + +declare class SwaApplicationSettingsApplication extends ApplicationSettingsApplication { + constructor(resourceJson: Record, client: Client); + + buttonField: string; + loginUrlRegex: string; + passwordField: string; + url: string; + usernameField: string; + +} + +export { + SwaApplicationSettingsApplication +}; diff --git a/src/types/models/SwaThreeFieldApplication.d.ts b/src/types/models/SwaThreeFieldApplication.d.ts new file mode 100644 index 000000000..bfac91a71 --- /dev/null +++ b/src/types/models/SwaThreeFieldApplication.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { BrowserPluginApplication } from './BrowserPluginApplication'; +import Client from '../client'; +import { SwaThreeFieldApplicationSettings } from './SwaThreeFieldApplicationSettings'; + +declare class SwaThreeFieldApplication extends BrowserPluginApplication { + constructor(resourceJson: Record, client: Client); + + settings: SwaThreeFieldApplicationSettings; + +} + +export { + SwaThreeFieldApplication +}; diff --git a/src/types/models/SwaThreeFieldApplicationSettings.d.ts b/src/types/models/SwaThreeFieldApplicationSettings.d.ts new file mode 100644 index 000000000..821b5d266 --- /dev/null +++ b/src/types/models/SwaThreeFieldApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { SwaThreeFieldApplicationSettingsApplication } from './SwaThreeFieldApplicationSettingsApplication'; + +declare class SwaThreeFieldApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + app: SwaThreeFieldApplicationSettingsApplication; + +} + +export { + SwaThreeFieldApplicationSettings +}; diff --git a/src/types/models/SwaThreeFieldApplicationSettingsApplication.d.ts b/src/types/models/SwaThreeFieldApplicationSettingsApplication.d.ts new file mode 100644 index 000000000..6f56ef6e3 --- /dev/null +++ b/src/types/models/SwaThreeFieldApplicationSettingsApplication.d.ts @@ -0,0 +1,35 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettingsApplication } from './ApplicationSettingsApplication'; +import Client from '../client'; + + +declare class SwaThreeFieldApplicationSettingsApplication extends ApplicationSettingsApplication { + constructor(resourceJson: Record, client: Client); + + buttonSelector: string; + extraFieldSelector: string; + extraFieldValue: string; + loginUrlRegex: string; + passwordSelector: string; + targetURL: string; + userNameSelector: string; + +} + +export { + SwaThreeFieldApplicationSettingsApplication +}; diff --git a/src/types/models/TempPassword.d.ts b/src/types/models/TempPassword.d.ts new file mode 100644 index 000000000..33e731499 --- /dev/null +++ b/src/types/models/TempPassword.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class TempPassword extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly tempPassword: string; + +} + +export { + TempPassword +}; diff --git a/src/types/models/TokenAuthorizationServerPolicyRuleAction.d.ts b/src/types/models/TokenAuthorizationServerPolicyRuleAction.d.ts new file mode 100644 index 000000000..38c45072a --- /dev/null +++ b/src/types/models/TokenAuthorizationServerPolicyRuleAction.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class TokenAuthorizationServerPolicyRuleAction extends Resource { + constructor(resourceJson: Record, client: Client); + + accessTokenLifetimeMinutes: number; + refreshTokenLifetimeMinutes: number; + refreshTokenWindowMinutes: number; + +} + +export { + TokenAuthorizationServerPolicyRuleAction +}; diff --git a/src/types/models/TokenUserFactor.d.ts b/src/types/models/TokenUserFactor.d.ts new file mode 100644 index 000000000..4f7f29653 --- /dev/null +++ b/src/types/models/TokenUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { TokenUserFactorProfile } from './TokenUserFactorProfile'; + +declare class TokenUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: TokenUserFactorProfile; + +} + +export { + TokenUserFactor +}; diff --git a/src/types/models/TokenUserFactorProfile.d.ts b/src/types/models/TokenUserFactorProfile.d.ts new file mode 100644 index 000000000..dfbd0f61e --- /dev/null +++ b/src/types/models/TokenUserFactorProfile.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class TokenUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + credentialId: string; + +} + +export { + TokenUserFactorProfile +}; diff --git a/src/types/models/TotpUserFactor.d.ts b/src/types/models/TotpUserFactor.d.ts new file mode 100644 index 000000000..704ca6f79 --- /dev/null +++ b/src/types/models/TotpUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { TotpUserFactorProfile } from './TotpUserFactorProfile'; + +declare class TotpUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: TotpUserFactorProfile; + +} + +export { + TotpUserFactor +}; diff --git a/src/types/models/TotpUserFactorProfile.d.ts b/src/types/models/TotpUserFactorProfile.d.ts new file mode 100644 index 000000000..d7a1de98f --- /dev/null +++ b/src/types/models/TotpUserFactorProfile.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class TotpUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + credentialId: string; + +} + +export { + TotpUserFactorProfile +}; diff --git a/src/types/models/TrustedOrigin.d.ts b/src/types/models/TrustedOrigin.d.ts new file mode 100644 index 000000000..f73b3ca72 --- /dev/null +++ b/src/types/models/TrustedOrigin.d.ts @@ -0,0 +1,40 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; + +declare class TrustedOrigin extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + readonly created: string; + createdBy: string; + readonly id: string; + readonly lastUpdated: string; + lastUpdatedBy: string; + name: string; + origin: string; + scopes: []; + status: string; + + update(): Promise; + delete(): Promise; +} + +export { + TrustedOrigin +}; diff --git a/src/types/models/U2fUserFactor.d.ts b/src/types/models/U2fUserFactor.d.ts new file mode 100644 index 000000000..2da65a8ee --- /dev/null +++ b/src/types/models/U2fUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { U2fUserFactorProfile } from './U2fUserFactorProfile'; + +declare class U2fUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: U2fUserFactorProfile; + +} + +export { + U2fUserFactor +}; diff --git a/src/types/models/U2fUserFactorProfile.d.ts b/src/types/models/U2fUserFactorProfile.d.ts new file mode 100644 index 000000000..0f4485161 --- /dev/null +++ b/src/types/models/U2fUserFactorProfile.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class U2fUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + credentialId: string; + +} + +export { + U2fUserFactorProfile +}; diff --git a/src/types/models/User.d.ts b/src/types/models/User.d.ts new file mode 100644 index 000000000..febc039db --- /dev/null +++ b/src/types/models/User.d.ts @@ -0,0 +1,157 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import Collection from '../collection'; +import { AppLink } from './AppLink'; +import { ChangePasswordRequest } from './ChangePasswordRequest'; +import { UserCredentials } from './UserCredentials'; +import { ForgotPasswordResponse } from './ForgotPasswordResponse'; +import { AssignRoleRequest } from './AssignRoleRequest'; +import { Role } from './Role'; +import { Response } from 'node-fetch'; +import { Group } from './Group'; +import { OAuth2ScopeConsentGrant } from './OAuth2ScopeConsentGrant'; +import { OAuth2RefreshToken } from './OAuth2RefreshToken'; +import { OAuth2Client } from './OAuth2Client'; +import { UserActivationToken } from './UserActivationToken'; +import { ResetPasswordToken } from './ResetPasswordToken'; +import { TempPassword } from './TempPassword'; +import { UserFactor } from './UserFactor'; +import { SecurityQuestion } from './SecurityQuestion'; +import { IdentityProvider } from './IdentityProvider'; +import { ResponseLinks } from './ResponseLinks'; +import { UserProfile } from './UserProfile'; +import { UserStatus } from './UserStatus'; +import { UserType } from './UserType'; + +declare class User extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + readonly activated: string; + readonly created: string; + credentials: UserCredentials; + readonly id: string; + readonly lastLogin: string; + readonly lastUpdated: string; + readonly passwordChanged: string; + profile: UserProfile; + readonly status: UserStatus; + readonly statusChanged: string; + readonly transitioningToStatus: UserStatus; + type: UserType; + + update(queryParameters?: { + strict?: boolean, + }): Promise; + delete(queryParameters?: { + sendEmail?: boolean, + }): Promise; + listAppLinks(): Collection; + changePassword(changePasswordRequest: ChangePasswordRequest, queryParameters?: { + strict?: boolean, + }): Promise; + changeRecoveryQuestion(userCredentials: UserCredentials): Promise; + forgotPasswordSetNewPassword(userCredentials: UserCredentials, queryParameters?: { + sendEmail?: boolean, + }): Promise; + forgotPasswordGenerateOneTimeToken(queryParameters?: { + sendEmail?: boolean, + }): Promise; + assignRole(assignRoleRequest: AssignRoleRequest, queryParameters?: { + disableNotifications?: string, + }): Promise; + removeRole(roleId: string): Promise; + listGroupTargets(roleId: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + removeGroupTarget(roleId: string, groupId: string): Promise; + addGroupTarget(roleId: string, groupId: string): Promise; + listAssignedRoles(queryParameters?: { + expand?: string, + }): Collection; + addAllAppsAsTarget(roleId: string): Promise; + listGroups(): Collection; + listGrants(queryParameters?: { + scopeId?: string, + expand?: string, + after?: string, + limit?: number, + }): Collection; + revokeGrants(): Promise; + revokeGrant(grantId: string): Promise; + revokeGrantsForUserAndClient(clientId: string): Promise; + listRefreshTokensForUserAndClient(clientId: string, queryParameters?: { + expand?: string, + after?: string, + limit?: number, + }): Collection; + revokeTokenForUserAndClient(clientId: string, tokenId: string): Promise; + getRefreshTokenForUserAndClient(clientId: string, tokenId: string, queryParameters?: { + expand?: string, + limit?: number, + after?: string, + }): Promise; + revokeTokensForUserAndClient(clientId: string): Promise; + listClients(): Collection; + activate(queryParameters: { + sendEmail: boolean, + }): Promise; + reactivate(queryParameters?: { + sendEmail?: boolean, + }): Promise; + deactivate(queryParameters?: { + sendEmail?: boolean, + }): Promise; + suspend(): Promise; + unsuspend(): Promise; + resetPassword(queryParameters: { + sendEmail: boolean, + }): Promise; + expirePassword(): Promise; + expirePasswordAndGetTemporaryPassword(): Promise; + unlock(): Promise; + resetFactors(): Promise; + deleteFactor(factorId: string): Promise; + addToGroup(groupId: string): Promise; + enrollFactor(userFactor: UserFactor, queryParameters?: { + updatePhone?: boolean, + templateId?: string, + tokenLifetimeSeconds?: number, + activate?: boolean, + }): Promise; + listSupportedFactors(): Collection; + listFactors(): Collection; + listSupportedSecurityQuestions(): Collection; + getFactor(factorId: string): Promise; + setLinkedObject(primaryRelationshipName: string, primaryUserId: string): Promise; + listIdentityProviders(): Collection; + getLinkedObjects(relationshipName: string, queryParameters?: { + after?: string, + limit?: number, + }): Collection; + clearSessions(queryParameters?: { + oauthTokens?: boolean, + }): Promise; + removeLinkedObject(relationshipName: string): Promise; +} + +export { + User +}; diff --git a/src/types/models/UserActivationToken.d.ts b/src/types/models/UserActivationToken.d.ts new file mode 100644 index 000000000..e6c8bb4bb --- /dev/null +++ b/src/types/models/UserActivationToken.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserActivationToken extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly activationToken: string; + readonly activationUrl: string; + +} + +export { + UserActivationToken +}; diff --git a/src/types/models/UserCondition.d.ts b/src/types/models/UserCondition.d.ts new file mode 100644 index 000000000..972eeb701 --- /dev/null +++ b/src/types/models/UserCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + include: []; + +} + +export { + UserCondition +}; diff --git a/src/types/models/UserCredentials.d.ts b/src/types/models/UserCredentials.d.ts new file mode 100644 index 000000000..b43f87e0b --- /dev/null +++ b/src/types/models/UserCredentials.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { PasswordCredential } from './PasswordCredential'; +import { AuthenticationProvider } from './AuthenticationProvider'; +import { RecoveryQuestionCredential } from './RecoveryQuestionCredential'; + +declare class UserCredentials extends Resource { + constructor(resourceJson: Record, client: Client); + + password: PasswordCredential; + provider: AuthenticationProvider; + recovery_question: RecoveryQuestionCredential; + +} + +export { + UserCredentials +}; diff --git a/src/types/models/UserFactor.d.ts b/src/types/models/UserFactor.d.ts new file mode 100644 index 000000000..19af0944d --- /dev/null +++ b/src/types/models/UserFactor.d.ts @@ -0,0 +1,49 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { ActivateFactorRequest } from './ActivateFactorRequest'; +import { VerifyFactorRequest } from './VerifyFactorRequest'; +import { VerifyUserFactorResponse } from './VerifyUserFactorResponse'; +import { Response } from 'node-fetch'; +import { FactorType } from './FactorType'; +import { FactorProvider } from './FactorProvider'; +import { FactorStatus } from './FactorStatus'; + +declare class UserFactor extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + readonly created: string; + factorType: FactorType; + readonly id: string; + readonly lastUpdated: string; + provider: FactorProvider; + readonly status: FactorStatus; + _verify: VerifyFactorRequest; + + delete(): Promise; + activate(activateFactorRequest: ActivateFactorRequest): Promise; + verify(verifyFactorRequest: VerifyFactorRequest, queryParameters?: { + templateId?: string, + tokenLifetimeSeconds?: number, + }): Promise; +} + +export { + UserFactor +}; diff --git a/src/types/models/UserIdentifierConditionEvaluatorPattern.d.ts b/src/types/models/UserIdentifierConditionEvaluatorPattern.d.ts new file mode 100644 index 000000000..e6c7f4de2 --- /dev/null +++ b/src/types/models/UserIdentifierConditionEvaluatorPattern.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserIdentifierConditionEvaluatorPattern extends Resource { + constructor(resourceJson: Record, client: Client); + + matchType: string; + value: string; + +} + +export { + UserIdentifierConditionEvaluatorPattern +}; diff --git a/src/types/models/UserIdentifierPolicyRuleCondition.d.ts b/src/types/models/UserIdentifierPolicyRuleCondition.d.ts new file mode 100644 index 000000000..68fcc631a --- /dev/null +++ b/src/types/models/UserIdentifierPolicyRuleCondition.d.ts @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserIdentifierPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + attribute: string; + patterns: []; + type: string; + +} + +export { + UserIdentifierPolicyRuleCondition +}; diff --git a/src/types/models/UserIdentityProviderLinkRequest.d.ts b/src/types/models/UserIdentityProviderLinkRequest.d.ts new file mode 100644 index 000000000..8ebd3930b --- /dev/null +++ b/src/types/models/UserIdentityProviderLinkRequest.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserIdentityProviderLinkRequest extends Resource { + constructor(resourceJson: Record, client: Client); + + externalId: string; + +} + +export { + UserIdentityProviderLinkRequest +}; diff --git a/src/types/models/UserLifecycleAttributePolicyRuleCondition.d.ts b/src/types/models/UserLifecycleAttributePolicyRuleCondition.d.ts new file mode 100644 index 000000000..9e1a6143e --- /dev/null +++ b/src/types/models/UserLifecycleAttributePolicyRuleCondition.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserLifecycleAttributePolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + attributeName: string; + matchingValue: string; + +} + +export { + UserLifecycleAttributePolicyRuleCondition +}; diff --git a/src/types/models/UserNextLogin.d.ts b/src/types/models/UserNextLogin.d.ts new file mode 100644 index 000000000..5784e997c --- /dev/null +++ b/src/types/models/UserNextLogin.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserNextLogin extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + UserNextLogin +}; diff --git a/src/types/models/UserPolicyRuleCondition.d.ts b/src/types/models/UserPolicyRuleCondition.d.ts new file mode 100644 index 000000000..e050578a9 --- /dev/null +++ b/src/types/models/UserPolicyRuleCondition.d.ts @@ -0,0 +1,37 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { InactivityPolicyRuleCondition } from './InactivityPolicyRuleCondition'; +import { LifecycleExpirationPolicyRuleCondition } from './LifecycleExpirationPolicyRuleCondition'; +import { PasswordExpirationPolicyRuleCondition } from './PasswordExpirationPolicyRuleCondition'; +import { UserLifecycleAttributePolicyRuleCondition } from './UserLifecycleAttributePolicyRuleCondition'; + +declare class UserPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + exclude: []; + inactivity: InactivityPolicyRuleCondition; + include: []; + lifecycleExpiration: LifecycleExpirationPolicyRuleCondition; + passwordExpiration: PasswordExpirationPolicyRuleCondition; + userLifecycleAttribute: UserLifecycleAttributePolicyRuleCondition; + +} + +export { + UserPolicyRuleCondition +}; diff --git a/src/types/models/UserProfile.d.ts b/src/types/models/UserProfile.d.ts new file mode 100644 index 000000000..7fe4f8e37 --- /dev/null +++ b/src/types/models/UserProfile.d.ts @@ -0,0 +1,59 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + city: string; + costCenter: string; + countryCode: string; + department: string; + displayName: string; + division: string; + email: string; + employeeNumber: string; + firstName: string; + honorificPrefix: string; + honorificSuffix: string; + lastName: string; + locale: string; + login: string; + manager: string; + managerId: string; + middleName: string; + mobilePhone: string; + nickName: string; + organization: string; + postalAddress: string; + preferredLanguage: string; + primaryPhone: string; + profileUrl: string; + secondEmail: string; + state: string; + streetAddress: string; + timezone: string; + title: string; + userType: string; + zipCode: string; + +} + +export { + UserProfile +}; diff --git a/src/types/models/UserStatus.d.ts b/src/types/models/UserStatus.d.ts new file mode 100644 index 000000000..c3308e110 --- /dev/null +++ b/src/types/models/UserStatus.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserStatus extends Resource { + constructor(resourceJson: Record, client: Client); + + +} + +export { + UserStatus +}; diff --git a/src/types/models/UserStatusPolicyRuleCondition.d.ts b/src/types/models/UserStatusPolicyRuleCondition.d.ts new file mode 100644 index 000000000..f5eec0bb2 --- /dev/null +++ b/src/types/models/UserStatusPolicyRuleCondition.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class UserStatusPolicyRuleCondition extends Resource { + constructor(resourceJson: Record, client: Client); + + value: string; + +} + +export { + UserStatusPolicyRuleCondition +}; diff --git a/src/types/models/UserType.d.ts b/src/types/models/UserType.d.ts new file mode 100644 index 000000000..aafc72822 --- /dev/null +++ b/src/types/models/UserType.d.ts @@ -0,0 +1,40 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; +import { Response } from 'node-fetch'; + +declare class UserType extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _links: {[name: string]: unknown}; + readonly created: string; + readonly createdBy: string; + readonly default: boolean; + description: string; + displayName: string; + id: string; + readonly lastUpdated: string; + readonly lastUpdatedBy: string; + name: string; + + update(): Promise; + delete(): Promise; +} + +export { + UserType +}; diff --git a/src/types/models/VerifyFactorRequest.d.ts b/src/types/models/VerifyFactorRequest.d.ts new file mode 100644 index 000000000..d382d2f23 --- /dev/null +++ b/src/types/models/VerifyFactorRequest.d.ts @@ -0,0 +1,36 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class VerifyFactorRequest extends Resource { + constructor(resourceJson: Record, client: Client); + + activationToken: string; + answer: string; + attestation: string; + clientData: string; + nextPassCode: string; + passCode: string; + registrationData: string; + stateToken: string; + +} + +export { + VerifyFactorRequest +}; diff --git a/src/types/models/VerifyUserFactorResponse.d.ts b/src/types/models/VerifyUserFactorResponse.d.ts new file mode 100644 index 000000000..9ef1d6e02 --- /dev/null +++ b/src/types/models/VerifyUserFactorResponse.d.ts @@ -0,0 +1,33 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class VerifyUserFactorResponse extends Resource { + constructor(resourceJson: Record, client: Client); + + readonly _embedded: {[name: string]: unknown}; + readonly _links: {[name: string]: unknown}; + readonly expiresAt: string; + factorResult: string; + factorResultMessage: string; + +} + +export { + VerifyUserFactorResponse +}; diff --git a/src/types/models/WebAuthnUserFactor.d.ts b/src/types/models/WebAuthnUserFactor.d.ts new file mode 100644 index 000000000..768d2baf5 --- /dev/null +++ b/src/types/models/WebAuthnUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { WebAuthnUserFactorProfile } from './WebAuthnUserFactorProfile'; + +declare class WebAuthnUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: WebAuthnUserFactorProfile; + +} + +export { + WebAuthnUserFactor +}; diff --git a/src/types/models/WebAuthnUserFactorProfile.d.ts b/src/types/models/WebAuthnUserFactorProfile.d.ts new file mode 100644 index 000000000..ea10e515c --- /dev/null +++ b/src/types/models/WebAuthnUserFactorProfile.d.ts @@ -0,0 +1,30 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class WebAuthnUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + authenticatorName: string; + credentialId: string; + +} + +export { + WebAuthnUserFactorProfile +}; diff --git a/src/types/models/WebUserFactor.d.ts b/src/types/models/WebUserFactor.d.ts new file mode 100644 index 000000000..503344aa2 --- /dev/null +++ b/src/types/models/WebUserFactor.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { UserFactor } from './UserFactor'; +import Client from '../client'; +import { WebUserFactorProfile } from './WebUserFactorProfile'; + +declare class WebUserFactor extends UserFactor { + constructor(resourceJson: Record, client: Client); + + profile: WebUserFactorProfile; + +} + +export { + WebUserFactor +}; diff --git a/src/types/models/WebUserFactorProfile.d.ts b/src/types/models/WebUserFactorProfile.d.ts new file mode 100644 index 000000000..bcf5b5700 --- /dev/null +++ b/src/types/models/WebUserFactorProfile.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import Resource from '../resource'; +import Client from '../client'; + + +declare class WebUserFactorProfile extends Resource { + constructor(resourceJson: Record, client: Client); + + credentialId: string; + +} + +export { + WebUserFactorProfile +}; diff --git a/src/types/models/WsFederationApplication.d.ts b/src/types/models/WsFederationApplication.d.ts new file mode 100644 index 000000000..63d0b2218 --- /dev/null +++ b/src/types/models/WsFederationApplication.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { Application } from './Application'; +import Client from '../client'; +import { WsFederationApplicationSettings } from './WsFederationApplicationSettings'; + +declare class WsFederationApplication extends Application { + constructor(resourceJson: Record, client: Client); + + settings: WsFederationApplicationSettings; + +} + +export { + WsFederationApplication +}; diff --git a/src/types/models/WsFederationApplicationSettings.d.ts b/src/types/models/WsFederationApplicationSettings.d.ts new file mode 100644 index 000000000..384eb4445 --- /dev/null +++ b/src/types/models/WsFederationApplicationSettings.d.ts @@ -0,0 +1,29 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettings } from './ApplicationSettings'; +import Client from '../client'; +import { WsFederationApplicationSettingsApplication } from './WsFederationApplicationSettingsApplication'; + +declare class WsFederationApplicationSettings extends ApplicationSettings { + constructor(resourceJson: Record, client: Client); + + app: WsFederationApplicationSettingsApplication; + +} + +export { + WsFederationApplicationSettings +}; diff --git a/src/types/models/WsFederationApplicationSettingsApplication.d.ts b/src/types/models/WsFederationApplicationSettingsApplication.d.ts new file mode 100644 index 000000000..66c8c1deb --- /dev/null +++ b/src/types/models/WsFederationApplicationSettingsApplication.d.ts @@ -0,0 +1,40 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import { ApplicationSettingsApplication } from './ApplicationSettingsApplication'; +import Client from '../client'; + + +declare class WsFederationApplicationSettingsApplication extends ApplicationSettingsApplication { + constructor(resourceJson: Record, client: Client); + + attributeStatements: string; + audienceRestriction: string; + authnContextClassRef: string; + groupFilter: string; + groupName: string; + groupValueFormat: string; + nameIDFormat: string; + realm: string; + siteURL: string; + usernameAttribute: string; + wReplyOverride: boolean; + wReplyURL: string; + +} + +export { + WsFederationApplicationSettingsApplication +}; diff --git a/src/types/oauth.d.ts b/src/types/oauth.d.ts new file mode 100644 index 000000000..5f1790e33 --- /dev/null +++ b/src/types/oauth.d.ts @@ -0,0 +1,55 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import Client from './client'; + +interface JWTHeader { + alg: string; + typ?: string; + kid?: string; + jku?: string; + x5u?: string; + x5t?: string; +} + +interface UserClaims { + sub: string; + [properties: string]: unknown; +} + +export interface TokenEndpointResponse { + access_token: string, + token_type: string, + expires_in: number, + scope: string, +} + +// import from okta-auth-js? +export interface JWTObject { + header: JWTHeader; + payload: UserClaims; + signature: string; +} + + + +declare class OAuth { + constructor(client: Client); + + client: Client; + accessToken: TokenEndpointResponse; + getAccessToken(): Promise; + clearCachedAccessToken(): void; + getJwt(endpoint: string): JWTObject; +} + +export default OAuth; diff --git a/src/types/okta-response-headers.d.ts b/src/types/okta-response-headers.d.ts new file mode 100644 index 000000000..e51070816 --- /dev/null +++ b/src/types/okta-response-headers.d.ts @@ -0,0 +1,23 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +export interface OktaResponseHeadersReturnType { + [key: string]: string | number | undefined, + 'x-okta-request-id'?: string, + 'x-rate-limit-limit'?: number, + 'x-rate-limit-remaining'?: number, + 'x-rate-limit-reset'?: number +} + +declare function OktaResponseHeaders(responseHeadersMap: Record): OktaResponseHeadersReturnType; + +export default OktaResponseHeaders; diff --git a/src/types/request-executor.d.ts b/src/types/request-executor.d.ts new file mode 100644 index 000000000..18eaff7f1 --- /dev/null +++ b/src/types/request-executor.d.ts @@ -0,0 +1,28 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import { Response } from 'node-fetch'; +import EventEmitter_1 = require('events'); +import EventEmitter = EventEmitter_1.EventEmitter; + +import RequestOptions from './request-options'; + + +export interface IRequestExecutor { + fetch(requestOptions: RequestOptions): Promise; +} + +declare class RequestExecutor extends EventEmitter implements IRequestExecutor { + fetch(requestOptions: RequestOptions): Promise; +} + +export default RequestExecutor; diff --git a/src/types/request-options.d.ts b/src/types/request-options.d.ts new file mode 100644 index 000000000..0e9887b9f --- /dev/null +++ b/src/types/request-options.d.ts @@ -0,0 +1,20 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import { RequestInit } from 'node-fetch'; + +/** An extension of node-fetch's request options. */ +interface RequestOptions extends RequestInit { + startTime?: Date +} + +export default RequestOptions; diff --git a/src/types/resolution-factory.d.ts b/src/types/resolution-factory.d.ts new file mode 100644 index 000000000..92cc22d87 --- /dev/null +++ b/src/types/resolution-factory.d.ts @@ -0,0 +1,23 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import Resource from './resource'; +import Client from './client'; + + +declare class ModelResolutionFactory { + getMapping(): Record; + getResolutionProperty(): string; + createInstance(resource: Record, client: Client): Resource; +} + +export default ModelResolutionFactory; diff --git a/src/types/resource.d.ts b/src/types/resource.d.ts new file mode 100644 index 000000000..9a7d315c7 --- /dev/null +++ b/src/types/resource.d.ts @@ -0,0 +1,19 @@ +/*! + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. + * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") + * + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and limitations under the License. + */ + +import Client from './client'; + +declare class Resource { + constructor(resourceJson: Record, client: Client); +} + +export default Resource; diff --git a/templates/.eslintrc b/templates/.eslintrc new file mode 100644 index 000000000..705d42acb --- /dev/null +++ b/templates/.eslintrc @@ -0,0 +1,11 @@ +{ + "rules": { + "no-use-before-define": [ + "error", + { + "functions": false, + "variables": false + } + ] + } +} diff --git a/templates/factories.index.js.hbs b/templates/factories.index.js.hbs index 27e0ff027..36b6fbaf1 100644 --- a/templates/factories.index.js.hbs +++ b/templates/factories.index.js.hbs @@ -1,16 +1,4 @@ -/*! - * Copyright (c) 2017-2020, Okta, Inc. and/or its affiliates. All rights reserved. - * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") - * - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and limitations under the License. - */ - - +{{!-- The template file is not auto-generated - this banner is to be included into destination files --}} /* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ /** @ignore */ diff --git a/templates/factory.d.ts.hbs b/templates/factory.d.ts.hbs new file mode 100644 index 000000000..ee42d3a65 --- /dev/null +++ b/templates/factory.d.ts.hbs @@ -0,0 +1,12 @@ +{{!-- The template file is not auto-generated - this banner is to be included into destination files --}} +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +import ModelResolutionFactory from '../resolution-factory'; + +declare class {{parentModelName}}Factory extends ModelResolutionFactory { +} + +export default {{parentModelName}}Factory; diff --git a/templates/factory.js.hbs b/templates/factory.js.hbs index 4a0e228d8..58c4ac3a7 100644 --- a/templates/factory.js.hbs +++ b/templates/factory.js.hbs @@ -1,16 +1,4 @@ -/*! - * Copyright (c) 2017-2020, Okta, Inc. and/or its affiliates. All rights reserved. - * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") - * - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and limitations under the License. - */ - - +{{!-- The template file is not auto-generated - this banner is to be included into destination files --}} /* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ const ModelResolutionFactory = require('../resolution-factory'); diff --git a/templates/generated-client.d.ts.hbs b/templates/generated-client.d.ts.hbs new file mode 100644 index 000000000..c793771cb --- /dev/null +++ b/templates/generated-client.d.ts.hbs @@ -0,0 +1,15 @@ +{{!-- The template file is not auto-generated - this banner is to be included into destination files --}} +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + + +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +{{{typeScriptClientImportBuilder operations}}} + +declare class GeneratedApiClient { +{{#each operations}} + {{{typeScriptOperationSignatureBuilder this}}} +{{/each}} +} + +export default GeneratedApiClient; diff --git a/templates/generated-client.js.hbs b/templates/generated-client.js.hbs index 806a06742..0516f2291 100644 --- a/templates/generated-client.js.hbs +++ b/templates/generated-client.js.hbs @@ -1,16 +1,4 @@ -/*! - * Copyright (c) 2017-2020, Okta, Inc. and/or its affiliates. All rights reserved. - * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") - * - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and limitations under the License. - */ - - +{{!-- The template file is not auto-generated - this banner is to be included into destination files --}} /* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ const qs = require('querystring'); diff --git a/templates/helpers/operation.js b/templates/helpers/operation.js index 4c3a1c3a6..76e9e3c86 100644 --- a/templates/helpers/operation.js +++ b/templates/helpers/operation.js @@ -1,6 +1,31 @@ const _ = require('lodash'); -const getBodyModelNameInCamelCase = operation => { +const MODELS_SHOULD_NOT_PROCESS = ['object', 'string', 'undefined', 'Promise']; + +// BEGIN Work around spec mismatches and upstream parsing inconsistencies. +// The below map is used to block redefining(overriding) properties listed as values in models specified as keys. +// It is also consulted with for excluding the blocklisted properties from intialization in constructor, +// adding to jsDoc parameters and skipping imports. +// This is done to avoid property type conflicts between parent and descendant models. +// These models' respective superclasses are expected to provide a correct property type. +const RESTRICTED_MODEL_PROPERTY_OVERRIDES = { + OktaSignOnPolicy: ['conditions'], + PasswordPolicy: ['conditions'], + BookmarkApplication: ['name'], + BasicAuthApplication: ['name'], + OpenIdConnectApplication: ['name'], + WsFederationApplication: ['name'], + SwaThreeFieldApplication: ['name'], + SwaApplication: ['name'], + SecurePasswordStoreApplication: ['name'], +}; +const KNOWN_CONFLICTING_PROPERTY_NAMES = { + UserFactor: ['verify'], +}; +const PROPERTY_NAME_CHARACTERS_REQUIRE_ESCAPING = ['#']; +// END Work around spec mismatches and upstream parsing inconsistencies. + +const getBodyModelName = operation => { const { bodyModel, parameters } = operation; let bodyModelName = bodyModel; if (bodyModel === 'string') { @@ -9,9 +34,11 @@ const getBodyModelNameInCamelCase = operation => { bodyModelName = bodyParam.name; } } - return _.camelCase(bodyModelName); + return bodyModelName; }; +const getBodyModelNameInCamelCase = operation => _.camelCase(getBodyModelName(operation)); + const getOperationArgument = operation => { const { bodyModel, method, pathParams, queryParams } = operation; @@ -32,19 +59,19 @@ const getOperationArgument = operation => { } return args; -} +}; const operationArgumentBuilder = (operation) => { const args = getOperationArgument(operation); return args.join(', '); -} +}; -const getRequiredOperationParams = operation => { +const getRequiredOperationParams = operation => { const args = getOperationArgument(operation); return operation.parameters.filter(({ name, required }) => { return args.includes(name) && required; }); -} +}; const getHttpMethod = ({ consumes, produces, method, responseModel }) => { let res; @@ -77,15 +104,15 @@ const hasRequest = (operation) => { }; const hasHeaders = (operation) => { - const { consumes, produces, bodyModel } = operation; + const { consumes, produces } = operation; const httpMethod = getHttpMethod(operation); return httpMethod.indexOf('Json') === -1 && (consumes.length || produces.length); }; const shouldResolveJson = (operation) => { - return hasHeaders(operation) - && hasRequest(operation) - && operation.responseModel + return hasHeaders(operation) + && hasRequest(operation) + && operation.responseModel && operation.produces.includes('application/json'); }; @@ -119,15 +146,223 @@ const jsdocBuilder = (operation) => { if (operation.responseModel) { if (operation.isArray) { - lines.push(` * @returns {Promise} A collection that will yield {@link ${operation.responseModel}} instances.`) + lines.push(` * @returns {Promise} A collection that will yield {@link ${operation.responseModel}} instances.`); } else { - lines.push(` * @returns {Promise<${operation.responseModel}>}`) + lines.push(` * @returns {Promise<${operation.responseModel}>}`); } } return lines.join('\n'); }; +const typeScriptOperationSignatureBuilder = operation => { + const [args, returnType] = getOperationArgumentsAndReturnType(operation); + return `${operation.operationId}(${formatTypeScriptArguments(args)}): ${formatReturnType(returnType)};`; +}; + +const typeScriptModelMethodSignatureBuilder = (method, modelName) => { + const [args, returnType] = getModelMethodArgumentsAndReturnType(method, modelName); + return `(${formatTypeScriptArguments(args)}): ${formatReturnType(returnType)};`; +}; + +const typeScriptClientImportBuilder = operations => { + const operationsImportTypes = operations.reduce((acc, operation) => { + const [args, returnType] = getOperationArgumentsAndReturnType(operation); + const typeNames = convertTypeObjectsToTypeNames(args, returnType); + const importableTypes = typeNames.filter(isImportableType); + return acc.concat(importableTypes); + }, []); + + return formatImportStatements(new Set([...operationsImportTypes]), { + isModelToModelImport: false + }); +}; + +const typeScriptModelImportBuilder = model => { + const {properties, methods} = model; + if (!properties && !methods) { + return; + } + + const methodsImportTypes = model.methods.reduce((acc, method) => { + const [args, returnType] = getModelMethodArgumentsAndReturnType(method, model.modelName); + const typeNames = convertTypeObjectsToTypeNames(args, returnType); + const importableTypes = typeNames.filter(isImportableType); + return acc.concat(importableTypes); + }, []); + + + // CRUD operations return Promise or Promise - we want Response to be included into imports. + const selfInvocableOperations = model.crud.filter(crud => ['update', 'delete'].includes(crud.alias)); + const crudImportTypes = selfInvocableOperations.reduce((acc, crud) => { + const [args, returnType] = getOperationArgumentsAndReturnType(crud.operation); + const typeNames = convertTypeObjectsToTypeNames(args, returnType); + const importableTypes = typeNames.filter(isImportableType); + return acc.concat(importableTypes); + }, []); + + const propertiesImportTypes = []; + properties.forEach(property => { + if (isImportablePropertyType(property, model.modelName)) { + propertiesImportTypes.push(property.model); + } + }); + + const importTypes = new Set([...methodsImportTypes, ...crudImportTypes, ...propertiesImportTypes]); + // model methods returning model type + importTypes.delete(model.modelName); + return formatImportStatements(importTypes); +}; + +const getOperationArgumentsAndReturnType = operation => { + const { bodyModel, method, pathParams, queryParams } = operation; + const args = new Map(); + + pathParams.forEach(pathParam => { + args.set(pathParam.name, { + isRequired: pathParam.required, + type: 'string', + }); + }); + + if ((method === 'post' || method === 'put') && bodyModel) { + const bodyModelName = getBodyModelName(operation); + if (bodyModelName) { + args.set(_.camelCase(bodyModelName), { + isRequired: true, + type: operation.bodyModel + }); + } + } + + if (queryParams.length) { + const isRequired = queryParams.reduce((acc, param) => acc |= param.required, false); + args.set('queryParameters', { + isRequired, + type: queryParams, + }); + } + + let genericType = 'Promise'; + let genericParameterType = 'Response'; + if (operation.responseModel) { + genericParameterType = operation.responseModel; + if (operation.isArray) { + genericType = 'Collection'; + } + } + return [args, {genericType, genericParameterType}]; +}; + +const getModelMethodArgumentsAndReturnType = (method, modelName) => { + const { operation } = method; + const [args, returnType] = getOperationArgumentsAndReturnType(operation); + + operation.pathParams.forEach(param => { + const matchingArgument = method.arguments.find(argument => argument.dest === param.name); + if (matchingArgument) { + args.delete(param.name); + } + }); + + const bodyModelName = getBodyModelName(operation); + if (bodyModelName && bodyModelName === modelName) { + args.delete(_.camelCase(operation.bodyModel)); + } + return [args, returnType]; +}; + +const convertTypeObjectsToTypeNames = (args, returnType) => { + const argTypes = Array.from(args.values()).map(arg => arg.type); + return [...argTypes, returnType.genericType, returnType.genericParameterType]; +}; + +const formatTypeScriptArguments = args => { + const typedArgs = []; + for (let [argName, {type, isRequired}] of args) { + let argument = `${argName}${isRequired ? '' : '?'}`; + if (Array.isArray(type)) { + argument = `${argument}: ${formatObjectLiteralType(type)}`; + } else { + argument = `${argument}: ${type}`; + } + typedArgs.push(argument); + } + return typedArgs.join(', '); +}; + +const formatReturnType = ({genericType, genericParameterType}) => + `${genericType}<${genericParameterType}>`; + +const formatObjectLiteralType = typeProps => { + let objectLiteralType = '{\n'; + typeProps.forEach(prop => { + const isRequired = prop.required ? '' : '?'; + const propType = convertSwaggerToTSType(prop.type); + objectLiteralType += ` ${prop.name}${isRequired}: ${propType},\n`; + }); + objectLiteralType += ' }'; + return objectLiteralType; +}; + +const formatImportStatements = (importTypes, { + isModelToModelImport = true +} = {}) => { + const importStatements = []; + importTypes.forEach(type => { + if (type === 'Response') { + importStatements.push('import { Response } from \'node-fetch\';'); + } else if (type === 'Collection') { + importStatements.push(`import Collection from '${isModelToModelImport ? '..' : '.'}/collection';`); + } else { + importStatements.push(`import { ${type} } from '${isModelToModelImport ? './' : './models/'}${type}';`); + } + }); + return importStatements.join('\n'); +}; + +const convertSwaggerToTSType = swaggerType => { + return { + array: '[]', + integer: 'number', + double: 'number', + hash: '{[name: string]: unknown}', + dateTime: 'string', + password: 'string', + object: 'Record' + }[swaggerType] || swaggerType; +}; + +const isImportablePropertyType = (property, hostModelName) => { + const isRestricted = isRestrictedPropertyOverride(hostModelName, property.propertyName); + return property.$ref && isImportableType(property.model) && !isRestricted; +}; + +const isRestrictedPropertyOverride = (modelName, propertyName) => { + return RESTRICTED_MODEL_PROPERTY_OVERRIDES[modelName] && + RESTRICTED_MODEL_PROPERTY_OVERRIDES[modelName].includes(propertyName); +}; +const isImportableType = type => + !MODELS_SHOULD_NOT_PROCESS.includes(type) && !Array.isArray(type); + +const sanitizeModelPropertyName = (modelName, propertyName) => { + let sanitizedPropertyName = propertyName; + + const containsRestrictedChars = + PROPERTY_NAME_CHARACTERS_REQUIRE_ESCAPING.find(char => propertyName.includes(char)); + + if (KNOWN_CONFLICTING_PROPERTY_NAMES[modelName] && + KNOWN_CONFLICTING_PROPERTY_NAMES[modelName].includes(propertyName)) { + sanitizedPropertyName = `_${propertyName}`; + } + + if (containsRestrictedChars) { + sanitizedPropertyName = `'${propertyName}'`; + } + + return sanitizedPropertyName; +}; + module.exports = { getBodyModelNameInCamelCase, operationArgumentBuilder, @@ -136,5 +371,13 @@ module.exports = { hasHeaders, getHttpMethod, shouldResolveJson, - jsdocBuilder -} + jsdocBuilder, + typeScriptOperationSignatureBuilder, + typeScriptModelImportBuilder, + typeScriptModelMethodSignatureBuilder, + typeScriptClientImportBuilder, + convertSwaggerToTSType, + sanitizeModelPropertyName, + isImportablePropertyType, + isRestrictedPropertyOverride, +}; diff --git a/templates/index.js b/templates/index.js index dc177ace8..8643c8356 100644 --- a/templates/index.js +++ b/templates/index.js @@ -9,7 +9,7 @@ const operationUtils = require('./helpers/operation'); */ class ModelResolver { constructor(models) { - this.models = models + this.models = models; } getByName(name) { const match = this.models.filter(model => model.modelName === name); @@ -30,14 +30,8 @@ js.process = ({spec, operations, models, handlebars}) => { // Collect all the operations - const MODELS_SHOULD_NOT_PROCESS = ['object', 'string']; - const templates = []; - const extensibleModels = new Set(); - - const modelGraph = {} ; - const modelResolver = new ModelResolver(models); // Add a property to the operation that lets the client template know if the response needs resolution @@ -50,6 +44,11 @@ js.process = ({spec, operations, models, handlebars}) => { } } }); + templates.push({ + src: 'generated-client.d.ts.hbs', + dest: 'src/types/generated-client.d.ts', + context: {operations, spec} + }); templates.push({ src: 'generated-client.js.hbs', @@ -65,6 +64,12 @@ js.process = ({spec, operations, models, handlebars}) => { context: model }); + templates.push({ + src: 'model.d.ts.hbs', + dest: `src/types/models/${model.modelName}.d.ts`, + context: model + }); + if (model.resolutionStrategy) { const mapping = Object.entries(model.resolutionStrategy.valueToModelMapping).map(([propertyValue, className]) => { const classModel = models.filter(model => model.modelName === className)[0]; @@ -79,6 +84,16 @@ js.process = ({spec, operations, models, handlebars}) => { propertyName: model.resolutionStrategy.propertyName } }); + + templates.push({ + src: 'factory.d.ts.hbs', + dest: `src/types/factories/${model.modelName}Factory.d.ts`, + context: { + parentModelName: model.modelName, + mapping, + propertyName: model.resolutionStrategy.propertyName + } + }); } } @@ -119,8 +134,8 @@ js.process = ({spec, operations, models, handlebars}) => { } const importStatements = new Set(); model.properties.forEach(property => { - const shouldProcess = !MODELS_SHOULD_NOT_PROCESS.includes(property.model); - if (property.$ref && shouldProcess && !property.isEnum) { + const shouldProcess = operationUtils.isImportablePropertyType(property, model.modelName); + if (shouldProcess && !property.isEnum) { importStatements.add(`const ${property.model} = require('./${property.model}');`); } }); @@ -133,25 +148,24 @@ js.process = ({spec, operations, models, handlebars}) => { } const constructorStatements = []; model.properties.forEach(property => { - const shouldProcess = !MODELS_SHOULD_NOT_PROCESS.includes(property.model); - if (property.$ref && shouldProcess && !property.isEnum) { + const shouldProcess = operationUtils.isImportablePropertyType(property, model.modelName); + if (shouldProcess && !property.isEnum) { constructorStatements.push(` if (resourceJson && resourceJson.${property.propertyName}) {`); constructorStatements.push(` this.${property.propertyName} = new ${property.model}(resourceJson.${property.propertyName});`); - constructorStatements.push(` }`); + constructorStatements.push(' }'); } }); return constructorStatements.join('\n'); }); handlebars.registerHelper('modelMethodPublicArgumentBuilder', (method, modelName) => { - const args = []; const operation = method.operation; operation.pathParams.forEach(param => { const matchingArgument = method.arguments.filter(argument => argument.dest === param.name)[0]; - if (!matchingArgument || !matchingArgument.src){ + if (!matchingArgument || !matchingArgument.src) { args.push(param.name); } }); @@ -175,7 +189,7 @@ js.process = ({spec, operations, models, handlebars}) => { operation.pathParams.forEach(param => { const matchingArgument = method.arguments.filter(argument => argument.dest === param.name)[0]; - if (matchingArgument && matchingArgument.src){ + if (matchingArgument && matchingArgument.src) { args.push(`this.${matchingArgument.src}`); } else { args.push(param.name); @@ -201,7 +215,7 @@ js.process = ({spec, operations, models, handlebars}) => { operation.pathParams.forEach(param => { const matchingArgument = method.arguments.filter(argument => argument.dest === param.name)[0]; - if (!matchingArgument || !matchingArgument.src){ + if (!matchingArgument || !matchingArgument.src) { args.push(`@param {${param.type}} ${param.name}`); } }); @@ -216,9 +230,9 @@ js.process = ({spec, operations, models, handlebars}) => { if (operation.responseModel) { if (operation.isArray) { - args.push(`@returns {Promise} A collection that will yield {@link ${operation.responseModel}} instances.`) + args.push(`@returns {Promise} A collection that will yield {@link ${operation.responseModel}} instances.`); } else { - args.push(`@returns {Promise<${operation.responseModel}>}`) + args.push(`@returns {Promise<${operation.responseModel}>}`); } } @@ -233,7 +247,7 @@ js.process = ({spec, operations, models, handlebars}) => { handlebars.registerHelper('getAffectedResources', (path) => { const resources = []; let pl = path.length; - while(pl--) { + while (pl--) { if (path[pl] === '}') { const resourcePath = path.slice(0, pl + 1).replace(/{/g, '${'); resources.push('${this.baseUrl}' + resourcePath); diff --git a/templates/license-banner.txt b/templates/license-banner.txt index 804e582f2..35ce4ae47 100644 --- a/templates/license-banner.txt +++ b/templates/license-banner.txt @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2017-2020, Okta, Inc. and/or its affiliates. All rights reserved. + * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. diff --git a/templates/model.d.ts.hbs b/templates/model.d.ts.hbs new file mode 100644 index 000000000..5a4b6b5b9 --- /dev/null +++ b/templates/model.d.ts.hbs @@ -0,0 +1,46 @@ +{{!-- The template file is not auto-generated - this banner is to be included into destination files --}} +/* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ + +{{#if extends~}} +import { {{extends}} } from './{{extends}}'; +{{else}} +import Resource from '../resource'; +{{/if}} +import Client from '../client'; +{{{typeScriptModelImportBuilder this}}} + +{{#if extends}} +declare class {{modelName}} extends {{extends}} { +{{else}} +declare class {{modelName}} extends Resource { +{{/if}} + constructor(resourceJson: Record, client: Client); + +{{#each properties}} +{{#unless (isRestrictedPropertyOverride ../modelName this.propertyName)}} +{{#if this.$ref}} +{{#if (ne this.model "object") }} + {{#if this.readOnly}}readonly {{/if}}{{{sanitizeModelPropertyName ../modelName this.propertyName}}}: {{model}}; +{{/if}} +{{else}} + {{#if this.readOnly}}readonly {{/if}}{{{sanitizeModelPropertyName ../modelName this.propertyName}}}: {{{convertSwaggerToTSType this.commonType}}}; +{{/if}} +{{/unless}} +{{/each}} + + {{#each crud}} + {{#if (eq alias 'update')}} + {{alias}}{{{typeScriptModelMethodSignatureBuilder this ../modelName}}} + {{/if}} + {{#if (eq alias 'delete')}} + {{alias}}{{{typeScriptModelMethodSignatureBuilder this ../modelName}}} + {{/if}} + {{/each}} + {{#each methods}} + {{alias}}{{{typeScriptModelMethodSignatureBuilder this ../modelName}}} + {{/each}} +} + +export { + {{modelName}} +}; diff --git a/templates/model.index.js.hbs b/templates/model.index.js.hbs index 129bbb063..284f6fdd2 100644 --- a/templates/model.index.js.hbs +++ b/templates/model.index.js.hbs @@ -1,16 +1,4 @@ -/*! - * Copyright (c) 2017-2020, Okta, Inc. and/or its affiliates. All rights reserved. - * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") - * - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and limitations under the License. - */ - - +{{!-- The template file is not auto-generated - this banner is to be included into destination files --}} /** * THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ diff --git a/templates/model.js.hbs b/templates/model.js.hbs index 246d8c90e..4fa04bf26 100644 --- a/templates/model.js.hbs +++ b/templates/model.js.hbs @@ -1,16 +1,4 @@ -/*! - * Copyright (c) 2017-2020, Okta, Inc. and/or its affiliates. All rights reserved. - * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") - * - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * - * See the License for the specific language governing permissions and limitations under the License. - */ - - +{{!-- The template file is not auto-generated - this banner is to be included into destination files --}} /* THIS FILE IS AUTO-GENERATED - SEE CONTRIBUTOR DOCUMENTATION */ {{#if extends~}} @@ -30,7 +18,9 @@ var Resource = require('../resource'); {{#each properties}} {{#if this.$ref}} {{#if (ne this.model "object") }} +{{#unless (isRestrictedPropertyOverride ../modelName this.propertyName)}} * @property { {{model}} } {{this.propertyName}} + {{/unless}} {{/if}} {{else}} * @property { {{this.commonType}} } {{this.propertyName}} diff --git a/test/.eslintrc b/test/.eslintrc index c2b6761d1..07d89ed10 100644 --- a/test/.eslintrc +++ b/test/.eslintrc @@ -1,72 +1,5 @@ { - "parserOptions": { - "ecmaVersion": 8 - }, "rules": { - "curly": [ - 2 - ], - "eqeqeq": [ - 2 - ], - "eol-last": ["error", "always"], - "indent": [ - 2, - 2, - { - "SwitchCase": 1 - } - ], - "linebreak-style": [ - 2, - "unix" - ], - "new-cap": [ - 2, - { - "properties": false - } - ], - "no-unused-vars": [ - 2, - { - "vars": "all", - "args": "after-used" - } - ], - "no-use-before-define": [ - 2 - ], - "no-trailing-spaces": [ - 2 - ], - "quotes": [ - 2, - "single" - ], - "semi": [ - 2, - "always" - ], - "wrap-iife": [ - 2, - "outside" - ], - "brace-style": 2, - "block-spacing": [ - 2, - "always" - ], - "keyword-spacing": [2, {"before": true, "after": true, "overrides": {}}], - "space-before-blocks": 2, - "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}], - "comma-spacing": [2, {"before": false, "after": true}], - "comma-style": [2, "last"], - "no-lonely-if": 2, - "array-bracket-spacing": [2, "never"], - "no-spaced-func": [2], - "space-in-parens": [2, "never"], - "space-infix-ops": 2, "prefer-template": "error", "no-useless-concat": "error", "quote-props": ["error", "as-needed", { "keywords": true, "unnecessary": true }] @@ -78,10 +11,5 @@ "beforeEach": true, "describe": true, "it": true - }, - "env": { - "es6": true, - "node": true - }, - "extends": "eslint:recommended" + } } \ No newline at end of file diff --git a/test/delete-resources.js b/test/delete-resources.js index 6423ea239..ee4b5974b 100644 --- a/test/delete-resources.js +++ b/test/delete-resources.js @@ -14,43 +14,28 @@ const client = new okta.Client({ requestExecutor: new okta.DefaultRequestExecutor() }); -describe('Clean all test resources', () => { - - cleanAuthorizationServers(); - - cleanTestUsers(); - - cleanTestGroups(); - - cleanApplications(); - - cleanInlineHooks(); - -}); - -async function cleanInlineHooks(){ - const collection = await client.listInlineHooks(); - collection.each(async (inlineHook) => { +async function cleanInlineHooks() { + const collection = await client.listInlineHooks(); + collection.each(async (inlineHook) => { - await inlineHook.deactivate(); - await inlineHook.delete(); - }) + await inlineHook.deactivate(); + await inlineHook.delete(); + }); } - function cleanAuthorizationServers() { - client.listAuthorizationServers().each( - authorizationServer => { - authorizationServer.delete(); - } - ); + client.listAuthorizationServers().each( + authorizationServer => { + authorizationServer.delete(); + } + ); } function cleanApplications() { client.listApplications().each(application =>{ (application.label === 'Node SDK Service App' || application.label === 'Bacon Service Client') ? - console.log(`Skipped application to remove ${application.label}`) : - utils.removeAppByLabel(client, application.label) + console.log(`Skipped application to remove ${application.label}`) : + utils.removeAppByLabel(client, application.label); }); } @@ -58,7 +43,7 @@ function cleanTestUsers() { client.listUsers().each(user => { (user.profile.email.endsWith('okta.com')) ? console.log(`Skipped user to remove ${user.profile.email}`) : - utils.deleteUser(user) + utils.deleteUser(user); }); } @@ -78,11 +63,25 @@ function cleanTestGroups() { .then(user => { user.forEach(element =>{ (element.profile.name === 'Everyone') ? - console.log(`Skipped group to remove ${element.profile.name}`) : - utils.cleanupGroup(client, element) + console.log(`Skipped group to remove ${element.profile.name}`) : + utils.cleanupGroup(client, element); }); }) .catch(err => { console.error(err); }); } + +describe('Clean all test resources', () => { + + cleanAuthorizationServers(); + + cleanTestUsers(); + + cleanTestGroups(); + + cleanApplications(); + + cleanInlineHooks(); + +}); diff --git a/test/jest/.eslintrc b/test/jest/.eslintrc index f731713e8..119caf354 100644 --- a/test/jest/.eslintrc +++ b/test/jest/.eslintrc @@ -3,7 +3,6 @@ "jest/globals": true }, "extends": [ - "../.eslintrc", "plugin:jest/recommended" ], "plugins": [ diff --git a/test/type/.eslintrc b/test/type/.eslintrc new file mode 100644 index 000000000..cd8195909 --- /dev/null +++ b/test/type/.eslintrc @@ -0,0 +1,5 @@ +{ + "extends": [ + "../../src/types/.eslintrc" + ] +} diff --git a/test/type/api-error.test-d.ts b/test/type/api-error.test-d.ts new file mode 100644 index 000000000..f3314ea7a --- /dev/null +++ b/test/type/api-error.test-d.ts @@ -0,0 +1,8 @@ +import { expectType } from 'tsd'; +import OktaApiError from '../../src/types/api-error'; +import { Headers } from 'node-fetch'; + + +const apiError = new OktaApiError('https://foo', 403, {errorSummary: 'notok'}, {} as Headers); +expectType(apiError.errorSummary); +expectType(apiError.errorCauses); diff --git a/test/type/client.test-d.ts b/test/type/client.test-d.ts new file mode 100644 index 000000000..e0806356c --- /dev/null +++ b/test/type/client.test-d.ts @@ -0,0 +1,18 @@ +import { expectError, expectType } from 'tsd'; +import { Response } from 'node-fetch'; +import { Client } from '../../src/types'; +import Collection from '../../src/types/collection'; +import { Application } from '../../src/types/models/Application'; + + +const client = new Client(); + +// mandatory query parameters +expectError(client.listPolicies()); + +// non-string query parameters +expectError(client.deleteApplicationUser('appId', 'userId', {sendEmail: 0})); + +// Client methods return either Promise or Collection +expectType>(client.deletePolicy('policyId')); +expectType>(client.listApplications()); diff --git a/test/type/collection.test-d.ts b/test/type/collection.test-d.ts new file mode 100644 index 000000000..0903a42df --- /dev/null +++ b/test/type/collection.test-d.ts @@ -0,0 +1,23 @@ +import { expectType } from 'tsd'; +import Resource from '../../src/types/resource'; +import Client from '../../src/types/client'; +import ModelFactory from '../../src/types/model-factory'; +import Collection from '../../src/types/collection'; + + +const collection = new Collection( + new Client(), + 'https://foo', + new ModelFactory(Resource) +); +expectType>(collection.each( + (item) => Promise.resolve(item) +)); +expectType>>(collection.getNextPage()); +expectType>(collection.next()); +expectType<{unsubscribe:() => void}>(collection.subscribe({ + interval: 100, + next: (_item: Resource) => void(0), + error: (_e: Error) => void(0), + complete: () => void(0) +})); diff --git a/test/type/config-loader.test-d.ts b/test/type/config-loader.test-d.ts new file mode 100644 index 000000000..d93789453 --- /dev/null +++ b/test/type/config-loader.test-d.ts @@ -0,0 +1,9 @@ +import { expectType } from 'tsd'; +import ConfigLoader from '../../src/types/config-loader'; + + +const configLoader = new ConfigLoader(); +expectType(configLoader.apply({})); +expectType(configLoader.applyDefaults()); +expectType(configLoader.applyEnvVars()); +expectType(configLoader.applyYamlFile('/path/to/file')); diff --git a/test/type/default-cache-middleware.test-d.ts b/test/type/default-cache-middleware.test-d.ts new file mode 100644 index 000000000..2c02e26d4 --- /dev/null +++ b/test/type/default-cache-middleware.test-d.ts @@ -0,0 +1,15 @@ +import { expectType } from 'tsd'; +import { Response } from 'node-fetch'; +import MemoryStore from '../../src/types/memory-store'; +import RequestOptions from '../../src/types/request-options'; +import defaultCacheMiddleware from '../../src/types/default-cache-middleware'; + + +const cacheMiddleware = defaultCacheMiddleware; +expectType>( + cacheMiddleware({ + req: {} as RequestOptions, + cacheStore: new MemoryStore() + }, + () => Promise.resolve({} as Response)) +); diff --git a/test/type/default-request-executor.test-d.ts b/test/type/default-request-executor.test-d.ts new file mode 100644 index 000000000..76c1c6957 --- /dev/null +++ b/test/type/default-request-executor.test-d.ts @@ -0,0 +1,15 @@ +import { expectType } from 'tsd'; +import { Response } from 'node-fetch'; +import RequestOptions from '../../src/types/request-options'; +import DefaultRequestExecutor from '../../src/types/default-request-executor'; + + +const defaultRequestExecutor = new DefaultRequestExecutor(); +expectType(defaultRequestExecutor.buildRetryRequest({} as RequestOptions, 'requestId', 100)); +expectType(defaultRequestExecutor.getOktaRequestId({} as Response)); +expectType(defaultRequestExecutor.getRateLimitReset({} as Response)); +expectType(defaultRequestExecutor.getResponseDate({} as Response)); +expectType(defaultRequestExecutor.getRetryDelayMs({} as Response)); +expectType>(defaultRequestExecutor.parseResponse({} as RequestOptions, {} as Response)); +expectType(defaultRequestExecutor.maxRetriesReached({} as RequestOptions)); +expectType>(defaultRequestExecutor.retryRequest({} as RequestOptions, {} as Response, 100)); diff --git a/test/type/http-error.test-d.ts b/test/type/http-error.test-d.ts new file mode 100644 index 000000000..75facc5b9 --- /dev/null +++ b/test/type/http-error.test-d.ts @@ -0,0 +1,8 @@ +import { expectType } from 'tsd'; +import { Headers } from 'node-fetch'; +import HttpError from '../../src/types/http-error'; + + +const httpError = new HttpError('https://foo', 'notok', 'error: notok', {} as Headers); +expectType(httpError.headers); +expectType(httpError.status); diff --git a/test/type/http.test-d.ts b/test/type/http.test-d.ts new file mode 100644 index 000000000..4de9cd548 --- /dev/null +++ b/test/type/http.test-d.ts @@ -0,0 +1,22 @@ +import { expectType } from 'tsd'; +import { Response } from 'node-fetch'; +import Client from '../../src/types/client'; +import RequestExecutor from '../../src/types/request-executor'; +import OAuth from '../../src/types/oauth'; +import RequestOptions from '../../src/types/request-options'; +import Http from '../../src/types/http'; + + +const httpClient = new Http({ + requestExecutor: new RequestExecutor(), + oauth: new OAuth(new Client()) +}); +expectType>(httpClient.delete('https://foo')); +expectType>>(httpClient.getJson('https://foo')); +expectType>(httpClient.http('https://foo')); +expectType>>(httpClient.json('https://foo')); +expectType>(httpClient.post('https://foo')); +expectType>(httpClient.postJson('https://foo')); +expectType>(httpClient.prepareRequest({} as RequestOptions)); +expectType>(httpClient.put('https://foo')); +expectType>(httpClient.putJson('https://foo')); diff --git a/test/type/jwt.test-d.ts b/test/type/jwt.test-d.ts new file mode 100644 index 000000000..43d076ee1 --- /dev/null +++ b/test/type/jwt.test-d.ts @@ -0,0 +1,6 @@ +import { expectType } from 'tsd'; +import { Client } from '../../src/types'; +import { getPemAndJwk, Jwt, makeJwt } from '../../src/types/jwt'; + +expectType(makeJwt(new Client(), 'https://foo')); +expectType<{pem: string, jwk: Record}>(getPemAndJwk('privateKey')); diff --git a/test/type/memory-store.test-d.ts b/test/type/memory-store.test-d.ts new file mode 100644 index 000000000..e997f48e8 --- /dev/null +++ b/test/type/memory-store.test-d.ts @@ -0,0 +1,8 @@ +import { expectType } from 'tsd'; +import MemoryStore from '../../src/types/memory-store'; + + +const memoryStore = new MemoryStore({}); +expectType>(memoryStore.delete('key')); +expectType>(memoryStore.get('key')); +expectType>(memoryStore.set('key', 'value')); diff --git a/test/type/model-factory.test-d.ts b/test/type/model-factory.test-d.ts new file mode 100644 index 000000000..0c81039db --- /dev/null +++ b/test/type/model-factory.test-d.ts @@ -0,0 +1,8 @@ +import { expectType } from 'tsd'; +import Resource from '../../src/types/resource'; +import Client from '../../src/types/client'; +import ModelFactory from '../../src/types/model-factory'; + + +const modelResolutionFactory = new ModelFactory(Resource); +expectType(modelResolutionFactory.createInstance({}, new Client())); diff --git a/test/type/oauth.test-d.ts b/test/type/oauth.test-d.ts new file mode 100644 index 000000000..b249f49bd --- /dev/null +++ b/test/type/oauth.test-d.ts @@ -0,0 +1,8 @@ +import { expectType } from 'tsd'; +import Client from '../../src/types/client'; +import OAuth, { JWTObject, TokenEndpointResponse } from '../../src/types/oauth'; + +const oauthClient = new OAuth(new Client()); +expectType>(oauthClient.getAccessToken()); +expectType(oauthClient.getJwt('https://foo/token')); +expectType(oauthClient.clearCachedAccessToken()); diff --git a/test/type/okta-response-headers.test-d.ts b/test/type/okta-response-headers.test-d.ts new file mode 100644 index 000000000..1667d7884 --- /dev/null +++ b/test/type/okta-response-headers.test-d.ts @@ -0,0 +1,4 @@ +import { expectType } from 'tsd'; +import OktaResponseHeaders, { OktaResponseHeadersReturnType} from '../../src/types/okta-response-headers'; + +expectType(OktaResponseHeaders({'set-language': 'en'})); diff --git a/test/type/request-executor.test-d.ts b/test/type/request-executor.test-d.ts new file mode 100644 index 000000000..5ad7507c9 --- /dev/null +++ b/test/type/request-executor.test-d.ts @@ -0,0 +1,6 @@ +import { expectType } from 'tsd'; +import {Response } from 'node-fetch'; +import RequestExecutor from '../../src/types/request-executor'; + +const requestExecutor = new RequestExecutor(); +expectType>(requestExecutor.fetch({method: 'GET'})); diff --git a/test/type/resolution-factory.test-d.ts b/test/type/resolution-factory.test-d.ts new file mode 100644 index 000000000..cd4a3e931 --- /dev/null +++ b/test/type/resolution-factory.test-d.ts @@ -0,0 +1,10 @@ +import { expectType } from 'tsd'; +import Resource from '../../src/types/resource'; +import Client from '../../src/types/client'; +import ModelResolutionFactory from '../../src/types/resolution-factory'; + + +const modelResolutionFactory = new ModelResolutionFactory(); +expectType(modelResolutionFactory.createInstance({}, new Client())); +expectType>(modelResolutionFactory.getMapping()); +expectType(modelResolutionFactory.getResolutionProperty()); diff --git a/test/type/resource.test-d.ts b/test/type/resource.test-d.ts new file mode 100644 index 000000000..9da7db06a --- /dev/null +++ b/test/type/resource.test-d.ts @@ -0,0 +1,6 @@ +import { expectType } from 'tsd'; +import Resource from '../../src/types/resource'; +import Client from '../../src/types/client'; + + +expectType(new Resource({resourceId: 'value'}, new Client())); diff --git a/utils/maintain-banners.js b/utils/maintain-banners.js index 5f4b68345..f4f98b2f4 100755 --- a/utils/maintain-banners.js +++ b/utils/maintain-banners.js @@ -5,7 +5,10 @@ const globby = require('globby'); const path = require('path'); const bannerSourcePath = path.join(__dirname, '..', 'templates', 'license-banner.txt'); -const files = globby.sync(path.join(__dirname, '..', 'src', '**/*.js')); +const files = globby.sync([ + path.join(__dirname, '..', 'src', '**/*.js'), + path.join(__dirname, '..', 'src/types', '**/*.d.ts') +]); const bannerSource = fs.readFileSync(bannerSourcePath).toString(); const copyrightRegex = /(Copyright \(c\) )([0-9]+)-?([0-9]+)?/; const match = bannerSource.match(copyrightRegex); diff --git a/yarn.lock b/yarn.lock index 9d0fa7143..d2482a154 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,13 @@ # yarn lockfile v1 +"@babel/code-frame@7.12.11": + version "7.12.11" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" + integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== + dependencies: + "@babel/highlight" "^7.10.4" + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a" @@ -338,10 +345,10 @@ exec-sh "^0.3.2" minimist "^1.2.0" -"@eslint/eslintrc@^0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.2.2.tgz#d01fc791e2fc33e88a29d6f3dc7e93d0cd784b76" - integrity sha512-EfB5OHNYp1F4px/LI/FEnGylop7nOqkQ1LRzCM0KccA2U8tvV8w01KBv37LbO7nW4H+YhKyo2LcJhRwjjV17QQ== +"@eslint/eslintrc@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.3.0.tgz#d736d6963d7003b6514e6324bec9c602ac340318" + integrity sha512-1JTKgrOKAHVivSvOYw+sJOunkBjUOvjqWk1DPja7ZFhIS2mX/4EgTT8M7eTK9jrKhL/FvXXEbQwIs3pg1xp3dg== dependencies: ajv "^6.12.4" debug "^4.1.1" @@ -350,7 +357,7 @@ ignore "^4.0.6" import-fresh "^3.2.1" js-yaml "^3.13.1" - lodash "^4.17.19" + lodash "^4.17.20" minimatch "^3.0.4" strip-json-comments "^3.1.1" @@ -575,6 +582,11 @@ node-fetch "^2.6.0" swagger-cli "^2.3.0" +"@sindresorhus/is@^0.14.0": + version "0.14.0" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" + integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== + "@sinonjs/commons@^1", "@sinonjs/commons@^1.6.0", "@sinonjs/commons@^1.7.0", "@sinonjs/commons@^1.8.1": version "1.8.1" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.1.tgz#e7df00f98a203324f6dc7cc606cad9d4a8ab2217" @@ -611,6 +623,13 @@ resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5" integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ== +"@szmarczak/http-timer@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" + integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA== + dependencies: + defer-to-connect "^1.0.1" + "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7": version "7.1.12" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.12.tgz#4d8e9e51eb265552a7e4f1ff2219ab6133bdfb2d" @@ -675,6 +694,19 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== +"@types/minimist@^1.2.0": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.1.tgz#283f669ff76d7b8260df8ab7a4262cc83d988256" + integrity sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg== + +"@types/node-fetch@^2.5.8": + version "2.5.8" + resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.8.tgz#e199c835d234c7eb0846f6618012e558544ee2fb" + integrity sha512-fbjI6ja0N5ZA8TV53RUqzsKNkl9fv8Oj3T7zxW7FGv1GSH7gwJaNF8dzCjrqKaxKeUpTz4yT1DaJFq/omNpGfw== + dependencies: + "@types/node" "*" + form-data "^3.0.0" + "@types/node@*": version "14.14.11" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.11.tgz#fc25a4248a5e8d0837019b1d170146d07334abe0" @@ -707,6 +739,32 @@ dependencies: "@types/yargs-parser" "*" +"@typescript-eslint/eslint-plugin@^4.15.2": + version "4.15.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.15.2.tgz#981b26b4076c62a5a55873fbef3fe98f83360c61" + integrity sha512-uiQQeu9tWl3f1+oK0yoAv9lt/KXO24iafxgQTkIYO/kitruILGx3uH+QtIAHqxFV+yIsdnJH+alel9KuE3J15Q== + dependencies: + "@typescript-eslint/experimental-utils" "4.15.2" + "@typescript-eslint/scope-manager" "4.15.2" + debug "^4.1.1" + functional-red-black-tree "^1.0.1" + lodash "^4.17.15" + regexpp "^3.0.0" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/experimental-utils@4.15.2": + version "4.15.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.15.2.tgz#5efd12355bd5b535e1831282e6cf465b9a71cf36" + integrity sha512-Fxoshw8+R5X3/Vmqwsjc8nRO/7iTysRtDqx6rlfLZ7HbT8TZhPeQqbPjTyk2RheH3L8afumecTQnUc9EeXxohQ== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/scope-manager" "4.15.2" + "@typescript-eslint/types" "4.15.2" + "@typescript-eslint/typescript-estree" "4.15.2" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + "@typescript-eslint/experimental-utils@^4.0.1": version "4.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.9.1.tgz#86633e8395191d65786a808dc3df030a55267ae2" @@ -719,6 +777,24 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" +"@typescript-eslint/parser@^4.15.2": + version "4.15.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.15.2.tgz#c804474321ef76a3955aec03664808f0d6e7872e" + integrity sha512-SHeF8xbsC6z2FKXsaTb1tBCf0QZsjJ94H6Bo51Y1aVEZ4XAefaw5ZAilMoDPlGghe+qtq7XdTiDlGfVTOmvA+Q== + dependencies: + "@typescript-eslint/scope-manager" "4.15.2" + "@typescript-eslint/types" "4.15.2" + "@typescript-eslint/typescript-estree" "4.15.2" + debug "^4.1.1" + +"@typescript-eslint/scope-manager@4.15.2": + version "4.15.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.15.2.tgz#5725bda656995960ae1d004bfd1cd70320f37f4f" + integrity sha512-Zm0tf/MSKuX6aeJmuXexgdVyxT9/oJJhaCkijv0DvJVT3ui4zY6XYd6iwIo/8GEZGy43cd7w1rFMiCLHbRzAPQ== + dependencies: + "@typescript-eslint/types" "4.15.2" + "@typescript-eslint/visitor-keys" "4.15.2" + "@typescript-eslint/scope-manager@4.9.1": version "4.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.9.1.tgz#cc2fde310b3f3deafe8436a924e784eaab265103" @@ -727,11 +803,29 @@ "@typescript-eslint/types" "4.9.1" "@typescript-eslint/visitor-keys" "4.9.1" +"@typescript-eslint/types@4.15.2": + version "4.15.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.15.2.tgz#04acf3a2dc8001a88985291744241e732ef22c60" + integrity sha512-r7lW7HFkAarfUylJ2tKndyO9njwSyoy6cpfDKWPX6/ctZA+QyaYscAHXVAfJqtnY6aaTwDYrOhp+ginlbc7HfQ== + "@typescript-eslint/types@4.9.1": version "4.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.9.1.tgz#a1a7dd80e4e5ac2c593bc458d75dd1edaf77faa2" integrity sha512-fjkT+tXR13ks6Le7JiEdagnwEFc49IkOyys7ueWQ4O8k4quKPwPJudrwlVOJCUQhXo45PrfIvIarcrEjFTNwUA== +"@typescript-eslint/typescript-estree@4.15.2": + version "4.15.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.15.2.tgz#c2f7a1e94f3428d229d5ecff3ead6581ee9b62fa" + integrity sha512-cGR8C2g5SPtHTQvAymEODeqx90pJHadWsgTtx6GbnTWKqsg7yp6Eaya9nFzUd4KrKhxdYTTFBiYeTPQaz/l8bw== + dependencies: + "@typescript-eslint/types" "4.15.2" + "@typescript-eslint/visitor-keys" "4.15.2" + debug "^4.1.1" + globby "^11.0.1" + is-glob "^4.0.1" + semver "^7.3.2" + tsutils "^3.17.1" + "@typescript-eslint/typescript-estree@4.9.1": version "4.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.9.1.tgz#6e5b86ff5a5f66809e1f347469fadeec69ac50bf" @@ -746,6 +840,14 @@ semver "^7.3.2" tsutils "^3.17.1" +"@typescript-eslint/visitor-keys@4.15.2": + version "4.15.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.15.2.tgz#3d1c7979ce75bf6acf9691109bd0d6b5706192b9" + integrity sha512-TME1VgSb7wTwgENN5KVj4Nqg25hP8DisXxNBojM4Nn31rYaNDIocNm5cmjOFfh42n7NVERxWrDFoETO/76ePyg== + dependencies: + "@typescript-eslint/types" "4.15.2" + eslint-visitor-keys "^2.0.0" + "@typescript-eslint/visitor-keys@4.9.1": version "4.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.9.1.tgz#d76374a58c4ead9e92b454d186fea63487b25ae1" @@ -795,7 +897,7 @@ aggregate-error@^3.0.0: clean-stack "^2.0.0" indent-string "^4.0.0" -ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4: +ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -805,6 +907,23 @@ ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^7.0.2: + version "7.1.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-7.1.1.tgz#1e6b37a454021fa9941713f38b952fc1c8d32a84" + integrity sha512-ga/aqDYnUy/o7vbsRTFhhTsNeXiYb5JWDIcRIeZfwRNCefwjNTVYCGdGSUrEmiu3yDK3vFvNbgJxvrQW4JXrYQ== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + +ansi-align@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.0.tgz#b536b371cf687caaef236c18d3e21fe3797467cb" + integrity sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw== + dependencies: + string-width "^3.0.0" + ansi-colors@4.1.1, ansi-colors@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" @@ -906,6 +1025,11 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= +arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= + asn1@~0.2.3: version "0.2.4" resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" @@ -928,10 +1052,10 @@ assign-symbols@^1.0.0: resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= -astral-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" - integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== asynckit@^0.4.0: version "0.4.0" @@ -1054,6 +1178,20 @@ bluebird@^3.7.2: resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== +boxen@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/boxen/-/boxen-4.2.0.tgz#e411b62357d6d6d36587c8ac3d5d974daa070e64" + integrity sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ== + dependencies: + ansi-align "^3.0.0" + camelcase "^5.3.1" + chalk "^3.0.0" + cli-boxes "^2.2.0" + string-width "^4.1.0" + term-size "^2.1.0" + type-fest "^0.8.1" + widest-line "^3.1.0" + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -1122,6 +1260,19 @@ cache-base@^1.0.1: union-value "^1.0.0" unset-value "^1.0.0" +cacheable-request@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912" + integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg== + dependencies: + clone-response "^1.0.2" + get-stream "^5.1.0" + http-cache-semantics "^4.0.0" + keyv "^3.0.0" + lowercase-keys "^2.0.0" + normalize-url "^4.1.0" + responselike "^1.0.2" + caching-transform@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/caching-transform/-/caching-transform-4.0.0.tgz#00d297a4206d71e2163c39eaffa8157ac0651f0f" @@ -1142,6 +1293,15 @@ callsites@^3.0.0: resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== +camelcase-keys@^6.2.2: + version "6.2.2" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" + integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== + dependencies: + camelcase "^5.3.1" + map-obj "^4.0.0" + quick-lru "^4.0.1" + camelcase@^5.0.0, camelcase@^5.3.1: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" @@ -1200,7 +1360,7 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.0.0: +chalk@^4.0.0, chalk@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== @@ -1263,6 +1423,11 @@ clean-stack@^2.0.0: resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== +cli-boxes@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" + integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== + cliui@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" @@ -1281,6 +1446,13 @@ cliui@^6.0.0: strip-ansi "^6.0.0" wrap-ansi "^6.2.0" +clone-response@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" + integrity sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws= + dependencies: + mimic-response "^1.0.0" + co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" @@ -1323,7 +1495,7 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -combined-stream@^1.0.6, combined-stream@~1.0.6: +combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== @@ -1357,6 +1529,18 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= +configstore@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" + integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA== + dependencies: + dot-prop "^5.2.0" + graceful-fs "^4.1.2" + make-dir "^3.0.0" + unique-string "^2.0.0" + write-file-atomic "^3.0.0" + xdg-basedir "^4.0.0" + convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" @@ -1399,6 +1583,11 @@ crypt@0.0.2: resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" integrity sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs= +crypto-random-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" + integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== + cssom@^0.4.4: version "0.4.4" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" @@ -1453,7 +1642,15 @@ debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: dependencies: ms "2.1.2" -decamelize@^1.2.0: +decamelize-keys@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9" + integrity sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk= + dependencies: + decamelize "^1.1.0" + map-obj "^1.0.0" + +decamelize@^1.1.0, decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= @@ -1473,6 +1670,13 @@ decode-uri-component@^0.2.0: resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= +decompress-response@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" + integrity sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M= + dependencies: + mimic-response "^1.0.0" + deep-copy@^1.4.2: version "1.4.2" resolved "https://registry.yarnpkg.com/deep-copy/-/deep-copy-1.4.2.tgz#0622719257e4bd60240e401ea96718211c5c4697" @@ -1485,6 +1689,11 @@ deep-eql@^3.0.1: dependencies: type-detect "^4.0.0" +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + deep-is@^0.1.3, deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" @@ -1502,6 +1711,11 @@ default-require-extensions@^3.0.0: dependencies: strip-bom "^4.0.0" +defer-to-connect@^1.0.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" + integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== + define-property@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" @@ -1602,6 +1816,18 @@ domutils@^2.0.0: domelementtype "^2.0.1" domhandler "^4.0.0" +dot-prop@^5.2.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" + integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== + dependencies: + is-obj "^2.0.0" + +duplexer3@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" + integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI= + ecc-jsbn@~0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" @@ -1668,6 +1894,11 @@ es6-error@^4.0.1: resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d" integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg== +escape-goat@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675" + integrity sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q== + escape-string-regexp@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" @@ -1695,6 +1926,19 @@ escodegen@^1.14.1: optionalDependencies: source-map "~0.6.1" +eslint-formatter-pretty@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/eslint-formatter-pretty/-/eslint-formatter-pretty-4.0.0.tgz#dc15f3bf4fb51b7ba5fbedb77f57ba8841140ce2" + integrity sha512-QgdeZxQwWcN0TcXXNZJiS6BizhAANFhCzkE7Yl9HKB7WjElzwED6+FbbZB2gji8ofgJTGPqKm6VRCNT3OGCeEw== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.0" + eslint-rule-docs "^1.1.5" + log-symbols "^4.0.0" + plur "^4.0.0" + string-width "^4.2.0" + supports-hyperlinks "^2.0.0" + eslint-plugin-jest@^24.1.3: version "24.1.3" resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-24.1.3.tgz#fa3db864f06c5623ff43485ca6c0e8fc5fe8ba0c" @@ -1702,6 +1946,11 @@ eslint-plugin-jest@^24.1.3: dependencies: "@typescript-eslint/experimental-utils" "^4.0.1" +eslint-rule-docs@^1.1.5: + version "1.1.222" + resolved "https://registry.yarnpkg.com/eslint-rule-docs/-/eslint-rule-docs-1.1.222.tgz#3e4ff8c33c973ec1980f26f9efdd6f01d8ee49d3" + integrity sha512-lHzjFMdlpqaa38Zf6oeW/A+EX91ogcaUqolNwS2EOT3BhPqxPeYCdeH3H2+bQO1U7mzu01vsVNVr3L1cGyDrKA== + eslint-scope@^5.0.0, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" @@ -1727,13 +1976,13 @@ eslint-visitor-keys@^2.0.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8" integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== -eslint@^7.15.0: - version "7.15.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.15.0.tgz#eb155fb8ed0865fcf5d903f76be2e5b6cd7e0bc7" - integrity sha512-Vr64xFDT8w30wFll643e7cGrIkPEU50yIiI36OdSIDoSGguIeaLzBo0vpGvzo9RECUqq7htURfwEtKqwytkqzA== +eslint@^7.20.0: + version "7.20.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.20.0.tgz#db07c4ca4eda2e2316e7aa57ac7fc91ec550bdc7" + integrity sha512-qGi0CTcOGP2OtCQBgWZlQjcTuP0XkIpYFj25XtRTQSHC+umNnp7UMshr2G8SLsRFYDdAPFeHOsiteadmMH02Yw== dependencies: - "@babel/code-frame" "^7.0.0" - "@eslint/eslintrc" "^0.2.2" + "@babel/code-frame" "7.12.11" + "@eslint/eslintrc" "^0.3.0" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" @@ -1744,7 +1993,7 @@ eslint@^7.15.0: eslint-utils "^2.1.0" eslint-visitor-keys "^2.0.0" espree "^7.3.1" - esquery "^1.2.0" + esquery "^1.4.0" esutils "^2.0.2" file-entry-cache "^6.0.0" functional-red-black-tree "^1.0.1" @@ -1757,7 +2006,7 @@ eslint@^7.15.0: js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" - lodash "^4.17.19" + lodash "^4.17.20" minimatch "^3.0.4" natural-compare "^1.4.0" optionator "^0.9.1" @@ -1766,7 +2015,7 @@ eslint@^7.15.0: semver "^7.2.1" strip-ansi "^6.0.0" strip-json-comments "^3.1.0" - table "^5.2.3" + table "^6.0.4" text-table "^0.2.0" v8-compile-cache "^2.0.3" @@ -1784,10 +2033,10 @@ esprima@^4.0.0, esprima@^4.0.1: resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esquery@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.3.1.tgz#b78b5828aa8e214e29fb74c4d5b752e1c033da57" - integrity sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ== +esquery@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" + integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== dependencies: estraverse "^5.1.0" @@ -2063,6 +2312,15 @@ forever-agent@~0.6.1: resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + form-data@~2.3.2: version "2.3.3" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" @@ -2138,14 +2396,14 @@ get-package-type@^0.1.0: resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== -get-stream@^4.0.0: +get-stream@^4.0.0, get-stream@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== dependencies: pump "^3.0.0" -get-stream@^5.0.0: +get-stream@^5.0.0, get-stream@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== @@ -2183,6 +2441,13 @@ glob@7.1.6, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: once "^1.3.0" path-is-absolute "^1.0.0" +global-dirs@^2.0.1: + version "2.1.0" + resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-2.1.0.tgz#e9046a49c806ff04d6c1825e196c8f0091e8df4d" + integrity sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ== + dependencies: + ini "1.3.7" + globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -2207,6 +2472,23 @@ globby@^11.0.1: merge2 "^1.3.0" slash "^3.0.0" +got@^9.6.0: + version "9.6.0" + resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" + integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q== + dependencies: + "@sindresorhus/is" "^0.14.0" + "@szmarczak/http-timer" "^1.1.2" + cacheable-request "^6.0.0" + decompress-response "^3.3.0" + duplexer3 "^0.1.4" + get-stream "^4.1.0" + lowercase-keys "^1.0.1" + mimic-response "^1.0.1" + p-cancelable "^1.0.0" + to-readable-stream "^1.0.0" + url-parse-lax "^3.0.0" + graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.4: version "4.2.4" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" @@ -2252,6 +2534,11 @@ har-validator@~5.1.3: ajv "^6.12.3" har-schema "^2.0.0" +hard-rejection@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" + integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -2293,6 +2580,11 @@ has-values@^1.0.0: is-number "^3.0.0" kind-of "^4.0.0" +has-yarn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77" + integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw== + has@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" @@ -2340,6 +2632,11 @@ htmlparser2@^4.1.0: domutils "^2.0.0" entities "^2.0.0" +http-cache-semantics@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390" + integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ== + http-signature@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" @@ -2379,6 +2676,11 @@ import-fresh@^3.0.0, import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" +import-lazy@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" + integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM= + import-local@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6" @@ -2410,6 +2712,16 @@ inherits@2: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== +ini@1.3.7: + version "1.3.7" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84" + integrity sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ== + +ini@~1.3.0: + version "1.3.8" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== + ink-docstrap@^1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/ink-docstrap/-/ink-docstrap-1.3.2.tgz#5923dc48c41c9bccb3a524d10f5924d343448900" @@ -2423,6 +2735,11 @@ ip-regex@^2.1.0: resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" integrity sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk= +irregular-plurals@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/irregular-plurals/-/irregular-plurals-3.2.0.tgz#b19c490a0723798db51b235d7e39add44dab0822" + integrity sha512-YqTdPLfwP7YFN0SsD3QUVCkm9ZG2VzOXv3DOrw5G5mkMbVwptTwVcFv7/C0vOpBmgTxAeTG19XpUs1E522LW9Q== + is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -2544,6 +2861,19 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" +is-installed-globally@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.3.2.tgz#fd3efa79ee670d1187233182d5b0a1dd00313141" + integrity sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g== + dependencies: + global-dirs "^2.0.1" + is-path-inside "^3.0.1" + +is-npm@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-4.0.0.tgz#c90dd8380696df87a7a6d823c20d0b12bbe3c84d" + integrity sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig== + is-number@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" @@ -2556,6 +2886,21 @@ is-number@^7.0.0: resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== +is-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" + integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== + +is-path-inside@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.2.tgz#f5220fc82a3e233757291dddc9c5877f2a1f3017" + integrity sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg== + +is-plain-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= + is-plain-obj@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" @@ -2600,6 +2945,11 @@ is-wsl@^2.2.0: dependencies: is-docker "^2.0.0" +is-yarn-global@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232" + integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw== + isarray@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" @@ -3179,6 +3529,11 @@ jsesc@^2.5.1: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== +json-buffer@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" + integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg= + json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" @@ -3198,6 +3553,11 @@ json-schema-traverse@^0.4.1: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" @@ -3254,6 +3614,13 @@ just-extend@^4.0.2: resolved "https://registry.yarnpkg.com/just-extend/-/just-extend-4.1.1.tgz#158f1fdb01f128c411dc8b286a7b4837b3545282" integrity sha512-aWgeGFW67BP3e5181Ep1Fv2v8z//iBJfrvyTnq8wG86vEESwmonn1zPBJ0VfmT9CJq2FIT0VsETtrNFm2a+SHA== +keyv@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9" + integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA== + dependencies: + json-buffer "3.0.0" + kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" @@ -3273,7 +3640,7 @@ kind-of@^5.0.0: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== -kind-of@^6.0.0, kind-of@^6.0.2: +kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== @@ -3290,6 +3657,13 @@ kleur@^3.0.3: resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== +latest-version@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" + integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA== + dependencies: + package-json "^6.3.0" + leven@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" @@ -3370,13 +3744,23 @@ lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20: resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== -log-symbols@4.0.0: +log-symbols@4.0.0, log-symbols@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.0.0.tgz#69b3cc46d20f448eccdb75ea1fa733d9e821c920" integrity sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA== dependencies: chalk "^4.0.0" +lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" + integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== + +lowercase-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" + integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== + lru-cache@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" @@ -3403,6 +3787,16 @@ map-cache@^0.2.2: resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= +map-obj@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" + integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= + +map-obj@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.1.0.tgz#b91221b542734b9f14256c0132c897c5d7256fd5" + integrity sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g== + map-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" @@ -3445,6 +3839,23 @@ mdurl@^1.0.1: resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4= +meow@^7.0.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/meow/-/meow-7.1.1.tgz#7c01595e3d337fcb0ec4e8eed1666ea95903d306" + integrity sha512-GWHvA5QOcS412WCo8vwKDlTelGLsCGBVevQB5Kva961rmNfun0PCbv5+xta2kUMFJyR8/oWnn7ddeKdosbAPbA== + dependencies: + "@types/minimist" "^1.2.0" + camelcase-keys "^6.2.2" + decamelize-keys "^1.1.0" + hard-rejection "^2.1.0" + minimist-options "4.1.0" + normalize-package-data "^2.5.0" + read-pkg-up "^7.0.1" + redent "^3.0.0" + trim-newlines "^3.0.0" + type-fest "^0.13.1" + yargs-parser "^18.1.3" + merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" @@ -3499,6 +3910,16 @@ mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== +mimic-response@^1.0.0, mimic-response@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== + minimatch@3.0.4, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" @@ -3506,6 +3927,15 @@ minimatch@3.0.4, minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" +minimist-options@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" + integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== + dependencies: + arrify "^1.0.1" + is-plain-obj "^1.1.0" + kind-of "^6.0.3" + minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" @@ -3700,6 +4130,11 @@ normalize-path@^3.0.0, normalize-path@~3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== +normalize-url@^4.1.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129" + integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ== + npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" @@ -3833,6 +4268,11 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" +p-cancelable@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" + integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw== + p-each-series@^2.1.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" @@ -3900,6 +4340,16 @@ package-hash@^4.0.0: lodash.flattendeep "^4.4.0" release-zalgo "^1.0.0" +package-json@^6.3.0: + version "6.5.0" + resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0" + integrity sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ== + dependencies: + got "^9.6.0" + registry-auth-token "^4.0.0" + registry-url "^5.0.0" + semver "^6.2.0" + parent-module@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" @@ -4010,6 +4460,13 @@ pkg-dir@^4.1.0, pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" +plur@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/plur/-/plur-4.0.0.tgz#729aedb08f452645fe8c58ef115bf16b0a73ef84" + integrity sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg== + dependencies: + irregular-plurals "^3.2.0" + posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" @@ -4034,6 +4491,11 @@ prelude-ls@~1.1.2: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= +prepend-http@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" + integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= + pretty-format@^26.6.2: version "26.6.2" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" @@ -4082,11 +4544,23 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== +pupa@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/pupa/-/pupa-2.1.1.tgz#f5e8fd4afc2c5d97828faa523549ed8744a20d62" + integrity sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A== + dependencies: + escape-goat "^2.0.0" + qs@~6.5.2: version "6.5.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== +quick-lru@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" + integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== + randombytes@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" @@ -4099,12 +4573,22 @@ rasha@^1.2.5: resolved "https://registry.yarnpkg.com/rasha/-/rasha-1.2.5.tgz#72668da31dcc68ac277c5b73d610e087cd33b031" integrity sha512-KxtX+/fBk+wM7O3CNgwjSh5elwFilLvqWajhr6wFr2Hd63JnKTTi43Tw+Jb1hxJQWOwoya+NZWR2xztn3hCrTw== +rc@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + react-is@^17.0.1: version "17.0.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.1.tgz#5b3531bd76a645a4c9fb6e693ed36419e3301339" integrity sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA== -read-pkg-up@^7.0.1: +read-pkg-up@^7.0.0, read-pkg-up@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== @@ -4130,6 +4614,14 @@ readdirp@~3.5.0: dependencies: picomatch "^2.2.1" +redent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" + integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== + dependencies: + indent-string "^4.0.0" + strip-indent "^3.0.0" + regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -4138,11 +4630,25 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" -regexpp@^3.1.0: +regexpp@^3.0.0, regexpp@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== +registry-auth-token@^4.0.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.2.1.tgz#6d7b4006441918972ccd5fedcd41dc322c79b250" + integrity sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw== + dependencies: + rc "^1.2.8" + +registry-url@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009" + integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw== + dependencies: + rc "^1.2.8" + release-zalgo@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/release-zalgo/-/release-zalgo-1.0.0.tgz#09700b7e5074329739330e535c5a90fb67851730" @@ -4212,6 +4718,11 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + require-main-filename@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" @@ -4254,6 +4765,13 @@ resolve@^1.10.0, resolve@^1.18.1, resolve@^1.3.2: is-core-module "^2.1.0" path-parse "^1.0.6" +responselike@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" + integrity sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec= + dependencies: + lowercase-keys "^1.0.0" + ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" @@ -4340,12 +4858,19 @@ saxes@^5.0.0: dependencies: xmlchars "^2.2.0" +semver-diff@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b" + integrity sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg== + dependencies: + semver "^6.3.0" + "semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@^6.0.0, semver@^6.3.0: +semver@^6.0.0, semver@^6.2.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== @@ -4436,14 +4961,14 @@ slash@^3.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== -slice-ansi@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" - integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== dependencies: - ansi-styles "^3.2.0" - astral-regex "^1.0.0" - is-fullwidth-code-point "^2.0.0" + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" snapdragon-node@^2.0.1: version "2.1.1" @@ -4631,6 +5156,15 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" +string-width@^4.0.0: + version "4.2.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + string-width@^4.1.0, string-width@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" @@ -4676,11 +5210,23 @@ strip-final-newline@^2.0.0: resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== + dependencies: + min-indent "^1.0.0" + strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= + supports-color@7.2.0, supports-color@^7.0.0, supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" @@ -4744,21 +5290,26 @@ symbol-tree@^3.2.4: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -table@^5.2.3: - version "5.4.6" - resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" - integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== +table@^6.0.4: + version "6.0.7" + resolved "https://registry.yarnpkg.com/table/-/table-6.0.7.tgz#e45897ffbcc1bcf9e8a87bf420f2c9e5a7a52a34" + integrity sha512-rxZevLGTUzWna/qBLObOe16kB2RTnnbhciwgPbMMlazz1yZGVEgnZK762xyVdVznhqxrfCeBMmMkgOOaPwjH7g== dependencies: - ajv "^6.10.2" - lodash "^4.17.14" - slice-ansi "^2.1.0" - string-width "^3.0.0" + ajv "^7.0.2" + lodash "^4.17.20" + slice-ansi "^4.0.0" + string-width "^4.2.0" taffydb@2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/taffydb/-/taffydb-2.6.2.tgz#7cbcb64b5a141b6a2efc2c5d2c67b4e150b2a268" integrity sha1-fLy2S1oUG2ou/CxdLGe04VCyomg= +term-size@^2.1.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/term-size/-/term-size-2.2.1.tgz#2a6a54840432c2fb6320fea0f415531e90189f54" + integrity sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg== + terminal-link@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" @@ -4803,6 +5354,11 @@ to-object-path@^0.3.0: dependencies: kind-of "^3.0.2" +to-readable-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771" + integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q== + to-regex-range@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" @@ -4852,6 +5408,23 @@ tr46@^2.0.2: dependencies: punycode "^2.1.1" +trim-newlines@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.0.tgz#79726304a6a898aa8373427298d54c2ee8b1cb30" + integrity sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA== + +tsd@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/tsd/-/tsd-0.14.0.tgz#9bd1c93e925408846949d59fe4754655749a5f2b" + integrity sha512-fl1gS5orAwqIb0P2xMdppgCrwv1BfCJn67wBzRBCV9OUaWHVXHqiIqL6yX/519xFgT1ZOaLMhr5W9XDo8kuuRA== + dependencies: + eslint-formatter-pretty "^4.0.0" + globby "^11.0.1" + meow "^7.0.1" + path-exists "^4.0.0" + read-pkg-up "^7.0.0" + update-notifier "^4.1.0" + tslib@^1.8.1: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" @@ -4900,6 +5473,11 @@ type-fest@^0.11.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1" integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ== +type-fest@^0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.13.1.tgz#0172cb5bce80b0bd542ea348db50c7e21834d934" + integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg== + type-fest@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" @@ -4917,6 +5495,11 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" +typescript@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c" + integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ== + uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac" @@ -4942,6 +5525,13 @@ union-value@^1.0.0: is-extendable "^0.1.1" set-value "^2.0.1" +unique-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" + integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== + dependencies: + crypto-random-string "^2.0.0" + universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" @@ -4955,6 +5545,25 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" +update-notifier@^4.1.0: + version "4.1.3" + resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-4.1.3.tgz#be86ee13e8ce48fb50043ff72057b5bd598e1ea3" + integrity sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A== + dependencies: + boxen "^4.2.0" + chalk "^3.0.0" + configstore "^5.0.1" + has-yarn "^2.1.0" + import-lazy "^2.1.0" + is-ci "^2.0.0" + is-installed-globally "^0.3.1" + is-npm "^4.0.0" + is-yarn-global "^0.3.0" + latest-version "^5.0.0" + pupa "^2.0.1" + semver-diff "^3.1.1" + xdg-basedir "^4.0.0" + uri-js@^4.2.2: version "4.4.0" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.0.tgz#aa714261de793e8a82347a7bcc9ce74e86f28602" @@ -4967,6 +5576,13 @@ urix@^0.1.0: resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= +url-parse-lax@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" + integrity sha1-FrXK/Afb42dsGxmZF3gj1lA6yww= + dependencies: + prepend-http "^2.0.0" + use@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" @@ -5101,6 +5717,13 @@ wide-align@1.1.3: dependencies: string-width "^1.0.2 || 2" +widest-line@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" + integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== + dependencies: + string-width "^4.0.0" + word-wrap@^1.2.3, word-wrap@~1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" @@ -5154,6 +5777,11 @@ ws@^7.2.3: resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.1.tgz#a333be02696bd0e54cea0434e21dcc8a9ac294bb" integrity sha512-pTsP8UAfhy3sk1lSk/O/s4tjD0CRwvMnzvwr4OKGX7ZvqZtUyx4KIJB5JWbkykPoc55tixMGgTNoh3k4FkNGFQ== +xdg-basedir@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" + integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== + xml-name-validator@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" @@ -5197,7 +5825,7 @@ yargs-parser@13.1.2, yargs-parser@^13.1.2: camelcase "^5.0.0" decamelize "^1.2.0" -yargs-parser@^18.1.2: +yargs-parser@^18.1.2, yargs-parser@^18.1.3: version "18.1.3" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==