@meistrari/auth-core 1.39.0 → 1.39.2

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
@@ -92,7 +92,7 @@ type AssuranceFields = {
92
92
  };
93
93
 
94
94
  declare const ac: {
95
- newRole<K extends "organization" | "ac" | "member" | "access" | "invitation" | "team">(statements: better_auth_plugins.Subset<K, {
95
+ newRole<K extends "member" | "access" | "organization" | "invitation" | "team" | "ac">(statements: better_auth_plugins.Subset<K, {
96
96
  access: string[];
97
97
  organization: readonly ["update", "delete"];
98
98
  member: readonly ["create", "update", "delete"];
@@ -166,7 +166,7 @@ type Role = typeof Roles[keyof typeof Roles];
166
166
  */
167
167
  declare const rolesAccessControl: {
168
168
  "org:admin": {
169
- authorize<K_1 extends "organization" | "member" | "access" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"organization" | "member" | "access" | "invitation" | "team", {
169
+ authorize<K_1 extends "member" | "access" | "organization" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
170
170
  access: string[];
171
171
  organization: readonly ["update", "delete"];
172
172
  member: readonly ["create", "update", "delete"];
@@ -174,7 +174,7 @@ declare const rolesAccessControl: {
174
174
  team: readonly ["create", "update", "delete"];
175
175
  ac: readonly ["create", "read", "update", "delete"];
176
176
  }>[key] | {
177
- actions: better_auth_plugins.Subset<"organization" | "member" | "access" | "invitation" | "team", {
177
+ actions: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
178
178
  access: string[];
179
179
  organization: readonly ["update", "delete"];
180
180
  member: readonly ["create", "update", "delete"];
@@ -184,7 +184,7 @@ declare const rolesAccessControl: {
184
184
  }>[key];
185
185
  connector: "OR" | "AND";
186
186
  } | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
187
- statements: better_auth_plugins.Subset<"organization" | "member" | "access" | "invitation" | "team", {
187
+ statements: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
188
188
  access: string[];
189
189
  organization: readonly ["update", "delete"];
190
190
  member: readonly ["create", "update", "delete"];
@@ -2720,10 +2720,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2720
2720
  } & {
2721
2721
  preferredLanguage: string;
2722
2722
  } & {
2723
+ lastActiveAt?: Date | null | undefined;
2723
2724
  displayName?: string | null | undefined;
2724
2725
  title?: string | null | undefined;
2725
2726
  pronouns?: string | null | undefined;
2726
- lastActiveAt?: Date | null | undefined;
2727
2727
  }>;
2728
2728
  }, {
2729
2729
  code?: string | undefined;
@@ -2793,10 +2793,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2793
2793
  } & {
2794
2794
  preferredLanguage: string;
2795
2795
  } & {
2796
+ lastActiveAt?: Date | null | undefined;
2796
2797
  displayName?: string | null | undefined;
2797
2798
  title?: string | null | undefined;
2798
2799
  pronouns?: string | null | undefined;
2799
- lastActiveAt?: Date | null | undefined;
2800
2800
  }>;
2801
2801
  }) | (Omit<{
2802
2802
  token: string;
@@ -2829,10 +2829,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2829
2829
  } & {
2830
2830
  preferredLanguage: string;
2831
2831
  } & {
2832
+ lastActiveAt?: Date | null | undefined;
2832
2833
  displayName?: string | null | undefined;
2833
2834
  title?: string | null | undefined;
2834
2835
  pronouns?: string | null | undefined;
2835
- lastActiveAt?: Date | null | undefined;
2836
2836
  }>;
2837
2837
  }), {
2838
2838
  code?: string | undefined;
@@ -2887,10 +2887,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2887
2887
  } & {
2888
2888
  preferredLanguage: string;
2889
2889
  } & {
2890
+ lastActiveAt?: Date | null | undefined;
2890
2891
  displayName?: string | null | undefined;
2891
2892
  title?: string | null | undefined;
2892
2893
  pronouns?: string | null | undefined;
2893
- lastActiveAt?: Date | null | undefined;
2894
2894
  }>;
2895
2895
  }) | (Omit<{
2896
2896
  token: string;
@@ -2923,10 +2923,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2923
2923
  } & {
2924
2924
  preferredLanguage: string;
2925
2925
  } & {
2926
+ lastActiveAt?: Date | null | undefined;
2926
2927
  displayName?: string | null | undefined;
2927
2928
  title?: string | null | undefined;
2928
2929
  pronouns?: string | null | undefined;
2929
- lastActiveAt?: Date | null | undefined;
2930
2930
  }>;
2931
2931
  }), {
2932
2932
  code?: string | undefined;
@@ -3554,10 +3554,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3554
3554
  } & {
3555
3555
  preferredLanguage: string;
3556
3556
  } & {
3557
+ lastActiveAt?: Date | null | undefined;
3557
3558
  displayName?: string | null | undefined;
3558
3559
  title?: string | null | undefined;
3559
3560
  pronouns?: string | null | undefined;
3560
- lastActiveAt?: Date | null | undefined;
3561
3561
  }>;
3562
3562
  }) | (Omit<{
3563
3563
  status: boolean;
@@ -3591,10 +3591,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3591
3591
  } & {
3592
3592
  preferredLanguage: string;
3593
3593
  } & {
3594
+ lastActiveAt?: Date | null | undefined;
3594
3595
  displayName?: string | null | undefined;
3595
3596
  title?: string | null | undefined;
3596
3597
  pronouns?: string | null | undefined;
3597
- lastActiveAt?: Date | null | undefined;
3598
3598
  }>;
3599
3599
  }), {
3600
3600
  code?: string | undefined;
@@ -3646,10 +3646,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3646
3646
  } & {
3647
3647
  preferredLanguage: string;
3648
3648
  } & {
3649
+ lastActiveAt?: Date | null | undefined;
3649
3650
  displayName?: string | null | undefined;
3650
3651
  title?: string | null | undefined;
3651
3652
  pronouns?: string | null | undefined;
3652
- lastActiveAt?: Date | null | undefined;
3653
3653
  }>;
