@ndla/types-backend 1.0.34 → 1.0.35

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 (61) hide show
  1. package/build/article-api-openapi.d.ts +1092 -0
  2. package/build/article-api-openapi.js +7 -0
  3. package/build/article-api-openapi.js.map +1 -0
  4. package/build/article-api.d.ts +57 -156
  5. package/build/article-api.js +27 -13
  6. package/build/article-api.js.map +1 -1
  7. package/build/audio-api-openapi.d.ts +2153 -0
  8. package/build/audio-api-openapi.js +7 -0
  9. package/build/audio-api-openapi.js.map +1 -0
  10. package/build/audio-api.d.ts +69 -190
  11. package/build/audio-api.js +27 -13
  12. package/build/audio-api.js.map +1 -1
  13. package/build/concept-api-openapi.d.ts +1682 -0
  14. package/build/concept-api-openapi.js +7 -0
  15. package/build/concept-api-openapi.js.map +1 -0
  16. package/build/concept-api.d.ts +69 -221
  17. package/build/concept-api.js +27 -21
  18. package/build/concept-api.js.map +1 -1
  19. package/build/draft-api-openapi.d.ts +2893 -0
  20. package/build/draft-api-openapi.js +7 -0
  21. package/build/draft-api-openapi.js.map +1 -0
  22. package/build/draft-api.d.ts +117 -292
  23. package/build/draft-api.js +27 -13
  24. package/build/draft-api.js.map +1 -1
  25. package/build/frontpage-api-openapi.d.ts +800 -0
  26. package/build/frontpage-api-openapi.js +7 -0
  27. package/build/frontpage-api-openapi.js.map +1 -0
  28. package/build/frontpage-api.d.ts +53 -121
  29. package/build/frontpage-api.js +27 -1
  30. package/build/frontpage-api.js.map +1 -1
  31. package/build/image-api-openapi.d.ts +2192 -0
  32. package/build/image-api-openapi.js +7 -0
  33. package/build/image-api-openapi.js.map +1 -0
  34. package/build/image-api.d.ts +61 -174
  35. package/build/image-api.js +27 -13
  36. package/build/image-api.js.map +1 -1
  37. package/build/learningpath-api-openapi.d.ts +2671 -0
  38. package/build/learningpath-api-openapi.js +7 -0
  39. package/build/learningpath-api-openapi.js.map +1 -0
  40. package/build/learningpath-api.d.ts +71 -143
  41. package/build/learningpath-api.js +27 -1
  42. package/build/learningpath-api.js.map +1 -1
  43. package/build/myndla-api-openapi.d.ts +2718 -0
  44. package/build/myndla-api-openapi.js +7 -0
  45. package/build/myndla-api-openapi.js.map +1 -0
  46. package/build/myndla-api.d.ts +69 -125
  47. package/build/myndla-api.js +27 -1
  48. package/build/myndla-api.js.map +1 -1
  49. package/build/oembed-proxy-openapi.d.ts +249 -0
  50. package/build/oembed-proxy-openapi.js +7 -0
  51. package/build/oembed-proxy-openapi.js.map +1 -0
  52. package/build/oembed-proxy.d.ts +15 -0
  53. package/build/oembed-proxy.js +30 -0
  54. package/build/oembed-proxy.js.map +1 -0
  55. package/build/search-api-openapi.d.ts +1525 -0
  56. package/build/search-api-openapi.js +7 -0
  57. package/build/search-api-openapi.js.map +1 -0
  58. package/build/search-api.d.ts +121 -422
  59. package/build/search-api.js +27 -33
  60. package/build/search-api.js.map +1 -1
  61. package/package.json +2 -1
