UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

142 lines 6.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.organisationQuerySchema = exports.organisationSchema = exports.organisationDataSchema = exports.organisationPasswordPolicySchema = exports.organisationSimulatorSchema = exports.organisationVoiceConfigurationSchema = exports.niceProvidedSpeechEntitlementSchema = exports.organisationDataPrivacySettingsSchema = void 0; /* Custom Modules */ const createQuerySchema_1 = require("../helper/createQuerySchema"); const IOrganisationProactiveSettings_1 = require("./resources/settings/IOrganisationProactiveSettings"); 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.niceProvidedSpeechEntitlementSchema = { title: "niceProvidedSpeechEntitlementSchema", type: "object", additionalProperties: false, required: ["vendor", "stt", "tts"], properties: { vendor: { type: "string" }, stt: { type: "boolean" }, tts: { type: "boolean" }, }, }; exports.organisationVoiceConfigurationSchema = { title: "organisationVoiceConfigurationSchema", type: "object", additionalProperties: false, properties: { enableNiceSharedProviders: { type: "boolean" }, orgVoiceGatewayEnabled: { type: "boolean" }, niceProvidedSpeechEntitlements: { type: "array", items: exports.niceProvidedSpeechEntitlementSchema, }, } }; exports.organisationSimulatorSchema = { title: "organisationSimulatorSchema", type: "object", additionalProperties: false, properties: { paidTier: { type: "boolean" }, runsMonthlyQuota: { type: "integer", minimum: 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" }, businessUnitId: { type: "string", maxLength: 64 }, tenantId: { oneOf: [ { type: "string", enum: [""] }, { type: "string", format: "uuid" } ] }, 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 }, aiOpsCenterEnabled: { type: "boolean" }, proactiveProductEnabled: { type: "boolean" }, orgInPlatformLlmEnabled: { type: "boolean" }, sessionStateTTLInMinutes: { type: "integer", minimum: 0 }, billingTimezone: { type: "string", format: "timezone" }, dataPrivacySettings: exports.organisationDataPrivacySettingsSchema, voiceConfigurations: exports.organisationVoiceConfigurationSchema, proactiveSettings: IOrganisationProactiveSettings_1.organisationProactiveSettingsSchema, simulator: exports.organisationSimulatorSchema, quotaMaxResourceUsage: { type: ["integer", "null"], minimum: 0 }, resourceUsagePaidTier: { type: "boolean" }, resourceUsageCurrency: { type: "string", enum: ["USD"] }, voiceGatewayApiKey: { type: "string" }, 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" }, voiceGatewayApiKey: { type: "string" } }) }; exports.organisationQuerySchema = (0, createQuerySchema_1.createQuerySchema)("organisationQuerySchema", exports.organisationSchema); //# sourceMappingURL=IOrganisation.js.map