mavenagi 1.2.0 → 1.2.3
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 +33 -28
- package/README.md +1 -1
- package/api/resources/actions/client/Client.d.ts +2 -2
- package/api/resources/actions/client/Client.js +5 -5
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +24 -0
- package/api/resources/actions/client/requests/index.d.ts +1 -0
- package/api/resources/actions/types/index.d.ts +0 -1
- package/api/resources/actions/types/index.js +0 -1
- package/api/resources/agentCapabilities/client/Client.d.ts +85 -0
- package/api/resources/agentCapabilities/client/Client.js +349 -0
- package/api/resources/agentCapabilities/client/index.d.ts +1 -0
- package/api/resources/agentCapabilities/client/index.js +2 -0
- package/api/resources/agentCapabilities/index.d.ts +2 -0
- package/api/resources/agentCapabilities/index.js +18 -0
- package/api/resources/agentCapabilities/types/ActionCapability.d.ts +16 -0
- package/api/resources/agentCapabilities/types/AgentCapability.d.ts +13 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +15 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +11 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityField.js +13 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +14 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +8 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityType.js +10 -0
- package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +8 -0
- package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +11 -0
- package/api/resources/agentCapabilities/types/TriggerCapability.d.ts +7 -0
- package/api/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
- package/api/resources/agentCapabilities/types/TriggerType.js +12 -0
- package/api/resources/agentCapabilities/types/index.d.ts +10 -0
- package/api/resources/agentCapabilities/types/index.js +26 -0
- package/api/resources/agents/types/Agent.d.ts +2 -0
- package/api/resources/agents/types/AgentPatchRequest.d.ts +2 -0
- package/api/resources/agents/types/PiiCategory.d.ts +2 -2
- package/api/resources/agents/types/PiiCategory.js +1 -1
- package/api/resources/analytics/client/Client.d.ts +25 -0
- package/api/resources/analytics/client/Client.js +103 -0
- package/api/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
- package/api/resources/analytics/types/AgentUserColumnDefinition.d.ts +8 -0
- package/api/resources/analytics/types/AgentUserCount.d.ts +8 -0
- package/api/resources/analytics/types/AgentUserMetric.d.ts +13 -0
- package/api/resources/analytics/types/AgentUserRow.d.ts +11 -0
- package/api/resources/analytics/types/AgentUserTableRequest.d.ts +30 -0
- package/api/resources/analytics/types/AgentUserTableResponse.d.ts +28 -0
- package/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +6 -0
- package/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +6 -0
- package/api/resources/analytics/types/FieldValue.d.ts +1 -1
- package/api/resources/analytics/types/index.d.ts +7 -0
- package/api/resources/analytics/types/index.js +7 -0
- package/api/resources/commons/types/ActionExecutionParamValue.d.ts +14 -0
- package/api/resources/commons/types/ActionOAuthConfiguration.d.ts +12 -0
- package/api/resources/commons/types/ActionParameter.d.ts +20 -1
- package/api/resources/commons/types/ActionParameterType.d.ts +9 -1
- package/api/resources/commons/types/ActionParameterType.js +2 -0
- package/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +1 -1
- package/api/resources/commons/types/BotOAuthButtonResponse.d.ts +12 -0
- package/api/resources/commons/types/BotResponse.d.ts +4 -1
- package/api/resources/commons/types/Capability.d.ts +2 -1
- package/api/resources/commons/types/Capability.js +1 -0
- package/api/resources/commons/types/EntityResult.d.ts +8 -0
- package/{dist/api/resources/events → api/resources/commons}/types/EventBaseNoId.d.ts +1 -1
- package/api/resources/{events → commons}/types/EventFilter.d.ts +2 -1
- package/api/resources/commons/types/EventRequest.d.ts +13 -0
- package/api/resources/{events/types/UserInfo.d.ts → commons/types/EventUserInfo.d.ts} +1 -1
- package/api/resources/commons/types/EventUserInfoBase.d.ts +7 -0
- package/api/resources/commons/types/NovelSystemEvent.d.ts +8 -0
- package/api/resources/commons/types/NovelUserEvent.d.ts +16 -0
- package/api/resources/commons/types/QualityReason.d.ts +2 -1
- package/api/resources/commons/types/QualityReason.js +1 -0
- package/api/resources/commons/types/ResponseConfig.d.ts +1 -0
- package/api/resources/commons/types/ScopedEntity.d.ts +8 -0
- package/api/resources/{events → commons}/types/UserEvent.d.ts +1 -1
- package/api/resources/{events → commons}/types/UserEventName.d.ts +5 -1
- package/api/resources/{events → commons}/types/UserEventName.js +1 -0
- package/api/resources/commons/types/index.d.ts +38 -0
- package/api/resources/commons/types/index.js +38 -0
- package/api/resources/conversation/client/Client.js +4 -1
- package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +4 -0
- package/api/resources/conversation/types/ActionFormAttachment.d.ts +8 -0
- package/api/resources/conversation/types/ActionFormRequestParamValue.d.ts +5 -0
- package/api/resources/conversation/types/ActionFormRequestParamValue.js +5 -0
- package/api/resources/conversation/types/AskStreamOAuthButtonEvent.d.ts +6 -0
- package/api/resources/conversation/types/AskStreamOAuthButtonEvent.js +5 -0
- package/api/resources/conversation/types/ConversationFilter.d.ts +4 -0
- package/api/resources/conversation/types/StreamResponse.d.ts +4 -1
- package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
- package/api/resources/conversation/types/index.d.ts +3 -0
- package/api/resources/conversation/types/index.js +3 -0
- package/api/resources/events/client/Client.d.ts +26 -0
- package/api/resources/events/client/Client.js +104 -0
- package/api/resources/events/index.d.ts +0 -1
- package/api/resources/events/index.js +0 -1
- package/api/resources/index.d.ts +5 -3
- package/api/resources/index.js +6 -4
- package/api/resources/knowledge/client/Client.d.ts +43 -38
- package/api/resources/knowledge/client/Client.js +150 -60
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +30 -0
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +5 -0
- package/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.d.ts +13 -0
- package/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.js +5 -0
- package/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.d.ts +15 -0
- package/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.js +5 -0
- package/api/resources/knowledge/client/requests/index.d.ts +3 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -3
- package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +14 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.js +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +5 -0
- package/api/resources/knowledge/types/KnowledgeDeleteRequest.d.ts +18 -0
- package/api/resources/knowledge/types/KnowledgeDeleteRequest.js +5 -0
- package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -3
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +5 -2
- package/api/resources/knowledge/types/index.d.ts +3 -1
- package/api/resources/knowledge/types/index.js +3 -1
- package/api/resources/organizations/client/Client.d.ts +78 -0
- package/api/resources/organizations/client/Client.js +376 -0
- package/api/resources/organizations/index.d.ts +1 -0
- package/api/resources/organizations/index.js +1 -0
- package/api/resources/organizations/types/BaseOrganization.d.ts +9 -0
- package/api/resources/organizations/types/BaseOrganization.js +5 -0
- package/api/resources/organizations/types/CreateOrganizationRequest.d.ts +6 -0
- package/api/resources/organizations/types/CreateOrganizationRequest.js +5 -0
- package/api/resources/organizations/types/Organization.d.ts +8 -0
- package/api/resources/organizations/types/Organization.js +5 -0
- package/api/resources/organizations/types/OrganizationPatchRequest.d.ts +9 -0
- package/api/resources/organizations/types/OrganizationPatchRequest.js +5 -0
- package/api/resources/organizations/types/index.d.ts +4 -0
- package/api/resources/organizations/types/index.js +20 -0
- package/api/resources/triggers/types/EventTriggerType.d.ts +2 -1
- package/api/resources/triggers/types/EventTriggerType.js +1 -0
- package/api/resources/users/types/AgentUserFilter.d.ts +5 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +33 -28
- package/dist/api/resources/actions/client/Client.d.ts +2 -2
- package/dist/api/resources/actions/client/Client.js +5 -5
- package/dist/api/resources/actions/client/requests/ActionPatchRequest.d.ts +24 -0
- package/dist/api/resources/actions/client/requests/ActionPatchRequest.js +5 -0
- package/dist/api/resources/actions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/actions/types/index.d.ts +0 -1
- package/dist/api/resources/actions/types/index.js +0 -1
- package/dist/api/resources/agentCapabilities/client/Client.d.ts +85 -0
- package/dist/api/resources/agentCapabilities/client/Client.js +349 -0
- package/dist/api/resources/agentCapabilities/client/index.d.ts +1 -0
- package/dist/api/resources/agentCapabilities/client/index.js +2 -0
- package/dist/api/resources/agentCapabilities/index.d.ts +2 -0
- package/dist/api/resources/agentCapabilities/index.js +18 -0
- package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +16 -0
- package/dist/api/resources/agentCapabilities/types/ActionCapability.js +5 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapability.d.ts +13 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapability.js +5 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +15 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.js +5 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +11 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.js +13 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +14 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.js +5 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +8 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.js +10 -0
- package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +8 -0
- package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +5 -0
- package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +11 -0
- package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +5 -0
- package/dist/api/resources/agentCapabilities/types/TriggerCapability.d.ts +7 -0
- package/dist/api/resources/agentCapabilities/types/TriggerCapability.js +5 -0
- package/dist/api/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
- package/dist/api/resources/agentCapabilities/types/TriggerType.js +12 -0
- package/dist/api/resources/agentCapabilities/types/index.d.ts +10 -0
- package/dist/api/resources/agentCapabilities/types/index.js +26 -0
- package/dist/api/resources/agents/types/Agent.d.ts +2 -0
- package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +2 -0
- package/dist/api/resources/agents/types/PiiCategory.d.ts +2 -2
- package/dist/api/resources/agents/types/PiiCategory.js +1 -1
- package/dist/api/resources/analytics/client/Client.d.ts +25 -0
- package/dist/api/resources/analytics/client/Client.js +103 -0
- package/dist/api/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
- package/dist/api/resources/analytics/types/AgentUserAnalyticsRequest.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserColumnDefinition.d.ts +8 -0
- package/dist/api/resources/analytics/types/AgentUserColumnDefinition.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserCount.d.ts +8 -0
- package/dist/api/resources/analytics/types/AgentUserCount.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserMetric.d.ts +13 -0
- package/dist/api/resources/analytics/types/AgentUserMetric.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserRow.d.ts +11 -0
- package/dist/api/resources/analytics/types/AgentUserRow.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserTableRequest.d.ts +30 -0
- package/dist/api/resources/analytics/types/AgentUserTableRequest.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserTableResponse.d.ts +28 -0
- package/dist/api/resources/analytics/types/AgentUserTableResponse.js +5 -0
- package/dist/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +6 -0
- package/dist/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +6 -0
- package/dist/api/resources/analytics/types/FieldValue.d.ts +1 -1
- package/dist/api/resources/analytics/types/index.d.ts +7 -0
- package/dist/api/resources/analytics/types/index.js +7 -0
- package/dist/api/resources/commons/types/ActionExecutionParamValue.d.ts +14 -0
- package/dist/api/resources/commons/types/ActionExecutionParamValue.js +5 -0
- package/dist/api/resources/commons/types/ActionOAuthConfiguration.d.ts +12 -0
- package/dist/api/resources/commons/types/ActionOAuthConfiguration.js +5 -0
- package/dist/api/resources/commons/types/ActionParameter.d.ts +20 -1
- package/dist/api/resources/commons/types/ActionParameterType.d.ts +9 -1
- package/dist/api/resources/commons/types/ActionParameterType.js +2 -0
- package/dist/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +1 -1
- package/dist/api/resources/commons/types/BotOAuthButtonResponse.d.ts +12 -0
- package/dist/api/resources/commons/types/BotOAuthButtonResponse.js +5 -0
- package/dist/api/resources/commons/types/BotResponse.d.ts +4 -1
- package/dist/api/resources/commons/types/BrowserInfo.js +5 -0
- package/dist/api/resources/commons/types/Capability.d.ts +2 -1
- package/dist/api/resources/commons/types/Capability.js +1 -0
- package/dist/api/resources/commons/types/ContextInfo.js +5 -0
- package/dist/api/resources/commons/types/DeviceInfo.js +5 -0
- package/dist/api/resources/commons/types/EntityResult.d.ts +8 -0
- package/dist/api/resources/commons/types/EntityResult.js +5 -0
- package/{api/resources/events → dist/api/resources/commons}/types/EventBaseNoId.d.ts +1 -1
- package/dist/api/resources/commons/types/EventBaseNoId.js +5 -0
- package/dist/api/resources/{events → commons}/types/EventFilter.d.ts +2 -1
- package/dist/api/resources/commons/types/EventFilter.js +5 -0
- package/dist/api/resources/commons/types/EventRequest.d.ts +13 -0
- package/dist/api/resources/commons/types/EventRequest.js +5 -0
- package/dist/api/resources/commons/types/EventResponse.js +5 -0
- package/dist/api/resources/{events/types/UserInfo.d.ts → commons/types/EventUserInfo.d.ts} +1 -1
- package/dist/api/resources/commons/types/EventUserInfo.js +5 -0
- package/dist/api/resources/commons/types/EventUserInfoBase.d.ts +7 -0
- package/dist/api/resources/commons/types/EventUserInfoBase.js +5 -0
- package/dist/api/resources/commons/types/EventsSearchRequest.js +5 -0
- package/dist/api/resources/commons/types/EventsSearchResponse.js +5 -0
- package/dist/api/resources/commons/types/FeedbackInfo.js +5 -0
- package/dist/api/resources/commons/types/GeoInfo.js +5 -0
- package/dist/api/resources/commons/types/IpInfo.js +5 -0
- package/dist/api/resources/commons/types/LanguageInfo.js +5 -0
- package/dist/api/resources/commons/types/NovelSystemEvent.d.ts +8 -0
- package/dist/api/resources/commons/types/NovelSystemEvent.js +5 -0
- package/dist/api/resources/commons/types/NovelSystemEventNoId.js +5 -0
- package/dist/api/resources/commons/types/NovelUserEvent.d.ts +16 -0
- package/dist/api/resources/commons/types/NovelUserEvent.js +5 -0
- package/dist/api/resources/commons/types/OsInfo.js +5 -0
- package/dist/api/resources/commons/types/PageInfo.js +5 -0
- package/dist/api/resources/commons/types/QualityReason.d.ts +2 -1
- package/dist/api/resources/commons/types/QualityReason.js +1 -0
- package/dist/api/resources/commons/types/ResponseConfig.d.ts +1 -0
- package/dist/api/resources/commons/types/ScopedEntity.d.ts +8 -0
- package/dist/api/resources/commons/types/ScopedEntity.js +5 -0
- package/dist/api/resources/commons/types/SessionInfo.js +5 -0
- package/dist/api/resources/commons/types/SourceInfo.js +5 -0
- package/dist/api/resources/commons/types/SurveyInfo.js +5 -0
- package/dist/api/resources/commons/types/SystemEvent.js +5 -0
- package/dist/api/resources/{events → commons}/types/UserEvent.d.ts +1 -1
- package/dist/api/resources/commons/types/UserEvent.js +5 -0
- package/dist/api/resources/{events → commons}/types/UserEventName.d.ts +5 -1
- package/dist/api/resources/{events → commons}/types/UserEventName.js +1 -0
- package/dist/api/resources/commons/types/index.d.ts +38 -0
- package/dist/api/resources/commons/types/index.js +38 -0
- package/dist/api/resources/conversation/client/Client.js +4 -1
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +4 -0
- package/dist/api/resources/conversation/types/ActionFormAttachment.d.ts +8 -0
- package/dist/api/resources/conversation/types/ActionFormAttachment.js +5 -0
- package/dist/api/resources/conversation/types/ActionFormRequestParamValue.d.ts +5 -0
- package/dist/api/resources/conversation/types/ActionFormRequestParamValue.js +5 -0
- package/dist/api/resources/conversation/types/AskStreamOAuthButtonEvent.d.ts +6 -0
- package/dist/api/resources/conversation/types/AskStreamOAuthButtonEvent.js +5 -0
- package/dist/api/resources/conversation/types/ConversationFilter.d.ts +4 -0
- package/dist/api/resources/conversation/types/StreamResponse.d.ts +4 -1
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
- package/dist/api/resources/conversation/types/index.d.ts +3 -0
- package/dist/api/resources/conversation/types/index.js +3 -0
- package/dist/api/resources/events/client/Client.d.ts +26 -0
- package/dist/api/resources/events/client/Client.js +104 -0
- package/dist/api/resources/events/index.d.ts +0 -1
- package/dist/api/resources/events/index.js +0 -1
- package/dist/api/resources/index.d.ts +5 -3
- package/dist/api/resources/index.js +6 -4
- package/dist/api/resources/knowledge/client/Client.d.ts +43 -38
- package/dist/api/resources/knowledge/client/Client.js +150 -60
- package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +30 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +5 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.d.ts +13 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.js +5 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.d.ts +15 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.js +5 -0
- package/dist/api/resources/knowledge/client/requests/index.d.ts +3 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -3
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +14 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionRequest.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeDeleteRequest.d.ts +18 -0
- package/dist/api/resources/knowledge/types/KnowledgeDeleteRequest.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -3
- package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +5 -2
- package/dist/api/resources/knowledge/types/index.d.ts +3 -1
- package/dist/api/resources/knowledge/types/index.js +3 -1
- package/dist/api/resources/organizations/client/Client.d.ts +78 -0
- package/dist/api/resources/organizations/client/Client.js +376 -0
- package/dist/api/resources/organizations/index.d.ts +1 -0
- package/dist/api/resources/organizations/index.js +1 -0
- package/dist/api/resources/organizations/types/BaseOrganization.d.ts +9 -0
- package/dist/api/resources/organizations/types/BaseOrganization.js +5 -0
- package/dist/api/resources/organizations/types/CreateOrganizationRequest.d.ts +6 -0
- package/dist/api/resources/organizations/types/CreateOrganizationRequest.js +5 -0
- package/dist/api/resources/organizations/types/Organization.d.ts +8 -0
- package/dist/api/resources/organizations/types/Organization.js +5 -0
- package/dist/api/resources/organizations/types/OrganizationPatchRequest.d.ts +9 -0
- package/dist/api/resources/organizations/types/OrganizationPatchRequest.js +5 -0
- package/dist/api/resources/organizations/types/index.d.ts +4 -0
- package/dist/api/resources/organizations/types/index.js +20 -0
- package/dist/api/resources/triggers/types/EventTriggerType.d.ts +2 -1
- package/dist/api/resources/triggers/types/EventTriggerType.js +1 -0
- package/dist/api/resources/users/types/AgentUserFilter.d.ts +5 -0
- package/dist/serialization/resources/actions/client/index.d.ts +1 -0
- package/dist/serialization/resources/actions/client/index.js +17 -0
- package/dist/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +17 -0
- package/dist/serialization/resources/actions/{types → client/requests}/ActionPatchRequest.js +4 -2
- package/dist/serialization/resources/actions/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/actions/client/requests/index.js +5 -0
- package/dist/serialization/resources/actions/index.d.ts +1 -0
- package/dist/serialization/resources/actions/index.js +1 -0
- package/dist/serialization/resources/actions/types/index.d.ts +0 -1
- package/dist/serialization/resources/actions/types/index.js +0 -1
- package/dist/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +20 -0
- package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +54 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +18 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapability.js +51 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +18 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +49 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +10 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +41 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +21 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +54 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +10 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +41 -0
- package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +15 -0
- package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +48 -0
- package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +14 -0
- package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +45 -0
- package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +14 -0
- package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.js +47 -0
- package/dist/serialization/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
- package/dist/serialization/resources/agentCapabilities/types/TriggerType.js +41 -0
- package/dist/serialization/resources/agentCapabilities/types/index.d.ts +10 -0
- package/dist/serialization/resources/agentCapabilities/types/index.js +26 -0
- package/dist/serialization/resources/agents/types/Agent.d.ts +1 -0
- package/dist/serialization/resources/agents/types/Agent.js +1 -0
- package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/types/AgentPatchRequest.js +1 -0
- package/dist/serialization/resources/agents/types/PiiCategory.d.ts +1 -1
- package/dist/serialization/resources/agents/types/PiiCategory.js +1 -1
- package/dist/serialization/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/AgentUserAnalyticsRequest.js +45 -0
- package/dist/serialization/resources/analytics/types/AgentUserColumnDefinition.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/AgentUserColumnDefinition.js +47 -0
- package/dist/serialization/resources/analytics/types/AgentUserCount.d.ts +11 -0
- package/dist/serialization/resources/analytics/types/AgentUserCount.js +41 -0
- package/dist/serialization/resources/analytics/types/AgentUserMetric.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/AgentUserMetric.js +49 -0
- package/dist/serialization/resources/analytics/types/AgentUserRow.d.ts +15 -0
- package/dist/serialization/resources/analytics/types/AgentUserRow.js +48 -0
- package/dist/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +16 -0
- package/dist/serialization/resources/analytics/types/AgentUserTableRequest.js +49 -0
- package/dist/serialization/resources/analytics/types/AgentUserTableResponse.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/AgentUserTableResponse.js +47 -0
- package/dist/serialization/resources/analytics/types/ConversationAnalyticsRequest.d.ts +1 -0
- package/dist/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +1 -0
- package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +1 -0
- package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +1 -0
- package/dist/serialization/resources/analytics/types/FieldValue.d.ts +2 -2
- package/dist/serialization/resources/analytics/types/FieldValue.js +2 -2
- package/dist/serialization/resources/analytics/types/index.d.ts +7 -0
- package/dist/serialization/resources/analytics/types/index.js +7 -0
- package/dist/serialization/resources/commons/types/ActionExecutionParamValue.d.ts +18 -0
- package/dist/serialization/resources/commons/types/ActionExecutionParamValue.js +52 -0
- package/dist/serialization/resources/commons/types/ActionOAuthConfiguration.d.ts +18 -0
- package/dist/serialization/resources/commons/types/ActionOAuthConfiguration.js +49 -0
- package/dist/serialization/resources/commons/types/ActionParameter.d.ts +3 -0
- package/dist/serialization/resources/commons/types/ActionParameter.js +3 -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/BotLogicActionExecutedDetail.d.ts +2 -1
- package/dist/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +2 -1
- package/dist/serialization/resources/commons/types/BotOAuthButtonResponse.d.ts +13 -0
- package/dist/serialization/resources/commons/types/BotOAuthButtonResponse.js +44 -0
- package/dist/serialization/resources/commons/types/BotResponse.d.ts +5 -1
- package/dist/serialization/resources/commons/types/BotResponse.js +2 -0
- package/dist/serialization/resources/commons/types/Capability.d.ts +1 -1
- package/dist/serialization/resources/commons/types/Capability.js +1 -1
- package/dist/serialization/resources/commons/types/EntityResult.d.ts +13 -0
- package/dist/serialization/resources/commons/types/EntityResult.js +46 -0
- package/dist/serialization/resources/{events → commons}/types/EventBaseNoId.d.ts +2 -2
- package/dist/serialization/resources/{events → commons}/types/EventBaseNoId.js +2 -2
- package/dist/serialization/resources/{events → commons}/types/EventFilter.d.ts +3 -2
- package/dist/serialization/resources/{events → commons}/types/EventFilter.js +3 -2
- package/dist/serialization/resources/commons/types/EventRequest.d.ts +18 -0
- package/dist/serialization/resources/commons/types/EventRequest.js +51 -0
- package/dist/serialization/resources/{events/types/UserInfo.d.ts → commons/types/EventUserInfo.d.ts} +3 -3
- package/{serialization/resources/events/types/UserInfo.js → dist/serialization/resources/commons/types/EventUserInfo.js} +3 -3
- package/dist/serialization/resources/commons/types/EventUserInfoBase.d.ts +13 -0
- package/dist/serialization/resources/commons/types/EventUserInfoBase.js +44 -0
- package/dist/serialization/resources/{events → commons}/types/EventsSearchRequest.d.ts +1 -1
- package/{serialization/resources/events → dist/serialization/resources/commons}/types/EventsSearchRequest.js +1 -1
- package/dist/serialization/resources/{events → commons}/types/EventsSearchResponse.d.ts +1 -1
- package/dist/serialization/resources/{events → commons}/types/EventsSearchResponse.js +1 -1
- package/dist/serialization/resources/commons/types/NovelSystemEvent.d.ts +14 -0
- package/dist/serialization/resources/commons/types/NovelSystemEvent.js +47 -0
- package/dist/serialization/resources/commons/types/NovelUserEvent.d.ts +22 -0
- package/dist/serialization/resources/commons/types/NovelUserEvent.js +55 -0
- package/dist/serialization/resources/commons/types/QualityReason.d.ts +1 -1
- package/dist/serialization/resources/commons/types/QualityReason.js +1 -0
- package/dist/serialization/resources/commons/types/ScopedEntity.d.ts +14 -0
- package/dist/serialization/resources/commons/types/ScopedEntity.js +45 -0
- package/dist/serialization/resources/{events → commons}/types/SystemEvent.d.ts +1 -1
- package/dist/serialization/resources/{events → commons}/types/SystemEvent.js +1 -1
- package/{serialization/resources/events → dist/serialization/resources/commons}/types/UserEvent.d.ts +3 -3
- package/{serialization/resources/events → dist/serialization/resources/commons}/types/UserEvent.js +3 -3
- package/dist/serialization/resources/{events → commons}/types/UserEventName.d.ts +1 -1
- package/dist/serialization/resources/{events → commons}/types/UserEventName.js +1 -1
- package/dist/serialization/resources/commons/types/index.d.ts +38 -0
- package/dist/serialization/resources/commons/types/index.js +38 -0
- package/dist/serialization/resources/conversation/types/ActionFormAttachment.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/ActionFormAttachment.js +44 -0
- package/dist/serialization/resources/conversation/types/ActionFormRequestParamValue.d.ts +11 -0
- package/dist/serialization/resources/conversation/types/ActionFormRequestParamValue.js +42 -0
- package/dist/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.js +42 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +2 -0
- package/dist/serialization/resources/conversation/types/StreamResponse.d.ts +5 -1
- package/dist/serialization/resources/conversation/types/StreamResponse.js +2 -0
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +2 -1
- package/dist/serialization/resources/conversation/types/index.d.ts +3 -0
- package/dist/serialization/resources/conversation/types/index.js +3 -0
- package/dist/serialization/resources/index.d.ts +6 -2
- package/dist/serialization/resources/index.js +7 -3
- package/dist/serialization/resources/knowledge/client/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/client/index.js +17 -0
- package/dist/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +21 -0
- package/dist/serialization/resources/knowledge/{types → client/requests}/KnowledgeBasePatchRequest.js +7 -3
- package/dist/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/client/requests/index.js +5 -0
- package/dist/serialization/resources/knowledge/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/index.js +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -3
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +44 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +44 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDeleteRequest.d.ts +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDeleteRequest.js +44 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -1
- package/dist/serialization/resources/knowledge/types/index.d.ts +3 -1
- package/dist/serialization/resources/knowledge/types/index.js +3 -1
- package/dist/serialization/resources/organizations/types/BaseOrganization.d.ts +13 -0
- package/dist/serialization/resources/organizations/types/BaseOrganization.js +44 -0
- package/dist/serialization/resources/organizations/types/CreateOrganizationRequest.d.ts +12 -0
- package/dist/serialization/resources/organizations/types/CreateOrganizationRequest.js +42 -0
- package/dist/serialization/resources/organizations/types/Organization.d.ts +14 -0
- package/dist/serialization/resources/organizations/types/Organization.js +47 -0
- package/dist/serialization/resources/organizations/types/OrganizationPatchRequest.d.ts +13 -0
- package/dist/serialization/resources/organizations/types/OrganizationPatchRequest.js +44 -0
- package/dist/serialization/resources/organizations/types/index.d.ts +4 -0
- package/dist/serialization/resources/organizations/types/index.js +20 -0
- package/dist/serialization/resources/triggers/types/EventTriggerType.d.ts +1 -1
- package/dist/serialization/resources/triggers/types/EventTriggerType.js +1 -1
- package/dist/serialization/resources/users/types/AgentUserFilter.d.ts +1 -0
- package/dist/serialization/resources/users/types/AgentUserFilter.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +732 -43
- package/serialization/resources/actions/client/index.d.ts +1 -0
- package/serialization/resources/actions/client/index.js +17 -0
- package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +17 -0
- package/serialization/resources/actions/{types → client/requests}/ActionPatchRequest.js +4 -2
- package/serialization/resources/actions/client/requests/index.d.ts +1 -0
- package/serialization/resources/actions/client/requests/index.js +5 -0
- package/serialization/resources/actions/index.d.ts +1 -0
- package/serialization/resources/actions/index.js +1 -0
- package/serialization/resources/actions/types/index.d.ts +0 -1
- package/serialization/resources/actions/types/index.js +0 -1
- package/serialization/resources/agentCapabilities/index.d.ts +1 -0
- package/serialization/resources/agentCapabilities/index.js +17 -0
- package/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +20 -0
- package/serialization/resources/agentCapabilities/types/ActionCapability.js +54 -0
- package/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +18 -0
- package/serialization/resources/agentCapabilities/types/AgentCapability.js +51 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +18 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +49 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +10 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +41 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +21 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +54 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +10 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +41 -0
- package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +15 -0
- package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +48 -0
- package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +14 -0
- package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +45 -0
- package/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +14 -0
- package/serialization/resources/agentCapabilities/types/TriggerCapability.js +47 -0
- package/serialization/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
- package/serialization/resources/agentCapabilities/types/TriggerType.js +41 -0
- package/serialization/resources/agentCapabilities/types/index.d.ts +10 -0
- package/serialization/resources/agentCapabilities/types/index.js +26 -0
- package/serialization/resources/agents/types/Agent.d.ts +1 -0
- package/serialization/resources/agents/types/Agent.js +1 -0
- package/serialization/resources/agents/types/AgentPatchRequest.d.ts +1 -0
- package/serialization/resources/agents/types/AgentPatchRequest.js +1 -0
- package/serialization/resources/agents/types/PiiCategory.d.ts +1 -1
- package/serialization/resources/agents/types/PiiCategory.js +1 -1
- package/serialization/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
- package/serialization/resources/analytics/types/AgentUserAnalyticsRequest.js +45 -0
- package/serialization/resources/analytics/types/AgentUserColumnDefinition.d.ts +14 -0
- package/serialization/resources/analytics/types/AgentUserColumnDefinition.js +47 -0
- package/serialization/resources/analytics/types/AgentUserCount.d.ts +11 -0
- package/serialization/resources/analytics/types/AgentUserCount.js +41 -0
- package/serialization/resources/analytics/types/AgentUserMetric.d.ts +14 -0
- package/serialization/resources/analytics/types/AgentUserMetric.js +49 -0
- package/serialization/resources/analytics/types/AgentUserRow.d.ts +15 -0
- package/serialization/resources/analytics/types/AgentUserRow.js +48 -0
- package/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +16 -0
- package/serialization/resources/analytics/types/AgentUserTableRequest.js +49 -0
- package/serialization/resources/analytics/types/AgentUserTableResponse.d.ts +14 -0
- package/serialization/resources/analytics/types/AgentUserTableResponse.js +47 -0
- package/serialization/resources/analytics/types/ConversationAnalyticsRequest.d.ts +1 -0
- package/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +1 -0
- package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +1 -0
- package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +1 -0
- package/serialization/resources/analytics/types/FieldValue.d.ts +2 -2
- package/serialization/resources/analytics/types/FieldValue.js +2 -2
- package/serialization/resources/analytics/types/index.d.ts +7 -0
- package/serialization/resources/analytics/types/index.js +7 -0
- package/serialization/resources/commons/types/ActionExecutionParamValue.d.ts +18 -0
- package/serialization/resources/commons/types/ActionExecutionParamValue.js +52 -0
- package/serialization/resources/commons/types/ActionOAuthConfiguration.d.ts +18 -0
- package/serialization/resources/commons/types/ActionOAuthConfiguration.js +49 -0
- package/serialization/resources/commons/types/ActionParameter.d.ts +3 -0
- package/serialization/resources/commons/types/ActionParameter.js +3 -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/BotLogicActionExecutedDetail.d.ts +2 -1
- package/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +2 -1
- package/serialization/resources/commons/types/BotOAuthButtonResponse.d.ts +13 -0
- package/serialization/resources/commons/types/BotOAuthButtonResponse.js +44 -0
- package/serialization/resources/commons/types/BotResponse.d.ts +5 -1
- package/serialization/resources/commons/types/BotResponse.js +2 -0
- package/serialization/resources/commons/types/Capability.d.ts +1 -1
- package/serialization/resources/commons/types/Capability.js +1 -1
- package/serialization/resources/commons/types/EntityResult.d.ts +13 -0
- package/serialization/resources/commons/types/EntityResult.js +46 -0
- package/serialization/resources/{events → commons}/types/EventBaseNoId.d.ts +2 -2
- package/serialization/resources/{events → commons}/types/EventBaseNoId.js +2 -2
- package/serialization/resources/{events → commons}/types/EventFilter.d.ts +3 -2
- package/serialization/resources/{events → commons}/types/EventFilter.js +3 -2
- package/serialization/resources/commons/types/EventRequest.d.ts +18 -0
- package/serialization/resources/commons/types/EventRequest.js +51 -0
- package/serialization/resources/{events/types/UserInfo.d.ts → commons/types/EventUserInfo.d.ts} +3 -3
- package/{dist/serialization/resources/events/types/UserInfo.js → serialization/resources/commons/types/EventUserInfo.js} +3 -3
- package/serialization/resources/commons/types/EventUserInfoBase.d.ts +13 -0
- package/serialization/resources/commons/types/EventUserInfoBase.js +44 -0
- package/serialization/resources/{events → commons}/types/EventsSearchRequest.d.ts +1 -1
- package/{dist/serialization/resources/events → serialization/resources/commons}/types/EventsSearchRequest.js +1 -1
- package/serialization/resources/{events → commons}/types/EventsSearchResponse.d.ts +1 -1
- package/serialization/resources/{events → commons}/types/EventsSearchResponse.js +1 -1
- package/serialization/resources/commons/types/NovelSystemEvent.d.ts +14 -0
- package/serialization/resources/commons/types/NovelSystemEvent.js +47 -0
- package/serialization/resources/commons/types/NovelUserEvent.d.ts +22 -0
- package/serialization/resources/commons/types/NovelUserEvent.js +55 -0
- package/serialization/resources/commons/types/QualityReason.d.ts +1 -1
- package/serialization/resources/commons/types/QualityReason.js +1 -0
- package/serialization/resources/commons/types/ScopedEntity.d.ts +14 -0
- package/serialization/resources/commons/types/ScopedEntity.js +45 -0
- package/serialization/resources/{events → commons}/types/SystemEvent.d.ts +1 -1
- package/serialization/resources/{events → commons}/types/SystemEvent.js +1 -1
- package/{dist/serialization/resources/events → serialization/resources/commons}/types/UserEvent.d.ts +3 -3
- package/{dist/serialization/resources/events → serialization/resources/commons}/types/UserEvent.js +3 -3
- package/serialization/resources/{events → commons}/types/UserEventName.d.ts +1 -1
- package/serialization/resources/{events → commons}/types/UserEventName.js +1 -1
- package/serialization/resources/commons/types/index.d.ts +38 -0
- package/serialization/resources/commons/types/index.js +38 -0
- package/serialization/resources/conversation/types/ActionFormAttachment.d.ts +13 -0
- package/serialization/resources/conversation/types/ActionFormAttachment.js +44 -0
- package/serialization/resources/conversation/types/ActionFormRequestParamValue.d.ts +11 -0
- package/serialization/resources/conversation/types/ActionFormRequestParamValue.js +42 -0
- package/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.d.ts +12 -0
- package/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.js +42 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -0
- package/serialization/resources/conversation/types/ConversationFilter.js +2 -0
- package/serialization/resources/conversation/types/StreamResponse.d.ts +5 -1
- package/serialization/resources/conversation/types/StreamResponse.js +2 -0
- package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
- package/serialization/resources/conversation/types/SubmitActionFormRequest.js +2 -1
- package/serialization/resources/conversation/types/index.d.ts +3 -0
- package/serialization/resources/conversation/types/index.js +3 -0
- package/serialization/resources/index.d.ts +6 -2
- package/serialization/resources/index.js +7 -3
- package/serialization/resources/knowledge/client/index.d.ts +1 -0
- package/serialization/resources/knowledge/client/index.js +17 -0
- package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +21 -0
- package/serialization/resources/knowledge/{types → client/requests}/KnowledgeBasePatchRequest.js +7 -3
- package/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
- package/serialization/resources/knowledge/client/requests/index.js +5 -0
- package/serialization/resources/knowledge/index.d.ts +1 -0
- package/serialization/resources/knowledge/index.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -3
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -4
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +44 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +44 -0
- package/serialization/resources/knowledge/types/KnowledgeDeleteRequest.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeDeleteRequest.js +44 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -4
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -4
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -1
- package/serialization/resources/knowledge/types/index.d.ts +3 -1
- package/serialization/resources/knowledge/types/index.js +3 -1
- package/serialization/resources/organizations/index.d.ts +1 -0
- package/serialization/resources/organizations/index.js +17 -0
- package/serialization/resources/organizations/types/BaseOrganization.d.ts +13 -0
- package/serialization/resources/organizations/types/BaseOrganization.js +44 -0
- package/serialization/resources/organizations/types/CreateOrganizationRequest.d.ts +12 -0
- package/serialization/resources/organizations/types/CreateOrganizationRequest.js +42 -0
- package/serialization/resources/organizations/types/Organization.d.ts +14 -0
- package/serialization/resources/organizations/types/Organization.js +47 -0
- package/serialization/resources/organizations/types/OrganizationPatchRequest.d.ts +13 -0
- package/serialization/resources/organizations/types/OrganizationPatchRequest.js +44 -0
- package/serialization/resources/organizations/types/index.d.ts +4 -0
- package/serialization/resources/organizations/types/index.js +20 -0
- package/serialization/resources/triggers/types/EventTriggerType.d.ts +1 -1
- package/serialization/resources/triggers/types/EventTriggerType.js +1 -1
- package/serialization/resources/users/types/AgentUserFilter.d.ts +1 -0
- package/serialization/resources/users/types/AgentUserFilter.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/actions/types/ActionPatchRequest.d.ts +0 -12
- package/api/resources/events/types/index.d.ts +0 -29
- package/api/resources/events/types/index.js +0 -45
- package/api/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +0 -16
- package/dist/api/resources/actions/types/ActionPatchRequest.d.ts +0 -12
- package/dist/api/resources/events/types/index.d.ts +0 -29
- package/dist/api/resources/events/types/index.js +0 -45
- package/dist/api/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +0 -16
- package/dist/serialization/resources/actions/types/ActionPatchRequest.d.ts +0 -15
- package/dist/serialization/resources/events/types/index.d.ts +0 -29
- package/dist/serialization/resources/events/types/index.js +0 -45
- package/dist/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +0 -18
- package/serialization/resources/actions/types/ActionPatchRequest.d.ts +0 -15
- package/serialization/resources/events/types/index.d.ts +0 -29
- package/serialization/resources/events/types/index.js +0 -45
- package/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +0 -18
- /package/api/resources/actions/{types → client/requests}/ActionPatchRequest.js +0 -0
- /package/api/resources/{events/types/BrowserInfo.js → agentCapabilities/types/ActionCapability.js} +0 -0
- /package/api/resources/{events/types/ContextInfo.js → agentCapabilities/types/AgentCapability.js} +0 -0
- /package/api/resources/{events/types/DeviceInfo.js → agentCapabilities/types/AgentCapabilityBase.js} +0 -0
- /package/api/resources/{events/types/EventBaseNoId.js → agentCapabilities/types/AgentCapabilityListRequest.js} +0 -0
- /package/api/resources/{events/types/EventFilter.js → agentCapabilities/types/ListAgentCapabilitiesResponse.js} +0 -0
- /package/api/resources/{events/types/EventResponse.js → agentCapabilities/types/PatchAgentCapabilityRequest.js} +0 -0
- /package/api/resources/{events/types/EventsSearchRequest.js → agentCapabilities/types/TriggerCapability.js} +0 -0
- /package/api/resources/{events/types/EventsSearchResponse.js → analytics/types/AgentUserAnalyticsRequest.js} +0 -0
- /package/api/resources/{events/types/FeedbackInfo.js → analytics/types/AgentUserColumnDefinition.js} +0 -0
- /package/api/resources/{events/types/GeoInfo.js → analytics/types/AgentUserCount.js} +0 -0
- /package/api/resources/{events/types/IpInfo.js → analytics/types/AgentUserMetric.js} +0 -0
- /package/api/resources/{events/types/LanguageInfo.js → analytics/types/AgentUserRow.js} +0 -0
- /package/api/resources/{events/types/NovelSystemEventNoId.js → analytics/types/AgentUserTableRequest.js} +0 -0
- /package/api/resources/{events/types/OsInfo.js → analytics/types/AgentUserTableResponse.js} +0 -0
- /package/api/resources/{events/types/PageInfo.js → commons/types/ActionExecutionParamValue.js} +0 -0
- /package/api/resources/{events/types/SessionInfo.js → commons/types/ActionOAuthConfiguration.js} +0 -0
- /package/api/resources/{events/types/SourceInfo.js → commons/types/BotOAuthButtonResponse.js} +0 -0
- /package/api/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/BrowserInfo.js +0 -0
- /package/api/resources/{events → commons}/types/BrowserType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/BrowserType.js +0 -0
- /package/api/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/ContextInfo.js +0 -0
- /package/api/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/DeviceInfo.js +0 -0
- /package/api/resources/{events → commons}/types/DeviceType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/DeviceType.js +0 -0
- /package/api/resources/{events/types/SurveyInfo.js → commons/types/EntityResult.js} +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/EventBaseNoId.js +0 -0
- /package/api/resources/{events → commons}/types/EventField.d.ts +0 -0
- /package/api/resources/{events → commons}/types/EventField.js +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/EventFilter.js +0 -0
- /package/api/resources/{events/types/SystemEvent.js → commons/types/EventRequest.js} +0 -0
- /package/api/resources/{events → commons}/types/EventResponse.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/EventResponse.js +0 -0
- /package/api/resources/{events → commons}/types/EventType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/EventType.js +0 -0
- /package/api/resources/{events/types/UserEvent.js → commons/types/EventUserInfo.js} +0 -0
- /package/api/resources/{events/types/UserInfo.js → commons/types/EventUserInfoBase.js} +0 -0
- /package/api/resources/{events → commons}/types/EventsSearchRequest.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/EventsSearchRequest.js +0 -0
- /package/api/resources/{events → commons}/types/EventsSearchResponse.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/EventsSearchResponse.js +0 -0
- /package/api/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/FeedbackInfo.js +0 -0
- /package/api/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/GeoInfo.js +0 -0
- /package/api/resources/{events → commons}/types/IpInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/IpInfo.js +0 -0
- /package/api/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/LanguageInfo.js +0 -0
- /package/api/resources/{knowledge/types/KnowledgeBasePatchRequest.js → commons/types/NovelSystemEvent.js} +0 -0
- /package/api/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/NovelSystemEventNoId.js +0 -0
- /package/{dist/api/resources/actions/types/ActionPatchRequest.js → api/resources/commons/types/NovelUserEvent.js} +0 -0
- /package/api/resources/{events → commons}/types/OsInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/OsInfo.js +0 -0
- /package/api/resources/{events → commons}/types/OsType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/OsType.js +0 -0
- /package/api/resources/{events → commons}/types/PageInfo.d.ts +0 -0
- /package/{dist/api/resources/events → api/resources/commons}/types/PageInfo.js +0 -0
- /package/{dist/api/resources/events/types/SessionInfo.js → api/resources/commons/types/ScopedEntity.js} +0 -0
- /package/api/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/SourceInfo.js → api/resources/commons/types/SessionInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/SurveyInfo.js → api/resources/commons/types/SourceInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/SourceType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SourceType.js +0 -0
- /package/api/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/SystemEvent.js → api/resources/commons/types/SurveyInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/SystemEvent.d.ts +0 -0
- /package/{dist/api/resources/events/types/UserEvent.js → api/resources/commons/types/SystemEvent.js} +0 -0
- /package/api/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SystemEventName.js +0 -0
- /package/{dist/api/resources/events/types/UserInfo.js → api/resources/commons/types/UserEvent.js} +0 -0
- /package/{dist/api/resources/knowledge/types/KnowledgeBasePatchRequest.js → api/resources/conversation/types/ActionFormAttachment.js} +0 -0
- /package/dist/api/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/BrowserType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/BrowserType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/DeviceType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/DeviceType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/EventField.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/EventField.js +0 -0
- /package/dist/api/resources/{events → commons}/types/EventResponse.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/EventType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/EventType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/EventsSearchRequest.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/EventsSearchResponse.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/IpInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/OsInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/OsType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/OsType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/PageInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SourceType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SourceType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SystemEvent.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SystemEventName.js +0 -0
- /package/dist/serialization/resources/{events → agentCapabilities}/index.d.ts +0 -0
- /package/dist/serialization/resources/{events → agentCapabilities}/index.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/BrowserInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/BrowserType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/BrowserType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/ContextInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/DeviceInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/DeviceType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/DeviceType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventField.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventField.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventResponse.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventResponse.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/FeedbackInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/GeoInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/IpInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/IpInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/LanguageInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/NovelSystemEventNoId.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/OsInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/OsInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/OsType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/OsType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/PageInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/PageInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SessionInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SourceInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SourceType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SourceType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SurveyInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SystemEventName.js +0 -0
- /package/{serialization/resources/events → dist/serialization/resources/organizations}/index.d.ts +0 -0
- /package/{serialization/resources/events → dist/serialization/resources/organizations}/index.js +0 -0
- /package/serialization/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/BrowserInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/BrowserType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/BrowserType.js +0 -0
- /package/serialization/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/ContextInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/DeviceInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/DeviceType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/DeviceType.js +0 -0
- /package/serialization/resources/{events → commons}/types/EventField.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/EventField.js +0 -0
- /package/serialization/resources/{events → commons}/types/EventResponse.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/EventResponse.js +0 -0
- /package/serialization/resources/{events → commons}/types/EventType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/EventType.js +0 -0
- /package/serialization/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/FeedbackInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/GeoInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/IpInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/IpInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/LanguageInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/NovelSystemEventNoId.js +0 -0
- /package/serialization/resources/{events → commons}/types/OsInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/OsInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/OsType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/OsType.js +0 -0
- /package/serialization/resources/{events → commons}/types/PageInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/PageInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SessionInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SourceInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/SourceType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SourceType.js +0 -0
- /package/serialization/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SurveyInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SystemEventName.js +0 -0
|
@@ -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 KnowledgeBaseVersionsListResponse {
|
|
6
|
+
/** The active knowledge base versions for the knowledge base. Includes all versions within the last 90 days or the last 10, whichever is greater. */
|
|
7
|
+
knowledgeBaseVersions: MavenAGI.KnowledgeBaseVersion[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* versionId: {
|
|
9
|
+
* type: MavenAGI.EntityType.KnowledgeBaseVersion,
|
|
10
|
+
* appId: "maven",
|
|
11
|
+
* referenceId: "versionId"
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface KnowledgeDeleteRequest {
|
|
16
|
+
/** ID that uniquely identifies which knowledge base version to delete the document from. */
|
|
17
|
+
versionId: MavenAGI.EntityIdWithoutAgent;
|
|
18
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
4
5
|
export interface KnowledgeDocumentFilter {
|
|
5
6
|
/**
|
|
6
7
|
* Full-text search query for matching knowledge documents by content.
|
|
@@ -23,4 +24,11 @@ export interface KnowledgeDocumentFilter {
|
|
|
23
24
|
createdAfter?: Date;
|
|
24
25
|
/** Filter knowledge documents created on or before this timestamp */
|
|
25
26
|
createdBefore?: Date;
|
|
27
|
+
/** Filter by app IDs */
|
|
28
|
+
appIds?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Filter documents within the specified knowledge base version.
|
|
31
|
+
* If not provided all active knowledge base versions within the agent will be searched.
|
|
32
|
+
*/
|
|
33
|
+
knowledgeBaseVersionId?: MavenAGI.EntityIdWithoutAgent;
|
|
26
34
|
}
|
|
@@ -12,6 +12,13 @@ import * as MavenAGI from "../../../index";
|
|
|
12
12
|
* agentId: "support",
|
|
13
13
|
* type: MavenAGI.EntityType.KnowledgeDocument
|
|
14
14
|
* },
|
|
15
|
+
* knowledgeBaseVersionId: {
|
|
16
|
+
* referenceId: "versionId",
|
|
17
|
+
* appId: "maven",
|
|
18
|
+
* organizationId: "acme",
|
|
19
|
+
* agentId: "support",
|
|
20
|
+
* type: MavenAGI.EntityType.KnowledgeBaseVersion
|
|
21
|
+
* },
|
|
15
22
|
* content: "## Getting started This is a getting started guide for the help center.",
|
|
16
23
|
* title: "Getting started",
|
|
17
24
|
* metadata: {
|
|
@@ -19,9 +26,7 @@ import * as MavenAGI from "../../../index";
|
|
|
19
26
|
* }
|
|
20
27
|
* }
|
|
21
28
|
*/
|
|
22
|
-
export interface KnowledgeDocumentResponse extends MavenAGI.
|
|
23
|
-
/** ID that uniquely identifies this knowledge document within its knowledge base */
|
|
24
|
-
knowledgeDocumentId: MavenAGI.EntityId;
|
|
29
|
+
export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSearchResponse {
|
|
25
30
|
/** The content of the document in markdown format. Not shown directly to users. */
|
|
26
31
|
content: string;
|
|
27
32
|
/** Metadata for the knowledge document. */
|
|
@@ -5,6 +5,9 @@ import * as MavenAGI from "../../../index";
|
|
|
5
5
|
export interface KnowledgeDocumentSearchResponse extends MavenAGI.BaseKnowledgeDocument {
|
|
6
6
|
/** ID that uniquely identifies this knowledge document within its knowledge base */
|
|
7
7
|
knowledgeDocumentId: MavenAGI.EntityId;
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* ID that uniquely identifies the knowledge base version that contains this document.
|
|
10
|
+
* This may be missing on legacy documents.
|
|
11
|
+
*/
|
|
12
|
+
knowledgeBaseVersionId?: MavenAGI.EntityId;
|
|
10
13
|
}
|
|
@@ -3,7 +3,7 @@ export * from "./KnowledgeBaseRequest";
|
|
|
3
3
|
export * from "./KnowledgeBaseResponse";
|
|
4
4
|
export * from "./KnowledgeBaseType";
|
|
5
5
|
export * from "./KnowledgeBaseRefreshFrequency";
|
|
6
|
-
export * from "./
|
|
6
|
+
export * from "./KnowledgeBaseVersionRequest";
|
|
7
7
|
export * from "./KnowledgeBaseVersion";
|
|
8
8
|
export * from "./KnowledgeBaseVersionType";
|
|
9
9
|
export * from "./KnowledgeBaseVersionStatus";
|
|
@@ -11,6 +11,7 @@ export * from "./KnowledgeBaseVersionFinalizeStatus";
|
|
|
11
11
|
export * from "./FinalizeKnowledgeBaseVersionRequest";
|
|
12
12
|
export * from "./BaseKnowledgeDocument";
|
|
13
13
|
export * from "./KnowledgeDocumentContentType";
|
|
14
|
+
export * from "./KnowledgeDeleteRequest";
|
|
14
15
|
export * from "./KnowledgeDocumentRequest";
|
|
15
16
|
export * from "./KnowledgeDocumentResponse";
|
|
16
17
|
export * from "./KnowledgeBaseField";
|
|
@@ -22,3 +23,4 @@ export * from "./KnowledgeBasesResponse";
|
|
|
22
23
|
export * from "./KnowledgeDocumentSearchRequest";
|
|
23
24
|
export * from "./KnowledgeDocumentSearchResponse";
|
|
24
25
|
export * from "./KnowledgeDocumentsResponse";
|
|
26
|
+
export * from "./KnowledgeBaseVersionsListResponse";
|
|
@@ -19,7 +19,7 @@ __exportStar(require("./KnowledgeBaseRequest"), exports);
|
|
|
19
19
|
__exportStar(require("./KnowledgeBaseResponse"), exports);
|
|
20
20
|
__exportStar(require("./KnowledgeBaseType"), exports);
|
|
21
21
|
__exportStar(require("./KnowledgeBaseRefreshFrequency"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./KnowledgeBaseVersionRequest"), exports);
|
|
23
23
|
__exportStar(require("./KnowledgeBaseVersion"), exports);
|
|
24
24
|
__exportStar(require("./KnowledgeBaseVersionType"), exports);
|
|
25
25
|
__exportStar(require("./KnowledgeBaseVersionStatus"), exports);
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./KnowledgeBaseVersionFinalizeStatus"), exports);
|
|
|
27
27
|
__exportStar(require("./FinalizeKnowledgeBaseVersionRequest"), exports);
|
|
28
28
|
__exportStar(require("./BaseKnowledgeDocument"), exports);
|
|
29
29
|
__exportStar(require("./KnowledgeDocumentContentType"), exports);
|
|
30
|
+
__exportStar(require("./KnowledgeDeleteRequest"), exports);
|
|
30
31
|
__exportStar(require("./KnowledgeDocumentRequest"), exports);
|
|
31
32
|
__exportStar(require("./KnowledgeDocumentResponse"), exports);
|
|
32
33
|
__exportStar(require("./KnowledgeBaseField"), exports);
|
|
@@ -38,3 +39,4 @@ __exportStar(require("./KnowledgeBasesResponse"), exports);
|
|
|
38
39
|
__exportStar(require("./KnowledgeDocumentSearchRequest"), exports);
|
|
39
40
|
__exportStar(require("./KnowledgeDocumentSearchResponse"), exports);
|
|
40
41
|
__exportStar(require("./KnowledgeDocumentsResponse"), exports);
|
|
42
|
+
__exportStar(require("./KnowledgeBaseVersionsListResponse"), exports);
|
|
@@ -37,6 +37,84 @@ export declare namespace Organizations {
|
|
|
37
37
|
export declare class Organizations {
|
|
38
38
|
protected readonly _options: Organizations.Options;
|
|
39
39
|
constructor(_options: Organizations.Options);
|
|
40
|
+
/**
|
|
41
|
+
* Create a new organization.
|
|
42
|
+
*
|
|
43
|
+
* <Tip>
|
|
44
|
+
* This endpoint requires additional permissions. Contact support to request access.
|
|
45
|
+
* </Tip>
|
|
46
|
+
*
|
|
47
|
+
* @param {string} organizationReferenceId - The reference ID of the organization.
|
|
48
|
+
* @param {MavenAGI.CreateOrganizationRequest} request
|
|
49
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
52
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
53
|
+
* @throws {@link MavenAGI.ServerError}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.organizations.create("organizationReferenceId", {
|
|
57
|
+
* name: "name",
|
|
58
|
+
* defaultLanguage: "defaultLanguage"
|
|
59
|
+
* })
|
|
60
|
+
*/
|
|
61
|
+
create(organizationReferenceId: string, request: MavenAGI.CreateOrganizationRequest, requestOptions?: Organizations.RequestOptions): core.HttpResponsePromise<MavenAGI.Organization>;
|
|
62
|
+
private __create;
|
|
63
|
+
/**
|
|
64
|
+
* Get an organization by ID
|
|
65
|
+
*
|
|
66
|
+
* @param {string} organizationReferenceId - The reference ID of the organization.
|
|
67
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
70
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
71
|
+
* @throws {@link MavenAGI.ServerError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.organizations.get("organizationReferenceId")
|
|
75
|
+
*/
|
|
76
|
+
get(organizationReferenceId: string, requestOptions?: Organizations.RequestOptions): core.HttpResponsePromise<MavenAGI.Organization>;
|
|
77
|
+
private __get;
|
|
78
|
+
/**
|
|
79
|
+
* Update mutable organization fields.
|
|
80
|
+
* All fields will overwrite the existing value on the organization only if provided.
|
|
81
|
+
*
|
|
82
|
+
* <Tip>
|
|
83
|
+
* This endpoint requires additional permissions. Contact support to request access.
|
|
84
|
+
* </Tip>
|
|
85
|
+
*
|
|
86
|
+
* @param {string} organizationReferenceId - The reference ID of the organization.
|
|
87
|
+
* @param {MavenAGI.OrganizationPatchRequest} request
|
|
88
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
91
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
92
|
+
* @throws {@link MavenAGI.ServerError}
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* await client.organizations.patch("organizationReferenceId", {})
|
|
96
|
+
*/
|
|
97
|
+
patch(organizationReferenceId: string, request: MavenAGI.OrganizationPatchRequest, requestOptions?: Organizations.RequestOptions): core.HttpResponsePromise<MavenAGI.Organization>;
|
|
98
|
+
private __patch;
|
|
99
|
+
/**
|
|
100
|
+
* Delete an organization.
|
|
101
|
+
*
|
|
102
|
+
* <Tip>
|
|
103
|
+
* This endpoint requires additional permissions. Contact support to request access.
|
|
104
|
+
* </Tip>
|
|
105
|
+
*
|
|
106
|
+
* @param {string} organizationReferenceId - The reference ID of the organization.
|
|
107
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
110
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
111
|
+
* @throws {@link MavenAGI.ServerError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await client.organizations.delete("organizationReferenceId")
|
|
115
|
+
*/
|
|
116
|
+
delete(organizationReferenceId: string, requestOptions?: Organizations.RequestOptions): core.HttpResponsePromise<void>;
|
|
117
|
+
private __delete;
|
|
40
118
|
/**
|
|
41
119
|
* Retrieves structured conversation data across all organizations, formatted as a table,
|
|
42
120
|
* allowing users to group, filter, and define specific metrics to display as columns.
|
|
@@ -56,6 +56,382 @@ class Organizations {
|
|
|
56
56
|
constructor(_options) {
|
|
57
57
|
this._options = _options;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Create a new organization.
|
|
61
|
+
*
|
|
62
|
+
* <Tip>
|
|
63
|
+
* This endpoint requires additional permissions. Contact support to request access.
|
|
64
|
+
* </Tip>
|
|
65
|
+
*
|
|
66
|
+
* @param {string} organizationReferenceId - The reference ID of the organization.
|
|
67
|
+
* @param {MavenAGI.CreateOrganizationRequest} request
|
|
68
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
71
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
72
|
+
* @throws {@link MavenAGI.ServerError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.organizations.create("organizationReferenceId", {
|
|
76
|
+
* name: "name",
|
|
77
|
+
* defaultLanguage: "defaultLanguage"
|
|
78
|
+
* })
|
|
79
|
+
*/
|
|
80
|
+
create(organizationReferenceId, request, requestOptions) {
|
|
81
|
+
return core.HttpResponsePromise.fromPromise(this.__create(organizationReferenceId, request, requestOptions));
|
|
82
|
+
}
|
|
83
|
+
__create(organizationReferenceId, request, requestOptions) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
var _a, _b, _c, _d;
|
|
86
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
87
|
+
url: core.url.join((_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)}`),
|
|
88
|
+
method: "POST",
|
|
89
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
90
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
91
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
92
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
93
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
94
|
+
contentType: "application/json",
|
|
95
|
+
requestType: "json",
|
|
96
|
+
body: serializers.CreateOrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
97
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
98
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
99
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
100
|
+
});
|
|
101
|
+
if (_response.ok) {
|
|
102
|
+
return {
|
|
103
|
+
data: serializers.Organization.parseOrThrow(_response.body, {
|
|
104
|
+
unrecognizedObjectKeys: "passthrough",
|
|
105
|
+
allowUnrecognizedUnionMembers: true,
|
|
106
|
+
allowUnrecognizedEnumValues: true,
|
|
107
|
+
breadcrumbsPrefix: ["response"],
|
|
108
|
+
}),
|
|
109
|
+
rawResponse: _response.rawResponse,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
if (_response.error.reason === "status-code") {
|
|
113
|
+
switch (_response.error.statusCode) {
|
|
114
|
+
case 404:
|
|
115
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
116
|
+
unrecognizedObjectKeys: "passthrough",
|
|
117
|
+
allowUnrecognizedUnionMembers: true,
|
|
118
|
+
allowUnrecognizedEnumValues: true,
|
|
119
|
+
breadcrumbsPrefix: ["response"],
|
|
120
|
+
}), _response.rawResponse);
|
|
121
|
+
case 400:
|
|
122
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
123
|
+
unrecognizedObjectKeys: "passthrough",
|
|
124
|
+
allowUnrecognizedUnionMembers: true,
|
|
125
|
+
allowUnrecognizedEnumValues: true,
|
|
126
|
+
breadcrumbsPrefix: ["response"],
|
|
127
|
+
}), _response.rawResponse);
|
|
128
|
+
case 500:
|
|
129
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
130
|
+
unrecognizedObjectKeys: "passthrough",
|
|
131
|
+
allowUnrecognizedUnionMembers: true,
|
|
132
|
+
allowUnrecognizedEnumValues: true,
|
|
133
|
+
breadcrumbsPrefix: ["response"],
|
|
134
|
+
}), _response.rawResponse);
|
|
135
|
+
default:
|
|
136
|
+
throw new errors.MavenAGIError({
|
|
137
|
+
statusCode: _response.error.statusCode,
|
|
138
|
+
body: _response.error.body,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
switch (_response.error.reason) {
|
|
144
|
+
case "non-json":
|
|
145
|
+
throw new errors.MavenAGIError({
|
|
146
|
+
statusCode: _response.error.statusCode,
|
|
147
|
+
body: _response.error.rawBody,
|
|
148
|
+
rawResponse: _response.rawResponse,
|
|
149
|
+
});
|
|
150
|
+
case "timeout":
|
|
151
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/organizations/{organizationReferenceId}.");
|
|
152
|
+
case "unknown":
|
|
153
|
+
throw new errors.MavenAGIError({
|
|
154
|
+
message: _response.error.errorMessage,
|
|
155
|
+
rawResponse: _response.rawResponse,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Get an organization by ID
|
|
162
|
+
*
|
|
163
|
+
* @param {string} organizationReferenceId - The reference ID of the organization.
|
|
164
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
165
|
+
*
|
|
166
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
167
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
168
|
+
* @throws {@link MavenAGI.ServerError}
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* await client.organizations.get("organizationReferenceId")
|
|
172
|
+
*/
|
|
173
|
+
get(organizationReferenceId, requestOptions) {
|
|
174
|
+
return core.HttpResponsePromise.fromPromise(this.__get(organizationReferenceId, requestOptions));
|
|
175
|
+
}
|
|
176
|
+
__get(organizationReferenceId, requestOptions) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
var _a, _b, _c, _d;
|
|
179
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
180
|
+
url: core.url.join((_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)}`),
|
|
181
|
+
method: "GET",
|
|
182
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
183
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
184
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
185
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
186
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
187
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
188
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
189
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
190
|
+
});
|
|
191
|
+
if (_response.ok) {
|
|
192
|
+
return {
|
|
193
|
+
data: serializers.Organization.parseOrThrow(_response.body, {
|
|
194
|
+
unrecognizedObjectKeys: "passthrough",
|
|
195
|
+
allowUnrecognizedUnionMembers: true,
|
|
196
|
+
allowUnrecognizedEnumValues: true,
|
|
197
|
+
breadcrumbsPrefix: ["response"],
|
|
198
|
+
}),
|
|
199
|
+
rawResponse: _response.rawResponse,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
if (_response.error.reason === "status-code") {
|
|
203
|
+
switch (_response.error.statusCode) {
|
|
204
|
+
case 404:
|
|
205
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
206
|
+
unrecognizedObjectKeys: "passthrough",
|
|
207
|
+
allowUnrecognizedUnionMembers: true,
|
|
208
|
+
allowUnrecognizedEnumValues: true,
|
|
209
|
+
breadcrumbsPrefix: ["response"],
|
|
210
|
+
}), _response.rawResponse);
|
|
211
|
+
case 400:
|
|
212
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
213
|
+
unrecognizedObjectKeys: "passthrough",
|
|
214
|
+
allowUnrecognizedUnionMembers: true,
|
|
215
|
+
allowUnrecognizedEnumValues: true,
|
|
216
|
+
breadcrumbsPrefix: ["response"],
|
|
217
|
+
}), _response.rawResponse);
|
|
218
|
+
case 500:
|
|
219
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
220
|
+
unrecognizedObjectKeys: "passthrough",
|
|
221
|
+
allowUnrecognizedUnionMembers: true,
|
|
222
|
+
allowUnrecognizedEnumValues: true,
|
|
223
|
+
breadcrumbsPrefix: ["response"],
|
|
224
|
+
}), _response.rawResponse);
|
|
225
|
+
default:
|
|
226
|
+
throw new errors.MavenAGIError({
|
|
227
|
+
statusCode: _response.error.statusCode,
|
|
228
|
+
body: _response.error.body,
|
|
229
|
+
rawResponse: _response.rawResponse,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
switch (_response.error.reason) {
|
|
234
|
+
case "non-json":
|
|
235
|
+
throw new errors.MavenAGIError({
|
|
236
|
+
statusCode: _response.error.statusCode,
|
|
237
|
+
body: _response.error.rawBody,
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
});
|
|
240
|
+
case "timeout":
|
|
241
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/organizations/{organizationReferenceId}.");
|
|
242
|
+
case "unknown":
|
|
243
|
+
throw new errors.MavenAGIError({
|
|
244
|
+
message: _response.error.errorMessage,
|
|
245
|
+
rawResponse: _response.rawResponse,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Update mutable organization fields.
|
|
252
|
+
* All fields will overwrite the existing value on the organization only if provided.
|
|
253
|
+
*
|
|
254
|
+
* <Tip>
|
|
255
|
+
* This endpoint requires additional permissions. Contact support to request access.
|
|
256
|
+
* </Tip>
|
|
257
|
+
*
|
|
258
|
+
* @param {string} organizationReferenceId - The reference ID of the organization.
|
|
259
|
+
* @param {MavenAGI.OrganizationPatchRequest} request
|
|
260
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
261
|
+
*
|
|
262
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
263
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
264
|
+
* @throws {@link MavenAGI.ServerError}
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* await client.organizations.patch("organizationReferenceId", {})
|
|
268
|
+
*/
|
|
269
|
+
patch(organizationReferenceId, request, requestOptions) {
|
|
270
|
+
return core.HttpResponsePromise.fromPromise(this.__patch(organizationReferenceId, request, requestOptions));
|
|
271
|
+
}
|
|
272
|
+
__patch(organizationReferenceId, request, requestOptions) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
var _a, _b, _c, _d;
|
|
275
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
276
|
+
url: core.url.join((_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)}`),
|
|
277
|
+
method: "PATCH",
|
|
278
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
279
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
280
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
281
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
282
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
283
|
+
contentType: "application/json",
|
|
284
|
+
requestType: "json",
|
|
285
|
+
body: serializers.OrganizationPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
286
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
287
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
288
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
289
|
+
});
|
|
290
|
+
if (_response.ok) {
|
|
291
|
+
return {
|
|
292
|
+
data: serializers.Organization.parseOrThrow(_response.body, {
|
|
293
|
+
unrecognizedObjectKeys: "passthrough",
|
|
294
|
+
allowUnrecognizedUnionMembers: true,
|
|
295
|
+
allowUnrecognizedEnumValues: true,
|
|
296
|
+
breadcrumbsPrefix: ["response"],
|
|
297
|
+
}),
|
|
298
|
+
rawResponse: _response.rawResponse,
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
if (_response.error.reason === "status-code") {
|
|
302
|
+
switch (_response.error.statusCode) {
|
|
303
|
+
case 404:
|
|
304
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
305
|
+
unrecognizedObjectKeys: "passthrough",
|
|
306
|
+
allowUnrecognizedUnionMembers: true,
|
|
307
|
+
allowUnrecognizedEnumValues: true,
|
|
308
|
+
breadcrumbsPrefix: ["response"],
|
|
309
|
+
}), _response.rawResponse);
|
|
310
|
+
case 400:
|
|
311
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
312
|
+
unrecognizedObjectKeys: "passthrough",
|
|
313
|
+
allowUnrecognizedUnionMembers: true,
|
|
314
|
+
allowUnrecognizedEnumValues: true,
|
|
315
|
+
breadcrumbsPrefix: ["response"],
|
|
316
|
+
}), _response.rawResponse);
|
|
317
|
+
case 500:
|
|
318
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
319
|
+
unrecognizedObjectKeys: "passthrough",
|
|
320
|
+
allowUnrecognizedUnionMembers: true,
|
|
321
|
+
allowUnrecognizedEnumValues: true,
|
|
322
|
+
breadcrumbsPrefix: ["response"],
|
|
323
|
+
}), _response.rawResponse);
|
|
324
|
+
default:
|
|
325
|
+
throw new errors.MavenAGIError({
|
|
326
|
+
statusCode: _response.error.statusCode,
|
|
327
|
+
body: _response.error.body,
|
|
328
|
+
rawResponse: _response.rawResponse,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
switch (_response.error.reason) {
|
|
333
|
+
case "non-json":
|
|
334
|
+
throw new errors.MavenAGIError({
|
|
335
|
+
statusCode: _response.error.statusCode,
|
|
336
|
+
body: _response.error.rawBody,
|
|
337
|
+
rawResponse: _response.rawResponse,
|
|
338
|
+
});
|
|
339
|
+
case "timeout":
|
|
340
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/organizations/{organizationReferenceId}.");
|
|
341
|
+
case "unknown":
|
|
342
|
+
throw new errors.MavenAGIError({
|
|
343
|
+
message: _response.error.errorMessage,
|
|
344
|
+
rawResponse: _response.rawResponse,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Delete an organization.
|
|
351
|
+
*
|
|
352
|
+
* <Tip>
|
|
353
|
+
* This endpoint requires additional permissions. Contact support to request access.
|
|
354
|
+
* </Tip>
|
|
355
|
+
*
|
|
356
|
+
* @param {string} organizationReferenceId - The reference ID of the organization.
|
|
357
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
358
|
+
*
|
|
359
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
360
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
361
|
+
* @throws {@link MavenAGI.ServerError}
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* await client.organizations.delete("organizationReferenceId")
|
|
365
|
+
*/
|
|
366
|
+
delete(organizationReferenceId, requestOptions) {
|
|
367
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(organizationReferenceId, requestOptions));
|
|
368
|
+
}
|
|
369
|
+
__delete(organizationReferenceId, requestOptions) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
var _a, _b, _c, _d;
|
|
372
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
373
|
+
url: core.url.join((_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)}`),
|
|
374
|
+
method: "DELETE",
|
|
375
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
376
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
377
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
378
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
379
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
380
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
381
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
382
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
383
|
+
});
|
|
384
|
+
if (_response.ok) {
|
|
385
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
386
|
+
}
|
|
387
|
+
if (_response.error.reason === "status-code") {
|
|
388
|
+
switch (_response.error.statusCode) {
|
|
389
|
+
case 404:
|
|
390
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
391
|
+
unrecognizedObjectKeys: "passthrough",
|
|
392
|
+
allowUnrecognizedUnionMembers: true,
|
|
393
|
+
allowUnrecognizedEnumValues: true,
|
|
394
|
+
breadcrumbsPrefix: ["response"],
|
|
395
|
+
}), _response.rawResponse);
|
|
396
|
+
case 400:
|
|
397
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
398
|
+
unrecognizedObjectKeys: "passthrough",
|
|
399
|
+
allowUnrecognizedUnionMembers: true,
|
|
400
|
+
allowUnrecognizedEnumValues: true,
|
|
401
|
+
breadcrumbsPrefix: ["response"],
|
|
402
|
+
}), _response.rawResponse);
|
|
403
|
+
case 500:
|
|
404
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
405
|
+
unrecognizedObjectKeys: "passthrough",
|
|
406
|
+
allowUnrecognizedUnionMembers: true,
|
|
407
|
+
allowUnrecognizedEnumValues: true,
|
|
408
|
+
breadcrumbsPrefix: ["response"],
|
|
409
|
+
}), _response.rawResponse);
|
|
410
|
+
default:
|
|
411
|
+
throw new errors.MavenAGIError({
|
|
412
|
+
statusCode: _response.error.statusCode,
|
|
413
|
+
body: _response.error.body,
|
|
414
|
+
rawResponse: _response.rawResponse,
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
switch (_response.error.reason) {
|
|
419
|
+
case "non-json":
|
|
420
|
+
throw new errors.MavenAGIError({
|
|
421
|
+
statusCode: _response.error.statusCode,
|
|
422
|
+
body: _response.error.rawBody,
|
|
423
|
+
rawResponse: _response.rawResponse,
|
|
424
|
+
});
|
|
425
|
+
case "timeout":
|
|
426
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling DELETE /v1/organizations/{organizationReferenceId}.");
|
|
427
|
+
case "unknown":
|
|
428
|
+
throw new errors.MavenAGIError({
|
|
429
|
+
message: _response.error.errorMessage,
|
|
430
|
+
rawResponse: _response.rawResponse,
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
}
|
|
59
435
|
/**
|
|
60
436
|
* Retrieves structured conversation data across all organizations, formatted as a table,
|
|
61
437
|
* allowing users to group, filter, and define specific metrics to display as columns.
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface BaseOrganization {
|
|
5
|
+
/** The name of the organization. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** The default language for the organization in ISO 639-1 code format. */
|
|
8
|
+
defaultLanguage: string;
|
|
9
|
+
}
|