Skip to content

Commit 8982b28

Browse files
committed
Specify the rejected reactions instead of accepted ones.
1 parent 4f2d8c9 commit 8982b28

File tree

3 files changed

+300
-149
lines changed

3 files changed

+300
-149
lines changed

_data/node_api.yml

Lines changed: 94 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,29 +3742,6 @@ objects:
37423742
description: Get brief information about the node.
37433743

37443744
structures:
3745-
- name: AcceptedReactions
3746-
fields:
3747-
- type: String
3748-
name: positive
3749-
description: >
3750-
comma-separated list of codes of the positive reactions that are accepted; a code may be prefixed by
3751-
<code>0x</code> to designate hexadecimal number and <code>+</code> to designate a recommended reaction
3752-
constraints:
3753-
- length:
3754-
max: 255
3755-
error: accepted-reactions.positive.wrong-size
3756-
- emojilist:
3757-
error: accepted-reactions.positive.invalid
3758-
- type: String
3759-
name: negative
3760-
description: >
3761-
comma-separated list of codes of the negative reactions that are accepted (the format is the same as above)
3762-
constraints:
3763-
- length:
3764-
max: 255
3765-
error: accepted-reactions.negative.wrong-size
3766-
- emojilist:
3767-
error: accepted-reactions.negative.invalid
37683745
- name: ActivityReactionFilter
37693746
fields:
37703747
- struct: RemotePosting
@@ -4528,10 +4505,18 @@ structures:
45284505
name: sheriffMarks
45294506
optional: true
45304507
description: list of sheriff marks on the comment
4531-
- struct: AcceptedReactions
4532-
name: acceptedReactions
4508+
- struct: RejectedReactions
4509+
name: rejectedReactions
4510+
optional: true
4511+
description: types of reactions that the comment rejects
4512+
- struct: RejectedReactions
4513+
name: ownerRejectedReactions
4514+
optional: true
4515+
description: types of reactions that the comment rejects, as defined by the comments' owner
4516+
- struct: RejectedReactions
4517+
name: seniorRejectedReactions
45334518
optional: true
4534-
description: types of reactions that the comment accepts
4519+
description: types of reactions that the comment rejects, as defined by the posting's owner ("senior")
45354520
- struct: ClientReactionInfo
45364521
name: clientReaction
45374522
optional: true
@@ -4555,6 +4540,10 @@ structures:
45554540
- other:
45564541
error: comment.senior-operations.wrong-principal
45574542
description: contain an incorrect principal
4543+
- struct: RejectedReactions
4544+
name: seniorRejectedReactions
4545+
optional: true
4546+
description: types of reactions that the comment rejects, as defined by the posting's owner ("senior")
45584547
- name: CommentRevisionInfo
45594548
fields:
45604549
- type: String
@@ -4676,10 +4665,16 @@ structures:
46764665
name: media
46774666
optional: true
46784667
description: array of IDs and digests of private media to be attached to the comment
4679-
- struct: AcceptedReactions
4680-
name: acceptedReactions
4668+
- struct: RejectedReactions
4669+
name: rejectedReactions
4670+
optional: true
4671+
description: types of reactions that the comment rejects
4672+
- struct: RejectedReactions
4673+
name: seniorRejectedReactions
46814674
optional: true
4682-
description: types of reactions that the comment accepts
4675+
description: >
4676+
types of reactions that the comment rejects, as defined by the posting's owner ("senior"); only the senior
4677+
may set this
46834678
- type: String
46844679
name: repliedToId
46854680
optional: true
@@ -4795,10 +4790,16 @@ structures:
47954790
- other:
47964791
error: comment.created-at.out-of-range
47974792
description: is too far from now
4798-
- struct: AcceptedReactions
4799-
name: acceptedReactions
4793+
- struct: RejectedReactions
4794+
name: rejectedReactions
48004795
optional: true
4801-
description: types of reactions that the comment accepts
4796+
description: types of reactions that the comment rejects
4797+
- struct: RejectedReactions
4798+
name: seniorRejectedReactions
4799+
optional: true
4800+
description: >
4801+
types of reactions that the comment rejects, as defined by the posting's owner ("senior"); only the senior
4802+
may set this
48024803
- type: String
48034804
name: repliedToId
48044805
optional: true
@@ -5024,10 +5025,14 @@ structures:
50245025
name: ownerAvatar
50255026
optional: true
50265027
description: avatar of the posting's/comment's owner
5027-
- struct: AcceptedReactions
5028-
name: acceptedReactions
5028+
- struct: RejectedReactions
5029+
name: rejectedReactions
50295030
optional: true
5030-
description: types of reactions that the posting accepts
5031+
description: types of reactions that the posting rejects
5032+
- struct: RejectedReactions
5033+
name: commentRejectedReactions
5034+
optional: true
5035+
description: types of reactions that the comment should reject, set for posting drafts, if needed
50315036
- struct: Body
50325037
name: bodySrc
50335038
optional: true
@@ -5127,10 +5132,14 @@ structures:
51275132
name: ownerAvatar
51285133
optional: true
51295134
description: avatar of the posting's/comment's owner
5130-
- struct: AcceptedReactions
5131-
name: acceptedReactions
5135+
- struct: RejectedReactions
5136+
name: rejectedReactions
5137+
optional: true
5138+
description: types of reactions that the posting rejects
5139+
- struct: RejectedReactions
5140+
name: commentRejectedReactions
51325141
optional: true
5133-
description: types of reactions that the posting accepts
5142+
description: types of reactions that the posting's comments should reject
51345143
- struct: Body
51355144
name: bodySrc
51365145
optional: true
@@ -6090,10 +6099,14 @@ structures:
60906099
optional: true
60916100
name: sheriffMarks
60926101
description: list of sheriff marks on the posting
6093-
- struct: AcceptedReactions
6094-
name: acceptedReactions
6102+
- struct: RejectedReactions
6103+
name: rejectedReactions
6104+
optional: true
6105+
description: types of reactions that the posting rejects
6106+
- struct: RejectedReactions
6107+
name: commentRejectedReactions
60956108
optional: true
6096-
description: types of reactions that the posting accepts
6109+
description: types of reactions that the posting's comments should reject
60976110
- struct: ClientReactionInfo
60986111
name: clientReaction
60996112
optional: true
@@ -6251,10 +6264,14 @@ structures:
62516264
name: media
62526265
optional: true
62536266
description: array of IDs and digests of private media to be attached to the posting
6254-
- struct: AcceptedReactions
6255-
name: acceptedReactions
6267+
- struct: RejectedReactions
6268+
name: rejectedReactions
62566269
optional: true
6257-
description: types of reactions that the posting accepts
6270+
description: types of reactions that the posting rejects
6271+
- struct: RejectedReactions
6272+
name: commentRejectedReactions
6273+
optional: true
6274+
description: types of reactions that the posting's comments should rejects
62586275
- struct: PostingOperations
62596276
name: operations
62606277
optional: true
@@ -6373,10 +6390,14 @@ structures:
63736390
- other:
63746391
error: posting.created-at.out-of-range
63756392
description: is too far from now
6376-
- struct: AcceptedReactions
6377-
name: acceptedReactions
6393+
- struct: RejectedReactions
6394+
name: rejectedReactions
6395+
optional: true
6396+
description: types of reactions that the posting rejects
6397+
- struct: RejectedReactions
6398+
name: commentRejectedReactions
63786399
optional: true
6379-
description: types of reactions that the posting accepts
6400+
description: types of reactions that the posting's comments should reject
63806401
- struct: StoryAttributes
63816402
array: true
63826403
name: publications
@@ -6966,6 +6987,32 @@ structures:
69666987
name: secret
69676988
optional: true
69686989
description: base64-encoded secret of the updating key
6990+
- name: RejectedReactions
6991+
fields:
6992+
- type: String
6993+
name: positive
6994+
optional: true
6995+
description: >
6996+
space-separated list of hexadecimal codes of the positive reactions that are rejected; a special code
6997+
<code>*</code> means rejection of any non-standard reaction
6998+
constraints:
6999+
- length:
7000+
max: 255
7001+
error: rejected-reactions.positive.wrong-size
7002+
- emojilist:
7003+
error: rejected-reactions.positive.invalid
7004+
- type: String
7005+
name: negative
7006+
optional: true
7007+
description: >
7008+
space-separated list of hexadecimal codes of the negative reactions that are rejected (the format is the same
7009+
as above)
7010+
constraints:
7011+
- length:
7012+
max: 255
7013+
error: rejected-reactions.negative.wrong-size
7014+
- emojilist:
7015+
error: rejected-reactions.negative.invalid
69697016
- name: RemoteFeed
69707017
fields:
69717018
- type: String

0 commit comments

Comments
 (0)