@better-auth/infra 0.1.13 → 0.2.0
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/README.md +44 -0
- package/dist/client.d.mts +7 -73
- package/dist/client.mjs +9 -95
- package/dist/dash-client-hJHp7l_X.d.mts +72 -0
- package/dist/index.d.mts +867 -1090
- package/dist/index.mjs +1174 -1094
- package/dist/native.d.mts +18 -0
- package/dist/native.mjs +292 -0
- package/dist/pow-BUuN_EKw.mjs +131 -0
- package/package.json +34 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EMAIL_TEMPLATES, EmailConfig, EmailTemplateId, EmailTemplateVariables, SendBulkEmailsOptions, SendBulkEmailsResult, SendEmailOptions, SendEmailResult, createEmailSender, sendBulkEmails, sendEmail } from "./email.mjs";
|
|
2
|
-
import * as better_auth0 from "better-auth";
|
|
3
|
-
import { AuthContext, BetterAuthPlugin, GenericEndpointContext, HookEndpointContext, User } from "better-auth";
|
|
4
|
-
import * as jose from "jose";
|
|
2
|
+
import * as _$better_auth0 from "better-auth";
|
|
3
|
+
import { Account, AuthContext, BetterAuthPlugin, GenericEndpointContext, HookEndpointContext, Session, User } from "better-auth";
|
|
4
|
+
import * as _$jose from "jose";
|
|
5
5
|
import * as zod from "zod";
|
|
6
6
|
import z$1 from "zod";
|
|
7
|
-
import * as
|
|
8
|
-
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
9
|
-
import { Member } from "better-auth/plugins";
|
|
10
|
-
import * as better_call0 from "better-call";
|
|
7
|
+
import * as _$better_call0 from "better-call";
|
|
11
8
|
import { APIError, Endpoint, EndpointOptions } from "better-call";
|
|
9
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
10
|
+
import { DBFieldAttribute } from "better-auth/db";
|
|
11
|
+
import { Invitation, Member, Organization, Team, TeamMember } from "better-auth/plugins";
|
|
12
12
|
export * from "better-call";
|
|
13
13
|
|
|
14
14
|
//#region src/identification.d.ts
|
|
@@ -45,7 +45,7 @@ interface Identification {
|
|
|
45
45
|
isAnonymous: boolean;
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region src/security.d.ts
|
|
48
|
+
//#region src/sentinel/security.d.ts
|
|
49
49
|
type SecurityAction = "log" | "block" | "challenge";
|
|
50
50
|
interface ThresholdConfig {
|
|
51
51
|
challenge?: number;
|
|
@@ -167,105 +167,13 @@ interface SecurityEvent {
|
|
|
167
167
|
}
|
|
168
168
|
type SecurityEventType = "unknown_device" | "credential_stuffing" | "impossible_travel" | "geo_blocked" | "bot_blocked" | "suspicious_ip_detected" | "velocity_exceeded" | "free_trial_abuse" | "compromised_password" | "stale_account_reactivation";
|
|
169
169
|
//#endregion
|
|
170
|
-
//#region src/types.d.ts
|
|
171
|
-
/**
|
|
172
|
-
* Shared connection options used by infra plugins.
|
|
173
|
-
*/
|
|
174
|
-
interface InfraPluginConnectionOptions {
|
|
175
|
-
/**
|
|
176
|
-
* The URL of the Better Auth Dash API
|
|
177
|
-
* @default "https://dash.better-auth.com"
|
|
178
|
-
*/
|
|
179
|
-
apiUrl?: string;
|
|
180
|
-
/**
|
|
181
|
-
* The URL of the KV storage service
|
|
182
|
-
* @default "https://kv.better-auth.com"
|
|
183
|
-
*/
|
|
184
|
-
kvUrl?: string;
|
|
185
|
-
/**
|
|
186
|
-
* Your Better Auth Dash API key
|
|
187
|
-
* @default process.env.BETTER_AUTH_API_KEY
|
|
188
|
-
*/
|
|
189
|
-
apiKey?: string;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Configuration options for the dash plugin.
|
|
193
|
-
*/
|
|
194
|
-
interface DashOptions extends InfraPluginConnectionOptions {
|
|
195
|
-
/**
|
|
196
|
-
* User activity tracking configuration
|
|
197
|
-
*/
|
|
198
|
-
activityTracking?: {
|
|
199
|
-
/**
|
|
200
|
-
* Whether to enable user activity tracking
|
|
201
|
-
*
|
|
202
|
-
* This requires a database schema change to the user table.
|
|
203
|
-
* @default false
|
|
204
|
-
*/
|
|
205
|
-
enabled?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Interval in milliseconds to update lastActiveAt for active users
|
|
208
|
-
* Set to 0 to disable interval-based tracking
|
|
209
|
-
* @default 300000 (5 minutes)
|
|
210
|
-
*/
|
|
211
|
-
updateInterval?: number;
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Configuration options for the sentinel plugin.
|
|
216
|
-
*/
|
|
217
|
-
interface SentinelOptions extends InfraPluginConnectionOptions {
|
|
218
|
-
/**
|
|
219
|
-
* Security features configuration
|
|
220
|
-
*/
|
|
221
|
-
security?: SecurityOptions;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Internal connection options with required fields resolved.
|
|
225
|
-
* @internal
|
|
226
|
-
*/
|
|
227
|
-
interface InfraPluginConnectionOptionsInternal extends InfraPluginConnectionOptions {
|
|
228
|
-
apiUrl: string;
|
|
229
|
-
kvUrl: string;
|
|
230
|
-
apiKey: string;
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Internal options with required fields resolved
|
|
234
|
-
* @internal
|
|
235
|
-
*/
|
|
236
|
-
interface DashOptionsInternal extends Omit<DashOptions, keyof InfraPluginConnectionOptions>, InfraPluginConnectionOptionsInternal {}
|
|
237
|
-
/**
|
|
238
|
-
* Internal sentinel options with required fields resolved.
|
|
239
|
-
* @internal
|
|
240
|
-
*/
|
|
241
|
-
interface SentinelOptionsInternal extends Omit<SentinelOptions, keyof InfraPluginConnectionOptions>, InfraPluginConnectionOptionsInternal {}
|
|
242
|
-
/**
|
|
243
|
-
* Location/geo data used across events, audit logs, and request context.
|
|
244
|
-
*/
|
|
245
|
-
interface LocationData {
|
|
246
|
-
ipAddress?: string | null;
|
|
247
|
-
city?: string | null;
|
|
248
|
-
country?: string | null;
|
|
249
|
-
countryCode?: string | null;
|
|
250
|
-
}
|
|
251
|
-
/** @deprecated Use LocationData instead */
|
|
252
|
-
type LocationDataContext = LocationData;
|
|
253
|
-
type InfraEndpointContext = (GenericEndpointContext & {
|
|
254
|
-
context: {
|
|
255
|
-
identification: Identification | null;
|
|
256
|
-
visitorId: string | null;
|
|
257
|
-
requestId: string | null;
|
|
258
|
-
location: LocationData | undefined;
|
|
259
|
-
};
|
|
260
|
-
}) | undefined;
|
|
261
|
-
//#endregion
|
|
262
170
|
//#region src/validation/matchers.d.ts
|
|
263
171
|
type Matcher = (context: HookEndpointContext) => boolean;
|
|
264
172
|
//#endregion
|
|
265
|
-
//#region src/sentinel.d.ts
|
|
173
|
+
//#region src/sentinel/sentinel.d.ts
|
|
266
174
|
declare const sentinel: (options?: SentinelOptions) => {
|
|
267
175
|
id: "sentinel";
|
|
268
|
-
init(): {
|
|
176
|
+
init(ctx: _$better_auth0.AuthContext): {
|
|
269
177
|
options: {
|
|
270
178
|
emailValidation: {
|
|
271
179
|
enabled?: boolean;
|
|
@@ -284,7 +192,7 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
284
192
|
emailVerified: boolean;
|
|
285
193
|
name: string;
|
|
286
194
|
image?: string | null | undefined;
|
|
287
|
-
} & Record<string, unknown>, ctx: better_auth0.GenericEndpointContext | null): Promise<{
|
|
195
|
+
} & Record<string, unknown>, ctx: _$better_auth0.GenericEndpointContext | null): Promise<{
|
|
288
196
|
data: {
|
|
289
197
|
email: string;
|
|
290
198
|
id: string;
|
|
@@ -303,7 +211,7 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
303
211
|
emailVerified: boolean;
|
|
304
212
|
name: string;
|
|
305
213
|
image?: string | null | undefined;
|
|
306
|
-
} & Record<string, unknown>, ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
214
|
+
} & Record<string, unknown>, ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
307
215
|
};
|
|
308
216
|
};
|
|
309
217
|
session: {
|
|
@@ -317,7 +225,7 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
317
225
|
token: string;
|
|
318
226
|
ipAddress?: string | null | undefined;
|
|
319
227
|
userAgent?: string | null | undefined;
|
|
320
|
-
} & Record<string, unknown>, ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
228
|
+
} & Record<string, unknown>, ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
321
229
|
after(session: {
|
|
322
230
|
id: string;
|
|
323
231
|
createdAt: Date;
|
|
@@ -327,7 +235,7 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
327
235
|
token: string;
|
|
328
236
|
ipAddress?: string | null | undefined;
|
|
329
237
|
userAgent?: string | null | undefined;
|
|
330
|
-
} & Record<string, unknown>, ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
238
|
+
} & Record<string, unknown>, ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
331
239
|
};
|
|
332
240
|
};
|
|
333
241
|
};
|
|
@@ -336,7 +244,7 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
336
244
|
hooks: {
|
|
337
245
|
before: ({
|
|
338
246
|
matcher: Matcher;
|
|
339
|
-
handler: (inputContext:
|
|
247
|
+
handler: (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
340
248
|
context: {
|
|
341
249
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
342
250
|
path: string;
|
|
@@ -346,12 +254,12 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
346
254
|
request: Request | undefined;
|
|
347
255
|
headers: Headers | undefined;
|
|
348
256
|
setHeader: ((key: string, value: string) => void) & ((key: string, value: string) => void);
|
|
349
|
-
setStatus: (status:
|
|
257
|
+
setStatus: (status: _$better_call0.Status) => void;
|
|
350
258
|
getHeader: ((key: string) => string | null) & ((key: string) => string | null);
|
|
351
|
-
getCookie: (key: string, prefix?:
|
|
352
|
-
getSignedCookie: (key: string, secret: string, prefix?:
|
|
353
|
-
setCookie: (key: string, value: string, options?:
|
|
354
|
-
setSignedCookie: (key: string, value: string, secret: string, options?:
|
|
259
|
+
getCookie: (key: string, prefix?: _$better_call0.CookiePrefixOptions) => string | null;
|
|
260
|
+
getSignedCookie: (key: string, secret: string, prefix?: _$better_call0.CookiePrefixOptions) => Promise<string | null | false>;
|
|
261
|
+
setCookie: (key: string, value: string, options?: _$better_call0.CookieOptions) => string;
|
|
262
|
+
setSignedCookie: (key: string, value: string, secret: string, options?: _$better_call0.CookieOptions) => Promise<string>;
|
|
355
263
|
json: (<R extends Record<string, any> | null>(json: R, routerResponse?: {
|
|
356
264
|
status?: number;
|
|
357
265
|
headers?: Record<string, string>;
|
|
@@ -367,14 +275,14 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
367
275
|
} & {
|
|
368
276
|
returned?: unknown | undefined;
|
|
369
277
|
responseHeaders?: Headers | undefined;
|
|
370
|
-
getPlugin: <ID extends better_auth0.BetterAuthPluginRegistryIdentifier | better_auth0.LiteralString, PluginOptions extends never>(pluginId: ID) => (ID extends keyof better_auth0.BetterAuthPluginRegistry<unknown, unknown> ? better_auth0.BetterAuthPluginRegistry<better_auth0.BetterAuthOptions, PluginOptions>[ID] extends {
|
|
278
|
+
getPlugin: <ID extends _$better_auth0.BetterAuthPluginRegistryIdentifier | _$better_auth0.LiteralString, PluginOptions extends never>(pluginId: ID) => (ID extends keyof _$better_auth0.BetterAuthPluginRegistry<unknown, unknown> ? _$better_auth0.BetterAuthPluginRegistry<_$better_auth0.BetterAuthOptions, PluginOptions>[ID] extends {
|
|
371
279
|
creator: infer C;
|
|
372
280
|
} ? C extends ((...args: any[]) => infer R) ? R : never : never : BetterAuthPlugin) | null;
|
|
373
|
-
hasPlugin: <ID extends better_auth0.BetterAuthPluginRegistryIdentifier | better_auth0.LiteralString>(pluginId: ID) => ID extends never ? true : boolean;
|
|
281
|
+
hasPlugin: <ID extends _$better_auth0.BetterAuthPluginRegistryIdentifier | _$better_auth0.LiteralString>(pluginId: ID) => ID extends never ? true : boolean;
|
|
374
282
|
appName: string;
|
|
375
283
|
baseURL: string;
|
|
376
284
|
version: string;
|
|
377
|
-
options: better_auth0.BetterAuthOptions;
|
|
285
|
+
options: _$better_auth0.BetterAuthOptions;
|
|
378
286
|
trustedOrigins: string[];
|
|
379
287
|
trustedProviders: string[];
|
|
380
288
|
isTrustedOrigin: (url: string, settings?: {
|
|
@@ -447,19 +355,20 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
447
355
|
image?: string | null | undefined;
|
|
448
356
|
} & Record<string, any>;
|
|
449
357
|
} | null) => void;
|
|
450
|
-
socialProviders: better_auth0.OAuthProvider[];
|
|
451
|
-
authCookies: better_auth0.BetterAuthCookies;
|
|
452
|
-
logger: ReturnType<(options?: better_auth0.Logger | undefined) => better_auth0.InternalLogger>;
|
|
358
|
+
socialProviders: _$better_auth0.OAuthProvider[];
|
|
359
|
+
authCookies: _$better_auth0.BetterAuthCookies;
|
|
360
|
+
logger: ReturnType<(options?: _$better_auth0.Logger | undefined) => _$better_auth0.InternalLogger>;
|
|
453
361
|
rateLimit: {
|
|
454
362
|
enabled: boolean;
|
|
455
363
|
window: number;
|
|
456
364
|
max: number;
|
|
457
365
|
storage: "memory" | "database" | "secondary-storage";
|
|
458
|
-
} & Omit<better_auth0.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
459
|
-
adapter: better_auth0.DBAdapter<better_auth0.BetterAuthOptions>;
|
|
460
|
-
internalAdapter: better_auth0.InternalAdapter<better_auth0.BetterAuthOptions>;
|
|
461
|
-
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<
|
|
366
|
+
} & Omit<_$better_auth0.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
367
|
+
adapter: _$better_auth0.DBAdapter<_$better_auth0.BetterAuthOptions>;
|
|
368
|
+
internalAdapter: _$better_auth0.InternalAdapter<_$better_auth0.BetterAuthOptions>;
|
|
369
|
+
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<_$better_call0.CookieOptions> | undefined) => _$better_auth0.BetterAuthCookie;
|
|
462
370
|
secret: string;
|
|
371
|
+
secretConfig: string | _$better_auth0.SecretConfig;
|
|
463
372
|
sessionConfig: {
|
|
464
373
|
updateAge: number;
|
|
465
374
|
expiresIn: number;
|
|
@@ -470,10 +379,10 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
470
379
|
};
|
|
471
380
|
};
|
|
472
381
|
generateId: (options: {
|
|
473
|
-
model: better_auth0.ModelNames;
|
|
382
|
+
model: _$better_auth0.ModelNames;
|
|
474
383
|
size?: number | undefined;
|
|
475
384
|
}) => string | false;
|
|
476
|
-
secondaryStorage: better_auth0.SecondaryStorage | undefined;
|
|
385
|
+
secondaryStorage: _$better_auth0.SecondaryStorage | undefined;
|
|
477
386
|
password: {
|
|
478
387
|
hash: (password: string) => Promise<string>;
|
|
479
388
|
verify: (data: {
|
|
@@ -484,9 +393,9 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
484
393
|
minPasswordLength: number;
|
|
485
394
|
maxPasswordLength: number;
|
|
486
395
|
};
|
|
487
|
-
checkPassword: (userId: string, ctx: better_auth0.GenericEndpointContext<better_auth0.BetterAuthOptions>) => Promise<boolean>;
|
|
396
|
+
checkPassword: (userId: string, ctx: _$better_auth0.GenericEndpointContext<_$better_auth0.BetterAuthOptions>) => Promise<boolean>;
|
|
488
397
|
};
|
|
489
|
-
tables: better_auth0.BetterAuthDBSchema;
|
|
398
|
+
tables: _$better_auth0.BetterAuthDBSchema;
|
|
490
399
|
runMigrations: () => Promise<void>;
|
|
491
400
|
publishTelemetry: (event: {
|
|
492
401
|
type: string;
|
|
@@ -496,52 +405,118 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
496
405
|
skipOriginCheck: boolean | string[];
|
|
497
406
|
skipCSRFCheck: boolean;
|
|
498
407
|
runInBackground: (promise: Promise<unknown>) => void;
|
|
499
|
-
runInBackgroundOrAwait: (promise: Promise<unknown> | void) => better_auth0.Awaitable<unknown>;
|
|
500
|
-
};
|
|
501
|
-
redirect: (url: string) => {
|
|
502
|
-
status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_auth0.Status;
|
|
503
|
-
body: ({
|
|
504
|
-
message?: string;
|
|
505
|
-
code?: string;
|
|
506
|
-
cause?: unknown;
|
|
507
|
-
} & Record<string, any>) | undefined;
|
|
508
|
-
headers: HeadersInit;
|
|
509
|
-
statusCode: number;
|
|
510
|
-
name: string;
|
|
511
|
-
message: string;
|
|
512
|
-
stack?: string;
|
|
513
|
-
cause?: unknown;
|
|
408
|
+
runInBackgroundOrAwait: (promise: Promise<unknown> | void) => _$better_auth0.Awaitable<unknown>;
|
|
514
409
|
};
|
|
515
|
-
|
|
410
|
+
redirect: (url: string) => _$better_call0.APIError;
|
|
411
|
+
error: (status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | _$better_call0.Status, body?: {
|
|
516
412
|
message?: string;
|
|
517
413
|
code?: string;
|
|
518
|
-
} & Record<string, any>, headers?: HeadersInit) =>
|
|
519
|
-
status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_auth0.Status;
|
|
520
|
-
body: ({
|
|
521
|
-
message?: string;
|
|
522
|
-
code?: string;
|
|
523
|
-
cause?: unknown;
|
|
524
|
-
} & Record<string, any>) | undefined;
|
|
525
|
-
headers: HeadersInit;
|
|
526
|
-
statusCode: number;
|
|
527
|
-
name: string;
|
|
528
|
-
message: string;
|
|
529
|
-
stack?: string;
|
|
530
|
-
cause?: unknown;
|
|
531
|
-
};
|
|
414
|
+
} & Record<string, any>, headers?: HeadersInit) => _$better_call0.APIError;
|
|
532
415
|
};
|
|
533
416
|
} | undefined>;
|
|
534
417
|
} | {
|
|
535
418
|
matcher: Matcher;
|
|
536
|
-
handler: (inputContext:
|
|
419
|
+
handler: (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>;
|
|
537
420
|
})[];
|
|
538
421
|
after: {
|
|
539
|
-
matcher: (ctx: better_auth0.HookEndpointContext) => boolean;
|
|
540
|
-
handler: (inputContext:
|
|
422
|
+
matcher: (ctx: _$better_auth0.HookEndpointContext) => boolean;
|
|
423
|
+
handler: (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>;
|
|
541
424
|
}[];
|
|
542
425
|
};
|
|
543
426
|
};
|
|
544
427
|
//#endregion
|
|
428
|
+
//#region src/types.d.ts
|
|
429
|
+
/**
|
|
430
|
+
* Shared connection options used by infra plugins.
|
|
431
|
+
*/
|
|
432
|
+
interface InfraPluginConnectionOptions {
|
|
433
|
+
/**
|
|
434
|
+
* The URL of the Better Auth Dash API
|
|
435
|
+
* @default "https://dash.better-auth.com"
|
|
436
|
+
*/
|
|
437
|
+
apiUrl?: string;
|
|
438
|
+
/**
|
|
439
|
+
* The URL of the KV storage service
|
|
440
|
+
* @default "https://kv.better-auth.com"
|
|
441
|
+
*/
|
|
442
|
+
kvUrl?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Your Better Auth Dash API key
|
|
445
|
+
* @default process.env.BETTER_AUTH_API_KEY
|
|
446
|
+
*/
|
|
447
|
+
apiKey?: string;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Configuration options for the dash plugin.
|
|
451
|
+
*/
|
|
452
|
+
interface DashOptions extends InfraPluginConnectionOptions {
|
|
453
|
+
/**
|
|
454
|
+
* User activity tracking configuration
|
|
455
|
+
*/
|
|
456
|
+
activityTracking?: {
|
|
457
|
+
/**
|
|
458
|
+
* Whether to enable user activity tracking
|
|
459
|
+
*
|
|
460
|
+
* This requires a database schema change to the user table.
|
|
461
|
+
* @default false
|
|
462
|
+
*/
|
|
463
|
+
enabled?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Interval in milliseconds to update lastActiveAt for active users
|
|
466
|
+
* Set to 0 to disable interval-based tracking
|
|
467
|
+
* @default 300000 (5 minutes)
|
|
468
|
+
*/
|
|
469
|
+
updateInterval?: number;
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Configuration options for the sentinel plugin.
|
|
474
|
+
*/
|
|
475
|
+
interface SentinelOptions extends InfraPluginConnectionOptions {
|
|
476
|
+
/**
|
|
477
|
+
* Security features configuration
|
|
478
|
+
*/
|
|
479
|
+
security?: SecurityOptions;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Internal connection options with required fields resolved.
|
|
483
|
+
* @internal
|
|
484
|
+
*/
|
|
485
|
+
interface InfraPluginConnectionOptionsInternal extends InfraPluginConnectionOptions {
|
|
486
|
+
apiUrl: string;
|
|
487
|
+
kvUrl: string;
|
|
488
|
+
apiKey: string;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Internal options with required fields resolved
|
|
492
|
+
* @internal
|
|
493
|
+
*/
|
|
494
|
+
interface DashOptionsInternal extends Omit<DashOptions, keyof InfraPluginConnectionOptions>, InfraPluginConnectionOptionsInternal {}
|
|
495
|
+
/**
|
|
496
|
+
* Internal sentinel options with required fields resolved.
|
|
497
|
+
* @internal
|
|
498
|
+
*/
|
|
499
|
+
interface SentinelOptionsInternal extends Omit<SentinelOptions, keyof InfraPluginConnectionOptions>, InfraPluginConnectionOptionsInternal {}
|
|
500
|
+
/**
|
|
501
|
+
* Location/geo data used across events, audit logs, and request context.
|
|
502
|
+
*/
|
|
503
|
+
interface LocationData {
|
|
504
|
+
ipAddress?: string | null;
|
|
505
|
+
city?: string | null;
|
|
506
|
+
country?: string | null;
|
|
507
|
+
countryCode?: string | null;
|
|
508
|
+
}
|
|
509
|
+
/** @deprecated Use LocationData instead */
|
|
510
|
+
type LocationDataContext = LocationData;
|
|
511
|
+
type InfraEndpointContext = (GenericEndpointContext & {
|
|
512
|
+
context: {
|
|
513
|
+
identification: Identification | null;
|
|
514
|
+
visitorId: string | null;
|
|
515
|
+
requestId: string | null;
|
|
516
|
+
location: LocationData | undefined;
|
|
517
|
+
};
|
|
518
|
+
}) | undefined;
|
|
519
|
+
//#endregion
|
|
545
520
|
//#region src/pow.d.ts
|
|
546
521
|
/**
|
|
547
522
|
* Proof of Work Challenge System - Client Side
|
|
@@ -684,7 +659,71 @@ declare function createSMSSender(config?: SMSConfig): {
|
|
|
684
659
|
*/
|
|
685
660
|
declare function sendSMS(options: SendSMSOptions, config?: SMSConfig): Promise<SendSMSResult>;
|
|
686
661
|
//#endregion
|
|
687
|
-
//#region
|
|
662
|
+
//#region src/routes/auth/types.d.ts
|
|
663
|
+
type DBField = {
|
|
664
|
+
name: string;
|
|
665
|
+
type?: DBFieldAttribute["type"];
|
|
666
|
+
required?: DBFieldAttribute["required"];
|
|
667
|
+
input?: DBFieldAttribute["input"];
|
|
668
|
+
unique?: DBFieldAttribute["unique"];
|
|
669
|
+
hasDefaultValue?: boolean;
|
|
670
|
+
references?: DBFieldAttribute["references"];
|
|
671
|
+
returned?: DBFieldAttribute["returned"];
|
|
672
|
+
bigInt?: DBFieldAttribute["bigint"];
|
|
673
|
+
};
|
|
674
|
+
interface DashConfigResponse {
|
|
675
|
+
version: string | null;
|
|
676
|
+
socialProviders: string[];
|
|
677
|
+
emailAndPassword: unknown;
|
|
678
|
+
plugins: Array<{
|
|
679
|
+
id: string;
|
|
680
|
+
schema: unknown;
|
|
681
|
+
version?: unknown;
|
|
682
|
+
options: unknown;
|
|
683
|
+
}>;
|
|
684
|
+
organization: {
|
|
685
|
+
sendInvitationEmailEnabled: boolean;
|
|
686
|
+
additionalFields: DBField[];
|
|
687
|
+
};
|
|
688
|
+
user: {
|
|
689
|
+
fields: DBField[];
|
|
690
|
+
additionalFields: DBField[];
|
|
691
|
+
deleteUserEnabled: boolean;
|
|
692
|
+
modelName?: string;
|
|
693
|
+
};
|
|
694
|
+
baseURL: unknown;
|
|
695
|
+
basePath: string;
|
|
696
|
+
emailVerification: {
|
|
697
|
+
sendVerificationEmailEnabled: boolean;
|
|
698
|
+
};
|
|
699
|
+
insights: Record<string, unknown>;
|
|
700
|
+
}
|
|
701
|
+
interface DashValidateResponse {
|
|
702
|
+
valid: boolean;
|
|
703
|
+
}
|
|
704
|
+
//#endregion
|
|
705
|
+
//#region src/routes/common-types.d.ts
|
|
706
|
+
/**
|
|
707
|
+
* Shared JSON body shapes used by multiple `/dash/*` handlers.
|
|
708
|
+
*
|
|
709
|
+
* Naming:
|
|
710
|
+
* - `Dash<Domain>…Response` — full HTTP response body
|
|
711
|
+
* - `Dash<Domain>…Item` — array element or nested row
|
|
712
|
+
* - `Dash<Domain>…Summary` — minimal embedded shape where applicable
|
|
713
|
+
*/
|
|
714
|
+
interface DashSuccessResponse {
|
|
715
|
+
success: boolean;
|
|
716
|
+
}
|
|
717
|
+
/** Endpoints that may omit `success` in the body */
|
|
718
|
+
interface DashMaybeSuccessResponse {
|
|
719
|
+
success?: boolean;
|
|
720
|
+
}
|
|
721
|
+
/** Single `id` field (e.g. add-member, create-team) */
|
|
722
|
+
interface DashIdRow {
|
|
723
|
+
id: string;
|
|
724
|
+
}
|
|
725
|
+
//#endregion
|
|
726
|
+
//#region ../../node_modules/.bun/@better-auth+scim@1.6.1+7c6411af93091c12/node_modules/@better-auth/scim/dist/index.d.mts
|
|
688
727
|
//#region src/types.d.ts
|
|
689
728
|
interface SCIMProvider {
|
|
690
729
|
id: string;
|
|
@@ -696,45 +735,44 @@ interface SCIMProvider {
|
|
|
696
735
|
type SCIMOptions = {
|
|
697
736
|
/**
|
|
698
737
|
* SCIM provider ownership configuration. When enabled, each provider
|
|
699
|
-
* connection is linked to the user who generated its token
|
|
738
|
+
* connection is linked to the user who generated its token.
|
|
700
739
|
*/
|
|
701
740
|
providerOwnership?: {
|
|
702
741
|
enabled: boolean;
|
|
703
742
|
};
|
|
704
743
|
/**
|
|
705
|
-
*
|
|
706
|
-
*
|
|
744
|
+
* Minimum organization role(s) required for SCIM management operations
|
|
745
|
+
* (generate-token, list/get/delete provider connections).
|
|
746
|
+
*
|
|
747
|
+
* Defaults to `["admin", organization.creatorRole ?? "owner"]`.
|
|
748
|
+
*/
|
|
749
|
+
requiredRole?: string[];
|
|
750
|
+
/**
|
|
751
|
+
* Default list of SCIM providers for testing.
|
|
752
|
+
* These will take precedence over the database when present.
|
|
707
753
|
*/
|
|
708
754
|
defaultSCIM?: Omit<SCIMProvider, "id">[];
|
|
709
755
|
/**
|
|
710
756
|
* A callback that runs before a new SCIM token is generated.
|
|
711
|
-
*
|
|
757
|
+
* Runs after the built-in role check, so it can add additional
|
|
758
|
+
* restrictions but cannot bypass the role requirement.
|
|
712
759
|
*/
|
|
713
|
-
beforeSCIMTokenGenerated?: ({
|
|
714
|
-
user,
|
|
715
|
-
member,
|
|
716
|
-
scimToken
|
|
717
|
-
}: {
|
|
760
|
+
beforeSCIMTokenGenerated?: (payload: {
|
|
718
761
|
user: User;
|
|
719
|
-
member
|
|
762
|
+
member: Member | null;
|
|
720
763
|
scimToken: string;
|
|
721
764
|
}) => Promise<void>;
|
|
722
765
|
/**
|
|
723
|
-
* A callback that runs
|
|
724
|
-
* @returns
|
|
766
|
+
* A callback that runs after a new SCIM token is generated.
|
|
725
767
|
*/
|
|
726
|
-
afterSCIMTokenGenerated?: ({
|
|
727
|
-
user,
|
|
728
|
-
member,
|
|
729
|
-
scimProvider
|
|
730
|
-
}: {
|
|
768
|
+
afterSCIMTokenGenerated?: (payload: {
|
|
731
769
|
user: User;
|
|
732
|
-
member
|
|
770
|
+
member: Member | null;
|
|
733
771
|
scimToken: string;
|
|
734
772
|
scimProvider: SCIMProvider;
|
|
735
773
|
}) => Promise<void>;
|
|
736
774
|
/**
|
|
737
|
-
*
|
|
775
|
+
* How to store the SCIM token in the database.
|
|
738
776
|
*
|
|
739
777
|
* @default "plain"
|
|
740
778
|
*/
|
|
@@ -755,13 +793,14 @@ declare module "@better-auth/core" {
|
|
|
755
793
|
}
|
|
756
794
|
declare const scim: (options?: SCIMOptions) => {
|
|
757
795
|
id: "scim";
|
|
796
|
+
version: string;
|
|
758
797
|
endpoints: {
|
|
759
|
-
generateSCIMToken: better_call0.StrictEndpoint<"/scim/generate-token", {
|
|
798
|
+
generateSCIMToken: _$better_call0.StrictEndpoint<"/scim/generate-token", {
|
|
760
799
|
method: "POST";
|
|
761
800
|
body: zod.ZodObject<{
|
|
762
801
|
providerId: zod.ZodString;
|
|
763
802
|
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
764
|
-
},
|
|
803
|
+
}, zod_v4_core0.$strip>;
|
|
765
804
|
metadata: {
|
|
766
805
|
openapi: {
|
|
767
806
|
summary: string;
|
|
@@ -786,7 +825,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
786
825
|
};
|
|
787
826
|
};
|
|
788
827
|
};
|
|
789
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
828
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
790
829
|
session: {
|
|
791
830
|
session: Record<string, any> & {
|
|
792
831
|
id: string;
|
|
@@ -812,9 +851,9 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
812
851
|
}, {
|
|
813
852
|
scimToken: string;
|
|
814
853
|
}>;
|
|
815
|
-
listSCIMProviderConnections: better_call0.StrictEndpoint<"/scim/list-provider-connections", {
|
|
854
|
+
listSCIMProviderConnections: _$better_call0.StrictEndpoint<"/scim/list-provider-connections", {
|
|
816
855
|
method: "GET";
|
|
817
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
856
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
818
857
|
session: {
|
|
819
858
|
session: Record<string, any> & {
|
|
820
859
|
id: string;
|
|
@@ -883,9 +922,9 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
883
922
|
organizationId: string | null;
|
|
884
923
|
}[];
|
|
885
924
|
}>;
|
|
886
|
-
getSCIMProviderConnection: better_call0.StrictEndpoint<"/scim/get-provider-connection", {
|
|
925
|
+
getSCIMProviderConnection: _$better_call0.StrictEndpoint<"/scim/get-provider-connection", {
|
|
887
926
|
method: "GET";
|
|
888
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
927
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
889
928
|
session: {
|
|
890
929
|
session: Record<string, any> & {
|
|
891
930
|
id: string;
|
|
@@ -910,7 +949,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
910
949
|
}>)[];
|
|
911
950
|
query: zod.ZodObject<{
|
|
912
951
|
providerId: zod.ZodString;
|
|
913
|
-
},
|
|
952
|
+
}, zod_v4_core0.$strip>;
|
|
914
953
|
metadata: {
|
|
915
954
|
openapi: {
|
|
916
955
|
operationId: string;
|
|
@@ -953,9 +992,9 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
953
992
|
providerId: string;
|
|
954
993
|
organizationId: string | null;
|
|
955
994
|
}>;
|
|
956
|
-
deleteSCIMProviderConnection: better_call0.StrictEndpoint<"/scim/delete-provider-connection", {
|
|
995
|
+
deleteSCIMProviderConnection: _$better_call0.StrictEndpoint<"/scim/delete-provider-connection", {
|
|
957
996
|
method: "POST";
|
|
958
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
997
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
959
998
|
session: {
|
|
960
999
|
session: Record<string, any> & {
|
|
961
1000
|
id: string;
|
|
@@ -980,7 +1019,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
980
1019
|
}>)[];
|
|
981
1020
|
body: zod.ZodObject<{
|
|
982
1021
|
providerId: zod.ZodString;
|
|
983
|
-
},
|
|
1022
|
+
}, zod_v4_core0.$strip>;
|
|
984
1023
|
metadata: {
|
|
985
1024
|
openapi: {
|
|
986
1025
|
operationId: string;
|
|
@@ -1014,7 +1053,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1014
1053
|
}, {
|
|
1015
1054
|
success: boolean;
|
|
1016
1055
|
}>;
|
|
1017
|
-
getSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1056
|
+
getSCIMUser: _$better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1018
1057
|
method: "GET";
|
|
1019
1058
|
metadata: {
|
|
1020
1059
|
allowedMediaTypes: string[];
|
|
@@ -1265,7 +1304,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1265
1304
|
};
|
|
1266
1305
|
scope: "server";
|
|
1267
1306
|
};
|
|
1268
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1307
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1269
1308
|
authSCIMToken: string;
|
|
1270
1309
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
1271
1310
|
}>)[];
|
|
@@ -1290,7 +1329,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1290
1329
|
}[];
|
|
1291
1330
|
schemas: string[];
|
|
1292
1331
|
}>;
|
|
1293
|
-
createSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users", {
|
|
1332
|
+
createSCIMUser: _$better_call0.StrictEndpoint<"/scim/v2/Users", {
|
|
1294
1333
|
method: "POST";
|
|
1295
1334
|
body: zod.ZodObject<{
|
|
1296
1335
|
userName: zod.ZodString;
|
|
@@ -1299,12 +1338,12 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1299
1338
|
formatted: zod.ZodOptional<zod.ZodString>;
|
|
1300
1339
|
givenName: zod.ZodOptional<zod.ZodString>;
|
|
1301
1340
|
familyName: zod.ZodOptional<zod.ZodString>;
|
|
1302
|
-
},
|
|
1341
|
+
}, zod_v4_core0.$strip>>;
|
|
1303
1342
|
emails: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
1304
1343
|
value: zod.ZodEmail;
|
|
1305
1344
|
primary: zod.ZodOptional<zod.ZodBoolean>;
|
|
1306
|
-
},
|
|
1307
|
-
},
|
|
1345
|
+
}, zod_v4_core0.$strip>>>;
|
|
1346
|
+
}, zod_v4_core0.$strip>;
|
|
1308
1347
|
metadata: {
|
|
1309
1348
|
allowedMediaTypes: string[];
|
|
1310
1349
|
openapi: {
|
|
@@ -1554,7 +1593,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1554
1593
|
};
|
|
1555
1594
|
scope: "server";
|
|
1556
1595
|
};
|
|
1557
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1596
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1558
1597
|
authSCIMToken: string;
|
|
1559
1598
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
1560
1599
|
}>)[];
|
|
@@ -1579,7 +1618,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1579
1618
|
}[];
|
|
1580
1619
|
schemas: string[];
|
|
1581
1620
|
}>;
|
|
1582
|
-
patchSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1621
|
+
patchSCIMUser: _$better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1583
1622
|
method: "PATCH";
|
|
1584
1623
|
body: zod.ZodObject<{
|
|
1585
1624
|
schemas: zod.ZodArray<zod.ZodString>;
|
|
@@ -1591,8 +1630,8 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1591
1630
|
}>>;
|
|
1592
1631
|
path: zod.ZodOptional<zod.ZodString>;
|
|
1593
1632
|
value: zod.ZodAny;
|
|
1594
|
-
},
|
|
1595
|
-
},
|
|
1633
|
+
}, zod_v4_core0.$strip>>;
|
|
1634
|
+
}, zod_v4_core0.$strip>;
|
|
1596
1635
|
metadata: {
|
|
1597
1636
|
allowedMediaTypes: string[];
|
|
1598
1637
|
openapi: {
|
|
@@ -1768,12 +1807,12 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1768
1807
|
};
|
|
1769
1808
|
scope: "server";
|
|
1770
1809
|
};
|
|
1771
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1810
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1772
1811
|
authSCIMToken: string;
|
|
1773
1812
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
1774
1813
|
}>)[];
|
|
1775
1814
|
}, void>;
|
|
1776
|
-
deleteSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1815
|
+
deleteSCIMUser: _$better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1777
1816
|
method: "DELETE";
|
|
1778
1817
|
metadata: {
|
|
1779
1818
|
allowedMediaTypes: string[];
|
|
@@ -1950,12 +1989,12 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1950
1989
|
};
|
|
1951
1990
|
scope: "server";
|
|
1952
1991
|
};
|
|
1953
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1992
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1954
1993
|
authSCIMToken: string;
|
|
1955
1994
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
1956
1995
|
}>)[];
|
|
1957
1996
|
}, void>;
|
|
1958
|
-
updateSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1997
|
+
updateSCIMUser: _$better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1959
1998
|
method: "PUT";
|
|
1960
1999
|
body: zod.ZodObject<{
|
|
1961
2000
|
userName: zod.ZodString;
|
|
@@ -1964,12 +2003,12 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1964
2003
|
formatted: zod.ZodOptional<zod.ZodString>;
|
|
1965
2004
|
givenName: zod.ZodOptional<zod.ZodString>;
|
|
1966
2005
|
familyName: zod.ZodOptional<zod.ZodString>;
|
|
1967
|
-
},
|
|
2006
|
+
}, zod_v4_core0.$strip>>;
|
|
1968
2007
|
emails: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
1969
2008
|
value: zod.ZodEmail;
|
|
1970
2009
|
primary: zod.ZodOptional<zod.ZodBoolean>;
|
|
1971
|
-
},
|
|
1972
|
-
},
|
|
2010
|
+
}, zod_v4_core0.$strip>>>;
|
|
2011
|
+
}, zod_v4_core0.$strip>;
|
|
1973
2012
|
metadata: {
|
|
1974
2013
|
allowedMediaTypes: string[];
|
|
1975
2014
|
openapi: {
|
|
@@ -2219,7 +2258,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2219
2258
|
};
|
|
2220
2259
|
scope: "server";
|
|
2221
2260
|
};
|
|
2222
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2261
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
2223
2262
|
authSCIMToken: string;
|
|
2224
2263
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
2225
2264
|
}>)[];
|
|
@@ -2244,11 +2283,11 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2244
2283
|
}[];
|
|
2245
2284
|
schemas: string[];
|
|
2246
2285
|
}>;
|
|
2247
|
-
listSCIMUsers: better_call0.StrictEndpoint<"/scim/v2/Users", {
|
|
2286
|
+
listSCIMUsers: _$better_call0.StrictEndpoint<"/scim/v2/Users", {
|
|
2248
2287
|
method: "GET";
|
|
2249
2288
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
2250
2289
|
filter: zod.ZodOptional<zod.ZodString>;
|
|
2251
|
-
},
|
|
2290
|
+
}, zod_v4_core0.$strip>>;
|
|
2252
2291
|
metadata: {
|
|
2253
2292
|
allowedMediaTypes: string[];
|
|
2254
2293
|
openapi: {
|
|
@@ -2515,7 +2554,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2515
2554
|
};
|
|
2516
2555
|
scope: "server";
|
|
2517
2556
|
};
|
|
2518
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2557
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
2519
2558
|
authSCIMToken: string;
|
|
2520
2559
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
2521
2560
|
}>)[];
|
|
@@ -2552,7 +2591,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2552
2591
|
schemas: string[];
|
|
2553
2592
|
}[];
|
|
2554
2593
|
}>;
|
|
2555
|
-
getSCIMServiceProviderConfig: better_call0.StrictEndpoint<"/scim/v2/ServiceProviderConfig", {
|
|
2594
|
+
getSCIMServiceProviderConfig: _$better_call0.StrictEndpoint<"/scim/v2/ServiceProviderConfig", {
|
|
2556
2595
|
method: "GET";
|
|
2557
2596
|
metadata: {
|
|
2558
2597
|
allowedMediaTypes: string[];
|
|
@@ -2854,7 +2893,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2854
2893
|
resourceType: string;
|
|
2855
2894
|
};
|
|
2856
2895
|
}>;
|
|
2857
|
-
getSCIMSchemas: better_call0.StrictEndpoint<"/scim/v2/Schemas", {
|
|
2896
|
+
getSCIMSchemas: _$better_call0.StrictEndpoint<"/scim/v2/Schemas", {
|
|
2858
2897
|
method: "GET";
|
|
2859
2898
|
metadata: {
|
|
2860
2899
|
allowedMediaTypes: string[];
|
|
@@ -3231,7 +3270,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
3231
3270
|
})[];
|
|
3232
3271
|
}[];
|
|
3233
3272
|
}>;
|
|
3234
|
-
getSCIMSchema: better_call0.StrictEndpoint<"/scim/v2/Schemas/:schemaId", {
|
|
3273
|
+
getSCIMSchema: _$better_call0.StrictEndpoint<"/scim/v2/Schemas/:schemaId", {
|
|
3235
3274
|
method: "GET";
|
|
3236
3275
|
metadata: {
|
|
3237
3276
|
allowedMediaTypes: string[];
|
|
@@ -3599,7 +3638,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
3599
3638
|
caseExact?: undefined;
|
|
3600
3639
|
})[];
|
|
3601
3640
|
}>;
|
|
3602
|
-
getSCIMResourceTypes: better_call0.StrictEndpoint<"/scim/v2/ResourceTypes", {
|
|
3641
|
+
getSCIMResourceTypes: _$better_call0.StrictEndpoint<"/scim/v2/ResourceTypes", {
|
|
3603
3642
|
method: "GET";
|
|
3604
3643
|
metadata: {
|
|
3605
3644
|
allowedMediaTypes: string[];
|
|
@@ -3852,7 +3891,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
3852
3891
|
schema: string;
|
|
3853
3892
|
}[];
|
|
3854
3893
|
}>;
|
|
3855
|
-
getSCIMResourceType: better_call0.StrictEndpoint<"/scim/v2/ResourceTypes/:resourceTypeId", {
|
|
3894
|
+
getSCIMResourceType: _$better_call0.StrictEndpoint<"/scim/v2/ResourceTypes/:resourceTypeId", {
|
|
3856
3895
|
method: "GET";
|
|
3857
3896
|
metadata: {
|
|
3858
3897
|
allowedMediaTypes: string[];
|
|
@@ -4117,29 +4156,29 @@ interface DirectorySyncConnection {
|
|
|
4117
4156
|
providerId: string;
|
|
4118
4157
|
scimEndpoint: string;
|
|
4119
4158
|
}
|
|
4120
|
-
interface
|
|
4159
|
+
interface DashDirectoryCreateResponse {
|
|
4160
|
+
organizationId: string;
|
|
4161
|
+
providerId: string;
|
|
4162
|
+
scimEndpoint: string;
|
|
4163
|
+
scimToken: string;
|
|
4164
|
+
}
|
|
4165
|
+
interface DashDirectoryItem {
|
|
4166
|
+
id?: string;
|
|
4167
|
+
providerId: string;
|
|
4168
|
+
organizationId: string;
|
|
4169
|
+
scimEndpoint: string;
|
|
4170
|
+
}
|
|
4171
|
+
interface DashDirectoryDeleteResponse {
|
|
4172
|
+
success: boolean;
|
|
4173
|
+
}
|
|
4174
|
+
interface DashDirectoryRegenerateTokenResponse {
|
|
4175
|
+
success: boolean;
|
|
4121
4176
|
scimToken: string;
|
|
4177
|
+
scimEndpoint: string;
|
|
4122
4178
|
}
|
|
4123
4179
|
//#endregion
|
|
4124
|
-
//#region src/
|
|
4125
|
-
|
|
4126
|
-
* All available event types that can be returned in audit logs
|
|
4127
|
-
*/
|
|
4128
|
-
declare const USER_EVENT_TYPES: {
|
|
4129
|
-
readonly ORGANIZATION_CREATED: "organization_created";
|
|
4130
|
-
readonly ORGANIZATION_UPDATED: "organization_updated";
|
|
4131
|
-
readonly ORGANIZATION_MEMBER_ADDED: "organization_member_added";
|
|
4132
|
-
readonly ORGANIZATION_MEMBER_REMOVED: "organization_member_removed";
|
|
4133
|
-
readonly ORGANIZATION_MEMBER_ROLE_UPDATED: "organization_member_role_updated";
|
|
4134
|
-
readonly ORGANIZATION_MEMBER_INVITED: "organization_member_invited";
|
|
4135
|
-
readonly ORGANIZATION_MEMBER_INVITE_CANCELED: "organization_member_invite_canceled";
|
|
4136
|
-
readonly ORGANIZATION_MEMBER_INVITE_ACCEPTED: "organization_member_invite_accepted";
|
|
4137
|
-
readonly ORGANIZATION_MEMBER_INVITE_REJECTED: "organization_member_invite_rejected";
|
|
4138
|
-
readonly ORGANIZATION_TEAM_CREATED: "organization_team_created";
|
|
4139
|
-
readonly ORGANIZATION_TEAM_UPDATED: "organization_team_updated";
|
|
4140
|
-
readonly ORGANIZATION_TEAM_DELETED: "organization_team_deleted";
|
|
4141
|
-
readonly ORGANIZATION_TEAM_MEMBER_ADDED: "organization_team_member_added";
|
|
4142
|
-
readonly ORGANIZATION_TEAM_MEMBER_REMOVED: "organization_team_member_removed";
|
|
4180
|
+
//#region src/events/constants.d.ts
|
|
4181
|
+
declare const EVENT_TYPES: {
|
|
4143
4182
|
readonly USER_CREATED: "user_created";
|
|
4144
4183
|
readonly USER_SIGNED_IN: "user_signed_in";
|
|
4145
4184
|
readonly USER_SIGNED_OUT: "user_signed_out";
|
|
@@ -4166,10 +4205,67 @@ declare const USER_EVENT_TYPES: {
|
|
|
4166
4205
|
readonly USER_IMPERSONATED: "user_impersonated";
|
|
4167
4206
|
readonly USER_IMPERSONATED_STOPPED: "user_impersonated_stopped";
|
|
4168
4207
|
};
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4208
|
+
declare const ORGANIZATION_EVENT_TYPES: {
|
|
4209
|
+
readonly ORGANIZATION_CREATED: "organization_created";
|
|
4210
|
+
readonly ORGANIZATION_UPDATED: "organization_updated";
|
|
4211
|
+
readonly ORGANIZATION_MEMBER_ADDED: "organization_member_added";
|
|
4212
|
+
readonly ORGANIZATION_MEMBER_REMOVED: "organization_member_removed";
|
|
4213
|
+
readonly ORGANIZATION_MEMBER_ROLE_UPDATED: "organization_member_role_updated";
|
|
4214
|
+
readonly ORGANIZATION_MEMBER_INVITED: "organization_member_invited";
|
|
4215
|
+
readonly ORGANIZATION_MEMBER_INVITE_CANCELED: "organization_member_invite_canceled";
|
|
4216
|
+
readonly ORGANIZATION_MEMBER_INVITE_ACCEPTED: "organization_member_invite_accepted";
|
|
4217
|
+
readonly ORGANIZATION_MEMBER_INVITE_REJECTED: "organization_member_invite_rejected";
|
|
4218
|
+
readonly ORGANIZATION_TEAM_CREATED: "organization_team_created";
|
|
4219
|
+
readonly ORGANIZATION_TEAM_UPDATED: "organization_team_updated";
|
|
4220
|
+
readonly ORGANIZATION_TEAM_DELETED: "organization_team_deleted";
|
|
4221
|
+
readonly ORGANIZATION_TEAM_MEMBER_ADDED: "organization_team_member_added";
|
|
4222
|
+
readonly ORGANIZATION_TEAM_MEMBER_REMOVED: "organization_team_member_removed";
|
|
4223
|
+
};
|
|
4224
|
+
/** All audit event type string constants (user + organization). */
|
|
4225
|
+
declare const USER_EVENT_TYPES: {
|
|
4226
|
+
readonly ORGANIZATION_CREATED: "organization_created";
|
|
4227
|
+
readonly ORGANIZATION_UPDATED: "organization_updated";
|
|
4228
|
+
readonly ORGANIZATION_MEMBER_ADDED: "organization_member_added";
|
|
4229
|
+
readonly ORGANIZATION_MEMBER_REMOVED: "organization_member_removed";
|
|
4230
|
+
readonly ORGANIZATION_MEMBER_ROLE_UPDATED: "organization_member_role_updated";
|
|
4231
|
+
readonly ORGANIZATION_MEMBER_INVITED: "organization_member_invited";
|
|
4232
|
+
readonly ORGANIZATION_MEMBER_INVITE_CANCELED: "organization_member_invite_canceled";
|
|
4233
|
+
readonly ORGANIZATION_MEMBER_INVITE_ACCEPTED: "organization_member_invite_accepted";
|
|
4234
|
+
readonly ORGANIZATION_MEMBER_INVITE_REJECTED: "organization_member_invite_rejected";
|
|
4235
|
+
readonly ORGANIZATION_TEAM_CREATED: "organization_team_created";
|
|
4236
|
+
readonly ORGANIZATION_TEAM_UPDATED: "organization_team_updated";
|
|
4237
|
+
readonly ORGANIZATION_TEAM_DELETED: "organization_team_deleted";
|
|
4238
|
+
readonly ORGANIZATION_TEAM_MEMBER_ADDED: "organization_team_member_added";
|
|
4239
|
+
readonly ORGANIZATION_TEAM_MEMBER_REMOVED: "organization_team_member_removed";
|
|
4240
|
+
readonly USER_CREATED: "user_created";
|
|
4241
|
+
readonly USER_SIGNED_IN: "user_signed_in";
|
|
4242
|
+
readonly USER_SIGNED_OUT: "user_signed_out";
|
|
4243
|
+
readonly USER_SIGN_IN_FAILED: "user_sign_in_failed";
|
|
4244
|
+
readonly PASSWORD_RESET_REQUESTED: "password_reset_requested";
|
|
4245
|
+
readonly PASSWORD_RESET_COMPLETED: "password_reset_completed";
|
|
4246
|
+
readonly PASSWORD_CHANGED: "password_changed";
|
|
4247
|
+
readonly EMAIL_VERIFICATION_SENT: "email_verification_sent";
|
|
4248
|
+
readonly EMAIL_VERIFIED: "email_verified";
|
|
4249
|
+
readonly EMAIL_CHANGED: "email_changed";
|
|
4250
|
+
readonly PROFILE_UPDATED: "profile_updated";
|
|
4251
|
+
readonly PROFILE_IMAGE_UPDATED: "profile_image_updated";
|
|
4252
|
+
readonly SESSION_CREATED: "session_created";
|
|
4253
|
+
readonly SESSION_REVOKED: "session_revoked";
|
|
4254
|
+
readonly ALL_SESSIONS_REVOKED: "all_sessions_revoked";
|
|
4255
|
+
readonly TWO_FACTOR_ENABLED: "two_factor_enabled";
|
|
4256
|
+
readonly TWO_FACTOR_DISABLED: "two_factor_disabled";
|
|
4257
|
+
readonly TWO_FACTOR_VERIFIED: "two_factor_verified";
|
|
4258
|
+
readonly ACCOUNT_LINKED: "account_linked";
|
|
4259
|
+
readonly ACCOUNT_UNLINKED: "account_unlinked";
|
|
4260
|
+
readonly USER_BANNED: "user_banned";
|
|
4261
|
+
readonly USER_UNBANNED: "user_unbanned";
|
|
4262
|
+
readonly USER_DELETED: "user_deleted";
|
|
4263
|
+
readonly USER_IMPERSONATED: "user_impersonated";
|
|
4264
|
+
readonly USER_IMPERSONATED_STOPPED: "user_impersonated_stopped";
|
|
4265
|
+
};
|
|
4266
|
+
//#endregion
|
|
4267
|
+
//#region src/routes/events/types.d.ts
|
|
4268
|
+
/**
|
|
4173
4269
|
* A single audit log event for the user
|
|
4174
4270
|
*/
|
|
4175
4271
|
interface UserEvent {
|
|
@@ -4203,6 +4299,288 @@ interface UserEventsResponse {
|
|
|
4203
4299
|
/** Number of events skipped */
|
|
4204
4300
|
offset: number;
|
|
4205
4301
|
}
|
|
4302
|
+
/**
|
|
4303
|
+
* Response fromthe user event types endpoint
|
|
4304
|
+
*/
|
|
4305
|
+
interface EventTypesResponse {
|
|
4306
|
+
user: typeof EVENT_TYPES;
|
|
4307
|
+
organization: typeof ORGANIZATION_EVENT_TYPES;
|
|
4308
|
+
all: typeof USER_EVENT_TYPES;
|
|
4309
|
+
}
|
|
4310
|
+
//#endregion
|
|
4311
|
+
//#region src/routes/events/index.d.ts
|
|
4312
|
+
type UserEventType = (typeof USER_EVENT_TYPES)[keyof typeof USER_EVENT_TYPES];
|
|
4313
|
+
/** Location information associated with an event */
|
|
4314
|
+
type EventLocation = LocationData;
|
|
4315
|
+
//#endregion
|
|
4316
|
+
//#region src/routes/execute-adapter/types.d.ts
|
|
4317
|
+
interface DashExecuteAdapterCountResponse {
|
|
4318
|
+
count: number;
|
|
4319
|
+
}
|
|
4320
|
+
interface DashExecuteAdapterFindManyResponse<T = Record<string, unknown>> {
|
|
4321
|
+
result: T[];
|
|
4322
|
+
}
|
|
4323
|
+
interface DashExecuteAdapterFindOneResponse<T = Record<string, unknown>> {
|
|
4324
|
+
result: T | null;
|
|
4325
|
+
}
|
|
4326
|
+
interface DashExecuteAdapterMutationResponse<T = Record<string, unknown>> {
|
|
4327
|
+
result: T;
|
|
4328
|
+
}
|
|
4329
|
+
type DashExecuteAdapterResponse = DashExecuteAdapterFindOneResponse<unknown> | DashExecuteAdapterFindManyResponse<unknown> | DashExecuteAdapterMutationResponse<unknown> | DashExecuteAdapterCountResponse;
|
|
4330
|
+
//#endregion
|
|
4331
|
+
//#region src/routes/invitations/types.d.ts
|
|
4332
|
+
interface DashCompleteInvitationResponse {
|
|
4333
|
+
success?: boolean;
|
|
4334
|
+
redirectUrl?: string;
|
|
4335
|
+
message?: string;
|
|
4336
|
+
error?: string;
|
|
4337
|
+
user?: unknown;
|
|
4338
|
+
}
|
|
4339
|
+
//#endregion
|
|
4340
|
+
//#region src/routes/organizations/types.d.ts
|
|
4341
|
+
type DashOrganizationUpdateResponse = Organization;
|
|
4342
|
+
type DashOrganizationMemberUser = Pick<User, "id" | "name" | "email" | "image">;
|
|
4343
|
+
type DashOrganizationDetailResponse = Organization & {
|
|
4344
|
+
memberCount: number;
|
|
4345
|
+
members?: DashOrganizationMemberUser[];
|
|
4346
|
+
};
|
|
4347
|
+
interface DashOrganizationListResponse {
|
|
4348
|
+
organizations: DashOrganizationDetailResponse[];
|
|
4349
|
+
total: number;
|
|
4350
|
+
offset: number;
|
|
4351
|
+
limit: number;
|
|
4352
|
+
}
|
|
4353
|
+
type DashOrganizationMember = Member & {
|
|
4354
|
+
user?: DashOrganizationMemberUser | null;
|
|
4355
|
+
};
|
|
4356
|
+
type DashOrganizationMemberListItem = Member & {
|
|
4357
|
+
user: DashOrganizationMemberUser;
|
|
4358
|
+
invitedBy?: DashOrganizationMemberUser | null;
|
|
4359
|
+
};
|
|
4360
|
+
type DashOrganizationMemberListResponse = DashOrganizationMemberListItem[];
|
|
4361
|
+
interface DashCreateOrganizationBody {
|
|
4362
|
+
name: string;
|
|
4363
|
+
slug: string;
|
|
4364
|
+
logo?: string;
|
|
4365
|
+
defaultTeamName?: string;
|
|
4366
|
+
}
|
|
4367
|
+
interface DashCreateOrganizationResponse extends Organization {
|
|
4368
|
+
members: DashOrganizationMember[];
|
|
4369
|
+
}
|
|
4370
|
+
type DashOrganizationInvitationItem = Invitation & {
|
|
4371
|
+
user: DashOrganizationMemberUser | null;
|
|
4372
|
+
};
|
|
4373
|
+
type DashOrganizationInvitationListResponse = DashOrganizationInvitationItem[];
|
|
4374
|
+
type DashInviteMemberResponse = Invitation;
|
|
4375
|
+
interface DashOrganizationOptionsResponse {
|
|
4376
|
+
teamsEnabled: boolean;
|
|
4377
|
+
}
|
|
4378
|
+
type DashExportOrganizationsResponse = string;
|
|
4379
|
+
type DashOrganizationAddMemberResponse = Member;
|
|
4380
|
+
type DashOrganizationUpdateMemberRoleResponse = Pick<Member, "id" | "role" | "userId">;
|
|
4381
|
+
interface DashCheckUserByEmailResponse {
|
|
4382
|
+
exists: boolean;
|
|
4383
|
+
user: DashOrganizationMemberUser | null;
|
|
4384
|
+
isAlreadyMember: boolean;
|
|
4385
|
+
}
|
|
4386
|
+
type DashOrganizationInvitationStatusItem = Pick<Invitation, "id" | "status">;
|
|
4387
|
+
interface DashOrganizationDeleteManyResponse {
|
|
4388
|
+
success: boolean;
|
|
4389
|
+
deletedOrgIds: string[];
|
|
4390
|
+
skippedOrgIds: string[];
|
|
4391
|
+
}
|
|
4392
|
+
type DashTeam = Pick<Team, "id" | "name">;
|
|
4393
|
+
type DashOrganizationTeamItem = Team & {
|
|
4394
|
+
memberCount: number;
|
|
4395
|
+
};
|
|
4396
|
+
type DashOrganizationTeamListResponse = DashOrganizationTeamItem[];
|
|
4397
|
+
type DashCreateTeamResponse = Team;
|
|
4398
|
+
type DashUpdateTeamResponse = DashCreateTeamResponse;
|
|
4399
|
+
type DashTeamMember = TeamMember;
|
|
4400
|
+
type DashAddTeamMemberResponse = DashTeamMember;
|
|
4401
|
+
type DashTeamMemberListResponse = Array<TeamMember & {
|
|
4402
|
+
user: DashOrganizationMemberUser | null;
|
|
4403
|
+
}>;
|
|
4404
|
+
//#endregion
|
|
4405
|
+
//#region src/routes/sessions/types.d.ts
|
|
4406
|
+
interface DashSessionRevokeManyResponse {
|
|
4407
|
+
success: boolean;
|
|
4408
|
+
revokedCount: number;
|
|
4409
|
+
}
|
|
4410
|
+
//#endregion
|
|
4411
|
+
//#region src/routes/sso/types.d.ts
|
|
4412
|
+
/** Minimal provider fields returned on create/update and nested in responses. */
|
|
4413
|
+
interface DashSsoProviderSummary {
|
|
4414
|
+
id: string;
|
|
4415
|
+
providerId: string;
|
|
4416
|
+
domain: string;
|
|
4417
|
+
}
|
|
4418
|
+
/** Full provider row from list and related endpoints. */
|
|
4419
|
+
interface DashSsoProviderItem extends DashSsoProviderSummary {
|
|
4420
|
+
organizationId: string;
|
|
4421
|
+
issuer?: string;
|
|
4422
|
+
userId?: string | null;
|
|
4423
|
+
createdAt?: string | Date;
|
|
4424
|
+
updatedAt?: string | Date;
|
|
4425
|
+
oidcConfig?: unknown;
|
|
4426
|
+
samlConfig?: unknown;
|
|
4427
|
+
domainVerified?: boolean;
|
|
4428
|
+
domainVerificationToken?: string | null;
|
|
4429
|
+
}
|
|
4430
|
+
interface DashSsoCreateProviderResponse {
|
|
4431
|
+
success: boolean;
|
|
4432
|
+
provider: DashSsoProviderSummary;
|
|
4433
|
+
domainVerification?: {
|
|
4434
|
+
txtRecordName: string;
|
|
4435
|
+
verificationToken: string | null;
|
|
4436
|
+
};
|
|
4437
|
+
}
|
|
4438
|
+
interface DashSsoDeleteResponse {
|
|
4439
|
+
success: boolean;
|
|
4440
|
+
message?: string;
|
|
4441
|
+
}
|
|
4442
|
+
interface DashSsoUpdateProviderResponse {
|
|
4443
|
+
success: boolean;
|
|
4444
|
+
provider: DashSsoProviderSummary;
|
|
4445
|
+
}
|
|
4446
|
+
interface DashSsoVerificationTokenResponse {
|
|
4447
|
+
success: boolean;
|
|
4448
|
+
providerId: string;
|
|
4449
|
+
domain: string;
|
|
4450
|
+
verificationToken: string;
|
|
4451
|
+
txtRecordName: string;
|
|
4452
|
+
existingToken?: boolean;
|
|
4453
|
+
}
|
|
4454
|
+
interface DashSsoMarkDomainVerifiedResponse {
|
|
4455
|
+
success: boolean;
|
|
4456
|
+
domainVerified: boolean;
|
|
4457
|
+
message: string;
|
|
4458
|
+
}
|
|
4459
|
+
interface DashSsoVerifyDomainResponse {
|
|
4460
|
+
verified: boolean;
|
|
4461
|
+
message?: string;
|
|
4462
|
+
}
|
|
4463
|
+
//#endregion
|
|
4464
|
+
//#region src/routes/two-factor/types.d.ts
|
|
4465
|
+
interface DashTwoFactorEnableResponse {
|
|
4466
|
+
success: boolean;
|
|
4467
|
+
totpURI: string;
|
|
4468
|
+
secret: string;
|
|
4469
|
+
backupCodes: string[];
|
|
4470
|
+
}
|
|
4471
|
+
interface DashTwoFactorTotpViewResponse {
|
|
4472
|
+
totpURI: string;
|
|
4473
|
+
secret: string;
|
|
4474
|
+
}
|
|
4475
|
+
interface DashTwoFactorBackupCodesResponse {
|
|
4476
|
+
backupCodes: string[];
|
|
4477
|
+
}
|
|
4478
|
+
//#endregion
|
|
4479
|
+
//#region src/routes/users/types.d.ts
|
|
4480
|
+
type DashUser = User & {
|
|
4481
|
+
banned?: boolean;
|
|
4482
|
+
banReason?: string | null;
|
|
4483
|
+
banExpires?: number | null;
|
|
4484
|
+
};
|
|
4485
|
+
interface DashUserListResponse {
|
|
4486
|
+
users: DashUser[];
|
|
4487
|
+
total: number;
|
|
4488
|
+
offset: number;
|
|
4489
|
+
limit: number;
|
|
4490
|
+
onlineUsers: number;
|
|
4491
|
+
activityTrackingEnabled: boolean;
|
|
4492
|
+
}
|
|
4493
|
+
type DashUserDetailsResponse = DashUser & {
|
|
4494
|
+
account?: Account[];
|
|
4495
|
+
session?: Session[];
|
|
4496
|
+
lastActiveAt?: string | Date | null;
|
|
4497
|
+
city?: string | null;
|
|
4498
|
+
country?: string | null;
|
|
4499
|
+
countryCode?: string | null;
|
|
4500
|
+
};
|
|
4501
|
+
type DashUserOrganization = Pick<Organization, "id" | "name" | "slug" | "logo" | "createdAt"> & {
|
|
4502
|
+
role: string;
|
|
4503
|
+
teams: Team[];
|
|
4504
|
+
};
|
|
4505
|
+
interface DashUserOrganizationsResponse {
|
|
4506
|
+
organizations: DashUserOrganization[];
|
|
4507
|
+
}
|
|
4508
|
+
type DashCreateUserResponse = DashUser;
|
|
4509
|
+
type DashUpdateUserResponse = DashUser;
|
|
4510
|
+
interface DashUserStatsResponse {
|
|
4511
|
+
daily: {
|
|
4512
|
+
signUps: number;
|
|
4513
|
+
percentage: number;
|
|
4514
|
+
};
|
|
4515
|
+
weekly: {
|
|
4516
|
+
signUps: number;
|
|
4517
|
+
percentage: number;
|
|
4518
|
+
};
|
|
4519
|
+
monthly: {
|
|
4520
|
+
signUps: number;
|
|
4521
|
+
percentage: number;
|
|
4522
|
+
};
|
|
4523
|
+
total: number;
|
|
4524
|
+
activeUsers: {
|
|
4525
|
+
daily: {
|
|
4526
|
+
active: number;
|
|
4527
|
+
percentage: number;
|
|
4528
|
+
};
|
|
4529
|
+
weekly: {
|
|
4530
|
+
active: number;
|
|
4531
|
+
percentage: number;
|
|
4532
|
+
};
|
|
4533
|
+
monthly: {
|
|
4534
|
+
active: number;
|
|
4535
|
+
percentage: number;
|
|
4536
|
+
};
|
|
4537
|
+
};
|
|
4538
|
+
}
|
|
4539
|
+
interface DashUserGraphPoint {
|
|
4540
|
+
date: string | Date;
|
|
4541
|
+
label: string;
|
|
4542
|
+
totalUsers: number;
|
|
4543
|
+
newUsers: number;
|
|
4544
|
+
activeUsers: number;
|
|
4545
|
+
}
|
|
4546
|
+
interface DashUserGraphDataResponse {
|
|
4547
|
+
period: string;
|
|
4548
|
+
data: DashUserGraphPoint[];
|
|
4549
|
+
}
|
|
4550
|
+
interface DashUserRetention {
|
|
4551
|
+
n: number;
|
|
4552
|
+
label: string;
|
|
4553
|
+
cohortStart: string;
|
|
4554
|
+
cohortEnd: string;
|
|
4555
|
+
activeStart: string;
|
|
4556
|
+
activeEnd: string;
|
|
4557
|
+
cohortSize: number;
|
|
4558
|
+
retained: number;
|
|
4559
|
+
retentionRate: number;
|
|
4560
|
+
}
|
|
4561
|
+
interface DashUserRetentionDataResponse {
|
|
4562
|
+
period: string;
|
|
4563
|
+
data: DashUserRetention[];
|
|
4564
|
+
}
|
|
4565
|
+
interface DashBanManyResponse {
|
|
4566
|
+
success: boolean;
|
|
4567
|
+
bannedUserIds: string[];
|
|
4568
|
+
skippedUserIds: string[];
|
|
4569
|
+
}
|
|
4570
|
+
interface DashDeleteManyUsersResponse {
|
|
4571
|
+
success: boolean;
|
|
4572
|
+
deletedUserIds: string[];
|
|
4573
|
+
skippedUserIds: string[];
|
|
4574
|
+
}
|
|
4575
|
+
interface DashSendManyVerificationEmailsResponse {
|
|
4576
|
+
success: boolean;
|
|
4577
|
+
sentEmailUserIds: string[];
|
|
4578
|
+
skippedEmailUserIds: string[];
|
|
4579
|
+
}
|
|
4580
|
+
interface DashCheckUserExistsResponse {
|
|
4581
|
+
exists: boolean;
|
|
4582
|
+
userId: string | null;
|
|
4583
|
+
}
|
|
4206
4584
|
//#endregion
|
|
4207
4585
|
//#region src/validation/email.d.ts
|
|
4208
4586
|
/**
|
|
@@ -4213,14 +4591,16 @@ interface UserEventsResponse {
|
|
|
4213
4591
|
* - Normalize googlemail.com to gmail.com
|
|
4214
4592
|
*
|
|
4215
4593
|
* @param email - Raw email to normalize
|
|
4216
|
-
* @param context - Auth context with getPlugin (for sentinel policy)
|
|
4594
|
+
* @param context - Auth context with getPlugin (for sentinel policy)
|
|
4217
4595
|
*/
|
|
4218
4596
|
declare function normalizeEmail(email: string, context: AuthContext): string;
|
|
4219
4597
|
//#endregion
|
|
4220
4598
|
//#region src/index.d.ts
|
|
4221
4599
|
declare const dash: <O extends DashOptions>(options?: O) => {
|
|
4222
4600
|
id: "dash";
|
|
4223
|
-
|
|
4601
|
+
options: DashOptionsInternal;
|
|
4602
|
+
version: string;
|
|
4603
|
+
init(ctx: _$better_auth0.AuthContext): {
|
|
4224
4604
|
options: {
|
|
4225
4605
|
databaseHooks: {
|
|
4226
4606
|
user: {
|
|
@@ -4233,7 +4613,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4233
4613
|
emailVerified: boolean;
|
|
4234
4614
|
name: string;
|
|
4235
4615
|
image?: string | null | undefined;
|
|
4236
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4616
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4237
4617
|
};
|
|
4238
4618
|
update: {
|
|
4239
4619
|
after(user: {
|
|
@@ -4244,7 +4624,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4244
4624
|
emailVerified: boolean;
|
|
4245
4625
|
name: string;
|
|
4246
4626
|
image?: string | null | undefined;
|
|
4247
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4627
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4248
4628
|
};
|
|
4249
4629
|
delete: {
|
|
4250
4630
|
after(user: {
|
|
@@ -4255,7 +4635,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4255
4635
|
emailVerified: boolean;
|
|
4256
4636
|
name: string;
|
|
4257
4637
|
image?: string | null | undefined;
|
|
4258
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4638
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4259
4639
|
};
|
|
4260
4640
|
};
|
|
4261
4641
|
session: {
|
|
@@ -4269,7 +4649,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4269
4649
|
token: string;
|
|
4270
4650
|
ipAddress?: string | null | undefined;
|
|
4271
4651
|
userAgent?: string | null | undefined;
|
|
4272
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<{
|
|
4652
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<{
|
|
4273
4653
|
data: {
|
|
4274
4654
|
loginMethod: string | null | undefined;
|
|
4275
4655
|
};
|
|
@@ -4283,7 +4663,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4283
4663
|
token: string;
|
|
4284
4664
|
ipAddress?: string | null | undefined;
|
|
4285
4665
|
userAgent?: string | null | undefined;
|
|
4286
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4666
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4287
4667
|
};
|
|
4288
4668
|
delete: {
|
|
4289
4669
|
after(session: {
|
|
@@ -4295,7 +4675,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4295
4675
|
token: string;
|
|
4296
4676
|
ipAddress?: string | null | undefined;
|
|
4297
4677
|
userAgent?: string | null | undefined;
|
|
4298
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4678
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4299
4679
|
};
|
|
4300
4680
|
};
|
|
4301
4681
|
account: {
|
|
@@ -4314,7 +4694,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4314
4694
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4315
4695
|
scope?: string | null | undefined;
|
|
4316
4696
|
password?: string | null | undefined;
|
|
4317
|
-
}, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4697
|
+
}, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4318
4698
|
};
|
|
4319
4699
|
update: {
|
|
4320
4700
|
after(account: {
|
|
@@ -4331,7 +4711,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4331
4711
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4332
4712
|
scope?: string | null | undefined;
|
|
4333
4713
|
password?: string | null | undefined;
|
|
4334
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4714
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4335
4715
|
};
|
|
4336
4716
|
delete: {
|
|
4337
4717
|
after(account: {
|
|
@@ -4348,7 +4728,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4348
4728
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4349
4729
|
scope?: string | null | undefined;
|
|
4350
4730
|
password?: string | null | undefined;
|
|
4351
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4731
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4352
4732
|
};
|
|
4353
4733
|
};
|
|
4354
4734
|
verification: {
|
|
@@ -4360,7 +4740,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4360
4740
|
value: string;
|
|
4361
4741
|
expiresAt: Date;
|
|
4362
4742
|
identifier: string;
|
|
4363
|
-
} & Record<string, unknown>, _ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4743
|
+
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4364
4744
|
};
|
|
4365
4745
|
delete: {
|
|
4366
4746
|
after(verification: {
|
|
@@ -4370,7 +4750,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4370
4750
|
value: string;
|
|
4371
4751
|
expiresAt: Date;
|
|
4372
4752
|
identifier: string;
|
|
4373
|
-
} & Record<string, unknown>, ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4753
|
+
} & Record<string, unknown>, ctx: _$better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
4374
4754
|
};
|
|
4375
4755
|
};
|
|
4376
4756
|
};
|
|
@@ -4381,167 +4761,30 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4381
4761
|
};
|
|
4382
4762
|
hooks: {
|
|
4383
4763
|
before: {
|
|
4384
|
-
matcher: (ctx: better_auth0.HookEndpointContext) => boolean;
|
|
4385
|
-
handler: (inputContext:
|
|
4764
|
+
matcher: (ctx: _$better_auth0.HookEndpointContext) => boolean;
|
|
4765
|
+
handler: (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>;
|
|
4386
4766
|
}[];
|
|
4387
4767
|
after: {
|
|
4388
|
-
matcher: (ctx: better_auth0.HookEndpointContext) => boolean;
|
|
4389
|
-
handler: (inputContext:
|
|
4768
|
+
matcher: (ctx: _$better_auth0.HookEndpointContext) => boolean;
|
|
4769
|
+
handler: (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>;
|
|
4390
4770
|
}[];
|
|
4391
4771
|
};
|
|
4392
4772
|
endpoints: {
|
|
4393
|
-
getDashConfig:
|
|
4773
|
+
getDashConfig: _$better_call0.StrictEndpoint<"/dash/config", {
|
|
4394
4774
|
method: "GET";
|
|
4395
|
-
use: ((inputContext:
|
|
4775
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4396
4776
|
payload: Record<string, unknown>;
|
|
4397
4777
|
}>)[];
|
|
4398
|
-
},
|
|
4399
|
-
|
|
4400
|
-
socialProviders: string[];
|
|
4401
|
-
emailAndPassword: {
|
|
4402
|
-
enabled: boolean;
|
|
4403
|
-
disableSignUp?: boolean;
|
|
4404
|
-
requireEmailVerification?: boolean;
|
|
4405
|
-
maxPasswordLength?: number;
|
|
4406
|
-
minPasswordLength?: number;
|
|
4407
|
-
sendResetPassword?: (data: {
|
|
4408
|
-
user: better_auth0.User;
|
|
4409
|
-
url: string;
|
|
4410
|
-
token: string;
|
|
4411
|
-
}, request?: Request) => Promise<void>;
|
|
4412
|
-
resetPasswordTokenExpiresIn?: number;
|
|
4413
|
-
onPasswordReset?: (data: {
|
|
4414
|
-
user: better_auth0.User;
|
|
4415
|
-
}, request?: Request) => Promise<void>;
|
|
4416
|
-
password?: {
|
|
4417
|
-
hash?: (password: string) => Promise<string>;
|
|
4418
|
-
verify?: (data: {
|
|
4419
|
-
hash: string;
|
|
4420
|
-
password: string;
|
|
4421
|
-
}) => Promise<boolean>;
|
|
4422
|
-
};
|
|
4423
|
-
autoSignIn?: boolean;
|
|
4424
|
-
revokeSessionsOnPasswordReset?: boolean;
|
|
4425
|
-
onExistingUserSignUp?: (data: {
|
|
4426
|
-
user: better_auth0.User;
|
|
4427
|
-
}, request?: Request) => Promise<void>;
|
|
4428
|
-
} | undefined;
|
|
4429
|
-
plugins: {
|
|
4430
|
-
id: better_auth0.LiteralString;
|
|
4431
|
-
schema: better_auth0.BetterAuthPluginDBSchema | undefined;
|
|
4432
|
-
options: unknown;
|
|
4433
|
-
}[];
|
|
4434
|
-
organization: {
|
|
4435
|
-
sendInvitationEmailEnabled: boolean;
|
|
4436
|
-
additionalFields: {
|
|
4437
|
-
name: string;
|
|
4438
|
-
type: better_auth0.DBFieldType;
|
|
4439
|
-
required: boolean | undefined;
|
|
4440
|
-
input: boolean | undefined;
|
|
4441
|
-
unique: boolean | undefined;
|
|
4442
|
-
hasDefaultValue: boolean;
|
|
4443
|
-
references: {
|
|
4444
|
-
model: string;
|
|
4445
|
-
field: string;
|
|
4446
|
-
onDelete?: "no action" | "restrict" | "cascade" | "set null" | "set default";
|
|
4447
|
-
} | undefined;
|
|
4448
|
-
returned: boolean | undefined;
|
|
4449
|
-
bigInt: boolean | undefined;
|
|
4450
|
-
}[];
|
|
4451
|
-
};
|
|
4452
|
-
user: {
|
|
4453
|
-
fields: {
|
|
4454
|
-
name: string;
|
|
4455
|
-
type: better_auth0.DBFieldType | undefined;
|
|
4456
|
-
required: boolean | undefined;
|
|
4457
|
-
input: boolean | undefined;
|
|
4458
|
-
unique: boolean | undefined;
|
|
4459
|
-
hasDefaultValue: boolean;
|
|
4460
|
-
references: {
|
|
4461
|
-
model: string;
|
|
4462
|
-
field: string;
|
|
4463
|
-
onDelete?: "no action" | "restrict" | "cascade" | "set null" | "set default";
|
|
4464
|
-
} | undefined;
|
|
4465
|
-
returned: boolean | undefined;
|
|
4466
|
-
bigInt: boolean | undefined;
|
|
4467
|
-
}[];
|
|
4468
|
-
additionalFields: {
|
|
4469
|
-
name: string;
|
|
4470
|
-
type: better_auth0.DBFieldType | undefined;
|
|
4471
|
-
required: boolean | undefined;
|
|
4472
|
-
input: boolean | undefined;
|
|
4473
|
-
unique: boolean | undefined;
|
|
4474
|
-
hasDefaultValue: boolean;
|
|
4475
|
-
references: {
|
|
4476
|
-
model: string;
|
|
4477
|
-
field: string;
|
|
4478
|
-
onDelete?: "no action" | "restrict" | "cascade" | "set null" | "set default";
|
|
4479
|
-
} | undefined;
|
|
4480
|
-
returned: boolean | undefined;
|
|
4481
|
-
bigInt: boolean | undefined;
|
|
4482
|
-
}[];
|
|
4483
|
-
deleteUserEnabled: boolean;
|
|
4484
|
-
modelName: better_auth0.LiteralString | "user" | undefined;
|
|
4485
|
-
};
|
|
4486
|
-
baseURL: better_auth0.BaseURLConfig | undefined;
|
|
4487
|
-
basePath: string;
|
|
4488
|
-
emailVerification: {
|
|
4489
|
-
sendVerificationEmailEnabled: boolean;
|
|
4490
|
-
};
|
|
4491
|
-
insights: {
|
|
4492
|
-
hasDatabase: boolean;
|
|
4493
|
-
cookies: {
|
|
4494
|
-
key: string;
|
|
4495
|
-
name: string | undefined;
|
|
4496
|
-
sameSite: "Strict" | "Lax" | "None" | "strict" | "lax" | "none" | undefined;
|
|
4497
|
-
}[] | null;
|
|
4498
|
-
hasIpAddressHeaders: boolean;
|
|
4499
|
-
ipAddressHeaders: string[] | null;
|
|
4500
|
-
disableIpTracking: boolean;
|
|
4501
|
-
disableCSRFCheck: boolean;
|
|
4502
|
-
disableOriginCheck: boolean;
|
|
4503
|
-
allowDifferentEmails: boolean;
|
|
4504
|
-
skipStateCookieCheck: boolean;
|
|
4505
|
-
storeStateCookieStrategy: "database" | "cookie" | null;
|
|
4506
|
-
cookieCache: {
|
|
4507
|
-
enabled: boolean;
|
|
4508
|
-
strategy: "jwt" | "compact" | "jwe" | null;
|
|
4509
|
-
refreshCache: boolean | null;
|
|
4510
|
-
};
|
|
4511
|
-
sessionFreshAge: number | null;
|
|
4512
|
-
disableVerificationCleanup: boolean;
|
|
4513
|
-
minPasswordLength: number | null;
|
|
4514
|
-
maxPasswordLength: number | null;
|
|
4515
|
-
hasRateLimitDisabled: boolean;
|
|
4516
|
-
rateLimitStorage: "database" | "memory" | "secondary-storage" | null;
|
|
4517
|
-
storeSessionInDatabase: boolean;
|
|
4518
|
-
preserveSessionInDatabase: boolean;
|
|
4519
|
-
secretEntropy: number;
|
|
4520
|
-
useSecureCookies: boolean | null;
|
|
4521
|
-
crossSubDomainCookiesEnabled: boolean;
|
|
4522
|
-
crossSubDomainCookiesDomain: string | undefined;
|
|
4523
|
-
defaultCookieAttributes: {
|
|
4524
|
-
sameSite: "Strict" | "Lax" | "None" | "strict" | "lax" | "none" | null;
|
|
4525
|
-
httpOnly: boolean | null;
|
|
4526
|
-
prefix: better_auth0.CookiePrefixOptions | null;
|
|
4527
|
-
partitioned: boolean | null;
|
|
4528
|
-
secure: boolean | null;
|
|
4529
|
-
} | null;
|
|
4530
|
-
appName: string | null;
|
|
4531
|
-
hasJoinsEnabled: boolean;
|
|
4532
|
-
};
|
|
4533
|
-
}>;
|
|
4534
|
-
getDashValidate: better_auth0.StrictEndpoint<"/dash/validate", {
|
|
4778
|
+
}, DashConfigResponse>;
|
|
4779
|
+
getDashValidate: _$better_call0.StrictEndpoint<"/dash/validate", {
|
|
4535
4780
|
method: "GET";
|
|
4536
|
-
use: ((inputContext:
|
|
4537
|
-
payload: jose.JWTPayload;
|
|
4781
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4782
|
+
payload: _$jose.JWTPayload;
|
|
4538
4783
|
}>)[];
|
|
4539
|
-
},
|
|
4540
|
-
|
|
4541
|
-
}>;
|
|
4542
|
-
getDashUsers: better_auth0.StrictEndpoint<"/dash/list-users", {
|
|
4784
|
+
}, DashValidateResponse>;
|
|
4785
|
+
getDashUsers: _$better_call0.StrictEndpoint<"/dash/list-users", {
|
|
4543
4786
|
method: "GET";
|
|
4544
|
-
use: ((inputContext:
|
|
4787
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4545
4788
|
payload: Record<string, unknown>;
|
|
4546
4789
|
}>)[];
|
|
4547
4790
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -4552,31 +4795,13 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4552
4795
|
asc: "asc";
|
|
4553
4796
|
desc: "desc";
|
|
4554
4797
|
}>>;
|
|
4555
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<better_auth0.Where[], string>>>;
|
|
4556
|
-
countWhere: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<better_auth0.Where[], string>>>;
|
|
4798
|
+
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_$better_auth0.Where[], string>>>;
|
|
4799
|
+
countWhere: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_$better_auth0.Where[], string>>>;
|
|
4557
4800
|
}, zod_v4_core0.$strip>>;
|
|
4558
|
-
},
|
|
4559
|
-
|
|
4560
|
-
banned: boolean;
|
|
4561
|
-
banReason: string | null;
|
|
4562
|
-
banExpires: number | null;
|
|
4563
|
-
id: string;
|
|
4564
|
-
createdAt: Date;
|
|
4565
|
-
updatedAt: Date;
|
|
4566
|
-
email: string;
|
|
4567
|
-
emailVerified: boolean;
|
|
4568
|
-
name: string;
|
|
4569
|
-
image?: string | null | undefined;
|
|
4570
|
-
}[];
|
|
4571
|
-
total: number;
|
|
4572
|
-
offset: number;
|
|
4573
|
-
limit: number;
|
|
4574
|
-
onlineUsers: number;
|
|
4575
|
-
activityTrackingEnabled: boolean;
|
|
4576
|
-
}>;
|
|
4577
|
-
exportDashUsers: better_auth0.StrictEndpoint<"/dash/export-users", {
|
|
4801
|
+
}, DashUserListResponse>;
|
|
4802
|
+
exportDashUsers: _$better_call0.StrictEndpoint<"/dash/export-users", {
|
|
4578
4803
|
method: "GET";
|
|
4579
|
-
use: ((inputContext:
|
|
4804
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4580
4805
|
payload: Record<string, unknown>;
|
|
4581
4806
|
}>)[];
|
|
4582
4807
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -4587,13 +4812,13 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4587
4812
|
asc: "asc";
|
|
4588
4813
|
desc: "desc";
|
|
4589
4814
|
}>>;
|
|
4590
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<better_auth0.Where[], string>>>;
|
|
4591
|
-
countWhere: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<better_auth0.Where[], string>>>;
|
|
4815
|
+
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_$better_auth0.Where[], string>>>;
|
|
4816
|
+
countWhere: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_$better_auth0.Where[], string>>>;
|
|
4592
4817
|
}, zod_v4_core0.$strip>>;
|
|
4593
4818
|
}, Response>;
|
|
4594
|
-
createDashUser:
|
|
4819
|
+
createDashUser: _$better_call0.StrictEndpoint<"/dash/create-user", {
|
|
4595
4820
|
method: "POST";
|
|
4596
|
-
use: ((inputContext:
|
|
4821
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4597
4822
|
payload: {
|
|
4598
4823
|
organizationId?: string | undefined;
|
|
4599
4824
|
organizationRole?: string | undefined;
|
|
@@ -4611,7 +4836,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4611
4836
|
organizationRole: zod.ZodOptional<zod.ZodString>;
|
|
4612
4837
|
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
4613
4838
|
}, zod_v4_core0.$loose>;
|
|
4614
|
-
},
|
|
4839
|
+
}, {
|
|
4615
4840
|
id: string;
|
|
4616
4841
|
createdAt: Date;
|
|
4617
4842
|
updatedAt: Date;
|
|
@@ -4619,30 +4844,30 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4619
4844
|
emailVerified: boolean;
|
|
4620
4845
|
name: string;
|
|
4621
4846
|
image?: string | null | undefined;
|
|
4847
|
+
} & {
|
|
4848
|
+
banned?: boolean;
|
|
4849
|
+
banReason?: string | null;
|
|
4850
|
+
banExpires?: number | null;
|
|
4622
4851
|
}>;
|
|
4623
|
-
deleteDashUser:
|
|
4852
|
+
deleteDashUser: _$better_call0.StrictEndpoint<"/dash/delete-user", {
|
|
4624
4853
|
method: "POST";
|
|
4625
|
-
use: ((inputContext:
|
|
4854
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4626
4855
|
payload: {
|
|
4627
4856
|
userId: string;
|
|
4628
4857
|
};
|
|
4629
4858
|
}>)[];
|
|
4630
4859
|
}, void>;
|
|
4631
|
-
deleteManyDashUsers:
|
|
4860
|
+
deleteManyDashUsers: _$better_call0.StrictEndpoint<"/dash/delete-many-users", {
|
|
4632
4861
|
method: "POST";
|
|
4633
|
-
use: ((inputContext:
|
|
4862
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4634
4863
|
payload: {
|
|
4635
4864
|
userIds: string[];
|
|
4636
4865
|
};
|
|
4637
4866
|
}>)[];
|
|
4638
|
-
},
|
|
4639
|
-
|
|
4640
|
-
skippedUserIds: string[];
|
|
4641
|
-
deletedUserIds: string[];
|
|
4642
|
-
}>;
|
|
4643
|
-
listDashOrganizations: better_auth0.StrictEndpoint<"/dash/list-organizations", {
|
|
4867
|
+
}, DashDeleteManyUsersResponse>;
|
|
4868
|
+
listDashOrganizations: _$better_call0.StrictEndpoint<"/dash/list-organizations", {
|
|
4644
4869
|
method: "GET";
|
|
4645
|
-
use: ((inputContext:
|
|
4870
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4646
4871
|
payload: Record<string, unknown>;
|
|
4647
4872
|
}>)[];
|
|
4648
4873
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -4669,34 +4894,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4669
4894
|
startDate: zod.ZodOptional<zod.ZodUnion<[zod.ZodDate, zod.ZodPipe<zod.ZodString, zod.ZodTransform<Date, string>>]>>;
|
|
4670
4895
|
endDate: zod.ZodOptional<zod.ZodUnion<[zod.ZodDate, zod.ZodPipe<zod.ZodString, zod.ZodTransform<Date, string>>]>>;
|
|
4671
4896
|
}, zod_v4_core0.$strip>>;
|
|
4672
|
-
},
|
|
4673
|
-
|
|
4674
|
-
total: number;
|
|
4675
|
-
offset?: undefined;
|
|
4676
|
-
limit?: undefined;
|
|
4677
|
-
} | {
|
|
4678
|
-
organizations: {
|
|
4679
|
-
members: {
|
|
4680
|
-
id: string;
|
|
4681
|
-
name: string;
|
|
4682
|
-
email: string;
|
|
4683
|
-
image: string | null | undefined;
|
|
4684
|
-
}[];
|
|
4685
|
-
memberCount: number;
|
|
4686
|
-
id: string;
|
|
4687
|
-
name: string;
|
|
4688
|
-
slug: string;
|
|
4689
|
-
createdAt: Date;
|
|
4690
|
-
logo?: string | null | undefined;
|
|
4691
|
-
metadata?: any;
|
|
4692
|
-
}[];
|
|
4693
|
-
total: number;
|
|
4694
|
-
offset: number;
|
|
4695
|
-
limit: number;
|
|
4696
|
-
}>;
|
|
4697
|
-
exportDashOrganizations: better_auth0.StrictEndpoint<"/dash/export-organizations", {
|
|
4897
|
+
}, DashOrganizationListResponse>;
|
|
4898
|
+
exportDashOrganizations: _$better_call0.StrictEndpoint<"/dash/export-organizations", {
|
|
4698
4899
|
method: "GET";
|
|
4699
|
-
use: ((inputContext:
|
|
4900
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4700
4901
|
payload: Record<string, unknown>;
|
|
4701
4902
|
}>)[];
|
|
4702
4903
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -4707,98 +4908,44 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4707
4908
|
asc: "asc";
|
|
4708
4909
|
desc: "desc";
|
|
4709
4910
|
}>>;
|
|
4710
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<better_auth0.Where[], string>>>;
|
|
4911
|
+
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<_$better_auth0.Where[], string>>>;
|
|
4711
4912
|
}, zod_v4_core0.$strip>>;
|
|
4712
4913
|
}, Response>;
|
|
4713
|
-
getDashOrganization:
|
|
4914
|
+
getDashOrganization: _$better_call0.StrictEndpoint<"/dash/organization/:id", {
|
|
4714
4915
|
method: "GET";
|
|
4715
|
-
use: ((inputContext:
|
|
4916
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4716
4917
|
payload: Record<string, unknown>;
|
|
4717
4918
|
}>)[];
|
|
4718
|
-
},
|
|
4719
|
-
|
|
4720
|
-
name: string;
|
|
4721
|
-
slug: string;
|
|
4722
|
-
createdAt: Date;
|
|
4723
|
-
logo?: string | null | undefined;
|
|
4724
|
-
metadata?: any;
|
|
4725
|
-
} & {
|
|
4726
|
-
memberCount: number;
|
|
4727
|
-
}>;
|
|
4728
|
-
listDashOrganizationMembers: better_auth0.StrictEndpoint<"/dash/organization/:id/members", {
|
|
4919
|
+
}, DashOrganizationDetailResponse>;
|
|
4920
|
+
listDashOrganizationMembers: _$better_call0.StrictEndpoint<"/dash/organization/:id/members", {
|
|
4729
4921
|
method: "GET";
|
|
4730
|
-
use: ((inputContext:
|
|
4922
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4731
4923
|
payload: Record<string, unknown>;
|
|
4732
4924
|
}>)[];
|
|
4733
|
-
},
|
|
4734
|
-
|
|
4735
|
-
id: string;
|
|
4736
|
-
email: string;
|
|
4737
|
-
name: string;
|
|
4738
|
-
image: string | null;
|
|
4739
|
-
} | null;
|
|
4740
|
-
invitedBy: {
|
|
4741
|
-
id: string;
|
|
4742
|
-
name: string;
|
|
4743
|
-
email: string;
|
|
4744
|
-
image: string | null;
|
|
4745
|
-
} | null;
|
|
4746
|
-
id: string;
|
|
4747
|
-
organizationId: string;
|
|
4748
|
-
userId: string;
|
|
4749
|
-
role: string;
|
|
4750
|
-
createdAt: Date;
|
|
4751
|
-
}[]>;
|
|
4752
|
-
listDashOrganizationInvitations: better_auth0.StrictEndpoint<"/dash/organization/:id/invitations", {
|
|
4925
|
+
}, DashOrganizationMemberListResponse>;
|
|
4926
|
+
listDashOrganizationInvitations: _$better_call0.StrictEndpoint<"/dash/organization/:id/invitations", {
|
|
4753
4927
|
method: "GET";
|
|
4754
|
-
use: ((inputContext:
|
|
4928
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4755
4929
|
payload: Record<string, unknown>;
|
|
4756
4930
|
}>)[];
|
|
4757
|
-
},
|
|
4758
|
-
|
|
4759
|
-
id: string;
|
|
4760
|
-
name: string;
|
|
4761
|
-
email: string;
|
|
4762
|
-
image: string | null;
|
|
4763
|
-
} | null;
|
|
4764
|
-
id: string;
|
|
4765
|
-
organizationId: string;
|
|
4766
|
-
email: string;
|
|
4767
|
-
role: string;
|
|
4768
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
4769
|
-
inviterId: string;
|
|
4770
|
-
expiresAt: Date;
|
|
4771
|
-
createdAt: Date;
|
|
4772
|
-
teamId?: string | null | undefined;
|
|
4773
|
-
}[]>;
|
|
4774
|
-
listDashOrganizationTeams: better_auth0.StrictEndpoint<"/dash/organization/:id/teams", {
|
|
4931
|
+
}, DashOrganizationInvitationListResponse>;
|
|
4932
|
+
listDashOrganizationTeams: _$better_call0.StrictEndpoint<"/dash/organization/:id/teams", {
|
|
4775
4933
|
method: "GET";
|
|
4776
|
-
use: ((inputContext:
|
|
4934
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4777
4935
|
payload: Record<string, unknown>;
|
|
4778
4936
|
}>)[];
|
|
4779
|
-
},
|
|
4780
|
-
listDashOrganizationSsoProviders:
|
|
4937
|
+
}, DashOrganizationTeamListResponse>;
|
|
4938
|
+
listDashOrganizationSsoProviders: _$better_call0.StrictEndpoint<"/dash/organization/:id/sso-providers", {
|
|
4781
4939
|
method: "GET";
|
|
4782
|
-
use: ((inputContext:
|
|
4940
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4783
4941
|
payload: {
|
|
4784
4942
|
organizationId: string;
|
|
4785
4943
|
};
|
|
4786
4944
|
}>)[];
|
|
4787
|
-
},
|
|
4788
|
-
|
|
4789
|
-
providerId: string;
|
|
4790
|
-
issuer: string;
|
|
4791
|
-
domain: string;
|
|
4792
|
-
oidcConfig?: unknown;
|
|
4793
|
-
samlConfig?: unknown;
|
|
4794
|
-
organizationId: string;
|
|
4795
|
-
userId: string | null;
|
|
4796
|
-
createdAt: Date;
|
|
4797
|
-
updatedAt: Date;
|
|
4798
|
-
}[]>;
|
|
4799
|
-
createDashSsoProvider: better_auth0.StrictEndpoint<"/dash/organization/:id/sso-provider/create", {
|
|
4945
|
+
}, DashSsoProviderItem[]>;
|
|
4946
|
+
createDashSsoProvider: _$better_call0.StrictEndpoint<"/dash/organization/:id/sso-provider/create", {
|
|
4800
4947
|
method: "POST";
|
|
4801
|
-
use: ((inputContext:
|
|
4948
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4802
4949
|
payload: {
|
|
4803
4950
|
organizationId: string;
|
|
4804
4951
|
};
|
|
@@ -4844,21 +4991,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4844
4991
|
}, zod_v4_core0.$strip>>;
|
|
4845
4992
|
}, zod_v4_core0.$strip>>;
|
|
4846
4993
|
}, zod_v4_core0.$strip>;
|
|
4847
|
-
},
|
|
4848
|
-
|
|
4849
|
-
provider: {
|
|
4850
|
-
id: any;
|
|
4851
|
-
providerId: any;
|
|
4852
|
-
domain: any;
|
|
4853
|
-
};
|
|
4854
|
-
domainVerification: {
|
|
4855
|
-
txtRecordName: string;
|
|
4856
|
-
verificationToken: any;
|
|
4857
|
-
};
|
|
4858
|
-
}>;
|
|
4859
|
-
updateDashSsoProvider: better_auth0.StrictEndpoint<"/dash/organization/:id/sso-provider/update", {
|
|
4994
|
+
}, DashSsoCreateProviderResponse>;
|
|
4995
|
+
updateDashSsoProvider: _$better_call0.StrictEndpoint<"/dash/organization/:id/sso-provider/update", {
|
|
4860
4996
|
method: "POST";
|
|
4861
|
-
use: ((inputContext:
|
|
4997
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4862
4998
|
payload: {
|
|
4863
4999
|
organizationId: string;
|
|
4864
5000
|
};
|
|
@@ -4903,17 +5039,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4903
5039
|
}, zod_v4_core0.$strip>>;
|
|
4904
5040
|
}, zod_v4_core0.$strip>>;
|
|
4905
5041
|
}, zod_v4_core0.$strip>;
|
|
4906
|
-
},
|
|
4907
|
-
|
|
4908
|
-
provider: {
|
|
4909
|
-
id: string;
|
|
4910
|
-
providerId: any;
|
|
4911
|
-
domain: any;
|
|
4912
|
-
};
|
|
4913
|
-
}>;
|
|
4914
|
-
requestDashSsoVerificationToken: better_auth0.StrictEndpoint<"/dash/organization/:id/sso-provider/request-verification-token", {
|
|
5042
|
+
}, DashSsoUpdateProviderResponse>;
|
|
5043
|
+
requestDashSsoVerificationToken: _$better_call0.StrictEndpoint<"/dash/organization/:id/sso-provider/request-verification-token", {
|
|
4915
5044
|
method: "POST";
|
|
4916
|
-
use: ((inputContext:
|
|
5045
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4917
5046
|
payload: {
|
|
4918
5047
|
organizationId: string;
|
|
4919
5048
|
};
|
|
@@ -4921,16 +5050,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4921
5050
|
body: zod.ZodObject<{
|
|
4922
5051
|
providerId: zod.ZodString;
|
|
4923
5052
|
}, zod_v4_core0.$strip>;
|
|
4924
|
-
},
|
|
4925
|
-
|
|
4926
|
-
providerId: string;
|
|
4927
|
-
domain: string;
|
|
4928
|
-
verificationToken: any;
|
|
4929
|
-
txtRecordName: string;
|
|
4930
|
-
}>;
|
|
4931
|
-
verifyDashSsoProviderDomain: better_auth0.StrictEndpoint<"/dash/organization/:id/sso-provider/verify-domain", {
|
|
5053
|
+
}, DashSsoVerificationTokenResponse>;
|
|
5054
|
+
verifyDashSsoProviderDomain: _$better_call0.StrictEndpoint<"/dash/organization/:id/sso-provider/verify-domain", {
|
|
4932
5055
|
method: "POST";
|
|
4933
|
-
use: ((inputContext:
|
|
5056
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4934
5057
|
payload: {
|
|
4935
5058
|
organizationId: string;
|
|
4936
5059
|
};
|
|
@@ -4938,13 +5061,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4938
5061
|
body: zod.ZodObject<{
|
|
4939
5062
|
providerId: zod.ZodString;
|
|
4940
5063
|
}, zod_v4_core0.$strip>;
|
|
4941
|
-
},
|
|
4942
|
-
|
|
4943
|
-
message: string;
|
|
4944
|
-
}>;
|
|
4945
|
-
deleteDashSsoProvider: better_auth0.StrictEndpoint<"/dash/organization/:id/sso-provider/delete", {
|
|
5064
|
+
}, DashSsoVerifyDomainResponse>;
|
|
5065
|
+
deleteDashSsoProvider: _$better_call0.StrictEndpoint<"/dash/organization/:id/sso-provider/delete", {
|
|
4946
5066
|
method: "POST";
|
|
4947
|
-
use: ((inputContext:
|
|
5067
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4948
5068
|
payload: {
|
|
4949
5069
|
organizationId: string;
|
|
4950
5070
|
};
|
|
@@ -4952,13 +5072,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4952
5072
|
body: zod.ZodObject<{
|
|
4953
5073
|
providerId: zod.ZodString;
|
|
4954
5074
|
}, zod_v4_core0.$strip>;
|
|
4955
|
-
},
|
|
4956
|
-
|
|
4957
|
-
message: string;
|
|
4958
|
-
}>;
|
|
4959
|
-
markDashSsoProviderDomainVerified: better_auth0.StrictEndpoint<"/dash/organization/:id/sso-provider/mark-domain-verified", {
|
|
5075
|
+
}, DashSsoDeleteResponse>;
|
|
5076
|
+
markDashSsoProviderDomainVerified: _$better_call0.StrictEndpoint<"/dash/organization/:id/sso-provider/mark-domain-verified", {
|
|
4960
5077
|
method: "POST";
|
|
4961
|
-
use: ((inputContext:
|
|
5078
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4962
5079
|
payload: {
|
|
4963
5080
|
organizationId: string;
|
|
4964
5081
|
};
|
|
@@ -4967,31 +5084,16 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4967
5084
|
providerId: zod.ZodString;
|
|
4968
5085
|
verified: zod.ZodBoolean;
|
|
4969
5086
|
}, zod_v4_core0.$strip>;
|
|
4970
|
-
},
|
|
4971
|
-
|
|
4972
|
-
domainVerified: boolean;
|
|
4973
|
-
message: string;
|
|
4974
|
-
}>;
|
|
4975
|
-
listDashTeamMembers: better_auth0.StrictEndpoint<"/dash/organization/:orgId/teams/:teamId/members", {
|
|
5087
|
+
}, DashSsoMarkDomainVerifiedResponse>;
|
|
5088
|
+
listDashTeamMembers: _$better_call0.StrictEndpoint<"/dash/organization/:orgId/teams/:teamId/members", {
|
|
4976
5089
|
method: "GET";
|
|
4977
|
-
use: ((inputContext:
|
|
5090
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4978
5091
|
payload: Record<string, unknown>;
|
|
4979
5092
|
}>)[];
|
|
4980
|
-
},
|
|
4981
|
-
|
|
4982
|
-
id: string;
|
|
4983
|
-
name: string;
|
|
4984
|
-
email: string;
|
|
4985
|
-
image: string | null | undefined;
|
|
4986
|
-
} | null;
|
|
4987
|
-
id: string;
|
|
4988
|
-
teamId: string;
|
|
4989
|
-
userId: string;
|
|
4990
|
-
createdAt: Date;
|
|
4991
|
-
}[]>;
|
|
4992
|
-
createDashOrganization: better_auth0.StrictEndpoint<"/dash/organization/create", {
|
|
5093
|
+
}, DashTeamMemberListResponse>;
|
|
5094
|
+
createDashOrganization: _$better_call0.StrictEndpoint<"/dash/organization/create", {
|
|
4993
5095
|
method: "POST";
|
|
4994
|
-
use: ((inputContext:
|
|
5096
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
4995
5097
|
payload: {
|
|
4996
5098
|
userId: string;
|
|
4997
5099
|
skipDefaultTeam: boolean;
|
|
@@ -5003,24 +5105,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5003
5105
|
logo: zod.ZodOptional<zod.ZodString>;
|
|
5004
5106
|
defaultTeamName: zod.ZodOptional<zod.ZodString>;
|
|
5005
5107
|
}, zod_v4_core0.$loose>;
|
|
5006
|
-
},
|
|
5007
|
-
|
|
5008
|
-
id: string;
|
|
5009
|
-
organizationId: string;
|
|
5010
|
-
userId: string;
|
|
5011
|
-
role: string;
|
|
5012
|
-
createdAt: Date;
|
|
5013
|
-
}[];
|
|
5014
|
-
id: string;
|
|
5015
|
-
name: string;
|
|
5016
|
-
slug: string;
|
|
5017
|
-
createdAt: Date;
|
|
5018
|
-
logo?: string | null | undefined;
|
|
5019
|
-
metadata?: any;
|
|
5020
|
-
}>;
|
|
5021
|
-
deleteDashOrganization: better_auth0.StrictEndpoint<"/dash/organization/delete", {
|
|
5108
|
+
}, DashCreateOrganizationResponse>;
|
|
5109
|
+
deleteDashOrganization: _$better_call0.StrictEndpoint<"/dash/organization/delete", {
|
|
5022
5110
|
method: "POST";
|
|
5023
|
-
use: ((inputContext:
|
|
5111
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5024
5112
|
payload: {
|
|
5025
5113
|
organizationId: string;
|
|
5026
5114
|
};
|
|
@@ -5028,32 +5116,24 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5028
5116
|
body: zod.ZodObject<{
|
|
5029
5117
|
organizationId: zod.ZodString;
|
|
5030
5118
|
}, zod_v4_core0.$strip>;
|
|
5031
|
-
},
|
|
5032
|
-
|
|
5033
|
-
}>;
|
|
5034
|
-
deleteManyDashOrganizations: better_auth0.StrictEndpoint<"/dash/organization/delete-many", {
|
|
5119
|
+
}, DashSuccessResponse>;
|
|
5120
|
+
deleteManyDashOrganizations: _$better_call0.StrictEndpoint<"/dash/organization/delete-many", {
|
|
5035
5121
|
method: "POST";
|
|
5036
|
-
use: ((inputContext:
|
|
5122
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5037
5123
|
payload: {
|
|
5038
5124
|
organizationIds: string[];
|
|
5039
5125
|
};
|
|
5040
5126
|
}>)[];
|
|
5041
|
-
},
|
|
5042
|
-
|
|
5043
|
-
deletedOrgIds: string[];
|
|
5044
|
-
skippedOrgIds: string[];
|
|
5045
|
-
}>;
|
|
5046
|
-
getDashOrganizationOptions: better_auth0.StrictEndpoint<"/dash/organization/options", {
|
|
5127
|
+
}, DashOrganizationDeleteManyResponse>;
|
|
5128
|
+
getDashOrganizationOptions: _$better_call0.StrictEndpoint<"/dash/organization/options", {
|
|
5047
5129
|
method: "GET";
|
|
5048
|
-
use: ((inputContext:
|
|
5130
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5049
5131
|
payload: Record<string, unknown>;
|
|
5050
5132
|
}>)[];
|
|
5051
|
-
},
|
|
5052
|
-
|
|
5053
|
-
}>;
|
|
5054
|
-
getDashUser: better_auth0.StrictEndpoint<"/dash/user", {
|
|
5133
|
+
}, DashOrganizationOptionsResponse>;
|
|
5134
|
+
getDashUser: _$better_call0.StrictEndpoint<"/dash/user", {
|
|
5055
5135
|
method: "GET";
|
|
5056
|
-
use: ((inputContext:
|
|
5136
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5057
5137
|
payload: {
|
|
5058
5138
|
userId: string;
|
|
5059
5139
|
};
|
|
@@ -5061,62 +5141,18 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5061
5141
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
5062
5142
|
minimal: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodPipe<zod.ZodString, zod.ZodTransform<boolean, string>>]>>;
|
|
5063
5143
|
}, zod_v4_core0.$strip>>;
|
|
5064
|
-
},
|
|
5065
|
-
|
|
5066
|
-
banned: boolean;
|
|
5067
|
-
banReason: string | null;
|
|
5068
|
-
banExpires: number | null;
|
|
5069
|
-
account: never[];
|
|
5070
|
-
session: never[];
|
|
5071
|
-
id: string;
|
|
5072
|
-
createdAt: Date;
|
|
5073
|
-
updatedAt: Date;
|
|
5074
|
-
email: string;
|
|
5075
|
-
emailVerified: boolean;
|
|
5076
|
-
name: string;
|
|
5077
|
-
image?: string | null | undefined;
|
|
5078
|
-
} | {
|
|
5079
|
-
lastActiveAt: Date | null;
|
|
5080
|
-
banned: boolean;
|
|
5081
|
-
banReason: string | null;
|
|
5082
|
-
banExpires: number | null;
|
|
5083
|
-
id: string;
|
|
5084
|
-
createdAt: Date;
|
|
5085
|
-
updatedAt: Date;
|
|
5086
|
-
email: string;
|
|
5087
|
-
emailVerified: boolean;
|
|
5088
|
-
name: string;
|
|
5089
|
-
image?: string | null | undefined;
|
|
5090
|
-
account?: better_auth0.Account[];
|
|
5091
|
-
session?: better_auth0.Session[];
|
|
5092
|
-
}>;
|
|
5093
|
-
getDashUserOrganizations: better_auth0.StrictEndpoint<"/dash/user-organizations", {
|
|
5144
|
+
}, DashUserDetailsResponse>;
|
|
5145
|
+
getDashUserOrganizations: _$better_call0.StrictEndpoint<"/dash/user-organizations", {
|
|
5094
5146
|
method: "GET";
|
|
5095
|
-
use: ((inputContext:
|
|
5147
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5096
5148
|
payload: {
|
|
5097
5149
|
userId: string;
|
|
5098
5150
|
};
|
|
5099
5151
|
}>)[];
|
|
5100
|
-
},
|
|
5101
|
-
|
|
5102
|
-
id: string;
|
|
5103
|
-
name: string;
|
|
5104
|
-
logo: string | null | undefined;
|
|
5105
|
-
createdAt: Date;
|
|
5106
|
-
slug: string;
|
|
5107
|
-
role: string;
|
|
5108
|
-
teams: {
|
|
5109
|
-
id: string;
|
|
5110
|
-
name: string;
|
|
5111
|
-
organizationId: string;
|
|
5112
|
-
createdAt: Date;
|
|
5113
|
-
updatedAt?: Date | undefined;
|
|
5114
|
-
}[];
|
|
5115
|
-
} | null)[];
|
|
5116
|
-
}>;
|
|
5117
|
-
updateDashUser: better_auth0.StrictEndpoint<"/dash/update-user", {
|
|
5152
|
+
}, DashUserOrganizationsResponse>;
|
|
5153
|
+
updateDashUser: _$better_call0.StrictEndpoint<"/dash/update-user", {
|
|
5118
5154
|
method: "POST";
|
|
5119
|
-
use: ((inputContext:
|
|
5155
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5120
5156
|
payload: {
|
|
5121
5157
|
userId: string;
|
|
5122
5158
|
};
|
|
@@ -5135,10 +5171,14 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5135
5171
|
emailVerified: boolean;
|
|
5136
5172
|
name: string;
|
|
5137
5173
|
image?: string | null | undefined;
|
|
5138
|
-
} &
|
|
5139
|
-
|
|
5174
|
+
} & {
|
|
5175
|
+
banned?: boolean;
|
|
5176
|
+
banReason?: string | null;
|
|
5177
|
+
banExpires?: number | null;
|
|
5178
|
+
}>;
|
|
5179
|
+
setDashPassword: _$better_call0.StrictEndpoint<"/dash/set-password", {
|
|
5140
5180
|
method: "POST";
|
|
5141
|
-
use: ((inputContext:
|
|
5181
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5142
5182
|
payload: {
|
|
5143
5183
|
userId: string;
|
|
5144
5184
|
};
|
|
@@ -5146,12 +5186,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5146
5186
|
body: zod.ZodObject<{
|
|
5147
5187
|
password: zod.ZodString;
|
|
5148
5188
|
}, zod_v4_core0.$strip>;
|
|
5149
|
-
},
|
|
5150
|
-
|
|
5151
|
-
}>;
|
|
5152
|
-
unlinkDashAccount: better_auth0.StrictEndpoint<"/dash/unlink-account", {
|
|
5189
|
+
}, DashSuccessResponse>;
|
|
5190
|
+
unlinkDashAccount: _$better_call0.StrictEndpoint<"/dash/unlink-account", {
|
|
5153
5191
|
method: "POST";
|
|
5154
|
-
use: ((inputContext:
|
|
5192
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5155
5193
|
payload: {
|
|
5156
5194
|
userId: string;
|
|
5157
5195
|
};
|
|
@@ -5160,68 +5198,39 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5160
5198
|
providerId: zod.ZodString;
|
|
5161
5199
|
accountId: zod.ZodOptional<zod.ZodString>;
|
|
5162
5200
|
}, zod_v4_core0.$strip>;
|
|
5163
|
-
},
|
|
5164
|
-
|
|
5165
|
-
}>;
|
|
5166
|
-
listAllDashSessions: better_auth0.StrictEndpoint<"/dash/list-all-sessions", {
|
|
5167
|
-
method: "GET";
|
|
5168
|
-
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
5169
|
-
payload: Record<string, unknown>;
|
|
5170
|
-
}>)[];
|
|
5171
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5172
|
-
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
5173
|
-
offset: zod.ZodOptional<zod.ZodNumber>;
|
|
5174
|
-
}, zod_v4_core0.$strip>>;
|
|
5175
|
-
}, ({
|
|
5176
|
-
id: string;
|
|
5177
|
-
createdAt: Date;
|
|
5178
|
-
updatedAt: Date;
|
|
5179
|
-
email: string;
|
|
5180
|
-
emailVerified: boolean;
|
|
5181
|
-
name: string;
|
|
5182
|
-
image?: string | null | undefined;
|
|
5183
|
-
} & {
|
|
5184
|
-
sessions: better_auth0.Session[];
|
|
5185
|
-
})[]>;
|
|
5186
|
-
dashRevokeSession: better_auth0.StrictEndpoint<"/dash/sessions/revoke", {
|
|
5201
|
+
}, DashSuccessResponse>;
|
|
5202
|
+
dashRevokeSession: _$better_call0.StrictEndpoint<"/dash/sessions/revoke", {
|
|
5187
5203
|
method: "POST";
|
|
5188
|
-
use: ((inputContext:
|
|
5204
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5189
5205
|
payload: Record<string, unknown>;
|
|
5190
5206
|
}>)[];
|
|
5191
5207
|
metadata: {
|
|
5192
5208
|
allowedMediaTypes: string[];
|
|
5193
5209
|
};
|
|
5194
|
-
},
|
|
5195
|
-
|
|
5196
|
-
}>;
|
|
5197
|
-
dashRevokeAllSessions: better_auth0.StrictEndpoint<"/dash/sessions/revoke-all", {
|
|
5210
|
+
}, DashSuccessResponse>;
|
|
5211
|
+
dashRevokeAllSessions: _$better_call0.StrictEndpoint<"/dash/sessions/revoke-all", {
|
|
5198
5212
|
method: "POST";
|
|
5199
|
-
use: ((inputContext:
|
|
5213
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5200
5214
|
payload: Record<string, unknown>;
|
|
5201
5215
|
}>)[];
|
|
5202
5216
|
body: zod.ZodObject<{
|
|
5203
5217
|
userId: zod.ZodString;
|
|
5204
5218
|
}, zod_v4_core0.$strip>;
|
|
5205
|
-
},
|
|
5206
|
-
|
|
5207
|
-
}>;
|
|
5208
|
-
dashRevokeManySessions: better_auth0.StrictEndpoint<"/dash/sessions/revoke-many", {
|
|
5219
|
+
}, DashSuccessResponse>;
|
|
5220
|
+
dashRevokeManySessions: _$better_call0.StrictEndpoint<"/dash/sessions/revoke-many", {
|
|
5209
5221
|
method: "POST";
|
|
5210
|
-
use: ((inputContext:
|
|
5222
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5211
5223
|
payload: {
|
|
5212
5224
|
userIds: string[];
|
|
5213
5225
|
};
|
|
5214
5226
|
}>)[];
|
|
5215
|
-
},
|
|
5216
|
-
|
|
5217
|
-
revokedCount: number;
|
|
5218
|
-
}>;
|
|
5219
|
-
dashImpersonateUser: better_auth0.StrictEndpoint<"/dash/impersonate-user", {
|
|
5227
|
+
}, DashSessionRevokeManyResponse>;
|
|
5228
|
+
dashImpersonateUser: _$better_call0.StrictEndpoint<"/dash/impersonate-user", {
|
|
5220
5229
|
method: "GET";
|
|
5221
5230
|
query: zod.ZodObject<{
|
|
5222
5231
|
impersonation_token: zod.ZodString;
|
|
5223
5232
|
}, zod_v4_core0.$strip>;
|
|
5224
|
-
use: ((inputContext:
|
|
5233
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5225
5234
|
payload: {
|
|
5226
5235
|
userId: string;
|
|
5227
5236
|
redirectUrl: string;
|
|
@@ -5229,9 +5238,9 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5229
5238
|
};
|
|
5230
5239
|
}>)[];
|
|
5231
5240
|
}, never>;
|
|
5232
|
-
updateDashOrganization:
|
|
5241
|
+
updateDashOrganization: _$better_call0.StrictEndpoint<"/dash/organization/update", {
|
|
5233
5242
|
method: "POST";
|
|
5234
|
-
use: ((inputContext:
|
|
5243
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5235
5244
|
payload: {
|
|
5236
5245
|
organizationId: string;
|
|
5237
5246
|
};
|
|
@@ -5250,9 +5259,9 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5250
5259
|
logo?: string | null | undefined;
|
|
5251
5260
|
metadata?: any;
|
|
5252
5261
|
}>;
|
|
5253
|
-
createDashTeam:
|
|
5262
|
+
createDashTeam: _$better_call0.StrictEndpoint<"/dash/organization/create-team", {
|
|
5254
5263
|
method: "POST";
|
|
5255
|
-
use: ((inputContext:
|
|
5264
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5256
5265
|
payload: {
|
|
5257
5266
|
organizationId: string;
|
|
5258
5267
|
};
|
|
@@ -5267,9 +5276,9 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5267
5276
|
createdAt: Date;
|
|
5268
5277
|
updatedAt?: Date | undefined;
|
|
5269
5278
|
}>;
|
|
5270
|
-
updateDashTeam:
|
|
5279
|
+
updateDashTeam: _$better_call0.StrictEndpoint<"/dash/organization/update-team", {
|
|
5271
5280
|
method: "POST";
|
|
5272
|
-
use: ((inputContext:
|
|
5281
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5273
5282
|
payload: {
|
|
5274
5283
|
organizationId: string;
|
|
5275
5284
|
};
|
|
@@ -5284,10 +5293,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5284
5293
|
organizationId: string;
|
|
5285
5294
|
createdAt: Date;
|
|
5286
5295
|
updatedAt?: Date | undefined;
|
|
5287
|
-
}
|
|
5288
|
-
deleteDashTeam:
|
|
5296
|
+
}>;
|
|
5297
|
+
deleteDashTeam: _$better_call0.StrictEndpoint<"/dash/organization/delete-team", {
|
|
5289
5298
|
method: "POST";
|
|
5290
|
-
use: ((inputContext:
|
|
5299
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5291
5300
|
payload: {
|
|
5292
5301
|
organizationId: string;
|
|
5293
5302
|
};
|
|
@@ -5295,12 +5304,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5295
5304
|
body: zod.ZodObject<{
|
|
5296
5305
|
teamId: zod.ZodString;
|
|
5297
5306
|
}, zod_v4_core0.$strip>;
|
|
5298
|
-
},
|
|
5299
|
-
|
|
5300
|
-
}>;
|
|
5301
|
-
addDashTeamMember: better_auth0.StrictEndpoint<"/dash/organization/add-team-member", {
|
|
5307
|
+
}, DashSuccessResponse>;
|
|
5308
|
+
addDashTeamMember: _$better_call0.StrictEndpoint<"/dash/organization/add-team-member", {
|
|
5302
5309
|
method: "POST";
|
|
5303
|
-
use: ((inputContext:
|
|
5310
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5304
5311
|
payload: {
|
|
5305
5312
|
organizationId: string;
|
|
5306
5313
|
};
|
|
@@ -5315,9 +5322,9 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5315
5322
|
userId: string;
|
|
5316
5323
|
createdAt: Date;
|
|
5317
5324
|
}>;
|
|
5318
|
-
removeDashTeamMember:
|
|
5325
|
+
removeDashTeamMember: _$better_call0.StrictEndpoint<"/dash/organization/remove-team-member", {
|
|
5319
5326
|
method: "POST";
|
|
5320
|
-
use: ((inputContext:
|
|
5327
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5321
5328
|
payload: {
|
|
5322
5329
|
organizationId: string;
|
|
5323
5330
|
};
|
|
@@ -5326,12 +5333,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5326
5333
|
teamId: zod.ZodString;
|
|
5327
5334
|
userId: zod.ZodString;
|
|
5328
5335
|
}, zod_v4_core0.$strip>;
|
|
5329
|
-
},
|
|
5330
|
-
|
|
5331
|
-
}>;
|
|
5332
|
-
addDashMember: better_auth0.StrictEndpoint<"/dash/organization/add-member", {
|
|
5336
|
+
}, DashSuccessResponse>;
|
|
5337
|
+
addDashMember: _$better_call0.StrictEndpoint<"/dash/organization/add-member", {
|
|
5333
5338
|
method: "POST";
|
|
5334
|
-
use: ((inputContext:
|
|
5339
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5335
5340
|
payload: {
|
|
5336
5341
|
organizationId: string;
|
|
5337
5342
|
};
|
|
@@ -5347,9 +5352,9 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5347
5352
|
role: string;
|
|
5348
5353
|
createdAt: Date;
|
|
5349
5354
|
}>;
|
|
5350
|
-
removeDashMember:
|
|
5355
|
+
removeDashMember: _$better_call0.StrictEndpoint<"/dash/organization/remove-member", {
|
|
5351
5356
|
method: "POST";
|
|
5352
|
-
use: ((inputContext:
|
|
5357
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5353
5358
|
payload: {
|
|
5354
5359
|
organizationId: string;
|
|
5355
5360
|
};
|
|
@@ -5357,12 +5362,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5357
5362
|
body: zod.ZodObject<{
|
|
5358
5363
|
memberId: zod.ZodString;
|
|
5359
5364
|
}, zod_v4_core0.$strip>;
|
|
5360
|
-
},
|
|
5361
|
-
|
|
5362
|
-
}>;
|
|
5363
|
-
updateDashMemberRole: better_auth0.StrictEndpoint<"/dash/organization/update-member-role", {
|
|
5365
|
+
}, DashSuccessResponse>;
|
|
5366
|
+
updateDashMemberRole: _$better_call0.StrictEndpoint<"/dash/organization/update-member-role", {
|
|
5364
5367
|
method: "POST";
|
|
5365
|
-
use: ((inputContext:
|
|
5368
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5366
5369
|
payload: {
|
|
5367
5370
|
organizationId: string;
|
|
5368
5371
|
};
|
|
@@ -5371,21 +5374,15 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5371
5374
|
memberId: zod.ZodString;
|
|
5372
5375
|
role: zod.ZodString;
|
|
5373
5376
|
}, zod_v4_core0.$strip>;
|
|
5374
|
-
},
|
|
5375
|
-
|
|
5376
|
-
organizationId: string;
|
|
5377
|
-
userId: string;
|
|
5378
|
-
role: string;
|
|
5379
|
-
createdAt: Date;
|
|
5380
|
-
}>;
|
|
5381
|
-
inviteDashMember: better_auth0.StrictEndpoint<"/dash/organization/invite-member", {
|
|
5377
|
+
}, DashOrganizationUpdateMemberRoleResponse>;
|
|
5378
|
+
inviteDashMember: _$better_call0.StrictEndpoint<"/dash/organization/invite-member", {
|
|
5382
5379
|
method: "POST";
|
|
5383
5380
|
body: zod.ZodObject<{
|
|
5384
5381
|
email: zod.ZodString;
|
|
5385
5382
|
role: zod.ZodString;
|
|
5386
5383
|
invitedBy: zod.ZodString;
|
|
5387
5384
|
}, zod_v4_core0.$strip>;
|
|
5388
|
-
use: ((inputContext:
|
|
5385
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5389
5386
|
payload: {
|
|
5390
5387
|
organizationId: string;
|
|
5391
5388
|
invitedBy: string;
|
|
@@ -5395,24 +5392,16 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5395
5392
|
id: string;
|
|
5396
5393
|
organizationId: string;
|
|
5397
5394
|
email: string;
|
|
5398
|
-
role:
|
|
5399
|
-
status:
|
|
5400
|
-
inviterId: string;
|
|
5401
|
-
expiresAt: Date;
|
|
5402
|
-
createdAt: Date;
|
|
5403
|
-
} | {
|
|
5404
|
-
id: string;
|
|
5405
|
-
organizationId: string;
|
|
5406
|
-
email: string;
|
|
5407
|
-
role: "admin" | "member" | "owner";
|
|
5408
|
-
status: better_auth_plugins0.InvitationStatus;
|
|
5395
|
+
role: string;
|
|
5396
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
5409
5397
|
inviterId: string;
|
|
5410
5398
|
expiresAt: Date;
|
|
5411
5399
|
createdAt: Date;
|
|
5400
|
+
teamId?: string | null | undefined;
|
|
5412
5401
|
}>;
|
|
5413
|
-
cancelDashInvitation:
|
|
5402
|
+
cancelDashInvitation: _$better_call0.StrictEndpoint<"/dash/organization/cancel-invitation", {
|
|
5414
5403
|
method: "POST";
|
|
5415
|
-
use: ((inputContext:
|
|
5404
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5416
5405
|
payload: {
|
|
5417
5406
|
organizationId: string;
|
|
5418
5407
|
invitationId: string;
|
|
@@ -5421,12 +5410,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5421
5410
|
body: zod.ZodObject<{
|
|
5422
5411
|
invitationId: zod.ZodString;
|
|
5423
5412
|
}, zod_v4_core0.$strip>;
|
|
5424
|
-
},
|
|
5425
|
-
|
|
5426
|
-
}>;
|
|
5427
|
-
resendDashInvitation: better_auth0.StrictEndpoint<"/dash/organization/resend-invitation", {
|
|
5413
|
+
}, DashSuccessResponse>;
|
|
5414
|
+
resendDashInvitation: _$better_call0.StrictEndpoint<"/dash/organization/resend-invitation", {
|
|
5428
5415
|
method: "POST";
|
|
5429
|
-
use: ((inputContext:
|
|
5416
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5430
5417
|
payload: {
|
|
5431
5418
|
organizationId: string;
|
|
5432
5419
|
invitationId: string;
|
|
@@ -5435,70 +5422,27 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5435
5422
|
body: zod.ZodObject<{
|
|
5436
5423
|
invitationId: zod.ZodString;
|
|
5437
5424
|
}, zod_v4_core0.$strip>;
|
|
5438
|
-
},
|
|
5439
|
-
|
|
5440
|
-
}>;
|
|
5441
|
-
dashCheckUserByEmail: better_auth0.StrictEndpoint<"/dash/organization/check-user-by-email", {
|
|
5425
|
+
}, DashSuccessResponse>;
|
|
5426
|
+
dashCheckUserByEmail: _$better_call0.StrictEndpoint<"/dash/organization/check-user-by-email", {
|
|
5442
5427
|
method: "POST";
|
|
5443
5428
|
body: zod.ZodObject<{
|
|
5444
5429
|
email: zod.ZodString;
|
|
5445
5430
|
}, zod_v4_core0.$strip>;
|
|
5446
|
-
use: ((inputContext:
|
|
5431
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5447
5432
|
payload: {
|
|
5448
5433
|
organizationId: string;
|
|
5449
5434
|
};
|
|
5450
5435
|
}>)[];
|
|
5451
|
-
},
|
|
5452
|
-
|
|
5453
|
-
user: null;
|
|
5454
|
-
isAlreadyMember: boolean;
|
|
5455
|
-
} | {
|
|
5456
|
-
exists: boolean;
|
|
5457
|
-
user: {
|
|
5458
|
-
id: string;
|
|
5459
|
-
name: string;
|
|
5460
|
-
email: string;
|
|
5461
|
-
image: string | null | undefined;
|
|
5462
|
-
};
|
|
5463
|
-
isAlreadyMember: boolean;
|
|
5464
|
-
}>;
|
|
5465
|
-
dashGetUserStats: better_auth0.StrictEndpoint<"/dash/user-stats", {
|
|
5436
|
+
}, DashCheckUserByEmailResponse>;
|
|
5437
|
+
dashGetUserStats: _$better_call0.StrictEndpoint<"/dash/user-stats", {
|
|
5466
5438
|
method: "GET";
|
|
5467
|
-
use: ((inputContext:
|
|
5439
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5468
5440
|
payload: Record<string, unknown>;
|
|
5469
5441
|
}>)[];
|
|
5470
|
-
},
|
|
5471
|
-
|
|
5472
|
-
signUps: number;
|
|
5473
|
-
percentage: number;
|
|
5474
|
-
};
|
|
5475
|
-
weekly: {
|
|
5476
|
-
signUps: number;
|
|
5477
|
-
percentage: number;
|
|
5478
|
-
};
|
|
5479
|
-
monthly: {
|
|
5480
|
-
signUps: number;
|
|
5481
|
-
percentage: number;
|
|
5482
|
-
};
|
|
5483
|
-
total: number;
|
|
5484
|
-
activeUsers: {
|
|
5485
|
-
daily: {
|
|
5486
|
-
active: number;
|
|
5487
|
-
percentage: number;
|
|
5488
|
-
};
|
|
5489
|
-
weekly: {
|
|
5490
|
-
active: number;
|
|
5491
|
-
percentage: number;
|
|
5492
|
-
};
|
|
5493
|
-
monthly: {
|
|
5494
|
-
active: number;
|
|
5495
|
-
percentage: number;
|
|
5496
|
-
};
|
|
5497
|
-
};
|
|
5498
|
-
}>;
|
|
5499
|
-
dashGetUserGraphData: better_auth0.StrictEndpoint<"/dash/user-graph-data", {
|
|
5442
|
+
}, DashUserStatsResponse>;
|
|
5443
|
+
dashGetUserGraphData: _$better_call0.StrictEndpoint<"/dash/user-graph-data", {
|
|
5500
5444
|
method: "GET";
|
|
5501
|
-
use: ((inputContext:
|
|
5445
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5502
5446
|
payload: Record<string, unknown>;
|
|
5503
5447
|
}>)[];
|
|
5504
5448
|
query: zod.ZodObject<{
|
|
@@ -5508,19 +5452,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5508
5452
|
monthly: "monthly";
|
|
5509
5453
|
}>>;
|
|
5510
5454
|
}, zod_v4_core0.$strip>;
|
|
5511
|
-
},
|
|
5512
|
-
|
|
5513
|
-
date: Date;
|
|
5514
|
-
label: string;
|
|
5515
|
-
totalUsers: number;
|
|
5516
|
-
newUsers: number;
|
|
5517
|
-
activeUsers: number;
|
|
5518
|
-
}[];
|
|
5519
|
-
period: "daily" | "weekly" | "monthly";
|
|
5520
|
-
}>;
|
|
5521
|
-
dashGetUserRetentionData: better_auth0.StrictEndpoint<"/dash/user-retention-data", {
|
|
5455
|
+
}, DashUserGraphDataResponse>;
|
|
5456
|
+
dashGetUserRetentionData: _$better_call0.StrictEndpoint<"/dash/user-retention-data", {
|
|
5522
5457
|
method: "GET";
|
|
5523
|
-
use: ((inputContext:
|
|
5458
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5524
5459
|
payload: Record<string, unknown>;
|
|
5525
5460
|
}>)[];
|
|
5526
5461
|
query: zod.ZodObject<{
|
|
@@ -5530,23 +5465,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5530
5465
|
monthly: "monthly";
|
|
5531
5466
|
}>>;
|
|
5532
5467
|
}, zod_v4_core0.$strip>;
|
|
5533
|
-
},
|
|
5534
|
-
|
|
5535
|
-
n: number;
|
|
5536
|
-
label: string;
|
|
5537
|
-
cohortStart: string;
|
|
5538
|
-
cohortEnd: string;
|
|
5539
|
-
activeStart: string;
|
|
5540
|
-
activeEnd: string;
|
|
5541
|
-
cohortSize: number;
|
|
5542
|
-
retained: number;
|
|
5543
|
-
retentionRate: number;
|
|
5544
|
-
}[];
|
|
5545
|
-
period: "daily" | "weekly" | "monthly";
|
|
5546
|
-
}>;
|
|
5547
|
-
dashBanUser: better_auth0.StrictEndpoint<"/dash/ban-user", {
|
|
5468
|
+
}, DashUserRetentionDataResponse>;
|
|
5469
|
+
dashBanUser: _$better_call0.StrictEndpoint<"/dash/ban-user", {
|
|
5548
5470
|
method: "POST";
|
|
5549
|
-
use: ((inputContext:
|
|
5471
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5550
5472
|
payload: {
|
|
5551
5473
|
userId: string;
|
|
5552
5474
|
};
|
|
@@ -5555,12 +5477,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5555
5477
|
banReason: zod.ZodOptional<zod.ZodString>;
|
|
5556
5478
|
banExpires: zod.ZodOptional<zod.ZodNumber>;
|
|
5557
5479
|
}, zod_v4_core0.$strip>;
|
|
5558
|
-
},
|
|
5559
|
-
|
|
5560
|
-
}>;
|
|
5561
|
-
dashBanManyUsers: better_auth0.StrictEndpoint<"/dash/ban-many-users", {
|
|
5480
|
+
}, DashSuccessResponse>;
|
|
5481
|
+
dashBanManyUsers: _$better_call0.StrictEndpoint<"/dash/ban-many-users", {
|
|
5562
5482
|
method: "POST";
|
|
5563
|
-
use: ((inputContext:
|
|
5483
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5564
5484
|
payload: {
|
|
5565
5485
|
userIds: string[];
|
|
5566
5486
|
};
|
|
@@ -5569,24 +5489,18 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5569
5489
|
banReason: zod.ZodOptional<zod.ZodString>;
|
|
5570
5490
|
banExpires: zod.ZodOptional<zod.ZodNumber>;
|
|
5571
5491
|
}, zod_v4_core0.$strip>;
|
|
5572
|
-
},
|
|
5573
|
-
|
|
5574
|
-
bannedUserIds: string[];
|
|
5575
|
-
skippedUserIds: string[];
|
|
5576
|
-
}>;
|
|
5577
|
-
dashUnbanUser: better_auth0.StrictEndpoint<"/dash/unban-user", {
|
|
5492
|
+
}, DashBanManyResponse>;
|
|
5493
|
+
dashUnbanUser: _$better_call0.StrictEndpoint<"/dash/unban-user", {
|
|
5578
5494
|
method: "POST";
|
|
5579
|
-
use: ((inputContext:
|
|
5495
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5580
5496
|
payload: {
|
|
5581
5497
|
userId: string;
|
|
5582
5498
|
};
|
|
5583
5499
|
}>)[];
|
|
5584
|
-
},
|
|
5585
|
-
|
|
5586
|
-
}>;
|
|
5587
|
-
dashSendVerificationEmail: better_auth0.StrictEndpoint<"/dash/send-verification-email", {
|
|
5500
|
+
}, DashSuccessResponse>;
|
|
5501
|
+
dashSendVerificationEmail: _$better_call0.StrictEndpoint<"/dash/send-verification-email", {
|
|
5588
5502
|
method: "POST";
|
|
5589
|
-
use: ((inputContext:
|
|
5503
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5590
5504
|
payload: {
|
|
5591
5505
|
userId: string;
|
|
5592
5506
|
};
|
|
@@ -5594,12 +5508,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5594
5508
|
body: zod.ZodObject<{
|
|
5595
5509
|
callbackUrl: zod.ZodURL;
|
|
5596
5510
|
}, zod_v4_core0.$strip>;
|
|
5597
|
-
},
|
|
5598
|
-
|
|
5599
|
-
}>;
|
|
5600
|
-
dashSendManyVerificationEmails: better_auth0.StrictEndpoint<"/dash/send-many-verification-emails", {
|
|
5511
|
+
}, DashSuccessResponse>;
|
|
5512
|
+
dashSendManyVerificationEmails: _$better_call0.StrictEndpoint<"/dash/send-many-verification-emails", {
|
|
5601
5513
|
method: "POST";
|
|
5602
|
-
use: ((inputContext:
|
|
5514
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5603
5515
|
payload: {
|
|
5604
5516
|
userIds: string[];
|
|
5605
5517
|
};
|
|
@@ -5607,14 +5519,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5607
5519
|
body: zod.ZodObject<{
|
|
5608
5520
|
callbackUrl: zod.ZodURL;
|
|
5609
5521
|
}, zod_v4_core0.$strip>;
|
|
5610
|
-
},
|
|
5611
|
-
|
|
5612
|
-
sentEmailUserIds: string[];
|
|
5613
|
-
skippedEmailUserIds: string[];
|
|
5614
|
-
}>;
|
|
5615
|
-
dashSendResetPasswordEmail: better_auth0.StrictEndpoint<"/dash/send-reset-password-email", {
|
|
5522
|
+
}, DashSendManyVerificationEmailsResponse>;
|
|
5523
|
+
dashSendResetPasswordEmail: _$better_call0.StrictEndpoint<"/dash/send-reset-password-email", {
|
|
5616
5524
|
method: "POST";
|
|
5617
|
-
use: ((inputContext:
|
|
5525
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5618
5526
|
payload: {
|
|
5619
5527
|
userId: string;
|
|
5620
5528
|
};
|
|
@@ -5623,66 +5531,52 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5623
5531
|
callbackUrl: zod.ZodURL;
|
|
5624
5532
|
}, zod_v4_core0.$strip>;
|
|
5625
5533
|
}, never>;
|
|
5626
|
-
dashEnableTwoFactor:
|
|
5534
|
+
dashEnableTwoFactor: _$better_call0.StrictEndpoint<"/dash/enable-two-factor", {
|
|
5627
5535
|
method: "POST";
|
|
5628
|
-
use: ((inputContext:
|
|
5536
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5629
5537
|
payload: {
|
|
5630
5538
|
userId: string;
|
|
5631
5539
|
};
|
|
5632
5540
|
}>)[];
|
|
5633
|
-
},
|
|
5634
|
-
|
|
5635
|
-
totpURI: string;
|
|
5636
|
-
secret: string;
|
|
5637
|
-
backupCodes: string[];
|
|
5638
|
-
}>;
|
|
5639
|
-
dashViewTwoFactorTotpUri: better_auth0.StrictEndpoint<"/dash/view-two-factor-totp-uri", {
|
|
5541
|
+
}, DashTwoFactorEnableResponse>;
|
|
5542
|
+
dashViewTwoFactorTotpUri: _$better_call0.StrictEndpoint<"/dash/view-two-factor-totp-uri", {
|
|
5640
5543
|
method: "POST";
|
|
5641
5544
|
metadata: {
|
|
5642
5545
|
scope: "http";
|
|
5643
5546
|
};
|
|
5644
|
-
use: ((inputContext:
|
|
5547
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5645
5548
|
payload: {
|
|
5646
5549
|
userId: string;
|
|
5647
5550
|
};
|
|
5648
5551
|
}>)[];
|
|
5649
|
-
},
|
|
5650
|
-
|
|
5651
|
-
secret: string;
|
|
5652
|
-
}>;
|
|
5653
|
-
dashViewBackupCodes: better_auth0.StrictEndpoint<"/dash/view-backup-codes", {
|
|
5552
|
+
}, DashTwoFactorTotpViewResponse>;
|
|
5553
|
+
dashViewBackupCodes: _$better_call0.StrictEndpoint<"/dash/view-backup-codes", {
|
|
5654
5554
|
method: "POST";
|
|
5655
|
-
use: ((inputContext:
|
|
5555
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5656
5556
|
payload: {
|
|
5657
5557
|
userId: string;
|
|
5658
5558
|
};
|
|
5659
5559
|
}>)[];
|
|
5660
|
-
},
|
|
5661
|
-
|
|
5662
|
-
}>;
|
|
5663
|
-
dashDisableTwoFactor: better_auth0.StrictEndpoint<"/dash/disable-two-factor", {
|
|
5560
|
+
}, DashTwoFactorBackupCodesResponse>;
|
|
5561
|
+
dashDisableTwoFactor: _$better_call0.StrictEndpoint<"/dash/disable-two-factor", {
|
|
5664
5562
|
method: "POST";
|
|
5665
|
-
use: ((inputContext:
|
|
5563
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5666
5564
|
payload: {
|
|
5667
5565
|
userId: string;
|
|
5668
5566
|
};
|
|
5669
5567
|
}>)[];
|
|
5670
|
-
},
|
|
5671
|
-
|
|
5672
|
-
}>;
|
|
5673
|
-
dashGenerateBackupCodes: better_auth0.StrictEndpoint<"/dash/generate-backup-codes", {
|
|
5568
|
+
}, DashSuccessResponse>;
|
|
5569
|
+
dashGenerateBackupCodes: _$better_call0.StrictEndpoint<"/dash/generate-backup-codes", {
|
|
5674
5570
|
method: "POST";
|
|
5675
|
-
use: ((inputContext:
|
|
5571
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5676
5572
|
payload: {
|
|
5677
5573
|
userId: string;
|
|
5678
5574
|
};
|
|
5679
5575
|
}>)[];
|
|
5680
|
-
},
|
|
5681
|
-
|
|
5682
|
-
}>;
|
|
5683
|
-
getUserEvents: better_auth0.StrictEndpoint<"/events/list", {
|
|
5576
|
+
}, DashTwoFactorBackupCodesResponse>;
|
|
5577
|
+
getUserEvents: _$better_call0.StrictEndpoint<"/events/list", {
|
|
5684
5578
|
method: "GET";
|
|
5685
|
-
use: ((inputContext:
|
|
5579
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5686
5580
|
session: {
|
|
5687
5581
|
session: Record<string, any> & {
|
|
5688
5582
|
id: string;
|
|
@@ -5710,15 +5604,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5710
5604
|
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5711
5605
|
eventType: zod.ZodOptional<zod.ZodString>;
|
|
5712
5606
|
}, zod_v4_core0.$strip>>;
|
|
5713
|
-
},
|
|
5714
|
-
|
|
5715
|
-
total: number;
|
|
5716
|
-
limit: number;
|
|
5717
|
-
offset: number;
|
|
5718
|
-
}>;
|
|
5719
|
-
getAuditLogs: better_auth0.StrictEndpoint<"/events/audit-logs", {
|
|
5607
|
+
}, UserEventsResponse>;
|
|
5608
|
+
getAuditLogs: _$better_call0.StrictEndpoint<"/events/audit-logs", {
|
|
5720
5609
|
method: "GET";
|
|
5721
|
-
use: ((inputContext:
|
|
5610
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5722
5611
|
session: {
|
|
5723
5612
|
session: Record<string, any> & {
|
|
5724
5613
|
id: string;
|
|
@@ -5749,15 +5638,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5749
5638
|
identifier: zod.ZodOptional<zod.ZodString>;
|
|
5750
5639
|
eventType: zod.ZodOptional<zod.ZodString>;
|
|
5751
5640
|
}, zod_v4_core0.$strip>>;
|
|
5752
|
-
},
|
|
5753
|
-
|
|
5754
|
-
total: number;
|
|
5755
|
-
limit: number;
|
|
5756
|
-
offset: number;
|
|
5757
|
-
}>;
|
|
5758
|
-
getEventTypes: better_auth0.StrictEndpoint<"/events/types", {
|
|
5641
|
+
}, UserEventsResponse>;
|
|
5642
|
+
getEventTypes: _$better_call0.StrictEndpoint<"/events/types", {
|
|
5759
5643
|
method: "GET";
|
|
5760
|
-
use: ((inputContext:
|
|
5644
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5761
5645
|
session: {
|
|
5762
5646
|
session: Record<string, any> & {
|
|
5763
5647
|
id: string;
|
|
@@ -5780,99 +5664,14 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5780
5664
|
};
|
|
5781
5665
|
};
|
|
5782
5666
|
}>)[];
|
|
5783
|
-
},
|
|
5784
|
-
|
|
5785
|
-
readonly USER_CREATED: "user_created";
|
|
5786
|
-
readonly USER_SIGNED_IN: "user_signed_in";
|
|
5787
|
-
readonly USER_SIGNED_OUT: "user_signed_out";
|
|
5788
|
-
readonly USER_SIGN_IN_FAILED: "user_sign_in_failed";
|
|
5789
|
-
readonly PASSWORD_RESET_REQUESTED: "password_reset_requested";
|
|
5790
|
-
readonly PASSWORD_RESET_COMPLETED: "password_reset_completed";
|
|
5791
|
-
readonly PASSWORD_CHANGED: "password_changed";
|
|
5792
|
-
readonly EMAIL_VERIFICATION_SENT: "email_verification_sent";
|
|
5793
|
-
readonly EMAIL_VERIFIED: "email_verified";
|
|
5794
|
-
readonly EMAIL_CHANGED: "email_changed";
|
|
5795
|
-
readonly PROFILE_UPDATED: "profile_updated";
|
|
5796
|
-
readonly PROFILE_IMAGE_UPDATED: "profile_image_updated";
|
|
5797
|
-
readonly SESSION_CREATED: "session_created";
|
|
5798
|
-
readonly SESSION_REVOKED: "session_revoked";
|
|
5799
|
-
readonly ALL_SESSIONS_REVOKED: "all_sessions_revoked";
|
|
5800
|
-
readonly TWO_FACTOR_ENABLED: "two_factor_enabled";
|
|
5801
|
-
readonly TWO_FACTOR_DISABLED: "two_factor_disabled";
|
|
5802
|
-
readonly TWO_FACTOR_VERIFIED: "two_factor_verified";
|
|
5803
|
-
readonly ACCOUNT_LINKED: "account_linked";
|
|
5804
|
-
readonly ACCOUNT_UNLINKED: "account_unlinked";
|
|
5805
|
-
readonly USER_BANNED: "user_banned";
|
|
5806
|
-
readonly USER_UNBANNED: "user_unbanned";
|
|
5807
|
-
readonly USER_DELETED: "user_deleted";
|
|
5808
|
-
readonly USER_IMPERSONATED: "user_impersonated";
|
|
5809
|
-
readonly USER_IMPERSONATED_STOPPED: "user_impersonated_stopped";
|
|
5810
|
-
};
|
|
5811
|
-
organization: {
|
|
5812
|
-
readonly ORGANIZATION_CREATED: "organization_created";
|
|
5813
|
-
readonly ORGANIZATION_UPDATED: "organization_updated";
|
|
5814
|
-
readonly ORGANIZATION_MEMBER_ADDED: "organization_member_added";
|
|
5815
|
-
readonly ORGANIZATION_MEMBER_REMOVED: "organization_member_removed";
|
|
5816
|
-
readonly ORGANIZATION_MEMBER_ROLE_UPDATED: "organization_member_role_updated";
|
|
5817
|
-
readonly ORGANIZATION_MEMBER_INVITED: "organization_member_invited";
|
|
5818
|
-
readonly ORGANIZATION_MEMBER_INVITE_CANCELED: "organization_member_invite_canceled";
|
|
5819
|
-
readonly ORGANIZATION_MEMBER_INVITE_ACCEPTED: "organization_member_invite_accepted";
|
|
5820
|
-
readonly ORGANIZATION_MEMBER_INVITE_REJECTED: "organization_member_invite_rejected";
|
|
5821
|
-
readonly ORGANIZATION_TEAM_CREATED: "organization_team_created";
|
|
5822
|
-
readonly ORGANIZATION_TEAM_UPDATED: "organization_team_updated";
|
|
5823
|
-
readonly ORGANIZATION_TEAM_DELETED: "organization_team_deleted";
|
|
5824
|
-
readonly ORGANIZATION_TEAM_MEMBER_ADDED: "organization_team_member_added";
|
|
5825
|
-
readonly ORGANIZATION_TEAM_MEMBER_REMOVED: "organization_team_member_removed";
|
|
5826
|
-
};
|
|
5827
|
-
all: {
|
|
5828
|
-
readonly ORGANIZATION_CREATED: "organization_created";
|
|
5829
|
-
readonly ORGANIZATION_UPDATED: "organization_updated";
|
|
5830
|
-
readonly ORGANIZATION_MEMBER_ADDED: "organization_member_added";
|
|
5831
|
-
readonly ORGANIZATION_MEMBER_REMOVED: "organization_member_removed";
|
|
5832
|
-
readonly ORGANIZATION_MEMBER_ROLE_UPDATED: "organization_member_role_updated";
|
|
5833
|
-
readonly ORGANIZATION_MEMBER_INVITED: "organization_member_invited";
|
|
5834
|
-
readonly ORGANIZATION_MEMBER_INVITE_CANCELED: "organization_member_invite_canceled";
|
|
5835
|
-
readonly ORGANIZATION_MEMBER_INVITE_ACCEPTED: "organization_member_invite_accepted";
|
|
5836
|
-
readonly ORGANIZATION_MEMBER_INVITE_REJECTED: "organization_member_invite_rejected";
|
|
5837
|
-
readonly ORGANIZATION_TEAM_CREATED: "organization_team_created";
|
|
5838
|
-
readonly ORGANIZATION_TEAM_UPDATED: "organization_team_updated";
|
|
5839
|
-
readonly ORGANIZATION_TEAM_DELETED: "organization_team_deleted";
|
|
5840
|
-
readonly ORGANIZATION_TEAM_MEMBER_ADDED: "organization_team_member_added";
|
|
5841
|
-
readonly ORGANIZATION_TEAM_MEMBER_REMOVED: "organization_team_member_removed";
|
|
5842
|
-
readonly USER_CREATED: "user_created";
|
|
5843
|
-
readonly USER_SIGNED_IN: "user_signed_in";
|
|
5844
|
-
readonly USER_SIGNED_OUT: "user_signed_out";
|
|
5845
|
-
readonly USER_SIGN_IN_FAILED: "user_sign_in_failed";
|
|
5846
|
-
readonly PASSWORD_RESET_REQUESTED: "password_reset_requested";
|
|
5847
|
-
readonly PASSWORD_RESET_COMPLETED: "password_reset_completed";
|
|
5848
|
-
readonly PASSWORD_CHANGED: "password_changed";
|
|
5849
|
-
readonly EMAIL_VERIFICATION_SENT: "email_verification_sent";
|
|
5850
|
-
readonly EMAIL_VERIFIED: "email_verified";
|
|
5851
|
-
readonly EMAIL_CHANGED: "email_changed";
|
|
5852
|
-
readonly PROFILE_UPDATED: "profile_updated";
|
|
5853
|
-
readonly PROFILE_IMAGE_UPDATED: "profile_image_updated";
|
|
5854
|
-
readonly SESSION_CREATED: "session_created";
|
|
5855
|
-
readonly SESSION_REVOKED: "session_revoked";
|
|
5856
|
-
readonly ALL_SESSIONS_REVOKED: "all_sessions_revoked";
|
|
5857
|
-
readonly TWO_FACTOR_ENABLED: "two_factor_enabled";
|
|
5858
|
-
readonly TWO_FACTOR_DISABLED: "two_factor_disabled";
|
|
5859
|
-
readonly TWO_FACTOR_VERIFIED: "two_factor_verified";
|
|
5860
|
-
readonly ACCOUNT_LINKED: "account_linked";
|
|
5861
|
-
readonly ACCOUNT_UNLINKED: "account_unlinked";
|
|
5862
|
-
readonly USER_BANNED: "user_banned";
|
|
5863
|
-
readonly USER_UNBANNED: "user_unbanned";
|
|
5864
|
-
readonly USER_DELETED: "user_deleted";
|
|
5865
|
-
readonly USER_IMPERSONATED: "user_impersonated";
|
|
5866
|
-
readonly USER_IMPERSONATED_STOPPED: "user_impersonated_stopped";
|
|
5867
|
-
};
|
|
5868
|
-
}>;
|
|
5869
|
-
dashAcceptInvitation: better_auth0.StrictEndpoint<"/dash/accept-invitation", {
|
|
5667
|
+
}, EventTypesResponse>;
|
|
5668
|
+
dashAcceptInvitation: _$better_call0.StrictEndpoint<"/dash/accept-invitation", {
|
|
5870
5669
|
method: "GET";
|
|
5871
5670
|
query: zod.ZodObject<{
|
|
5872
5671
|
token: zod.ZodString;
|
|
5873
5672
|
}, zod_v4_core0.$strip>;
|
|
5874
5673
|
}, {
|
|
5875
|
-
status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") |
|
|
5674
|
+
status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | _$better_call0.Status;
|
|
5876
5675
|
body: ({
|
|
5877
5676
|
message?: string;
|
|
5878
5677
|
code?: string;
|
|
@@ -5885,7 +5684,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5885
5684
|
stack?: string;
|
|
5886
5685
|
cause?: unknown;
|
|
5887
5686
|
}>;
|
|
5888
|
-
dashCompleteInvitation:
|
|
5687
|
+
dashCompleteInvitation: _$better_call0.StrictEndpoint<"/dash/complete-invitation", {
|
|
5889
5688
|
method: "POST";
|
|
5890
5689
|
body: zod.ZodObject<{
|
|
5891
5690
|
token: zod.ZodString;
|
|
@@ -5895,28 +5694,22 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5895
5694
|
accessToken: zod.ZodOptional<zod.ZodString>;
|
|
5896
5695
|
refreshToken: zod.ZodOptional<zod.ZodString>;
|
|
5897
5696
|
}, zod_v4_core0.$strip>;
|
|
5898
|
-
},
|
|
5899
|
-
|
|
5900
|
-
redirectUrl: better_auth0.BaseURLConfig;
|
|
5901
|
-
}>;
|
|
5902
|
-
dashCheckUserExists: better_auth0.StrictEndpoint<"/dash/check-user-exists", {
|
|
5697
|
+
}, DashCompleteInvitationResponse>;
|
|
5698
|
+
dashCheckUserExists: _$better_call0.StrictEndpoint<"/dash/check-user-exists", {
|
|
5903
5699
|
method: "POST";
|
|
5904
5700
|
body: zod.ZodObject<{
|
|
5905
5701
|
email: zod.ZodEmail;
|
|
5906
5702
|
}, zod_v4_core0.$strip>;
|
|
5907
|
-
},
|
|
5908
|
-
|
|
5909
|
-
userId: string | null;
|
|
5910
|
-
}>;
|
|
5911
|
-
listDashOrganizationDirectories: better_auth0.StrictEndpoint<"/dash/organization/:id/directories", {
|
|
5703
|
+
}, DashCheckUserExistsResponse>;
|
|
5704
|
+
listDashOrganizationDirectories: _$better_call0.StrictEndpoint<"/dash/organization/:id/directories", {
|
|
5912
5705
|
method: "GET";
|
|
5913
|
-
use: ((inputContext:
|
|
5706
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5914
5707
|
payload: Record<string, unknown>;
|
|
5915
5708
|
}>)[];
|
|
5916
|
-
},
|
|
5917
|
-
createDashOrganizationDirectory:
|
|
5709
|
+
}, DashDirectoryItem[]>;
|
|
5710
|
+
createDashOrganizationDirectory: _$better_call0.StrictEndpoint<"/dash/organization/directory/create", {
|
|
5918
5711
|
method: "POST";
|
|
5919
|
-
use: ((inputContext:
|
|
5712
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5920
5713
|
payload: {
|
|
5921
5714
|
organizationId: string;
|
|
5922
5715
|
};
|
|
@@ -5925,15 +5718,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5925
5718
|
providerId: zod.ZodString;
|
|
5926
5719
|
ownerUserId: zod.ZodString;
|
|
5927
5720
|
}, zod_v4_core0.$strip>;
|
|
5928
|
-
},
|
|
5929
|
-
|
|
5930
|
-
providerId: string;
|
|
5931
|
-
scimEndpoint: string;
|
|
5932
|
-
scimToken: string;
|
|
5933
|
-
}>;
|
|
5934
|
-
deleteDashOrganizationDirectory: better_auth0.StrictEndpoint<"/dash/organization/directory/delete", {
|
|
5721
|
+
}, DashDirectoryCreateResponse>;
|
|
5722
|
+
deleteDashOrganizationDirectory: _$better_call0.StrictEndpoint<"/dash/organization/directory/delete", {
|
|
5935
5723
|
method: "POST";
|
|
5936
|
-
use: ((inputContext:
|
|
5724
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5937
5725
|
payload: {
|
|
5938
5726
|
organizationId: string;
|
|
5939
5727
|
};
|
|
@@ -5941,12 +5729,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5941
5729
|
body: zod.ZodObject<{
|
|
5942
5730
|
providerId: zod.ZodString;
|
|
5943
5731
|
}, zod_v4_core0.$strip>;
|
|
5944
|
-
},
|
|
5945
|
-
|
|
5946
|
-
}>;
|
|
5947
|
-
regenerateDashDirectoryToken: better_auth0.StrictEndpoint<"/dash/organization/directory/regenerate-token", {
|
|
5732
|
+
}, DashDirectoryDeleteResponse>;
|
|
5733
|
+
regenerateDashDirectoryToken: _$better_call0.StrictEndpoint<"/dash/organization/directory/regenerate-token", {
|
|
5948
5734
|
method: "POST";
|
|
5949
|
-
use: ((inputContext:
|
|
5735
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5950
5736
|
payload: {
|
|
5951
5737
|
organizationId: string;
|
|
5952
5738
|
};
|
|
@@ -5954,14 +5740,10 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5954
5740
|
body: zod.ZodObject<{
|
|
5955
5741
|
providerId: zod.ZodString;
|
|
5956
5742
|
}, zod_v4_core0.$strip>;
|
|
5957
|
-
},
|
|
5958
|
-
|
|
5959
|
-
scimToken: string;
|
|
5960
|
-
scimEndpoint: string;
|
|
5961
|
-
}>;
|
|
5962
|
-
dashExecuteAdapter: better_auth0.StrictEndpoint<"/dash/execute-adapter", {
|
|
5743
|
+
}, DashDirectoryRegenerateTokenResponse>;
|
|
5744
|
+
dashExecuteAdapter: _$better_call0.StrictEndpoint<"/dash/execute-adapter", {
|
|
5963
5745
|
method: "POST";
|
|
5964
|
-
use: ((inputContext:
|
|
5746
|
+
use: ((inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
5965
5747
|
payload: Record<string, unknown>;
|
|
5966
5748
|
}>)[];
|
|
5967
5749
|
body: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -5972,12 +5754,12 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5972
5754
|
value: zod.ZodUnknown;
|
|
5973
5755
|
operator: zod.ZodOptional<zod.ZodEnum<{
|
|
5974
5756
|
in: "in";
|
|
5975
|
-
gte: "gte";
|
|
5976
5757
|
eq: "eq";
|
|
5977
5758
|
ne: "ne";
|
|
5759
|
+
gt: "gt";
|
|
5760
|
+
gte: "gte";
|
|
5978
5761
|
lt: "lt";
|
|
5979
5762
|
lte: "lte";
|
|
5980
|
-
gt: "gt";
|
|
5981
5763
|
contains: "contains";
|
|
5982
5764
|
starts_with: "starts_with";
|
|
5983
5765
|
ends_with: "ends_with";
|
|
@@ -5997,12 +5779,12 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5997
5779
|
value: zod.ZodUnknown;
|
|
5998
5780
|
operator: zod.ZodOptional<zod.ZodEnum<{
|
|
5999
5781
|
in: "in";
|
|
6000
|
-
gte: "gte";
|
|
6001
5782
|
eq: "eq";
|
|
6002
5783
|
ne: "ne";
|
|
5784
|
+
gt: "gt";
|
|
5785
|
+
gte: "gte";
|
|
6003
5786
|
lt: "lt";
|
|
6004
5787
|
lte: "lte";
|
|
6005
|
-
gt: "gt";
|
|
6006
5788
|
contains: "contains";
|
|
6007
5789
|
starts_with: "starts_with";
|
|
6008
5790
|
ends_with: "ends_with";
|
|
@@ -6034,12 +5816,12 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
6034
5816
|
value: zod.ZodUnknown;
|
|
6035
5817
|
operator: zod.ZodOptional<zod.ZodEnum<{
|
|
6036
5818
|
in: "in";
|
|
6037
|
-
gte: "gte";
|
|
6038
5819
|
eq: "eq";
|
|
6039
5820
|
ne: "ne";
|
|
5821
|
+
gt: "gt";
|
|
5822
|
+
gte: "gte";
|
|
6040
5823
|
lt: "lt";
|
|
6041
5824
|
lte: "lte";
|
|
6042
|
-
gt: "gt";
|
|
6043
5825
|
contains: "contains";
|
|
6044
5826
|
starts_with: "starts_with";
|
|
6045
5827
|
ends_with: "ends_with";
|
|
@@ -6058,12 +5840,12 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
6058
5840
|
value: zod.ZodUnknown;
|
|
6059
5841
|
operator: zod.ZodOptional<zod.ZodEnum<{
|
|
6060
5842
|
in: "in";
|
|
6061
|
-
gte: "gte";
|
|
6062
5843
|
eq: "eq";
|
|
6063
5844
|
ne: "ne";
|
|
5845
|
+
gt: "gt";
|
|
5846
|
+
gte: "gte";
|
|
6064
5847
|
lt: "lt";
|
|
6065
5848
|
lte: "lte";
|
|
6066
|
-
gt: "gt";
|
|
6067
5849
|
contains: "contains";
|
|
6068
5850
|
starts_with: "starts_with";
|
|
6069
5851
|
ends_with: "ends_with";
|
|
@@ -6074,13 +5856,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
6074
5856
|
}>>;
|
|
6075
5857
|
}, zod_v4_core0.$strip>>>;
|
|
6076
5858
|
}, zod_v4_core0.$strip>], "action">;
|
|
6077
|
-
},
|
|
6078
|
-
result: unknown;
|
|
6079
|
-
count?: undefined;
|
|
6080
|
-
} | {
|
|
6081
|
-
count: number;
|
|
6082
|
-
result?: undefined;
|
|
6083
|
-
}>;
|
|
5859
|
+
}, DashExecuteAdapterResponse>;
|
|
6084
5860
|
};
|
|
6085
5861
|
schema: O extends {
|
|
6086
5862
|
activityTracking: {
|
|
@@ -6091,10 +5867,11 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
6091
5867
|
fields: {
|
|
6092
5868
|
lastActiveAt: {
|
|
6093
5869
|
type: "date";
|
|
5870
|
+
required: false;
|
|
6094
5871
|
};
|
|
6095
5872
|
};
|
|
6096
5873
|
};
|
|
6097
5874
|
} : {};
|
|
6098
5875
|
};
|
|
6099
5876
|
//#endregion
|
|
6100
|
-
export { type APIError, CHALLENGE_TTL, type CompromisedPasswordResult, type CredentialStuffingResult, DEFAULT_DIFFICULTY, type DashOptions, DashOptionsInternal,
|
|
5877
|
+
export { type APIError, CHALLENGE_TTL, type CompromisedPasswordResult, type CredentialStuffingResult, DBField, DEFAULT_DIFFICULTY, DashAddTeamMemberResponse, DashBanManyResponse, DashCheckUserByEmailResponse, DashCheckUserExistsResponse, DashCompleteInvitationResponse, DashConfigResponse, DashCreateOrganizationBody, DashCreateOrganizationResponse, DashCreateTeamResponse, DashCreateUserResponse, DashDeleteManyUsersResponse, DashDirectoryCreateResponse, DashDirectoryDeleteResponse, DashDirectoryItem, DashDirectoryRegenerateTokenResponse, DashExecuteAdapterCountResponse, DashExecuteAdapterFindManyResponse, DashExecuteAdapterFindOneResponse, DashExecuteAdapterMutationResponse, DashExecuteAdapterResponse, DashExportOrganizationsResponse, DashIdRow, DashInviteMemberResponse, DashMaybeSuccessResponse, type DashOptions, DashOptionsInternal, DashOrganizationAddMemberResponse, DashOrganizationDeleteManyResponse, DashOrganizationDetailResponse, DashOrganizationInvitationItem, DashOrganizationInvitationListResponse, DashOrganizationInvitationStatusItem, DashOrganizationListResponse, DashOrganizationMember, DashOrganizationMemberListItem, DashOrganizationMemberListResponse, DashOrganizationMemberUser, DashOrganizationOptionsResponse, DashOrganizationTeamItem, DashOrganizationTeamListResponse, DashOrganizationUpdateMemberRoleResponse, DashOrganizationUpdateResponse, DashSendManyVerificationEmailsResponse, DashSessionRevokeManyResponse, DashSsoCreateProviderResponse, DashSsoDeleteResponse, DashSsoMarkDomainVerifiedResponse, DashSsoProviderItem, DashSsoProviderSummary, DashSsoUpdateProviderResponse, DashSsoVerificationTokenResponse, DashSsoVerifyDomainResponse, DashSuccessResponse, DashTeam, DashTeamMember, DashTeamMemberListResponse, DashTwoFactorBackupCodesResponse, DashTwoFactorEnableResponse, DashTwoFactorTotpViewResponse, DashUpdateTeamResponse, DashUpdateUserResponse, DashUserDetailsResponse, DashUserGraphDataResponse, DashUserListResponse, DashUserOrganizationsResponse, DashUserRetentionDataResponse, DashUserStatsResponse, DashValidateResponse, DirectorySyncConnection, EMAIL_TEMPLATES, type EmailConfig, type EmailTemplateId, type EmailTemplateVariables, type Endpoint, type EndpointOptions, type EventLocation, type EventTypesResponse, type ImpossibleTravelResult, InfraEndpointContext, InfraPluginConnectionOptions, InfraPluginConnectionOptionsInternal, LocationData, LocationDataContext, type PoWChallenge, type PoWSolution, SCIMPlugin, type SMSConfig, type SMSTemplateId, type SMSTemplateVariables, SMS_TEMPLATES, type SecurityEvent, type SecurityEventType, type SecurityOptions, type SecurityVerdict, type SendBulkEmailsOptions, type SendBulkEmailsResult, type SendEmailOptions, type SendEmailResult, type SendSMSOptions, type SendSMSResult, type SentinelOptions, SentinelOptionsInternal, type StaleUserResult, type ThresholdConfig, USER_EVENT_TYPES, type UserEvent, type UserEventType, type UserEventsResponse, createEmailSender, createSMSSender, dash, decodePoWChallenge, encodePoWSolution, normalizeEmail, sendBulkEmails, sendEmail, sendSMS, sentinel, solvePoWChallenge, verifyPoWSolution };
|