pulse-ts-sdk 1.0.9 → 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 (153) hide show
  1. package/README.md +22 -22
  2. package/dist/cjs/BaseClient.js +1 -0
  3. package/dist/cjs/Client.d.ts +6 -0
  4. package/dist/cjs/Client.js +66 -32
  5. package/dist/cjs/api/client/requests/ExtractAsyncRequest.d.ts +4 -3
  6. package/dist/cjs/api/client/requests/ExtractAsyncRequest.js +3 -2
  7. package/dist/cjs/api/client/requests/ExtractRequest.d.ts +4 -3
  8. package/dist/cjs/api/client/requests/ExtractRequest.js +3 -2
  9. package/dist/cjs/api/resources/batch/client/Client.js +32 -16
  10. package/dist/cjs/api/resources/form/client/Client.d.ts +148 -0
  11. package/dist/cjs/api/resources/form/client/Client.js +350 -0
  12. package/dist/cjs/api/resources/form/client/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/form/client/index.js +17 -0
  14. package/dist/cjs/api/resources/form/client/requests/FormClearJsonInput.d.ts +19 -0
  15. package/dist/cjs/api/resources/form/client/requests/FormClearJsonInput.js +3 -0
  16. package/dist/cjs/api/resources/form/client/requests/FormDetectJsonInput.d.ts +14 -0
  17. package/dist/cjs/api/resources/form/client/requests/FormDetectJsonInput.js +3 -0
  18. package/dist/cjs/api/resources/form/client/requests/FormFillJsonInput.d.ts +21 -0
  19. package/dist/cjs/api/resources/form/client/requests/FormFillJsonInput.js +3 -0
  20. package/dist/cjs/api/resources/form/client/requests/index.d.ts +3 -0
  21. package/dist/cjs/api/resources/form/client/requests/index.js +2 -0
  22. package/dist/cjs/api/resources/form/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/form/index.js +17 -0
  24. package/dist/cjs/api/resources/index.d.ts +4 -0
  25. package/dist/cjs/api/resources/index.js +5 -1
  26. package/dist/cjs/api/resources/jobs/client/Client.js +16 -8
  27. package/dist/cjs/api/resources/largeResults/client/Client.d.ts +11 -5
  28. package/dist/cjs/api/resources/largeResults/client/Client.js +19 -9
  29. package/dist/cjs/api/resources/pipeline/client/Client.d.ts +4 -2
  30. package/dist/cjs/api/resources/pipeline/client/Client.js +12 -6
  31. package/dist/cjs/api/resources/results/client/Client.d.ts +27 -0
  32. package/dist/cjs/api/resources/results/client/Client.js +116 -0
  33. package/dist/cjs/api/resources/results/client/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/results/client/index.js +17 -0
  35. package/dist/cjs/api/resources/results/client/requests/GetPdfResultsRequest.d.ts +10 -0
  36. package/dist/cjs/api/resources/results/client/requests/GetPdfResultsRequest.js +3 -0
  37. package/dist/cjs/api/resources/results/client/requests/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/results/client/requests/index.js +2 -0
  39. package/dist/cjs/api/resources/results/index.d.ts +1 -0
  40. package/dist/cjs/api/resources/results/index.js +17 -0
  41. package/dist/cjs/api/resources/webhooks/client/Client.js +8 -4
  42. package/dist/cjs/api/types/ExtractInput.d.ts +4 -3
  43. package/dist/cjs/api/types/ExtractInput.js +3 -2
  44. package/dist/cjs/api/types/ExtractOptions.d.ts +4 -3
  45. package/dist/cjs/api/types/ExtractOptions.js +3 -2
  46. package/dist/cjs/api/types/FormCell.d.ts +40 -0
  47. package/dist/cjs/api/types/FormCell.js +13 -0
  48. package/dist/cjs/api/types/FormCheckboxDetail.d.ts +11 -0
  49. package/dist/cjs/api/types/FormCheckboxDetail.js +3 -0
  50. package/dist/cjs/api/types/FormClearMultipartInput.d.ts +21 -0
  51. package/dist/cjs/api/types/FormClearMultipartInput.js +3 -0
  52. package/dist/cjs/api/types/FormDetectMultipartInput.d.ts +16 -0
  53. package/dist/cjs/api/types/FormDetectMultipartInput.js +3 -0
  54. package/dist/cjs/api/types/FormFillMultipartInput.d.ts +21 -0
  55. package/dist/cjs/api/types/FormFillMultipartInput.js +3 -0
  56. package/dist/cjs/api/types/FormFillSharedOptions.d.ts +12 -0
  57. package/dist/cjs/api/types/FormFillSharedOptions.js +3 -0
  58. package/dist/cjs/api/types/FormPlanInfo.d.ts +11 -0
  59. package/dist/cjs/api/types/FormPlanInfo.js +3 -0
  60. package/dist/cjs/api/types/FormResult.d.ts +24 -0
  61. package/dist/cjs/api/types/FormResult.js +3 -0
  62. package/dist/cjs/api/types/FormSharedOptions.d.ts +9 -0
  63. package/dist/cjs/api/types/FormSharedOptions.js +3 -0
  64. package/dist/cjs/api/types/PipelineResults.d.ts +2 -0
  65. package/dist/cjs/api/types/PipelineStepBatchExtractConfig.d.ts +4 -3
  66. package/dist/cjs/api/types/PipelineStepBatchExtractConfig.js +3 -2
  67. package/dist/cjs/api/types/PipelineSteps.d.ts +2 -0
  68. package/dist/cjs/api/types/PipelineTablesResult.d.ts +33 -0
  69. package/dist/cjs/api/types/PipelineTablesResult.js +3 -0
  70. package/dist/cjs/api/types/TablesConfig.d.ts +3 -2
  71. package/dist/cjs/api/types/TablesConfig.js +2 -1
  72. package/dist/cjs/api/types/TablesResponse.d.ts +2 -2
  73. package/dist/cjs/api/types/index.d.ts +10 -0
  74. package/dist/cjs/api/types/index.js +10 -0
  75. package/dist/cjs/version.d.ts +1 -1
  76. package/dist/cjs/version.js +1 -1
  77. package/dist/esm/BaseClient.mjs +1 -0
  78. package/dist/esm/Client.d.mts +6 -0
  79. package/dist/esm/Client.mjs +58 -24
  80. package/dist/esm/api/client/requests/ExtractAsyncRequest.d.mts +4 -3
  81. package/dist/esm/api/client/requests/ExtractAsyncRequest.mjs +3 -2
  82. package/dist/esm/api/client/requests/ExtractRequest.d.mts +4 -3
  83. package/dist/esm/api/client/requests/ExtractRequest.mjs +3 -2
  84. package/dist/esm/api/resources/batch/client/Client.mjs +32 -16
  85. package/dist/esm/api/resources/form/client/Client.d.mts +148 -0
  86. package/dist/esm/api/resources/form/client/Client.mjs +313 -0
  87. package/dist/esm/api/resources/form/client/index.d.mts +1 -0
  88. package/dist/esm/api/resources/form/client/index.mjs +1 -0
  89. package/dist/esm/api/resources/form/client/requests/FormClearJsonInput.d.mts +19 -0
  90. package/dist/esm/api/resources/form/client/requests/FormClearJsonInput.mjs +2 -0
  91. package/dist/esm/api/resources/form/client/requests/FormDetectJsonInput.d.mts +14 -0
  92. package/dist/esm/api/resources/form/client/requests/FormDetectJsonInput.mjs +2 -0
  93. package/dist/esm/api/resources/form/client/requests/FormFillJsonInput.d.mts +21 -0
  94. package/dist/esm/api/resources/form/client/requests/FormFillJsonInput.mjs +2 -0
  95. package/dist/esm/api/resources/form/client/requests/index.d.mts +3 -0
  96. package/dist/esm/api/resources/form/client/requests/index.mjs +1 -0
  97. package/dist/esm/api/resources/form/index.d.mts +1 -0
  98. package/dist/esm/api/resources/form/index.mjs +1 -0
  99. package/dist/esm/api/resources/index.d.mts +4 -0
  100. package/dist/esm/api/resources/index.mjs +4 -0
  101. package/dist/esm/api/resources/jobs/client/Client.mjs +16 -8
  102. package/dist/esm/api/resources/largeResults/client/Client.d.mts +11 -5
  103. package/dist/esm/api/resources/largeResults/client/Client.mjs +19 -9
  104. package/dist/esm/api/resources/pipeline/client/Client.d.mts +4 -2
  105. package/dist/esm/api/resources/pipeline/client/Client.mjs +12 -6
  106. package/dist/esm/api/resources/results/client/Client.d.mts +27 -0
  107. package/dist/esm/api/resources/results/client/Client.mjs +79 -0
  108. package/dist/esm/api/resources/results/client/index.d.mts +1 -0
  109. package/dist/esm/api/resources/results/client/index.mjs +1 -0
  110. package/dist/esm/api/resources/results/client/requests/GetPdfResultsRequest.d.mts +10 -0
  111. package/dist/esm/api/resources/results/client/requests/GetPdfResultsRequest.mjs +2 -0
  112. package/dist/esm/api/resources/results/client/requests/index.d.mts +1 -0
  113. package/dist/esm/api/resources/results/client/requests/index.mjs +1 -0
  114. package/dist/esm/api/resources/results/index.d.mts +1 -0
  115. package/dist/esm/api/resources/results/index.mjs +1 -0
  116. package/dist/esm/api/resources/webhooks/client/Client.mjs +8 -4
  117. package/dist/esm/api/types/ExtractInput.d.mts +4 -3
  118. package/dist/esm/api/types/ExtractInput.mjs +3 -2
  119. package/dist/esm/api/types/ExtractOptions.d.mts +4 -3
  120. package/dist/esm/api/types/ExtractOptions.mjs +3 -2
  121. package/dist/esm/api/types/FormCell.d.mts +40 -0
  122. package/dist/esm/api/types/FormCell.mjs +10 -0
  123. package/dist/esm/api/types/FormCheckboxDetail.d.mts +11 -0
  124. package/dist/esm/api/types/FormCheckboxDetail.mjs +2 -0
  125. package/dist/esm/api/types/FormClearMultipartInput.d.mts +21 -0
  126. package/dist/esm/api/types/FormClearMultipartInput.mjs +2 -0
  127. package/dist/esm/api/types/FormDetectMultipartInput.d.mts +16 -0
  128. package/dist/esm/api/types/FormDetectMultipartInput.mjs +2 -0
  129. package/dist/esm/api/types/FormFillMultipartInput.d.mts +21 -0
  130. package/dist/esm/api/types/FormFillMultipartInput.mjs +2 -0
  131. package/dist/esm/api/types/FormFillSharedOptions.d.mts +12 -0
  132. package/dist/esm/api/types/FormFillSharedOptions.mjs +2 -0
  133. package/dist/esm/api/types/FormPlanInfo.d.mts +11 -0
  134. package/dist/esm/api/types/FormPlanInfo.mjs +2 -0
  135. package/dist/esm/api/types/FormResult.d.mts +24 -0
  136. package/dist/esm/api/types/FormResult.mjs +2 -0
  137. package/dist/esm/api/types/FormSharedOptions.d.mts +9 -0
  138. package/dist/esm/api/types/FormSharedOptions.mjs +2 -0
  139. package/dist/esm/api/types/PipelineResults.d.mts +2 -0
  140. package/dist/esm/api/types/PipelineStepBatchExtractConfig.d.mts +4 -3
  141. package/dist/esm/api/types/PipelineStepBatchExtractConfig.mjs +3 -2
  142. package/dist/esm/api/types/PipelineSteps.d.mts +2 -0
  143. package/dist/esm/api/types/PipelineTablesResult.d.mts +33 -0
  144. package/dist/esm/api/types/PipelineTablesResult.mjs +2 -0
  145. package/dist/esm/api/types/TablesConfig.d.mts +3 -2
  146. package/dist/esm/api/types/TablesConfig.mjs +2 -1
  147. package/dist/esm/api/types/TablesResponse.d.mts +2 -2
  148. package/dist/esm/api/types/index.d.mts +10 -0
  149. package/dist/esm/api/types/index.mjs +10 -0
  150. package/dist/esm/version.d.mts +1 -1
  151. package/dist/esm/version.mjs +1 -1
  152. package/package.json +1 -1
  153. package/reference.md +359 -7
