odpol guide

Référence de l’API

Une API key permet à une autre application de travailler avec les données de votre organisation sans se connecter en tant que personne. Tout ce qui suit le texte est généré à partir du code d’odpol, et correspond donc toujours à l’API.

Créer une key

Le propriétaire crée les keys dans Administration → API keys. Une nouvelle key n’a aucune autorisation : accordez-les avec Modifier les autorisations, comme pour une personne. Le secret n’est affiché qu’une fois, à la création.

S’authentifier

Envoyez la key dans l’en-tête Authorization de chaque requête :

POST /api/graphql
Authorization: Bearer sk_…
Content-Type: application/json

Le point d’accès GraphQL est /api/graphql à l’adresse de l’application.

Expiration

Toute key expire, au plus tard 365 jours après sa création ou sa régénération. Le propriétaire reçoit un e-mail 30 et 7 jours avant la date. Régénérer une key lui donne un nouveau secret et une nouvelle expiration, et conserve ses autorisations.

Erreurs

Une key inconnue ou expirée est refusée avec HTTP 401 ; une key expirée porte le code API_KEY_EXPIRED. Une key valide sans l’autorisation requise est refusée avec le code FORBIDDEN.

Autorisations

AutorisationInclutPeut être limitée à une équipe
people.deletepeople.create, people.update, people.readNon
people.createpeople.update, people.readNon
people.updatepeople.readNon
people.readNon
teams.deleteteams.create, teams.update, teams.readNon
teams.createteams.update, teams.readNon
teams.updateteams.readOui
teams.readOui
events.deleteevents.create, events.update, events.readNon
events.createevents.update, events.readNon
events.updateevents.readNon
events.readNon
songs.deletesongs.create, songs.update, songs.readNon
songs.createsongs.update, songs.readNon
songs.updatesongs.readNon
songs.readNon
people.manageFieldspeople.readNon
people.manageAccountspeople.readNon
events.editProgramevents.editSetlist, events.readNon
events.editSetlistevents.readNon
events.editScheduleevents.readOui
songs.readLyricssongs.readNon
songs.readChordssongs.readNon
songs.downloadPPsongs.readNon
songs.manageAudiossongs.readNon
songs.importExportsongs.readLyrics, songs.readChords, songs.readNon
org.updateNon

Ce qu’une key ne peut pas utiliser

Zone de danger

Le propriétaire seulement, depuis l’application : keys, autorisations, facturation et l’organisation elle-même.

Personnel

Concerne la personne connectée, et une key n’est pas une personne.

Routes REST qu’une key peut utiliser

Schéma GraphQL

Télécharger schema.graphql

type ApiKey {
  createdAt: String!
  expiresAt: String!
  id: ID!
  lastUsedAt: String
  name: String!
  prefix: String!
}

enum AssignmentResponse {
  confirmed
  declined
}

enum AssignmentStatus {
  confirmed
  declined
  pending
}

type CreateApiKeyResult {
  apiKey: ApiKey!
  key: String!
}

type CueAbbreviation {
  abbreviation: String!
  cueLabel: String!
  id: ID!
}

type DashboardAssignment {
  eventId: Int!
  id: Int!
  orgId: String!
  slotId: Int!
  status: AssignmentStatus!
  userId: String!
}

type DashboardEvent {
  createdAt: String!
  date: String!
  id: Int!
  name: String!
  orgId: String!
  status: EventStatus!
  templateId: Int
}

type DashboardEventSlot {
  eventId: Int!
  id: Int!
  orgId: String!
  quantity: Int!
  skillId: Int!
  teamId: Int!
}

type DashboardOrgPerson {
  displayName: String!
  email: String
  id: String!
  monthlyAvailability: Int!
  photoUrl: String
}

type DashboardSkill {
  displayOrder: Int!
  id: Int!
  name: String!
  teamId: Int!
}

type DashboardTeam {
  id: Int!
  name: String!
}

type DashboardTeamMember {
  id: Int!
  teamId: Int!
  userId: String!
}

type DashboardTemplate {
  id: Int!
  name: String!
}

type Event {
  assignments: [EventAssignment!]!
  canEditSetlist: Boolean!
  date: String!
  id: ID!
  myAssignment: EventAssignment
  name: String!
  organization: Organization!
  phases: [EventPhase!]!
  rehearsals: [EventRehearsal!]!
  slots: [EventSlot!]!
  status: EventStatus!
  template: EventTemplate
}

