UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

86 lines 3.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.endpointSchema = exports.endpointDataSchema = void 0; const endpoints_1 = require("../messageAPI/endpoints"); const ITransformerFunction_1 = require("../transformers/ITransformerFunction"); const handover_1 = require("../handover"); const IEntityMeta_1 = require("./IEntityMeta"); const IEndpointTranslationSettings_1 = require("../IEndpointTranslationSettings"); const fileStorage_1 = require("../fileStorage"); exports.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: [""] }, ], }, 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: endpoints_1.anyEndpointSettingsSchema, transformer: ITransformerFunction_1.transformerFunctionSchema, handoverSettings: handover_1.handoverSettingsSchema, translationSettings: IEndpointTranslationSettings_1.translationSettingsEndpointSchema, foreignId: { type: "string" }, useAnalytics: { type: "boolean" }, useContactProfiles: { type: "boolean" }, useConversations: { type: "boolean" }, storeDataPayload: { type: "boolean" }, useDashbotAnalytics: { type: "boolean" }, overrideSnapshotConnections: { type: "boolean" }, fileStorageSettings: fileStorage_1.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: { label: { type: "string" }, active: { type: "boolean" }, }, }, }, }; exports.endpointSchema = { title: "endpointSchema", type: "object", additionalProperties: false, minProperties: 1, properties: Object.assign(Object.assign(Object.assign({}, exports.endpointDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; //# sourceMappingURL=IEndpoint.js.map