import { l } from '@atproto/lex'; import * as RepoDefs from './defs.defs.js'; declare const $nsid = "com.atproto.repo.applyWrites"; export { $nsid }; /** Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS. */ declare const main: l.Procedure<"com.atproto.repo.applyWrites", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{ repo: l.StringSchema<{ readonly format: "at-identifier"; }>; validate: l.OptionalSchema; writes: l.ArraySchema>, l.TypedRefSchema>, l.TypedRefSchema>], true>>; swapCommit: l.OptionalSchema>; }>>, l.Payload<"application/json", l.ObjectSchema<{ commit: l.OptionalSchema>>; results: l.OptionalSchema>, l.TypedRefSchema>, l.TypedRefSchema>], true>>>; }>>, readonly ["InvalidSwap"]>; export { main }; export type $Params = l.InferMethodParams; export type $Input = l.InferMethodInput; export type $InputBody = l.InferMethodInputBody; export type $Output = l.InferMethodOutput; export type $OutputBody = l.InferMethodOutputBody; export declare const $lxm: "com.atproto.repo.applyWrites", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{ repo: l.StringSchema<{ readonly format: "at-identifier"; }>; validate: l.OptionalSchema; writes: l.ArraySchema>, l.TypedRefSchema>, l.TypedRefSchema>], true>>; swapCommit: l.OptionalSchema>; }>>, $output: l.Payload<"application/json", l.ObjectSchema<{ commit: l.OptionalSchema>>; results: l.OptionalSchema>, l.TypedRefSchema>, l.TypedRefSchema>], true>>>; }>>; /** Operation which creates a new record. */ type Create = { $type?: 'com.atproto.repo.applyWrites#create'; collection: l.NsidString; /** * NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. */ rkey?: l.RecordKeyString; value: l.LexMap; }; export type { Create }; /** Operation which creates a new record. */ declare const create: l.TypedObjectSchema<"com.atproto.repo.applyWrites#create", l.Validator>; export { create }; /** Operation which updates an existing record. */ type Update = { $type?: 'com.atproto.repo.applyWrites#update'; collection: l.NsidString; rkey: l.RecordKeyString; value: l.LexMap; }; export type { Update }; /** Operation which updates an existing record. */ declare const update: l.TypedObjectSchema<"com.atproto.repo.applyWrites#update", l.Validator>; export { update }; /** Operation which deletes an existing record. */ type Delete$0 = { $type?: 'com.atproto.repo.applyWrites#delete'; collection: l.NsidString; rkey: l.RecordKeyString; }; export type { Delete$0 as Delete }; /** Operation which deletes an existing record. */ declare const delete$0: l.TypedObjectSchema<"com.atproto.repo.applyWrites#delete", l.Validator>; export { delete$0 as 'delete' }; type CreateResult = { $type?: 'com.atproto.repo.applyWrites#createResult'; uri: l.AtUriString; cid: l.CidString; validationStatus?: 'valid' | 'unknown' | l.UnknownString; }; export type { CreateResult }; declare const createResult: l.TypedObjectSchema<"com.atproto.repo.applyWrites#createResult", l.Validator>; export { createResult }; type UpdateResult = { $type?: 'com.atproto.repo.applyWrites#updateResult'; uri: l.AtUriString; cid: l.CidString; validationStatus?: 'valid' | 'unknown' | l.UnknownString; }; export type { UpdateResult }; declare const updateResult: l.TypedObjectSchema<"com.atproto.repo.applyWrites#updateResult", l.Validator>; export { updateResult }; type DeleteResult = { $type?: 'com.atproto.repo.applyWrites#deleteResult'; }; export type { DeleteResult }; declare const deleteResult: l.TypedObjectSchema<"com.atproto.repo.applyWrites#deleteResult", l.Validator>; export { deleteResult }; //# sourceMappingURL=applyWrites.defs.d.ts.map