@promptbook/node 0.92.0-3 → 0.92.0-30

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 (171) hide show
  1. package/esm/index.es.js +796 -426
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/browser.index.d.ts +2 -0
  4. package/esm/typings/src/_packages/core.index.d.ts +22 -6
  5. package/esm/typings/src/_packages/deepseek.index.d.ts +2 -0
  6. package/esm/typings/src/_packages/google.index.d.ts +2 -0
  7. package/esm/typings/src/_packages/types.index.d.ts +4 -2
  8. package/esm/typings/src/_packages/utils.index.d.ts +2 -0
  9. package/esm/typings/src/cli/common/$provideLlmToolsForCli.d.ts +1 -1
  10. package/esm/typings/src/collection/PipelineCollection.d.ts +0 -2
  11. package/esm/typings/src/collection/SimplePipelineCollection.d.ts +1 -1
  12. package/esm/typings/src/commands/FOREACH/ForeachJson.d.ts +6 -6
  13. package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +0 -2
  14. package/esm/typings/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -1
  15. package/esm/typings/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -1
  16. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +36 -28
  17. package/esm/typings/src/config.d.ts +41 -11
  18. package/esm/typings/src/constants.d.ts +43 -2
  19. package/esm/typings/src/conversion/archive/loadArchive.d.ts +2 -2
  20. package/esm/typings/src/errors/0-BoilerplateError.d.ts +2 -2
  21. package/esm/typings/src/executables/$provideExecutablesForNode.d.ts +1 -1
  22. package/esm/typings/src/executables/apps/locateLibreoffice.d.ts +2 -1
  23. package/esm/typings/src/executables/apps/locatePandoc.d.ts +2 -1
  24. package/esm/typings/src/executables/platforms/locateAppOnLinux.d.ts +2 -1
  25. package/esm/typings/src/executables/platforms/locateAppOnMacOs.d.ts +2 -1
  26. package/esm/typings/src/executables/platforms/locateAppOnWindows.d.ts +2 -1
  27. package/esm/typings/src/execution/AbstractTaskResult.d.ts +1 -1
  28. package/esm/typings/src/execution/CommonToolsOptions.d.ts +5 -1
  29. package/esm/typings/src/execution/LlmExecutionToolsConstructor.d.ts +2 -1
  30. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +4 -2
  31. package/esm/typings/src/execution/createPipelineExecutor/$OngoingTaskResult.d.ts +12 -9
  32. package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +12 -9
  33. package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +11 -8
  34. package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +15 -3
  35. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +20 -14
  36. package/esm/typings/src/execution/createPipelineExecutor/computeCosineSimilarity.d.ts +13 -0
  37. package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +7 -6
  38. package/esm/typings/src/execution/createPipelineExecutor/getContextForTask.d.ts +5 -1
  39. package/esm/typings/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +1 -1
  40. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +21 -5
  41. package/esm/typings/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +19 -5
  42. package/esm/typings/src/execution/createPipelineExecutor/knowledgePiecesToString.d.ts +9 -0
  43. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +4 -4
  44. package/esm/typings/src/execution/utils/checkExpectations.d.ts +1 -1
  45. package/esm/typings/src/execution/utils/uncertainNumber.d.ts +3 -2
  46. package/esm/typings/src/formats/_common/{FormatDefinition.d.ts → FormatParser.d.ts} +8 -6
  47. package/esm/typings/src/formats/_common/FormatSubvalueParser.d.ts +66 -0
  48. package/esm/typings/src/formats/csv/CsvFormatParser.d.ts +17 -0
  49. package/esm/typings/src/formats/csv/CsvSettings.d.ts +2 -2
  50. package/esm/typings/src/formats/csv/utils/csvParse.d.ts +12 -0
  51. package/esm/typings/src/formats/csv/utils/isValidCsvString.d.ts +1 -1
  52. package/esm/typings/src/formats/index.d.ts +2 -2
  53. package/esm/typings/src/formats/json/{JsonFormatDefinition.d.ts → JsonFormatParser.d.ts} +6 -6
  54. package/esm/typings/src/formats/json/utils/isValidJsonString.d.ts +1 -1
  55. package/esm/typings/src/formats/json/utils/jsonParse.d.ts +8 -0
  56. package/esm/typings/src/formats/text/{TextFormatDefinition.d.ts → TextFormatParser.d.ts} +7 -7
  57. package/esm/typings/src/formats/xml/XmlFormatParser.d.ts +19 -0
  58. package/esm/typings/src/formats/xml/utils/isValidXmlString.d.ts +1 -1
  59. package/esm/typings/src/formfactors/_boilerplate/BoilerplateFormfactorDefinition.d.ts +3 -2
  60. package/esm/typings/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +16 -7
  61. package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +3 -1
  62. package/esm/typings/src/formfactors/_common/string_formfactor_name.d.ts +2 -1
  63. package/esm/typings/src/formfactors/chatbot/ChatbotFormfactorDefinition.d.ts +2 -2
  64. package/esm/typings/src/formfactors/completion/CompletionFormfactorDefinition.d.ts +29 -0
  65. package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +2 -1
  66. package/esm/typings/src/formfactors/generic/GenericFormfactorDefinition.d.ts +2 -2
  67. package/esm/typings/src/formfactors/index.d.ts +33 -8
  68. package/esm/typings/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +4 -2
  69. package/esm/typings/src/formfactors/sheets/SheetsFormfactorDefinition.d.ts +3 -2
  70. package/esm/typings/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +3 -2
  71. package/esm/typings/src/high-level-abstractions/index.d.ts +2 -2
  72. package/esm/typings/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +3 -3
  73. package/esm/typings/src/llm-providers/_common/register/$llmToolsRegister.d.ts +3 -3
  74. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +4 -4
  75. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +4 -3
  76. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +17 -4
  77. package/esm/typings/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +11 -4
  78. package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +27 -5
  79. package/esm/typings/src/llm-providers/_common/register/LlmToolsOptions.d.ts +9 -2
  80. package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +12 -3
  81. package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +10 -5
  82. package/esm/typings/src/llm-providers/_common/utils/cache/CacheLlmToolsOptions.d.ts +5 -3
  83. package/esm/typings/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +3 -3
  84. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +5 -5
  85. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  86. package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -0
  87. package/esm/typings/src/llm-providers/deepseek/deepseek-models.d.ts +23 -0
  88. package/esm/typings/src/llm-providers/google/google-models.d.ts +23 -0
  89. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +4 -0
  90. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
  91. package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +2 -2
  92. package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +2 -2
  93. package/esm/typings/src/migrations/migratePipeline.d.ts +9 -0
  94. package/esm/typings/src/other/templates/getBookTemplates.d.ts +2 -2
  95. package/esm/typings/src/personas/preparePersona.d.ts +1 -1
  96. package/esm/typings/src/pipeline/PipelineInterface/PipelineInterface.d.ts +3 -3
  97. package/esm/typings/src/pipeline/PipelineInterface/constants.d.ts +1 -1
  98. package/esm/typings/src/pipeline/PipelineInterface/getPipelineInterface.d.ts +1 -1
  99. package/esm/typings/src/pipeline/PipelineInterface/isPipelineImplementingInterface.d.ts +5 -4
  100. package/esm/typings/src/pipeline/PipelineInterface/isPipelineInterfacesEqual.d.ts +1 -1
  101. package/esm/typings/src/pipeline/PipelineJson/CommonTaskJson.d.ts +9 -6
  102. package/esm/typings/src/pipeline/PipelineJson/PersonaJson.d.ts +4 -2
  103. package/esm/typings/src/pipeline/PipelineJson/PipelineJson.d.ts +3 -2
  104. package/esm/typings/src/pipeline/PipelineString.d.ts +3 -1
  105. package/esm/typings/src/pipeline/book-notation.d.ts +2 -2
  106. package/esm/typings/src/postprocessing/utils/extractJsonBlock.d.ts +1 -1
  107. package/esm/typings/src/prepare/prepareTasks.d.ts +7 -4
  108. package/esm/typings/src/remote-server/openapi-types.d.ts +348 -6
  109. package/esm/typings/src/remote-server/openapi.d.ts +398 -4
  110. package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +2 -1
  111. package/esm/typings/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +3 -3
  112. package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +1 -1
  113. package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -1
  114. package/esm/typings/src/scrapers/_common/Converter.d.ts +3 -1
  115. package/esm/typings/src/scrapers/_common/Scraper.d.ts +4 -3
  116. package/esm/typings/src/scrapers/_common/ScraperIntermediateSource.d.ts +4 -2
  117. package/esm/typings/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -1
  118. package/esm/typings/src/scrapers/_common/register/$provideScrapersForBrowser.d.ts +6 -3
  119. package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +3 -5
  120. package/esm/typings/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +3 -3
  121. package/esm/typings/src/scrapers/_common/register/$scrapersRegister.d.ts +3 -2
  122. package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +8 -5
  123. package/esm/typings/src/scrapers/_common/register/ScraperConstructor.d.ts +2 -1
  124. package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +6 -5
  125. package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +3 -1
  126. package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -1
  127. package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +2 -1
  128. package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +4 -1
  129. package/esm/typings/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  130. package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +2 -1
  131. package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +3 -4
  132. package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +5 -1
  133. package/esm/typings/src/storage/file-cache-storage/FileCacheStorage.d.ts +12 -5
  134. package/esm/typings/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +4 -2
  135. package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +2 -1
  136. package/esm/typings/src/storage/local-storage/getIndexedDbStorage.d.ts +10 -0
  137. package/esm/typings/src/storage/local-storage/utils/makePromptbookStorageFromIndexedDb.d.ts +7 -0
  138. package/esm/typings/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +2 -1
  139. package/esm/typings/src/types/IntermediateFilesStrategy.d.ts +2 -1
  140. package/esm/typings/src/types/ModelVariant.d.ts +5 -5
  141. package/esm/typings/src/types/typeAliases.d.ts +17 -13
  142. package/esm/typings/src/utils/$Register.d.ts +8 -7
  143. package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +2 -2
  144. package/esm/typings/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +4 -1
  145. package/esm/typings/src/utils/editable/utils/isFlatPipeline.d.ts +2 -1
  146. package/esm/typings/src/utils/environment/$getGlobalScope.d.ts +2 -1
  147. package/esm/typings/src/utils/expectation-counters/index.d.ts +1 -1
  148. package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +1 -1
  149. package/esm/typings/src/utils/normalization/nameToUriPart.d.ts +4 -4
  150. package/esm/typings/src/utils/normalization/nameToUriParts.d.ts +4 -4
  151. package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +3 -3
  152. package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +3 -3
  153. package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +4 -4
  154. package/esm/typings/src/utils/normalization/normalizeTo_snake_case.d.ts +3 -3
  155. package/esm/typings/src/utils/normalization/removeDiacritics.d.ts +3 -3
  156. package/esm/typings/src/utils/normalization/searchKeywords.d.ts +4 -1
  157. package/esm/typings/src/utils/normalization/titleToName.d.ts +4 -4
  158. package/esm/typings/src/utils/organization/empty_object.d.ts +2 -2
  159. package/esm/typings/src/utils/organization/just_empty_object.d.ts +4 -4
  160. package/esm/typings/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +7 -7
  161. package/esm/typings/src/utils/serialization/clonePipeline.d.ts +4 -3
  162. package/esm/typings/src/utils/serialization/deepClone.d.ts +5 -1
  163. package/esm/typings/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +3 -3
  164. package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +5 -4
  165. package/esm/typings/src/version.d.ts +2 -1
  166. package/package.json +2 -2
  167. package/umd/index.umd.js +799 -429
  168. package/umd/index.umd.js.map +1 -1
  169. package/esm/typings/src/formats/_common/FormatSubvalueDefinition.d.ts +0 -31
  170. package/esm/typings/src/formats/csv/CsvFormatDefinition.d.ts +0 -17
  171. package/esm/typings/src/formats/xml/XmlFormatDefinition.d.ts +0 -19
