authing_ruby 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/authing_ruby.gemspec +30 -0
- data/lib/authing_ruby/GraphQLAPI.rb +151 -0
- data/lib/authing_ruby/authentication/AuthenticationClient.rb +801 -0
- data/lib/authing_ruby/authentication/AuthenticationTokenProvider.rb +42 -0
- data/lib/authing_ruby/authentication/BaseAuthenticationClient.rb +28 -0
- data/lib/authing_ruby/common/GraphqlClient.rb +39 -0
- data/lib/authing_ruby/common/HttpClient.rb +247 -0
- data/lib/authing_ruby/common/PublicKeyManager.rb +42 -0
- data/lib/authing_ruby/graphql/mutations/bindPhone.gql +53 -0
- data/lib/authing_ruby/graphql/mutations/createUser.gql +54 -0
- data/lib/authing_ruby/graphql/mutations/deleteUser.gql +6 -0
- data/lib/authing_ruby/graphql/mutations/deleteUsers.gql +6 -0
- data/lib/authing_ruby/graphql/mutations/loginByEmail.gql +54 -0
- data/lib/authing_ruby/graphql/mutations/loginByPhoneCode.gql +54 -0
- data/lib/authing_ruby/graphql/mutations/loginByPhonePassword.gql +54 -0
- data/lib/authing_ruby/graphql/mutations/loginByUsername.gql +54 -0
- data/lib/authing_ruby/graphql/mutations/refreshAccessToken.gql +7 -0
- data/lib/authing_ruby/graphql/mutations/registerByEmail.gql +54 -0
- data/lib/authing_ruby/graphql/mutations/registerByPhoneCode.gql +54 -0
- data/lib/authing_ruby/graphql/mutations/registerByUsername.gql +54 -0
- data/lib/authing_ruby/graphql/mutations/resetPassword.gql +6 -0
- data/lib/authing_ruby/graphql/mutations/sendEmail.gql +6 -0
- data/lib/authing_ruby/graphql/mutations/updatePassword.gql +53 -0
- data/lib/authing_ruby/graphql/mutations/updateUser.gql +54 -0
- data/lib/authing_ruby/graphql/queries/accessToken.gql +7 -0
- data/lib/authing_ruby/graphql/queries/checkLoginStatus.gql +14 -0
- data/lib/authing_ruby/graphql/queries/checkPasswordStrength.gql +6 -0
- data/lib/authing_ruby/graphql/queries/findUser.gql +64 -0
- data/lib/authing_ruby/graphql/queries/isUserExists.gql +13 -0
- data/lib/authing_ruby/graphql/queries/user.gql +63 -0
- data/lib/authing_ruby/graphql/queries/users.gql +57 -0
- data/lib/authing_ruby/management/AclManagementClient.rb +47 -0
- data/lib/authing_ruby/management/ApplicationsManagementClient.rb +79 -0
- data/lib/authing_ruby/management/ManagementClient.rb +66 -0
- data/lib/authing_ruby/management/ManagementTokenProvider.rb +92 -0
- data/lib/authing_ruby/management/RolesManagementClient.rb +38 -0
- data/lib/authing_ruby/management/UserpoolManagementClient.rb +15 -0
- data/lib/authing_ruby/management/UsersManagementClient.rb +161 -0
- data/lib/authing_ruby/management/WhitelistManagementClient.rb +1 -0
- data/lib/authing_ruby/test/RSA.rb +18 -0
- data/lib/authing_ruby/test/helper.rb +15 -0
- data/lib/authing_ruby/test/js_sdk_test/1.buildAuthorizeUrl.js +43 -0
- data/lib/authing_ruby/test/js_sdk_test/2.buildAuthorizeUrl_PKCE.js +47 -0
- data/lib/authing_ruby/test/js_sdk_test/README.md +5 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/CONTRIBUTION.md +23 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/LICENSE +21 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/README.md +303 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/browser/index.min.js +2 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/browser/index.min.js.LICENSE.txt +91 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/index.d.ts +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/index.js +20 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationClient.d.ts +1078 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationClient.js +2801 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationTokenProvider.d.ts +13 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationTokenProvider.js +56 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/BaseAuthenticationClient.d.ts +6 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/BaseAuthenticationClient.js +31 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/EnterpriseAuthenticationClient.d.ts +92 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/EnterpriseAuthenticationClient.js +250 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/MfaAuthenticationClient.d.ts +303 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/MfaAuthenticationClient.js +665 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient.d.ts +232 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient.js +619 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/SocialAuthenticationClient.d.ts +100 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/SocialAuthenticationClient.js +179 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/types.d.ts +331 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/types.js +69 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/GraphqlClient.d.ts +14 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/GraphqlClient.js +125 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/HttpClient.d.ts +19 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/HttpClient.js +149 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/PublicKeyManager.d.ts +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/PublicKeyManager.js +81 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/graphqlapi.d.ts +110 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/graphqlapi.js +1812 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AclManagementClient.d.ts +236 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AclManagementClient.js +863 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AgreementManagementClient.d.ts +65 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AgreementManagementClient.js +195 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ApplicationsManagementClient.d.ts +216 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ApplicationsManagementClient.js +531 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/GroupsManagementClient.d.ts +184 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/GroupsManagementClient.js +386 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/MFAManagementClient.d.ts +58 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/MFAManagementClient.js +126 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementClient.d.ts +74 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementClient.js +190 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementTokenProvider.d.ts +39 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementTokenProvider.js +159 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/OrgManagementClient.d.ts +488 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/OrgManagementClient.js +772 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/PoliciesManagementClient.d.ts +304 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/PoliciesManagementClient.js +512 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/RolesManagementClient.d.ts +291 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/RolesManagementClient.js +676 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/StatisticsManagementClient.d.ts +56 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/StatisticsManagementClient.js +198 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UdfManagementClient.d.ts +146 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UdfManagementClient.js +264 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserActionManagementClient.d.ts +44 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserActionManagementClient.js +106 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserpoolManagementClient.d.ts +142 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserpoolManagementClient.js +241 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UsersManagementClient.d.ts +753 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UsersManagementClient.js +1114 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/WhitelistManagementClient.d.ts +114 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/WhitelistManagementClient.js +259 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/types.d.ts +982 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/types.js +96 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/platform/express/index.d.ts +30 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/platform/express/index.js +126 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/testing-helper.d.ts +31 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/testing-helper.js +67 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.js +343 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/version.d.ts +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/version.js +5 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/graphql.v2.d.ts +5612 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/graphql.v2.js +240 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/index.d.ts +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/index.js +3 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/index.d.ts +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/index.js +8 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationClient.d.ts +1078 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationClient.js +2795 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationTokenProvider.d.ts +13 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationTokenProvider.js +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/BaseAuthenticationClient.d.ts +6 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/BaseAuthenticationClient.js +28 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/EnterpriseAuthenticationClient.d.ts +92 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/EnterpriseAuthenticationClient.js +247 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/MfaAuthenticationClient.d.ts +303 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/MfaAuthenticationClient.js +662 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/QrCodeAuthenticationClient.d.ts +232 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/QrCodeAuthenticationClient.js +616 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/SocialAuthenticationClient.d.ts +100 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/SocialAuthenticationClient.js +176 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/types.d.ts +331 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/types.js +66 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/GraphqlClient.d.ts +14 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/GraphqlClient.js +119 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/HttpClient.d.ts +19 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/HttpClient.js +143 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/PublicKeyManager.d.ts +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/PublicKeyManager.js +78 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/graphqlapi.d.ts +110 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/graphqlapi.js +1809 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AclManagementClient.d.ts +236 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AclManagementClient.js +860 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AgreementManagementClient.d.ts +65 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AgreementManagementClient.js +192 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ApplicationsManagementClient.d.ts +216 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ApplicationsManagementClient.js +528 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/GroupsManagementClient.d.ts +184 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/GroupsManagementClient.js +383 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/MFAManagementClient.d.ts +58 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/MFAManagementClient.js +123 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementClient.d.ts +74 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementClient.js +184 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementTokenProvider.d.ts +39 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementTokenProvider.js +153 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/OrgManagementClient.d.ts +488 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/OrgManagementClient.js +750 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/PoliciesManagementClient.d.ts +304 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/PoliciesManagementClient.js +509 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/RolesManagementClient.d.ts +291 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/RolesManagementClient.js +673 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/StatisticsManagementClient.d.ts +56 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/StatisticsManagementClient.js +195 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UdfManagementClient.d.ts +146 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UdfManagementClient.js +261 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserActionManagementClient.d.ts +44 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserActionManagementClient.js +103 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserpoolManagementClient.d.ts +142 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserpoolManagementClient.js +238 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UsersManagementClient.d.ts +753 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UsersManagementClient.js +1111 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/WhitelistManagementClient.d.ts +114 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/WhitelistManagementClient.js +256 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/types.d.ts +982 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/types.js +93 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/platform/express/index.d.ts +30 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/platform/express/index.js +123 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/testing-helper.d.ts +31 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/testing-helper.js +62 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.js +336 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/version.d.ts +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/version.js +2 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/graphql.v2.d.ts +5612 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/graphql.v2.js +237 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/index.d.ts +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/index.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/index.d.ts +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/index.js +30 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationClient.d.ts +1078 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationClient.js +2811 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationTokenProvider.d.ts +13 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationTokenProvider.js +66 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/BaseAuthenticationClient.d.ts +6 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/BaseAuthenticationClient.js +41 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/EnterpriseAuthenticationClient.d.ts +92 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/EnterpriseAuthenticationClient.js +260 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/MfaAuthenticationClient.d.ts +303 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/MfaAuthenticationClient.js +675 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/QrCodeAuthenticationClient.d.ts +232 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/QrCodeAuthenticationClient.js +629 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/SocialAuthenticationClient.d.ts +100 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/SocialAuthenticationClient.js +189 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/types.d.ts +331 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/types.js +79 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/GraphqlClient.d.ts +14 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/GraphqlClient.js +135 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/HttpClient.d.ts +19 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/HttpClient.js +159 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/PublicKeyManager.d.ts +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/PublicKeyManager.js +91 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/graphqlapi.d.ts +110 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/graphqlapi.js +1822 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AclManagementClient.d.ts +236 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AclManagementClient.js +873 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AgreementManagementClient.d.ts +65 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AgreementManagementClient.js +205 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ApplicationsManagementClient.d.ts +216 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ApplicationsManagementClient.js +541 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/GroupsManagementClient.d.ts +184 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/GroupsManagementClient.js +396 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/MFAManagementClient.d.ts +58 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/MFAManagementClient.js +136 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementClient.d.ts +74 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementClient.js +200 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementTokenProvider.d.ts +39 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementTokenProvider.js +169 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/OrgManagementClient.d.ts +488 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/OrgManagementClient.js +782 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/PoliciesManagementClient.d.ts +304 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/PoliciesManagementClient.js +522 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/RolesManagementClient.d.ts +291 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/RolesManagementClient.js +686 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/StatisticsManagementClient.d.ts +56 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/StatisticsManagementClient.js +208 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UdfManagementClient.d.ts +146 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UdfManagementClient.js +274 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserActionManagementClient.d.ts +44 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserActionManagementClient.js +116 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserpoolManagementClient.d.ts +142 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserpoolManagementClient.js +251 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UsersManagementClient.d.ts +753 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UsersManagementClient.js +1124 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/WhitelistManagementClient.d.ts +114 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/WhitelistManagementClient.js +269 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/types.d.ts +982 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/types.js +106 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/platform/express/index.d.ts +30 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/platform/express/index.js +136 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/testing-helper.d.ts +31 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/testing-helper.js +77 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.js +353 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/version.d.ts +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/version.js +15 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/graphql.v2.d.ts +5612 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/graphql.v2.js +250 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/index.d.ts +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/index.js +13 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build-doc.js +520 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/CHANGELOG.md +413 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/LICENSE +19 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/README.md +709 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/UPGRADE_GUIDE.md +162 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.js +1715 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.map +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.min.js +3 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.min.map +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/index.d.ts +157 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/index.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/README.md +37 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/http.js +279 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/xhr.js +180 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/axios.js +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/Cancel.js +19 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/CancelToken.js +57 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/isCancel.js +5 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/Axios.js +94 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/InterceptorManager.js +52 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/README.md +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/buildFullPath.js +20 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/createError.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/dispatchRequest.js +79 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/enhanceError.js +42 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/mergeConfig.js +73 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/settle.js +25 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/transformData.js +20 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/defaults.js +97 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/README.md +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/bind.js +11 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/buildURL.js +71 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/combineURLs.js +14 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/cookies.js +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/spread.js +27 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/utils.js +344 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/package.json +84 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/LICENSE +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/README.md +155 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/http.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/https.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/index.js +322 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/package.json +60 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/package.json +129 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/tests/index.html +21 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/tsconfig.brower.json +45 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/tsconfig.node.json +0 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/webpack.config.js +41 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/CHANGELOG.md +685 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/LICENSE +19 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/README.md +800 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/UPGRADE_GUIDE.md +162 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.js +1756 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.map +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.min.js +3 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.min.map +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/index.d.ts +161 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/index.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/README.md +37 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/http.js +303 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/xhr.js +179 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/axios.js +56 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/Cancel.js +19 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/CancelToken.js +57 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/isCancel.js +5 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/Axios.js +95 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/InterceptorManager.js +52 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/README.md +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/buildFullPath.js +20 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/createError.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/dispatchRequest.js +79 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/enhanceError.js +42 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/mergeConfig.js +87 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/settle.js +25 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/transformData.js +20 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/defaults.js +98 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/README.md +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/bind.js +11 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/buildURL.js +70 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/combineURLs.js +14 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/cookies.js +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isAxiosError.js +11 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/spread.js +27 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/utils.js +351 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/package.json +86 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/CONTRIBUTING.md +28 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/LICENSE +24 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/README.md +249 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/aes.js +234 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/bower.json +35 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/cipher-core.js +890 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/core.js +797 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/crypto-js.js +6059 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-base64.js +136 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-hex.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-latin1.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-utf16.js +149 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-utf8.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/evpkdf.js +134 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/format-hex.js +66 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/format-openssl.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-md5.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-ripemd160.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha1.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha224.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha256.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha3.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha384.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha512.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac.js +143 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/index.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/lib-typedarrays.js +76 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/md5.js +268 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-cfb.js +80 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ctr.js +58 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ecb.js +40 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ofb.js +54 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/package.json +38 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-ansix923.js +49 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-iso10126.js +44 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-iso97971.js +40 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-nopadding.js +30 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-pkcs7.js +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-zeropadding.js +47 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pbkdf2.js +145 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rabbit-legacy.js +190 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rabbit.js +192 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rc4.js +139 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/ripemd160.js +267 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha1.js +150 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha224.js +80 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha256.js +199 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha3.js +326 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha384.js +83 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha512.js +326 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/tripledes.js +779 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/x64-core.js +304 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/CHANGELOG.md +395 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/LICENSE +19 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/Makefile +58 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/README.md +368 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/karma.conf.js +70 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/node.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/package.json +43 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/browser.js +195 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/debug.js +225 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/index.js +10 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/node.js +186 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/LICENSE +18 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/README.md +148 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/debug.js +14 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/http.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/https.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/index.js +535 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/package.json +59 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/LICENSE.txt +107 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/README.md +192 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.js +249 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.min.js +2 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.min.js.LICENSE.txt +8 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncrypt.d.ts +116 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncrypt.js +186 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncryptRSAKey.d.ts +142 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncryptRSAKey.js +315 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/index.d.ts +3 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/index.js +3 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/asn1.d.ts +51 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/asn1.js +565 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/base64.d.ts +5 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/base64.js +88 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/hex.d.ts +3 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/hex.js +64 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/int10.d.ts +9 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/int10.js +87 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/oids.d.ts +9778 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/oids.js +1962 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/base64.d.ts +3 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/base64.js +76 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/jsbn.d.ts +98 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js +1754 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/prng4.d.ts +10 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/prng4.js +46 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rng.d.ts +3 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rng.js +76 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rsa.d.ts +23 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rsa.js +373 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/util.d.ts +7 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/util.js +58 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js +1593 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js +69 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/version.json +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/package.json +49 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/Gruntfile.js +78 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/LICENSE +21 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/README.md +55 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/bower.json +20 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/build/jwt-decode.js +125 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/build/jwt-decode.min.js +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/jwt-decode.html +2 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/atob.js +38 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/base64_url_decode.js +33 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/index.js +26 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/package.json +37 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/standalone.js +16 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/test/tests.js +53 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/test_harness.html +29 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/testem.yml +46 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/testem_dev.yml +1 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/index.js +152 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/license.md +21 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/package.json +37 -0
- data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/readme.md +51 -0
- data/lib/authing_ruby/test/js_sdk_test/package-lock.json +177 -0
- data/lib/authing_ruby/test/js_sdk_test/package.json +15 -0
- data/lib/authing_ruby/test/mini_test/TestApplicationsManagementClient.rb +85 -0
- data/lib/authing_ruby/test/mini_test/TestAuthenticationClient.rb +232 -0
- data/lib/authing_ruby/test/mini_test/TestAuthenticationClientProtocal.rb +238 -0
- data/lib/authing_ruby/test/mini_test/TestHttpClient.rb +53 -0
- data/lib/authing_ruby/test/mini_test/TestManagementClient.rb +193 -0
- data/lib/authing_ruby/test/mini_test/TestManagementTokenProvider.rb +49 -0
- data/lib/authing_ruby/test/mini_test/TestNaiveHttpClient.rb +33 -0
- data/lib/authing_ruby/test/mini_test/TestSMSandEmail.rb +101 -0
- data/lib/authing_ruby/test/mini_test/TestUtils.rb +35 -0
- data/lib/authing_ruby/utils/utils.rb +40 -0
- data/lib/authing_ruby/version.rb +6 -0
- data/lib/authing_ruby.rb +14 -0
- metadata +694 -0
@@ -0,0 +1,753 @@
|
|
1
|
+
import { GraphqlClient } from './../common/GraphqlClient';
|
2
|
+
import { ManagementTokenProvider } from './ManagementTokenProvider';
|
3
|
+
import { BatchFetchUserTypes, ManagementClientOptions, UserActions } from './types';
|
4
|
+
import { User, PaginatedUsers, CreateUserInput, RefreshToken, CommonMessage, UpdateUserInput, PaginatedGroups, PaginatedRoles, PaginatedAuthorizedResources, ResourceType, QuerySearchUserArgs } from '../../types/graphql.v2';
|
5
|
+
import { HttpClient } from '../common/HttpClient';
|
6
|
+
import { DeepPartial, KeyValuePair } from '../../types/index';
|
7
|
+
import { PublicKeyManager } from '../common/PublicKeyManager';
|
8
|
+
/**
|
9
|
+
* @name UsersManagementClient
|
10
|
+
* @description Authing 用户管理模块。
|
11
|
+
*
|
12
|
+
* 此模块可以进行用户目录增删改查、搜索用户、刷新用户 token、管理用户分组、管理用户角色、管理用户策略授权等操作。
|
13
|
+
*
|
14
|
+
* 该模块发出的所有操作都将以管理员身份进行,所以不需要进行建议短信验证码等操作,如果你希望以普通用户的身份进行操作,请使用 AuthenticationClient 。
|
15
|
+
*
|
16
|
+
* @example
|
17
|
+
*
|
18
|
+
* 请使用以下方式使用该模块:
|
19
|
+
* \`\`\`javascript
|
20
|
+
* import { ManagementClient } from "authing-js-sdk"
|
21
|
+
* const managementClient = new ManagementClient({
|
22
|
+
* userPoolId: "YOUR_USERPOOL_ID",
|
23
|
+
* secret: "YOUR_USERPOOL_SECRET",
|
24
|
+
* })
|
25
|
+
*
|
26
|
+
* managementClient.users.list // 获取用户列表
|
27
|
+
* managementClient.users.create // 创建用户
|
28
|
+
* managementClient.users.listRoles // 获取用户角色列表
|
29
|
+
* managementClient.users.search // 搜索用户
|
30
|
+
* \`\`\`
|
31
|
+
*
|
32
|
+
* @class UsersManagementClient 管理用户
|
33
|
+
*/
|
34
|
+
export declare class UsersManagementClient {
|
35
|
+
options: ManagementClientOptions;
|
36
|
+
graphqlClient: GraphqlClient;
|
37
|
+
httpClient: HttpClient;
|
38
|
+
tokenProvider: ManagementTokenProvider;
|
39
|
+
publickKeyManager: PublicKeyManager;
|
40
|
+
constructor(options: ManagementClientOptions, graphqlClient: GraphqlClient, httpClient: HttpClient, tokenProvider: ManagementTokenProvider, publickKeyManager: PublicKeyManager);
|
41
|
+
/**
|
42
|
+
* @name create
|
43
|
+
* @name_zh 创建用户
|
44
|
+
* @description 此接口将以管理员身份创建用户,不需要进行手机号验证码检验等安全检测。
|
45
|
+
*
|
46
|
+
* @param {CreateUserInput} userInfo 用户资料
|
47
|
+
* @param {string} userInfo.email 邮箱,用户池内唯一
|
48
|
+
* @param {boolean} userInfo.emailVerified 邮箱是否已验证
|
49
|
+
* @param {string} userInfo.phone 手机号
|
50
|
+
* @param {boolean} userInfo.phoneVerified 手机号是否验证
|
51
|
+
* @param {string} userInfo.unionid 以社会化登录的用户该字段为用户在第三方社会化登录服务商中的唯一 ID
|
52
|
+
* @param {string} userInfo.openid 微信登录返回的 openid
|
53
|
+
* @param {string} userInfo.password 密码
|
54
|
+
* @param {string} userInfo.registerSource 注册来源,可以多选
|
55
|
+
* @param {string} userInfo.username 用户名
|
56
|
+
* @param {string} userInfo.nickname 昵称
|
57
|
+
* @param {string} userInfo.photo 头像
|
58
|
+
* @param {string} userInfo.company 公司
|
59
|
+
* @param {string} userInfo.browser 浏览器
|
60
|
+
* @param {number} userInfo.loginsCount 登录次数,当你从原有用户系统迁移到 Authing 时可以设置该字段。
|
61
|
+
* @param {string} userInfo.lastLogin 上次登录时间, 符合 ISO8601 格式的时间字符串。(如 "2017-06-07T14:34:08.700Z", "2017-06-07T14:34:08.700 or "2017-06-07T14:34:08+04:00")
|
62
|
+
* @param {string} userInfo.lastIP 用户最近一次登录(或其他活动)的 IP
|
63
|
+
* @param {string} userInfo.signedUp 注册时间,符合 ISO8601 格式的时间字符串。(如 "2017-06-07T14:34:08.700Z", "2017-06-07T14:34:08.700 or "2017-06-07T14:34:08+04:00")
|
64
|
+
* @param {boolean} userInfo.blocked 账号是否被禁用
|
65
|
+
* @param {boolean} userInfo.isDeleted 标记账号是否被删除
|
66
|
+
* @param {string} userInfo.device 设备
|
67
|
+
* @param {string} userInfo.lastIP 最近登录的 IP
|
68
|
+
* @param {string} userInfo.name Name
|
69
|
+
* @param {string} userInfo.givenName Given Name
|
70
|
+
* @param {string} userInfo.familyName Family Name
|
71
|
+
* @param {string} userInfo.middleName Middle Name
|
72
|
+
* @param {string} userInfo.profile Profile Url
|
73
|
+
* @param {string} userInfo.preferredUsername Preferred Name
|
74
|
+
* @param {string} userInfo.website 个人网站
|
75
|
+
* @param {string} userInfo.gender 性别, F 表示男性、W 表示女性、未知表示 U
|
76
|
+
* @param {string} userInfo.birthdate 生日
|
77
|
+
* @param {string} userInfo.zoneinfo 时区
|
78
|
+
* @param {string} userInfo.locale 语言
|
79
|
+
* @param {string} userInfo.address 地址
|
80
|
+
* @param {string} userInfo.streetAddress 街道地址
|
81
|
+
* @param {string} userInfo.locality
|
82
|
+
* @param {string} userInfo.region 地域
|
83
|
+
* @param {string} userInfo.postalCode 邮编
|
84
|
+
* @param {string} userInfo.city 城市
|
85
|
+
* @param {string} userInfo.province 省份
|
86
|
+
* @param {string} userInfo.country 国家
|
87
|
+
*
|
88
|
+
* @example
|
89
|
+
*
|
90
|
+
* const user = await managementClient.users.create({
|
91
|
+
* username: 'bob',
|
92
|
+
* password: 'passw0rd'
|
93
|
+
* })
|
94
|
+
*
|
95
|
+
* @example
|
96
|
+
*
|
97
|
+
* const user = await managementClient.users.create({
|
98
|
+
* nickname: 'Nick',
|
99
|
+
* phone: '176xxxx7041', // 由于是管理员操作,所以检验手机号验证码, 如果你需要检验,请使用 AuthenticationClient
|
100
|
+
* loginsCount: 2 // 原有用户系统记录的用户登录次数
|
101
|
+
* signedUp: '2020-10-15T17:55:37+08:00' // 原有用户系统记录的用户注册时间
|
102
|
+
* })
|
103
|
+
*
|
104
|
+
* @returns {Promise<User>}
|
105
|
+
* @memberof UsersManagementClient
|
106
|
+
*/
|
107
|
+
create(userInfo: CreateUserInput, options?: {
|
108
|
+
keepPassword?: boolean;
|
109
|
+
}): Promise<User>;
|
110
|
+
/**
|
111
|
+
* @name update
|
112
|
+
* @name_zh 修改用户资料
|
113
|
+
* @description 修改用户资料
|
114
|
+
*
|
115
|
+
* @param {string} id 用户 ID
|
116
|
+
* @param {UpdateUserInput} updates 修改的用户资料
|
117
|
+
* @param {string} updates.email 邮箱
|
118
|
+
* @param {boolean} updates.emailVerified 邮箱是否已验证
|
119
|
+
* @param {string} updates.phone 手机号
|
120
|
+
* @param {boolean} updates.phoneVerified 手机号是否验证
|
121
|
+
* @param {string} updates.unionid 以社会化登录的用户该字段为用户在第三方社会化登录服务商中的唯一 ID
|
122
|
+
* @param {string} updates.openid 微信登录返回的 openid
|
123
|
+
* @param {string} updates.password 密码
|
124
|
+
* @param {string} updates.registerSource 注册来源,可以多选
|
125
|
+
* @param {string} updates.tokenExpiredAt token 过期时间,符合 ISO8601 格式的时间字符串。(如 "2017-06-07T14:34:08.700Z", "2017-06-07T14:34:08.700 or "2017-06-07T14:34:08+04:00")。
|
126
|
+
* 将该字段设置为小于当前时间可以让用户的 token 失效。
|
127
|
+
* @param {string} updates.username 用户名
|
128
|
+
* @param {string} updates.nickname 昵称
|
129
|
+
* @param {string} updates.photo 头像
|
130
|
+
* @param {string} updates.company 公司
|
131
|
+
* @param {string} updates.browser 浏览器
|
132
|
+
* @param {number} updates.loginsCount 登录次数,当你从原有用户系统迁移到 Authing 时可以设置该字段。
|
133
|
+
* @param {string} updates.lastLogin 上次登录时间, 符合 ISO8601 格式的时间字符串。(如 "2017-06-07T14:34:08.700Z", "2017-06-07T14:34:08.700 or "2017-06-07T14:34:08+04:00")
|
134
|
+
* @param {string} updates.lastIP 用户最近一次登录(或其他活动)的 IP
|
135
|
+
* @param {string} updates.signedUp 注册时间,符合 ISO8601 格式的时间字符串。(如 "2017-06-07T14:34:08.700Z", "2017-06-07T14:34:08.700 or "2017-06-07T14:34:08+04:00")
|
136
|
+
* @param {boolean} updates.blocked 账号是否被禁用
|
137
|
+
* @param {string} updates.device 设备
|
138
|
+
* @param {string} updates.lastIP 最近登录的 IP
|
139
|
+
* @param {string} updates.name Name
|
140
|
+
* @param {string} updates.givenName Given Name
|
141
|
+
* @param {string} updates.familyName Family Name
|
142
|
+
* @param {string} updates.middleName Middle Name
|
143
|
+
* @param {string} updates.profile Profile Url
|
144
|
+
* @param {string} updates.preferredUsername Preferred Name
|
145
|
+
* @param {string} updates.website 个人网站
|
146
|
+
* @param {string} updates.gender 性别, F 表示男性、W 表示女性、未知表示 U
|
147
|
+
* @param {string} updates.birthdate 生日
|
148
|
+
* @param {string} updates.zoneinfo 时区
|
149
|
+
* @param {string} updates.locale 语言
|
150
|
+
* @param {string} updates.address 地址
|
151
|
+
* @param {string} updates.streetAddress 街道地址
|
152
|
+
* @param {string} updates.locality
|
153
|
+
* @param {string} updates.region 地域
|
154
|
+
* @param {string} updates.postalCode 邮编
|
155
|
+
* @param {string} updates.city 城市
|
156
|
+
* @param {string} updates.province 省份
|
157
|
+
* @param {string} updates.country 国家
|
158
|
+
*
|
159
|
+
* @example
|
160
|
+
*
|
161
|
+
* const user = await managementClient.users.update("USERID", {
|
162
|
+
* nickname: "Nick"
|
163
|
+
* })
|
164
|
+
*
|
165
|
+
* @example
|
166
|
+
*
|
167
|
+
* const user = await managementClient.users.update("USERID" ,{
|
168
|
+
* nickname: 'Nick',
|
169
|
+
* phone: '176xxxx7041', // 由于是管理员操作,所以检验手机号验证码, 如果你需要检验,请使用 AuthenticationClient
|
170
|
+
* tokenExpiredAt: '2020-10-15T17:55:37+08:00'
|
171
|
+
* })
|
172
|
+
*
|
173
|
+
* @returns {Promise<User>}
|
174
|
+
* @memberof UsersManagementClient *
|
175
|
+
*/
|
176
|
+
update(id: string, updates: UpdateUserInput): Promise<User>;
|
177
|
+
/**
|
178
|
+
* @name detail
|
179
|
+
* @name_zh 获取用户详情
|
180
|
+
* @description 通过用户 ID 获取用户详情,如果你想通过 token 获取用户详情,请使用 AuthenticationClient SDK 。
|
181
|
+
*
|
182
|
+
* @param {string} userId 用户 ID
|
183
|
+
*
|
184
|
+
* @example
|
185
|
+
*
|
186
|
+
* const user = await managementClient.users.detail('USERID');
|
187
|
+
*
|
188
|
+
* @returns {Promise<User>}
|
189
|
+
* @memberof UsersManagementClient
|
190
|
+
*/
|
191
|
+
detail(userId: string): Promise<User>;
|
192
|
+
/**
|
193
|
+
* @name delete
|
194
|
+
* @name_zh 删除用户
|
195
|
+
* @description 删除用户
|
196
|
+
*
|
197
|
+
* @param {string} userId 用户 ID
|
198
|
+
*
|
199
|
+
* @example
|
200
|
+
*
|
201
|
+
* const user = await managementClient.users.delete('USERID');
|
202
|
+
*
|
203
|
+
* @returns {Promise<CommonMessage>}
|
204
|
+
* @memberof UsersManagementClient
|
205
|
+
*/
|
206
|
+
delete(userId: string): Promise<CommonMessage>;
|
207
|
+
/**
|
208
|
+
* @name deleteMany
|
209
|
+
* @name_zh 批量删除用户
|
210
|
+
* @description 批量删除用户
|
211
|
+
*
|
212
|
+
* @param {string[]} userIds 用户 ID 列表
|
213
|
+
*
|
214
|
+
* @example
|
215
|
+
*
|
216
|
+
* const user = await managementClient.users.deleteMany(['USERID']);
|
217
|
+
*
|
218
|
+
* @returns {Promise<CommonMessage>}
|
219
|
+
* @memberof UsersManagementClient
|
220
|
+
*/
|
221
|
+
deleteMany(userIds: string[]): Promise<CommonMessage>;
|
222
|
+
/**
|
223
|
+
* @name batch
|
224
|
+
* @name_zh 批量获取用户
|
225
|
+
* @description 通过 ID、username、email、phone、email、externalId 批量获取用户详情
|
226
|
+
*
|
227
|
+
* @param {string[]} identifiers 需要查询的数据列表,如 用户 ID 列表
|
228
|
+
* @param {string} [type] 列表类型,可选值为 'id' ,'username' ,'phone' ,'email', 'externalId',默认为 'id'
|
229
|
+
*
|
230
|
+
* @example
|
231
|
+
*
|
232
|
+
* const users = await managementClient.users.batch(['USERID'], options);
|
233
|
+
*
|
234
|
+
* @returns {Promise<CommonMessage>}
|
235
|
+
* @memberof UsersManagementClient
|
236
|
+
*/
|
237
|
+
batch(ids: string[], options?: {
|
238
|
+
queryField: BatchFetchUserTypes;
|
239
|
+
}): Promise<User[]>;
|
240
|
+
/**
|
241
|
+
* @name list
|
242
|
+
* @name_zh 获取用户列表
|
243
|
+
* @description 获取用户池用户列表
|
244
|
+
*
|
245
|
+
* @param {number} [page=1] 页码数, 从 1 开始
|
246
|
+
* @param {number} [limit=10] 每页包含的用户数
|
247
|
+
*
|
248
|
+
* @example
|
249
|
+
*
|
250
|
+
* const user = await managementClient.users.list();
|
251
|
+
*
|
252
|
+
* @returns
|
253
|
+
* @memberof UsersManagementClient
|
254
|
+
*/
|
255
|
+
list(page?: number, limit?: number): Promise<{
|
256
|
+
totalCount: number;
|
257
|
+
list: {
|
258
|
+
id: string;
|
259
|
+
arn: string;
|
260
|
+
userPoolId: string;
|
261
|
+
status?: import("../../types/graphql.v2").UserStatus;
|
262
|
+
username?: string;
|
263
|
+
email?: string;
|
264
|
+
emailVerified?: boolean;
|
265
|
+
phone?: string;
|
266
|
+
phoneVerified?: boolean;
|
267
|
+
unionid?: string;
|
268
|
+
openid?: string;
|
269
|
+
nickname?: string;
|
270
|
+
registerSource?: string[];
|
271
|
+
photo?: string;
|
272
|
+
password?: string;
|
273
|
+
oauth?: string;
|
274
|
+
token?: string;
|
275
|
+
tokenExpiredAt?: string;
|
276
|
+
loginsCount?: number;
|
277
|
+
lastLogin?: string;
|
278
|
+
lastIP?: string;
|
279
|
+
signedUp?: string;
|
280
|
+
blocked?: boolean;
|
281
|
+
isDeleted?: boolean;
|
282
|
+
device?: string;
|
283
|
+
browser?: string;
|
284
|
+
company?: string;
|
285
|
+
name?: string;
|
286
|
+
givenName?: string;
|
287
|
+
familyName?: string;
|
288
|
+
middleName?: string;
|
289
|
+
profile?: string;
|
290
|
+
preferredUsername?: string;
|
291
|
+
website?: string;
|
292
|
+
gender?: string;
|
293
|
+
birthdate?: string;
|
294
|
+
zoneinfo?: string;
|
295
|
+
locale?: string;
|
296
|
+
address?: string;
|
297
|
+
formatted?: string;
|
298
|
+
streetAddress?: string;
|
299
|
+
locality?: string;
|
300
|
+
region?: string;
|
301
|
+
postalCode?: string;
|
302
|
+
city?: string;
|
303
|
+
province?: string;
|
304
|
+
country?: string;
|
305
|
+
createdAt?: string;
|
306
|
+
updatedAt?: string;
|
307
|
+
externalId?: string;
|
308
|
+
}[];
|
309
|
+
}>;
|
310
|
+
/**
|
311
|
+
* @name listArchivedUsers
|
312
|
+
* @name_zh 获取已归档用户列表
|
313
|
+
* @description 获取已归档用户列表
|
314
|
+
*
|
315
|
+
* @param {number} [page=1] 页码数, 从 1 开始
|
316
|
+
* @param {number} [limit=10] 每页包含的用户数
|
317
|
+
*
|
318
|
+
* @example
|
319
|
+
*
|
320
|
+
* const user = await managementClient.users.listArchivedUsers();
|
321
|
+
*
|
322
|
+
* @returns
|
323
|
+
* @memberof UsersManagementClient
|
324
|
+
*/
|
325
|
+
listArchivedUsers(page?: number, limit?: number): Promise<{
|
326
|
+
totalCount: number;
|
327
|
+
list: {
|
328
|
+
id: string;
|
329
|
+
arn: string;
|
330
|
+
status?: import("../../types/graphql.v2").UserStatus;
|
331
|
+
userPoolId: string;
|
332
|
+
username?: string;
|
333
|
+
email?: string;
|
334
|
+
emailVerified?: boolean;
|
335
|
+
phone?: string;
|
336
|
+
phoneVerified?: boolean;
|
337
|
+
unionid?: string;
|
338
|
+
openid?: string;
|
339
|
+
nickname?: string;
|
340
|
+
registerSource?: string[];
|
341
|
+
photo?: string;
|
342
|
+
password?: string;
|
343
|
+
oauth?: string;
|
344
|
+
token?: string;
|
345
|
+
tokenExpiredAt?: string;
|
346
|
+
loginsCount?: number;
|
347
|
+
lastLogin?: string;
|
348
|
+
lastIP?: string;
|
349
|
+
signedUp?: string;
|
350
|
+
blocked?: boolean;
|
351
|
+
isDeleted?: boolean;
|
352
|
+
device?: string;
|
353
|
+
browser?: string;
|
354
|
+
company?: string;
|
355
|
+
name?: string;
|
356
|
+
givenName?: string;
|
357
|
+
familyName?: string;
|
358
|
+
middleName?: string;
|
359
|
+
profile?: string;
|
360
|
+
preferredUsername?: string;
|
361
|
+
website?: string;
|
362
|
+
gender?: string;
|
363
|
+
birthdate?: string;
|
364
|
+
zoneinfo?: string;
|
365
|
+
locale?: string;
|
366
|
+
address?: string;
|
367
|
+
formatted?: string;
|
368
|
+
streetAddress?: string;
|
369
|
+
locality?: string;
|
370
|
+
region?: string;
|
371
|
+
postalCode?: string;
|
372
|
+
city?: string;
|
373
|
+
province?: string;
|
374
|
+
country?: string;
|
375
|
+
createdAt?: string;
|
376
|
+
updatedAt?: string;
|
377
|
+
externalId?: string;
|
378
|
+
}[];
|
379
|
+
}>;
|
380
|
+
/**
|
381
|
+
* @name exists
|
382
|
+
* @name_zh 检查用户是否存在
|
383
|
+
* @description 检查用户是否存在,目前可检测的字段有用户名、邮箱、手机号。
|
384
|
+
*
|
385
|
+
*
|
386
|
+
* @param {Object} options
|
387
|
+
* @param {string} [options.username] 用户名,区分大小写。
|
388
|
+
* @param {string} [options.email] 邮箱,邮箱不区分大小写。
|
389
|
+
* @param {string} [options.phone] 手机号
|
390
|
+
*
|
391
|
+
* @example
|
392
|
+
*
|
393
|
+
* const exists = await managementClient.users.exists({
|
394
|
+
* username: "bob"
|
395
|
+
* });
|
396
|
+
*
|
397
|
+
* @returns {Promise<boolean>}
|
398
|
+
* @memberof UsersManagementClient
|
399
|
+
*/
|
400
|
+
exists(options: {
|
401
|
+
username?: string;
|
402
|
+
email?: string;
|
403
|
+
phone?: string;
|
404
|
+
externalId?: string;
|
405
|
+
}): Promise<boolean>;
|
406
|
+
/**
|
407
|
+
* @name find
|
408
|
+
* @name_zh 查找用户
|
409
|
+
* @description 通过用户名、邮箱、手机号查找用户
|
410
|
+
*
|
411
|
+
* @param {Object} options
|
412
|
+
* @param {string} [options.username] 用户名,区分大小写。
|
413
|
+
* @param {string} [options.email] 邮箱,邮箱不区分大小写。
|
414
|
+
* @param {string} [options.phone] 手机号
|
415
|
+
* @param {string} [options.externalId] externalId
|
416
|
+
*
|
417
|
+
* @memberof UsersManagementClient
|
418
|
+
*/
|
419
|
+
find(options: {
|
420
|
+
username?: string;
|
421
|
+
email?: string;
|
422
|
+
phone?: string;
|
423
|
+
externalId?: string;
|
424
|
+
}): Promise<{
|
425
|
+
id: string;
|
426
|
+
arn: string;
|
427
|
+
userPoolId: string;
|
428
|
+
status?: import("../../types/graphql.v2").UserStatus;
|
429
|
+
username?: string;
|
430
|
+
email?: string;
|
431
|
+
emailVerified?: boolean;
|
432
|
+
phone?: string;
|
433
|
+
phoneVerified?: boolean;
|
434
|
+
unionid?: string;
|
435
|
+
openid?: string;
|
436
|
+
nickname?: string;
|
437
|
+
registerSource?: string[];
|
438
|
+
photo?: string;
|
439
|
+
password?: string;
|
440
|
+
oauth?: string;
|
441
|
+
token?: string;
|
442
|
+
tokenExpiredAt?: string;
|
443
|
+
loginsCount?: number;
|
444
|
+
lastLogin?: string;
|
445
|
+
lastIP?: string;
|
446
|
+
signedUp?: string;
|
447
|
+
blocked?: boolean;
|
448
|
+
isDeleted?: boolean;
|
449
|
+
device?: string;
|
450
|
+
browser?: string;
|
451
|
+
company?: string;
|
452
|
+
name?: string;
|
453
|
+
givenName?: string;
|
454
|
+
familyName?: string;
|
455
|
+
middleName?: string;
|
456
|
+
profile?: string;
|
457
|
+
preferredUsername?: string;
|
458
|
+
website?: string;
|
459
|
+
gender?: string;
|
460
|
+
birthdate?: string;
|
461
|
+
zoneinfo?: string;
|
462
|
+
locale?: string;
|
463
|
+
address?: string;
|
464
|
+
formatted?: string;
|
465
|
+
streetAddress?: string;
|
466
|
+
locality?: string;
|
467
|
+
region?: string;
|
468
|
+
postalCode?: string;
|
469
|
+
city?: string;
|
470
|
+
province?: string;
|
471
|
+
country?: string;
|
472
|
+
createdAt?: string;
|
473
|
+
updatedAt?: string;
|
474
|
+
externalId?: string;
|
475
|
+
}>;
|
476
|
+
/**
|
477
|
+
* @name search
|
478
|
+
* @name_zh 搜索用户
|
479
|
+
* @description 根据关键字搜索用户
|
480
|
+
*
|
481
|
+
* @param query 搜索内容
|
482
|
+
* @param options 选项
|
483
|
+
* @param {string[]} [options.fields] 搜索用户字段,如果不指定,默认会从 username、nickname、email、phone、company、name、givenName、familyName、middleName、profile、preferredUsername 这些字段进行模糊搜索。
|
484
|
+
* 如果你需要精确查找,请使用 find 方法。
|
485
|
+
* @param {number} [options.page=1]
|
486
|
+
* @param {number} [options.limit=10]
|
487
|
+
* @param {Object} [options.departmentOpts] 限制条件,用户所在的部门
|
488
|
+
* @param {string} [options.departmentOpts.departmentId] 部门 ID
|
489
|
+
* @param {string} [options.departmentOpts.includeChildrenDepartments] 是否包含此部门的子部门
|
490
|
+
*
|
491
|
+
* @example
|
492
|
+
*
|
493
|
+
* const { totalCount, list } = await managementClient.users.search("Bob");
|
494
|
+
*
|
495
|
+
* @returns {Promise<PaginatedUsers>}
|
496
|
+
* @memberof UsersManagementClient
|
497
|
+
*/
|
498
|
+
search(query: string, options?: {
|
499
|
+
fields?: string[];
|
500
|
+
page?: number;
|
501
|
+
limit?: number;
|
502
|
+
departmentOpts?: QuerySearchUserArgs['departmentOpts'];
|
503
|
+
groupOpts?: QuerySearchUserArgs['groupOpts'];
|
504
|
+
roleOpts?: QuerySearchUserArgs['roleOpts'];
|
505
|
+
}): Promise<PaginatedUsers>;
|
506
|
+
/**
|
507
|
+
* @name refreshToken
|
508
|
+
* @name_zh 刷新用户 token
|
509
|
+
* @description 刷新用户 token
|
510
|
+
*
|
511
|
+
* @param {string} id 用户 ID
|
512
|
+
*
|
513
|
+
* @example
|
514
|
+
*
|
515
|
+
* const { token } = await managementClient.users.refreshToken("USERID");
|
516
|
+
*
|
517
|
+
* // 检测 token 的最新状态,能够获取到该用户对应的 token
|
518
|
+
*
|
519
|
+
* const data = await managementClient.checkLoginStatus(token, {
|
520
|
+
* fetchUserDetail: true
|
521
|
+
* });
|
522
|
+
*
|
523
|
+
* @returns {Promise<RefreshToken>}
|
524
|
+
* @memberof UsersManagementClient
|
525
|
+
*/
|
526
|
+
refreshToken(id: string): Promise<RefreshToken>;
|
527
|
+
/**
|
528
|
+
* @name listGroups
|
529
|
+
* @name_zh 获取用户分组列表
|
530
|
+
* @description 获取用户的分组列表
|
531
|
+
*
|
532
|
+
* @param {string} userId 用户 ID
|
533
|
+
*
|
534
|
+
* @example
|
535
|
+
*
|
536
|
+
* const { list, totalCount} = await managementClient.users.listGroups("USERID");
|
537
|
+
*
|
538
|
+
* @returns {Promise<DeepPartial<PaginatedGroups>>}
|
539
|
+
* @memberof UsersManagementClient
|
540
|
+
*/
|
541
|
+
listGroups(userId: string): Promise<DeepPartial<PaginatedGroups>>;
|
542
|
+
/**
|
543
|
+
* @name addGroup
|
544
|
+
* @name_zh 加入分组
|
545
|
+
* @description 将用户加入分组
|
546
|
+
*
|
547
|
+
* @param {string} userId 用户 ID
|
548
|
+
* @param {string} group 分组 code
|
549
|
+
*
|
550
|
+
* @example
|
551
|
+
*
|
552
|
+
* const { code, message } = await managementClient.users.addGroup("USERID", "GROUP_CODE");
|
553
|
+
*
|
554
|
+
* @returns {Promise<CommonMessage>}
|
555
|
+
* @memberof UsersManagementClient
|
556
|
+
*/
|
557
|
+
addGroup(userId: string, group: string): Promise<CommonMessage>;
|
558
|
+
/**
|
559
|
+
* @name removeGroup
|
560
|
+
* @name_zh 退出分组
|
561
|
+
* @description 退出分组
|
562
|
+
*
|
563
|
+
* @param {string} userId 用户 ID
|
564
|
+
* @param {string} group 分组 code
|
565
|
+
*
|
566
|
+
* @example
|
567
|
+
*
|
568
|
+
* const { code, message } = await managementClient.users.removeGroup("USERID", "GROUP_CODE");
|
569
|
+
*
|
570
|
+
* @returns {Promise<CommonMessage>}
|
571
|
+
* @memberof UsersManagementClient
|
572
|
+
*/
|
573
|
+
removeGroup(userId: string, group: string): Promise<CommonMessage>;
|
574
|
+
/**
|
575
|
+
* @name listRoles
|
576
|
+
* @name_zh 获取用户角色列表
|
577
|
+
* @description 获取用户的角色列表
|
578
|
+
*
|
579
|
+
* @param {string} userId 用户 ID
|
580
|
+
* @param {string} namespace 权限组命名空间
|
581
|
+
*
|
582
|
+
* @example
|
583
|
+
*
|
584
|
+
* const { list, totalCount} = await managementClient.users.listRoles("USERID");
|
585
|
+
*
|
586
|
+
* @returns {Promise<DeepPartial<PaginatedRoles>>}
|
587
|
+
* @memberof UsersManagementClient
|
588
|
+
*/
|
589
|
+
listRoles(userId: string, namespace?: string): Promise<DeepPartial<PaginatedRoles>>;
|
590
|
+
/**
|
591
|
+
* @name addRoles
|
592
|
+
* @name_zh 添加角色
|
593
|
+
* @description 将用户加入角色
|
594
|
+
*
|
595
|
+
* @param {string} userId 用户 ID
|
596
|
+
* @param {string} roles 角色 code 列表
|
597
|
+
* @param {string} namespace 权限组命名空间
|
598
|
+
*
|
599
|
+
* @example
|
600
|
+
*
|
601
|
+
* const { code, message } = await managementClient.users.addRoles("USERID", ["ROLEA"]);
|
602
|
+
*
|
603
|
+
* @returns {Promise<CommonMessage>}
|
604
|
+
* @memberof UsersManagementClient
|
605
|
+
*/
|
606
|
+
addRoles(userId: string, roles: string[], namespace?: string): Promise<CommonMessage>;
|
607
|
+
/**
|
608
|
+
* @name removeRoles
|
609
|
+
* @name_zh 移除角色
|
610
|
+
* @description 将用户从角色中移除
|
611
|
+
*
|
612
|
+
* @param {string} userId 用户 ID
|
613
|
+
* @param {string} roles 角色 code 列表
|
614
|
+
* @param {string} namespace 权限分组 code
|
615
|
+
*
|
616
|
+
* @example
|
617
|
+
*
|
618
|
+
* const { code, message } = await managementClient.users.removeRoles("USERID", ["ROLEA"]);
|
619
|
+
*
|
620
|
+
* @returns {Promise<CommonMessage>}
|
621
|
+
* @memberof UsersManagementClient
|
622
|
+
*/
|
623
|
+
removeRoles(userId: string, roles: string[], namespace?: string): Promise<CommonMessage>;
|
624
|
+
/**
|
625
|
+
* @name listOrg
|
626
|
+
* @name_zh 获取用户所在组织机构
|
627
|
+
* @description 获取用户所在组织机构,以及他在该组织机构内的的节点路径。
|
628
|
+
*
|
629
|
+
* @param {string} userId 用户 ID
|
630
|
+
*
|
631
|
+
* @example
|
632
|
+
*
|
633
|
+
* const data = await managementClient.users.listOrgs("USERID");
|
634
|
+
*
|
635
|
+
* @returns {Promise<UserOrgList>}
|
636
|
+
*
|
637
|
+
* @memberof UsersManagementClient
|
638
|
+
*/
|
639
|
+
listOrgs(userId: string): Promise<any>;
|
640
|
+
/**
|
641
|
+
* @name listDepartment
|
642
|
+
* @name_zh 获取用户所在部门
|
643
|
+
* @description 获取用户所在部门列表
|
644
|
+
*
|
645
|
+
* @param {string} userId 用户 ID
|
646
|
+
*
|
647
|
+
* @example
|
648
|
+
*
|
649
|
+
* const data = await managementClient.users.listDepartment("USERID");
|
650
|
+
*
|
651
|
+
* @returns {Promise<UserDepartmentList>}
|
652
|
+
*
|
653
|
+
* @memberof UsersManagementClient
|
654
|
+
*/
|
655
|
+
listDepartment(userId: string): Promise<{
|
656
|
+
totalCount: number;
|
657
|
+
list: {
|
658
|
+
isMainDepartment: boolean;
|
659
|
+
joinedAt?: string;
|
660
|
+
department: {
|
661
|
+
id: string;
|
662
|
+
orgId?: string;
|
663
|
+
name: string;
|
664
|
+
nameI18n?: string;
|
665
|
+
description?: string;
|
666
|
+
descriptionI18n?: string;
|
667
|
+
order?: number;
|
668
|
+
code?: string;
|
669
|
+
root?: boolean;
|
670
|
+
depth?: number;
|
671
|
+
path: string[];
|
672
|
+
codePath: string[];
|
673
|
+
namePath: string[];
|
674
|
+
createdAt?: string;
|
675
|
+
updatedAt?: string;
|
676
|
+
children?: string[];
|
677
|
+
};
|
678
|
+
}[];
|
679
|
+
}>;
|
680
|
+
/**
|
681
|
+
* @description 获取用户被授权的所有资源
|
682
|
+
*
|
683
|
+
* @param userId
|
684
|
+
* @param namespace
|
685
|
+
*/
|
686
|
+
listAuthorizedResources(userId: string, namespace: string, options?: {
|
687
|
+
resourceType?: ResourceType;
|
688
|
+
}): Promise<PaginatedAuthorizedResources>;
|
689
|
+
/**
|
690
|
+
* @description 获取某个用户的所有自定义数据
|
691
|
+
* @param userId: 用户 ID
|
692
|
+
*
|
693
|
+
*/
|
694
|
+
getUdfValue(userId: string): Promise<KeyValuePair>;
|
695
|
+
/**
|
696
|
+
* @description 批量获取多个用户的自定义数据
|
697
|
+
*
|
698
|
+
* @param userIds: 用户 ID 列表
|
699
|
+
*/
|
700
|
+
getUdfValueBatch(userIds: string[]): Promise<{
|
701
|
+
[x: string]: KeyValuePair;
|
702
|
+
}>;
|
703
|
+
/**
|
704
|
+
* @description 设置某个用户的自定义数据
|
705
|
+
*
|
706
|
+
* @param userId
|
707
|
+
* @param data
|
708
|
+
*/
|
709
|
+
setUdfValue(userId: string, data: KeyValuePair): Promise<void>;
|
710
|
+
/**
|
711
|
+
* @description 批量设置自定义数据
|
712
|
+
*
|
713
|
+
*/
|
714
|
+
setUdfValueBatch(input: {
|
715
|
+
userId: string;
|
716
|
+
data: KeyValuePair;
|
717
|
+
}[]): Promise<void>;
|
718
|
+
/**
|
719
|
+
* @description 清除用户的自定义数据
|
720
|
+
*
|
721
|
+
*/
|
722
|
+
removeUdfValue(userId: string, key: string): Promise<void>;
|
723
|
+
/**
|
724
|
+
* 判断用户是否有某个角色
|
725
|
+
* @param userId 用户 ID
|
726
|
+
* @param roleCode 角色 Code
|
727
|
+
* @param namespace 权限分组 ID
|
728
|
+
*/
|
729
|
+
hasRole(userId: string, roleCode: string, namespace?: string): Promise<boolean>;
|
730
|
+
/**
|
731
|
+
* @description 强制一批用户下线
|
732
|
+
*/
|
733
|
+
kick(userIds: string[]): Promise<{
|
734
|
+
code: number;
|
735
|
+
message: string;
|
736
|
+
}>;
|
737
|
+
/**
|
738
|
+
* 审计日志列表
|
739
|
+
* @param options.page 当前页数
|
740
|
+
* @param options.limit 每页显示条数
|
741
|
+
* @param options.clientIp 客户端 IP 地址
|
742
|
+
* @param options.operationName 操作类型
|
743
|
+
* @param options.operatoArn 用户 Arn 通过 searchUser 方法获得
|
744
|
+
* @returns Promise<UserActions>
|
745
|
+
*/
|
746
|
+
listUserActions(options?: {
|
747
|
+
page?: number;
|
748
|
+
limit?: number;
|
749
|
+
clientIp?: string;
|
750
|
+
operationName?: string;
|
751
|
+
operatoArn?: string;
|
752
|
+
}): Promise<UserActions>;
|
753
|
+
}
|