vellum-ai 0.8.16 → 0.8.18
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/.mock/definition/__package__.yml +297 -5
- package/.mock/definition/metricDefinitions.yml +49 -0
- package/.mock/definition/testSuites.yml +4 -4
- package/.mock/openapi/openapi.yml +470 -12
- package/Client.d.ts +28 -0
- package/Client.js +97 -19
- package/api/client/requests/CodeExecutorRequest.d.ts +28 -0
- package/api/client/requests/CodeExecutorRequest.js +5 -0
- package/api/client/requests/index.d.ts +1 -0
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/metricDefinitions/client/Client.d.ts +44 -0
- package/api/resources/metricDefinitions/client/Client.js +118 -0
- package/api/resources/metricDefinitions/client/index.d.ts +1 -0
- package/api/resources/metricDefinitions/client/index.js +17 -0
- package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +18 -0
- package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js +5 -0
- package/api/resources/metricDefinitions/client/requests/index.d.ts +1 -0
- package/api/resources/metricDefinitions/client/requests/index.js +2 -0
- package/api/resources/metricDefinitions/index.d.ts +1 -0
- package/api/resources/metricDefinitions/index.js +17 -0
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.d.ts +3 -3
- package/api/resources/testSuites/client/Client.js +7 -7
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/types/ArrayInputRequest.d.ts +13 -0
- package/api/types/ArrayInputRequest.js +5 -0
- package/api/types/CodeExecutionPackageRequest.d.ts +7 -0
- package/api/types/CodeExecutionPackageRequest.js +5 -0
- package/api/types/CodeExecutionRuntime.d.ts +12 -0
- package/api/types/CodeExecutionRuntime.js +10 -0
- package/api/types/CodeExecutorInputRequest.d.ts +5 -0
- package/api/types/CodeExecutorInputRequest.js +5 -0
- package/api/types/CodeExecutorResponse.d.ts +8 -0
- package/api/types/CodeExecutorResponse.js +5 -0
- package/api/types/ConditionCombinator.d.ts +12 -0
- package/api/types/ConditionCombinator.js +10 -0
- package/api/types/ErrorInputRequest.d.ts +13 -0
- package/api/types/ErrorInputRequest.js +5 -0
- package/api/types/FunctionCallInputRequest.d.ts +13 -0
- package/api/types/FunctionCallInputRequest.js +5 -0
- package/api/types/GoogleVertexAiVectorizerConfig.d.ts +7 -0
- package/api/types/GoogleVertexAiVectorizerConfig.js +5 -0
- package/api/types/GoogleVertexAiVectorizerConfigRequest.d.ts +7 -0
- package/api/types/GoogleVertexAiVectorizerConfigRequest.js +5 -0
- package/api/types/GoogleVertexAiVectorizerTextEmbedding004.d.ts +8 -0
- package/api/types/GoogleVertexAiVectorizerTextEmbedding004.js +5 -0
- package/api/types/GoogleVertexAiVectorizerTextEmbedding004Request.d.ts +8 -0
- package/api/types/GoogleVertexAiVectorizerTextEmbedding004Request.js +5 -0
- package/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.d.ts +8 -0
- package/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.js +5 -0
- package/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.d.ts +8 -0
- package/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.js +5 -0
- package/api/types/IndexingConfigVectorizer.d.ts +1 -1
- package/api/types/IndexingConfigVectorizerRequest.d.ts +1 -1
- package/api/types/JsonInputRequest.d.ts +1 -1
- package/api/types/LogicalOperator.d.ts +5 -1
- package/api/types/LogicalOperator.js +2 -0
- package/api/types/MetadataFilterConfigRequest.d.ts +3 -0
- package/api/types/MetadataFiltersRequest.d.ts +5 -0
- package/api/types/MetadataFiltersRequest.js +5 -0
- package/api/types/MetricDefinitionExecution.d.ts +7 -0
- package/api/types/MetricDefinitionExecution.js +5 -0
- package/api/types/MetricDefinitionInputRequest.d.ts +5 -0
- package/api/types/MetricDefinitionInputRequest.js +5 -0
- package/api/types/NumberInputRequest.d.ts +12 -0
- package/api/types/NumberInputRequest.js +5 -0
- package/api/types/SearchFiltersRequest.d.ts +1 -1
- package/api/types/SearchResultsInputRequest.d.ts +13 -0
- package/api/types/SearchResultsInputRequest.js +5 -0
- package/api/types/StringInputRequest.d.ts +1 -1
- package/api/types/VellumValue.d.ts +5 -0
- package/api/types/VellumValue.js +5 -0
- package/api/types/VellumValueLogicalConditionGroupRequest.d.ts +13 -0
- package/api/types/VellumValueLogicalConditionGroupRequest.js +5 -0
- package/api/types/VellumValueLogicalConditionRequest.d.ts +13 -0
- package/api/types/VellumValueLogicalConditionRequest.js +5 -0
- package/api/types/VellumValueLogicalExpressionRequest.d.ts +5 -0
- package/api/types/VellumValueLogicalExpressionRequest.js +5 -0
- package/api/types/VellumValueRequest.d.ts +5 -0
- package/api/types/VellumValueRequest.js +5 -0
- package/api/types/index.d.ts +24 -0
- package/api/types/index.js +24 -0
- package/dist/Client.d.ts +28 -0
- package/dist/Client.js +97 -19
- package/dist/api/client/requests/CodeExecutorRequest.d.ts +28 -0
- package/dist/api/client/requests/CodeExecutorRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +44 -0
- package/dist/api/resources/metricDefinitions/client/Client.js +118 -0
- package/dist/api/resources/metricDefinitions/client/index.d.ts +1 -0
- package/dist/api/resources/metricDefinitions/client/index.js +17 -0
- package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +18 -0
- package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js +5 -0
- package/dist/api/resources/metricDefinitions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/metricDefinitions/client/requests/index.js +2 -0
- package/dist/api/resources/metricDefinitions/index.d.ts +1 -0
- package/dist/api/resources/metricDefinitions/index.js +17 -0
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuites/client/Client.js +7 -7
- package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/types/ArrayInputRequest.d.ts +13 -0
- package/dist/api/types/ArrayInputRequest.js +5 -0
- package/dist/api/types/CodeExecutionPackageRequest.d.ts +7 -0
- package/dist/api/types/CodeExecutionPackageRequest.js +5 -0
- package/dist/api/types/CodeExecutionRuntime.d.ts +12 -0
- package/dist/api/types/CodeExecutionRuntime.js +10 -0
- package/dist/api/types/CodeExecutorInputRequest.d.ts +5 -0
- package/dist/api/types/CodeExecutorInputRequest.js +5 -0
- package/dist/api/types/CodeExecutorResponse.d.ts +8 -0
- package/dist/api/types/CodeExecutorResponse.js +5 -0
- package/dist/api/types/ConditionCombinator.d.ts +12 -0
- package/dist/api/types/ConditionCombinator.js +10 -0
- package/dist/api/types/ErrorInputRequest.d.ts +13 -0
- package/dist/api/types/ErrorInputRequest.js +5 -0
- package/dist/api/types/FunctionCallInputRequest.d.ts +13 -0
- package/dist/api/types/FunctionCallInputRequest.js +5 -0
- package/dist/api/types/GoogleVertexAiVectorizerConfig.d.ts +7 -0
- package/dist/api/types/GoogleVertexAiVectorizerConfig.js +5 -0
- package/dist/api/types/GoogleVertexAiVectorizerConfigRequest.d.ts +7 -0
- package/dist/api/types/GoogleVertexAiVectorizerConfigRequest.js +5 -0
- package/dist/api/types/GoogleVertexAiVectorizerTextEmbedding004.d.ts +8 -0
- package/dist/api/types/GoogleVertexAiVectorizerTextEmbedding004.js +5 -0
- package/dist/api/types/GoogleVertexAiVectorizerTextEmbedding004Request.d.ts +8 -0
- package/dist/api/types/GoogleVertexAiVectorizerTextEmbedding004Request.js +5 -0
- package/dist/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.d.ts +8 -0
- package/dist/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.js +5 -0
- package/dist/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.d.ts +8 -0
- package/dist/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.js +5 -0
- package/dist/api/types/IndexingConfigVectorizer.d.ts +1 -1
- package/dist/api/types/IndexingConfigVectorizerRequest.d.ts +1 -1
- package/dist/api/types/JsonInputRequest.d.ts +1 -1
- package/dist/api/types/LogicalOperator.d.ts +5 -1
- package/dist/api/types/LogicalOperator.js +2 -0
- package/dist/api/types/MetadataFilterConfigRequest.d.ts +3 -0
- package/dist/api/types/MetadataFiltersRequest.d.ts +5 -0
- package/dist/api/types/MetadataFiltersRequest.js +5 -0
- package/dist/api/types/MetricDefinitionExecution.d.ts +7 -0
- package/dist/api/types/MetricDefinitionExecution.js +5 -0
- package/dist/api/types/MetricDefinitionInputRequest.d.ts +5 -0
- package/dist/api/types/MetricDefinitionInputRequest.js +5 -0
- package/dist/api/types/NumberInputRequest.d.ts +12 -0
- package/dist/api/types/NumberInputRequest.js +5 -0
- package/dist/api/types/SearchFiltersRequest.d.ts +1 -1
- package/dist/api/types/SearchResultsInputRequest.d.ts +13 -0
- package/dist/api/types/SearchResultsInputRequest.js +5 -0
- package/dist/api/types/StringInputRequest.d.ts +1 -1
- package/dist/api/types/VellumValue.d.ts +5 -0
- package/dist/api/types/VellumValue.js +5 -0
- package/dist/api/types/VellumValueLogicalConditionGroupRequest.d.ts +13 -0
- package/dist/api/types/VellumValueLogicalConditionGroupRequest.js +5 -0
- package/dist/api/types/VellumValueLogicalConditionRequest.d.ts +13 -0
- package/dist/api/types/VellumValueLogicalConditionRequest.js +5 -0
- package/dist/api/types/VellumValueLogicalExpressionRequest.d.ts +5 -0
- package/dist/api/types/VellumValueLogicalExpressionRequest.js +5 -0
- package/dist/api/types/VellumValueRequest.d.ts +5 -0
- package/dist/api/types/VellumValueRequest.js +5 -0
- package/dist/api/types/index.d.ts +24 -0
- package/dist/api/types/index.js +24 -0
- package/dist/serialization/client/requests/CodeExecutorRequest.d.ts +20 -0
- package/dist/serialization/client/requests/CodeExecutorRequest.js +41 -0
- package/dist/serialization/client/requests/index.d.ts +1 -0
- package/dist/serialization/client/requests/index.js +3 -1
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/metricDefinitions/client/index.d.ts +1 -0
- package/dist/serialization/resources/metricDefinitions/client/index.js +17 -0
- package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +14 -0
- package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js +35 -0
- package/dist/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/metricDefinitions/client/requests/index.js +5 -0
- package/dist/serialization/resources/metricDefinitions/index.d.ts +1 -0
- package/dist/serialization/resources/metricDefinitions/index.js +17 -0
- package/dist/serialization/types/ArrayInputRequest.d.ts +14 -0
- package/dist/serialization/types/ArrayInputRequest.js +36 -0
- package/dist/serialization/types/CodeExecutionPackageRequest.d.ts +13 -0
- package/dist/serialization/types/CodeExecutionPackageRequest.js +34 -0
- package/dist/serialization/types/CodeExecutionRuntime.d.ts +10 -0
- package/dist/serialization/types/CodeExecutionRuntime.js +31 -0
- package/dist/serialization/types/CodeExecutorInputRequest.d.ts +18 -0
- package/dist/serialization/types/CodeExecutorInputRequest.js +48 -0
- package/dist/serialization/types/CodeExecutorResponse.d.ts +14 -0
- package/dist/serialization/types/CodeExecutorResponse.js +35 -0
- package/dist/serialization/types/ConditionCombinator.d.ts +10 -0
- package/dist/serialization/types/ConditionCombinator.js +31 -0
- package/dist/serialization/types/ErrorInputRequest.d.ts +15 -0
- package/dist/serialization/types/ErrorInputRequest.js +36 -0
- package/dist/serialization/types/FunctionCallInputRequest.d.ts +15 -0
- package/dist/serialization/types/FunctionCallInputRequest.js +36 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerConfig.d.ts +13 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerConfig.js +34 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerConfigRequest.d.ts +13 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerConfigRequest.js +34 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerTextEmbedding004.d.ts +14 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerTextEmbedding004.js +35 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerTextEmbedding004Request.d.ts +14 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerTextEmbedding004Request.js +35 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.d.ts +14 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.js +35 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.d.ts +14 -0
- package/dist/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.js +35 -0
- package/dist/serialization/types/IndexingConfigVectorizer.d.ts +3 -1
- package/dist/serialization/types/IndexingConfigVectorizer.js +4 -0
- package/dist/serialization/types/IndexingConfigVectorizerRequest.d.ts +3 -1
- package/dist/serialization/types/IndexingConfigVectorizerRequest.js +4 -0
- package/dist/serialization/types/LogicalOperator.d.ts +1 -1
- package/dist/serialization/types/LogicalOperator.js +2 -0
- package/dist/serialization/types/MetadataFiltersRequest.d.ts +11 -0
- package/dist/serialization/types/MetadataFiltersRequest.js +36 -0
- package/dist/serialization/types/MetricDefinitionExecution.d.ts +13 -0
- package/dist/serialization/types/MetricDefinitionExecution.js +34 -0
- package/dist/serialization/types/MetricDefinitionInputRequest.d.ts +14 -0
- package/dist/serialization/types/MetricDefinitionInputRequest.js +40 -0
- package/dist/serialization/types/NumberInputRequest.d.ts +14 -0
- package/dist/serialization/types/NumberInputRequest.js +35 -0
- package/dist/serialization/types/SearchFiltersRequest.d.ts +2 -2
- package/dist/serialization/types/SearchFiltersRequest.js +2 -2
- package/dist/serialization/types/SearchResultsInputRequest.d.ts +15 -0
- package/dist/serialization/types/SearchResultsInputRequest.js +36 -0
- package/dist/serialization/types/VellumValue.d.ts +18 -0
- package/dist/serialization/types/VellumValue.js +50 -0
- package/dist/serialization/types/VellumValueLogicalConditionGroupRequest.d.ts +16 -0
- package/dist/serialization/types/VellumValueLogicalConditionGroupRequest.js +38 -0
- package/dist/serialization/types/VellumValueLogicalConditionRequest.d.ts +17 -0
- package/dist/serialization/types/VellumValueLogicalConditionRequest.js +38 -0
- package/dist/serialization/types/VellumValueLogicalExpressionRequest.d.ts +11 -0
- package/dist/serialization/types/VellumValueLogicalExpressionRequest.js +36 -0
- package/dist/serialization/types/VellumValueRequest.d.ts +18 -0
- package/dist/serialization/types/VellumValueRequest.js +50 -0
- package/dist/serialization/types/index.d.ts +24 -0
- package/dist/serialization/types/index.js +24 -0
- package/package.json +1 -1
- package/reference.md +85 -4
- package/serialization/client/requests/CodeExecutorRequest.d.ts +20 -0
- package/serialization/client/requests/CodeExecutorRequest.js +41 -0
- package/serialization/client/requests/index.d.ts +1 -0
- package/serialization/client/requests/index.js +3 -1
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/metricDefinitions/client/index.d.ts +1 -0
- package/serialization/resources/metricDefinitions/client/index.js +17 -0
- package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +14 -0
- package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js +35 -0
- package/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -0
- package/serialization/resources/metricDefinitions/client/requests/index.js +5 -0
- package/serialization/resources/metricDefinitions/index.d.ts +1 -0
- package/serialization/resources/metricDefinitions/index.js +17 -0
- package/serialization/types/ArrayInputRequest.d.ts +14 -0
- package/serialization/types/ArrayInputRequest.js +36 -0
- package/serialization/types/CodeExecutionPackageRequest.d.ts +13 -0
- package/serialization/types/CodeExecutionPackageRequest.js +34 -0
- package/serialization/types/CodeExecutionRuntime.d.ts +10 -0
- package/serialization/types/CodeExecutionRuntime.js +31 -0
- package/serialization/types/CodeExecutorInputRequest.d.ts +18 -0
- package/serialization/types/CodeExecutorInputRequest.js +48 -0
- package/serialization/types/CodeExecutorResponse.d.ts +14 -0
- package/serialization/types/CodeExecutorResponse.js +35 -0
- package/serialization/types/ConditionCombinator.d.ts +10 -0
- package/serialization/types/ConditionCombinator.js +31 -0
- package/serialization/types/ErrorInputRequest.d.ts +15 -0
- package/serialization/types/ErrorInputRequest.js +36 -0
- package/serialization/types/FunctionCallInputRequest.d.ts +15 -0
- package/serialization/types/FunctionCallInputRequest.js +36 -0
- package/serialization/types/GoogleVertexAiVectorizerConfig.d.ts +13 -0
- package/serialization/types/GoogleVertexAiVectorizerConfig.js +34 -0
- package/serialization/types/GoogleVertexAiVectorizerConfigRequest.d.ts +13 -0
- package/serialization/types/GoogleVertexAiVectorizerConfigRequest.js +34 -0
- package/serialization/types/GoogleVertexAiVectorizerTextEmbedding004.d.ts +14 -0
- package/serialization/types/GoogleVertexAiVectorizerTextEmbedding004.js +35 -0
- package/serialization/types/GoogleVertexAiVectorizerTextEmbedding004Request.d.ts +14 -0
- package/serialization/types/GoogleVertexAiVectorizerTextEmbedding004Request.js +35 -0
- package/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.d.ts +14 -0
- package/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.js +35 -0
- package/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.d.ts +14 -0
- package/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.js +35 -0
- package/serialization/types/IndexingConfigVectorizer.d.ts +3 -1
- package/serialization/types/IndexingConfigVectorizer.js +4 -0
- package/serialization/types/IndexingConfigVectorizerRequest.d.ts +3 -1
- package/serialization/types/IndexingConfigVectorizerRequest.js +4 -0
- package/serialization/types/LogicalOperator.d.ts +1 -1
- package/serialization/types/LogicalOperator.js +2 -0
- package/serialization/types/MetadataFiltersRequest.d.ts +11 -0
- package/serialization/types/MetadataFiltersRequest.js +36 -0
- package/serialization/types/MetricDefinitionExecution.d.ts +13 -0
- package/serialization/types/MetricDefinitionExecution.js +34 -0
- package/serialization/types/MetricDefinitionInputRequest.d.ts +14 -0
- package/serialization/types/MetricDefinitionInputRequest.js +40 -0
- package/serialization/types/NumberInputRequest.d.ts +14 -0
- package/serialization/types/NumberInputRequest.js +35 -0
- package/serialization/types/SearchFiltersRequest.d.ts +2 -2
- package/serialization/types/SearchFiltersRequest.js +2 -2
- package/serialization/types/SearchResultsInputRequest.d.ts +15 -0
- package/serialization/types/SearchResultsInputRequest.js +36 -0
- package/serialization/types/VellumValue.d.ts +18 -0
- package/serialization/types/VellumValue.js +50 -0
- package/serialization/types/VellumValueLogicalConditionGroupRequest.d.ts +16 -0
- package/serialization/types/VellumValueLogicalConditionGroupRequest.js +38 -0
- package/serialization/types/VellumValueLogicalConditionRequest.d.ts +17 -0
- package/serialization/types/VellumValueLogicalConditionRequest.js +38 -0
- package/serialization/types/VellumValueLogicalExpressionRequest.d.ts +11 -0
- package/serialization/types/VellumValueLogicalExpressionRequest.js +36 -0
- package/serialization/types/VellumValueRequest.d.ts +18 -0
- package/serialization/types/VellumValueRequest.js +50 -0
- package/serialization/types/index.d.ts +24 -0
- package/serialization/types/index.js +24 -0
package/Client.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Deployments } from "./api/resources/deployments/client/Client";
|
|
|
9
9
|
import { DocumentIndexes } from "./api/resources/documentIndexes/client/Client";
|
|
10
10
|
import { Documents } from "./api/resources/documents/client/Client";
|
|
11
11
|
import { FolderEntities } from "./api/resources/folderEntities/client/Client";
|
|
12
|
+
import { MetricDefinitions } from "./api/resources/metricDefinitions/client/Client";
|
|
12
13
|
import { Sandboxes } from "./api/resources/sandboxes/client/Client";
|
|
13
14
|
import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
|
|
14
15
|
import { TestSuites } from "./api/resources/testSuites/client/Client";
|
|
@@ -31,6 +32,31 @@ export declare namespace VellumClient {
|
|
|
31
32
|
export declare class VellumClient {
|
|
32
33
|
protected readonly _options: VellumClient.Options;
|
|
33
34
|
constructor(_options: VellumClient.Options);
|
|
35
|
+
/**
|
|
36
|
+
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
37
|
+
*
|
|
38
|
+
* @param {Vellum.CodeExecutorRequest} request
|
|
39
|
+
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link Vellum.BadRequestError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.executeCode({
|
|
45
|
+
* code: "code",
|
|
46
|
+
* runtime: Vellum.CodeExecutionRuntime.Python3116,
|
|
47
|
+
* inputValues: [{
|
|
48
|
+
* name: "name",
|
|
49
|
+
* type: "STRING",
|
|
50
|
+
* value: "value"
|
|
51
|
+
* }],
|
|
52
|
+
* packages: [{
|
|
53
|
+
* version: "version",
|
|
54
|
+
* name: "name"
|
|
55
|
+
* }],
|
|
56
|
+
* outputType: Vellum.VellumVariableType.String
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
executeCode(request: Vellum.CodeExecutorRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.CodeExecutorResponse>;
|
|
34
60
|
/**
|
|
35
61
|
* Executes a deployed Prompt and returns the result.
|
|
36
62
|
*
|
|
@@ -169,6 +195,8 @@ export declare class VellumClient {
|
|
|
169
195
|
get documents(): Documents;
|
|
170
196
|
protected _folderEntities: FolderEntities | undefined;
|
|
171
197
|
get folderEntities(): FolderEntities;
|
|
198
|
+
protected _metricDefinitions: MetricDefinitions | undefined;
|
|
199
|
+
get metricDefinitions(): MetricDefinitions;
|
|
172
200
|
protected _sandboxes: Sandboxes | undefined;
|
|
173
201
|
get sandboxes(): Sandboxes;
|
|
174
202
|
protected _testSuiteRuns: TestSuiteRuns | undefined;
|
package/Client.js
CHANGED
|
@@ -50,15 +50,89 @@ const Client_2 = require("./api/resources/deployments/client/Client");
|
|
|
50
50
|
const Client_3 = require("./api/resources/documentIndexes/client/Client");
|
|
51
51
|
const Client_4 = require("./api/resources/documents/client/Client");
|
|
52
52
|
const Client_5 = require("./api/resources/folderEntities/client/Client");
|
|
53
|
-
const Client_6 = require("./api/resources/
|
|
54
|
-
const Client_7 = require("./api/resources/
|
|
55
|
-
const Client_8 = require("./api/resources/
|
|
56
|
-
const Client_9 = require("./api/resources/
|
|
57
|
-
const Client_10 = require("./api/resources/
|
|
53
|
+
const Client_6 = require("./api/resources/metricDefinitions/client/Client");
|
|
54
|
+
const Client_7 = require("./api/resources/sandboxes/client/Client");
|
|
55
|
+
const Client_8 = require("./api/resources/testSuiteRuns/client/Client");
|
|
56
|
+
const Client_9 = require("./api/resources/testSuites/client/Client");
|
|
57
|
+
const Client_10 = require("./api/resources/workflowDeployments/client/Client");
|
|
58
|
+
const Client_11 = require("./api/resources/workflowSandboxes/client/Client");
|
|
58
59
|
class VellumClient {
|
|
59
60
|
constructor(_options) {
|
|
60
61
|
this._options = _options;
|
|
61
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
65
|
+
*
|
|
66
|
+
* @param {Vellum.CodeExecutorRequest} request
|
|
67
|
+
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Vellum.BadRequestError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.executeCode({
|
|
73
|
+
* code: "code",
|
|
74
|
+
* runtime: Vellum.CodeExecutionRuntime.Python3116,
|
|
75
|
+
* inputValues: [{
|
|
76
|
+
* name: "name",
|
|
77
|
+
* type: "STRING",
|
|
78
|
+
* value: "value"
|
|
79
|
+
* }],
|
|
80
|
+
* packages: [{
|
|
81
|
+
* version: "version",
|
|
82
|
+
* name: "name"
|
|
83
|
+
* }],
|
|
84
|
+
* outputType: Vellum.VellumVariableType.String
|
|
85
|
+
* })
|
|
86
|
+
*/
|
|
87
|
+
executeCode(request, requestOptions) {
|
|
88
|
+
var _a;
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const _response = yield core.fetcher({
|
|
91
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
92
|
+
.default, "v1/execute-code"),
|
|
93
|
+
method: "POST",
|
|
94
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
95
|
+
contentType: "application/json",
|
|
96
|
+
requestType: "json",
|
|
97
|
+
body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
98
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
99
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
100
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
101
|
+
});
|
|
102
|
+
if (_response.ok) {
|
|
103
|
+
return serializers.CodeExecutorResponse.parseOrThrow(_response.body, {
|
|
104
|
+
unrecognizedObjectKeys: "passthrough",
|
|
105
|
+
allowUnrecognizedUnionMembers: true,
|
|
106
|
+
allowUnrecognizedEnumValues: true,
|
|
107
|
+
breadcrumbsPrefix: ["response"],
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
if (_response.error.reason === "status-code") {
|
|
111
|
+
switch (_response.error.statusCode) {
|
|
112
|
+
case 400:
|
|
113
|
+
throw new Vellum.BadRequestError(_response.error.body);
|
|
114
|
+
default:
|
|
115
|
+
throw new errors.VellumError({
|
|
116
|
+
statusCode: _response.error.statusCode,
|
|
117
|
+
body: _response.error.body,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
switch (_response.error.reason) {
|
|
122
|
+
case "non-json":
|
|
123
|
+
throw new errors.VellumError({
|
|
124
|
+
statusCode: _response.error.statusCode,
|
|
125
|
+
body: _response.error.rawBody,
|
|
126
|
+
});
|
|
127
|
+
case "timeout":
|
|
128
|
+
throw new errors.VellumTimeoutError();
|
|
129
|
+
case "unknown":
|
|
130
|
+
throw new errors.VellumError({
|
|
131
|
+
message: _response.error.errorMessage,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
62
136
|
/**
|
|
63
137
|
* Executes a deployed Prompt and returns the result.
|
|
64
138
|
*
|
|
@@ -86,7 +160,7 @@ class VellumClient {
|
|
|
86
160
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
87
161
|
.predict, "v1/execute-prompt"),
|
|
88
162
|
method: "POST",
|
|
89
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
163
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
90
164
|
contentType: "application/json",
|
|
91
165
|
requestType: "json",
|
|
92
166
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -144,7 +218,7 @@ class VellumClient {
|
|
|
144
218
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
145
219
|
.predict, "v1/execute-prompt-stream"),
|
|
146
220
|
method: "POST",
|
|
147
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
221
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
148
222
|
contentType: "application/json",
|
|
149
223
|
requestType: "json",
|
|
150
224
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -229,7 +303,7 @@ class VellumClient {
|
|
|
229
303
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
230
304
|
.predict, "v1/execute-workflow"),
|
|
231
305
|
method: "POST",
|
|
232
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
306
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
233
307
|
contentType: "application/json",
|
|
234
308
|
requestType: "json",
|
|
235
309
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -285,7 +359,7 @@ class VellumClient {
|
|
|
285
359
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
286
360
|
.predict, "v1/execute-workflow-stream"),
|
|
287
361
|
method: "POST",
|
|
288
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
362
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
289
363
|
contentType: "application/json",
|
|
290
364
|
requestType: "json",
|
|
291
365
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -372,7 +446,7 @@ class VellumClient {
|
|
|
372
446
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
373
447
|
.predict, "v1/generate"),
|
|
374
448
|
method: "POST",
|
|
375
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
449
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
376
450
|
contentType: "application/json",
|
|
377
451
|
requestType: "json",
|
|
378
452
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -433,7 +507,7 @@ class VellumClient {
|
|
|
433
507
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
434
508
|
.predict, "v1/generate-stream"),
|
|
435
509
|
method: "POST",
|
|
436
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
510
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
437
511
|
contentType: "application/json",
|
|
438
512
|
requestType: "json",
|
|
439
513
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -514,7 +588,7 @@ class VellumClient {
|
|
|
514
588
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
515
589
|
.predict, "v1/search"),
|
|
516
590
|
method: "POST",
|
|
517
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
591
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
518
592
|
contentType: "application/json",
|
|
519
593
|
requestType: "json",
|
|
520
594
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -582,7 +656,7 @@ class VellumClient {
|
|
|
582
656
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
583
657
|
.predict, "v1/submit-completion-actuals"),
|
|
584
658
|
method: "POST",
|
|
585
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
659
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
586
660
|
contentType: "application/json",
|
|
587
661
|
requestType: "json",
|
|
588
662
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -645,7 +719,7 @@ class VellumClient {
|
|
|
645
719
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
646
720
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
647
721
|
method: "POST",
|
|
648
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
722
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
649
723
|
contentType: "application/json",
|
|
650
724
|
requestType: "json",
|
|
651
725
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -699,25 +773,29 @@ class VellumClient {
|
|
|
699
773
|
var _a;
|
|
700
774
|
return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new Client_5.FolderEntities(this._options)));
|
|
701
775
|
}
|
|
776
|
+
get metricDefinitions() {
|
|
777
|
+
var _a;
|
|
778
|
+
return ((_a = this._metricDefinitions) !== null && _a !== void 0 ? _a : (this._metricDefinitions = new Client_6.MetricDefinitions(this._options)));
|
|
779
|
+
}
|
|
702
780
|
get sandboxes() {
|
|
703
781
|
var _a;
|
|
704
|
-
return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new
|
|
782
|
+
return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_7.Sandboxes(this._options)));
|
|
705
783
|
}
|
|
706
784
|
get testSuiteRuns() {
|
|
707
785
|
var _a;
|
|
708
|
-
return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new
|
|
786
|
+
return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_8.TestSuiteRuns(this._options)));
|
|
709
787
|
}
|
|
710
788
|
get testSuites() {
|
|
711
789
|
var _a;
|
|
712
|
-
return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new
|
|
790
|
+
return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_9.TestSuites(this._options)));
|
|
713
791
|
}
|
|
714
792
|
get workflowDeployments() {
|
|
715
793
|
var _a;
|
|
716
|
-
return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new
|
|
794
|
+
return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_10.WorkflowDeployments(this._options)));
|
|
717
795
|
}
|
|
718
796
|
get workflowSandboxes() {
|
|
719
797
|
var _a;
|
|
720
|
-
return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new
|
|
798
|
+
return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_11.WorkflowSandboxes(this._options)));
|
|
721
799
|
}
|
|
722
800
|
_getCustomAuthorizationHeaders() {
|
|
723
801
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* code: "code",
|
|
9
|
+
* runtime: Vellum.CodeExecutionRuntime.Python3116,
|
|
10
|
+
* inputValues: [{
|
|
11
|
+
* name: "name",
|
|
12
|
+
* type: "STRING",
|
|
13
|
+
* value: "value"
|
|
14
|
+
* }],
|
|
15
|
+
* packages: [{
|
|
16
|
+
* version: "version",
|
|
17
|
+
* name: "name"
|
|
18
|
+
* }],
|
|
19
|
+
* outputType: Vellum.VellumVariableType.String
|
|
20
|
+
* }
|
|
21
|
+
*/
|
|
22
|
+
export interface CodeExecutorRequest {
|
|
23
|
+
code: string;
|
|
24
|
+
runtime: Vellum.CodeExecutionRuntime;
|
|
25
|
+
inputValues: Vellum.CodeExecutorInputRequest[];
|
|
26
|
+
packages: Vellum.CodeExecutionPackageRequest[];
|
|
27
|
+
outputType: Vellum.VellumVariableType;
|
|
28
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type CodeExecutorRequest } from "./CodeExecutorRequest";
|
|
1
2
|
export { type ExecutePromptRequest } from "./ExecutePromptRequest";
|
|
2
3
|
export { type ExecutePromptStreamRequest } from "./ExecutePromptStreamRequest";
|
|
3
4
|
export { type ExecuteWorkflowRequest } from "./ExecuteWorkflowRequest";
|
|
@@ -59,7 +59,7 @@ class AdHoc {
|
|
|
59
59
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
60
60
|
.default, "v1/ad-hoc/execute-prompt-stream"),
|
|
61
61
|
method: "POST",
|
|
62
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
63
63
|
contentType: "application/json",
|
|
64
64
|
requestType: "json",
|
|
65
65
|
body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -79,7 +79,7 @@ class Deployments {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/deployments"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -132,7 +132,7 @@ class Deployments {
|
|
|
132
132
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
133
133
|
.default, `v1/deployments/${encodeURIComponent(id)}`),
|
|
134
134
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -185,7 +185,7 @@ class Deployments {
|
|
|
185
185
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
186
186
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
187
187
|
method: "GET",
|
|
188
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
188
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
189
189
|
contentType: "application/json",
|
|
190
190
|
requestType: "json",
|
|
191
191
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -239,7 +239,7 @@ class Deployments {
|
|
|
239
239
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
240
240
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
241
241
|
method: "PATCH",
|
|
242
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
242
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
243
243
|
contentType: "application/json",
|
|
244
244
|
requestType: "json",
|
|
245
245
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -314,7 +314,7 @@ class Deployments {
|
|
|
314
314
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
315
315
|
.default, "v1/deployments/provider-payload"),
|
|
316
316
|
method: "POST",
|
|
317
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
317
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -81,7 +81,7 @@ class DocumentIndexes {
|
|
|
81
81
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/document-indexes"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
queryParameters: _queryParams,
|
|
87
87
|
requestType: "json",
|
|
@@ -196,7 +196,7 @@ class DocumentIndexes {
|
|
|
196
196
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
197
197
|
.default, "v1/document-indexes"),
|
|
198
198
|
method: "POST",
|
|
199
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
requestType: "json",
|
|
202
202
|
body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -249,7 +249,7 @@ class DocumentIndexes {
|
|
|
249
249
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
250
250
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
251
251
|
method: "GET",
|
|
252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
requestType: "json",
|
|
255
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -304,7 +304,7 @@ class DocumentIndexes {
|
|
|
304
304
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
305
305
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
306
306
|
method: "PUT",
|
|
307
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
307
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
308
308
|
contentType: "application/json",
|
|
309
309
|
requestType: "json",
|
|
310
310
|
body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -357,7 +357,7 @@ class DocumentIndexes {
|
|
|
357
357
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
358
358
|
.documents, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
359
359
|
method: "DELETE",
|
|
360
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
360
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
361
361
|
contentType: "application/json",
|
|
362
362
|
requestType: "json",
|
|
363
363
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -405,7 +405,7 @@ class DocumentIndexes {
|
|
|
405
405
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
406
406
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
407
407
|
method: "PATCH",
|
|
408
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
408
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
409
409
|
contentType: "application/json",
|
|
410
410
|
requestType: "json",
|
|
411
411
|
body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
@@ -461,7 +461,7 @@ class DocumentIndexes {
|
|
|
461
461
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
462
462
|
.default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
463
463
|
method: "POST",
|
|
464
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
464
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
465
465
|
contentType: "application/json",
|
|
466
466
|
requestType: "json",
|
|
467
467
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -509,7 +509,7 @@ class DocumentIndexes {
|
|
|
509
509
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
510
510
|
.documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
511
511
|
method: "DELETE",
|
|
512
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
512
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
513
513
|
contentType: "application/json",
|
|
514
514
|
requestType: "json",
|
|
515
515
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -79,7 +79,7 @@ class Documents {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/documents"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -132,7 +132,7 @@ class Documents {
|
|
|
132
132
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
133
133
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
134
134
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -184,7 +184,7 @@ class Documents {
|
|
|
184
184
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
185
|
.documents, `v1/documents/${encodeURIComponent(id)}`),
|
|
186
186
|
method: "DELETE",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -232,7 +232,7 @@ class Documents {
|
|
|
232
232
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
233
233
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
234
234
|
method: "PATCH",
|
|
235
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
235
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
236
236
|
contentType: "application/json",
|
|
237
237
|
requestType: "json",
|
|
238
238
|
body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -322,7 +322,7 @@ class Documents {
|
|
|
322
322
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
323
323
|
.documents, "v1/upload-document"),
|
|
324
324
|
method: "POST",
|
|
325
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
325
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
|
|
326
326
|
requestType: "file",
|
|
327
327
|
duplex: _maybeEncodedRequest.duplex,
|
|
328
328
|
body: _maybeEncodedRequest.body,
|
|
@@ -69,7 +69,7 @@ class FolderEntities {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
|
|
71
71
|
method: "POST",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.18", "User-Agent": "vellum-ai/0.8.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
requestType: "json",
|
|
75
75
|
body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
package/api/resources/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./workflowDeployments/types";
|
|
|
7
7
|
export * as adHoc from "./adHoc";
|
|
8
8
|
export * as documents from "./documents";
|
|
9
9
|
export * as folderEntities from "./folderEntities";
|
|
10
|
+
export * as metricDefinitions from "./metricDefinitions";
|
|
10
11
|
export * as sandboxes from "./sandboxes";
|
|
11
12
|
export * as testSuiteRuns from "./testSuiteRuns";
|
|
12
13
|
export * as testSuites from "./testSuites";
|
|
@@ -16,6 +17,7 @@ export * from "./deployments/client/requests";
|
|
|
16
17
|
export * from "./documentIndexes/client/requests";
|
|
17
18
|
export * from "./documents/client/requests";
|
|
18
19
|
export * from "./folderEntities/client/requests";
|
|
20
|
+
export * from "./metricDefinitions/client/requests";
|
|
19
21
|
export * from "./sandboxes/client/requests";
|
|
20
22
|
export * from "./testSuiteRuns/client/requests";
|
|
21
23
|
export * from "./testSuites/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.folderEntities = exports.documents = exports.adHoc = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
|
|
29
|
+
exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.folderEntities = exports.documents = exports.adHoc = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
|
|
30
30
|
exports.deployments = __importStar(require("./deployments"));
|
|
31
31
|
__exportStar(require("./deployments/types"), exports);
|
|
32
32
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -36,6 +36,7 @@ __exportStar(require("./workflowDeployments/types"), exports);
|
|
|
36
36
|
exports.adHoc = __importStar(require("./adHoc"));
|
|
37
37
|
exports.documents = __importStar(require("./documents"));
|
|
38
38
|
exports.folderEntities = __importStar(require("./folderEntities"));
|
|
39
|
+
exports.metricDefinitions = __importStar(require("./metricDefinitions"));
|
|
39
40
|
exports.sandboxes = __importStar(require("./sandboxes"));
|
|
40
41
|
exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
|
|
41
42
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
@@ -45,6 +46,7 @@ __exportStar(require("./deployments/client/requests"), exports);
|
|
|
45
46
|
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
46
47
|
__exportStar(require("./documents/client/requests"), exports);
|
|
47
48
|
__exportStar(require("./folderEntities/client/requests"), exports);
|
|
49
|
+
__exportStar(require("./metricDefinitions/client/requests"), exports);
|
|
48
50
|
__exportStar(require("./sandboxes/client/requests"), exports);
|
|
49
51
|
__exportStar(require("./testSuiteRuns/client/requests"), exports);
|
|
50
52
|
__exportStar(require("./testSuites/client/requests"), exports);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Vellum from "../../../index";
|
|
7
|
+
export declare namespace MetricDefinitions {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
|
+
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
+
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare class MetricDefinitions {
|
|
22
|
+
protected readonly _options: MetricDefinitions.Options;
|
|
23
|
+
constructor(_options: MetricDefinitions.Options);
|
|
24
|
+
/**
|
|
25
|
+
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
26
|
+
*
|
|
27
|
+
* @param {string} id - Either the Metric Definition's ID or its unique name
|
|
28
|
+
* @param {Vellum.ExecuteMetricDefinitionRequest} request
|
|
29
|
+
* @param {MetricDefinitions.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.metricDefinitions.executeMetricDefinition("id", {
|
|
33
|
+
* inputs: [{
|
|
34
|
+
* name: "name",
|
|
35
|
+
* type: "STRING",
|
|
36
|
+
* value: "value"
|
|
37
|
+
* }]
|
|
38
|
+
* })
|
|
39
|
+
*/
|
|
40
|
+
executeMetricDefinition(id: string, request: Vellum.ExecuteMetricDefinitionRequest, requestOptions?: MetricDefinitions.RequestOptions): Promise<Vellum.MetricDefinitionExecution>;
|
|
41
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
42
|
+
X_API_KEY: string;
|
|
43
|
+
}>;
|
|
44
|
+
}
|