com.publicdomainrelay.temp.gateway.subscribeComputeEvents

johnandersen777.bsky.social

Documentation

Subscribe to lifecycle events for a compute contract. Gateway pushes events as they arrive from the bidder (vm.started, vm.onNetwork, terminated).

main subscription

Subscribe to lifecycle events for a compute contract. Gateway pushes events as they arrive from the bidder (vm.started, vm.onNetwork, terminated).

Parameters

receiptUri stringat-uri Required

AT-URI of the receipt record to subscribe to events for.

Message Types

Errors

InvalidRequest
AuthRequired
View raw schema
{
  "type": "subscription",
  "errors": [
    {
      "name": "InvalidRequest"
    },
    {
      "name": "AuthRequired"
    }
  ],
  "message": {
    "schema": {
      "refs": [
        "#vm_started",
        "#vm_on_network",
        "#terminated",
        "#error"
      ],
      "type": "union"
    }
  },
  "parameters": {
    "type": "params",
    "required": [
      "receiptUri"
    ],
    "properties": {
      "receiptUri": {
        "type": "string",
        "format": "at-uri",
        "description": "AT-URI of the receipt record to subscribe to events for."
      }
    }
  },
  "description": "Subscribe to lifecycle events for a compute contract. Gateway pushes events as they arrive from the bidder (vm.started, vm.onNetwork, terminated)."
}
error object

No description available.

Properties

message string Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "string"
    }
  }
}
terminated object

No description available.

Properties

reason string Required

No description available.

receiptUri string at-uri Required

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

timestamp string datetime Required

An RFC 3339 formatted timestamp.

View raw schema
{
  "type": "object",
  "required": [
    "receiptUri",
    "reason",
    "timestamp"
  ],
  "properties": {
    "reason": {
      "type": "string"
    },
    "timestamp": {
      "type": "string",
      "format": "datetime"
    },
    "receiptUri": {
      "type": "string",
      "format": "at-uri"
    }
  }
}
vm_on_network object

No description available.

Properties

address string Required

No description available.

receiptUri string at-uri Required

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

timestamp string datetime Required

An RFC 3339 formatted timestamp.

View raw schema
{
  "type": "object",
  "required": [
    "receiptUri",
    "address",
    "timestamp"
  ],
  "properties": {
    "address": {
      "type": "string"
    },
    "timestamp": {
      "type": "string",
      "format": "datetime"
    },
    "receiptUri": {
      "type": "string",
      "format": "at-uri"
    }
  }
}
vm_started object

No description available.

Properties

receiptUri string at-uri Required

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

timestamp string datetime Required

An RFC 3339 formatted timestamp.

View raw schema
{
  "type": "object",
  "required": [
    "receiptUri",
    "timestamp"
  ],
  "properties": {
    "timestamp": {
      "type": "string",
      "format": "datetime"
    },
    "receiptUri": {
      "type": "string",
      "format": "at-uri"
    }
  }
}

Lexicon Garden

@