@objectstack/spec 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +127 -5
- package/dist/ai/index.d.ts +14 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +29 -0
- package/dist/ai/model-registry.zod.d.ts +1389 -0
- package/dist/ai/model-registry.zod.d.ts.map +1 -0
- package/dist/ai/model-registry.zod.js +164 -0
- package/dist/ai/nlq.zod.d.ts +1126 -0
- package/dist/ai/nlq.zod.d.ts.map +1 -0
- package/dist/ai/nlq.zod.js +246 -0
- package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
- package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
- package/dist/ai/rag-pipeline.zod.js +244 -0
- package/dist/api/index.d.ts +9 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +24 -0
- package/dist/data/index.d.ts +21 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +36 -0
- package/dist/data/query.zod.d.ts +386 -3
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +386 -3
- package/dist/data/validation.zod.d.ts +349 -0
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +395 -0
- package/dist/index.d.ts +36 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -49
- package/dist/system/auth-protocol.d.ts +175 -0
- package/dist/system/auth-protocol.d.ts.map +1 -0
- package/dist/system/auth-protocol.js +60 -0
- package/dist/system/auth.zod.d.ts +1097 -65
- package/dist/system/auth.zod.d.ts.map +1 -1
- package/dist/system/auth.zod.js +135 -1
- package/dist/system/identity.zod.d.ts +234 -180
- package/dist/system/identity.zod.d.ts.map +1 -1
- package/dist/system/identity.zod.js +168 -51
- package/dist/system/index.d.ts +28 -0
- package/dist/system/index.d.ts.map +1 -0
- package/dist/system/index.js +43 -0
- package/dist/system/manifest.zod.d.ts +10 -10
- package/dist/system/organization.zod.d.ts +179 -0
- package/dist/system/organization.zod.d.ts.map +1 -0
- package/dist/system/organization.zod.js +129 -0
- package/dist/ui/action.zod.d.ts +2 -2
- package/dist/ui/index.d.ts +17 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +32 -0
- package/dist/ui/theme.zod.d.ts +6 -6
- package/json-schema/Account.json +87 -0
- package/json-schema/AuthConfig.json +235 -0
- package/json-schema/ChunkingStrategy.json +133 -0
- package/json-schema/DatabaseMapping.json +48 -0
- package/json-schema/DocumentChunk.json +97 -0
- package/json-schema/DocumentLoaderConfig.json +69 -0
- package/json-schema/DocumentMetadata.json +61 -0
- package/json-schema/EmbeddingModel.json +57 -0
- package/json-schema/EnterpriseAuthConfig.json +172 -0
- package/json-schema/Entity.json +55 -0
- package/json-schema/FieldSynonymConfig.json +39 -0
- package/json-schema/Invitation.json +69 -0
- package/json-schema/InvitationStatus.json +15 -0
- package/json-schema/LDAPConfig.json +22 -5
- package/json-schema/Member.json +46 -0
- package/json-schema/ModelCapability.json +47 -0
- package/json-schema/ModelConfig.json +181 -0
- package/json-schema/ModelLimits.json +45 -0
- package/json-schema/ModelPricing.json +28 -0
- package/json-schema/ModelProvider.json +19 -0
- package/json-schema/ModelRegistry.json +427 -0
- package/json-schema/ModelRegistryEntry.json +239 -0
- package/json-schema/ModelSelectionCriteria.json +50 -0
- package/json-schema/NLQAnalytics.json +106 -0
- package/json-schema/NLQFieldMapping.json +40 -0
- package/json-schema/NLQModelConfig.json +78 -0
- package/json-schema/NLQParseResult.json +252 -0
- package/json-schema/NLQRequest.json +110 -0
- package/json-schema/NLQResponse.json +288 -0
- package/json-schema/NLQTrainingExample.json +120 -0
- package/json-schema/OIDCConfig.json +18 -3
- package/json-schema/Organization.json +52 -0
- package/json-schema/PromptTemplate.json +163 -0
- package/json-schema/PromptVariable.json +56 -0
- package/json-schema/QueryContext.json +72 -0
- package/json-schema/QueryIntent.json +21 -0
- package/json-schema/QueryTemplate.json +81 -0
- package/json-schema/RAGPipelineConfig.json +552 -0
- package/json-schema/RAGPipelineStatus.json +66 -0
- package/json-schema/RAGQueryRequest.json +64 -0
- package/json-schema/RAGQueryResponse.json +108 -0
- package/json-schema/RerankingConfig.json +34 -0
- package/json-schema/RetrievalStrategy.json +121 -0
- package/json-schema/SAMLConfig.json +17 -3
- package/json-schema/Session.json +63 -0
- package/json-schema/StandardAuthProvider.json +235 -0
- package/json-schema/Timeframe.json +68 -0
- package/json-schema/User.json +51 -0
- package/json-schema/VectorStoreConfig.json +82 -0
- package/json-schema/VectorStoreProvider.json +21 -0
- package/json-schema/VerificationToken.json +36 -0
- package/package.json +27 -1
- package/json-schema/AuthProtocol.json +0 -17
- package/json-schema/AuthProvider.json +0 -171
|
@@ -28,8 +28,8 @@ export declare const OAuthProviderSchema: z.ZodObject<{
|
|
|
28
28
|
displayName: z.ZodOptional<z.ZodString>;
|
|
29
29
|
icon: z.ZodOptional<z.ZodString>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
32
31
|
enabled: boolean;
|
|
32
|
+
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
33
33
|
clientId: string;
|
|
34
34
|
clientSecret: string;
|
|
35
35
|
icon?: string | undefined;
|
|
@@ -84,29 +84,29 @@ export declare const MagicLinkConfigSchema: z.ZodObject<{
|
|
|
84
84
|
link: z.ZodString;
|
|
85
85
|
token: z.ZodString;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
token: string;
|
|
87
88
|
to: string;
|
|
88
89
|
link: string;
|
|
89
|
-
token: string;
|
|
90
90
|
}, {
|
|
91
|
+
token: string;
|
|
91
92
|
to: string;
|
|
92
93
|
link: string;
|
|
93
|
-
token: string;
|
|
94
94
|
}>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
96
|
enabled: boolean;
|
|
97
97
|
expiryTime: number;
|
|
98
98
|
sendEmail?: ((args_0: {
|
|
99
|
+
token: string;
|
|
99
100
|
to: string;
|
|
100
101
|
link: string;
|
|
101
|
-
token: string;
|
|
102
102
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
enabled?: boolean | undefined;
|
|
105
105
|
expiryTime?: number | undefined;
|
|
106
106
|
sendEmail?: ((args_0: {
|
|
107
|
+
token: string;
|
|
107
108
|
to: string;
|
|
108
109
|
link: string;
|
|
109
|
-
token: string;
|
|
110
110
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
111
111
|
}>;
|
|
112
112
|
export type MagicLinkConfig = z.infer<typeof MagicLinkConfigSchema>;
|
|
@@ -264,6 +264,266 @@ export declare const TwoFactorConfigSchema: z.ZodObject<{
|
|
|
264
264
|
} | undefined;
|
|
265
265
|
}>;
|
|
266
266
|
export type TwoFactorConfig = z.infer<typeof TwoFactorConfigSchema>;
|
|
267
|
+
/**
|
|
268
|
+
* OIDC / OAuth2 Enterprise Configuration
|
|
269
|
+
* OpenID Connect configuration for enterprise SSO
|
|
270
|
+
*/
|
|
271
|
+
export declare const OIDCConfigSchema: z.ZodObject<{
|
|
272
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
273
|
+
issuer: z.ZodString;
|
|
274
|
+
clientId: z.ZodString;
|
|
275
|
+
clientSecret: z.ZodString;
|
|
276
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
277
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
278
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
279
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
clientId: string;
|
|
283
|
+
clientSecret: string;
|
|
284
|
+
scopes: string[];
|
|
285
|
+
issuer: string;
|
|
286
|
+
icon?: string | undefined;
|
|
287
|
+
displayName?: string | undefined;
|
|
288
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
289
|
+
}, {
|
|
290
|
+
clientId: string;
|
|
291
|
+
clientSecret: string;
|
|
292
|
+
issuer: string;
|
|
293
|
+
icon?: string | undefined;
|
|
294
|
+
enabled?: boolean | undefined;
|
|
295
|
+
scopes?: string[] | undefined;
|
|
296
|
+
displayName?: string | undefined;
|
|
297
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
298
|
+
}>;
|
|
299
|
+
export type OIDCConfig = z.infer<typeof OIDCConfigSchema>;
|
|
300
|
+
/**
|
|
301
|
+
* SAML 2.0 Enterprise Configuration
|
|
302
|
+
* SAML configuration for legacy enterprise SSO
|
|
303
|
+
*/
|
|
304
|
+
export declare const SAMLConfigSchema: z.ZodObject<{
|
|
305
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
306
|
+
entryPoint: z.ZodString;
|
|
307
|
+
cert: z.ZodString;
|
|
308
|
+
issuer: z.ZodString;
|
|
309
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha256", "sha512"]>>;
|
|
310
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
311
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
312
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
enabled: boolean;
|
|
315
|
+
issuer: string;
|
|
316
|
+
entryPoint: string;
|
|
317
|
+
cert: string;
|
|
318
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
319
|
+
icon?: string | undefined;
|
|
320
|
+
displayName?: string | undefined;
|
|
321
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
issuer: string;
|
|
324
|
+
entryPoint: string;
|
|
325
|
+
cert: string;
|
|
326
|
+
icon?: string | undefined;
|
|
327
|
+
enabled?: boolean | undefined;
|
|
328
|
+
displayName?: string | undefined;
|
|
329
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
330
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
331
|
+
}>;
|
|
332
|
+
export type SAMLConfig = z.infer<typeof SAMLConfigSchema>;
|
|
333
|
+
/**
|
|
334
|
+
* LDAP / Active Directory Enterprise Configuration
|
|
335
|
+
* LDAP configuration for on-premise directory services
|
|
336
|
+
*/
|
|
337
|
+
export declare const LDAPConfigSchema: z.ZodObject<{
|
|
338
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
339
|
+
url: z.ZodString;
|
|
340
|
+
bindDn: z.ZodString;
|
|
341
|
+
bindCredentials: z.ZodString;
|
|
342
|
+
searchBase: z.ZodString;
|
|
343
|
+
searchFilter: z.ZodString;
|
|
344
|
+
groupSearchBase: z.ZodOptional<z.ZodString>;
|
|
345
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
346
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
url: string;
|
|
349
|
+
enabled: boolean;
|
|
350
|
+
bindDn: string;
|
|
351
|
+
bindCredentials: string;
|
|
352
|
+
searchBase: string;
|
|
353
|
+
searchFilter: string;
|
|
354
|
+
icon?: string | undefined;
|
|
355
|
+
displayName?: string | undefined;
|
|
356
|
+
groupSearchBase?: string | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
url: string;
|
|
359
|
+
bindDn: string;
|
|
360
|
+
bindCredentials: string;
|
|
361
|
+
searchBase: string;
|
|
362
|
+
searchFilter: string;
|
|
363
|
+
icon?: string | undefined;
|
|
364
|
+
enabled?: boolean | undefined;
|
|
365
|
+
displayName?: string | undefined;
|
|
366
|
+
groupSearchBase?: string | undefined;
|
|
367
|
+
}>;
|
|
368
|
+
export type LDAPConfig = z.infer<typeof LDAPConfigSchema>;
|
|
369
|
+
/**
|
|
370
|
+
* Enterprise Authentication Configuration
|
|
371
|
+
* Combines SAML, LDAP, and OIDC configurations for enterprise SSO
|
|
372
|
+
*/
|
|
373
|
+
export declare const EnterpriseAuthConfigSchema: z.ZodObject<{
|
|
374
|
+
oidc: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
376
|
+
issuer: z.ZodString;
|
|
377
|
+
clientId: z.ZodString;
|
|
378
|
+
clientSecret: z.ZodString;
|
|
379
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
380
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
381
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
382
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, "strip", z.ZodTypeAny, {
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
clientId: string;
|
|
386
|
+
clientSecret: string;
|
|
387
|
+
scopes: string[];
|
|
388
|
+
issuer: string;
|
|
389
|
+
icon?: string | undefined;
|
|
390
|
+
displayName?: string | undefined;
|
|
391
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
clientId: string;
|
|
394
|
+
clientSecret: string;
|
|
395
|
+
issuer: string;
|
|
396
|
+
icon?: string | undefined;
|
|
397
|
+
enabled?: boolean | undefined;
|
|
398
|
+
scopes?: string[] | undefined;
|
|
399
|
+
displayName?: string | undefined;
|
|
400
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
401
|
+
}>>;
|
|
402
|
+
saml: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
404
|
+
entryPoint: z.ZodString;
|
|
405
|
+
cert: z.ZodString;
|
|
406
|
+
issuer: z.ZodString;
|
|
407
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha256", "sha512"]>>;
|
|
408
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
409
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
410
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
enabled: boolean;
|
|
413
|
+
issuer: string;
|
|
414
|
+
entryPoint: string;
|
|
415
|
+
cert: string;
|
|
416
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
417
|
+
icon?: string | undefined;
|
|
418
|
+
displayName?: string | undefined;
|
|
419
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
420
|
+
}, {
|
|
421
|
+
issuer: string;
|
|
422
|
+
entryPoint: string;
|
|
423
|
+
cert: string;
|
|
424
|
+
icon?: string | undefined;
|
|
425
|
+
enabled?: boolean | undefined;
|
|
426
|
+
displayName?: string | undefined;
|
|
427
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
428
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
429
|
+
}>>;
|
|
430
|
+
ldap: z.ZodOptional<z.ZodObject<{
|
|
431
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
432
|
+
url: z.ZodString;
|
|
433
|
+
bindDn: z.ZodString;
|
|
434
|
+
bindCredentials: z.ZodString;
|
|
435
|
+
searchBase: z.ZodString;
|
|
436
|
+
searchFilter: z.ZodString;
|
|
437
|
+
groupSearchBase: z.ZodOptional<z.ZodString>;
|
|
438
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
439
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
url: string;
|
|
442
|
+
enabled: boolean;
|
|
443
|
+
bindDn: string;
|
|
444
|
+
bindCredentials: string;
|
|
445
|
+
searchBase: string;
|
|
446
|
+
searchFilter: string;
|
|
447
|
+
icon?: string | undefined;
|
|
448
|
+
displayName?: string | undefined;
|
|
449
|
+
groupSearchBase?: string | undefined;
|
|
450
|
+
}, {
|
|
451
|
+
url: string;
|
|
452
|
+
bindDn: string;
|
|
453
|
+
bindCredentials: string;
|
|
454
|
+
searchBase: string;
|
|
455
|
+
searchFilter: string;
|
|
456
|
+
icon?: string | undefined;
|
|
457
|
+
enabled?: boolean | undefined;
|
|
458
|
+
displayName?: string | undefined;
|
|
459
|
+
groupSearchBase?: string | undefined;
|
|
460
|
+
}>>;
|
|
461
|
+
}, "strip", z.ZodTypeAny, {
|
|
462
|
+
oidc?: {
|
|
463
|
+
enabled: boolean;
|
|
464
|
+
clientId: string;
|
|
465
|
+
clientSecret: string;
|
|
466
|
+
scopes: string[];
|
|
467
|
+
issuer: string;
|
|
468
|
+
icon?: string | undefined;
|
|
469
|
+
displayName?: string | undefined;
|
|
470
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
471
|
+
} | undefined;
|
|
472
|
+
saml?: {
|
|
473
|
+
enabled: boolean;
|
|
474
|
+
issuer: string;
|
|
475
|
+
entryPoint: string;
|
|
476
|
+
cert: string;
|
|
477
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
478
|
+
icon?: string | undefined;
|
|
479
|
+
displayName?: string | undefined;
|
|
480
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
481
|
+
} | undefined;
|
|
482
|
+
ldap?: {
|
|
483
|
+
url: string;
|
|
484
|
+
enabled: boolean;
|
|
485
|
+
bindDn: string;
|
|
486
|
+
bindCredentials: string;
|
|
487
|
+
searchBase: string;
|
|
488
|
+
searchFilter: string;
|
|
489
|
+
icon?: string | undefined;
|
|
490
|
+
displayName?: string | undefined;
|
|
491
|
+
groupSearchBase?: string | undefined;
|
|
492
|
+
} | undefined;
|
|
493
|
+
}, {
|
|
494
|
+
oidc?: {
|
|
495
|
+
clientId: string;
|
|
496
|
+
clientSecret: string;
|
|
497
|
+
issuer: string;
|
|
498
|
+
icon?: string | undefined;
|
|
499
|
+
enabled?: boolean | undefined;
|
|
500
|
+
scopes?: string[] | undefined;
|
|
501
|
+
displayName?: string | undefined;
|
|
502
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
503
|
+
} | undefined;
|
|
504
|
+
saml?: {
|
|
505
|
+
issuer: string;
|
|
506
|
+
entryPoint: string;
|
|
507
|
+
cert: string;
|
|
508
|
+
icon?: string | undefined;
|
|
509
|
+
enabled?: boolean | undefined;
|
|
510
|
+
displayName?: string | undefined;
|
|
511
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
512
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
513
|
+
} | undefined;
|
|
514
|
+
ldap?: {
|
|
515
|
+
url: string;
|
|
516
|
+
bindDn: string;
|
|
517
|
+
bindCredentials: string;
|
|
518
|
+
searchBase: string;
|
|
519
|
+
searchFilter: string;
|
|
520
|
+
icon?: string | undefined;
|
|
521
|
+
enabled?: boolean | undefined;
|
|
522
|
+
displayName?: string | undefined;
|
|
523
|
+
groupSearchBase?: string | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
}>;
|
|
526
|
+
export type EnterpriseAuthConfig = z.infer<typeof EnterpriseAuthConfigSchema>;
|
|
267
527
|
/**
|
|
268
528
|
* User Field Mapping Configuration
|
|
269
529
|
* Maps authentication user fields to ObjectStack user object fields
|
|
@@ -314,6 +574,76 @@ export declare const DatabaseAdapterSchema: z.ZodObject<{
|
|
|
314
574
|
schema?: string | undefined;
|
|
315
575
|
}>;
|
|
316
576
|
export type DatabaseAdapter = z.infer<typeof DatabaseAdapterSchema>;
|
|
577
|
+
/**
|
|
578
|
+
* Default field mappings for better-auth compatibility
|
|
579
|
+
* These mappings bridge the gap between ObjectStack standard (Auth.js conventions)
|
|
580
|
+
* and better-auth's field naming conventions
|
|
581
|
+
*/
|
|
582
|
+
export declare const BETTER_AUTH_FIELD_MAPPINGS: {
|
|
583
|
+
readonly session: {
|
|
584
|
+
readonly sessionToken: "token";
|
|
585
|
+
readonly expires: "expiresAt";
|
|
586
|
+
};
|
|
587
|
+
readonly account: {
|
|
588
|
+
readonly providerAccountId: "accountId";
|
|
589
|
+
readonly provider: "providerId";
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* Database Field Mapping Configuration
|
|
594
|
+
* Maps ObjectStack standard field names to driver-specific field names.
|
|
595
|
+
*
|
|
596
|
+
* Useful when the underlying authentication driver (e.g., better-auth) uses
|
|
597
|
+
* different column names than the ObjectStack standard schemas (which follow
|
|
598
|
+
* Auth.js conventions).
|
|
599
|
+
*
|
|
600
|
+
* @example
|
|
601
|
+
* ```typescript
|
|
602
|
+
* mapping: {
|
|
603
|
+
* session: {
|
|
604
|
+
* sessionToken: 'token', // better-auth uses 'token'
|
|
605
|
+
* expires: 'expiresAt' // better-auth uses 'expiresAt'
|
|
606
|
+
* },
|
|
607
|
+
* account: {
|
|
608
|
+
* providerAccountId: 'accountId', // better-auth uses 'accountId'
|
|
609
|
+
* provider: 'providerId' // better-auth uses 'providerId'
|
|
610
|
+
* }
|
|
611
|
+
* }
|
|
612
|
+
* ```
|
|
613
|
+
*/
|
|
614
|
+
export declare const DatabaseMappingSchema: z.ZodObject<{
|
|
615
|
+
/**
|
|
616
|
+
* User model field mapping
|
|
617
|
+
* Maps ObjectStack User fields to driver fields
|
|
618
|
+
*/
|
|
619
|
+
user: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
620
|
+
/**
|
|
621
|
+
* Session model field mapping
|
|
622
|
+
* Maps ObjectStack Session fields to driver fields
|
|
623
|
+
*/
|
|
624
|
+
session: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
625
|
+
/**
|
|
626
|
+
* Account model field mapping
|
|
627
|
+
* Maps ObjectStack Account fields to driver fields
|
|
628
|
+
*/
|
|
629
|
+
account: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
630
|
+
/**
|
|
631
|
+
* Verification token field mapping
|
|
632
|
+
* Maps ObjectStack VerificationToken fields to driver fields
|
|
633
|
+
*/
|
|
634
|
+
verificationToken: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
635
|
+
}, "strip", z.ZodTypeAny, {
|
|
636
|
+
session: Record<string, string>;
|
|
637
|
+
account: Record<string, string>;
|
|
638
|
+
user?: Record<string, string> | undefined;
|
|
639
|
+
verificationToken?: Record<string, string> | undefined;
|
|
640
|
+
}, {
|
|
641
|
+
user?: Record<string, string> | undefined;
|
|
642
|
+
session?: Record<string, string> | undefined;
|
|
643
|
+
account?: Record<string, string> | undefined;
|
|
644
|
+
verificationToken?: Record<string, string> | undefined;
|
|
645
|
+
}>;
|
|
646
|
+
export type DatabaseMapping = z.infer<typeof DatabaseMappingSchema>;
|
|
317
647
|
/**
|
|
318
648
|
* Authentication Plugin Configuration
|
|
319
649
|
* Extends authentication with additional features
|
|
@@ -429,29 +759,29 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
429
759
|
link: z.ZodString;
|
|
430
760
|
token: z.ZodString;
|
|
431
761
|
}, "strip", z.ZodTypeAny, {
|
|
762
|
+
token: string;
|
|
432
763
|
to: string;
|
|
433
764
|
link: string;
|
|
434
|
-
token: string;
|
|
435
765
|
}, {
|
|
766
|
+
token: string;
|
|
436
767
|
to: string;
|
|
437
768
|
link: string;
|
|
438
|
-
token: string;
|
|
439
769
|
}>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>>;
|
|
440
770
|
}, "strip", z.ZodTypeAny, {
|
|
441
771
|
enabled: boolean;
|
|
442
772
|
expiryTime: number;
|
|
443
773
|
sendEmail?: ((args_0: {
|
|
774
|
+
token: string;
|
|
444
775
|
to: string;
|
|
445
776
|
link: string;
|
|
446
|
-
token: string;
|
|
447
777
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
448
778
|
}, {
|
|
449
779
|
enabled?: boolean | undefined;
|
|
450
780
|
expiryTime?: number | undefined;
|
|
451
781
|
sendEmail?: ((args_0: {
|
|
782
|
+
token: string;
|
|
452
783
|
to: string;
|
|
453
784
|
link: string;
|
|
454
|
-
token: string;
|
|
455
785
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
456
786
|
}>>;
|
|
457
787
|
/**
|
|
@@ -493,8 +823,8 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
493
823
|
displayName: z.ZodOptional<z.ZodString>;
|
|
494
824
|
icon: z.ZodOptional<z.ZodString>;
|
|
495
825
|
}, "strip", z.ZodTypeAny, {
|
|
496
|
-
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
497
826
|
enabled: boolean;
|
|
827
|
+
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
498
828
|
clientId: string;
|
|
499
829
|
clientSecret: string;
|
|
500
830
|
icon?: string | undefined;
|
|
@@ -513,8 +843,8 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
513
843
|
}>, "many">;
|
|
514
844
|
}, "strip", z.ZodTypeAny, {
|
|
515
845
|
providers: {
|
|
516
|
-
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
517
846
|
enabled: boolean;
|
|
847
|
+
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
518
848
|
clientId: string;
|
|
519
849
|
clientSecret: string;
|
|
520
850
|
icon?: string | undefined;
|
|
@@ -656,6 +986,182 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
656
986
|
enabled?: boolean | undefined;
|
|
657
987
|
} | undefined;
|
|
658
988
|
}>>;
|
|
989
|
+
/**
|
|
990
|
+
* Organization (Multi-tenant) configuration
|
|
991
|
+
* Enables B2B SaaS scenarios where users belong to multiple teams/workspaces
|
|
992
|
+
*/
|
|
993
|
+
organization: z.ZodOptional<z.ZodObject<{
|
|
994
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
995
|
+
allowUserToCreateOrg: z.ZodDefault<z.ZodBoolean>;
|
|
996
|
+
defaultRole: z.ZodDefault<z.ZodString>;
|
|
997
|
+
creatorRole: z.ZodDefault<z.ZodString>;
|
|
998
|
+
}, "strip", z.ZodTypeAny, {
|
|
999
|
+
enabled: boolean;
|
|
1000
|
+
allowUserToCreateOrg: boolean;
|
|
1001
|
+
defaultRole: string;
|
|
1002
|
+
creatorRole: string;
|
|
1003
|
+
}, {
|
|
1004
|
+
enabled?: boolean | undefined;
|
|
1005
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
1006
|
+
defaultRole?: string | undefined;
|
|
1007
|
+
creatorRole?: string | undefined;
|
|
1008
|
+
}>>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Enterprise authentication configuration (SAML, LDAP, OIDC)
|
|
1011
|
+
*/
|
|
1012
|
+
enterprise: z.ZodOptional<z.ZodObject<{
|
|
1013
|
+
oidc: z.ZodOptional<z.ZodObject<{
|
|
1014
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1015
|
+
issuer: z.ZodString;
|
|
1016
|
+
clientId: z.ZodString;
|
|
1017
|
+
clientSecret: z.ZodString;
|
|
1018
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1019
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1020
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
}, "strip", z.ZodTypeAny, {
|
|
1023
|
+
enabled: boolean;
|
|
1024
|
+
clientId: string;
|
|
1025
|
+
clientSecret: string;
|
|
1026
|
+
scopes: string[];
|
|
1027
|
+
issuer: string;
|
|
1028
|
+
icon?: string | undefined;
|
|
1029
|
+
displayName?: string | undefined;
|
|
1030
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1031
|
+
}, {
|
|
1032
|
+
clientId: string;
|
|
1033
|
+
clientSecret: string;
|
|
1034
|
+
issuer: string;
|
|
1035
|
+
icon?: string | undefined;
|
|
1036
|
+
enabled?: boolean | undefined;
|
|
1037
|
+
scopes?: string[] | undefined;
|
|
1038
|
+
displayName?: string | undefined;
|
|
1039
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1040
|
+
}>>;
|
|
1041
|
+
saml: z.ZodOptional<z.ZodObject<{
|
|
1042
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1043
|
+
entryPoint: z.ZodString;
|
|
1044
|
+
cert: z.ZodString;
|
|
1045
|
+
issuer: z.ZodString;
|
|
1046
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha256", "sha512"]>>;
|
|
1047
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1048
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1049
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
}, "strip", z.ZodTypeAny, {
|
|
1051
|
+
enabled: boolean;
|
|
1052
|
+
issuer: string;
|
|
1053
|
+
entryPoint: string;
|
|
1054
|
+
cert: string;
|
|
1055
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
1056
|
+
icon?: string | undefined;
|
|
1057
|
+
displayName?: string | undefined;
|
|
1058
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
issuer: string;
|
|
1061
|
+
entryPoint: string;
|
|
1062
|
+
cert: string;
|
|
1063
|
+
icon?: string | undefined;
|
|
1064
|
+
enabled?: boolean | undefined;
|
|
1065
|
+
displayName?: string | undefined;
|
|
1066
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1067
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
1068
|
+
}>>;
|
|
1069
|
+
ldap: z.ZodOptional<z.ZodObject<{
|
|
1070
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1071
|
+
url: z.ZodString;
|
|
1072
|
+
bindDn: z.ZodString;
|
|
1073
|
+
bindCredentials: z.ZodString;
|
|
1074
|
+
searchBase: z.ZodString;
|
|
1075
|
+
searchFilter: z.ZodString;
|
|
1076
|
+
groupSearchBase: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
}, "strip", z.ZodTypeAny, {
|
|
1080
|
+
url: string;
|
|
1081
|
+
enabled: boolean;
|
|
1082
|
+
bindDn: string;
|
|
1083
|
+
bindCredentials: string;
|
|
1084
|
+
searchBase: string;
|
|
1085
|
+
searchFilter: string;
|
|
1086
|
+
icon?: string | undefined;
|
|
1087
|
+
displayName?: string | undefined;
|
|
1088
|
+
groupSearchBase?: string | undefined;
|
|
1089
|
+
}, {
|
|
1090
|
+
url: string;
|
|
1091
|
+
bindDn: string;
|
|
1092
|
+
bindCredentials: string;
|
|
1093
|
+
searchBase: string;
|
|
1094
|
+
searchFilter: string;
|
|
1095
|
+
icon?: string | undefined;
|
|
1096
|
+
enabled?: boolean | undefined;
|
|
1097
|
+
displayName?: string | undefined;
|
|
1098
|
+
groupSearchBase?: string | undefined;
|
|
1099
|
+
}>>;
|
|
1100
|
+
}, "strip", z.ZodTypeAny, {
|
|
1101
|
+
oidc?: {
|
|
1102
|
+
enabled: boolean;
|
|
1103
|
+
clientId: string;
|
|
1104
|
+
clientSecret: string;
|
|
1105
|
+
scopes: string[];
|
|
1106
|
+
issuer: string;
|
|
1107
|
+
icon?: string | undefined;
|
|
1108
|
+
displayName?: string | undefined;
|
|
1109
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1110
|
+
} | undefined;
|
|
1111
|
+
saml?: {
|
|
1112
|
+
enabled: boolean;
|
|
1113
|
+
issuer: string;
|
|
1114
|
+
entryPoint: string;
|
|
1115
|
+
cert: string;
|
|
1116
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
1117
|
+
icon?: string | undefined;
|
|
1118
|
+
displayName?: string | undefined;
|
|
1119
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1120
|
+
} | undefined;
|
|
1121
|
+
ldap?: {
|
|
1122
|
+
url: string;
|
|
1123
|
+
enabled: boolean;
|
|
1124
|
+
bindDn: string;
|
|
1125
|
+
bindCredentials: string;
|
|
1126
|
+
searchBase: string;
|
|
1127
|
+
searchFilter: string;
|
|
1128
|
+
icon?: string | undefined;
|
|
1129
|
+
displayName?: string | undefined;
|
|
1130
|
+
groupSearchBase?: string | undefined;
|
|
1131
|
+
} | undefined;
|
|
1132
|
+
}, {
|
|
1133
|
+
oidc?: {
|
|
1134
|
+
clientId: string;
|
|
1135
|
+
clientSecret: string;
|
|
1136
|
+
issuer: string;
|
|
1137
|
+
icon?: string | undefined;
|
|
1138
|
+
enabled?: boolean | undefined;
|
|
1139
|
+
scopes?: string[] | undefined;
|
|
1140
|
+
displayName?: string | undefined;
|
|
1141
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
saml?: {
|
|
1144
|
+
issuer: string;
|
|
1145
|
+
entryPoint: string;
|
|
1146
|
+
cert: string;
|
|
1147
|
+
icon?: string | undefined;
|
|
1148
|
+
enabled?: boolean | undefined;
|
|
1149
|
+
displayName?: string | undefined;
|
|
1150
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1151
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
1152
|
+
} | undefined;
|
|
1153
|
+
ldap?: {
|
|
1154
|
+
url: string;
|
|
1155
|
+
bindDn: string;
|
|
1156
|
+
bindCredentials: string;
|
|
1157
|
+
searchBase: string;
|
|
1158
|
+
searchFilter: string;
|
|
1159
|
+
icon?: string | undefined;
|
|
1160
|
+
enabled?: boolean | undefined;
|
|
1161
|
+
displayName?: string | undefined;
|
|
1162
|
+
groupSearchBase?: string | undefined;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
}>>;
|
|
659
1165
|
/**
|
|
660
1166
|
* User field mapping
|
|
661
1167
|
*/
|
|
@@ -703,6 +1209,46 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
703
1209
|
tablePrefix?: string | undefined;
|
|
704
1210
|
schema?: string | undefined;
|
|
705
1211
|
}>>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Database field mapping configuration
|
|
1214
|
+
* Maps ObjectStack standard field names to driver-specific field names.
|
|
1215
|
+
*
|
|
1216
|
+
* This is distinct from the database adapter configuration and provides
|
|
1217
|
+
* instructions for the driver to map our standard schema fields to the
|
|
1218
|
+
* underlying engine's fields (e.g., better-auth uses 'token' instead of 'sessionToken').
|
|
1219
|
+
*/
|
|
1220
|
+
mapping: z.ZodOptional<z.ZodObject<{
|
|
1221
|
+
/**
|
|
1222
|
+
* User model field mapping
|
|
1223
|
+
* Maps ObjectStack User fields to driver fields
|
|
1224
|
+
*/
|
|
1225
|
+
user: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Session model field mapping
|
|
1228
|
+
* Maps ObjectStack Session fields to driver fields
|
|
1229
|
+
*/
|
|
1230
|
+
session: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Account model field mapping
|
|
1233
|
+
* Maps ObjectStack Account fields to driver fields
|
|
1234
|
+
*/
|
|
1235
|
+
account: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Verification token field mapping
|
|
1238
|
+
* Maps ObjectStack VerificationToken fields to driver fields
|
|
1239
|
+
*/
|
|
1240
|
+
verificationToken: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1241
|
+
}, "strip", z.ZodTypeAny, {
|
|
1242
|
+
session: Record<string, string>;
|
|
1243
|
+
account: Record<string, string>;
|
|
1244
|
+
user?: Record<string, string> | undefined;
|
|
1245
|
+
verificationToken?: Record<string, string> | undefined;
|
|
1246
|
+
}, {
|
|
1247
|
+
user?: Record<string, string> | undefined;
|
|
1248
|
+
session?: Record<string, string> | undefined;
|
|
1249
|
+
account?: Record<string, string> | undefined;
|
|
1250
|
+
verificationToken?: Record<string, string> | undefined;
|
|
1251
|
+
}>>;
|
|
706
1252
|
/**
|
|
707
1253
|
* Additional authentication plugins
|
|
708
1254
|
*/
|
|
@@ -895,8 +1441,6 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
895
1441
|
blockDuration: number;
|
|
896
1442
|
skipSuccessfulRequests: boolean;
|
|
897
1443
|
};
|
|
898
|
-
strategies: ("email_password" | "magic_link" | "oauth" | "passkey" | "otp" | "anonymous")[];
|
|
899
|
-
baseUrl: string;
|
|
900
1444
|
session: {
|
|
901
1445
|
expiresIn: number;
|
|
902
1446
|
updateAge: number;
|
|
@@ -907,6 +1451,8 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
907
1451
|
cookieHttpOnly: boolean;
|
|
908
1452
|
cookieDomain?: string | undefined;
|
|
909
1453
|
};
|
|
1454
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
1455
|
+
baseUrl: string;
|
|
910
1456
|
csrf: {
|
|
911
1457
|
enabled: boolean;
|
|
912
1458
|
cookieName: string;
|
|
@@ -941,8 +1487,8 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
941
1487
|
} | undefined;
|
|
942
1488
|
oauth?: {
|
|
943
1489
|
providers: {
|
|
944
|
-
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
945
1490
|
enabled: boolean;
|
|
1491
|
+
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
946
1492
|
clientId: string;
|
|
947
1493
|
clientSecret: string;
|
|
948
1494
|
icon?: string | undefined;
|
|
@@ -959,6 +1505,39 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
959
1505
|
rpId?: string | undefined;
|
|
960
1506
|
allowedOrigins?: string[] | undefined;
|
|
961
1507
|
} | undefined;
|
|
1508
|
+
enterprise?: {
|
|
1509
|
+
oidc?: {
|
|
1510
|
+
enabled: boolean;
|
|
1511
|
+
clientId: string;
|
|
1512
|
+
clientSecret: string;
|
|
1513
|
+
scopes: string[];
|
|
1514
|
+
issuer: string;
|
|
1515
|
+
icon?: string | undefined;
|
|
1516
|
+
displayName?: string | undefined;
|
|
1517
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1518
|
+
} | undefined;
|
|
1519
|
+
saml?: {
|
|
1520
|
+
enabled: boolean;
|
|
1521
|
+
issuer: string;
|
|
1522
|
+
entryPoint: string;
|
|
1523
|
+
cert: string;
|
|
1524
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
1525
|
+
icon?: string | undefined;
|
|
1526
|
+
displayName?: string | undefined;
|
|
1527
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1528
|
+
} | undefined;
|
|
1529
|
+
ldap?: {
|
|
1530
|
+
url: string;
|
|
1531
|
+
enabled: boolean;
|
|
1532
|
+
bindDn: string;
|
|
1533
|
+
bindCredentials: string;
|
|
1534
|
+
searchBase: string;
|
|
1535
|
+
searchFilter: string;
|
|
1536
|
+
icon?: string | undefined;
|
|
1537
|
+
displayName?: string | undefined;
|
|
1538
|
+
groupSearchBase?: string | undefined;
|
|
1539
|
+
} | undefined;
|
|
1540
|
+
} | undefined;
|
|
962
1541
|
emailPassword?: {
|
|
963
1542
|
enabled: boolean;
|
|
964
1543
|
requireEmailVerification: boolean;
|
|
@@ -971,9 +1550,9 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
971
1550
|
enabled: boolean;
|
|
972
1551
|
expiryTime: number;
|
|
973
1552
|
sendEmail?: ((args_0: {
|
|
1553
|
+
token: string;
|
|
974
1554
|
to: string;
|
|
975
1555
|
link: string;
|
|
976
|
-
token: string;
|
|
977
1556
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
978
1557
|
} | undefined;
|
|
979
1558
|
twoFactor?: {
|
|
@@ -985,12 +1564,24 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
985
1564
|
enabled: boolean;
|
|
986
1565
|
} | undefined;
|
|
987
1566
|
} | undefined;
|
|
1567
|
+
organization?: {
|
|
1568
|
+
enabled: boolean;
|
|
1569
|
+
allowUserToCreateOrg: boolean;
|
|
1570
|
+
defaultRole: string;
|
|
1571
|
+
creatorRole: string;
|
|
1572
|
+
} | undefined;
|
|
988
1573
|
database?: {
|
|
989
1574
|
type: "custom" | "prisma" | "drizzle" | "kysely";
|
|
990
1575
|
tablePrefix: string;
|
|
991
1576
|
connectionString?: string | undefined;
|
|
992
1577
|
schema?: string | undefined;
|
|
993
1578
|
} | undefined;
|
|
1579
|
+
mapping?: {
|
|
1580
|
+
session: Record<string, string>;
|
|
1581
|
+
account: Record<string, string>;
|
|
1582
|
+
user?: Record<string, string> | undefined;
|
|
1583
|
+
verificationToken?: Record<string, string> | undefined;
|
|
1584
|
+
} | undefined;
|
|
994
1585
|
hooks?: {
|
|
995
1586
|
beforeSignIn?: ((args_0: {
|
|
996
1587
|
email: string;
|
|
@@ -1030,7 +1621,7 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1030
1621
|
label: string;
|
|
1031
1622
|
name: string;
|
|
1032
1623
|
secret: string;
|
|
1033
|
-
strategies: ("
|
|
1624
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
1034
1625
|
baseUrl: string;
|
|
1035
1626
|
email?: {
|
|
1036
1627
|
provider: "custom" | "smtp" | "sendgrid" | "mailgun" | "ses" | "resend";
|
|
@@ -1067,6 +1658,49 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1067
1658
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
1068
1659
|
attestation?: "none" | "indirect" | "direct" | "enterprise" | undefined;
|
|
1069
1660
|
} | undefined;
|
|
1661
|
+
enterprise?: {
|
|
1662
|
+
oidc?: {
|
|
1663
|
+
clientId: string;
|
|
1664
|
+
clientSecret: string;
|
|
1665
|
+
issuer: string;
|
|
1666
|
+
icon?: string | undefined;
|
|
1667
|
+
enabled?: boolean | undefined;
|
|
1668
|
+
scopes?: string[] | undefined;
|
|
1669
|
+
displayName?: string | undefined;
|
|
1670
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1671
|
+
} | undefined;
|
|
1672
|
+
saml?: {
|
|
1673
|
+
issuer: string;
|
|
1674
|
+
entryPoint: string;
|
|
1675
|
+
cert: string;
|
|
1676
|
+
icon?: string | undefined;
|
|
1677
|
+
enabled?: boolean | undefined;
|
|
1678
|
+
displayName?: string | undefined;
|
|
1679
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1680
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
1681
|
+
} | undefined;
|
|
1682
|
+
ldap?: {
|
|
1683
|
+
url: string;
|
|
1684
|
+
bindDn: string;
|
|
1685
|
+
bindCredentials: string;
|
|
1686
|
+
searchBase: string;
|
|
1687
|
+
searchFilter: string;
|
|
1688
|
+
icon?: string | undefined;
|
|
1689
|
+
enabled?: boolean | undefined;
|
|
1690
|
+
displayName?: string | undefined;
|
|
1691
|
+
groupSearchBase?: string | undefined;
|
|
1692
|
+
} | undefined;
|
|
1693
|
+
} | undefined;
|
|
1694
|
+
session?: {
|
|
1695
|
+
expiresIn?: number | undefined;
|
|
1696
|
+
updateAge?: number | undefined;
|
|
1697
|
+
cookieName?: string | undefined;
|
|
1698
|
+
cookieSecure?: boolean | undefined;
|
|
1699
|
+
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
1700
|
+
cookieDomain?: string | undefined;
|
|
1701
|
+
cookiePath?: string | undefined;
|
|
1702
|
+
cookieHttpOnly?: boolean | undefined;
|
|
1703
|
+
} | undefined;
|
|
1070
1704
|
emailPassword?: {
|
|
1071
1705
|
enabled?: boolean | undefined;
|
|
1072
1706
|
requireEmailVerification?: boolean | undefined;
|
|
@@ -1079,21 +1713,11 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1079
1713
|
enabled?: boolean | undefined;
|
|
1080
1714
|
expiryTime?: number | undefined;
|
|
1081
1715
|
sendEmail?: ((args_0: {
|
|
1716
|
+
token: string;
|
|
1082
1717
|
to: string;
|
|
1083
1718
|
link: string;
|
|
1084
|
-
token: string;
|
|
1085
1719
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1086
1720
|
} | undefined;
|
|
1087
|
-
session?: {
|
|
1088
|
-
expiresIn?: number | undefined;
|
|
1089
|
-
updateAge?: number | undefined;
|
|
1090
|
-
cookieName?: string | undefined;
|
|
1091
|
-
cookieSecure?: boolean | undefined;
|
|
1092
|
-
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
1093
|
-
cookieDomain?: string | undefined;
|
|
1094
|
-
cookiePath?: string | undefined;
|
|
1095
|
-
cookieHttpOnly?: boolean | undefined;
|
|
1096
|
-
} | undefined;
|
|
1097
1721
|
csrf?: {
|
|
1098
1722
|
enabled?: boolean | undefined;
|
|
1099
1723
|
cookieName?: string | undefined;
|
|
@@ -1114,6 +1738,12 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1114
1738
|
enabled?: boolean | undefined;
|
|
1115
1739
|
} | undefined;
|
|
1116
1740
|
} | undefined;
|
|
1741
|
+
organization?: {
|
|
1742
|
+
enabled?: boolean | undefined;
|
|
1743
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
1744
|
+
defaultRole?: string | undefined;
|
|
1745
|
+
creatorRole?: string | undefined;
|
|
1746
|
+
} | undefined;
|
|
1117
1747
|
userFieldMapping?: {
|
|
1118
1748
|
email?: string | undefined;
|
|
1119
1749
|
image?: string | undefined;
|
|
@@ -1129,6 +1759,12 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1129
1759
|
tablePrefix?: string | undefined;
|
|
1130
1760
|
schema?: string | undefined;
|
|
1131
1761
|
} | undefined;
|
|
1762
|
+
mapping?: {
|
|
1763
|
+
user?: Record<string, string> | undefined;
|
|
1764
|
+
session?: Record<string, string> | undefined;
|
|
1765
|
+
account?: Record<string, string> | undefined;
|
|
1766
|
+
verificationToken?: Record<string, string> | undefined;
|
|
1767
|
+
} | undefined;
|
|
1132
1768
|
plugins?: {
|
|
1133
1769
|
name: string;
|
|
1134
1770
|
options?: Record<string, any> | undefined;
|
|
@@ -1246,29 +1882,29 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1246
1882
|
link: z.ZodString;
|
|
1247
1883
|
token: z.ZodString;
|
|
1248
1884
|
}, "strip", z.ZodTypeAny, {
|
|
1885
|
+
token: string;
|
|
1249
1886
|
to: string;
|
|
1250
1887
|
link: string;
|
|
1251
|
-
token: string;
|
|
1252
1888
|
}, {
|
|
1889
|
+
token: string;
|
|
1253
1890
|
to: string;
|
|
1254
1891
|
link: string;
|
|
1255
|
-
token: string;
|
|
1256
1892
|
}>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>>;
|
|
1257
1893
|
}, "strip", z.ZodTypeAny, {
|
|
1258
1894
|
enabled: boolean;
|
|
1259
1895
|
expiryTime: number;
|
|
1260
1896
|
sendEmail?: ((args_0: {
|
|
1897
|
+
token: string;
|
|
1261
1898
|
to: string;
|
|
1262
1899
|
link: string;
|
|
1263
|
-
token: string;
|
|
1264
1900
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1265
1901
|
}, {
|
|
1266
1902
|
enabled?: boolean | undefined;
|
|
1267
1903
|
expiryTime?: number | undefined;
|
|
1268
1904
|
sendEmail?: ((args_0: {
|
|
1905
|
+
token: string;
|
|
1269
1906
|
to: string;
|
|
1270
1907
|
link: string;
|
|
1271
|
-
token: string;
|
|
1272
1908
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1273
1909
|
}>>;
|
|
1274
1910
|
/**
|
|
@@ -1310,8 +1946,8 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1310
1946
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1311
1947
|
icon: z.ZodOptional<z.ZodString>;
|
|
1312
1948
|
}, "strip", z.ZodTypeAny, {
|
|
1313
|
-
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
1314
1949
|
enabled: boolean;
|
|
1950
|
+
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
1315
1951
|
clientId: string;
|
|
1316
1952
|
clientSecret: string;
|
|
1317
1953
|
icon?: string | undefined;
|
|
@@ -1330,8 +1966,8 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1330
1966
|
}>, "many">;
|
|
1331
1967
|
}, "strip", z.ZodTypeAny, {
|
|
1332
1968
|
providers: {
|
|
1333
|
-
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
1334
1969
|
enabled: boolean;
|
|
1970
|
+
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
1335
1971
|
clientId: string;
|
|
1336
1972
|
clientSecret: string;
|
|
1337
1973
|
icon?: string | undefined;
|
|
@@ -1473,6 +2109,182 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1473
2109
|
enabled?: boolean | undefined;
|
|
1474
2110
|
} | undefined;
|
|
1475
2111
|
}>>;
|
|
2112
|
+
/**
|
|
2113
|
+
* Organization (Multi-tenant) configuration
|
|
2114
|
+
* Enables B2B SaaS scenarios where users belong to multiple teams/workspaces
|
|
2115
|
+
*/
|
|
2116
|
+
organization: z.ZodOptional<z.ZodObject<{
|
|
2117
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2118
|
+
allowUserToCreateOrg: z.ZodDefault<z.ZodBoolean>;
|
|
2119
|
+
defaultRole: z.ZodDefault<z.ZodString>;
|
|
2120
|
+
creatorRole: z.ZodDefault<z.ZodString>;
|
|
2121
|
+
}, "strip", z.ZodTypeAny, {
|
|
2122
|
+
enabled: boolean;
|
|
2123
|
+
allowUserToCreateOrg: boolean;
|
|
2124
|
+
defaultRole: string;
|
|
2125
|
+
creatorRole: string;
|
|
2126
|
+
}, {
|
|
2127
|
+
enabled?: boolean | undefined;
|
|
2128
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
2129
|
+
defaultRole?: string | undefined;
|
|
2130
|
+
creatorRole?: string | undefined;
|
|
2131
|
+
}>>;
|
|
2132
|
+
/**
|
|
2133
|
+
* Enterprise authentication configuration (SAML, LDAP, OIDC)
|
|
2134
|
+
*/
|
|
2135
|
+
enterprise: z.ZodOptional<z.ZodObject<{
|
|
2136
|
+
oidc: z.ZodOptional<z.ZodObject<{
|
|
2137
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2138
|
+
issuer: z.ZodString;
|
|
2139
|
+
clientId: z.ZodString;
|
|
2140
|
+
clientSecret: z.ZodString;
|
|
2141
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2142
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2143
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2145
|
+
}, "strip", z.ZodTypeAny, {
|
|
2146
|
+
enabled: boolean;
|
|
2147
|
+
clientId: string;
|
|
2148
|
+
clientSecret: string;
|
|
2149
|
+
scopes: string[];
|
|
2150
|
+
issuer: string;
|
|
2151
|
+
icon?: string | undefined;
|
|
2152
|
+
displayName?: string | undefined;
|
|
2153
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2154
|
+
}, {
|
|
2155
|
+
clientId: string;
|
|
2156
|
+
clientSecret: string;
|
|
2157
|
+
issuer: string;
|
|
2158
|
+
icon?: string | undefined;
|
|
2159
|
+
enabled?: boolean | undefined;
|
|
2160
|
+
scopes?: string[] | undefined;
|
|
2161
|
+
displayName?: string | undefined;
|
|
2162
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2163
|
+
}>>;
|
|
2164
|
+
saml: z.ZodOptional<z.ZodObject<{
|
|
2165
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2166
|
+
entryPoint: z.ZodString;
|
|
2167
|
+
cert: z.ZodString;
|
|
2168
|
+
issuer: z.ZodString;
|
|
2169
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha256", "sha512"]>>;
|
|
2170
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2171
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
2172
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2173
|
+
}, "strip", z.ZodTypeAny, {
|
|
2174
|
+
enabled: boolean;
|
|
2175
|
+
issuer: string;
|
|
2176
|
+
entryPoint: string;
|
|
2177
|
+
cert: string;
|
|
2178
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
2179
|
+
icon?: string | undefined;
|
|
2180
|
+
displayName?: string | undefined;
|
|
2181
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2182
|
+
}, {
|
|
2183
|
+
issuer: string;
|
|
2184
|
+
entryPoint: string;
|
|
2185
|
+
cert: string;
|
|
2186
|
+
icon?: string | undefined;
|
|
2187
|
+
enabled?: boolean | undefined;
|
|
2188
|
+
displayName?: string | undefined;
|
|
2189
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2190
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
2191
|
+
}>>;
|
|
2192
|
+
ldap: z.ZodOptional<z.ZodObject<{
|
|
2193
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2194
|
+
url: z.ZodString;
|
|
2195
|
+
bindDn: z.ZodString;
|
|
2196
|
+
bindCredentials: z.ZodString;
|
|
2197
|
+
searchBase: z.ZodString;
|
|
2198
|
+
searchFilter: z.ZodString;
|
|
2199
|
+
groupSearchBase: z.ZodOptional<z.ZodString>;
|
|
2200
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
2201
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2202
|
+
}, "strip", z.ZodTypeAny, {
|
|
2203
|
+
url: string;
|
|
2204
|
+
enabled: boolean;
|
|
2205
|
+
bindDn: string;
|
|
2206
|
+
bindCredentials: string;
|
|
2207
|
+
searchBase: string;
|
|
2208
|
+
searchFilter: string;
|
|
2209
|
+
icon?: string | undefined;
|
|
2210
|
+
displayName?: string | undefined;
|
|
2211
|
+
groupSearchBase?: string | undefined;
|
|
2212
|
+
}, {
|
|
2213
|
+
url: string;
|
|
2214
|
+
bindDn: string;
|
|
2215
|
+
bindCredentials: string;
|
|
2216
|
+
searchBase: string;
|
|
2217
|
+
searchFilter: string;
|
|
2218
|
+
icon?: string | undefined;
|
|
2219
|
+
enabled?: boolean | undefined;
|
|
2220
|
+
displayName?: string | undefined;
|
|
2221
|
+
groupSearchBase?: string | undefined;
|
|
2222
|
+
}>>;
|
|
2223
|
+
}, "strip", z.ZodTypeAny, {
|
|
2224
|
+
oidc?: {
|
|
2225
|
+
enabled: boolean;
|
|
2226
|
+
clientId: string;
|
|
2227
|
+
clientSecret: string;
|
|
2228
|
+
scopes: string[];
|
|
2229
|
+
issuer: string;
|
|
2230
|
+
icon?: string | undefined;
|
|
2231
|
+
displayName?: string | undefined;
|
|
2232
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2233
|
+
} | undefined;
|
|
2234
|
+
saml?: {
|
|
2235
|
+
enabled: boolean;
|
|
2236
|
+
issuer: string;
|
|
2237
|
+
entryPoint: string;
|
|
2238
|
+
cert: string;
|
|
2239
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
2240
|
+
icon?: string | undefined;
|
|
2241
|
+
displayName?: string | undefined;
|
|
2242
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2243
|
+
} | undefined;
|
|
2244
|
+
ldap?: {
|
|
2245
|
+
url: string;
|
|
2246
|
+
enabled: boolean;
|
|
2247
|
+
bindDn: string;
|
|
2248
|
+
bindCredentials: string;
|
|
2249
|
+
searchBase: string;
|
|
2250
|
+
searchFilter: string;
|
|
2251
|
+
icon?: string | undefined;
|
|
2252
|
+
displayName?: string | undefined;
|
|
2253
|
+
groupSearchBase?: string | undefined;
|
|
2254
|
+
} | undefined;
|
|
2255
|
+
}, {
|
|
2256
|
+
oidc?: {
|
|
2257
|
+
clientId: string;
|
|
2258
|
+
clientSecret: string;
|
|
2259
|
+
issuer: string;
|
|
2260
|
+
icon?: string | undefined;
|
|
2261
|
+
enabled?: boolean | undefined;
|
|
2262
|
+
scopes?: string[] | undefined;
|
|
2263
|
+
displayName?: string | undefined;
|
|
2264
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2265
|
+
} | undefined;
|
|
2266
|
+
saml?: {
|
|
2267
|
+
issuer: string;
|
|
2268
|
+
entryPoint: string;
|
|
2269
|
+
cert: string;
|
|
2270
|
+
icon?: string | undefined;
|
|
2271
|
+
enabled?: boolean | undefined;
|
|
2272
|
+
displayName?: string | undefined;
|
|
2273
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2274
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
2275
|
+
} | undefined;
|
|
2276
|
+
ldap?: {
|
|
2277
|
+
url: string;
|
|
2278
|
+
bindDn: string;
|
|
2279
|
+
bindCredentials: string;
|
|
2280
|
+
searchBase: string;
|
|
2281
|
+
searchFilter: string;
|
|
2282
|
+
icon?: string | undefined;
|
|
2283
|
+
enabled?: boolean | undefined;
|
|
2284
|
+
displayName?: string | undefined;
|
|
2285
|
+
groupSearchBase?: string | undefined;
|
|
2286
|
+
} | undefined;
|
|
2287
|
+
}>>;
|
|
1476
2288
|
/**
|
|
1477
2289
|
* User field mapping
|
|
1478
2290
|
*/
|
|
@@ -1520,6 +2332,46 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1520
2332
|
tablePrefix?: string | undefined;
|
|
1521
2333
|
schema?: string | undefined;
|
|
1522
2334
|
}>>;
|
|
2335
|
+
/**
|
|
2336
|
+
* Database field mapping configuration
|
|
2337
|
+
* Maps ObjectStack standard field names to driver-specific field names.
|
|
2338
|
+
*
|
|
2339
|
+
* This is distinct from the database adapter configuration and provides
|
|
2340
|
+
* instructions for the driver to map our standard schema fields to the
|
|
2341
|
+
* underlying engine's fields (e.g., better-auth uses 'token' instead of 'sessionToken').
|
|
2342
|
+
*/
|
|
2343
|
+
mapping: z.ZodOptional<z.ZodObject<{
|
|
2344
|
+
/**
|
|
2345
|
+
* User model field mapping
|
|
2346
|
+
* Maps ObjectStack User fields to driver fields
|
|
2347
|
+
*/
|
|
2348
|
+
user: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2349
|
+
/**
|
|
2350
|
+
* Session model field mapping
|
|
2351
|
+
* Maps ObjectStack Session fields to driver fields
|
|
2352
|
+
*/
|
|
2353
|
+
session: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2354
|
+
/**
|
|
2355
|
+
* Account model field mapping
|
|
2356
|
+
* Maps ObjectStack Account fields to driver fields
|
|
2357
|
+
*/
|
|
2358
|
+
account: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2359
|
+
/**
|
|
2360
|
+
* Verification token field mapping
|
|
2361
|
+
* Maps ObjectStack VerificationToken fields to driver fields
|
|
2362
|
+
*/
|
|
2363
|
+
verificationToken: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2364
|
+
}, "strip", z.ZodTypeAny, {
|
|
2365
|
+
session: Record<string, string>;
|
|
2366
|
+
account: Record<string, string>;
|
|
2367
|
+
user?: Record<string, string> | undefined;
|
|
2368
|
+
verificationToken?: Record<string, string> | undefined;
|
|
2369
|
+
}, {
|
|
2370
|
+
user?: Record<string, string> | undefined;
|
|
2371
|
+
session?: Record<string, string> | undefined;
|
|
2372
|
+
account?: Record<string, string> | undefined;
|
|
2373
|
+
verificationToken?: Record<string, string> | undefined;
|
|
2374
|
+
}>>;
|
|
1523
2375
|
/**
|
|
1524
2376
|
* Additional authentication plugins
|
|
1525
2377
|
*/
|
|
@@ -1712,8 +2564,6 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1712
2564
|
blockDuration: number;
|
|
1713
2565
|
skipSuccessfulRequests: boolean;
|
|
1714
2566
|
};
|
|
1715
|
-
strategies: ("email_password" | "magic_link" | "oauth" | "passkey" | "otp" | "anonymous")[];
|
|
1716
|
-
baseUrl: string;
|
|
1717
2567
|
session: {
|
|
1718
2568
|
expiresIn: number;
|
|
1719
2569
|
updateAge: number;
|
|
@@ -1724,6 +2574,8 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1724
2574
|
cookieHttpOnly: boolean;
|
|
1725
2575
|
cookieDomain?: string | undefined;
|
|
1726
2576
|
};
|
|
2577
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
2578
|
+
baseUrl: string;
|
|
1727
2579
|
csrf: {
|
|
1728
2580
|
enabled: boolean;
|
|
1729
2581
|
cookieName: string;
|
|
@@ -1758,8 +2610,8 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1758
2610
|
} | undefined;
|
|
1759
2611
|
oauth?: {
|
|
1760
2612
|
providers: {
|
|
1761
|
-
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
1762
2613
|
enabled: boolean;
|
|
2614
|
+
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
1763
2615
|
clientId: string;
|
|
1764
2616
|
clientSecret: string;
|
|
1765
2617
|
icon?: string | undefined;
|
|
@@ -1776,6 +2628,39 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1776
2628
|
rpId?: string | undefined;
|
|
1777
2629
|
allowedOrigins?: string[] | undefined;
|
|
1778
2630
|
} | undefined;
|
|
2631
|
+
enterprise?: {
|
|
2632
|
+
oidc?: {
|
|
2633
|
+
enabled: boolean;
|
|
2634
|
+
clientId: string;
|
|
2635
|
+
clientSecret: string;
|
|
2636
|
+
scopes: string[];
|
|
2637
|
+
issuer: string;
|
|
2638
|
+
icon?: string | undefined;
|
|
2639
|
+
displayName?: string | undefined;
|
|
2640
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2641
|
+
} | undefined;
|
|
2642
|
+
saml?: {
|
|
2643
|
+
enabled: boolean;
|
|
2644
|
+
issuer: string;
|
|
2645
|
+
entryPoint: string;
|
|
2646
|
+
cert: string;
|
|
2647
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
2648
|
+
icon?: string | undefined;
|
|
2649
|
+
displayName?: string | undefined;
|
|
2650
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2651
|
+
} | undefined;
|
|
2652
|
+
ldap?: {
|
|
2653
|
+
url: string;
|
|
2654
|
+
enabled: boolean;
|
|
2655
|
+
bindDn: string;
|
|
2656
|
+
bindCredentials: string;
|
|
2657
|
+
searchBase: string;
|
|
2658
|
+
searchFilter: string;
|
|
2659
|
+
icon?: string | undefined;
|
|
2660
|
+
displayName?: string | undefined;
|
|
2661
|
+
groupSearchBase?: string | undefined;
|
|
2662
|
+
} | undefined;
|
|
2663
|
+
} | undefined;
|
|
1779
2664
|
emailPassword?: {
|
|
1780
2665
|
enabled: boolean;
|
|
1781
2666
|
requireEmailVerification: boolean;
|
|
@@ -1788,9 +2673,9 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1788
2673
|
enabled: boolean;
|
|
1789
2674
|
expiryTime: number;
|
|
1790
2675
|
sendEmail?: ((args_0: {
|
|
2676
|
+
token: string;
|
|
1791
2677
|
to: string;
|
|
1792
2678
|
link: string;
|
|
1793
|
-
token: string;
|
|
1794
2679
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1795
2680
|
} | undefined;
|
|
1796
2681
|
twoFactor?: {
|
|
@@ -1802,12 +2687,24 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1802
2687
|
enabled: boolean;
|
|
1803
2688
|
} | undefined;
|
|
1804
2689
|
} | undefined;
|
|
2690
|
+
organization?: {
|
|
2691
|
+
enabled: boolean;
|
|
2692
|
+
allowUserToCreateOrg: boolean;
|
|
2693
|
+
defaultRole: string;
|
|
2694
|
+
creatorRole: string;
|
|
2695
|
+
} | undefined;
|
|
1805
2696
|
database?: {
|
|
1806
2697
|
type: "custom" | "prisma" | "drizzle" | "kysely";
|
|
1807
2698
|
tablePrefix: string;
|
|
1808
2699
|
connectionString?: string | undefined;
|
|
1809
2700
|
schema?: string | undefined;
|
|
1810
2701
|
} | undefined;
|
|
2702
|
+
mapping?: {
|
|
2703
|
+
session: Record<string, string>;
|
|
2704
|
+
account: Record<string, string>;
|
|
2705
|
+
user?: Record<string, string> | undefined;
|
|
2706
|
+
verificationToken?: Record<string, string> | undefined;
|
|
2707
|
+
} | undefined;
|
|
1811
2708
|
hooks?: {
|
|
1812
2709
|
beforeSignIn?: ((args_0: {
|
|
1813
2710
|
email: string;
|
|
@@ -1847,7 +2744,7 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1847
2744
|
label: string;
|
|
1848
2745
|
name: string;
|
|
1849
2746
|
secret: string;
|
|
1850
|
-
strategies: ("
|
|
2747
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
1851
2748
|
baseUrl: string;
|
|
1852
2749
|
email?: {
|
|
1853
2750
|
provider: "custom" | "smtp" | "sendgrid" | "mailgun" | "ses" | "resend";
|
|
@@ -1884,6 +2781,49 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1884
2781
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
1885
2782
|
attestation?: "none" | "indirect" | "direct" | "enterprise" | undefined;
|
|
1886
2783
|
} | undefined;
|
|
2784
|
+
enterprise?: {
|
|
2785
|
+
oidc?: {
|
|
2786
|
+
clientId: string;
|
|
2787
|
+
clientSecret: string;
|
|
2788
|
+
issuer: string;
|
|
2789
|
+
icon?: string | undefined;
|
|
2790
|
+
enabled?: boolean | undefined;
|
|
2791
|
+
scopes?: string[] | undefined;
|
|
2792
|
+
displayName?: string | undefined;
|
|
2793
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2794
|
+
} | undefined;
|
|
2795
|
+
saml?: {
|
|
2796
|
+
issuer: string;
|
|
2797
|
+
entryPoint: string;
|
|
2798
|
+
cert: string;
|
|
2799
|
+
icon?: string | undefined;
|
|
2800
|
+
enabled?: boolean | undefined;
|
|
2801
|
+
displayName?: string | undefined;
|
|
2802
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2803
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
2804
|
+
} | undefined;
|
|
2805
|
+
ldap?: {
|
|
2806
|
+
url: string;
|
|
2807
|
+
bindDn: string;
|
|
2808
|
+
bindCredentials: string;
|
|
2809
|
+
searchBase: string;
|
|
2810
|
+
searchFilter: string;
|
|
2811
|
+
icon?: string | undefined;
|
|
2812
|
+
enabled?: boolean | undefined;
|
|
2813
|
+
displayName?: string | undefined;
|
|
2814
|
+
groupSearchBase?: string | undefined;
|
|
2815
|
+
} | undefined;
|
|
2816
|
+
} | undefined;
|
|
2817
|
+
session?: {
|
|
2818
|
+
expiresIn?: number | undefined;
|
|
2819
|
+
updateAge?: number | undefined;
|
|
2820
|
+
cookieName?: string | undefined;
|
|
2821
|
+
cookieSecure?: boolean | undefined;
|
|
2822
|
+
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
2823
|
+
cookieDomain?: string | undefined;
|
|
2824
|
+
cookiePath?: string | undefined;
|
|
2825
|
+
cookieHttpOnly?: boolean | undefined;
|
|
2826
|
+
} | undefined;
|
|
1887
2827
|
emailPassword?: {
|
|
1888
2828
|
enabled?: boolean | undefined;
|
|
1889
2829
|
requireEmailVerification?: boolean | undefined;
|
|
@@ -1896,21 +2836,11 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1896
2836
|
enabled?: boolean | undefined;
|
|
1897
2837
|
expiryTime?: number | undefined;
|
|
1898
2838
|
sendEmail?: ((args_0: {
|
|
2839
|
+
token: string;
|
|
1899
2840
|
to: string;
|
|
1900
2841
|
link: string;
|
|
1901
|
-
token: string;
|
|
1902
2842
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1903
2843
|
} | undefined;
|
|
1904
|
-
session?: {
|
|
1905
|
-
expiresIn?: number | undefined;
|
|
1906
|
-
updateAge?: number | undefined;
|
|
1907
|
-
cookieName?: string | undefined;
|
|
1908
|
-
cookieSecure?: boolean | undefined;
|
|
1909
|
-
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
1910
|
-
cookieDomain?: string | undefined;
|
|
1911
|
-
cookiePath?: string | undefined;
|
|
1912
|
-
cookieHttpOnly?: boolean | undefined;
|
|
1913
|
-
} | undefined;
|
|
1914
2844
|
csrf?: {
|
|
1915
2845
|
enabled?: boolean | undefined;
|
|
1916
2846
|
cookieName?: string | undefined;
|
|
@@ -1931,6 +2861,12 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1931
2861
|
enabled?: boolean | undefined;
|
|
1932
2862
|
} | undefined;
|
|
1933
2863
|
} | undefined;
|
|
2864
|
+
organization?: {
|
|
2865
|
+
enabled?: boolean | undefined;
|
|
2866
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
2867
|
+
defaultRole?: string | undefined;
|
|
2868
|
+
creatorRole?: string | undefined;
|
|
2869
|
+
} | undefined;
|
|
1934
2870
|
userFieldMapping?: {
|
|
1935
2871
|
email?: string | undefined;
|
|
1936
2872
|
image?: string | undefined;
|
|
@@ -1946,6 +2882,12 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1946
2882
|
tablePrefix?: string | undefined;
|
|
1947
2883
|
schema?: string | undefined;
|
|
1948
2884
|
} | undefined;
|
|
2885
|
+
mapping?: {
|
|
2886
|
+
user?: Record<string, string> | undefined;
|
|
2887
|
+
session?: Record<string, string> | undefined;
|
|
2888
|
+
account?: Record<string, string> | undefined;
|
|
2889
|
+
verificationToken?: Record<string, string> | undefined;
|
|
2890
|
+
} | undefined;
|
|
1949
2891
|
plugins?: {
|
|
1950
2892
|
name: string;
|
|
1951
2893
|
options?: Record<string, any> | undefined;
|
|
@@ -2003,8 +2945,6 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2003
2945
|
blockDuration: number;
|
|
2004
2946
|
skipSuccessfulRequests: boolean;
|
|
2005
2947
|
};
|
|
2006
|
-
strategies: ("email_password" | "magic_link" | "oauth" | "passkey" | "otp" | "anonymous")[];
|
|
2007
|
-
baseUrl: string;
|
|
2008
2948
|
session: {
|
|
2009
2949
|
expiresIn: number;
|
|
2010
2950
|
updateAge: number;
|
|
@@ -2015,6 +2955,8 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2015
2955
|
cookieHttpOnly: boolean;
|
|
2016
2956
|
cookieDomain?: string | undefined;
|
|
2017
2957
|
};
|
|
2958
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
2959
|
+
baseUrl: string;
|
|
2018
2960
|
csrf: {
|
|
2019
2961
|
enabled: boolean;
|
|
2020
2962
|
cookieName: string;
|
|
@@ -2049,8 +2991,8 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2049
2991
|
} | undefined;
|
|
2050
2992
|
oauth?: {
|
|
2051
2993
|
providers: {
|
|
2052
|
-
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
2053
2994
|
enabled: boolean;
|
|
2995
|
+
provider: "custom" | "google" | "github" | "facebook" | "twitter" | "linkedin" | "microsoft" | "apple" | "discord" | "gitlab";
|
|
2054
2996
|
clientId: string;
|
|
2055
2997
|
clientSecret: string;
|
|
2056
2998
|
icon?: string | undefined;
|
|
@@ -2067,6 +3009,39 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2067
3009
|
rpId?: string | undefined;
|
|
2068
3010
|
allowedOrigins?: string[] | undefined;
|
|
2069
3011
|
} | undefined;
|
|
3012
|
+
enterprise?: {
|
|
3013
|
+
oidc?: {
|
|
3014
|
+
enabled: boolean;
|
|
3015
|
+
clientId: string;
|
|
3016
|
+
clientSecret: string;
|
|
3017
|
+
scopes: string[];
|
|
3018
|
+
issuer: string;
|
|
3019
|
+
icon?: string | undefined;
|
|
3020
|
+
displayName?: string | undefined;
|
|
3021
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
3022
|
+
} | undefined;
|
|
3023
|
+
saml?: {
|
|
3024
|
+
enabled: boolean;
|
|
3025
|
+
issuer: string;
|
|
3026
|
+
entryPoint: string;
|
|
3027
|
+
cert: string;
|
|
3028
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
3029
|
+
icon?: string | undefined;
|
|
3030
|
+
displayName?: string | undefined;
|
|
3031
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
3032
|
+
} | undefined;
|
|
3033
|
+
ldap?: {
|
|
3034
|
+
url: string;
|
|
3035
|
+
enabled: boolean;
|
|
3036
|
+
bindDn: string;
|
|
3037
|
+
bindCredentials: string;
|
|
3038
|
+
searchBase: string;
|
|
3039
|
+
searchFilter: string;
|
|
3040
|
+
icon?: string | undefined;
|
|
3041
|
+
displayName?: string | undefined;
|
|
3042
|
+
groupSearchBase?: string | undefined;
|
|
3043
|
+
} | undefined;
|
|
3044
|
+
} | undefined;
|
|
2070
3045
|
emailPassword?: {
|
|
2071
3046
|
enabled: boolean;
|
|
2072
3047
|
requireEmailVerification: boolean;
|
|
@@ -2079,9 +3054,9 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2079
3054
|
enabled: boolean;
|
|
2080
3055
|
expiryTime: number;
|
|
2081
3056
|
sendEmail?: ((args_0: {
|
|
3057
|
+
token: string;
|
|
2082
3058
|
to: string;
|
|
2083
3059
|
link: string;
|
|
2084
|
-
token: string;
|
|
2085
3060
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
2086
3061
|
} | undefined;
|
|
2087
3062
|
twoFactor?: {
|
|
@@ -2093,12 +3068,24 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2093
3068
|
enabled: boolean;
|
|
2094
3069
|
} | undefined;
|
|
2095
3070
|
} | undefined;
|
|
3071
|
+
organization?: {
|
|
3072
|
+
enabled: boolean;
|
|
3073
|
+
allowUserToCreateOrg: boolean;
|
|
3074
|
+
defaultRole: string;
|
|
3075
|
+
creatorRole: string;
|
|
3076
|
+
} | undefined;
|
|
2096
3077
|
database?: {
|
|
2097
3078
|
type: "custom" | "prisma" | "drizzle" | "kysely";
|
|
2098
3079
|
tablePrefix: string;
|
|
2099
3080
|
connectionString?: string | undefined;
|
|
2100
3081
|
schema?: string | undefined;
|
|
2101
3082
|
} | undefined;
|
|
3083
|
+
mapping?: {
|
|
3084
|
+
session: Record<string, string>;
|
|
3085
|
+
account: Record<string, string>;
|
|
3086
|
+
user?: Record<string, string> | undefined;
|
|
3087
|
+
verificationToken?: Record<string, string> | undefined;
|
|
3088
|
+
} | undefined;
|
|
2102
3089
|
hooks?: {
|
|
2103
3090
|
beforeSignIn?: ((args_0: {
|
|
2104
3091
|
email: string;
|
|
@@ -2141,7 +3128,7 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2141
3128
|
label: string;
|
|
2142
3129
|
name: string;
|
|
2143
3130
|
secret: string;
|
|
2144
|
-
strategies: ("
|
|
3131
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
2145
3132
|
baseUrl: string;
|
|
2146
3133
|
email?: {
|
|
2147
3134
|
provider: "custom" | "smtp" | "sendgrid" | "mailgun" | "ses" | "resend";
|
|
@@ -2178,6 +3165,49 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2178
3165
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
2179
3166
|
attestation?: "none" | "indirect" | "direct" | "enterprise" | undefined;
|
|
2180
3167
|
} | undefined;
|
|
3168
|
+
enterprise?: {
|
|
3169
|
+
oidc?: {
|
|
3170
|
+
clientId: string;
|
|
3171
|
+
clientSecret: string;
|
|
3172
|
+
issuer: string;
|
|
3173
|
+
icon?: string | undefined;
|
|
3174
|
+
enabled?: boolean | undefined;
|
|
3175
|
+
scopes?: string[] | undefined;
|
|
3176
|
+
displayName?: string | undefined;
|
|
3177
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
3178
|
+
} | undefined;
|
|
3179
|
+
saml?: {
|
|
3180
|
+
issuer: string;
|
|
3181
|
+
entryPoint: string;
|
|
3182
|
+
cert: string;
|
|
3183
|
+
icon?: string | undefined;
|
|
3184
|
+
enabled?: boolean | undefined;
|
|
3185
|
+
displayName?: string | undefined;
|
|
3186
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
3187
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
3188
|
+
} | undefined;
|
|
3189
|
+
ldap?: {
|
|
3190
|
+
url: string;
|
|
3191
|
+
bindDn: string;
|
|
3192
|
+
bindCredentials: string;
|
|
3193
|
+
searchBase: string;
|
|
3194
|
+
searchFilter: string;
|
|
3195
|
+
icon?: string | undefined;
|
|
3196
|
+
enabled?: boolean | undefined;
|
|
3197
|
+
displayName?: string | undefined;
|
|
3198
|
+
groupSearchBase?: string | undefined;
|
|
3199
|
+
} | undefined;
|
|
3200
|
+
} | undefined;
|
|
3201
|
+
session?: {
|
|
3202
|
+
expiresIn?: number | undefined;
|
|
3203
|
+
updateAge?: number | undefined;
|
|
3204
|
+
cookieName?: string | undefined;
|
|
3205
|
+
cookieSecure?: boolean | undefined;
|
|
3206
|
+
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
3207
|
+
cookieDomain?: string | undefined;
|
|
3208
|
+
cookiePath?: string | undefined;
|
|
3209
|
+
cookieHttpOnly?: boolean | undefined;
|
|
3210
|
+
} | undefined;
|
|
2181
3211
|
emailPassword?: {
|
|
2182
3212
|
enabled?: boolean | undefined;
|
|
2183
3213
|
requireEmailVerification?: boolean | undefined;
|
|
@@ -2190,21 +3220,11 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2190
3220
|
enabled?: boolean | undefined;
|
|
2191
3221
|
expiryTime?: number | undefined;
|
|
2192
3222
|
sendEmail?: ((args_0: {
|
|
3223
|
+
token: string;
|
|
2193
3224
|
to: string;
|
|
2194
3225
|
link: string;
|
|
2195
|
-
token: string;
|
|
2196
3226
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
2197
3227
|
} | undefined;
|
|
2198
|
-
session?: {
|
|
2199
|
-
expiresIn?: number | undefined;
|
|
2200
|
-
updateAge?: number | undefined;
|
|
2201
|
-
cookieName?: string | undefined;
|
|
2202
|
-
cookieSecure?: boolean | undefined;
|
|
2203
|
-
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
2204
|
-
cookieDomain?: string | undefined;
|
|
2205
|
-
cookiePath?: string | undefined;
|
|
2206
|
-
cookieHttpOnly?: boolean | undefined;
|
|
2207
|
-
} | undefined;
|
|
2208
3228
|
csrf?: {
|
|
2209
3229
|
enabled?: boolean | undefined;
|
|
2210
3230
|
cookieName?: string | undefined;
|
|
@@ -2225,6 +3245,12 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2225
3245
|
enabled?: boolean | undefined;
|
|
2226
3246
|
} | undefined;
|
|
2227
3247
|
} | undefined;
|
|
3248
|
+
organization?: {
|
|
3249
|
+
enabled?: boolean | undefined;
|
|
3250
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
3251
|
+
defaultRole?: string | undefined;
|
|
3252
|
+
creatorRole?: string | undefined;
|
|
3253
|
+
} | undefined;
|
|
2228
3254
|
userFieldMapping?: {
|
|
2229
3255
|
email?: string | undefined;
|
|
2230
3256
|
image?: string | undefined;
|
|
@@ -2240,6 +3266,12 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2240
3266
|
tablePrefix?: string | undefined;
|
|
2241
3267
|
schema?: string | undefined;
|
|
2242
3268
|
} | undefined;
|
|
3269
|
+
mapping?: {
|
|
3270
|
+
user?: Record<string, string> | undefined;
|
|
3271
|
+
session?: Record<string, string> | undefined;
|
|
3272
|
+
account?: Record<string, string> | undefined;
|
|
3273
|
+
verificationToken?: Record<string, string> | undefined;
|
|
3274
|
+
} | undefined;
|
|
2243
3275
|
plugins?: {
|
|
2244
3276
|
name: string;
|
|
2245
3277
|
options?: Record<string, any> | undefined;
|