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,69 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Matter-native legal workspaces and orchestration primitives
|
|
6
|
+
*/
|
|
7
|
+
export declare class ContentPurges extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Queues an idempotent hard deletion of explicitly owned content while preserving
|
|
10
|
+
* the Matter, Vault, and unrelated content. Use unified matter.content_purge
|
|
11
|
+
* webhooks for completion, not polling.
|
|
12
|
+
*/
|
|
13
|
+
create(id: string, body: ContentPurgeCreateParams, options?: RequestOptions): APIPromise<ContentPurgeCreateResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Owner-only receipt for operator diagnostics. Integrations must use unified
|
|
16
|
+
* content-purge webhooks rather than polling.
|
|
17
|
+
*/
|
|
18
|
+
retrieve(purgeID: string, options?: RequestOptions): APIPromise<ContentPurgeRetrieveResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface ContentPurgeCreateResponse {
|
|
21
|
+
attempt: number;
|
|
22
|
+
matter_id: string;
|
|
23
|
+
purge_id: string;
|
|
24
|
+
request_id: string;
|
|
25
|
+
status: 'queued' | 'in_progress' | 'failed' | 'completed';
|
|
26
|
+
vault_id: string;
|
|
27
|
+
workflow_id: string | null;
|
|
28
|
+
completed_at?: string | null;
|
|
29
|
+
counts?: {
|
|
30
|
+
[key: string]: number;
|
|
31
|
+
};
|
|
32
|
+
failed_at?: string | null;
|
|
33
|
+
failure_code?: string | null;
|
|
34
|
+
requested_at?: string;
|
|
35
|
+
started_at?: string | null;
|
|
36
|
+
terminal_event_id?: string | null;
|
|
37
|
+
}
|
|
38
|
+
export interface ContentPurgeRetrieveResponse {
|
|
39
|
+
attempt: number;
|
|
40
|
+
matter_id: string;
|
|
41
|
+
purge_id: string;
|
|
42
|
+
request_id: string;
|
|
43
|
+
status: 'queued' | 'in_progress' | 'failed' | 'completed';
|
|
44
|
+
vault_id: string;
|
|
45
|
+
workflow_id: string | null;
|
|
46
|
+
completed_at?: string | null;
|
|
47
|
+
counts?: {
|
|
48
|
+
[key: string]: number;
|
|
49
|
+
};
|
|
50
|
+
failed_at?: string | null;
|
|
51
|
+
failure_code?: string | null;
|
|
52
|
+
requested_at?: string;
|
|
53
|
+
started_at?: string | null;
|
|
54
|
+
terminal_event_id?: string | null;
|
|
55
|
+
}
|
|
56
|
+
export interface ContentPurgeCreateParams {
|
|
57
|
+
/**
|
|
58
|
+
* Stable caller idempotency ID; cannot be reused with different targets.
|
|
59
|
+
*/
|
|
60
|
+
request_id: string;
|
|
61
|
+
object_ids?: Array<string>;
|
|
62
|
+
session_ids?: Array<string>;
|
|
63
|
+
transcription_ids?: Array<string>;
|
|
64
|
+
work_item_ids?: Array<string>;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace ContentPurges {
|
|
67
|
+
export { type ContentPurgeCreateResponse as ContentPurgeCreateResponse, type ContentPurgeRetrieveResponse as ContentPurgeRetrieveResponse, type ContentPurgeCreateParams as ContentPurgeCreateParams, };
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=content-purges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-purges.d.ts","sourceRoot":"","sources":["../../../src/resources/matters/v1/content-purges.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;OAIG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAG9F;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,QAAQ,GAAG,aAAa,GAAG,QAAQ,GAAG,WAAW,CAAC;IAE1D,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEnC,SAAS,CAAC,EAAE,MAAM,GAAG,IA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KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ContentPurges = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Matter-native legal workspaces and orchestration primitives
|
|
9
|
+
*/
|
|
10
|
+
class ContentPurges extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Queues an idempotent hard deletion of explicitly owned content while preserving
|
|
13
|
+
* the Matter, Vault, and unrelated content. Use unified matter.content_purge
|
|
14
|
+
* webhooks for completion, not polling.
|
|
15
|
+
*/
|
|
16
|
+
create(id, body, options) {
|
|
17
|
+
return this._client.post((0, path_1.path) `/matters/v1/${id}/content-purges`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Owner-only receipt for operator diagnostics. Integrations must use unified
|
|
21
|
+
* content-purge webhooks rather than polling.
|
|
22
|
+
*/
|
|
23
|
+
retrieve(purgeID, options) {
|
|
24
|
+
return this._client.get((0, path_1.path) `/matters/v1/content-purges/${purgeID}`, options);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.ContentPurges = ContentPurges;
|
|
28
|
+
//# sourceMappingURL=content-purges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-purges.js","sourceRoot":"","sources":["../../../src/resources/matters/v1/content-purges.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AArBD,sCAqBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Matter-native legal workspaces and orchestration primitives
|
|
6
|
+
*/
|
|
7
|
+
export class ContentPurges extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Queues an idempotent hard deletion of explicitly owned content while preserving
|
|
10
|
+
* the Matter, Vault, and unrelated content. Use unified matter.content_purge
|
|
11
|
+
* webhooks for completion, not polling.
|
|
12
|
+
*/
|
|
13
|
+
create(id, body, options) {
|
|
14
|
+
return this._client.post(path `/matters/v1/${id}/content-purges`, { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Owner-only receipt for operator diagnostics. Integrations must use unified
|
|
18
|
+
* content-purge webhooks rather than polling.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(purgeID, options) {
|
|
21
|
+
return this._client.get(path `/matters/v1/content-purges/${purgeID}`, options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=content-purges.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-purges.mjs","sourceRoot":"","sources":["../../../src/resources/matters/v1/content-purges.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -8,7 +8,7 @@ export declare class Subscriptions extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Creates a webhook subscription for matter and work-item events.
|
|
10
10
|
*/
|
|
11
|
-
create(id: string,
|
|
11
|
+
create(id: string, params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
12
12
|
/**
|
|
13
13
|
* Lists webhook subscriptions configured for a matter.
|
|
14
14
|
*/
|
|
@@ -19,9 +19,23 @@ export declare class Subscriptions extends APIResource {
|
|
|
19
19
|
delete(subscriptionID: string, params: SubscriptionDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
20
20
|
}
|
|
21
21
|
export interface SubscriptionCreateParams {
|
|
22
|
+
/**
|
|
23
|
+
* Body param
|
|
24
|
+
*/
|
|
22
25
|
callbackUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* Body param
|
|
28
|
+
*/
|
|
23
29
|
eventTypes?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Body param
|
|
32
|
+
*/
|
|
24
33
|
signingSecret?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Header param: Reusing a key for this Matter updates and returns the same webhook
|
|
36
|
+
* subscription.
|
|
37
|
+
*/
|
|
38
|
+
'Idempotency-Key'?: string;
|
|
25
39
|
}
|
|
26
40
|
export interface SubscriptionDeleteParams {
|
|
27
41
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.mts","sourceRoot":"","sources":["../../../../src/resources/matters/v1/events/subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAE1D,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAGtE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"subscriptions.d.mts","sourceRoot":"","sources":["../../../../src/resources/matters/v1/events/subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAE1D,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAGtE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAYhG;;OAEG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO5D;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -8,7 +8,7 @@ export declare class Subscriptions extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Creates a webhook subscription for matter and work-item events.
|
|
10
10
|
*/
|
|
11
|
-
create(id: string,
|
|
11
|
+
create(id: string, params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
12
12
|
/**
|
|
13
13
|
* Lists webhook subscriptions configured for a matter.
|
|
14
14
|
*/
|
|
@@ -19,9 +19,23 @@ export declare class Subscriptions extends APIResource {
|
|
|
19
19
|
delete(subscriptionID: string, params: SubscriptionDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
20
20
|
}
|
|
21
21
|
export interface SubscriptionCreateParams {
|
|
22
|
+
/**
|
|
23
|
+
* Body param
|
|
24
|
+
*/
|
|
22
25
|
callbackUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* Body param
|
|
28
|
+
*/
|
|
23
29
|
eventTypes?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Body param
|
|
32
|
+
*/
|
|
24
33
|
signingSecret?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Header param: Reusing a key for this Matter updates and returns the same webhook
|
|
36
|
+
* subscription.
|
|
37
|
+
*/
|
|
38
|
+
'Idempotency-Key'?: string;
|
|
25
39
|
}
|
|
26
40
|
export interface SubscriptionDeleteParams {
|
|
27
41
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../src/resources/matters/v1/events/subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAE1D,OAAO,EAAE,cAAc,EAAE,gDAA6C;AAGtE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../src/resources/matters/v1/events/subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAE1D,OAAO,EAAE,cAAc,EAAE,gDAA6C;AAGtE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAYhG;;OAEG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO5D;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -12,11 +12,15 @@ class Subscriptions extends resource_1.APIResource {
|
|
|
12
12
|
/**
|
|
13
13
|
* Creates a webhook subscription for matter and work-item events.
|
|
14
14
|
*/
|
|
15
|
-
create(id,
|
|
15
|
+
create(id, params, options) {
|
|
16
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
16
17
|
return this._client.post((0, path_1.path) `/matters/v1/${id}/events/subscriptions`, {
|
|
17
18
|
body,
|
|
18
19
|
...options,
|
|
19
|
-
headers: (0, headers_1.buildHeaders)([
|
|
20
|
+
headers: (0, headers_1.buildHeaders)([
|
|
21
|
+
{ Accept: '*/*', ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
22
|
+
options?.headers,
|
|
23
|
+
]),
|
|
20
24
|
});
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../../src/resources/matters/v1/events/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,6DAA4D;AAE5D,6DAAuD;AAEvD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../../src/resources/matters/v1/events/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,6DAA4D;AAE5D,6DAAuD;AAEvD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,MAAM,CA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|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a webhook subscription for matter and work-item events.
|
|
11
11
|
*/
|
|
12
|
-
create(id,
|
|
12
|
+
create(id, params, options) {
|
|
13
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
13
14
|
return this._client.post(path `/matters/v1/${id}/events/subscriptions`, {
|
|
14
15
|
body,
|
|
15
16
|
...options,
|
|
16
|
-
headers: buildHeaders([
|
|
17
|
+
headers: buildHeaders([
|
|
18
|
+
{ Accept: '*/*', ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
19
|
+
options?.headers,
|
|
20
|
+
]),
|
|
17
21
|
});
|
|
18
22
|
}
|
|
19
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.mjs","sourceRoot":"","sources":["../../../../src/resources/matters/v1/events/subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAExD,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"subscriptions.mjs","sourceRoot":"","sources":["../../../../src/resources/matters/v1/events/subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAExD,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,MAAgC,EAAE,OAAwB;QAC3E,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,EAAE,uBAAuB,EAAE;YACrE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAClG,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,EAAE,uBAAuB,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,cAAsB,EACtB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,EAAE,yBAAyB,cAAc,EAAE,EAAE;YACzF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export { AgentTypes, type AgentTypeCreateParams, type AgentTypeListParams } from "./agent-types.mjs";
|
|
2
|
+
export { ContentPurges, type ContentPurgeCreateResponse, type ContentPurgeRetrieveResponse, type ContentPurgeCreateParams, } from "./content-purges.mjs";
|
|
2
3
|
export { Events } from "./events/index.mjs";
|
|
3
4
|
export { Log, type LogExportResponse, type LogCreateParams, type LogListParams, type LogExportParams, } from "./log.mjs";
|
|
4
5
|
export { MatterParties, type MatterPartyCreateParams } from "./matter-parties.mjs";
|
|
5
|
-
export { Parties, type PartyCreateParams, type PartyListParams } from "./parties.mjs";
|
|
6
|
+
export { Parties, type PartyListResponse, type PartyCreateParams, type PartyListParams } from "./parties.mjs";
|
|
7
|
+
export { Purges, type PurgeRetrieveResponse } from "./purges.mjs";
|
|
6
8
|
export { Shares, type ShareCreateParams, type ShareDeleteParams } from "./shares.mjs";
|
|
7
9
|
export { Types, type TypeCreateParams, type TypeUpdateParams, type TypeListParams } from "./types.mjs";
|
|
8
|
-
export { V1, type V1CreateParams, type V1UpdateParams, type V1ListParams } from "./v1.mjs";
|
|
9
|
-
export { WorkItems, type WorkItemCreateParams, type WorkItemRetrieveParams, type WorkItemUpdateParams, type WorkItemListParams, type WorkItemDecideParams, } from "./work-items.mjs";
|
|
10
|
+
export { V1, type V1ListResponse, type V1DeleteResponse, type V1CreateParams, type V1UpdateParams, type V1ListParams, } from "./v1.mjs";
|
|
11
|
+
export { WorkItems, type WorkItemListResponse, type WorkItemCreateParams, type WorkItemRetrieveParams, type WorkItemUpdateParams, type WorkItemListParams, type WorkItemDecideParams, } from "./work-items.mjs";
|
|
10
12
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/matters/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,0BAAsB;AACjG,OAAO,EAAE,MAAM,EAAE,2BAAuB;AACxC,OAAO,EACL,GAAG,EACH,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,kBAAc;AACf,OAAO,EAAE,aAAa,EAAE,KAAK,uBAAuB,EAAE,6BAAyB;AAC/E,OAAO,EAAE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,sBAAkB;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/matters/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,0BAAsB;AACjG,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,GAC9B,6BAAyB;AAC1B,OAAO,EAAE,MAAM,EAAE,2BAAuB;AACxC,OAAO,EACL,GAAG,EACH,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,kBAAc;AACf,OAAO,EAAE,aAAa,EAAE,KAAK,uBAAuB,EAAE,6BAAyB;AAC/E,OAAO,EAAE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,sBAAkB;AAC1G,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,qBAAiB;AAC9D,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AAClF,OAAO,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,oBAAgB;AACnG,OAAO,EACL,EAAE,EACF,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB,iBAAa;AACd,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,yBAAqB"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export { AgentTypes, type AgentTypeCreateParams, type AgentTypeListParams } from "./agent-types.js";
|
|
2
|
+
export { ContentPurges, type ContentPurgeCreateResponse, type ContentPurgeRetrieveResponse, type ContentPurgeCreateParams, } from "./content-purges.js";
|
|
2
3
|
export { Events } from "./events/index.js";
|
|
3
4
|
export { Log, type LogExportResponse, type LogCreateParams, type LogListParams, type LogExportParams, } from "./log.js";
|
|
4
5
|
export { MatterParties, type MatterPartyCreateParams } from "./matter-parties.js";
|
|
5
|
-
export { Parties, type PartyCreateParams, type PartyListParams } from "./parties.js";
|
|
6
|
+
export { Parties, type PartyListResponse, type PartyCreateParams, type PartyListParams } from "./parties.js";
|
|
7
|
+
export { Purges, type PurgeRetrieveResponse } from "./purges.js";
|
|
6
8
|
export { Shares, type ShareCreateParams, type ShareDeleteParams } from "./shares.js";
|
|
7
9
|
export { Types, type TypeCreateParams, type TypeUpdateParams, type TypeListParams } from "./types.js";
|
|
8
|
-
export { V1, type V1CreateParams, type V1UpdateParams, type V1ListParams } from "./v1.js";
|
|
9
|
-
export { WorkItems, type WorkItemCreateParams, type WorkItemRetrieveParams, type WorkItemUpdateParams, type WorkItemListParams, type WorkItemDecideParams, } from "./work-items.js";
|
|
10
|
+
export { V1, type V1ListResponse, type V1DeleteResponse, type V1CreateParams, type V1UpdateParams, type V1ListParams, } from "./v1.js";
|
|
11
|
+
export { WorkItems, type WorkItemListResponse, type WorkItemCreateParams, type WorkItemRetrieveParams, type WorkItemUpdateParams, type WorkItemListParams, type WorkItemDecideParams, } from "./work-items.js";
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/matters/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,yBAAsB;AACjG,OAAO,EAAE,MAAM,EAAE,0BAAuB;AACxC,OAAO,EACL,GAAG,EACH,KAAK,iBAAiB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AAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,wBAAqB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WorkItems = exports.V1 = exports.Types = exports.Shares = exports.Parties = exports.MatterParties = exports.Log = exports.Events = exports.AgentTypes = void 0;
|
|
4
|
+
exports.WorkItems = exports.V1 = exports.Types = exports.Shares = exports.Purges = exports.Parties = exports.MatterParties = exports.Log = exports.Events = exports.ContentPurges = exports.AgentTypes = void 0;
|
|
5
5
|
var agent_types_1 = require("./agent-types.js");
|
|
6
6
|
Object.defineProperty(exports, "AgentTypes", { enumerable: true, get: function () { return agent_types_1.AgentTypes; } });
|
|
7
|
+
var content_purges_1 = require("./content-purges.js");
|
|
8
|
+
Object.defineProperty(exports, "ContentPurges", { enumerable: true, get: function () { return content_purges_1.ContentPurges; } });
|
|
7
9
|
var index_1 = require("./events/index.js");
|
|
8
10
|
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return index_1.Events; } });
|
|
9
11
|
var log_1 = require("./log.js");
|
|
@@ -12,6 +14,8 @@ var matter_parties_1 = require("./matter-parties.js");
|
|
|
12
14
|
Object.defineProperty(exports, "MatterParties", { enumerable: true, get: function () { return matter_parties_1.MatterParties; } });
|
|
13
15
|
var parties_1 = require("./parties.js");
|
|
14
16
|
Object.defineProperty(exports, "Parties", { enumerable: true, get: function () { return parties_1.Parties; } });
|
|
17
|
+
var purges_1 = require("./purges.js");
|
|
18
|
+
Object.defineProperty(exports, "Purges", { enumerable: true, get: function () { return purges_1.Purges; } });
|
|
15
19
|
var shares_1 = require("./shares.js");
|
|
16
20
|
Object.defineProperty(exports, "Shares", { enumerable: true, get: function () { return shares_1.Shares; } });
|
|
17
21
|
var types_1 = require("./types.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/matters/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAAiG;AAAxF,yGAAA,UAAU,OAAA;AACnB,2CAAwC;AAA/B,+FAAA,MAAM,OAAA;AACf,gCAMe;AALb,0FAAA,GAAG,OAAA;AAML,sDAA+E;AAAtE,+GAAA,aAAa,OAAA;AACtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/matters/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAAiG;AAAxF,yGAAA,UAAU,OAAA;AACnB,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,2CAAwC;AAA/B,+FAAA,MAAM,OAAA;AACf,gCAMe;AALb,0FAAA,GAAG,OAAA;AAML,sDAA+E;AAAtE,+GAAA,aAAa,OAAA;AACtB,wCAA0G;AAAjG,kGAAA,OAAO,OAAA;AAChB,sCAA8D;AAArD,gGAAA,MAAM,OAAA;AACf,sCAAkF;AAAzE,gGAAA,MAAM,OAAA;AACf,oCAAmG;AAA1F,8FAAA,KAAK,OAAA;AACd,8BAOc;AANZ,wFAAA,EAAE,OAAA;AAOJ,8CAQsB;AAPpB,uGAAA,SAAS,OAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { AgentTypes } from "./agent-types.mjs";
|
|
3
|
+
export { ContentPurges, } from "./content-purges.mjs";
|
|
3
4
|
export { Events } from "./events/index.mjs";
|
|
4
5
|
export { Log, } from "./log.mjs";
|
|
5
6
|
export { MatterParties } from "./matter-parties.mjs";
|
|
6
7
|
export { Parties } from "./parties.mjs";
|
|
8
|
+
export { Purges } from "./purges.mjs";
|
|
7
9
|
export { Shares } from "./shares.mjs";
|
|
8
10
|
export { Types } from "./types.mjs";
|
|
9
|
-
export { V1 } from "./v1.mjs";
|
|
11
|
+
export { V1, } from "./v1.mjs";
|
|
10
12
|
export { WorkItems, } from "./work-items.mjs";
|
|
11
13
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/matters/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAAwD,0BAAsB;AACjG,OAAO,EAAE,MAAM,EAAE,2BAAuB;AACxC,OAAO,EACL,GAAG,GAKJ,kBAAc;AACf,OAAO,EAAE,aAAa,EAAgC,6BAAyB;AAC/E,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/matters/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAAwD,0BAAsB;AACjG,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,EAAE,MAAM,EAAE,2BAAuB;AACxC,OAAO,EACL,GAAG,GAKJ,kBAAc;AACf,OAAO,EAAE,aAAa,EAAgC,6BAAyB;AAC/E,OAAO,EAAE,OAAO,EAAwE,sBAAkB;AAC1G,OAAO,EAAE,MAAM,EAA8B,qBAAiB;AAC9D,OAAO,EAAE,MAAM,EAAkD,qBAAiB;AAClF,OAAO,EAAE,KAAK,EAAqE,oBAAgB;AACnG,OAAO,EACL,EAAE,GAMH,iBAAa;AACd,OAAO,EACL,SAAS,GAOV,yBAAqB"}
|
|
@@ -18,9 +18,25 @@ export declare class Parties extends APIResource {
|
|
|
18
18
|
*/
|
|
19
19
|
update(partyID: string, options?: RequestOptions): APIPromise<void>;
|
|
20
20
|
/**
|
|
21
|
-
* List reusable legal parties for the authenticated organization
|
|
21
|
+
* List reusable legal parties for the authenticated organization, newest update
|
|
22
|
+
* first. Pagination is opt-in: pass `limit` (1-200) to receive a bounded page,
|
|
23
|
+
* then replay `pagination.next_cursor` as `?cursor=` while `pagination.has_more`
|
|
24
|
+
* is true. A request with neither `limit` nor `cursor` still returns every party,
|
|
25
|
+
* and `pagination.limit` is null. That default will become a bounded page in a
|
|
26
|
+
* future release — paginate now to avoid the change.
|
|
22
27
|
*/
|
|
23
|
-
list(query?: PartyListParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
28
|
+
list(query?: PartyListParams | null | undefined, options?: RequestOptions): APIPromise<PartyListResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface PartyListResponse {
|
|
31
|
+
data?: Array<unknown>;
|
|
32
|
+
pagination?: PartyListResponse.Pagination;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace PartyListResponse {
|
|
35
|
+
interface Pagination {
|
|
36
|
+
has_more?: boolean;
|
|
37
|
+
limit?: number | null;
|
|
38
|
+
next_cursor?: string | null;
|
|
39
|
+
}
|
|
24
40
|
}
|
|
25
41
|
export interface PartyCreateParams {
|
|
26
42
|
name: string;
|
|
@@ -39,11 +55,21 @@ export interface PartyCreateParams {
|
|
|
39
55
|
type?: 'person' | 'organization';
|
|
40
56
|
}
|
|
41
57
|
export interface PartyListParams {
|
|
58
|
+
/**
|
|
59
|
+
* Opaque continuation cursor from `pagination.next_cursor` of the previous page.
|
|
60
|
+
* Must be replayed with the same filters that produced it.
|
|
61
|
+
*/
|
|
62
|
+
cursor?: string;
|
|
42
63
|
email?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Parties per page (1-200). Omit to receive every party. Supplying a cursor
|
|
66
|
+
* without a limit uses 50.
|
|
67
|
+
*/
|
|
68
|
+
limit?: number;
|
|
43
69
|
query?: string;
|
|
44
70
|
type?: 'person' | 'organization';
|
|
45
71
|
}
|
|
46
72
|
export declare namespace Parties {
|
|
47
|
-
export { type PartyCreateParams as PartyCreateParams, type PartyListParams as PartyListParams };
|
|
73
|
+
export { type PartyListResponse as PartyListResponse, type PartyCreateParams as PartyCreateParams, type PartyListParams as PartyListParams, };
|
|
48
74
|
}
|
|
49
75
|
//# sourceMappingURL=parties.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parties.d.mts","sourceRoot":"","sources":["../../../src/resources/matters/v1/parties.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ3E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOrE;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOnE
|
|
1
|
+
{"version":3,"file":"parties.d.mts","sourceRoot":"","sources":["../../../src/resources/matters/v1/parties.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ3E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOrE;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOnE;;;;;;;OAOG;IACH,IAAI,CACF,KA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AAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -18,9 +18,25 @@ export declare class Parties extends APIResource {
|
|
|
18
18
|
*/
|
|
19
19
|
update(partyID: string, options?: RequestOptions): APIPromise<void>;
|
|
20
20
|
/**
|
|
21
|
-
* List reusable legal parties for the authenticated organization
|
|
21
|
+
* List reusable legal parties for the authenticated organization, newest update
|
|
22
|
+
* first. Pagination is opt-in: pass `limit` (1-200) to receive a bounded page,
|
|
23
|
+
* then replay `pagination.next_cursor` as `?cursor=` while `pagination.has_more`
|
|
24
|
+
* is true. A request with neither `limit` nor `cursor` still returns every party,
|
|
25
|
+
* and `pagination.limit` is null. That default will become a bounded page in a
|
|
26
|
+
* future release — paginate now to avoid the change.
|
|
22
27
|
*/
|
|
23
|
-
list(query?: PartyListParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
28
|
+
list(query?: PartyListParams | null | undefined, options?: RequestOptions): APIPromise<PartyListResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface PartyListResponse {
|
|
31
|
+
data?: Array<unknown>;
|
|
32
|
+
pagination?: PartyListResponse.Pagination;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace PartyListResponse {
|
|
35
|
+
interface Pagination {
|
|
36
|
+
has_more?: boolean;
|
|
37
|
+
limit?: number | null;
|
|
38
|
+
next_cursor?: string | null;
|
|
39
|
+
}
|
|
24
40
|
}
|
|
25
41
|
export interface PartyCreateParams {
|
|
26
42
|
name: string;
|
|
@@ -39,11 +55,21 @@ export interface PartyCreateParams {
|
|
|
39
55
|
type?: 'person' | 'organization';
|
|
40
56
|
}
|
|
41
57
|
export interface PartyListParams {
|
|
58
|
+
/**
|
|
59
|
+
* Opaque continuation cursor from `pagination.next_cursor` of the previous page.
|
|
60
|
+
* Must be replayed with the same filters that produced it.
|
|
61
|
+
*/
|
|
62
|
+
cursor?: string;
|
|
42
63
|
email?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Parties per page (1-200). Omit to receive every party. Supplying a cursor
|
|
66
|
+
* without a limit uses 50.
|
|
67
|
+
*/
|
|
68
|
+
limit?: number;
|
|
43
69
|
query?: string;
|
|
44
70
|
type?: 'person' | 'organization';
|
|
45
71
|
}
|
|
46
72
|
export declare namespace Parties {
|
|
47
|
-
export { type PartyCreateParams as PartyCreateParams, type PartyListParams as PartyListParams };
|
|
73
|
+
export { type PartyListResponse as PartyListResponse, type PartyCreateParams as PartyCreateParams, type PartyListParams as PartyListParams, };
|
|
48
74
|
}
|
|
49
75
|
//# sourceMappingURL=parties.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parties.d.ts","sourceRoot":"","sources":["../../../src/resources/matters/v1/parties.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ3E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOrE;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOnE
|
|
1
|
+
{"version":3,"file":"parties.d.ts","sourceRoot":"","sources":["../../../src/resources/matters/v1/parties.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC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AAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -38,14 +38,15 @@ class Parties extends resource_1.APIResource {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* List reusable legal parties for the authenticated organization
|
|
41
|
+
* List reusable legal parties for the authenticated organization, newest update
|
|
42
|
+
* first. Pagination is opt-in: pass `limit` (1-200) to receive a bounded page,
|
|
43
|
+
* then replay `pagination.next_cursor` as `?cursor=` while `pagination.has_more`
|
|
44
|
+
* is true. A request with neither `limit` nor `cursor` still returns every party,
|
|
45
|
+
* and `pagination.limit` is null. That default will become a bounded page in a
|
|
46
|
+
* future release — paginate now to avoid the change.
|
|
42
47
|
*/
|
|
43
48
|
list(query = {}, options) {
|
|
44
|
-
return this._client.get('/matters/v1/parties', {
|
|
45
|
-
query,
|
|
46
|
-
...options,
|
|
47
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
48
|
-
});
|
|
49
|
+
return this._client.get('/matters/v1/parties', { query, ...options });
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
exports.Parties = Parties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parties.js","sourceRoot":"","sources":["../../../src/resources/matters/v1/parties.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,OAAO,EAAE,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uBAAuB,OAAO,EAAE,EAAE;YAC9D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"parties.js","sourceRoot":"","sources":["../../../src/resources/matters/v1/parties.ts"],"names":[],"m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ties extends APIResource {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* List reusable legal parties for the authenticated organization
|
|
38
|
+
* List reusable legal parties for the authenticated organization, newest update
|
|
39
|
+
* first. Pagination is opt-in: pass `limit` (1-200) to receive a bounded page,
|
|
40
|
+
* then replay `pagination.next_cursor` as `?cursor=` while `pagination.has_more`
|
|
41
|
+
* is true. A request with neither `limit` nor `cursor` still returns every party,
|
|
42
|
+
* and `pagination.limit` is null. That default will become a bounded page in a
|
|
43
|
+
* future release — paginate now to avoid the change.
|
|
39
44
|
*/
|
|
40
45
|
list(query = {}, options) {
|
|
41
|
-
return this._client.get('/matters/v1/parties', {
|
|
42
|
-
query,
|
|
43
|
-
...options,
|
|
44
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
-
});
|
|
46
|
+
return this._client.get('/matters/v1/parties', { query, ...options });
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
//# sourceMappingURL=parties.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parties.mjs","sourceRoot":"","sources":["../../../src/resources/matters/v1/parties.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,O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5D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uBAAuB,OAAO,EAAE,EAAE;YAC9D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Matter-native legal workspaces and orchestration primitives
|
|
6
|
+
*/
|
|
7
|
+
export declare class Purges extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns a Matter purge receipt for manual diagnostics. Integrations should
|
|
10
|
+
* subscribe to Matter purge webhooks rather than polling this route.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(purgeID: string, options?: RequestOptions): APIPromise<PurgeRetrieveResponse>;
|
|
13
|
+
}
|
|
14
|
+
export interface PurgeRetrieveResponse {
|
|
15
|
+
attempt: number;
|
|
16
|
+
matter_id: string;
|
|
17
|
+
purge_id: string;
|
|
18
|
+
status: 'queued' | 'in_progress' | 'failed' | 'completed';
|
|
19
|
+
vault_id: string;
|
|
20
|
+
workflow_id: string | null;
|
|
21
|
+
completed_at?: string | null;
|
|
22
|
+
counts?: PurgeRetrieveResponse.Counts;
|
|
23
|
+
failed_at?: string | null;
|
|
24
|
+
failure_code?: string | null;
|
|
25
|
+
requested_at?: string;
|
|
26
|
+
started_at?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Stable ID of the failed or completed terminal webhook event
|
|
29
|
+
*/
|
|
30
|
+
terminal_event_id?: string | null;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace PurgeRetrieveResponse {
|
|
33
|
+
interface Counts {
|
|
34
|
+
chats?: number;
|
|
35
|
+
objects?: number;
|
|
36
|
+
sessions?: number;
|
|
37
|
+
transcriptions?: number;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export declare namespace Purges {
|
|
41
|
+
export { type PurgeRetrieveResponse as PurgeRetrieveResponse };
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=purges.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purges.d.mts","sourceRoot":"","sources":["../../../src/resources/matters/v1/purges.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGvF;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,QAAQ,GAAG,aAAa,GAAG,QAAQ,GAAG,WAAW,CAAC;IAE1D,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,EAAE,MA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