@cognigy/rest-api-client
Version:
Cognigy REST-Client
59 lines • 2.11 kB
JavaScript
/* Interfaces & Types */
import { entityMetaSchema } from "./IEntityMeta";
export const agentAssistGridConfigSchema = {
title: "agentAssistGridConfigSchema",
type: "object",
additionalProperties: false,
properties: {
grid: {
type: "object",
additionalProperties: false,
required: ["columns", "rows", "gap"],
properties: {
columns: { type: "number" },
rows: { type: "number" },
gap: { type: "number" }
}
},
tiles: {
type: "object",
additionalProperties: false,
minProperties: 1,
patternProperties: {
"[a-zA-Z][0-9a-zA-Z_$]*": {
type: "object",
additionalProperties: false,
required: ["x", "y", "columns", "rows"],
properties: {
x: { type: "number" },
y: { type: "number" },
columns: { type: "number" },
rows: { type: "number" }
}
}
}
}
},
required: ["grid", "tiles"]
};
export const agentAssistConfigDataSchema = {
title: "agentAssistConfigDataSchema",
type: "object",
additionalProperties: false,
required: [
"name",
"config",
],
properties: {
name: { type: "string", format: "resource-name" },
description: { type: "string", format: "snapshot-description" },
config: agentAssistGridConfigSchema
}
};
export const agentAssistConfigSchema = {
title: "agentAssistConfigSchema",
type: "object",
additionalProperties: false,
properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), agentAssistConfigDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
};
//# sourceMappingURL=IAgentAssistConfig.js.map