chore(cat-voices): Merge `main` into `feat/face-performance-optimization-3352` (#3953)
* feat(cat-voices): sync with gateway v2 endpoints (#3602)
* feat(cat-voices): Add Dio client (#3570)
* feat: Add Dio client
* fix format-check
* refactor
* Remove contentType header from "status" Dio client, update project.dic
* Disable cSpell for ComponentStatus enum clean up project.dic
* feat(cat-voices): update signed document according to v0.0.4 specs (#3550)
* feat: migrate to spec v004
* chore: cleanup
* chore: remove election ID, cleanup code
* refactor: use parameters instead of category ID
* feat: migrate to parameters
* feat: migrate from categoryId to document parameters
* feat: migrate json
* chore: add test for parameters migration
* feat: filter by proposals
* feat: handle DB and signed document migration
* chore: cleanup
* feat: cbor migration
* docs: move to readme
* feat: add tests
* chore: update documents
* chore: lints
* chore: cleanup
* feat: collabs migration
* chore: docs, cleanup
* style: formatting
* refactor: cleanup
* refactor: migrate collaborators to catalyst kid
* refactor: migrate section to SectionRef
* refactor: code review changes, add more custom types
* chore: rename categoryId => categoryRef
* refactor: make document type singular
* chore: cleanup
* chore: revert unit tests
* feat(cat-voices): update signed document according to v0.0.4 spec - review changes (#3577)
* feat: migrate to spec v004
* chore: cleanup
* chore: remove election ID, cleanup code
* refactor: use parameters instead of category ID
* feat: migrate to parameters
* feat: migrate from categoryId to document parameters
* feat: migrate json
* chore: add test for parameters migration
* feat: filter by proposals
* feat: handle DB and signed document migration
* chore: cleanup
* feat: cbor migration
* docs: move to readme
* feat: add tests
* chore: update documents
* chore: lints
* chore: cleanup
* feat: collabs migration
* chore: docs, cleanup
* style: formatting
* refactor: cleanup
* refactor: migrate collaborators to catalyst kid
* refactor: migrate section to SectionRef
* refactor: code review changes, add more custom types
* chore: rename categoryId => categoryRef
* refactor: make document type singular
* chore: cleanup
* chore: revert unit tests
* Revert "chore: revert unit tests"
This reverts commit e410530f15b0d379d1bfc7e80845306858d27f78.
* chore: add cose content encoding and cose media type
* refactor: rename categoryId to categoryRef
* chore: clean spelling list
* feat(cat-voices): Remove Chopper and code generation scripts (#3573)
* feat: remove chopper and code generation scripts
* remove cat status OpenAPI json
* chore: clean up
* chore: back to previous catalyst_voices/README.md structure and remove just one line
* feat(cat-voices): Migrate document index to v2 endpoint (#3599)
* feat: Migrate document index to v2 endpoint
* Update catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_gateway_service.dart
Co-authored-by: Dominik Toton <[email protected]>
* Update catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/dio_cat_gateway_service.dart
Co-authored-by: Dominik Toton <[email protected]>
* chore: Simplify comments in API models
---------
Co-authored-by: Dominik Toton <[email protected]>
* feat(cat-voices): Migrate `rbac` endpoints to v2 (#3596)
* feat: Migrate RBAC endpoint to v2
* feat: enhance RBAC DTOs and add PEM handling for X509 certificates
* chore: disable cspell in x509 certificate test
* refactor: Remove Json typedef and move CertificateType
* refactor(cat-voices): Centralize signed document metadata creation (#3609)
* feat: add content type
* refactor: remove signed document metadata in favor of document data metadata
* refactor: centralize parameters
* refactor: cleanup
* chore: add more test assertions
* chore: cleanup
* fix: migration test
* feat(cat-voices): Update stakeAssets endpoint to v2 (#3621)
* chore(cat-voices): upgrade build runner (#3733)
* chore: Upgrade dependencies
* remove build_runner log-performance
* add to melos flutter clean
* feat(cat-voices): expose collaborators in metadata (#3750)
* Add collaborators to DocumentDataMetadata and add mapper
* update DTO
* fix: failing tests
* fix: spelling
* feat(cat-voices): dynamic templates refs (#3757)
* remove const template refs
* use isInCategoryList
* fix: main merge
* feat(cat-voices): Update Catalyst Gateway API to v0.9.0 (#3753)
* Update Catalyst Gateway API to v0.8.0
* replace EqOrRanged models with Selector models
* update Catalyst Gateway API to v0.9.0
* feat(cat-voices): sort cbor list deterministically (#3830)
* fix(cat-voices): failing unit tests in sync-with-gateway-v2-endpoints (#3868)
* fix: unit tests
* fix: move test data into dart files to avoid using File api on web platform
* fix: remove unused code
* fix: disable unit tests on web which cannot run there due to drift limitations
* feat(cat-voices): requests retry policy (#3869)
* feat: add retry interceptor
* fix: retry interceptor needs itself as interceptor in it's dio
* chore: cleanup
* fix: tests
* make some RBAC registration response data fields nullable (#3883)
* feat(cat-voices): dynamic f15 campaign (#3886)
* feat: fetch comment template from the database
* feat: sync only active campaign documents
* feat: dynamic f15 campaign
* fix: missing campaign check
* chore: add dynamic f15 categories
* fix: campaign id
* chore: set f15 campaign as active
* feat: treat documents as const for f15 and as dynamic for dynamic F15 campaign
* feat(cat-voices): document id and ver freshness (#3915)
* feat: generate new id for document draft when it's the first document to retain freshness and have the same id and ver
* chore: reformat
* chore: unit tests
* fix: tests
* chore: code review changes
* fix(cat-voices): test signed docs v2 against live gateway (#3921)
* fix: content type migration, change Content-Encoding into content-encoding
* fix: make sure proposal has signed document ref before publishing
* chore: add dynamic next fund campaign, categories and timeline
* chore: reformat
* chore: add more dynamic categories for the next fund
* feat: add custom document locator map
* fix: assertion
* refactor: rename nextFund to fx
* active campaign filter (#3925)
* fix(cat-voices): do not retry direct auth (#3926)
* do not retry auth in interceptor when direct authentication is provided
* fix auth interceptor tests
---------
Co-authored-by: Bartek Stoliński <[email protected]>
Co-authored-by: Dominik Toton <[email protected]>
Co-authored-by: Dominik Toton <[email protected]>
* part 2
* part 3
* bring back project.dic
* cleanup
* Update timeline
* chore: remove prints
---------
Co-authored-by: Bartek Stoliński <[email protected]>
Co-authored-by: Dominik Toton <[email protected]>
Co-authored-by: Dominik Toton <[email protected]>