@better-auth/infra 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.mts +4 -5
- package/dist/{dash-client-B6U89e1S.d.mts → dash-client-CZzJyRrV.d.mts} +1 -3
- package/dist/index.d.mts +583 -563
- package/dist/index.mjs +186 -56
- package/dist/native.d.mts +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,17 +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
2
|
import { Account, AuthContext, BetterAuthPlugin, GenericEndpointContext, Session, User } from "better-auth";
|
|
4
|
-
import * as _$_better_fetch_fetch0 from "@better-fetch/fetch";
|
|
5
3
|
import { createFetch } from "@better-fetch/fetch";
|
|
6
|
-
import * as _$jose from "jose";
|
|
7
4
|
import * as zod from "zod";
|
|
8
5
|
import z$1 from "zod";
|
|
9
|
-
import * as
|
|
6
|
+
import * as better_call0 from "better-call";
|
|
10
7
|
import { APIError, Endpoint, EndpointOptions } from "better-call";
|
|
11
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
12
8
|
import { DBFieldAttribute } from "better-auth/db";
|
|
9
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
13
10
|
import { Invitation, Member, Organization, Team, TeamMember } from "better-auth/plugins";
|
|
14
|
-
export * from "better-call";
|
|
11
|
+
export type * from "better-call";
|
|
15
12
|
|
|
16
13
|
//#region src/identification.d.ts
|
|
17
14
|
interface IPLocation {
|
|
@@ -44,7 +41,6 @@ interface Identification {
|
|
|
44
41
|
confidence: number;
|
|
45
42
|
incognito: boolean;
|
|
46
43
|
bot: "notDetected" | "detected" | "unknown";
|
|
47
|
-
isAnonymous: boolean;
|
|
48
44
|
}
|
|
49
45
|
//#endregion
|
|
50
46
|
//#region src/sentinel/security.d.ts
|
|
@@ -175,7 +171,7 @@ type SecurityEventType = "unknown_device" | "credential_stuffing" | "impossible_
|
|
|
175
171
|
//#region src/sentinel/sentinel.d.ts
|
|
176
172
|
declare const sentinel: (options?: SentinelOptions) => {
|
|
177
173
|
id: "sentinel";
|
|
178
|
-
init(ctx:
|
|
174
|
+
init(ctx: import("better-auth").AuthContext): {
|
|
179
175
|
options: {
|
|
180
176
|
emailValidation: {
|
|
181
177
|
enabled?: boolean;
|
|
@@ -197,7 +193,7 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
197
193
|
emailVerified: boolean;
|
|
198
194
|
name: string;
|
|
199
195
|
image?: string | null | undefined;
|
|
200
|
-
} & Record<string, unknown>, ctx:
|
|
196
|
+
} & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null): Promise<{
|
|
201
197
|
data: {
|
|
202
198
|
email: string;
|
|
203
199
|
id: string;
|
|
@@ -216,7 +212,28 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
216
212
|
emailVerified: boolean;
|
|
217
213
|
name: string;
|
|
218
214
|
image?: string | null | undefined;
|
|
219
|
-
} & Record<string, unknown>, ctx:
|
|
215
|
+
} & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
216
|
+
};
|
|
217
|
+
update: {
|
|
218
|
+
before(user: Partial<{
|
|
219
|
+
id: string;
|
|
220
|
+
createdAt: Date;
|
|
221
|
+
updatedAt: Date;
|
|
222
|
+
email: string;
|
|
223
|
+
emailVerified: boolean;
|
|
224
|
+
name: string;
|
|
225
|
+
image?: string | null | undefined;
|
|
226
|
+
}> & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null): Promise<{
|
|
227
|
+
data: {
|
|
228
|
+
email: string;
|
|
229
|
+
id?: string | undefined;
|
|
230
|
+
createdAt?: Date | undefined;
|
|
231
|
+
updatedAt?: Date | undefined;
|
|
232
|
+
emailVerified?: boolean | undefined;
|
|
233
|
+
name?: string | undefined;
|
|
234
|
+
image?: string | null | undefined;
|
|
235
|
+
};
|
|
236
|
+
} | undefined>;
|
|
220
237
|
};
|
|
221
238
|
};
|
|
222
239
|
session: {
|
|
@@ -230,7 +247,7 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
230
247
|
token: string;
|
|
231
248
|
ipAddress?: string | null | undefined;
|
|
232
249
|
userAgent?: string | null | undefined;
|
|
233
|
-
} & Record<string, unknown>, ctx:
|
|
250
|
+
} & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
234
251
|
after(session: {
|
|
235
252
|
id: string;
|
|
236
253
|
createdAt: Date;
|
|
@@ -240,7 +257,7 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
240
257
|
token: string;
|
|
241
258
|
ipAddress?: string | null | undefined;
|
|
242
259
|
userAgent?: string | null | undefined;
|
|
243
|
-
} & Record<string, unknown>, ctx:
|
|
260
|
+
} & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
244
261
|
};
|
|
245
262
|
};
|
|
246
263
|
};
|
|
@@ -248,8 +265,8 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
248
265
|
};
|
|
249
266
|
hooks: {
|
|
250
267
|
before: ({
|
|
251
|
-
matcher: (context:
|
|
252
|
-
handler: (inputContext:
|
|
268
|
+
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
269
|
+
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
253
270
|
context: {
|
|
254
271
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
255
272
|
path: string;
|
|
@@ -259,12 +276,12 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
259
276
|
request: Request | undefined;
|
|
260
277
|
headers: Headers | undefined;
|
|
261
278
|
setHeader: ((key: string, value: string) => void) & ((key: string, value: string) => void);
|
|
262
|
-
setStatus: (status:
|
|
279
|
+
setStatus: (status: import("better-call").Status) => void;
|
|
263
280
|
getHeader: ((key: string) => string | null) & ((key: string) => string | null);
|
|
264
|
-
getCookie: (key: string, prefix?:
|
|
265
|
-
getSignedCookie: (key: string, secret: string, prefix?:
|
|
266
|
-
setCookie: (key: string, value: string, options?:
|
|
267
|
-
setSignedCookie: (key: string, value: string, secret: string, options?:
|
|
281
|
+
getCookie: (key: string, prefix?: import("better-call").CookiePrefixOptions) => string | null;
|
|
282
|
+
getSignedCookie: (key: string, secret: string, prefix?: import("better-call").CookiePrefixOptions) => Promise<string | null | false>;
|
|
283
|
+
setCookie: (key: string, value: string, options?: import("better-call").CookieOptions) => string;
|
|
284
|
+
setSignedCookie: (key: string, value: string, secret: string, options?: import("better-call").CookieOptions) => Promise<string>;
|
|
268
285
|
json: (<R extends Record<string, any> | null>(json: R, routerResponse?: {
|
|
269
286
|
status?: number;
|
|
270
287
|
headers?: Record<string, string>;
|
|
@@ -280,14 +297,14 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
280
297
|
} & {
|
|
281
298
|
returned?: unknown | undefined;
|
|
282
299
|
responseHeaders?: Headers | undefined;
|
|
283
|
-
getPlugin: <ID extends
|
|
300
|
+
getPlugin: <ID extends import("better-auth").BetterAuthPluginRegistryIdentifier | import("better-auth").LiteralString, PluginOptions extends never>(pluginId: ID) => (ID extends keyof import("better-auth").BetterAuthPluginRegistry<unknown, unknown> ? import("better-auth").BetterAuthPluginRegistry<import("better-auth").BetterAuthOptions, PluginOptions>[ID] extends {
|
|
284
301
|
creator: infer C;
|
|
285
302
|
} ? C extends ((...args: any[]) => infer R) ? R : never : never : BetterAuthPlugin) | null;
|
|
286
|
-
hasPlugin: <ID extends
|
|
303
|
+
hasPlugin: <ID extends import("better-auth").BetterAuthPluginRegistryIdentifier | import("better-auth").LiteralString>(pluginId: ID) => ID extends never ? true : boolean;
|
|
287
304
|
appName: string;
|
|
288
305
|
baseURL: string;
|
|
289
306
|
version: string;
|
|
290
|
-
options:
|
|
307
|
+
options: import("better-auth").BetterAuthOptions;
|
|
291
308
|
trustedOrigins: string[];
|
|
292
309
|
trustedProviders: string[];
|
|
293
310
|
isTrustedOrigin: (url: string, settings?: {
|
|
@@ -360,20 +377,20 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
360
377
|
image?: string | null | undefined;
|
|
361
378
|
} & Record<string, any>;
|
|
362
379
|
} | null) => void;
|
|
363
|
-
socialProviders:
|
|
364
|
-
authCookies:
|
|
365
|
-
logger: ReturnType<(options?:
|
|
380
|
+
socialProviders: import("better-auth").OAuthProvider[];
|
|
381
|
+
authCookies: import("better-auth").BetterAuthCookies;
|
|
382
|
+
logger: ReturnType<(options?: import("better-auth").Logger | undefined) => import("better-auth").InternalLogger>;
|
|
366
383
|
rateLimit: {
|
|
367
384
|
enabled: boolean;
|
|
368
385
|
window: number;
|
|
369
386
|
max: number;
|
|
370
387
|
storage: "memory" | "database" | "secondary-storage";
|
|
371
|
-
} & Omit<
|
|
372
|
-
adapter:
|
|
373
|
-
internalAdapter:
|
|
374
|
-
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<
|
|
388
|
+
} & Omit<import("better-auth").BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
389
|
+
adapter: import("better-auth").DBAdapter<import("better-auth").BetterAuthOptions>;
|
|
390
|
+
internalAdapter: import("better-auth").InternalAdapter<import("better-auth").BetterAuthOptions>;
|
|
391
|
+
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<import("better-call").CookieOptions> | undefined) => import("better-auth").BetterAuthCookie;
|
|
375
392
|
secret: string;
|
|
376
|
-
secretConfig: string |
|
|
393
|
+
secretConfig: string | import("better-auth").SecretConfig;
|
|
377
394
|
sessionConfig: {
|
|
378
395
|
updateAge: number;
|
|
379
396
|
expiresIn: number;
|
|
@@ -384,10 +401,10 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
384
401
|
};
|
|
385
402
|
};
|
|
386
403
|
generateId: (options: {
|
|
387
|
-
model:
|
|
404
|
+
model: import("better-auth").ModelNames;
|
|
388
405
|
size?: number | undefined;
|
|
389
406
|
}) => string | false;
|
|
390
|
-
secondaryStorage:
|
|
407
|
+
secondaryStorage: import("better-auth").SecondaryStorage | undefined;
|
|
391
408
|
password: {
|
|
392
409
|
hash: (password: string) => Promise<string>;
|
|
393
410
|
verify: (data: {
|
|
@@ -398,9 +415,9 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
398
415
|
minPasswordLength: number;
|
|
399
416
|
maxPasswordLength: number;
|
|
400
417
|
};
|
|
401
|
-
checkPassword: (userId: string, ctx:
|
|
418
|
+
checkPassword: (userId: string, ctx: import("better-auth").GenericEndpointContext<import("better-auth").BetterAuthOptions>) => Promise<boolean>;
|
|
402
419
|
};
|
|
403
|
-
tables:
|
|
420
|
+
tables: import("better-auth").BetterAuthDBSchema;
|
|
404
421
|
runMigrations: () => Promise<void>;
|
|
405
422
|
publishTelemetry: (event: {
|
|
406
423
|
type: string;
|
|
@@ -410,22 +427,22 @@ declare const sentinel: (options?: SentinelOptions) => {
|
|
|
410
427
|
skipOriginCheck: boolean | string[];
|
|
411
428
|
skipCSRFCheck: boolean;
|
|
412
429
|
runInBackground: (promise: Promise<unknown>) => void;
|
|
413
|
-
runInBackgroundOrAwait: (promise: Promise<unknown> | void) =>
|
|
430
|
+
runInBackgroundOrAwait: (promise: Promise<unknown> | void) => import("better-auth").Awaitable<unknown>;
|
|
414
431
|
};
|
|
415
|
-
redirect: (url: string) =>
|
|
416
|
-
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") |
|
|
432
|
+
redirect: (url: string) => import("better-call").APIError;
|
|
433
|
+
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") | import("better-call").Status, body?: {
|
|
417
434
|
message?: string;
|
|
418
435
|
code?: string;
|
|
419
|
-
} & Record<string, any>, headers?: HeadersInit) =>
|
|
436
|
+
} & Record<string, any>, headers?: HeadersInit) => import("better-call").APIError;
|
|
420
437
|
};
|
|
421
438
|
} | undefined>;
|
|
422
439
|
} | {
|
|
423
|
-
matcher: (context:
|
|
424
|
-
handler: (inputContext:
|
|
440
|
+
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
441
|
+
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
|
|
425
442
|
})[];
|
|
426
443
|
after: {
|
|
427
|
-
matcher: (ctx:
|
|
428
|
-
handler: (inputContext:
|
|
444
|
+
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
445
|
+
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
|
|
429
446
|
}[];
|
|
430
447
|
};
|
|
431
448
|
};
|
|
@@ -512,7 +529,7 @@ interface DashOptionsInternal extends Omit<DashOptions, keyof InfraPluginConnect
|
|
|
512
529
|
*
|
|
513
530
|
* @internal
|
|
514
531
|
*/
|
|
515
|
-
$api: ReturnType<typeof
|
|
532
|
+
$api: ReturnType<typeof import("@better-fetch/fetch").createFetch>;
|
|
516
533
|
}
|
|
517
534
|
/**
|
|
518
535
|
* Resolved dash options from {@link resolveDashOptions} / plugin-stored config; excludes injected `$api`.
|
|
@@ -753,7 +770,7 @@ interface DashIdRow {
|
|
|
753
770
|
id: string;
|
|
754
771
|
}
|
|
755
772
|
//#endregion
|
|
756
|
-
//#region ../../node_modules/.bun/@better-auth+scim@1.6.9+
|
|
773
|
+
//#region ../../node_modules/.bun/@better-auth+scim@1.6.9+dd812cddb6773b08/node_modules/@better-auth/scim/dist/index.d.mts
|
|
757
774
|
//#region src/types.d.ts
|
|
758
775
|
interface SCIMProvider {
|
|
759
776
|
id: string;
|
|
@@ -825,7 +842,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
825
842
|
id: "scim";
|
|
826
843
|
version: string;
|
|
827
844
|
endpoints: {
|
|
828
|
-
generateSCIMToken:
|
|
845
|
+
generateSCIMToken: better_call0.StrictEndpoint<"/scim/generate-token", {
|
|
829
846
|
method: "POST";
|
|
830
847
|
body: zod.ZodObject<{
|
|
831
848
|
providerId: zod.ZodString;
|
|
@@ -855,7 +872,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
855
872
|
};
|
|
856
873
|
};
|
|
857
874
|
};
|
|
858
|
-
use: ((inputContext:
|
|
875
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
859
876
|
session: {
|
|
860
877
|
session: Record<string, any> & {
|
|
861
878
|
id: string;
|
|
@@ -881,9 +898,9 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
881
898
|
}, {
|
|
882
899
|
scimToken: string;
|
|
883
900
|
}>;
|
|
884
|
-
listSCIMProviderConnections:
|
|
901
|
+
listSCIMProviderConnections: better_call0.StrictEndpoint<"/scim/list-provider-connections", {
|
|
885
902
|
method: "GET";
|
|
886
|
-
use: ((inputContext:
|
|
903
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
887
904
|
session: {
|
|
888
905
|
session: Record<string, any> & {
|
|
889
906
|
id: string;
|
|
@@ -952,9 +969,9 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
952
969
|
organizationId: string | null;
|
|
953
970
|
}[];
|
|
954
971
|
}>;
|
|
955
|
-
getSCIMProviderConnection:
|
|
972
|
+
getSCIMProviderConnection: better_call0.StrictEndpoint<"/scim/get-provider-connection", {
|
|
956
973
|
method: "GET";
|
|
957
|
-
use: ((inputContext:
|
|
974
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
958
975
|
session: {
|
|
959
976
|
session: Record<string, any> & {
|
|
960
977
|
id: string;
|
|
@@ -1022,9 +1039,9 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1022
1039
|
providerId: string;
|
|
1023
1040
|
organizationId: string | null;
|
|
1024
1041
|
}>;
|
|
1025
|
-
deleteSCIMProviderConnection:
|
|
1042
|
+
deleteSCIMProviderConnection: better_call0.StrictEndpoint<"/scim/delete-provider-connection", {
|
|
1026
1043
|
method: "POST";
|
|
1027
|
-
use: ((inputContext:
|
|
1044
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1028
1045
|
session: {
|
|
1029
1046
|
session: Record<string, any> & {
|
|
1030
1047
|
id: string;
|
|
@@ -1083,7 +1100,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1083
1100
|
}, {
|
|
1084
1101
|
success: boolean;
|
|
1085
1102
|
}>;
|
|
1086
|
-
getSCIMUser:
|
|
1103
|
+
getSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1087
1104
|
method: "GET";
|
|
1088
1105
|
metadata: {
|
|
1089
1106
|
allowedMediaTypes: string[];
|
|
@@ -1334,7 +1351,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1334
1351
|
};
|
|
1335
1352
|
scope: "server";
|
|
1336
1353
|
};
|
|
1337
|
-
use: ((inputContext:
|
|
1354
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1338
1355
|
authSCIMToken: string;
|
|
1339
1356
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
1340
1357
|
}>)[];
|
|
@@ -1359,7 +1376,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1359
1376
|
}[];
|
|
1360
1377
|
schemas: string[];
|
|
1361
1378
|
}>;
|
|
1362
|
-
createSCIMUser:
|
|
1379
|
+
createSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users", {
|
|
1363
1380
|
method: "POST";
|
|
1364
1381
|
body: zod.ZodObject<{
|
|
1365
1382
|
userName: zod.ZodString;
|
|
@@ -1623,7 +1640,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1623
1640
|
};
|
|
1624
1641
|
scope: "server";
|
|
1625
1642
|
};
|
|
1626
|
-
use: ((inputContext:
|
|
1643
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1627
1644
|
authSCIMToken: string;
|
|
1628
1645
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
1629
1646
|
}>)[];
|
|
@@ -1648,7 +1665,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1648
1665
|
}[];
|
|
1649
1666
|
schemas: string[];
|
|
1650
1667
|
}>;
|
|
1651
|
-
patchSCIMUser:
|
|
1668
|
+
patchSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1652
1669
|
method: "PATCH";
|
|
1653
1670
|
body: zod.ZodObject<{
|
|
1654
1671
|
schemas: zod.ZodArray<zod.ZodString>;
|
|
@@ -1837,12 +1854,12 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
1837
1854
|
};
|
|
1838
1855
|
scope: "server";
|
|
1839
1856
|
};
|
|
1840
|
-
use: ((inputContext:
|
|
1857
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1841
1858
|
authSCIMToken: string;
|
|
1842
1859
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
1843
1860
|
}>)[];
|
|
1844
1861
|
}, void>;
|
|
1845
|
-
deleteSCIMUser:
|
|
1862
|
+
deleteSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
1846
1863
|
method: "DELETE";
|
|
1847
1864
|
metadata: {
|
|
1848
1865
|
allowedMediaTypes: string[];
|
|
@@ -2019,12 +2036,12 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2019
2036
|
};
|
|
2020
2037
|
scope: "server";
|
|
2021
2038
|
};
|
|
2022
|
-
use: ((inputContext:
|
|
2039
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2023
2040
|
authSCIMToken: string;
|
|
2024
2041
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
2025
2042
|
}>)[];
|
|
2026
2043
|
}, void>;
|
|
2027
|
-
updateSCIMUser:
|
|
2044
|
+
updateSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
|
|
2028
2045
|
method: "PUT";
|
|
2029
2046
|
body: zod.ZodObject<{
|
|
2030
2047
|
userName: zod.ZodString;
|
|
@@ -2288,7 +2305,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2288
2305
|
};
|
|
2289
2306
|
scope: "server";
|
|
2290
2307
|
};
|
|
2291
|
-
use: ((inputContext:
|
|
2308
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2292
2309
|
authSCIMToken: string;
|
|
2293
2310
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
2294
2311
|
}>)[];
|
|
@@ -2313,7 +2330,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2313
2330
|
}[];
|
|
2314
2331
|
schemas: string[];
|
|
2315
2332
|
}>;
|
|
2316
|
-
listSCIMUsers:
|
|
2333
|
+
listSCIMUsers: better_call0.StrictEndpoint<"/scim/v2/Users", {
|
|
2317
2334
|
method: "GET";
|
|
2318
2335
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
2319
2336
|
filter: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2584,7 +2601,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2584
2601
|
};
|
|
2585
2602
|
scope: "server";
|
|
2586
2603
|
};
|
|
2587
|
-
use: ((inputContext:
|
|
2604
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2588
2605
|
authSCIMToken: string;
|
|
2589
2606
|
scimProvider: Omit<SCIMProvider, "id">;
|
|
2590
2607
|
}>)[];
|
|
@@ -2621,7 +2638,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2621
2638
|
schemas: string[];
|
|
2622
2639
|
}[];
|
|
2623
2640
|
}>;
|
|
2624
|
-
getSCIMServiceProviderConfig:
|
|
2641
|
+
getSCIMServiceProviderConfig: better_call0.StrictEndpoint<"/scim/v2/ServiceProviderConfig", {
|
|
2625
2642
|
method: "GET";
|
|
2626
2643
|
metadata: {
|
|
2627
2644
|
allowedMediaTypes: string[];
|
|
@@ -2923,7 +2940,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
2923
2940
|
resourceType: string;
|
|
2924
2941
|
};
|
|
2925
2942
|
}>;
|
|
2926
|
-
getSCIMSchemas:
|
|
2943
|
+
getSCIMSchemas: better_call0.StrictEndpoint<"/scim/v2/Schemas", {
|
|
2927
2944
|
method: "GET";
|
|
2928
2945
|
metadata: {
|
|
2929
2946
|
allowedMediaTypes: string[];
|
|
@@ -3300,7 +3317,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
3300
3317
|
})[];
|
|
3301
3318
|
}[];
|
|
3302
3319
|
}>;
|
|
3303
|
-
getSCIMSchema:
|
|
3320
|
+
getSCIMSchema: better_call0.StrictEndpoint<"/scim/v2/Schemas/:schemaId", {
|
|
3304
3321
|
method: "GET";
|
|
3305
3322
|
metadata: {
|
|
3306
3323
|
allowedMediaTypes: string[];
|
|
@@ -3668,7 +3685,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
3668
3685
|
caseExact?: undefined;
|
|
3669
3686
|
})[];
|
|
3670
3687
|
}>;
|
|
3671
|
-
getSCIMResourceTypes:
|
|
3688
|
+
getSCIMResourceTypes: better_call0.StrictEndpoint<"/scim/v2/ResourceTypes", {
|
|
3672
3689
|
method: "GET";
|
|
3673
3690
|
metadata: {
|
|
3674
3691
|
allowedMediaTypes: string[];
|
|
@@ -3921,7 +3938,7 @@ declare const scim: (options?: SCIMOptions) => {
|
|
|
3921
3938
|
schema: string;
|
|
3922
3939
|
}[];
|
|
3923
3940
|
}>;
|
|
3924
|
-
getSCIMResourceType:
|
|
3941
|
+
getSCIMResourceType: better_call0.StrictEndpoint<"/scim/v2/ResourceTypes/:resourceTypeId", {
|
|
3925
3942
|
method: "GET";
|
|
3926
3943
|
metadata: {
|
|
3927
3944
|
allowedMediaTypes: string[];
|
|
@@ -4631,7 +4648,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4631
4648
|
id: "dash";
|
|
4632
4649
|
options: DashOptionsResolved;
|
|
4633
4650
|
version: string;
|
|
4634
|
-
init(ctx:
|
|
4651
|
+
init(ctx: import("better-auth").AuthContext): {
|
|
4635
4652
|
options: {
|
|
4636
4653
|
databaseHooks: {
|
|
4637
4654
|
user: {
|
|
@@ -4644,7 +4661,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4644
4661
|
emailVerified: boolean;
|
|
4645
4662
|
name: string;
|
|
4646
4663
|
image?: string | null | undefined;
|
|
4647
|
-
} & Record<string, unknown>, _ctx:
|
|
4664
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4648
4665
|
};
|
|
4649
4666
|
update: {
|
|
4650
4667
|
after(user: {
|
|
@@ -4655,7 +4672,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4655
4672
|
emailVerified: boolean;
|
|
4656
4673
|
name: string;
|
|
4657
4674
|
image?: string | null | undefined;
|
|
4658
|
-
} & Record<string, unknown>, _ctx:
|
|
4675
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4659
4676
|
};
|
|
4660
4677
|
delete: {
|
|
4661
4678
|
after(user: {
|
|
@@ -4666,7 +4683,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4666
4683
|
emailVerified: boolean;
|
|
4667
4684
|
name: string;
|
|
4668
4685
|
image?: string | null | undefined;
|
|
4669
|
-
} & Record<string, unknown>, _ctx:
|
|
4686
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4670
4687
|
};
|
|
4671
4688
|
};
|
|
4672
4689
|
session: {
|
|
@@ -4680,7 +4697,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4680
4697
|
token: string;
|
|
4681
4698
|
ipAddress?: string | null | undefined;
|
|
4682
4699
|
userAgent?: string | null | undefined;
|
|
4683
|
-
} & Record<string, unknown>, _ctx:
|
|
4700
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<{
|
|
4684
4701
|
data: {
|
|
4685
4702
|
loginMethod: string | null;
|
|
4686
4703
|
};
|
|
@@ -4694,7 +4711,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4694
4711
|
token: string;
|
|
4695
4712
|
ipAddress?: string | null | undefined;
|
|
4696
4713
|
userAgent?: string | null | undefined;
|
|
4697
|
-
} & Record<string, unknown>, _ctx:
|
|
4714
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4698
4715
|
};
|
|
4699
4716
|
delete: {
|
|
4700
4717
|
after(session: {
|
|
@@ -4706,7 +4723,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4706
4723
|
token: string;
|
|
4707
4724
|
ipAddress?: string | null | undefined;
|
|
4708
4725
|
userAgent?: string | null | undefined;
|
|
4709
|
-
} & Record<string, unknown>, _ctx:
|
|
4726
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4710
4727
|
};
|
|
4711
4728
|
};
|
|
4712
4729
|
account: {
|
|
@@ -4725,7 +4742,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4725
4742
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4726
4743
|
scope?: string | null | undefined;
|
|
4727
4744
|
password?: string | null | undefined;
|
|
4728
|
-
}, _ctx:
|
|
4745
|
+
}, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4729
4746
|
};
|
|
4730
4747
|
update: {
|
|
4731
4748
|
after(account: {
|
|
@@ -4742,7 +4759,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4742
4759
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4743
4760
|
scope?: string | null | undefined;
|
|
4744
4761
|
password?: string | null | undefined;
|
|
4745
|
-
} & Record<string, unknown>, _ctx:
|
|
4762
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4746
4763
|
};
|
|
4747
4764
|
delete: {
|
|
4748
4765
|
after(account: {
|
|
@@ -4759,7 +4776,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4759
4776
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4760
4777
|
scope?: string | null | undefined;
|
|
4761
4778
|
password?: string | null | undefined;
|
|
4762
|
-
} & Record<string, unknown>, _ctx:
|
|
4779
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4763
4780
|
};
|
|
4764
4781
|
};
|
|
4765
4782
|
verification: {
|
|
@@ -4771,7 +4788,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4771
4788
|
value: string;
|
|
4772
4789
|
expiresAt: Date;
|
|
4773
4790
|
identifier: string;
|
|
4774
|
-
} & Record<string, unknown>, _ctx:
|
|
4791
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4775
4792
|
};
|
|
4776
4793
|
delete: {
|
|
4777
4794
|
after(verification: {
|
|
@@ -4781,7 +4798,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4781
4798
|
value: string;
|
|
4782
4799
|
expiresAt: Date;
|
|
4783
4800
|
identifier: string;
|
|
4784
|
-
} & Record<string, unknown>, ctx:
|
|
4801
|
+
} & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4785
4802
|
};
|
|
4786
4803
|
};
|
|
4787
4804
|
};
|
|
@@ -4792,81 +4809,81 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4792
4809
|
};
|
|
4793
4810
|
hooks: {
|
|
4794
4811
|
before: {
|
|
4795
|
-
matcher: (ctx:
|
|
4796
|
-
handler: (inputContext:
|
|
4812
|
+
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
4813
|
+
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
|
|
4797
4814
|
}[];
|
|
4798
4815
|
after: {
|
|
4799
|
-
matcher: (ctx:
|
|
4800
|
-
handler: (inputContext:
|
|
4816
|
+
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
4817
|
+
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
|
|
4801
4818
|
}[];
|
|
4802
4819
|
};
|
|
4803
4820
|
endpoints: {
|
|
4804
|
-
getDashConfig:
|
|
4821
|
+
getDashConfig: import("better-call").StrictEndpoint<"/dash/config", {
|
|
4805
4822
|
method: "GET";
|
|
4806
|
-
use: ((inputContext:
|
|
4823
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4807
4824
|
payload: Record<string, unknown>;
|
|
4808
4825
|
}>)[];
|
|
4809
4826
|
}, DashConfigResponse>;
|
|
4810
|
-
getDashValidate:
|
|
4827
|
+
getDashValidate: import("better-call").StrictEndpoint<"/dash/validate", {
|
|
4811
4828
|
method: "GET";
|
|
4812
|
-
use: ((inputContext:
|
|
4813
|
-
payload:
|
|
4829
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4830
|
+
payload: import("jose").JWTPayload;
|
|
4814
4831
|
}>)[];
|
|
4815
4832
|
}, DashValidateResponse>;
|
|
4816
|
-
getDashUsers:
|
|
4833
|
+
getDashUsers: import("better-call").StrictEndpoint<"/dash/list-users", {
|
|
4817
4834
|
method: "GET";
|
|
4818
|
-
use: ((inputContext:
|
|
4835
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4819
4836
|
payload: Record<string, unknown>;
|
|
4820
4837
|
}>)[];
|
|
4821
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
4822
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4823
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4824
|
-
sortBy: zod.ZodOptional<zod.ZodString>;
|
|
4825
|
-
sortOrder: zod.ZodOptional<zod.ZodEnum<{
|
|
4838
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4839
|
+
limit: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
4840
|
+
offset: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
4841
|
+
sortBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4842
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4826
4843
|
asc: "asc";
|
|
4827
4844
|
desc: "desc";
|
|
4828
4845
|
}>>;
|
|
4829
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4830
|
-
countWhere: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4831
|
-
},
|
|
4846
|
+
where: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("better-auth").Where[], string>>>;
|
|
4847
|
+
countWhere: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("better-auth").Where[], string>>>;
|
|
4848
|
+
}, import("zod/v4/core").$strip>>;
|
|
4832
4849
|
}, DashUserListResponse>;
|
|
4833
|
-
exportDashUsers:
|
|
4850
|
+
exportDashUsers: import("better-call").StrictEndpoint<"/dash/export-users", {
|
|
4834
4851
|
method: "GET";
|
|
4835
|
-
use: ((inputContext:
|
|
4852
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4836
4853
|
payload: Record<string, unknown>;
|
|
4837
4854
|
}>)[];
|
|
4838
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
4839
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4840
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4841
|
-
sortBy: zod.ZodOptional<zod.ZodString>;
|
|
4842
|
-
sortOrder: zod.ZodOptional<zod.ZodEnum<{
|
|
4855
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4856
|
+
limit: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
4857
|
+
offset: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
4858
|
+
sortBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4859
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4843
4860
|
asc: "asc";
|
|
4844
4861
|
desc: "desc";
|
|
4845
4862
|
}>>;
|
|
4846
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4847
|
-
countWhere: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4848
|
-
},
|
|
4863
|
+
where: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("better-auth").Where[], string>>>;
|
|
4864
|
+
countWhere: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("better-auth").Where[], string>>>;
|
|
4865
|
+
}, import("zod/v4/core").$strip>>;
|
|
4849
4866
|
}, Response>;
|
|
4850
|
-
createDashUser:
|
|
4867
|
+
createDashUser: import("better-call").StrictEndpoint<"/dash/create-user", {
|
|
4851
4868
|
method: "POST";
|
|
4852
|
-
use: ((inputContext:
|
|
4869
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4853
4870
|
payload: {
|
|
4854
4871
|
organizationId?: string | undefined;
|
|
4855
4872
|
organizationRole?: string | undefined;
|
|
4856
4873
|
};
|
|
4857
4874
|
}>)[];
|
|
4858
|
-
body: zod.ZodObject<{
|
|
4859
|
-
name: zod.ZodString;
|
|
4860
|
-
email: zod.ZodEmail;
|
|
4861
|
-
image: zod.ZodOptional<zod.ZodString>;
|
|
4862
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
4863
|
-
generatePassword: zod.ZodOptional<zod.ZodBoolean>;
|
|
4864
|
-
emailVerified: zod.ZodOptional<zod.ZodBoolean>;
|
|
4865
|
-
sendVerificationEmail: zod.ZodOptional<zod.ZodBoolean>;
|
|
4866
|
-
sendOrganizationInvite: zod.ZodOptional<zod.ZodBoolean>;
|
|
4867
|
-
organizationRole: zod.ZodOptional<zod.ZodString>;
|
|
4868
|
-
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
4869
|
-
},
|
|
4875
|
+
body: import("zod").ZodObject<{
|
|
4876
|
+
name: import("zod").ZodString;
|
|
4877
|
+
email: import("zod").ZodEmail;
|
|
4878
|
+
image: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4879
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4880
|
+
generatePassword: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4881
|
+
emailVerified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4882
|
+
sendVerificationEmail: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4883
|
+
sendOrganizationInvite: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4884
|
+
organizationRole: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4885
|
+
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4886
|
+
}, import("zod/v4/core").$loose>;
|
|
4870
4887
|
}, {
|
|
4871
4888
|
id: string;
|
|
4872
4889
|
createdAt: Date;
|
|
@@ -4880,320 +4897,320 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4880
4897
|
banReason?: string | null;
|
|
4881
4898
|
banExpires?: number | null;
|
|
4882
4899
|
}>;
|
|
4883
|
-
deleteDashUser:
|
|
4900
|
+
deleteDashUser: import("better-call").StrictEndpoint<"/dash/delete-user", {
|
|
4884
4901
|
method: "POST";
|
|
4885
|
-
use: ((inputContext:
|
|
4902
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4886
4903
|
payload: {
|
|
4887
4904
|
userId: string;
|
|
4888
4905
|
};
|
|
4889
4906
|
}>)[];
|
|
4890
4907
|
}, void>;
|
|
4891
|
-
deleteManyDashUsers:
|
|
4908
|
+
deleteManyDashUsers: import("better-call").StrictEndpoint<"/dash/delete-many-users", {
|
|
4892
4909
|
method: "POST";
|
|
4893
|
-
use: ((inputContext:
|
|
4910
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4894
4911
|
payload: {
|
|
4895
4912
|
userIds: string[];
|
|
4896
4913
|
};
|
|
4897
4914
|
}>)[];
|
|
4898
4915
|
}, DashDeleteManyUsersResponse>;
|
|
4899
|
-
listDashOrganizations:
|
|
4916
|
+
listDashOrganizations: import("better-call").StrictEndpoint<"/dash/list-organizations", {
|
|
4900
4917
|
method: "GET";
|
|
4901
|
-
use: ((inputContext:
|
|
4918
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4902
4919
|
payload: Record<string, unknown>;
|
|
4903
4920
|
}>)[];
|
|
4904
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
4905
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4906
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4907
|
-
sortBy: zod.ZodOptional<zod.ZodEnum<{
|
|
4921
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4922
|
+
limit: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
4923
|
+
offset: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
4924
|
+
sortBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4908
4925
|
createdAt: "createdAt";
|
|
4909
4926
|
name: "name";
|
|
4910
4927
|
slug: "slug";
|
|
4911
4928
|
members: "members";
|
|
4912
4929
|
}>>;
|
|
4913
|
-
sortOrder: zod.ZodOptional<zod.ZodEnum<{
|
|
4930
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4914
4931
|
asc: "asc";
|
|
4915
4932
|
desc: "desc";
|
|
4916
4933
|
}>>;
|
|
4917
|
-
filterMembers: zod.ZodOptional<zod.ZodEnum<{
|
|
4934
|
+
filterMembers: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4918
4935
|
abandoned: "abandoned";
|
|
4919
4936
|
eq1: "eq1";
|
|
4920
4937
|
gt1: "gt1";
|
|
4921
4938
|
gt5: "gt5";
|
|
4922
4939
|
gt10: "gt10";
|
|
4923
4940
|
}>>;
|
|
4924
|
-
search: zod.ZodOptional<zod.ZodString>;
|
|
4925
|
-
startDate: zod.ZodOptional<zod.ZodUnion<[zod.ZodDate, zod.ZodPipe<zod.ZodString, zod.ZodTransform<Date, string>>]>>;
|
|
4926
|
-
endDate: zod.ZodOptional<zod.ZodUnion<[zod.ZodDate, zod.ZodPipe<zod.ZodString, zod.ZodTransform<Date, string>>]>>;
|
|
4927
|
-
},
|
|
4941
|
+
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4942
|
+
startDate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<Date, string>>]>>;
|
|
4943
|
+
endDate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<Date, string>>]>>;
|
|
4944
|
+
}, import("zod/v4/core").$strip>>;
|
|
4928
4945
|
}, DashOrganizationListResponse>;
|
|
4929
|
-
exportDashOrganizations:
|
|
4946
|
+
exportDashOrganizations: import("better-call").StrictEndpoint<"/dash/export-organizations", {
|
|
4930
4947
|
method: "GET";
|
|
4931
|
-
use: ((inputContext:
|
|
4948
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4932
4949
|
payload: Record<string, unknown>;
|
|
4933
4950
|
}>)[];
|
|
4934
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
4935
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4936
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4937
|
-
sortBy: zod.ZodOptional<zod.ZodString>;
|
|
4938
|
-
sortOrder: zod.ZodOptional<zod.ZodEnum<{
|
|
4951
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4952
|
+
limit: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
4953
|
+
offset: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
4954
|
+
sortBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4955
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4939
4956
|
asc: "asc";
|
|
4940
4957
|
desc: "desc";
|
|
4941
4958
|
}>>;
|
|
4942
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4943
|
-
},
|
|
4959
|
+
where: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("better-auth").Where[], string>>>;
|
|
4960
|
+
}, import("zod/v4/core").$strip>>;
|
|
4944
4961
|
}, Response>;
|
|
4945
|
-
getDashOrganization:
|
|
4962
|
+
getDashOrganization: import("better-call").StrictEndpoint<"/dash/organization/:id", {
|
|
4946
4963
|
method: "GET";
|
|
4947
|
-
use: ((inputContext:
|
|
4964
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4948
4965
|
payload: Record<string, unknown>;
|
|
4949
4966
|
}>)[];
|
|
4950
4967
|
}, DashOrganizationDetailResponse>;
|
|
4951
|
-
listDashOrganizationMembers:
|
|
4968
|
+
listDashOrganizationMembers: import("better-call").StrictEndpoint<"/dash/organization/:id/members", {
|
|
4952
4969
|
method: "GET";
|
|
4953
|
-
use: ((inputContext:
|
|
4970
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4954
4971
|
payload: Record<string, unknown>;
|
|
4955
4972
|
}>)[];
|
|
4956
4973
|
}, DashOrganizationMemberListResponse>;
|
|
4957
|
-
listDashOrganizationInvitations:
|
|
4974
|
+
listDashOrganizationInvitations: import("better-call").StrictEndpoint<"/dash/organization/:id/invitations", {
|
|
4958
4975
|
method: "GET";
|
|
4959
|
-
use: ((inputContext:
|
|
4976
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4960
4977
|
payload: Record<string, unknown>;
|
|
4961
4978
|
}>)[];
|
|
4962
4979
|
}, DashOrganizationInvitationListResponse>;
|
|
4963
|
-
listDashOrganizationTeams:
|
|
4980
|
+
listDashOrganizationTeams: import("better-call").StrictEndpoint<"/dash/organization/:id/teams", {
|
|
4964
4981
|
method: "GET";
|
|
4965
|
-
use: ((inputContext:
|
|
4982
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4966
4983
|
payload: Record<string, unknown>;
|
|
4967
4984
|
}>)[];
|
|
4968
4985
|
}, DashOrganizationTeamListResponse>;
|
|
4969
|
-
listDashOrganizationSsoProviders:
|
|
4986
|
+
listDashOrganizationSsoProviders: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-providers", {
|
|
4970
4987
|
method: "GET";
|
|
4971
|
-
use: ((inputContext:
|
|
4988
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4972
4989
|
payload: {
|
|
4973
4990
|
organizationId: string;
|
|
4974
4991
|
};
|
|
4975
4992
|
}>)[];
|
|
4976
4993
|
}, DashSsoProviderItem[]>;
|
|
4977
|
-
createDashSsoProvider:
|
|
4994
|
+
createDashSsoProvider: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/create", {
|
|
4978
4995
|
method: "POST";
|
|
4979
|
-
use: ((inputContext:
|
|
4996
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4980
4997
|
payload: {
|
|
4981
4998
|
organizationId: string;
|
|
4982
4999
|
};
|
|
4983
5000
|
}>)[];
|
|
4984
|
-
body: zod.ZodObject<{
|
|
4985
|
-
providerId: zod.ZodString;
|
|
4986
|
-
domain: zod.ZodString;
|
|
4987
|
-
protocol: zod.ZodEnum<{
|
|
5001
|
+
body: import("zod").ZodObject<{
|
|
5002
|
+
providerId: import("zod").ZodString;
|
|
5003
|
+
domain: import("zod").ZodString;
|
|
5004
|
+
protocol: import("zod").ZodEnum<{
|
|
4988
5005
|
SAML: "SAML";
|
|
4989
5006
|
OIDC: "OIDC";
|
|
4990
5007
|
}>;
|
|
4991
|
-
userId: zod.ZodString;
|
|
4992
|
-
samlConfig: zod.ZodOptional<zod.ZodObject<{
|
|
4993
|
-
idpMetadata: zod.ZodOptional<zod.ZodObject<{
|
|
4994
|
-
metadata: zod.ZodOptional<zod.ZodString>;
|
|
4995
|
-
metadataUrl: zod.ZodOptional<zod.ZodString>;
|
|
4996
|
-
},
|
|
4997
|
-
entryPoint: zod.ZodOptional<zod.ZodString>;
|
|
4998
|
-
cert: zod.ZodOptional<zod.ZodString>;
|
|
4999
|
-
entityId: zod.ZodOptional<zod.ZodString>;
|
|
5000
|
-
mapping: zod.ZodOptional<zod.ZodObject<{
|
|
5001
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
5002
|
-
email: zod.ZodOptional<zod.ZodString>;
|
|
5003
|
-
emailVerified: zod.ZodOptional<zod.ZodString>;
|
|
5004
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5005
|
-
firstName: zod.ZodOptional<zod.ZodString>;
|
|
5006
|
-
lastName: zod.ZodOptional<zod.ZodString>;
|
|
5007
|
-
extraFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
5008
|
-
},
|
|
5009
|
-
},
|
|
5010
|
-
oidcConfig: zod.ZodOptional<zod.ZodObject<{
|
|
5011
|
-
clientId: zod.ZodString;
|
|
5012
|
-
clientSecret: zod.ZodOptional<zod.ZodString>;
|
|
5013
|
-
discoveryUrl: zod.ZodOptional<zod.ZodString>;
|
|
5014
|
-
issuer: zod.ZodOptional<zod.ZodString>;
|
|
5015
|
-
mapping: zod.ZodOptional<zod.ZodObject<{
|
|
5016
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
5017
|
-
email: zod.ZodOptional<zod.ZodString>;
|
|
5018
|
-
emailVerified: zod.ZodOptional<zod.ZodString>;
|
|
5019
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5020
|
-
image: zod.ZodOptional<zod.ZodString>;
|
|
5021
|
-
extraFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
5022
|
-
},
|
|
5023
|
-
},
|
|
5024
|
-
},
|
|
5008
|
+
userId: import("zod").ZodString;
|
|
5009
|
+
samlConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5010
|
+
idpMetadata: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5011
|
+
metadata: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5012
|
+
metadataUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5013
|
+
}, import("zod/v4/core").$strip>>;
|
|
5014
|
+
entryPoint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5015
|
+
cert: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5016
|
+
entityId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5017
|
+
mapping: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5018
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5019
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5020
|
+
emailVerified: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5021
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5022
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5023
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5024
|
+
extraFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
5025
|
+
}, import("zod/v4/core").$strip>>;
|
|
5026
|
+
}, import("zod/v4/core").$strip>>;
|
|
5027
|
+
oidcConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5028
|
+
clientId: import("zod").ZodString;
|
|
5029
|
+
clientSecret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5030
|
+
discoveryUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5031
|
+
issuer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5032
|
+
mapping: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5033
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5034
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5035
|
+
emailVerified: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5036
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5037
|
+
image: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5038
|
+
extraFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
5039
|
+
}, import("zod/v4/core").$strip>>;
|
|
5040
|
+
}, import("zod/v4/core").$strip>>;
|
|
5041
|
+
}, import("zod/v4/core").$strip>;
|
|
5025
5042
|
}, DashSsoCreateProviderResponse>;
|
|
5026
|
-
updateDashSsoProvider:
|
|
5043
|
+
updateDashSsoProvider: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/update", {
|
|
5027
5044
|
method: "POST";
|
|
5028
|
-
use: ((inputContext:
|
|
5045
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5029
5046
|
payload: {
|
|
5030
5047
|
organizationId: string;
|
|
5031
5048
|
};
|
|
5032
5049
|
}>)[];
|
|
5033
|
-
body: zod.ZodObject<{
|
|
5034
|
-
providerId: zod.ZodString;
|
|
5035
|
-
domain: zod.ZodString;
|
|
5036
|
-
protocol: zod.ZodEnum<{
|
|
5050
|
+
body: import("zod").ZodObject<{
|
|
5051
|
+
providerId: import("zod").ZodString;
|
|
5052
|
+
domain: import("zod").ZodString;
|
|
5053
|
+
protocol: import("zod").ZodEnum<{
|
|
5037
5054
|
SAML: "SAML";
|
|
5038
5055
|
OIDC: "OIDC";
|
|
5039
5056
|
}>;
|
|
5040
|
-
samlConfig: zod.ZodOptional<zod.ZodObject<{
|
|
5041
|
-
idpMetadata: zod.ZodOptional<zod.ZodObject<{
|
|
5042
|
-
metadata: zod.ZodOptional<zod.ZodString>;
|
|
5043
|
-
metadataUrl: zod.ZodOptional<zod.ZodString>;
|
|
5044
|
-
},
|
|
5045
|
-
entryPoint: zod.ZodOptional<zod.ZodString>;
|
|
5046
|
-
cert: zod.ZodOptional<zod.ZodString>;
|
|
5047
|
-
entityId: zod.ZodOptional<zod.ZodString>;
|
|
5048
|
-
mapping: zod.ZodOptional<zod.ZodObject<{
|
|
5049
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
5050
|
-
email: zod.ZodOptional<zod.ZodString>;
|
|
5051
|
-
emailVerified: zod.ZodOptional<zod.ZodString>;
|
|
5052
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5053
|
-
firstName: zod.ZodOptional<zod.ZodString>;
|
|
5054
|
-
lastName: zod.ZodOptional<zod.ZodString>;
|
|
5055
|
-
extraFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
5056
|
-
},
|
|
5057
|
-
},
|
|
5058
|
-
oidcConfig: zod.ZodOptional<zod.ZodObject<{
|
|
5059
|
-
clientId: zod.ZodString;
|
|
5060
|
-
clientSecret: zod.ZodOptional<zod.ZodString>;
|
|
5061
|
-
discoveryUrl: zod.ZodOptional<zod.ZodString>;
|
|
5062
|
-
issuer: zod.ZodOptional<zod.ZodString>;
|
|
5063
|
-
mapping: zod.ZodOptional<zod.ZodObject<{
|
|
5064
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
5065
|
-
email: zod.ZodOptional<zod.ZodString>;
|
|
5066
|
-
emailVerified: zod.ZodOptional<zod.ZodString>;
|
|
5067
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5068
|
-
image: zod.ZodOptional<zod.ZodString>;
|
|
5069
|
-
extraFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
5070
|
-
},
|
|
5071
|
-
},
|
|
5072
|
-
},
|
|
5057
|
+
samlConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5058
|
+
idpMetadata: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5059
|
+
metadata: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5060
|
+
metadataUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5061
|
+
}, import("zod/v4/core").$strip>>;
|
|
5062
|
+
entryPoint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5063
|
+
cert: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5064
|
+
entityId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5065
|
+
mapping: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5066
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5067
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5068
|
+
emailVerified: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5069
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5070
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5071
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5072
|
+
extraFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
5073
|
+
}, import("zod/v4/core").$strip>>;
|
|
5074
|
+
}, import("zod/v4/core").$strip>>;
|
|
5075
|
+
oidcConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5076
|
+
clientId: import("zod").ZodString;
|
|
5077
|
+
clientSecret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5078
|
+
discoveryUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5079
|
+
issuer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5080
|
+
mapping: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5081
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5082
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5083
|
+
emailVerified: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5084
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5085
|
+
image: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5086
|
+
extraFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
5087
|
+
}, import("zod/v4/core").$strip>>;
|
|
5088
|
+
}, import("zod/v4/core").$strip>>;
|
|
5089
|
+
}, import("zod/v4/core").$strip>;
|
|
5073
5090
|
}, DashSsoUpdateProviderResponse>;
|
|
5074
|
-
requestDashSsoVerificationToken:
|
|
5091
|
+
requestDashSsoVerificationToken: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/request-verification-token", {
|
|
5075
5092
|
method: "POST";
|
|
5076
|
-
use: ((inputContext:
|
|
5093
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5077
5094
|
payload: {
|
|
5078
5095
|
organizationId: string;
|
|
5079
5096
|
};
|
|
5080
5097
|
}>)[];
|
|
5081
|
-
body: zod.ZodObject<{
|
|
5082
|
-
providerId: zod.ZodString;
|
|
5083
|
-
},
|
|
5098
|
+
body: import("zod").ZodObject<{
|
|
5099
|
+
providerId: import("zod").ZodString;
|
|
5100
|
+
}, import("zod/v4/core").$strip>;
|
|
5084
5101
|
}, DashSsoVerificationTokenResponse>;
|
|
5085
|
-
verifyDashSsoProviderDomain:
|
|
5102
|
+
verifyDashSsoProviderDomain: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/verify-domain", {
|
|
5086
5103
|
method: "POST";
|
|
5087
|
-
use: ((inputContext:
|
|
5104
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5088
5105
|
payload: {
|
|
5089
5106
|
organizationId: string;
|
|
5090
5107
|
};
|
|
5091
5108
|
}>)[];
|
|
5092
|
-
body: zod.ZodObject<{
|
|
5093
|
-
providerId: zod.ZodString;
|
|
5094
|
-
},
|
|
5109
|
+
body: import("zod").ZodObject<{
|
|
5110
|
+
providerId: import("zod").ZodString;
|
|
5111
|
+
}, import("zod/v4/core").$strip>;
|
|
5095
5112
|
}, DashSsoVerifyDomainResponse>;
|
|
5096
|
-
deleteDashSsoProvider:
|
|
5113
|
+
deleteDashSsoProvider: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/delete", {
|
|
5097
5114
|
method: "POST";
|
|
5098
|
-
use: ((inputContext:
|
|
5115
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5099
5116
|
payload: {
|
|
5100
5117
|
organizationId: string;
|
|
5101
5118
|
};
|
|
5102
5119
|
}>)[];
|
|
5103
|
-
body: zod.ZodObject<{
|
|
5104
|
-
providerId: zod.ZodString;
|
|
5105
|
-
},
|
|
5120
|
+
body: import("zod").ZodObject<{
|
|
5121
|
+
providerId: import("zod").ZodString;
|
|
5122
|
+
}, import("zod/v4/core").$strip>;
|
|
5106
5123
|
}, DashSsoDeleteResponse>;
|
|
5107
|
-
markDashSsoProviderDomainVerified:
|
|
5124
|
+
markDashSsoProviderDomainVerified: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/mark-domain-verified", {
|
|
5108
5125
|
method: "POST";
|
|
5109
|
-
use: ((inputContext:
|
|
5126
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5110
5127
|
payload: {
|
|
5111
5128
|
organizationId: string;
|
|
5112
5129
|
};
|
|
5113
5130
|
}>)[];
|
|
5114
|
-
body: zod.ZodObject<{
|
|
5115
|
-
providerId: zod.ZodString;
|
|
5116
|
-
verified: zod.ZodBoolean;
|
|
5117
|
-
},
|
|
5131
|
+
body: import("zod").ZodObject<{
|
|
5132
|
+
providerId: import("zod").ZodString;
|
|
5133
|
+
verified: import("zod").ZodBoolean;
|
|
5134
|
+
}, import("zod/v4/core").$strip>;
|
|
5118
5135
|
}, DashSsoMarkDomainVerifiedResponse>;
|
|
5119
|
-
listDashTeamMembers:
|
|
5136
|
+
listDashTeamMembers: import("better-call").StrictEndpoint<"/dash/organization/:orgId/teams/:teamId/members", {
|
|
5120
5137
|
method: "GET";
|
|
5121
|
-
use: ((inputContext:
|
|
5138
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5122
5139
|
payload: Record<string, unknown>;
|
|
5123
5140
|
}>)[];
|
|
5124
5141
|
}, DashTeamMemberListResponse>;
|
|
5125
|
-
createDashOrganization:
|
|
5142
|
+
createDashOrganization: import("better-call").StrictEndpoint<"/dash/organization/create", {
|
|
5126
5143
|
method: "POST";
|
|
5127
|
-
use: ((inputContext:
|
|
5144
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5128
5145
|
payload: {
|
|
5129
5146
|
userId: string;
|
|
5130
5147
|
skipDefaultTeam: boolean;
|
|
5131
5148
|
};
|
|
5132
5149
|
}>)[];
|
|
5133
|
-
body: zod.ZodObject<{
|
|
5134
|
-
name: zod.ZodString;
|
|
5135
|
-
slug: zod.ZodString;
|
|
5136
|
-
logo: zod.ZodOptional<zod.ZodString>;
|
|
5137
|
-
defaultTeamName: zod.ZodOptional<zod.ZodString>;
|
|
5138
|
-
},
|
|
5150
|
+
body: import("zod").ZodObject<{
|
|
5151
|
+
name: import("zod").ZodString;
|
|
5152
|
+
slug: import("zod").ZodString;
|
|
5153
|
+
logo: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5154
|
+
defaultTeamName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5155
|
+
}, import("zod/v4/core").$catchall<import("zod").ZodUnknown>>;
|
|
5139
5156
|
}, DashCreateOrganizationResponse>;
|
|
5140
|
-
deleteDashOrganization:
|
|
5157
|
+
deleteDashOrganization: import("better-call").StrictEndpoint<"/dash/organization/delete", {
|
|
5141
5158
|
method: "POST";
|
|
5142
|
-
use: ((inputContext:
|
|
5159
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5143
5160
|
payload: {
|
|
5144
5161
|
organizationId: string;
|
|
5145
5162
|
};
|
|
5146
5163
|
}>)[];
|
|
5147
|
-
body: zod.ZodObject<{
|
|
5148
|
-
organizationId: zod.ZodString;
|
|
5149
|
-
},
|
|
5164
|
+
body: import("zod").ZodObject<{
|
|
5165
|
+
organizationId: import("zod").ZodString;
|
|
5166
|
+
}, import("zod/v4/core").$strip>;
|
|
5150
5167
|
}, DashSuccessResponse>;
|
|
5151
|
-
deleteManyDashOrganizations:
|
|
5168
|
+
deleteManyDashOrganizations: import("better-call").StrictEndpoint<"/dash/organization/delete-many", {
|
|
5152
5169
|
method: "POST";
|
|
5153
|
-
use: ((inputContext:
|
|
5170
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5154
5171
|
payload: {
|
|
5155
5172
|
organizationIds: string[];
|
|
5156
5173
|
};
|
|
5157
5174
|
}>)[];
|
|
5158
5175
|
}, DashOrganizationDeleteManyResponse>;
|
|
5159
|
-
getDashOrganizationOptions:
|
|
5176
|
+
getDashOrganizationOptions: import("better-call").StrictEndpoint<"/dash/organization/options", {
|
|
5160
5177
|
method: "GET";
|
|
5161
|
-
use: ((inputContext:
|
|
5178
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5162
5179
|
payload: Record<string, unknown>;
|
|
5163
5180
|
}>)[];
|
|
5164
5181
|
}, DashOrganizationOptionsResponse>;
|
|
5165
|
-
getDashUser:
|
|
5182
|
+
getDashUser: import("better-call").StrictEndpoint<"/dash/user", {
|
|
5166
5183
|
method: "GET";
|
|
5167
|
-
use: ((inputContext:
|
|
5184
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5168
5185
|
payload: {
|
|
5169
5186
|
userId: string;
|
|
5170
5187
|
};
|
|
5171
5188
|
}>)[];
|
|
5172
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5173
|
-
minimal: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodPipe<zod.ZodString, zod.ZodTransform<boolean, string>>]>>;
|
|
5174
|
-
},
|
|
5189
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5190
|
+
minimal: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<boolean, string>>]>>;
|
|
5191
|
+
}, import("zod/v4/core").$strip>>;
|
|
5175
5192
|
}, DashUserDetailsResponse>;
|
|
5176
|
-
getDashUserOrganizations:
|
|
5193
|
+
getDashUserOrganizations: import("better-call").StrictEndpoint<"/dash/user-organizations", {
|
|
5177
5194
|
method: "GET";
|
|
5178
|
-
use: ((inputContext:
|
|
5195
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5179
5196
|
payload: {
|
|
5180
5197
|
userId: string;
|
|
5181
5198
|
};
|
|
5182
5199
|
}>)[];
|
|
5183
5200
|
}, DashUserOrganizationsResponse>;
|
|
5184
|
-
updateDashUser:
|
|
5201
|
+
updateDashUser: import("better-call").StrictEndpoint<"/dash/update-user", {
|
|
5185
5202
|
method: "POST";
|
|
5186
|
-
use: ((inputContext:
|
|
5203
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5187
5204
|
payload: {
|
|
5188
5205
|
userId: string;
|
|
5189
5206
|
};
|
|
5190
5207
|
}>)[];
|
|
5191
|
-
body: zod.ZodObject<{
|
|
5192
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5193
|
-
email: zod.ZodOptional<zod.ZodEmail>;
|
|
5194
|
-
image: zod.ZodOptional<zod.ZodString>;
|
|
5195
|
-
emailVerified: zod.ZodOptional<zod.ZodBoolean>;
|
|
5196
|
-
},
|
|
5208
|
+
body: import("zod").ZodObject<{
|
|
5209
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5210
|
+
email: import("zod").ZodOptional<import("zod").ZodEmail>;
|
|
5211
|
+
image: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5212
|
+
emailVerified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
5213
|
+
}, import("zod/v4/core").$loose>;
|
|
5197
5214
|
}, {
|
|
5198
5215
|
id: string;
|
|
5199
5216
|
createdAt: Date;
|
|
@@ -5207,61 +5224,61 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5207
5224
|
banReason?: string | null;
|
|
5208
5225
|
banExpires?: number | null;
|
|
5209
5226
|
}>;
|
|
5210
|
-
setDashPassword:
|
|
5227
|
+
setDashPassword: import("better-call").StrictEndpoint<"/dash/set-password", {
|
|
5211
5228
|
method: "POST";
|
|
5212
|
-
use: ((inputContext:
|
|
5229
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5213
5230
|
payload: {
|
|
5214
5231
|
userId: string;
|
|
5215
5232
|
};
|
|
5216
5233
|
}>)[];
|
|
5217
|
-
body: zod.ZodObject<{
|
|
5218
|
-
password: zod.ZodString;
|
|
5219
|
-
},
|
|
5234
|
+
body: import("zod").ZodObject<{
|
|
5235
|
+
password: import("zod").ZodString;
|
|
5236
|
+
}, import("zod/v4/core").$strip>;
|
|
5220
5237
|
}, DashSuccessResponse>;
|
|
5221
|
-
unlinkDashAccount:
|
|
5238
|
+
unlinkDashAccount: import("better-call").StrictEndpoint<"/dash/unlink-account", {
|
|
5222
5239
|
method: "POST";
|
|
5223
|
-
use: ((inputContext:
|
|
5240
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5224
5241
|
payload: {
|
|
5225
5242
|
userId: string;
|
|
5226
5243
|
};
|
|
5227
5244
|
}>)[];
|
|
5228
|
-
body: zod.ZodObject<{
|
|
5229
|
-
providerId: zod.ZodString;
|
|
5230
|
-
accountId: zod.ZodOptional<zod.ZodString>;
|
|
5231
|
-
},
|
|
5245
|
+
body: import("zod").ZodObject<{
|
|
5246
|
+
providerId: import("zod").ZodString;
|
|
5247
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5248
|
+
}, import("zod/v4/core").$strip>;
|
|
5232
5249
|
}, DashSuccessResponse>;
|
|
5233
|
-
dashRevokeSession:
|
|
5250
|
+
dashRevokeSession: import("better-call").StrictEndpoint<"/dash/sessions/revoke", {
|
|
5234
5251
|
method: "POST";
|
|
5235
|
-
use: ((inputContext:
|
|
5252
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5236
5253
|
payload: Record<string, unknown>;
|
|
5237
5254
|
}>)[];
|
|
5238
5255
|
metadata: {
|
|
5239
5256
|
allowedMediaTypes: string[];
|
|
5240
5257
|
};
|
|
5241
5258
|
}, DashSuccessResponse>;
|
|
5242
|
-
dashRevokeAllSessions:
|
|
5259
|
+
dashRevokeAllSessions: import("better-call").StrictEndpoint<"/dash/sessions/revoke-all", {
|
|
5243
5260
|
method: "POST";
|
|
5244
|
-
use: ((inputContext:
|
|
5261
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5245
5262
|
payload: Record<string, unknown>;
|
|
5246
5263
|
}>)[];
|
|
5247
|
-
body: zod.ZodObject<{
|
|
5248
|
-
userId: zod.ZodString;
|
|
5249
|
-
},
|
|
5264
|
+
body: import("zod").ZodObject<{
|
|
5265
|
+
userId: import("zod").ZodString;
|
|
5266
|
+
}, import("zod/v4/core").$strip>;
|
|
5250
5267
|
}, DashSuccessResponse>;
|
|
5251
|
-
dashRevokeManySessions:
|
|
5268
|
+
dashRevokeManySessions: import("better-call").StrictEndpoint<"/dash/sessions/revoke-many", {
|
|
5252
5269
|
method: "POST";
|
|
5253
|
-
use: ((inputContext:
|
|
5270
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5254
5271
|
payload: {
|
|
5255
5272
|
userIds: string[];
|
|
5256
5273
|
};
|
|
5257
5274
|
}>)[];
|
|
5258
5275
|
}, DashSessionRevokeManyResponse>;
|
|
5259
|
-
dashImpersonateUser:
|
|
5276
|
+
dashImpersonateUser: import("better-call").StrictEndpoint<"/dash/impersonate-user", {
|
|
5260
5277
|
method: "GET";
|
|
5261
|
-
query: zod.ZodObject<{
|
|
5262
|
-
impersonation_token: zod.ZodString;
|
|
5263
|
-
},
|
|
5264
|
-
use: ((inputContext:
|
|
5278
|
+
query: import("zod").ZodObject<{
|
|
5279
|
+
impersonation_token: import("zod").ZodString;
|
|
5280
|
+
}, import("zod/v4/core").$strip>;
|
|
5281
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5265
5282
|
payload: {
|
|
5266
5283
|
userId: string;
|
|
5267
5284
|
redirectUrl: string;
|
|
@@ -5269,19 +5286,19 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5269
5286
|
};
|
|
5270
5287
|
}>)[];
|
|
5271
5288
|
}, never>;
|
|
5272
|
-
updateDashOrganization:
|
|
5289
|
+
updateDashOrganization: import("better-call").StrictEndpoint<"/dash/organization/update", {
|
|
5273
5290
|
method: "POST";
|
|
5274
|
-
use: ((inputContext:
|
|
5291
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5275
5292
|
payload: {
|
|
5276
5293
|
organizationId: string;
|
|
5277
5294
|
};
|
|
5278
5295
|
}>)[];
|
|
5279
|
-
body: zod.ZodObject<{
|
|
5280
|
-
logo: zod.ZodOptional<zod.ZodURL
|
|
5281
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5282
|
-
slug: zod.ZodOptional<zod.ZodString>;
|
|
5283
|
-
metadata: zod.ZodOptional<zod.ZodString>;
|
|
5284
|
-
},
|
|
5296
|
+
body: import("zod").ZodObject<{
|
|
5297
|
+
logo: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodLiteral<"">]>>;
|
|
5298
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5299
|
+
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5300
|
+
metadata: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5301
|
+
}, import("zod/v4/core").$catchall<import("zod").ZodUnknown>>;
|
|
5285
5302
|
}, {
|
|
5286
5303
|
id: string;
|
|
5287
5304
|
name: string;
|
|
@@ -5290,16 +5307,16 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5290
5307
|
logo?: string | null | undefined;
|
|
5291
5308
|
metadata?: any;
|
|
5292
5309
|
}>;
|
|
5293
|
-
createDashTeam:
|
|
5310
|
+
createDashTeam: import("better-call").StrictEndpoint<"/dash/organization/create-team", {
|
|
5294
5311
|
method: "POST";
|
|
5295
|
-
use: ((inputContext:
|
|
5312
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5296
5313
|
payload: {
|
|
5297
5314
|
organizationId: string;
|
|
5298
5315
|
};
|
|
5299
5316
|
}>)[];
|
|
5300
|
-
body: zod.ZodObject<{
|
|
5301
|
-
name: zod.ZodString;
|
|
5302
|
-
},
|
|
5317
|
+
body: import("zod").ZodObject<{
|
|
5318
|
+
name: import("zod").ZodString;
|
|
5319
|
+
}, import("zod/v4/core").$strip>;
|
|
5303
5320
|
}, {
|
|
5304
5321
|
id: string;
|
|
5305
5322
|
name: string;
|
|
@@ -5307,17 +5324,17 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5307
5324
|
createdAt: Date;
|
|
5308
5325
|
updatedAt?: Date | undefined;
|
|
5309
5326
|
}>;
|
|
5310
|
-
updateDashTeam:
|
|
5327
|
+
updateDashTeam: import("better-call").StrictEndpoint<"/dash/organization/update-team", {
|
|
5311
5328
|
method: "POST";
|
|
5312
|
-
use: ((inputContext:
|
|
5329
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5313
5330
|
payload: {
|
|
5314
5331
|
organizationId: string;
|
|
5315
5332
|
};
|
|
5316
5333
|
}>)[];
|
|
5317
|
-
body: zod.ZodObject<{
|
|
5318
|
-
teamId: zod.ZodString;
|
|
5319
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5320
|
-
},
|
|
5334
|
+
body: import("zod").ZodObject<{
|
|
5335
|
+
teamId: import("zod").ZodString;
|
|
5336
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5337
|
+
}, import("zod/v4/core").$strip>;
|
|
5321
5338
|
}, {
|
|
5322
5339
|
id: string;
|
|
5323
5340
|
name: string;
|
|
@@ -5325,57 +5342,57 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5325
5342
|
createdAt: Date;
|
|
5326
5343
|
updatedAt?: Date | undefined;
|
|
5327
5344
|
}>;
|
|
5328
|
-
deleteDashTeam:
|
|
5345
|
+
deleteDashTeam: import("better-call").StrictEndpoint<"/dash/organization/delete-team", {
|
|
5329
5346
|
method: "POST";
|
|
5330
|
-
use: ((inputContext:
|
|
5347
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5331
5348
|
payload: {
|
|
5332
5349
|
organizationId: string;
|
|
5333
5350
|
};
|
|
5334
5351
|
}>)[];
|
|
5335
|
-
body: zod.ZodObject<{
|
|
5336
|
-
teamId: zod.ZodString;
|
|
5337
|
-
},
|
|
5352
|
+
body: import("zod").ZodObject<{
|
|
5353
|
+
teamId: import("zod").ZodString;
|
|
5354
|
+
}, import("zod/v4/core").$strip>;
|
|
5338
5355
|
}, DashSuccessResponse>;
|
|
5339
|
-
addDashTeamMember:
|
|
5356
|
+
addDashTeamMember: import("better-call").StrictEndpoint<"/dash/organization/add-team-member", {
|
|
5340
5357
|
method: "POST";
|
|
5341
|
-
use: ((inputContext:
|
|
5358
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5342
5359
|
payload: {
|
|
5343
5360
|
organizationId: string;
|
|
5344
5361
|
};
|
|
5345
5362
|
}>)[];
|
|
5346
|
-
body: zod.ZodObject<{
|
|
5347
|
-
teamId: zod.ZodString;
|
|
5348
|
-
userId: zod.ZodString;
|
|
5349
|
-
},
|
|
5363
|
+
body: import("zod").ZodObject<{
|
|
5364
|
+
teamId: import("zod").ZodString;
|
|
5365
|
+
userId: import("zod").ZodString;
|
|
5366
|
+
}, import("zod/v4/core").$strip>;
|
|
5350
5367
|
}, {
|
|
5351
5368
|
id: string;
|
|
5352
5369
|
teamId: string;
|
|
5353
5370
|
userId: string;
|
|
5354
5371
|
createdAt: Date;
|
|
5355
5372
|
}>;
|
|
5356
|
-
removeDashTeamMember:
|
|
5373
|
+
removeDashTeamMember: import("better-call").StrictEndpoint<"/dash/organization/remove-team-member", {
|
|
5357
5374
|
method: "POST";
|
|
5358
|
-
use: ((inputContext:
|
|
5375
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5359
5376
|
payload: {
|
|
5360
5377
|
organizationId: string;
|
|
5361
5378
|
};
|
|
5362
5379
|
}>)[];
|
|
5363
|
-
body: zod.ZodObject<{
|
|
5364
|
-
teamId: zod.ZodString;
|
|
5365
|
-
userId: zod.ZodString;
|
|
5366
|
-
},
|
|
5380
|
+
body: import("zod").ZodObject<{
|
|
5381
|
+
teamId: import("zod").ZodString;
|
|
5382
|
+
userId: import("zod").ZodString;
|
|
5383
|
+
}, import("zod/v4/core").$strip>;
|
|
5367
5384
|
}, DashSuccessResponse>;
|
|
5368
|
-
addDashMember:
|
|
5385
|
+
addDashMember: import("better-call").StrictEndpoint<"/dash/organization/add-member", {
|
|
5369
5386
|
method: "POST";
|
|
5370
|
-
use: ((inputContext:
|
|
5387
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5371
5388
|
payload: {
|
|
5372
5389
|
organizationId: string;
|
|
5373
5390
|
};
|
|
5374
5391
|
}>)[];
|
|
5375
|
-
body: zod.ZodObject<{
|
|
5376
|
-
userId: zod.ZodString;
|
|
5377
|
-
role: zod.ZodString;
|
|
5378
|
-
},
|
|
5392
|
+
body: import("zod").ZodObject<{
|
|
5393
|
+
userId: import("zod").ZodString;
|
|
5394
|
+
role: import("zod").ZodString;
|
|
5395
|
+
}, import("zod/v4/core").$strip>;
|
|
5379
5396
|
}, {
|
|
5380
5397
|
id: string;
|
|
5381
5398
|
organizationId: string;
|
|
@@ -5383,37 +5400,37 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5383
5400
|
role: string;
|
|
5384
5401
|
createdAt: Date;
|
|
5385
5402
|
}>;
|
|
5386
|
-
removeDashMember:
|
|
5403
|
+
removeDashMember: import("better-call").StrictEndpoint<"/dash/organization/remove-member", {
|
|
5387
5404
|
method: "POST";
|
|
5388
|
-
use: ((inputContext:
|
|
5405
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5389
5406
|
payload: {
|
|
5390
5407
|
organizationId: string;
|
|
5391
5408
|
};
|
|
5392
5409
|
}>)[];
|
|
5393
|
-
body: zod.ZodObject<{
|
|
5394
|
-
memberId: zod.ZodString;
|
|
5395
|
-
},
|
|
5410
|
+
body: import("zod").ZodObject<{
|
|
5411
|
+
memberId: import("zod").ZodString;
|
|
5412
|
+
}, import("zod/v4/core").$strip>;
|
|
5396
5413
|
}, DashSuccessResponse>;
|
|
5397
|
-
updateDashMemberRole:
|
|
5414
|
+
updateDashMemberRole: import("better-call").StrictEndpoint<"/dash/organization/update-member-role", {
|
|
5398
5415
|
method: "POST";
|
|
5399
|
-
use: ((inputContext:
|
|
5416
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5400
5417
|
payload: {
|
|
5401
5418
|
organizationId: string;
|
|
5402
5419
|
};
|
|
5403
5420
|
}>)[];
|
|
5404
|
-
body: zod.ZodObject<{
|
|
5405
|
-
memberId: zod.ZodString;
|
|
5406
|
-
role: zod.ZodString;
|
|
5407
|
-
},
|
|
5421
|
+
body: import("zod").ZodObject<{
|
|
5422
|
+
memberId: import("zod").ZodString;
|
|
5423
|
+
role: import("zod").ZodString;
|
|
5424
|
+
}, import("zod/v4/core").$strip>;
|
|
5408
5425
|
}, DashOrganizationUpdateMemberRoleResponse>;
|
|
5409
|
-
inviteDashMember:
|
|
5426
|
+
inviteDashMember: import("better-call").StrictEndpoint<"/dash/organization/invite-member", {
|
|
5410
5427
|
method: "POST";
|
|
5411
|
-
body: zod.ZodObject<{
|
|
5412
|
-
email: zod.ZodString;
|
|
5413
|
-
role: zod.ZodString;
|
|
5414
|
-
invitedBy: zod.ZodString;
|
|
5415
|
-
},
|
|
5416
|
-
use: ((inputContext:
|
|
5428
|
+
body: import("zod").ZodObject<{
|
|
5429
|
+
email: import("zod").ZodString;
|
|
5430
|
+
role: import("zod").ZodString;
|
|
5431
|
+
invitedBy: import("zod").ZodString;
|
|
5432
|
+
}, import("zod/v4/core").$strip>;
|
|
5433
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5417
5434
|
payload: {
|
|
5418
5435
|
organizationId: string;
|
|
5419
5436
|
invitedBy: string;
|
|
@@ -5430,184 +5447,184 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5430
5447
|
createdAt: Date;
|
|
5431
5448
|
teamId?: string | null | undefined;
|
|
5432
5449
|
}>;
|
|
5433
|
-
cancelDashInvitation:
|
|
5450
|
+
cancelDashInvitation: import("better-call").StrictEndpoint<"/dash/organization/cancel-invitation", {
|
|
5434
5451
|
method: "POST";
|
|
5435
|
-
use: ((inputContext:
|
|
5452
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5436
5453
|
payload: {
|
|
5437
5454
|
organizationId: string;
|
|
5438
5455
|
invitationId: string;
|
|
5439
5456
|
};
|
|
5440
5457
|
}>)[];
|
|
5441
|
-
body: zod.ZodObject<{
|
|
5442
|
-
invitationId: zod.ZodString;
|
|
5443
|
-
},
|
|
5458
|
+
body: import("zod").ZodObject<{
|
|
5459
|
+
invitationId: import("zod").ZodString;
|
|
5460
|
+
}, import("zod/v4/core").$strip>;
|
|
5444
5461
|
}, DashSuccessResponse>;
|
|
5445
|
-
resendDashInvitation:
|
|
5462
|
+
resendDashInvitation: import("better-call").StrictEndpoint<"/dash/organization/resend-invitation", {
|
|
5446
5463
|
method: "POST";
|
|
5447
|
-
use: ((inputContext:
|
|
5464
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5448
5465
|
payload: {
|
|
5449
5466
|
organizationId: string;
|
|
5450
5467
|
invitationId: string;
|
|
5451
5468
|
};
|
|
5452
5469
|
}>)[];
|
|
5453
|
-
body: zod.ZodObject<{
|
|
5454
|
-
invitationId: zod.ZodString;
|
|
5455
|
-
},
|
|
5470
|
+
body: import("zod").ZodObject<{
|
|
5471
|
+
invitationId: import("zod").ZodString;
|
|
5472
|
+
}, import("zod/v4/core").$strip>;
|
|
5456
5473
|
}, DashSuccessResponse>;
|
|
5457
|
-
dashCheckUserByEmail:
|
|
5474
|
+
dashCheckUserByEmail: import("better-call").StrictEndpoint<"/dash/organization/check-user-by-email", {
|
|
5458
5475
|
method: "POST";
|
|
5459
|
-
body: zod.ZodObject<{
|
|
5460
|
-
email: zod.ZodString;
|
|
5461
|
-
},
|
|
5462
|
-
use: ((inputContext:
|
|
5476
|
+
body: import("zod").ZodObject<{
|
|
5477
|
+
email: import("zod").ZodString;
|
|
5478
|
+
}, import("zod/v4/core").$strip>;
|
|
5479
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5463
5480
|
payload: {
|
|
5464
5481
|
organizationId: string;
|
|
5465
5482
|
};
|
|
5466
5483
|
}>)[];
|
|
5467
5484
|
}, DashCheckUserByEmailResponse>;
|
|
5468
|
-
dashGetUserStats:
|
|
5485
|
+
dashGetUserStats: import("better-call").StrictEndpoint<"/dash/user-stats", {
|
|
5469
5486
|
method: "GET";
|
|
5470
|
-
use: ((inputContext:
|
|
5487
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5471
5488
|
payload: Record<string, unknown>;
|
|
5472
5489
|
}>)[];
|
|
5473
5490
|
}, DashUserStatsResponse>;
|
|
5474
|
-
dashGetUserGraphData:
|
|
5491
|
+
dashGetUserGraphData: import("better-call").StrictEndpoint<"/dash/user-graph-data", {
|
|
5475
5492
|
method: "GET";
|
|
5476
|
-
use: ((inputContext:
|
|
5493
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5477
5494
|
payload: Record<string, unknown>;
|
|
5478
5495
|
}>)[];
|
|
5479
|
-
query: zod.ZodObject<{
|
|
5480
|
-
period: zod.ZodDefault<zod.ZodEnum<{
|
|
5496
|
+
query: import("zod").ZodObject<{
|
|
5497
|
+
period: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
5481
5498
|
daily: "daily";
|
|
5482
5499
|
weekly: "weekly";
|
|
5483
5500
|
monthly: "monthly";
|
|
5484
5501
|
}>>;
|
|
5485
|
-
},
|
|
5502
|
+
}, import("zod/v4/core").$strip>;
|
|
5486
5503
|
}, DashUserGraphDataResponse>;
|
|
5487
|
-
dashGetUserRetentionData:
|
|
5504
|
+
dashGetUserRetentionData: import("better-call").StrictEndpoint<"/dash/user-retention-data", {
|
|
5488
5505
|
method: "GET";
|
|
5489
|
-
use: ((inputContext:
|
|
5506
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5490
5507
|
payload: Record<string, unknown>;
|
|
5491
5508
|
}>)[];
|
|
5492
|
-
query: zod.ZodObject<{
|
|
5493
|
-
period: zod.ZodDefault<zod.ZodEnum<{
|
|
5509
|
+
query: import("zod").ZodObject<{
|
|
5510
|
+
period: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
5494
5511
|
daily: "daily";
|
|
5495
5512
|
weekly: "weekly";
|
|
5496
5513
|
monthly: "monthly";
|
|
5497
5514
|
}>>;
|
|
5498
|
-
},
|
|
5515
|
+
}, import("zod/v4/core").$strip>;
|
|
5499
5516
|
}, DashUserRetentionDataResponse>;
|
|
5500
|
-
dashBanUser:
|
|
5517
|
+
dashBanUser: import("better-call").StrictEndpoint<"/dash/ban-user", {
|
|
5501
5518
|
method: "POST";
|
|
5502
|
-
use: ((inputContext:
|
|
5519
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5503
5520
|
payload: {
|
|
5504
5521
|
userId: string;
|
|
5505
5522
|
};
|
|
5506
5523
|
}>)[];
|
|
5507
|
-
body: zod.ZodObject<{
|
|
5508
|
-
banReason: zod.ZodOptional<zod.ZodString>;
|
|
5509
|
-
banExpires: zod.ZodOptional<zod.ZodNumber>;
|
|
5510
|
-
},
|
|
5524
|
+
body: import("zod").ZodObject<{
|
|
5525
|
+
banReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5526
|
+
banExpires: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
5527
|
+
}, import("zod/v4/core").$strip>;
|
|
5511
5528
|
}, DashSuccessResponse>;
|
|
5512
|
-
dashBanManyUsers:
|
|
5529
|
+
dashBanManyUsers: import("better-call").StrictEndpoint<"/dash/ban-many-users", {
|
|
5513
5530
|
method: "POST";
|
|
5514
|
-
use: ((inputContext:
|
|
5531
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5515
5532
|
payload: {
|
|
5516
5533
|
userIds: string[];
|
|
5517
5534
|
};
|
|
5518
5535
|
}>)[];
|
|
5519
|
-
body: zod.ZodObject<{
|
|
5520
|
-
banReason: zod.ZodOptional<zod.ZodString>;
|
|
5521
|
-
banExpires: zod.ZodOptional<zod.ZodNumber>;
|
|
5522
|
-
},
|
|
5536
|
+
body: import("zod").ZodObject<{
|
|
5537
|
+
banReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5538
|
+
banExpires: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
5539
|
+
}, import("zod/v4/core").$strip>;
|
|
5523
5540
|
}, DashBanManyResponse>;
|
|
5524
|
-
dashUnbanUser:
|
|
5541
|
+
dashUnbanUser: import("better-call").StrictEndpoint<"/dash/unban-user", {
|
|
5525
5542
|
method: "POST";
|
|
5526
|
-
use: ((inputContext:
|
|
5543
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5527
5544
|
payload: {
|
|
5528
5545
|
userId: string;
|
|
5529
5546
|
};
|
|
5530
5547
|
}>)[];
|
|
5531
5548
|
}, DashSuccessResponse>;
|
|
5532
|
-
dashSendVerificationEmail:
|
|
5549
|
+
dashSendVerificationEmail: import("better-call").StrictEndpoint<"/dash/send-verification-email", {
|
|
5533
5550
|
method: "POST";
|
|
5534
|
-
use: ((inputContext:
|
|
5551
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5535
5552
|
payload: {
|
|
5536
5553
|
userId: string;
|
|
5537
5554
|
};
|
|
5538
5555
|
}>)[];
|
|
5539
|
-
body: zod.ZodObject<{
|
|
5540
|
-
callbackUrl: zod.ZodURL;
|
|
5541
|
-
},
|
|
5556
|
+
body: import("zod").ZodObject<{
|
|
5557
|
+
callbackUrl: import("zod").ZodURL;
|
|
5558
|
+
}, import("zod/v4/core").$strip>;
|
|
5542
5559
|
}, DashSuccessResponse>;
|
|
5543
|
-
dashSendManyVerificationEmails:
|
|
5560
|
+
dashSendManyVerificationEmails: import("better-call").StrictEndpoint<"/dash/send-many-verification-emails", {
|
|
5544
5561
|
method: "POST";
|
|
5545
|
-
use: ((inputContext:
|
|
5562
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5546
5563
|
payload: {
|
|
5547
5564
|
userIds: string[];
|
|
5548
5565
|
};
|
|
5549
5566
|
}>)[];
|
|
5550
|
-
body: zod.ZodObject<{
|
|
5551
|
-
callbackUrl: zod.ZodURL;
|
|
5552
|
-
},
|
|
5567
|
+
body: import("zod").ZodObject<{
|
|
5568
|
+
callbackUrl: import("zod").ZodURL;
|
|
5569
|
+
}, import("zod/v4/core").$strip>;
|
|
5553
5570
|
}, DashSendManyVerificationEmailsResponse>;
|
|
5554
|
-
dashSendResetPasswordEmail:
|
|
5571
|
+
dashSendResetPasswordEmail: import("better-call").StrictEndpoint<"/dash/send-reset-password-email", {
|
|
5555
5572
|
method: "POST";
|
|
5556
|
-
use: ((inputContext:
|
|
5573
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5557
5574
|
payload: {
|
|
5558
5575
|
userId: string;
|
|
5559
5576
|
};
|
|
5560
5577
|
}>)[];
|
|
5561
|
-
body: zod.ZodObject<{
|
|
5562
|
-
callbackUrl: zod.ZodURL;
|
|
5563
|
-
},
|
|
5578
|
+
body: import("zod").ZodObject<{
|
|
5579
|
+
callbackUrl: import("zod").ZodURL;
|
|
5580
|
+
}, import("zod/v4/core").$strip>;
|
|
5564
5581
|
}, never>;
|
|
5565
|
-
dashEnableTwoFactor:
|
|
5582
|
+
dashEnableTwoFactor: import("better-call").StrictEndpoint<"/dash/enable-two-factor", {
|
|
5566
5583
|
method: "POST";
|
|
5567
|
-
use: ((inputContext:
|
|
5584
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5568
5585
|
payload: {
|
|
5569
5586
|
userId: string;
|
|
5570
5587
|
};
|
|
5571
5588
|
}>)[];
|
|
5572
5589
|
}, DashTwoFactorEnableResponse>;
|
|
5573
|
-
dashViewTwoFactorTotpUri:
|
|
5590
|
+
dashViewTwoFactorTotpUri: import("better-call").StrictEndpoint<"/dash/view-two-factor-totp-uri", {
|
|
5574
5591
|
method: "POST";
|
|
5575
5592
|
metadata: {
|
|
5576
5593
|
scope: "http";
|
|
5577
5594
|
};
|
|
5578
|
-
use: ((inputContext:
|
|
5595
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5579
5596
|
payload: {
|
|
5580
5597
|
userId: string;
|
|
5581
5598
|
};
|
|
5582
5599
|
}>)[];
|
|
5583
5600
|
}, DashTwoFactorTotpViewResponse>;
|
|
5584
|
-
dashViewBackupCodes:
|
|
5601
|
+
dashViewBackupCodes: import("better-call").StrictEndpoint<"/dash/view-backup-codes", {
|
|
5585
5602
|
method: "POST";
|
|
5586
|
-
use: ((inputContext:
|
|
5603
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5587
5604
|
payload: {
|
|
5588
5605
|
userId: string;
|
|
5589
5606
|
};
|
|
5590
5607
|
}>)[];
|
|
5591
5608
|
}, DashTwoFactorBackupCodesResponse>;
|
|
5592
|
-
dashDisableTwoFactor:
|
|
5609
|
+
dashDisableTwoFactor: import("better-call").StrictEndpoint<"/dash/disable-two-factor", {
|
|
5593
5610
|
method: "POST";
|
|
5594
|
-
use: ((inputContext:
|
|
5611
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5595
5612
|
payload: {
|
|
5596
5613
|
userId: string;
|
|
5597
5614
|
};
|
|
5598
5615
|
}>)[];
|
|
5599
5616
|
}, DashSuccessResponse>;
|
|
5600
|
-
dashGenerateBackupCodes:
|
|
5617
|
+
dashGenerateBackupCodes: import("better-call").StrictEndpoint<"/dash/generate-backup-codes", {
|
|
5601
5618
|
method: "POST";
|
|
5602
|
-
use: ((inputContext:
|
|
5619
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5603
5620
|
payload: {
|
|
5604
5621
|
userId: string;
|
|
5605
5622
|
};
|
|
5606
5623
|
}>)[];
|
|
5607
5624
|
}, DashTwoFactorBackupCodesResponse>;
|
|
5608
|
-
getUserEvents:
|
|
5625
|
+
getUserEvents: import("better-call").StrictEndpoint<"/events/list", {
|
|
5609
5626
|
method: "GET";
|
|
5610
|
-
use: ((inputContext:
|
|
5627
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5611
5628
|
session: {
|
|
5612
5629
|
session: Record<string, any> & {
|
|
5613
5630
|
id: string;
|
|
@@ -5630,15 +5647,15 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5630
5647
|
};
|
|
5631
5648
|
};
|
|
5632
5649
|
}>)[];
|
|
5633
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5634
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5635
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5636
|
-
eventType: zod.ZodOptional<zod.ZodString>;
|
|
5637
|
-
},
|
|
5650
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5651
|
+
limit: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
5652
|
+
offset: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
5653
|
+
eventType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5654
|
+
}, import("zod/v4/core").$strip>>;
|
|
5638
5655
|
}, UserEventsResponse>;
|
|
5639
|
-
getAuditLogs:
|
|
5656
|
+
getAuditLogs: import("better-call").StrictEndpoint<"/events/audit-logs", {
|
|
5640
5657
|
method: "GET";
|
|
5641
|
-
use: ((inputContext:
|
|
5658
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5642
5659
|
session: {
|
|
5643
5660
|
session: Record<string, any> & {
|
|
5644
5661
|
id: string;
|
|
@@ -5661,18 +5678,18 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5661
5678
|
};
|
|
5662
5679
|
};
|
|
5663
5680
|
}>)[];
|
|
5664
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5665
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5666
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5667
|
-
userId: zod.ZodOptional<zod.ZodString>;
|
|
5668
|
-
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
5669
|
-
identifier: zod.ZodOptional<zod.ZodString>;
|
|
5670
|
-
eventType: zod.ZodOptional<zod.ZodString>;
|
|
5671
|
-
},
|
|
5681
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5682
|
+
limit: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
5683
|
+
offset: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
5684
|
+
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5685
|
+
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5686
|
+
identifier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5687
|
+
eventType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5688
|
+
}, import("zod/v4/core").$strip>>;
|
|
5672
5689
|
}, UserEventsResponse>;
|
|
5673
|
-
getAllAuditLogs:
|
|
5690
|
+
getAllAuditLogs: import("better-call").StrictEndpoint<"/events/all-audit-logs", {
|
|
5674
5691
|
method: "GET";
|
|
5675
|
-
use: ((inputContext:
|
|
5692
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5676
5693
|
session: {
|
|
5677
5694
|
session: Record<string, any> & {
|
|
5678
5695
|
id: string;
|
|
@@ -5695,18 +5712,18 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5695
5712
|
};
|
|
5696
5713
|
};
|
|
5697
5714
|
}>)[];
|
|
5698
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5699
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5700
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5701
|
-
userId: zod.ZodOptional<zod.ZodString>;
|
|
5702
|
-
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
5703
|
-
eventType: zod.ZodOptional<zod.ZodString>;
|
|
5704
|
-
identifier: zod.ZodOptional<zod.ZodString>;
|
|
5705
|
-
},
|
|
5715
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5716
|
+
limit: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
5717
|
+
offset: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>]>>;
|
|
5718
|
+
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5719
|
+
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5720
|
+
eventType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5721
|
+
identifier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5722
|
+
}, import("zod/v4/core").$strip>>;
|
|
5706
5723
|
}, UserEventsResponse>;
|
|
5707
|
-
getEventTypes:
|
|
5724
|
+
getEventTypes: import("better-call").StrictEndpoint<"/events/types", {
|
|
5708
5725
|
method: "GET";
|
|
5709
|
-
use: ((inputContext:
|
|
5726
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5710
5727
|
session: {
|
|
5711
5728
|
session: Record<string, any> & {
|
|
5712
5729
|
id: string;
|
|
@@ -5730,13 +5747,13 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5730
5747
|
};
|
|
5731
5748
|
}>)[];
|
|
5732
5749
|
}, EventTypesResponse>;
|
|
5733
|
-
dashAcceptInvitation:
|
|
5750
|
+
dashAcceptInvitation: import("better-call").StrictEndpoint<"/dash/accept-invitation", {
|
|
5734
5751
|
method: "GET";
|
|
5735
|
-
query: zod.ZodObject<{
|
|
5736
|
-
token: zod.ZodString;
|
|
5737
|
-
},
|
|
5752
|
+
query: import("zod").ZodObject<{
|
|
5753
|
+
token: import("zod").ZodString;
|
|
5754
|
+
}, import("zod/v4/core").$strip>;
|
|
5738
5755
|
}, {
|
|
5739
|
-
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") |
|
|
5756
|
+
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") | import("better-call").Status;
|
|
5740
5757
|
body: ({
|
|
5741
5758
|
message?: string;
|
|
5742
5759
|
code?: string;
|
|
@@ -5749,75 +5766,78 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5749
5766
|
stack?: string;
|
|
5750
5767
|
cause?: unknown;
|
|
5751
5768
|
}>;
|
|
5752
|
-
dashCompleteInvitation:
|
|
5769
|
+
dashCompleteInvitation: import("better-call").StrictEndpoint<"/dash/complete-invitation", {
|
|
5753
5770
|
method: "POST";
|
|
5754
|
-
body: zod.ZodObject<{
|
|
5755
|
-
token: zod.ZodString;
|
|
5756
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
5757
|
-
providerId: zod.ZodOptional<zod.ZodString>;
|
|
5758
|
-
providerAccountId: zod.ZodOptional<zod.ZodString>;
|
|
5759
|
-
accessToken: zod.ZodOptional<zod.ZodString>;
|
|
5760
|
-
refreshToken: zod.ZodOptional<zod.ZodString>;
|
|
5761
|
-
},
|
|
5771
|
+
body: import("zod").ZodObject<{
|
|
5772
|
+
token: import("zod").ZodString;
|
|
5773
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5774
|
+
providerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5775
|
+
providerAccountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5776
|
+
accessToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5777
|
+
refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5778
|
+
}, import("zod/v4/core").$strip>;
|
|
5762
5779
|
}, DashCompleteInvitationResponse>;
|
|
5763
|
-
dashCheckUserExists:
|
|
5780
|
+
dashCheckUserExists: import("better-call").StrictEndpoint<"/dash/check-user-exists", {
|
|
5764
5781
|
method: "POST";
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
}
|
|
5782
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5783
|
+
payload: Record<string, unknown>;
|
|
5784
|
+
}>)[];
|
|
5785
|
+
body: import("zod").ZodObject<{
|
|
5786
|
+
email: import("zod").ZodEmail;
|
|
5787
|
+
}, import("zod/v4/core").$strip>;
|
|
5768
5788
|
}, DashCheckUserExistsResponse>;
|
|
5769
|
-
listDashOrganizationDirectories:
|
|
5789
|
+
listDashOrganizationDirectories: import("better-call").StrictEndpoint<"/dash/organization/:id/directories", {
|
|
5770
5790
|
method: "GET";
|
|
5771
|
-
use: ((inputContext:
|
|
5791
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5772
5792
|
payload: Record<string, unknown>;
|
|
5773
5793
|
}>)[];
|
|
5774
5794
|
}, DashDirectoryItem[]>;
|
|
5775
|
-
createDashOrganizationDirectory:
|
|
5795
|
+
createDashOrganizationDirectory: import("better-call").StrictEndpoint<"/dash/organization/directory/create", {
|
|
5776
5796
|
method: "POST";
|
|
5777
|
-
use: ((inputContext:
|
|
5797
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5778
5798
|
payload: {
|
|
5779
5799
|
organizationId: string;
|
|
5780
5800
|
};
|
|
5781
5801
|
}>)[];
|
|
5782
|
-
body: zod.ZodObject<{
|
|
5783
|
-
providerId: zod.ZodString;
|
|
5784
|
-
ownerUserId: zod.ZodString;
|
|
5785
|
-
},
|
|
5802
|
+
body: import("zod").ZodObject<{
|
|
5803
|
+
providerId: import("zod").ZodString;
|
|
5804
|
+
ownerUserId: import("zod").ZodString;
|
|
5805
|
+
}, import("zod/v4/core").$strip>;
|
|
5786
5806
|
}, DashDirectoryCreateResponse>;
|
|
5787
|
-
deleteDashOrganizationDirectory:
|
|
5807
|
+
deleteDashOrganizationDirectory: import("better-call").StrictEndpoint<"/dash/organization/directory/delete", {
|
|
5788
5808
|
method: "POST";
|
|
5789
|
-
use: ((inputContext:
|
|
5809
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5790
5810
|
payload: {
|
|
5791
5811
|
organizationId: string;
|
|
5792
5812
|
};
|
|
5793
5813
|
}>)[];
|
|
5794
|
-
body: zod.ZodObject<{
|
|
5795
|
-
providerId: zod.ZodString;
|
|
5796
|
-
},
|
|
5814
|
+
body: import("zod").ZodObject<{
|
|
5815
|
+
providerId: import("zod").ZodString;
|
|
5816
|
+
}, import("zod/v4/core").$strip>;
|
|
5797
5817
|
}, DashDirectoryDeleteResponse>;
|
|
5798
|
-
regenerateDashDirectoryToken:
|
|
5818
|
+
regenerateDashDirectoryToken: import("better-call").StrictEndpoint<"/dash/organization/directory/regenerate-token", {
|
|
5799
5819
|
method: "POST";
|
|
5800
|
-
use: ((inputContext:
|
|
5820
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5801
5821
|
payload: {
|
|
5802
5822
|
organizationId: string;
|
|
5803
5823
|
};
|
|
5804
5824
|
}>)[];
|
|
5805
|
-
body: zod.ZodObject<{
|
|
5806
|
-
providerId: zod.ZodString;
|
|
5807
|
-
},
|
|
5825
|
+
body: import("zod").ZodObject<{
|
|
5826
|
+
providerId: import("zod").ZodString;
|
|
5827
|
+
}, import("zod/v4/core").$strip>;
|
|
5808
5828
|
}, DashDirectoryRegenerateTokenResponse>;
|
|
5809
|
-
dashExecuteAdapter:
|
|
5829
|
+
dashExecuteAdapter: import("better-call").StrictEndpoint<"/dash/execute-adapter", {
|
|
5810
5830
|
method: "POST";
|
|
5811
|
-
use: ((inputContext:
|
|
5831
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5812
5832
|
payload: Record<string, unknown>;
|
|
5813
5833
|
}>)[];
|
|
5814
|
-
body: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
5815
|
-
action: zod.ZodLiteral<"findOne">;
|
|
5816
|
-
model: zod.ZodString;
|
|
5817
|
-
where: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
5818
|
-
field: zod.ZodString;
|
|
5819
|
-
value: zod.ZodUnknown;
|
|
5820
|
-
operator: zod.ZodOptional<zod.ZodEnum<{
|
|
5834
|
+
body: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
5835
|
+
action: import("zod").ZodLiteral<"findOne">;
|
|
5836
|
+
model: import("zod").ZodString;
|
|
5837
|
+
where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
5838
|
+
field: import("zod").ZodString;
|
|
5839
|
+
value: import("zod").ZodUnknown;
|
|
5840
|
+
operator: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5821
5841
|
in: "in";
|
|
5822
5842
|
eq: "eq";
|
|
5823
5843
|
ne: "ne";
|
|
@@ -5829,20 +5849,20 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5829
5849
|
starts_with: "starts_with";
|
|
5830
5850
|
ends_with: "ends_with";
|
|
5831
5851
|
}>>;
|
|
5832
|
-
connector: zod.ZodOptional<zod.ZodEnum<{
|
|
5852
|
+
connector: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5833
5853
|
OR: "OR";
|
|
5834
5854
|
AND: "AND";
|
|
5835
5855
|
}>>;
|
|
5836
|
-
},
|
|
5837
|
-
select: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5838
|
-
join: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
|
|
5839
|
-
},
|
|
5840
|
-
action: zod.ZodLiteral<"findMany">;
|
|
5841
|
-
model: zod.ZodString;
|
|
5842
|
-
where: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
5843
|
-
field: zod.ZodString;
|
|
5844
|
-
value: zod.ZodUnknown;
|
|
5845
|
-
operator: zod.ZodOptional<zod.ZodEnum<{
|
|
5856
|
+
}, import("zod/v4/core").$strip>>>;
|
|
5857
|
+
select: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
5858
|
+
join: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
5859
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5860
|
+
action: import("zod").ZodLiteral<"findMany">;
|
|
5861
|
+
model: import("zod").ZodString;
|
|
5862
|
+
where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
5863
|
+
field: import("zod").ZodString;
|
|
5864
|
+
value: import("zod").ZodUnknown;
|
|
5865
|
+
operator: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5846
5866
|
in: "in";
|
|
5847
5867
|
eq: "eq";
|
|
5848
5868
|
ne: "ne";
|
|
@@ -5854,32 +5874,32 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5854
5874
|
starts_with: "starts_with";
|
|
5855
5875
|
ends_with: "ends_with";
|
|
5856
5876
|
}>>;
|
|
5857
|
-
connector: zod.ZodOptional<zod.ZodEnum<{
|
|
5877
|
+
connector: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5858
5878
|
OR: "OR";
|
|
5859
5879
|
AND: "AND";
|
|
5860
5880
|
}>>;
|
|
5861
|
-
},
|
|
5862
|
-
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
5863
|
-
offset: zod.ZodOptional<zod.ZodNumber>;
|
|
5864
|
-
sortBy: zod.ZodOptional<zod.ZodObject<{
|
|
5865
|
-
field: zod.ZodString;
|
|
5866
|
-
direction: zod.ZodEnum<{
|
|
5881
|
+
}, import("zod/v4/core").$strip>>>;
|
|
5882
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
5883
|
+
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
5884
|
+
sortBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
5885
|
+
field: import("zod").ZodString;
|
|
5886
|
+
direction: import("zod").ZodEnum<{
|
|
5867
5887
|
asc: "asc";
|
|
5868
5888
|
desc: "desc";
|
|
5869
5889
|
}>;
|
|
5870
|
-
},
|
|
5871
|
-
join: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
|
|
5872
|
-
},
|
|
5873
|
-
action: zod.ZodLiteral<"create">;
|
|
5874
|
-
model: zod.ZodString;
|
|
5875
|
-
data: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
5876
|
-
},
|
|
5877
|
-
action: zod.ZodLiteral<"update">;
|
|
5878
|
-
model: zod.ZodString;
|
|
5879
|
-
where: zod.ZodArray<zod.ZodObject<{
|
|
5880
|
-
field: zod.ZodString;
|
|
5881
|
-
value: zod.ZodUnknown;
|
|
5882
|
-
operator: zod.ZodOptional<zod.ZodEnum<{
|
|
5890
|
+
}, import("zod/v4/core").$strip>>;
|
|
5891
|
+
join: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
5892
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5893
|
+
action: import("zod").ZodLiteral<"create">;
|
|
5894
|
+
model: import("zod").ZodString;
|
|
5895
|
+
data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
5896
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5897
|
+
action: import("zod").ZodLiteral<"update">;
|
|
5898
|
+
model: import("zod").ZodString;
|
|
5899
|
+
where: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5900
|
+
field: import("zod").ZodString;
|
|
5901
|
+
value: import("zod").ZodUnknown;
|
|
5902
|
+
operator: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5883
5903
|
in: "in";
|
|
5884
5904
|
eq: "eq";
|
|
5885
5905
|
ne: "ne";
|
|
@@ -5891,19 +5911,19 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5891
5911
|
starts_with: "starts_with";
|
|
5892
5912
|
ends_with: "ends_with";
|
|
5893
5913
|
}>>;
|
|
5894
|
-
connector: zod.ZodOptional<zod.ZodEnum<{
|
|
5914
|
+
connector: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5895
5915
|
OR: "OR";
|
|
5896
5916
|
AND: "AND";
|
|
5897
5917
|
}>>;
|
|
5898
|
-
},
|
|
5899
|
-
update: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
5900
|
-
},
|
|
5901
|
-
action: zod.ZodLiteral<"count">;
|
|
5902
|
-
model: zod.ZodString;
|
|
5903
|
-
where: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
5904
|
-
field: zod.ZodString;
|
|
5905
|
-
value: zod.ZodUnknown;
|
|
5906
|
-
operator: zod.ZodOptional<zod.ZodEnum<{
|
|
5918
|
+
}, import("zod/v4/core").$strip>>;
|
|
5919
|
+
update: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
5920
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5921
|
+
action: import("zod").ZodLiteral<"count">;
|
|
5922
|
+
model: import("zod").ZodString;
|
|
5923
|
+
where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
5924
|
+
field: import("zod").ZodString;
|
|
5925
|
+
value: import("zod").ZodUnknown;
|
|
5926
|
+
operator: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5907
5927
|
in: "in";
|
|
5908
5928
|
eq: "eq";
|
|
5909
5929
|
ne: "ne";
|
|
@@ -5915,12 +5935,12 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5915
5935
|
starts_with: "starts_with";
|
|
5916
5936
|
ends_with: "ends_with";
|
|
5917
5937
|
}>>;
|
|
5918
|
-
connector: zod.ZodOptional<zod.ZodEnum<{
|
|
5938
|
+
connector: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5919
5939
|
OR: "OR";
|
|
5920
5940
|
AND: "AND";
|
|
5921
5941
|
}>>;
|
|
5922
|
-
},
|
|
5923
|
-
},
|
|
5942
|
+
}, import("zod/v4/core").$strip>>>;
|
|
5943
|
+
}, import("zod/v4/core").$strip>], "action">;
|
|
5924
5944
|
}, DashExecuteAdapterResponse>;
|
|
5925
5945
|
};
|
|
5926
5946
|
schema: O extends {
|
|
@@ -5939,4 +5959,4 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5939
5959
|
} : {};
|
|
5940
5960
|
};
|
|
5941
5961
|
//#endregion
|
|
5942
|
-
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, DashOptionsResolved, 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, DashUserStatsActivePeriod, DashUserStatsResponse, DashUserStatsSignUpPeriod, 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 };
|
|
5962
|
+
export { type APIError, CHALLENGE_TTL, type CompromisedPasswordResult, type CredentialStuffingResult, type DBField, DEFAULT_DIFFICULTY, type DashAddTeamMemberResponse, type DashBanManyResponse, type DashCheckUserByEmailResponse, type DashCheckUserExistsResponse, type DashCompleteInvitationResponse, type DashConfigResponse, type DashCreateOrganizationBody, type DashCreateOrganizationResponse, type DashCreateTeamResponse, type DashCreateUserResponse, type DashDeleteManyUsersResponse, type DashDirectoryCreateResponse, type DashDirectoryDeleteResponse, type DashDirectoryItem, type DashDirectoryRegenerateTokenResponse, type DashExecuteAdapterCountResponse, type DashExecuteAdapterFindManyResponse, type DashExecuteAdapterFindOneResponse, type DashExecuteAdapterMutationResponse, type DashExecuteAdapterResponse, type DashExportOrganizationsResponse, type DashIdRow, type DashInviteMemberResponse, type DashMaybeSuccessResponse, type DashOptions, type DashOptionsInternal, type DashOptionsResolved, type DashOrganizationAddMemberResponse, type DashOrganizationDeleteManyResponse, type DashOrganizationDetailResponse, type DashOrganizationInvitationItem, type DashOrganizationInvitationListResponse, type DashOrganizationInvitationStatusItem, type DashOrganizationListResponse, type DashOrganizationMember, type DashOrganizationMemberListItem, type DashOrganizationMemberListResponse, type DashOrganizationMemberUser, type DashOrganizationOptionsResponse, type DashOrganizationTeamItem, type DashOrganizationTeamListResponse, type DashOrganizationUpdateMemberRoleResponse, type DashOrganizationUpdateResponse, type DashSendManyVerificationEmailsResponse, type DashSessionRevokeManyResponse, type DashSsoCreateProviderResponse, type DashSsoDeleteResponse, type DashSsoMarkDomainVerifiedResponse, type DashSsoProviderItem, type DashSsoProviderSummary, type DashSsoUpdateProviderResponse, type DashSsoVerificationTokenResponse, type DashSsoVerifyDomainResponse, type DashSuccessResponse, type DashTeam, type DashTeamMember, type DashTeamMemberListResponse, type DashTwoFactorBackupCodesResponse, type DashTwoFactorEnableResponse, type DashTwoFactorTotpViewResponse, type DashUpdateTeamResponse, type DashUpdateUserResponse, type DashUserDetailsResponse, type DashUserGraphDataResponse, type DashUserListResponse, type DashUserOrganizationsResponse, type DashUserRetentionDataResponse, type DashUserStatsActivePeriod, type DashUserStatsResponse, type DashUserStatsSignUpPeriod, type DashValidateResponse, type DirectorySyncConnection, EMAIL_TEMPLATES, type EmailConfig, type EmailTemplateId, type EmailTemplateVariables, type Endpoint, type EndpointOptions, type EventLocation, type EventTypesResponse, type ImpossibleTravelResult, type InfraEndpointContext, type InfraPluginConnectionOptions, type InfraPluginConnectionOptionsInternal, type LocationData, type LocationDataContext, type PoWChallenge, type PoWSolution, type 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, type 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 };
|