mavenagi 1.0.11 → 1.0.12
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 +6 -0
- package/Client.js +30 -20
- package/README.md +7 -40
- package/api/resources/actions/client/Client.js +3 -3
- package/api/resources/agents/client/Client.d.ts +86 -0
- package/api/resources/agents/client/Client.js +320 -0
- package/api/resources/agents/client/index.d.ts +1 -0
- package/api/resources/agents/client/index.js +2 -0
- package/api/resources/agents/index.d.ts +2 -0
- package/api/resources/agents/index.js +18 -0
- package/api/resources/agents/types/Agent.d.ts +14 -0
- package/api/resources/agents/types/Agent.js +5 -0
- package/api/resources/agents/types/AgentEnvironment.d.ts +9 -0
- package/api/resources/agents/types/AgentEnvironment.js +11 -0
- package/api/resources/agents/types/AgentField.d.ts +8 -0
- package/api/resources/agents/types/AgentField.js +10 -0
- package/api/resources/agents/types/AgentFilter.d.ts +8 -0
- package/api/resources/agents/types/AgentFilter.js +5 -0
- package/api/resources/agents/types/AgentsSearchRequest.d.ts +8 -0
- package/api/resources/agents/types/AgentsSearchRequest.js +5 -0
- package/api/resources/agents/types/AgentsSearchResponse.d.ts +7 -0
- package/api/resources/agents/types/AgentsSearchResponse.js +5 -0
- package/api/resources/agents/types/index.d.ts +6 -0
- package/api/resources/agents/types/index.js +22 -0
- package/api/resources/analytics/client/Client.js +3 -3
- package/api/resources/appSettings/client/Client.js +3 -3
- package/api/resources/commons/types/ActionParameter.d.ts +2 -0
- package/api/resources/commons/types/ActionParameterType.d.ts +2 -1
- package/api/resources/commons/types/ActionParameterType.js +1 -0
- package/api/resources/commons/types/EntityType.d.ts +2 -1
- package/api/resources/commons/types/EntityType.js +1 -0
- package/api/resources/conversation/client/Client.js +13 -13
- package/api/resources/events/client/Client.d.ts +53 -0
- package/api/resources/events/client/Client.js +157 -0
- package/api/resources/events/client/index.d.ts +1 -0
- package/api/resources/events/client/index.js +2 -0
- package/api/resources/events/index.d.ts +2 -0
- package/api/resources/events/index.js +18 -0
- package/api/resources/events/types/BrowserInfo.d.ts +10 -0
- package/api/resources/events/types/BrowserInfo.js +5 -0
- package/api/resources/events/types/BrowserType.d.ts +12 -0
- package/api/resources/events/types/BrowserType.js +14 -0
- package/api/resources/events/types/ContextInfo.d.ts +6 -0
- package/api/resources/events/types/ContextInfo.js +5 -0
- package/api/resources/events/types/DeviceInfo.d.ts +10 -0
- package/api/resources/events/types/DeviceInfo.js +5 -0
- package/api/resources/events/types/DeviceType.d.ts +10 -0
- package/api/resources/events/types/DeviceType.js +12 -0
- package/api/resources/events/types/EventBaseNoId.d.ts +11 -0
- package/api/resources/events/types/EventBaseNoId.js +5 -0
- package/api/resources/events/types/EventField.d.ts +7 -0
- package/api/resources/events/types/EventField.js +9 -0
- package/api/resources/events/types/EventFilter.d.ts +13 -0
- package/api/resources/events/types/EventFilter.js +5 -0
- package/api/resources/events/types/EventResponse.d.ts +13 -0
- package/api/resources/events/types/EventResponse.js +5 -0
- package/api/resources/events/types/EventType.d.ts +8 -0
- package/api/resources/events/types/EventType.js +10 -0
- package/api/resources/events/types/EventsSearchRequest.d.ts +8 -0
- package/api/resources/events/types/EventsSearchRequest.js +5 -0
- package/api/resources/events/types/EventsSearchResponse.d.ts +8 -0
- package/api/resources/events/types/EventsSearchResponse.js +5 -0
- package/api/resources/events/types/FeedbackInfo.d.ts +12 -0
- package/api/resources/events/types/FeedbackInfo.js +5 -0
- package/api/resources/events/types/GeoInfo.d.ts +11 -0
- package/api/resources/events/types/GeoInfo.js +5 -0
- package/api/resources/events/types/IpInfo.d.ts +6 -0
- package/api/resources/events/types/IpInfo.js +5 -0
- package/api/resources/events/types/LanguageInfo.d.ts +6 -0
- package/api/resources/events/types/LanguageInfo.js +5 -0
- package/api/resources/events/types/NovelSystemEventNoId.d.ts +8 -0
- package/api/resources/events/types/NovelSystemEventNoId.js +5 -0
- package/api/resources/events/types/OsInfo.d.ts +9 -0
- package/api/resources/events/types/OsInfo.js +5 -0
- package/api/resources/events/types/OsType.d.ts +12 -0
- package/api/resources/events/types/OsType.js +14 -0
- package/api/resources/events/types/PageInfo.d.ts +10 -0
- package/api/resources/events/types/PageInfo.js +5 -0
- package/api/resources/events/types/SessionInfo.d.ts +9 -0
- package/api/resources/events/types/SessionInfo.js +5 -0
- package/api/resources/events/types/SourceInfo.d.ts +12 -0
- package/api/resources/events/types/SourceInfo.js +5 -0
- package/api/resources/events/types/SourceType.d.ts +9 -0
- package/api/resources/events/types/SourceType.js +11 -0
- package/api/resources/events/types/SurveyInfo.d.ts +7 -0
- package/api/resources/events/types/SurveyInfo.js +5 -0
- package/api/resources/events/types/SystemEvent.d.ts +8 -0
- package/api/resources/events/types/SystemEvent.js +5 -0
- package/api/resources/events/types/SystemEventName.d.ts +18 -0
- package/api/resources/events/types/SystemEventName.js +11 -0
- package/api/resources/events/types/UserEvent.d.ts +16 -0
- package/api/resources/events/types/UserEvent.js +5 -0
- package/api/resources/events/types/UserEventName.d.ts +22 -0
- package/api/resources/events/types/UserEventName.js +12 -0
- package/api/resources/events/types/UserInfo.d.ts +7 -0
- package/api/resources/events/types/UserInfo.js +5 -0
- package/api/resources/events/types/index.d.ts +29 -0
- package/api/resources/events/types/index.js +45 -0
- package/api/resources/inbox/client/Client.js +5 -5
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +5 -1
- package/api/resources/knowledge/client/Client.js +7 -7
- package/api/resources/organizations/client/Client.js +2 -2
- package/api/resources/realtime/client/Client.d.ts +2 -0
- package/api/resources/realtime/client/Client.js +3 -0
- package/api/resources/realtime/types/AudioFormat.d.ts +8 -0
- package/api/resources/realtime/types/AudioFormat.js +10 -0
- package/api/resources/realtime/types/ControlEvent.d.ts +4 -1
- package/api/resources/realtime/types/MessageBase.d.ts +6 -0
- package/api/resources/realtime/types/MessageBase.js +5 -0
- package/api/resources/realtime/types/SubscribeEvent.d.ts +4 -1
- package/api/resources/realtime/types/index.d.ts +3 -1
- package/api/resources/realtime/types/index.js +3 -1
- package/api/resources/translations/client/Client.js +1 -1
- package/api/resources/triggers/client/Client.js +5 -5
- package/api/resources/users/client/Client.js +3 -3
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +30 -20
- package/dist/api/resources/actions/client/Client.js +3 -3
- package/dist/api/resources/agents/client/Client.d.ts +86 -0
- package/dist/api/resources/agents/client/Client.js +320 -0
- package/dist/api/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/agents/client/index.js +2 -0
- package/dist/api/resources/agents/index.d.ts +2 -0
- package/dist/api/resources/agents/index.js +18 -0
- package/dist/api/resources/agents/types/Agent.d.ts +14 -0
- package/dist/api/resources/agents/types/Agent.js +5 -0
- package/dist/api/resources/agents/types/AgentEnvironment.d.ts +9 -0
- package/dist/api/resources/agents/types/AgentEnvironment.js +11 -0
- package/dist/api/resources/agents/types/AgentField.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentField.js +10 -0
- package/dist/api/resources/agents/types/AgentFilter.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentFilter.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchRequest.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentsSearchRequest.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchResponse.d.ts +7 -0
- package/dist/api/resources/agents/types/AgentsSearchResponse.js +5 -0
- package/dist/api/resources/agents/types/index.d.ts +6 -0
- package/dist/api/resources/agents/types/index.js +22 -0
- package/dist/api/resources/analytics/client/Client.js +3 -3
- package/dist/api/resources/appSettings/client/Client.js +3 -3
- package/dist/api/resources/commons/types/ActionParameter.d.ts +2 -0
- package/dist/api/resources/commons/types/ActionParameterType.d.ts +2 -1
- package/dist/api/resources/commons/types/ActionParameterType.js +1 -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/conversation/client/Client.js +13 -13
- package/dist/api/resources/events/client/Client.d.ts +53 -0
- package/dist/api/resources/events/client/Client.js +157 -0
- package/dist/api/resources/events/client/index.d.ts +1 -0
- package/dist/api/resources/events/client/index.js +2 -0
- package/dist/api/resources/events/index.d.ts +2 -0
- package/dist/api/resources/events/index.js +18 -0
- package/dist/api/resources/events/types/BrowserInfo.d.ts +10 -0
- package/dist/api/resources/events/types/BrowserInfo.js +5 -0
- package/dist/api/resources/events/types/BrowserType.d.ts +12 -0
- package/dist/api/resources/events/types/BrowserType.js +14 -0
- package/dist/api/resources/events/types/ContextInfo.d.ts +6 -0
- package/dist/api/resources/events/types/ContextInfo.js +5 -0
- package/dist/api/resources/events/types/DeviceInfo.d.ts +10 -0
- package/dist/api/resources/events/types/DeviceInfo.js +5 -0
- package/dist/api/resources/events/types/DeviceType.d.ts +10 -0
- package/dist/api/resources/events/types/DeviceType.js +12 -0
- package/dist/api/resources/events/types/EventBaseNoId.d.ts +11 -0
- package/dist/api/resources/events/types/EventBaseNoId.js +5 -0
- package/dist/api/resources/events/types/EventField.d.ts +7 -0
- package/dist/api/resources/events/types/EventField.js +9 -0
- package/dist/api/resources/events/types/EventFilter.d.ts +13 -0
- package/dist/api/resources/events/types/EventFilter.js +5 -0
- package/dist/api/resources/events/types/EventResponse.d.ts +13 -0
- package/dist/api/resources/events/types/EventResponse.js +5 -0
- package/dist/api/resources/events/types/EventType.d.ts +8 -0
- package/dist/api/resources/events/types/EventType.js +10 -0
- package/dist/api/resources/events/types/EventsSearchRequest.d.ts +8 -0
- package/dist/api/resources/events/types/EventsSearchRequest.js +5 -0
- package/dist/api/resources/events/types/EventsSearchResponse.d.ts +8 -0
- package/dist/api/resources/events/types/EventsSearchResponse.js +5 -0
- package/dist/api/resources/events/types/FeedbackInfo.d.ts +12 -0
- package/dist/api/resources/events/types/FeedbackInfo.js +5 -0
- package/dist/api/resources/events/types/GeoInfo.d.ts +11 -0
- package/dist/api/resources/events/types/GeoInfo.js +5 -0
- package/dist/api/resources/events/types/IpInfo.d.ts +6 -0
- package/dist/api/resources/events/types/IpInfo.js +5 -0
- package/dist/api/resources/events/types/LanguageInfo.d.ts +6 -0
- package/dist/api/resources/events/types/LanguageInfo.js +5 -0
- package/dist/api/resources/events/types/NovelSystemEventNoId.d.ts +8 -0
- package/dist/api/resources/events/types/NovelSystemEventNoId.js +5 -0
- package/dist/api/resources/events/types/OsInfo.d.ts +9 -0
- package/dist/api/resources/events/types/OsInfo.js +5 -0
- package/dist/api/resources/events/types/OsType.d.ts +12 -0
- package/dist/api/resources/events/types/OsType.js +14 -0
- package/dist/api/resources/events/types/PageInfo.d.ts +10 -0
- package/dist/api/resources/events/types/PageInfo.js +5 -0
- package/dist/api/resources/events/types/SessionInfo.d.ts +9 -0
- package/dist/api/resources/events/types/SessionInfo.js +5 -0
- package/dist/api/resources/events/types/SourceInfo.d.ts +12 -0
- package/dist/api/resources/events/types/SourceInfo.js +5 -0
- package/dist/api/resources/events/types/SourceType.d.ts +9 -0
- package/dist/api/resources/events/types/SourceType.js +11 -0
- package/dist/api/resources/events/types/SurveyInfo.d.ts +7 -0
- package/dist/api/resources/events/types/SurveyInfo.js +5 -0
- package/dist/api/resources/events/types/SystemEvent.d.ts +8 -0
- package/dist/api/resources/events/types/SystemEvent.js +5 -0
- package/dist/api/resources/events/types/SystemEventName.d.ts +18 -0
- package/dist/api/resources/events/types/SystemEventName.js +11 -0
- package/dist/api/resources/events/types/UserEvent.d.ts +16 -0
- package/dist/api/resources/events/types/UserEvent.js +5 -0
- package/dist/api/resources/events/types/UserEventName.d.ts +22 -0
- package/dist/api/resources/events/types/UserEventName.js +12 -0
- package/dist/api/resources/events/types/UserInfo.d.ts +7 -0
- package/dist/api/resources/events/types/UserInfo.js +5 -0
- package/dist/api/resources/events/types/index.d.ts +29 -0
- package/dist/api/resources/events/types/index.js +45 -0
- package/dist/api/resources/inbox/client/Client.js +5 -5
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +5 -1
- package/dist/api/resources/knowledge/client/Client.js +7 -7
- package/dist/api/resources/organizations/client/Client.js +2 -2
- package/dist/api/resources/realtime/client/Client.d.ts +2 -0
- package/dist/api/resources/realtime/client/Client.js +3 -0
- package/dist/api/resources/realtime/types/AudioFormat.d.ts +8 -0
- package/dist/api/resources/realtime/types/AudioFormat.js +10 -0
- package/dist/api/resources/realtime/types/ControlEvent.d.ts +4 -1
- package/dist/api/resources/realtime/types/MessageBase.d.ts +6 -0
- package/dist/api/resources/realtime/types/MessageBase.js +5 -0
- package/dist/api/resources/realtime/types/SubscribeEvent.d.ts +4 -1
- package/dist/api/resources/realtime/types/index.d.ts +3 -1
- package/dist/api/resources/realtime/types/index.js +3 -1
- package/dist/api/resources/translations/client/Client.js +1 -1
- package/dist/api/resources/triggers/client/Client.js +5 -5
- package/dist/api/resources/users/client/Client.js +3 -3
- package/dist/serialization/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/index.js +37 -0
- package/dist/serialization/resources/agents/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/client/list.js +42 -0
- package/dist/serialization/resources/agents/index.d.ts +2 -0
- package/dist/serialization/resources/agents/index.js +18 -0
- package/dist/serialization/resources/agents/types/Agent.d.ts +17 -0
- package/dist/serialization/resources/agents/types/Agent.js +48 -0
- package/dist/serialization/resources/agents/types/AgentEnvironment.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentEnvironment.js +41 -0
- package/dist/serialization/resources/agents/types/AgentField.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentField.js +41 -0
- package/dist/serialization/resources/agents/types/AgentFilter.d.ts +13 -0
- package/dist/serialization/resources/agents/types/AgentFilter.js +44 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequest.js +49 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponse.d.ts +14 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponse.js +47 -0
- package/dist/serialization/resources/agents/types/index.d.ts +6 -0
- package/dist/serialization/resources/agents/types/index.js +22 -0
- package/dist/serialization/resources/commons/types/ActionParameter.d.ts +1 -0
- package/dist/serialization/resources/commons/types/ActionParameter.js +1 -0
- package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ActionParameterType.js +1 -1
- 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/events/index.d.ts +1 -0
- package/dist/serialization/resources/events/index.js +17 -0
- package/dist/serialization/resources/events/types/BrowserInfo.d.ts +16 -0
- package/dist/serialization/resources/events/types/BrowserInfo.js +47 -0
- package/dist/serialization/resources/events/types/BrowserType.d.ts +10 -0
- package/dist/serialization/resources/events/types/BrowserType.js +41 -0
- package/dist/serialization/resources/events/types/ContextInfo.d.ts +12 -0
- package/dist/serialization/resources/events/types/ContextInfo.js +43 -0
- package/dist/serialization/resources/events/types/DeviceInfo.d.ts +17 -0
- package/dist/serialization/resources/events/types/DeviceInfo.js +48 -0
- package/dist/serialization/resources/events/types/DeviceType.d.ts +10 -0
- package/dist/serialization/resources/events/types/DeviceType.js +41 -0
- package/dist/serialization/resources/events/types/EventBaseNoId.d.ts +20 -0
- package/dist/serialization/resources/events/types/EventBaseNoId.js +51 -0
- package/dist/serialization/resources/events/types/EventField.d.ts +10 -0
- package/dist/serialization/resources/events/types/EventField.js +41 -0
- package/dist/serialization/resources/events/types/EventFilter.d.ts +22 -0
- package/dist/serialization/resources/events/types/EventFilter.js +53 -0
- package/dist/serialization/resources/events/types/EventResponse.d.ts +18 -0
- package/dist/serialization/resources/events/types/EventResponse.js +51 -0
- package/dist/serialization/resources/events/types/EventType.d.ts +10 -0
- package/dist/serialization/resources/events/types/EventType.js +41 -0
- package/dist/serialization/resources/events/types/EventsSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/events/types/EventsSearchRequest.js +49 -0
- package/dist/serialization/resources/events/types/EventsSearchResponse.d.ts +14 -0
- package/dist/serialization/resources/events/types/EventsSearchResponse.js +47 -0
- package/dist/serialization/resources/events/types/FeedbackInfo.d.ts +15 -0
- package/dist/serialization/resources/events/types/FeedbackInfo.js +46 -0
- package/dist/serialization/resources/events/types/GeoInfo.d.ts +17 -0
- package/dist/serialization/resources/events/types/GeoInfo.js +48 -0
- package/dist/serialization/resources/events/types/IpInfo.d.ts +12 -0
- package/dist/serialization/resources/events/types/IpInfo.js +43 -0
- package/dist/serialization/resources/events/types/LanguageInfo.d.ts +12 -0
- package/dist/serialization/resources/events/types/LanguageInfo.js +43 -0
- package/dist/serialization/resources/events/types/NovelSystemEventNoId.d.ts +14 -0
- package/dist/serialization/resources/events/types/NovelSystemEventNoId.js +47 -0
- package/dist/serialization/resources/events/types/OsInfo.d.ts +15 -0
- package/dist/serialization/resources/events/types/OsInfo.js +46 -0
- package/dist/serialization/resources/events/types/OsType.d.ts +10 -0
- package/dist/serialization/resources/events/types/OsType.js +48 -0
- package/dist/serialization/resources/events/types/PageInfo.d.ts +16 -0
- package/dist/serialization/resources/events/types/PageInfo.js +47 -0
- package/dist/serialization/resources/events/types/SessionInfo.d.ts +15 -0
- package/dist/serialization/resources/events/types/SessionInfo.js +46 -0
- package/dist/serialization/resources/events/types/SourceInfo.d.ts +23 -0
- package/dist/serialization/resources/events/types/SourceInfo.js +54 -0
- package/dist/serialization/resources/events/types/SourceType.d.ts +10 -0
- package/dist/serialization/resources/events/types/SourceType.js +41 -0
- package/dist/serialization/resources/events/types/SurveyInfo.d.ts +13 -0
- package/dist/serialization/resources/events/types/SurveyInfo.js +44 -0
- package/dist/serialization/resources/events/types/SystemEvent.d.ts +14 -0
- package/dist/serialization/resources/events/types/SystemEvent.js +47 -0
- package/dist/serialization/resources/events/types/SystemEventName.d.ts +10 -0
- package/dist/serialization/resources/events/types/SystemEventName.js +41 -0
- package/dist/serialization/resources/events/types/UserEvent.d.ts +22 -0
- package/dist/serialization/resources/events/types/UserEvent.js +55 -0
- package/dist/serialization/resources/events/types/UserEventName.d.ts +10 -0
- package/dist/serialization/resources/events/types/UserEventName.js +41 -0
- package/dist/serialization/resources/events/types/UserInfo.d.ts +13 -0
- package/dist/serialization/resources/events/types/UserInfo.js +44 -0
- package/dist/serialization/resources/events/types/index.d.ts +29 -0
- package/dist/serialization/resources/events/types/index.js +45 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +5 -1
- package/dist/serialization/resources/realtime/types/AudioFormat.d.ts +10 -0
- package/dist/serialization/resources/realtime/types/AudioFormat.js +41 -0
- package/dist/serialization/resources/realtime/types/ControlEvent.d.ts +4 -1
- package/dist/serialization/resources/realtime/types/ControlEvent.js +7 -2
- package/dist/serialization/resources/realtime/types/MessageBase.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/MessageBase.js +43 -0
- package/dist/serialization/resources/realtime/types/SubscribeEvent.d.ts +4 -1
- package/dist/serialization/resources/realtime/types/SubscribeEvent.js +1 -0
- package/dist/serialization/resources/realtime/types/index.d.ts +3 -1
- package/dist/serialization/resources/realtime/types/index.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +267 -0
- package/serialization/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/agents/client/index.js +37 -0
- package/serialization/resources/agents/client/list.d.ts +11 -0
- package/serialization/resources/agents/client/list.js +42 -0
- package/serialization/resources/agents/index.d.ts +2 -0
- package/serialization/resources/agents/index.js +18 -0
- package/serialization/resources/agents/types/Agent.d.ts +17 -0
- package/serialization/resources/agents/types/Agent.js +48 -0
- package/serialization/resources/agents/types/AgentEnvironment.d.ts +10 -0
- package/serialization/resources/agents/types/AgentEnvironment.js +41 -0
- package/serialization/resources/agents/types/AgentField.d.ts +10 -0
- package/serialization/resources/agents/types/AgentField.js +41 -0
- package/serialization/resources/agents/types/AgentFilter.d.ts +13 -0
- package/serialization/resources/agents/types/AgentFilter.js +44 -0
- package/serialization/resources/agents/types/AgentsSearchRequest.d.ts +16 -0
- package/serialization/resources/agents/types/AgentsSearchRequest.js +49 -0
- package/serialization/resources/agents/types/AgentsSearchResponse.d.ts +14 -0
- package/serialization/resources/agents/types/AgentsSearchResponse.js +47 -0
- package/serialization/resources/agents/types/index.d.ts +6 -0
- package/serialization/resources/agents/types/index.js +22 -0
- package/serialization/resources/commons/types/ActionParameter.d.ts +1 -0
- package/serialization/resources/commons/types/ActionParameter.js +1 -0
- package/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
- package/serialization/resources/commons/types/ActionParameterType.js +1 -1
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -0
- package/serialization/resources/events/index.d.ts +1 -0
- package/serialization/resources/events/index.js +17 -0
- package/serialization/resources/events/types/BrowserInfo.d.ts +16 -0
- package/serialization/resources/events/types/BrowserInfo.js +47 -0
- package/serialization/resources/events/types/BrowserType.d.ts +10 -0
- package/serialization/resources/events/types/BrowserType.js +41 -0
- package/serialization/resources/events/types/ContextInfo.d.ts +12 -0
- package/serialization/resources/events/types/ContextInfo.js +43 -0
- package/serialization/resources/events/types/DeviceInfo.d.ts +17 -0
- package/serialization/resources/events/types/DeviceInfo.js +48 -0
- package/serialization/resources/events/types/DeviceType.d.ts +10 -0
- package/serialization/resources/events/types/DeviceType.js +41 -0
- package/serialization/resources/events/types/EventBaseNoId.d.ts +20 -0
- package/serialization/resources/events/types/EventBaseNoId.js +51 -0
- package/serialization/resources/events/types/EventField.d.ts +10 -0
- package/serialization/resources/events/types/EventField.js +41 -0
- package/serialization/resources/events/types/EventFilter.d.ts +22 -0
- package/serialization/resources/events/types/EventFilter.js +53 -0
- package/serialization/resources/events/types/EventResponse.d.ts +18 -0
- package/serialization/resources/events/types/EventResponse.js +51 -0
- package/serialization/resources/events/types/EventType.d.ts +10 -0
- package/serialization/resources/events/types/EventType.js +41 -0
- package/serialization/resources/events/types/EventsSearchRequest.d.ts +16 -0
- package/serialization/resources/events/types/EventsSearchRequest.js +49 -0
- package/serialization/resources/events/types/EventsSearchResponse.d.ts +14 -0
- package/serialization/resources/events/types/EventsSearchResponse.js +47 -0
- package/serialization/resources/events/types/FeedbackInfo.d.ts +15 -0
- package/serialization/resources/events/types/FeedbackInfo.js +46 -0
- package/serialization/resources/events/types/GeoInfo.d.ts +17 -0
- package/serialization/resources/events/types/GeoInfo.js +48 -0
- package/serialization/resources/events/types/IpInfo.d.ts +12 -0
- package/serialization/resources/events/types/IpInfo.js +43 -0
- package/serialization/resources/events/types/LanguageInfo.d.ts +12 -0
- package/serialization/resources/events/types/LanguageInfo.js +43 -0
- package/serialization/resources/events/types/NovelSystemEventNoId.d.ts +14 -0
- package/serialization/resources/events/types/NovelSystemEventNoId.js +47 -0
- package/serialization/resources/events/types/OsInfo.d.ts +15 -0
- package/serialization/resources/events/types/OsInfo.js +46 -0
- package/serialization/resources/events/types/OsType.d.ts +10 -0
- package/serialization/resources/events/types/OsType.js +48 -0
- package/serialization/resources/events/types/PageInfo.d.ts +16 -0
- package/serialization/resources/events/types/PageInfo.js +47 -0
- package/serialization/resources/events/types/SessionInfo.d.ts +15 -0
- package/serialization/resources/events/types/SessionInfo.js +46 -0
- package/serialization/resources/events/types/SourceInfo.d.ts +23 -0
- package/serialization/resources/events/types/SourceInfo.js +54 -0
- package/serialization/resources/events/types/SourceType.d.ts +10 -0
- package/serialization/resources/events/types/SourceType.js +41 -0
- package/serialization/resources/events/types/SurveyInfo.d.ts +13 -0
- package/serialization/resources/events/types/SurveyInfo.js +44 -0
- package/serialization/resources/events/types/SystemEvent.d.ts +14 -0
- package/serialization/resources/events/types/SystemEvent.js +47 -0
- package/serialization/resources/events/types/SystemEventName.d.ts +10 -0
- package/serialization/resources/events/types/SystemEventName.js +41 -0
- package/serialization/resources/events/types/UserEvent.d.ts +22 -0
- package/serialization/resources/events/types/UserEvent.js +55 -0
- package/serialization/resources/events/types/UserEventName.d.ts +10 -0
- package/serialization/resources/events/types/UserEventName.js +41 -0
- package/serialization/resources/events/types/UserInfo.d.ts +13 -0
- package/serialization/resources/events/types/UserInfo.js +44 -0
- package/serialization/resources/events/types/index.d.ts +29 -0
- package/serialization/resources/events/types/index.js +45 -0
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +5 -1
- package/serialization/resources/realtime/types/AudioFormat.d.ts +10 -0
- package/serialization/resources/realtime/types/AudioFormat.js +41 -0
- package/serialization/resources/realtime/types/ControlEvent.d.ts +4 -1
- package/serialization/resources/realtime/types/ControlEvent.js +7 -2
- package/serialization/resources/realtime/types/MessageBase.d.ts +12 -0
- package/serialization/resources/realtime/types/MessageBase.js +43 -0
- package/serialization/resources/realtime/types/SubscribeEvent.d.ts +4 -1
- package/serialization/resources/realtime/types/SubscribeEvent.js +1 -0
- package/serialization/resources/realtime/types/index.d.ts +3 -1
- package/serialization/resources/realtime/types/index.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Agents = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const MavenAGI = __importStar(require("../../../index"));
|
|
55
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
class Agents {
|
|
59
|
+
constructor(_options) {
|
|
60
|
+
this._options = _options;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Search for agents across all organizations.
|
|
64
|
+
*
|
|
65
|
+
* <Tip>
|
|
66
|
+
* This endpoint requires additional permissions. Contact support to request access.
|
|
67
|
+
* </Tip>
|
|
68
|
+
*
|
|
69
|
+
* @param {MavenAGI.AgentsSearchRequest} request
|
|
70
|
+
* @param {Agents.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.agents.search({})
|
|
78
|
+
*/
|
|
79
|
+
search(request, requestOptions) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
var _a, _b, _c;
|
|
82
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
83
|
+
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/agents"),
|
|
84
|
+
method: "POST",
|
|
85
|
+
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.12", "User-Agent": "mavenagi/1.0.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
|
+
contentType: "application/json",
|
|
87
|
+
requestType: "json",
|
|
88
|
+
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
89
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
92
|
+
});
|
|
93
|
+
if (_response.ok) {
|
|
94
|
+
return serializers.AgentsSearchResponse.parseOrThrow(_response.body, {
|
|
95
|
+
unrecognizedObjectKeys: "passthrough",
|
|
96
|
+
allowUnrecognizedUnionMembers: true,
|
|
97
|
+
allowUnrecognizedEnumValues: true,
|
|
98
|
+
breadcrumbsPrefix: ["response"],
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
if (_response.error.reason === "status-code") {
|
|
102
|
+
switch (_response.error.statusCode) {
|
|
103
|
+
case 404:
|
|
104
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
105
|
+
unrecognizedObjectKeys: "passthrough",
|
|
106
|
+
allowUnrecognizedUnionMembers: true,
|
|
107
|
+
allowUnrecognizedEnumValues: true,
|
|
108
|
+
breadcrumbsPrefix: ["response"],
|
|
109
|
+
}));
|
|
110
|
+
case 400:
|
|
111
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
112
|
+
unrecognizedObjectKeys: "passthrough",
|
|
113
|
+
allowUnrecognizedUnionMembers: true,
|
|
114
|
+
allowUnrecognizedEnumValues: true,
|
|
115
|
+
breadcrumbsPrefix: ["response"],
|
|
116
|
+
}));
|
|
117
|
+
case 500:
|
|
118
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
119
|
+
unrecognizedObjectKeys: "passthrough",
|
|
120
|
+
allowUnrecognizedUnionMembers: true,
|
|
121
|
+
allowUnrecognizedEnumValues: true,
|
|
122
|
+
breadcrumbsPrefix: ["response"],
|
|
123
|
+
}));
|
|
124
|
+
default:
|
|
125
|
+
throw new errors.MavenAGIError({
|
|
126
|
+
statusCode: _response.error.statusCode,
|
|
127
|
+
body: _response.error.body,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
switch (_response.error.reason) {
|
|
132
|
+
case "non-json":
|
|
133
|
+
throw new errors.MavenAGIError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.rawBody,
|
|
136
|
+
});
|
|
137
|
+
case "timeout":
|
|
138
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/agents.");
|
|
139
|
+
case "unknown":
|
|
140
|
+
throw new errors.MavenAGIError({
|
|
141
|
+
message: _response.error.errorMessage,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Lists all agents for an organization
|
|
148
|
+
*
|
|
149
|
+
* @param {string} organizationReferenceId - The ID of the organization.
|
|
150
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
|
+
*
|
|
152
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
153
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
154
|
+
* @throws {@link MavenAGI.ServerError}
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* await client.agents.list("organizationReferenceId")
|
|
158
|
+
*/
|
|
159
|
+
list(organizationReferenceId, requestOptions) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
var _a, _b, _c;
|
|
162
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
163
|
+
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/organizations/${encodeURIComponent(organizationReferenceId)}/agents`),
|
|
164
|
+
method: "GET",
|
|
165
|
+
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.12", "User-Agent": "mavenagi/1.0.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
166
|
+
contentType: "application/json",
|
|
167
|
+
requestType: "json",
|
|
168
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
169
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
170
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
171
|
+
});
|
|
172
|
+
if (_response.ok) {
|
|
173
|
+
return serializers.agents.list.Response.parseOrThrow(_response.body, {
|
|
174
|
+
unrecognizedObjectKeys: "passthrough",
|
|
175
|
+
allowUnrecognizedUnionMembers: true,
|
|
176
|
+
allowUnrecognizedEnumValues: true,
|
|
177
|
+
breadcrumbsPrefix: ["response"],
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
if (_response.error.reason === "status-code") {
|
|
181
|
+
switch (_response.error.statusCode) {
|
|
182
|
+
case 404:
|
|
183
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
184
|
+
unrecognizedObjectKeys: "passthrough",
|
|
185
|
+
allowUnrecognizedUnionMembers: true,
|
|
186
|
+
allowUnrecognizedEnumValues: true,
|
|
187
|
+
breadcrumbsPrefix: ["response"],
|
|
188
|
+
}));
|
|
189
|
+
case 400:
|
|
190
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
191
|
+
unrecognizedObjectKeys: "passthrough",
|
|
192
|
+
allowUnrecognizedUnionMembers: true,
|
|
193
|
+
allowUnrecognizedEnumValues: true,
|
|
194
|
+
breadcrumbsPrefix: ["response"],
|
|
195
|
+
}));
|
|
196
|
+
case 500:
|
|
197
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
198
|
+
unrecognizedObjectKeys: "passthrough",
|
|
199
|
+
allowUnrecognizedUnionMembers: true,
|
|
200
|
+
allowUnrecognizedEnumValues: true,
|
|
201
|
+
breadcrumbsPrefix: ["response"],
|
|
202
|
+
}));
|
|
203
|
+
default:
|
|
204
|
+
throw new errors.MavenAGIError({
|
|
205
|
+
statusCode: _response.error.statusCode,
|
|
206
|
+
body: _response.error.body,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
switch (_response.error.reason) {
|
|
211
|
+
case "non-json":
|
|
212
|
+
throw new errors.MavenAGIError({
|
|
213
|
+
statusCode: _response.error.statusCode,
|
|
214
|
+
body: _response.error.rawBody,
|
|
215
|
+
});
|
|
216
|
+
case "timeout":
|
|
217
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/organizations/{organizationReferenceId}/agents.");
|
|
218
|
+
case "unknown":
|
|
219
|
+
throw new errors.MavenAGIError({
|
|
220
|
+
message: _response.error.errorMessage,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Get an agent
|
|
227
|
+
*
|
|
228
|
+
* @param {string} organizationReferenceId - The ID of the organization.
|
|
229
|
+
* @param {string} agentReferenceId - The ID of the agent.
|
|
230
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
231
|
+
*
|
|
232
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
233
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
234
|
+
* @throws {@link MavenAGI.ServerError}
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* await client.agents.get("organizationReferenceId", "agentReferenceId")
|
|
238
|
+
*/
|
|
239
|
+
get(organizationReferenceId, agentReferenceId, requestOptions) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
var _a, _b, _c;
|
|
242
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
243
|
+
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/organizations/${encodeURIComponent(organizationReferenceId)}/agents/${encodeURIComponent(agentReferenceId)}`),
|
|
244
|
+
method: "GET",
|
|
245
|
+
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.12", "User-Agent": "mavenagi/1.0.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
246
|
+
contentType: "application/json",
|
|
247
|
+
requestType: "json",
|
|
248
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
249
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
250
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
251
|
+
});
|
|
252
|
+
if (_response.ok) {
|
|
253
|
+
return serializers.Agent.parseOrThrow(_response.body, {
|
|
254
|
+
unrecognizedObjectKeys: "passthrough",
|
|
255
|
+
allowUnrecognizedUnionMembers: true,
|
|
256
|
+
allowUnrecognizedEnumValues: true,
|
|
257
|
+
breadcrumbsPrefix: ["response"],
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
if (_response.error.reason === "status-code") {
|
|
261
|
+
switch (_response.error.statusCode) {
|
|
262
|
+
case 404:
|
|
263
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
264
|
+
unrecognizedObjectKeys: "passthrough",
|
|
265
|
+
allowUnrecognizedUnionMembers: true,
|
|
266
|
+
allowUnrecognizedEnumValues: true,
|
|
267
|
+
breadcrumbsPrefix: ["response"],
|
|
268
|
+
}));
|
|
269
|
+
case 400:
|
|
270
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
271
|
+
unrecognizedObjectKeys: "passthrough",
|
|
272
|
+
allowUnrecognizedUnionMembers: true,
|
|
273
|
+
allowUnrecognizedEnumValues: true,
|
|
274
|
+
breadcrumbsPrefix: ["response"],
|
|
275
|
+
}));
|
|
276
|
+
case 500:
|
|
277
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
278
|
+
unrecognizedObjectKeys: "passthrough",
|
|
279
|
+
allowUnrecognizedUnionMembers: true,
|
|
280
|
+
allowUnrecognizedEnumValues: true,
|
|
281
|
+
breadcrumbsPrefix: ["response"],
|
|
282
|
+
}));
|
|
283
|
+
default:
|
|
284
|
+
throw new errors.MavenAGIError({
|
|
285
|
+
statusCode: _response.error.statusCode,
|
|
286
|
+
body: _response.error.body,
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
switch (_response.error.reason) {
|
|
291
|
+
case "non-json":
|
|
292
|
+
throw new errors.MavenAGIError({
|
|
293
|
+
statusCode: _response.error.statusCode,
|
|
294
|
+
body: _response.error.rawBody,
|
|
295
|
+
});
|
|
296
|
+
case "timeout":
|
|
297
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}.");
|
|
298
|
+
case "unknown":
|
|
299
|
+
throw new errors.MavenAGIError({
|
|
300
|
+
message: _response.error.errorMessage,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
_getAuthorizationHeader() {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
307
|
+
var _a, _b;
|
|
308
|
+
const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
|
|
309
|
+
const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
|
|
310
|
+
if (appId != null && appSecret != null) {
|
|
311
|
+
return core.BasicAuth.toAuthorizationHeader({
|
|
312
|
+
username: appId,
|
|
313
|
+
password: appSecret,
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
return undefined;
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
exports.Agents = Agents;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface Agent {
|
|
6
|
+
/** ID that uniquely identifies this action */
|
|
7
|
+
agentId: MavenAGI.EntityId;
|
|
8
|
+
/** The name of the agent. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** When the agent was created. */
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
/** The environment of the agent. Default is `DEMO`. */
|
|
13
|
+
environment: MavenAGI.AgentEnvironment;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type AgentEnvironment = "DEMO" | "STAGING" | "PRODUCTION";
|
|
5
|
+
export declare const AgentEnvironment: {
|
|
6
|
+
readonly Demo: "DEMO";
|
|
7
|
+
readonly Staging: "STAGING";
|
|
8
|
+
readonly Production: "PRODUCTION";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AgentEnvironment = void 0;
|
|
7
|
+
exports.AgentEnvironment = {
|
|
8
|
+
Demo: "DEMO",
|
|
9
|
+
Staging: "STAGING",
|
|
10
|
+
Production: "PRODUCTION",
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AgentField = void 0;
|
|
7
|
+
exports.AgentField = {
|
|
8
|
+
CreatedAt: "CREATED_AT",
|
|
9
|
+
Environment: "ENVIRONMENT",
|
|
10
|
+
};
|
|
@@ -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 AgentsSearchRequest extends MavenAGI.BasePaginatedRequest {
|
|
6
|
+
sort?: MavenAGI.AgentField;
|
|
7
|
+
filter?: MavenAGI.AgentFilter;
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./AgentEnvironment"), exports);
|
|
18
|
+
__exportStar(require("./Agent"), exports);
|
|
19
|
+
__exportStar(require("./AgentsSearchRequest"), exports);
|
|
20
|
+
__exportStar(require("./AgentField"), exports);
|
|
21
|
+
__exportStar(require("./AgentFilter"), exports);
|
|
22
|
+
__exportStar(require("./AgentsSearchResponse"), exports);
|
|
@@ -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.12", "User-Agent": "mavenagi/1.0.12", "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.12", "User-Agent": "mavenagi/1.0.12", "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.12", "User-Agent": "mavenagi/1.0.12", "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" }),
|
|
@@ -87,7 +87,7 @@ class AppSettings {
|
|
|
87
87
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
88
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
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.
|
|
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.12", "User-Agent": "mavenagi/1.0.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -166,7 +166,7 @@ class AppSettings {
|
|
|
166
166
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
167
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"),
|
|
168
168
|
method: "GET",
|
|
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.
|
|
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.12", "User-Agent": "mavenagi/1.0.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
requestType: "json",
|
|
172
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -255,7 +255,7 @@ class AppSettings {
|
|
|
255
255
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
256
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
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.
|
|
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.12", "User-Agent": "mavenagi/1.0.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
259
259
|
contentType: "application/json",
|
|
260
260
|
requestType: "json",
|
|
261
261
|
body: serializers.appSettings.update.Request.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -15,4 +15,6 @@ export interface ActionParameter {
|
|
|
15
15
|
type?: MavenAGI.ActionParameterType;
|
|
16
16
|
/** Restricts the action parameter to only the options in this list. Valid for type `STRING`, `BOOLEAN`, and `NUMBER`. */
|
|
17
17
|
enumOptions?: MavenAGI.ActionEnumOption[];
|
|
18
|
+
/** JSON schema for validating the parameter value. Only valid when type is `SCHEMA`. */
|
|
19
|
+
schema?: string;
|
|
18
20
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ActionParameterType = "STRING" | "BOOLEAN" | "NUMBER";
|
|
4
|
+
export type ActionParameterType = "STRING" | "BOOLEAN" | "NUMBER" | "SCHEMA";
|
|
5
5
|
export declare const ActionParameterType: {
|
|
6
6
|
readonly String: "STRING";
|
|
7
7
|
readonly Boolean: "BOOLEAN";
|
|
8
8
|
readonly Number: "NUMBER";
|
|
9
|
+
readonly Schema: "SCHEMA";
|
|
9
10
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
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_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX";
|
|
4
|
+
export type EntityType = "AGENT" | "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
|
+
readonly Agent: "AGENT";
|
|
6
7
|
readonly Conversation: "CONVERSATION";
|
|
7
8
|
readonly ConversationMessage: "CONVERSATION_MESSAGE";
|
|
8
9
|
readonly KnowledgeBase: "KNOWLEDGE_BASE";
|