@prostgles/prostgles 2.3.6-dev.1787160729 → 2.3.6-dev.1787224693

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 (43) hide show
  1. package/dist/server/package.json +1 -1
  2. package/dist/server/src/ConnectionManager/applyStartupSchemaConfig.d.ts +7 -1
  3. package/dist/server/src/ConnectionManager/applyStartupSchemaConfig.d.ts.map +1 -1
  4. package/dist/server/src/ConnectionManager/applyStartupSchemaConfig.js +17 -7
  5. package/dist/server/src/ConnectionManager/applyStartupSchemaConfig.js.map +1 -1
  6. package/dist/server/src/ServiceManager/ServiceManager.d.ts +7 -4
  7. package/dist/server/src/ServiceManager/ServiceManager.d.ts.map +1 -1
  8. package/dist/server/src/ServiceManager/ServiceManager.js +36 -12
  9. package/dist/server/src/ServiceManager/ServiceManager.js.map +1 -1
  10. package/dist/server/src/ServiceManager/ServiceManager.spec.js +34 -2
  11. package/dist/server/src/ServiceManager/ServiceManager.spec.js.map +1 -1
  12. package/dist/server/src/ServiceManager/ServiceManagerTypes.d.ts +1 -1
  13. package/dist/server/src/ServiceManager/buildService.js +1 -1
  14. package/dist/server/src/ServiceManager/buildService.js.map +1 -1
  15. package/dist/server/src/ServiceManager/enableService.d.ts +3 -2
  16. package/dist/server/src/ServiceManager/enableService.d.ts.map +1 -1
  17. package/dist/server/src/ServiceManager/enableService.js.map +1 -1
  18. package/dist/server/src/ServiceManager/getServiceEndpoints.d.ts.map +1 -1
  19. package/dist/server/src/ServiceManager/getServiceEndpoints.js +9 -1
  20. package/dist/server/src/ServiceManager/getServiceEndpoints.js.map +1 -1
  21. package/dist/server/src/ServiceManager/initialiseServices.d.ts.map +1 -1
  22. package/dist/server/src/ServiceManager/initialiseServices.js +3 -2
  23. package/dist/server/src/ServiceManager/initialiseServices.js.map +1 -1
  24. package/dist/server/src/cli/cliTemplateFiles.js +34 -6
  25. package/dist/server/src/cli/cliTemplateFiles.js.map +1 -1
  26. package/dist/server/src/cli/getCliAgentsFile.d.ts.map +1 -1
  27. package/dist/server/src/cli/getCliAgentsFile.js +8 -0
  28. package/dist/server/src/cli/getCliAgentsFile.js.map +1 -1
  29. package/dist/server/src/init/prostglesOnReady.d.ts +2 -677
  30. package/dist/server/src/init/prostglesOnReady.d.ts.map +1 -1
  31. package/dist/server/src/init/prostglesOnReady.js +13 -4
  32. package/dist/server/src/init/prostglesOnReady.js.map +1 -1
  33. package/dist/server/src/schemaConfig.d.ts +4 -0
  34. package/dist/server/src/schemaConfig.d.ts.map +1 -1
  35. package/dist/server/src/schemaConfig.js.map +1 -1
  36. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts.map +1 -1
  37. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js +1 -2
  38. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js.map +1 -1
  39. package/dist/server/src/services.d.ts +2 -1
  40. package/dist/server/src/services.d.ts.map +1 -1
  41. package/dist/server/src/services.js +3 -1
  42. package/dist/server/src/services.js.map +1 -1
  43. package/package.json +1 -1
@@ -5,683 +5,8 @@ import type { DBSConnectionInfo } from "../electronConfig";
5
5
  import type e from "express";
6
6
  import type { OnReadyCallback } from "prostgles-server/dist/initProstgles";
7
7
  import BackupManager from "../BackupManager/BackupManager";
8
+ import { prostglesServices, type ServiceRegistry } from "../ServiceManager/ServiceManagerTypes";
8
9
  export declare const getBackupManager: () => BackupManager;
