@ominity/api-typescript 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +1 -1
- package/dist/commonjs/sdk/users/customers.d.ts +6 -0
- package/dist/commonjs/sdk/users/customers.d.ts.map +1 -0
- package/dist/commonjs/sdk/users/customers.js +16 -0
- package/dist/commonjs/sdk/users/customers.js.map +1 -0
- package/dist/commonjs/sdk/users/index.d.ts +12 -11
- package/dist/commonjs/sdk/users/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/users/index.js +16 -44
- package/dist/commonjs/sdk/users/index.js.map +1 -1
- package/dist/commonjs/sdk/users/mfa-methods.d.ts +11 -0
- package/dist/commonjs/sdk/users/mfa-methods.d.ts.map +1 -0
- package/dist/commonjs/sdk/users/mfa-methods.js +36 -0
- package/dist/commonjs/sdk/users/mfa-methods.js.map +1 -0
- package/dist/commonjs/sdk/users/oauth-accounts.d.ts +6 -0
- package/dist/commonjs/sdk/users/oauth-accounts.d.ts.map +1 -0
- package/dist/commonjs/sdk/users/oauth-accounts.js +16 -0
- package/dist/commonjs/sdk/users/oauth-accounts.js.map +1 -0
- package/dist/commonjs/sdk/users/recovery-codes.d.ts +8 -0
- package/dist/commonjs/sdk/users/recovery-codes.d.ts.map +1 -0
- package/dist/commonjs/sdk/users/recovery-codes.js +24 -0
- package/dist/commonjs/sdk/users/recovery-codes.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +1 -1
- package/dist/esm/sdk/users/customers.d.ts +6 -0
- package/dist/esm/sdk/users/customers.d.ts.map +1 -0
- package/dist/esm/sdk/users/customers.js +12 -0
- package/dist/esm/sdk/users/customers.js.map +1 -0
- package/dist/esm/sdk/users/index.d.ts +12 -11
- package/dist/esm/sdk/users/index.d.ts.map +1 -1
- package/dist/esm/sdk/users/index.js +16 -44
- package/dist/esm/sdk/users/index.js.map +1 -1
- package/dist/esm/sdk/users/mfa-methods.d.ts +11 -0
- package/dist/esm/sdk/users/mfa-methods.d.ts.map +1 -0
- package/dist/esm/sdk/users/mfa-methods.js +32 -0
- package/dist/esm/sdk/users/mfa-methods.js.map +1 -0
- package/dist/esm/sdk/users/oauth-accounts.d.ts +6 -0
- package/dist/esm/sdk/users/oauth-accounts.d.ts.map +1 -0
- package/dist/esm/sdk/users/oauth-accounts.js +12 -0
- package/dist/esm/sdk/users/oauth-accounts.js.map +1 -0
- package/dist/esm/sdk/users/recovery-codes.d.ts +8 -0
- package/dist/esm/sdk/users/recovery-codes.d.ts.map +1 -0
- package/dist/esm/sdk/users/recovery-codes.js +20 -0
- package/dist/esm/sdk/users/recovery-codes.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +1 -1
- package/src/sdk/users/customers.ts +21 -0
- package/src/sdk/users/index.ts +24 -132
- package/src/sdk/users/mfa-methods.ts +81 -0
- package/src/sdk/users/oauth-accounts.ts +21 -0
- package/src/sdk/users/recovery-codes.ts +45 -0
|
@@ -42,12 +42,12 @@ export type SDKOptions = {
|
|
|
42
42
|
debugLogger?: Logger;
|
|
43
43
|
};
|
|
44
44
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
45
|
-
export declare const SDK_VERSION = "1.1.
|
|
45
|
+
export declare const SDK_VERSION = "1.1.1";
|
|
46
46
|
export declare const SDK_METADATA: {
|
|
47
47
|
readonly language: "typescript";
|
|
48
48
|
readonly openapiDocVersion: "manual";
|
|
49
|
-
readonly sdkVersion: "1.1.
|
|
49
|
+
readonly sdkVersion: "1.1.1";
|
|
50
50
|
readonly genVersion: "manual";
|
|
51
|
-
readonly userAgent: "ominity-sdk/typescript 1.1.
|
|
51
|
+
readonly userAgent: "ominity-sdk/typescript 1.1.1";
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -23,7 +23,7 @@ function applyApiVersion(url, apiVersion) {
|
|
|
23
23
|
url.pathname = `${currentPath}${versionSuffix}`;
|
|
24
24
|
return url;
|
|
25
25
|
}
|
|
26
|
-
exports.SDK_VERSION = "1.1.
|
|
26
|
+
exports.SDK_VERSION = "1.1.1";
|
|
27
27
|
exports.SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "manual",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
export declare class UserCustomers extends ClientSDK {
|
|
4
|
+
list(request: operations.ListUserCustomersRequest, options?: RequestOptions): Promise<operations.ListUserCustomersResponse>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/customers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAG/D,qBAAa,aAAc,SAAQ,SAAS;IACpC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAOjD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* User customers SDK.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UserCustomers = void 0;
|
|
7
|
+
const sdks_js_1 = require("../../lib/sdks.js");
|
|
8
|
+
const fp_js_1 = require("../../types/fp.js");
|
|
9
|
+
const usersListCustomers_js_1 = require("../../funcs/users/usersListCustomers.js");
|
|
10
|
+
class UserCustomers extends sdks_js_1.ClientSDK {
|
|
11
|
+
async list(request, options) {
|
|
12
|
+
return (0, fp_js_1.unwrapAsync)((0, usersListCustomers_js_1.usersListCustomers)(this, request, options));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.UserCustomers = UserCustomers;
|
|
16
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/sdk/users/customers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+CAA8D;AAC9D,6CAAgD;AAEhD,mFAA6E;AAE7E,MAAa,aAAc,SAAQ,mBAAS;IAC1C,KAAK,CAAC,IAAI,CACR,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAXD,sCAWC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
2
|
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
import { UserCustomers } from "./customers.js";
|
|
3
4
|
import { UserLogins } from "./logins.js";
|
|
5
|
+
import { UserMfaMethods } from "./mfa-methods.js";
|
|
6
|
+
import { UserOAuthAccounts } from "./oauth-accounts.js";
|
|
7
|
+
import { UserRecoveryCodes } from "./recovery-codes.js";
|
|
4
8
|
export declare class Users extends ClientSDK {
|
|
5
9
|
private _logins?;
|
|
10
|
+
private _customers?;
|
|
11
|
+
private _oauthAccounts?;
|
|
12
|
+
private _mfaMethods?;
|
|
13
|
+
private _recoveryCodes?;
|
|
6
14
|
get logins(): UserLogins;
|
|
15
|
+
get customers(): UserCustomers;
|
|
16
|
+
get oauthAccounts(): UserOAuthAccounts;
|
|
17
|
+
get mfaMethods(): UserMfaMethods;
|
|
18
|
+
get recoveryCodes(): UserRecoveryCodes;
|
|
7
19
|
list(request?: operations.UsersListParams | undefined, options?: RequestOptions): Promise<operations.ListUsersResponse>;
|
|
8
20
|
get(request: operations.GetUserRequest, options?: RequestOptions): Promise<operations.GetUserResponse>;
|
|
9
21
|
create(request: operations.CreateUserRequest, options?: RequestOptions): Promise<operations.CreateUserResponse>;
|
|
@@ -11,16 +23,5 @@ export declare class Users extends ClientSDK {
|
|
|
11
23
|
issueToken(request: operations.IssueUserAccessTokenRequest, options?: RequestOptions): Promise<operations.IssueUserAccessTokenResponse>;
|
|
12
24
|
sendPasswordResetLink(request: operations.SendPasswordResetLinkRequest, options?: RequestOptions): Promise<operations.SendPasswordResetLinkResponse>;
|
|
13
25
|
resetPassword(request: operations.ResetPasswordRequest, options?: RequestOptions): Promise<operations.ResetPasswordResponse>;
|
|
14
|
-
listCustomers(request: operations.ListUserCustomersRequest, options?: RequestOptions): Promise<operations.ListUserCustomersResponse>;
|
|
15
|
-
listOAuthAccounts(request: operations.ListUserOAuthAccountsRequest, options?: RequestOptions): Promise<operations.ListUserOAuthAccountsResponse>;
|
|
16
|
-
listMfaMethods(request: operations.ListUserMfaMethodsRequest, options?: RequestOptions): Promise<operations.ListUserMfaMethodsResponse>;
|
|
17
|
-
getMfaMethod(request: operations.GetMfaMethodRequest, options?: RequestOptions): Promise<operations.GetMfaMethodResponse>;
|
|
18
|
-
enableMfa(request: operations.EnableMfaRequest, options?: RequestOptions): Promise<operations.EnableMfaResponse>;
|
|
19
|
-
disableMfa(request: operations.DisableMfaRequest, options?: RequestOptions): Promise<operations.DisableMfaResponse>;
|
|
20
|
-
validateMfa(request: operations.ValidateMfaRequest, options?: RequestOptions): Promise<operations.ValidateMfaResponse>;
|
|
21
|
-
sendMfa(request: operations.SendMfaRequest, options?: RequestOptions): Promise<operations.SendMfaResponse>;
|
|
22
|
-
listRecoveryCodes(request: operations.ListUserRecoveryCodesRequest, options?: RequestOptions): Promise<operations.ListUserRecoveryCodesResponse>;
|
|
23
|
-
regenerateRecoveryCodes(request: operations.RegenerateRecoveryCodesRequest, options?: RequestOptions): Promise<operations.RegenerateRecoveryCodesResponse>;
|
|
24
|
-
validateRecoveryCode(request: operations.ValidateRecoveryCodeRequest, options?: RequestOptions): Promise<operations.ValidateRecoveryCodeResponse>;
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAQ/D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,KAAM,SAAQ,SAAS;IAClC,OAAO,CAAC,OAAO,CAAC,CAAa;IAC7B,OAAO,CAAC,UAAU,CAAC,CAAgB;IACnC,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,OAAO,CAAC,WAAW,CAAC,CAAiB;IACrC,OAAO,CAAC,cAAc,CAAC,CAAoB;IAE3C,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,SAAS,IAAI,aAAa,CAE7B;IAED,IAAI,aAAa,IAAI,iBAAiB,CAErC;IAED,IAAI,UAAU,IAAI,cAAc,CAE/B;IAED,IAAI,aAAa,IAAI,iBAAiB,CAErC;IAEK,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,eAAe,GAAG,SAAS,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQlC,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;IAQhC,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQnC,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQnC,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQ7C,qBAAqB,CACzB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQ9C,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAO7C"}
|
|
@@ -13,22 +13,27 @@ const usersList_js_1 = require("../../funcs/users/usersList.js");
|
|
|
13
13
|
const usersUpdate_js_1 = require("../../funcs/users/usersUpdate.js");
|
|
14
14
|
const usersSendPasswordResetLink_js_1 = require("../../funcs/users/usersSendPasswordResetLink.js");
|
|
15
15
|
const usersResetPassword_js_1 = require("../../funcs/users/usersResetPassword.js");
|
|
16
|
-
const
|
|
17
|
-
const usersListOAuthAccounts_js_1 = require("../../funcs/users/usersListOAuthAccounts.js");
|
|
18
|
-
const usersListMfaMethods_js_1 = require("../../funcs/users/usersListMfaMethods.js");
|
|
19
|
-
const usersGetMfaMethod_js_1 = require("../../funcs/users/usersGetMfaMethod.js");
|
|
20
|
-
const usersEnableMfa_js_1 = require("../../funcs/users/usersEnableMfa.js");
|
|
21
|
-
const usersDisableMfa_js_1 = require("../../funcs/users/usersDisableMfa.js");
|
|
22
|
-
const usersValidateMfa_js_1 = require("../../funcs/users/usersValidateMfa.js");
|
|
23
|
-
const usersSendMfa_js_1 = require("../../funcs/users/usersSendMfa.js");
|
|
24
|
-
const usersListRecoveryCodes_js_1 = require("../../funcs/users/usersListRecoveryCodes.js");
|
|
25
|
-
const usersRegenerateRecoveryCodes_js_1 = require("../../funcs/users/usersRegenerateRecoveryCodes.js");
|
|
26
|
-
const usersValidateRecoveryCode_js_1 = require("../../funcs/users/usersValidateRecoveryCode.js");
|
|
16
|
+
const customers_js_1 = require("./customers.js");
|
|
27
17
|
const logins_js_1 = require("./logins.js");
|
|
18
|
+
const mfa_methods_js_1 = require("./mfa-methods.js");
|
|
19
|
+
const oauth_accounts_js_1 = require("./oauth-accounts.js");
|
|
20
|
+
const recovery_codes_js_1 = require("./recovery-codes.js");
|
|
28
21
|
class Users extends sdks_js_1.ClientSDK {
|
|
29
22
|
get logins() {
|
|
30
23
|
return (this._logins ?? (this._logins = new logins_js_1.UserLogins(this._options)));
|
|
31
24
|
}
|
|
25
|
+
get customers() {
|
|
26
|
+
return (this._customers ?? (this._customers = new customers_js_1.UserCustomers(this._options)));
|
|
27
|
+
}
|
|
28
|
+
get oauthAccounts() {
|
|
29
|
+
return (this._oauthAccounts ?? (this._oauthAccounts = new oauth_accounts_js_1.UserOAuthAccounts(this._options)));
|
|
30
|
+
}
|
|
31
|
+
get mfaMethods() {
|
|
32
|
+
return (this._mfaMethods ?? (this._mfaMethods = new mfa_methods_js_1.UserMfaMethods(this._options)));
|
|
33
|
+
}
|
|
34
|
+
get recoveryCodes() {
|
|
35
|
+
return (this._recoveryCodes ?? (this._recoveryCodes = new recovery_codes_js_1.UserRecoveryCodes(this._options)));
|
|
36
|
+
}
|
|
32
37
|
async list(request, options) {
|
|
33
38
|
return (0, fp_js_1.unwrapAsync)((0, usersList_js_1.usersList)(this, request, options));
|
|
34
39
|
}
|
|
@@ -50,39 +55,6 @@ class Users extends sdks_js_1.ClientSDK {
|
|
|
50
55
|
async resetPassword(request, options) {
|
|
51
56
|
return (0, fp_js_1.unwrapAsync)((0, usersResetPassword_js_1.usersResetPassword)(this, request, options));
|
|
52
57
|
}
|
|
53
|
-
async listCustomers(request, options) {
|
|
54
|
-
return (0, fp_js_1.unwrapAsync)((0, usersListCustomers_js_1.usersListCustomers)(this, request, options));
|
|
55
|
-
}
|
|
56
|
-
async listOAuthAccounts(request, options) {
|
|
57
|
-
return (0, fp_js_1.unwrapAsync)((0, usersListOAuthAccounts_js_1.usersListOAuthAccounts)(this, request, options));
|
|
58
|
-
}
|
|
59
|
-
async listMfaMethods(request, options) {
|
|
60
|
-
return (0, fp_js_1.unwrapAsync)((0, usersListMfaMethods_js_1.usersListMfaMethods)(this, request, options));
|
|
61
|
-
}
|
|
62
|
-
async getMfaMethod(request, options) {
|
|
63
|
-
return (0, fp_js_1.unwrapAsync)((0, usersGetMfaMethod_js_1.usersGetMfaMethod)(this, request, options));
|
|
64
|
-
}
|
|
65
|
-
async enableMfa(request, options) {
|
|
66
|
-
return (0, fp_js_1.unwrapAsync)((0, usersEnableMfa_js_1.usersEnableMfa)(this, request, options));
|
|
67
|
-
}
|
|
68
|
-
async disableMfa(request, options) {
|
|
69
|
-
return (0, fp_js_1.unwrapAsync)((0, usersDisableMfa_js_1.usersDisableMfa)(this, request, options));
|
|
70
|
-
}
|
|
71
|
-
async validateMfa(request, options) {
|
|
72
|
-
return (0, fp_js_1.unwrapAsync)((0, usersValidateMfa_js_1.usersValidateMfa)(this, request, options));
|
|
73
|
-
}
|
|
74
|
-
async sendMfa(request, options) {
|
|
75
|
-
return (0, fp_js_1.unwrapAsync)((0, usersSendMfa_js_1.usersSendMfa)(this, request, options));
|
|
76
|
-
}
|
|
77
|
-
async listRecoveryCodes(request, options) {
|
|
78
|
-
return (0, fp_js_1.unwrapAsync)((0, usersListRecoveryCodes_js_1.usersListRecoveryCodes)(this, request, options));
|
|
79
|
-
}
|
|
80
|
-
async regenerateRecoveryCodes(request, options) {
|
|
81
|
-
return (0, fp_js_1.unwrapAsync)((0, usersRegenerateRecoveryCodes_js_1.usersRegenerateRecoveryCodes)(this, request, options));
|
|
82
|
-
}
|
|
83
|
-
async validateRecoveryCode(request, options) {
|
|
84
|
-
return (0, fp_js_1.unwrapAsync)((0, usersValidateRecoveryCode_js_1.usersValidateRecoveryCode)(this, request, options));
|
|
85
|
-
}
|
|
86
58
|
}
|
|
87
59
|
exports.Users = Users;
|
|
88
60
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/users/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+CAA8D;AAC9D,6CAAgD;AAEhD,qEAA+D;AAC/D,+DAAyD;AACzD,6EAAuE;AACvE,iEAA2D;AAC3D,qEAA+D;AAC/D,mGAA6F;AAC7F,mFAA6E;AAC7E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/users/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+CAA8D;AAC9D,6CAAgD;AAEhD,qEAA+D;AAC/D,+DAAyD;AACzD,6EAAuE;AACvE,iEAA2D;AAC3D,qEAA+D;AAC/D,mGAA6F;AAC7F,mFAA6E;AAC7E,iDAA+C;AAC/C,2CAAyC;AACzC,qDAAkD;AAClD,2DAAwD;AACxD,2DAAwD;AAExD,MAAa,KAAM,SAAQ,mBAAS;IAOlC,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,sBAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAED,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,4BAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAED,IAAI,aAAa;QACf,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,qCAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxE,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,+BAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClE,CAAC;IAED,IAAI,aAAa;QACf,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,qCAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,IAAI,CACR,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wBAAS,EAC1B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,GAAG,CACP,OAAkC,EAClC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sBAAQ,EACzB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4BAAW,EAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4BAAW,EAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAvGD,sBAuGC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
export declare class UserMfaMethods extends ClientSDK {
|
|
4
|
+
list(request: operations.ListUserMfaMethodsRequest, options?: RequestOptions): Promise<operations.ListUserMfaMethodsResponse>;
|
|
5
|
+
get(request: operations.GetMfaMethodRequest, options?: RequestOptions): Promise<operations.GetMfaMethodResponse>;
|
|
6
|
+
enable(request: operations.EnableMfaRequest, options?: RequestOptions): Promise<operations.EnableMfaResponse>;
|
|
7
|
+
disable(request: operations.DisableMfaRequest, options?: RequestOptions): Promise<operations.DisableMfaResponse>;
|
|
8
|
+
validate(request: operations.ValidateMfaRequest, options?: RequestOptions): Promise<operations.ValidateMfaResponse>;
|
|
9
|
+
send(request: operations.SendMfaRequest, options?: RequestOptions): Promise<operations.SendMfaResponse>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=mfa-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mfa-methods.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/mfa-methods.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAQ/D,qBAAa,cAAe,SAAQ,SAAS;IACrC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQ3C,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQrC,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQlC,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQnC,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQpC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;CAOvC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* User MFA methods SDK.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UserMfaMethods = void 0;
|
|
7
|
+
const sdks_js_1 = require("../../lib/sdks.js");
|
|
8
|
+
const fp_js_1 = require("../../types/fp.js");
|
|
9
|
+
const usersListMfaMethods_js_1 = require("../../funcs/users/usersListMfaMethods.js");
|
|
10
|
+
const usersGetMfaMethod_js_1 = require("../../funcs/users/usersGetMfaMethod.js");
|
|
11
|
+
const usersEnableMfa_js_1 = require("../../funcs/users/usersEnableMfa.js");
|
|
12
|
+
const usersDisableMfa_js_1 = require("../../funcs/users/usersDisableMfa.js");
|
|
13
|
+
const usersValidateMfa_js_1 = require("../../funcs/users/usersValidateMfa.js");
|
|
14
|
+
const usersSendMfa_js_1 = require("../../funcs/users/usersSendMfa.js");
|
|
15
|
+
class UserMfaMethods extends sdks_js_1.ClientSDK {
|
|
16
|
+
async list(request, options) {
|
|
17
|
+
return (0, fp_js_1.unwrapAsync)((0, usersListMfaMethods_js_1.usersListMfaMethods)(this, request, options));
|
|
18
|
+
}
|
|
19
|
+
async get(request, options) {
|
|
20
|
+
return (0, fp_js_1.unwrapAsync)((0, usersGetMfaMethod_js_1.usersGetMfaMethod)(this, request, options));
|
|
21
|
+
}
|
|
22
|
+
async enable(request, options) {
|
|
23
|
+
return (0, fp_js_1.unwrapAsync)((0, usersEnableMfa_js_1.usersEnableMfa)(this, request, options));
|
|
24
|
+
}
|
|
25
|
+
async disable(request, options) {
|
|
26
|
+
return (0, fp_js_1.unwrapAsync)((0, usersDisableMfa_js_1.usersDisableMfa)(this, request, options));
|
|
27
|
+
}
|
|
28
|
+
async validate(request, options) {
|
|
29
|
+
return (0, fp_js_1.unwrapAsync)((0, usersValidateMfa_js_1.usersValidateMfa)(this, request, options));
|
|
30
|
+
}
|
|
31
|
+
async send(request, options) {
|
|
32
|
+
return (0, fp_js_1.unwrapAsync)((0, usersSendMfa_js_1.usersSendMfa)(this, request, options));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.UserMfaMethods = UserMfaMethods;
|
|
36
|
+
//# sourceMappingURL=mfa-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mfa-methods.js","sourceRoot":"","sources":["../../../../src/sdk/users/mfa-methods.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+CAA8D;AAC9D,6CAAgD;AAEhD,qFAA+E;AAC/E,iFAA2E;AAC3E,2EAAqE;AACrE,6EAAuE;AACvE,+EAAyE;AACzE,uEAAiE;AAEjE,MAAa,cAAe,SAAQ,mBAAS;IAC3C,KAAK,CAAC,IAAI,CACR,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,GAAG,CACP,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO,CACX,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI,CACR,OAAkC,EAClC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAlED,wCAkEC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
export declare class UserOAuthAccounts extends ClientSDK {
|
|
4
|
+
list(request: operations.ListUserOAuthAccountsRequest, options?: RequestOptions): Promise<operations.ListUserOAuthAccountsResponse>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=oauth-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-accounts.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/oauth-accounts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAG/D,qBAAa,iBAAkB,SAAQ,SAAS;IACxC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAOrD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* User OAuth accounts SDK.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UserOAuthAccounts = void 0;
|
|
7
|
+
const sdks_js_1 = require("../../lib/sdks.js");
|
|
8
|
+
const fp_js_1 = require("../../types/fp.js");
|
|
9
|
+
const usersListOAuthAccounts_js_1 = require("../../funcs/users/usersListOAuthAccounts.js");
|
|
10
|
+
class UserOAuthAccounts extends sdks_js_1.ClientSDK {
|
|
11
|
+
async list(request, options) {
|
|
12
|
+
return (0, fp_js_1.unwrapAsync)((0, usersListOAuthAccounts_js_1.usersListOAuthAccounts)(this, request, options));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.UserOAuthAccounts = UserOAuthAccounts;
|
|
16
|
+
//# sourceMappingURL=oauth-accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-accounts.js","sourceRoot":"","sources":["../../../../src/sdk/users/oauth-accounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+CAA8D;AAC9D,6CAAgD;AAEhD,2FAAqF;AAErF,MAAa,iBAAkB,SAAQ,mBAAS;IAC9C,KAAK,CAAC,IAAI,CACR,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAXD,8CAWC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
export declare class UserRecoveryCodes extends ClientSDK {
|
|
4
|
+
list(request: operations.ListUserRecoveryCodesRequest, options?: RequestOptions): Promise<operations.ListUserRecoveryCodesResponse>;
|
|
5
|
+
regenerate(request: operations.RegenerateRecoveryCodesRequest, options?: RequestOptions): Promise<operations.RegenerateRecoveryCodesResponse>;
|
|
6
|
+
validate(request: operations.ValidateRecoveryCodeRequest, options?: RequestOptions): Promise<operations.ValidateRecoveryCodeResponse>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=recovery-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery-codes.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/recovery-codes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAK/D,qBAAa,iBAAkB,SAAQ,SAAS;IACxC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQ9C,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQhD,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;CAOpD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* User recovery codes SDK.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UserRecoveryCodes = void 0;
|
|
7
|
+
const sdks_js_1 = require("../../lib/sdks.js");
|
|
8
|
+
const fp_js_1 = require("../../types/fp.js");
|
|
9
|
+
const usersListRecoveryCodes_js_1 = require("../../funcs/users/usersListRecoveryCodes.js");
|
|
10
|
+
const usersRegenerateRecoveryCodes_js_1 = require("../../funcs/users/usersRegenerateRecoveryCodes.js");
|
|
11
|
+
const usersValidateRecoveryCode_js_1 = require("../../funcs/users/usersValidateRecoveryCode.js");
|
|
12
|
+
class UserRecoveryCodes extends sdks_js_1.ClientSDK {
|
|
13
|
+
async list(request, options) {
|
|
14
|
+
return (0, fp_js_1.unwrapAsync)((0, usersListRecoveryCodes_js_1.usersListRecoveryCodes)(this, request, options));
|
|
15
|
+
}
|
|
16
|
+
async regenerate(request, options) {
|
|
17
|
+
return (0, fp_js_1.unwrapAsync)((0, usersRegenerateRecoveryCodes_js_1.usersRegenerateRecoveryCodes)(this, request, options));
|
|
18
|
+
}
|
|
19
|
+
async validate(request, options) {
|
|
20
|
+
return (0, fp_js_1.unwrapAsync)((0, usersValidateRecoveryCode_js_1.usersValidateRecoveryCode)(this, request, options));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.UserRecoveryCodes = UserRecoveryCodes;
|
|
24
|
+
//# sourceMappingURL=recovery-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery-codes.js","sourceRoot":"","sources":["../../../../src/sdk/users/recovery-codes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+CAA8D;AAC9D,6CAAgD;AAEhD,2FAAqF;AACrF,uGAAiG;AACjG,iGAA2F;AAE3F,MAAa,iBAAkB,SAAQ,mBAAS;IAC9C,KAAK,CAAC,IAAI,CACR,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAjCD,8CAiCC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -42,12 +42,12 @@ export type SDKOptions = {
|
|
|
42
42
|
debugLogger?: Logger;
|
|
43
43
|
};
|
|
44
44
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
45
|
-
export declare const SDK_VERSION = "1.1.
|
|
45
|
+
export declare const SDK_VERSION = "1.1.1";
|
|
46
46
|
export declare const SDK_METADATA: {
|
|
47
47
|
readonly language: "typescript";
|
|
48
48
|
readonly openapiDocVersion: "manual";
|
|
49
|
-
readonly sdkVersion: "1.1.
|
|
49
|
+
readonly sdkVersion: "1.1.1";
|
|
50
50
|
readonly genVersion: "manual";
|
|
51
|
-
readonly userAgent: "ominity-sdk/typescript 1.1.
|
|
51
|
+
readonly userAgent: "ominity-sdk/typescript 1.1.1";
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -19,7 +19,7 @@ function applyApiVersion(url, apiVersion) {
|
|
|
19
19
|
url.pathname = `${currentPath}${versionSuffix}`;
|
|
20
20
|
return url;
|
|
21
21
|
}
|
|
22
|
-
export const SDK_VERSION = "1.1.
|
|
22
|
+
export const SDK_VERSION = "1.1.1";
|
|
23
23
|
export const SDK_METADATA = {
|
|
24
24
|
language: "typescript",
|
|
25
25
|
openapiDocVersion: "manual",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
export declare class UserCustomers extends ClientSDK {
|
|
4
|
+
list(request: operations.ListUserCustomersRequest, options?: RequestOptions): Promise<operations.ListUserCustomersResponse>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/customers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAG/D,qBAAa,aAAc,SAAQ,SAAS;IACpC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAOjD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* User customers SDK.
|
|
3
|
+
*/
|
|
4
|
+
import { ClientSDK } from "../../lib/sdks.js";
|
|
5
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
6
|
+
import { usersListCustomers } from "../../funcs/users/usersListCustomers.js";
|
|
7
|
+
export class UserCustomers extends ClientSDK {
|
|
8
|
+
async list(request, options) {
|
|
9
|
+
return unwrapAsync(usersListCustomers(this, request, options));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/sdk/users/customers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,KAAK,CAAC,IAAI,CACR,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
2
|
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
import { UserCustomers } from "./customers.js";
|
|
3
4
|
import { UserLogins } from "./logins.js";
|
|
5
|
+
import { UserMfaMethods } from "./mfa-methods.js";
|
|
6
|
+
import { UserOAuthAccounts } from "./oauth-accounts.js";
|
|
7
|
+
import { UserRecoveryCodes } from "./recovery-codes.js";
|
|
4
8
|
export declare class Users extends ClientSDK {
|
|
5
9
|
private _logins?;
|
|
10
|
+
private _customers?;
|
|
11
|
+
private _oauthAccounts?;
|
|
12
|
+
private _mfaMethods?;
|
|
13
|
+
private _recoveryCodes?;
|
|
6
14
|
get logins(): UserLogins;
|
|
15
|
+
get customers(): UserCustomers;
|
|
16
|
+
get oauthAccounts(): UserOAuthAccounts;
|
|
17
|
+
get mfaMethods(): UserMfaMethods;
|
|
18
|
+
get recoveryCodes(): UserRecoveryCodes;
|
|
7
19
|
list(request?: operations.UsersListParams | undefined, options?: RequestOptions): Promise<operations.ListUsersResponse>;
|
|
8
20
|
get(request: operations.GetUserRequest, options?: RequestOptions): Promise<operations.GetUserResponse>;
|
|
9
21
|
create(request: operations.CreateUserRequest, options?: RequestOptions): Promise<operations.CreateUserResponse>;
|
|
@@ -11,16 +23,5 @@ export declare class Users extends ClientSDK {
|
|
|
11
23
|
issueToken(request: operations.IssueUserAccessTokenRequest, options?: RequestOptions): Promise<operations.IssueUserAccessTokenResponse>;
|
|
12
24
|
sendPasswordResetLink(request: operations.SendPasswordResetLinkRequest, options?: RequestOptions): Promise<operations.SendPasswordResetLinkResponse>;
|
|
13
25
|
resetPassword(request: operations.ResetPasswordRequest, options?: RequestOptions): Promise<operations.ResetPasswordResponse>;
|
|
14
|
-
listCustomers(request: operations.ListUserCustomersRequest, options?: RequestOptions): Promise<operations.ListUserCustomersResponse>;
|
|
15
|
-
listOAuthAccounts(request: operations.ListUserOAuthAccountsRequest, options?: RequestOptions): Promise<operations.ListUserOAuthAccountsResponse>;
|
|
16
|
-
listMfaMethods(request: operations.ListUserMfaMethodsRequest, options?: RequestOptions): Promise<operations.ListUserMfaMethodsResponse>;
|
|
17
|
-
getMfaMethod(request: operations.GetMfaMethodRequest, options?: RequestOptions): Promise<operations.GetMfaMethodResponse>;
|
|
18
|
-
enableMfa(request: operations.EnableMfaRequest, options?: RequestOptions): Promise<operations.EnableMfaResponse>;
|
|
19
|
-
disableMfa(request: operations.DisableMfaRequest, options?: RequestOptions): Promise<operations.DisableMfaResponse>;
|
|
20
|
-
validateMfa(request: operations.ValidateMfaRequest, options?: RequestOptions): Promise<operations.ValidateMfaResponse>;
|
|
21
|
-
sendMfa(request: operations.SendMfaRequest, options?: RequestOptions): Promise<operations.SendMfaResponse>;
|
|
22
|
-
listRecoveryCodes(request: operations.ListUserRecoveryCodesRequest, options?: RequestOptions): Promise<operations.ListUserRecoveryCodesResponse>;
|
|
23
|
-
regenerateRecoveryCodes(request: operations.RegenerateRecoveryCodesRequest, options?: RequestOptions): Promise<operations.RegenerateRecoveryCodesResponse>;
|
|
24
|
-
validateRecoveryCode(request: operations.ValidateRecoveryCodeRequest, options?: RequestOptions): Promise<operations.ValidateRecoveryCodeResponse>;
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAQ/D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,KAAM,SAAQ,SAAS;IAClC,OAAO,CAAC,OAAO,CAAC,CAAa;IAC7B,OAAO,CAAC,UAAU,CAAC,CAAgB;IACnC,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,OAAO,CAAC,WAAW,CAAC,CAAiB;IACrC,OAAO,CAAC,cAAc,CAAC,CAAoB;IAE3C,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,SAAS,IAAI,aAAa,CAE7B;IAED,IAAI,aAAa,IAAI,iBAAiB,CAErC;IAED,IAAI,UAAU,IAAI,cAAc,CAE/B;IAED,IAAI,aAAa,IAAI,iBAAiB,CAErC;IAEK,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,eAAe,GAAG,SAAS,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQlC,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;IAQhC,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQnC,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQnC,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQ7C,qBAAqB,CACzB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQ9C,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAO7C"}
|
|
@@ -10,22 +10,27 @@ import { usersList } from "../../funcs/users/usersList.js";
|
|
|
10
10
|
import { usersUpdate } from "../../funcs/users/usersUpdate.js";
|
|
11
11
|
import { usersSendPasswordResetLink } from "../../funcs/users/usersSendPasswordResetLink.js";
|
|
12
12
|
import { usersResetPassword } from "../../funcs/users/usersResetPassword.js";
|
|
13
|
-
import {
|
|
14
|
-
import { usersListOAuthAccounts } from "../../funcs/users/usersListOAuthAccounts.js";
|
|
15
|
-
import { usersListMfaMethods } from "../../funcs/users/usersListMfaMethods.js";
|
|
16
|
-
import { usersGetMfaMethod } from "../../funcs/users/usersGetMfaMethod.js";
|
|
17
|
-
import { usersEnableMfa } from "../../funcs/users/usersEnableMfa.js";
|
|
18
|
-
import { usersDisableMfa } from "../../funcs/users/usersDisableMfa.js";
|
|
19
|
-
import { usersValidateMfa } from "../../funcs/users/usersValidateMfa.js";
|
|
20
|
-
import { usersSendMfa } from "../../funcs/users/usersSendMfa.js";
|
|
21
|
-
import { usersListRecoveryCodes } from "../../funcs/users/usersListRecoveryCodes.js";
|
|
22
|
-
import { usersRegenerateRecoveryCodes } from "../../funcs/users/usersRegenerateRecoveryCodes.js";
|
|
23
|
-
import { usersValidateRecoveryCode } from "../../funcs/users/usersValidateRecoveryCode.js";
|
|
13
|
+
import { UserCustomers } from "./customers.js";
|
|
24
14
|
import { UserLogins } from "./logins.js";
|
|
15
|
+
import { UserMfaMethods } from "./mfa-methods.js";
|
|
16
|
+
import { UserOAuthAccounts } from "./oauth-accounts.js";
|
|
17
|
+
import { UserRecoveryCodes } from "./recovery-codes.js";
|
|
25
18
|
export class Users extends ClientSDK {
|
|
26
19
|
get logins() {
|
|
27
20
|
return (this._logins ?? (this._logins = new UserLogins(this._options)));
|
|
28
21
|
}
|
|
22
|
+
get customers() {
|
|
23
|
+
return (this._customers ?? (this._customers = new UserCustomers(this._options)));
|
|
24
|
+
}
|
|
25
|
+
get oauthAccounts() {
|
|
26
|
+
return (this._oauthAccounts ?? (this._oauthAccounts = new UserOAuthAccounts(this._options)));
|
|
27
|
+
}
|
|
28
|
+
get mfaMethods() {
|
|
29
|
+
return (this._mfaMethods ?? (this._mfaMethods = new UserMfaMethods(this._options)));
|
|
30
|
+
}
|
|
31
|
+
get recoveryCodes() {
|
|
32
|
+
return (this._recoveryCodes ?? (this._recoveryCodes = new UserRecoveryCodes(this._options)));
|
|
33
|
+
}
|
|
29
34
|
async list(request, options) {
|
|
30
35
|
return unwrapAsync(usersList(this, request, options));
|
|
31
36
|
}
|
|
@@ -47,38 +52,5 @@ export class Users extends ClientSDK {
|
|
|
47
52
|
async resetPassword(request, options) {
|
|
48
53
|
return unwrapAsync(usersResetPassword(this, request, options));
|
|
49
54
|
}
|
|
50
|
-
async listCustomers(request, options) {
|
|
51
|
-
return unwrapAsync(usersListCustomers(this, request, options));
|
|
52
|
-
}
|
|
53
|
-
async listOAuthAccounts(request, options) {
|
|
54
|
-
return unwrapAsync(usersListOAuthAccounts(this, request, options));
|
|
55
|
-
}
|
|
56
|
-
async listMfaMethods(request, options) {
|
|
57
|
-
return unwrapAsync(usersListMfaMethods(this, request, options));
|
|
58
|
-
}
|
|
59
|
-
async getMfaMethod(request, options) {
|
|
60
|
-
return unwrapAsync(usersGetMfaMethod(this, request, options));
|
|
61
|
-
}
|
|
62
|
-
async enableMfa(request, options) {
|
|
63
|
-
return unwrapAsync(usersEnableMfa(this, request, options));
|
|
64
|
-
}
|
|
65
|
-
async disableMfa(request, options) {
|
|
66
|
-
return unwrapAsync(usersDisableMfa(this, request, options));
|
|
67
|
-
}
|
|
68
|
-
async validateMfa(request, options) {
|
|
69
|
-
return unwrapAsync(usersValidateMfa(this, request, options));
|
|
70
|
-
}
|
|
71
|
-
async sendMfa(request, options) {
|
|
72
|
-
return unwrapAsync(usersSendMfa(this, request, options));
|
|
73
|
-
}
|
|
74
|
-
async listRecoveryCodes(request, options) {
|
|
75
|
-
return unwrapAsync(usersListRecoveryCodes(this, request, options));
|
|
76
|
-
}
|
|
77
|
-
async regenerateRecoveryCodes(request, options) {
|
|
78
|
-
return unwrapAsync(usersRegenerateRecoveryCodes(this, request, options));
|
|
79
|
-
}
|
|
80
|
-
async validateRecoveryCode(request, options) {
|
|
81
|
-
return unwrapAsync(usersValidateRecoveryCode(this, request, options));
|
|
82
|
-
}
|
|
83
55
|
}
|
|
84
56
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/users/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/users/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,OAAO,KAAM,SAAQ,SAAS;IAOlC,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAED,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAED,IAAI,aAAa;QACf,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxE,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClE,CAAC;IAED,IAAI,aAAa;QACf,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,IAAI,CACR,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,SAAS,CAC1B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,GAAG,CACP,OAAkC,EAClC,OAAwB;QAExB,OAAO,WAAW,CAAC,QAAQ,CACzB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
export declare class UserMfaMethods extends ClientSDK {
|
|
4
|
+
list(request: operations.ListUserMfaMethodsRequest, options?: RequestOptions): Promise<operations.ListUserMfaMethodsResponse>;
|
|
5
|
+
get(request: operations.GetMfaMethodRequest, options?: RequestOptions): Promise<operations.GetMfaMethodResponse>;
|
|
6
|
+
enable(request: operations.EnableMfaRequest, options?: RequestOptions): Promise<operations.EnableMfaResponse>;
|
|
7
|
+
disable(request: operations.DisableMfaRequest, options?: RequestOptions): Promise<operations.DisableMfaResponse>;
|
|
8
|
+
validate(request: operations.ValidateMfaRequest, options?: RequestOptions): Promise<operations.ValidateMfaResponse>;
|
|
9
|
+
send(request: operations.SendMfaRequest, options?: RequestOptions): Promise<operations.SendMfaResponse>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=mfa-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mfa-methods.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/mfa-methods.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAQ/D,qBAAa,cAAe,SAAQ,SAAS;IACrC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQ3C,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQrC,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQlC,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQnC,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQpC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;CAOvC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* User MFA methods SDK.
|
|
3
|
+
*/
|
|
4
|
+
import { ClientSDK } from "../../lib/sdks.js";
|
|
5
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
6
|
+
import { usersListMfaMethods } from "../../funcs/users/usersListMfaMethods.js";
|
|
7
|
+
import { usersGetMfaMethod } from "../../funcs/users/usersGetMfaMethod.js";
|
|
8
|
+
import { usersEnableMfa } from "../../funcs/users/usersEnableMfa.js";
|
|
9
|
+
import { usersDisableMfa } from "../../funcs/users/usersDisableMfa.js";
|
|
10
|
+
import { usersValidateMfa } from "../../funcs/users/usersValidateMfa.js";
|
|
11
|
+
import { usersSendMfa } from "../../funcs/users/usersSendMfa.js";
|
|
12
|
+
export class UserMfaMethods extends ClientSDK {
|
|
13
|
+
async list(request, options) {
|
|
14
|
+
return unwrapAsync(usersListMfaMethods(this, request, options));
|
|
15
|
+
}
|
|
16
|
+
async get(request, options) {
|
|
17
|
+
return unwrapAsync(usersGetMfaMethod(this, request, options));
|
|
18
|
+
}
|
|
19
|
+
async enable(request, options) {
|
|
20
|
+
return unwrapAsync(usersEnableMfa(this, request, options));
|
|
21
|
+
}
|
|
22
|
+
async disable(request, options) {
|
|
23
|
+
return unwrapAsync(usersDisableMfa(this, request, options));
|
|
24
|
+
}
|
|
25
|
+
async validate(request, options) {
|
|
26
|
+
return unwrapAsync(usersValidateMfa(this, request, options));
|
|
27
|
+
}
|
|
28
|
+
async send(request, options) {
|
|
29
|
+
return unwrapAsync(usersSendMfa(this, request, options));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=mfa-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mfa-methods.js","sourceRoot":"","sources":["../../../../src/sdk/users/mfa-methods.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C,KAAK,CAAC,IAAI,CACR,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,GAAG,CACP,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAoC,EACpC,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO,CACX,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI,CACR,OAAkC,EAClC,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
export declare class UserOAuthAccounts extends ClientSDK {
|
|
4
|
+
list(request: operations.ListUserOAuthAccountsRequest, options?: RequestOptions): Promise<operations.ListUserOAuthAccountsResponse>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=oauth-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-accounts.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/oauth-accounts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAG/D,qBAAa,iBAAkB,SAAQ,SAAS;IACxC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAOrD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* User OAuth accounts SDK.
|
|
3
|
+
*/
|
|
4
|
+
import { ClientSDK } from "../../lib/sdks.js";
|
|
5
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
6
|
+
import { usersListOAuthAccounts } from "../../funcs/users/usersListOAuthAccounts.js";
|
|
7
|
+
export class UserOAuthAccounts extends ClientSDK {
|
|
8
|
+
async list(request, options) {
|
|
9
|
+
return unwrapAsync(usersListOAuthAccounts(this, request, options));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=oauth-accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-accounts.js","sourceRoot":"","sources":["../../../../src/sdk/users/oauth-accounts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAErF,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,KAAK,CAAC,IAAI,CACR,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as operations from "../../models/operations/index.js";
|
|
3
|
+
export declare class UserRecoveryCodes extends ClientSDK {
|
|
4
|
+
list(request: operations.ListUserRecoveryCodesRequest, options?: RequestOptions): Promise<operations.ListUserRecoveryCodesResponse>;
|
|
5
|
+
regenerate(request: operations.RegenerateRecoveryCodesRequest, options?: RequestOptions): Promise<operations.RegenerateRecoveryCodesResponse>;
|
|
6
|
+
validate(request: operations.ValidateRecoveryCodeRequest, options?: RequestOptions): Promise<operations.ValidateRecoveryCodeResponse>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=recovery-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery-codes.d.ts","sourceRoot":"","sources":["../../../../src/sdk/users/recovery-codes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAK/D,qBAAa,iBAAkB,SAAQ,SAAS;IACxC,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQ9C,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQhD,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;CAOpD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* User recovery codes SDK.
|
|
3
|
+
*/
|
|
4
|
+
import { ClientSDK } from "../../lib/sdks.js";
|
|
5
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
6
|
+
import { usersListRecoveryCodes } from "../../funcs/users/usersListRecoveryCodes.js";
|
|
7
|
+
import { usersRegenerateRecoveryCodes } from "../../funcs/users/usersRegenerateRecoveryCodes.js";
|
|
8
|
+
import { usersValidateRecoveryCode } from "../../funcs/users/usersValidateRecoveryCode.js";
|
|
9
|
+
export class UserRecoveryCodes extends ClientSDK {
|
|
10
|
+
async list(request, options) {
|
|
11
|
+
return unwrapAsync(usersListRecoveryCodes(this, request, options));
|
|
12
|
+
}
|
|
13
|
+
async regenerate(request, options) {
|
|
14
|
+
return unwrapAsync(usersRegenerateRecoveryCodes(this, request, options));
|
|
15
|
+
}
|
|
16
|
+
async validate(request, options) {
|
|
17
|
+
return unwrapAsync(usersValidateRecoveryCode(this, request, options));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=recovery-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery-codes.js","sourceRoot":"","sources":["../../../../src/sdk/users/recovery-codes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACjG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAE3F,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,KAAK,CAAC,IAAI,CACR,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAkD,EAClD,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* User customers SDK.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
7
|
+
import * as operations from "../../models/operations/index.js";
|
|
8
|
+
import { usersListCustomers } from "../../funcs/users/usersListCustomers.js";
|
|
9
|
+
|
|
10
|
+
export class UserCustomers extends ClientSDK {
|
|
11
|
+
async list(
|
|
12
|
+
request: operations.ListUserCustomersRequest,
|
|
13
|
+
options?: RequestOptions,
|
|
14
|
+
): Promise<operations.ListUserCustomersResponse> {
|
|
15
|
+
return unwrapAsync(usersListCustomers(
|
|
16
|
+
this,
|
|
17
|
+
request,
|
|
18
|
+
options,
|
|
19
|
+
));
|
|
20
|
+
}
|
|
21
|
+
}
|
package/src/sdk/users/index.ts
CHANGED
|
@@ -12,26 +12,39 @@ import { usersList } from "../../funcs/users/usersList.js";
|
|
|
12
12
|
import { usersUpdate } from "../../funcs/users/usersUpdate.js";
|
|
13
13
|
import { usersSendPasswordResetLink } from "../../funcs/users/usersSendPasswordResetLink.js";
|
|
14
14
|
import { usersResetPassword } from "../../funcs/users/usersResetPassword.js";
|
|
15
|
-
import {
|
|
16
|
-
import { usersListOAuthAccounts } from "../../funcs/users/usersListOAuthAccounts.js";
|
|
17
|
-
import { usersListMfaMethods } from "../../funcs/users/usersListMfaMethods.js";
|
|
18
|
-
import { usersGetMfaMethod } from "../../funcs/users/usersGetMfaMethod.js";
|
|
19
|
-
import { usersEnableMfa } from "../../funcs/users/usersEnableMfa.js";
|
|
20
|
-
import { usersDisableMfa } from "../../funcs/users/usersDisableMfa.js";
|
|
21
|
-
import { usersValidateMfa } from "../../funcs/users/usersValidateMfa.js";
|
|
22
|
-
import { usersSendMfa } from "../../funcs/users/usersSendMfa.js";
|
|
23
|
-
import { usersListRecoveryCodes } from "../../funcs/users/usersListRecoveryCodes.js";
|
|
24
|
-
import { usersRegenerateRecoveryCodes } from "../../funcs/users/usersRegenerateRecoveryCodes.js";
|
|
25
|
-
import { usersValidateRecoveryCode } from "../../funcs/users/usersValidateRecoveryCode.js";
|
|
15
|
+
import { UserCustomers } from "./customers.js";
|
|
26
16
|
import { UserLogins } from "./logins.js";
|
|
17
|
+
import { UserMfaMethods } from "./mfa-methods.js";
|
|
18
|
+
import { UserOAuthAccounts } from "./oauth-accounts.js";
|
|
19
|
+
import { UserRecoveryCodes } from "./recovery-codes.js";
|
|
27
20
|
|
|
28
21
|
export class Users extends ClientSDK {
|
|
29
22
|
private _logins?: UserLogins;
|
|
23
|
+
private _customers?: UserCustomers;
|
|
24
|
+
private _oauthAccounts?: UserOAuthAccounts;
|
|
25
|
+
private _mfaMethods?: UserMfaMethods;
|
|
26
|
+
private _recoveryCodes?: UserRecoveryCodes;
|
|
30
27
|
|
|
31
28
|
get logins(): UserLogins {
|
|
32
29
|
return (this._logins ??= new UserLogins(this._options));
|
|
33
30
|
}
|
|
34
31
|
|
|
32
|
+
get customers(): UserCustomers {
|
|
33
|
+
return (this._customers ??= new UserCustomers(this._options));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
get oauthAccounts(): UserOAuthAccounts {
|
|
37
|
+
return (this._oauthAccounts ??= new UserOAuthAccounts(this._options));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get mfaMethods(): UserMfaMethods {
|
|
41
|
+
return (this._mfaMethods ??= new UserMfaMethods(this._options));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
get recoveryCodes(): UserRecoveryCodes {
|
|
45
|
+
return (this._recoveryCodes ??= new UserRecoveryCodes(this._options));
|
|
46
|
+
}
|
|
47
|
+
|
|
35
48
|
async list(
|
|
36
49
|
request?: operations.UsersListParams | undefined,
|
|
37
50
|
options?: RequestOptions,
|
|
@@ -108,125 +121,4 @@ export class Users extends ClientSDK {
|
|
|
108
121
|
options,
|
|
109
122
|
));
|
|
110
123
|
}
|
|
111
|
-
|
|
112
|
-
async listCustomers(
|
|
113
|
-
request: operations.ListUserCustomersRequest,
|
|
114
|
-
options?: RequestOptions,
|
|
115
|
-
): Promise<operations.ListUserCustomersResponse> {
|
|
116
|
-
return unwrapAsync(usersListCustomers(
|
|
117
|
-
this,
|
|
118
|
-
request,
|
|
119
|
-
options,
|
|
120
|
-
));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
async listOAuthAccounts(
|
|
124
|
-
request: operations.ListUserOAuthAccountsRequest,
|
|
125
|
-
options?: RequestOptions,
|
|
126
|
-
): Promise<operations.ListUserOAuthAccountsResponse> {
|
|
127
|
-
return unwrapAsync(usersListOAuthAccounts(
|
|
128
|
-
this,
|
|
129
|
-
request,
|
|
130
|
-
options,
|
|
131
|
-
));
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
async listMfaMethods(
|
|
135
|
-
request: operations.ListUserMfaMethodsRequest,
|
|
136
|
-
options?: RequestOptions,
|
|
137
|
-
): Promise<operations.ListUserMfaMethodsResponse> {
|
|
138
|
-
return unwrapAsync(usersListMfaMethods(
|
|
139
|
-
this,
|
|
140
|
-
request,
|
|
141
|
-
options,
|
|
142
|
-
));
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
async getMfaMethod(
|
|
146
|
-
request: operations.GetMfaMethodRequest,
|
|
147
|
-
options?: RequestOptions,
|
|
148
|
-
): Promise<operations.GetMfaMethodResponse> {
|
|
149
|
-
return unwrapAsync(usersGetMfaMethod(
|
|
150
|
-
this,
|
|
151
|
-
request,
|
|
152
|
-
options,
|
|
153
|
-
));
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
async enableMfa(
|
|
157
|
-
request: operations.EnableMfaRequest,
|
|
158
|
-
options?: RequestOptions,
|
|
159
|
-
): Promise<operations.EnableMfaResponse> {
|
|
160
|
-
return unwrapAsync(usersEnableMfa(
|
|
161
|
-
this,
|
|
162
|
-
request,
|
|
163
|
-
options,
|
|
164
|
-
));
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
async disableMfa(
|
|
168
|
-
request: operations.DisableMfaRequest,
|
|
169
|
-
options?: RequestOptions,
|
|
170
|
-
): Promise<operations.DisableMfaResponse> {
|
|
171
|
-
return unwrapAsync(usersDisableMfa(
|
|
172
|
-
this,
|
|
173
|
-
request,
|
|
174
|
-
options,
|
|
175
|
-
));
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
async validateMfa(
|
|
179
|
-
request: operations.ValidateMfaRequest,
|
|
180
|
-
options?: RequestOptions,
|
|
181
|
-
): Promise<operations.ValidateMfaResponse> {
|
|
182
|
-
return unwrapAsync(usersValidateMfa(
|
|
183
|
-
this,
|
|
184
|
-
request,
|
|
185
|
-
options,
|
|
186
|
-
));
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
async sendMfa(
|
|
190
|
-
request: operations.SendMfaRequest,
|
|
191
|
-
options?: RequestOptions,
|
|
192
|
-
): Promise<operations.SendMfaResponse> {
|
|
193
|
-
return unwrapAsync(usersSendMfa(
|
|
194
|
-
this,
|
|
195
|
-
request,
|
|
196
|
-
options,
|
|
197
|
-
));
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
async listRecoveryCodes(
|
|
201
|
-
request: operations.ListUserRecoveryCodesRequest,
|
|
202
|
-
options?: RequestOptions,
|
|
203
|
-
): Promise<operations.ListUserRecoveryCodesResponse> {
|
|
204
|
-
return unwrapAsync(usersListRecoveryCodes(
|
|
205
|
-
this,
|
|
206
|
-
request,
|
|
207
|
-
options,
|
|
208
|
-
));
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
async regenerateRecoveryCodes(
|
|
212
|
-
request: operations.RegenerateRecoveryCodesRequest,
|
|
213
|
-
options?: RequestOptions,
|
|
214
|
-
): Promise<operations.RegenerateRecoveryCodesResponse> {
|
|
215
|
-
return unwrapAsync(usersRegenerateRecoveryCodes(
|
|
216
|
-
this,
|
|
217
|
-
request,
|
|
218
|
-
options,
|
|
219
|
-
));
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
async validateRecoveryCode(
|
|
223
|
-
request: operations.ValidateRecoveryCodeRequest,
|
|
224
|
-
options?: RequestOptions,
|
|
225
|
-
): Promise<operations.ValidateRecoveryCodeResponse> {
|
|
226
|
-
return unwrapAsync(usersValidateRecoveryCode(
|
|
227
|
-
this,
|
|
228
|
-
request,
|
|
229
|
-
options,
|
|
230
|
-
));
|
|
231
|
-
}
|
|
232
124
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* User MFA methods SDK.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
7
|
+
import * as operations from "../../models/operations/index.js";
|
|
8
|
+
import { usersListMfaMethods } from "../../funcs/users/usersListMfaMethods.js";
|
|
9
|
+
import { usersGetMfaMethod } from "../../funcs/users/usersGetMfaMethod.js";
|
|
10
|
+
import { usersEnableMfa } from "../../funcs/users/usersEnableMfa.js";
|
|
11
|
+
import { usersDisableMfa } from "../../funcs/users/usersDisableMfa.js";
|
|
12
|
+
import { usersValidateMfa } from "../../funcs/users/usersValidateMfa.js";
|
|
13
|
+
import { usersSendMfa } from "../../funcs/users/usersSendMfa.js";
|
|
14
|
+
|
|
15
|
+
export class UserMfaMethods extends ClientSDK {
|
|
16
|
+
async list(
|
|
17
|
+
request: operations.ListUserMfaMethodsRequest,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): Promise<operations.ListUserMfaMethodsResponse> {
|
|
20
|
+
return unwrapAsync(usersListMfaMethods(
|
|
21
|
+
this,
|
|
22
|
+
request,
|
|
23
|
+
options,
|
|
24
|
+
));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async get(
|
|
28
|
+
request: operations.GetMfaMethodRequest,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): Promise<operations.GetMfaMethodResponse> {
|
|
31
|
+
return unwrapAsync(usersGetMfaMethod(
|
|
32
|
+
this,
|
|
33
|
+
request,
|
|
34
|
+
options,
|
|
35
|
+
));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async enable(
|
|
39
|
+
request: operations.EnableMfaRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): Promise<operations.EnableMfaResponse> {
|
|
42
|
+
return unwrapAsync(usersEnableMfa(
|
|
43
|
+
this,
|
|
44
|
+
request,
|
|
45
|
+
options,
|
|
46
|
+
));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async disable(
|
|
50
|
+
request: operations.DisableMfaRequest,
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): Promise<operations.DisableMfaResponse> {
|
|
53
|
+
return unwrapAsync(usersDisableMfa(
|
|
54
|
+
this,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async validate(
|
|
61
|
+
request: operations.ValidateMfaRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<operations.ValidateMfaResponse> {
|
|
64
|
+
return unwrapAsync(usersValidateMfa(
|
|
65
|
+
this,
|
|
66
|
+
request,
|
|
67
|
+
options,
|
|
68
|
+
));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async send(
|
|
72
|
+
request: operations.SendMfaRequest,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): Promise<operations.SendMfaResponse> {
|
|
75
|
+
return unwrapAsync(usersSendMfa(
|
|
76
|
+
this,
|
|
77
|
+
request,
|
|
78
|
+
options,
|
|
79
|
+
));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* User OAuth accounts SDK.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
7
|
+
import * as operations from "../../models/operations/index.js";
|
|
8
|
+
import { usersListOAuthAccounts } from "../../funcs/users/usersListOAuthAccounts.js";
|
|
9
|
+
|
|
10
|
+
export class UserOAuthAccounts extends ClientSDK {
|
|
11
|
+
async list(
|
|
12
|
+
request: operations.ListUserOAuthAccountsRequest,
|
|
13
|
+
options?: RequestOptions,
|
|
14
|
+
): Promise<operations.ListUserOAuthAccountsResponse> {
|
|
15
|
+
return unwrapAsync(usersListOAuthAccounts(
|
|
16
|
+
this,
|
|
17
|
+
request,
|
|
18
|
+
options,
|
|
19
|
+
));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* User recovery codes SDK.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
7
|
+
import * as operations from "../../models/operations/index.js";
|
|
8
|
+
import { usersListRecoveryCodes } from "../../funcs/users/usersListRecoveryCodes.js";
|
|
9
|
+
import { usersRegenerateRecoveryCodes } from "../../funcs/users/usersRegenerateRecoveryCodes.js";
|
|
10
|
+
import { usersValidateRecoveryCode } from "../../funcs/users/usersValidateRecoveryCode.js";
|
|
11
|
+
|
|
12
|
+
export class UserRecoveryCodes extends ClientSDK {
|
|
13
|
+
async list(
|
|
14
|
+
request: operations.ListUserRecoveryCodesRequest,
|
|
15
|
+
options?: RequestOptions,
|
|
16
|
+
): Promise<operations.ListUserRecoveryCodesResponse> {
|
|
17
|
+
return unwrapAsync(usersListRecoveryCodes(
|
|
18
|
+
this,
|
|
19
|
+
request,
|
|
20
|
+
options,
|
|
21
|
+
));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async regenerate(
|
|
25
|
+
request: operations.RegenerateRecoveryCodesRequest,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): Promise<operations.RegenerateRecoveryCodesResponse> {
|
|
28
|
+
return unwrapAsync(usersRegenerateRecoveryCodes(
|
|
29
|
+
this,
|
|
30
|
+
request,
|
|
31
|
+
options,
|
|
32
|
+
));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async validate(
|
|
36
|
+
request: operations.ValidateRecoveryCodeRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): Promise<operations.ValidateRecoveryCodeResponse> {
|
|
39
|
+
return unwrapAsync(usersValidateRecoveryCode(
|
|
40
|
+
this,
|
|
41
|
+
request,
|
|
42
|
+
options,
|
|
43
|
+
));
|
|
44
|
+
}
|
|
45
|
+
}
|