mavenagi 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +13 -8
- package/README.md +1 -1
- package/api/resources/actions/client/Client.js +3 -3
- package/api/resources/analytics/client/Client.js +3 -3
- package/api/resources/appSettings/client/Client.d.ts +45 -0
- package/api/resources/appSettings/client/Client.js +180 -1
- package/api/resources/appSettings/client/index.d.ts +1 -1
- package/api/resources/appSettings/client/index.js +15 -0
- package/api/resources/appSettings/client/requests/SearchAppSettingsRequest.d.ts +15 -0
- package/api/resources/appSettings/client/requests/index.d.ts +1 -0
- package/api/resources/appSettings/client/requests/index.js +2 -0
- package/api/resources/appSettings/index.d.ts +1 -0
- package/api/resources/appSettings/index.js +1 -0
- package/api/resources/appSettings/types/AppSettings.d.ts +11 -0
- package/api/resources/appSettings/types/SearchAppSettingsResponse.d.ts +7 -0
- package/api/resources/appSettings/types/index.d.ts +2 -0
- package/api/resources/appSettings/types/index.js +18 -0
- package/api/resources/commons/types/ActionFormField.d.ts +3 -3
- package/api/resources/commons/types/AppPrecondition.d.ts +8 -0
- package/api/resources/commons/types/BotActionFormResponse.d.ts +7 -1
- package/api/resources/commons/types/ConversationAnalysis.d.ts +8 -0
- package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
- package/api/resources/commons/types/ConversationResponse.d.ts +8 -1
- package/api/resources/commons/types/ConversationSummary.d.ts +27 -0
- package/api/resources/commons/types/EntityType.d.ts +2 -1
- package/api/resources/commons/types/EntityType.js +1 -0
- package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +2 -0
- package/{dist/api/resources/conversation → api/resources/commons}/types/QualityReason.d.ts +1 -2
- package/api/resources/{conversation → commons}/types/QualityReason.js +0 -1
- package/api/resources/commons/types/UserMessage.d.ts +2 -0
- package/api/resources/commons/types/index.d.ts +3 -3
- package/api/resources/commons/types/index.js +3 -3
- package/api/resources/conversation/client/Client.d.ts +10 -2
- package/api/resources/conversation/client/Client.js +23 -15
- package/api/resources/conversation/types/AskRequest.d.ts +4 -1
- package/api/resources/conversation/types/index.d.ts +0 -2
- package/api/resources/conversation/types/index.js +0 -2
- package/api/resources/inbox/client/Client.js +5 -5
- package/api/resources/index.d.ts +5 -1
- package/api/resources/index.js +6 -2
- package/api/resources/knowledge/client/Client.d.ts +45 -6
- package/api/resources/knowledge/client/Client.js +61 -14
- package/api/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.d.ts +23 -0
- package/api/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.js +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +9 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +9 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +15 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +11 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +12 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +11 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +13 -1
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +6 -1
- package/api/resources/knowledge/types/index.d.ts +4 -0
- package/api/resources/knowledge/types/index.js +4 -0
- package/api/resources/organizations/client/Client.d.ts +147 -0
- package/api/resources/organizations/client/Client.js +317 -0
- package/api/resources/organizations/client/index.d.ts +1 -0
- package/api/resources/organizations/client/index.js +2 -0
- package/api/resources/organizations/index.d.ts +1 -0
- package/api/resources/organizations/index.js +17 -0
- package/api/resources/realtime/types/HangUpPublishEvent.d.ts +6 -0
- package/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
- package/api/resources/realtime/types/PublishEvent.d.ts +4 -1
- package/api/resources/realtime/types/index.d.ts +1 -0
- package/api/resources/realtime/types/index.js +1 -0
- package/api/resources/translations/client/Client.js +1 -1
- package/api/resources/triggers/client/Client.d.ts +29 -0
- package/api/resources/triggers/client/Client.js +170 -3
- package/api/resources/triggers/client/index.d.ts +1 -1
- package/api/resources/triggers/client/index.js +15 -0
- package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +17 -0
- package/api/resources/triggers/client/requests/PartialUpdateRequest.js +5 -0
- package/api/resources/triggers/client/requests/index.d.ts +1 -0
- package/api/resources/triggers/client/requests/index.js +2 -0
- package/api/resources/triggers/types/EventTriggerBase.js +5 -0
- package/{dist/api/resources/commons → api/resources/triggers}/types/EventTriggerResponse.d.ts +4 -1
- package/api/resources/triggers/types/EventTriggerResponse.js +5 -0
- package/api/resources/triggers/types/EventTriggersSearchRequest.d.ts +8 -0
- package/api/resources/triggers/types/EventTriggersSearchRequest.js +5 -0
- package/api/resources/triggers/types/EventTriggersSearchResponse.d.ts +7 -0
- package/api/resources/triggers/types/EventTriggersSearchResponse.js +5 -0
- package/api/resources/triggers/types/TriggerField.d.ts +8 -0
- package/api/resources/triggers/types/TriggerField.js +10 -0
- package/api/resources/triggers/types/TriggerPartialUpdate.d.ts +7 -0
- package/api/resources/triggers/types/TriggerPartialUpdate.js +5 -0
- package/api/resources/triggers/types/index.d.ts +7 -0
- package/api/resources/triggers/types/index.js +7 -0
- package/api/resources/users/client/Client.js +3 -3
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +13 -8
- package/dist/api/resources/actions/client/Client.js +3 -3
- package/dist/api/resources/analytics/client/Client.js +3 -3
- package/dist/api/resources/appSettings/client/Client.d.ts +45 -0
- package/dist/api/resources/appSettings/client/Client.js +180 -1
- package/dist/api/resources/appSettings/client/index.d.ts +1 -1
- package/dist/api/resources/appSettings/client/index.js +15 -0
- package/dist/api/resources/appSettings/client/requests/SearchAppSettingsRequest.d.ts +15 -0
- package/dist/api/resources/appSettings/client/requests/SearchAppSettingsRequest.js +5 -0
- package/dist/api/resources/appSettings/client/requests/index.d.ts +1 -0
- package/dist/api/resources/appSettings/client/requests/index.js +2 -0
- package/dist/api/resources/appSettings/index.d.ts +1 -0
- package/dist/api/resources/appSettings/index.js +1 -0
- package/dist/api/resources/appSettings/types/AppSettings.d.ts +11 -0
- package/dist/api/resources/appSettings/types/AppSettings.js +5 -0
- package/dist/api/resources/appSettings/types/SearchAppSettingsResponse.d.ts +7 -0
- package/dist/api/resources/appSettings/types/SearchAppSettingsResponse.js +5 -0
- package/dist/api/resources/appSettings/types/index.d.ts +2 -0
- package/dist/api/resources/appSettings/types/index.js +18 -0
- package/dist/api/resources/commons/types/ActionFormField.d.ts +3 -3
- package/dist/api/resources/commons/types/AppPrecondition.d.ts +8 -0
- package/dist/api/resources/commons/types/AppPrecondition.js +5 -0
- package/dist/api/resources/commons/types/BotActionFormResponse.d.ts +7 -1
- package/dist/api/resources/commons/types/ConversationAnalysis.d.ts +8 -0
- package/dist/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
- package/dist/api/resources/commons/types/ConversationResponse.d.ts +8 -1
- package/dist/api/resources/commons/types/ConversationSummary.d.ts +27 -0
- package/dist/api/resources/commons/types/EntityType.d.ts +2 -1
- package/dist/api/resources/commons/types/EntityType.js +1 -0
- package/dist/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +2 -0
- package/{api/resources/conversation → dist/api/resources/commons}/types/QualityReason.d.ts +1 -2
- package/dist/api/resources/{conversation → commons}/types/QualityReason.js +0 -1
- package/dist/api/resources/commons/types/UserMessage.d.ts +2 -0
- package/dist/api/resources/commons/types/index.d.ts +3 -3
- package/dist/api/resources/commons/types/index.js +3 -3
- package/dist/api/resources/conversation/client/Client.d.ts +10 -2
- package/dist/api/resources/conversation/client/Client.js +23 -15
- package/dist/api/resources/conversation/types/AskRequest.d.ts +4 -1
- package/dist/api/resources/conversation/types/index.d.ts +0 -2
- package/dist/api/resources/conversation/types/index.js +0 -2
- package/dist/api/resources/inbox/client/Client.js +5 -5
- package/dist/api/resources/index.d.ts +5 -1
- package/dist/api/resources/index.js +6 -2
- package/dist/api/resources/knowledge/client/Client.d.ts +45 -6
- package/dist/api/resources/knowledge/client/Client.js +61 -14
- package/dist/api/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.d.ts +23 -0
- package/dist/api/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +9 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +9 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +15 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +11 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +12 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +11 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +13 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +6 -1
- package/dist/api/resources/knowledge/types/index.d.ts +4 -0
- package/dist/api/resources/knowledge/types/index.js +4 -0
- package/dist/api/resources/organizations/client/Client.d.ts +147 -0
- package/dist/api/resources/organizations/client/Client.js +317 -0
- package/dist/api/resources/organizations/client/index.d.ts +1 -0
- package/dist/api/resources/organizations/client/index.js +2 -0
- package/dist/api/resources/organizations/index.d.ts +1 -0
- package/dist/api/resources/organizations/index.js +17 -0
- package/dist/api/resources/realtime/types/HangUpPublishEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
- package/dist/api/resources/realtime/types/PublishEvent.d.ts +4 -1
- package/dist/api/resources/realtime/types/index.d.ts +1 -0
- package/dist/api/resources/realtime/types/index.js +1 -0
- package/dist/api/resources/translations/client/Client.js +1 -1
- package/dist/api/resources/triggers/client/Client.d.ts +29 -0
- package/dist/api/resources/triggers/client/Client.js +170 -3
- package/dist/api/resources/triggers/client/index.d.ts +1 -1
- package/dist/api/resources/triggers/client/index.js +15 -0
- package/dist/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +17 -0
- package/dist/api/resources/triggers/client/requests/PartialUpdateRequest.js +5 -0
- package/dist/api/resources/triggers/client/requests/index.d.ts +1 -0
- package/dist/api/resources/triggers/client/requests/index.js +2 -0
- package/dist/api/resources/triggers/types/EventTriggerBase.js +5 -0
- package/{api/resources/commons → dist/api/resources/triggers}/types/EventTriggerResponse.d.ts +4 -1
- package/dist/api/resources/triggers/types/EventTriggerResponse.js +5 -0
- package/dist/api/resources/triggers/types/EventTriggersSearchRequest.d.ts +8 -0
- package/dist/api/resources/triggers/types/EventTriggersSearchRequest.js +5 -0
- package/dist/api/resources/triggers/types/EventTriggersSearchResponse.d.ts +7 -0
- package/dist/api/resources/triggers/types/EventTriggersSearchResponse.js +5 -0
- package/dist/api/resources/triggers/types/TriggerField.d.ts +8 -0
- package/dist/api/resources/triggers/types/TriggerField.js +10 -0
- package/dist/api/resources/triggers/types/TriggerPartialUpdate.d.ts +7 -0
- package/dist/api/resources/triggers/types/TriggerPartialUpdate.js +5 -0
- package/dist/api/resources/triggers/types/index.d.ts +7 -0
- package/dist/api/resources/triggers/types/index.js +7 -0
- package/dist/api/resources/users/client/Client.js +3 -3
- package/dist/serialization/resources/appSettings/client/index.d.ts +1 -0
- package/dist/serialization/resources/appSettings/client/index.js +2 -1
- package/dist/serialization/resources/appSettings/client/update.d.ts +13 -0
- package/dist/serialization/resources/appSettings/client/update.js +42 -0
- package/dist/serialization/resources/appSettings/index.d.ts +1 -0
- package/dist/serialization/resources/appSettings/index.js +1 -0
- package/dist/serialization/resources/appSettings/types/AppSettings.d.ts +14 -0
- package/dist/serialization/resources/appSettings/types/AppSettings.js +45 -0
- package/dist/serialization/resources/appSettings/types/SearchAppSettingsResponse.d.ts +13 -0
- package/dist/serialization/resources/appSettings/types/SearchAppSettingsResponse.js +44 -0
- package/dist/serialization/resources/appSettings/types/index.d.ts +2 -0
- package/dist/serialization/resources/appSettings/types/index.js +18 -0
- package/dist/serialization/resources/commons/types/AppPrecondition.d.ts +13 -0
- package/dist/serialization/resources/commons/types/AppPrecondition.js +46 -0
- package/dist/serialization/resources/commons/types/BotActionFormResponse.d.ts +2 -0
- package/dist/serialization/resources/commons/types/BotActionFormResponse.js +2 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.d.ts +6 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.js +6 -0
- package/dist/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
- package/dist/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
- package/dist/serialization/resources/commons/types/ConversationSummary.d.ts +9 -0
- package/dist/serialization/resources/commons/types/ConversationSummary.js +9 -0
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +1 -0
- package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -0
- package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +1 -0
- package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/QualityReason.d.ts +1 -1
- package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/QualityReason.js +0 -1
- package/dist/serialization/resources/commons/types/UserMessage.d.ts +1 -0
- package/dist/serialization/resources/commons/types/UserMessage.js +1 -0
- package/dist/serialization/resources/commons/types/index.d.ts +3 -3
- package/dist/serialization/resources/commons/types/index.js +3 -3
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/AskRequest.js +1 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -2
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +2 -2
- package/dist/serialization/resources/conversation/types/index.d.ts +0 -2
- package/dist/serialization/resources/conversation/types/index.js +0 -2
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.d.ts +16 -0
- package/dist/serialization/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.js +47 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +3 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +41 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +5 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +41 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.js +41 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +3 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +3 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +1 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +4 -0
- package/dist/serialization/resources/knowledge/types/index.js +4 -0
- package/dist/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +5 -1
- package/dist/serialization/resources/realtime/types/PublishEvent.js +2 -0
- package/dist/serialization/resources/realtime/types/index.d.ts +1 -0
- package/dist/serialization/resources/realtime/types/index.js +1 -0
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.d.ts +1 -1
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +1 -1
- package/dist/serialization/resources/{commons → triggers}/types/EventTriggerResponse.d.ts +2 -1
- package/{serialization/resources/commons → dist/serialization/resources/triggers}/types/EventTriggerResponse.js +2 -1
- package/dist/serialization/resources/triggers/types/EventTriggersSearchRequest.d.ts +14 -0
- package/dist/serialization/resources/triggers/types/EventTriggersSearchRequest.js +47 -0
- package/dist/serialization/resources/triggers/types/EventTriggersSearchResponse.d.ts +14 -0
- package/dist/serialization/resources/triggers/types/EventTriggersSearchResponse.js +47 -0
- package/dist/serialization/resources/triggers/types/TriggerField.d.ts +10 -0
- package/dist/serialization/resources/triggers/types/TriggerField.js +41 -0
- package/dist/serialization/resources/triggers/types/TriggerPartialUpdate.d.ts +12 -0
- package/dist/serialization/resources/triggers/types/TriggerPartialUpdate.js +43 -0
- package/dist/serialization/resources/triggers/types/index.d.ts +7 -0
- package/dist/serialization/resources/triggers/types/index.js +7 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +504 -7
- package/serialization/resources/appSettings/client/index.d.ts +1 -0
- package/serialization/resources/appSettings/client/index.js +2 -1
- package/serialization/resources/appSettings/client/update.d.ts +13 -0
- package/serialization/resources/appSettings/client/update.js +42 -0
- package/serialization/resources/appSettings/index.d.ts +1 -0
- package/serialization/resources/appSettings/index.js +1 -0
- package/serialization/resources/appSettings/types/AppSettings.d.ts +14 -0
- package/serialization/resources/appSettings/types/AppSettings.js +45 -0
- package/serialization/resources/appSettings/types/SearchAppSettingsResponse.d.ts +13 -0
- package/serialization/resources/appSettings/types/SearchAppSettingsResponse.js +44 -0
- package/serialization/resources/appSettings/types/index.d.ts +2 -0
- package/serialization/resources/appSettings/types/index.js +18 -0
- package/serialization/resources/commons/types/AppPrecondition.d.ts +13 -0
- package/serialization/resources/commons/types/AppPrecondition.js +46 -0
- package/serialization/resources/commons/types/BotActionFormResponse.d.ts +2 -0
- package/serialization/resources/commons/types/BotActionFormResponse.js +2 -0
- package/serialization/resources/commons/types/ConversationAnalysis.d.ts +6 -0
- package/serialization/resources/commons/types/ConversationAnalysis.js +6 -0
- package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
- package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
- package/serialization/resources/commons/types/ConversationSummary.d.ts +9 -0
- package/serialization/resources/commons/types/ConversationSummary.js +9 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -0
- package/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -0
- package/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +1 -0
- package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/QualityReason.d.ts +1 -1
- package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/QualityReason.js +0 -1
- package/serialization/resources/commons/types/UserMessage.d.ts +1 -0
- package/serialization/resources/commons/types/UserMessage.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +3 -3
- package/serialization/resources/commons/types/index.js +3 -3
- package/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
- package/serialization/resources/conversation/types/AskRequest.js +1 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -2
- package/serialization/resources/conversation/types/ConversationFilter.js +2 -2
- package/serialization/resources/conversation/types/index.d.ts +0 -2
- package/serialization/resources/conversation/types/index.js +0 -2
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.d.ts +16 -0
- package/serialization/resources/knowledge/types/FinalizeKnowledgeBaseVersionRequest.js +47 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +3 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +41 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +5 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +41 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.js +41 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +3 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +3 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +1 -0
- package/serialization/resources/knowledge/types/index.d.ts +4 -0
- package/serialization/resources/knowledge/types/index.js +4 -0
- package/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
- package/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
- package/serialization/resources/realtime/types/PublishEvent.d.ts +5 -1
- package/serialization/resources/realtime/types/PublishEvent.js +2 -0
- package/serialization/resources/realtime/types/index.d.ts +1 -0
- package/serialization/resources/realtime/types/index.js +1 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +1 -1
- package/serialization/resources/triggers/types/EventTriggerRequest.js +1 -1
- package/serialization/resources/{commons → triggers}/types/EventTriggerResponse.d.ts +2 -1
- package/{dist/serialization/resources/commons → serialization/resources/triggers}/types/EventTriggerResponse.js +2 -1
- package/serialization/resources/triggers/types/EventTriggersSearchRequest.d.ts +14 -0
- package/serialization/resources/triggers/types/EventTriggersSearchRequest.js +47 -0
- package/serialization/resources/triggers/types/EventTriggersSearchResponse.d.ts +14 -0
- package/serialization/resources/triggers/types/EventTriggersSearchResponse.js +47 -0
- package/serialization/resources/triggers/types/TriggerField.d.ts +10 -0
- package/serialization/resources/triggers/types/TriggerField.js +41 -0
- package/serialization/resources/triggers/types/TriggerPartialUpdate.d.ts +12 -0
- package/serialization/resources/triggers/types/TriggerPartialUpdate.js +43 -0
- package/serialization/resources/triggers/types/index.d.ts +7 -0
- package/serialization/resources/triggers/types/index.js +7 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/{commons/types/EventTriggerBase.js → appSettings/client/requests/SearchAppSettingsRequest.js} +0 -0
- /package/api/resources/{commons/types/EventTriggerResponse.js → appSettings/types/AppSettings.js} +0 -0
- /package/{dist/api/resources/commons/types/EventTriggerBase.js → api/resources/appSettings/types/SearchAppSettingsResponse.js} +0 -0
- /package/{dist/api/resources/commons/types/EventTriggerResponse.js → api/resources/commons/types/AppPrecondition.js} +0 -0
- /package/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/api/resources/{commons → triggers}/types/EventTriggerBase.d.ts +0 -0
- /package/api/resources/{commons → triggers}/types/EventTriggerType.d.ts +0 -0
- /package/api/resources/{commons → triggers}/types/EventTriggerType.js +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/dist/api/resources/{commons → triggers}/types/EventTriggerBase.d.ts +0 -0
- /package/dist/api/resources/{commons → triggers}/types/EventTriggerType.d.ts +0 -0
- /package/dist/api/resources/{commons → triggers}/types/EventTriggerType.js +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/dist/serialization/resources/{commons → triggers}/types/EventTriggerBase.d.ts +0 -0
- /package/dist/serialization/resources/{commons → triggers}/types/EventTriggerBase.js +0 -0
- /package/dist/serialization/resources/{commons → triggers}/types/EventTriggerType.d.ts +0 -0
- /package/dist/serialization/resources/{commons → triggers}/types/EventTriggerType.js +0 -0
- /package/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/serialization/resources/{commons → triggers}/types/EventTriggerBase.d.ts +0 -0
- /package/serialization/resources/{commons → triggers}/types/EventTriggerBase.js +0 -0
- /package/serialization/resources/{commons → triggers}/types/EventTriggerType.d.ts +0 -0
- /package/serialization/resources/{commons → triggers}/types/EventTriggerType.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { AppSettings } from "./api/resources/appSettings/client/Client";
|
|
|
9
9
|
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
10
10
|
import { Inbox } from "./api/resources/inbox/client/Client";
|
|
11
11
|
import { Knowledge } from "./api/resources/knowledge/client/Client";
|
|
12
|
+
import { Organizations } from "./api/resources/organizations/client/Client";
|
|
12
13
|
import { Realtime } from "./api/resources/realtime/client/Client";
|
|
13
14
|
import { Translations } from "./api/resources/translations/client/Client";
|
|
14
15
|
import { Triggers } from "./api/resources/triggers/client/Client";
|
|
@@ -49,6 +50,7 @@ export declare class MavenAGIClient {
|
|
|
49
50
|
protected _conversation: Conversation | undefined;
|
|
50
51
|
protected _inbox: Inbox | undefined;
|
|
51
52
|
protected _knowledge: Knowledge | undefined;
|
|
53
|
+
protected _organizations: Organizations | undefined;
|
|
52
54
|
protected _realtime: Realtime | undefined;
|
|
53
55
|
protected _translations: Translations | undefined;
|
|
54
56
|
protected _triggers: Triggers | undefined;
|
|
@@ -60,6 +62,7 @@ export declare class MavenAGIClient {
|
|
|
60
62
|
get conversation(): Conversation;
|
|
61
63
|
get inbox(): Inbox;
|
|
62
64
|
get knowledge(): Knowledge;
|
|
65
|
+
get organizations(): Organizations;
|
|
63
66
|
get realtime(): Realtime;
|
|
64
67
|
get translations(): Translations;
|
|
65
68
|
get triggers(): Triggers;
|
package/Client.js
CHANGED
|
@@ -10,10 +10,11 @@ const Client_3 = require("./api/resources/appSettings/client/Client");
|
|
|
10
10
|
const Client_4 = require("./api/resources/conversation/client/Client");
|
|
11
11
|
const Client_5 = require("./api/resources/inbox/client/Client");
|
|
12
12
|
const Client_6 = require("./api/resources/knowledge/client/Client");
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
13
|
+
const Client_7 = require("./api/resources/organizations/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/realtime/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/translations/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/triggers/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/users/client/Client");
|
|
17
18
|
class MavenAGIClient {
|
|
18
19
|
constructor(_options) {
|
|
19
20
|
this._options = _options;
|
|
@@ -42,21 +43,25 @@ class MavenAGIClient {
|
|
|
42
43
|
var _a;
|
|
43
44
|
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_6.Knowledge(this._options)));
|
|
44
45
|
}
|
|
46
|
+
get organizations() {
|
|
47
|
+
var _a;
|
|
48
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_7.Organizations(this._options)));
|
|
49
|
+
}
|
|
45
50
|
get realtime() {
|
|
46
51
|
var _a;
|
|
47
|
-
return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new
|
|
52
|
+
return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new Client_8.Realtime(this._options)));
|
|
48
53
|
}
|
|
49
54
|
get translations() {
|
|
50
55
|
var _a;
|
|
51
|
-
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new
|
|
56
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_9.Translations(this._options)));
|
|
52
57
|
}
|
|
53
58
|
get triggers() {
|
|
54
59
|
var _a;
|
|
55
|
-
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new
|
|
60
|
+
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_10.Triggers(this._options)));
|
|
56
61
|
}
|
|
57
62
|
get users() {
|
|
58
63
|
var _a;
|
|
59
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
64
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_11.Users(this._options)));
|
|
60
65
|
}
|
|
61
66
|
}
|
|
62
67
|
exports.MavenAGIClient = MavenAGIClient;
|
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ class Actions {
|
|
|
98
98
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
99
99
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/actions"),
|
|
100
100
|
method: "PUT",
|
|
101
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
101
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
requestType: "json",
|
|
104
104
|
body: serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -178,7 +178,7 @@ class Actions {
|
|
|
178
178
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
179
179
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionReferenceId)}`),
|
|
180
180
|
method: "GET",
|
|
181
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
181
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
requestType: "json",
|
|
184
184
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -257,7 +257,7 @@ class Actions {
|
|
|
257
257
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
258
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionReferenceId)}`),
|
|
259
259
|
method: "DELETE",
|
|
260
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
260
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
requestType: "json",
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -105,7 +105,7 @@ class Analytics {
|
|
|
105
105
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
106
106
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/tables/conversations"),
|
|
107
107
|
method: "POST",
|
|
108
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
108
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
109
109
|
contentType: "application/json",
|
|
110
110
|
requestType: "json",
|
|
111
111
|
body: serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -228,7 +228,7 @@ class Analytics {
|
|
|
228
228
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
229
229
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/charts/conversations"),
|
|
230
230
|
method: "POST",
|
|
231
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
231
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
232
232
|
contentType: "application/json",
|
|
233
233
|
requestType: "json",
|
|
234
234
|
body: serializers.ConversationChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -321,7 +321,7 @@ class Analytics {
|
|
|
321
321
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
322
322
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/tables/feedback"),
|
|
323
323
|
method: "POST",
|
|
324
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
324
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
325
325
|
contentType: "application/json",
|
|
326
326
|
requestType: "json",
|
|
327
327
|
body: serializers.FeedbackTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
+
import * as MavenAGI from "../../../index";
|
|
6
7
|
export declare namespace AppSettings {
|
|
7
8
|
interface Options {
|
|
8
9
|
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
@@ -34,6 +35,26 @@ export declare namespace AppSettings {
|
|
|
34
35
|
export declare class AppSettings {
|
|
35
36
|
protected readonly _options: AppSettings.Options;
|
|
36
37
|
constructor(_options: AppSettings.Options);
|
|
38
|
+
/**
|
|
39
|
+
* Search for app settings which have the `$index` key set to the provided value.
|
|
40
|
+
*
|
|
41
|
+
* You can set the `$index` key using the Update app settings API.
|
|
42
|
+
*
|
|
43
|
+
* <Warning>This API currently requires an organization ID and agent ID for any agent which is installed on the app. This requirement will be removed in a future update.</Warning>
|
|
44
|
+
*
|
|
45
|
+
* @param {MavenAGI.SearchAppSettingsRequest} request
|
|
46
|
+
* @param {AppSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
49
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
50
|
+
* @throws {@link MavenAGI.ServerError}
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* await client.appSettings.search({
|
|
54
|
+
* index: "index"
|
|
55
|
+
* })
|
|
56
|
+
*/
|
|
57
|
+
search(request: MavenAGI.SearchAppSettingsRequest, requestOptions?: AppSettings.RequestOptions): Promise<MavenAGI.SearchAppSettingsResponse>;
|
|
37
58
|
/**
|
|
38
59
|
* Get app settings set during installation
|
|
39
60
|
*
|
|
@@ -47,5 +68,29 @@ export declare class AppSettings {
|
|
|
47
68
|
* await client.appSettings.get()
|
|
48
69
|
*/
|
|
49
70
|
get(requestOptions?: AppSettings.RequestOptions): Promise<Record<string, unknown>>;
|
|
71
|
+
/**
|
|
72
|
+
* Update app settings. Performs a merge of the provided settings with the existing app settings.
|
|
73
|
+
*
|
|
74
|
+
* - If a new key is provided, it will be added to the app settings.
|
|
75
|
+
* - If an existing key is provided, it will be updated.
|
|
76
|
+
* - No keys will be removed.
|
|
77
|
+
*
|
|
78
|
+
* Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
|
|
79
|
+
*
|
|
80
|
+
* @param {Record<string, unknown>} request
|
|
81
|
+
* @param {AppSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
84
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
85
|
+
* @throws {@link MavenAGI.ServerError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.appSettings.update({
|
|
89
|
+
* "string": {
|
|
90
|
+
* "key": "value"
|
|
91
|
+
* }
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
update(request: Record<string, unknown>, requestOptions?: AppSettings.RequestOptions): Promise<Record<string, unknown>>;
|
|
50
95
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
51
96
|
}
|
|
@@ -59,6 +59,95 @@ class AppSettings {
|
|
|
59
59
|
constructor(_options) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Search for app settings which have the `$index` key set to the provided value.
|
|
64
|
+
*
|
|
65
|
+
* You can set the `$index` key using the Update app settings API.
|
|
66
|
+
*
|
|
67
|
+
* <Warning>This API currently requires an organization ID and agent ID for any agent which is installed on the app. This requirement will be removed in a future update.</Warning>
|
|
68
|
+
*
|
|
69
|
+
* @param {MavenAGI.SearchAppSettingsRequest} request
|
|
70
|
+
* @param {AppSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
73
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
74
|
+
* @throws {@link MavenAGI.ServerError}
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.appSettings.search({
|
|
78
|
+
* index: "index"
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
search(request, requestOptions) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
var _a, _b, _c;
|
|
84
|
+
const { index } = request;
|
|
85
|
+
const _queryParams = {};
|
|
86
|
+
_queryParams["index"] = index;
|
|
87
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
88
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "v1/app-settings/search"),
|
|
89
|
+
method: "GET",
|
|
90
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
|
+
contentType: "application/json",
|
|
92
|
+
queryParameters: _queryParams,
|
|
93
|
+
requestType: "json",
|
|
94
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
95
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
96
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
|
+
});
|
|
98
|
+
if (_response.ok) {
|
|
99
|
+
return serializers.SearchAppSettingsResponse.parseOrThrow(_response.body, {
|
|
100
|
+
unrecognizedObjectKeys: "passthrough",
|
|
101
|
+
allowUnrecognizedUnionMembers: true,
|
|
102
|
+
allowUnrecognizedEnumValues: true,
|
|
103
|
+
breadcrumbsPrefix: ["response"],
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
if (_response.error.reason === "status-code") {
|
|
107
|
+
switch (_response.error.statusCode) {
|
|
108
|
+
case 404:
|
|
109
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
110
|
+
unrecognizedObjectKeys: "passthrough",
|
|
111
|
+
allowUnrecognizedUnionMembers: true,
|
|
112
|
+
allowUnrecognizedEnumValues: true,
|
|
113
|
+
breadcrumbsPrefix: ["response"],
|
|
114
|
+
}));
|
|
115
|
+
case 400:
|
|
116
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
117
|
+
unrecognizedObjectKeys: "passthrough",
|
|
118
|
+
allowUnrecognizedUnionMembers: true,
|
|
119
|
+
allowUnrecognizedEnumValues: true,
|
|
120
|
+
breadcrumbsPrefix: ["response"],
|
|
121
|
+
}));
|
|
122
|
+
case 500:
|
|
123
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
124
|
+
unrecognizedObjectKeys: "passthrough",
|
|
125
|
+
allowUnrecognizedUnionMembers: true,
|
|
126
|
+
allowUnrecognizedEnumValues: true,
|
|
127
|
+
breadcrumbsPrefix: ["response"],
|
|
128
|
+
}));
|
|
129
|
+
default:
|
|
130
|
+
throw new errors.MavenAGIError({
|
|
131
|
+
statusCode: _response.error.statusCode,
|
|
132
|
+
body: _response.error.body,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
switch (_response.error.reason) {
|
|
137
|
+
case "non-json":
|
|
138
|
+
throw new errors.MavenAGIError({
|
|
139
|
+
statusCode: _response.error.statusCode,
|
|
140
|
+
body: _response.error.rawBody,
|
|
141
|
+
});
|
|
142
|
+
case "timeout":
|
|
143
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/app-settings/search.");
|
|
144
|
+
case "unknown":
|
|
145
|
+
throw new errors.MavenAGIError({
|
|
146
|
+
message: _response.error.errorMessage,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
62
151
|
/**
|
|
63
152
|
* Get app settings set during installation
|
|
64
153
|
*
|
|
@@ -77,7 +166,7 @@ class AppSettings {
|
|
|
77
166
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
167
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "v1/app-settings"),
|
|
79
168
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
169
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
170
|
contentType: "application/json",
|
|
82
171
|
requestType: "json",
|
|
83
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -137,6 +226,96 @@ class AppSettings {
|
|
|
137
226
|
}
|
|
138
227
|
});
|
|
139
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* Update app settings. Performs a merge of the provided settings with the existing app settings.
|
|
231
|
+
*
|
|
232
|
+
* - If a new key is provided, it will be added to the app settings.
|
|
233
|
+
* - If an existing key is provided, it will be updated.
|
|
234
|
+
* - No keys will be removed.
|
|
235
|
+
*
|
|
236
|
+
* Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
|
|
237
|
+
*
|
|
238
|
+
* @param {Record<string, unknown>} request
|
|
239
|
+
* @param {AppSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
240
|
+
*
|
|
241
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
242
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
243
|
+
* @throws {@link MavenAGI.ServerError}
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* await client.appSettings.update({
|
|
247
|
+
* "string": {
|
|
248
|
+
* "key": "value"
|
|
249
|
+
* }
|
|
250
|
+
* })
|
|
251
|
+
*/
|
|
252
|
+
update(request, requestOptions) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
var _a, _b, _c;
|
|
255
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
256
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "v1/app-settings"),
|
|
257
|
+
method: "PATCH",
|
|
258
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.11", "User-Agent": "mavenagi/1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
259
|
+
contentType: "application/json",
|
|
260
|
+
requestType: "json",
|
|
261
|
+
body: serializers.appSettings.update.Request.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
262
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
263
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
264
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
265
|
+
});
|
|
266
|
+
if (_response.ok) {
|
|
267
|
+
return serializers.appSettings.update.Response.parseOrThrow(_response.body, {
|
|
268
|
+
unrecognizedObjectKeys: "passthrough",
|
|
269
|
+
allowUnrecognizedUnionMembers: true,
|
|
270
|
+
allowUnrecognizedEnumValues: true,
|
|
271
|
+
breadcrumbsPrefix: ["response"],
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
if (_response.error.reason === "status-code") {
|
|
275
|
+
switch (_response.error.statusCode) {
|
|
276
|
+
case 404:
|
|
277
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
278
|
+
unrecognizedObjectKeys: "passthrough",
|
|
279
|
+
allowUnrecognizedUnionMembers: true,
|
|
280
|
+
allowUnrecognizedEnumValues: true,
|
|
281
|
+
breadcrumbsPrefix: ["response"],
|
|
282
|
+
}));
|
|
283
|
+
case 400:
|
|
284
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
285
|
+
unrecognizedObjectKeys: "passthrough",
|
|
286
|
+
allowUnrecognizedUnionMembers: true,
|
|
287
|
+
allowUnrecognizedEnumValues: true,
|
|
288
|
+
breadcrumbsPrefix: ["response"],
|
|
289
|
+
}));
|
|
290
|
+
case 500:
|
|
291
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
292
|
+
unrecognizedObjectKeys: "passthrough",
|
|
293
|
+
allowUnrecognizedUnionMembers: true,
|
|
294
|
+
allowUnrecognizedEnumValues: true,
|
|
295
|
+
breadcrumbsPrefix: ["response"],
|
|
296
|
+
}));
|
|
297
|
+
default:
|
|
298
|
+
throw new errors.MavenAGIError({
|
|
299
|
+
statusCode: _response.error.statusCode,
|
|
300
|
+
body: _response.error.body,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
switch (_response.error.reason) {
|
|
305
|
+
case "non-json":
|
|
306
|
+
throw new errors.MavenAGIError({
|
|
307
|
+
statusCode: _response.error.statusCode,
|
|
308
|
+
body: _response.error.rawBody,
|
|
309
|
+
});
|
|
310
|
+
case "timeout":
|
|
311
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/app-settings.");
|
|
312
|
+
case "unknown":
|
|
313
|
+
throw new errors.MavenAGIError({
|
|
314
|
+
message: _response.error.errorMessage,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
}
|
|
140
319
|
_getAuthorizationHeader() {
|
|
141
320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
142
321
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* index: "index"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface SearchAppSettingsRequest {
|
|
11
|
+
/**
|
|
12
|
+
* Will return all settings which have the `$index` key set to the provided value.
|
|
13
|
+
*/
|
|
14
|
+
index: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type SearchAppSettingsRequest } from "./SearchAppSettingsRequest";
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface AppSettings {
|
|
5
|
+
/** The ID of an organization. */
|
|
6
|
+
organizationId: string;
|
|
7
|
+
/** The ID of an agent. */
|
|
8
|
+
agentId: string;
|
|
9
|
+
/** The settings that were set during installation. */
|
|
10
|
+
settings: Record<string, unknown>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SearchAppSettingsResponse"), exports);
|
|
18
|
+
__exportStar(require("./AppSettings"), exports);
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as MavenAGI from "../../../index";
|
|
5
5
|
export interface ActionFormField {
|
|
6
|
-
/** The ID field should be used as the key in the submitActionForm API
|
|
6
|
+
/** The ID field should be used as the key in the `submitActionForm` API. */
|
|
7
7
|
id: string;
|
|
8
|
-
/** The title of the field to show on the form. */
|
|
8
|
+
/** The title of the field to show on the form. Provided in the user's language. */
|
|
9
9
|
label: string;
|
|
10
|
-
/** A longer description of the field which should be shown in smaller text near the label. */
|
|
10
|
+
/** A longer description of the field which should be shown in smaller text near the label. Provided in the user's language. */
|
|
11
11
|
description: string;
|
|
12
12
|
/** Whether the field is required for the action. Client side validation is recommended for an improved user experience. */
|
|
13
13
|
required: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface AppPrecondition extends MavenAGI.PreconditionBase {
|
|
6
|
+
/** Match only conversations created by this appId */
|
|
7
|
+
appId: string;
|
|
8
|
+
}
|
|
@@ -3,11 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as MavenAGI from "../../../index";
|
|
5
5
|
/**
|
|
6
|
-
* This response should be rendered as a form which users can submit. Upon submission call the
|
|
6
|
+
* This response should be rendered as a form which users can submit. Upon submission call the `submitActionForm` API.
|
|
7
7
|
*/
|
|
8
8
|
export interface BotActionFormResponse {
|
|
9
|
+
/** The ID to use when submitting the form via the `submitActionForm` API. */
|
|
9
10
|
id: string;
|
|
11
|
+
/** The ID of the action that will be executed when the form is submitted. */
|
|
12
|
+
actionId: MavenAGI.EntityIdWithoutAgent;
|
|
13
|
+
/** Text which should be displayed to the user at the top of the form. Provided in the user's language. */
|
|
10
14
|
formLabel: string;
|
|
15
|
+
/** The fields that should be displayed within the form. */
|
|
11
16
|
fields: MavenAGI.ActionFormField[];
|
|
17
|
+
/** Text that should be displayed to the user on the submit button. Provided in the user's language. */
|
|
12
18
|
submitLabel: string;
|
|
13
19
|
}
|
|
@@ -13,6 +13,14 @@ export interface ConversationAnalysis {
|
|
|
13
13
|
category?: string;
|
|
14
14
|
/** Generated sentiment of the conversation */
|
|
15
15
|
sentiment?: MavenAGI.Sentiment;
|
|
16
|
+
/** Generated quality of the conversation */
|
|
17
|
+
quality?: MavenAGI.Quality;
|
|
18
|
+
/** If the quality of the conversation is `UNKNOWN` or `NEEDS_IMPROVEMENT` then a reason for the quality will be provided when possible. */
|
|
19
|
+
qualityReason?: MavenAGI.QualityReason;
|
|
16
20
|
/** Whether the conversation was resolved by Maven */
|
|
17
21
|
resolvedByMaven?: boolean;
|
|
22
|
+
/** Primary language of the conversation in ISO 639-1 code format */
|
|
23
|
+
primaryLanguage?: string;
|
|
24
|
+
/** The predicted NPS of the conversation. */
|
|
25
|
+
predictedNps?: number;
|
|
18
26
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as MavenAGI from "../../../index";
|
|
5
|
-
export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig;
|
|
5
|
+
export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig | MavenAGI.ConversationPrecondition.App;
|
|
6
6
|
export declare namespace ConversationPrecondition {
|
|
7
7
|
interface Tags extends MavenAGI.TagsPrecondition {
|
|
8
8
|
conversationPreconditionType: "tags";
|
|
@@ -16,4 +16,7 @@ export declare namespace ConversationPrecondition {
|
|
|
16
16
|
interface ResponseConfig extends MavenAGI.ResponseConfigPrecondition {
|
|
17
17
|
conversationPreconditionType: "responseConfig";
|
|
18
18
|
}
|
|
19
|
+
interface App extends MavenAGI.AppPrecondition {
|
|
20
|
+
conversationPreconditionType: "app";
|
|
21
|
+
}
|
|
19
22
|
}
|
|
@@ -20,7 +20,14 @@ import * as MavenAGI from "../../../index";
|
|
|
20
20
|
* },
|
|
21
21
|
* summary: {
|
|
22
22
|
* actionIds: [],
|
|
23
|
-
* incompleteActionIds: []
|
|
23
|
+
* incompleteActionIds: [],
|
|
24
|
+
* insertCount: 0,
|
|
25
|
+
* thumbsUpCount: 0,
|
|
26
|
+
* thumbsDownCount: 0,
|
|
27
|
+
* userMessageCount: 1,
|
|
28
|
+
* humanAgents: [],
|
|
29
|
+
* humanAgentsWithInserts: [],
|
|
30
|
+
* users: []
|
|
24
31
|
* },
|
|
25
32
|
* metadata: {},
|
|
26
33
|
* allMetadata: {},
|