@atproto/api 0.18.19 → 0.18.21

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 (31) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/client/index.d.ts +6 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +14 -6
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +236 -16
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +120 -8
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/draft/defs.d.ts +3 -3
  11. package/dist/client/types/app/bsky/draft/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/draft/defs.js.map +1 -1
  13. package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.d.ts +27 -0
  14. package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.d.ts.map +1 -0
  15. package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.js +11 -0
  16. package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.js.map +1 -0
  17. package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.d.ts +28 -0
  18. package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.d.ts.map +1 -0
  19. package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.js +11 -0
  20. package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.js.map +1 -0
  21. package/dist/client/types/com/germnetwork/declaration.d.ts +7 -1
  22. package/dist/client/types/com/germnetwork/declaration.d.ts.map +1 -1
  23. package/dist/client/types/com/germnetwork/declaration.js.map +1 -1
  24. package/package.json +2 -2
  25. package/src/client/index.ts +28 -0
  26. package/src/client/lexicons.ts +133 -8
  27. package/src/client/types/app/bsky/draft/defs.ts +3 -3
  28. package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +45 -0
  29. package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.ts +46 -0
  30. package/src/client/types/com/germnetwork/declaration.ts +7 -1
  31. package/tsconfig.build.tsbuildinfo +1 -1
