@parra/parra-js-sdk 0.3.203 → 0.3.205

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.
@@ -2907,7 +2907,7 @@ declare class ParraAPI {
2907
2907
  logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<Response>;
2908
2908
  getAuthDatabaseConnectionForTenant: (tenant_id: string, options?: Options) => Promise<AuthDatabaseConnection>;
2909
2909
  updateAuthDatabaseConnectionForTenant: (tenant_id: string, body?: UpdateAuthDatabaseConnection, options?: Options) => Promise<AuthDatabaseConnection>;
2910
- resetPasswordForTenant: (tenant_id: string, body?: ResetPasswordRequestBody, options?: Options) => Promise<Response>;
2910
+ sendPasswordResetChallengeForTenant: (tenant_id: string, body?: ResetPasswordRequestBody, options?: Options) => Promise<Response>;
2911
2911
  createPasswordlessSmsConnectionForTenant: (tenant_id: string, body: CreatePasswordlessSmsConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
2912
2912
  listPasswordlessConnectionsForTenant: (tenant_id: string, options?: Options) => Promise<Array<PasswordlessConnection>>;
2913
2913
  updatePasswordlessConnectionForTenant: (tenant_id: string, passwordless_connection_id: string, body?: UpdatePasswordlessConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
@@ -2978,7 +2978,7 @@ declare class ParraAPI {
2978
2978
  }, options?: Options) => Promise<TenantUserCollectionResponse>;
2979
2979
  createIdentityForTenantUser: (tenant_id: string, user_id: string, body?: CreateTenantUserIdentityRequestBody, options?: Options) => Promise<Identity>;
2980
2980
  deleteIdentityForTenantById: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
2981
- resetPasswordForIdentity: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
2981
+ sendPasswordResetChallengeForIdentity: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
2982
2982
  sendVerificationChallengeForIdentity: (tenant_id: string, identity_id: string, options?: Options) => Promise<Response>;
2983
2983
  getTenantById: (tenant_id: string, query?: {
2984
2984
  include?: string;
package/dist/ParraAPI.js CHANGED
@@ -853,9 +853,9 @@ var ParraAPI = /** @class */ (function () {
853
853
  "content-type": "application/json",
854
854
  } }, options));
855
855
  };
856
- this.resetPasswordForTenant = function (tenant_id, body, options) {
856
+ this.sendPasswordResetChallengeForTenant = function (tenant_id, body, options) {
857
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: {
858
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/password/reset/challenge"), __assign({ method: "post", body: JSON.stringify(body), headers: {
859
859
  "content-type": "application/json",
860
860
  }, raw: true }, options));
861
861
  };
@@ -1073,9 +1073,9 @@ var ParraAPI = /** @class */ (function () {
1073
1073
  if (options === void 0) { options = {}; }
1074
1074
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id), __assign({ method: "delete" }, options));
1075
1075
  };
1076
- this.resetPasswordForIdentity = function (tenant_id, identity_id, options) {
1076
+ this.sendPasswordResetChallengeForIdentity = function (tenant_id, identity_id, options) {
1077
1077
  if (options === void 0) { options = {}; }
1078
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id, "/password/reset"), __assign({ method: "post" }, options));
1078
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id, "/password/reset/challenge"), __assign({ method: "post" }, options));
1079
1079
  };
1080
1080
  this.sendVerificationChallengeForIdentity = function (tenant_id, identity_id, options) {
1081
1081
  if (options === void 0) { options = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.203",
3
+ "version": "0.3.205",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",