@@ -30,11 +30,13 @@ export type PersonaJson = {
30
30
  */
31
31
  export type PersonaPreparedJson = PersonaJson & {
32
32
  /**
33
- * Model requirements for the persona
33
+ * Models requirements for the persona
34
+ *
35
+ * Sorted by relevance, best-fitting models is first
34
36
  *
35
37
  * Note: The model must be CHAT variant to be usable through persona
36
38
  */
37
- readonly modelRequirements: ChatModelRequirements;
39
+ readonly modelsRequirements: Array<ChatModelRequirements>;
38
40
  /**
39
41
  * List of preparation ids that were used to prepare this persona
40
42
  */
@@ -15,12 +15,12 @@ import type { PersonaPreparedJson } from './PersonaJson';
15
15
  import type { PreparationJson } from './PreparationJson';
16
16
  import type { TaskJson } from './TaskJson';
17
17
  /**
18
- * Promptbook is the **core concept of this package**.
18
+ * Represents a Promptbook pipeline defined in JSON format.
19
19
  * It represents a series of tasks chained together to form a pipeline / one big task with input and result parameters.
20
20
  *
21
21
  * Note: [🚉] This is fully serializable as JSON
22
22
  *
23
- * @see @@@ https://github.com/webgptorg/promptbook#promptbook
23
+ * @see The main Promptbook documentation for more details: https://github.com/webgptorg/promptbook#promptbook
24
24
  */
25
25
  export type PipelineJson = {
26
26
  /**
@@ -103,6 +103,7 @@ export type PipelineJson = {
103
103
  }>;
104
104
  };
105
105
  /**
106
+ * TODO: [🌪] Make type for deprecated pipelines
106
107
  * TODO: [🛳] Default PERSONA for the pipeline `defaultPersonaName` (same as `defaultModelRequirements`)
107
108
  * TODO: [🍙] Make some standard order of json properties
108
109
  * TODO: [🧠] Maybe wrap all {parameterNames} in brackets for example { "resultingParameterName": "{foo}" }
@@ -2,7 +2,9 @@
2
2
  * Promptbook is the **core concept of this package**.
3
3
  * It represents a series of tasks chained together to form a pipeline / one big task with input and result parameters.
4
4
  *
5
- * @see @@@ https://github.com/webgptorg/promptbook#promptbook
5
+ * Represents a Promptbook pipeline defined as a string.
6
+ *
7
+ * @see The main Promptbook documentation for more details: https://github.com/webgptorg/promptbook#promptbook
6
8
  */
7
9
  export type PipelineString = string & {
8
10
  readonly _type: 'Promptbook';
@@ -7,8 +7,8 @@ import type { PipelineString } from './PipelineString';
7
7
  * 2) `promptTemplate` alias for `prompt`
8
8
  * 3) `book` for notating and validating entire books exported from `@promptbook/utils`
9
9
  *
10
- * @param strings @@@
11
- * @param values @@@
10
+ * @param strings The static string parts of the template literal
11
+ * @param values The dynamic values embedded within the template literal used as data
12
12
  * @returns the pipeline string
13
13
  * @public exported from `@promptbook/core`
14
14
  */
@@ -21,5 +21,5 @@ import type { really_unknown } from '../../utils/organization/really_unknown';
21
21
  export declare function extractJsonBlock(markdown: string_markdown): string_json<really_unknown>;
22
22
  /**
23
23
  * TODO: Add some auto-healing logic + extract YAML, JSON5, TOML, etc.
24
- * TODO: [🏢] Make this logic part of `JsonFormatDefinition` or `isValidJsonString`
24
+ * TODO: [🏢] Make this logic part of `JsonFormatParser` or `isValidJsonString`
25
25
  */
@@ -4,20 +4,23 @@ import type { TaskJson } from '../pipeline/PipelineJson/TaskJson';
4
4
  import type { PrepareAndScrapeOptions } from './PrepareAndScrapeOptions';
5
5
  type PrepareTaskInput = Pick<PipelineJson, 'tasks' | 'parameters'> & {
6
6
  /**
7
- * @@@
7
+ * The number of knowledge pieces available for the pipeline.
8
8
  */
9
9
  readonly knowledgePiecesCount: number;
10
10
  };
11
11
  type PreparedTasks = {
12
12
  /**
13
- * @@@ Sequence of tasks that are chained together to form a pipeline
13
+ * The sequence of tasks after preparation.
14
14
  */
15
15
  readonly tasksPrepared: ReadonlyArray<TaskJson>;
16
16
  };
17
17
  /**
18
- * @@@
18
+ * Prepares tasks by adding knowledge to the prompt and ensuring all necessary parameters are included.
19
19
  *
20
- * @public exported from `@promptbook/core`
20
+ * @param tasks Sequence of tasks that are chained together to form a pipeline
21
+ * @returns A promise that resolves to the prepared tasks.
22
+ *
23
+ * @private internal utility of `preparePipeline`
21
24
  */
22
25
  export declare function prepareTasks(pipeline: PrepareTaskInput, tools: Pick<ExecutionTools, 'llm' | 'fs' | 'scrapers'>, options: PrepareAndScrapeOptions): Promise<PreparedTasks>;
23
26
  export {};
@@ -28,7 +28,9 @@ export type paths = {
28
28
  headers: {
29
29
  readonly [name: string]: unknown;
30
30
  };
31
- content?: never;
31
+ content: {
32
+ readonly "text/markdown": string;
33
+ };
32
34
  };
33
35
  };
34
36
  };
