@atproto/bsky 0.0.210 → 0.0.211

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.
Files changed (216) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE.txt +1 -1
  3. package/dist/api/app/bsky/draft/createDraft.d.ts +4 -0
  4. package/dist/api/app/bsky/draft/createDraft.d.ts.map +1 -0
  5. package/dist/api/app/bsky/draft/createDraft.js +38 -0
  6. package/dist/api/app/bsky/draft/createDraft.js.map +1 -0
  7. package/dist/api/app/bsky/draft/deleteDraft.d.ts +4 -0
  8. package/dist/api/app/bsky/draft/deleteDraft.d.ts.map +1 -0
  9. package/dist/api/app/bsky/draft/deleteDraft.js +19 -0
  10. package/dist/api/app/bsky/draft/deleteDraft.js.map +1 -0
  11. package/dist/api/app/bsky/draft/getDrafts.d.ts +4 -0
  12. package/dist/api/app/bsky/draft/getDrafts.d.ts.map +1 -0
  13. package/dist/api/app/bsky/draft/getDrafts.js +36 -0
  14. package/dist/api/app/bsky/draft/getDrafts.js.map +1 -0
  15. package/dist/api/app/bsky/draft/updateDraft.d.ts +4 -0
  16. package/dist/api/app/bsky/draft/updateDraft.d.ts.map +1 -0
  17. package/dist/api/app/bsky/draft/updateDraft.js +24 -0
  18. package/dist/api/app/bsky/draft/updateDraft.js.map +1 -0
  19. package/dist/api/app/bsky/feed/searchPosts.js +3 -3
  20. package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
  21. package/dist/api/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.d.ts.map +1 -1
  22. package/dist/api/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.js +9 -8
  23. package/dist/api/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.js.map +1 -1
  24. package/dist/api/app/bsky/unspecced/getPostThreadV2.js +1 -1
  25. package/dist/api/app/bsky/unspecced/getPostThreadV2.js.map +1 -1
  26. package/dist/api/app/bsky/unspecced/getSuggestedFeeds.d.ts.map +1 -1
  27. package/dist/api/app/bsky/unspecced/getSuggestedFeeds.js +3 -4
  28. package/dist/api/app/bsky/unspecced/getSuggestedFeeds.js.map +1 -1
  29. package/dist/api/app/bsky/unspecced/getSuggestedStarterPacks.d.ts.map +1 -1
  30. package/dist/api/app/bsky/unspecced/getSuggestedStarterPacks.js +9 -8
  31. package/dist/api/app/bsky/unspecced/getSuggestedStarterPacks.js.map +1 -1
  32. package/dist/api/app/bsky/unspecced/getSuggestedUsers.d.ts.map +1 -1
  33. package/dist/api/app/bsky/unspecced/getSuggestedUsers.js +37 -20
  34. package/dist/api/app/bsky/unspecced/getSuggestedUsers.js.map +1 -1
  35. package/dist/api/app/bsky/unspecced/getTrendingTopics.d.ts.map +1 -1
  36. package/dist/api/app/bsky/unspecced/getTrendingTopics.js +6 -2
  37. package/dist/api/app/bsky/unspecced/getTrendingTopics.js.map +1 -1
  38. package/dist/api/app/bsky/unspecced/getTrends.d.ts.map +1 -1
  39. package/dist/api/app/bsky/unspecced/getTrends.js +9 -8
  40. package/dist/api/app/bsky/unspecced/getTrends.js.map +1 -1
  41. package/dist/api/index.d.ts.map +1 -1
  42. package/dist/api/index.js +8 -0
  43. package/dist/api/index.js.map +1 -1
  44. package/dist/config.d.ts +6 -4
  45. package/dist/config.d.ts.map +1 -1
  46. package/dist/config.js +18 -21
  47. package/dist/config.js.map +1 -1
  48. package/dist/data-plane/bsync/index.js +38 -0
  49. package/dist/data-plane/bsync/index.js.map +1 -1
  50. package/dist/data-plane/server/db/database-schema.d.ts +2 -1
  51. package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
  52. package/dist/data-plane/server/db/database-schema.js.map +1 -1
  53. package/dist/data-plane/server/db/migrations/20260112T133951271Z-add-drafts.d.ts +4 -0
  54. package/dist/data-plane/server/db/migrations/20260112T133951271Z-add-drafts.d.ts.map +1 -0
  55. package/dist/data-plane/server/db/migrations/20260112T133951271Z-add-drafts.js +25 -0
  56. package/dist/data-plane/server/db/migrations/20260112T133951271Z-add-drafts.js.map +1 -0
  57. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  58. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  59. package/dist/data-plane/server/db/migrations/index.js +2 -1
  60. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  61. package/dist/data-plane/server/db/pagination.d.ts +9 -0
  62. package/dist/data-plane/server/db/pagination.d.ts.map +1 -1
  63. package/dist/data-plane/server/db/pagination.js +7 -1
  64. package/dist/data-plane/server/db/pagination.js.map +1 -1
  65. package/dist/data-plane/server/db/tables/draft.d.ts +12 -0
  66. package/dist/data-plane/server/db/tables/draft.d.ts.map +1 -0
  67. package/dist/data-plane/server/db/tables/draft.js +5 -0
  68. package/dist/data-plane/server/db/tables/draft.js.map +1 -0
  69. package/dist/data-plane/server/indexing/index.d.ts +2 -0
  70. package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
  71. package/dist/data-plane/server/indexing/index.js +2 -0
  72. package/dist/data-plane/server/indexing/index.js.map +1 -1
  73. package/dist/data-plane/server/indexing/plugins/germ-declaration.d.ts +7 -0
  74. package/dist/data-plane/server/indexing/plugins/germ-declaration.d.ts.map +1 -0
  75. package/dist/data-plane/server/indexing/plugins/germ-declaration.js +75 -0
  76. package/dist/data-plane/server/indexing/plugins/germ-declaration.js.map +1 -0
  77. package/dist/data-plane/server/routes/drafts.d.ts +6 -0
  78. package/dist/data-plane/server/routes/drafts.d.ts.map +1 -0
  79. package/dist/data-plane/server/routes/drafts.js +30 -0
  80. package/dist/data-plane/server/routes/drafts.js.map +1 -0
  81. package/dist/data-plane/server/routes/index.d.ts.map +1 -1
  82. package/dist/data-plane/server/routes/index.js +2 -0
  83. package/dist/data-plane/server/routes/index.js.map +1 -1
  84. package/dist/data-plane/server/routes/interactions.d.ts.map +1 -1
  85. package/dist/data-plane/server/routes/interactions.js +6 -0
  86. package/dist/data-plane/server/routes/interactions.js.map +1 -1
  87. package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
  88. package/dist/data-plane/server/routes/profile.js +5 -1
  89. package/dist/data-plane/server/routes/profile.js.map +1 -1
  90. package/dist/data-plane/server/routes/records.d.ts.map +1 -1
  91. package/dist/data-plane/server/routes/records.js +1 -0
  92. package/dist/data-plane/server/routes/records.js.map +1 -1
  93. package/dist/data-plane/server/util.d.ts +6 -6
  94. package/dist/feature-gates.d.ts +17 -14
  95. package/dist/feature-gates.d.ts.map +1 -1
  96. package/dist/feature-gates.js +67 -35
  97. package/dist/feature-gates.js.map +1 -1
  98. package/dist/hydration/actor.d.ts +5 -0
  99. package/dist/hydration/actor.d.ts.map +1 -1
  100. package/dist/hydration/actor.js +13 -0
  101. package/dist/hydration/actor.js.map +1 -1
  102. package/dist/hydration/hydrator.d.ts +1 -1
  103. package/dist/hydration/hydrator.d.ts.map +1 -1
  104. package/dist/hydration/hydrator.js +6 -1
  105. package/dist/hydration/hydrator.js.map +1 -1
  106. package/dist/index.js +3 -3
  107. package/dist/index.js.map +1 -1
  108. package/dist/lexicon/index.d.ts +18 -0
  109. package/dist/lexicon/index.d.ts.map +1 -1
  110. package/dist/lexicon/index.js +55 -1
  111. package/dist/lexicon/index.js.map +1 -1
  112. package/dist/lexicon/lexicons.d.ts +1156 -278
  113. package/dist/lexicon/lexicons.d.ts.map +1 -1
  114. package/dist/lexicon/lexicons.js +455 -2
  115. package/dist/lexicon/lexicons.js.map +1 -1
  116. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +19 -1
  117. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  118. package/dist/lexicon/types/app/bsky/actor/defs.js +18 -0
  119. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  120. package/dist/lexicon/types/app/bsky/draft/createDraft.d.ts +27 -0
  121. package/dist/lexicon/types/app/bsky/draft/createDraft.d.ts.map +1 -0
  122. package/dist/lexicon/types/app/bsky/draft/createDraft.js +7 -0
  123. package/dist/lexicon/types/app/bsky/draft/createDraft.js.map +1 -0
  124. package/dist/lexicon/types/app/bsky/draft/defs.d.ts +106 -0
  125. package/dist/lexicon/types/app/bsky/draft/defs.d.ts.map +1 -0
  126. package/dist/lexicon/types/app/bsky/draft/defs.js +97 -0
  127. package/dist/lexicon/types/app/bsky/draft/defs.js.map +1 -0
  128. package/dist/lexicon/types/app/bsky/draft/deleteDraft.d.ts +14 -0
  129. package/dist/lexicon/types/app/bsky/draft/deleteDraft.d.ts.map +1 -0
  130. package/dist/lexicon/types/app/bsky/draft/deleteDraft.js +7 -0
  131. package/dist/lexicon/types/app/bsky/draft/deleteDraft.js.map +1 -0
  132. package/dist/lexicon/types/app/bsky/draft/getDrafts.d.ts +24 -0
  133. package/dist/lexicon/types/app/bsky/draft/getDrafts.d.ts.map +1 -0
  134. package/dist/lexicon/types/app/bsky/draft/getDrafts.js +7 -0
  135. package/dist/lexicon/types/app/bsky/draft/getDrafts.js.map +1 -0
  136. package/dist/lexicon/types/app/bsky/draft/updateDraft.d.ts +15 -0
  137. package/dist/lexicon/types/app/bsky/draft/updateDraft.d.ts.map +1 -0
  138. package/dist/lexicon/types/app/bsky/draft/updateDraft.js +7 -0
  139. package/dist/lexicon/types/app/bsky/draft/updateDraft.js.map +1 -0
  140. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts +1 -1
  141. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.js.map +1 -1
  142. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts +1 -1
  143. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.js.map +1 -1
  144. package/dist/lexicon/types/com/germnetwork/declaration.d.ts +24 -0
  145. package/dist/lexicon/types/com/germnetwork/declaration.d.ts.map +1 -0
  146. package/dist/lexicon/types/com/germnetwork/declaration.js +27 -0
  147. package/dist/lexicon/types/com/germnetwork/declaration.js.map +1 -0
  148. package/dist/proto/bsky_connect.d.ts +22 -1
  149. package/dist/proto/bsky_connect.d.ts.map +1 -1
  150. package/dist/proto/bsky_connect.js +21 -0
  151. package/dist/proto/bsky_connect.js.map +1 -1
  152. package/dist/proto/bsky_pb.d.ts +119 -0
  153. package/dist/proto/bsky_pb.d.ts.map +1 -1
  154. package/dist/proto/bsky_pb.js +343 -5
  155. package/dist/proto/bsky_pb.js.map +1 -1
  156. package/dist/stash.d.ts +1 -0
  157. package/dist/stash.d.ts.map +1 -1
  158. package/dist/stash.js +1 -0
  159. package/dist/stash.js.map +1 -1
  160. package/dist/views/index.d.ts.map +1 -1
  161. package/dist/views/index.js +15 -3
  162. package/dist/views/index.js.map +1 -1
  163. package/package.json +10 -10
  164. package/proto/bsky.proto +39 -1
  165. package/src/api/app/bsky/draft/createDraft.ts +46 -0
  166. package/src/api/app/bsky/draft/deleteDraft.ts +19 -0
  167. package/src/api/app/bsky/draft/getDrafts.ts +46 -0
  168. package/src/api/app/bsky/draft/updateDraft.ts +26 -0
  169. package/src/api/app/bsky/feed/searchPosts.ts +4 -4
  170. package/src/api/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +10 -10
  171. package/src/api/app/bsky/unspecced/getPostThreadV2.ts +2 -2
  172. package/src/api/app/bsky/unspecced/getSuggestedFeeds.ts +4 -5
  173. package/src/api/app/bsky/unspecced/getSuggestedStarterPacks.ts +10 -10
  174. package/src/api/app/bsky/unspecced/getSuggestedUsers.ts +60 -25
  175. package/src/api/app/bsky/unspecced/getTrendingTopics.ts +9 -5
  176. package/src/api/app/bsky/unspecced/getTrends.ts +10 -10
  177. package/src/api/index.ts +8 -0
  178. package/src/config.ts +23 -26
  179. package/src/data-plane/bsync/index.ts +47 -0
  180. package/src/data-plane/server/db/database-schema.ts +3 -1
  181. package/src/data-plane/server/db/migrations/20260112T133951271Z-add-drafts.ts +24 -0
  182. package/src/data-plane/server/db/migrations/index.ts +1 -0
  183. package/src/data-plane/server/db/pagination.ts +8 -0
  184. package/src/data-plane/server/db/tables/draft.ts +11 -0
  185. package/src/data-plane/server/indexing/index.ts +3 -0
  186. package/src/data-plane/server/indexing/plugins/germ-declaration.ts +63 -0
  187. package/src/data-plane/server/routes/drafts.ts +37 -0
  188. package/src/data-plane/server/routes/index.ts +2 -0
  189. package/src/data-plane/server/routes/interactions.ts +6 -0
  190. package/src/data-plane/server/routes/profile.ts +8 -0
  191. package/src/data-plane/server/routes/records.ts +1 -0
  192. package/src/feature-gates.ts +83 -35
  193. package/src/hydration/actor.ts +26 -2
  194. package/src/hydration/hydrator.ts +8 -1
  195. package/src/index.ts +3 -3
  196. package/src/lexicon/index.ts +72 -0
  197. package/src/lexicon/lexicons.ts +465 -2
  198. package/src/lexicon/types/app/bsky/actor/defs.ts +37 -0
  199. package/src/lexicon/types/app/bsky/draft/createDraft.ts +46 -0
  200. package/src/lexicon/types/app/bsky/draft/defs.ts +208 -0
  201. package/src/lexicon/types/app/bsky/draft/deleteDraft.ts +33 -0
  202. package/src/lexicon/types/app/bsky/draft/getDrafts.ts +42 -0
  203. package/src/lexicon/types/app/bsky/draft/updateDraft.ts +34 -0
  204. package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsers.ts +1 -1
  205. package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +1 -1
  206. package/src/lexicon/types/com/germnetwork/declaration.ts +53 -0
  207. package/src/proto/bsky_connect.ts +22 -1
  208. package/src/proto/bsky_pb.ts +235 -0
  209. package/src/stash.ts +3 -0
  210. package/src/views/index.ts +15 -3
  211. package/tests/views/__snapshots__/profile.test.ts.snap +7 -0
  212. package/tests/views/age-assurance-v2.test.ts +0 -2
  213. package/tests/views/age-assurance.test.ts +0 -2
  214. package/tests/views/drafts.test.ts +293 -0
  215. package/tests/views/profile.test.ts +58 -1
  216. package/tsconfig.build.tsbuildinfo +1 -1