type EventAssignment {
  event: Event!
  eventId: Int!
  id: ID!
  orgId: String!
  person: Person!
  seen: Boolean!
  slot: EventSlot!
  slotId: Int!
  status: AssignmentStatus!
  userId: String!
}

type EventAssignmentGroup {
  assignments: [DashboardAssignment!]!
  eventId: Int!
}

type EventListenPlaylist {
  included: Int!
  playlistId: String!
  skipped: Int!
  youtubeMusicUrl: String!
  youtubeUrl: String!
}

type EventPhase {
  event: Event!
  id: ID!
  items: [EventProgramItem!]!
  orderIndex: Int!
  type: EventPhaseType!
}

enum EventPhaseType {
  in
  post
  pre
}

type EventProgramItem {
  bpm: String
  customArrangement: [String!]
  director: Person
  directorId: String
  durationSeconds: Int!
  effectiveArrangement: [String!]!
  id: ID!
  notes: String
  orderIndex: Int!
  originalKey: MusicalKey
  performanceKey: MusicalKey
  performanceOffset: Int
  phase: EventPhase!
  phaseId: Int!
  song: ProgramSong
  songId: String
  title: String
  type: ProgramItemType!
}

type EventProgramResult {
  event: ProgramEvent!
  listenPlaylist: ProgramListenPlaylist!
  phases: [ProgramPhase!]!
}

type EventRehearsal {
  date: String!
  event: Event!
  id: ID!
}

type EventSlot {
  assignments: [EventAssignment!]!
  event: Event!
  eventId: Int!
  id: ID!
  orgId: String!
  quantity: Int!
  skill: TeamSkill!
  skillId: Int!
  team: Team!
  teamId: Int!
}

type EventSlotGroup {
  eventId: Int!
  slots: [DashboardEventSlot!]!
}

enum EventStatus {
  draft
  published
}

type EventTemplate {
  defaultRehearsals: [EventTemplateRehearsal!]!
  id: ID!
  name: String!
  organization: Organization!
  slots: [EventTemplateSlot!]!
}

type EventTemplateRehearsal {
  daysBefore: Int!
  id: ID!
  timeOfDay: String!
}

type EventTemplateSlot {
  id: ID!
  quantity: Int!
  skill: TeamSkill!
  team: Team!
  template: EventTemplate!
}

type EventsDashboard {
  eventAssignments: [EventAssignmentGroup!]!
  eventSlots: [EventSlotGroup!]!
  events: [DashboardEvent!]!
  memberSkills: [MemberSkillsGroup!]!
  orgName: String!
  orgPeople: [DashboardOrgPerson!]!
  teamMembers: [TeamMembersGroup!]!
  teamSkills: [TeamSkillGroup!]!
  teams: [DashboardTeam!]!
  templates: [DashboardTemplate!]!
}

type FamilyCandidates {
  children: [FamilyPerson!]!
  fathers: [FamilyPerson!]!
  mothers: [FamilyPerson!]!
  spouses: [FamilyPerson!]!
}

type FamilyPerson {
  displayName: String!
  gender: String
  id: ID!
  photoUrl: String
}

enum Gender {
  female
  male
}

type Helper {
  organization: Organization!
  person: Person!
}

enum Language {
  de
  en
  es
  fr
  pt
}

type LegalAcceptance {
  """
  The organization accepted some version once; a newer version does not take this back.
  """
  hasInitialAcceptance: Boolean!
  """
  What an owner is asked to accept today. Empty while the documents are not published.
  """
  inForce: [LegalDocumentVersion!]!
  """What is in force and the organization has not accepted."""
  pending: [LegalDocumentVersion!]!
}

type LegalDocumentVersion {
  document: String!
  version: String!
}

input LegalDocumentVersionInput {
  document: String!
  version: String!
}

enum MaritalStatus {
  deceased
  divorced
  married
  single
  widowed
}

enum MaritalStatusInput {
  divorced
  married
  single
  widowed
}

type Marriage {
  id: ID!
  person: Person!
  spouse: Person
}

type MarriageInfo {
  displayName: String
  external: Boolean!
  photoUrl: String
  spouseId: ID
}

type MemberSkillsGroup {
  skillIds: [Int!]!
  teamMemberId: Int!
}

type MusicalKey {
  id: ID!
  isMinor: Boolean!
  name: String!
  transpositionIndex: Int!
}

