@better-auth/telemetry 1.6.23 → 1.6.24
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 +9 -13
- package/dist/node.d.mts +9 -13
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import * as _better_auth_core0 from "@better-auth/core";
|
|
2
1
|
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
|
-
|
|
6
2
|
//#region src/types.d.ts
|
|
7
3
|
interface TelemetryEvent {
|
|
8
4
|
type: string;
|
|
@@ -74,10 +70,10 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
74
70
|
})[];
|
|
75
71
|
plugins: string[] | undefined;
|
|
76
72
|
user: {
|
|
77
|
-
modelName: "user" |
|
|
73
|
+
modelName: "user" | import("@better-auth/core").LiteralString | undefined;
|
|
78
74
|
fields: Partial<Record<"name" | "email" | "image" | "createdAt" | "updatedAt" | "emailVerified", string>> | undefined;
|
|
79
75
|
additionalFields: {
|
|
80
|
-
[x: string]:
|
|
76
|
+
[x: string]: import("@better-auth/core/db").DBFieldAttribute;
|
|
81
77
|
} | undefined;
|
|
82
78
|
changeEmail: {
|
|
83
79
|
enabled: boolean | undefined;
|
|
@@ -85,14 +81,14 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
85
81
|
};
|
|
86
82
|
};
|
|
87
83
|
verification: {
|
|
88
|
-
modelName:
|
|
84
|
+
modelName: import("@better-auth/core").LiteralString | "verification" | undefined;
|
|
89
85
|
disableCleanup: boolean | undefined;
|
|
90
86
|
fields: Partial<Record<"createdAt" | "updatedAt" | "value" | "expiresAt" | "identifier", string>> | undefined;
|
|
91
87
|
};
|
|
92
88
|
session: {
|
|
93
|
-
modelName:
|
|
89
|
+
modelName: import("@better-auth/core").LiteralString | "session" | undefined;
|
|
94
90
|
additionalFields: {
|
|
95
|
-
[x: string]:
|
|
91
|
+
[x: string]: import("@better-auth/core/db").DBFieldAttribute;
|
|
96
92
|
} | undefined;
|
|
97
93
|
cookieCache: {
|
|
98
94
|
enabled: boolean | undefined;
|
|
@@ -108,13 +104,13 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
108
104
|
updateAge: number | undefined;
|
|
109
105
|
};
|
|
110
106
|
account: {
|
|
111
|
-
modelName:
|
|
107
|
+
modelName: import("@better-auth/core").LiteralString | "account" | undefined;
|
|
112
108
|
fields: Partial<Record<"scope" | "createdAt" | "updatedAt" | "userId" | "providerId" | "accountId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "password", string>> | undefined;
|
|
113
109
|
encryptOAuthTokens: boolean | undefined;
|
|
114
110
|
updateAccountOnSignIn: boolean | undefined;
|
|
115
111
|
accountLinking: {
|
|
116
112
|
enabled: boolean | undefined;
|
|
117
|
-
trustedProviders:
|
|
113
|
+
trustedProviders: import("@better-auth/core").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) => import("@better-auth/core").Awaitable<Array<import("@better-auth/core").LiteralUnion<import("@better-auth/core/social-providers").SocialProviderList[number] | "email-password", string>>>) | undefined;
|
|
118
114
|
updateUserInfoOnLink: boolean | undefined;
|
|
119
115
|
allowUnlinkingAll: boolean | undefined;
|
|
120
116
|
};
|
|
@@ -133,7 +129,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
133
129
|
additionalCookies: string[] | undefined;
|
|
134
130
|
};
|
|
135
131
|
database: {
|
|
136
|
-
generateId: false |
|
|
132
|
+
generateId: false | import("@better-auth/core").GenerateIdFn | "serial" | "uuid" | undefined;
|
|
137
133
|
defaultFindManyLimit: number | undefined;
|
|
138
134
|
};
|
|
139
135
|
useSecureCookies: boolean | undefined;
|
|
@@ -154,7 +150,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
154
150
|
trustedOrigins: number | undefined;
|
|
155
151
|
rateLimit: {
|
|
156
152
|
storage: "memory" | "database" | "secondary-storage" | undefined;
|
|
157
|
-
modelName:
|
|
153
|
+
modelName: import("@better-auth/core").LiteralString | "rateLimit" | undefined;
|
|
158
154
|
window: number | undefined;
|
|
159
155
|
customStorage: boolean;
|
|
160
156
|
enabled: boolean | undefined;
|
package/dist/node.d.mts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import * as _better_auth_core0 from "@better-auth/core";
|
|
2
1
|
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
|
-
|
|
6
2
|
//#region src/types.d.ts
|
|
7
3
|
interface TelemetryEvent {
|
|
8
4
|
type: string;
|
|
@@ -74,10 +70,10 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
74
70
|
})[];
|
|
75
71
|
plugins: string[] | undefined;
|
|
76
72
|
user: {
|
|
77
|
-
modelName: "user" |
|
|
73
|
+
modelName: "user" | import("@better-auth/core").LiteralString | undefined;
|
|
78
74
|
fields: Partial<Record<"name" | "email" | "image" | "createdAt" | "updatedAt" | "emailVerified", string>> | undefined;
|
|
79
75
|
additionalFields: {
|
|
80
|
-
[x: string]:
|
|
76
|
+
[x: string]: import("@better-auth/core/db").DBFieldAttribute;
|
|
81
77
|
} | undefined;
|
|
82
78
|
changeEmail: {
|
|
83
79
|
enabled: boolean | undefined;
|
|
@@ -85,14 +81,14 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
85
81
|
};
|
|
86
82
|
};
|
|
87
83
|
verification: {
|
|
88
|
-
modelName:
|
|
84
|
+
modelName: import("@better-auth/core").LiteralString | "verification" | undefined;
|
|
89
85
|
disableCleanup: boolean | undefined;
|
|
90
86
|
fields: Partial<Record<"createdAt" | "updatedAt" | "value" | "expiresAt" | "identifier", string>> | undefined;
|
|
91
87
|
};
|
|
92
88
|
session: {
|
|
93
|
-
modelName:
|
|
89
|
+
modelName: import("@better-auth/core").LiteralString | "session" | undefined;
|
|
94
90
|
additionalFields: {
|
|
95
|
-
[x: string]:
|
|
91
|
+
[x: string]: import("@better-auth/core/db").DBFieldAttribute;
|
|
96
92
|
} | undefined;
|
|
97
93
|
cookieCache: {
|
|
98
94
|
enabled: boolean | undefined;
|
|
@@ -108,13 +104,13 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
108
104
|
updateAge: number | undefined;
|
|
109
105
|
};
|
|
110
106
|
account: {
|
|
111
|
-
modelName:
|
|
107
|
+
modelName: import("@better-auth/core").LiteralString | "account" | undefined;
|
|
112
108
|
fields: Partial<Record<"scope" | "createdAt" | "updatedAt" | "userId" | "providerId" | "accountId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "password", string>> | undefined;
|
|
113
109
|
encryptOAuthTokens: boolean | undefined;
|
|
114
110
|
updateAccountOnSignIn: boolean | undefined;
|
|
115
111
|
accountLinking: {
|
|
116
112
|
enabled: boolean | undefined;
|
|
117
|
-
trustedProviders:
|
|
113
|
+
trustedProviders: import("@better-auth/core").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) => import("@better-auth/core").Awaitable<Array<import("@better-auth/core").LiteralUnion<import("@better-auth/core/social-providers").SocialProviderList[number] | "email-password", string>>>) | undefined;
|
|
118
114
|
updateUserInfoOnLink: boolean | undefined;
|
|
119
115
|
allowUnlinkingAll: boolean | undefined;
|
|
120
116
|
};
|
|
@@ -133,7 +129,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
133
129
|
additionalCookies: string[] | undefined;
|
|
134
130
|
};
|
|
135
131
|
database: {
|
|
136
|
-
generateId: false |
|
|
132
|
+
generateId: false | import("@better-auth/core").GenerateIdFn | "serial" | "uuid" | undefined;
|
|
137
133
|
defaultFindManyLimit: number | undefined;
|
|
138
134
|
};
|
|
139
135
|
useSecureCookies: boolean | undefined;
|
|
@@ -154,7 +150,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
154
150
|
trustedOrigins: number | undefined;
|
|
155
151
|
rateLimit: {
|
|
156
152
|
storage: "memory" | "database" | "secondary-storage" | undefined;
|
|
157
|
-
modelName:
|
|
153
|
+
modelName: import("@better-auth/core").LiteralString | "rateLimit" | undefined;
|
|
158
154
|
window: number | undefined;
|
|
159
155
|
customStorage: boolean;
|
|
160
156
|
enabled: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/telemetry",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.24",
|
|
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.22.7",
|
|
46
46
|
"type-fest": "^5.4.4",
|
|
47
|
-
"@better-auth/core": "1.6.
|
|
47
|
+
"@better-auth/core": "1.6.24"
|
|
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.6.
|
|
52
|
+
"@better-auth/core": "^1.6.24"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsdown",
|