Skip to content

VideoMomentsResponseDto

Endpoints · All schemas

FieldRequiredDescription
assetIdYesstring
captionModelYesstring
captionedAtYesstring
coverFrameIdYesstring
coverTimestampMsYesThe owner's chosen cover time; null means the best frame
embeddingModelYesstring
extractorVersionYesstring
framesYesarray
framesExtractedAtYesstring
indexedAtYesstring
momentsYesarray
staleReasonYesSee definition below
stateYesSee definition below

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: VideoMomentFrameDto, VideoMomentDto, EnrichmentStaleReason, VideoMomentIndexState

{
  "properties": {
    "assetId": {
      "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"
    },
    "captionModel": {
      "nullable": true,
      "type": "string"
    },
    "captionedAt": {
      "format": "date-time",
      "nullable": true,
      "type": "string"
    },
    "coverFrameId": {
      "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"
    },
    "coverTimestampMs": {
      "description": "The owner's chosen cover time; null means the best frame",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991,
      "nullable": true,
      "type": "integer"
    },
    "embeddingModel": {
      "nullable": true,
      "type": "string"
    },
    "extractorVersion": {
      "nullable": true,
      "type": "string"
    },
    "frames": {
      "items": {
        "$ref": "#/components/schemas/VideoMomentFrameDto"
      },
      "type": "array"
    },
    "framesExtractedAt": {
      "format": "date-time",
      "nullable": true,
      "type": "string"
    },
    "indexedAt": {
      "format": "date-time",
      "nullable": true,
      "type": "string"
    },
    "moments": {
      "items": {
        "$ref": "#/components/schemas/VideoMomentDto"
      },
      "type": "array"
    },
    "staleReason": {
      "allOf": [
        {
          "$ref": "#/components/schemas/EnrichmentStaleReason"
        }
      ],
      "nullable": true
    },
    "state": {
      "$ref": "#/components/schemas/VideoMomentIndexState"
    }
  },
  "required": [
    "assetId",
    "captionModel",
    "captionedAt",
    "coverFrameId",
    "coverTimestampMs",
    "embeddingModel",
    "extractorVersion",
    "frames",
    "framesExtractedAt",
    "indexedAt",
    "moments",
    "staleReason",
    "state"
  ],
  "type": "object"
}