opik 0.0.1 → 0.0.2
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/index.cjs +239 -127
- package/dist/index.d.cts +111 -89
- package/dist/index.d.ts +111 -89
- package/dist/index.js +239 -127
- package/package.json +12 -1
- package/examples/manual-trace.js +0 -16
- package/src/opik/client/Client.ts +0 -65
- package/src/opik/config/Config.ts +0 -35
- package/src/opik/index.ts +0 -2
- package/src/opik/rest_api/Client.ts +0 -247
- package/src/opik/rest_api/api/errors/BadRequestError.ts +0 -16
- package/src/opik/rest_api/api/errors/ConflictError.ts +0 -16
- package/src/opik/rest_api/api/errors/ForbiddenError.ts +0 -17
- package/src/opik/rest_api/api/errors/NotFoundError.ts +0 -16
- package/src/opik/rest_api/api/errors/NotImplementedError.ts +0 -16
- package/src/opik/rest_api/api/errors/UnauthorizedError.ts +0 -17
- package/src/opik/rest_api/api/errors/UnprocessableEntityError.ts +0 -16
- package/src/opik/rest_api/api/errors/index.ts +0 -7
- package/src/opik/rest_api/api/index.ts +0 -3
- package/src/opik/rest_api/api/resources/chatCompletions/client/Client.ts +0 -125
- package/src/opik/rest_api/api/resources/chatCompletions/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/chatCompletions/client/requests/ChatCompletionRequest.ts +0 -33
- package/src/opik/rest_api/api/resources/chatCompletions/client/requests/index.ts +0 -1
- package/src/opik/rest_api/api/resources/chatCompletions/index.ts +0 -1
- package/src/opik/rest_api/api/resources/check/client/Client.ts +0 -141
- package/src/opik/rest_api/api/resources/check/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/check/index.ts +0 -1
- package/src/opik/rest_api/api/resources/datasets/client/Client.ts +0 -1244
- package/src/opik/rest_api/api/resources/datasets/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/datasets/client/requests/DatasetIdentifier.ts +0 -13
- package/src/opik/rest_api/api/resources/datasets/client/requests/DatasetIdentifierPublic.ts +0 -13
- package/src/opik/rest_api/api/resources/datasets/client/requests/DatasetItemBatchWrite.ts +0 -21
- package/src/opik/rest_api/api/resources/datasets/client/requests/DatasetItemStreamRequest.ts +0 -9
- package/src/opik/rest_api/api/resources/datasets/client/requests/DatasetItemsDelete.ts +0 -13
- package/src/opik/rest_api/api/resources/datasets/client/requests/DatasetUpdate.ts +0 -14
- package/src/opik/rest_api/api/resources/datasets/client/requests/DatasetWrite.ts +0 -15
- package/src/opik/rest_api/api/resources/datasets/client/requests/FindDatasetItemsWithExperimentItemsRequest.ts +0 -17
- package/src/opik/rest_api/api/resources/datasets/client/requests/FindDatasetsRequest.ts +0 -16
- package/src/opik/rest_api/api/resources/datasets/client/requests/GetDatasetItemsOutputColumnsRequest.ts +0 -11
- package/src/opik/rest_api/api/resources/datasets/client/requests/GetDatasetItemsRequest.ts +0 -13
- package/src/opik/rest_api/api/resources/datasets/client/requests/index.ts +0 -11
- package/src/opik/rest_api/api/resources/datasets/index.ts +0 -1
- package/src/opik/rest_api/api/resources/experiments/client/Client.ts +0 -858
- package/src/opik/rest_api/api/resources/experiments/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/experiments/client/requests/ExperimentItemStreamRequest.ts +0 -9
- package/src/opik/rest_api/api/resources/experiments/client/requests/ExperimentItemsBatch.ts +0 -19
- package/src/opik/rest_api/api/resources/experiments/client/requests/ExperimentItemsDelete.ts +0 -13
- package/src/opik/rest_api/api/resources/experiments/client/requests/ExperimentWrite.ts +0 -19
- package/src/opik/rest_api/api/resources/experiments/client/requests/ExperimentsDelete.ts +0 -13
- package/src/opik/rest_api/api/resources/experiments/client/requests/FindExperimentsRequest.ts +0 -16
- package/src/opik/rest_api/api/resources/experiments/client/requests/FindFeedbackScoreNamesRequest.ts +0 -11
- package/src/opik/rest_api/api/resources/experiments/client/requests/IdentifierPublic.ts +0 -13
- package/src/opik/rest_api/api/resources/experiments/client/requests/index.ts +0 -8
- package/src/opik/rest_api/api/resources/experiments/index.ts +0 -1
- package/src/opik/rest_api/api/resources/feedbackDefinitions/client/Client.ts +0 -515
- package/src/opik/rest_api/api/resources/feedbackDefinitions/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/feedbackDefinitions/client/requests/FindFeedbackDefinitionsRequest.ts +0 -16
- package/src/opik/rest_api/api/resources/feedbackDefinitions/client/requests/index.ts +0 -1
- package/src/opik/rest_api/api/resources/feedbackDefinitions/index.ts +0 -2
- package/src/opik/rest_api/api/resources/feedbackDefinitions/types/FindFeedbackDefinitionsRequestType.ts +0 -10
- package/src/opik/rest_api/api/resources/feedbackDefinitions/types/index.ts +0 -1
- package/src/opik/rest_api/api/resources/index.ts +0 -23
- package/src/opik/rest_api/api/resources/llmProviderKey/client/Client.ts +0 -412
- package/src/opik/rest_api/api/resources/llmProviderKey/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/llmProviderKey/client/requests/ProviderApiKeyUpdate.ts +0 -13
- package/src/opik/rest_api/api/resources/llmProviderKey/client/requests/ProviderApiKeyWrite.ts +0 -13
- package/src/opik/rest_api/api/resources/llmProviderKey/client/requests/index.ts +0 -2
- package/src/opik/rest_api/api/resources/llmProviderKey/index.ts +0 -1
- package/src/opik/rest_api/api/resources/projects/client/Client.ts +0 -720
- package/src/opik/rest_api/api/resources/projects/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/projects/client/requests/FindProjectsRequest.ts +0 -14
- package/src/opik/rest_api/api/resources/projects/client/requests/ProjectMetricRequestPublic.ts +0 -16
- package/src/opik/rest_api/api/resources/projects/client/requests/ProjectRetrievePublic.ts +0 -13
- package/src/opik/rest_api/api/resources/projects/client/requests/ProjectUpdate.ts +0 -12
- package/src/opik/rest_api/api/resources/projects/client/requests/ProjectWrite.ts +0 -14
- package/src/opik/rest_api/api/resources/projects/client/requests/index.ts +0 -5
- package/src/opik/rest_api/api/resources/projects/index.ts +0 -2
- package/src/opik/rest_api/api/resources/projects/types/ProjectMetricRequestPublicInterval.ts +0 -11
- package/src/opik/rest_api/api/resources/projects/types/ProjectMetricRequestPublicMetricType.ts +0 -18
- package/src/opik/rest_api/api/resources/projects/types/index.ts +0 -2
- package/src/opik/rest_api/api/resources/prompts/client/Client.ts +0 -900
- package/src/opik/rest_api/api/resources/prompts/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/prompts/client/requests/CreatePromptVersionDetail.ts +0 -19
- package/src/opik/rest_api/api/resources/prompts/client/requests/GetPromptVersionsRequest.ts +0 -12
- package/src/opik/rest_api/api/resources/prompts/client/requests/GetPromptsRequest.ts +0 -13
- package/src/opik/rest_api/api/resources/prompts/client/requests/PromptUpdatable.ts +0 -14
- package/src/opik/rest_api/api/resources/prompts/client/requests/PromptVersionRetrieveDetail.ts +0 -14
- package/src/opik/rest_api/api/resources/prompts/client/requests/PromptWrite.ts +0 -16
- package/src/opik/rest_api/api/resources/prompts/client/requests/index.ts +0 -6
- package/src/opik/rest_api/api/resources/prompts/index.ts +0 -1
- package/src/opik/rest_api/api/resources/spans/client/Client.ts +0 -957
- package/src/opik/rest_api/api/resources/spans/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/spans/client/requests/FindFeedbackScoreNames1Request.ts +0 -14
- package/src/opik/rest_api/api/resources/spans/client/requests/GetSpanStatsRequest.ts +0 -17
- package/src/opik/rest_api/api/resources/spans/client/requests/GetSpansByProjectRequest.ts +0 -20
- package/src/opik/rest_api/api/resources/spans/client/requests/SpanBatchWrite.ts +0 -20
- package/src/opik/rest_api/api/resources/spans/client/requests/SpanUpdate.ts +0 -29
- package/src/opik/rest_api/api/resources/spans/client/requests/index.ts +0 -5
- package/src/opik/rest_api/api/resources/spans/index.ts +0 -2
- package/src/opik/rest_api/api/resources/spans/types/FindFeedbackScoreNames1RequestType.ts +0 -11
- package/src/opik/rest_api/api/resources/spans/types/GetSpanStatsRequestType.ts +0 -11
- package/src/opik/rest_api/api/resources/spans/types/GetSpansByProjectRequestType.ts +0 -11
- package/src/opik/rest_api/api/resources/spans/types/index.ts +0 -3
- package/src/opik/rest_api/api/resources/systemUsage/client/Client.ts +0 -347
- package/src/opik/rest_api/api/resources/systemUsage/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/systemUsage/index.ts +0 -1
- package/src/opik/rest_api/api/resources/traces/client/Client.ts +0 -990
- package/src/opik/rest_api/api/resources/traces/client/index.ts +0 -1
- package/src/opik/rest_api/api/resources/traces/client/requests/FindFeedbackScoreNames2Request.ts +0 -11
- package/src/opik/rest_api/api/resources/traces/client/requests/GetTraceStatsRequest.ts +0 -13
- package/src/opik/rest_api/api/resources/traces/client/requests/GetTracesByProjectRequest.ts +0 -16
- package/src/opik/rest_api/api/resources/traces/client/requests/TraceBatchWrite.ts +0 -18
- package/src/opik/rest_api/api/resources/traces/client/requests/TraceUpdate.ts +0 -22
- package/src/opik/rest_api/api/resources/traces/client/requests/index.ts +0 -5
- package/src/opik/rest_api/api/resources/traces/index.ts +0 -1
- package/src/opik/rest_api/api/types/AssistantMessage.ts +0 -14
- package/src/opik/rest_api/api/types/AssistantMessageRole.ts +0 -13
- package/src/opik/rest_api/api/types/AuthDetailsHolder.ts +0 -5
- package/src/opik/rest_api/api/types/AvgValueStatPublic.ts +0 -7
- package/src/opik/rest_api/api/types/BatchDelete.ts +0 -7
- package/src/opik/rest_api/api/types/BiInformation.ts +0 -9
- package/src/opik/rest_api/api/types/BiInformationResponse.ts +0 -9
- package/src/opik/rest_api/api/types/CategoricalFeedbackDefinition.ts +0 -13
- package/src/opik/rest_api/api/types/CategoricalFeedbackDefinitionCreate.ts +0 -9
- package/src/opik/rest_api/api/types/CategoricalFeedbackDefinitionPublic.ts +0 -13
- package/src/opik/rest_api/api/types/CategoricalFeedbackDefinitionUpdate.ts +0 -9
- package/src/opik/rest_api/api/types/CategoricalFeedbackDetail.ts +0 -7
- package/src/opik/rest_api/api/types/CategoricalFeedbackDetailCreate.ts +0 -7
- package/src/opik/rest_api/api/types/CategoricalFeedbackDetailPublic.ts +0 -7
- package/src/opik/rest_api/api/types/CategoricalFeedbackDetailUpdate.ts +0 -7
- package/src/opik/rest_api/api/types/ChatCompletionChoice.ts +0 -12
- package/src/opik/rest_api/api/types/ChatCompletionResponse.ts +0 -14
- package/src/opik/rest_api/api/types/ChunkedOutputJsonNode.ts +0 -10
- package/src/opik/rest_api/api/types/ChunkedOutputJsonNodeType.ts +0 -7
- package/src/opik/rest_api/api/types/Column.ts +0 -13
- package/src/opik/rest_api/api/types/ColumnCompare.ts +0 -13
- package/src/opik/rest_api/api/types/ColumnCompareTypesItem.ts +0 -14
- package/src/opik/rest_api/api/types/ColumnPublic.ts +0 -13
- package/src/opik/rest_api/api/types/ColumnPublicTypesItem.ts +0 -14
- package/src/opik/rest_api/api/types/ColumnTypesItem.ts +0 -14
- package/src/opik/rest_api/api/types/CompletionTokensDetails.ts +0 -7
- package/src/opik/rest_api/api/types/CountValueStatPublic.ts +0 -7
- package/src/opik/rest_api/api/types/DataPointNumberPublic.ts +0 -8
- package/src/opik/rest_api/api/types/Dataset.ts +0 -17
- package/src/opik/rest_api/api/types/DatasetItem.ts +0 -21
- package/src/opik/rest_api/api/types/DatasetItemBatch.ts +0 -13
- package/src/opik/rest_api/api/types/DatasetItemCompare.ts +0 -21
- package/src/opik/rest_api/api/types/DatasetItemCompareSource.ts +0 -12
- package/src/opik/rest_api/api/types/DatasetItemPageCompare.ts +0 -13
- package/src/opik/rest_api/api/types/DatasetItemPagePublic.ts +0 -13
- package/src/opik/rest_api/api/types/DatasetItemPublic.ts +0 -21
- package/src/opik/rest_api/api/types/DatasetItemPublicSource.ts +0 -12
- package/src/opik/rest_api/api/types/DatasetItemSource.ts +0 -12
- package/src/opik/rest_api/api/types/DatasetItemWrite.ts +0 -16
- package/src/opik/rest_api/api/types/DatasetItemWriteSource.ts +0 -12
- package/src/opik/rest_api/api/types/DatasetPagePublic.ts +0 -12
- package/src/opik/rest_api/api/types/DatasetPublic.ts +0 -17
- package/src/opik/rest_api/api/types/DeleteFeedbackScore.ts +0 -7
- package/src/opik/rest_api/api/types/Delta.ts +0 -12
- package/src/opik/rest_api/api/types/DeltaRole.ts +0 -13
- package/src/opik/rest_api/api/types/ErrorInfo.ts +0 -9
- package/src/opik/rest_api/api/types/ErrorInfoPublic.ts +0 -9
- package/src/opik/rest_api/api/types/ErrorInfoWrite.ts +0 -9
- package/src/opik/rest_api/api/types/ErrorMessage.ts +0 -9
- package/src/opik/rest_api/api/types/ErrorMessageDetail.ts +0 -9
- package/src/opik/rest_api/api/types/ErrorMessagePublic.ts +0 -7
- package/src/opik/rest_api/api/types/Experiment.ts +0 -20
- package/src/opik/rest_api/api/types/ExperimentItem.ts +0 -19
- package/src/opik/rest_api/api/types/ExperimentItemCompare.ts +0 -19
- package/src/opik/rest_api/api/types/ExperimentItemPublic.ts +0 -14
- package/src/opik/rest_api/api/types/ExperimentPagePublic.ts +0 -12
- package/src/opik/rest_api/api/types/ExperimentPublic.ts +0 -20
- package/src/opik/rest_api/api/types/Feedback.ts +0 -26
- package/src/opik/rest_api/api/types/FeedbackCreate.ts +0 -22
- package/src/opik/rest_api/api/types/FeedbackDefinitionPagePublic.ts +0 -12
- package/src/opik/rest_api/api/types/FeedbackObjectPublic.ts +0 -26
- package/src/opik/rest_api/api/types/FeedbackPublic.ts +0 -26
- package/src/opik/rest_api/api/types/FeedbackScore.ts +0 -17
- package/src/opik/rest_api/api/types/FeedbackScoreAverage.ts +0 -8
- package/src/opik/rest_api/api/types/FeedbackScoreAveragePublic.ts +0 -8
- package/src/opik/rest_api/api/types/FeedbackScoreBatch.ts +0 -9
- package/src/opik/rest_api/api/types/FeedbackScoreBatchItem.ts +0 -16
- package/src/opik/rest_api/api/types/FeedbackScoreBatchItemSource.ts +0 -10
- package/src/opik/rest_api/api/types/FeedbackScoreCompare.ts +0 -17
- package/src/opik/rest_api/api/types/FeedbackScoreCompareSource.ts +0 -10
- package/src/opik/rest_api/api/types/FeedbackScorePublic.ts +0 -17
- package/src/opik/rest_api/api/types/FeedbackScorePublicSource.ts +0 -10
- package/src/opik/rest_api/api/types/FeedbackScoreSource.ts +0 -10
- package/src/opik/rest_api/api/types/FeedbackUpdate.ts +0 -22
- package/src/opik/rest_api/api/types/Function.ts +0 -12
- package/src/opik/rest_api/api/types/FunctionCall.ts +0 -8
- package/src/opik/rest_api/api/types/JsonNode.ts +0 -5
- package/src/opik/rest_api/api/types/JsonNodeCompare.ts +0 -5
- package/src/opik/rest_api/api/types/JsonNodePublic.ts +0 -5
- package/src/opik/rest_api/api/types/JsonNodeWrite.ts +0 -5
- package/src/opik/rest_api/api/types/JsonObjectSchema.ts +0 -14
- package/src/opik/rest_api/api/types/JsonSchema.ts +0 -11
- package/src/opik/rest_api/api/types/JsonSchemaElement.ts +0 -7
- package/src/opik/rest_api/api/types/Message.ts +0 -5
- package/src/opik/rest_api/api/types/NumericalFeedbackDefinition.ts +0 -13
- package/src/opik/rest_api/api/types/NumericalFeedbackDefinitionCreate.ts +0 -9
- package/src/opik/rest_api/api/types/NumericalFeedbackDefinitionPublic.ts +0 -13
- package/src/opik/rest_api/api/types/NumericalFeedbackDefinitionUpdate.ts +0 -9
- package/src/opik/rest_api/api/types/NumericalFeedbackDetail.ts +0 -8
- package/src/opik/rest_api/api/types/NumericalFeedbackDetailCreate.ts +0 -8
- package/src/opik/rest_api/api/types/NumericalFeedbackDetailPublic.ts +0 -8
- package/src/opik/rest_api/api/types/NumericalFeedbackDetailUpdate.ts +0 -8
- package/src/opik/rest_api/api/types/PageColumns.ts +0 -9
- package/src/opik/rest_api/api/types/PercentageValueStatPublic.ts +0 -9
- package/src/opik/rest_api/api/types/PercentageValuesPublic.ts +0 -9
- package/src/opik/rest_api/api/types/Project.ts +0 -14
- package/src/opik/rest_api/api/types/ProjectMetricResponsePublic.ts +0 -12
- package/src/opik/rest_api/api/types/ProjectMetricResponsePublicInterval.ts +0 -11
- package/src/opik/rest_api/api/types/ProjectMetricResponsePublicMetricType.ts +0 -18
- package/src/opik/rest_api/api/types/ProjectPagePublic.ts +0 -13
- package/src/opik/rest_api/api/types/ProjectPublic.ts +0 -14
- package/src/opik/rest_api/api/types/ProjectStatItemObjectPublic.ts +0 -28
- package/src/opik/rest_api/api/types/ProjectStatsPublic.ts +0 -9
- package/src/opik/rest_api/api/types/Prompt.ts +0 -18
- package/src/opik/rest_api/api/types/PromptDetail.ts +0 -17
- package/src/opik/rest_api/api/types/PromptPagePublic.ts +0 -12
- package/src/opik/rest_api/api/types/PromptPublic.ts +0 -14
- package/src/opik/rest_api/api/types/PromptVersion.ts +0 -15
- package/src/opik/rest_api/api/types/PromptVersionDetail.ts +0 -15
- package/src/opik/rest_api/api/types/PromptVersionLink.ts +0 -9
- package/src/opik/rest_api/api/types/PromptVersionLinkPublic.ts +0 -9
- package/src/opik/rest_api/api/types/PromptVersionLinkWrite.ts +0 -7
- package/src/opik/rest_api/api/types/PromptVersionPagePublic.ts +0 -12
- package/src/opik/rest_api/api/types/PromptVersionPublic.ts +0 -14
- package/src/opik/rest_api/api/types/ProviderApiKey.ts +0 -13
- package/src/opik/rest_api/api/types/ProviderApiKeyPublic.ts +0 -12
- package/src/opik/rest_api/api/types/ResponseFormat.ts +0 -10
- package/src/opik/rest_api/api/types/ResponseFormatType.ts +0 -11
- package/src/opik/rest_api/api/types/ResultsNumberPublic.ts +0 -10
- package/src/opik/rest_api/api/types/Span.ts +0 -32
- package/src/opik/rest_api/api/types/SpanBatch.ts +0 -9
- package/src/opik/rest_api/api/types/SpanPagePublic.ts +0 -12
- package/src/opik/rest_api/api/types/SpanPublic.ts +0 -30
- package/src/opik/rest_api/api/types/SpanPublicType.ts +0 -11
- package/src/opik/rest_api/api/types/SpanType.ts +0 -11
- package/src/opik/rest_api/api/types/SpanWrite.ts +0 -25
- package/src/opik/rest_api/api/types/SpanWriteType.ts +0 -11
- package/src/opik/rest_api/api/types/StreamOptions.ts +0 -7
- package/src/opik/rest_api/api/types/Tool.ts +0 -10
- package/src/opik/rest_api/api/types/ToolCall.ts +0 -12
- package/src/opik/rest_api/api/types/Trace.ts +0 -27
- package/src/opik/rest_api/api/types/TraceBatch.ts +0 -9
- package/src/opik/rest_api/api/types/TraceCountResponse.ts +0 -9
- package/src/opik/rest_api/api/types/TracePagePublic.ts +0 -12
- package/src/opik/rest_api/api/types/TracePublic.ts +0 -25
- package/src/opik/rest_api/api/types/TraceWrite.ts +0 -19
- package/src/opik/rest_api/api/types/Usage.ts +0 -12
- package/src/opik/rest_api/api/types/WorkspaceTraceCount.ts +0 -8
- package/src/opik/rest_api/api/types/index.ts +0 -138
- package/src/opik/rest_api/core/api-promise/APIPromise.ts +0 -54
- package/src/opik/rest_api/core/api-promise/index.ts +0 -1
- package/src/opik/rest_api/core/fetcher/APIResponse.ts +0 -12
- package/src/opik/rest_api/core/fetcher/Fetcher.ts +0 -143
- package/src/opik/rest_api/core/fetcher/Supplier.ts +0 -11
- package/src/opik/rest_api/core/fetcher/createRequestUrl.ts +0 -10
- package/src/opik/rest_api/core/fetcher/getFetchFn.ts +0 -25
- package/src/opik/rest_api/core/fetcher/getHeader.ts +0 -8
- package/src/opik/rest_api/core/fetcher/getRequestBody.ts +0 -14
- package/src/opik/rest_api/core/fetcher/getResponseBody.ts +0 -34
- package/src/opik/rest_api/core/fetcher/index.ts +0 -5
- package/src/opik/rest_api/core/fetcher/makeRequest.ts +0 -44
- package/src/opik/rest_api/core/fetcher/requestWithRetries.ts +0 -33
- package/src/opik/rest_api/core/fetcher/signals.ts +0 -38
- package/src/opik/rest_api/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.ts +0 -256
- package/src/opik/rest_api/core/fetcher/stream-wrappers/NodePre18StreamWrapper.ts +0 -106
- package/src/opik/rest_api/core/fetcher/stream-wrappers/UndiciStreamWrapper.ts +0 -243
- package/src/opik/rest_api/core/fetcher/stream-wrappers/chooseStreamWrapper.ts +0 -33
- package/src/opik/rest_api/core/index.ts +0 -4
- package/src/opik/rest_api/core/runtime/index.ts +0 -1
- package/src/opik/rest_api/core/runtime/runtime.ts +0 -126
- package/src/opik/rest_api/core/schemas/Schema.ts +0 -99
- package/src/opik/rest_api/core/schemas/builders/bigint/bigint.ts +0 -50
- package/src/opik/rest_api/core/schemas/builders/bigint/index.ts +0 -1
- package/src/opik/rest_api/core/schemas/builders/date/date.ts +0 -65
- package/src/opik/rest_api/core/schemas/builders/date/index.ts +0 -1
- package/src/opik/rest_api/core/schemas/builders/enum/enum.ts +0 -43
- package/src/opik/rest_api/core/schemas/builders/enum/index.ts +0 -1
- package/src/opik/rest_api/core/schemas/builders/index.ts +0 -14
- package/src/opik/rest_api/core/schemas/builders/lazy/index.ts +0 -3
- package/src/opik/rest_api/core/schemas/builders/lazy/lazy.ts +0 -32
- package/src/opik/rest_api/core/schemas/builders/lazy/lazyObject.ts +0 -20
- package/src/opik/rest_api/core/schemas/builders/list/index.ts +0 -1
- package/src/opik/rest_api/core/schemas/builders/list/list.ts +0 -73
- package/src/opik/rest_api/core/schemas/builders/literals/booleanLiteral.ts +0 -29
- package/src/opik/rest_api/core/schemas/builders/literals/index.ts +0 -2
- package/src/opik/rest_api/core/schemas/builders/literals/stringLiteral.ts +0 -29
- package/src/opik/rest_api/core/schemas/builders/object/index.ts +0 -22
- package/src/opik/rest_api/core/schemas/builders/object/object.ts +0 -324
- package/src/opik/rest_api/core/schemas/builders/object/objectWithoutOptionalProperties.ts +0 -18
- package/src/opik/rest_api/core/schemas/builders/object/property.ts +0 -23
- package/src/opik/rest_api/core/schemas/builders/object/types.ts +0 -72
- package/src/opik/rest_api/core/schemas/builders/object-like/getObjectLikeUtils.ts +0 -79
- package/src/opik/rest_api/core/schemas/builders/object-like/index.ts +0 -2
- package/src/opik/rest_api/core/schemas/builders/object-like/types.ts +0 -11
- package/src/opik/rest_api/core/schemas/builders/primitives/any.ts +0 -4
- package/src/opik/rest_api/core/schemas/builders/primitives/boolean.ts +0 -25
- package/src/opik/rest_api/core/schemas/builders/primitives/index.ts +0 -5
- package/src/opik/rest_api/core/schemas/builders/primitives/number.ts +0 -25
- package/src/opik/rest_api/core/schemas/builders/primitives/string.ts +0 -25
- package/src/opik/rest_api/core/schemas/builders/primitives/unknown.ts +0 -4
- package/src/opik/rest_api/core/schemas/builders/record/index.ts +0 -2
- package/src/opik/rest_api/core/schemas/builders/record/record.ts +0 -130
- package/src/opik/rest_api/core/schemas/builders/record/types.ts +0 -17
- package/src/opik/rest_api/core/schemas/builders/schema-utils/JsonError.ts +0 -9
- package/src/opik/rest_api/core/schemas/builders/schema-utils/ParseError.ts +0 -9
- package/src/opik/rest_api/core/schemas/builders/schema-utils/getSchemaUtils.ts +0 -105
- package/src/opik/rest_api/core/schemas/builders/schema-utils/index.ts +0 -4
- package/src/opik/rest_api/core/schemas/builders/schema-utils/stringifyValidationErrors.ts +0 -8
- package/src/opik/rest_api/core/schemas/builders/set/index.ts +0 -1
- package/src/opik/rest_api/core/schemas/builders/set/set.ts +0 -43
- package/src/opik/rest_api/core/schemas/builders/undiscriminated-union/index.ts +0 -6
- package/src/opik/rest_api/core/schemas/builders/undiscriminated-union/types.ts +0 -10
- package/src/opik/rest_api/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts +0 -60
- package/src/opik/rest_api/core/schemas/builders/union/discriminant.ts +0 -14
- package/src/opik/rest_api/core/schemas/builders/union/index.ts +0 -10
- package/src/opik/rest_api/core/schemas/builders/union/types.ts +0 -26
- package/src/opik/rest_api/core/schemas/builders/union/union.ts +0 -170
- package/src/opik/rest_api/core/schemas/index.ts +0 -2
- package/src/opik/rest_api/core/schemas/utils/MaybePromise.ts +0 -1
- package/src/opik/rest_api/core/schemas/utils/addQuestionMarksToNullableProperties.ts +0 -15
- package/src/opik/rest_api/core/schemas/utils/createIdentitySchemaCreator.ts +0 -21
- package/src/opik/rest_api/core/schemas/utils/entries.ts +0 -3
- package/src/opik/rest_api/core/schemas/utils/filterObject.ts +0 -10
- package/src/opik/rest_api/core/schemas/utils/getErrorMessageForIncorrectType.ts +0 -25
- package/src/opik/rest_api/core/schemas/utils/isPlainObject.ts +0 -17
- package/src/opik/rest_api/core/schemas/utils/keys.ts +0 -3
- package/src/opik/rest_api/core/schemas/utils/maybeSkipValidation.ts +0 -38
- package/src/opik/rest_api/core/schemas/utils/partition.ts +0 -12
- package/src/opik/rest_api/environments.ts +0 -9
- package/src/opik/rest_api/errors/OpikApiError.ts +0 -45
- package/src/opik/rest_api/errors/OpikApiTimeoutError.ts +0 -10
- package/src/opik/rest_api/errors/index.ts +0 -2
- package/src/opik/rest_api/index.ts +0 -4
- package/src/opik/rest_api/serialization/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/chatCompletions/client/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/chatCompletions/client/requests/ChatCompletionRequest.ts +0 -72
- package/src/opik/rest_api/serialization/resources/chatCompletions/client/requests/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/chatCompletions/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/datasets/client/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/datasets/client/requests/DatasetIdentifier.ts +0 -20
- package/src/opik/rest_api/serialization/resources/datasets/client/requests/DatasetIdentifierPublic.ts +0 -20
- package/src/opik/rest_api/serialization/resources/datasets/client/requests/DatasetItemBatchWrite.ts +0 -25
- package/src/opik/rest_api/serialization/resources/datasets/client/requests/DatasetItemStreamRequest.ts +0 -24
- package/src/opik/rest_api/serialization/resources/datasets/client/requests/DatasetItemsDelete.ts +0 -20
- package/src/opik/rest_api/serialization/resources/datasets/client/requests/DatasetUpdate.ts +0 -20
- package/src/opik/rest_api/serialization/resources/datasets/client/requests/DatasetWrite.ts +0 -22
- package/src/opik/rest_api/serialization/resources/datasets/client/requests/index.ts +0 -7
- package/src/opik/rest_api/serialization/resources/datasets/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/experiments/client/findFeedbackScoreNames.ts +0 -15
- package/src/opik/rest_api/serialization/resources/experiments/client/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/experiments/client/requests/ExperimentItemStreamRequest.ts +0 -24
- package/src/opik/rest_api/serialization/resources/experiments/client/requests/ExperimentItemsBatch.ts +0 -21
- package/src/opik/rest_api/serialization/resources/experiments/client/requests/ExperimentItemsDelete.ts +0 -20
- package/src/opik/rest_api/serialization/resources/experiments/client/requests/ExperimentWrite.ts +0 -28
- package/src/opik/rest_api/serialization/resources/experiments/client/requests/ExperimentsDelete.ts +0 -20
- package/src/opik/rest_api/serialization/resources/experiments/client/requests/IdentifierPublic.ts +0 -18
- package/src/opik/rest_api/serialization/resources/experiments/client/requests/index.ts +0 -6
- package/src/opik/rest_api/serialization/resources/experiments/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/feedbackDefinitions/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/feedbackDefinitions/types/FindFeedbackDefinitionsRequestType.ts +0 -16
- package/src/opik/rest_api/serialization/resources/feedbackDefinitions/types/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/index.ts +0 -20
- package/src/opik/rest_api/serialization/resources/llmProviderKey/client/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/llmProviderKey/client/requests/ProviderApiKeyUpdate.ts +0 -20
- package/src/opik/rest_api/serialization/resources/llmProviderKey/client/requests/ProviderApiKeyWrite.ts +0 -20
- package/src/opik/rest_api/serialization/resources/llmProviderKey/client/requests/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/llmProviderKey/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/projects/client/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/projects/client/requests/ProjectMetricRequestPublic.ts +0 -28
- package/src/opik/rest_api/serialization/resources/projects/client/requests/ProjectRetrievePublic.ts +0 -20
- package/src/opik/rest_api/serialization/resources/projects/client/requests/ProjectUpdate.ts +0 -20
- package/src/opik/rest_api/serialization/resources/projects/client/requests/ProjectWrite.ts +0 -20
- package/src/opik/rest_api/serialization/resources/projects/client/requests/index.ts +0 -4
- package/src/opik/rest_api/serialization/resources/projects/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/projects/types/ProjectMetricRequestPublicInterval.ts +0 -16
- package/src/opik/rest_api/serialization/resources/projects/types/ProjectMetricRequestPublicMetricType.ts +0 -16
- package/src/opik/rest_api/serialization/resources/projects/types/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/prompts/client/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/prompts/client/requests/CreatePromptVersionDetail.ts +0 -23
- package/src/opik/rest_api/serialization/resources/prompts/client/requests/PromptUpdatable.ts +0 -20
- package/src/opik/rest_api/serialization/resources/prompts/client/requests/PromptVersionRetrieveDetail.ts +0 -22
- package/src/opik/rest_api/serialization/resources/prompts/client/requests/PromptWrite.ts +0 -24
- package/src/opik/rest_api/serialization/resources/prompts/client/requests/index.ts +0 -4
- package/src/opik/rest_api/serialization/resources/prompts/index.ts +0 -1
- package/src/opik/rest_api/serialization/resources/spans/client/findFeedbackScoreNames1.ts +0 -13
- package/src/opik/rest_api/serialization/resources/spans/client/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/spans/client/requests/SpanBatchWrite.ts +0 -19
- package/src/opik/rest_api/serialization/resources/spans/client/requests/SpanUpdate.ts +0 -44
- package/src/opik/rest_api/serialization/resources/spans/client/requests/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/spans/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/spans/types/FindFeedbackScoreNames1RequestType.ts +0 -16
- package/src/opik/rest_api/serialization/resources/spans/types/GetSpanStatsRequestType.ts +0 -16
- package/src/opik/rest_api/serialization/resources/spans/types/GetSpansByProjectRequestType.ts +0 -16
- package/src/opik/rest_api/serialization/resources/spans/types/index.ts +0 -3
- package/src/opik/rest_api/serialization/resources/traces/client/findFeedbackScoreNames2.ts +0 -13
- package/src/opik/rest_api/serialization/resources/traces/client/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/traces/client/requests/TraceBatchWrite.ts +0 -19
- package/src/opik/rest_api/serialization/resources/traces/client/requests/TraceUpdate.ts +0 -34
- package/src/opik/rest_api/serialization/resources/traces/client/requests/index.ts +0 -2
- package/src/opik/rest_api/serialization/resources/traces/index.ts +0 -1
- package/src/opik/rest_api/serialization/types/AssistantMessage.ts +0 -33
- package/src/opik/rest_api/serialization/types/AssistantMessageRole.ts +0 -16
- package/src/opik/rest_api/serialization/types/AuthDetailsHolder.ts +0 -16
- package/src/opik/rest_api/serialization/types/AvgValueStatPublic.ts +0 -20
- package/src/opik/rest_api/serialization/types/BatchDelete.ts +0 -18
- package/src/opik/rest_api/serialization/types/BiInformation.ts +0 -22
- package/src/opik/rest_api/serialization/types/BiInformationResponse.ts +0 -21
- package/src/opik/rest_api/serialization/types/CategoricalFeedbackDefinition.ts +0 -29
- package/src/opik/rest_api/serialization/types/CategoricalFeedbackDefinitionCreate.ts +0 -21
- package/src/opik/rest_api/serialization/types/CategoricalFeedbackDefinitionPublic.ts +0 -29
- package/src/opik/rest_api/serialization/types/CategoricalFeedbackDefinitionUpdate.ts +0 -21
- package/src/opik/rest_api/serialization/types/CategoricalFeedbackDetail.ts +0 -20
- package/src/opik/rest_api/serialization/types/CategoricalFeedbackDetailCreate.ts +0 -20
- package/src/opik/rest_api/serialization/types/CategoricalFeedbackDetailPublic.ts +0 -20
- package/src/opik/rest_api/serialization/types/CategoricalFeedbackDetailUpdate.ts +0 -20
- package/src/opik/rest_api/serialization/types/ChatCompletionChoice.ts +0 -28
- package/src/opik/rest_api/serialization/types/ChatCompletionResponse.ts +0 -32
- package/src/opik/rest_api/serialization/types/ChunkedOutputJsonNode.ts +0 -23
- package/src/opik/rest_api/serialization/types/ChunkedOutputJsonNodeType.ts +0 -20
- package/src/opik/rest_api/serialization/types/Column.ts +0 -25
- package/src/opik/rest_api/serialization/types/ColumnCompare.ts +0 -25
- package/src/opik/rest_api/serialization/types/ColumnCompareTypesItem.ts +0 -16
- package/src/opik/rest_api/serialization/types/ColumnPublic.ts +0 -25
- package/src/opik/rest_api/serialization/types/ColumnPublicTypesItem.ts +0 -16
- package/src/opik/rest_api/serialization/types/ColumnTypesItem.ts +0 -14
- package/src/opik/rest_api/serialization/types/CompletionTokensDetails.ts +0 -20
- package/src/opik/rest_api/serialization/types/CountValueStatPublic.ts +0 -20
- package/src/opik/rest_api/serialization/types/DataPointNumberPublic.ts +0 -22
- package/src/opik/rest_api/serialization/types/Dataset.ts +0 -44
- package/src/opik/rest_api/serialization/types/DatasetItem.ts +0 -48
- package/src/opik/rest_api/serialization/types/DatasetItemBatch.ts +0 -25
- package/src/opik/rest_api/serialization/types/DatasetItemCompare.ts +0 -51
- package/src/opik/rest_api/serialization/types/DatasetItemCompareSource.ts +0 -16
- package/src/opik/rest_api/serialization/types/DatasetItemPageCompare.ts +0 -30
- package/src/opik/rest_api/serialization/types/DatasetItemPagePublic.ts +0 -30
- package/src/opik/rest_api/serialization/types/DatasetItemPublic.ts +0 -51
- package/src/opik/rest_api/serialization/types/DatasetItemPublicSource.ts +0 -16
- package/src/opik/rest_api/serialization/types/DatasetItemSource.ts +0 -16
- package/src/opik/rest_api/serialization/types/DatasetItemWrite.ts +0 -37
- package/src/opik/rest_api/serialization/types/DatasetItemWriteSource.ts +0 -16
- package/src/opik/rest_api/serialization/types/DatasetPagePublic.ts +0 -27
- package/src/opik/rest_api/serialization/types/DatasetPublic.ts +0 -44
- package/src/opik/rest_api/serialization/types/DeleteFeedbackScore.ts +0 -20
- package/src/opik/rest_api/serialization/types/Delta.ts +0 -26
- package/src/opik/rest_api/serialization/types/DeltaRole.ts +0 -14
- package/src/opik/rest_api/serialization/types/ErrorInfo.ts +0 -22
- package/src/opik/rest_api/serialization/types/ErrorInfoPublic.ts +0 -24
- package/src/opik/rest_api/serialization/types/ErrorInfoWrite.ts +0 -22
- package/src/opik/rest_api/serialization/types/ErrorMessage.ts +0 -22
- package/src/opik/rest_api/serialization/types/ErrorMessageDetail.ts +0 -24
- package/src/opik/rest_api/serialization/types/ErrorMessagePublic.ts +0 -20
- package/src/opik/rest_api/serialization/types/Experiment.ts +0 -46
- package/src/opik/rest_api/serialization/types/ExperimentItem.ts +0 -43
- package/src/opik/rest_api/serialization/types/ExperimentItemCompare.ts +0 -45
- package/src/opik/rest_api/serialization/types/ExperimentItemPublic.ts +0 -34
- package/src/opik/rest_api/serialization/types/ExperimentPagePublic.ts +0 -27
- package/src/opik/rest_api/serialization/types/ExperimentPublic.ts +0 -48
- package/src/opik/rest_api/serialization/types/Feedback.ts +0 -48
- package/src/opik/rest_api/serialization/types/FeedbackCreate.ts +0 -41
- package/src/opik/rest_api/serialization/types/FeedbackDefinitionPagePublic.ts +0 -27
- package/src/opik/rest_api/serialization/types/FeedbackObjectPublic.ts +0 -51
- package/src/opik/rest_api/serialization/types/FeedbackPublic.ts +0 -49
- package/src/opik/rest_api/serialization/types/FeedbackScore.ts +0 -35
- package/src/opik/rest_api/serialization/types/FeedbackScoreAverage.ts +0 -22
- package/src/opik/rest_api/serialization/types/FeedbackScoreAveragePublic.ts +0 -22
- package/src/opik/rest_api/serialization/types/FeedbackScoreBatch.ts +0 -21
- package/src/opik/rest_api/serialization/types/FeedbackScoreBatchItem.ts +0 -33
- package/src/opik/rest_api/serialization/types/FeedbackScoreBatchItemSource.ts +0 -16
- package/src/opik/rest_api/serialization/types/FeedbackScoreCompare.ts +0 -37
- package/src/opik/rest_api/serialization/types/FeedbackScoreCompareSource.ts +0 -16
- package/src/opik/rest_api/serialization/types/FeedbackScorePublic.ts +0 -37
- package/src/opik/rest_api/serialization/types/FeedbackScorePublicSource.ts +0 -16
- package/src/opik/rest_api/serialization/types/FeedbackScoreSource.ts +0 -16
- package/src/opik/rest_api/serialization/types/FeedbackUpdate.ts +0 -41
- package/src/opik/rest_api/serialization/types/Function.ts +0 -25
- package/src/opik/rest_api/serialization/types/FunctionCall.ts +0 -20
- package/src/opik/rest_api/serialization/types/JsonNode.ts +0 -14
- package/src/opik/rest_api/serialization/types/JsonNodeCompare.ts +0 -14
- package/src/opik/rest_api/serialization/types/JsonNodePublic.ts +0 -14
- package/src/opik/rest_api/serialization/types/JsonNodeWrite.ts +0 -14
- package/src/opik/rest_api/serialization/types/JsonObjectSchema.ts +0 -34
- package/src/opik/rest_api/serialization/types/JsonSchema.ts +0 -23
- package/src/opik/rest_api/serialization/types/JsonSchemaElement.ts +0 -20
- package/src/opik/rest_api/serialization/types/Message.ts +0 -16
- package/src/opik/rest_api/serialization/types/NumericalFeedbackDefinition.ts +0 -29
- package/src/opik/rest_api/serialization/types/NumericalFeedbackDefinitionCreate.ts +0 -21
- package/src/opik/rest_api/serialization/types/NumericalFeedbackDefinitionPublic.ts +0 -29
- package/src/opik/rest_api/serialization/types/NumericalFeedbackDefinitionUpdate.ts +0 -21
- package/src/opik/rest_api/serialization/types/NumericalFeedbackDetail.ts +0 -22
- package/src/opik/rest_api/serialization/types/NumericalFeedbackDetailCreate.ts +0 -22
- package/src/opik/rest_api/serialization/types/NumericalFeedbackDetailPublic.ts +0 -22
- package/src/opik/rest_api/serialization/types/NumericalFeedbackDetailUpdate.ts +0 -22
- package/src/opik/rest_api/serialization/types/PageColumns.ts +0 -19
- package/src/opik/rest_api/serialization/types/PercentageValueStatPublic.ts +0 -21
- package/src/opik/rest_api/serialization/types/PercentageValuesPublic.ts +0 -24
- package/src/opik/rest_api/serialization/types/Project.ts +0 -32
- package/src/opik/rest_api/serialization/types/ProjectMetricResponsePublic.ts +0 -29
- package/src/opik/rest_api/serialization/types/ProjectMetricResponsePublicInterval.ts +0 -16
- package/src/opik/rest_api/serialization/types/ProjectMetricResponsePublicMetricType.ts +0 -16
- package/src/opik/rest_api/serialization/types/ProjectPagePublic.ts +0 -29
- package/src/opik/rest_api/serialization/types/ProjectPublic.ts +0 -32
- package/src/opik/rest_api/serialization/types/ProjectStatItemObjectPublic.ts +0 -50
- package/src/opik/rest_api/serialization/types/ProjectStatsPublic.ts +0 -21
- package/src/opik/rest_api/serialization/types/Prompt.ts +0 -37
- package/src/opik/rest_api/serialization/types/PromptDetail.ts +0 -35
- package/src/opik/rest_api/serialization/types/PromptPagePublic.ts +0 -27
- package/src/opik/rest_api/serialization/types/PromptPublic.ts +0 -32
- package/src/opik/rest_api/serialization/types/PromptVersion.ts +0 -30
- package/src/opik/rest_api/serialization/types/PromptVersionDetail.ts +0 -32
- package/src/opik/rest_api/serialization/types/PromptVersionLink.ts +0 -24
- package/src/opik/rest_api/serialization/types/PromptVersionLinkPublic.ts +0 -24
- package/src/opik/rest_api/serialization/types/PromptVersionLinkWrite.ts +0 -20
- package/src/opik/rest_api/serialization/types/PromptVersionPagePublic.ts +0 -27
- package/src/opik/rest_api/serialization/types/PromptVersionPublic.ts +0 -30
- package/src/opik/rest_api/serialization/types/ProviderApiKey.ts +0 -30
- package/src/opik/rest_api/serialization/types/ProviderApiKeyPublic.ts +0 -30
- package/src/opik/rest_api/serialization/types/ResponseFormat.ts +0 -22
- package/src/opik/rest_api/serialization/types/ResponseFormatType.ts +0 -16
- package/src/opik/rest_api/serialization/types/ResultsNumberPublic.ts +0 -23
- package/src/opik/rest_api/serialization/types/Span.ts +0 -65
- package/src/opik/rest_api/serialization/types/SpanBatch.ts +0 -19
- package/src/opik/rest_api/serialization/types/SpanPagePublic.ts +0 -25
- package/src/opik/rest_api/serialization/types/SpanPublic.ts +0 -67
- package/src/opik/rest_api/serialization/types/SpanPublicType.ts +0 -14
- package/src/opik/rest_api/serialization/types/SpanType.ts +0 -15
- package/src/opik/rest_api/serialization/types/SpanWrite.ts +0 -51
- package/src/opik/rest_api/serialization/types/SpanWriteType.ts +0 -14
- package/src/opik/rest_api/serialization/types/StreamOptions.ts +0 -18
- package/src/opik/rest_api/serialization/types/Tool.ts +0 -20
- package/src/opik/rest_api/serialization/types/ToolCall.ts +0 -25
- package/src/opik/rest_api/serialization/types/Trace.ts +0 -54
- package/src/opik/rest_api/serialization/types/TraceBatch.ts +0 -19
- package/src/opik/rest_api/serialization/types/TraceCountResponse.ts +0 -24
- package/src/opik/rest_api/serialization/types/TracePagePublic.ts +0 -27
- package/src/opik/rest_api/serialization/types/TracePublic.ts +0 -56
- package/src/opik/rest_api/serialization/types/TraceWrite.ts +0 -38
- package/src/opik/rest_api/serialization/types/Usage.ts +0 -27
- package/src/opik/rest_api/serialization/types/WorkspaceTraceCount.ts +0 -22
- package/src/opik/rest_api/serialization/types/index.ts +0 -138
- package/src/opik/tracer/Span.ts +0 -34
- package/src/opik/tracer/Trace.ts +0 -61
- package/tests/client.test.ts +0 -25
- package/tsconfig.json +0 -25
- package/tsup.config.ts +0 -11
- package/vitest.config.ts +0 -13
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./requests";
|
package/src/opik/rest_api/api/resources/spans/client/requests/FindFeedbackScoreNames1Request.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as OpikApi from "../../../../index";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @example
|
|
9
|
-
* {}
|
|
10
|
-
*/
|
|
11
|
-
export interface FindFeedbackScoreNames1Request {
|
|
12
|
-
projectId?: string;
|
|
13
|
-
type?: OpikApi.FindFeedbackScoreNames1RequestType;
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as OpikApi from "../../../../index";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @example
|
|
9
|
-
* {}
|
|
10
|
-
*/
|
|
11
|
-
export interface GetSpanStatsRequest {
|
|
12
|
-
projectId?: string;
|
|
13
|
-
projectName?: string;
|
|
14
|
-
traceId?: string;
|
|
15
|
-
type?: OpikApi.GetSpanStatsRequestType;
|
|
16
|
-
filters?: string;
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as OpikApi from "../../../../index";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @example
|
|
9
|
-
* {}
|
|
10
|
-
*/
|
|
11
|
-
export interface GetSpansByProjectRequest {
|
|
12
|
-
page?: number;
|
|
13
|
-
size?: number;
|
|
14
|
-
projectName?: string;
|
|
15
|
-
projectId?: string;
|
|
16
|
-
traceId?: string;
|
|
17
|
-
type?: OpikApi.GetSpansByProjectRequestType;
|
|
18
|
-
filters?: string;
|
|
19
|
-
truncate?: boolean;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as OpikApi from "../../../../index";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @example
|
|
9
|
-
* {
|
|
10
|
-
* spans: [{
|
|
11
|
-
* traceId: "trace_id",
|
|
12
|
-
* name: "name",
|
|
13
|
-
* type: "general",
|
|
14
|
-
* startTime: "2024-01-15T09:30:00Z"
|
|
15
|
-
* }]
|
|
16
|
-
* }
|
|
17
|
-
*/
|
|
18
|
-
export interface SpanBatchWrite {
|
|
19
|
-
spans: OpikApi.SpanWrite[];
|
|
20
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as OpikApi from "../../../../index";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @example
|
|
9
|
-
* {
|
|
10
|
-
* traceId: "trace_id"
|
|
11
|
-
* }
|
|
12
|
-
*/
|
|
13
|
-
export interface SpanUpdate {
|
|
14
|
-
/** If null and project_id not specified, Default Project is assumed */
|
|
15
|
-
projectName?: string;
|
|
16
|
-
/** If null and project_name not specified, Default Project is assumed */
|
|
17
|
-
projectId?: string;
|
|
18
|
-
traceId: string;
|
|
19
|
-
parentSpanId?: string;
|
|
20
|
-
endTime?: Date;
|
|
21
|
-
input?: OpikApi.JsonNode;
|
|
22
|
-
output?: OpikApi.JsonNode;
|
|
23
|
-
metadata?: OpikApi.JsonNode;
|
|
24
|
-
model?: string;
|
|
25
|
-
provider?: string;
|
|
26
|
-
tags?: string[];
|
|
27
|
-
usage?: Record<string, number>;
|
|
28
|
-
errorInfo?: OpikApi.ErrorInfo;
|
|
29
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { type GetSpansByProjectRequest } from "./GetSpansByProjectRequest";
|
|
2
|
-
export { type SpanBatchWrite } from "./SpanBatchWrite";
|
|
3
|
-
export { type SpanUpdate } from "./SpanUpdate";
|
|
4
|
-
export { type FindFeedbackScoreNames1Request } from "./FindFeedbackScoreNames1Request";
|
|
5
|
-
export { type GetSpanStatsRequest } from "./GetSpanStatsRequest";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export type FindFeedbackScoreNames1RequestType = "general" | "tool" | "llm";
|
|
6
|
-
|
|
7
|
-
export const FindFeedbackScoreNames1RequestType = {
|
|
8
|
-
General: "general",
|
|
9
|
-
Tool: "tool",
|
|
10
|
-
Llm: "llm",
|
|
11
|
-
} as const;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export type GetSpansByProjectRequestType = "general" | "tool" | "llm";
|
|
6
|
-
|
|
7
|
-
export const GetSpansByProjectRequestType = {
|
|
8
|
-
General: "general",
|
|
9
|
-
Tool: "tool",
|
|
10
|
-
Llm: "llm",
|
|
11
|
-
} as const;
|
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as environments from "../../../../environments";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
import * as OpikApi from "../../../index";
|
|
8
|
-
import urlJoin from "url-join";
|
|
9
|
-
import * as serializers from "../../../../serialization/index";
|
|
10
|
-
import * as errors from "../../../../errors/index";
|
|
11
|
-
|
|
12
|
-
export declare namespace SystemUsage {
|
|
13
|
-
interface Options {
|
|
14
|
-
environment?: core.Supplier<environments.OpikApiEnvironment | string>;
|
|
15
|
-
/** Override the Authorization header */
|
|
16
|
-
apiKey?: core.Supplier<string | undefined>;
|
|
17
|
-
/** Override the Comet-Workspace header */
|
|
18
|
-
workspaceName?: core.Supplier<string | undefined>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface RequestOptions {
|
|
22
|
-
/** The maximum time to wait for a response in seconds. */
|
|
23
|
-
timeoutInSeconds?: number;
|
|
24
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
25
|
-
maxRetries?: number;
|
|
26
|
-
/** A hook to abort the request. */
|
|
27
|
-
abortSignal?: AbortSignal;
|
|
28
|
-
/** Override the Authorization header */
|
|
29
|
-
apiKey?: string | undefined;
|
|
30
|
-
/** Override the Comet-Workspace header */
|
|
31
|
-
workspaceName?: string | undefined;
|
|
32
|
-
/** Additional headers to include in the request. */
|
|
33
|
-
headers?: Record<string, string>;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* System usage related resource
|
|
39
|
-
*/
|
|
40
|
-
export class SystemUsage {
|
|
41
|
-
constructor(protected readonly _options: SystemUsage.Options = {}) {}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Get datasets information for BI events per user per workspace
|
|
45
|
-
*
|
|
46
|
-
* @param {SystemUsage.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* await client.systemUsage.getDatasetBiInfo()
|
|
50
|
-
*/
|
|
51
|
-
public getDatasetBiInfo(
|
|
52
|
-
requestOptions?: SystemUsage.RequestOptions
|
|
53
|
-
): core.APIPromise<OpikApi.BiInformationResponse> {
|
|
54
|
-
return core.APIPromise.from(
|
|
55
|
-
(async () => {
|
|
56
|
-
const _response = await core.fetcher({
|
|
57
|
-
url: urlJoin(
|
|
58
|
-
(await core.Supplier.get(this._options.environment)) ?? environments.OpikApiEnvironment.Default,
|
|
59
|
-
"v1/internal/usage/bi-datasets"
|
|
60
|
-
),
|
|
61
|
-
method: "GET",
|
|
62
|
-
headers: {
|
|
63
|
-
"Comet-Workspace":
|
|
64
|
-
(await core.Supplier.get(this._options.workspaceName)) != null
|
|
65
|
-
? await core.Supplier.get(this._options.workspaceName)
|
|
66
|
-
: undefined,
|
|
67
|
-
"X-Fern-Language": "JavaScript",
|
|
68
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
69
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
70
|
-
...(await this._getCustomAuthorizationHeaders()),
|
|
71
|
-
...requestOptions?.headers,
|
|
72
|
-
},
|
|
73
|
-
contentType: "application/json",
|
|
74
|
-
requestType: "json",
|
|
75
|
-
timeoutMs:
|
|
76
|
-
requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
77
|
-
maxRetries: requestOptions?.maxRetries,
|
|
78
|
-
withCredentials: true,
|
|
79
|
-
abortSignal: requestOptions?.abortSignal,
|
|
80
|
-
});
|
|
81
|
-
if (_response.ok) {
|
|
82
|
-
return {
|
|
83
|
-
ok: _response.ok,
|
|
84
|
-
body: serializers.BiInformationResponse.parseOrThrow(_response.body, {
|
|
85
|
-
unrecognizedObjectKeys: "passthrough",
|
|
86
|
-
allowUnrecognizedUnionMembers: true,
|
|
87
|
-
allowUnrecognizedEnumValues: true,
|
|
88
|
-
breadcrumbsPrefix: ["response"],
|
|
89
|
-
}),
|
|
90
|
-
headers: _response.headers,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
if (_response.error.reason === "status-code") {
|
|
94
|
-
throw new errors.OpikApiError({
|
|
95
|
-
statusCode: _response.error.statusCode,
|
|
96
|
-
body: _response.error.body,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
switch (_response.error.reason) {
|
|
100
|
-
case "non-json":
|
|
101
|
-
throw new errors.OpikApiError({
|
|
102
|
-
statusCode: _response.error.statusCode,
|
|
103
|
-
body: _response.error.rawBody,
|
|
104
|
-
});
|
|
105
|
-
case "timeout":
|
|
106
|
-
throw new errors.OpikApiTimeoutError(
|
|
107
|
-
"Timeout exceeded when calling GET /v1/internal/usage/bi-datasets."
|
|
108
|
-
);
|
|
109
|
-
case "unknown":
|
|
110
|
-
throw new errors.OpikApiError({
|
|
111
|
-
message: _response.error.errorMessage,
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
})()
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Get experiments information for BI events per user per workspace
|
|
120
|
-
*
|
|
121
|
-
* @param {SystemUsage.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
|
-
*
|
|
123
|
-
* @example
|
|
124
|
-
* await client.systemUsage.getExperimentBiInfo()
|
|
125
|
-
*/
|
|
126
|
-
public getExperimentBiInfo(
|
|
127
|
-
requestOptions?: SystemUsage.RequestOptions
|
|
128
|
-
): core.APIPromise<OpikApi.BiInformationResponse> {
|
|
129
|
-
return core.APIPromise.from(
|
|
130
|
-
(async () => {
|
|
131
|
-
const _response = await core.fetcher({
|
|
132
|
-
url: urlJoin(
|
|
133
|
-
(await core.Supplier.get(this._options.environment)) ?? environments.OpikApiEnvironment.Default,
|
|
134
|
-
"v1/internal/usage/bi-experiments"
|
|
135
|
-
),
|
|
136
|
-
method: "GET",
|
|
137
|
-
headers: {
|
|
138
|
-
"Comet-Workspace":
|
|
139
|
-
(await core.Supplier.get(this._options.workspaceName)) != null
|
|
140
|
-
? await core.Supplier.get(this._options.workspaceName)
|
|
141
|
-
: undefined,
|
|
142
|
-
"X-Fern-Language": "JavaScript",
|
|
143
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
144
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
145
|
-
...(await this._getCustomAuthorizationHeaders()),
|
|
146
|
-
...requestOptions?.headers,
|
|
147
|
-
},
|
|
148
|
-
contentType: "application/json",
|
|
149
|
-
requestType: "json",
|
|
150
|
-
timeoutMs:
|
|
151
|
-
requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
152
|
-
maxRetries: requestOptions?.maxRetries,
|
|
153
|
-
withCredentials: true,
|
|
154
|
-
abortSignal: requestOptions?.abortSignal,
|
|
155
|
-
});
|
|
156
|
-
if (_response.ok) {
|
|
157
|
-
return {
|
|
158
|
-
ok: _response.ok,
|
|
159
|
-
body: serializers.BiInformationResponse.parseOrThrow(_response.body, {
|
|
160
|
-
unrecognizedObjectKeys: "passthrough",
|
|
161
|
-
allowUnrecognizedUnionMembers: true,
|
|
162
|
-
allowUnrecognizedEnumValues: true,
|
|
163
|
-
breadcrumbsPrefix: ["response"],
|
|
164
|
-
}),
|
|
165
|
-
headers: _response.headers,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
if (_response.error.reason === "status-code") {
|
|
169
|
-
throw new errors.OpikApiError({
|
|
170
|
-
statusCode: _response.error.statusCode,
|
|
171
|
-
body: _response.error.body,
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
switch (_response.error.reason) {
|
|
175
|
-
case "non-json":
|
|
176
|
-
throw new errors.OpikApiError({
|
|
177
|
-
statusCode: _response.error.statusCode,
|
|
178
|
-
body: _response.error.rawBody,
|
|
179
|
-
});
|
|
180
|
-
case "timeout":
|
|
181
|
-
throw new errors.OpikApiTimeoutError(
|
|
182
|
-
"Timeout exceeded when calling GET /v1/internal/usage/bi-experiments."
|
|
183
|
-
);
|
|
184
|
-
case "unknown":
|
|
185
|
-
throw new errors.OpikApiError({
|
|
186
|
-
message: _response.error.errorMessage,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
})()
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Get traces information for BI events per user per workspace
|
|
195
|
-
*
|
|
196
|
-
* @param {SystemUsage.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
-
*
|
|
198
|
-
* @example
|
|
199
|
-
* await client.systemUsage.getTracesBiInfo()
|
|
200
|
-
*/
|
|
201
|
-
public getTracesBiInfo(
|
|
202
|
-
requestOptions?: SystemUsage.RequestOptions
|
|
203
|
-
): core.APIPromise<OpikApi.BiInformationResponse> {
|
|
204
|
-
return core.APIPromise.from(
|
|
205
|
-
(async () => {
|
|
206
|
-
const _response = await core.fetcher({
|
|
207
|
-
url: urlJoin(
|
|
208
|
-
(await core.Supplier.get(this._options.environment)) ?? environments.OpikApiEnvironment.Default,
|
|
209
|
-
"v1/internal/usage/bi-traces"
|
|
210
|
-
),
|
|
211
|
-
method: "GET",
|
|
212
|
-
headers: {
|
|
213
|
-
"Comet-Workspace":
|
|
214
|
-
(await core.Supplier.get(this._options.workspaceName)) != null
|
|
215
|
-
? await core.Supplier.get(this._options.workspaceName)
|
|
216
|
-
: undefined,
|
|
217
|
-
"X-Fern-Language": "JavaScript",
|
|
218
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
219
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
220
|
-
...(await this._getCustomAuthorizationHeaders()),
|
|
221
|
-
...requestOptions?.headers,
|
|
222
|
-
},
|
|
223
|
-
contentType: "application/json",
|
|
224
|
-
requestType: "json",
|
|
225
|
-
timeoutMs:
|
|
226
|
-
requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
227
|
-
maxRetries: requestOptions?.maxRetries,
|
|
228
|
-
withCredentials: true,
|
|
229
|
-
abortSignal: requestOptions?.abortSignal,
|
|
230
|
-
});
|
|
231
|
-
if (_response.ok) {
|
|
232
|
-
return {
|
|
233
|
-
ok: _response.ok,
|
|
234
|
-
body: serializers.BiInformationResponse.parseOrThrow(_response.body, {
|
|
235
|
-
unrecognizedObjectKeys: "passthrough",
|
|
236
|
-
allowUnrecognizedUnionMembers: true,
|
|
237
|
-
allowUnrecognizedEnumValues: true,
|
|
238
|
-
breadcrumbsPrefix: ["response"],
|
|
239
|
-
}),
|
|
240
|
-
headers: _response.headers,
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
if (_response.error.reason === "status-code") {
|
|
244
|
-
throw new errors.OpikApiError({
|
|
245
|
-
statusCode: _response.error.statusCode,
|
|
246
|
-
body: _response.error.body,
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
switch (_response.error.reason) {
|
|
250
|
-
case "non-json":
|
|
251
|
-
throw new errors.OpikApiError({
|
|
252
|
-
statusCode: _response.error.statusCode,
|
|
253
|
-
body: _response.error.rawBody,
|
|
254
|
-
});
|
|
255
|
-
case "timeout":
|
|
256
|
-
throw new errors.OpikApiTimeoutError(
|
|
257
|
-
"Timeout exceeded when calling GET /v1/internal/usage/bi-traces."
|
|
258
|
-
);
|
|
259
|
-
case "unknown":
|
|
260
|
-
throw new errors.OpikApiError({
|
|
261
|
-
message: _response.error.errorMessage,
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
})()
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Get traces count on previous day for all available workspaces
|
|
270
|
-
*
|
|
271
|
-
* @param {SystemUsage.RequestOptions} requestOptions - Request-specific configuration.
|
|
272
|
-
*
|
|
273
|
-
* @example
|
|
274
|
-
* await client.systemUsage.getTracesCountForWorkspaces()
|
|
275
|
-
*/
|
|
276
|
-
public getTracesCountForWorkspaces(
|
|
277
|
-
requestOptions?: SystemUsage.RequestOptions
|
|
278
|
-
): core.APIPromise<OpikApi.TraceCountResponse> {
|
|
279
|
-
return core.APIPromise.from(
|
|
280
|
-
(async () => {
|
|
281
|
-
const _response = await core.fetcher({
|
|
282
|
-
url: urlJoin(
|
|
283
|
-
(await core.Supplier.get(this._options.environment)) ?? environments.OpikApiEnvironment.Default,
|
|
284
|
-
"v1/internal/usage/workspace-trace-counts"
|
|
285
|
-
),
|
|
286
|
-
method: "GET",
|
|
287
|
-
headers: {
|
|
288
|
-
"Comet-Workspace":
|
|
289
|
-
(await core.Supplier.get(this._options.workspaceName)) != null
|
|
290
|
-
? await core.Supplier.get(this._options.workspaceName)
|
|
291
|
-
: undefined,
|
|
292
|
-
"X-Fern-Language": "JavaScript",
|
|
293
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
294
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
295
|
-
...(await this._getCustomAuthorizationHeaders()),
|
|
296
|
-
...requestOptions?.headers,
|
|
297
|
-
},
|
|
298
|
-
contentType: "application/json",
|
|
299
|
-
requestType: "json",
|
|
300
|
-
timeoutMs:
|
|
301
|
-
requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
302
|
-
maxRetries: requestOptions?.maxRetries,
|
|
303
|
-
withCredentials: true,
|
|
304
|
-
abortSignal: requestOptions?.abortSignal,
|
|
305
|
-
});
|
|
306
|
-
if (_response.ok) {
|
|
307
|
-
return {
|
|
308
|
-
ok: _response.ok,
|
|
309
|
-
body: serializers.TraceCountResponse.parseOrThrow(_response.body, {
|
|
310
|
-
unrecognizedObjectKeys: "passthrough",
|
|
311
|
-
allowUnrecognizedUnionMembers: true,
|
|
312
|
-
allowUnrecognizedEnumValues: true,
|
|
313
|
-
breadcrumbsPrefix: ["response"],
|
|
314
|
-
}),
|
|
315
|
-
headers: _response.headers,
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
if (_response.error.reason === "status-code") {
|
|
319
|
-
throw new errors.OpikApiError({
|
|
320
|
-
statusCode: _response.error.statusCode,
|
|
321
|
-
body: _response.error.body,
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
switch (_response.error.reason) {
|
|
325
|
-
case "non-json":
|
|
326
|
-
throw new errors.OpikApiError({
|
|
327
|
-
statusCode: _response.error.statusCode,
|
|
328
|
-
body: _response.error.rawBody,
|
|
329
|
-
});
|
|
330
|
-
case "timeout":
|
|
331
|
-
throw new errors.OpikApiTimeoutError(
|
|
332
|
-
"Timeout exceeded when calling GET /v1/internal/usage/workspace-trace-counts."
|
|
333
|
-
);
|
|
334
|
-
case "unknown":
|
|
335
|
-
throw new errors.OpikApiError({
|
|
336
|
-
message: _response.error.errorMessage,
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
})()
|
|
340
|
-
);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
protected async _getCustomAuthorizationHeaders() {
|
|
344
|
-
const apiKeyValue = await core.Supplier.get(this._options.apiKey);
|
|
345
|
-
return { Authorization: apiKeyValue };
|
|
346
|
-
}
|
|
347
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client";
|