3654
3654
  }, {
3655
3655
  code?: string | undefined;
@@ -3813,10 +3813,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3813
3813
  } & {
3814
3814
  preferredLanguage: string;
3815
3815
  } & {
3816
+ lastActiveAt?: Date | null | undefined;
3816
3817
  displayName?: string | null | undefined;
3817
3818
  title?: string | null | undefined;
3818
3819
  pronouns?: string | null | undefined;
3819
- lastActiveAt?: Date | null | undefined;
3820
3820
  }>;
3821
3821
  }), {
3822
3822
  code?: string | undefined;
@@ -3850,11 +3850,11 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3850
3850
  callbackURL?: string | undefined;
3851
3851
  fetchOptions?: FetchOptions | undefined;
3852
3852
  } & {} & {} & {} & {} & {} & {
3853
+ lastActiveAt?: Date | null | undefined;
3853
3854
  displayName?: string | null | undefined;
3854
3855
  title?: string | null | undefined;
3855
3856
  pronouns?: string | null | undefined;
3856
3857
  preferredLanguage?: string | null | undefined;
3857
- lastActiveAt?: Date | null | undefined;
3858
3858
  }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<(Omit<{
3859
3859
  token: null;
3860
3860
  user: {
@@ -3886,10 +3886,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3886
3886
  } & {
3887
3887
  preferredLanguage: string;
3888
3888
  } & {
3889
+ lastActiveAt?: Date | null | undefined;
3889
3890
  displayName?: string | null | undefined;
3890
3891
  title?: string | null | undefined;
3891
3892
  pronouns?: string | null | undefined;
3892
- lastActiveAt?: Date | null | undefined;
3893
3893
  }>;
3894
3894
  }) | (Omit<{
3895
3895
  token: string;
@@ -3922,10 +3922,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3922
3922
  } & {
3923
3923
  preferredLanguage: string;
3924
3924
  } & {
3925
+ lastActiveAt?: Date | null | undefined;
3925
3926
  displayName?: string | null | undefined;
3926
3927
  title?: string | null | undefined;
3927
3928
  pronouns?: string | null | undefined;
3928
- lastActiveAt?: Date | null | undefined;
3929
3929
  }>;
3930
3930
  }), {
3931
3931
  code?: string | undefined;
@@ -3979,10 +3979,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3979
3979
  } & {
3980
3980
  preferredLanguage: string;
3981
3981
  } & {
3982
+ lastActiveAt?: Date | null | undefined;
3982
3983
  displayName?: string | null | undefined;
3983
3984
  title?: string | null | undefined;
3984
3985
  pronouns?: string | null | undefined;
3985
- lastActiveAt?: Date | null | undefined;
3986
3986
  }>;