package/README.md CHANGED
@@ -55,7 +55,7 @@ following namespace:
55
55
  ```typescript
56
56
  import { Pulse } from "pulse-ts-sdk";
57
57
 
58
- const request: Pulse.BatchExtractInput = {
58
+ const request: Pulse.FormDetectJsonInput = {
59
59
  ...
60
60
  };
61
61
  ```
@@ -126,7 +126,7 @@ For example, `fs.ReadStream` has a `path` property which the SDK uses to retriev
126
126
  You can consume binary data from endpoints using the `BinaryResponse` type which lets you choose how to consume the data:
127
127
 
128
128
  ```typescript
129
- const response = await client.downloadSchemaExcel(...);
129
+ const response = await client.results.getPdf(...);
130
130
  const stream: ReadableStream<Uint8Array> = response.stream();
131
131
  // const arrayBuffer: ArrayBuffer = await response.arrayBuffer();
132
132
  // const blob: Blob = response.blob();
@@ -151,7 +151,7 @@ import { createWriteStream } from 'fs';
151
151
  import { Readable } from 'stream';
152
152
  import { pipeline } from 'stream/promises';
153
153
 
154
- const response = await client.downloadSchemaExcel(...);
154
+ const response = await client.results.getPdf(...);
155
155
 
156
156
  const stream = response.stream();
157
157
  const nodeStream = Readable.fromWeb(stream);
@@ -170,7 +170,7 @@ await pipeline(nodeStream, writeStream);
170
170
  ```ts