@@ -71,16 +73,44 @@ export type paths = {
71
73
  };
72
74
  readonly responses: {
73
75
  /** @description Successful login */
74
- readonly 200: {
76
+ readonly 201: {
75
77
  headers: {
76
78
  readonly [name: string]: unknown;
77
79
  };
78
80
  content: {
79
81
  readonly "application/json": {
82
+ readonly isSuccess?: boolean;
83
+ readonly message?: string;
84
+ readonly error?: Record<string, never>;
80
85
  readonly identification?: Record<string, never>;
81
86
  };
82
87
  };
83
88
  };
89
+ /** @description Bad request or login failed */
90
+ readonly 400: {
91
+ headers: {
92
+ readonly [name: string]: unknown;
93
+ };
94
+ content: {
95
+ readonly "application/json": {
96
+ readonly error?: Record<string, never>;
97
+ };
98
+ };
99
+ };
100
+ /** @description Authentication error */
101
+ readonly 401: {
102
+ headers: {
103
+ readonly [name: string]: unknown;
104
+ };
105
+ content: {
106
+ readonly "application/json": {
107
+ /** @enum {boolean} */
108
+ readonly isSuccess?: false;
109
+ readonly message?: string;
110
+ readonly error?: Record<string, never>;
111
+ };
112
+ };
113
+ };
84
114
  };
85
115
  };