3987
3987
  }, {
3988
3988
  code?: string | undefined;
@@ -4102,10 +4102,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4102
4102
  } & {
4103
4103
  preferredLanguage: string;
4104
4104
  } & {
4105
+ lastActiveAt?: Date | null | undefined;
4105
4106
  displayName?: string | null | undefined;
4106
4107
  title?: string | null | undefined;
4107
4108
  pronouns?: string | null | undefined;
4108
- lastActiveAt?: Date | null | undefined;
4109
4109
  }>;
4110
4110
  }, {
4111
4111
  code?: string | undefined;
@@ -4138,11 +4138,11 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4138
4138
  name?: string | undefined;
4139
4139
  fetchOptions?: FetchOptions | undefined;
4140
4140
  } & Partial<{} & {} & {} & {} & {} & {
4141
+ lastActiveAt?: Date | null | undefined;
4141
4142
  displayName?: string | null | undefined;
4142
4143
  title?: string | null | undefined;
4143
4144
  pronouns?: string | null | undefined;
4144
4145
  preferredLanguage?: string | null | undefined;
4145
- lastActiveAt?: Date | null | undefined;
4146
4146
  }>> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
4147
4147
  status: boolean;
4148
4148
  }, {
@@ -4428,10 +4428,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4428
4428
  } & {
4429
4429
  preferredLanguage: string;
4430
4430
  } & {
4431
+ lastActiveAt?: Date | null | undefined;
4431
4432
  displayName?: string | null | undefined;
4432
4433
  title?: string | null | undefined;
4433
4434
  pronouns?: string | null | undefined;
4434
- lastActiveAt?: Date | null | undefined;
4435
4435
  }>;
4436
4436
  session: better_auth.StripEmptyObjects<{
4437
4437
  id: string;
@@ -4823,10 +4823,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4823
4823
  } & {
4824
4824
  preferredLanguage: string;
4825
4825
  } & {
4826
+ lastActiveAt?: Date | null | undefined;
4826
4827
  displayName?: string | null | undefined;
4827
4828
  title?: string | null | undefined;
4828
4829
  pronouns?: string | null | undefined;
4829
- lastActiveAt?: Date | null | undefined;
4830
4830
  }>;
4831
4831
  session: better_auth.StripEmptyObjects<{
4832
4832
  id: string;
@@ -4943,10 +4943,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4943
4943
  } & {
4944
4944
  preferredLanguage: string;
4945
4945
  } & {
4946
+ lastActiveAt?: Date | null | undefined;
4946
4947
  displayName?: string | null | undefined;
4947
4948
  title?: string | null | undefined;
4948
4949
  pronouns?: string | null | undefined;
4949
- lastActiveAt?: Date | null | undefined;
4950
4950
  }>;
4951
4951
  session: better_auth.StripEmptyObjects<{
4952
4952
  id: string;
@@ -5906,8 +5906,8 @@ type ListAdminOrganizationMembersOptions = {
5906
5906
  includeInvitations?: boolean;
5907
5907
  /** When true, each row includes the member's teams and accessible applications. */
5908
5908
  includeAccess?: boolean;
5909
- /** Column to sort by. Only the join date (createdAt) is sortable today. Defaults to 'createdAt'. */
5910
- sortBy?: 'createdAt';
5909
+ /** Column to sort by: the join date or the member name. Defaults to 'createdAt'. */
5910
+ sortBy?: 'createdAt' | 'name';
5911
5911
  /** Sort direction for the listing. Defaults to 'desc'. */
5912
5912
  sortDirection?: 'asc' | 'desc';
5913
5913
  };
@@ -7225,10 +7225,10 @@ declare class SessionService {
7225
7225
  } & {
7226
7226
  preferredLanguage: string;
7227
7227
  } & {
7228
+ lastActiveAt?: Date | null | undefined;
7228
7229
  displayName?: string | null | undefined;
7229
7230
  title?: string | null | undefined;
7230
7231
  pronouns?: string | null | undefined;
7231
- lastActiveAt?: Date | null | undefined;
7232
7232
  }>;
7233
7233
  session: better_auth.StripEmptyObjects<{
7234
7234
  id: string;
@@ -7466,10 +7466,10 @@ declare class EmailOTPService {
7466
7466
  } & {
7467
7467
  preferredLanguage: string;
7468
7468
  } & {
7469
+ lastActiveAt?: Date | null | undefined;
7469
7470
  displayName?: string | null | undefined;
7470
7471
  title?: string | null | undefined;
7471
7472
  pronouns?: string | null | undefined;
7472
- lastActiveAt?: Date | null | undefined;
7473
7473
  }>;
7474
7474
  }>;
7475
7475
  }
@@ -7519,10 +7519,10 @@ declare class UserService {
7519
7519
  } & {
7520
7520
  preferredLanguage: string;
7521
7521
  } & {
7522
+ lastActiveAt?: Date | null | undefined;
7522
7523
  displayName?: string | null | undefined;
7523
7524
  title?: string | null | undefined;
7524
7525
  pronouns?: string | null | undefined;
7525
- lastActiveAt?: Date | null | undefined;
7526
7526
  }>;
7527
7527
  }>;
7528
7528
  updateProfile(profile: UpdateUserProfilePayload): Promise<{
package/dist/index.d.ts CHANGED
@@ -92,7 +92,7 @@ type AssuranceFields = {
92
92
  };
93
93
 
94
94
  declare const ac: {
95
- newRole<K extends "organization" | "ac" | "member" | "access" | "invitation" | "team">(statements: better_auth_plugins.Subset<K, {
95
+ newRole<K extends "member" | "access" | "organization" | "invitation" | "team" | "ac">(statements: better_auth_plugins.Subset<K, {
96
96
  access: string[];
97
97
  organization: readonly ["update", "delete"];
98
98
  member: readonly ["create", "update", "delete"];
@@ -166,7 +166,7 @@ type Role = typeof Roles[keyof typeof Roles];
166
166
  */
167
167
  declare const rolesAccessControl: {
168
168
  "org:admin": {
169
- authorize<K_1 extends "organization" | "member" | "access" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"organization" | "member" | "access" | "invitation" | "team", {
169
+ authorize<K_1 extends "member" | "access" | "organization" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
170
170
  access: string[];
171
171
  organization: readonly ["update", "delete"];
172
172
  member: readonly ["create", "update", "delete"];
@@ -174,7 +174,7 @@ declare const rolesAccessControl: {
174
174
  team: readonly ["create", "update", "delete"];
175
175
  ac: readonly ["create", "read", "update", "delete"];
176
176
  }>[key] | {
177
- actions: better_auth_plugins.Subset<"organization" | "member" | "access" | "invitation" | "team", {
177
+ actions: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
178
178
  access: string[];
179
179
  organization: readonly ["update", "delete"];
180
180
  member: readonly ["create", "update", "delete"];
@@ -184,7 +184,7 @@ declare const rolesAccessControl: {
184
184
  }>[key];
185
185
  connector: "OR" | "AND";
186
186
  } | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
187
- statements: better_auth_plugins.Subset<"organization" | "member" | "access" | "invitation" | "team", {
187
+ statements: better_auth_plugins.Subset<"member" | "access" | "organization" | "invitation" | "team", {
188
188
  access: string[];
189
189
  organization: readonly ["update", "delete"];
190
190
  member: readonly ["create", "update", "delete"];
@@ -2720,10 +2720,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2720
2720
  } & {
2721
2721
  preferredLanguage: string;
2722
2722
  } & {
2723
+ lastActiveAt?: Date | null | undefined;
2723
2724
  displayName?: string | null | undefined;
2724
2725
  title?: string | null | undefined;
2725
2726
  pronouns?: string | null | undefined;
2726
- lastActiveAt?: Date | null | undefined;
2727
2727
  }>;
2728
2728
  }, {
2729
2729
  code?: string | undefined;
@@ -2793,10 +2793,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2793
2793
  } & {
2794
2794
  preferredLanguage: string;
2795
2795
  } & {
2796
+ lastActiveAt?: Date | null | undefined;
2796
2797
  displayName?: string | null | undefined;
2797
2798
  title?: string | null | undefined;
2798
2799
  pronouns?: string | null | undefined;
2799
- lastActiveAt?: Date | null | undefined;
2800
2800
  }>;
2801
2801
  }) | (Omit<{
2802
2802
  token: string;
@@ -2829,10 +2829,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2829
2829
  } & {
2830
2830
  preferredLanguage: string;
2831
2831
  } & {
2832
+ lastActiveAt?: Date | null | undefined;
2832
2833
  displayName?: string | null | undefined;
2833
2834
  title?: string | null | undefined;
2834
2835
  pronouns?: string | null | undefined;
2835
- lastActiveAt?: Date | null | undefined;
2836
2836
  }>;
2837
2837
  }), {
2838
2838
  code?: string | undefined;
@@ -2887,10 +2887,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2887
2887
  } & {
2888
2888
  preferredLanguage: string;
2889
2889
  } & {
2890
+ lastActiveAt?: Date | null | undefined;
2890
2891
  displayName?: string | null | undefined;
2891
2892
  title?: string | null | undefined;
2892
2893
  pronouns?: string | null | undefined;
2893
- lastActiveAt?: Date | null | undefined;
2894
2894
  }>;
2895
2895
  }) | (Omit<{
2896
2896
  token: string;
@@ -2923,10 +2923,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
2923
2923
  } & {
2924
2924
  preferredLanguage: string;
2925
2925
  } & {
2926
+ lastActiveAt?: Date | null | undefined;
2926
2927
  displayName?: string | null | undefined;
2927
2928
  title?: string | null | undefined;
2928
2929
  pronouns?: string | null | undefined;
2929
- lastActiveAt?: Date | null | undefined;
2930
2930
  }>;
2931
2931
  }), {
2932
2932
  code?: string | undefined;
@@ -3554,10 +3554,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3554
3554
  } & {
3555
3555
  preferredLanguage: string;
3556
3556
  } & {
3557
+ lastActiveAt?: Date | null | undefined;
3557
3558
  displayName?: string | null | undefined;
3558
3559
  title?: string | null | undefined;
3559
3560
  pronouns?: string | null | undefined;
3560
- lastActiveAt?: Date | null | undefined;
3561
3561
  }>;
3562
3562
  }) | (Omit<{
3563
3563
  status: boolean;
@@ -3591,10 +3591,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3591
3591
  } & {
3592
3592
  preferredLanguage: string;
3593
3593
  } & {
3594
+ lastActiveAt?: Date | null | undefined;
3594
3595
  displayName?: string | null | undefined;
3595
3596
  title?: string | null | undefined;
3596
3597
  pronouns?: string | null | undefined;
3597
- lastActiveAt?: Date | null | undefined;
3598
3598
  }>;
3599
3599
  }), {
3600
3600
  code?: string | undefined;
@@ -3646,10 +3646,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3646
3646
  } & {
3647
3647
  preferredLanguage: string;
3648
3648
  } & {
3649
+ lastActiveAt?: Date | null | undefined;
3649
3650
  displayName?: string | null | undefined;
3650
3651
  title?: string | null | undefined;
3651
3652
  pronouns?: string | null | undefined;
3652
- lastActiveAt?: Date | null | undefined;
3653
3653
  }>;
3654
3654
  }, {
3655
3655
  code?: string | undefined;
@@ -3813,10 +3813,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3813
3813
  } & {
3814
3814
  preferredLanguage: string;
3815
3815
  } & {
3816
+ lastActiveAt?: Date | null | undefined;
3816
3817
  displayName?: string | null | undefined;
3817
3818
  title?: string | null | undefined;
3818
3819
  pronouns?: string | null | undefined;
3819
- lastActiveAt?: Date | null | undefined;
3820
3820
  }>;
