@better-auth/telemetry 1.7.0-rc.5 → 1.7.0-rc.6
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 +13 -9
- package/dist/node.d.mts +13 -9
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import * as _$_better_auth_core0 from "@better-auth/core";
|
|
1
2
|
import { BetterAuthOptions } from "@better-auth/core";
|
|
3
|
+
import * as _$_better_auth_core_db0 from "@better-auth/core/db";
|
|
4
|
+
import * as _$_better_auth_core_social_providers0 from "@better-auth/core/social-providers";
|
|
5
|
+
|
|
2
6
|
//#region src/types.d.ts
|
|
3
7
|
interface TelemetryEvent {
|
|
4
8
|
type: string;
|
|
@@ -70,10 +74,10 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
70
74
|
})[];
|
|
71
75
|
plugins: string[] | undefined;
|
|
72
76
|
user: {
|
|
73
|
-
modelName: "user" |
|
|
77
|
+
modelName: "user" | _$_better_auth_core0.LiteralString | undefined;
|
|
74
78
|
fields: Partial<Record<"name" | "email" | "image" | "createdAt" | "updatedAt" | "emailVerified", string>> | undefined;
|
|
75
79
|
additionalFields: {
|
|
76
|
-
[x: string]:
|
|
80
|
+
[x: string]: _$_better_auth_core_db0.DBFieldAttribute;
|
|
77
81
|
} | undefined;
|
|
78
82
|
changeEmail: {
|
|
79
83
|
enabled: boolean | undefined;
|
|
@@ -81,14 +85,14 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
81
85
|
};
|
|
82
86
|
};
|
|
83
87
|
verification: {
|
|
84
|
-
modelName:
|
|
88
|
+
modelName: _$_better_auth_core0.LiteralString | "verification" | undefined;
|
|
85
89
|
disableCleanup: boolean | undefined;
|
|
86
90
|
fields: Partial<Record<"createdAt" | "updatedAt" | "value" | "expiresAt" | "identifier", string>> | undefined;
|
|
87
91
|
};
|
|
88
92
|
session: {
|
|
89
|
-
modelName:
|
|
93
|
+
modelName: _$_better_auth_core0.LiteralString | "session" | undefined;
|
|
90
94
|
additionalFields: {
|
|
91
|
-
[x: string]:
|
|
95
|
+
[x: string]: _$_better_auth_core_db0.DBFieldAttribute;
|
|
92
96
|
} | undefined;
|
|
93
97
|
cookieCache: {
|
|
94
98
|
enabled: boolean | undefined;
|
|
@@ -104,13 +108,13 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
104
108
|
updateAge: number | undefined;
|
|
105
109
|
};
|
|
106
110
|
account: {
|
|
107
|
-
modelName:
|
|
111
|
+
modelName: _$_better_auth_core0.LiteralString | "account" | undefined;
|
|
108
112
|
fields: Partial<Record<"scope" | "issuer" | "createdAt" | "updatedAt" | "userId" | "providerId" | "accountId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "password", string>> | undefined;
|
|
109
113
|
encryptOAuthTokens: boolean | undefined;
|
|
110
114
|
updateAccountOnSignIn: boolean | undefined;
|
|
111
115
|
accountLinking: {
|
|
112
116
|
enabled: boolean | undefined;
|
|
113
|
-
trustedProviders:
|
|
117
|
+
trustedProviders: _$_better_auth_core0.LiteralUnion<"linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | "email-password", string>[] | ((request?: Request | undefined) => _$_better_auth_core0.Awaitable<Array<_$_better_auth_core0.LiteralUnion<_$_better_auth_core_social_providers0.SocialProviderList[number] | "email-password", string>>>) | undefined;
|
|
114
118
|
updateUserInfoOnLink: boolean | undefined;
|
|
115
119
|
allowUnlinkingAll: boolean | undefined;
|
|
116
120
|
};
|
|
@@ -129,7 +133,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
129
133
|
additionalCookies: string[] | undefined;
|
|
130
134
|
};
|
|
131
135
|
database: {
|
|
132
|
-
generateId: false |
|
|
136
|
+
generateId: false | _$_better_auth_core0.GenerateIdFn | "serial" | "uuid" | undefined;
|
|
133
137
|
defaultFindManyLimit: number | undefined;
|
|
134
138
|
};
|
|
135
139
|
useSecureCookies: boolean | undefined;
|
|
@@ -150,7 +154,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
150
154
|
trustedOrigins: number | undefined;
|
|
151
155
|
rateLimit: {
|
|
152
156
|
storage: "memory" | "database" | "secondary-storage" | undefined;
|
|
153
|
-
modelName:
|
|
157
|
+
modelName: _$_better_auth_core0.LiteralString | "rateLimit" | undefined;
|
|
154
158
|
window: number | undefined;
|
|
155
159
|
customStorage: boolean;
|
|
156
160
|
enabled: boolean | undefined;
|
package/dist/node.d.mts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import * as _$_better_auth_core0 from "@better-auth/core";
|
|
1
2
|
import { BetterAuthOptions } from "@better-auth/core";
|
|
3
|
+
import * as _$_better_auth_core_db0 from "@better-auth/core/db";
|
|
4
|
+
import * as _$_better_auth_core_social_providers0 from "@better-auth/core/social-providers";
|
|
5
|
+
|
|
2
6
|
//#region src/types.d.ts
|
|
3
7
|
interface TelemetryEvent {
|
|
4
8
|
type: string;
|
|
@@ -70,10 +74,10 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
70
74
|
})[];
|
|
71
75
|
plugins: string[] | undefined;
|
|
72
76
|
user: {
|
|
73
|
-
modelName: "user" |
|
|
77
|
+
modelName: "user" | _$_better_auth_core0.LiteralString | undefined;
|
|
74
78
|
fields: Partial<Record<"name" | "email" | "image" | "createdAt" | "updatedAt" | "emailVerified", string>> | undefined;
|
|
75
79
|
additionalFields: {
|
|
76
|
-
[x: string]:
|
|
80
|
+
[x: string]: _$_better_auth_core_db0.DBFieldAttribute;
|
|
77
81
|
} | undefined;
|
|
78
82
|
changeEmail: {
|
|
79
83
|
enabled: boolean | undefined;
|
|
@@ -81,14 +85,14 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
81
85
|
};
|
|
82
86
|
};
|
|
83
87
|
verification: {
|
|
84
|
-
modelName:
|
|
88
|
+
modelName: _$_better_auth_core0.LiteralString | "verification" | undefined;
|
|
85
89
|
disableCleanup: boolean | undefined;
|
|
86
90
|
fields: Partial<Record<"createdAt" | "updatedAt" | "value" | "expiresAt" | "identifier", string>> | undefined;
|
|
87
91
|
};
|
|
88
92
|
session: {
|
|
89
|
-
modelName:
|
|
93
|
+
modelName: _$_better_auth_core0.LiteralString | "session" | undefined;
|
|
90
94
|
additionalFields: {
|
|
91
|
-
[x: string]:
|
|
95
|
+
[x: string]: _$_better_auth_core_db0.DBFieldAttribute;
|
|
92
96
|
} | undefined;
|
|
93
97
|
cookieCache: {
|
|
94
98
|
enabled: boolean | undefined;
|
|
@@ -104,13 +108,13 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
104
108
|
updateAge: number | undefined;
|
|
105
109
|
};
|
|
106
110
|
account: {
|
|
107
|
-
modelName:
|
|
111
|
+
modelName: _$_better_auth_core0.LiteralString | "account" | undefined;
|
|
108
112
|
fields: Partial<Record<"scope" | "issuer" | "createdAt" | "updatedAt" | "userId" | "providerId" | "accountId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "password", string>> | undefined;
|
|
109
113
|
encryptOAuthTokens: boolean | undefined;
|
|
110
114
|
updateAccountOnSignIn: boolean | undefined;
|
|
111
115
|
accountLinking: {
|
|
112
116
|
enabled: boolean | undefined;
|
|
113
|
-
trustedProviders:
|
|
117
|
+
trustedProviders: _$_better_auth_core0.LiteralUnion<"linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | "email-password", string>[] | ((request?: Request | undefined) => _$_better_auth_core0.Awaitable<Array<_$_better_auth_core0.LiteralUnion<_$_better_auth_core_social_providers0.SocialProviderList[number] | "email-password", string>>>) | undefined;
|
|
114
118
|
updateUserInfoOnLink: boolean | undefined;
|
|
115
119
|
allowUnlinkingAll: boolean | undefined;
|
|
116
120
|
};
|
|
@@ -129,7 +133,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
129
133
|
additionalCookies: string[] | undefined;
|
|
130
134
|
};
|
|
131
135
|
database: {
|
|
132
|
-
generateId: false |
|
|
136
|
+
generateId: false | _$_better_auth_core0.GenerateIdFn | "serial" | "uuid" | undefined;
|
|
133
137
|
defaultFindManyLimit: number | undefined;
|
|
134
138
|
};
|
|
135
139
|
useSecureCookies: boolean | undefined;
|
|
@@ -150,7 +154,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
150
154
|
trustedOrigins: number | undefined;
|
|
151
155
|
rateLimit: {
|
|
152
156
|
storage: "memory" | "database" | "secondary-storage" | undefined;
|
|
153
|
-
modelName:
|
|
157
|
+
modelName: _$_better_auth_core0.LiteralString | "rateLimit" | undefined;
|
|
154
158
|
window: number | undefined;
|
|
155
159
|
customStorage: boolean;
|
|
156
160
|
enabled: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/telemetry",
|
|
3
|
-
"version": "1.7.0-rc.
|
|
3
|
+
"version": "1.7.0-rc.6",
|
|
4
4
|
"description": "Telemetry package for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"tsdown": "0.
|
|
45
|
+
"tsdown": "0.21.10",
|
|
46
46
|
"type-fest": "^5.7.0",
|
|
47
|
-
"@better-auth/core": "1.7.0-rc.
|
|
47
|
+
"@better-auth/core": "1.7.0-rc.6"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@better-auth/utils": "0.4.2",
|
|
51
51
|
"@better-fetch/fetch": "1.3.1",
|
|
52
|
-
"@better-auth/core": "^1.7.0-rc.
|
|
52
|
+
"@better-auth/core": "^1.7.0-rc.6"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsdown",
|