casedev 0.73.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 (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/linc/v1/sessions.d.mts +9 -0
  4. package/resources/linc/v1/sessions.d.mts.map +1 -1
  5. package/resources/linc/v1/sessions.d.ts +9 -0
  6. package/resources/linc/v1/sessions.d.ts.map +1 -1
  7. package/resources/vault/assemblies.d.mts +22 -2
  8. package/resources/vault/assemblies.d.mts.map +1 -1
  9. package/resources/vault/assemblies.d.ts +22 -2
  10. package/resources/vault/assemblies.d.ts.map +1 -1
  11. package/resources/vault/index.d.mts +1 -1
  12. package/resources/vault/index.d.mts.map +1 -1
  13. package/resources/vault/index.d.ts +1 -1
  14. package/resources/vault/index.d.ts.map +1 -1
  15. package/resources/vault/index.js.map +1 -1
  16. package/resources/vault/index.mjs.map +1 -1
  17. package/resources/vault/objects.d.mts +50 -6
  18. package/resources/vault/objects.d.mts.map +1 -1
  19. package/resources/vault/objects.d.ts +50 -6
  20. package/resources/vault/objects.d.ts.map +1 -1
  21. package/resources/vault/objects.js +29 -5
  22. package/resources/vault/objects.js.map +1 -1
  23. package/resources/vault/objects.mjs +29 -5
  24. package/resources/vault/objects.mjs.map +1 -1
  25. package/resources/vault/vault.d.mts +2 -2
  26. package/resources/vault/vault.d.mts.map +1 -1
  27. package/resources/vault/vault.d.ts +2 -2
  28. package/resources/vault/vault.d.ts.map +1 -1
  29. package/resources/vault/vault.js.map +1 -1
  30. package/resources/vault/vault.mjs.map +1 -1
  31. package/src/resources/linc/v1/sessions.ts +11 -0
  32. package/src/resources/vault/assemblies.ts +31 -2
  33. package/src/resources/vault/index.ts +1 -0
  34. package/src/resources/vault/objects.ts +65 -6
  35. package/src/resources/vault/vault.ts +2 -0
  36. package/src/version.ts +1 -1
  37. package/version.d.mts +1 -1
  38. package/version.d.ts +1 -1
  39. package/version.js +1 -1
  40. package/version.mjs +1 -1
@@ -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.73.0'; // x-release-please-version
1
+ export const VERSION = '0.74.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.73.0";
1
+ export declare const VERSION = "0.74.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.73.0";
1
+ export declare const VERSION = "0.74.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.73.0'; // x-release-please-version
4
+ exports.VERSION = '0.74.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.73.0'; // x-release-please-version
1
+ export const VERSION = '0.74.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map