docusign_auth.py — authentication helper supporting two flows: - JWT Grant: service-to-service token generation using an RSA private key; caches token + expiry in .env to avoid redundant round-trips - Auth Code Grant (--consent): one-time browser flow to grant the app the 'impersonation' scope required for JWT; must be run once per user/app before JWT will work upload_docusign_template.py — posts a docusign-template.json to the DocuSign Templates REST API (v2.1). No Node.js dependency. Retries once on 401. requirements.txt — adds PyJWT>=2.0 and cryptography for RSA key handling. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| docs/agent-harness | ||
| src | ||
| .gitignore | ||
| PRODUCT-SPEC.md | ||
| PROJECT-SETUP.md | ||
| README.md | ||
| api-samples.md | ||
| field-mapping.md | ||
| requirements.txt | ||
README.md
adobe-to-docusign-migrator
Project Purpose
A migration toolkit/agent that automates extraction of Adobe Sign library templates (PDFs, fields, roles, workflow), transforms them to DocuSign template model, and creates/imports them into DocuSign.
Background
- Adobe Sign and DocuSign both expose APIs to manage templates, fields, recipients, logic, and documents.
- Adobe Sign (Acrobat Sign) uses "library documents" as templates, with data accessible via JSON API calls (but not exportable in a single file). You assemble the template info by calling:
/libraryDocuments/{libraryDocumentId}(metadata, PDFs, roles)/libraryDocuments/{libraryDocumentId}/formFields(fields/tags)/libraryDocuments/{libraryDocumentId}/recipients(recipients)/libraryDocuments/{libraryDocumentId}/workflows(if applicable)/libraryDocuments/{libraryDocumentId}/auditTrail(audit log, rarely needed for migration)
- DocuSign templates are more easily exported as a single payload, but you can also build them incrementally over the API.
- The most complex part of migration is mapping logic/fields/roles that are not 1:1 matches (conditional fields, complex routing).
API Output Samples
See api-samples.md for category-by-category JSON breakdowns.
Next Steps
- Add full agent harness scaffold (
docs/agent-harness/structure, project README, spec templates) - Collect sample real-world Adobe Sign template JSONs
- Define mapping/transforms for fields, roles, logic
- Write initial extraction + mapping scripts
- Draft Product Spec
Created: 2026-04-14 scaffolded by Cleo