@parra/parra-js-sdk 0.3.147 → 0.3.149

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.
@@ -187,7 +187,7 @@ export interface EmailConfig {
187
187
  }
188
188
  export interface PhoneNumberConfig {
189
189
  }
190
- export interface AppInfoDatabaseConfig {
190
+ export interface AuthDatabaseConnection {
191
191
  password?: PasswordConfig | null;
192
192
  username?: UsernameConfig | null;
193
193
  email?: EmailConfig | null;
@@ -200,7 +200,7 @@ export interface AuthInfoPasswordlessConfig {
200
200
  sms?: AuthInfoPasswordlessSmsConfig | null;
201
201
  }
202
202
  export interface AppAuthInfo {
203
- database?: AppInfoDatabaseConfig | null;
203
+ database?: AuthDatabaseConnection | null;
204
204
  passwordless?: AuthInfoPasswordlessConfig | null;
205
205
  }
206
206
  export declare enum PolicyDocumentType {
@@ -2366,6 +2366,7 @@ declare class ParraAPI {
2366
2366
  loginUserForTenant: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
2367
2367
  getTenantUserInfo: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
2368
2368
  logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<Response>;
2369
+ getAuthDatabaseConnectionForTenant: (tenant_id: string, options?: Options) => Promise<AuthDatabaseConnection>;
2369
2370
  createPasswordlessSmsConnectionForTenant: (tenant_id: string, body: CreatePasswordlessSmsConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
2370
2371
  listPasswordlessConnectionsForTenant: (tenant_id: string, options?: Options) => Promise<Array<PasswordlessConnection>>;
2371
2372
  updatePasswordlessConnectionForTenant: (tenant_id: string, passwordless_connection_id: string, body?: UpdatePasswordlessConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
package/dist/ParraAPI.js CHANGED
@@ -791,6 +791,10 @@ var ParraAPI = /** @class */ (function () {
791
791
  if (options === void 0) { options = {}; }
792
792
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/logout"), __assign({ method: "post" }, options));
793
793
  };
794
+ this.getAuthDatabaseConnectionForTenant = function (tenant_id, options) {
795
+ if (options === void 0) { options = {}; }
796
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/database/connection"), __assign({ method: "get" }, options));
797
+ };
794
798
  this.createPasswordlessSmsConnectionForTenant = function (tenant_id, body, options) {
795
799
  if (options === void 0) { options = {}; }
796
800
  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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.147",
3
+ "version": "0.3.149",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",