@parra/parra-js-sdk 0.3.196 → 0.3.197
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/ParraAPI.d.ts +10 -0
- package/dist/ParraAPI.js +14 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1694,6 +1694,13 @@ export interface UpdateAuthDatabaseConnection {
|
|
|
1694
1694
|
passkeys_allow_progressive_enrollment?: boolean;
|
|
1695
1695
|
passkeys_allow_local_enrollment?: boolean;
|
|
1696
1696
|
}
|
|
1697
|
+
export interface ResetPasswordRequestBody {
|
|
1698
|
+
client_id?: string;
|
|
1699
|
+
email?: string;
|
|
1700
|
+
phone_number?: string;
|
|
1701
|
+
username?: string;
|
|
1702
|
+
unknown_identity?: string;
|
|
1703
|
+
}
|
|
1697
1704
|
export interface PasswordlessSmsConnectionData {
|
|
1698
1705
|
connected_app_connection_id: string;
|
|
1699
1706
|
otp_length: number;
|
|
@@ -2890,6 +2897,7 @@ declare class ParraAPI {
|
|
|
2890
2897
|
logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<Response>;
|
|
2891
2898
|
getAuthDatabaseConnectionForTenant: (tenant_id: string, options?: Options) => Promise<AuthDatabaseConnection>;
|
|
2892
2899
|
updateAuthDatabaseConnectionForTenant: (tenant_id: string, body?: UpdateAuthDatabaseConnection, options?: Options) => Promise<AuthDatabaseConnection>;
|
|
2900
|
+
resetPasswordForTenant: (tenant_id: string, body?: ResetPasswordRequestBody, options?: Options) => Promise<Response>;
|
|
2893
2901
|
createPasswordlessSmsConnectionForTenant: (tenant_id: string, body: CreatePasswordlessSmsConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
|
|
2894
2902
|
listPasswordlessConnectionsForTenant: (tenant_id: string, options?: Options) => Promise<Array<PasswordlessConnection>>;
|
|
2895
2903
|
updatePasswordlessConnectionForTenant: (tenant_id: string, passwordless_connection_id: string, body?: UpdatePasswordlessConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
|
|
@@ -2958,6 +2966,8 @@ declare class ParraAPI {
|
|
|
2958
2966
|
$expand?: string;
|
|
2959
2967
|
$search?: string;
|
|
2960
2968
|
}, options?: Options) => Promise<TenantUserCollectionResponse>;
|
|
2969
|
+
resetPasswordForIdentity: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
|
|
2970
|
+
sendVerificationChallengeForIdentity: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
|
|
2961
2971
|
getTenantById: (tenant_id: string, query?: {
|
|
2962
2972
|
include?: string;
|
|
2963
2973
|
}, options?: Options) => Promise<Tenant>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -853,6 +853,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
853
853
|
"content-type": "application/json",
|
|
854
854
|
} }, options));
|
|
855
855
|
};
|
|
856
|
+
this.resetPasswordForTenant = function (tenant_id, body, options) {
|
|
857
|
+
if (options === void 0) { options = {}; }
|
|
858
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/password/reset"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
859
|
+
"content-type": "application/json",
|
|
860
|
+
}, raw: true }, options));
|
|
861
|
+
};
|
|
856
862
|
this.createPasswordlessSmsConnectionForTenant = function (tenant_id, body, options) {
|
|
857
863
|
if (options === void 0) { options = {}; }
|
|
858
864
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/sms"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
@@ -1057,6 +1063,14 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1057
1063
|
if (options === void 0) { options = {}; }
|
|
1058
1064
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), __assign({ method: "get", query: query }, options));
|
|
1059
1065
|
};
|
|
1066
|
+
this.resetPasswordForIdentity = function (tenant_id, identity_id, options) {
|
|
1067
|
+
if (options === void 0) { options = {}; }
|
|
1068
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id, "/password/reset"), __assign({ method: "post" }, options));
|
|
1069
|
+
};
|
|
1070
|
+
this.sendVerificationChallengeForIdentity = function (tenant_id, identity_id, options) {
|
|
1071
|
+
if (options === void 0) { options = {}; }
|
|
1072
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id, "/verification/challenge"), __assign({ method: "post" }, options));
|
|
1073
|
+
};
|
|
1060
1074
|
this.getTenantById = function (tenant_id, query, options) {
|
|
1061
1075
|
if (options === void 0) { options = {}; }
|
|
1062
1076
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), __assign({ method: "get", query: query }, options));
|