Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
288db14
feat: add FileUploadHelper for centralized file upload validation
vitormattos Dec 19, 2025
d97d377
feat: move envelope validation to FileService
vitormattos Dec 19, 2025
e8d43db
fix: add missing Node import in FileService
vitormattos Dec 19, 2025
4d0fa94
refactor: simplify FileController and fix type annotations
vitormattos Dec 19, 2025
288a187
test: fix unit tests after FileUploadHelper injection
vitormattos Dec 19, 2025
c011a23
feat: ensure all envelope files share same folder using envelope UUID
vitormattos Dec 19, 2025
9823bcd
fix: use real FileUploadHelper instance in tests instead of mock
vitormattos Dec 20, 2025
15718b7
fix: resolve test warnings and risky tests
vitormattos Dec 20, 2025
2a89d8a
feat: add validateUploadedFile method to FileService
vitormattos Dec 20, 2025
84c5d4f
refactor: delay node creation until envelope folder is known
vitormattos Dec 20, 2025
c726538
feat: implement atomic envelope creation with rollback
vitormattos Dec 20, 2025
ed4e2a4
feat: add envelope feature validation
vitormattos Dec 20, 2025
59fc942
test: fix expected error message in envelope feature test
vitormattos Dec 20, 2025
1b9302b
fix: handle uploadedFile in getNodeFromData
vitormattos Dec 20, 2025
43d9adb
fix: support uploadedFile in single file save flow
vitormattos Dec 20, 2025
9d8dd45
feat: expose envelope_enabled config to frontend
vitormattos Dec 20, 2025
a089451
feat: respect envelope_enabled config in file upload
vitormattos Dec 20, 2025
9dd1f20
fix: allow thumbnail generation for files without sign requests
vitormattos Dec 20, 2025
8850495
feat: display folder icon for envelopes in file list
vitormattos Dec 20, 2025
96d303d
feat: centralize envelope validation in EnvelopeService
vitormattos Dec 20, 2025
62d2373
refactor: improve envelope file processing architecture
vitormattos Dec 20, 2025
1d438e4
refactor: remove envelope validation from FileService
vitormattos Dec 20, 2025
9278b81
refactor: remove redundant isEnvelope field from file list response
vitormattos Dec 20, 2025
11834d4
fix: use nodeType instead of isEnvelope for icon display
vitormattos Dec 20, 2025
5c75dfd
refactor: centralize file extension logic in mixin
vitormattos Dec 20, 2025
a154faf
feat: add endpoint to add files to envelope
vitormattos Dec 20, 2025
43599bf
feat: add parentFileId support in RequestSignatureService
vitormattos Dec 20, 2025
9f186dc
feat: add envelope capabilities and migrate from initialState
vitormattos Dec 20, 2025
a50d125
feat: add UI to add files to envelope
vitormattos Dec 20, 2025
511221a
chore: update OpenAPI documentation
vitormattos Dec 20, 2025
0b78a30
docs: document multipart/form-data requirement in file upload endpoints
vitormattos Dec 20, 2025
8afb114
feat(api): add statusText to envelope files response
vitormattos Dec 20, 2025
6d11599
refactor(api): unify envelope response structure
vitormattos Dec 20, 2025
53e8de9
test: fix CapabilitiesTest constructor mismatch
vitormattos Dec 20, 2025
c561276
feat(api): add lazy loading support for envelope files
vitormattos Dec 20, 2025
c157497
fix(ui): handle envelope preview correctly in File component
vitormattos Dec 20, 2025
808f3f4
fix: return thumbnail of enevlope as folder icon
vitormattos Dec 20, 2025
235d24c
fix: return predefined object instead of handmade handmade created
vitormattos Dec 20, 2025
29dc63b
fix: return status text
vitormattos Dec 20, 2025
9a9b69d
chore: update documentation
vitormattos Dec 20, 2025
82dee8c
chore: delete content of envelope when delete an envelope
vitormattos Dec 20, 2025
2e0f76b
fix(api): use consistent field names in formatFilesResponse
vitormattos Dec 20, 2025
785836d
feat: store total files of envelope
vitormattos Dec 20, 2025
6e0268d
chore: replace parentFileId by parentNodeId at filter parameter
vitormattos Dec 20, 2025
2d3bccb
chore: store envelope size at metadata field
vitormattos Dec 20, 2025
3f0ce8c
chore: remove unecessary if
vitormattos Dec 20, 2025
882993e
chore: format return of api when add a file to envelop
vitormattos Dec 20, 2025
ab8eee2
fix: only return the file when exists
vitormattos Dec 20, 2025
68e4f89
feat(envelope): implement lazy loading and store methods for envelope…
vitormattos Dec 20, 2025
8ccc319
feat(envelope): integrate EnvelopeFilesList into RequestSignatureTab
vitormattos Dec 20, 2025
bffc2d6
chore: update openapi documentation
vitormattos Dec 20, 2025
e039fae
fix(security): remove fileId from API responses
vitormattos Dec 20, 2025
7645892
chore: update documentation
vitormattos Dec 20, 2025
1fd9026
fix: close sidebar when list files and the file wasn't at the list
vitormattos Dec 20, 2025
9415ede
test: fix EnvelopeService unit tests after API change
vitormattos Dec 20, 2025
837be9a
chore(refactor): Move logic of save multiple files to service
vitormattos Dec 20, 2025
4b97ce9
fix: send uploadedFile to save method
vitormattos Dec 20, 2025
8aa2525
chore: moved the upload responsibility to store
vitormattos Dec 20, 2025
eef601b
chore: fallback
vitormattos Dec 20, 2025
89eebde
chore: propagate signer add to envelope content
vitormattos Dec 20, 2025
8feb227
fix: only load file metadata when is a file
vitormattos Dec 20, 2025
9246c4e
chore: return node type
vitormattos Dec 20, 2025
ca598dd
chore: remove unecessary unset
vitormattos Dec 20, 2025
baeef7b
chore: propagate deletion of signer to children when is an envelope
vitormattos Dec 20, 2025
6bd138b
fix: delete identify method using entity
vitormattos Dec 20, 2025
1c4d8e7
fix: clear cache of identify method when work with envelope
vitormattos Dec 20, 2025
60dc9c6
fix: send node_id instead of id of libresign_file
vitormattos Dec 20, 2025
6b5084b
fix: to reorder is necessary to have a file
vitormattos Dec 20, 2025
616d788
chore: update documentation
vitormattos Dec 20, 2025
6b94385
fix: prevent error when is an envelope
vitormattos Dec 20, 2025
1f1778e
chore: make more clear the logic to notify
vitormattos Dec 20, 2025
37e0a74
fix: only use file when exists
vitormattos Dec 20, 2025
3ae2f0f
feat: add progress bar
vitormattos Dec 20, 2025
149cafe
fix: use nodeId instead of file_id
vitormattos Dec 20, 2025
acaaf48
chore: add back the add signer to top and add an icon to this button
vitormattos Dec 20, 2025
6b33bc2
fix: return filesCount from metadata and always return empty the files
vitormattos Dec 22, 2025
88d9fdf
feat: return uuid of document at objet of visible element
vitormattos Dec 22, 2025
24b2771
fix: add typing to return
vitormattos Dec 22, 2025
90c2b0c
fix: normalize types of return
vitormattos Dec 22, 2025
727b005
chore: update documentation
vitormattos Dec 22, 2025
71f04ca
fix: send the UUID of file to prevent save to diferent file
vitormattos Dec 22, 2025
6721142
chore: update documentation
vitormattos Dec 22, 2025
5e0c1c9
feat: add support to multiple documents when add visible elements
vitormattos Dec 22, 2025
db222d6
feat: add method to get child sign requests by envelope and identify …
vitormattos Dec 23, 2025
f97ead5
feat: add getPdfUrlsForSigning method for envelope support
vitormattos Dec 23, 2025
949f5d9
refactor: change getNextcloudFile to return array
vitormattos Dec 23, 2025
9d6b0d7
feat: delegate PDF URL generation to service layer
vitormattos Dec 23, 2025
47c1a36
feat: validate all files in envelope before signing
vitormattos Dec 23, 2025
06848a0
feat: add multi-PDF support in SignPDF component
vitormattos Dec 23, 2025
8538d99
refactor: rename setDocumentToSign to setFileToSign
vitormattos Dec 23, 2025
fac4e76
chore: make compatible with sign multiple files
vitormattos Dec 23, 2025
0f3d7f3
fix: cs
vitormattos Dec 23, 2025
abd68cc
fix(FileService): clear mapper cache for fresh nodeType read
vitormattos Dec 23, 2025
eff0ef0
refactor(PageController): adjust envelope validation logic
vitormattos Dec 23, 2025
0a201b1
refactor(Pkcs12Handler): update signature handling
vitormattos Dec 23, 2025
143fcd7
refactor(MailNotifyListener): adjust notification flow
vitormattos Dec 23, 2025
893e17b
refactor(IdentifyService): update identification method
vitormattos Dec 23, 2025
40cca81
refactor(SignFileService): adjust file signing logic
vitormattos Dec 23, 2025
338d446
refactor(VisibleElements): update component structure
vitormattos Dec 23, 2025
9826150
refactor(RequestSignatureTab): adjust sidebar layout
vitormattos Dec 23, 2025
164a950
feat(validation): add EnvelopeValidation component
vitormattos Dec 23, 2025
c47cbdd
refactor(store/sign): update state management
vitormattos Dec 23, 2025
880faa8
refactor(store/signMethods): adjust methods store
vitormattos Dec 23, 2025
ddec35d
feat(Validation): integrate EnvelopeValidation component
vitormattos Dec 23, 2025
bf6b7a7
refactor(SignPDF): update main view structure
vitormattos Dec 23, 2025
23d3712
refactor(Sign): adjust signing partial component
vitormattos Dec 23, 2025
87c163f
fix: cs
vitormattos Dec 23, 2025
2665d6c
libresign: PageController: document uuid param for signIdDoc for Open…
vitormattos Dec 23, 2025
9e0e88f
chore: update documentation
vitormattos Dec 23, 2025
3953caa
fix: SignFileService tests by properly mocking getNextcloudFiles() an…
vitormattos Dec 23, 2025
5d1f683
fix: validate the new initial state
vitormattos Dec 23, 2025
3e965fc
fix: consider uuid when is envelope
vitormattos Dec 23, 2025
e084e09
fix: add pending class
vitormattos Dec 23, 2025
3a87eb5
fix: indent
vitormattos Dec 23, 2025
98f176e
refactor: Extract SignRequest entity management into dedicated service
vitormattos Dec 24, 2025
8d2fc59
fix: cs
vitormattos Dec 24, 2025
263595c
fix: visibility of method
vitormattos Dec 24, 2025
b4c2b7b
refactor: Add Psalm typedefs for envelope child structures
vitormattos Dec 24, 2025
f57f9f6
refactor: Improve FileService envelope handling with stateless builder
vitormattos Dec 24, 2025
7def481
perf: Add lazy-loading caches to FileMapper for child file queries
vitormattos Dec 24, 2025
df36330
docs: Update API controller docblocks for envelope responses
vitormattos Dec 24, 2025
874a6be
feat: Enhance Signer component for envelope display
vitormattos Dec 24, 2025
3c3f330
chore: remove unused FrontpageRoute
vitormattos Dec 24, 2025
2f08f93
refactor: Extract file response formatting into dedicated classes
vitormattos Dec 24, 2025
d4f070e
refactor: Remove unused FileDataAssembler and delegate to FileRespons…
vitormattos Dec 24, 2025
3a32581
refactor: extract signers loading logic to SignersLoader service
vitormattos Dec 24, 2025
9fdac80
feat: add FileListService for file list endpoint formatting
vitormattos Dec 24, 2025
cd4c7b9
refactor: remove unused FileResponseFormatter and FileResponseData cl…
vitormattos Dec 24, 2025
48c9609
refactor: delegate signer loading to SignersLoader service
vitormattos Dec 24, 2025
0536c39
refactor: integrate FileListService in FileController list endpoint
vitormattos Dec 24, 2025
a1ce683
feat: add resolveUid method to IdentifyMethodService
vitormattos Dec 24, 2025
5dadb28
test: update FileServiceTest for refactored service dependencies
vitormattos Dec 24, 2025
3ec9d39
fix: update documentation
vitormattos Dec 24, 2025
1e52a72
fix: add required fields to signer response in SignersLoader
vitormattos Dec 24, 2025
0b238b9
fix: use correct File parameter in loadCertDataFromLibreSignFile
vitormattos Dec 24, 2025
f41edb8
fix: use getFile() to obtain file node in loadCertDataFromLibreSignFile
vitormattos Dec 24, 2025
d6e972d
fix: use stdClass instead of arrays in loadSignersFromCertData
vitormattos Dec 24, 2025
2675e07
fix: prevent signer overwrite when adding multiple signers to envelope
vitormattos Dec 24, 2025
7453171
fix: only set signer as me when identifier matches current user
vitormattos Dec 24, 2025
38d4f50
fix: only expose sign_uuid for current user signer
vitormattos Dec 24, 2025
168247b
fix: return oid to API
vitormattos Dec 24, 2025
fc64cac
fix: return the signer uuid when it's me
vitormattos Dec 24, 2025
11c4630
fix: error page
vitormattos Dec 24, 2025
82fee52
chore: use object instead of array
vitormattos Dec 25, 2025
4929440
fix: unsubscribe listeners
vitormattos Dec 25, 2025
33a0b79
fix: make VisibleElements compatible with envelope
vitormattos Dec 25, 2025
e5503c1
fix: make edition and retrieve visible elements compatible with envelop
vitormattos Dec 25, 2025
9fa82b5
fix: use same space between all elements
vitormattos Dec 25, 2025
5af8b92
chore: update documentation
vitormattos Dec 25, 2025
0d379d0
fix: remove return type
vitormattos Dec 25, 2025
a4c8efe
chore: update documentation
vitormattos Dec 25, 2025
6a9092c
fix: small improvements
vitormattos Dec 25, 2025
7b08cf2
fix: metadata always is object
vitormattos Dec 25, 2025
42d6d1e
fix: always return metadata as object
vitormattos Dec 25, 2025
39e8f86
chore: show filename with extension when sign document
vitormattos Dec 25, 2025
5627034
fix: remove unecessary get
vitormattos Dec 25, 2025
cfc028c
fix: remove fallback
vitormattos Dec 25, 2025
baf4a75
fix: remove complex test to mock
vitormattos Dec 25, 2025
6450220
fix: cascade delete signer to identify_method
vitormattos Dec 25, 2025
08491f7
fix: return content of envelope when send the parent reference
vitormattos Dec 26, 2025
576d76c
fix: load signers every time
vitormattos Dec 26, 2025
9be696a
refactor: simplify logic
vitormattos Dec 26, 2025
714de1b
fix: add DB group
vitormattos Dec 26, 2025
730476e
refactor: extract file handling into dedicated services\n\nSplit resp…
vitormattos Dec 27, 2025
639ec22
refactor: format visible elements using page metadata\n\nCompute top/…
vitormattos Dec 27, 2025
ae913ef
chore: remove deprecated TFile service\n\nLegacy helper removed after…
vitormattos Dec 27, 2025
8b75fe4
refactor: align controllers and services with new file workflow\n\nAd…
vitormattos Dec 27, 2025
c036506
docs: regenerate OpenAPI spec and TypeScript types\n\nSync API annota…
vitormattos Dec 27, 2025
f9667b9
refactor: update files store to new API response shape\n\nAdapt store…
vitormattos Dec 27, 2025
d94e7ca
test: update unit tests and psalm baseline for refactor\n\nAdjust tes…
vitormattos Dec 27, 2025
4c106f2
test: add unit tests for file-related services\n\nIntroduce initial u…
vitormattos Dec 27, 2025
cf49fcc
refactor: move formatVisibleElements to FileElementService\n\nDelegat…
vitormattos Dec 27, 2025
38c9947
fix: order of properties
vitormattos Dec 27, 2025
5a710c4
chore: add SPDX header
vitormattos Dec 27, 2025
03492b3
refactor(file): extract and centralize file formatting logic in FileL…
vitormattos Dec 27, 2025
0e43851
test(file): add comprehensive unit tests for FileListService
vitormattos Dec 27, 2025
703ce64
feat(envelope): add FileElementService dependency and visibleElements…
vitormattos Dec 27, 2025
3c55b97
refactor(metadata): improve nodeId precedence and test coverage
vitormattos Dec 27, 2025
baa5ffa
feat(settings): add getUserIdentificationSettings method with tests
vitormattos Dec 27, 2025
7a550b2
test(service): add FileElementService unit test structure
vitormattos Dec 27, 2025
dfa2821
feat(migration): normalize file names by removing extensions
vitormattos Dec 27, 2025
a37fcc1
chore(services): update service dependencies and imports
vitormattos Dec 27, 2025
7ccf5ca
refactor(controllers): integrate FileListService changes
vitormattos Dec 27, 2025
43a8cfa
chore: bump version
vitormattos Dec 27, 2025
e8216fb
fix: openapi issues
vitormattos Dec 27, 2025
84acfb4
fix: normalize ids
vitormattos Dec 27, 2025
f5d6ad3
fix: unit test
vitormattos Dec 27, 2025
0017dde
refactor: consolidate file type system to LibresignFileDetail
vitormattos Dec 28, 2025
1750083
refactor: add return type annotation to SignRequestMapper
vitormattos Dec 28, 2025
45973f7
refactor: add LibresignPagination type to Pagination helper
vitormattos Dec 28, 2025
4890c73
refactor: add return type annotations to FileListService
vitormattos Dec 28, 2025
c62733d
refactor: initialize all LibresignSettings fields with defaults
vitormattos Dec 28, 2025
dced046
refactor: update controllers to use LibresignFileDetail type and fix …
vitormattos Dec 28, 2025
4ff3f26
refactor: update database mapper and validate helper for file ID cons…
vitormattos Dec 28, 2025
791649f
refactor: update service layer to use canonical file type
vitormattos Dec 28, 2025
648a827
refactor: migrate frontend store from nodeId to id semantics
vitormattos Dec 28, 2025
89430d2
refactor: update FileEntry components to use id-based semantics
vitormattos Dec 28, 2025
f38d7d0
refactor: update file list and request components to use id semantics
vitormattos Dec 28, 2025
9b05c4b
refactor: update envelope and signature components to use id semantics
vitormattos Dec 28, 2025
21f5b32
chore: regenerate OpenAPI specs and TypeScript types
vitormattos Dec 28, 2025
1e435c2
test: update unit tests for file service refactoring
vitormattos Dec 28, 2025
1840e70
refactor(api): rename parentNodeId to parentFileId for consistency
vitormattos Dec 28, 2025
5303e8b
fix(envelope): correct file ID usage in EnvelopeFilesList
vitormattos Dec 28, 2025
63de002
chore(openapi): update API schema for parentFileId parameter
vitormattos Dec 28, 2025
d165faa
fix(api): add mime and pages to ValidateFile response schema
vitormattos Dec 28, 2025
37ccdc1
refactor(file): remove redundant fileId field from file list response
vitormattos Dec 28, 2025
fa28dee
test: fix FileListService test to use internal ID instead of nodeId
vitormattos Dec 28, 2025
01b595a
test: update SettingsLoader test to expect default settings
vitormattos Dec 28, 2025
1672c23
test: fix API tests to use internal file ID instead of nodeId
vitormattos Dec 28, 2025
76a6e55
test: add comment clarifying settings behavior in FileControllerTest
vitormattos Dec 28, 2025
cf6bdd0
fix(api): return internal LibreSign id in upload/envelope response
vitormattos Dec 28, 2025
17e644e
fix(FileListService): add missing fileId field in files array
vitormattos Dec 28, 2025
ffd2d0a
fix: correct property name for file UUID in FileElementController
vitormattos Dec 28, 2025
aa503ad
refactor: replace generic file resolvers
vitormattos Dec 28, 2025
af77b17
fix: use file id for signer cleanup
vitormattos Dec 28, 2025
d8f93b3
fix: use fileId and not nodeid
vitormattos Dec 28, 2025
6abace3
chore: hide open file when is an envelope
vitormattos Dec 28, 2025
1b739c1
fix: date format
vitormattos Dec 28, 2025
b6069dd
feat(envelope): include child file metadata for envelope children
vitormattos Dec 29, 2025
12e42cd
refactor(validation): componentize document details and use in envelo…
vitormattos Dec 29, 2025
871d25d
fix(validation): render DocMDP status using status constants
vitormattos Dec 29, 2025
9e5cd4c
chore: update documentation
vitormattos Dec 29, 2025
39abf28
style(validation): align single-file card UI with envelope view
vitormattos Dec 29, 2025
7488427
style(validation): encapsulate NcListItem wrapper normalization in Do…
vitormattos Dec 29, 2025
45f713f
style(envelope): normalize NcListItem layout in sections and prevent …
vitormattos Dec 29, 2025
ef30472
fix(validation): allow text wrapping in DocMDP description
vitormattos Dec 29, 2025
80af85e
fix(file): ensure non-empty filename for URL imports
vitormattos Dec 29, 2025
806177e
fix: return necessary data
vitormattos Dec 29, 2025
6fccb5d
feat(request): add envelope name prompt for multi-file uploads
vitormattos Dec 29, 2025
b4803d9
feat(api): add name parameter to PATCH request-signature endpoint
vitormattos Dec 29, 2025
3643bce
fix(validation): skip signer validation when users array is empty
vitormattos Dec 29, 2025
275e93b
feat(service): implement envelope name update in saveFile method
vitormattos Dec 29, 2025
79e1f83
feat(ui): create reusable EditNameDialog component
vitormattos Dec 29, 2025
012948a
refactor(ui): use EditNameDialog in RequestPicker for envelope naming
vitormattos Dec 29, 2025
ff6926f
feat(ui): add inline envelope name editing with auto-save
vitormattos Dec 29, 2025
f083391
chore: update documentation
vitormattos Dec 29, 2025
67796f7
feat(store): add rename method to useFilesStore
vitormattos Dec 29, 2025
e8a6431
feat(ui): implement inline rename form in FileEntryName component
vitormattos Dec 29, 2025
65a6b73
feat(ui): add rename action to FileEntryActions menu
vitormattos Dec 29, 2025
0e4bafd
feat(ui): connect rename events and manage rename state in FileEntry
vitormattos Dec 29, 2025
8e14a31
feat(fileslist): right-click menu at cursor with clean reset\n\n- Pos…
vitormattos Dec 29, 2025
7cc772d
feat(admin): add envelope feature toggle in settings\n\n- Adds Envelo…
vitormattos Dec 29, 2025
faed955
feat(request-picker): enable envelope multi-select from Files
vitormattos Dec 29, 2025
2b8cc45
fix: update documentation and fix some unit tests
vitormattos Dec 29, 2025
29e5e91
fix: namespace
vitormattos Dec 29, 2025
7e15058
chore: remove unused props
vitormattos Dec 29, 2025
108f5cd
fix: respect openapi contract
vitormattos Dec 29, 2025
7475d57
fix: make compatible with newest rule
vitormattos Dec 29, 2025
887de25
chore: bump dependencies
vitormattos Dec 29, 2025
dfede9f
fix: psalm issues
vitormattos Dec 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,29 @@ cd tests/integration
composer i
chown -R www-data: .

