casedev 0.73.0 → 0.75.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 +14 -0
- package/package.json +1 -1
- package/resources/linc/v1/sessions.d.mts +9 -0
- package/resources/linc/v1/sessions.d.mts.map +1 -1
- package/resources/linc/v1/sessions.d.ts +9 -0
- package/resources/linc/v1/sessions.d.ts.map +1 -1
- package/resources/vault/assemblies.d.mts +34 -6
- package/resources/vault/assemblies.d.mts.map +1 -1
- package/resources/vault/assemblies.d.ts +34 -6
- package/resources/vault/assemblies.d.ts.map +1 -1
- package/resources/vault/index.d.mts +1 -1
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +1 -1
- package/resources/vault/index.d.ts.map +1 -1
- package/resources/vault/index.js.map +1 -1
- package/resources/vault/index.mjs.map +1 -1
- package/resources/vault/objects.d.mts +50 -6
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +50 -6
- package/resources/vault/objects.d.ts.map +1 -1
- package/resources/vault/objects.js +29 -5
- package/resources/vault/objects.js.map +1 -1
- package/resources/vault/objects.mjs +29 -5
- package/resources/vault/objects.mjs.map +1 -1
- package/resources/vault/vault.d.mts +2 -2
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +2 -2
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs.map +1 -1
- package/src/resources/linc/v1/sessions.ts +11 -0
- package/src/resources/vault/assemblies.ts +44 -6
- package/src/resources/vault/index.ts +1 -0
- package/src/resources/vault/objects.ts +65 -6
- package/src/resources/vault/vault.ts +2 -0
- 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
|
@@ -100,6 +100,12 @@ export interface AssemblyRetrieveResponse {
|
|
|
100
100
|
|
|
101
101
|
clientReference?: string;
|
|
102
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
|
+
|
|
103
109
|
error?: AssemblyRetrieveResponse.Error;
|
|
104
110
|
|
|
105
111
|
status?: 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled';
|
|
@@ -112,6 +118,28 @@ export interface AssemblyRetrieveResponse {
|
|
|
112
118
|
}
|
|
113
119
|
|
|
114
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
|
+
|
|
115
143
|
export interface Error {
|
|
116
144
|
code?: string;
|
|
117
145
|
|
|
@@ -155,10 +183,12 @@ export namespace AssemblyRetrieveResponse {
|
|
|
155
183
|
|
|
156
184
|
export interface AssemblyCreateParams {
|
|
157
185
|
/**
|
|
158
|
-
* Body param: Source PDFs
|
|
159
|
-
*
|
|
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. A source can
|
|
188
|
+
* also be a PDF you made, such as a cover or notice letter, sent inline. Page
|
|
189
|
+
* ranges refer to a source by its index in this list.
|
|
160
190
|
*/
|
|
161
|
-
sources: Array<AssemblyCreateParams.
|
|
191
|
+
sources: Array<AssemblyCreateParams.UnionMember0 | AssemblyCreateParams.Pdf>;
|
|
162
192
|
|
|
163
193
|
/**
|
|
164
194
|
* Body param
|
|
@@ -194,19 +224,27 @@ export interface AssemblyCreateParams {
|
|
|
194
224
|
linearize?: boolean;
|
|
195
225
|
|
|
196
226
|
/**
|
|
197
|
-
* Body param: Put every page upright on a US Letter
|
|
198
|
-
* pages
|
|
227
|
+
* Body param: Put every page upright on a US Letter sheet: portrait pages on a
|
|
228
|
+
* portrait sheet, landscape pages on a landscape sheet, other sizes scaled to fit
|
|
199
229
|
*/
|
|
200
230
|
pageSize?: 'letter';
|
|
201
231
|
}
|
|
202
232
|
|
|
203
233
|
export namespace AssemblyCreateParams {
|
|
204
|
-
export interface
|
|
234
|
+
export interface UnionMember0 {
|
|
205
235
|
objectId: string;
|
|
206
236
|
|
|
207
237
|
rendition?: 'searchable_pdf' | 'original';
|
|
208
238
|
}
|
|
209
239
|
|
|
240
|
+
export interface Pdf {
|
|
241
|
+
/**
|
|
242
|
+
* A base64 PDF of up to 10 pages and 1 MB, assembled as given. Up to 10 per
|
|
243
|
+
* request.
|
|
244
|
+
*/
|
|
245
|
+
pdf: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
210
248
|
export interface Volume {
|
|
211
249
|
/**
|
|
212
250
|
* Output filename, ending in .pdf
|
|
@@ -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
|
}
|
|
@@ -69,6 +69,7 @@ import {
|
|
|
69
69
|
ObjectOrganizeResponse,
|
|
70
70
|
ObjectRetrieveParams,
|
|
71
71
|
ObjectRetrieveResponse,
|
|
72
|
+
ObjectToPdfParams,
|
|
72
73
|
ObjectUpdateParams,
|
|
73
74
|
ObjectUpdateResponse,
|
|
74
75
|
Objects,
|
|
@@ -1233,6 +1234,7 @@ export declare namespace Vault {
|
|
|
1233
1234
|
type ObjectMergeParams as ObjectMergeParams,
|
|
1234
1235
|
type ObjectMoveParams as ObjectMoveParams,
|
|
1235
1236
|
type ObjectOrganizeParams as ObjectOrganizeParams,
|
|
1237
|
+
type ObjectToPdfParams as ObjectToPdfParams,
|
|
1236
1238
|
};
|
|
1237
1239
|
|
|
1238
1240
|
export {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.75.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.75.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.75.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.75.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|