casedev 0.69.0 → 0.70.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 +13 -0
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- 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 +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/applications/applications.d.mts +10 -0
- package/resources/connectors/v1/applications/applications.d.mts.map +1 -0
- package/resources/connectors/v1/applications/applications.d.ts +10 -0
- package/resources/connectors/v1/applications/applications.d.ts.map +1 -0
- package/resources/connectors/v1/applications/applications.js +17 -0
- package/resources/connectors/v1/applications/applications.js.map +1 -0
- package/resources/connectors/v1/applications/applications.mjs +12 -0
- package/resources/connectors/v1/applications/applications.mjs.map +1 -0
- package/resources/connectors/v1/applications/index.d.mts +3 -0
- package/resources/connectors/v1/applications/index.d.mts.map +1 -0
- package/resources/connectors/v1/applications/index.d.ts +3 -0
- package/resources/connectors/v1/applications/index.d.ts.map +1 -0
- package/resources/connectors/v1/applications/index.js +9 -0
- package/resources/connectors/v1/applications/index.js.map +1 -0
- package/resources/connectors/v1/applications/index.mjs +4 -0
- package/resources/connectors/v1/applications/index.mjs.map +1 -0
- package/resources/connectors/v1/applications/keys.d.mts +34 -0
- package/resources/connectors/v1/applications/keys.d.mts.map +1 -0
- package/resources/connectors/v1/applications/keys.d.ts +34 -0
- package/resources/connectors/v1/applications/keys.d.ts.map +1 -0
- package/resources/connectors/v1/applications/keys.js +34 -0
- package/resources/connectors/v1/applications/keys.js.map +1 -0
- package/resources/connectors/v1/applications/keys.mjs +30 -0
- package/resources/connectors/v1/applications/keys.mjs.map +1 -0
- package/resources/connectors/v1/applications.d.mts +2 -0
- package/resources/connectors/v1/applications.d.mts.map +1 -0
- package/resources/connectors/v1/applications.d.ts +2 -0
- package/resources/connectors/v1/applications.d.ts.map +1 -0
- package/resources/connectors/v1/applications.js +6 -0
- package/resources/connectors/v1/applications.js.map +1 -0
- package/resources/connectors/v1/applications.mjs +3 -0
- package/resources/connectors/v1/applications.mjs.map +1 -0
- package/resources/connectors/v1/connections.d.mts +124 -15
- package/resources/connectors/v1/connections.d.mts.map +1 -1
- package/resources/connectors/v1/connections.d.ts +124 -15
- package/resources/connectors/v1/connections.d.ts.map +1 -1
- package/resources/connectors/v1/connections.js +84 -12
- package/resources/connectors/v1/connections.js.map +1 -1
- package/resources/connectors/v1/connections.mjs +84 -12
- package/resources/connectors/v1/connections.mjs.map +1 -1
- package/resources/connectors/v1/index.d.mts +5 -4
- package/resources/connectors/v1/index.d.mts.map +1 -1
- package/resources/connectors/v1/index.d.ts +5 -4
- package/resources/connectors/v1/index.d.ts.map +1 -1
- package/resources/connectors/v1/index.js +5 -3
- package/resources/connectors/v1/index.js.map +1 -1
- package/resources/connectors/v1/index.mjs +1 -0
- package/resources/connectors/v1/index.mjs.map +1 -1
- package/resources/connectors/v1/installations/index.d.mts +2 -1
- package/resources/connectors/v1/installations/index.d.mts.map +1 -1
- package/resources/connectors/v1/installations/index.d.ts +2 -1
- package/resources/connectors/v1/installations/index.d.ts.map +1 -1
- package/resources/connectors/v1/installations/index.js +3 -1
- package/resources/connectors/v1/installations/index.js.map +1 -1
- package/resources/connectors/v1/installations/index.mjs +2 -1
- package/resources/connectors/v1/installations/index.mjs.map +1 -1
- package/resources/connectors/v1/installations/installations.d.mts +32 -4
- package/resources/connectors/v1/installations/installations.d.mts.map +1 -1
- package/resources/connectors/v1/installations/installations.d.ts +32 -4
- package/resources/connectors/v1/installations/installations.d.ts.map +1 -1
- package/resources/connectors/v1/installations/installations.js +11 -7
- package/resources/connectors/v1/installations/installations.js.map +1 -1
- package/resources/connectors/v1/installations/installations.mjs +11 -7
- package/resources/connectors/v1/installations/installations.mjs.map +1 -1
- package/resources/connectors/v1/installations/tokens.d.mts +37 -0
- package/resources/connectors/v1/installations/tokens.d.mts.map +1 -0
- package/resources/connectors/v1/installations/tokens.d.ts +37 -0
- package/resources/connectors/v1/installations/tokens.d.ts.map +1 -0
- package/resources/connectors/v1/installations/tokens.js +35 -0
- package/resources/connectors/v1/installations/tokens.js.map +1 -0
- package/resources/connectors/v1/installations/tokens.mjs +31 -0
- package/resources/connectors/v1/installations/tokens.mjs.map +1 -0
- package/resources/connectors/v1/installations/vaults.d.mts +1 -1
- package/resources/connectors/v1/installations/vaults.d.ts +1 -1
- package/resources/connectors/v1/installations/vaults.js +1 -1
- package/resources/connectors/v1/installations/vaults.mjs +1 -1
- package/resources/connectors/v1/links.d.mts +80 -6
- package/resources/connectors/v1/links.d.mts.map +1 -1
- package/resources/connectors/v1/links.d.ts +80 -6
- package/resources/connectors/v1/links.d.ts.map +1 -1
- package/resources/connectors/v1/links.js +55 -11
- package/resources/connectors/v1/links.js.map +1 -1
- package/resources/connectors/v1/links.mjs +55 -11
- package/resources/connectors/v1/links.mjs.map +1 -1
- package/resources/connectors/v1/v1.d.mts +169 -20
- package/resources/connectors/v1/v1.d.mts.map +1 -1
- package/resources/connectors/v1/v1.d.ts +169 -20
- package/resources/connectors/v1/v1.d.ts.map +1 -1
- package/resources/connectors/v1/v1.js +44 -13
- package/resources/connectors/v1/v1.js.map +1 -1
- package/resources/connectors/v1/v1.mjs +45 -14
- package/resources/connectors/v1/v1.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/linc/v1/index.d.mts +1 -1
- package/resources/linc/v1/index.d.mts.map +1 -1
- package/resources/linc/v1/index.d.ts +1 -1
- package/resources/linc/v1/index.d.ts.map +1 -1
- package/resources/linc/v1/index.js.map +1 -1
- package/resources/linc/v1/index.mjs.map +1 -1
- package/resources/linc/v1/sessions.d.mts +94 -12
- package/resources/linc/v1/sessions.d.mts.map +1 -1
- package/resources/linc/v1/sessions.d.ts +94 -12
- package/resources/linc/v1/sessions.d.ts.map +1 -1
- package/resources/linc/v1/sessions.js +25 -3
- package/resources/linc/v1/sessions.js.map +1 -1
- package/resources/linc/v1/sessions.mjs +25 -3
- package/resources/linc/v1/sessions.mjs.map +1 -1
- package/resources/linc/v1/v1.d.mts +2 -2
- package/resources/linc/v1/v1.d.mts.map +1 -1
- package/resources/linc/v1/v1.d.ts +2 -2
- package/resources/linc/v1/v1.d.ts.map +1 -1
- package/resources/linc/v1/v1.js.map +1 -1
- package/resources/linc/v1/v1.mjs.map +1 -1
- package/resources/llm/v1/chat.d.mts +23 -12
- package/resources/llm/v1/chat.d.mts.map +1 -1
- package/resources/llm/v1/chat.d.ts +23 -12
- package/resources/llm/v1/chat.d.ts.map +1 -1
- package/resources/llm/v1/chat.js +14 -2
- package/resources/llm/v1/chat.js.map +1 -1
- package/resources/llm/v1/chat.mjs +14 -2
- package/resources/llm/v1/chat.mjs.map +1 -1
- package/resources/llm/v1/v1.d.mts +3 -3
- package/resources/llm/v1/v1.d.ts +3 -3
- package/resources/llm/v1/v1.js +3 -3
- package/resources/llm/v1/v1.mjs +3 -3
- package/resources/matters/index.d.mts +1 -1
- package/resources/matters/index.d.mts.map +1 -1
- package/resources/matters/index.d.ts +1 -1
- package/resources/matters/index.d.ts.map +1 -1
- package/resources/matters/index.js.map +1 -1
- package/resources/matters/index.mjs +1 -1
- package/resources/matters/index.mjs.map +1 -1
- package/resources/matters/matters.d.mts +2 -2
- package/resources/matters/matters.d.mts.map +1 -1
- package/resources/matters/matters.d.ts +2 -2
- package/resources/matters/matters.d.ts.map +1 -1
- package/resources/matters/matters.js.map +1 -1
- package/resources/matters/matters.mjs.map +1 -1
- package/resources/matters/v1/content-purges.d.mts +69 -0
- package/resources/matters/v1/content-purges.d.mts.map +1 -0
- package/resources/matters/v1/content-purges.d.ts +69 -0
- package/resources/matters/v1/content-purges.d.ts.map +1 -0
- package/resources/matters/v1/content-purges.js +28 -0
- package/resources/matters/v1/content-purges.js.map +1 -0
- package/resources/matters/v1/content-purges.mjs +24 -0
- package/resources/matters/v1/content-purges.mjs.map +1 -0
- package/resources/matters/v1/events/subscriptions.d.mts +15 -1
- package/resources/matters/v1/events/subscriptions.d.mts.map +1 -1
- package/resources/matters/v1/events/subscriptions.d.ts +15 -1
- package/resources/matters/v1/events/subscriptions.d.ts.map +1 -1
- package/resources/matters/v1/events/subscriptions.js +6 -2
- package/resources/matters/v1/events/subscriptions.js.map +1 -1
- package/resources/matters/v1/events/subscriptions.mjs +6 -2
- package/resources/matters/v1/events/subscriptions.mjs.map +1 -1
- package/resources/matters/v1/index.d.mts +5 -3
- package/resources/matters/v1/index.d.mts.map +1 -1
- package/resources/matters/v1/index.d.ts +5 -3
- package/resources/matters/v1/index.d.ts.map +1 -1
- package/resources/matters/v1/index.js +5 -1
- package/resources/matters/v1/index.js.map +1 -1
- package/resources/matters/v1/index.mjs +3 -1
- package/resources/matters/v1/index.mjs.map +1 -1
- package/resources/matters/v1/parties.d.mts +29 -3
- package/resources/matters/v1/parties.d.mts.map +1 -1
- package/resources/matters/v1/parties.d.ts +29 -3
- package/resources/matters/v1/parties.d.ts.map +1 -1
- package/resources/matters/v1/parties.js +7 -6
- package/resources/matters/v1/parties.js.map +1 -1
- package/resources/matters/v1/parties.mjs +7 -6
- package/resources/matters/v1/parties.mjs.map +1 -1
- package/resources/matters/v1/purges.d.mts +43 -0
- package/resources/matters/v1/purges.d.mts.map +1 -0
- package/resources/matters/v1/purges.d.ts +43 -0
- package/resources/matters/v1/purges.d.ts.map +1 -0
- package/resources/matters/v1/purges.js +20 -0
- package/resources/matters/v1/purges.js.map +1 -0
- package/resources/matters/v1/purges.mjs +16 -0
- package/resources/matters/v1/purges.mjs.map +1 -0
- package/resources/matters/v1/v1.d.mts +74 -8
- package/resources/matters/v1/v1.d.mts.map +1 -1
- package/resources/matters/v1/v1.d.ts +74 -8
- package/resources/matters/v1/v1.d.ts.map +1 -1
- package/resources/matters/v1/v1.js +24 -6
- package/resources/matters/v1/v1.js.map +1 -1
- package/resources/matters/v1/v1.mjs +24 -6
- package/resources/matters/v1/v1.mjs.map +1 -1
- package/resources/matters/v1/work-items.d.mts +29 -3
- package/resources/matters/v1/work-items.d.mts.map +1 -1
- package/resources/matters/v1/work-items.d.ts +29 -3
- package/resources/matters/v1/work-items.d.ts.map +1 -1
- package/resources/matters/v1/work-items.js +7 -6
- package/resources/matters/v1/work-items.js.map +1 -1
- package/resources/matters/v1/work-items.mjs +7 -6
- package/resources/matters/v1/work-items.mjs.map +1 -1
- package/resources/skills/index.d.mts +1 -1
- package/resources/skills/index.d.mts.map +1 -1
- package/resources/skills/index.d.ts +1 -1
- package/resources/skills/index.d.ts.map +1 -1
- package/resources/skills/index.js.map +1 -1
- package/resources/skills/index.mjs.map +1 -1
- package/resources/skills/skills.d.mts +84 -4
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +84 -4
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +7 -0
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +7 -0
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/vault/events/subscriptions.d.mts +12 -6
- package/resources/vault/events/subscriptions.d.mts.map +1 -1
- package/resources/vault/events/subscriptions.d.ts +12 -6
- package/resources/vault/events/subscriptions.d.ts.map +1 -1
- package/resources/vault/events/subscriptions.js +6 -2
- package/resources/vault/events/subscriptions.js.map +1 -1
- package/resources/vault/events/subscriptions.mjs +6 -2
- package/resources/vault/events/subscriptions.mjs.map +1 -1
- package/resources/vault/groups.d.mts +1 -1
- package/resources/vault/groups.d.ts +1 -1
- package/resources/vault/groups.js +1 -1
- package/resources/vault/groups.mjs +1 -1
- package/resources/vault/index.d.mts +3 -3
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +3 -3
- 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/multipart.d.mts +49 -10
- package/resources/vault/multipart.d.mts.map +1 -1
- package/resources/vault/multipart.d.ts +49 -10
- package/resources/vault/multipart.d.ts.map +1 -1
- package/resources/vault/multipart.js +11 -12
- package/resources/vault/multipart.js.map +1 -1
- package/resources/vault/multipart.mjs +11 -12
- package/resources/vault/multipart.mjs.map +1 -1
- package/resources/vault/objects.d.mts +161 -15
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +161 -15
- package/resources/vault/objects.d.ts.map +1 -1
- package/resources/vault/objects.js +46 -11
- package/resources/vault/objects.js.map +1 -1
- package/resources/vault/objects.mjs +46 -11
- package/resources/vault/objects.mjs.map +1 -1
- package/resources/vault/vault.d.mts +123 -62
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +123 -62
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js +21 -20
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs +21 -20
- package/resources/vault/vault.mjs.map +1 -1
- package/resources/voice/transcription.d.mts +4 -0
- package/resources/voice/transcription.d.mts.map +1 -1
- package/resources/voice/transcription.d.ts +4 -0
- package/resources/voice/transcription.d.ts.map +1 -1
- package/resources/webhooks/v1/endpoints.d.mts +33 -2
- package/resources/webhooks/v1/endpoints.d.mts.map +1 -1
- package/resources/webhooks/v1/endpoints.d.ts +33 -2
- package/resources/webhooks/v1/endpoints.d.ts.map +1 -1
- package/resources/webhooks/v1/endpoints.js +1 -5
- package/resources/webhooks/v1/endpoints.js.map +1 -1
- package/resources/webhooks/v1/endpoints.mjs +1 -5
- package/resources/webhooks/v1/endpoints.mjs.map +1 -1
- package/resources/webhooks/v1/index.d.mts +1 -1
- package/resources/webhooks/v1/index.d.mts.map +1 -1
- package/resources/webhooks/v1/index.d.ts +1 -1
- package/resources/webhooks/v1/index.d.ts.map +1 -1
- package/resources/webhooks/v1/index.js.map +1 -1
- package/resources/webhooks/v1/index.mjs.map +1 -1
- package/resources/webhooks/v1/v1.d.mts +2 -2
- package/resources/webhooks/v1/v1.d.mts.map +1 -1
- package/resources/webhooks/v1/v1.d.ts +2 -2
- package/resources/webhooks/v1/v1.d.ts.map +1 -1
- package/resources/webhooks/v1/v1.js.map +1 -1
- package/resources/webhooks/v1/v1.mjs.map +1 -1
- package/src/client.ts +7 -1
- package/src/resources/connectors/connectors.ts +15 -1
- package/src/resources/connectors/index.ts +4 -0
- package/src/resources/connectors/v1/applications/applications.ts +20 -0
- package/src/resources/connectors/v1/applications/index.ts +4 -0
- package/src/resources/connectors/v1/applications/keys.ts +58 -0
- package/src/resources/connectors/v1/applications.ts +3 -0
- package/src/resources/connectors/v1/connections.ts +227 -20
- package/src/resources/connectors/v1/index.ts +9 -0
- package/src/resources/connectors/v1/installations/index.ts +7 -1
- package/src/resources/connectors/v1/installations/installations.ts +50 -8
- package/src/resources/connectors/v1/installations/tokens.ts +61 -0
- package/src/resources/connectors/v1/installations/vaults.ts +1 -1
- package/src/resources/connectors/v1/links.ts +140 -11
- package/src/resources/connectors/v1/v1.ts +246 -16
- package/src/resources/index.ts +3 -0
- package/src/resources/linc/v1/index.ts +2 -0
- package/src/resources/linc/v1/sessions.ts +138 -12
- package/src/resources/linc/v1/v1.ts +4 -0
- package/src/resources/llm/v1/chat.ts +38 -13
- package/src/resources/llm/v1/v1.ts +3 -3
- package/src/resources/matters/index.ts +8 -1
- package/src/resources/matters/matters.ts +3 -1
- package/src/resources/matters/v1/content-purges.ts +115 -0
- package/src/resources/matters/v1/events/subscriptions.ts +21 -2
- package/src/resources/matters/v1/index.ts +17 -2
- package/src/resources/matters/v1/parties.ts +44 -8
- package/src/resources/matters/v1/purges.ts +66 -0
- package/src/resources/matters/v1/v1.ts +117 -10
- package/src/resources/matters/v1/work-items.ts +37 -7
- package/src/resources/skills/index.ts +2 -0
- package/src/resources/skills/skills.ts +115 -3
- package/src/resources/vault/events/subscriptions.ts +18 -7
- package/src/resources/vault/groups.ts +1 -1
- package/src/resources/vault/index.ts +4 -0
- package/src/resources/vault/multipart.ts +59 -14
- package/src/resources/vault/objects.ts +203 -16
- package/src/resources/vault/vault.ts +148 -67
- package/src/resources/voice/transcription.ts +5 -0
- package/src/resources/webhooks/v1/endpoints.ts +52 -6
- package/src/resources/webhooks/v1/index.ts +1 -0
- package/src/resources/webhooks/v1/v1.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
|
@@ -7,7 +7,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Secure document storage with semantic search
|
|
10
|
+
* Secure document storage with semantic search
|
|
11
11
|
*/
|
|
12
12
|
export class Multipart extends APIResource {
|
|
13
13
|
/**
|
|
@@ -36,20 +36,23 @@ export class Multipart extends APIResource {
|
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* ```ts
|
|
39
|
-
* await client.vault.multipart.complete(
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
39
|
+
* const response = await client.vault.multipart.complete(
|
|
40
|
+
* 'id',
|
|
41
|
+
* {
|
|
42
|
+
* objectId: 'objectId',
|
|
43
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
44
|
+
* sizeBytes: 1,
|
|
45
|
+
* uploadId: 'uploadId',
|
|
46
|
+
* },
|
|
47
|
+
* );
|
|
45
48
|
* ```
|
|
46
49
|
*/
|
|
47
|
-
complete(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
});
|
|
50
|
+
complete(
|
|
51
|
+
id: string,
|
|
52
|
+
body: MultipartCompleteParams,
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): APIPromise<MultipartCompleteResponse> {
|
|
55
|
+
return this._client.post(path`/vault/${id}/multipart/complete`, { body, ...options });
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
/**
|
|
@@ -95,6 +98,30 @@ export class Multipart extends APIResource {
|
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
|
|
101
|
+
export interface MultipartCompleteResponse {
|
|
102
|
+
/**
|
|
103
|
+
* Present when autoIngest was requested
|
|
104
|
+
*/
|
|
105
|
+
ingest?: MultipartCompleteResponse.Ingest;
|
|
106
|
+
|
|
107
|
+
success?: boolean;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export namespace MultipartCompleteResponse {
|
|
111
|
+
/**
|
|
112
|
+
* Present when autoIngest was requested
|
|
113
|
+
*/
|
|
114
|
+
export interface Ingest {
|
|
115
|
+
error?: string;
|
|
116
|
+
|
|
117
|
+
statusCode?: number;
|
|
118
|
+
|
|
119
|
+
triggered?: boolean;
|
|
120
|
+
|
|
121
|
+
workflowId?: string | null;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
98
125
|
export interface MultipartGetPartURLsResponse {
|
|
99
126
|
urls?: Array<MultipartGetPartURLsResponse.URL>;
|
|
100
127
|
}
|
|
@@ -108,6 +135,11 @@ export namespace MultipartGetPartURLsResponse {
|
|
|
108
135
|
}
|
|
109
136
|
|
|
110
137
|
export interface MultipartInitResponse {
|
|
138
|
+
/**
|
|
139
|
+
* Client-defined provenance metadata associated with the file
|
|
140
|
+
*/
|
|
141
|
+
file_origin?: { [key: string]: unknown } | null;
|
|
142
|
+
|
|
111
143
|
next_step?: string;
|
|
112
144
|
|
|
113
145
|
objectId?: string;
|
|
@@ -145,6 +177,12 @@ export interface MultipartCompleteParams {
|
|
|
145
177
|
sizeBytes: number;
|
|
146
178
|
|
|
147
179
|
uploadId: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Start ingestion after completion when auto_index is enabled. The ingest response
|
|
183
|
+
* reports whether a workflow was started.
|
|
184
|
+
*/
|
|
185
|
+
autoIngest?: boolean;
|
|
148
186
|
}
|
|
149
187
|
|
|
150
188
|
export namespace MultipartCompleteParams {
|
|
@@ -208,6 +246,12 @@ export interface MultipartInitParams {
|
|
|
208
246
|
*/
|
|
209
247
|
auto_index?: boolean;
|
|
210
248
|
|
|
249
|
+
/**
|
|
250
|
+
* Optional client-defined provenance metadata. Returned with the object and
|
|
251
|
+
* queryable through the object-list API.
|
|
252
|
+
*/
|
|
253
|
+
file_origin?: { [key: string]: unknown };
|
|
254
|
+
|
|
211
255
|
/**
|
|
212
256
|
* Marks the file as AI-generated work product (e.g. uploaded by an agent) rather
|
|
213
257
|
* than a user-provided source document. Persisted on the object and returned by
|
|
@@ -226,13 +270,14 @@ export interface MultipartInitParams {
|
|
|
226
270
|
partSizeBytes?: number;
|
|
227
271
|
|
|
228
272
|
/**
|
|
229
|
-
* Optional folder path for hierarchy preservation
|
|
273
|
+
* Optional folder path, excluding the filename, for hierarchy preservation
|
|
230
274
|
*/
|
|
231
275
|
path?: string;
|
|
232
276
|
}
|
|
233
277
|
|
|
234
278
|
export declare namespace Multipart {
|
|
235
279
|
export {
|
|
280
|
+
type MultipartCompleteResponse as MultipartCompleteResponse,
|
|
236
281
|
type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse,
|
|
237
282
|
type MultipartInitResponse as MultipartInitResponse,
|
|
238
283
|
type MultipartAbortParams as MultipartAbortParams,
|
|
@@ -33,9 +33,9 @@ export class Objects extends APIResource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Update a document's filename, path, or metadata. Use this to rename files
|
|
37
|
-
* organize them into virtual folders. The path is
|
|
38
|
-
*
|
|
36
|
+
* Update a document's filename, folder path, or metadata. Use this to rename files
|
|
37
|
+
* or organize them into virtual folders. The path is a folder, not a complete file
|
|
38
|
+
* path, and is stored separately from the filename.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
@@ -59,8 +59,10 @@ export class Objects extends APIResource {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Retrieve
|
|
63
|
-
* ingestion status, and processing statistics.
|
|
62
|
+
* Retrieve the objects stored in a specific vault, oldest first, including
|
|
63
|
+
* document metadata, ingestion status, and processing statistics. Pass `limit` to
|
|
64
|
+
* page through large vaults: when `pagination.has_more` is true, the response is
|
|
65
|
+
* incomplete and `pagination.next_cursor` fetches the rest.
|
|
64
66
|
*
|
|
65
67
|
* @example
|
|
66
68
|
* ```ts
|
|
@@ -98,10 +100,11 @@ export class Objects extends APIResource {
|
|
|
98
100
|
|
|
99
101
|
/**
|
|
100
102
|
* Merges one or more PDF vault objects onto the end of an existing PDF vault
|
|
101
|
-
* object
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* appended pages
|
|
103
|
+
* object. Sync mode is the default and overwrites the target in place before
|
|
104
|
+
* returning. Async mode returns 202 immediately and reports completion through
|
|
105
|
+
* vault.object.append webhooks. Optionally rewrites citation links in the original
|
|
106
|
+
* target into internal PDF jumps and adds back links on appended pages. The target
|
|
107
|
+
* object’s ingestion state is not affected; appended pages are not searchable.
|
|
105
108
|
*
|
|
106
109
|
* @example
|
|
107
110
|
* ```ts
|
|
@@ -116,8 +119,15 @@ export class Objects extends APIResource {
|
|
|
116
119
|
params: ObjectAppendParams,
|
|
117
120
|
options?: RequestOptions,
|
|
118
121
|
): APIPromise<ObjectAppendResponse> {
|
|
119
|
-
const { id, ...body } = params;
|
|
120
|
-
return this._client.post(path`/vault/${id}/objects/${objectID}/append`, {
|
|
122
|
+
const { id, 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
123
|
+
return this._client.post(path`/vault/${id}/objects/${objectID}/append`, {
|
|
124
|
+
body,
|
|
125
|
+
...options,
|
|
126
|
+
headers: buildHeaders([
|
|
127
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
128
|
+
options?.headers,
|
|
129
|
+
]),
|
|
130
|
+
});
|
|
121
131
|
}
|
|
122
132
|
|
|
123
133
|
/**
|
|
@@ -292,6 +302,32 @@ export class Objects extends APIResource {
|
|
|
292
302
|
headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
|
|
293
303
|
});
|
|
294
304
|
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Copies storage and search data without downloading the file through the client.
|
|
308
|
+
* Moves preserve object IDs; copies return new IDs. Extracted ZIP children travel
|
|
309
|
+
* with their parent. Retry failed objects with the same Idempotency-Key;
|
|
310
|
+
* successful objects are replayed without transfer. Object ID order does not
|
|
311
|
+
* affect the key.
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```ts
|
|
315
|
+
* const response = await client.vault.objects.move('id', {
|
|
316
|
+
* destinationVaultId: 'destinationVaultId',
|
|
317
|
+
* mode: 'move',
|
|
318
|
+
* objectIds: ['string'],
|
|
319
|
+
* 'Idempotency-Key': 'Idempotency-Key',
|
|
320
|
+
* });
|
|
321
|
+
* ```
|
|
322
|
+
*/
|
|
323
|
+
move(id: string, params: ObjectMoveParams, options?: RequestOptions): APIPromise<ObjectMoveResponse> {
|
|
324
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
325
|
+
return this._client.post(path`/vault/${id}/objects/move`, {
|
|
326
|
+
body,
|
|
327
|
+
...options,
|
|
328
|
+
headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
|
|
329
|
+
});
|
|
330
|
+
}
|
|
295
331
|
}
|
|
296
332
|
|
|
297
333
|
export interface ObjectRetrieveResponse {
|
|
@@ -340,6 +376,11 @@ export interface ObjectRetrieveResponse {
|
|
|
340
376
|
*/
|
|
341
377
|
chunkCount?: number;
|
|
342
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Client-defined provenance metadata associated with the file
|
|
381
|
+
*/
|
|
382
|
+
file_origin?: { [key: string]: unknown } | null;
|
|
383
|
+
|
|
343
384
|
/**
|
|
344
385
|
* Error details when ingestion fails
|
|
345
386
|
*/
|
|
@@ -435,16 +476,25 @@ export interface ObjectUpdateResponse {
|
|
|
435
476
|
|
|
436
477
|
export interface ObjectListResponse {
|
|
437
478
|
/**
|
|
438
|
-
*
|
|
479
|
+
* Number of objects in this response. Equals the vault total only when
|
|
480
|
+
* `pagination.has_more` is false; use `totals.objects` for the total across pages.
|
|
439
481
|
*/
|
|
440
482
|
count: number;
|
|
441
483
|
|
|
442
484
|
objects: Array<ObjectListResponse.Object>;
|
|
443
485
|
|
|
486
|
+
pagination: ObjectListResponse.Pagination;
|
|
487
|
+
|
|
444
488
|
/**
|
|
445
489
|
* The ID of the vault
|
|
446
490
|
*/
|
|
447
491
|
vaultId: string;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Present only with `include_totals=true`. Covers every object matching the
|
|
495
|
+
* filters, across all pages.
|
|
496
|
+
*/
|
|
497
|
+
totals?: ObjectListResponse.Totals;
|
|
448
498
|
}
|
|
449
499
|
|
|
450
500
|
export namespace ObjectListResponse {
|
|
@@ -479,6 +529,11 @@ export namespace ObjectListResponse {
|
|
|
479
529
|
*/
|
|
480
530
|
chunkCount?: number;
|
|
481
531
|
|
|
532
|
+
/**
|
|
533
|
+
* Client-defined provenance metadata associated with the file
|
|
534
|
+
*/
|
|
535
|
+
file_origin?: { [key: string]: unknown } | null;
|
|
536
|
+
|
|
482
537
|
/**
|
|
483
538
|
* Processing completion timestamp
|
|
484
539
|
*/
|
|
@@ -495,7 +550,8 @@ export namespace ObjectListResponse {
|
|
|
495
550
|
ingestionStartedAt?: string | null;
|
|
496
551
|
|
|
497
552
|
/**
|
|
498
|
-
* Durable workflow run ID for the active or last ingestion attempt
|
|
553
|
+
* Durable workflow run ID for the active or last ingestion attempt. Null while a
|
|
554
|
+
* dispatch claim is being reconciled or when no workflow applies.
|
|
499
555
|
*/
|
|
500
556
|
ingestionWorkflowId?: string | null;
|
|
501
557
|
|
|
@@ -539,6 +595,39 @@ export namespace ObjectListResponse {
|
|
|
539
595
|
*/
|
|
540
596
|
vectorCount?: number;
|
|
541
597
|
}
|
|
598
|
+
|
|
599
|
+
export interface Pagination {
|
|
600
|
+
/**
|
|
601
|
+
* Whether more objects exist beyond this page.
|
|
602
|
+
*/
|
|
603
|
+
has_more: boolean;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Page size applied, or null when every object was returned.
|
|
607
|
+
*/
|
|
608
|
+
limit: number | null;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Pass as `cursor` to fetch the next page. Null on the final page.
|
|
612
|
+
*/
|
|
613
|
+
next_cursor: string | null;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Present only with `include_totals=true`. Covers every object matching the
|
|
618
|
+
* filters, across all pages.
|
|
619
|
+
*/
|
|
620
|
+
export interface Totals {
|
|
621
|
+
/**
|
|
622
|
+
* Number of matching objects
|
|
623
|
+
*/
|
|
624
|
+
objects?: number;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Combined size of matching objects
|
|
628
|
+
*/
|
|
629
|
+
totalBytes?: number;
|
|
630
|
+
}
|
|
542
631
|
}
|
|
543
632
|
|
|
544
633
|
export interface ObjectDeleteResponse {
|
|
@@ -574,6 +663,16 @@ export namespace ObjectDeleteResponse {
|
|
|
574
663
|
export interface ObjectAppendResponse {
|
|
575
664
|
id?: string;
|
|
576
665
|
|
|
666
|
+
/**
|
|
667
|
+
* Last 1-indexed page added by this append operation.
|
|
668
|
+
*/
|
|
669
|
+
appendedPageEnd?: number;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* First 1-indexed page added by this append operation.
|
|
673
|
+
*/
|
|
674
|
+
appendedPageStart?: number;
|
|
675
|
+
|
|
577
676
|
bates?: unknown;
|
|
578
677
|
|
|
579
678
|
checksum?: string;
|
|
@@ -902,6 +1001,16 @@ export interface ObjectMergeResponse {
|
|
|
902
1001
|
workflowId?: string;
|
|
903
1002
|
}
|
|
904
1003
|
|
|
1004
|
+
export interface ObjectMoveResponse {
|
|
1005
|
+
destinationVaultId?: string;
|
|
1006
|
+
|
|
1007
|
+
mode?: string;
|
|
1008
|
+
|
|
1009
|
+
results?: Array<unknown>;
|
|
1010
|
+
|
|
1011
|
+
sourceVaultId?: string;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
905
1014
|
export interface ObjectRetrieveParams {
|
|
906
1015
|
/**
|
|
907
1016
|
* Vault ID
|
|
@@ -926,18 +1035,48 @@ export interface ObjectUpdateParams {
|
|
|
926
1035
|
metadata?: unknown;
|
|
927
1036
|
|
|
928
1037
|
/**
|
|
929
|
-
* Body param: Folder path for hierarchy preservation
|
|
930
|
-
* '/Discovery/Depositions'). Set to null or empty string to remove.
|
|
1038
|
+
* Body param: Folder path, excluding the filename, for hierarchy preservation
|
|
1039
|
+
* (e.g., '/Discovery/Depositions'). Set to null or empty string to remove.
|
|
931
1040
|
*/
|
|
932
1041
|
path?: string | null;
|
|
933
1042
|
}
|
|
934
1043
|
|
|
935
1044
|
export interface ObjectListParams {
|
|
1045
|
+
/**
|
|
1046
|
+
* Opaque continuation cursor from `pagination.next_cursor` of the previous page.
|
|
1047
|
+
* Must be replayed with the same API key scope and the same `query`, `file_origin`
|
|
1048
|
+
* and `includeUnconfirmed` values that produced it.
|
|
1049
|
+
*/
|
|
1050
|
+
cursor?: string;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* JSON-encoded provenance object used as a partial match. For example,
|
|
1054
|
+
* {"provider":"clio"} returns objects whose file_origin contains that value.
|
|
1055
|
+
*/
|
|
1056
|
+
file_origin?: string;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* When `true`, adds `totals` covering every object matching the filters, not just
|
|
1060
|
+
* this page. Request it once per filter change rather than on every page.
|
|
1061
|
+
*/
|
|
1062
|
+
include_totals?: boolean;
|
|
1063
|
+
|
|
936
1064
|
/**
|
|
937
1065
|
* Include placeholders for uploads that were never completed (awaiting_upload) or
|
|
938
1066
|
* were cancelled (aborted). Excluded by default.
|
|
939
1067
|
*/
|
|
940
1068
|
includeUnconfirmed?: boolean;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Objects per page (1-200). Omit to receive every object. Supplying a cursor
|
|
1072
|
+
* without a limit uses 50.
|
|
1073
|
+
*/
|
|
1074
|
+
limit?: number;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Case-insensitive substring match on the filename.
|
|
1078
|
+
*/
|
|
1079
|
+
query?: string;
|
|
941
1080
|
}
|
|
942
1081
|
|
|
943
1082
|
export interface ObjectDeleteParams {
|
|
@@ -961,7 +1100,8 @@ export interface ObjectAppendParams {
|
|
|
961
1100
|
|
|
962
1101
|
/**
|
|
963
1102
|
* Body param: Vault object IDs whose pages will be appended onto the target
|
|
964
|
-
* object, in order. Must not include the target object itself.
|
|
1103
|
+
* object, in order. Must not include the target object itself. Sync mode accepts
|
|
1104
|
+
* at most 20; async mode accepts at most 1000.
|
|
965
1105
|
*/
|
|
966
1106
|
appendObjectIds: Array<string>;
|
|
967
1107
|
|
|
@@ -983,12 +1123,30 @@ export interface ObjectAppendParams {
|
|
|
983
1123
|
*/
|
|
984
1124
|
bates?: ObjectAppendParams.Bates;
|
|
985
1125
|
|
|
1126
|
+
/**
|
|
1127
|
+
* Body param: Caller-provided correlation value returned in async responses and
|
|
1128
|
+
* webhooks.
|
|
1129
|
+
*/
|
|
1130
|
+
clientReference?: string;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Body param: Use async to return immediately and receive completion through
|
|
1134
|
+
* vault.object.append webhooks.
|
|
1135
|
+
*/
|
|
1136
|
+
mode?: 'sync' | 'async';
|
|
1137
|
+
|
|
986
1138
|
/**
|
|
987
1139
|
* Body param: When true, rewrites links in the target object to internal PDF jumps
|
|
988
1140
|
* when the URL contains exactly one appended object ID as a standalone query
|
|
989
1141
|
* parameter value or decoded path segment.
|
|
990
1142
|
*/
|
|
991
1143
|
rewriteLinks?: boolean;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Header param: Required when mode is async; stable key for safely retrying the
|
|
1147
|
+
* append
|
|
1148
|
+
*/
|
|
1149
|
+
'Idempotency-Key'?: string;
|
|
992
1150
|
}
|
|
993
1151
|
|
|
994
1152
|
export namespace ObjectAppendParams {
|
|
@@ -1158,6 +1316,33 @@ export namespace ObjectMergeParams {
|
|
|
1158
1316
|
}
|
|
1159
1317
|
}
|
|
1160
1318
|
|
|
1319
|
+
export interface ObjectMoveParams {
|
|
1320
|
+
/**
|
|
1321
|
+
* Body param
|
|
1322
|
+
*/
|
|
1323
|
+
destinationVaultId: string;
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* Body param
|
|
1327
|
+
*/
|
|
1328
|
+
mode: 'move' | 'copy';
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Body param
|
|
1332
|
+
*/
|
|
1333
|
+
objectIds: Array<string>;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Header param
|
|
1337
|
+
*/
|
|
1338
|
+
'Idempotency-Key': string;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Body param
|
|
1342
|
+
*/
|
|
1343
|
+
path?: string | null;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1161
1346
|
export declare namespace Objects {
|
|
1162
1347
|
export {
|
|
1163
1348
|
type ObjectRetrieveResponse as ObjectRetrieveResponse,
|
|
@@ -1171,6 +1356,7 @@ export declare namespace Objects {
|
|
|
1171
1356
|
type ObjectGetPagesResponse as ObjectGetPagesResponse,
|
|
1172
1357
|
type ObjectGetTextResponse as ObjectGetTextResponse,
|
|
1173
1358
|
type ObjectMergeResponse as ObjectMergeResponse,
|
|
1359
|
+
type ObjectMoveResponse as ObjectMoveResponse,
|
|
1174
1360
|
type ObjectRetrieveParams as ObjectRetrieveParams,
|
|
1175
1361
|
type ObjectUpdateParams as ObjectUpdateParams,
|
|
1176
1362
|
type ObjectListParams as ObjectListParams,
|
|
@@ -1183,5 +1369,6 @@ export declare namespace Objects {
|
|
|
1183
1369
|
type ObjectGetPagesParams as ObjectGetPagesParams,
|
|
1184
1370
|
type ObjectGetTextParams as ObjectGetTextParams,
|
|
1185
1371
|
type ObjectMergeParams as ObjectMergeParams,
|
|
1372
|
+
type ObjectMoveParams as ObjectMoveParams,
|
|
1186
1373
|
};
|
|
1187
1374
|
}
|