Constructors
constructor
- new Resource(config): Resource
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";
}
Accessors
baseClient
- get baseClient(): ChatBotKit
Returns ChatBotKit
client
- get client(): {
create: ((properties) => Promise<{
id: string;
}>);
update: ((id, properties) => Promise<{
id: string;
}>);
} 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;
}>
description
- get description(): string
Returns string
id
- get id(): string
Returns string
name
- get name(): string
Returns string
slug
- get slug(): string
Returns string
type
- get type(): string
Returns string
Methods
sync
- sync(): Promise<void>
Returns Promise<void>
Represents a resource.