com.emdashcms.experimental.aggregator.resolvePackage

emdashcms.com

Documentation

Convenience endpoint that combines bidirectionally verified handle-to-DID resolution with a package lookup. Useful when the user-facing identifier is `@example.dev/gallery-plugin` rather than a DID. The aggregator maintains a short-lived handle projection and refreshes stale identities in the background.

main query

Convenience endpoint that combines bidirectionally verified handle-to-DID resolution with a package lookup. Useful when the user-facing identifier is `@example.dev/gallery-plugin` rather than a DID. The aggregator maintains a short-lived handle projection and refreshes stale identities in the background.

Parameters

handle string handle Required

Publisher's handle (e.g. 'example.dev').

slug string Required

Package slug.

Output

Errors

HandleNotFound The handle could not be resolved to a DID.
NotFound No package indexed under the resolved (did, slug).
ListingUnavailable The resolved package is indexed but has no profile revision available under the aggregator's listing policy. No publisher-controlled content is returned.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
Publisher's handle (e.g. 'example.dev').
Package slug.
View raw schema
{
  "description": "Convenience endpoint that combines bidirectionally verified handle-to-DID resolution with a package lookup. Useful when the user-facing identifier is `@example.dev/gallery-plugin` rather than a DID. The aggregator maintains a short-lived handle projection and refreshes stale identities in the background.",
  "errors": [
    {
      "description": "The handle could not be resolved to a DID.",
      "name": "HandleNotFound"
    },
    {
      "description": "No package indexed under the resolved (did, slug).",
      "name": "NotFound"
    },
    {
      "description": "The resolved package is indexed but has no profile revision available under the aggregator's listing policy. No publisher-controlled content is returned.",
      "name": "ListingUnavailable"
    }
  ],
  "output": {
    "encoding": "application/json",
    "schema": {
      "ref": "com.emdashcms.experimental.aggregator.defs#packageView",
      "type": "ref"
    }
  },
  "parameters": {
    "properties": {
      "handle": {
        "description": "Publisher's handle (e.g. 'example.dev').",
        "format": "handle",
        "type": "string"
      },
      "slug": {
        "description": "Package slug.",
        "maxLength": 64,
        "minLength": 1,
        "type": "string"
      }
    },
    "required": [
      "handle",
      "slug"
    ],
    "type": "params"
  },
  "type": "query"
}

Lexicon Garden

@