@atproto/api 0.18.20 → 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 +12 -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 +228 -10
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +116 -5
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/draft/defs.d.ts +1 -1
  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 +128 -5
  27. package/src/client/types/app/bsky/draft/defs.ts +1 -1
  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
@@ -2289,9 +2289,9 @@ exports.schemaDict = {
2289
2289
  properties: {
2290
2290
  text: {
2291
2291
  type: 'string',
2292
- maxLength: 3000,
2293
- maxGraphemes: 300,
2294
- 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.',
2295
2295
  },
2296
2296
  labels: {
2297
2297
  type: 'union',
@@ -8066,6 +8066,101 @@ exports.schemaDict = {
8066
8066
  },
8067
8067
  },
8068
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
+ },
8069
8164
  AppBskyUnspeccedGetSuggestedStarterPacks: {
8070
8165
  lexicon: 1,
8071
8166
  id: 'app.bsky.unspecced.getSuggestedStarterPacks',
@@ -14829,7 +14924,7 @@ exports.schemaDict = {
14829
14924
  defs: {
14830
14925
  main: {
14831
14926
  type: 'record',
14832
- description: 'A delegate messaging id',
14927
+ description: 'A declaration of a Germ Network account',
14833
14928
  key: 'literal:self',
14834
14929
  record: {
14835
14930
  type: 'object',
@@ -14837,22 +14932,30 @@ exports.schemaDict = {
14837
14932
  properties: {
14838
14933
  version: {
14839
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,
14840
14938
  },
14841
14939
  currentKey: {
14842
14940
  type: 'bytes',
14941
+ description: 'Opaque value, an ed25519 public key prefixed with a byte enum',
14843
14942
  },
14844
14943
  messageMe: {
14845
14944
  type: 'ref',
14945
+ description: 'Controls who can message this account',
14846
14946
  ref: 'lex:com.germnetwork.declaration#messageMe',
14847
14947
  },
14848
14948
  keyPackage: {
14849
14949
  type: 'bytes',
14950
+ description: 'Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey',
14850
14951
  },
14851
14952
  continuityProofs: {
14852
14953
  type: 'array',
14954
+ description: 'Array of opaque values to allow for key rolling',
14853
14955
  items: {
14854
14956
  type: 'bytes',
14855
14957
  },
14958
+ maxLength: 1000,
14856
14959
  },
14857
14960
  },
14858
14961
  },
@@ -14863,11 +14966,17 @@ exports.schemaDict = {
14863
14966
  properties: {
14864
14967
  messageMeUrl: {
14865
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',
14866
14970
  format: 'uri',
14971
+ minLength: 1,
14972
+ maxLength: 2047,
14867
14973
  },
14868
14974
  showButtonTo: {
14869
14975
  type: 'string',
14870
- 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,
14871
14980
  },
14872
14981
  },
14873
14982
  },
@@ -19992,6 +20101,8 @@ exports.ids = {
19992
20101
  AppBskyUnspeccedGetPostThreadV2: 'app.bsky.unspecced.getPostThreadV2',
19993
20102
  AppBskyUnspeccedGetSuggestedFeeds: 'app.bsky.unspecced.getSuggestedFeeds',
19994
20103
  AppBskyUnspeccedGetSuggestedFeedsSkeleton: 'app.bsky.unspecced.getSuggestedFeedsSkeleton',
20104
+ AppBskyUnspeccedGetSuggestedOnboardingUsers: 'app.bsky.unspecced.getSuggestedOnboardingUsers',
20105
+ AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton: 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton',
19995
20106
  AppBskyUnspeccedGetSuggestedStarterPacks: 'app.bsky.unspecced.getSuggestedStarterPacks',
19996
20107
  AppBskyUnspeccedGetSuggestedStarterPacksSkeleton: 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
19997
20108
  AppBskyUnspeccedGetSuggestedUsers: 'app.bsky.unspecced.getSuggestedUsers',