import type { Stream } from "@dxos/codec-protobuf"; import substitutions from "../../substitutions"; import * as dxos_type from "./type"; import * as google_protobuf from "../google/protobuf"; export interface Record { /** * Record creation timetstamp. */ created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>; /** * Optional human-readable name of record. */ displayName?: string; /** * Optional record description. */ description?: string; /** * Optional record tags. */ tags?: string[]; /** * Type record variant. */ type?: Record.Type; /** * Data record variant. */ payload?: Record.Extension; } export namespace Record { /** * Types are system records that define protocol-buffer schema of other records. */ export interface Type { /** * FQ protobuf message name. */ messageName?: string; /** * Set of protobuf messages encoded in JSON. */ protobufDefs?: string; /** * CID of protobuf source file. */ protobufIpfsCid?: string; } /** * Data with a reference to a type record that defines the encoding. */ export interface Extension { /** * CID of type record. */ typeRecord?: Uint8Array; /** * Serialized payload data. */ data?: Uint8Array; } }