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
|
@@ -0,0 +1,66 @@
|
|
|
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 { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Matter-native legal workspaces and orchestration primitives
|
|
10
|
+
*/
|
|
11
|
+
export class Purges extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a Matter purge receipt for manual diagnostics. Integrations should
|
|
14
|
+
* subscribe to Matter purge webhooks rather than polling this route.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(purgeID: string, options?: RequestOptions): APIPromise<PurgeRetrieveResponse> {
|
|
17
|
+
return this._client.get(path`/matters/v1/purges/${purgeID}`, options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface PurgeRetrieveResponse {
|
|
22
|
+
attempt: number;
|
|
23
|
+
|
|
24
|
+
matter_id: string;
|
|
25
|
+
|
|
26
|
+
purge_id: string;
|
|
27
|
+
|
|
28
|
+
status: 'queued' | 'in_progress' | 'failed' | 'completed';
|
|
29
|
+
|
|
30
|
+
vault_id: string;
|
|
31
|
+
|
|
32
|
+
workflow_id: string | null;
|
|
33
|
+
|
|
34
|
+
completed_at?: string | null;
|
|
35
|
+
|
|
36
|
+
counts?: PurgeRetrieveResponse.Counts;
|
|
37
|
+
|
|
38
|
+
failed_at?: string | null;
|
|
39
|
+
|
|
40
|
+
failure_code?: string | null;
|
|
41
|
+
|
|
42
|
+
requested_at?: string;
|
|
43
|
+
|
|
44
|
+
started_at?: string | null;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Stable ID of the failed or completed terminal webhook event
|
|
48
|
+
*/
|
|
49
|
+
terminal_event_id?: string | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace PurgeRetrieveResponse {
|
|
53
|
+
export interface Counts {
|
|
54
|
+
chats?: number;
|
|
55
|
+
|
|
56
|
+
objects?: number;
|
|
57
|
+
|
|
58
|
+
sessions?: number;
|
|
59
|
+
|
|
60
|
+
transcriptions?: number;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare namespace Purges {
|
|
65
|
+
export { type PurgeRetrieveResponse as PurgeRetrieveResponse };
|
|
66
|
+
}
|
|
@@ -3,12 +3,21 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as AgentTypesAPI from './agent-types';
|
|
5
5
|
import { AgentTypeCreateParams, AgentTypeListParams, AgentTypes } from './agent-types';
|
|
6
|
+
import * as ContentPurgesAPI from './content-purges';
|
|
7
|
+
import {
|
|
8
|
+
ContentPurgeCreateParams,
|
|
9
|
+
ContentPurgeCreateResponse,
|
|
10
|
+
ContentPurgeRetrieveResponse,
|
|
11
|
+
ContentPurges,
|
|
12
|
+
} from './content-purges';
|
|
6
13
|
import * as LogAPI from './log';
|
|
7
14
|
import { Log, LogCreateParams, LogExportParams, LogExportResponse, LogListParams } from './log';
|
|
8
15
|
import * as MatterPartiesAPI from './matter-parties';
|
|
9
16
|
import { MatterParties, MatterPartyCreateParams } from './matter-parties';
|
|
10
17
|
import * as PartiesAPI from './parties';
|
|
11
|
-
import { Parties, PartyCreateParams, PartyListParams } from './parties';
|
|
18
|
+
import { Parties, PartyCreateParams, PartyListParams, PartyListResponse } from './parties';
|
|
19
|
+
import * as PurgesAPI from './purges';
|
|
20
|
+
import { PurgeRetrieveResponse, Purges } from './purges';
|
|
12
21
|
import * as SharesAPI from './shares';
|
|
13
22
|
import { ShareCreateParams, ShareDeleteParams, Shares } from './shares';
|
|
14
23
|
import * as TypesAPI from './types';
|
|
@@ -18,6 +27,7 @@ import {
|
|
|
18
27
|
WorkItemCreateParams,
|
|
19
28
|
WorkItemDecideParams,
|
|
20
29
|
WorkItemListParams,
|
|
30
|
+
WorkItemListResponse,
|
|
21
31
|
WorkItemRetrieveParams,
|
|
22
32
|
WorkItemUpdateParams,
|
|
23
33
|
WorkItems,
|
|
@@ -33,6 +43,8 @@ import { path } from '../../../internal/utils/path';
|
|
|
33
43
|
* Matter-native legal workspaces and orchestration primitives
|
|
34
44
|
*/
|
|
35
45
|
export class V1 extends APIResource {
|
|
46
|
+
purges: PurgesAPI.Purges = new PurgesAPI.Purges(this._client);
|
|
47
|
+
contentPurges: ContentPurgesAPI.ContentPurges = new ContentPurgesAPI.ContentPurges(this._client);
|
|
36
48
|
agentTypes: AgentTypesAPI.AgentTypes = new AgentTypesAPI.AgentTypes(this._client);
|
|
37
49
|
parties: PartiesAPI.Parties = new PartiesAPI.Parties(this._client);
|
|
38
50
|
types: TypesAPI.Types = new TypesAPI.Types(this._client);
|
|
@@ -75,14 +87,84 @@ export class V1 extends APIResource {
|
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
/**
|
|
78
|
-
* List matters for the authenticated organization.
|
|
90
|
+
* List matters for the authenticated organization, newest update first. Pagination
|
|
91
|
+
* is opt-in: pass `limit` (1-200) to receive a bounded page, then replay
|
|
92
|
+
* `pagination.next_cursor` as `?cursor=` while `pagination.has_more` is true.
|
|
93
|
+
* Cursors are opaque and are only valid for the exact filter set they were issued
|
|
94
|
+
* under. A request with neither `limit` nor `cursor` still returns every matter,
|
|
95
|
+
* and `pagination.limit` is null. That default will become a bounded page in a
|
|
96
|
+
* future release — paginate now to avoid the change.
|
|
79
97
|
*/
|
|
80
|
-
list(query: V1ListParams | null | undefined = {}, options?: RequestOptions): APIPromise<
|
|
81
|
-
return this._client.get('/matters/v1', {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
98
|
+
list(query: V1ListParams | null | undefined = {}, options?: RequestOptions): APIPromise<V1ListResponse> {
|
|
99
|
+
return this._client.get('/matters/v1', { query, ...options });
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Queues a durable, idempotent purge of a Matter and all linked live content. Use
|
|
104
|
+
* matter purge webhooks for status changes; the inspection route is intended for
|
|
105
|
+
* manual diagnostics only.
|
|
106
|
+
*/
|
|
107
|
+
delete(id: string, options?: RequestOptions): APIPromise<V1DeleteResponse> {
|
|
108
|
+
return this._client.delete(path`/matters/v1/${id}`, options);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface V1ListResponse {
|
|
113
|
+
data?: Array<unknown>;
|
|
114
|
+
|
|
115
|
+
pagination?: V1ListResponse.Pagination;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export namespace V1ListResponse {
|
|
119
|
+
export interface Pagination {
|
|
120
|
+
has_more?: boolean;
|
|
121
|
+
|
|
122
|
+
limit?: number | null;
|
|
123
|
+
|
|
124
|
+
next_cursor?: string | null;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface V1DeleteResponse {
|
|
129
|
+
attempt: number;
|
|
130
|
+
|
|
131
|
+
matter_id: string;
|
|
132
|
+
|
|
133
|
+
purge_id: string;
|
|
134
|
+
|
|
135
|
+
status: 'queued' | 'in_progress' | 'failed' | 'completed';
|
|
136
|
+
|
|
137
|
+
vault_id: string;
|
|
138
|
+
|
|
139
|
+
workflow_id: string | null;
|
|
140
|
+
|
|
141
|
+
completed_at?: string | null;
|
|
142
|
+
|
|
143
|
+
counts?: V1DeleteResponse.Counts;
|
|
144
|
+
|
|
145
|
+
failed_at?: string | null;
|
|
146
|
+
|
|
147
|
+
failure_code?: string | null;
|
|
148
|
+
|
|
149
|
+
requested_at?: string;
|
|
150
|
+
|
|
151
|
+
started_at?: string | null;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Stable ID of the failed or completed terminal webhook event
|
|
155
|
+
*/
|
|
156
|
+
terminal_event_id?: string | null;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export namespace V1DeleteResponse {
|
|
160
|
+
export interface Counts {
|
|
161
|
+
chats?: number;
|
|
162
|
+
|
|
163
|
+
objects?: number;
|
|
164
|
+
|
|
165
|
+
sessions?: number;
|
|
166
|
+
|
|
167
|
+
transcriptions?: number;
|
|
86
168
|
}
|
|
87
169
|
}
|
|
88
170
|
|
|
@@ -126,8 +208,6 @@ export namespace V1CreateParams {
|
|
|
126
208
|
export interface Vault {
|
|
127
209
|
description?: string;
|
|
128
210
|
|
|
129
|
-
enableGraph?: boolean;
|
|
130
|
-
|
|
131
211
|
enableIndexing?: boolean;
|
|
132
212
|
|
|
133
213
|
metadata?: { [key: string]: unknown };
|
|
@@ -169,6 +249,18 @@ export interface V1UpdateParams {
|
|
|
169
249
|
}
|
|
170
250
|
|
|
171
251
|
export interface V1ListParams {
|
|
252
|
+
/**
|
|
253
|
+
* Opaque continuation cursor from `pagination.next_cursor` of the previous page.
|
|
254
|
+
* Must be replayed with the same filters that produced it.
|
|
255
|
+
*/
|
|
256
|
+
cursor?: string;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Matters per page (1-200). Omit to receive every matter. Supplying a cursor
|
|
260
|
+
* without a limit uses 50.
|
|
261
|
+
*/
|
|
262
|
+
limit?: number;
|
|
263
|
+
|
|
172
264
|
matter_type?: string;
|
|
173
265
|
|
|
174
266
|
practice_area?: string;
|
|
@@ -178,6 +270,8 @@ export interface V1ListParams {
|
|
|
178
270
|
status?: string;
|
|
179
271
|
}
|
|
180
272
|
|
|
273
|
+
V1.Purges = Purges;
|
|
274
|
+
V1.ContentPurges = ContentPurges;
|
|
181
275
|
V1.AgentTypes = AgentTypes;
|
|
182
276
|
V1.Parties = Parties;
|
|
183
277
|
V1.Types = Types;
|
|
@@ -189,11 +283,22 @@ V1.WorkItems = WorkItems;
|
|
|
189
283
|
|
|
190
284
|
export declare namespace V1 {
|
|
191
285
|
export {
|
|
286
|
+
type V1ListResponse as V1ListResponse,
|
|
287
|
+
type V1DeleteResponse as V1DeleteResponse,
|
|
192
288
|
type V1CreateParams as V1CreateParams,
|
|
193
289
|
type V1UpdateParams as V1UpdateParams,
|
|
194
290
|
type V1ListParams as V1ListParams,
|
|
195
291
|
};
|
|
196
292
|
|
|
293
|
+
export { Purges as Purges, type PurgeRetrieveResponse as PurgeRetrieveResponse };
|
|
294
|
+
|
|
295
|
+
export {
|
|
296
|
+
ContentPurges as ContentPurges,
|
|
297
|
+
type ContentPurgeCreateResponse as ContentPurgeCreateResponse,
|
|
298
|
+
type ContentPurgeRetrieveResponse as ContentPurgeRetrieveResponse,
|
|
299
|
+
type ContentPurgeCreateParams as ContentPurgeCreateParams,
|
|
300
|
+
};
|
|
301
|
+
|
|
197
302
|
export {
|
|
198
303
|
AgentTypes as AgentTypes,
|
|
199
304
|
type AgentTypeCreateParams as AgentTypeCreateParams,
|
|
@@ -202,6 +307,7 @@ export declare namespace V1 {
|
|
|
202
307
|
|
|
203
308
|
export {
|
|
204
309
|
Parties as Parties,
|
|
310
|
+
type PartyListResponse as PartyListResponse,
|
|
205
311
|
type PartyCreateParams as PartyCreateParams,
|
|
206
312
|
type PartyListParams as PartyListParams,
|
|
207
313
|
};
|
|
@@ -233,6 +339,7 @@ export declare namespace V1 {
|
|
|
233
339
|
|
|
234
340
|
export {
|
|
235
341
|
WorkItems as WorkItems,
|
|
342
|
+
type WorkItemListResponse as WorkItemListResponse,
|
|
236
343
|
type WorkItemCreateParams as WorkItemCreateParams,
|
|
237
344
|
type WorkItemRetrieveParams as WorkItemRetrieveParams,
|
|
238
345
|
type WorkItemUpdateParams as WorkItemUpdateParams,
|
|
@@ -45,18 +45,19 @@ export class WorkItems extends APIResource {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* List active work items for a matter.
|
|
48
|
+
* List active work items for a matter, newest update first. Pagination is opt-in:
|
|
49
|
+
* pass `limit` (1-200) to receive a bounded page, then replay
|
|
50
|
+
* `pagination.next_cursor` as `?cursor=` while `pagination.has_more` is true. A
|
|
51
|
+
* request with neither `limit` nor `cursor` still returns every work item, and
|
|
52
|
+
* `pagination.limit` is null. That default will become a bounded page in a future
|
|
53
|
+
* release — paginate now to avoid the change.
|
|
49
54
|
*/
|
|
50
55
|
list(
|
|
51
56
|
id: string,
|
|
52
57
|
query: WorkItemListParams | null | undefined = {},
|
|
53
58
|
options?: RequestOptions,
|
|
54
|
-
): APIPromise<
|
|
55
|
-
return this._client.get(path`/matters/v1/${id}/work-items`, {
|
|
56
|
-
query,
|
|
57
|
-
...options,
|
|
58
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
59
|
-
});
|
|
59
|
+
): APIPromise<WorkItemListResponse> {
|
|
60
|
+
return this._client.get(path`/matters/v1/${id}/work-items`, { query, ...options });
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
/**
|
|
@@ -72,6 +73,22 @@ export class WorkItems extends APIResource {
|
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
export interface WorkItemListResponse {
|
|
77
|
+
data?: Array<unknown>;
|
|
78
|
+
|
|
79
|
+
pagination?: WorkItemListResponse.Pagination;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export namespace WorkItemListResponse {
|
|
83
|
+
export interface Pagination {
|
|
84
|
+
has_more?: boolean;
|
|
85
|
+
|
|
86
|
+
limit?: number | null;
|
|
87
|
+
|
|
88
|
+
next_cursor?: string | null;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
75
92
|
export interface WorkItemCreateParams {
|
|
76
93
|
title: string;
|
|
77
94
|
|
|
@@ -192,6 +209,18 @@ export interface WorkItemUpdateParams {
|
|
|
192
209
|
export interface WorkItemListParams {
|
|
193
210
|
assignee_id?: string;
|
|
194
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Opaque continuation cursor from `pagination.next_cursor` of the previous page.
|
|
214
|
+
* Must be replayed with the same filters that produced it.
|
|
215
|
+
*/
|
|
216
|
+
cursor?: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Work items per page (1-200). Omit to receive every work item. Supplying a cursor
|
|
220
|
+
* without a limit uses 50.
|
|
221
|
+
*/
|
|
222
|
+
limit?: number;
|
|
223
|
+
|
|
195
224
|
status?: string;
|
|
196
225
|
}
|
|
197
226
|
|
|
@@ -219,6 +248,7 @@ export interface WorkItemDecideParams {
|
|
|
219
248
|
|
|
220
249
|
export declare namespace WorkItems {
|
|
221
250
|
export {
|
|
251
|
+
type WorkItemListResponse as WorkItemListResponse,
|
|
222
252
|
type WorkItemCreateParams as WorkItemCreateParams,
|
|
223
253
|
type WorkItemRetrieveParams as WorkItemRetrieveParams,
|
|
224
254
|
type WorkItemUpdateParams as WorkItemUpdateParams,
|
|
@@ -8,11 +8,13 @@ export {
|
|
|
8
8
|
type SkillCreateResponse,
|
|
9
9
|
type SkillUpdateResponse,
|
|
10
10
|
type SkillDeleteResponse,
|
|
11
|
+
type SkillCatalogResponse,
|
|
11
12
|
type SkillExportResponse,
|
|
12
13
|
type SkillReadResponse,
|
|
13
14
|
type SkillResolveResponse,
|
|
14
15
|
type SkillCreateParams,
|
|
15
16
|
type SkillUpdateParams,
|
|
17
|
+
type SkillCatalogParams,
|
|
16
18
|
type SkillExportParams,
|
|
17
19
|
type SkillResolveParams,
|
|
18
20
|
} from './skills';
|
|
@@ -37,6 +37,17 @@ export class Skills extends APIResource {
|
|
|
37
37
|
return this._client.delete(path`/skills/${slug}`, options);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Browse public and organization skills using one authenticated catalog. Returns
|
|
42
|
+
* metadata only; skill content is loaded separately.
|
|
43
|
+
*/
|
|
44
|
+
catalog(
|
|
45
|
+
query: SkillCatalogParams | null | undefined = {},
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): APIPromise<SkillCatalogResponse> {
|
|
48
|
+
return this._client.get('/skills/catalog', { query, ...options });
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
/**
|
|
41
52
|
* Export a skill as an installable filesystem tree for sandbox runtimes.
|
|
42
53
|
* Authenticated org-scoped custom skills are resolved before curated skills.
|
|
@@ -74,6 +85,11 @@ export interface ReadResponseFileBundle {
|
|
|
74
85
|
root_slug: string;
|
|
75
86
|
|
|
76
87
|
content_type?: string | null;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Encoding of the returned content field.
|
|
91
|
+
*/
|
|
92
|
+
encoding?: 'utf8' | 'base64';
|
|
77
93
|
}
|
|
78
94
|
|
|
79
95
|
export interface ReadResponseRootBundle {
|
|
@@ -90,6 +106,11 @@ export namespace ReadResponseRootBundle {
|
|
|
90
106
|
|
|
91
107
|
content_type?: string | null;
|
|
92
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Encoding used by content when this companion slug is read.
|
|
111
|
+
*/
|
|
112
|
+
encoding?: 'utf8' | 'base64';
|
|
113
|
+
|
|
93
114
|
name?: string | null;
|
|
94
115
|
}
|
|
95
116
|
}
|
|
@@ -140,6 +161,38 @@ export interface SkillDeleteResponse {
|
|
|
140
161
|
slug?: string;
|
|
141
162
|
}
|
|
142
163
|
|
|
164
|
+
export interface SkillCatalogResponse {
|
|
165
|
+
count?: number;
|
|
166
|
+
|
|
167
|
+
hasMore?: boolean;
|
|
168
|
+
|
|
169
|
+
limit?: number;
|
|
170
|
+
|
|
171
|
+
nextOffset?: number | null;
|
|
172
|
+
|
|
173
|
+
offset?: number;
|
|
174
|
+
|
|
175
|
+
query?: string;
|
|
176
|
+
|
|
177
|
+
skills?: Array<SkillCatalogResponse.Skill>;
|
|
178
|
+
|
|
179
|
+
total?: number;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export namespace SkillCatalogResponse {
|
|
183
|
+
export interface Skill {
|
|
184
|
+
description?: string;
|
|
185
|
+
|
|
186
|
+
name?: string;
|
|
187
|
+
|
|
188
|
+
slug?: string;
|
|
189
|
+
|
|
190
|
+
source?: 'custom' | 'curated';
|
|
191
|
+
|
|
192
|
+
tags?: Array<string>;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
143
196
|
export interface SkillExportResponse {
|
|
144
197
|
files?: Array<SkillExportResponse.File>;
|
|
145
198
|
|
|
@@ -158,6 +211,11 @@ export namespace SkillExportResponse {
|
|
|
158
211
|
|
|
159
212
|
content_type?: string;
|
|
160
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Encoding of content. Binary files use canonical base64.
|
|
216
|
+
*/
|
|
217
|
+
encoding?: 'utf8' | 'base64';
|
|
218
|
+
|
|
161
219
|
path?: string;
|
|
162
220
|
|
|
163
221
|
sha256?: string;
|
|
@@ -279,7 +337,8 @@ export interface SkillCreateParams {
|
|
|
279
337
|
|
|
280
338
|
/**
|
|
281
339
|
* Optional bundled companion files installed alongside the skill as <slug>/<path>
|
|
282
|
-
* in sandbox skill directories.
|
|
340
|
+
* in sandbox skill directories. The complete file set may contain at most 12 MiB
|
|
341
|
+
* of decoded content.
|
|
283
342
|
*/
|
|
284
343
|
files?: Array<SkillCreateParams.File>;
|
|
285
344
|
|
|
@@ -306,6 +365,10 @@ export interface SkillCreateParams {
|
|
|
306
365
|
|
|
307
366
|
export namespace SkillCreateParams {
|
|
308
367
|
export interface File {
|
|
368
|
+
/**
|
|
369
|
+
* UTF-8 text when encoding is utf8 (max 65,536 characters), or canonical base64
|
|
370
|
+
* when encoding is base64 (max 262,144 decoded bytes).
|
|
371
|
+
*/
|
|
309
372
|
content: string;
|
|
310
373
|
|
|
311
374
|
/**
|
|
@@ -316,6 +379,11 @@ export namespace SkillCreateParams {
|
|
|
316
379
|
|
|
317
380
|
contentType?: string;
|
|
318
381
|
|
|
382
|
+
/**
|
|
383
|
+
* How content is encoded. Omit for UTF-8 text files.
|
|
384
|
+
*/
|
|
385
|
+
encoding?: 'utf8' | 'base64';
|
|
386
|
+
|
|
319
387
|
metadata?: unknown;
|
|
320
388
|
|
|
321
389
|
name?: string;
|
|
@@ -330,8 +398,13 @@ export interface SkillUpdateParams {
|
|
|
330
398
|
content?: string;
|
|
331
399
|
|
|
332
400
|
/**
|
|
333
|
-
*
|
|
334
|
-
|
|
401
|
+
* Reject with 409 if the skill changed since this version was read.
|
|
402
|
+
*/
|
|
403
|
+
expectedVersion?: number;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Optional replacement companion file tree, limited to 12 MiB of decoded content.
|
|
407
|
+
* Omit to leave existing bundled files unchanged; send [] to remove bundled files.
|
|
335
408
|
*/
|
|
336
409
|
files?: Array<SkillUpdateParams.File> | null;
|
|
337
410
|
|
|
@@ -351,12 +424,21 @@ export interface SkillUpdateParams {
|
|
|
351
424
|
|
|
352
425
|
export namespace SkillUpdateParams {
|
|
353
426
|
export interface File {
|
|
427
|
+
/**
|
|
428
|
+
* UTF-8 text when encoding is utf8 (max 65,536 characters), or canonical base64
|
|
429
|
+
* when encoding is base64 (max 262,144 decoded bytes).
|
|
430
|
+
*/
|
|
354
431
|
content: string;
|
|
355
432
|
|
|
356
433
|
path: string;
|
|
357
434
|
|
|
358
435
|
contentType?: string;
|
|
359
436
|
|
|
437
|
+
/**
|
|
438
|
+
* How content is encoded. Omit for UTF-8 text files.
|
|
439
|
+
*/
|
|
440
|
+
encoding?: 'utf8' | 'base64';
|
|
441
|
+
|
|
360
442
|
metadata?: unknown;
|
|
361
443
|
|
|
362
444
|
name?: string;
|
|
@@ -367,6 +449,34 @@ export namespace SkillUpdateParams {
|
|
|
367
449
|
}
|
|
368
450
|
}
|
|
369
451
|
|
|
452
|
+
export interface SkillCatalogParams {
|
|
453
|
+
/**
|
|
454
|
+
* Maximum results to return
|
|
455
|
+
*/
|
|
456
|
+
limit?: number;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Number of results to skip
|
|
460
|
+
*/
|
|
461
|
+
offset?: number;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Optional text search
|
|
465
|
+
*/
|
|
466
|
+
q?: string;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Optional source filter, applied after organization overrides and before
|
|
470
|
+
* pagination. Omit to browse both sources.
|
|
471
|
+
*/
|
|
472
|
+
source?: 'custom' | 'curated';
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Optional tag filter
|
|
476
|
+
*/
|
|
477
|
+
tag?: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
370
480
|
export interface SkillExportParams {
|
|
371
481
|
/**
|
|
372
482
|
* Agent runtime skill directory convention to export for. Most callers should omit
|
|
@@ -396,11 +506,13 @@ export declare namespace Skills {
|
|
|
396
506
|
type SkillCreateResponse as SkillCreateResponse,
|
|
397
507
|
type SkillUpdateResponse as SkillUpdateResponse,
|
|
398
508
|
type SkillDeleteResponse as SkillDeleteResponse,
|
|
509
|
+
type SkillCatalogResponse as SkillCatalogResponse,
|
|
399
510
|
type SkillExportResponse as SkillExportResponse,
|
|
400
511
|
type SkillReadResponse as SkillReadResponse,
|
|
401
512
|
type SkillResolveResponse as SkillResolveResponse,
|
|
402
513
|
type SkillCreateParams as SkillCreateParams,
|
|
403
514
|
type SkillUpdateParams as SkillUpdateParams,
|
|
515
|
+
type SkillCatalogParams as SkillCatalogParams,
|
|
404
516
|
type SkillExportParams as SkillExportParams,
|
|
405
517
|
type SkillResolveParams as SkillResolveParams,
|
|
406
518
|
};
|
|
@@ -21,11 +21,15 @@ export class Subscriptions extends APIResource {
|
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
create(id: string,
|
|
24
|
+
create(id: string, params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
25
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
25
26
|
return this._client.post(path`/vault/${id}/events/subscriptions`, {
|
|
26
27
|
body,
|
|
27
28
|
...options,
|
|
28
|
-
headers: buildHeaders([
|
|
29
|
+
headers: buildHeaders([
|
|
30
|
+
{ Accept: '*/*', ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
31
|
+
options?.headers,
|
|
32
|
+
]),
|
|
29
33
|
});
|
|
30
34
|
}
|
|
31
35
|
|
|
@@ -116,25 +120,32 @@ export class Subscriptions extends APIResource {
|
|
|
116
120
|
|
|
117
121
|
export interface SubscriptionCreateParams {
|
|
118
122
|
/**
|
|
119
|
-
* Webhook endpoint URL that will receive vault event deliveries
|
|
123
|
+
* Body param: Webhook endpoint URL that will receive vault event deliveries
|
|
120
124
|
*/
|
|
121
125
|
callbackUrl: string;
|
|
122
126
|
|
|
123
127
|
/**
|
|
124
|
-
* Vault event types to deliver. Omit to receive the default supported
|
|
128
|
+
* Body param: Vault event types to deliver. Omit to receive the default supported
|
|
129
|
+
* set.
|
|
125
130
|
*/
|
|
126
131
|
eventTypes?: Array<string>;
|
|
127
132
|
|
|
128
133
|
/**
|
|
129
|
-
* Vault object IDs to limit notifications to. Omit to receive events
|
|
130
|
-
* objects in the vault.
|
|
134
|
+
* Body param: Vault object IDs to limit notifications to. Omit to receive events
|
|
135
|
+
* for all objects in the vault.
|
|
131
136
|
*/
|
|
132
137
|
objectIds?: Array<string>;
|
|
133
138
|
|
|
134
139
|
/**
|
|
135
|
-
* Optional secret used to sign outbound webhook deliveries
|
|
140
|
+
* Body param: Optional secret used to sign outbound webhook deliveries
|
|
136
141
|
*/
|
|
137
142
|
signingSecret?: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Header param: Reusing a key for this Vault updates and returns the same webhook
|
|
146
|
+
* subscription.
|
|
147
|
+
*/
|
|
148
|
+
'Idempotency-Key'?: string;
|
|
138
149
|
}
|
|
139
150
|
|
|
140
151
|
export interface SubscriptionUpdateParams {
|
|
@@ -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 Groups extends APIResource {
|
|
13
13
|
/**
|
|
@@ -14,6 +14,7 @@ export {
|
|
|
14
14
|
} from './memory';
|
|
15
15
|
export {
|
|
16
16
|
Multipart,
|
|
17
|
+
type MultipartCompleteResponse,
|
|
17
18
|
type MultipartGetPartURLsResponse,
|
|
18
19
|
type MultipartInitResponse,
|
|
19
20
|
type MultipartAbortParams,
|
|
@@ -34,6 +35,7 @@ export {
|
|
|
34
35
|
type ObjectGetPagesResponse,
|
|
35
36
|
type ObjectGetTextResponse,
|
|
36
37
|
type ObjectMergeResponse,
|
|
38
|
+
type ObjectMoveResponse,
|
|
37
39
|
type ObjectRetrieveParams,
|
|
38
40
|
type ObjectUpdateParams,
|
|
39
41
|
type ObjectListParams,
|
|
@@ -46,6 +48,7 @@ export {
|
|
|
46
48
|
type ObjectGetPagesParams,
|
|
47
49
|
type ObjectGetTextParams,
|
|
48
50
|
type ObjectMergeParams,
|
|
51
|
+
type ObjectMoveParams,
|
|
49
52
|
} from './objects';
|
|
50
53
|
export {
|
|
51
54
|
Vault,
|
|
@@ -60,6 +63,7 @@ export {
|
|
|
60
63
|
type VaultUploadResponse,
|
|
61
64
|
type VaultCreateParams,
|
|
62
65
|
type VaultUpdateParams,
|
|
66
|
+
type VaultListParams,
|
|
63
67
|
type VaultDeleteParams,
|
|
64
68
|
type VaultConfirmUploadParams,
|
|
65
69
|
type VaultIngestParams,
|