authing_ruby 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/authing_ruby.gemspec +4 -2
- data/lib/authing_ruby/common/PublicKeyManager.rb +12 -1
- data/lib/authing_ruby/version.rb +1 -1
- metadata +10 -467
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/CONTRIBUTION.md +0 -23
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/LICENSE +0 -21
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/README.md +0 -303
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build-doc.js +0 -520
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/browser/index.min.js +0 -2
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/browser/index.min.js.LICENSE.txt +0 -91
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/index.d.ts +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/index.js +0 -20
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationClient.d.ts +0 -1118
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationClient.js +0 -2859
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationTokenProvider.d.ts +0 -13
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/AuthenticationTokenProvider.js +0 -56
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/BaseAuthenticationClient.d.ts +0 -6
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/BaseAuthenticationClient.js +0 -31
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/EnterpriseAuthenticationClient.d.ts +0 -92
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/EnterpriseAuthenticationClient.js +0 -250
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/MfaAuthenticationClient.d.ts +0 -303
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/MfaAuthenticationClient.js +0 -665
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient.d.ts +0 -232
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient.js +0 -622
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/SocialAuthenticationClient.d.ts +0 -104
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/SocialAuthenticationClient.js +0 -180
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/types.d.ts +0 -341
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/authentication/types.js +0 -69
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/GraphqlClient.d.ts +0 -14
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/GraphqlClient.js +0 -127
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/HttpClient.d.ts +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/HttpClient.js +0 -151
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/PublicKeyManager.d.ts +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/common/PublicKeyManager.js +0 -81
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/graphqlapi.d.ts +0 -121
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/graphqlapi.js +0 -2002
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AclManagementClient.d.ts +0 -236
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AclManagementClient.js +0 -863
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AgreementManagementClient.d.ts +0 -65
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/AgreementManagementClient.js +0 -195
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ApplicationsManagementClient.d.ts +0 -216
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ApplicationsManagementClient.js +0 -533
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/GroupsManagementClient.d.ts +0 -188
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/GroupsManagementClient.js +0 -404
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/MFAManagementClient.d.ts +0 -58
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/MFAManagementClient.js +0 -126
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementClient.d.ts +0 -79
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementClient.js +0 -203
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementTokenProvider.d.ts +0 -39
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/ManagementTokenProvider.js +0 -159
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/OrgManagementClient.d.ts +0 -521
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/OrgManagementClient.js +0 -840
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/PoliciesManagementClient.d.ts +0 -304
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/PoliciesManagementClient.js +0 -512
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/RolesManagementClient.d.ts +0 -296
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/RolesManagementClient.js +0 -711
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/StatisticsManagementClient.d.ts +0 -56
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/StatisticsManagementClient.js +0 -198
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UdfManagementClient.d.ts +0 -146
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UdfManagementClient.js +0 -264
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserActionManagementClient.d.ts +0 -44
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserActionManagementClient.js +0 -106
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserpoolManagementClient.d.ts +0 -142
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UserpoolManagementClient.js +0 -241
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UsersManagementClient.d.ts +0 -784
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/UsersManagementClient.js +0 -1251
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/WhitelistManagementClient.d.ts +0 -114
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/WhitelistManagementClient.js +0 -259
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/types.d.ts +0 -992
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/management/types.js +0 -96
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/platform/express/index.d.ts +0 -30
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/platform/express/index.js +0 -126
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/testing-helper.d.ts +0 -31
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/testing-helper.js +0 -67
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.d.ts +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/utils.js +0 -343
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/version.d.ts +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/lib/version.js +0 -5
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/graphql.v2.d.ts +0 -6241
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/graphql.v2.js +0 -251
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/index.d.ts +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/main/types/index.js +0 -3
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/index.d.ts +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/index.js +0 -8
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationClient.d.ts +0 -1118
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationClient.js +0 -2853
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationTokenProvider.d.ts +0 -13
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/AuthenticationTokenProvider.js +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/BaseAuthenticationClient.d.ts +0 -6
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/BaseAuthenticationClient.js +0 -28
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/EnterpriseAuthenticationClient.d.ts +0 -92
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/EnterpriseAuthenticationClient.js +0 -247
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/MfaAuthenticationClient.d.ts +0 -303
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/MfaAuthenticationClient.js +0 -662
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/QrCodeAuthenticationClient.d.ts +0 -232
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/QrCodeAuthenticationClient.js +0 -619
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/SocialAuthenticationClient.d.ts +0 -104
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/SocialAuthenticationClient.js +0 -177
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/types.d.ts +0 -341
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/authentication/types.js +0 -66
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/GraphqlClient.d.ts +0 -14
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/GraphqlClient.js +0 -121
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/HttpClient.d.ts +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/HttpClient.js +0 -145
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/PublicKeyManager.d.ts +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/common/PublicKeyManager.js +0 -78
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/graphqlapi.d.ts +0 -121
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/graphqlapi.js +0 -1999
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AclManagementClient.d.ts +0 -236
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AclManagementClient.js +0 -860
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AgreementManagementClient.d.ts +0 -65
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/AgreementManagementClient.js +0 -192
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ApplicationsManagementClient.d.ts +0 -216
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ApplicationsManagementClient.js +0 -530
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/GroupsManagementClient.d.ts +0 -188
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/GroupsManagementClient.js +0 -401
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/MFAManagementClient.d.ts +0 -58
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/MFAManagementClient.js +0 -123
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementClient.d.ts +0 -79
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementClient.js +0 -197
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementTokenProvider.d.ts +0 -39
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/ManagementTokenProvider.js +0 -153
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/OrgManagementClient.d.ts +0 -521
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/OrgManagementClient.js +0 -818
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/PoliciesManagementClient.d.ts +0 -304
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/PoliciesManagementClient.js +0 -509
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/RolesManagementClient.d.ts +0 -296
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/RolesManagementClient.js +0 -708
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/StatisticsManagementClient.d.ts +0 -56
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/StatisticsManagementClient.js +0 -195
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UdfManagementClient.d.ts +0 -146
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UdfManagementClient.js +0 -261
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserActionManagementClient.d.ts +0 -44
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserActionManagementClient.js +0 -103
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserpoolManagementClient.d.ts +0 -142
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UserpoolManagementClient.js +0 -238
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UsersManagementClient.d.ts +0 -784
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/UsersManagementClient.js +0 -1248
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/WhitelistManagementClient.d.ts +0 -114
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/WhitelistManagementClient.js +0 -256
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/types.d.ts +0 -992
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/management/types.js +0 -93
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/platform/express/index.d.ts +0 -30
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/platform/express/index.js +0 -123
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/testing-helper.d.ts +0 -31
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/testing-helper.js +0 -62
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.d.ts +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/utils.js +0 -336
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/version.d.ts +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/lib/version.js +0 -2
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/graphql.v2.d.ts +0 -6241
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/graphql.v2.js +0 -248
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/index.d.ts +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/module/types/index.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/index.d.ts +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/index.js +0 -30
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationClient.d.ts +0 -1118
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationClient.js +0 -2869
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationTokenProvider.d.ts +0 -13
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/AuthenticationTokenProvider.js +0 -66
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/BaseAuthenticationClient.d.ts +0 -6
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/BaseAuthenticationClient.js +0 -41
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/EnterpriseAuthenticationClient.d.ts +0 -92
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/EnterpriseAuthenticationClient.js +0 -260
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/MfaAuthenticationClient.d.ts +0 -303
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/MfaAuthenticationClient.js +0 -675
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/QrCodeAuthenticationClient.d.ts +0 -232
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/QrCodeAuthenticationClient.js +0 -632
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/SocialAuthenticationClient.d.ts +0 -104
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/SocialAuthenticationClient.js +0 -190
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/types.d.ts +0 -341
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/authentication/types.js +0 -79
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/GraphqlClient.d.ts +0 -14
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/GraphqlClient.js +0 -137
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/HttpClient.d.ts +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/HttpClient.js +0 -161
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/PublicKeyManager.d.ts +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/common/PublicKeyManager.js +0 -91
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/graphqlapi.d.ts +0 -121
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/graphqlapi.js +0 -2012
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AclManagementClient.d.ts +0 -236
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AclManagementClient.js +0 -873
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AgreementManagementClient.d.ts +0 -65
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/AgreementManagementClient.js +0 -205
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ApplicationsManagementClient.d.ts +0 -216
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ApplicationsManagementClient.js +0 -543
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/GroupsManagementClient.d.ts +0 -188
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/GroupsManagementClient.js +0 -414
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/MFAManagementClient.d.ts +0 -58
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/MFAManagementClient.js +0 -136
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementClient.d.ts +0 -79
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementClient.js +0 -213
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementTokenProvider.d.ts +0 -39
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/ManagementTokenProvider.js +0 -169
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/OrgManagementClient.d.ts +0 -521
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/OrgManagementClient.js +0 -850
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/PoliciesManagementClient.d.ts +0 -304
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/PoliciesManagementClient.js +0 -522
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/RolesManagementClient.d.ts +0 -296
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/RolesManagementClient.js +0 -721
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/StatisticsManagementClient.d.ts +0 -56
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/StatisticsManagementClient.js +0 -208
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UdfManagementClient.d.ts +0 -146
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UdfManagementClient.js +0 -274
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserActionManagementClient.d.ts +0 -44
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserActionManagementClient.js +0 -116
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserpoolManagementClient.d.ts +0 -142
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UserpoolManagementClient.js +0 -251
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UsersManagementClient.d.ts +0 -784
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/UsersManagementClient.js +0 -1261
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/WhitelistManagementClient.d.ts +0 -114
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/WhitelistManagementClient.js +0 -269
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/types.d.ts +0 -992
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/management/types.js +0 -106
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/platform/express/index.d.ts +0 -30
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/platform/express/index.js +0 -136
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/testing-helper.d.ts +0 -31
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/testing-helper.js +0 -77
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.d.ts +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/utils.js +0 -353
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/version.d.ts +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/lib/version.js +0 -15
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/graphql.v2.d.ts +0 -6241
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/graphql.v2.js +0 -261
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/index.d.ts +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/build/umd/types/index.js +0 -13
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/CHANGELOG.md +0 -413
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/LICENSE +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/README.md +0 -709
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/UPGRADE_GUIDE.md +0 -162
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.js +0 -1715
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.map +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.min.js +0 -3
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/dist/axios.min.map +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/index.d.ts +0 -157
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/index.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/README.md +0 -37
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/http.js +0 -279
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/adapters/xhr.js +0 -180
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/axios.js +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/Cancel.js +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/CancelToken.js +0 -57
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/cancel/isCancel.js +0 -5
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/Axios.js +0 -94
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/InterceptorManager.js +0 -52
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/README.md +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/buildFullPath.js +0 -20
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/createError.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/dispatchRequest.js +0 -79
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/enhanceError.js +0 -42
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/mergeConfig.js +0 -73
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/settle.js +0 -25
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/core/transformData.js +0 -20
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/defaults.js +0 -97
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/README.md +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/bind.js +0 -11
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/buildURL.js +0 -71
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/cookies.js +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/helpers/spread.js +0 -27
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/lib/utils.js +0 -344
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/axios/package.json +0 -84
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/LICENSE +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/README.md +0 -155
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/http.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/https.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/index.js +0 -322
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/node_modules/follow-redirects/package.json +0 -60
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/package.json +0 -129
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/tests/index.html +0 -21
- data/lib/authing_ruby/test/js_sdk_test/node_modules/authing-js-sdk/tsconfig.brower.json +0 -45
- 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 +0 -41
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/CHANGELOG.md +0 -685
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/LICENSE +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/README.md +0 -800
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/UPGRADE_GUIDE.md +0 -162
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.js +0 -1756
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.map +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.min.js +0 -3
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/dist/axios.min.map +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/index.d.ts +0 -161
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/index.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/README.md +0 -37
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/http.js +0 -303
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/adapters/xhr.js +0 -179
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/axios.js +0 -56
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/Cancel.js +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/CancelToken.js +0 -57
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/cancel/isCancel.js +0 -5
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/Axios.js +0 -95
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/InterceptorManager.js +0 -52
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/README.md +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/buildFullPath.js +0 -20
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/createError.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/dispatchRequest.js +0 -79
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/enhanceError.js +0 -42
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/mergeConfig.js +0 -87
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/settle.js +0 -25
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/core/transformData.js +0 -20
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/defaults.js +0 -98
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/README.md +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/bind.js +0 -11
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/buildURL.js +0 -70
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/cookies.js +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isAxiosError.js +0 -11
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/helpers/spread.js +0 -27
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/lib/utils.js +0 -351
- data/lib/authing_ruby/test/js_sdk_test/node_modules/axios/package.json +0 -86
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/CONTRIBUTING.md +0 -28
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/LICENSE +0 -24
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/README.md +0 -249
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/aes.js +0 -234
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/bower.json +0 -35
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/cipher-core.js +0 -890
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/core.js +0 -797
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/crypto-js.js +0 -6059
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/docs/QuickStartGuide.wiki +0 -470
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-base64.js +0 -136
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-hex.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-latin1.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-utf16.js +0 -149
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/enc-utf8.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/evpkdf.js +0 -134
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/format-hex.js +0 -66
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/format-openssl.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-md5.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-ripemd160.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha1.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha224.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha256.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha3.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha384.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac-sha512.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/hmac.js +0 -143
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/index.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/lib-typedarrays.js +0 -76
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/md5.js +0 -268
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-cfb.js +0 -80
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ctr-gladman.js +0 -116
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ctr.js +0 -58
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ecb.js +0 -40
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/mode-ofb.js +0 -54
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/package.json +0 -38
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-ansix923.js +0 -49
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-iso10126.js +0 -44
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-iso97971.js +0 -40
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-nopadding.js +0 -30
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-pkcs7.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pad-zeropadding.js +0 -47
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/pbkdf2.js +0 -145
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rabbit-legacy.js +0 -190
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rabbit.js +0 -192
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/rc4.js +0 -139
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/ripemd160.js +0 -267
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha1.js +0 -150
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha224.js +0 -80
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha256.js +0 -199
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha3.js +0 -326
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha384.js +0 -83
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/sha512.js +0 -326
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/tripledes.js +0 -779
- data/lib/authing_ruby/test/js_sdk_test/node_modules/crypto-js/x64-core.js +0 -304
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/CHANGELOG.md +0 -395
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/LICENSE +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/Makefile +0 -58
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/README.md +0 -368
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/karma.conf.js +0 -70
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/node.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/package.json +0 -43
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/browser.js +0 -195
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/debug.js +0 -225
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/index.js +0 -10
- data/lib/authing_ruby/test/js_sdk_test/node_modules/debug/src/node.js +0 -186
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/CHANGELOG.md +0 -210
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/LICENSE +0 -23
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/README.md +0 -275
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/config.js +0 -11
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/lib/cli-options.js +0 -13
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/lib/env-options.js +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/lib/main.js +0 -118
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/package.json +0 -57
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/types/index.d.ts +0 -59
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/types/test.ts +0 -19
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/types/tsconfig.json +0 -15
- data/lib/authing_ruby/test/js_sdk_test/node_modules/dotenv/types/tslint.json +0 -6
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/LICENSE +0 -18
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/README.md +0 -148
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/debug.js +0 -14
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/http.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/https.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/index.js +0 -531
- data/lib/authing_ruby/test/js_sdk_test/node_modules/follow-redirects/package.json +0 -59
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/LICENSE.txt +0 -107
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/README.md +0 -192
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.js +0 -249
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.min.js +0 -2
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/bin/jsencrypt.min.js.LICENSE.txt +0 -8
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncrypt.d.ts +0 -116
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncrypt.js +0 -186
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncryptRSAKey.d.ts +0 -142
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/JSEncryptRSAKey.js +0 -315
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/index.d.ts +0 -3
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/index.js +0 -3
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/asn1.d.ts +0 -51
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/asn1.js +0 -565
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/base64.d.ts +0 -5
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/base64.js +0 -88
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/hex.d.ts +0 -3
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/hex.js +0 -64
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/int10.d.ts +0 -9
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/int10.js +0 -87
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/oids.d.ts +0 -9778
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/asn1js/oids.js +0 -1962
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/base64.d.ts +0 -3
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/base64.js +0 -76
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/jsbn.d.ts +0 -98
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js +0 -1754
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/prng4.d.ts +0 -10
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/prng4.js +0 -46
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rng.d.ts +0 -3
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rng.js +0 -76
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rsa.d.ts +0 -23
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/rsa.js +0 -373
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/util.d.ts +0 -7
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsbn/util.js +0 -58
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js +0 -1593
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js +0 -69
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/lib/version.json +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jsencrypt/package.json +0 -49
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/Gruntfile.js +0 -78
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/LICENSE +0 -21
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/README.md +0 -55
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/bower.json +0 -20
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/build/jwt-decode.js +0 -125
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/build/jwt-decode.min.js +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/jwt-decode.html +0 -2
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/atob.js +0 -38
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/base64_url_decode.js +0 -33
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/lib/index.js +0 -26
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/package.json +0 -37
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/standalone.js +0 -16
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/test/tests.js +0 -53
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/test_harness.html +0 -29
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/testem.yml +0 -46
- data/lib/authing_ruby/test/js_sdk_test/node_modules/jwt-decode/testem_dev.yml +0 -1
- data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/index.js +0 -152
- data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/license.md +0 -21
- data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/package.json +0 -37
- data/lib/authing_ruby/test/js_sdk_test/node_modules/ms/readme.md +0 -51
@@ -1,39 +0,0 @@
|
|
1
|
-
import { GraphqlClient } from './../common/GraphqlClient';
|
2
|
-
import { ManagementClientOptions } from './types';
|
3
|
-
export declare class ManagementTokenProvider {
|
4
|
-
/** 内部变量,请不要直接引用 **/
|
5
|
-
/** 该用户池对应的 accessToken **/
|
6
|
-
private _accessToken;
|
7
|
-
/** accessToken 过期时间,为 unix 时间戳 **/
|
8
|
-
private _accessTokenExpriredAt;
|
9
|
-
options: ManagementClientOptions;
|
10
|
-
graphqlClient: GraphqlClient;
|
11
|
-
constructor(options: ManagementClientOptions, graphqlClient: GraphqlClient);
|
12
|
-
/**
|
13
|
-
* 发送 GraphQL 接口请求获取 accessToken
|
14
|
-
*
|
15
|
-
* @returns
|
16
|
-
* @memberof ManagementTokenProvider
|
17
|
-
*/
|
18
|
-
private getClientWhenSdkInit;
|
19
|
-
/**
|
20
|
-
* 刷新 accessToken
|
21
|
-
*
|
22
|
-
* @memberof ManagementTokenProvider
|
23
|
-
*/
|
24
|
-
private refreshToken;
|
25
|
-
/**
|
26
|
-
* 获取用户池 accessToken
|
27
|
-
*
|
28
|
-
* @returns {Promise<string>}
|
29
|
-
* @memberof ManagementTokenProvider
|
30
|
-
*/
|
31
|
-
getToken(): Promise<string>;
|
32
|
-
/**
|
33
|
-
* 刷新用户池 accessToken
|
34
|
-
*
|
35
|
-
* @returns
|
36
|
-
* @memberof ManagementTokenProvider
|
37
|
-
*/
|
38
|
-
private getAccessTokenFromServer;
|
39
|
-
}
|
@@ -1,169 +0,0 @@
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
-
});
|
9
|
-
};
|
10
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
12
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
13
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
14
|
-
function step(op) {
|
15
|
-
if (f) throw new TypeError("Generator is already executing.");
|
16
|
-
while (_) try {
|
17
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
18
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
19
|
-
switch (op[0]) {
|
20
|
-
case 0: case 1: t = op; break;
|
21
|
-
case 4: _.label++; return { value: op[1], done: false };
|
22
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
23
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
24
|
-
default:
|
25
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
26
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
27
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
28
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
29
|
-
if (t[2]) _.ops.pop();
|
30
|
-
_.trys.pop(); continue;
|
31
|
-
}
|
32
|
-
op = body.call(thisArg, _);
|
33
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
34
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
35
|
-
}
|
36
|
-
};
|
37
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
38
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
39
|
-
};
|
40
|
-
(function (factory) {
|
41
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
42
|
-
var v = factory(require, exports);
|
43
|
-
if (v !== undefined) module.exports = v;
|
44
|
-
}
|
45
|
-
else if (typeof define === "function" && define.amd) {
|
46
|
-
define(["require", "exports", "jwt-decode", "../graphqlapi"], factory);
|
47
|
-
}
|
48
|
-
})(function (require, exports) {
|
49
|
-
"use strict";
|
50
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
51
|
-
exports.ManagementTokenProvider = void 0;
|
52
|
-
var jwt_decode_1 = __importDefault(require("jwt-decode"));
|
53
|
-
var graphqlapi_1 = require("../graphqlapi");
|
54
|
-
var ManagementTokenProvider = /** @class */ (function () {
|
55
|
-
function ManagementTokenProvider(options, graphqlClient) {
|
56
|
-
this.options = options;
|
57
|
-
this.graphqlClient = graphqlClient;
|
58
|
-
var accessToken = this.options.accessToken;
|
59
|
-
if (accessToken) {
|
60
|
-
this._accessToken = accessToken;
|
61
|
-
var decoded = jwt_decode_1.default(accessToken);
|
62
|
-
var exp = decoded.exp;
|
63
|
-
this._accessTokenExpriredAt = exp * 1000;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
/**
|
67
|
-
* 发送 GraphQL 接口请求获取 accessToken
|
68
|
-
*
|
69
|
-
* @returns
|
70
|
-
* @memberof ManagementTokenProvider
|
71
|
-
*/
|
72
|
-
ManagementTokenProvider.prototype.getClientWhenSdkInit = function () {
|
73
|
-
return __awaiter(this, void 0, void 0, function () {
|
74
|
-
var res;
|
75
|
-
return __generator(this, function (_a) {
|
76
|
-
switch (_a.label) {
|
77
|
-
case 0: return [4 /*yield*/, graphqlapi_1.getAccessToken(this.graphqlClient, {
|
78
|
-
userPoolId: this.options.userPoolId,
|
79
|
-
secret: this.options.secret
|
80
|
-
})];
|
81
|
-
case 1:
|
82
|
-
res = _a.sent();
|
83
|
-
return [2 /*return*/, res.accessToken.accessToken];
|
84
|
-
}
|
85
|
-
});
|
86
|
-
});
|
87
|
-
};
|
88
|
-
/**
|
89
|
-
* 刷新 accessToken
|
90
|
-
*
|
91
|
-
* @memberof ManagementTokenProvider
|
92
|
-
*/
|
93
|
-
ManagementTokenProvider.prototype.refreshToken = function () {
|
94
|
-
return __awaiter(this, void 0, void 0, function () {
|
95
|
-
var res;
|
96
|
-
return __generator(this, function (_a) {
|
97
|
-
switch (_a.label) {
|
98
|
-
case 0: return [4 /*yield*/, graphqlapi_1.refreshAccessToken(this.graphqlClient, {
|
99
|
-
accessToken: this.options.accessToken
|
100
|
-
})];
|
101
|
-
case 1:
|
102
|
-
res = _a.sent();
|
103
|
-
return [2 /*return*/, res.refreshAccessToken.accessToken];
|
104
|
-
}
|
105
|
-
});
|
106
|
-
});
|
107
|
-
};
|
108
|
-
/**
|
109
|
-
* 获取用户池 accessToken
|
110
|
-
*
|
111
|
-
* @returns {Promise<string>}
|
112
|
-
* @memberof ManagementTokenProvider
|
113
|
-
*/
|
114
|
-
ManagementTokenProvider.prototype.getToken = function () {
|
115
|
-
return __awaiter(this, void 0, void 0, function () {
|
116
|
-
return __generator(this, function (_a) {
|
117
|
-
switch (_a.label) {
|
118
|
-
case 0:
|
119
|
-
if (this.options.accessToken) {
|
120
|
-
return [2 /*return*/, this.options.accessToken];
|
121
|
-
}
|
122
|
-
// 缓存到 accessToken 过期前 3600 s
|
123
|
-
if (this._accessToken &&
|
124
|
-
this._accessTokenExpriredAt > new Date().getTime() + 3600 * 1000) {
|
125
|
-
return [2 /*return*/, this._accessToken];
|
126
|
-
}
|
127
|
-
return [4 /*yield*/, this.getAccessTokenFromServer()];
|
128
|
-
case 1: return [2 /*return*/, _a.sent()];
|
129
|
-
}
|
130
|
-
});
|
131
|
-
});
|
132
|
-
};
|
133
|
-
/**
|
134
|
-
* 刷新用户池 accessToken
|
135
|
-
*
|
136
|
-
* @returns
|
137
|
-
* @memberof ManagementTokenProvider
|
138
|
-
*/
|
139
|
-
ManagementTokenProvider.prototype.getAccessTokenFromServer = function () {
|
140
|
-
return __awaiter(this, void 0, void 0, function () {
|
141
|
-
var accessToken, decoded, exp;
|
142
|
-
return __generator(this, function (_a) {
|
143
|
-
switch (_a.label) {
|
144
|
-
case 0:
|
145
|
-
accessToken = null;
|
146
|
-
if (!this.options.secret) return [3 /*break*/, 2];
|
147
|
-
return [4 /*yield*/, this.getClientWhenSdkInit()];
|
148
|
-
case 1:
|
149
|
-
accessToken = _a.sent();
|
150
|
-
return [3 /*break*/, 4];
|
151
|
-
case 2: return [4 /*yield*/, this.refreshToken()];
|
152
|
-
case 3:
|
153
|
-
accessToken = _a.sent();
|
154
|
-
_a.label = 4;
|
155
|
-
case 4:
|
156
|
-
this._accessToken = accessToken;
|
157
|
-
decoded = jwt_decode_1.default(this._accessToken);
|
158
|
-
exp = decoded.exp;
|
159
|
-
this._accessTokenExpriredAt = exp * 1000;
|
160
|
-
return [2 /*return*/, this._accessToken];
|
161
|
-
}
|
162
|
-
});
|
163
|
-
});
|
164
|
-
};
|
165
|
-
return ManagementTokenProvider;
|
166
|
-
}());
|
167
|
-
exports.ManagementTokenProvider = ManagementTokenProvider;
|
168
|
-
});
|
169
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWFuYWdlbWVudFRva2VuUHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvbGliL21hbmFnZW1lbnQvTWFuYWdlbWVudFRva2VuUHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBRUEsMERBQW1DO0lBQ25DLDRDQUFtRTtJQUVuRTtRQVVFLGlDQUFZLE9BQWdDLEVBQUUsYUFBNEI7WUFDeEUsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7WUFDdkIsSUFBSSxDQUFDLGFBQWEsR0FBRyxhQUFhLENBQUM7WUFFM0IsSUFBQSxXQUFXLEdBQUssSUFBSSxDQUFDLE9BQU8sWUFBakIsQ0FBa0I7WUFDckMsSUFBSSxXQUFXLEVBQUU7Z0JBQ2YsSUFBSSxDQUFDLFlBQVksR0FBRyxXQUFXLENBQUM7Z0JBQ2hDLElBQU0sT0FBTyxHQUF1QixvQkFBUyxDQUFDLFdBQVcsQ0FBQyxDQUFDO2dCQUNuRCxJQUFBLEdBQUcsR0FBSyxPQUFPLElBQVosQ0FBYTtnQkFDeEIsSUFBSSxDQUFDLHNCQUFzQixHQUFHLEdBQUcsR0FBRyxJQUFJLENBQUM7YUFDMUM7UUFDSCxDQUFDO1FBRUQ7Ozs7O1dBS0c7UUFDVyxzREFBb0IsR0FBbEM7Ozs7O2dDQUNjLHFCQUFNLDJCQUFjLENBQUMsSUFBSSxDQUFDLGFBQWEsRUFBRTtnQ0FDbkQsVUFBVSxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsVUFBVTtnQ0FDbkMsTUFBTSxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTTs2QkFDNUIsQ0FBQyxFQUFBOzs0QkFISSxHQUFHLEdBQUcsU0FHVjs0QkFDRixzQkFBTyxHQUFHLENBQUMsV0FBVyxDQUFDLFdBQVcsRUFBQzs7OztTQUNwQztRQUVEOzs7O1dBSUc7UUFDVyw4Q0FBWSxHQUExQjs7Ozs7Z0NBQ2MscUJBQU0sK0JBQWtCLENBQUMsSUFBSSxDQUFDLGFBQWEsRUFBRTtnQ0FDdkQsV0FBVyxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsV0FBVzs2QkFDdEMsQ0FBQyxFQUFBOzs0QkFGSSxHQUFHLEdBQUcsU0FFVjs0QkFDRixzQkFBTyxHQUFHLENBQUMsa0JBQWtCLENBQUMsV0FBVyxFQUFDOzs7O1NBQzNDO1FBRUQ7Ozs7O1dBS0c7UUFDRywwQ0FBUSxHQUFkOzs7Ozs0QkFDRSxJQUFJLElBQUksQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFO2dDQUM1QixzQkFBTyxJQUFJLENBQUMsT0FBTyxDQUFDLFdBQVcsRUFBQzs2QkFDakM7NEJBRUQsNkJBQTZCOzRCQUM3QixJQUNFLElBQUksQ0FBQyxZQUFZO2dDQUNqQixJQUFJLENBQUMsc0JBQXNCLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQyxPQUFPLEVBQUUsR0FBRyxJQUFJLEdBQUcsSUFBSSxFQUNoRTtnQ0FDQSxzQkFBTyxJQUFJLENBQUMsWUFBWSxFQUFDOzZCQUMxQjs0QkFDTSxxQkFBTSxJQUFJLENBQUMsd0JBQXdCLEVBQUUsRUFBQTtnQ0FBNUMsc0JBQU8sU0FBcUMsRUFBQzs7OztTQUM5QztRQUVEOzs7OztXQUtHO1FBQ1csMERBQXdCLEdBQXRDOzs7Ozs7NEJBRU0sV0FBVyxHQUFHLElBQUksQ0FBQztpQ0FDbkIsSUFBSSxDQUFDLE9BQU8sQ0FBQyxNQUFNLEVBQW5CLHdCQUFtQjs0QkFDUCxxQkFBTSxJQUFJLENBQUMsb0JBQW9CLEVBQUUsRUFBQTs7NEJBQS9DLFdBQVcsR0FBRyxTQUFpQyxDQUFDOztnQ0FFbEMscUJBQU0sSUFBSSxDQUFDLFlBQVksRUFBRSxFQUFBOzs0QkFBdkMsV0FBVyxHQUFHLFNBQXlCLENBQUM7Ozs0QkFHMUMsSUFBSSxDQUFDLFlBQVksR0FBRyxXQUFXLENBQUM7NEJBQzFCLE9BQU8sR0FBdUIsb0JBQVMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUM7NEJBQ3pELEdBQUcsR0FBSyxPQUFPLElBQVosQ0FBYTs0QkFDeEIsSUFBSSxDQUFDLHNCQUFzQixHQUFHLEdBQUcsR0FBRyxJQUFJLENBQUM7NEJBQ3pDLHNCQUFPLElBQUksQ0FBQyxZQUFZLEVBQUM7Ozs7U0FDMUI7UUFDSCw4QkFBQztJQUFELENBQUMsQUEzRkQsSUEyRkM7SUEzRlksMERBQXVCIn0=
|
@@ -1,521 +0,0 @@
|
|
1
|
-
import { GraphqlClient } from './../common/GraphqlClient';
|
2
|
-
import { ManagementTokenProvider } from './ManagementTokenProvider';
|
3
|
-
import { ExtendedOrg, ManagementClientOptions } from './types';
|
4
|
-
import { CommonMessage, PaginatedAuthorizedResources, PaginatedUsers, ResourceType } from '../../types/graphql.v2';
|
5
|
-
import { HttpClient } from '../common/HttpClient';
|
6
|
-
/**
|
7
|
-
* @class OrgManagementClient 管理组织机构
|
8
|
-
* @description 一个 Authing 用户池可以创建多个组织机构。此模块用于管理 Authing 组织机构,可以进行组织机构的增删改查、添加删除移动节点、导入组织机构等操作。
|
9
|
-
*
|
10
|
-
* @example
|
11
|
-
*
|
12
|
-
* 请使用以下方式使用该模块:
|
13
|
-
* \`\`\`javascript
|
14
|
-
* import { ManagementClient } from "authing-js-sdk"
|
15
|
-
* const managementClient = new ManagementClient({
|
16
|
-
* userPoolId: "YOUR_USERPOOL_ID",
|
17
|
-
* secret: "YOUR_USERPOOL_SECRET",
|
18
|
-
* })
|
19
|
-
* managementClient.org.list // 获取用户池组织机构列表
|
20
|
-
* managementClient.org.moveNode // 获取组织机构详情
|
21
|
-
* managementClient.org.listMembers // 获取节点用户列表
|
22
|
-
* \`\`\`
|
23
|
-
*
|
24
|
-
* @name OrgManagementClient
|
25
|
-
*/
|
26
|
-
export declare class OrgManagementClient {
|
27
|
-
options: ManagementClientOptions;
|
28
|
-
graphqlClient: GraphqlClient;
|
29
|
-
tokenProvider: ManagementTokenProvider;
|
30
|
-
httpClient: HttpClient;
|
31
|
-
constructor(options: ManagementClientOptions, graphqlClient: GraphqlClient, httpClient: HttpClient, tokenProvider: ManagementTokenProvider);
|
32
|
-
private buildTree;
|
33
|
-
/**
|
34
|
-
* @name create
|
35
|
-
* @name_zh 创建组织机构
|
36
|
-
* @description 创建组织机构,会创建一个只有一个节点的组织机构。
|
37
|
-
* 如果你想将一个完整的组织树导入进来,请使用 importByJson 方法。
|
38
|
-
*
|
39
|
-
* @param {string} name 组织机构名称,该名称会作为该组织机构根节点的名称。
|
40
|
-
* @param {string} [description] 根节点描述
|
41
|
-
* @param {string} [code] 根节点唯一标志,必须为合法的英文字符。
|
42
|
-
*
|
43
|
-
* @example
|
44
|
-
*
|
45
|
-
* const org = await managementClient.org.create('北京非凡科技', '北京非凡科技有限公司', 'feifan');
|
46
|
-
*
|
47
|
-
* @memberof OrgManagementClient
|
48
|
-
*/
|
49
|
-
create(name: string, description?: string, code?: string): Promise<{
|
50
|
-
id: string;
|
51
|
-
rootNode: {
|
52
|
-
id: string;
|
53
|
-
orgId?: string;
|
54
|
-
name: string;
|
55
|
-
nameI18n?: string;
|
56
|
-
description?: string;
|
57
|
-
descriptionI18n?: string;
|
58
|
-
order?: number;
|
59
|
-
code?: string;
|
60
|
-
root?: boolean;
|
61
|
-
depth?: number;
|
62
|
-
path: string[];
|
63
|
-
createdAt?: string;
|
64
|
-
updatedAt?: string;
|
65
|
-
children?: string[];
|
66
|
-
};
|
67
|
-
nodes: {
|
68
|
-
id: string;
|
69
|
-
orgId?: string;
|
70
|
-
name: string;
|
71
|
-
nameI18n?: string;
|
72
|
-
description?: string;
|
73
|
-
descriptionI18n?: string;
|
74
|
-
order?: number;
|
75
|
-
code?: string;
|
76
|
-
root?: boolean;
|
77
|
-
depth?: number;
|
78
|
-
path: string[];
|
79
|
-
createdAt?: string;
|
80
|
-
updatedAt?: string;
|
81
|
-
children?: string[];
|
82
|
-
}[];
|
83
|
-
}>;
|
84
|
-
/**
|
85
|
-
* @name deleteById
|
86
|
-
* @name_zh 删除组织机构
|
87
|
-
* @description 删除组织机构树
|
88
|
-
* @param {string} id 组织机构 ID
|
89
|
-
*
|
90
|
-
* @returns {Promise<CommonMessage>}
|
91
|
-
* @memberof OrgManagementClient
|
92
|
-
*/
|
93
|
-
deleteById(id: string): Promise<CommonMessage>;
|
94
|
-
/**
|
95
|
-
* @name list
|
96
|
-
* @name_zh 获取用户池组织机构列表
|
97
|
-
* @description 获取用户池组织机构列表
|
98
|
-
*
|
99
|
-
* @param {number} [page=1]
|
100
|
-
* @param {number} [limit=10]
|
101
|
-
*
|
102
|
-
* @example
|
103
|
-
*
|
104
|
-
* const { totalCount, list } = await managementClient.org.list()
|
105
|
-
*
|
106
|
-
* @returns
|
107
|
-
* @memberof OrgManagementClient
|
108
|
-
*/
|
109
|
-
list(page?: number, limit?: number): Promise<{
|
110
|
-
totalCount: number;
|
111
|
-
list: ExtendedOrg[];
|
112
|
-
}>;
|
113
|
-
/**
|
114
|
-
* @name addNode
|
115
|
-
* @name_zh 添加节点
|
116
|
-
* @description 在组织机构中添加一个节点
|
117
|
-
*
|
118
|
-
* @param {string} orgId 组织机构 ID
|
119
|
-
* @param {string} parentNodeId 父节点 ID
|
120
|
-
* @param {Object} data 节点数据
|
121
|
-
* @param {string} data.name 节点名称
|
122
|
-
* @param {string} [data.code] 节点唯一标志
|
123
|
-
* @param {string} [data.description] 节点描述信息
|
124
|
-
*
|
125
|
-
* @example
|
126
|
-
*
|
127
|
-
* const org = await managementClient.org.create('北京非凡科技', '北京非凡科技有限公司', 'feifan');
|
128
|
-
* const { id: orgId, rootNode } = org
|
129
|
-
* const newOrg = await managementClient.org.addNode(orgId, rootNode.id, { name: '运营部门' })
|
130
|
-
*
|
131
|
-
* // newOrg.nodes.length 现在为 2
|
132
|
-
*
|
133
|
-
* @returns {Promise<Node>}
|
134
|
-
* @memberof OrgManagementClient
|
135
|
-
*/
|
136
|
-
addNode(orgId: string, parentNodeId: string, data: {
|
137
|
-
name: string;
|
138
|
-
code?: string;
|
139
|
-
order?: number;
|
140
|
-
nameI18n?: string;
|
141
|
-
description?: string;
|
142
|
-
descriptionI18n?: string;
|
143
|
-
}): Promise<{
|
144
|
-
id: string;
|
145
|
-
orgId?: string;
|
146
|
-
name: string;
|
147
|
-
nameI18n?: string;
|
148
|
-
description?: string;
|
149
|
-
descriptionI18n?: string;
|
150
|
-
order?: number;
|
151
|
-
code?: string;
|
152
|
-
root?: boolean;
|
153
|
-
depth?: number;
|
154
|
-
path: string[];
|
155
|
-
createdAt?: string;
|
156
|
-
updatedAt?: string;
|
157
|
-
children?: string[];
|
158
|
-
}>;
|
159
|
-
/**
|
160
|
-
* @name getNodeById
|
161
|
-
* @name_zh 获取某个节点详情
|
162
|
-
* @description 获取某个节点详情
|
163
|
-
*
|
164
|
-
* @param {string} nodeId 节点 ID
|
165
|
-
*
|
166
|
-
* @example
|
167
|
-
*
|
168
|
-
* const node = await managementClient.org.getNodeById('NODE_ID');
|
169
|
-
*
|
170
|
-
* // newOrg.nodes.length 现在为 2
|
171
|
-
*
|
172
|
-
* @returns {Promise<Node>}
|
173
|
-
* @memberof OrgManagementClient
|
174
|
-
*/
|
175
|
-
getNodeById(nodeId: string): Promise<{
|
176
|
-
id: string;
|
177
|
-
orgId?: string;
|
178
|
-
name: string;
|
179
|
-
nameI18n?: string;
|
180
|
-
description?: string;
|
181
|
-
descriptionI18n?: string;
|
182
|
-
order?: number;
|
183
|
-
code?: string;
|
184
|
-
root?: boolean;
|
185
|
-
depth?: number;
|
186
|
-
path: string[];
|
187
|
-
createdAt?: string;
|
188
|
-
updatedAt?: string;
|
189
|
-
children?: string[];
|
190
|
-
}>;
|
191
|
-
/**
|
192
|
-
* @name updateNode
|
193
|
-
* @name_zh 修改节点
|
194
|
-
* @description 修改节点数据
|
195
|
-
*
|
196
|
-
* @param {string} id 节点 ID
|
197
|
-
* @param {Object} updates 修改数据
|
198
|
-
* @param {string} [updates.name] 节点名称
|
199
|
-
* @param {string} [updates.code] 节点唯一标志
|
200
|
-
* @param {string} [updates.description] 节点描述信息
|
201
|
-
*
|
202
|
-
* @example
|
203
|
-
*
|
204
|
-
* await managementClient.org.updateNode("NDOEID", {
|
205
|
-
* name: '新的节点名称'
|
206
|
-
* })
|
207
|
-
*
|
208
|
-
* @returns {Promise<Org>}
|
209
|
-
* @memberof OrgManagementClient
|
210
|
-
*/
|
211
|
-
updateNode(id: string, updates: {
|
212
|
-
name?: string;
|
213
|
-
code?: string;
|
214
|
-
order?: number;
|
215
|
-
nameI18n?: string;
|
216
|
-
description?: string;
|
217
|
-
descriptionI18n?: string;
|
218
|
-
}): Promise<{
|
219
|
-
id: string;
|
220
|
-
orgId?: string;
|
221
|
-
name: string;
|
222
|
-
nameI18n?: string;
|
223
|
-
description?: string;
|
224
|
-
descriptionI18n?: string;
|
225
|
-
order?: number;
|
226
|
-
code?: string;
|
227
|
-
root?: boolean;
|
228
|
-
depth?: number;
|
229
|
-
path: string[];
|
230
|
-
createdAt?: string;
|
231
|
-
updatedAt?: string;
|
232
|
-
children?: string[];
|
233
|
-
users: {
|
234
|
-
totalCount: number;
|
235
|
-
};
|
236
|
-
}>;
|
237
|
-
/**
|
238
|
-
* @name findById
|
239
|
-
* @name_zh 获取组织机构详情
|
240
|
-
* @description 通过组织机构 ID 获取组织机构详情
|
241
|
-
*
|
242
|
-
* @param {string} id 组织机构 ID
|
243
|
-
*
|
244
|
-
* @returns {Promise<Org>}
|
245
|
-
* @memberof OrgManagementClient
|
246
|
-
*/
|
247
|
-
findById(id: string): Promise<ExtendedOrg>;
|
248
|
-
/**
|
249
|
-
* @name deleteNode
|
250
|
-
* @name_zh 删除节点
|
251
|
-
* @description 删除组织机构树中的某一个节点
|
252
|
-
*
|
253
|
-
* @param {string} orgId 组织机构 ID
|
254
|
-
* @param {string} nodeId 节点 ID
|
255
|
-
*
|
256
|
-
* @returns {Promise<CommonMessage>}
|
257
|
-
* @memberof OrgManagementClient
|
258
|
-
*/
|
259
|
-
deleteNode(orgId: string, nodeId: string): Promise<{
|
260
|
-
message?: string;
|
261
|
-
code?: number;
|
262
|
-
}>;
|
263
|
-
/**
|
264
|
-
* @name moveNode 移动节点
|
265
|
-
* @name_zh 移动节点
|
266
|
-
* @description 移动组织机构节点,移动某节点时需要指定该节点新的父节点。注意不能将一个节点移动到自己的子节点下面。
|
267
|
-
*
|
268
|
-
* @param {string} orgId 组织机构 ID
|
269
|
-
* @param {string} nodeId 需要移动的节点 ID
|
270
|
-
* @param {string} targetParentId 目标父节点 ID
|
271
|
-
*
|
272
|
-
* @example
|
273
|
-
*
|
274
|
-
* await managementClient.org.moveNode("ORGID", "NODEID", "TRAGET_NODE_ID")
|
275
|
-
*
|
276
|
-
* @returns {Promise<Org>} 最新的树结构
|
277
|
-
* @memberof OrgManagementClient
|
278
|
-
*
|
279
|
-
*/
|
280
|
-
moveNode(orgId: string, nodeId: string, targetParentId: string): Promise<ExtendedOrg>;
|
281
|
-
/**
|
282
|
-
* @name isRootNode
|
283
|
-
* @name_zh 判断是否为根节点
|
284
|
-
* @description 判断一个节点是不是组织树的根节点
|
285
|
-
*
|
286
|
-
* @param {string} orgId 组织机构 ID
|
287
|
-
* @param {string} nodeId 组织机构 ID
|
288
|
-
*
|
289
|
-
*
|
290
|
-
* @returns {Promise<boolean>}
|
291
|
-
* @memberof OrgManagementClient
|
292
|
-
*/
|
293
|
-
isRootNode(orgId: string, nodeId: string): Promise<boolean>;
|
294
|
-
/**
|
295
|
-
* @name listChildren
|
296
|
-
* @name_zh 获取子节点列表
|
297
|
-
* @description 查询一个节点的子节点列表
|
298
|
-
*
|
299
|
-
* @param {string} orgId 组织机构 ID
|
300
|
-
* @param {string} nodeId 组织机构 ID
|
301
|
-
*
|
302
|
-
* @example
|
303
|
-
*
|
304
|
-
* // 子节点列表
|
305
|
-
* cosnt children = await managementClient.org.moveNode("ORGID", "NODEID")
|
306
|
-
*
|
307
|
-
*
|
308
|
-
* @returns {Promise<Node[]>}
|
309
|
-
* @memberof OrgManagementClient
|
310
|
-
*/
|
311
|
-
listChildren(nodeId: string): Promise<{
|
312
|
-
id: string;
|
313
|
-
orgId?: string;
|
314
|
-
name: string;
|
315
|
-
nameI18n?: string;
|
316
|
-
description?: string;
|
317
|
-
descriptionI18n?: string;
|
318
|
-
order?: number;
|
319
|
-
code?: string;
|
320
|
-
root?: boolean;
|
321
|
-
depth?: number;
|
322
|
-
path: string[];
|
323
|
-
createdAt?: string;
|
324
|
-
updatedAt?: string;
|
325
|
-
children?: string[];
|
326
|
-
}[]>;
|
327
|
-
/**
|
328
|
-
* @name rootNode
|
329
|
-
* @name_zh 获取根节点
|
330
|
-
* @description 获取一个组织的根节点
|
331
|
-
*
|
332
|
-
* @param {string} orgId 组织机构 ID
|
333
|
-
*
|
334
|
-
* @example
|
335
|
-
*
|
336
|
-
* const rootNode = await managementClient.org.rootNode("ORGID")
|
337
|
-
*
|
338
|
-
* @returns {Promise<Node[]>}
|
339
|
-
* @memberof OrgManagementClient
|
340
|
-
*/
|
341
|
-
rootNode(orgId: string): Promise<{
|
342
|
-
id: string;
|
343
|
-
orgId?: string;
|
344
|
-
name: string;
|
345
|
-
nameI18n?: string;
|
346
|
-
description?: string;
|
347
|
-
descriptionI18n?: string;
|
348
|
-
order?: number;
|
349
|
-
code?: string;
|
350
|
-
root?: boolean;
|
351
|
-
depth?: number;
|
352
|
-
path: string[];
|
353
|
-
codePath: string[];
|
354
|
-
namePath: string[];
|
355
|
-
createdAt?: string;
|
356
|
-
updatedAt?: string;
|
357
|
-
children?: string[];
|
358
|
-
}>;
|
359
|
-
/**
|
360
|
-
* @name importByJson
|
361
|
-
* @name_zh 通过 JSON 导入
|
362
|
-
* @description 通过一个 JSON 树结构导入组织机构
|
363
|
-
*
|
364
|
-
* @param {Object} json JSON 格式的树结构,详细格式请见示例代码。
|
365
|
-
*
|
366
|
-
* @example
|
367
|
-
*
|
368
|
-
* const tree = {
|
369
|
-
* name: '北京非凡科技有限公司',
|
370
|
-
* code: 'feifan',
|
371
|
-
* children: [
|
372
|
-
* {
|
373
|
-
* code: 'operation',
|
374
|
-
* name: '运营',
|
375
|
-
* description: '商业化部门'
|
376
|
-
* },
|
377
|
-
* {
|
378
|
-
* code: 'dev',
|
379
|
-
* name: '研发',
|
380
|
-
* description: '研发部门',
|
381
|
-
* children: [
|
382
|
-
* {
|
383
|
-
* code: 'backend',
|
384
|
-
* name: '后端',
|
385
|
-
* description: '后端研发部门'
|
386
|
-
* }
|
387
|
-
* ]
|
388
|
-
* }
|
389
|
-
* ]
|
390
|
-
* };
|
391
|
-
* const org = await managementClient.org.importByJson(tree);
|
392
|
-
*
|
393
|
-
* @returns {Promise<Node[]>}
|
394
|
-
* @memberof OrgManagementClient
|
395
|
-
*/
|
396
|
-
importByJson(json: {
|
397
|
-
[x: string]: any;
|
398
|
-
}): Promise<any>;
|
399
|
-
/**
|
400
|
-
* @name addMembers
|
401
|
-
* @name_zh 添加成功
|
402
|
-
* @description 节点添加成员
|
403
|
-
*
|
404
|
-
* @param {string} nodeId 节点 ID
|
405
|
-
* @param {string[]} userIds 用户 ID 列表
|
406
|
-
*
|
407
|
-
* @returns {Promise<PaginatedUsers>}
|
408
|
-
* @memberof OrgManagementClient
|
409
|
-
*
|
410
|
-
*/
|
411
|
-
addMembers(nodeId: string, userIds: string[]): Promise<PaginatedUsers>;
|
412
|
-
moveMembers(options: {
|
413
|
-
userIds: string[];
|
414
|
-
targetNodeId: string;
|
415
|
-
sourceNodeId: string;
|
416
|
-
}): Promise<boolean>;
|
417
|
-
/**
|
418
|
-
* @name listMembers
|
419
|
-
* @name_zh 获取节点成员
|
420
|
-
* @description 获取节点成员,可以获取直接添加到该节点中的用户,也可以获取到该节点子节点的用户。
|
421
|
-
*
|
422
|
-
* @param {string} nodeId 节点 ID
|
423
|
-
* @param {Object} options 查询参数
|
424
|
-
* @param {number} [options.page=1]
|
425
|
-
* @param {number} [options.limit=10]
|
426
|
-
* @param {boolean} [options.includeChildrenNodes=false] 是否获取所有子节点的成员
|
427
|
-
*
|
428
|
-
*
|
429
|
-
* @returns {Promise<PaginatedUsers>}
|
430
|
-
* @memberof OrgManagementClient
|
431
|
-
*
|
432
|
-
*/
|
433
|
-
listMembers(nodeId: string, options?: {
|
434
|
-
page?: number;
|
435
|
-
limit?: number;
|
436
|
-
includeChildrenNodes?: boolean;
|
437
|
-
}): Promise<PaginatedUsers>;
|
438
|
-
/**
|
439
|
-
* @name removeMembers
|
440
|
-
* @name_zh 删除成功
|
441
|
-
* @description 删除节点成员
|
442
|
-
*
|
443
|
-
* @param {string} nodeId 节点 ID
|
444
|
-
* @param {string[]} userIds 用户 ID 列表
|
445
|
-
*
|
446
|
-
* @returns {Promise<PaginatedUsers>}
|
447
|
-
* @memberof OrgManagementClient
|
448
|
-
*
|
449
|
-
*/
|
450
|
-
removeMembers(nodeId: string, userIds: string[]): Promise<PaginatedUsers>;
|
451
|
-
/**
|
452
|
-
* @name setMainDepartment
|
453
|
-
* @name_zh 设置用户主部门
|
454
|
-
* @description 设置用户主部门
|
455
|
-
*
|
456
|
-
* @param {string} userId 用户 ID
|
457
|
-
* @param {string} departmentId 部门 ID
|
458
|
-
*
|
459
|
-
* @returns {Promise<PaginatedUsers>}
|
460
|
-
* @memberof OrgManagementClient
|
461
|
-
*
|
462
|
-
*/
|
463
|
-
setMainDepartment(userId: string, departmentId: string): Promise<CommonMessage>;
|
464
|
-
/**
|
465
|
-
* @description 导出所有组织机构
|
466
|
-
*/
|
467
|
-
exportAll(): Promise<any>;
|
468
|
-
/**
|
469
|
-
* @description 导出某个组织机构
|
470
|
-
*/
|
471
|
-
exportByOrgId(orgId: string): Promise<any>;
|
472
|
-
/**
|
473
|
-
* @description 获取组织机构节点被授权的所有资源
|
474
|
-
*
|
475
|
-
* @param nodeId: 分组 ID
|
476
|
-
* @param namespace: 权限组 namespace code
|
477
|
-
* @param options.resourceType 资源类型
|
478
|
-
*/
|
479
|
-
listAuthorizedResourcesByNodeId(nodeId: string, namespace: string, options?: {
|
480
|
-
resourceType?: ResourceType;
|
481
|
-
}): Promise<PaginatedAuthorizedResources>;
|
482
|
-
/**
|
483
|
-
* @description 获取组织机构节点被授权的所有资源
|
484
|
-
*
|
485
|
-
* @param orgId: 组织机构 ID;
|
486
|
-
* @param code: 节点 code
|
487
|
-
* @param namespace: 权限组 namespace code
|
488
|
-
* @param options.resourceType 资源类型
|
489
|
-
*/
|
490
|
-
listAuthorizedResourcesByNodeCode(orgId: string, code: string, namespace: string, options?: {
|
491
|
-
resourceType?: ResourceType;
|
492
|
-
}): Promise<PaginatedAuthorizedResources>;
|
493
|
-
startSync(options: {
|
494
|
-
providerType: 'dingtalk' | 'wechatwork' | 'ad';
|
495
|
-
adConnectorId?: string;
|
496
|
-
}): Promise<boolean>;
|
497
|
-
/**
|
498
|
-
* @description 搜索组织机构节点
|
499
|
-
*
|
500
|
-
* @param keyword 查询关键词
|
501
|
-
* @returns
|
502
|
-
*/
|
503
|
-
searchNodes(keyword: string): Promise<{
|
504
|
-
id: string;
|
505
|
-
orgId?: string;
|
506
|
-
name: string;
|
507
|
-
nameI18n?: string;
|
508
|
-
description?: string;
|
509
|
-
descriptionI18n?: string;
|
510
|
-
order?: number;
|
511
|
-
code?: string;
|
512
|
-
root?: boolean;
|
513
|
-
depth?: number;
|
514
|
-
path: string[];
|
515
|
-
codePath: string[];
|
516
|
-
namePath: string[];
|
517
|
-
createdAt?: string;
|
518
|
-
updatedAt?: string;
|
519
|
-
children?: string[];
|
520
|
-
}[]>;
|
521
|
-
}
|