UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

92 lines 3.69 kB
import { anyEndpointSettingsSchema } from "../messageAPI/endpoints"; import { transformerFunctionSchema, } from "../transformers/ITransformerFunction"; import { handoverSettingsSchema } from "../handover"; import { entityMetaSchema } from "./IEntityMeta"; import { translationSettingsEndpointSchema, } from "../IEndpointTranslationSettings"; import { fileStorageSettingsSchema } from "../fileStorage"; import { webrtcWidgetConfigSchema } from "./IWebrtcWidgetConfig"; export const endpointDataSchema = { title: "endpointDataSchema", type: "object", additionalProperties: false, properties: { URLToken: { type: "string", format: "alphanum-64" }, active: { type: "boolean" }, channel: { type: "string", format: "endpoint-channel" }, dashbotApikey: { type: "string" }, dashbotPlatform: { type: "string" }, customIcon: { type: "string" }, flowId: { oneOf: [ { type: "string", format: "uuid" }, { type: "string", enum: [""] }, ], }, agentId: { oneOf: [ { type: "string", format: "uuid" }, { type: "string", enum: [""] }, ], }, targetType: { type: "string", enum: ["flow", "agent"], }, localeId: { oneOf: [ { type: "string", format: "uuid" }, { type: "string", enum: [""] }, ], }, entrypoint: { type: ["string", "null"], format: "mongo-id" }, maskAnalytics: { type: "boolean" }, maskIPAddress: { type: "boolean" }, maskLogging: { type: "boolean" }, name: { type: "string", format: "resource-name" }, nluConnectorId: { oneOf: [ { type: "string", format: "uuid" }, { type: "string", format: "nlu-connector-type" }, ], }, settings: anyEndpointSettingsSchema, transformer: transformerFunctionSchema, handoverSettings: handoverSettingsSchema, translationSettings: translationSettingsEndpointSchema, foreignId: { type: "string" }, useAnalytics: { type: "boolean" }, useContactProfiles: { type: "boolean" }, useConversations: { type: "boolean" }, storeDataPayload: { type: "boolean" }, useDashbotAnalytics: { type: "boolean" }, overrideSnapshotConnections: { type: "boolean" }, fileStorageSettings: fileStorageSettingsSchema, disableInputSanitization: { type: "boolean" }, disableSkipUriTags: { type: "boolean" }, webrtcClient: { type: "boolean" }, sipConnectivityInfo: { type: "object", properties: { realm: { type: "string" }, username: { type: "string" }, password: { type: "string" }, applicationSid: { type: "string" }, clientSid: { type: "string" }, wsUri: { type: "string" }, }, }, webrtcWidgetConfig: { type: "object", properties: webrtcWidgetConfigSchema.properties, }, enableMocking: { type: "boolean" }, }, }; export const endpointSchema = { title: "endpointSchema", type: "object", additionalProperties: false, minProperties: 1, properties: Object.assign(Object.assign(Object.assign({}, endpointDataSchema.properties), entityMetaSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; //# sourceMappingURL=IEndpoint.js.map