171
171
  import { writeFile } from 'fs/promises';
172
172
 
173
- const response = await client.downloadSchemaExcel(...);
173
+ const response = await client.results.getPdf(...);
174
174
 
175
175
  const arrayBuffer = await response.arrayBuffer();
176
176
  await writeFile('path/to/file', Buffer.from(arrayBuffer));
@@ -186,7 +186,7 @@ await writeFile('path/to/file', Buffer.from(arrayBuffer));
186
186
  ```ts
187
187
  import { writeFile } from 'fs/promises';
188
188
 
189
- const response = await client.downloadSchemaExcel(...);
189
+ const response = await client.results.getPdf(...);
190
190
 
191
191
  const blob = await response.blob();
192
192
  const arrayBuffer = await blob.arrayBuffer();
@@ -203,7 +203,7 @@ await writeFile('output.bin', Buffer.from(arrayBuffer));
203
203
  ```ts
204
204
  import { writeFile } from 'fs/promises';
205
205
 
206
- const response = await client.downloadSchemaExcel(...);
206
+ const response = await client.results.getPdf(...);
207
207
 
208
208
  const bytes = await response.bytes();
209
209
  await writeFile('path/to/file', bytes);
@@ -224,7 +224,7 @@ await writeFile('path/to/file', bytes);
224
224
  <summary>ReadableStream (most-efficient)</summary>
225
225
 
226
226
  ```ts
227
- const response = await client.downloadSchemaExcel(...);
227
+ const response = await client.results.getPdf(...);
228
228
 
229
229
  const stream = response.stream();
230
230
  await Bun.write('path/to/file', stream);
@@ -238,7 +238,7 @@ await Bun.write('path/to/file', stream);
238
238
  <summary>ArrayBuffer</summary>
239
239
 
240
240
  ```ts
241
- const response = await client.downloadSchemaExcel(...);
241
+ const response = await client.results.getPdf(...);
242
242
 
243
243
  const arrayBuffer = await response.arrayBuffer();
244
244
  await Bun.write('path/to/file', arrayBuffer);
@@ -252,7 +252,7 @@ await Bun.write('path/to/file', arrayBuffer);
252
252
  <summary>Blob</summary>
253
253
 
254
254
  ```ts
255
- const response = await client.downloadSchemaExcel(...);
255
+ const response = await client.results.getPdf(...);
256
256
 
257
257
  const blob = await response.blob();
258
258
  await Bun.write('path/to/file', blob);
@@ -266,7 +266,7 @@ await Bun.write('path/to/file', blob);
266
266
  <summary>Bytes (UIntArray8)</summary>
267
267
 
268
268
  ```ts
269
- const response = await client.downloadSchemaExcel(...);
269
+ const response = await client.results.getPdf(...);
270
270
 
271
271
  const bytes = await response.bytes();
272
272
  await Bun.write('path/to/file', bytes);
@@ -287,7 +287,7 @@ await Bun.write('path/to/file', bytes);
287
287
  <summary>ReadableStream (most-efficient)</summary>
288
288
 
289
289
  ```ts
290
- const response = await client.downloadSchemaExcel(...);
290
+ const response = await client.results.getPdf(...);
291
291
 
292
292
  const stream = response.stream();
293
293
  const file = await Deno.open('path/to/file', { write: true, create: true });
@@ -302,7 +302,7 @@ await stream.pipeTo(file.writable);
302
302
  <summary>ArrayBuffer</summary>
303
303
 
304
304
  ```ts
305
- const response = await client.downloadSchemaExcel(...);
305
+ const response = await client.results.getPdf(...);
306
306
 
307
307
  const arrayBuffer = await response.arrayBuffer();
308
308
  await Deno.writeFile('path/to/file', new Uint8Array(arrayBuffer));
@@ -316,7 +316,7 @@ await Deno.writeFile('path/to/file', new Uint8Array(arrayBuffer));
316
316
  <summary>Blob</summary>
317
317
 
318
318
  ```ts
319
- const response = await client.downloadSchemaExcel(...);
319
+ const response = await client.results.getPdf(...);
320
320
 
321
321
  const blob = await response.blob();
322
322
  const arrayBuffer = await blob.arrayBuffer();
@@ -331,7 +331,7 @@ await Deno.writeFile('path/to/file', new Uint8Array(arrayBuffer));
331
331
  <summary>Bytes (UIntArray8)</summary>
332
332
 
333
333
  ```ts
334
- const response = await client.downloadSchemaExcel(...);
334
+ const response = await client.results.getPdf(...);
335
335
 
336
336
  const bytes = await response.bytes();
337
337
  await Deno.writeFile('path/to/file', bytes);
@@ -352,7 +352,7 @@ await Deno.writeFile('path/to/file', bytes);
352
352
  <summary>Blob (most-efficient)</summary>
353
353
 
354
354
  ```ts
355
- const response = await client.downloadSchemaExcel(...);
355
+ const response = await client.results.getPdf(...);
356
356
 
357
357
  const blob = await response.blob();
358
358
  const url = URL.createObjectURL(blob);
@@ -373,7 +373,7 @@ URL.revokeObjectURL(url);
373
373
  <summary>ReadableStream</summary>
374
374
 
375
375
  ```ts
