bae705aa97
- Add NFC ePassport roadmap (ICAO 9303, eIDAS) - Add TensorFlow.js edge face detection (BlazeFace) - Add structured audit logger (GDPR-compliant) - Risk scoring support Part of KYC Apple Native UX v1.1.0
29 lines
657 B
TypeScript
29 lines
657 B
TypeScript
import { StatusObject } from './call-interface';
|
|
import { Status } from './constants';
|
|
import { Metadata } from './metadata';
|
|
/**
|
|
* A builder for gRPC status objects.
|
|
*/
|
|
export declare class StatusBuilder {
|
|
private code;
|
|
private details;
|
|
private metadata;
|
|
constructor();
|
|
/**
|
|
* Adds a status code to the builder.
|
|
*/
|
|
withCode(code: Status): this;
|
|
/**
|
|
* Adds details to the builder.
|
|
*/
|
|
withDetails(details: string): this;
|
|
/**
|
|
* Adds metadata to the builder.
|
|
*/
|
|
withMetadata(metadata: Metadata): this;
|
|
/**
|
|
* Builds the status object.
|
|
*/
|
|
build(): Partial<StatusObject>;
|
|
}
|