@archastro/sdk
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Add a source to an installation Attaches a new source to an existing installation, making its content available to the installation's agent as context. The source type and payload must be valid for the installation's kind; invalid combinations return 422. This endpoint requires an app-scoped token. The installation must belong to an agent accessible by the authenticated caller. Once created, the source begins processing asynchronously — its state will transition from "pending" as ingestion progresses.

      Parameters

      • installation: string

        Installation ID (cin_...) whose sources to retrieve.

      • input: { payload: Record<string, unknown>; type: string }

        Request body.

        • payload: Record<string, unknown>

          Type-specific payload for the source. The accepted keys depend on the type value; invalid or missing payload fields return 422.

        • type: string

          Source type slug identifying the kind of content being attached, e.g. "file/document" or "web/link".

      Returns Promise<InstallationSource>

      The newly created installation source.

    • List sources for an installation Returns all sources attached to the specified installation. Sources represent the content units (documents, links, and other typed payloads) that the installation's agent can access as context. This endpoint requires an app-scoped token. Results include sources in all states, including those still being ingested. Inspect each source's state field to determine whether its content is ready.

      Parameters

      • installation: string

        Installation ID (cin_...) whose sources to retrieve.

      Returns Promise<InstallationSourceListResponse>

      Object containing the list of sources attached to the installation.