@atproto/api 0.32.11 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3608,6 +3608,11 @@ export declare const schemaDict: {
3608
3608
  readonly type: 'string';
3609
3609
  readonly format: 'datetime';
3610
3610
  };
3611
+ readonly editedAt: {
3612
+ readonly type: 'string';
3613
+ readonly format: 'datetime';
3614
+ readonly description: 'Present if the record has been edited. Timestamp when the current version of the record was indexed. indexedAt is unchanged by edits.';
3615
+ };
3611
3616
  };
3612
3617
  };
3613
3618
  readonly viewNotFound: {
@@ -3824,6 +3829,11 @@ export declare const schemaDict: {
3824
3829
  readonly type: 'string';
3825
3830
  readonly format: 'datetime';
3826
3831
  };
3832
+ readonly editedAt: {
3833
+ readonly type: 'string';
3834
+ readonly format: 'datetime';
3835
+ readonly description: 'Present if the post has been edited. Timestamp when the version of the post in this view was indexed. indexedAt is unchanged by edits.';
3836
+ };
3827
3837
  readonly viewer: {
3828
3838
  readonly type: 'ref';
3829
3839
  readonly ref: 'lex:app.bsky.feed.defs#viewerState';
@@ -4936,6 +4946,51 @@ export declare const schemaDict: {
4936
4946
  };
4937
4947
  };
4938
4948
  };
4949
+ readonly AppBskyFeedGetPostVersions: {
4950
+ readonly lexicon: 1;
4951
+ readonly id: 'app.bsky.feed.getPostVersions';
4952
+ readonly defs: {
4953
+ readonly main: {
4954
+ readonly type: 'query';
4955
+ readonly description: 'Get the version history of a post. Only versions the AppView accepted as valid edits are included.';
4956
+ readonly parameters: {
4957
+ readonly type: 'params';
4958
+ readonly required: ["uri"];
4959
+ readonly properties: {
4960
+ readonly uri: {
4961
+ readonly type: 'string';
4962
+ readonly format: 'at-uri';
4963
+ readonly description: 'Reference (AT-URI) of post record';
4964
+ };
4965
+ };
4966
+ };
4967
+ readonly output: {
4968
+ readonly encoding: 'application/json';
4969
+ readonly schema: {
4970
+ readonly type: 'object';
4971
+ readonly required: ["uri", "versions"];
4972
+ readonly properties: {
4973
+ readonly uri: {
4974
+ readonly type: 'string';
4975
+ readonly format: 'at-uri';
4976
+ };
4977
+ readonly versions: {
4978
+ readonly type: 'array';
4979
+ readonly description: "Versions of the post, newest first. Includes the current version, so an unedited post has a single entry. Each view describes the version at its CID: counts and viewer state are scoped to that CID, editedAt is when that version was indexed (absent on the original), and indexedAt is the original post's.";
4980
+ readonly items: {
4981
+ readonly type: 'ref';
4982
+ readonly ref: 'lex:app.bsky.feed.defs#postView';
4983
+ };
4984
+ };
4985
+ };
4986
+ };
4987
+ };
4988
+ readonly errors: [{
4989
+ readonly name: 'NotFound';
4990
+ }];
4991
+ };
4992
+ };
4993
+ };
4939
4994
  readonly AppBskyFeedGetPosts: {
4940
4995
  readonly lexicon: 1;
4941
4996
  readonly id: 'app.bsky.feed.getPosts';
@@ -34710,6 +34765,11 @@ export declare const schemas: ({
34710
34765
  readonly type: 'string';
34711
34766
  readonly format: 'datetime';
34712
34767
  };
34768
+ readonly editedAt: {
34769
+ readonly type: 'string';
34770
+ readonly format: 'datetime';
34771
+ readonly description: 'Present if the record has been edited. Timestamp when the current version of the record was indexed. indexedAt is unchanged by edits.';
34772
+ };
34713
34773
  };
34714
34774
  };
34715
34775
  readonly viewNotFound: {
@@ -34923,6 +34983,11 @@ export declare const schemas: ({
34923
34983
  readonly type: 'string';
34924
34984
  readonly format: 'datetime';
34925
34985
  };
34986
+ readonly editedAt: {
34987
+ readonly type: 'string';
34988
+ readonly format: 'datetime';
34989
+ readonly description: 'Present if the post has been edited. Timestamp when the version of the post in this view was indexed. indexedAt is unchanged by edits.';
34990
+ };
34926
34991
  readonly viewer: {
34927
34992
  readonly type: 'ref';
34928
34993
  readonly ref: 'lex:app.bsky.feed.defs#viewerState';
@@ -36022,6 +36087,50 @@ export declare const schemas: ({
36022
36087
  }];
36023
36088
  };
36024
36089
  };
36090
+ } | {
36091
+ readonly lexicon: 1;
36092
+ readonly id: 'app.bsky.feed.getPostVersions';
36093
+ readonly defs: {
36094
+ readonly main: {
36095
+ readonly type: 'query';
36096
+ readonly description: 'Get the version history of a post. Only versions the AppView accepted as valid edits are included.';
36097
+ readonly parameters: {
36098
+ readonly type: 'params';
36099
+ readonly required: ["uri"];
36100
+ readonly properties: {
36101
+ readonly uri: {
36102
+ readonly type: 'string';
36103
+ readonly format: 'at-uri';
36104
+ readonly description: 'Reference (AT-URI) of post record';
36105
+ };
36106
+ };
36107
+ };
36108
+ readonly output: {
36109
+ readonly encoding: 'application/json';
36110
+ readonly schema: {
36111
+ readonly type: 'object';
36112
+ readonly required: ["uri", "versions"];
36113
+ readonly properties: {
36114
+ readonly uri: {
36115
+ readonly type: 'string';
36116
+ readonly format: 'at-uri';
36117
+ };
36118
+ readonly versions: {
36119
+ readonly type: 'array';
36120
+ readonly description: "Versions of the post, newest first. Includes the current version, so an unedited post has a single entry. Each view describes the version at its CID: counts and viewer state are scoped to that CID, editedAt is when that version was indexed (absent on the original), and indexedAt is the original post's.";
36121
+ readonly items: {
36122
+ readonly type: 'ref';
36123
+ readonly ref: 'lex:app.bsky.feed.defs#postView';
36124
+ };
36125
+ };
36126
+ };
36127
+ };
36128
+ };
36129
+ readonly errors: [{
36130
+ readonly name: 'NotFound';
36131
+ }];
36132
+ };
36133
+ };
36025
36134
  } | {
36026
36135
  readonly lexicon: 1;
36027
36136
  readonly id: 'app.bsky.feed.getPosts';
@@ -61895,6 +62004,7 @@ export declare const ids: {
61895
62004
  readonly AppBskyFeedGetLikes: 'app.bsky.feed.getLikes';
61896
62005
  readonly AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed';
61897
62006
  readonly AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread';
62007
+ readonly AppBskyFeedGetPostVersions: 'app.bsky.feed.getPostVersions';
61898
62008
  readonly AppBskyFeedGetPosts: 'app.bsky.feed.getPosts';
61899
62009
  readonly AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes';
61900
62010
  readonly AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy';