···44 @doc("Indicates that the 'swapCommit' parameter did not match current commit.")
55 model InvalidSwap {}
6677- @closed
88- union Write {
99- Create,
1010- Update,
1111- Delete,
1212- }
1313-1414- @closed
1515- union Result {
1616- CreateResult,
1717- UpdateResult,
1818- DeleteResult,
1919- }
2020-217 @doc("Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.")
228 @procedure
239 @errors(InvalidSwap)
···3016 validate?: boolean;
31173218 @required
3333- writes: Write[];
1919+ writes: Closed<Create | Update | Delete>[];
34203521 @doc("If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.")
3622 swapCommit?: cid;
3723 }): {
3824 commit?: com.atproto.repo.defs.CommitMeta;
3939-4040- results?: Result[];
2525+ results?: Closed<CreateResult | UpdateResult | DeleteResult>[];
4126 };
42274328 @doc("Operation which creates a new record.")
···1010 validate = _validate
1111const id = 'app.example.follow'
12121313-/** A follow relationship */
1413export interface Record {
1514 $type: 'app.example.follow'
1615 /** DID of the account being followed */
-1
packages/example/src/types/app/example/like.ts
···1111 validate = _validate
1212const id = 'app.example.like'
13131414-/** A like on a post */
1514export interface Record {
1615 $type: 'app.example.like'
1716 subject: AppExampleDefs.PostRef
-1
packages/example/src/types/app/example/post.ts
···1111 validate = _validate
1212const id = 'app.example.post'
13131414-/** A post in the feed */
1514export interface Record {
1615 $type: 'app.example.post'
1716 /** Post text content */
-1
packages/example/src/types/app/example/profile.ts
···1010 validate = _validate
1111const id = 'app.example.profile'
12121313-/** User profile information */
1413export interface Record {
1514 $type: 'app.example.profile'
1615 /** Display name */
-1
packages/example/src/types/app/example/repost.ts
···1111 validate = _validate
1212const id = 'app.example.repost'
13131414-/** A repost of another post */
1514export interface Record {
1615 $type: 'app.example.repost'
1716 subject: AppExampleDefs.PostRef