@objectstack/plugin-auth 3.2.7 → 3.2.8
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +38 -22
- package/dist/index.d.ts +38 -22
- package/dist/index.js +159 -139
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +159 -139
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/auth-plugin.ts +24 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/plugin-auth@3.2.
|
|
2
|
+
> @objectstack/plugin-auth@3.2.8 build /home/runner/work/spec/spec/packages/plugins/plugin-auth
|
|
3
3
|
> tsup --config ../../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
╵ [32m~~~~~~~~~[0m
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
69
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m42.00 KB[39m
|
|
70
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m93.72 KB[39m
|
|
71
|
+
[32mESM[39m ⚡️ Build success in 101ms
|
|
72
|
+
[32mCJS[39m [1mdist/index.js [22m[32m45.49 KB[39m
|
|
73
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m94.25 KB[39m
|
|
74
|
+
[32mCJS[39m ⚡️ Build success in 101ms
|
|
75
75
|
[34mDTS[39m Build start
|
|
76
|
-
[32mDTS[39m ⚡️ Build success in
|
|
77
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
78
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
76
|
+
[32mDTS[39m ⚡️ Build success in 9397ms
|
|
77
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m867.98 KB[39m
|
|
78
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m867.98 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -45,6 +45,7 @@ interface AuthPluginOptions extends Partial<AuthConfig> {
|
|
|
45
45
|
*
|
|
46
46
|
* This plugin registers:
|
|
47
47
|
* - `auth` service (auth manager instance) — always
|
|
48
|
+
* - `app.com.objectstack.system` service (system object definitions) — always
|
|
48
49
|
* - HTTP routes for authentication endpoints — only when HTTP server is available
|
|
49
50
|
*
|
|
50
51
|
* Integrates with better-auth library to provide comprehensive
|
|
@@ -248,6 +249,13 @@ declare class AuthManager {
|
|
|
248
249
|
accessToken: better_auth.ZodOptional<better_auth.ZodString>;
|
|
249
250
|
refreshToken: better_auth.ZodOptional<better_auth.ZodString>;
|
|
250
251
|
expiresAt: better_auth.ZodOptional<better_auth.ZodNumber>;
|
|
252
|
+
user: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
253
|
+
name: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
254
|
+
firstName: better_auth.ZodOptional<better_auth.ZodString>;
|
|
255
|
+
lastName: better_auth.ZodOptional<better_auth.ZodString>;
|
|
256
|
+
}, better_auth.$strip>>;
|
|
257
|
+
email: better_auth.ZodOptional<better_auth.ZodString>;
|
|
258
|
+
}, better_auth.$strip>>;
|
|
251
259
|
}, better_auth.$strip>>;
|
|
252
260
|
scopes: better_auth.ZodOptional<better_auth.ZodArray<better_auth.ZodString>>;
|
|
253
261
|
requestSignUp: better_auth.ZodOptional<better_auth.ZodBoolean>;
|
|
@@ -268,6 +276,13 @@ declare class AuthManager {
|
|
|
268
276
|
accessToken: better_auth.ZodOptional<better_auth.ZodString>;
|
|
269
277
|
refreshToken: better_auth.ZodOptional<better_auth.ZodString>;
|
|
270
278
|
expiresAt: better_auth.ZodOptional<better_auth.ZodNumber>;
|
|
279
|
+
user: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
280
|
+
name: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
281
|
+
firstName: better_auth.ZodOptional<better_auth.ZodString>;
|
|
282
|
+
lastName: better_auth.ZodOptional<better_auth.ZodString>;
|
|
283
|
+
}, better_auth.$strip>>;
|
|
284
|
+
email: better_auth.ZodOptional<better_auth.ZodString>;
|
|
285
|
+
}, better_auth.$strip>>;
|
|
271
286
|
}, better_auth.$strip>>;
|
|
272
287
|
scopes: better_auth.ZodOptional<better_auth.ZodArray<better_auth.ZodString>>;
|
|
273
288
|
requestSignUp: better_auth.ZodOptional<better_auth.ZodBoolean>;
|
|
@@ -1526,6 +1541,7 @@ declare class AuthManager {
|
|
|
1526
1541
|
};
|
|
1527
1542
|
};
|
|
1528
1543
|
};
|
|
1544
|
+
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<void>)[];
|
|
1529
1545
|
}, {
|
|
1530
1546
|
status: boolean;
|
|
1531
1547
|
message: string;
|
|
@@ -2730,7 +2746,7 @@ declare const SysUser: Omit<{
|
|
|
2730
2746
|
abstract: boolean;
|
|
2731
2747
|
datasource: string;
|
|
2732
2748
|
fields: Record<string, {
|
|
2733
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
2749
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
2734
2750
|
required: boolean;
|
|
2735
2751
|
searchable: boolean;
|
|
2736
2752
|
multiple: boolean;
|
|
@@ -2920,7 +2936,7 @@ declare const SysUser: Omit<{
|
|
|
2920
2936
|
} | undefined;
|
|
2921
2937
|
partitioning?: {
|
|
2922
2938
|
enabled: boolean;
|
|
2923
|
-
strategy: "
|
|
2939
|
+
strategy: "hash" | "range" | "list";
|
|
2924
2940
|
key: string;
|
|
2925
2941
|
interval?: string | undefined;
|
|
2926
2942
|
} | undefined;
|
|
@@ -4205,7 +4221,7 @@ declare const SysSession: Omit<{
|
|
|
4205
4221
|
abstract: boolean;
|
|
4206
4222
|
datasource: string;
|
|
4207
4223
|
fields: Record<string, {
|
|
4208
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
4224
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
4209
4225
|
required: boolean;
|
|
4210
4226
|
searchable: boolean;
|
|
4211
4227
|
multiple: boolean;
|
|
@@ -4395,7 +4411,7 @@ declare const SysSession: Omit<{
|
|
|
4395
4411
|
} | undefined;
|
|
4396
4412
|
partitioning?: {
|
|
4397
4413
|
enabled: boolean;
|
|
4398
|
-
strategy: "
|
|
4414
|
+
strategy: "hash" | "range" | "list";
|
|
4399
4415
|
key: string;
|
|
4400
4416
|
interval?: string | undefined;
|
|
4401
4417
|
} | undefined;
|
|
@@ -5833,7 +5849,7 @@ declare const SysAccount: Omit<{
|
|
|
5833
5849
|
abstract: boolean;
|
|
5834
5850
|
datasource: string;
|
|
5835
5851
|
fields: Record<string, {
|
|
5836
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
5852
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
5837
5853
|
required: boolean;
|
|
5838
5854
|
searchable: boolean;
|
|
5839
5855
|
multiple: boolean;
|
|
@@ -6023,7 +6039,7 @@ declare const SysAccount: Omit<{
|
|
|
6023
6039
|
} | undefined;
|
|
6024
6040
|
partitioning?: {
|
|
6025
6041
|
enabled: boolean;
|
|
6026
|
-
strategy: "
|
|
6042
|
+
strategy: "hash" | "range" | "list";
|
|
6027
6043
|
key: string;
|
|
6028
6044
|
interval?: string | undefined;
|
|
6029
6045
|
} | undefined;
|
|
@@ -8248,7 +8264,7 @@ declare const SysVerification: Omit<{
|
|
|
8248
8264
|
abstract: boolean;
|
|
8249
8265
|
datasource: string;
|
|
8250
8266
|
fields: Record<string, {
|
|
8251
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
8267
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
8252
8268
|
required: boolean;
|
|
8253
8269
|
searchable: boolean;
|
|
8254
8270
|
multiple: boolean;
|
|
@@ -8438,7 +8454,7 @@ declare const SysVerification: Omit<{
|
|
|
8438
8454
|
} | undefined;
|
|
8439
8455
|
partitioning?: {
|
|
8440
8456
|
enabled: boolean;
|
|
8441
|
-
strategy: "
|
|
8457
|
+
strategy: "hash" | "range" | "list";
|
|
8442
8458
|
key: string;
|
|
8443
8459
|
interval?: string | undefined;
|
|
8444
8460
|
} | undefined;
|
|
@@ -9560,7 +9576,7 @@ declare const SysOrganization: Omit<{
|
|
|
9560
9576
|
abstract: boolean;
|
|
9561
9577
|
datasource: string;
|
|
9562
9578
|
fields: Record<string, {
|
|
9563
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
9579
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
9564
9580
|
required: boolean;
|
|
9565
9581
|
searchable: boolean;
|
|
9566
9582
|
multiple: boolean;
|
|
@@ -9750,7 +9766,7 @@ declare const SysOrganization: Omit<{
|
|
|
9750
9766
|
} | undefined;
|
|
9751
9767
|
partitioning?: {
|
|
9752
9768
|
enabled: boolean;
|
|
9753
|
-
strategy: "
|
|
9769
|
+
strategy: "hash" | "range" | "list";
|
|
9754
9770
|
key: string;
|
|
9755
9771
|
interval?: string | undefined;
|
|
9756
9772
|
} | undefined;
|
|
@@ -11026,7 +11042,7 @@ declare const SysMember: Omit<{
|
|
|
11026
11042
|
abstract: boolean;
|
|
11027
11043
|
datasource: string;
|
|
11028
11044
|
fields: Record<string, {
|
|
11029
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
11045
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
11030
11046
|
required: boolean;
|
|
11031
11047
|
searchable: boolean;
|
|
11032
11048
|
multiple: boolean;
|
|
@@ -11216,7 +11232,7 @@ declare const SysMember: Omit<{
|
|
|
11216
11232
|
} | undefined;
|
|
11217
11233
|
partitioning?: {
|
|
11218
11234
|
enabled: boolean;
|
|
11219
|
-
strategy: "
|
|
11235
|
+
strategy: "hash" | "range" | "list";
|
|
11220
11236
|
key: string;
|
|
11221
11237
|
interval?: string | undefined;
|
|
11222
11238
|
} | undefined;
|
|
@@ -12176,7 +12192,7 @@ declare const SysInvitation: Omit<{
|
|
|
12176
12192
|
abstract: boolean;
|
|
12177
12193
|
datasource: string;
|
|
12178
12194
|
fields: Record<string, {
|
|
12179
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
12195
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
12180
12196
|
required: boolean;
|
|
12181
12197
|
searchable: boolean;
|
|
12182
12198
|
multiple: boolean;
|
|
@@ -12366,7 +12382,7 @@ declare const SysInvitation: Omit<{
|
|
|
12366
12382
|
} | undefined;
|
|
12367
12383
|
partitioning?: {
|
|
12368
12384
|
enabled: boolean;
|
|
12369
|
-
strategy: "
|
|
12385
|
+
strategy: "hash" | "range" | "list";
|
|
12370
12386
|
key: string;
|
|
12371
12387
|
interval?: string | undefined;
|
|
12372
12388
|
} | undefined;
|
|
@@ -13959,7 +13975,7 @@ declare const SysTeam: Omit<{
|
|
|
13959
13975
|
abstract: boolean;
|
|
13960
13976
|
datasource: string;
|
|
13961
13977
|
fields: Record<string, {
|
|
13962
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
13978
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
13963
13979
|
required: boolean;
|
|
13964
13980
|
searchable: boolean;
|
|
13965
13981
|
multiple: boolean;
|
|
@@ -14149,7 +14165,7 @@ declare const SysTeam: Omit<{
|
|
|
14149
14165
|
} | undefined;
|
|
14150
14166
|
partitioning?: {
|
|
14151
14167
|
enabled: boolean;
|
|
14152
|
-
strategy: "
|
|
14168
|
+
strategy: "hash" | "range" | "list";
|
|
14153
14169
|
key: string;
|
|
14154
14170
|
interval?: string | undefined;
|
|
14155
14171
|
} | undefined;
|
|
@@ -15109,7 +15125,7 @@ declare const SysTeamMember: Omit<{
|
|
|
15109
15125
|
abstract: boolean;
|
|
15110
15126
|
datasource: string;
|
|
15111
15127
|
fields: Record<string, {
|
|
15112
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
15128
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
15113
15129
|
required: boolean;
|
|
15114
15130
|
searchable: boolean;
|
|
15115
15131
|
multiple: boolean;
|
|
@@ -15299,7 +15315,7 @@ declare const SysTeamMember: Omit<{
|
|
|
15299
15315
|
} | undefined;
|
|
15300
15316
|
partitioning?: {
|
|
15301
15317
|
enabled: boolean;
|
|
15302
|
-
strategy: "
|
|
15318
|
+
strategy: "hash" | "range" | "list";
|
|
15303
15319
|
key: string;
|
|
15304
15320
|
interval?: string | undefined;
|
|
15305
15321
|
} | undefined;
|
|
@@ -16100,7 +16116,7 @@ declare const SysApiKey: Omit<{
|
|
|
16100
16116
|
abstract: boolean;
|
|
16101
16117
|
datasource: string;
|
|
16102
16118
|
fields: Record<string, {
|
|
16103
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
16119
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
16104
16120
|
required: boolean;
|
|
16105
16121
|
searchable: boolean;
|
|
16106
16122
|
multiple: boolean;
|
|
@@ -16290,7 +16306,7 @@ declare const SysApiKey: Omit<{
|
|
|
16290
16306
|
} | undefined;
|
|
16291
16307
|
partitioning?: {
|
|
16292
16308
|
enabled: boolean;
|
|
16293
|
-
strategy: "
|
|
16309
|
+
strategy: "hash" | "range" | "list";
|
|
16294
16310
|
key: string;
|
|
16295
16311
|
interval?: string | undefined;
|
|
16296
16312
|
} | undefined;
|
|
@@ -18200,7 +18216,7 @@ declare const SysTwoFactor: Omit<{
|
|
|
18200
18216
|
abstract: boolean;
|
|
18201
18217
|
datasource: string;
|
|
18202
18218
|
fields: Record<string, {
|
|
18203
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
18219
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
18204
18220
|
required: boolean;
|
|
18205
18221
|
searchable: boolean;
|
|
18206
18222
|
multiple: boolean;
|
|
@@ -18390,7 +18406,7 @@ declare const SysTwoFactor: Omit<{
|
|
|
18390
18406
|
} | undefined;
|
|
18391
18407
|
partitioning?: {
|
|
18392
18408
|
enabled: boolean;
|
|
18393
|
-
strategy: "
|
|
18409
|
+
strategy: "hash" | "range" | "list";
|
|
18394
18410
|
key: string;
|
|
18395
18411
|
interval?: string | undefined;
|
|
18396
18412
|
} | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ interface AuthPluginOptions extends Partial<AuthConfig> {
|
|
|
45
45
|
*
|
|
46
46
|
* This plugin registers:
|
|
47
47
|
* - `auth` service (auth manager instance) — always
|
|
48
|
+
* - `app.com.objectstack.system` service (system object definitions) — always
|
|
48
49
|
* - HTTP routes for authentication endpoints — only when HTTP server is available
|
|
49
50
|
*
|
|
50
51
|
* Integrates with better-auth library to provide comprehensive
|
|
@@ -248,6 +249,13 @@ declare class AuthManager {
|
|
|
248
249
|
accessToken: better_auth.ZodOptional<better_auth.ZodString>;
|
|
249
250
|
refreshToken: better_auth.ZodOptional<better_auth.ZodString>;
|
|
250
251
|
expiresAt: better_auth.ZodOptional<better_auth.ZodNumber>;
|
|
252
|
+
user: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
253
|
+
name: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
254
|
+
firstName: better_auth.ZodOptional<better_auth.ZodString>;
|
|
255
|
+
lastName: better_auth.ZodOptional<better_auth.ZodString>;
|
|
256
|
+
}, better_auth.$strip>>;
|
|
257
|
+
email: better_auth.ZodOptional<better_auth.ZodString>;
|
|
258
|
+
}, better_auth.$strip>>;
|
|
251
259
|
}, better_auth.$strip>>;
|
|
252
260
|
scopes: better_auth.ZodOptional<better_auth.ZodArray<better_auth.ZodString>>;
|
|
253
261
|
requestSignUp: better_auth.ZodOptional<better_auth.ZodBoolean>;
|
|
@@ -268,6 +276,13 @@ declare class AuthManager {
|
|
|
268
276
|
accessToken: better_auth.ZodOptional<better_auth.ZodString>;
|
|
269
277
|
refreshToken: better_auth.ZodOptional<better_auth.ZodString>;
|
|
270
278
|
expiresAt: better_auth.ZodOptional<better_auth.ZodNumber>;
|
|
279
|
+
user: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
280
|
+
name: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
281
|
+
firstName: better_auth.ZodOptional<better_auth.ZodString>;
|
|
282
|
+
lastName: better_auth.ZodOptional<better_auth.ZodString>;
|
|
283
|
+
}, better_auth.$strip>>;
|
|
284
|
+
email: better_auth.ZodOptional<better_auth.ZodString>;
|
|
285
|
+
}, better_auth.$strip>>;
|
|
271
286
|
}, better_auth.$strip>>;
|
|
272
287
|
scopes: better_auth.ZodOptional<better_auth.ZodArray<better_auth.ZodString>>;
|
|
273
288
|
requestSignUp: better_auth.ZodOptional<better_auth.ZodBoolean>;
|
|
@@ -1526,6 +1541,7 @@ declare class AuthManager {
|
|
|
1526
1541
|
};
|
|
1527
1542
|
};
|
|
1528
1543
|
};
|
|
1544
|
+
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<void>)[];
|
|
1529
1545
|
}, {
|
|
1530
1546
|
status: boolean;
|
|
1531
1547
|
message: string;
|
|
@@ -2730,7 +2746,7 @@ declare const SysUser: Omit<{
|
|
|
2730
2746
|
abstract: boolean;
|
|
2731
2747
|
datasource: string;
|
|
2732
2748
|
fields: Record<string, {
|
|
2733
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
2749
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
2734
2750
|
required: boolean;
|
|
2735
2751
|
searchable: boolean;
|
|
2736
2752
|
multiple: boolean;
|
|
@@ -2920,7 +2936,7 @@ declare const SysUser: Omit<{
|
|
|
2920
2936
|
} | undefined;
|
|
2921
2937
|
partitioning?: {
|
|
2922
2938
|
enabled: boolean;
|
|
2923
|
-
strategy: "
|
|
2939
|
+
strategy: "hash" | "range" | "list";
|
|
2924
2940
|
key: string;
|
|
2925
2941
|
interval?: string | undefined;
|
|
2926
2942
|
} | undefined;
|
|
@@ -4205,7 +4221,7 @@ declare const SysSession: Omit<{
|
|
|
4205
4221
|
abstract: boolean;
|
|
4206
4222
|
datasource: string;
|
|
4207
4223
|
fields: Record<string, {
|
|
4208
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
4224
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
4209
4225
|
required: boolean;
|
|
4210
4226
|
searchable: boolean;
|
|
4211
4227
|
multiple: boolean;
|
|
@@ -4395,7 +4411,7 @@ declare const SysSession: Omit<{
|
|
|
4395
4411
|
} | undefined;
|
|
4396
4412
|
partitioning?: {
|
|
4397
4413
|
enabled: boolean;
|
|
4398
|
-
strategy: "
|
|
4414
|
+
strategy: "hash" | "range" | "list";
|
|
4399
4415
|
key: string;
|
|
4400
4416
|
interval?: string | undefined;
|
|
4401
4417
|
} | undefined;
|
|
@@ -5833,7 +5849,7 @@ declare const SysAccount: Omit<{
|
|
|
5833
5849
|
abstract: boolean;
|
|
5834
5850
|
datasource: string;
|
|
5835
5851
|
fields: Record<string, {
|
|
5836
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
5852
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
5837
5853
|
required: boolean;
|
|
5838
5854
|
searchable: boolean;
|
|
5839
5855
|
multiple: boolean;
|
|
@@ -6023,7 +6039,7 @@ declare const SysAccount: Omit<{
|
|
|
6023
6039
|
} | undefined;
|
|
6024
6040
|
partitioning?: {
|
|
6025
6041
|
enabled: boolean;
|
|
6026
|
-
strategy: "
|
|
6042
|
+
strategy: "hash" | "range" | "list";
|
|
6027
6043
|
key: string;
|
|
6028
6044
|
interval?: string | undefined;
|
|
6029
6045
|
} | undefined;
|
|
@@ -8248,7 +8264,7 @@ declare const SysVerification: Omit<{
|
|
|
8248
8264
|
abstract: boolean;
|
|
8249
8265
|
datasource: string;
|
|
8250
8266
|
fields: Record<string, {
|
|
8251
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
8267
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
8252
8268
|
required: boolean;
|
|
8253
8269
|
searchable: boolean;
|
|
8254
8270
|
multiple: boolean;
|
|
@@ -8438,7 +8454,7 @@ declare const SysVerification: Omit<{
|
|
|
8438
8454
|
} | undefined;
|
|
8439
8455
|
partitioning?: {
|
|
8440
8456
|
enabled: boolean;
|
|
8441
|
-
strategy: "
|
|
8457
|
+
strategy: "hash" | "range" | "list";
|
|
8442
8458
|
key: string;
|
|
8443
8459
|
interval?: string | undefined;
|
|
8444
8460
|
} | undefined;
|
|
@@ -9560,7 +9576,7 @@ declare const SysOrganization: Omit<{
|
|
|
9560
9576
|
abstract: boolean;
|
|
9561
9577
|
datasource: string;
|
|
9562
9578
|
fields: Record<string, {
|
|
9563
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
9579
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
9564
9580
|
required: boolean;
|
|
9565
9581
|
searchable: boolean;
|
|
9566
9582
|
multiple: boolean;
|
|
@@ -9750,7 +9766,7 @@ declare const SysOrganization: Omit<{
|
|
|
9750
9766
|
} | undefined;
|
|
9751
9767
|
partitioning?: {
|
|
9752
9768
|
enabled: boolean;
|
|
9753
|
-
strategy: "
|
|
9769
|
+
strategy: "hash" | "range" | "list";
|
|
9754
9770
|
key: string;
|
|
9755
9771
|
interval?: string | undefined;
|
|
9756
9772
|
} | undefined;
|
|
@@ -11026,7 +11042,7 @@ declare const SysMember: Omit<{
|
|
|
11026
11042
|
abstract: boolean;
|
|
11027
11043
|
datasource: string;
|
|
11028
11044
|
fields: Record<string, {
|
|
11029
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
11045
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
11030
11046
|
required: boolean;
|
|
11031
11047
|
searchable: boolean;
|
|
11032
11048
|
multiple: boolean;
|
|
@@ -11216,7 +11232,7 @@ declare const SysMember: Omit<{
|
|
|
11216
11232
|
} | undefined;
|
|
11217
11233
|
partitioning?: {
|
|
11218
11234
|
enabled: boolean;
|
|
11219
|
-
strategy: "
|
|
11235
|
+
strategy: "hash" | "range" | "list";
|
|
11220
11236
|
key: string;
|
|
11221
11237
|
interval?: string | undefined;
|
|
11222
11238
|
} | undefined;
|
|
@@ -12176,7 +12192,7 @@ declare const SysInvitation: Omit<{
|
|
|
12176
12192
|
abstract: boolean;
|
|
12177
12193
|
datasource: string;
|
|
12178
12194
|
fields: Record<string, {
|
|
12179
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
12195
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
12180
12196
|
required: boolean;
|
|
12181
12197
|
searchable: boolean;
|
|
12182
12198
|
multiple: boolean;
|
|
@@ -12366,7 +12382,7 @@ declare const SysInvitation: Omit<{
|
|
|
12366
12382
|
} | undefined;
|
|
12367
12383
|
partitioning?: {
|
|
12368
12384
|
enabled: boolean;
|
|
12369
|
-
strategy: "
|
|
12385
|
+
strategy: "hash" | "range" | "list";
|
|
12370
12386
|
key: string;
|
|
12371
12387
|
interval?: string | undefined;
|
|
12372
12388
|
} | undefined;
|
|
@@ -13959,7 +13975,7 @@ declare const SysTeam: Omit<{
|
|
|
13959
13975
|
abstract: boolean;
|
|
13960
13976
|
datasource: string;
|
|
13961
13977
|
fields: Record<string, {
|
|
13962
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
13978
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
13963
13979
|
required: boolean;
|
|
13964
13980
|
searchable: boolean;
|
|
13965
13981
|
multiple: boolean;
|
|
@@ -14149,7 +14165,7 @@ declare const SysTeam: Omit<{
|
|
|
14149
14165
|
} | undefined;
|
|
14150
14166
|
partitioning?: {
|
|
14151
14167
|
enabled: boolean;
|
|
14152
|
-
strategy: "
|
|
14168
|
+
strategy: "hash" | "range" | "list";
|
|
14153
14169
|
key: string;
|
|
14154
14170
|
interval?: string | undefined;
|
|
14155
14171
|
} | undefined;
|
|
@@ -15109,7 +15125,7 @@ declare const SysTeamMember: Omit<{
|
|
|
15109
15125
|
abstract: boolean;
|
|
15110
15126
|
datasource: string;
|
|
15111
15127
|
fields: Record<string, {
|
|
15112
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
15128
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
15113
15129
|
required: boolean;
|
|
15114
15130
|
searchable: boolean;
|
|
15115
15131
|
multiple: boolean;
|
|
@@ -15299,7 +15315,7 @@ declare const SysTeamMember: Omit<{
|
|
|
15299
15315
|
} | undefined;
|
|
15300
15316
|
partitioning?: {
|
|
15301
15317
|
enabled: boolean;
|
|
15302
|
-
strategy: "
|
|
15318
|
+
strategy: "hash" | "range" | "list";
|
|
15303
15319
|
key: string;
|
|
15304
15320
|
interval?: string | undefined;
|
|
15305
15321
|
} | undefined;
|
|
@@ -16100,7 +16116,7 @@ declare const SysApiKey: Omit<{
|
|
|
16100
16116
|
abstract: boolean;
|
|
16101
16117
|
datasource: string;
|
|
16102
16118
|
fields: Record<string, {
|
|
16103
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
16119
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
16104
16120
|
required: boolean;
|
|
16105
16121
|
searchable: boolean;
|
|
16106
16122
|
multiple: boolean;
|
|
@@ -16290,7 +16306,7 @@ declare const SysApiKey: Omit<{
|
|
|
16290
16306
|
} | undefined;
|
|
16291
16307
|
partitioning?: {
|
|
16292
16308
|
enabled: boolean;
|
|
16293
|
-
strategy: "
|
|
16309
|
+
strategy: "hash" | "range" | "list";
|
|
16294
16310
|
key: string;
|
|
16295
16311
|
interval?: string | undefined;
|
|
16296
16312
|
} | undefined;
|
|
@@ -18200,7 +18216,7 @@ declare const SysTwoFactor: Omit<{
|
|
|
18200
18216
|
abstract: boolean;
|
|
18201
18217
|
datasource: string;
|
|
18202
18218
|
fields: Record<string, {
|
|
18203
|
-
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "
|
|
18219
|
+
type: "number" | "boolean" | "select" | "date" | "file" | "email" | "url" | "image" | "password" | "time" | "code" | "json" | "tags" | "lookup" | "text" | "textarea" | "phone" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "toggle" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
18204
18220
|
required: boolean;
|
|
18205
18221
|
searchable: boolean;
|
|
18206
18222
|
multiple: boolean;
|
|
@@ -18390,7 +18406,7 @@ declare const SysTwoFactor: Omit<{
|
|
|
18390
18406
|
} | undefined;
|
|
18391
18407
|
partitioning?: {
|
|
18392
18408
|
enabled: boolean;
|
|
18393
|
-
strategy: "
|
|
18409
|
+
strategy: "hash" | "range" | "list";
|
|
18394
18410
|
key: string;
|
|
18395
18411
|
interval?: string | undefined;
|
|
18396
18412
|
} | undefined;
|