@alien_intelligence/data-api-client 1.4.14 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/dist/src/apis/AdminApi.d.ts +1 -1
  2. package/dist/src/apis/AdminApi.js +1 -1
  3. package/dist/src/apis/DatasetsApi.d.ts +1 -1
  4. package/dist/src/apis/DatasetsApi.js +1 -1
  5. package/dist/src/apis/DefaultApi.d.ts +1 -1
  6. package/dist/src/apis/DefaultApi.js +1 -1
  7. package/dist/src/apis/EmbeddingsApi.d.ts +1 -1
  8. package/dist/src/apis/EmbeddingsApi.js +1 -1
  9. package/dist/src/apis/EntriesApi.d.ts +33 -6
  10. package/dist/src/apis/EntriesApi.js +29 -3
  11. package/dist/src/apis/HealthApi.d.ts +1 -1
  12. package/dist/src/apis/HealthApi.js +1 -1
  13. package/dist/src/apis/PipelinesApi.d.ts +1 -1
  14. package/dist/src/apis/PipelinesApi.js +1 -1
  15. package/dist/src/apis/SearchApi.d.ts +1 -1
  16. package/dist/src/apis/SearchApi.js +1 -1
  17. package/dist/src/apis/SyncApi.d.ts +1 -1
  18. package/dist/src/apis/SyncApi.js +1 -1
  19. package/dist/src/apis/WebhooksApi.d.ts +1 -1
  20. package/dist/src/apis/WebhooksApi.js +1 -1
  21. package/dist/src/apis/WeightsApi.d.ts +1 -1
  22. package/dist/src/apis/WeightsApi.js +1 -1
  23. package/dist/src/models/ArtifactInputConfig.d.ts +1 -1
  24. package/dist/src/models/ArtifactInputConfig.js +1 -1
  25. package/dist/src/models/BatchContentRequest.d.ts +1 -1
  26. package/dist/src/models/BatchContentRequest.js +1 -1
  27. package/dist/src/models/BatchContentResponse.d.ts +1 -1
  28. package/dist/src/models/BatchContentResponse.js +1 -1
  29. package/dist/src/models/BatchGetEntriesRequest.d.ts +1 -1
  30. package/dist/src/models/BatchGetEntriesRequest.js +1 -1
  31. package/dist/src/models/BatchGetEntriesResponse.d.ts +1 -1
  32. package/dist/src/models/BatchGetEntriesResponse.js +1 -1
  33. package/dist/src/models/ChunkSearchResponse.d.ts +1 -1
  34. package/dist/src/models/ChunkSearchResponse.js +1 -1
  35. package/dist/src/models/ChunkSearchResult.d.ts +1 -1
  36. package/dist/src/models/ChunkSearchResult.js +1 -1
  37. package/dist/src/models/CollectionInfo.d.ts +1 -1
  38. package/dist/src/models/CollectionInfo.js +1 -1
  39. package/dist/src/models/ComponentArtifact.d.ts +1 -1
  40. package/dist/src/models/ComponentArtifact.js +1 -1
  41. package/dist/src/models/ComponentListResponse.d.ts +1 -1
  42. package/dist/src/models/ComponentListResponse.js +1 -1
  43. package/dist/src/models/ComponentMetadata.d.ts +1 -1
  44. package/dist/src/models/ComponentMetadata.js +1 -1
  45. package/dist/src/models/ComponentParameter.d.ts +1 -1
  46. package/dist/src/models/ComponentParameter.js +1 -1
  47. package/dist/src/models/Dataset.d.ts +1 -1
  48. package/dist/src/models/Dataset.js +1 -1
  49. package/dist/src/models/DatasetCreateRequest.d.ts +1 -1
  50. package/dist/src/models/DatasetCreateRequest.js +1 -1
  51. package/dist/src/models/DatasetListResponse.d.ts +1 -1
  52. package/dist/src/models/DatasetListResponse.js +1 -1
  53. package/dist/src/models/DatasetPipelineConfig.d.ts +1 -1
  54. package/dist/src/models/DatasetPipelineConfig.js +1 -1
  55. package/dist/src/models/DatasetResponse.d.ts +1 -1
  56. package/dist/src/models/DatasetResponse.js +1 -1
  57. package/dist/src/models/DatasetSchemaDefinition.d.ts +1 -1
  58. package/dist/src/models/DatasetSchemaDefinition.js +1 -1
  59. package/dist/src/models/DatasetSchemaOriginal.d.ts +1 -1
  60. package/dist/src/models/DatasetSchemaOriginal.js +1 -1
  61. package/dist/src/models/DatasetSchemaProcessed.d.ts +1 -1
  62. package/dist/src/models/DatasetSchemaProcessed.js +1 -1
  63. package/dist/src/models/DatasetSchemaProcessing.d.ts +1 -1
  64. package/dist/src/models/DatasetSchemaProcessing.js +1 -1
  65. package/dist/src/models/DatasetType.d.ts +1 -1
  66. package/dist/src/models/DatasetType.js +1 -1
  67. package/dist/src/models/DatasetUpdateRequest.d.ts +1 -1
  68. package/dist/src/models/DatasetUpdateRequest.js +1 -1
  69. package/dist/src/models/DatasetUpdateSchemaRequest.d.ts +1 -1
  70. package/dist/src/models/DatasetUpdateSchemaRequest.js +1 -1
  71. package/dist/src/models/Default.d.ts +1 -1
  72. package/dist/src/models/Default.js +1 -1
  73. package/dist/src/models/DeprecationNotice.d.ts +42 -0
  74. package/dist/src/models/DeprecationNotice.js +54 -0
  75. package/dist/src/models/DerivedPageReport.d.ts +85 -0
  76. package/dist/src/models/DerivedPageReport.js +74 -0
  77. package/dist/src/models/EmbeddingProvider.d.ts +1 -1
  78. package/dist/src/models/EmbeddingProvider.js +1 -1
  79. package/dist/src/models/EmbeddingResponse.d.ts +1 -1
  80. package/dist/src/models/EmbeddingResponse.js +1 -1
  81. package/dist/src/models/Entry.d.ts +1 -1
  82. package/dist/src/models/Entry.js +1 -1
  83. package/dist/src/models/EntryContentResponse.d.ts +1 -1
  84. package/dist/src/models/EntryContentResponse.js +1 -1
  85. package/dist/src/models/EntryCreateRequest.d.ts +1 -1
  86. package/dist/src/models/EntryCreateRequest.js +1 -1
  87. package/dist/src/models/EntryCreateResponse.d.ts +1 -1
  88. package/dist/src/models/EntryCreateResponse.js +1 -1
  89. package/dist/src/models/EntryManifest.d.ts +1 -1
  90. package/dist/src/models/EntryManifest.js +1 -1
  91. package/dist/src/models/EntrySearchResponse.d.ts +1 -1
  92. package/dist/src/models/EntrySearchResponse.js +1 -1
  93. package/dist/src/models/EntrySearchResult.d.ts +1 -1
  94. package/dist/src/models/EntrySearchResult.js +1 -1
  95. package/dist/src/models/EntryStatus.d.ts +1 -1
  96. package/dist/src/models/EntryStatus.js +1 -1
  97. package/dist/src/models/EntryUpdateRequest.d.ts +7 -1
  98. package/dist/src/models/EntryUpdateRequest.js +3 -1
  99. package/dist/src/models/EntryWithContent.d.ts +1 -1
  100. package/dist/src/models/EntryWithContent.js +1 -1
  101. package/dist/src/models/FigureImage.d.ts +80 -0
  102. package/dist/src/models/FigureImage.js +62 -0
  103. package/dist/src/models/FileMetadata.d.ts +1 -1
  104. package/dist/src/models/FileMetadata.js +1 -1
  105. package/dist/src/models/GenerateEmbeddingsRequest.d.ts +1 -1
  106. package/dist/src/models/GenerateEmbeddingsRequest.js +1 -1
  107. package/dist/src/models/HTTPValidationError.d.ts +1 -1
  108. package/dist/src/models/HTTPValidationError.js +1 -1
  109. package/dist/src/models/HealthResponse.d.ts +1 -1
  110. package/dist/src/models/HealthResponse.js +1 -1
  111. package/dist/src/models/IngestContractUsageResponse.d.ts +49 -0
  112. package/dist/src/models/IngestContractUsageResponse.js +59 -0
  113. package/dist/src/models/IngestContractUsageRow.d.ts +56 -0
  114. package/dist/src/models/IngestContractUsageRow.js +66 -0
  115. package/dist/src/models/KeywordSearchHit.d.ts +1 -1
  116. package/dist/src/models/KeywordSearchHit.js +1 -1
  117. package/dist/src/models/KeywordSearchRequest.d.ts +1 -1
  118. package/dist/src/models/KeywordSearchRequest.js +1 -1
  119. package/dist/src/models/KeywordSearchRequestMetadataFiltersValue.d.ts +1 -1
  120. package/dist/src/models/KeywordSearchRequestMetadataFiltersValue.js +1 -1
  121. package/dist/src/models/KeywordSearchResponse.d.ts +1 -1
  122. package/dist/src/models/KeywordSearchResponse.js +1 -1
  123. package/dist/src/models/MissingPageRange.d.ts +57 -0
  124. package/dist/src/models/MissingPageRange.js +58 -0
  125. package/dist/src/models/ModelInfo.d.ts +1 -1
  126. package/dist/src/models/ModelInfo.js +1 -1
  127. package/dist/src/models/MoveEntryRequest.d.ts +1 -1
  128. package/dist/src/models/MoveEntryRequest.js +1 -1
  129. package/dist/src/models/MoveEntryResponse.d.ts +1 -1
  130. package/dist/src/models/MoveEntryResponse.js +1 -1
  131. package/dist/src/models/OriginalManifest.d.ts +1 -1
  132. package/dist/src/models/OriginalManifest.js +1 -1
  133. package/dist/src/models/PageDimensions.d.ts +38 -0
  134. package/dist/src/models/PageDimensions.js +54 -0
  135. package/dist/src/models/PipelineStepConfig.d.ts +1 -1
  136. package/dist/src/models/PipelineStepConfig.js +1 -1
  137. package/dist/src/models/PresetListResponse.d.ts +1 -1
  138. package/dist/src/models/PresetListResponse.js +1 -1
  139. package/dist/src/models/ProcessedManifest.d.ts +29 -3
  140. package/dist/src/models/ProcessedManifest.js +15 -1
  141. package/dist/src/models/ProcessingManifest.d.ts +1 -1
  142. package/dist/src/models/ProcessingManifest.js +1 -1
  143. package/dist/src/models/ReconcileSchemaFieldsResponse.d.ts +1 -1
  144. package/dist/src/models/ReconcileSchemaFieldsResponse.js +1 -1
  145. package/dist/src/models/RetryFailedWebhooksResponse.d.ts +1 -1
  146. package/dist/src/models/RetryFailedWebhooksResponse.js +1 -1
  147. package/dist/src/models/SaveProcessedContentRequest.d.ts +35 -2
  148. package/dist/src/models/SaveProcessedContentRequest.js +7 -1
  149. package/dist/src/models/SaveProcessedContentResponse.d.ts +29 -1
  150. package/dist/src/models/SaveProcessedContentResponse.js +17 -1
  151. package/dist/src/models/SearchSnippet.d.ts +1 -1
  152. package/dist/src/models/SearchSnippet.js +1 -1
  153. package/dist/src/models/Segment.d.ts +93 -0
  154. package/dist/src/models/Segment.js +93 -0
  155. package/dist/src/models/SnippetContext.d.ts +1 -1
  156. package/dist/src/models/SnippetContext.js +1 -1
  157. package/dist/src/models/Transcription.d.ts +63 -0
  158. package/dist/src/models/Transcription.js +68 -0
  159. package/dist/src/models/TranscriptionDocumentInfo.d.ts +66 -0
  160. package/dist/src/models/TranscriptionDocumentInfo.js +76 -0
  161. package/dist/src/models/TranscriptionPage.d.ts +82 -0
  162. package/dist/src/models/TranscriptionPage.js +81 -0
  163. package/dist/src/models/TranscriptionUsage.d.ts +56 -0
  164. package/dist/src/models/TranscriptionUsage.js +62 -0
  165. package/dist/src/models/TranscriptionWarnings.d.ts +113 -0
  166. package/dist/src/models/TranscriptionWarnings.js +68 -0
  167. package/dist/src/models/UploadFileResponse.d.ts +1 -1
  168. package/dist/src/models/UploadFileResponse.js +1 -1
  169. package/dist/src/models/ValidationError.d.ts +1 -1
  170. package/dist/src/models/ValidationError.js +1 -1
  171. package/dist/src/models/ValidationErrorLocInner.d.ts +1 -1
  172. package/dist/src/models/ValidationErrorLocInner.js +1 -1
  173. package/dist/src/models/VectorSearchRequest.d.ts +1 -1
  174. package/dist/src/models/VectorSearchRequest.js +1 -1
  175. package/dist/src/models/WebhookEndpointCreate.d.ts +1 -1
  176. package/dist/src/models/WebhookEndpointCreate.js +1 -1
  177. package/dist/src/models/WebhookEndpointResponse.d.ts +1 -1
  178. package/dist/src/models/WebhookEndpointResponse.js +1 -1
  179. package/dist/src/models/Weight.d.ts +1 -1
  180. package/dist/src/models/Weight.js +1 -1
  181. package/dist/src/models/WeightListResponse.d.ts +1 -1
  182. package/dist/src/models/WeightListResponse.js +1 -1
  183. package/dist/src/models/WeightResponse.d.ts +1 -1
  184. package/dist/src/models/WeightResponse.js +1 -1
  185. package/dist/src/models/WeightType.d.ts +1 -1
  186. package/dist/src/models/WeightType.js +1 -1
  187. package/dist/src/models/index.d.ts +13 -0
  188. package/dist/src/models/index.js +13 -0
  189. package/dist/src/runtime.d.ts +1 -1
  190. package/dist/src/runtime.js +1 -1
  191. package/package.json +1 -1
  192. package/src/README.md +2 -2
  193. package/src/package.json +1 -1
  194. package/src/src/apis/AdminApi.ts +1 -1
  195. package/src/src/apis/DatasetsApi.ts +1 -1
  196. package/src/src/apis/DefaultApi.ts +1 -1
  197. package/src/src/apis/EmbeddingsApi.ts +1 -1
  198. package/src/src/apis/EntriesApi.ts +60 -5
  199. package/src/src/apis/HealthApi.ts +1 -1
  200. package/src/src/apis/PipelinesApi.ts +1 -1
  201. package/src/src/apis/SearchApi.ts +1 -1
  202. package/src/src/apis/SyncApi.ts +1 -1
  203. package/src/src/apis/WebhooksApi.ts +1 -1
  204. package/src/src/apis/WeightsApi.ts +1 -1
  205. package/src/src/models/ArtifactInputConfig.ts +1 -1
  206. package/src/src/models/BatchContentRequest.ts +1 -1
  207. package/src/src/models/BatchContentResponse.ts +1 -1
  208. package/src/src/models/BatchGetEntriesRequest.ts +1 -1
  209. package/src/src/models/BatchGetEntriesResponse.ts +1 -1
  210. package/src/src/models/ChunkSearchResponse.ts +1 -1
  211. package/src/src/models/ChunkSearchResult.ts +1 -1
  212. package/src/src/models/CollectionInfo.ts +1 -1
  213. package/src/src/models/ComponentArtifact.ts +1 -1
  214. package/src/src/models/ComponentListResponse.ts +1 -1
  215. package/src/src/models/ComponentMetadata.ts +1 -1
  216. package/src/src/models/ComponentParameter.ts +1 -1
  217. package/src/src/models/Dataset.ts +1 -1
  218. package/src/src/models/DatasetCreateRequest.ts +1 -1
  219. package/src/src/models/DatasetListResponse.ts +1 -1
  220. package/src/src/models/DatasetPipelineConfig.ts +1 -1
  221. package/src/src/models/DatasetResponse.ts +1 -1
  222. package/src/src/models/DatasetSchemaDefinition.ts +1 -1
  223. package/src/src/models/DatasetSchemaOriginal.ts +1 -1
  224. package/src/src/models/DatasetSchemaProcessed.ts +1 -1
  225. package/src/src/models/DatasetSchemaProcessing.ts +1 -1
  226. package/src/src/models/DatasetType.ts +1 -1
  227. package/src/src/models/DatasetUpdateRequest.ts +1 -1
  228. package/src/src/models/DatasetUpdateSchemaRequest.ts +1 -1
  229. package/src/src/models/Default.ts +1 -1
  230. package/src/src/models/DeprecationNotice.ts +79 -0
  231. package/src/src/models/DerivedPageReport.ts +137 -0
  232. package/src/src/models/EmbeddingProvider.ts +1 -1
  233. package/src/src/models/EmbeddingResponse.ts +1 -1
  234. package/src/src/models/Entry.ts +1 -1
  235. package/src/src/models/EntryContentResponse.ts +1 -1
  236. package/src/src/models/EntryCreateRequest.ts +1 -1
  237. package/src/src/models/EntryCreateResponse.ts +1 -1
  238. package/src/src/models/EntryManifest.ts +1 -1
  239. package/src/src/models/EntrySearchResponse.ts +1 -1
  240. package/src/src/models/EntrySearchResult.ts +1 -1
  241. package/src/src/models/EntryStatus.ts +1 -1
  242. package/src/src/models/EntryUpdateRequest.ts +9 -1
  243. package/src/src/models/EntryWithContent.ts +1 -1
  244. package/src/src/models/FigureImage.ts +126 -0
  245. package/src/src/models/FileMetadata.ts +1 -1
  246. package/src/src/models/GenerateEmbeddingsRequest.ts +1 -1
  247. package/src/src/models/HTTPValidationError.ts +1 -1
  248. package/src/src/models/HealthResponse.ts +1 -1
  249. package/src/src/models/IngestContractUsageResponse.ts +96 -0
  250. package/src/src/models/IngestContractUsageRow.ts +102 -0
  251. package/src/src/models/KeywordSearchHit.ts +1 -1
  252. package/src/src/models/KeywordSearchRequest.ts +1 -1
  253. package/src/src/models/KeywordSearchRequestMetadataFiltersValue.ts +1 -1
  254. package/src/src/models/KeywordSearchResponse.ts +1 -1
  255. package/src/src/models/MissingPageRange.ts +100 -0
  256. package/src/src/models/ModelInfo.ts +1 -1
  257. package/src/src/models/MoveEntryRequest.ts +1 -1
  258. package/src/src/models/MoveEntryResponse.ts +1 -1
  259. package/src/src/models/OriginalManifest.ts +1 -1
  260. package/src/src/models/PageDimensions.ts +75 -0
  261. package/src/src/models/PipelineStepConfig.ts +1 -1
  262. package/src/src/models/PresetListResponse.ts +1 -1
  263. package/src/src/models/ProcessedManifest.ts +42 -3
  264. package/src/src/models/ProcessingManifest.ts +1 -1
  265. package/src/src/models/ReconcileSchemaFieldsResponse.ts +1 -1
  266. package/src/src/models/RetryFailedWebhooksResponse.ts +1 -1
  267. package/src/src/models/SaveProcessedContentRequest.ts +52 -2
  268. package/src/src/models/SaveProcessedContentResponse.ts +44 -1
  269. package/src/src/models/SearchSnippet.ts +1 -1
  270. package/src/src/models/Segment.ts +148 -0
  271. package/src/src/models/SnippetContext.ts +1 -1
  272. package/src/src/models/Transcription.ts +133 -0
  273. package/src/src/models/TranscriptionDocumentInfo.ts +115 -0
  274. package/src/src/models/TranscriptionPage.ts +144 -0
  275. package/src/src/models/TranscriptionUsage.ts +100 -0
  276. package/src/src/models/TranscriptionWarnings.ts +171 -0
  277. package/src/src/models/UploadFileResponse.ts +1 -1
  278. package/src/src/models/ValidationError.ts +1 -1
  279. package/src/src/models/ValidationErrorLocInner.ts +1 -1
  280. package/src/src/models/VectorSearchRequest.ts +1 -1
  281. package/src/src/models/WebhookEndpointCreate.ts +1 -1
  282. package/src/src/models/WebhookEndpointResponse.ts +1 -1
  283. package/src/src/models/Weight.ts +1 -1
  284. package/src/src/models/WeightListResponse.ts +1 -1
  285. package/src/src/models/WeightResponse.ts +1 -1
  286. package/src/src/models/WeightType.ts +1 -1
  287. package/src/src/models/index.ts +13 -0
  288. package/src/src/runtime.ts +1 -1
