Release/4.5.1#412
Conversation
* SDK-2795-php-upgrade-to-protobuf-4-33-6-and-phpseclib-3-0-50
…d from the idv pages (#409) * SDK-2791-php-add-support-for-retrieving-the-extraction-image-ids-field-from-the-idv-pages * Update README.md
* SDK-2742-php-expose-idv-breakdown-process-property
) * SDK-2215 allow rb to supply an applicant profile for identity profile sessions * SDK-2296 added allow rb to fetch application profile from get sessions * Add missing @throws DateTimeException annotations
(cherry picked from commit eebbb19)
There was a problem hiding this comment.
Pull request overview
Release branch changes for the 4.5.x line: raises minimum supported PHP version, upgrades security-sensitive dependencies, and adds several Doc Scan SDK response fields + session-creation resources support.
Changes:
- Require PHP 8.1+, upgrade
google/protobufto^4.33.6andphpseclib/phpseclibto^3.0.50, and update CI to test PHP 8.1–8.4. - Add new retrieval fields/APIs: task
recommendation, pageextraction_image_ids, breakdownprocess, and sessionapplicant_profilesresource parsing. - Add session-creation support for
resources.applicant_profile(builder + model), including structured postal address.
Reviewed changes
Copilot reviewed 33 out of 34 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/DocScan/Session/Retrieve/TaskResponseTest.php | Adds coverage for deserializing task-level recommendation. |
| tests/DocScan/Session/Retrieve/TaskRecommendationResponseTest.php | New unit tests for TaskRecommendationResponse. |
| tests/DocScan/Session/Retrieve/TaskRecommendationReasonResponseTest.php | New unit tests for TaskRecommendationReasonResponse. |
| tests/DocScan/Session/Retrieve/ResourceContainerTest.php | Adds tests for parsing applicant_profiles resources. |
| tests/DocScan/Session/Retrieve/PageResponseTest.php | Adds tests for extraction_image_ids field handling. |
| tests/DocScan/Session/Retrieve/Configuration/SessionConfigurationResponseTest.php | Updates suppressed screen identifier constants in tests. |
| tests/DocScan/Session/Retrieve/BreakdownResponseTest.php | Adds test coverage for breakdown process. |
| tests/DocScan/Session/Retrieve/ApplicantProfileResourceResponseTest.php | New unit tests for applicant profile resource response parsing. |
| tests/DocScan/Session/Create/StructuredPostalAddressBuilderTest.php | New unit tests for structured postal address builder/model. |
| tests/DocScan/Session/Create/SessionSpecificationBuilderTest.php | Adds tests for setting/serializing resources in session spec. |
| tests/DocScan/Session/Create/SdkConfigBuilderTest.php | Updates suppressed screen identifier constants in tests. |
| tests/DocScan/Session/Create/ResourceCreationContainerBuilderTest.php | New tests for building/serializing resources.applicant_profile. |
| tests/DocScan/Session/Create/ApplicantProfileBuilderTest.php | New tests for applicant profile builder/model serialization. |
| src/DocScan/Session/Retrieve/TaskResponse.php | Adds recommendation parsing + getter. |
| src/DocScan/Session/Retrieve/TaskRecommendationResponse.php | New response model for task recommendation. |
| src/DocScan/Session/Retrieve/TaskRecommendationReasonResponse.php | New response model for recommendation.reason. |
| src/DocScan/Session/Retrieve/ResourceContainer.php | Adds parsing/accessor for applicant_profiles. |
| src/DocScan/Session/Retrieve/PageResponse.php | Adds extraction_image_ids parsing + getter. |
| src/DocScan/Session/Retrieve/BreakdownResponse.php | Adds breakdown process field + getter. |
| src/DocScan/Session/Retrieve/ApplicantProfileResourceResponse.php | New resource response type for applicant profiles (media + timestamps). |
| src/DocScan/Session/Create/StructuredPostalAddressBuilder.php | New builder for structured postal address in session creation. |
| src/DocScan/Session/Create/StructuredPostalAddress.php | New structured postal address model + JSON serialization. |
| src/DocScan/Session/Create/SessionSpecificationBuilder.php | Adds withResources() and passes resources into SessionSpecification. |
| src/DocScan/Session/Create/SessionSpecification.php | Adds resources field to session spec serialization + getter. |
| src/DocScan/Session/Create/ResourceCreationContainerBuilder.php | New builder for session creation resources. |
| src/DocScan/Session/Create/ResourceCreationContainer.php | New model for session creation resources JSON payload. |
| src/DocScan/Session/Create/ApplicantProfileBuilder.php | New builder for session creation applicant profile. |
| src/DocScan/Session/Create/ApplicantProfile.php | New applicant profile model + JSON serialization. |
| src/Constants.php | Bumps SDK version constant. |
| examples/doc-scan/app/Http/Controllers/HomeController.php | Updates example comments/identifiers for suppressed screens. |
| composer.json | Updates SDK version, PHP requirement, and dependency versions. |
| README.md | Updates PHP requirements and install instructions/version. |
| .gitignore | Ignores .claude/ directory. |
| .github/workflows/tests.yaml | Updates test matrix to PHP 8.1–8.4 and tweaks job definitions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot resolve the merge conflicts in this pull request |
…ions Co-authored-by: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com>
Resolved the merge conflicts in commit
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 31 out of 31 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add UI block to display extraction image IDs for each page of ID documents
and supplementary documents on the success view. Each ID is rendered as a
link to the existing /media/{id} route so the image can be opened directly
for QA verification.
Release 4.5.1
Breaking Changes
(Sdk 2795 php upgrade to protobuf 4 33 6 and phpseclib 3 0 50 #408)
Security Fixes
negative varints or deep recursion (GHSA-p2gh-cfq4-4wjc, HIGH) (Sdk 2795 php upgrade to protobuf 4 33 6 and phpseclib 3 0 50 #408)
(CVE-2026-32935, MEDIUM) (Sdk 2795 php upgrade to protobuf 4 33 6 and phpseclib 3 0 50 #408)
New Features
PageResponse::getExtractionImageIds()exposes which media wasused for automated data extraction on IDV document pages (Sdk 2791 php add support for retrieving the extraction image ids field from the idv pages #409)
BreakdownResponse::getProcess()exposes the breakdown processtype (
AUTOMATED/EXPERT_REVIEW) (Sdk 2742 php expose idv breakdown process property #410)TaskResponse::getRecommendation()deserializes task-levelrecommendation data including value, reason, and detail (SDK-2793-php-task-response-recommandation added #404)
address) when creating Identity Profile sessions via
SessionSpecificationBuilder(SDK-2215 allow rb to supply an applicant profile for identity profile… #405)GetSessionResultnow deserializesapplicant_profilesfrom session resources, exposing media, timestamps, and tasks (Sdk 2296 php allow rb to fetch applicant profile from get sessions #406)
PRs Included