UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

91 lines 4.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.organisationQuerySchema = exports.organisationSchema = exports.organisationDataSchema = exports.organisationPasswordPolicySchema = exports.organisationDataPrivacySettingsSchema = void 0; /* Custom Modules */ const createQuerySchema_1 = require("../helper/createQuerySchema"); exports.organisationDataPrivacySettingsSchema = { title: "organisationDataPrivacySettingsSchema", type: "object", additionalProperties: false, properties: { enabled: { type: "boolean" }, useAnalytics: { type: "boolean" }, storeDataPayload: { type: "boolean" }, useContactProfiles: { type: "boolean" }, useConversations: { type: "boolean" }, maskIPAddress: { type: "boolean" }, maskAnalytics: { type: "boolean" }, maskLogging: { type: "boolean" }, ignoreList: { type: "array", items: { type: "string" }, additionalItems: false, minItems: 0 } } }; exports.organisationPasswordPolicySchema = { title: "organisationPasswordPolicySchema", type: "object", additionalProperties: false, properties: { maxAmountIdenticalCharacters: { type: "integer", minimum: 0, maximum: 999 }, maxLength: { type: "integer", minimum: 0, maximum: 999 }, minAmountFailedAttemptsAutoDisable: { type: "integer", minimum: 0, maximum: 999 }, minAmountLowerCase: { type: "integer", minimum: 0, maximum: 999 }, minAmountNumbers: { type: "integer", minimum: 0, maximum: 999 }, minAmountSpecialCharacters: { type: "integer", minimum: 0, maximum: 999 }, minAmountUpperCase: { type: "integer", minimum: 0, maximum: 999 }, minLength: { type: "integer", minimum: 0, maximum: 999 } } }; exports.organisationDataSchema = { title: "organisationDataSchema", type: "object", additionalProperties: false, properties: { contactProfileTTLInMinutes: { type: "integer", minimum: 0 }, conversationTTLInMinutes: { type: "integer", minimum: 0 }, analyticsTTLInMinutes: { type: "integer", minimum: 0 }, sessionsTTLInMinutes: { type: "integer", minimum: 0 }, stepEventsTTLInMinutes: { type: "integer", minimum: 0 }, disabled: { type: "boolean" }, name: { type: "string", minLength: 1, format: "resource-name" }, passwordPolicy: exports.organisationPasswordPolicySchema, quotaMaxChannelsPerProject: { type: "integer", minimum: 0 }, quotaMaxMessagesPerDay: { type: "integer", minimum: 0 }, quotaMaxProjects: { type: "integer", minimum: 0 }, quotaMaxUsers: { type: "integer", minimum: 0 }, quotaMaxKnowledgeChunks: { type: "integer", minimum: 0 }, sessionStateTTLInMinutes: { type: "integer", minimum: 0 }, billingTimezone: { type: "string", format: "timezone" }, dataPrivacySettings: exports.organisationDataPrivacySettingsSchema, maxTTLValues: { type: "object", properties: { contactProfileTTLInMinutes: { type: "integer", minimum: 0 }, conversationTTLInMinutes: { type: "integer", minimum: 0 }, analyticsTTLInMinutes: { type: "integer", minimum: 0 }, sessionsTTLInMinutes: { type: "integer", minimum: 0 }, stepEventsTTLInMinutes: { type: "integer", minimum: 0 }, sessionStateTTLInMinutes: { type: "integer", minimum: 0 } } } } }; exports.organisationSchema = { title: "organisationSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({ _id: { format: "mongo-id" } }, exports.organisationDataSchema.properties), { liveAgentAccount: { type: "number" }, voiceGatewayAccount: { type: "string" } }) }; exports.organisationQuerySchema = (0, createQuerySchema_1.createQuerySchema)("organisationQuerySchema", exports.organisationSchema); //# sourceMappingURL=IOrganisation.js.map