@equisoft/account-service-sdk-typescript 4.5.1-snapshot.20230207210529 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +12 -1
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +0 -3
- package/.tool-versions +2 -2
- package/README.md +2 -2
- package/dist/apis/OAuthApi.d.ts +2 -2
- package/dist/apis/OAuthApi.js +5 -5
- package/dist/apis/OrganizationApi.d.ts +14 -2
- package/dist/apis/OrganizationApi.js +59 -20
- package/dist/apis/PermissionApi.d.ts +2 -2
- package/dist/apis/PermissionApi.js +4 -4
- package/dist/apis/RoleApi.d.ts +2 -2
- package/dist/apis/RoleApi.js +3 -3
- package/dist/apis/ServiceAccountApi.d.ts +2 -2
- package/dist/apis/ServiceAccountApi.js +11 -11
- package/dist/apis/SessionApi.d.ts +3 -3
- package/dist/apis/SessionApi.js +13 -10
- package/dist/apis/UserApi.d.ts +140 -5
- package/dist/apis/UserApi.js +462 -22
- package/dist/apis/index.js +6 -2
- package/dist/esm/apis/OAuthApi.d.ts +41 -0
- package/dist/esm/apis/OAuthApi.js +106 -0
- package/dist/esm/apis/OrganizationApi.d.ts +253 -0
- package/dist/esm/apis/OrganizationApi.js +802 -0
- package/dist/esm/apis/PermissionApi.d.ts +30 -0
- package/dist/esm/apis/PermissionApi.js +70 -0
- package/dist/esm/apis/RoleApi.d.ts +29 -0
- package/dist/esm/apis/RoleApi.js +65 -0
- package/dist/esm/apis/ServiceAccountApi.d.ts +112 -0
- package/dist/esm/apis/ServiceAccountApi.js +339 -0
- package/dist/esm/apis/SessionApi.d.ts +154 -0
- package/dist/esm/apis/SessionApi.js +481 -0
- package/dist/esm/apis/UserApi.d.ts +409 -0
- package/dist/esm/apis/UserApi.js +1304 -0
- package/dist/esm/apis/index.d.ts +7 -0
- package/dist/esm/apis/index.js +9 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApplyPermissionsPayload.d.ts +38 -0
- package/dist/esm/models/ApplyPermissionsPayload.js +47 -0
- package/dist/esm/models/AuthenticationUserAccount.d.ts +61 -0
- package/dist/esm/models/AuthenticationUserAccount.js +58 -0
- package/dist/esm/models/CreateOrUpdateOAuthClientPayload.d.ts +100 -0
- package/dist/esm/models/CreateOrUpdateOAuthClientPayload.js +67 -0
- package/dist/esm/models/CreateOrUpdateOrganizationPayload.d.ts +59 -0
- package/dist/esm/models/CreateOrUpdateOrganizationPayload.js +55 -0
- package/dist/esm/models/CreateOrUpdatePermissionPayload.d.ts +32 -0
- package/dist/esm/models/CreateOrUpdatePermissionPayload.js +44 -0
- package/dist/esm/models/CreateOrganizationPayload.d.ts +59 -0
- package/dist/esm/models/CreateOrganizationPayload.js +54 -0
- package/dist/esm/models/CreateOrganizationUserServiceOptionPayload.d.ts +31 -0
- package/dist/esm/models/CreateOrganizationUserServiceOptionPayload.js +43 -0
- package/dist/esm/models/CreateOrganizationUserServicePayload.d.ts +33 -0
- package/dist/esm/models/CreateOrganizationUserServicePayload.js +43 -0
- package/dist/esm/models/CreateRole.d.ts +38 -0
- package/dist/esm/models/CreateRole.js +47 -0
- package/dist/esm/models/CreateUserAccountPayload.d.ts +106 -0
- package/dist/esm/models/CreateUserAccountPayload.js +76 -0
- package/dist/esm/models/CreateUserAccountServiceAssociation.d.ts +45 -0
- package/dist/esm/models/CreateUserAccountServiceAssociation.js +49 -0
- package/dist/esm/models/DatabaseState.d.ts +31 -0
- package/dist/esm/models/DatabaseState.js +38 -0
- package/dist/esm/models/EnableEquisoftConnectPayload.d.ts +31 -0
- package/dist/esm/models/EnableEquisoftConnectPayload.js +43 -0
- package/dist/esm/models/ErrorMessage.d.ts +40 -0
- package/dist/esm/models/ErrorMessage.js +47 -0
- package/dist/esm/models/ErrorPayload.d.ts +38 -0
- package/dist/esm/models/ErrorPayload.js +47 -0
- package/dist/esm/models/Id.d.ts +37 -0
- package/dist/esm/models/Id.js +46 -0
- package/dist/esm/models/ImpersonatePayload.d.ts +31 -0
- package/dist/esm/models/ImpersonatePayload.js +43 -0
- package/dist/esm/models/LegacyRoleSchema.d.ts +38 -0
- package/dist/esm/models/LegacyRoleSchema.js +47 -0
- package/dist/esm/models/ListOrganizationElement.d.ts +58 -0
- package/dist/esm/models/ListOrganizationElement.js +58 -0
- package/dist/esm/models/ListUserOrganizations.d.ts +38 -0
- package/dist/esm/models/ListUserOrganizations.js +47 -0
- package/dist/esm/models/LocalizedString.d.ts +39 -0
- package/dist/esm/models/LocalizedString.js +46 -0
- package/dist/esm/models/LoginPayload.d.ts +37 -0
- package/dist/esm/models/LoginPayload.js +46 -0
- package/dist/esm/models/NewPasswordPayload.d.ts +31 -0
- package/dist/esm/models/NewPasswordPayload.js +43 -0
- package/dist/esm/models/OAuthClient.d.ts +106 -0
- package/dist/esm/models/OAuthClient.js +78 -0
- package/dist/esm/models/OAuthClientCreated.d.ts +31 -0
- package/dist/esm/models/OAuthClientCreated.js +43 -0
- package/dist/esm/models/OAuthClientPublicKey.d.ts +37 -0
- package/dist/esm/models/OAuthClientPublicKey.js +46 -0
- package/dist/esm/models/Organization.d.ts +91 -0
- package/dist/esm/models/Organization.js +72 -0
- package/dist/esm/models/OrganizationCreated.d.ts +31 -0
- package/dist/esm/models/OrganizationCreated.js +43 -0
- package/dist/esm/models/OrganizationPathElement.d.ts +38 -0
- package/dist/esm/models/OrganizationPathElement.js +47 -0
- package/dist/esm/models/OrganizationRoleAttribution.d.ts +39 -0
- package/dist/esm/models/OrganizationRoleAttribution.js +48 -0
- package/dist/esm/models/OrganizationRoleAttributionPermission.d.ts +38 -0
- package/dist/esm/models/OrganizationRoleAttributionPermission.js +47 -0
- package/dist/esm/models/OrganizationRoleAttributionRole.d.ts +45 -0
- package/dist/esm/models/OrganizationRoleAttributionRole.js +51 -0
- package/dist/esm/models/OrganizationRoleAttributionUser.d.ts +50 -0
- package/dist/esm/models/OrganizationRoleAttributionUser.js +53 -0
- package/dist/esm/models/OrganizationRoleAttributions.d.ts +32 -0
- package/dist/esm/models/OrganizationRoleAttributions.js +44 -0
- package/dist/esm/models/OrganizationServiceProfile.d.ts +37 -0
- package/dist/esm/models/OrganizationServiceProfile.js +46 -0
- package/dist/esm/models/OrganizationServicesElement.d.ts +37 -0
- package/dist/esm/models/OrganizationServicesElement.js +46 -0
- package/dist/esm/models/OrganizationSsoProvider.d.ts +38 -0
- package/dist/esm/models/OrganizationSsoProvider.js +47 -0
- package/dist/esm/models/OrganizationUserServiceAssociation.d.ts +45 -0
- package/dist/esm/models/OrganizationUserServiceAssociation.js +49 -0
- package/dist/esm/models/PasswordPolicy.d.ts +73 -0
- package/dist/esm/models/PasswordPolicy.js +64 -0
- package/dist/esm/models/PermissionCode.d.ts +31 -0
- package/dist/esm/models/PermissionCode.js +43 -0
- package/dist/esm/models/PermissionCreated.d.ts +31 -0
- package/dist/esm/models/PermissionCreated.js +43 -0
- package/dist/esm/models/PermissionList.d.ts +32 -0
- package/dist/esm/models/PermissionList.js +44 -0
- package/dist/esm/models/PermissionResourceType.d.ts +24 -0
- package/dist/esm/models/PermissionResourceType.js +31 -0
- package/dist/esm/models/Role.d.ts +44 -0
- package/dist/esm/models/Role.js +50 -0
- package/dist/esm/models/RoleCreated.d.ts +44 -0
- package/dist/esm/models/RoleCreated.js +50 -0
- package/dist/esm/models/RolesOnOrganization.d.ts +59 -0
- package/dist/esm/models/RolesOnOrganization.js +59 -0
- package/dist/esm/models/SendResetPasswordLinkPayload.d.ts +37 -0
- package/dist/esm/models/SendResetPasswordLinkPayload.js +45 -0
- package/dist/esm/models/ServiceAccess.d.ts +63 -0
- package/dist/esm/models/ServiceAccess.js +56 -0
- package/dist/esm/models/ServiceAccountCreationSchema.d.ts +43 -0
- package/dist/esm/models/ServiceAccountCreationSchema.js +49 -0
- package/dist/esm/models/ServiceAccountSchema.d.ts +68 -0
- package/dist/esm/models/ServiceAccountSchema.js +62 -0
- package/dist/esm/models/ServiceAccountStatus.d.ts +25 -0
- package/dist/esm/models/ServiceAccountStatus.js +32 -0
- package/dist/esm/models/ServiceAccountUpdateSchema.d.ts +37 -0
- package/dist/esm/models/ServiceAccountUpdateSchema.js +45 -0
- package/dist/esm/models/ServiceAccountUuidSchema.d.ts +31 -0
- package/dist/esm/models/ServiceAccountUuidSchema.js +43 -0
- package/dist/esm/models/ServiceName.d.ts +27 -0
- package/dist/esm/models/ServiceName.js +34 -0
- package/dist/esm/models/Session.d.ts +94 -0
- package/dist/esm/models/Session.js +74 -0
- package/dist/esm/models/SessionPayload.d.ts +62 -0
- package/dist/esm/models/SessionPayload.js +56 -0
- package/dist/esm/models/SessionPolicy.d.ts +37 -0
- package/dist/esm/models/SessionPolicy.js +45 -0
- package/dist/esm/models/SessionState.d.ts +33 -0
- package/dist/esm/models/SessionState.js +40 -0
- package/dist/esm/models/SetPasswordByConfirmationHashPayload.d.ts +31 -0
- package/dist/esm/models/SetPasswordByConfirmationHashPayload.js +43 -0
- package/dist/esm/models/SetUserAccountPasswordPayload.d.ts +43 -0
- package/dist/esm/models/SetUserAccountPasswordPayload.js +49 -0
- package/dist/esm/models/SignupHash.d.ts +31 -0
- package/dist/esm/models/SignupHash.js +43 -0
- package/dist/esm/models/SsoProvider.d.ts +37 -0
- package/dist/esm/models/SsoProvider.js +46 -0
- package/dist/esm/models/SsoToken.d.ts +37 -0
- package/dist/esm/models/SsoToken.js +46 -0
- package/dist/esm/models/UpdateParentOrganizationPayload.d.ts +31 -0
- package/dist/esm/models/UpdateParentOrganizationPayload.js +43 -0
- package/dist/esm/models/UpdateUserAccountPayload.d.ts +55 -0
- package/dist/esm/models/UpdateUserAccountPayload.js +53 -0
- package/dist/esm/models/UpdateUserAccountSsoPayload.d.ts +37 -0
- package/dist/esm/models/UpdateUserAccountSsoPayload.js +46 -0
- package/dist/esm/models/UpsertServicePayload.d.ts +31 -0
- package/dist/esm/models/UpsertServicePayload.js +43 -0
- package/dist/esm/models/User.d.ts +168 -0
- package/dist/esm/models/User.js +109 -0
- package/dist/esm/models/UserAccountOrganizationRoles.d.ts +45 -0
- package/dist/esm/models/UserAccountOrganizationRoles.js +51 -0
- package/dist/esm/models/UserAccountPermission.d.ts +38 -0
- package/dist/esm/models/UserAccountPermission.js +47 -0
- package/dist/esm/models/UserAccountRole.d.ts +38 -0
- package/dist/esm/models/UserAccountRole.js +47 -0
- package/dist/esm/models/UserAccountRoleAttributions.d.ts +32 -0
- package/dist/esm/models/UserAccountRoleAttributions.js +44 -0
- package/dist/esm/models/UserAccountSearchResult.d.ts +162 -0
- package/dist/esm/models/UserAccountSearchResult.js +106 -0
- package/dist/esm/models/UserAgreement.d.ts +32 -0
- package/dist/esm/models/UserAgreement.js +44 -0
- package/dist/esm/models/UserAgreementState.d.ts +27 -0
- package/dist/esm/models/UserAgreementState.js +34 -0
- package/dist/esm/models/UserPermissions.d.ts +39 -0
- package/dist/esm/models/UserPermissions.js +48 -0
- package/dist/esm/models/UserServiceAssociation.d.ts +51 -0
- package/dist/esm/models/UserServiceAssociation.js +51 -0
- package/dist/esm/models/UserSsoProvider.d.ts +31 -0
- package/dist/esm/models/UserSsoProvider.js +43 -0
- package/dist/esm/models/UserState.d.ts +29 -0
- package/dist/esm/models/UserState.js +36 -0
- package/dist/esm/models/UserUuid.d.ts +31 -0
- package/dist/esm/models/UserUuid.js +43 -0
- package/dist/esm/models/index.d.ts +80 -0
- package/dist/esm/models/index.js +82 -0
- package/dist/esm/runtime.d.ts +182 -0
- package/dist/esm/runtime.js +330 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -4
- package/dist/models/ApplyPermissionsPayload.d.ts +1 -1
- package/dist/models/ApplyPermissionsPayload.js +3 -3
- package/dist/models/AuthenticationUserAccount.d.ts +2 -2
- package/dist/models/AuthenticationUserAccount.js +3 -3
- package/dist/models/CreateOrUpdateOAuthClientPayload.d.ts +4 -4
- package/dist/models/CreateOrUpdateOAuthClientPayload.js +13 -16
- package/dist/models/CreateOrUpdateOrganizationPayload.d.ts +14 -5
- package/dist/models/CreateOrUpdateOrganizationPayload.js +10 -8
- package/dist/models/CreateOrUpdatePermissionPayload.d.ts +1 -1
- package/dist/models/CreateOrUpdatePermissionPayload.js +3 -3
- package/dist/models/CreateOrganizationPayload.d.ts +14 -5
- package/dist/models/CreateOrganizationPayload.js +9 -8
- package/dist/models/CreateOrganizationUserServiceOptionPayload.d.ts +2 -2
- package/dist/models/CreateOrganizationUserServiceOptionPayload.js +3 -3
- package/dist/models/CreateOrganizationUserServicePayload.d.ts +1 -1
- package/dist/models/CreateOrganizationUserServicePayload.js +2 -2
- package/dist/models/CreateRole.d.ts +1 -1
- package/dist/models/CreateRole.js +3 -3
- package/dist/models/CreateUserAccountPayload.d.ts +106 -0
- package/dist/models/CreateUserAccountPayload.js +83 -0
- package/dist/models/CreateUserAccountServiceAssociation.d.ts +45 -0
- package/dist/models/CreateUserAccountServiceAssociation.js +56 -0
- package/dist/models/DatabaseState.d.ts +3 -2
- package/dist/models/DatabaseState.js +2 -1
- package/dist/models/EnableEquisoftConnectPayload.d.ts +31 -0
- package/dist/models/EnableEquisoftConnectPayload.js +50 -0
- package/dist/models/ErrorMessage.d.ts +3 -2
- package/dist/models/ErrorMessage.js +2 -1
- package/dist/models/ErrorPayload.d.ts +1 -1
- package/dist/models/ErrorPayload.js +4 -4
- package/dist/models/Id.d.ts +1 -1
- package/dist/models/Id.js +1 -1
- package/dist/models/ImpersonatePayload.d.ts +1 -1
- package/dist/models/ImpersonatePayload.js +1 -1
- package/dist/models/LegacyRoleSchema.d.ts +1 -1
- package/dist/models/LegacyRoleSchema.js +3 -3
- package/dist/models/ListOrganizationElement.d.ts +1 -1
- package/dist/models/ListOrganizationElement.js +4 -4
- package/dist/models/ListUserOrganizations.d.ts +1 -1
- package/dist/models/ListUserOrganizations.js +2 -2
- package/dist/models/LocalizedString.d.ts +3 -3
- package/dist/models/LocalizedString.js +1 -1
- package/dist/models/LoginPayload.d.ts +1 -1
- package/dist/models/LoginPayload.js +1 -1
- package/dist/models/NewPasswordPayload.d.ts +31 -0
- package/dist/models/NewPasswordPayload.js +50 -0
- package/dist/models/OAuthClient.d.ts +1 -1
- package/dist/models/OAuthClient.js +5 -5
- package/dist/models/OAuthClientCreated.d.ts +1 -1
- package/dist/models/OAuthClientCreated.js +1 -1
- package/dist/models/OAuthClientPublicKey.d.ts +1 -1
- package/dist/models/OAuthClientPublicKey.js +1 -1
- package/dist/models/Organization.d.ts +11 -2
- package/dist/models/Organization.js +11 -7
- package/dist/models/OrganizationCreated.d.ts +1 -1
- package/dist/models/OrganizationCreated.js +1 -1
- package/dist/models/OrganizationPathElement.d.ts +1 -1
- package/dist/models/OrganizationPathElement.js +3 -3
- package/dist/models/OrganizationRoleAttribution.d.ts +4 -4
- package/dist/models/OrganizationRoleAttribution.js +4 -4
- package/dist/models/OrganizationRoleAttributionPermission.d.ts +1 -1
- package/dist/models/OrganizationRoleAttributionPermission.js +3 -3
- package/dist/models/OrganizationRoleAttributionRole.d.ts +1 -1
- package/dist/models/OrganizationRoleAttributionRole.js +3 -3
- package/dist/models/OrganizationRoleAttributionUser.d.ts +50 -0
- package/dist/models/OrganizationRoleAttributionUser.js +60 -0
- package/dist/models/OrganizationRoleAttributions.d.ts +1 -1
- package/dist/models/OrganizationRoleAttributions.js +1 -1
- package/dist/models/OrganizationServiceProfile.d.ts +37 -0
- package/dist/models/OrganizationServiceProfile.js +53 -0
- package/dist/models/OrganizationServicesElement.d.ts +1 -1
- package/dist/models/OrganizationServicesElement.js +2 -2
- package/dist/models/OrganizationSsoProvider.d.ts +1 -1
- package/dist/models/OrganizationSsoProvider.js +3 -3
- package/dist/models/OrganizationUserServiceAssociation.d.ts +1 -1
- package/dist/models/OrganizationUserServiceAssociation.js +2 -2
- package/dist/models/PasswordPolicy.d.ts +73 -0
- package/dist/models/PasswordPolicy.js +71 -0
- package/dist/models/PermissionCode.d.ts +1 -1
- package/dist/models/PermissionCode.js +1 -1
- package/dist/models/PermissionCreated.d.ts +1 -1
- package/dist/models/PermissionCreated.js +1 -1
- package/dist/models/PermissionList.d.ts +1 -1
- package/dist/models/PermissionList.js +1 -1
- package/dist/models/PermissionResourceType.d.ts +2 -2
- package/dist/models/PermissionResourceType.js +1 -1
- package/dist/models/Role.d.ts +1 -1
- package/dist/models/Role.js +3 -3
- package/dist/models/RoleCreated.d.ts +1 -1
- package/dist/models/RoleCreated.js +3 -3
- package/dist/models/RolesOnOrganization.d.ts +1 -1
- package/dist/models/RolesOnOrganization.js +3 -3
- package/dist/models/SendResetPasswordLinkPayload.d.ts +3 -3
- package/dist/models/SendResetPasswordLinkPayload.js +4 -5
- package/dist/models/ServiceAccess.d.ts +1 -1
- package/dist/models/ServiceAccess.js +9 -9
- package/dist/models/ServiceAccountCreationSchema.d.ts +1 -1
- package/dist/models/ServiceAccountCreationSchema.js +1 -1
- package/dist/models/ServiceAccountSchema.d.ts +1 -1
- package/dist/models/ServiceAccountSchema.js +4 -4
- package/dist/models/ServiceAccountStatus.d.ts +2 -2
- package/dist/models/ServiceAccountStatus.js +1 -1
- package/dist/models/ServiceAccountUpdateSchema.d.ts +1 -1
- package/dist/models/ServiceAccountUpdateSchema.js +3 -3
- package/dist/models/ServiceAccountUuidSchema.d.ts +1 -1
- package/dist/models/ServiceAccountUuidSchema.js +1 -1
- package/dist/models/ServiceName.d.ts +2 -2
- package/dist/models/ServiceName.js +1 -1
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/Session.js +10 -10
- package/dist/models/SessionPayload.d.ts +3 -3
- package/dist/models/SessionPayload.js +6 -6
- package/dist/models/SessionPolicy.d.ts +37 -0
- package/dist/models/SessionPolicy.js +52 -0
- package/dist/models/SessionState.d.ts +3 -2
- package/dist/models/SessionState.js +2 -1
- package/dist/models/SetPasswordByConfirmationHashPayload.d.ts +1 -1
- package/dist/models/SetPasswordByConfirmationHashPayload.js +1 -1
- package/dist/models/SetUserAccountPasswordPayload.d.ts +1 -1
- package/dist/models/SetUserAccountPasswordPayload.js +2 -2
- package/dist/models/SignupHash.d.ts +31 -0
- package/dist/models/SignupHash.js +50 -0
- package/dist/models/SsoProvider.d.ts +1 -1
- package/dist/models/SsoProvider.js +1 -1
- package/dist/models/SsoToken.d.ts +1 -1
- package/dist/models/SsoToken.js +1 -1
- package/dist/models/UpdateParentOrganizationPayload.d.ts +1 -1
- package/dist/models/UpdateParentOrganizationPayload.js +1 -1
- package/dist/models/UpdateUserAccountPayload.d.ts +1 -1
- package/dist/models/UpdateUserAccountPayload.js +4 -4
- package/dist/models/UpdateUserAccountSsoPayload.d.ts +1 -1
- package/dist/models/UpdateUserAccountSsoPayload.js +2 -2
- package/dist/models/UpsertServicePayload.d.ts +1 -1
- package/dist/models/UpsertServicePayload.js +2 -2
- package/dist/models/User.d.ts +5 -5
- package/dist/models/User.js +15 -15
- package/dist/models/UserAccountOrganizationRoles.d.ts +1 -1
- package/dist/models/UserAccountOrganizationRoles.js +3 -3
- package/dist/models/UserAccountPermission.d.ts +1 -1
- package/dist/models/UserAccountPermission.js +3 -3
- package/dist/models/UserAccountRole.d.ts +1 -1
- package/dist/models/UserAccountRole.js +3 -3
- package/dist/models/UserAccountRoleAttributions.d.ts +1 -1
- package/dist/models/UserAccountRoleAttributions.js +1 -1
- package/dist/models/UserAccountSearchResult.d.ts +1 -7
- package/dist/models/UserAccountSearchResult.js +12 -15
- package/dist/models/UserAgreement.d.ts +1 -1
- package/dist/models/UserAgreement.js +3 -3
- package/dist/models/UserAgreementState.d.ts +3 -2
- package/dist/models/UserAgreementState.js +2 -1
- package/dist/models/UserPermissions.d.ts +1 -1
- package/dist/models/UserPermissions.js +1 -1
- package/dist/models/UserServiceAssociation.d.ts +1 -1
- package/dist/models/UserServiceAssociation.js +3 -3
- package/dist/models/UserSsoProvider.d.ts +1 -1
- package/dist/models/UserSsoProvider.js +1 -1
- package/dist/models/UserState.d.ts +3 -2
- package/dist/models/UserState.js +2 -1
- package/dist/models/UserUuid.d.ts +31 -0
- package/dist/models/UserUuid.js +50 -0
- package/dist/models/index.d.ts +10 -1
- package/dist/models/index.js +16 -3
- package/dist/runtime.d.ts +24 -12
- package/dist/runtime.js +40 -10
- package/package.json +11 -13
- package/src/apis/OAuthApi.ts +3 -5
- package/src/apis/OrganizationApi.ts +51 -21
- package/src/apis/PermissionApi.ts +3 -4
- package/src/apis/RoleApi.ts +3 -4
- package/src/apis/ServiceAccountApi.ts +3 -11
- package/src/apis/SessionApi.ts +12 -20
- package/src/apis/UserApi.ts +560 -30
- package/src/index.ts +2 -2
- package/src/models/ApplyPermissionsPayload.ts +1 -1
- package/src/models/AuthenticationUserAccount.ts +4 -3
- package/src/models/CreateOrUpdateOAuthClientPayload.ts +7 -10
- package/src/models/CreateOrUpdateOrganizationPayload.ts +24 -9
- package/src/models/CreateOrUpdatePermissionPayload.ts +1 -1
- package/src/models/CreateOrganizationPayload.ts +23 -9
- package/src/models/CreateOrganizationUserServiceOptionPayload.ts +3 -4
- package/src/models/CreateOrganizationUserServicePayload.ts +1 -1
- package/src/models/CreateRole.ts +1 -1
- package/src/models/CreateUserAccountPayload.ts +186 -0
- package/src/models/CreateUserAccountServiceAssociation.ts +83 -0
- package/src/models/DatabaseState.ts +2 -1
- package/src/models/{EnableEquisoftConnectPayloadSchema.ts → EnableEquisoftConnectPayload.ts} +11 -11
- package/src/models/ErrorMessage.ts +2 -1
- package/src/models/ErrorPayload.ts +1 -1
- package/src/models/Id.ts +1 -1
- package/src/models/ImpersonatePayload.ts +1 -1
- package/src/models/LegacyRoleSchema.ts +1 -1
- package/src/models/ListOrganizationElement.ts +1 -1
- package/src/models/ListUserOrganizations.ts +1 -1
- package/src/models/LocalizedString.ts +3 -3
- package/src/models/LoginPayload.ts +1 -1
- package/src/models/NewPasswordPayload.ts +66 -0
- package/src/models/OAuthClient.ts +1 -1
- package/src/models/OAuthClientCreated.ts +1 -1
- package/src/models/OAuthClientPublicKey.ts +1 -1
- package/src/models/Organization.ts +21 -4
- package/src/models/OrganizationCreated.ts +1 -1
- package/src/models/OrganizationPathElement.ts +1 -1
- package/src/models/OrganizationRoleAttribution.ts +10 -10
- package/src/models/OrganizationRoleAttributionPermission.ts +1 -1
- package/src/models/OrganizationRoleAttributionRole.ts +1 -1
- package/src/models/OrganizationRoleAttributionUser.ts +100 -0
- package/src/models/OrganizationRoleAttributions.ts +1 -1
- package/src/models/OrganizationServiceProfile.ts +75 -0
- package/src/models/OrganizationServicesElement.ts +1 -1
- package/src/models/OrganizationSsoProvider.ts +1 -1
- package/src/models/OrganizationUserServiceAssociation.ts +1 -1
- package/src/models/PasswordPolicy.ts +129 -0
- package/src/models/PermissionCode.ts +1 -1
- package/src/models/PermissionCreated.ts +1 -1
- package/src/models/PermissionList.ts +1 -1
- package/src/models/PermissionResourceType.ts +1 -1
- package/src/models/Role.ts +1 -1
- package/src/models/RoleCreated.ts +1 -1
- package/src/models/RolesOnOrganization.ts +1 -1
- package/src/models/SendResetPasswordLinkPayload.ts +5 -7
- package/src/models/ServiceAccess.ts +1 -1
- package/src/models/ServiceAccountCreationSchema.ts +1 -1
- package/src/models/ServiceAccountSchema.ts +1 -1
- package/src/models/ServiceAccountStatus.ts +1 -1
- package/src/models/ServiceAccountUpdateSchema.ts +1 -1
- package/src/models/ServiceAccountUuidSchema.ts +1 -1
- package/src/models/ServiceName.ts +1 -1
- package/src/models/Session.ts +1 -1
- package/src/models/SessionPayload.ts +3 -3
- package/src/models/SessionPolicy.ts +73 -0
- package/src/models/SessionState.ts +2 -1
- package/src/models/SetPasswordByConfirmationHashPayload.ts +1 -1
- package/src/models/SetUserAccountPasswordPayload.ts +1 -1
- package/src/models/SignupHash.ts +66 -0
- package/src/models/SsoProvider.ts +1 -1
- package/src/models/SsoToken.ts +1 -1
- package/src/models/UpdateParentOrganizationPayload.ts +1 -1
- package/src/models/UpdateUserAccountPayload.ts +1 -1
- package/src/models/UpdateUserAccountSsoPayload.ts +1 -1
- package/src/models/UpsertServicePayload.ts +1 -1
- package/src/models/User.ts +8 -8
- package/src/models/UserAccountOrganizationRoles.ts +1 -1
- package/src/models/UserAccountPermission.ts +1 -1
- package/src/models/UserAccountRole.ts +1 -1
- package/src/models/UserAccountRoleAttributions.ts +1 -1
- package/src/models/UserAccountSearchResult.ts +1 -10
- package/src/models/UserAgreement.ts +1 -1
- package/src/models/UserAgreementState.ts +2 -1
- package/src/models/UserPermissions.ts +1 -1
- package/src/models/UserServiceAssociation.ts +1 -1
- package/src/models/UserSsoProvider.ts +1 -1
- package/src/models/UserState.ts +2 -1
- package/src/models/UserUuid.ts +66 -0
- package/src/models/index.ts +10 -1
- package/src/runtime.ts +48 -20
- package/dist/models/EnableEquisoftConnectPayloadSchema.d.ts +0 -31
- package/dist/models/EnableEquisoftConnectPayloadSchema.js +0 -50
package/src/apis/UserApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* User account and session management
|
|
5
5
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 6.7.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,42 +17,58 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApplyPermissionsPayload,
|
|
19
19
|
AuthenticationUserAccount,
|
|
20
|
+
CreateUserAccountPayload,
|
|
20
21
|
ErrorPayload,
|
|
21
22
|
Id,
|
|
22
23
|
LoginPayload,
|
|
24
|
+
NewPasswordPayload,
|
|
23
25
|
Organization,
|
|
26
|
+
PasswordPolicy,
|
|
24
27
|
PermissionList,
|
|
25
28
|
SendResetPasswordLinkPayload,
|
|
29
|
+
SessionPolicy,
|
|
26
30
|
SetPasswordByConfirmationHashPayload,
|
|
27
31
|
SetUserAccountPasswordPayload,
|
|
32
|
+
SignupHash,
|
|
28
33
|
UpdateUserAccountPayload,
|
|
29
34
|
UpdateUserAccountSsoPayload,
|
|
30
35
|
User,
|
|
31
36
|
UserAccountRoleAttributions,
|
|
32
37
|
UserAccountSearchResult,
|
|
33
38
|
UserPermissions,
|
|
34
|
-
|
|
39
|
+
UserUuid,
|
|
40
|
+
} from '../models/index';
|
|
35
41
|
import {
|
|
36
42
|
ApplyPermissionsPayloadFromJSON,
|
|
37
43
|
ApplyPermissionsPayloadToJSON,
|
|
38
44
|
AuthenticationUserAccountFromJSON,
|
|
39
45
|
AuthenticationUserAccountToJSON,
|
|
46
|
+
CreateUserAccountPayloadFromJSON,
|
|
47
|
+
CreateUserAccountPayloadToJSON,
|
|
40
48
|
ErrorPayloadFromJSON,
|
|
41
49
|
ErrorPayloadToJSON,
|
|
42
50
|
IdFromJSON,
|
|
43
51
|
IdToJSON,
|
|
44
52
|
LoginPayloadFromJSON,
|
|
45
53
|
LoginPayloadToJSON,
|
|
54
|
+
NewPasswordPayloadFromJSON,
|
|
55
|
+
NewPasswordPayloadToJSON,
|
|
46
56
|
OrganizationFromJSON,
|
|
47
57
|
OrganizationToJSON,
|
|
58
|
+
PasswordPolicyFromJSON,
|
|
59
|
+
PasswordPolicyToJSON,
|
|
48
60
|
PermissionListFromJSON,
|
|
49
61
|
PermissionListToJSON,
|
|
50
62
|
SendResetPasswordLinkPayloadFromJSON,
|
|
51
63
|
SendResetPasswordLinkPayloadToJSON,
|
|
64
|
+
SessionPolicyFromJSON,
|
|
65
|
+
SessionPolicyToJSON,
|
|
52
66
|
SetPasswordByConfirmationHashPayloadFromJSON,
|
|
53
67
|
SetPasswordByConfirmationHashPayloadToJSON,
|
|
54
68
|
SetUserAccountPasswordPayloadFromJSON,
|
|
55
69
|
SetUserAccountPasswordPayloadToJSON,
|
|
70
|
+
SignupHashFromJSON,
|
|
71
|
+
SignupHashToJSON,
|
|
56
72
|
UpdateUserAccountPayloadFromJSON,
|
|
57
73
|
UpdateUserAccountPayloadToJSON,
|
|
58
74
|
UpdateUserAccountSsoPayloadFromJSON,
|
|
@@ -65,7 +81,18 @@ import {
|
|
|
65
81
|
UserAccountSearchResultToJSON,
|
|
66
82
|
UserPermissionsFromJSON,
|
|
67
83
|
UserPermissionsToJSON,
|
|
68
|
-
|
|
84
|
+
UserUuidFromJSON,
|
|
85
|
+
UserUuidToJSON,
|
|
86
|
+
} from '../models/index';
|
|
87
|
+
|
|
88
|
+
export interface AcceptAgreementRequest {
|
|
89
|
+
uuid: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface AcceptSignupInvitationRequest {
|
|
93
|
+
hash: string;
|
|
94
|
+
newPasswordPayload: NewPasswordPayload;
|
|
95
|
+
}
|
|
69
96
|
|
|
70
97
|
export interface ActivateRequest {
|
|
71
98
|
uuid: string;
|
|
@@ -87,14 +114,30 @@ export interface ApplyPermissionsOnResource1Request {
|
|
|
87
114
|
applyPermissionsPayload: ApplyPermissionsPayload;
|
|
88
115
|
}
|
|
89
116
|
|
|
117
|
+
export interface CreateSignupInvitationRequest {
|
|
118
|
+
uuid: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface CreateUserRequest {
|
|
122
|
+
createUserAccountPayload: CreateUserAccountPayload;
|
|
123
|
+
}
|
|
124
|
+
|
|
90
125
|
export interface DeactivateRequest {
|
|
91
126
|
uuid: string;
|
|
92
127
|
}
|
|
93
128
|
|
|
129
|
+
export interface DeleteSignupInvitationRequest {
|
|
130
|
+
uuid: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
94
133
|
export interface DeleteSsoRequest {
|
|
95
134
|
uuid: string;
|
|
96
135
|
}
|
|
97
136
|
|
|
137
|
+
export interface DeleteUserAccountRequest {
|
|
138
|
+
uuid: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
98
141
|
export interface DeleteUserAccountRoleAttributionRequest {
|
|
99
142
|
uuid: string;
|
|
100
143
|
organizationUuid: string;
|
|
@@ -105,6 +148,14 @@ export interface DeleteUserSessionsRequest {
|
|
|
105
148
|
uuid: string;
|
|
106
149
|
}
|
|
107
150
|
|
|
151
|
+
export interface DisablePasswordLoginRequest {
|
|
152
|
+
uuid: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface EnablePasswordLoginRequest {
|
|
156
|
+
uuid: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
108
159
|
export interface GetOwnerOrganizationRequest {
|
|
109
160
|
uuid: string;
|
|
110
161
|
}
|
|
@@ -117,7 +168,11 @@ export interface GetUserAccountRoleAttributionsRequest {
|
|
|
117
168
|
uuid: string;
|
|
118
169
|
}
|
|
119
170
|
|
|
120
|
-
export interface
|
|
171
|
+
export interface GetUserByResetHashRequest {
|
|
172
|
+
hash: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface GetUserBySignupInvitationHashRequest {
|
|
121
176
|
hash: string;
|
|
122
177
|
}
|
|
123
178
|
|
|
@@ -145,6 +200,10 @@ export interface LoginRequest {
|
|
|
145
200
|
loginPayload: LoginPayload;
|
|
146
201
|
}
|
|
147
202
|
|
|
203
|
+
export interface RequestAgreementRequest {
|
|
204
|
+
uuid: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
148
207
|
export interface SendPasswordResetLinkRequest {
|
|
149
208
|
uuid: string;
|
|
150
209
|
sendResetPasswordLinkPayload: SendResetPasswordLinkPayload;
|
|
@@ -155,6 +214,16 @@ export interface SetPasswordRequest {
|
|
|
155
214
|
setUserAccountPasswordPayload: SetUserAccountPasswordPayload;
|
|
156
215
|
}
|
|
157
216
|
|
|
217
|
+
export interface SetPasswordPolicyRequest {
|
|
218
|
+
uuid: string;
|
|
219
|
+
passwordPolicy: PasswordPolicy;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface SetSessionPolicyRequest {
|
|
223
|
+
uuid: string;
|
|
224
|
+
sessionPolicy: SessionPolicy;
|
|
225
|
+
}
|
|
226
|
+
|
|
158
227
|
export interface SetUserPasswordByConfirmationHashRequest {
|
|
159
228
|
hash: string;
|
|
160
229
|
setPasswordByConfirmationHashPayload: SetPasswordByConfirmationHashPayload;
|
|
@@ -174,6 +243,89 @@ export interface UpdateUserRequest {
|
|
|
174
243
|
*/
|
|
175
244
|
export class UserApi extends runtime.BaseAPI {
|
|
176
245
|
|
|
246
|
+
/**
|
|
247
|
+
* accept user account legal agreement.
|
|
248
|
+
*/
|
|
249
|
+
async acceptAgreementRaw(requestParameters: AcceptAgreementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
250
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
251
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling acceptAgreement.');
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
const queryParameters: any = {};
|
|
255
|
+
|
|
256
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
257
|
+
|
|
258
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
259
|
+
// oauth required
|
|
260
|
+
const token = this.configuration.accessToken;
|
|
261
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
262
|
+
if (tokenString) {
|
|
263
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const response = await this.request({
|
|
268
|
+
path: `/users/{uuid}/agreement/accept`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
269
|
+
method: 'POST',
|
|
270
|
+
headers: headerParameters,
|
|
271
|
+
query: queryParameters,
|
|
272
|
+
}, initOverrides);
|
|
273
|
+
|
|
274
|
+
return new runtime.VoidApiResponse(response);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* accept user account legal agreement.
|
|
279
|
+
*/
|
|
280
|
+
async acceptAgreement(requestParameters: AcceptAgreementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
281
|
+
await this.acceptAgreementRaw(requestParameters, initOverrides);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Attribute user password with signup hash.
|
|
286
|
+
*/
|
|
287
|
+
async acceptSignupInvitationRaw(requestParameters: AcceptSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
288
|
+
if (requestParameters.hash === null || requestParameters.hash === undefined) {
|
|
289
|
+
throw new runtime.RequiredError('hash','Required parameter requestParameters.hash was null or undefined when calling acceptSignupInvitation.');
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (requestParameters.newPasswordPayload === null || requestParameters.newPasswordPayload === undefined) {
|
|
293
|
+
throw new runtime.RequiredError('newPasswordPayload','Required parameter requestParameters.newPasswordPayload was null or undefined when calling acceptSignupInvitation.');
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const queryParameters: any = {};
|
|
297
|
+
|
|
298
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
299
|
+
|
|
300
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
301
|
+
|
|
302
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
303
|
+
// oauth required
|
|
304
|
+
const token = this.configuration.accessToken;
|
|
305
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
306
|
+
if (tokenString) {
|
|
307
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
const response = await this.request({
|
|
312
|
+
path: `/invitations/{hash}/accept`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
|
|
313
|
+
method: 'POST',
|
|
314
|
+
headers: headerParameters,
|
|
315
|
+
query: queryParameters,
|
|
316
|
+
body: NewPasswordPayloadToJSON(requestParameters.newPasswordPayload),
|
|
317
|
+
}, initOverrides);
|
|
318
|
+
|
|
319
|
+
return new runtime.VoidApiResponse(response);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Attribute user password with signup hash.
|
|
324
|
+
*/
|
|
325
|
+
async acceptSignupInvitation(requestParameters: AcceptSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
326
|
+
await this.acceptSignupInvitationRaw(requestParameters, initOverrides);
|
|
327
|
+
}
|
|
328
|
+
|
|
177
329
|
/**
|
|
178
330
|
* Activate user account.
|
|
179
331
|
*/
|
|
@@ -190,7 +342,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
190
342
|
// oauth required
|
|
191
343
|
const token = this.configuration.accessToken;
|
|
192
344
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
193
|
-
|
|
194
345
|
if (tokenString) {
|
|
195
346
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
196
347
|
}
|
|
@@ -235,7 +386,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
235
386
|
// oauth required
|
|
236
387
|
const token = this.configuration.accessToken;
|
|
237
388
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
238
|
-
|
|
239
389
|
if (tokenString) {
|
|
240
390
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
241
391
|
}
|
|
@@ -283,7 +433,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
283
433
|
// oauth required
|
|
284
434
|
const token = this.configuration.accessToken;
|
|
285
435
|
const tokenString = await token("OAuth2", ["account:user", "account:roleAttribution"]);
|
|
286
|
-
|
|
287
436
|
if (tokenString) {
|
|
288
437
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
289
438
|
}
|
|
@@ -328,7 +477,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
328
477
|
// oauth required
|
|
329
478
|
const token = this.configuration.accessToken;
|
|
330
479
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
331
|
-
|
|
332
480
|
if (tokenString) {
|
|
333
481
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
334
482
|
}
|
|
@@ -353,6 +501,87 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
353
501
|
return await response.value();
|
|
354
502
|
}
|
|
355
503
|
|
|
504
|
+
/**
|
|
505
|
+
* Create signup invitation for user.
|
|
506
|
+
*/
|
|
507
|
+
async createSignupInvitationRaw(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignupHash>> {
|
|
508
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
509
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling createSignupInvitation.');
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
const queryParameters: any = {};
|
|
513
|
+
|
|
514
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
515
|
+
|
|
516
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
517
|
+
// oauth required
|
|
518
|
+
const token = this.configuration.accessToken;
|
|
519
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
520
|
+
if (tokenString) {
|
|
521
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
const response = await this.request({
|
|
526
|
+
path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
527
|
+
method: 'POST',
|
|
528
|
+
headers: headerParameters,
|
|
529
|
+
query: queryParameters,
|
|
530
|
+
}, initOverrides);
|
|
531
|
+
|
|
532
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SignupHashFromJSON(jsonValue));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Create signup invitation for user.
|
|
537
|
+
*/
|
|
538
|
+
async createSignupInvitation(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignupHash> {
|
|
539
|
+
const response = await this.createSignupInvitationRaw(requestParameters, initOverrides);
|
|
540
|
+
return await response.value();
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Create a user account
|
|
545
|
+
*/
|
|
546
|
+
async createUserRaw(requestParameters: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserUuid>> {
|
|
547
|
+
if (requestParameters.createUserAccountPayload === null || requestParameters.createUserAccountPayload === undefined) {
|
|
548
|
+
throw new runtime.RequiredError('createUserAccountPayload','Required parameter requestParameters.createUserAccountPayload was null or undefined when calling createUser.');
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
const queryParameters: any = {};
|
|
552
|
+
|
|
553
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
554
|
+
|
|
555
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
556
|
+
|
|
557
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
558
|
+
// oauth required
|
|
559
|
+
const token = this.configuration.accessToken;
|
|
560
|
+
const tokenString = await token("OAuth2", ["account:user", "account:organization", "account:service"]);
|
|
561
|
+
if (tokenString) {
|
|
562
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
const response = await this.request({
|
|
567
|
+
path: `/users`,
|
|
568
|
+
method: 'POST',
|
|
569
|
+
headers: headerParameters,
|
|
570
|
+
query: queryParameters,
|
|
571
|
+
body: CreateUserAccountPayloadToJSON(requestParameters.createUserAccountPayload),
|
|
572
|
+
}, initOverrides);
|
|
573
|
+
|
|
574
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserUuidFromJSON(jsonValue));
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Create a user account
|
|
579
|
+
*/
|
|
580
|
+
async createUser(requestParameters: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserUuid> {
|
|
581
|
+
const response = await this.createUserRaw(requestParameters, initOverrides);
|
|
582
|
+
return await response.value();
|
|
583
|
+
}
|
|
584
|
+
|
|
356
585
|
/**
|
|
357
586
|
* Deactivate user account.
|
|
358
587
|
*/
|
|
@@ -369,7 +598,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
369
598
|
// oauth required
|
|
370
599
|
const token = this.configuration.accessToken;
|
|
371
600
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
372
|
-
|
|
373
601
|
if (tokenString) {
|
|
374
602
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
375
603
|
}
|
|
@@ -392,6 +620,44 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
392
620
|
await this.deactivateRaw(requestParameters, initOverrides);
|
|
393
621
|
}
|
|
394
622
|
|
|
623
|
+
/**
|
|
624
|
+
* Delete pending signup invitation for user.
|
|
625
|
+
*/
|
|
626
|
+
async deleteSignupInvitationRaw(requestParameters: DeleteSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
627
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
628
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling deleteSignupInvitation.');
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
const queryParameters: any = {};
|
|
632
|
+
|
|
633
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
634
|
+
|
|
635
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
636
|
+
// oauth required
|
|
637
|
+
const token = this.configuration.accessToken;
|
|
638
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
639
|
+
if (tokenString) {
|
|
640
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
const response = await this.request({
|
|
645
|
+
path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
646
|
+
method: 'DELETE',
|
|
647
|
+
headers: headerParameters,
|
|
648
|
+
query: queryParameters,
|
|
649
|
+
}, initOverrides);
|
|
650
|
+
|
|
651
|
+
return new runtime.VoidApiResponse(response);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Delete pending signup invitation for user.
|
|
656
|
+
*/
|
|
657
|
+
async deleteSignupInvitation(requestParameters: DeleteSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
658
|
+
await this.deleteSignupInvitationRaw(requestParameters, initOverrides);
|
|
659
|
+
}
|
|
660
|
+
|
|
395
661
|
/**
|
|
396
662
|
* delete user account sso.
|
|
397
663
|
*/
|
|
@@ -408,7 +674,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
408
674
|
// oauth required
|
|
409
675
|
const token = this.configuration.accessToken;
|
|
410
676
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
411
|
-
|
|
412
677
|
if (tokenString) {
|
|
413
678
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
414
679
|
}
|
|
@@ -431,6 +696,44 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
431
696
|
await this.deleteSsoRaw(requestParameters, initOverrides);
|
|
432
697
|
}
|
|
433
698
|
|
|
699
|
+
/**
|
|
700
|
+
* Delete a user account.
|
|
701
|
+
*/
|
|
702
|
+
async deleteUserAccountRaw(requestParameters: DeleteUserAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
703
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
704
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling deleteUserAccount.');
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
const queryParameters: any = {};
|
|
708
|
+
|
|
709
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
710
|
+
|
|
711
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
712
|
+
// oauth required
|
|
713
|
+
const token = this.configuration.accessToken;
|
|
714
|
+
const tokenString = await token("OAuth2", []);
|
|
715
|
+
if (tokenString) {
|
|
716
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
const response = await this.request({
|
|
721
|
+
path: `/users/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
722
|
+
method: 'DELETE',
|
|
723
|
+
headers: headerParameters,
|
|
724
|
+
query: queryParameters,
|
|
725
|
+
}, initOverrides);
|
|
726
|
+
|
|
727
|
+
return new runtime.VoidApiResponse(response);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Delete a user account.
|
|
732
|
+
*/
|
|
733
|
+
async deleteUserAccount(requestParameters: DeleteUserAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
734
|
+
await this.deleteUserAccountRaw(requestParameters, initOverrides);
|
|
735
|
+
}
|
|
736
|
+
|
|
434
737
|
/**
|
|
435
738
|
* Remove a role attribution for a user and organization
|
|
436
739
|
*/
|
|
@@ -455,7 +758,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
455
758
|
// oauth required
|
|
456
759
|
const token = this.configuration.accessToken;
|
|
457
760
|
const tokenString = await token("OAuth2", ["account:user", "account:roleAttribution"]);
|
|
458
|
-
|
|
459
761
|
if (tokenString) {
|
|
460
762
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
461
763
|
}
|
|
@@ -494,7 +796,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
494
796
|
// oauth required
|
|
495
797
|
const token = this.configuration.accessToken;
|
|
496
798
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
497
|
-
|
|
498
799
|
if (tokenString) {
|
|
499
800
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
500
801
|
}
|
|
@@ -517,6 +818,82 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
517
818
|
await this.deleteUserSessionsRaw(requestParameters, initOverrides);
|
|
518
819
|
}
|
|
519
820
|
|
|
821
|
+
/**
|
|
822
|
+
* Disable password login
|
|
823
|
+
*/
|
|
824
|
+
async disablePasswordLoginRaw(requestParameters: DisablePasswordLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
825
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
826
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling disablePasswordLogin.');
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
const queryParameters: any = {};
|
|
830
|
+
|
|
831
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
832
|
+
|
|
833
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
834
|
+
// oauth required
|
|
835
|
+
const token = this.configuration.accessToken;
|
|
836
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
837
|
+
if (tokenString) {
|
|
838
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
const response = await this.request({
|
|
843
|
+
path: `/users/{uuid}/disablePasswordLogin`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
844
|
+
method: 'POST',
|
|
845
|
+
headers: headerParameters,
|
|
846
|
+
query: queryParameters,
|
|
847
|
+
}, initOverrides);
|
|
848
|
+
|
|
849
|
+
return new runtime.VoidApiResponse(response);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Disable password login
|
|
854
|
+
*/
|
|
855
|
+
async disablePasswordLogin(requestParameters: DisablePasswordLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
856
|
+
await this.disablePasswordLoginRaw(requestParameters, initOverrides);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Enable password login
|
|
861
|
+
*/
|
|
862
|
+
async enablePasswordLoginRaw(requestParameters: EnablePasswordLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
863
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
864
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling enablePasswordLogin.');
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
const queryParameters: any = {};
|
|
868
|
+
|
|
869
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
870
|
+
|
|
871
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
872
|
+
// oauth required
|
|
873
|
+
const token = this.configuration.accessToken;
|
|
874
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
875
|
+
if (tokenString) {
|
|
876
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
const response = await this.request({
|
|
881
|
+
path: `/users/{uuid}/enablePasswordLogin`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
882
|
+
method: 'POST',
|
|
883
|
+
headers: headerParameters,
|
|
884
|
+
query: queryParameters,
|
|
885
|
+
}, initOverrides);
|
|
886
|
+
|
|
887
|
+
return new runtime.VoidApiResponse(response);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Enable password login
|
|
892
|
+
*/
|
|
893
|
+
async enablePasswordLogin(requestParameters: EnablePasswordLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
894
|
+
await this.enablePasswordLoginRaw(requestParameters, initOverrides);
|
|
895
|
+
}
|
|
896
|
+
|
|
520
897
|
/**
|
|
521
898
|
* Get user\'s owner organization
|
|
522
899
|
*/
|
|
@@ -533,7 +910,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
533
910
|
// oauth required
|
|
534
911
|
const token = this.configuration.accessToken;
|
|
535
912
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
536
|
-
|
|
537
913
|
if (tokenString) {
|
|
538
914
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
539
915
|
}
|
|
@@ -573,7 +949,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
573
949
|
// oauth required
|
|
574
950
|
const token = this.configuration.accessToken;
|
|
575
951
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
576
|
-
|
|
577
952
|
if (tokenString) {
|
|
578
953
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
579
954
|
}
|
|
@@ -613,7 +988,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
613
988
|
// oauth required
|
|
614
989
|
const token = this.configuration.accessToken;
|
|
615
990
|
const tokenString = await token("OAuth2", ["account:user", "account:roleAttribution"]);
|
|
616
|
-
|
|
617
991
|
if (tokenString) {
|
|
618
992
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
619
993
|
}
|
|
@@ -640,9 +1014,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
640
1014
|
/**
|
|
641
1015
|
* Get password info for a user based on unique hash.
|
|
642
1016
|
*/
|
|
643
|
-
async
|
|
1017
|
+
async getUserByResetHashRaw(requestParameters: GetUserByResetHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticationUserAccount>> {
|
|
644
1018
|
if (requestParameters.hash === null || requestParameters.hash === undefined) {
|
|
645
|
-
throw new runtime.RequiredError('hash','Required parameter requestParameters.hash was null or undefined when calling
|
|
1019
|
+
throw new runtime.RequiredError('hash','Required parameter requestParameters.hash was null or undefined when calling getUserByResetHash.');
|
|
646
1020
|
}
|
|
647
1021
|
|
|
648
1022
|
const queryParameters: any = {};
|
|
@@ -653,7 +1027,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
653
1027
|
// oauth required
|
|
654
1028
|
const token = this.configuration.accessToken;
|
|
655
1029
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
656
|
-
|
|
657
1030
|
if (tokenString) {
|
|
658
1031
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
659
1032
|
}
|
|
@@ -672,8 +1045,47 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
672
1045
|
/**
|
|
673
1046
|
* Get password info for a user based on unique hash.
|
|
674
1047
|
*/
|
|
675
|
-
async
|
|
676
|
-
const response = await this.
|
|
1048
|
+
async getUserByResetHash(requestParameters: GetUserByResetHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticationUserAccount> {
|
|
1049
|
+
const response = await this.getUserByResetHashRaw(requestParameters, initOverrides);
|
|
1050
|
+
return await response.value();
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Get user signup invitation information.
|
|
1055
|
+
*/
|
|
1056
|
+
async getUserBySignupInvitationHashRaw(requestParameters: GetUserBySignupInvitationHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticationUserAccount>> {
|
|
1057
|
+
if (requestParameters.hash === null || requestParameters.hash === undefined) {
|
|
1058
|
+
throw new runtime.RequiredError('hash','Required parameter requestParameters.hash was null or undefined when calling getUserBySignupInvitationHash.');
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
const queryParameters: any = {};
|
|
1062
|
+
|
|
1063
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1064
|
+
|
|
1065
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1066
|
+
// oauth required
|
|
1067
|
+
const token = this.configuration.accessToken;
|
|
1068
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
1069
|
+
if (tokenString) {
|
|
1070
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
const response = await this.request({
|
|
1075
|
+
path: `/invitations/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
|
|
1076
|
+
method: 'GET',
|
|
1077
|
+
headers: headerParameters,
|
|
1078
|
+
query: queryParameters,
|
|
1079
|
+
}, initOverrides);
|
|
1080
|
+
|
|
1081
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticationUserAccountFromJSON(jsonValue));
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Get user signup invitation information.
|
|
1086
|
+
*/
|
|
1087
|
+
async getUserBySignupInvitationHash(requestParameters: GetUserBySignupInvitationHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticationUserAccount> {
|
|
1088
|
+
const response = await this.getUserBySignupInvitationHashRaw(requestParameters, initOverrides);
|
|
677
1089
|
return await response.value();
|
|
678
1090
|
}
|
|
679
1091
|
|
|
@@ -693,7 +1105,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
693
1105
|
// oauth required
|
|
694
1106
|
const token = this.configuration.accessToken;
|
|
695
1107
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
696
|
-
|
|
697
1108
|
if (tokenString) {
|
|
698
1109
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
699
1110
|
}
|
|
@@ -733,7 +1144,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
733
1144
|
// oauth required
|
|
734
1145
|
const token = this.configuration.accessToken;
|
|
735
1146
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
736
|
-
|
|
737
1147
|
if (tokenString) {
|
|
738
1148
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
739
1149
|
}
|
|
@@ -773,7 +1183,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
773
1183
|
// oauth required
|
|
774
1184
|
const token = this.configuration.accessToken;
|
|
775
1185
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
776
|
-
|
|
777
1186
|
if (tokenString) {
|
|
778
1187
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
779
1188
|
}
|
|
@@ -828,7 +1237,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
828
1237
|
// oauth required
|
|
829
1238
|
const token = this.configuration.accessToken;
|
|
830
1239
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
831
|
-
|
|
832
1240
|
if (tokenString) {
|
|
833
1241
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
834
1242
|
}
|
|
@@ -870,7 +1278,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
870
1278
|
// oauth required
|
|
871
1279
|
const token = this.configuration.accessToken;
|
|
872
1280
|
const tokenString = await token("OAuth2", []);
|
|
873
|
-
|
|
874
1281
|
if (tokenString) {
|
|
875
1282
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
876
1283
|
}
|
|
@@ -895,6 +1302,44 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
895
1302
|
return await response.value();
|
|
896
1303
|
}
|
|
897
1304
|
|
|
1305
|
+
/**
|
|
1306
|
+
* request user account legal agreement.
|
|
1307
|
+
*/
|
|
1308
|
+
async requestAgreementRaw(requestParameters: RequestAgreementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1309
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1310
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling requestAgreement.');
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
const queryParameters: any = {};
|
|
1314
|
+
|
|
1315
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1316
|
+
|
|
1317
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1318
|
+
// oauth required
|
|
1319
|
+
const token = this.configuration.accessToken;
|
|
1320
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
1321
|
+
if (tokenString) {
|
|
1322
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
const response = await this.request({
|
|
1327
|
+
path: `/users/{uuid}/agreement/request`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1328
|
+
method: 'POST',
|
|
1329
|
+
headers: headerParameters,
|
|
1330
|
+
query: queryParameters,
|
|
1331
|
+
}, initOverrides);
|
|
1332
|
+
|
|
1333
|
+
return new runtime.VoidApiResponse(response);
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* request user account legal agreement.
|
|
1338
|
+
*/
|
|
1339
|
+
async requestAgreement(requestParameters: RequestAgreementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1340
|
+
await this.requestAgreementRaw(requestParameters, initOverrides);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
898
1343
|
/**
|
|
899
1344
|
* Sends an email or sms with a time limited unique link to reset user\'s password
|
|
900
1345
|
*/
|
|
@@ -917,7 +1362,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
917
1362
|
// oauth required
|
|
918
1363
|
const token = this.configuration.accessToken;
|
|
919
1364
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
920
|
-
|
|
921
1365
|
if (tokenString) {
|
|
922
1366
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
923
1367
|
}
|
|
@@ -963,7 +1407,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
963
1407
|
// oauth required
|
|
964
1408
|
const token = this.configuration.accessToken;
|
|
965
1409
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
966
|
-
|
|
967
1410
|
if (tokenString) {
|
|
968
1411
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
969
1412
|
}
|
|
@@ -987,6 +1430,96 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
987
1430
|
await this.setPasswordRaw(requestParameters, initOverrides);
|
|
988
1431
|
}
|
|
989
1432
|
|
|
1433
|
+
/**
|
|
1434
|
+
* set user account password policy
|
|
1435
|
+
*/
|
|
1436
|
+
async setPasswordPolicyRaw(requestParameters: SetPasswordPolicyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1437
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1438
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling setPasswordPolicy.');
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
if (requestParameters.passwordPolicy === null || requestParameters.passwordPolicy === undefined) {
|
|
1442
|
+
throw new runtime.RequiredError('passwordPolicy','Required parameter requestParameters.passwordPolicy was null or undefined when calling setPasswordPolicy.');
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
const queryParameters: any = {};
|
|
1446
|
+
|
|
1447
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1448
|
+
|
|
1449
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1450
|
+
|
|
1451
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1452
|
+
// oauth required
|
|
1453
|
+
const token = this.configuration.accessToken;
|
|
1454
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
1455
|
+
if (tokenString) {
|
|
1456
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
const response = await this.request({
|
|
1461
|
+
path: `/users/{uuid}/passwordPolicy`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1462
|
+
method: 'PUT',
|
|
1463
|
+
headers: headerParameters,
|
|
1464
|
+
query: queryParameters,
|
|
1465
|
+
body: PasswordPolicyToJSON(requestParameters.passwordPolicy),
|
|
1466
|
+
}, initOverrides);
|
|
1467
|
+
|
|
1468
|
+
return new runtime.VoidApiResponse(response);
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* set user account password policy
|
|
1473
|
+
*/
|
|
1474
|
+
async setPasswordPolicy(requestParameters: SetPasswordPolicyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1475
|
+
await this.setPasswordPolicyRaw(requestParameters, initOverrides);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Set user account session policy
|
|
1480
|
+
*/
|
|
1481
|
+
async setSessionPolicyRaw(requestParameters: SetSessionPolicyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1482
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1483
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling setSessionPolicy.');
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
if (requestParameters.sessionPolicy === null || requestParameters.sessionPolicy === undefined) {
|
|
1487
|
+
throw new runtime.RequiredError('sessionPolicy','Required parameter requestParameters.sessionPolicy was null or undefined when calling setSessionPolicy.');
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
const queryParameters: any = {};
|
|
1491
|
+
|
|
1492
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1493
|
+
|
|
1494
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1495
|
+
|
|
1496
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1497
|
+
// oauth required
|
|
1498
|
+
const token = this.configuration.accessToken;
|
|
1499
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
1500
|
+
if (tokenString) {
|
|
1501
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
const response = await this.request({
|
|
1506
|
+
path: `/users/{uuid}/sessionPolicy`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1507
|
+
method: 'PUT',
|
|
1508
|
+
headers: headerParameters,
|
|
1509
|
+
query: queryParameters,
|
|
1510
|
+
body: SessionPolicyToJSON(requestParameters.sessionPolicy),
|
|
1511
|
+
}, initOverrides);
|
|
1512
|
+
|
|
1513
|
+
return new runtime.VoidApiResponse(response);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Set user account session policy
|
|
1518
|
+
*/
|
|
1519
|
+
async setSessionPolicy(requestParameters: SetSessionPolicyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1520
|
+
await this.setSessionPolicyRaw(requestParameters, initOverrides);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
990
1523
|
/**
|
|
991
1524
|
* Set password for a user identified by a unique hash.
|
|
992
1525
|
*/
|
|
@@ -1009,7 +1542,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
1009
1542
|
// oauth required
|
|
1010
1543
|
const token = this.configuration.accessToken;
|
|
1011
1544
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
1012
|
-
|
|
1013
1545
|
if (tokenString) {
|
|
1014
1546
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1015
1547
|
}
|
|
@@ -1049,7 +1581,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
1049
1581
|
// oauth required
|
|
1050
1582
|
const token = this.configuration.accessToken;
|
|
1051
1583
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
1052
|
-
|
|
1053
1584
|
if (tokenString) {
|
|
1054
1585
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1055
1586
|
}
|
|
@@ -1094,7 +1625,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
1094
1625
|
// oauth required
|
|
1095
1626
|
const token = this.configuration.accessToken;
|
|
1096
1627
|
const tokenString = await token("OAuth2", ["account:user"]);
|
|
1097
|
-
|
|
1098
1628
|
if (tokenString) {
|
|
1099
1629
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1100
1630
|
}
|