@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/dist/runtime.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User account and session management
|
|
3
3
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: 6.7.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,11 +43,23 @@ export declare const DefaultConfig: Configuration;
|
|
|
43
43
|
*/
|
|
44
44
|
export declare class BaseAPI {
|
|
45
45
|
protected configuration: Configuration;
|
|
46
|
+
private static readonly jsonRegex;
|
|
46
47
|
private middleware;
|
|
47
48
|
constructor(configuration?: Configuration);
|
|
48
49
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
49
50
|
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
50
51
|
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
52
|
+
/**
|
|
53
|
+
* Check if the given MIME is a JSON MIME.
|
|
54
|
+
* JSON MIME examples:
|
|
55
|
+
* application/json
|
|
56
|
+
* application/json; charset=UTF8
|
|
57
|
+
* APPLICATION/JSON
|
|
58
|
+
* application/vnd.company+json
|
|
59
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
51
63
|
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
52
64
|
private createFetchParams;
|
|
53
65
|
private fetchApi;
|
|
@@ -63,9 +75,9 @@ export declare class ResponseError extends Error {
|
|
|
63
75
|
constructor(response: Response, msg?: string);
|
|
64
76
|
}
|
|
65
77
|
export declare class FetchError extends Error {
|
|
66
|
-
cause:
|
|
78
|
+
cause: Error;
|
|
67
79
|
name: "FetchError";
|
|
68
|
-
constructor(cause:
|
|
80
|
+
constructor(cause: Error, msg?: string);
|
|
69
81
|
}
|
|
70
82
|
export declare class RequiredError extends Error {
|
|
71
83
|
field: string;
|
|
@@ -78,24 +90,24 @@ export declare const COLLECTION_FORMATS: {
|
|
|
78
90
|
tsv: string;
|
|
79
91
|
pipes: string;
|
|
80
92
|
};
|
|
81
|
-
export
|
|
82
|
-
export
|
|
83
|
-
export
|
|
84
|
-
export
|
|
93
|
+
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
+
export type Json = any;
|
|
95
|
+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
+
export type HTTPHeaders = {
|
|
85
97
|
[key: string]: string;
|
|
86
98
|
};
|
|
87
|
-
export
|
|
99
|
+
export type HTTPQuery = {
|
|
88
100
|
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
89
101
|
};
|
|
90
|
-
export
|
|
91
|
-
export
|
|
102
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
+
export type HTTPRequestInit = {
|
|
92
104
|
headers?: HTTPHeaders;
|
|
93
105
|
method: HTTPMethod;
|
|
94
106
|
credentials?: RequestCredentials;
|
|
95
107
|
body?: HTTPBody;
|
|
96
108
|
};
|
|
97
|
-
export
|
|
98
|
-
export
|
|
109
|
+
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
+
export type InitOverrideFunction = (requestContext: {
|
|
99
111
|
init: HTTPRequestInit;
|
|
100
112
|
context: RequestOpts;
|
|
101
113
|
}) => Promise<RequestInit>;
|
package/dist/runtime.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* User account and session management
|
|
6
6
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document:
|
|
8
|
+
* The version of the OpenAPI document: 6.7.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -101,8 +101,13 @@ class BaseAPI {
|
|
|
101
101
|
})) || response;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
if (response
|
|
105
|
-
|
|
104
|
+
if (response === undefined) {
|
|
105
|
+
if (e instanceof Error) {
|
|
106
|
+
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
throw e;
|
|
110
|
+
}
|
|
106
111
|
}
|
|
107
112
|
}
|
|
108
113
|
for (const middleware of this.middleware) {
|
|
@@ -132,11 +137,27 @@ class BaseAPI {
|
|
|
132
137
|
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
133
138
|
return this.withMiddleware(...middlewares);
|
|
134
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Check if the given MIME is a JSON MIME.
|
|
142
|
+
* JSON MIME examples:
|
|
143
|
+
* application/json
|
|
144
|
+
* application/json; charset=UTF8
|
|
145
|
+
* APPLICATION/JSON
|
|
146
|
+
* application/vnd.company+json
|
|
147
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
148
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
149
|
+
*/
|
|
150
|
+
isJsonMime(mime) {
|
|
151
|
+
if (!mime) {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
155
|
+
}
|
|
135
156
|
request(context, initOverrides) {
|
|
136
157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
158
|
const { url, init } = yield this.createFetchParams(context, initOverrides);
|
|
138
159
|
const response = yield this.fetchApi(url, init);
|
|
139
|
-
if (response.status >= 200 && response.status < 300) {
|
|
160
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
140
161
|
return response;
|
|
141
162
|
}
|
|
142
163
|
throw new ResponseError(response, 'Response returned an error code');
|
|
@@ -162,15 +183,23 @@ class BaseAPI {
|
|
|
162
183
|
body: context.body,
|
|
163
184
|
credentials: this.configuration.credentials,
|
|
164
185
|
};
|
|
165
|
-
const
|
|
186
|
+
const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
|
|
166
187
|
init: initParams,
|
|
167
188
|
context,
|
|
168
189
|
})));
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
190
|
+
let body;
|
|
191
|
+
if (isFormData(overriddenInit.body)
|
|
192
|
+
|| (overriddenInit.body instanceof URLSearchParams)
|
|
193
|
+
|| isBlob(overriddenInit.body)) {
|
|
194
|
+
body = overriddenInit.body;
|
|
195
|
+
}
|
|
196
|
+
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
197
|
+
body = JSON.stringify(overriddenInit.body);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
body = overriddenInit.body;
|
|
201
|
+
}
|
|
202
|
+
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
174
203
|
return { url, init };
|
|
175
204
|
});
|
|
176
205
|
}
|
|
@@ -186,6 +215,7 @@ class BaseAPI {
|
|
|
186
215
|
}
|
|
187
216
|
}
|
|
188
217
|
exports.BaseAPI = BaseAPI;
|
|
218
|
+
BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
189
219
|
;
|
|
190
220
|
function isBlob(value) {
|
|
191
221
|
return typeof Blob !== 'undefined' && value instanceof Blob;
|
package/package.json
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/account-service-sdk-typescript",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
|
|
5
|
-
"author": "
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"typings": "./dist/index.d.ts",
|
|
8
|
-
"license": "MIT",
|
|
5
|
+
"author": "OpenAPI-Generator",
|
|
9
6
|
"repository": {
|
|
10
7
|
"type": "git",
|
|
11
|
-
"url": "
|
|
8
|
+
"url": "https://github.com/kronostechnologies/account-service-sdk-typescript.git"
|
|
12
9
|
},
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"typings": "./dist/index.d.ts",
|
|
12
|
+
"module": "./dist/esm/index.js",
|
|
13
|
+
"sideEffects": false,
|
|
13
14
|
"scripts": {
|
|
14
|
-
"build": "tsc"
|
|
15
|
+
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
16
|
+
"prepare": "npm run build"
|
|
15
17
|
},
|
|
16
18
|
"devDependencies": {
|
|
17
|
-
"typescript": "^
|
|
18
|
-
}
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
|
-
"packageManager": "yarn@3.0.1"
|
|
19
|
+
"typescript": "^4.0"
|
|
20
|
+
}
|
|
23
21
|
}
|
package/src/apis/OAuthApi.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).
|
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
ErrorPayload,
|
|
20
20
|
OAuthClient,
|
|
21
21
|
OAuthClientCreated,
|
|
22
|
-
} from '../models';
|
|
22
|
+
} from '../models/index';
|
|
23
23
|
import {
|
|
24
24
|
CreateOrUpdateOAuthClientPayloadFromJSON,
|
|
25
25
|
CreateOrUpdateOAuthClientPayloadToJSON,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
OAuthClientToJSON,
|
|
30
30
|
OAuthClientCreatedFromJSON,
|
|
31
31
|
OAuthClientCreatedToJSON,
|
|
32
|
-
} from '../models';
|
|
32
|
+
} from '../models/index';
|
|
33
33
|
|
|
34
34
|
export interface CreateOrUpdateOAuthClientRequest {
|
|
35
35
|
clientId: string;
|
|
@@ -67,7 +67,6 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
67
67
|
// oauth required
|
|
68
68
|
const token = this.configuration.accessToken;
|
|
69
69
|
const tokenString = await token("OAuth2", ["account:oauthClient"]);
|
|
70
|
-
|
|
71
70
|
if (tokenString) {
|
|
72
71
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
73
72
|
}
|
|
@@ -108,7 +107,6 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
108
107
|
// oauth required
|
|
109
108
|
const token = this.configuration.accessToken;
|
|
110
109
|
const tokenString = await token("OAuth2", ["account:oauthClient"]);
|
|
111
|
-
|
|
112
110
|
if (tokenString) {
|
|
113
111
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
114
112
|
}
|
|
@@ -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).
|
|
@@ -31,7 +31,7 @@ import type {
|
|
|
31
31
|
UpdateParentOrganizationPayload,
|
|
32
32
|
UpsertServicePayload,
|
|
33
33
|
UserAccountSearchResult,
|
|
34
|
-
} from '../models';
|
|
34
|
+
} from '../models/index';
|
|
35
35
|
import {
|
|
36
36
|
CreateOrUpdateOrganizationPayloadFromJSON,
|
|
37
37
|
CreateOrUpdateOrganizationPayloadToJSON,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
UpsertServicePayloadToJSON,
|
|
66
66
|
UserAccountSearchResultFromJSON,
|
|
67
67
|
UserAccountSearchResultToJSON,
|
|
68
|
-
} from '../models';
|
|
68
|
+
} from '../models/index';
|
|
69
69
|
|
|
70
70
|
export interface AddServiceRequest {
|
|
71
71
|
uuid: string;
|
|
@@ -123,6 +123,11 @@ export interface ListOrganizationRequest {
|
|
|
123
123
|
pageToken?: string;
|
|
124
124
|
parent?: string;
|
|
125
125
|
query?: string;
|
|
126
|
+
withServiceProfileFor?: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface ListOrganizationLinkedUsersRequest {
|
|
130
|
+
uuid: string;
|
|
126
131
|
}
|
|
127
132
|
|
|
128
133
|
export interface ListOrganizationSsoProvidersRequest {
|
|
@@ -195,7 +200,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
195
200
|
// oauth required
|
|
196
201
|
const token = this.configuration.accessToken;
|
|
197
202
|
const tokenString = await token("OAuth2", ["account:organization", "account:service"]);
|
|
198
|
-
|
|
199
203
|
if (tokenString) {
|
|
200
204
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
201
205
|
}
|
|
@@ -241,7 +245,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
241
245
|
// oauth required
|
|
242
246
|
const token = this.configuration.accessToken;
|
|
243
247
|
const tokenString = await token("OAuth2", ["account:organization"]);
|
|
244
|
-
|
|
245
248
|
if (tokenString) {
|
|
246
249
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
247
250
|
}
|
|
@@ -292,7 +295,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
292
295
|
// oauth required
|
|
293
296
|
const token = this.configuration.accessToken;
|
|
294
297
|
const tokenString = await token("OAuth2", ["account:organization", "account:role"]);
|
|
295
|
-
|
|
296
298
|
if (tokenString) {
|
|
297
299
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
298
300
|
}
|
|
@@ -335,7 +337,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
335
337
|
// oauth required
|
|
336
338
|
const token = this.configuration.accessToken;
|
|
337
339
|
const tokenString = await token("OAuth2", ["account:organization"]);
|
|
338
|
-
|
|
339
340
|
if (tokenString) {
|
|
340
341
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
341
342
|
}
|
|
@@ -382,7 +383,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
382
383
|
// oauth required
|
|
383
384
|
const token = this.configuration.accessToken;
|
|
384
385
|
const tokenString = await token("OAuth2", ["account:organization", "account:role"]);
|
|
385
|
-
|
|
386
386
|
if (tokenString) {
|
|
387
387
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
388
388
|
}
|
|
@@ -437,7 +437,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
437
437
|
// oauth required
|
|
438
438
|
const token = this.configuration.accessToken;
|
|
439
439
|
const tokenString = await token("OAuth2", ["account:organization", "account:service"]);
|
|
440
|
-
|
|
441
440
|
if (tokenString) {
|
|
442
441
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
443
442
|
}
|
|
@@ -477,7 +476,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
477
476
|
// oauth required
|
|
478
477
|
const token = this.configuration.accessToken;
|
|
479
478
|
const tokenString = await token("OAuth2", ["account:organization"]);
|
|
480
|
-
|
|
481
479
|
if (tokenString) {
|
|
482
480
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
483
481
|
}
|
|
@@ -516,7 +514,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
516
514
|
// oauth required
|
|
517
515
|
const token = this.configuration.accessToken;
|
|
518
516
|
const tokenString = await token("OAuth2", ["account:organization"]);
|
|
519
|
-
|
|
520
517
|
if (tokenString) {
|
|
521
518
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
522
519
|
}
|
|
@@ -564,7 +561,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
564
561
|
// oauth required
|
|
565
562
|
const token = this.configuration.accessToken;
|
|
566
563
|
const tokenString = await token("OAuth2", ["account:organization", "account:service"]);
|
|
567
|
-
|
|
568
564
|
if (tokenString) {
|
|
569
565
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
570
566
|
}
|
|
@@ -604,7 +600,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
604
600
|
// oauth required
|
|
605
601
|
const token = this.configuration.accessToken;
|
|
606
602
|
const tokenString = await token("OAuth2", ["account:organization", "account:roleAttribution"]);
|
|
607
|
-
|
|
608
603
|
if (tokenString) {
|
|
609
604
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
610
605
|
}
|
|
@@ -654,13 +649,16 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
654
649
|
queryParameters['query'] = requestParameters.query;
|
|
655
650
|
}
|
|
656
651
|
|
|
652
|
+
if (requestParameters.withServiceProfileFor !== undefined) {
|
|
653
|
+
queryParameters['withServiceProfileFor'] = requestParameters.withServiceProfileFor;
|
|
654
|
+
}
|
|
655
|
+
|
|
657
656
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
658
657
|
|
|
659
658
|
if (this.configuration && this.configuration.accessToken) {
|
|
660
659
|
// oauth required
|
|
661
660
|
const token = this.configuration.accessToken;
|
|
662
661
|
const tokenString = await token("OAuth2", ["account:organization"]);
|
|
663
|
-
|
|
664
662
|
if (tokenString) {
|
|
665
663
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
666
664
|
}
|
|
@@ -684,6 +682,45 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
684
682
|
return await response.value();
|
|
685
683
|
}
|
|
686
684
|
|
|
685
|
+
/**
|
|
686
|
+
* List users linked to an organization
|
|
687
|
+
*/
|
|
688
|
+
async listOrganizationLinkedUsersRaw(requestParameters: ListOrganizationLinkedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserAccountSearchResult>>> {
|
|
689
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
690
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling listOrganizationLinkedUsers.');
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
const queryParameters: any = {};
|
|
694
|
+
|
|
695
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
696
|
+
|
|
697
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
698
|
+
// oauth required
|
|
699
|
+
const token = this.configuration.accessToken;
|
|
700
|
+
const tokenString = await token("OAuth2", ["account:organization", "account:user"]);
|
|
701
|
+
if (tokenString) {
|
|
702
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
const response = await this.request({
|
|
707
|
+
path: `/organizations/{uuid}/linkedUsers`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
708
|
+
method: 'GET',
|
|
709
|
+
headers: headerParameters,
|
|
710
|
+
query: queryParameters,
|
|
711
|
+
}, initOverrides);
|
|
712
|
+
|
|
713
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserAccountSearchResultFromJSON));
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* List users linked to an organization
|
|
718
|
+
*/
|
|
719
|
+
async listOrganizationLinkedUsers(requestParameters: ListOrganizationLinkedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserAccountSearchResult>> {
|
|
720
|
+
const response = await this.listOrganizationLinkedUsersRaw(requestParameters, initOverrides);
|
|
721
|
+
return await response.value();
|
|
722
|
+
}
|
|
723
|
+
|
|
687
724
|
/**
|
|
688
725
|
* List SSO Providers available for an organization
|
|
689
726
|
*/
|
|
@@ -700,7 +737,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
700
737
|
// oauth required
|
|
701
738
|
const token = this.configuration.accessToken;
|
|
702
739
|
const tokenString = await token("OAuth2", ["account:organization"]);
|
|
703
|
-
|
|
704
740
|
if (tokenString) {
|
|
705
741
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
706
742
|
}
|
|
@@ -740,7 +776,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
740
776
|
// oauth required
|
|
741
777
|
const token = this.configuration.accessToken;
|
|
742
778
|
const tokenString = await token("OAuth2", ["account:organization", "account:user"]);
|
|
743
|
-
|
|
744
779
|
if (tokenString) {
|
|
745
780
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
746
781
|
}
|
|
@@ -784,7 +819,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
784
819
|
// oauth required
|
|
785
820
|
const token = this.configuration.accessToken;
|
|
786
821
|
const tokenString = await token("OAuth2", ["account:organization", "account:service"]);
|
|
787
|
-
|
|
788
822
|
if (tokenString) {
|
|
789
823
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
790
824
|
}
|
|
@@ -831,7 +865,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
831
865
|
// oauth required
|
|
832
866
|
const token = this.configuration.accessToken;
|
|
833
867
|
const tokenString = await token("OAuth2", ["account:organization", "account:service"]);
|
|
834
|
-
|
|
835
868
|
if (tokenString) {
|
|
836
869
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
837
870
|
}
|
|
@@ -882,7 +915,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
882
915
|
// oauth required
|
|
883
916
|
const token = this.configuration.accessToken;
|
|
884
917
|
const tokenString = await token("OAuth2", ["account:organization", "account:service"]);
|
|
885
|
-
|
|
886
918
|
if (tokenString) {
|
|
887
919
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
888
920
|
}
|
|
@@ -939,7 +971,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
939
971
|
// oauth required
|
|
940
972
|
const token = this.configuration.accessToken;
|
|
941
973
|
const tokenString = await token("OAuth2", ["account:organization", "account:service"]);
|
|
942
|
-
|
|
943
974
|
if (tokenString) {
|
|
944
975
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
945
976
|
}
|
|
@@ -985,7 +1016,6 @@ export class OrganizationApi extends runtime.BaseAPI {
|
|
|
985
1016
|
// oauth required
|
|
986
1017
|
const token = this.configuration.accessToken;
|
|
987
1018
|
const tokenString = await token("OAuth2", ["account:organization"]);
|
|
988
|
-
|
|
989
1019
|
if (tokenString) {
|
|
990
1020
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
991
1021
|
}
|
|
@@ -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).
|
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
CreateOrUpdatePermissionPayload,
|
|
19
19
|
ErrorPayload,
|
|
20
20
|
PermissionCreated,
|
|
21
|
-
} from '../models';
|
|
21
|
+
} from '../models/index';
|
|
22
22
|
import {
|
|
23
23
|
CreateOrUpdatePermissionPayloadFromJSON,
|
|
24
24
|
CreateOrUpdatePermissionPayloadToJSON,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
ErrorPayloadToJSON,
|
|
27
27
|
PermissionCreatedFromJSON,
|
|
28
28
|
PermissionCreatedToJSON,
|
|
29
|
-
} from '../models';
|
|
29
|
+
} from '../models/index';
|
|
30
30
|
|
|
31
31
|
export interface CreateOrUpdatePermissionRequest {
|
|
32
32
|
code: string;
|
|
@@ -60,7 +60,6 @@ export class PermissionApi extends runtime.BaseAPI {
|
|
|
60
60
|
// oauth required
|
|
61
61
|
const token = this.configuration.accessToken;
|
|
62
62
|
const tokenString = await token("OAuth2", ["account:permission"]);
|
|
63
|
-
|
|
64
63
|
if (tokenString) {
|
|
65
64
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
66
65
|
}
|
package/src/apis/RoleApi.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,13 +17,13 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ErrorPayload,
|
|
19
19
|
Role,
|
|
20
|
-
} from '../models';
|
|
20
|
+
} from '../models/index';
|
|
21
21
|
import {
|
|
22
22
|
ErrorPayloadFromJSON,
|
|
23
23
|
ErrorPayloadToJSON,
|
|
24
24
|
RoleFromJSON,
|
|
25
25
|
RoleToJSON,
|
|
26
|
-
} from '../models';
|
|
26
|
+
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface GetRoleRequest {
|
|
29
29
|
uuid: string;
|
|
@@ -50,7 +50,6 @@ export class RoleApi extends runtime.BaseAPI {
|
|
|
50
50
|
// oauth required
|
|
51
51
|
const token = this.configuration.accessToken;
|
|
52
52
|
const tokenString = await token("OAuth2", ["account:role"]);
|
|
53
|
-
|
|
54
53
|
if (tokenString) {
|
|
55
54
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
56
55
|
}
|
|
@@ -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).
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
ServiceAccountUpdateSchema,
|
|
24
24
|
ServiceAccountUuidSchema,
|
|
25
25
|
UserAccountRoleAttributions,
|
|
26
|
-
} from '../models';
|
|
26
|
+
} from '../models/index';
|
|
27
27
|
import {
|
|
28
28
|
ApplyPermissionsPayloadFromJSON,
|
|
29
29
|
ApplyPermissionsPayloadToJSON,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
ServiceAccountUuidSchemaToJSON,
|
|
42
42
|
UserAccountRoleAttributionsFromJSON,
|
|
43
43
|
UserAccountRoleAttributionsToJSON,
|
|
44
|
-
} from '../models';
|
|
44
|
+
} from '../models/index';
|
|
45
45
|
|
|
46
46
|
export interface AddServiceAccountRoleAttributionRequest {
|
|
47
47
|
uuid: string;
|
|
@@ -110,7 +110,6 @@ export class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
110
110
|
// oauth required
|
|
111
111
|
const token = this.configuration.accessToken;
|
|
112
112
|
const tokenString = await token("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
113
|
-
|
|
114
113
|
if (tokenString) {
|
|
115
114
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
116
115
|
}
|
|
@@ -155,7 +154,6 @@ export class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
155
154
|
// oauth required
|
|
156
155
|
const token = this.configuration.accessToken;
|
|
157
156
|
const tokenString = await token("OAuth2", ["account:serviceAccount"]);
|
|
158
|
-
|
|
159
157
|
if (tokenString) {
|
|
160
158
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
161
159
|
}
|
|
@@ -198,7 +196,6 @@ export class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
198
196
|
// oauth required
|
|
199
197
|
const token = this.configuration.accessToken;
|
|
200
198
|
const tokenString = await token("OAuth2", ["account:serviceAccount"]);
|
|
201
|
-
|
|
202
199
|
if (tokenString) {
|
|
203
200
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
204
201
|
}
|
|
@@ -247,7 +244,6 @@ export class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
247
244
|
// oauth required
|
|
248
245
|
const token = this.configuration.accessToken;
|
|
249
246
|
const tokenString = await token("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
250
|
-
|
|
251
247
|
if (tokenString) {
|
|
252
248
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
253
249
|
}
|
|
@@ -286,7 +282,6 @@ export class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
286
282
|
// oauth required
|
|
287
283
|
const token = this.configuration.accessToken;
|
|
288
284
|
const tokenString = await token("OAuth2", ["account:serviceAccount"]);
|
|
289
|
-
|
|
290
285
|
if (tokenString) {
|
|
291
286
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
292
287
|
}
|
|
@@ -326,7 +321,6 @@ export class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
326
321
|
// oauth required
|
|
327
322
|
const token = this.configuration.accessToken;
|
|
328
323
|
const tokenString = await token("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
329
|
-
|
|
330
324
|
if (tokenString) {
|
|
331
325
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
332
326
|
}
|
|
@@ -366,7 +360,6 @@ export class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
366
360
|
// oauth required
|
|
367
361
|
const token = this.configuration.accessToken;
|
|
368
362
|
const tokenString = await token("OAuth2", ["account:serviceAccount"]);
|
|
369
|
-
|
|
370
363
|
if (tokenString) {
|
|
371
364
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
372
365
|
}
|
|
@@ -412,7 +405,6 @@ export class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
412
405
|
// oauth required
|
|
413
406
|
const token = this.configuration.accessToken;
|
|
414
407
|
const tokenString = await token("OAuth2", ["account:serviceAccount"]);
|
|
415
|
-
|
|
416
408
|
if (tokenString) {
|
|
417
409
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
418
410
|
}
|