9
- export declare const getServiceManager: () => ServiceManager<{
10
- speechToText: {
11
- readonly icon: "MicrophoneMessage";
12
- readonly label: "Speech to Text";
13
- readonly port: 8000;
14
- readonly env: {
15
- readonly WHISPER_MODEL: "small";
16
- readonly MODEL_CACHE_DIR: "/app/models";
17
- readonly HF_HOME: "/app/models";
18
- };
19
- readonly hostPort: 8100;
20
- readonly configs: {
21
- readonly model: {
22
- readonly label: "Model";
23
- readonly description: "Select the Whisper model size to use for transcription.";
24
- readonly defaultOption: "small";
25
- readonly options: {
26
- [k: string]: {
27
- env: {
28
- WHISPER_MODEL: string;
29
- };
30
- };
31
- };
32
- };
33
- readonly device: {
34
- readonly label: "Device";
35
- readonly description: "Select the device to run the Whisper model on.";
36
- readonly defaultOption: "cpu";
37
- readonly options: {
38
- readonly cpu: {
39
- readonly env: {
40
- readonly WHISPER_DEVICE: "cpu";
41
- };
42
- };
43
- readonly cuda: {
44
- readonly env: {
45
- readonly WHISPER_DEVICE: "cuda";
46
- };
47
- readonly buildArgs: {
48
- readonly BASE_IMAGE: "nvidia/cuda:12.3.2-cudnn9-runtime-ubuntu22.04";
49
- };
50
- readonly gpus: "all";
51
- };
52
- };
53
- };
54
- readonly language: {
55
- readonly label: "Language";
56
- readonly description: "Select the language for transcription. 'auto' will auto-detect the language.";
57
- readonly defaultOption: "auto";
58
- readonly options: {
59
- readonly auto: {
60
- readonly env: {};
61
- };
62
- readonly en: {
63
- readonly env: {
64
- readonly WHISPER_LANGUAGE: "en";
65
- };
66
- };
67
- readonly es: {
68
- readonly env: {
69
- readonly WHISPER_LANGUAGE: "es";
70
- };
71
- };
72
- readonly fr: {
73
- readonly env: {
74
- readonly WHISPER_LANGUAGE: "fr";
75
- };
76
- };
77
- readonly de: {
78
- readonly env: {
79
- readonly WHISPER_LANGUAGE: "de";
80
- };
81
- };
82
- readonly zh: {
83
- readonly env: {
84
- readonly WHISPER_LANGUAGE: "zh";
85
- };
86
- };
87
- readonly ja: {
88
- readonly env: {
89
- readonly WHISPER_LANGUAGE: "ja";
90
- };
91
- };
92
- readonly ru: {
93
- readonly env: {
94
- readonly WHISPER_LANGUAGE: "ru";
95
- };
96
- };
97
- readonly ro: {
98
- readonly env: {
99
- readonly WHISPER_LANGUAGE: "ro";
100
- };
101
- };
102
- readonly it: {
103
- readonly env: {
104
- readonly WHISPER_LANGUAGE: "it";
105
- };
106
- };
107
- readonly pt: {
108
- readonly env: {
109
- readonly WHISPER_LANGUAGE: "pt";
110
- };
111
- };
112
- readonly ar: {
113
- readonly env: {
114
- readonly WHISPER_LANGUAGE: "ar";
115
- };
116
- };
117
- readonly hi: {
118
- readonly env: {
119
- readonly WHISPER_LANGUAGE: "hi";
120
- };
121
- };
122
- };
123
- };
124
- };
125
- readonly volumes: {
126
- readonly "whisper-models": "/app/models";
127
- };
128
- readonly healthCheck: {
129
- readonly endpoint: "/health";
130
- };
131
- readonly description: "Speech-to-Text Service powered by [Faster-Whisper](https://github.com/SYSTRAN/faster-whisper). Used in the AI Assistant chat.";
132
- readonly endpoints: {
133
- readonly "/": {
134
- readonly method: "GET";
135
- readonly inputSchema: undefined;
136
- readonly description: "HTML page with voice recorder UI";
137
- readonly outputSchema: {
138
- readonly type: "string";
139
- };
140
- };
141
- readonly "/transcribe": {
142
- readonly method: "POST";
143
- readonly description: "Audio file upload for speech-to-text transcription";
144
- readonly inputSchema: {
145
- readonly type: {
146
- readonly audio: "Blob";
147
- };
148
- readonly description: "Audio file as multipart/form-data (webm, mp3, wav, etc.)";
149
- };
150
- readonly inputType: "FormData";
151
- readonly outputSchema: {
152
- readonly oneOf: readonly [{
153
- readonly type: {
154
- readonly success: {
155
- readonly type: "boolean";
156
- };
157
- readonly transcription: {
158
- readonly type: "string";
159
- readonly description: "The transcribed text from the audio";
160
- };
161
- readonly language: {
162
- readonly type: "string";
163
- readonly description: "Detected language code (e.g., 'en', 'es', 'fr')";
164
- };
165
- readonly language_probability: {
166
- readonly type: "number";
167
- readonly description: "Confidence score for detected language (0-1)";
168
- };
169
- readonly segments: {
170
- readonly arrayOfType: {
171
- readonly start: {
172
- readonly type: "number";
173
- readonly description: "Segment start time in seconds";
174
- };
175
- readonly end: {
176
- readonly type: "number";
177
- readonly description: "Segment end time in seconds";
178
- };
179
- readonly text: {
180
- readonly type: "string";
181
- readonly description: "Transcribed text for this segment";
182
- };
183
- };
184
- readonly description: "Array of transcription segments with timestamps";
185
- };
186
- };
187
- readonly description: "Successful transcription response";
188
- }, {
189
- readonly type: {
190
- readonly error: {
191
- readonly type: "string";
192
- readonly description: "Error message describing what went wrong";
193
- };
194
- };
195
- readonly description: "Error response";
196
- }];
197
- readonly description: "Transcription result or error";
198
- };
199
- };
200
- readonly "/health": {
201
- readonly method: "GET";
202
- readonly description: "Health check response";
203
- readonly inputSchema: undefined;
204
- readonly outputSchema: {
205
- readonly type: {
206
- readonly status: {
207
- readonly type: "string";
208
- readonly allowedValues: ["healthy"];
209
- readonly description: "Health check status";
210
- };
211
- };
212
- };
213
- };
214
- };
215
- };
216
- webSearchSearxng: {
217
- readonly icon: "Web";
218
- readonly label: "Web Search";
219
- readonly port: 8080;
220
- readonly hostPort: 8888;
221
- readonly healthCheck: {
222
- readonly method: "GET";
223
- readonly endpoint: "/search";
224
- };
225
- readonly description: "Web search powered by [SearXNG](https://docs.searxng.org/). Used in the AI Assistant chat.";
226
- readonly endpoints: {
227
- readonly "/search": {
228
- readonly method: "GET";
229
- readonly description: "SearXNG search endpoint";
230
- readonly inputSchema: {
231
- readonly type: {
232
- readonly format: {
233
- readonly enum: readonly ["json"];
234
- };
235
- readonly q: {
236
- readonly type: "string";
237
- readonly description: "The search query. This string is passed to external search services. Supports service-specific syntax (e.g., \"site:github.com SearXNG\" for Google)";
238
- };
239
- readonly categories: {
240
- readonly type: "string";
241
- readonly optional: true;
242
- readonly description: " Comma-separated list of active search categories. Categories to search in (e.g., 'general,images,videos')";
243
- };
244
- readonly engines: {
245
- readonly type: "string";
246
- readonly optional: true;
247
- readonly description: "Comma-separated list of active search engines (e.g., 'google,bing,duckduckgo')";
248
- };
249
- readonly language: {
250
- readonly type: "string";
251
- readonly optional: true;
252
- readonly description: "Language code for the search results (e.g., 'en' for English, 'fr' for French)";
253
- };
254
- readonly pageno: {
255
- readonly type: "integer";
256
- readonly optional: true;
257
- readonly description: "Search result page number. Defaults to 1.";
258
- };
259
- readonly time_range: {
260
- readonly enum: readonly ["day", "month", "year"];
261
- readonly optional: true;
262
- readonly description: "Time range filter for results ('day' = past day, 'month' = past month, 'year' = past year). Only supported by engines that implement time range filtering";
263
- };
264
- };
265
- };
266
- readonly outputSchema: {
267
- readonly type: {
268
- readonly results: {
269
- readonly arrayOfType: {
270
- readonly title: "string";
271
- readonly content: "string";
272
- readonly url: "string";
273
- readonly score: "number";
274
- readonly category: "string";
275
- readonly engine: "string";
276
- readonly img_src: "string";
277
- readonly thumbnail: "any";
278
- readonly template: {
279
- readonly optional: true;
280
- readonly type: "any";
281
- };
282
- readonly publishedDate: {
283
- readonly optional: true;
284
- readonly type: "any";
285
- };
286
- readonly parsed_url: {
287
- readonly optional: true;
288
- readonly type: "any";
289
- };
290
- readonly priority: {
291
- readonly optional: true;
292
- readonly type: "any";
293
- };
294
- readonly engines: {
295
- readonly optional: true;
296
- readonly type: "any";
297
- };
298
- readonly positions: {
299
- readonly optional: true;
300
- readonly type: "any";
301
- };
302
- readonly pubdate: {
303
- readonly optional: true;
304
- readonly type: "any";
305
- };
306
- };
307
- };
308
- };
309
- };
310
- };
311
- };
312
- };
313
- documents: {
314
- readonly icon: "FileDocumentOutline";
315
- readonly label: "Docling";
316
- readonly description: "Convert documents and images to structured data using [Docling](https://www.docling.ai/). Check [UI](http://localhost:5001/ui/) and [Swagger](http://0.0.0.0:5001/swagger) for more information.";
317
- readonly port: 5001;
318
- readonly volumes: {
319
- readonly "docling-cache": "/app/.cache";
320
- };
321
- readonly configs: {
322
- readonly device: {
323
- readonly label: "Device";
324
- readonly description: "Select the device for processing. GPU requires CUDA support.";
325
- readonly defaultOption: "cpu";
326
- readonly options: {
327
- readonly cpu: {
328
- readonly env: {};
329
- readonly buildArgs: {
330
- readonly BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.29.0";
331
- };
332
- };
333
- readonly cuda: {
334
- readonly env: {
335
- readonly DOCLING_SERVE_ENG_LOC_NUM_WORKERS: "1";
336
- readonly DOCLING_SERVE_NUM_WORKERS: "2";
337
- readonly OMP_NUM_THREADS: "4";
338
- readonly MKL_NUM_THREADS: "4";
339
- };
340
- readonly buildArgs: {
341
- readonly BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.29.0";
342
- };
343
- readonly gpus: "all";
344
- };
345
- };
346
- };
347
- readonly ui: {
348
- readonly label: "Web UI";
349
- readonly description: "Enable the built-in web interface for testing conversions.";
350
- readonly defaultOption: "enabled";
351
- readonly options: {
352
- readonly enabled: {
353
- readonly env: {
354
- readonly DOCLING_SERVE_ENABLE_UI: "1";
355
- };
356
- };
357
- readonly disabled: {
358
- readonly env: {
359
- readonly DOCLING_SERVE_ENABLE_UI: "0";
360
- };
361
- };
362
- };
363
- };
364
- };
365
- readonly env: {
366
- readonly DOCLING_SERVE_HOST: "0.0.0.0";
367
- readonly DOCLING_SERVE_PORT: "5001";
368
- readonly DOCLING_SERVE_ENABLE_UI: "1";
369
- readonly DOCLING_SERVE_MAX_SYNC_WAIT: "600";
370
- readonly DOCLING_SERVE_MAX_DOCUMENT_TIMEOUT: "600";
371
- };
372
- readonly healthCheck: {
373
- readonly endpoint: "/health";
374
- };
375
- readonly endpoints: {
376
- readonly "/": {
377
- readonly method: "GET";
378
- readonly inputSchema: undefined;
379
- readonly description: "Service info endpoint";
380
- readonly outputSchema: {
381
- readonly type: "string";
382
- };
383
- };
384
- readonly "/ui": {
385
- readonly method: "GET";
386
- readonly inputSchema: undefined;
387
- readonly description: "Interactive web interface for document conversion";
388
- readonly outputSchema: {
389
- readonly type: "string";
390
- };
391
- };
392
- readonly "/v1/convert/file": {
393
- readonly method: "POST";
394
- readonly description: "Convert a document from a file";
395
- readonly inputSchema: {
396
- readonly type: {
397
- readonly from_formats: {
398
- readonly optional: true;
399
- readonly type: "string[]";
400
- readonly allowedValues: readonly ["docx", "pptx", "html", "image", "pdf", "asciidoc", "md", "csv", "xlsx", "xml_uspto", "xml_jats", "xml_xbrl", "mets_gbs", "json_docling", "audio", "vtt", "latex"];
401
- };
402
- readonly to_formats: {
403
- readonly optional: true;
404
- readonly type: "string[]";
405
- readonly allowedValues: readonly ["md", "json", "yaml", "html", "html_split_page", "text", "doctags"];
406
- };
407
- readonly image_export_mode: {
408
- readonly optional: true;
409
- readonly enum: readonly ["placeholder", "embedded", "referenced"];
410
- readonly description: "Image export mode for the document (in case of JSON, Markdown or HTML). Allowed values: placeholder, embedded, referenced. Optional, defaults to Embedded.";
411
- };
412
- readonly page_range: {
413
- readonly tuple: readonly ["number", "number"];
414
- readonly optional: true;
415
- readonly description: "Only convert a range of pages. The page number starts at 1. For example, [1, 3] will convert only the first and third pages of the document.";
416
- };
417
- readonly do_ocr: {
418
- readonly type: "boolean";
419
- readonly optional: true;
420
- readonly description: "If enabled, the bitmap content will be processed using OCR. Boolean. Optional, defaults to true";
421
- };
422
- readonly force_ocr: {
423
- readonly type: "boolean";
424
- readonly optional: true;
425
- readonly description: "If enabled, replace existing text with OCR-generated text over content. Boolean. Optional, defaults to false.";
426
- };
427
- readonly ocr_engine: {
428
- readonly enum: readonly ["auto", "easyocr", "ocrmac", "rapidocr", "tesserocr", "tesseract"];
429
- readonly optional: true;
430
- readonly description: "The OCR engine to use. String. Allowed values: auto, easyocr, ocrmac, rapidocr, tesserocr, tesseract. Optional, defaults to easyocr.";
431
- };
432
- readonly ocr_lang: {
433
- readonly type: "string[]";
434
- readonly optional: true;
435
- readonly description: "List of languages used by the OCR engine. Note that each OCR engine has different values for the language names. String or list of strings. Optional, defaults to empty.";
436
- };
437
- readonly document_timeout: {
438
- readonly optional: true;
439
- readonly type: "number";
440
- readonly description: "The timeout for processing each document, in seconds.";
441
- };
442
- readonly pdf_backend: {
443
- readonly enum: readonly ["pypdfium2", "docling_parse", "dlparse_v1", "dlparse_v2", "dlparse_v4"];
444
- readonly optional: true;
445
- readonly description: "The PDF backend to use. String. Allowed values: pypdfium2, docling_parse, dlparse_v1, dlparse_v2, dlparse_v4. Optional, defaults to docling_parse.";
446
- };
447
- readonly table_mode: {
448
- readonly enum: readonly ["fast", "accurate"];
449
- readonly optional: true;
450
- readonly description: "Mode to use for table structure, String. Allowed values: fast, accurate. Optional, defaults to accurate.";
451
- };
452
- readonly do_table_structure: {
453
- readonly type: "boolean";
454
- readonly optional: true;
455
- readonly description: "If enabled, the table structure will be extracted. Boolean. Optional, defaults to true.";
456
- };
457
- readonly include_images: {
458
- readonly type: "boolean";
459
- readonly optional: true;
460
- readonly description: "If enabled, images will be extracted from the document. Boolean. Optional, defaults to true.";
461
- };
462
- readonly md_page_break_placeholder: {
463
- readonly type: "string";
464
- readonly optional: true;
465
- readonly description: "Add this placeholder between pages in the markdown output.";
466
- };
467
- readonly images_scale: {
468
- readonly type: "number";
469
- readonly optional: true;
470
- readonly description: "Scale factor for images. Float. Optional, defaults to 2.0.";
471
- };
472
- readonly files: "Blob[]";
473
- };
474
- };
475
- readonly inputType: "FormData";
476
- readonly outputSchema: {
477
- readonly type: {
478
- readonly document: {
479
- readonly type: {
480
- readonly filename: {
481
- readonly oneOf: readonly ["string", {
482
- readonly enum: readonly [null];
483
- }];
484
- };
485
- readonly md_content: {
486
- readonly oneOf: readonly ["string", {
487
- readonly enum: readonly [null];
488
- }];
489
- };
490
- readonly json_content: "any";
491
- readonly html_content: {
492
- readonly oneOf: readonly ["string", {
493
- readonly enum: readonly [null];
494
- }];
495
- };
496
- readonly text_content: {
497
- readonly oneOf: readonly ["string", {
498
- readonly enum: readonly [null];
499
- }];
500
- };
501
- readonly doctags_content: {
502
- readonly oneOf: readonly ["string", {
503
- readonly enum: readonly [null];
504
- }];
505
- };
506
- };
507
- };
508
- readonly status: {
509
- readonly enum: readonly ["pending", "started", "failure", "success", "partial_success", "skipped"];
510
- };
511
- readonly errors: "any[]";
512
- };
513
- };
514
- };
515
- readonly "/v1/convert/source": {
516
- readonly method: "POST";
517
- readonly description: "Convert a document from a URL";
518
- readonly inputSchema: {
519
- readonly type: {
520
- readonly sources: {
521
- readonly arrayOf: {
522
- readonly oneOfType: readonly [{
523
- readonly kind: {
524
- readonly enum: readonly ["http"];
525
- };
526
- readonly headers: {
527
- readonly optional: true;
528
- readonly record: {
529
- readonly values: "string";
530
- };
531
- };
532
- readonly url: "string";
533
- }, {
534
- readonly kind: {
535
- readonly enum: readonly ["s3"];
536
- };
537
- readonly endpoint: "string";
538
- readonly verify_ssl: {
539
- readonly type: "boolean";
540
- readonly optional: true;
541
- };
542
- readonly access_key: "string";
543
- readonly secret_key: "string";
544
- readonly bucket: "string";
545
- readonly key_prefix: "string";
546
- }];
547
- };
548
- };
549
- readonly options: {
550
- readonly optional: true;
551
- readonly type: {
552
- readonly from_formats: {
553
- readonly optional: true;
554
- readonly type: "string[]";
555
- readonly allowedValues: readonly ["docx", "pptx", "html", "image", "pdf", "asciidoc", "md", "csv", "xlsx", "xml_uspto", "xml_jats", "xml_xbrl", "mets_gbs", "json_docling", "audio", "vtt", "latex"];
556
- };
557
- readonly to_formats: {
558
- readonly optional: true;
559
- readonly type: "string[]";
560
- readonly allowedValues: readonly ["md", "json", "yaml", "html", "html_split_page", "text", "doctags"];
561
- };
562
- readonly image_export_mode: {
563
- readonly optional: true;
564
- readonly enum: readonly ["placeholder", "embedded", "referenced"];
565
- readonly description: "Image export mode for the document (in case of JSON, Markdown or HTML). Allowed values: placeholder, embedded, referenced. Optional, defaults to Embedded.";
566
- };
567
- readonly page_range: {
568
- readonly tuple: readonly ["number", "number"];
569
- readonly optional: true;
570
- readonly description: "Only convert a range of pages. The page number starts at 1. For example, [1, 3] will convert only the first and third pages of the document.";
571
- };
572
- readonly do_ocr: {
573
- readonly type: "boolean";
574
- readonly optional: true;
575
- readonly description: "If enabled, the bitmap content will be processed using OCR. Boolean. Optional, defaults to true";
576
- };
577
- readonly force_ocr: {
578
- readonly type: "boolean";
579
- readonly optional: true;
580
- readonly description: "If enabled, replace existing text with OCR-generated text over content. Boolean. Optional, defaults to false.";
581
- };
582
- readonly ocr_engine: {
583
- readonly enum: readonly ["auto", "easyocr", "ocrmac", "rapidocr", "tesserocr", "tesseract"];
584
- readonly optional: true;
585
- readonly description: "The OCR engine to use. String. Allowed values: auto, easyocr, ocrmac, rapidocr, tesserocr, tesseract. Optional, defaults to easyocr.";
586
- };
587
- readonly ocr_lang: {
588
- readonly type: "string[]";
589
- readonly optional: true;
590
- readonly description: "List of languages used by the OCR engine. Note that each OCR engine has different values for the language names. String or list of strings. Optional, defaults to empty.";
591
- };
592
- readonly document_timeout: {
593
- readonly optional: true;
594
- readonly type: "number";
595
- readonly description: "The timeout for processing each document, in seconds.";
596
- };
597
- readonly pdf_backend: {
598
- readonly enum: readonly ["pypdfium2", "docling_parse", "dlparse_v1", "dlparse_v2", "dlparse_v4"];
599
- readonly optional: true;
600
- readonly description: "The PDF backend to use. String. Allowed values: pypdfium2, docling_parse, dlparse_v1, dlparse_v2, dlparse_v4. Optional, defaults to docling_parse.";
601
- };
602
- readonly table_mode: {
603
- readonly enum: readonly ["fast", "accurate"];
604
- readonly optional: true;
605
- readonly description: "Mode to use for table structure, String. Allowed values: fast, accurate. Optional, defaults to accurate.";
606
- };
607
- readonly do_table_structure: {
608
- readonly type: "boolean";
609
- readonly optional: true;
610
- readonly description: "If enabled, the table structure will be extracted. Boolean. Optional, defaults to true.";
611
- };
612
- readonly include_images: {
613
- readonly type: "boolean";
614
- readonly optional: true;
615
- readonly description: "If enabled, images will be extracted from the document. Boolean. Optional, defaults to true.";
616
- };
617
- readonly md_page_break_placeholder: {
618
- readonly type: "string";
619
- readonly optional: true;
620
- readonly description: "Add this placeholder between pages in the markdown output.";
621
- };
622
- readonly images_scale: {
623
- readonly type: "number";
624
- readonly optional: true;
625
- readonly description: "Scale factor for images. Float. Optional, defaults to 2.0.";
626
- };
627
- };
628
- };
629
- };
630
- };
631
- readonly outputSchema: {
632
- readonly type: {
633
- readonly document: {
634
- readonly type: {
635
- readonly filename: {
636
- readonly oneOf: readonly ["string", {
637
- readonly enum: readonly [null];
638
- }];
639
- };
640
- readonly md_content: {
641
- readonly oneOf: readonly ["string", {
642
- readonly enum: readonly [null];
643
- }];
644
- };
645
- readonly json_content: "any";
646
- readonly html_content: {
647
- readonly oneOf: readonly ["string", {
648
- readonly enum: readonly [null];
649
- }];
650
- };
651
- readonly text_content: {
652
- readonly oneOf: readonly ["string", {
653
- readonly enum: readonly [null];
654
- }];
655
- };
656
- readonly doctags_content: {
657
- readonly oneOf: readonly ["string", {
658
- readonly enum: readonly [null];
659
- }];
660
- };
661
- };
662
- };
663
- readonly status: {
664
- readonly enum: readonly ["pending", "started", "failure", "success", "partial_success", "skipped"];
665
- };
666
- readonly errors: "any[]";
667
- };
668
- };
669
- };
670
- readonly "/health": {
671
- readonly method: "GET";
672
- readonly description: "Health check response";
673
- readonly inputSchema: undefined;
674
- readonly outputSchema: {
675
- readonly type: {
676
- readonly status: {
677
- readonly type: "string";
678
- readonly allowedValues: ["healthy"];
679
- };
680
- };
681
- };
682
- };
683
- };
684
- };
685
- }>;
10
+ export declare const getServiceManager: <AdditionalServices extends ServiceRegistry = Record<never, never>>() => ServiceManager<typeof prostglesServices & AdditionalServices>;
686
11
  export declare const prostglesOnReady: (params: Parameters<OnReadyCallback<DBGeneratedSchema, SUser>>[0], update: Parameters<OnReadyCallback<DBGeneratedSchema, SUser>>[1], app: e.Express, con: DBSConnectionInfo, port: number) => Promise<void>;
687
12
  //# sourceMappingURL=prostglesOnReady.d.ts.map