type Mutation {
  """
  The owner accepts, in the name of the organization, exactly the documents in force.
  """
  acceptLegalDocuments(documents: [LegalDocumentVersionInput!]!, orgId: String!): LegalAcceptance!
  """
  Makes the person a user. With email on, sends a confirmation link instead, and they become a user when they follow it.
  """
  activateUser(email: String!, personId: String!): Boolean!
  addSkillIncompatibility(orgId: String!, skillId1: Int!, skillId2: Int!): Boolean!
  addTeamMember(orgId: String!, teamId: Int!, userId: String!): TeamMember!
  assignTeamMemberSkill(orgId: String!, skillId: Int!, teamMemberId: Int!): TeamMemberSkill!
  clearEmailSuppression(personId: String!): Person!
  createApiKey(expiresInDays: Int, name: String!, orgId: String!): CreateApiKeyResult!
  createEvent(date: String!, name: String!, orgId: String!, rehearsals: [String!], templateId: Int): Event!
  createEventAssignment(eventId: Int!, orgId: String!, slotId: Int!, userId: String!): EventAssignment!
  createEventPhase(eventId: Int!, orderIndex: Int, orgId: String!, type: EventPhaseType!): EventPhase!
  createEventRehearsal(date: String!, eventId: Int!, orgId: String!): EventRehearsal!
  createEventSlot(eventId: Int!, orgId: String!, quantity: Int, skillId: Int!, teamId: Int!): EventSlot!
  createEventTemplate(name: String!, orgId: String!): EventTemplate!
  createEventTemplateRehearsal(daysBefore: Int!, orgId: String!, templateId: Int!, timeOfDay: String!): EventTemplateRehearsal!
  createEventTemplateSlot(orgId: String!, quantity: Int, skillId: Int!, teamId: Int!, templateId: Int!): EventTemplateSlot!
  createPeopleField(fieldType: PeopleFieldType!, isRequired: Boolean!, name: String!, optionsJson: String, orgId: String!): PeopleField!
  createPerson(birthDate: String!, fieldsJson: String, gender: Gender!, maritalStatus: MaritalStatusInput!, orgId: String!): Person!
  createProgramItem(bpm: String, directorId: String, durationSeconds: Int, eventId: Int, notes: String, orderIndex: Int, orgId: String!, performanceOffset: Int, phaseId: Int, phaseType: EventPhaseType, songId: Int, title: String, type: ProgramItemType): EventProgramItem!
  createSong(album: String!, appleMusicUrl: String, artist: String!, bpm: String!, chordsAndLyrics: String!, coverToken: String!, duration: Int!, inclusionDate: String, isMaleLead: Boolean!, orgId: String!, originalKeyId: Int!, recommendedFemaleOffset: Int!, recommendedMaleOffset: Int!, releaseYear: Int!, songbookId: Int!, spotifyUrl: String, timeSigDen: Int!, timeSigNum: Int!, title: String!, youtubeUrl: String): Song!
  createSongbook(defaultVisibility: SongbookVisibility, name: String!, orgId: String!): Songbook!
  createTeam(name: String!, orgId: String!): Team!
  createTeamSkill(name: String!, orgId: String!, teamId: Int!): TeamSkill!
  deactivateUser(personId: String!): Boolean!
  deleteApiKey(keyId: Int!, orgId: String!): Boolean!
  deleteCueAbbreviation(cueLabel: String!, orgId: String!): Boolean!
  deleteEvent(eventId: Int!, orgId: String!): Boolean!
  deleteEventAssignment(assignmentId: Int!, orgId: String!): Boolean!
  deleteEventPhase(orgId: String!, phaseId: Int!): Boolean!
  deleteEventRehearsal(orgId: String!, rehearsalId: Int!): Boolean!
  deleteEventSlot(orgId: String!, slotId: Int!): Boolean!
  deleteEventTemplate(orgId: String!, templateId: Int!): Boolean!
  deleteEventTemplateRehearsal(orgId: String!, rehearsalId: Int!): Boolean!
  deleteEventTemplateSlot(orgId: String!, slotId: Int!): Boolean!
  deleteOrg(id: String!): Boolean!
  deletePeopleField(fieldId: Int!, orgId: String!): Boolean!
  deletePerson(personId: String!): Boolean!
  deleteProgramItem(itemId: Int!, orgId: String!): Boolean!
  deleteSong(orgId: String!, songId: Int!): Boolean!
  deleteSongbook(orgId: String!, songbookId: Int!): Boolean!
  deleteTeam(orgId: String!, teamId: Int!): Boolean!
  deleteTeamSkill(orgId: String!, skillId: Int!): Boolean!
  deleteVocalAudio(audioId: String!, orgId: String!): Boolean!
  eventListenPlaylist(eventId: String!, orgId: String!): EventListenPlaylist!
  grantPermission(apiKeyId: Int, orgId: String!, permission: String!, skillId: Int, targetTeamId: Int, teamId: Int, userId: String): PermissionGrant!
  markConvocationsSeen(eventIds: [Int!]!, orgId: String!): Int!
  moveProgramItem(beforeItemId: Int, itemId: Int!, orgId: String!, toPhaseType: EventPhaseType!): EventProgramResult!
  regenerateApiKey(expiresInDays: Int, keyId: Int!, orgId: String!): CreateApiKeyResult!
  removeMarriage(orgId: String!, personId: String!): Boolean!
  removeOrgLogo(orgId: String!): Organization!
  removeParent(orgId: String!, personId: String!, role: ParentRole!): Boolean!
  removeSkillIncompatibility(orgId: String!, skillId1: Int!, skillId2: Int!): Boolean!
  removeTeamMember(orgId: String!, teamId: Int!, userId: String!): Boolean!
  removeTeamMemberSkill(orgId: String!, skillId: Int!, teamMemberId: Int!): Boolean!
  renameVocalAudio(audioId: String!, label: String!, orgId: String!): VocalAudio!
  reorderPeopleFields(fieldIds: [Int!]!, orgId: String!): Boolean!
  reorderProgramItems(orderedIds: [Int!]!, orgId: String!, phaseId: Int!): Boolean!
  reorderTeamSkills(orgId: String!, skillIds: [Int!]!, teamId: Int!): Boolean!
  respondEventAssignment(assignmentId: Int!, orgId: String!, status: AssignmentResponse!): EventAssignment!
  revokePermission(grantId: Int!, orgId: String!): Boolean!
  setMarriage(orgId: String!, personId: String!, spouseId: String): Boolean!
  setParent(orgId: String!, parentId: String!, personId: String!, role: ParentRole!): Boolean!
  setProgramItemArrangement(cues: [String!], itemId: Int!, orgId: String!): EventProgramItem!
  transferOrgOwner(newOwnerId: String!, orgId: String!): Boolean!
  updateEvent(date: String, eventId: Int!, name: String, orgId: String!, status: EventStatus): Event!
  updateEventAssignmentStatus(assignmentId: Int!, orgId: String!, status: AssignmentStatus!): EventAssignment!
  updateEventRehearsal(date: String!, orgId: String!, rehearsalId: Int!): EventRehearsal!
  updateEventSlot(orgId: String!, quantity: Int, slotId: Int!): EventSlot!
  updateEventTemplate(name: String, orgId: String!, templateId: Int!): EventTemplate!
  updateEventTemplateRehearsal(daysBefore: Int!, orgId: String!, rehearsalId: Int!, timeOfDay: String!): EventTemplateRehearsal!
  updateEventTemplateSlot(orgId: String!, quantity: Int, slotId: Int!): EventTemplateSlot!
  updateOrg(aliasTemplate: String, id: String!, name: String, planId: Int): Organization!
  updateOrgLanguage(language: Language!, orgId: String!): Organization!
  updateOrgTimezone(orgId: String!, timezone: String!): Organization!
  updatePeopleField(fieldId: Int!, fieldType: PeopleFieldType, isRequired: Boolean, name: String, optionsJson: String, orgId: String!): PeopleField!
  updatePerson(birthDate: String, deathDate: String, email: String, fieldsJson: String, gender: Gender, isActive: Int, maritalStatus: MaritalStatusInput, monthlyAvailability: Int, personId: String!): Person!
  updateProgramItem(bpm: String, directorId: String, durationSeconds: Int, itemId: Int!, notes: String, orderIndex: Int, orgId: String!, performanceOffset: Int, phaseId: Int, songId: Int, title: String, type: ProgramItemType): EventProgramItem!
  updateSong(album: String, appleMusicUrl: String, artist: String, bpm: String, chordsAndLyrics: String, duration: Int, inclusionDate: String, isMaleLead: Boolean, orgId: String!, originalKeyId: Int, recommendedFemaleOffset: Int, recommendedMaleOffset: Int, releaseYear: Int, songId: Int!, songbookId: Int, spotifyUrl: String, timeSigDen: Int, timeSigNum: Int, title: String, youtubeUrl: String): Song!
  updateSongbook(defaultVisibility: SongbookVisibility, name: String, orgId: String!, songbookId: Int!): Songbook!
  updateTeam(name: String, orgId: String!, teamId: Int!): Team!
  updateTeamSkill(displayOrder: Int, name: String, orgId: String!, skillId: Int!): TeamSkill!
  upsertCueAbbreviation(abbreviation: String!, cueLabel: String!, orgId: String!): CueAbbreviation!
}

