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
|
@@ -1,51 +1,140 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as ConnectionsAPI from "./connections.mjs";
|
|
3
|
-
import { ConnectionBrowseParams, ConnectionBrowseResponse, ConnectionCreateParams, ConnectionCreateResponse, ConnectionDeleteParams, ConnectionListParams, ConnectionListResponse, Connections } from "./connections.mjs";
|
|
3
|
+
import { ConnectionBrowseParams, ConnectionBrowseResponse, ConnectionCreateParams, ConnectionCreateResponse, ConnectionDeleteParams, ConnectionListParams, ConnectionListResponse, ConnectionRetrieveParams, ConnectionUpdateAllParams, Connections } from "./connections.mjs";
|
|
4
4
|
import * as LinksAPI from "./links.mjs";
|
|
5
|
-
import { LinkDeleteParams, LinkListObjectsParams, LinkListParams, LinkUpdateParams, Links } from "./links.mjs";
|
|
5
|
+
import { LinkDeleteParams, LinkListObjectsParams, LinkListParams, LinkRetrieveParams, LinkUpdateParams, Links } from "./links.mjs";
|
|
6
|
+
import * as ApplicationsAPI from "./applications/applications.mjs";
|
|
7
|
+
import { Applications } from "./applications/applications.mjs";
|
|
6
8
|
import * as InstallationsAPI from "./installations/installations.mjs";
|
|
7
|
-
import { InstallationEnsureParams, InstallationListParams, Installations } from "./installations/installations.mjs";
|
|
9
|
+
import { InstallationEnsureParams, InstallationListParams, InstallationListResponse, Installations } from "./installations/installations.mjs";
|
|
8
10
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
9
11
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
10
12
|
/**
|
|
11
|
-
* Import and export between provider folders
|
|
13
|
+
* Import and export between provider folders and vaults
|
|
12
14
|
*/
|
|
13
15
|
export declare class V1 extends APIResource {
|
|
16
|
+
applications: ApplicationsAPI.Applications;
|
|
14
17
|
installations: InstallationsAPI.Installations;
|
|
15
18
|
connections: ConnectionsAPI.Connections;
|
|
16
19
|
links: LinksAPI.Links;
|
|
17
20
|
/**
|
|
18
21
|
* Standing promise: backfill now, then stay current (the sync sweeper re-runs
|
|
19
|
-
* synced links on a schedule).
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* synced links on a schedule). Direction both creates paired import/export links
|
|
23
|
+
* and defaults export to a CaseMark Output subfolder. Same body as /transfer minus
|
|
24
|
+
* run_mode. Upserts links by (connection_id, direction, remote, vault_id);
|
|
25
|
+
* existing once-links are upgraded in place with their ledger and cursor
|
|
26
|
+
* preserved. Downgrade or pause via PATCH /links/{id}.
|
|
23
27
|
*/
|
|
24
|
-
syncLink(
|
|
28
|
+
syncLink(params: V1SyncLinkParams, options?: RequestOptions): APIPromise<V1SyncLinkResponse>;
|
|
25
29
|
/**
|
|
26
|
-
* One-shot import (provider folder → vault)
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
+
* One-shot import (provider folder → vault), export (vault → provider folder), or
|
|
31
|
+
* both. Direction both creates paired import/export links and defaults export to a
|
|
32
|
+
* CaseMark Output subfolder. Upserts links by (connection_id, direction, remote,
|
|
33
|
+
* vault_id): first call backfills, later calls move only new/changed files via the
|
|
34
|
+
* ledger. Poll GET /links/{id} → active_run for progress.
|
|
30
35
|
*/
|
|
31
|
-
transfer(
|
|
36
|
+
transfer(params: V1TransferParams, options?: RequestOptions): APIPromise<V1TransferResponse>;
|
|
37
|
+
}
|
|
38
|
+
export interface SyncLinkLinkRun {
|
|
39
|
+
link_id: string;
|
|
40
|
+
started: boolean;
|
|
41
|
+
backlog?: number;
|
|
42
|
+
reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Whether a provider scan started or was deferred.
|
|
46
|
+
*/
|
|
47
|
+
export interface SyncLinkRun {
|
|
48
|
+
started: boolean;
|
|
49
|
+
backlog?: number;
|
|
50
|
+
reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
|
|
51
|
+
}
|
|
52
|
+
export interface TransferLinkRun {
|
|
53
|
+
link_id: string;
|
|
54
|
+
started: boolean;
|
|
55
|
+
backlog?: number;
|
|
56
|
+
reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Whether a provider scan started or was deferred.
|
|
60
|
+
*/
|
|
61
|
+
export interface TransferRun {
|
|
62
|
+
started: boolean;
|
|
63
|
+
backlog?: number;
|
|
64
|
+
reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
|
|
32
65
|
}
|
|
33
66
|
export interface V1SyncLinkResponse {
|
|
34
67
|
links?: Array<unknown>;
|
|
68
|
+
/**
|
|
69
|
+
* Whether a provider scan started or was deferred.
|
|
70
|
+
*/
|
|
71
|
+
run?: SyncLinkRun;
|
|
72
|
+
/**
|
|
73
|
+
* Start result for each link when direction is both.
|
|
74
|
+
*/
|
|
75
|
+
runs?: Array<SyncLinkLinkRun>;
|
|
35
76
|
}
|
|
36
77
|
export interface V1TransferResponse {
|
|
37
78
|
links?: Array<unknown>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether a provider scan started or was deferred.
|
|
81
|
+
*/
|
|
82
|
+
run?: TransferRun;
|
|
83
|
+
/**
|
|
84
|
+
* Start result for each link when direction is both.
|
|
85
|
+
*/
|
|
86
|
+
runs?: Array<TransferLinkRun>;
|
|
38
87
|
}
|
|
39
88
|
export interface V1SyncLinkParams {
|
|
89
|
+
/**
|
|
90
|
+
* Body param
|
|
91
|
+
*/
|
|
40
92
|
connection_id: string;
|
|
41
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Body param
|
|
95
|
+
*/
|
|
96
|
+
direction: 'import' | 'export' | 'both';
|
|
97
|
+
/**
|
|
98
|
+
* Body param
|
|
99
|
+
*/
|
|
42
100
|
remote: V1SyncLinkParams.Remote;
|
|
101
|
+
/**
|
|
102
|
+
* Body param
|
|
103
|
+
*/
|
|
43
104
|
vault_id: string;
|
|
105
|
+
/**
|
|
106
|
+
* Body param: Optional destination for direction both. Defaults to CaseMark Output
|
|
107
|
+
* under remote.
|
|
108
|
+
*/
|
|
109
|
+
export_destination?: V1SyncLinkParams.ExportDestination;
|
|
110
|
+
/**
|
|
111
|
+
* Body param
|
|
112
|
+
*/
|
|
44
113
|
matter_id?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Body param
|
|
116
|
+
*/
|
|
45
117
|
policy?: V1SyncLinkParams.Policy;
|
|
118
|
+
/**
|
|
119
|
+
* Header param: Trusted server-to-server application-user assertion. Derive it
|
|
120
|
+
* from the authenticated application session, never browser input. Omit only for
|
|
121
|
+
* the legacy organization-scoped namespace.
|
|
122
|
+
*/
|
|
123
|
+
'x-case-connector-subject'?: string;
|
|
46
124
|
}
|
|
47
125
|
export declare namespace V1SyncLinkParams {
|
|
48
126
|
interface Remote {
|
|
127
|
+
folder_id: string;
|
|
128
|
+
container_id?: string;
|
|
129
|
+
path?: string;
|
|
130
|
+
resource_type?: string;
|
|
131
|
+
site_id?: string;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Optional destination for direction both. Defaults to CaseMark Output under
|
|
135
|
+
* remote.
|
|
136
|
+
*/
|
|
137
|
+
interface ExportDestination {
|
|
49
138
|
folder_id: string;
|
|
50
139
|
container_id?: string;
|
|
51
140
|
path?: string;
|
|
@@ -58,22 +147,73 @@ export declare namespace V1SyncLinkParams {
|
|
|
58
147
|
}
|
|
59
148
|
namespace Policy {
|
|
60
149
|
interface Filters {
|
|
150
|
+
/**
|
|
151
|
+
* Skip these stable document ids before download, including future versions.
|
|
152
|
+
*/
|
|
153
|
+
exclude_file_ids?: Array<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Skip these folders and all descendants during document imports.
|
|
156
|
+
*/
|
|
157
|
+
exclude_folder_ids?: Array<string>;
|
|
61
158
|
exclude_mime?: Array<string>;
|
|
62
159
|
max_size_bytes?: number;
|
|
63
160
|
}
|
|
64
161
|
}
|
|
65
162
|
}
|
|
66
163
|
export interface V1TransferParams {
|
|
164
|
+
/**
|
|
165
|
+
* Body param
|
|
166
|
+
*/
|
|
67
167
|
connection_id: string;
|
|
68
|
-
|
|
168
|
+
/**
|
|
169
|
+
* Body param
|
|
170
|
+
*/
|
|
171
|
+
direction: 'import' | 'export' | 'both';
|
|
172
|
+
/**
|
|
173
|
+
* Body param
|
|
174
|
+
*/
|
|
69
175
|
remote: V1TransferParams.Remote;
|
|
176
|
+
/**
|
|
177
|
+
* Body param
|
|
178
|
+
*/
|
|
70
179
|
vault_id: string;
|
|
180
|
+
/**
|
|
181
|
+
* Body param: Optional destination for direction both. Defaults to CaseMark Output
|
|
182
|
+
* under remote.
|
|
183
|
+
*/
|
|
184
|
+
export_destination?: V1TransferParams.ExportDestination;
|
|
185
|
+
/**
|
|
186
|
+
* Body param
|
|
187
|
+
*/
|
|
71
188
|
matter_id?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Body param
|
|
191
|
+
*/
|
|
72
192
|
policy?: V1TransferParams.Policy;
|
|
193
|
+
/**
|
|
194
|
+
* Body param
|
|
195
|
+
*/
|
|
73
196
|
run_mode?: 'auto' | 'full_reconcile';
|
|
197
|
+
/**
|
|
198
|
+
* Header param: Trusted server-to-server application-user assertion. Derive it
|
|
199
|
+
* from the authenticated application session, never browser input. Omit only for
|
|
200
|
+
* the legacy organization-scoped namespace.
|
|
201
|
+
*/
|
|
202
|
+
'x-case-connector-subject'?: string;
|
|
74
203
|
}
|
|
75
204
|
export declare namespace V1TransferParams {
|
|
76
205
|
interface Remote {
|
|
206
|
+
folder_id: string;
|
|
207
|
+
container_id?: string;
|
|
208
|
+
path?: string;
|
|
209
|
+
resource_type?: string;
|
|
210
|
+
site_id?: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Optional destination for direction both. Defaults to CaseMark Output under
|
|
214
|
+
* remote.
|
|
215
|
+
*/
|
|
216
|
+
interface ExportDestination {
|
|
77
217
|
folder_id: string;
|
|
78
218
|
container_id?: string;
|
|
79
219
|
path?: string;
|
|
@@ -86,15 +226,24 @@ export declare namespace V1TransferParams {
|
|
|
86
226
|
}
|
|
87
227
|
namespace Policy {
|
|
88
228
|
interface Filters {
|
|
229
|
+
/**
|
|
230
|
+
* Skip these stable document ids before download, including future versions.
|
|
231
|
+
*/
|
|
232
|
+
exclude_file_ids?: Array<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Skip these folders and all descendants during document imports.
|
|
235
|
+
*/
|
|
236
|
+
exclude_folder_ids?: Array<string>;
|
|
89
237
|
exclude_mime?: Array<string>;
|
|
90
238
|
max_size_bytes?: number;
|
|
91
239
|
}
|
|
92
240
|
}
|
|
93
241
|
}
|
|
94
242
|
export declare namespace V1 {
|
|
95
|
-
export { type V1SyncLinkResponse as V1SyncLinkResponse, type V1TransferResponse as V1TransferResponse, type V1SyncLinkParams as V1SyncLinkParams, type V1TransferParams as V1TransferParams, };
|
|
96
|
-
export {
|
|
97
|
-
export {
|
|
98
|
-
export {
|
|
243
|
+
export { type SyncLinkLinkRun as SyncLinkLinkRun, type SyncLinkRun as SyncLinkRun, type TransferLinkRun as TransferLinkRun, type TransferRun as TransferRun, type V1SyncLinkResponse as V1SyncLinkResponse, type V1TransferResponse as V1TransferResponse, type V1SyncLinkParams as V1SyncLinkParams, type V1TransferParams as V1TransferParams, };
|
|
244
|
+
export { Applications as Applications };
|
|
245
|
+
export { Installations as Installations, type InstallationListResponse as InstallationListResponse, type InstallationListParams as InstallationListParams, type InstallationEnsureParams as InstallationEnsureParams, };
|
|
246
|
+
export { Connections as Connections, type ConnectionCreateResponse as ConnectionCreateResponse, type ConnectionListResponse as ConnectionListResponse, type ConnectionBrowseResponse as ConnectionBrowseResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionRetrieveParams as ConnectionRetrieveParams, type ConnectionListParams as ConnectionListParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionBrowseParams as ConnectionBrowseParams, type ConnectionUpdateAllParams as ConnectionUpdateAllParams, };
|
|
247
|
+
export { Links as Links, type LinkRetrieveParams as LinkRetrieveParams, type LinkUpdateParams as LinkUpdateParams, type LinkListParams as LinkListParams, type LinkDeleteParams as LinkDeleteParams, type LinkListObjectsParams as LinkListObjectsParams, };
|
|
99
248
|
}
|
|
100
249
|
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../../src/resources/connectors/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,WAAW,EACZ,0BAAsB;AACvB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,
|
|
1
|
+
{"version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AAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -1,51 +1,140 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as ConnectionsAPI from "./connections.js";
|
|
3
|
-
import { ConnectionBrowseParams, ConnectionBrowseResponse, ConnectionCreateParams, ConnectionCreateResponse, ConnectionDeleteParams, ConnectionListParams, ConnectionListResponse, Connections } from "./connections.js";
|
|
3
|
+
import { ConnectionBrowseParams, ConnectionBrowseResponse, ConnectionCreateParams, ConnectionCreateResponse, ConnectionDeleteParams, ConnectionListParams, ConnectionListResponse, ConnectionRetrieveParams, ConnectionUpdateAllParams, Connections } from "./connections.js";
|
|
4
4
|
import * as LinksAPI from "./links.js";
|
|
5
|
-
import { LinkDeleteParams, LinkListObjectsParams, LinkListParams, LinkUpdateParams, Links } from "./links.js";
|
|
5
|
+
import { LinkDeleteParams, LinkListObjectsParams, LinkListParams, LinkRetrieveParams, LinkUpdateParams, Links } from "./links.js";
|
|
6
|
+
import * as ApplicationsAPI from "./applications/applications.js";
|
|
7
|
+
import { Applications } from "./applications/applications.js";
|
|
6
8
|
import * as InstallationsAPI from "./installations/installations.js";
|
|
7
|
-
import { InstallationEnsureParams, InstallationListParams, Installations } from "./installations/installations.js";
|
|
9
|
+
import { InstallationEnsureParams, InstallationListParams, InstallationListResponse, Installations } from "./installations/installations.js";
|
|
8
10
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
9
11
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
10
12
|
/**
|
|
11
|
-
* Import and export between provider folders
|
|
13
|
+
* Import and export between provider folders and vaults
|
|
12
14
|
*/
|
|
13
15
|
export declare class V1 extends APIResource {
|
|
16
|
+
applications: ApplicationsAPI.Applications;
|
|
14
17
|
installations: InstallationsAPI.Installations;
|
|
15
18
|
connections: ConnectionsAPI.Connections;
|
|
16
19
|
links: LinksAPI.Links;
|
|
17
20
|
/**
|
|
18
21
|
* Standing promise: backfill now, then stay current (the sync sweeper re-runs
|
|
19
|
-
* synced links on a schedule).
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* synced links on a schedule). Direction both creates paired import/export links
|
|
23
|
+
* and defaults export to a CaseMark Output subfolder. Same body as /transfer minus
|
|
24
|
+
* run_mode. Upserts links by (connection_id, direction, remote, vault_id);
|
|
25
|
+
* existing once-links are upgraded in place with their ledger and cursor
|
|
26
|
+
* preserved. Downgrade or pause via PATCH /links/{id}.
|
|
23
27
|
*/
|
|
24
|
-
syncLink(
|
|
28
|
+
syncLink(params: V1SyncLinkParams, options?: RequestOptions): APIPromise<V1SyncLinkResponse>;
|
|
25
29
|
/**
|
|
26
|
-
* One-shot import (provider folder → vault)
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
+
* One-shot import (provider folder → vault), export (vault → provider folder), or
|
|
31
|
+
* both. Direction both creates paired import/export links and defaults export to a
|
|
32
|
+
* CaseMark Output subfolder. Upserts links by (connection_id, direction, remote,
|
|
33
|
+
* vault_id): first call backfills, later calls move only new/changed files via the
|
|
34
|
+
* ledger. Poll GET /links/{id} → active_run for progress.
|
|
30
35
|
*/
|
|
31
|
-
transfer(
|
|
36
|
+
transfer(params: V1TransferParams, options?: RequestOptions): APIPromise<V1TransferResponse>;
|
|
37
|
+
}
|
|
38
|
+
export interface SyncLinkLinkRun {
|
|
39
|
+
link_id: string;
|
|
40
|
+
started: boolean;
|
|
41
|
+
backlog?: number;
|
|
42
|
+
reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Whether a provider scan started or was deferred.
|
|
46
|
+
*/
|
|
47
|
+
export interface SyncLinkRun {
|
|
48
|
+
started: boolean;
|
|
49
|
+
backlog?: number;
|
|
50
|
+
reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
|
|
51
|
+
}
|
|
52
|
+
export interface TransferLinkRun {
|
|
53
|
+
link_id: string;
|
|
54
|
+
started: boolean;
|
|
55
|
+
backlog?: number;
|
|
56
|
+
reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Whether a provider scan started or was deferred.
|
|
60
|
+
*/
|
|
61
|
+
export interface TransferRun {
|
|
62
|
+
started: boolean;
|
|
63
|
+
backlog?: number;
|
|
64
|
+
reason?: 'stale_run_recovery' | 'already_running' | 'ingestion_backlog';
|
|
32
65
|
}
|
|
33
66
|
export interface V1SyncLinkResponse {
|
|
34
67
|
links?: Array<unknown>;
|
|
68
|
+
/**
|
|
69
|
+
* Whether a provider scan started or was deferred.
|
|
70
|
+
*/
|
|
71
|
+
run?: SyncLinkRun;
|
|
72
|
+
/**
|
|
73
|
+
* Start result for each link when direction is both.
|
|
74
|
+
*/
|
|
75
|
+
runs?: Array<SyncLinkLinkRun>;
|
|
35
76
|
}
|
|
36
77
|
export interface V1TransferResponse {
|
|
37
78
|
links?: Array<unknown>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether a provider scan started or was deferred.
|
|
81
|
+
*/
|
|
82
|
+
run?: TransferRun;
|
|
83
|
+
/**
|
|
84
|
+
* Start result for each link when direction is both.
|
|
85
|
+
*/
|
|
86
|
+
runs?: Array<TransferLinkRun>;
|
|
38
87
|
}
|
|
39
88
|
export interface V1SyncLinkParams {
|
|
89
|
+
/**
|
|
90
|
+
* Body param
|
|
91
|
+
*/
|
|
40
92
|
connection_id: string;
|
|
41
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Body param
|
|
95
|
+
*/
|
|
96
|
+
direction: 'import' | 'export' | 'both';
|
|
97
|
+
/**
|
|
98
|
+
* Body param
|
|
99
|
+
*/
|
|
42
100
|
remote: V1SyncLinkParams.Remote;
|
|
101
|
+
/**
|
|
102
|
+
* Body param
|
|
103
|
+
*/
|
|
43
104
|
vault_id: string;
|
|
105
|
+
/**
|
|
106
|
+
* Body param: Optional destination for direction both. Defaults to CaseMark Output
|
|
107
|
+
* under remote.
|
|
108
|
+
*/
|
|
109
|
+
export_destination?: V1SyncLinkParams.ExportDestination;
|
|
110
|
+
/**
|
|
111
|
+
* Body param
|
|
112
|
+
*/
|
|
44
113
|
matter_id?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Body param
|
|
116
|
+
*/
|
|
45
117
|
policy?: V1SyncLinkParams.Policy;
|
|
118
|
+
/**
|
|
119
|
+
* Header param: Trusted server-to-server application-user assertion. Derive it
|
|
120
|
+
* from the authenticated application session, never browser input. Omit only for
|
|
121
|
+
* the legacy organization-scoped namespace.
|
|
122
|
+
*/
|
|
123
|
+
'x-case-connector-subject'?: string;
|
|
46
124
|
}
|
|
47
125
|
export declare namespace V1SyncLinkParams {
|
|
48
126
|
interface Remote {
|
|
127
|
+
folder_id: string;
|
|
128
|
+
container_id?: string;
|
|
129
|
+
path?: string;
|
|
130
|
+
resource_type?: string;
|
|
131
|
+
site_id?: string;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Optional destination for direction both. Defaults to CaseMark Output under
|
|
135
|
+
* remote.
|
|
136
|
+
*/
|
|
137
|
+
interface ExportDestination {
|
|
49
138
|
folder_id: string;
|
|
50
139
|
container_id?: string;
|
|
51
140
|
path?: string;
|
|
@@ -58,22 +147,73 @@ export declare namespace V1SyncLinkParams {
|
|
|
58
147
|
}
|
|
59
148
|
namespace Policy {
|
|
60
149
|
interface Filters {
|
|
150
|
+
/**
|
|
151
|
+
* Skip these stable document ids before download, including future versions.
|
|
152
|
+
*/
|
|
153
|
+
exclude_file_ids?: Array<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Skip these folders and all descendants during document imports.
|
|
156
|
+
*/
|
|
157
|
+
exclude_folder_ids?: Array<string>;
|
|
61
158
|
exclude_mime?: Array<string>;
|
|
62
159
|
max_size_bytes?: number;
|
|
63
160
|
}
|
|
64
161
|
}
|
|
65
162
|
}
|
|
66
163
|
export interface V1TransferParams {
|
|
164
|
+
/**
|
|
165
|
+
* Body param
|
|
166
|
+
*/
|
|
67
167
|
connection_id: string;
|
|
68
|
-
|
|
168
|
+
/**
|
|
169
|
+
* Body param
|
|
170
|
+
*/
|
|
171
|
+
direction: 'import' | 'export' | 'both';
|
|
172
|
+
/**
|
|
173
|
+
* Body param
|
|
174
|
+
*/
|
|
69
175
|
remote: V1TransferParams.Remote;
|
|
176
|
+
/**
|
|
177
|
+
* Body param
|
|
178
|
+
*/
|
|
70
179
|
vault_id: string;
|
|
180
|
+
/**
|
|
181
|
+
* Body param: Optional destination for direction both. Defaults to CaseMark Output
|
|
182
|
+
* under remote.
|
|
183
|
+
*/
|
|
184
|
+
export_destination?: V1TransferParams.ExportDestination;
|
|
185
|
+
/**
|
|
186
|
+
* Body param
|
|
187
|
+
*/
|
|
71
188
|
matter_id?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Body param
|
|
191
|
+
*/
|
|
72
192
|
policy?: V1TransferParams.Policy;
|
|
193
|
+
/**
|
|
194
|
+
* Body param
|
|
195
|
+
*/
|
|
73
196
|
run_mode?: 'auto' | 'full_reconcile';
|
|
197
|
+
/**
|
|
198
|
+
* Header param: Trusted server-to-server application-user assertion. Derive it
|
|
199
|
+
* from the authenticated application session, never browser input. Omit only for
|
|
200
|
+
* the legacy organization-scoped namespace.
|
|
201
|
+
*/
|
|
202
|
+
'x-case-connector-subject'?: string;
|
|
74
203
|
}
|
|
75
204
|
export declare namespace V1TransferParams {
|
|
76
205
|
interface Remote {
|
|
206
|
+
folder_id: string;
|
|
207
|
+
container_id?: string;
|
|
208
|
+
path?: string;
|
|
209
|
+
resource_type?: string;
|
|
210
|
+
site_id?: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Optional destination for direction both. Defaults to CaseMark Output under
|
|
214
|
+
* remote.
|
|
215
|
+
*/
|
|
216
|
+
interface ExportDestination {
|
|
77
217
|
folder_id: string;
|
|
78
218
|
container_id?: string;
|
|
79
219
|
path?: string;
|
|
@@ -86,15 +226,24 @@ export declare namespace V1TransferParams {
|
|
|
86
226
|
}
|
|
87
227
|
namespace Policy {
|
|
88
228
|
interface Filters {
|
|
229
|
+
/**
|
|
230
|
+
* Skip these stable document ids before download, including future versions.
|
|
231
|
+
*/
|
|
232
|
+
exclude_file_ids?: Array<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Skip these folders and all descendants during document imports.
|
|
235
|
+
*/
|
|
236
|
+
exclude_folder_ids?: Array<string>;
|
|
89
237
|
exclude_mime?: Array<string>;
|
|
90
238
|
max_size_bytes?: number;
|
|
91
239
|
}
|
|
92
240
|
}
|
|
93
241
|
}
|
|
94
242
|
export declare namespace V1 {
|
|
95
|
-
export { type V1SyncLinkResponse as V1SyncLinkResponse, type V1TransferResponse as V1TransferResponse, type V1SyncLinkParams as V1SyncLinkParams, type V1TransferParams as V1TransferParams, };
|
|
96
|
-
export {
|
|
97
|
-
export {
|
|
98
|
-
export {
|
|
243
|
+
export { type SyncLinkLinkRun as SyncLinkLinkRun, type SyncLinkRun as SyncLinkRun, type TransferLinkRun as TransferLinkRun, type TransferRun as TransferRun, type V1SyncLinkResponse as V1SyncLinkResponse, type V1TransferResponse as V1TransferResponse, type V1SyncLinkParams as V1SyncLinkParams, type V1TransferParams as V1TransferParams, };
|
|
244
|
+
export { Applications as Applications };
|
|
245
|
+
export { Installations as Installations, type InstallationListResponse as InstallationListResponse, type InstallationListParams as InstallationListParams, type InstallationEnsureParams as InstallationEnsureParams, };
|
|
246
|
+
export { Connections as Connections, type ConnectionCreateResponse as ConnectionCreateResponse, type ConnectionListResponse as ConnectionListResponse, type ConnectionBrowseResponse as ConnectionBrowseResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionRetrieveParams as ConnectionRetrieveParams, type ConnectionListParams as ConnectionListParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionBrowseParams as ConnectionBrowseParams, type ConnectionUpdateAllParams as ConnectionUpdateAllParams, };
|
|
247
|
+
export { Links as Links, type LinkRetrieveParams as LinkRetrieveParams, type LinkUpdateParams as LinkUpdateParams, type LinkListParams as LinkListParams, type LinkDeleteParams as LinkDeleteParams, type LinkListObjectsParams as LinkListObjectsParams, };
|
|
99
248
|
}
|
|
100
249
|
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/connectors/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,WAAW,EACZ,yBAAsB;AACvB,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/connectors/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,WAAW,EACZ,yBAAsB;AACvB,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACN,mBAAgB;AACjB,OAAO,KAAK,eAAe,uCAAoC;AAC/D,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,KAAK,gBAAgB,yCAAsC;AAClE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACt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Y,EAAE,CAAC;IAExC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -8,39 +8,70 @@ const ConnectionsAPI = tslib_1.__importStar(require("./connections.js"));
|
|
|
8
8
|
const connections_1 = require("./connections.js");
|
|
9
9
|
const LinksAPI = tslib_1.__importStar(require("./links.js"));
|
|
10
10
|
const links_1 = require("./links.js");
|
|
11
|
+
const ApplicationsAPI = tslib_1.__importStar(require("./applications/applications.js"));
|
|
12
|
+
const applications_1 = require("./applications/applications.js");
|
|
11
13
|
const InstallationsAPI = tslib_1.__importStar(require("./installations/installations.js"));
|
|
12
14
|
const installations_1 = require("./installations/installations.js");
|
|
15
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
13
16
|
/**
|
|
14
|
-
* Import and export between provider folders
|
|
17
|
+
* Import and export between provider folders and vaults
|
|
15
18
|
*/
|
|
16
19
|
class V1 extends resource_1.APIResource {
|
|
17
20
|
constructor() {
|
|
18
21
|
super(...arguments);
|
|
22
|
+
this.applications = new ApplicationsAPI.Applications(this._client);
|
|
19
23
|
this.installations = new InstallationsAPI.Installations(this._client);
|
|
20
24
|
this.connections = new ConnectionsAPI.Connections(this._client);
|
|
21
25
|
this.links = new LinksAPI.Links(this._client);
|
|
22
26
|
}
|
|
23
27
|
/**
|
|
24
28
|
* Standing promise: backfill now, then stay current (the sync sweeper re-runs
|
|
25
|
-
* synced links on a schedule).
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
+
* synced links on a schedule). Direction both creates paired import/export links
|
|
30
|
+
* and defaults export to a CaseMark Output subfolder. Same body as /transfer minus
|
|
31
|
+
* run_mode. Upserts links by (connection_id, direction, remote, vault_id);
|
|
32
|
+
* existing once-links are upgraded in place with their ledger and cursor
|
|
33
|
+
* preserved. Downgrade or pause via PATCH /links/{id}.
|
|
29
34
|
*/
|
|
30
|
-
syncLink(
|
|
31
|
-
|
|
35
|
+
syncLink(params, options) {
|
|
36
|
+
const { 'x-case-connector-subject': xCaseConnectorSubject, ...body } = params;
|
|
37
|
+
return this._client.post('/connectors/v1/sync-link', {
|
|
38
|
+
body,
|
|
39
|
+
...options,
|
|
40
|
+
headers: (0, headers_1.buildHeaders)([
|
|
41
|
+
{
|
|
42
|
+
...(xCaseConnectorSubject != null ?
|
|
43
|
+
{ 'x-case-connector-subject': xCaseConnectorSubject }
|
|
44
|
+
: undefined),
|
|
45
|
+
},
|
|
46
|
+
options?.headers,
|
|
47
|
+
]),
|
|
48
|
+
});
|
|
32
49
|
}
|
|
33
50
|
/**
|
|
34
|
-
* One-shot import (provider folder → vault)
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
51
|
+
* One-shot import (provider folder → vault), export (vault → provider folder), or
|
|
52
|
+
* both. Direction both creates paired import/export links and defaults export to a
|
|
53
|
+
* CaseMark Output subfolder. Upserts links by (connection_id, direction, remote,
|
|
54
|
+
* vault_id): first call backfills, later calls move only new/changed files via the
|
|
55
|
+
* ledger. Poll GET /links/{id} → active_run for progress.
|
|
38
56
|
*/
|
|
39
|
-
transfer(
|
|
40
|
-
|
|
57
|
+
transfer(params, options) {
|
|
58
|
+
const { 'x-case-connector-subject': xCaseConnectorSubject, ...body } = params;
|
|
59
|
+
return this._client.post('/connectors/v1/transfer', {
|
|
60
|
+
body,
|
|
61
|
+
...options,
|
|
62
|
+
headers: (0, headers_1.buildHeaders)([
|
|
63
|
+
{
|
|
64
|
+
...(xCaseConnectorSubject != null ?
|
|
65
|
+
{ 'x-case-connector-subject': xCaseConnectorSubject }
|
|
66
|
+
: undefined),
|
|
67
|
+
},
|
|
68
|
+
options?.headers,
|
|
69
|
+
]),
|
|
70
|
+
});
|
|
41
71
|
}
|
|
42
72
|
}
|
|
43
73
|
exports.V1 = V1;
|
|
74
|
+
V1.Applications = applications_1.Applications;
|
|
44
75
|
V1.Installations = installations_1.Installations;
|
|
45
76
|
V1.Connections = connections_1.Connections;
|
|
46
77
|
V1.Links = links_1.Links;
|