vellum-ai 0.0.45 → 0.1.1
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/Client.d.ts +23 -26
- package/Client.js +288 -242
- package/api/resources/deployments/client/Client.d.ts +8 -4
- package/api/resources/deployments/client/Client.js +52 -34
- package/api/resources/documentIndexes/client/Client.d.ts +9 -5
- package/api/resources/documentIndexes/client/Client.js +97 -69
- package/api/resources/documents/client/Client.d.ts +14 -10
- package/api/resources/documents/client/Client.js +222 -176
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/modelVersions/client/Client.d.ts +8 -8
- package/api/resources/modelVersions/client/Client.js +51 -75
- package/api/resources/modelVersions/client/index.d.ts +1 -1
- package/api/resources/modelVersions/client/index.js +0 -15
- package/api/resources/registeredPrompts/client/Client.d.ts +11 -7
- package/api/resources/registeredPrompts/client/Client.js +72 -53
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +4 -1
- package/api/resources/sandboxes/client/Client.d.ts +9 -5
- package/api/resources/sandboxes/client/Client.js +92 -65
- package/api/resources/testSuites/client/Client.d.ts +9 -5
- package/api/resources/testSuites/client/Client.js +90 -63
- package/api/types/EnrichedNormalizedCompletion.d.ts +3 -1
- package/api/types/ModelVersionRead.d.ts +3 -0
- package/api/types/ProviderEnum.d.ts +7 -1
- package/api/types/ProviderEnum.js +3 -0
- package/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -1
- package/api/types/RegisterPromptResponse.d.ts +2 -0
- package/api/types/index.d.ts +0 -2
- package/api/types/index.js +0 -2
- package/core/fetcher/Fetcher.d.ts +5 -3
- package/core/fetcher/Fetcher.js +104 -62
- package/core/fetcher/Supplier.js +11 -2
- package/core/fetcher/index.d.ts +3 -2
- package/core/form-data-utils/getFormDataContentLength.d.ts +1 -1
- package/core/form-data-utils/getFormDataContentLength.js +20 -9
- package/core/index.d.ts +1 -2
- package/core/index.js +4 -5
- package/core/schemas/Schema.d.ts +19 -0
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/date/date.js +22 -14
- package/core/schemas/builders/enum/enum.js +17 -7
- package/core/schemas/builders/lazy/index.d.ts +2 -1
- package/core/schemas/builders/lazy/lazy.js +21 -13
- package/core/schemas/builders/lazy/lazyObject.js +11 -11
- package/core/schemas/builders/list/list.js +53 -38
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +1 -0
- package/core/schemas/builders/literals/index.js +3 -1
- package/core/schemas/builders/literals/stringLiteral.js +4 -3
- package/core/schemas/builders/object/index.d.ts +5 -2
- package/core/schemas/builders/object/index.js +3 -1
- package/core/schemas/builders/object/object.js +150 -129
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +19 -18
- package/core/schemas/builders/object-like/index.d.ts +1 -1
- package/core/schemas/builders/primitives/boolean.js +4 -3
- package/core/schemas/builders/primitives/number.js +4 -3
- package/core/schemas/builders/primitives/string.js +4 -3
- package/core/schemas/builders/record/index.d.ts +1 -1
- package/core/schemas/builders/record/record.js +82 -67
- package/core/schemas/builders/schema-utils/JsonError.js +0 -1
- package/core/schemas/builders/schema-utils/ParseError.js +0 -1
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
- package/core/schemas/builders/schema-utils/index.d.ts +2 -1
- package/core/schemas/builders/set/set.js +21 -12
- package/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +38 -24
- package/core/schemas/builders/union/index.d.ts +3 -2
- package/core/schemas/builders/union/union.js +95 -74
- package/core/schemas/index.d.ts +1 -1
- package/core/schemas/utils/createIdentitySchemaCreator.js +2 -4
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/core/streaming-fetcher/Stream.d.ts +14 -0
- package/core/streaming-fetcher/Stream.js +75 -0
- package/core/streaming-fetcher/StreamingFetcher.d.ts +10 -8
- package/core/streaming-fetcher/StreamingFetcher.js +38 -44
- package/core/streaming-fetcher/getHeader.d.ts +2 -0
- package/core/streaming-fetcher/getHeader.js +12 -0
- package/core/streaming-fetcher/index.d.ts +4 -1
- package/core/streaming-fetcher/index.js +5 -1
- package/dist/Client.d.ts +23 -26
- package/dist/Client.js +288 -242
- package/dist/api/resources/deployments/client/Client.d.ts +8 -4
- package/dist/api/resources/deployments/client/Client.js +52 -34
- package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -5
- package/dist/api/resources/documentIndexes/client/Client.js +97 -69
- package/dist/api/resources/documents/client/Client.d.ts +14 -10
- package/dist/api/resources/documents/client/Client.js +222 -176
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/modelVersions/client/Client.d.ts +8 -8
- package/dist/api/resources/modelVersions/client/Client.js +51 -75
- package/dist/api/resources/modelVersions/client/index.d.ts +1 -1
- package/dist/api/resources/modelVersions/client/index.js +0 -15
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +11 -7
- package/dist/api/resources/registeredPrompts/client/Client.js +72 -53
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +4 -1
- package/dist/api/resources/sandboxes/client/Client.d.ts +9 -5
- package/dist/api/resources/sandboxes/client/Client.js +92 -65
- package/dist/api/resources/testSuites/client/Client.d.ts +9 -5
- package/dist/api/resources/testSuites/client/Client.js +90 -63
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +3 -1
- package/dist/api/types/ModelVersionRead.d.ts +3 -0
- package/dist/api/types/ProviderEnum.d.ts +7 -1
- package/dist/api/types/ProviderEnum.js +3 -0
- package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -1
- package/dist/api/types/RegisterPromptResponse.d.ts +2 -0
- package/dist/api/types/index.d.ts +0 -2
- package/dist/api/types/index.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +5 -3
- package/dist/core/fetcher/Fetcher.js +104 -62
- package/dist/core/fetcher/Supplier.js +11 -2
- package/dist/core/fetcher/index.d.ts +3 -2
- package/dist/core/form-data-utils/getFormDataContentLength.d.ts +1 -1
- package/dist/core/form-data-utils/getFormDataContentLength.js +20 -9
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.js +4 -5
- package/dist/core/schemas/Schema.d.ts +19 -0
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/date/date.js +22 -14
- package/dist/core/schemas/builders/enum/enum.js +17 -7
- package/dist/core/schemas/builders/lazy/index.d.ts +2 -1
- package/dist/core/schemas/builders/lazy/lazy.js +21 -13
- package/dist/core/schemas/builders/lazy/lazyObject.js +11 -11
- package/dist/core/schemas/builders/list/list.js +53 -38
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +1 -0
- package/dist/core/schemas/builders/literals/index.js +3 -1
- package/dist/core/schemas/builders/literals/stringLiteral.js +4 -3
- package/dist/core/schemas/builders/object/index.d.ts +5 -2
- package/dist/core/schemas/builders/object/index.js +3 -1
- package/dist/core/schemas/builders/object/object.js +150 -129
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +19 -18
- package/dist/core/schemas/builders/object-like/index.d.ts +1 -1
- package/dist/core/schemas/builders/primitives/boolean.js +4 -3
- package/dist/core/schemas/builders/primitives/number.js +4 -3
- package/dist/core/schemas/builders/primitives/string.js +4 -3
- package/dist/core/schemas/builders/record/index.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +82 -67
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -1
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -1
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
- package/dist/core/schemas/builders/schema-utils/index.d.ts +2 -1
- package/dist/core/schemas/builders/set/set.js +21 -12
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +38 -24
- package/dist/core/schemas/builders/union/index.d.ts +3 -2
- package/dist/core/schemas/builders/union/union.js +95 -74
- package/dist/core/schemas/index.d.ts +1 -1
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +2 -4
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/dist/core/streaming-fetcher/Stream.d.ts +14 -0
- package/dist/core/streaming-fetcher/Stream.js +75 -0
- package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +10 -8
- package/dist/core/streaming-fetcher/StreamingFetcher.js +38 -44
- package/dist/core/streaming-fetcher/getHeader.d.ts +2 -0
- package/dist/core/streaming-fetcher/getHeader.js +12 -0
- package/dist/core/streaming-fetcher/index.d.ts +4 -1
- package/dist/core/streaming-fetcher/index.js +5 -1
- package/dist/errors/VellumError.js +14 -3
- package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.js +11 -2
- package/dist/serialization/client/requests/GenerateBodyRequest.js +11 -2
- package/dist/serialization/client/requests/GenerateStreamBodyRequest.js +11 -2
- package/dist/serialization/client/requests/SearchRequestBodyRequest.js +10 -1
- package/dist/serialization/client/requests/SubmitCompletionActualsRequest.js +10 -1
- package/dist/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.js +10 -1
- package/dist/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +11 -2
- package/dist/serialization/resources/documents/client/requests/PatchedDocumentUpdateRequest.js +10 -1
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -1
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +12 -3
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +11 -2
- package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +10 -1
- package/dist/serialization/types/ApiNodeResult.js +10 -1
- package/dist/serialization/types/ChatMessage.js +10 -1
- package/dist/serialization/types/ChatMessageRequest.js +10 -1
- package/dist/serialization/types/ConditionalNodeResult.js +10 -1
- package/dist/serialization/types/DeploymentRead.js +12 -3
- package/dist/serialization/types/DocumentDocumentToDocumentIndex.js +10 -1
- package/dist/serialization/types/DocumentIndexRead.js +11 -2
- package/dist/serialization/types/DocumentRead.js +12 -3
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +3 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +15 -4
- package/dist/serialization/types/GenerateOptionsRequest.js +10 -1
- package/dist/serialization/types/GenerateRequest.js +10 -1
- package/dist/serialization/types/GenerateResponse.js +10 -1
- package/dist/serialization/types/GenerateResult.js +11 -2
- package/dist/serialization/types/GenerateResultData.js +10 -1
- package/dist/serialization/types/GenerateStreamResponse.js +10 -1
- package/dist/serialization/types/GenerateStreamResult.js +11 -2
- package/dist/serialization/types/GenerateStreamResultData.js +10 -1
- package/dist/serialization/types/MetadataFilterConfigRequest.js +12 -3
- package/dist/serialization/types/MetadataFilterRuleRequest.js +12 -3
- package/dist/serialization/types/ModelVersionBuildConfig.js +10 -1
- package/dist/serialization/types/ModelVersionExecConfig.js +12 -3
- package/dist/serialization/types/ModelVersionRead.js +13 -4
- package/dist/serialization/types/NodeInputCompiledChatHistoryValue.js +10 -1
- package/dist/serialization/types/NodeInputCompiledErrorValue.js +10 -1
- package/dist/serialization/types/NodeInputCompiledSearchResultsValue.js +10 -1
- package/dist/serialization/types/NodeInputVariableCompiledValue.js +15 -6
- package/dist/serialization/types/NormalizedLogProbs.js +10 -1
- package/dist/serialization/types/PaginatedSlimDocumentList.js +10 -1
- package/dist/serialization/types/PromptNodeResult.js +10 -1
- package/dist/serialization/types/PromptTemplateBlock.js +11 -2
- package/dist/serialization/types/PromptTemplateBlockData.js +10 -1
- package/dist/serialization/types/PromptTemplateBlockDataRequest.js +10 -1
- package/dist/serialization/types/PromptTemplateBlockProperties.js +12 -3
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +12 -3
- package/dist/serialization/types/PromptTemplateBlockRequest.js +11 -2
- package/dist/serialization/types/ProviderEnum.d.ts +1 -1
- package/dist/serialization/types/ProviderEnum.js +3 -0
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -1
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +11 -3
- package/dist/serialization/types/RegisterPromptResponse.d.ts +1 -0
- package/dist/serialization/types/RegisterPromptResponse.js +15 -5
- package/dist/serialization/types/RegisteredPromptInputVariableRequest.js +10 -1
- package/dist/serialization/types/SandboxMetricInputParams.js +10 -1
- package/dist/serialization/types/SandboxMetricInputParamsRequest.js +10 -1
- package/dist/serialization/types/SandboxScenario.js +11 -2
- package/dist/serialization/types/ScenarioInput.js +11 -2
- package/dist/serialization/types/ScenarioInputRequest.js +11 -2
- package/dist/serialization/types/SearchFiltersRequest.js +10 -1
- package/dist/serialization/types/SearchNodeResult.js +10 -1
- package/dist/serialization/types/SearchNodeResultData.js +10 -1
- package/dist/serialization/types/SearchRequestOptionsRequest.js +12 -3
- package/dist/serialization/types/SearchResponse.js +10 -1
- package/dist/serialization/types/SearchResult.js +10 -1
- package/dist/serialization/types/SlimDocument.js +13 -4
- package/dist/serialization/types/SubmitWorkflowExecutionActualRequest.js +12 -3
- package/dist/serialization/types/TemplatingNodeChatHistoryResult.js +10 -1
- package/dist/serialization/types/TemplatingNodeErrorResult.js +10 -1
- package/dist/serialization/types/TemplatingNodeResult.js +10 -1
- package/dist/serialization/types/TemplatingNodeResultData.js +10 -1
- package/dist/serialization/types/TemplatingNodeResultOutput.js +15 -6
- package/dist/serialization/types/TemplatingNodeSearchResultsResult.js +10 -1
- package/dist/serialization/types/TerminalNodeChatHistoryResult.js +10 -1
- package/dist/serialization/types/TerminalNodeErrorResult.js +10 -1
- package/dist/serialization/types/TerminalNodeResult.js +10 -1
- package/dist/serialization/types/TerminalNodeResultData.js +10 -1
- package/dist/serialization/types/TerminalNodeResultOutput.js +15 -6
- package/dist/serialization/types/TerminalNodeSearchResultsResult.js +10 -1
- package/dist/serialization/types/TestSuiteTestCase.js +10 -1
- package/dist/serialization/types/VellumError.js +10 -1
- package/dist/serialization/types/VellumVariable.js +10 -1
- package/dist/serialization/types/WorkflowEventError.js +10 -1
- package/dist/serialization/types/WorkflowExecutionActualChatHistoryRequest.js +10 -1
- package/dist/serialization/types/WorkflowExecutionNodeResultEvent.js +10 -1
- package/dist/serialization/types/WorkflowExecutionWorkflowResultEvent.js +10 -1
- package/dist/serialization/types/WorkflowNodeResultData.js +15 -6
- package/dist/serialization/types/WorkflowNodeResultEvent.js +13 -4
- package/dist/serialization/types/WorkflowRequestChatHistoryInputRequest.js +10 -1
- package/dist/serialization/types/WorkflowRequestInputRequest.js +12 -3
- package/dist/serialization/types/WorkflowResultEvent.js +12 -3
- package/dist/serialization/types/WorkflowResultEventOutputData.js +15 -6
- package/dist/serialization/types/WorkflowResultEventOutputDataChatHistory.js +11 -2
- package/dist/serialization/types/WorkflowResultEventOutputDataError.js +11 -2
- package/dist/serialization/types/WorkflowResultEventOutputDataJson.js +10 -1
- package/dist/serialization/types/WorkflowResultEventOutputDataNumber.js +10 -1
- package/dist/serialization/types/WorkflowResultEventOutputDataSearchResults.js +11 -2
- package/dist/serialization/types/WorkflowResultEventOutputDataString.js +10 -1
- package/dist/serialization/types/WorkflowStreamEvent.js +11 -2
- package/dist/serialization/types/index.d.ts +0 -2
- package/dist/serialization/types/index.js +0 -2
- package/errors/VellumError.js +14 -3
- package/package.json +4 -3
- package/serialization/client/requests/ExecuteWorkflowStreamRequest.js +11 -2
- package/serialization/client/requests/GenerateBodyRequest.js +11 -2
- package/serialization/client/requests/GenerateStreamBodyRequest.js +11 -2
- package/serialization/client/requests/SearchRequestBodyRequest.js +10 -1
- package/serialization/client/requests/SubmitCompletionActualsRequest.js +10 -1
- package/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.js +10 -1
- package/serialization/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.js +11 -2
- package/serialization/resources/documents/client/requests/PatchedDocumentUpdateRequest.js +10 -1
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -1
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +12 -3
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +11 -2
- package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +10 -1
- package/serialization/types/ApiNodeResult.js +10 -1
- package/serialization/types/ChatMessage.js +10 -1
- package/serialization/types/ChatMessageRequest.js +10 -1
- package/serialization/types/ConditionalNodeResult.js +10 -1
- package/serialization/types/DeploymentRead.js +12 -3
- package/serialization/types/DocumentDocumentToDocumentIndex.js +10 -1
- package/serialization/types/DocumentIndexRead.js +11 -2
- package/serialization/types/DocumentRead.js +12 -3
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +3 -1
- package/serialization/types/EnrichedNormalizedCompletion.js +15 -4
- package/serialization/types/GenerateOptionsRequest.js +10 -1
- package/serialization/types/GenerateRequest.js +10 -1
- package/serialization/types/GenerateResponse.js +10 -1
- package/serialization/types/GenerateResult.js +11 -2
- package/serialization/types/GenerateResultData.js +10 -1
- package/serialization/types/GenerateStreamResponse.js +10 -1
- package/serialization/types/GenerateStreamResult.js +11 -2
- package/serialization/types/GenerateStreamResultData.js +10 -1
- package/serialization/types/MetadataFilterConfigRequest.js +12 -3
- package/serialization/types/MetadataFilterRuleRequest.js +12 -3
- package/serialization/types/ModelVersionBuildConfig.js +10 -1
- package/serialization/types/ModelVersionExecConfig.js +12 -3
- package/serialization/types/ModelVersionRead.js +13 -4
- package/serialization/types/NodeInputCompiledChatHistoryValue.js +10 -1
- package/serialization/types/NodeInputCompiledErrorValue.js +10 -1
- package/serialization/types/NodeInputCompiledSearchResultsValue.js +10 -1
- package/serialization/types/NodeInputVariableCompiledValue.js +15 -6
- package/serialization/types/NormalizedLogProbs.js +10 -1
- package/serialization/types/PaginatedSlimDocumentList.js +10 -1
- package/serialization/types/PromptNodeResult.js +10 -1
- package/serialization/types/PromptTemplateBlock.js +11 -2
- package/serialization/types/PromptTemplateBlockData.js +10 -1
- package/serialization/types/PromptTemplateBlockDataRequest.js +10 -1
- package/serialization/types/PromptTemplateBlockProperties.js +12 -3
- package/serialization/types/PromptTemplateBlockPropertiesRequest.js +12 -3
- package/serialization/types/PromptTemplateBlockRequest.js +11 -2
- package/serialization/types/ProviderEnum.d.ts +1 -1
- package/serialization/types/ProviderEnum.js +3 -0
- package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -1
- package/serialization/types/RegisterPromptPromptInfoRequest.js +11 -3
- package/serialization/types/RegisterPromptResponse.d.ts +1 -0
- package/serialization/types/RegisterPromptResponse.js +15 -5
- package/serialization/types/RegisteredPromptInputVariableRequest.js +10 -1
- package/serialization/types/SandboxMetricInputParams.js +10 -1
- package/serialization/types/SandboxMetricInputParamsRequest.js +10 -1
- package/serialization/types/SandboxScenario.js +11 -2
- package/serialization/types/ScenarioInput.js +11 -2
- package/serialization/types/ScenarioInputRequest.js +11 -2
- package/serialization/types/SearchFiltersRequest.js +10 -1
- package/serialization/types/SearchNodeResult.js +10 -1
- package/serialization/types/SearchNodeResultData.js +10 -1
- package/serialization/types/SearchRequestOptionsRequest.js +12 -3
- package/serialization/types/SearchResponse.js +10 -1
- package/serialization/types/SearchResult.js +10 -1
- package/serialization/types/SlimDocument.js +13 -4
- package/serialization/types/SubmitWorkflowExecutionActualRequest.js +12 -3
- package/serialization/types/TemplatingNodeChatHistoryResult.js +10 -1
- package/serialization/types/TemplatingNodeErrorResult.js +10 -1
- package/serialization/types/TemplatingNodeResult.js +10 -1
- package/serialization/types/TemplatingNodeResultData.js +10 -1
- package/serialization/types/TemplatingNodeResultOutput.js +15 -6
- package/serialization/types/TemplatingNodeSearchResultsResult.js +10 -1
- package/serialization/types/TerminalNodeChatHistoryResult.js +10 -1
- package/serialization/types/TerminalNodeErrorResult.js +10 -1
- package/serialization/types/TerminalNodeResult.js +10 -1
- package/serialization/types/TerminalNodeResultData.js +10 -1
- package/serialization/types/TerminalNodeResultOutput.js +15 -6
- package/serialization/types/TerminalNodeSearchResultsResult.js +10 -1
- package/serialization/types/TestSuiteTestCase.js +10 -1
- package/serialization/types/VellumError.js +10 -1
- package/serialization/types/VellumVariable.js +10 -1
- package/serialization/types/WorkflowEventError.js +10 -1
- package/serialization/types/WorkflowExecutionActualChatHistoryRequest.js +10 -1
- package/serialization/types/WorkflowExecutionNodeResultEvent.js +10 -1
- package/serialization/types/WorkflowExecutionWorkflowResultEvent.js +10 -1
- package/serialization/types/WorkflowNodeResultData.js +15 -6
- package/serialization/types/WorkflowNodeResultEvent.js +13 -4
- package/serialization/types/WorkflowRequestChatHistoryInputRequest.js +10 -1
- package/serialization/types/WorkflowRequestInputRequest.js +12 -3
- package/serialization/types/WorkflowResultEvent.js +12 -3
- package/serialization/types/WorkflowResultEventOutputData.js +15 -6
- package/serialization/types/WorkflowResultEventOutputDataChatHistory.js +11 -2
- package/serialization/types/WorkflowResultEventOutputDataError.js +11 -2
- package/serialization/types/WorkflowResultEventOutputDataJson.js +10 -1
- package/serialization/types/WorkflowResultEventOutputDataNumber.js +10 -1
- package/serialization/types/WorkflowResultEventOutputDataSearchResults.js +11 -2
- package/serialization/types/WorkflowResultEventOutputDataString.js +10 -1
- package/serialization/types/WorkflowStreamEvent.js +11 -2
- package/serialization/types/index.d.ts +0 -2
- package/serialization/types/index.js +0 -2
- package/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +0 -7
- package/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +0 -5
- package/api/resources/modelVersions/client/requests/index.d.ts +0 -1
- package/api/resources/modelVersions/client/requests/index.js +0 -2
- package/api/types/ModelVersionCompilePromptResponse.d.ts +0 -8
- package/api/types/ModelVersionCompilePromptResponse.js +0 -5
- package/api/types/ModelVersionCompiledPrompt.d.ts +0 -9
- package/api/types/ModelVersionCompiledPrompt.js +0 -5
- package/core/callback-queue/CallbackQueue.d.ts +0 -6
- package/core/callback-queue/CallbackQueue.js +0 -20
- package/core/callback-queue/index.d.ts +0 -1
- package/core/callback-queue/index.js +0 -5
- package/dist/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +0 -7
- package/dist/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +0 -5
- package/dist/api/resources/modelVersions/client/requests/index.d.ts +0 -1
- package/dist/api/resources/modelVersions/client/requests/index.js +0 -2
- package/dist/api/types/ModelVersionCompilePromptResponse.d.ts +0 -8
- package/dist/api/types/ModelVersionCompilePromptResponse.js +0 -5
- package/dist/api/types/ModelVersionCompiledPrompt.d.ts +0 -9
- package/dist/api/types/ModelVersionCompiledPrompt.js +0 -5
- package/dist/core/callback-queue/CallbackQueue.d.ts +0 -6
- package/dist/core/callback-queue/CallbackQueue.js +0 -20
- package/dist/core/callback-queue/index.d.ts +0 -1
- package/dist/core/callback-queue/index.js +0 -5
- package/dist/serialization/resources/modelVersions/client/index.d.ts +0 -1
- package/dist/serialization/resources/modelVersions/client/index.js +0 -17
- package/dist/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +0 -12
- package/dist/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +0 -33
- package/dist/serialization/resources/modelVersions/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/modelVersions/client/requests/index.js +0 -5
- package/dist/serialization/resources/modelVersions/index.d.ts +0 -1
- package/dist/serialization/resources/modelVersions/index.js +0 -17
- package/dist/serialization/types/ModelVersionCompilePromptResponse.d.ts +0 -12
- package/dist/serialization/types/ModelVersionCompilePromptResponse.js +0 -33
- package/dist/serialization/types/ModelVersionCompiledPrompt.d.ts +0 -13
- package/dist/serialization/types/ModelVersionCompiledPrompt.js +0 -34
- package/serialization/resources/modelVersions/client/index.d.ts +0 -1
- package/serialization/resources/modelVersions/client/index.js +0 -17
- package/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +0 -12
- package/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +0 -33
- package/serialization/resources/modelVersions/client/requests/index.d.ts +0 -1
- package/serialization/resources/modelVersions/client/requests/index.js +0 -5
- package/serialization/resources/modelVersions/index.d.ts +0 -1
- package/serialization/resources/modelVersions/index.js +0 -17
- package/serialization/types/ModelVersionCompilePromptResponse.d.ts +0 -12
- package/serialization/types/ModelVersionCompilePromptResponse.js +0 -33
- package/serialization/types/ModelVersionCompiledPrompt.d.ts +0 -13
- package/serialization/types/ModelVersionCompiledPrompt.js +0 -34
|
@@ -25,11 +25,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.VellumVariable = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.VellumVariable = core.serialization.object({
|
|
32
41
|
id: core.serialization.string(),
|
|
33
42
|
key: core.serialization.string(),
|
|
34
|
-
type: core.serialization.lazy(
|
|
43
|
+
type: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType; })),
|
|
35
44
|
});
|
|
@@ -25,10 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowEventError = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowEventError = core.serialization.object({
|
|
32
41
|
message: core.serialization.string(),
|
|
33
|
-
code: core.serialization.lazy(
|
|
42
|
+
code: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionEventErrorCode; })),
|
|
34
43
|
});
|
|
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowExecutionActualChatHistoryRequest = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
@@ -34,6 +43,6 @@ exports.WorkflowExecutionActualChatHistoryRequest = core.serialization.object({
|
|
|
34
43
|
quality: core.serialization.number().optional(),
|
|
35
44
|
timestamp: core.serialization.number().optional(),
|
|
36
45
|
desiredOutputValue: core.serialization.property("desired_output_value", core.serialization
|
|
37
|
-
.list(core.serialization.lazyObject(
|
|
46
|
+
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest; })))
|
|
38
47
|
.optional()),
|
|
39
48
|
});
|
|
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowExecutionNodeResultEvent = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
@@ -32,5 +41,5 @@ exports.WorkflowExecutionNodeResultEvent = core.serialization.object({
|
|
|
32
41
|
executionId: core.serialization.property("execution_id", core.serialization.string()),
|
|
33
42
|
runId: core.serialization.property("run_id", core.serialization.string().optional()),
|
|
34
43
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
35
|
-
data: core.serialization.lazyObject(
|
|
44
|
+
data: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEvent; })),
|
|
36
45
|
});
|
|
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowExecutionWorkflowResultEvent = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
@@ -32,5 +41,5 @@ exports.WorkflowExecutionWorkflowResultEvent = core.serialization.object({
|
|
|
32
41
|
executionId: core.serialization.property("execution_id", core.serialization.string()),
|
|
33
42
|
runId: core.serialization.property("run_id", core.serialization.string().optional()),
|
|
34
43
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
35
|
-
data: core.serialization.lazyObject(
|
|
44
|
+
data: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEvent; })),
|
|
36
45
|
});
|
|
@@ -25,17 +25,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowNodeResultData = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowNodeResultData = core.serialization
|
|
32
41
|
.union("type", {
|
|
33
|
-
PROMPT: core.serialization.lazyObject(
|
|
34
|
-
SEARCH: core.serialization.lazyObject(
|
|
35
|
-
TEMPLATING: core.serialization.lazyObject(
|
|
36
|
-
CONDITIONAL: core.serialization.lazyObject(
|
|
37
|
-
API: core.serialization.lazyObject(
|
|
38
|
-
TERMINAL: core.serialization.lazyObject(
|
|
42
|
+
PROMPT: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PromptNodeResult; })),
|
|
43
|
+
SEARCH: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchNodeResult; })),
|
|
44
|
+
TEMPLATING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeResult; })),
|
|
45
|
+
CONDITIONAL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ConditionalNodeResult; })),
|
|
46
|
+
API: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ApiNodeResult; })),
|
|
47
|
+
TERMINAL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeResult; })),
|
|
39
48
|
})
|
|
40
49
|
.transform({
|
|
41
50
|
transform: (value) => value,
|
|
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowNodeResultEvent = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
@@ -32,11 +41,11 @@ exports.WorkflowNodeResultEvent = core.serialization.object({
|
|
|
32
41
|
id: core.serialization.string(),
|
|
33
42
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
34
43
|
nodeResultId: core.serialization.property("node_result_id", core.serialization.string()),
|
|
35
|
-
state: core.serialization.lazy(
|
|
44
|
+
state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
|
|
36
45
|
ts: core.serialization.date().optional(),
|
|
37
|
-
data: core.serialization.lazy(
|
|
38
|
-
error: core.serialization.lazyObject(
|
|
46
|
+
data: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultData; })).optional(),
|
|
47
|
+
error: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowEventError; })).optional(),
|
|
39
48
|
inputValues: core.serialization.property("input_values", core.serialization
|
|
40
|
-
.list(core.serialization.lazy(
|
|
49
|
+
.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeInputVariableCompiledValue; })))
|
|
41
50
|
.optional()),
|
|
42
51
|
});
|
|
@@ -25,10 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowRequestChatHistoryInputRequest = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowRequestChatHistoryInputRequest = core.serialization.object({
|
|
32
41
|
name: core.serialization.string(),
|
|
33
|
-
value: core.serialization.list(core.serialization.lazyObject(
|
|
42
|
+
value: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest; }))),
|
|
34
43
|
});
|
|
@@ -25,14 +25,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowRequestInputRequest = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowRequestInputRequest = core.serialization
|
|
32
41
|
.union("type", {
|
|
33
|
-
STRING: core.serialization.lazyObject(
|
|
34
|
-
JSON: core.serialization.lazyObject(
|
|
35
|
-
CHAT_HISTORY: core.serialization.lazyObject(
|
|
42
|
+
STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowRequestStringInputRequest; })),
|
|
43
|
+
JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowRequestJsonInputRequest; })),
|
|
44
|
+
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowRequestChatHistoryInputRequest; })),
|
|
36
45
|
})
|
|
37
46
|
.transform({
|
|
38
47
|
transform: (value) => value,
|
|
@@ -25,13 +25,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowResultEvent = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowResultEvent = core.serialization.object({
|
|
32
41
|
id: core.serialization.string(),
|
|
33
|
-
state: core.serialization.lazy(
|
|
42
|
+
state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
|
|
34
43
|
ts: core.serialization.date(),
|
|
35
|
-
output: core.serialization.lazy(
|
|
36
|
-
error: core.serialization.lazyObject(
|
|
44
|
+
output: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputData; })).optional(),
|
|
45
|
+
error: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowEventError; })).optional(),
|
|
37
46
|
});
|
|
@@ -25,17 +25,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowResultEventOutputData = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowResultEventOutputData = core.serialization
|
|
32
41
|
.union("type", {
|
|
33
|
-
STRING: core.serialization.lazyObject(
|
|
34
|
-
NUMBER: core.serialization.lazyObject(
|
|
35
|
-
JSON: core.serialization.lazyObject(
|
|
36
|
-
CHAT_HISTORY: core.serialization.lazyObject(
|
|
37
|
-
SEARCH_RESULTS: core.serialization.lazyObject(
|
|
38
|
-
ERROR: core.serialization.lazyObject(
|
|
42
|
+
STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataString; })),
|
|
43
|
+
NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataNumber; })),
|
|
44
|
+
JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataJson; })),
|
|
45
|
+
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataChatHistory; })),
|
|
46
|
+
SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataSearchResults; })),
|
|
47
|
+
ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataError; })),
|
|
39
48
|
})
|
|
40
49
|
.transform({
|
|
41
50
|
transform: (value) => value,
|
|
@@ -25,16 +25,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowResultEventOutputDataChatHistory = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowResultEventOutputDataChatHistory = core.serialization.object({
|
|
32
41
|
id: core.serialization.string().optional(),
|
|
33
42
|
name: core.serialization.string(),
|
|
34
|
-
state: core.serialization.lazy(
|
|
43
|
+
state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
|
|
35
44
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
36
45
|
delta: core.serialization.string().optional(),
|
|
37
46
|
value: core.serialization
|
|
38
|
-
.list(core.serialization.lazyObject(
|
|
47
|
+
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessage; })))
|
|
39
48
|
.optional(),
|
|
40
49
|
});
|
|
@@ -25,14 +25,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowResultEventOutputDataError = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowResultEventOutputDataError = core.serialization.object({
|
|
32
41
|
id: core.serialization.string().optional(),
|
|
33
42
|
name: core.serialization.string(),
|
|
34
|
-
state: core.serialization.lazy(
|
|
43
|
+
state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
|
|
35
44
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
36
45
|
delta: core.serialization.string().optional(),
|
|
37
|
-
value: core.serialization.lazyObject(
|
|
46
|
+
value: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumError; })).optional(),
|
|
38
47
|
});
|
|
@@ -25,13 +25,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowResultEventOutputDataJson = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowResultEventOutputDataJson = core.serialization.object({
|
|
32
41
|
id: core.serialization.string().optional(),
|
|
33
42
|
name: core.serialization.string(),
|
|
34
|
-
state: core.serialization.lazy(
|
|
43
|
+
state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
|
|
35
44
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
36
45
|
delta: core.serialization.string().optional(),
|
|
37
46
|
value: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
@@ -25,13 +25,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowResultEventOutputDataNumber = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowResultEventOutputDataNumber = core.serialization.object({
|
|
32
41
|
id: core.serialization.string().optional(),
|
|
33
42
|
name: core.serialization.string(),
|
|
34
|
-
state: core.serialization.lazy(
|
|
43
|
+
state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
|
|
35
44
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
36
45
|
delta: core.serialization.string().optional(),
|
|
37
46
|
value: core.serialization.number().optional(),
|
|
@@ -25,16 +25,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowResultEventOutputDataSearchResults = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowResultEventOutputDataSearchResults = core.serialization.object({
|
|
32
41
|
id: core.serialization.string().optional(),
|
|
33
42
|
name: core.serialization.string(),
|
|
34
|
-
state: core.serialization.lazy(
|
|
43
|
+
state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
|
|
35
44
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
36
45
|
delta: core.serialization.string().optional(),
|
|
37
46
|
value: core.serialization
|
|
38
|
-
.list(core.serialization.lazyObject(
|
|
47
|
+
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; })))
|
|
39
48
|
.optional(),
|
|
40
49
|
});
|
|
@@ -25,13 +25,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowResultEventOutputDataString = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowResultEventOutputDataString = core.serialization.object({
|
|
32
41
|
id: core.serialization.string().optional(),
|
|
33
42
|
name: core.serialization.string(),
|
|
34
|
-
state: core.serialization.lazy(
|
|
43
|
+
state: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState; })),
|
|
35
44
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
36
45
|
delta: core.serialization.string().optional(),
|
|
37
46
|
value: core.serialization.string().optional(),
|
|
@@ -25,13 +25,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.WorkflowStreamEvent = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
31
40
|
exports.WorkflowStreamEvent = core.serialization
|
|
32
41
|
.union("type", {
|
|
33
|
-
WORKFLOW: core.serialization.lazyObject(
|
|
34
|
-
NODE: core.serialization.lazyObject(
|
|
42
|
+
WORKFLOW: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionWorkflowResultEvent; })),
|
|
43
|
+
NODE: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionNodeResultEvent; })),
|
|
35
44
|
})
|
|
36
45
|
.transform({
|
|
37
46
|
transform: (value) => value,
|
|
@@ -36,8 +36,6 @@ export * from "./MetadataFilterConfigRequest";
|
|
|
36
36
|
export * from "./MetadataFilterRuleCombinator";
|
|
37
37
|
export * from "./MetadataFilterRuleRequest";
|
|
38
38
|
export * from "./ModelVersionBuildConfig";
|
|
39
|
-
export * from "./ModelVersionCompilePromptResponse";
|
|
40
|
-
export * from "./ModelVersionCompiledPrompt";
|
|
41
39
|
export * from "./ModelVersionExecConfig";
|
|
42
40
|
export * from "./ModelVersionExecConfigParameters";
|
|
43
41
|
export * from "./ModelVersionRead";
|
|
@@ -52,8 +52,6 @@ __exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
|
52
52
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
53
53
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
54
54
|
__exportStar(require("./ModelVersionBuildConfig"), exports);
|
|
55
|
-
__exportStar(require("./ModelVersionCompilePromptResponse"), exports);
|
|
56
|
-
__exportStar(require("./ModelVersionCompiledPrompt"), exports);
|
|
57
55
|
__exportStar(require("./ModelVersionExecConfig"), exports);
|
|
58
56
|
__exportStar(require("./ModelVersionExecConfigParameters"), exports);
|
|
59
57
|
__exportStar(require("./ModelVersionRead"), exports);
|
package/errors/VellumError.js
CHANGED
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.VellumError = void 0;
|
|
7
7
|
class VellumError extends Error {
|
|
8
|
-
statusCode;
|
|
9
|
-
body;
|
|
10
8
|
constructor({ message, statusCode, body }) {
|
|
11
|
-
super(message);
|
|
9
|
+
super(buildMessage({ message, statusCode, body }));
|
|
12
10
|
Object.setPrototypeOf(this, VellumError.prototype);
|
|
13
11
|
if (statusCode != null) {
|
|
14
12
|
this.statusCode = statusCode;
|
|
@@ -19,3 +17,16 @@ class VellumError extends Error {
|
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
19
|
exports.VellumError = VellumError;
|
|
20
|
+
function buildMessage({ message, statusCode, body, }) {
|
|
21
|
+
let lines = [];
|
|
22
|
+
if (message != null) {
|
|
23
|
+
lines.push(message);
|
|
24
|
+
}
|
|
25
|
+
if (statusCode != null) {
|
|
26
|
+
lines.push(`Status code: ${statusCode.toString()}`);
|
|
27
|
+
}
|
|
28
|
+
if (body != null) {
|
|
29
|
+
lines.push(`Body: ${JSON.stringify(body, undefined, 2)}`);
|
|
30
|
+
}
|
|
31
|
+
return lines.join("\n");
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vellum-ai",
|
|
3
|
-
"version": "v0.
|
|
3
|
+
"version": "v0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/vellum-ai/vellum-client-node",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"url-join": "4.0.1",
|
|
15
15
|
"@types/url-join": "4.0.1",
|
|
16
|
-
"@ungap/url-search-params": "0.2.2",
|
|
17
16
|
"form-data": "4.0.0",
|
|
18
|
-
"axios": "0.27.2"
|
|
17
|
+
"axios": "0.27.2",
|
|
18
|
+
"qs": "6.11.2",
|
|
19
|
+
"@types/qs": "6.9.8"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"@types/node": "17.0.33",
|
|
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.ExecuteWorkflowStreamRequest = void 0;
|
|
30
39
|
const core = __importStar(require("../../../core"));
|
|
@@ -32,9 +41,9 @@ exports.ExecuteWorkflowStreamRequest = core.serialization.object({
|
|
|
32
41
|
workflowDeploymentId: core.serialization.property("workflow_deployment_id", core.serialization.string().optional()),
|
|
33
42
|
workflowDeploymentName: core.serialization.property("workflow_deployment_name", core.serialization.string().optional()),
|
|
34
43
|
releaseTag: core.serialization.property("release_tag", core.serialization.string().optional()),
|
|
35
|
-
inputs: core.serialization.list(core.serialization.lazy(
|
|
44
|
+
inputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).WorkflowRequestInputRequest; }))),
|
|
36
45
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
37
46
|
eventTypes: core.serialization.property("event_types", core.serialization
|
|
38
|
-
.list(core.serialization.lazy(
|
|
47
|
+
.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).WorkflowExecutionEventType; })))
|
|
39
48
|
.optional()),
|
|
40
49
|
});
|