type MyOrgEntry {
  createdAt: String!
  isPrimary: Boolean!
  orgId: ID!
  orgName: String!
  planId: Int!
}

type MyPermissions {
  assignedSetlistSkills: [Int!]!
  global: [String!]!
  isOwner: Boolean!
  myTeamIds: [Int!]!
  scoped: [ScopedPermission!]!
}

enum NoticeChannel {
  email
  none
  push
}

type NoticeReach {
  channel: NoticeChannel!
  pushDevices: [PushDevice!]!
}

type NoticeReachSummary {
  reached: Int!
  total: Int!
}

type OrgCueLabel {
  abbreviation: String!
  hasOverride: Boolean!
  label: String!
  usageCount: Int!
}

type OrgStorageUsage {
  limitBytes: Float!
  usedBytes: Float!
}

type Organization {
  aliasTemplate: String!
  createdAt: String!
  hasStripeCustomer: Boolean!
  hasStripeSubscription: Boolean!
  id: ID!
  isOwner: Boolean!
  isSponsored: Boolean!
  language: Language!
  logoUrl: String
  maxPeople: Int!
  name: String!
  ownerPersonId: String
  peopleCount: Int!
  plan: Plan!
  planId: Int!
  planName: String!
  storageTier: StorageTier
  subscriptionCurrentPeriodEnd: String
  subscriptionStatus: String!
  timezone: String!
  userCount: Int!
}

