@objectstack/spec 0.1.2 → 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.
Files changed (152) hide show
  1. package/README.md +127 -5
  2. package/dist/ai/index.d.ts +14 -0
  3. package/dist/ai/index.d.ts.map +1 -0
  4. package/dist/ai/index.js +29 -0
  5. package/dist/ai/model-registry.zod.d.ts +1389 -0
  6. package/dist/ai/model-registry.zod.d.ts.map +1 -0
  7. package/dist/ai/model-registry.zod.js +164 -0
  8. package/dist/ai/nlq.zod.d.ts +1126 -0
  9. package/dist/ai/nlq.zod.d.ts.map +1 -0
  10. package/dist/ai/nlq.zod.js +246 -0
  11. package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
  12. package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
  13. package/dist/ai/rag-pipeline.zod.js +244 -0
  14. package/dist/api/index.d.ts +9 -0
  15. package/dist/api/index.d.ts.map +1 -0
  16. package/dist/api/index.js +24 -0
  17. package/dist/data/filter.zod.d.ts +295 -0
  18. package/dist/data/filter.zod.d.ts.map +1 -0
  19. package/dist/data/filter.zod.js +226 -0
  20. package/dist/data/index.d.ts +21 -0
  21. package/dist/data/index.d.ts.map +1 -0
  22. package/dist/data/index.js +36 -0
  23. package/dist/data/query.zod.d.ts +386 -3
  24. package/dist/data/query.zod.d.ts.map +1 -1
  25. package/dist/data/query.zod.js +386 -3
  26. package/dist/data/validation.zod.d.ts +349 -0
  27. package/dist/data/validation.zod.d.ts.map +1 -1
  28. package/dist/data/validation.zod.js +395 -0
  29. package/dist/index.d.ts +36 -39
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +64 -47
  32. package/dist/system/auth-protocol.d.ts +175 -0
  33. package/dist/system/auth-protocol.d.ts.map +1 -0
  34. package/dist/system/auth-protocol.js +60 -0
  35. package/dist/system/auth.zod.d.ts +3319 -0
  36. package/dist/system/auth.zod.d.ts.map +1 -0
  37. package/dist/system/auth.zod.js +499 -0
  38. package/dist/system/datasource.zod.d.ts +118 -38
  39. package/dist/system/datasource.zod.d.ts.map +1 -1
  40. package/dist/system/datasource.zod.js +25 -6
  41. package/dist/system/driver.zod.d.ts +106 -0
  42. package/dist/system/driver.zod.d.ts.map +1 -1
  43. package/dist/system/driver.zod.js +47 -0
  44. package/dist/system/identity.zod.d.ts +234 -180
  45. package/dist/system/identity.zod.d.ts.map +1 -1
  46. package/dist/system/identity.zod.js +168 -51
  47. package/dist/system/index.d.ts +28 -0
  48. package/dist/system/index.d.ts.map +1 -0
  49. package/dist/system/index.js +43 -0
  50. package/dist/system/manifest.zod.d.ts +10 -10
  51. package/dist/system/organization.zod.d.ts +179 -0
  52. package/dist/system/organization.zod.d.ts.map +1 -0
  53. package/dist/system/organization.zod.js +129 -0
  54. package/dist/system/policy.zod.d.ts +10 -10
  55. package/dist/ui/action.zod.d.ts +2 -2
  56. package/dist/ui/dashboard.zod.d.ts +10 -10
  57. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  58. package/dist/ui/dashboard.zod.js +3 -2
  59. package/dist/ui/index.d.ts +17 -0
  60. package/dist/ui/index.d.ts.map +1 -0
  61. package/dist/ui/index.js +32 -0
  62. package/dist/ui/report.zod.d.ts +4 -32
  63. package/dist/ui/report.zod.d.ts.map +1 -1
  64. package/dist/ui/report.zod.js +3 -8
  65. package/dist/ui/theme.zod.d.ts +6 -6
  66. package/json-schema/Account.json +87 -0
  67. package/json-schema/AccountLinkingConfig.json +27 -0
  68. package/json-schema/AuthConfig.json +841 -0
  69. package/json-schema/AuthPluginConfig.json +28 -0
  70. package/json-schema/AuthStrategy.json +17 -0
  71. package/json-schema/AuthenticationConfig.json +601 -0
  72. package/json-schema/AuthenticationProvider.json +617 -0
  73. package/json-schema/CSRFConfig.json +31 -0
  74. package/json-schema/ChunkingStrategy.json +133 -0
  75. package/json-schema/ComparisonOperator.json +56 -0
  76. package/json-schema/Dashboard.json +20 -0
  77. package/json-schema/DashboardWidget.json +20 -0
  78. package/json-schema/DatabaseAdapter.json +38 -0
  79. package/json-schema/DatabaseMapping.json +48 -0
  80. package/json-schema/Datasource.json +25 -5
  81. package/json-schema/DatasourceCapabilities.json +25 -5
  82. package/json-schema/DocumentChunk.json +97 -0
  83. package/json-schema/DocumentLoaderConfig.json +69 -0
  84. package/json-schema/DocumentMetadata.json +61 -0
  85. package/json-schema/DriverCapabilities.json +30 -0
  86. package/json-schema/DriverDefinition.json +25 -5
  87. package/json-schema/DriverInterface.json +30 -0
  88. package/json-schema/EmailPasswordConfig.json +43 -0
  89. package/json-schema/EmbeddingModel.json +57 -0
  90. package/json-schema/EnterpriseAuthConfig.json +172 -0
  91. package/json-schema/Entity.json +55 -0
  92. package/json-schema/EqualityOperator.json +14 -0
  93. package/json-schema/FieldOperators.json +108 -0
  94. package/json-schema/FieldSynonymConfig.json +39 -0
  95. package/json-schema/FilterCondition.json +28 -0
  96. package/json-schema/Invitation.json +69 -0
  97. package/json-schema/InvitationStatus.json +15 -0
  98. package/json-schema/LDAPConfig.json +22 -5
  99. package/json-schema/MagicLinkConfig.json +21 -0
  100. package/json-schema/Member.json +46 -0
  101. package/json-schema/ModelCapability.json +47 -0
  102. package/json-schema/ModelConfig.json +181 -0
  103. package/json-schema/ModelLimits.json +45 -0
  104. package/json-schema/ModelPricing.json +28 -0
  105. package/json-schema/ModelProvider.json +19 -0
  106. package/json-schema/ModelRegistry.json +427 -0
  107. package/json-schema/ModelRegistryEntry.json +239 -0
  108. package/json-schema/ModelSelectionCriteria.json +50 -0
  109. package/json-schema/NLQAnalytics.json +106 -0
  110. package/json-schema/NLQFieldMapping.json +40 -0
  111. package/json-schema/NLQModelConfig.json +78 -0
  112. package/json-schema/NLQParseResult.json +252 -0
  113. package/json-schema/NLQRequest.json +110 -0
  114. package/json-schema/NLQResponse.json +288 -0
  115. package/json-schema/NLQTrainingExample.json +120 -0
  116. package/json-schema/NormalizedFilter.json +348 -0
  117. package/json-schema/OAuthProvider.json +66 -0
  118. package/json-schema/OIDCConfig.json +18 -3
  119. package/json-schema/Organization.json +52 -0
  120. package/json-schema/PasskeyConfig.json +54 -0
  121. package/json-schema/PromptTemplate.json +163 -0
  122. package/json-schema/PromptVariable.json +56 -0
  123. package/json-schema/QueryContext.json +72 -0
  124. package/json-schema/QueryFilter.json +34 -0
  125. package/json-schema/QueryIntent.json +21 -0
  126. package/json-schema/QueryTemplate.json +81 -0
  127. package/json-schema/RAGPipelineConfig.json +552 -0
  128. package/json-schema/RAGPipelineStatus.json +66 -0
  129. package/json-schema/RAGQueryRequest.json +64 -0
  130. package/json-schema/RAGQueryResponse.json +108 -0
  131. package/json-schema/RangeOperator.json +41 -0
  132. package/json-schema/RateLimitConfig.json +36 -0
  133. package/json-schema/Report.json +20 -26
  134. package/json-schema/RerankingConfig.json +34 -0
  135. package/json-schema/RetrievalStrategy.json +121 -0
  136. package/json-schema/SAMLConfig.json +17 -3
  137. package/json-schema/Session.json +63 -0
  138. package/json-schema/SessionConfig.json +56 -0
  139. package/json-schema/SetOperator.json +18 -0
  140. package/json-schema/SpecialOperator.json +18 -0
  141. package/json-schema/StandardAuthProvider.json +857 -0
  142. package/json-schema/StringOperator.json +21 -0
  143. package/json-schema/Timeframe.json +68 -0
  144. package/json-schema/TwoFactorConfig.json +40 -0
  145. package/json-schema/User.json +51 -0
  146. package/json-schema/UserFieldMapping.json +47 -0
  147. package/json-schema/VectorStoreConfig.json +82 -0
  148. package/json-schema/VectorStoreProvider.json +21 -0
  149. package/json-schema/VerificationToken.json +36 -0
  150. package/package.json +27 -1
  151. package/json-schema/AuthProtocol.json +0 -17
  152. package/json-schema/AuthProvider.json +0 -171
@@ -0,0 +1,617 @@
1
+ {
2
+ "$ref": "#/definitions/AuthenticationProvider",
3
+ "definitions": {
4
+ "AuthenticationProvider": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "const": "authentication",
10
+ "description": "Provider type identifier"
11
+ },
12
+ "config": {
13
+ "type": "object",
14
+ "properties": {
15
+ "name": {
16
+ "type": "string",
17
+ "pattern": "^[a-z_][a-z0-9_]*$",
18
+ "description": "Configuration name (snake_case)"
19
+ },
20
+ "label": {
21
+ "type": "string",
22
+ "description": "Display label"
23
+ },
24
+ "strategies": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string",
28
+ "enum": [
29
+ "email_password",
30
+ "magic_link",
31
+ "oauth",
32
+ "passkey",
33
+ "otp",
34
+ "anonymous"
35
+ ]
36
+ },
37
+ "minItems": 1,
38
+ "description": "Enabled authentication strategies"
39
+ },
40
+ "baseUrl": {
41
+ "type": "string",
42
+ "format": "uri",
43
+ "description": "Application base URL"
44
+ },
45
+ "secret": {
46
+ "type": "string",
47
+ "minLength": 32,
48
+ "description": "Secret key for signing (min 32 chars)"
49
+ },
50
+ "emailPassword": {
51
+ "type": "object",
52
+ "properties": {
53
+ "enabled": {
54
+ "type": "boolean",
55
+ "default": true
56
+ },
57
+ "requireEmailVerification": {
58
+ "type": "boolean",
59
+ "default": true,
60
+ "description": "Require email verification before login"
61
+ },
62
+ "minPasswordLength": {
63
+ "type": "number",
64
+ "minimum": 6,
65
+ "maximum": 128,
66
+ "default": 8,
67
+ "description": "Minimum password length"
68
+ },
69
+ "requirePasswordComplexity": {
70
+ "type": "boolean",
71
+ "default": true,
72
+ "description": "Require uppercase, lowercase, numbers, symbols"
73
+ },
74
+ "allowPasswordReset": {
75
+ "type": "boolean",
76
+ "default": true,
77
+ "description": "Enable password reset functionality"
78
+ },
79
+ "passwordResetExpiry": {
80
+ "type": "number",
81
+ "default": 3600,
82
+ "description": "Password reset token expiry in seconds"
83
+ }
84
+ },
85
+ "additionalProperties": false
86
+ },
87
+ "magicLink": {
88
+ "type": "object",
89
+ "properties": {
90
+ "enabled": {
91
+ "type": "boolean",
92
+ "default": true
93
+ },
94
+ "expiryTime": {
95
+ "type": "number",
96
+ "default": 900,
97
+ "description": "Magic link expiry time in seconds (default 15 min)"
98
+ }
99
+ },
100
+ "additionalProperties": false
101
+ },
102
+ "passkey": {
103
+ "type": "object",
104
+ "properties": {
105
+ "enabled": {
106
+ "type": "boolean",
107
+ "default": false
108
+ },
109
+ "rpName": {
110
+ "type": "string",
111
+ "description": "Relying Party name"
112
+ },
113
+ "rpId": {
114
+ "type": "string",
115
+ "description": "Relying Party ID (defaults to domain)"
116
+ },
117
+ "allowedOrigins": {
118
+ "type": "array",
119
+ "items": {
120
+ "type": "string",
121
+ "format": "uri"
122
+ },
123
+ "description": "Allowed origins for WebAuthn"
124
+ },
125
+ "userVerification": {
126
+ "type": "string",
127
+ "enum": [
128
+ "required",
129
+ "preferred",
130
+ "discouraged"
131
+ ],
132
+ "default": "preferred"
133
+ },
134
+ "attestation": {
135
+ "type": "string",
136
+ "enum": [
137
+ "none",
138
+ "indirect",
139
+ "direct",
140
+ "enterprise"
141
+ ],
142
+ "default": "none"
143
+ }
144
+ },
145
+ "required": [
146
+ "rpName"
147
+ ],
148
+ "additionalProperties": false
149
+ },
150
+ "oauth": {
151
+ "type": "object",
152
+ "properties": {
153
+ "providers": {
154
+ "type": "array",
155
+ "items": {
156
+ "type": "object",
157
+ "properties": {
158
+ "provider": {
159
+ "type": "string",
160
+ "enum": [
161
+ "google",
162
+ "github",
163
+ "facebook",
164
+ "twitter",
165
+ "linkedin",
166
+ "microsoft",
167
+ "apple",
168
+ "discord",
169
+ "gitlab",
170
+ "custom"
171
+ ],
172
+ "description": "OAuth provider type"
173
+ },
174
+ "clientId": {
175
+ "type": "string",
176
+ "description": "OAuth client ID"
177
+ },
178
+ "clientSecret": {
179
+ "type": "string",
180
+ "description": "OAuth client secret (typically from ENV)"
181
+ },
182
+ "scopes": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "string"
186
+ },
187
+ "description": "Requested OAuth scopes"
188
+ },
189
+ "redirectUri": {
190
+ "type": "string",
191
+ "format": "uri",
192
+ "description": "OAuth callback URL"
193
+ },
194
+ "enabled": {
195
+ "type": "boolean",
196
+ "default": true,
197
+ "description": "Whether this provider is enabled"
198
+ },
199
+ "displayName": {
200
+ "type": "string",
201
+ "description": "Display name for the provider button"
202
+ },
203
+ "icon": {
204
+ "type": "string",
205
+ "description": "Icon URL or identifier"
206
+ }
207
+ },
208
+ "required": [
209
+ "provider",
210
+ "clientId",
211
+ "clientSecret"
212
+ ],
213
+ "additionalProperties": false
214
+ },
215
+ "minItems": 1
216
+ }
217
+ },
218
+ "required": [
219
+ "providers"
220
+ ],
221
+ "additionalProperties": false
222
+ },
223
+ "session": {
224
+ "type": "object",
225
+ "properties": {
226
+ "expiresIn": {
227
+ "type": "number",
228
+ "default": 604800,
229
+ "description": "Session expiry in seconds (default 7 days)"
230
+ },
231
+ "updateAge": {
232
+ "type": "number",
233
+ "default": 86400,
234
+ "description": "Session update interval in seconds (default 1 day)"
235
+ },
236
+ "cookieName": {
237
+ "type": "string",
238
+ "default": "session_token",
239
+ "description": "Session cookie name"
240
+ },
241
+ "cookieSecure": {
242
+ "type": "boolean",
243
+ "default": true,
244
+ "description": "Use secure cookies (HTTPS only)"
245
+ },
246
+ "cookieSameSite": {
247
+ "type": "string",
248
+ "enum": [
249
+ "strict",
250
+ "lax",
251
+ "none"
252
+ ],
253
+ "default": "lax",
254
+ "description": "SameSite cookie attribute"
255
+ },
256
+ "cookieDomain": {
257
+ "type": "string",
258
+ "description": "Cookie domain"
259
+ },
260
+ "cookiePath": {
261
+ "type": "string",
262
+ "default": "/",
263
+ "description": "Cookie path"
264
+ },
265
+ "cookieHttpOnly": {
266
+ "type": "boolean",
267
+ "default": true,
268
+ "description": "HttpOnly cookie attribute"
269
+ }
270
+ },
271
+ "additionalProperties": false,
272
+ "default": {}
273
+ },
274
+ "rateLimit": {
275
+ "type": "object",
276
+ "properties": {
277
+ "enabled": {
278
+ "type": "boolean",
279
+ "default": true
280
+ },
281
+ "maxAttempts": {
282
+ "type": "number",
283
+ "default": 5,
284
+ "description": "Maximum login attempts"
285
+ },
286
+ "windowMs": {
287
+ "type": "number",
288
+ "default": 900000,
289
+ "description": "Time window in milliseconds (default 15 min)"
290
+ },
291
+ "blockDuration": {
292
+ "type": "number",
293
+ "default": 900000,
294
+ "description": "Block duration after max attempts in ms"
295
+ },
296
+ "skipSuccessfulRequests": {
297
+ "type": "boolean",
298
+ "default": false,
299
+ "description": "Only count failed requests"
300
+ }
301
+ },
302
+ "additionalProperties": false,
303
+ "default": {}
304
+ },
305
+ "csrf": {
306
+ "type": "object",
307
+ "properties": {
308
+ "enabled": {
309
+ "type": "boolean",
310
+ "default": true
311
+ },
312
+ "tokenLength": {
313
+ "type": "number",
314
+ "default": 32,
315
+ "description": "CSRF token length"
316
+ },
317
+ "cookieName": {
318
+ "type": "string",
319
+ "default": "csrf_token",
320
+ "description": "CSRF cookie name"
321
+ },
322
+ "headerName": {
323
+ "type": "string",
324
+ "default": "X-CSRF-Token",
325
+ "description": "CSRF header name"
326
+ }
327
+ },
328
+ "additionalProperties": false,
329
+ "default": {}
330
+ },
331
+ "accountLinking": {
332
+ "type": "object",
333
+ "properties": {
334
+ "enabled": {
335
+ "type": "boolean",
336
+ "default": true,
337
+ "description": "Allow account linking"
338
+ },
339
+ "autoLink": {
340
+ "type": "boolean",
341
+ "default": false,
342
+ "description": "Automatically link accounts with same email"
343
+ },
344
+ "requireVerification": {
345
+ "type": "boolean",
346
+ "default": true,
347
+ "description": "Require email verification before linking"
348
+ }
349
+ },
350
+ "additionalProperties": false,
351
+ "default": {}
352
+ },
353
+ "twoFactor": {
354
+ "type": "object",
355
+ "properties": {
356
+ "enabled": {
357
+ "type": "boolean",
358
+ "default": false
359
+ },
360
+ "issuer": {
361
+ "type": "string",
362
+ "description": "TOTP issuer name"
363
+ },
364
+ "qrCodeSize": {
365
+ "type": "number",
366
+ "default": 200,
367
+ "description": "QR code size in pixels"
368
+ },
369
+ "backupCodes": {
370
+ "type": "object",
371
+ "properties": {
372
+ "enabled": {
373
+ "type": "boolean",
374
+ "default": true
375
+ },
376
+ "count": {
377
+ "type": "number",
378
+ "default": 10,
379
+ "description": "Number of backup codes to generate"
380
+ }
381
+ },
382
+ "additionalProperties": false
383
+ }
384
+ },
385
+ "additionalProperties": false
386
+ },
387
+ "userFieldMapping": {
388
+ "type": "object",
389
+ "properties": {
390
+ "id": {
391
+ "type": "string",
392
+ "default": "id",
393
+ "description": "User ID field"
394
+ },
395
+ "email": {
396
+ "type": "string",
397
+ "default": "email",
398
+ "description": "Email field"
399
+ },
400
+ "name": {
401
+ "type": "string",
402
+ "default": "name",
403
+ "description": "Name field"
404
+ },
405
+ "image": {
406
+ "type": "string",
407
+ "default": "image",
408
+ "description": "Profile image field"
409
+ },
410
+ "emailVerified": {
411
+ "type": "string",
412
+ "default": "email_verified",
413
+ "description": "Email verification status field"
414
+ },
415
+ "createdAt": {
416
+ "type": "string",
417
+ "default": "created_at",
418
+ "description": "Created timestamp field"
419
+ },
420
+ "updatedAt": {
421
+ "type": "string",
422
+ "default": "updated_at",
423
+ "description": "Updated timestamp field"
424
+ }
425
+ },
426
+ "additionalProperties": false,
427
+ "default": {}
428
+ },
429
+ "database": {
430
+ "type": "object",
431
+ "properties": {
432
+ "type": {
433
+ "type": "string",
434
+ "enum": [
435
+ "prisma",
436
+ "drizzle",
437
+ "kysely",
438
+ "custom"
439
+ ],
440
+ "description": "Database adapter type"
441
+ },
442
+ "connectionString": {
443
+ "type": "string",
444
+ "description": "Database connection string"
445
+ },
446
+ "tablePrefix": {
447
+ "type": "string",
448
+ "default": "auth_",
449
+ "description": "Prefix for auth tables"
450
+ },
451
+ "schema": {
452
+ "type": "string",
453
+ "description": "Database schema name"
454
+ }
455
+ },
456
+ "required": [
457
+ "type"
458
+ ],
459
+ "additionalProperties": false
460
+ },
461
+ "plugins": {
462
+ "type": "array",
463
+ "items": {
464
+ "type": "object",
465
+ "properties": {
466
+ "name": {
467
+ "type": "string",
468
+ "description": "Plugin name"
469
+ },
470
+ "enabled": {
471
+ "type": "boolean",
472
+ "default": true
473
+ },
474
+ "options": {
475
+ "type": "object",
476
+ "additionalProperties": {},
477
+ "description": "Plugin-specific options"
478
+ }
479
+ },
480
+ "required": [
481
+ "name"
482
+ ],
483
+ "additionalProperties": false
484
+ },
485
+ "default": []
486
+ },
487
+ "hooks": {
488
+ "type": "object",
489
+ "properties": {},
490
+ "additionalProperties": false,
491
+ "description": "Authentication lifecycle hooks"
492
+ },
493
+ "security": {
494
+ "type": "object",
495
+ "properties": {
496
+ "allowedOrigins": {
497
+ "type": "array",
498
+ "items": {
499
+ "type": "string"
500
+ },
501
+ "description": "CORS allowed origins"
502
+ },
503
+ "trustProxy": {
504
+ "type": "boolean",
505
+ "default": false,
506
+ "description": "Trust proxy headers"
507
+ },
508
+ "ipRateLimiting": {
509
+ "type": "boolean",
510
+ "default": true,
511
+ "description": "Enable IP-based rate limiting"
512
+ },
513
+ "sessionFingerprinting": {
514
+ "type": "boolean",
515
+ "default": true,
516
+ "description": "Enable session fingerprinting"
517
+ },
518
+ "maxSessions": {
519
+ "type": "number",
520
+ "default": 5,
521
+ "description": "Maximum concurrent sessions per user"
522
+ }
523
+ },
524
+ "additionalProperties": false,
525
+ "description": "Advanced security settings"
526
+ },
527
+ "email": {
528
+ "type": "object",
529
+ "properties": {
530
+ "from": {
531
+ "type": "string",
532
+ "format": "email",
533
+ "description": "From email address"
534
+ },
535
+ "fromName": {
536
+ "type": "string",
537
+ "description": "From name"
538
+ },
539
+ "provider": {
540
+ "type": "string",
541
+ "enum": [
542
+ "smtp",
543
+ "sendgrid",
544
+ "mailgun",
545
+ "ses",
546
+ "resend",
547
+ "custom"
548
+ ],
549
+ "description": "Email provider"
550
+ },
551
+ "config": {
552
+ "type": "object",
553
+ "additionalProperties": {},
554
+ "description": "Provider-specific configuration"
555
+ }
556
+ },
557
+ "required": [
558
+ "from",
559
+ "provider"
560
+ ],
561
+ "additionalProperties": false,
562
+ "description": "Email configuration"
563
+ },
564
+ "ui": {
565
+ "type": "object",
566
+ "properties": {
567
+ "brandName": {
568
+ "type": "string",
569
+ "description": "Brand name displayed in auth UI"
570
+ },
571
+ "logo": {
572
+ "type": "string",
573
+ "description": "Logo URL"
574
+ },
575
+ "primaryColor": {
576
+ "type": "string",
577
+ "description": "Primary brand color (hex)"
578
+ },
579
+ "customCss": {
580
+ "type": "string",
581
+ "description": "Custom CSS for auth pages"
582
+ }
583
+ },
584
+ "additionalProperties": false,
585
+ "description": "UI customization"
586
+ },
587
+ "active": {
588
+ "type": "boolean",
589
+ "default": true,
590
+ "description": "Whether this provider is active"
591
+ },
592
+ "allowRegistration": {
593
+ "type": "boolean",
594
+ "default": true,
595
+ "description": "Allow new user registration"
596
+ }
597
+ },
598
+ "required": [
599
+ "name",
600
+ "label",
601
+ "strategies",
602
+ "baseUrl",
603
+ "secret"
604
+ ],
605
+ "additionalProperties": false,
606
+ "description": "Authentication configuration"
607
+ }
608
+ },
609
+ "required": [
610
+ "type",
611
+ "config"
612
+ ],
613
+ "additionalProperties": false
614
+ }
615
+ },
616
+ "$schema": "http://json-schema.org/draft-07/schema#"
617
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$ref": "#/definitions/CSRFConfig",
3
+ "definitions": {
4
+ "CSRFConfig": {
5
+ "type": "object",
6
+ "properties": {
7
+ "enabled": {
8
+ "type": "boolean",
9
+ "default": true
10
+ },
11
+ "tokenLength": {
12
+ "type": "number",
13
+ "default": 32,
14
+ "description": "CSRF token length"
15
+ },
16
+ "cookieName": {
17
+ "type": "string",
18
+ "default": "csrf_token",
19
+ "description": "CSRF cookie name"
20
+ },
21
+ "headerName": {
22
+ "type": "string",
23
+ "default": "X-CSRF-Token",
24
+ "description": "CSRF header name"
25
+ }
26
+ },
27
+ "additionalProperties": false
28
+ }
29
+ },
30
+ "$schema": "http://json-schema.org/draft-07/schema#"
31
+ }