Skip to content

fix spread for face #29706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions specification/ai/Face/models.common.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,14 @@ model FaceError {
}

model FaceErrorResponse is Azure.Core.Foundations.ErrorResponseBase<FaceError>;

alias BodyParameter<
T,
TName extends valueof string = "body",
TDoc extends valueof string = "Body parameter."
> = {
@doc(TDoc)
@friendlyName(TName)
@bodyRoot
body: T;
};
11 changes: 11 additions & 0 deletions specification/ai/Face/models.session.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -279,3 +279,14 @@ model CreateLivenessWithVerifySessionContent {
@doc("The image stream for verify. Content-Disposition header field for this part must have filename.")
VerifyImage: bytes;
}

@doc("Request wrapper of liveness with verify session creation.")
model CreateLivenessWithVerifySessionRequest {
@doc("The content type for the operation. Always multipart/form-data for this operation.")
@header("content-type")
contentType: "multipart/form-data";

@doc("Request content of liveness with verify session creation.")
@body
body: CreateLivenessWithVerifySessionContent;
}
6 changes: 3 additions & 3 deletions specification/ai/Face/routes.session.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ interface LivenessSessionOperations {
@returnsDoc(SessionCreationSuccess)
createLivenessSession is FaceResourceCreateWithServiceProvidedName<
LivenessSession,
CreateLivenessSessionContent,
BodyParameter<CreateLivenessSessionContent>,
CreateLivenessSessionResult
>;

Expand Down Expand Up @@ -106,7 +106,7 @@ interface LivenessSessionOperations {
@sharedRoute
createLivenessWithVerifySessionWithVerifyImage is FaceResourceCreateWithServiceProvidedName<
LivenessWithVerifySession,
CreateLivenessWithVerifySessionContent,
CreateLivenessWithVerifySessionRequest,
CreateLivenessWithVerifySessionResult
>;

Expand All @@ -124,7 +124,7 @@ interface LivenessSessionOperations {
@sharedRoute
createLivenessWithVerifySession is FaceResourceCreateWithServiceProvidedName<
LivenessWithVerifySession,
CreateLivenessSessionContent,
BodyParameter<CreateLivenessSessionContent>,
CreateLivenessWithVerifySessionResult
>;

Expand Down
Loading