enum ParentRole {
  father
  mother
}

type PeopleField {
  displayOrder: Int!
  fieldType: PeopleFieldType!
  id: ID!
  isRequired: Boolean!
  name: String!
  options: [PeopleFieldOption!]!
}

type PeopleFieldOption {
  displayOrder: Int!
  id: ID!
  label: String!
}

enum PeopleFieldType {
  date
  multiselect
  number
  phone
  select
  text
}

type PeopleFieldValue {
  field: PeopleField!
  id: ID!
  option: PeopleFieldOption
  person: Person!
  value: String
}

type PermissionGrant {
  apiKeyId: Int
  createdAt: String!
  createdBy: String
  id: Int!
  permission: String!
  skillId: Int
  targetTeamId: Int
  teamId: Int
  userId: String
}

type Person {
  birthDate: String
  deathDate: String
  displayName: String!
  email: String
  emailUndeliverable: Boolean
  father: Person
  fieldValues: [PeopleFieldValue!]
  gender: String
  helperOrgs: [Helper!]
  id: ID!
  isOwner: Boolean
  isUser: Boolean
  maritalStatus: String
  marriage: Marriage
  monthlyAvailability: Int
  mother: Person
  noticeReach: NoticeReach
  organization: Organization!
  pendingEmail: String
  photoUrl: String
}

type PersonFamily {
  children: [FamilyPerson!]!
  father: FamilyPerson
  mother: FamilyPerson
}

type PersonFieldValue {
  fieldId: ID!
  list: [String!]
  text: String
}

type PersonProfile {
  candidates: FamilyCandidates
  family: PersonFamily
  marriage: MarriageInfo
  orgFields: [ProfileOrgField!]!
  person: ProfilePerson!
  teamMemberships: [ProfileTeamMembership!]!
}

type Plan {
  currency: String!
  id: ID!
  isPurchasable: Boolean!
  maxApiKeysPerOrg: Int!
  maxEvents: Int!
  maxFields: Int!
  maxPeople: Int!
  maxSkillsPerTeam: Int!
  maxSongs: Int!
  maxStorageBytes: Float!
  maxTeams: Int!
  maxTemplates: Int!
  name: String!
  orgCount: Int!
  price: String!
  prices: [PlanPrice!]!
}

type PlanPrice {
  amount: String!
  archivedAt: String
  createdAt: String!
  currency: String!
  id: ID!
  interval: PriceInterval!
  stripePriceId: String
}

