@better-auth/infra 0.1.11 → 0.1.13
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/client.d.mts +7 -7
- package/dist/client.mjs +2 -4
- package/dist/{constants-B-e0_Nsv.mjs → constants-DdWGfvz1.mjs} +1 -3
- package/dist/email.mjs +2 -4
- package/dist/index.d.mts +4015 -753
- package/dist/index.mjs +1911 -2226
- package/package.json +16 -13
package/dist/client.d.mts
CHANGED
|
@@ -10,10 +10,10 @@ interface DashAuditLog {
|
|
|
10
10
|
updatedAt: string;
|
|
11
11
|
ageInMinutes?: number;
|
|
12
12
|
location?: {
|
|
13
|
-
ipAddress?: string;
|
|
14
|
-
city?: string;
|
|
15
|
-
country?: string;
|
|
16
|
-
countryCode?: string;
|
|
13
|
+
ipAddress?: string | null;
|
|
14
|
+
city?: string | null;
|
|
15
|
+
country?: string | null;
|
|
16
|
+
countryCode?: string | null;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
interface DashAuditLogsResponse {
|
|
@@ -52,15 +52,15 @@ declare const dashClient: (options?: DashClientOptions) => {
|
|
|
52
52
|
getActions: ($fetch: _better_fetch_fetch0.BetterFetch) => {
|
|
53
53
|
dash: {
|
|
54
54
|
getAuditLogs: (input?: DashGetAuditLogsInput) => Promise<{
|
|
55
|
-
data: DashAuditLogsResponse;
|
|
56
|
-
error: null;
|
|
57
|
-
} | {
|
|
58
55
|
data: null;
|
|
59
56
|
error: {
|
|
60
57
|
message?: string | undefined;
|
|
61
58
|
status: number;
|
|
62
59
|
statusText: string;
|
|
63
60
|
};
|
|
61
|
+
} | {
|
|
62
|
+
data: DashAuditLogsResponse;
|
|
63
|
+
error: null;
|
|
64
64
|
}>;
|
|
65
65
|
};
|
|
66
66
|
};
|
package/dist/client.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as KV_TIMEOUT_MS } from "./constants-
|
|
1
|
+
import { r as KV_TIMEOUT_MS } from "./constants-DdWGfvz1.mjs";
|
|
2
2
|
import { env } from "@better-auth/core/env";
|
|
3
|
-
|
|
4
3
|
//#region src/client.ts
|
|
5
4
|
const DEFAULT_IDENTIFY_URL = "https://kv.better-auth.com";
|
|
6
5
|
async function sha256(message) {
|
|
@@ -594,6 +593,5 @@ const sentinelClient = (options) => {
|
|
|
594
593
|
}]
|
|
595
594
|
};
|
|
596
595
|
};
|
|
597
|
-
|
|
598
596
|
//#endregion
|
|
599
|
-
export { dashClient, sentinelClient };
|
|
597
|
+
export { dashClient, sentinelClient };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { env } from "@better-auth/core/env";
|
|
2
|
-
|
|
3
2
|
//#region src/constants.ts
|
|
4
3
|
/**
|
|
5
4
|
* Infrastructure API URL
|
|
@@ -13,6 +12,5 @@ const INFRA_API_URL = env.BETTER_AUTH_API_URL || "https://dash.better-auth.com";
|
|
|
13
12
|
const INFRA_KV_URL = env.BETTER_AUTH_KV_URL || "https://kv.better-auth.com";
|
|
14
13
|
/** Timeout for KV HTTP operations (ms) */
|
|
15
14
|
const KV_TIMEOUT_MS = 5e3;
|
|
16
|
-
|
|
17
15
|
//#endregion
|
|
18
|
-
export { INFRA_KV_URL as n, KV_TIMEOUT_MS as r, INFRA_API_URL as t };
|
|
16
|
+
export { INFRA_KV_URL as n, KV_TIMEOUT_MS as r, INFRA_API_URL as t };
|
package/dist/email.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as INFRA_API_URL } from "./constants-
|
|
1
|
+
import { t as INFRA_API_URL } from "./constants-DdWGfvz1.mjs";
|
|
2
2
|
import { logger } from "better-auth";
|
|
3
3
|
import { env } from "@better-auth/core/env";
|
|
4
|
-
|
|
5
4
|
//#region src/email.ts
|
|
6
5
|
/**
|
|
7
6
|
* Email sending module for @better-auth/infra
|
|
@@ -178,6 +177,5 @@ async function sendEmail(options, config) {
|
|
|
178
177
|
async function sendBulkEmails(options, config) {
|
|
179
178
|
return createEmailSender(config).sendBulk(options);
|
|
180
179
|
}
|
|
181
|
-
|
|
182
180
|
//#endregion
|
|
183
|
-
export { EMAIL_TEMPLATES, createEmailSender, sendBulkEmails, sendEmail };
|
|
181
|
+
export { EMAIL_TEMPLATES, createEmailSender, sendBulkEmails, sendEmail };
|