3821
3821
  }), {
3822
3822
  code?: string | undefined;
@@ -3850,11 +3850,11 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3850
3850
  callbackURL?: string | undefined;
3851
3851
  fetchOptions?: FetchOptions | undefined;
3852
3852
  } & {} & {} & {} & {} & {} & {
3853
+ lastActiveAt?: Date | null | undefined;
3853
3854
  displayName?: string | null | undefined;
3854
3855
  title?: string | null | undefined;
3855
3856
  pronouns?: string | null | undefined;
3856
3857
  preferredLanguage?: string | null | undefined;
3857
- lastActiveAt?: Date | null | undefined;
3858
3858
  }>, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<(Omit<{
3859
3859
  token: null;
3860
3860
  user: {
@@ -3886,10 +3886,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3886
3886
  } & {
3887
3887
  preferredLanguage: string;
3888
3888
  } & {
3889
+ lastActiveAt?: Date | null | undefined;
3889
3890
  displayName?: string | null | undefined;
3890
3891
  title?: string | null | undefined;
3891
3892
  pronouns?: string | null | undefined;
3892
- lastActiveAt?: Date | null | undefined;
3893
3893
  }>;
3894
3894
  }) | (Omit<{
3895
3895
  token: string;
@@ -3922,10 +3922,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3922
3922
  } & {
3923
3923
  preferredLanguage: string;
3924
3924
  } & {
3925
+ lastActiveAt?: Date | null | undefined;
3925
3926
  displayName?: string | null | undefined;
3926
3927
  title?: string | null | undefined;
3927
3928
  pronouns?: string | null | undefined;
3928
- lastActiveAt?: Date | null | undefined;
3929
3929
  }>;
3930
3930
  }), {
3931
3931
  code?: string | undefined;
@@ -3979,10 +3979,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
3979
3979
  } & {
3980
3980
  preferredLanguage: string;
3981
3981
  } & {
3982
+ lastActiveAt?: Date | null | undefined;
3982
3983
  displayName?: string | null | undefined;
3983
3984
  title?: string | null | undefined;
3984
3985
  pronouns?: string | null | undefined;
3985
- lastActiveAt?: Date | null | undefined;
3986
3986
  }>;
