Represents a resource.

Hierarchy

Constructors

  • Parameters

    • config: {
          description?: string;
          id?: string;
          name?: string;
          properties?: {
              backstory?: string;
              datasetId?: string;
              model?: string;
              moderation?: boolean;
              privacy?: boolean;
              skillsetId?: string;
          };
          slug?: string;
          type?: "bot";
      } | {
          description?: string;
          id?: string;
          name?: string;
          properties?: {};
          slug?: string;
          type?: "dataset";
      } | {
          description?: string;
          id?: string;
          name?: string;
          properties?: {};
          slug?: string;
          type?: "skillset";
      } | {
          description?: string;
          id?: string;
          name?: string;
          properties?: {};
          slug?: string;
          type?: "widgetIntegration";
      } | {
          description?: string;
          id?: string;
          name?: string;
          properties?: {
              datasetId?: string;
              url?: string;
          };
          slug?: string;
          type?: "sitemapIntegration";
      }

    Returns Resource

Accessors

  • get client(): {
        create: ((properties) => Promise<{
            id: string;
        }>);
        update: ((id, properties) => Promise<{
            id: string;
        }>);
    }
  • Get the resource client.

    Returns {
        create: ((properties) => Promise<{
            id: string;
        }>);
        update: ((id, properties) => Promise<{
            id: string;
        }>);
    }

    • create: ((properties) => Promise<{
          id: string;
      }>)
        • (properties): Promise<{
              id: string;
          }>
        • Parameters

          • properties: Record<string, any>

          Returns Promise<{
              id: string;
          }>

    • update: ((id, properties) => Promise<{
          id: string;
      }>)
        • (id, properties): Promise<{
              id: string;
          }>
        • Parameters

          • id: string
          • properties: Record<string, any>

          Returns Promise<{
              id: string;
          }>

Methods

Generated using TypeDoc