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
|
@@ -7,4 +7,31 @@ export interface ConversationSummary {
|
|
|
7
7
|
actionIds: MavenAGI.EntityIdWithoutAgent[];
|
|
8
8
|
/** The IDs of the actions that were taken by Maven but not completed in the conversation. Occurs when the user is shown an action form but does not submit it. */
|
|
9
9
|
incompleteActionIds: MavenAGI.EntityIdWithoutAgent[];
|
|
10
|
+
/** The number of insert events on messages in the conversation. */
|
|
11
|
+
insertCount: number;
|
|
12
|
+
/** The number of thumbs up events on messages in the conversation. */
|
|
13
|
+
thumbsUpCount: number;
|
|
14
|
+
/** The number of thumbs down events on messages in the conversation. */
|
|
15
|
+
thumbsDownCount: number;
|
|
16
|
+
/** The number of messages of type `USER` in the conversation. */
|
|
17
|
+
userMessageCount: number;
|
|
18
|
+
/**
|
|
19
|
+
* The total time in milliseconds that the user spent interacting with the conversation.
|
|
20
|
+
* Calculated by taking the timestamp of the last message in the conversation minus the timestamp of the first message.
|
|
21
|
+
*/
|
|
22
|
+
handleTime?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The time in milliseconds that elapsed before a human agent responded to the conversation.
|
|
25
|
+
* Calculated by taking the timestamp of the first message of type `HUMAN_AGENT`
|
|
26
|
+
* minus the timestamp of the first message in the conversation.
|
|
27
|
+
*
|
|
28
|
+
* Will not be provided if the conversation does not have a message of type `HUMAN_AGENT`.
|
|
29
|
+
*/
|
|
30
|
+
humanAgentResponseDelay?: number;
|
|
31
|
+
/** The names of all users that have a message of type `HUMAN_AGENT` on the conversation. */
|
|
32
|
+
humanAgents: string[];
|
|
33
|
+
/** The names of all users that have an associated insert event on the conversation. */
|
|
34
|
+
humanAgentsWithInserts: string[];
|
|
35
|
+
/** The names of all users that have a message of type `USER` on the conversation. */
|
|
36
|
+
users: string[];
|
|
10
37
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX";
|
|
4
|
+
export type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX";
|
|
5
5
|
export declare const EntityType: {
|
|
6
6
|
readonly Conversation: "CONVERSATION";
|
|
7
7
|
readonly ConversationMessage: "CONVERSATION_MESSAGE";
|
|
8
8
|
readonly KnowledgeBase: "KNOWLEDGE_BASE";
|
|
9
|
+
readonly KnowledgeBaseVersion: "KNOWLEDGE_BASE_VERSION";
|
|
9
10
|
readonly KnowledgeDocument: "KNOWLEDGE_DOCUMENT";
|
|
10
11
|
readonly Action: "ACTION";
|
|
11
12
|
readonly User: "USER";
|
|
@@ -8,6 +8,7 @@ exports.EntityType = {
|
|
|
8
8
|
Conversation: "CONVERSATION",
|
|
9
9
|
ConversationMessage: "CONVERSATION_MESSAGE",
|
|
10
10
|
KnowledgeBase: "KNOWLEDGE_BASE",
|
|
11
|
+
KnowledgeBaseVersion: "KNOWLEDGE_BASE_VERSION",
|
|
11
12
|
KnowledgeDocument: "KNOWLEDGE_DOCUMENT",
|
|
12
13
|
Action: "ACTION",
|
|
13
14
|
User: "USER",
|
|
@@ -7,6 +7,8 @@ export interface InboxItemDuplicateDocuments extends MavenAGI.InboxItemBase {
|
|
|
7
7
|
recommendedFixes: MavenAGI.InboxItemFixDeactivateDocument[];
|
|
8
8
|
/** List of fixes associated with the inbox item. */
|
|
9
9
|
otherFixes: MavenAGI.InboxItemFixDeactivateDocument[];
|
|
10
|
+
/** Information about the source document associated with the inbox item. */
|
|
11
|
+
sourceDocument?: MavenAGI.DocumentInformation;
|
|
10
12
|
/** List of Document information objects related to the inbox item. */
|
|
11
13
|
documents: MavenAGI.DocumentInformation[];
|
|
12
14
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type QualityReason = "MISSING_KNOWLEDGE" | "MISSING_USER_INFORMATION" | "MISSING_ACTION" | "NEEDS_USER_CLARIFICATION" | "UNSUPPORTED_FORMAT" | "
|
|
4
|
+
export type QualityReason = "MISSING_KNOWLEDGE" | "MISSING_USER_INFORMATION" | "MISSING_ACTION" | "NEEDS_USER_CLARIFICATION" | "UNSUPPORTED_FORMAT" | "INTERRUPTED" | "UNSUPPORTED_USER_BEHAVIOR" | "UNKNOWN";
|
|
5
5
|
export declare const QualityReason: {
|
|
6
6
|
readonly MissingKnowledge: "MISSING_KNOWLEDGE";
|
|
7
7
|
readonly MissingUserInformation: "MISSING_USER_INFORMATION";
|
|
8
8
|
readonly MissingAction: "MISSING_ACTION";
|
|
9
9
|
readonly NeedsUserClarification: "NEEDS_USER_CLARIFICATION";
|
|
10
10
|
readonly UnsupportedFormat: "UNSUPPORTED_FORMAT";
|
|
11
|
-
readonly GreatAnswer: "GREAT_ANSWER";
|
|
12
11
|
readonly Interrupted: "INTERRUPTED";
|
|
13
12
|
readonly UnsupportedUserBehavior: "UNSUPPORTED_USER_BEHAVIOR";
|
|
14
13
|
readonly Unknown: "UNKNOWN";
|
|
@@ -10,7 +10,6 @@ exports.QualityReason = {
|
|
|
10
10
|
MissingAction: "MISSING_ACTION",
|
|
11
11
|
NeedsUserClarification: "NEEDS_USER_CLARIFICATION",
|
|
12
12
|
UnsupportedFormat: "UNSUPPORTED_FORMAT",
|
|
13
|
-
GreatAnswer: "GREAT_ANSWER",
|
|
14
13
|
Interrupted: "INTERRUPTED",
|
|
15
14
|
UnsupportedUserBehavior: "UNSUPPORTED_USER_BEHAVIOR",
|
|
16
15
|
Unknown: "UNKNOWN",
|
|
@@ -9,4 +9,6 @@ export interface UserMessage extends MavenAGI.UserMessageBase {
|
|
|
9
9
|
language?: string;
|
|
10
10
|
/** The attachments associated with the message */
|
|
11
11
|
attachments: MavenAGI.UserMessageAttachment[];
|
|
12
|
+
/** The display name of the user who created this message. Only available for users who have saved name information. */
|
|
13
|
+
userDisplayName?: string;
|
|
12
14
|
}
|
|
@@ -14,14 +14,13 @@ export * from "./UserData";
|
|
|
14
14
|
export * from "./VisibilityType";
|
|
15
15
|
export * from "./AppUserRequest";
|
|
16
16
|
export * from "./AppUserResponse";
|
|
17
|
-
export * from "./EventTriggerBase";
|
|
18
|
-
export * from "./EventTriggerResponse";
|
|
19
|
-
export * from "./EventTriggerType";
|
|
20
17
|
export * from "./Page";
|
|
21
18
|
export * from "./BasePaginatedRequest";
|
|
22
19
|
export * from "./ActionParameterType";
|
|
23
20
|
export * from "./ActionEnumOption";
|
|
24
21
|
export * from "./Sentiment";
|
|
22
|
+
export * from "./Quality";
|
|
23
|
+
export * from "./QualityReason";
|
|
25
24
|
export * from "./ConversationSummary";
|
|
26
25
|
export * from "./ConversationAnalysis";
|
|
27
26
|
export * from "./ConversationInformation";
|
|
@@ -57,6 +56,7 @@ export * from "./PreconditionBase";
|
|
|
57
56
|
export * from "./MetadataPrecondition";
|
|
58
57
|
export * from "./ConversationPrecondition";
|
|
59
58
|
export * from "./ResponseConfigPrecondition";
|
|
59
|
+
export * from "./AppPrecondition";
|
|
60
60
|
export * from "./PreconditionGroupOperator";
|
|
61
61
|
export * from "./PreconditionGroup";
|
|
62
62
|
export * from "./TagsPrecondition";
|
|
@@ -30,14 +30,13 @@ __exportStar(require("./UserData"), exports);
|
|
|
30
30
|
__exportStar(require("./VisibilityType"), exports);
|
|
31
31
|
__exportStar(require("./AppUserRequest"), exports);
|
|
32
32
|
__exportStar(require("./AppUserResponse"), exports);
|
|
33
|
-
__exportStar(require("./EventTriggerBase"), exports);
|
|
34
|
-
__exportStar(require("./EventTriggerResponse"), exports);
|
|
35
|
-
__exportStar(require("./EventTriggerType"), exports);
|
|
36
33
|
__exportStar(require("./Page"), exports);
|
|
37
34
|
__exportStar(require("./BasePaginatedRequest"), exports);
|
|
38
35
|
__exportStar(require("./ActionParameterType"), exports);
|
|
39
36
|
__exportStar(require("./ActionEnumOption"), exports);
|
|
40
37
|
__exportStar(require("./Sentiment"), exports);
|
|
38
|
+
__exportStar(require("./Quality"), exports);
|
|
39
|
+
__exportStar(require("./QualityReason"), exports);
|
|
41
40
|
__exportStar(require("./ConversationSummary"), exports);
|
|
42
41
|
__exportStar(require("./ConversationAnalysis"), exports);
|
|
43
42
|
__exportStar(require("./ConversationInformation"), exports);
|
|
@@ -73,6 +72,7 @@ __exportStar(require("./PreconditionBase"), exports);
|
|
|
73
72
|
__exportStar(require("./MetadataPrecondition"), exports);
|
|
74
73
|
__exportStar(require("./ConversationPrecondition"), exports);
|
|
75
74
|
__exportStar(require("./ResponseConfigPrecondition"), exports);
|
|
75
|
+
__exportStar(require("./AppPrecondition"), exports);
|
|
76
76
|
__exportStar(require("./PreconditionGroupOperator"), exports);
|
|
77
77
|
__exportStar(require("./PreconditionGroup"), exports);
|
|
78
78
|
__exportStar(require("./TagsPrecondition"), exports);
|
|
@@ -36,7 +36,14 @@ export declare class Conversation {
|
|
|
36
36
|
protected readonly _options: Conversation.Options;
|
|
37
37
|
constructor(_options: Conversation.Options);
|
|
38
38
|
/**
|
|
39
|
-
* Initialize a new conversation.
|
|
39
|
+
* Initialize a new conversation.
|
|
40
|
+
* Only required if the ask request wishes to supply conversation level data or when syncing to external systems.
|
|
41
|
+
*
|
|
42
|
+
* Conversations can not be modified using this API. If the conversation already exists then the existing conversation will be returned.
|
|
43
|
+
*
|
|
44
|
+
* After initialization,
|
|
45
|
+
* - metadata can be changed using the `updateConversationMetadata` API.
|
|
46
|
+
* - messages can be added to the conversation with the `appendNewMessages` or `ask` APIs.
|
|
40
47
|
*
|
|
41
48
|
* @param {MavenAGI.ConversationRequest} request
|
|
42
49
|
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -178,7 +185,8 @@ export declare class Conversation {
|
|
|
178
185
|
* transientData: {
|
|
179
186
|
* "userToken": "abcdef123",
|
|
180
187
|
* "queryApiKey": "foobar456"
|
|
181
|
-
* }
|
|
188
|
+
* },
|
|
189
|
+
* timezone: "America/New_York"
|
|
182
190
|
* })
|
|
183
191
|
*/
|
|
184
192
|
ask(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
@@ -60,7 +60,14 @@ class Conversation {
|
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Initialize a new conversation.
|
|
63
|
+
* Initialize a new conversation.
|
|
64
|
+
* Only required if the ask request wishes to supply conversation level data or when syncing to external systems.
|
|
65
|
+
*
|
|
66
|
+
* Conversations can not be modified using this API. If the conversation already exists then the existing conversation will be returned.
|
|
67
|
+
*
|
|
68
|
+
* After initialization,
|
|
69
|
+
* - metadata can be changed using the `updateConversationMetadata` API.
|
|
70
|
+
* - messages can be added to the conversation with the `appendNewMessages` or `ask` APIs.
|
|
64
71
|
*
|
|
65
72
|
* @param {MavenAGI.ConversationRequest} request
|
|
66
73
|
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -101,7 +108,7 @@ class Conversation {
|
|
|
101
108
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
102
109
|
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/conversations"),
|
|
103
110
|
method: "POST",
|
|
104
|
-
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.
|
|
111
|
+
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),
|
|
105
112
|
contentType: "application/json",
|
|
106
113
|
requestType: "json",
|
|
107
114
|
body: serializers.ConversationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -187,7 +194,7 @@ class Conversation {
|
|
|
187
194
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
188
195
|
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/conversations/${encodeURIComponent(conversationId)}`),
|
|
189
196
|
method: "GET",
|
|
190
|
-
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.
|
|
197
|
+
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),
|
|
191
198
|
contentType: "application/json",
|
|
192
199
|
queryParameters: _queryParams,
|
|
193
200
|
requestType: "json",
|
|
@@ -282,7 +289,7 @@ class Conversation {
|
|
|
282
289
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
283
290
|
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/conversations/${encodeURIComponent(conversationId)}`),
|
|
284
291
|
method: "DELETE",
|
|
285
|
-
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.
|
|
292
|
+
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),
|
|
286
293
|
contentType: "application/json",
|
|
287
294
|
queryParameters: _queryParams,
|
|
288
295
|
requestType: "json",
|
|
@@ -376,7 +383,7 @@ class Conversation {
|
|
|
376
383
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
377
384
|
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/conversations/${encodeURIComponent(conversationId)}/messages`),
|
|
378
385
|
method: "POST",
|
|
379
|
-
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.
|
|
386
|
+
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),
|
|
380
387
|
contentType: "application/json",
|
|
381
388
|
requestType: "json",
|
|
382
389
|
body: serializers.conversation.appendNewMessages.Request.jsonOrThrow(request, {
|
|
@@ -474,7 +481,8 @@ class Conversation {
|
|
|
474
481
|
* transientData: {
|
|
475
482
|
* "userToken": "abcdef123",
|
|
476
483
|
* "queryApiKey": "foobar456"
|
|
477
|
-
* }
|
|
484
|
+
* },
|
|
485
|
+
* timezone: "America/New_York"
|
|
478
486
|
* })
|
|
479
487
|
*/
|
|
480
488
|
ask(conversationId, request, requestOptions) {
|
|
@@ -483,7 +491,7 @@ class Conversation {
|
|
|
483
491
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
484
492
|
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/conversations/${encodeURIComponent(conversationId)}/ask`),
|
|
485
493
|
method: "POST",
|
|
486
|
-
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.
|
|
494
|
+
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),
|
|
487
495
|
contentType: "application/json",
|
|
488
496
|
requestType: "json",
|
|
489
497
|
body: serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -565,7 +573,7 @@ class Conversation {
|
|
|
565
573
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
566
574
|
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/conversations/${encodeURIComponent(conversationId)}/ask_stream`),
|
|
567
575
|
method: "POST",
|
|
568
|
-
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.
|
|
576
|
+
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),
|
|
569
577
|
contentType: "application/json",
|
|
570
578
|
requestType: "json",
|
|
571
579
|
body: serializers.AskRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -663,7 +671,7 @@ class Conversation {
|
|
|
663
671
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
664
672
|
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/conversations/${encodeURIComponent(conversationId)}/generate_maven_suggestions`),
|
|
665
673
|
method: "POST",
|
|
666
|
-
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.
|
|
674
|
+
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),
|
|
667
675
|
contentType: "application/json",
|
|
668
676
|
requestType: "json",
|
|
669
677
|
body: serializers.GenerateMavenSuggestionsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -743,7 +751,7 @@ class Conversation {
|
|
|
743
751
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
744
752
|
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/conversations/${encodeURIComponent(conversationId)}/categorize`),
|
|
745
753
|
method: "POST",
|
|
746
|
-
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.
|
|
754
|
+
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),
|
|
747
755
|
contentType: "application/json",
|
|
748
756
|
requestType: "json",
|
|
749
757
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -837,7 +845,7 @@ class Conversation {
|
|
|
837
845
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
838
846
|
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/conversations/feedback"),
|
|
839
847
|
method: "POST",
|
|
840
|
-
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.
|
|
848
|
+
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),
|
|
841
849
|
contentType: "application/json",
|
|
842
850
|
requestType: "json",
|
|
843
851
|
body: serializers.FeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -925,7 +933,7 @@ class Conversation {
|
|
|
925
933
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
926
934
|
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/conversations/${encodeURIComponent(conversationId)}/submit-form`),
|
|
927
935
|
method: "POST",
|
|
928
|
-
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.
|
|
936
|
+
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),
|
|
929
937
|
contentType: "application/json",
|
|
930
938
|
requestType: "json",
|
|
931
939
|
body: serializers.SubmitActionFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1010,7 +1018,7 @@ class Conversation {
|
|
|
1010
1018
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1011
1019
|
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/conversations/${encodeURIComponent(conversationId)}/metadata`),
|
|
1012
1020
|
method: "POST",
|
|
1013
|
-
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.
|
|
1021
|
+
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),
|
|
1014
1022
|
contentType: "application/json",
|
|
1015
1023
|
requestType: "json",
|
|
1016
1024
|
body: serializers.conversation.addConversationMetadata.Request.jsonOrThrow(request, {
|
|
@@ -1104,7 +1112,7 @@ class Conversation {
|
|
|
1104
1112
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1105
1113
|
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/conversations/${encodeURIComponent(conversationId)}/metadata`),
|
|
1106
1114
|
method: "PUT",
|
|
1107
|
-
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.
|
|
1115
|
+
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),
|
|
1108
1116
|
contentType: "application/json",
|
|
1109
1117
|
requestType: "json",
|
|
1110
1118
|
body: serializers.UpdateMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1184,7 +1192,7 @@ class Conversation {
|
|
|
1184
1192
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1185
1193
|
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/conversations/search"),
|
|
1186
1194
|
method: "POST",
|
|
1187
|
-
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.
|
|
1195
|
+
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),
|
|
1188
1196
|
contentType: "application/json",
|
|
1189
1197
|
requestType: "json",
|
|
1190
1198
|
body: serializers.ConversationsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -19,7 +19,8 @@ import * as MavenAGI from "../../../index";
|
|
|
19
19
|
* transientData: {
|
|
20
20
|
* "userToken": "abcdef123",
|
|
21
21
|
* "queryApiKey": "foobar456"
|
|
22
|
-
* }
|
|
22
|
+
* },
|
|
23
|
+
* timezone: "America/New_York"
|
|
23
24
|
* }
|
|
24
25
|
*/
|
|
25
26
|
export interface AskRequest {
|
|
@@ -33,4 +34,6 @@ export interface AskRequest {
|
|
|
33
34
|
attachments?: MavenAGI.Attachment[];
|
|
34
35
|
/** Transient data which the Maven platform will not persist. This data will only be forwarded to actions taken by this ask request. For example, one may put in user tokens as transient data. */
|
|
35
36
|
transientData?: Record<string, string>;
|
|
37
|
+
/** IANA timezone identifier (e.g. "America/New_York", "Europe/London") to be used for time-based operations in the conversation. */
|
|
38
|
+
timezone?: string;
|
|
36
39
|
}
|
|
@@ -16,8 +16,6 @@ export * from "./CategorizationResponse";
|
|
|
16
16
|
export * from "./ConversationField";
|
|
17
17
|
export * from "./NumericConversationField";
|
|
18
18
|
export * from "./ResolutionStatus";
|
|
19
|
-
export * from "./Quality";
|
|
20
|
-
export * from "./QualityReason";
|
|
21
19
|
export * from "./ConversationsSearchRequest";
|
|
22
20
|
export * from "./ConversationsResponse";
|
|
23
21
|
export * from "./ConversationFilter";
|
|
@@ -32,8 +32,6 @@ __exportStar(require("./CategorizationResponse"), exports);
|
|
|
32
32
|
__exportStar(require("./ConversationField"), exports);
|
|
33
33
|
__exportStar(require("./NumericConversationField"), exports);
|
|
34
34
|
__exportStar(require("./ResolutionStatus"), exports);
|
|
35
|
-
__exportStar(require("./Quality"), exports);
|
|
36
|
-
__exportStar(require("./QualityReason"), exports);
|
|
37
35
|
__exportStar(require("./ConversationsSearchRequest"), exports);
|
|
38
36
|
__exportStar(require("./ConversationsResponse"), exports);
|
|
39
37
|
__exportStar(require("./ConversationFilter"), exports);
|
|
@@ -78,7 +78,7 @@ class Inbox {
|
|
|
78
78
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
79
|
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/inbox/search"),
|
|
80
80
|
method: "POST",
|
|
81
|
-
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.
|
|
81
|
+
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),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
body: serializers.InboxSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -164,7 +164,7 @@ class Inbox {
|
|
|
164
164
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
165
165
|
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/inbox/${encodeURIComponent(inboxItemId)}`),
|
|
166
166
|
method: "GET",
|
|
167
|
-
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.
|
|
167
|
+
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),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
queryParameters: _queryParams,
|
|
170
170
|
requestType: "json",
|
|
@@ -250,7 +250,7 @@ class Inbox {
|
|
|
250
250
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
251
251
|
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/inbox/fix/${encodeURIComponent(inboxItemFixId)}`),
|
|
252
252
|
method: "GET",
|
|
253
|
-
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.
|
|
253
|
+
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),
|
|
254
254
|
contentType: "application/json",
|
|
255
255
|
queryParameters: _queryParams,
|
|
256
256
|
requestType: "json",
|
|
@@ -333,7 +333,7 @@ class Inbox {
|
|
|
333
333
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
334
334
|
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/inbox/fix/${encodeURIComponent(inboxItemFixId)}/apply`),
|
|
335
335
|
method: "POST",
|
|
336
|
-
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.
|
|
336
|
+
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),
|
|
337
337
|
contentType: "application/json",
|
|
338
338
|
requestType: "json",
|
|
339
339
|
body: serializers.ApplyInboxItemFixRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Inbox {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
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/inbox/${encodeURIComponent(inboxItemId)}/ignore`),
|
|
416
416
|
method: "POST",
|
|
417
|
-
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.
|
|
417
|
+
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),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
queryParameters: _queryParams,
|
|
420
420
|
requestType: "json",
|
package/api/resources/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * as actions from "./actions";
|
|
|
2
2
|
export * from "./actions/types";
|
|
3
3
|
export * as analytics from "./analytics";
|
|
4
4
|
export * from "./analytics/types";
|
|
5
|
+
export * as appSettings from "./appSettings";
|
|
6
|
+
export * from "./appSettings/types";
|
|
5
7
|
export * as commons from "./commons";
|
|
6
8
|
export * from "./commons/types";
|
|
7
9
|
export * as conversation from "./conversation";
|
|
@@ -17,8 +19,10 @@ export * from "./translations/types";
|
|
|
17
19
|
export * as triggers from "./triggers";
|
|
18
20
|
export * from "./triggers/types";
|
|
19
21
|
export * from "./commons/errors";
|
|
20
|
-
export * as
|
|
22
|
+
export * as organizations from "./organizations";
|
|
21
23
|
export * as users from "./users";
|
|
24
|
+
export * from "./appSettings/client/requests";
|
|
22
25
|
export * from "./conversation/client/requests";
|
|
23
26
|
export * from "./inbox/client/requests";
|
|
27
|
+
export * from "./triggers/client/requests";
|
|
24
28
|
export * from "./users/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -36,11 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.
|
|
39
|
+
exports.users = exports.organizations = exports.triggers = exports.translations = exports.realtime = exports.knowledge = exports.inbox = exports.conversation = exports.commons = exports.appSettings = exports.analytics = exports.actions = void 0;
|
|
40
40
|
exports.actions = __importStar(require("./actions"));
|
|
41
41
|
__exportStar(require("./actions/types"), exports);
|
|
42
42
|
exports.analytics = __importStar(require("./analytics"));
|
|
43
43
|
__exportStar(require("./analytics/types"), exports);
|
|
44
|
+
exports.appSettings = __importStar(require("./appSettings"));
|
|
45
|
+
__exportStar(require("./appSettings/types"), exports);
|
|
44
46
|
exports.commons = __importStar(require("./commons"));
|
|
45
47
|
__exportStar(require("./commons/types"), exports);
|
|
46
48
|
exports.conversation = __importStar(require("./conversation"));
|
|
@@ -56,8 +58,10 @@ __exportStar(require("./translations/types"), exports);
|
|
|
56
58
|
exports.triggers = __importStar(require("./triggers"));
|
|
57
59
|
__exportStar(require("./triggers/types"), exports);
|
|
58
60
|
__exportStar(require("./commons/errors"), exports);
|
|
59
|
-
exports.
|
|
61
|
+
exports.organizations = __importStar(require("./organizations"));
|
|
60
62
|
exports.users = __importStar(require("./users"));
|
|
63
|
+
__exportStar(require("./appSettings/client/requests"), exports);
|
|
61
64
|
__exportStar(require("./conversation/client/requests"), exports);
|
|
62
65
|
__exportStar(require("./inbox/client/requests"), exports);
|
|
66
|
+
__exportStar(require("./triggers/client/requests"), exports);
|
|
63
67
|
__exportStar(require("./users/client/requests"), exports);
|
|
@@ -69,7 +69,9 @@ export declare class Knowledge {
|
|
|
69
69
|
*/
|
|
70
70
|
getKnowledgeBase(knowledgeBaseReferenceId: string, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeBaseResponse>;
|
|
71
71
|
/**
|
|
72
|
-
* Create a new knowledge base version.
|
|
72
|
+
* Create a new knowledge base version.
|
|
73
|
+
*
|
|
74
|
+
* If an existing version is in progress, then that version will be finalized in an error state.
|
|
73
75
|
*
|
|
74
76
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a version for. All other entity ID fields are inferred from the request.
|
|
75
77
|
* @param {MavenAGI.KnowledgeBaseVersion} request
|
|
@@ -81,7 +83,15 @@ export declare class Knowledge {
|
|
|
81
83
|
*
|
|
82
84
|
* @example
|
|
83
85
|
* await client.knowledge.createKnowledgeBaseVersion("help-center", {
|
|
84
|
-
*
|
|
86
|
+
* versionId: {
|
|
87
|
+
* type: "KNOWLEDGE_BASE_VERSION",
|
|
88
|
+
* referenceId: "versionId",
|
|
89
|
+
* appId: "maven",
|
|
90
|
+
* organizationId: "acme",
|
|
91
|
+
* agentId: "support"
|
|
92
|
+
* },
|
|
93
|
+
* type: "FULL",
|
|
94
|
+
* status: "IN_PROGRESS"
|
|
85
95
|
* })
|
|
86
96
|
*/
|
|
87
97
|
createKnowledgeBaseVersion(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeBaseVersion, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeBaseVersion>;
|
|
@@ -89,6 +99,7 @@ export declare class Knowledge {
|
|
|
89
99
|
* Finalize the latest knowledge base version. Required to indicate the version is complete. Will throw an exception if the latest version is not in progress.
|
|
90
100
|
*
|
|
91
101
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to finalize a version for. All other entity ID fields are inferred from the request.
|
|
102
|
+
* @param {MavenAGI.FinalizeKnowledgeBaseVersionRequest} request
|
|
92
103
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
104
|
*
|
|
94
105
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -96,12 +107,24 @@ export declare class Knowledge {
|
|
|
96
107
|
* @throws {@link MavenAGI.ServerError}
|
|
97
108
|
*
|
|
98
109
|
* @example
|
|
99
|
-
* await client.knowledge.finalizeKnowledgeBaseVersion("help-center"
|
|
110
|
+
* await client.knowledge.finalizeKnowledgeBaseVersion("help-center", {
|
|
111
|
+
* versionId: {
|
|
112
|
+
* type: "KNOWLEDGE_BASE_VERSION",
|
|
113
|
+
* referenceId: "versionId",
|
|
114
|
+
* appId: "maven"
|
|
115
|
+
* },
|
|
116
|
+
* status: "SUCCEEDED"
|
|
117
|
+
* })
|
|
100
118
|
*/
|
|
101
|
-
finalizeKnowledgeBaseVersion(knowledgeBaseReferenceId: string, requestOptions?: Knowledge.RequestOptions): Promise<
|
|
119
|
+
finalizeKnowledgeBaseVersion(knowledgeBaseReferenceId: string, request: MavenAGI.FinalizeKnowledgeBaseVersionRequest, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeBaseVersion>;
|
|
102
120
|
/**
|
|
103
121
|
* Create knowledge document. Requires an existing knowledge base with an in progress version. Will throw an exception if the latest version is not in progress.
|
|
104
122
|
*
|
|
123
|
+
* <Tip>
|
|
124
|
+
* This API maintains document version history. If for the same reference ID neither the `title` nor `text` fields
|
|
125
|
+
* have changed, a new document version will not be created. The existing version will be reused.
|
|
126
|
+
* </Tip>
|
|
127
|
+
*
|
|
105
128
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a document for. All other entity ID fields are inferred from the request.
|
|
106
129
|
* @param {MavenAGI.KnowledgeDocumentRequest} request
|
|
107
130
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -115,9 +138,17 @@ export declare class Knowledge {
|
|
|
115
138
|
* knowledgeDocumentId: {
|
|
116
139
|
* referenceId: "getting-started"
|
|
117
140
|
* },
|
|
141
|
+
* versionId: {
|
|
142
|
+
* type: "KNOWLEDGE_BASE_VERSION",
|
|
143
|
+
* referenceId: "versionId",
|
|
144
|
+
* appId: "maven"
|
|
145
|
+
* },
|
|
118
146
|
* contentType: "MARKDOWN",
|
|
119
147
|
* content: "## Getting started\\nThis is a getting started guide for the help center.",
|
|
120
|
-
* title: "Getting started"
|
|
148
|
+
* title: "Getting started",
|
|
149
|
+
* metadata: {
|
|
150
|
+
* "category": "getting-started"
|
|
151
|
+
* }
|
|
121
152
|
* })
|
|
122
153
|
*/
|
|
123
154
|
createKnowledgeDocument(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeDocumentRequest, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeDocumentResponse>;
|
|
@@ -137,9 +168,17 @@ export declare class Knowledge {
|
|
|
137
168
|
* knowledgeDocumentId: {
|
|
138
169
|
* referenceId: "getting-started"
|
|
139
170
|
* },
|
|
171
|
+
* versionId: {
|
|
172
|
+
* type: "KNOWLEDGE_BASE_VERSION",
|
|
173
|
+
* referenceId: "versionId",
|
|
174
|
+
* appId: "maven"
|
|
175
|
+
* },
|
|
140
176
|
* contentType: "MARKDOWN",
|
|
141
177
|
* content: "## Getting started\\nThis is a getting started guide for the help center.",
|
|
142
|
-
* title: "Getting started"
|
|
178
|
+
* title: "Getting started",
|
|
179
|
+
* metadata: {
|
|
180
|
+
* "category": "getting-started"
|
|
181
|
+
* }
|
|
143
182
|
* })
|
|
144
183
|
*/
|
|
145
184
|
updateKnowledgeDocument(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeDocumentRequest, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeDocumentResponse>;
|