# List available test steps
cd tests/integration
runuser -u www-data -- vendor/bin/behat -dl

# Running integration tests (from libresign root directory)
cd tests/integration
runuser -u www-data -- vendor/bin/behat features/<path>.feature

# Run with verbose output (shows nextcloud.log entries)
runuser -u www-data -- vendor/bin/behat features/<path>.feature -v

# Example: Run specific feature file
cd tests/integration
runuser -u www-data -- vendor/bin/behat features/auth/login.feature
```

**CRITICAL**: Like unit tests, ALWAYS run specific scenarios, NEVER run the entire integration test suite:
- Always specify which feature file to run and the row of scenario if needed
- Use `-dl` to list available test steps when writing new tests
- Use `-v` flag to see nextcloud.log output during test execution
- **Important**: steps with OCC command outputs (even with `-v`) don't appear in Behat output but are logged to `nextcloud.log`
- Running all integration tests is extremely slow and resource-intensive

**Frontend Testing**:
```bash
npm test # Jest tests
Expand Down
172 changes: 102 additions & 70 deletions composer.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace OCA\Libresign;

use OCA\Libresign\Service\EnvelopeService;
use OCA\Libresign\Service\SignatureTextService;
use OCA\Libresign\Service\SignerElementsService;
use OCP\App\IAppManager;
Expand All @@ -25,6 +26,7 @@ public function __construct(
protected SignerElementsService $signerElementsService,
protected SignatureTextService $signatureTextService,
protected IAppManager $appManager,
protected EnvelopeService $envelopeService,
) {
}

Expand All @@ -45,6 +47,9 @@ public function getCapabilities(): array {
'signature-width' => $this->signatureTextService->getSignatureWidth(),
'signature-height' => $this->signatureTextService->getSignatureHeight(),
],
'envelope' => [
'is-available' => $this->envelopeService->isEnabled(),
],
],
'version' => $this->appManager->getAppVersion('libresign'),
];
Expand Down
Loading
Loading