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,40 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ModelVersionExecConfigParameters = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ModelVersionExecConfigParameters = core.serialization.object({
|
|
32
|
+
temperature: core.serialization.number(),
|
|
33
|
+
maxTokens: core.serialization.property("max_tokens", core.serialization.number()),
|
|
34
|
+
stop: core.serialization.list(core.serialization.string()),
|
|
35
|
+
topP: core.serialization.property("top_p", core.serialization.number()),
|
|
36
|
+
topK: core.serialization.property("top_k", core.serialization.number().optional()),
|
|
37
|
+
frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number()),
|
|
38
|
+
presencePenalty: core.serialization.property("presence_penalty", core.serialization.number()),
|
|
39
|
+
logitBias: core.serialization.property("logit_bias", core.serialization.record(core.serialization.string(), core.serialization.number().optional()).optional()),
|
|
40
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ModelVersionExecConfigRead: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigRead.Raw, Vellum.ModelVersionExecConfigRead>;
|
|
8
|
+
export declare namespace ModelVersionExecConfigRead {
|
|
9
|
+
interface Raw {
|
|
10
|
+
parameters: serializers.ModelVersionExecConfigParameters.Raw;
|
|
11
|
+
input_variables: string[];
|
|
12
|
+
prompt_template: string;
|
|
13
|
+
prompt_block_data?: serializers.PromptTemplateBlockData.Raw | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ModelVersionExecConfigRead = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ModelVersionExecConfigRead = core.serialization.object({
|
|
32
|
+
parameters: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfigParameters),
|
|
33
|
+
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.string())),
|
|
34
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string()),
|
|
35
|
+
promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockData).optional()),
|
|
36
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ModelVersionRead: core.serialization.ObjectSchema<serializers.ModelVersionRead.Raw, Vellum.ModelVersionRead>;
|
|
8
|
+
export declare namespace ModelVersionRead {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
created: string;
|
|
12
|
+
label: string;
|
|
13
|
+
model_type: serializers.ModelTypeEnum.Raw;
|
|
14
|
+
provider: serializers.ProviderEnum.Raw;
|
|
15
|
+
external_id: string;
|
|
16
|
+
build_config: serializers.ModelVersionBuildConfig.Raw;
|
|
17
|
+
exec_config: serializers.ModelVersionExecConfigRead.Raw;
|
|
18
|
+
status?: serializers.ModelVersionReadStatusEnum.Raw | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ModelVersionRead = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ModelVersionRead = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
created: core.serialization.string(),
|
|
34
|
+
label: core.serialization.string(),
|
|
35
|
+
modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeEnum)),
|
|
36
|
+
provider: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProviderEnum),
|
|
37
|
+
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
38
|
+
buildConfig: core.serialization.property("build_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionBuildConfig)),
|
|
39
|
+
execConfig: core.serialization.property("exec_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfigRead)),
|
|
40
|
+
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionReadStatusEnum).optional(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ModelVersionReadStatusEnum: core.serialization.Schema<serializers.ModelVersionReadStatusEnum.Raw, Vellum.ModelVersionReadStatusEnum>;
|
|
8
|
+
export declare namespace ModelVersionReadStatusEnum {
|
|
9
|
+
type Raw = "CREATING" | "READY" | "CREATION_FAILED" | "DISABLED";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ModelVersionReadStatusEnum = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ModelVersionReadStatusEnum = core.serialization.enum_(["CREATING", "READY", "CREATION_FAILED", "DISABLED"]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ModelVersionSandboxSnapshot: core.serialization.ObjectSchema<serializers.ModelVersionSandboxSnapshot.Raw, Vellum.ModelVersionSandboxSnapshot>;
|
|
8
|
+
export declare namespace ModelVersionSandboxSnapshot {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
prompt_index: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ModelVersionSandboxSnapshot = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ModelVersionSandboxSnapshot = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
promptIndex: core.serialization.property("prompt_index", core.serialization.number()),
|
|
34
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const NormalizedLogProbs: core.serialization.ObjectSchema<serializers.NormalizedLogProbs.Raw, Vellum.NormalizedLogProbs>;
|
|
8
|
+
export declare namespace NormalizedLogProbs {
|
|
9
|
+
interface Raw {
|
|
10
|
+
tokens: serializers.NormalizedTokenLogProbs.Raw[];
|
|
11
|
+
likelihood: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.NormalizedLogProbs = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.NormalizedLogProbs = core.serialization.object({
|
|
32
|
+
tokens: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedTokenLogProbs)),
|
|
33
|
+
likelihood: core.serialization.number(),
|
|
34
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const NormalizedTokenLogProbs: core.serialization.ObjectSchema<serializers.NormalizedTokenLogProbs.Raw, Vellum.NormalizedTokenLogProbs>;
|
|
8
|
+
export declare namespace NormalizedTokenLogProbs {
|
|
9
|
+
interface Raw {
|
|
10
|
+
token: string;
|
|
11
|
+
logprob: number;
|
|
12
|
+
top_logprobs: Record<string, number>;
|
|
13
|
+
text_offset: number;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.NormalizedTokenLogProbs = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.NormalizedTokenLogProbs = core.serialization.object({
|
|
32
|
+
token: core.serialization.string(),
|
|
33
|
+
logprob: core.serialization.number(),
|
|
34
|
+
topLogprobs: core.serialization.property("top_logprobs", core.serialization.record(core.serialization.string(), core.serialization.number())),
|
|
35
|
+
textOffset: core.serialization.property("text_offset", core.serialization.number()),
|
|
36
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PaginatedSlimDocumentList: core.serialization.ObjectSchema<serializers.PaginatedSlimDocumentList.Raw, Vellum.PaginatedSlimDocumentList>;
|
|
8
|
+
export declare namespace PaginatedSlimDocumentList {
|
|
9
|
+
interface Raw {
|
|
10
|
+
count?: number | null;
|
|
11
|
+
next?: string | null;
|
|
12
|
+
previous?: string | null;
|
|
13
|
+
results?: serializers.SlimDocument.Raw[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PaginatedSlimDocumentList = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PaginatedSlimDocumentList = core.serialization.object({
|
|
32
|
+
count: core.serialization.number().optional(),
|
|
33
|
+
next: core.serialization.string().optional(),
|
|
34
|
+
previous: core.serialization.string().optional(),
|
|
35
|
+
results: core.serialization
|
|
36
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SlimDocument))
|
|
37
|
+
.optional(),
|
|
38
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ProcessingStateEnum: core.serialization.Schema<serializers.ProcessingStateEnum.Raw, Vellum.ProcessingStateEnum>;
|
|
8
|
+
export declare namespace ProcessingStateEnum {
|
|
9
|
+
type Raw = "QUEUED" | "PROCESSING" | "PROCESSED" | "FAILED";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ProcessingStateEnum = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ProcessingStateEnum = core.serialization.enum_(["QUEUED", "PROCESSING", "PROCESSED", "FAILED"]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PromptTemplateBlock: core.serialization.ObjectSchema<serializers.PromptTemplateBlock.Raw, Vellum.PromptTemplateBlock>;
|
|
8
|
+
export declare namespace PromptTemplateBlock {
|
|
9
|
+
interface Raw {
|
|
10
|
+
block_type: serializers.BlockTypeEnum.Raw;
|
|
11
|
+
properties: serializers.PromptTemplateBlockProperties.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PromptTemplateBlock = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptTemplateBlock = core.serialization.object({
|
|
32
|
+
blockType: core.serialization.property("block_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).BlockTypeEnum)),
|
|
33
|
+
properties: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockProperties),
|
|
34
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PromptTemplateBlockData: core.serialization.ObjectSchema<serializers.PromptTemplateBlockData.Raw, Vellum.PromptTemplateBlockData>;
|
|
8
|
+
export declare namespace PromptTemplateBlockData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
version: number;
|
|
11
|
+
blocks: serializers.PromptTemplateBlock.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PromptTemplateBlockData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptTemplateBlockData = core.serialization.object({
|
|
32
|
+
version: core.serialization.number(),
|
|
33
|
+
blocks: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlock)),
|
|
34
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PromptTemplateBlockProperties: core.serialization.ObjectSchema<serializers.PromptTemplateBlockProperties.Raw, Vellum.PromptTemplateBlockProperties>;
|
|
8
|
+
export declare namespace PromptTemplateBlockProperties {
|
|
9
|
+
interface Raw {
|
|
10
|
+
chat_role?: serializers.ChatRoleEnum.Raw | null;
|
|
11
|
+
text?: string | null;
|
|
12
|
+
variable_name?: string | null;
|
|
13
|
+
blocks?: Record<string, unknown>[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PromptTemplateBlockProperties = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptTemplateBlockProperties = core.serialization.object({
|
|
32
|
+
chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatRoleEnum).optional()),
|
|
33
|
+
text: core.serialization.string().optional(),
|
|
34
|
+
variableName: core.serialization.property("variable_name", core.serialization.string().optional()),
|
|
35
|
+
blocks: core.serialization
|
|
36
|
+
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
37
|
+
.optional(),
|
|
38
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import { Vellum } from "../..";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ProviderEnum: core.serialization.Schema<serializers.ProviderEnum.Raw, Vellum.ProviderEnum>;
|
|
8
|
+
export declare namespace ProviderEnum {
|
|
9
|
+
type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "OPENAI" | "PYQ";
|
|
10
|
+
}
|