ludusavi 0.31.0

Game save backup tool
Documentation
---
$schema: "http://json-schema.org/draft-07/schema#"
title: Input
description: "The full input to the `api` command."
type: object
required:
  - requests
properties:
  config:
    description: Override configuration.
    default:
      backupPath: ~
    allOf:
      - $ref: "#/definitions/ConfigOverride"
  requests:
    description: The order of the requests here will match the order of responses in the output.
    type: array
    items:
      $ref: "#/definitions/Request"
definitions:
  CheckAppUpdate:
    description: Check whether an application update is available.
    type: object
  ConfigOverride:
    description: Overridden configuration.
    type: object
    properties:
      backupPath:
        description: Directory where Ludusavi stores backups.
        anyOf:
          - $ref: "#/definitions/FilePath"
          - type: "null"
  EditBackup:
    description: "Edit a backup's metadata."
    type: object
    properties:
      backup:
        description: "Edit a specific backup, using an ID returned by the `backups` command. When not specified, this defaults to the latest backup."
        default: ~
        type:
          - string
          - "null"
      comment:
        description: "If set, update the backup's comment. To delete an existing comment, set this to an empty string."
        default: ~
        type:
          - string
          - "null"
      game:
        description: Which game to edit.
        default: ""
        type: string
      locked:
        description: "If set, indicates whether the backup should be locked."
        default: ~
        type:
          - boolean
          - "null"
  FilePath:
    type: string
  FindTitle:
    description: "Find game titles\n\nPrecedence: Steam ID -> GOG ID -> Lutris ID -> exact names -> normalized names. Once a match is found for one of these options, Ludusavi will stop looking and return that match, unless you set `multiple: true`, in which case, the results will be sorted by how well they match.\n\nDepending on the options chosen, there may be multiple matches, but the default is a single match.\n\nAliases will be resolved to the target title."
    type: object
    properties:
      backup:
        description: Ensure the game is recognized in a backup context.
        default: false
        type: boolean
      disabled:
        description: Select games that are disabled.
        default: false
        type: boolean
      fuzzy:
        description: Look up games with fuzzy matching. This may find multiple games for a single input.
        default: false
        type: boolean
      gogId:
        description: Look up game by a GOG ID.
        default: ~
        type:
          - integer
          - "null"
        format: uint64
        minimum: 0.0
      lutrisId:
        description: Look up game by a Lutris slug.
        default: ~
        type:
          - string
          - "null"
      multiple:
        description: "Keep looking for all potential matches, instead of stopping at the first match."
        default: false
        type: boolean
      names:
        description: "Look up game by an exact title. With multiple values, they will be checked in the order given."
        default: []
        type: array
        items:
          type: string
      normalized:
        description: "Look up game by an approximation of the title. Ignores capitalization, \"edition\" suffixes, year suffixes, and some special symbols. This may find multiple games for a single input."
        default: false
        type: boolean
      partial:
        description: Select games that have some saves disabled.
        default: false
        type: boolean
      restore:
        description: Ensure the game is recognized in a restore context.
        default: false
        type: boolean
      steamId:
        description: Look up game by a Steam ID.
        default: ~
        type:
          - integer
          - "null"
        format: uint32
        minimum: 0.0
  Request:
    description: An individual request.
    oneOf:
      - type: object
        required:
          - findTitle
        properties:
          findTitle:
            $ref: "#/definitions/FindTitle"
        additionalProperties: false
      - type: object
        required:
          - checkAppUpdate
        properties:
          checkAppUpdate:
            $ref: "#/definitions/CheckAppUpdate"
        additionalProperties: false
      - type: object
        required:
          - editBackup
        properties:
          editBackup:
            $ref: "#/definitions/EditBackup"
        additionalProperties: false