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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Filters combine with AND: a charter must match every filter given. Within one filter, a
|
|
4
|
+
* charter matches if it references any of the listed IDs. An empty list is the same as
|
|
5
|
+
* omitting the filter.
|
|
6
|
+
*/
|
|
7
|
+
export interface CharterSearchFilter {
|
|
8
|
+
/** Only return charters referencing these actions. At most 50. */
|
|
9
|
+
actionIds?: MavenAGI.EntityId[];
|
|
10
|
+
/** Only return charters referencing these knowledge bases. At most 50. */
|
|
11
|
+
knowledgeBaseIds?: MavenAGI.EntityId[];
|
|
12
|
+
/**
|
|
13
|
+
* Only return charters whose precondition references these intelligent fields. At most 50.
|
|
14
|
+
* A charter reaches an intelligent field through its precondition, not by referencing it
|
|
15
|
+
* directly the way it does an action or a knowledge base.
|
|
16
|
+
*/
|
|
17
|
+
intelligentFieldIds?: MavenAGI.EntityId[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* number: 0,
|
|
6
|
+
* size: 20,
|
|
7
|
+
* totalElements: 1,
|
|
8
|
+
* totalPages: 1,
|
|
9
|
+
* charters: [{
|
|
10
|
+
* charterId: {
|
|
11
|
+
* referenceId: "cancellation-flow",
|
|
12
|
+
* appId: "support-app",
|
|
13
|
+
* organizationId: "acme",
|
|
14
|
+
* agentId: "support",
|
|
15
|
+
* type: MavenAGI.EntityType.Charter
|
|
16
|
+
* },
|
|
17
|
+
* name: "Cancellation Flow",
|
|
18
|
+
* precondition: {
|
|
19
|
+
* preconditionType: "conversation",
|
|
20
|
+
* value: {
|
|
21
|
+
* conversationPreconditionType: "tags",
|
|
22
|
+
* tags: new Set(["cancellation"])
|
|
23
|
+
* }
|
|
24
|
+
* },
|
|
25
|
+
* status: MavenAGI.CharterStatus.Active,
|
|
26
|
+
* type: MavenAGI.CharterType.Standard,
|
|
27
|
+
* childrenExclusionPolicy: MavenAGI.CharterChildrenExclusionPolicy.Default,
|
|
28
|
+
* createdAt: new Date("2025-01-01T00:00:00.000Z"),
|
|
29
|
+
* updatedAt: new Date("2025-01-15T12:30:00.000Z")
|
|
30
|
+
* }]
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
export interface CharterSearchResponse extends MavenAGI.Page {
|
|
34
|
+
/** Charters matching the search criteria. */
|
|
35
|
+
charters: MavenAGI.CharterSummary[];
|
|
36
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The lifecycle status of a charter.
|
|
3
3
|
*
|
|
4
|
-
* - ACTIVE: The charter is active and will be evaluated
|
|
4
|
+
* - ACTIVE: The charter is active and will be evaluated on every round. The caller is responsible
|
|
5
5
|
* for ensuring ancestor charters are also ACTIVE if the full subtree should be reachable.
|
|
6
6
|
* - INACTIVE: The charter is inactive. It retains its rank among siblings and its descendants retain their statuses.
|
|
7
|
-
* However, it and its descendants are skipped during runtime
|
|
7
|
+
* However, it and its descendants are skipped during runtime evaluation.
|
|
8
8
|
* - DELETED: The charter has been soft deleted. Excluded from searches and cannot be modified.
|
|
9
9
|
* Deleting a charter cascades to all descendants (they are also soft-deleted).
|
|
10
10
|
*/
|
|
@@ -5,10 +5,10 @@ exports.CharterStatus = void 0;
|
|
|
5
5
|
/**
|
|
6
6
|
* The lifecycle status of a charter.
|
|
7
7
|
*
|
|
8
|
-
* - ACTIVE: The charter is active and will be evaluated
|
|
8
|
+
* - ACTIVE: The charter is active and will be evaluated on every round. The caller is responsible
|
|
9
9
|
* for ensuring ancestor charters are also ACTIVE if the full subtree should be reachable.
|
|
10
10
|
* - INACTIVE: The charter is inactive. It retains its rank among siblings and its descendants retain their statuses.
|
|
11
|
-
* However, it and its descendants are skipped during runtime
|
|
11
|
+
* However, it and its descendants are skipped during runtime evaluation.
|
|
12
12
|
* - DELETED: The charter has been soft deleted. Excluded from searches and cannot be modified.
|
|
13
13
|
* Deleting a charter cascades to all descendants (they are also soft-deleted).
|
|
14
14
|
*/
|
|
@@ -8,15 +8,7 @@ export interface CharterSummary {
|
|
|
8
8
|
charterId: MavenAGI.EntityId;
|
|
9
9
|
/** The display name of the charter. */
|
|
10
10
|
name: string;
|
|
11
|
-
/**
|
|
12
|
-
* The segment backing this charter's rule. An implementation detail of `precondition`;
|
|
13
|
-
* read that instead.
|
|
14
|
-
*/
|
|
15
|
-
segmentSummary: MavenAGI.SegmentSummary | null;
|
|
16
|
-
/**
|
|
17
|
-
* The rule controlling when this charter applies, read from the charter's backing
|
|
18
|
-
* segment. Null means wildcard (always matches).
|
|
19
|
-
*/
|
|
11
|
+
/** The rule controlling when this charter applies. Null means wildcard (always matches). */
|
|
20
12
|
precondition: MavenAGI.PreconditionResponse | null;
|
|
21
13
|
/** The ID of the parent charter. Null for root-level charters. */
|
|
22
14
|
parentCharterId: MavenAGI.EntityId | null;
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
* verbatim, without invoking the LLM. The charter cannot have children, and
|
|
8
8
|
* its manual must be non-blank — the manual is the response.
|
|
9
9
|
*
|
|
10
|
-
* A STRICT_RETURN charter references nothing: both `
|
|
10
|
+
* A STRICT_RETURN charter references nothing: both `knowledgeBases` and
|
|
11
11
|
* `actionIds` must be empty, and a create or update supplying either is
|
|
12
|
-
* rejected. With no LLM in the
|
|
12
|
+
* rejected. With no LLM in the round there is nothing to consult a knowledge
|
|
13
13
|
* base or to choose an action.
|
|
14
14
|
*
|
|
15
15
|
* A STRICT_RETURN charter is matched exactly like any other charter — same
|
|
16
16
|
* ordering and mutual-exclusion rules. The only difference is what a match
|
|
17
|
-
* does: the first matched STRICT_RETURN charter takes over the
|
|
17
|
+
* does: the first matched STRICT_RETURN charter takes over the round, so its
|
|
18
18
|
* manual is the whole response and every other matched charter is ignored.
|
|
19
|
-
* (At most one applies per
|
|
19
|
+
* (At most one applies per round.)
|
|
20
20
|
*/
|
|
21
21
|
export declare const CharterType: {
|
|
22
22
|
readonly Standard: "STANDARD";
|
|
@@ -11,16 +11,16 @@ exports.CharterType = void 0;
|
|
|
11
11
|
* verbatim, without invoking the LLM. The charter cannot have children, and
|
|
12
12
|
* its manual must be non-blank — the manual is the response.
|
|
13
13
|
*
|
|
14
|
-
* A STRICT_RETURN charter references nothing: both `
|
|
14
|
+
* A STRICT_RETURN charter references nothing: both `knowledgeBases` and
|
|
15
15
|
* `actionIds` must be empty, and a create or update supplying either is
|
|
16
|
-
* rejected. With no LLM in the
|
|
16
|
+
* rejected. With no LLM in the round there is nothing to consult a knowledge
|
|
17
17
|
* base or to choose an action.
|
|
18
18
|
*
|
|
19
19
|
* A STRICT_RETURN charter is matched exactly like any other charter — same
|
|
20
20
|
* ordering and mutual-exclusion rules. The only difference is what a match
|
|
21
|
-
* does: the first matched STRICT_RETURN charter takes over the
|
|
21
|
+
* does: the first matched STRICT_RETURN charter takes over the round, so its
|
|
22
22
|
* manual is the whole response and every other matched charter is ignored.
|
|
23
|
-
* (At most one applies per
|
|
23
|
+
* (At most one applies per round.)
|
|
24
24
|
*/
|
|
25
25
|
exports.CharterType = {
|
|
26
26
|
Standard: "STANDARD",
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
export * from "./CharterAncestorsResponse";
|
|
2
|
+
export * from "./CharterBase";
|
|
1
3
|
export * from "./CharterChildrenExclusionPolicy";
|
|
4
|
+
export * from "./CharterChildrenGroup";
|
|
5
|
+
export * from "./CharterContent";
|
|
6
|
+
export * from "./CharterKnowledgeBaseReference";
|
|
7
|
+
export * from "./CharterListChildrenRequest";
|
|
8
|
+
export * from "./CharterListChildrenResponse";
|
|
9
|
+
export * from "./CharterPatchReferences";
|
|
10
|
+
export * from "./CharterReferences";
|
|
11
|
+
export * from "./CharterRequest";
|
|
12
|
+
export * from "./CharterResponse";
|
|
13
|
+
export * from "./CharterSearchField";
|
|
14
|
+
export * from "./CharterSearchFilter";
|
|
15
|
+
export * from "./CharterSearchRequest";
|
|
16
|
+
export * from "./CharterSearchResponse";
|
|
2
17
|
export * from "./CharterStatus";
|
|
3
18
|
export * from "./CharterSummary";
|
|
4
19
|
export * from "./CharterType";
|
|
@@ -14,7 +14,22 @@ 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("./CharterAncestorsResponse"), exports);
|
|
18
|
+
__exportStar(require("./CharterBase"), exports);
|
|
17
19
|
__exportStar(require("./CharterChildrenExclusionPolicy"), exports);
|
|
20
|
+
__exportStar(require("./CharterChildrenGroup"), exports);
|
|
21
|
+
__exportStar(require("./CharterContent"), exports);
|
|
22
|
+
__exportStar(require("./CharterKnowledgeBaseReference"), exports);
|
|
23
|
+
__exportStar(require("./CharterListChildrenRequest"), exports);
|
|
24
|
+
__exportStar(require("./CharterListChildrenResponse"), exports);
|
|
25
|
+
__exportStar(require("./CharterPatchReferences"), exports);
|
|
26
|
+
__exportStar(require("./CharterReferences"), exports);
|
|
27
|
+
__exportStar(require("./CharterRequest"), exports);
|
|
28
|
+
__exportStar(require("./CharterResponse"), exports);
|
|
29
|
+
__exportStar(require("./CharterSearchField"), exports);
|
|
30
|
+
__exportStar(require("./CharterSearchFilter"), exports);
|
|
31
|
+
__exportStar(require("./CharterSearchRequest"), exports);
|
|
32
|
+
__exportStar(require("./CharterSearchResponse"), exports);
|
|
18
33
|
__exportStar(require("./CharterStatus"), exports);
|
|
19
34
|
__exportStar(require("./CharterSummary"), exports);
|
|
20
35
|
__exportStar(require("./CharterType"), exports);
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
|
|
|
2
2
|
import * as errors from "../../../../errors/index";
|
|
3
3
|
import type * as MavenAGI from "../../../index";
|
|
4
4
|
export declare class BadRequestError extends errors.MavenAGIError {
|
|
5
|
+
readonly body: MavenAGI.ErrorMessage;
|
|
5
6
|
constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class BadRequestError extends errors.MavenAGIError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "BadRequestError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.BadRequestError = BadRequestError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
|
|
|
2
2
|
import * as errors from "../../../../errors/index";
|
|
3
3
|
import type * as MavenAGI from "../../../index";
|
|
4
4
|
export declare class NotFoundError extends errors.MavenAGIError {
|
|
5
|
+
readonly body: MavenAGI.ErrorMessage;
|
|
5
6
|
constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class NotFoundError extends errors.MavenAGIError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "NotFoundError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.NotFoundError = NotFoundError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
|
|
|
2
2
|
import * as errors from "../../../../errors/index";
|
|
3
3
|
import type * as MavenAGI from "../../../index";
|
|
4
4
|
export declare class PayloadTooLargeError extends errors.MavenAGIError {
|
|
5
|
+
readonly body: MavenAGI.ErrorMessage;
|
|
5
6
|
constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class PayloadTooLargeError extends errors.MavenAGIError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "PayloadTooLargeError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.PayloadTooLargeError = PayloadTooLargeError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
|
|
|
2
2
|
import * as errors from "../../../../errors/index";
|
|
3
3
|
import type * as MavenAGI from "../../../index";
|
|
4
4
|
export declare class ServerError extends errors.MavenAGIError {
|
|
5
|
+
readonly body: MavenAGI.ErrorMessage;
|
|
5
6
|
constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
|
|
|
2
2
|
import * as errors from "../../../../errors/index";
|
|
3
3
|
import type * as MavenAGI from "../../../index";
|
|
4
4
|
export declare class TooManyRequestsError extends errors.MavenAGIError {
|
|
5
|
+
readonly body: MavenAGI.ErrorMessage;
|
|
5
6
|
constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class TooManyRequestsError extends errors.MavenAGIError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "TooManyRequestsError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.TooManyRequestsError = TooManyRequestsError;
|
|
@@ -2,6 +2,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* createdAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
6
|
+
* updatedAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
7
|
+
* status: MavenAGI.CapabilityStatus.Active,
|
|
5
8
|
* actionId: {
|
|
6
9
|
* referenceId: "get-balance",
|
|
7
10
|
* appId: "my-billing-system",
|
|
@@ -37,7 +40,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
37
40
|
* deleted: false
|
|
38
41
|
* }
|
|
39
42
|
*/
|
|
40
|
-
export interface ActionResponse extends MavenAGI.
|
|
43
|
+
export interface ActionResponse extends MavenAGI.ActionProperties, MavenAGI.CapabilityBase {
|
|
41
44
|
/** ID that uniquely identifies this action */
|
|
42
45
|
actionId: MavenAGI.EntityId;
|
|
43
46
|
/**
|
|
@@ -46,6 +49,8 @@ export interface ActionResponse extends MavenAGI.ActionBase {
|
|
|
46
49
|
*/
|
|
47
50
|
instructions?: string;
|
|
48
51
|
/**
|
|
52
|
+
* Deprecated. Superseded by `status`, which says the same thing for every capability type.
|
|
53
|
+
*
|
|
49
54
|
* Determines whether the action is sent to the LLM as part of a conversation.
|
|
50
55
|
*
|
|
51
56
|
* - `ALWAYS`: The action is always available for use in conversations, textual relevance is not considered.
|
|
@@ -61,6 +66,10 @@ export interface ActionResponse extends MavenAGI.ActionBase {
|
|
|
61
66
|
segmentId?: MavenAGI.EntityId;
|
|
62
67
|
/** No longer populated. This field is always absent and will be removed in a future release. */
|
|
63
68
|
preconditionExplanation?: string;
|
|
64
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Deprecated. Superseded by `status`, where a deleted action is `DELETED`.
|
|
71
|
+
*
|
|
72
|
+
* Whether the action has been deleted. Deleted actions will not sent to the LLM nor returned in search results.
|
|
73
|
+
*/
|
|
65
74
|
deleted: boolean;
|
|
66
75
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** What prompts the assistant
|
|
1
|
+
/** What prompts the assistant response produced by an ask. Defaults to USER_MESSAGE when omitted. */
|
|
2
2
|
export declare const AskType: {
|
|
3
3
|
/**
|
|
4
4
|
* The default. Respond to a message the user sent; the user's words are in `text` (required). */
|
|
5
5
|
readonly UserMessage: "USER_MESSAGE";
|
|
6
6
|
/**
|
|
7
|
-
* The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first
|
|
7
|
+
* The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first round of a conversation. */
|
|
8
8
|
readonly Welcome: "WELCOME";
|
|
9
9
|
/**
|
|
10
10
|
* The agent proactively sends a message the user did not prompt. `text` is optional here; when provided it steers what the agent says (e.g. "tell the user to restart their machine") and is a directive to the agent, not the user's own words. */
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.AskType = void 0;
|
|
5
|
-
/** What prompts the assistant
|
|
5
|
+
/** What prompts the assistant response produced by an ask. Defaults to USER_MESSAGE when omitted. */
|
|
6
6
|
exports.AskType = {
|
|
7
7
|
/**
|
|
8
8
|
* The default. Respond to a message the user sent; the user's words are in `text` (required). */
|
|
9
9
|
UserMessage: "USER_MESSAGE",
|
|
10
10
|
/**
|
|
11
|
-
* The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first
|
|
11
|
+
* The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first round of a conversation. */
|
|
12
12
|
Welcome: "WELCOME",
|
|
13
13
|
/**
|
|
14
14
|
* The agent proactively sends a message the user did not prompt. `text` is optional here; when provided it steers what the agent says (e.g. "tell the user to restart their machine") and is a directive to the agent, not the user's own words. */
|
|
@@ -52,4 +52,10 @@ export interface BaseConversationResponse {
|
|
|
52
52
|
* it cannot be supplied when creating or updating a conversation.
|
|
53
53
|
*/
|
|
54
54
|
conversationMode?: MavenAGI.ConversationMode;
|
|
55
|
+
/**
|
|
56
|
+
* The agent variant this conversation is pinned to. Chosen by the agent's traffic rules when
|
|
57
|
+
* the conversation is created and fixed for its lifetime. Absent when the conversation was
|
|
58
|
+
* not routed to a variant, for example one created before the agent had variants.
|
|
59
|
+
*/
|
|
60
|
+
variantId?: MavenAGI.EntityId;
|
|
55
61
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The structured answer for an ask whose `textFormat` was `jsonSchema`. Accompanies the `BotTextResponse` rather than replacing it — the same
|
|
2
|
+
* The structured answer for an ask whose `textFormat` was `jsonSchema`. Accompanies the `BotTextResponse` rather than replacing it — the same round produces both, so the conversation still reads as prose.
|
|
3
3
|
*/
|
|
4
4
|
export interface BotObjectResponse {
|
|
5
5
|
/** The answer, matching the schema the ask supplied. Every property the schema requires is present, with `null` where a nullable one does not apply. */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The fields every capability has, whatever kind it is: Actions, Event Triggers, Intelligent
|
|
4
|
+
* Fields and Conversation Kickoffs all carry these.
|
|
5
|
+
*/
|
|
6
|
+
export interface CapabilityBase {
|
|
7
|
+
/**
|
|
8
|
+
* The capability's display name, shown to whoever manages the agent. A trigger registered
|
|
9
|
+
* without one is named after the app that registered it and the event it fires on.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* What the capability does. Shown to whoever manages the agent, and for the types the LLM
|
|
14
|
+
* can choose between, used to decide when the capability applies.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/** When the capability was created. */
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
/** When the capability was last modified. */
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
/** Whether the agent uses this capability, and whether it still exists. */
|
|
22
|
+
status: MavenAGI.CapabilityStatus;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an agent uses a capability, and whether it still exists. Applies to every capability
|
|
3
|
+
* type.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CapabilityStatus: {
|
|
6
|
+
/**
|
|
7
|
+
* The field is evaluated, and values are computed for matching entities. */
|
|
8
|
+
readonly Active: "ACTIVE";
|
|
9
|
+
/**
|
|
10
|
+
* The field exists but is not evaluated. This is the state a new field is created in. */
|
|
11
|
+
readonly Inactive: "INACTIVE";
|
|
12
|
+
/**
|
|
13
|
+
* The field has been soft deleted and cannot be modified. Set by the delete endpoint
|
|
14
|
+
* rather than by a patch. */
|
|
15
|
+
readonly Deleted: "DELETED";
|
|
16
|
+
};
|
|
17
|
+
export type CapabilityStatus = (typeof CapabilityStatus)[keyof typeof CapabilityStatus] | string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CapabilityStatus = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Whether an agent uses a capability, and whether it still exists. Applies to every capability
|
|
7
|
+
* type.
|
|
8
|
+
*/
|
|
9
|
+
exports.CapabilityStatus = {
|
|
10
|
+
/**
|
|
11
|
+
* The field is evaluated, and values are computed for matching entities. */
|
|
12
|
+
Active: "ACTIVE",
|
|
13
|
+
/**
|
|
14
|
+
* The field exists but is not evaluated. This is the state a new field is created in. */
|
|
15
|
+
Inactive: "INACTIVE",
|
|
16
|
+
/**
|
|
17
|
+
* The field has been soft deleted and cannot be modified. Set by the delete endpoint
|
|
18
|
+
* rather than by a patch. */
|
|
19
|
+
Deleted: "DELETED",
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Which kind of capability an entity is, and the path segment that addresses it. */
|
|
2
|
+
export declare const CapabilityType: {
|
|
3
|
+
readonly Action: "ACTION";
|
|
4
|
+
readonly Trigger: "TRIGGER";
|
|
5
|
+
readonly IntelligentField: "INTELLIGENT_FIELD";
|
|
6
|
+
readonly ConversationKickoff: "CONVERSATION_KICKOFF";
|
|
7
|
+
};
|
|
8
|
+
export type CapabilityType = (typeof CapabilityType)[keyof typeof CapabilityType] | string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CapabilityType = void 0;
|
|
5
|
+
/** Which kind of capability an entity is, and the path segment that addresses it. */
|
|
6
|
+
exports.CapabilityType = {
|
|
7
|
+
Action: "ACTION",
|
|
8
|
+
Trigger: "TRIGGER",
|
|
9
|
+
IntelligentField: "INTELLIGENT_FIELD",
|
|
10
|
+
ConversationKickoff: "CONVERSATION_KICKOFF",
|
|
11
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Which round of the conversation an action must have executed in for a ConversationExecutedActionPrecondition to be met. A round is
|
|
1
|
+
/** Which round of the conversation an action must have executed in for a ConversationExecutedActionPrecondition to be met. A round is one user-visible bot response, which may span several model calls as actions run. The current round is the response being generated now, so CURRENT matches an action that ran earlier in this same response. */
|
|
2
2
|
export declare const ConversationRound: {
|
|
3
3
|
/**
|
|
4
4
|
* The action has executed in any round of the conversation. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ConversationRound = void 0;
|
|
5
|
-
/** Which round of the conversation an action must have executed in for a ConversationExecutedActionPrecondition to be met. A round is
|
|
5
|
+
/** Which round of the conversation an action must have executed in for a ConversationExecutedActionPrecondition to be met. A round is one user-visible bot response, which may span several model calls as actions run. The current round is the response being generated now, so CURRENT matches an action that ran earlier in this same response. */
|
|
6
6
|
exports.ConversationRound = {
|
|
7
7
|
/**
|
|
8
8
|
* The action has executed in any round of the conversation. */
|
|
@@ -9,7 +9,12 @@ export declare const EntityType: {
|
|
|
9
9
|
readonly User: "USER";
|
|
10
10
|
readonly Event: "EVENT";
|
|
11
11
|
readonly EventTrigger: "EVENT_TRIGGER";
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated. Use `USER` instead. */
|
|
12
14
|
readonly UserProfile: "USER_PROFILE";
|
|
15
|
+
/**
|
|
16
|
+
* A user merged across apps. `referenceId` is the agent user id (`AgentUser.id`). */
|
|
17
|
+
readonly AgentUser: "AGENT_USER";
|
|
13
18
|
readonly Feedback: "FEEDBACK";
|
|
14
19
|
readonly InboxItem: "INBOX_ITEM";
|
|
15
20
|
readonly InboxItemFix: "INBOX_ITEM_FIX";
|
|
@@ -19,7 +24,6 @@ export declare const EntityType: {
|
|
|
19
24
|
readonly Charter: "CHARTER";
|
|
20
25
|
readonly ConversationKickoff: "CONVERSATION_KICKOFF";
|
|
21
26
|
readonly AgentVariant: "AGENT_VARIANT";
|
|
22
|
-
readonly ConfigSnapshot: "CONFIG_SNAPSHOT";
|
|
23
27
|
readonly Asset: "ASSET";
|
|
24
28
|
readonly TrafficConfig: "TRAFFIC_CONFIG";
|
|
25
29
|
};
|
|
@@ -13,7 +13,12 @@ exports.EntityType = {
|
|
|
13
13
|
User: "USER",
|
|
14
14
|
Event: "EVENT",
|
|
15
15
|
EventTrigger: "EVENT_TRIGGER",
|
|
16
|
+
/**
|
|
17
|
+
* Deprecated. Use `USER` instead. */
|
|
16
18
|
UserProfile: "USER_PROFILE",
|
|
19
|
+
/**
|
|
20
|
+
* A user merged across apps. `referenceId` is the agent user id (`AgentUser.id`). */
|
|
21
|
+
AgentUser: "AGENT_USER",
|
|
17
22
|
Feedback: "FEEDBACK",
|
|
18
23
|
InboxItem: "INBOX_ITEM",
|
|
19
24
|
InboxItemFix: "INBOX_ITEM_FIX",
|
|
@@ -23,7 +28,6 @@ exports.EntityType = {
|
|
|
23
28
|
Charter: "CHARTER",
|
|
24
29
|
ConversationKickoff: "CONVERSATION_KICKOFF",
|
|
25
30
|
AgentVariant: "AGENT_VARIANT",
|
|
26
|
-
ConfigSnapshot: "CONFIG_SNAPSHOT",
|
|
27
31
|
Asset: "ASSET",
|
|
28
32
|
TrafficConfig: "TRAFFIC_CONFIG",
|
|
29
33
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
1
2
|
export interface ErrorMessage {
|
|
2
3
|
/** HTTP status code returned by the API. */
|
|
3
4
|
status?: number;
|
|
@@ -5,4 +6,6 @@ export interface ErrorMessage {
|
|
|
5
6
|
error?: string;
|
|
6
7
|
/** Human-readable error details. */
|
|
7
8
|
message?: string;
|
|
9
|
+
/** Machine-readable reason for the failure, when the API defines one. Match on this rather than on `message`, whose wording may change. */
|
|
10
|
+
reason?: MavenAGI.ErrorReason;
|
|
8
11
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Why a request was rejected. Values are UPPER_SNAKE_CASE, at most 63 characters. New values may be added, so treat an unrecognized one as a generic error. All current values come from agent-variant operations. */
|
|
2
|
+
export declare const ErrorReason: {
|
|
3
|
+
/**
|
|
4
|
+
* The variant is receiving live traffic, so it can't be edited. Fork a working variant and edit that instead. */
|
|
5
|
+
readonly VariantLive: "VARIANT_LIVE";
|
|
6
|
+
/**
|
|
7
|
+
* The variant is archived or deleted. */
|
|
8
|
+
readonly VariantNotActive: "VARIANT_NOT_ACTIVE";
|
|
9
|
+
/**
|
|
10
|
+
* The traffic config changed since it was last read. Re-read it and retry. */
|
|
11
|
+
readonly StaleTrafficRevision: "STALE_TRAFFIC_REVISION";
|
|
12
|
+
/**
|
|
13
|
+
* The variant's working set changed since it was last read (its `workingSetRevision` moved). Re-read it and retry. */
|
|
14
|
+
readonly StaleWorkingSet: "STALE_WORKING_SET";
|
|
15
|
+
/**
|
|
16
|
+
* The variant's staged edits don't change its configuration, so there is nothing to commit. */
|
|
17
|
+
readonly NothingToCommit: "NOTHING_TO_COMMIT";
|
|
18
|
+
/**
|
|
19
|
+
* The ID requested for a new variant is already taken. */
|
|
20
|
+
readonly VariantAlreadyExists: "VARIANT_ALREADY_EXISTS";
|
|
21
|
+
/**
|
|
22
|
+
* The variant is receiving live traffic, so it can't be archived or deleted. Move its traffic elsewhere first. */
|
|
23
|
+
readonly CannotArchiveLiveVariant: "CANNOT_ARCHIVE_LIVE_VARIANT";
|
|
24
|
+
/**
|
|
25
|
+
* A traffic rule names a variant with staged edits. Publish or discard them first. */
|
|
26
|
+
readonly VariantHasStagedEdits: "VARIANT_HAS_STAGED_EDITS";
|
|
27
|
+
/**
|
|
28
|
+
* The entity type is versioned on this agent, so the request must name the agent variant to read or write. Pass the variant's reference ID, and its owning app where the endpoint takes one; a request that names none is rejected. */
|
|
29
|
+
readonly VariantRequired: "VARIANT_REQUIRED";
|
|
30
|
+
};
|
|
31
|
+
export type ErrorReason = (typeof ErrorReason)[keyof typeof ErrorReason] | string;
|