@@ -2231,11 +2231,12 @@ exports.schemaDict = {
2231
2231
  deviceId: {
2232
2232
  type: 'string',
2233
2233
  description: 'UUIDv4 identifier of the device that created this draft.',
2234
+ maxLength: 100,
2234
2235
  },
2235
- platform: {
2236
+ deviceName: {
2236
2237
  type: 'string',
2237
- knownValues: ['web', 'ios', 'android'],
2238
- description: 'Platform on which the draft was created.',
2238
+ description: 'The device and/or platform on which the draft was created.',
2239
+ maxLength: 100,
2239
2240
  },
2240
2241
  posts: {
2241
2242
  description: 'Array of draft posts that compose this draft.',
@@ -2288,9 +2289,9 @@ exports.schemaDict = {
2288
2289
  properties: {
2289
2290
  text: {
2290
2291
  type: 'string',
2291
- maxLength: 3000,
2292
- maxGraphemes: 300,
2293
- description: 'The primary post content.',
2292
+ maxLength: 10000,
2293
+ maxGraphemes: 1000,
2294
+ description: 'The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.',
2294
2295
  },
2295
2296
  labels: {
2296
2297
  type: 'union',
@@ -8065,6 +8066,101 @@ exports.schemaDict = {
8065
8066
  },
8066
8067
  },
8067
8068
  },
8069
+ AppBskyUnspeccedGetSuggestedOnboardingUsers: {
8070
+ lexicon: 1,
8071
+ id: 'app.bsky.unspecced.getSuggestedOnboardingUsers',
8072
+ defs: {
8073
+ main: {
8074
+ type: 'query',
8075
+ description: 'Get a list of suggested users for onboarding',
8076
+ parameters: {
8077
+ type: 'params',
8078
+ properties: {
8079
+ category: {
8080
+ type: 'string',
8081
+ description: 'Category of users to get suggestions for.',
8082
+ },
8083
+ limit: {
8084
+ type: 'integer',
8085
+ minimum: 1,
8086
+ maximum: 50,
8087
+ default: 25,
8088
+ },
8089
+ },
8090
+ },
8091
+ output: {
8092
+ encoding: 'application/json',
8093
+ schema: {
8094
+ type: 'object',
8095
+ required: ['actors'],
8096
+ properties: {
8097
+ actors: {
8098
+ type: 'array',
8099
+ items: {
8100
+ type: 'ref',
8101
+ ref: 'lex:app.bsky.actor.defs#profileView',
8102
+ },
8103
+ },
8104
+ recId: {
8105
+ type: 'string',
8106
+ description: 'Snowflake for this recommendation, use when submitting recommendation events.',
8107
+ },
8108
+ },
8109
+ },
8110
+ },
8111
+ },
8112
+ },
8113
+ },
8114
+ AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton: {
8115
+ lexicon: 1,
8116
+ id: 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton',
8117
+ defs: {
8118
+ main: {
8119
+ type: 'query',
8120
+ description: 'Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers',
8121
+ parameters: {
8122
+ type: 'params',
8123
+ properties: {
8124
+ viewer: {
8125
+ type: 'string',
8126
+ format: 'did',
8127
+ description: 'DID of the account making the request (not included for public/unauthenticated queries).',
8128
+ },
8129
+ category: {
8130
+ type: 'string',
8131
+ description: 'Category of users to get suggestions for.',
8132
+ },
8133
+ limit: {
8134
+ type: 'integer',
8135
+ minimum: 1,
8136
+ maximum: 50,
8137
+ default: 25,
8138
+ },
8139
+ },
8140
+ },
8141
+ output: {
8142
+ encoding: 'application/json',
8143
+ schema: {
8144
+ type: 'object',
8145
+ required: ['dids'],
8146
+ properties: {
8147
+ dids: {
8148
+ type: 'array',
8149
+ items: {
8150
+ type: 'string',
8151
+ format: 'did',
8152
+ },
8153
+ },
8154
+ recId: {
8155
+ type: 'string',
8156
+ description: 'Snowflake for this recommendation, use when submitting recommendation events.',
8157
+ },
8158
+ },
8159
+ },
8160
+ },
8161
+ },
8162
+ },
8163
+ },
8068
8164
  AppBskyUnspeccedGetSuggestedStarterPacks: {
8069
8165
  lexicon: 1,
8070
8166
  id: 'app.bsky.unspecced.getSuggestedStarterPacks',
@@ -14828,7 +14924,7 @@ exports.schemaDict = {
14828
14924
  defs: {
14829
14925
  main: {
14830
14926
  type: 'record',
14831
- description: 'A delegate messaging id',
14927
+ description: 'A declaration of a Germ Network account',
14832
14928
  key: 'literal:self',
14833
14929
  record: {
14834
14930
  type: 'object',
@@ -14836,22 +14932,30 @@ exports.schemaDict = {
14836
14932
  properties: {
14837
14933
  version: {
14838
14934
  type: 'string',
14935
+ description: 'Semver version number, without pre-release or build information, for the format of opaque content',
14936
+ minLength: 5,
14937
+ maxLength: 14,
14839
14938
  },
14840
14939
  currentKey: {
14841
14940
  type: 'bytes',
14941
+ description: 'Opaque value, an ed25519 public key prefixed with a byte enum',
14842
14942
  },
14843
14943
  messageMe: {
14844
14944
  type: 'ref',
14945
+ description: 'Controls who can message this account',
14845
14946
  ref: 'lex:com.germnetwork.declaration#messageMe',
14846
14947
  },
14847
14948
  keyPackage: {
14848
14949
  type: 'bytes',
14950
+ description: 'Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey',
14849
14951
  },
14850
14952
  continuityProofs: {
14851
14953
  type: 'array',
14954
+ description: 'Array of opaque values to allow for key rolling',
14852
14955
  items: {
14853
14956
  type: 'bytes',
14854
14957
  },
14958
+ maxLength: 1000,
14855
14959
  },
14856
14960
  },
14857
14961
  },
@@ -14862,11 +14966,17 @@ exports.schemaDict = {
14862
14966
  properties: {
14863
14967
  messageMeUrl: {
14864
14968
  type: 'string',
14969
+ description: 'A URL to present to an account that does not have its own com.germnetwork.declaration record, must have an empty fragment component, where the app should fill in the fragment component with the DIDs of the two accounts who wish to message each other',
14865
14970
  format: 'uri',
14971
+ minLength: 1,
14972
+ maxLength: 2047,
14866
14973
  },
14867
14974
  showButtonTo: {
14868
14975
  type: 'string',
14869
- knownValues: ['usersIFollow', 'everyone'],
14976
+ knownValues: ['none', 'usersIFollow', 'everyone'],
14977
+ description: "The policy of who can message the account, this value is included in the keyPackage, but is duplicated here to allow applications to decide if they should show a 'Message on Germ' button to the viewer.",
14978
+ minLength: 1,
14979
+ maxLength: 100,
14870
14980
  },
14871
14981
  },
14872
14982
  },
@@ -19991,6 +20101,8 @@ exports.ids = {
19991
20101
  AppBskyUnspeccedGetPostThreadV2: 'app.bsky.unspecced.getPostThreadV2',
19992
20102
  AppBskyUnspeccedGetSuggestedFeeds: 'app.bsky.unspecced.getSuggestedFeeds',
19993
20103
  AppBskyUnspeccedGetSuggestedFeedsSkeleton: 'app.bsky.unspecced.getSuggestedFeedsSkeleton',
20104
+ AppBskyUnspeccedGetSuggestedOnboardingUsers: 'app.bsky.unspecced.getSuggestedOnboardingUsers',
20105
+ AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton: 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton',
19994
20106
  AppBskyUnspeccedGetSuggestedStarterPacks: 'app.bsky.unspecced.getSuggestedStarterPacks',
19995
20107
  AppBskyUnspeccedGetSuggestedStarterPacksSkeleton: 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
19996
20108
  AppBskyUnspeccedGetSuggestedUsers: 'app.bsky.unspecced.getSuggestedUsers',