vellum-ai 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +25 -0
- package/Client.js +165 -0
- package/README.md +58 -0
- package/api/client/index.d.ts +1 -0
- package/api/client/index.js +17 -0
- package/api/client/requests/GenerateRequestBodyRequest.d.ts +14 -0
- package/api/client/requests/GenerateRequestBodyRequest.js +5 -0
- package/api/client/requests/SearchRequestBodyRequest.d.ts +14 -0
- package/api/client/requests/SearchRequestBodyRequest.js +5 -0
- package/api/client/requests/SubmitCompletionActualsRequestRequest.d.ts +12 -0
- package/api/client/requests/SubmitCompletionActualsRequestRequest.js +5 -0
- package/api/client/requests/index.d.ts +3 -0
- package/api/client/requests/index.js +2 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/resources/documents/client/Client.d.ts +20 -0
- package/api/resources/documents/client/Client.js +145 -0
- package/api/resources/documents/client/index.d.ts +1 -0
- package/api/resources/documents/client/index.js +17 -0
- package/api/resources/documents/client/requests/ListDocumentsRequest.d.ts +9 -0
- package/api/resources/documents/client/requests/ListDocumentsRequest.js +5 -0
- package/api/resources/documents/client/requests/UploadDocumentRequestBodyRequest.d.ts +13 -0
- package/api/resources/documents/client/requests/UploadDocumentRequestBodyRequest.js +5 -0
- package/api/resources/documents/client/requests/index.d.ts +2 -0
- package/api/resources/documents/client/requests/index.js +2 -0
- package/api/resources/documents/index.d.ts +1 -0
- package/api/resources/documents/index.js +17 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +32 -0
- package/api/resources/modelVersions/client/Client.d.ts +17 -0
- package/api/resources/modelVersions/client/Client.js +80 -0
- package/api/resources/modelVersions/client/index.d.ts +1 -0
- package/api/resources/modelVersions/client/index.js +2 -0
- package/api/resources/modelVersions/index.d.ts +1 -0
- package/api/resources/modelVersions/index.js +17 -0
- package/api/types/BlockTypeEnum.d.ts +10 -0
- package/api/types/BlockTypeEnum.js +12 -0
- package/api/types/ChatRoleEnum.d.ts +9 -0
- package/api/types/ChatRoleEnum.js +11 -0
- package/api/types/Document.d.ts +11 -0
- package/api/types/Document.js +5 -0
- package/api/types/DocumentDocumentToDocumentIndex.d.ts +12 -0
- package/api/types/DocumentDocumentToDocumentIndex.js +5 -0
- package/api/types/EnrichedNormalizedCompletion.d.ts +18 -0
- package/api/types/EnrichedNormalizedCompletion.js +5 -0
- package/api/types/FinishReasonEnum.d.ts +9 -0
- package/api/types/FinishReasonEnum.js +11 -0
- package/api/types/GenerateErrorResponse.d.ts +7 -0
- package/api/types/GenerateErrorResponse.js +5 -0
- package/api/types/GenerateOptionsRequest.d.ts +8 -0
- package/api/types/GenerateOptionsRequest.js +5 -0
- package/api/types/GenerateRequestRequest.d.ts +9 -0
- package/api/types/GenerateRequestRequest.js +5 -0
- package/api/types/GenerateResponse.d.ts +8 -0
- package/api/types/GenerateResponse.js +5 -0
- package/api/types/GenerateResult.d.ts +10 -0
- package/api/types/GenerateResult.js +5 -0
- package/api/types/GenerateResultData.d.ts +8 -0
- package/api/types/GenerateResultData.js +5 -0
- package/api/types/GenerateResultError.d.ts +7 -0
- package/api/types/GenerateResultError.js +5 -0
- package/api/types/IndexingStateEnum.d.ts +11 -0
- package/api/types/IndexingStateEnum.js +13 -0
- package/api/types/LogprobsEnum.d.ts +8 -0
- package/api/types/LogprobsEnum.js +10 -0
- package/api/types/ModelTypeEnum.d.ts +8 -0
- package/api/types/ModelTypeEnum.js +10 -0
- package/api/types/ModelVersionBuildConfig.d.ts +10 -0
- package/api/types/ModelVersionBuildConfig.js +5 -0
- package/api/types/ModelVersionExecConfigParameters.d.ts +13 -0
- package/api/types/ModelVersionExecConfigParameters.js +5 -0
- package/api/types/ModelVersionExecConfigRead.d.ts +13 -0
- package/api/types/ModelVersionExecConfigRead.js +5 -0
- package/api/types/ModelVersionRead.d.ts +23 -0
- package/api/types/ModelVersionRead.js +5 -0
- package/api/types/ModelVersionReadStatusEnum.d.ts +10 -0
- package/api/types/ModelVersionReadStatusEnum.js +12 -0
- package/api/types/ModelVersionSandboxSnapshot.d.ts +9 -0
- package/api/types/ModelVersionSandboxSnapshot.js +5 -0
- package/api/types/NormalizedLogProbs.d.ts +8 -0
- package/api/types/NormalizedLogProbs.js +5 -0
- package/api/types/NormalizedTokenLogProbs.d.ts +9 -0
- package/api/types/NormalizedTokenLogProbs.js +5 -0
- package/api/types/PaginatedSlimDocumentList.d.ts +10 -0
- package/api/types/PaginatedSlimDocumentList.js +5 -0
- package/api/types/ProcessingStateEnum.d.ts +10 -0
- package/api/types/ProcessingStateEnum.js +12 -0
- package/api/types/PromptTemplateBlock.d.ts +8 -0
- package/api/types/PromptTemplateBlock.js +5 -0
- package/api/types/PromptTemplateBlockData.d.ts +8 -0
- package/api/types/PromptTemplateBlockData.js +5 -0
- package/api/types/PromptTemplateBlockProperties.d.ts +10 -0
- package/api/types/PromptTemplateBlockProperties.js +5 -0
- package/api/types/ProviderEnum.d.ts +12 -0
- package/api/types/ProviderEnum.js +14 -0
- package/api/types/SearchErrorResponse.d.ts +7 -0
- package/api/types/SearchErrorResponse.js +5 -0
- package/api/types/SearchFiltersRequest.d.ts +7 -0
- package/api/types/SearchFiltersRequest.js +5 -0
- package/api/types/SearchRequestOptionsRequest.d.ts +14 -0
- package/api/types/SearchRequestOptionsRequest.js +5 -0
- package/api/types/SearchResponse.d.ts +8 -0
- package/api/types/SearchResponse.js +5 -0
- package/api/types/SearchResult.d.ts +13 -0
- package/api/types/SearchResult.js +5 -0
- package/api/types/SearchResultMergingRequest.d.ts +7 -0
- package/api/types/SearchResultMergingRequest.js +5 -0
- package/api/types/SearchWeightsRequest.d.ts +9 -0
- package/api/types/SearchWeightsRequest.js +5 -0
- package/api/types/SlimDocument.d.ts +21 -0
- package/api/types/SlimDocument.js +5 -0
- package/api/types/SlimDocumentStatusEnum.d.ts +7 -0
- package/api/types/SlimDocumentStatusEnum.js +9 -0
- package/api/types/SubmitCompletionActualRequest.d.ts +15 -0
- package/api/types/SubmitCompletionActualRequest.js +5 -0
- package/api/types/SubmitCompletionActualsErrorResponse.d.ts +6 -0
- package/api/types/SubmitCompletionActualsErrorResponse.js +5 -0
- package/api/types/UploadDocumentErrorResponse.d.ts +6 -0
- package/api/types/UploadDocumentErrorResponse.js +5 -0
- package/api/types/UploadDocumentResponse.d.ts +7 -0
- package/api/types/UploadDocumentResponse.js +5 -0
- package/api/types/index.d.ts +43 -0
- package/api/types/index.js +59 -0
- package/core/fetcher/APIResponse.d.ts +9 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +36 -0
- package/core/fetcher/Fetcher.js +87 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +13 -0
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -0
- package/core/form-data-utils/getFormDataContentLength.d.ts +2 -0
- package/core/form-data-utils/getFormDataContentLength.js +16 -0
- package/core/form-data-utils/index.d.ts +1 -0
- package/core/form-data-utils/index.js +5 -0
- package/core/index.d.ts +3 -0
- package/core/index.js +32 -0
- package/core/schemas/Schema.d.ts +62 -0
- package/core/schemas/Schema.js +20 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +55 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +29 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +13 -0
- package/core/schemas/builders/index.js +29 -0
- package/core/schemas/builders/lazy/index.d.ts +2 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +28 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +53 -0
- package/core/schemas/builders/literals/index.d.ts +1 -0
- package/core/schemas/builders/literals/index.js +5 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +28 -0
- package/core/schemas/builders/object/index.d.ts +3 -0
- package/core/schemas/builders/object/index.js +9 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +237 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +26 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +62 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +24 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +24 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +24 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +91 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +13 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +13 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/core/schemas/builders/schema-utils/index.d.ts +3 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +44 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +37 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +3 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +120 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +18 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/isPlainObject.d.ts +2 -0
- package/core/schemas/utils/isPlainObject.js +19 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +25 -0
- package/dist/Client.js +165 -0
- package/dist/api/client/index.d.ts +1 -0
- package/dist/api/client/index.js +17 -0
- package/dist/api/client/requests/GenerateRequestBodyRequest.d.ts +14 -0
- package/dist/api/client/requests/GenerateRequestBodyRequest.js +5 -0
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +14 -0
- package/dist/api/client/requests/SearchRequestBodyRequest.js +5 -0
- package/dist/api/client/requests/SubmitCompletionActualsRequestRequest.d.ts +12 -0
- package/dist/api/client/requests/SubmitCompletionActualsRequestRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +3 -0
- package/dist/api/client/requests/index.js +2 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/documents/client/Client.d.ts +20 -0
- package/dist/api/resources/documents/client/Client.js +145 -0
- package/dist/api/resources/documents/client/index.d.ts +1 -0
- package/dist/api/resources/documents/client/index.js +17 -0
- package/dist/api/resources/documents/client/requests/ListDocumentsRequest.d.ts +9 -0
- package/dist/api/resources/documents/client/requests/ListDocumentsRequest.js +5 -0
- package/dist/api/resources/documents/client/requests/UploadDocumentRequestBodyRequest.d.ts +13 -0
- package/dist/api/resources/documents/client/requests/UploadDocumentRequestBodyRequest.js +5 -0
- package/dist/api/resources/documents/client/requests/index.d.ts +2 -0
- package/dist/api/resources/documents/client/requests/index.js +2 -0
- package/dist/api/resources/documents/index.d.ts +1 -0
- package/dist/api/resources/documents/index.js +17 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +32 -0
- package/dist/api/resources/modelVersions/client/Client.d.ts +17 -0
- package/dist/api/resources/modelVersions/client/Client.js +80 -0
- package/dist/api/resources/modelVersions/client/index.d.ts +1 -0
- package/dist/api/resources/modelVersions/client/index.js +2 -0
- package/dist/api/resources/modelVersions/index.d.ts +1 -0
- package/dist/api/resources/modelVersions/index.js +17 -0
- package/dist/api/types/BlockTypeEnum.d.ts +10 -0
- package/dist/api/types/BlockTypeEnum.js +12 -0
- package/dist/api/types/ChatRoleEnum.d.ts +9 -0
- package/dist/api/types/ChatRoleEnum.js +11 -0
- package/dist/api/types/Document.d.ts +11 -0
- package/dist/api/types/Document.js +5 -0
- package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +12 -0
- package/dist/api/types/DocumentDocumentToDocumentIndex.js +5 -0
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +18 -0
- package/dist/api/types/EnrichedNormalizedCompletion.js +5 -0
- package/dist/api/types/FinishReasonEnum.d.ts +9 -0
- package/dist/api/types/FinishReasonEnum.js +11 -0
- package/dist/api/types/GenerateErrorResponse.d.ts +7 -0
- package/dist/api/types/GenerateErrorResponse.js +5 -0
- package/dist/api/types/GenerateOptionsRequest.d.ts +8 -0
- package/dist/api/types/GenerateOptionsRequest.js +5 -0
- package/dist/api/types/GenerateRequestRequest.d.ts +9 -0
- package/dist/api/types/GenerateRequestRequest.js +5 -0
- package/dist/api/types/GenerateResponse.d.ts +8 -0
- package/dist/api/types/GenerateResponse.js +5 -0
- package/dist/api/types/GenerateResult.d.ts +10 -0
- package/dist/api/types/GenerateResult.js +5 -0
- package/dist/api/types/GenerateResultData.d.ts +8 -0
- package/dist/api/types/GenerateResultData.js +5 -0
- package/dist/api/types/GenerateResultError.d.ts +7 -0
- package/dist/api/types/GenerateResultError.js +5 -0
- package/dist/api/types/IndexingStateEnum.d.ts +11 -0
- package/dist/api/types/IndexingStateEnum.js +13 -0
- package/dist/api/types/LogprobsEnum.d.ts +8 -0
- package/dist/api/types/LogprobsEnum.js +10 -0
- package/dist/api/types/ModelTypeEnum.d.ts +8 -0
- package/dist/api/types/ModelTypeEnum.js +10 -0
- package/dist/api/types/ModelVersionBuildConfig.d.ts +10 -0
- package/dist/api/types/ModelVersionBuildConfig.js +5 -0
- package/dist/api/types/ModelVersionExecConfigParameters.d.ts +13 -0
- package/dist/api/types/ModelVersionExecConfigParameters.js +5 -0
- package/dist/api/types/ModelVersionExecConfigRead.d.ts +13 -0
- package/dist/api/types/ModelVersionExecConfigRead.js +5 -0
- package/dist/api/types/ModelVersionRead.d.ts +23 -0
- package/dist/api/types/ModelVersionRead.js +5 -0
- package/dist/api/types/ModelVersionReadStatusEnum.d.ts +10 -0
- package/dist/api/types/ModelVersionReadStatusEnum.js +12 -0
- package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +9 -0
- package/dist/api/types/ModelVersionSandboxSnapshot.js +5 -0
- package/dist/api/types/NormalizedLogProbs.d.ts +8 -0
- package/dist/api/types/NormalizedLogProbs.js +5 -0
- package/dist/api/types/NormalizedTokenLogProbs.d.ts +9 -0
- package/dist/api/types/NormalizedTokenLogProbs.js +5 -0
- package/dist/api/types/PaginatedSlimDocumentList.d.ts +10 -0
- package/dist/api/types/PaginatedSlimDocumentList.js +5 -0
- package/dist/api/types/ProcessingStateEnum.d.ts +10 -0
- package/dist/api/types/ProcessingStateEnum.js +12 -0
- package/dist/api/types/PromptTemplateBlock.d.ts +8 -0
- package/dist/api/types/PromptTemplateBlock.js +5 -0
- package/dist/api/types/PromptTemplateBlockData.d.ts +8 -0
- package/dist/api/types/PromptTemplateBlockData.js +5 -0
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +10 -0
- package/dist/api/types/PromptTemplateBlockProperties.js +5 -0
- package/dist/api/types/ProviderEnum.d.ts +12 -0
- package/dist/api/types/ProviderEnum.js +14 -0
- package/dist/api/types/SearchErrorResponse.d.ts +7 -0
- package/dist/api/types/SearchErrorResponse.js +5 -0
- package/dist/api/types/SearchFiltersRequest.d.ts +7 -0
- package/dist/api/types/SearchFiltersRequest.js +5 -0
- package/dist/api/types/SearchRequestOptionsRequest.d.ts +14 -0
- package/dist/api/types/SearchRequestOptionsRequest.js +5 -0
- package/dist/api/types/SearchResponse.d.ts +8 -0
- package/dist/api/types/SearchResponse.js +5 -0
- package/dist/api/types/SearchResult.d.ts +13 -0
- package/dist/api/types/SearchResult.js +5 -0
- package/dist/api/types/SearchResultMergingRequest.d.ts +7 -0
- package/dist/api/types/SearchResultMergingRequest.js +5 -0
- package/dist/api/types/SearchWeightsRequest.d.ts +9 -0
- package/dist/api/types/SearchWeightsRequest.js +5 -0
- package/dist/api/types/SlimDocument.d.ts +21 -0
- package/dist/api/types/SlimDocument.js +5 -0
- package/dist/api/types/SlimDocumentStatusEnum.d.ts +7 -0
- package/dist/api/types/SlimDocumentStatusEnum.js +9 -0
- package/dist/api/types/SubmitCompletionActualRequest.d.ts +15 -0
- package/dist/api/types/SubmitCompletionActualRequest.js +5 -0
- package/dist/api/types/SubmitCompletionActualsErrorResponse.d.ts +6 -0
- package/dist/api/types/SubmitCompletionActualsErrorResponse.js +5 -0
- package/dist/api/types/UploadDocumentErrorResponse.d.ts +6 -0
- package/dist/api/types/UploadDocumentErrorResponse.js +5 -0
- package/dist/api/types/UploadDocumentResponse.d.ts +7 -0
- package/dist/api/types/UploadDocumentResponse.js +5 -0
- package/dist/api/types/index.d.ts +43 -0
- package/dist/api/types/index.js +59 -0
- package/dist/core/fetcher/APIResponse.d.ts +9 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +36 -0
- package/dist/core/fetcher/Fetcher.js +87 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +13 -0
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -0
- package/dist/core/form-data-utils/getFormDataContentLength.d.ts +2 -0
- package/dist/core/form-data-utils/getFormDataContentLength.js +16 -0
- package/dist/core/form-data-utils/index.d.ts +1 -0
- package/dist/core/form-data-utils/index.js +5 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +32 -0
- package/dist/core/schemas/Schema.d.ts +62 -0
- package/dist/core/schemas/Schema.js +20 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +55 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +29 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +13 -0
- package/dist/core/schemas/builders/index.js +29 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +2 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +28 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +53 -0
- package/dist/core/schemas/builders/literals/index.d.ts +1 -0
- package/dist/core/schemas/builders/literals/index.js +5 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +28 -0
- package/dist/core/schemas/builders/object/index.d.ts +3 -0
- package/dist/core/schemas/builders/object/index.js +9 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +237 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +62 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +24 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +24 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +24 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +91 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +13 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +13 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +3 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +44 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +37 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +3 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +120 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +18 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +2 -0
- package/dist/core/schemas/utils/isPlainObject.js +19 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/environments.d.ts +16 -0
- package/dist/environments.js +13 -0
- package/dist/errors/VellumError.d.ts +12 -0
- package/dist/errors/VellumError.js +21 -0
- package/dist/errors/VellumTimeoutError.d.ts +6 -0
- package/dist/errors/VellumTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -0
- package/dist/serialization/client/index.d.ts +1 -0
- package/dist/serialization/client/index.js +17 -0
- package/dist/serialization/client/requests/GenerateRequestBodyRequest.d.ts +15 -0
- package/dist/serialization/client/requests/GenerateRequestBodyRequest.js +36 -0
- package/dist/serialization/client/requests/SearchRequestBodyRequest.d.ts +15 -0
- package/dist/serialization/client/requests/SearchRequestBodyRequest.js +36 -0
- package/dist/serialization/client/requests/SubmitCompletionActualsRequestRequest.d.ts +14 -0
- package/dist/serialization/client/requests/SubmitCompletionActualsRequestRequest.js +35 -0
- package/dist/serialization/client/requests/index.d.ts +3 -0
- package/dist/serialization/client/requests/index.js +9 -0
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/types/BlockTypeEnum.d.ts +10 -0
- package/dist/serialization/types/BlockTypeEnum.js +31 -0
- package/dist/serialization/types/ChatRoleEnum.d.ts +10 -0
- package/dist/serialization/types/ChatRoleEnum.js +31 -0
- package/dist/serialization/types/Document.d.ts +14 -0
- package/dist/serialization/types/Document.js +35 -0
- package/dist/serialization/types/DocumentDocumentToDocumentIndex.d.ts +14 -0
- package/dist/serialization/types/DocumentDocumentToDocumentIndex.js +35 -0
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +17 -0
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +38 -0
- package/dist/serialization/types/FinishReasonEnum.d.ts +10 -0
- package/dist/serialization/types/FinishReasonEnum.js +31 -0
- package/dist/serialization/types/GenerateErrorResponse.d.ts +12 -0
- package/dist/serialization/types/GenerateErrorResponse.js +33 -0
- package/dist/serialization/types/GenerateOptionsRequest.d.ts +12 -0
- package/dist/serialization/types/GenerateOptionsRequest.js +33 -0
- package/dist/serialization/types/GenerateRequestRequest.d.ts +13 -0
- package/dist/serialization/types/GenerateRequestRequest.js +34 -0
- package/dist/serialization/types/GenerateResponse.d.ts +12 -0
- package/dist/serialization/types/GenerateResponse.js +33 -0
- package/dist/serialization/types/GenerateResult.d.ts +13 -0
- package/dist/serialization/types/GenerateResult.js +34 -0
- package/dist/serialization/types/GenerateResultData.d.ts +12 -0
- package/dist/serialization/types/GenerateResultData.js +33 -0
- package/dist/serialization/types/GenerateResultError.d.ts +12 -0
- package/dist/serialization/types/GenerateResultError.js +33 -0
- package/dist/serialization/types/IndexingStateEnum.d.ts +10 -0
- package/dist/serialization/types/IndexingStateEnum.js +31 -0
- package/dist/serialization/types/LogprobsEnum.d.ts +10 -0
- package/dist/serialization/types/LogprobsEnum.js +31 -0
- package/dist/serialization/types/ModelTypeEnum.d.ts +10 -0
- package/dist/serialization/types/ModelTypeEnum.js +31 -0
- package/dist/serialization/types/ModelVersionBuildConfig.d.ts +13 -0
- package/dist/serialization/types/ModelVersionBuildConfig.js +34 -0
- package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +19 -0
- package/dist/serialization/types/ModelVersionExecConfigParameters.js +40 -0
- package/dist/serialization/types/ModelVersionExecConfigRead.d.ts +15 -0
- package/dist/serialization/types/ModelVersionExecConfigRead.js +36 -0
- package/dist/serialization/types/ModelVersionRead.d.ts +20 -0
- package/dist/serialization/types/ModelVersionRead.js +41 -0
- package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +10 -0
- package/dist/serialization/types/ModelVersionReadStatusEnum.js +31 -0
- package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +13 -0
- package/dist/serialization/types/ModelVersionSandboxSnapshot.js +34 -0
- package/dist/serialization/types/NormalizedLogProbs.d.ts +13 -0
- package/dist/serialization/types/NormalizedLogProbs.js +34 -0
- package/dist/serialization/types/NormalizedTokenLogProbs.d.ts +15 -0
- package/dist/serialization/types/NormalizedTokenLogProbs.js +36 -0
- package/dist/serialization/types/PaginatedSlimDocumentList.d.ts +15 -0
- package/dist/serialization/types/PaginatedSlimDocumentList.js +38 -0
- package/dist/serialization/types/ProcessingStateEnum.d.ts +10 -0
- package/dist/serialization/types/ProcessingStateEnum.js +31 -0
- package/dist/serialization/types/PromptTemplateBlock.d.ts +13 -0
- package/dist/serialization/types/PromptTemplateBlock.js +34 -0
- package/dist/serialization/types/PromptTemplateBlockData.d.ts +13 -0
- package/dist/serialization/types/PromptTemplateBlockData.js +34 -0
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +15 -0
- package/dist/serialization/types/PromptTemplateBlockProperties.js +38 -0
- package/dist/serialization/types/ProviderEnum.d.ts +10 -0
- package/dist/serialization/types/ProviderEnum.js +31 -0
- package/dist/serialization/types/SearchErrorResponse.d.ts +12 -0
- package/dist/serialization/types/SearchErrorResponse.js +33 -0
- package/dist/serialization/types/SearchFiltersRequest.d.ts +12 -0
- package/dist/serialization/types/SearchFiltersRequest.js +33 -0
- package/dist/serialization/types/SearchRequestOptionsRequest.d.ts +15 -0
- package/dist/serialization/types/SearchRequestOptionsRequest.js +36 -0
- package/dist/serialization/types/SearchResponse.d.ts +12 -0
- package/dist/serialization/types/SearchResponse.js +33 -0
- package/dist/serialization/types/SearchResult.d.ts +15 -0
- package/dist/serialization/types/SearchResult.js +36 -0
- package/dist/serialization/types/SearchResultMergingRequest.d.ts +12 -0
- package/dist/serialization/types/SearchResultMergingRequest.js +33 -0
- package/dist/serialization/types/SearchWeightsRequest.d.ts +13 -0
- package/dist/serialization/types/SearchWeightsRequest.js +34 -0
- package/dist/serialization/types/SlimDocument.d.ts +19 -0
- package/dist/serialization/types/SlimDocument.js +40 -0
- package/dist/serialization/types/SlimDocumentStatusEnum.d.ts +10 -0
- package/dist/serialization/types/SlimDocumentStatusEnum.js +31 -0
- package/dist/serialization/types/SubmitCompletionActualRequest.d.ts +16 -0
- package/dist/serialization/types/SubmitCompletionActualRequest.js +37 -0
- package/dist/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +12 -0
- package/dist/serialization/types/SubmitCompletionActualsErrorResponse.js +33 -0
- package/dist/serialization/types/UploadDocumentErrorResponse.d.ts +12 -0
- package/dist/serialization/types/UploadDocumentErrorResponse.js +33 -0
- package/dist/serialization/types/UploadDocumentResponse.d.ts +12 -0
- package/dist/serialization/types/UploadDocumentResponse.js +33 -0
- package/dist/serialization/types/index.d.ts +43 -0
- package/dist/serialization/types/index.js +59 -0
- package/environments.d.ts +16 -0
- package/environments.js +13 -0
- package/errors/VellumError.d.ts +12 -0
- package/errors/VellumError.js +21 -0
- package/errors/VellumTimeoutError.d.ts +6 -0
- package/errors/VellumTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/package.json +26 -0
- package/serialization/client/index.d.ts +1 -0
- package/serialization/client/index.js +17 -0
- package/serialization/client/requests/GenerateRequestBodyRequest.d.ts +15 -0
- package/serialization/client/requests/GenerateRequestBodyRequest.js +36 -0
- package/serialization/client/requests/SearchRequestBodyRequest.d.ts +15 -0
- package/serialization/client/requests/SearchRequestBodyRequest.js +36 -0
- package/serialization/client/requests/SubmitCompletionActualsRequestRequest.d.ts +14 -0
- package/serialization/client/requests/SubmitCompletionActualsRequestRequest.js +35 -0
- package/serialization/client/requests/index.d.ts +3 -0
- package/serialization/client/requests/index.js +9 -0
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/types/BlockTypeEnum.d.ts +10 -0
- package/serialization/types/BlockTypeEnum.js +31 -0
- package/serialization/types/ChatRoleEnum.d.ts +10 -0
- package/serialization/types/ChatRoleEnum.js +31 -0
- package/serialization/types/Document.d.ts +14 -0
- package/serialization/types/Document.js +35 -0
- package/serialization/types/DocumentDocumentToDocumentIndex.d.ts +14 -0
- package/serialization/types/DocumentDocumentToDocumentIndex.js +35 -0
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +17 -0
- package/serialization/types/EnrichedNormalizedCompletion.js +38 -0
- package/serialization/types/FinishReasonEnum.d.ts +10 -0
- package/serialization/types/FinishReasonEnum.js +31 -0
- package/serialization/types/GenerateErrorResponse.d.ts +12 -0
- package/serialization/types/GenerateErrorResponse.js +33 -0
- package/serialization/types/GenerateOptionsRequest.d.ts +12 -0
- package/serialization/types/GenerateOptionsRequest.js +33 -0
- package/serialization/types/GenerateRequestRequest.d.ts +13 -0
- package/serialization/types/GenerateRequestRequest.js +34 -0
- package/serialization/types/GenerateResponse.d.ts +12 -0
- package/serialization/types/GenerateResponse.js +33 -0
- package/serialization/types/GenerateResult.d.ts +13 -0
- package/serialization/types/GenerateResult.js +34 -0
- package/serialization/types/GenerateResultData.d.ts +12 -0
- package/serialization/types/GenerateResultData.js +33 -0
- package/serialization/types/GenerateResultError.d.ts +12 -0
- package/serialization/types/GenerateResultError.js +33 -0
- package/serialization/types/IndexingStateEnum.d.ts +10 -0
- package/serialization/types/IndexingStateEnum.js +31 -0
- package/serialization/types/LogprobsEnum.d.ts +10 -0
- package/serialization/types/LogprobsEnum.js +31 -0
- package/serialization/types/ModelTypeEnum.d.ts +10 -0
- package/serialization/types/ModelTypeEnum.js +31 -0
- package/serialization/types/ModelVersionBuildConfig.d.ts +13 -0
- package/serialization/types/ModelVersionBuildConfig.js +34 -0
- package/serialization/types/ModelVersionExecConfigParameters.d.ts +19 -0
- package/serialization/types/ModelVersionExecConfigParameters.js +40 -0
- package/serialization/types/ModelVersionExecConfigRead.d.ts +15 -0
- package/serialization/types/ModelVersionExecConfigRead.js +36 -0
- package/serialization/types/ModelVersionRead.d.ts +20 -0
- package/serialization/types/ModelVersionRead.js +41 -0
- package/serialization/types/ModelVersionReadStatusEnum.d.ts +10 -0
- package/serialization/types/ModelVersionReadStatusEnum.js +31 -0
- package/serialization/types/ModelVersionSandboxSnapshot.d.ts +13 -0
- package/serialization/types/ModelVersionSandboxSnapshot.js +34 -0
- package/serialization/types/NormalizedLogProbs.d.ts +13 -0
- package/serialization/types/NormalizedLogProbs.js +34 -0
- package/serialization/types/NormalizedTokenLogProbs.d.ts +15 -0
- package/serialization/types/NormalizedTokenLogProbs.js +36 -0
- package/serialization/types/PaginatedSlimDocumentList.d.ts +15 -0
- package/serialization/types/PaginatedSlimDocumentList.js +38 -0
- package/serialization/types/ProcessingStateEnum.d.ts +10 -0
- package/serialization/types/ProcessingStateEnum.js +31 -0
- package/serialization/types/PromptTemplateBlock.d.ts +13 -0
- package/serialization/types/PromptTemplateBlock.js +34 -0
- package/serialization/types/PromptTemplateBlockData.d.ts +13 -0
- package/serialization/types/PromptTemplateBlockData.js +34 -0
- package/serialization/types/PromptTemplateBlockProperties.d.ts +15 -0
- package/serialization/types/PromptTemplateBlockProperties.js +38 -0
- package/serialization/types/ProviderEnum.d.ts +10 -0
- package/serialization/types/ProviderEnum.js +31 -0
- package/serialization/types/SearchErrorResponse.d.ts +12 -0
- package/serialization/types/SearchErrorResponse.js +33 -0
- package/serialization/types/SearchFiltersRequest.d.ts +12 -0
- package/serialization/types/SearchFiltersRequest.js +33 -0
- package/serialization/types/SearchRequestOptionsRequest.d.ts +15 -0
- package/serialization/types/SearchRequestOptionsRequest.js +36 -0
- package/serialization/types/SearchResponse.d.ts +12 -0
- package/serialization/types/SearchResponse.js +33 -0
- package/serialization/types/SearchResult.d.ts +15 -0
- package/serialization/types/SearchResult.js +36 -0
- package/serialization/types/SearchResultMergingRequest.d.ts +12 -0
- package/serialization/types/SearchResultMergingRequest.js +33 -0
- package/serialization/types/SearchWeightsRequest.d.ts +13 -0
- package/serialization/types/SearchWeightsRequest.js +34 -0
- package/serialization/types/SlimDocument.d.ts +19 -0
- package/serialization/types/SlimDocument.js +40 -0
- package/serialization/types/SlimDocumentStatusEnum.d.ts +10 -0
- package/serialization/types/SlimDocumentStatusEnum.js +31 -0
- package/serialization/types/SubmitCompletionActualRequest.d.ts +16 -0
- package/serialization/types/SubmitCompletionActualRequest.js +37 -0
- package/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +12 -0
- package/serialization/types/SubmitCompletionActualsErrorResponse.js +33 -0
- package/serialization/types/UploadDocumentErrorResponse.d.ts +12 -0
- package/serialization/types/UploadDocumentErrorResponse.js +33 -0
- package/serialization/types/UploadDocumentResponse.d.ts +12 -0
- package/serialization/types/UploadDocumentResponse.js +33 -0
- package/serialization/types/index.d.ts +43 -0
- package/serialization/types/index.js +59 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.modelVersions = exports.documents = void 0;
|
|
30
|
+
exports.documents = __importStar(require("./documents"));
|
|
31
|
+
exports.modelVersions = __importStar(require("./modelVersions"));
|
|
32
|
+
__exportStar(require("./documents/client/requests"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { Vellum } from "../../../..";
|
|
7
|
+
export declare namespace ModelVersions {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.VellumEnvironment | environments.VellumEnvironmentUrls;
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class ModelVersions {
|
|
14
|
+
protected readonly options: ModelVersions.Options;
|
|
15
|
+
constructor(options: ModelVersions.Options);
|
|
16
|
+
retrieve(id: string): Promise<Vellum.ModelVersionRead>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.ModelVersions = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../core"));
|
|
35
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
36
|
+
const serializers = __importStar(require("../../../../serialization"));
|
|
37
|
+
const errors = __importStar(require("../../../../errors"));
|
|
38
|
+
class ModelVersions {
|
|
39
|
+
options;
|
|
40
|
+
constructor(options) {
|
|
41
|
+
this.options = options;
|
|
42
|
+
}
|
|
43
|
+
async retrieve(id) {
|
|
44
|
+
const _response = await core.fetcher({
|
|
45
|
+
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).default, `v1/model-versions/${id}`),
|
|
46
|
+
method: "GET",
|
|
47
|
+
headers: {
|
|
48
|
+
X_API_KEY: await core.Supplier.get(this.options.apiKey),
|
|
49
|
+
},
|
|
50
|
+
contentType: "application/json",
|
|
51
|
+
});
|
|
52
|
+
if (_response.ok) {
|
|
53
|
+
return await serializers.ModelVersionRead.parseOrThrow(_response.body, {
|
|
54
|
+
unrecognizedObjectKeys: "passthrough",
|
|
55
|
+
allowUnrecognizedUnionMembers: true,
|
|
56
|
+
allowUnrecognizedEnumValues: true,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
if (_response.error.reason === "status-code") {
|
|
60
|
+
throw new errors.VellumError({
|
|
61
|
+
statusCode: _response.error.statusCode,
|
|
62
|
+
body: _response.error.body,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
switch (_response.error.reason) {
|
|
66
|
+
case "non-json":
|
|
67
|
+
throw new errors.VellumError({
|
|
68
|
+
statusCode: _response.error.statusCode,
|
|
69
|
+
body: _response.error.rawBody,
|
|
70
|
+
});
|
|
71
|
+
case "timeout":
|
|
72
|
+
throw new errors.VellumTimeoutError();
|
|
73
|
+
case "unknown":
|
|
74
|
+
throw new errors.VellumError({
|
|
75
|
+
message: _response.error.errorMessage,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.ModelVersions = ModelVersions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type BlockTypeEnum = "CHAT_MESSAGE" | "CHAT_HISTORY" | "TEXT" | "VARIABLE";
|
|
5
|
+
export declare const BlockTypeEnum: {
|
|
6
|
+
readonly ChatMessage: "CHAT_MESSAGE";
|
|
7
|
+
readonly ChatHistory: "CHAT_HISTORY";
|
|
8
|
+
readonly Text: "TEXT";
|
|
9
|
+
readonly Variable: "VARIABLE";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BlockTypeEnum = void 0;
|
|
7
|
+
exports.BlockTypeEnum = {
|
|
8
|
+
ChatMessage: "CHAT_MESSAGE",
|
|
9
|
+
ChatHistory: "CHAT_HISTORY",
|
|
10
|
+
Text: "TEXT",
|
|
11
|
+
Variable: "VARIABLE",
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type ChatRoleEnum = "SYSTEM" | "ASSISTANT" | "USER";
|
|
5
|
+
export declare const ChatRoleEnum: {
|
|
6
|
+
readonly System: "SYSTEM";
|
|
7
|
+
readonly Assistant: "ASSISTANT";
|
|
8
|
+
readonly User: "USER";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ChatRoleEnum = void 0;
|
|
7
|
+
exports.ChatRoleEnum = {
|
|
8
|
+
System: "SYSTEM",
|
|
9
|
+
Assistant: "ASSISTANT",
|
|
10
|
+
User: "USER",
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface Document {
|
|
5
|
+
/** The ID of the document. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** The human-readable name for the document. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** The unique ID of the document as represented in an external system and specified when it was originally uploaded. */
|
|
10
|
+
externalId?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Vellum } from "../..";
|
|
5
|
+
export interface DocumentDocumentToDocumentIndex {
|
|
6
|
+
/** Vellum-generated ID that uniquely identifies this link. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Vellum-generated ID that uniquely identifies the index this document is included in. */
|
|
9
|
+
documentIndexId: string;
|
|
10
|
+
/** An enum value representing where this document is along its indexing lifecycle for this index. */
|
|
11
|
+
indexingState?: Vellum.IndexingStateEnum;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Vellum } from "../..";
|
|
5
|
+
export interface EnrichedNormalizedCompletion {
|
|
6
|
+
/** The Vellum-generated ID of the completion. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** The external ID that was originally provided along with the generation request, which uniquely identifies this generation in an external system. */
|
|
9
|
+
externalId?: string;
|
|
10
|
+
/** The text generated by the LLM. */
|
|
11
|
+
text: string;
|
|
12
|
+
/** The reason the generation finished. */
|
|
13
|
+
finishReason: Vellum.FinishReasonEnum;
|
|
14
|
+
/** The logprobs of the completion. Only present if specified in the original request options. */
|
|
15
|
+
logprobs?: Vellum.NormalizedLogProbs;
|
|
16
|
+
/** The ID of the model version used to generate this completion. */
|
|
17
|
+
modelVersionId: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type FinishReasonEnum = "LENGTH" | "STOP" | "UNKNOWN";
|
|
5
|
+
export declare const FinishReasonEnum: {
|
|
6
|
+
readonly Length: "LENGTH";
|
|
7
|
+
readonly Stop: "STOP";
|
|
8
|
+
readonly Unknown: "UNKNOWN";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FinishReasonEnum = void 0;
|
|
7
|
+
exports.FinishReasonEnum = {
|
|
8
|
+
Length: "LENGTH",
|
|
9
|
+
Stop: "STOP",
|
|
10
|
+
Unknown: "UNKNOWN",
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface GenerateRequestRequest {
|
|
5
|
+
/** Key/value pairs for each template variable defined in the deployment's prompt. */
|
|
6
|
+
inputValues: Record<string, unknown>;
|
|
7
|
+
/** Optionally include a unique identifier for each generation, as represented outside of Vellum. Note that this should generally be a list of length one. */
|
|
8
|
+
externalIds?: string[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Vellum } from "../..";
|
|
5
|
+
export interface GenerateResult {
|
|
6
|
+
/** An object containing the resulting generation. This key will be absent if the LLM provider experienced an error. */
|
|
7
|
+
data?: Vellum.GenerateResultData;
|
|
8
|
+
/** An object containing details about the error that occurred. This key will be absent if the LLM provider did not experience an error. */
|
|
9
|
+
error?: Vellum.GenerateResultError;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Vellum } from "../..";
|
|
5
|
+
export interface GenerateResultData {
|
|
6
|
+
/** The generated completions. This will generally be a list of length one. */
|
|
7
|
+
completions: Vellum.EnrichedNormalizedCompletion[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type IndexingStateEnum = "AWAITING_PROCESSING" | "QUEUED" | "INDEXING" | "INDEXED" | "FAILED";
|
|
5
|
+
export declare const IndexingStateEnum: {
|
|
6
|
+
readonly AwaitingProcessing: "AWAITING_PROCESSING";
|
|
7
|
+
readonly Queued: "QUEUED";
|
|
8
|
+
readonly Indexing: "INDEXING";
|
|
9
|
+
readonly Indexed: "INDEXED";
|
|
10
|
+
readonly Failed: "FAILED";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IndexingStateEnum = void 0;
|
|
7
|
+
exports.IndexingStateEnum = {
|
|
8
|
+
AwaitingProcessing: "AWAITING_PROCESSING",
|
|
9
|
+
Queued: "QUEUED",
|
|
10
|
+
Indexing: "INDEXING",
|
|
11
|
+
Indexed: "INDEXED",
|
|
12
|
+
Failed: "FAILED",
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ModelTypeEnum = void 0;
|
|
7
|
+
exports.ModelTypeEnum = {
|
|
8
|
+
Generate: "GENERATE",
|
|
9
|
+
Classify: "CLASSIFY",
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Vellum } from "../..";
|
|
5
|
+
export interface ModelVersionBuildConfig {
|
|
6
|
+
/** The name of the base model used to create this model version, as identified by the LLM provider. */
|
|
7
|
+
baseModel: string;
|
|
8
|
+
/** Information about the sandbox snapshot that was used to create this model version, if applicable. */
|
|
9
|
+
sandboxSnapshot?: Vellum.ModelVersionSandboxSnapshot;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ModelVersionExecConfigParameters {
|
|
5
|
+
temperature: number;
|
|
6
|
+
maxTokens: number;
|
|
7
|
+
stop: string[];
|
|
8
|
+
topP: number;
|
|
9
|
+
topK?: number;
|
|
10
|
+
frequencyPenalty: number;
|
|
11
|
+
presencePenalty: number;
|
|
12
|
+
logitBias?: Record<string, number | undefined>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Vellum } from "../..";
|
|
5
|
+
export interface ModelVersionExecConfigRead {
|
|
6
|
+
/** The generation parameters that are passed to the LLM provider at runtime. */
|
|
7
|
+
parameters: Vellum.ModelVersionExecConfigParameters;
|
|
8
|
+
/** Names of the template variables specified in the prompt template. */
|
|
9
|
+
inputVariables: string[];
|
|
10
|
+
/** The template used to generate prompts for this model version. */
|
|
11
|
+
promptTemplate: string;
|
|
12
|
+
promptBlockData?: Vellum.PromptTemplateBlockData;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Vellum } from "../..";
|
|
5
|
+
export interface ModelVersionRead {
|
|
6
|
+
/** Vellum-generated ID that uniquely identifies this model version. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Timestamp of when this model version was created. */
|
|
9
|
+
created: string;
|
|
10
|
+
/** Human-friendly name for this model version. */
|
|
11
|
+
label: string;
|
|
12
|
+
/** The type of task this model is used for. */
|
|
13
|
+
modelType: Vellum.ModelTypeEnum;
|
|
14
|
+
/** Which LLM provider this model version is associated with. */
|
|
15
|
+
provider: Vellum.ProviderEnum;
|
|
16
|
+
/** The unique id of this model version as it exists in the above provider's system. */
|
|
17
|
+
externalId: string;
|
|
18
|
+
/** Configuration used to build this model version. */
|
|
19
|
+
buildConfig: Vellum.ModelVersionBuildConfig;
|
|
20
|
+
/** Configuration used to execute this model version. */
|
|
21
|
+
execConfig: Vellum.ModelVersionExecConfigRead;
|
|
22
|
+
status?: Vellum.ModelVersionReadStatusEnum;
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type ModelVersionReadStatusEnum = "CREATING" | "READY" | "CREATION_FAILED" | "DISABLED";
|
|
5
|
+
export declare const ModelVersionReadStatusEnum: {
|
|
6
|
+
readonly Creating: "CREATING";
|
|
7
|
+
readonly Ready: "READY";
|
|
8
|
+
readonly CreationFailed: "CREATION_FAILED";
|
|
9
|
+
readonly Disabled: "DISABLED";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ModelVersionReadStatusEnum = void 0;
|
|
7
|
+
exports.ModelVersionReadStatusEnum = {
|
|
8
|
+
Creating: "CREATING",
|
|
9
|
+
Ready: "READY",
|
|
10
|
+
CreationFailed: "CREATION_FAILED",
|
|
11
|
+
Disabled: "DISABLED",
|
|
12
|
+
};
|