This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema-admin.graphql
115 lines (111 loc) · 2.59 KB
/
schema-admin.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
enum ShareableListModerationReason {
ABUSIVE_BEHAVIOR
POSTING_PRIVATE_INFORMATION
HATE_SPEECH
MISLEADING_INFORMATION
ADULT_SEXUAL_CONTENT
CSAM_IMAGES
CSAM_SOLICITATION
ILLEGAL_GOODS_AND_SERVICES
VIOLENCE_AND_GORE
INSTRUCTIONS_FOR_VIOLENCE
INCITEMENT_TO_VIOLENCE
SELF_HARM
TERRORISM
COPYRIGHT
TRADEMARK
COUNTERFEIT
SPAM
FRAUD
MALWARE
PHISHING
}
type ShareableListComplete {
"""
A unique string identifier in UUID format.
"""
externalId: ID!
"""
The user who created this shareable list.
"""
user: User!
"""
A URL-ready identifier of the list. Generated from the title
of the list when it's first made public. Unique per user.
"""
slug: String
"""
The title of the list. Provided by the Pocket user.
"""
title: String!
"""
Optional text description of a Shareable List. Provided by the Pocket user.
"""
description: String
"""
The status of the list. Defaults to PRIVATE.
"""
status: ShareableListVisibility!
"""
The moderation status of the list. Defaults to VISIBLE.
"""
moderationStatus: ShareableListModerationStatus!
"""
The timestamp of when the list was created by its owner.
"""
createdAt: ISOString!
"""
The timestamp of when the list was last updated by its owner
or a member of the moderation team.
"""
updatedAt: ISOString!
"""
Pocket Saves that have been added to this list by the Pocket user.
"""
listItems: [ShareableListItem!]!
"""
The visibility of notes added to list items for this list.
"""
listItemNoteVisibility: ShareableListVisibility!
"""
The LDAP username of the moderator who took down a list
that violates the Pocket content moderation policy.
"""
moderatedBy: String
"""
The reason why the moderator took down the list.
"""
moderationReason: ShareableListModerationReason
"""
The optional details why the list was moderated.
"""
moderationDetails: String
"""
The reason why a list was restored (set from hidden to visible).
"""
restorationReason: String
}
type Query {
"""
Looks up and returns a Shareable List with a given external ID for any user.
"""
searchShareableList(externalId: ID!): ShareableListComplete
}
"""
Input data for removing (moderating) a ShareableList
"""
input ModerateShareableListInput {
externalId: ID!
moderationStatus: ShareableListModerationStatus!
moderationReason: ShareableListModerationReason
moderationDetails: String
restorationReason: String
}
type Mutation {
"""
Removes (moderates) a Shareable List.
"""
moderateShareableList(
data: ModerateShareableListInput!
): ShareableListComplete
}