376
- const response = await client.downloadSchemaExcel(...);
376
+ const response = await client.results.getPdf(...);
377
377
 
378
378
  const stream = response.stream();
379
379
  const reader = stream.getReader();
@@ -404,7 +404,7 @@ URL.revokeObjectURL(url);
404
404
  <summary>ArrayBuffer</summary>
405
405
 
406
406
  ```ts
407
- const response = await client.downloadSchemaExcel(...);
407
+ const response = await client.results.getPdf(...);
408
408
 
409
409
  const arrayBuffer = await response.arrayBuffer();
410
410
  const blob = new Blob([arrayBuffer]);
@@ -426,7 +426,7 @@ URL.revokeObjectURL(url);
426
426
  <summary>Bytes (UIntArray8)</summary>
427
427
 
428
428
  ```ts
429
- const response = await client.downloadSchemaExcel(...);
429
+ const response = await client.results.getPdf(...);
430
430
 
431
431
  const bytes = await response.bytes();
432
432
  const blob = new Blob([bytes]);
@@ -457,7 +457,7 @@ URL.revokeObjectURL(url);
457
457
  <summary>ReadableStream</summary>
458
458
 
459
459
  ```ts
460
- const response = await client.downloadSchemaExcel(...);
460
+ const response = await client.results.getPdf(...);
461
461
 
462
462
  const stream = response.stream();
463
463
  const text = await new Response(stream).text();
@@ -471,7 +471,7 @@ const text = await new Response(stream).text();
471
471
  <summary>ArrayBuffer</summary>
472
472
 
473
473
  ```ts
474
- const response = await client.downloadSchemaExcel(...);
474
+ const response = await client.results.getPdf(...);
475
475
 
476
476
  const arrayBuffer = await response.arrayBuffer();
477
477
  const text = new TextDecoder().decode(arrayBuffer);
@@ -485,7 +485,7 @@ const text = new TextDecoder().decode(arrayBuffer);
485
485
  <summary>Blob</summary>
486
486
 
487
487
  ```ts
488
- const response = await client.downloadSchemaExcel(...);
488
+ const response = await client.results.getPdf(...);
489
489
 
490
490
  const blob = await response.blob();
491
491
  const text = await blob.text();
@@ -499,7 +499,7 @@ const text = await blob.text();
499
499
  <summary>Bytes (UIntArray8)</summary>
500
500
 
501
501
  ```ts
502
- const response = await client.downloadSchemaExcel(...);
502
+ const response = await client.results.getPdf(...);
503
503
 
504
504
  const bytes = await response.bytes();
505
505
  const text = new TextDecoder().decode(bytes);
@@ -47,6 +47,7 @@ function normalizeClientOptions(options) {
47
47
  "User-Agent": "pulse-ts-sdk/1.0.9",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
+ "X-Pulse-Source": "sdk-typescript",
50
51
  }, options === null || options === void 0 ? void 0 : options.headers);
51
52
  return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
52
53
  }
@@ -1,8 +1,10 @@
1
1
  import * as Pulse from "./api/index.js";
2
2
  import { BatchClient } from "./api/resources/batch/client/Client.js";
3
+ import { FormClient } from "./api/resources/form/client/Client.js";
3
4
  import { JobsClient } from "./api/resources/jobs/client/Client.js";
4
5
  import { LargeResultsClient } from "./api/resources/largeResults/client/Client.js";
5
6
  import { PipelineClient } from "./api/resources/pipeline/client/Client.js";
7
+ import { ResultsClient } from "./api/resources/results/client/Client.js";
6
8
  import { WebhooksClient } from "./api/resources/webhooks/client/Client.js";
7
9
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
8
10
  import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
@@ -14,15 +16,19 @@ export declare namespace PulseClient {
14
16
  }
15
17
  export declare class PulseClient {
16
18
  protected readonly _options: NormalizedClientOptionsWithAuth<PulseClient.Options>;
19
+ protected _form: FormClient | undefined;
17
20
  protected _batch: BatchClient | undefined;
18
21
  protected _pipeline: PipelineClient | undefined;
19
22
  protected _jobs: JobsClient | undefined;
23
+ protected _results: ResultsClient | undefined;
20
24
  protected _largeResults: LargeResultsClient | undefined;
21
25
  protected _webhooks: WebhooksClient | undefined;
22
26
  constructor(options?: PulseClient.Options);
27
+ get form(): FormClient;
23
28
  get batch(): BatchClient;
24
29
  get pipeline(): PipelineClient;
25
30
  get jobs(): JobsClient;
31
+ get results(): ResultsClient;
26
32
  get largeResults(): LargeResultsClient;
27
33
  get webhooks(): WebhooksClient;
28
34
  /**
@@ -46,10 +46,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.PulseClient = void 0;
47
47
  const Pulse = __importStar(require("./api/index.js"));
48
48
  const Client_js_1 = require("./api/resources/batch/client/Client.js");
49
- const Client_js_2 = require("./api/resources/jobs/client/Client.js");
50
- const Client_js_3 = require("./api/resources/largeResults/client/Client.js");
51
- const Client_js_4 = require("./api/resources/pipeline/client/Client.js");
52
- const Client_js_5 = require("./api/resources/webhooks/client/Client.js");
49
+ const Client_js_2 = require("./api/resources/form/client/Client.js");
50
+ const Client_js_3 = require("./api/resources/jobs/client/Client.js");
51
+ const Client_js_4 = require("./api/resources/largeResults/client/Client.js");
52
+ const Client_js_5 = require("./api/resources/pipeline/client/Client.js");
53
+ const Client_js_6 = require("./api/resources/results/client/Client.js");
54
+ const Client_js_7 = require("./api/resources/webhooks/client/Client.js");
53
55
  const BaseClient_js_1 = require("./BaseClient.js");
54
56
  const headers_js_1 = require("./core/headers.js");
55
57
  const core = __importStar(require("./core/index.js"));
@@ -61,25 +63,33 @@ class PulseClient {
61
63
  constructor(options = {}) {
62
64
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
63
65
  }
66
+ get form() {
67
+ var _a;
68
+ return ((_a = this._form) !== null && _a !== void 0 ? _a : (this._form = new Client_js_2.FormClient(this._options)));
69
+ }
64
70
  get batch() {
65
71
  var _a;
66
72
  return ((_a = this._batch) !== null && _a !== void 0 ? _a : (this._batch = new Client_js_1.BatchClient(this._options)));
67
73
  }
68
74
  get pipeline() {
69
75
  var _a;
70
- return ((_a = this._pipeline) !== null && _a !== void 0 ? _a : (this._pipeline = new Client_js_4.PipelineClient(this._options)));
76
+ return ((_a = this._pipeline) !== null && _a !== void 0 ? _a : (this._pipeline = new Client_js_5.PipelineClient(this._options)));
71
77
  }
72
78
  get jobs() {
73
79
  var _a;
74
- return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_js_2.JobsClient(this._options)));
80
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_js_3.JobsClient(this._options)));
81
+ }
82
+ get results() {
83
+ var _a;
84
+ return ((_a = this._results) !== null && _a !== void 0 ? _a : (this._results = new Client_js_6.ResultsClient(this._options)));
75
85
  }
76
86
  get largeResults() {
77
87
  var _a;
78
- return ((_a = this._largeResults) !== null && _a !== void 0 ? _a : (this._largeResults = new Client_js_3.LargeResultsClient(this._options)));
88
+ return ((_a = this._largeResults) !== null && _a !== void 0 ? _a : (this._largeResults = new Client_js_4.LargeResultsClient(this._options)));
79
89
  }
80
90
  get webhooks() {
81
91
  var _a;
82
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_5.WebhooksClient(this._options)));
92
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_7.WebhooksClient(this._options)));
83
93
  }
84
94
  /**
85
95
  * The primary endpoint for the Pulse API. Parses uploaded documents or remote
@@ -108,7 +118,7 @@ class PulseClient {
108
118
  }
109
119
  __extract(request, requestOptions) {
110
120
  return __awaiter(this, void 0, void 0, function* () {
111
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
121
+ var _a, _b, _c, _d, _e, _f, _g, _h;
112
122
  const _request = yield core.newFormData();
113
123
  if (request.file != null) {
114
124
  yield _request.appendFile("file", request.file);
@@ -181,10 +191,14 @@ class PulseClient {
181
191
  requestType: "file",
182
192
  duplex: _maybeEncodedRequest.duplex,
183
193
  body: _maybeEncodedRequest.body,
184
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
185
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
194
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
195
+ ? requestOptions.timeoutInSeconds * 1000
196
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
197
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
198
+ : undefined,
199
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
186
200
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
187
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
201
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
188
202
  logging: this._options.logging,
189
203
  });
190
204
  if (_response.ok) {
@@ -232,7 +246,7 @@ class PulseClient {
232
246
  }
233
247
  __extractAsync(request, requestOptions) {
234
248
  return __awaiter(this, void 0, void 0, function* () {
235
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
249
+ var _a, _b, _c, _d, _e, _f, _g, _h;
236
250
  const _request = yield core.newFormData();
237
251
  if (request.file != null) {
238
252
  yield _request.appendFile("file", request.file);
@@ -305,10 +319,14 @@ class PulseClient {
305
319
  requestType: "file",
306
320
  duplex: _maybeEncodedRequest.duplex,
307
321
  body: _maybeEncodedRequest.body,
308
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
309
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
322
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
323
+ ? requestOptions.timeoutInSeconds * 1000
324
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
325
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
326
+ : undefined,
327
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
310
328
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
311
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
329
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
312
330
  logging: this._options.logging,
313
331
  });
314
332
  if (_response.ok) {
@@ -366,7 +384,7 @@ class PulseClient {
366
384
  }
367
385
  __split(request, requestOptions) {
368
386
  return __awaiter(this, void 0, void 0, function* () {
369
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
387
+ var _a, _b, _c, _d, _e, _f, _g, _h;
370
388
  const _authRequest = yield this._options.authProvider.getAuthRequest();
371
389
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
372
390
  const _response = yield core.fetcher({
@@ -377,10 +395,14 @@ class PulseClient {
377
395
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
378
396
  requestType: "json",
379
397
  body: request,
380
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
381
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
398
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
399
+ ? requestOptions.timeoutInSeconds * 1000
400
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
401
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
402
+ : undefined,
403
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
382
404
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
383
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
405
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
384
406
  logging: this._options.logging,
385
407
  });
386
408
  if (_response.ok) {
@@ -454,7 +476,7 @@ class PulseClient {
454
476
  }
455
477
  __schema() {
456
478
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
457
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
479
+ var _a, _b, _c, _d, _e, _f, _g, _h;
458
480
  const _authRequest = yield this._options.authProvider.getAuthRequest();
459
481
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
460
482
  const _response = yield core.fetcher({
@@ -465,10 +487,14 @@ class PulseClient {
465
487
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
466
488
  requestType: "json",
467
489
  body: request,
468
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
469
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
490
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
491
+ ? requestOptions.timeoutInSeconds * 1000
492
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
493
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
494
+ : undefined,
495
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
470
496
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
471
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
497
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
472
498
  logging: this._options.logging,
473
499
  });
474
500
  if (_response.ok) {
@@ -510,7 +536,7 @@ class PulseClient {
510
536
  }
511
537
  __downloadSchemaExcel(request, requestOptions) {
512
538
  return __awaiter(this, void 0, void 0, function* () {
513
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
539
+ var _a, _b, _c, _d, _e, _f, _g, _h;
514
540
  const { schemaId } = request;
515
541
  const _authRequest = yield this._options.authProvider.getAuthRequest();
516
542
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -520,10 +546,14 @@ class PulseClient {
520
546
  headers: _headers,
521
547
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
522
548
  responseType: "binary-response",
523
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
524
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
549
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
550
+ ? requestOptions.timeoutInSeconds * 1000
551
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
552
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
553
+ : undefined,
554
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
525
555
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
526
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
556
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
527
557
  logging: this._options.logging,
528
558
  });
529
559
  if (_response.ok) {
@@ -580,7 +610,7 @@ class PulseClient {
580
610
  }
581
611
  __tables(request, requestOptions) {
582
612
  return __awaiter(this, void 0, void 0, function* () {
583
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
613
+ var _a, _b, _c, _d, _e, _f, _g, _h;
584
614
  const _authRequest = yield this._options.authProvider.getAuthRequest();
585
615
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
586
616
  const _response = yield core.fetcher({
@@ -591,10 +621,14 @@ class PulseClient {
591
621
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
592
622
  requestType: "json",
593
623
  body: request,
594
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
595
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
624
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
625
+ ? requestOptions.timeoutInSeconds * 1000
626
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
627
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
628
+ : undefined,
629
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
596
630
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
597
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
631
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
598
632
  logging: this._options.logging,
599
633
  });
600
634
  if (_response.ok) {
@@ -8,7 +8,7 @@ export interface ExtractAsyncRequest {
8
8
  file?: core.file.Uploadable | undefined;
9
9
  /** Public or pre-signed URL that Pulse will download and extract. Required unless file is provided. */
10
10
  fileUrl?: string;
11
- /** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
11
+ /** 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. */
12
12
  model?: ExtractAsyncRequest.Model;
13
13
  /** Page range filter supporting segments such as `1-2` or mixed ranges like `1-2,5`. */
14
14
  pages?: string;
@@ -46,9 +46,10 @@ export interface ExtractAsyncRequest {
46
46
  thinking?: boolean;
47
47
  }
48
48
  export declare namespace ExtractAsyncRequest {
49
- /** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
49
+ /** 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. */
50
50
  const Model: {
51
- readonly EnterprisePreview: "enterprise-preview";
51
+ readonly Default: "default";
52
+ readonly PulseUltra2: "pulse-ultra-2";
52
53
  };
53
54
  type Model = (typeof Model)[keyof typeof Model];
54
55
  /**
@@ -4,9 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ExtractAsyncRequest = void 0;
5
5
  var ExtractAsyncRequest;
6
6
  (function (ExtractAsyncRequest) {
7
- /** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
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
8
  ExtractAsyncRequest.Model = {
9
- EnterprisePreview: "enterprise-preview",
9
+ Default: "default",
10
+ PulseUltra2: "pulse-ultra-2",
10
11
  };
11
12
  let Extensions;
12
13
  (function (Extensions) {
@@ -8,7 +8,7 @@ export interface ExtractRequest {
8
8
  file?: core.file.Uploadable | undefined;
9
9
  /** Public or pre-signed URL that Pulse will download and extract. Required unless file is provided. */
10
10
  fileUrl?: string;
11
- /** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
11
+ /** 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. */
12
12
  model?: ExtractRequest.Model;
13
13
  /** Page range filter supporting segments such as `1-2` or mixed ranges like `1-2,5`. */
14
14
  pages?: string;
@@ -46,9 +46,10 @@ export interface ExtractRequest {
46
46
  thinking?: boolean;
47
47
  }
48
48
  export declare namespace ExtractRequest {
49
- /** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
49
+ /** 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. */
50
50
  const Model: {
51
- readonly EnterprisePreview: "enterprise-preview";
51
+ readonly Default: "default";
52
+ readonly PulseUltra2: "pulse-ultra-2";
52
53
  };
53
54
  type Model = (typeof Model)[keyof typeof Model];
54
55
  /**
@@ -4,9 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ExtractRequest = void 0;
5
5
  var ExtractRequest;
6
6
  (function (ExtractRequest) {
7
- /** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
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
8
  ExtractRequest.Model = {
9
- EnterprisePreview: "enterprise-preview",
9
+ Default: "default",
10
+ PulseUltra2: "pulse-ultra-2",
10
11
  };
11
12
  let Extensions;
12
13
  (function (Extensions) {
@@ -87,7 +87,7 @@ class BatchClient {
87
87
  }
88
88
  __extract(request, requestOptions) {
89
89
  return __awaiter(this, void 0, void 0, function* () {
90
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
90
+ var _a, _b, _c, _d, _e, _f, _g, _h;
91
91
  const _authRequest = yield this._options.authProvider.getAuthRequest();
92
92
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
93
93
  const _response = yield core.fetcher({
@@ -98,10 +98,14 @@ class BatchClient {
98
98
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
99
99
  requestType: "json",
100
100
  body: request,
101
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
102
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
101
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
102
+ ? requestOptions.timeoutInSeconds * 1000
103
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
104
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
105
+ : undefined,
106
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
103
107
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
108
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
105
109
  logging: this._options.logging,
106
110
  });
107
111
  if (_response.ok) {
@@ -163,7 +167,7 @@ class BatchClient {
163
167
  }
164
168
  __schema(request, requestOptions) {
165
169
  return __awaiter(this, void 0, void 0, function* () {
166
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
170
+ var _a, _b, _c, _d, _e, _f, _g, _h;
167
171
  const _authRequest = yield this._options.authProvider.getAuthRequest();
168
172
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
169
173
  const _response = yield core.fetcher({
@@ -174,10 +178,14 @@ class BatchClient {
174
178
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
175
179
  requestType: "json",
176
180
  body: request,
177
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
178
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
181
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
182
+ ? requestOptions.timeoutInSeconds * 1000
183
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
184
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
185
+ : undefined,
186
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
179
187
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
180
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
188
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
181
189
  logging: this._options.logging,
182
190
  });
183
191
  if (_response.ok) {
@@ -237,7 +245,7 @@ class BatchClient {
237
245
  }
238
246
  __tables(request, requestOptions) {
239
247
  return __awaiter(this, void 0, void 0, function* () {
240
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
248
+ var _a, _b, _c, _d, _e, _f, _g, _h;
241
249
  const _authRequest = yield this._options.authProvider.getAuthRequest();
242
250
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
243
251
  const _response = yield core.fetcher({
@@ -248,10 +256,14 @@ class BatchClient {
248
256
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
249
257
  requestType: "json",
250
258
  body: request,
251
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
252
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
259
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
260
+ ? requestOptions.timeoutInSeconds * 1000
261
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
262
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
263
+ : undefined,
264
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
253
265
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
254
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
266
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
255
267
  logging: this._options.logging,
256
268
  });
257
269
  if (_response.ok) {
@@ -316,7 +328,7 @@ class BatchClient {
316
328
  }
317
329
  __split(request, requestOptions) {
318
330
  return __awaiter(this, void 0, void 0, function* () {
319
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
331
+ var _a, _b, _c, _d, _e, _f, _g, _h;
320
332
  const _authRequest = yield this._options.authProvider.getAuthRequest();
321
333
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
322
334
  const _response = yield core.fetcher({
@@ -327,10 +339,14 @@ class BatchClient {
327
339
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
328
340
  requestType: "json",
329
341
  body: request,
330
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
331
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
342
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
343
+ ? requestOptions.timeoutInSeconds * 1000
344
+ : ((_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) != null
345
+ ? ((_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) * 1000
346
+ : undefined,
347
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
332
348
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
333
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
349
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
334
350
  logging: this._options.logging,
335
351
  });
336
352
  if (_response.ok) {