enum PriceInterval {
  month
  year
}

type ProfileFieldOption {
  displayOrder: Int!
  id: ID!
  label: String!
}

type ProfileMembershipSkill {
  id: Int!
  skillId: Int!
  skillName: String!
}

type ProfileOrgField {
  displayOrder: Int!
  fieldOptions: [ProfileFieldOption!]!
  fieldType: PeopleFieldType!
  id: ID!
  isRequired: Boolean!
  name: String!
}

type ProfilePerson {
  birthDate: String!
  deathDate: String
  displayName: String!
  email: String
  fields: [PersonFieldValue!]!
  gender: Gender!
  id: ID!
  isActive: Int!
  isOwner: Boolean!
  isUser: Boolean!
  maritalStatus: MaritalStatus!
  monthlyAvailability: Int!
  orgId: String!
  pendingEmail: String
  """
  When the link to the pending address stops working, ISO 8601; null when nothing is pending.
  """
  pendingEmailExpiresAt: String
  photoUrl: String
}

type ProfileTeamMembership {
  skills: [ProfileMembershipSkill!]!
  teamId: Int!
  teamMemberId: Int!
  teamName: String!
}

type ProgramDirector {
  id: ID!
}

type ProgramEvent {
  date: String!
  id: String!
  name: String!
  orgId: String!
  status: EventStatus!
}

type ProgramItemDetails {
  bpm: String
  customArrangement: [String!]
  directorId: String
  durationSeconds: Int!
  effectiveArrangement: [String!]!
  id: String!
  notes: String
  orderIndex: Int!
  originalKey: MusicalKey
  performanceKey: MusicalKey
  performanceOffset: Int
  phaseId: String!
  songId: String
  title: String
  type: ProgramItemType!
}

type ProgramItemRow {
  director: ProgramDirector
  item: ProgramItemDetails!
  song: ProgramSong
  startTime: String!
}

enum ProgramItemType {
  item
  song
}

type ProgramListenPlaylist {
  enabled: Boolean!
  playableSongs: Int!
  songs: Int!
}

type ProgramPhase {
  id: String!
  items: [ProgramItemRow!]!
  orderIndex: Int!
  type: EventPhaseType!
}

type ProgramSong {
  appleMusicUrl: String
  artist: String!
  defaultArrangement: [String!]!
  id: String!
  sections: [SongSection!]!
  spotifyUrl: String
  title: String!
  youtubeUrl: String
}

enum PushDevice {
  android
  computer
  iphone
  unknown
}

