Schema for Heimdall Session Scopes

From SessionScopes.schema.yaml (heimdall/SessionScopes.schema)

---
$id: https://skeleton.botmd.io/heimdall/SessionScopes.schema
$schema: http://json-schema.org/draft-07/schema#

title: Session Scopes
description: >-
  `Session.scopes` are used to limit what a user can/cannot do.
  Sessions can only use scopes from the same application.

oneOf:
  - title: Hospital
    $ref: /hospital/SessionScopes.schema

  - title: Hospital (Chemocalc)
    $ref: /hospital/ChemocalcSessionScopes.schema

  - title: Cleo
    $ref: /cleo/SessionScopes.schema

  - title: Maxwell
    $ref: /maxwell/SessionScopes.schema

  - title: Merlin
    $ref: /merlin/SessionScopes.schema

  - title: Einstein
    $ref: /einstein/SessionScopes.schema

  - title: Faraday
    $ref: /faraday/SessionScopes.schema

  - title: Sgid
    description: For Sgid session
    type: array
    uniqueItems: true
    minItems: 1
    items:
      type: string
      enum: ["sgid"]

  - title: Internal Services
    description: Used by internal services to access Hippocrates services. `tester` is used in unit tests only.

    type: array
    minItems: 1
    uniqueItems: true
    items:
      type: string
      enum: ["internal:chatterbox", "internal:stitch", "tester"]

  - title: Anonymous
    description: Anonymous sessions should have empty (`[]`) scopes.

    type: array
    maxItems: 0
#end anyOf

[Main Page] [Schema Documentation] [Examples]