UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

162 lines 4.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.auditEventSchema = exports.actionTypes = exports.auditEventTypes = void 0; exports.auditEventTypes = [ "action", "create", "replace", "patch", "delete", "authentication", "authorization", ]; exports.actionTypes = [ "acceptTermsOfService", "addFlowLocalization", "addIntentLocalization", "addIntentToFlowState", "addKeyphraseToLexiconEntry", "addNodeLocalization", "addProjectMember", "addRoleToUser", "addSlotToLexiconEntry", "batchConnections", "batchEndpoints", "batchFlows", "batchFlowStates", "batchIntents", "batchLexicons", "batchLexiconEntries", "batchLexiconSlots", "batchNLUConnectors", "batchPlaybooks", "batchSentences", "batchSlotFillers", "batchTrainerRecords", "cancelTask", "changePlaybookStepOrder", "cloneFlow", "cloneGoal", "cloneLargeLanguageModel", "configureIdentityProvider", "createKnowledgeSearchIndex", "createPackage", "createProjectByTemplate", "createSnapshot", "deleteKnowledgeSearchIndex", "deprecatePassword", "exportLexicons", "followSession", "hireAiAgent", "importIntents", "importIntoLexicon", "ingestKnowledgeStore", "logoutUser", "mergePackage", "moveChartNode", "packageSnapshot", "packageTrainerRecords", "prepareCall", "redoChart", "removeContactIdFromProfile", "removeFlowLocalization", "removeIntentFromFlowState", "removeIntentLocalization", "removeKeyphraseFromLexiconEntry", "removeNodeLocalization", "removeProfileData", "removeProjectMember", "removeRoleFromUser", "removeSlotFromLexiconEntry", "requestOrganisationDeletion", "resetFailedLoginAttempts", "resetIdentityProvider", "restoreSnapshot", "stopFunctionInstance", "setupCognigyLiveAgent", "setupCognigyLiveAgentInbox", "setupCognigyGenerativeAI", "setupVoiceGatewayAccount", "updateCognigyLiveAgentInbox", "trainAllProjectFlows", "trainIntents", "trainYesNoIntents", "triggerFunction", "undoChart", "updateExtensionPackage", "updateProjectMember", "uploadExtension", "uploadFile", "uploadPackage", "uploadSnapshotPackage", "uploadTrainerRecordsPackage", "createAuthenticatedAmazonUser", "deleteAmazonAccount", "deployAlexaEndpoint", "deleteOrganisation", "enforcePasswordPolicy", "createApiKey", "updateOrganisation", "createUser", "deleteUser", "updateUser", "changePassword", "resetPassword", "exportProfileData", "mergeProfiles", "unmergeProfiles", "updateFlowSettings", "optionsResolver", "processKnowledgeSourceUrl", "processKnowledgeSourceFile", "setupObservationConfig", "updateObservationConfig", "resolveAiOpsCenterError", "odataRequest", "loginSucceeded", "loginFailed", "loginError", "unauthorized", ]; exports.auditEventSchema = { title: "auditEventSchema", type: "object", additionalProperties: false, required: [ "timestamp", "type", "user", "userReference", "organisationReference", "expiresAt", ], properties: { _id: { type: "string", format: "mongo-id" }, timestamp: { type: "object", format: "date-time" }, type: { type: "string", enum: [...exports.auditEventTypes], }, actionType: { type: "string", enum: [...exports.actionTypes] }, user: { type: "string", format: "email" }, userReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, chain: { type: "array", additionalItems: false, items: { type: "object", required: ["elementType"], additionalProperties: false, properties: { elementId: { type: "string", format: "mongo-id" }, elementType: { type: "string" }, }, }, }, expiresAt: { type: "object", format: "date-time" }, payload: { type: "string" }, projectReference: { type: "string", format: "mongo-id" }, }, }; //# sourceMappingURL=IAuditEvent.js.map