@insureco/bio 0.8.0 → 0.9.0

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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { b as BioAuthConfig, A as AuthorizeOptions, c as AuthorizeResult, S as SilentAuthOptions, T as TokenResponse, d as BioUser, I as IntrospectResult, e as BioAdminConfig, U as UserFilters, f as UpdateUserData, g as BioDepartment, C as CreateDepartmentData, h as BioRole, i as CreateRoleData, j as BioOAuthClient, k as CreateClientData, E as EmbedClientConfig, l as EmbedLoginParams, m as EmbedAuthResult, n as EmbedSignupParams, o as EmbedMagicLinkParams, p as EmbedVerifyParams, q as EmbedRefreshParams, r as EmbedLogoutParams, s as BioTokenPayload, V as VerifyOptions, J as JWKSVerifyOptions } from './types-DOpXwdF2.mjs';
2
- export { t as AdminResponse, u as BioAddress, v as BioClientTokenPayload, w as BioMessaging, B as BioUsersConfig, x as EmbedBranding, y as EmbedUser, z as OrgMember, O as OrgMemberFilters, a as OrgMembersResult, D as ServiceRole } from './types-DOpXwdF2.mjs';
1
+ import { b as BioAuthConfig, A as AuthorizeOptions, c as AuthorizeResult, S as SilentAuthOptions, T as TokenResponse, d as BioUser, I as IntrospectResult, e as BioAdminConfig, U as UserFilters, f as UpdateUserData, g as BioDepartment, C as CreateDepartmentData, h as BioRole, i as CreateRoleData, j as BioOAuthClient, k as CreateClientData, E as EmbedClientConfig, l as EmbedLoginParams, m as EmbedAuthResult, n as EmbedSignupParams, o as EmbedMagicLinkParams, p as EmbedVerifyParams, q as EmbedRefreshParams, r as EmbedLogoutParams, s as BioTokenPayload, V as VerifyOptions, J as JWKSVerifyOptions } from './types-Cm0uZYaQ.mjs';
2
+ export { t as AdminResponse, u as BioAddress, v as BioClientTokenPayload, w as BioMessaging, B as BioUsersConfig, x as EmbedBranding, y as EmbedUser, z as OrgMember, O as OrgMemberFilters, a as OrgMembersResult, D as ServiceRole } from './types-Cm0uZYaQ.mjs';
3
3
  export { AgencyProfile, AgencyProgram, AgencyStaffMember, AgentEmployer, AgentProfile, AppetiteMatchInput, AppetiteMatchProgram, AppetiteMatchResult, AppointmentVerifyResult, CarrierProfile, CarrierProgram, GraphChainEdge, GraphChainNode, GraphChainResult, GraphClient, GraphClientConfig, GraphSearchOptions, GraphSearchResult, GraphSearchResultItem, LicenseVerifyResult, ProgramProfile, VerifyAppointmentInput, VerifyLicenseInput } from './graph.mjs';
4
4
  export { PassportClient } from './passport.mjs';
5
5
  export { P as Passport, b as PassportBranding, c as PassportClientConfig, d as PassportCrossOrgPermission, e as PassportEventType, f as PassportMessage, g as PassportServiceGrant, h as PassportSession, a as PassportStatus, i as PassportTokenRefresher, j as PassportVillage } from './passport-types-bPgjNxv-.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { b as BioAuthConfig, A as AuthorizeOptions, c as AuthorizeResult, S as SilentAuthOptions, T as TokenResponse, d as BioUser, I as IntrospectResult, e as BioAdminConfig, U as UserFilters, f as UpdateUserData, g as BioDepartment, C as CreateDepartmentData, h as BioRole, i as CreateRoleData, j as BioOAuthClient, k as CreateClientData, E as EmbedClientConfig, l as EmbedLoginParams, m as EmbedAuthResult, n as EmbedSignupParams, o as EmbedMagicLinkParams, p as EmbedVerifyParams, q as EmbedRefreshParams, r as EmbedLogoutParams, s as BioTokenPayload, V as VerifyOptions, J as JWKSVerifyOptions } from './types-DOpXwdF2.js';
2
- export { t as AdminResponse, u as BioAddress, v as BioClientTokenPayload, w as BioMessaging, B as BioUsersConfig, x as EmbedBranding, y as EmbedUser, z as OrgMember, O as OrgMemberFilters, a as OrgMembersResult, D as ServiceRole } from './types-DOpXwdF2.js';
1
+ import { b as BioAuthConfig, A as AuthorizeOptions, c as AuthorizeResult, S as SilentAuthOptions, T as TokenResponse, d as BioUser, I as IntrospectResult, e as BioAdminConfig, U as UserFilters, f as UpdateUserData, g as BioDepartment, C as CreateDepartmentData, h as BioRole, i as CreateRoleData, j as BioOAuthClient, k as CreateClientData, E as EmbedClientConfig, l as EmbedLoginParams, m as EmbedAuthResult, n as EmbedSignupParams, o as EmbedMagicLinkParams, p as EmbedVerifyParams, q as EmbedRefreshParams, r as EmbedLogoutParams, s as BioTokenPayload, V as VerifyOptions, J as JWKSVerifyOptions } from './types-Cm0uZYaQ.js';
2
+ export { t as AdminResponse, u as BioAddress, v as BioClientTokenPayload, w as BioMessaging, B as BioUsersConfig, x as EmbedBranding, y as EmbedUser, z as OrgMember, O as OrgMemberFilters, a as OrgMembersResult, D as ServiceRole } from './types-Cm0uZYaQ.js';
3
3
  export { AgencyProfile, AgencyProgram, AgencyStaffMember, AgentEmployer, AgentProfile, AppetiteMatchInput, AppetiteMatchProgram, AppetiteMatchResult, AppointmentVerifyResult, CarrierProfile, CarrierProgram, GraphChainEdge, GraphChainNode, GraphChainResult, GraphClient, GraphClientConfig, GraphSearchOptions, GraphSearchResult, GraphSearchResultItem, LicenseVerifyResult, ProgramProfile, VerifyAppointmentInput, VerifyLicenseInput } from './graph.js';