type Query {
  apiKeys(limit: Int, offset: Int, orgId: String!): [ApiKey!]!
  event(id: String!, orgId: String!): Event
  eventAssignments(eventId: String!, limit: Int, offset: Int, orgId: String!): [EventAssignment!]!
  eventPhases(eventId: String!, limit: Int, offset: Int, orgId: String!): [EventPhase!]!
  eventProgram(eventId: String!, orgId: String!): EventProgramResult
  eventRehearsals(eventId: String!, limit: Int, offset: Int, orgId: String!): [EventRehearsal!]!
  eventSlots(eventId: String!, limit: Int, offset: Int, orgId: String!): [EventSlot!]!
  eventTemplate(id: String!, orgId: String!): EventTemplate
  eventTemplateSlots(limit: Int, offset: Int, orgId: String!, templateId: String!): [EventTemplateSlot!]!
  eventTemplates(limit: Int, offset: Int, orgId: String!): [EventTemplate!]!
  events(from: String, limit: Int, offset: Int, orgId: String!, to: String): [Event!]!
  eventsDashboard(from: String, orgId: String!, to: String): EventsDashboard!
  legalAcceptance(orgId: String!): LegalAcceptance!
  me: Person
  memberSkillsForMember(limit: Int, offset: Int, orgId: String!, teamMemberId: String!): [TeamMemberSkill!]!
  musicalKeys(limit: Int, offset: Int): [MusicalKey!]!
  myEventAssignments(eventId: String, limit: Int, offset: Int, orgId: String!): [EventAssignment!]!
  myOrgs: [MyOrgEntry!]!
  myPermissions(orgId: String!): MyPermissions!
  noticeReachSummary(orgId: String!): NoticeReachSummary!
  orgCueLabels(orgId: String!): [OrgCueLabel!]!
  orgGrants(limit: Int, offset: Int, orgId: String!): [PermissionGrant!]!
  orgHelpers(limit: Int, offset: Int, orgId: String!): [Person!]!
  orgOwner(orgId: String!): Person
  orgStorageUsage(orgId: String!): OrgStorageUsage!
  organization(id: String!): Organization
  people(limit: Int, offset: Int, orgId: String!, search: String): [Person!]!
  peopleField(id: String!, orgId: String!): PeopleField
  peopleFields(limit: Int, offset: Int, orgId: String!): [PeopleField!]!
  person(id: String!): Person
  personDashboard(personId: String!): Person
  personFamily(orgId: String!, personId: String!): PersonFamily
  personFamilyCandidates(orgId: String!, personId: String!): FamilyCandidates
  personMarriage(orgId: String!, personId: String!): MarriageInfo
  personProfile(personId: String!): PersonProfile
  plan(id: String!): Plan
  skillIncompatibility(limit: Int, offset: Int, orgId: String!, teamId: String): [SkillIncompatibility!]!
  song(id: String!, orgId: String!): Song
  songVocalAudios(limit: Int, offset: Int, orgId: String!, songId: String!): [VocalAudio!]!
  songbooks(limit: Int, offset: Int, orgId: String!): [Songbook!]!
  songs(limit: Int, offset: Int, orgId: String!, search: String, songbookIds: [Int!]): [Song!]!
  team(id: String!, orgId: String!): Team
  teamMemberCandidates(limit: Int, offset: Int, orgId: String!, teamId: String!): [Person!]!
  teamMemberSkillsByTeam(limit: Int, offset: Int, orgId: String!, teamId: String!): [TeamMemberSkill!]!
  teamMembers(limit: Int, offset: Int, orgId: String!, teamId: String!): [TeamMember!]!
  teamSkills(limit: Int, offset: Int, orgId: String!, teamId: String!): [TeamSkill!]!
  teamSkillsByOrg(limit: Int, offset: Int, orgId: String!): [TeamSkill!]!
  teams(limit: Int, offset: Int, orgId: String!): [Team!]!
}

type ScopedPermission {
  permission: String!
  teamIds: [Int!]!
}

type SkillIncompatibility {
  skillId1: String!
  skillId2: String!
}

type Song {
  album: String!
  appleMusicUrl: String
  artist: String!
  bpm: String!
  chordsAndLyrics: String
  coverUrl: String!
  defaultArrangement: [String!]!
  duration: Int!
  id: ID!
  inclusionDate: String!
  isMaleLead: Boolean!
  organization: Organization!
  originalKey: MusicalKey!
  recommendedFemaleOffset: Int!
  recommendedMaleOffset: Int!
  releaseYear: Int!
  sections: [SongSection!]!
  session: SongSession
  songbookId: String!
  spotifyUrl: String
  timeSigDen: Int!
  timeSigNum: Int!
  title: String!
  youtubeUrl: String
}

type SongSection {
  abbreviation: String!
  content: String!
  label: String!
}

type SongSession {
  fileName: String!
  sizeBytes: Float!
  uploadedAt: String!
}

type Songbook {
  defaultVisibility: SongbookVisibility!
  id: ID!
  name: String!
  organization: Organization!
  songs: [Song!]!
}

enum SongbookVisibility {
  disabled
  hidden
  visible
}

type StorageTier {
  extraBytes: Float!
  id: Int!
  name: String!
}

type Team {
  id: ID!
  name: String!
  organization: Organization!
  teamMembers: [TeamMember!]!
  teamSkills: [TeamSkill!]!
}

type TeamMember {
  id: ID!
  person: Person!
  team: Team!
  teamMemberSkills(limit: Int, offset: Int): [TeamMemberSkill!]!
}

type TeamMemberSkill {
  id: ID!
  teamMember: TeamMember!
  teamSkill: TeamSkill!
}

type TeamMembersGroup {
  members: [DashboardTeamMember!]!
  teamId: Int!
}

type TeamSkill {
  displayOrder: Int!
  id: ID!
  incompatibilities(limit: Int, offset: Int): [SkillIncompatibility!]!
  name: String!
  team: Team!
}

type TeamSkillGroup {
  skills: [DashboardSkill!]!
  teamId: Int!
}

type VocalAudio {
  bitrate: Int!
  createdAt: String!
  durationSeconds: Int!
  id: ID!
  label: String!
  originalFilename: String!
  sizeBytes: Int!
  songId: ID!
}