@meistrari/auth-core 1.7.2 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +10 -2971
- package/dist/index.d.ts +10 -2971
- package/dist/index.mjs +11 -17
- package/package.json +29 -29
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as better_auth_plugins from 'better-auth/plugins';
|
|
|
2
2
|
import * as better_auth from 'better-auth';
|
|
3
3
|
import { JWTPayload } from 'better-auth';
|
|
4
4
|
import { BetterFetchOption } from 'better-auth/client';
|
|
5
|
-
import * as jose from 'jose';
|
|
6
5
|
import * as _better_auth_sso from '@better-auth/sso';
|
|
7
6
|
import * as better_call from 'better-call';
|
|
8
7
|
import * as nanostores from 'nanostores';
|
|
@@ -2859,7 +2858,7 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
|
|
|
2859
2858
|
statusText: string;
|
|
2860
2859
|
};
|
|
2861
2860
|
} | {
|
|
2862
|
-
data:
|
|
2861
|
+
data: better_auth.JSONWebKeySet;
|
|
2863
2862
|
error: null;
|
|
2864
2863
|
}>;
|
|
2865
2864
|
} & {
|
|
@@ -3155,2974 +3154,13 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
|
|
|
3155
3154
|
};
|
|
3156
3155
|
};
|
|
3157
3156
|
type APIClient = ReturnType<typeof createAPIClient>;
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
logo?: string | null | undefined | undefined;
|
|
3166
|
-
metadata?: any;
|
|
3167
|
-
} & {
|
|
3168
|
-
members: {
|
|
3169
|
-
id: string;
|
|
3170
|
-
organizationId: string;
|
|
3171
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3172
|
-
createdAt: Date;
|
|
3173
|
-
userId: string;
|
|
3174
|
-
teamId?: string | undefined | undefined;
|
|
3175
|
-
user: {
|
|
3176
|
-
id: string;
|
|
3177
|
-
email: string;
|
|
3178
|
-
name: string;
|
|
3179
|
-
image?: string | undefined;
|
|
3180
|
-
};
|
|
3181
|
-
}[];
|
|
3182
|
-
invitations: {
|
|
3183
|
-
id: string;
|
|
3184
|
-
organizationId: string;
|
|
3185
|
-
email: string;
|
|
3186
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3187
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3188
|
-
inviterId: string;
|
|
3189
|
-
expiresAt: Date;
|
|
3190
|
-
createdAt: Date;
|
|
3191
|
-
teamId?: string | undefined | undefined;
|
|
3192
|
-
}[];
|
|
3193
|
-
}> | null;
|
|
3194
|
-
error: null | _better_fetch_fetch.BetterFetchError;
|
|
3195
|
-
isPending: boolean;
|
|
3196
|
-
isRefetching: boolean;
|
|
3197
|
-
refetch: (queryParams?: {
|
|
3198
|
-
query?: better_auth.SessionQueryParams;
|
|
3199
|
-
} | undefined) => Promise<void>;
|
|
3200
|
-
}> & object;
|
|
3201
|
-
useListOrganizations: nanostores.PreinitializedWritableAtom<{
|
|
3202
|
-
data: {
|
|
3203
|
-
id: string;
|
|
3204
|
-
name: string;
|
|
3205
|
-
slug: string;
|
|
3206
|
-
createdAt: Date;
|
|
3207
|
-
logo?: string | null | undefined | undefined;
|
|
3208
|
-
metadata?: any;
|
|
3209
|
-
}[] | null;
|
|
3210
|
-
error: null | _better_fetch_fetch.BetterFetchError;
|
|
3211
|
-
isPending: boolean;
|
|
3212
|
-
isRefetching: boolean;
|
|
3213
|
-
refetch: (queryParams?: {
|
|
3214
|
-
query?: better_auth.SessionQueryParams;
|
|
3215
|
-
} | undefined) => Promise<void>;
|
|
3216
|
-
}> & object;
|
|
3217
|
-
useActiveMember: nanostores.PreinitializedWritableAtom<{
|
|
3218
|
-
data: {
|
|
3219
|
-
id: string;
|
|
3220
|
-
organizationId: string;
|
|
3221
|
-
userId: string;
|
|
3222
|
-
role: string;
|
|
3223
|
-
createdAt: Date;
|
|
3224
|
-
} | null;
|
|
3225
|
-
error: null | _better_fetch_fetch.BetterFetchError;
|
|
3226
|
-
isPending: boolean;
|
|
3227
|
-
isRefetching: boolean;
|
|
3228
|
-
refetch: (queryParams?: {
|
|
3229
|
-
query?: better_auth.SessionQueryParams;
|
|
3230
|
-
} | undefined) => Promise<void>;
|
|
3231
|
-
}> & object;
|
|
3232
|
-
useActiveMemberRole: nanostores.PreinitializedWritableAtom<{
|
|
3233
|
-
data: {
|
|
3234
|
-
role: string;
|
|
3235
|
-
} | null;
|
|
3236
|
-
error: null | _better_fetch_fetch.BetterFetchError;
|
|
3237
|
-
isPending: boolean;
|
|
3238
|
-
isRefetching: boolean;
|
|
3239
|
-
refetch: (queryParams?: {
|
|
3240
|
-
query?: better_auth.SessionQueryParams;
|
|
3241
|
-
} | undefined) => Promise<void>;
|
|
3242
|
-
}> & object;
|
|
3243
|
-
} & {
|
|
3244
|
-
customEndpoints: {
|
|
3245
|
-
teams: {
|
|
3246
|
-
":id": {
|
|
3247
|
-
members: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, {
|
|
3248
|
-
id: string;
|
|
3249
|
-
}>>(data_0?: better_auth.Prettify<{
|
|
3250
|
-
query?: Record<string, any> | undefined;
|
|
3251
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3252
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3253
|
-
teamMembers: {
|
|
3254
|
-
id: string;
|
|
3255
|
-
teamId: string;
|
|
3256
|
-
userId: string;
|
|
3257
|
-
createdAt: Date;
|
|
3258
|
-
}[];
|
|
3259
|
-
}, {
|
|
3260
|
-
code?: string | undefined;
|
|
3261
|
-
message?: string | undefined;
|
|
3262
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3263
|
-
};
|
|
3264
|
-
};
|
|
3265
|
-
};
|
|
3266
|
-
} & {
|
|
3267
|
-
handshake: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
3268
|
-
origin: string;
|
|
3269
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3270
|
-
query: {
|
|
3271
|
-
origin: string;
|
|
3272
|
-
};
|
|
3273
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3274
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3275
|
-
status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_call.Status;
|
|
3276
|
-
body: ({
|
|
3277
|
-
message?: string;
|
|
3278
|
-
code?: string;
|
|
3279
|
-
cause?: unknown;
|
|
3280
|
-
} & Record<string, any>) | undefined;
|
|
3281
|
-
headers: HeadersInit;
|
|
3282
|
-
statusCode: number;
|
|
3283
|
-
name: string;
|
|
3284
|
-
message: string;
|
|
3285
|
-
stack?: string;
|
|
3286
|
-
cause?: unknown;
|
|
3287
|
-
}, {
|
|
3288
|
-
code?: string | undefined;
|
|
3289
|
-
message?: string | undefined;
|
|
3290
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3291
|
-
} & {
|
|
3292
|
-
handshake: {
|
|
3293
|
-
noncePayload: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
3294
|
-
nonce: string;
|
|
3295
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3296
|
-
query: {
|
|
3297
|
-
nonce: string;
|
|
3298
|
-
};
|
|
3299
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3300
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3301
|
-
token: string;
|
|
3302
|
-
}, {
|
|
3303
|
-
code?: string | undefined;
|
|
3304
|
-
message?: string | undefined;
|
|
3305
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3306
|
-
};
|
|
3307
|
-
} & {
|
|
3308
|
-
organization: {
|
|
3309
|
-
create: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3310
|
-
name: string;
|
|
3311
|
-
slug: string;
|
|
3312
|
-
userId?: string | undefined;
|
|
3313
|
-
logo?: string | undefined;
|
|
3314
|
-
metadata?: Record<string, any> | undefined;
|
|
3315
|
-
keepCurrentActiveOrganization?: boolean | undefined;
|
|
3316
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3317
|
-
name: string;
|
|
3318
|
-
slug: string;
|
|
3319
|
-
userId?: string | undefined;
|
|
3320
|
-
logo?: string | undefined;
|
|
3321
|
-
metadata?: Record<string, any> | undefined;
|
|
3322
|
-
keepCurrentActiveOrganization?: boolean | undefined;
|
|
3323
|
-
} & {
|
|
3324
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3325
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3326
|
-
id: string;
|
|
3327
|
-
name: string;
|
|
3328
|
-
slug: string;
|
|
3329
|
-
createdAt: Date;
|
|
3330
|
-
logo?: string | null | undefined | undefined;
|
|
3331
|
-
metadata?: any;
|
|
3332
|
-
} & {
|
|
3333
|
-
metadata: any;
|
|
3334
|
-
members: ({
|
|
3335
|
-
id: string;
|
|
3336
|
-
organizationId: string;
|
|
3337
|
-
userId: string;
|
|
3338
|
-
role: string;
|
|
3339
|
-
createdAt: Date;
|
|
3340
|
-
} | undefined)[];
|
|
3341
|
-
}, {
|
|
3342
|
-
code?: string | undefined;
|
|
3343
|
-
message?: string | undefined;
|
|
3344
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3345
|
-
};
|
|
3346
|
-
} & {
|
|
3347
|
-
organization: {
|
|
3348
|
-
update: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3349
|
-
data: {
|
|
3350
|
-
name?: string | undefined;
|
|
3351
|
-
slug?: string | undefined;
|
|
3352
|
-
logo?: string | undefined;
|
|
3353
|
-
metadata?: Record<string, any> | undefined;
|
|
3354
|
-
} & Partial<{}>;
|
|
3355
|
-
organizationId?: string | undefined;
|
|
3356
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3357
|
-
data: {
|
|
3358
|
-
name?: string | undefined;
|
|
3359
|
-
slug?: string | undefined;
|
|
3360
|
-
logo?: string | undefined;
|
|
3361
|
-
metadata?: Record<string, any> | undefined;
|
|
3362
|
-
} & Partial<{}>;
|
|
3363
|
-
organizationId?: string | undefined;
|
|
3364
|
-
} & {
|
|
3365
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3366
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3367
|
-
id: string;
|
|
3368
|
-
name: string;
|
|
3369
|
-
slug: string;
|
|
3370
|
-
createdAt: Date;
|
|
3371
|
-
logo?: string | null | undefined | undefined;
|
|
3372
|
-
metadata?: any;
|
|
3373
|
-
} & {
|
|
3374
|
-
metadata: Record<string, any> | undefined;
|
|
3375
|
-
}, {
|
|
3376
|
-
code?: string | undefined;
|
|
3377
|
-
message?: string | undefined;
|
|
3378
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3379
|
-
};
|
|
3380
|
-
} & {
|
|
3381
|
-
organization: {
|
|
3382
|
-
delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3383
|
-
organizationId: string;
|
|
3384
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3385
|
-
organizationId: string;
|
|
3386
|
-
} & {
|
|
3387
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3388
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3389
|
-
id: string;
|
|
3390
|
-
name: string;
|
|
3391
|
-
slug: string;
|
|
3392
|
-
createdAt: Date;
|
|
3393
|
-
logo?: string | null | undefined | undefined;
|
|
3394
|
-
metadata?: any;
|
|
3395
|
-
}, {
|
|
3396
|
-
code?: string | undefined;
|
|
3397
|
-
message?: string | undefined;
|
|
3398
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3399
|
-
};
|
|
3400
|
-
} & {
|
|
3401
|
-
organization: {
|
|
3402
|
-
setActive: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3403
|
-
organizationId?: string | null | undefined;
|
|
3404
|
-
organizationSlug?: string | undefined;
|
|
3405
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
3406
|
-
organizationId?: string | null | undefined;
|
|
3407
|
-
organizationSlug?: string | undefined;
|
|
3408
|
-
} & {
|
|
3409
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3410
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3411
|
-
members: {
|
|
3412
|
-
id: string;
|
|
3413
|
-
organizationId: string;
|
|
3414
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3415
|
-
createdAt: Date;
|
|
3416
|
-
userId: string;
|
|
3417
|
-
teamId?: string | undefined | undefined;
|
|
3418
|
-
user: {
|
|
3419
|
-
id: string;
|
|
3420
|
-
email: string;
|
|
3421
|
-
name: string;
|
|
3422
|
-
image?: string | undefined;
|
|
3423
|
-
};
|
|
3424
|
-
}[];
|
|
3425
|
-
invitations: {
|
|
3426
|
-
id: string;
|
|
3427
|
-
organizationId: string;
|
|
3428
|
-
email: string;
|
|
3429
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3430
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3431
|
-
inviterId: string;
|
|
3432
|
-
expiresAt: Date;
|
|
3433
|
-
createdAt: Date;
|
|
3434
|
-
teamId?: string | undefined | undefined;
|
|
3435
|
-
}[];
|
|
3436
|
-
teams: {
|
|
3437
|
-
id: string;
|
|
3438
|
-
name: string;
|
|
3439
|
-
organizationId: string;
|
|
3440
|
-
createdAt: Date;
|
|
3441
|
-
updatedAt?: Date | undefined;
|
|
3442
|
-
}[];
|
|
3443
|
-
} & {
|
|
3444
|
-
id: string;
|
|
3445
|
-
name: string;
|
|
3446
|
-
slug: string;
|
|
3447
|
-
createdAt: Date;
|
|
3448
|
-
logo?: string | null | undefined | undefined;
|
|
3449
|
-
metadata?: any;
|
|
3450
|
-
}, {
|
|
3451
|
-
code?: string | undefined;
|
|
3452
|
-
message?: string | undefined;
|
|
3453
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3454
|
-
};
|
|
3455
|
-
} & {
|
|
3456
|
-
organization: {
|
|
3457
|
-
getFullOrganization: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
3458
|
-
organizationId?: string | undefined;
|
|
3459
|
-
organizationSlug?: string | undefined;
|
|
3460
|
-
membersLimit?: string | number | undefined;
|
|
3461
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
3462
|
-
query?: {
|
|
3463
|
-
organizationId?: string | undefined;
|
|
3464
|
-
organizationSlug?: string | undefined;
|
|
3465
|
-
membersLimit?: string | number | undefined;
|
|
3466
|
-
} | undefined;
|
|
3467
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3468
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3469
|
-
members: {
|
|
3470
|
-
id: string;
|
|
3471
|
-
organizationId: string;
|
|
3472
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3473
|
-
createdAt: Date;
|
|
3474
|
-
userId: string;
|
|
3475
|
-
teamId?: string | undefined | undefined;
|
|
3476
|
-
user: {
|
|
3477
|
-
id: string;
|
|
3478
|
-
email: string;
|
|
3479
|
-
name: string;
|
|
3480
|
-
image?: string | undefined;
|
|
3481
|
-
};
|
|
3482
|
-
}[];
|
|
3483
|
-
invitations: {
|
|
3484
|
-
id: string;
|
|
3485
|
-
organizationId: string;
|
|
3486
|
-
email: string;
|
|
3487
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3488
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3489
|
-
inviterId: string;
|
|
3490
|
-
expiresAt: Date;
|
|
3491
|
-
createdAt: Date;
|
|
3492
|
-
teamId?: string | undefined | undefined;
|
|
3493
|
-
}[];
|
|
3494
|
-
teams: {
|
|
3495
|
-
id: string;
|
|
3496
|
-
name: string;
|
|
3497
|
-
organizationId: string;
|
|
3498
|
-
createdAt: Date;
|
|
3499
|
-
updatedAt?: Date | undefined;
|
|
3500
|
-
}[];
|
|
3501
|
-
} & {
|
|
3502
|
-
id: string;
|
|
3503
|
-
name: string;
|
|
3504
|
-
slug: string;
|
|
3505
|
-
createdAt: Date;
|
|
3506
|
-
logo?: string | null | undefined | undefined;
|
|
3507
|
-
metadata?: any;
|
|
3508
|
-
}, {
|
|
3509
|
-
code?: string | undefined;
|
|
3510
|
-
message?: string | undefined;
|
|
3511
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3512
|
-
};
|
|
3513
|
-
} & {
|
|
3514
|
-
organization: {
|
|
3515
|
-
list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
3516
|
-
query?: Record<string, any> | undefined;
|
|
3517
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3518
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3519
|
-
id: string;
|
|
3520
|
-
name: string;
|
|
3521
|
-
slug: string;
|
|
3522
|
-
createdAt: Date;
|
|
3523
|
-
logo?: string | null | undefined | undefined;
|
|
3524
|
-
metadata?: any;
|
|
3525
|
-
}[], {
|
|
3526
|
-
code?: string | undefined;
|
|
3527
|
-
message?: string | undefined;
|
|
3528
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3529
|
-
};
|
|
3530
|
-
} & {
|
|
3531
|
-
organization: {
|
|
3532
|
-
inviteMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3533
|
-
email: string;
|
|
3534
|
-
role: "org:admin" | "org:member" | "org:reviewer" | ("org:admin" | "org:member" | "org:reviewer")[];
|
|
3535
|
-
organizationId?: string | undefined;
|
|
3536
|
-
resend?: boolean | undefined;
|
|
3537
|
-
} & {
|
|
3538
|
-
teamId?: (string | string[]) | undefined;
|
|
3539
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3540
|
-
email: string;
|
|
3541
|
-
role: "org:admin" | "org:member" | "org:reviewer" | ("org:admin" | "org:member" | "org:reviewer")[];
|
|
3542
|
-
organizationId?: string | undefined;
|
|
3543
|
-
resend?: boolean | undefined;
|
|
3544
|
-
} & {
|
|
3545
|
-
teamId?: (string | string[]) | undefined;
|
|
3546
|
-
} & {
|
|
3547
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3548
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3549
|
-
id: string;
|
|
3550
|
-
organizationId: string;
|
|
3551
|
-
email: string;
|
|
3552
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3553
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3554
|
-
inviterId: string;
|
|
3555
|
-
expiresAt: Date;
|
|
3556
|
-
createdAt: Date;
|
|
3557
|
-
teamId?: string | undefined | undefined;
|
|
3558
|
-
}, {
|
|
3559
|
-
code?: string | undefined;
|
|
3560
|
-
message?: string | undefined;
|
|
3561
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3562
|
-
};
|
|
3563
|
-
} & {
|
|
3564
|
-
organization: {
|
|
3565
|
-
cancelInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3566
|
-
invitationId: string;
|
|
3567
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3568
|
-
invitationId: string;
|
|
3569
|
-
} & {
|
|
3570
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3571
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3572
|
-
id: string;
|
|
3573
|
-
organizationId: string;
|
|
3574
|
-
email: string;
|
|
3575
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3576
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3577
|
-
inviterId: string;
|
|
3578
|
-
expiresAt: Date;
|
|
3579
|
-
createdAt: Date;
|
|
3580
|
-
teamId?: string | undefined | undefined;
|
|
3581
|
-
}, {
|
|
3582
|
-
code?: string | undefined;
|
|
3583
|
-
message?: string | undefined;
|
|
3584
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3585
|
-
};
|
|
3586
|
-
} & {
|
|
3587
|
-
organization: {
|
|
3588
|
-
acceptInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3589
|
-
invitationId: string;
|
|
3590
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3591
|
-
invitationId: string;
|
|
3592
|
-
} & {
|
|
3593
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3594
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3595
|
-
invitation: {
|
|
3596
|
-
id: string;
|
|
3597
|
-
organizationId: string;
|
|
3598
|
-
email: string;
|
|
3599
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3600
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3601
|
-
inviterId: string;
|
|
3602
|
-
expiresAt: Date;
|
|
3603
|
-
createdAt: Date;
|
|
3604
|
-
teamId?: string | undefined | undefined;
|
|
3605
|
-
};
|
|
3606
|
-
member: {
|
|
3607
|
-
id: string;
|
|
3608
|
-
organizationId: string;
|
|
3609
|
-
userId: string;
|
|
3610
|
-
role: string;
|
|
3611
|
-
createdAt: Date;
|
|
3612
|
-
};
|
|
3613
|
-
}, {
|
|
3614
|
-
code?: string | undefined;
|
|
3615
|
-
message?: string | undefined;
|
|
3616
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3617
|
-
};
|
|
3618
|
-
} & {
|
|
3619
|
-
organization: {
|
|
3620
|
-
getInvitation: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
3621
|
-
id: string;
|
|
3622
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3623
|
-
query: {
|
|
3624
|
-
id: string;
|
|
3625
|
-
};
|
|
3626
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3627
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
|
|
3628
|
-
id: string;
|
|
3629
|
-
organizationId: string;
|
|
3630
|
-
email: string;
|
|
3631
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3632
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3633
|
-
inviterId: string;
|
|
3634
|
-
expiresAt: Date;
|
|
3635
|
-
createdAt: Date;
|
|
3636
|
-
teamId?: string | undefined | undefined;
|
|
3637
|
-
} & {
|
|
3638
|
-
organizationName: string;
|
|
3639
|
-
organizationSlug: string;
|
|
3640
|
-
inviterEmail: string;
|
|
3641
|
-
}>, {
|
|
3642
|
-
code?: string | undefined;
|
|
3643
|
-
message?: string | undefined;
|
|
3644
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3645
|
-
};
|
|
3646
|
-
} & {
|
|
3647
|
-
organization: {
|
|
3648
|
-
rejectInvitation: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3649
|
-
invitationId: string;
|
|
3650
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3651
|
-
invitationId: string;
|
|
3652
|
-
} & {
|
|
3653
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3654
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3655
|
-
invitation: {
|
|
3656
|
-
id: string;
|
|
3657
|
-
organizationId: string;
|
|
3658
|
-
email: string;
|
|
3659
|
-
role: "member" | "admin" | "owner";
|
|
3660
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3661
|
-
inviterId: string;
|
|
3662
|
-
expiresAt: Date;
|
|
3663
|
-
createdAt: Date;
|
|
3664
|
-
} | null;
|
|
3665
|
-
member: null;
|
|
3666
|
-
}, {
|
|
3667
|
-
code?: string | undefined;
|
|
3668
|
-
message?: string | undefined;
|
|
3669
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3670
|
-
};
|
|
3671
|
-
} & {
|
|
3672
|
-
organization: {
|
|
3673
|
-
listInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
3674
|
-
organizationId?: string | undefined;
|
|
3675
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
3676
|
-
query?: {
|
|
3677
|
-
organizationId?: string | undefined;
|
|
3678
|
-
} | undefined;
|
|
3679
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3680
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3681
|
-
id: string;
|
|
3682
|
-
organizationId: string;
|
|
3683
|
-
email: string;
|
|
3684
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3685
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3686
|
-
inviterId: string;
|
|
3687
|
-
expiresAt: Date;
|
|
3688
|
-
createdAt: Date;
|
|
3689
|
-
teamId?: string | undefined | undefined;
|
|
3690
|
-
}[], {
|
|
3691
|
-
code?: string | undefined;
|
|
3692
|
-
message?: string | undefined;
|
|
3693
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3694
|
-
};
|
|
3695
|
-
} & {
|
|
3696
|
-
organization: {
|
|
3697
|
-
getActiveMember: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
3698
|
-
query?: Record<string, any> | undefined;
|
|
3699
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3700
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<Omit<{
|
|
3701
|
-
id: string;
|
|
3702
|
-
organizationId: string;
|
|
3703
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3704
|
-
createdAt: Date;
|
|
3705
|
-
userId: string;
|
|
3706
|
-
teamId?: string | undefined | undefined;
|
|
3707
|
-
user: {
|
|
3708
|
-
id: string;
|
|
3709
|
-
email: string;
|
|
3710
|
-
name: string;
|
|
3711
|
-
image?: string | undefined;
|
|
3712
|
-
};
|
|
3713
|
-
} & {
|
|
3714
|
-
user: better_auth.User;
|
|
3715
|
-
}, "user"> & {
|
|
3716
|
-
user: {
|
|
3717
|
-
id: string;
|
|
3718
|
-
name: string;
|
|
3719
|
-
email: string;
|
|
3720
|
-
image: string | undefined;
|
|
3721
|
-
};
|
|
3722
|
-
}, {
|
|
3723
|
-
code?: string | undefined;
|
|
3724
|
-
message?: string | undefined;
|
|
3725
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3726
|
-
};
|
|
3727
|
-
} & {
|
|
3728
|
-
organization: {
|
|
3729
|
-
checkSlug: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3730
|
-
slug: string;
|
|
3731
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3732
|
-
slug: string;
|
|
3733
|
-
} & {
|
|
3734
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3735
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3736
|
-
status: boolean;
|
|
3737
|
-
}, {
|
|
3738
|
-
code?: string | undefined;
|
|
3739
|
-
message?: string | undefined;
|
|
3740
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3741
|
-
};
|
|
3742
|
-
} & {
|
|
3743
|
-
organization: {
|
|
3744
|
-
removeMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3745
|
-
memberIdOrEmail: string;
|
|
3746
|
-
organizationId?: string | undefined;
|
|
3747
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3748
|
-
memberIdOrEmail: string;
|
|
3749
|
-
organizationId?: string | undefined;
|
|
3750
|
-
} & {
|
|
3751
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3752
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3753
|
-
member: {
|
|
3754
|
-
id: string;
|
|
3755
|
-
organizationId: string;
|
|
3756
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3757
|
-
createdAt: Date;
|
|
3758
|
-
userId: string;
|
|
3759
|
-
teamId?: string | undefined | undefined;
|
|
3760
|
-
user: {
|
|
3761
|
-
id: string;
|
|
3762
|
-
email: string;
|
|
3763
|
-
name: string;
|
|
3764
|
-
image?: string | undefined;
|
|
3765
|
-
};
|
|
3766
|
-
};
|
|
3767
|
-
}, {
|
|
3768
|
-
code?: string | undefined;
|
|
3769
|
-
message?: string | undefined;
|
|
3770
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3771
|
-
};
|
|
3772
|
-
} & {
|
|
3773
|
-
organization: {
|
|
3774
|
-
updateMemberRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3775
|
-
role: better_auth.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
|
|
3776
|
-
memberId: string;
|
|
3777
|
-
organizationId?: string | undefined;
|
|
3778
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3779
|
-
role: better_auth.LiteralString | "org:admin" | "org:member" | "org:reviewer" | better_auth.LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[];
|
|
3780
|
-
memberId: string;
|
|
3781
|
-
organizationId?: string | undefined;
|
|
3782
|
-
} & {
|
|
3783
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3784
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3785
|
-
id: string;
|
|
3786
|
-
organizationId: string;
|
|
3787
|
-
role: "member" | "admin" | "owner";
|
|
3788
|
-
createdAt: Date;
|
|
3789
|
-
userId: string;
|
|
3790
|
-
user: {
|
|
3791
|
-
id: string;
|
|
3792
|
-
email: string;
|
|
3793
|
-
name: string;
|
|
3794
|
-
image?: string | undefined;
|
|
3795
|
-
};
|
|
3796
|
-
}, {
|
|
3797
|
-
code?: string | undefined;
|
|
3798
|
-
message?: string | undefined;
|
|
3799
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3800
|
-
};
|
|
3801
|
-
} & {
|
|
3802
|
-
organization: {
|
|
3803
|
-
leave: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
3804
|
-
organizationId: string;
|
|
3805
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
3806
|
-
organizationId: string;
|
|
3807
|
-
} & {
|
|
3808
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3809
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<Omit<{
|
|
3810
|
-
id: string;
|
|
3811
|
-
organizationId: string;
|
|
3812
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3813
|
-
createdAt: Date;
|
|
3814
|
-
userId: string;
|
|
3815
|
-
teamId?: string | undefined | undefined;
|
|
3816
|
-
user: {
|
|
3817
|
-
id: string;
|
|
3818
|
-
email: string;
|
|
3819
|
-
name: string;
|
|
3820
|
-
image?: string | undefined;
|
|
3821
|
-
};
|
|
3822
|
-
} & {
|
|
3823
|
-
user: better_auth.User;
|
|
3824
|
-
}, "user"> & {
|
|
3825
|
-
user: {
|
|
3826
|
-
id: string;
|
|
3827
|
-
name: string;
|
|
3828
|
-
email: string;
|
|
3829
|
-
image: string | undefined;
|
|
3830
|
-
};
|
|
3831
|
-
}>, {
|
|
3832
|
-
code?: string | undefined;
|
|
3833
|
-
message?: string | undefined;
|
|
3834
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3835
|
-
};
|
|
3836
|
-
} & {
|
|
3837
|
-
organization: {
|
|
3838
|
-
listUserInvitations: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
3839
|
-
email?: string | undefined;
|
|
3840
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
3841
|
-
query?: {
|
|
3842
|
-
email?: string | undefined;
|
|
3843
|
-
} | undefined;
|
|
3844
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3845
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<(Omit<{
|
|
3846
|
-
id: string;
|
|
3847
|
-
organizationId: string;
|
|
3848
|
-
email: string;
|
|
3849
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3850
|
-
status: better_auth_plugins.InvitationStatus;
|
|
3851
|
-
inviterId: string;
|
|
3852
|
-
expiresAt: Date;
|
|
3853
|
-
createdAt: Date;
|
|
3854
|
-
teamId?: string | undefined | undefined;
|
|
3855
|
-
} & {
|
|
3856
|
-
organization: {
|
|
3857
|
-
id: string;
|
|
3858
|
-
name: string;
|
|
3859
|
-
slug: string;
|
|
3860
|
-
createdAt: Date;
|
|
3861
|
-
logo?: string | null | undefined | undefined;
|
|
3862
|
-
metadata?: any;
|
|
3863
|
-
};
|
|
3864
|
-
}, "organization"> & {
|
|
3865
|
-
organizationName: string;
|
|
3866
|
-
})[], {
|
|
3867
|
-
code?: string | undefined;
|
|
3868
|
-
message?: string | undefined;
|
|
3869
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3870
|
-
};
|
|
3871
|
-
} & {
|
|
3872
|
-
organization: {
|
|
3873
|
-
listMembers: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
3874
|
-
limit?: string | number | undefined;
|
|
3875
|
-
offset?: string | number | undefined;
|
|
3876
|
-
sortBy?: string | undefined;
|
|
3877
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
3878
|
-
filterField?: string | undefined;
|
|
3879
|
-
filterValue?: string | number | boolean | undefined;
|
|
3880
|
-
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
3881
|
-
organizationId?: string | undefined;
|
|
3882
|
-
organizationSlug?: string | undefined;
|
|
3883
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
3884
|
-
query?: {
|
|
3885
|
-
limit?: string | number | undefined;
|
|
3886
|
-
offset?: string | number | undefined;
|
|
3887
|
-
sortBy?: string | undefined;
|
|
3888
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
3889
|
-
filterField?: string | undefined;
|
|
3890
|
-
filterValue?: string | number | boolean | undefined;
|
|
3891
|
-
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
3892
|
-
organizationId?: string | undefined;
|
|
3893
|
-
organizationSlug?: string | undefined;
|
|
3894
|
-
} | undefined;
|
|
3895
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3896
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3897
|
-
members: ({
|
|
3898
|
-
id: string;
|
|
3899
|
-
organizationId: string;
|
|
3900
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3901
|
-
createdAt: Date;
|
|
3902
|
-
userId: string;
|
|
3903
|
-
teamId?: string | undefined | undefined;
|
|
3904
|
-
user: {
|
|
3905
|
-
id: string;
|
|
3906
|
-
email: string;
|
|
3907
|
-
name: string;
|
|
3908
|
-
image?: string | undefined;
|
|
3909
|
-
};
|
|
3910
|
-
} & {
|
|
3911
|
-
user: {
|
|
3912
|
-
id: string;
|
|
3913
|
-
name: string;
|
|
3914
|
-
email: string;
|
|
3915
|
-
image: string | null | undefined;
|
|
3916
|
-
};
|
|
3917
|
-
})[];
|
|
3918
|
-
total: number;
|
|
3919
|
-
}, {
|
|
3920
|
-
code?: string | undefined;
|
|
3921
|
-
message?: string | undefined;
|
|
3922
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3923
|
-
};
|
|
3924
|
-
} & {
|
|
3925
|
-
organization: {
|
|
3926
|
-
getActiveMemberRole: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
3927
|
-
userId?: string | undefined;
|
|
3928
|
-
organizationId?: string | undefined;
|
|
3929
|
-
organizationSlug?: string | undefined;
|
|
3930
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
3931
|
-
query?: {
|
|
3932
|
-
userId?: string | undefined;
|
|
3933
|
-
organizationId?: string | undefined;
|
|
3934
|
-
organizationSlug?: string | undefined;
|
|
3935
|
-
} | undefined;
|
|
3936
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3937
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3938
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
3939
|
-
}, {
|
|
3940
|
-
code?: string | undefined;
|
|
3941
|
-
message?: string | undefined;
|
|
3942
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3943
|
-
};
|
|
3944
|
-
} & {
|
|
3945
|
-
organization: {
|
|
3946
|
-
hasPermission: <FetchOptions extends better_auth.ClientFetchOption<Partial<({
|
|
3947
|
-
permission: {
|
|
3948
|
-
access?: string[] | undefined;
|
|
3949
|
-
organization?: ("update" | "delete")[] | undefined;
|
|
3950
|
-
member?: ("update" | "delete" | "create")[] | undefined;
|
|
3951
|
-
invitation?: ("create" | "cancel")[] | undefined;
|
|
3952
|
-
team?: ("update" | "delete" | "create")[] | undefined;
|
|
3953
|
-
ac?: ("update" | "delete" | "create" | "read")[] | undefined;
|
|
3954
|
-
};
|
|
3955
|
-
permissions?: never | undefined;
|
|
3956
|
-
} | {
|
|
3957
|
-
permissions: {
|
|
3958
|
-
access?: string[] | undefined;
|
|
3959
|
-
organization?: ("update" | "delete")[] | undefined;
|
|
3960
|
-
member?: ("update" | "delete" | "create")[] | undefined;
|
|
3961
|
-
invitation?: ("create" | "cancel")[] | undefined;
|
|
3962
|
-
team?: ("update" | "delete" | "create")[] | undefined;
|
|
3963
|
-
ac?: ("update" | "delete" | "create" | "read")[] | undefined;
|
|
3964
|
-
};
|
|
3965
|
-
permission?: never | undefined;
|
|
3966
|
-
}) & {
|
|
3967
|
-
organizationId?: string | undefined;
|
|
3968
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
|
|
3969
|
-
permission: {
|
|
3970
|
-
access?: string[] | undefined;
|
|
3971
|
-
organization?: ("update" | "delete")[] | undefined;
|
|
3972
|
-
member?: ("update" | "delete" | "create")[] | undefined;
|
|
3973
|
-
invitation?: ("create" | "cancel")[] | undefined;
|
|
3974
|
-
team?: ("update" | "delete" | "create")[] | undefined;
|
|
3975
|
-
ac?: ("update" | "delete" | "create" | "read")[] | undefined;
|
|
3976
|
-
};
|
|
3977
|
-
permissions?: never | undefined;
|
|
3978
|
-
} | {
|
|
3979
|
-
permissions: {
|
|
3980
|
-
access?: string[] | undefined;
|
|
3981
|
-
organization?: ("update" | "delete")[] | undefined;
|
|
3982
|
-
member?: ("update" | "delete" | "create")[] | undefined;
|
|
3983
|
-
invitation?: ("create" | "cancel")[] | undefined;
|
|
3984
|
-
team?: ("update" | "delete" | "create")[] | undefined;
|
|
3985
|
-
ac?: ("update" | "delete" | "create" | "read")[] | undefined;
|
|
3986
|
-
};
|
|
3987
|
-
permission?: never | undefined;
|
|
3988
|
-
}) & {
|
|
3989
|
-
organizationId?: string | undefined;
|
|
3990
|
-
}) & {
|
|
3991
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3992
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
3993
|
-
error: null;
|
|
3994
|
-
success: boolean;
|
|
3995
|
-
}, {
|
|
3996
|
-
code?: string | undefined;
|
|
3997
|
-
message?: string | undefined;
|
|
3998
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
3999
|
-
};
|
|
4000
|
-
} & {
|
|
4001
|
-
organization: {
|
|
4002
|
-
createTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4003
|
-
name: string;
|
|
4004
|
-
organizationId?: string | undefined;
|
|
4005
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4006
|
-
name: string;
|
|
4007
|
-
organizationId?: string | undefined;
|
|
4008
|
-
} & {
|
|
4009
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4010
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4011
|
-
id: string;
|
|
4012
|
-
name: string;
|
|
4013
|
-
organizationId: string;
|
|
4014
|
-
createdAt: Date;
|
|
4015
|
-
updatedAt?: Date | undefined;
|
|
4016
|
-
}, {
|
|
4017
|
-
code?: string | undefined;
|
|
4018
|
-
message?: string | undefined;
|
|
4019
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4020
|
-
};
|
|
4021
|
-
} & {
|
|
4022
|
-
organization: {
|
|
4023
|
-
listTeams: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
4024
|
-
organizationId?: string | undefined;
|
|
4025
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4026
|
-
query?: {
|
|
4027
|
-
organizationId?: string | undefined;
|
|
4028
|
-
} | undefined;
|
|
4029
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4030
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4031
|
-
id: string;
|
|
4032
|
-
name: string;
|
|
4033
|
-
organizationId: string;
|
|
4034
|
-
createdAt: Date;
|
|
4035
|
-
updatedAt?: Date | undefined;
|
|
4036
|
-
}[], {
|
|
4037
|
-
code?: string | undefined;
|
|
4038
|
-
message?: string | undefined;
|
|
4039
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4040
|
-
};
|
|
4041
|
-
} & {
|
|
4042
|
-
organization: {
|
|
4043
|
-
removeTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4044
|
-
teamId: string;
|
|
4045
|
-
organizationId?: string | undefined;
|
|
4046
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4047
|
-
teamId: string;
|
|
4048
|
-
organizationId?: string | undefined;
|
|
4049
|
-
} & {
|
|
4050
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4051
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4052
|
-
message: string;
|
|
4053
|
-
}, {
|
|
4054
|
-
code?: string | undefined;
|
|
4055
|
-
message?: string | undefined;
|
|
4056
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4057
|
-
};
|
|
4058
|
-
} & {
|
|
4059
|
-
organization: {
|
|
4060
|
-
updateTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4061
|
-
teamId: string;
|
|
4062
|
-
data: Partial<{
|
|
4063
|
-
name: string;
|
|
4064
|
-
organizationId: string;
|
|
4065
|
-
}>;
|
|
4066
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4067
|
-
teamId: string;
|
|
4068
|
-
data: Partial<{
|
|
4069
|
-
name: string;
|
|
4070
|
-
organizationId: string;
|
|
4071
|
-
}>;
|
|
4072
|
-
} & {
|
|
4073
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4074
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4075
|
-
id: string;
|
|
4076
|
-
name: string;
|
|
4077
|
-
organizationId: string;
|
|
4078
|
-
createdAt: Date;
|
|
4079
|
-
updatedAt?: Date | undefined;
|
|
4080
|
-
}, {
|
|
4081
|
-
code?: string | undefined;
|
|
4082
|
-
message?: string | undefined;
|
|
4083
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4084
|
-
};
|
|
4085
|
-
} & {
|
|
4086
|
-
organization: {
|
|
4087
|
-
setActiveTeam: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4088
|
-
teamId?: string | null | undefined;
|
|
4089
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4090
|
-
teamId?: string | null | undefined;
|
|
4091
|
-
} & {
|
|
4092
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4093
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4094
|
-
id: string;
|
|
4095
|
-
name: string;
|
|
4096
|
-
organizationId: string;
|
|
4097
|
-
createdAt: Date;
|
|
4098
|
-
updatedAt?: Date | undefined;
|
|
4099
|
-
}, {
|
|
4100
|
-
code?: string | undefined;
|
|
4101
|
-
message?: string | undefined;
|
|
4102
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4103
|
-
};
|
|
4104
|
-
} & {
|
|
4105
|
-
organization: {
|
|
4106
|
-
listUserTeams: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4107
|
-
query?: Record<string, any> | undefined;
|
|
4108
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4109
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4110
|
-
id: string;
|
|
4111
|
-
name: string;
|
|
4112
|
-
organizationId: string;
|
|
4113
|
-
createdAt: Date;
|
|
4114
|
-
updatedAt?: Date | undefined;
|
|
4115
|
-
}[], {
|
|
4116
|
-
code?: string | undefined;
|
|
4117
|
-
message?: string | undefined;
|
|
4118
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4119
|
-
};
|
|
4120
|
-
} & {
|
|
4121
|
-
organization: {
|
|
4122
|
-
listTeamMembers: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
4123
|
-
teamId?: string | undefined;
|
|
4124
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4125
|
-
query?: {
|
|
4126
|
-
teamId?: string | undefined;
|
|
4127
|
-
} | undefined;
|
|
4128
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4129
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4130
|
-
id: string;
|
|
4131
|
-
teamId: string;
|
|
4132
|
-
userId: string;
|
|
4133
|
-
createdAt: Date;
|
|
4134
|
-
}[], {
|
|
4135
|
-
code?: string | undefined;
|
|
4136
|
-
message?: string | undefined;
|
|
4137
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4138
|
-
};
|
|
4139
|
-
} & {
|
|
4140
|
-
organization: {
|
|
4141
|
-
addTeamMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4142
|
-
teamId: string;
|
|
4143
|
-
userId: unknown;
|
|
4144
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4145
|
-
teamId: string;
|
|
4146
|
-
userId: unknown;
|
|
4147
|
-
} & {
|
|
4148
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4149
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4150
|
-
id: string;
|
|
4151
|
-
teamId: string;
|
|
4152
|
-
userId: string;
|
|
4153
|
-
createdAt: Date;
|
|
4154
|
-
}, {
|
|
4155
|
-
code?: string | undefined;
|
|
4156
|
-
message?: string | undefined;
|
|
4157
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4158
|
-
};
|
|
4159
|
-
} & {
|
|
4160
|
-
organization: {
|
|
4161
|
-
removeTeamMember: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4162
|
-
teamId: string;
|
|
4163
|
-
userId: unknown;
|
|
4164
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4165
|
-
teamId: string;
|
|
4166
|
-
userId: unknown;
|
|
4167
|
-
} & {
|
|
4168
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4169
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4170
|
-
message: string;
|
|
4171
|
-
}, {
|
|
4172
|
-
code?: string | undefined;
|
|
4173
|
-
message?: string | undefined;
|
|
4174
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4175
|
-
};
|
|
4176
|
-
} & {
|
|
4177
|
-
sso: {
|
|
4178
|
-
saml2: {
|
|
4179
|
-
sp: {
|
|
4180
|
-
metadata: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
4181
|
-
providerId: string;
|
|
4182
|
-
format?: "json" | "xml" | undefined;
|
|
4183
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4184
|
-
query: {
|
|
4185
|
-
providerId: string;
|
|
4186
|
-
format?: "json" | "xml" | undefined;
|
|
4187
|
-
};
|
|
4188
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4189
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<Response, {
|
|
4190
|
-
code?: string | undefined;
|
|
4191
|
-
message?: string | undefined;
|
|
4192
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4193
|
-
};
|
|
4194
|
-
};
|
|
4195
|
-
};
|
|
4196
|
-
} & {
|
|
4197
|
-
sso: {
|
|
4198
|
-
register: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4199
|
-
providerId: string;
|
|
4200
|
-
issuer: string;
|
|
4201
|
-
domain: string;
|
|
4202
|
-
oidcConfig?: {
|
|
4203
|
-
clientId: string;
|
|
4204
|
-
clientSecret: string;
|
|
4205
|
-
authorizationEndpoint?: string | undefined;
|
|
4206
|
-
tokenEndpoint?: string | undefined;
|
|
4207
|
-
userInfoEndpoint?: string | undefined;
|
|
4208
|
-
tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined;
|
|
4209
|
-
jwksEndpoint?: string | undefined;
|
|
4210
|
-
discoveryEndpoint?: string | undefined;
|
|
4211
|
-
skipDiscovery?: boolean | undefined;
|
|
4212
|
-
scopes?: string[] | undefined;
|
|
4213
|
-
pkce?: boolean | undefined;
|
|
4214
|
-
mapping?: {
|
|
4215
|
-
id: string;
|
|
4216
|
-
email: string;
|
|
4217
|
-
name: string;
|
|
4218
|
-
emailVerified?: string | undefined;
|
|
4219
|
-
image?: string | undefined;
|
|
4220
|
-
extraFields?: Record<string, any> | undefined;
|
|
4221
|
-
} | undefined;
|
|
4222
|
-
} | undefined;
|
|
4223
|
-
samlConfig?: {
|
|
4224
|
-
entryPoint: string;
|
|
4225
|
-
cert: string;
|
|
4226
|
-
callbackUrl: string;
|
|
4227
|
-
spMetadata: {
|
|
4228
|
-
metadata?: string | undefined;
|
|
4229
|
-
entityID?: string | undefined;
|
|
4230
|
-
binding?: string | undefined;
|
|
4231
|
-
privateKey?: string | undefined;
|
|
4232
|
-
privateKeyPass?: string | undefined;
|
|
4233
|
-
isAssertionEncrypted?: boolean | undefined;
|
|
4234
|
-
encPrivateKey?: string | undefined;
|
|
4235
|
-
encPrivateKeyPass?: string | undefined;
|
|
4236
|
-
};
|
|
4237
|
-
audience?: string | undefined;
|
|
4238
|
-
idpMetadata?: {
|
|
4239
|
-
metadata?: string | undefined;
|
|
4240
|
-
entityID?: string | undefined;
|
|
4241
|
-
cert?: string | undefined;
|
|
4242
|
-
privateKey?: string | undefined;
|
|
4243
|
-
privateKeyPass?: string | undefined;
|
|
4244
|
-
isAssertionEncrypted?: boolean | undefined;
|
|
4245
|
-
encPrivateKey?: string | undefined;
|
|
4246
|
-
encPrivateKeyPass?: string | undefined;
|
|
4247
|
-
singleSignOnService?: {
|
|
4248
|
-
Binding: string;
|
|
4249
|
-
Location: string;
|
|
4250
|
-
}[] | undefined;
|
|
4251
|
-
} | undefined;
|
|
4252
|
-
wantAssertionsSigned?: boolean | undefined;
|
|
4253
|
-
signatureAlgorithm?: string | undefined;
|
|
4254
|
-
digestAlgorithm?: string | undefined;
|
|
4255
|
-
identifierFormat?: string | undefined;
|
|
4256
|
-
privateKey?: string | undefined;
|
|
4257
|
-
decryptionPvk?: string | undefined;
|
|
4258
|
-
additionalParams?: Record<string, any> | undefined;
|
|
4259
|
-
mapping?: {
|
|
4260
|
-
id: string;
|
|
4261
|
-
email: string;
|
|
4262
|
-
name: string;
|
|
4263
|
-
emailVerified?: string | undefined;
|
|
4264
|
-
firstName?: string | undefined;
|
|
4265
|
-
lastName?: string | undefined;
|
|
4266
|
-
extraFields?: Record<string, any> | undefined;
|
|
4267
|
-
} | undefined;
|
|
4268
|
-
} | undefined;
|
|
4269
|
-
organizationId?: string | undefined;
|
|
4270
|
-
overrideUserInfo?: boolean | undefined;
|
|
4271
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4272
|
-
providerId: string;
|
|
4273
|
-
issuer: string;
|
|
4274
|
-
domain: string;
|
|
4275
|
-
oidcConfig?: {
|
|
4276
|
-
clientId: string;
|
|
4277
|
-
clientSecret: string;
|
|
4278
|
-
authorizationEndpoint?: string | undefined;
|
|
4279
|
-
tokenEndpoint?: string | undefined;
|
|
4280
|
-
userInfoEndpoint?: string | undefined;
|
|
4281
|
-
tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined;
|
|
4282
|
-
jwksEndpoint?: string | undefined;
|
|
4283
|
-
discoveryEndpoint?: string | undefined;
|
|
4284
|
-
skipDiscovery?: boolean | undefined;
|
|
4285
|
-
scopes?: string[] | undefined;
|
|
4286
|
-
pkce?: boolean | undefined;
|
|
4287
|
-
mapping?: {
|
|
4288
|
-
id: string;
|
|
4289
|
-
email: string;
|
|
4290
|
-
name: string;
|
|
4291
|
-
emailVerified?: string | undefined;
|
|
4292
|
-
image?: string | undefined;
|
|
4293
|
-
extraFields?: Record<string, any> | undefined;
|
|
4294
|
-
} | undefined;
|
|
4295
|
-
} | undefined;
|
|
4296
|
-
samlConfig?: {
|
|
4297
|
-
entryPoint: string;
|
|
4298
|
-
cert: string;
|
|
4299
|
-
callbackUrl: string;
|
|
4300
|
-
spMetadata: {
|
|
4301
|
-
metadata?: string | undefined;
|
|
4302
|
-
entityID?: string | undefined;
|
|
4303
|
-
binding?: string | undefined;
|
|
4304
|
-
privateKey?: string | undefined;
|
|
4305
|
-
privateKeyPass?: string | undefined;
|
|
4306
|
-
isAssertionEncrypted?: boolean | undefined;
|
|
4307
|
-
encPrivateKey?: string | undefined;
|
|
4308
|
-
encPrivateKeyPass?: string | undefined;
|
|
4309
|
-
};
|
|
4310
|
-
audience?: string | undefined;
|
|
4311
|
-
idpMetadata?: {
|
|
4312
|
-
metadata?: string | undefined;
|
|
4313
|
-
entityID?: string | undefined;
|
|
4314
|
-
cert?: string | undefined;
|
|
4315
|
-
privateKey?: string | undefined;
|
|
4316
|
-
privateKeyPass?: string | undefined;
|
|
4317
|
-
isAssertionEncrypted?: boolean | undefined;
|
|
4318
|
-
encPrivateKey?: string | undefined;
|
|
4319
|
-
encPrivateKeyPass?: string | undefined;
|
|
4320
|
-
singleSignOnService?: {
|
|
4321
|
-
Binding: string;
|
|
4322
|
-
Location: string;
|
|
4323
|
-
}[] | undefined;
|
|
4324
|
-
} | undefined;
|
|
4325
|
-
wantAssertionsSigned?: boolean | undefined;
|
|
4326
|
-
signatureAlgorithm?: string | undefined;
|
|
4327
|
-
digestAlgorithm?: string | undefined;
|
|
4328
|
-
identifierFormat?: string | undefined;
|
|
4329
|
-
privateKey?: string | undefined;
|
|
4330
|
-
decryptionPvk?: string | undefined;
|
|
4331
|
-
additionalParams?: Record<string, any> | undefined;
|
|
4332
|
-
mapping?: {
|
|
4333
|
-
id: string;
|
|
4334
|
-
email: string;
|
|
4335
|
-
name: string;
|
|
4336
|
-
emailVerified?: string | undefined;
|
|
4337
|
-
firstName?: string | undefined;
|
|
4338
|
-
lastName?: string | undefined;
|
|
4339
|
-
extraFields?: Record<string, any> | undefined;
|
|
4340
|
-
} | undefined;
|
|
4341
|
-
} | undefined;
|
|
4342
|
-
organizationId?: string | undefined;
|
|
4343
|
-
overrideUserInfo?: boolean | undefined;
|
|
4344
|
-
} & {
|
|
4345
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4346
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4347
|
-
issuer: string;
|
|
4348
|
-
oidcConfig?: _better_auth_sso.OIDCConfig | undefined;
|
|
4349
|
-
samlConfig?: _better_auth_sso.SAMLConfig | undefined;
|
|
4350
|
-
userId: string;
|
|
4351
|
-
providerId: string;
|
|
4352
|
-
organizationId?: string | undefined;
|
|
4353
|
-
domain: string;
|
|
4354
|
-
}, {
|
|
4355
|
-
code?: string | undefined;
|
|
4356
|
-
message?: string | undefined;
|
|
4357
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4358
|
-
};
|
|
4359
|
-
} & {
|
|
4360
|
-
signIn: {
|
|
4361
|
-
sso: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4362
|
-
callbackURL: string;
|
|
4363
|
-
email?: string | undefined;
|
|
4364
|
-
organizationSlug?: string | undefined;
|
|
4365
|
-
providerId?: string | undefined;
|
|
4366
|
-
domain?: string | undefined;
|
|
4367
|
-
errorCallbackURL?: string | undefined;
|
|
4368
|
-
newUserCallbackURL?: string | undefined;
|
|
4369
|
-
scopes?: string[] | undefined;
|
|
4370
|
-
loginHint?: string | undefined;
|
|
4371
|
-
requestSignUp?: boolean | undefined;
|
|
4372
|
-
providerType?: "saml" | "oidc" | undefined;
|
|
4373
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4374
|
-
callbackURL: string;
|
|
4375
|
-
email?: string | undefined;
|
|
4376
|
-
organizationSlug?: string | undefined;
|
|
4377
|
-
providerId?: string | undefined;
|
|
4378
|
-
domain?: string | undefined;
|
|
4379
|
-
errorCallbackURL?: string | undefined;
|
|
4380
|
-
newUserCallbackURL?: string | undefined;
|
|
4381
|
-
scopes?: string[] | undefined;
|
|
4382
|
-
loginHint?: string | undefined;
|
|
4383
|
-
requestSignUp?: boolean | undefined;
|
|
4384
|
-
providerType?: "saml" | "oidc" | undefined;
|
|
4385
|
-
} & {
|
|
4386
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4387
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4388
|
-
url: string;
|
|
4389
|
-
redirect: boolean;
|
|
4390
|
-
}, {
|
|
4391
|
-
code?: string | undefined;
|
|
4392
|
-
message?: string | undefined;
|
|
4393
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4394
|
-
};
|
|
4395
|
-
} & {
|
|
4396
|
-
twoFactor: {
|
|
4397
|
-
enable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4398
|
-
password: string;
|
|
4399
|
-
issuer?: string | undefined;
|
|
4400
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4401
|
-
password: string;
|
|
4402
|
-
issuer?: string | undefined;
|
|
4403
|
-
} & {
|
|
4404
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4405
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4406
|
-
totpURI: string;
|
|
4407
|
-
backupCodes: string[];
|
|
4408
|
-
}, {
|
|
4409
|
-
code?: string | undefined;
|
|
4410
|
-
message?: string | undefined;
|
|
4411
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4412
|
-
};
|
|
4413
|
-
} & {
|
|
4414
|
-
twoFactor: {
|
|
4415
|
-
disable: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4416
|
-
password: string;
|
|
4417
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4418
|
-
password: string;
|
|
4419
|
-
} & {
|
|
4420
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4421
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4422
|
-
status: boolean;
|
|
4423
|
-
}, {
|
|
4424
|
-
code?: string | undefined;
|
|
4425
|
-
message?: string | undefined;
|
|
4426
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4427
|
-
};
|
|
4428
|
-
} & {
|
|
4429
|
-
twoFactor: {
|
|
4430
|
-
verifyBackupCode: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4431
|
-
code: string;
|
|
4432
|
-
disableSession?: boolean | undefined;
|
|
4433
|
-
trustDevice?: boolean | undefined;
|
|
4434
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4435
|
-
code: string;
|
|
4436
|
-
disableSession?: boolean | undefined;
|
|
4437
|
-
trustDevice?: boolean | undefined;
|
|
4438
|
-
} & {
|
|
4439
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4440
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4441
|
-
token: string | undefined;
|
|
4442
|
-
user: {
|
|
4443
|
-
id: string;
|
|
4444
|
-
email: string;
|
|
4445
|
-
emailVerified: boolean;
|
|
4446
|
-
name: string;
|
|
4447
|
-
image: string | null | undefined;
|
|
4448
|
-
createdAt: Date;
|
|
4449
|
-
updatedAt: Date;
|
|
4450
|
-
};
|
|
4451
|
-
}, {
|
|
4452
|
-
code?: string | undefined;
|
|
4453
|
-
message?: string | undefined;
|
|
4454
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4455
|
-
};
|
|
4456
|
-
} & {
|
|
4457
|
-
twoFactor: {
|
|
4458
|
-
generateBackupCodes: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4459
|
-
password: string;
|
|
4460
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4461
|
-
password: string;
|
|
4462
|
-
} & {
|
|
4463
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4464
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4465
|
-
status: boolean;
|
|
4466
|
-
backupCodes: string[];
|
|
4467
|
-
}, {
|
|
4468
|
-
code?: string | undefined;
|
|
4469
|
-
message?: string | undefined;
|
|
4470
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4471
|
-
};
|
|
4472
|
-
} & {
|
|
4473
|
-
twoFactor: {
|
|
4474
|
-
sendOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4475
|
-
trustDevice?: boolean | undefined;
|
|
4476
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4477
|
-
query?: Record<string, any> | undefined;
|
|
4478
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4479
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4480
|
-
status: boolean;
|
|
4481
|
-
}, {
|
|
4482
|
-
code?: string | undefined;
|
|
4483
|
-
message?: string | undefined;
|
|
4484
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4485
|
-
};
|
|
4486
|
-
} & {
|
|
4487
|
-
twoFactor: {
|
|
4488
|
-
verifyOtp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4489
|
-
code: string;
|
|
4490
|
-
trustDevice?: boolean | undefined;
|
|
4491
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4492
|
-
code: string;
|
|
4493
|
-
trustDevice?: boolean | undefined;
|
|
4494
|
-
} & {
|
|
4495
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4496
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4497
|
-
token: string;
|
|
4498
|
-
user: {
|
|
4499
|
-
id: string;
|
|
4500
|
-
email: string;
|
|
4501
|
-
emailVerified: boolean;
|
|
4502
|
-
name: string;
|
|
4503
|
-
image: string | null | undefined;
|
|
4504
|
-
createdAt: Date;
|
|
4505
|
-
updatedAt: Date;
|
|
4506
|
-
};
|
|
4507
|
-
}, {
|
|
4508
|
-
code?: string | undefined;
|
|
4509
|
-
message?: string | undefined;
|
|
4510
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4511
|
-
};
|
|
4512
|
-
} & {
|
|
4513
|
-
twoFactor: {
|
|
4514
|
-
getTotpUri: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4515
|
-
password: string;
|
|
4516
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4517
|
-
password: string;
|
|
4518
|
-
} & {
|
|
4519
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4520
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4521
|
-
totpURI: string;
|
|
4522
|
-
}, {
|
|
4523
|
-
code?: string | undefined;
|
|
4524
|
-
message?: string | undefined;
|
|
4525
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4526
|
-
};
|
|
4527
|
-
} & {
|
|
4528
|
-
twoFactor: {
|
|
4529
|
-
verifyTotp: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4530
|
-
code: string;
|
|
4531
|
-
trustDevice?: boolean | undefined;
|
|
4532
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4533
|
-
code: string;
|
|
4534
|
-
trustDevice?: boolean | undefined;
|
|
4535
|
-
} & {
|
|
4536
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4537
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4538
|
-
token: string;
|
|
4539
|
-
user: {
|
|
4540
|
-
id: string;
|
|
4541
|
-
email: string;
|
|
4542
|
-
emailVerified: boolean;
|
|
4543
|
-
name: string;
|
|
4544
|
-
image: string | null | undefined;
|
|
4545
|
-
createdAt: Date;
|
|
4546
|
-
updatedAt: Date;
|
|
4547
|
-
};
|
|
4548
|
-
}, {
|
|
4549
|
-
code?: string | undefined;
|
|
4550
|
-
message?: string | undefined;
|
|
4551
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4552
|
-
};
|
|
4553
|
-
} & {
|
|
4554
|
-
token: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4555
|
-
query?: Record<string, any> | undefined;
|
|
4556
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4557
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4558
|
-
token: string;
|
|
4559
|
-
}, {
|
|
4560
|
-
code?: string | undefined;
|
|
4561
|
-
message?: string | undefined;
|
|
4562
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4563
|
-
} & {
|
|
4564
|
-
apiKey: {
|
|
4565
|
-
create: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4566
|
-
name?: string | undefined;
|
|
4567
|
-
expiresIn?: number | null | undefined;
|
|
4568
|
-
userId?: unknown;
|
|
4569
|
-
prefix?: string | undefined;
|
|
4570
|
-
remaining?: number | null | undefined;
|
|
4571
|
-
metadata?: any;
|
|
4572
|
-
refillAmount?: number | undefined;
|
|
4573
|
-
refillInterval?: number | undefined;
|
|
4574
|
-
rateLimitTimeWindow?: number | undefined;
|
|
4575
|
-
rateLimitMax?: number | undefined;
|
|
4576
|
-
rateLimitEnabled?: boolean | undefined;
|
|
4577
|
-
permissions?: Record<string, string[]> | undefined;
|
|
4578
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4579
|
-
name?: string | undefined;
|
|
4580
|
-
expiresIn?: number | null | undefined;
|
|
4581
|
-
userId?: unknown;
|
|
4582
|
-
prefix?: string | undefined;
|
|
4583
|
-
remaining?: number | null | undefined;
|
|
4584
|
-
metadata?: any;
|
|
4585
|
-
refillAmount?: number | undefined;
|
|
4586
|
-
refillInterval?: number | undefined;
|
|
4587
|
-
rateLimitTimeWindow?: number | undefined;
|
|
4588
|
-
rateLimitMax?: number | undefined;
|
|
4589
|
-
rateLimitEnabled?: boolean | undefined;
|
|
4590
|
-
permissions?: Record<string, string[]> | undefined;
|
|
4591
|
-
} & {
|
|
4592
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4593
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4594
|
-
key: string;
|
|
4595
|
-
metadata: any;
|
|
4596
|
-
permissions: any;
|
|
4597
|
-
id: string;
|
|
4598
|
-
name: string | null;
|
|
4599
|
-
start: string | null;
|
|
4600
|
-
prefix: string | null;
|
|
4601
|
-
userId: string;
|
|
4602
|
-
refillInterval: number | null;
|
|
4603
|
-
refillAmount: number | null;
|
|
4604
|
-
lastRefillAt: Date | null;
|
|
4605
|
-
enabled: boolean;
|
|
4606
|
-
rateLimitEnabled: boolean;
|
|
4607
|
-
rateLimitTimeWindow: number | null;
|
|
4608
|
-
rateLimitMax: number | null;
|
|
4609
|
-
requestCount: number;
|
|
4610
|
-
remaining: number | null;
|
|
4611
|
-
lastRequest: Date | null;
|
|
4612
|
-
expiresAt: Date | null;
|
|
4613
|
-
createdAt: Date;
|
|
4614
|
-
updatedAt: Date;
|
|
4615
|
-
}, {
|
|
4616
|
-
code?: string | undefined;
|
|
4617
|
-
message?: string | undefined;
|
|
4618
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4619
|
-
};
|
|
4620
|
-
} & {
|
|
4621
|
-
apiKey: {
|
|
4622
|
-
get: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
4623
|
-
id: string;
|
|
4624
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4625
|
-
query: {
|
|
4626
|
-
id: string;
|
|
4627
|
-
};
|
|
4628
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4629
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4630
|
-
permissions: {
|
|
4631
|
-
[key: string]: string[];
|
|
4632
|
-
} | null;
|
|
4633
|
-
id: string;
|
|
4634
|
-
name: string | null;
|
|
4635
|
-
start: string | null;
|
|
4636
|
-
prefix: string | null;
|
|
4637
|
-
userId: string;
|
|
4638
|
-
refillInterval: number | null;
|
|
4639
|
-
refillAmount: number | null;
|
|
4640
|
-
lastRefillAt: Date | null;
|
|
4641
|
-
enabled: boolean;
|
|
4642
|
-
rateLimitEnabled: boolean;
|
|
4643
|
-
rateLimitTimeWindow: number | null;
|
|
4644
|
-
rateLimitMax: number | null;
|
|
4645
|
-
requestCount: number;
|
|
4646
|
-
remaining: number | null;
|
|
4647
|
-
lastRequest: Date | null;
|
|
4648
|
-
expiresAt: Date | null;
|
|
4649
|
-
createdAt: Date;
|
|
4650
|
-
updatedAt: Date;
|
|
4651
|
-
metadata: Record<string, any> | null;
|
|
4652
|
-
}, {
|
|
4653
|
-
code?: string | undefined;
|
|
4654
|
-
message?: string | undefined;
|
|
4655
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4656
|
-
};
|
|
4657
|
-
} & {
|
|
4658
|
-
apiKey: {
|
|
4659
|
-
update: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4660
|
-
keyId: string;
|
|
4661
|
-
userId?: unknown;
|
|
4662
|
-
name?: string | undefined;
|
|
4663
|
-
enabled?: boolean | undefined;
|
|
4664
|
-
remaining?: number | undefined;
|
|
4665
|
-
refillAmount?: number | undefined;
|
|
4666
|
-
refillInterval?: number | undefined;
|
|
4667
|
-
metadata?: any;
|
|
4668
|
-
expiresIn?: number | null | undefined;
|
|
4669
|
-
rateLimitEnabled?: boolean | undefined;
|
|
4670
|
-
rateLimitTimeWindow?: number | undefined;
|
|
4671
|
-
rateLimitMax?: number | undefined;
|
|
4672
|
-
permissions?: Record<string, string[]> | null | undefined;
|
|
4673
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4674
|
-
keyId: string;
|
|
4675
|
-
userId?: unknown;
|
|
4676
|
-
name?: string | undefined;
|
|
4677
|
-
enabled?: boolean | undefined;
|
|
4678
|
-
remaining?: number | undefined;
|
|
4679
|
-
refillAmount?: number | undefined;
|
|
4680
|
-
refillInterval?: number | undefined;
|
|
4681
|
-
metadata?: any;
|
|
4682
|
-
expiresIn?: number | null | undefined;
|
|
4683
|
-
rateLimitEnabled?: boolean | undefined;
|
|
4684
|
-
rateLimitTimeWindow?: number | undefined;
|
|
4685
|
-
rateLimitMax?: number | undefined;
|
|
4686
|
-
permissions?: Record<string, string[]> | null | undefined;
|
|
4687
|
-
} & {
|
|
4688
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4689
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4690
|
-
permissions: {
|
|
4691
|
-
[key: string]: string[];
|
|
4692
|
-
} | null;
|
|
4693
|
-
id: string;
|
|
4694
|
-
name: string | null;
|
|
4695
|
-
start: string | null;
|
|
4696
|
-
prefix: string | null;
|
|
4697
|
-
userId: string;
|
|
4698
|
-
refillInterval: number | null;
|
|
4699
|
-
refillAmount: number | null;
|
|
4700
|
-
lastRefillAt: Date | null;
|
|
4701
|
-
enabled: boolean;
|
|
4702
|
-
rateLimitEnabled: boolean;
|
|
4703
|
-
rateLimitTimeWindow: number | null;
|
|
4704
|
-
rateLimitMax: number | null;
|
|
4705
|
-
requestCount: number;
|
|
4706
|
-
remaining: number | null;
|
|
4707
|
-
lastRequest: Date | null;
|
|
4708
|
-
expiresAt: Date | null;
|
|
4709
|
-
createdAt: Date;
|
|
4710
|
-
updatedAt: Date;
|
|
4711
|
-
metadata: Record<string, any> | null;
|
|
4712
|
-
}, {
|
|
4713
|
-
code?: string | undefined;
|
|
4714
|
-
message?: string | undefined;
|
|
4715
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4716
|
-
};
|
|
4717
|
-
} & {
|
|
4718
|
-
apiKey: {
|
|
4719
|
-
delete: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4720
|
-
keyId: string;
|
|
4721
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4722
|
-
keyId: string;
|
|
4723
|
-
} & {
|
|
4724
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4725
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4726
|
-
success: boolean;
|
|
4727
|
-
}, {
|
|
4728
|
-
code?: string | undefined;
|
|
4729
|
-
message?: string | undefined;
|
|
4730
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4731
|
-
};
|
|
4732
|
-
} & {
|
|
4733
|
-
apiKey: {
|
|
4734
|
-
list: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4735
|
-
query?: Record<string, any> | undefined;
|
|
4736
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4737
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4738
|
-
permissions: {
|
|
4739
|
-
[key: string]: string[];
|
|
4740
|
-
} | null;
|
|
4741
|
-
id: string;
|
|
4742
|
-
name: string | null;
|
|
4743
|
-
start: string | null;
|
|
4744
|
-
prefix: string | null;
|
|
4745
|
-
userId: string;
|
|
4746
|
-
refillInterval: number | null;
|
|
4747
|
-
refillAmount: number | null;
|
|
4748
|
-
lastRefillAt: Date | null;
|
|
4749
|
-
enabled: boolean;
|
|
4750
|
-
rateLimitEnabled: boolean;
|
|
4751
|
-
rateLimitTimeWindow: number | null;
|
|
4752
|
-
rateLimitMax: number | null;
|
|
4753
|
-
requestCount: number;
|
|
4754
|
-
remaining: number | null;
|
|
4755
|
-
lastRequest: Date | null;
|
|
4756
|
-
expiresAt: Date | null;
|
|
4757
|
-
createdAt: Date;
|
|
4758
|
-
updatedAt: Date;
|
|
4759
|
-
metadata: Record<string, any> | null;
|
|
4760
|
-
}[], {
|
|
4761
|
-
code?: string | undefined;
|
|
4762
|
-
message?: string | undefined;
|
|
4763
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4764
|
-
};
|
|
4765
|
-
} & {
|
|
4766
|
-
admin: {
|
|
4767
|
-
setRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4768
|
-
userId: string;
|
|
4769
|
-
role: "user" | "admin" | ("user" | "admin")[];
|
|
4770
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4771
|
-
userId: string;
|
|
4772
|
-
role: "user" | "admin" | ("user" | "admin")[];
|
|
4773
|
-
} & {
|
|
4774
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4775
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4776
|
-
user: better_auth_plugins.UserWithRole;
|
|
4777
|
-
}, {
|
|
4778
|
-
code?: string | undefined;
|
|
4779
|
-
message?: string | undefined;
|
|
4780
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4781
|
-
};
|
|
4782
|
-
} & {
|
|
4783
|
-
admin: {
|
|
4784
|
-
getUser: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
4785
|
-
id: string;
|
|
4786
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4787
|
-
query: {
|
|
4788
|
-
id: string;
|
|
4789
|
-
};
|
|
4790
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4791
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4792
|
-
id: string;
|
|
4793
|
-
createdAt: Date;
|
|
4794
|
-
updatedAt: Date;
|
|
4795
|
-
email: string;
|
|
4796
|
-
emailVerified: boolean;
|
|
4797
|
-
name: string;
|
|
4798
|
-
image?: string | null | undefined;
|
|
4799
|
-
}, {
|
|
4800
|
-
code?: string | undefined;
|
|
4801
|
-
message?: string | undefined;
|
|
4802
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4803
|
-
};
|
|
4804
|
-
} & {
|
|
4805
|
-
admin: {
|
|
4806
|
-
createUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4807
|
-
email: string;
|
|
4808
|
-
password: string;
|
|
4809
|
-
name: string;
|
|
4810
|
-
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
4811
|
-
data?: Record<string, any> | undefined;
|
|
4812
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4813
|
-
email: string;
|
|
4814
|
-
password: string;
|
|
4815
|
-
name: string;
|
|
4816
|
-
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
4817
|
-
data?: Record<string, any> | undefined;
|
|
4818
|
-
} & {
|
|
4819
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4820
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4821
|
-
user: better_auth_plugins.UserWithRole;
|
|
4822
|
-
}, {
|
|
4823
|
-
code?: string | undefined;
|
|
4824
|
-
message?: string | undefined;
|
|
4825
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4826
|
-
};
|
|
4827
|
-
} & {
|
|
4828
|
-
admin: {
|
|
4829
|
-
updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4830
|
-
userId: unknown;
|
|
4831
|
-
data: Record<any, any>;
|
|
4832
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4833
|
-
userId: unknown;
|
|
4834
|
-
data: Record<any, any>;
|
|
4835
|
-
} & {
|
|
4836
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4837
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth_plugins.UserWithRole, {
|
|
4838
|
-
code?: string | undefined;
|
|
4839
|
-
message?: string | undefined;
|
|
4840
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4841
|
-
};
|
|
4842
|
-
} & {
|
|
4843
|
-
admin: {
|
|
4844
|
-
listUsers: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
4845
|
-
searchValue?: string | undefined;
|
|
4846
|
-
searchField?: "name" | "email" | undefined;
|
|
4847
|
-
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
4848
|
-
limit?: string | number | undefined;
|
|
4849
|
-
offset?: string | number | undefined;
|
|
4850
|
-
sortBy?: string | undefined;
|
|
4851
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
4852
|
-
filterField?: string | undefined;
|
|
4853
|
-
filterValue?: string | number | boolean | undefined;
|
|
4854
|
-
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
4855
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4856
|
-
query: {
|
|
4857
|
-
searchValue?: string | undefined;
|
|
4858
|
-
searchField?: "name" | "email" | undefined;
|
|
4859
|
-
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
4860
|
-
limit?: string | number | undefined;
|
|
4861
|
-
offset?: string | number | undefined;
|
|
4862
|
-
sortBy?: string | undefined;
|
|
4863
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
4864
|
-
filterField?: string | undefined;
|
|
4865
|
-
filterValue?: string | number | boolean | undefined;
|
|
4866
|
-
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
4867
|
-
};
|
|
4868
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4869
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
|
|
4870
|
-
users: better_auth_plugins.UserWithRole[];
|
|
4871
|
-
total: number;
|
|
4872
|
-
limit: number | undefined;
|
|
4873
|
-
offset: number | undefined;
|
|
4874
|
-
} | {
|
|
4875
|
-
users: never[];
|
|
4876
|
-
total: number;
|
|
4877
|
-
}>, {
|
|
4878
|
-
code?: string | undefined;
|
|
4879
|
-
message?: string | undefined;
|
|
4880
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4881
|
-
};
|
|
4882
|
-
} & {
|
|
4883
|
-
admin: {
|
|
4884
|
-
listUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4885
|
-
userId: unknown;
|
|
4886
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4887
|
-
userId: unknown;
|
|
4888
|
-
} & {
|
|
4889
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4890
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4891
|
-
sessions: better_auth_plugins.SessionWithImpersonatedBy[];
|
|
4892
|
-
}, {
|
|
4893
|
-
code?: string | undefined;
|
|
4894
|
-
message?: string | undefined;
|
|
4895
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4896
|
-
};
|
|
4897
|
-
} & {
|
|
4898
|
-
admin: {
|
|
4899
|
-
unbanUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4900
|
-
userId: unknown;
|
|
4901
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4902
|
-
userId: unknown;
|
|
4903
|
-
} & {
|
|
4904
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4905
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4906
|
-
user: {
|
|
4907
|
-
id: string;
|
|
4908
|
-
createdAt: Date;
|
|
4909
|
-
updatedAt: Date;
|
|
4910
|
-
email: string;
|
|
4911
|
-
emailVerified: boolean;
|
|
4912
|
-
name: string;
|
|
4913
|
-
image?: string | null | undefined;
|
|
4914
|
-
} & Record<string, any>;
|
|
4915
|
-
}, {
|
|
4916
|
-
code?: string | undefined;
|
|
4917
|
-
message?: string | undefined;
|
|
4918
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4919
|
-
};
|
|
4920
|
-
} & {
|
|
4921
|
-
admin: {
|
|
4922
|
-
banUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4923
|
-
userId: unknown;
|
|
4924
|
-
banReason?: string | undefined;
|
|
4925
|
-
banExpiresIn?: number | undefined;
|
|
4926
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4927
|
-
userId: unknown;
|
|
4928
|
-
banReason?: string | undefined;
|
|
4929
|
-
banExpiresIn?: number | undefined;
|
|
4930
|
-
} & {
|
|
4931
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4932
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4933
|
-
user: {
|
|
4934
|
-
id: string;
|
|
4935
|
-
createdAt: Date;
|
|
4936
|
-
updatedAt: Date;
|
|
4937
|
-
email: string;
|
|
4938
|
-
emailVerified: boolean;
|
|
4939
|
-
name: string;
|
|
4940
|
-
image?: string | null | undefined;
|
|
4941
|
-
} & Record<string, any>;
|
|
4942
|
-
}, {
|
|
4943
|
-
code?: string | undefined;
|
|
4944
|
-
message?: string | undefined;
|
|
4945
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4946
|
-
};
|
|
4947
|
-
} & {
|
|
4948
|
-
admin: {
|
|
4949
|
-
impersonateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4950
|
-
userId: unknown;
|
|
4951
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4952
|
-
userId: unknown;
|
|
4953
|
-
} & {
|
|
4954
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4955
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4956
|
-
session: {
|
|
4957
|
-
id: string;
|
|
4958
|
-
createdAt: Date;
|
|
4959
|
-
updatedAt: Date;
|
|
4960
|
-
userId: string;
|
|
4961
|
-
expiresAt: Date;
|
|
4962
|
-
token: string;
|
|
4963
|
-
ipAddress?: string | null | undefined;
|
|
4964
|
-
userAgent?: string | null | undefined;
|
|
4965
|
-
};
|
|
4966
|
-
user: better_auth_plugins.UserWithRole;
|
|
4967
|
-
}, {
|
|
4968
|
-
code?: string | undefined;
|
|
4969
|
-
message?: string | undefined;
|
|
4970
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4971
|
-
};
|
|
4972
|
-
} & {
|
|
4973
|
-
admin: {
|
|
4974
|
-
stopImpersonating: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
4975
|
-
query?: Record<string, any> | undefined;
|
|
4976
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4977
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4978
|
-
session: better_auth.Session & Record<string, any>;
|
|
4979
|
-
user: better_auth.User & Record<string, any>;
|
|
4980
|
-
}, {
|
|
4981
|
-
code?: string | undefined;
|
|
4982
|
-
message?: string | undefined;
|
|
4983
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4984
|
-
};
|
|
4985
|
-
} & {
|
|
4986
|
-
admin: {
|
|
4987
|
-
revokeUserSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
4988
|
-
sessionToken: string;
|
|
4989
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
4990
|
-
sessionToken: string;
|
|
4991
|
-
} & {
|
|
4992
|
-
fetchOptions?: FetchOptions | undefined;
|
|
4993
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
4994
|
-
success: boolean;
|
|
4995
|
-
}, {
|
|
4996
|
-
code?: string | undefined;
|
|
4997
|
-
message?: string | undefined;
|
|
4998
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
4999
|
-
};
|
|
5000
|
-
} & {
|
|
5001
|
-
admin: {
|
|
5002
|
-
revokeUserSessions: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5003
|
-
userId: unknown;
|
|
5004
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5005
|
-
userId: unknown;
|
|
5006
|
-
} & {
|
|
5007
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5008
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5009
|
-
success: boolean;
|
|
5010
|
-
}, {
|
|
5011
|
-
code?: string | undefined;
|
|
5012
|
-
message?: string | undefined;
|
|
5013
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5014
|
-
};
|
|
5015
|
-
} & {
|
|
5016
|
-
admin: {
|
|
5017
|
-
removeUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5018
|
-
userId: unknown;
|
|
5019
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5020
|
-
userId: unknown;
|
|
5021
|
-
} & {
|
|
5022
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5023
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5024
|
-
success: boolean;
|
|
5025
|
-
}, {
|
|
5026
|
-
code?: string | undefined;
|
|
5027
|
-
message?: string | undefined;
|
|
5028
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5029
|
-
};
|
|
5030
|
-
} & {
|
|
5031
|
-
admin: {
|
|
5032
|
-
setUserPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5033
|
-
newPassword: string;
|
|
5034
|
-
userId: unknown;
|
|
5035
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5036
|
-
newPassword: string;
|
|
5037
|
-
userId: unknown;
|
|
5038
|
-
} & {
|
|
5039
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5040
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5041
|
-
status: boolean;
|
|
5042
|
-
}, {
|
|
5043
|
-
code?: string | undefined;
|
|
5044
|
-
message?: string | undefined;
|
|
5045
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5046
|
-
};
|
|
5047
|
-
} & {
|
|
5048
|
-
admin: {
|
|
5049
|
-
hasPermission: <FetchOptions extends better_auth.ClientFetchOption<Partial<({
|
|
5050
|
-
permission: {
|
|
5051
|
-
readonly user?: ("update" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "get")[] | undefined;
|
|
5052
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
5053
|
-
};
|
|
5054
|
-
permissions?: never | undefined;
|
|
5055
|
-
} | {
|
|
5056
|
-
permissions: {
|
|
5057
|
-
readonly user?: ("update" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "get")[] | undefined;
|
|
5058
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
5059
|
-
};
|
|
5060
|
-
permission?: never | undefined;
|
|
5061
|
-
}) & {
|
|
5062
|
-
userId?: string | undefined;
|
|
5063
|
-
role?: "admin" | "user" | undefined;
|
|
5064
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<(({
|
|
5065
|
-
permission: {
|
|
5066
|
-
readonly user?: ("update" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "get")[] | undefined;
|
|
5067
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
5068
|
-
};
|
|
5069
|
-
permissions?: never | undefined;
|
|
5070
|
-
} | {
|
|
5071
|
-
permissions: {
|
|
5072
|
-
readonly user?: ("update" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "get")[] | undefined;
|
|
5073
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
5074
|
-
};
|
|
5075
|
-
permission?: never | undefined;
|
|
5076
|
-
}) & {
|
|
5077
|
-
userId?: string | undefined;
|
|
5078
|
-
role?: "admin" | "user" | undefined;
|
|
5079
|
-
}) & {
|
|
5080
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5081
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5082
|
-
error: null;
|
|
5083
|
-
success: boolean;
|
|
5084
|
-
}, {
|
|
5085
|
-
code?: string | undefined;
|
|
5086
|
-
message?: string | undefined;
|
|
5087
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5088
|
-
};
|
|
5089
|
-
} & {
|
|
5090
|
-
signIn: {
|
|
5091
|
-
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5092
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
5093
|
-
callbackURL?: string | undefined;
|
|
5094
|
-
newUserCallbackURL?: string | undefined;
|
|
5095
|
-
errorCallbackURL?: string | undefined;
|
|
5096
|
-
disableRedirect?: boolean | undefined;
|
|
5097
|
-
idToken?: {
|
|
5098
|
-
token: string;
|
|
5099
|
-
nonce?: string | undefined;
|
|
5100
|
-
accessToken?: string | undefined;
|
|
5101
|
-
refreshToken?: string | undefined;
|
|
5102
|
-
expiresAt?: number | undefined;
|
|
5103
|
-
} | undefined;
|
|
5104
|
-
scopes?: string[] | undefined;
|
|
5105
|
-
requestSignUp?: boolean | undefined;
|
|
5106
|
-
loginHint?: string | undefined;
|
|
5107
|
-
additionalData?: Record<string, any> | undefined;
|
|
5108
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5109
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
5110
|
-
callbackURL?: string | undefined;
|
|
5111
|
-
newUserCallbackURL?: string | undefined;
|
|
5112
|
-
errorCallbackURL?: string | undefined;
|
|
5113
|
-
disableRedirect?: boolean | undefined;
|
|
5114
|
-
idToken?: {
|
|
5115
|
-
token: string;
|
|
5116
|
-
nonce?: string | undefined;
|
|
5117
|
-
accessToken?: string | undefined;
|
|
5118
|
-
refreshToken?: string | undefined;
|
|
5119
|
-
expiresAt?: number | undefined;
|
|
5120
|
-
} | undefined;
|
|
5121
|
-
scopes?: string[] | undefined;
|
|
5122
|
-
requestSignUp?: boolean | undefined;
|
|
5123
|
-
loginHint?: string | undefined;
|
|
5124
|
-
additionalData?: Record<string, any> | undefined;
|
|
5125
|
-
} & {
|
|
5126
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5127
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
|
|
5128
|
-
redirect: boolean;
|
|
5129
|
-
url: string;
|
|
5130
|
-
} | {
|
|
5131
|
-
redirect: boolean;
|
|
5132
|
-
token: string;
|
|
5133
|
-
url: undefined;
|
|
5134
|
-
user: {
|
|
5135
|
-
id: string;
|
|
5136
|
-
createdAt: Date;
|
|
5137
|
-
updatedAt: Date;
|
|
5138
|
-
email: string;
|
|
5139
|
-
emailVerified: boolean;
|
|
5140
|
-
name: string;
|
|
5141
|
-
image?: string | null | undefined | undefined;
|
|
5142
|
-
};
|
|
5143
|
-
}>, {
|
|
5144
|
-
code?: string | undefined;
|
|
5145
|
-
message?: string | undefined;
|
|
5146
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5147
|
-
};
|
|
5148
|
-
} & {
|
|
5149
|
-
signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5150
|
-
query?: Record<string, any> | undefined;
|
|
5151
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5152
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5153
|
-
success: boolean;
|
|
5154
|
-
}, {
|
|
5155
|
-
code?: string | undefined;
|
|
5156
|
-
message?: string | undefined;
|
|
5157
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5158
|
-
} & {
|
|
5159
|
-
signUp: {
|
|
5160
|
-
email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5161
|
-
name: string;
|
|
5162
|
-
email: string;
|
|
5163
|
-
password: string;
|
|
5164
|
-
image?: string | undefined;
|
|
5165
|
-
callbackURL?: string | undefined;
|
|
5166
|
-
rememberMe?: boolean | undefined;
|
|
5167
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5168
|
-
email: string;
|
|
5169
|
-
name: string;
|
|
5170
|
-
password: string;
|
|
5171
|
-
image?: string | undefined;
|
|
5172
|
-
callbackURL?: string | undefined;
|
|
5173
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5174
|
-
} & {} & {} & {} & {} & {} & {
|
|
5175
|
-
lastActiveAt?: Date | null | undefined;
|
|
5176
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
|
|
5177
|
-
token: null;
|
|
5178
|
-
user: {
|
|
5179
|
-
id: string;
|
|
5180
|
-
createdAt: Date;
|
|
5181
|
-
updatedAt: Date;
|
|
5182
|
-
email: string;
|
|
5183
|
-
emailVerified: boolean;
|
|
5184
|
-
name: string;
|
|
5185
|
-
image?: string | null | undefined | undefined;
|
|
5186
|
-
};
|
|
5187
|
-
} | {
|
|
5188
|
-
token: string;
|
|
5189
|
-
user: {
|
|
5190
|
-
id: string;
|
|
5191
|
-
createdAt: Date;
|
|
5192
|
-
updatedAt: Date;
|
|
5193
|
-
email: string;
|
|
5194
|
-
emailVerified: boolean;
|
|
5195
|
-
name: string;
|
|
5196
|
-
image?: string | null | undefined | undefined;
|
|
5197
|
-
};
|
|
5198
|
-
}>, {
|
|
5199
|
-
code?: string | undefined;
|
|
5200
|
-
message?: string | undefined;
|
|
5201
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5202
|
-
};
|
|
5203
|
-
} & {
|
|
5204
|
-
signIn: {
|
|
5205
|
-
email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5206
|
-
email: string;
|
|
5207
|
-
password: string;
|
|
5208
|
-
callbackURL?: string | undefined;
|
|
5209
|
-
rememberMe?: boolean | undefined;
|
|
5210
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5211
|
-
email: string;
|
|
5212
|
-
password: string;
|
|
5213
|
-
callbackURL?: string | undefined;
|
|
5214
|
-
rememberMe?: boolean | undefined;
|
|
5215
|
-
} & {
|
|
5216
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5217
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5218
|
-
redirect: boolean;
|
|
5219
|
-
token: string;
|
|
5220
|
-
url?: string | undefined;
|
|
5221
|
-
user: {
|
|
5222
|
-
id: string;
|
|
5223
|
-
createdAt: Date;
|
|
5224
|
-
updatedAt: Date;
|
|
5225
|
-
email: string;
|
|
5226
|
-
emailVerified: boolean;
|
|
5227
|
-
name: string;
|
|
5228
|
-
image?: string | null | undefined | undefined;
|
|
5229
|
-
};
|
|
5230
|
-
}, {
|
|
5231
|
-
code?: string | undefined;
|
|
5232
|
-
message?: string | undefined;
|
|
5233
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5234
|
-
};
|
|
5235
|
-
} & {
|
|
5236
|
-
resetPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5237
|
-
newPassword: string;
|
|
5238
|
-
token?: string | undefined;
|
|
5239
|
-
}> & Record<string, any>, Partial<{
|
|
5240
|
-
token?: string | undefined;
|
|
5241
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5242
|
-
newPassword: string;
|
|
5243
|
-
token?: string | undefined;
|
|
5244
|
-
} & {
|
|
5245
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5246
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5247
|
-
status: boolean;
|
|
5248
|
-
}, {
|
|
5249
|
-
code?: string | undefined;
|
|
5250
|
-
message?: string | undefined;
|
|
5251
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5252
|
-
} & {
|
|
5253
|
-
verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
5254
|
-
token: string;
|
|
5255
|
-
callbackURL?: string | undefined;
|
|
5256
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5257
|
-
query: {
|
|
5258
|
-
token: string;
|
|
5259
|
-
callbackURL?: string | undefined;
|
|
5260
|
-
};
|
|
5261
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5262
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<void | {
|
|
5263
|
-
status: boolean;
|
|
5264
|
-
}>, {
|
|
5265
|
-
code?: string | undefined;
|
|
5266
|
-
message?: string | undefined;
|
|
5267
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5268
|
-
} & {
|
|
5269
|
-
sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5270
|
-
email: string;
|
|
5271
|
-
callbackURL?: string | undefined;
|
|
5272
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5273
|
-
email: string;
|
|
5274
|
-
callbackURL?: string | undefined;
|
|
5275
|
-
} & {
|
|
5276
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5277
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5278
|
-
status: boolean;
|
|
5279
|
-
}, {
|
|
5280
|
-
code?: string | undefined;
|
|
5281
|
-
message?: string | undefined;
|
|
5282
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5283
|
-
} & {
|
|
5284
|
-
changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5285
|
-
newEmail: string;
|
|
5286
|
-
callbackURL?: string | undefined;
|
|
5287
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5288
|
-
newEmail: string;
|
|
5289
|
-
callbackURL?: string | undefined;
|
|
5290
|
-
} & {
|
|
5291
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5292
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5293
|
-
status: boolean;
|
|
5294
|
-
}, {
|
|
5295
|
-
code?: string | undefined;
|
|
5296
|
-
message?: string | undefined;
|
|
5297
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5298
|
-
} & {
|
|
5299
|
-
changePassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5300
|
-
newPassword: string;
|
|
5301
|
-
currentPassword: string;
|
|
5302
|
-
revokeOtherSessions?: boolean | undefined;
|
|
5303
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5304
|
-
newPassword: string;
|
|
5305
|
-
currentPassword: string;
|
|
5306
|
-
revokeOtherSessions?: boolean | undefined;
|
|
5307
|
-
} & {
|
|
5308
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5309
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5310
|
-
token: string | null;
|
|
5311
|
-
user: {
|
|
5312
|
-
id: string;
|
|
5313
|
-
email: string;
|
|
5314
|
-
name: string;
|
|
5315
|
-
image: string | null | undefined;
|
|
5316
|
-
emailVerified: boolean;
|
|
5317
|
-
createdAt: Date;
|
|
5318
|
-
updatedAt: Date;
|
|
5319
|
-
};
|
|
5320
|
-
}, {
|
|
5321
|
-
code?: string | undefined;
|
|
5322
|
-
message?: string | undefined;
|
|
5323
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5324
|
-
} & {
|
|
5325
|
-
updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
|
|
5326
|
-
name?: string | undefined;
|
|
5327
|
-
image?: string | undefined | null;
|
|
5328
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5329
|
-
image?: (string | null) | undefined;
|
|
5330
|
-
name?: string | undefined;
|
|
5331
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5332
|
-
} & Partial<{} & {} & {} & {} & {} & {
|
|
5333
|
-
lastActiveAt?: Date | null | undefined;
|
|
5334
|
-
}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5335
|
-
status: boolean;
|
|
5336
|
-
}, {
|
|
5337
|
-
code?: string | undefined;
|
|
5338
|
-
message?: string | undefined;
|
|
5339
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5340
|
-
} & {
|
|
5341
|
-
deleteUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5342
|
-
callbackURL?: string | undefined;
|
|
5343
|
-
password?: string | undefined;
|
|
5344
|
-
token?: string | undefined;
|
|
5345
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5346
|
-
callbackURL?: string | undefined;
|
|
5347
|
-
password?: string | undefined;
|
|
5348
|
-
token?: string | undefined;
|
|
5349
|
-
} & {
|
|
5350
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5351
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5352
|
-
success: boolean;
|
|
5353
|
-
message: string;
|
|
5354
|
-
}, {
|
|
5355
|
-
code?: string | undefined;
|
|
5356
|
-
message?: string | undefined;
|
|
5357
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5358
|
-
} & {
|
|
5359
|
-
requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5360
|
-
email: string;
|
|
5361
|
-
redirectTo?: string | undefined;
|
|
5362
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5363
|
-
email: string;
|
|
5364
|
-
redirectTo?: string | undefined;
|
|
5365
|
-
} & {
|
|
5366
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5367
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5368
|
-
status: boolean;
|
|
5369
|
-
message: string;
|
|
5370
|
-
}, {
|
|
5371
|
-
code?: string | undefined;
|
|
5372
|
-
message?: string | undefined;
|
|
5373
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5374
|
-
} & {
|
|
5375
|
-
resetPassword: {
|
|
5376
|
-
":token": <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
5377
|
-
callbackURL: string;
|
|
5378
|
-
}> & Record<string, any>, {
|
|
5379
|
-
token: string;
|
|
5380
|
-
}>>(data_0: better_auth.Prettify<{
|
|
5381
|
-
query: {
|
|
5382
|
-
callbackURL: string;
|
|
5383
|
-
};
|
|
5384
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5385
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
|
|
5386
|
-
code?: string | undefined;
|
|
5387
|
-
message?: string | undefined;
|
|
5388
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5389
|
-
};
|
|
5390
|
-
} & {
|
|
5391
|
-
listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5392
|
-
query?: Record<string, any> | undefined;
|
|
5393
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5394
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth.Prettify<{
|
|
5395
|
-
id: string;
|
|
5396
|
-
createdAt: Date;
|
|
5397
|
-
updatedAt: Date;
|
|
5398
|
-
userId: string;
|
|
5399
|
-
expiresAt: Date;
|
|
5400
|
-
token: string;
|
|
5401
|
-
ipAddress?: string | null | undefined | undefined;
|
|
5402
|
-
userAgent?: string | null | undefined | undefined;
|
|
5403
|
-
}>[], {
|
|
5404
|
-
code?: string | undefined;
|
|
5405
|
-
message?: string | undefined;
|
|
5406
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5407
|
-
} & {
|
|
5408
|
-
revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5409
|
-
token: string;
|
|
5410
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5411
|
-
token: string;
|
|
5412
|
-
} & {
|
|
5413
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5414
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5415
|
-
status: boolean;
|
|
5416
|
-
}, {
|
|
5417
|
-
code?: string | undefined;
|
|
5418
|
-
message?: string | undefined;
|
|
5419
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5420
|
-
} & {
|
|
5421
|
-
revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5422
|
-
query?: Record<string, any> | undefined;
|
|
5423
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5424
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5425
|
-
status: boolean;
|
|
5426
|
-
}, {
|
|
5427
|
-
code?: string | undefined;
|
|
5428
|
-
message?: string | undefined;
|
|
5429
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5430
|
-
} & {
|
|
5431
|
-
revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5432
|
-
query?: Record<string, any> | undefined;
|
|
5433
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5434
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5435
|
-
status: boolean;
|
|
5436
|
-
}, {
|
|
5437
|
-
code?: string | undefined;
|
|
5438
|
-
message?: string | undefined;
|
|
5439
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5440
|
-
} & {
|
|
5441
|
-
linkSocial: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5442
|
-
provider: unknown;
|
|
5443
|
-
callbackURL?: string | undefined;
|
|
5444
|
-
idToken?: {
|
|
5445
|
-
token: string;
|
|
5446
|
-
nonce?: string | undefined;
|
|
5447
|
-
accessToken?: string | undefined;
|
|
5448
|
-
refreshToken?: string | undefined;
|
|
5449
|
-
scopes?: string[] | undefined;
|
|
5450
|
-
} | undefined;
|
|
5451
|
-
requestSignUp?: boolean | undefined;
|
|
5452
|
-
scopes?: string[] | undefined;
|
|
5453
|
-
errorCallbackURL?: string | undefined;
|
|
5454
|
-
disableRedirect?: boolean | undefined;
|
|
5455
|
-
additionalData?: Record<string, any> | undefined;
|
|
5456
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5457
|
-
provider: unknown;
|
|
5458
|
-
callbackURL?: string | undefined;
|
|
5459
|
-
idToken?: {
|
|
5460
|
-
token: string;
|
|
5461
|
-
nonce?: string | undefined;
|
|
5462
|
-
accessToken?: string | undefined;
|
|
5463
|
-
refreshToken?: string | undefined;
|
|
5464
|
-
scopes?: string[] | undefined;
|
|
5465
|
-
} | undefined;
|
|
5466
|
-
requestSignUp?: boolean | undefined;
|
|
5467
|
-
scopes?: string[] | undefined;
|
|
5468
|
-
errorCallbackURL?: string | undefined;
|
|
5469
|
-
disableRedirect?: boolean | undefined;
|
|
5470
|
-
additionalData?: Record<string, any> | undefined;
|
|
5471
|
-
} & {
|
|
5472
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5473
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5474
|
-
url: string;
|
|
5475
|
-
redirect: boolean;
|
|
5476
|
-
}, {
|
|
5477
|
-
code?: string | undefined;
|
|
5478
|
-
message?: string | undefined;
|
|
5479
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5480
|
-
} & {
|
|
5481
|
-
listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5482
|
-
query?: Record<string, any> | undefined;
|
|
5483
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5484
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5485
|
-
id: string;
|
|
5486
|
-
providerId: string;
|
|
5487
|
-
createdAt: Date;
|
|
5488
|
-
updatedAt: Date;
|
|
5489
|
-
accountId: string;
|
|
5490
|
-
userId: string;
|
|
5491
|
-
scopes: string[];
|
|
5492
|
-
}[], {
|
|
5493
|
-
code?: string | undefined;
|
|
5494
|
-
message?: string | undefined;
|
|
5495
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5496
|
-
} & {
|
|
5497
|
-
deleteUser: {
|
|
5498
|
-
callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
5499
|
-
token: string;
|
|
5500
|
-
callbackURL?: string | undefined;
|
|
5501
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5502
|
-
query: {
|
|
5503
|
-
token: string;
|
|
5504
|
-
callbackURL?: string | undefined;
|
|
5505
|
-
};
|
|
5506
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5507
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5508
|
-
success: boolean;
|
|
5509
|
-
message: string;
|
|
5510
|
-
}, {
|
|
5511
|
-
code?: string | undefined;
|
|
5512
|
-
message?: string | undefined;
|
|
5513
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5514
|
-
};
|
|
5515
|
-
} & {
|
|
5516
|
-
unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5517
|
-
providerId: string;
|
|
5518
|
-
accountId?: string | undefined;
|
|
5519
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5520
|
-
providerId: string;
|
|
5521
|
-
accountId?: string | undefined;
|
|
5522
|
-
} & {
|
|
5523
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5524
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5525
|
-
status: boolean;
|
|
5526
|
-
}, {
|
|
5527
|
-
code?: string | undefined;
|
|
5528
|
-
message?: string | undefined;
|
|
5529
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5530
|
-
} & {
|
|
5531
|
-
refreshToken: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5532
|
-
providerId: string;
|
|
5533
|
-
accountId?: string | undefined;
|
|
5534
|
-
userId?: string | undefined;
|
|
5535
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5536
|
-
providerId: string;
|
|
5537
|
-
accountId?: string | undefined;
|
|
5538
|
-
userId?: string | undefined;
|
|
5539
|
-
} & {
|
|
5540
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5541
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5542
|
-
accessToken: string | undefined;
|
|
5543
|
-
refreshToken: string | undefined;
|
|
5544
|
-
accessTokenExpiresAt: Date | undefined;
|
|
5545
|
-
refreshTokenExpiresAt: Date | undefined;
|
|
5546
|
-
scope: string | null | undefined;
|
|
5547
|
-
idToken: string | null | undefined;
|
|
5548
|
-
providerId: string;
|
|
5549
|
-
accountId: string;
|
|
5550
|
-
}, {
|
|
5551
|
-
code?: string | undefined;
|
|
5552
|
-
message?: string | undefined;
|
|
5553
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5554
|
-
} & {
|
|
5555
|
-
getAccessToken: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
5556
|
-
providerId: string;
|
|
5557
|
-
accountId?: string | undefined;
|
|
5558
|
-
userId?: string | undefined;
|
|
5559
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
5560
|
-
providerId: string;
|
|
5561
|
-
accountId?: string | undefined;
|
|
5562
|
-
userId?: string | undefined;
|
|
5563
|
-
} & {
|
|
5564
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5565
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5566
|
-
accessToken: string;
|
|
5567
|
-
accessTokenExpiresAt: Date | undefined;
|
|
5568
|
-
scopes: string[];
|
|
5569
|
-
idToken: string | undefined;
|
|
5570
|
-
}, {
|
|
5571
|
-
code?: string | undefined;
|
|
5572
|
-
message?: string | undefined;
|
|
5573
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5574
|
-
} & {
|
|
5575
|
-
accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
5576
|
-
accountId?: string | undefined;
|
|
5577
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5578
|
-
query?: {
|
|
5579
|
-
accountId?: string | undefined;
|
|
5580
|
-
} | undefined;
|
|
5581
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5582
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5583
|
-
user: better_auth.OAuth2UserInfo;
|
|
5584
|
-
data: Record<string, any>;
|
|
5585
|
-
}, {
|
|
5586
|
-
code?: string | undefined;
|
|
5587
|
-
message?: string | undefined;
|
|
5588
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5589
|
-
} & {
|
|
5590
|
-
getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
|
|
5591
|
-
disableCookieCache?: unknown;
|
|
5592
|
-
disableRefresh?: unknown;
|
|
5593
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
5594
|
-
query?: {
|
|
5595
|
-
disableCookieCache?: unknown;
|
|
5596
|
-
disableRefresh?: unknown;
|
|
5597
|
-
} | undefined;
|
|
5598
|
-
fetchOptions?: FetchOptions | undefined;
|
|
5599
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
5600
|
-
user: {
|
|
5601
|
-
id: string;
|
|
5602
|
-
createdAt: Date;
|
|
5603
|
-
updatedAt: Date;
|
|
5604
|
-
email: string;
|
|
5605
|
-
emailVerified: boolean;
|
|
5606
|
-
name: string;
|
|
5607
|
-
image?: string | null | undefined;
|
|
5608
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
5609
|
-
banned: boolean | null | undefined;
|
|
5610
|
-
role?: string | null | undefined;
|
|
5611
|
-
banReason?: string | null | undefined;
|
|
5612
|
-
banExpires?: Date | null | undefined;
|
|
5613
|
-
lastActiveAt?: Date | null | undefined;
|
|
5614
|
-
};
|
|
5615
|
-
session: {
|
|
5616
|
-
id: string;
|
|
5617
|
-
createdAt: Date;
|
|
5618
|
-
updatedAt: Date;
|
|
5619
|
-
userId: string;
|
|
5620
|
-
expiresAt: Date;
|
|
5621
|
-
token: string;
|
|
5622
|
-
ipAddress?: string | null | undefined;
|
|
5623
|
-
userAgent?: string | null | undefined;
|
|
5624
|
-
activeOrganizationId?: string | null | undefined;
|
|
5625
|
-
activeTeamId?: string | null | undefined;
|
|
5626
|
-
impersonatedBy?: string | null | undefined;
|
|
5627
|
-
};
|
|
5628
|
-
} | null, {
|
|
5629
|
-
code?: string | undefined;
|
|
5630
|
-
message?: string | undefined;
|
|
5631
|
-
}, FetchOptions["throw"] extends true ? true : true>>;
|
|
5632
|
-
} & {
|
|
5633
|
-
applications: {
|
|
5634
|
-
listCandidateOrganizations: (applicationId: string) => Promise<{
|
|
5635
|
-
data: {
|
|
5636
|
-
organizations: ExtendedOrganization[];
|
|
5637
|
-
application?: Application | undefined;
|
|
5638
|
-
};
|
|
5639
|
-
error: null;
|
|
5640
|
-
} | {
|
|
5641
|
-
data: {
|
|
5642
|
-
organizations: ExtendedOrganization[];
|
|
5643
|
-
application?: Application | undefined;
|
|
5644
|
-
};
|
|
5645
|
-
error: {
|
|
5646
|
-
message?: string | undefined;
|
|
5647
|
-
status: number;
|
|
5648
|
-
statusText: string;
|
|
5649
|
-
};
|
|
5650
|
-
}>;
|
|
5651
|
-
startAuthorizationFlow: (applicationId: string, redirectUri: string, codeChallenge: string, organizationId: string) => Promise<{
|
|
5652
|
-
data: null;
|
|
5653
|
-
error: {
|
|
5654
|
-
message?: string | undefined;
|
|
5655
|
-
status: number;
|
|
5656
|
-
statusText: string;
|
|
5657
|
-
};
|
|
5658
|
-
} | {
|
|
5659
|
-
data: StartAuthorizationFlowResponse;
|
|
5660
|
-
error: null;
|
|
5661
|
-
}>;
|
|
5662
|
-
completeAuthorizationFlow: (code: string, codeVerifier: string) => Promise<{
|
|
5663
|
-
data: null;
|
|
5664
|
-
error: {
|
|
5665
|
-
message?: string | undefined;
|
|
5666
|
-
status: number;
|
|
5667
|
-
statusText: string;
|
|
5668
|
-
};
|
|
5669
|
-
} | {
|
|
5670
|
-
data: CompleteAuthorizationFlowResponse;
|
|
5671
|
-
error: null;
|
|
5672
|
-
}>;
|
|
5673
|
-
refreshAccessToken: (refreshToken: string) => Promise<{
|
|
5674
|
-
data: null;
|
|
5675
|
-
error: {
|
|
5676
|
-
message?: string | undefined;
|
|
5677
|
-
status: number;
|
|
5678
|
-
statusText: string;
|
|
5679
|
-
};
|
|
5680
|
-
} | {
|
|
5681
|
-
data: CompleteAuthorizationFlowResponse;
|
|
5682
|
-
error: null;
|
|
5683
|
-
}>;
|
|
5684
|
-
whoAmI: (accessToken: string) => Promise<{
|
|
5685
|
-
data: null;
|
|
5686
|
-
error: {
|
|
5687
|
-
message?: string | undefined;
|
|
5688
|
-
status: number;
|
|
5689
|
-
statusText: string;
|
|
5690
|
-
};
|
|
5691
|
-
} | {
|
|
5692
|
-
data: WhoAmIResponse;
|
|
5693
|
-
error: null;
|
|
5694
|
-
}>;
|
|
5695
|
-
switchOrganization: (organizationId: string, accessToken: string) => Promise<{
|
|
5696
|
-
data: null;
|
|
5697
|
-
error: {
|
|
5698
|
-
message?: string | undefined;
|
|
5699
|
-
status: number;
|
|
5700
|
-
statusText: string;
|
|
5701
|
-
};
|
|
5702
|
-
} | {
|
|
5703
|
-
data: CompleteAuthorizationFlowResponse;
|
|
5704
|
-
error: null;
|
|
5705
|
-
}>;
|
|
5706
|
-
};
|
|
5707
|
-
} & {
|
|
5708
|
-
$Infer: {
|
|
5709
|
-
ActiveOrganization: {
|
|
5710
|
-
members: {
|
|
5711
|
-
id: string;
|
|
5712
|
-
organizationId: string;
|
|
5713
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
5714
|
-
createdAt: Date;
|
|
5715
|
-
userId: string;
|
|
5716
|
-
teamId?: string | undefined | undefined;
|
|
5717
|
-
user: {
|
|
5718
|
-
id: string;
|
|
5719
|
-
email: string;
|
|
5720
|
-
name: string;
|
|
5721
|
-
image?: string | undefined;
|
|
5722
|
-
};
|
|
5723
|
-
}[];
|
|
5724
|
-
invitations: {
|
|
5725
|
-
id: string;
|
|
5726
|
-
organizationId: string;
|
|
5727
|
-
email: string;
|
|
5728
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
5729
|
-
status: better_auth_plugins.InvitationStatus;
|
|
5730
|
-
inviterId: string;
|
|
5731
|
-
expiresAt: Date;
|
|
5732
|
-
createdAt: Date;
|
|
5733
|
-
teamId?: string | undefined | undefined;
|
|
5734
|
-
}[];
|
|
5735
|
-
teams: {
|
|
5736
|
-
id: string;
|
|
5737
|
-
name: string;
|
|
5738
|
-
organizationId: string;
|
|
5739
|
-
createdAt: Date;
|
|
5740
|
-
updatedAt?: Date | undefined;
|
|
5741
|
-
}[];
|
|
5742
|
-
} & {
|
|
5743
|
-
id: string;
|
|
5744
|
-
name: string;
|
|
5745
|
-
slug: string;
|
|
5746
|
-
createdAt: Date;
|
|
5747
|
-
logo?: string | null | undefined | undefined;
|
|
5748
|
-
metadata?: any;
|
|
5749
|
-
};
|
|
5750
|
-
Organization: {
|
|
5751
|
-
id: string;
|
|
5752
|
-
name: string;
|
|
5753
|
-
slug: string;
|
|
5754
|
-
createdAt: Date;
|
|
5755
|
-
logo?: string | null | undefined;
|
|
5756
|
-
metadata?: any;
|
|
5757
|
-
};
|
|
5758
|
-
Invitation: {
|
|
5759
|
-
id: string;
|
|
5760
|
-
organizationId: string;
|
|
5761
|
-
email: string;
|
|
5762
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
5763
|
-
status: better_auth_plugins.InvitationStatus;
|
|
5764
|
-
inviterId: string;
|
|
5765
|
-
expiresAt: Date;
|
|
5766
|
-
createdAt: Date;
|
|
5767
|
-
teamId?: string | undefined | undefined;
|
|
5768
|
-
};
|
|
5769
|
-
Member: {
|
|
5770
|
-
id: string;
|
|
5771
|
-
organizationId: string;
|
|
5772
|
-
role: "org:admin" | "org:member" | "org:reviewer";
|
|
5773
|
-
createdAt: Date;
|
|
5774
|
-
userId: string;
|
|
5775
|
-
teamId?: string | undefined | undefined;
|
|
5776
|
-
user: {
|
|
5777
|
-
id: string;
|
|
5778
|
-
email: string;
|
|
5779
|
-
name: string;
|
|
5780
|
-
image?: string | undefined;
|
|
5781
|
-
};
|
|
5782
|
-
};
|
|
5783
|
-
Team: {
|
|
5784
|
-
id: string;
|
|
5785
|
-
name: string;
|
|
5786
|
-
organizationId: string;
|
|
5787
|
-
createdAt: Date;
|
|
5788
|
-
updatedAt?: Date | undefined;
|
|
5789
|
-
};
|
|
5790
|
-
};
|
|
5791
|
-
organization: {
|
|
5792
|
-
checkRolePermission: <R extends "org:admin" | "org:member" | "org:reviewer">(data: ({
|
|
5793
|
-
permission: {
|
|
5794
|
-
access?: string[] | undefined;
|
|
5795
|
-
organization?: ("update" | "delete")[] | undefined;
|
|
5796
|
-
member?: ("update" | "delete" | "create")[] | undefined;
|
|
5797
|
-
invitation?: ("create" | "cancel")[] | undefined;
|
|
5798
|
-
team?: ("update" | "delete" | "create")[] | undefined;
|
|
5799
|
-
ac?: ("update" | "delete" | "create" | "read")[] | undefined;
|
|
5800
|
-
};
|
|
5801
|
-
permissions?: never | undefined;
|
|
5802
|
-
} | {
|
|
5803
|
-
permissions: {
|
|
5804
|
-
access?: string[] | undefined;
|
|
5805
|
-
organization?: ("update" | "delete")[] | undefined;
|
|
5806
|
-
member?: ("update" | "delete" | "create")[] | undefined;
|
|
5807
|
-
invitation?: ("create" | "cancel")[] | undefined;
|
|
5808
|
-
team?: ("update" | "delete" | "create")[] | undefined;
|
|
5809
|
-
ac?: ("update" | "delete" | "create" | "read")[] | undefined;
|
|
5810
|
-
};
|
|
5811
|
-
permission?: never | undefined;
|
|
5812
|
-
}) & {
|
|
5813
|
-
role: R;
|
|
5814
|
-
}) => boolean;
|
|
5815
|
-
};
|
|
5816
|
-
} & {
|
|
5817
|
-
jwks: (fetchOptions?: any) => Promise<{
|
|
5818
|
-
data: null;
|
|
5819
|
-
error: {
|
|
5820
|
-
message?: string | undefined;
|
|
5821
|
-
status: number;
|
|
5822
|
-
statusText: string;
|
|
5823
|
-
};
|
|
5824
|
-
} | {
|
|
5825
|
-
data: jose.JSONWebKeySet;
|
|
5826
|
-
error: null;
|
|
5827
|
-
}>;
|
|
5828
|
-
} & {
|
|
5829
|
-
admin: {
|
|
5830
|
-
checkRolePermission: <R extends "admin" | "user">(data: ({
|
|
5831
|
-
permission: {
|
|
5832
|
-
readonly user?: ("update" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "get")[] | undefined;
|
|
5833
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
5834
|
-
};
|
|
5835
|
-
permissions?: never | undefined;
|
|
5836
|
-
} | {
|
|
5837
|
-
permissions: {
|
|
5838
|
-
readonly user?: ("update" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "get")[] | undefined;
|
|
5839
|
-
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
5840
|
-
};
|
|
5841
|
-
permission?: never | undefined;
|
|
5842
|
-
}) & {
|
|
5843
|
-
role: R;
|
|
5844
|
-
}) => boolean;
|
|
5845
|
-
};
|
|
5846
|
-
} & {
|
|
5847
|
-
useSession: nanostores.Atom<{
|
|
5848
|
-
data: {
|
|
5849
|
-
user: {
|
|
5850
|
-
id: string;
|
|
5851
|
-
createdAt: Date;
|
|
5852
|
-
updatedAt: Date;
|
|
5853
|
-
email: string;
|
|
5854
|
-
emailVerified: boolean;
|
|
5855
|
-
name: string;
|
|
5856
|
-
image?: string | null | undefined;
|
|
5857
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
5858
|
-
banned: boolean | null | undefined;
|
|
5859
|
-
role?: string | null | undefined;
|
|
5860
|
-
banReason?: string | null | undefined;
|
|
5861
|
-
banExpires?: Date | null | undefined;
|
|
5862
|
-
lastActiveAt?: Date | null | undefined;
|
|
5863
|
-
};
|
|
5864
|
-
session: {
|
|
5865
|
-
id: string;
|
|
5866
|
-
createdAt: Date;
|
|
5867
|
-
updatedAt: Date;
|
|
5868
|
-
userId: string;
|
|
5869
|
-
expiresAt: Date;
|
|
5870
|
-
token: string;
|
|
5871
|
-
ipAddress?: string | null | undefined;
|
|
5872
|
-
userAgent?: string | null | undefined;
|
|
5873
|
-
activeOrganizationId?: string | null | undefined;
|
|
5874
|
-
activeTeamId?: string | null | undefined;
|
|
5875
|
-
impersonatedBy?: string | null | undefined;
|
|
5876
|
-
};
|
|
5877
|
-
};
|
|
5878
|
-
error: _better_fetch_fetch.BetterFetchError | null;
|
|
5879
|
-
isPending: boolean;
|
|
5880
|
-
}>;
|
|
5881
|
-
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
5882
|
-
plugins: (_better_fetch_fetch.BetterFetchPlugin<Record<string, any>> | {
|
|
5883
|
-
id: string;
|
|
5884
|
-
name: string;
|
|
5885
|
-
hooks: {
|
|
5886
|
-
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
5887
|
-
};
|
|
5888
|
-
} | {
|
|
5889
|
-
id: string;
|
|
5890
|
-
name: string;
|
|
5891
|
-
hooks: {
|
|
5892
|
-
onSuccess: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
5893
|
-
onError: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
5894
|
-
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
5895
|
-
onResponse: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
5896
|
-
};
|
|
5897
|
-
})[];
|
|
5898
|
-
cache?: RequestCache | undefined;
|
|
5899
|
-
method: string;
|
|
5900
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
5901
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
5902
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
5903
|
-
authorization: "Bearer" | "Basic";
|
|
5904
|
-
})) | undefined;
|
|
5905
|
-
redirect?: RequestRedirect | undefined;
|
|
5906
|
-
credentials?: RequestCredentials;
|
|
5907
|
-
integrity?: string | undefined;
|
|
5908
|
-
keepalive?: boolean | undefined;
|
|
5909
|
-
mode?: RequestMode | undefined;
|
|
5910
|
-
priority?: RequestPriority | undefined;
|
|
5911
|
-
referrer?: string | undefined;
|
|
5912
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
5913
|
-
signal?: (AbortSignal | null) | undefined;
|
|
5914
|
-
window?: null | undefined;
|
|
5915
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
5916
|
-
hookOptions?: {
|
|
5917
|
-
cloneResponse?: boolean;
|
|
5918
|
-
} | undefined;
|
|
5919
|
-
timeout?: number | undefined;
|
|
5920
|
-
customFetchImpl: _better_fetch_fetch.FetchEsque;
|
|
5921
|
-
baseURL: string;
|
|
5922
|
-
throw?: boolean | undefined;
|
|
5923
|
-
auth?: ({
|
|
5924
|
-
type: "Bearer";
|
|
5925
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
5926
|
-
} | {
|
|
5927
|
-
type: "Basic";
|
|
5928
|
-
username: string | (() => string | undefined) | undefined;
|
|
5929
|
-
password: string | (() => string | undefined) | undefined;
|
|
5930
|
-
} | {
|
|
5931
|
-
type: "Custom";
|
|
5932
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
5933
|
-
value: string | (() => string | undefined) | undefined;
|
|
5934
|
-
}) | undefined;
|
|
5935
|
-
body?: any;
|
|
5936
|
-
query?: any;
|
|
5937
|
-
params?: any;
|
|
5938
|
-
duplex?: "full" | "half" | undefined;
|
|
5939
|
-
jsonParser: (text: string) => Promise<any> | any;
|
|
5940
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
5941
|
-
retryAttempt?: number | undefined;
|
|
5942
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
5943
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
5944
|
-
disableValidation?: boolean | undefined;
|
|
5945
|
-
disableSignal?: boolean | undefined;
|
|
5946
|
-
}, unknown, unknown, {}>;
|
|
5947
|
-
$store: {
|
|
5948
|
-
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
5949
|
-
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
5950
|
-
atoms: Record<string, nanostores.WritableAtom<any>>;
|
|
5951
|
-
};
|
|
5952
|
-
$Infer: {
|
|
5953
|
-
Session: {
|
|
5954
|
-
user: {
|
|
5955
|
-
id: string;
|
|
5956
|
-
createdAt: Date;
|
|
5957
|
-
updatedAt: Date;
|
|
5958
|
-
email: string;
|
|
5959
|
-
emailVerified: boolean;
|
|
5960
|
-
name: string;
|
|
5961
|
-
image?: string | null | undefined;
|
|
5962
|
-
twoFactorEnabled: boolean | null | undefined;
|
|
5963
|
-
banned: boolean | null | undefined;
|
|
5964
|
-
role?: string | null | undefined;
|
|
5965
|
-
banReason?: string | null | undefined;
|
|
5966
|
-
banExpires?: Date | null | undefined;
|
|
5967
|
-
lastActiveAt?: Date | null | undefined;
|
|
5968
|
-
};
|
|
5969
|
-
session: {
|
|
5970
|
-
id: string;
|
|
5971
|
-
createdAt: Date;
|
|
5972
|
-
updatedAt: Date;
|
|
5973
|
-
userId: string;
|
|
5974
|
-
expiresAt: Date;
|
|
5975
|
-
token: string;
|
|
5976
|
-
ipAddress?: string | null | undefined;
|
|
5977
|
-
userAgent?: string | null | undefined;
|
|
5978
|
-
activeOrganizationId?: string | null | undefined;
|
|
5979
|
-
activeTeamId?: string | null | undefined;
|
|
5980
|
-
impersonatedBy?: string | null | undefined;
|
|
5981
|
-
};
|
|
5982
|
-
};
|
|
5983
|
-
};
|
|
5984
|
-
$ERROR_CODES: {
|
|
5985
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
|
|
5986
|
-
readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
|
|
5987
|
-
readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
|
|
5988
|
-
readonly ORGANIZATION_SLUG_ALREADY_TAKEN: "Organization slug already taken";
|
|
5989
|
-
readonly ORGANIZATION_NOT_FOUND: "Organization not found";
|
|
5990
|
-
readonly USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: "User is not a member of the organization";
|
|
5991
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: "You are not allowed to update this organization";
|
|
5992
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: "You are not allowed to delete this organization";
|
|
5993
|
-
readonly NO_ACTIVE_ORGANIZATION: "No active organization";
|
|
5994
|
-
readonly USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: "User is already a member of this organization";
|
|
5995
|
-
readonly MEMBER_NOT_FOUND: "Member not found";
|
|
5996
|
-
readonly ROLE_NOT_FOUND: "Role not found";
|
|
5997
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: "You are not allowed to create a new team";
|
|
5998
|
-
readonly TEAM_ALREADY_EXISTS: "Team already exists";
|
|
5999
|
-
readonly TEAM_NOT_FOUND: "Team not found";
|
|
6000
|
-
readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: "You cannot leave the organization as the only owner";
|
|
6001
|
-
readonly YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: "You cannot leave the organization without an owner";
|
|
6002
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: "You are not allowed to delete this member";
|
|
6003
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: "You are not allowed to invite users to this organization";
|
|
6004
|
-
readonly USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: "User is already invited to this organization";
|
|
6005
|
-
readonly INVITATION_NOT_FOUND: "Invitation not found";
|
|
6006
|
-
readonly YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: "You are not the recipient of the invitation";
|
|
6007
|
-
readonly EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: "Email verification required before accepting or rejecting invitation";
|
|
6008
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: "You are not allowed to cancel this invitation";
|
|
6009
|
-
readonly INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: "Inviter is no longer a member of the organization";
|
|
6010
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: "You are not allowed to invite a user with this role";
|
|
6011
|
-
readonly FAILED_TO_RETRIEVE_INVITATION: "Failed to retrieve invitation";
|
|
6012
|
-
readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: "You have reached the maximum number of teams";
|
|
6013
|
-
readonly UNABLE_TO_REMOVE_LAST_TEAM: "Unable to remove last team";
|
|
6014
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: "You are not allowed to update this member";
|
|
6015
|
-
readonly ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: "Organization membership limit reached";
|
|
6016
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to create teams in this organization";
|
|
6017
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: "You are not allowed to delete teams in this organization";
|
|
6018
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: "You are not allowed to update this team";
|
|
6019
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: "You are not allowed to delete this team";
|
|
6020
|
-
readonly INVITATION_LIMIT_REACHED: "Invitation limit reached";
|
|
6021
|
-
readonly TEAM_MEMBER_LIMIT_REACHED: "Team member limit reached";
|
|
6022
|
-
readonly USER_IS_NOT_A_MEMBER_OF_THE_TEAM: "User is not a member of the team";
|
|
6023
|
-
readonly YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: "You are not allowed to list the members of this team";
|
|
6024
|
-
readonly YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team";
|
|
6025
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member";
|
|
6026
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member";
|
|
6027
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner";
|
|
6028
|
-
readonly YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: "You are not a member of this organization";
|
|
6029
|
-
readonly MISSING_AC_INSTANCE: "Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information";
|
|
6030
|
-
readonly YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: "You must be in an organization to create a role";
|
|
6031
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: "You are not allowed to create a role";
|
|
6032
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: "You are not allowed to update a role";
|
|
6033
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: "You are not allowed to delete a role";
|
|
6034
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: "You are not allowed to read a role";
|
|
6035
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: "You are not allowed to list a role";
|
|
6036
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: "You are not allowed to get a role";
|
|
6037
|
-
readonly TOO_MANY_ROLES: "This organization has too many roles";
|
|
6038
|
-
readonly INVALID_RESOURCE: "The provided permission includes an invalid resource";
|
|
6039
|
-
readonly ROLE_NAME_IS_ALREADY_TAKEN: "That role name is already taken";
|
|
6040
|
-
readonly CANNOT_DELETE_A_PRE_DEFINED_ROLE: "Cannot delete a pre-defined role";
|
|
6041
|
-
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
6042
|
-
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
6043
|
-
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
6044
|
-
readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
|
|
6045
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
|
|
6046
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
|
|
6047
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
|
|
6048
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
|
|
6049
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
|
|
6050
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
|
|
6051
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
|
|
6052
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
|
|
6053
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
|
|
6054
|
-
readonly BANNED_USER: "You have been banned from this application";
|
|
6055
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
|
|
6056
|
-
readonly NO_DATA_TO_UPDATE: "No data to update";
|
|
6057
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
|
|
6058
|
-
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
6059
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
6060
|
-
readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
|
|
6061
|
-
readonly INVALID_ROLE_TYPE: "Invalid role type";
|
|
6062
|
-
readonly OTP_NOT_ENABLED: "OTP not enabled";
|
|
6063
|
-
readonly OTP_HAS_EXPIRED: "OTP has expired";
|
|
6064
|
-
readonly TOTP_NOT_ENABLED: "TOTP not enabled";
|
|
6065
|
-
readonly TWO_FACTOR_NOT_ENABLED: "Two factor isn't enabled";
|
|
6066
|
-
readonly BACKUP_CODES_NOT_ENABLED: "Backup codes aren't enabled";
|
|
6067
|
-
readonly INVALID_BACKUP_CODE: "Invalid backup code";
|
|
6068
|
-
readonly INVALID_CODE: "Invalid code";
|
|
6069
|
-
readonly TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: "Too many attempts. Please request a new code.";
|
|
6070
|
-
readonly INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie";
|
|
6071
|
-
readonly INVALID_METADATA_TYPE: "metadata must be an object or undefined";
|
|
6072
|
-
readonly REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided";
|
|
6073
|
-
readonly REFILL_INTERVAL_AND_AMOUNT_REQUIRED: "refillInterval is required when refillAmount is provided";
|
|
6074
|
-
readonly USER_BANNED: "User is banned";
|
|
6075
|
-
readonly UNAUTHORIZED_SESSION: "Unauthorized or invalid session";
|
|
6076
|
-
readonly KEY_NOT_FOUND: "API Key not found";
|
|
6077
|
-
readonly KEY_DISABLED: "API Key is disabled";
|
|
6078
|
-
readonly KEY_EXPIRED: "API Key has expired";
|
|
6079
|
-
readonly USAGE_EXCEEDED: "API Key has reached its usage limit";
|
|
6080
|
-
readonly KEY_NOT_RECOVERABLE: "API Key is not recoverable";
|
|
6081
|
-
readonly EXPIRES_IN_IS_TOO_SMALL: "The expiresIn is smaller than the predefined minimum value.";
|
|
6082
|
-
readonly EXPIRES_IN_IS_TOO_LARGE: "The expiresIn is larger than the predefined maximum value.";
|
|
6083
|
-
readonly INVALID_REMAINING: "The remaining count is either too large or too small.";
|
|
6084
|
-
readonly INVALID_PREFIX_LENGTH: "The prefix length is either too large or too small.";
|
|
6085
|
-
readonly INVALID_NAME_LENGTH: "The name length is either too large or too small.";
|
|
6086
|
-
readonly METADATA_DISABLED: "Metadata is disabled.";
|
|
6087
|
-
readonly RATE_LIMIT_EXCEEDED: "Rate limit exceeded.";
|
|
6088
|
-
readonly NO_VALUES_TO_UPDATE: "No values to update.";
|
|
6089
|
-
readonly KEY_DISABLED_EXPIRATION: "Custom key expiration values are disabled.";
|
|
6090
|
-
readonly INVALID_API_KEY: "Invalid API key.";
|
|
6091
|
-
readonly INVALID_USER_ID_FROM_API_KEY: "The user id from the API key is invalid.";
|
|
6092
|
-
readonly INVALID_API_KEY_GETTER_RETURN_TYPE: "API Key getter returned an invalid key type. Expected string.";
|
|
6093
|
-
readonly SERVER_ONLY_PROPERTY: "The property you're trying to set can only be set from the server auth instance only.";
|
|
6094
|
-
readonly FAILED_TO_UPDATE_API_KEY: "Failed to update API key";
|
|
6095
|
-
readonly NAME_REQUIRED: "API Key name is required.";
|
|
6096
|
-
readonly USER_NOT_FOUND: "User not found";
|
|
6097
|
-
readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
|
|
6098
|
-
readonly FAILED_TO_UPDATE_USER: "Failed to update user";
|
|
6099
|
-
readonly FAILED_TO_GET_SESSION: "Failed to get session";
|
|
6100
|
-
readonly INVALID_PASSWORD: "Invalid password";
|
|
6101
|
-
readonly INVALID_EMAIL: "Invalid email";
|
|
6102
|
-
readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
|
|
6103
|
-
readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
|
|
6104
|
-
readonly PROVIDER_NOT_FOUND: "Provider not found";
|
|
6105
|
-
readonly INVALID_TOKEN: "Invalid token";
|
|
6106
|
-
readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
|
|
6107
|
-
readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
|
|
6108
|
-
readonly USER_EMAIL_NOT_FOUND: "User email not found";
|
|
6109
|
-
readonly EMAIL_NOT_VERIFIED: "Email not verified";
|
|
6110
|
-
readonly PASSWORD_TOO_SHORT: "Password too short";
|
|
6111
|
-
readonly PASSWORD_TOO_LONG: "Password too long";
|
|
6112
|
-
readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
|
|
6113
|
-
readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
|
|
6114
|
-
readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
|
|
6115
|
-
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
6116
|
-
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
6117
|
-
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
6118
|
-
};
|
|
6119
|
-
};
|
|
6120
|
-
type User = typeof stub.$Infer.Session.user;
|
|
6121
|
-
type Session = typeof stub.$Infer.Session.session;
|
|
6122
|
-
type Organization = typeof stub.$Infer.Organization;
|
|
6123
|
-
type Team = typeof stub.$Infer.Team;
|
|
6124
|
-
type Invitation = typeof stub.$Infer.Invitation;
|
|
6125
|
-
type Member = typeof stub.$Infer.Member;
|
|
3157
|
+
type stub = ReturnType<typeof createAPIClient>;
|
|
3158
|
+
type User = stub['$Infer']['Session']['user'];
|
|
3159
|
+
type Session = stub['$Infer']['Session'];
|
|
3160
|
+
type Organization = stub['$Infer']['Organization'];
|
|
3161
|
+
type Team = stub['$Infer']['Team'];
|
|
3162
|
+
type Invitation = stub['$Infer']['Invitation'];
|
|
3163
|
+
type Member = stub['$Infer']['Member'];
|
|
6126
3164
|
type ExtendedMember = Omit<Member, 'user'> & {
|
|
6127
3165
|
user: Member['user'] & {
|
|
6128
3166
|
id: string;
|
|
@@ -6477,7 +3515,6 @@ declare class OrganizationService {
|
|
|
6477
3515
|
* @param options - User identifier (either memberId or userEmail must be provided)
|
|
6478
3516
|
* @param options.memberId - The member ID to remove
|
|
6479
3517
|
* @param options.userEmail - The user email to remove
|
|
6480
|
-
|
|
6481
3518
|
*/
|
|
6482
3519
|
removeUserFromOrganization({ memberId, userEmail }: RemoveUserFromOrganizationOptions): Promise<void>;
|
|
6483
3520
|
/**
|
|
@@ -6582,6 +3619,8 @@ type SignInWithSamlOptions = {
|
|
|
6582
3619
|
type SignInWithEmailAndPasswordOptions = {
|
|
6583
3620
|
email: string;
|
|
6584
3621
|
password: string;
|
|
3622
|
+
callbackURL: string;
|
|
3623
|
+
errorCallbackURL?: string;
|
|
6585
3624
|
};
|
|
6586
3625
|
|
|
6587
3626
|
/**
|