@atproto/api 0.18.20 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +22 -28
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +14 -6
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +244 -10
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +124 -5
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/draft/defs.d.ts +1 -1
- package/dist/client/types/app/bsky/draft/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/draft/defs.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +3 -1
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.d.ts +28 -0
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.d.ts +27 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts +3 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.js.map +1 -1
- package/dist/client/types/com/germnetwork/declaration.d.ts +7 -1
- package/dist/client/types/com/germnetwork/declaration.d.ts.map +1 -1
- package/dist/client/types/com/germnetwork/declaration.js.map +1 -1
- package/package.json +2 -2
- package/src/client/index.ts +28 -0
- package/src/client/lexicons.ts +136 -5
- package/src/client/types/app/bsky/draft/defs.ts +1 -1
- package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +3 -1
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts +46 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +45 -0
- package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +3 -1
- package/src/client/types/com/germnetwork/declaration.ts +7 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -2289,9 +2289,9 @@ exports.schemaDict = {
|
|
|
2289
2289
|
properties: {
|
|
2290
2290
|
text: {
|
|
2291
2291
|
type: 'string',
|
|
2292
|
-
maxLength:
|
|
2293
|
-
maxGraphemes:
|
|
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',
|
|
@@ -6030,6 +6030,10 @@ exports.schemaDict = {
|
|
|
6030
6030
|
},
|
|
6031
6031
|
recId: {
|
|
6032
6032
|
type: 'integer',
|
|
6033
|
+
description: 'DEPRECATED: use recIdStr instead.',
|
|
6034
|
+
},
|
|
6035
|
+
recIdStr: {
|
|
6036
|
+
type: 'string',
|
|
6033
6037
|
description: 'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
6034
6038
|
},
|
|
6035
6039
|
},
|
|
@@ -7791,6 +7795,56 @@ exports.schemaDict = {
|
|
|
7791
7795
|
},
|
|
7792
7796
|
},
|
|
7793
7797
|
},
|
|
7798
|
+
AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton: {
|
|
7799
|
+
lexicon: 1,
|
|
7800
|
+
id: 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton',
|
|
7801
|
+
defs: {
|
|
7802
|
+
main: {
|
|
7803
|
+
type: 'query',
|
|
7804
|
+
description: 'Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers',
|
|
7805
|
+
parameters: {
|
|
7806
|
+
type: 'params',
|
|
7807
|
+
properties: {
|
|
7808
|
+
viewer: {
|
|
7809
|
+
type: 'string',
|
|
7810
|
+
format: 'did',
|
|
7811
|
+
description: 'DID of the account making the request (not included for public/unauthenticated queries).',
|
|
7812
|
+
},
|
|
7813
|
+
category: {
|
|
7814
|
+
type: 'string',
|
|
7815
|
+
description: 'Category of users to get suggestions for.',
|
|
7816
|
+
},
|
|
7817
|
+
limit: {
|
|
7818
|
+
type: 'integer',
|
|
7819
|
+
minimum: 1,
|
|
7820
|
+
maximum: 50,
|
|
7821
|
+
default: 25,
|
|
7822
|
+
},
|
|
7823
|
+
},
|
|
7824
|
+
},
|
|
7825
|
+
output: {
|
|
7826
|
+
encoding: 'application/json',
|
|
7827
|
+
schema: {
|
|
7828
|
+
type: 'object',
|
|
7829
|
+
required: ['dids'],
|
|
7830
|
+
properties: {
|
|
7831
|
+
dids: {
|
|
7832
|
+
type: 'array',
|
|
7833
|
+
items: {
|
|
7834
|
+
type: 'string',
|
|
7835
|
+
format: 'did',
|
|
7836
|
+
},
|
|
7837
|
+
},
|
|
7838
|
+
recId: {
|
|
7839
|
+
type: 'string',
|
|
7840
|
+
description: 'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
7841
|
+
},
|
|
7842
|
+
},
|
|
7843
|
+
},
|
|
7844
|
+
},
|
|
7845
|
+
},
|
|
7846
|
+
},
|
|
7847
|
+
},
|
|
7794
7848
|
AppBskyUnspeccedGetPopularFeedGenerators: {
|
|
7795
7849
|
lexicon: 1,
|
|
7796
7850
|
id: 'app.bsky.unspecced.getPopularFeedGenerators',
|
|
@@ -8066,6 +8120,51 @@ exports.schemaDict = {
|
|
|
8066
8120
|
},
|
|
8067
8121
|
},
|
|
8068
8122
|
},
|
|
8123
|
+
AppBskyUnspeccedGetSuggestedOnboardingUsers: {
|
|
8124
|
+
lexicon: 1,
|
|
8125
|
+
id: 'app.bsky.unspecced.getSuggestedOnboardingUsers',
|
|
8126
|
+
defs: {
|
|
8127
|
+
main: {
|
|
8128
|
+
type: 'query',
|
|
8129
|
+
description: 'Get a list of suggested users for onboarding',
|
|
8130
|
+
parameters: {
|
|
8131
|
+
type: 'params',
|
|
8132
|
+
properties: {
|
|
8133
|
+
category: {
|
|
8134
|
+
type: 'string',
|
|
8135
|
+
description: 'Category of users to get suggestions for.',
|
|
8136
|
+
},
|
|
8137
|
+
limit: {
|
|
8138
|
+
type: 'integer',
|
|
8139
|
+
minimum: 1,
|
|
8140
|
+
maximum: 50,
|
|
8141
|
+
default: 25,
|
|
8142
|
+
},
|
|
8143
|
+
},
|
|
8144
|
+
},
|
|
8145
|
+
output: {
|
|
8146
|
+
encoding: 'application/json',
|
|
8147
|
+
schema: {
|
|
8148
|
+
type: 'object',
|
|
8149
|
+
required: ['actors'],
|
|
8150
|
+
properties: {
|
|
8151
|
+
actors: {
|
|
8152
|
+
type: 'array',
|
|
8153
|
+
items: {
|
|
8154
|
+
type: 'ref',
|
|
8155
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
8156
|
+
},
|
|
8157
|
+
},
|
|
8158
|
+
recId: {
|
|
8159
|
+
type: 'string',
|
|
8160
|
+
description: 'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8161
|
+
},
|
|
8162
|
+
},
|
|
8163
|
+
},
|
|
8164
|
+
},
|
|
8165
|
+
},
|
|
8166
|
+
},
|
|
8167
|
+
},
|
|
8069
8168
|
AppBskyUnspeccedGetSuggestedStarterPacks: {
|
|
8070
8169
|
lexicon: 1,
|
|
8071
8170
|
id: 'app.bsky.unspecced.getSuggestedStarterPacks',
|
|
@@ -8294,6 +8393,10 @@ exports.schemaDict = {
|
|
|
8294
8393
|
},
|
|
8295
8394
|
recId: {
|
|
8296
8395
|
type: 'integer',
|
|
8396
|
+
description: 'DEPRECATED: use recIdStr instead.',
|
|
8397
|
+
},
|
|
8398
|
+
recIdStr: {
|
|
8399
|
+
type: 'string',
|
|
8297
8400
|
description: 'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8298
8401
|
},
|
|
8299
8402
|
},
|
|
@@ -14829,7 +14932,7 @@ exports.schemaDict = {
|
|
|
14829
14932
|
defs: {
|
|
14830
14933
|
main: {
|
|
14831
14934
|
type: 'record',
|
|
14832
|
-
description: 'A
|
|
14935
|
+
description: 'A declaration of a Germ Network account',
|
|
14833
14936
|
key: 'literal:self',
|
|
14834
14937
|
record: {
|
|
14835
14938
|
type: 'object',
|
|
@@ -14837,22 +14940,30 @@ exports.schemaDict = {
|
|
|
14837
14940
|
properties: {
|
|
14838
14941
|
version: {
|
|
14839
14942
|
type: 'string',
|
|
14943
|
+
description: 'Semver version number, without pre-release or build information, for the format of opaque content',
|
|
14944
|
+
minLength: 5,
|
|
14945
|
+
maxLength: 14,
|
|
14840
14946
|
},
|
|
14841
14947
|
currentKey: {
|
|
14842
14948
|
type: 'bytes',
|
|
14949
|
+
description: 'Opaque value, an ed25519 public key prefixed with a byte enum',
|
|
14843
14950
|
},
|
|
14844
14951
|
messageMe: {
|
|
14845
14952
|
type: 'ref',
|
|
14953
|
+
description: 'Controls who can message this account',
|
|
14846
14954
|
ref: 'lex:com.germnetwork.declaration#messageMe',
|
|
14847
14955
|
},
|
|
14848
14956
|
keyPackage: {
|
|
14849
14957
|
type: 'bytes',
|
|
14958
|
+
description: 'Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey',
|
|
14850
14959
|
},
|
|
14851
14960
|
continuityProofs: {
|
|
14852
14961
|
type: 'array',
|
|
14962
|
+
description: 'Array of opaque values to allow for key rolling',
|
|
14853
14963
|
items: {
|
|
14854
14964
|
type: 'bytes',
|
|
14855
14965
|
},
|
|
14966
|
+
maxLength: 1000,
|
|
14856
14967
|
},
|
|
14857
14968
|
},
|
|
14858
14969
|
},
|
|
@@ -14863,11 +14974,17 @@ exports.schemaDict = {
|
|
|
14863
14974
|
properties: {
|
|
14864
14975
|
messageMeUrl: {
|
|
14865
14976
|
type: 'string',
|
|
14977
|
+
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
14978
|
format: 'uri',
|
|
14979
|
+
minLength: 1,
|
|
14980
|
+
maxLength: 2047,
|
|
14867
14981
|
},
|
|
14868
14982
|
showButtonTo: {
|
|
14869
14983
|
type: 'string',
|
|
14870
|
-
knownValues: ['usersIFollow', 'everyone'],
|
|
14984
|
+
knownValues: ['none', 'usersIFollow', 'everyone'],
|
|
14985
|
+
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.",
|
|
14986
|
+
minLength: 1,
|
|
14987
|
+
maxLength: 100,
|
|
14871
14988
|
},
|
|
14872
14989
|
},
|
|
14873
14990
|
},
|
|
@@ -19987,11 +20104,13 @@ exports.ids = {
|
|
|
19987
20104
|
AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
|
|
19988
20105
|
AppBskyUnspeccedGetOnboardingSuggestedStarterPacks: 'app.bsky.unspecced.getOnboardingSuggestedStarterPacks',
|
|
19989
20106
|
AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeleton: 'app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton',
|
|
20107
|
+
AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton: 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton',
|
|
19990
20108
|
AppBskyUnspeccedGetPopularFeedGenerators: 'app.bsky.unspecced.getPopularFeedGenerators',
|
|
19991
20109
|
AppBskyUnspeccedGetPostThreadOtherV2: 'app.bsky.unspecced.getPostThreadOtherV2',
|
|
19992
20110
|
AppBskyUnspeccedGetPostThreadV2: 'app.bsky.unspecced.getPostThreadV2',
|
|
19993
20111
|
AppBskyUnspeccedGetSuggestedFeeds: 'app.bsky.unspecced.getSuggestedFeeds',
|
|
19994
20112
|
AppBskyUnspeccedGetSuggestedFeedsSkeleton: 'app.bsky.unspecced.getSuggestedFeedsSkeleton',
|
|
20113
|
+
AppBskyUnspeccedGetSuggestedOnboardingUsers: 'app.bsky.unspecced.getSuggestedOnboardingUsers',
|
|
19995
20114
|
AppBskyUnspeccedGetSuggestedStarterPacks: 'app.bsky.unspecced.getSuggestedStarterPacks',
|
|
19996
20115
|
AppBskyUnspeccedGetSuggestedStarterPacksSkeleton: 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
|
|
19997
20116
|
AppBskyUnspeccedGetSuggestedUsers: 'app.bsky.unspecced.getSuggestedUsers',
|