casedev 0.72.0 → 0.73.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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/resources/connectors/connectors.d.mts +2 -2
- package/resources/connectors/connectors.d.mts.map +1 -1
- package/resources/connectors/connectors.d.ts +2 -2
- package/resources/connectors/connectors.d.ts.map +1 -1
- package/resources/connectors/connectors.js.map +1 -1
- package/resources/connectors/connectors.mjs.map +1 -1
- package/resources/connectors/index.d.mts +1 -1
- package/resources/connectors/index.d.mts.map +1 -1
- package/resources/connectors/index.d.ts +1 -1
- package/resources/connectors/index.d.ts.map +1 -1
- package/resources/connectors/index.js.map +1 -1
- package/resources/connectors/index.mjs.map +1 -1
- package/resources/connectors/v1/connections.d.mts +343 -9
- package/resources/connectors/v1/connections.d.mts.map +1 -1
- package/resources/connectors/v1/connections.d.ts +343 -9
- package/resources/connectors/v1/connections.d.ts.map +1 -1
- package/resources/connectors/v1/connections.js +124 -1
- package/resources/connectors/v1/connections.js.map +1 -1
- package/resources/connectors/v1/connections.mjs +124 -1
- package/resources/connectors/v1/connections.mjs.map +1 -1
- package/resources/connectors/v1/index.d.mts +2 -2
- package/resources/connectors/v1/index.d.mts.map +1 -1
- package/resources/connectors/v1/index.d.ts +2 -2
- package/resources/connectors/v1/index.d.ts.map +1 -1
- package/resources/connectors/v1/index.js.map +1 -1
- package/resources/connectors/v1/index.mjs.map +1 -1
- package/resources/connectors/v1/v1.d.mts +139 -8
- package/resources/connectors/v1/v1.d.mts.map +1 -1
- package/resources/connectors/v1/v1.d.ts +139 -8
- package/resources/connectors/v1/v1.d.ts.map +1 -1
- package/resources/connectors/v1/v1.js +29 -5
- package/resources/connectors/v1/v1.js.map +1 -1
- package/resources/connectors/v1/v1.mjs +29 -5
- package/resources/connectors/v1/v1.mjs.map +1 -1
- package/resources/linc/v1/sessions.d.mts +22 -8
- package/resources/linc/v1/sessions.d.mts.map +1 -1
- package/resources/linc/v1/sessions.d.ts +22 -8
- package/resources/linc/v1/sessions.d.ts.map +1 -1
- package/resources/linc/v1/sessions.js +3 -3
- package/resources/linc/v1/sessions.mjs +3 -3
- package/resources/ocr/v1.d.mts +2 -1
- package/resources/ocr/v1.d.mts.map +1 -1
- package/resources/ocr/v1.d.ts +2 -1
- package/resources/ocr/v1.d.ts.map +1 -1
- package/resources/vault/assemblies.d.mts +293 -0
- package/resources/vault/assemblies.d.mts.map +1 -0
- package/resources/vault/assemblies.d.ts +293 -0
- package/resources/vault/assemblies.d.ts.map +1 -0
- package/resources/vault/assemblies.js +70 -0
- package/resources/vault/assemblies.js.map +1 -0
- package/resources/vault/assemblies.mjs +66 -0
- package/resources/vault/assemblies.mjs.map +1 -0
- package/resources/vault/index.d.mts +1 -0
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +1 -0
- package/resources/vault/index.d.ts.map +1 -1
- package/resources/vault/index.js +3 -1
- package/resources/vault/index.js.map +1 -1
- package/resources/vault/index.mjs +1 -0
- package/resources/vault/index.mjs.map +1 -1
- package/resources/vault/vault.d.mts +9 -0
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +9 -0
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js +4 -0
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs +4 -0
- package/resources/vault/vault.mjs.map +1 -1
- package/resources/voice/boost-list.d.mts +5 -4
- package/resources/voice/boost-list.d.mts.map +1 -1
- package/resources/voice/boost-list.d.ts +5 -4
- package/resources/voice/boost-list.d.ts.map +1 -1
- package/resources/voice/boost-list.js +5 -4
- package/resources/voice/boost-list.js.map +1 -1
- package/resources/voice/boost-list.mjs +5 -4
- package/resources/voice/boost-list.mjs.map +1 -1
- package/resources/voice/transcription.d.mts +9 -2
- package/resources/voice/transcription.d.mts.map +1 -1
- package/resources/voice/transcription.d.ts +9 -2
- package/resources/voice/transcription.d.ts.map +1 -1
- package/src/resources/connectors/connectors.ts +2 -0
- package/src/resources/connectors/index.ts +1 -0
- package/src/resources/connectors/v1/connections.ts +534 -9
- package/src/resources/connectors/v1/index.ts +11 -0
- package/src/resources/connectors/v1/v1.ts +185 -5
- package/src/resources/linc/v1/sessions.ts +24 -9
- package/src/resources/ocr/v1.ts +2 -1
- package/src/resources/vault/assemblies.ts +403 -0
- package/src/resources/vault/index.ts +7 -0
- package/src/resources/vault/vault.ts +24 -0
- package/src/resources/voice/boost-list.ts +5 -4
- package/src/resources/voice/transcription.ts +10 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,403 @@
|
|
|
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
|
+
error?: AssemblyRetrieveResponse.Error;
|
|
104
|
+
|
|
105
|
+
status?: 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled';
|
|
106
|
+
|
|
107
|
+
timings?: AssemblyRetrieveResponse.Timings;
|
|
108
|
+
|
|
109
|
+
vaultId?: string;
|
|
110
|
+
|
|
111
|
+
volumes?: Array<AssemblyRetrieveResponse.Volume>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export namespace AssemblyRetrieveResponse {
|
|
115
|
+
export interface Error {
|
|
116
|
+
code?: string;
|
|
117
|
+
|
|
118
|
+
message?: string;
|
|
119
|
+
|
|
120
|
+
retryable?: boolean;
|
|
121
|
+
|
|
122
|
+
sourceIndex?: number;
|
|
123
|
+
|
|
124
|
+
stage?: string;
|
|
125
|
+
|
|
126
|
+
volumeIndex?: number;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface Timings {
|
|
130
|
+
acceptedAt?: string;
|
|
131
|
+
|
|
132
|
+
completedAt?: string;
|
|
133
|
+
|
|
134
|
+
workerElapsedMs?: number;
|
|
135
|
+
|
|
136
|
+
workerStartedAt?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface Volume {
|
|
140
|
+
batesEnd?: string | null;
|
|
141
|
+
|
|
142
|
+
batesStart?: string | null;
|
|
143
|
+
|
|
144
|
+
filename?: string;
|
|
145
|
+
|
|
146
|
+
objectId?: string;
|
|
147
|
+
|
|
148
|
+
pageCount?: number;
|
|
149
|
+
|
|
150
|
+
sha256?: string;
|
|
151
|
+
|
|
152
|
+
sizeBytes?: number;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface AssemblyCreateParams {
|
|
157
|
+
/**
|
|
158
|
+
* Body param: Source PDFs. Page ranges refer to a source by its index in this
|
|
159
|
+
* list.
|
|
160
|
+
*/
|
|
161
|
+
sources: Array<AssemblyCreateParams.Source>;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Body param
|
|
165
|
+
*/
|
|
166
|
+
volumes: Array<AssemblyCreateParams.Volume>;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Header param: Stable key for safely retrying the same assembly request
|
|
170
|
+
*/
|
|
171
|
+
'Idempotency-Key': string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Body param: Bates numbering that continues across every volume without its own
|
|
175
|
+
* series. Text must be printable ASCII.
|
|
176
|
+
*/
|
|
177
|
+
bates?: AssemblyCreateParams.Bates;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Body param
|
|
181
|
+
*/
|
|
182
|
+
clientReference?: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Body param: Downsamples colour and grayscale scans above maxDpi and re-encodes
|
|
186
|
+
* them. Images already stored as 1-bit, JPEG 2000, indexed or CMYK keep their
|
|
187
|
+
* bytes.
|
|
188
|
+
*/
|
|
189
|
+
compression?: AssemblyCreateParams.Compression;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Body param: Optimize volumes for web viewing
|
|
193
|
+
*/
|
|
194
|
+
linearize?: boolean;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Body param: Put every page upright on a US Letter portrait sheet: landscape
|
|
198
|
+
* pages turn a quarter turn, other sizes are scaled to fit
|
|
199
|
+
*/
|
|
200
|
+
pageSize?: 'letter';
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export namespace AssemblyCreateParams {
|
|
204
|
+
export interface Source {
|
|
205
|
+
objectId: string;
|
|
206
|
+
|
|
207
|
+
rendition?: 'searchable_pdf' | 'original';
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export interface Volume {
|
|
211
|
+
/**
|
|
212
|
+
* Output filename, ending in .pdf
|
|
213
|
+
*/
|
|
214
|
+
filename: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Page ranges in output order. Pages are 1-based and inclusive; repeats are
|
|
218
|
+
* allowed.
|
|
219
|
+
*/
|
|
220
|
+
pages: Array<Volume.Page>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* This volume’s own Bates series, numbered from its own start. Same fields as the
|
|
224
|
+
* top-level bates.
|
|
225
|
+
*/
|
|
226
|
+
bates?: Volume.Bates;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Adds linked contents pages at the front of the volume, built from its outline.
|
|
230
|
+
* Outline pages stay numbered within the manifest pages.
|
|
231
|
+
*/
|
|
232
|
+
contents?: Volume.Contents;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Bookmarks, up to 8 levels deep
|
|
236
|
+
*/
|
|
237
|
+
outline?: Array<Volume.Outline>;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* PDF document title
|
|
241
|
+
*/
|
|
242
|
+
title?: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export namespace Volume {
|
|
246
|
+
export interface Page {
|
|
247
|
+
end: number;
|
|
248
|
+
|
|
249
|
+
source: number;
|
|
250
|
+
|
|
251
|
+
start: number;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* false leaves these pages unstamped; they use up no Bates number
|
|
255
|
+
*/
|
|
256
|
+
bates?: boolean;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* This volume’s own Bates series, numbered from its own start. Same fields as the
|
|
261
|
+
* top-level bates.
|
|
262
|
+
*/
|
|
263
|
+
export interface Bates {
|
|
264
|
+
fontSize?: number;
|
|
265
|
+
|
|
266
|
+
legend?: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Points from the bottom edge to the label
|
|
270
|
+
*/
|
|
271
|
+
marginBottom?: number;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Points from the side edge to the label
|
|
275
|
+
*/
|
|
276
|
+
marginSide?: number;
|
|
277
|
+
|
|
278
|
+
padTo?: number;
|
|
279
|
+
|
|
280
|
+
position?: 'bottom_right' | 'bottom_center' | 'bottom_left';
|
|
281
|
+
|
|
282
|
+
prefix?: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Shrinks each stamped page slightly so the label sits in a clear strip below its
|
|
286
|
+
* content
|
|
287
|
+
*/
|
|
288
|
+
shrink?: boolean;
|
|
289
|
+
|
|
290
|
+
start?: number;
|
|
291
|
+
|
|
292
|
+
suffix?: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Adds linked contents pages at the front of the volume, built from its outline.
|
|
297
|
+
* Outline pages stay numbered within the manifest pages.
|
|
298
|
+
*/
|
|
299
|
+
export interface Contents {
|
|
300
|
+
/**
|
|
301
|
+
* Outline levels listed
|
|
302
|
+
*/
|
|
303
|
+
depth?: 1 | 2;
|
|
304
|
+
|
|
305
|
+
title?: string;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface Outline {
|
|
309
|
+
/**
|
|
310
|
+
* 1-based page within this volume
|
|
311
|
+
*/
|
|
312
|
+
page: number;
|
|
313
|
+
|
|
314
|
+
title: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Nested entries, same shape
|
|
318
|
+
*/
|
|
319
|
+
children?: Array<unknown>;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Bates numbering that continues across every volume without its own series. Text
|
|
325
|
+
* must be printable ASCII.
|
|
326
|
+
*/
|
|
327
|
+
export interface Bates {
|
|
328
|
+
fontSize?: number;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Line printed above each label
|
|
332
|
+
*/
|
|
333
|
+
legend?: string;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Points from the bottom edge to the label
|
|
337
|
+
*/
|
|
338
|
+
marginBottom?: number;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Points from the side edge to the label
|
|
342
|
+
*/
|
|
343
|
+
marginSide?: number;
|
|
344
|
+
|
|
345
|
+
padTo?: number;
|
|
346
|
+
|
|
347
|
+
position?: 'bottom_right' | 'bottom_center' | 'bottom_left';
|
|
348
|
+
|
|
349
|
+
prefix?: string;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Shrinks each stamped page slightly so the label sits in a clear strip below its
|
|
353
|
+
* content instead of over existing footer text
|
|
354
|
+
*/
|
|
355
|
+
shrink?: boolean;
|
|
356
|
+
|
|
357
|
+
start?: number;
|
|
358
|
+
|
|
359
|
+
suffix?: string;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Downsamples colour and grayscale scans above maxDpi and re-encodes them. Images
|
|
364
|
+
* already stored as 1-bit, JPEG 2000, indexed or CMYK keep their bytes.
|
|
365
|
+
*/
|
|
366
|
+
export interface Compression {
|
|
367
|
+
/**
|
|
368
|
+
* Store pages that are only ink on paper as 1-bit images
|
|
369
|
+
*/
|
|
370
|
+
bitonal?: boolean;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Clean up scanned document pages: 300 dpi, white paper, dark ink. Photos and
|
|
374
|
+
* imaging keep their tones; gray stays gray and colour stays colour
|
|
375
|
+
*/
|
|
376
|
+
cleanScans?: boolean;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* JPEG 2000 is smaller; JPEG is faster
|
|
380
|
+
*/
|
|
381
|
+
encoding?: 'jpeg2000' | 'jpeg';
|
|
382
|
+
|
|
383
|
+
maxDpi?: number;
|
|
384
|
+
|
|
385
|
+
quality?: 'high' | 'standard' | 'small';
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export interface AssemblyRetrieveParams {
|
|
390
|
+
/**
|
|
391
|
+
* Vault ID
|
|
392
|
+
*/
|
|
393
|
+
id: string;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export declare namespace Assemblies {
|
|
397
|
+
export {
|
|
398
|
+
type AssemblyCreateResponse as AssemblyCreateResponse,
|
|
399
|
+
type AssemblyRetrieveResponse as AssemblyRetrieveResponse,
|
|
400
|
+
type AssemblyCreateParams as AssemblyCreateParams,
|
|
401
|
+
type AssemblyRetrieveParams as AssemblyRetrieveParams,
|
|
402
|
+
};
|
|
403
|
+
}
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -76,6 +84,7 @@ import { path } from '../../internal/utils/path';
|
|
|
76
84
|
* Secure document storage with semantic search
|
|
77
85
|
*/
|
|
78
86
|
export class Vault extends APIResource {
|
|
87
|
+
assemblies: AssembliesAPI.Assemblies = new AssembliesAPI.Assemblies(this._client);
|
|
79
88
|
folders: FoldersAPI.Folders = new FoldersAPI.Folders(this._client);
|
|
80
89
|
events: EventsAPI.Events = new EventsAPI.Events(this._client);
|
|
81
90
|
groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
|
|
@@ -661,6 +670,12 @@ export interface VaultIngestResponse {
|
|
|
661
670
|
* Workflow run ID for tracking progress. Null for file types that skip processing.
|
|
662
671
|
*/
|
|
663
672
|
workflowId: string | null;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* True when the document is waiting for ingestion capacity. It starts
|
|
676
|
+
* automatically; workflowId is null until then.
|
|
677
|
+
*/
|
|
678
|
+
queued?: boolean;
|
|
664
679
|
}
|
|
665
680
|
|
|
666
681
|
export interface VaultSearchResponse {
|
|
@@ -1124,6 +1139,7 @@ export interface VaultUploadParams {
|
|
|
1124
1139
|
'Idempotency-Key'?: string;
|
|
1125
1140
|
}
|
|
1126
1141
|
|
|
1142
|
+
Vault.Assemblies = Assemblies;
|
|
1127
1143
|
Vault.Folders = Folders;
|
|
1128
1144
|
Vault.Events = Events;
|
|
1129
1145
|
Vault.Groups = Groups;
|
|
@@ -1152,6 +1168,14 @@ export declare namespace Vault {
|
|
|
1152
1168
|
type VaultUploadParams as VaultUploadParams,
|
|
1153
1169
|
};
|
|
1154
1170
|
|
|
1171
|
+
export {
|
|
1172
|
+
Assemblies as Assemblies,
|
|
1173
|
+
type AssemblyCreateResponse as AssemblyCreateResponse,
|
|
1174
|
+
type AssemblyRetrieveResponse as AssemblyRetrieveResponse,
|
|
1175
|
+
type AssemblyCreateParams as AssemblyCreateParams,
|
|
1176
|
+
type AssemblyRetrieveParams as AssemblyRetrieveParams,
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1155
1179
|
export {
|
|
1156
1180
|
Folders as Folders,
|
|
1157
1181
|
type FolderCreateResponse as FolderCreateResponse,
|
|
@@ -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
|
|
14
|
-
* transcription endpoint for improved
|
|
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 `
|
|
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
|
|
@@ -175,7 +175,8 @@ export interface TranscriptionCreateParams {
|
|
|
175
175
|
auto_highlights?: boolean;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* @deprecated Deprecated and ignored: current AssemblyAI models do not support
|
|
179
|
+
* boost strength.
|
|
179
180
|
*/
|
|
180
181
|
boost_param?: 'low' | 'default' | 'high';
|
|
181
182
|
|
|
@@ -199,6 +200,12 @@ export interface TranscriptionCreateParams {
|
|
|
199
200
|
*/
|
|
200
201
|
format_text?: boolean;
|
|
201
202
|
|
|
203
|
+
/**
|
|
204
|
+
* Domain-specific words or phrases (max 6 words each) to improve recognition
|
|
205
|
+
* accuracy. Up to 1000 on universal-3-5-pro, 200 on universal-2.
|
|
206
|
+
*/
|
|
207
|
+
keyterms_prompt?: Array<string>;
|
|
208
|
+
|
|
202
209
|
/**
|
|
203
210
|
* Language code (e.g., 'en_us', 'es', 'fr'). If not specified, language will be
|
|
204
211
|
* auto-detected
|
|
@@ -241,7 +248,8 @@ export interface TranscriptionCreateParams {
|
|
|
241
248
|
vault_id?: string;
|
|
242
249
|
|
|
243
250
|
/**
|
|
244
|
-
*
|
|
251
|
+
* @deprecated Legacy alias for `keyterms_prompt`. Entries are merged into
|
|
252
|
+
* `keyterms_prompt` before submission.
|
|
245
253
|
*/
|
|
246
254
|
word_boost?: Array<string>;
|
|
247
255
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.73.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.73.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.73.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.73.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|