@corti/sdk 4.2.0-rc → 4.3.0-beta
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +29 -24
- package/dist/cjs/api/errors/ConflictError.d.ts +1 -2
- package/dist/cjs/api/errors/NotImplementedError.d.ts +6 -0
- package/dist/cjs/api/errors/NotImplementedError.js +54 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +6 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +2 -0
- package/dist/cjs/api/errors/index.js +2 -0
- package/dist/cjs/api/resources/agentic/client/Client.d.ts +21 -0
- package/dist/cjs/api/resources/agentic/client/Client.js +31 -0
- package/dist/cjs/api/resources/agentic/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/client/index.js +2 -0
- package/dist/cjs/api/resources/agentic/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentic/index.js +18 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/Client.d.ts +279 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/Client.js +897 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/index.d.ts +1 -0
- package/dist/cjs/{serialization/resources/auth/types → api/resources/agentic/resources/agents/client}/index.js +1 -1
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.d.ts +26 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.d.ts +66 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsListRequest.d.ts +22 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsListRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.d.ts +27 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsUsageRequest.d.ts +22 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsUsageRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/agentic/resources/agents/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/agents/index.d.ts +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/index.js +19 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/Client.d.ts +101 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/Client.js +394 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/{auth/types → agentic/resources/agents/resources/connectors/client}/index.js +1 -1
- package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/requests/AgenticConnectorsPatchRequest.d.ts +18 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/requests/AgenticConnectorsPatchRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/index.d.ts +1 -0
- package/dist/cjs/{serialization/resources/auth → api/resources/agentic/resources/agents/resources/connectors}/index.js +1 -1
- package/dist/cjs/api/resources/agentic/resources/agents/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/index.js +43 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/Client.d.ts +65 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/Client.js +338 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksGetRequest.d.ts +8 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksGetRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksListRequest.d.ts +12 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksListRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestMethod.d.ts +10 -0
- package/dist/cjs/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestMethod.js +13 -0
- package/dist/cjs/api/resources/agentic/resources/agents/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentic/resources/agents/types/index.js +18 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/Client.d.ts +85 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/Client.js +347 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/requests/AgenticContextsGetRequest.d.ts +8 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/requests/AgenticContextsGetRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/requests/AgenticContextsListRequest.d.ts +16 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/requests/AgenticContextsListRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/requests/AgenticContextsTraceRequest.d.ts +10 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/requests/AgenticContextsTraceRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/index.js +18 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/index.js +41 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/client/Client.js +206 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/client/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/client/requests/AgenticContextsTasksListRequest.d.ts +10 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/client/requests/AgenticContextsTasksListRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/index.js +18 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/client/Client.d.ts +33 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/client/Client.js +127 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/client/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/Client.d.ts +96 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/Client.js +281 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/AgenticFeedbackCreateRequest.d.ts +46 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/AgenticFeedbackCreateRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/agentic/resources/contexts/resources/tasks/resources/index.js +42 -0
- package/dist/cjs/api/resources/agentic/resources/index.d.ts +7 -0
- package/dist/cjs/api/resources/agentic/resources/index.js +46 -0
- package/dist/cjs/api/resources/agentic/resources/models/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/agentic/resources/models/client/Client.js +128 -0
- package/dist/cjs/api/resources/agentic/resources/models/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/models/client/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/models/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/models/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/registry/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/agentic/resources/registry/client/Client.js +16 -0
- package/dist/cjs/api/resources/agentic/resources/registry/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/registry/client/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/registry/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentic/resources/registry/index.js +18 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/Client.d.ts +39 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/Client.js +192 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/requests/AgenticRegistryConnectorsListRequest.d.ts +15 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/requests/AgenticRegistryConnectorsListRequest.js +3 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/index.js +17 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentic/resources/registry/resources/index.js +41 -0
- package/dist/cjs/api/resources/agents/client/Client.d.ts +25 -0
- package/dist/cjs/api/resources/agents/client/Client.js +25 -0
- package/dist/cjs/api/resources/auth/index.d.ts +0 -1
- package/dist/cjs/api/resources/auth/index.js +0 -1
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +1 -7
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +1 -7
- package/dist/cjs/api/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/index.js +5 -5
- package/dist/cjs/api/types/A2ASendMessageConfiguration.d.ts +11 -0
- package/dist/cjs/api/types/A2ASendMessageConfiguration.js +3 -0
- package/dist/cjs/api/types/A2ASendMessageRequest.d.ts +12 -0
- package/dist/cjs/api/types/A2ASendMessageRequest.js +3 -0
- package/dist/cjs/api/types/A2ASendMessageResponse.d.ts +4 -0
- package/dist/cjs/api/types/A2ASendMessageResponse.js +3 -0
- package/dist/cjs/api/types/A2AStreamEventResponse.d.ts +16 -0
- package/dist/cjs/api/types/A2AStreamEventResponse.js +3 -0
- package/dist/cjs/api/types/A2AjsonrpcResponse.d.ts +13 -0
- package/dist/cjs/api/types/A2AjsonrpcResponse.js +3 -0
- package/dist/cjs/api/types/A2AjsonrpcResponseError.d.ts +11 -0
- package/dist/cjs/api/types/A2AjsonrpcResponseError.js +3 -0
- package/dist/cjs/api/types/A2AjsonrpcResponseId.d.ts +1 -0
- package/dist/cjs/api/types/A2AjsonrpcResponseId.js +3 -0
- package/dist/cjs/api/types/AgenticAgentCardResponse.d.ts +34 -0
- package/dist/cjs/api/types/AgenticAgentCardResponse.js +3 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseCapabilities.d.ts +12 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseCapabilities.js +3 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseProvider.d.ts +9 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseProvider.js +3 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseSignaturesItem.d.ts +8 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseSignaturesItem.js +3 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseSkillsItem.d.ts +10 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseSkillsItem.js +3 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseSupportedInterfacesItem.d.ts +9 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseSupportedInterfacesItem.js +3 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseSupportedInterfacesItemProtocolBinding.d.ts +6 -0
- package/dist/cjs/api/types/AgenticAgentCardResponseSupportedInterfacesItemProtocolBinding.js +9 -0
- package/dist/cjs/api/types/AgenticAgentsListResponse.d.ts +10 -0
- package/dist/cjs/api/types/AgenticAgentsListResponse.js +3 -0
- package/dist/cjs/api/types/AgenticAgentsResponse.d.ts +29 -0
- package/dist/cjs/api/types/AgenticAgentsResponse.js +3 -0
- package/dist/cjs/api/types/AgenticConnectorsListResponse.d.ts +8 -0
- package/dist/cjs/api/types/AgenticConnectorsListResponse.js +3 -0
- package/dist/cjs/api/types/AgenticContext.d.ts +16 -0
- package/dist/cjs/api/types/AgenticContext.js +3 -0
- package/dist/cjs/api/types/AgenticContextsDetailResponse.d.ts +11 -0
- package/dist/cjs/api/types/AgenticContextsDetailResponse.js +3 -0
- package/dist/cjs/api/types/AgenticContextsListResponse.d.ts +10 -0
- package/dist/cjs/api/types/AgenticContextsListResponse.js +3 -0
- package/dist/cjs/api/types/AgenticContextsOpenInferenceSpan.d.ts +17 -0
- package/dist/cjs/api/types/AgenticContextsOpenInferenceSpan.js +3 -0
- package/dist/cjs/api/types/AgenticContextsTraceItem.d.ts +10 -0
- package/dist/cjs/api/types/AgenticContextsTraceItem.js +3 -0
- package/dist/cjs/api/types/AgenticContextsTraceItemTrace.d.ts +23 -0
- package/dist/cjs/api/types/AgenticContextsTraceItemTrace.js +3 -0
- package/dist/cjs/api/types/AgenticContextsTraceResponse.d.ts +11 -0
- package/dist/cjs/api/types/AgenticContextsTraceResponse.js +3 -0
- package/dist/cjs/api/types/AgenticFeedbackActor.d.ts +12 -0
- package/dist/cjs/api/types/AgenticFeedbackActor.js +3 -0
- package/dist/cjs/api/types/AgenticFeedbackIdValue.d.ts +4 -0
- package/dist/cjs/api/types/AgenticFeedbackIdValue.js +3 -0
- package/dist/cjs/api/types/AgenticFeedbackLabel.d.ts +35 -0
- package/dist/cjs/api/types/AgenticFeedbackLabel.js +38 -0
- package/dist/cjs/api/types/AgenticFeedbackListResponse.d.ts +8 -0
- package/dist/cjs/api/types/AgenticFeedbackListResponse.js +3 -0
- package/dist/cjs/api/types/AgenticFeedbackMetadata.d.ts +15 -0
- package/dist/cjs/api/types/AgenticFeedbackMetadata.js +3 -0
- package/dist/cjs/api/types/AgenticFeedbackRating.d.ts +9 -0
- package/dist/cjs/api/types/AgenticFeedbackRating.js +3 -0
- package/dist/cjs/api/types/AgenticFeedbackRatingScale.d.ts +10 -0
- package/dist/cjs/api/types/AgenticFeedbackRatingScale.js +13 -0
- package/dist/cjs/api/types/AgenticFeedbackResponse.d.ts +22 -0
- package/dist/cjs/api/types/AgenticFeedbackResponse.js +3 -0
- package/dist/cjs/api/types/AgenticFeedbackTarget.d.ts +8 -0
- package/dist/cjs/api/types/AgenticFeedbackTarget.js +3 -0
- package/dist/cjs/api/types/AgenticModel.d.ts +11 -0
- package/dist/cjs/api/types/AgenticModel.js +3 -0
- package/dist/cjs/api/types/AgenticModelsListResponse.d.ts +8 -0
- package/dist/cjs/api/types/AgenticModelsListResponse.js +3 -0
- package/dist/cjs/api/types/AgenticRegistryConnector.d.ts +32 -0
- package/dist/cjs/api/types/AgenticRegistryConnector.js +3 -0
- package/dist/cjs/api/types/AgenticRegistryConnectorCapabilities.d.ts +13 -0
- package/dist/cjs/api/types/AgenticRegistryConnectorCapabilities.js +3 -0
- package/dist/cjs/api/types/AgenticRegistryConnectorsListResponse.d.ts +10 -0
- package/dist/cjs/api/types/AgenticRegistryConnectorsListResponse.js +3 -0
- package/dist/cjs/api/types/AgenticRegistryIcon.d.ts +11 -0
- package/dist/cjs/api/types/AgenticRegistryIcon.js +3 -0
- package/dist/cjs/api/types/AgentsLabels.d.ts +4 -0
- package/dist/cjs/api/types/AgentsLabels.js +3 -0
- package/dist/cjs/api/types/AgentsLifecycle.d.ts +9 -0
- package/dist/cjs/api/types/AgentsLifecycle.js +12 -0
- package/dist/cjs/api/types/AgentsUsageBucket.d.ts +10 -0
- package/dist/cjs/api/types/AgentsUsageBucket.js +3 -0
- package/dist/cjs/api/types/AgentsUsageGranularity.d.ts +8 -0
- package/dist/cjs/api/types/AgentsUsageGranularity.js +11 -0
- package/dist/cjs/api/types/AgentsUsageMetrics.d.ts +9 -0
- package/dist/cjs/api/types/AgentsUsageMetrics.js +3 -0
- package/dist/cjs/api/types/AgentsUsageReportResponse.d.ts +15 -0
- package/dist/cjs/api/types/AgentsUsageReportResponse.js +3 -0
- package/dist/cjs/api/types/AgentsUserIdValue.d.ts +4 -0
- package/dist/cjs/api/types/AgentsUserIdValue.js +3 -0
- package/dist/cjs/api/types/AgentsVisibility.d.ts +11 -0
- package/dist/cjs/api/types/AgentsVisibility.js +14 -0
- package/dist/cjs/api/{resources/auth/types → types}/AuthTokenRequestBody.d.ts +1 -1
- package/dist/cjs/api/types/AuthTokenRequestBody.js +3 -0
- package/dist/cjs/api/types/CommonA2AConnector.d.ts +19 -0
- package/dist/cjs/api/types/CommonA2AConnector.js +3 -0
- package/dist/cjs/api/types/CommonA2AConnectorCreate.d.ts +12 -0
- package/dist/cjs/api/types/CommonA2AConnectorCreate.js +3 -0
- package/dist/cjs/api/types/CommonAgentConnector.d.ts +16 -0
- package/dist/cjs/api/types/CommonAgentConnector.js +3 -0
- package/dist/cjs/api/types/CommonAgentConnectorCreate.d.ts +10 -0
- package/dist/cjs/api/types/CommonAgentConnectorCreate.js +3 -0
- package/dist/cjs/api/types/CommonAgentIdValue.d.ts +4 -0
- package/dist/cjs/api/types/CommonAgentIdValue.js +3 -0
- package/dist/cjs/api/types/CommonArtifactIdValue.d.ts +4 -0
- package/dist/cjs/api/types/CommonArtifactIdValue.js +3 -0
- package/dist/cjs/api/types/CommonArtifactResponse.d.ts +17 -0
- package/dist/cjs/api/types/CommonArtifactResponse.js +3 -0
- package/dist/cjs/api/types/CommonConnectorAuth.d.ts +19 -0
- package/dist/cjs/api/types/CommonConnectorAuth.js +3 -0
- package/dist/cjs/api/types/CommonConnectorAuthType.d.ts +14 -0
- package/dist/cjs/api/types/CommonConnectorAuthType.js +17 -0
- package/dist/cjs/api/types/CommonConnectorCreateRequest.d.ts +5 -0
- package/dist/cjs/api/types/CommonConnectorCreateRequest.js +3 -0
- package/dist/cjs/api/types/CommonConnectorIdValue.d.ts +4 -0
- package/dist/cjs/api/types/CommonConnectorIdValue.js +3 -0
- package/dist/cjs/api/types/CommonConnectorResponse.d.ts +5 -0
- package/dist/cjs/api/types/CommonConnectorResponse.js +3 -0
- package/dist/cjs/api/types/CommonConnectorType.d.ts +13 -0
- package/dist/cjs/api/types/CommonConnectorType.js +16 -0
- package/dist/cjs/api/types/CommonContextIdValue.d.ts +4 -0
- package/dist/cjs/api/types/CommonContextIdValue.js +3 -0
- package/dist/cjs/api/types/CommonErrorResponse.d.ts +21 -0
- package/dist/cjs/api/types/CommonErrorResponse.js +3 -0
- package/dist/cjs/api/types/CommonErrorResponseError.d.ts +22 -0
- package/dist/cjs/api/types/CommonErrorResponseError.js +3 -0
- package/dist/cjs/api/types/CommonErrorResponseErrorDetails.d.ts +11 -0
- package/dist/cjs/api/types/CommonErrorResponseErrorDetails.js +3 -0
- package/dist/cjs/api/types/CommonErrorResponseErrorDetailsValidationErrorsItem.d.ts +6 -0
- package/dist/cjs/api/types/CommonErrorResponseErrorDetailsValidationErrorsItem.js +3 -0
- package/dist/cjs/api/types/CommonMcpConnector.d.ts +20 -0
- package/dist/cjs/api/types/CommonMcpConnector.js +3 -0
- package/dist/cjs/api/types/CommonMcpConnectorCreate.d.ts +14 -0
- package/dist/cjs/api/types/CommonMcpConnectorCreate.js +3 -0
- package/dist/cjs/api/types/CommonMessage.d.ts +24 -0
- package/dist/cjs/api/types/CommonMessage.js +3 -0
- package/dist/cjs/api/types/CommonMessageIdValue.d.ts +4 -0
- package/dist/cjs/api/types/CommonMessageIdValue.js +3 -0
- package/dist/cjs/api/types/CommonNextPageToken.d.ts +4 -0
- package/dist/cjs/api/types/CommonNextPageToken.js +3 -0
- package/dist/cjs/api/types/CommonPart.d.ts +21 -0
- package/dist/cjs/api/types/CommonPart.js +3 -0
- package/dist/cjs/api/types/CommonRegistryConnectorCreate.d.ts +12 -0
- package/dist/cjs/api/types/CommonRegistryConnectorCreate.js +3 -0
- package/dist/cjs/api/types/CommonRegistryConnectorProvisioned.d.ts +19 -0
- package/dist/cjs/api/types/CommonRegistryConnectorProvisioned.js +3 -0
- package/dist/cjs/api/types/CommonRole.d.ts +6 -0
- package/dist/cjs/api/types/CommonRole.js +9 -0
- package/dist/cjs/api/types/CommonSchemaConnector.d.ts +23 -0
- package/dist/cjs/api/types/CommonSchemaConnector.js +3 -0
- package/dist/cjs/api/types/CommonSchemaConnectorCreate.d.ts +17 -0
- package/dist/cjs/api/types/CommonSchemaConnectorCreate.js +3 -0
- package/dist/cjs/api/types/CommonSchemaConnectorCreateTransition.d.ts +6 -0
- package/dist/cjs/api/types/CommonSchemaConnectorCreateTransition.js +9 -0
- package/dist/cjs/api/types/CommonSchemaConnectorTransition.d.ts +6 -0
- package/dist/cjs/api/types/CommonSchemaConnectorTransition.js +9 -0
- package/dist/cjs/api/types/CommonTaskIdValue.d.ts +4 -0
- package/dist/cjs/api/types/CommonTaskIdValue.js +3 -0
- package/dist/cjs/api/types/CommonTaskListResponse.d.ts +12 -0
- package/dist/cjs/api/types/CommonTaskListResponse.js +3 -0
- package/dist/cjs/api/types/CommonTaskMetadata.d.ts +12 -0
- package/dist/cjs/api/types/CommonTaskMetadata.js +3 -0
- package/dist/cjs/api/types/CommonTaskResponse.d.ts +15 -0
- package/dist/cjs/api/types/CommonTaskResponse.js +3 -0
- package/dist/cjs/api/types/CommonTaskState.d.ts +12 -0
- package/dist/cjs/api/types/CommonTaskState.js +15 -0
- package/dist/cjs/api/types/CommonTaskStatus.d.ts +10 -0
- package/dist/cjs/api/types/CommonTaskStatus.js +3 -0
- package/dist/cjs/api/types/CommonTotalSize.d.ts +4 -0
- package/dist/cjs/api/types/CommonTotalSize.js +3 -0
- package/dist/cjs/api/types/CommonUsage.d.ts +25 -0
- package/dist/cjs/api/types/CommonUsage.js +3 -0
- package/dist/cjs/api/types/index.d.ts +87 -0
- package/dist/cjs/api/types/index.js +87 -0
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +1 -0
- package/dist/cjs/core/stream/Stream.d.ts +56 -0
- package/dist/cjs/core/stream/Stream.js +267 -0
- package/dist/cjs/core/stream/index.d.ts +1 -0
- package/dist/cjs/core/stream/index.js +5 -0
- package/dist/cjs/custom/CortiClient.d.ts +4 -0
- package/dist/cjs/custom/CortiClient.js +6 -0
- package/dist/cjs/custom/agentic/CustomAgentic.d.ts +11 -0
- package/dist/cjs/custom/agentic/CustomAgentic.js +17 -0
- package/dist/cjs/custom/agentic/CustomAgenticAgents.d.ts +19 -0
- package/dist/cjs/custom/agentic/CustomAgenticAgents.js +72 -0
- package/dist/cjs/custom/agents/CustomAgents.d.ts +5 -2
- package/dist/cjs/custom/agents/CustomAgents.js +5 -2
- package/dist/cjs/serialization/resources/agentic/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/index.js +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/index.js +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.d.ts +13 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.js +45 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.d.ts +20 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.js +52 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.d.ts +19 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.js +53 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/index.js +9 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/index.js +19 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/connectors/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/connectors/client/index.js +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/connectors/client/requests/AgenticConnectorsPatchRequest.d.ts +14 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/connectors/client/requests/AgenticConnectorsPatchRequest.js +46 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/connectors/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/connectors/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/connectors/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/connectors/index.js +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/resources/index.js +41 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.d.ts +7 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.js +39 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestMethod.d.ts +7 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestMethod.js +46 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/types/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/agentic/resources/agents/types/index.js +18 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/index.js +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/index.js +37 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/index.js +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/index.js +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/AgenticFeedbackCreateRequest.d.ts +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/AgenticFeedbackCreateRequest.js +49 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/index.js +17 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/agentic/resources/contexts/resources/tasks/resources/index.js +41 -0
- package/dist/cjs/serialization/resources/agentic/resources/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/agentic/resources/index.js +43 -0
- package/dist/cjs/serialization/resources/index.d.ts +1 -2
- package/dist/cjs/serialization/resources/index.js +5 -6
- package/dist/cjs/serialization/types/A2ASendMessageConfiguration.d.ts +11 -0
- package/dist/cjs/serialization/types/A2ASendMessageConfiguration.js +43 -0
- package/dist/cjs/serialization/types/A2ASendMessageRequest.d.ts +14 -0
- package/dist/cjs/serialization/types/A2ASendMessageRequest.js +46 -0
- package/dist/cjs/serialization/types/A2ASendMessageResponse.d.ts +7 -0
- package/dist/cjs/serialization/types/A2ASendMessageResponse.js +39 -0
- package/dist/cjs/serialization/types/A2AStreamEventResponse.d.ts +12 -0
- package/dist/cjs/serialization/types/A2AStreamEventResponse.js +44 -0
- package/dist/cjs/serialization/types/A2AjsonrpcResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/A2AjsonrpcResponse.js +46 -0
- package/dist/cjs/serialization/types/A2AjsonrpcResponseError.d.ts +11 -0
- package/dist/cjs/serialization/types/A2AjsonrpcResponseError.js +43 -0
- package/dist/cjs/serialization/types/A2AjsonrpcResponseId.d.ts +7 -0
- package/dist/cjs/serialization/types/A2AjsonrpcResponseId.js +39 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponse.d.ts +27 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponse.js +61 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseCapabilities.d.ts +10 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseCapabilities.js +42 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseProvider.d.ts +10 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseProvider.js +42 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseSignaturesItem.d.ts +11 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseSignaturesItem.js +43 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseSkillsItem.d.ts +12 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseSkillsItem.js +44 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseSupportedInterfacesItem.d.ts +12 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseSupportedInterfacesItem.js +44 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseSupportedInterfacesItemProtocolBinding.d.ts +7 -0
- package/dist/cjs/serialization/types/AgenticAgentCardResponseSupportedInterfacesItemProtocolBinding.js +39 -0
- package/dist/cjs/serialization/types/AgenticAgentsListResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/AgenticAgentsListResponse.js +46 -0
- package/dist/cjs/serialization/types/AgenticAgentsResponse.d.ts +26 -0
- package/dist/cjs/serialization/types/AgenticAgentsResponse.js +58 -0
- package/dist/cjs/serialization/types/AgenticConnectorsListResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/AgenticConnectorsListResponse.js +42 -0
- package/dist/cjs/serialization/types/AgenticContext.d.ts +16 -0
- package/dist/cjs/serialization/types/AgenticContext.js +48 -0
- package/dist/cjs/serialization/types/AgenticContextsDetailResponse.d.ts +11 -0
- package/dist/cjs/serialization/types/AgenticContextsDetailResponse.js +45 -0
- package/dist/cjs/serialization/types/AgenticContextsListResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/AgenticContextsListResponse.js +46 -0
- package/dist/cjs/serialization/types/AgenticContextsOpenInferenceSpan.d.ts +14 -0
- package/dist/cjs/serialization/types/AgenticContextsOpenInferenceSpan.js +46 -0
- package/dist/cjs/serialization/types/AgenticContextsTraceItem.d.ts +12 -0
- package/dist/cjs/serialization/types/AgenticContextsTraceItem.js +44 -0
- package/dist/cjs/serialization/types/AgenticContextsTraceItemTrace.d.ts +17 -0
- package/dist/cjs/serialization/types/AgenticContextsTraceItemTrace.js +49 -0
- package/dist/cjs/serialization/types/AgenticContextsTraceResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/AgenticContextsTraceResponse.js +46 -0
- package/dist/cjs/serialization/types/AgenticFeedbackActor.d.ts +9 -0
- package/dist/cjs/serialization/types/AgenticFeedbackActor.js +41 -0
- package/dist/cjs/serialization/types/AgenticFeedbackIdValue.d.ts +7 -0
- package/dist/cjs/serialization/types/AgenticFeedbackIdValue.js +39 -0
- package/dist/cjs/serialization/types/AgenticFeedbackLabel.d.ts +7 -0
- package/dist/cjs/serialization/types/AgenticFeedbackLabel.js +54 -0
- package/dist/cjs/serialization/types/AgenticFeedbackListResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/AgenticFeedbackListResponse.js +42 -0
- package/dist/cjs/serialization/types/AgenticFeedbackMetadata.d.ts +12 -0
- package/dist/cjs/serialization/types/AgenticFeedbackMetadata.js +44 -0
- package/dist/cjs/serialization/types/AgenticFeedbackRating.d.ts +11 -0
- package/dist/cjs/serialization/types/AgenticFeedbackRating.js +43 -0
- package/dist/cjs/serialization/types/AgenticFeedbackRatingScale.d.ts +7 -0
- package/dist/cjs/serialization/types/AgenticFeedbackRatingScale.js +39 -0
- package/dist/cjs/serialization/types/AgenticFeedbackResponse.d.ts +23 -0
- package/dist/cjs/serialization/types/AgenticFeedbackResponse.js +55 -0
- package/dist/cjs/serialization/types/AgenticFeedbackTarget.d.ts +10 -0
- package/dist/cjs/serialization/types/AgenticFeedbackTarget.js +42 -0
- package/dist/cjs/serialization/types/AgenticModel.d.ts +11 -0
- package/dist/cjs/serialization/types/AgenticModel.js +43 -0
- package/dist/cjs/serialization/types/AgenticModelsListResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/AgenticModelsListResponse.js +42 -0
- package/dist/cjs/serialization/types/AgenticRegistryConnector.d.ts +24 -0
- package/dist/cjs/serialization/types/AgenticRegistryConnector.js +56 -0
- package/dist/cjs/serialization/types/AgenticRegistryConnectorCapabilities.d.ts +12 -0
- package/dist/cjs/serialization/types/AgenticRegistryConnectorCapabilities.js +44 -0
- package/dist/cjs/serialization/types/AgenticRegistryConnectorsListResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/AgenticRegistryConnectorsListResponse.js +46 -0
- package/dist/cjs/serialization/types/AgenticRegistryIcon.d.ts +11 -0
- package/dist/cjs/serialization/types/AgenticRegistryIcon.js +43 -0
- package/dist/cjs/serialization/types/AgentsLabels.d.ts +7 -0
- package/dist/cjs/serialization/types/AgentsLabels.js +39 -0
- package/dist/cjs/serialization/types/AgentsLifecycle.d.ts +7 -0
- package/dist/cjs/serialization/types/AgentsLifecycle.js +39 -0
- package/dist/cjs/serialization/types/AgentsUsageBucket.d.ts +11 -0
- package/dist/cjs/serialization/types/AgentsUsageBucket.js +45 -0
- package/dist/cjs/serialization/types/AgentsUsageGranularity.d.ts +7 -0
- package/dist/cjs/serialization/types/AgentsUsageGranularity.js +39 -0
- package/dist/cjs/serialization/types/AgentsUsageMetrics.d.ts +10 -0
- package/dist/cjs/serialization/types/AgentsUsageMetrics.js +42 -0
- package/dist/cjs/serialization/types/AgentsUsageReportResponse.d.ts +16 -0
- package/dist/cjs/serialization/types/AgentsUsageReportResponse.js +48 -0
- package/dist/cjs/serialization/types/AgentsUserIdValue.d.ts +7 -0
- package/dist/cjs/serialization/types/AgentsUserIdValue.js +39 -0
- package/dist/cjs/serialization/types/AgentsVisibility.d.ts +7 -0
- package/dist/cjs/serialization/types/AgentsVisibility.js +39 -0
- package/dist/cjs/serialization/types/AuthTokenRequestBody.d.ts +12 -0
- package/dist/cjs/serialization/{resources/auth/types → types}/AuthTokenRequestBody.js +6 -6
- package/dist/cjs/serialization/types/CommonA2AConnector.d.ts +14 -0
- package/dist/cjs/serialization/types/CommonA2AConnector.js +46 -0
- package/dist/cjs/serialization/types/CommonA2AConnectorCreate.d.ts +12 -0
- package/dist/cjs/serialization/types/CommonA2AConnectorCreate.js +44 -0
- package/dist/cjs/serialization/types/CommonAgentConnector.d.ts +14 -0
- package/dist/cjs/serialization/types/CommonAgentConnector.js +46 -0
- package/dist/cjs/serialization/types/CommonAgentConnectorCreate.d.ts +12 -0
- package/dist/cjs/serialization/types/CommonAgentConnectorCreate.js +44 -0
- package/dist/cjs/serialization/types/CommonAgentIdValue.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonAgentIdValue.js +39 -0
- package/dist/cjs/serialization/types/CommonArtifactIdValue.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonArtifactIdValue.js +39 -0
- package/dist/cjs/serialization/types/CommonArtifactResponse.d.ts +16 -0
- package/dist/cjs/serialization/types/CommonArtifactResponse.js +48 -0
- package/dist/cjs/serialization/types/CommonConnectorAuth.d.ts +13 -0
- package/dist/cjs/serialization/types/CommonConnectorAuth.js +45 -0
- package/dist/cjs/serialization/types/CommonConnectorAuthType.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonConnectorAuthType.js +39 -0
- package/dist/cjs/serialization/types/CommonConnectorCreateRequest.d.ts +12 -0
- package/dist/cjs/serialization/types/CommonConnectorCreateRequest.js +50 -0
- package/dist/cjs/serialization/types/CommonConnectorIdValue.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonConnectorIdValue.js +39 -0
- package/dist/cjs/serialization/types/CommonConnectorResponse.d.ts +12 -0
- package/dist/cjs/serialization/types/CommonConnectorResponse.js +50 -0
- package/dist/cjs/serialization/types/CommonConnectorType.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonConnectorType.js +39 -0
- package/dist/cjs/serialization/types/CommonContextIdValue.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonContextIdValue.js +39 -0
- package/dist/cjs/serialization/types/CommonErrorResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/CommonErrorResponse.js +42 -0
- package/dist/cjs/serialization/types/CommonErrorResponseError.d.ts +14 -0
- package/dist/cjs/serialization/types/CommonErrorResponseError.js +46 -0
- package/dist/cjs/serialization/types/CommonErrorResponseErrorDetails.d.ts +11 -0
- package/dist/cjs/serialization/types/CommonErrorResponseErrorDetails.js +44 -0
- package/dist/cjs/serialization/types/CommonErrorResponseErrorDetailsValidationErrorsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/CommonErrorResponseErrorDetailsValidationErrorsItem.js +42 -0
- package/dist/cjs/serialization/types/CommonMcpConnector.d.ts +16 -0
- package/dist/cjs/serialization/types/CommonMcpConnector.js +48 -0
- package/dist/cjs/serialization/types/CommonMcpConnectorCreate.d.ts +14 -0
- package/dist/cjs/serialization/types/CommonMcpConnectorCreate.js +46 -0
- package/dist/cjs/serialization/types/CommonMessage.d.ts +21 -0
- package/dist/cjs/serialization/types/CommonMessage.js +53 -0
- package/dist/cjs/serialization/types/CommonMessageIdValue.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonMessageIdValue.js +39 -0
- package/dist/cjs/serialization/types/CommonNextPageToken.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonNextPageToken.js +39 -0
- package/dist/cjs/serialization/types/CommonPart.d.ts +16 -0
- package/dist/cjs/serialization/types/CommonPart.js +49 -0
- package/dist/cjs/serialization/types/CommonRegistryConnectorCreate.d.ts +12 -0
- package/dist/cjs/serialization/types/CommonRegistryConnectorCreate.js +44 -0
- package/dist/cjs/serialization/types/CommonRegistryConnectorProvisioned.d.ts +14 -0
- package/dist/cjs/serialization/types/CommonRegistryConnectorProvisioned.js +46 -0
- package/dist/cjs/serialization/types/CommonRole.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonRole.js +39 -0
- package/dist/cjs/serialization/types/CommonSchemaConnector.d.ts +17 -0
- package/dist/cjs/serialization/types/CommonSchemaConnector.js +49 -0
- package/dist/cjs/serialization/types/CommonSchemaConnectorCreate.d.ts +15 -0
- package/dist/cjs/serialization/types/CommonSchemaConnectorCreate.js +47 -0
- package/dist/cjs/serialization/types/CommonSchemaConnectorCreateTransition.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonSchemaConnectorCreateTransition.js +39 -0
- package/dist/cjs/serialization/types/CommonSchemaConnectorTransition.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonSchemaConnectorTransition.js +39 -0
- package/dist/cjs/serialization/types/CommonTaskIdValue.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonTaskIdValue.js +39 -0
- package/dist/cjs/serialization/types/CommonTaskListResponse.d.ts +15 -0
- package/dist/cjs/serialization/types/CommonTaskListResponse.js +47 -0
- package/dist/cjs/serialization/types/CommonTaskMetadata.d.ts +11 -0
- package/dist/cjs/serialization/types/CommonTaskMetadata.js +44 -0
- package/dist/cjs/serialization/types/CommonTaskResponse.d.ts +20 -0
- package/dist/cjs/serialization/types/CommonTaskResponse.js +52 -0
- package/dist/cjs/serialization/types/CommonTaskState.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonTaskState.js +48 -0
- package/dist/cjs/serialization/types/CommonTaskStatus.d.ts +13 -0
- package/dist/cjs/serialization/types/CommonTaskStatus.js +45 -0
- package/dist/cjs/serialization/types/CommonTotalSize.d.ts +7 -0
- package/dist/cjs/serialization/types/CommonTotalSize.js +39 -0
- package/dist/cjs/serialization/types/CommonUsage.d.ts +15 -0
- package/dist/cjs/serialization/types/CommonUsage.js +47 -0
- package/dist/cjs/serialization/types/index.d.ts +87 -0
- package/dist/cjs/serialization/types/index.js +87 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/errors/ConflictError.d.mts +1 -2
- package/dist/esm/api/errors/NotImplementedError.d.mts +6 -0
- package/dist/esm/api/errors/NotImplementedError.mjs +17 -0
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +6 -0
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +2 -0
- package/dist/esm/api/errors/index.mjs +2 -0
- package/dist/esm/api/resources/agentic/client/Client.d.mts +21 -0
- package/dist/esm/api/resources/agentic/client/Client.mjs +27 -0
- package/dist/esm/api/resources/agentic/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/index.d.mts +2 -0
- package/dist/esm/api/resources/agentic/index.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/Client.d.mts +279 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/Client.mjs +860 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.d.mts +26 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.d.mts +66 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsListRequest.d.mts +22 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsListRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.d.mts +27 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsUsageRequest.d.mts +22 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsUsageRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/agentic/resources/agents/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/index.d.mts +3 -0
- package/dist/esm/api/resources/agentic/resources/agents/index.mjs +3 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/Client.d.mts +101 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/Client.mjs +357 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/requests/AgenticConnectorsPatchRequest.d.mts +18 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/requests/AgenticConnectorsPatchRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/index.mjs +4 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/Client.d.mts +65 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/Client.mjs +301 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksGetRequest.d.mts +8 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksGetRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksListRequest.d.mts +12 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksListRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestMethod.d.mts +10 -0
- package/dist/esm/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestMethod.mjs +10 -0
- package/dist/esm/api/resources/agentic/resources/agents/types/index.d.mts +2 -0
- package/dist/esm/api/resources/agentic/resources/agents/types/index.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/Client.d.mts +85 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/Client.mjs +310 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/requests/AgenticContextsGetRequest.d.mts +8 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/requests/AgenticContextsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/requests/AgenticContextsListRequest.d.mts +16 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/requests/AgenticContextsListRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/requests/AgenticContextsTraceRequest.d.mts +10 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/requests/AgenticContextsTraceRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/agentic/resources/contexts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/index.d.mts +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/index.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/index.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/client/Client.mjs +169 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/client/requests/AgenticContextsTasksListRequest.d.mts +10 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/client/requests/AgenticContextsTasksListRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/index.d.mts +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/index.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/client/Client.d.mts +33 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/client/Client.mjs +90 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/artifacts/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/Client.d.mts +96 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/Client.mjs +244 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/AgenticFeedbackCreateRequest.d.mts +46 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/AgenticFeedbackCreateRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/feedback/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/agentic/resources/contexts/resources/tasks/resources/index.mjs +3 -0
- package/dist/esm/api/resources/agentic/resources/index.d.mts +7 -0
- package/dist/esm/api/resources/agentic/resources/index.mjs +7 -0
- package/dist/esm/api/resources/agentic/resources/models/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/agentic/resources/models/client/Client.mjs +91 -0
- package/dist/esm/api/resources/agentic/resources/models/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/models/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/models/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/models/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/agentic/resources/registry/client/Client.mjs +12 -0
- package/dist/esm/api/resources/agentic/resources/registry/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/index.d.mts +2 -0
- package/dist/esm/api/resources/agentic/resources/registry/index.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/Client.d.mts +39 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/Client.mjs +155 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/requests/AgenticRegistryConnectorsListRequest.d.mts +15 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/requests/AgenticRegistryConnectorsListRequest.mjs +2 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/index.d.mts +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/index.mjs +1 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/agentic/resources/registry/resources/index.mjs +2 -0
- package/dist/esm/api/resources/agents/client/Client.d.mts +25 -0
- package/dist/esm/api/resources/agents/client/Client.mjs +25 -0
- package/dist/esm/api/resources/auth/index.d.mts +0 -1
- package/dist/esm/api/resources/auth/index.mjs +0 -1
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +1 -7
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +1 -7
- package/dist/esm/api/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/index.mjs +1 -1
- package/dist/esm/api/types/A2ASendMessageConfiguration.d.mts +11 -0
- package/dist/esm/api/types/A2ASendMessageConfiguration.mjs +2 -0
- package/dist/esm/api/types/A2ASendMessageRequest.d.mts +12 -0
- package/dist/esm/api/types/A2ASendMessageRequest.mjs +2 -0
- package/dist/esm/api/types/A2ASendMessageResponse.d.mts +4 -0
- package/dist/esm/api/types/A2ASendMessageResponse.mjs +2 -0
- package/dist/esm/api/types/A2AStreamEventResponse.d.mts +16 -0
- package/dist/esm/api/types/A2AStreamEventResponse.mjs +2 -0
- package/dist/esm/api/types/A2AjsonrpcResponse.d.mts +13 -0
- package/dist/esm/api/types/A2AjsonrpcResponse.mjs +2 -0
- package/dist/esm/api/types/A2AjsonrpcResponseError.d.mts +11 -0
- package/dist/esm/api/types/A2AjsonrpcResponseError.mjs +2 -0
- package/dist/esm/api/types/A2AjsonrpcResponseId.d.mts +1 -0
- package/dist/esm/api/types/A2AjsonrpcResponseId.mjs +2 -0
- package/dist/esm/api/types/AgenticAgentCardResponse.d.mts +34 -0
- package/dist/esm/api/types/AgenticAgentCardResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticAgentCardResponseCapabilities.d.mts +12 -0
- package/dist/esm/api/types/AgenticAgentCardResponseCapabilities.mjs +2 -0
- package/dist/esm/api/types/AgenticAgentCardResponseProvider.d.mts +9 -0
- package/dist/esm/api/types/AgenticAgentCardResponseProvider.mjs +2 -0
- package/dist/esm/api/types/AgenticAgentCardResponseSignaturesItem.d.mts +8 -0
- package/dist/esm/api/types/AgenticAgentCardResponseSignaturesItem.mjs +2 -0
- package/dist/esm/api/types/AgenticAgentCardResponseSkillsItem.d.mts +10 -0
- package/dist/esm/api/types/AgenticAgentCardResponseSkillsItem.mjs +2 -0
- package/dist/esm/api/types/AgenticAgentCardResponseSupportedInterfacesItem.d.mts +9 -0
- package/dist/esm/api/types/AgenticAgentCardResponseSupportedInterfacesItem.mjs +2 -0
- package/dist/esm/api/types/AgenticAgentCardResponseSupportedInterfacesItemProtocolBinding.d.mts +6 -0
- package/dist/esm/api/types/AgenticAgentCardResponseSupportedInterfacesItemProtocolBinding.mjs +6 -0
- package/dist/esm/api/types/AgenticAgentsListResponse.d.mts +10 -0
- package/dist/esm/api/types/AgenticAgentsListResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticAgentsResponse.d.mts +29 -0
- package/dist/esm/api/types/AgenticAgentsResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticConnectorsListResponse.d.mts +8 -0
- package/dist/esm/api/types/AgenticConnectorsListResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticContext.d.mts +16 -0
- package/dist/esm/api/types/AgenticContext.mjs +2 -0
- package/dist/esm/api/types/AgenticContextsDetailResponse.d.mts +11 -0
- package/dist/esm/api/types/AgenticContextsDetailResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticContextsListResponse.d.mts +10 -0
- package/dist/esm/api/types/AgenticContextsListResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticContextsOpenInferenceSpan.d.mts +17 -0
- package/dist/esm/api/types/AgenticContextsOpenInferenceSpan.mjs +2 -0
- package/dist/esm/api/types/AgenticContextsTraceItem.d.mts +10 -0
- package/dist/esm/api/types/AgenticContextsTraceItem.mjs +2 -0
- package/dist/esm/api/types/AgenticContextsTraceItemTrace.d.mts +23 -0
- package/dist/esm/api/types/AgenticContextsTraceItemTrace.mjs +2 -0
- package/dist/esm/api/types/AgenticContextsTraceResponse.d.mts +11 -0
- package/dist/esm/api/types/AgenticContextsTraceResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticFeedbackActor.d.mts +12 -0
- package/dist/esm/api/types/AgenticFeedbackActor.mjs +2 -0
- package/dist/esm/api/types/AgenticFeedbackIdValue.d.mts +4 -0
- package/dist/esm/api/types/AgenticFeedbackIdValue.mjs +2 -0
- package/dist/esm/api/types/AgenticFeedbackLabel.d.mts +35 -0
- package/dist/esm/api/types/AgenticFeedbackLabel.mjs +35 -0
- package/dist/esm/api/types/AgenticFeedbackListResponse.d.mts +8 -0
- package/dist/esm/api/types/AgenticFeedbackListResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticFeedbackMetadata.d.mts +15 -0
- package/dist/esm/api/types/AgenticFeedbackMetadata.mjs +2 -0
- package/dist/esm/api/types/AgenticFeedbackRating.d.mts +9 -0
- package/dist/esm/api/types/AgenticFeedbackRating.mjs +2 -0
- package/dist/esm/api/types/AgenticFeedbackRatingScale.d.mts +10 -0
- package/dist/esm/api/types/AgenticFeedbackRatingScale.mjs +10 -0
- package/dist/esm/api/types/AgenticFeedbackResponse.d.mts +22 -0
- package/dist/esm/api/types/AgenticFeedbackResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticFeedbackTarget.d.mts +8 -0
- package/dist/esm/api/types/AgenticFeedbackTarget.mjs +2 -0
- package/dist/esm/api/types/AgenticModel.d.mts +11 -0
- package/dist/esm/api/types/AgenticModel.mjs +2 -0
- package/dist/esm/api/types/AgenticModelsListResponse.d.mts +8 -0
- package/dist/esm/api/types/AgenticModelsListResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticRegistryConnector.d.mts +32 -0
- package/dist/esm/api/types/AgenticRegistryConnector.mjs +2 -0
- package/dist/esm/api/types/AgenticRegistryConnectorCapabilities.d.mts +13 -0
- package/dist/esm/api/types/AgenticRegistryConnectorCapabilities.mjs +2 -0
- package/dist/esm/api/types/AgenticRegistryConnectorsListResponse.d.mts +10 -0
- package/dist/esm/api/types/AgenticRegistryConnectorsListResponse.mjs +2 -0
- package/dist/esm/api/types/AgenticRegistryIcon.d.mts +11 -0
- package/dist/esm/api/types/AgenticRegistryIcon.mjs +2 -0
- package/dist/esm/api/types/AgentsLabels.d.mts +4 -0
- package/dist/esm/api/types/AgentsLabels.mjs +2 -0
- package/dist/esm/api/types/AgentsLifecycle.d.mts +9 -0
- package/dist/esm/api/types/AgentsLifecycle.mjs +9 -0
- package/dist/esm/api/types/AgentsUsageBucket.d.mts +10 -0
- package/dist/esm/api/types/AgentsUsageBucket.mjs +2 -0
- package/dist/esm/api/types/AgentsUsageGranularity.d.mts +8 -0
- package/dist/esm/api/types/AgentsUsageGranularity.mjs +8 -0
- package/dist/esm/api/types/AgentsUsageMetrics.d.mts +9 -0
- package/dist/esm/api/types/AgentsUsageMetrics.mjs +2 -0
- package/dist/esm/api/types/AgentsUsageReportResponse.d.mts +15 -0
- package/dist/esm/api/types/AgentsUsageReportResponse.mjs +2 -0
- package/dist/esm/api/types/AgentsUserIdValue.d.mts +4 -0
- package/dist/esm/api/types/AgentsUserIdValue.mjs +2 -0
- package/dist/esm/api/types/AgentsVisibility.d.mts +11 -0
- package/dist/esm/api/types/AgentsVisibility.mjs +11 -0
- package/dist/esm/api/{resources/auth/types → types}/AuthTokenRequestBody.d.mts +1 -1
- package/dist/esm/api/types/AuthTokenRequestBody.mjs +2 -0
- package/dist/esm/api/types/CommonA2AConnector.d.mts +19 -0
- package/dist/esm/api/types/CommonA2AConnector.mjs +2 -0
- package/dist/esm/api/types/CommonA2AConnectorCreate.d.mts +12 -0
- package/dist/esm/api/types/CommonA2AConnectorCreate.mjs +2 -0
- package/dist/esm/api/types/CommonAgentConnector.d.mts +16 -0
- package/dist/esm/api/types/CommonAgentConnector.mjs +2 -0
- package/dist/esm/api/types/CommonAgentConnectorCreate.d.mts +10 -0
- package/dist/esm/api/types/CommonAgentConnectorCreate.mjs +2 -0
- package/dist/esm/api/types/CommonAgentIdValue.d.mts +4 -0
- package/dist/esm/api/types/CommonAgentIdValue.mjs +2 -0
- package/dist/esm/api/types/CommonArtifactIdValue.d.mts +4 -0
- package/dist/esm/api/types/CommonArtifactIdValue.mjs +2 -0
- package/dist/esm/api/types/CommonArtifactResponse.d.mts +17 -0
- package/dist/esm/api/types/CommonArtifactResponse.mjs +2 -0
- package/dist/esm/api/types/CommonConnectorAuth.d.mts +19 -0
- package/dist/esm/api/types/CommonConnectorAuth.mjs +2 -0
- package/dist/esm/api/types/CommonConnectorAuthType.d.mts +14 -0
- package/dist/esm/api/types/CommonConnectorAuthType.mjs +14 -0
- package/dist/esm/api/types/CommonConnectorCreateRequest.d.mts +5 -0
- package/dist/esm/api/types/CommonConnectorCreateRequest.mjs +2 -0
- package/dist/esm/api/types/CommonConnectorIdValue.d.mts +4 -0
- package/dist/esm/api/types/CommonConnectorIdValue.mjs +2 -0
- package/dist/esm/api/types/CommonConnectorResponse.d.mts +5 -0
- package/dist/esm/api/types/CommonConnectorResponse.mjs +2 -0
- package/dist/esm/api/types/CommonConnectorType.d.mts +13 -0
- package/dist/esm/api/types/CommonConnectorType.mjs +13 -0
- package/dist/esm/api/types/CommonContextIdValue.d.mts +4 -0
- package/dist/esm/api/types/CommonContextIdValue.mjs +2 -0
- package/dist/esm/api/types/CommonErrorResponse.d.mts +21 -0
- package/dist/esm/api/types/CommonErrorResponse.mjs +2 -0
- package/dist/esm/api/types/CommonErrorResponseError.d.mts +22 -0
- package/dist/esm/api/types/CommonErrorResponseError.mjs +2 -0
- package/dist/esm/api/types/CommonErrorResponseErrorDetails.d.mts +11 -0
- package/dist/esm/api/types/CommonErrorResponseErrorDetails.mjs +2 -0
- package/dist/esm/api/types/CommonErrorResponseErrorDetailsValidationErrorsItem.d.mts +6 -0
- package/dist/esm/api/types/CommonErrorResponseErrorDetailsValidationErrorsItem.mjs +2 -0
- package/dist/esm/api/types/CommonMcpConnector.d.mts +20 -0
- package/dist/esm/api/types/CommonMcpConnector.mjs +2 -0
- package/dist/esm/api/types/CommonMcpConnectorCreate.d.mts +14 -0
- package/dist/esm/api/types/CommonMcpConnectorCreate.mjs +2 -0
- package/dist/esm/api/types/CommonMessage.d.mts +24 -0
- package/dist/esm/api/types/CommonMessage.mjs +2 -0
- package/dist/esm/api/types/CommonMessageIdValue.d.mts +4 -0
- package/dist/esm/api/types/CommonMessageIdValue.mjs +2 -0
- package/dist/esm/api/types/CommonNextPageToken.d.mts +4 -0
- package/dist/esm/api/types/CommonNextPageToken.mjs +2 -0
- package/dist/esm/api/types/CommonPart.d.mts +21 -0
- package/dist/esm/api/types/CommonPart.mjs +2 -0
- package/dist/esm/api/types/CommonRegistryConnectorCreate.d.mts +12 -0
- package/dist/esm/api/types/CommonRegistryConnectorCreate.mjs +2 -0
- package/dist/esm/api/types/CommonRegistryConnectorProvisioned.d.mts +19 -0
- package/dist/esm/api/types/CommonRegistryConnectorProvisioned.mjs +2 -0
- package/dist/esm/api/types/CommonRole.d.mts +6 -0
- package/dist/esm/api/types/CommonRole.mjs +6 -0
- package/dist/esm/api/types/CommonSchemaConnector.d.mts +23 -0
- package/dist/esm/api/types/CommonSchemaConnector.mjs +2 -0
- package/dist/esm/api/types/CommonSchemaConnectorCreate.d.mts +17 -0
- package/dist/esm/api/types/CommonSchemaConnectorCreate.mjs +2 -0
- package/dist/esm/api/types/CommonSchemaConnectorCreateTransition.d.mts +6 -0
- package/dist/esm/api/types/CommonSchemaConnectorCreateTransition.mjs +6 -0
- package/dist/esm/api/types/CommonSchemaConnectorTransition.d.mts +6 -0
- package/dist/esm/api/types/CommonSchemaConnectorTransition.mjs +6 -0
- package/dist/esm/api/types/CommonTaskIdValue.d.mts +4 -0
- package/dist/esm/api/types/CommonTaskIdValue.mjs +2 -0
- package/dist/esm/api/types/CommonTaskListResponse.d.mts +12 -0
- package/dist/esm/api/types/CommonTaskListResponse.mjs +2 -0
- package/dist/esm/api/types/CommonTaskMetadata.d.mts +12 -0
- package/dist/esm/api/types/CommonTaskMetadata.mjs +2 -0
- package/dist/esm/api/types/CommonTaskResponse.d.mts +15 -0
- package/dist/esm/api/types/CommonTaskResponse.mjs +2 -0
- package/dist/esm/api/types/CommonTaskState.d.mts +12 -0
- package/dist/esm/api/types/CommonTaskState.mjs +12 -0
- package/dist/esm/api/types/CommonTaskStatus.d.mts +10 -0
- package/dist/esm/api/types/CommonTaskStatus.mjs +2 -0
- package/dist/esm/api/types/CommonTotalSize.d.mts +4 -0
- package/dist/esm/api/types/CommonTotalSize.mjs +2 -0
- package/dist/esm/api/types/CommonUsage.d.mts +25 -0
- package/dist/esm/api/types/CommonUsage.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +87 -0
- package/dist/esm/api/types/index.mjs +87 -0
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/stream/Stream.d.mts +56 -0
- package/dist/esm/core/stream/Stream.mjs +262 -0
- package/dist/esm/core/stream/index.d.mts +1 -0
- package/dist/esm/core/stream/index.mjs +1 -0
- package/dist/esm/custom/CortiClient.d.mts +4 -0
- package/dist/esm/custom/CortiClient.mjs +6 -0
- package/dist/esm/custom/agentic/CustomAgentic.d.mts +11 -0
- package/dist/esm/custom/agentic/CustomAgentic.mjs +13 -0
- package/dist/esm/custom/agentic/CustomAgenticAgents.d.mts +19 -0
- package/dist/esm/custom/agentic/CustomAgenticAgents.mjs +35 -0
- package/dist/esm/custom/agents/CustomAgents.d.mts +5 -2
- package/dist/esm/custom/agents/CustomAgents.mjs +5 -2
- package/dist/esm/serialization/resources/agentic/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.d.mts +13 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.mjs +9 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.d.mts +20 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.mjs +16 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.d.mts +19 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.mjs +17 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/index.d.mts +3 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/index.mjs +3 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/index.d.mts +3 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/index.mjs +3 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/connectors/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/connectors/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/connectors/client/requests/AgenticConnectorsPatchRequest.d.mts +14 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/connectors/client/requests/AgenticConnectorsPatchRequest.mjs +10 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/connectors/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/connectors/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/connectors/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/connectors/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.d.mts +7 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.mjs +3 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestMethod.d.mts +7 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestMethod.mjs +10 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/types/index.d.mts +2 -0
- package/dist/esm/serialization/resources/agentic/resources/agents/types/index.mjs +2 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/AgenticFeedbackCreateRequest.d.mts +17 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/AgenticFeedbackCreateRequest.mjs +13 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/feedback/index.mjs +1 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/agentic/resources/contexts/resources/tasks/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/agentic/resources/index.d.mts +4 -0
- package/dist/esm/serialization/resources/agentic/resources/index.mjs +4 -0
- package/dist/esm/serialization/resources/index.d.mts +1 -2
- package/dist/esm/serialization/resources/index.mjs +1 -2
- package/dist/esm/serialization/types/A2ASendMessageConfiguration.d.mts +11 -0
- package/dist/esm/serialization/types/A2ASendMessageConfiguration.mjs +7 -0
- package/dist/esm/serialization/types/A2ASendMessageRequest.d.mts +14 -0
- package/dist/esm/serialization/types/A2ASendMessageRequest.mjs +10 -0
- package/dist/esm/serialization/types/A2ASendMessageResponse.d.mts +7 -0
- package/dist/esm/serialization/types/A2ASendMessageResponse.mjs +3 -0
- package/dist/esm/serialization/types/A2AStreamEventResponse.d.mts +12 -0
- package/dist/esm/serialization/types/A2AStreamEventResponse.mjs +8 -0
- package/dist/esm/serialization/types/A2AjsonrpcResponse.d.mts +14 -0
- package/dist/esm/serialization/types/A2AjsonrpcResponse.mjs +10 -0
- package/dist/esm/serialization/types/A2AjsonrpcResponseError.d.mts +11 -0
- package/dist/esm/serialization/types/A2AjsonrpcResponseError.mjs +7 -0
- package/dist/esm/serialization/types/A2AjsonrpcResponseId.d.mts +7 -0
- package/dist/esm/serialization/types/A2AjsonrpcResponseId.mjs +3 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponse.d.mts +27 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponse.mjs +25 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseCapabilities.d.mts +10 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseCapabilities.mjs +6 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseProvider.d.mts +10 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseProvider.mjs +6 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseSignaturesItem.d.mts +11 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseSignaturesItem.mjs +7 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseSkillsItem.d.mts +12 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseSkillsItem.mjs +8 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseSupportedInterfacesItem.d.mts +12 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseSupportedInterfacesItem.mjs +8 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseSupportedInterfacesItemProtocolBinding.d.mts +7 -0
- package/dist/esm/serialization/types/AgenticAgentCardResponseSupportedInterfacesItemProtocolBinding.mjs +3 -0
- package/dist/esm/serialization/types/AgenticAgentsListResponse.d.mts +14 -0
- package/dist/esm/serialization/types/AgenticAgentsListResponse.mjs +10 -0
- package/dist/esm/serialization/types/AgenticAgentsResponse.d.mts +26 -0
- package/dist/esm/serialization/types/AgenticAgentsResponse.mjs +22 -0
- package/dist/esm/serialization/types/AgenticConnectorsListResponse.d.mts +10 -0
- package/dist/esm/serialization/types/AgenticConnectorsListResponse.mjs +6 -0
- package/dist/esm/serialization/types/AgenticContext.d.mts +16 -0
- package/dist/esm/serialization/types/AgenticContext.mjs +12 -0
- package/dist/esm/serialization/types/AgenticContextsDetailResponse.d.mts +11 -0
- package/dist/esm/serialization/types/AgenticContextsDetailResponse.mjs +9 -0
- package/dist/esm/serialization/types/AgenticContextsListResponse.d.mts +14 -0
- package/dist/esm/serialization/types/AgenticContextsListResponse.mjs +10 -0
- package/dist/esm/serialization/types/AgenticContextsOpenInferenceSpan.d.mts +14 -0
- package/dist/esm/serialization/types/AgenticContextsOpenInferenceSpan.mjs +10 -0
- package/dist/esm/serialization/types/AgenticContextsTraceItem.d.mts +12 -0
- package/dist/esm/serialization/types/AgenticContextsTraceItem.mjs +8 -0
- package/dist/esm/serialization/types/AgenticContextsTraceItemTrace.d.mts +17 -0
- package/dist/esm/serialization/types/AgenticContextsTraceItemTrace.mjs +13 -0
- package/dist/esm/serialization/types/AgenticContextsTraceResponse.d.mts +14 -0
- package/dist/esm/serialization/types/AgenticContextsTraceResponse.mjs +10 -0
- package/dist/esm/serialization/types/AgenticFeedbackActor.d.mts +9 -0
- package/dist/esm/serialization/types/AgenticFeedbackActor.mjs +5 -0
- package/dist/esm/serialization/types/AgenticFeedbackIdValue.d.mts +7 -0
- package/dist/esm/serialization/types/AgenticFeedbackIdValue.mjs +3 -0
- package/dist/esm/serialization/types/AgenticFeedbackLabel.d.mts +7 -0
- package/dist/esm/serialization/types/AgenticFeedbackLabel.mjs +18 -0
- package/dist/esm/serialization/types/AgenticFeedbackListResponse.d.mts +10 -0
- package/dist/esm/serialization/types/AgenticFeedbackListResponse.mjs +6 -0
- package/dist/esm/serialization/types/AgenticFeedbackMetadata.d.mts +12 -0
- package/dist/esm/serialization/types/AgenticFeedbackMetadata.mjs +8 -0
- package/dist/esm/serialization/types/AgenticFeedbackRating.d.mts +11 -0
- package/dist/esm/serialization/types/AgenticFeedbackRating.mjs +7 -0
- package/dist/esm/serialization/types/AgenticFeedbackRatingScale.d.mts +7 -0
- package/dist/esm/serialization/types/AgenticFeedbackRatingScale.mjs +3 -0
- package/dist/esm/serialization/types/AgenticFeedbackResponse.d.mts +23 -0
- package/dist/esm/serialization/types/AgenticFeedbackResponse.mjs +19 -0
- package/dist/esm/serialization/types/AgenticFeedbackTarget.d.mts +10 -0
- package/dist/esm/serialization/types/AgenticFeedbackTarget.mjs +6 -0
- package/dist/esm/serialization/types/AgenticModel.d.mts +11 -0
- package/dist/esm/serialization/types/AgenticModel.mjs +7 -0
- package/dist/esm/serialization/types/AgenticModelsListResponse.d.mts +10 -0
- package/dist/esm/serialization/types/AgenticModelsListResponse.mjs +6 -0
- package/dist/esm/serialization/types/AgenticRegistryConnector.d.mts +24 -0
- package/dist/esm/serialization/types/AgenticRegistryConnector.mjs +20 -0
- package/dist/esm/serialization/types/AgenticRegistryConnectorCapabilities.d.mts +12 -0
- package/dist/esm/serialization/types/AgenticRegistryConnectorCapabilities.mjs +8 -0
- package/dist/esm/serialization/types/AgenticRegistryConnectorsListResponse.d.mts +14 -0
- package/dist/esm/serialization/types/AgenticRegistryConnectorsListResponse.mjs +10 -0
- package/dist/esm/serialization/types/AgenticRegistryIcon.d.mts +11 -0
- package/dist/esm/serialization/types/AgenticRegistryIcon.mjs +7 -0
- package/dist/esm/serialization/types/AgentsLabels.d.mts +7 -0
- package/dist/esm/serialization/types/AgentsLabels.mjs +3 -0
- package/dist/esm/serialization/types/AgentsLifecycle.d.mts +7 -0
- package/dist/esm/serialization/types/AgentsLifecycle.mjs +3 -0
- package/dist/esm/serialization/types/AgentsUsageBucket.d.mts +11 -0
- package/dist/esm/serialization/types/AgentsUsageBucket.mjs +9 -0
- package/dist/esm/serialization/types/AgentsUsageGranularity.d.mts +7 -0
- package/dist/esm/serialization/types/AgentsUsageGranularity.mjs +3 -0
- package/dist/esm/serialization/types/AgentsUsageMetrics.d.mts +10 -0
- package/dist/esm/serialization/types/AgentsUsageMetrics.mjs +6 -0
- package/dist/esm/serialization/types/AgentsUsageReportResponse.d.mts +16 -0
- package/dist/esm/serialization/types/AgentsUsageReportResponse.mjs +12 -0
- package/dist/esm/serialization/types/AgentsUserIdValue.d.mts +7 -0
- package/dist/esm/serialization/types/AgentsUserIdValue.mjs +3 -0
- package/dist/esm/serialization/types/AgentsVisibility.d.mts +7 -0
- package/dist/esm/serialization/types/AgentsVisibility.mjs +3 -0
- package/dist/esm/serialization/types/AuthTokenRequestBody.d.mts +12 -0
- package/dist/esm/serialization/types/AuthTokenRequestBody.mjs +14 -0
- package/dist/esm/serialization/types/CommonA2AConnector.d.mts +14 -0
- package/dist/esm/serialization/types/CommonA2AConnector.mjs +10 -0
- package/dist/esm/serialization/types/CommonA2AConnectorCreate.d.mts +12 -0
- package/dist/esm/serialization/types/CommonA2AConnectorCreate.mjs +8 -0
- package/dist/esm/serialization/types/CommonAgentConnector.d.mts +14 -0
- package/dist/esm/serialization/types/CommonAgentConnector.mjs +10 -0
- package/dist/esm/serialization/types/CommonAgentConnectorCreate.d.mts +12 -0
- package/dist/esm/serialization/types/CommonAgentConnectorCreate.mjs +8 -0
- package/dist/esm/serialization/types/CommonAgentIdValue.d.mts +7 -0
- package/dist/esm/serialization/types/CommonAgentIdValue.mjs +3 -0
- package/dist/esm/serialization/types/CommonArtifactIdValue.d.mts +7 -0
- package/dist/esm/serialization/types/CommonArtifactIdValue.mjs +3 -0
- package/dist/esm/serialization/types/CommonArtifactResponse.d.mts +16 -0
- package/dist/esm/serialization/types/CommonArtifactResponse.mjs +12 -0
- package/dist/esm/serialization/types/CommonConnectorAuth.d.mts +13 -0
- package/dist/esm/serialization/types/CommonConnectorAuth.mjs +9 -0
- package/dist/esm/serialization/types/CommonConnectorAuthType.d.mts +7 -0
- package/dist/esm/serialization/types/CommonConnectorAuthType.mjs +3 -0
- package/dist/esm/serialization/types/CommonConnectorCreateRequest.d.mts +12 -0
- package/dist/esm/serialization/types/CommonConnectorCreateRequest.mjs +14 -0
- package/dist/esm/serialization/types/CommonConnectorIdValue.d.mts +7 -0
- package/dist/esm/serialization/types/CommonConnectorIdValue.mjs +3 -0
- package/dist/esm/serialization/types/CommonConnectorResponse.d.mts +12 -0
- package/dist/esm/serialization/types/CommonConnectorResponse.mjs +14 -0
- package/dist/esm/serialization/types/CommonConnectorType.d.mts +7 -0
- package/dist/esm/serialization/types/CommonConnectorType.mjs +3 -0
- package/dist/esm/serialization/types/CommonContextIdValue.d.mts +7 -0
- package/dist/esm/serialization/types/CommonContextIdValue.mjs +3 -0
- package/dist/esm/serialization/types/CommonErrorResponse.d.mts +10 -0
- package/dist/esm/serialization/types/CommonErrorResponse.mjs +6 -0
- package/dist/esm/serialization/types/CommonErrorResponseError.d.mts +14 -0
- package/dist/esm/serialization/types/CommonErrorResponseError.mjs +10 -0
- package/dist/esm/serialization/types/CommonErrorResponseErrorDetails.d.mts +11 -0
- package/dist/esm/serialization/types/CommonErrorResponseErrorDetails.mjs +8 -0
- package/dist/esm/serialization/types/CommonErrorResponseErrorDetailsValidationErrorsItem.d.mts +10 -0
- package/dist/esm/serialization/types/CommonErrorResponseErrorDetailsValidationErrorsItem.mjs +6 -0
- package/dist/esm/serialization/types/CommonMcpConnector.d.mts +16 -0
- package/dist/esm/serialization/types/CommonMcpConnector.mjs +12 -0
- package/dist/esm/serialization/types/CommonMcpConnectorCreate.d.mts +14 -0
- package/dist/esm/serialization/types/CommonMcpConnectorCreate.mjs +10 -0
- package/dist/esm/serialization/types/CommonMessage.d.mts +21 -0
- package/dist/esm/serialization/types/CommonMessage.mjs +17 -0
- package/dist/esm/serialization/types/CommonMessageIdValue.d.mts +7 -0
- package/dist/esm/serialization/types/CommonMessageIdValue.mjs +3 -0
- package/dist/esm/serialization/types/CommonNextPageToken.d.mts +7 -0
- package/dist/esm/serialization/types/CommonNextPageToken.mjs +3 -0
- package/dist/esm/serialization/types/CommonPart.d.mts +16 -0
- package/dist/esm/serialization/types/CommonPart.mjs +13 -0
- package/dist/esm/serialization/types/CommonRegistryConnectorCreate.d.mts +12 -0
- package/dist/esm/serialization/types/CommonRegistryConnectorCreate.mjs +8 -0
- package/dist/esm/serialization/types/CommonRegistryConnectorProvisioned.d.mts +14 -0
- package/dist/esm/serialization/types/CommonRegistryConnectorProvisioned.mjs +10 -0
- package/dist/esm/serialization/types/CommonRole.d.mts +7 -0
- package/dist/esm/serialization/types/CommonRole.mjs +3 -0
- package/dist/esm/serialization/types/CommonSchemaConnector.d.mts +17 -0
- package/dist/esm/serialization/types/CommonSchemaConnector.mjs +13 -0
- package/dist/esm/serialization/types/CommonSchemaConnectorCreate.d.mts +15 -0
- package/dist/esm/serialization/types/CommonSchemaConnectorCreate.mjs +11 -0
- package/dist/esm/serialization/types/CommonSchemaConnectorCreateTransition.d.mts +7 -0
- package/dist/esm/serialization/types/CommonSchemaConnectorCreateTransition.mjs +3 -0
- package/dist/esm/serialization/types/CommonSchemaConnectorTransition.d.mts +7 -0
- package/dist/esm/serialization/types/CommonSchemaConnectorTransition.mjs +3 -0
- package/dist/esm/serialization/types/CommonTaskIdValue.d.mts +7 -0
- package/dist/esm/serialization/types/CommonTaskIdValue.mjs +3 -0
- package/dist/esm/serialization/types/CommonTaskListResponse.d.mts +15 -0
- package/dist/esm/serialization/types/CommonTaskListResponse.mjs +11 -0
- package/dist/esm/serialization/types/CommonTaskMetadata.d.mts +11 -0
- package/dist/esm/serialization/types/CommonTaskMetadata.mjs +8 -0
- package/dist/esm/serialization/types/CommonTaskResponse.d.mts +20 -0
- package/dist/esm/serialization/types/CommonTaskResponse.mjs +16 -0
- package/dist/esm/serialization/types/CommonTaskState.d.mts +7 -0
- package/dist/esm/serialization/types/CommonTaskState.mjs +12 -0
- package/dist/esm/serialization/types/CommonTaskStatus.d.mts +13 -0
- package/dist/esm/serialization/types/CommonTaskStatus.mjs +9 -0
- package/dist/esm/serialization/types/CommonTotalSize.d.mts +7 -0
- package/dist/esm/serialization/types/CommonTotalSize.mjs +3 -0
- package/dist/esm/serialization/types/CommonUsage.d.mts +15 -0
- package/dist/esm/serialization/types/CommonUsage.mjs +11 -0
- package/dist/esm/serialization/types/index.d.mts +87 -0
- package/dist/esm/serialization/types/index.mjs +87 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/resources/auth/types/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/auth/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/auth/types/AuthTokenRequestBody.d.ts +0 -12
- package/dist/cjs/serialization/resources/auth/types/index.d.ts +0 -1
- package/dist/esm/api/resources/auth/types/index.d.mts +0 -1
- package/dist/esm/api/resources/auth/types/index.mjs +0 -1
- package/dist/esm/serialization/resources/auth/index.d.mts +0 -1
- package/dist/esm/serialization/resources/auth/index.mjs +0 -1
- package/dist/esm/serialization/resources/auth/types/AuthTokenRequestBody.d.mts +0 -12
- package/dist/esm/serialization/resources/auth/types/AuthTokenRequestBody.mjs +0 -14
- package/dist/esm/serialization/resources/auth/types/index.d.mts +0 -1
- package/dist/esm/serialization/resources/auth/types/index.mjs +0 -1
- /package/dist/cjs/api/resources/{auth/types/AuthTokenRequestBody.js → agentic/resources/agents/client/requests/A2AjsonrpcRequest.js} +0 -0
- /package/dist/esm/api/resources/{auth/types/AuthTokenRequestBody.mjs → agentic/resources/agents/client/requests/A2AjsonrpcRequest.mjs} +0 -0
|
@@ -0,0 +1,860 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
14
|
+
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
15
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
16
|
+
import * as serializers from "../../../../../../serialization/index.mjs";
|
|
17
|
+
import * as Corti from "../../../../../index.mjs";
|
|
18
|
+
import { ConnectorsClient } from "../resources/connectors/client/Client.mjs";
|
|
19
|
+
import { TasksClient } from "../resources/tasks/client/Client.mjs";
|
|
20
|
+
export class AgentsClient {
|
|
21
|
+
constructor(options) {
|
|
22
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
23
|
+
}
|
|
24
|
+
get tasks() {
|
|
25
|
+
var _a;
|
|
26
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new TasksClient(this._options)));
|
|
27
|
+
}
|
|
28
|
+
get connectors() {
|
|
29
|
+
var _a;
|
|
30
|
+
return ((_a = this._connectors) !== null && _a !== void 0 ? _a : (this._connectors = new ConnectorsClient(this._options)));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @beta This endpoint is in pre-release and may change.
|
|
34
|
+
*
|
|
35
|
+
* Lists agents visible to the caller. `private` agents are visible only to
|
|
36
|
+
* their creator/service principal; `unlisted` agents are omitted (fetch by
|
|
37
|
+
* ID instead); `public` agents are listed tenant-wide.
|
|
38
|
+
* The `visibility`, `lifecycle`, `label`, and `q` filter parameters are accepted but not yet honored by the server; the response is unfiltered.
|
|
39
|
+
*
|
|
40
|
+
* @param {Corti.agentic.AgenticAgentsListRequest} request
|
|
41
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link Corti.BadRequestError}
|
|
44
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* await client.agentic.agents.list({
|
|
48
|
+
* label: ["team=coding"],
|
|
49
|
+
* q: "coder"
|
|
50
|
+
* })
|
|
51
|
+
*/
|
|
52
|
+
list() {
|
|
53
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
54
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
56
|
+
const { pageSize, pageToken, visibility, lifecycle, label, q } = request;
|
|
57
|
+
const _queryParams = {
|
|
58
|
+
pageSize,
|
|
59
|
+
pageToken,
|
|
60
|
+
visibility: Array.isArray(visibility)
|
|
61
|
+
? visibility.map((item) => serializers.AgentsVisibility.jsonOrThrow(item, {
|
|
62
|
+
unrecognizedObjectKeys: "strip",
|
|
63
|
+
omitUndefined: true,
|
|
64
|
+
}))
|
|
65
|
+
: visibility != null
|
|
66
|
+
? serializers.AgentsVisibility.jsonOrThrow(visibility, {
|
|
67
|
+
unrecognizedObjectKeys: "strip",
|
|
68
|
+
omitUndefined: true,
|
|
69
|
+
})
|
|
70
|
+
: undefined,
|
|
71
|
+
lifecycle: lifecycle != null
|
|
72
|
+
? serializers.AgentsLifecycle.jsonOrThrow(lifecycle, {
|
|
73
|
+
unrecognizedObjectKeys: "strip",
|
|
74
|
+
omitUndefined: true,
|
|
75
|
+
})
|
|
76
|
+
: undefined,
|
|
77
|
+
label,
|
|
78
|
+
q,
|
|
79
|
+
};
|
|
80
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
81
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
82
|
+
const _response = yield core.fetcher({
|
|
83
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "agentic/agents"),
|
|
84
|
+
method: "GET",
|
|
85
|
+
headers: _headers,
|
|
86
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
87
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
88
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
89
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
91
|
+
logging: this._options.logging,
|
|
92
|
+
});
|
|
93
|
+
if (_response.ok) {
|
|
94
|
+
return {
|
|
95
|
+
data: serializers.AgenticAgentsListResponse.parseOrThrow(_response.body, {
|
|
96
|
+
unrecognizedObjectKeys: "passthrough",
|
|
97
|
+
allowUnrecognizedUnionMembers: true,
|
|
98
|
+
allowUnrecognizedEnumValues: true,
|
|
99
|
+
skipValidation: true,
|
|
100
|
+
breadcrumbsPrefix: ["response"],
|
|
101
|
+
}),
|
|
102
|
+
rawResponse: _response.rawResponse,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
if (_response.error.reason === "status-code") {
|
|
106
|
+
switch (_response.error.statusCode) {
|
|
107
|
+
case 400:
|
|
108
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
109
|
+
case 401:
|
|
110
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
111
|
+
default:
|
|
112
|
+
throw new errors.CortiError({
|
|
113
|
+
statusCode: _response.error.statusCode,
|
|
114
|
+
body: _response.error.body,
|
|
115
|
+
rawResponse: _response.rawResponse,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/agentic/agents");
|
|
120
|
+
}));
|
|
121
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
122
|
+
return new core.Page({
|
|
123
|
+
response: dataWithRawResponse.data,
|
|
124
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
125
|
+
hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.nextPageToken) != null &&
|
|
126
|
+
!(typeof (response === null || response === void 0 ? void 0 : response.nextPageToken) === "string" && (response === null || response === void 0 ? void 0 : response.nextPageToken) === ""),
|
|
127
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.agents) !== null && _a !== void 0 ? _a : []; },
|
|
128
|
+
loadPage: (response) => {
|
|
129
|
+
return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.nextPageToken));
|
|
130
|
+
},
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @beta This endpoint is in pre-release and may change.
|
|
136
|
+
*
|
|
137
|
+
* Creates a new agent. The server assigns the UUIDv7 `id`.
|
|
138
|
+
*
|
|
139
|
+
* @param {Corti.agentic.AgenticAgentsCreateRequest} request
|
|
140
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link Corti.BadRequestError}
|
|
143
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
144
|
+
* @throws {@link Corti.ForbiddenError}
|
|
145
|
+
* @throws {@link Corti.ConflictError}
|
|
146
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* await client.agentic.agents.create({
|
|
150
|
+
* name: "coder",
|
|
151
|
+
* description: "Returns ICD-10 codes for a clinical encounter.",
|
|
152
|
+
* systemPrompt: "Respond with only the ICD-10 code.",
|
|
153
|
+
* model: "corti-default",
|
|
154
|
+
* visibility: "private",
|
|
155
|
+
* lifecycle: "persistent",
|
|
156
|
+
* connectors: [{
|
|
157
|
+
* type: "registry",
|
|
158
|
+
* name: "@corti/coding-expert"
|
|
159
|
+
* }, {
|
|
160
|
+
* type: "mcp",
|
|
161
|
+
* name: "policybot",
|
|
162
|
+
* url: "https://mcp.example.com",
|
|
163
|
+
* auth: {
|
|
164
|
+
* type: "oauth2",
|
|
165
|
+
* scope: "read:policies",
|
|
166
|
+
* redirectUrl: "https://app.corti.ai/oauth/callback"
|
|
167
|
+
* }
|
|
168
|
+
* }, {
|
|
169
|
+
* type: "schema",
|
|
170
|
+
* name: "submit_code",
|
|
171
|
+
* description: "Submit the final ICD-10 code for the encounter along with a confidence score.",
|
|
172
|
+
* schema: {
|
|
173
|
+
* "type": "object",
|
|
174
|
+
* "properties": {
|
|
175
|
+
* "code": {
|
|
176
|
+
* "type": "string",
|
|
177
|
+
* "description": "The selected ICD-10 code."
|
|
178
|
+
* },
|
|
179
|
+
* "confidence": {
|
|
180
|
+
* "type": "number",
|
|
181
|
+
* "minimum": 0,
|
|
182
|
+
* "maximum": 1
|
|
183
|
+
* }
|
|
184
|
+
* },
|
|
185
|
+
* "required": [
|
|
186
|
+
* "code"
|
|
187
|
+
* ]
|
|
188
|
+
* },
|
|
189
|
+
* transition: "complete"
|
|
190
|
+
* }],
|
|
191
|
+
* labels: {
|
|
192
|
+
* "team": "coding",
|
|
193
|
+
* "env": "prod"
|
|
194
|
+
* }
|
|
195
|
+
* })
|
|
196
|
+
*/
|
|
197
|
+
create(request, requestOptions) {
|
|
198
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
199
|
+
}
|
|
200
|
+
__create(request, requestOptions) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
203
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
204
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
205
|
+
const _response = yield core.fetcher({
|
|
206
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "agentic/agents"),
|
|
207
|
+
method: "POST",
|
|
208
|
+
headers: _headers,
|
|
209
|
+
contentType: "application/json",
|
|
210
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
211
|
+
requestType: "json",
|
|
212
|
+
body: serializers.agentic.AgenticAgentsCreateRequest.jsonOrThrow(request, {
|
|
213
|
+
unrecognizedObjectKeys: "strip",
|
|
214
|
+
omitUndefined: true,
|
|
215
|
+
}),
|
|
216
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
217
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
218
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
219
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
220
|
+
logging: this._options.logging,
|
|
221
|
+
});
|
|
222
|
+
if (_response.ok) {
|
|
223
|
+
return {
|
|
224
|
+
data: serializers.AgenticAgentsResponse.parseOrThrow(_response.body, {
|
|
225
|
+
unrecognizedObjectKeys: "passthrough",
|
|
226
|
+
allowUnrecognizedUnionMembers: true,
|
|
227
|
+
allowUnrecognizedEnumValues: true,
|
|
228
|
+
skipValidation: true,
|
|
229
|
+
breadcrumbsPrefix: ["response"],
|
|
230
|
+
}),
|
|
231
|
+
rawResponse: _response.rawResponse,
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
if (_response.error.reason === "status-code") {
|
|
235
|
+
switch (_response.error.statusCode) {
|
|
236
|
+
case 400:
|
|
237
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
238
|
+
case 401:
|
|
239
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
240
|
+
case 403:
|
|
241
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
242
|
+
case 409:
|
|
243
|
+
throw new Corti.ConflictError(_response.error.body, _response.rawResponse);
|
|
244
|
+
case 422:
|
|
245
|
+
throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
246
|
+
default:
|
|
247
|
+
throw new errors.CortiError({
|
|
248
|
+
statusCode: _response.error.statusCode,
|
|
249
|
+
body: _response.error.body,
|
|
250
|
+
rawResponse: _response.rawResponse,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/agentic/agents");
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* @beta This endpoint is in pre-release and may change.
|
|
259
|
+
*
|
|
260
|
+
* @param {Corti.CommonAgentIdValue} agentId - Agent identifier (prefixed UUIDv7).
|
|
261
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
262
|
+
*
|
|
263
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
264
|
+
* @throws {@link Corti.ForbiddenError}
|
|
265
|
+
* @throws {@link Corti.NotFoundError}
|
|
266
|
+
*
|
|
267
|
+
* @example
|
|
268
|
+
* await client.agentic.agents.get("agt.0192f4c8-2c5a-7b3e-9f1a-3c8d6e2b7a40")
|
|
269
|
+
*/
|
|
270
|
+
get(agentId, requestOptions) {
|
|
271
|
+
return core.HttpResponsePromise.fromPromise(this.__get(agentId, requestOptions));
|
|
272
|
+
}
|
|
273
|
+
__get(agentId, requestOptions) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
276
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
277
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
278
|
+
const _response = yield core.fetcher({
|
|
279
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `agentic/agents/${core.url.encodePathParam(serializers.CommonAgentIdValue.jsonOrThrow(agentId, { omitUndefined: true }))}`),
|
|
280
|
+
method: "GET",
|
|
281
|
+
headers: _headers,
|
|
282
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
283
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
284
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
285
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
286
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
287
|
+
logging: this._options.logging,
|
|
288
|
+
});
|
|
289
|
+
if (_response.ok) {
|
|
290
|
+
return {
|
|
291
|
+
data: serializers.AgenticAgentsResponse.parseOrThrow(_response.body, {
|
|
292
|
+
unrecognizedObjectKeys: "passthrough",
|
|
293
|
+
allowUnrecognizedUnionMembers: true,
|
|
294
|
+
allowUnrecognizedEnumValues: true,
|
|
295
|
+
skipValidation: true,
|
|
296
|
+
breadcrumbsPrefix: ["response"],
|
|
297
|
+
}),
|
|
298
|
+
rawResponse: _response.rawResponse,
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
if (_response.error.reason === "status-code") {
|
|
302
|
+
switch (_response.error.statusCode) {
|
|
303
|
+
case 401:
|
|
304
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
305
|
+
case 403:
|
|
306
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
307
|
+
case 404:
|
|
308
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
309
|
+
default:
|
|
310
|
+
throw new errors.CortiError({
|
|
311
|
+
statusCode: _response.error.statusCode,
|
|
312
|
+
body: _response.error.body,
|
|
313
|
+
rawResponse: _response.rawResponse,
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/agentic/agents/{agentId}");
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* @beta This endpoint is in pre-release and may change.
|
|
322
|
+
*
|
|
323
|
+
* Deletes a `persistent` agent. `ephemeral` agents are expired in place.
|
|
324
|
+
* Idempotent: deleting an already-deleted agent returns `204`.
|
|
325
|
+
*
|
|
326
|
+
* @param {Corti.CommonAgentIdValue} agentId - Agent identifier (prefixed UUIDv7).
|
|
327
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
328
|
+
*
|
|
329
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
330
|
+
* @throws {@link Corti.ForbiddenError}
|
|
331
|
+
* @throws {@link Corti.NotFoundError}
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* await client.agentic.agents.delete("agt.0192f4c8-2c5a-7b3e-9f1a-3c8d6e2b7a40")
|
|
335
|
+
*/
|
|
336
|
+
delete(agentId, requestOptions) {
|
|
337
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(agentId, requestOptions));
|
|
338
|
+
}
|
|
339
|
+
__delete(agentId, requestOptions) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
342
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
343
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
344
|
+
const _response = yield core.fetcher({
|
|
345
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `agentic/agents/${core.url.encodePathParam(serializers.CommonAgentIdValue.jsonOrThrow(agentId, { omitUndefined: true }))}`),
|
|
346
|
+
method: "DELETE",
|
|
347
|
+
headers: _headers,
|
|
348
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
349
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
350
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
351
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
352
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
353
|
+
logging: this._options.logging,
|
|
354
|
+
});
|
|
355
|
+
if (_response.ok) {
|
|
356
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
357
|
+
}
|
|
358
|
+
if (_response.error.reason === "status-code") {
|
|
359
|
+
switch (_response.error.statusCode) {
|
|
360
|
+
case 401:
|
|
361
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
362
|
+
case 403:
|
|
363
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
364
|
+
case 404:
|
|
365
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
366
|
+
default:
|
|
367
|
+
throw new errors.CortiError({
|
|
368
|
+
statusCode: _response.error.statusCode,
|
|
369
|
+
body: _response.error.body,
|
|
370
|
+
rawResponse: _response.rawResponse,
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/agentic/agents/{agentId}");
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* @beta This endpoint is in pre-release and may change.
|
|
379
|
+
*
|
|
380
|
+
* Partially updates an agent using JSON Merge Patch (RFC 7386).
|
|
381
|
+
* Omitted fields are unchanged; `null` clears a field; arrays replace.
|
|
382
|
+
*
|
|
383
|
+
* @param {Corti.CommonAgentIdValue} agentId - Agent identifier (prefixed UUIDv7).
|
|
384
|
+
* @param {Corti.agentic.AgenticAgentsPatchRequest} request
|
|
385
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
386
|
+
*
|
|
387
|
+
* @throws {@link Corti.BadRequestError}
|
|
388
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
389
|
+
* @throws {@link Corti.ForbiddenError}
|
|
390
|
+
* @throws {@link Corti.NotFoundError}
|
|
391
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
392
|
+
*
|
|
393
|
+
* @example
|
|
394
|
+
* await client.agentic.agents.update("agt.0192f4c8-2c5a-7b3e-9f1a-3c8d6e2b7a40", {
|
|
395
|
+
* name: "coder-v2",
|
|
396
|
+
* connectors: [{
|
|
397
|
+
* type: "registry",
|
|
398
|
+
* name: "@corti/coding-expert"
|
|
399
|
+
* }]
|
|
400
|
+
* })
|
|
401
|
+
*/
|
|
402
|
+
update(agentId, request = {}, requestOptions) {
|
|
403
|
+
return core.HttpResponsePromise.fromPromise(this.__update(agentId, request, requestOptions));
|
|
404
|
+
}
|
|
405
|
+
__update(agentId_1) {
|
|
406
|
+
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
407
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
408
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
409
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
410
|
+
const _response = yield core.fetcher({
|
|
411
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `agentic/agents/${core.url.encodePathParam(serializers.CommonAgentIdValue.jsonOrThrow(agentId, { omitUndefined: true }))}`),
|
|
412
|
+
method: "PATCH",
|
|
413
|
+
headers: _headers,
|
|
414
|
+
contentType: "application/merge-patch+json",
|
|
415
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
416
|
+
requestType: "json",
|
|
417
|
+
body: serializers.agentic.AgenticAgentsPatchRequest.jsonOrThrow(request, {
|
|
418
|
+
unrecognizedObjectKeys: "strip",
|
|
419
|
+
omitUndefined: true,
|
|
420
|
+
}),
|
|
421
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
422
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
423
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
424
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
425
|
+
logging: this._options.logging,
|
|
426
|
+
});
|
|
427
|
+
if (_response.ok) {
|
|
428
|
+
return {
|
|
429
|
+
data: serializers.AgenticAgentsResponse.parseOrThrow(_response.body, {
|
|
430
|
+
unrecognizedObjectKeys: "passthrough",
|
|
431
|
+
allowUnrecognizedUnionMembers: true,
|
|
432
|
+
allowUnrecognizedEnumValues: true,
|
|
433
|
+
skipValidation: true,
|
|
434
|
+
breadcrumbsPrefix: ["response"],
|
|
435
|
+
}),
|
|
436
|
+
rawResponse: _response.rawResponse,
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
if (_response.error.reason === "status-code") {
|
|
440
|
+
switch (_response.error.statusCode) {
|
|
441
|
+
case 400:
|
|
442
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
443
|
+
case 401:
|
|
444
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
445
|
+
case 403:
|
|
446
|
+
throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
447
|
+
case 404:
|
|
448
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
449
|
+
case 422:
|
|
450
|
+
throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
451
|
+
default:
|
|
452
|
+
throw new errors.CortiError({
|
|
453
|
+
statusCode: _response.error.statusCode,
|
|
454
|
+
body: _response.error.body,
|
|
455
|
+
rawResponse: _response.rawResponse,
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/agentic/agents/{agentId}");
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* @beta This endpoint is in pre-release and may change.
|
|
464
|
+
*
|
|
465
|
+
* Returns the A2A v1.0 agent card describing the agent's capabilities,
|
|
466
|
+
* skills, and supported protocol interfaces. Served at the standard
|
|
467
|
+
* `.well-known` location for agent discovery.
|
|
468
|
+
*
|
|
469
|
+
* @param {Corti.CommonAgentIdValue} agentId - Agent identifier (prefixed UUIDv7).
|
|
470
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
471
|
+
*
|
|
472
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
473
|
+
* @throws {@link Corti.NotFoundError}
|
|
474
|
+
*
|
|
475
|
+
* @example
|
|
476
|
+
* await client.agentic.agents.card("agt.0192f4c8-2c5a-7b3e-9f1a-3c8d6e2b7a40")
|
|
477
|
+
*/
|
|
478
|
+
card(agentId, requestOptions) {
|
|
479
|
+
return core.HttpResponsePromise.fromPromise(this.__card(agentId, requestOptions));
|
|
480
|
+
}
|
|
481
|
+
__card(agentId, requestOptions) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
484
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
485
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
486
|
+
const _response = yield core.fetcher({
|
|
487
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `agentic/agents/${core.url.encodePathParam(serializers.CommonAgentIdValue.jsonOrThrow(agentId, { omitUndefined: true }))}/.well-known/agent-card.json`),
|
|
488
|
+
method: "GET",
|
|
489
|
+
headers: _headers,
|
|
490
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
491
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
492
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
493
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
494
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
495
|
+
logging: this._options.logging,
|
|
496
|
+
});
|
|
497
|
+
if (_response.ok) {
|
|
498
|
+
return {
|
|
499
|
+
data: serializers.AgenticAgentCardResponse.parseOrThrow(_response.body, {
|
|
500
|
+
unrecognizedObjectKeys: "passthrough",
|
|
501
|
+
allowUnrecognizedUnionMembers: true,
|
|
502
|
+
allowUnrecognizedEnumValues: true,
|
|
503
|
+
skipValidation: true,
|
|
504
|
+
breadcrumbsPrefix: ["response"],
|
|
505
|
+
}),
|
|
506
|
+
rawResponse: _response.rawResponse,
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
if (_response.error.reason === "status-code") {
|
|
510
|
+
switch (_response.error.statusCode) {
|
|
511
|
+
case 401:
|
|
512
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
513
|
+
case 404:
|
|
514
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
515
|
+
default:
|
|
516
|
+
throw new errors.CortiError({
|
|
517
|
+
statusCode: _response.error.statusCode,
|
|
518
|
+
body: _response.error.body,
|
|
519
|
+
rawResponse: _response.rawResponse,
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/agentic/agents/{agentId}/.well-known/agent-card.json");
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* @beta This endpoint is in pre-release and may change.
|
|
528
|
+
*
|
|
529
|
+
* The `JSONRPC` protocol binding for A2A v1.0. Accepts a single JSON-RPC 2.0
|
|
530
|
+
* request whose `method` is one of `SendMessage`, `SendStreamingMessage`,
|
|
531
|
+
* `GetTask`, `ListTasks`, `CancelTask`, or `SubscribeToTask`.
|
|
532
|
+
*
|
|
533
|
+
* Streaming methods (`SendStreamingMessage`, `SubscribeToTask`) respond with
|
|
534
|
+
* `text/event-stream`; all others respond with a single JSON-RPC response.
|
|
535
|
+
*
|
|
536
|
+
* @param {Corti.CommonAgentIdValue} agentId - Agent identifier (prefixed UUIDv7).
|
|
537
|
+
* @param {Corti.agentic.A2AjsonrpcRequest} request
|
|
538
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
539
|
+
*
|
|
540
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
541
|
+
* @throws {@link Corti.NotFoundError}
|
|
542
|
+
*
|
|
543
|
+
* @example
|
|
544
|
+
* await client.agentic.agents.jsonRpc("agt.0192f4c8-2c5a-7b3e-9f1a-3c8d6e2b7a40", {
|
|
545
|
+
* id: "1",
|
|
546
|
+
* method: "SendMessage",
|
|
547
|
+
* params: {
|
|
548
|
+
* "message": {
|
|
549
|
+
* "role": "ROLE_USER",
|
|
550
|
+
* "messageId": "msg.0192f4c8-5f8d-7e61-924d-6fb09b5ead73",
|
|
551
|
+
* "parts": [
|
|
552
|
+
* {
|
|
553
|
+
* "text": "Code this encounter."
|
|
554
|
+
* }
|
|
555
|
+
* ]
|
|
556
|
+
* }
|
|
557
|
+
* }
|
|
558
|
+
* })
|
|
559
|
+
*/
|
|
560
|
+
jsonRpc(agentId, request, requestOptions) {
|
|
561
|
+
return core.HttpResponsePromise.fromPromise(this.__jsonRpc(agentId, request, requestOptions));
|
|
562
|
+
}
|
|
563
|
+
__jsonRpc(agentId, request, requestOptions) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
566
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
567
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
568
|
+
"A2A-Version": "1.0",
|
|
569
|
+
"Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName,
|
|
570
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
571
|
+
const _response = yield core.fetcher({
|
|
572
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `agentic/agents/${core.url.encodePathParam(serializers.CommonAgentIdValue.jsonOrThrow(agentId, { omitUndefined: true }))}/a2a`),
|
|
573
|
+
method: "POST",
|
|
574
|
+
headers: _headers,
|
|
575
|
+
contentType: "application/json",
|
|
576
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
577
|
+
requestType: "json",
|
|
578
|
+
body: Object.assign(Object.assign({}, serializers.agentic.A2AjsonrpcRequest.jsonOrThrow(request, {
|
|
579
|
+
unrecognizedObjectKeys: "strip",
|
|
580
|
+
omitUndefined: true,
|
|
581
|
+
})), { jsonrpc: "2.0" }),
|
|
582
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
583
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
584
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
585
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
586
|
+
logging: this._options.logging,
|
|
587
|
+
});
|
|
588
|
+
if (_response.ok) {
|
|
589
|
+
return {
|
|
590
|
+
data: serializers.A2AjsonrpcResponse.parseOrThrow(_response.body, {
|
|
591
|
+
unrecognizedObjectKeys: "passthrough",
|
|
592
|
+
allowUnrecognizedUnionMembers: true,
|
|
593
|
+
allowUnrecognizedEnumValues: true,
|
|
594
|
+
skipValidation: true,
|
|
595
|
+
breadcrumbsPrefix: ["response"],
|
|
596
|
+
}),
|
|
597
|
+
rawResponse: _response.rawResponse,
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
if (_response.error.reason === "status-code") {
|
|
601
|
+
switch (_response.error.statusCode) {
|
|
602
|
+
case 401:
|
|
603
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
604
|
+
case 404:
|
|
605
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
606
|
+
default:
|
|
607
|
+
throw new errors.CortiError({
|
|
608
|
+
statusCode: _response.error.statusCode,
|
|
609
|
+
body: _response.error.body,
|
|
610
|
+
rawResponse: _response.rawResponse,
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/agentic/agents/{agentId}/a2a");
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* @beta This endpoint is in pre-release and may change.
|
|
619
|
+
*
|
|
620
|
+
* The `HTTP+JSON` binding of A2A `SendMessage`.
|
|
621
|
+
*
|
|
622
|
+
* @param {Corti.CommonAgentIdValue} agentId - Agent identifier (prefixed UUIDv7).
|
|
623
|
+
* @param {Corti.A2ASendMessageRequest} request
|
|
624
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
625
|
+
*
|
|
626
|
+
* @throws {@link Corti.BadRequestError}
|
|
627
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
628
|
+
* @throws {@link Corti.NotFoundError}
|
|
629
|
+
*
|
|
630
|
+
* @example
|
|
631
|
+
* await client.agentic.agents.sendMessage("agt.0192f4c8-2c5a-7b3e-9f1a-3c8d6e2b7a40", {
|
|
632
|
+
* message: {
|
|
633
|
+
* messageId: "msg.0192f4c8-5f8d-7e61-924d-6fb09b5ead73",
|
|
634
|
+
* role: "ROLE_USER",
|
|
635
|
+
* parts: [{
|
|
636
|
+
* text: "What is the ICD-10 code for asthma?"
|
|
637
|
+
* }]
|
|
638
|
+
* }
|
|
639
|
+
* })
|
|
640
|
+
*/
|
|
641
|
+
sendMessage(agentId, request, requestOptions) {
|
|
642
|
+
return core.HttpResponsePromise.fromPromise(this.__sendMessage(agentId, request, requestOptions));
|
|
643
|
+
}
|
|
644
|
+
__sendMessage(agentId, request, requestOptions) {
|
|
645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
647
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
648
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
649
|
+
"A2A-Version": "1.0",
|
|
650
|
+
"Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName,
|
|
651
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
652
|
+
const _response = yield core.fetcher({
|
|
653
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `agentic/agents/${core.url.encodePathParam(serializers.CommonAgentIdValue.jsonOrThrow(agentId, { omitUndefined: true }))}/a2a/message:send`),
|
|
654
|
+
method: "POST",
|
|
655
|
+
headers: _headers,
|
|
656
|
+
contentType: "application/json",
|
|
657
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
658
|
+
requestType: "json",
|
|
659
|
+
body: serializers.A2ASendMessageRequest.jsonOrThrow(request, {
|
|
660
|
+
unrecognizedObjectKeys: "strip",
|
|
661
|
+
omitUndefined: true,
|
|
662
|
+
}),
|
|
663
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
664
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
665
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
666
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
667
|
+
logging: this._options.logging,
|
|
668
|
+
});
|
|
669
|
+
if (_response.ok) {
|
|
670
|
+
return {
|
|
671
|
+
data: serializers.A2ASendMessageResponse.parseOrThrow(_response.body, {
|
|
672
|
+
unrecognizedObjectKeys: "passthrough",
|
|
673
|
+
allowUnrecognizedUnionMembers: true,
|
|
674
|
+
allowUnrecognizedEnumValues: true,
|
|
675
|
+
skipValidation: true,
|
|
676
|
+
breadcrumbsPrefix: ["response"],
|
|
677
|
+
}),
|
|
678
|
+
rawResponse: _response.rawResponse,
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
if (_response.error.reason === "status-code") {
|
|
682
|
+
switch (_response.error.statusCode) {
|
|
683
|
+
case 400:
|
|
684
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
685
|
+
case 401:
|
|
686
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
687
|
+
case 404:
|
|
688
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
689
|
+
default:
|
|
690
|
+
throw new errors.CortiError({
|
|
691
|
+
statusCode: _response.error.statusCode,
|
|
692
|
+
body: _response.error.body,
|
|
693
|
+
rawResponse: _response.rawResponse,
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/agentic/agents/{agentId}/a2a/message:send");
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* @beta This endpoint is in pre-release and may change.
|
|
702
|
+
*
|
|
703
|
+
* The `HTTP+JSON` binding of A2A `SendStreamingMessage`. Responds with a
|
|
704
|
+
* `text/event-stream` of `Task`, `statusUpdate`, and `artifactUpdate` events.
|
|
705
|
+
*/
|
|
706
|
+
streamMessage(agentId, request, requestOptions) {
|
|
707
|
+
return core.HttpResponsePromise.fromPromise(this.__streamMessage(agentId, request, requestOptions));
|
|
708
|
+
}
|
|
709
|
+
__streamMessage(agentId, request, requestOptions) {
|
|
710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
711
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
712
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
713
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
714
|
+
"A2A-Version": "1.0",
|
|
715
|
+
"Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName,
|
|
716
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
717
|
+
const _response = yield core.fetcher({
|
|
718
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `agentic/agents/${core.url.encodePathParam(serializers.CommonAgentIdValue.jsonOrThrow(agentId, { omitUndefined: true }))}/a2a/message:stream`),
|
|
719
|
+
method: "POST",
|
|
720
|
+
headers: _headers,
|
|
721
|
+
contentType: "application/json",
|
|
722
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
723
|
+
requestType: "json",
|
|
724
|
+
body: serializers.A2ASendMessageRequest.jsonOrThrow(request, {
|
|
725
|
+
unrecognizedObjectKeys: "strip",
|
|
726
|
+
omitUndefined: true,
|
|
727
|
+
}),
|
|
728
|
+
responseType: "sse",
|
|
729
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
730
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
731
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
732
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
733
|
+
logging: this._options.logging,
|
|
734
|
+
});
|
|
735
|
+
if (_response.ok) {
|
|
736
|
+
return {
|
|
737
|
+
data: new core.Stream({
|
|
738
|
+
stream: _response.body,
|
|
739
|
+
parse: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
740
|
+
return serializers.A2AStreamEventResponse.parseOrThrow(data, {
|
|
741
|
+
unrecognizedObjectKeys: "passthrough",
|
|
742
|
+
allowUnrecognizedUnionMembers: true,
|
|
743
|
+
allowUnrecognizedEnumValues: true,
|
|
744
|
+
skipValidation: true,
|
|
745
|
+
breadcrumbsPrefix: ["response"],
|
|
746
|
+
});
|
|
747
|
+
}),
|
|
748
|
+
signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
749
|
+
eventShape: {
|
|
750
|
+
type: "sse",
|
|
751
|
+
},
|
|
752
|
+
}),
|
|
753
|
+
rawResponse: _response.rawResponse,
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
if (_response.error.reason === "status-code") {
|
|
757
|
+
switch (_response.error.statusCode) {
|
|
758
|
+
case 400:
|
|
759
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
760
|
+
case 401:
|
|
761
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
762
|
+
case 404:
|
|
763
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
764
|
+
default:
|
|
765
|
+
throw new errors.CortiError({
|
|
766
|
+
statusCode: _response.error.statusCode,
|
|
767
|
+
body: _response.error.body,
|
|
768
|
+
rawResponse: _response.rawResponse,
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/agentic/agents/{agentId}/a2a/message:stream");
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* @beta This endpoint is in pre-release and may change.
|
|
777
|
+
*
|
|
778
|
+
* Returns invocation metrics for the agent over the half-open `[from, to)`
|
|
779
|
+
* time range (UTC), bucketed at the requested `granularity`. The response
|
|
780
|
+
* echoes the resolved range and granularity, a `totals` summary across the
|
|
781
|
+
* whole range, and one `buckets` entry per period that had activity (the
|
|
782
|
+
* array is empty when there was none). When `from`/`to` are omitted, the
|
|
783
|
+
* range defaults to the last 30 days.
|
|
784
|
+
*
|
|
785
|
+
* @param {Corti.CommonAgentIdValue} agentId - Agent identifier (prefixed UUIDv7).
|
|
786
|
+
* @param {Corti.agentic.AgenticAgentsUsageRequest} request
|
|
787
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
788
|
+
*
|
|
789
|
+
* @throws {@link Corti.BadRequestError}
|
|
790
|
+
* @throws {@link Corti.UnauthorizedError}
|
|
791
|
+
* @throws {@link Corti.NotFoundError}
|
|
792
|
+
*
|
|
793
|
+
* @example
|
|
794
|
+
* await client.agentic.agents.usage("agt.0192f4c8-2c5a-7b3e-9f1a-3c8d6e2b7a40", {
|
|
795
|
+
* from: new Date("2026-05-19T00:00:00.000Z"),
|
|
796
|
+
* to: new Date("2026-05-20T00:00:00.000Z")
|
|
797
|
+
* })
|
|
798
|
+
*/
|
|
799
|
+
usage(agentId, request = {}, requestOptions) {
|
|
800
|
+
return core.HttpResponsePromise.fromPromise(this.__usage(agentId, request, requestOptions));
|
|
801
|
+
}
|
|
802
|
+
__usage(agentId_1) {
|
|
803
|
+
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
804
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
805
|
+
const { from: from_, to, granularity } = request;
|
|
806
|
+
const _queryParams = {
|
|
807
|
+
from: from_ != null ? from_ === null || from_ === void 0 ? void 0 : from_.toISOString() : undefined,
|
|
808
|
+
to: to != null ? to === null || to === void 0 ? void 0 : to.toISOString() : undefined,
|
|
809
|
+
granularity: granularity != null
|
|
810
|
+
? serializers.AgentsUsageGranularity.jsonOrThrow(granularity, {
|
|
811
|
+
unrecognizedObjectKeys: "strip",
|
|
812
|
+
omitUndefined: true,
|
|
813
|
+
})
|
|
814
|
+
: undefined,
|
|
815
|
+
};
|
|
816
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
817
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
818
|
+
const _response = yield core.fetcher({
|
|
819
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `agentic/agents/${core.url.encodePathParam(serializers.CommonAgentIdValue.jsonOrThrow(agentId, { omitUndefined: true }))}/usage`),
|
|
820
|
+
method: "GET",
|
|
821
|
+
headers: _headers,
|
|
822
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
823
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
824
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
825
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
826
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
827
|
+
logging: this._options.logging,
|
|
828
|
+
});
|
|
829
|
+
if (_response.ok) {
|
|
830
|
+
return {
|
|
831
|
+
data: serializers.AgentsUsageReportResponse.parseOrThrow(_response.body, {
|
|
832
|
+
unrecognizedObjectKeys: "passthrough",
|
|
833
|
+
allowUnrecognizedUnionMembers: true,
|
|
834
|
+
allowUnrecognizedEnumValues: true,
|
|
835
|
+
skipValidation: true,
|
|
836
|
+
breadcrumbsPrefix: ["response"],
|
|
837
|
+
}),
|
|
838
|
+
rawResponse: _response.rawResponse,
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
if (_response.error.reason === "status-code") {
|
|
842
|
+
switch (_response.error.statusCode) {
|
|
843
|
+
case 400:
|
|
844
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
845
|
+
case 401:
|
|
846
|
+
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
847
|
+
case 404:
|
|
848
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
849
|
+
default:
|
|
850
|
+
throw new errors.CortiError({
|
|
851
|
+
statusCode: _response.error.statusCode,
|
|
852
|
+
body: _response.error.body,
|
|
853
|
+
rawResponse: _response.rawResponse,
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/agentic/agents/{agentId}/usage");
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
}
|