odpol guide

API-Referenz

Mit einem API-Schlüssel arbeitet eine andere Anwendung mit den Daten Ihrer Organisation, ohne sich als Person anzumelden. Alles nach dem Text wird aus dem Code von odpol erzeugt und entspricht daher immer der API.

Einen Schlüssel erstellen

Der Inhaber erstellt Schlüssel unter Verwaltung → API-Schlüssel. Ein neuer Schlüssel hat keine Berechtigungen: Vergeben Sie sie mit Berechtigungen bearbeiten, wie bei einer Person. Das Geheimnis wird nur einmal angezeigt, beim Erstellen.

Authentifizierung

Senden Sie den Schlüssel im Header Authorization jeder Anfrage:

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

Der GraphQL-Endpunkt ist /api/graphql unter der Adresse der Anwendung.

Ablauf

Jeder Schlüssel läuft ab, spätestens 365 Tage nach dem Erstellen oder Neugenerieren. Der Inhaber erhält 30 und 7 Tage vorher eine E-Mail. Neugenerieren gibt dem Schlüssel ein neues Geheimnis und ein neues Ablaufdatum und behält seine Berechtigungen.

Fehler

Ein unbekannter oder abgelaufener Schlüssel wird mit HTTP 401 abgewiesen; ein abgelaufener trägt den Code API_KEY_EXPIRED. Ein gültiger Schlüssel ohne die nötige Berechtigung wird mit dem Code FORBIDDEN abgewiesen.

Berechtigungen

BerechtigungUmfasstAuf ein Team beschränkbar
people.deletepeople.create, people.update, people.readNein
people.createpeople.update, people.readNein
people.updatepeople.readNein
people.readNein
teams.deleteteams.create, teams.update, teams.readNein
teams.createteams.update, teams.readNein
teams.updateteams.readJa
teams.readJa
events.deleteevents.create, events.update, events.readNein
events.createevents.update, events.readNein
events.updateevents.readNein
events.readNein
songs.deletesongs.create, songs.update, songs.readNein
songs.createsongs.update, songs.readNein
songs.updatesongs.readNein
songs.readNein
people.manageFieldspeople.readNein
people.manageAccountspeople.readNein
events.editProgramevents.editSetlist, events.readNein
events.editSetlistevents.readNein
events.editScheduleevents.readJa
songs.readLyricssongs.readNein
songs.readChordssongs.readNein
songs.downloadPPsongs.readNein
songs.manageAudiossongs.readNein
songs.importExportsongs.readLyrics, songs.readChords, songs.readNein
org.updateNein

Was ein Schlüssel nicht verwenden kann

Gefahrenzone

Nur der Inhaber, in der Anwendung: Schlüssel, Berechtigungen, Abrechnung und die Organisation selbst.

Persönlich

Betrifft die angemeldete Person, und ein Schlüssel ist keine Person.

REST-Routen, die ein Schlüssel verwenden kann

GraphQL-Schema

schema.graphql herunterladen

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!
}