casedev 0.72.0 → 0.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/connectors/connectors.d.mts +2 -2
  4. package/resources/connectors/connectors.d.mts.map +1 -1
  5. package/resources/connectors/connectors.d.ts +2 -2
  6. package/resources/connectors/connectors.d.ts.map +1 -1
  7. package/resources/connectors/connectors.js.map +1 -1
  8. package/resources/connectors/connectors.mjs.map +1 -1
  9. package/resources/connectors/index.d.mts +1 -1
  10. package/resources/connectors/index.d.mts.map +1 -1
  11. package/resources/connectors/index.d.ts +1 -1
  12. package/resources/connectors/index.d.ts.map +1 -1
  13. package/resources/connectors/index.js.map +1 -1
  14. package/resources/connectors/index.mjs.map +1 -1
  15. package/resources/connectors/v1/connections.d.mts +343 -9
  16. package/resources/connectors/v1/connections.d.mts.map +1 -1
  17. package/resources/connectors/v1/connections.d.ts +343 -9
  18. package/resources/connectors/v1/connections.d.ts.map +1 -1
  19. package/resources/connectors/v1/connections.js +124 -1
  20. package/resources/connectors/v1/connections.js.map +1 -1
  21. package/resources/connectors/v1/connections.mjs +124 -1
  22. package/resources/connectors/v1/connections.mjs.map +1 -1
  23. package/resources/connectors/v1/index.d.mts +2 -2
  24. package/resources/connectors/v1/index.d.mts.map +1 -1
  25. package/resources/connectors/v1/index.d.ts +2 -2
  26. package/resources/connectors/v1/index.d.ts.map +1 -1
  27. package/resources/connectors/v1/index.js.map +1 -1
  28. package/resources/connectors/v1/index.mjs.map +1 -1
  29. package/resources/connectors/v1/v1.d.mts +139 -8
  30. package/resources/connectors/v1/v1.d.mts.map +1 -1
  31. package/resources/connectors/v1/v1.d.ts +139 -8
  32. package/resources/connectors/v1/v1.d.ts.map +1 -1
  33. package/resources/connectors/v1/v1.js +29 -5
  34. package/resources/connectors/v1/v1.js.map +1 -1
  35. package/resources/connectors/v1/v1.mjs +29 -5
  36. package/resources/connectors/v1/v1.mjs.map +1 -1
  37. package/resources/linc/v1/sessions.d.mts +31 -8
  38. package/resources/linc/v1/sessions.d.mts.map +1 -1
  39. package/resources/linc/v1/sessions.d.ts +31 -8
  40. package/resources/linc/v1/sessions.d.ts.map +1 -1
  41. package/resources/linc/v1/sessions.js +3 -3
  42. package/resources/linc/v1/sessions.mjs +3 -3
  43. package/resources/ocr/v1.d.mts +2 -1
  44. package/resources/ocr/v1.d.mts.map +1 -1
  45. package/resources/ocr/v1.d.ts +2 -1
  46. package/resources/ocr/v1.d.ts.map +1 -1
  47. package/resources/vault/assemblies.d.mts +313 -0
  48. package/resources/vault/assemblies.d.mts.map +1 -0
  49. package/resources/vault/assemblies.d.ts +313 -0
  50. package/resources/vault/assemblies.d.ts.map +1 -0
  51. package/resources/vault/assemblies.js +70 -0
  52. package/resources/vault/assemblies.js.map +1 -0
  53. package/resources/vault/assemblies.mjs +66 -0
  54. package/resources/vault/assemblies.mjs.map +1 -0
  55. package/resources/vault/index.d.mts +2 -1
  56. package/resources/vault/index.d.mts.map +1 -1
  57. package/resources/vault/index.d.ts +2 -1
  58. package/resources/vault/index.d.ts.map +1 -1
  59. package/resources/vault/index.js +3 -1
  60. package/resources/vault/index.js.map +1 -1
  61. package/resources/vault/index.mjs +1 -0
  62. package/resources/vault/index.mjs.map +1 -1
  63. package/resources/vault/objects.d.mts +50 -6
  64. package/resources/vault/objects.d.mts.map +1 -1
  65. package/resources/vault/objects.d.ts +50 -6
  66. package/resources/vault/objects.d.ts.map +1 -1
  67. package/resources/vault/objects.js +29 -5
  68. package/resources/vault/objects.js.map +1 -1
  69. package/resources/vault/objects.mjs +29 -5
  70. package/resources/vault/objects.mjs.map +1 -1
  71. package/resources/vault/vault.d.mts +11 -2
  72. package/resources/vault/vault.d.mts.map +1 -1
  73. package/resources/vault/vault.d.ts +11 -2
  74. package/resources/vault/vault.d.ts.map +1 -1
  75. package/resources/vault/vault.js +4 -0
  76. package/resources/vault/vault.js.map +1 -1
  77. package/resources/vault/vault.mjs +4 -0
  78. package/resources/vault/vault.mjs.map +1 -1
  79. package/resources/voice/boost-list.d.mts +5 -4
  80. package/resources/voice/boost-list.d.mts.map +1 -1
  81. package/resources/voice/boost-list.d.ts +5 -4
  82. package/resources/voice/boost-list.d.ts.map +1 -1
  83. package/resources/voice/boost-list.js +5 -4
  84. package/resources/voice/boost-list.js.map +1 -1
  85. package/resources/voice/boost-list.mjs +5 -4
  86. package/resources/voice/boost-list.mjs.map +1 -1
  87. package/resources/voice/transcription.d.mts +9 -2
  88. package/resources/voice/transcription.d.mts.map +1 -1
  89. package/resources/voice/transcription.d.ts +9 -2
  90. package/resources/voice/transcription.d.ts.map +1 -1
  91. package/src/resources/connectors/connectors.ts +2 -0
  92. package/src/resources/connectors/index.ts +1 -0
  93. package/src/resources/connectors/v1/connections.ts +534 -9
  94. package/src/resources/connectors/v1/index.ts +11 -0
  95. package/src/resources/connectors/v1/v1.ts +185 -5
  96. package/src/resources/linc/v1/sessions.ts +35 -9
  97. package/src/resources/ocr/v1.ts +2 -1
  98. package/src/resources/vault/assemblies.ts +432 -0
  99. package/src/resources/vault/index.ts +8 -0
  100. package/src/resources/vault/objects.ts +65 -6
  101. package/src/resources/vault/vault.ts +26 -0
  102. package/src/resources/voice/boost-list.ts +5 -4
  103. package/src/resources/voice/transcription.ts +10 -2
  104. package/src/version.ts +1 -1
  105. package/version.d.mts +1 -1
  106. package/version.d.ts +1 -1
  107. package/version.js +1 -1
  108. package/version.mjs +1 -1
@@ -0,0 +1,432 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { buildHeaders } from '../../internal/headers';
6
+ import { RequestOptions } from '../../internal/request-options';
7
+ import { path } from '../../internal/utils/path';
8
+
9
+ /**
10
+ * Vault object management, content access, and document operations
11
+ */
12
+ export class Assemblies extends APIResource {
13
+ /**
14
+ * Starts an asynchronous, deterministic PDF assembly. The manifest selects page
15
+ * ranges from source PDFs in output order, adds an outline, an optional linked
16
+ * contents page and optional Bates numbering, and splits the result into volumes.
17
+ * Optional compression downsamples oversized scans. Each volume becomes a new
18
+ * vault object. Source bookmarks, form fields and page labels are not carried
19
+ * over. Outputs are not indexed automatically. Completion is reported through
20
+ * vault.assembly webhooks.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const assembly = await client.vault.assemblies.create(
25
+ * 'id',
26
+ * {
27
+ * sources: [{ objectId: 'objectId' }],
28
+ * volumes: [
29
+ * {
30
+ * filename: 'filename',
31
+ * pages: [
32
+ * {
33
+ * end: 1,
34
+ * source: 0,
35
+ * start: 1,
36
+ * },
37
+ * ],
38
+ * },
39
+ * ],
40
+ * 'Idempotency-Key': 'x',
41
+ * },
42
+ * );
43
+ * ```
44
+ */
45
+ create(
46
+ id: string,
47
+ params: AssemblyCreateParams,
48
+ options?: RequestOptions,
49
+ ): APIPromise<AssemblyCreateResponse> {
50
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
51
+ return this._client.post(path`/vault/${id}/assemblies`, {
52
+ body,
53
+ ...options,
54
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
55
+ });
56
+ }
57
+
58
+ /**
59
+ * Returns the status of a PDF assembly. Completed volumes include their page
60
+ * count, size, SHA-256 and Bates range.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const assembly = await client.vault.assemblies.retrieve(
65
+ * 'assemblyId',
66
+ * { id: 'id' },
67
+ * );
68
+ * ```
69
+ */
70
+ retrieve(
71
+ assemblyID: string,
72
+ params: AssemblyRetrieveParams,
73
+ options?: RequestOptions,
74
+ ): APIPromise<AssemblyRetrieveResponse> {
75
+ const { id } = params;
76
+ return this._client.get(path`/vault/${id}/assemblies/${assemblyID}`, options);
77
+ }
78
+ }
79
+
80
+ export interface AssemblyCreateResponse {
81
+ id?: string;
82
+
83
+ clientReference?: string;
84
+
85
+ status?: 'queued' | 'processing' | 'completed' | 'failed';
86
+
87
+ volumes?: Array<AssemblyCreateResponse.Volume>;
88
+ }
89
+
90
+ export namespace AssemblyCreateResponse {
91
+ export interface Volume {
92
+ filename?: string;
93
+
94
+ objectId?: string;
95
+ }
96
+ }
97
+
98
+ export interface AssemblyRetrieveResponse {
99
+ id?: string;
100
+
101
+ clientReference?: string;
102
+
103
+ /**
104
+ * What the assembly cost Case.dev, once it is completed or failed. Internal COGS,
105
+ * not a price.
106
+ */
107
+ cogs?: AssemblyRetrieveResponse.Cogs;
108
+
109
+ error?: AssemblyRetrieveResponse.Error;
110
+
111
+ status?: 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled';
112
+
113
+ timings?: AssemblyRetrieveResponse.Timings;
114
+
115
+ vaultId?: string;
116
+
117
+ volumes?: Array<AssemblyRetrieveResponse.Volume>;
118
+ }
119
+
120
+ export namespace AssemblyRetrieveResponse {
121
+ /**
122
+ * What the assembly cost Case.dev, once it is completed or failed. Internal COGS,
123
+ * not a price.
124
+ */
125
+ export interface Cogs {
126
+ computeMicros?: number;
127
+
128
+ cpu?: number;
129
+
130
+ memoryMib?: number;
131
+
132
+ outputBytes?: number;
133
+
134
+ rateVersion?: string;
135
+
136
+ sourceBytes?: number;
137
+
138
+ transferMicros?: number;
139
+
140
+ workerSeconds?: number;
141
+ }
142
+
143
+ export interface Error {
144
+ code?: string;
145
+
146
+ message?: string;
147
+
148
+ retryable?: boolean;
149
+
150
+ sourceIndex?: number;
151
+
152
+ stage?: string;
153
+
154
+ volumeIndex?: number;
155
+ }
156
+
157
+ export interface Timings {
158
+ acceptedAt?: string;
159
+
160
+ completedAt?: string;
161
+
162
+ workerElapsedMs?: number;
163
+
164
+ workerStartedAt?: string;
165
+ }
166
+
167
+ export interface Volume {
168
+ batesEnd?: string | null;
169
+
170
+ batesStart?: string | null;
171
+
172
+ filename?: string;
173
+
174
+ objectId?: string;
175
+
176
+ pageCount?: number;
177
+
178
+ sha256?: string;
179
+
180
+ sizeBytes?: number;
181
+ }
182
+ }
183
+
184
+ export interface AssemblyCreateParams {
185
+ /**
186
+ * Body param: Source PDFs, or ingested office files (spreadsheets, CSV/TSV, Word),
187
+ * which are assembled from the PDF version ingestion saved for them. Page ranges
188
+ * refer to a source by its index in this list.
189
+ */
190
+ sources: Array<AssemblyCreateParams.Source>;
191
+
192
+ /**
193
+ * Body param
194
+ */
195
+ volumes: Array<AssemblyCreateParams.Volume>;
196
+
197
+ /**
198
+ * Header param: Stable key for safely retrying the same assembly request
199
+ */
200
+ 'Idempotency-Key': string;
201
+
202
+ /**
203
+ * Body param: Bates numbering that continues across every volume without its own
204
+ * series. Text must be printable ASCII.
205
+ */
206
+ bates?: AssemblyCreateParams.Bates;
207
+
208
+ /**
209
+ * Body param
210
+ */
211
+ clientReference?: string;
212
+
213
+ /**
214
+ * Body param: Downsamples colour and grayscale scans above maxDpi and re-encodes
215
+ * them. Images already stored as 1-bit, JPEG 2000, indexed or CMYK keep their
216
+ * bytes.
217
+ */
218
+ compression?: AssemblyCreateParams.Compression;
219
+
220
+ /**
221
+ * Body param: Optimize volumes for web viewing
222
+ */
223
+ linearize?: boolean;
224
+
225
+ /**
226
+ * Body param: Put every page upright on a US Letter portrait sheet: landscape
227
+ * pages turn a quarter turn, other sizes are scaled to fit
228
+ */
229
+ pageSize?: 'letter';
230
+ }
231
+
232
+ export namespace AssemblyCreateParams {
233
+ export interface Source {
234
+ objectId: string;
235
+
236
+ rendition?: 'searchable_pdf' | 'original';
237
+ }
238
+
239
+ export interface Volume {
240
+ /**
241
+ * Output filename, ending in .pdf
242
+ */
243
+ filename: string;
244
+
245
+ /**
246
+ * Page ranges in output order. Pages are 1-based and inclusive; repeats are
247
+ * allowed.
248
+ */
249
+ pages: Array<Volume.Page>;
250
+
251
+ /**
252
+ * This volume’s own Bates series, numbered from its own start. Same fields as the
253
+ * top-level bates.
254
+ */
255
+ bates?: Volume.Bates;
256
+
257
+ /**
258
+ * Adds linked contents pages at the front of the volume, built from its outline.
259
+ * Outline pages stay numbered within the manifest pages.
260
+ */
261
+ contents?: Volume.Contents;
262
+
263
+ /**
264
+ * Bookmarks, up to 8 levels deep
265
+ */
266
+ outline?: Array<Volume.Outline>;
267
+
268
+ /**
269
+ * PDF document title
270
+ */
271
+ title?: string;
272
+ }
273
+
274
+ export namespace Volume {
275
+ export interface Page {
276
+ end: number;
277
+
278
+ source: number;
279
+
280
+ start: number;
281
+
282
+ /**
283
+ * false leaves these pages unstamped; they use up no Bates number
284
+ */
285
+ bates?: boolean;
286
+ }
287
+
288
+ /**
289
+ * This volume’s own Bates series, numbered from its own start. Same fields as the
290
+ * top-level bates.
291
+ */
292
+ export interface Bates {
293
+ fontSize?: number;
294
+
295
+ legend?: string;
296
+
297
+ /**
298
+ * Points from the bottom edge to the label
299
+ */
300
+ marginBottom?: number;
301
+
302
+ /**
303
+ * Points from the side edge to the label
304
+ */
305
+ marginSide?: number;
306
+
307
+ padTo?: number;
308
+
309
+ position?: 'bottom_right' | 'bottom_center' | 'bottom_left';
310
+
311
+ prefix?: string;
312
+
313
+ /**
314
+ * Shrinks each stamped page slightly so the label sits in a clear strip below its
315
+ * content
316
+ */
317
+ shrink?: boolean;
318
+
319
+ start?: number;
320
+
321
+ suffix?: string;
322
+ }
323
+
324
+ /**
325
+ * Adds linked contents pages at the front of the volume, built from its outline.
326
+ * Outline pages stay numbered within the manifest pages.
327
+ */
328
+ export interface Contents {
329
+ /**
330
+ * Outline levels listed
331
+ */
332
+ depth?: 1 | 2;
333
+
334
+ title?: string;
335
+ }
336
+
337
+ export interface Outline {
338
+ /**
339
+ * 1-based page within this volume
340
+ */
341
+ page: number;
342
+
343
+ title: string;
344
+
345
+ /**
346
+ * Nested entries, same shape
347
+ */
348
+ children?: Array<unknown>;
349
+ }
350
+ }
351
+
352
+ /**
353
+ * Bates numbering that continues across every volume without its own series. Text
354
+ * must be printable ASCII.
355
+ */
356
+ export interface Bates {
357
+ fontSize?: number;
358
+
359
+ /**
360
+ * Line printed above each label
361
+ */
362
+ legend?: string;
363
+
364
+ /**
365
+ * Points from the bottom edge to the label
366
+ */
367
+ marginBottom?: number;
368
+
369
+ /**
370
+ * Points from the side edge to the label
371
+ */
372
+ marginSide?: number;
373
+
374
+ padTo?: number;
375
+
376
+ position?: 'bottom_right' | 'bottom_center' | 'bottom_left';
377
+
378
+ prefix?: string;
379
+
380
+ /**
381
+ * Shrinks each stamped page slightly so the label sits in a clear strip below its
382
+ * content instead of over existing footer text
383
+ */
384
+ shrink?: boolean;
385
+
386
+ start?: number;
387
+
388
+ suffix?: string;
389
+ }
390
+
391
+ /**
392
+ * Downsamples colour and grayscale scans above maxDpi and re-encodes them. Images
393
+ * already stored as 1-bit, JPEG 2000, indexed or CMYK keep their bytes.
394
+ */
395
+ export interface Compression {
396
+ /**
397
+ * Store pages that are only ink on paper as 1-bit images
398
+ */
399
+ bitonal?: boolean;
400
+
401
+ /**
402
+ * Clean up scanned document pages: 300 dpi, white paper, dark ink. Photos and
403
+ * imaging keep their tones; gray stays gray and colour stays colour
404
+ */
405
+ cleanScans?: boolean;
406
+
407
+ /**
408
+ * JPEG 2000 is smaller; JPEG is faster
409
+ */
410
+ encoding?: 'jpeg2000' | 'jpeg';
411
+
412
+ maxDpi?: number;
413
+
414
+ quality?: 'high' | 'standard' | 'small';
415
+ }
416
+ }
417
+
418
+ export interface AssemblyRetrieveParams {
419
+ /**
420
+ * Vault ID
421
+ */
422
+ id: string;
423
+ }
424
+
425
+ export declare namespace Assemblies {
426
+ export {
427
+ type AssemblyCreateResponse as AssemblyCreateResponse,
428
+ type AssemblyRetrieveResponse as AssemblyRetrieveResponse,
429
+ type AssemblyCreateParams as AssemblyCreateParams,
430
+ type AssemblyRetrieveParams as AssemblyRetrieveParams,
431
+ };
432
+ }
@@ -1,5 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ Assemblies,
5
+ type AssemblyCreateResponse,
6
+ type AssemblyRetrieveResponse,
7
+ type AssemblyCreateParams,
8
+ type AssemblyRetrieveParams,
9
+ } from './assemblies';
3
10
  export { Events } from './events/index';
4
11
  export {
5
12
  Folders,
@@ -59,6 +66,7 @@ export {
59
66
  type ObjectMergeParams,
60
67
  type ObjectMoveParams,
61
68
  type ObjectOrganizeParams,
69
+ type ObjectToPdfParams,
62
70
  } from './objects';
63
71
  export {
64
72
  Vault,
@@ -6,9 +6,6 @@ import { buildHeaders } from '../../internal/headers';
6
6
  import { RequestOptions } from '../../internal/request-options';
7
7
  import { path } from '../../internal/utils/path';
8
8
 
9
- /**
10
- * Vault object management, content access, and document operations
11
- */
12
9
  export class Objects extends APIResource {
13
10
  /**
14
11
  * Retrieves metadata for a specific document in a vault and generates a temporary
@@ -157,7 +154,9 @@ export class Objects extends APIResource {
157
154
  /**
158
155
  * Downloads a file from a vault by redirecting to a short-lived presigned S3 URL.
159
156
  * Useful for retrieving contracts, depositions, case files, and other legal
160
- * documents stored in your vault.
157
+ * documents stored in your vault. With format=pdf, a spreadsheet downloads as its
158
+ * PDF version (see POST /vault/{id}/objects/{objectId}/pdf); a PDF downloads as
159
+ * usual.
161
160
  *
162
161
  * @example
163
162
  * ```ts
@@ -171,8 +170,9 @@ export class Objects extends APIResource {
171
170
  * ```
172
171
  */
173
172
  download(objectID: string, params: ObjectDownloadParams, options?: RequestOptions): APIPromise<Response> {
174
- const { id } = params;
173
+ const { id, ...query } = params;
175
174
  return this._client.get(path`/vault/${id}/objects/${objectID}/download`, {
175
+ query,
176
176
  ...options,
177
177
  headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
178
178
  __binaryResponse: true,
@@ -350,6 +350,31 @@ export class Objects extends APIResource {
350
350
  ): APIPromise<ObjectOrganizeResponse> {
351
351
  return this._client.post(path`/vault/${id}/objects/organize`, { body, ...options });
352
352
  }
353
+
354
+ /**
355
+ * Starts making the PDF version of a spreadsheet object (.xlsx, .xlsm, .xlsb,
356
+ * .xls, .ods, .numbers, .csv, .tsv). Spreadsheets get one automatically when they
357
+ * are ingested; call this for objects stored without ingestion, or with force=true
358
+ * to make it again. Each visible sheet prints on landscape Letter at 100% scale,
359
+ * down the rows and then across the columns, with no repeated header rows; hidden
360
+ * sheets, rows and columns are left out and listed. The PDF is a copy: the object,
361
+ * its text and its search index are unchanged. Completion is reported through
362
+ * vault.object.pdf.completed or vault.object.pdf.failed; download it with GET
363
+ * /vault/{id}/objects/{objectId}/download?format=pdf.
364
+ *
365
+ * @example
366
+ * ```ts
367
+ * await client.vault.objects.toPdf('objectId', { id: 'id' });
368
+ * ```
369
+ */
370
+ toPdf(objectID: string, params: ObjectToPdfParams, options?: RequestOptions): APIPromise<void> {
371
+ const { id, force } = params;
372
+ return this._client.post(path`/vault/${id}/objects/${objectID}/pdf`, {
373
+ query: { force },
374
+ ...options,
375
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
376
+ });
377
+ }
353
378
  }
354
379
 
355
380
  export interface ObjectRetrieveResponse {
@@ -770,6 +795,11 @@ export interface ObjectCreatePresignedURLResponse {
770
795
  */
771
796
  s3Key?: string;
772
797
 
798
+ /**
799
+ * Which file the URL points at
800
+ */
801
+ variant?: 'original' | 'view';
802
+
773
803
  /**
774
804
  * The vault identifier
775
805
  */
@@ -784,6 +814,9 @@ export namespace ObjectCreatePresignedURLResponse {
784
814
 
785
815
  region?: string;
786
816
 
817
+ /**
818
+ * Size of the file the URL points at
819
+ */
787
820
  sizeBytes?: number;
788
821
  }
789
822
  }
@@ -1237,13 +1270,26 @@ export interface ObjectCreatePresignedURLParams {
1237
1270
  * provided for PUT operations, enforces exact file size at S3 level.
1238
1271
  */
1239
1272
  sizeBytes?: number;
1273
+
1274
+ /**
1275
+ * Body param: Which file to sign for GET and HEAD. 'view' returns the PDF's
1276
+ * fast-opening viewing copy when it has one, and the original otherwise. Use it
1277
+ * only to display a PDF; downloads and exports should use the original.
1278
+ */
1279
+ variant?: 'original' | 'view';
1240
1280
  }
1241
1281
 
1242
1282
  export interface ObjectDownloadParams {
1243
1283
  /**
1244
- * Vault ID
1284
+ * Path param: Vault ID
1245
1285
  */
1246
1286
  id: string;
1287
+
1288
+ /**
1289
+ * Query param: original (default) returns the file as uploaded. pdf returns a
1290
+ * spreadsheet's PDF version, or a PDF as usual.
1291
+ */
1292
+ format?: 'original' | 'pdf';
1247
1293
  }
1248
1294
 
1249
1295
  export interface ObjectGetChunksParams {
@@ -1422,6 +1468,18 @@ export declare namespace ObjectOrganizeParams {
1422
1468
  }
1423
1469
  }
1424
1470
 
1471
+ export interface ObjectToPdfParams {
1472
+ /**
1473
+ * Path param: Vault ID
1474
+ */
1475
+ id: string;
1476
+
1477
+ /**
1478
+ * Query param: Make the PDF version again even when one is ready
1479
+ */
1480
+ force?: boolean;
1481
+ }
1482
+
1425
1483
  export declare namespace Objects {
1426
1484
  export {
1427
1485
  type ObjectRetrieveResponse as ObjectRetrieveResponse,
@@ -1451,5 +1509,6 @@ export declare namespace Objects {
1451
1509
  type ObjectMergeParams as ObjectMergeParams,
1452
1510
  type ObjectMoveParams as ObjectMoveParams,
1453
1511
  type ObjectOrganizeParams as ObjectOrganizeParams,
1512
+ type ObjectToPdfParams as ObjectToPdfParams,
1454
1513
  };
1455
1514
  }
@@ -1,6 +1,14 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as AssembliesAPI from './assemblies';
5
+ import {
6
+ Assemblies,
7
+ AssemblyCreateParams,
8
+ AssemblyCreateResponse,
9
+ AssemblyRetrieveParams,
10
+ AssemblyRetrieveResponse,
11
+ } from './assemblies';
4
12
  import * as FoldersAPI from './folders';
5
13
  import {
6
14
  FolderCreateParams,
@@ -61,6 +69,7 @@ import {
61
69
  ObjectOrganizeResponse,
62
70
  ObjectRetrieveParams,
63
71
  ObjectRetrieveResponse,
72
+ ObjectToPdfParams,
64
73
  ObjectUpdateParams,
65
74
  ObjectUpdateResponse,
66
75
  Objects,
@@ -76,6 +85,7 @@ import { path } from '../../internal/utils/path';
76
85
  * Secure document storage with semantic search
77
86
  */
78
87
  export class Vault extends APIResource {
88
+ assemblies: AssembliesAPI.Assemblies = new AssembliesAPI.Assemblies(this._client);
79
89
  folders: FoldersAPI.Folders = new FoldersAPI.Folders(this._client);
80
90
  events: EventsAPI.Events = new EventsAPI.Events(this._client);
81
91
  groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
@@ -661,6 +671,12 @@ export interface VaultIngestResponse {
661
671
  * Workflow run ID for tracking progress. Null for file types that skip processing.
662
672
  */
663
673
  workflowId: string | null;
674
+
675
+ /**
676
+ * True when the document is waiting for ingestion capacity. It starts
677
+ * automatically; workflowId is null until then.
678
+ */
679
+ queued?: boolean;
664
680
  }
665
681
 
666
682
  export interface VaultSearchResponse {
@@ -1124,6 +1140,7 @@ export interface VaultUploadParams {
1124
1140
  'Idempotency-Key'?: string;
1125
1141
  }
1126
1142
 
1143
+ Vault.Assemblies = Assemblies;
1127
1144
  Vault.Folders = Folders;
1128
1145
  Vault.Events = Events;
1129
1146
  Vault.Groups = Groups;
@@ -1152,6 +1169,14 @@ export declare namespace Vault {
1152
1169
  type VaultUploadParams as VaultUploadParams,
1153
1170
  };
1154
1171
 
1172
+ export {
1173
+ Assemblies as Assemblies,
1174
+ type AssemblyCreateResponse as AssemblyCreateResponse,
1175
+ type AssemblyRetrieveResponse as AssemblyRetrieveResponse,
1176
+ type AssemblyCreateParams as AssemblyCreateParams,
1177
+ type AssemblyRetrieveParams as AssemblyRetrieveParams,
1178
+ };
1179
+
1155
1180
  export {
1156
1181
  Folders as Folders,
1157
1182
  type FolderCreateResponse as FolderCreateResponse,
@@ -1209,6 +1234,7 @@ export declare namespace Vault {
1209
1234
  type ObjectMergeParams as ObjectMergeParams,
1210
1235
  type ObjectMoveParams as ObjectMoveParams,
1211
1236
  type ObjectOrganizeParams as ObjectOrganizeParams,
1237
+ type ObjectToPdfParams as ObjectToPdfParams,
1212
1238
  };
1213
1239
 
1214
1240
  export {
@@ -10,8 +10,9 @@ import { RequestOptions } from '../../internal/request-options';
10
10
  export class BoostList extends APIResource {
11
11
  /**
12
12
  * Extracts a categorized word boost list from vault documents or raw text using
13
- * LLM entity extraction. The resulting list can be passed as `word_boost` to the
14
- * transcription endpoint for improved accuracy.
13
+ * LLM entity extraction. The resulting words can be passed as `keyterms_prompt`
14
+ * (or the legacy `word_boost` alias) to the transcription endpoint for improved
15
+ * accuracy.
15
16
  *
16
17
  * @example
17
18
  * ```ts
@@ -24,8 +25,8 @@ export class BoostList extends APIResource {
24
25
 
25
26
  /**
26
27
  * Generates a categorized word boost list from a completed transcription job.
27
- * Extracts entities from the pass-1 transcript for use as `word_boost` in a second
28
- * transcription pass.
28
+ * Extracts entities from the pass-1 transcript for use as `keyterms_prompt` (or
29
+ * the legacy `word_boost` alias) in a second transcription pass.
29
30
  *
30
31
  * @example
31
32
  * ```ts