3987
3987
  }, {
3988
3988
  code?: string | undefined;
@@ -4102,10 +4102,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4102
4102
  } & {
4103
4103
  preferredLanguage: string;
4104
4104
  } & {
4105
+ lastActiveAt?: Date | null | undefined;
4105
4106
  displayName?: string | null | undefined;
4106
4107
  title?: string | null | undefined;
4107
4108
  pronouns?: string | null | undefined;
4108
- lastActiveAt?: Date | null | undefined;
4109
4109
  }>;
4110
4110
  }, {
4111
4111
  code?: string | undefined;
@@ -4138,11 +4138,11 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4138
4138
  name?: string | undefined;
4139
4139
  fetchOptions?: FetchOptions | undefined;
4140
4140
  } & Partial<{} & {} & {} & {} & {} & {
4141
+ lastActiveAt?: Date | null | undefined;
4141
4142
  displayName?: string | null | undefined;
4142
4143
  title?: string | null | undefined;
4143
4144
  pronouns?: string | null | undefined;
4144
4145
  preferredLanguage?: string | null | undefined;
4145
- lastActiveAt?: Date | null | undefined;
4146
4146
  }>> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client.BetterFetchResponse<{
4147
4147
  status: boolean;
4148
4148
  }, {
@@ -4428,10 +4428,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4428
4428
  } & {
4429
4429
  preferredLanguage: string;
4430
4430
  } & {
4431
+ lastActiveAt?: Date | null | undefined;
4431
4432
  displayName?: string | null | undefined;
4432
4433
  title?: string | null | undefined;
4433
4434
  pronouns?: string | null | undefined;
4434
- lastActiveAt?: Date | null | undefined;
4435
4435
  }>;
4436
4436
  session: better_auth.StripEmptyObjects<{
4437
4437
  id: string;
@@ -4823,10 +4823,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4823
4823
  } & {
4824
4824
  preferredLanguage: string;
4825
4825
  } & {
4826
+ lastActiveAt?: Date | null | undefined;
4826
4827
  displayName?: string | null | undefined;
4827
4828
  title?: string | null | undefined;
4828
4829
  pronouns?: string | null | undefined;
4829
- lastActiveAt?: Date | null | undefined;
4830
4830
  }>;
