box-node-sdk 3.8.1 → 3.8.2
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/lib-esm/api-request-manager.d.ts +36 -0
- package/lib-esm/api-request-manager.js +78 -0
- package/lib-esm/api-request-manager.js.map +1 -0
- package/lib-esm/api-request.d.ts +135 -0
- package/lib-esm/api-request.js +282 -0
- package/lib-esm/api-request.js.map +1 -0
- package/lib-esm/box-client.d.ts +274 -0
- package/lib-esm/box-client.js +594 -0
- package/lib-esm/box-client.js.map +1 -0
- package/lib-esm/box-node-sdk.d.ts +227 -0
- package/lib-esm/box-node-sdk.js +373 -0
- package/lib-esm/box-node-sdk.js.map +1 -0
- package/lib-esm/chunked-uploader.d.ts +128 -0
- package/lib-esm/chunked-uploader.js +276 -0
- package/lib-esm/chunked-uploader.js.map +1 -0
- package/lib-esm/enterprise-event-stream.d.ts +82 -0
- package/lib-esm/enterprise-event-stream.js +205 -0
- package/lib-esm/enterprise-event-stream.js.map +1 -0
- package/lib-esm/event-stream.d.ts +91 -0
- package/lib-esm/event-stream.js +277 -0
- package/lib-esm/event-stream.js.map +1 -0
- package/lib-esm/managers/ai.generated.d.ts +58 -0
- package/lib-esm/managers/ai.generated.js +66 -0
- package/lib-esm/managers/ai.generated.js.map +1 -0
- package/lib-esm/managers/collaboration-allowlist.d.ts +133 -0
- package/lib-esm/managers/collaboration-allowlist.js +194 -0
- package/lib-esm/managers/collaboration-allowlist.js.map +1 -0
- package/lib-esm/managers/collaborations.d.ts +173 -0
- package/lib-esm/managers/collaborations.js +252 -0
- package/lib-esm/managers/collaborations.js.map +1 -0
- package/lib-esm/managers/collections.d.ts +42 -0
- package/lib-esm/managers/collections.js +62 -0
- package/lib-esm/managers/collections.js.map +1 -0
- package/lib-esm/managers/comments.d.ts +103 -0
- package/lib-esm/managers/comments.js +175 -0
- package/lib-esm/managers/comments.js.map +1 -0
- package/lib-esm/managers/device-pins.d.ts +52 -0
- package/lib-esm/managers/device-pins.js +91 -0
- package/lib-esm/managers/device-pins.js.map +1 -0
- package/lib-esm/managers/enterprise.d.ts +164 -0
- package/lib-esm/managers/enterprise.js +193 -0
- package/lib-esm/managers/enterprise.js.map +1 -0
- package/lib-esm/managers/events.d.ts +222 -0
- package/lib-esm/managers/events.js +295 -0
- package/lib-esm/managers/events.js.map +1 -0
- package/lib-esm/managers/file-requests-manager.d.ts +56 -0
- package/lib-esm/managers/file-requests-manager.js +81 -0
- package/lib-esm/managers/file-requests-manager.js.map +1 -0
- package/lib-esm/managers/files.d.ts +817 -0
- package/lib-esm/managers/files.js +1408 -0
- package/lib-esm/managers/files.js.map +1 -0
- package/lib-esm/managers/folders.d.ts +396 -0
- package/lib-esm/managers/folders.js +570 -0
- package/lib-esm/managers/folders.js.map +1 -0
- package/lib-esm/managers/groups.d.ts +213 -0
- package/lib-esm/managers/groups.js +289 -0
- package/lib-esm/managers/groups.js.map +1 -0
- package/lib-esm/managers/integration-mappings.d.ts +116 -0
- package/lib-esm/managers/integration-mappings.js +101 -0
- package/lib-esm/managers/integration-mappings.js.map +1 -0
- package/lib-esm/managers/legal-hold-policies.d.ts +190 -0
- package/lib-esm/managers/legal-hold-policies.js +254 -0
- package/lib-esm/managers/legal-hold-policies.js.map +1 -0
- package/lib-esm/managers/metadata.d.ts +232 -0
- package/lib-esm/managers/metadata.js +288 -0
- package/lib-esm/managers/metadata.js.map +1 -0
- package/lib-esm/managers/recent-items.d.ts +38 -0
- package/lib-esm/managers/recent-items.js +49 -0
- package/lib-esm/managers/recent-items.js.map +1 -0
- package/lib-esm/managers/retention-policies.d.ts +308 -0
- package/lib-esm/managers/retention-policies.js +374 -0
- package/lib-esm/managers/retention-policies.js.map +1 -0
- package/lib-esm/managers/search.d.ts +82 -0
- package/lib-esm/managers/search.js +90 -0
- package/lib-esm/managers/search.js.map +1 -0
- package/lib-esm/managers/shared-items.d.ts +33 -0
- package/lib-esm/managers/shared-items.js +74 -0
- package/lib-esm/managers/shared-items.js.map +1 -0
- package/lib-esm/managers/shield-information-barrier-reports.generated.d.ts +65 -0
- package/lib-esm/managers/shield-information-barrier-reports.generated.js +65 -0
- package/lib-esm/managers/shield-information-barrier-reports.generated.js.map +1 -0
- package/lib-esm/managers/shield-information-barrier-segment-members.generated.d.ts +83 -0
- package/lib-esm/managers/shield-information-barrier-segment-members.generated.js +83 -0
- package/lib-esm/managers/shield-information-barrier-segment-members.generated.js.map +1 -0
- package/lib-esm/managers/shield-information-barrier-segment-restrictions.generated.d.ts +84 -0
- package/lib-esm/managers/shield-information-barrier-segment-restrictions.generated.js +84 -0
- package/lib-esm/managers/shield-information-barrier-segment-restrictions.generated.js.map +1 -0
- package/lib-esm/managers/shield-information-barrier-segments.generated.d.ts +98 -0
- package/lib-esm/managers/shield-information-barrier-segments.generated.js +99 -0
- package/lib-esm/managers/shield-information-barrier-segments.generated.js.map +1 -0
- package/lib-esm/managers/shield-information-barriers.generated.d.ts +79 -0
- package/lib-esm/managers/shield-information-barriers.generated.js +83 -0
- package/lib-esm/managers/shield-information-barriers.generated.js.map +1 -0
- package/lib-esm/managers/sign-requests.generated.d.ts +93 -0
- package/lib-esm/managers/sign-requests.generated.js +97 -0
- package/lib-esm/managers/sign-requests.generated.js.map +1 -0
- package/lib-esm/managers/sign-templates.generated.d.ts +51 -0
- package/lib-esm/managers/sign-templates.generated.js +49 -0
- package/lib-esm/managers/sign-templates.generated.js.map +1 -0
- package/lib-esm/managers/storage-policies.d.ts +86 -0
- package/lib-esm/managers/storage-policies.js +174 -0
- package/lib-esm/managers/storage-policies.js.map +1 -0
- package/lib-esm/managers/tasks.d.ts +161 -0
- package/lib-esm/managers/tasks.js +243 -0
- package/lib-esm/managers/tasks.js.map +1 -0
- package/lib-esm/managers/terms-of-service.d.ts +161 -0
- package/lib-esm/managers/terms-of-service.js +283 -0
- package/lib-esm/managers/terms-of-service.js.map +1 -0
- package/lib-esm/managers/trash.d.ts +30 -0
- package/lib-esm/managers/trash.js +47 -0
- package/lib-esm/managers/trash.js.map +1 -0
- package/lib-esm/managers/users.d.ts +171 -0
- package/lib-esm/managers/users.js +230 -0
- package/lib-esm/managers/users.js.map +1 -0
- package/lib-esm/managers/web-links.d.ts +127 -0
- package/lib-esm/managers/web-links.js +200 -0
- package/lib-esm/managers/web-links.js.map +1 -0
- package/lib-esm/managers/webhooks.d.ts +169 -0
- package/lib-esm/managers/webhooks.js +398 -0
- package/lib-esm/managers/webhooks.js.map +1 -0
- package/lib-esm/schemas/ai-agent-ask.generated.d.ts +17 -0
- package/lib-esm/schemas/ai-agent-ask.generated.js +3 -0
- package/lib-esm/schemas/ai-agent-ask.generated.js.map +1 -0
- package/lib-esm/schemas/ai-agent-basic-gen-tool.generated.d.ts +14 -0
- package/lib-esm/schemas/ai-agent-basic-gen-tool.generated.js +3 -0
- package/lib-esm/schemas/ai-agent-basic-gen-tool.generated.js.map +1 -0
- package/lib-esm/schemas/ai-agent-basic-text-tool-ask.generated.d.ts +34 -0
- package/lib-esm/schemas/ai-agent-basic-text-tool-ask.generated.js +3 -0
- package/lib-esm/schemas/ai-agent-basic-text-tool-ask.generated.js.map +1 -0
- package/lib-esm/schemas/ai-agent-basic-text-tool-text-gen.generated.d.ts +36 -0
- package/lib-esm/schemas/ai-agent-basic-text-tool-text-gen.generated.js +3 -0
- package/lib-esm/schemas/ai-agent-basic-text-tool-text-gen.generated.js.map +1 -0
- package/lib-esm/schemas/ai-agent-long-text-tool.generated.d.ts +9 -0
- package/lib-esm/schemas/ai-agent-long-text-tool.generated.js +3 -0
- package/lib-esm/schemas/ai-agent-long-text-tool.generated.js.map +1 -0
- package/lib-esm/schemas/ai-agent-text-gen.generated.d.ts +14 -0
- package/lib-esm/schemas/ai-agent-text-gen.generated.js +3 -0
- package/lib-esm/schemas/ai-agent-text-gen.generated.js.map +1 -0
- package/lib-esm/schemas/ai-ask.generated.d.ts +40 -0
- package/lib-esm/schemas/ai-ask.generated.js +3 -0
- package/lib-esm/schemas/ai-ask.generated.js.map +1 -0
- package/lib-esm/schemas/ai-citation.generated.d.ts +27 -0
- package/lib-esm/schemas/ai-citation.generated.js +3 -0
- package/lib-esm/schemas/ai-citation.generated.js.map +1 -0
- package/lib-esm/schemas/ai-dialogue-history.generated.d.ts +22 -0
- package/lib-esm/schemas/ai-dialogue-history.generated.js +3 -0
- package/lib-esm/schemas/ai-dialogue-history.generated.js.map +1 -0
- package/lib-esm/schemas/ai-llm-endpoint-params-google.generated.d.ts +31 -0
- package/lib-esm/schemas/ai-llm-endpoint-params-google.generated.js +3 -0
- package/lib-esm/schemas/ai-llm-endpoint-params-google.generated.js.map +1 -0
- package/lib-esm/schemas/ai-llm-endpoint-params-open-ai.generated.d.ts +43 -0
- package/lib-esm/schemas/ai-llm-endpoint-params-open-ai.generated.js +3 -0
- package/lib-esm/schemas/ai-llm-endpoint-params-open-ai.generated.js.map +1 -0
- package/lib-esm/schemas/ai-response-full.generated.d.ts +12 -0
- package/lib-esm/schemas/ai-response-full.generated.js +3 -0
- package/lib-esm/schemas/ai-response-full.generated.js.map +1 -0
- package/lib-esm/schemas/ai-response.generated.d.ts +22 -0
- package/lib-esm/schemas/ai-response.generated.js +3 -0
- package/lib-esm/schemas/ai-response.generated.js.map +1 -0
- package/lib-esm/schemas/ai-text-gen.generated.d.ts +30 -0
- package/lib-esm/schemas/ai-text-gen.generated.js +3 -0
- package/lib-esm/schemas/ai-text-gen.generated.js.map +1 -0
- package/lib-esm/schemas/collaboration-create.d.ts +5 -0
- package/lib-esm/schemas/collaboration-create.js +3 -0
- package/lib-esm/schemas/collaboration-create.js.map +1 -0
- package/lib-esm/schemas/collaboration-update.d.ts +7 -0
- package/lib-esm/schemas/collaboration-update.js +3 -0
- package/lib-esm/schemas/collaboration-update.js.map +1 -0
- package/lib-esm/schemas/collaboration.d.ts +108 -0
- package/lib-esm/schemas/collaboration.js +3 -0
- package/lib-esm/schemas/collaboration.js.map +1 -0
- package/lib-esm/schemas/collaborations.d.ts +13 -0
- package/lib-esm/schemas/collaborations.js +3 -0
- package/lib-esm/schemas/collaborations.js.map +1 -0
- package/lib-esm/schemas/enterprise-base.generated.d.ts +18 -0
- package/lib-esm/schemas/enterprise-base.generated.js +3 -0
- package/lib-esm/schemas/enterprise-base.generated.js.map +1 -0
- package/lib-esm/schemas/file-base.generated.d.ts +32 -0
- package/lib-esm/schemas/file-base.generated.js +3 -0
- package/lib-esm/schemas/file-base.generated.js.map +1 -0
- package/lib-esm/schemas/file-mini.generated.d.ts +41 -0
- package/lib-esm/schemas/file-mini.generated.js +3 -0
- package/lib-esm/schemas/file-mini.generated.js.map +1 -0
- package/lib-esm/schemas/file-request.d.ts +41 -0
- package/lib-esm/schemas/file-request.js +3 -0
- package/lib-esm/schemas/file-request.js.map +1 -0
- package/lib-esm/schemas/file-version-base.generated.d.ts +19 -0
- package/lib-esm/schemas/file-version-base.generated.js +3 -0
- package/lib-esm/schemas/file-version-base.generated.js.map +1 -0
- package/lib-esm/schemas/file-version-mini.generated.d.ts +14 -0
- package/lib-esm/schemas/file-version-mini.generated.js +3 -0
- package/lib-esm/schemas/file-version-mini.generated.js.map +1 -0
- package/lib-esm/schemas/folder-base.generated.d.ts +32 -0
- package/lib-esm/schemas/folder-base.generated.js +3 -0
- package/lib-esm/schemas/folder-base.generated.js.map +1 -0
- package/lib-esm/schemas/folder-mini.generated.d.ts +31 -0
- package/lib-esm/schemas/folder-mini.generated.js +3 -0
- package/lib-esm/schemas/folder-mini.generated.js.map +1 -0
- package/lib-esm/schemas/index.d.ts +15 -0
- package/lib-esm/schemas/index.generated.d.ts +52 -0
- package/lib-esm/schemas/index.generated.js +69 -0
- package/lib-esm/schemas/index.generated.js.map +1 -0
- package/lib-esm/schemas/index.js +32 -0
- package/lib-esm/schemas/index.js.map +1 -0
- package/lib-esm/schemas/integration-mapping-base.d.ts +23 -0
- package/lib-esm/schemas/integration-mapping-base.js +3 -0
- package/lib-esm/schemas/integration-mapping-base.js.map +1 -0
- package/lib-esm/schemas/integration-mapping-box-item-slack.d.ts +17 -0
- package/lib-esm/schemas/integration-mapping-box-item-slack.js +3 -0
- package/lib-esm/schemas/integration-mapping-box-item-slack.js.map +1 -0
- package/lib-esm/schemas/integration-mapping-partner-item-slack.d.ts +27 -0
- package/lib-esm/schemas/integration-mapping-partner-item-slack.js +3 -0
- package/lib-esm/schemas/integration-mapping-partner-item-slack.js.map +1 -0
- package/lib-esm/schemas/integration-mapping-slack-create-request.d.ts +12 -0
- package/lib-esm/schemas/integration-mapping-slack-create-request.js +3 -0
- package/lib-esm/schemas/integration-mapping-slack-create-request.js.map +1 -0
- package/lib-esm/schemas/integration-mapping-slack-options.d.ts +16 -0
- package/lib-esm/schemas/integration-mapping-slack-options.js +3 -0
- package/lib-esm/schemas/integration-mapping-slack-options.js.map +1 -0
- package/lib-esm/schemas/integration-mapping.d.ts +55 -0
- package/lib-esm/schemas/integration-mapping.js +3 -0
- package/lib-esm/schemas/integration-mapping.js.map +1 -0
- package/lib-esm/schemas/integration-mappings.d.ts +27 -0
- package/lib-esm/schemas/integration-mappings.js +3 -0
- package/lib-esm/schemas/integration-mappings.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-base.generated.d.ts +18 -0
- package/lib-esm/schemas/shield-information-barrier-base.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-base.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-reference.generated.d.ts +9 -0
- package/lib-esm/schemas/shield-information-barrier-reference.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-reference.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-report-base.generated.d.ts +18 -0
- package/lib-esm/schemas/shield-information-barrier-report-base.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-report-base.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-report-details.generated.d.ts +9 -0
- package/lib-esm/schemas/shield-information-barrier-report-details.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-report-details.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-report.generated.d.ts +32 -0
- package/lib-esm/schemas/shield-information-barrier-report.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-report.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-reports.generated.d.ts +26 -0
- package/lib-esm/schemas/shield-information-barrier-reports.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-reports.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member-base.generated.d.ts +19 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member-base.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member-base.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member-mini.generated.d.ts +13 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member-mini.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member-mini.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member.generated.d.ts +39 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment-member.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment-members.generated.d.ts +26 -0
- package/lib-esm/schemas/shield-information-barrier-segment-members.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment-members.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction-base.generated.d.ts +20 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction-base.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction-base.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction-mini.generated.d.ts +20 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction-mini.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction-mini.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction.generated.d.ts +33 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restriction.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restrictions.generated.d.ts +26 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restrictions.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment-restrictions.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segment.generated.d.ts +50 -0
- package/lib-esm/schemas/shield-information-barrier-segment.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segment.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier-segments.generated.d.ts +26 -0
- package/lib-esm/schemas/shield-information-barrier-segments.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier-segments.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barrier.generated.d.ts +56 -0
- package/lib-esm/schemas/shield-information-barrier.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barrier.generated.js.map +1 -0
- package/lib-esm/schemas/shield-information-barriers.generated.d.ts +25 -0
- package/lib-esm/schemas/shield-information-barriers.generated.js +3 -0
- package/lib-esm/schemas/shield-information-barriers.generated.js.map +1 -0
- package/lib-esm/schemas/sign-request-base.generated.d.ts +78 -0
- package/lib-esm/schemas/sign-request-base.generated.js +3 -0
- package/lib-esm/schemas/sign-request-base.generated.js.map +1 -0
- package/lib-esm/schemas/sign-request-create-request.generated.d.ts +39 -0
- package/lib-esm/schemas/sign-request-create-request.generated.js +3 -0
- package/lib-esm/schemas/sign-request-create-request.generated.js.map +1 -0
- package/lib-esm/schemas/sign-request-create-signer.generated.d.ts +95 -0
- package/lib-esm/schemas/sign-request-create-signer.generated.js +3 -0
- package/lib-esm/schemas/sign-request-create-signer.generated.js.map +1 -0
- package/lib-esm/schemas/sign-request-prefill-tag.generated.d.ts +28 -0
- package/lib-esm/schemas/sign-request-prefill-tag.generated.js +3 -0
- package/lib-esm/schemas/sign-request-prefill-tag.generated.js.map +1 -0
- package/lib-esm/schemas/sign-request-signer-input.generated.d.ts +28 -0
- package/lib-esm/schemas/sign-request-signer-input.generated.js +3 -0
- package/lib-esm/schemas/sign-request-signer-input.generated.js.map +1 -0
- package/lib-esm/schemas/sign-request-signer.generated.d.ts +34 -0
- package/lib-esm/schemas/sign-request-signer.generated.js +3 -0
- package/lib-esm/schemas/sign-request-signer.generated.js.map +1 -0
- package/lib-esm/schemas/sign-request.generated.d.ts +72 -0
- package/lib-esm/schemas/sign-request.generated.js +3 -0
- package/lib-esm/schemas/sign-request.generated.js.map +1 -0
- package/lib-esm/schemas/sign-requests.generated.d.ts +25 -0
- package/lib-esm/schemas/sign-requests.generated.js +3 -0
- package/lib-esm/schemas/sign-requests.generated.js.map +1 -0
- package/lib-esm/schemas/sign-template.generated.d.ts +94 -0
- package/lib-esm/schemas/sign-template.generated.js +3 -0
- package/lib-esm/schemas/sign-template.generated.js.map +1 -0
- package/lib-esm/schemas/sign-templates.generated.d.ts +30 -0
- package/lib-esm/schemas/sign-templates.generated.js +3 -0
- package/lib-esm/schemas/sign-templates.generated.js.map +1 -0
- package/lib-esm/schemas/template-signer-input.generated.d.ts +61 -0
- package/lib-esm/schemas/template-signer-input.generated.js +3 -0
- package/lib-esm/schemas/template-signer-input.generated.js.map +1 -0
- package/lib-esm/schemas/template-signer.generated.d.ts +43 -0
- package/lib-esm/schemas/template-signer.generated.js +3 -0
- package/lib-esm/schemas/template-signer.generated.js.map +1 -0
- package/lib-esm/schemas/user-base.generated.d.ts +18 -0
- package/lib-esm/schemas/user-base.generated.js +3 -0
- package/lib-esm/schemas/user-base.generated.js.map +1 -0
- package/lib-esm/schemas/user-integration-mappings.d.ts +19 -0
- package/lib-esm/schemas/user-integration-mappings.js +3 -0
- package/lib-esm/schemas/user-integration-mappings.js.map +1 -0
- package/lib-esm/schemas/user-mini.d.ts +6 -0
- package/lib-esm/schemas/user-mini.js +3 -0
- package/lib-esm/schemas/user-mini.js.map +1 -0
- package/lib-esm/sessions/app-auth-session.d.ts +92 -0
- package/lib-esm/sessions/app-auth-session.js +176 -0
- package/lib-esm/sessions/app-auth-session.js.map +1 -0
- package/lib-esm/sessions/basic-session.d.ts +55 -0
- package/lib-esm/sessions/basic-session.js +62 -0
- package/lib-esm/sessions/basic-session.js.map +1 -0
- package/lib-esm/sessions/ccg-session.d.ts +72 -0
- package/lib-esm/sessions/ccg-session.js +111 -0
- package/lib-esm/sessions/ccg-session.js.map +1 -0
- package/lib-esm/sessions/persistent-session.d.ts +96 -0
- package/lib-esm/sessions/persistent-session.js +234 -0
- package/lib-esm/sessions/persistent-session.js.map +1 -0
- package/lib-esm/token-manager.d.ts +191 -0
- package/lib-esm/token-manager.js +453 -0
- package/lib-esm/token-manager.js.map +1 -0
- package/lib-esm/util/config.d.ts +85 -0
- package/lib-esm/util/config.js +212 -0
- package/lib-esm/util/config.js.map +1 -0
- package/lib-esm/util/errors.d.ts +50 -0
- package/lib-esm/util/errors.js +176 -0
- package/lib-esm/util/errors.js.map +1 -0
- package/lib-esm/util/exponential-backoff.d.ts +11 -0
- package/lib-esm/util/exponential-backoff.js +17 -0
- package/lib-esm/util/exponential-backoff.js.map +1 -0
- package/lib-esm/util/paging-iterator.d.ts +53 -0
- package/lib-esm/util/paging-iterator.js +247 -0
- package/lib-esm/util/paging-iterator.js.map +1 -0
- package/lib-esm/util/serializable.d.ts +10 -0
- package/lib-esm/util/serializable.js +17 -0
- package/lib-esm/util/serializable.js.map +1 -0
- package/lib-esm/util/url-path.d.ts +16 -0
- package/lib-esm/util/url-path.js +36 -0
- package/lib-esm/util/url-path.js.map +1 -0
- package/package.json +18 -4
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Manager for the Retention Policies Resource
|
|
3
|
+
*/
|
|
4
|
+
import BoxClient from '../box-client';
|
|
5
|
+
import { UserMini } from '../schemas';
|
|
6
|
+
/**
|
|
7
|
+
* Enum of valid retention policy types, which specify how long the policy should
|
|
8
|
+
* remain in effect.
|
|
9
|
+
* @readonly
|
|
10
|
+
* @enum {RetentionPolicyType}
|
|
11
|
+
*/
|
|
12
|
+
declare enum RetentionPolicyType {
|
|
13
|
+
FINITE = "finite",
|
|
14
|
+
INDEFINITE = "indefinite"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Enum of valid retention types.
|
|
18
|
+
* @readonly
|
|
19
|
+
* @enum {RetentionType}
|
|
20
|
+
*/
|
|
21
|
+
declare enum RetentionType {
|
|
22
|
+
/**
|
|
23
|
+
* You can modify the retention policy. For example, you can add or remove folders,
|
|
24
|
+
* shorten or lengthen the policy duration, or delete the assignment.
|
|
25
|
+
* Use this type if your retention policy is not related to any regulatory purposes.
|
|
26
|
+
*/
|
|
27
|
+
MODIFIABLE = "modifiable",
|
|
28
|
+
/**
|
|
29
|
+
* You can modify the retention policy only in a limited way: add a folder, lengthen the duration,
|
|
30
|
+
* retire the policy, change the disposition action or notification settings.
|
|
31
|
+
* You cannot perform other actions, such as deleting the assignment or shortening the policy duration.
|
|
32
|
+
* Use this type to ensure compliance with regulatory retention policies.
|
|
33
|
+
*/
|
|
34
|
+
NON_MODIFIABLE = "non_modifiable"
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Enum of valid retention policy disposition actions, which specify what should
|
|
38
|
+
* be done when the retention period is over
|
|
39
|
+
* @readonly
|
|
40
|
+
* @enum {RetentionPolicyDispositionAction}
|
|
41
|
+
*/
|
|
42
|
+
declare enum RetentionPolicyDispositionAction {
|
|
43
|
+
PERMANENTLY_DELETE = "permanently_delete",
|
|
44
|
+
REMOVE_RETENTION = "remove_retention"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Enum of valid policy assignment types, which specify what object the policy applies to
|
|
48
|
+
* @readonly
|
|
49
|
+
* @enum {RetentionPolicyAssignmentType}
|
|
50
|
+
*/
|
|
51
|
+
declare enum RetentionPolicyAssignmentType {
|
|
52
|
+
FOLDER = "folder",
|
|
53
|
+
ENTERPRISE = "enterprise",
|
|
54
|
+
METADATA = "metadata_template"
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Metadata template fields to filter on for assigning a retention policy
|
|
58
|
+
* @typedef {Object} MetadataFilterField
|
|
59
|
+
* @property {string} field The field to filter on
|
|
60
|
+
* @property {string|int} value The value to filter against
|
|
61
|
+
*/
|
|
62
|
+
type MetadataFilterField = {
|
|
63
|
+
field: string;
|
|
64
|
+
value: string | number;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Simple manager for interacting with all Retention Policies endpoints and actions.
|
|
68
|
+
*
|
|
69
|
+
* @constructor
|
|
70
|
+
* @param {BoxClient} client - The Box API Client that is responsible for making calls to the API
|
|
71
|
+
* @returns {void}
|
|
72
|
+
*/
|
|
73
|
+
declare class RetentionPolicies {
|
|
74
|
+
client: BoxClient;
|
|
75
|
+
policyTypes: typeof RetentionPolicyType;
|
|
76
|
+
dispositionActions: typeof RetentionPolicyDispositionAction;
|
|
77
|
+
assignmentTypes: typeof RetentionPolicyAssignmentType;
|
|
78
|
+
retentionTypes: typeof RetentionType;
|
|
79
|
+
constructor(client: BoxClient);
|
|
80
|
+
/**
|
|
81
|
+
* Used to create a single retention policy for an enterprise
|
|
82
|
+
*
|
|
83
|
+
* API Endpoint: '/retention_policies'
|
|
84
|
+
* Method: POST
|
|
85
|
+
*
|
|
86
|
+
* @param {string} name - The name of the retention policy to be created
|
|
87
|
+
* @param {RetentionPolicyType} type - The type of policy to create
|
|
88
|
+
* @param {RetentionPolicyDispositionAction} action - The disposition action for the new policy
|
|
89
|
+
* @param {Object} [options] - Additional parameters
|
|
90
|
+
* @param {boolean} [options.are_owners_notified] - Whether or not owner and co-owners of a file are notified when the policy nears expiration
|
|
91
|
+
* @param {boolean} [options.can_owner_extend_retention] - Whether or not the owner of a file will be allowed to extend the retention
|
|
92
|
+
* @param {UserMini[]} [options.custom_notification_recipients] - A list of users notified when the retention policy duration is about to end
|
|
93
|
+
* @param {string} [options.description] - The additional text description of the retention policy
|
|
94
|
+
* @param {int} [options.retention_length] - For finite policies, the number of days to retain the content
|
|
95
|
+
* @param {RetentionType} [options.retention_type] - The type of retention for the new policy
|
|
96
|
+
* @param {Function} [callback] - Passed the new policy information if it was acquired successfully, error otherwise
|
|
97
|
+
* @returns {Promise<Object>} A promise resolving to the new policy object
|
|
98
|
+
*/
|
|
99
|
+
create(name: string, type: RetentionPolicyType, action: RetentionPolicyDispositionAction, options?: {
|
|
100
|
+
are_owners_notified?: boolean;
|
|
101
|
+
can_owner_extend_retention?: boolean;
|
|
102
|
+
custom_notification_recipients?: UserMini[];
|
|
103
|
+
description?: string;
|
|
104
|
+
retention_length?: number;
|
|
105
|
+
retention_type?: RetentionType;
|
|
106
|
+
}, callback?: Function): any;
|
|
107
|
+
/**
|
|
108
|
+
* Fetches details about a specific retention policy
|
|
109
|
+
*
|
|
110
|
+
* API Endpoint: '/retention_policies/:policyID'
|
|
111
|
+
* Method: GET
|
|
112
|
+
*
|
|
113
|
+
* @param {string} policyID - The Box ID of the retention policy being requested
|
|
114
|
+
* @param {Object} [options] - Additional options for the request. Can be left null in most cases.
|
|
115
|
+
* @param {Function} [callback] - Passed the policy information if it was acquired successfully, error otherwise
|
|
116
|
+
* @returns {Promise<Object>} A promise resolving to the policy object
|
|
117
|
+
*/
|
|
118
|
+
get(policyID: string, options?: Record<string, any>, callback?: Function): any;
|
|
119
|
+
/**
|
|
120
|
+
* Update or modify a retention policy.
|
|
121
|
+
*
|
|
122
|
+
* API Endpoint: '/retention_policies/:policyID'
|
|
123
|
+
* Method: PUT
|
|
124
|
+
*
|
|
125
|
+
* @param {string} policyID - The Box ID of the retention policy to update
|
|
126
|
+
* @param {Object} updates - The information to be updated
|
|
127
|
+
* @param {string} [updates.policy_name] - The name of the retention policy
|
|
128
|
+
* @param {RetentionPolicyDispositionAction} [updates.disposition_action] - The disposition action for the updated policy
|
|
129
|
+
* @param {boolean} [updates.are_owners_notified] - Whether or not owner and co-owners of a file are notified when the policy nears expiration
|
|
130
|
+
* @param {boolean} [updates.can_owner_extend_retention] - Whether or not the owner of a file will be allowed to extend the retention
|
|
131
|
+
* @param {UserMini[]} [updates.custom_notification_recipients] - A list of users notified when the retention policy duration is about to end
|
|
132
|
+
* @param {string} [updates.description] - The additional text description of the retention policy
|
|
133
|
+
* @param {int} [updates.retention_length] - For finite policies, the number of days to retain the content
|
|
134
|
+
* @param {RetentionType} [updates.retention_type] - The type of retention. The only possible value here is non_modifiable. You can convert a modifiable policy to non_modifiable, but not the other way around.
|
|
135
|
+
* @param {string} [updates.status] - Used to retire a retention policy if status is set to retired
|
|
136
|
+
* @param {Function} [callback] - Passed the updated policy information if it was acquired successfully, error otherwise
|
|
137
|
+
* @returns {Promise<Object>} A promise resolving to the updated policy object
|
|
138
|
+
*/
|
|
139
|
+
update(policyID: string, updates: {
|
|
140
|
+
policy_name?: string;
|
|
141
|
+
disposition_action?: RetentionPolicyDispositionAction;
|
|
142
|
+
are_owners_notified?: boolean;
|
|
143
|
+
can_owner_extend_retention?: boolean;
|
|
144
|
+
custom_notification_recipients?: UserMini[];
|
|
145
|
+
description?: string;
|
|
146
|
+
retention_length?: number;
|
|
147
|
+
retention_type?: RetentionType;
|
|
148
|
+
status?: string;
|
|
149
|
+
}, callback?: Function): any;
|
|
150
|
+
/**
|
|
151
|
+
* Fetches a list of retention policies for the enterprise
|
|
152
|
+
*
|
|
153
|
+
* API Endpoint: '/retention_policies
|
|
154
|
+
* Method: GET
|
|
155
|
+
*
|
|
156
|
+
* @param {Object} [options] - Additional options for the request. Can be left null in most cases.
|
|
157
|
+
* @param {string} [options.policy_name] - A full or partial name to filter the retention policies by
|
|
158
|
+
* @param {RetentionPolicyType} [options.policy_type] - A policy type to filter the retention policies by
|
|
159
|
+
* @param {string} [options.created_by_user_id] - A user id to filter the retention policies by
|
|
160
|
+
* @param {Function} [callback] - Passed the policy objects if they were acquired successfully, error otherwise
|
|
161
|
+
* @returns {Promise<Object>} A promise resolving to the collection of policies
|
|
162
|
+
*/
|
|
163
|
+
getAll(options?: {
|
|
164
|
+
policy_name?: string;
|
|
165
|
+
policy_type?: RetentionPolicyType;
|
|
166
|
+
created_by_user_id?: string;
|
|
167
|
+
}, callback?: Function): any;
|
|
168
|
+
/**
|
|
169
|
+
* Fetch a list of assignments for a given retention policy
|
|
170
|
+
*
|
|
171
|
+
* API Endpoint: '/retention_policies/:policyID/assignments'
|
|
172
|
+
* Method: GET
|
|
173
|
+
*
|
|
174
|
+
* @param {string} policyID - The Box ID of the retention policy to get assignments for
|
|
175
|
+
* @param {Object} [options] - Additional options for the request. Can be left null in most cases.
|
|
176
|
+
* @param {RetentionPolicyAssignmentType} [options.type] - The type of the retention policy assignment to retrieve
|
|
177
|
+
* @param {Function} [callback] - Passed the assignment objects if they were acquired successfully, error otherwise
|
|
178
|
+
* @returns {Promise<Object>} A promise resolving to the collection of policy assignments
|
|
179
|
+
*/
|
|
180
|
+
getAssignments(policyID: string, options?: {
|
|
181
|
+
type?: RetentionPolicyAssignmentType;
|
|
182
|
+
}, callback?: Function): any;
|
|
183
|
+
/**
|
|
184
|
+
* Assign a retention policy to a folder or the entire enterprise.
|
|
185
|
+
*
|
|
186
|
+
* API Endpoint: '/retention_policy_assignments
|
|
187
|
+
* Method: POST
|
|
188
|
+
*
|
|
189
|
+
* @param {string} policyID - The ID of the policy to assign
|
|
190
|
+
* @param {RetentionPolicyAssignmentType} assignType - The type of object the policy will be assigned to
|
|
191
|
+
* @param {string} assignID - The Box ID of the object to assign the retention policy to
|
|
192
|
+
* @param {Object} [options] - Optional parameters for the request
|
|
193
|
+
* @param {MetadataFilterField[]} [options.filter_fields] - Metadata fields to filter against, if assigning to a metadata template
|
|
194
|
+
* @param {string} [options.start_date_field] - Id of Metadata field which will be used to specify the start date for the retention policy, or set this to "upload_date" as value to use the date when the file was uploaded to Box
|
|
195
|
+
* @param {Function} [callback] - Passed the new assignment object if successful, error otherwise
|
|
196
|
+
* @returns {Promise<Object>} A promise resolving to the created assignment object
|
|
197
|
+
*/
|
|
198
|
+
assign(policyID: string, assignType: RetentionPolicyAssignmentType, assignID: string, options?: {
|
|
199
|
+
filter_fields?: MetadataFilterField[];
|
|
200
|
+
start_date_field?: string;
|
|
201
|
+
} | Function | null, callback?: Function): any;
|
|
202
|
+
/**
|
|
203
|
+
* Fetch a specific policy assignment
|
|
204
|
+
*
|
|
205
|
+
* API Endpoint: '/retention_policy_assignments/:assignmentID'
|
|
206
|
+
* Method: GET
|
|
207
|
+
*
|
|
208
|
+
* @param {string} assignmentID - The Box ID of the policy assignment object to fetch
|
|
209
|
+
* @param {Object} [options] - Additional options for the request. Can be left null in most cases.
|
|
210
|
+
* @param {Function} [callback] - Passed the assignment object if it was acquired successfully, error otherwise
|
|
211
|
+
* @returns {Promise<Object>} A promise resolving to the assignment object
|
|
212
|
+
*/
|
|
213
|
+
getAssignment(assignmentID: string, options?: Record<string, any>, callback?: Function): any;
|
|
214
|
+
/**
|
|
215
|
+
* Delete a specific policy assignment.
|
|
216
|
+
*
|
|
217
|
+
* API Endpoint: '/retention_policy_assignments/:assignmentID'
|
|
218
|
+
* Method: DELETE
|
|
219
|
+
*
|
|
220
|
+
* @param {string} assignmentID - The Box ID of the policy assignment object to delete
|
|
221
|
+
* @param {Function} [callback] - Empty response body passed if successful.
|
|
222
|
+
* @returns {Promise<void>} A promise resolving to nothing
|
|
223
|
+
*/
|
|
224
|
+
deleteAssignment(assignmentID: string, callback?: Function): any;
|
|
225
|
+
/**
|
|
226
|
+
* Get the specific retention record for a retained file version. To use this feature,
|
|
227
|
+
* you must have the manage retention policies scope enabled for your API key
|
|
228
|
+
* via your application management console.
|
|
229
|
+
*
|
|
230
|
+
* API Endpoint: '/file_version_retentions/:retentionID'
|
|
231
|
+
* Method: GET
|
|
232
|
+
*
|
|
233
|
+
* @param {string} retentionID - The ID for the file retention record to retrieve
|
|
234
|
+
* @param {Object} [options] - Additional options for the request. Can be left null in most cases.
|
|
235
|
+
* @param {Function} [callback] - Pass the file version retention record if successful, error otherwise
|
|
236
|
+
* @returns {Promise<Object>} A promise resolving to the retention record
|
|
237
|
+
*/
|
|
238
|
+
getFileVersionRetention(retentionID: string, options?: Record<string, any>, callback?: Function): any;
|
|
239
|
+
/**
|
|
240
|
+
* Get a list of retention records for a retained file versions in an enterprise.
|
|
241
|
+
* To use this feature, you must have the manage retention policies scope enabled
|
|
242
|
+
* for your API key via your application management console.
|
|
243
|
+
*
|
|
244
|
+
* API Endpoint: '/file_version_retentions'
|
|
245
|
+
* Method: GET
|
|
246
|
+
*
|
|
247
|
+
* @param {Object} [options] - Additional options for the request. Can be left null in most cases.
|
|
248
|
+
* @param {string} [options.file_id] - A file id to filter the file version retentions by
|
|
249
|
+
* @param {string} [options.file_version_id] - A file version id to filter the file version retentions by
|
|
250
|
+
* @param {string} [options.policy_id] - A policy id to filter the file version retentions by
|
|
251
|
+
* @param {RetentionPolicyDispositionAction} [options.disposition_action] - The disposition action of the retention policy to filter by
|
|
252
|
+
* @param {string} [options.disposition_before] - Filter by retention policies which will complete before a certain time
|
|
253
|
+
* @param {string} [options.disposition_after] - Filter by retention policies which will complete after a certain time
|
|
254
|
+
* @param {int} [options.limit] - The maximum number of items to return in a page
|
|
255
|
+
* @param {string} [options.marker] - Paging marker, left blank to begin paging from the beginning
|
|
256
|
+
* @param {Function} [callback] - Pass the file version retention record if successful, error otherwise
|
|
257
|
+
* @returns {Promise<Object>} A promise resolving to the collection of retention records
|
|
258
|
+
*/
|
|
259
|
+
getAllFileVersionRetentions(options?: {
|
|
260
|
+
file_id?: string;
|
|
261
|
+
file_version_id?: string;
|
|
262
|
+
policy_id?: string;
|
|
263
|
+
disposition_action?: RetentionPolicyDispositionAction;
|
|
264
|
+
disposition_before?: string;
|
|
265
|
+
disposition_after?: string;
|
|
266
|
+
limit?: number;
|
|
267
|
+
marker?: string;
|
|
268
|
+
}, callback?: Function): any;
|
|
269
|
+
/**
|
|
270
|
+
* Get files under retention by each assignment
|
|
271
|
+
* To use this feature, you must have the manage retention policies scope enabled
|
|
272
|
+
* for your API key via your application management console.
|
|
273
|
+
*
|
|
274
|
+
* API Endpoint: '/retention_policy_assignments/:assignmentID/files_under_retention'
|
|
275
|
+
* Method: GET
|
|
276
|
+
*
|
|
277
|
+
* @param {string} assignmentID - The Box ID of the policy assignment object to fetch
|
|
278
|
+
* @param {Object} [options] - Additional options for the request. Can be left null in most cases.
|
|
279
|
+
* @param {int} [options.limit] - The maximum number of items to return in a page
|
|
280
|
+
* @param {string} [options.marker] - Paging marker, left blank to begin paging from the beginning
|
|
281
|
+
* @param {Function} [callback] - Pass the file version retention record if successful, error otherwise
|
|
282
|
+
* @returns {Promise<Object>} A promise resolving to the collection of retention records
|
|
283
|
+
*/
|
|
284
|
+
getFilesUnderRetentionForAssignment(assignmentID: string, options?: {
|
|
285
|
+
limit?: number;
|
|
286
|
+
marker?: string;
|
|
287
|
+
}, callback?: Function): any;
|
|
288
|
+
/**
|
|
289
|
+
* Get file versions under retention by each assignment
|
|
290
|
+
* To use this feature, you must have the manage retention policies scope enabled
|
|
291
|
+
* for your API key via your application management console.
|
|
292
|
+
*
|
|
293
|
+
* API Endpoint: '/retention_policy_assignments/:assignmentID/file_versions_under_retention'
|
|
294
|
+
* Method: GET
|
|
295
|
+
*
|
|
296
|
+
* @param {string} assignmentID - The Box ID of the policy assignment object to fetch
|
|
297
|
+
* @param {Object} [options] - Additional options for the request. Can be left null in most cases.
|
|
298
|
+
* @param {int} [options.limit] - The maximum number of items to return in a page
|
|
299
|
+
* @param {string} [options.marker] - Paging marker, left blank to begin paging from the beginning
|
|
300
|
+
* @param {Function} [callback] - Pass the file version retention record if successful, error otherwise
|
|
301
|
+
* @returns {Promise<Object>} A promise resolving to the collection of retention records
|
|
302
|
+
*/
|
|
303
|
+
getFileVersionsUnderRetentionForAssignment(assignmentID: string, options?: {
|
|
304
|
+
limit?: number;
|
|
305
|
+
market?: string;
|
|
306
|
+
}, callback?: Function): any;
|
|
307
|
+
}
|
|
308
|
+
export = RetentionPolicies;
|