@@ -0,0 +1,148 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.11.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * One citable unit of a processed document, as a span of the canonical text.
18
+ * @export
19
+ * @interface Segment
20
+ */
21
+ export interface Segment {
22
+ /**
23
+ * Position in this document's segment list, dense from 0. This is the ordering key and half of the page document's primary key; it is not a page number.
24
+ * @type {number}
25
+ * @memberof Segment
26
+ */
27
+ seq: number;
28
+ /**
29
+ * What this unit is. 'page' covers folios, PDF pages and worksheets.
30
+ * @type {string}
31
+ * @memberof Segment
32
+ */
33
+ kind?: SegmentKindEnum;
34
+ /**
35
+ * What the document calls this unit - the string a citation shows. Sparse and not necessarily numeric: BnF folios skip, ocr-gateway reserves the index of a page it lost. Never derive ordering from it.
36
+ * @type {string}
37
+ * @memberof Segment
38
+ */
39
+ label: string;
40
+ /**
41
+ * 'source' if the document itself drew this boundary, 'derived' if it was invented to fit an indexing budget. Required rather than defaulted: a boundary whose provenance was never stated is not a boundary worth citing.
42
+ * @type {string}
43
+ * @memberof Segment
44
+ */
45
+ origin: SegmentOriginEnum;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Segment
50
+ */
51
+ splitRule?: SegmentSplitRuleEnum | null;
52
+ /**
53
+ * Offset of this segment's first character in the canonical text.
54
+ * @type {number}
55
+ * @memberof Segment
56
+ */
57
+ charStart: number;
58
+ /**
59
+ * Offset one past this segment's last character. Exclusive, so text[char_start:char_end] is the segment.
60
+ * @type {number}
61
+ * @memberof Segment
62
+ */
63
+ charEnd: number;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const SegmentKindEnum = {
71
+ Page: 'page'
72
+ } as const;
73
+ export type SegmentKindEnum = typeof SegmentKindEnum[keyof typeof SegmentKindEnum];
74
+
75
+ /**
76
+ * @export
77
+ */
78
+ export const SegmentOriginEnum = {
79
+ Source: 'source',
80
+ Derived: 'derived'
81
+ } as const;
82
+ export type SegmentOriginEnum = typeof SegmentOriginEnum[keyof typeof SegmentOriginEnum];
83
+
84
+ /**
85
+ * @export
86
+ */
87
+ export const SegmentSplitRuleEnum = {
88
+ Paragraph: 'paragraph',
89
+ TableRow: 'table_row',
90
+ Line: 'line',
91
+ Fixed: 'fixed'
92
+ } as const;
93
+ export type SegmentSplitRuleEnum = typeof SegmentSplitRuleEnum[keyof typeof SegmentSplitRuleEnum];
94
+
95
+
96
+ /**
97
+ * Check if a given object implements the Segment interface.
98
+ */
99
+ export function instanceOfSegment(value: object): value is Segment {
100
+ if (!('seq' in value) || value['seq'] === undefined) return false;
101
+ if (!('label' in value) || value['label'] === undefined) return false;
102
+ if (!('origin' in value) || value['origin'] === undefined) return false;
103
+ if (!('charStart' in value) || value['charStart'] === undefined) return false;
104
+ if (!('charEnd' in value) || value['charEnd'] === undefined) return false;
105
+ return true;
106
+ }
107
+
108
+ export function SegmentFromJSON(json: any): Segment {
109
+ return SegmentFromJSONTyped(json, false);
110
+ }
111
+
112
+ export function SegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Segment {
113
+ if (json == null) {
114
+ return json;
115
+ }
116
+ return {
117
+
118
+ 'seq': json['seq'],
119
+ 'kind': json['kind'] == null ? undefined : json['kind'],
120
+ 'label': json['label'],
121
+ 'origin': json['origin'],
122
+ 'splitRule': json['split_rule'] == null ? undefined : json['split_rule'],
123
+ 'charStart': json['char_start'],
124
+ 'charEnd': json['char_end'],
125
+ };
126
+ }
127
+
128
+ export function SegmentToJSON(json: any): Segment {
129
+ return SegmentToJSONTyped(json, false);
130
+ }
131
+
132
+ export function SegmentToJSONTyped(value?: Segment | null, ignoreDiscriminator: boolean = false): any {
133
+ if (value == null) {
134
+ return value;
135
+ }
136
+
137
+ return {
138
+
139
+ 'seq': value['seq'],
140
+ 'kind': value['kind'],
141
+ 'label': value['label'],
142
+ 'origin': value['origin'],
143
+ 'split_rule': value['splitRule'],
144
+ 'char_start': value['charStart'],
145
+ 'char_end': value['charEnd'],
146
+ };
147
+ }
148
+
@@ -4,7 +4,7 @@
4
4
  * Client Data API
5
5
  * Client Cluster Data API - Manifest-based storage service
6
6
  *
7
- * The version of the OpenAPI document: 1.4.14
7
+ * The version of the OpenAPI document: 1.11.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,133 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.11.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { TranscriptionWarnings } from './TranscriptionWarnings';
17
+ import {
18
+ TranscriptionWarningsFromJSON,
19
+ TranscriptionWarningsFromJSONTyped,
20
+ TranscriptionWarningsToJSON,
21
+ TranscriptionWarningsToJSONTyped,
22
+ } from './TranscriptionWarnings';
23
+ import type { TranscriptionPage } from './TranscriptionPage';
24
+ import {
25
+ TranscriptionPageFromJSON,
26
+ TranscriptionPageFromJSONTyped,
27
+ TranscriptionPageToJSON,
28
+ TranscriptionPageToJSONTyped,
29
+ } from './TranscriptionPage';
30
+ import type { TranscriptionUsage } from './TranscriptionUsage';
31
+ import {
32
+ TranscriptionUsageFromJSON,
33
+ TranscriptionUsageFromJSONTyped,
34
+ TranscriptionUsageToJSON,
35
+ TranscriptionUsageToJSONTyped,
36
+ } from './TranscriptionUsage';
37
+ import type { TranscriptionDocumentInfo } from './TranscriptionDocumentInfo';
38
+ import {
39
+ TranscriptionDocumentInfoFromJSON,
40
+ TranscriptionDocumentInfoFromJSONTyped,
41
+ TranscriptionDocumentInfoToJSON,
42
+ TranscriptionDocumentInfoToJSONTyped,
43
+ } from './TranscriptionDocumentInfo';
44
+
45
+ /**
46
+ * A transcribed document: its pages, what produced them, and what it cost.
47
+ *
48
+ * Adopted verbatim from ocr-gateway's ``OcrResponse`` (D4). The *ingest* contract
49
+ * wraps this; it does not reshape it.
50
+ * @export
51
+ * @interface Transcription
52
+ */
53
+ export interface Transcription {
54
+ /**
55
+ * The transcription, ordered by index. Read each page's 'origin' before citing it: 'derived' means the producer drew the boundary, not the document. Never empty - a document with zero pages is the absence of a result, not a degraded one, and must be reported as a failure rather than a 200.
56
+ * @type {Array<TranscriptionPage>}
57
+ * @memberof Transcription
58
+ */
59
+ pages: Array<TranscriptionPage>;
60
+ /**
61
+ * What produced the text: a model identifier, or the route name.
62
+ * @type {string}
63
+ * @memberof Transcription
64
+ */
65
+ model: string;
66
+ /**
67
+ * What the document turned out to be.
68
+ * @type {TranscriptionDocumentInfo}
69
+ * @memberof Transcription
70
+ */
71
+ document: TranscriptionDocumentInfo;
72
+ /**
73
+ * What the transcription cost, and whether a GPU was used.
74
+ * @type {TranscriptionUsage}
75
+ * @memberof Transcription
76
+ */
77
+ usageInfo: TranscriptionUsage;
78
+ /**
79
+ *
80
+ * @type {TranscriptionWarnings}
81
+ * @memberof Transcription
82
+ */
83
+ warnings?: TranscriptionWarnings | null;
84
+ }
85
+
86
+ /**
87
+ * Check if a given object implements the Transcription interface.
88
+ */
89
+ export function instanceOfTranscription(value: object): value is Transcription {
90
+ if (!('pages' in value) || value['pages'] === undefined) return false;
91
+ if (!('model' in value) || value['model'] === undefined) return false;
92
+ if (!('document' in value) || value['document'] === undefined) return false;
93
+ if (!('usageInfo' in value) || value['usageInfo'] === undefined) return false;
94
+ return true;
95
+ }
96
+
97
+ export function TranscriptionFromJSON(json: any): Transcription {
98
+ return TranscriptionFromJSONTyped(json, false);
99
+ }
100
+
101
+ export function TranscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transcription {
102
+ if (json == null) {
103
+ return json;
104
+ }
105
+ return {
106
+
107
+ 'pages': ((json['pages'] as Array<any>).map(TranscriptionPageFromJSON)),
108
+ 'model': json['model'],
109
+ 'document': TranscriptionDocumentInfoFromJSON(json['document']),
110
+ 'usageInfo': TranscriptionUsageFromJSON(json['usage_info']),
111
+ 'warnings': json['warnings'] == null ? undefined : TranscriptionWarningsFromJSON(json['warnings']),
112
+ };
113
+ }
114
+
115
+ export function TranscriptionToJSON(json: any): Transcription {
116
+ return TranscriptionToJSONTyped(json, false);
117
+ }
118
+
119
+ export function TranscriptionToJSONTyped(value?: Transcription | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'pages': ((value['pages'] as Array<any>).map(TranscriptionPageToJSON)),
127
+ 'model': value['model'],
128
+ 'document': TranscriptionDocumentInfoToJSON(value['document']),
129
+ 'usage_info': TranscriptionUsageToJSON(value['usageInfo']),
130
+ 'warnings': TranscriptionWarningsToJSON(value['warnings']),
131
+ };
132
+ }
133
+
@@ -0,0 +1,115 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.11.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * What the document turned out to be, and how it was handled.
18
+ * @export
19
+ * @interface TranscriptionDocumentInfo
20
+ */
21
+ export interface TranscriptionDocumentInfo {
22
+ /**
23
+ * Canonical extension, e.g. 'xlsx'.
24
+ * @type {string}
25
+ * @memberof TranscriptionDocumentInfo
26
+ */
27
+ format: string;
28
+ /**
29
+ * Detected MIME type, from the signature rather than the name.
30
+ * @type {string}
31
+ * @memberof TranscriptionDocumentInfo
32
+ */
33
+ mime: string;
34
+ /**
35
+ * Size of the source document as received.
36
+ * @type {number}
37
+ * @memberof TranscriptionDocumentInfo
38
+ */
39
+ sizeBytes: number;
40
+ /**
41
+ * Pages the document is accounted for in. On the OCR route this is the source document's own page count, so a gap left by a failed chunk stays visible; on the extraction routes it is the emitted count, derived pages included.
42
+ * @type {number}
43
+ * @memberof TranscriptionDocumentInfo
44
+ */
45
+ totalPages: number;
46
+ /**
47
+ * Which path the document took. Anything but 'ocr' never reached a GPU.
48
+ * @type {string}
49
+ * @memberof TranscriptionDocumentInfo
50
+ */
51
+ route: TranscriptionDocumentInfoRouteEnum;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const TranscriptionDocumentInfoRouteEnum = {
59
+ Text: 'text',
60
+ Tabular: 'tabular',
61
+ Html: 'html',
62
+ Ocr: 'ocr'
63
+ } as const;
64
+ export type TranscriptionDocumentInfoRouteEnum = typeof TranscriptionDocumentInfoRouteEnum[keyof typeof TranscriptionDocumentInfoRouteEnum];
65
+
66
+
67
+ /**
68
+ * Check if a given object implements the TranscriptionDocumentInfo interface.
69
+ */
70
+ export function instanceOfTranscriptionDocumentInfo(value: object): value is TranscriptionDocumentInfo {
71
+ if (!('format' in value) || value['format'] === undefined) return false;
72
+ if (!('mime' in value) || value['mime'] === undefined) return false;
73
+ if (!('sizeBytes' in value) || value['sizeBytes'] === undefined) return false;
74
+ if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
75
+ if (!('route' in value) || value['route'] === undefined) return false;
76
+ return true;
77
+ }
78
+
79
+ export function TranscriptionDocumentInfoFromJSON(json: any): TranscriptionDocumentInfo {
80
+ return TranscriptionDocumentInfoFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function TranscriptionDocumentInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptionDocumentInfo {
84
+ if (json == null) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'format': json['format'],
90
+ 'mime': json['mime'],
91
+ 'sizeBytes': json['size_bytes'],
92
+ 'totalPages': json['total_pages'],
93
+ 'route': json['route'],
94
+ };
95
+ }
96
+
97
+ export function TranscriptionDocumentInfoToJSON(json: any): TranscriptionDocumentInfo {
98
+ return TranscriptionDocumentInfoToJSONTyped(json, false);
99
+ }
100
+
101
+ export function TranscriptionDocumentInfoToJSONTyped(value?: TranscriptionDocumentInfo | null, ignoreDiscriminator: boolean = false): any {
102
+ if (value == null) {
103
+ return value;
104
+ }
105
+
106
+ return {
107
+
108
+ 'format': value['format'],
109
+ 'mime': value['mime'],
110
+ 'size_bytes': value['sizeBytes'],
111
+ 'total_pages': value['totalPages'],
112
+ 'route': value['route'],
113
+ };
114
+ }
115
+
@@ -0,0 +1,144 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.11.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PageDimensions } from './PageDimensions';
17
+ import {
18
+ PageDimensionsFromJSON,
19
+ PageDimensionsFromJSONTyped,
20
+ PageDimensionsToJSON,
21
+ PageDimensionsToJSONTyped,
22
+ } from './PageDimensions';
23
+ import type { FigureImage } from './FigureImage';
24
+ import {
25
+ FigureImageFromJSON,
26
+ FigureImageFromJSONTyped,
27
+ FigureImageToJSON,
28
+ FigureImageToJSONTyped,
29
+ } from './FigureImage';
30
+
31
+ /**
32
+ * One page of transcribed content, and whether the document drew its edges.
33
+ * @export
34
+ * @interface TranscriptionPage
35
+ */
36
+ export interface TranscriptionPage {
37
+ /**
38
+ * Zero-indexed page number. Pages keep their source index, so a page lost to a failed chunk leaves a visible gap rather than a silently shorter document.
39
+ * @type {number}
40
+ * @memberof TranscriptionPage
41
+ */
42
+ index: number;
43
+ /**
44
+ * The page's content. Consumers rebuild the document by joining these with a blank line; the join rule is part of the contract (see PAGE_JOIN).
45
+ * @type {string}
46
+ * @memberof TranscriptionPage
47
+ */
48
+ markdown: string;
49
+ /**
50
+ * 'source' if the document itself drew this boundary (a PDF page, a worksheet, a folio); 'derived' if the producer split a unit to keep it inside an indexing position budget.
51
+ * @type {string}
52
+ * @memberof TranscriptionPage
53
+ */
54
+ origin?: TranscriptionPageOriginEnum;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof TranscriptionPage
59
+ */
60
+ splitRule?: TranscriptionPageSplitRuleEnum | null;
61
+ /**
62
+ * Figure crops with bounding boxes. Always empty on extraction routes.
63
+ * @type {Array<FigureImage>}
64
+ * @memberof TranscriptionPage
65
+ */
66
+ images?: Array<FigureImage>;
67
+ /**
68
+ *
69
+ * @type {PageDimensions}
70
+ * @memberof TranscriptionPage
71
+ */
72
+ dimensions?: PageDimensions | null;
73
+ }
74
+
75
+
76
+ /**
77
+ * @export
78
+ */
79
+ export const TranscriptionPageOriginEnum = {
80
+ Source: 'source',
81
+ Derived: 'derived'
82
+ } as const;
83
+ export type TranscriptionPageOriginEnum = typeof TranscriptionPageOriginEnum[keyof typeof TranscriptionPageOriginEnum];
84
+
85
+ /**
86
+ * @export
87
+ */
88
+ export const TranscriptionPageSplitRuleEnum = {
89
+ Paragraph: 'paragraph',
90
+ TableRow: 'table_row',
91
+ Line: 'line',
92
+ Fixed: 'fixed'
93
+ } as const;
94
+ export type TranscriptionPageSplitRuleEnum = typeof TranscriptionPageSplitRuleEnum[keyof typeof TranscriptionPageSplitRuleEnum];
95
+
96
+
97
+ /**
98
+ * Check if a given object implements the TranscriptionPage interface.
99
+ */
100
+ export function instanceOfTranscriptionPage(value: object): value is TranscriptionPage {
101
+ if (!('index' in value) || value['index'] === undefined) return false;
102
+ if (!('markdown' in value) || value['markdown'] === undefined) return false;
103
+ return true;
104
+ }
105
+
106
+ export function TranscriptionPageFromJSON(json: any): TranscriptionPage {
107
+ return TranscriptionPageFromJSONTyped(json, false);
108
+ }
109
+
110
+ export function TranscriptionPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptionPage {
111
+ if (json == null) {
112
+ return json;
113
+ }
114
+ return {
115
+
116
+ 'index': json['index'],
117
+ 'markdown': json['markdown'],
118
+ 'origin': json['origin'] == null ? undefined : json['origin'],
119
+ 'splitRule': json['split_rule'] == null ? undefined : json['split_rule'],
120
+ 'images': json['images'] == null ? undefined : ((json['images'] as Array<any>).map(FigureImageFromJSON)),
121
+ 'dimensions': json['dimensions'] == null ? undefined : PageDimensionsFromJSON(json['dimensions']),
122
+ };
123
+ }
124
+
125
+ export function TranscriptionPageToJSON(json: any): TranscriptionPage {
126
+ return TranscriptionPageToJSONTyped(json, false);
127
+ }
128
+
129
+ export function TranscriptionPageToJSONTyped(value?: TranscriptionPage | null, ignoreDiscriminator: boolean = false): any {
130
+ if (value == null) {
131
+ return value;
132
+ }
133
+
134
+ return {
135
+
136
+ 'index': value['index'],
137
+ 'markdown': value['markdown'],
138
+ 'origin': value['origin'],
139
+ 'split_rule': value['splitRule'],
140
+ 'images': value['images'] == null ? undefined : ((value['images'] as Array<any>).map(FigureImageToJSON)),
141
+ 'dimensions': PageDimensionsToJSON(value['dimensions']),
142
+ };
143
+ }
144
+
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.11.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * What the transcription cost. ``gpu_used`` is the field that matters.
18
+ * @export
19
+ * @interface TranscriptionUsage
20
+ */
21
+ export interface TranscriptionUsage {
22
+ /**
23
+ * Pages transcribed and returned.
24
+ * @type {number}
25
+ * @memberof TranscriptionUsage
26
+ */
27
+ pagesProcessed: number;
28
+ /**
29
+ * Pages that did not survive. Every one of them is named in warnings.missing_page_ranges, and processed + failed == document.total_pages.
30
+ * @type {number}
31
+ * @memberof TranscriptionUsage
32
+ */
33
+ pagesFailed?: number;
34
+ /**
35
+ * Figures actually delivered in pages[].images, not a producer's own tally.
36
+ * @type {number}
37
+ * @memberof TranscriptionUsage
38
+ */
39
+ figuresExtracted?: number;
40
+ /**
41
+ * The caller's wall clock. Chunks run concurrently, so this is not their sum.
42
+ * @type {number}
43
+ * @memberof TranscriptionUsage
44
+ */
45
+ processingTimeS: number;
46
+ /**
47
+ * False means this document never reached a GPU fleet.
48
+ * @type {boolean}
49
+ * @memberof TranscriptionUsage
50
+ */
51
+ gpuUsed: boolean;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the TranscriptionUsage interface.
56
+ */
57
+ export function instanceOfTranscriptionUsage(value: object): value is TranscriptionUsage {
58
+ if (!('pagesProcessed' in value) || value['pagesProcessed'] === undefined) return false;
59
+ if (!('processingTimeS' in value) || value['processingTimeS'] === undefined) return false;
60
+ if (!('gpuUsed' in value) || value['gpuUsed'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function TranscriptionUsageFromJSON(json: any): TranscriptionUsage {
65
+ return TranscriptionUsageFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function TranscriptionUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptionUsage {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'pagesProcessed': json['pages_processed'],
75
+ 'pagesFailed': json['pages_failed'] == null ? undefined : json['pages_failed'],
76
+ 'figuresExtracted': json['figures_extracted'] == null ? undefined : json['figures_extracted'],
77
+ 'processingTimeS': json['processing_time_s'],
78
+ 'gpuUsed': json['gpu_used'],
79
+ };
80
+ }
81
+
82
+ export function TranscriptionUsageToJSON(json: any): TranscriptionUsage {
83
+ return TranscriptionUsageToJSONTyped(json, false);
84
+ }
85
+
86
+ export function TranscriptionUsageToJSONTyped(value?: TranscriptionUsage | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'pages_processed': value['pagesProcessed'],
94
+ 'pages_failed': value['pagesFailed'],
95
+ 'figures_extracted': value['figuresExtracted'],
96
+ 'processing_time_s': value['processingTimeS'],
97
+ 'gpu_used': value['gpuUsed'],
98
+ };
99
+ }
100
+