4831
4831
  session: better_auth.StripEmptyObjects<{
4832
4832
  id: string;
@@ -4943,10 +4943,10 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4943
4943
  } & {
4944
4944
  preferredLanguage: string;
4945
4945
  } & {
4946
+ lastActiveAt?: Date | null | undefined;
4946
4947
  displayName?: string | null | undefined;
4947
4948
  title?: string | null | undefined;
4948
4949
  pronouns?: string | null | undefined;
4949
- lastActiveAt?: Date | null | undefined;
4950
4950
  }>;
4951
4951
  session: better_auth.StripEmptyObjects<{
4952
4952
  id: string;
@@ -5906,8 +5906,8 @@ type ListAdminOrganizationMembersOptions = {
5906
5906
  includeInvitations?: boolean;
5907
5907
  /** When true, each row includes the member's teams and accessible applications. */
5908
5908
  includeAccess?: boolean;
5909
- /** Column to sort by. Only the join date (createdAt) is sortable today. Defaults to 'createdAt'. */
5910
- sortBy?: 'createdAt';
5909
+ /** Column to sort by: the join date or the member name. Defaults to 'createdAt'. */
5910
+ sortBy?: 'createdAt' | 'name';
5911
5911
  /** Sort direction for the listing. Defaults to 'desc'. */
5912
5912
  sortDirection?: 'asc' | 'desc';
5913
5913
  };
@@ -7225,10 +7225,10 @@ declare class SessionService {
7225
7225
  } & {
7226
7226
  preferredLanguage: string;
7227
7227
  } & {
7228
+ lastActiveAt?: Date | null | undefined;
7228
7229
  displayName?: string | null | undefined;
7229
7230
  title?: string | null | undefined;
7230
7231
  pronouns?: string | null | undefined;
7231
- lastActiveAt?: Date | null | undefined;
7232
7232
  }>;
7233
7233
  session: better_auth.StripEmptyObjects<{
7234
7234
  id: string;
@@ -7466,10 +7466,10 @@ declare class EmailOTPService {
7466
7466
  } & {
7467
7467
  preferredLanguage: string;
7468
7468
  } & {
7469
+ lastActiveAt?: Date | null | undefined;
7469
7470
  displayName?: string | null | undefined;
7470
7471
  title?: string | null | undefined;
7471
7472
  pronouns?: string | null | undefined;
7472
- lastActiveAt?: Date | null | undefined;
7473
7473
  }>;
7474
7474
  }>;
7475
7475
  }
@@ -7519,10 +7519,10 @@ declare class UserService {
7519
7519
  } & {
7520
7520
  preferredLanguage: string;
7521
7521
  } & {
7522
+ lastActiveAt?: Date | null | undefined;
7522
7523
  displayName?: string | null | undefined;
7523
7524
  title?: string | null | undefined;
7524
7525
  pronouns?: string | null | undefined;
7525
- lastActiveAt?: Date | null | undefined;
7526
7526
  }>;
7527
7527
  }>;
7528
7528
  updateProfile(profile: UpdateUserProfilePayload): Promise<{
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ function isTokenExpired(token, expiresInMs) {
21
21
  return nowInSeconds > expirationTime;
22
22
  }
23
23
 
24
- const version = "1.39.0";
24
+ const version = "1.39.2";
25
25
 
26
26
  function parsedEnumValues(schema) {
27
27
  return Object.fromEntries(
@@ -1271,7 +1271,8 @@ function parseErrorMessage(error) {
1271
1271
  return "Failed to exchange device code for tokens";
1272
1272
  }
1273
1273
  const candidateError = error;
1274
- return candidateError.message ?? candidateError.error?.message ?? "Failed to exchange device code for tokens";
1274
+ const nested = typeof candidateError.error === "string" ? candidateError.error : candidateError.error?.message;
1275
+ return candidateError.message ?? nested ?? "Failed to exchange device code for tokens";
1275
1276
  }
1276
1277
  function throwDeviceGrantError(error) {
1277
1278
  const code = parseErrorCode(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/auth-core",
3
- "version": "1.39.0",
3
+ "version": "1.39.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {