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.
Files changed (99) hide show
  1. package/CHANGELOG.md +7 -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 +22 -8
  38. package/resources/linc/v1/sessions.d.mts.map +1 -1
  39. package/resources/linc/v1/sessions.d.ts +22 -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 +293 -0
  48. package/resources/vault/assemblies.d.mts.map +1 -0
  49. package/resources/vault/assemblies.d.ts +293 -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 +1 -0
  56. package/resources/vault/index.d.mts.map +1 -1
  57. package/resources/vault/index.d.ts +1 -0
  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/vault.d.mts +9 -0
  64. package/resources/vault/vault.d.mts.map +1 -1
  65. package/resources/vault/vault.d.ts +9 -0
  66. package/resources/vault/vault.d.ts.map +1 -1
  67. package/resources/vault/vault.js +4 -0
  68. package/resources/vault/vault.js.map +1 -1
  69. package/resources/vault/vault.mjs +4 -0
  70. package/resources/vault/vault.mjs.map +1 -1
  71. package/resources/voice/boost-list.d.mts +5 -4
  72. package/resources/voice/boost-list.d.mts.map +1 -1
  73. package/resources/voice/boost-list.d.ts +5 -4
  74. package/resources/voice/boost-list.d.ts.map +1 -1
  75. package/resources/voice/boost-list.js +5 -4
  76. package/resources/voice/boost-list.js.map +1 -1
  77. package/resources/voice/boost-list.mjs +5 -4
  78. package/resources/voice/boost-list.mjs.map +1 -1
  79. package/resources/voice/transcription.d.mts +9 -2
  80. package/resources/voice/transcription.d.mts.map +1 -1
  81. package/resources/voice/transcription.d.ts +9 -2
  82. package/resources/voice/transcription.d.ts.map +1 -1
  83. package/src/resources/connectors/connectors.ts +2 -0
  84. package/src/resources/connectors/index.ts +1 -0
  85. package/src/resources/connectors/v1/connections.ts +534 -9
  86. package/src/resources/connectors/v1/index.ts +11 -0
  87. package/src/resources/connectors/v1/v1.ts +185 -5
  88. package/src/resources/linc/v1/sessions.ts +24 -9
  89. package/src/resources/ocr/v1.ts +2 -1
  90. package/src/resources/vault/assemblies.ts +403 -0
  91. package/src/resources/vault/index.ts +7 -0
  92. package/src/resources/vault/vault.ts +24 -0
  93. package/src/resources/voice/boost-list.ts +5 -4
  94. package/src/resources/voice/transcription.ts +10 -2
  95. package/src/version.ts +1 -1
  96. package/version.d.mts +1 -1
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
  99. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/ocr/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;OAQG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,EAC1C,MAAM,EAAE,gBAAgB,EACxB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,eAAe,CAAC;IAC/B;;OAEG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,KAAK,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEnC;;WAEG;QACH,KAAK,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEnC;;WAEG;QACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;KAC1B;IAED,UAAiB,QAAQ,CAAC;QACxB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;YAExB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;SACtB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -0,0 +1,293 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Vault object management, content access, and document operations
6
+ */
7
+ export declare class Assemblies extends APIResource {
8
+ /**
9
+ * Starts an asynchronous, deterministic PDF assembly. The manifest selects page
10
+ * ranges from source PDFs in output order, adds an outline, an optional linked
11
+ * contents page and optional Bates numbering, and splits the result into volumes.
12
+ * Optional compression downsamples oversized scans. Each volume becomes a new
13
+ * vault object. Source bookmarks, form fields and page labels are not carried
14
+ * over. Outputs are not indexed automatically. Completion is reported through
15
+ * vault.assembly webhooks.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const assembly = await client.vault.assemblies.create(
20
+ * 'id',
21
+ * {
22
+ * sources: [{ objectId: 'objectId' }],
23
+ * volumes: [
24
+ * {
25
+ * filename: 'filename',
26
+ * pages: [
27
+ * {
28
+ * end: 1,
29
+ * source: 0,
30
+ * start: 1,
31
+ * },
32
+ * ],
33
+ * },
34
+ * ],
35
+ * 'Idempotency-Key': 'x',
36
+ * },
37
+ * );
38
+ * ```
39
+ */
40
+ create(id: string, params: AssemblyCreateParams, options?: RequestOptions): APIPromise<AssemblyCreateResponse>;
41
+ /**
42
+ * Returns the status of a PDF assembly. Completed volumes include their page
43
+ * count, size, SHA-256 and Bates range.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const assembly = await client.vault.assemblies.retrieve(
48
+ * 'assemblyId',
49
+ * { id: 'id' },
50
+ * );
51
+ * ```
52
+ */
53
+ retrieve(assemblyID: string, params: AssemblyRetrieveParams, options?: RequestOptions): APIPromise<AssemblyRetrieveResponse>;
54
+ }
55
+ export interface AssemblyCreateResponse {
56
+ id?: string;
57
+ clientReference?: string;
58
+ status?: 'queued' | 'processing' | 'completed' | 'failed';
59
+ volumes?: Array<AssemblyCreateResponse.Volume>;
60
+ }
61
+ export declare namespace AssemblyCreateResponse {
62
+ interface Volume {
63
+ filename?: string;
64
+ objectId?: string;
65
+ }
66
+ }
67
+ export interface AssemblyRetrieveResponse {
68
+ id?: string;
69
+ clientReference?: string;
70
+ error?: AssemblyRetrieveResponse.Error;
71
+ status?: 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled';
72
+ timings?: AssemblyRetrieveResponse.Timings;
73
+ vaultId?: string;
74
+ volumes?: Array<AssemblyRetrieveResponse.Volume>;
75
+ }
76
+ export declare namespace AssemblyRetrieveResponse {
77
+ interface Error {
78
+ code?: string;
79
+ message?: string;
80
+ retryable?: boolean;
81
+ sourceIndex?: number;
82
+ stage?: string;
83
+ volumeIndex?: number;
84
+ }
85
+ interface Timings {
86
+ acceptedAt?: string;
87
+ completedAt?: string;
88
+ workerElapsedMs?: number;
89
+ workerStartedAt?: string;
90
+ }
91
+ interface Volume {
92
+ batesEnd?: string | null;
93
+ batesStart?: string | null;
94
+ filename?: string;
95
+ objectId?: string;
96
+ pageCount?: number;
97
+ sha256?: string;
98
+ sizeBytes?: number;
99
+ }
100
+ }
101
+ export interface AssemblyCreateParams {
102
+ /**
103
+ * Body param: Source PDFs. Page ranges refer to a source by its index in this
104
+ * list.
105
+ */
106
+ sources: Array<AssemblyCreateParams.Source>;
107
+ /**
108
+ * Body param
109
+ */
110
+ volumes: Array<AssemblyCreateParams.Volume>;
111
+ /**
112
+ * Header param: Stable key for safely retrying the same assembly request
113
+ */
114
+ 'Idempotency-Key': string;
115
+ /**
116
+ * Body param: Bates numbering that continues across every volume without its own
117
+ * series. Text must be printable ASCII.
118
+ */
119
+ bates?: AssemblyCreateParams.Bates;
120
+ /**
121
+ * Body param
122
+ */
123
+ clientReference?: string;
124
+ /**
125
+ * Body param: Downsamples colour and grayscale scans above maxDpi and re-encodes
126
+ * them. Images already stored as 1-bit, JPEG 2000, indexed or CMYK keep their
127
+ * bytes.
128
+ */
129
+ compression?: AssemblyCreateParams.Compression;
130
+ /**
131
+ * Body param: Optimize volumes for web viewing
132
+ */
133
+ linearize?: boolean;
134
+ /**
135
+ * Body param: Put every page upright on a US Letter portrait sheet: landscape
136
+ * pages turn a quarter turn, other sizes are scaled to fit
137
+ */
138
+ pageSize?: 'letter';
139
+ }
140
+ export declare namespace AssemblyCreateParams {
141
+ interface Source {
142
+ objectId: string;
143
+ rendition?: 'searchable_pdf' | 'original';
144
+ }
145
+ interface Volume {
146
+ /**
147
+ * Output filename, ending in .pdf
148
+ */
149
+ filename: string;
150
+ /**
151
+ * Page ranges in output order. Pages are 1-based and inclusive; repeats are
152
+ * allowed.
153
+ */
154
+ pages: Array<Volume.Page>;
155
+ /**
156
+ * This volume’s own Bates series, numbered from its own start. Same fields as the
157
+ * top-level bates.
158
+ */
159
+ bates?: Volume.Bates;
160
+ /**
161
+ * Adds linked contents pages at the front of the volume, built from its outline.
162
+ * Outline pages stay numbered within the manifest pages.
163
+ */
164
+ contents?: Volume.Contents;
165
+ /**
166
+ * Bookmarks, up to 8 levels deep
167
+ */
168
+ outline?: Array<Volume.Outline>;
169
+ /**
170
+ * PDF document title
171
+ */
172
+ title?: string;
173
+ }
174
+ namespace Volume {
175
+ interface Page {
176
+ end: number;
177
+ source: number;
178
+ start: number;
179
+ /**
180
+ * false leaves these pages unstamped; they use up no Bates number
181
+ */
182
+ bates?: boolean;
183
+ }
184
+ /**
185
+ * This volume’s own Bates series, numbered from its own start. Same fields as the
186
+ * top-level bates.
187
+ */
188
+ interface Bates {
189
+ fontSize?: number;
190
+ legend?: string;
191
+ /**
192
+ * Points from the bottom edge to the label
193
+ */
194
+ marginBottom?: number;
195
+ /**
196
+ * Points from the side edge to the label
197
+ */
198
+ marginSide?: number;
199
+ padTo?: number;
200
+ position?: 'bottom_right' | 'bottom_center' | 'bottom_left';
201
+ prefix?: string;
202
+ /**
203
+ * Shrinks each stamped page slightly so the label sits in a clear strip below its
204
+ * content
205
+ */
206
+ shrink?: boolean;
207
+ start?: number;
208
+ suffix?: string;
209
+ }
210
+ /**
211
+ * Adds linked contents pages at the front of the volume, built from its outline.
212
+ * Outline pages stay numbered within the manifest pages.
213
+ */
214
+ interface Contents {
215
+ /**
216
+ * Outline levels listed
217
+ */
218
+ depth?: 1 | 2;
219
+ title?: string;
220
+ }
221
+ interface Outline {
222
+ /**
223
+ * 1-based page within this volume
224
+ */
225
+ page: number;
226
+ title: string;
227
+ /**
228
+ * Nested entries, same shape
229
+ */
230
+ children?: Array<unknown>;
231
+ }
232
+ }
233
+ /**
234
+ * Bates numbering that continues across every volume without its own series. Text
235
+ * must be printable ASCII.
236
+ */
237
+ interface Bates {
238
+ fontSize?: number;
239
+ /**
240
+ * Line printed above each label
241
+ */
242
+ legend?: string;
243
+ /**
244
+ * Points from the bottom edge to the label
245
+ */
246
+ marginBottom?: number;
247
+ /**
248
+ * Points from the side edge to the label
249
+ */
250
+ marginSide?: number;
251
+ padTo?: number;
252
+ position?: 'bottom_right' | 'bottom_center' | 'bottom_left';
253
+ prefix?: string;
254
+ /**
255
+ * Shrinks each stamped page slightly so the label sits in a clear strip below its
256
+ * content instead of over existing footer text
257
+ */
258
+ shrink?: boolean;
259
+ start?: number;
260
+ suffix?: string;
261
+ }
262
+ /**
263
+ * Downsamples colour and grayscale scans above maxDpi and re-encodes them. Images
264
+ * already stored as 1-bit, JPEG 2000, indexed or CMYK keep their bytes.
265
+ */
266
+ interface Compression {
267
+ /**
268
+ * Store pages that are only ink on paper as 1-bit images
269
+ */
270
+ bitonal?: boolean;
271
+ /**
272
+ * Clean up scanned document pages: 300 dpi, white paper, dark ink. Photos and
273
+ * imaging keep their tones; gray stays gray and colour stays colour
274
+ */
275
+ cleanScans?: boolean;
276
+ /**
277
+ * JPEG 2000 is smaller; JPEG is faster
278
+ */
279
+ encoding?: 'jpeg2000' | 'jpeg';
280
+ maxDpi?: number;
281
+ quality?: 'high' | 'standard' | 'small';
282
+ }
283
+ }
284
+ export interface AssemblyRetrieveParams {
285
+ /**
286
+ * Vault ID
287
+ */
288
+ id: string;
289
+ }
290
+ export declare namespace Assemblies {
291
+ export { type AssemblyCreateResponse as AssemblyCreateResponse, type AssemblyRetrieveResponse as AssemblyRetrieveResponse, type AssemblyCreateParams as AssemblyCreateParams, type AssemblyRetrieveParams as AssemblyRetrieveParams, };
292
+ }
293
+ //# sourceMappingURL=assemblies.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assemblies.d.mts","sourceRoot":"","sources":["../../src/resources/vault/assemblies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CACJ,EA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 import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Vault object management, content access, and document operations
6
+ */
7
+ export declare class Assemblies extends APIResource {
8
+ /**
9
+ * Starts an asynchronous, deterministic PDF assembly. The manifest selects page
10
+ * ranges from source PDFs in output order, adds an outline, an optional linked
11
+ * contents page and optional Bates numbering, and splits the result into volumes.
12
+ * Optional compression downsamples oversized scans. Each volume becomes a new
13
+ * vault object. Source bookmarks, form fields and page labels are not carried
14
+ * over. Outputs are not indexed automatically. Completion is reported through
15
+ * vault.assembly webhooks.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const assembly = await client.vault.assemblies.create(
20
+ * 'id',
21
+ * {
22
+ * sources: [{ objectId: 'objectId' }],
23
+ * volumes: [
24
+ * {
25
+ * filename: 'filename',
26
+ * pages: [
27
+ * {
28
+ * end: 1,
29
+ * source: 0,
30
+ * start: 1,
31
+ * },
32
+ * ],
33
+ * },
34
+ * ],
35
+ * 'Idempotency-Key': 'x',
36
+ * },
37
+ * );
38
+ * ```
39
+ */
40
+ create(id: string, params: AssemblyCreateParams, options?: RequestOptions): APIPromise<AssemblyCreateResponse>;
41
+ /**
42
+ * Returns the status of a PDF assembly. Completed volumes include their page
43
+ * count, size, SHA-256 and Bates range.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const assembly = await client.vault.assemblies.retrieve(
48
+ * 'assemblyId',
49
+ * { id: 'id' },
50
+ * );
51
+ * ```
52
+ */
53
+ retrieve(assemblyID: string, params: AssemblyRetrieveParams, options?: RequestOptions): APIPromise<AssemblyRetrieveResponse>;
54
+ }
55
+ export interface AssemblyCreateResponse {
56
+ id?: string;
57
+ clientReference?: string;
58
+ status?: 'queued' | 'processing' | 'completed' | 'failed';
59
+ volumes?: Array<AssemblyCreateResponse.Volume>;
60
+ }
61
+ export declare namespace AssemblyCreateResponse {
62
+ interface Volume {
63
+ filename?: string;
64
+ objectId?: string;
65
+ }
66
+ }
67
+ export interface AssemblyRetrieveResponse {
68
+ id?: string;
69
+ clientReference?: string;
70
+ error?: AssemblyRetrieveResponse.Error;
71
+ status?: 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled';
72
+ timings?: AssemblyRetrieveResponse.Timings;
73
+ vaultId?: string;
74
+ volumes?: Array<AssemblyRetrieveResponse.Volume>;
75
+ }
76
+ export declare namespace AssemblyRetrieveResponse {
77
+ interface Error {
78
+ code?: string;
79
+ message?: string;
80
+ retryable?: boolean;
81
+ sourceIndex?: number;
82
+ stage?: string;
83
+ volumeIndex?: number;
84
+ }
85
+ interface Timings {
86
+ acceptedAt?: string;
87
+ completedAt?: string;
88
+ workerElapsedMs?: number;
89
+ workerStartedAt?: string;
90
+ }
91
+ interface Volume {
92
+ batesEnd?: string | null;
93
+ batesStart?: string | null;
94
+ filename?: string;
95
+ objectId?: string;
96
+ pageCount?: number;
97
+ sha256?: string;
98
+ sizeBytes?: number;
99
+ }
100
+ }
101
+ export interface AssemblyCreateParams {
102
+ /**
103
+ * Body param: Source PDFs. Page ranges refer to a source by its index in this
104
+ * list.
105
+ */
106
+ sources: Array<AssemblyCreateParams.Source>;
107
+ /**
108
+ * Body param
109
+ */
110
+ volumes: Array<AssemblyCreateParams.Volume>;
111
+ /**
112
+ * Header param: Stable key for safely retrying the same assembly request
113
+ */
114
+ 'Idempotency-Key': string;
115
+ /**
116
+ * Body param: Bates numbering that continues across every volume without its own
117
+ * series. Text must be printable ASCII.
118
+ */
119
+ bates?: AssemblyCreateParams.Bates;
120
+ /**
121
+ * Body param
122
+ */
123
+ clientReference?: string;
124
+ /**
125
+ * Body param: Downsamples colour and grayscale scans above maxDpi and re-encodes
126
+ * them. Images already stored as 1-bit, JPEG 2000, indexed or CMYK keep their
127
+ * bytes.
128
+ */
129
+ compression?: AssemblyCreateParams.Compression;
130
+ /**
131
+ * Body param: Optimize volumes for web viewing
132
+ */
133
+ linearize?: boolean;
134
+ /**
135
+ * Body param: Put every page upright on a US Letter portrait sheet: landscape
136
+ * pages turn a quarter turn, other sizes are scaled to fit
137
+ */
138
+ pageSize?: 'letter';
139
+ }
140
+ export declare namespace AssemblyCreateParams {
141
+ interface Source {
142
+ objectId: string;
143
+ rendition?: 'searchable_pdf' | 'original';
144
+ }
145
+ interface Volume {
146
+ /**
147
+ * Output filename, ending in .pdf
148
+ */
149
+ filename: string;
150
+ /**
151
+ * Page ranges in output order. Pages are 1-based and inclusive; repeats are
152
+ * allowed.
153
+ */
154
+ pages: Array<Volume.Page>;
155
+ /**
156
+ * This volume’s own Bates series, numbered from its own start. Same fields as the
157
+ * top-level bates.
158
+ */
159
+ bates?: Volume.Bates;
160
+ /**
161
+ * Adds linked contents pages at the front of the volume, built from its outline.
162
+ * Outline pages stay numbered within the manifest pages.
163
+ */
164
+ contents?: Volume.Contents;
165
+ /**
166
+ * Bookmarks, up to 8 levels deep
167
+ */
168
+ outline?: Array<Volume.Outline>;
169
+ /**
170
+ * PDF document title
171
+ */
172
+ title?: string;
173
+ }
174
+ namespace Volume {
175
+ interface Page {
176
+ end: number;
177
+ source: number;
178
+ start: number;
179
+ /**
180
+ * false leaves these pages unstamped; they use up no Bates number
181
+ */
182
+ bates?: boolean;
183
+ }
184
+ /**
185
+ * This volume’s own Bates series, numbered from its own start. Same fields as the
186
+ * top-level bates.
187
+ */
188
+ interface Bates {
189
+ fontSize?: number;
190
+ legend?: string;
191
+ /**
192
+ * Points from the bottom edge to the label
193
+ */
194
+ marginBottom?: number;
195
+ /**
196
+ * Points from the side edge to the label
197
+ */
198
+ marginSide?: number;
199
+ padTo?: number;
200
+ position?: 'bottom_right' | 'bottom_center' | 'bottom_left';
201
+ prefix?: string;
202
+ /**
203
+ * Shrinks each stamped page slightly so the label sits in a clear strip below its
204
+ * content
205
+ */
206
+ shrink?: boolean;
207
+ start?: number;
208
+ suffix?: string;
209
+ }
210
+ /**
211
+ * Adds linked contents pages at the front of the volume, built from its outline.
212
+ * Outline pages stay numbered within the manifest pages.
213
+ */
214
+ interface Contents {
215
+ /**
216
+ * Outline levels listed
217
+ */
218
+ depth?: 1 | 2;
219
+ title?: string;
220
+ }
221
+ interface Outline {
222
+ /**
223
+ * 1-based page within this volume
224
+ */
225
+ page: number;
226
+ title: string;
227
+ /**
228
+ * Nested entries, same shape
229
+ */
230
+ children?: Array<unknown>;
231
+ }
232
+ }
233
+ /**
234
+ * Bates numbering that continues across every volume without its own series. Text
235
+ * must be printable ASCII.
236
+ */
237
+ interface Bates {
238
+ fontSize?: number;
239
+ /**
240
+ * Line printed above each label
241
+ */
242
+ legend?: string;
243
+ /**
244
+ * Points from the bottom edge to the label
245
+ */
246
+ marginBottom?: number;
247
+ /**
248
+ * Points from the side edge to the label
249
+ */
250
+ marginSide?: number;
251
+ padTo?: number;
252
+ position?: 'bottom_right' | 'bottom_center' | 'bottom_left';
253
+ prefix?: string;
254
+ /**
255
+ * Shrinks each stamped page slightly so the label sits in a clear strip below its
256
+ * content instead of over existing footer text
257
+ */
258
+ shrink?: boolean;
259
+ start?: number;
260
+ suffix?: string;
261
+ }
262
+ /**
263
+ * Downsamples colour and grayscale scans above maxDpi and re-encodes them. Images
264
+ * already stored as 1-bit, JPEG 2000, indexed or CMYK keep their bytes.
265
+ */
266
+ interface Compression {
267
+ /**
268
+ * Store pages that are only ink on paper as 1-bit images
269
+ */
270
+ bitonal?: boolean;
271
+ /**
272
+ * Clean up scanned document pages: 300 dpi, white paper, dark ink. Photos and
273
+ * imaging keep their tones; gray stays gray and colour stays colour
274
+ */
275
+ cleanScans?: boolean;
276
+ /**
277
+ * JPEG 2000 is smaller; JPEG is faster
278
+ */
279
+ encoding?: 'jpeg2000' | 'jpeg';
280
+ maxDpi?: number;
281
+ quality?: 'high' | 'standard' | 'small';
282
+ }
283
+ }
284
+ export interface AssemblyRetrieveParams {
285
+ /**
286
+ * Vault ID
287
+ */
288
+ id: string;
289
+ }
290
+ export declare namespace Assemblies {
291
+ export { type AssemblyCreateResponse as AssemblyCreateResponse, type AssemblyRetrieveResponse as AssemblyRetrieveResponse, type AssemblyCreateParams as AssemblyCreateParams, type AssemblyRetrieveParams as AssemblyRetrieveParams, };
292
+ }
293
+ //# sourceMappingURL=assemblies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assemblies.d.ts","sourceRoot":"","sources":["../../src/resources/vault/assemblies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IASrC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAIxC;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,MAAM,CAAC,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;IAE1D,OAAO,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;CAChD;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,MAAM;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,KAAK,CAAC,EAAE,wBAAwB,CAAC,KAAK,CAAC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B,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;KACzC;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Assemblies = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ const path_1 = require("../../internal/utils/path.js");
8
+ /**
9
+ * Vault object management, content access, and document operations
10
+ */
11
+ class Assemblies extends resource_1.APIResource {
12
+ /**
13
+ * Starts an asynchronous, deterministic PDF assembly. The manifest selects page
14
+ * ranges from source PDFs in output order, adds an outline, an optional linked
15
+ * contents page and optional Bates numbering, and splits the result into volumes.
16
+ * Optional compression downsamples oversized scans. Each volume becomes a new
17
+ * vault object. Source bookmarks, form fields and page labels are not carried
18
+ * over. Outputs are not indexed automatically. Completion is reported through
19
+ * vault.assembly webhooks.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const assembly = await client.vault.assemblies.create(
24
+ * 'id',
25
+ * {
26
+ * sources: [{ objectId: 'objectId' }],
27
+ * volumes: [
28
+ * {
29
+ * filename: 'filename',
30
+ * pages: [
31
+ * {
32
+ * end: 1,
33
+ * source: 0,
34
+ * start: 1,
35
+ * },
36
+ * ],
37
+ * },
38
+ * ],
39
+ * 'Idempotency-Key': 'x',
40
+ * },
41
+ * );
42
+ * ```
43
+ */
44
+ create(id, params, options) {
45
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
46
+ return this._client.post((0, path_1.path) `/vault/${id}/assemblies`, {
47
+ body,
48
+ ...options,
49
+ headers: (0, headers_1.buildHeaders)([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
50
+ });
51
+ }
52
+ /**
53
+ * Returns the status of a PDF assembly. Completed volumes include their page
54
+ * count, size, SHA-256 and Bates range.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const assembly = await client.vault.assemblies.retrieve(
59
+ * 'assemblyId',
60
+ * { id: 'id' },
61
+ * );
62
+ * ```
63
+ */
64
+ retrieve(assemblyID, params, options) {
65
+ const { id } = params;
66
+ return this._client.get((0, path_1.path) `/vault/${id}/assemblies/${assemblyID}`, options);
67
+ }
68
+ }
69
+ exports.Assemblies = Assemblies;
70
+ //# sourceMappingURL=assemblies.js.map