@@ -0,0 +1,1525 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export type paths = {
6
+ "/search-api/v1/search/group": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /**
14
+ * Search across multiple groups of learning resources
15
+ * @description Search across multiple groups of learning resources
16
+ */
17
+ get: operations["getSearch-apiV1SearchGroup"];
18
+ put?: never;
19
+ post?: never;
20
+ delete?: never;
21
+ options?: never;
22
+ head?: never;
23
+ patch?: never;
24
+ trace?: never;
25
+ };
26
+ "/search-api/v1/search": {
27
+ parameters: {
28
+ query?: never;
29
+ header?: never;
30
+ path?: never;
31
+ cookie?: never;
32
+ };
33
+ /**
34
+ * Find learning resources
35
+ * @description Shows all learning resources. You can search too.
36
+ */
37
+ get: operations["getSearch-apiV1Search"];
38
+ put?: never;
39
+ /**
40
+ * Find learning resources
41
+ * @description Shows all learning resources. You can search too.
42
+ */
43
+ post: operations["postSearch-apiV1Search"];
44
+ delete?: never;
45
+ options?: never;
46
+ head?: never;
47
+ patch?: never;
48
+ trace?: never;
49
+ };
50
+ "/search-api/v1/search/editorial": {
51
+ parameters: {
52
+ query?: never;
53
+ header?: never;
54
+ path?: never;
55
+ cookie?: never;
56
+ };
57
+ /**
58
+ * Find draft learning resources
59
+ * @description Shows all draft learning resources. You can search too.
60
+ * Query parameters are undocumented, but are the same as the body for the POST endpoint, except `kebab-case`.
61
+ *
62
+ */
63
+ get: operations["getSearch-apiV1SearchEditorial"];
64
+ put?: never;
65
+ /**
66
+ * Find draft learning resources
67
+ * @description Shows all draft learning resources. You can search too.
68
+ */
69
+ post: operations["postSearch-apiV1SearchEditorial"];
70
+ delete?: never;
71
+ options?: never;
72
+ head?: never;
73
+ patch?: never;
74
+ trace?: never;
75
+ };
76
+ "/search-api/v1/search/subjects": {
77
+ parameters: {
78
+ query?: never;
79
+ header?: never;
80
+ path?: never;
81
+ cookie?: never;
82
+ };
83
+ get?: never;
84
+ put?: never;
85
+ /**
86
+ * List subjects with aggregated data about their contents
87
+ * @description List subjects with aggregated data about their contents
88
+ */
89
+ post: operations["postSearch-apiV1SearchSubjects"];
90
+ delete?: never;
91
+ options?: never;
92
+ head?: never;
93
+ patch?: never;
94
+ trace?: never;
95
+ };
96
+ "/search-api/v1/search/grep": {
97
+ parameters: {
98
+ query?: never;
99
+ header?: never;
100
+ path?: never;
101
+ cookie?: never;
102
+ };
103
+ get?: never;
104
+ put?: never;
105
+ /**
106
+ * Search for grep codes
107
+ * @description Search for grep codes
108
+ */
109
+ post: operations["postSearch-apiV1SearchGrep"];
110
+ delete?: never;
111
+ options?: never;
112
+ head?: never;
113
+ patch?: never;
114
+ trace?: never;
115
+ };
116
+ "/search-api/v1/search/grep/replacements": {
117
+ parameters: {
118
+ query?: never;
119
+ header?: never;
120
+ path?: never;
121
+ cookie?: never;
122
+ };
123
+ /** Get grep replacements */
124
+ get: operations["getSearch-apiV1SearchGrepReplacements"];
125
+ put?: never;
126
+ post?: never;
127
+ delete?: never;
128
+ options?: never;
129
+ head?: never;
130
+ patch?: never;
131
+ trace?: never;
132
+ };
133
+ };
134
+ export type webhooks = Record<string, never>;
135
+ export type components = {
136
+ schemas: {
137
+ /** AllErrors */
138
+ AllErrors: components["schemas"]["ErrorBody"] | components["schemas"]["NotFoundWithSupportedLanguages"] | components["schemas"]["ValidationErrorBody"];
139
+ /** ApiTaxonomyContextDTO */
140
+ ApiTaxonomyContextDTO: {
141
+ /** @description Id of the taxonomy object. */
142
+ publicId: string;
143
+ /** @description Name of the root node this context is in. */
144
+ root: string;
145
+ /** @description Id of the root node this context is in. */
146
+ rootId: string;
147
+ /** @description The relevance for this context. */
148
+ relevance: string;
149
+ /** @description The relevanceId for this context. */
150
+ relevanceId: string;
151
+ /** @description Path to the resource in this context. */
152
+ path: string;
153
+ /** @description Breadcrumbs of path to the resource in this context. */
154
+ breadcrumbs: string[];
155
+ /** @description Unique id of this context. */
156
+ contextId: string;
157
+ /** @description Type in this context. */
158
+ contextType: string;
159
+ /** @description Resource-types of this context. */
160
+ resourceTypes: components["schemas"]["TaxonomyResourceTypeDTO"][];
161
+ /** @description Language for this context. */
162
+ language: string;
163
+ /** @description Whether this context is the primary connection */
164
+ isPrimary: boolean;
165
+ /** @description Whether this context is active */
166
+ isActive: boolean;
167
+ /** @description Unique url for this context. */
168
+ url: string;
169
+ };
170
+ /**
171
+ * CommentDTO
172
+ * @description Information about a comment attached to an article
173
+ */
174
+ CommentDTO: {
175
+ /** @description Id of the comment */
176
+ id: string;
177
+ /** @description Content of the comment */
178
+ content: string;
179
+ /** @description When the comment was created */
180
+ created: string;
181
+ /** @description When the comment was last updated */
182
+ updated: string;
183
+ /** @description If the comment is open or closed */
184
+ isOpen: boolean;
185
+ /** @description If the comment is solved or not */
186
+ solved: boolean;
187
+ };
188
+ /**
189
+ * DescriptionDTO
190
+ * @description Title of resource
191
+ */
192
+ DescriptionDTO: {
193
+ /** @description The freetext description of the resource */
194
+ description: string;
195
+ /** @description ISO 639-1 code that represents the language used in title */
196
+ language: string;
197
+ };
198
+ /**
199
+ * DraftResponsibleDTO
200
+ * @description Responsible field
201
+ */
202
+ DraftResponsibleDTO: {
203
+ /** @description NDLA ID of responsible editor */
204
+ responsibleId: string;
205
+ /** @description Date of when the responsible editor was last updated */
206
+ lastUpdated: string;
207
+ };
208
+ /** DraftSearchParamsDTO */
209
+ DraftSearchParamsDTO: {
210
+ /**
211
+ * Format: int32
212
+ * @description The page number of the search hits to display.
213
+ */
214
+ page?: number;
215
+ /**
216
+ * Format: int32
217
+ * @description The number of search hits to display for each page.
218
+ */
219
+ pageSize?: number;
220
+ /** @description A list of article-types the search should be filtered by. */
221
+ articleTypes?: string[];
222
+ /** @description A list of context-types the learning resources should be filtered by. */
223
+ contextTypes?: string[];
224
+ /** @description The ISO 639-1 language code describing language. */
225
+ language?: string;
226
+ /** @description Return only learning resources that have one of the provided ids. */
227
+ ids?: number[];
228
+ /** @description Return only learning resources of specific type(s). */
229
+ resourceTypes?: string[];
230
+ /** @description Return only results with provided license. */
231
+ license?: string;
232
+ /** @description Return only results with content matching the specified query. */
233
+ query?: string;
234
+ /** @description Return only results with notes matching the specified note-query. */
235
+ noteQuery?: string;
236
+ sort?: components["schemas"]["Sort"];
237
+ /** @description Fallback to existing language if language is specified. */
238
+ fallback?: boolean;
239
+ /** @description A comma separated list of subjects the learning resources should be filtered by. */
240
+ subjects?: string[];
241
+ /** @description A list of ISO 639-1 language codes that the learning resource can be available in. */
242
+ languageFilter?: string[];
243
+ /** @description A list of relevances the learning resources should be filtered by.
244
+ * If subjects are specified the learning resource must have specified relevances in relation to a specified subject.
245
+ * If levels are specified the learning resource must have specified relevances in relation to a specified level. */
246
+ relevance?: string[];
247
+ /** @description A unique string obtained from a search you want to keep scrolling in. To obtain one from a search, provide one of the following values: ["0", "initial", "start", "first"].
248
+ * When scrolling, the parameters from the initial search is used, except in the case of 'language' and 'fallback'.
249
+ * This value may change between scrolls. Always use the one in the latest scroll result.
250
+ * */
251
+ scrollId?: string;
252
+ /** @description List of statuses to filter by. A draft only needs to have one of the available statuses to be included in result (OR). */
253
+ draftStatus?: string[];
254
+ /** @description List of users to filter by.
255
+ * The value to search for is the user-id from Auth0.
256
+ * UpdatedBy on article and user in editorial-notes are searched. */
257
+ users?: string[];
258
+ /** @description A list of codes from GREP API the resources should be filtered by. */
259
+ grepCodes?: string[];
260
+ /** @description A comma separated list of traits the resources should be filtered by. */
261
+ traits?: components["schemas"]["SearchTrait"][];
262
+ /** @description List of index-paths that should be term-aggregated and returned in result. */
263
+ aggregatePaths?: string[];
264
+ /** @description Return only results with embed data-resource the specified resource. Can specify multiple with a comma separated list to filter for one of the embed types. */
265
+ embedResource?: string[];
266
+ /** @description Return only results with embed data-resource_id, data-videoid or data-url with the specified id. */
267
+ embedId?: string;
268
+ /** @description Whether or not to include the 'other' status field when filtering with 'status' param. */
269
+ includeOtherStatuses?: boolean;
270
+ /** @description Return only results having next revision after this date. */
271
+ revisionDateFrom?: string;
272
+ /** @description Return only results having next revision before this date. */
273
+ revisionDateTo?: string;
274
+ /** @description Set to true to avoid including hits from the revision history log. */
275
+ excludeRevisionLog?: boolean;
276
+ /** @description List of responsible ids to filter by (OR filter). */
277
+ responsibleIds?: string[];
278
+ /** @description Filter out inactive taxonomy contexts. */
279
+ filterInactive?: boolean;
280
+ /** @description Set to true to only return prioritized articles */
281
+ prioritized?: boolean;
282
+ /** @description List of priority-levels to filter by. */
283
+ priority?: string[];
284
+ /** @description A list of parent topics the learning resources should be filtered by. */
285
+ topics?: string[];
286
+ /** @description Return only results having published date after this date. */
287
+ publishedDateFrom?: string;
288
+ /** @description Return only results having published date before this date. */
289
+ publishedDateTo?: string;
290
+ /** @description Types of hits to appear in the result */
291
+ resultTypes?: components["schemas"]["SearchType"][];
292
+ };
293
+ /**
294
+ * ErrorBody
295
+ * @description Information about an error
296
+ */
297
+ ErrorBody: {
298
+ /** @description Code stating the type of error */
299
+ code: string;
300
+ /** @description Description of the error */
301
+ description: string;
302
+ /** @description When the error occurred */
303
+ occurredAt: string;
304
+ /**
305
+ * Format: int32
306
+ * @description Numeric http status code
307
+ */
308
+ statusCode: number;
309
+ };
310
+ /**
311
+ * GrepKjerneelementDTO
312
+ * @description Information about a single grep search result entry
313
+ */
314
+ GrepKjerneelementDTO: {
315
+ /** @description The grep code */
316
+ code: string;
317
+ title: components["schemas"]["TitleDTO"];
318
+ description: components["schemas"]["DescriptionDTO"];
319
+ laereplan: components["schemas"]["GrepReferencedLaereplanDTO"];
320
+ typename: components["schemas"]["GrepKjerneelementDTO1"];
321
+ };
322
+ /**
323
+ * GrepKjerneelementDTO
324
+ * @enum {string}
325
+ */
326
+ GrepKjerneelementDTO1: "GrepKjerneelementDTO";
327
+ /**
328
+ * GrepKompetansemaalDTO
329
+ * @description Information about a single grep search result entry
330
+ */
331
+ GrepKompetansemaalDTO: {
332
+ /** @description The grep code */
333
+ code: string;
334
+ title: components["schemas"]["TitleDTO"];
335
+ laereplan: components["schemas"]["GrepReferencedLaereplanDTO"];
336
+ kompetansemaalSett: components["schemas"]["GrepReferencedKompetansemaalSettDTO"];
337
+ tverrfagligeTemaer: components["schemas"]["GrepTverrfagligTemaDTO"][];
338
+ kjerneelementer: components["schemas"]["GrepReferencedKjerneelementDTO"][];
339
+ reuseOf?: components["schemas"]["GrepReferencedKompetansemaalDTO"];
340
+ typename: components["schemas"]["GrepKompetansemaalDTO1"];
341
+ };
342
+ /**
343
+ * GrepKompetansemaalDTO
344
+ * @enum {string}
345
+ */
346
+ GrepKompetansemaalDTO1: "GrepKompetansemaalDTO";
347
+ /**
348
+ * GrepKompetansemaalSettDTO
349
+ * @description Information about a single grep search result entry
350
+ */
351
+ GrepKompetansemaalSettDTO: {
352
+ /** @description The grep code */
353
+ code: string;
354
+ title: components["schemas"]["TitleDTO"];
355
+ kompetansemaal: components["schemas"]["GrepReferencedKompetansemaalDTO"][];
356
+ typename: components["schemas"]["GrepKompetansemaalSettDTO1"];
357
+ };
358
+ /**
359
+ * GrepKompetansemaalSettDTO
360
+ * @enum {string}
361
+ */
362
+ GrepKompetansemaalSettDTO1: "GrepKompetansemaalSettDTO";
363
+ /**
364
+ * GrepLaererplanDTO
365
+ * @description Information about a single grep search result entry
366
+ */
367
+ GrepLaererplanDTO: {
368
+ /** @description The grep code */
369
+ code: string;
370
+ title: components["schemas"]["TitleDTO"];
371
+ replacedBy: components["schemas"]["GrepReferencedLaereplanDTO"][];
372
+ typename: components["schemas"]["GrepLaererplanDTO1"];
373
+ };
374
+ /**
375
+ * GrepLaererplanDTO
376
+ * @enum {string}
377
+ */
378
+ GrepLaererplanDTO1: "GrepLaererplanDTO";
379
+ /** GrepReferencedKjerneelementDTO */
380
+ GrepReferencedKjerneelementDTO: {
381
+ code: string;
382
+ title: string;
383
+ };
384
+ /** GrepReferencedKompetansemaalDTO */
385
+ GrepReferencedKompetansemaalDTO: {
386
+ code: string;
387
+ title: string;
388
+ };
389
+ /** GrepReferencedKompetansemaalSettDTO */
390
+ GrepReferencedKompetansemaalSettDTO: {
391
+ code: string;
392
+ title: string;
393
+ };
394
+ /** GrepReferencedLaereplanDTO */
395
+ GrepReferencedLaereplanDTO: {
396
+ code: string;
397
+ title: string;
398
+ };
399
+ /** GrepResultDTO */
400
+ GrepResultDTO: components["schemas"]["GrepKjerneelementDTO"] | components["schemas"]["GrepKompetansemaalDTO"] | components["schemas"]["GrepKompetansemaalSettDTO"] | components["schemas"]["GrepLaererplanDTO"] | components["schemas"]["GrepTverrfagligTemaDTO"];
401
+ /**
402
+ * GrepSearchInputDTO
403
+ * @description Input parameters to subject aggregations endpoint
404
+ */
405
+ GrepSearchInputDTO: {
406
+ /** @description A comma separated list of prefixes that should be returned in the search. */
407
+ prefixFilter?: string[];
408
+ /** @description A comma separated list of codes that should be returned in the search. */
409
+ codes?: string[];
410
+ /** @description A query to filter the query by. */
411
+ query?: string;
412
+ /**
413
+ * Format: int32
414
+ * @description The page number of the search hits to display.
415
+ */
416
+ page?: number;
417
+ /**
418
+ * Format: int32
419
+ * @description The number of search hits to display for each page.
420
+ */
421
+ pageSize?: number;
422
+ sort?: components["schemas"]["GrepSortDTO"];
423
+ /** @description The ISO 639-1 language code describing language used in query-params */
424
+ language?: string;
425
+ };
426
+ /**
427
+ * GrepSearchResultsDTO
428
+ * @description Information about search-results
429
+ */
430
+ GrepSearchResultsDTO: {
431
+ /**
432
+ * Format: int64
433
+ * @description The total number of resources matching this query
434
+ */
435
+ totalCount: number;
436
+ /**
437
+ * Format: int32
438
+ * @description For which page results are shown from
439
+ */
440
+ page: number;
441
+ /**
442
+ * Format: int32
443
+ * @description The number of results per page
444
+ */
445
+ pageSize: number;
446
+ /** @description The chosen search language */
447
+ language: string;
448
+ /** @description The search results */
449
+ results: components["schemas"]["GrepResultDTO"][];
450
+ };
451
+ /**
452
+ * GrepSortDTO
453
+ * @description The sort order of the search hits.
454
+ * @enum {string}
455
+ */
456
+ GrepSortDTO: "-relevance" | "relevance" | "-title" | "title" | "-code" | "code";
457
+ /**
458
+ * GrepTverrfagligTemaDTO
459
+ * @description Information about a single grep search result entry
460
+ */
461
+ GrepTverrfagligTemaDTO: {
462
+ /** @description The grep code */
463
+ code: string;
464
+ title: components["schemas"]["TitleDTO"];
465
+ typename: components["schemas"]["GrepTverrfagligTemaDTO1"];
466
+ };
467
+ /**
468
+ * GrepTverrfagligTemaDTO
469
+ * @enum {string}
470
+ */
471
+ GrepTverrfagligTemaDTO1: "GrepTverrfagligTemaDTO";
472
+ /**
473
+ * GroupSearchResultDTO
474
+ * @description Search result for group search
475
+ */
476
+ GroupSearchResultDTO: {
477
+ /**
478
+ * Format: int64
479
+ * @description The total number of resources matching this query
480
+ */
481
+ totalCount: number;
482
+ /**
483
+ * Format: int32
484
+ * @description For which page results are shown from
485
+ */
486
+ page?: number;
487
+ /**
488
+ * Format: int32
489
+ * @description The number of results per page
490
+ */
491
+ pageSize: number;
492
+ /** @description The chosen search language */
493
+ language: string;
494
+ /** @description The search results */
495
+ results: components["schemas"]["MultiSummaryBaseDTO"][];
496
+ /** @description The suggestions for other searches */
497
+ suggestions: components["schemas"]["MultiSearchSuggestionDTO"][];
498
+ /** @description The aggregated fields if specified in query */
499
+ aggregations: components["schemas"]["MultiSearchTermsAggregationDTO"][];
500
+ /** @description Type of resources in this object */
501
+ resourceType: string;
502
+ };
503
+ /**
504
+ * HighlightedFieldDTO
505
+ * @description Object describing matched field with matching words emphasized
506
+ */
507
+ HighlightedFieldDTO: {
508
+ /** @description Field that matched */
509
+ field: string;
510
+ /** @description List of segments that matched in `field` */
511
+ matches: string[];
512
+ };
513
+ /**
514
+ * LearningResourceType
515
+ * @description Learning resource type
516
+ * @enum {string}
517
+ */
518
+ LearningResourceType: "standard" | "topic-article" | "frontpage-article" | "learningpath" | "concept" | "gloss";
519
+ /** Map_String */
520
+ Map_String: {
521
+ [key: string]: string;
522
+ };
523
+ /** MetaDescriptionDTO */
524
+ MetaDescriptionDTO: {
525
+ /** @description The meta description */
526
+ metaDescription: string;
527
+ /** @description The ISO 639-1 language code describing which article translation this meta description belongs to */
528
+ language: string;
529
+ };
530
+ /**
531
+ * MetaImageDTO
532
+ * @description The meta image for the resource
533
+ */
534
+ MetaImageDTO: {
535
+ /** @description The meta image id */
536
+ url: string;
537
+ /** @description The meta image alt text */
538
+ alt: string;
539
+ /** @description The ISO 639-1 language code describing which translation this meta image belongs to */
540
+ language: string;
541
+ };
542
+ /**
543
+ * MultiSearchResultDTO
544
+ * @description Information about search-results
545
+ */
546
+ MultiSearchResultDTO: {
547
+ /**
548
+ * Format: int64
549
+ * @description The total number of resources matching this query
550
+ */
551
+ totalCount: number;
552
+ /**
553
+ * Format: int32
554
+ * @description For which page results are shown from
555
+ */
556
+ page?: number;
557
+ /**
558
+ * Format: int32
559
+ * @description The number of results per page
560
+ */
561
+ pageSize: number;
562
+ /** @description The chosen search language */
563
+ language: string;
564
+ /** @description The search results */
565
+ results: components["schemas"]["MultiSummaryBaseDTO"][];
566
+ /** @description The suggestions for other searches */
567
+ suggestions: components["schemas"]["MultiSearchSuggestionDTO"][];
568
+ /** @description The aggregated fields if specified in query */
569
+ aggregations: components["schemas"]["MultiSearchTermsAggregationDTO"][];
570
+ };
571
+ /**
572
+ * MultiSearchSuggestionDTO
573
+ * @description Information about search-suggestions
574
+ */
575
+ MultiSearchSuggestionDTO: {
576
+ /** @description The name of the field suggested for */
577
+ name: string;
578
+ /** @description The list of suggestions for given field */
579
+ suggestions: components["schemas"]["SearchSuggestionDTO"][];
580
+ };
581
+ /**
582
+ * MultiSearchSummaryDTO
583
+ * @description Short summary of information about the resource
584
+ */
585
+ MultiSearchSummaryDTO: {
586
+ /**
587
+ * Format: int64
588
+ * @description The unique id of the resource
589
+ */
590
+ id: number;
591
+ title: components["schemas"]["TitleWithHtmlDTO"];
592
+ /** @description The meta description of the resource */
593
+ metaDescription: components["schemas"]["MetaDescriptionDTO"];
594
+ metaImage?: components["schemas"]["MetaImageDTO"];
595
+ /** @description Url pointing to the resource */
596
+ url: string;
597
+ /** @description Primary context of the resource */
598
+ context?: components["schemas"]["ApiTaxonomyContextDTO"];
599
+ /** @description Contexts of the resource */
600
+ contexts: components["schemas"]["ApiTaxonomyContextDTO"][];
601
+ /** @description Languages the resource exists in */
602
+ supportedLanguages: string[];
603
+ learningResourceType: components["schemas"]["LearningResourceType"];
604
+ status?: components["schemas"]["StatusDTO"];
605
+ /** @description Traits for the resource */
606
+ traits: components["schemas"]["SearchTrait"][];
607
+ /**
608
+ * Format: float
609
+ * @description Relevance score. The higher the score, the better the document matches your search criteria.
610
+ */
611
+ score: number;
612
+ /** @description List of objects describing matched field with matching words emphasized */
613
+ highlights: components["schemas"]["HighlightedFieldDTO"][];
614
+ /** @description The taxonomy paths for the resource */
615
+ paths: string[];
616
+ /** @description The time and date of last update */
617
+ lastUpdated: string;
618
+ /** @description Describes the license of the resource */
619
+ license?: string;
620
+ /** @description A list of revisions planned for the article */
621
+ revisions: components["schemas"]["RevisionMetaDTO"][];
622
+ responsible?: components["schemas"]["DraftResponsibleDTO"];
623
+ /** @description Information about comments attached to the article */
624
+ comments?: components["schemas"]["CommentDTO"][];
625
+ /** @description If the article should be prioritized */
626
+ prioritized?: boolean;
627
+ /** @description If the article should be prioritized. Possible values are prioritized, on-hold, unspecified */
628
+ priority?: string;
629
+ /** @description A combined resource type name if a standard article, otherwise the article type name */
630
+ resourceTypeName?: string;
631
+ /** @description Name of the parent topic if exists */
632
+ parentTopicName?: string;
633
+ /** @description Name of the primary context root if exists */
634
+ primaryRootName?: string;
635
+ /** @description When the article was last published */
636
+ published?: string;
637
+ /**
638
+ * Format: int64
639
+ * @description Number of times favorited in MyNDLA
640
+ */
641
+ favorited?: number;
642
+ /** @description Type of the resource */
643
+ resultType: components["schemas"]["SearchType"];
644
+ typename: components["schemas"]["MultiSearchSummaryDTO1"];
645
+ };
646
+ /**
647
+ * MultiSearchSummaryDTO
648
+ * @enum {string}
649
+ */
650
+ MultiSearchSummaryDTO1: "MultiSearchSummaryDTO";
651
+ /**
652
+ * MultiSearchTermsAggregationDTO
653
+ * @description Information about search aggregation on `field`
654
+ */
655
+ MultiSearchTermsAggregationDTO: {
656
+ /** @description The field the specific aggregation is matching */
657
+ field: string;
658
+ /**
659
+ * Format: int32
660
+ * @description Number of documents with values that didn't appear in the aggregation. (Will only happen if there are more than 50 different values)
661
+ */
662
+ sumOtherDocCount: number;
663
+ /**
664
+ * Format: int32
665
+ * @description The result is approximate, this gives an approximation of potential errors. (Specifics here: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation-approximate-counts)
666
+ */
667
+ docCountErrorUpperBound: number;
668
+ /** @description Values appearing in the field */
669
+ values: components["schemas"]["TermValueDTO"][];
670
+ };
671
+ /** MultiSummaryBaseDTO */
672
+ MultiSummaryBaseDTO: components["schemas"]["MultiSearchSummaryDTO"] | components["schemas"]["NodeHitDTO"];
673
+ /** NodeHitDTO */
674
+ NodeHitDTO: {
675
+ /** @description The unique id of the taxonomy node */
676
+ id: string;
677
+ /** @description The title of the taxonomy node */
678
+ title: string;
679
+ /** @description The url to the frontend page of the taxonomy node */
680
+ url?: string;
681
+ subjectPage?: components["schemas"]["SubjectPageSummaryDTO"];
682
+ /** @description Primary context of the resource */
683
+ context?: components["schemas"]["ApiTaxonomyContextDTO"];
684
+ /** @description Contexts of the resource */
685
+ contexts: components["schemas"]["ApiTaxonomyContextDTO"][];
686
+ typename: components["schemas"]["NodeHitDTO1"];
687
+ };
688
+ /**
689
+ * NodeHitDTO
690
+ * @enum {string}
691
+ */
692
+ NodeHitDTO1: "NodeHitDTO";
693
+ /**
694
+ * NodeType
695
+ * @enum {string}
696
+ */
697
+ NodeType: "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE" | "PROGRAMME";
698
+ /**
699
+ * NotFoundWithSupportedLanguages
700
+ * @description Information about an error
701
+ */
702
+ NotFoundWithSupportedLanguages: {
703
+ /** @description Code stating the type of error */
704
+ code: string;
705
+ /** @description Description of the error */
706
+ description: string;
707
+ /** @description When the error occurred */
708
+ occurredAt: string;
709
+ /** @description List of supported languages */
710
+ supportedLanguages?: string[];
711
+ /**
712
+ * Format: int32
713
+ * @description Numeric http status code
714
+ */
715
+ statusCode: number;
716
+ };
717
+ /**
718
+ * RevisionMetaDTO
719
+ * @description Information about the editorial notes
720
+ */
721
+ RevisionMetaDTO: {
722
+ /** @description A date on which the article would need to be revised */
723
+ revisionDate: string;
724
+ /** @description Notes to keep track of what needs to happen before revision */
725
+ note: string;
726
+ /** @description Status of a revision, either 'revised' or 'needs-revision' */
727
+ status: string;
728
+ };
729
+ /** SearchParamsDTO */
730
+ SearchParamsDTO: {
731
+ /**
732
+ * Format: int32
733
+ * @description The page number of the search hits to display.
734
+ */
735
+ page?: number;
736
+ /**
737
+ * Format: int32
738
+ * @description The number of search hits to display for each page.
739
+ */
740
+ pageSize?: number;
741
+ /** @description A list of article-types the search should be filtered by. */
742
+ articleTypes?: string[];
743
+ /** @description A unique string obtained from a search you want to keep scrolling in. To obtain one from a search, provide one of the following values: ["0", "initial", "start", "first"].
744
+ * When scrolling, the parameters from the initial search is used, except in the case of 'language' and 'fallback'.
745
+ * This value may change between scrolls. Always use the one in the latest scroll result.
746
+ * */
747
+ scrollId?: string;
748
+ /** @description Return only results with content matching the specified query. */
749
+ query?: string;
750
+ /** @description Fallback to existing language if language is specified. */
751
+ fallback?: boolean;
752
+ /** @description The ISO 639-1 language code describing language. */
753
+ language?: string;
754
+ /** @description Return only results with provided license. */
755
+ license?: string;
756
+ sort?: components["schemas"]["Sort"];
757
+ /** @description Return only learning resources that have one of the provided ids. */
758
+ ids?: number[];
759
+ /** @description A comma separated list of subjects the learning resources should be filtered by. */
760
+ subjects?: string[];
761
+ /** @description Return only learning resources of specific type(s). */
762
+ resourceTypes?: string[];
763
+ /** @description A list of context-types the learning resources should be filtered by. */
764
+ contextTypes?: string[];
765
+ /** @description A list of relevances the learning resources should be filtered by.
766
+ * If subjects are specified the learning resource must have specified relevances in relation to a specified subject.
767
+ * If levels are specified the learning resource must have specified relevances in relation to a specified level. */
768
+ relevance?: string[];
769
+ /** @description A list of ISO 639-1 language codes that the learning resource can be available in. */
770
+ languageFilter?: string[];
771
+ /** @description A list of codes from GREP API the resources should be filtered by. */
772
+ grepCodes?: string[];
773
+ /** @description A comma separated list of traits the resources should be filtered by. */
774
+ traits?: components["schemas"]["SearchTrait"][];
775
+ /** @description List of index-paths that should be term-aggregated and returned in result. */
776
+ aggregatePaths?: string[];
777
+ /** @description Return only results with embed data-resource the specified resource. Can specify multiple with a comma separated list to filter for one of the embed types. */
778
+ embedResource?: string[];
779
+ /** @description Return only results with embed data-resource_id, data-videoid or data-url with the specified id. */
780
+ embedId?: string;
781
+ /** @description Filter out inactive taxonomy contexts. */
782
+ filterInactive?: boolean;
783
+ /** @description Which types the search request should return */
784
+ resultTypes?: components["schemas"]["SearchType"][];
785
+ /** @description Which node types the search request should return */
786
+ nodeTypeFilter?: components["schemas"]["NodeType"][];
787
+ };
788
+ /**
789
+ * SearchSuggestionDTO
790
+ * @description Search suggestion for query-text
791
+ */
792
+ SearchSuggestionDTO: {
793
+ /** @description The search query suggestions are made for */
794
+ text: string;
795
+ /**
796
+ * Format: int32
797
+ * @description The offset in the search query
798
+ */
799
+ offset: number;
800
+ /**
801
+ * Format: int32
802
+ * @description The position index in the search query
803
+ */
804
+ length: number;
805
+ /** @description The list of suggest options for the field */
806
+ options: components["schemas"]["SuggestOptionDTO"][];
807
+ };
808
+ /**
809
+ * SearchTrait
810
+ * @enum {string}
811
+ */
812
+ SearchTrait: "VIDEO" | "H5P" | "AUDIO" | "PODCAST";
813
+ /**
814
+ * SearchType
815
+ * @enum {string}
816
+ */
817
+ SearchType: "article" | "draft" | "learningpath" | "concept" | "grep" | "node";
818
+ /**
819
+ * Sort
820
+ * @description The sorting used on results.
821
+ * @enum {string}
822
+ */
823
+ Sort: "-relevance" | "relevance" | "-title" | "title" | "-lastUpdated" | "lastUpdated" | "-id" | "id" | "-duration" | "duration" | "revisionDate" | "-revisionDate" | "responsibleLastUpdated" | "-responsibleLastUpdated" | "status" | "-status" | "-prioritized" | "prioritized" | "-parentTopicName" | "parentTopicName" | "-primaryRoot" | "primaryRoot" | "-resourceType" | "resourceType" | "-published" | "published" | "-favorited" | "favorited";
824
+ /**
825
+ * StatusDTO
826
+ * @description Status information of the resource
827
+ */
828
+ StatusDTO: {
829
+ /** @description The current status of the resource */
830
+ current: string;
831
+ /** @description Previous statuses this resource has been in */
832
+ other: string[];
833
+ };
834
+ /**
835
+ * SubjectAggregationDTO
836
+ * @description Aggregations for a single subject'
837
+ */
838
+ SubjectAggregationDTO: {
839
+ /** @description Id of the aggregated subject */
840
+ subjectId: string;
841
+ /**
842
+ * Format: int64
843
+ * @description Number of resources in subject
844
+ */
845
+ publishedArticleCount: number;
846
+ /**
847
+ * Format: int64
848
+ * @description Number of resources in subject with published older than 5 years
849
+ */
850
+ oldArticleCount: number;
851
+ /**
852
+ * Format: int64
853
+ * @description Number of resources in subject with a revision date expiration in one year
854
+ */
855
+ revisionCount: number;
856
+ /**
857
+ * Format: int64
858
+ * @description Number of resources in 'flow' (Articles not in `PUBLISHED`, `UNPUBLISHED` or `ARCHIVED` status
859
+ */
860
+ flowCount: number;
861
+ /**
862
+ * Format: int64
863
+ * @description Number of favorited resources
864
+ */
865
+ favoritedCount: number;
866
+ };
867
+ /**
868
+ * SubjectAggregationsDTO
869
+ * @description Result of subject aggregations
870
+ */
871
+ SubjectAggregationsDTO: {
872
+ subjects: components["schemas"]["SubjectAggregationDTO"][];
873
+ };
874
+ /**
875
+ * SubjectAggsInputDTO
876
+ * @description Input parameters to subject aggregations endpoint
877
+ */
878
+ SubjectAggsInputDTO: {
879
+ /** @description A comma separated list of subjects the learning resources should be filtered by. */
880
+ subjects?: string[];
881
+ };
882
+ /**
883
+ * SubjectPageSummaryDTO
884
+ * @description Subject page summary if the node is connected to a subject page
885
+ */
886
+ SubjectPageSummaryDTO: {
887
+ /** Format: int64 */
888
+ id: number;
889
+ name: string;
890
+ /** @description Meta description of the resource */
891
+ metaDescription: components["schemas"]["MetaDescriptionDTO"];
892
+ };
893
+ /**
894
+ * SuggestOptionDTO
895
+ * @description Search suggestion options for the terms in the query
896
+ */
897
+ SuggestOptionDTO: {
898
+ /** @description The suggested text */
899
+ text: string;
900
+ /**
901
+ * Format: double
902
+ * @description The score of the suggestion
903
+ */
904
+ score: number;
905
+ };
906
+ /**
907
+ * TaxonomyResourceTypeDTO
908
+ * @description Taxonomy resource type
909
+ */
910
+ TaxonomyResourceTypeDTO: {
911
+ /** @description Id of the taoxonomy resource type */
912
+ id: string;
913
+ /** @description Name of the taoxonomy resource type */
914
+ name: string;
915
+ /** @description The ISO 639-1 language code for the resource type */
916
+ language: string;
917
+ };
918
+ /**
919
+ * TermValueDTO
920
+ * @description Value that appears in the search aggregation
921
+ */
922
+ TermValueDTO: {
923
+ /** @description Value that appeared in result */
924
+ value: string;
925
+ /**
926
+ * Format: int32
927
+ * @description Number of times the value appeared in result
928
+ */
929
+ count: number;
930
+ };
931
+ /**
932
+ * TitleDTO
933
+ * @description The greps title
934
+ */
935
+ TitleDTO: {
936
+ /** @description The freetext title of the resource */
937
+ title: string;
938
+ /** @description ISO 639-1 code that represents the language used in title */
939
+ language: string;
940
+ };
941
+ /**
942
+ * TitleWithHtmlDTO
943
+ * @description The title of the resource
944
+ */
945
+ TitleWithHtmlDTO: {
946
+ /** @description The freetext title of the resource */
947
+ title: string;
948
+ /** @description The freetext html-version title of the article */
949
+ htmlTitle: string;
950
+ /** @description ISO 639-1 code that represents the language used in title */
951
+ language: string;
952
+ };
953
+ /**
954
+ * ValidationErrorBody
955
+ * @description Information about an error
956
+ */
957
+ ValidationErrorBody: {
958
+ /** @description Code stating the type of error */
959
+ code: string;
960
+ /** @description Description of the error */
961
+ description: string;
962
+ /** @description When the error occurred */
963
+ occurredAt: string;
964
+ /** @description List of validation messages */
965
+ messages?: components["schemas"]["ValidationMessage"][];
966
+ /**
967
+ * Format: int32
968
+ * @description Numeric http status code
969
+ */
970
+ statusCode: number;
971
+ };
972
+ /**
973
+ * ValidationMessage
974
+ * @description A message describing a validation error on a specific field
975
+ */
976
+ ValidationMessage: {
977
+ /** @description The field the error occured in */
978
+ field: string;
979
+ /** @description The validation message */
980
+ message: string;
981
+ };
982
+ };
983
+ responses: never;
984
+ parameters: never;
985
+ requestBodies: never;
986
+ headers: never;
987
+ pathItems: never;
988
+ };
989
+ export type $defs = Record<string, never>;
990
+ export interface operations {
991
+ "getSearch-apiV1SearchGroup": {
992
+ parameters: {
993
+ query?: {
994
+ /** @description Return only results with content matching the specified query. */
995
+ query?: string;
996
+ /** @description A comma separated list of resource-types the learning resources should be grouped by. */
997
+ "resource-types"?: string[];
998
+ /** @description The page number of the search hits to display. */
999
+ page?: number;
1000
+ /** @description The number of search hits to display for each page. Defaults to 10 and max is 10000. */
1001
+ "page-size"?: number;
1002
+ /** @description The ISO 639-1 language code describing language. */
1003
+ language?: string;
1004
+ /** @description Fallback to existing language if language is specified. */
1005
+ fallback?: boolean;
1006
+ /** @description A comma separated list of subjects the learning resources should be filtered by. */
1007
+ subjects?: string[];
1008
+ /** @description The sorting used on results.
1009
+ * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id, -duration, duration, revisionDate, -revisionDate, responsibleLastUpdated, -responsibleLastUpdated, status, -status, -prioritized, prioritized, -parentTopicName, parentTopicName, -primaryRoot, primaryRoot, -resourceType, resourceType, -published, published, -favorited, favorited. Default is by -relevance (desc). */
1010
+ sort?: string;
1011
+ /** @description Return only learning resources that have one of the provided ids. To provide multiple ids, separate by comma (,). */
1012
+ ids?: number[];
1013
+ /** @description A comma separated list of types the learning resources should be filtered by. Available values is standard, topic-article, frontpage-article, learningpath, concept, gloss */
1014
+ "context-types"?: string[];
1015
+ /** @description A comma separated list of ISO 639-1 language codes that the learning resource can be available in. */
1016
+ "language-filter"?: string[];
1017
+ /** @description A comma separated list of relevances the learning resources should be filtered by.
1018
+ * If subjects are specified the learning resource must have specified relevances in relation to a specified subject.
1019
+ * If levels are specified the learning resource must have specified relevances in relation to a specified level. */
1020
+ relevance?: string[];
1021
+ /** @description Whether to include group without resource-types for group-search. Defaults to false. */
1022
+ "missing-group"?: boolean;
1023
+ /** @description List of index-paths that should be term-aggregated and returned in result. */
1024
+ "aggregate-paths"?: string[];
1025
+ /** @description A comma separated list of codes from GREP API the resources should be filtered by. */
1026
+ "grep-codes"?: string[];
1027
+ /** @description A comma separated list of traits the resources should be filtered by. */
1028
+ traits?: string[];
1029
+ /** @description Return only results with embed data-resource the specified resource. Can specify multiple with a comma separated list to filter for one of the embed types. */
1030
+ "embed-resource"?: string[];
1031
+ /** @description Return only results with embed data-resource_id, data-videoid or data-url with the specified id. */
1032
+ "embed-id"?: string;
1033
+ /** @description Filter out inactive taxonomy contexts. */
1034
+ "filter-inactive"?: boolean;
1035
+ };
1036
+ header?: {
1037
+ /** @description Header containing FEIDE access token. */
1038
+ FeideAuthorization?: string;
1039
+ };
1040
+ path?: never;
1041
+ cookie?: never;
1042
+ };
1043
+ requestBody?: never;
1044
+ responses: {
1045
+ 200: {
1046
+ headers: {
1047
+ [name: string]: unknown;
1048
+ };
1049
+ content: {
1050
+ "application/json": components["schemas"]["GroupSearchResultDTO"][];
1051
+ };
1052
+ };
1053
+ 400: {
1054
+ headers: {
1055
+ [name: string]: unknown;
1056
+ };
1057
+ content: {
1058
+ "application/json": components["schemas"]["AllErrors"];
1059
+ };
1060
+ };
1061
+ 401: {
1062
+ headers: {
1063
+ [name: string]: unknown;
1064
+ };
1065
+ content: {
1066
+ "application/json": components["schemas"]["AllErrors"];
1067
+ };
1068
+ };
1069
+ 403: {
1070
+ headers: {
1071
+ [name: string]: unknown;
1072
+ };
1073
+ content: {
1074
+ "application/json": components["schemas"]["AllErrors"];
1075
+ };
1076
+ };
1077
+ 404: {
1078
+ headers: {
1079
+ [name: string]: unknown;
1080
+ };
1081
+ content: {
1082
+ "application/json": components["schemas"]["AllErrors"];
1083
+ };
1084
+ };
1085
+ 500: {
1086
+ headers: {
1087
+ [name: string]: unknown;
1088
+ };
1089
+ content: {
1090
+ "application/json": components["schemas"]["ErrorBody"];
1091
+ };
1092
+ };
1093
+ };
1094
+ };
1095
+ "getSearch-apiV1Search": {
1096
+ parameters: {
1097
+ query?: {
1098
+ page?: number;
1099
+ "page-size"?: number;
1100
+ "article-types"?: string[];
1101
+ "context-types"?: string[];
1102
+ language?: string;
1103
+ ids?: number[];
1104
+ "resource-types"?: string[];
1105
+ license?: string;
1106
+ query?: string;
1107
+ sort?: string;
1108
+ fallback?: boolean;
1109
+ subjects?: string[];
1110
+ "language-filter"?: string[];
1111
+ relevance?: string[];
1112
+ "search-context"?: string;
1113
+ "grep-codes"?: string[];
1114
+ "aggregate-paths"?: string[];
1115
+ "embed-resource"?: string[];
1116
+ "embed-id"?: string;
1117
+ "filter-inactive"?: boolean;
1118
+ traits?: string[];
1119
+ "result-types"?: string[];
1120
+ "node-types"?: string[];
1121
+ };
1122
+ header?: {
1123
+ /** @description Header containing FEIDE access token. */
1124
+ FeideAuthorization?: string;
1125
+ };
1126
+ path?: never;
1127
+ cookie?: never;
1128
+ };
1129
+ requestBody?: never;
1130
+ responses: {
1131
+ 200: {
1132
+ headers: {
1133
+ [name: string]: unknown;
1134
+ };
1135
+ content: {
1136
+ "application/json": components["schemas"]["MultiSearchResultDTO"];
1137
+ };
1138
+ };
1139
+ 400: {
1140
+ headers: {
1141
+ [name: string]: unknown;
1142
+ };
1143
+ content: {
1144
+ "application/json": components["schemas"]["AllErrors"];
1145
+ };
1146
+ };
1147
+ 401: {
1148
+ headers: {
1149
+ [name: string]: unknown;
1150
+ };
1151
+ content: {
1152
+ "application/json": components["schemas"]["AllErrors"];
1153
+ };
1154
+ };
1155
+ 403: {
1156
+ headers: {
1157
+ [name: string]: unknown;
1158
+ };
1159
+ content: {
1160
+ "application/json": components["schemas"]["AllErrors"];
1161
+ };
1162
+ };
1163
+ 404: {
1164
+ headers: {
1165
+ [name: string]: unknown;
1166
+ };
1167
+ content: {
1168
+ "application/json": components["schemas"]["AllErrors"];
1169
+ };
1170
+ };
1171
+ 500: {
1172
+ headers: {
1173
+ [name: string]: unknown;
1174
+ };
1175
+ content: {
1176
+ "application/json": components["schemas"]["ErrorBody"];
1177
+ };
1178
+ };
1179
+ };
1180
+ };
1181
+ "postSearch-apiV1Search": {
1182
+ parameters: {
1183
+ query?: never;
1184
+ header?: {
1185
+ /** @description Header containing FEIDE access token. */
1186
+ FeideAuthorization?: string;
1187
+ };
1188
+ path?: never;
1189
+ cookie?: never;
1190
+ };
1191
+ requestBody?: {
1192
+ content: {
1193
+ "application/json": components["schemas"]["SearchParamsDTO"];
1194
+ };
1195
+ };
1196
+ responses: {
1197
+ 200: {
1198
+ headers: {
1199
+ [name: string]: unknown;
1200
+ };
1201
+ content: {
1202
+ "application/json": components["schemas"]["MultiSearchResultDTO"];
1203
+ };
1204
+ };
1205
+ 400: {
1206
+ headers: {
1207
+ [name: string]: unknown;
1208
+ };
1209
+ content: {
1210
+ "application/json": components["schemas"]["AllErrors"];
1211
+ };
1212
+ };
1213
+ 404: {
1214
+ headers: {
1215
+ [name: string]: unknown;
1216
+ };
1217
+ content: {
1218
+ "application/json": components["schemas"]["AllErrors"];
1219
+ };
1220
+ };
1221
+ 500: {
1222
+ headers: {
1223
+ [name: string]: unknown;
1224
+ };
1225
+ content: {
1226
+ "application/json": components["schemas"]["ErrorBody"];
1227
+ };
1228
+ };
1229
+ };
1230
+ };
1231
+ "getSearch-apiV1SearchEditorial": {
1232
+ parameters: {
1233
+ query?: never;
1234
+ header?: never;
1235
+ path?: never;
1236
+ cookie?: never;
1237
+ };
1238
+ requestBody?: never;
1239
+ responses: {
1240
+ 200: {
1241
+ headers: {
1242
+ [name: string]: unknown;
1243
+ };
1244
+ content: {
1245
+ "application/json": components["schemas"]["MultiSearchResultDTO"];
1246
+ };
1247
+ };
1248
+ 400: {
1249
+ headers: {
1250
+ [name: string]: unknown;
1251
+ };
1252
+ content: {
1253
+ "application/json": components["schemas"]["AllErrors"];
1254
+ };
1255
+ };
1256
+ 401: {
1257
+ headers: {
1258
+ [name: string]: unknown;
1259
+ };
1260
+ content: {
1261
+ "application/json": components["schemas"]["AllErrors"];
1262
+ };
1263
+ };
1264
+ 403: {
1265
+ headers: {
1266
+ [name: string]: unknown;
1267
+ };
1268
+ content: {
1269
+ "application/json": components["schemas"]["AllErrors"];
1270
+ };
1271
+ };
1272
+ 404: {
1273
+ headers: {
1274
+ [name: string]: unknown;
1275
+ };
1276
+ content: {
1277
+ "application/json": components["schemas"]["AllErrors"];
1278
+ };
1279
+ };
1280
+ 500: {
1281
+ headers: {
1282
+ [name: string]: unknown;
1283
+ };
1284
+ content: {
1285
+ "application/json": components["schemas"]["ErrorBody"];
1286
+ };
1287
+ };
1288
+ };
1289
+ };
1290
+ "postSearch-apiV1SearchEditorial": {
1291
+ parameters: {
1292
+ query?: never;
1293
+ header?: never;
1294
+ path?: never;
1295
+ cookie?: never;
1296
+ };
1297
+ requestBody?: {
1298
+ content: {
1299
+ "application/json": components["schemas"]["DraftSearchParamsDTO"];
1300
+ };
1301
+ };
1302
+ responses: {
1303
+ 200: {
1304
+ headers: {
1305
+ [name: string]: unknown;
1306
+ };
1307
+ content: {
1308
+ "application/json": components["schemas"]["MultiSearchResultDTO"];
1309
+ };
1310
+ };
1311
+ 400: {
1312
+ headers: {
1313
+ [name: string]: unknown;
1314
+ };
1315
+ content: {
1316
+ "application/json": components["schemas"]["AllErrors"];
1317
+ };
1318
+ };
1319
+ 401: {
1320
+ headers: {
1321
+ [name: string]: unknown;
1322
+ };
1323
+ content: {
1324
+ "application/json": components["schemas"]["AllErrors"];
1325
+ };
1326
+ };
1327
+ 403: {
1328
+ headers: {
1329
+ [name: string]: unknown;
1330
+ };
1331
+ content: {
1332
+ "application/json": components["schemas"]["AllErrors"];
1333
+ };
1334
+ };
1335
+ 404: {
1336
+ headers: {
1337
+ [name: string]: unknown;
1338
+ };
1339
+ content: {
1340
+ "application/json": components["schemas"]["AllErrors"];
1341
+ };
1342
+ };
1343
+ 500: {
1344
+ headers: {
1345
+ [name: string]: unknown;
1346
+ };
1347
+ content: {
1348
+ "application/json": components["schemas"]["ErrorBody"];
1349
+ };
1350
+ };
1351
+ };
1352
+ };
1353
+ "postSearch-apiV1SearchSubjects": {
1354
+ parameters: {
1355
+ query?: never;
1356
+ header?: never;
1357
+ path?: never;
1358
+ cookie?: never;
1359
+ };
1360
+ requestBody: {
1361
+ content: {
1362
+ "application/json": components["schemas"]["SubjectAggsInputDTO"];
1363
+ };
1364
+ };
1365
+ responses: {
1366
+ 200: {
1367
+ headers: {
1368
+ [name: string]: unknown;
1369
+ };
1370
+ content: {
1371
+ "application/json": components["schemas"]["SubjectAggregationsDTO"];
1372
+ };
1373
+ };
1374
+ 400: {
1375
+ headers: {
1376
+ [name: string]: unknown;
1377
+ };
1378
+ content: {
1379
+ "application/json": components["schemas"]["AllErrors"];
1380
+ };
1381
+ };
1382
+ 401: {
1383
+ headers: {
1384
+ [name: string]: unknown;
1385
+ };
1386
+ content: {
1387
+ "application/json": components["schemas"]["AllErrors"];
1388
+ };
1389
+ };
1390
+ 403: {
1391
+ headers: {
1392
+ [name: string]: unknown;
1393
+ };
1394
+ content: {
1395
+ "application/json": components["schemas"]["AllErrors"];
1396
+ };
1397
+ };
1398
+ 404: {
1399
+ headers: {
1400
+ [name: string]: unknown;
1401
+ };
1402
+ content: {
1403
+ "application/json": components["schemas"]["AllErrors"];
1404
+ };
1405
+ };
1406
+ 500: {
1407
+ headers: {
1408
+ [name: string]: unknown;
1409
+ };
1410
+ content: {
1411
+ "application/json": components["schemas"]["ErrorBody"];
1412
+ };
1413
+ };
1414
+ };
1415
+ };
1416
+ "postSearch-apiV1SearchGrep": {
1417
+ parameters: {
1418
+ query?: never;
1419
+ header?: never;
1420
+ path?: never;
1421
+ cookie?: never;
1422
+ };
1423
+ requestBody: {
1424
+ content: {
1425
+ "application/json": components["schemas"]["GrepSearchInputDTO"];
1426
+ };
1427
+ };
1428
+ responses: {
1429
+ 200: {
1430
+ headers: {
1431
+ [name: string]: unknown;
1432
+ };
1433
+ content: {
1434
+ "application/json": components["schemas"]["GrepSearchResultsDTO"];
1435
+ };
1436
+ };
1437
+ 400: {
1438
+ headers: {
1439
+ [name: string]: unknown;
1440
+ };
1441
+ content: {
1442
+ "application/json": components["schemas"]["AllErrors"];
1443
+ };
1444
+ };
1445
+ 401: {
1446
+ headers: {
1447
+ [name: string]: unknown;
1448
+ };
1449
+ content: {
1450
+ "application/json": components["schemas"]["AllErrors"];
1451
+ };
1452
+ };
1453
+ 403: {
1454
+ headers: {
1455
+ [name: string]: unknown;
1456
+ };
1457
+ content: {
1458
+ "application/json": components["schemas"]["AllErrors"];
1459
+ };
1460
+ };
1461
+ 404: {
1462
+ headers: {
1463
+ [name: string]: unknown;
1464
+ };
1465
+ content: {
1466
+ "application/json": components["schemas"]["AllErrors"];
1467
+ };
1468
+ };
1469
+ 500: {
1470
+ headers: {
1471
+ [name: string]: unknown;
1472
+ };
1473
+ content: {
1474
+ "application/json": components["schemas"]["ErrorBody"];
1475
+ };
1476
+ };
1477
+ };
1478
+ };
1479
+ "getSearch-apiV1SearchGrepReplacements": {
1480
+ parameters: {
1481
+ query?: {
1482
+ /** @description Grep codes to find replacements for. To provide codes ids, separate by comma (,). */
1483
+ codes?: string[];
1484
+ };
1485
+ header?: never;
1486
+ path?: never;
1487
+ cookie?: never;
1488
+ };
1489
+ requestBody?: never;
1490
+ responses: {
1491
+ 200: {
1492
+ headers: {
1493
+ [name: string]: unknown;
1494
+ };
1495
+ content: {
1496
+ "application/json": components["schemas"]["Map_String"];
1497
+ };
1498
+ };
1499
+ 400: {
1500
+ headers: {
1501
+ [name: string]: unknown;
1502
+ };
1503
+ content: {
1504
+ "application/json": components["schemas"]["AllErrors"];
1505
+ };
1506
+ };
1507
+ 404: {
1508
+ headers: {
1509
+ [name: string]: unknown;
1510
+ };
1511
+ content: {
1512
+ "application/json": components["schemas"]["AllErrors"];
1513
+ };
1514
+ };
1515
+ 500: {
1516
+ headers: {
1517
+ [name: string]: unknown;
1518
+ };
1519
+ content: {
1520
+ "application/json": components["schemas"]["ErrorBody"];
1521
+ };
1522
+ };
1523
+ };
1524
+ };
1525
+ }