@archastro/sdk
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Create a private service Creates one immutable private service in the selected organization.

      Parameters

      • input: {
            functions: {
                description: string;
                input_schema: Record<string, unknown>;
                name: string;
                output_schema?: Record<string, unknown>;
            }[];
            org?: string;
        }

        Request body.

        • functions: {
              description: string;
              input_schema: Record<string, unknown>;
              name: string;
              output_schema?: Record<string, unknown>;
          }[]

          Complete callable contracts. Input schemas are required; output schemas are optional.

        • Optionalorg?: string

          Organization ID or slug. Required for developer and server callers.

      Returns Promise<PrivateService>

      The newly created private service.

    • Retrieve a private service

      Parameters

      • privateServiceId: string
      • Optionalparams: { org?: string }

        Query parameters.

        • Optionalorg?: string

          Organization ID or slug. Required for developer and server callers.

      Returns Promise<PrivateService>

      Successful response

    • List private services

      Parameters

      • Optionalparams: { org?: string; page?: number; pageSize?: number }

        Query parameters.

        • Optionalorg?: string

          Organization ID or slug. Required for developer and server callers.

        • Optionalpage?: number

          Page number. Defaults to 1.

        • OptionalpageSize?: number

          Results per page. Defaults to 25; maximum is 100.

      Returns Promise<PrivateServicePage>

      Successful response