Skip to content

ArchiveOperationResponseDto

Endpoints · All schemas

FieldRequiredDescription
archiveJobIdYesThe durable bulk job that archives the frozen set
archivedYesArchived by this operation and not undone
conflictYesChanged after the archive, so Undo left them as they are
countYesAssets frozen into this operation
createdAtYesstring
currentSessionYesThe operation was submitted or confirmed from the session asking, so it may offer its Undo
expiresAtYesWhen an unconfirmed prepared selection stops being confirmable
idYesArchive operation ID
pendingYesNot reached yet
preparedYesCounted and frozen, waiting for the owner to confirm; nothing has changed yet
requestKeyYesThe request key the operation was created with
scopeYesSee definition below
skippedYesLeft as they were: no longer in the Timeline, or stopped before they were reached
undoJobIdYesThe durable bulk job that undoes it, once requested
undoableYesUndo is available for this operation
undoneYesRestored by Undo

Complete definition

required lists fields that must be present. nullable allows a null value; it does not make the field optional. Response enums retain exact wire values for compatibility.

Field definitions: ArchiveOperationScope

{
  "properties": {
    "archiveJobId": {
      "description": "The durable bulk job that archives the frozen set",
      "format": "uuid",
      "nullable": true,
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "archived": {
      "description": "Archived by this operation and not undone",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "conflict": {
      "description": "Changed after the archive, so Undo left them as they are",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "count": {
      "description": "Assets frozen into this operation",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "createdAt": {
      "format": "date-time",
      "type": "string"
    },
    "currentSession": {
      "description": "The operation was submitted or confirmed from the session asking, so it may offer its Undo",
      "type": "boolean"
    },
    "expiresAt": {
      "description": "When an unconfirmed prepared selection stops being confirmable",
      "format": "date-time",
      "nullable": true,
      "type": "string"
    },
    "id": {
      "description": "Archive operation ID",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "pending": {
      "description": "Not reached yet",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "prepared": {
      "description": "Counted and frozen, waiting for the owner to confirm; nothing has changed yet",
      "type": "boolean"
    },
    "requestKey": {
      "description": "The request key the operation was created with",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "scope": {
      "$ref": "#/components/schemas/ArchiveOperationScope"
    },
    "skipped": {
      "description": "Left as they were: no longer in the Timeline, or stopped before they were reached",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "undoJobId": {
      "description": "The durable bulk job that undoes it, once requested",
      "format": "uuid",
      "nullable": true,
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "undoable": {
      "description": "Undo is available for this operation",
      "type": "boolean"
    },
    "undone": {
      "description": "Restored by Undo",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "archiveJobId",
    "archived",
    "conflict",
    "count",
    "createdAt",
    "currentSession",
    "expiresAt",
    "id",
    "pending",
    "prepared",
    "requestKey",
    "scope",
    "skipped",
    "undoJobId",
    "undoable",
    "undone"
  ],
  "type": "object"
}