86
116
  readonly delete?: never;
@@ -118,6 +148,15 @@ export type paths = {
118
148
  readonly "application/json": readonly string[];
119
149
  };
120
150
  };
151
+ /** @description No collection available */
152
+ readonly 500: {
153
+ headers: {
154
+ readonly [name: string]: unknown;
155
+ };
156
+ content: {
157
+ readonly "text/plain": string;
158
+ };
159
+ };
121
160
  };
122
161
  };
123
162
  readonly put?: never;
@@ -128,7 +167,7 @@ export type paths = {
128
167
  readonly patch?: never;
129
168
  readonly trace?: never;
130
169
  };
131
- readonly [path: `/books/${string}`]: {
170
+ readonly "/books/{bookId}": {
132
171
  readonly parameters: {
133
172
  readonly query?: never;
134
173
  readonly header?: never;
@@ -165,7 +204,20 @@ export type paths = {
165
204
  headers: {
166
205
  readonly [name: string]: unknown;
167
206
  };
168
- content?: never;
207
+ content: {
208
+ readonly "application/json": {
209
+ readonly error?: Record<string, never>;
210
+ };
211
+ };
212
+ };
213
+ /** @description No collection available */
214
+ readonly 500: {
215
+ headers: {
216
+ readonly [name: string]: unknown;
217
+ };
218
+ content: {
219
+ readonly "text/plain": string;
220
+ };
169
221
  };
170
222
  };
171
223
  };
@@ -203,7 +255,139 @@ export type paths = {
203
255
  readonly [name: string]: unknown;
204
256
  };
205
257
  content: {
206
- readonly "application/json": readonly Record<string, never>[];
258
+ readonly "application/json": readonly {
259
+ readonly nonce?: string;
260
+ readonly taskId?: string;
261
+ readonly taskType?: string;
262
+ readonly status?: string;
263
+ /** Format: date-time */
264
+ readonly createdAt?: string;
265
+ /** Format: date-time */
266
+ readonly updatedAt?: string;
267
+ }[];
268
+ };
269
+ };
270
+ };
271
+ };
272
+ readonly put?: never;
273
+ readonly post?: never;
274
+ readonly delete?: never;
275
+ readonly options?: never;
276
+ readonly head?: never;
277
+ readonly patch?: never;
278
+ readonly trace?: never;
279
+ };
280
+ readonly "/executions/last": {
281
+ readonly parameters: {
282
+ readonly query?: never;
283
+ readonly header?: never;
284
+ readonly path?: never;
285
+ readonly cookie?: never;
286
+ };
287
+ /**
288
+ * Get the last execution
289
+ * @description Returns details of the last execution task.
290
+ */
291
+ readonly get: {
292
+ readonly parameters: {
293
+ readonly query?: never;
294
+ readonly header?: never;
295
+ readonly path?: never;
296
+ readonly cookie?: never;
297
+ };
298
+ readonly requestBody?: never;
299
+ readonly responses: {
300
+ /** @description The last execution task with full details. */
301
+ readonly 200: {
302
+ headers: {
303
+ readonly [name: string]: unknown;
304
+ };
305
+ content: {
306
+ readonly "application/json": {
307
+ readonly nonce?: string;
308
+ readonly taskId?: string;
309
+ readonly taskType?: string;
310
+ readonly status?: string;
311
+ readonly errors?: readonly Record<string, never>[];
312
+ readonly warnings?: readonly Record<string, never>[];
313
+ /** Format: date-time */
314
+ readonly createdAt?: string;
315
+ /** Format: date-time */
316
+ readonly updatedAt?: string;
317
+ readonly currentValue?: Record<string, never>;
318
+ };
319
+ };
320
+ };
321
+ /** @description No execution tasks found. */
322
+ readonly 404: {
323
+ headers: {
324
+ readonly [name: string]: unknown;
325
+ };
326
+ content: {
327
+ readonly "text/plain": string;
328
+ };
329
+ };
330
+ };
331
+ };
332
+ readonly put?: never;
333
+ readonly post?: never;
334
+ readonly delete?: never;
335
+ readonly options?: never;
336
+ readonly head?: never;
337
+ readonly patch?: never;
338
+ readonly trace?: never;
339
+ };
340
+ readonly "/executions/{taskId}": {
341
+ readonly parameters: {
342
+ readonly query?: never;
343
+ readonly header?: never;
344
+ readonly path?: never;
345
+ readonly cookie?: never;
346
+ };
347
+ /**
348
+ * Get specific execution
349
+ * @description Returns details of a specific execution task.
350
+ */
351
+ readonly get: {
352
+ readonly parameters: {
353
+ readonly query?: never;
354
+ readonly header?: never;
355
+ readonly path: {
356
+ /** @description The ID of the execution task to retrieve. */
357
+ readonly taskId: string;
358
+ };
359
+ readonly cookie?: never;
360
+ };
361
+ readonly requestBody?: never;
362
+ readonly responses: {
363
+ /** @description The execution task with full details. */
364
+ readonly 200: {
365
+ headers: {
366
+ readonly [name: string]: unknown;
367
+ };
368
+ content: {
369
+ readonly "application/json": {
370
+ readonly nonce?: string;
371
+ readonly taskId?: string;
372
+ readonly taskType?: string;
373
+ readonly status?: string;
374
+ readonly errors?: readonly Record<string, never>[];
375
+ readonly warnings?: readonly Record<string, never>[];
376
+ /** Format: date-time */
377
+ readonly createdAt?: string;
378
+ /** Format: date-time */
379
+ readonly updatedAt?: string;
380
+ readonly currentValue?: Record<string, never>;
381
+ };
382
+ };
383
+ };
384
+ /** @description Execution task not found. */
385
+ readonly 404: {
386
+ headers: {
387
+ readonly [name: string]: unknown;
388
+ };
389
+ content: {
390
+ readonly "text/plain": string;
207
391
  };
208
392
  };
209
393
  };
@@ -239,8 +423,13 @@ export type paths = {
239
423
  readonly requestBody: {
240
424
  readonly content: {
241
425
  readonly "application/json": {
426
+ /** @description URL of the pipeline to execute */
242
427
  readonly pipelineUrl?: string;
428
+ /** @description Alternative field for pipelineUrl */
429
+ readonly book?: string;
430
+ /** @description Parameters for pipeline execution */
243
431
  readonly inputParameters?: Record<string, never>;
432
+ /** @description User identification data */
244
433
  readonly identification?: Record<string, never>;
245
434
  };
246
435
  };
@@ -257,6 +446,91 @@ export type paths = {
257
446
  };
258
447
  /** @description Invalid input. */
259
448
  readonly 400: {
449
+ headers: {
450
+ readonly [name: string]: unknown;
451
+ };
452
+ content: {
453
+ readonly "application/json": {
454
+ readonly error?: Record<string, never>;
455
+ };
456
+ };
457
+ };
458
+ /** @description Pipeline not found. */
459
+ readonly 404: {
460
+ headers: {
461
+ readonly [name: string]: unknown;
462
+ };
463
+ content: {
464
+ readonly "text/plain": string;
465
+ };
466
+ };
467
+ };
468
+ };
469
+ readonly delete?: never;
470
+ readonly options?: never;
471
+ readonly head?: never;
472
+ readonly patch?: never;
473
+ readonly trace?: never;
474
+ };
475
+ readonly "/api-docs": {
476
+ readonly parameters: {
477
+ readonly query?: never;
478
+ readonly header?: never;
479
+ readonly path?: never;
480
+ readonly cookie?: never;
481
+ };
482
+ /**
483
+ * API documentation UI
484
+ * @description Swagger UI for API documentation
485
+ */
486
+ readonly get: {
487
+ readonly parameters: {
488
+ readonly query?: never;
489
+ readonly header?: never;
490
+ readonly path?: never;
491
+ readonly cookie?: never;
492
+ };
493
+ readonly requestBody?: never;
494
+ readonly responses: {
495
+ /** @description HTML Swagger UI */
496
+ readonly 200: {
497
+ headers: {
498
+ readonly [name: string]: unknown;
499
+ };
500
+ content?: never;
501
+ };
502
+ };
503
+ };
504
+ readonly put?: never;
505
+ readonly post?: never;
506
+ readonly delete?: never;
507
+ readonly options?: never;
508
+ readonly head?: never;
509
+ readonly patch?: never;
510
+ readonly trace?: never;
511
+ };
512
+ readonly "/swagger": {
513
+ readonly parameters: {
514
+ readonly query?: never;
515
+ readonly header?: never;
516
+ readonly path?: never;
517
+ readonly cookie?: never;
518
+ };
519
+ /**
520
+ * API documentation UI (alternative path)
521
+ * @description Swagger UI for API documentation
522
+ */
523
+ readonly get: {
524
+ readonly parameters: {
525
+ readonly query?: never;
526
+ readonly header?: never;
527
+ readonly path?: never;
528
+ readonly cookie?: never;
529
+ };
530
+ readonly requestBody?: never;
531
+ readonly responses: {
532
+ /** @description HTML Swagger UI */
533
+ readonly 200: {
260
534
  headers: {
261
535
  readonly [name: string]: unknown;
262
536
  };
@@ -264,6 +538,47 @@ export type paths = {
264
538
  };
265
539
  };
266
540
  };
541
+ readonly put?: never;
542
+ readonly post?: never;
543
+ readonly delete?: never;
544
+ readonly options?: never;
545
+ readonly head?: never;
546
+ readonly patch?: never;
547
+ readonly trace?: never;
548
+ };
549
+ readonly "/openapi": {
550
+ readonly parameters: {
551
+ readonly query?: never;
552
+ readonly header?: never;
553
+ readonly path?: never;
554
+ readonly cookie?: never;
555
+ };
556
+ /**
557
+ * OpenAPI specification
558
+ * @description Returns the OpenAPI JSON specification
559
+ */
560
+ readonly get: {
561
+ readonly parameters: {
562
+ readonly query?: never;
563
+ readonly header?: never;
564
+ readonly path?: never;
565
+ readonly cookie?: never;
566
+ };
567
+ readonly requestBody?: never;
568
+ readonly responses: {
569
+ /** @description OpenAPI specification */
570
+ readonly 200: {
571
+ headers: {
572
+ readonly [name: string]: unknown;
573
+ };
574
+ content: {
575
+ readonly "application/json": Record<string, never>;
576
+ };
577
+ };
578
+ };
579
+ };
580
+ readonly put?: never;
581
+ readonly post?: never;
267
582
  readonly delete?: never;
268
583
  readonly options?: never;
269
584
  readonly head?: never;
@@ -273,7 +588,34 @@ export type paths = {
273
588
  };
274
589
  export type webhooks = Record<string, never>;
275
590
  export type components = {
276
- schemas: never;
591
+ schemas: {
592
+ readonly Error: {
593
+ readonly error?: Record<string, never>;
594
+ };
595
+ readonly ExecutionTaskSummary: {
596
+ readonly nonce?: string;
597
+ readonly taskId?: string;
598
+ readonly taskType?: string;
599
+ readonly status?: string;
600
+ /** Format: date-time */
601
+ readonly createdAt?: string;
602
+ /** Format: date-time */
603
+ readonly updatedAt?: string;
604
+ };
605
+ readonly ExecutionTaskFull: {
606
+ readonly nonce?: string;
607
+ readonly taskId?: string;
608
+ readonly taskType?: string;
609
+ readonly status?: string;
610
+ readonly errors?: readonly Record<string, never>[];
611
+ readonly warnings?: readonly Record<string, never>[];
612
+ /** Format: date-time */
613
+ readonly createdAt?: string;
614
+ /** Format: date-time */
615
+ readonly updatedAt?: string;
616
+ readonly currentValue?: Record<string, never>;
617
+ };
618
+ };
277
619
  responses: never;
278
620
  parameters: never;
279
621
  requestBodies: never;