@better-auth/infra 0.2.7 → 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 +590 -564
- package/dist/index.mjs +217 -81
- package/dist/native.d.mts +1 -1
- package/package.json +7 -7
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[];
|
|
@@ -4369,7 +4386,13 @@ interface DashCompleteInvitationResponse {
|
|
|
4369
4386
|
//#endregion
|
|
4370
4387
|
//#region src/routes/organizations/types.d.ts
|
|
4371
4388
|
type DashOrganizationUpdateResponse = Organization;
|
|
4372
|
-
|
|
4389
|
+
/** Mirrors joined `user` row fields exposed on dash org APIs. Omitted when the user has no email (e.g. phone-only). */
|
|
4390
|
+
type DashOrganizationMemberUser = {
|
|
4391
|
+
id: string;
|
|
4392
|
+
name: string;
|
|
4393
|
+
email?: string;
|
|
4394
|
+
image: string | null;
|
|
4395
|
+
};
|
|
4373
4396
|
type DashOrganizationDetailResponse = Organization & {
|
|
4374
4397
|
memberCount: number;
|
|
4375
4398
|
members?: DashOrganizationMemberUser[];
|
|
@@ -4625,7 +4648,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4625
4648
|
id: "dash";
|
|
4626
4649
|
options: DashOptionsResolved;
|
|
4627
4650
|
version: string;
|
|
4628
|
-
init(ctx:
|
|
4651
|
+
init(ctx: import("better-auth").AuthContext): {
|
|
4629
4652
|
options: {
|
|
4630
4653
|
databaseHooks: {
|
|
4631
4654
|
user: {
|
|
@@ -4638,7 +4661,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4638
4661
|
emailVerified: boolean;
|
|
4639
4662
|
name: string;
|
|
4640
4663
|
image?: string | null | undefined;
|
|
4641
|
-
} & Record<string, unknown>, _ctx:
|
|
4664
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4642
4665
|
};
|
|
4643
4666
|
update: {
|
|
4644
4667
|
after(user: {
|
|
@@ -4649,7 +4672,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4649
4672
|
emailVerified: boolean;
|
|
4650
4673
|
name: string;
|
|
4651
4674
|
image?: string | null | undefined;
|
|
4652
|
-
} & Record<string, unknown>, _ctx:
|
|
4675
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4653
4676
|
};
|
|
4654
4677
|
delete: {
|
|
4655
4678
|
after(user: {
|
|
@@ -4660,7 +4683,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4660
4683
|
emailVerified: boolean;
|
|
4661
4684
|
name: string;
|
|
4662
4685
|
image?: string | null | undefined;
|
|
4663
|
-
} & Record<string, unknown>, _ctx:
|
|
4686
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4664
4687
|
};
|
|
4665
4688
|
};
|
|
4666
4689
|
session: {
|
|
@@ -4674,7 +4697,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4674
4697
|
token: string;
|
|
4675
4698
|
ipAddress?: string | null | undefined;
|
|
4676
4699
|
userAgent?: string | null | undefined;
|
|
4677
|
-
} & Record<string, unknown>, _ctx:
|
|
4700
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<{
|
|
4678
4701
|
data: {
|
|
4679
4702
|
loginMethod: string | null;
|
|
4680
4703
|
};
|
|
@@ -4688,7 +4711,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4688
4711
|
token: string;
|
|
4689
4712
|
ipAddress?: string | null | undefined;
|
|
4690
4713
|
userAgent?: string | null | undefined;
|
|
4691
|
-
} & Record<string, unknown>, _ctx:
|
|
4714
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4692
4715
|
};
|
|
4693
4716
|
delete: {
|
|
4694
4717
|
after(session: {
|
|
@@ -4700,7 +4723,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4700
4723
|
token: string;
|
|
4701
4724
|
ipAddress?: string | null | undefined;
|
|
4702
4725
|
userAgent?: string | null | undefined;
|
|
4703
|
-
} & Record<string, unknown>, _ctx:
|
|
4726
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4704
4727
|
};
|
|
4705
4728
|
};
|
|
4706
4729
|
account: {
|
|
@@ -4719,7 +4742,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4719
4742
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4720
4743
|
scope?: string | null | undefined;
|
|
4721
4744
|
password?: string | null | undefined;
|
|
4722
|
-
}, _ctx:
|
|
4745
|
+
}, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4723
4746
|
};
|
|
4724
4747
|
update: {
|
|
4725
4748
|
after(account: {
|
|
@@ -4736,7 +4759,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4736
4759
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4737
4760
|
scope?: string | null | undefined;
|
|
4738
4761
|
password?: string | null | undefined;
|
|
4739
|
-
} & Record<string, unknown>, _ctx:
|
|
4762
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4740
4763
|
};
|
|
4741
4764
|
delete: {
|
|
4742
4765
|
after(account: {
|
|
@@ -4753,7 +4776,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4753
4776
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
4754
4777
|
scope?: string | null | undefined;
|
|
4755
4778
|
password?: string | null | undefined;
|
|
4756
|
-
} & Record<string, unknown>, _ctx:
|
|
4779
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4757
4780
|
};
|
|
4758
4781
|
};
|
|
4759
4782
|
verification: {
|
|
@@ -4765,7 +4788,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4765
4788
|
value: string;
|
|
4766
4789
|
expiresAt: Date;
|
|
4767
4790
|
identifier: string;
|
|
4768
|
-
} & Record<string, unknown>, _ctx:
|
|
4791
|
+
} & Record<string, unknown>, _ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4769
4792
|
};
|
|
4770
4793
|
delete: {
|
|
4771
4794
|
after(verification: {
|
|
@@ -4775,7 +4798,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4775
4798
|
value: string;
|
|
4776
4799
|
expiresAt: Date;
|
|
4777
4800
|
identifier: string;
|
|
4778
|
-
} & Record<string, unknown>, ctx:
|
|
4801
|
+
} & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
4779
4802
|
};
|
|
4780
4803
|
};
|
|
4781
4804
|
};
|
|
@@ -4786,81 +4809,81 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4786
4809
|
};
|
|
4787
4810
|
hooks: {
|
|
4788
4811
|
before: {
|
|
4789
|
-
matcher: (ctx:
|
|
4790
|
-
handler: (inputContext:
|
|
4812
|
+
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
4813
|
+
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
|
|
4791
4814
|
}[];
|
|
4792
4815
|
after: {
|
|
4793
|
-
matcher: (ctx:
|
|
4794
|
-
handler: (inputContext:
|
|
4816
|
+
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
4817
|
+
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
|
|
4795
4818
|
}[];
|
|
4796
4819
|
};
|
|
4797
4820
|
endpoints: {
|
|
4798
|
-
getDashConfig:
|
|
4821
|
+
getDashConfig: import("better-call").StrictEndpoint<"/dash/config", {
|
|
4799
4822
|
method: "GET";
|
|
4800
|
-
use: ((inputContext:
|
|
4823
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4801
4824
|
payload: Record<string, unknown>;
|
|
4802
4825
|
}>)[];
|
|
4803
4826
|
}, DashConfigResponse>;
|
|
4804
|
-
getDashValidate:
|
|
4827
|
+
getDashValidate: import("better-call").StrictEndpoint<"/dash/validate", {
|
|
4805
4828
|
method: "GET";
|
|
4806
|
-
use: ((inputContext:
|
|
4807
|
-
payload:
|
|
4829
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4830
|
+
payload: import("jose").JWTPayload;
|
|
4808
4831
|
}>)[];
|
|
4809
4832
|
}, DashValidateResponse>;
|
|
4810
|
-
getDashUsers:
|
|
4833
|
+
getDashUsers: import("better-call").StrictEndpoint<"/dash/list-users", {
|
|
4811
4834
|
method: "GET";
|
|
4812
|
-
use: ((inputContext:
|
|
4835
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4813
4836
|
payload: Record<string, unknown>;
|
|
4814
4837
|
}>)[];
|
|
4815
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
4816
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4817
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4818
|
-
sortBy: zod.ZodOptional<zod.ZodString>;
|
|
4819
|
-
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<{
|
|
4820
4843
|
asc: "asc";
|
|
4821
4844
|
desc: "desc";
|
|
4822
4845
|
}>>;
|
|
4823
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4824
|
-
countWhere: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4825
|
-
},
|
|
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>>;
|
|
4826
4849
|
}, DashUserListResponse>;
|
|
4827
|
-
exportDashUsers:
|
|
4850
|
+
exportDashUsers: import("better-call").StrictEndpoint<"/dash/export-users", {
|
|
4828
4851
|
method: "GET";
|
|
4829
|
-
use: ((inputContext:
|
|
4852
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4830
4853
|
payload: Record<string, unknown>;
|
|
4831
4854
|
}>)[];
|
|
4832
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
4833
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4834
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4835
|
-
sortBy: zod.ZodOptional<zod.ZodString>;
|
|
4836
|
-
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<{
|
|
4837
4860
|
asc: "asc";
|
|
4838
4861
|
desc: "desc";
|
|
4839
4862
|
}>>;
|
|
4840
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4841
|
-
countWhere: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4842
|
-
},
|
|
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>>;
|
|
4843
4866
|
}, Response>;
|
|
4844
|
-
createDashUser:
|
|
4867
|
+
createDashUser: import("better-call").StrictEndpoint<"/dash/create-user", {
|
|
4845
4868
|
method: "POST";
|
|
4846
|
-
use: ((inputContext:
|
|
4869
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4847
4870
|
payload: {
|
|
4848
4871
|
organizationId?: string | undefined;
|
|
4849
4872
|
organizationRole?: string | undefined;
|
|
4850
4873
|
};
|
|
4851
4874
|
}>)[];
|
|
4852
|
-
body: zod.ZodObject<{
|
|
4853
|
-
name: zod.ZodString;
|
|
4854
|
-
email: zod.ZodEmail;
|
|
4855
|
-
image: zod.ZodOptional<zod.ZodString>;
|
|
4856
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
4857
|
-
generatePassword: zod.ZodOptional<zod.ZodBoolean>;
|
|
4858
|
-
emailVerified: zod.ZodOptional<zod.ZodBoolean>;
|
|
4859
|
-
sendVerificationEmail: zod.ZodOptional<zod.ZodBoolean>;
|
|
4860
|
-
sendOrganizationInvite: zod.ZodOptional<zod.ZodBoolean>;
|
|
4861
|
-
organizationRole: zod.ZodOptional<zod.ZodString>;
|
|
4862
|
-
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
4863
|
-
},
|
|
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>;
|
|
4864
4887
|
}, {
|
|
4865
4888
|
id: string;
|
|
4866
4889
|
createdAt: Date;
|
|
@@ -4874,320 +4897,320 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4874
4897
|
banReason?: string | null;
|
|
4875
4898
|
banExpires?: number | null;
|
|
4876
4899
|
}>;
|
|
4877
|
-
deleteDashUser:
|
|
4900
|
+
deleteDashUser: import("better-call").StrictEndpoint<"/dash/delete-user", {
|
|
4878
4901
|
method: "POST";
|
|
4879
|
-
use: ((inputContext:
|
|
4902
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4880
4903
|
payload: {
|
|
4881
4904
|
userId: string;
|
|
4882
4905
|
};
|
|
4883
4906
|
}>)[];
|
|
4884
4907
|
}, void>;
|
|
4885
|
-
deleteManyDashUsers:
|
|
4908
|
+
deleteManyDashUsers: import("better-call").StrictEndpoint<"/dash/delete-many-users", {
|
|
4886
4909
|
method: "POST";
|
|
4887
|
-
use: ((inputContext:
|
|
4910
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4888
4911
|
payload: {
|
|
4889
4912
|
userIds: string[];
|
|
4890
4913
|
};
|
|
4891
4914
|
}>)[];
|
|
4892
4915
|
}, DashDeleteManyUsersResponse>;
|
|
4893
|
-
listDashOrganizations:
|
|
4916
|
+
listDashOrganizations: import("better-call").StrictEndpoint<"/dash/list-organizations", {
|
|
4894
4917
|
method: "GET";
|
|
4895
|
-
use: ((inputContext:
|
|
4918
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4896
4919
|
payload: Record<string, unknown>;
|
|
4897
4920
|
}>)[];
|
|
4898
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
4899
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4900
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4901
|
-
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<{
|
|
4902
4925
|
createdAt: "createdAt";
|
|
4903
4926
|
name: "name";
|
|
4904
4927
|
slug: "slug";
|
|
4905
4928
|
members: "members";
|
|
4906
4929
|
}>>;
|
|
4907
|
-
sortOrder: zod.ZodOptional<zod.ZodEnum<{
|
|
4930
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4908
4931
|
asc: "asc";
|
|
4909
4932
|
desc: "desc";
|
|
4910
4933
|
}>>;
|
|
4911
|
-
filterMembers: zod.ZodOptional<zod.ZodEnum<{
|
|
4934
|
+
filterMembers: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4912
4935
|
abandoned: "abandoned";
|
|
4913
4936
|
eq1: "eq1";
|
|
4914
4937
|
gt1: "gt1";
|
|
4915
4938
|
gt5: "gt5";
|
|
4916
4939
|
gt10: "gt10";
|
|
4917
4940
|
}>>;
|
|
4918
|
-
search: zod.ZodOptional<zod.ZodString>;
|
|
4919
|
-
startDate: zod.ZodOptional<zod.ZodUnion<[zod.ZodDate, zod.ZodPipe<zod.ZodString, zod.ZodTransform<Date, string>>]>>;
|
|
4920
|
-
endDate: zod.ZodOptional<zod.ZodUnion<[zod.ZodDate, zod.ZodPipe<zod.ZodString, zod.ZodTransform<Date, string>>]>>;
|
|
4921
|
-
},
|
|
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>>;
|
|
4922
4945
|
}, DashOrganizationListResponse>;
|
|
4923
|
-
exportDashOrganizations:
|
|
4946
|
+
exportDashOrganizations: import("better-call").StrictEndpoint<"/dash/export-organizations", {
|
|
4924
4947
|
method: "GET";
|
|
4925
|
-
use: ((inputContext:
|
|
4948
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4926
4949
|
payload: Record<string, unknown>;
|
|
4927
4950
|
}>)[];
|
|
4928
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
4929
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4930
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
4931
|
-
sortBy: zod.ZodOptional<zod.ZodString>;
|
|
4932
|
-
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<{
|
|
4933
4956
|
asc: "asc";
|
|
4934
4957
|
desc: "desc";
|
|
4935
4958
|
}>>;
|
|
4936
|
-
where: zod.ZodOptional<zod.ZodPipe<zod.ZodString, zod.ZodTransform<
|
|
4937
|
-
},
|
|
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>>;
|
|
4938
4961
|
}, Response>;
|
|
4939
|
-
getDashOrganization:
|
|
4962
|
+
getDashOrganization: import("better-call").StrictEndpoint<"/dash/organization/:id", {
|
|
4940
4963
|
method: "GET";
|
|
4941
|
-
use: ((inputContext:
|
|
4964
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4942
4965
|
payload: Record<string, unknown>;
|
|
4943
4966
|
}>)[];
|
|
4944
4967
|
}, DashOrganizationDetailResponse>;
|
|
4945
|
-
listDashOrganizationMembers:
|
|
4968
|
+
listDashOrganizationMembers: import("better-call").StrictEndpoint<"/dash/organization/:id/members", {
|
|
4946
4969
|
method: "GET";
|
|
4947
|
-
use: ((inputContext:
|
|
4970
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4948
4971
|
payload: Record<string, unknown>;
|
|
4949
4972
|
}>)[];
|
|
4950
4973
|
}, DashOrganizationMemberListResponse>;
|
|
4951
|
-
listDashOrganizationInvitations:
|
|
4974
|
+
listDashOrganizationInvitations: import("better-call").StrictEndpoint<"/dash/organization/:id/invitations", {
|
|
4952
4975
|
method: "GET";
|
|
4953
|
-
use: ((inputContext:
|
|
4976
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4954
4977
|
payload: Record<string, unknown>;
|
|
4955
4978
|
}>)[];
|
|
4956
4979
|
}, DashOrganizationInvitationListResponse>;
|
|
4957
|
-
listDashOrganizationTeams:
|
|
4980
|
+
listDashOrganizationTeams: import("better-call").StrictEndpoint<"/dash/organization/:id/teams", {
|
|
4958
4981
|
method: "GET";
|
|
4959
|
-
use: ((inputContext:
|
|
4982
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4960
4983
|
payload: Record<string, unknown>;
|
|
4961
4984
|
}>)[];
|
|
4962
4985
|
}, DashOrganizationTeamListResponse>;
|
|
4963
|
-
listDashOrganizationSsoProviders:
|
|
4986
|
+
listDashOrganizationSsoProviders: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-providers", {
|
|
4964
4987
|
method: "GET";
|
|
4965
|
-
use: ((inputContext:
|
|
4988
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4966
4989
|
payload: {
|
|
4967
4990
|
organizationId: string;
|
|
4968
4991
|
};
|
|
4969
4992
|
}>)[];
|
|
4970
4993
|
}, DashSsoProviderItem[]>;
|
|
4971
|
-
createDashSsoProvider:
|
|
4994
|
+
createDashSsoProvider: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/create", {
|
|
4972
4995
|
method: "POST";
|
|
4973
|
-
use: ((inputContext:
|
|
4996
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4974
4997
|
payload: {
|
|
4975
4998
|
organizationId: string;
|
|
4976
4999
|
};
|
|
4977
5000
|
}>)[];
|
|
4978
|
-
body: zod.ZodObject<{
|
|
4979
|
-
providerId: zod.ZodString;
|
|
4980
|
-
domain: zod.ZodString;
|
|
4981
|
-
protocol: zod.ZodEnum<{
|
|
5001
|
+
body: import("zod").ZodObject<{
|
|
5002
|
+
providerId: import("zod").ZodString;
|
|
5003
|
+
domain: import("zod").ZodString;
|
|
5004
|
+
protocol: import("zod").ZodEnum<{
|
|
4982
5005
|
SAML: "SAML";
|
|
4983
5006
|
OIDC: "OIDC";
|
|
4984
5007
|
}>;
|
|
4985
|
-
userId: zod.ZodString;
|
|
4986
|
-
samlConfig: zod.ZodOptional<zod.ZodObject<{
|
|
4987
|
-
idpMetadata: zod.ZodOptional<zod.ZodObject<{
|
|
4988
|
-
metadata: zod.ZodOptional<zod.ZodString>;
|
|
4989
|
-
metadataUrl: zod.ZodOptional<zod.ZodString>;
|
|
4990
|
-
},
|
|
4991
|
-
entryPoint: zod.ZodOptional<zod.ZodString>;
|
|
4992
|
-
cert: zod.ZodOptional<zod.ZodString>;
|
|
4993
|
-
entityId: zod.ZodOptional<zod.ZodString>;
|
|
4994
|
-
mapping: zod.ZodOptional<zod.ZodObject<{
|
|
4995
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
4996
|
-
email: zod.ZodOptional<zod.ZodString>;
|
|
4997
|
-
emailVerified: zod.ZodOptional<zod.ZodString>;
|
|
4998
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
4999
|
-
firstName: zod.ZodOptional<zod.ZodString>;
|
|
5000
|
-
lastName: zod.ZodOptional<zod.ZodString>;
|
|
5001
|
-
extraFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
5002
|
-
},
|
|
5003
|
-
},
|
|
5004
|
-
oidcConfig: zod.ZodOptional<zod.ZodObject<{
|
|
5005
|
-
clientId: zod.ZodString;
|
|
5006
|
-
clientSecret: zod.ZodOptional<zod.ZodString>;
|
|
5007
|
-
discoveryUrl: zod.ZodOptional<zod.ZodString>;
|
|
5008
|
-
issuer: zod.ZodOptional<zod.ZodString>;
|
|
5009
|
-
mapping: zod.ZodOptional<zod.ZodObject<{
|
|
5010
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
5011
|
-
email: zod.ZodOptional<zod.ZodString>;
|
|
5012
|
-
emailVerified: zod.ZodOptional<zod.ZodString>;
|
|
5013
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5014
|
-
image: zod.ZodOptional<zod.ZodString>;
|
|
5015
|
-
extraFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
5016
|
-
},
|
|
5017
|
-
},
|
|
5018
|
-
},
|
|
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>;
|
|
5019
5042
|
}, DashSsoCreateProviderResponse>;
|
|
5020
|
-
updateDashSsoProvider:
|
|
5043
|
+
updateDashSsoProvider: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/update", {
|
|
5021
5044
|
method: "POST";
|
|
5022
|
-
use: ((inputContext:
|
|
5045
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5023
5046
|
payload: {
|
|
5024
5047
|
organizationId: string;
|
|
5025
5048
|
};
|
|
5026
5049
|
}>)[];
|
|
5027
|
-
body: zod.ZodObject<{
|
|
5028
|
-
providerId: zod.ZodString;
|
|
5029
|
-
domain: zod.ZodString;
|
|
5030
|
-
protocol: zod.ZodEnum<{
|
|
5050
|
+
body: import("zod").ZodObject<{
|
|
5051
|
+
providerId: import("zod").ZodString;
|
|
5052
|
+
domain: import("zod").ZodString;
|
|
5053
|
+
protocol: import("zod").ZodEnum<{
|
|
5031
5054
|
SAML: "SAML";
|
|
5032
5055
|
OIDC: "OIDC";
|
|
5033
5056
|
}>;
|
|
5034
|
-
samlConfig: zod.ZodOptional<zod.ZodObject<{
|
|
5035
|
-
idpMetadata: zod.ZodOptional<zod.ZodObject<{
|
|
5036
|
-
metadata: zod.ZodOptional<zod.ZodString>;
|
|
5037
|
-
metadataUrl: zod.ZodOptional<zod.ZodString>;
|
|
5038
|
-
},
|
|
5039
|
-
entryPoint: zod.ZodOptional<zod.ZodString>;
|
|
5040
|
-
cert: zod.ZodOptional<zod.ZodString>;
|
|
5041
|
-
entityId: zod.ZodOptional<zod.ZodString>;
|
|
5042
|
-
mapping: zod.ZodOptional<zod.ZodObject<{
|
|
5043
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
5044
|
-
email: zod.ZodOptional<zod.ZodString>;
|
|
5045
|
-
emailVerified: zod.ZodOptional<zod.ZodString>;
|
|
5046
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5047
|
-
firstName: zod.ZodOptional<zod.ZodString>;
|
|
5048
|
-
lastName: zod.ZodOptional<zod.ZodString>;
|
|
5049
|
-
extraFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
5050
|
-
},
|
|
5051
|
-
},
|
|
5052
|
-
oidcConfig: zod.ZodOptional<zod.ZodObject<{
|
|
5053
|
-
clientId: zod.ZodString;
|
|
5054
|
-
clientSecret: zod.ZodOptional<zod.ZodString>;
|
|
5055
|
-
discoveryUrl: zod.ZodOptional<zod.ZodString>;
|
|
5056
|
-
issuer: zod.ZodOptional<zod.ZodString>;
|
|
5057
|
-
mapping: zod.ZodOptional<zod.ZodObject<{
|
|
5058
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
5059
|
-
email: zod.ZodOptional<zod.ZodString>;
|
|
5060
|
-
emailVerified: zod.ZodOptional<zod.ZodString>;
|
|
5061
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5062
|
-
image: zod.ZodOptional<zod.ZodString>;
|
|
5063
|
-
extraFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
5064
|
-
},
|
|
5065
|
-
},
|
|
5066
|
-
},
|
|
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>;
|
|
5067
5090
|
}, DashSsoUpdateProviderResponse>;
|
|
5068
|
-
requestDashSsoVerificationToken:
|
|
5091
|
+
requestDashSsoVerificationToken: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/request-verification-token", {
|
|
5069
5092
|
method: "POST";
|
|
5070
|
-
use: ((inputContext:
|
|
5093
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5071
5094
|
payload: {
|
|
5072
5095
|
organizationId: string;
|
|
5073
5096
|
};
|
|
5074
5097
|
}>)[];
|
|
5075
|
-
body: zod.ZodObject<{
|
|
5076
|
-
providerId: zod.ZodString;
|
|
5077
|
-
},
|
|
5098
|
+
body: import("zod").ZodObject<{
|
|
5099
|
+
providerId: import("zod").ZodString;
|
|
5100
|
+
}, import("zod/v4/core").$strip>;
|
|
5078
5101
|
}, DashSsoVerificationTokenResponse>;
|
|
5079
|
-
verifyDashSsoProviderDomain:
|
|
5102
|
+
verifyDashSsoProviderDomain: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/verify-domain", {
|
|
5080
5103
|
method: "POST";
|
|
5081
|
-
use: ((inputContext:
|
|
5104
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5082
5105
|
payload: {
|
|
5083
5106
|
organizationId: string;
|
|
5084
5107
|
};
|
|
5085
5108
|
}>)[];
|
|
5086
|
-
body: zod.ZodObject<{
|
|
5087
|
-
providerId: zod.ZodString;
|
|
5088
|
-
},
|
|
5109
|
+
body: import("zod").ZodObject<{
|
|
5110
|
+
providerId: import("zod").ZodString;
|
|
5111
|
+
}, import("zod/v4/core").$strip>;
|
|
5089
5112
|
}, DashSsoVerifyDomainResponse>;
|
|
5090
|
-
deleteDashSsoProvider:
|
|
5113
|
+
deleteDashSsoProvider: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/delete", {
|
|
5091
5114
|
method: "POST";
|
|
5092
|
-
use: ((inputContext:
|
|
5115
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5093
5116
|
payload: {
|
|
5094
5117
|
organizationId: string;
|
|
5095
5118
|
};
|
|
5096
5119
|
}>)[];
|
|
5097
|
-
body: zod.ZodObject<{
|
|
5098
|
-
providerId: zod.ZodString;
|
|
5099
|
-
},
|
|
5120
|
+
body: import("zod").ZodObject<{
|
|
5121
|
+
providerId: import("zod").ZodString;
|
|
5122
|
+
}, import("zod/v4/core").$strip>;
|
|
5100
5123
|
}, DashSsoDeleteResponse>;
|
|
5101
|
-
markDashSsoProviderDomainVerified:
|
|
5124
|
+
markDashSsoProviderDomainVerified: import("better-call").StrictEndpoint<"/dash/organization/:id/sso-provider/mark-domain-verified", {
|
|
5102
5125
|
method: "POST";
|
|
5103
|
-
use: ((inputContext:
|
|
5126
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5104
5127
|
payload: {
|
|
5105
5128
|
organizationId: string;
|
|
5106
5129
|
};
|
|
5107
5130
|
}>)[];
|
|
5108
|
-
body: zod.ZodObject<{
|
|
5109
|
-
providerId: zod.ZodString;
|
|
5110
|
-
verified: zod.ZodBoolean;
|
|
5111
|
-
},
|
|
5131
|
+
body: import("zod").ZodObject<{
|
|
5132
|
+
providerId: import("zod").ZodString;
|
|
5133
|
+
verified: import("zod").ZodBoolean;
|
|
5134
|
+
}, import("zod/v4/core").$strip>;
|
|
5112
5135
|
}, DashSsoMarkDomainVerifiedResponse>;
|
|
5113
|
-
listDashTeamMembers:
|
|
5136
|
+
listDashTeamMembers: import("better-call").StrictEndpoint<"/dash/organization/:orgId/teams/:teamId/members", {
|
|
5114
5137
|
method: "GET";
|
|
5115
|
-
use: ((inputContext:
|
|
5138
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5116
5139
|
payload: Record<string, unknown>;
|
|
5117
5140
|
}>)[];
|
|
5118
5141
|
}, DashTeamMemberListResponse>;
|
|
5119
|
-
createDashOrganization:
|
|
5142
|
+
createDashOrganization: import("better-call").StrictEndpoint<"/dash/organization/create", {
|
|
5120
5143
|
method: "POST";
|
|
5121
|
-
use: ((inputContext:
|
|
5144
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5122
5145
|
payload: {
|
|
5123
5146
|
userId: string;
|
|
5124
5147
|
skipDefaultTeam: boolean;
|
|
5125
5148
|
};
|
|
5126
5149
|
}>)[];
|
|
5127
|
-
body: zod.ZodObject<{
|
|
5128
|
-
name: zod.ZodString;
|
|
5129
|
-
slug: zod.ZodString;
|
|
5130
|
-
logo: zod.ZodOptional<zod.ZodString>;
|
|
5131
|
-
defaultTeamName: zod.ZodOptional<zod.ZodString>;
|
|
5132
|
-
},
|
|
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>>;
|
|
5133
5156
|
}, DashCreateOrganizationResponse>;
|
|
5134
|
-
deleteDashOrganization:
|
|
5157
|
+
deleteDashOrganization: import("better-call").StrictEndpoint<"/dash/organization/delete", {
|
|
5135
5158
|
method: "POST";
|
|
5136
|
-
use: ((inputContext:
|
|
5159
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5137
5160
|
payload: {
|
|
5138
5161
|
organizationId: string;
|
|
5139
5162
|
};
|
|
5140
5163
|
}>)[];
|
|
5141
|
-
body: zod.ZodObject<{
|
|
5142
|
-
organizationId: zod.ZodString;
|
|
5143
|
-
},
|
|
5164
|
+
body: import("zod").ZodObject<{
|
|
5165
|
+
organizationId: import("zod").ZodString;
|
|
5166
|
+
}, import("zod/v4/core").$strip>;
|
|
5144
5167
|
}, DashSuccessResponse>;
|
|
5145
|
-
deleteManyDashOrganizations:
|
|
5168
|
+
deleteManyDashOrganizations: import("better-call").StrictEndpoint<"/dash/organization/delete-many", {
|
|
5146
5169
|
method: "POST";
|
|
5147
|
-
use: ((inputContext:
|
|
5170
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5148
5171
|
payload: {
|
|
5149
5172
|
organizationIds: string[];
|
|
5150
5173
|
};
|
|
5151
5174
|
}>)[];
|
|
5152
5175
|
}, DashOrganizationDeleteManyResponse>;
|
|
5153
|
-
getDashOrganizationOptions:
|
|
5176
|
+
getDashOrganizationOptions: import("better-call").StrictEndpoint<"/dash/organization/options", {
|
|
5154
5177
|
method: "GET";
|
|
5155
|
-
use: ((inputContext:
|
|
5178
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5156
5179
|
payload: Record<string, unknown>;
|
|
5157
5180
|
}>)[];
|
|
5158
5181
|
}, DashOrganizationOptionsResponse>;
|
|
5159
|
-
getDashUser:
|
|
5182
|
+
getDashUser: import("better-call").StrictEndpoint<"/dash/user", {
|
|
5160
5183
|
method: "GET";
|
|
5161
|
-
use: ((inputContext:
|
|
5184
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5162
5185
|
payload: {
|
|
5163
5186
|
userId: string;
|
|
5164
5187
|
};
|
|
5165
5188
|
}>)[];
|
|
5166
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5167
|
-
minimal: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodPipe<zod.ZodString, zod.ZodTransform<boolean, string>>]>>;
|
|
5168
|
-
},
|
|
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>>;
|
|
5169
5192
|
}, DashUserDetailsResponse>;
|
|
5170
|
-
getDashUserOrganizations:
|
|
5193
|
+
getDashUserOrganizations: import("better-call").StrictEndpoint<"/dash/user-organizations", {
|
|
5171
5194
|
method: "GET";
|
|
5172
|
-
use: ((inputContext:
|
|
5195
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5173
5196
|
payload: {
|
|
5174
5197
|
userId: string;
|
|
5175
5198
|
};
|
|
5176
5199
|
}>)[];
|
|
5177
5200
|
}, DashUserOrganizationsResponse>;
|
|
5178
|
-
updateDashUser:
|
|
5201
|
+
updateDashUser: import("better-call").StrictEndpoint<"/dash/update-user", {
|
|
5179
5202
|
method: "POST";
|
|
5180
|
-
use: ((inputContext:
|
|
5203
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5181
5204
|
payload: {
|
|
5182
5205
|
userId: string;
|
|
5183
5206
|
};
|
|
5184
5207
|
}>)[];
|
|
5185
|
-
body: zod.ZodObject<{
|
|
5186
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5187
|
-
email: zod.ZodOptional<zod.ZodEmail>;
|
|
5188
|
-
image: zod.ZodOptional<zod.ZodString>;
|
|
5189
|
-
emailVerified: zod.ZodOptional<zod.ZodBoolean>;
|
|
5190
|
-
},
|
|
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>;
|
|
5191
5214
|
}, {
|
|
5192
5215
|
id: string;
|
|
5193
5216
|
createdAt: Date;
|
|
@@ -5201,61 +5224,61 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5201
5224
|
banReason?: string | null;
|
|
5202
5225
|
banExpires?: number | null;
|
|
5203
5226
|
}>;
|
|
5204
|
-
setDashPassword:
|
|
5227
|
+
setDashPassword: import("better-call").StrictEndpoint<"/dash/set-password", {
|
|
5205
5228
|
method: "POST";
|
|
5206
|
-
use: ((inputContext:
|
|
5229
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5207
5230
|
payload: {
|
|
5208
5231
|
userId: string;
|
|
5209
5232
|
};
|
|
5210
5233
|
}>)[];
|
|
5211
|
-
body: zod.ZodObject<{
|
|
5212
|
-
password: zod.ZodString;
|
|
5213
|
-
},
|
|
5234
|
+
body: import("zod").ZodObject<{
|
|
5235
|
+
password: import("zod").ZodString;
|
|
5236
|
+
}, import("zod/v4/core").$strip>;
|
|
5214
5237
|
}, DashSuccessResponse>;
|
|
5215
|
-
unlinkDashAccount:
|
|
5238
|
+
unlinkDashAccount: import("better-call").StrictEndpoint<"/dash/unlink-account", {
|
|
5216
5239
|
method: "POST";
|
|
5217
|
-
use: ((inputContext:
|
|
5240
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5218
5241
|
payload: {
|
|
5219
5242
|
userId: string;
|
|
5220
5243
|
};
|
|
5221
5244
|
}>)[];
|
|
5222
|
-
body: zod.ZodObject<{
|
|
5223
|
-
providerId: zod.ZodString;
|
|
5224
|
-
accountId: zod.ZodOptional<zod.ZodString>;
|
|
5225
|
-
},
|
|
5245
|
+
body: import("zod").ZodObject<{
|
|
5246
|
+
providerId: import("zod").ZodString;
|
|
5247
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5248
|
+
}, import("zod/v4/core").$strip>;
|
|
5226
5249
|
}, DashSuccessResponse>;
|
|
5227
|
-
dashRevokeSession:
|
|
5250
|
+
dashRevokeSession: import("better-call").StrictEndpoint<"/dash/sessions/revoke", {
|
|
5228
5251
|
method: "POST";
|
|
5229
|
-
use: ((inputContext:
|
|
5252
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5230
5253
|
payload: Record<string, unknown>;
|
|
5231
5254
|
}>)[];
|
|
5232
5255
|
metadata: {
|
|
5233
5256
|
allowedMediaTypes: string[];
|
|
5234
5257
|
};
|
|
5235
5258
|
}, DashSuccessResponse>;
|
|
5236
|
-
dashRevokeAllSessions:
|
|
5259
|
+
dashRevokeAllSessions: import("better-call").StrictEndpoint<"/dash/sessions/revoke-all", {
|
|
5237
5260
|
method: "POST";
|
|
5238
|
-
use: ((inputContext:
|
|
5261
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5239
5262
|
payload: Record<string, unknown>;
|
|
5240
5263
|
}>)[];
|
|
5241
|
-
body: zod.ZodObject<{
|
|
5242
|
-
userId: zod.ZodString;
|
|
5243
|
-
},
|
|
5264
|
+
body: import("zod").ZodObject<{
|
|
5265
|
+
userId: import("zod").ZodString;
|
|
5266
|
+
}, import("zod/v4/core").$strip>;
|
|
5244
5267
|
}, DashSuccessResponse>;
|
|
5245
|
-
dashRevokeManySessions:
|
|
5268
|
+
dashRevokeManySessions: import("better-call").StrictEndpoint<"/dash/sessions/revoke-many", {
|
|
5246
5269
|
method: "POST";
|
|
5247
|
-
use: ((inputContext:
|
|
5270
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5248
5271
|
payload: {
|
|
5249
5272
|
userIds: string[];
|
|
5250
5273
|
};
|
|
5251
5274
|
}>)[];
|
|
5252
5275
|
}, DashSessionRevokeManyResponse>;
|
|
5253
|
-
dashImpersonateUser:
|
|
5276
|
+
dashImpersonateUser: import("better-call").StrictEndpoint<"/dash/impersonate-user", {
|
|
5254
5277
|
method: "GET";
|
|
5255
|
-
query: zod.ZodObject<{
|
|
5256
|
-
impersonation_token: zod.ZodString;
|
|
5257
|
-
},
|
|
5258
|
-
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<{
|
|
5259
5282
|
payload: {
|
|
5260
5283
|
userId: string;
|
|
5261
5284
|
redirectUrl: string;
|
|
@@ -5263,19 +5286,19 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5263
5286
|
};
|
|
5264
5287
|
}>)[];
|
|
5265
5288
|
}, never>;
|
|
5266
|
-
updateDashOrganization:
|
|
5289
|
+
updateDashOrganization: import("better-call").StrictEndpoint<"/dash/organization/update", {
|
|
5267
5290
|
method: "POST";
|
|
5268
|
-
use: ((inputContext:
|
|
5291
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5269
5292
|
payload: {
|
|
5270
5293
|
organizationId: string;
|
|
5271
5294
|
};
|
|
5272
5295
|
}>)[];
|
|
5273
|
-
body: zod.ZodObject<{
|
|
5274
|
-
logo: zod.ZodOptional<zod.ZodURL
|
|
5275
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5276
|
-
slug: zod.ZodOptional<zod.ZodString>;
|
|
5277
|
-
metadata: zod.ZodOptional<zod.ZodString>;
|
|
5278
|
-
},
|
|
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>>;
|
|
5279
5302
|
}, {
|
|
5280
5303
|
id: string;
|
|
5281
5304
|
name: string;
|
|
@@ -5284,16 +5307,16 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5284
5307
|
logo?: string | null | undefined;
|
|
5285
5308
|
metadata?: any;
|
|
5286
5309
|
}>;
|
|
5287
|
-
createDashTeam:
|
|
5310
|
+
createDashTeam: import("better-call").StrictEndpoint<"/dash/organization/create-team", {
|
|
5288
5311
|
method: "POST";
|
|
5289
|
-
use: ((inputContext:
|
|
5312
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5290
5313
|
payload: {
|
|
5291
5314
|
organizationId: string;
|
|
5292
5315
|
};
|
|
5293
5316
|
}>)[];
|
|
5294
|
-
body: zod.ZodObject<{
|
|
5295
|
-
name: zod.ZodString;
|
|
5296
|
-
},
|
|
5317
|
+
body: import("zod").ZodObject<{
|
|
5318
|
+
name: import("zod").ZodString;
|
|
5319
|
+
}, import("zod/v4/core").$strip>;
|
|
5297
5320
|
}, {
|
|
5298
5321
|
id: string;
|
|
5299
5322
|
name: string;
|
|
@@ -5301,17 +5324,17 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5301
5324
|
createdAt: Date;
|
|
5302
5325
|
updatedAt?: Date | undefined;
|
|
5303
5326
|
}>;
|
|
5304
|
-
updateDashTeam:
|
|
5327
|
+
updateDashTeam: import("better-call").StrictEndpoint<"/dash/organization/update-team", {
|
|
5305
5328
|
method: "POST";
|
|
5306
|
-
use: ((inputContext:
|
|
5329
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5307
5330
|
payload: {
|
|
5308
5331
|
organizationId: string;
|
|
5309
5332
|
};
|
|
5310
5333
|
}>)[];
|
|
5311
|
-
body: zod.ZodObject<{
|
|
5312
|
-
teamId: zod.ZodString;
|
|
5313
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
5314
|
-
},
|
|
5334
|
+
body: import("zod").ZodObject<{
|
|
5335
|
+
teamId: import("zod").ZodString;
|
|
5336
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5337
|
+
}, import("zod/v4/core").$strip>;
|
|
5315
5338
|
}, {
|
|
5316
5339
|
id: string;
|
|
5317
5340
|
name: string;
|
|
@@ -5319,57 +5342,57 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5319
5342
|
createdAt: Date;
|
|
5320
5343
|
updatedAt?: Date | undefined;
|
|
5321
5344
|
}>;
|
|
5322
|
-
deleteDashTeam:
|
|
5345
|
+
deleteDashTeam: import("better-call").StrictEndpoint<"/dash/organization/delete-team", {
|
|
5323
5346
|
method: "POST";
|
|
5324
|
-
use: ((inputContext:
|
|
5347
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5325
5348
|
payload: {
|
|
5326
5349
|
organizationId: string;
|
|
5327
5350
|
};
|
|
5328
5351
|
}>)[];
|
|
5329
|
-
body: zod.ZodObject<{
|
|
5330
|
-
teamId: zod.ZodString;
|
|
5331
|
-
},
|
|
5352
|
+
body: import("zod").ZodObject<{
|
|
5353
|
+
teamId: import("zod").ZodString;
|
|
5354
|
+
}, import("zod/v4/core").$strip>;
|
|
5332
5355
|
}, DashSuccessResponse>;
|
|
5333
|
-
addDashTeamMember:
|
|
5356
|
+
addDashTeamMember: import("better-call").StrictEndpoint<"/dash/organization/add-team-member", {
|
|
5334
5357
|
method: "POST";
|
|
5335
|
-
use: ((inputContext:
|
|
5358
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5336
5359
|
payload: {
|
|
5337
5360
|
organizationId: string;
|
|
5338
5361
|
};
|
|
5339
5362
|
}>)[];
|
|
5340
|
-
body: zod.ZodObject<{
|
|
5341
|
-
teamId: zod.ZodString;
|
|
5342
|
-
userId: zod.ZodString;
|
|
5343
|
-
},
|
|
5363
|
+
body: import("zod").ZodObject<{
|
|
5364
|
+
teamId: import("zod").ZodString;
|
|
5365
|
+
userId: import("zod").ZodString;
|
|
5366
|
+
}, import("zod/v4/core").$strip>;
|
|
5344
5367
|
}, {
|
|
5345
5368
|
id: string;
|
|
5346
5369
|
teamId: string;
|
|
5347
5370
|
userId: string;
|
|
5348
5371
|
createdAt: Date;
|
|
5349
5372
|
}>;
|
|
5350
|
-
removeDashTeamMember:
|
|
5373
|
+
removeDashTeamMember: import("better-call").StrictEndpoint<"/dash/organization/remove-team-member", {
|
|
5351
5374
|
method: "POST";
|
|
5352
|
-
use: ((inputContext:
|
|
5375
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5353
5376
|
payload: {
|
|
5354
5377
|
organizationId: string;
|
|
5355
5378
|
};
|
|
5356
5379
|
}>)[];
|
|
5357
|
-
body: zod.ZodObject<{
|
|
5358
|
-
teamId: zod.ZodString;
|
|
5359
|
-
userId: zod.ZodString;
|
|
5360
|
-
},
|
|
5380
|
+
body: import("zod").ZodObject<{
|
|
5381
|
+
teamId: import("zod").ZodString;
|
|
5382
|
+
userId: import("zod").ZodString;
|
|
5383
|
+
}, import("zod/v4/core").$strip>;
|
|
5361
5384
|
}, DashSuccessResponse>;
|
|
5362
|
-
addDashMember:
|
|
5385
|
+
addDashMember: import("better-call").StrictEndpoint<"/dash/organization/add-member", {
|
|
5363
5386
|
method: "POST";
|
|
5364
|
-
use: ((inputContext:
|
|
5387
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5365
5388
|
payload: {
|
|
5366
5389
|
organizationId: string;
|
|
5367
5390
|
};
|
|
5368
5391
|
}>)[];
|
|
5369
|
-
body: zod.ZodObject<{
|
|
5370
|
-
userId: zod.ZodString;
|
|
5371
|
-
role: zod.ZodString;
|
|
5372
|
-
},
|
|
5392
|
+
body: import("zod").ZodObject<{
|
|
5393
|
+
userId: import("zod").ZodString;
|
|
5394
|
+
role: import("zod").ZodString;
|
|
5395
|
+
}, import("zod/v4/core").$strip>;
|
|
5373
5396
|
}, {
|
|
5374
5397
|
id: string;
|
|
5375
5398
|
organizationId: string;
|
|
@@ -5377,37 +5400,37 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5377
5400
|
role: string;
|
|
5378
5401
|
createdAt: Date;
|
|
5379
5402
|
}>;
|
|
5380
|
-
removeDashMember:
|
|
5403
|
+
removeDashMember: import("better-call").StrictEndpoint<"/dash/organization/remove-member", {
|
|
5381
5404
|
method: "POST";
|
|
5382
|
-
use: ((inputContext:
|
|
5405
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5383
5406
|
payload: {
|
|
5384
5407
|
organizationId: string;
|
|
5385
5408
|
};
|
|
5386
5409
|
}>)[];
|
|
5387
|
-
body: zod.ZodObject<{
|
|
5388
|
-
memberId: zod.ZodString;
|
|
5389
|
-
},
|
|
5410
|
+
body: import("zod").ZodObject<{
|
|
5411
|
+
memberId: import("zod").ZodString;
|
|
5412
|
+
}, import("zod/v4/core").$strip>;
|
|
5390
5413
|
}, DashSuccessResponse>;
|
|
5391
|
-
updateDashMemberRole:
|
|
5414
|
+
updateDashMemberRole: import("better-call").StrictEndpoint<"/dash/organization/update-member-role", {
|
|
5392
5415
|
method: "POST";
|
|
5393
|
-
use: ((inputContext:
|
|
5416
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5394
5417
|
payload: {
|
|
5395
5418
|
organizationId: string;
|
|
5396
5419
|
};
|
|
5397
5420
|
}>)[];
|
|
5398
|
-
body: zod.ZodObject<{
|
|
5399
|
-
memberId: zod.ZodString;
|
|
5400
|
-
role: zod.ZodString;
|
|
5401
|
-
},
|
|
5421
|
+
body: import("zod").ZodObject<{
|
|
5422
|
+
memberId: import("zod").ZodString;
|
|
5423
|
+
role: import("zod").ZodString;
|
|
5424
|
+
}, import("zod/v4/core").$strip>;
|
|
5402
5425
|
}, DashOrganizationUpdateMemberRoleResponse>;
|
|
5403
|
-
inviteDashMember:
|
|
5426
|
+
inviteDashMember: import("better-call").StrictEndpoint<"/dash/organization/invite-member", {
|
|
5404
5427
|
method: "POST";
|
|
5405
|
-
body: zod.ZodObject<{
|
|
5406
|
-
email: zod.ZodString;
|
|
5407
|
-
role: zod.ZodString;
|
|
5408
|
-
invitedBy: zod.ZodString;
|
|
5409
|
-
},
|
|
5410
|
-
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<{
|
|
5411
5434
|
payload: {
|
|
5412
5435
|
organizationId: string;
|
|
5413
5436
|
invitedBy: string;
|
|
@@ -5424,184 +5447,184 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5424
5447
|
createdAt: Date;
|
|
5425
5448
|
teamId?: string | null | undefined;
|
|
5426
5449
|
}>;
|
|
5427
|
-
cancelDashInvitation:
|
|
5450
|
+
cancelDashInvitation: import("better-call").StrictEndpoint<"/dash/organization/cancel-invitation", {
|
|
5428
5451
|
method: "POST";
|
|
5429
|
-
use: ((inputContext:
|
|
5452
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5430
5453
|
payload: {
|
|
5431
5454
|
organizationId: string;
|
|
5432
5455
|
invitationId: string;
|
|
5433
5456
|
};
|
|
5434
5457
|
}>)[];
|
|
5435
|
-
body: zod.ZodObject<{
|
|
5436
|
-
invitationId: zod.ZodString;
|
|
5437
|
-
},
|
|
5458
|
+
body: import("zod").ZodObject<{
|
|
5459
|
+
invitationId: import("zod").ZodString;
|
|
5460
|
+
}, import("zod/v4/core").$strip>;
|
|
5438
5461
|
}, DashSuccessResponse>;
|
|
5439
|
-
resendDashInvitation:
|
|
5462
|
+
resendDashInvitation: import("better-call").StrictEndpoint<"/dash/organization/resend-invitation", {
|
|
5440
5463
|
method: "POST";
|
|
5441
|
-
use: ((inputContext:
|
|
5464
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5442
5465
|
payload: {
|
|
5443
5466
|
organizationId: string;
|
|
5444
5467
|
invitationId: string;
|
|
5445
5468
|
};
|
|
5446
5469
|
}>)[];
|
|
5447
|
-
body: zod.ZodObject<{
|
|
5448
|
-
invitationId: zod.ZodString;
|
|
5449
|
-
},
|
|
5470
|
+
body: import("zod").ZodObject<{
|
|
5471
|
+
invitationId: import("zod").ZodString;
|
|
5472
|
+
}, import("zod/v4/core").$strip>;
|
|
5450
5473
|
}, DashSuccessResponse>;
|
|
5451
|
-
dashCheckUserByEmail:
|
|
5474
|
+
dashCheckUserByEmail: import("better-call").StrictEndpoint<"/dash/organization/check-user-by-email", {
|
|
5452
5475
|
method: "POST";
|
|
5453
|
-
body: zod.ZodObject<{
|
|
5454
|
-
email: zod.ZodString;
|
|
5455
|
-
},
|
|
5456
|
-
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<{
|
|
5457
5480
|
payload: {
|
|
5458
5481
|
organizationId: string;
|
|
5459
5482
|
};
|
|
5460
5483
|
}>)[];
|
|
5461
5484
|
}, DashCheckUserByEmailResponse>;
|
|
5462
|
-
dashGetUserStats:
|
|
5485
|
+
dashGetUserStats: import("better-call").StrictEndpoint<"/dash/user-stats", {
|
|
5463
5486
|
method: "GET";
|
|
5464
|
-
use: ((inputContext:
|
|
5487
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5465
5488
|
payload: Record<string, unknown>;
|
|
5466
5489
|
}>)[];
|
|
5467
5490
|
}, DashUserStatsResponse>;
|
|
5468
|
-
dashGetUserGraphData:
|
|
5491
|
+
dashGetUserGraphData: import("better-call").StrictEndpoint<"/dash/user-graph-data", {
|
|
5469
5492
|
method: "GET";
|
|
5470
|
-
use: ((inputContext:
|
|
5493
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5471
5494
|
payload: Record<string, unknown>;
|
|
5472
5495
|
}>)[];
|
|
5473
|
-
query: zod.ZodObject<{
|
|
5474
|
-
period: zod.ZodDefault<zod.ZodEnum<{
|
|
5496
|
+
query: import("zod").ZodObject<{
|
|
5497
|
+
period: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
5475
5498
|
daily: "daily";
|
|
5476
5499
|
weekly: "weekly";
|
|
5477
5500
|
monthly: "monthly";
|
|
5478
5501
|
}>>;
|
|
5479
|
-
},
|
|
5502
|
+
}, import("zod/v4/core").$strip>;
|
|
5480
5503
|
}, DashUserGraphDataResponse>;
|
|
5481
|
-
dashGetUserRetentionData:
|
|
5504
|
+
dashGetUserRetentionData: import("better-call").StrictEndpoint<"/dash/user-retention-data", {
|
|
5482
5505
|
method: "GET";
|
|
5483
|
-
use: ((inputContext:
|
|
5506
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5484
5507
|
payload: Record<string, unknown>;
|
|
5485
5508
|
}>)[];
|
|
5486
|
-
query: zod.ZodObject<{
|
|
5487
|
-
period: zod.ZodDefault<zod.ZodEnum<{
|
|
5509
|
+
query: import("zod").ZodObject<{
|
|
5510
|
+
period: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
5488
5511
|
daily: "daily";
|
|
5489
5512
|
weekly: "weekly";
|
|
5490
5513
|
monthly: "monthly";
|
|
5491
5514
|
}>>;
|
|
5492
|
-
},
|
|
5515
|
+
}, import("zod/v4/core").$strip>;
|
|
5493
5516
|
}, DashUserRetentionDataResponse>;
|
|
5494
|
-
dashBanUser:
|
|
5517
|
+
dashBanUser: import("better-call").StrictEndpoint<"/dash/ban-user", {
|
|
5495
5518
|
method: "POST";
|
|
5496
|
-
use: ((inputContext:
|
|
5519
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5497
5520
|
payload: {
|
|
5498
5521
|
userId: string;
|
|
5499
5522
|
};
|
|
5500
5523
|
}>)[];
|
|
5501
|
-
body: zod.ZodObject<{
|
|
5502
|
-
banReason: zod.ZodOptional<zod.ZodString>;
|
|
5503
|
-
banExpires: zod.ZodOptional<zod.ZodNumber>;
|
|
5504
|
-
},
|
|
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>;
|
|
5505
5528
|
}, DashSuccessResponse>;
|
|
5506
|
-
dashBanManyUsers:
|
|
5529
|
+
dashBanManyUsers: import("better-call").StrictEndpoint<"/dash/ban-many-users", {
|
|
5507
5530
|
method: "POST";
|
|
5508
|
-
use: ((inputContext:
|
|
5531
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5509
5532
|
payload: {
|
|
5510
5533
|
userIds: string[];
|
|
5511
5534
|
};
|
|
5512
5535
|
}>)[];
|
|
5513
|
-
body: zod.ZodObject<{
|
|
5514
|
-
banReason: zod.ZodOptional<zod.ZodString>;
|
|
5515
|
-
banExpires: zod.ZodOptional<zod.ZodNumber>;
|
|
5516
|
-
},
|
|
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>;
|
|
5517
5540
|
}, DashBanManyResponse>;
|
|
5518
|
-
dashUnbanUser:
|
|
5541
|
+
dashUnbanUser: import("better-call").StrictEndpoint<"/dash/unban-user", {
|
|
5519
5542
|
method: "POST";
|
|
5520
|
-
use: ((inputContext:
|
|
5543
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5521
5544
|
payload: {
|
|
5522
5545
|
userId: string;
|
|
5523
5546
|
};
|
|
5524
5547
|
}>)[];
|
|
5525
5548
|
}, DashSuccessResponse>;
|
|
5526
|
-
dashSendVerificationEmail:
|
|
5549
|
+
dashSendVerificationEmail: import("better-call").StrictEndpoint<"/dash/send-verification-email", {
|
|
5527
5550
|
method: "POST";
|
|
5528
|
-
use: ((inputContext:
|
|
5551
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5529
5552
|
payload: {
|
|
5530
5553
|
userId: string;
|
|
5531
5554
|
};
|
|
5532
5555
|
}>)[];
|
|
5533
|
-
body: zod.ZodObject<{
|
|
5534
|
-
callbackUrl: zod.ZodURL;
|
|
5535
|
-
},
|
|
5556
|
+
body: import("zod").ZodObject<{
|
|
5557
|
+
callbackUrl: import("zod").ZodURL;
|
|
5558
|
+
}, import("zod/v4/core").$strip>;
|
|
5536
5559
|
}, DashSuccessResponse>;
|
|
5537
|
-
dashSendManyVerificationEmails:
|
|
5560
|
+
dashSendManyVerificationEmails: import("better-call").StrictEndpoint<"/dash/send-many-verification-emails", {
|
|
5538
5561
|
method: "POST";
|
|
5539
|
-
use: ((inputContext:
|
|
5562
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5540
5563
|
payload: {
|
|
5541
5564
|
userIds: string[];
|
|
5542
5565
|
};
|
|
5543
5566
|
}>)[];
|
|
5544
|
-
body: zod.ZodObject<{
|
|
5545
|
-
callbackUrl: zod.ZodURL;
|
|
5546
|
-
},
|
|
5567
|
+
body: import("zod").ZodObject<{
|
|
5568
|
+
callbackUrl: import("zod").ZodURL;
|
|
5569
|
+
}, import("zod/v4/core").$strip>;
|
|
5547
5570
|
}, DashSendManyVerificationEmailsResponse>;
|
|
5548
|
-
dashSendResetPasswordEmail:
|
|
5571
|
+
dashSendResetPasswordEmail: import("better-call").StrictEndpoint<"/dash/send-reset-password-email", {
|
|
5549
5572
|
method: "POST";
|
|
5550
|
-
use: ((inputContext:
|
|
5573
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5551
5574
|
payload: {
|
|
5552
5575
|
userId: string;
|
|
5553
5576
|
};
|
|
5554
5577
|
}>)[];
|
|
5555
|
-
body: zod.ZodObject<{
|
|
5556
|
-
callbackUrl: zod.ZodURL;
|
|
5557
|
-
},
|
|
5578
|
+
body: import("zod").ZodObject<{
|
|
5579
|
+
callbackUrl: import("zod").ZodURL;
|
|
5580
|
+
}, import("zod/v4/core").$strip>;
|
|
5558
5581
|
}, never>;
|
|
5559
|
-
dashEnableTwoFactor:
|
|
5582
|
+
dashEnableTwoFactor: import("better-call").StrictEndpoint<"/dash/enable-two-factor", {
|
|
5560
5583
|
method: "POST";
|
|
5561
|
-
use: ((inputContext:
|
|
5584
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5562
5585
|
payload: {
|
|
5563
5586
|
userId: string;
|
|
5564
5587
|
};
|
|
5565
5588
|
}>)[];
|
|
5566
5589
|
}, DashTwoFactorEnableResponse>;
|
|
5567
|
-
dashViewTwoFactorTotpUri:
|
|
5590
|
+
dashViewTwoFactorTotpUri: import("better-call").StrictEndpoint<"/dash/view-two-factor-totp-uri", {
|
|
5568
5591
|
method: "POST";
|
|
5569
5592
|
metadata: {
|
|
5570
5593
|
scope: "http";
|
|
5571
5594
|
};
|
|
5572
|
-
use: ((inputContext:
|
|
5595
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5573
5596
|
payload: {
|
|
5574
5597
|
userId: string;
|
|
5575
5598
|
};
|
|
5576
5599
|
}>)[];
|
|
5577
5600
|
}, DashTwoFactorTotpViewResponse>;
|
|
5578
|
-
dashViewBackupCodes:
|
|
5601
|
+
dashViewBackupCodes: import("better-call").StrictEndpoint<"/dash/view-backup-codes", {
|
|
5579
5602
|
method: "POST";
|
|
5580
|
-
use: ((inputContext:
|
|
5603
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5581
5604
|
payload: {
|
|
5582
5605
|
userId: string;
|
|
5583
5606
|
};
|
|
5584
5607
|
}>)[];
|
|
5585
5608
|
}, DashTwoFactorBackupCodesResponse>;
|
|
5586
|
-
dashDisableTwoFactor:
|
|
5609
|
+
dashDisableTwoFactor: import("better-call").StrictEndpoint<"/dash/disable-two-factor", {
|
|
5587
5610
|
method: "POST";
|
|
5588
|
-
use: ((inputContext:
|
|
5611
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5589
5612
|
payload: {
|
|
5590
5613
|
userId: string;
|
|
5591
5614
|
};
|
|
5592
5615
|
}>)[];
|
|
5593
5616
|
}, DashSuccessResponse>;
|
|
5594
|
-
dashGenerateBackupCodes:
|
|
5617
|
+
dashGenerateBackupCodes: import("better-call").StrictEndpoint<"/dash/generate-backup-codes", {
|
|
5595
5618
|
method: "POST";
|
|
5596
|
-
use: ((inputContext:
|
|
5619
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5597
5620
|
payload: {
|
|
5598
5621
|
userId: string;
|
|
5599
5622
|
};
|
|
5600
5623
|
}>)[];
|
|
5601
5624
|
}, DashTwoFactorBackupCodesResponse>;
|
|
5602
|
-
getUserEvents:
|
|
5625
|
+
getUserEvents: import("better-call").StrictEndpoint<"/events/list", {
|
|
5603
5626
|
method: "GET";
|
|
5604
|
-
use: ((inputContext:
|
|
5627
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5605
5628
|
session: {
|
|
5606
5629
|
session: Record<string, any> & {
|
|
5607
5630
|
id: string;
|
|
@@ -5624,15 +5647,15 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5624
5647
|
};
|
|
5625
5648
|
};
|
|
5626
5649
|
}>)[];
|
|
5627
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5628
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5629
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5630
|
-
eventType: zod.ZodOptional<zod.ZodString>;
|
|
5631
|
-
},
|
|
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>>;
|
|
5632
5655
|
}, UserEventsResponse>;
|
|
5633
|
-
getAuditLogs:
|
|
5656
|
+
getAuditLogs: import("better-call").StrictEndpoint<"/events/audit-logs", {
|
|
5634
5657
|
method: "GET";
|
|
5635
|
-
use: ((inputContext:
|
|
5658
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5636
5659
|
session: {
|
|
5637
5660
|
session: Record<string, any> & {
|
|
5638
5661
|
id: string;
|
|
@@ -5655,18 +5678,18 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5655
5678
|
};
|
|
5656
5679
|
};
|
|
5657
5680
|
}>)[];
|
|
5658
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5659
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5660
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5661
|
-
userId: zod.ZodOptional<zod.ZodString>;
|
|
5662
|
-
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
5663
|
-
identifier: zod.ZodOptional<zod.ZodString>;
|
|
5664
|
-
eventType: zod.ZodOptional<zod.ZodString>;
|
|
5665
|
-
},
|
|
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>>;
|
|
5666
5689
|
}, UserEventsResponse>;
|
|
5667
|
-
getAllAuditLogs:
|
|
5690
|
+
getAllAuditLogs: import("better-call").StrictEndpoint<"/events/all-audit-logs", {
|
|
5668
5691
|
method: "GET";
|
|
5669
|
-
use: ((inputContext:
|
|
5692
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5670
5693
|
session: {
|
|
5671
5694
|
session: Record<string, any> & {
|
|
5672
5695
|
id: string;
|
|
@@ -5689,18 +5712,18 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5689
5712
|
};
|
|
5690
5713
|
};
|
|
5691
5714
|
}>)[];
|
|
5692
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
5693
|
-
limit: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5694
|
-
offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodPipe<zod.ZodString, zod.ZodTransform<number, string>>]>>;
|
|
5695
|
-
userId: zod.ZodOptional<zod.ZodString>;
|
|
5696
|
-
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
5697
|
-
eventType: zod.ZodOptional<zod.ZodString>;
|
|
5698
|
-
identifier: zod.ZodOptional<zod.ZodString>;
|
|
5699
|
-
},
|
|
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>>;
|
|
5700
5723
|
}, UserEventsResponse>;
|
|
5701
|
-
getEventTypes:
|
|
5724
|
+
getEventTypes: import("better-call").StrictEndpoint<"/events/types", {
|
|
5702
5725
|
method: "GET";
|
|
5703
|
-
use: ((inputContext:
|
|
5726
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5704
5727
|
session: {
|
|
5705
5728
|
session: Record<string, any> & {
|
|
5706
5729
|
id: string;
|
|
@@ -5724,13 +5747,13 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5724
5747
|
};
|
|
5725
5748
|
}>)[];
|
|
5726
5749
|
}, EventTypesResponse>;
|
|
5727
|
-
dashAcceptInvitation:
|
|
5750
|
+
dashAcceptInvitation: import("better-call").StrictEndpoint<"/dash/accept-invitation", {
|
|
5728
5751
|
method: "GET";
|
|
5729
|
-
query: zod.ZodObject<{
|
|
5730
|
-
token: zod.ZodString;
|
|
5731
|
-
},
|
|
5752
|
+
query: import("zod").ZodObject<{
|
|
5753
|
+
token: import("zod").ZodString;
|
|
5754
|
+
}, import("zod/v4/core").$strip>;
|
|
5732
5755
|
}, {
|
|
5733
|
-
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;
|
|
5734
5757
|
body: ({
|
|
5735
5758
|
message?: string;
|
|
5736
5759
|
code?: string;
|
|
@@ -5743,75 +5766,78 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5743
5766
|
stack?: string;
|
|
5744
5767
|
cause?: unknown;
|
|
5745
5768
|
}>;
|
|
5746
|
-
dashCompleteInvitation:
|
|
5769
|
+
dashCompleteInvitation: import("better-call").StrictEndpoint<"/dash/complete-invitation", {
|
|
5747
5770
|
method: "POST";
|
|
5748
|
-
body: zod.ZodObject<{
|
|
5749
|
-
token: zod.ZodString;
|
|
5750
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
5751
|
-
providerId: zod.ZodOptional<zod.ZodString>;
|
|
5752
|
-
providerAccountId: zod.ZodOptional<zod.ZodString>;
|
|
5753
|
-
accessToken: zod.ZodOptional<zod.ZodString>;
|
|
5754
|
-
refreshToken: zod.ZodOptional<zod.ZodString>;
|
|
5755
|
-
},
|
|
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>;
|
|
5756
5779
|
}, DashCompleteInvitationResponse>;
|
|
5757
|
-
dashCheckUserExists:
|
|
5780
|
+
dashCheckUserExists: import("better-call").StrictEndpoint<"/dash/check-user-exists", {
|
|
5758
5781
|
method: "POST";
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
}
|
|
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>;
|
|
5762
5788
|
}, DashCheckUserExistsResponse>;
|
|
5763
|
-
listDashOrganizationDirectories:
|
|
5789
|
+
listDashOrganizationDirectories: import("better-call").StrictEndpoint<"/dash/organization/:id/directories", {
|
|
5764
5790
|
method: "GET";
|
|
5765
|
-
use: ((inputContext:
|
|
5791
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5766
5792
|
payload: Record<string, unknown>;
|
|
5767
5793
|
}>)[];
|
|
5768
5794
|
}, DashDirectoryItem[]>;
|
|
5769
|
-
createDashOrganizationDirectory:
|
|
5795
|
+
createDashOrganizationDirectory: import("better-call").StrictEndpoint<"/dash/organization/directory/create", {
|
|
5770
5796
|
method: "POST";
|
|
5771
|
-
use: ((inputContext:
|
|
5797
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5772
5798
|
payload: {
|
|
5773
5799
|
organizationId: string;
|
|
5774
5800
|
};
|
|
5775
5801
|
}>)[];
|
|
5776
|
-
body: zod.ZodObject<{
|
|
5777
|
-
providerId: zod.ZodString;
|
|
5778
|
-
ownerUserId: zod.ZodString;
|
|
5779
|
-
},
|
|
5802
|
+
body: import("zod").ZodObject<{
|
|
5803
|
+
providerId: import("zod").ZodString;
|
|
5804
|
+
ownerUserId: import("zod").ZodString;
|
|
5805
|
+
}, import("zod/v4/core").$strip>;
|
|
5780
5806
|
}, DashDirectoryCreateResponse>;
|
|
5781
|
-
deleteDashOrganizationDirectory:
|
|
5807
|
+
deleteDashOrganizationDirectory: import("better-call").StrictEndpoint<"/dash/organization/directory/delete", {
|
|
5782
5808
|
method: "POST";
|
|
5783
|
-
use: ((inputContext:
|
|
5809
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5784
5810
|
payload: {
|
|
5785
5811
|
organizationId: string;
|
|
5786
5812
|
};
|
|
5787
5813
|
}>)[];
|
|
5788
|
-
body: zod.ZodObject<{
|
|
5789
|
-
providerId: zod.ZodString;
|
|
5790
|
-
},
|
|
5814
|
+
body: import("zod").ZodObject<{
|
|
5815
|
+
providerId: import("zod").ZodString;
|
|
5816
|
+
}, import("zod/v4/core").$strip>;
|
|
5791
5817
|
}, DashDirectoryDeleteResponse>;
|
|
5792
|
-
regenerateDashDirectoryToken:
|
|
5818
|
+
regenerateDashDirectoryToken: import("better-call").StrictEndpoint<"/dash/organization/directory/regenerate-token", {
|
|
5793
5819
|
method: "POST";
|
|
5794
|
-
use: ((inputContext:
|
|
5820
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5795
5821
|
payload: {
|
|
5796
5822
|
organizationId: string;
|
|
5797
5823
|
};
|
|
5798
5824
|
}>)[];
|
|
5799
|
-
body: zod.ZodObject<{
|
|
5800
|
-
providerId: zod.ZodString;
|
|
5801
|
-
},
|
|
5825
|
+
body: import("zod").ZodObject<{
|
|
5826
|
+
providerId: import("zod").ZodString;
|
|
5827
|
+
}, import("zod/v4/core").$strip>;
|
|
5802
5828
|
}, DashDirectoryRegenerateTokenResponse>;
|
|
5803
|
-
dashExecuteAdapter:
|
|
5829
|
+
dashExecuteAdapter: import("better-call").StrictEndpoint<"/dash/execute-adapter", {
|
|
5804
5830
|
method: "POST";
|
|
5805
|
-
use: ((inputContext:
|
|
5831
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5806
5832
|
payload: Record<string, unknown>;
|
|
5807
5833
|
}>)[];
|
|
5808
|
-
body: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
5809
|
-
action: zod.ZodLiteral<"findOne">;
|
|
5810
|
-
model: zod.ZodString;
|
|
5811
|
-
where: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
5812
|
-
field: zod.ZodString;
|
|
5813
|
-
value: zod.ZodUnknown;
|
|
5814
|
-
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<{
|
|
5815
5841
|
in: "in";
|
|
5816
5842
|
eq: "eq";
|
|
5817
5843
|
ne: "ne";
|
|
@@ -5823,20 +5849,20 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5823
5849
|
starts_with: "starts_with";
|
|
5824
5850
|
ends_with: "ends_with";
|
|
5825
5851
|
}>>;
|
|
5826
|
-
connector: zod.ZodOptional<zod.ZodEnum<{
|
|
5852
|
+
connector: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5827
5853
|
OR: "OR";
|
|
5828
5854
|
AND: "AND";
|
|
5829
5855
|
}>>;
|
|
5830
|
-
},
|
|
5831
|
-
select: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5832
|
-
join: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
|
|
5833
|
-
},
|
|
5834
|
-
action: zod.ZodLiteral<"findMany">;
|
|
5835
|
-
model: zod.ZodString;
|
|
5836
|
-
where: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
5837
|
-
field: zod.ZodString;
|
|
5838
|
-
value: zod.ZodUnknown;
|
|
5839
|
-
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<{
|
|
5840
5866
|
in: "in";
|
|
5841
5867
|
eq: "eq";
|
|
5842
5868
|
ne: "ne";
|
|
@@ -5848,32 +5874,32 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5848
5874
|
starts_with: "starts_with";
|
|
5849
5875
|
ends_with: "ends_with";
|
|
5850
5876
|
}>>;
|
|
5851
|
-
connector: zod.ZodOptional<zod.ZodEnum<{
|
|
5877
|
+
connector: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5852
5878
|
OR: "OR";
|
|
5853
5879
|
AND: "AND";
|
|
5854
5880
|
}>>;
|
|
5855
|
-
},
|
|
5856
|
-
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
5857
|
-
offset: zod.ZodOptional<zod.ZodNumber>;
|
|
5858
|
-
sortBy: zod.ZodOptional<zod.ZodObject<{
|
|
5859
|
-
field: zod.ZodString;
|
|
5860
|
-
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<{
|
|
5861
5887
|
asc: "asc";
|
|
5862
5888
|
desc: "desc";
|
|
5863
5889
|
}>;
|
|
5864
|
-
},
|
|
5865
|
-
join: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
|
|
5866
|
-
},
|
|
5867
|
-
action: zod.ZodLiteral<"create">;
|
|
5868
|
-
model: zod.ZodString;
|
|
5869
|
-
data: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
5870
|
-
},
|
|
5871
|
-
action: zod.ZodLiteral<"update">;
|
|
5872
|
-
model: zod.ZodString;
|
|
5873
|
-
where: zod.ZodArray<zod.ZodObject<{
|
|
5874
|
-
field: zod.ZodString;
|
|
5875
|
-
value: zod.ZodUnknown;
|
|
5876
|
-
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<{
|
|
5877
5903
|
in: "in";
|
|
5878
5904
|
eq: "eq";
|
|
5879
5905
|
ne: "ne";
|
|
@@ -5885,19 +5911,19 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5885
5911
|
starts_with: "starts_with";
|
|
5886
5912
|
ends_with: "ends_with";
|
|
5887
5913
|
}>>;
|
|
5888
|
-
connector: zod.ZodOptional<zod.ZodEnum<{
|
|
5914
|
+
connector: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5889
5915
|
OR: "OR";
|
|
5890
5916
|
AND: "AND";
|
|
5891
5917
|
}>>;
|
|
5892
|
-
},
|
|
5893
|
-
update: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
5894
|
-
},
|
|
5895
|
-
action: zod.ZodLiteral<"count">;
|
|
5896
|
-
model: zod.ZodString;
|
|
5897
|
-
where: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
5898
|
-
field: zod.ZodString;
|
|
5899
|
-
value: zod.ZodUnknown;
|
|
5900
|
-
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<{
|
|
5901
5927
|
in: "in";
|
|
5902
5928
|
eq: "eq";
|
|
5903
5929
|
ne: "ne";
|
|
@@ -5909,12 +5935,12 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5909
5935
|
starts_with: "starts_with";
|
|
5910
5936
|
ends_with: "ends_with";
|
|
5911
5937
|
}>>;
|
|
5912
|
-
connector: zod.ZodOptional<zod.ZodEnum<{
|
|
5938
|
+
connector: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
5913
5939
|
OR: "OR";
|
|
5914
5940
|
AND: "AND";
|
|
5915
5941
|
}>>;
|
|
5916
|
-
},
|
|
5917
|
-
},
|
|
5942
|
+
}, import("zod/v4/core").$strip>>>;
|
|
5943
|
+
}, import("zod/v4/core").$strip>], "action">;
|
|
5918
5944
|
}, DashExecuteAdapterResponse>;
|
|
5919
5945
|
};
|
|
5920
5946
|
schema: O extends {
|
|
@@ -5933,4 +5959,4 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5933
5959
|
} : {};
|
|
5934
5960
|
};
|
|
5935
5961
|
//#endregion
|
|
5936
|
-
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 };
|