Pure-Harn Box connector for file artifact workflows.
The surface is deliberately connector-shaped, not document-renderer shaped:
- Normalize signed Box V2 webhook deliveries into Harn connector events.
- Poll the Box Events API from Harn-managed
stream_positionstate. - Dispatch common Box file, folder, event, representation, upload, and webhook APIs through allowlisted egress descriptors.
- Build deterministic request descriptors for artifact export/import flows.
Document rendering and manifest vocabulary stay in harn-documents; this
package owns the external Box boundary.
Install the tagged package:
harn add github.com/burin-labs/harn-box-connector@v0.1.0For local multi-repository development, use a path dependency:
[dependencies]
harn-box-connector = { path = "../harn-box-connector" }Use the Harn CLI version pinned in .harn-version to run this checkout.
- Provider id:
box - API hosts:
api.box.com,upload.box.com - Required secrets:
box/access-token,box/webhook-primary-key - Required OAuth scopes:
root_readwrite,item_readwrite,item_upload,manage_webhook
Start browser-based setup with harn connect box. Check its status with
harn connect status --connector box --json.
files.getfiles.contentfiles.representationsfolders.itemsevents.getfiles.uploadwebhooks.createwebhooks.deletewebhooks.listartifact.export_requestartifact.import_request
- Box API reference: https://developer.box.com/reference
- Box Events: https://developer.box.com/reference/get-events
- Box Webhooks: https://developer.box.com/guides/webhooks
- Box webhook signatures: https://developer.box.com/guides/webhooks/v2/signatures-v2
- Box PDF representations: https://developer.box.com/guides/representations/pdf
harn connector test . --provider boxThe smoke tests use Harn HTTP mocks and do not call Box APIs.