pulse-ts-sdk 1.0.8 → 1.0.10

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 (249) hide show
  1. package/README.md +22 -22
  2. package/dist/cjs/BaseClient.js +3 -2
  3. package/dist/cjs/Client.d.ts +12 -0
  4. package/dist/cjs/Client.js +78 -28
  5. package/dist/cjs/api/client/requests/ExtractAsyncRequest.d.ts +17 -5
  6. package/dist/cjs/api/client/requests/ExtractAsyncRequest.js +3 -2
  7. package/dist/cjs/api/client/requests/ExtractRequest.d.ts +17 -5
  8. package/dist/cjs/api/client/requests/ExtractRequest.js +3 -2
  9. package/dist/cjs/api/errors/GoneError.d.ts +6 -0
  10. package/dist/cjs/api/errors/GoneError.js +54 -0
  11. package/dist/cjs/api/errors/index.d.ts +1 -0
  12. package/dist/cjs/api/errors/index.js +1 -0
  13. package/dist/cjs/api/resources/batch/client/Client.js +32 -16
  14. package/dist/cjs/api/resources/form/client/Client.d.ts +148 -0
  15. package/dist/cjs/api/resources/form/client/Client.js +350 -0
  16. package/dist/cjs/api/resources/form/client/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/form/client/index.js +17 -0
  18. package/dist/cjs/api/resources/form/client/requests/FormClearJsonInput.d.ts +19 -0
  19. package/dist/cjs/api/resources/form/client/requests/FormClearJsonInput.js +3 -0
  20. package/dist/cjs/api/resources/form/client/requests/FormDetectJsonInput.d.ts +14 -0
  21. package/dist/cjs/api/resources/form/client/requests/FormDetectJsonInput.js +3 -0
  22. package/dist/cjs/api/resources/form/client/requests/FormFillJsonInput.d.ts +21 -0
  23. package/dist/cjs/api/resources/form/client/requests/FormFillJsonInput.js +3 -0
  24. package/dist/cjs/api/resources/form/client/requests/index.d.ts +3 -0
  25. package/dist/cjs/api/resources/form/client/requests/index.js +2 -0
  26. package/dist/cjs/api/resources/form/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/form/index.js +17 -0
  28. package/dist/cjs/api/resources/index.d.ts +8 -0
  29. package/dist/cjs/api/resources/index.js +9 -1
  30. package/dist/cjs/api/resources/jobs/client/Client.js +16 -8
  31. package/dist/cjs/api/resources/largeResults/client/Client.d.ts +41 -0
  32. package/dist/cjs/api/resources/largeResults/client/Client.js +131 -0
  33. package/dist/cjs/api/resources/largeResults/client/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/largeResults/client/index.js +17 -0
  35. package/dist/cjs/api/resources/largeResults/client/requests/GetLargeResultLargeResultsRequest.d.ts +10 -0
  36. package/dist/cjs/api/resources/largeResults/client/requests/GetLargeResultLargeResultsRequest.js +3 -0
  37. package/dist/cjs/api/resources/largeResults/client/requests/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/largeResults/client/requests/index.js +2 -0
  39. package/dist/cjs/api/resources/largeResults/index.d.ts +1 -0
  40. package/dist/cjs/api/resources/largeResults/index.js +17 -0
  41. package/dist/cjs/api/resources/pipeline/client/Client.d.ts +57 -0
  42. package/dist/cjs/api/resources/pipeline/client/Client.js +151 -0
  43. package/dist/cjs/api/resources/pipeline/client/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/pipeline/client/index.js +17 -0
  45. package/dist/cjs/api/resources/pipeline/client/requests/PipelineExecuteInput.d.ts +17 -0
  46. package/dist/cjs/api/resources/pipeline/client/requests/PipelineExecuteInput.js +3 -0
  47. package/dist/cjs/api/resources/pipeline/client/requests/index.d.ts +1 -0
  48. package/dist/cjs/api/resources/pipeline/client/requests/index.js +2 -0
  49. package/dist/cjs/api/resources/pipeline/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/pipeline/index.js +17 -0
  51. package/dist/cjs/api/resources/results/client/Client.d.ts +27 -0
  52. package/dist/cjs/api/resources/results/client/Client.js +116 -0
  53. package/dist/cjs/api/resources/results/client/index.d.ts +1 -0
  54. package/dist/cjs/api/resources/results/client/index.js +17 -0
  55. package/dist/cjs/api/resources/results/client/requests/GetPdfResultsRequest.d.ts +10 -0
  56. package/dist/cjs/api/resources/results/client/requests/GetPdfResultsRequest.js +3 -0
  57. package/dist/cjs/api/resources/results/client/requests/index.d.ts +1 -0
  58. package/dist/cjs/api/resources/results/client/requests/index.js +2 -0
  59. package/dist/cjs/api/resources/results/index.d.ts +1 -0
  60. package/dist/cjs/api/resources/results/index.js +17 -0
  61. package/dist/cjs/api/resources/webhooks/client/Client.js +8 -4
  62. package/dist/cjs/api/types/AsyncSubmissionResponse.d.ts +2 -0
  63. package/dist/cjs/api/types/ExtractInput.d.ts +17 -5
  64. package/dist/cjs/api/types/ExtractInput.js +3 -2
  65. package/dist/cjs/api/types/ExtractLargeResultResponse.d.ts +25 -0
  66. package/dist/cjs/api/types/ExtractLargeResultResponse.js +3 -0
  67. package/dist/cjs/api/types/ExtractOptions.d.ts +17 -5
  68. package/dist/cjs/api/types/ExtractOptions.js +3 -2
  69. package/dist/cjs/api/types/ExtractResponse.d.ts +3 -3
  70. package/dist/cjs/api/types/ExtractResultCore.d.ts +112 -0
  71. package/dist/cjs/api/types/ExtractResultCore.js +3 -0
  72. package/dist/cjs/api/types/FormCell.d.ts +40 -0
  73. package/dist/cjs/api/types/FormCell.js +13 -0
  74. package/dist/cjs/api/types/FormCheckboxDetail.d.ts +11 -0
  75. package/dist/cjs/api/types/FormCheckboxDetail.js +3 -0
  76. package/dist/cjs/api/types/FormClearMultipartInput.d.ts +21 -0
  77. package/dist/cjs/api/types/FormClearMultipartInput.js +3 -0
  78. package/dist/cjs/api/types/FormDetectMultipartInput.d.ts +16 -0
  79. package/dist/cjs/api/types/FormDetectMultipartInput.js +3 -0
  80. package/dist/cjs/api/types/FormFillMultipartInput.d.ts +21 -0
  81. package/dist/cjs/api/types/FormFillMultipartInput.js +3 -0
  82. package/dist/cjs/api/types/FormFillSharedOptions.d.ts +12 -0
  83. package/dist/cjs/api/types/FormFillSharedOptions.js +3 -0
  84. package/dist/cjs/api/types/FormPlanInfo.d.ts +11 -0
  85. package/dist/cjs/api/types/FormPlanInfo.js +3 -0
  86. package/dist/cjs/api/types/FormResult.d.ts +24 -0
  87. package/dist/cjs/api/types/FormResult.js +3 -0
  88. package/dist/cjs/api/types/FormSharedOptions.d.ts +9 -0
  89. package/dist/cjs/api/types/FormSharedOptions.js +3 -0
  90. package/dist/cjs/api/types/GoneErrorBody.d.ts +9 -0
  91. package/dist/cjs/api/types/GoneErrorBody.js +3 -0
  92. package/dist/cjs/api/types/JobStatusResponse.d.ts +1 -1
  93. package/dist/cjs/api/types/PipelineBatchExtractResult.d.ts +13 -0
  94. package/dist/cjs/api/types/PipelineBatchExtractResult.js +3 -0
  95. package/dist/cjs/api/types/PipelineExecuteMultipartInput.d.ts +13 -0
  96. package/dist/cjs/api/types/PipelineExecuteMultipartInput.js +3 -0
  97. package/dist/cjs/api/types/PipelineExecuteResponse.d.ts +21 -0
  98. package/dist/cjs/api/types/PipelineExecuteResponse.js +11 -0
  99. package/dist/cjs/api/types/PipelineExtractResult.d.ts +118 -0
  100. package/dist/cjs/api/types/PipelineExtractResult.js +3 -0
  101. package/dist/cjs/api/types/PipelineResults.d.ts +16 -0
  102. package/dist/cjs/api/types/PipelineResults.js +3 -0
  103. package/dist/cjs/api/types/PipelineSchemaResult.d.ts +14 -0
  104. package/dist/cjs/api/types/PipelineSchemaResult.js +3 -0
  105. package/dist/cjs/api/types/PipelineSplitResult.d.ts +18 -0
  106. package/dist/cjs/api/types/PipelineSplitResult.js +3 -0
  107. package/dist/cjs/api/types/PipelineStepBatchExtractConfig.d.ts +147 -0
  108. package/dist/cjs/api/types/PipelineStepBatchExtractConfig.js +27 -0
  109. package/dist/cjs/api/types/PipelineSteps.d.ts +16 -0
  110. package/dist/cjs/api/types/PipelineSteps.js +3 -0
  111. package/dist/cjs/api/types/PipelineTablesResult.d.ts +33 -0
  112. package/dist/cjs/api/types/PipelineTablesResult.js +3 -0
  113. package/dist/cjs/api/types/SingleSchemaResponse.d.ts +2 -0
  114. package/dist/cjs/api/types/SplitResponse.d.ts +1 -6
  115. package/dist/cjs/api/types/SplitResultCore.d.ts +12 -0
  116. package/dist/cjs/api/types/SplitResultCore.js +3 -0
  117. package/dist/cjs/api/types/SplitSchemaResponse.d.ts +2 -0
  118. package/dist/cjs/api/types/TablesConfig.d.ts +5 -2
  119. package/dist/cjs/api/types/TablesConfig.js +2 -1
  120. package/dist/cjs/api/types/TablesResponse.d.ts +4 -2
  121. package/dist/cjs/api/types/index.d.ts +23 -0
  122. package/dist/cjs/api/types/index.js +23 -0
  123. package/dist/cjs/version.d.ts +1 -1
  124. package/dist/cjs/version.js +1 -1
  125. package/dist/esm/BaseClient.mjs +3 -2
  126. package/dist/esm/Client.d.mts +12 -0
  127. package/dist/esm/Client.mjs +74 -24
  128. package/dist/esm/api/client/requests/ExtractAsyncRequest.d.mts +17 -5
  129. package/dist/esm/api/client/requests/ExtractAsyncRequest.mjs +3 -2
  130. package/dist/esm/api/client/requests/ExtractRequest.d.mts +17 -5
  131. package/dist/esm/api/client/requests/ExtractRequest.mjs +3 -2
  132. package/dist/esm/api/errors/GoneError.d.mts +6 -0
  133. package/dist/esm/api/errors/GoneError.mjs +17 -0
  134. package/dist/esm/api/errors/index.d.mts +1 -0
  135. package/dist/esm/api/errors/index.mjs +1 -0
  136. package/dist/esm/api/resources/batch/client/Client.mjs +32 -16
  137. package/dist/esm/api/resources/form/client/Client.d.mts +148 -0
  138. package/dist/esm/api/resources/form/client/Client.mjs +313 -0
  139. package/dist/esm/api/resources/form/client/index.d.mts +1 -0
  140. package/dist/esm/api/resources/form/client/index.mjs +1 -0
  141. package/dist/esm/api/resources/form/client/requests/FormClearJsonInput.d.mts +19 -0
  142. package/dist/esm/api/resources/form/client/requests/FormClearJsonInput.mjs +2 -0
  143. package/dist/esm/api/resources/form/client/requests/FormDetectJsonInput.d.mts +14 -0
  144. package/dist/esm/api/resources/form/client/requests/FormDetectJsonInput.mjs +2 -0
  145. package/dist/esm/api/resources/form/client/requests/FormFillJsonInput.d.mts +21 -0
  146. package/dist/esm/api/resources/form/client/requests/FormFillJsonInput.mjs +2 -0
  147. package/dist/esm/api/resources/form/client/requests/index.d.mts +3 -0
  148. package/dist/esm/api/resources/form/client/requests/index.mjs +1 -0
  149. package/dist/esm/api/resources/form/index.d.mts +1 -0
  150. package/dist/esm/api/resources/form/index.mjs +1 -0
  151. package/dist/esm/api/resources/index.d.mts +8 -0
  152. package/dist/esm/api/resources/index.mjs +8 -0
  153. package/dist/esm/api/resources/jobs/client/Client.mjs +16 -8
  154. package/dist/esm/api/resources/largeResults/client/Client.d.mts +41 -0
  155. package/dist/esm/api/resources/largeResults/client/Client.mjs +94 -0
  156. package/dist/esm/api/resources/largeResults/client/index.d.mts +1 -0
  157. package/dist/esm/api/resources/largeResults/client/index.mjs +1 -0
  158. package/dist/esm/api/resources/largeResults/client/requests/GetLargeResultLargeResultsRequest.d.mts +10 -0
  159. package/dist/esm/api/resources/largeResults/client/requests/GetLargeResultLargeResultsRequest.mjs +2 -0
  160. package/dist/esm/api/resources/largeResults/client/requests/index.d.mts +1 -0
  161. package/dist/esm/api/resources/largeResults/client/requests/index.mjs +1 -0
  162. package/dist/esm/api/resources/largeResults/index.d.mts +1 -0
  163. package/dist/esm/api/resources/largeResults/index.mjs +1 -0
  164. package/dist/esm/api/resources/pipeline/client/Client.d.mts +57 -0
  165. package/dist/esm/api/resources/pipeline/client/Client.mjs +114 -0
  166. package/dist/esm/api/resources/pipeline/client/index.d.mts +1 -0
  167. package/dist/esm/api/resources/pipeline/client/index.mjs +1 -0
  168. package/dist/esm/api/resources/pipeline/client/requests/PipelineExecuteInput.d.mts +17 -0
  169. package/dist/esm/api/resources/pipeline/client/requests/PipelineExecuteInput.mjs +2 -0
  170. package/dist/esm/api/resources/pipeline/client/requests/index.d.mts +1 -0
  171. package/dist/esm/api/resources/pipeline/client/requests/index.mjs +1 -0
  172. package/dist/esm/api/resources/pipeline/index.d.mts +1 -0
  173. package/dist/esm/api/resources/pipeline/index.mjs +1 -0
  174. package/dist/esm/api/resources/results/client/Client.d.mts +27 -0
  175. package/dist/esm/api/resources/results/client/Client.mjs +79 -0
  176. package/dist/esm/api/resources/results/client/index.d.mts +1 -0
  177. package/dist/esm/api/resources/results/client/index.mjs +1 -0
  178. package/dist/esm/api/resources/results/client/requests/GetPdfResultsRequest.d.mts +10 -0
  179. package/dist/esm/api/resources/results/client/requests/GetPdfResultsRequest.mjs +2 -0
  180. package/dist/esm/api/resources/results/client/requests/index.d.mts +1 -0
  181. package/dist/esm/api/resources/results/client/requests/index.mjs +1 -0
  182. package/dist/esm/api/resources/results/index.d.mts +1 -0
  183. package/dist/esm/api/resources/results/index.mjs +1 -0
  184. package/dist/esm/api/resources/webhooks/client/Client.mjs +8 -4
  185. package/dist/esm/api/types/AsyncSubmissionResponse.d.mts +2 -0
  186. package/dist/esm/api/types/ExtractInput.d.mts +17 -5
  187. package/dist/esm/api/types/ExtractInput.mjs +3 -2
  188. package/dist/esm/api/types/ExtractLargeResultResponse.d.mts +25 -0
  189. package/dist/esm/api/types/ExtractLargeResultResponse.mjs +2 -0
  190. package/dist/esm/api/types/ExtractOptions.d.mts +17 -5
  191. package/dist/esm/api/types/ExtractOptions.mjs +3 -2
  192. package/dist/esm/api/types/ExtractResponse.d.mts +3 -3
  193. package/dist/esm/api/types/ExtractResultCore.d.mts +112 -0
  194. package/dist/esm/api/types/ExtractResultCore.mjs +2 -0
  195. package/dist/esm/api/types/FormCell.d.mts +40 -0
  196. package/dist/esm/api/types/FormCell.mjs +10 -0
  197. package/dist/esm/api/types/FormCheckboxDetail.d.mts +11 -0
  198. package/dist/esm/api/types/FormCheckboxDetail.mjs +2 -0
  199. package/dist/esm/api/types/FormClearMultipartInput.d.mts +21 -0
  200. package/dist/esm/api/types/FormClearMultipartInput.mjs +2 -0
  201. package/dist/esm/api/types/FormDetectMultipartInput.d.mts +16 -0
  202. package/dist/esm/api/types/FormDetectMultipartInput.mjs +2 -0
  203. package/dist/esm/api/types/FormFillMultipartInput.d.mts +21 -0
  204. package/dist/esm/api/types/FormFillMultipartInput.mjs +2 -0
  205. package/dist/esm/api/types/FormFillSharedOptions.d.mts +12 -0
  206. package/dist/esm/api/types/FormFillSharedOptions.mjs +2 -0
  207. package/dist/esm/api/types/FormPlanInfo.d.mts +11 -0
  208. package/dist/esm/api/types/FormPlanInfo.mjs +2 -0
  209. package/dist/esm/api/types/FormResult.d.mts +24 -0
  210. package/dist/esm/api/types/FormResult.mjs +2 -0
  211. package/dist/esm/api/types/FormSharedOptions.d.mts +9 -0
  212. package/dist/esm/api/types/FormSharedOptions.mjs +2 -0
  213. package/dist/esm/api/types/GoneErrorBody.d.mts +9 -0
  214. package/dist/esm/api/types/GoneErrorBody.mjs +2 -0
  215. package/dist/esm/api/types/JobStatusResponse.d.mts +1 -1
  216. package/dist/esm/api/types/PipelineBatchExtractResult.d.mts +13 -0
  217. package/dist/esm/api/types/PipelineBatchExtractResult.mjs +2 -0
  218. package/dist/esm/api/types/PipelineExecuteMultipartInput.d.mts +13 -0
  219. package/dist/esm/api/types/PipelineExecuteMultipartInput.mjs +2 -0
  220. package/dist/esm/api/types/PipelineExecuteResponse.d.mts +21 -0
  221. package/dist/esm/api/types/PipelineExecuteResponse.mjs +8 -0
  222. package/dist/esm/api/types/PipelineExtractResult.d.mts +118 -0
  223. package/dist/esm/api/types/PipelineExtractResult.mjs +2 -0
  224. package/dist/esm/api/types/PipelineResults.d.mts +16 -0
  225. package/dist/esm/api/types/PipelineResults.mjs +2 -0
  226. package/dist/esm/api/types/PipelineSchemaResult.d.mts +14 -0
  227. package/dist/esm/api/types/PipelineSchemaResult.mjs +2 -0
  228. package/dist/esm/api/types/PipelineSplitResult.d.mts +18 -0
  229. package/dist/esm/api/types/PipelineSplitResult.mjs +2 -0
  230. package/dist/esm/api/types/PipelineStepBatchExtractConfig.d.mts +147 -0
  231. package/dist/esm/api/types/PipelineStepBatchExtractConfig.mjs +24 -0
  232. package/dist/esm/api/types/PipelineSteps.d.mts +16 -0
  233. package/dist/esm/api/types/PipelineSteps.mjs +2 -0
  234. package/dist/esm/api/types/PipelineTablesResult.d.mts +33 -0
  235. package/dist/esm/api/types/PipelineTablesResult.mjs +2 -0
  236. package/dist/esm/api/types/SingleSchemaResponse.d.mts +2 -0
  237. package/dist/esm/api/types/SplitResponse.d.mts +1 -6
  238. package/dist/esm/api/types/SplitResultCore.d.mts +12 -0
  239. package/dist/esm/api/types/SplitResultCore.mjs +2 -0
  240. package/dist/esm/api/types/SplitSchemaResponse.d.mts +2 -0
  241. package/dist/esm/api/types/TablesConfig.d.mts +5 -2
  242. package/dist/esm/api/types/TablesConfig.mjs +2 -1
  243. package/dist/esm/api/types/TablesResponse.d.mts +4 -2
  244. package/dist/esm/api/types/index.d.mts +23 -0
  245. package/dist/esm/api/types/index.mjs +23 -0
  246. package/dist/esm/version.d.mts +1 -1
  247. package/dist/esm/version.mjs +1 -1
  248. package/package.json +1 -1
  249. package/reference.md +513 -0
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Optional knobs accepted by `/form/detect`, `/form/fill`, and `/form/clear` regardless of input mode.
3
+ */
4
+ export interface FormSharedOptions {
5
+ /** Restrict the operation to a subset of pages. Accepts comma-separated page numbers and ranges, e.g. `"1-3,5"`. Alias: `pages`. */
6
+ page_range?: string;
7
+ /** When `true`, the endpoint returns immediately with `{job_id, status: "pending"}` (HTTP 202) and processes the job in the background. Poll [GET /job/{jobId}](api:GET/job/{jobId}) for the result. Default `false` — return the full result inline. */
8
+ async?: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface GoneErrorBody {
2
+ error?: GoneErrorBody.Error_;
3
+ }
4
+ export declare namespace GoneErrorBody {
5
+ interface Error_ {
6
+ code?: string;
7
+ message?: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,7 +10,7 @@ export interface JobStatusResponse {
10
10
  created_at: string;
11
11
  /** Timestamp of the last status update, if available. */
12
12
  updated_at?: string;
13
- /** Structured payload that contains output when the job is completed. */
13
+ /** Structured payload returned when the job completes. For large extractions (70+ pages) this object contains `is_url: true` and a single-use `url` to download the full result via `GET /large_results/{jobId}`. */
14
14
  result?: Record<string, unknown>;
15
15
  /** Error message describing why the job failed, if applicable. */
16
16
  error?: string;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Result from the batch_extract step in a pipeline.
3
+ */
4
+ export interface PipelineBatchExtractResult {
5
+ /** List of extraction IDs for each processed file. */
6
+ extraction_ids?: string[];
7
+ /** Number of files processed. */
8
+ total_files?: number;
9
+ /** Step execution time in seconds. */
10
+ latency?: number;
11
+ /** Accepts any additional properties */
12
+ [key: string]: any;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Multipart form-data request body for ad-hoc pipeline execution. Upload file(s) directly and provide step configs as a JSON string.
3
+ */
4
+ export interface PipelineExecuteMultipartInput {
5
+ /** Document file to upload. For batch_extract, multiple `file` fields can be provided. */
6
+ file?: string;
7
+ /** JSON string containing the step configurations (same structure as `PipelineSteps`). */
8
+ steps: string;
9
+ /** Set to `"true"` for async execution. */
10
+ async?: string;
11
+ /** Set to `"true"` for zero-retention mode. */
12
+ auto_delete?: string;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import type * as Pulse from "../index.js";
2
+ /**
3
+ * Synchronous pipeline execution result. Contains the status, total latency, and results from each step.
4
+ */
5
+ export interface PipelineExecuteResponse {
6
+ /** Pipeline execution status. */
7
+ status: PipelineExecuteResponse.Status;
8
+ /** Total pipeline execution time in seconds. */
9
+ total_latency?: number;
10
+ /** Per-step results. */
11
+ results: Pulse.PipelineResults;
12
+ /** Present and true when auto-delete mode was used. Confirms that artifacts have been purged. */
13
+ auto_delete?: boolean;
14
+ }
15
+ export declare namespace PipelineExecuteResponse {
16
+ /** Pipeline execution status. */
17
+ const Status: {
18
+ readonly Completed: "completed";
19
+ };
20
+ type Status = (typeof Status)[keyof typeof Status];
21
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PipelineExecuteResponse = void 0;
5
+ var PipelineExecuteResponse;
6
+ (function (PipelineExecuteResponse) {
7
+ /** Pipeline execution status. */
8
+ PipelineExecuteResponse.Status = {
9
+ Completed: "completed",
10
+ };
11
+ })(PipelineExecuteResponse || (exports.PipelineExecuteResponse = PipelineExecuteResponse = {}));
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Result from the extract step in a pipeline. Inherits all core extraction fields and adds pipeline-specific timing.
3
+ */
4
+ export interface PipelineExtractResult {
5
+ /** Primary markdown content extracted from the document. Always present in the new format. */
6
+ markdown?: string;
7
+ /** Output from enabled extensions. Each key corresponds to an extension that was enabled in the request under `extensions.*`. Only keys for enabled extensions are present. */
8
+ extensions?: PipelineExtractResult.Extensions;
9
+ /** Positional bounding-box data for text, titles, headers, footers, images, and tables. Used by the frontend for annotation overlays. */
10
+ bounding_boxes?: Record<string, unknown>;
11
+ /** Persisted extraction ID. Present when storage is enabled (default). Use this ID with `/split` and `/schema` endpoints. */
12
+ extraction_id?: string;
13
+ /** URL to view the extraction on the Pulse platform. Present when storage is enabled. */
14
+ extraction_url?: string;
15
+ /** Number of pages processed. */
16
+ page_count?: number;
17
+ /** Billing tier and usage information. */
18
+ plan_info?: PipelineExtractResult.PlanInfo;
19
+ /** Non-fatal warnings generated during extraction. Includes deprecation notices when legacy input parameters are used, as well as processing warnings (e.g. word-level bounding box limitations). */
20
+ warnings?: string[];
21
+ /** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
22
+ credits_used?: number | null;
23
+ /** Number of pages processed. Convenience alias for `page_count`. */
24
+ pages?: number;
25
+ /** Step execution time in seconds. */
26
+ latency?: number;
27
+ /** Accepts any additional properties */
28
+ [key: string]: any;
29
+ }
30
+ export declare namespace PipelineExtractResult {
31
+ /**
32
+ * Output from enabled extensions. Each key corresponds to an extension that was enabled in the request under `extensions.*`. Only keys for enabled extensions are present.
33
+ */
34
+ interface Extensions {
35
+ /** Chunk results by strategy. Present when `extensions.chunking` was provided in the request. */
36
+ chunking?: Extensions.Chunking;
37
+ /** List of detected footnotes with their in-text references. Present when `extensions.footnoteReferences` was enabled. Each item links a footnote paragraph to the body-text paragraphs that reference it, using bounding-box text IDs. */
38
+ footnoteReferences?: Extensions.FootnoteReferences.Item[];
39
+ /** Alternate output formats. Each key corresponds to an enabled alt output. */
40
+ altOutputs?: Extensions.AltOutputs;
41
+ }
42
+ namespace Extensions {
43
+ /**
44
+ * Chunk results by strategy. Present when `extensions.chunking` was provided in the request.
45
+ */
46
+ interface Chunking {
47
+ /** Semantically-segmented chunks. */
48
+ semantic?: string[];
49
+ /** Chunks split by document headers/headings. */
50
+ header?: string[];
51
+ /** One chunk per page. */
52
+ page?: string[];
53
+ /** Recursively-split chunks respecting size limits. */
54
+ recursive?: string[];
55
+ }
56
+ type FootnoteReferences = FootnoteReferences.Item[];
57
+ namespace FootnoteReferences {
58
+ interface Item {
59
+ /** The footnote marker symbol (e.g. "*", "†", "1", "#"). */
60
+ symbol?: string;
61
+ /** The bounding-box text ID (e.g. "txt-15") of the footnote explanation paragraph. */
62
+ footnoteTextId?: string;
63
+ /** Bounding-box text IDs of body-text paragraphs that contain a reference to this footnote marker. */
64
+ referenceTextIds?: string[];
65
+ }
66
+ }
67
+ /**
68
+ * Alternate output formats. Each key corresponds to an enabled alt output.
69
+ */
70
+ interface AltOutputs {
71
+ /** Word-level bounding box data. Present when `extensions.altOutputs.wlbb` was enabled and input is a PDF. */
72
+ wlbb?: AltOutputs.Wlbb;
73
+ /** HTML representation of the document. Present when `extensions.altOutputs.returnHtml` was enabled. */
74
+ html?: string;
75
+ /** XML representation of the document. Present when `extensions.altOutputs.returnXml` was enabled. (WIP) */
76
+ xml?: string;
77
+ }
78
+ namespace AltOutputs {
79
+ /**
80
+ * Word-level bounding box data. Present when `extensions.altOutputs.wlbb` was enabled and input is a PDF.
81
+ */
82
+ interface Wlbb {
83
+ /** List of detected words with their positions. */
84
+ words?: Wlbb.Words.Item[];
85
+ /** Error message if word-level extraction failed. */
86
+ error?: string;
87
+ }
88
+ namespace Wlbb {
89
+ type Words = Words.Item[];
90
+ namespace Words {
91
+ interface Item {
92
+ /** Unique identifier for the word (e.g. "w-1", "w-2", …). */
93
+ id?: string;
94
+ /** The recognised word text. */
95
+ text?: string;
96
+ /** 1-indexed page number in the original document. */
97
+ page_number?: number;
98
+ /** Flat 4-corner polygon: [x1,y1, x2,y2, x3,y3, x4,y4]. All coordinates normalised to 0–1 range. */
99
+ bounding_box?: number[];
100
+ /** Recognition confidence score (0–1). */
101
+ average_word_confidence?: number;
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ /**
108
+ * Billing tier and usage information.
109
+ */
110
+ interface PlanInfo {
111
+ /** Current plan tier name. */
112
+ tier?: string;
113
+ /** Cumulative pages used after this extraction. */
114
+ pages_used?: number;
115
+ /** Human-readable plan note. */
116
+ note?: string;
117
+ }
118
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import type * as Pulse from "../index.js";
2
+ /**
3
+ * Results from each pipeline step, keyed by step name. Only steps that were executed are present.
4
+ */
5
+ export interface PipelineResults {
6
+ /** Extract step result. */
7
+ extract?: Pulse.PipelineExtractResult;
8
+ /** Batch extract step result. */
9
+ batch_extract?: Pulse.PipelineBatchExtractResult;
10
+ /** Schema step result. */
11
+ schema?: Pulse.PipelineSchemaResult;
12
+ /** Split step result. */
13
+ split?: Pulse.PipelineSplitResult;
14
+ /** Tables step result. */
15
+ tables?: Pulse.PipelineTablesResult;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import type * as Pulse from "../index.js";
2
+ /**
3
+ * Result from the schema step in a pipeline.
4
+ */
5
+ export interface PipelineSchemaResult {
6
+ /** Persisted schema version ID. */
7
+ schema_id?: string;
8
+ /** Extracted values and citations. */
9
+ schema_output?: Pulse.StructuredOutputResult;
10
+ /** Step execution time in seconds. */
11
+ latency?: number;
12
+ /** Accepts any additional properties */
13
+ [key: string]: any;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import type * as Pulse from "../index.js";
2
+ /**
3
+ * Result from the split step in a pipeline. Inherits all core split fields and adds pipeline-specific timing and input echo.
4
+ */
5
+ export interface PipelineSplitResult {
6
+ /** Unique identifier for this split result. Use this ID with the `/schema` endpoint (split mode) to apply schemas to specific page groups. */
7
+ split_id?: string;
8
+ /** Page assignments per topic. */
9
+ split_output?: Pulse.SplitOutput;
10
+ /** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
11
+ credits_used?: number | null;
12
+ /** Echo of the topic definitions used. */
13
+ split_input?: Pulse.TopicDefinition[];
14
+ /** Step execution time in seconds. */
15
+ latency?: number;
16
+ /** Accepts any additional properties */
17
+ [key: string]: any;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,147 @@
1
+ import type * as Pulse from "../index.js";
2
+ /**
3
+ * Configuration for the batch_extract step. Same extract options as `POST /extract` (applied to every file) plus file inputs and a `workers` field for parallelism. Provide files via `file_urls` (URL list) or `files` (base64 inline uploads).
4
+ */
5
+ export interface PipelineStepBatchExtractConfig {
6
+ /** Extraction model to use. When set to `pulse-ultra-2`, routes the request through Pulse Ultra 2 (self-hosted VPC model) instead of the default cloud-based service. If omitted or set to `default`, the default model is used. */
7
+ model?: PipelineStepBatchExtractConfig.Model;
8
+ /** Page range filter supporting segments such as `1-2` or mixed ranges like `1-2,5`. */
9
+ pages?: string;
10
+ /** Settings that control how figures in the document are processed. These affect the markdown output directly (e.g. figure descriptions, chart-to-table conversion, image embedding) and do not produce additional output fields in the response. */
11
+ figureProcessing?: PipelineStepBatchExtractConfig.FigureProcessing;
12
+ /** Settings that enable additional processing passes or alternate output formats. Each enabled extension produces a corresponding output field under `response.extensions.*`. */
13
+ extensions?: PipelineStepBatchExtractConfig.Extensions;
14
+ /** Settings for Excel/spreadsheet extraction. Controls handling of hidden rows, columns, and sheets. Only applies to `.xlsx` and `.xls` files. Accepts both camelCase and snake_case field names. */
15
+ spreadsheet?: PipelineStepBatchExtractConfig.Spreadsheet;
16
+ /** Options for persisting extraction artifacts. When enabled (default), artifacts are saved to storage and a database record is created. */
17
+ storage?: PipelineStepBatchExtractConfig.Storage;
18
+ /** If true, returns immediately with a job_id for polling via GET /job/{jobId}. Otherwise processes synchronously. */
19
+ async?: boolean;
20
+ /** **⚠️ DEPRECATED** — Use the `/schema` endpoint after extraction instead. Pass the `extraction_id` from the extract response to `/schema` with your `schema_config`. This parameter still works for backward compatibility but will be removed in a future version. */
21
+ structuredOutput?: PipelineStepBatchExtractConfig.StructuredOutput;
22
+ /** (Deprecated) JSON schema describing structured data to extract. Use structuredOutput instead. Accepts either a JSON object or a stringified JSON representation. */
23
+ schema?: PipelineStepBatchExtractConfig.Schema;
24
+ /** (Deprecated) Natural language prompt for schema-guided extraction. Use structuredOutput.schemaPrompt instead. */
25
+ schemaPrompt?: string;
26
+ /** (Deprecated) Custom instructions that augment the default extraction behaviour. Use `figureProcessing` or `extensions` instead. */
27
+ customPrompt?: string;
28
+ /** **⚠️ DEPRECATED** — Use `extensions.chunking.chunkTypes` instead. Comma-separated list of chunking strategies to apply (for example `semantic,header,page,recursive`). Still accepted for backward compatibility. */
29
+ chunking?: string;
30
+ /** **⚠️ DEPRECATED** — Use `extensions.chunking.chunkSize` instead. Override for maximum characters per chunk when chunking is enabled. */
31
+ chunkSize?: number;
32
+ /** **⚠️ DEPRECATED** — Toggle to enable figure extraction in results. */
33
+ extractFigure?: boolean;
34
+ /** **⚠️ DEPRECATED** — Use `figureProcessing.description` instead. Toggle to generate descriptive captions for extracted figures. */
35
+ figureDescription?: boolean;
36
+ /** **⚠️ DEPRECATED** — Use `figureProcessing.showImages` instead. Embed base64-encoded images inline in figure tags in the output. Increases response size. */
37
+ showImages?: boolean;
38
+ /** **⚠️ DEPRECATED** — Use `extensions.altOutputs.returnHtml` instead. Whether to include HTML representation alongside markdown in the response. */
39
+ returnHtml?: boolean;
40
+ /** (Deprecated) Enables expanded rationale output for debugging. */
41
+ thinking?: boolean;
42
+ /** List of document URLs to process in parallel. */
43
+ file_urls?: string[];
44
+ /** Inline file uploads. Each entry contains a filename and base64-encoded file content. Use instead of `file_urls` when you have local files. */
45
+ files?: Pulse.BatchFileUpload[];
46
+ /** Number of parallel workers. */
47
+ workers?: number;
48
+ }
49
+ export declare namespace PipelineStepBatchExtractConfig {
50
+ /** Extraction model to use. When set to `pulse-ultra-2`, routes the request through Pulse Ultra 2 (self-hosted VPC model) instead of the default cloud-based service. If omitted or set to `default`, the default model is used. */
51
+ const Model: {
52
+ readonly Default: "default";
53
+ readonly PulseUltra2: "pulse-ultra-2";
54
+ };
55
+ type Model = (typeof Model)[keyof typeof Model];
56
+ /**
57
+ * Settings that control how figures in the document are processed. These affect the markdown output directly (e.g. figure descriptions, chart-to-table conversion, image embedding) and do not produce additional output fields in the response.
58
+ */
59
+ interface FigureProcessing {
60
+ /** Generate descriptive captions for extracted figures. */
61
+ description?: boolean;
62
+ /** Embed base64-encoded images inline in figure tags in the output. Increases response size. */
63
+ showImages?: boolean;
64
+ }
65
+ /**
66
+ * Settings that enable additional processing passes or alternate output formats. Each enabled extension produces a corresponding output field under `response.extensions.*`.
67
+ */
68
+ interface Extensions {
69
+ /** Link footnote markers to their corresponding footnote text. */
70
+ footnoteReferences?: boolean;
71
+ /** Chunking configuration. When provided, the document is split into chunks using the specified strategies. Results appear in `response.extensions.chunking`. */
72
+ chunking?: Extensions.Chunking;
73
+ /** Alternate output format options. Each enabled format produces a corresponding field under `response.extensions.altOutputs`. */
74
+ altOutputs?: Extensions.AltOutputs;
75
+ }
76
+ namespace Extensions {
77
+ /**
78
+ * Chunking configuration. When provided, the document is split into chunks using the specified strategies. Results appear in `response.extensions.chunking`.
79
+ */
80
+ interface Chunking {
81
+ /** List of chunking strategies to apply (e.g. `["semantic", "header", "page", "recursive"]`). */
82
+ chunkTypes?: Chunking.ChunkTypes.Item[];
83
+ /** Maximum characters per chunk. */
84
+ chunkSize?: number;
85
+ }
86
+ namespace Chunking {
87
+ type ChunkTypes = ChunkTypes.Item[];
88
+ namespace ChunkTypes {
89
+ const Item: {
90
+ readonly Semantic: "semantic";
91
+ readonly Header: "header";
92
+ readonly Page: "page";
93
+ readonly Recursive: "recursive";
94
+ };
95
+ type Item = (typeof Item)[keyof typeof Item];
96
+ }
97
+ }
98
+ /**
99
+ * Alternate output format options. Each enabled format produces a corresponding field under `response.extensions.altOutputs`.
100
+ */
101
+ interface AltOutputs {
102
+ /** Enable word-level bounding boxes. Runs an additional OCR model to derive bounding boxes for each word. Only applies to PDFs. Results in `response.extensions.altOutputs.wlbb`. */
103
+ wlbb?: boolean;
104
+ /** Include an HTML representation of the document. When enabled, `response.markdown` is still present and the HTML is available at `response.extensions.altOutputs.html`. */
105
+ returnHtml?: boolean;
106
+ /** Include an XML representation of the document. Results in `response.extensions.altOutputs.xml`. (Work in progress.) */
107
+ returnXml?: boolean;
108
+ }
109
+ }
110
+ /**
111
+ * Settings for Excel/spreadsheet extraction. Controls handling of hidden rows, columns, and sheets. Only applies to `.xlsx` and `.xls` files. Accepts both camelCase and snake_case field names.
112
+ */
113
+ interface Spreadsheet {
114
+ /** Include rows that are hidden in the Excel workbook. */
115
+ includeHiddenRows?: boolean;
116
+ /** Include columns that are hidden in the Excel workbook. */
117
+ includeHiddenCols?: boolean;
118
+ /** Include sheets that are hidden in the Excel workbook. */
119
+ includeHiddenSheets?: boolean;
120
+ }
121
+ /**
122
+ * Options for persisting extraction artifacts. When enabled (default), artifacts are saved to storage and a database record is created.
123
+ */
124
+ interface Storage {
125
+ /** Whether to persist extraction artifacts. Set to false for temporary extractions with no storage or database record. */
126
+ enabled?: boolean;
127
+ /** Target folder name to save the extraction to. Creates the folder if it doesn't exist. */
128
+ folderName?: string;
129
+ /** Target folder ID to save the extraction to. Takes precedence over folderName if both are provided. */
130
+ folderId?: string;
131
+ }
132
+ /**
133
+ * **⚠️ DEPRECATED** — Use the `/schema` endpoint after extraction instead. Pass the `extraction_id` from the extract response to `/schema` with your `schema_config`. This parameter still works for backward compatibility but will be removed in a future version.
134
+ */
135
+ interface StructuredOutput {
136
+ /** JSON schema describing the structured data to extract. */
137
+ schema?: Record<string, unknown>;
138
+ /** Natural language prompt with additional extraction instructions. */
139
+ schemaPrompt?: string;
140
+ /** Use higher quality model for better results. When true, uses a more capable model at the cost of higher latency. */
141
+ effort?: boolean;
142
+ }
143
+ /**
144
+ * (Deprecated) JSON schema describing structured data to extract. Use structuredOutput instead. Accepts either a JSON object or a stringified JSON representation.
145
+ */
146
+ type Schema = Record<string, unknown> | string;
147
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PipelineStepBatchExtractConfig = void 0;
5
+ var PipelineStepBatchExtractConfig;
6
+ (function (PipelineStepBatchExtractConfig) {
7
+ /** Extraction model to use. When set to `pulse-ultra-2`, routes the request through Pulse Ultra 2 (self-hosted VPC model) instead of the default cloud-based service. If omitted or set to `default`, the default model is used. */
8
+ PipelineStepBatchExtractConfig.Model = {
9
+ Default: "default",
10
+ PulseUltra2: "pulse-ultra-2",
11
+ };
12
+ let Extensions;
13
+ (function (Extensions) {
14
+ let Chunking;
15
+ (function (Chunking) {
16
+ let ChunkTypes;
17
+ (function (ChunkTypes) {
18
+ ChunkTypes.Item = {
19
+ Semantic: "semantic",
20
+ Header: "header",
21
+ Page: "page",
22
+ Recursive: "recursive",
23
+ };
24
+ })(ChunkTypes = Chunking.ChunkTypes || (Chunking.ChunkTypes = {}));
25
+ })(Chunking = Extensions.Chunking || (Extensions.Chunking = {}));
26
+ })(Extensions = PipelineStepBatchExtractConfig.Extensions || (PipelineStepBatchExtractConfig.Extensions = {}));
27
+ })(PipelineStepBatchExtractConfig || (exports.PipelineStepBatchExtractConfig = PipelineStepBatchExtractConfig = {}));
@@ -0,0 +1,16 @@
1
+ import type * as Pulse from "../index.js";
2
+ /**
3
+ * Ordered step definitions. Key order determines execution order. Use `extract` for single-file or `batch_extract` for multi-file pipelines — they are mutually exclusive. Each step accepts the same configuration as its standalone endpoint.
4
+ */
5
+ export interface PipelineSteps {
6
+ /** Single-document extraction step. Same options as `POST /extract`. */
7
+ extract?: Pulse.ExtractOptions;
8
+ /** Multi-document parallel extraction step. Provide `file_urls` at the top level and optional `workers` here. */
9
+ batch_extract?: Pulse.PipelineStepBatchExtractConfig;
10
+ /** Structured data extraction step. Same config as `schema_config` in `POST /schema`. Requires `extract` or `batch_extract` before it. */
11
+ schema?: Pulse.SchemaConfig;
12
+ /** Topic splitting step. Same config as `split_config` in `POST /split`. Requires `extract` or `batch_extract` before it. */
13
+ split?: Pulse.SplitConfig;
14
+ /** Table extraction step. Same config as `tables_config` in `POST /tables`. Requires `extract` before it. This is a terminal step — no further steps can follow. */
15
+ tables?: Pulse.TablesConfig;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Result from the tables step in a pipeline.
3
+ */
4
+ export interface PipelineTablesResult {
5
+ /** Persisted tables version ID. */
6
+ tables_id?: string;
7
+ /** The extracted tables data. */
8
+ tables_output?: PipelineTablesResult.TablesOutput;
9
+ /** Step execution time in seconds. */
10
+ latency?: number;
11
+ /** Accepts any additional properties */
12
+ [key: string]: any;
13
+ }
14
+ export declare namespace PipelineTablesResult {
15
+ /**
16
+ * The extracted tables data.
17
+ */
18
+ interface TablesOutput {
19
+ /** Array of extracted table objects. Each table includes its content, citations, and whether it was derived from a chart. */
20
+ tables?: TablesOutput.Tables.Item[];
21
+ }
22
+ namespace TablesOutput {
23
+ type Tables = Tables.Item[];
24
+ namespace Tables {
25
+ interface Item {
26
+ /** The table content. When `table_format` is `html` (default), this is an HTML string. When `json`, this is an object with `headers` and `rows`. */
27
+ table_content?: unknown;
28
+ citations?: string[];
29
+ from_chart?: boolean;
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,4 +13,6 @@ export interface SingleSchemaResponse {
13
13
  extraction_ids?: string[];
14
14
  /** API path to download the filled Excel template (e.g. `/schema/{schema_id}/excel`). Requires the same API key authentication. Only present when `excel_template` was provided in the request. */
15
15
  excel_output_url?: string;
16
+ /** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
17
+ credits_used?: number | null;
16
18
  }
@@ -2,9 +2,4 @@ import type * as Pulse from "../index.js";
2
2
  /**
3
3
  * Result of document splitting with page assignments.
4
4
  */
5
- export interface SplitResponse {
6
- /** Unique identifier for this split result. Use this ID with the `/schema` endpoint (split mode) to apply schemas to specific page groups. */
7
- split_id: string;
8
- /** Page assignments per topic. */
9
- split_output: Pulse.SplitOutput;
10
- }
5
+ export type SplitResponse = Pulse.SplitResultCore;
@@ -0,0 +1,12 @@
1
+ import type * as Pulse from "../index.js";
2
+ /**
3
+ * Core split result fields shared by the synchronous `/split` endpoint and the pipeline split step.
4
+ */
5
+ export interface SplitResultCore {
6
+ /** Unique identifier for this split result. Use this ID with the `/schema` endpoint (split mode) to apply schemas to specific page groups. */
7
+ split_id?: string;
8
+ /** Page assignments per topic. */
9
+ split_output?: Pulse.SplitOutput;
10
+ /** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
11
+ credits_used?: number | null;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,4 +13,6 @@ export interface SplitSchemaResponse {
13
13
  input_schemas?: Record<string, Record<string, unknown>>;
14
14
  /** Per-topic errors if any topics failed to process. Keys are topic names, values are error messages. */
15
15
  errors?: Record<string, string>;
16
+ /** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
17
+ credits_used?: number | null;
16
18
  }
@@ -4,13 +4,16 @@
4
4
  export interface TablesConfig {
5
5
  /** When true, adjacent tables that appear to be continuations of each other are merged into a single table. */
6
6
  merge?: boolean;
7
- /** Output format for table content. Currently only `html` is supported. */
7
+ /** Output format for table content. `html` returns an HTML `<table>` string. `json` returns a structured object with `headers` (array of column names) and `rows` (array of objects keyed by header name). */
8
8
  table_format?: TablesConfig.TableFormat;
9
+ /** Convert figures and charts into tables using LLM processing. Resulting tables have `from_chart: true` in the response. */
10
+ charts_to_tables?: boolean;
9
11
  }
10
12
  export declare namespace TablesConfig {
11
- /** Output format for table content. Currently only `html` is supported. */
13
+ /** Output format for table content. `html` returns an HTML `<table>` string. `json` returns a structured object with `headers` (array of column names) and `rows` (array of objects keyed by header name). */
12
14
  const TableFormat: {
13
15
  readonly Html: "html";
16
+ readonly Json: "json";
14
17
  };
15
18
  type TableFormat = (typeof TableFormat)[keyof typeof TableFormat];
16
19
  }
@@ -4,8 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.TablesConfig = void 0;
5
5
  var TablesConfig;
6
6
  (function (TablesConfig) {
7
- /** Output format for table content. Currently only `html` is supported. */
7
+ /** Output format for table content. `html` returns an HTML `<table>` string. `json` returns a structured object with `headers` (array of column names) and `rows` (array of objects keyed by header name). */
8
8
  TablesConfig.TableFormat = {
9
9
  Html: "html",
10
+ Json: "json",
10
11
  };
11
12
  })(TablesConfig || (exports.TablesConfig = TablesConfig = {}));