mavenagi 1.2.60 → 1.2.62
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/BaseClient.d.ts +12 -0
- package/BaseClient.js +5 -3
- package/Client.d.ts +9 -0
- package/Client.js +43 -28
- package/api/resources/actions/client/Client.d.ts +26 -0
- package/api/resources/actions/client/Client.js +30 -3
- package/api/resources/agents/client/Client.d.ts +12 -0
- package/api/resources/agents/client/Client.js +16 -3
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +3 -3
- package/api/resources/agents/types/AgentPrompting.d.ts +3 -3
- package/api/resources/analytics/client/Client.d.ts +14 -0
- package/api/resources/analytics/client/Client.js +22 -7
- package/api/resources/analytics/types/ConversationMedian.d.ts +4 -0
- package/api/resources/analytics/types/ConversationPercentile.d.ts +4 -0
- package/api/resources/analytics/types/RowBase.d.ts +5 -1
- package/api/resources/analytics/types/Series.d.ts +4 -1
- package/api/resources/analytics/types/TimeSeries.d.ts +5 -1
- package/api/resources/appDirectory/client/Client.d.ts +12 -0
- package/api/resources/appDirectory/client/Client.js +16 -3
- package/api/resources/appSettings/client/Client.d.ts +6 -0
- package/api/resources/appSettings/client/Client.js +8 -1
- package/api/resources/assets/client/Client.d.ts +4 -0
- package/api/resources/assets/client/Client.js +7 -2
- package/api/resources/capabilities/client/Client.d.ts +118 -0
- package/api/resources/capabilities/client/Client.js +521 -0
- package/api/resources/capabilities/client/index.d.ts +1 -0
- package/api/resources/capabilities/client/index.js +17 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +36 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +3 -0
- package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
- package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/index.d.ts +4 -0
- package/api/resources/capabilities/client/requests/index.js +2 -0
- package/api/resources/capabilities/exports.d.ts +2 -0
- package/api/resources/capabilities/exports.js +21 -0
- package/api/resources/capabilities/index.d.ts +2 -0
- package/api/resources/capabilities/index.js +18 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
- package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
- package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +4 -0
- package/api/resources/capabilities/types/index.js +20 -0
- package/api/resources/charters/client/Client.d.ts +245 -0
- package/api/resources/charters/client/Client.js +884 -0
- package/api/resources/charters/client/index.d.ts +1 -0
- package/api/resources/charters/client/index.js +17 -0
- package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +20 -0
- package/api/resources/charters/client/requests/CharterDeleteRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +8 -0
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterGetRequest.d.ts +8 -0
- package/api/resources/charters/client/requests/CharterGetRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +67 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.js +3 -0
- package/api/resources/charters/client/requests/index.d.ts +4 -0
- package/api/resources/charters/client/requests/index.js +2 -0
- package/api/resources/charters/exports.d.ts +2 -0
- package/api/resources/charters/exports.js +21 -0
- package/api/resources/charters/index.d.ts +1 -0
- package/api/resources/charters/index.js +1 -0
- package/api/resources/charters/types/CharterAncestorsResponse.d.ts +8 -0
- package/api/resources/charters/types/CharterAncestorsResponse.js +3 -0
- package/api/resources/charters/types/CharterBase.d.ts +14 -0
- package/api/resources/charters/types/CharterBase.js +3 -0
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +1 -1
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +1 -1
- package/api/resources/charters/types/CharterChildrenGroup.d.ts +18 -0
- package/api/resources/charters/types/CharterChildrenGroup.js +3 -0
- package/api/resources/charters/types/CharterContent.d.ts +60 -0
- package/api/resources/charters/types/CharterContent.js +3 -0
- package/api/resources/charters/types/CharterKnowledgeBaseReference.d.ts +16 -0
- package/api/resources/charters/types/CharterKnowledgeBaseReference.js +3 -0
- package/api/resources/charters/types/CharterListChildrenRequest.d.ts +18 -0
- package/api/resources/charters/types/CharterListChildrenRequest.js +3 -0
- package/api/resources/charters/types/CharterListChildrenResponse.d.ts +55 -0
- package/api/resources/charters/types/CharterListChildrenResponse.js +3 -0
- package/api/resources/charters/types/CharterPatchReferences.d.ts +22 -0
- package/api/resources/charters/types/CharterPatchReferences.js +3 -0
- package/api/resources/charters/types/CharterReferences.d.ts +21 -0
- package/api/resources/charters/types/CharterReferences.js +3 -0
- package/api/resources/charters/types/CharterRequest.d.ts +36 -0
- package/api/resources/charters/types/CharterRequest.js +3 -0
- package/api/resources/charters/types/CharterResponse.d.ts +66 -0
- package/api/resources/charters/types/CharterResponse.js +3 -0
- package/api/resources/charters/types/CharterSearchField.d.ts +5 -0
- package/api/resources/charters/types/CharterSearchField.js +8 -0
- package/api/resources/charters/types/CharterSearchFilter.d.ts +18 -0
- package/api/resources/charters/types/CharterSearchFilter.js +3 -0
- package/api/resources/charters/types/CharterSearchRequest.d.ts +5 -0
- package/api/resources/charters/types/CharterSearchRequest.js +3 -0
- package/api/resources/charters/types/CharterSearchResponse.d.ts +36 -0
- package/api/resources/charters/types/CharterSearchResponse.js +3 -0
- package/api/resources/charters/types/CharterStatus.d.ts +2 -2
- package/api/resources/charters/types/CharterStatus.js +2 -2
- package/api/resources/charters/types/CharterSummary.d.ts +1 -9
- package/api/resources/charters/types/CharterType.d.ts +4 -4
- package/api/resources/charters/types/CharterType.js +4 -4
- package/api/resources/charters/types/index.d.ts +15 -0
- package/api/resources/charters/types/index.js +15 -0
- package/api/resources/commons/errors/BadRequestError.d.ts +1 -0
- package/api/resources/commons/errors/BadRequestError.js +1 -1
- package/api/resources/commons/errors/NotFoundError.d.ts +1 -0
- package/api/resources/commons/errors/NotFoundError.js +1 -1
- package/api/resources/commons/errors/PayloadTooLargeError.d.ts +1 -0
- package/api/resources/commons/errors/PayloadTooLargeError.js +1 -1
- package/api/resources/commons/errors/ServerError.d.ts +1 -0
- package/api/resources/commons/errors/ServerError.js +1 -1
- package/api/resources/commons/errors/TooManyRequestsError.d.ts +1 -0
- package/api/resources/commons/errors/TooManyRequestsError.js +1 -1
- package/api/resources/commons/types/ActionResponse.d.ts +11 -2
- package/api/resources/commons/types/AskType.d.ts +2 -2
- package/api/resources/commons/types/AskType.js +2 -2
- package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
- package/api/resources/commons/types/BotObjectResponse.d.ts +1 -1
- package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
- package/api/resources/commons/types/CapabilityBase.js +3 -0
- package/api/resources/commons/types/CapabilityStatus.d.ts +17 -0
- package/api/resources/commons/types/CapabilityStatus.js +20 -0
- package/api/resources/commons/types/CapabilityType.d.ts +8 -0
- package/api/resources/commons/types/CapabilityType.js +11 -0
- package/api/resources/commons/types/ConversationRound.d.ts +1 -1
- package/api/resources/commons/types/ConversationRound.js +1 -1
- package/api/resources/commons/types/EntityType.d.ts +5 -1
- package/api/resources/commons/types/EntityType.js +5 -1
- package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
- package/api/resources/commons/types/ErrorReason.d.ts +31 -0
- package/api/resources/commons/types/ErrorReason.js +34 -0
- package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +0 -4
- package/api/resources/commons/types/LlmPersona.d.ts +1 -1
- package/api/resources/commons/types/LlmPersona.js +1 -1
- package/api/resources/commons/types/MetadataComparisonCondition.d.ts +10 -0
- package/api/resources/commons/types/MetadataComparisonCondition.js +3 -0
- package/api/resources/commons/types/MetadataComparisonOperator.d.ts +22 -0
- package/api/resources/commons/types/MetadataComparisonOperator.js +25 -0
- package/api/resources/commons/types/MetadataCondition.d.ts +21 -0
- package/api/resources/commons/types/MetadataCondition.js +3 -0
- package/api/resources/commons/types/MetadataEntryCondition.d.ts +10 -0
- package/api/resources/commons/types/MetadataEntryCondition.js +3 -0
- package/api/resources/commons/types/MetadataFilter.d.ts +41 -0
- package/api/resources/commons/types/MetadataFilter.js +3 -0
- package/api/resources/commons/types/MetadataFilterGroup.d.ts +14 -0
- package/api/resources/commons/types/MetadataFilterGroup.js +3 -0
- package/api/resources/commons/types/SimulationContext.d.ts +2 -2
- package/api/resources/commons/types/SystemEventName.d.ts +3 -0
- package/api/resources/commons/types/SystemEventName.js +3 -0
- package/api/resources/commons/types/index.d.ts +10 -0
- package/api/resources/commons/types/index.js +10 -0
- package/api/resources/conversation/client/Client.d.ts +33 -0
- package/api/resources/conversation/client/Client.js +49 -17
- package/api/resources/conversation/types/AskRequest.d.ts +10 -10
- package/api/resources/conversation/types/ConversationFilter.d.ts +6 -1
- package/api/resources/conversationKickoffs/client/Client.d.ts +45 -0
- package/api/resources/conversationKickoffs/client/Client.js +175 -0
- package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/index.js +17 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
- package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
- package/api/resources/conversationKickoffs/exports.d.ts +2 -0
- package/api/resources/conversationKickoffs/exports.js +21 -0
- package/api/resources/conversationKickoffs/index.d.ts +2 -0
- package/api/resources/conversationKickoffs/index.js +18 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
- package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/types/index.js +17 -0
- package/api/resources/customers/client/Client.d.ts +8 -0
- package/api/resources/customers/client/Client.js +12 -3
- package/api/resources/events/client/Client.d.ts +8 -0
- package/api/resources/events/client/Client.js +12 -3
- package/api/resources/inbox/client/Client.d.ts +16 -0
- package/api/resources/inbox/client/Client.js +22 -5
- package/api/resources/index.d.ts +7 -0
- package/api/resources/index.js +8 -1
- package/api/resources/integrations/client/Client.d.ts +2 -0
- package/api/resources/integrations/client/Client.js +4 -1
- package/api/resources/intelligentFields/client/Client.d.ts +41 -4
- package/api/resources/intelligentFields/client/Client.js +49 -9
- package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +4 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +14 -5
- package/api/resources/intelligentFields/types/EnumOption.d.ts +8 -1
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +12 -15
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +5 -2
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +10 -2
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
- package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +10 -0
- package/api/resources/intelligentFields/types/IntelligentFieldType.js +10 -0
- package/api/resources/intelligentFields/types/index.d.ts +0 -1
- package/api/resources/intelligentFields/types/index.js +0 -1
- package/api/resources/knowledge/client/Client.d.ts +35 -0
- package/api/resources/knowledge/client/Client.js +50 -16
- package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +13 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -2
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +33 -9
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +7 -1
- package/api/resources/organizations/client/Client.d.ts +12 -0
- package/api/resources/organizations/client/Client.js +17 -4
- package/api/resources/segments/client/Client.d.ts +10 -0
- package/api/resources/segments/client/Client.js +14 -3
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +4 -1
- package/api/resources/triggers/client/Client.d.ts +31 -0
- package/api/resources/triggers/client/Client.js +35 -3
- package/api/resources/triggers/types/EventTriggerBase.d.ts +0 -4
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
- package/api/resources/users/client/Client.d.ts +10 -0
- package/api/resources/users/client/Client.js +13 -2
- package/api/resources/voice/client/Client.d.ts +2 -0
- package/api/resources/voice/client/Client.js +4 -1
- package/api/resources/voiceConversations/client/Client.d.ts +4 -1
- package/api/resources/voiceConversations/client/Client.js +2 -1
- package/api/resources/voiceConversations/client/Socket.d.ts +11 -0
- package/api/resources/voiceConversations/client/Socket.js +15 -0
- package/core/fetcher/Fetcher.js +9 -92
- package/core/fetcher/getResponseBody.js +11 -0
- package/core/fetcher/makePassthroughRequest.js +26 -4
- package/core/fetcher/redactUrl.d.ts +2 -0
- package/core/fetcher/redactUrl.js +88 -0
- package/core/fetcher/signals.js +9 -1
- package/core/file/file.js +3 -0
- package/core/form-data-utils/FormDataWrapper.js +3 -0
- package/core/requestBody.d.ts +12 -0
- package/core/requestBody.js +26 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -1
- package/core/runtime/runtime.d.ts +19 -0
- package/core/runtime/runtime.js +74 -2
- package/core/schemas/builders/schema-utils/JsonError.js +2 -2
- package/core/schemas/builders/schema-utils/ParseError.js +2 -2
- package/core/stream/Stream.d.ts +45 -1
- package/core/stream/Stream.js +323 -84
- package/core/stream/index.d.ts +1 -0
- package/core/url/qs.js +2 -2
- package/core/websocket/ws.d.ts +6 -0
- package/core/websocket/ws.js +14 -1
- package/errors/MavenAGIError.d.ts +1 -0
- package/errors/MavenAGIError.js +5 -1
- package/errors/MavenAGITimeoutError.d.ts +2 -2
- package/errors/MavenAGITimeoutError.js +40 -6
- package/package.json +2 -2
- package/reference.md +1170 -126
- package/serialization/resources/capabilities/client/index.d.ts +1 -0
- package/serialization/resources/capabilities/client/index.js +17 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +21 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +55 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
- package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/index.js +7 -0
- package/serialization/resources/capabilities/index.d.ts +2 -0
- package/serialization/resources/capabilities/index.js +18 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
- package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
- package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
- package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
- package/serialization/resources/capabilities/types/index.d.ts +4 -0
- package/serialization/resources/capabilities/types/index.js +20 -0
- package/serialization/resources/charters/client/index.d.ts +1 -0
- package/serialization/resources/charters/client/index.js +17 -0
- package/serialization/resources/charters/client/requests/CharterPatchRequest.d.ts +24 -0
- package/serialization/resources/charters/client/requests/CharterPatchRequest.js +57 -0
- package/serialization/resources/charters/client/requests/index.d.ts +1 -0
- package/serialization/resources/charters/client/requests/index.js +5 -0
- package/serialization/resources/charters/index.d.ts +1 -0
- package/serialization/resources/charters/index.js +1 -0
- package/serialization/resources/charters/types/CharterAncestorsResponse.d.ts +10 -0
- package/serialization/resources/charters/types/CharterAncestorsResponse.js +42 -0
- package/serialization/resources/charters/types/CharterBase.d.ts +11 -0
- package/serialization/resources/charters/types/CharterBase.js +43 -0
- package/serialization/resources/charters/types/CharterChildrenGroup.d.ts +13 -0
- package/serialization/resources/charters/types/CharterChildrenGroup.js +45 -0
- package/serialization/resources/charters/types/CharterContent.d.ts +19 -0
- package/serialization/resources/charters/types/CharterContent.js +54 -0
- package/serialization/resources/charters/types/CharterKnowledgeBaseReference.d.ts +11 -0
- package/serialization/resources/charters/types/CharterKnowledgeBaseReference.js +44 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +11 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.js +45 -0
- package/serialization/resources/charters/types/CharterListChildrenResponse.d.ts +11 -0
- package/serialization/resources/charters/types/CharterListChildrenResponse.js +45 -0
- package/serialization/resources/charters/types/CharterPatchReferences.d.ts +12 -0
- package/serialization/resources/charters/types/CharterPatchReferences.js +44 -0
- package/serialization/resources/charters/types/CharterReferences.d.ts +12 -0
- package/serialization/resources/charters/types/CharterReferences.js +44 -0
- package/serialization/resources/charters/types/CharterRequest.d.ts +13 -0
- package/serialization/resources/charters/types/CharterRequest.js +47 -0
- package/serialization/resources/charters/types/CharterResponse.d.ts +25 -0
- package/serialization/resources/charters/types/CharterResponse.js +60 -0
- package/serialization/resources/charters/types/CharterSearchField.d.ts +7 -0
- package/serialization/resources/charters/types/CharterSearchField.js +39 -0
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +12 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +44 -0
- package/serialization/resources/charters/types/CharterSearchRequest.d.ts +13 -0
- package/serialization/resources/charters/types/CharterSearchRequest.js +47 -0
- package/serialization/resources/charters/types/CharterSearchResponse.d.ts +11 -0
- package/serialization/resources/charters/types/CharterSearchResponse.js +45 -0
- package/serialization/resources/charters/types/CharterSummary.d.ts +0 -2
- package/serialization/resources/charters/types/CharterSummary.js +0 -2
- package/serialization/resources/charters/types/index.d.ts +15 -0
- package/serialization/resources/charters/types/index.js +15 -0
- package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
- package/serialization/resources/commons/types/ActionResponse.js +4 -2
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
- package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
- package/serialization/resources/commons/types/CapabilityBase.js +46 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
- package/serialization/resources/commons/types/CapabilityStatus.js +39 -0
- package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
- package/serialization/resources/commons/types/CapabilityType.js +39 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -1
- package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
- package/serialization/resources/commons/types/ErrorMessage.js +2 -0
- package/serialization/resources/commons/types/ErrorReason.d.ts +7 -0
- package/serialization/resources/commons/types/ErrorReason.js +49 -0
- package/serialization/resources/commons/types/MetadataComparisonCondition.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataComparisonCondition.js +43 -0
- package/serialization/resources/commons/types/MetadataComparisonOperator.d.ts +7 -0
- package/serialization/resources/commons/types/MetadataComparisonOperator.js +39 -0
- package/serialization/resources/commons/types/MetadataCondition.d.ts +19 -0
- package/serialization/resources/commons/types/MetadataCondition.js +51 -0
- package/serialization/resources/commons/types/MetadataEntryCondition.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataEntryCondition.js +43 -0
- package/serialization/resources/commons/types/MetadataFilter.d.ts +14 -0
- package/serialization/resources/commons/types/MetadataFilter.js +49 -0
- package/serialization/resources/commons/types/MetadataFilterGroup.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataFilterGroup.js +44 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +10 -0
- package/serialization/resources/commons/types/index.js +10 -0
- package/serialization/resources/conversationKickoffs/client/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/index.js +17 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
- package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/index.js +18 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
- package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/types/index.js +17 -0
- package/serialization/resources/index.d.ts +7 -0
- package/serialization/resources/index.js +8 -1
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +3 -2
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +3 -2
- package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
- package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
- package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
- package/serialization/resources/intelligentFields/types/index.js +0 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +0 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +0 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +0 -2
- package/serialization/resources/triggers/types/EventTriggerBase.js +0 -2
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -1
- package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +0 -7
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +0 -10
|
@@ -11,7 +11,12 @@ export declare class IntelligentFieldsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<IntelligentFieldsClient.Options>;
|
|
12
12
|
constructor(options: IntelligentFieldsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Create a new intelligent field
|
|
14
|
+
* Create a new intelligent field, or replace it if one already exists with the same
|
|
15
|
+
* `fieldId.referenceId`. Intelligent fields hold LLM-generated values computed for
|
|
16
|
+
* entities such as conversations.
|
|
17
|
+
*
|
|
18
|
+
* New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
19
|
+
* with the patch endpoint. `definition` is limited to 5,000 characters.
|
|
15
20
|
*
|
|
16
21
|
* @param {MavenAGI.IntelligentFieldRequest} request
|
|
17
22
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -21,6 +26,8 @@ export declare class IntelligentFieldsClient {
|
|
|
21
26
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
22
27
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
23
28
|
* @throws {@link MavenAGI.ServerError}
|
|
29
|
+
* @throws {@link errors.MavenAGIError}
|
|
30
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
24
31
|
*
|
|
25
32
|
* @example
|
|
26
33
|
* await client.intelligentFields.createOrUpdate({
|
|
@@ -33,7 +40,8 @@ export declare class IntelligentFieldsClient {
|
|
|
33
40
|
* validationType: "STRING",
|
|
34
41
|
* enumOptions: [{
|
|
35
42
|
* value: "HIGH",
|
|
36
|
-
* label: "High Priority"
|
|
43
|
+
* label: "High Priority",
|
|
44
|
+
* description: "The customer is blocked or reports an outage."
|
|
37
45
|
* }, {
|
|
38
46
|
* value: "MEDIUM",
|
|
39
47
|
* label: "Medium Priority"
|
|
@@ -47,6 +55,12 @@ export declare class IntelligentFieldsClient {
|
|
|
47
55
|
createOrUpdate(request: MavenAGI.IntelligentFieldRequest, requestOptions?: IntelligentFieldsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.IntelligentFieldResponse>;
|
|
48
56
|
private __createOrUpdate;
|
|
49
57
|
/**
|
|
58
|
+
* @deprecated
|
|
59
|
+
*
|
|
60
|
+
* Deprecated. Use `GET /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which reads any
|
|
61
|
+
* kind of capability the same way. It does not carry `referencingCharters`; search
|
|
62
|
+
* charters to find the ones that reference a capability.
|
|
63
|
+
*
|
|
50
64
|
* Get an intelligent field by its supplied ID
|
|
51
65
|
*
|
|
52
66
|
* @param {string} fieldReferenceId - The reference ID of the intelligent field to get. All other entity ID fields are inferred from the request.
|
|
@@ -58,6 +72,8 @@ export declare class IntelligentFieldsClient {
|
|
|
58
72
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
59
73
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
60
74
|
* @throws {@link MavenAGI.ServerError}
|
|
75
|
+
* @throws {@link errors.MavenAGIError}
|
|
76
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
61
77
|
*
|
|
62
78
|
* @example
|
|
63
79
|
* await client.intelligentFields.get("ticket-priority")
|
|
@@ -65,7 +81,12 @@ export declare class IntelligentFieldsClient {
|
|
|
65
81
|
get(fieldReferenceId: string, request?: MavenAGI.IntelligentFieldGetRequest, requestOptions?: IntelligentFieldsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.IntelligentFieldDetailResponse>;
|
|
66
82
|
private __get;
|
|
67
83
|
/**
|
|
68
|
-
*
|
|
84
|
+
* Update the mutable properties of an intelligent field. Only the properties present in
|
|
85
|
+
* the request body are changed.
|
|
86
|
+
*
|
|
87
|
+
* This is also how a field is activated and deactivated: set `status` to `ACTIVE` to
|
|
88
|
+
* start evaluating it, or `INACTIVE` to stop. `name`, `entityType`, and `validationType`
|
|
89
|
+
* cannot be changed after creation.
|
|
69
90
|
*
|
|
70
91
|
* @param {string} fieldReferenceId - The reference ID of the intelligent field to patch.
|
|
71
92
|
* @param {MavenAGI.IntelligentFieldPatchRequest} request
|
|
@@ -76,6 +97,8 @@ export declare class IntelligentFieldsClient {
|
|
|
76
97
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
77
98
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
78
99
|
* @throws {@link MavenAGI.ServerError}
|
|
100
|
+
* @throws {@link errors.MavenAGIError}
|
|
101
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
79
102
|
*
|
|
80
103
|
* @example
|
|
81
104
|
* await client.intelligentFields.patch("ticket-priority", {
|
|
@@ -90,6 +113,11 @@ export declare class IntelligentFieldsClient {
|
|
|
90
113
|
patch(fieldReferenceId: string, request?: MavenAGI.IntelligentFieldPatchRequest, requestOptions?: IntelligentFieldsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.IntelligentFieldResponse>;
|
|
91
114
|
private __patch;
|
|
92
115
|
/**
|
|
116
|
+
* @deprecated
|
|
117
|
+
*
|
|
118
|
+
* Deprecated. Use `DELETE /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which
|
|
119
|
+
* deletes any kind of capability the same way. That endpoint returns no body.
|
|
120
|
+
*
|
|
93
121
|
* Soft delete an intelligent field. Only INACTIVE fields can be deleted.
|
|
94
122
|
*
|
|
95
123
|
* Deleted fields are excluded from search results but can still be retrieved by ID.
|
|
@@ -107,6 +135,8 @@ export declare class IntelligentFieldsClient {
|
|
|
107
135
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
108
136
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
109
137
|
* @throws {@link MavenAGI.ServerError}
|
|
138
|
+
* @throws {@link errors.MavenAGIError}
|
|
139
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
110
140
|
*
|
|
111
141
|
* @example
|
|
112
142
|
* await client.intelligentFields.delete("ticket-priority")
|
|
@@ -114,7 +144,12 @@ export declare class IntelligentFieldsClient {
|
|
|
114
144
|
delete(fieldReferenceId: string, request?: MavenAGI.IntelligentFieldDeleteRequest, requestOptions?: IntelligentFieldsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.IntelligentFieldResponse>;
|
|
115
145
|
private __delete;
|
|
116
146
|
/**
|
|
117
|
-
* Search
|
|
147
|
+
* Search the values that have been computed for intelligent fields, across entities.
|
|
148
|
+
* Supports filtering by properties of the field, by target entity, and by when the
|
|
149
|
+
* value was computed.
|
|
150
|
+
*
|
|
151
|
+
* Values only exist for fields that were ACTIVE when the entity was evaluated, so a
|
|
152
|
+
* newly activated field returns nothing until evaluation has run.
|
|
118
153
|
*
|
|
119
154
|
* @param {MavenAGI.IntelligentFieldValueSearchRequest} request
|
|
120
155
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -124,6 +159,8 @@ export declare class IntelligentFieldsClient {
|
|
|
124
159
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
125
160
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
126
161
|
* @throws {@link MavenAGI.ServerError}
|
|
162
|
+
* @throws {@link errors.MavenAGIError}
|
|
163
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
127
164
|
*
|
|
128
165
|
* @example
|
|
129
166
|
* await client.intelligentFields.searchValues({
|
|
@@ -47,6 +47,7 @@ exports.IntelligentFieldsClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -57,7 +58,12 @@ class IntelligentFieldsClient {
|
|
|
57
58
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
|
-
* Create a new intelligent field
|
|
61
|
+
* Create a new intelligent field, or replace it if one already exists with the same
|
|
62
|
+
* `fieldId.referenceId`. Intelligent fields hold LLM-generated values computed for
|
|
63
|
+
* entities such as conversations.
|
|
64
|
+
*
|
|
65
|
+
* New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
66
|
+
* with the patch endpoint. `definition` is limited to 5,000 characters.
|
|
61
67
|
*
|
|
62
68
|
* @param {MavenAGI.IntelligentFieldRequest} request
|
|
63
69
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -67,6 +73,8 @@ class IntelligentFieldsClient {
|
|
|
67
73
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
68
74
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
69
75
|
* @throws {@link MavenAGI.ServerError}
|
|
76
|
+
* @throws {@link errors.MavenAGIError}
|
|
77
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
70
78
|
*
|
|
71
79
|
* @example
|
|
72
80
|
* await client.intelligentFields.createOrUpdate({
|
|
@@ -79,7 +87,8 @@ class IntelligentFieldsClient {
|
|
|
79
87
|
* validationType: "STRING",
|
|
80
88
|
* enumOptions: [{
|
|
81
89
|
* value: "HIGH",
|
|
82
|
-
* label: "High Priority"
|
|
90
|
+
* label: "High Priority",
|
|
91
|
+
* description: "The customer is blocked or reports an outage."
|
|
83
92
|
* }, {
|
|
84
93
|
* value: "MEDIUM",
|
|
85
94
|
* label: "Medium Priority"
|
|
@@ -108,7 +117,7 @@ class IntelligentFieldsClient {
|
|
|
108
117
|
contentType: "application/json",
|
|
109
118
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
110
119
|
requestType: "json",
|
|
111
|
-
body: serializers.IntelligentFieldRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
120
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.IntelligentFieldRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
112
121
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
113
122
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
114
123
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -175,6 +184,12 @@ class IntelligentFieldsClient {
|
|
|
175
184
|
});
|
|
176
185
|
}
|
|
177
186
|
/**
|
|
187
|
+
* @deprecated
|
|
188
|
+
*
|
|
189
|
+
* Deprecated. Use `GET /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which reads any
|
|
190
|
+
* kind of capability the same way. It does not carry `referencingCharters`; search
|
|
191
|
+
* charters to find the ones that reference a capability.
|
|
192
|
+
*
|
|
178
193
|
* Get an intelligent field by its supplied ID
|
|
179
194
|
*
|
|
180
195
|
* @param {string} fieldReferenceId - The reference ID of the intelligent field to get. All other entity ID fields are inferred from the request.
|
|
@@ -186,6 +201,8 @@ class IntelligentFieldsClient {
|
|
|
186
201
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
187
202
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
188
203
|
* @throws {@link MavenAGI.ServerError}
|
|
204
|
+
* @throws {@link errors.MavenAGIError}
|
|
205
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
189
206
|
*
|
|
190
207
|
* @example
|
|
191
208
|
* await client.intelligentFields.get("ticket-priority")
|
|
@@ -196,9 +213,11 @@ class IntelligentFieldsClient {
|
|
|
196
213
|
__get(fieldReferenceId_1) {
|
|
197
214
|
return __awaiter(this, arguments, void 0, function* (fieldReferenceId, request = {}, requestOptions) {
|
|
198
215
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
199
|
-
const { appId } = request;
|
|
216
|
+
const { appId, variantReferenceId, variantAppId } = request;
|
|
200
217
|
const _queryParams = {
|
|
201
218
|
appId,
|
|
219
|
+
variantReferenceId,
|
|
220
|
+
variantAppId,
|
|
202
221
|
};
|
|
203
222
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
204
223
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
@@ -280,7 +299,12 @@ class IntelligentFieldsClient {
|
|
|
280
299
|
});
|
|
281
300
|
}
|
|
282
301
|
/**
|
|
283
|
-
*
|
|
302
|
+
* Update the mutable properties of an intelligent field. Only the properties present in
|
|
303
|
+
* the request body are changed.
|
|
304
|
+
*
|
|
305
|
+
* This is also how a field is activated and deactivated: set `status` to `ACTIVE` to
|
|
306
|
+
* start evaluating it, or `INACTIVE` to stop. `name`, `entityType`, and `validationType`
|
|
307
|
+
* cannot be changed after creation.
|
|
284
308
|
*
|
|
285
309
|
* @param {string} fieldReferenceId - The reference ID of the intelligent field to patch.
|
|
286
310
|
* @param {MavenAGI.IntelligentFieldPatchRequest} request
|
|
@@ -291,6 +315,8 @@ class IntelligentFieldsClient {
|
|
|
291
315
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
292
316
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
293
317
|
* @throws {@link MavenAGI.ServerError}
|
|
318
|
+
* @throws {@link errors.MavenAGIError}
|
|
319
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
294
320
|
*
|
|
295
321
|
* @example
|
|
296
322
|
* await client.intelligentFields.patch("ticket-priority", {
|
|
@@ -320,7 +346,7 @@ class IntelligentFieldsClient {
|
|
|
320
346
|
contentType: "application/merge-patch+json",
|
|
321
347
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
322
348
|
requestType: "json",
|
|
323
|
-
body: serializers.IntelligentFieldPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
349
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.IntelligentFieldPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
324
350
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
325
351
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
326
352
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -387,6 +413,11 @@ class IntelligentFieldsClient {
|
|
|
387
413
|
});
|
|
388
414
|
}
|
|
389
415
|
/**
|
|
416
|
+
* @deprecated
|
|
417
|
+
*
|
|
418
|
+
* Deprecated. Use `DELETE /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which
|
|
419
|
+
* deletes any kind of capability the same way. That endpoint returns no body.
|
|
420
|
+
*
|
|
390
421
|
* Soft delete an intelligent field. Only INACTIVE fields can be deleted.
|
|
391
422
|
*
|
|
392
423
|
* Deleted fields are excluded from search results but can still be retrieved by ID.
|
|
@@ -404,6 +435,8 @@ class IntelligentFieldsClient {
|
|
|
404
435
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
405
436
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
406
437
|
* @throws {@link MavenAGI.ServerError}
|
|
438
|
+
* @throws {@link errors.MavenAGIError}
|
|
439
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
407
440
|
*
|
|
408
441
|
* @example
|
|
409
442
|
* await client.intelligentFields.delete("ticket-priority")
|
|
@@ -500,7 +533,12 @@ class IntelligentFieldsClient {
|
|
|
500
533
|
});
|
|
501
534
|
}
|
|
502
535
|
/**
|
|
503
|
-
* Search
|
|
536
|
+
* Search the values that have been computed for intelligent fields, across entities.
|
|
537
|
+
* Supports filtering by properties of the field, by target entity, and by when the
|
|
538
|
+
* value was computed.
|
|
539
|
+
*
|
|
540
|
+
* Values only exist for fields that were ACTIVE when the entity was evaluated, so a
|
|
541
|
+
* newly activated field returns nothing until evaluation has run.
|
|
504
542
|
*
|
|
505
543
|
* @param {MavenAGI.IntelligentFieldValueSearchRequest} request
|
|
506
544
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -510,6 +548,8 @@ class IntelligentFieldsClient {
|
|
|
510
548
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
511
549
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
512
550
|
* @throws {@link MavenAGI.ServerError}
|
|
551
|
+
* @throws {@link errors.MavenAGIError}
|
|
552
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
513
553
|
*
|
|
514
554
|
* @example
|
|
515
555
|
* await client.intelligentFields.searchValues({
|
|
@@ -555,9 +595,9 @@ class IntelligentFieldsClient {
|
|
|
555
595
|
contentType: "application/json",
|
|
556
596
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
557
597
|
requestType: "json",
|
|
558
|
-
body: serializers.IntelligentFieldValueSearchRequest.jsonOrThrow(request, {
|
|
598
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.IntelligentFieldValueSearchRequest.jsonOrThrow(request, {
|
|
559
599
|
unrecognizedObjectKeys: "strip",
|
|
560
|
-
}),
|
|
600
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
561
601
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
562
602
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
563
603
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export interface IntelligentFieldDeleteRequest {
|
|
6
6
|
/** The App ID of the intelligent field to delete. If not provided, the ID of the calling app will be used. */
|
|
7
7
|
appId?: string;
|
|
8
|
-
/** The agent variant reference ID
|
|
8
|
+
/** The agent variant to stage the delete in, by reference ID. Required on an agent with versioned intelligent fields; a delete that omits it there is rejected with reason `VARIANT_REQUIRED`. */
|
|
9
9
|
variantReferenceId?: string;
|
|
10
10
|
/** The App ID of the agent variant reference for the intelligent field to delete. If not provided, the ID of the calling app will be used. */
|
|
11
11
|
variantAppId?: string;
|
|
@@ -5,4 +5,8 @@
|
|
|
5
5
|
export interface IntelligentFieldGetRequest {
|
|
6
6
|
/** The App ID of the intelligent field to get. If not provided the ID of the calling app will be used. */
|
|
7
7
|
appId?: string;
|
|
8
|
+
/** The agent variant reference ID to resolve the intelligent field's version through. Required on an agent with versioned intelligent fields; a request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise, if omitted, the agent's only variant is used. */
|
|
9
|
+
variantReferenceId?: string;
|
|
10
|
+
/** The App ID of the agent variant reference. If not provided, the ID of the calling app will be used. */
|
|
11
|
+
variantAppId?: string;
|
|
8
12
|
}
|
|
@@ -13,14 +13,23 @@ import type * as MavenAGI from "../../../../index";
|
|
|
13
13
|
export interface IntelligentFieldPatchRequest {
|
|
14
14
|
/** The App ID of the intelligent field to update. If not provided the ID of the calling app will be used. */
|
|
15
15
|
appId?: string;
|
|
16
|
-
/** The definition of the intelligent field. This text will be influential in guiding the LLM to produce the desired results. */
|
|
16
|
+
/** The definition of the intelligent field. This text will be influential in guiding the LLM to produce the desired results. Limited to 5,000 characters. */
|
|
17
17
|
definition?: string;
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* The lifecycle state for whether this field is evaluated. Use ACTIVE to start
|
|
20
|
+
* evaluating the field and INACTIVE to stop.
|
|
21
|
+
*
|
|
22
|
+
* Each agent has a limit on how many fields may be ACTIVE at once; activating a
|
|
23
|
+
* field beyond that limit is rejected. A field referenced by an active precondition
|
|
24
|
+
* cannot be deactivated.
|
|
25
|
+
*/
|
|
26
|
+
status?: MavenAGI.CapabilityStatus;
|
|
20
27
|
/** A plain text description of the intelligent field. */
|
|
21
28
|
description?: string;
|
|
22
|
-
/** Updated enum options for
|
|
29
|
+
/** Updated enum options for fields that constrain the LLM to a finite set. Omit to leave unchanged. The new list must be a superset of the existing options (add-only; removals are rejected). */
|
|
23
30
|
enumOptions?: MavenAGI.EnumOption[];
|
|
24
|
-
/** ID
|
|
31
|
+
/** The agent variant to stage this patch in, by reference ID. Its owning app is `variantAppId`. Required on an agent with versioned intelligent fields; a patch that omits it there is rejected with reason `VARIANT_REQUIRED`. */
|
|
25
32
|
variantId?: MavenAGI.EntityIdBase;
|
|
33
|
+
/** The App ID of the agent variant named by `variantId`. If not provided, the ID of the calling app will be used — name the owning app to patch in a variant the caller does not own, as the platform's own seeded variants are. */
|
|
34
|
+
variantAppId?: string;
|
|
26
35
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* One allowed choice for a field whose value should come from a finite set. Use with
|
|
3
|
+
* MULTI_SELECT to constrain a list of choices, or with STRING/MULTILINE/NUMBER to make
|
|
4
|
+
* the field a single select.
|
|
3
5
|
*/
|
|
4
6
|
export interface EnumOption {
|
|
5
7
|
/** The value of the option */
|
|
6
8
|
value: string;
|
|
7
9
|
/** Display label for the option */
|
|
8
10
|
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Instructions that tell the LLM when to pick this option. Up to 1200 characters. On a
|
|
13
|
+
* patch, an option sent without a description has its description cleared.
|
|
14
|
+
*/
|
|
15
|
+
description?: string;
|
|
9
16
|
}
|
|
@@ -2,6 +2,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
export interface IntelligentFieldBase extends MavenAGI.IntelligentFieldCore {
|
|
3
3
|
/** Target entity type for evaluation. Only CONVERSATION is supported at this time. The backend will return an error for other types. */
|
|
4
4
|
entityType: MavenAGI.EntityType;
|
|
5
|
-
/** ID of the agent variant
|
|
5
|
+
/** ID of the agent variant this field belongs to, if applicable */
|
|
6
6
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
7
7
|
}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
* field's own resource representation (IntelligentFieldBase) and a single staged edit's
|
|
5
|
-
* payload (IntelligentFieldPayload) -- kept as one type so the two don't drift out of sync on
|
|
6
|
-
* what "the same" field content looks like.
|
|
3
|
+
* The content of an intelligent field -- what it is called, and what the LLM should produce for it.
|
|
7
4
|
*/
|
|
8
5
|
export interface IntelligentFieldCore {
|
|
9
|
-
/** Display name for the intelligent field */
|
|
10
|
-
name: string;
|
|
11
|
-
/** A plain text description of the intelligent field. */
|
|
12
|
-
description?: string;
|
|
13
6
|
/**
|
|
14
|
-
*
|
|
7
|
+
* The type of value this field holds. It constrains the schema the LLM is asked to fill
|
|
8
|
+
* and the JSON type of the computed `value`.
|
|
15
9
|
*
|
|
16
|
-
* - STRING / MULTILINE: single string
|
|
17
|
-
* - MULTI_SELECT:
|
|
18
|
-
* - BOOLEAN:
|
|
19
|
-
* - NUMBER:
|
|
10
|
+
* - STRING / MULTILINE: a single string
|
|
11
|
+
* - MULTI_SELECT: a list of strings
|
|
12
|
+
* - BOOLEAN: `true` or `false`
|
|
13
|
+
* - NUMBER: a number
|
|
20
14
|
*
|
|
21
|
-
*
|
|
15
|
+
* For a single select, use STRING or NUMBER together with `enumOptions`.
|
|
22
16
|
*/
|
|
23
17
|
validationType: MavenAGI.IntelligentFieldType;
|
|
24
18
|
/** Definition used by the LLM when generating this field's value */
|
|
25
19
|
definition: string;
|
|
26
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The finite set of values this field may take. Omit to let the LLM produce any value of
|
|
22
|
+
* the `validationType`. Options may be added later with the patch endpoint, but not removed.
|
|
23
|
+
*/
|
|
27
24
|
enumOptions?: MavenAGI.EnumOption[];
|
|
28
25
|
}
|
|
@@ -11,7 +11,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
11
11
|
* },
|
|
12
12
|
* name: "Ticket Priority",
|
|
13
13
|
* description: "The priority of the conversation based on urgency",
|
|
14
|
-
* status: MavenAGI.
|
|
14
|
+
* status: MavenAGI.CapabilityStatus.Inactive,
|
|
15
15
|
* entityType: MavenAGI.EntityType.Conversation,
|
|
16
16
|
* validationType: MavenAGI.IntelligentFieldType.String,
|
|
17
17
|
* enumOptions: [{
|
|
@@ -31,6 +31,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
31
31
|
* }
|
|
32
32
|
*/
|
|
33
33
|
export interface IntelligentFieldDetailResponse extends MavenAGI.IntelligentFieldResponse {
|
|
34
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Charters whose precondition references this intelligent field. A field referenced by
|
|
36
|
+
* an active precondition cannot be deactivated.
|
|
37
|
+
*/
|
|
35
38
|
referencingCharters?: MavenAGI.CharterSummary[];
|
|
36
39
|
}
|
|
@@ -11,7 +11,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
11
11
|
* validationType: MavenAGI.IntelligentFieldType.String,
|
|
12
12
|
* enumOptions: [{
|
|
13
13
|
* value: "HIGH",
|
|
14
|
-
* label: "High Priority"
|
|
14
|
+
* label: "High Priority",
|
|
15
|
+
* description: "The customer is blocked or reports an outage."
|
|
15
16
|
* }, {
|
|
16
17
|
* value: "MEDIUM",
|
|
17
18
|
* label: "Medium Priority"
|
|
@@ -23,6 +24,13 @@ import type * as MavenAGI from "../../../index";
|
|
|
23
24
|
* }
|
|
24
25
|
*/
|
|
25
26
|
export interface IntelligentFieldRequest extends MavenAGI.IntelligentFieldBase {
|
|
26
|
-
/**
|
|
27
|
+
/** Display name for the intelligent field */
|
|
28
|
+
name: string;
|
|
29
|
+
/** A plain text description of the intelligent field. */
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
* ID that uniquely identifies this intelligent field. `referenceId` is supplied by the
|
|
33
|
+
* caller and is how the field is addressed on every other endpoint.
|
|
34
|
+
*/
|
|
27
35
|
fieldId: MavenAGI.EntityIdBase;
|
|
28
36
|
}
|
|
@@ -11,7 +11,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
11
11
|
* },
|
|
12
12
|
* name: "Ticket Priority",
|
|
13
13
|
* description: "The priority of the conversation based on urgency",
|
|
14
|
-
* status: MavenAGI.
|
|
14
|
+
* status: MavenAGI.CapabilityStatus.Inactive,
|
|
15
15
|
* entityType: MavenAGI.EntityType.Conversation,
|
|
16
16
|
* validationType: MavenAGI.IntelligentFieldType.String,
|
|
17
17
|
* enumOptions: [{
|
|
@@ -29,13 +29,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
29
29
|
* updatedAt: new Date("2024-01-15T10:30:00.000Z")
|
|
30
30
|
* }
|
|
31
31
|
*/
|
|
32
|
-
export interface IntelligentFieldResponse extends MavenAGI.IntelligentFieldBase {
|
|
32
|
+
export interface IntelligentFieldResponse extends MavenAGI.IntelligentFieldBase, MavenAGI.CapabilityBase {
|
|
33
33
|
/** ID that uniquely identifies this intelligent field */
|
|
34
34
|
fieldId: MavenAGI.EntityId;
|
|
35
|
-
/** Lifecycle state for whether this field is evaluated by workflows. Defaults to INACTIVE on creation. Use PATCH to activate. */
|
|
36
|
-
status: MavenAGI.IntelligentFieldStatus;
|
|
37
|
-
/** The date and time the intelligent field was created */
|
|
38
|
-
createdAt?: Date;
|
|
39
|
-
/** The date and time the intelligent field was last updated */
|
|
40
|
-
updatedAt?: Date;
|
|
41
35
|
}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
/** Result type hint used for schema generation, UI, and validation */
|
|
2
2
|
export declare const IntelligentFieldType: {
|
|
3
|
+
/**
|
|
4
|
+
* A single short string value. */
|
|
3
5
|
readonly String: "STRING";
|
|
6
|
+
/**
|
|
7
|
+
* A single string value expected to run to several lines, such as a summary. */
|
|
4
8
|
readonly Multiline: "MULTILINE";
|
|
9
|
+
/**
|
|
10
|
+
* A list of string values, normally paired with `enumOptions` to constrain the choices. */
|
|
5
11
|
readonly MultiSelect: "MULTI_SELECT";
|
|
12
|
+
/**
|
|
13
|
+
* A true/false value. */
|
|
6
14
|
readonly Boolean: "BOOLEAN";
|
|
15
|
+
/**
|
|
16
|
+
* A numeric value. */
|
|
7
17
|
readonly Number: "NUMBER";
|
|
8
18
|
};
|
|
9
19
|
export type IntelligentFieldType = (typeof IntelligentFieldType)[keyof typeof IntelligentFieldType] | string;
|
|
@@ -4,9 +4,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.IntelligentFieldType = void 0;
|
|
5
5
|
/** Result type hint used for schema generation, UI, and validation */
|
|
6
6
|
exports.IntelligentFieldType = {
|
|
7
|
+
/**
|
|
8
|
+
* A single short string value. */
|
|
7
9
|
String: "STRING",
|
|
10
|
+
/**
|
|
11
|
+
* A single string value expected to run to several lines, such as a summary. */
|
|
8
12
|
Multiline: "MULTILINE",
|
|
13
|
+
/**
|
|
14
|
+
* A list of string values, normally paired with `enumOptions` to constrain the choices. */
|
|
9
15
|
MultiSelect: "MULTI_SELECT",
|
|
16
|
+
/**
|
|
17
|
+
* A true/false value. */
|
|
10
18
|
Boolean: "BOOLEAN",
|
|
19
|
+
/**
|
|
20
|
+
* A numeric value. */
|
|
11
21
|
Number: "NUMBER",
|
|
12
22
|
};
|
|
@@ -4,7 +4,6 @@ export * from "./IntelligentFieldCore";
|
|
|
4
4
|
export * from "./IntelligentFieldDetailResponse";
|
|
5
5
|
export * from "./IntelligentFieldRequest";
|
|
6
6
|
export * from "./IntelligentFieldResponse";
|
|
7
|
-
export * from "./IntelligentFieldStatus";
|
|
8
7
|
export * from "./IntelligentFieldType";
|
|
9
8
|
export * from "./IntelligentFieldValueEntityFilter";
|
|
10
9
|
export * from "./IntelligentFieldValueFieldFilter";
|
|
@@ -20,7 +20,6 @@ __exportStar(require("./IntelligentFieldCore"), exports);
|
|
|
20
20
|
__exportStar(require("./IntelligentFieldDetailResponse"), exports);
|
|
21
21
|
__exportStar(require("./IntelligentFieldRequest"), exports);
|
|
22
22
|
__exportStar(require("./IntelligentFieldResponse"), exports);
|
|
23
|
-
__exportStar(require("./IntelligentFieldStatus"), exports);
|
|
24
23
|
__exportStar(require("./IntelligentFieldType"), exports);
|
|
25
24
|
__exportStar(require("./IntelligentFieldValueEntityFilter"), exports);
|
|
26
25
|
__exportStar(require("./IntelligentFieldValueFieldFilter"), exports);
|