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
|
@@ -15,19 +15,37 @@ export class Sessions extends APIResource {
|
|
|
15
15
|
* This endpoint starts the sandbox actor only; messages and event replay use
|
|
16
16
|
* separate endpoints.
|
|
17
17
|
*/
|
|
18
|
-
create(
|
|
18
|
+
create(params: SessionCreateParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
|
|
19
|
+
const {
|
|
20
|
+
'ai-reporting-tags': aiReportingTags,
|
|
21
|
+
'ai-reporting-user': aiReportingUser,
|
|
22
|
+
...body
|
|
23
|
+
} = params ?? {};
|
|
19
24
|
return this._client.post('/linc/v1/sessions', {
|
|
20
25
|
body,
|
|
21
26
|
...options,
|
|
22
|
-
headers: buildHeaders([
|
|
27
|
+
headers: buildHeaders([
|
|
28
|
+
{
|
|
29
|
+
Accept: '*/*',
|
|
30
|
+
...(aiReportingTags != null ? { 'ai-reporting-tags': aiReportingTags } : undefined),
|
|
31
|
+
...(aiReportingUser != null ? { 'ai-reporting-user': aiReportingUser } : undefined),
|
|
32
|
+
},
|
|
33
|
+
options?.headers,
|
|
34
|
+
]),
|
|
23
35
|
});
|
|
24
36
|
}
|
|
25
37
|
|
|
26
38
|
/**
|
|
27
39
|
* End native Linc session
|
|
28
40
|
*/
|
|
29
|
-
delete(
|
|
41
|
+
delete(
|
|
42
|
+
id: string,
|
|
43
|
+
params: SessionDeleteParams | null | undefined = {},
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): APIPromise<void> {
|
|
46
|
+
const { reason } = params ?? {};
|
|
30
47
|
return this._client.delete(path`/linc/v1/sessions/${id}`, {
|
|
48
|
+
query: { reason },
|
|
31
49
|
...options,
|
|
32
50
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
33
51
|
});
|
|
@@ -63,6 +81,19 @@ export class Sessions extends APIResource {
|
|
|
63
81
|
});
|
|
64
82
|
}
|
|
65
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Stops the conversation worker, applies a newly authorized object scope, revokes
|
|
86
|
+
* its prior managed credential, and resumes the same native conversation in its
|
|
87
|
+
* existing workspace.
|
|
88
|
+
*/
|
|
89
|
+
replaceScope(id: string, body: SessionReplaceScopeParams, options?: RequestOptions): APIPromise<void> {
|
|
90
|
+
return this._client.put(path`/linc/v1/sessions/${id}/scope`, {
|
|
91
|
+
body,
|
|
92
|
+
...options,
|
|
93
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
66
97
|
/**
|
|
67
98
|
* Returns persisted native Pi/Linc event envelopes after the requested cursor.
|
|
68
99
|
* Live delivery is handled by the Linc stream service.
|
|
@@ -122,46 +153,119 @@ export class Sessions extends APIResource {
|
|
|
122
153
|
|
|
123
154
|
export interface SessionCreateParams {
|
|
124
155
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
156
|
+
* Body param: Optional server-enforced capability profile. read_only grants only
|
|
157
|
+
* retrieval/inference service reads; session event ingestion remains bound to the
|
|
158
|
+
* exact managed runtime credential.
|
|
159
|
+
*/
|
|
160
|
+
capabilityPolicy?: 'read_only';
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Body param: Stable conversation identity within workspaceKey. Required in
|
|
164
|
+
* workspace mode and idempotent for repeated creates.
|
|
165
|
+
*/
|
|
166
|
+
conversationKey?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Body param: Specific document template slugs to inject into the
|
|
170
|
+
* using-document-templates skill.
|
|
127
171
|
*/
|
|
128
172
|
documentTemplateSlugs?: Array<string> | null;
|
|
129
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Body param
|
|
176
|
+
*/
|
|
130
177
|
idleTimeoutMs?: number | null;
|
|
131
178
|
|
|
132
179
|
/**
|
|
133
|
-
* When true, inject all active org document templates into the
|
|
180
|
+
* Body param: When true, inject all active org document templates into the
|
|
134
181
|
* using-document-templates skill.
|
|
135
182
|
*/
|
|
136
183
|
includeDocumentTemplates?: boolean | null;
|
|
137
184
|
|
|
138
185
|
/**
|
|
139
|
-
* Privileged C3-only hidden app instructions to append to the sandbox
|
|
186
|
+
* Body param: Privileged C3-only hidden app instructions to append to the sandbox
|
|
187
|
+
* AGENTS.md.
|
|
140
188
|
*/
|
|
141
189
|
instructions?: string | null;
|
|
142
190
|
|
|
191
|
+
/**
|
|
192
|
+
* Body param
|
|
193
|
+
*/
|
|
143
194
|
model?: string | null;
|
|
144
195
|
|
|
145
196
|
/**
|
|
146
|
-
* Optional caller-provided scoped Case.dev API key for the runtime.
|
|
197
|
+
* Body param: Optional caller-provided scoped Case.dev API key for the runtime.
|
|
147
198
|
*/
|
|
148
199
|
scopedApiKey?: string | null;
|
|
149
200
|
|
|
150
201
|
/**
|
|
151
|
-
* Processing tier for eligible OpenAI GPT models. Priority provides
|
|
152
|
-
* at premium cost.
|
|
202
|
+
* Body param: Processing tier for eligible OpenAI GPT models. Priority provides
|
|
203
|
+
* lower latency at premium cost.
|
|
153
204
|
*/
|
|
154
205
|
serviceTier?: 'default' | 'priority';
|
|
155
206
|
|
|
156
207
|
/**
|
|
157
|
-
* Skills API slugs to install into the runtime sandbox before the
|
|
158
|
-
* starts.
|
|
208
|
+
* Body param: Skills API slugs to install into the runtime sandbox before the
|
|
209
|
+
* native session starts.
|
|
159
210
|
*/
|
|
160
211
|
skillSlugs?: Array<string> | null;
|
|
161
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Body param
|
|
215
|
+
*/
|
|
162
216
|
title?: string;
|
|
163
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Body param: Legacy explicit whole-vault scope. Mutually exclusive with
|
|
220
|
+
* vaultScopes.
|
|
221
|
+
*/
|
|
164
222
|
vaultIds?: Array<string> | null;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Body param: Exact object allowlist per vault. Empty objectIds denies object
|
|
226
|
+
* access for that vault. Mutually exclusive with vaultIds.
|
|
227
|
+
*/
|
|
228
|
+
vaultScopes?: Array<SessionCreateParams.VaultScope> | null;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Body param: Opt-in persistent workspace identity. Requires conversationKey. Omit
|
|
232
|
+
* both fields to preserve isolated legacy session behavior.
|
|
233
|
+
*/
|
|
234
|
+
workspaceKey?: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Header param: Comma-separated AI Gateway reporting tags. At most 10 unique tags,
|
|
238
|
+
* each 1–64 characters.
|
|
239
|
+
*/
|
|
240
|
+
'ai-reporting-tags'?: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Header param: Stable internal user or customer identifier for AI Gateway cost
|
|
244
|
+
* reporting.
|
|
245
|
+
*/
|
|
246
|
+
'ai-reporting-user'?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export namespace SessionCreateParams {
|
|
250
|
+
export interface VaultScope {
|
|
251
|
+
objectIds: Array<string>;
|
|
252
|
+
|
|
253
|
+
vaultId: string;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface SessionDeleteParams {
|
|
258
|
+
/**
|
|
259
|
+
* Why the session is being ended; recorded in the linc.session.ended event
|
|
260
|
+
* payload. Unknown values fall back to user*deleted. The replaced*\* values
|
|
261
|
+
* distinguish automatic session replacement (e.g. by C3) from a user-initiated
|
|
262
|
+
* deletion.
|
|
263
|
+
*/
|
|
264
|
+
reason?:
|
|
265
|
+
| 'user_deleted'
|
|
266
|
+
| 'replaced_scope_changed'
|
|
267
|
+
| 'replaced_missing_session'
|
|
268
|
+
| 'replaced_runtime_unavailable';
|
|
165
269
|
}
|
|
166
270
|
|
|
167
271
|
export interface SessionCancelParams {
|
|
@@ -204,6 +308,26 @@ export namespace SessionIngestEventsParams {
|
|
|
204
308
|
}
|
|
205
309
|
}
|
|
206
310
|
|
|
311
|
+
export interface SessionReplaceScopeParams {
|
|
312
|
+
/**
|
|
313
|
+
* Legacy whole-vault scope. Mutually exclusive with vaultScopes.
|
|
314
|
+
*/
|
|
315
|
+
vaultIds?: Array<string>;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Authoritative object allowlist for the next and later turns.
|
|
319
|
+
*/
|
|
320
|
+
vaultScopes?: Array<SessionReplaceScopeParams.VaultScope>;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export namespace SessionReplaceScopeParams {
|
|
324
|
+
export interface VaultScope {
|
|
325
|
+
objectIds: Array<string>;
|
|
326
|
+
|
|
327
|
+
vaultId: string;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
207
331
|
export interface SessionRetrieveEventsParams {
|
|
208
332
|
/**
|
|
209
333
|
* Alias for cursor. Ignored when cursor is also provided.
|
|
@@ -261,8 +385,10 @@ export interface SessionSendRpcParams {
|
|
|
261
385
|
export declare namespace Sessions {
|
|
262
386
|
export {
|
|
263
387
|
type SessionCreateParams as SessionCreateParams,
|
|
388
|
+
type SessionDeleteParams as SessionDeleteParams,
|
|
264
389
|
type SessionCancelParams as SessionCancelParams,
|
|
265
390
|
type SessionIngestEventsParams as SessionIngestEventsParams,
|
|
391
|
+
type SessionReplaceScopeParams as SessionReplaceScopeParams,
|
|
266
392
|
type SessionRetrieveEventsParams as SessionRetrieveEventsParams,
|
|
267
393
|
type SessionRetrieveMessagesParams as SessionRetrieveMessagesParams,
|
|
268
394
|
type SessionSendRpcParams as SessionSendRpcParams,
|
|
@@ -5,7 +5,9 @@ import * as SessionsAPI from './sessions';
|
|
|
5
5
|
import {
|
|
6
6
|
SessionCancelParams,
|
|
7
7
|
SessionCreateParams,
|
|
8
|
+
SessionDeleteParams,
|
|
8
9
|
SessionIngestEventsParams,
|
|
10
|
+
SessionReplaceScopeParams,
|
|
9
11
|
SessionRetrieveEventsParams,
|
|
10
12
|
SessionRetrieveMessagesParams,
|
|
11
13
|
SessionSendRpcParams,
|
|
@@ -22,8 +24,10 @@ export declare namespace V1 {
|
|
|
22
24
|
export {
|
|
23
25
|
Sessions as Sessions,
|
|
24
26
|
type SessionCreateParams as SessionCreateParams,
|
|
27
|
+
type SessionDeleteParams as SessionDeleteParams,
|
|
25
28
|
type SessionCancelParams as SessionCancelParams,
|
|
26
29
|
type SessionIngestEventsParams as SessionIngestEventsParams,
|
|
30
|
+
type SessionReplaceScopeParams as SessionReplaceScopeParams,
|
|
27
31
|
type SessionRetrieveEventsParams as SessionRetrieveEventsParams,
|
|
28
32
|
type SessionRetrieveMessagesParams as SessionRetrieveMessagesParams,
|
|
29
33
|
type SessionSendRpcParams as SessionSendRpcParams,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
5
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -22,10 +23,21 @@ export class Chat extends APIResource {
|
|
|
22
23
|
* ```
|
|
23
24
|
*/
|
|
24
25
|
createCompletion(
|
|
25
|
-
|
|
26
|
+
params: ChatCreateCompletionParams,
|
|
26
27
|
options?: RequestOptions,
|
|
27
28
|
): APIPromise<ChatCreateCompletionResponse> {
|
|
28
|
-
|
|
29
|
+
const { 'ai-reporting-tags': aiReportingTags, 'ai-reporting-user': aiReportingUser, ...body } = params;
|
|
30
|
+
return this._client.post('/llm/v1/chat/completions', {
|
|
31
|
+
body,
|
|
32
|
+
...options,
|
|
33
|
+
headers: buildHeaders([
|
|
34
|
+
{
|
|
35
|
+
...(aiReportingTags != null ? { 'ai-reporting-tags': aiReportingTags } : undefined),
|
|
36
|
+
...(aiReportingUser != null ? { 'ai-reporting-user': aiReportingUser } : undefined),
|
|
37
|
+
},
|
|
38
|
+
options?.headers,
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
29
41
|
}
|
|
30
42
|
}
|
|
31
43
|
|
|
@@ -85,51 +97,64 @@ export namespace ChatCreateCompletionResponse {
|
|
|
85
97
|
|
|
86
98
|
export interface ChatCreateCompletionParams {
|
|
87
99
|
/**
|
|
88
|
-
* List of messages comprising the conversation
|
|
100
|
+
* Body param: List of messages comprising the conversation
|
|
89
101
|
*/
|
|
90
102
|
messages: Array<ChatCreateCompletionParams.Message>;
|
|
91
103
|
|
|
92
104
|
/**
|
|
93
|
-
* CaseMark-only: controls whether reasoning fields appear in
|
|
94
|
-
* to false (suppressed) for most CaseMark models; defaults to
|
|
95
|
-
* casemark/core-potassium.
|
|
105
|
+
* Body param: CaseMark-only: controls whether reasoning fields appear in
|
|
106
|
+
* responses. Defaults to false (suppressed) for most CaseMark models; defaults to
|
|
107
|
+
* true for casemark/core-potassium.
|
|
96
108
|
*/
|
|
97
109
|
casemark_show_reasoning?: boolean;
|
|
98
110
|
|
|
99
111
|
/**
|
|
100
|
-
* Frequency penalty parameter
|
|
112
|
+
* Body param: Frequency penalty parameter
|
|
101
113
|
*/
|
|
102
114
|
frequency_penalty?: number;
|
|
103
115
|
|
|
104
116
|
/**
|
|
105
|
-
* Maximum number of tokens to generate
|
|
117
|
+
* Body param: Maximum number of tokens to generate
|
|
106
118
|
*/
|
|
107
119
|
max_tokens?: number;
|
|
108
120
|
|
|
109
121
|
/**
|
|
110
|
-
* Model to use for completion. Defaults to casemark/core-large if not
|
|
122
|
+
* Body param: Model to use for completion. Defaults to casemark/core-large if not
|
|
123
|
+
* specified
|
|
111
124
|
*/
|
|
112
125
|
model?: string;
|
|
113
126
|
|
|
114
127
|
/**
|
|
115
|
-
* Presence penalty parameter
|
|
128
|
+
* Body param: Presence penalty parameter
|
|
116
129
|
*/
|
|
117
130
|
presence_penalty?: number;
|
|
118
131
|
|
|
119
132
|
/**
|
|
120
|
-
* Whether to stream back partial progress
|
|
133
|
+
* Body param: Whether to stream back partial progress
|
|
121
134
|
*/
|
|
122
135
|
stream?: boolean;
|
|
123
136
|
|
|
124
137
|
/**
|
|
125
|
-
* Sampling temperature between 0 and 2
|
|
138
|
+
* Body param: Sampling temperature between 0 and 2
|
|
126
139
|
*/
|
|
127
140
|
temperature?: number;
|
|
128
141
|
|
|
129
142
|
/**
|
|
130
|
-
* Nucleus sampling parameter
|
|
143
|
+
* Body param: Nucleus sampling parameter
|
|
131
144
|
*/
|
|
132
145
|
top_p?: number;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Header param: Comma-separated AI Gateway reporting tags. At most 10 unique tags,
|
|
149
|
+
* each 1–64 characters.
|
|
150
|
+
*/
|
|
151
|
+
'ai-reporting-tags'?: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Header param: Stable internal user or customer identifier for AI Gateway cost
|
|
155
|
+
* reporting.
|
|
156
|
+
*/
|
|
157
|
+
'ai-reporting-user'?: string;
|
|
133
158
|
}
|
|
134
159
|
|
|
135
160
|
export namespace ChatCreateCompletionParams {
|
|
@@ -33,9 +33,9 @@ export class V1 extends APIResource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Retrieve
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* Retrieve the curated list of available models: OpenAI and Google models plus
|
|
37
|
+
* Case.dev's specialized CaseMark legal models. Returns OpenAI-compatible model
|
|
38
|
+
* metadata with pricing information.
|
|
39
39
|
*
|
|
40
40
|
* This endpoint is compatible with OpenAI's models API format, making it easy to
|
|
41
41
|
* integrate with existing applications.
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Matters } from './matters';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
V1,
|
|
6
|
+
type V1ListResponse,
|
|
7
|
+
type V1DeleteResponse,
|
|
8
|
+
type V1CreateParams,
|
|
9
|
+
type V1UpdateParams,
|
|
10
|
+
type V1ListParams,
|
|
11
|
+
} from './v1/index';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as V1API from './v1/v1';
|
|
5
|
-
import { V1, V1CreateParams, V1ListParams, V1UpdateParams } from './v1/v1';
|
|
5
|
+
import { V1, V1CreateParams, V1DeleteResponse, V1ListParams, V1ListResponse, V1UpdateParams } from './v1/v1';
|
|
6
6
|
|
|
7
7
|
export class Matters extends APIResource {
|
|
8
8
|
v1: V1API.V1 = new V1API.V1(this._client);
|
|
@@ -13,6 +13,8 @@ Matters.V1 = V1;
|
|
|
13
13
|
export declare namespace Matters {
|
|
14
14
|
export {
|
|
15
15
|
V1 as V1,
|
|
16
|
+
type V1ListResponse as V1ListResponse,
|
|
17
|
+
type V1DeleteResponse as V1DeleteResponse,
|
|
16
18
|
type V1CreateParams as V1CreateParams,
|
|
17
19
|
type V1UpdateParams as V1UpdateParams,
|
|
18
20
|
type V1ListParams as V1ListParams,
|
|
@@ -0,0 +1,115 @@
|
|
|
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 ContentPurges extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Queues an idempotent hard deletion of explicitly owned content while preserving
|
|
14
|
+
* the Matter, Vault, and unrelated content. Use unified matter.content_purge
|
|
15
|
+
* webhooks for completion, not polling.
|
|
16
|
+
*/
|
|
17
|
+
create(
|
|
18
|
+
id: string,
|
|
19
|
+
body: ContentPurgeCreateParams,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<ContentPurgeCreateResponse> {
|
|
22
|
+
return this._client.post(path`/matters/v1/${id}/content-purges`, { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Owner-only receipt for operator diagnostics. Integrations must use unified
|
|
27
|
+
* content-purge webhooks rather than polling.
|
|
28
|
+
*/
|
|
29
|
+
retrieve(purgeID: string, options?: RequestOptions): APIPromise<ContentPurgeRetrieveResponse> {
|
|
30
|
+
return this._client.get(path`/matters/v1/content-purges/${purgeID}`, options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface ContentPurgeCreateResponse {
|
|
35
|
+
attempt: number;
|
|
36
|
+
|
|
37
|
+
matter_id: string;
|
|
38
|
+
|
|
39
|
+
purge_id: string;
|
|
40
|
+
|
|
41
|
+
request_id: string;
|
|
42
|
+
|
|
43
|
+
status: 'queued' | 'in_progress' | 'failed' | 'completed';
|
|
44
|
+
|
|
45
|
+
vault_id: string;
|
|
46
|
+
|
|
47
|
+
workflow_id: string | null;
|
|
48
|
+
|
|
49
|
+
completed_at?: string | null;
|
|
50
|
+
|
|
51
|
+
counts?: { [key: string]: number };
|
|
52
|
+
|
|
53
|
+
failed_at?: string | null;
|
|
54
|
+
|
|
55
|
+
failure_code?: string | null;
|
|
56
|
+
|
|
57
|
+
requested_at?: string;
|
|
58
|
+
|
|
59
|
+
started_at?: string | null;
|
|
60
|
+
|
|
61
|
+
terminal_event_id?: string | null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ContentPurgeRetrieveResponse {
|
|
65
|
+
attempt: number;
|
|
66
|
+
|
|
67
|
+
matter_id: string;
|
|
68
|
+
|
|
69
|
+
purge_id: string;
|
|
70
|
+
|
|
71
|
+
request_id: string;
|
|
72
|
+
|
|
73
|
+
status: 'queued' | 'in_progress' | 'failed' | 'completed';
|
|
74
|
+
|
|
75
|
+
vault_id: string;
|
|
76
|
+
|
|
77
|
+
workflow_id: string | null;
|
|
78
|
+
|
|
79
|
+
completed_at?: string | null;
|
|
80
|
+
|
|
81
|
+
counts?: { [key: string]: number };
|
|
82
|
+
|
|
83
|
+
failed_at?: string | null;
|
|
84
|
+
|
|
85
|
+
failure_code?: string | null;
|
|
86
|
+
|
|
87
|
+
requested_at?: string;
|
|
88
|
+
|
|
89
|
+
started_at?: string | null;
|
|
90
|
+
|
|
91
|
+
terminal_event_id?: string | null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface ContentPurgeCreateParams {
|
|
95
|
+
/**
|
|
96
|
+
* Stable caller idempotency ID; cannot be reused with different targets.
|
|
97
|
+
*/
|
|
98
|
+
request_id: string;
|
|
99
|
+
|
|
100
|
+
object_ids?: Array<string>;
|
|
101
|
+
|
|
102
|
+
session_ids?: Array<string>;
|
|
103
|
+
|
|
104
|
+
transcription_ids?: Array<string>;
|
|
105
|
+
|
|
106
|
+
work_item_ids?: Array<string>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare namespace ContentPurges {
|
|
110
|
+
export {
|
|
111
|
+
type ContentPurgeCreateResponse as ContentPurgeCreateResponse,
|
|
112
|
+
type ContentPurgeRetrieveResponse as ContentPurgeRetrieveResponse,
|
|
113
|
+
type ContentPurgeCreateParams as ContentPurgeCreateParams,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -13,11 +13,15 @@ export class Subscriptions extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates a webhook subscription for matter and work-item events.
|
|
15
15
|
*/
|
|
16
|
-
create(id: string,
|
|
16
|
+
create(id: string, params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
17
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
17
18
|
return this._client.post(path`/matters/v1/${id}/events/subscriptions`, {
|
|
18
19
|
body,
|
|
19
20
|
...options,
|
|
20
|
-
headers: buildHeaders([
|
|
21
|
+
headers: buildHeaders([
|
|
22
|
+
{ Accept: '*/*', ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
23
|
+
options?.headers,
|
|
24
|
+
]),
|
|
21
25
|
});
|
|
22
26
|
}
|
|
23
27
|
|
|
@@ -48,11 +52,26 @@ export class Subscriptions extends APIResource {
|
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
export interface SubscriptionCreateParams {
|
|
55
|
+
/**
|
|
56
|
+
* Body param
|
|
57
|
+
*/
|
|
51
58
|
callbackUrl: string;
|
|
52
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Body param
|
|
62
|
+
*/
|
|
53
63
|
eventTypes?: Array<string>;
|
|
54
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Body param
|
|
67
|
+
*/
|
|
55
68
|
signingSecret?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Header param: Reusing a key for this Matter updates and returns the same webhook
|
|
72
|
+
* subscription.
|
|
73
|
+
*/
|
|
74
|
+
'Idempotency-Key'?: string;
|
|
56
75
|
}
|
|
57
76
|
|
|
58
77
|
export interface SubscriptionDeleteParams {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { AgentTypes, type AgentTypeCreateParams, type AgentTypeListParams } from './agent-types';
|
|
4
|
+
export {
|
|
5
|
+
ContentPurges,
|
|
6
|
+
type ContentPurgeCreateResponse,
|
|
7
|
+
type ContentPurgeRetrieveResponse,
|
|
8
|
+
type ContentPurgeCreateParams,
|
|
9
|
+
} from './content-purges';
|
|
4
10
|
export { Events } from './events/index';
|
|
5
11
|
export {
|
|
6
12
|
Log,
|
|
@@ -10,12 +16,21 @@ export {
|
|
|
10
16
|
type LogExportParams,
|
|
11
17
|
} from './log';
|
|
12
18
|
export { MatterParties, type MatterPartyCreateParams } from './matter-parties';
|
|
13
|
-
export { Parties, type PartyCreateParams, type PartyListParams } from './parties';
|
|
19
|
+
export { Parties, type PartyListResponse, type PartyCreateParams, type PartyListParams } from './parties';
|
|
20
|
+
export { Purges, type PurgeRetrieveResponse } from './purges';
|
|
14
21
|
export { Shares, type ShareCreateParams, type ShareDeleteParams } from './shares';
|
|
15
22
|
export { Types, type TypeCreateParams, type TypeUpdateParams, type TypeListParams } from './types';
|
|
16
|
-
export {
|
|
23
|
+
export {
|
|
24
|
+
V1,
|
|
25
|
+
type V1ListResponse,
|
|
26
|
+
type V1DeleteResponse,
|
|
27
|
+
type V1CreateParams,
|
|
28
|
+
type V1UpdateParams,
|
|
29
|
+
type V1ListParams,
|
|
30
|
+
} from './v1';
|
|
17
31
|
export {
|
|
18
32
|
WorkItems,
|
|
33
|
+
type WorkItemListResponse,
|
|
19
34
|
type WorkItemCreateParams,
|
|
20
35
|
type WorkItemRetrieveParams,
|
|
21
36
|
type WorkItemUpdateParams,
|
|
@@ -42,14 +42,34 @@ export class Parties extends APIResource {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* List reusable legal parties for the authenticated organization
|
|
45
|
+
* List reusable legal parties for the authenticated organization, newest update
|
|
46
|
+
* first. Pagination is opt-in: pass `limit` (1-200) to receive a bounded page,
|
|
47
|
+
* then replay `pagination.next_cursor` as `?cursor=` while `pagination.has_more`
|
|
48
|
+
* is true. A request with neither `limit` nor `cursor` still returns every party,
|
|
49
|
+
* and `pagination.limit` is null. That default will become a bounded page in a
|
|
50
|
+
* future release — paginate now to avoid the change.
|
|
46
51
|
*/
|
|
47
|
-
list(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
list(
|
|
53
|
+
query: PartyListParams | null | undefined = {},
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<PartyListResponse> {
|
|
56
|
+
return this._client.get('/matters/v1/parties', { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface PartyListResponse {
|
|
61
|
+
data?: Array<unknown>;
|
|
62
|
+
|
|
63
|
+
pagination?: PartyListResponse.Pagination;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace PartyListResponse {
|
|
67
|
+
export interface Pagination {
|
|
68
|
+
has_more?: boolean;
|
|
69
|
+
|
|
70
|
+
limit?: number | null;
|
|
71
|
+
|
|
72
|
+
next_cursor?: string | null;
|
|
53
73
|
}
|
|
54
74
|
}
|
|
55
75
|
|
|
@@ -72,13 +92,29 @@ export interface PartyCreateParams {
|
|
|
72
92
|
}
|
|
73
93
|
|
|
74
94
|
export interface PartyListParams {
|
|
95
|
+
/**
|
|
96
|
+
* Opaque continuation cursor from `pagination.next_cursor` of the previous page.
|
|
97
|
+
* Must be replayed with the same filters that produced it.
|
|
98
|
+
*/
|
|
99
|
+
cursor?: string;
|
|
100
|
+
|
|
75
101
|
email?: string;
|
|
76
102
|
|
|
103
|
+
/**
|
|
104
|
+
* Parties per page (1-200). Omit to receive every party. Supplying a cursor
|
|
105
|
+
* without a limit uses 50.
|
|
106
|
+
*/
|
|
107
|
+
limit?: number;
|
|
108
|
+
|
|
77
109
|
query?: string;
|
|
78
110
|
|
|
79
111
|
type?: 'person' | 'organization';
|
|
80
112
|
}
|
|
81
113
|
|
|
82
114
|
export declare namespace Parties {
|
|
83
|
-
export {
|
|
115
|
+
export {
|
|
116
|
+
type PartyListResponse as PartyListResponse,
|
|
117
|
+
type PartyCreateParams as PartyCreateParams,
|
|
118
|
+
type PartyListParams as PartyListParams,
|
|
119
|
+
};
|
|
84
120
|
}
|