Hyperlinkv0.8.0-beta.28

QueueHyperlink

QueueHyperlink.queueEncodedEntryconstsrc/QueueHyperlink.ts:466
Schema.Struct<{
  readonly payload: Schema.Codec<JsonValue, JsonValue, never, never>
  readonly item: Schema.Struct<{
    readonly id: Schema.String
    readonly version: Schema.String
    readonly encoding: Schema.Literal<"json">
    readonly jsonSchema: Schema.Unknown
  }>
  readonly entryId: Schema.String
  readonly key: Schema.optional<Schema.String>
  readonly priority: Schema.Literals<readonly ["high", "normal", "low"]>
  readonly attempts: Schema.Number
  readonly timestamps: Schema.Struct<{
    readonly enqueuedAt: Schema.DateTimeUtc
    readonly startedAt: Schema.optionalKey<Schema.DateTimeUtc>
    readonly completedAt: Schema.optionalKey<Schema.DateTimeUtc>
    readonly interruptedAt: Schema.optionalKey<Schema.DateTimeUtc>
  }>
  readonly batchId: Schema.optional<Schema.String>
  readonly releaseId: Schema.optional<Schema.String>
  readonly sourceHyperlinkId: Schema.optional<Schema.String>
  readonly attributes: Schema.optional<
    Schema.$Record<Schema.String, Schema.Unknown>
  >
}>

A queue entry in encoded / wire form — the element returned by releaseEncoded. The item is replaced by its codec descriptor and the value lives in payload (already JSON-encoded), so an encoded entry crosses RPC without the receiver knowing the item schema. Mirrors the engine's QueueEncodedEntry.

wire schemas
export const queueEncodedEntry = Schema.Struct({
  // Encoded wire payload is JSON by construction; type it as the narrower `JsonValue` (not
  // `Schema.Unknown`) so the schema `.Type` matches the hand-authored `QueueEncodedEntry.payload`
  // (retain-narrower — the single-source-of-truth convergence, tightening the schema to the type).
  payload: jsonValue,
  item: QueueItemCodecDescriptorSchema,
  entryId: Schema.String,
  // engine-output entry: optional metadata may be present-but-`undefined` (see queueEntry).
  key: Schema.optional(Schema.String),
  priority: queuePriority,
  attempts: Schema.Number,
  timestamps: queueEntryTimestamps,
  batchId: Schema.optional(Schema.String),
  releaseId: Schema.optional(Schema.String),
  sourceHyperlinkId: Schema.optional(Schema.String),
  attributes: Schema.optional(queueEntryAttributes),
});
Referenced by 3 symbols