mobilizon.chapril.org-mobil.../schema.graphql

2809 lines
41 KiB
GraphQL
Raw Normal View History

# source: http://localhost:4000/api
# timestamp: Tue May 05 2020 17:26:14 GMT+0200 (heure dété dEurope centrale)
2019-04-26 15:22:16 +02:00
schema {
query: RootQueryType
mutation: RootMutationType
subscription: RootSubscriptionType
2019-04-26 15:22:16 +02:00
}
"""
An action log
"""
type ActionLog {
"""
The action that was done
"""
action: ActionLogAction
"""
The actor that acted
"""
actor: Actor
"""
Internal ID for this comment
"""
id: ID
"""
The time when the action was performed
"""
insertedAt: DateTime
"""
The object that was acted upon
"""
object: ActionLogObject
}
enum ActionLogAction {
COMMENT_DELETION
EVENT_DELETION
EVENT_UPDATE
NOTE_CREATION
NOTE_DELETION
REPORT_UPDATE_CLOSED
REPORT_UPDATE_OPENED
REPORT_UPDATE_RESOLVED
}
"""
The objects that can be in an action log
"""
interface ActionLogObject {
"""
Internal ID for this object
"""
id: ID
}
"""
An ActivityPub actor
"""
2019-04-26 15:22:16 +02:00
interface Actor {
"""
The actor's avatar picture
"""
avatar: Picture
"""
The actor's banner picture
"""
banner: Picture
"""
The actor's domain if (null if it's this instance)
"""
domain: String
"""
List of followers
"""
followers: [Follower]
"""
Number of followers for this actor
"""
followersCount: Int
"""
List of followings
"""
following: [Follower]
"""
Number of actors following this actor
"""
followingCount: Int
"""
Internal ID for this actor
"""
id: ID
"""
If the actor is from this instance
"""
local: Boolean
"""
Whether the actors manually approves followers
"""
manuallyApprovesFollowers: Boolean
"""
The actor's displayed name
"""
name: String
"""
The actor's preferred username
"""
preferredUsername: String
"""
The actor's summary
"""
summary: String
"""
If the actor is suspended
"""
suspended: Boolean
"""
The type of Actor (Person, Group,)
"""
type: ActorType
"""
The ActivityPub actor's URL
"""
url: String
}
"""
The list of types an actor can be
"""
enum ActorType {
"""
An ActivityPub Application
"""
APPLICATION
"""
An ActivityPub Group
"""
GROUP
"""
An ActivityPub Organization
"""
ORGANIZATION
"""
An ActivityPub Person
"""
PERSON
"""
An ActivityPub Service
"""
SERVICE
2019-04-26 15:22:16 +02:00
}
type Address {
country: String
description: String
"""
The geocoordinates for the point where this address is
"""
geom: Point
id: ID
"""
The address's locality
"""
locality: String
originId: String
postalCode: String
region: String
"""
The address's street name (with number)
"""
street: String
type: String
url: String
}
input AddressInput {
country: String
description: String
"""
The geocoordinates for the point where this address is
"""
geom: Point
id: ID
"""
The address's locality
"""
locality: String
originId: String
postalCode: String
region: String
"""
The address's street name (with number)
"""
street: String
type: String
url: String
}
type AdminSettings {
instanceDescription: String
instanceName: String
instanceTerms: String
instanceTermsType: InstanceTermsType
instanceTermsUrl: String
registrationsOpen: Boolean
}
type Anonymous {
actorId: ID
eventCreation: AnonymousEventCreation
participation: AnonymousParticipation
}
type AnonymousEventCreation {
allowed: Boolean
validation: AnonymousEventCreationValidation
}
type AnonymousEventCreationValidation {
captcha: AnonymousEventCreationValidationCaptcha
email: AnonymousEventCreationValidationEmail
}
type AnonymousEventCreationValidationCaptcha {
enabled: Boolean
}
type AnonymousEventCreationValidationEmail {
confirmationRequired: Boolean
enabled: Boolean
}
type AnonymousParticipation {
allowed: Boolean
validation: AnonymousParticipationValidation
}
type AnonymousParticipationValidation {
captcha: AnonymousParticipationValidationCaptcha
email: AnonymousParticipationValidationEmail
}
type AnonymousParticipationValidationCaptcha {
enabled: Boolean
}
type AnonymousParticipationValidationEmail {
confirmationRequired: Boolean
enabled: Boolean
}
"""
Represents an application
"""
type Application implements Actor {
"""
The actor's avatar picture
"""
avatar: Picture
"""
The actor's banner picture
"""
banner: Picture
"""
The actor's domain if (null if it's this instance)
"""
domain: String
"""
List of followers
"""
followers: [Follower]
"""
Number of followers for this actor
"""
followersCount: Int
"""
List of followings
"""
following: [Follower]
"""
Number of actors following this actor
"""
followingCount: Int
"""
Internal ID for this application
"""
id: ID
"""
If the actor is from this instance
"""
local: Boolean
"""
Whether the actors manually approves followers
"""
manuallyApprovesFollowers: Boolean
"""
The actor's displayed name
"""
name: String
"""
The actor's preferred username
"""
preferredUsername: String
"""
The actor's summary
"""
summary: String
"""
If the actor is suspended
"""
suspended: Boolean
"""
The type of Actor (Person, Group,)
"""
type: ActorType
"""
The ActivityPub actor's URL
"""
url: String
}
"""
A comment
"""
type Comment implements ActionLogObject {
actor: Person
deletedAt: DateTime
event: Event
"""
Internal ID for this comment
"""
id: ID
inReplyToComment: Comment
insertedAt: DateTime
local: Boolean
originComment: Comment
primaryLanguage: String
replies: [Comment]
text: String
threadLanguages: [String]!
totalReplies: Int
updatedAt: DateTime
url: String
uuid: UUID
visibility: CommentVisibility
}
"""
The list of visibility options for a comment
"""
enum CommentVisibility {
"""
visible only to people invited
"""
INVITE
"""
Visible only after a moderator accepted
"""
MODERATED
"""
Visible only to people members of the group or followers of the person
"""
PRIVATE
"""
Publicly listed and federated. Can be shared.
"""
PUBLIC
"""
Visible only to people with the link - or invited
"""
UNLISTED
}
"""
A config object
"""
2019-04-26 15:22:16 +02:00
type Config {
anonymous: Anonymous
countryCode: String
demoMode: Boolean
description: String
geocoding: Geocoding
location: Lonlat
maps: Maps
name: String
registrationsOpen: Boolean
registrationsWhitelist: Boolean
resourceProviders: [ResourceProvider]
"""
The instance's terms
"""
terms(locale: String = "en"): Terms
2019-04-26 15:22:16 +02:00
}
"""
A discussion
"""
type discussion {
actor: Actor
"""
The comments for the discussion
"""
comments(limit: Int = 10, page: Int = 1): PaginatedCommentList
creator: Person
"""
Internal ID for this discussion
"""
id: ID
insertedAt: DateTime
lastComment: Comment
slug: String
title: String
updatedAt: DateTime
}
type Dashboard {
"""
Last public event publish
"""
lastPublicEventPublished: Event
"""
The number of local comments
"""
numberOfComments: Int
"""
The number of local events
"""
numberOfEvents: Int
"""
The number of current opened reports
"""
numberOfReports: Int
"""
The number of local users
"""
numberOfUsers: Int
}
"""
The `DateTime` scalar type represents a date and time in the UTC
timezone. The DateTime appears in a JSON response as an ISO8601 formatted
string, including UTC timezone ("Z"). The parsed date and time string will
be converted to UTC and any UTC offset other than 0 will be rejected.
"""
scalar DateTime
"""
Represents a deleted feed_token
"""
2019-04-26 15:22:16 +02:00
type DeletedFeedToken {
actor: DeletedObject
user: DeletedObject
2019-04-26 15:22:16 +02:00
}
"""
Represents a deleted member
"""
2019-04-26 15:22:16 +02:00
type DeletedMember {
actor: DeletedObject
parent: DeletedObject
2019-04-26 15:22:16 +02:00
}
"""
A struct containing the id of the deleted object
"""
2019-04-26 15:22:16 +02:00
type DeletedObject {
id: ID
2019-04-26 15:22:16 +02:00
}
"""
Represents a deleted participant
"""
2019-04-26 15:22:16 +02:00
type DeletedParticipant {
actor: DeletedObject
event: DeletedObject
id: ID
2019-04-26 15:22:16 +02:00
}
"""
An event
"""
type Event implements ActionLogObject {
"""
Who the event is attributed to (often a group)
"""
attributedTo: Actor
"""
Datetime for when the event begins
"""
beginsOn: DateTime
"""
The event's category
"""
category: String
"""
The comments in reply to the event
"""
comments: [Comment]
"""
When the event was created
"""
createdAt: DateTime
"""
The event's description
"""
description: String
"""
Whether or not the event is a draft
"""
draft: Boolean
"""
Datetime for when the event ends
"""
endsOn: DateTime
"""
Internal ID for this event
"""
id: ID
"""
The event's visibility
"""
joinOptions: EventJoinOptions
"""
Whether the event is local or not
"""
local: Boolean
"""
Online address of the event
"""
2019-09-09 11:21:42 +02:00
onlineAddress: String
"""
The event options
"""
options: EventOptions
"""
The event's organizer (as a person)
"""
organizerActor: Actor
participantStats: ParticipantStats
"""
The event's participants
"""
participants(
actorId: ID
limit: Int = 10
page: Int = 1
roles: String = ""
): PaginatedParticipantList
"""
Phone address for the event
"""
2019-09-09 11:21:42 +02:00
phoneAddress: String
"""
The type of the event's address
"""
physicalAddress: Address
"""
The event's picture
"""
picture: Picture
"""
When the event was published
"""
publishAt: DateTime
"""
Events related to this one
"""
relatedEvents: [Event]
"""
The event's description's slug
"""
slug: String
"""
Status of the event
"""
status: EventStatus
"""
The event's tags
"""
tags: [Tag]
"""
The event's title