ACP v2 (Preview) TypeScript SDK — EXPERIMENTAL - v2.12.1
    Preparing search index...

    Type Alias ClientResponseExperimental

    ClientResponse:
        | {
            id: RequestId;
            result: | RequestPermissionResponse
            | CreateElicitationResponse
            | ExtResponse;
        }
        | { id: number
        | string
        | null; error: Error }

    A JSON-RPC response object.

    Type Declaration

    • {
          id: RequestId;
          result: RequestPermissionResponse | CreateElicitationResponse | ExtResponse;
      }
    • { id: number | string | null; error: Error }
      • id: number | string | null

        The id of the request this response answers.

        Required. null only when the request's id could not be determined, such as for a parse error or an invalid request.

      • error: Error

        Method-specific error data.