@@ -244,6 +244,10 @@ export declare const schemaDict: {
244
244
  readonly type: "ref";
245
245
  readonly ref: "lex:app.bsky.actor.defs#profileAssociatedActivitySubscription";
246
246
  };
247
+ readonly germ: {
248
+ readonly type: "ref";
249
+ readonly ref: "lex:app.bsky.actor.defs#profileAssociatedGerm";
250
+ };
247
251
  };
248
252
  };
249
253
  readonly profileAssociatedChat: {
@@ -256,6 +260,20 @@ export declare const schemaDict: {
256
260
  };
257
261
  };
258
262
  };
263
+ readonly profileAssociatedGerm: {
264
+ readonly type: "object";
265
+ readonly required: ["showButtonTo", "messageMeUrl"];
266
+ readonly properties: {
267
+ readonly messageMeUrl: {
268
+ readonly type: "string";
269
+ readonly format: "uri";
270
+ };
271
+ readonly showButtonTo: {
272
+ readonly type: "string";
273
+ readonly knownValues: ["usersIFollow", "everyone"];
274
+ };
275
+ };
276
+ };
259
277
  readonly profileAssociatedActivitySubscription: {
260
278
  readonly type: "object";
261
279
  readonly required: ["allowSubscriptions"];
@@ -382,7 +400,7 @@ export declare const schemaDict: {
382
400
  readonly type: "array";
383
401
  readonly items: {
384
402
  readonly type: "union";
385
- readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#declaredAgePref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs"];
403
+ readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#declaredAgePref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs", "lex:app.bsky.actor.defs#liveEventPreferences"];
386
404
  };
387
405
  };
388
406
  readonly adultContentPref: {
@@ -722,6 +740,24 @@ export declare const schemaDict: {
722
740
  };
723
741
  };
724
742
  };
743
+ readonly liveEventPreferences: {
744
+ readonly type: "object";
745
+ readonly description: "Preferences for live events.";
746
+ readonly properties: {
747
+ readonly hiddenFeedIds: {
748
+ readonly description: "A list of feed IDs that the user has hidden from live events.";
749
+ readonly type: "array";
750
+ readonly items: {
751
+ readonly type: "string";
752
+ };
753
+ };
754
+ readonly hideAllFeeds: {
755
+ readonly description: "Whether to hide all feeds from live events.";
756
+ readonly type: "boolean";
757
+ readonly default: false;
758
+ };
759
+ };
760
+ };
725
761
  readonly postInteractionSettingsPref: {
726
762
  readonly type: "object";
727
763
  readonly description: "Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.";
@@ -2040,189 +2076,542 @@ export declare const schemaDict: {
2040
2076
  };
2041
2077
  };
2042
2078
  };
