Skip to main content
Version: 3.2.0

feat-deposit-filekey

✨ New Features​

Deposit object key as fileKey​

Goal: Extract can download the deposited object without guessing the S3 key. The path is not an auto-attribute.

Solution: Protect jobs stamp the file hash, send fileKey on POST /documents (the resolved storagePath), upload the key neo returns (storageKey, which may be suffixed -2), then POST /documents/:id/confirm so the draft becomes visible.

Files Modified:

  • src/app.service.ts — attach hash, send fileKey, confirm after upload
  • src/protocol/bcyip/api.ts — fileKey on create, confirmDocument
  • src/protocol/storage/storage.service.ts — upload the returned storageKey
  • src/protocol/utils/deposit-fields.ts — attachDocumentHash
  • src/core/task/task.types.ts — document.storageKey
  • docs/auto-attributes.md — deposit sequence
  • test/helpers/neo-backend-mock.ts — create + confirm replies