vellum-ai 0.8.5 → 0.8.6
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 +6 -6
- package/Client.js +23 -23
- package/api/client/requests/ExecutePromptRequest.d.ts +1 -1
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/adHoc/client/Client.d.ts +31 -0
- package/api/resources/adHoc/client/Client.js +126 -0
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +65 -0
- package/api/resources/adHoc/client/requests/index.d.ts +1 -0
- package/api/resources/deployments/client/Client.d.ts +3 -3
- package/api/resources/deployments/client/Client.js +6 -6
- package/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/api/resources/documentIndexes/client/Client.js +9 -9
- package/api/resources/documents/client/Client.d.ts +3 -3
- package/api/resources/documents/client/Client.js +6 -6
- package/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/sandboxes/client/Client.d.ts +5 -5
- package/api/resources/sandboxes/client/Client.js +6 -8
- package/{dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts → api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts} +1 -1
- package/api/resources/sandboxes/client/requests/index.d.ts +1 -1
- package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/api/resources/testSuites/client/Client.d.ts +3 -3
- package/api/resources/testSuites/client/Client.js +5 -5
- package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/api/resources/workflowDeployments/client/Client.js +5 -5
- package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/types/AdHocExecutePromptEvent.d.ts +5 -0
- package/api/types/AdHocExpandMetaRequest.d.ts +12 -0
- package/api/types/AdHocFulfilledPromptExecutionMeta.d.ts +12 -0
- package/api/types/AdHocInitiatedPromptExecutionMeta.d.ts +10 -0
- package/api/types/AdHocRejectedPromptExecutionMeta.d.ts +11 -0
- package/api/types/AdHocStreamingPromptExecutionMeta.d.ts +9 -0
- package/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +13 -0
- package/api/types/ChatMessagePromptBlockRequest.d.ts +14 -0
- package/api/types/{MlModelDeveloperEnumValueLabel.d.ts → EphemeralPromptCacheConfigRequest.d.ts} +2 -3
- package/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +7 -0
- package/api/types/FulfilledAdHocExecutePromptEvent.d.ts +13 -0
- package/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +15 -0
- package/api/types/FunctionDefinitionPromptBlockRequest.d.ts +14 -0
- package/api/types/InitiatedAdHocExecutePromptEvent.d.ts +12 -0
- package/api/types/JinjaPromptBlockPropertiesRequest.d.ts +8 -0
- package/api/types/JinjaPromptBlockRequest.d.ts +14 -0
- package/api/types/MlModelUsage.d.ts +2 -0
- package/api/types/PlainTextPromptBlockRequest.d.ts +14 -0
- package/api/types/PromptBlockRequest.d.ts +5 -0
- package/api/types/PromptBlockState.d.ts +12 -0
- package/api/types/{VisibilityEnum.js → PromptBlockState.js} +3 -5
- package/api/types/{PromptDeploymentExpandMetaRequestRequest.d.ts → PromptDeploymentExpandMetaRequest.d.ts} +1 -1
- package/api/types/PromptParametersRequest.d.ts +14 -0
- package/api/types/PromptRequestChatHistoryInputRequest.d.ts +10 -0
- package/api/types/PromptRequestInputRequest.d.ts +5 -0
- package/api/types/PromptRequestJsonInputRequest.d.ts +9 -0
- package/api/types/PromptRequestStringInputRequest.d.ts +9 -0
- package/api/types/RejectedAdHocExecutePromptEvent.d.ts +13 -0
- package/api/types/RichTextChildBlockRequest.d.ts +5 -0
- package/api/types/RichTextPromptBlockRequest.d.ts +14 -0
- package/api/types/StreamingAdHocExecutePromptEvent.d.ts +16 -0
- package/api/types/VariablePromptBlockRequest.d.ts +14 -0
- package/api/types/{MlModelFamilyEnumValueLabel.d.ts → VellumVariableRequest.d.ts} +4 -3
- package/api/types/index.d.ts +31 -51
- package/api/types/index.js +31 -51
- package/dist/Client.d.ts +6 -6
- package/dist/Client.js +23 -23
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/adHoc/client/Client.d.ts +31 -0
- package/dist/api/resources/adHoc/client/Client.js +126 -0
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +65 -0
- package/dist/api/resources/adHoc/client/requests/index.d.ts +1 -0
- package/dist/api/resources/deployments/client/Client.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.js +6 -6
- package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +9 -9
- package/dist/api/resources/documents/client/Client.d.ts +3 -3
- package/dist/api/resources/documents/client/Client.js +6 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/sandboxes/client/Client.d.ts +5 -5
- package/dist/api/resources/sandboxes/client/Client.js +6 -8
- package/{api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts → dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts} +1 -1
- package/dist/api/resources/sandboxes/client/requests/index.d.ts +1 -1
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuites/client/Client.js +5 -5
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/types/AdHocExecutePromptEvent.d.ts +5 -0
- package/dist/api/types/AdHocExpandMetaRequest.d.ts +12 -0
- package/dist/api/types/AdHocFulfilledPromptExecutionMeta.d.ts +12 -0
- package/dist/api/types/AdHocInitiatedPromptExecutionMeta.d.ts +10 -0
- package/dist/api/types/AdHocRejectedPromptExecutionMeta.d.ts +11 -0
- package/dist/api/types/AdHocStreamingPromptExecutionMeta.d.ts +9 -0
- package/dist/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +13 -0
- package/dist/api/types/ChatMessagePromptBlockRequest.d.ts +14 -0
- package/{api/types/MlModelDisplayTagEnumValueLabel.d.ts → dist/api/types/EphemeralPromptCacheConfigRequest.d.ts} +2 -3
- package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +7 -0
- package/dist/api/types/FulfilledAdHocExecutePromptEvent.d.ts +13 -0
- package/dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +15 -0
- package/dist/api/types/FunctionDefinitionPromptBlockRequest.d.ts +14 -0
- package/dist/api/types/InitiatedAdHocExecutePromptEvent.d.ts +12 -0
- package/dist/api/types/JinjaPromptBlockPropertiesRequest.d.ts +8 -0
- package/dist/api/types/JinjaPromptBlockRequest.d.ts +14 -0
- package/dist/api/types/MlModelUsage.d.ts +2 -0
- package/dist/api/types/PlainTextPromptBlockRequest.d.ts +14 -0
- package/dist/api/types/PromptBlockRequest.d.ts +5 -0
- package/dist/api/types/PromptBlockState.d.ts +12 -0
- package/dist/api/types/{VisibilityEnum.js → PromptBlockState.js} +3 -5
- package/dist/api/types/{PromptDeploymentExpandMetaRequestRequest.d.ts → PromptDeploymentExpandMetaRequest.d.ts} +1 -1
- package/dist/api/types/PromptParametersRequest.d.ts +14 -0
- package/dist/api/types/PromptRequestChatHistoryInputRequest.d.ts +10 -0
- package/dist/api/types/PromptRequestInputRequest.d.ts +5 -0
- package/dist/api/types/PromptRequestJsonInputRequest.d.ts +9 -0
- package/dist/api/types/PromptRequestStringInputRequest.d.ts +9 -0
- package/dist/api/types/RejectedAdHocExecutePromptEvent.d.ts +13 -0
- package/dist/api/types/RichTextChildBlockRequest.d.ts +5 -0
- package/dist/api/types/RichTextPromptBlockRequest.d.ts +14 -0
- package/dist/api/types/StreamingAdHocExecutePromptEvent.d.ts +16 -0
- package/dist/api/types/VariablePromptBlockRequest.d.ts +14 -0
- package/dist/api/types/{MlModelDeveloperEnumValueLabel.d.ts → VellumVariableRequest.d.ts} +4 -3
- package/dist/api/types/index.d.ts +31 -51
- package/dist/api/types/index.js +31 -51
- package/dist/serialization/client/requests/ExecutePromptRequest.d.ts +2 -2
- package/dist/serialization/client/requests/ExecutePromptRequest.js +2 -2
- package/dist/serialization/client/requests/ExecutePromptStreamRequest.d.ts +2 -2
- package/dist/serialization/client/requests/ExecutePromptStreamRequest.js +2 -2
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +21 -0
- package/{serialization/resources/mlModels/client/requests/MlModelUpdateRequest.js → dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js} +13 -10
- package/dist/serialization/resources/adHoc/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/adHoc/client/requests/index.js +5 -0
- package/dist/serialization/resources/index.d.ts +2 -2
- package/dist/serialization/resources/index.js +3 -3
- package/{serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts → dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts} +2 -2
- package/{serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js → dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.js} +2 -2
- package/dist/serialization/resources/sandboxes/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/sandboxes/client/requests/index.js +3 -3
- package/dist/serialization/types/AdHocExecutePromptEvent.d.ts +14 -0
- package/dist/serialization/types/AdHocExecutePromptEvent.js +40 -0
- package/dist/serialization/types/AdHocExpandMetaRequest.d.ts +15 -0
- package/dist/serialization/types/AdHocExpandMetaRequest.js +36 -0
- package/dist/serialization/types/AdHocFulfilledPromptExecutionMeta.d.ts +16 -0
- package/dist/serialization/types/AdHocFulfilledPromptExecutionMeta.js +37 -0
- package/dist/serialization/types/AdHocInitiatedPromptExecutionMeta.d.ts +13 -0
- package/{serialization/types/HuggingFaceTokenizerConfigRequest.js → dist/serialization/types/AdHocInitiatedPromptExecutionMeta.js} +4 -5
- package/dist/serialization/types/AdHocRejectedPromptExecutionMeta.d.ts +14 -0
- package/dist/serialization/types/AdHocRejectedPromptExecutionMeta.js +35 -0
- package/dist/serialization/types/AdHocStreamingPromptExecutionMeta.d.ts +12 -0
- package/dist/serialization/types/{MlModelDisplayTag.js → AdHocStreamingPromptExecutionMeta.js} +4 -2
- package/dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +16 -0
- package/{serialization/types/OpenApiOneOfProperty.js → dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.js} +7 -6
- package/dist/serialization/types/ChatMessagePromptBlockRequest.d.ts +18 -0
- package/dist/serialization/types/{OpenApiOneOfProperty.js → ChatMessagePromptBlockRequest.js} +9 -6
- package/dist/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +13 -0
- package/dist/serialization/types/EphemeralPromptCacheConfigRequest.js +34 -0
- package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +10 -0
- package/{serialization/types/MlModelRequestAuthorizationConfigTypeEnum.js → dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.js} +2 -2
- package/dist/serialization/types/FulfilledAdHocExecutePromptEvent.d.ts +17 -0
- package/dist/serialization/types/FulfilledAdHocExecutePromptEvent.js +38 -0
- package/dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +16 -0
- package/{serialization/types/MlModelRequestConfig.js → dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js} +7 -6
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +19 -0
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.js +40 -0
- package/dist/serialization/types/InitiatedAdHocExecutePromptEvent.d.ts +15 -0
- package/dist/serialization/types/InitiatedAdHocExecutePromptEvent.js +36 -0
- package/dist/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +14 -0
- package/dist/serialization/types/{MlModelRequestAuthorizationConfig.js → JinjaPromptBlockPropertiesRequest.js} +5 -4
- package/dist/serialization/types/JinjaPromptBlockRequest.d.ts +19 -0
- package/dist/serialization/types/JinjaPromptBlockRequest.js +40 -0
- package/dist/serialization/types/MlModelUsage.d.ts +2 -0
- package/dist/serialization/types/MlModelUsage.js +2 -0
- package/dist/serialization/types/PlainTextPromptBlockRequest.d.ts +18 -0
- package/dist/serialization/types/{MlModelDisplayConfigRequest.js → PlainTextPromptBlockRequest.js} +9 -7
- package/dist/serialization/types/PromptBlockRequest.d.ts +14 -0
- package/dist/serialization/types/PromptBlockRequest.js +42 -0
- package/dist/serialization/types/PromptBlockState.d.ts +10 -0
- package/dist/serialization/types/{VisibilityEnum.js → PromptBlockState.js} +2 -2
- package/dist/serialization/types/{PromptDeploymentExpandMetaRequestRequest.d.ts → PromptDeploymentExpandMetaRequest.d.ts} +2 -2
- package/{serialization/types/PromptDeploymentExpandMetaRequestRequest.js → dist/serialization/types/PromptDeploymentExpandMetaRequest.js} +2 -2
- package/dist/serialization/types/PromptParametersRequest.d.ts +20 -0
- package/dist/serialization/types/{MlModelParameterConfig.js → PromptParametersRequest.js} +11 -16
- package/dist/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +15 -0
- package/dist/serialization/types/PromptRequestChatHistoryInputRequest.js +36 -0
- package/dist/serialization/types/PromptRequestInputRequest.d.ts +13 -0
- package/dist/serialization/types/{MlModelFamily.js → PromptRequestInputRequest.js} +8 -22
- package/dist/serialization/types/PromptRequestJsonInputRequest.d.ts +14 -0
- package/dist/serialization/types/{MlModelDeveloperEnumValueLabel.js → PromptRequestJsonInputRequest.js} +5 -5
- package/dist/serialization/types/PromptRequestStringInputRequest.d.ts +14 -0
- package/dist/serialization/types/{TikTokenTokenizerConfigRequest.js → PromptRequestStringInputRequest.js} +5 -4
- package/dist/serialization/types/RejectedAdHocExecutePromptEvent.d.ts +17 -0
- package/{serialization/types/MlModelDisplayTagEnumValueLabel.js → dist/serialization/types/RejectedAdHocExecutePromptEvent.js} +8 -5
- package/dist/serialization/types/RichTextChildBlockRequest.d.ts +12 -0
- package/dist/serialization/types/{HostedByEnum.js → RichTextChildBlockRequest.js} +4 -20
- package/dist/serialization/types/RichTextPromptBlockRequest.d.ts +19 -0
- package/dist/serialization/types/RichTextPromptBlockRequest.js +40 -0
- package/dist/serialization/types/StreamingAdHocExecutePromptEvent.d.ts +19 -0
- package/dist/serialization/types/StreamingAdHocExecutePromptEvent.js +40 -0
- package/dist/serialization/types/VariablePromptBlockRequest.d.ts +18 -0
- package/{serialization/types/HuggingFaceTokenizerConfig.js → dist/serialization/types/VariablePromptBlockRequest.js} +9 -5
- package/dist/serialization/types/VellumVariableRequest.d.ts +15 -0
- package/dist/serialization/types/{MlModelDisplayTagEnumValueLabel.js → VellumVariableRequest.js} +6 -5
- package/dist/serialization/types/index.d.ts +31 -51
- package/dist/serialization/types/index.js +31 -51
- package/package.json +1 -1
- package/reference.md +121 -347
- package/serialization/client/requests/ExecutePromptRequest.d.ts +2 -2
- package/serialization/client/requests/ExecutePromptRequest.js +2 -2
- package/serialization/client/requests/ExecutePromptStreamRequest.d.ts +2 -2
- package/serialization/client/requests/ExecutePromptStreamRequest.js +2 -2
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +21 -0
- package/{dist/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.js → serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js} +13 -10
- package/serialization/resources/adHoc/client/requests/index.d.ts +1 -0
- package/serialization/resources/adHoc/client/requests/index.js +5 -0
- package/serialization/resources/index.d.ts +2 -2
- package/serialization/resources/index.js +3 -3
- package/{dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts → serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts} +2 -2
- package/{dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js → serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.js} +2 -2
- package/serialization/resources/sandboxes/client/requests/index.d.ts +1 -1
- package/serialization/resources/sandboxes/client/requests/index.js +3 -3
- package/serialization/types/AdHocExecutePromptEvent.d.ts +14 -0
- package/serialization/types/AdHocExecutePromptEvent.js +40 -0
- package/serialization/types/AdHocExpandMetaRequest.d.ts +15 -0
- package/serialization/types/AdHocExpandMetaRequest.js +36 -0
- package/serialization/types/AdHocFulfilledPromptExecutionMeta.d.ts +16 -0
- package/serialization/types/AdHocFulfilledPromptExecutionMeta.js +37 -0
- package/serialization/types/AdHocInitiatedPromptExecutionMeta.d.ts +13 -0
- package/{dist/serialization/types/HuggingFaceTokenizerConfigRequest.js → serialization/types/AdHocInitiatedPromptExecutionMeta.js} +4 -5
- package/serialization/types/AdHocRejectedPromptExecutionMeta.d.ts +14 -0
- package/serialization/types/AdHocRejectedPromptExecutionMeta.js +35 -0
- package/serialization/types/AdHocStreamingPromptExecutionMeta.d.ts +12 -0
- package/serialization/types/{MlModelDisplayTag.js → AdHocStreamingPromptExecutionMeta.js} +4 -2
- package/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +16 -0
- package/serialization/types/{OpenApiOneOfPropertyRequest.js → ChatMessagePromptBlockPropertiesRequest.js} +7 -6
- package/serialization/types/ChatMessagePromptBlockRequest.d.ts +18 -0
- package/{dist/serialization/types/OpenApiOneOfPropertyRequest.js → serialization/types/ChatMessagePromptBlockRequest.js} +9 -6
- package/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +13 -0
- package/serialization/types/EphemeralPromptCacheConfigRequest.js +34 -0
- package/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +10 -0
- package/{dist/serialization/types/MlModelRequestAuthorizationConfigTypeEnum.js → serialization/types/EphemeralPromptCacheConfigTypeEnum.js} +2 -2
- package/serialization/types/FulfilledAdHocExecutePromptEvent.d.ts +17 -0
- package/serialization/types/FulfilledAdHocExecutePromptEvent.js +38 -0
- package/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +16 -0
- package/{dist/serialization/types/MlModelRequestConfig.js → serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js} +7 -6
- package/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +19 -0
- package/serialization/types/FunctionDefinitionPromptBlockRequest.js +40 -0
- package/serialization/types/InitiatedAdHocExecutePromptEvent.d.ts +15 -0
- package/serialization/types/InitiatedAdHocExecutePromptEvent.js +36 -0
- package/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +14 -0
- package/serialization/types/{MlModelRequestAuthorizationConfig.js → JinjaPromptBlockPropertiesRequest.js} +5 -4
- package/serialization/types/JinjaPromptBlockRequest.d.ts +19 -0
- package/serialization/types/JinjaPromptBlockRequest.js +40 -0
- package/serialization/types/MlModelUsage.d.ts +2 -0
- package/serialization/types/MlModelUsage.js +2 -0
- package/serialization/types/PlainTextPromptBlockRequest.d.ts +18 -0
- package/{dist/serialization/types/MlModelFamilyEnumValueLabel.js → serialization/types/PlainTextPromptBlockRequest.js} +9 -5
- package/serialization/types/PromptBlockRequest.d.ts +14 -0
- package/serialization/types/PromptBlockRequest.js +42 -0
- package/serialization/types/PromptBlockState.d.ts +10 -0
- package/serialization/types/{VisibilityEnum.js → PromptBlockState.js} +2 -2
- package/serialization/types/{PromptDeploymentExpandMetaRequestRequest.d.ts → PromptDeploymentExpandMetaRequest.d.ts} +2 -2
- package/{dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.js → serialization/types/PromptDeploymentExpandMetaRequest.js} +2 -2
- package/serialization/types/PromptParametersRequest.d.ts +20 -0
- package/serialization/types/{MlModelParameterConfig.js → PromptParametersRequest.js} +11 -16
- package/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +15 -0
- package/serialization/types/PromptRequestChatHistoryInputRequest.js +36 -0
- package/serialization/types/PromptRequestInputRequest.d.ts +13 -0
- package/{dist/serialization/types/MlModelFeature.js → serialization/types/PromptRequestInputRequest.js} +8 -11
- package/serialization/types/PromptRequestJsonInputRequest.d.ts +14 -0
- package/serialization/types/PromptRequestJsonInputRequest.js +35 -0
- package/serialization/types/PromptRequestStringInputRequest.d.ts +14 -0
- package/serialization/types/{MlModelFamilyEnumValueLabel.js → PromptRequestStringInputRequest.js} +5 -5
- package/serialization/types/RejectedAdHocExecutePromptEvent.d.ts +17 -0
- package/{dist/serialization/types/MlModelDisplayConfigLabelled.js → serialization/types/RejectedAdHocExecutePromptEvent.js} +8 -7
- package/serialization/types/RichTextChildBlockRequest.d.ts +12 -0
- package/{dist/serialization/types/MlModelDeveloper.js → serialization/types/RichTextChildBlockRequest.js} +4 -21
- package/serialization/types/RichTextPromptBlockRequest.d.ts +19 -0
- package/serialization/types/RichTextPromptBlockRequest.js +40 -0
- package/serialization/types/StreamingAdHocExecutePromptEvent.d.ts +19 -0
- package/serialization/types/StreamingAdHocExecutePromptEvent.js +40 -0
- package/serialization/types/VariablePromptBlockRequest.d.ts +18 -0
- package/serialization/types/VariablePromptBlockRequest.js +39 -0
- package/serialization/types/VellumVariableRequest.d.ts +15 -0
- package/{dist/serialization/types/HuggingFaceTokenizerConfig.js → serialization/types/VellumVariableRequest.js} +6 -5
- package/serialization/types/index.d.ts +31 -51
- package/serialization/types/index.js +31 -51
- package/api/resources/mlModels/client/Client.d.ts +0 -92
- package/api/resources/mlModels/client/Client.js +0 -348
- package/api/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +0 -110
- package/api/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +0 -25
- package/api/resources/mlModels/client/requests/MlModelsListRequest.d.ts +0 -21
- package/api/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +0 -25
- package/api/resources/mlModels/client/requests/index.d.ts +0 -4
- package/api/types/HostedByEnum.d.ts +0 -42
- package/api/types/HostedByEnum.js +0 -25
- package/api/types/HuggingFaceTokenizerConfig.d.ts +0 -11
- package/api/types/HuggingFaceTokenizerConfigRequest.d.ts +0 -11
- package/api/types/MlModelDeveloper.d.ts +0 -44
- package/api/types/MlModelDeveloper.js +0 -26
- package/api/types/MlModelDisplayConfigLabelled.d.ts +0 -11
- package/api/types/MlModelDisplayConfigRequest.d.ts +0 -11
- package/api/types/MlModelDisplayTag.d.ts +0 -24
- package/api/types/MlModelDisplayTag.js +0 -16
- package/api/types/MlModelExecConfig.d.ts +0 -15
- package/api/types/MlModelExecConfigRequest.d.ts +0 -15
- package/api/types/MlModelFamily.d.ts +0 -48
- package/api/types/MlModelFamily.js +0 -28
- package/api/types/MlModelFeature.d.ts +0 -26
- package/api/types/MlModelFeature.js +0 -17
- package/api/types/MlModelParameterConfig.d.ts +0 -15
- package/api/types/MlModelParameterConfigRequest.d.ts +0 -15
- package/api/types/MlModelRead.d.ts +0 -53
- package/api/types/MlModelRequestAuthorizationConfig.d.ts +0 -7
- package/api/types/MlModelRequestAuthorizationConfigRequest.d.ts +0 -7
- package/api/types/MlModelRequestAuthorizationConfigTypeEnum.d.ts +0 -12
- package/api/types/MlModelRequestAuthorizationConfigTypeEnum.js +0 -10
- package/api/types/MlModelRequestConfig.d.ts +0 -9
- package/api/types/MlModelRequestConfigRequest.d.ts +0 -9
- package/api/types/MlModelResponseConfig.d.ts +0 -8
- package/api/types/MlModelResponseConfigRequest.d.ts +0 -8
- package/api/types/MlModelTokenizerConfig.d.ts +0 -5
- package/api/types/MlModelTokenizerConfigRequest.d.ts +0 -5
- package/api/types/OpenApiArrayProperty.d.ts +0 -21
- package/api/types/OpenApiArrayPropertyRequest.d.ts +0 -21
- package/api/types/OpenApiBooleanProperty.d.ts +0 -12
- package/api/types/OpenApiBooleanPropertyRequest.d.ts +0 -12
- package/api/types/OpenApiConstProperty.d.ts +0 -12
- package/api/types/OpenApiConstPropertyRequest.d.ts +0 -12
- package/api/types/OpenApiIntegerProperty.d.ts +0 -16
- package/api/types/OpenApiIntegerPropertyRequest.d.ts +0 -16
- package/api/types/OpenApiNumberProperty.d.ts +0 -17
- package/api/types/OpenApiNumberPropertyRequest.d.ts +0 -17
- package/api/types/OpenApiObjectProperty.d.ts +0 -20
- package/api/types/OpenApiObjectPropertyRequest.d.ts +0 -20
- package/api/types/OpenApiOneOfProperty.d.ts +0 -13
- package/api/types/OpenApiOneOfPropertyRequest.d.ts +0 -13
- package/api/types/OpenApiProperty.d.ts +0 -5
- package/api/types/OpenApiPropertyRequest.d.ts +0 -5
- package/api/types/OpenApiRefProperty.d.ts +0 -12
- package/api/types/OpenApiRefPropertyRequest.d.ts +0 -12
- package/api/types/OpenApiStringProperty.d.ts +0 -16
- package/api/types/OpenApiStringPropertyRequest.d.ts +0 -16
- package/api/types/PaginatedMlModelReadList.d.ts +0 -10
- package/api/types/TikTokenTokenizerConfig.d.ts +0 -10
- package/api/types/TikTokenTokenizerConfigRequest.d.ts +0 -10
- package/api/types/VisibilityEnum.d.ts +0 -16
- package/dist/api/resources/mlModels/client/Client.d.ts +0 -92
- package/dist/api/resources/mlModels/client/Client.js +0 -348
- package/dist/api/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +0 -110
- package/dist/api/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +0 -25
- package/dist/api/resources/mlModels/client/requests/MlModelsListRequest.d.ts +0 -21
- package/dist/api/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +0 -25
- package/dist/api/resources/mlModels/client/requests/index.d.ts +0 -4
- package/dist/api/types/HostedByEnum.d.ts +0 -42
- package/dist/api/types/HostedByEnum.js +0 -25
- package/dist/api/types/HuggingFaceTokenizerConfig.d.ts +0 -11
- package/dist/api/types/HuggingFaceTokenizerConfigRequest.d.ts +0 -11
- package/dist/api/types/MlModelDeveloper.d.ts +0 -44
- package/dist/api/types/MlModelDeveloper.js +0 -26
- package/dist/api/types/MlModelDisplayConfigLabelled.d.ts +0 -11
- package/dist/api/types/MlModelDisplayConfigRequest.d.ts +0 -11
- package/dist/api/types/MlModelDisplayTag.d.ts +0 -24
- package/dist/api/types/MlModelDisplayTag.js +0 -16
- package/dist/api/types/MlModelDisplayTagEnumValueLabel.d.ts +0 -8
- package/dist/api/types/MlModelExecConfig.d.ts +0 -15
- package/dist/api/types/MlModelExecConfigRequest.d.ts +0 -15
- package/dist/api/types/MlModelFamily.d.ts +0 -48
- package/dist/api/types/MlModelFamily.js +0 -28
- package/dist/api/types/MlModelFamilyEnumValueLabel.d.ts +0 -8
- package/dist/api/types/MlModelFeature.d.ts +0 -26
- package/dist/api/types/MlModelFeature.js +0 -17
- package/dist/api/types/MlModelParameterConfig.d.ts +0 -15
- package/dist/api/types/MlModelParameterConfigRequest.d.ts +0 -15
- package/dist/api/types/MlModelParameterConfigRequest.js +0 -5
- package/dist/api/types/MlModelRead.d.ts +0 -53
- package/dist/api/types/MlModelRead.js +0 -5
- package/dist/api/types/MlModelRequestAuthorizationConfig.d.ts +0 -7
- package/dist/api/types/MlModelRequestAuthorizationConfig.js +0 -5
- package/dist/api/types/MlModelRequestAuthorizationConfigRequest.d.ts +0 -7
- package/dist/api/types/MlModelRequestAuthorizationConfigRequest.js +0 -5
- package/dist/api/types/MlModelRequestAuthorizationConfigTypeEnum.d.ts +0 -12
- package/dist/api/types/MlModelRequestAuthorizationConfigTypeEnum.js +0 -10
- package/dist/api/types/MlModelRequestConfig.d.ts +0 -9
- package/dist/api/types/MlModelRequestConfig.js +0 -5
- package/dist/api/types/MlModelRequestConfigRequest.d.ts +0 -9
- package/dist/api/types/MlModelRequestConfigRequest.js +0 -5
- package/dist/api/types/MlModelResponseConfig.d.ts +0 -8
- package/dist/api/types/MlModelResponseConfig.js +0 -5
- package/dist/api/types/MlModelResponseConfigRequest.d.ts +0 -8
- package/dist/api/types/MlModelResponseConfigRequest.js +0 -5
- package/dist/api/types/MlModelTokenizerConfig.d.ts +0 -5
- package/dist/api/types/MlModelTokenizerConfig.js +0 -5
- package/dist/api/types/MlModelTokenizerConfigRequest.d.ts +0 -5
- package/dist/api/types/MlModelTokenizerConfigRequest.js +0 -5
- package/dist/api/types/OpenApiArrayProperty.d.ts +0 -21
- package/dist/api/types/OpenApiArrayProperty.js +0 -5
- package/dist/api/types/OpenApiArrayPropertyRequest.d.ts +0 -21
- package/dist/api/types/OpenApiArrayPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiBooleanProperty.d.ts +0 -12
- package/dist/api/types/OpenApiBooleanProperty.js +0 -5
- package/dist/api/types/OpenApiBooleanPropertyRequest.d.ts +0 -12
- package/dist/api/types/OpenApiBooleanPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiConstProperty.d.ts +0 -12
- package/dist/api/types/OpenApiConstProperty.js +0 -5
- package/dist/api/types/OpenApiConstPropertyRequest.d.ts +0 -12
- package/dist/api/types/OpenApiConstPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiIntegerProperty.d.ts +0 -16
- package/dist/api/types/OpenApiIntegerProperty.js +0 -5
- package/dist/api/types/OpenApiIntegerPropertyRequest.d.ts +0 -16
- package/dist/api/types/OpenApiIntegerPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiNumberProperty.d.ts +0 -17
- package/dist/api/types/OpenApiNumberProperty.js +0 -5
- package/dist/api/types/OpenApiNumberPropertyRequest.d.ts +0 -17
- package/dist/api/types/OpenApiNumberPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiObjectProperty.d.ts +0 -20
- package/dist/api/types/OpenApiObjectProperty.js +0 -5
- package/dist/api/types/OpenApiObjectPropertyRequest.d.ts +0 -20
- package/dist/api/types/OpenApiObjectPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiOneOfProperty.d.ts +0 -13
- package/dist/api/types/OpenApiOneOfProperty.js +0 -5
- package/dist/api/types/OpenApiOneOfPropertyRequest.d.ts +0 -13
- package/dist/api/types/OpenApiOneOfPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiProperty.d.ts +0 -5
- package/dist/api/types/OpenApiProperty.js +0 -5
- package/dist/api/types/OpenApiPropertyRequest.d.ts +0 -5
- package/dist/api/types/OpenApiPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiRefProperty.d.ts +0 -12
- package/dist/api/types/OpenApiRefProperty.js +0 -5
- package/dist/api/types/OpenApiRefPropertyRequest.d.ts +0 -12
- package/dist/api/types/OpenApiRefPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiStringProperty.d.ts +0 -16
- package/dist/api/types/OpenApiStringProperty.js +0 -5
- package/dist/api/types/OpenApiStringPropertyRequest.d.ts +0 -16
- package/dist/api/types/OpenApiStringPropertyRequest.js +0 -5
- package/dist/api/types/PaginatedMlModelReadList.d.ts +0 -10
- package/dist/api/types/PaginatedMlModelReadList.js +0 -5
- package/dist/api/types/PromptDeploymentExpandMetaRequestRequest.js +0 -5
- package/dist/api/types/TikTokenTokenizerConfig.d.ts +0 -10
- package/dist/api/types/TikTokenTokenizerConfig.js +0 -5
- package/dist/api/types/TikTokenTokenizerConfigRequest.d.ts +0 -10
- package/dist/api/types/TikTokenTokenizerConfigRequest.js +0 -5
- package/dist/api/types/VisibilityEnum.d.ts +0 -16
- package/dist/serialization/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +0 -26
- package/dist/serialization/resources/mlModels/client/requests/MlModelCreateRequest.js +0 -47
- package/dist/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +0 -19
- package/dist/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +0 -19
- package/dist/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js +0 -40
- package/dist/serialization/resources/mlModels/client/requests/index.d.ts +0 -3
- package/dist/serialization/resources/mlModels/client/requests/index.js +0 -9
- package/dist/serialization/types/HostedByEnum.d.ts +0 -10
- package/dist/serialization/types/HuggingFaceTokenizerConfig.d.ts +0 -14
- package/dist/serialization/types/HuggingFaceTokenizerConfigRequest.d.ts +0 -14
- package/dist/serialization/types/MlModelDeveloper.d.ts +0 -10
- package/dist/serialization/types/MlModelDeveloperEnumValueLabel.d.ts +0 -14
- package/dist/serialization/types/MlModelDisplayConfigLabelled.d.ts +0 -16
- package/dist/serialization/types/MlModelDisplayConfigRequest.d.ts +0 -16
- package/dist/serialization/types/MlModelDisplayTag.d.ts +0 -10
- package/dist/serialization/types/MlModelDisplayTagEnumValueLabel.d.ts +0 -14
- package/dist/serialization/types/MlModelExecConfig.d.ts +0 -23
- package/dist/serialization/types/MlModelExecConfig.js +0 -44
- package/dist/serialization/types/MlModelExecConfigRequest.d.ts +0 -23
- package/dist/serialization/types/MlModelExecConfigRequest.js +0 -44
- package/dist/serialization/types/MlModelFamily.d.ts +0 -10
- package/dist/serialization/types/MlModelFamilyEnumValueLabel.d.ts +0 -14
- package/dist/serialization/types/MlModelFeature.d.ts +0 -10
- package/dist/serialization/types/MlModelParameterConfig.d.ts +0 -22
- package/dist/serialization/types/MlModelParameterConfigRequest.d.ts +0 -22
- package/dist/serialization/types/MlModelParameterConfigRequest.js +0 -46
- package/dist/serialization/types/MlModelRead.d.ts +0 -27
- package/dist/serialization/types/MlModelRead.js +0 -48
- package/dist/serialization/types/MlModelRequestAuthorizationConfig.d.ts +0 -13
- package/dist/serialization/types/MlModelRequestAuthorizationConfigRequest.d.ts +0 -13
- package/dist/serialization/types/MlModelRequestAuthorizationConfigRequest.js +0 -34
- package/dist/serialization/types/MlModelRequestAuthorizationConfigTypeEnum.d.ts +0 -10
- package/dist/serialization/types/MlModelRequestConfig.d.ts +0 -15
- package/dist/serialization/types/MlModelRequestConfigRequest.d.ts +0 -15
- package/dist/serialization/types/MlModelRequestConfigRequest.js +0 -36
- package/dist/serialization/types/MlModelResponseConfig.d.ts +0 -14
- package/dist/serialization/types/MlModelResponseConfig.js +0 -35
- package/dist/serialization/types/MlModelResponseConfigRequest.d.ts +0 -14
- package/dist/serialization/types/MlModelResponseConfigRequest.js +0 -35
- package/dist/serialization/types/MlModelTokenizerConfig.d.ts +0 -12
- package/dist/serialization/types/MlModelTokenizerConfig.js +0 -33
- package/dist/serialization/types/MlModelTokenizerConfigRequest.d.ts +0 -12
- package/dist/serialization/types/MlModelTokenizerConfigRequest.js +0 -33
- package/dist/serialization/types/OpenApiArrayProperty.d.ts +0 -23
- package/dist/serialization/types/OpenApiArrayProperty.js +0 -45
- package/dist/serialization/types/OpenApiArrayPropertyRequest.d.ts +0 -23
- package/dist/serialization/types/OpenApiArrayPropertyRequest.js +0 -45
- package/dist/serialization/types/OpenApiBooleanProperty.d.ts +0 -15
- package/dist/serialization/types/OpenApiBooleanProperty.js +0 -36
- package/dist/serialization/types/OpenApiBooleanPropertyRequest.d.ts +0 -15
- package/dist/serialization/types/OpenApiBooleanPropertyRequest.js +0 -36
- package/dist/serialization/types/OpenApiConstProperty.d.ts +0 -15
- package/dist/serialization/types/OpenApiConstProperty.js +0 -36
- package/dist/serialization/types/OpenApiConstPropertyRequest.d.ts +0 -15
- package/dist/serialization/types/OpenApiConstPropertyRequest.js +0 -36
- package/dist/serialization/types/OpenApiIntegerProperty.d.ts +0 -19
- package/dist/serialization/types/OpenApiIntegerProperty.js +0 -40
- package/dist/serialization/types/OpenApiIntegerPropertyRequest.d.ts +0 -19
- package/dist/serialization/types/OpenApiIntegerPropertyRequest.js +0 -40
- package/dist/serialization/types/OpenApiNumberProperty.d.ts +0 -20
- package/dist/serialization/types/OpenApiNumberProperty.js +0 -41
- package/dist/serialization/types/OpenApiNumberPropertyRequest.d.ts +0 -20
- package/dist/serialization/types/OpenApiNumberPropertyRequest.js +0 -41
- package/dist/serialization/types/OpenApiObjectProperty.d.ts +0 -22
- package/dist/serialization/types/OpenApiObjectProperty.js +0 -48
- package/dist/serialization/types/OpenApiObjectPropertyRequest.d.ts +0 -22
- package/dist/serialization/types/OpenApiObjectPropertyRequest.js +0 -48
- package/dist/serialization/types/OpenApiOneOfProperty.d.ts +0 -15
- package/dist/serialization/types/OpenApiOneOfPropertyRequest.d.ts +0 -15
- package/dist/serialization/types/OpenApiProperty.d.ts +0 -16
- package/dist/serialization/types/OpenApiProperty.js +0 -48
- package/dist/serialization/types/OpenApiPropertyRequest.d.ts +0 -16
- package/dist/serialization/types/OpenApiPropertyRequest.js +0 -48
- package/dist/serialization/types/OpenApiRefProperty.d.ts +0 -15
- package/dist/serialization/types/OpenApiRefProperty.js +0 -36
- package/dist/serialization/types/OpenApiRefPropertyRequest.d.ts +0 -15
- package/dist/serialization/types/OpenApiRefPropertyRequest.js +0 -36
- package/dist/serialization/types/OpenApiStringProperty.d.ts +0 -19
- package/dist/serialization/types/OpenApiStringProperty.js +0 -40
- package/dist/serialization/types/OpenApiStringPropertyRequest.d.ts +0 -19
- package/dist/serialization/types/OpenApiStringPropertyRequest.js +0 -40
- package/dist/serialization/types/PaginatedMlModelReadList.d.ts +0 -16
- package/dist/serialization/types/PaginatedMlModelReadList.js +0 -37
- package/dist/serialization/types/TikTokenTokenizerConfig.d.ts +0 -13
- package/dist/serialization/types/TikTokenTokenizerConfig.js +0 -34
- package/dist/serialization/types/TikTokenTokenizerConfigRequest.d.ts +0 -13
- package/dist/serialization/types/VisibilityEnum.d.ts +0 -10
- package/serialization/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +0 -26
- package/serialization/resources/mlModels/client/requests/MlModelCreateRequest.js +0 -47
- package/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +0 -19
- package/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +0 -19
- package/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js +0 -40
- package/serialization/resources/mlModels/client/requests/index.d.ts +0 -3
- package/serialization/resources/mlModels/client/requests/index.js +0 -9
- package/serialization/types/HostedByEnum.d.ts +0 -10
- package/serialization/types/HostedByEnum.js +0 -49
- package/serialization/types/HuggingFaceTokenizerConfig.d.ts +0 -14
- package/serialization/types/HuggingFaceTokenizerConfigRequest.d.ts +0 -14
- package/serialization/types/MlModelDeveloper.d.ts +0 -10
- package/serialization/types/MlModelDeveloper.js +0 -50
- package/serialization/types/MlModelDeveloperEnumValueLabel.d.ts +0 -14
- package/serialization/types/MlModelDeveloperEnumValueLabel.js +0 -35
- package/serialization/types/MlModelDisplayConfigLabelled.d.ts +0 -16
- package/serialization/types/MlModelDisplayConfigLabelled.js +0 -37
- package/serialization/types/MlModelDisplayConfigRequest.d.ts +0 -16
- package/serialization/types/MlModelDisplayConfigRequest.js +0 -37
- package/serialization/types/MlModelDisplayTag.d.ts +0 -10
- package/serialization/types/MlModelDisplayTagEnumValueLabel.d.ts +0 -14
- package/serialization/types/MlModelExecConfig.d.ts +0 -23
- package/serialization/types/MlModelExecConfig.js +0 -44
- package/serialization/types/MlModelExecConfigRequest.d.ts +0 -23
- package/serialization/types/MlModelExecConfigRequest.js +0 -44
- package/serialization/types/MlModelFamily.d.ts +0 -10
- package/serialization/types/MlModelFamily.js +0 -52
- package/serialization/types/MlModelFamilyEnumValueLabel.d.ts +0 -14
- package/serialization/types/MlModelFeature.d.ts +0 -10
- package/serialization/types/MlModelFeature.js +0 -41
- package/serialization/types/MlModelParameterConfig.d.ts +0 -22
- package/serialization/types/MlModelParameterConfigRequest.d.ts +0 -22
- package/serialization/types/MlModelParameterConfigRequest.js +0 -46
- package/serialization/types/MlModelRead.d.ts +0 -27
- package/serialization/types/MlModelRead.js +0 -48
- package/serialization/types/MlModelRequestAuthorizationConfig.d.ts +0 -13
- package/serialization/types/MlModelRequestAuthorizationConfigRequest.d.ts +0 -13
- package/serialization/types/MlModelRequestAuthorizationConfigRequest.js +0 -34
- package/serialization/types/MlModelRequestAuthorizationConfigTypeEnum.d.ts +0 -10
- package/serialization/types/MlModelRequestConfig.d.ts +0 -15
- package/serialization/types/MlModelRequestConfigRequest.d.ts +0 -15
- package/serialization/types/MlModelRequestConfigRequest.js +0 -36
- package/serialization/types/MlModelResponseConfig.d.ts +0 -14
- package/serialization/types/MlModelResponseConfig.js +0 -35
- package/serialization/types/MlModelResponseConfigRequest.d.ts +0 -14
- package/serialization/types/MlModelResponseConfigRequest.js +0 -35
- package/serialization/types/MlModelTokenizerConfig.d.ts +0 -12
- package/serialization/types/MlModelTokenizerConfig.js +0 -33
- package/serialization/types/MlModelTokenizerConfigRequest.d.ts +0 -12
- package/serialization/types/MlModelTokenizerConfigRequest.js +0 -33
- package/serialization/types/OpenApiArrayProperty.d.ts +0 -23
- package/serialization/types/OpenApiArrayProperty.js +0 -45
- package/serialization/types/OpenApiArrayPropertyRequest.d.ts +0 -23
- package/serialization/types/OpenApiArrayPropertyRequest.js +0 -45
- package/serialization/types/OpenApiBooleanProperty.d.ts +0 -15
- package/serialization/types/OpenApiBooleanProperty.js +0 -36
- package/serialization/types/OpenApiBooleanPropertyRequest.d.ts +0 -15
- package/serialization/types/OpenApiBooleanPropertyRequest.js +0 -36
- package/serialization/types/OpenApiConstProperty.d.ts +0 -15
- package/serialization/types/OpenApiConstProperty.js +0 -36
- package/serialization/types/OpenApiConstPropertyRequest.d.ts +0 -15
- package/serialization/types/OpenApiConstPropertyRequest.js +0 -36
- package/serialization/types/OpenApiIntegerProperty.d.ts +0 -19
- package/serialization/types/OpenApiIntegerProperty.js +0 -40
- package/serialization/types/OpenApiIntegerPropertyRequest.d.ts +0 -19
- package/serialization/types/OpenApiIntegerPropertyRequest.js +0 -40
- package/serialization/types/OpenApiNumberProperty.d.ts +0 -20
- package/serialization/types/OpenApiNumberProperty.js +0 -41
- package/serialization/types/OpenApiNumberPropertyRequest.d.ts +0 -20
- package/serialization/types/OpenApiNumberPropertyRequest.js +0 -41
- package/serialization/types/OpenApiObjectProperty.d.ts +0 -22
- package/serialization/types/OpenApiObjectProperty.js +0 -48
- package/serialization/types/OpenApiObjectPropertyRequest.d.ts +0 -22
- package/serialization/types/OpenApiObjectPropertyRequest.js +0 -48
- package/serialization/types/OpenApiOneOfProperty.d.ts +0 -15
- package/serialization/types/OpenApiOneOfPropertyRequest.d.ts +0 -15
- package/serialization/types/OpenApiProperty.d.ts +0 -16
- package/serialization/types/OpenApiProperty.js +0 -48
- package/serialization/types/OpenApiPropertyRequest.d.ts +0 -16
- package/serialization/types/OpenApiPropertyRequest.js +0 -48
- package/serialization/types/OpenApiRefProperty.d.ts +0 -15
- package/serialization/types/OpenApiRefProperty.js +0 -36
- package/serialization/types/OpenApiRefPropertyRequest.d.ts +0 -15
- package/serialization/types/OpenApiRefPropertyRequest.js +0 -36
- package/serialization/types/OpenApiStringProperty.d.ts +0 -19
- package/serialization/types/OpenApiStringProperty.js +0 -40
- package/serialization/types/OpenApiStringPropertyRequest.d.ts +0 -19
- package/serialization/types/OpenApiStringPropertyRequest.js +0 -40
- package/serialization/types/PaginatedMlModelReadList.d.ts +0 -16
- package/serialization/types/PaginatedMlModelReadList.js +0 -37
- package/serialization/types/TikTokenTokenizerConfig.d.ts +0 -13
- package/serialization/types/TikTokenTokenizerConfig.js +0 -34
- package/serialization/types/TikTokenTokenizerConfigRequest.d.ts +0 -13
- package/serialization/types/TikTokenTokenizerConfigRequest.js +0 -34
- package/serialization/types/VisibilityEnum.d.ts +0 -10
- /package/api/resources/{mlModels → adHoc}/client/index.d.ts +0 -0
- /package/api/resources/{mlModels → adHoc}/client/index.js +0 -0
- /package/api/resources/{mlModels/client/requests/MlModelCreateRequest.js → adHoc/client/requests/AdHocExecutePromptStreamRequest.js} +0 -0
- /package/api/resources/{mlModels → adHoc}/client/requests/index.js +0 -0
- /package/api/resources/{mlModels → adHoc}/index.d.ts +0 -0
- /package/api/resources/{mlModels → adHoc}/index.js +0 -0
- /package/api/resources/{mlModels/client/requests/MlModelUpdateRequest.js → sandboxes/client/requests/UpsertSandboxScenarioRequest.js} +0 -0
- /package/api/{resources/mlModels/client/requests/MlModelsListRequest.js → types/AdHocExecutePromptEvent.js} +0 -0
- /package/api/{resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js → types/AdHocExpandMetaRequest.js} +0 -0
- /package/api/{resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js → types/AdHocFulfilledPromptExecutionMeta.js} +0 -0
- /package/api/types/{HuggingFaceTokenizerConfig.js → AdHocInitiatedPromptExecutionMeta.js} +0 -0
- /package/api/types/{HuggingFaceTokenizerConfigRequest.js → AdHocRejectedPromptExecutionMeta.js} +0 -0
- /package/api/types/{MlModelDeveloperEnumValueLabel.js → AdHocStreamingPromptExecutionMeta.js} +0 -0
- /package/api/types/{MlModelDisplayConfigLabelled.js → ChatMessagePromptBlockPropertiesRequest.js} +0 -0
- /package/api/types/{MlModelDisplayConfigRequest.js → ChatMessagePromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelDisplayTagEnumValueLabel.js → EphemeralPromptCacheConfigRequest.js} +0 -0
- /package/api/types/{MlModelExecConfig.js → EphemeralPromptCacheConfigTypeEnum.js} +0 -0
- /package/api/types/{MlModelExecConfigRequest.js → FulfilledAdHocExecutePromptEvent.js} +0 -0
- /package/api/types/{MlModelFamilyEnumValueLabel.js → FunctionDefinitionPromptBlockPropertiesRequest.js} +0 -0
- /package/api/types/{MlModelParameterConfig.js → FunctionDefinitionPromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelParameterConfigRequest.js → InitiatedAdHocExecutePromptEvent.js} +0 -0
- /package/api/types/{MlModelRead.js → JinjaPromptBlockPropertiesRequest.js} +0 -0
- /package/api/types/{MlModelRequestAuthorizationConfig.js → JinjaPromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelRequestAuthorizationConfigRequest.js → PlainTextPromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelRequestConfig.js → PromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelRequestConfigRequest.js → PromptDeploymentExpandMetaRequest.js} +0 -0
- /package/api/types/{MlModelResponseConfig.js → PromptParametersRequest.js} +0 -0
- /package/api/types/{MlModelResponseConfigRequest.js → PromptRequestChatHistoryInputRequest.js} +0 -0
- /package/api/types/{MlModelTokenizerConfig.js → PromptRequestInputRequest.js} +0 -0
- /package/api/types/{MlModelTokenizerConfigRequest.js → PromptRequestJsonInputRequest.js} +0 -0
- /package/api/types/{OpenApiArrayProperty.js → PromptRequestStringInputRequest.js} +0 -0
- /package/api/types/{OpenApiArrayPropertyRequest.js → RejectedAdHocExecutePromptEvent.js} +0 -0
- /package/api/types/{OpenApiBooleanProperty.js → RichTextChildBlockRequest.js} +0 -0
- /package/api/types/{OpenApiBooleanPropertyRequest.js → RichTextPromptBlockRequest.js} +0 -0
- /package/api/types/{OpenApiConstProperty.js → StreamingAdHocExecutePromptEvent.js} +0 -0
- /package/api/types/{OpenApiConstPropertyRequest.js → VariablePromptBlockRequest.js} +0 -0
- /package/api/types/{OpenApiIntegerProperty.js → VellumVariableRequest.js} +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/client/index.d.ts +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/client/index.js +0 -0
- /package/{api/types/OpenApiIntegerPropertyRequest.js → dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js} +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/client/requests/index.js +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/index.d.ts +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/index.js +0 -0
- /package/{api/types/OpenApiNumberProperty.js → dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.js} +0 -0
- /package/{api/types/OpenApiNumberPropertyRequest.js → dist/api/types/AdHocExecutePromptEvent.js} +0 -0
- /package/{api/types/OpenApiObjectProperty.js → dist/api/types/AdHocExpandMetaRequest.js} +0 -0
- /package/{api/types/OpenApiObjectPropertyRequest.js → dist/api/types/AdHocFulfilledPromptExecutionMeta.js} +0 -0
- /package/{api/types/OpenApiOneOfProperty.js → dist/api/types/AdHocInitiatedPromptExecutionMeta.js} +0 -0
- /package/{api/types/OpenApiOneOfPropertyRequest.js → dist/api/types/AdHocRejectedPromptExecutionMeta.js} +0 -0
- /package/{api/types/OpenApiProperty.js → dist/api/types/AdHocStreamingPromptExecutionMeta.js} +0 -0
- /package/{api/types/OpenApiPropertyRequest.js → dist/api/types/ChatMessagePromptBlockPropertiesRequest.js} +0 -0
- /package/{api/types/OpenApiRefProperty.js → dist/api/types/ChatMessagePromptBlockRequest.js} +0 -0
- /package/{api/types/OpenApiRefPropertyRequest.js → dist/api/types/EphemeralPromptCacheConfigRequest.js} +0 -0
- /package/{api/types/OpenApiStringProperty.js → dist/api/types/EphemeralPromptCacheConfigTypeEnum.js} +0 -0
- /package/{api/types/OpenApiStringPropertyRequest.js → dist/api/types/FulfilledAdHocExecutePromptEvent.js} +0 -0
- /package/{api/types/PaginatedMlModelReadList.js → dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.js} +0 -0
- /package/{api/types/PromptDeploymentExpandMetaRequestRequest.js → dist/api/types/FunctionDefinitionPromptBlockRequest.js} +0 -0
- /package/{api/types/TikTokenTokenizerConfig.js → dist/api/types/InitiatedAdHocExecutePromptEvent.js} +0 -0
- /package/{api/types/TikTokenTokenizerConfigRequest.js → dist/api/types/JinjaPromptBlockPropertiesRequest.js} +0 -0
- /package/dist/api/{resources/mlModels/client/requests/MlModelCreateRequest.js → types/JinjaPromptBlockRequest.js} +0 -0
- /package/dist/api/{resources/mlModels/client/requests/MlModelUpdateRequest.js → types/PlainTextPromptBlockRequest.js} +0 -0
- /package/dist/api/{resources/mlModels/client/requests/MlModelsListRequest.js → types/PromptBlockRequest.js} +0 -0
- /package/dist/api/{resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js → types/PromptDeploymentExpandMetaRequest.js} +0 -0
- /package/dist/api/{resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js → types/PromptParametersRequest.js} +0 -0
- /package/dist/api/types/{HuggingFaceTokenizerConfig.js → PromptRequestChatHistoryInputRequest.js} +0 -0
- /package/dist/api/types/{HuggingFaceTokenizerConfigRequest.js → PromptRequestInputRequest.js} +0 -0
- /package/dist/api/types/{MlModelDeveloperEnumValueLabel.js → PromptRequestJsonInputRequest.js} +0 -0
- /package/dist/api/types/{MlModelDisplayConfigLabelled.js → PromptRequestStringInputRequest.js} +0 -0
- /package/dist/api/types/{MlModelDisplayConfigRequest.js → RejectedAdHocExecutePromptEvent.js} +0 -0
- /package/dist/api/types/{MlModelDisplayTagEnumValueLabel.js → RichTextChildBlockRequest.js} +0 -0
- /package/dist/api/types/{MlModelExecConfig.js → RichTextPromptBlockRequest.js} +0 -0
- /package/dist/api/types/{MlModelExecConfigRequest.js → StreamingAdHocExecutePromptEvent.js} +0 -0
- /package/dist/api/types/{MlModelFamilyEnumValueLabel.js → VariablePromptBlockRequest.js} +0 -0
- /package/dist/api/types/{MlModelParameterConfig.js → VellumVariableRequest.js} +0 -0
- /package/dist/serialization/resources/{mlModels → adHoc}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/{mlModels → adHoc}/client/index.js +0 -0
- /package/dist/serialization/resources/{mlModels → adHoc}/index.d.ts +0 -0
- /package/dist/serialization/resources/{mlModels → adHoc}/index.js +0 -0
- /package/serialization/resources/{mlModels → adHoc}/client/index.d.ts +0 -0
- /package/serialization/resources/{mlModels → adHoc}/client/index.js +0 -0
- /package/serialization/resources/{mlModels → adHoc}/index.d.ts +0 -0
- /package/serialization/resources/{mlModels → adHoc}/index.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import * as Vellum from "./api/index";
|
|
7
|
+
import { AdHoc } from "./api/resources/adHoc/client/Client";
|
|
7
8
|
import { Deployments } from "./api/resources/deployments/client/Client";
|
|
8
9
|
import { DocumentIndexes } from "./api/resources/documentIndexes/client/Client";
|
|
9
10
|
import { Documents } from "./api/resources/documents/client/Client";
|
|
10
11
|
import { FolderEntities } from "./api/resources/folderEntities/client/Client";
|
|
11
|
-
import { MlModels } from "./api/resources/mlModels/client/Client";
|
|
12
12
|
import { Sandboxes } from "./api/resources/sandboxes/client/Client";
|
|
13
13
|
import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
|
|
14
14
|
import { TestSuites } from "./api/resources/testSuites/client/Client";
|
|
@@ -17,7 +17,7 @@ import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Clie
|
|
|
17
17
|
export declare namespace VellumClient {
|
|
18
18
|
interface Options {
|
|
19
19
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
20
|
-
apiKey
|
|
20
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
21
21
|
}
|
|
22
22
|
interface RequestOptions {
|
|
23
23
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -30,7 +30,7 @@ export declare namespace VellumClient {
|
|
|
30
30
|
}
|
|
31
31
|
export declare class VellumClient {
|
|
32
32
|
protected readonly _options: VellumClient.Options;
|
|
33
|
-
constructor(_options
|
|
33
|
+
constructor(_options?: VellumClient.Options);
|
|
34
34
|
/**
|
|
35
35
|
* Executes a deployed Prompt and returns the result.
|
|
36
36
|
*
|
|
@@ -159,6 +159,8 @@ export declare class VellumClient {
|
|
|
159
159
|
* })
|
|
160
160
|
*/
|
|
161
161
|
submitWorkflowExecutionActuals(request: Vellum.SubmitWorkflowExecutionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
|
|
162
|
+
protected _adHoc: AdHoc | undefined;
|
|
163
|
+
get adHoc(): AdHoc;
|
|
162
164
|
protected _deployments: Deployments | undefined;
|
|
163
165
|
get deployments(): Deployments;
|
|
164
166
|
protected _documentIndexes: DocumentIndexes | undefined;
|
|
@@ -167,8 +169,6 @@ export declare class VellumClient {
|
|
|
167
169
|
get documents(): Documents;
|
|
168
170
|
protected _folderEntities: FolderEntities | undefined;
|
|
169
171
|
get folderEntities(): FolderEntities;
|
|
170
|
-
protected _mlModels: MlModels | undefined;
|
|
171
|
-
get mlModels(): MlModels;
|
|
172
172
|
protected _sandboxes: Sandboxes | undefined;
|
|
173
173
|
get sandboxes(): Sandboxes;
|
|
174
174
|
protected _testSuiteRuns: TestSuiteRuns | undefined;
|
|
@@ -180,6 +180,6 @@ export declare class VellumClient {
|
|
|
180
180
|
protected _workflowSandboxes: WorkflowSandboxes | undefined;
|
|
181
181
|
get workflowSandboxes(): WorkflowSandboxes;
|
|
182
182
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
183
|
-
X_API_KEY: string;
|
|
183
|
+
X_API_KEY: string | undefined;
|
|
184
184
|
}>;
|
|
185
185
|
}
|
package/Client.js
CHANGED
|
@@ -45,18 +45,18 @@ const Vellum = __importStar(require("./api/index"));
|
|
|
45
45
|
const serializers = __importStar(require("./serialization/index"));
|
|
46
46
|
const url_join_1 = __importDefault(require("url-join"));
|
|
47
47
|
const errors = __importStar(require("./errors/index"));
|
|
48
|
-
const Client_1 = require("./api/resources/
|
|
49
|
-
const Client_2 = require("./api/resources/
|
|
50
|
-
const Client_3 = require("./api/resources/
|
|
51
|
-
const Client_4 = require("./api/resources/
|
|
52
|
-
const Client_5 = require("./api/resources/
|
|
48
|
+
const Client_1 = require("./api/resources/adHoc/client/Client");
|
|
49
|
+
const Client_2 = require("./api/resources/deployments/client/Client");
|
|
50
|
+
const Client_3 = require("./api/resources/documentIndexes/client/Client");
|
|
51
|
+
const Client_4 = require("./api/resources/documents/client/Client");
|
|
52
|
+
const Client_5 = require("./api/resources/folderEntities/client/Client");
|
|
53
53
|
const Client_6 = require("./api/resources/sandboxes/client/Client");
|
|
54
54
|
const Client_7 = require("./api/resources/testSuiteRuns/client/Client");
|
|
55
55
|
const Client_8 = require("./api/resources/testSuites/client/Client");
|
|
56
56
|
const Client_9 = require("./api/resources/workflowDeployments/client/Client");
|
|
57
57
|
const Client_10 = require("./api/resources/workflowSandboxes/client/Client");
|
|
58
58
|
class VellumClient {
|
|
59
|
-
constructor(_options) {
|
|
59
|
+
constructor(_options = {}) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
@@ -86,7 +86,7 @@ class VellumClient {
|
|
|
86
86
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
87
87
|
.predict, "v1/execute-prompt"),
|
|
88
88
|
method: "POST",
|
|
89
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
89
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -144,7 +144,7 @@ class VellumClient {
|
|
|
144
144
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
145
145
|
.predict, "v1/execute-prompt-stream"),
|
|
146
146
|
method: "POST",
|
|
147
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
147
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
requestType: "json",
|
|
150
150
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -229,7 +229,7 @@ class VellumClient {
|
|
|
229
229
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
230
230
|
.predict, "v1/execute-workflow"),
|
|
231
231
|
method: "POST",
|
|
232
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
232
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
233
233
|
contentType: "application/json",
|
|
234
234
|
requestType: "json",
|
|
235
235
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -285,7 +285,7 @@ class VellumClient {
|
|
|
285
285
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
286
286
|
.predict, "v1/execute-workflow-stream"),
|
|
287
287
|
method: "POST",
|
|
288
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
288
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
289
289
|
contentType: "application/json",
|
|
290
290
|
requestType: "json",
|
|
291
291
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -372,7 +372,7 @@ class VellumClient {
|
|
|
372
372
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
373
373
|
.predict, "v1/generate"),
|
|
374
374
|
method: "POST",
|
|
375
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
375
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
376
376
|
contentType: "application/json",
|
|
377
377
|
requestType: "json",
|
|
378
378
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -433,7 +433,7 @@ class VellumClient {
|
|
|
433
433
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
434
434
|
.predict, "v1/generate-stream"),
|
|
435
435
|
method: "POST",
|
|
436
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
436
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
437
437
|
contentType: "application/json",
|
|
438
438
|
requestType: "json",
|
|
439
439
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -514,7 +514,7 @@ class VellumClient {
|
|
|
514
514
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
515
515
|
.predict, "v1/search"),
|
|
516
516
|
method: "POST",
|
|
517
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
517
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
518
518
|
contentType: "application/json",
|
|
519
519
|
requestType: "json",
|
|
520
520
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -582,7 +582,7 @@ class VellumClient {
|
|
|
582
582
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
583
583
|
.predict, "v1/submit-completion-actuals"),
|
|
584
584
|
method: "POST",
|
|
585
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
585
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
586
586
|
contentType: "application/json",
|
|
587
587
|
requestType: "json",
|
|
588
588
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -645,7 +645,7 @@ class VellumClient {
|
|
|
645
645
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
646
646
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
647
647
|
method: "POST",
|
|
648
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
648
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
649
649
|
contentType: "application/json",
|
|
650
650
|
requestType: "json",
|
|
651
651
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -679,25 +679,25 @@ class VellumClient {
|
|
|
679
679
|
}
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
+
get adHoc() {
|
|
683
|
+
var _a;
|
|
684
|
+
return ((_a = this._adHoc) !== null && _a !== void 0 ? _a : (this._adHoc = new Client_1.AdHoc(this._options)));
|
|
685
|
+
}
|
|
682
686
|
get deployments() {
|
|
683
687
|
var _a;
|
|
684
|
-
return ((_a = this._deployments) !== null && _a !== void 0 ? _a : (this._deployments = new
|
|
688
|
+
return ((_a = this._deployments) !== null && _a !== void 0 ? _a : (this._deployments = new Client_2.Deployments(this._options)));
|
|
685
689
|
}
|
|
686
690
|
get documentIndexes() {
|
|
687
691
|
var _a;
|
|
688
|
-
return ((_a = this._documentIndexes) !== null && _a !== void 0 ? _a : (this._documentIndexes = new
|
|
692
|
+
return ((_a = this._documentIndexes) !== null && _a !== void 0 ? _a : (this._documentIndexes = new Client_3.DocumentIndexes(this._options)));
|
|
689
693
|
}
|
|
690
694
|
get documents() {
|
|
691
695
|
var _a;
|
|
692
|
-
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new
|
|
696
|
+
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_4.Documents(this._options)));
|
|
693
697
|
}
|
|
694
698
|
get folderEntities() {
|
|
695
699
|
var _a;
|
|
696
|
-
return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new
|
|
697
|
-
}
|
|
698
|
-
get mlModels() {
|
|
699
|
-
var _a;
|
|
700
|
-
return ((_a = this._mlModels) !== null && _a !== void 0 ? _a : (this._mlModels = new Client_5.MlModels(this._options)));
|
|
700
|
+
return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new Client_5.FolderEntities(this._options)));
|
|
701
701
|
}
|
|
702
702
|
get sandboxes() {
|
|
703
703
|
var _a;
|
|
@@ -24,7 +24,7 @@ export interface ExecutePromptRequest {
|
|
|
24
24
|
/** Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment. */
|
|
25
25
|
externalId?: string;
|
|
26
26
|
/** An optionally specified configuration used to opt in to including additional metadata about this prompt execution in the API response. Corresponding values will be returned under the `meta` key of the API response. */
|
|
27
|
-
expandMeta?: Vellum.
|
|
27
|
+
expandMeta?: Vellum.PromptDeploymentExpandMetaRequest;
|
|
28
28
|
/** Overrides for the raw API request sent to the model host. Combined with `expand_raw`, it can be used to access new features from models. */
|
|
29
29
|
rawOverrides?: Vellum.RawPromptExecutionOverridesRequest;
|
|
30
30
|
/** A list of keys whose values you'd like to directly return from the JSON response of the model provider. Useful if you need lower-level info returned by model providers that Vellum would otherwise omit. Corresponding key/value pairs will be returned under the `raw` key of the API response. */
|
|
@@ -55,7 +55,7 @@ export interface ExecutePromptStreamRequest {
|
|
|
55
55
|
/** Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment. */
|
|
56
56
|
externalId?: string;
|
|
57
57
|
/** An optionally specified configuration used to opt in to including additional metadata about this prompt execution in the API response. Corresponding values will be returned under the `meta` key of the API response. */
|
|
58
|
-
expandMeta?: Vellum.
|
|
58
|
+
expandMeta?: Vellum.PromptDeploymentExpandMetaRequest;
|
|
59
59
|
/** Overrides for the raw API request sent to the model host. Combined with `expand_raw`, it can be used to access new features from models. */
|
|
60
60
|
rawOverrides?: Vellum.RawPromptExecutionOverridesRequest;
|
|
61
61
|
/** A list of keys whose values you'd like to directly return from the JSON response of the model provider. Useful if you need lower-level info returned by model providers that Vellum would otherwise omit. Corresponding key/value pairs will be returned under the `raw` key of the API response. */
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -16,5 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BadRequestError"), exports);
|
|
18
18
|
__exportStar(require("./ForbiddenError"), exports);
|
|
19
|
-
__exportStar(require("./NotFoundError"), exports);
|
|
20
19
|
__exportStar(require("./InternalServerError"), exports);
|
|
20
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
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 AdHoc {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
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 AdHoc {
|
|
22
|
+
protected readonly _options: AdHoc.Options;
|
|
23
|
+
constructor(_options?: AdHoc.Options);
|
|
24
|
+
/**
|
|
25
|
+
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
26
|
+
*/
|
|
27
|
+
adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStreamRequest, requestOptions?: AdHoc.RequestOptions): Promise<core.Stream<Vellum.AdHocExecutePromptEvent>>;
|
|
28
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
29
|
+
X_API_KEY: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
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
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.AdHoc = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const Vellum = __importStar(require("../../../index"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
48
|
+
class AdHoc {
|
|
49
|
+
constructor(_options = {}) {
|
|
50
|
+
this._options = _options;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
54
|
+
*/
|
|
55
|
+
adhocExecutePromptStream(request, requestOptions) {
|
|
56
|
+
var _a;
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const _response = yield core.fetcher({
|
|
59
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
60
|
+
.default, "v1/ad-hoc/execute-prompt-stream"),
|
|
61
|
+
method: "POST",
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
63
|
+
contentType: "application/json",
|
|
64
|
+
requestType: "json",
|
|
65
|
+
body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
66
|
+
responseType: "sse",
|
|
67
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
68
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
69
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
70
|
+
});
|
|
71
|
+
if (_response.ok) {
|
|
72
|
+
return new core.Stream({
|
|
73
|
+
stream: _response.body,
|
|
74
|
+
parse: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
return serializers.AdHocExecutePromptEvent.parseOrThrow(data, {
|
|
76
|
+
unrecognizedObjectKeys: "passthrough",
|
|
77
|
+
allowUnrecognizedUnionMembers: true,
|
|
78
|
+
allowUnrecognizedEnumValues: true,
|
|
79
|
+
breadcrumbsPrefix: ["response"],
|
|
80
|
+
});
|
|
81
|
+
}),
|
|
82
|
+
signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
|
+
eventShape: {
|
|
84
|
+
type: "json",
|
|
85
|
+
messageTerminator: "\n",
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
if (_response.error.reason === "status-code") {
|
|
90
|
+
switch (_response.error.statusCode) {
|
|
91
|
+
case 400:
|
|
92
|
+
throw new Vellum.BadRequestError(_response.error.body);
|
|
93
|
+
case 403:
|
|
94
|
+
throw new Vellum.ForbiddenError(_response.error.body);
|
|
95
|
+
case 500:
|
|
96
|
+
throw new Vellum.InternalServerError(_response.error.body);
|
|
97
|
+
default:
|
|
98
|
+
throw new errors.VellumError({
|
|
99
|
+
statusCode: _response.error.statusCode,
|
|
100
|
+
body: _response.error.body,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
switch (_response.error.reason) {
|
|
105
|
+
case "non-json":
|
|
106
|
+
throw new errors.VellumError({
|
|
107
|
+
statusCode: _response.error.statusCode,
|
|
108
|
+
body: _response.error.rawBody,
|
|
109
|
+
});
|
|
110
|
+
case "timeout":
|
|
111
|
+
throw new errors.VellumTimeoutError();
|
|
112
|
+
case "unknown":
|
|
113
|
+
throw new errors.VellumError({
|
|
114
|
+
message: _response.error.errorMessage,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
_getCustomAuthorizationHeaders() {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
122
|
+
return { X_API_KEY: apiKeyValue };
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.AdHoc = AdHoc;
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
* mlModel: "string",
|
|
9
|
+
* inputValues: [{
|
|
10
|
+
* key: "string",
|
|
11
|
+
* type: "STRING",
|
|
12
|
+
* value: "string"
|
|
13
|
+
* }],
|
|
14
|
+
* inputVariables: [{
|
|
15
|
+
* id: "string",
|
|
16
|
+
* key: "string",
|
|
17
|
+
* type: Vellum.VellumVariableType.String
|
|
18
|
+
* }],
|
|
19
|
+
* parameters: {
|
|
20
|
+
* stop: ["string"],
|
|
21
|
+
* temperature: 1.1,
|
|
22
|
+
* maxTokens: 1,
|
|
23
|
+
* topP: 1.1,
|
|
24
|
+
* topK: 1,
|
|
25
|
+
* frequencyPenalty: 1.1,
|
|
26
|
+
* presencePenalty: 1.1,
|
|
27
|
+
* logitBias: {
|
|
28
|
+
* "string": {
|
|
29
|
+
* "key": "value"
|
|
30
|
+
* }
|
|
31
|
+
* },
|
|
32
|
+
* customParameters: {
|
|
33
|
+
* "string": {
|
|
34
|
+
* "key": "value"
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* },
|
|
38
|
+
* blocks: [{
|
|
39
|
+
* blockType: "JINJA",
|
|
40
|
+
* properties: {
|
|
41
|
+
* template: "string",
|
|
42
|
+
* templateType: Vellum.VellumVariableType.String
|
|
43
|
+
* },
|
|
44
|
+
* id: "string",
|
|
45
|
+
* state: Vellum.PromptBlockState.Enabled,
|
|
46
|
+
* cacheConfig: {
|
|
47
|
+
* type: "EPHEMERAL"
|
|
48
|
+
* }
|
|
49
|
+
* }],
|
|
50
|
+
* expandMeta: {
|
|
51
|
+
* cost: true,
|
|
52
|
+
* modelName: true,
|
|
53
|
+
* usage: true,
|
|
54
|
+
* finishReason: true
|
|
55
|
+
* }
|
|
56
|
+
* }
|
|
57
|
+
*/
|
|
58
|
+
export interface AdHocExecutePromptStreamRequest {
|
|
59
|
+
mlModel: string;
|
|
60
|
+
inputValues: Vellum.PromptRequestInputRequest[];
|
|
61
|
+
inputVariables: Vellum.VellumVariableRequest[];
|
|
62
|
+
parameters: Vellum.PromptParametersRequest;
|
|
63
|
+
blocks: Vellum.PromptBlockRequest[];
|
|
64
|
+
expandMeta?: Vellum.AdHocExpandMetaRequest;
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type AdHocExecutePromptStreamRequest } from "./AdHocExecutePromptStreamRequest";
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace Deployments {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace Deployments {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class Deployments {
|
|
22
22
|
protected readonly _options: Deployments.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: Deployments.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to list all Prompt Deployments.
|
|
26
26
|
*
|
|
@@ -95,6 +95,6 @@ export declare class Deployments {
|
|
|
95
95
|
*/
|
|
96
96
|
retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
|
|
97
97
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
98
|
-
X_API_KEY: string;
|
|
98
|
+
X_API_KEY: string | undefined;
|
|
99
99
|
}>;
|
|
100
100
|
}
|
|
@@ -46,7 +46,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
46
46
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class Deployments {
|
|
49
|
-
constructor(_options) {
|
|
49
|
+
constructor(_options = {}) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -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.6", "User-Agent": "vellum-ai/0.8.6", "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.6", "User-Agent": "vellum-ai/0.8.6", "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.6", "User-Agent": "vellum-ai/0.8.6", "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.6", "User-Agent": "vellum-ai/0.8.6", "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.6", "User-Agent": "vellum-ai/0.8.6", "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, {
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace DocumentIndexes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace DocumentIndexes {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class DocumentIndexes {
|
|
22
22
|
protected readonly _options: DocumentIndexes.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: DocumentIndexes.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to retrieve a list of Document Indexes.
|
|
26
26
|
*
|
|
@@ -170,6 +170,6 @@ export declare class DocumentIndexes {
|
|
|
170
170
|
*/
|
|
171
171
|
removeDocument(documentId: string, id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<void>;
|
|
172
172
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
173
|
-
X_API_KEY: string;
|
|
173
|
+
X_API_KEY: string | undefined;
|
|
174
174
|
}>;
|
|
175
175
|
}
|