4
4
  export { PassportClient } from './passport.js';
5
5
  export { P as Passport, b as PassportBranding, c as PassportClientConfig, d as PassportCrossOrgPermission, e as PassportEventType, f as PassportMessage, g as PassportServiceGrant, h as PassportSession, a as PassportStatus, i as PassportTokenRefresher, j as PassportVillage } from './passport-types-bPgjNxv-.js';
package/dist/index.js CHANGED
@@ -678,15 +678,16 @@ var EmbedClient = class _EmbedClient {
678
678
  async signup(params) {
679
679
  if (!params.email) throw new BioError("email is required", "validation_error");
680
680
  if (!params.password) throw new BioError("password is required", "validation_error");
681
- if (!params.name) throw new BioError("name is required", "validation_error");
681
+ if (!params.firstName) throw new BioError("firstName is required", "validation_error");
682
+ if (!params.lastName) throw new BioError("lastName is required", "validation_error");
682
683
  const body = {
683
684
  email: params.email,
684
685
  password: params.password,
685
- name: params.name
686
+ firstName: params.firstName,
687
+ lastName: params.lastName
686
688
  };
687
- if (params.inviteToken) {
688
- body.inviteToken = params.inviteToken;
689
- }
689
+ if (params.orgSlug) body.orgSlug = params.orgSlug;
690
+ if (params.inviteToken) body.inviteToken = params.inviteToken;
690
691
  return this.embedRequest("/api/embed/signup", body);
691
692
  }
692
693
  /**
package/dist/index.mjs CHANGED
@@ -608,15 +608,16 @@ var EmbedClient = class _EmbedClient {
608
608
  async signup(params) {
609
609
  if (!params.email) throw new BioError("email is required", "validation_error");
610
610
  if (!params.password) throw new BioError("password is required", "validation_error");
611
- if (!params.name) throw new BioError("name is required", "validation_error");
611
+ if (!params.firstName) throw new BioError("firstName is required", "validation_error");
612
+ if (!params.lastName) throw new BioError("lastName is required", "validation_error");
612
613
  const body = {
613
614
  email: params.email,
614
615
  password: params.password,
615
- name: params.name
616
+ firstName: params.firstName,
617
+ lastName: params.lastName
616
618
  };
617
- if (params.inviteToken) {
618
- body.inviteToken = params.inviteToken;
619
- }
619
+ if (params.orgSlug) body.orgSlug = params.orgSlug;
620
+ if (params.inviteToken) body.inviteToken = params.inviteToken;
620
621
  return this.embedRequest("/api/embed/signup", body);
621
622
  }
622
623
  /**
@@ -346,8 +346,12 @@ interface EmbedSignupParams {
346
346
  email: string;
347
347
  /** User password */
348
348
  password: string;
349
- /** Display name */
350
- name: string;
349
+ /** First name */
350
+ firstName: string;
351
+ /** Last name */
352
+ lastName: string;
353
+ /** Optional org slug to pre-assign the user to an existing org */
354
+ orgSlug?: string;
351
355
  /** Optional invite token for org-scoped signups */
352
356
  inviteToken?: string;
353
357
  }
@@ -346,8 +346,12 @@ interface EmbedSignupParams {
346
346
  email: string;
347
347
  /** User password */
348
348
  password: string;
349
- /** Display name */
350
- name: string;
349
+ /** First name */
350
+ firstName: string;
351
+ /** Last name */
352
+ lastName: string;
353
+ /** Optional org slug to pre-assign the user to an existing org */
354
+ orgSlug?: string;
351
355
  /** Optional invite token for org-scoped signups */
352
356
  inviteToken?: string;
353
357
  }
package/dist/users.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as BioUsersConfig, O as OrgMemberFilters, a as OrgMembersResult } from './types-DOpXwdF2.mjs';
1
+ import { B as BioUsersConfig, O as OrgMemberFilters, a as OrgMembersResult } from './types-Cm0uZYaQ.mjs';
2
2
 
3
3
  /**
4
4
  * Client for Bio-ID user access endpoints.
package/dist/users.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as BioUsersConfig, O as OrgMemberFilters, a as OrgMembersResult } from './types-DOpXwdF2.js';
1
+ import { B as BioUsersConfig, O as OrgMemberFilters, a as OrgMembersResult } from './types-Cm0uZYaQ.js';
2
2
 
3
3
  /**
4
4
  * Client for Bio-ID user access endpoints.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insureco/bio",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "SDK for Bio-ID SSO integration on the Tawa platform",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",