@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
57 lines • 2.17 kB
TypeScript
/**
* The schemas of the socket host's recovery and admission records (senpi#4272): pages under a checkpoint token or an
* event lease, the lease receipt, and the attempt cancel and stream reset. Each names its own required `admissionId`.
*/
import Type from "typebox";
export declare const RECOVERY_RECORD_SCHEMAS: {
get_recovery_page: Type.TUnion<[Type.TObject<{
id: Type.TOptional<Type.TString>;
type: Type.TLiteral<"get_recovery_page">;
sessionId: Type.TOptional<Type.TString>;
} & {
readonly token: Type.TString;
readonly admissionId: Type.TString;
readonly componentRef: Type.TString;
readonly requestId: Type.TString;
readonly cursor: Type.TOptional<Type.TString>;
}>, Type.TObject<{
id: Type.TOptional<Type.TString>;
type: Type.TLiteral<"get_recovery_page">;
sessionId: Type.TOptional<Type.TString>;
} & {
readonly lease: Type.TObject<{
kind: Type.TUnion<[Type.TLiteral<string>, ...Type.TLiteral<string>[]]>;
id: Type.TString;
}>;
readonly admissionId: Type.TString;
readonly componentRef: Type.TString;
readonly requestId: Type.TString;
readonly cursor: Type.TOptional<Type.TString>;
}>]>;
release_recovery: Type.TObject<{
id: Type.TOptional<Type.TString>;
type: Type.TLiteral<"release_recovery">;
sessionId: Type.TOptional<Type.TString>;
} & {
readonly lease: Type.TObject<{
kind: Type.TLiteral<"event">;
id: Type.TString;
}>;
readonly admissionId: Type.TString;
}>;
cancel_attempt: Type.TObject<{
id: Type.TOptional<Type.TString>;
type: Type.TLiteral<"cancel_attempt">;
sessionId: Type.TOptional<Type.TString>;
} & {
readonly admissionId: Type.TString;
}>;
reset_stream: Type.TObject<{
id: Type.TOptional<Type.TString>;
type: Type.TLiteral<"reset_stream">;
sessionId: Type.TOptional<Type.TString>;
} & {
readonly admissionId: Type.TString;
}>;
};
//# sourceMappingURL=method-classes-schema-recovery.d.ts.map