@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
package/dist/ui/action.zod.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export declare const ActionSchema: z.ZodObject<{
|
|
|
98
98
|
/** Access */
|
|
99
99
|
visible: z.ZodOptional<z.ZodString>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
type: "url" | "script" | "api" | "
|
|
101
|
+
type: "url" | "script" | "api" | "modal" | "flow";
|
|
102
102
|
label: string;
|
|
103
103
|
name: string;
|
|
104
104
|
refreshAfter: boolean;
|
|
@@ -134,7 +134,7 @@ export declare const ActionSchema: z.ZodObject<{
|
|
|
134
134
|
}[] | undefined;
|
|
135
135
|
required?: boolean | undefined;
|
|
136
136
|
}[] | undefined;
|
|
137
|
-
type?: "url" | "script" | "api" | "
|
|
137
|
+
type?: "url" | "script" | "api" | "modal" | "flow" | undefined;
|
|
138
138
|
icon?: string | undefined;
|
|
139
139
|
target?: string | undefined;
|
|
140
140
|
execute?: string | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI Protocol Exports
|
|
3
|
+
*
|
|
4
|
+
* Presentation & Interaction
|
|
5
|
+
* - App, Page, View (Grid/Kanban)
|
|
6
|
+
* - Dashboard (Widgets), Report
|
|
7
|
+
* - Action (Triggers)
|
|
8
|
+
*/
|
|
9
|
+
export * from './app.zod';
|
|
10
|
+
export * from './view.zod';
|
|
11
|
+
export * from './dashboard.zod';
|
|
12
|
+
export * from './report.zod';
|
|
13
|
+
export * from './action.zod';
|
|
14
|
+
export * from './page.zod';
|
|
15
|
+
export * from './widget.zod';
|
|
16
|
+
export * from './theme.zod';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/dist/ui/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UI Protocol Exports
|
|
4
|
+
*
|
|
5
|
+
* Presentation & Interaction
|
|
6
|
+
* - App, Page, View (Grid/Kanban)
|
|
7
|
+
* - Dashboard (Widgets), Report
|
|
8
|
+
* - Action (Triggers)
|
|
9
|
+
*/
|
|
10
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
__exportStar(require("./app.zod"), exports);
|
|
26
|
+
__exportStar(require("./view.zod"), exports);
|
|
27
|
+
__exportStar(require("./dashboard.zod"), exports);
|
|
28
|
+
__exportStar(require("./report.zod"), exports);
|
|
29
|
+
__exportStar(require("./action.zod"), exports);
|
|
30
|
+
__exportStar(require("./page.zod"), exports);
|
|
31
|
+
__exportStar(require("./widget.zod"), exports);
|
|
32
|
+
__exportStar(require("./theme.zod"), exports);
|
package/dist/ui/theme.zod.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ export declare const ColorPaletteSchema: z.ZodObject<{
|
|
|
27
27
|
error?: string | undefined;
|
|
28
28
|
warning?: string | undefined;
|
|
29
29
|
info?: string | undefined;
|
|
30
|
-
success?: string | undefined;
|
|
31
30
|
secondary?: string | undefined;
|
|
32
31
|
accent?: string | undefined;
|
|
32
|
+
success?: string | undefined;
|
|
33
33
|
background?: string | undefined;
|
|
34
34
|
surface?: string | undefined;
|
|
35
35
|
textSecondary?: string | undefined;
|
|
@@ -45,9 +45,9 @@ export declare const ColorPaletteSchema: z.ZodObject<{
|
|
|
45
45
|
error?: string | undefined;
|
|
46
46
|
warning?: string | undefined;
|
|
47
47
|
info?: string | undefined;
|
|
48
|
-
success?: string | undefined;
|
|
49
48
|
secondary?: string | undefined;
|
|
50
49
|
accent?: string | undefined;
|
|
50
|
+
success?: string | undefined;
|
|
51
51
|
background?: string | undefined;
|
|
52
52
|
surface?: string | undefined;
|
|
53
53
|
textSecondary?: string | undefined;
|
|
@@ -503,9 +503,9 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
503
503
|
error?: string | undefined;
|
|
504
504
|
warning?: string | undefined;
|
|
505
505
|
info?: string | undefined;
|
|
506
|
-
success?: string | undefined;
|
|
507
506
|
secondary?: string | undefined;
|
|
508
507
|
accent?: string | undefined;
|
|
508
|
+
success?: string | undefined;
|
|
509
509
|
background?: string | undefined;
|
|
510
510
|
surface?: string | undefined;
|
|
511
511
|
textSecondary?: string | undefined;
|
|
@@ -521,9 +521,9 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
521
521
|
error?: string | undefined;
|
|
522
522
|
warning?: string | undefined;
|
|
523
523
|
info?: string | undefined;
|
|
524
|
-
success?: string | undefined;
|
|
525
524
|
secondary?: string | undefined;
|
|
526
525
|
accent?: string | undefined;
|
|
526
|
+
success?: string | undefined;
|
|
527
527
|
background?: string | undefined;
|
|
528
528
|
surface?: string | undefined;
|
|
529
529
|
textSecondary?: string | undefined;
|
|
@@ -947,9 +947,9 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
947
947
|
error?: string | undefined;
|
|
948
948
|
warning?: string | undefined;
|
|
949
949
|
info?: string | undefined;
|
|
950
|
-
success?: string | undefined;
|
|
951
950
|
secondary?: string | undefined;
|
|
952
951
|
accent?: string | undefined;
|
|
952
|
+
success?: string | undefined;
|
|
953
953
|
background?: string | undefined;
|
|
954
954
|
surface?: string | undefined;
|
|
955
955
|
textSecondary?: string | undefined;
|
|
@@ -1081,9 +1081,9 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
1081
1081
|
error?: string | undefined;
|
|
1082
1082
|
warning?: string | undefined;
|
|
1083
1083
|
info?: string | undefined;
|
|
1084
|
-
success?: string | undefined;
|
|
1085
1084
|
secondary?: string | undefined;
|
|
1086
1085
|
accent?: string | undefined;
|
|
1086
|
+
success?: string | undefined;
|
|
1087
1087
|
background?: string | undefined;
|
|
1088
1088
|
surface?: string | undefined;
|
|
1089
1089
|
textSecondary?: string | undefined;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Account",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Account": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique account identifier"
|
|
10
|
+
},
|
|
11
|
+
"userId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Associated user ID"
|
|
14
|
+
},
|
|
15
|
+
"type": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"oauth",
|
|
19
|
+
"oidc",
|
|
20
|
+
"email",
|
|
21
|
+
"credentials",
|
|
22
|
+
"saml",
|
|
23
|
+
"ldap"
|
|
24
|
+
],
|
|
25
|
+
"description": "Account type"
|
|
26
|
+
},
|
|
27
|
+
"provider": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Provider name"
|
|
30
|
+
},
|
|
31
|
+
"providerAccountId": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Provider account ID"
|
|
34
|
+
},
|
|
35
|
+
"refreshToken": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "OAuth refresh token"
|
|
38
|
+
},
|
|
39
|
+
"accessToken": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "OAuth access token"
|
|
42
|
+
},
|
|
43
|
+
"expiresAt": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"description": "Token expiry timestamp (Unix)"
|
|
46
|
+
},
|
|
47
|
+
"tokenType": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "OAuth token type"
|
|
50
|
+
},
|
|
51
|
+
"scope": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "OAuth scope"
|
|
54
|
+
},
|
|
55
|
+
"idToken": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "OAuth ID token"
|
|
58
|
+
},
|
|
59
|
+
"sessionState": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Session state"
|
|
62
|
+
},
|
|
63
|
+
"createdAt": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"format": "date-time",
|
|
66
|
+
"description": "Account creation timestamp"
|
|
67
|
+
},
|
|
68
|
+
"updatedAt": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"format": "date-time",
|
|
71
|
+
"description": "Last update timestamp"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"id",
|
|
76
|
+
"userId",
|
|
77
|
+
"type",
|
|
78
|
+
"provider",
|
|
79
|
+
"providerAccountId",
|
|
80
|
+
"createdAt",
|
|
81
|
+
"updatedAt"
|
|
82
|
+
],
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
87
|
+
}
|
|
@@ -381,6 +381,199 @@
|
|
|
381
381
|
},
|
|
382
382
|
"additionalProperties": false
|
|
383
383
|
},
|
|
384
|
+
"organization": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"properties": {
|
|
387
|
+
"enabled": {
|
|
388
|
+
"type": "boolean",
|
|
389
|
+
"default": false,
|
|
390
|
+
"description": "Enable organization/multi-tenant features"
|
|
391
|
+
},
|
|
392
|
+
"allowUserToCreateOrg": {
|
|
393
|
+
"type": "boolean",
|
|
394
|
+
"default": true,
|
|
395
|
+
"description": "Allow users to create organizations"
|
|
396
|
+
},
|
|
397
|
+
"defaultRole": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"default": "member",
|
|
400
|
+
"description": "Default role for new members"
|
|
401
|
+
},
|
|
402
|
+
"creatorRole": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"default": "owner",
|
|
405
|
+
"description": "Role assigned to organization creator"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"additionalProperties": false,
|
|
409
|
+
"description": "Organization/multi-tenant configuration"
|
|
410
|
+
},
|
|
411
|
+
"enterprise": {
|
|
412
|
+
"type": "object",
|
|
413
|
+
"properties": {
|
|
414
|
+
"oidc": {
|
|
415
|
+
"type": "object",
|
|
416
|
+
"properties": {
|
|
417
|
+
"enabled": {
|
|
418
|
+
"type": "boolean",
|
|
419
|
+
"default": false
|
|
420
|
+
},
|
|
421
|
+
"issuer": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"format": "uri",
|
|
424
|
+
"description": "OIDC Issuer URL (.well-known/openid-configuration)"
|
|
425
|
+
},
|
|
426
|
+
"clientId": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"description": "OIDC client ID"
|
|
429
|
+
},
|
|
430
|
+
"clientSecret": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"description": "OIDC client secret"
|
|
433
|
+
},
|
|
434
|
+
"scopes": {
|
|
435
|
+
"type": "array",
|
|
436
|
+
"items": {
|
|
437
|
+
"type": "string"
|
|
438
|
+
},
|
|
439
|
+
"default": [
|
|
440
|
+
"openid",
|
|
441
|
+
"profile",
|
|
442
|
+
"email"
|
|
443
|
+
],
|
|
444
|
+
"description": "OIDC scopes"
|
|
445
|
+
},
|
|
446
|
+
"attributeMapping": {
|
|
447
|
+
"type": "object",
|
|
448
|
+
"additionalProperties": {
|
|
449
|
+
"type": "string"
|
|
450
|
+
},
|
|
451
|
+
"description": "Map IdP claims to User fields"
|
|
452
|
+
},
|
|
453
|
+
"displayName": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"description": "Display name for the provider button"
|
|
456
|
+
},
|
|
457
|
+
"icon": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"description": "Icon URL or identifier"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"required": [
|
|
463
|
+
"issuer",
|
|
464
|
+
"clientId",
|
|
465
|
+
"clientSecret"
|
|
466
|
+
],
|
|
467
|
+
"additionalProperties": false,
|
|
468
|
+
"description": "OpenID Connect configuration"
|
|
469
|
+
},
|
|
470
|
+
"saml": {
|
|
471
|
+
"type": "object",
|
|
472
|
+
"properties": {
|
|
473
|
+
"enabled": {
|
|
474
|
+
"type": "boolean",
|
|
475
|
+
"default": false
|
|
476
|
+
},
|
|
477
|
+
"entryPoint": {
|
|
478
|
+
"type": "string",
|
|
479
|
+
"format": "uri",
|
|
480
|
+
"description": "IdP SSO URL"
|
|
481
|
+
},
|
|
482
|
+
"cert": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"description": "IdP Public Certificate (PEM format)"
|
|
485
|
+
},
|
|
486
|
+
"issuer": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"description": "Entity ID of the IdP"
|
|
489
|
+
},
|
|
490
|
+
"signatureAlgorithm": {
|
|
491
|
+
"type": "string",
|
|
492
|
+
"enum": [
|
|
493
|
+
"sha256",
|
|
494
|
+
"sha512"
|
|
495
|
+
],
|
|
496
|
+
"default": "sha256",
|
|
497
|
+
"description": "Signature algorithm"
|
|
498
|
+
},
|
|
499
|
+
"attributeMapping": {
|
|
500
|
+
"type": "object",
|
|
501
|
+
"additionalProperties": {
|
|
502
|
+
"type": "string"
|
|
503
|
+
},
|
|
504
|
+
"description": "Map SAML attributes to User fields"
|
|
505
|
+
},
|
|
506
|
+
"displayName": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"description": "Display name for the provider button"
|
|
509
|
+
},
|
|
510
|
+
"icon": {
|
|
511
|
+
"type": "string",
|
|
512
|
+
"description": "Icon URL or identifier"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"required": [
|
|
516
|
+
"entryPoint",
|
|
517
|
+
"cert",
|
|
518
|
+
"issuer"
|
|
519
|
+
],
|
|
520
|
+
"additionalProperties": false,
|
|
521
|
+
"description": "SAML 2.0 configuration"
|
|
522
|
+
},
|
|
523
|
+
"ldap": {
|
|
524
|
+
"type": "object",
|
|
525
|
+
"properties": {
|
|
526
|
+
"enabled": {
|
|
527
|
+
"type": "boolean",
|
|
528
|
+
"default": false
|
|
529
|
+
},
|
|
530
|
+
"url": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"format": "uri",
|
|
533
|
+
"description": "LDAP Server URL (ldap:// or ldaps://)"
|
|
534
|
+
},
|
|
535
|
+
"bindDn": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"description": "Bind DN for LDAP authentication"
|
|
538
|
+
},
|
|
539
|
+
"bindCredentials": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"description": "Bind credentials"
|
|
542
|
+
},
|
|
543
|
+
"searchBase": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"description": "Search base DN"
|
|
546
|
+
},
|
|
547
|
+
"searchFilter": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"description": "Search filter"
|
|
550
|
+
},
|
|
551
|
+
"groupSearchBase": {
|
|
552
|
+
"type": "string",
|
|
553
|
+
"description": "Group search base DN"
|
|
554
|
+
},
|
|
555
|
+
"displayName": {
|
|
556
|
+
"type": "string",
|
|
557
|
+
"description": "Display name for the provider button"
|
|
558
|
+
},
|
|
559
|
+
"icon": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"description": "Icon URL or identifier"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
"required": [
|
|
565
|
+
"url",
|
|
566
|
+
"bindDn",
|
|
567
|
+
"bindCredentials",
|
|
568
|
+
"searchBase",
|
|
569
|
+
"searchFilter"
|
|
570
|
+
],
|
|
571
|
+
"additionalProperties": false,
|
|
572
|
+
"description": "LDAP/Active Directory configuration"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"additionalProperties": false
|
|
576
|
+
},
|
|
384
577
|
"userFieldMapping": {
|
|
385
578
|
"type": "object",
|
|
386
579
|
"properties": {
|
|
@@ -455,6 +648,48 @@
|
|
|
455
648
|
],
|
|
456
649
|
"additionalProperties": false
|
|
457
650
|
},
|
|
651
|
+
"mapping": {
|
|
652
|
+
"type": "object",
|
|
653
|
+
"properties": {
|
|
654
|
+
"user": {
|
|
655
|
+
"type": "object",
|
|
656
|
+
"additionalProperties": {
|
|
657
|
+
"type": "string"
|
|
658
|
+
},
|
|
659
|
+
"description": "User field mapping (e.g., { \"emailVerified\": \"email_verified\" })"
|
|
660
|
+
},
|
|
661
|
+
"session": {
|
|
662
|
+
"type": "object",
|
|
663
|
+
"additionalProperties": {
|
|
664
|
+
"type": "string"
|
|
665
|
+
},
|
|
666
|
+
"default": {
|
|
667
|
+
"sessionToken": "token",
|
|
668
|
+
"expires": "expiresAt"
|
|
669
|
+
},
|
|
670
|
+
"description": "Session field mapping"
|
|
671
|
+
},
|
|
672
|
+
"account": {
|
|
673
|
+
"type": "object",
|
|
674
|
+
"additionalProperties": {
|
|
675
|
+
"type": "string"
|
|
676
|
+
},
|
|
677
|
+
"default": {
|
|
678
|
+
"providerAccountId": "accountId",
|
|
679
|
+
"provider": "providerId"
|
|
680
|
+
},
|
|
681
|
+
"description": "Account field mapping"
|
|
682
|
+
},
|
|
683
|
+
"verificationToken": {
|
|
684
|
+
"type": "object",
|
|
685
|
+
"additionalProperties": {
|
|
686
|
+
"type": "string"
|
|
687
|
+
},
|
|
688
|
+
"description": "VerificationToken field mapping"
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"additionalProperties": false
|
|
692
|
+
},
|
|
458
693
|
"plugins": {
|
|
459
694
|
"type": "array",
|
|
460
695
|
"items": {
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ChunkingStrategy",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ChunkingStrategy": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "fixed"
|
|
12
|
+
},
|
|
13
|
+
"chunkSize": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"exclusiveMinimum": 0,
|
|
16
|
+
"description": "Fixed chunk size in tokens/chars"
|
|
17
|
+
},
|
|
18
|
+
"chunkOverlap": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"minimum": 0,
|
|
21
|
+
"default": 0,
|
|
22
|
+
"description": "Overlap between chunks"
|
|
23
|
+
},
|
|
24
|
+
"unit": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"tokens",
|
|
28
|
+
"characters"
|
|
29
|
+
],
|
|
30
|
+
"default": "tokens"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"type",
|
|
35
|
+
"chunkSize"
|
|
36
|
+
],
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"type": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"const": "semantic"
|
|
45
|
+
},
|
|
46
|
+
"model": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Model for semantic chunking"
|
|
49
|
+
},
|
|
50
|
+
"minChunkSize": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"exclusiveMinimum": 0,
|
|
53
|
+
"default": 100
|
|
54
|
+
},
|
|
55
|
+
"maxChunkSize": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"exclusiveMinimum": 0,
|
|
58
|
+
"default": 1000
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"type"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"type": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"const": "recursive"
|
|
72
|
+
},
|
|
73
|
+
"separators": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"default": [
|
|
79
|
+
"\n\n",
|
|
80
|
+
"\n",
|
|
81
|
+
" ",
|
|
82
|
+
""
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"chunkSize": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"exclusiveMinimum": 0
|
|
88
|
+
},
|
|
89
|
+
"chunkOverlap": {
|
|
90
|
+
"type": "integer",
|
|
91
|
+
"minimum": 0,
|
|
92
|
+
"default": 0
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": [
|
|
96
|
+
"type",
|
|
97
|
+
"chunkSize"
|
|
98
|
+
],
|
|
99
|
+
"additionalProperties": false
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "object",
|
|
103
|
+
"properties": {
|
|
104
|
+
"type": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"const": "markdown"
|
|
107
|
+
},
|
|
108
|
+
"maxChunkSize": {
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"exclusiveMinimum": 0,
|
|
111
|
+
"default": 1000
|
|
112
|
+
},
|
|
113
|
+
"respectHeaders": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"default": true,
|
|
116
|
+
"description": "Keep headers with content"
|
|
117
|
+
},
|
|
118
|
+
"respectCodeBlocks": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"default": true,
|
|
121
|
+
"description": "Keep code blocks intact"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"type"
|
|
126
|
+
],
|
|
127
|
+
"additionalProperties": false
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
133
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/DatabaseMapping",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"DatabaseMapping": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"user": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"description": "User field mapping (e.g., { \"emailVerified\": \"email_verified\" })"
|
|
13
|
+
},
|
|
14
|
+
"session": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"default": {
|
|
20
|
+
"sessionToken": "token",
|
|
21
|
+
"expires": "expiresAt"
|
|
22
|
+
},
|
|
23
|
+
"description": "Session field mapping"
|
|
24
|
+
},
|
|
25
|
+
"account": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"default": {
|
|
31
|
+
"providerAccountId": "accountId",
|
|
32
|
+
"provider": "providerId"
|
|
33
|
+
},
|
|
34
|
+
"description": "Account field mapping"
|
|
35
|
+
},
|
|
36
|
+
"verificationToken": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"description": "VerificationToken field mapping"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
48
|
+
}
|