import { Result, URI } from "@adviser/cement"; import { NextId, MsgBase, MsgWithError, ReqSignedUrlParam, GwCtx, MsgTypesCtx, PreSignedMsg, MsgWithConn } from "./msg-types.js"; import { z } from "zod/v4"; export declare function buildReqGetData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqGetData; export declare function MsgIsReqGetData(msg: MsgBase): msg is ReqGetData; export declare function MsgIsResGetData(msg: MsgBase): msg is ResGetData; export interface CalculatePreSignedUrl { calculatePreSignedUrl(ctx: MsgTypesCtx, p: PreSignedMsg): Promise>; } export declare function buildResGetData(msgCtx: MsgTypesCtx, req: MsgWithConn, ctx: CalculatePreSignedUrl): Promise>; export declare function MsgIsReqPutData(msg: MsgBase): msg is ReqPutData; export declare function buildReqPutData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqPutData; export declare function MsgIsResPutData(msg: MsgBase): msg is ResPutData; export declare function buildResPutData(msgCtx: MsgTypesCtx, req: MsgWithConn, ctx: CalculatePreSignedUrl): Promise>; export declare function MsgIsReqDelData(msg: MsgBase): msg is ReqDelData; export declare function buildReqDelData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqDelData; export declare function MsgIsResDelData(msg: MsgBase): msg is ResDelData; export declare function buildResDelData(msgCtx: MsgTypesCtx, req: MsgWithConn, ctx: CalculatePreSignedUrl): Promise>; export declare const ReqGetDataSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; signedUrl: z.ZodString; type: z.ZodLiteral<"reqGetData">; }, z.core.$strip>; export type ReqGetData = z.infer; export declare const ResGetDataSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; signedUrl: z.ZodString; type: z.ZodLiteral<"resGetData">; }, z.core.$strip>; export type ResGetData = z.infer; export declare const ReqPutDataSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; signedUrl: z.ZodString; type: z.ZodLiteral<"reqPutData">; }, z.core.$strip>; export type ReqPutData = z.infer; export declare const ResPutDataSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; signedUrl: z.ZodString; type: z.ZodLiteral<"resPutData">; }, z.core.$strip>; export type ResPutData = z.infer; export declare const ReqDelDataSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; signedUrl: z.ZodString; type: z.ZodLiteral<"reqDelData">; }, z.core.$strip>; export type ReqDelData = z.infer; export declare const ResDelDataSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; signedUrl: z.ZodString; type: z.ZodLiteral<"resDelData">; }, z.core.$strip>; export type ResDelData = z.infer;