@atproto/api 0.12.21-next.0 → 0.12.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.
- package/CHANGELOG.md +6 -0
- package/dist/client/index.d.ts +23 -31
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +64 -64
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +204 -291
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +222 -292
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +0 -5
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.d.ts +0 -3
- package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.d.ts +1 -36
- package/dist/client/types/app/bsky/graph/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.js +1 -23
- package/dist/client/types/app/bsky/graph/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/team/addMember.d.ts +28 -0
- package/dist/client/types/tools/ozone/team/addMember.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/team/addMember.js +22 -0
- package/dist/client/types/tools/ozone/team/addMember.js.map +1 -0
- package/dist/client/types/tools/ozone/team/defs.d.ts +24 -0
- package/dist/client/types/tools/ozone/team/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/team/defs.js +22 -0
- package/dist/client/types/tools/ozone/team/defs.js.map +1 -0
- package/dist/client/types/tools/ozone/team/deleteMember.d.ts +24 -0
- package/dist/client/types/tools/ozone/team/deleteMember.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/team/deleteMember.js +22 -0
- package/dist/client/types/tools/ozone/team/deleteMember.js.map +1 -0
- package/dist/client/types/{app/bsky/graph/getActorStarterPacks.d.ts → tools/ozone/team/listMembers.d.ts} +3 -4
- package/dist/client/types/tools/ozone/team/listMembers.d.ts.map +1 -0
- package/dist/client/types/{app/bsky/graph/getStarterPack.js → tools/ozone/team/listMembers.js} +1 -1
- package/dist/client/types/tools/ozone/team/listMembers.js.map +1 -0
- package/dist/client/types/tools/ozone/team/updateMember.d.ts +29 -0
- package/dist/client/types/tools/ozone/team/updateMember.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/team/updateMember.js +22 -0
- package/dist/client/types/tools/ozone/team/updateMember.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +69 -96
- package/src/client/lexicons.ts +225 -294
- package/src/client/types/app/bsky/actor/defs.ts +0 -5
- package/src/client/types/app/bsky/actor/profile.ts +0 -3
- package/src/client/types/app/bsky/graph/defs.ts +0 -58
- package/src/client/types/tools/ozone/team/addMember.ts +49 -0
- package/src/client/types/tools/ozone/team/defs.ts +42 -0
- package/src/client/types/{app/bsky/graph/getStarterPack.ts → tools/ozone/team/deleteMember.ts} +12 -10
- package/src/client/types/{app/bsky/graph/getActorStarterPacks.ts → tools/ozone/team/listMembers.ts} +2 -3
- package/src/client/types/tools/ozone/team/updateMember.ts +49 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts.map +0 -1
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.js +0 -14
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.js.map +0 -1
- package/dist/client/types/app/bsky/graph/getStarterPack.d.ts +0 -24
- package/dist/client/types/app/bsky/graph/getStarterPack.d.ts.map +0 -1
- package/dist/client/types/app/bsky/graph/getStarterPack.js.map +0 -1
- package/dist/client/types/app/bsky/graph/starterpack.d.ts +0 -25
- package/dist/client/types/app/bsky/graph/starterpack.d.ts.map +0 -1
- package/dist/client/types/app/bsky/graph/starterpack.js +0 -27
- package/dist/client/types/app/bsky/graph/starterpack.js.map +0 -1
- package/src/client/types/app/bsky/graph/starterpack.ts +0 -50
package/src/client/lexicons.ts
CHANGED
|
@@ -3939,10 +3939,6 @@ export const schemaDict = {
|
|
|
3939
3939
|
ref: 'lex:com.atproto.label.defs#label',
|
|
3940
3940
|
},
|
|
3941
3941
|
},
|
|
3942
|
-
createdAt: {
|
|
3943
|
-
type: 'string',
|
|
3944
|
-
format: 'datetime',
|
|
3945
|
-
},
|
|
3946
3942
|
},
|
|
3947
3943
|
},
|
|
3948
3944
|
profileView: {
|
|
@@ -3979,10 +3975,6 @@ export const schemaDict = {
|
|
|
3979
3975
|
type: 'string',
|
|
3980
3976
|
format: 'datetime',
|
|
3981
3977
|
},
|
|
3982
|
-
createdAt: {
|
|
3983
|
-
type: 'string',
|
|
3984
|
-
format: 'datetime',
|
|
3985
|
-
},
|
|
3986
3978
|
viewer: {
|
|
3987
3979
|
type: 'ref',
|
|
3988
3980
|
ref: 'lex:app.bsky.actor.defs#viewerState',
|
|
@@ -4039,18 +4031,10 @@ export const schemaDict = {
|
|
|
4039
4031
|
type: 'ref',
|
|
4040
4032
|
ref: 'lex:app.bsky.actor.defs#profileAssociated',
|
|
4041
4033
|
},
|
|
4042
|
-
joinedViaStarterPack: {
|
|
4043
|
-
type: 'ref',
|
|
4044
|
-
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
4045
|
-
},
|
|
4046
4034
|
indexedAt: {
|
|
4047
4035
|
type: 'string',
|
|
4048
4036
|
format: 'datetime',
|
|
4049
4037
|
},
|
|
4050
|
-
createdAt: {
|
|
4051
|
-
type: 'string',
|
|
4052
|
-
format: 'datetime',
|
|
4053
|
-
},
|
|
4054
4038
|
viewer: {
|
|
4055
4039
|
type: 'ref',
|
|
4056
4040
|
ref: 'lex:app.bsky.actor.defs#viewerState',
|
|
@@ -4073,9 +4057,6 @@ export const schemaDict = {
|
|
|
4073
4057
|
feedgens: {
|
|
4074
4058
|
type: 'integer',
|
|
4075
4059
|
},
|
|
4076
|
-
starterPacks: {
|
|
4077
|
-
type: 'integer',
|
|
4078
|
-
},
|
|
4079
4060
|
labeler: {
|
|
4080
4061
|
type: 'boolean',
|
|
4081
4062
|
},
|
|
@@ -4592,14 +4573,6 @@ export const schemaDict = {
|
|
|
4592
4573
|
'Self-label values, specific to the Bluesky application, on the overall account.',
|
|
4593
4574
|
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
4594
4575
|
},
|
|
4595
|
-
joinedViaStarterPack: {
|
|
4596
|
-
type: 'ref',
|
|
4597
|
-
ref: 'lex:com.atproto.repo.strongRef',
|
|
4598
|
-
},
|
|
4599
|
-
createdAt: {
|
|
4600
|
-
type: 'string',
|
|
4601
|
-
format: 'datetime',
|
|
4602
|
-
},
|
|
4603
4576
|
},
|
|
4604
4577
|
},
|
|
4605
4578
|
},
|
|
@@ -6819,10 +6792,6 @@ export const schemaDict = {
|
|
|
6819
6792
|
type: 'string',
|
|
6820
6793
|
format: 'uri',
|
|
6821
6794
|
},
|
|
6822
|
-
listItemCount: {
|
|
6823
|
-
type: 'integer',
|
|
6824
|
-
minimum: 0,
|
|
6825
|
-
},
|
|
6826
6795
|
labels: {
|
|
6827
6796
|
type: 'array',
|
|
6828
6797
|
items: {
|
|
@@ -6881,10 +6850,6 @@ export const schemaDict = {
|
|
|
6881
6850
|
type: 'string',
|
|
6882
6851
|
format: 'uri',
|
|
6883
6852
|
},
|
|
6884
|
-
listItemCount: {
|
|
6885
|
-
type: 'integer',
|
|
6886
|
-
minimum: 0,
|
|
6887
|
-
},
|
|
6888
6853
|
labels: {
|
|
6889
6854
|
type: 'array',
|
|
6890
6855
|
items: {
|
|
@@ -6916,116 +6881,11 @@ export const schemaDict = {
|
|
|
6916
6881
|
},
|
|
6917
6882
|
},
|
|
6918
6883
|
},
|
|
6919
|
-
starterPackView: {
|
|
6920
|
-
type: 'object',
|
|
6921
|
-
required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
|
|
6922
|
-
properties: {
|
|
6923
|
-
uri: {
|
|
6924
|
-
type: 'string',
|
|
6925
|
-
format: 'at-uri',
|
|
6926
|
-
},
|
|
6927
|
-
cid: {
|
|
6928
|
-
type: 'string',
|
|
6929
|
-
format: 'cid',
|
|
6930
|
-
},
|
|
6931
|
-
record: {
|
|
6932
|
-
type: 'unknown',
|
|
6933
|
-
},
|
|
6934
|
-
creator: {
|
|
6935
|
-
type: 'ref',
|
|
6936
|
-
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
6937
|
-
},
|
|
6938
|
-
list: {
|
|
6939
|
-
type: 'ref',
|
|
6940
|
-
ref: 'lex:app.bsky.graph.defs#listViewBasic',
|
|
6941
|
-
},
|
|
6942
|
-
listItemsSample: {
|
|
6943
|
-
type: 'array',
|
|
6944
|
-
maxLength: 12,
|
|
6945
|
-
items: {
|
|
6946
|
-
type: 'ref',
|
|
6947
|
-
ref: 'lex:app.bsky.graph.defs#listItemView',
|
|
6948
|
-
},
|
|
6949
|
-
},
|
|
6950
|
-
feeds: {
|
|
6951
|
-
type: 'array',
|
|
6952
|
-
maxLength: 3,
|
|
6953
|
-
items: {
|
|
6954
|
-
type: 'ref',
|
|
6955
|
-
ref: 'lex:app.bsky.feed.defs#generatorView',
|
|
6956
|
-
},
|
|
6957
|
-
},
|
|
6958
|
-
joinedWeekCount: {
|
|
6959
|
-
type: 'integer',
|
|
6960
|
-
minimum: 0,
|
|
6961
|
-
},
|
|
6962
|
-
joinedAllTimeCount: {
|
|
6963
|
-
type: 'integer',
|
|
6964
|
-
minimum: 0,
|
|
6965
|
-
},
|
|
6966
|
-
labels: {
|
|
6967
|
-
type: 'array',
|
|
6968
|
-
items: {
|
|
6969
|
-
type: 'ref',
|
|
6970
|
-
ref: 'lex:com.atproto.label.defs#label',
|
|
6971
|
-
},
|
|
6972
|
-
},
|
|
6973
|
-
indexedAt: {
|
|
6974
|
-
type: 'string',
|
|
6975
|
-
format: 'datetime',
|
|
6976
|
-
},
|
|
6977
|
-
},
|
|
6978
|
-
},
|
|
6979
|
-
starterPackViewBasic: {
|
|
6980
|
-
type: 'object',
|
|
6981
|
-
required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
|
|
6982
|
-
properties: {
|
|
6983
|
-
uri: {
|
|
6984
|
-
type: 'string',
|
|
6985
|
-
format: 'at-uri',
|
|
6986
|
-
},
|
|
6987
|
-
cid: {
|
|
6988
|
-
type: 'string',
|
|
6989
|
-
format: 'cid',
|
|
6990
|
-
},
|
|
6991
|
-
record: {
|
|
6992
|
-
type: 'unknown',
|
|
6993
|
-
},
|
|
6994
|
-
creator: {
|
|
6995
|
-
type: 'ref',
|
|
6996
|
-
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
6997
|
-
},
|
|
6998
|
-
listItemCount: {
|
|
6999
|
-
type: 'integer',
|
|
7000
|
-
minimum: 0,
|
|
7001
|
-
},
|
|
7002
|
-
joinedWeekCount: {
|
|
7003
|
-
type: 'integer',
|
|
7004
|
-
minimum: 0,
|
|
7005
|
-
},
|
|
7006
|
-
joinedAllTimeCount: {
|
|
7007
|
-
type: 'integer',
|
|
7008
|
-
minimum: 0,
|
|
7009
|
-
},
|
|
7010
|
-
labels: {
|
|
7011
|
-
type: 'array',
|
|
7012
|
-
items: {
|
|
7013
|
-
type: 'ref',
|
|
7014
|
-
ref: 'lex:com.atproto.label.defs#label',
|
|
7015
|
-
},
|
|
7016
|
-
},
|
|
7017
|
-
indexedAt: {
|
|
7018
|
-
type: 'string',
|
|
7019
|
-
format: 'datetime',
|
|
7020
|
-
},
|
|
7021
|
-
},
|
|
7022
|
-
},
|
|
7023
6884
|
listPurpose: {
|
|
7024
6885
|
type: 'string',
|
|
7025
6886
|
knownValues: [
|
|
7026
6887
|
'app.bsky.graph.defs#modlist',
|
|
7027
6888
|
'app.bsky.graph.defs#curatelist',
|
|
7028
|
-
'app.bsky.graph.defs#referencelist',
|
|
7029
6889
|
],
|
|
7030
6890
|
},
|
|
7031
6891
|
modlist: {
|
|
@@ -7038,11 +6898,6 @@ export const schemaDict = {
|
|
|
7038
6898
|
description:
|
|
7039
6899
|
'A list of actors used for curation purposes such as list feeds or interaction gating.',
|
|
7040
6900
|
},
|
|
7041
|
-
referencelist: {
|
|
7042
|
-
type: 'token',
|
|
7043
|
-
description:
|
|
7044
|
-
'A list of actors used for only for reference purposes such as within a starter pack.',
|
|
7045
|
-
},
|
|
7046
6901
|
listViewerState: {
|
|
7047
6902
|
type: 'object',
|
|
7048
6903
|
properties: {
|
|
@@ -7122,54 +6977,6 @@ export const schemaDict = {
|
|
|
7122
6977
|
},
|
|
7123
6978
|
},
|
|
7124
6979
|
},
|
|
7125
|
-
AppBskyGraphGetActorStarterPacks: {
|
|
7126
|
-
lexicon: 1,
|
|
7127
|
-
id: 'app.bsky.graph.getActorStarterPacks',
|
|
7128
|
-
defs: {
|
|
7129
|
-
main: {
|
|
7130
|
-
type: 'query',
|
|
7131
|
-
description: 'Get a list of starter packs created by the actor.',
|
|
7132
|
-
parameters: {
|
|
7133
|
-
type: 'params',
|
|
7134
|
-
required: ['actor'],
|
|
7135
|
-
properties: {
|
|
7136
|
-
actor: {
|
|
7137
|
-
type: 'string',
|
|
7138
|
-
format: 'at-identifier',
|
|
7139
|
-
},
|
|
7140
|
-
limit: {
|
|
7141
|
-
type: 'integer',
|
|
7142
|
-
minimum: 1,
|
|
7143
|
-
maximum: 100,
|
|
7144
|
-
default: 50,
|
|
7145
|
-
},
|
|
7146
|
-
cursor: {
|
|
7147
|
-
type: 'string',
|
|
7148
|
-
},
|
|
7149
|
-
},
|
|
7150
|
-
},
|
|
7151
|
-
output: {
|
|
7152
|
-
encoding: 'application/json',
|
|
7153
|
-
schema: {
|
|
7154
|
-
type: 'object',
|
|
7155
|
-
required: ['starterPacks'],
|
|
7156
|
-
properties: {
|
|
7157
|
-
cursor: {
|
|
7158
|
-
type: 'string',
|
|
7159
|
-
},
|
|
7160
|
-
starterPacks: {
|
|
7161
|
-
type: 'array',
|
|
7162
|
-
items: {
|
|
7163
|
-
type: 'ref',
|
|
7164
|
-
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
7165
|
-
},
|
|
7166
|
-
},
|
|
7167
|
-
},
|
|
7168
|
-
},
|
|
7169
|
-
},
|
|
7170
|
-
},
|
|
7171
|
-
},
|
|
7172
|
-
},
|
|
7173
6980
|
AppBskyGraphGetBlocks: {
|
|
7174
6981
|
lexicon: 1,
|
|
7175
6982
|
id: 'app.bsky.graph.getBlocks',
|
|
@@ -7671,40 +7478,6 @@ export const schemaDict = {
|
|
|
7671
7478
|
},
|
|
7672
7479
|
},
|
|
7673
7480
|
},
|
|
7674
|
-
AppBskyGraphGetStarterPack: {
|
|
7675
|
-
lexicon: 1,
|
|
7676
|
-
id: 'app.bsky.graph.getStarterPack',
|
|
7677
|
-
defs: {
|
|
7678
|
-
main: {
|
|
7679
|
-
type: 'query',
|
|
7680
|
-
description: 'Gets a view of a starter pack.',
|
|
7681
|
-
parameters: {
|
|
7682
|
-
type: 'params',
|
|
7683
|
-
required: ['starterPack'],
|
|
7684
|
-
properties: {
|
|
7685
|
-
starterPack: {
|
|
7686
|
-
type: 'string',
|
|
7687
|
-
format: 'at-uri',
|
|
7688
|
-
description: 'Reference (AT-URI) of the starter pack record.',
|
|
7689
|
-
},
|
|
7690
|
-
},
|
|
7691
|
-
},
|
|
7692
|
-
output: {
|
|
7693
|
-
encoding: 'application/json',
|
|
7694
|
-
schema: {
|
|
7695
|
-
type: 'object',
|
|
7696
|
-
required: ['starterPack'],
|
|
7697
|
-
properties: {
|
|
7698
|
-
starterPack: {
|
|
7699
|
-
type: 'ref',
|
|
7700
|
-
ref: 'lex:app.bsky.graph.defs#starterPackView',
|
|
7701
|
-
},
|
|
7702
|
-
},
|
|
7703
|
-
},
|
|
7704
|
-
},
|
|
7705
|
-
},
|
|
7706
|
-
},
|
|
7707
|
-
},
|
|
7708
7481
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
|
7709
7482
|
lexicon: 1,
|
|
7710
7483
|
id: 'app.bsky.graph.getSuggestedFollowsByActor',
|
|
@@ -7929,70 +7702,6 @@ export const schemaDict = {
|
|
|
7929
7702
|
},
|
|
7930
7703
|
},
|
|
7931
7704
|
},
|
|
7932
|
-
AppBskyGraphStarterpack: {
|
|
7933
|
-
lexicon: 1,
|
|
7934
|
-
id: 'app.bsky.graph.starterpack',
|
|
7935
|
-
defs: {
|
|
7936
|
-
main: {
|
|
7937
|
-
type: 'record',
|
|
7938
|
-
description:
|
|
7939
|
-
'Record defining a starter pack of actors and feeds for new users.',
|
|
7940
|
-
key: 'any',
|
|
7941
|
-
record: {
|
|
7942
|
-
type: 'object',
|
|
7943
|
-
required: ['name', 'list', 'createdAt'],
|
|
7944
|
-
properties: {
|
|
7945
|
-
name: {
|
|
7946
|
-
type: 'string',
|
|
7947
|
-
maxGraphemes: 50,
|
|
7948
|
-
maxLength: 500,
|
|
7949
|
-
minLength: 1,
|
|
7950
|
-
description: 'Display name for starter pack; can not be empty.',
|
|
7951
|
-
},
|
|
7952
|
-
description: {
|
|
7953
|
-
type: 'string',
|
|
7954
|
-
maxGraphemes: 300,
|
|
7955
|
-
maxLength: 3000,
|
|
7956
|
-
},
|
|
7957
|
-
descriptionFacets: {
|
|
7958
|
-
type: 'array',
|
|
7959
|
-
items: {
|
|
7960
|
-
type: 'ref',
|
|
7961
|
-
ref: 'lex:app.bsky.richtext.facet',
|
|
7962
|
-
},
|
|
7963
|
-
},
|
|
7964
|
-
list: {
|
|
7965
|
-
type: 'string',
|
|
7966
|
-
format: 'at-uri',
|
|
7967
|
-
description: 'Reference (AT-URI) to the list record.',
|
|
7968
|
-
},
|
|
7969
|
-
feeds: {
|
|
7970
|
-
type: 'array',
|
|
7971
|
-
maxLength: 3,
|
|
7972
|
-
items: {
|
|
7973
|
-
type: 'ref',
|
|
7974
|
-
ref: 'lex:app.bsky.graph.starterpack#feedItem',
|
|
7975
|
-
},
|
|
7976
|
-
},
|
|
7977
|
-
createdAt: {
|
|
7978
|
-
type: 'string',
|
|
7979
|
-
format: 'datetime',
|
|
7980
|
-
},
|
|
7981
|
-
},
|
|
7982
|
-
},
|
|
7983
|
-
},
|
|
7984
|
-
feedItem: {
|
|
7985
|
-
type: 'object',
|
|
7986
|
-
required: ['uri'],
|
|
7987
|
-
properties: {
|
|
7988
|
-
uri: {
|
|
7989
|
-
type: 'string',
|
|
7990
|
-
format: 'at-uri',
|
|
7991
|
-
},
|
|
7992
|
-
},
|
|
7993
|
-
},
|
|
7994
|
-
},
|
|
7995
|
-
},
|
|
7996
7705
|
AppBskyGraphUnmuteActor: {
|
|
7997
7706
|
lexicon: 1,
|
|
7998
7707
|
id: 'app.bsky.graph.unmuteActor',
|
|
@@ -11297,6 +11006,226 @@ export const schemaDict = {
|
|
|
11297
11006
|
},
|
|
11298
11007
|
},
|
|
11299
11008
|
},
|
|
11009
|
+
ToolsOzoneTeamAddMember: {
|
|
11010
|
+
lexicon: 1,
|
|
11011
|
+
id: 'tools.ozone.team.addMember',
|
|
11012
|
+
defs: {
|
|
11013
|
+
main: {
|
|
11014
|
+
type: 'procedure',
|
|
11015
|
+
description: 'Add a member to the ozone team. Requires admin role.',
|
|
11016
|
+
input: {
|
|
11017
|
+
encoding: 'application/json',
|
|
11018
|
+
schema: {
|
|
11019
|
+
type: 'object',
|
|
11020
|
+
required: ['did', 'role'],
|
|
11021
|
+
properties: {
|
|
11022
|
+
did: {
|
|
11023
|
+
type: 'string',
|
|
11024
|
+
format: 'did',
|
|
11025
|
+
},
|
|
11026
|
+
role: {
|
|
11027
|
+
type: 'string',
|
|
11028
|
+
knownValues: [
|
|
11029
|
+
'tools.ozone.team.defs#roleAdmin',
|
|
11030
|
+
'tools.ozone.team.defs#roleModerator',
|
|
11031
|
+
'tools.ozone.team.defs#roleTriage',
|
|
11032
|
+
],
|
|
11033
|
+
},
|
|
11034
|
+
},
|
|
11035
|
+
},
|
|
11036
|
+
},
|
|
11037
|
+
output: {
|
|
11038
|
+
encoding: 'application/json',
|
|
11039
|
+
schema: {
|
|
11040
|
+
type: 'ref',
|
|
11041
|
+
ref: 'lex:tools.ozone.team.defs#member',
|
|
11042
|
+
},
|
|
11043
|
+
},
|
|
11044
|
+
errors: [
|
|
11045
|
+
{
|
|
11046
|
+
name: 'MemberAlreadyExists',
|
|
11047
|
+
description: 'Member already exists in the team.',
|
|
11048
|
+
},
|
|
11049
|
+
],
|
|
11050
|
+
},
|
|
11051
|
+
},
|
|
11052
|
+
},
|
|
11053
|
+
ToolsOzoneTeamDefs: {
|
|
11054
|
+
lexicon: 1,
|
|
11055
|
+
id: 'tools.ozone.team.defs',
|
|
11056
|
+
defs: {
|
|
11057
|
+
member: {
|
|
11058
|
+
type: 'object',
|
|
11059
|
+
required: ['did', 'role'],
|
|
11060
|
+
properties: {
|
|
11061
|
+
did: {
|
|
11062
|
+
type: 'string',
|
|
11063
|
+
format: 'did',
|
|
11064
|
+
},
|
|
11065
|
+
disabled: {
|
|
11066
|
+
type: 'boolean',
|
|
11067
|
+
},
|
|
11068
|
+
profile: {
|
|
11069
|
+
type: 'ref',
|
|
11070
|
+
ref: 'lex:app.bsky.actor.defs#profileViewDetailed',
|
|
11071
|
+
},
|
|
11072
|
+
createdAt: {
|
|
11073
|
+
type: 'string',
|
|
11074
|
+
format: 'datetime',
|
|
11075
|
+
},
|
|
11076
|
+
updatedAt: {
|
|
11077
|
+
type: 'string',
|
|
11078
|
+
format: 'datetime',
|
|
11079
|
+
},
|
|
11080
|
+
lastUpdatedBy: {
|
|
11081
|
+
type: 'string',
|
|
11082
|
+
},
|
|
11083
|
+
role: {
|
|
11084
|
+
type: 'string',
|
|
11085
|
+
knownValues: [
|
|
11086
|
+
'lex:tools.ozone.team.defs#roleAdmin',
|
|
11087
|
+
'lex:tools.ozone.team.defs#roleModerator',
|
|
11088
|
+
'lex:tools.ozone.team.defs#roleTriage',
|
|
11089
|
+
],
|
|
11090
|
+
},
|
|
11091
|
+
},
|
|
11092
|
+
},
|
|
11093
|
+
roleAdmin: {
|
|
11094
|
+
type: 'token',
|
|
11095
|
+
description:
|
|
11096
|
+
'Admin role. Highest level of access, can perform all actions.',
|
|
11097
|
+
},
|
|
11098
|
+
roleModerator: {
|
|
11099
|
+
type: 'token',
|
|
11100
|
+
description: 'Moderator role. Can perform most actions.',
|
|
11101
|
+
},
|
|
11102
|
+
roleTriage: {
|
|
11103
|
+
type: 'token',
|
|
11104
|
+
description:
|
|
11105
|
+
'Triage role. Mostly intended for monitoring and escalating issues.',
|
|
11106
|
+
},
|
|
11107
|
+
},
|
|
11108
|
+
},
|
|
11109
|
+
ToolsOzoneTeamDeleteMember: {
|
|
11110
|
+
lexicon: 1,
|
|
11111
|
+
id: 'tools.ozone.team.deleteMember',
|
|
11112
|
+
defs: {
|
|
11113
|
+
main: {
|
|
11114
|
+
type: 'procedure',
|
|
11115
|
+
description: 'Delete a member from ozone team. Requires admin role.',
|
|
11116
|
+
input: {
|
|
11117
|
+
encoding: 'application/json',
|
|
11118
|
+
schema: {
|
|
11119
|
+
type: 'object',
|
|
11120
|
+
required: ['did'],
|
|
11121
|
+
properties: {
|
|
11122
|
+
did: {
|
|
11123
|
+
type: 'string',
|
|
11124
|
+
format: 'did',
|
|
11125
|
+
},
|
|
11126
|
+
},
|
|
11127
|
+
},
|
|
11128
|
+
},
|
|
11129
|
+
errors: [
|
|
11130
|
+
{
|
|
11131
|
+
name: 'MemberNotFound',
|
|
11132
|
+
description: 'The member being deleted does not exist',
|
|
11133
|
+
},
|
|
11134
|
+
],
|
|
11135
|
+
},
|
|
11136
|
+
},
|
|
11137
|
+
},
|
|
11138
|
+
ToolsOzoneTeamListMembers: {
|
|
11139
|
+
lexicon: 1,
|
|
11140
|
+
id: 'tools.ozone.team.listMembers',
|
|
11141
|
+
defs: {
|
|
11142
|
+
main: {
|
|
11143
|
+
type: 'query',
|
|
11144
|
+
description: 'List all members with access to the ozone service.',
|
|
11145
|
+
parameters: {
|
|
11146
|
+
type: 'params',
|
|
11147
|
+
properties: {
|
|
11148
|
+
limit: {
|
|
11149
|
+
type: 'integer',
|
|
11150
|
+
minimum: 1,
|
|
11151
|
+
maximum: 100,
|
|
11152
|
+
default: 50,
|
|
11153
|
+
},
|
|
11154
|
+
cursor: {
|
|
11155
|
+
type: 'string',
|
|
11156
|
+
},
|
|
11157
|
+
},
|
|
11158
|
+
},
|
|
11159
|
+
output: {
|
|
11160
|
+
encoding: 'application/json',
|
|
11161
|
+
schema: {
|
|
11162
|
+
type: 'object',
|
|
11163
|
+
required: ['members'],
|
|
11164
|
+
properties: {
|
|
11165
|
+
cursor: {
|
|
11166
|
+
type: 'string',
|
|
11167
|
+
},
|
|
11168
|
+
members: {
|
|
11169
|
+
type: 'array',
|
|
11170
|
+
items: {
|
|
11171
|
+
type: 'ref',
|
|
11172
|
+
ref: 'lex:tools.ozone.team.defs#member',
|
|
11173
|
+
},
|
|
11174
|
+
},
|
|
11175
|
+
},
|
|
11176
|
+
},
|
|
11177
|
+
},
|
|
11178
|
+
},
|
|
11179
|
+
},
|
|
11180
|
+
},
|
|
11181
|
+
ToolsOzoneTeamUpdateMember: {
|
|
11182
|
+
lexicon: 1,
|
|
11183
|
+
id: 'tools.ozone.team.updateMember',
|
|
11184
|
+
defs: {
|
|
11185
|
+
main: {
|
|
11186
|
+
type: 'procedure',
|
|
11187
|
+
description:
|
|
11188
|
+
'Update a member in the ozone service. Requires admin role.',
|
|
11189
|
+
input: {
|
|
11190
|
+
encoding: 'application/json',
|
|
11191
|
+
schema: {
|
|
11192
|
+
type: 'object',
|
|
11193
|
+
required: ['did'],
|
|
11194
|
+
properties: {
|
|
11195
|
+
did: {
|
|
11196
|
+
type: 'string',
|
|
11197
|
+
format: 'did',
|
|
11198
|
+
},
|
|
11199
|
+
disabled: {
|
|
11200
|
+
type: 'boolean',
|
|
11201
|
+
},
|
|
11202
|
+
role: {
|
|
11203
|
+
type: 'string',
|
|
11204
|
+
knownValues: [
|
|
11205
|
+
'tools.ozone.team.defs#roleAdmin',
|
|
11206
|
+
'tools.ozone.team.defs#roleModerator',
|
|
11207
|
+
'tools.ozone.team.defs#roleTriage',
|
|
11208
|
+
],
|
|
11209
|
+
},
|
|
11210
|
+
},
|
|
11211
|
+
},
|
|
11212
|
+
},
|
|
11213
|
+
output: {
|
|
11214
|
+
encoding: 'application/json',
|
|
11215
|
+
schema: {
|
|
11216
|
+
type: 'ref',
|
|
11217
|
+
ref: 'lex:tools.ozone.team.defs#member',
|
|
11218
|
+
},
|
|
11219
|
+
},
|
|
11220
|
+
errors: [
|
|
11221
|
+
{
|
|
11222
|
+
name: 'MemberNotFound',
|
|
11223
|
+
description: 'The member being updated does not exist in the team',
|
|
11224
|
+
},
|
|
11225
|
+
],
|
|
11226
|
+
},
|
|
11227
|
+
},
|
|
11228
|
+
},
|
|
11300
11229
|
}
|
|
11301
11230
|
export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
|
|
11302
11231
|
export const lexicons: Lexicons = new Lexicons(schemas)
|
|
@@ -11429,7 +11358,6 @@ export const ids = {
|
|
|
11429
11358
|
AppBskyGraphBlock: 'app.bsky.graph.block',
|
|
11430
11359
|
AppBskyGraphDefs: 'app.bsky.graph.defs',
|
|
11431
11360
|
AppBskyGraphFollow: 'app.bsky.graph.follow',
|
|
11432
|
-
AppBskyGraphGetActorStarterPacks: 'app.bsky.graph.getActorStarterPacks',
|
|
11433
11361
|
AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
|
|
11434
11362
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
|
11435
11363
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
|
@@ -11440,7 +11368,6 @@ export const ids = {
|
|
|
11440
11368
|
AppBskyGraphGetLists: 'app.bsky.graph.getLists',
|
|
11441
11369
|
AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
|
|
11442
11370
|
AppBskyGraphGetRelationships: 'app.bsky.graph.getRelationships',
|
|
11443
|
-
AppBskyGraphGetStarterPack: 'app.bsky.graph.getStarterPack',
|
|
11444
11371
|
AppBskyGraphGetSuggestedFollowsByActor:
|
|
11445
11372
|
'app.bsky.graph.getSuggestedFollowsByActor',
|
|
11446
11373
|
AppBskyGraphList: 'app.bsky.graph.list',
|
|
@@ -11449,7 +11376,6 @@ export const ids = {
|
|
|
11449
11376
|
AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
|
|
11450
11377
|
AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
|
|
11451
11378
|
AppBskyGraphMuteThread: 'app.bsky.graph.muteThread',
|
|
11452
|
-
AppBskyGraphStarterpack: 'app.bsky.graph.starterpack',
|
|
11453
11379
|
AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
|
|
11454
11380
|
AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
|
|
11455
11381
|
AppBskyGraphUnmuteThread: 'app.bsky.graph.unmuteThread',
|
|
@@ -11510,4 +11436,9 @@ export const ids = {
|
|
|
11510
11436
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
11511
11437
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
|
11512
11438
|
ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
|
|
11439
|
+
ToolsOzoneTeamAddMember: 'tools.ozone.team.addMember',
|
|
11440
|
+
ToolsOzoneTeamDefs: 'tools.ozone.team.defs',
|
|
11441
|
+
ToolsOzoneTeamDeleteMember: 'tools.ozone.team.deleteMember',
|
|
11442
|
+
ToolsOzoneTeamListMembers: 'tools.ozone.team.listMembers',
|
|
11443
|
+
ToolsOzoneTeamUpdateMember: 'tools.ozone.team.updateMember',
|
|
11513
11444
|
}
|
|
@@ -16,7 +16,6 @@ export interface ProfileViewBasic {
|
|
|
16
16
|
associated?: ProfileAssociated
|
|
17
17
|
viewer?: ViewerState
|
|
18
18
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
19
|
-
createdAt?: string
|
|
20
19
|
[k: string]: unknown
|
|
21
20
|
}
|
|
22
21
|
|
|
@@ -40,7 +39,6 @@ export interface ProfileView {
|
|
|
40
39
|
avatar?: string
|
|
41
40
|
associated?: ProfileAssociated
|
|
42
41
|
indexedAt?: string
|
|
43
|
-
createdAt?: string
|
|
44
42
|
viewer?: ViewerState
|
|
45
43
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
46
44
|
[k: string]: unknown
|
|
@@ -69,9 +67,7 @@ export interface ProfileViewDetailed {
|
|
|
69
67
|
followsCount?: number
|
|
70
68
|
postsCount?: number
|
|
71
69
|
associated?: ProfileAssociated
|
|
72
|
-
joinedViaStarterPack?: AppBskyGraphDefs.StarterPackViewBasic
|
|
73
70
|
indexedAt?: string
|
|
74
|
-
createdAt?: string
|
|
75
71
|
viewer?: ViewerState
|
|
76
72
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
77
73
|
[k: string]: unknown
|
|
@@ -92,7 +88,6 @@ export function validateProfileViewDetailed(v: unknown): ValidationResult {
|
|
|
92
88
|
export interface ProfileAssociated {
|
|
93
89
|
lists?: number
|
|
94
90
|
feedgens?: number
|
|
95
|
-
starterPacks?: number
|
|
96
91
|
labeler?: boolean
|
|
97
92
|
chat?: ProfileAssociatedChat
|
|
98
93
|
[k: string]: unknown
|
|
@@ -6,7 +6,6 @@ import { isObj, hasProp } from '../../../../util'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
9
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
|
10
9
|
|
|
11
10
|
export interface Record {
|
|
12
11
|
displayName?: string
|
|
@@ -19,8 +18,6 @@ export interface Record {
|
|
|
19
18
|
labels?:
|
|
20
19
|
| ComAtprotoLabelDefs.SelfLabels
|
|
21
20
|
| { $type: string; [k: string]: unknown }
|
|
22
|
-
joinedViaStarterPack?: ComAtprotoRepoStrongRef.Main
|
|
23
|
-
createdAt?: string
|
|
24
21
|
[k: string]: unknown
|
|
25
22
|
}
|
|
26
23
|
|