2019-07-26 11:30:28 +02:00
|
|
|
|
# source: http://localhost:4000/api
|
2019-12-17 12:09:24 +01:00
|
|
|
|
# timestamp: Tue Dec 17 2019 11:21:37 GMT+0100 (heure normale d’Europe centrale)
|
2019-04-26 15:22:16 +02:00
|
|
|
|
|
|
|
|
|
schema {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
query: RootQueryType
|
|
|
|
|
mutation: RootMutationType
|
2019-12-03 11:29:51 +01:00
|
|
|
|
subscription: RootSubscriptionType
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""An action log"""
|
|
|
|
|
type ActionLog {
|
|
|
|
|
"""The action that was done"""
|
2019-09-09 09:31:08 +02:00
|
|
|
|
action: ActionLogAction
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
|
|
|
|
"""The actor that acted"""
|
|
|
|
|
actor: Actor
|
|
|
|
|
|
|
|
|
|
"""Internal ID for this comment"""
|
|
|
|
|
id: ID
|
|
|
|
|
|
2019-09-09 09:31:08 +02:00
|
|
|
|
"""The time when the action was performed"""
|
|
|
|
|
insertedAt: DateTime
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""The object that was acted upon"""
|
|
|
|
|
object: ActionLogObject
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-09 09:31:08 +02:00
|
|
|
|
enum ActionLogAction {
|
2019-12-03 11:29:51 +01:00
|
|
|
|
COMMENT_DELETION
|
2019-09-09 09:31:08 +02:00
|
|
|
|
EVENT_DELETION
|
|
|
|
|
EVENT_UPDATE
|
|
|
|
|
NOTE_CREATION
|
|
|
|
|
NOTE_DELETION
|
|
|
|
|
REPORT_UPDATE_CLOSED
|
|
|
|
|
REPORT_UPDATE_OPENED
|
|
|
|
|
REPORT_UPDATE_RESOLVED
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""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 {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""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"""
|
2019-09-09 09:31:08 +02:00
|
|
|
|
id: ID
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
|
|
|
|
"""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 {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
country: String
|
|
|
|
|
description: String
|
|
|
|
|
|
|
|
|
|
"""The geocoordinates for the point where this address is"""
|
|
|
|
|
geom: Point
|
2019-09-09 09:31:08 +02:00
|
|
|
|
id: ID
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
|
|
|
|
"""The address's locality"""
|
|
|
|
|
locality: String
|
2019-08-22 15:57:44 +02:00
|
|
|
|
originId: String
|
2019-07-26 11:30:28 +02:00
|
|
|
|
postalCode: String
|
|
|
|
|
region: String
|
|
|
|
|
|
|
|
|
|
"""The address's street name (with number)"""
|
|
|
|
|
street: String
|
2019-11-08 19:37:14 +01:00
|
|
|
|
type: String
|
2019-07-30 16:40:59 +02:00
|
|
|
|
url: String
|
2019-07-26 11:30:28 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-30 10:35:29 +02:00
|
|
|
|
input AddressInput {
|
|
|
|
|
country: String
|
|
|
|
|
description: String
|
|
|
|
|
|
|
|
|
|
"""The geocoordinates for the point where this address is"""
|
|
|
|
|
geom: Point
|
2019-09-09 09:31:08 +02:00
|
|
|
|
id: ID
|
2019-07-30 10:35:29 +02:00
|
|
|
|
|
|
|
|
|
"""The address's locality"""
|
|
|
|
|
locality: String
|
2019-08-22 15:57:44 +02:00
|
|
|
|
originId: String
|
2019-07-30 10:35:29 +02:00
|
|
|
|
postalCode: String
|
|
|
|
|
region: String
|
|
|
|
|
|
|
|
|
|
"""The address's street name (with number)"""
|
|
|
|
|
street: String
|
2019-11-08 19:37:14 +01:00
|
|
|
|
type: String
|
2019-07-30 16:40:59 +02:00
|
|
|
|
url: String
|
2019-07-30 10:35:29 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-03 11:29:51 +01:00
|
|
|
|
"""
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""A comment"""
|
2019-12-03 11:29:51 +01:00
|
|
|
|
type Comment implements ActionLogObject {
|
2019-11-15 18:36:47 +01:00
|
|
|
|
actor: Person
|
|
|
|
|
deletedAt: DateTime
|
|
|
|
|
event: Event
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Internal ID for this comment"""
|
|
|
|
|
id: ID
|
2019-11-15 18:36:47 +01:00
|
|
|
|
inReplyToComment: Comment
|
|
|
|
|
insertedAt: DateTime
|
2019-07-26 11:30:28 +02:00
|
|
|
|
local: Boolean
|
2019-11-15 18:36:47 +01:00
|
|
|
|
originComment: Comment
|
2019-07-26 11:30:28 +02:00
|
|
|
|
primaryLanguage: String
|
|
|
|
|
replies: [Comment]
|
|
|
|
|
text: String
|
|
|
|
|
threadLanguages: [String]!
|
2019-11-15 18:36:47 +01:00
|
|
|
|
totalReplies: Int
|
|
|
|
|
updatedAt: DateTime
|
2019-07-26 11:30:28 +02:00
|
|
|
|
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
|
|
|
|
|
|
2019-09-24 18:47:35 +02:00
|
|
|
|
"""Publicly listed and federated. Can be shared."""
|
2019-07-26 11:30:28 +02:00
|
|
|
|
PUBLIC
|
|
|
|
|
|
|
|
|
|
"""Visible only to people with the link - or invited"""
|
|
|
|
|
UNLISTED
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
"""A config object"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type Config {
|
2019-11-08 19:37:14 +01:00
|
|
|
|
countryCode: String
|
2019-11-21 16:07:43 +01:00
|
|
|
|
demoMode: Boolean
|
2019-07-26 11:30:28 +02:00
|
|
|
|
description: String
|
2019-11-20 13:49:57 +01:00
|
|
|
|
geocoding: Geocoding
|
2019-11-08 19:37:14 +01:00
|
|
|
|
location: Lonlat
|
2019-11-20 13:49:57 +01:00
|
|
|
|
maps: Maps
|
2019-07-26 11:30:28 +02:00
|
|
|
|
name: String
|
|
|
|
|
registrationsOpen: Boolean
|
2019-12-17 12:09:24 +01:00
|
|
|
|
registrationsWhitelist: Boolean
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-09-09 09:31:08 +02:00
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""
|
|
|
|
|
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 {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
actor: DeletedObject
|
|
|
|
|
user: DeletedObject
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Represents a deleted member"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type DeletedMember {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
actor: DeletedObject
|
|
|
|
|
parent: DeletedObject
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""A struct containing the id of the deleted object"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type DeletedObject {
|
2019-09-09 09:31:08 +02:00
|
|
|
|
id: ID
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Represents a deleted participant"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type DeletedParticipant {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
actor: DeletedObject
|
|
|
|
|
event: DeletedObject
|
2019-09-20 18:22:03 +02:00
|
|
|
|
id: ID
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""An event"""
|
2019-09-09 09:31:08 +02:00
|
|
|
|
type Event implements ActionLogObject {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""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
|
|
|
|
|
|
2019-11-15 18:36:47 +01:00
|
|
|
|
"""The comments in reply to the event"""
|
|
|
|
|
comments: [Comment]
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""When the event was created"""
|
|
|
|
|
createdAt: DateTime
|
|
|
|
|
|
|
|
|
|
"""The event's description"""
|
|
|
|
|
description: String
|
|
|
|
|
|
2019-10-02 17:59:07 +02:00
|
|
|
|
"""Whether or not the event is a draft"""
|
|
|
|
|
draft: Boolean
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Datetime for when the event ends"""
|
|
|
|
|
endsOn: DateTime
|
|
|
|
|
|
|
|
|
|
"""Internal ID for this event"""
|
2019-09-09 09:31:08 +02:00
|
|
|
|
id: ID
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
2019-09-20 18:22:03 +02:00
|
|
|
|
"""The event's visibility"""
|
|
|
|
|
joinOptions: EventJoinOptions
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Whether the event is local or not"""
|
|
|
|
|
local: Boolean
|
|
|
|
|
|
|
|
|
|
"""Online address of the event"""
|
2019-09-09 11:21:42 +02:00
|
|
|
|
onlineAddress: String
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
2019-08-28 11:28:27 +02:00
|
|
|
|
"""The event options"""
|
|
|
|
|
options: EventOptions
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""The event's organizer (as a person)"""
|
|
|
|
|
organizerActor: Actor
|
2019-09-11 16:37:30 +02:00
|
|
|
|
participantStats: ParticipantStats
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
|
|
|
|
"""The event's participants"""
|
2019-09-26 16:38:58 +02:00
|
|
|
|
participants(actorId: ID, limit: Int = 10, page: Int = 1, roles: String = ""): [Participant]
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
|
|
|
|
"""Phone address for the event"""
|
2019-09-09 11:21:42 +02:00
|
|
|
|
phoneAddress: String
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
|
|
|
|
"""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"""
|
|
|
|
|
title: String
|
|
|
|
|
|
|
|
|
|
"""When the event was last updated"""
|
|
|
|
|
updatedAt: DateTime
|
|
|
|
|
|
|
|
|
|
"""The ActivityPub Event URL"""
|
|
|
|
|
url: String
|
|
|
|
|
|
|
|
|
|
"""The Event UUID"""
|
|
|
|
|
uuid: UUID
|
|
|
|
|
|
2019-09-20 18:22:03 +02:00
|
|
|
|
"""The event's visibility"""
|
2019-07-26 11:30:28 +02:00
|
|
|
|
visibility: EventVisibility
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-28 11:28:27 +02:00
|
|
|
|
"""The list of possible options for the event's status"""
|
|
|
|
|
enum EventCommentModeration {
|
|
|
|
|
"""Anyone can comment under the event"""
|
|
|
|
|
ALLOW_ALL
|
|
|
|
|
|
|
|
|
|
"""No one can comment except for the admin"""
|
|
|
|
|
CLOSED
|
|
|
|
|
|
|
|
|
|
"""Every comment has to be moderated by the admin"""
|
|
|
|
|
MODERATED
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-20 18:22:03 +02:00
|
|
|
|
"""The list of join options for an event"""
|
|
|
|
|
enum EventJoinOptions {
|
|
|
|
|
"""Anyone can join and is automatically accepted"""
|
|
|
|
|
FREE
|
|
|
|
|
|
|
|
|
|
"""Participants must be invited"""
|
|
|
|
|
INVITE
|
|
|
|
|
|
|
|
|
|
"""Manual acceptation"""
|
|
|
|
|
RESTRICTED
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-28 11:28:27 +02:00
|
|
|
|
type EventOffer {
|
|
|
|
|
"""The price amount for this offer"""
|
|
|
|
|
price: Float
|
|
|
|
|
|
|
|
|
|
"""The currency for this price offer"""
|
|
|
|
|
priceCurrency: String
|
|
|
|
|
|
|
|
|
|
"""The URL to access to this offer"""
|
|
|
|
|
url: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input EventOfferInput {
|
|
|
|
|
"""The price amount for this offer"""
|
|
|
|
|
price: Float
|
|
|
|
|
|
|
|
|
|
"""The currency for this price offer"""
|
|
|
|
|
priceCurrency: String
|
|
|
|
|
|
|
|
|
|
"""The URL to access to this offer"""
|
|
|
|
|
url: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type EventOptions {
|
|
|
|
|
"""The list of special attendees"""
|
|
|
|
|
attendees: [String]
|
|
|
|
|
|
|
|
|
|
"""The policy on public comment moderation under the event"""
|
|
|
|
|
commentModeration: EventCommentModeration
|
|
|
|
|
|
|
|
|
|
"""The maximum attendee capacity for this event"""
|
|
|
|
|
maximumAttendeeCapacity: Int
|
|
|
|
|
|
|
|
|
|
"""The list of offers to show for this event"""
|
|
|
|
|
offers: [EventOffer]
|
|
|
|
|
|
|
|
|
|
"""The list of participation conditions to accept to join this event"""
|
|
|
|
|
participationConditions: [EventParticipationCondition]
|
|
|
|
|
|
|
|
|
|
"""The list of the event"""
|
|
|
|
|
program: String
|
|
|
|
|
|
|
|
|
|
"""The number of remaining seats for this event"""
|
|
|
|
|
remainingAttendeeCapacity: Int
|
|
|
|
|
|
2019-10-14 19:29:18 +02:00
|
|
|
|
"""Show event end time"""
|
|
|
|
|
showEndTime: Boolean
|
|
|
|
|
|
2019-08-28 11:28:27 +02:00
|
|
|
|
"""Whether or not to show the participation price"""
|
|
|
|
|
showParticipationPrice: Boolean
|
|
|
|
|
|
|
|
|
|
"""Whether or not to show the number of remaining seats for this event"""
|
|
|
|
|
showRemainingAttendeeCapacity: Boolean
|
2019-10-14 19:29:18 +02:00
|
|
|
|
|
|
|
|
|
"""Show event start time"""
|
|
|
|
|
showStartTime: Boolean
|
2019-08-28 11:28:27 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input EventOptionsInput {
|
|
|
|
|
"""The list of special attendees"""
|
|
|
|
|
attendees: [String]
|
|
|
|
|
|
|
|
|
|
"""The policy on public comment moderation under the event"""
|
|
|
|
|
commentModeration: EventCommentModeration
|
|
|
|
|
|
|
|
|
|
"""The maximum attendee capacity for this event"""
|
|
|
|
|
maximumAttendeeCapacity: Int
|
|
|
|
|
|
|
|
|
|
"""The list of offers to show for this event"""
|
|
|
|
|
offers: [EventOfferInput]
|
|
|
|
|
|
|
|
|
|
"""The list of participation conditions to accept to join this event"""
|
|
|
|
|
participationConditions: [EventParticipationConditionInput]
|
|
|
|
|
|
|
|
|
|
"""The list of the event"""
|
|
|
|
|
program: String
|
|
|
|
|
|
|
|
|
|
"""The number of remaining seats for this event"""
|
|
|
|
|
remainingAttendeeCapacity: Int
|
|
|
|
|
|
2019-10-14 19:29:18 +02:00
|
|
|
|
"""Show event end time"""
|
|
|
|
|
showEndTime: Boolean
|
|
|
|
|
|
2019-08-28 11:28:27 +02:00
|
|
|
|
"""Whether or not to show the participation price"""
|
|
|
|
|
showParticipationPrice: Boolean
|
|
|
|
|
|
|
|
|
|
"""Whether or not to show the number of remaining seats for this event"""
|
|
|
|
|
showRemainingAttendeeCapacity: Boolean
|
2019-10-14 19:29:18 +02:00
|
|
|
|
|
|
|
|
|
"""Show event start time"""
|
|
|
|
|
showStartTime: Boolean
|
2019-08-28 11:28:27 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type EventParticipationCondition {
|
|
|
|
|
"""The content for this condition"""
|
|
|
|
|
content: String
|
|
|
|
|
|
|
|
|
|
"""The title for this condition"""
|
|
|
|
|
title: String
|
|
|
|
|
|
|
|
|
|
"""The URL to access this condition"""
|
|
|
|
|
url: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input EventParticipationConditionInput {
|
|
|
|
|
"""The content for this condition"""
|
|
|
|
|
content: String
|
|
|
|
|
|
|
|
|
|
"""The title for this condition"""
|
|
|
|
|
title: String
|
|
|
|
|
|
|
|
|
|
"""The URL to access this condition"""
|
|
|
|
|
url: String
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Search events result"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type Events {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Event elements"""
|
|
|
|
|
elements: [Event]!
|
|
|
|
|
|
|
|
|
|
"""Total elements"""
|
|
|
|
|
total: Int!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
"""The list of possible options for the event's status"""
|
|
|
|
|
enum EventStatus {
|
|
|
|
|
"""The event is cancelled"""
|
|
|
|
|
CANCELLED
|
|
|
|
|
|
|
|
|
|
"""The event is confirmed"""
|
|
|
|
|
CONFIRMED
|
|
|
|
|
|
|
|
|
|
"""The event is tentative"""
|
|
|
|
|
TENTATIVE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
"""The list of visibility options for an event"""
|
|
|
|
|
enum EventVisibility {
|
|
|
|
|
"""Visible only to people members of the group or followers of the person"""
|
|
|
|
|
PRIVATE
|
|
|
|
|
|
2019-09-04 18:24:31 +02:00
|
|
|
|
"""Publicly listed and federated. Can be shared."""
|
2019-07-26 11:30:28 +02:00
|
|
|
|
PUBLIC
|
|
|
|
|
|
2019-09-20 18:22:03 +02:00
|
|
|
|
"""Visible only after a moderator accepted"""
|
|
|
|
|
RESTRICTED
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Visible only to people with the link - or invited"""
|
|
|
|
|
UNLISTED
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Represents a participant to an event"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type FeedToken {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""The event which the actor participates in"""
|
|
|
|
|
actor: Actor
|
|
|
|
|
|
|
|
|
|
"""The role of this actor at this event"""
|
|
|
|
|
token: String
|
|
|
|
|
|
|
|
|
|
"""The actor that participates to the event"""
|
|
|
|
|
user: User
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
Represents an actor's follower
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
2019-04-26 15:22:16 +02:00
|
|
|
|
"""
|
|
|
|
|
type Follower {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Which profile follows"""
|
|
|
|
|
actor: Actor
|
|
|
|
|
|
|
|
|
|
"""Whether the follow has been approved by the target actor"""
|
|
|
|
|
approved: Boolean
|
|
|
|
|
|
2019-12-03 11:29:51 +01:00
|
|
|
|
"""When the follow was created"""
|
|
|
|
|
insertedAt: DateTime
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""What or who the profile follows"""
|
|
|
|
|
targetActor: Actor
|
2019-12-03 11:29:51 +01:00
|
|
|
|
|
|
|
|
|
"""When the follow was updated"""
|
|
|
|
|
updatedAt: DateTime
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-20 13:49:57 +01:00
|
|
|
|
type Geocoding {
|
|
|
|
|
autocomplete: Boolean
|
|
|
|
|
provider: String
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-26 15:22:16 +02:00
|
|
|
|
"""
|
|
|
|
|
Represents a group of actors
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
2019-04-26 15:22:16 +02:00
|
|
|
|
"""
|
|
|
|
|
type Group implements Actor {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""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 group"""
|
2019-09-09 09:31:08 +02:00
|
|
|
|
id: ID
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
|
|
|
|
"""If the actor is from this instance"""
|
|
|
|
|
local: Boolean
|
|
|
|
|
|
|
|
|
|
"""Whether the actors manually approves followers"""
|
|
|
|
|
manuallyApprovesFollowers: Boolean
|
|
|
|
|
|
|
|
|
|
"""List of group members"""
|
|
|
|
|
members: [Member]!
|
|
|
|
|
|
|
|
|
|
"""The actor's displayed name"""
|
|
|
|
|
name: String
|
|
|
|
|
|
|
|
|
|
"""Whether the group is opened to all or has restricted access"""
|
|
|
|
|
openness: Openness
|
|
|
|
|
|
|
|
|
|
"""A list of the events this actor has organized"""
|
|
|
|
|
organizedEvents: [Event]
|
|
|
|
|
|
|
|
|
|
"""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 type of group : Group, Community,…"""
|
|
|
|
|
types: GroupType
|
|
|
|
|
|
|
|
|
|
"""The ActivityPub actor's URL"""
|
|
|
|
|
url: String
|
2019-05-31 17:58:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Search groups result"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type Groups {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Group elements"""
|
|
|
|
|
elements: [Group]!
|
|
|
|
|
|
|
|
|
|
"""Total elements"""
|
|
|
|
|
total: Int!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
The types of Group that exist
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
enum GroupType {
|
|
|
|
|
"""A public group of many actors"""
|
|
|
|
|
COMMUNITY
|
|
|
|
|
|
|
|
|
|
"""A private group of persons"""
|
|
|
|
|
GROUP
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""A JWT and the associated user ID"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type Login {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""A JWT Token for this session"""
|
2019-08-21 11:25:09 +02:00
|
|
|
|
accessToken: String!
|
|
|
|
|
|
|
|
|
|
"""A JWT Token to refresh the access token"""
|
|
|
|
|
refreshToken: String!
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
|
|
|
|
"""The user associated to this session"""
|
|
|
|
|
user: User!
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-08 19:37:14 +01:00
|
|
|
|
type Lonlat {
|
|
|
|
|
accuracyRadius: Int
|
|
|
|
|
latitude: Float
|
|
|
|
|
longitude: Float
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-20 13:49:57 +01:00
|
|
|
|
type Maps {
|
|
|
|
|
tiles: Tiles
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-26 15:22:16 +02:00
|
|
|
|
"""
|
|
|
|
|
Represents a member of a group
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
2019-04-26 15:22:16 +02:00
|
|
|
|
"""
|
|
|
|
|
type Member {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Which profile is member of"""
|
|
|
|
|
actor: Person
|
|
|
|
|
|
|
|
|
|
"""Of which the profile is member"""
|
|
|
|
|
parent: Group
|
|
|
|
|
|
|
|
|
|
"""The role of this membership"""
|
|
|
|
|
role: Int
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""
|
|
|
|
|
Describes how an actor is opened to follows
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
enum Openness {
|
|
|
|
|
"""The actor can only be followed by invitation"""
|
|
|
|
|
INVITE_ONLY
|
|
|
|
|
|
|
|
|
|
"""The actor needs to accept the following before it's effective"""
|
|
|
|
|
MODERATED
|
|
|
|
|
|
|
|
|
|
"""The actor is open to followings"""
|
|
|
|
|
OPEN
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-03 11:29:51 +01:00
|
|
|
|
type PaginatedFollowerList {
|
|
|
|
|
"""A list of followers"""
|
|
|
|
|
elements: [Follower]
|
|
|
|
|
|
|
|
|
|
"""The total number of elements in the list"""
|
|
|
|
|
total: Int
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""Represents a participant to an event"""
|
2019-04-26 15:22:16 +02:00
|
|
|
|
type Participant {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""The actor that participates to the event"""
|
|
|
|
|
actor: Actor
|
|
|
|
|
|
|
|
|
|
"""The event which the actor participates in"""
|
|
|
|
|
event: Event
|
|
|
|
|
|
2019-09-20 18:22:03 +02:00
|
|
|
|
"""The participation ID"""
|
|
|
|
|
id: ID
|
|
|
|
|
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""The role of this actor at this event"""
|
2019-09-20 18:22:03 +02:00
|
|
|
|
role: ParticipantRoleEnum
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum ParticipantRoleEnum {
|
|
|
|
|
ADMINISTRATOR
|
|
|
|
|
CREATOR
|
|
|
|
|
MODERATOR
|
|
|
|
|
NOT_APPROVED
|
|
|
|
|
PARTICIPANT
|
2019-09-30 13:48:47 +02:00
|
|
|
|
REJECTED
|
2019-04-26 15:22:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-09-11 16:37:30 +02:00
|
|
|
|
type ParticipantStats {
|
2019-10-25 17:43:37 +02:00
|
|
|
|
"""The number of administrators"""
|
|
|
|
|
administrator: Int
|
|
|
|
|
|
|
|
|
|
"""The number of creators"""
|
|
|
|
|
creator: Int
|
|
|
|
|
|
2019-09-11 16:37:30 +02:00
|
|
|
|
"""The number of approved participants"""
|
2019-10-25 17:43:37 +02:00
|
|
|
|
going: Int
|
|
|
|
|
|
|
|
|
|
"""The number of moderators"""
|
|
|
|
|
moderator: Int
|
|
|
|
|
|
|
|
|
|
"""The number of not approved participants"""
|
|
|
|
|
notApproved: Int
|
2019-09-11 16:37:30 +02:00
|
|
|
|
|
2019-10-11 11:54:57 +02:00
|
|
|
|
"""The number of simple participants (excluding creators)"""
|
2019-10-25 17:43:37 +02:00
|
|
|
|
participant: Int
|
2019-10-11 11:54:57 +02:00
|
|
|
|
|
2019-09-30 13:48:47 +02:00
|
|
|
|
"""The number of rejected participants"""
|
|
|
|
|
rejected: Int
|
2019-09-11 16:37:30 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-26 15:22:16 +02:00
|
|
|
|
"""
|
|
|
|
|
Represents a person identity
|
2019-07-26 11:30:28 +02:00
|
|
|
|
|
2019-04-26 15:22:16 +02:00
|
|
|
|
"""
|
|
|
|
|
type Person implements Actor {
|
2019-07-26 11:30:28 +02:00
|
|
|
|
"""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
|
|
|
|
|
|
|
|
|
|
"""A list of the feed tokens for this person"""
|
|
|
|
|
feedTokens: [FeedToken]
|
|
|
|
|
|
|
|
|
|
"""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
|
|