Skip to content

Add capture_type property to StaticLivenessResourceResponse#524

Draft
Copilot wants to merge 2 commits into
feature/SDK-2775-DotNet-add-support-for-new-capture-type-property-on-static-liveness-resourcesfrom
copilot/sub-pr-523
Draft

Add capture_type property to StaticLivenessResourceResponse#524
Copilot wants to merge 2 commits into
feature/SDK-2775-DotNet-add-support-for-new-capture-type-property-on-static-liveness-resourcesfrom
copilot/sub-pr-523

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 5, 2026

Exposes the capture_type field from Static Liveness resources when fetching session data.

Changes

  • StaticLivenessResourceResponse: Added CaptureType property with JSON mapping to capture_type
  • Tests: Added deserialization test and Static liveness type test case

Usage

// When deserializing session data with static liveness resources
GetSessionResult result = JsonConvert.DeserializeObject<GetSessionResult>(json);
var staticLiveness = result.Resources.LivenessCapture.Single() as StaticLivenessResourceResponse;

// capture_type is now accessible
string captureType = staticLiveness.CaptureType;  // e.g., "SELFIE"

The property follows existing patterns in the codebase and maintains backward compatibility as an optional field.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for capture_type property in Static Liveness resources Add capture_type property to StaticLivenessResourceResponse Feb 5, 2026
Copilot AI requested a review from mehmet-yoti February 5, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants