@vertesia/common 1.5.0-dev.20260717.131047Z → 1.5.0-dev.20260725.083715Z
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/lib/apps.d.ts +184 -48
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js +21 -9
- package/lib/apps.js.map +1 -1
- package/lib/audit-trail.d.ts +61 -1
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js +15 -0
- package/lib/audit-trail.js.map +1 -1
- package/lib/environment.d.ts +2 -0
- package/lib/environment.d.ts.map +1 -1
- package/lib/environment.js.map +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -1
- package/lib/interaction.d.ts +77 -1
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js +48 -0
- package/lib/interaction.js.map +1 -1
- package/lib/platform-event.d.ts +37 -3
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/project.d.ts +119 -20
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +65 -0
- package/lib/project.js.map +1 -1
- package/lib/query.d.ts +6 -0
- package/lib/query.d.ts.map +1 -1
- package/lib/refs.d.ts +1 -0
- package/lib/refs.d.ts.map +1 -1
- package/lib/schema-for-extraction.d.ts +21 -0
- package/lib/schema-for-extraction.d.ts.map +1 -0
- package/lib/schema-for-extraction.js +205 -0
- package/lib/schema-for-extraction.js.map +1 -0
- package/lib/store/agent-run.d.ts +23 -1
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/conversation-state.d.ts +3 -1
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/conversation-state.js.map +1 -1
- package/lib/store/doc-analyzer.d.ts +10 -67
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +1 -0
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/grounded-extraction.d.ts +146 -0
- package/lib/store/grounded-extraction.d.ts.map +1 -0
- package/lib/store/grounded-extraction.js +8 -0
- package/lib/store/grounded-extraction.js.map +1 -0
- package/lib/store/index.d.ts +1 -0
- package/lib/store/index.d.ts.map +1 -1
- package/lib/store/index.js +1 -0
- package/lib/store/index.js.map +1 -1
- package/lib/store/store.d.ts +314 -1
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +451 -0
- package/lib/store/store.js.map +1 -1
- package/lib/store/workflow.d.ts +8 -1
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js +5 -0
- package/lib/store/workflow.js.map +1 -1
- package/lib/user.d.ts +14 -0
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js +31 -0
- package/lib/user.js.map +1 -1
- package/lib/vertesia-common.js +2 -2
- package/lib/vertesia-common.js.map +1 -1
- package/lib/view-configuration-validation.d.ts +15 -0
- package/lib/view-configuration-validation.d.ts.map +1 -0
- package/lib/view-configuration-validation.js +63 -0
- package/lib/view-configuration-validation.js.map +1 -0
- package/lib/view-query-validation.d.ts +13 -0
- package/lib/view-query-validation.d.ts.map +1 -0
- package/lib/view-query-validation.js +266 -0
- package/lib/view-query-validation.js.map +1 -0
- package/lib/view-validation-helpers.d.ts +15 -0
- package/lib/view-validation-helpers.d.ts.map +1 -0
- package/lib/view-validation-helpers.js +25 -0
- package/lib/view-validation-helpers.js.map +1 -0
- package/lib/views-schema.d.ts +1992 -0
- package/lib/views-schema.d.ts.map +1 -0
- package/lib/views-schema.js +674 -0
- package/lib/views-schema.js.map +1 -0
- package/lib/views-validation.d.ts +21 -0
- package/lib/views-validation.d.ts.map +1 -0
- package/lib/views-validation.js +164 -0
- package/lib/views-validation.js.map +1 -0
- package/lib/views.d.ts +381 -0
- package/lib/views.d.ts.map +1 -0
- package/lib/views.js +41 -0
- package/lib/views.js.map +1 -0
- package/package.json +5 -5
- package/src/agent-resources.test.ts +100 -0
- package/src/apps.test.ts +9 -1
- package/src/apps.ts +220 -73
- package/src/audit-trail.ts +83 -0
- package/src/environment.ts +2 -0
- package/src/index.ts +12 -0
- package/src/interaction.ts +135 -1
- package/src/platform-event.ts +39 -2
- package/src/project.test.ts +44 -0
- package/src/project.ts +205 -22
- package/src/query.ts +6 -0
- package/src/refs.ts +1 -0
- package/src/schema-for-extraction.test.ts +191 -0
- package/src/schema-for-extraction.ts +231 -0
- package/src/store/agent-run.ts +29 -0
- package/src/store/content-type-editing.test.ts +17 -0
- package/src/store/conversation-state.ts +4 -1
- package/src/store/doc-analyzer.ts +10 -76
- package/src/store/dsl-workflow.ts +1 -0
- package/src/store/grounded-extraction.ts +154 -0
- package/src/store/index.ts +1 -0
- package/src/store/store.ts +800 -1
- package/src/store/workflow.ts +12 -0
- package/src/user.ts +46 -0
- package/src/view-configuration-validation.ts +74 -0
- package/src/view-query-validation.test.ts +21 -0
- package/src/view-query-validation.ts +319 -0
- package/src/view-validation-helpers.ts +28 -0
- package/src/views-schema.test.ts +364 -0
- package/src/views-schema.ts +689 -0
- package/src/views-validation.ts +234 -0
- package/src/views.ts +484 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views-schema.d.ts","sourceRoot":"","sources":["../src/views-schema.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,4CAA4C,gEACQ,CAAC;AAClE,eAAO,MAAM,sDAAsD,0EACQ,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0oB5B,CAAC;AAEvB;;;;;GAKG;AACH,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYrC,CAAC"}
|
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
import { ELASTICSEARCH_FIELD_PATH_PATTERN_SOURCE, VIEW_CONFIGURATION_ID_PATTERN_SOURCE, } from './view-validation-helpers.js';
|
|
2
|
+
import { VIEW_RESULT_FIELD_FORMATS, VIEW_SEARCH_FIELD_TYPES } from './views.js';
|
|
3
|
+
export const VIEW_EXPERIENCE_CONFIGURATION_JSON_SCHEMA_ID = 'https://schemas.vertesia.com/view-experience.v1.schema.json';
|
|
4
|
+
export const PERSISTED_VIEW_EXPERIENCE_CONFIGURATION_JSON_SCHEMA_ID = 'https://schemas.vertesia.com/persisted-view-experience.v1.schema.json';
|
|
5
|
+
/**
|
|
6
|
+
* Canonical structural schema for reusable inline and app-contributed View configuration.
|
|
7
|
+
*
|
|
8
|
+
* Cross-reference rules such as unique navigation ids and valid default display
|
|
9
|
+
* references are enforced by validateViewConfiguration().
|
|
10
|
+
*/
|
|
11
|
+
export const ViewExperienceConfigurationJsonSchema = {
|
|
12
|
+
$id: VIEW_EXPERIENCE_CONFIGURATION_JSON_SCHEMA_ID,
|
|
13
|
+
type: 'object',
|
|
14
|
+
title: 'View Experience',
|
|
15
|
+
description: 'A reusable content navigation and search experience. Save it through /api/v1/views, then render it at /view/<id>.',
|
|
16
|
+
properties: {
|
|
17
|
+
name: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
minLength: 1,
|
|
20
|
+
maxLength: 120,
|
|
21
|
+
description: 'Human-readable View name.',
|
|
22
|
+
},
|
|
23
|
+
description: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
maxLength: 4000,
|
|
26
|
+
description: 'Purpose and intended audience of this View.',
|
|
27
|
+
},
|
|
28
|
+
enabled: {
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
description: 'Whether the View may be executed.',
|
|
31
|
+
},
|
|
32
|
+
layout: {
|
|
33
|
+
$ref: '#/$defs/layout',
|
|
34
|
+
},
|
|
35
|
+
scope: {
|
|
36
|
+
$ref: '#/$defs/scope',
|
|
37
|
+
},
|
|
38
|
+
navigation: {
|
|
39
|
+
type: 'array',
|
|
40
|
+
maxItems: 20,
|
|
41
|
+
description: 'Ordered facets or hierarchies used to browse the scoped content.',
|
|
42
|
+
items: {
|
|
43
|
+
oneOf: [
|
|
44
|
+
{ $ref: '#/$defs/locationNavigation' },
|
|
45
|
+
{ $ref: '#/$defs/collectionNavigation' },
|
|
46
|
+
{ $ref: '#/$defs/termsNavigation' },
|
|
47
|
+
{ $ref: '#/$defs/hierarchyNavigation' },
|
|
48
|
+
{ $ref: '#/$defs/rangeNavigation' },
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
search: {
|
|
53
|
+
$ref: '#/$defs/search',
|
|
54
|
+
},
|
|
55
|
+
results: {
|
|
56
|
+
$ref: '#/$defs/results',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
required: ['name'],
|
|
60
|
+
additionalProperties: false,
|
|
61
|
+
$defs: {
|
|
62
|
+
configurationId: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
minLength: 1,
|
|
65
|
+
maxLength: 64,
|
|
66
|
+
pattern: VIEW_CONFIGURATION_ID_PATTERN_SOURCE,
|
|
67
|
+
description: 'Stable id starting with a letter and containing letters, numbers, underscores, or hyphens.',
|
|
68
|
+
},
|
|
69
|
+
fieldName: {
|
|
70
|
+
type: 'string',
|
|
71
|
+
minLength: 1,
|
|
72
|
+
maxLength: 160,
|
|
73
|
+
pattern: ELASTICSEARCH_FIELD_PATH_PATTERN_SOURCE,
|
|
74
|
+
description: 'Dot-separated Elasticsearch field name.',
|
|
75
|
+
},
|
|
76
|
+
stringArray: {
|
|
77
|
+
type: 'array',
|
|
78
|
+
maxItems: 100,
|
|
79
|
+
items: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
minLength: 1,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
layout: {
|
|
85
|
+
type: 'object',
|
|
86
|
+
description: 'Overall browsing layout.',
|
|
87
|
+
properties: {
|
|
88
|
+
mode: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
enum: ['browse', 'worklist'],
|
|
91
|
+
description: 'Browse emphasizes discovery; worklist emphasizes case-style task handling.',
|
|
92
|
+
},
|
|
93
|
+
navigation_position: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
enum: ['sidebar', 'top'],
|
|
96
|
+
description: 'Where navigation widgets appear.',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
required: [],
|
|
100
|
+
additionalProperties: false,
|
|
101
|
+
},
|
|
102
|
+
scope: {
|
|
103
|
+
type: 'object',
|
|
104
|
+
description: 'Hard boundary applied to every search and navigation query.',
|
|
105
|
+
properties: {
|
|
106
|
+
type_ids: {
|
|
107
|
+
$ref: '#/$defs/stringArray',
|
|
108
|
+
description: 'Content type ids included in the View.',
|
|
109
|
+
},
|
|
110
|
+
locations: {
|
|
111
|
+
$ref: '#/$defs/stringArray',
|
|
112
|
+
description: 'Absolute content location roots included in the View.',
|
|
113
|
+
},
|
|
114
|
+
collection_ids: {
|
|
115
|
+
$ref: '#/$defs/stringArray',
|
|
116
|
+
description: 'Collection ids included in the View.',
|
|
117
|
+
},
|
|
118
|
+
include_collection_descendants: {
|
|
119
|
+
type: 'boolean',
|
|
120
|
+
description: 'Include descendants of scoped collections.',
|
|
121
|
+
},
|
|
122
|
+
fixed_filter: {
|
|
123
|
+
type: 'object',
|
|
124
|
+
description: 'Elasticsearch query clause always applied by the runtime. Script-like and unsafe clauses are rejected.',
|
|
125
|
+
required: [],
|
|
126
|
+
additionalProperties: true,
|
|
127
|
+
},
|
|
128
|
+
head_only: {
|
|
129
|
+
type: 'boolean',
|
|
130
|
+
description: 'Return only current head revisions.',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
required: [],
|
|
134
|
+
additionalProperties: false,
|
|
135
|
+
},
|
|
136
|
+
locationNavigation: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
title: 'Location hierarchy',
|
|
139
|
+
description: 'Browse the hierarchical content location path.',
|
|
140
|
+
properties: {
|
|
141
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
142
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
143
|
+
source: { const: 'location' },
|
|
144
|
+
presentation: { type: 'string', enum: ['tree', 'list', 'select', 'chips'] },
|
|
145
|
+
multi_select: { type: 'boolean' },
|
|
146
|
+
order: { type: 'integer' },
|
|
147
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
148
|
+
roots: {
|
|
149
|
+
type: 'array',
|
|
150
|
+
maxItems: 50,
|
|
151
|
+
items: { type: 'string', pattern: '^/' },
|
|
152
|
+
description: 'Absolute location roots shown by the hierarchy.',
|
|
153
|
+
},
|
|
154
|
+
depth: {
|
|
155
|
+
type: 'integer',
|
|
156
|
+
minimum: 1,
|
|
157
|
+
maximum: 20,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
required: ['id', 'label', 'source'],
|
|
161
|
+
additionalProperties: false,
|
|
162
|
+
},
|
|
163
|
+
collectionNavigation: {
|
|
164
|
+
type: 'object',
|
|
165
|
+
title: 'Collection hierarchy',
|
|
166
|
+
description: 'Browse collection membership and optionally collection descendants.',
|
|
167
|
+
properties: {
|
|
168
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
169
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
170
|
+
source: { const: 'collection' },
|
|
171
|
+
presentation: { type: 'string', enum: ['tree', 'list', 'select', 'chips'] },
|
|
172
|
+
multi_select: { type: 'boolean' },
|
|
173
|
+
order: { type: 'integer' },
|
|
174
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
175
|
+
roots: {
|
|
176
|
+
type: 'array',
|
|
177
|
+
maxItems: 50,
|
|
178
|
+
items: { type: 'string', minLength: 1 },
|
|
179
|
+
},
|
|
180
|
+
include_descendants: {
|
|
181
|
+
type: 'boolean',
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
required: ['id', 'label', 'source'],
|
|
185
|
+
additionalProperties: false,
|
|
186
|
+
},
|
|
187
|
+
termsNavigation: {
|
|
188
|
+
type: 'object',
|
|
189
|
+
title: 'Property facet',
|
|
190
|
+
description: 'Bucket a keyword-like property such as brand.',
|
|
191
|
+
properties: {
|
|
192
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
193
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
194
|
+
source: { const: 'terms' },
|
|
195
|
+
presentation: { type: 'string', enum: ['tree', 'list', 'select', 'chips'] },
|
|
196
|
+
multi_select: { type: 'boolean' },
|
|
197
|
+
order: { type: 'integer' },
|
|
198
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
199
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
200
|
+
size: {
|
|
201
|
+
type: 'integer',
|
|
202
|
+
minimum: 1,
|
|
203
|
+
maximum: 500,
|
|
204
|
+
},
|
|
205
|
+
sort: {
|
|
206
|
+
type: 'string',
|
|
207
|
+
enum: ['count', 'label'],
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
required: ['id', 'label', 'source', 'field'],
|
|
211
|
+
additionalProperties: false,
|
|
212
|
+
},
|
|
213
|
+
hierarchyLevel: {
|
|
214
|
+
type: 'object',
|
|
215
|
+
title: 'Property hierarchy level',
|
|
216
|
+
description: 'One mapped property in a drill-down hierarchy.',
|
|
217
|
+
properties: {
|
|
218
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
219
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
220
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
221
|
+
size: {
|
|
222
|
+
type: 'integer',
|
|
223
|
+
minimum: 1,
|
|
224
|
+
maximum: 500,
|
|
225
|
+
},
|
|
226
|
+
sort: {
|
|
227
|
+
type: 'string',
|
|
228
|
+
enum: ['count', 'label'],
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
required: ['id', 'label', 'field'],
|
|
232
|
+
additionalProperties: false,
|
|
233
|
+
},
|
|
234
|
+
hierarchyNavigation: {
|
|
235
|
+
type: 'object',
|
|
236
|
+
title: 'Property hierarchy',
|
|
237
|
+
description: 'Drill down through mapped properties such as State, then City.',
|
|
238
|
+
properties: {
|
|
239
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
240
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
241
|
+
source: { const: 'hierarchy' },
|
|
242
|
+
presentation: { type: 'string', enum: ['tree', 'list', 'select', 'chips'] },
|
|
243
|
+
multi_select: { const: false },
|
|
244
|
+
order: { type: 'integer' },
|
|
245
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
246
|
+
levels: {
|
|
247
|
+
type: 'array',
|
|
248
|
+
minItems: 2,
|
|
249
|
+
maxItems: 10,
|
|
250
|
+
items: { $ref: '#/$defs/hierarchyLevel' },
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
required: ['id', 'label', 'source', 'levels'],
|
|
254
|
+
additionalProperties: false,
|
|
255
|
+
},
|
|
256
|
+
rangeDefinition: {
|
|
257
|
+
type: 'object',
|
|
258
|
+
properties: {
|
|
259
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
260
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
261
|
+
from: { type: 'number' },
|
|
262
|
+
to: { type: 'number' },
|
|
263
|
+
},
|
|
264
|
+
required: ['id', 'label'],
|
|
265
|
+
additionalProperties: false,
|
|
266
|
+
anyOf: [{ required: ['from'] }, { required: ['to'] }],
|
|
267
|
+
},
|
|
268
|
+
rangeNavigation: {
|
|
269
|
+
type: 'object',
|
|
270
|
+
title: 'Numeric range facet',
|
|
271
|
+
description: 'Bucket a numeric property such as project_size into authored ranges.',
|
|
272
|
+
properties: {
|
|
273
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
274
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
275
|
+
source: { const: 'range' },
|
|
276
|
+
presentation: { type: 'string', enum: ['tree', 'list', 'select', 'chips'] },
|
|
277
|
+
multi_select: { type: 'boolean' },
|
|
278
|
+
order: { type: 'integer' },
|
|
279
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
280
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
281
|
+
ranges: {
|
|
282
|
+
type: 'array',
|
|
283
|
+
minItems: 1,
|
|
284
|
+
items: { $ref: '#/$defs/rangeDefinition' },
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
required: ['id', 'label', 'source', 'field', 'ranges'],
|
|
288
|
+
additionalProperties: false,
|
|
289
|
+
},
|
|
290
|
+
keyTerm: {
|
|
291
|
+
type: 'object',
|
|
292
|
+
description: 'A URL-serializable structured search input.',
|
|
293
|
+
properties: {
|
|
294
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
295
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
296
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
297
|
+
type: {
|
|
298
|
+
type: 'string',
|
|
299
|
+
enum: [...VIEW_SEARCH_FIELD_TYPES],
|
|
300
|
+
},
|
|
301
|
+
multiple: { type: 'boolean' },
|
|
302
|
+
operator: {
|
|
303
|
+
type: 'string',
|
|
304
|
+
enum: ['match', 'term', 'range'],
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
required: ['id', 'label', 'type'],
|
|
308
|
+
additionalProperties: false,
|
|
309
|
+
},
|
|
310
|
+
searchField: {
|
|
311
|
+
type: 'object',
|
|
312
|
+
description: 'A mapped Elasticsearch field available to query planning and deterministic full-text fallback.',
|
|
313
|
+
properties: {
|
|
314
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
315
|
+
description: {
|
|
316
|
+
type: 'string',
|
|
317
|
+
minLength: 1,
|
|
318
|
+
maxLength: 500,
|
|
319
|
+
description: 'Semantic meaning of the field for query planners.',
|
|
320
|
+
},
|
|
321
|
+
type: {
|
|
322
|
+
type: 'string',
|
|
323
|
+
enum: [...VIEW_SEARCH_FIELD_TYPES],
|
|
324
|
+
description: 'Mapping hint used only when the active index does not expose the field type.',
|
|
325
|
+
},
|
|
326
|
+
mode: {
|
|
327
|
+
type: 'string',
|
|
328
|
+
enum: ['auto', 'full_text', 'exact'],
|
|
329
|
+
description: 'Whether the field supports scoring text queries, structured exact queries, or mapping-derived behavior.',
|
|
330
|
+
},
|
|
331
|
+
boost: {
|
|
332
|
+
type: 'number',
|
|
333
|
+
minimum: 0.1,
|
|
334
|
+
maximum: 20,
|
|
335
|
+
description: 'Relative boost when the field participates in multi-field text search.',
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
required: ['field'],
|
|
339
|
+
additionalProperties: false,
|
|
340
|
+
},
|
|
341
|
+
interactionConfig: {
|
|
342
|
+
type: 'object',
|
|
343
|
+
description: 'One execution configuration for the agentic search model. Set environment and/or model to override project defaults.',
|
|
344
|
+
properties: {
|
|
345
|
+
id: { type: 'string' },
|
|
346
|
+
environment: { type: 'string' },
|
|
347
|
+
model: { type: 'string' },
|
|
348
|
+
do_validate: { type: 'boolean' },
|
|
349
|
+
run_data: { type: 'string' },
|
|
350
|
+
configMode: { type: 'string' },
|
|
351
|
+
model_options: {
|
|
352
|
+
type: 'object',
|
|
353
|
+
required: [],
|
|
354
|
+
additionalProperties: true,
|
|
355
|
+
},
|
|
356
|
+
prompt_cache_key: { type: 'string' },
|
|
357
|
+
prompt_cache_schema_suffix: { type: 'boolean' },
|
|
358
|
+
http_timeout: {
|
|
359
|
+
type: 'object',
|
|
360
|
+
required: [],
|
|
361
|
+
additionalProperties: true,
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
required: [],
|
|
365
|
+
additionalProperties: true,
|
|
366
|
+
},
|
|
367
|
+
agenticSearch: {
|
|
368
|
+
type: 'object',
|
|
369
|
+
description: 'Agentic query planning configuration. The default interaction is sys:ContentSearchAgent and it emits secured Elasticsearch DSL.',
|
|
370
|
+
properties: {
|
|
371
|
+
interaction: {
|
|
372
|
+
type: 'string',
|
|
373
|
+
maxLength: 200,
|
|
374
|
+
description: 'Interaction id. Defaults to sys:ContentSearchAgent.',
|
|
375
|
+
},
|
|
376
|
+
config: { $ref: '#/$defs/interactionConfig' },
|
|
377
|
+
instructions: {
|
|
378
|
+
type: 'string',
|
|
379
|
+
maxLength: 4000,
|
|
380
|
+
description: 'Domain-specific guidance for translating natural language into Elasticsearch DSL.',
|
|
381
|
+
},
|
|
382
|
+
mode: {
|
|
383
|
+
type: 'string',
|
|
384
|
+
enum: ['query'],
|
|
385
|
+
description: 'Generate and validate an Elasticsearch query before execution.',
|
|
386
|
+
},
|
|
387
|
+
timeout_ms: {
|
|
388
|
+
type: 'integer',
|
|
389
|
+
minimum: 1000,
|
|
390
|
+
maximum: 60000,
|
|
391
|
+
},
|
|
392
|
+
minimum_confidence: {
|
|
393
|
+
type: 'number',
|
|
394
|
+
minimum: 0,
|
|
395
|
+
maximum: 1,
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
required: [],
|
|
399
|
+
additionalProperties: false,
|
|
400
|
+
},
|
|
401
|
+
search: {
|
|
402
|
+
type: 'object',
|
|
403
|
+
description: 'Text and structured search configuration.',
|
|
404
|
+
properties: {
|
|
405
|
+
renderer: {
|
|
406
|
+
type: 'string',
|
|
407
|
+
maxLength: 120,
|
|
408
|
+
description: 'Optional app-registered search renderer name.',
|
|
409
|
+
},
|
|
410
|
+
mode: {
|
|
411
|
+
type: 'string',
|
|
412
|
+
enum: ['deterministic', 'agentic'],
|
|
413
|
+
},
|
|
414
|
+
placeholder: {
|
|
415
|
+
type: 'string',
|
|
416
|
+
maxLength: 240,
|
|
417
|
+
},
|
|
418
|
+
fields: {
|
|
419
|
+
type: 'array',
|
|
420
|
+
maxItems: 50,
|
|
421
|
+
items: { $ref: '#/$defs/searchField' },
|
|
422
|
+
description: 'Fields disclosed to query planning. Text-capable entries also define deterministic fallback search.',
|
|
423
|
+
},
|
|
424
|
+
key_terms: {
|
|
425
|
+
type: 'array',
|
|
426
|
+
maxItems: 50,
|
|
427
|
+
items: { $ref: '#/$defs/keyTerm' },
|
|
428
|
+
},
|
|
429
|
+
agentic: { $ref: '#/$defs/agenticSearch' },
|
|
430
|
+
},
|
|
431
|
+
required: [],
|
|
432
|
+
additionalProperties: false,
|
|
433
|
+
},
|
|
434
|
+
resultField: {
|
|
435
|
+
type: 'object',
|
|
436
|
+
properties: {
|
|
437
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
438
|
+
label: { type: 'string', maxLength: 120 },
|
|
439
|
+
format: {
|
|
440
|
+
type: 'string',
|
|
441
|
+
enum: [...VIEW_RESULT_FIELD_FORMATS],
|
|
442
|
+
},
|
|
443
|
+
fallback: { type: 'string', maxLength: 240 },
|
|
444
|
+
},
|
|
445
|
+
required: ['field'],
|
|
446
|
+
additionalProperties: false,
|
|
447
|
+
},
|
|
448
|
+
resultMedia: {
|
|
449
|
+
type: 'object',
|
|
450
|
+
properties: {
|
|
451
|
+
source: {
|
|
452
|
+
type: 'string',
|
|
453
|
+
enum: ['content_thumbnail', 'property', 'type_icon'],
|
|
454
|
+
},
|
|
455
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
456
|
+
fit: {
|
|
457
|
+
type: 'string',
|
|
458
|
+
enum: ['cover', 'contain'],
|
|
459
|
+
},
|
|
460
|
+
fallback: {
|
|
461
|
+
type: 'string',
|
|
462
|
+
enum: ['type_icon', 'placeholder', 'none'],
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
required: ['source'],
|
|
466
|
+
additionalProperties: false,
|
|
467
|
+
},
|
|
468
|
+
resultFieldArray: {
|
|
469
|
+
type: 'array',
|
|
470
|
+
items: { $ref: '#/$defs/resultField' },
|
|
471
|
+
},
|
|
472
|
+
listDisplay: {
|
|
473
|
+
type: 'object',
|
|
474
|
+
properties: {
|
|
475
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
476
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
477
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
478
|
+
page_size: { type: 'integer', minimum: 1, maximum: 200 },
|
|
479
|
+
type: { const: 'list' },
|
|
480
|
+
title: { $ref: '#/$defs/resultField' },
|
|
481
|
+
subtitle: { $ref: '#/$defs/resultFieldArray' },
|
|
482
|
+
description: { $ref: '#/$defs/resultField' },
|
|
483
|
+
media: { $ref: '#/$defs/resultMedia' },
|
|
484
|
+
badges: { $ref: '#/$defs/resultFieldArray' },
|
|
485
|
+
},
|
|
486
|
+
required: ['id', 'label', 'type', 'title'],
|
|
487
|
+
additionalProperties: false,
|
|
488
|
+
},
|
|
489
|
+
tableColumn: {
|
|
490
|
+
type: 'object',
|
|
491
|
+
properties: {
|
|
492
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
493
|
+
label: { type: 'string', maxLength: 120 },
|
|
494
|
+
format: {
|
|
495
|
+
type: 'string',
|
|
496
|
+
enum: [...VIEW_RESULT_FIELD_FORMATS],
|
|
497
|
+
},
|
|
498
|
+
fallback: { type: 'string', maxLength: 240 },
|
|
499
|
+
width: { type: 'integer', minimum: 40, maximum: 2000 },
|
|
500
|
+
sortable: { type: 'boolean' },
|
|
501
|
+
sort_option: { $ref: '#/$defs/configurationId' },
|
|
502
|
+
},
|
|
503
|
+
required: ['field'],
|
|
504
|
+
additionalProperties: false,
|
|
505
|
+
},
|
|
506
|
+
tableDisplay: {
|
|
507
|
+
type: 'object',
|
|
508
|
+
properties: {
|
|
509
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
510
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
511
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
512
|
+
page_size: { type: 'integer', minimum: 1, maximum: 200 },
|
|
513
|
+
type: { const: 'table' },
|
|
514
|
+
columns: {
|
|
515
|
+
type: 'array',
|
|
516
|
+
minItems: 1,
|
|
517
|
+
items: { $ref: '#/$defs/tableColumn' },
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
required: ['id', 'label', 'type', 'columns'],
|
|
521
|
+
additionalProperties: false,
|
|
522
|
+
},
|
|
523
|
+
cardsDisplay: {
|
|
524
|
+
type: 'object',
|
|
525
|
+
properties: {
|
|
526
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
527
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
528
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
529
|
+
page_size: { type: 'integer', minimum: 1, maximum: 200 },
|
|
530
|
+
type: { const: 'cards' },
|
|
531
|
+
title: { $ref: '#/$defs/resultField' },
|
|
532
|
+
description: { $ref: '#/$defs/resultField' },
|
|
533
|
+
media: { $ref: '#/$defs/resultMedia' },
|
|
534
|
+
fields: { $ref: '#/$defs/resultFieldArray' },
|
|
535
|
+
badges: { $ref: '#/$defs/resultFieldArray' },
|
|
536
|
+
columns: { type: 'integer', enum: [2, 3, 4, 5, 6] },
|
|
537
|
+
},
|
|
538
|
+
required: ['id', 'label', 'type', 'title'],
|
|
539
|
+
additionalProperties: false,
|
|
540
|
+
},
|
|
541
|
+
galleryDisplay: {
|
|
542
|
+
type: 'object',
|
|
543
|
+
properties: {
|
|
544
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
545
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
546
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
547
|
+
page_size: { type: 'integer', minimum: 1, maximum: 200 },
|
|
548
|
+
type: { const: 'gallery' },
|
|
549
|
+
media: { $ref: '#/$defs/resultMedia' },
|
|
550
|
+
title: { $ref: '#/$defs/resultField' },
|
|
551
|
+
caption: { $ref: '#/$defs/resultFieldArray' },
|
|
552
|
+
columns: { type: 'integer', enum: [2, 3, 4, 5, 6] },
|
|
553
|
+
},
|
|
554
|
+
required: ['id', 'label', 'type', 'media', 'title'],
|
|
555
|
+
additionalProperties: false,
|
|
556
|
+
},
|
|
557
|
+
boardCard: {
|
|
558
|
+
type: 'object',
|
|
559
|
+
properties: {
|
|
560
|
+
title: { $ref: '#/$defs/resultField' },
|
|
561
|
+
description: { $ref: '#/$defs/resultField' },
|
|
562
|
+
media: { $ref: '#/$defs/resultMedia' },
|
|
563
|
+
fields: { $ref: '#/$defs/resultFieldArray' },
|
|
564
|
+
badges: { $ref: '#/$defs/resultFieldArray' },
|
|
565
|
+
},
|
|
566
|
+
required: ['title'],
|
|
567
|
+
additionalProperties: false,
|
|
568
|
+
},
|
|
569
|
+
boardColumn: {
|
|
570
|
+
type: 'object',
|
|
571
|
+
properties: {
|
|
572
|
+
value: { type: 'string', minLength: 1 },
|
|
573
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
574
|
+
order: { type: 'integer' },
|
|
575
|
+
},
|
|
576
|
+
required: ['value', 'label'],
|
|
577
|
+
additionalProperties: false,
|
|
578
|
+
},
|
|
579
|
+
boardDisplay: {
|
|
580
|
+
type: 'object',
|
|
581
|
+
properties: {
|
|
582
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
583
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
584
|
+
renderer: { type: 'string', minLength: 1, maxLength: 120 },
|
|
585
|
+
page_size: { type: 'integer', minimum: 1, maximum: 200 },
|
|
586
|
+
type: { const: 'board' },
|
|
587
|
+
group_by: { $ref: '#/$defs/fieldName' },
|
|
588
|
+
columns: {
|
|
589
|
+
type: 'array',
|
|
590
|
+
items: { $ref: '#/$defs/boardColumn' },
|
|
591
|
+
},
|
|
592
|
+
card: { $ref: '#/$defs/boardCard' },
|
|
593
|
+
},
|
|
594
|
+
required: ['id', 'label', 'type', 'group_by', 'card'],
|
|
595
|
+
additionalProperties: false,
|
|
596
|
+
},
|
|
597
|
+
display: {
|
|
598
|
+
oneOf: [
|
|
599
|
+
{ $ref: '#/$defs/listDisplay' },
|
|
600
|
+
{ $ref: '#/$defs/tableDisplay' },
|
|
601
|
+
{ $ref: '#/$defs/cardsDisplay' },
|
|
602
|
+
{ $ref: '#/$defs/galleryDisplay' },
|
|
603
|
+
{ $ref: '#/$defs/boardDisplay' },
|
|
604
|
+
],
|
|
605
|
+
},
|
|
606
|
+
sortClause: {
|
|
607
|
+
type: 'object',
|
|
608
|
+
properties: {
|
|
609
|
+
field: { $ref: '#/$defs/fieldName' },
|
|
610
|
+
order: {
|
|
611
|
+
type: 'string',
|
|
612
|
+
enum: ['asc', 'desc'],
|
|
613
|
+
},
|
|
614
|
+
},
|
|
615
|
+
required: ['field', 'order'],
|
|
616
|
+
additionalProperties: false,
|
|
617
|
+
},
|
|
618
|
+
sortOption: {
|
|
619
|
+
type: 'object',
|
|
620
|
+
properties: {
|
|
621
|
+
id: { $ref: '#/$defs/configurationId' },
|
|
622
|
+
label: { type: 'string', minLength: 1, maxLength: 120 },
|
|
623
|
+
sort: {
|
|
624
|
+
type: 'array',
|
|
625
|
+
minItems: 1,
|
|
626
|
+
items: { $ref: '#/$defs/sortClause' },
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
required: ['id', 'label', 'sort'],
|
|
630
|
+
additionalProperties: false,
|
|
631
|
+
},
|
|
632
|
+
results: {
|
|
633
|
+
type: 'object',
|
|
634
|
+
description: 'Built-in or app-rendered visual result layouts.',
|
|
635
|
+
properties: {
|
|
636
|
+
default_display: { $ref: '#/$defs/configurationId' },
|
|
637
|
+
allow_display_switch: { type: 'boolean' },
|
|
638
|
+
displays: {
|
|
639
|
+
type: 'array',
|
|
640
|
+
minItems: 1,
|
|
641
|
+
maxItems: 10,
|
|
642
|
+
items: { $ref: '#/$defs/display' },
|
|
643
|
+
},
|
|
644
|
+
default_sort: { $ref: '#/$defs/configurationId' },
|
|
645
|
+
sort_options: {
|
|
646
|
+
type: 'array',
|
|
647
|
+
items: { $ref: '#/$defs/sortOption' },
|
|
648
|
+
},
|
|
649
|
+
},
|
|
650
|
+
required: ['default_display', 'displays'],
|
|
651
|
+
additionalProperties: false,
|
|
652
|
+
},
|
|
653
|
+
},
|
|
654
|
+
};
|
|
655
|
+
/**
|
|
656
|
+
* Structural schema for project-scoped Views saved through the Views API.
|
|
657
|
+
*
|
|
658
|
+
* App-contributed and inline View definitions use the reusable base schema,
|
|
659
|
+
* while persisted resources additionally document their purpose.
|
|
660
|
+
*/
|
|
661
|
+
export const PersistedViewExperienceConfigurationJsonSchema = {
|
|
662
|
+
...ViewExperienceConfigurationJsonSchema,
|
|
663
|
+
$id: PERSISTED_VIEW_EXPERIENCE_CONFIGURATION_JSON_SCHEMA_ID,
|
|
664
|
+
title: 'Persisted View Experience',
|
|
665
|
+
properties: {
|
|
666
|
+
...ViewExperienceConfigurationJsonSchema.properties,
|
|
667
|
+
description: {
|
|
668
|
+
...ViewExperienceConfigurationJsonSchema.properties.description,
|
|
669
|
+
minLength: 1,
|
|
670
|
+
},
|
|
671
|
+
},
|
|
672
|
+
required: ['name', 'description'],
|
|
673
|
+
};
|
|
674
|
+
//# sourceMappingURL=views-schema.js.map
|