casedev 0.67.2 → 0.69.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 +21 -0
- package/client.d.mts +8 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -17
- package/client.d.ts.map +1 -1
- package/client.js +15 -16
- package/client.js.map +1 -1
- package/client.mjs +15 -16
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +0 -10
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +0 -10
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +0 -2
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -2
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +9 -25
- package/resources/connectors/connectors.d.mts +10 -0
- package/resources/connectors/connectors.d.mts.map +1 -0
- package/resources/connectors/connectors.d.ts +10 -0
- package/resources/connectors/connectors.d.ts.map +1 -0
- package/resources/{format/format.js → connectors/connectors.js} +5 -5
- package/resources/connectors/connectors.js.map +1 -0
- package/resources/{format/format.mjs → connectors/connectors.mjs} +3 -3
- package/resources/connectors/connectors.mjs.map +1 -0
- package/resources/connectors/index.d.mts +3 -0
- package/resources/connectors/index.d.mts.map +1 -0
- package/resources/connectors/index.d.ts +3 -0
- package/resources/connectors/index.d.ts.map +1 -0
- package/resources/{format → connectors}/index.js +3 -3
- package/resources/connectors/index.js.map +1 -0
- package/resources/connectors/index.mjs +4 -0
- package/resources/connectors/index.mjs.map +1 -0
- package/resources/connectors/v1/connections.d.mts +109 -0
- package/resources/connectors/v1/connections.d.mts.map +1 -0
- package/resources/connectors/v1/connections.d.ts +109 -0
- package/resources/connectors/v1/connections.d.ts.map +1 -0
- package/resources/connectors/v1/connections.js +58 -0
- package/resources/connectors/v1/connections.js.map +1 -0
- package/resources/connectors/v1/connections.mjs +54 -0
- package/resources/connectors/v1/connections.mjs.map +1 -0
- package/resources/connectors/v1/index.d.mts +5 -0
- package/resources/connectors/v1/index.d.mts.map +1 -0
- package/resources/connectors/v1/index.d.ts +5 -0
- package/resources/connectors/v1/index.d.ts.map +1 -0
- package/resources/connectors/v1/index.js +13 -0
- package/resources/connectors/v1/index.js.map +1 -0
- package/resources/connectors/v1/index.mjs +6 -0
- package/resources/connectors/v1/index.mjs.map +1 -0
- package/resources/connectors/v1/installations/index.d.mts +3 -0
- package/resources/connectors/v1/installations/index.d.mts.map +1 -0
- package/resources/connectors/v1/installations/index.d.ts +3 -0
- package/resources/connectors/v1/installations/index.d.ts.map +1 -0
- package/resources/connectors/v1/installations/index.js +9 -0
- package/resources/connectors/v1/installations/index.js.map +1 -0
- package/resources/connectors/v1/installations/index.mjs +4 -0
- package/resources/connectors/v1/installations/index.mjs.map +1 -0
- package/resources/connectors/v1/installations/installations.d.mts +40 -0
- package/resources/connectors/v1/installations/installations.d.mts.map +1 -0
- package/resources/connectors/v1/installations/installations.d.ts +40 -0
- package/resources/connectors/v1/installations/installations.d.ts.map +1 -0
- package/resources/connectors/v1/installations/installations.js +43 -0
- package/resources/connectors/v1/installations/installations.js.map +1 -0
- package/resources/connectors/v1/installations/installations.mjs +38 -0
- package/resources/connectors/v1/installations/installations.mjs.map +1 -0
- package/resources/connectors/v1/installations/vaults.d.mts +56 -0
- package/resources/connectors/v1/installations/vaults.d.mts.map +1 -0
- package/resources/connectors/v1/installations/vaults.d.ts +56 -0
- package/resources/connectors/v1/installations/vaults.d.ts.map +1 -0
- package/resources/connectors/v1/installations/vaults.js +47 -0
- package/resources/connectors/v1/installations/vaults.js.map +1 -0
- package/resources/connectors/v1/installations/vaults.mjs +43 -0
- package/resources/connectors/v1/installations/vaults.mjs.map +1 -0
- package/resources/connectors/v1/installations.d.mts +2 -0
- package/resources/connectors/v1/installations.d.mts.map +1 -0
- package/resources/connectors/v1/installations.d.ts +2 -0
- package/resources/connectors/v1/installations.d.ts.map +1 -0
- package/resources/{agent/v1/chat.js → connectors/v1/installations.js} +2 -2
- package/resources/connectors/v1/installations.js.map +1 -0
- package/resources/{agent/skills.mjs → connectors/v1/installations.mjs} +2 -2
- package/resources/connectors/v1/installations.mjs.map +1 -0
- package/resources/connectors/v1/links.d.mts +57 -0
- package/resources/connectors/v1/links.d.mts.map +1 -0
- package/resources/connectors/v1/links.d.ts +57 -0
- package/resources/connectors/v1/links.d.ts.map +1 -0
- package/resources/connectors/v1/links.js +69 -0
- package/resources/connectors/v1/links.js.map +1 -0
- package/resources/connectors/v1/links.mjs +65 -0
- package/resources/connectors/v1/links.mjs.map +1 -0
- package/resources/connectors/v1/v1.d.mts +100 -0
- package/resources/connectors/v1/v1.d.mts.map +1 -0
- package/resources/connectors/v1/v1.d.ts +100 -0
- package/resources/connectors/v1/v1.d.ts.map +1 -0
- package/resources/connectors/v1/v1.js +47 -0
- package/resources/connectors/v1/v1.js.map +1 -0
- package/resources/connectors/v1/v1.mjs +42 -0
- package/resources/connectors/v1/v1.mjs.map +1 -0
- package/resources/connectors/v1.d.mts.map +1 -0
- package/resources/connectors/v1.d.ts.map +1 -0
- package/resources/connectors/v1.js.map +1 -0
- package/resources/connectors/v1.mjs.map +1 -0
- package/resources/connectors.d.mts +2 -0
- package/resources/connectors.d.mts.map +1 -0
- package/resources/connectors.d.ts +2 -0
- package/resources/connectors.d.ts.map +1 -0
- package/resources/{agent.js → connectors.js} +2 -2
- package/resources/connectors.js.map +1 -0
- package/resources/{agent.mjs → connectors.mjs} +2 -2
- package/resources/connectors.mjs.map +1 -0
- package/resources/index.d.mts +3 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -5
- package/resources/index.mjs.map +1 -1
- package/resources/legal/index.d.mts +1 -1
- package/resources/legal/index.d.mts.map +1 -1
- package/resources/legal/index.d.ts +1 -1
- package/resources/legal/index.d.ts.map +1 -1
- package/resources/legal/index.js.map +1 -1
- package/resources/legal/index.mjs.map +1 -1
- package/resources/legal/legal.d.mts +2 -2
- package/resources/legal/legal.d.mts.map +1 -1
- package/resources/legal/legal.d.ts +2 -2
- package/resources/legal/legal.d.ts.map +1 -1
- package/resources/legal/legal.js.map +1 -1
- package/resources/legal/legal.mjs.map +1 -1
- package/resources/legal/v1.d.mts +3 -80
- package/resources/legal/v1.d.mts.map +1 -1
- package/resources/legal/v1.d.ts +3 -80
- package/resources/legal/v1.d.ts.map +1 -1
- package/resources/legal/v1.js +0 -8
- package/resources/legal/v1.js.map +1 -1
- package/resources/legal/v1.mjs +0 -8
- package/resources/legal/v1.mjs.map +1 -1
- package/resources/linc/index.d.mts +3 -0
- package/resources/linc/index.d.mts.map +1 -0
- package/resources/linc/index.d.ts +3 -0
- package/resources/linc/index.d.ts.map +1 -0
- package/resources/{mail → linc}/index.js +3 -3
- package/resources/{mail → linc}/index.js.map +1 -1
- package/resources/{mail → linc}/index.mjs +1 -1
- package/resources/{mail → linc}/index.mjs.map +1 -1
- package/resources/{mail/mail.d.mts → linc/linc.d.mts} +3 -3
- package/resources/{mail/mail.d.mts.map → linc/linc.d.mts.map} +1 -1
- package/resources/{mail/mail.d.ts → linc/linc.d.ts} +3 -3
- package/resources/{mail/mail.d.ts.map → linc/linc.d.ts.map} +1 -1
- package/resources/{mail/mail.js → linc/linc.js} +5 -5
- package/resources/{mail/mail.js.map → linc/linc.js.map} +1 -1
- package/resources/{mail/mail.mjs → linc/linc.mjs} +3 -3
- package/resources/{mail/mail.mjs.map → linc/linc.mjs.map} +1 -1
- package/resources/linc/v1/index.d.mts +3 -0
- package/resources/linc/v1/index.d.mts.map +1 -0
- package/resources/linc/v1/index.d.ts +3 -0
- package/resources/linc/v1/index.d.ts.map +1 -0
- package/resources/{mail → linc}/v1/index.js +3 -3
- package/resources/linc/v1/index.js.map +1 -0
- package/resources/{mail → linc}/v1/index.mjs +1 -1
- package/resources/linc/v1/index.mjs.map +1 -0
- package/resources/linc/v1/sessions.d.mts +169 -0
- package/resources/linc/v1/sessions.d.mts.map +1 -0
- package/resources/linc/v1/sessions.d.ts +169 -0
- package/resources/linc/v1/sessions.d.ts.map +1 -0
- package/resources/linc/v1/sessions.js +103 -0
- package/resources/linc/v1/sessions.js.map +1 -0
- package/resources/linc/v1/sessions.mjs +99 -0
- package/resources/linc/v1/sessions.mjs.map +1 -0
- package/resources/linc/v1/v1.d.mts +10 -0
- package/resources/linc/v1/v1.d.mts.map +1 -0
- package/resources/linc/v1/v1.d.ts +10 -0
- package/resources/linc/v1/v1.d.ts.map +1 -0
- package/resources/{mail → linc}/v1/v1.js +4 -4
- package/resources/linc/v1/v1.js.map +1 -0
- package/resources/{mail → linc}/v1/v1.mjs +4 -4
- package/resources/linc/v1/v1.mjs.map +1 -0
- package/resources/{mail → linc}/v1.d.mts.map +1 -1
- package/resources/{mail → linc}/v1.d.ts.map +1 -1
- package/resources/linc/v1.js.map +1 -0
- package/resources/linc/v1.mjs.map +1 -0
- package/resources/linc.d.mts +2 -0
- package/resources/linc.d.mts.map +1 -0
- package/resources/linc.d.ts +2 -0
- package/resources/linc.d.ts.map +1 -0
- package/resources/{mail.js → linc.js} +2 -2
- package/resources/linc.js.map +1 -0
- package/resources/{agent/v1/chat.mjs → linc.mjs} +2 -2
- package/resources/linc.mjs.map +1 -0
- package/resources/llm/v1/chat.d.mts +3 -2
- package/resources/llm/v1/chat.d.mts.map +1 -1
- package/resources/llm/v1/chat.d.ts +3 -2
- package/resources/llm/v1/chat.d.ts.map +1 -1
- package/resources/matters/v1/index.d.mts +1 -1
- package/resources/matters/v1/index.d.mts.map +1 -1
- package/resources/matters/v1/index.d.ts +1 -1
- package/resources/matters/v1/index.d.ts.map +1 -1
- package/resources/matters/v1/index.js.map +1 -1
- package/resources/matters/v1/index.mjs.map +1 -1
- package/resources/matters/v1/v1.d.mts +2 -2
- package/resources/matters/v1/v1.d.mts.map +1 -1
- package/resources/matters/v1/v1.d.ts +2 -2
- package/resources/matters/v1/v1.d.ts.map +1 -1
- package/resources/matters/v1/v1.js.map +1 -1
- package/resources/matters/v1/v1.mjs.map +1 -1
- package/resources/matters/v1/work-items.d.mts +3 -15
- package/resources/matters/v1/work-items.d.mts.map +1 -1
- package/resources/matters/v1/work-items.d.ts +3 -15
- package/resources/matters/v1/work-items.d.ts.map +1 -1
- package/resources/matters/v1/work-items.js +1 -12
- package/resources/matters/v1/work-items.js.map +1 -1
- package/resources/matters/v1/work-items.mjs +1 -12
- package/resources/matters/v1/work-items.mjs.map +1 -1
- package/resources/media/v1/clips.d.mts +3 -0
- package/resources/media/v1/clips.d.mts.map +1 -1
- package/resources/media/v1/clips.d.ts +3 -0
- package/resources/media/v1/clips.d.ts.map +1 -1
- package/resources/media/v1/clips.js +3 -0
- package/resources/media/v1/clips.js.map +1 -1
- package/resources/media/v1/clips.mjs +3 -0
- package/resources/media/v1/clips.mjs.map +1 -1
- package/resources/media/v1/transcripts/index.d.mts +1 -0
- package/resources/media/v1/transcripts/index.d.mts.map +1 -1
- package/resources/media/v1/transcripts/index.d.ts +1 -0
- package/resources/media/v1/transcripts/index.d.ts.map +1 -1
- package/resources/media/v1/transcripts/index.js +3 -1
- package/resources/media/v1/transcripts/index.js.map +1 -1
- package/resources/media/v1/transcripts/index.mjs +1 -0
- package/resources/media/v1/transcripts/index.mjs.map +1 -1
- package/resources/media/v1/transcripts/retrieve.d.mts +70 -0
- package/resources/media/v1/transcripts/retrieve.d.mts.map +1 -0
- package/resources/media/v1/transcripts/retrieve.d.ts +70 -0
- package/resources/media/v1/transcripts/retrieve.d.ts.map +1 -0
- package/resources/media/v1/transcripts/retrieve.js +21 -0
- package/resources/media/v1/transcripts/retrieve.js.map +1 -0
- package/resources/media/v1/transcripts/retrieve.mjs +17 -0
- package/resources/media/v1/transcripts/retrieve.mjs.map +1 -0
- package/resources/media/v1/transcripts/search.d.mts +3 -0
- package/resources/media/v1/transcripts/search.d.mts.map +1 -1
- package/resources/media/v1/transcripts/search.d.ts +3 -0
- package/resources/media/v1/transcripts/search.d.ts.map +1 -1
- package/resources/media/v1/transcripts/search.js +3 -0
- package/resources/media/v1/transcripts/search.js.map +1 -1
- package/resources/media/v1/transcripts/search.mjs +3 -0
- package/resources/media/v1/transcripts/search.mjs.map +1 -1
- package/resources/media/v1/transcripts/transcripts.d.mts +4 -0
- package/resources/media/v1/transcripts/transcripts.d.mts.map +1 -1
- package/resources/media/v1/transcripts/transcripts.d.ts +4 -0
- package/resources/media/v1/transcripts/transcripts.d.ts.map +1 -1
- package/resources/media/v1/transcripts/transcripts.js +4 -0
- package/resources/media/v1/transcripts/transcripts.js.map +1 -1
- package/resources/media/v1/transcripts/transcripts.mjs +4 -0
- package/resources/media/v1/transcripts/transcripts.mjs.map +1 -1
- package/resources/ocr/v1.d.mts +4 -4
- package/resources/ocr/v1.d.ts +4 -4
- package/resources/ocr/v1.js +2 -2
- package/resources/ocr/v1.mjs +2 -2
- package/resources/search/index.d.mts +1 -1
- package/resources/search/index.d.mts.map +1 -1
- package/resources/search/index.d.ts +1 -1
- package/resources/search/index.d.ts.map +1 -1
- package/resources/search/index.js.map +1 -1
- package/resources/search/index.mjs.map +1 -1
- package/resources/search/search.d.mts +2 -2
- package/resources/search/search.d.mts.map +1 -1
- package/resources/search/search.d.ts +2 -2
- package/resources/search/search.d.ts.map +1 -1
- package/resources/search/search.js.map +1 -1
- package/resources/search/search.mjs.map +1 -1
- package/resources/search/v1.d.mts +2 -129
- package/resources/search/v1.d.mts.map +1 -1
- package/resources/search/v1.d.ts +2 -129
- package/resources/search/v1.d.ts.map +1 -1
- package/resources/search/v1.js +1 -19
- package/resources/search/v1.js.map +1 -1
- package/resources/search/v1.mjs +1 -19
- package/resources/search/v1.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 +67 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +67 -1
- 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/translate/index.d.mts +1 -1
- package/resources/translate/index.d.mts.map +1 -1
- package/resources/translate/index.d.ts +1 -1
- package/resources/translate/index.d.ts.map +1 -1
- package/resources/translate/index.js.map +1 -1
- package/resources/translate/index.mjs.map +1 -1
- package/resources/translate/translate.d.mts +2 -2
- package/resources/translate/translate.d.mts.map +1 -1
- package/resources/translate/translate.d.ts +2 -2
- package/resources/translate/translate.d.ts.map +1 -1
- package/resources/translate/translate.js.map +1 -1
- package/resources/translate/translate.mjs.map +1 -1
- package/resources/translate/v1.d.mts +37 -1
- package/resources/translate/v1.d.mts.map +1 -1
- package/resources/translate/v1.d.ts +37 -1
- package/resources/translate/v1.d.ts.map +1 -1
- package/resources/translate/v1.js +30 -0
- package/resources/translate/v1.js.map +1 -1
- package/resources/translate/v1.mjs +30 -0
- package/resources/translate/v1.mjs.map +1 -1
- package/resources/usage/v1/v1.d.mts +10 -0
- package/resources/usage/v1/v1.d.mts.map +1 -1
- package/resources/usage/v1/v1.d.ts +10 -0
- package/resources/usage/v1/v1.d.ts.map +1 -1
- package/resources/usage/v1/v1.js.map +1 -1
- package/resources/usage/v1/v1.mjs.map +1 -1
- package/resources/vault/events/subscriptions.d.mts +1 -1
- package/resources/vault/events/subscriptions.d.ts +1 -1
- package/resources/vault/events/subscriptions.js +1 -1
- package/resources/vault/events/subscriptions.mjs +1 -1
- package/resources/vault/index.d.mts +2 -3
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +2 -3
- package/resources/vault/index.d.ts.map +1 -1
- package/resources/vault/index.js +1 -3
- package/resources/vault/index.js.map +1 -1
- package/resources/vault/index.mjs +0 -1
- package/resources/vault/index.mjs.map +1 -1
- package/resources/vault/memory.d.mts +1 -1
- package/resources/vault/memory.d.ts +1 -1
- package/resources/vault/memory.js +1 -1
- package/resources/vault/memory.mjs +1 -1
- package/resources/vault/multipart.d.mts +94 -1
- package/resources/vault/multipart.d.mts.map +1 -1
- package/resources/vault/multipart.d.ts +94 -1
- package/resources/vault/multipart.d.ts.map +1 -1
- package/resources/vault/multipart.js +40 -0
- package/resources/vault/multipart.js.map +1 -1
- package/resources/vault/multipart.mjs +40 -0
- package/resources/vault/multipart.mjs.map +1 -1
- package/resources/vault/objects.d.mts +161 -62
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +161 -62
- package/resources/vault/objects.d.ts.map +1 -1
- package/resources/vault/objects.js +48 -20
- package/resources/vault/objects.js.map +1 -1
- package/resources/vault/objects.mjs +48 -20
- package/resources/vault/objects.mjs.map +1 -1
- package/resources/vault/vault.d.mts +103 -75
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +103 -75
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js +22 -20
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs +22 -20
- package/resources/vault/vault.mjs.map +1 -1
- package/resources/voice/transcription.d.mts +19 -7
- package/resources/voice/transcription.d.mts.map +1 -1
- package/resources/voice/transcription.d.ts +19 -7
- package/resources/voice/transcription.d.ts.map +1 -1
- package/resources/voice/transcription.js +5 -3
- package/resources/voice/transcription.js.map +1 -1
- package/resources/voice/transcription.mjs +5 -3
- package/resources/voice/transcription.mjs.map +1 -1
- package/src/client.ts +22 -25
- package/src/internal/parse.ts +0 -14
- package/src/internal/request-options.ts +0 -2
- package/src/resources/connectors/connectors.ts +21 -0
- package/src/resources/connectors/index.ts +10 -0
- package/src/resources/connectors/v1/connections.ts +186 -0
- package/src/resources/connectors/v1/index.ts +31 -0
- package/src/resources/connectors/v1/installations/index.ts +4 -0
- package/src/resources/connectors/v1/installations/installations.ts +72 -0
- package/src/resources/connectors/v1/installations/vaults.ts +88 -0
- package/src/resources/{agent/skills.ts → connectors/v1/installations.ts} +1 -1
- package/src/resources/connectors/v1/links.ts +121 -0
- package/src/resources/connectors/v1/v1.ts +186 -0
- package/src/resources/{agent.ts → connectors.ts} +1 -1
- package/src/resources/index.ts +4 -5
- package/src/resources/legal/index.ts +0 -2
- package/src/resources/legal/legal.ts +0 -4
- package/src/resources/legal/v1.ts +2 -100
- package/src/resources/{mail → linc}/index.ts +1 -1
- package/src/resources/{mail/mail.ts → linc/linc.ts} +3 -3
- package/src/resources/linc/v1/index.ts +12 -0
- package/src/resources/linc/v1/sessions.ts +270 -0
- package/src/resources/linc/v1/v1.ts +31 -0
- package/src/resources/{format/v1.ts → linc.ts} +1 -1
- package/src/resources/llm/v1/chat.ts +3 -2
- package/src/resources/matters/v1/index.ts +0 -1
- package/src/resources/matters/v1/v1.ts +0 -2
- package/src/resources/matters/v1/work-items.ts +2 -28
- package/src/resources/media/v1/clips.ts +3 -0
- package/src/resources/media/v1/transcripts/index.ts +1 -0
- package/src/resources/media/v1/transcripts/retrieve.ts +94 -0
- package/src/resources/media/v1/transcripts/search.ts +3 -0
- package/src/resources/media/v1/transcripts/transcripts.ts +10 -0
- package/src/resources/ocr/v1.ts +4 -4
- package/src/resources/search/index.ts +0 -4
- package/src/resources/search/search.ts +0 -8
- package/src/resources/search/v1.ts +1 -172
- package/src/resources/skills/index.ts +2 -0
- package/src/resources/skills/skills.ts +104 -0
- package/src/resources/translate/index.ts +1 -0
- package/src/resources/translate/translate.ts +2 -0
- package/src/resources/translate/v1.ts +56 -0
- package/src/resources/usage/v1/v1.ts +12 -0
- package/src/resources/vault/events/subscriptions.ts +1 -1
- package/src/resources/vault/index.ts +8 -9
- package/src/resources/vault/memory.ts +1 -1
- package/src/resources/vault/multipart.ts +126 -0
- package/src/resources/vault/objects.ts +230 -83
- package/src/resources/vault/vault.ts +135 -94
- package/src/resources/voice/transcription.ts +21 -7
- 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
- package/core/streaming.d.mts +0 -33
- package/core/streaming.d.mts.map +0 -1
- package/core/streaming.d.ts +0 -33
- package/core/streaming.d.ts.map +0 -1
- package/core/streaming.js +0 -263
- package/core/streaming.js.map +0 -1
- package/core/streaming.mjs +0 -258
- package/core/streaming.mjs.map +0 -1
- package/internal/decoders/line.d.mts +0 -17
- package/internal/decoders/line.d.mts.map +0 -1
- package/internal/decoders/line.d.ts +0 -17
- package/internal/decoders/line.d.ts.map +0 -1
- package/internal/decoders/line.js +0 -113
- package/internal/decoders/line.js.map +0 -1
- package/internal/decoders/line.mjs +0 -108
- package/internal/decoders/line.mjs.map +0 -1
- package/resources/agent/agent.d.mts +0 -14
- package/resources/agent/agent.d.mts.map +0 -1
- package/resources/agent/agent.d.ts +0 -14
- package/resources/agent/agent.d.ts.map +0 -1
- package/resources/agent/agent.js +0 -21
- package/resources/agent/agent.js.map +0 -1
- package/resources/agent/agent.mjs +0 -16
- package/resources/agent/agent.mjs.map +0 -1
- package/resources/agent/index.d.mts +0 -4
- package/resources/agent/index.d.mts.map +0 -1
- package/resources/agent/index.d.ts +0 -4
- package/resources/agent/index.d.ts.map +0 -1
- package/resources/agent/index.js +0 -11
- package/resources/agent/index.js.map +0 -1
- package/resources/agent/index.mjs +0 -5
- package/resources/agent/index.mjs.map +0 -1
- package/resources/agent/skills/index.d.mts +0 -3
- package/resources/agent/skills/index.d.mts.map +0 -1
- package/resources/agent/skills/index.d.ts +0 -3
- package/resources/agent/skills/index.d.ts.map +0 -1
- package/resources/agent/skills/index.js +0 -9
- package/resources/agent/skills/index.js.map +0 -1
- package/resources/agent/skills/index.mjs +0 -4
- package/resources/agent/skills/index.mjs.map +0 -1
- package/resources/agent/skills/namespaces.d.mts +0 -66
- package/resources/agent/skills/namespaces.d.mts.map +0 -1
- package/resources/agent/skills/namespaces.d.ts +0 -66
- package/resources/agent/skills/namespaces.d.ts.map +0 -1
- package/resources/agent/skills/namespaces.js +0 -84
- package/resources/agent/skills/namespaces.js.map +0 -1
- package/resources/agent/skills/namespaces.mjs +0 -80
- package/resources/agent/skills/namespaces.mjs.map +0 -1
- package/resources/agent/skills/skills.d.mts +0 -10
- package/resources/agent/skills/skills.d.mts.map +0 -1
- package/resources/agent/skills/skills.d.ts +0 -10
- package/resources/agent/skills/skills.d.ts.map +0 -1
- package/resources/agent/skills/skills.js +0 -17
- package/resources/agent/skills/skills.js.map +0 -1
- package/resources/agent/skills/skills.mjs +0 -12
- package/resources/agent/skills/skills.mjs.map +0 -1
- package/resources/agent/skills.d.mts +0 -2
- package/resources/agent/skills.d.mts.map +0 -1
- package/resources/agent/skills.d.ts +0 -2
- package/resources/agent/skills.d.ts.map +0 -1
- package/resources/agent/skills.js +0 -6
- package/resources/agent/skills.js.map +0 -1
- package/resources/agent/skills.mjs.map +0 -1
- package/resources/agent/v1/agents.d.mts +0 -205
- package/resources/agent/v1/agents.d.mts.map +0 -1
- package/resources/agent/v1/agents.d.ts +0 -205
- package/resources/agent/v1/agents.d.ts.map +0 -1
- package/resources/agent/v1/agents.js +0 -44
- package/resources/agent/v1/agents.js.map +0 -1
- package/resources/agent/v1/agents.mjs +0 -40
- package/resources/agent/v1/agents.mjs.map +0 -1
- package/resources/agent/v1/chat/chat.d.mts +0 -163
- package/resources/agent/v1/chat/chat.d.mts.map +0 -1
- package/resources/agent/v1/chat/chat.d.ts +0 -163
- package/resources/agent/v1/chat/chat.d.ts.map +0 -1
- package/resources/agent/v1/chat/chat.js +0 -109
- package/resources/agent/v1/chat/chat.js.map +0 -1
- package/resources/agent/v1/chat/chat.mjs +0 -104
- package/resources/agent/v1/chat/chat.mjs.map +0 -1
- package/resources/agent/v1/chat/files.d.mts +0 -42
- package/resources/agent/v1/chat/files.d.mts.map +0 -1
- package/resources/agent/v1/chat/files.d.ts +0 -42
- package/resources/agent/v1/chat/files.d.ts.map +0 -1
- package/resources/agent/v1/chat/files.js +0 -33
- package/resources/agent/v1/chat/files.js.map +0 -1
- package/resources/agent/v1/chat/files.mjs +0 -29
- package/resources/agent/v1/chat/files.mjs.map +0 -1
- package/resources/agent/v1/chat/index.d.mts +0 -3
- package/resources/agent/v1/chat/index.d.mts.map +0 -1
- package/resources/agent/v1/chat/index.d.ts +0 -3
- package/resources/agent/v1/chat/index.d.ts.map +0 -1
- package/resources/agent/v1/chat/index.js +0 -9
- package/resources/agent/v1/chat/index.js.map +0 -1
- package/resources/agent/v1/chat/index.mjs +0 -4
- package/resources/agent/v1/chat/index.mjs.map +0 -1
- package/resources/agent/v1/chat.d.mts +0 -2
- package/resources/agent/v1/chat.d.mts.map +0 -1
- package/resources/agent/v1/chat.d.ts +0 -2
- package/resources/agent/v1/chat.d.ts.map +0 -1
- package/resources/agent/v1/chat.js.map +0 -1
- package/resources/agent/v1/chat.mjs.map +0 -1
- package/resources/agent/v1/execute.d.mts +0 -95
- package/resources/agent/v1/execute.d.mts.map +0 -1
- package/resources/agent/v1/execute.d.ts +0 -95
- package/resources/agent/v1/execute.d.ts.map +0 -1
- package/resources/agent/v1/execute.js +0 -27
- package/resources/agent/v1/execute.js.map +0 -1
- package/resources/agent/v1/execute.mjs +0 -23
- package/resources/agent/v1/execute.mjs.map +0 -1
- package/resources/agent/v1/index.d.mts +0 -6
- package/resources/agent/v1/index.d.mts.map +0 -1
- package/resources/agent/v1/index.d.ts +0 -6
- package/resources/agent/v1/index.d.ts.map +0 -1
- package/resources/agent/v1/index.js +0 -15
- package/resources/agent/v1/index.js.map +0 -1
- package/resources/agent/v1/index.mjs +0 -7
- package/resources/agent/v1/index.mjs.map +0 -1
- package/resources/agent/v1/run.d.mts +0 -304
- package/resources/agent/v1/run.d.mts.map +0 -1
- package/resources/agent/v1/run.d.ts +0 -304
- package/resources/agent/v1/run.d.ts.map +0 -1
- package/resources/agent/v1/run.js +0 -74
- package/resources/agent/v1/run.js.map +0 -1
- package/resources/agent/v1/run.mjs +0 -70
- package/resources/agent/v1/run.mjs.map +0 -1
- package/resources/agent/v1/v1.d.mts +0 -22
- package/resources/agent/v1/v1.d.mts.map +0 -1
- package/resources/agent/v1/v1.d.ts +0 -22
- package/resources/agent/v1/v1.d.ts.map +0 -1
- package/resources/agent/v1/v1.js +0 -29
- package/resources/agent/v1/v1.js.map +0 -1
- package/resources/agent/v1/v1.mjs +0 -24
- package/resources/agent/v1/v1.mjs.map +0 -1
- package/resources/agent/v1.d.mts.map +0 -1
- package/resources/agent/v1.d.ts.map +0 -1
- package/resources/agent/v1.js.map +0 -1
- package/resources/agent/v1.mjs.map +0 -1
- package/resources/agent.d.mts +0 -2
- package/resources/agent.d.mts.map +0 -1
- package/resources/agent.d.ts +0 -2
- package/resources/agent.d.ts.map +0 -1
- package/resources/agent.js.map +0 -1
- package/resources/agent.mjs.map +0 -1
- package/resources/database/database.d.mts +0 -10
- package/resources/database/database.d.mts.map +0 -1
- package/resources/database/database.d.ts +0 -10
- package/resources/database/database.d.ts.map +0 -1
- package/resources/database/database.js +0 -17
- package/resources/database/database.js.map +0 -1
- package/resources/database/database.mjs +0 -12
- package/resources/database/database.mjs.map +0 -1
- package/resources/database/index.d.mts +0 -3
- package/resources/database/index.d.mts.map +0 -1
- package/resources/database/index.d.ts +0 -3
- package/resources/database/index.d.ts.map +0 -1
- package/resources/database/index.js +0 -9
- package/resources/database/index.js.map +0 -1
- package/resources/database/index.mjs +0 -4
- package/resources/database/index.mjs.map +0 -1
- package/resources/database/v1/index.d.mts +0 -3
- package/resources/database/v1/index.d.mts.map +0 -1
- package/resources/database/v1/index.d.ts +0 -3
- package/resources/database/v1/index.d.ts.map +0 -1
- package/resources/database/v1/index.js +0 -9
- package/resources/database/v1/index.js.map +0 -1
- package/resources/database/v1/index.mjs +0 -4
- package/resources/database/v1/index.mjs.map +0 -1
- package/resources/database/v1/projects.d.mts +0 -467
- package/resources/database/v1/projects.d.mts.map +0 -1
- package/resources/database/v1/projects.d.ts +0 -467
- package/resources/database/v1/projects.d.ts.map +0 -1
- package/resources/database/v1/projects.js +0 -125
- package/resources/database/v1/projects.js.map +0 -1
- package/resources/database/v1/projects.mjs +0 -121
- package/resources/database/v1/projects.mjs.map +0 -1
- package/resources/database/v1/v1.d.mts +0 -144
- package/resources/database/v1/v1.d.mts.map +0 -1
- package/resources/database/v1/v1.d.ts +0 -144
- package/resources/database/v1/v1.d.ts.map +0 -1
- package/resources/database/v1/v1.js +0 -33
- package/resources/database/v1/v1.js.map +0 -1
- package/resources/database/v1/v1.mjs +0 -28
- package/resources/database/v1/v1.mjs.map +0 -1
- package/resources/database/v1.d.mts.map +0 -1
- package/resources/database/v1.d.ts.map +0 -1
- package/resources/database/v1.js.map +0 -1
- package/resources/database/v1.mjs.map +0 -1
- package/resources/database.d.mts +0 -2
- package/resources/database.d.mts.map +0 -1
- package/resources/database.d.ts +0 -2
- package/resources/database.d.ts.map +0 -1
- package/resources/database.js +0 -6
- package/resources/database.js.map +0 -1
- package/resources/database.mjs +0 -3
- package/resources/database.mjs.map +0 -1
- package/resources/format/format.d.mts +0 -10
- package/resources/format/format.d.mts.map +0 -1
- package/resources/format/format.d.ts +0 -10
- package/resources/format/format.d.ts.map +0 -1
- package/resources/format/format.js.map +0 -1
- package/resources/format/format.mjs.map +0 -1
- package/resources/format/index.d.mts +0 -3
- package/resources/format/index.d.mts.map +0 -1
- package/resources/format/index.d.ts +0 -3
- package/resources/format/index.d.ts.map +0 -1
- package/resources/format/index.js.map +0 -1
- package/resources/format/index.mjs +0 -4
- package/resources/format/index.mjs.map +0 -1
- package/resources/format/v1/index.d.mts +0 -3
- package/resources/format/v1/index.d.mts.map +0 -1
- package/resources/format/v1/index.d.ts +0 -3
- package/resources/format/v1/index.d.ts.map +0 -1
- package/resources/format/v1/index.js +0 -9
- package/resources/format/v1/index.js.map +0 -1
- package/resources/format/v1/index.mjs +0 -4
- package/resources/format/v1/index.mjs.map +0 -1
- package/resources/format/v1/templates.d.mts +0 -160
- package/resources/format/v1/templates.d.mts.map +0 -1
- package/resources/format/v1/templates.d.ts +0 -160
- package/resources/format/v1/templates.d.ts.map +0 -1
- package/resources/format/v1/templates.js +0 -40
- package/resources/format/v1/templates.js.map +0 -1
- package/resources/format/v1/templates.mjs +0 -36
- package/resources/format/v1/templates.mjs.map +0 -1
- package/resources/format/v1/v1.d.mts +0 -73
- package/resources/format/v1/v1.d.mts.map +0 -1
- package/resources/format/v1/v1.d.ts +0 -73
- package/resources/format/v1/v1.d.ts.map +0 -1
- package/resources/format/v1/v1.js +0 -34
- package/resources/format/v1/v1.js.map +0 -1
- package/resources/format/v1/v1.mjs +0 -29
- package/resources/format/v1/v1.mjs.map +0 -1
- package/resources/format/v1.d.mts +0 -2
- package/resources/format/v1.d.mts.map +0 -1
- package/resources/format/v1.d.ts +0 -2
- package/resources/format/v1.d.ts.map +0 -1
- package/resources/format/v1.js +0 -6
- package/resources/format/v1.js.map +0 -1
- package/resources/format/v1.mjs +0 -3
- package/resources/format/v1.mjs.map +0 -1
- package/resources/format.d.mts +0 -2
- package/resources/format.d.mts.map +0 -1
- package/resources/format.d.ts +0 -2
- package/resources/format.d.ts.map +0 -1
- package/resources/format.js +0 -6
- package/resources/format.js.map +0 -1
- package/resources/format.mjs +0 -3
- package/resources/format.mjs.map +0 -1
- package/resources/mail/index.d.mts +0 -3
- package/resources/mail/index.d.mts.map +0 -1
- package/resources/mail/index.d.ts +0 -3
- package/resources/mail/index.d.ts.map +0 -1
- package/resources/mail/v1/inboxes.d.mts +0 -94
- package/resources/mail/v1/inboxes.d.mts.map +0 -1
- package/resources/mail/v1/inboxes.d.ts +0 -94
- package/resources/mail/v1/inboxes.d.ts.map +0 -1
- package/resources/mail/v1/inboxes.js +0 -118
- package/resources/mail/v1/inboxes.js.map +0 -1
- package/resources/mail/v1/inboxes.mjs +0 -114
- package/resources/mail/v1/inboxes.mjs.map +0 -1
- package/resources/mail/v1/index.d.mts +0 -3
- package/resources/mail/v1/index.d.mts.map +0 -1
- package/resources/mail/v1/index.d.ts +0 -3
- package/resources/mail/v1/index.d.ts.map +0 -1
- package/resources/mail/v1/index.js.map +0 -1
- package/resources/mail/v1/index.mjs.map +0 -1
- package/resources/mail/v1/v1.d.mts +0 -10
- package/resources/mail/v1/v1.d.mts.map +0 -1
- package/resources/mail/v1/v1.d.ts +0 -10
- package/resources/mail/v1/v1.d.ts.map +0 -1
- package/resources/mail/v1/v1.js.map +0 -1
- package/resources/mail/v1/v1.mjs.map +0 -1
- package/resources/mail/v1.d.mts +0 -2
- package/resources/mail/v1.d.ts +0 -2
- package/resources/mail/v1.js +0 -6
- package/resources/mail/v1.js.map +0 -1
- package/resources/mail/v1.mjs +0 -3
- package/resources/mail/v1.mjs.map +0 -1
- package/resources/mail.d.mts +0 -2
- package/resources/mail.d.mts.map +0 -1
- package/resources/mail.d.ts +0 -2
- package/resources/mail.d.ts.map +0 -1
- package/resources/mail.js.map +0 -1
- package/resources/mail.mjs +0 -3
- package/resources/mail.mjs.map +0 -1
- package/resources/superdoc/index.d.mts +0 -3
- package/resources/superdoc/index.d.mts.map +0 -1
- package/resources/superdoc/index.d.ts +0 -3
- package/resources/superdoc/index.d.ts.map +0 -1
- package/resources/superdoc/index.js +0 -9
- package/resources/superdoc/index.js.map +0 -1
- package/resources/superdoc/index.mjs +0 -4
- package/resources/superdoc/index.mjs.map +0 -1
- package/resources/superdoc/superdoc.d.mts +0 -10
- package/resources/superdoc/superdoc.d.mts.map +0 -1
- package/resources/superdoc/superdoc.d.ts +0 -10
- package/resources/superdoc/superdoc.d.ts.map +0 -1
- package/resources/superdoc/superdoc.js +0 -17
- package/resources/superdoc/superdoc.js.map +0 -1
- package/resources/superdoc/superdoc.mjs +0 -12
- package/resources/superdoc/superdoc.mjs.map +0 -1
- package/resources/superdoc/v1.d.mts +0 -107
- package/resources/superdoc/v1.d.mts.map +0 -1
- package/resources/superdoc/v1.d.ts +0 -107
- package/resources/superdoc/v1.d.ts.map +0 -1
- package/resources/superdoc/v1.js +0 -39
- package/resources/superdoc/v1.js.map +0 -1
- package/resources/superdoc/v1.mjs +0 -35
- package/resources/superdoc/v1.mjs.map +0 -1
- package/resources/superdoc.d.mts +0 -2
- package/resources/superdoc.d.mts.map +0 -1
- package/resources/superdoc.d.ts +0 -2
- package/resources/superdoc.d.ts.map +0 -1
- package/resources/superdoc.js +0 -6
- package/resources/superdoc.js.map +0 -1
- package/resources/superdoc.mjs +0 -3
- package/resources/superdoc.mjs.map +0 -1
- package/resources/vault/graphrag.d.mts +0 -132
- package/resources/vault/graphrag.d.mts.map +0 -1
- package/resources/vault/graphrag.d.ts +0 -132
- package/resources/vault/graphrag.d.ts.map +0 -1
- package/resources/vault/graphrag.js +0 -58
- package/resources/vault/graphrag.js.map +0 -1
- package/resources/vault/graphrag.mjs +0 -54
- package/resources/vault/graphrag.mjs.map +0 -1
- package/src/core/streaming.ts +0 -315
- package/src/internal/decoders/line.ts +0 -135
- package/src/resources/agent/agent.ts +0 -21
- package/src/resources/agent/index.ts +0 -5
- package/src/resources/agent/skills/index.ts +0 -4
- package/src/resources/agent/skills/namespaces.ts +0 -126
- package/src/resources/agent/skills/skills.ts +0 -19
- package/src/resources/agent/v1/agents.ts +0 -305
- package/src/resources/agent/v1/chat/chat.ts +0 -267
- package/src/resources/agent/v1/chat/files.ts +0 -63
- package/src/resources/agent/v1/chat/index.ts +0 -16
- package/src/resources/agent/v1/chat.ts +0 -3
- package/src/resources/agent/v1/execute.ts +0 -118
- package/src/resources/agent/v1/index.ts +0 -43
- package/src/resources/agent/v1/run.ts +0 -456
- package/src/resources/agent/v1/v1.ts +0 -109
- package/src/resources/database/database.ts +0 -15
- package/src/resources/database/index.ts +0 -4
- package/src/resources/database/v1/index.ts +0 -16
- package/src/resources/database/v1/projects.ts +0 -597
- package/src/resources/database/v1/v1.ts +0 -212
- package/src/resources/database.ts +0 -3
- package/src/resources/format/format.ts +0 -15
- package/src/resources/format/index.ts +0 -4
- package/src/resources/format/v1/index.ts +0 -11
- package/src/resources/format/v1/templates.ts +0 -210
- package/src/resources/format/v1/v1.ts +0 -111
- package/src/resources/format.ts +0 -3
- package/src/resources/mail/v1/inboxes.ts +0 -190
- package/src/resources/mail/v1/index.ts +0 -11
- package/src/resources/mail/v1/v1.ts +0 -29
- package/src/resources/mail/v1.ts +0 -3
- package/src/resources/mail.ts +0 -3
- package/src/resources/superdoc/index.ts +0 -4
- package/src/resources/superdoc/superdoc.ts +0 -15
- package/src/resources/superdoc/v1.ts +0 -149
- package/src/resources/superdoc.ts +0 -3
- package/src/resources/vault/graphrag.ts +0 -176
- package/src/streaming.ts +0 -2
- package/streaming.d.mts +0 -3
- package/streaming.d.mts.map +0 -1
- package/streaming.d.ts +0 -3
- package/streaming.d.ts.map +0 -1
- package/streaming.js +0 -6
- package/streaming.js.map +0 -1
- package/streaming.mjs +0 -3
- package/streaming.mjs.map +0 -1
- /package/resources/{agent → connectors}/v1.d.mts +0 -0
- /package/resources/{agent → connectors}/v1.d.ts +0 -0
- /package/resources/{agent → connectors}/v1.js +0 -0
- /package/resources/{agent → connectors}/v1.mjs +0 -0
- /package/resources/{database → linc}/v1.d.mts +0 -0
- /package/resources/{database → linc}/v1.d.ts +0 -0
- /package/resources/{database → linc}/v1.js +0 -0
- /package/resources/{database → linc}/v1.mjs +0 -0
- /package/src/resources/{agent → connectors}/v1.ts +0 -0
- /package/src/resources/{database → linc}/v1.ts +0 -0
|
@@ -6,7 +6,7 @@ const resource_1 = require("../../../core/resource.js");
|
|
|
6
6
|
const headers_1 = require("../../../internal/headers.js");
|
|
7
7
|
const path_1 = require("../../../internal/utils/path.js");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Vault-scoped event subscriptions and delivery testing
|
|
10
10
|
*/
|
|
11
11
|
class Subscriptions extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Vault-scoped event subscriptions and delivery testing
|
|
7
7
|
*/
|
|
8
8
|
export class Subscriptions extends APIResource {
|
|
9
9
|
/**
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { Events } from "./events/index.mjs";
|
|
2
|
-
export { Graphrag, type GraphragGetStatsResponse, type GraphragInitResponse, type GraphragProcessObjectResponse, type GraphragProcessObjectParams, } from "./graphrag.mjs";
|
|
3
2
|
export { Groups, type GroupCreateParams, type GroupUpdateParams } from "./groups.mjs";
|
|
4
3
|
export { Memory, type MemoryCreateResponse, type MemoryListResponse, type MemorySearchResponse, type MemoryCreateParams, type MemoryUpdateParams, type MemoryDeleteParams, type MemorySearchParams, } from "./memory.mjs";
|
|
5
|
-
export { Multipart, type MultipartGetPartURLsResponse, type MultipartAbortParams, type MultipartGetPartURLsParams, } from "./multipart.mjs";
|
|
6
|
-
export { Objects, type ObjectRetrieveResponse, type ObjectUpdateResponse, type ObjectListResponse, type ObjectDeleteResponse, type ObjectCreatePresignedURLResponse, type ObjectGetChunksResponse, type ObjectGetOcrWordsResponse, type ObjectGetPagesResponse, type
|
|
4
|
+
export { Multipart, type MultipartGetPartURLsResponse, type MultipartInitResponse, type MultipartAbortParams, type MultipartCompleteParams, type MultipartGetPartURLsParams, type MultipartInitParams, } from "./multipart.mjs";
|
|
5
|
+
export { Objects, type ObjectRetrieveResponse, type ObjectUpdateResponse, type ObjectListResponse, type ObjectDeleteResponse, type ObjectAppendResponse, type ObjectCreatePresignedURLResponse, type ObjectGetChunksResponse, type ObjectGetOcrWordsResponse, type ObjectGetPagesResponse, type ObjectGetTextResponse, type ObjectMergeResponse, type ObjectRetrieveParams, type ObjectUpdateParams, type ObjectListParams, type ObjectDeleteParams, type ObjectAppendParams, type ObjectCreatePresignedURLParams, type ObjectDownloadParams, type ObjectGetChunksParams, type ObjectGetOcrWordsParams, type ObjectGetPagesParams, type ObjectGetTextParams, type ObjectMergeParams, } from "./objects.mjs";
|
|
7
6
|
export { Vault, type VaultCreateResponse, type VaultRetrieveResponse, type VaultUpdateResponse, type VaultListResponse, type VaultDeleteResponse, type VaultConfirmUploadResponse, type VaultIngestResponse, type VaultSearchResponse, type VaultUploadResponse, type VaultCreateParams, type VaultUpdateParams, type VaultDeleteParams, type VaultConfirmUploadParams, type VaultIngestParams, type VaultSearchParams, type VaultUploadParams, } from "./vault.mjs";
|
|
8
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vault/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,2BAAuB;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vault/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,2BAAuB;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AAClF,OAAO,EACL,MAAM,EACN,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,qBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,GACzB,wBAAoB;AACrB,OAAO,EACL,OAAO,EACP,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,sBAAkB;AACnB,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,oBAAgB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { Events } from "./events/index.js";
|
|
2
|
-
export { Graphrag, type GraphragGetStatsResponse, type GraphragInitResponse, type GraphragProcessObjectResponse, type GraphragProcessObjectParams, } from "./graphrag.js";
|
|
3
2
|
export { Groups, type GroupCreateParams, type GroupUpdateParams } from "./groups.js";
|
|
4
3
|
export { Memory, type MemoryCreateResponse, type MemoryListResponse, type MemorySearchResponse, type MemoryCreateParams, type MemoryUpdateParams, type MemoryDeleteParams, type MemorySearchParams, } from "./memory.js";
|
|
5
|
-
export { Multipart, type MultipartGetPartURLsResponse, type MultipartAbortParams, type MultipartGetPartURLsParams, } from "./multipart.js";
|
|
6
|
-
export { Objects, type ObjectRetrieveResponse, type ObjectUpdateResponse, type ObjectListResponse, type ObjectDeleteResponse, type ObjectCreatePresignedURLResponse, type ObjectGetChunksResponse, type ObjectGetOcrWordsResponse, type ObjectGetPagesResponse, type
|
|
4
|
+
export { Multipart, type MultipartGetPartURLsResponse, type MultipartInitResponse, type MultipartAbortParams, type MultipartCompleteParams, type MultipartGetPartURLsParams, type MultipartInitParams, } from "./multipart.js";
|
|
5
|
+
export { Objects, type ObjectRetrieveResponse, type ObjectUpdateResponse, type ObjectListResponse, type ObjectDeleteResponse, type ObjectAppendResponse, type ObjectCreatePresignedURLResponse, type ObjectGetChunksResponse, type ObjectGetOcrWordsResponse, type ObjectGetPagesResponse, type ObjectGetTextResponse, type ObjectMergeResponse, type ObjectRetrieveParams, type ObjectUpdateParams, type ObjectListParams, type ObjectDeleteParams, type ObjectAppendParams, type ObjectCreatePresignedURLParams, type ObjectDownloadParams, type ObjectGetChunksParams, type ObjectGetOcrWordsParams, type ObjectGetPagesParams, type ObjectGetTextParams, type ObjectMergeParams, } from "./objects.js";
|
|
7
6
|
export { Vault, type VaultCreateResponse, type VaultRetrieveResponse, type VaultUpdateResponse, type VaultListResponse, type VaultDeleteResponse, type VaultConfirmUploadResponse, type VaultIngestResponse, type VaultSearchResponse, type VaultUploadResponse, type VaultCreateParams, type VaultUpdateParams, type VaultDeleteParams, type VaultConfirmUploadParams, type VaultIngestParams, type VaultSearchParams, type VaultUploadParams, } from "./vault.js";
|
|
8
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vault/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,0BAAuB;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vault/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,0BAAuB;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB;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ources/vault/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Vault = exports.Objects = exports.Multipart = exports.Memory = exports.Groups = exports.
|
|
4
|
+
exports.Vault = exports.Objects = exports.Multipart = exports.Memory = exports.Groups = exports.Events = void 0;
|
|
5
5
|
var index_1 = require("./events/index.js");
|
|
6
6
|
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return index_1.Events; } });
|
|
7
|
-
var graphrag_1 = require("./graphrag.js");
|
|
8
|
-
Object.defineProperty(exports, "Graphrag", { enumerable: true, get: function () { return graphrag_1.Graphrag; } });
|
|
9
7
|
var groups_1 = require("./groups.js");
|
|
10
8
|
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
|
|
11
9
|
var memory_1 = require("./memory.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vault/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2CAAwC;AAA/B,+FAAA,MAAM,OAAA;AACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vault/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2CAAwC;AAA/B,+FAAA,MAAM,OAAA;AACf,sCAAkF;AAAzE,gGAAA,MAAM,OAAA;AACf,sCASkB;AARhB,gGAAA,MAAM,OAAA;AASR,4CAQqB;AAPnB,sGAAA,SAAS,OAAA;AAQX,wCAyBmB;AAxBjB,kGAAA,OAAO,OAAA;AAyBT,oCAkBiB;AAjBf,8FAAA,KAAK,OAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Events } from "./events/index.mjs";
|
|
3
|
-
export { Graphrag, } from "./graphrag.mjs";
|
|
4
3
|
export { Groups } from "./groups.mjs";
|
|
5
4
|
export { Memory, } from "./memory.mjs";
|
|
6
5
|
export { Multipart, } from "./multipart.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vault/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAAE,2BAAuB;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vault/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAAE,2BAAuB;AACxC,OAAO,EAAE,MAAM,EAAkD,qBAAiB;AAClF,OAAO,EACL,MAAM,GAQP,qBAAiB;AAClB,OAAO,EACL,SAAS,GAOV,wBAAoB;AACrB,OAAO,EACL,OAAO,GAwBR,sBAAkB;AACnB,OAAO,EACL,KAAK,GAiBN,oBAAgB"}
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Vault-scoped persistent memory and semantic retrieval
|
|
6
6
|
*/
|
|
7
7
|
export declare class Memory extends APIResource {
|
|
8
8
|
/**
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Vault-scoped persistent memory and semantic retrieval
|
|
6
6
|
*/
|
|
7
7
|
export declare class Memory extends APIResource {
|
|
8
8
|
/**
|
|
@@ -6,7 +6,7 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const headers_1 = require("../../internal/headers.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Vault-scoped persistent memory and semantic retrieval
|
|
10
10
|
*/
|
|
11
11
|
class Memory extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Vault-scoped persistent memory and semantic retrieval
|
|
7
7
|
*/
|
|
8
8
|
export class Memory extends APIResource {
|
|
9
9
|
/**
|
|
@@ -17,6 +17,22 @@ export declare class Multipart extends APIResource {
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
abort(id: string, body: MultipartAbortParams, options?: RequestOptions): APIPromise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Complete a multipart upload by providing the list of part numbers and ETags
|
|
22
|
+
* (live). Single PUT uploads are capped at 5GB; multipart default max is 16GB
|
|
23
|
+
* (configurable).
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* await client.vault.multipart.complete('id', {
|
|
28
|
+
* objectId: 'objectId',
|
|
29
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
30
|
+
* sizeBytes: 1,
|
|
31
|
+
* uploadId: 'uploadId',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
complete(id: string, body: MultipartCompleteParams, options?: RequestOptions): APIPromise<void>;
|
|
20
36
|
/**
|
|
21
37
|
* Generate presigned URLs for individual multipart upload parts (live).
|
|
22
38
|
*
|
|
@@ -33,6 +49,22 @@ export declare class Multipart extends APIResource {
|
|
|
33
49
|
* ```
|
|
34
50
|
*/
|
|
35
51
|
getPartURLs(id: string, body: MultipartGetPartURLsParams, options?: RequestOptions): APIPromise<MultipartGetPartURLsResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Initiate a multipart upload for large files (>5GB). Single PUT uploads are
|
|
54
|
+
* capped at 5GB; multipart default max is 16GB (configurable). Multipart uploads
|
|
55
|
+
* are supported in production. Returns an uploadId and object metadata. Use part
|
|
56
|
+
* URLs endpoint to upload parts and complete endpoint to finalize.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.vault.multipart.init('id', {
|
|
61
|
+
* contentType: 'contentType',
|
|
62
|
+
* filename: 'filename',
|
|
63
|
+
* sizeBytes: 1,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
init(id: string, body: MultipartInitParams, options?: RequestOptions): APIPromise<MultipartInitResponse>;
|
|
36
68
|
}
|
|
37
69
|
export interface MultipartGetPartURLsResponse {
|
|
38
70
|
urls?: Array<MultipartGetPartURLsResponse.URL>;
|
|
@@ -43,6 +75,14 @@ export declare namespace MultipartGetPartURLsResponse {
|
|
|
43
75
|
url?: string;
|
|
44
76
|
}
|
|
45
77
|
}
|
|
78
|
+
export interface MultipartInitResponse {
|
|
79
|
+
next_step?: string;
|
|
80
|
+
objectId?: string;
|
|
81
|
+
partCount?: number;
|
|
82
|
+
partSizeBytes?: number;
|
|
83
|
+
s3Key?: string;
|
|
84
|
+
uploadId?: string;
|
|
85
|
+
}
|
|
46
86
|
export interface MultipartAbortParams {
|
|
47
87
|
/**
|
|
48
88
|
* Vault object ID associated with the multipart upload
|
|
@@ -53,6 +93,22 @@ export interface MultipartAbortParams {
|
|
|
53
93
|
*/
|
|
54
94
|
uploadId: string;
|
|
55
95
|
}
|
|
96
|
+
export interface MultipartCompleteParams {
|
|
97
|
+
objectId: string;
|
|
98
|
+
parts: Array<MultipartCompleteParams.Part>;
|
|
99
|
+
/**
|
|
100
|
+
* File size in bytes (default max 16GB). Configure via
|
|
101
|
+
* VAULT_MULTIPART_MAX_FILE_SIZE_BYTES.
|
|
102
|
+
*/
|
|
103
|
+
sizeBytes: number;
|
|
104
|
+
uploadId: string;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace MultipartCompleteParams {
|
|
107
|
+
interface Part {
|
|
108
|
+
etag: string;
|
|
109
|
+
partNumber: number;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
56
112
|
export interface MultipartGetPartURLsParams {
|
|
57
113
|
/**
|
|
58
114
|
* Vault object ID associated with the multipart upload
|
|
@@ -79,7 +135,44 @@ export declare namespace MultipartGetPartURLsParams {
|
|
|
79
135
|
sizeBytes: number;
|
|
80
136
|
}
|
|
81
137
|
}
|
|
138
|
+
export interface MultipartInitParams {
|
|
139
|
+
/**
|
|
140
|
+
* MIME type of the file
|
|
141
|
+
*/
|
|
142
|
+
contentType: string;
|
|
143
|
+
/**
|
|
144
|
+
* Name of the file to upload
|
|
145
|
+
*/
|
|
146
|
+
filename: string;
|
|
147
|
+
/**
|
|
148
|
+
* File size in bytes (required, default max 16GB). Configure via
|
|
149
|
+
* VAULT_MULTIPART_MAX_FILE_SIZE_BYTES.
|
|
150
|
+
*/
|
|
151
|
+
sizeBytes: number;
|
|
152
|
+
/**
|
|
153
|
+
* Whether to automatically process and index the file for search
|
|
154
|
+
*/
|
|
155
|
+
auto_index?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Marks the file as AI-generated work product (e.g. uploaded by an agent) rather
|
|
158
|
+
* than a user-provided source document. Persisted on the object and returned by
|
|
159
|
+
* object listings so clients can distinguish provenance.
|
|
160
|
+
*/
|
|
161
|
+
is_ai_generated?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Additional metadata to associate with the file
|
|
164
|
+
*/
|
|
165
|
+
metadata?: unknown;
|
|
166
|
+
/**
|
|
167
|
+
* Multipart part size in bytes (min 5MB, max 5GB). Defaults to 64MB.
|
|
168
|
+
*/
|
|
169
|
+
partSizeBytes?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Optional folder path for hierarchy preservation
|
|
172
|
+
*/
|
|
173
|
+
path?: string;
|
|
174
|
+
}
|
|
82
175
|
export declare namespace Multipart {
|
|
83
|
-
export { type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse, type MultipartAbortParams as MultipartAbortParams, type MultipartGetPartURLsParams as MultipartGetPartURLsParams, };
|
|
176
|
+
export { type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse, type MultipartInitResponse as MultipartInitResponse, type MultipartAbortParams as MultipartAbortParams, type MultipartCompleteParams as MultipartCompleteParams, type MultipartGetPartURLsParams as MultipartGetPartURLsParams, type MultipartInitParams as MultipartInitParams, };
|
|
84
177
|
}
|
|
85
178
|
//# sourceMappingURL=multipart.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.d.mts","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzF;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"multipart.d.mts","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ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B,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -17,6 +17,22 @@ export declare class Multipart extends APIResource {
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
abort(id: string, body: MultipartAbortParams, options?: RequestOptions): APIPromise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Complete a multipart upload by providing the list of part numbers and ETags
|
|
22
|
+
* (live). Single PUT uploads are capped at 5GB; multipart default max is 16GB
|
|
23
|
+
* (configurable).
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* await client.vault.multipart.complete('id', {
|
|
28
|
+
* objectId: 'objectId',
|
|
29
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
30
|
+
* sizeBytes: 1,
|
|
31
|
+
* uploadId: 'uploadId',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
complete(id: string, body: MultipartCompleteParams, options?: RequestOptions): APIPromise<void>;
|
|
20
36
|
/**
|
|
21
37
|
* Generate presigned URLs for individual multipart upload parts (live).
|
|
22
38
|
*
|
|
@@ -33,6 +49,22 @@ export declare class Multipart extends APIResource {
|
|
|
33
49
|
* ```
|
|
34
50
|
*/
|
|
35
51
|
getPartURLs(id: string, body: MultipartGetPartURLsParams, options?: RequestOptions): APIPromise<MultipartGetPartURLsResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Initiate a multipart upload for large files (>5GB). Single PUT uploads are
|
|
54
|
+
* capped at 5GB; multipart default max is 16GB (configurable). Multipart uploads
|
|
55
|
+
* are supported in production. Returns an uploadId and object metadata. Use part
|
|
56
|
+
* URLs endpoint to upload parts and complete endpoint to finalize.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.vault.multipart.init('id', {
|
|
61
|
+
* contentType: 'contentType',
|
|
62
|
+
* filename: 'filename',
|
|
63
|
+
* sizeBytes: 1,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
init(id: string, body: MultipartInitParams, options?: RequestOptions): APIPromise<MultipartInitResponse>;
|
|
36
68
|
}
|
|
37
69
|
export interface MultipartGetPartURLsResponse {
|
|
38
70
|
urls?: Array<MultipartGetPartURLsResponse.URL>;
|
|
@@ -43,6 +75,14 @@ export declare namespace MultipartGetPartURLsResponse {
|
|
|
43
75
|
url?: string;
|
|
44
76
|
}
|
|
45
77
|
}
|
|
78
|
+
export interface MultipartInitResponse {
|
|
79
|
+
next_step?: string;
|
|
80
|
+
objectId?: string;
|
|
81
|
+
partCount?: number;
|
|
82
|
+
partSizeBytes?: number;
|
|
83
|
+
s3Key?: string;
|
|
84
|
+
uploadId?: string;
|
|
85
|
+
}
|
|
46
86
|
export interface MultipartAbortParams {
|
|
47
87
|
/**
|
|
48
88
|
* Vault object ID associated with the multipart upload
|
|
@@ -53,6 +93,22 @@ export interface MultipartAbortParams {
|
|
|
53
93
|
*/
|
|
54
94
|
uploadId: string;
|
|
55
95
|
}
|
|
96
|
+
export interface MultipartCompleteParams {
|
|
97
|
+
objectId: string;
|
|
98
|
+
parts: Array<MultipartCompleteParams.Part>;
|
|
99
|
+
/**
|
|
100
|
+
* File size in bytes (default max 16GB). Configure via
|
|
101
|
+
* VAULT_MULTIPART_MAX_FILE_SIZE_BYTES.
|
|
102
|
+
*/
|
|
103
|
+
sizeBytes: number;
|
|
104
|
+
uploadId: string;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace MultipartCompleteParams {
|
|
107
|
+
interface Part {
|
|
108
|
+
etag: string;
|
|
109
|
+
partNumber: number;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
56
112
|
export interface MultipartGetPartURLsParams {
|
|
57
113
|
/**
|
|
58
114
|
* Vault object ID associated with the multipart upload
|
|
@@ -79,7 +135,44 @@ export declare namespace MultipartGetPartURLsParams {
|
|
|
79
135
|
sizeBytes: number;
|
|
80
136
|
}
|
|
81
137
|
}
|
|
138
|
+
export interface MultipartInitParams {
|
|
139
|
+
/**
|
|
140
|
+
* MIME type of the file
|
|
141
|
+
*/
|
|
142
|
+
contentType: string;
|
|
143
|
+
/**
|
|
144
|
+
* Name of the file to upload
|
|
145
|
+
*/
|
|
146
|
+
filename: string;
|
|
147
|
+
/**
|
|
148
|
+
* File size in bytes (required, default max 16GB). Configure via
|
|
149
|
+
* VAULT_MULTIPART_MAX_FILE_SIZE_BYTES.
|
|
150
|
+
*/
|
|
151
|
+
sizeBytes: number;
|
|
152
|
+
/**
|
|
153
|
+
* Whether to automatically process and index the file for search
|
|
154
|
+
*/
|
|
155
|
+
auto_index?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Marks the file as AI-generated work product (e.g. uploaded by an agent) rather
|
|
158
|
+
* than a user-provided source document. Persisted on the object and returned by
|
|
159
|
+
* object listings so clients can distinguish provenance.
|
|
160
|
+
*/
|
|
161
|
+
is_ai_generated?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Additional metadata to associate with the file
|
|
164
|
+
*/
|
|
165
|
+
metadata?: unknown;
|
|
166
|
+
/**
|
|
167
|
+
* Multipart part size in bytes (min 5MB, max 5GB). Defaults to 64MB.
|
|
168
|
+
*/
|
|
169
|
+
partSizeBytes?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Optional folder path for hierarchy preservation
|
|
172
|
+
*/
|
|
173
|
+
path?: string;
|
|
174
|
+
}
|
|
82
175
|
export declare namespace Multipart {
|
|
83
|
-
export { type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse, type MultipartAbortParams as MultipartAbortParams, type MultipartGetPartURLsParams as MultipartGetPartURLsParams, };
|
|
176
|
+
export { type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse, type MultipartInitResponse as MultipartInitResponse, type MultipartAbortParams as MultipartAbortParams, type MultipartCompleteParams as MultipartCompleteParams, type MultipartGetPartURLsParams as MultipartGetPartURLsParams, type MultipartInitParams as MultipartInitParams, };
|
|
84
177
|
}
|
|
85
178
|
//# sourceMappingURL=multipart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzF;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzF;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ/F;;;;;;;;;;;;;;OA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0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAE9C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,IAAI;QACnB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -27,6 +27,28 @@ class Multipart extends resource_1.APIResource {
|
|
|
27
27
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Complete a multipart upload by providing the list of part numbers and ETags
|
|
32
|
+
* (live). Single PUT uploads are capped at 5GB; multipart default max is 16GB
|
|
33
|
+
* (configurable).
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* await client.vault.multipart.complete('id', {
|
|
38
|
+
* objectId: 'objectId',
|
|
39
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
40
|
+
* sizeBytes: 1,
|
|
41
|
+
* uploadId: 'uploadId',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
complete(id, body, options) {
|
|
46
|
+
return this._client.post((0, path_1.path) `/vault/${id}/multipart/complete`, {
|
|
47
|
+
body,
|
|
48
|
+
...options,
|
|
49
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
30
52
|
/**
|
|
31
53
|
* Generate presigned URLs for individual multipart upload parts (live).
|
|
32
54
|
*
|
|
@@ -45,6 +67,24 @@ class Multipart extends resource_1.APIResource {
|
|
|
45
67
|
getPartURLs(id, body, options) {
|
|
46
68
|
return this._client.post((0, path_1.path) `/vault/${id}/multipart/part-urls`, { body, ...options });
|
|
47
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Initiate a multipart upload for large files (>5GB). Single PUT uploads are
|
|
72
|
+
* capped at 5GB; multipart default max is 16GB (configurable). Multipart uploads
|
|
73
|
+
* are supported in production. Returns an uploadId and object metadata. Use part
|
|
74
|
+
* URLs endpoint to upload parts and complete endpoint to finalize.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const response = await client.vault.multipart.init('id', {
|
|
79
|
+
* contentType: 'contentType',
|
|
80
|
+
* filename: 'filename',
|
|
81
|
+
* sizeBytes: 1,
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
init(id, body, options) {
|
|
86
|
+
return this._client.post((0, path_1.path) `/vault/${id}/multipart/init`, { body, ...options });
|
|
87
|
+
}
|
|
48
88
|
}
|
|
49
89
|
exports.Multipart = Multipart;
|
|
50
90
|
//# sourceMappingURL=multipart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.js","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,kBAAkB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAU,EACV,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"multipart.js","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,kBAAkB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,qBAAqB,EAAE;YAC9D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAU,EACV,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AApFD,8BAoFC"}
|
|
@@ -24,6 +24,28 @@ export class Multipart extends APIResource {
|
|
|
24
24
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Complete a multipart upload by providing the list of part numbers and ETags
|
|
29
|
+
* (live). Single PUT uploads are capped at 5GB; multipart default max is 16GB
|
|
30
|
+
* (configurable).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.vault.multipart.complete('id', {
|
|
35
|
+
* objectId: 'objectId',
|
|
36
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
37
|
+
* sizeBytes: 1,
|
|
38
|
+
* uploadId: 'uploadId',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
complete(id, body, options) {
|
|
43
|
+
return this._client.post(path `/vault/${id}/multipart/complete`, {
|
|
44
|
+
body,
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
27
49
|
/**
|
|
28
50
|
* Generate presigned URLs for individual multipart upload parts (live).
|
|
29
51
|
*
|
|
@@ -42,5 +64,23 @@ export class Multipart extends APIResource {
|
|
|
42
64
|
getPartURLs(id, body, options) {
|
|
43
65
|
return this._client.post(path `/vault/${id}/multipart/part-urls`, { body, ...options });
|
|
44
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Initiate a multipart upload for large files (>5GB). Single PUT uploads are
|
|
69
|
+
* capped at 5GB; multipart default max is 16GB (configurable). Multipart uploads
|
|
70
|
+
* are supported in production. Returns an uploadId and object metadata. Use part
|
|
71
|
+
* URLs endpoint to upload parts and complete endpoint to finalize.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const response = await client.vault.multipart.init('id', {
|
|
76
|
+
* contentType: 'contentType',
|
|
77
|
+
* filename: 'filename',
|
|
78
|
+
* sizeBytes: 1,
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
init(id, body, options) {
|
|
83
|
+
return this._client.post(path `/vault/${id}/multipart/init`, { body, ...options });
|
|
84
|
+
}
|
|
45
85
|
}
|
|
46
86
|
//# sourceMappingURL=multipart.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.mjs","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,EAAE,kBAAkB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAU,EACV,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"multipart.mjs","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,EAAE,kBAAkB,EAAE;YAC3D,IAA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