2043
- readonly AppBskyEmbedDefs: {
2079
+ readonly AppBskyDraftCreateDraft: {
2044
2080
  readonly lexicon: 1;
2045
- readonly id: "app.bsky.embed.defs";
2081
+ readonly id: "app.bsky.draft.createDraft";
2046
2082
  readonly defs: {
2047
- readonly aspectRatio: {
2048
- readonly type: "object";
2049
- readonly description: "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.";
2050
- readonly required: ["width", "height"];
2051
- readonly properties: {
2052
- readonly width: {
2053
- readonly type: "integer";
2054
- readonly minimum: 1;
2083
+ readonly main: {
2084
+ readonly type: "procedure";
2085
+ readonly description: "Inserts a draft using private storage (stash). An upper limit of drafts might be enforced. Requires authentication.";
2086
+ readonly input: {
2087
+ readonly encoding: "application/json";
2088
+ readonly schema: {
2089
+ readonly type: "object";
2090
+ readonly required: ["draft"];
2091
+ readonly properties: {
2092
+ readonly draft: {
2093
+ readonly type: "ref";
2094
+ readonly ref: "lex:app.bsky.draft.defs#draft";
2095
+ };
2096
+ };
2055
2097
  };
2056
- readonly height: {
2057
- readonly type: "integer";
2058
- readonly minimum: 1;
2098
+ };
2099
+ readonly output: {
2100
+ readonly encoding: "application/json";
2101
+ readonly schema: {
2102
+ readonly type: "object";
2103
+ readonly required: ["id"];
2104
+ readonly properties: {
2105
+ readonly id: {
2106
+ readonly type: "string";
2107
+ readonly description: "The ID of the created draft.";
2108
+ };
2109
+ };
2059
2110
  };
2060
2111
  };
2112
+ readonly errors: [{
2113
+ readonly name: "DraftLimitReached";
2114
+ readonly description: "Trying to insert a new draft when the limit was already reached.";
2115
+ }];
2061
2116
  };
2062
2117
  };
2063
2118
  };
2064
- readonly AppBskyEmbedExternal: {
2119
+ readonly AppBskyDraftDefs: {
2065
2120
  readonly lexicon: 1;
2066
- readonly id: "app.bsky.embed.external";
2121
+ readonly id: "app.bsky.draft.defs";
2067
2122
  readonly defs: {
2068
- readonly main: {
2123
+ readonly draftWithId: {
2124
+ readonly description: "A draft with an identifier, used to store drafts in private storage (stash).";
2069
2125
  readonly type: "object";
2070
- readonly description: "A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).";
2071
- readonly required: ["external"];
2126
+ readonly required: ["id", "draft"];
2072
2127
  readonly properties: {
2073
- readonly external: {
2128
+ readonly id: {
2129
+ readonly description: "A TID to be used as a draft identifier.";
2130
+ readonly type: "string";
2131
+ readonly format: "tid";
2132
+ };
2133
+ readonly draft: {
2074
2134
  readonly type: "ref";
2075
- readonly ref: "lex:app.bsky.embed.external#external";
2135
+ readonly ref: "lex:app.bsky.draft.defs#draft";
2076
2136
  };
2077
2137
  };
2078
2138
  };
2079
- readonly external: {
2139
+ readonly draft: {
2140
+ readonly description: "A draft containing an array of draft posts.";
2080
2141
  readonly type: "object";
2081
- readonly required: ["uri", "title", "description"];
2142
+ readonly required: ["posts"];
2082
2143
  readonly properties: {
2083
- readonly uri: {
2084
- readonly type: "string";
2085
- readonly format: "uri";
2144
+ readonly posts: {
2145
+ readonly description: "Array of draft posts that compose this draft.";
2146
+ readonly type: "array";
2147
+ readonly minLength: 1;
2148
+ readonly maxLength: 100;
2149
+ readonly items: {
2150
+ readonly type: "ref";
2151
+ readonly ref: "lex:app.bsky.draft.defs#draftPost";
2152
+ };
2086
2153
  };
2087
- readonly title: {
2088
- readonly type: "string";
2154
+ readonly langs: {
2155
+ readonly type: "array";
2156
+ readonly description: "Indicates human language of posts primary text content.";
2157
+ readonly maxLength: 3;
2158
+ readonly items: {
2159
+ readonly type: "string";
2160
+ readonly format: "language";
2161
+ };
2089
2162
  };
2090
- readonly description: {
2091
- readonly type: "string";
2163
+ readonly postgateEmbeddingRules: {
2164
+ readonly description: "Embedding rules for the postgates to be created when this draft is published.";
2165
+ readonly type: "array";
2166
+ readonly maxLength: 5;
2167
+ readonly items: {
2168
+ readonly type: "union";
2169
+ readonly refs: ["lex:app.bsky.feed.postgate#disableRule"];
2170
+ };
2092
2171
  };
2093
- readonly thumb: {
2094
- readonly type: "blob";
2095
- readonly accept: ["image/*"];
2096
- readonly maxSize: 1000000;
2172
+ readonly threadgateAllow: {
2173
+ readonly description: "Allow-rules for the threadgate to be created when this draft is published.";
2174
+ readonly type: "array";
2175
+ readonly maxLength: 5;
2176
+ readonly items: {
2177
+ readonly type: "union";
2178
+ readonly refs: ["lex:app.bsky.feed.threadgate#mentionRule", "lex:app.bsky.feed.threadgate#followerRule", "lex:app.bsky.feed.threadgate#followingRule", "lex:app.bsky.feed.threadgate#listRule"];
2179
+ };
2097
2180
  };
2098
2181
  };
2099
2182
  };
2100
- readonly view: {
2183
+ readonly draftPost: {
2184
+ readonly description: "One of the posts that compose a draft.";
2101
2185
  readonly type: "object";
2102
- readonly required: ["external"];
2186
+ readonly required: ["text"];
2103
2187
  readonly properties: {
2104
- readonly external: {
2105
- readonly type: "ref";
2106
- readonly ref: "lex:app.bsky.embed.external#viewExternal";
2188
+ readonly text: {
2189
+ readonly type: "string";
2190
+ readonly maxLength: 3000;
2191
+ readonly maxGraphemes: 300;
2192
+ readonly description: "The primary post content.";
2193
+ };
2194
+ readonly labels: {
2195
+ readonly type: "union";
2196
+ readonly description: "Self-label values for this post. Effectively content warnings.";
2197
+ readonly refs: ["lex:com.atproto.label.defs#selfLabels"];
2198
+ };
2199
+ readonly embedImages: {
2200
+ readonly type: "array";
2201
+ readonly items: {
2202
+ readonly type: "ref";
2203
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedImage";
2204
+ };
2205
+ readonly maxLength: 4;
2206
+ };
2207
+ readonly embedVideos: {
2208
+ readonly type: "array";
2209
+ readonly items: {
2210
+ readonly type: "ref";
2211
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedVideo";
2212
+ };
2213
+ readonly maxLength: 1;
2214
+ };
2215
+ readonly embedExternals: {
2216
+ readonly type: "array";
2217
+ readonly items: {
2218
+ readonly type: "ref";
2219
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedExternal";
2220
+ };
2221
+ readonly maxLength: 1;
2222
+ };
2223
+ readonly embedRecords: {
2224
+ readonly type: "array";
2225
+ readonly items: {
2226
+ readonly type: "ref";
2227
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedRecord";
2228
+ };
2229
+ readonly maxLength: 1;
2107
2230
  };
2108
2231
  };
2109
2232
  };
2110
- readonly viewExternal: {
2233
+ readonly draftView: {
2234
+ readonly description: "View to present drafts data to users.";
2111
2235
  readonly type: "object";
2112
- readonly required: ["uri", "title", "description"];
2236
+ readonly required: ["id", "draft", "createdAt", "updatedAt"];
2113
2237
  readonly properties: {
2114
- readonly uri: {
2238
+ readonly id: {
2239
+ readonly description: "A TID to be used as a draft identifier.";
2115
2240
  readonly type: "string";
2116
- readonly format: "uri";
2241
+ readonly format: "tid";
2117
2242
  };
2118
- readonly title: {
2119
- readonly type: "string";
2243
+ readonly draft: {
2244
+ readonly type: "ref";
2245
+ readonly ref: "lex:app.bsky.draft.defs#draft";
2120
2246
  };
2121
- readonly description: {
2247
+ readonly createdAt: {
2248
+ readonly description: "The time the draft was created.";
2122
2249
  readonly type: "string";
2250
+ readonly format: "datetime";
2123
2251
  };
2124
- readonly thumb: {
2252
+ readonly updatedAt: {
2253
+ readonly description: "The time the draft was last updated.";
2125
2254
  readonly type: "string";
2126
- readonly format: "uri";
2255
+ readonly format: "datetime";
2127
2256
  };
2128
2257
  };
2129
2258
  };
2130
- };
2131
- };
2132
- readonly AppBskyEmbedImages: {
2133
- readonly lexicon: 1;
2134
- readonly id: "app.bsky.embed.images";
2135
- readonly description: "A set of images embedded in a Bluesky record (eg, a post).";
2136
- readonly defs: {
2137
- readonly main: {
2259
+ readonly draftEmbedLocalRef: {
2138
2260
  readonly type: "object";
2139
- readonly required: ["images"];
2261
+ readonly required: ["path"];
2140
2262
  readonly properties: {
2141
- readonly images: {
2142
- readonly type: "array";
2143
- readonly items: {
2144
- readonly type: "ref";
2145
- readonly ref: "lex:app.bsky.embed.images#image";
2146
- };
2147
- readonly maxLength: 4;
2263
+ readonly path: {
2264
+ readonly type: "string";
2265
+ readonly description: "Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.";
2266
+ readonly minLength: 1;
2267
+ readonly maxLength: 1024;
2148
2268
  };
2149
2269
  };
2150
2270
  };
2151
- readonly image: {
2271
+ readonly draftEmbedCaption: {
2152
2272
  readonly type: "object";
2153
- readonly required: ["image", "alt"];
2273
+ readonly required: ["lang", "content"];
2154
2274
  readonly properties: {
2155
- readonly image: {
2156
- readonly type: "blob";
2157
- readonly accept: ["image/*"];
2158
- readonly maxSize: 1000000;
2275
+ readonly lang: {
2276
+ readonly type: "string";
2277
+ readonly format: "language";
2159
2278
  };
2160
- readonly alt: {
2279
+ readonly content: {
2161
2280
  readonly type: "string";
2162
- readonly description: "Alt text description of the image, for accessibility.";
2281
+ readonly maxLength: 10000;
2163
2282
  };
2164
- readonly aspectRatio: {
2283
+ };
2284
+ };
2285
+ readonly draftEmbedImage: {
2286
+ readonly type: "object";
2287
+ readonly required: ["localRef"];
2288
+ readonly properties: {
2289
+ readonly localRef: {
2165
2290
  readonly type: "ref";
2166
- readonly ref: "lex:app.bsky.embed.defs#aspectRatio";
2291
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedLocalRef";
2292
+ };
2293
+ readonly alt: {
2294
+ readonly type: "string";
2295
+ readonly maxGraphemes: 2000;
2167
2296
  };
2168
2297
  };
2169
2298
  };
2170
- readonly view: {
2299
+ readonly draftEmbedVideo: {
2171
2300
  readonly type: "object";
2172
- readonly required: ["images"];
2301
+ readonly required: ["localRef"];
2173
2302
  readonly properties: {
2174
- readonly images: {
2303
+ readonly localRef: {
2304
+ readonly type: "ref";
2305
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedLocalRef";
2306
+ };
2307
+ readonly alt: {
2308
+ readonly type: "string";
2309
+ readonly maxGraphemes: 2000;
2310
+ };
2311
+ readonly captions: {
2175
2312
  readonly type: "array";
2176
2313
  readonly items: {
2177
2314
  readonly type: "ref";
2178
- readonly ref: "lex:app.bsky.embed.images#viewImage";
2315
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedCaption";
2179
2316
  };
2180
- readonly maxLength: 4;
2317
+ readonly maxLength: 20;
2181
2318
  };
2182
2319
  };
2183
2320
  };
2184
- readonly viewImage: {
2321
+ readonly draftEmbedExternal: {
2185
2322
  readonly type: "object";
2186
- readonly required: ["thumb", "fullsize", "alt"];
2323
+ readonly required: ["uri"];
2187
2324
  readonly properties: {
2188
- readonly thumb: {
2189
- readonly type: "string";
2190
- readonly format: "uri";
2191
- readonly description: "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.";
2192
- };
2193
- readonly fullsize: {
2325
+ readonly uri: {
2194
2326
  readonly type: "string";
2195
2327
  readonly format: "uri";
2196
- readonly description: "Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.";
2197
- };
2198
- readonly alt: {
2199
- readonly type: "string";
2200
- readonly description: "Alt text description of the image, for accessibility.";
2201
2328
  };
2202
- readonly aspectRatio: {
2329
+ };
2330
+ };
2331
+ readonly draftEmbedRecord: {
2332
+ readonly type: "object";
2333
+ readonly required: ["record"];
2334
+ readonly properties: {
2335
+ readonly record: {
2203
2336
  readonly type: "ref";
2204
- readonly ref: "lex:app.bsky.embed.defs#aspectRatio";
2337
+ readonly ref: "lex:com.atproto.repo.strongRef";
2205
2338
  };
2206
2339
  };
2207
2340
  };
2208
2341
  };
2209
2342
  };
2210
- readonly AppBskyEmbedRecord: {
2343
+ readonly AppBskyDraftDeleteDraft: {
2211
2344
  readonly lexicon: 1;
2212
- readonly id: "app.bsky.embed.record";
2213
- readonly description: "A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record.";
2345
+ readonly id: "app.bsky.draft.deleteDraft";
2214
2346
  readonly defs: {
2215
2347
  readonly main: {
2216
- readonly type: "object";
2217
- readonly required: ["record"];
2218
- readonly properties: {
2219
- readonly record: {
2220
- readonly type: "ref";
2221
- readonly ref: "lex:com.atproto.repo.strongRef";
2348
+ readonly type: "procedure";
2349
+ readonly description: "Deletes a draft by ID. Requires authentication.";
2350
+ readonly input: {
2351
+ readonly encoding: "application/json";
2352
+ readonly schema: {
2353
+ readonly type: "object";
2354
+ readonly required: ["id"];
2355
+ readonly properties: {
2356
+ readonly id: {
2357
+ readonly type: "string";
2358
+ readonly format: "tid";
2359
+ };
2360
+ };
2222
2361
  };
2223
2362
  };
2224
2363
  };
2225
- readonly view: {
2364
+ };
2365
+ };
2366
+ readonly AppBskyDraftGetDrafts: {
2367
+ readonly lexicon: 1;
2368
+ readonly id: "app.bsky.draft.getDrafts";
2369
+ readonly defs: {
2370
+ readonly main: {
2371
+ readonly type: "query";
2372
+ readonly description: "Gets views of user drafts. Requires authentication.";
2373
+ readonly parameters: {
2374
+ readonly type: "params";
2375
+ readonly properties: {
2376
+ readonly limit: {
2377
+ readonly type: "integer";
2378
+ readonly minimum: 1;
2379
+ readonly maximum: 100;
2380
+ readonly default: 50;
2381
+ };
2382
+ readonly cursor: {
2383
+ readonly type: "string";
2384
+ };
2385
+ };
2386
+ };
2387
+ readonly output: {
2388
+ readonly encoding: "application/json";
2389
+ readonly schema: {
2390
+ readonly type: "object";
2391
+ readonly required: ["drafts"];
2392
+ readonly properties: {
2393
+ readonly cursor: {
2394
+ readonly type: "string";
2395
+ };
2396
+ readonly drafts: {
2397
+ readonly type: "array";
2398
+ readonly items: {
2399
+ readonly type: "ref";
2400
+ readonly ref: "lex:app.bsky.draft.defs#draftView";
2401
+ };
2402
+ };
2403
+ };
2404
+ };
2405
+ };
2406
+ };
2407
+ };
2408
+ };
2409
+ readonly AppBskyDraftUpdateDraft: {
2410
+ readonly lexicon: 1;
2411
+ readonly id: "app.bsky.draft.updateDraft";
2412
+ readonly defs: {
2413
+ readonly main: {
2414
+ readonly type: "procedure";
2415
+ readonly description: "Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the update will be silently ignored. This is done because updates don't enforce draft limit, so it accepts all writes, but will ignore invalid ones. Requires authentication.";
2416
+ readonly input: {
2417
+ readonly encoding: "application/json";
2418
+ readonly schema: {
2419
+ readonly type: "object";
2420
+ readonly required: ["draft"];
2421
+ readonly properties: {
2422
+ readonly draft: {
2423
+ readonly type: "ref";
2424
+ readonly ref: "lex:app.bsky.draft.defs#draftWithId";
2425
+ };
2426
+ };
2427
+ };
2428
+ };
2429
+ };
2430
+ };
2431
+ };
2432
+ readonly AppBskyEmbedDefs: {
2433
+ readonly lexicon: 1;
2434
+ readonly id: "app.bsky.embed.defs";
2435
+ readonly defs: {
2436
+ readonly aspectRatio: {
2437
+ readonly type: "object";
2438
+ readonly description: "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.";
2439
+ readonly required: ["width", "height"];
2440
+ readonly properties: {
2441
+ readonly width: {
2442
+ readonly type: "integer";
2443
+ readonly minimum: 1;
2444
+ };
2445
+ readonly height: {
2446
+ readonly type: "integer";
2447
+ readonly minimum: 1;
2448
+ };
2449
+ };
2450
+ };
2451
+ };
2452
+ };
2453
+ readonly AppBskyEmbedExternal: {
2454
+ readonly lexicon: 1;
2455
+ readonly id: "app.bsky.embed.external";
2456
+ readonly defs: {
2457
+ readonly main: {
2458
+ readonly type: "object";
2459
+ readonly description: "A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).";
2460
+ readonly required: ["external"];
2461
+ readonly properties: {
2462
+ readonly external: {
2463
+ readonly type: "ref";
2464
+ readonly ref: "lex:app.bsky.embed.external#external";
2465
+ };
2466
+ };
2467
+ };
2468
+ readonly external: {
2469
+ readonly type: "object";
2470
+ readonly required: ["uri", "title", "description"];
2471
+ readonly properties: {
2472
+ readonly uri: {
2473
+ readonly type: "string";
2474
+ readonly format: "uri";
2475
+ };
2476
+ readonly title: {
2477
+ readonly type: "string";
2478
+ };
2479
+ readonly description: {
2480
+ readonly type: "string";
2481
+ };
2482
+ readonly thumb: {
2483
+ readonly type: "blob";
2484
+ readonly accept: ["image/*"];
2485
+ readonly maxSize: 1000000;
2486
+ };
2487
+ };
2488
+ };
2489
+ readonly view: {
2490
+ readonly type: "object";
2491
+ readonly required: ["external"];
2492
+ readonly properties: {
2493
+ readonly external: {
2494
+ readonly type: "ref";
2495
+ readonly ref: "lex:app.bsky.embed.external#viewExternal";
2496
+ };
2497
+ };
2498
+ };
2499
+ readonly viewExternal: {
2500
+ readonly type: "object";
2501
+ readonly required: ["uri", "title", "description"];
2502
+ readonly properties: {
2503
+ readonly uri: {
2504
+ readonly type: "string";
2505
+ readonly format: "uri";
2506
+ };
2507
+ readonly title: {
2508
+ readonly type: "string";
2509
+ };
2510
+ readonly description: {
2511
+ readonly type: "string";
2512
+ };
2513
+ readonly thumb: {
2514
+ readonly type: "string";
2515
+ readonly format: "uri";
2516
+ };
2517
+ };
2518
+ };
2519
+ };
2520
+ };
2521
+ readonly AppBskyEmbedImages: {
2522
+ readonly lexicon: 1;
2523
+ readonly id: "app.bsky.embed.images";
2524
+ readonly description: "A set of images embedded in a Bluesky record (eg, a post).";
2525
+ readonly defs: {
2526
+ readonly main: {
2527
+ readonly type: "object";
2528
+ readonly required: ["images"];
2529
+ readonly properties: {
2530
+ readonly images: {
2531
+ readonly type: "array";
2532
+ readonly items: {
2533
+ readonly type: "ref";
2534
+ readonly ref: "lex:app.bsky.embed.images#image";
2535
+ };
2536
+ readonly maxLength: 4;
2537
+ };
2538
+ };
2539
+ };
2540
+ readonly image: {
2541
+ readonly type: "object";
2542
+ readonly required: ["image", "alt"];
2543
+ readonly properties: {
2544
+ readonly image: {
2545
+ readonly type: "blob";
2546
+ readonly accept: ["image/*"];
2547
+ readonly maxSize: 1000000;
2548
+ };
2549
+ readonly alt: {
2550
+ readonly type: "string";
2551
+ readonly description: "Alt text description of the image, for accessibility.";
2552
+ };
2553
+ readonly aspectRatio: {
2554
+ readonly type: "ref";
2555
+ readonly ref: "lex:app.bsky.embed.defs#aspectRatio";
2556
+ };
2557
+ };
2558
+ };
2559
+ readonly view: {
2560
+ readonly type: "object";
2561
+ readonly required: ["images"];
2562
+ readonly properties: {
2563
+ readonly images: {
2564
+ readonly type: "array";
2565
+ readonly items: {
2566
+ readonly type: "ref";
2567
+ readonly ref: "lex:app.bsky.embed.images#viewImage";
2568
+ };
2569
+ readonly maxLength: 4;
2570
+ };
2571
+ };
2572
+ };
2573
+ readonly viewImage: {
2574
+ readonly type: "object";
2575
+ readonly required: ["thumb", "fullsize", "alt"];
2576
+ readonly properties: {
2577
+ readonly thumb: {
2578
+ readonly type: "string";
2579
+ readonly format: "uri";
2580
+ readonly description: "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.";
2581
+ };
2582
+ readonly fullsize: {
2583
+ readonly type: "string";
2584
+ readonly format: "uri";
2585
+ readonly description: "Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.";
2586
+ };
2587
+ readonly alt: {
2588
+ readonly type: "string";
2589
+ readonly description: "Alt text description of the image, for accessibility.";
2590
+ };
2591
+ readonly aspectRatio: {
2592
+ readonly type: "ref";
2593
+ readonly ref: "lex:app.bsky.embed.defs#aspectRatio";
2594
+ };
2595
+ };
2596
+ };
2597
+ };
2598
+ };
2599
+ readonly AppBskyEmbedRecord: {
2600
+ readonly lexicon: 1;
2601
+ readonly id: "app.bsky.embed.record";
2602
+ readonly description: "A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record.";
2603
+ readonly defs: {
2604
+ readonly main: {
2605
+ readonly type: "object";
2606
+ readonly required: ["record"];
2607
+ readonly properties: {
2608
+ readonly record: {
2609
+ readonly type: "ref";
2610
+ readonly ref: "lex:com.atproto.repo.strongRef";
2611
+ };
2612
+ };
2613
+ };
2614
+ readonly view: {
2226
2615
  readonly type: "object";
2227
2616
  readonly required: ["record"];
2228
2617
  readonly properties: {
@@ -7495,7 +7884,7 @@ export declare const schemaDict: {
7495
7884
  };
7496
7885
  };
7497
7886
  readonly recId: {
7498
- readonly type: "integer";
7887
+ readonly type: "string";
7499
7888
  readonly description: "Snowflake for this recommendation, use when submitting recommendation events.";
7500
7889
  };
7501
7890
  };
@@ -7545,7 +7934,7 @@ export declare const schemaDict: {
7545
7934
  };
7546
7935
  };
7547
7936
  readonly recId: {
7548
- readonly type: "integer";
7937
+ readonly type: "string";
7549
7938
  readonly description: "Snowflake for this recommendation, use when submitting recommendation events.";
7550
7939
  };
7551
7940
  };
@@ -13803,19 +14192,69 @@ export declare const schemaDict: {
13803
14192
  };
13804
14193
  };
13805
14194
  };
13806
- };
13807
- export declare const schemas: ({
13808
- readonly lexicon: 1;
13809
- readonly id: "app.bsky.actor.defs";
13810
- readonly defs: {
13811
- readonly profileViewBasic: {
13812
- readonly type: "object";
13813
- readonly required: ["did", "handle"];
13814
- readonly properties: {
13815
- readonly did: {
13816
- readonly type: "string";
13817
- readonly format: "did";
13818
- };
14195
+ readonly ComGermnetworkDeclaration: {
14196
+ readonly lexicon: 1;
14197
+ readonly id: "com.germnetwork.declaration";
14198
+ readonly defs: {
14199
+ readonly main: {
14200
+ readonly type: "record";
14201
+ readonly description: "A delegate messaging id";
14202
+ readonly key: "literal:self";
14203
+ readonly record: {
14204
+ readonly type: "object";
14205
+ readonly required: ["version", "currentKey"];
14206
+ readonly properties: {
14207
+ readonly version: {
14208
+ readonly type: "string";
14209
+ };
14210
+ readonly currentKey: {
14211
+ readonly type: "bytes";
14212
+ };
14213
+ readonly messageMe: {
14214
+ readonly type: "ref";
14215
+ readonly ref: "lex:com.germnetwork.declaration#messageMe";
14216
+ };
14217
+ readonly keyPackage: {
14218
+ readonly type: "bytes";
14219
+ };
14220
+ readonly continuityProofs: {
14221
+ readonly type: "array";
14222
+ readonly items: {
14223
+ readonly type: "bytes";
14224
+ };
14225
+ };
14226
+ };
14227
+ };
14228
+ };
14229
+ readonly messageMe: {
14230
+ readonly type: "object";
14231
+ readonly required: ["showButtonTo", "messageMeUrl"];
14232
+ readonly properties: {
14233
+ readonly messageMeUrl: {
14234
+ readonly type: "string";
14235
+ readonly format: "uri";
14236
+ };
14237
+ readonly showButtonTo: {
14238
+ readonly type: "string";
14239
+ readonly knownValues: ["usersIFollow", "everyone"];
14240
+ };
14241
+ };
14242
+ };
14243
+ };
14244
+ };
14245
+ };
14246
+ export declare const schemas: ({
14247
+ readonly lexicon: 1;
14248
+ readonly id: "app.bsky.actor.defs";
14249
+ readonly defs: {
14250
+ readonly profileViewBasic: {
14251
+ readonly type: "object";
14252
+ readonly required: ["did", "handle"];
14253
+ readonly properties: {
14254
+ readonly did: {
14255
+ readonly type: "string";
14256
+ readonly format: "did";
14257
+ };
13819
14258
  readonly handle: {
13820
14259
  readonly type: "string";
13821
14260
  readonly format: "handle";
@@ -14045,6 +14484,10 @@ export declare const schemas: ({
14045
14484
  readonly type: "ref";
14046
14485
  readonly ref: "lex:app.bsky.actor.defs#profileAssociatedActivitySubscription";
14047
14486
  };
14487
+ readonly germ: {
14488
+ readonly type: "ref";
14489
+ readonly ref: "lex:app.bsky.actor.defs#profileAssociatedGerm";
14490
+ };
14048
14491
  };
14049
14492
  };
14050
14493
  readonly profileAssociatedChat: {
@@ -14057,6 +14500,20 @@ export declare const schemas: ({
14057
14500
  };
14058
14501
  };
14059
14502
  };
14503
+ readonly profileAssociatedGerm: {
14504
+ readonly type: "object";
14505
+ readonly required: ["showButtonTo", "messageMeUrl"];
14506
+ readonly properties: {
14507
+ readonly messageMeUrl: {
14508
+ readonly type: "string";
14509
+ readonly format: "uri";
14510
+ };
14511
+ readonly showButtonTo: {
14512
+ readonly type: "string";
14513
+ readonly knownValues: ["usersIFollow", "everyone"];
14514
+ };
14515
+ };
14516
+ };
14060
14517
  readonly profileAssociatedActivitySubscription: {
14061
14518
  readonly type: "object";
14062
14519
  readonly required: ["allowSubscriptions"];
@@ -14183,7 +14640,7 @@ export declare const schemas: ({
14183
14640
  readonly type: "array";
14184
14641
  readonly items: {
14185
14642
  readonly type: "union";
14186
- readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#declaredAgePref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs"];
14643
+ readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#declaredAgePref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs", "lex:app.bsky.actor.defs#liveEventPreferences"];
14187
14644
  };
14188
14645
  };
14189
14646
  readonly adultContentPref: {
@@ -14523,6 +14980,24 @@ export declare const schemas: ({
14523
14980
  };
14524
14981
  };
14525
14982
  };
14983
+ readonly liveEventPreferences: {
14984
+ readonly type: "object";
14985
+ readonly description: "Preferences for live events.";
14986
+ readonly properties: {
14987
+ readonly hiddenFeedIds: {
14988
+ readonly description: "A list of feed IDs that the user has hidden from live events.";
14989
+ readonly type: "array";
14990
+ readonly items: {
14991
+ readonly type: "string";
14992
+ };
14993
+ };
14994
+ readonly hideAllFeeds: {
14995
+ readonly description: "Whether to hide all feeds from live events.";
14996
+ readonly type: "boolean";
14997
+ readonly default: false;
14998
+ };
14999
+ };
15000
+ };
14526
15001
  readonly postInteractionSettingsPref: {
14527
15002
  readonly type: "object";
14528
15003
  readonly description: "Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.";
@@ -15597,152 +16072,525 @@ export declare const schemas: ({
15597
16072
  };
15598
16073
  };
15599
16074
  };
15600
- readonly errors: [{
15601
- readonly name: "InvalidDid";
15602
- }, {
15603
- readonly name: "InternalError";
15604
- }];
16075
+ readonly errors: [{
16076
+ readonly name: "InvalidDid";
16077
+ }, {
16078
+ readonly name: "InternalError";
16079
+ }];
16080
+ };
16081
+ };
16082
+ } | {
16083
+ readonly lexicon: 1;
16084
+ readonly id: "app.bsky.contact.importContacts";
16085
+ readonly defs: {
16086
+ readonly main: {
16087
+ readonly type: "procedure";
16088
+ readonly description: "Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.";
16089
+ readonly input: {
16090
+ readonly encoding: "application/json";
16091
+ readonly schema: {
16092
+ readonly type: "object";
16093
+ readonly required: ["token", "contacts"];
16094
+ readonly properties: {
16095
+ readonly token: {
16096
+ readonly description: "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.";
16097
+ readonly type: "string";
16098
+ };
16099
+ readonly contacts: {
16100
+ readonly description: "List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`.";
16101
+ readonly type: "array";
16102
+ readonly items: {
16103
+ readonly type: "string";
16104
+ };
16105
+ readonly minLength: 1;
16106
+ readonly maxLength: 1000;
16107
+ };
16108
+ };
16109
+ };
16110
+ };
16111
+ readonly output: {
16112
+ readonly encoding: "application/json";
16113
+ readonly schema: {
16114
+ readonly type: "object";
16115
+ readonly required: ["matchesAndContactIndexes"];
16116
+ readonly properties: {
16117
+ readonly matchesAndContactIndexes: {
16118
+ readonly description: "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.";
16119
+ readonly type: "array";
16120
+ readonly items: {
16121
+ readonly type: "ref";
16122
+ readonly ref: "lex:app.bsky.contact.defs#matchAndContactIndex";
16123
+ };
16124
+ };
16125
+ };
16126
+ };
16127
+ };
16128
+ readonly errors: [{
16129
+ readonly name: "InvalidDid";
16130
+ }, {
16131
+ readonly name: "InvalidContacts";
16132
+ }, {
16133
+ readonly name: "TooManyContacts";
16134
+ }, {
16135
+ readonly name: "InvalidToken";
16136
+ }, {
16137
+ readonly name: "InternalError";
16138
+ }];
16139
+ };
16140
+ };
16141
+ } | {
16142
+ readonly lexicon: 1;
16143
+ readonly id: "app.bsky.contact.removeData";
16144
+ readonly defs: {
16145
+ readonly main: {
16146
+ readonly type: "procedure";
16147
+ readonly description: "Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.";
16148
+ readonly input: {
16149
+ readonly encoding: "application/json";
16150
+ readonly schema: {
16151
+ readonly type: "object";
16152
+ readonly properties: {};
16153
+ };
16154
+ };
16155
+ readonly output: {
16156
+ readonly encoding: "application/json";
16157
+ readonly schema: {
16158
+ readonly type: "object";
16159
+ readonly properties: {};
16160
+ };
16161
+ };
16162
+ readonly errors: [{
16163
+ readonly name: "InvalidDid";
16164
+ }, {
16165
+ readonly name: "InternalError";
16166
+ }];
16167
+ };
16168
+ };
16169
+ } | {
16170
+ readonly lexicon: 1;
16171
+ readonly id: "app.bsky.contact.sendNotification";
16172
+ readonly defs: {
16173
+ readonly main: {
16174
+ readonly type: "procedure";
16175
+ readonly description: "System endpoint to send notifications related to contact imports. Requires role authentication.";
16176
+ readonly input: {
16177
+ readonly encoding: "application/json";
16178
+ readonly schema: {
16179
+ readonly type: "object";
16180
+ readonly required: ["from", "to"];
16181
+ readonly properties: {
16182
+ readonly from: {
16183
+ readonly description: "The DID of who this notification comes from.";
16184
+ readonly type: "string";
16185
+ readonly format: "did";
16186
+ };
16187
+ readonly to: {
16188
+ readonly description: "The DID of who this notification should go to.";
16189
+ readonly type: "string";
16190
+ readonly format: "did";
16191
+ };
16192
+ };
16193
+ };
16194
+ };
16195
+ readonly output: {
16196
+ readonly encoding: "application/json";
16197
+ readonly schema: {
16198
+ readonly type: "object";
16199
+ readonly properties: {};
16200
+ };
16201
+ };
16202
+ };
16203
+ };
16204
+ } | {
16205
+ readonly lexicon: 1;
16206
+ readonly id: "app.bsky.contact.startPhoneVerification";
16207
+ readonly defs: {
16208
+ readonly main: {
16209
+ readonly type: "procedure";
16210
+ readonly description: "Starts a phone verification flow. The phone passed will receive a code via SMS that should be passed to `app.bsky.contact.verifyPhone`. Requires authentication.";
16211
+ readonly input: {
16212
+ readonly encoding: "application/json";
16213
+ readonly schema: {
16214
+ readonly type: "object";
16215
+ readonly required: ["phone"];
16216
+ readonly properties: {
16217
+ readonly phone: {
16218
+ readonly description: "The phone number to receive the code via SMS.";
16219
+ readonly type: "string";
16220
+ };
16221
+ };
16222
+ };
16223
+ };
16224
+ readonly output: {
16225
+ readonly encoding: "application/json";
16226
+ readonly schema: {
16227
+ readonly type: "object";
16228
+ readonly properties: {};
16229
+ };
16230
+ };
16231
+ readonly errors: [{
16232
+ readonly name: "RateLimitExceeded";
16233
+ }, {
16234
+ readonly name: "InvalidDid";
16235
+ }, {
16236
+ readonly name: "InvalidPhone";
16237
+ }, {
16238
+ readonly name: "InternalError";
16239
+ }];
16240
+ };
16241
+ };
16242
+ } | {
16243
+ readonly lexicon: 1;
16244
+ readonly id: "app.bsky.contact.verifyPhone";
16245
+ readonly defs: {
16246
+ readonly main: {
16247
+ readonly type: "procedure";
16248
+ readonly description: "Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.";
16249
+ readonly input: {
16250
+ readonly encoding: "application/json";
16251
+ readonly schema: {
16252
+ readonly type: "object";
16253
+ readonly required: ["phone", "code"];
16254
+ readonly properties: {
16255
+ readonly phone: {
16256
+ readonly description: "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.";
16257
+ readonly type: "string";
16258
+ };
16259
+ readonly code: {
16260
+ readonly description: "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.";
16261
+ readonly type: "string";
16262
+ };
16263
+ };
16264
+ };
16265
+ };
16266
+ readonly output: {
16267
+ readonly encoding: "application/json";
16268
+ readonly schema: {
16269
+ readonly type: "object";
16270
+ readonly required: ["token"];
16271
+ readonly properties: {
16272
+ readonly token: {
16273
+ readonly description: "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.";
16274
+ readonly type: "string";
16275
+ };
16276
+ };
16277
+ };
16278
+ };
16279
+ readonly errors: [{
16280
+ readonly name: "RateLimitExceeded";
16281
+ }, {
16282
+ readonly name: "InvalidDid";
16283
+ }, {
16284
+ readonly name: "InvalidPhone";
16285
+ }, {
16286
+ readonly name: "InvalidCode";
16287
+ }, {
16288
+ readonly name: "InternalError";
16289
+ }];
16290
+ };
16291
+ };
16292
+ } | {
16293
+ readonly lexicon: 1;
16294
+ readonly id: "app.bsky.draft.createDraft";
16295
+ readonly defs: {
16296
+ readonly main: {
16297
+ readonly type: "procedure";
16298
+ readonly description: "Inserts a draft using private storage (stash). An upper limit of drafts might be enforced. Requires authentication.";
16299
+ readonly input: {
16300
+ readonly encoding: "application/json";
16301
+ readonly schema: {
16302
+ readonly type: "object";
16303
+ readonly required: ["draft"];
16304
+ readonly properties: {
16305
+ readonly draft: {
16306
+ readonly type: "ref";
16307
+ readonly ref: "lex:app.bsky.draft.defs#draft";
16308
+ };
16309
+ };
16310
+ };
16311
+ };
16312
+ readonly output: {
16313
+ readonly encoding: "application/json";
16314
+ readonly schema: {
16315
+ readonly type: "object";
16316
+ readonly required: ["id"];
16317
+ readonly properties: {
16318
+ readonly id: {
16319
+ readonly type: "string";
16320
+ readonly description: "The ID of the created draft.";
16321
+ };
16322
+ };
16323
+ };
16324
+ };
16325
+ readonly errors: [{
16326
+ readonly name: "DraftLimitReached";
16327
+ readonly description: "Trying to insert a new draft when the limit was already reached.";
16328
+ }];
16329
+ };
16330
+ };
16331
+ } | {
16332
+ readonly lexicon: 1;
16333
+ readonly id: "app.bsky.draft.defs";
16334
+ readonly defs: {
16335
+ readonly draftWithId: {
16336
+ readonly description: "A draft with an identifier, used to store drafts in private storage (stash).";
16337
+ readonly type: "object";
16338
+ readonly required: ["id", "draft"];
16339
+ readonly properties: {
16340
+ readonly id: {
16341
+ readonly description: "A TID to be used as a draft identifier.";
16342
+ readonly type: "string";
16343
+ readonly format: "tid";
16344
+ };
16345
+ readonly draft: {
16346
+ readonly type: "ref";
16347
+ readonly ref: "lex:app.bsky.draft.defs#draft";
16348
+ };
16349
+ };
16350
+ };
16351
+ readonly draft: {
16352
+ readonly description: "A draft containing an array of draft posts.";
16353
+ readonly type: "object";
16354
+ readonly required: ["posts"];
16355
+ readonly properties: {
16356
+ readonly posts: {
16357
+ readonly description: "Array of draft posts that compose this draft.";
16358
+ readonly type: "array";
16359
+ readonly minLength: 1;
16360
+ readonly maxLength: 100;
16361
+ readonly items: {
16362
+ readonly type: "ref";
16363
+ readonly ref: "lex:app.bsky.draft.defs#draftPost";
16364
+ };
16365
+ };
16366
+ readonly langs: {
16367
+ readonly type: "array";
16368
+ readonly description: "Indicates human language of posts primary text content.";
16369
+ readonly maxLength: 3;
16370
+ readonly items: {
16371
+ readonly type: "string";
16372
+ readonly format: "language";
16373
+ };
16374
+ };
16375
+ readonly postgateEmbeddingRules: {
16376
+ readonly description: "Embedding rules for the postgates to be created when this draft is published.";
16377
+ readonly type: "array";
16378
+ readonly maxLength: 5;
16379
+ readonly items: {
16380
+ readonly type: "union";
16381
+ readonly refs: ["lex:app.bsky.feed.postgate#disableRule"];
16382
+ };
16383
+ };
16384
+ readonly threadgateAllow: {
16385
+ readonly description: "Allow-rules for the threadgate to be created when this draft is published.";
16386
+ readonly type: "array";
16387
+ readonly maxLength: 5;
16388
+ readonly items: {
16389
+ readonly type: "union";
16390
+ readonly refs: ["lex:app.bsky.feed.threadgate#mentionRule", "lex:app.bsky.feed.threadgate#followerRule", "lex:app.bsky.feed.threadgate#followingRule", "lex:app.bsky.feed.threadgate#listRule"];
16391
+ };
16392
+ };
16393
+ };
16394
+ };
16395
+ readonly draftPost: {
16396
+ readonly description: "One of the posts that compose a draft.";
16397
+ readonly type: "object";
16398
+ readonly required: ["text"];
16399
+ readonly properties: {
16400
+ readonly text: {
16401
+ readonly type: "string";
16402
+ readonly maxLength: 3000;
16403
+ readonly maxGraphemes: 300;
16404
+ readonly description: "The primary post content.";
16405
+ };
16406
+ readonly labels: {
16407
+ readonly type: "union";
16408
+ readonly description: "Self-label values for this post. Effectively content warnings.";
16409
+ readonly refs: ["lex:com.atproto.label.defs#selfLabels"];
16410
+ };
16411
+ readonly embedImages: {
16412
+ readonly type: "array";
16413
+ readonly items: {
16414
+ readonly type: "ref";
16415
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedImage";
16416
+ };
16417
+ readonly maxLength: 4;
16418
+ };
16419
+ readonly embedVideos: {
16420
+ readonly type: "array";
16421
+ readonly items: {
16422
+ readonly type: "ref";
16423
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedVideo";
16424
+ };
16425
+ readonly maxLength: 1;
16426
+ };
16427
+ readonly embedExternals: {
16428
+ readonly type: "array";
16429
+ readonly items: {
16430
+ readonly type: "ref";
16431
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedExternal";
16432
+ };
16433
+ readonly maxLength: 1;
16434
+ };
16435
+ readonly embedRecords: {
16436
+ readonly type: "array";
16437
+ readonly items: {
16438
+ readonly type: "ref";
16439
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedRecord";
16440
+ };
16441
+ readonly maxLength: 1;
16442
+ };
16443
+ };
16444
+ };
16445
+ readonly draftView: {
16446
+ readonly description: "View to present drafts data to users.";
16447
+ readonly type: "object";
16448
+ readonly required: ["id", "draft", "createdAt", "updatedAt"];
16449
+ readonly properties: {
16450
+ readonly id: {
16451
+ readonly description: "A TID to be used as a draft identifier.";
16452
+ readonly type: "string";
16453
+ readonly format: "tid";
16454
+ };
16455
+ readonly draft: {
16456
+ readonly type: "ref";
16457
+ readonly ref: "lex:app.bsky.draft.defs#draft";
16458
+ };
16459
+ readonly createdAt: {
16460
+ readonly description: "The time the draft was created.";
16461
+ readonly type: "string";
16462
+ readonly format: "datetime";
16463
+ };
16464
+ readonly updatedAt: {
16465
+ readonly description: "The time the draft was last updated.";
16466
+ readonly type: "string";
16467
+ readonly format: "datetime";
16468
+ };
16469
+ };
16470
+ };
16471
+ readonly draftEmbedLocalRef: {
16472
+ readonly type: "object";
16473
+ readonly required: ["path"];
16474
+ readonly properties: {
16475
+ readonly path: {
16476
+ readonly type: "string";
16477
+ readonly description: "Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.";
16478
+ readonly minLength: 1;
16479
+ readonly maxLength: 1024;
16480
+ };
16481
+ };
16482
+ };
16483
+ readonly draftEmbedCaption: {
16484
+ readonly type: "object";
16485
+ readonly required: ["lang", "content"];
16486
+ readonly properties: {
16487
+ readonly lang: {
16488
+ readonly type: "string";
16489
+ readonly format: "language";
16490
+ };
16491
+ readonly content: {
16492
+ readonly type: "string";
16493
+ readonly maxLength: 10000;
16494
+ };
16495
+ };
15605
16496
  };
15606
- };
15607
- } | {
15608
- readonly lexicon: 1;
15609
- readonly id: "app.bsky.contact.importContacts";
15610
- readonly defs: {
15611
- readonly main: {
15612
- readonly type: "procedure";
15613
- readonly description: "Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.";
15614
- readonly input: {
15615
- readonly encoding: "application/json";
15616
- readonly schema: {
15617
- readonly type: "object";
15618
- readonly required: ["token", "contacts"];
15619
- readonly properties: {
15620
- readonly token: {
15621
- readonly description: "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`.";
15622
- readonly type: "string";
15623
- };
15624
- readonly contacts: {
15625
- readonly description: "List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`.";
15626
- readonly type: "array";
15627
- readonly items: {
15628
- readonly type: "string";
15629
- };
15630
- readonly minLength: 1;
15631
- readonly maxLength: 1000;
15632
- };
15633
- };
16497
+ readonly draftEmbedImage: {
16498
+ readonly type: "object";
16499
+ readonly required: ["localRef"];
16500
+ readonly properties: {
16501
+ readonly localRef: {
16502
+ readonly type: "ref";
16503
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedLocalRef";
16504
+ };
16505
+ readonly alt: {
16506
+ readonly type: "string";
16507
+ readonly maxGraphemes: 2000;
15634
16508
  };
15635
16509
  };
15636
- readonly output: {
15637
- readonly encoding: "application/json";
15638
- readonly schema: {
15639
- readonly type: "object";
15640
- readonly required: ["matchesAndContactIndexes"];
15641
- readonly properties: {
15642
- readonly matchesAndContactIndexes: {
15643
- readonly description: "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list.";
15644
- readonly type: "array";
15645
- readonly items: {
15646
- readonly type: "ref";
15647
- readonly ref: "lex:app.bsky.contact.defs#matchAndContactIndex";
15648
- };
15649
- };
16510
+ };
16511
+ readonly draftEmbedVideo: {
16512
+ readonly type: "object";
16513
+ readonly required: ["localRef"];
16514
+ readonly properties: {
16515
+ readonly localRef: {
16516
+ readonly type: "ref";
16517
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedLocalRef";
16518
+ };
16519
+ readonly alt: {
16520
+ readonly type: "string";
16521
+ readonly maxGraphemes: 2000;
16522
+ };
16523
+ readonly captions: {
16524
+ readonly type: "array";
16525
+ readonly items: {
16526
+ readonly type: "ref";
16527
+ readonly ref: "lex:app.bsky.draft.defs#draftEmbedCaption";
15650
16528
  };
16529
+ readonly maxLength: 20;
15651
16530
  };
15652
16531
  };
15653
- readonly errors: [{
15654
- readonly name: "InvalidDid";
15655
- }, {
15656
- readonly name: "InvalidContacts";
15657
- }, {
15658
- readonly name: "TooManyContacts";
15659
- }, {
15660
- readonly name: "InvalidToken";
15661
- }, {
15662
- readonly name: "InternalError";
15663
- }];
15664
16532
  };
15665
- };
15666
- } | {
15667
- readonly lexicon: 1;
15668
- readonly id: "app.bsky.contact.removeData";
15669
- readonly defs: {
15670
- readonly main: {
15671
- readonly type: "procedure";
15672
- readonly description: "Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication.";
15673
- readonly input: {
15674
- readonly encoding: "application/json";
15675
- readonly schema: {
15676
- readonly type: "object";
15677
- readonly properties: {};
16533
+ readonly draftEmbedExternal: {
16534
+ readonly type: "object";
16535
+ readonly required: ["uri"];
16536
+ readonly properties: {
16537
+ readonly uri: {
16538
+ readonly type: "string";
16539
+ readonly format: "uri";
15678
16540
  };
15679
16541
  };
15680
- readonly output: {
15681
- readonly encoding: "application/json";
15682
- readonly schema: {
15683
- readonly type: "object";
15684
- readonly properties: {};
16542
+ };
16543
+ readonly draftEmbedRecord: {
16544
+ readonly type: "object";
16545
+ readonly required: ["record"];
16546
+ readonly properties: {
16547
+ readonly record: {
16548
+ readonly type: "ref";
16549
+ readonly ref: "lex:com.atproto.repo.strongRef";
15685
16550
  };
15686
16551
  };
15687
- readonly errors: [{
15688
- readonly name: "InvalidDid";
15689
- }, {
15690
- readonly name: "InternalError";
15691
- }];
15692
16552
  };
15693
16553
  };
15694
16554
  } | {
15695
16555
  readonly lexicon: 1;
15696
- readonly id: "app.bsky.contact.sendNotification";
16556
+ readonly id: "app.bsky.draft.deleteDraft";
15697
16557
  readonly defs: {
15698
16558
  readonly main: {
15699
16559
  readonly type: "procedure";
15700
- readonly description: "System endpoint to send notifications related to contact imports. Requires role authentication.";
16560
+ readonly description: "Deletes a draft by ID. Requires authentication.";
15701
16561
  readonly input: {
15702
16562
  readonly encoding: "application/json";
15703
16563
  readonly schema: {
15704
16564
  readonly type: "object";
15705
- readonly required: ["from", "to"];
16565
+ readonly required: ["id"];
15706
16566
  readonly properties: {
15707
- readonly from: {
15708
- readonly description: "The DID of who this notification comes from.";
15709
- readonly type: "string";
15710
- readonly format: "did";
15711
- };
15712
- readonly to: {
15713
- readonly description: "The DID of who this notification should go to.";
16567
+ readonly id: {
15714
16568
  readonly type: "string";
15715
- readonly format: "did";
16569
+ readonly format: "tid";
15716
16570
  };
15717
16571
  };
15718
16572
  };
15719
16573
  };
15720
- readonly output: {
15721
- readonly encoding: "application/json";
15722
- readonly schema: {
15723
- readonly type: "object";
15724
- readonly properties: {};
15725
- };
15726
- };
15727
16574
  };
15728
16575
  };
15729
16576
  } | {
15730
16577
  readonly lexicon: 1;
15731
- readonly id: "app.bsky.contact.startPhoneVerification";
16578
+ readonly id: "app.bsky.draft.getDrafts";
15732
16579
  readonly defs: {
15733
16580
  readonly main: {
15734
- readonly type: "procedure";
15735
- readonly description: "Starts a phone verification flow. The phone passed will receive a code via SMS that should be passed to `app.bsky.contact.verifyPhone`. Requires authentication.";
15736
- readonly input: {
15737
- readonly encoding: "application/json";
15738
- readonly schema: {
15739
- readonly type: "object";
15740
- readonly required: ["phone"];
15741
- readonly properties: {
15742
- readonly phone: {
15743
- readonly description: "The phone number to receive the code via SMS.";
15744
- readonly type: "string";
15745
- };
16581
+ readonly type: "query";
16582
+ readonly description: "Gets views of user drafts. Requires authentication.";
16583
+ readonly parameters: {
16584
+ readonly type: "params";
16585
+ readonly properties: {
16586
+ readonly limit: {
16587
+ readonly type: "integer";
16588
+ readonly minimum: 1;
16589
+ readonly maximum: 100;
16590
+ readonly default: 50;
16591
+ };
16592
+ readonly cursor: {
16593
+ readonly type: "string";
15746
16594
  };
15747
16595
  };
15748
16596
  };
@@ -15750,68 +16598,43 @@ export declare const schemas: ({
15750
16598
  readonly encoding: "application/json";
15751
16599
  readonly schema: {
15752
16600
  readonly type: "object";
15753
- readonly properties: {};
16601
+ readonly required: ["drafts"];
16602
+ readonly properties: {
16603
+ readonly cursor: {
16604
+ readonly type: "string";
16605
+ };
16606
+ readonly drafts: {
16607
+ readonly type: "array";
16608
+ readonly items: {
16609
+ readonly type: "ref";
16610
+ readonly ref: "lex:app.bsky.draft.defs#draftView";
16611
+ };
16612
+ };
16613
+ };
15754
16614
  };
15755
16615
  };
15756
- readonly errors: [{
15757
- readonly name: "RateLimitExceeded";
15758
- }, {
15759
- readonly name: "InvalidDid";
15760
- }, {
15761
- readonly name: "InvalidPhone";
15762
- }, {
15763
- readonly name: "InternalError";
15764
- }];
15765
16616
  };
15766
16617
  };
15767
16618
  } | {
15768
16619
  readonly lexicon: 1;
15769
- readonly id: "app.bsky.contact.verifyPhone";
16620
+ readonly id: "app.bsky.draft.updateDraft";
15770
16621
  readonly defs: {
15771
16622
  readonly main: {
15772
16623
  readonly type: "procedure";
15773
- readonly description: "Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication.";
16624
+ readonly description: "Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the update will be silently ignored. This is done because updates don't enforce draft limit, so it accepts all writes, but will ignore invalid ones. Requires authentication.";
15774
16625
  readonly input: {
15775
16626
  readonly encoding: "application/json";
15776
16627
  readonly schema: {
15777
16628
  readonly type: "object";
15778
- readonly required: ["phone", "code"];
15779
- readonly properties: {
15780
- readonly phone: {
15781
- readonly description: "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`.";
15782
- readonly type: "string";
15783
- };
15784
- readonly code: {
15785
- readonly description: "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`.";
15786
- readonly type: "string";
15787
- };
15788
- };
15789
- };
15790
- };
15791
- readonly output: {
15792
- readonly encoding: "application/json";
15793
- readonly schema: {
15794
- readonly type: "object";
15795
- readonly required: ["token"];
16629
+ readonly required: ["draft"];
15796
16630
  readonly properties: {
15797
- readonly token: {
15798
- readonly description: "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call.";
15799
- readonly type: "string";
16631
+ readonly draft: {
16632
+ readonly type: "ref";
16633
+ readonly ref: "lex:app.bsky.draft.defs#draftWithId";
15800
16634
  };
15801
16635
  };
15802
16636
  };
15803
16637
  };
15804
- readonly errors: [{
15805
- readonly name: "RateLimitExceeded";
15806
- }, {
15807
- readonly name: "InvalidDid";
15808
- }, {
15809
- readonly name: "InvalidPhone";
15810
- }, {
15811
- readonly name: "InvalidCode";
15812
- }, {
15813
- readonly name: "InternalError";
15814
- }];
15815
16638
  };
15816
16639
  };
15817
16640
  } | {
@@ -21179,7 +22002,7 @@ export declare const schemas: ({
21179
22002
  };
21180
22003
  };
21181
22004
  readonly recId: {
21182
- readonly type: "integer";
22005
+ readonly type: "string";
21183
22006
  readonly description: "Snowflake for this recommendation, use when submitting recommendation events.";
21184
22007
  };
21185
22008
  };
@@ -21228,7 +22051,7 @@ export declare const schemas: ({
21228
22051
  };
21229
22052
  };
21230
22053
  readonly recId: {
21231
- readonly type: "integer";
22054
+ readonly type: "string";
21232
22055
  readonly description: "Snowflake for this recommendation, use when submitting recommendation events.";
21233
22056
  };
21234
22057
  };
@@ -27352,6 +28175,55 @@ export declare const schemas: ({
27352
28175
  };
27353
28176
  };
27354
28177
  };
28178
+ } | {
28179
+ readonly lexicon: 1;
28180
+ readonly id: "com.germnetwork.declaration";
28181
+ readonly defs: {
28182
+ readonly main: {
28183
+ readonly type: "record";
28184
+ readonly description: "A delegate messaging id";
28185
+ readonly key: "literal:self";
28186
+ readonly record: {
28187
+ readonly type: "object";
28188
+ readonly required: ["version", "currentKey"];
28189
+ readonly properties: {
28190
+ readonly version: {
28191
+ readonly type: "string";
28192
+ };
28193
+ readonly currentKey: {
28194
+ readonly type: "bytes";
28195
+ };
28196
+ readonly messageMe: {
28197
+ readonly type: "ref";
28198
+ readonly ref: "lex:com.germnetwork.declaration#messageMe";
28199
+ };
28200
+ readonly keyPackage: {
28201
+ readonly type: "bytes";
28202
+ };
28203
+ readonly continuityProofs: {
28204
+ readonly type: "array";
28205
+ readonly items: {
28206
+ readonly type: "bytes";
28207
+ };
28208
+ };
28209
+ };
28210
+ };
28211
+ };
28212
+ readonly messageMe: {
28213
+ readonly type: "object";
28214
+ readonly required: ["showButtonTo", "messageMeUrl"];
28215
+ readonly properties: {
28216
+ readonly messageMeUrl: {
28217
+ readonly type: "string";
28218
+ readonly format: "uri";
28219
+ };
28220
+ readonly showButtonTo: {
28221
+ readonly type: "string";
28222
+ readonly knownValues: ["usersIFollow", "everyone"];
28223
+ };
28224
+ };
28225
+ };
28226
+ };
27355
28227
  })[];
27356
28228
  export declare const lexicons: Lexicons;
27357
28229
  export declare function validate<T extends {
@@ -27388,6 +28260,11 @@ export declare const ids: {
27388
28260
  readonly AppBskyContactSendNotification: "app.bsky.contact.sendNotification";
27389
28261
  readonly AppBskyContactStartPhoneVerification: "app.bsky.contact.startPhoneVerification";
27390
28262
  readonly AppBskyContactVerifyPhone: "app.bsky.contact.verifyPhone";
28263
+ readonly AppBskyDraftCreateDraft: "app.bsky.draft.createDraft";
28264
+ readonly AppBskyDraftDefs: "app.bsky.draft.defs";
28265
+ readonly AppBskyDraftDeleteDraft: "app.bsky.draft.deleteDraft";
28266
+ readonly AppBskyDraftGetDrafts: "app.bsky.draft.getDrafts";
28267
+ readonly AppBskyDraftUpdateDraft: "app.bsky.draft.updateDraft";
27391
28268
  readonly AppBskyEmbedDefs: "app.bsky.embed.defs";
27392
28269
  readonly AppBskyEmbedExternal: "app.bsky.embed.external";
27393
28270
  readonly AppBskyEmbedImages: "app.bsky.embed.images";
@@ -27613,5 +28490,6 @@ export declare const ids: {
27613
28490
  readonly ComAtprotoTempFetchLabels: "com.atproto.temp.fetchLabels";
27614
28491
  readonly ComAtprotoTempRequestPhoneVerification: "com.atproto.temp.requestPhoneVerification";
27615
28492
  readonly ComAtprotoTempRevokeAccountCredentials: "com.atproto.temp.revokeAccountCredentials";
28493
+ readonly ComGermnetworkDeclaration: "com.germnetwork.declaration";
27616
28494
  };
27617
28495
  //# sourceMappingURL=lexicons.d.ts.map