@gemina/sdk 0.3.0 → 0.3.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/dist/index.d.cts CHANGED
@@ -10463,7 +10463,9 @@ interface GeminaClientOptions {
10463
10463
  * A document to process: a `Blob`/`File` (uploaded via multipart
10464
10464
  * `POST /v1/documents/requests`) or a `{ url }` reference (submitted via
10465
10465
  * `POST /v1/documents/requests/web`). In Node, wrap a `Buffer` with
10466
- * `new Blob([buf])`.
10466
+ * `new Blob([buf])` — a filename and content type are derived automatically
10467
+ * from the data's magic bytes when the blob doesn't carry them, so you don't
10468
+ * need to construct a `File` yourself.
10467
10469
  */
10468
10470
  type DocumentSource = Blob | {
10469
10471
  url: string;
@@ -10645,6 +10647,6 @@ declare class GeminaTimeoutError extends GeminaError {
10645
10647
  * client sends NO custom User-Agent header (browsers forbid overriding it).
10646
10648
  * VERSION is exported for consumers and diagnostics only.
10647
10649
  */
10648
- declare const VERSION = "0.3.0";
10650
+ declare const VERSION = "0.3.2";
10649
10651
 
10650
10652
  export { type ActivateTemplateRequest, type AggregateMetaDTO, AggregateMetaDTOFromJSON, AggregateMetaDTOFromJSONTyped, AggregateMetaDTOToJSON, AggregateMetaDTOToJSONTyped, type AggregateMetricDTO, AggregateMetricDTOFieldEnum, AggregateMetricDTOFromJSON, AggregateMetricDTOFromJSONTyped, AggregateMetricDTOOpEnum, AggregateMetricDTOToJSON, AggregateMetricDTOToJSONTyped, type AggregateRowDTO, AggregateRowDTOFromJSON, AggregateRowDTOFromJSONTyped, AggregateRowDTOToJSON, AggregateRowDTOToJSONTyped, type ApiResponse, BASE_PATH, BaseAPI, BillingApi, BlobApiResponse, COLLECTION_FORMATS, type ChangePlanRequest, ChatApi, type ChatQueryInDTO, ChatQueryInDTOFromJSON, ChatQueryInDTOFromJSONTyped, ChatQueryInDTOToJSON, ChatQueryInDTOToJSONTyped, type ChatQueryOutDTO, ChatQueryOutDTOFromJSON, ChatQueryOutDTOFromJSONTyped, ChatQueryOutDTOToJSON, ChatQueryOutDTOToJSONTyped, type ChatQueryRequest, type CheckoutOutDTO, CheckoutOutDTOFromJSON, CheckoutOutDTOFromJSONTyped, CheckoutOutDTOToJSON, CheckoutOutDTOToJSONTyped, type ColumnDefinitionDTO, ColumnDefinitionDTOFromJSON, ColumnDefinitionDTOFromJSONTyped, ColumnDefinitionDTOToJSON, ColumnDefinitionDTOToJSONTyped, type ComparisonSummaryModel, ComparisonSummaryModelFromJSON, ComparisonSummaryModelFromJSONTyped, ComparisonSummaryModelToJSON, ComparisonSummaryModelToJSONTyped, Configuration, type ConfigurationParameters, type Consume, ContactApi, type ContactFormInDTO, ContactFormInDTOFromJSON, ContactFormInDTOFromJSONTyped, ContactFormInDTOToJSON, ContactFormInDTOToJSONTyped, type ContractOutDTO, ContractOutDTOFromJSON, ContractOutDTOFromJSONTyped, ContractOutDTOToJSON, ContractOutDTOToJSONTyped, ContractStatus, ContractStatusFromJSON, ContractStatusFromJSONTyped, ContractStatusToJSON, ContractStatusToJSONTyped, type ConversationOptions, type CountBreakdownModel, CountBreakdownModelFromJSON, CountBreakdownModelFromJSONTyped, CountBreakdownModelToJSON, CountBreakdownModelToJSONTyped, type CreateDocumentProcessingRequestByUserRequest, type CreateDocumentProcessingRequestRequest, type CreateTemplateInDTO, CreateTemplateInDTOFromJSON, CreateTemplateInDTOFromJSONTyped, CreateTemplateInDTOToJSON, CreateTemplateInDTOToJSONTyped, type CreateTemplateRequest, type CreateUploadRequest, type CreateWebDocumentProcessingRequestByUserRequest, type CreateWebDocumentProcessingRequestRequest, CreditMeter, CreditMeterFilter, CreditMeterFilterFromJSON, CreditMeterFilterFromJSONTyped, CreditMeterFilterToJSON, CreditMeterFilterToJSONTyped, CreditMeterFromJSON, CreditMeterFromJSONTyped, CreditMeterToJSON, CreditMeterToJSONTyped, type CreditTransactionListOutDTO, CreditTransactionListOutDTOFromJSON, CreditTransactionListOutDTOFromJSONTyped, CreditTransactionListOutDTOToJSON, CreditTransactionListOutDTOToJSONTyped, type CreditTransactionOutDTO, CreditTransactionOutDTOFromJSON, CreditTransactionOutDTOFromJSONTyped, CreditTransactionOutDTOToJSON, CreditTransactionOutDTOToJSONTyped, CreditTransactionType, CreditTransactionTypeFromJSON, CreditTransactionTypeFromJSONTyped, CreditTransactionTypeToJSON, CreditTransactionTypeToJSONTyped, DEFAULT_BASE_URL, DataCenterRegionModel, DataCenterRegionModelFromJSON, DataCenterRegionModelFromJSONTyped, DataCenterRegionModelToJSON, DataCenterRegionModelToJSONTyped, DataRetentionPeriodModel, DataRetentionPeriodModelFromJSON, DataRetentionPeriodModelFromJSONTyped, DataRetentionPeriodModelToJSON, DataRetentionPeriodModelToJSONTyped, type DeactivateTemplateRequest, DefaultConfig, type DeleteChatSessionRequest, type DeleteTemplateRequest, DocumentApi, type DocumentDataOutDTO, DocumentDataOutDTOFromJSON, DocumentDataOutDTOFromJSONTyped, DocumentDataOutDTOToJSON, DocumentDataOutDTOToJSONTyped, DocumentFileTypeModel, DocumentFileTypeModelFromJSON, DocumentFileTypeModelFromJSONTyped, DocumentFileTypeModelToJSON, DocumentFileTypeModelToJSONTyped, type DocumentMetaOutDTO, DocumentMetaOutDTOFromJSON, DocumentMetaOutDTOFromJSONTyped, DocumentMetaOutDTOToJSON, DocumentMetaOutDTOToJSONTyped, type DocumentPrimaryViewOutDTO, DocumentPrimaryViewOutDTOFromJSON, DocumentPrimaryViewOutDTOFromJSONTyped, DocumentPrimaryViewOutDTOToJSON, DocumentPrimaryViewOutDTOToJSONTyped, type DocumentProcessingMetaOutDTO, DocumentProcessingMetaOutDTOFromJSON, DocumentProcessingMetaOutDTOFromJSONTyped, DocumentProcessingMetaOutDTOToJSON, DocumentProcessingMetaOutDTOToJSONTyped, type DocumentProcessingResultOutDTO, DocumentProcessingResultOutDTOFromJSON, DocumentProcessingResultOutDTOFromJSONTyped, DocumentProcessingResultOutDTOToJSON, DocumentProcessingResultOutDTOToJSONTyped, type DocumentPurgingResultOutDTO, DocumentPurgingResultOutDTOFromJSON, DocumentPurgingResultOutDTOFromJSONTyped, DocumentPurgingResultOutDTOToJSON, DocumentPurgingResultOutDTOToJSONTyped, type DocumentSource, type DocumentViewDataOutDTO, DocumentViewDataOutDTOFromJSON, DocumentViewDataOutDTOFromJSONTyped, DocumentViewDataOutDTOToJSON, DocumentViewDataOutDTOToJSONTyped, type DocumentViewMetaOutDTO, DocumentViewMetaOutDTOFromJSON, DocumentViewMetaOutDTOFromJSONTyped, DocumentViewMetaOutDTOToJSON, DocumentViewMetaOutDTOToJSONTyped, type DocumentViewOutDTO, DocumentViewOutDTOFromJSON, DocumentViewOutDTOFromJSONTyped, DocumentViewOutDTOToJSON, DocumentViewOutDTOToJSONTyped, type DocumentsViewOutDTO, DocumentsViewOutDTOFromJSON, DocumentsViewOutDTOFromJSONTyped, DocumentsViewOutDTOToJSON, DocumentsViewOutDTOToJSONTyped, EnterpriseApi, type EnterpriseTransactionListOutDTO, EnterpriseTransactionListOutDTOFromJSON, EnterpriseTransactionListOutDTOFromJSONTyped, EnterpriseTransactionListOutDTOToJSON, EnterpriseTransactionListOutDTOToJSONTyped, type EnterpriseTransactionOutDTO, EnterpriseTransactionOutDTOFromJSON, EnterpriseTransactionOutDTOFromJSONTyped, EnterpriseTransactionOutDTOToJSON, EnterpriseTransactionOutDTOToJSONTyped, type ErrorContext, type ExtractionCostOutDTO, ExtractionCostOutDTOFromJSON, ExtractionCostOutDTOFromJSONTyped, ExtractionCostOutDTOToJSON, ExtractionCostOutDTOToJSONTyped, type ExtractionCostOutResultDTO, ExtractionCostOutResultDTOFromJSON, ExtractionCostOutResultDTOFromJSONTyped, ExtractionCostOutResultDTOToJSON, ExtractionCostOutResultDTOToJSONTyped, ExtractionCostStateModel, ExtractionCostStateModelFromJSON, ExtractionCostStateModelFromJSONTyped, ExtractionCostStateModelToJSON, ExtractionCostStateModelToJSONTyped, type ExtractionCostsDataOutDTO, ExtractionCostsDataOutDTOFromJSON, ExtractionCostsDataOutDTOFromJSONTyped, ExtractionCostsDataOutDTOToJSON, ExtractionCostsDataOutDTOToJSONTyped, type ExtractionCostsOutDTO, ExtractionCostsOutDTOFromJSON, ExtractionCostsOutDTOFromJSONTyped, ExtractionCostsOutDTOToJSON, ExtractionCostsOutDTOToJSONTyped, type ExtractionDocumentViewMetaOutDTO, ExtractionDocumentViewMetaOutDTOFromJSON, ExtractionDocumentViewMetaOutDTOFromJSONTyped, ExtractionDocumentViewMetaOutDTOToJSON, ExtractionDocumentViewMetaOutDTOToJSONTyped, type ExtractionMetaOutDTO, ExtractionMetaOutDTOFromJSON, ExtractionMetaOutDTOFromJSONTyped, ExtractionMetaOutDTOToJSON, ExtractionMetaOutDTOToJSONTyped, type ExtractionPrimaryViewOutDTO, ExtractionPrimaryViewOutDTOFromJSON, ExtractionPrimaryViewOutDTOFromJSONTyped, ExtractionPrimaryViewOutDTOToJSON, ExtractionPrimaryViewOutDTOToJSONTyped, type ExtractionProcessingResultOutDTO, ExtractionProcessingResultOutDTOFromJSON, ExtractionProcessingResultOutDTOFromJSONTyped, ExtractionProcessingResultOutDTOToJSON, ExtractionProcessingResultOutDTOToJSONTyped, ExtractionTypeModel, ExtractionTypeModelFromJSON, ExtractionTypeModelFromJSONTyped, ExtractionTypeModelToJSON, ExtractionTypeModelToJSONTyped, type ExtractionValidationInDTO, ExtractionValidationInDTOFromJSON, ExtractionValidationInDTOFromJSONTyped, ExtractionValidationInDTOToJSON, ExtractionValidationInDTOToJSONTyped, type ExtractionValidationMetaOutDTO, ExtractionValidationMetaOutDTOFromJSON, ExtractionValidationMetaOutDTOFromJSONTyped, ExtractionValidationMetaOutDTOToJSON, ExtractionValidationMetaOutDTOToJSONTyped, type ExtractionValidationResultOutDTO, ExtractionValidationResultOutDTOFromJSON, ExtractionValidationResultOutDTOFromJSONTyped, ExtractionValidationResultOutDTOToJSON, ExtractionValidationResultOutDTOToJSONTyped, type ExtractionViewDataOutDTO, ExtractionViewDataOutDTOFromJSON, ExtractionViewDataOutDTOFromJSONTyped, ExtractionViewDataOutDTOToJSON, ExtractionViewDataOutDTOToJSONTyped, type ExtractionViewMetaOutDTO, ExtractionViewMetaOutDTOFromJSON, ExtractionViewMetaOutDTOFromJSONTyped, ExtractionViewMetaOutDTOToJSON, ExtractionViewMetaOutDTOToJSONTyped, type ExtractionViewOutDTO, ExtractionViewOutDTOFromJSON, ExtractionViewOutDTOFromJSONTyped, ExtractionViewOutDTOToJSON, ExtractionViewOutDTOToJSONTyped, type ExtractionsViewOutDTO, ExtractionsViewOutDTOFromJSON, ExtractionsViewOutDTOFromJSONTyped, ExtractionsViewOutDTOToJSON, ExtractionsViewOutDTOToJSONTyped, FeatureType, FeatureTypeFromJSON, FeatureTypeFromJSONTyped, FeatureTypeToJSON, FeatureTypeToJSONTyped, type FetchAPI, FetchError, type FetchParams, type FieldDefinitionDTO, FieldDefinitionDTOFromJSON, FieldDefinitionDTOFromJSONTyped, FieldDefinitionDTOToJSON, FieldDefinitionDTOToJSONTyped, type FieldDifferenceModel, FieldDifferenceModelFromJSON, FieldDifferenceModelFromJSONTyped, FieldDifferenceModelToJSON, FieldDifferenceModelToJSONTyped, FieldType, FieldTypeFromJSON, FieldTypeFromJSONTyped, FieldTypeToJSON, FieldTypeToJSONTyped, FileTagApi, type FileTagBalanceOutDTO, FileTagBalanceOutDTOFromJSON, FileTagBalanceOutDTOFromJSONTyped, FileTagBalanceOutDTOToJSON, FileTagBalanceOutDTOToJSONTyped, type FileTagFilenamePatternsOutDTO, FileTagFilenamePatternsOutDTOFromJSON, FileTagFilenamePatternsOutDTOFromJSONTyped, FileTagFilenamePatternsOutDTOToJSON, FileTagFilenamePatternsOutDTOToJSONTyped, type FileTagMetadataOutDTO, FileTagMetadataOutDTOFromJSON, FileTagMetadataOutDTOFromJSONTyped, FileTagMetadataOutDTOToJSON, FileTagMetadataOutDTOToJSONTyped, type FileTagResultOutDTO, FileTagResultOutDTOFromJSON, FileTagResultOutDTOFromJSONTyped, FileTagResultOutDTOToJSON, FileTagResultOutDTOToJSONTyped, FilesApi, type FilesCreateUploadInDTO, FilesCreateUploadInDTOFromJSON, FilesCreateUploadInDTOFromJSONTyped, FilesCreateUploadInDTOToJSON, FilesCreateUploadInDTOToJSONTyped, type FilesNextToolCallOutDTO, FilesNextToolCallOutDTOFromJSON, FilesNextToolCallOutDTOFromJSONTyped, FilesNextToolCallOutDTOToJSON, FilesNextToolCallOutDTOToJSONTyped, FilesNextToolCallOutDTOToolEnum, type FilesUploadDetailsOutDTO, FilesUploadDetailsOutDTOFromJSON, FilesUploadDetailsOutDTOFromJSONTyped, FilesUploadDetailsOutDTOMethodEnum, FilesUploadDetailsOutDTOToJSON, FilesUploadDetailsOutDTOToJSONTyped, type FilesUploadInstructionsOutDTO, FilesUploadInstructionsOutDTOFromJSON, FilesUploadInstructionsOutDTOFromJSONTyped, FilesUploadInstructionsOutDTOToJSON, FilesUploadInstructionsOutDTOToJSONTyped, type FindDocumentExtractionsByUserRequest, type FindDocumentExtractionsRequest, type FindDocumentsByUserRequest, type FindDocumentsRequest, type FoundationDTO, FoundationDTOFromJSON, FoundationDTOFromJSONTyped, FoundationDTOToJSON, FoundationDTOToJSONTyped, type FoundationMetaDTO, FoundationMetaDTOFromJSON, FoundationMetaDTOFromJSONTyped, FoundationMetaDTOToJSON, FoundationMetaDTOToJSONTyped, FreeTierApi, type FreeTierConfigOutDTO, FreeTierConfigOutDTOFromJSON, FreeTierConfigOutDTOFromJSONTyped, FreeTierConfigOutDTOToJSON, FreeTierConfigOutDTOToJSONTyped, GeminaChatConversation, GeminaClient, type GeminaClientApis, type GeminaClientOptions, GeminaError, GeminaProcessingError, GeminaTimeoutError, type GenerateTemplateAsyncRequest, type GenerateTemplateFromUrlAsyncRequest, type GenerateTemplateFromUrlInDTO, GenerateTemplateFromUrlInDTOFromJSON, GenerateTemplateFromUrlInDTOFromJSONTyped, GenerateTemplateFromUrlInDTOToJSON, GenerateTemplateFromUrlInDTOToJSONTyped, type GenerateTemplateFromUrlRequest, type GenerateTemplateRequest, type GetCreditHistoryRequest, type GetDocumentByUserRequest, type GetDocumentExtractionByUserRequest, type GetDocumentExtractionRequest, type GetDocumentProcessingResultByCorrelationIdByUserRequest, type GetDocumentProcessingResultByCorrelationIdRequest, type GetDocumentRequest, type GetExtractionCostRequest, type GetExtractionCostsRequest, type GetInvoicePdfRequest, type GetInvoiceRequest, type GetMyFiletagCreditHistoryRequest, type GetMyTransactionsRequest, type GetMyUsageRequest, type GetPlanRequest, type GetTemplateRequest, type GetUserInvoicesRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type HTTPValidationError, HTTPValidationErrorFromJSON, HTTPValidationErrorFromJSONTyped, HTTPValidationErrorToJSON, HTTPValidationErrorToJSONTyped, type InitOverrideFunction, type InvoiceListOutDTO, InvoiceListOutDTOFromJSON, InvoiceListOutDTOFromJSONTyped, InvoiceListOutDTOToJSON, InvoiceListOutDTOToJSONTyped, type InvoiceOutDTO, InvoiceOutDTOFromJSON, InvoiceOutDTOFromJSONTyped, InvoiceOutDTOToJSON, InvoiceOutDTOToJSONTyped, type InvoicePdfOutDTO, InvoicePdfOutDTOFromJSON, InvoicePdfOutDTOFromJSONTyped, InvoicePdfOutDTOToJSON, InvoicePdfOutDTOToJSONTyped, InvoiceStatus, InvoiceStatusFromJSON, InvoiceStatusFromJSONTyped, InvoiceStatusToJSON, InvoiceStatusToJSONTyped, InvoiceType, InvoiceTypeFromJSON, InvoiceTypeFromJSONTyped, InvoiceTypeToJSON, InvoiceTypeToJSONTyped, JSONApiResponse, type Json, LegalApi, type ListActivePlansRequest, type ListTemplatesByApiKeyRequest, type ListTemplatesRequest, type LocationInner, LocationInnerFromJSON, LocationInnerFromJSONTyped, LocationInnerToJSON, LocationInnerToJSONTyped, type MatchedChunkDTO, MatchedChunkDTOFromJSON, MatchedChunkDTOFromJSONTyped, MatchedChunkDTOToJSON, MatchedChunkDTOToJSONTyped, MetaApi, type Middleware, type MintRetrievalTokenRequest, type MintRetrievalTokenUserRequest, type ModelPropertyNaming, ModelType, ModelTypeFromJSON, ModelTypeFromJSONTyped, ModelTypeToJSON, ModelTypeToJSONTyped, type NextActionOutDTO, NextActionOutDTOActionEnum, NextActionOutDTOFromJSON, NextActionOutDTOFromJSONTyped, NextActionOutDTOToJSON, NextActionOutDTOToJSONTyped, type NumberOfStoredDocumentsOutDTO, NumberOfStoredDocumentsOutDTOFromJSON, NumberOfStoredDocumentsOutDTOFromJSONTyped, NumberOfStoredDocumentsOutDTOToJSON, NumberOfStoredDocumentsOutDTOToJSONTyped, OperationType, OperationTypeFromJSON, OperationTypeFromJSONTyped, OperationTypeToJSON, OperationTypeToJSONTyped, PeriodPresetModel, PeriodPresetModelFromJSON, PeriodPresetModelFromJSONTyped, PeriodPresetModelToJSON, PeriodPresetModelToJSONTyped, type PlanCreditCostOutDTO, PlanCreditCostOutDTOFromJSON, PlanCreditCostOutDTOFromJSONTyped, PlanCreditCostOutDTOToJSON, PlanCreditCostOutDTOToJSONTyped, type PlanDetailOutDTO, PlanDetailOutDTOFromJSON, PlanDetailOutDTOFromJSONTyped, PlanDetailOutDTOToJSON, PlanDetailOutDTOToJSONTyped, type PlanListOutDTO, PlanListOutDTOFromJSON, PlanListOutDTOFromJSONTyped, PlanListOutDTOToJSON, PlanListOutDTOToJSONTyped, type PlanOutDTO, PlanOutDTOFromJSON, PlanOutDTOFromJSONTyped, PlanOutDTOToJSON, PlanOutDTOToJSONTyped, type ProcessDocumentOptions, type PurchaseTopUpRequest, type PurgeDocumentByUserRequest, type PurgeDocumentExtractionByUserRequest, type PurgeDocumentExtractionRequest, type PurgeDocumentRequest, type PurgeDocumentsWithEndUserId422Response, PurgeDocumentsWithEndUserId422ResponseFromJSON, PurgeDocumentsWithEndUserId422ResponseFromJSONTyped, PurgeDocumentsWithEndUserId422ResponseToJSON, PurgeDocumentsWithEndUserId422ResponseToJSONTyped, type PurgeDocumentsWithEndUserIdByUserRequest, type PurgeDocumentsWithEndUserIdRequest, type PurgeDocumentsWithExternalIdByUserRequest, type PurgeDocumentsWithExternalIdRequest, PurgeReasonModel, PurgeReasonModelFromJSON, PurgeReasonModelFromJSONTyped, PurgeReasonModelToJSON, PurgeReasonModelToJSONTyped, type PurgedDocumentsDataOutDTO, PurgedDocumentsDataOutDTOFromJSON, PurgedDocumentsDataOutDTOFromJSONTyped, PurgedDocumentsDataOutDTOToJSON, PurgedDocumentsDataOutDTOToJSONTyped, type QueryMetaDTO, QueryMetaDTOFromJSON, QueryMetaDTOFromJSONTyped, QueryMetaDTOToJSON, QueryMetaDTOToJSONTyped, type QueryResultItemDTO, QueryResultItemDTOFromJSON, QueryResultItemDTOFromJSONTyped, QueryResultItemDTOToJSON, QueryResultItemDTOToJSONTyped, type RateCardOutDTO, RateCardOutDTOFromJSON, RateCardOutDTOFromJSONTyped, RateCardOutDTOToJSON, RateCardOutDTOToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseChangePlan, ResponseChangePlanFromJSON, ResponseChangePlanFromJSONTyped, ResponseChangePlanToJSON, ResponseChangePlanToJSONTyped, type ResponseContext, ResponseError, ResponseStatus, ResponseStatusFromJSON, ResponseStatusFromJSONTyped, ResponseStatusToJSON, ResponseStatusToJSONTyped, type ResponseTransformer, type RetrievalAggregateInDTO, RetrievalAggregateInDTOFromJSON, RetrievalAggregateInDTOFromJSONTyped, RetrievalAggregateInDTOGroupByEnum, RetrievalAggregateInDTOToJSON, RetrievalAggregateInDTOToJSONTyped, type RetrievalAggregateOutDTO, RetrievalAggregateOutDTOFromJSON, RetrievalAggregateOutDTOFromJSONTyped, RetrievalAggregateOutDTOToJSON, RetrievalAggregateOutDTOToJSONTyped, type RetrievalAggregateRequest, RetrievalApi, type RetrievalFieldItemDTO, RetrievalFieldItemDTOFromJSON, RetrievalFieldItemDTOFromJSONTyped, RetrievalFieldItemDTOToJSON, RetrievalFieldItemDTOToJSONTyped, type RetrievalFieldsOutDTO, RetrievalFieldsOutDTOFromJSON, RetrievalFieldsOutDTOFromJSONTyped, RetrievalFieldsOutDTOToJSON, RetrievalFieldsOutDTOToJSONTyped, type RetrievalFiltersDTO, RetrievalFiltersDTOFromJSON, RetrievalFiltersDTOFromJSONTyped, RetrievalFiltersDTOToJSON, RetrievalFiltersDTOToJSONTyped, type RetrievalQueryInDTO, RetrievalQueryInDTOFromJSON, RetrievalQueryInDTOFromJSONTyped, RetrievalQueryInDTOModeEnum, RetrievalQueryInDTOSortFieldEnum, RetrievalQueryInDTOSortMethodEnum, RetrievalQueryInDTOToJSON, RetrievalQueryInDTOToJSONTyped, type RetrievalQueryOutDTO, RetrievalQueryOutDTOFromJSON, RetrievalQueryOutDTOFromJSONTyped, RetrievalQueryOutDTOToJSON, RetrievalQueryOutDTOToJSONTyped, type RetrievalQueryRequest, type RetrievalStatusOutDTO, RetrievalStatusOutDTOFromJSON, RetrievalStatusOutDTOFromJSONTyped, RetrievalStatusOutDTOToJSON, RetrievalStatusOutDTOToJSONTyped, type SessionTokenInDTO, SessionTokenInDTOFromJSON, SessionTokenInDTOFromJSONTyped, SessionTokenInDTOToJSON, SessionTokenInDTOToJSONTyped, type SessionTokenOutDTO, SessionTokenOutDTOFromJSON, SessionTokenOutDTOFromJSONTyped, SessionTokenOutDTOToJSON, SessionTokenOutDTOToJSONTyped, SessionsApi, SortMethodModel, SortMethodModelFromJSON, SortMethodModelFromJSONTyped, SortMethodModelToJSON, SortMethodModelToJSONTyped, type StorageUsageOutDTO, StorageUsageOutDTOFromJSON, StorageUsageOutDTOFromJSONTyped, StorageUsageOutDTOToJSON, StorageUsageOutDTOToJSONTyped, type StructuredFilterDTO, StructuredFilterDTOFromJSON, StructuredFilterDTOFromJSONTyped, StructuredFilterDTOOpEnum, StructuredFilterDTOToJSON, StructuredFilterDTOToJSONTyped, type SubmitContactFormRequest, type SubscribeInDTO, SubscribeInDTOFromJSON, SubscribeInDTOFromJSONTyped, SubscribeInDTOToJSON, SubscribeInDTOToJSONTyped, type SubscribeRequest, type SubscriptionOutDTO, SubscriptionOutDTOFromJSON, SubscriptionOutDTOFromJSONTyped, SubscriptionOutDTOToJSON, SubscriptionOutDTOToJSONTyped, SubscriptionStatus, SubscriptionStatusFromJSON, SubscriptionStatusFromJSONTyped, SubscriptionStatusToJSON, SubscriptionStatusToJSONTyped, SubscriptionsApi, SupportLevel, SupportLevelFromJSON, SupportLevelFromJSONTyped, SupportLevelToJSON, SupportLevelToJSONTyped, type TOSOutDTO, TOSOutDTOFromJSON, TOSOutDTOFromJSONTyped, TOSOutDTOToJSON, TOSOutDTOToJSONTyped, type TableDefinitionDTOInput, TableDefinitionDTOInputFromJSON, TableDefinitionDTOInputFromJSONTyped, TableDefinitionDTOInputToJSON, TableDefinitionDTOInputToJSONTyped, type TagDocumentByUserRequest, type TagDocumentRequest, type TagFileBodyDTO, TagFileBodyDTOFromJSON, TagFileBodyDTOFromJSONTyped, TagFileBodyDTOToJSON, TagFileBodyDTOToJSONTyped, type TagFileRequest, type TagUrlInDTO, TagUrlInDTOFromJSON, TagUrlInDTOFromJSONTyped, TagUrlInDTOToJSON, TagUrlInDTOToJSONTyped, type TagUrlRequest, type TemplateListOutDTO, TemplateListOutDTOFromJSON, TemplateListOutDTOFromJSONTyped, TemplateListOutDTOToJSON, TemplateListOutDTOToJSONTyped, type TemplateOutDTO, TemplateOutDTOFromJSON, TemplateOutDTOFromJSONTyped, TemplateOutDTOToJSON, TemplateOutDTOToJSONTyped, type TemplateSchemaDTOInput, TemplateSchemaDTOInputFromJSON, TemplateSchemaDTOInputFromJSONTyped, TemplateSchemaDTOInputToJSON, TemplateSchemaDTOInputToJSONTyped, type TemplateSchemaDTOOutput, TemplateSchemaDTOOutputFromJSON, TemplateSchemaDTOOutputFromJSONTyped, TemplateSchemaDTOOutputToJSON, TemplateSchemaDTOOutputToJSONTyped, TemplateStatusModel, TemplateStatusModelFromJSON, TemplateStatusModelFromJSONTyped, TemplateStatusModelToJSON, TemplateStatusModelToJSONTyped, TemplatesApi, TextApiResponse, type TopUpPackListOutDTO, TopUpPackListOutDTOFromJSON, TopUpPackListOutDTOFromJSONTyped, TopUpPackListOutDTOToJSON, TopUpPackListOutDTOToJSONTyped, type TopUpPackOutDTO, TopUpPackOutDTOFromJSON, TopUpPackOutDTOFromJSONTyped, TopUpPackOutDTOToJSON, TopUpPackOutDTOToJSONTyped, type TopUpPurchaseInDTO, TopUpPurchaseInDTOFromJSON, TopUpPurchaseInDTOFromJSONTyped, TopUpPurchaseInDTOToJSON, TopUpPurchaseInDTOToJSONTyped, type TopUpPurchaseOutDTO, TopUpPurchaseOutDTOFromJSON, TopUpPurchaseOutDTOFromJSONTyped, TopUpPurchaseOutDTOToJSON, TopUpPurchaseOutDTOToJSONTyped, type UpdateTemplateInDTO, UpdateTemplateInDTOFromJSON, UpdateTemplateInDTOFromJSONTyped, UpdateTemplateInDTOToJSON, UpdateTemplateInDTOToJSONTyped, type UpdateTemplateRequest, type UploadDocumentByUserRequest, type UploadDocumentRequest, UploadExtractionTypeEnum, UploadExtractionTypeEnumFromJSON, UploadExtractionTypeEnumFromJSONTyped, UploadExtractionTypeEnumToJSON, UploadExtractionTypeEnumToJSONTyped, type UploadWebDocumentRequest, type UsageBreakdownListOutDTO, UsageBreakdownListOutDTOFromJSON, UsageBreakdownListOutDTOFromJSONTyped, UsageBreakdownListOutDTOToJSON, UsageBreakdownListOutDTOToJSONTyped, type UsageBreakdownOutDTO, UsageBreakdownOutDTOFromJSON, UsageBreakdownOutDTOFromJSONTyped, UsageBreakdownOutDTOToJSON, UsageBreakdownOutDTOToJSONTyped, type UsageLineItemOutDTO, UsageLineItemOutDTOFromJSON, UsageLineItemOutDTOFromJSONTyped, UsageLineItemOutDTOToJSON, UsageLineItemOutDTOToJSONTyped, type UsageSummaryOutDTO, UsageSummaryOutDTOFromJSON, UsageSummaryOutDTOFromJSONTyped, UsageSummaryOutDTOToJSON, UsageSummaryOutDTOToJSONTyped, VERSION, type ValidateDocumentExtractionRequest, type ValidationError, ValidationErrorFromJSON, ValidationErrorFromJSONTyped, ValidationErrorToJSON, ValidationErrorToJSONTyped, type ValidationSchemaModel, ValidationSchemaModelFromJSON, ValidationSchemaModelFromJSONTyped, ValidationSchemaModelToJSON, ValidationSchemaModelToJSONTyped, type Value, ValueFromJSON, ValueFromJSONTyped, ValueToJSON, ValueToJSONTyped, type ValuesValue, ValuesValueFromJSON, ValuesValueFromJSONTyped, ValuesValueToJSON, ValuesValueToJSONTyped, type ViewMetaOutDTO, ViewMetaOutDTOFromJSON, ViewMetaOutDTOFromJSONTyped, ViewMetaOutDTOToJSON, ViewMetaOutDTOToJSONTyped, VoidApiResponse, type VolumeDiscountTierOutDTO, VolumeDiscountTierOutDTOFromJSON, VolumeDiscountTierOutDTOFromJSONTyped, VolumeDiscountTierOutDTOToJSON, VolumeDiscountTierOutDTOToJSONTyped, type WebDocumentUploadInDTO, WebDocumentUploadInDTOFromJSON, WebDocumentUploadInDTOFromJSONTyped, WebDocumentUploadInDTOToJSON, WebDocumentUploadInDTOToJSONTyped, type WebhookResponseDTO, WebhookResponseDTOFromJSON, WebhookResponseDTOFromJSONTyped, WebhookResponseDTOToJSON, WebhookResponseDTOToJSONTyped, canConsumeForm, exists, instanceOfAggregateMetaDTO, instanceOfAggregateMetricDTO, instanceOfAggregateRowDTO, instanceOfChatQueryInDTO, instanceOfChatQueryOutDTO, instanceOfCheckoutOutDTO, instanceOfColumnDefinitionDTO, instanceOfComparisonSummaryModel, instanceOfContactFormInDTO, instanceOfContractOutDTO, instanceOfContractStatus, instanceOfCountBreakdownModel, instanceOfCreateTemplateInDTO, instanceOfCreditMeter, instanceOfCreditMeterFilter, instanceOfCreditTransactionListOutDTO, instanceOfCreditTransactionOutDTO, instanceOfCreditTransactionType, instanceOfDataCenterRegionModel, instanceOfDataRetentionPeriodModel, instanceOfDocumentDataOutDTO, instanceOfDocumentFileTypeModel, instanceOfDocumentMetaOutDTO, instanceOfDocumentPrimaryViewOutDTO, instanceOfDocumentProcessingMetaOutDTO, instanceOfDocumentProcessingResultOutDTO, instanceOfDocumentPurgingResultOutDTO, instanceOfDocumentViewDataOutDTO, instanceOfDocumentViewMetaOutDTO, instanceOfDocumentViewOutDTO, instanceOfDocumentsViewOutDTO, instanceOfEnterpriseTransactionListOutDTO, instanceOfEnterpriseTransactionOutDTO, instanceOfExtractionCostOutDTO, instanceOfExtractionCostOutResultDTO, instanceOfExtractionCostStateModel, instanceOfExtractionCostsDataOutDTO, instanceOfExtractionCostsOutDTO, instanceOfExtractionDocumentViewMetaOutDTO, instanceOfExtractionMetaOutDTO, instanceOfExtractionPrimaryViewOutDTO, instanceOfExtractionProcessingResultOutDTO, instanceOfExtractionTypeModel, instanceOfExtractionValidationInDTO, instanceOfExtractionValidationMetaOutDTO, instanceOfExtractionValidationResultOutDTO, instanceOfExtractionViewDataOutDTO, instanceOfExtractionViewMetaOutDTO, instanceOfExtractionViewOutDTO, instanceOfExtractionsViewOutDTO, instanceOfFeatureType, instanceOfFieldDefinitionDTO, instanceOfFieldDifferenceModel, instanceOfFieldType, instanceOfFileTagBalanceOutDTO, instanceOfFileTagFilenamePatternsOutDTO, instanceOfFileTagMetadataOutDTO, instanceOfFileTagResultOutDTO, instanceOfFilesCreateUploadInDTO, instanceOfFilesNextToolCallOutDTO, instanceOfFilesUploadDetailsOutDTO, instanceOfFilesUploadInstructionsOutDTO, instanceOfFoundationDTO, instanceOfFoundationMetaDTO, instanceOfFreeTierConfigOutDTO, instanceOfGenerateTemplateFromUrlInDTO, instanceOfHTTPValidationError, instanceOfInvoiceListOutDTO, instanceOfInvoiceOutDTO, instanceOfInvoicePdfOutDTO, instanceOfInvoiceStatus, instanceOfInvoiceType, instanceOfLocationInner, instanceOfMatchedChunkDTO, instanceOfModelType, instanceOfNextActionOutDTO, instanceOfNumberOfStoredDocumentsOutDTO, instanceOfOperationType, instanceOfPeriodPresetModel, instanceOfPlanCreditCostOutDTO, instanceOfPlanDetailOutDTO, instanceOfPlanListOutDTO, instanceOfPlanOutDTO, instanceOfPurgeReasonModel, instanceOfPurgedDocumentsDataOutDTO, instanceOfQueryMetaDTO, instanceOfQueryResultItemDTO, instanceOfRateCardOutDTO, instanceOfResponseChangePlan, instanceOfResponseStatus, instanceOfRetrievalAggregateInDTO, instanceOfRetrievalAggregateOutDTO, instanceOfRetrievalFieldItemDTO, instanceOfRetrievalFieldsOutDTO, instanceOfRetrievalFiltersDTO, instanceOfRetrievalQueryInDTO, instanceOfRetrievalQueryOutDTO, instanceOfRetrievalStatusOutDTO, instanceOfSessionTokenInDTO, instanceOfSessionTokenOutDTO, instanceOfSortMethodModel, instanceOfStorageUsageOutDTO, instanceOfStructuredFilterDTO, instanceOfSubscribeInDTO, instanceOfSubscriptionOutDTO, instanceOfSubscriptionStatus, instanceOfSupportLevel, instanceOfTOSOutDTO, instanceOfTableDefinitionDTOInput, instanceOfTagFileBodyDTO, instanceOfTagUrlInDTO, instanceOfTemplateListOutDTO, instanceOfTemplateOutDTO, instanceOfTemplateSchemaDTOInput, instanceOfTemplateSchemaDTOOutput, instanceOfTemplateStatusModel, instanceOfTopUpPackListOutDTO, instanceOfTopUpPackOutDTO, instanceOfTopUpPurchaseInDTO, instanceOfTopUpPurchaseOutDTO, instanceOfUpdateTemplateInDTO, instanceOfUploadExtractionTypeEnum, instanceOfUsageBreakdownListOutDTO, instanceOfUsageBreakdownOutDTO, instanceOfUsageLineItemOutDTO, instanceOfUsageSummaryOutDTO, instanceOfValidationError, instanceOfValidationSchemaModel, instanceOfValue, instanceOfValuesValue, instanceOfViewMetaOutDTO, instanceOfVolumeDiscountTierOutDTO, instanceOfWebDocumentUploadInDTO, instanceOfWebhookResponseDTO, mapValues, querystring };
package/dist/index.d.ts CHANGED
@@ -10463,7 +10463,9 @@ interface GeminaClientOptions {
10463
10463
  * A document to process: a `Blob`/`File` (uploaded via multipart
10464
10464
  * `POST /v1/documents/requests`) or a `{ url }` reference (submitted via
10465
10465
  * `POST /v1/documents/requests/web`). In Node, wrap a `Buffer` with
10466
- * `new Blob([buf])`.
10466
+ * `new Blob([buf])` — a filename and content type are derived automatically
10467
+ * from the data's magic bytes when the blob doesn't carry them, so you don't
10468
+ * need to construct a `File` yourself.
10467
10469
  */
10468
10470
  type DocumentSource = Blob | {
10469
10471
  url: string;
@@ -10645,6 +10647,6 @@ declare class GeminaTimeoutError extends GeminaError {
10645
10647
  * client sends NO custom User-Agent header (browsers forbid overriding it).
10646
10648
  * VERSION is exported for consumers and diagnostics only.
10647
10649
  */
10648
- declare const VERSION = "0.3.0";
10650
+ declare const VERSION = "0.3.2";
10649
10651
 
10650
10652
  export { type ActivateTemplateRequest, type AggregateMetaDTO, AggregateMetaDTOFromJSON, AggregateMetaDTOFromJSONTyped, AggregateMetaDTOToJSON, AggregateMetaDTOToJSONTyped, type AggregateMetricDTO, AggregateMetricDTOFieldEnum, AggregateMetricDTOFromJSON, AggregateMetricDTOFromJSONTyped, AggregateMetricDTOOpEnum, AggregateMetricDTOToJSON, AggregateMetricDTOToJSONTyped, type AggregateRowDTO, AggregateRowDTOFromJSON, AggregateRowDTOFromJSONTyped, AggregateRowDTOToJSON, AggregateRowDTOToJSONTyped, type ApiResponse, BASE_PATH, BaseAPI, BillingApi, BlobApiResponse, COLLECTION_FORMATS, type ChangePlanRequest, ChatApi, type ChatQueryInDTO, ChatQueryInDTOFromJSON, ChatQueryInDTOFromJSONTyped, ChatQueryInDTOToJSON, ChatQueryInDTOToJSONTyped, type ChatQueryOutDTO, ChatQueryOutDTOFromJSON, ChatQueryOutDTOFromJSONTyped, ChatQueryOutDTOToJSON, ChatQueryOutDTOToJSONTyped, type ChatQueryRequest, type CheckoutOutDTO, CheckoutOutDTOFromJSON, CheckoutOutDTOFromJSONTyped, CheckoutOutDTOToJSON, CheckoutOutDTOToJSONTyped, type ColumnDefinitionDTO, ColumnDefinitionDTOFromJSON, ColumnDefinitionDTOFromJSONTyped, ColumnDefinitionDTOToJSON, ColumnDefinitionDTOToJSONTyped, type ComparisonSummaryModel, ComparisonSummaryModelFromJSON, ComparisonSummaryModelFromJSONTyped, ComparisonSummaryModelToJSON, ComparisonSummaryModelToJSONTyped, Configuration, type ConfigurationParameters, type Consume, ContactApi, type ContactFormInDTO, ContactFormInDTOFromJSON, ContactFormInDTOFromJSONTyped, ContactFormInDTOToJSON, ContactFormInDTOToJSONTyped, type ContractOutDTO, ContractOutDTOFromJSON, ContractOutDTOFromJSONTyped, ContractOutDTOToJSON, ContractOutDTOToJSONTyped, ContractStatus, ContractStatusFromJSON, ContractStatusFromJSONTyped, ContractStatusToJSON, ContractStatusToJSONTyped, type ConversationOptions, type CountBreakdownModel, CountBreakdownModelFromJSON, CountBreakdownModelFromJSONTyped, CountBreakdownModelToJSON, CountBreakdownModelToJSONTyped, type CreateDocumentProcessingRequestByUserRequest, type CreateDocumentProcessingRequestRequest, type CreateTemplateInDTO, CreateTemplateInDTOFromJSON, CreateTemplateInDTOFromJSONTyped, CreateTemplateInDTOToJSON, CreateTemplateInDTOToJSONTyped, type CreateTemplateRequest, type CreateUploadRequest, type CreateWebDocumentProcessingRequestByUserRequest, type CreateWebDocumentProcessingRequestRequest, CreditMeter, CreditMeterFilter, CreditMeterFilterFromJSON, CreditMeterFilterFromJSONTyped, CreditMeterFilterToJSON, CreditMeterFilterToJSONTyped, CreditMeterFromJSON, CreditMeterFromJSONTyped, CreditMeterToJSON, CreditMeterToJSONTyped, type CreditTransactionListOutDTO, CreditTransactionListOutDTOFromJSON, CreditTransactionListOutDTOFromJSONTyped, CreditTransactionListOutDTOToJSON, CreditTransactionListOutDTOToJSONTyped, type CreditTransactionOutDTO, CreditTransactionOutDTOFromJSON, CreditTransactionOutDTOFromJSONTyped, CreditTransactionOutDTOToJSON, CreditTransactionOutDTOToJSONTyped, CreditTransactionType, CreditTransactionTypeFromJSON, CreditTransactionTypeFromJSONTyped, CreditTransactionTypeToJSON, CreditTransactionTypeToJSONTyped, DEFAULT_BASE_URL, DataCenterRegionModel, DataCenterRegionModelFromJSON, DataCenterRegionModelFromJSONTyped, DataCenterRegionModelToJSON, DataCenterRegionModelToJSONTyped, DataRetentionPeriodModel, DataRetentionPeriodModelFromJSON, DataRetentionPeriodModelFromJSONTyped, DataRetentionPeriodModelToJSON, DataRetentionPeriodModelToJSONTyped, type DeactivateTemplateRequest, DefaultConfig, type DeleteChatSessionRequest, type DeleteTemplateRequest, DocumentApi, type DocumentDataOutDTO, DocumentDataOutDTOFromJSON, DocumentDataOutDTOFromJSONTyped, DocumentDataOutDTOToJSON, DocumentDataOutDTOToJSONTyped, DocumentFileTypeModel, DocumentFileTypeModelFromJSON, DocumentFileTypeModelFromJSONTyped, DocumentFileTypeModelToJSON, DocumentFileTypeModelToJSONTyped, type DocumentMetaOutDTO, DocumentMetaOutDTOFromJSON, DocumentMetaOutDTOFromJSONTyped, DocumentMetaOutDTOToJSON, DocumentMetaOutDTOToJSONTyped, type DocumentPrimaryViewOutDTO, DocumentPrimaryViewOutDTOFromJSON, DocumentPrimaryViewOutDTOFromJSONTyped, DocumentPrimaryViewOutDTOToJSON, DocumentPrimaryViewOutDTOToJSONTyped, type DocumentProcessingMetaOutDTO, DocumentProcessingMetaOutDTOFromJSON, DocumentProcessingMetaOutDTOFromJSONTyped, DocumentProcessingMetaOutDTOToJSON, DocumentProcessingMetaOutDTOToJSONTyped, type DocumentProcessingResultOutDTO, DocumentProcessingResultOutDTOFromJSON, DocumentProcessingResultOutDTOFromJSONTyped, DocumentProcessingResultOutDTOToJSON, DocumentProcessingResultOutDTOToJSONTyped, type DocumentPurgingResultOutDTO, DocumentPurgingResultOutDTOFromJSON, DocumentPurgingResultOutDTOFromJSONTyped, DocumentPurgingResultOutDTOToJSON, DocumentPurgingResultOutDTOToJSONTyped, type DocumentSource, type DocumentViewDataOutDTO, DocumentViewDataOutDTOFromJSON, DocumentViewDataOutDTOFromJSONTyped, DocumentViewDataOutDTOToJSON, DocumentViewDataOutDTOToJSONTyped, type DocumentViewMetaOutDTO, DocumentViewMetaOutDTOFromJSON, DocumentViewMetaOutDTOFromJSONTyped, DocumentViewMetaOutDTOToJSON, DocumentViewMetaOutDTOToJSONTyped, type DocumentViewOutDTO, DocumentViewOutDTOFromJSON, DocumentViewOutDTOFromJSONTyped, DocumentViewOutDTOToJSON, DocumentViewOutDTOToJSONTyped, type DocumentsViewOutDTO, DocumentsViewOutDTOFromJSON, DocumentsViewOutDTOFromJSONTyped, DocumentsViewOutDTOToJSON, DocumentsViewOutDTOToJSONTyped, EnterpriseApi, type EnterpriseTransactionListOutDTO, EnterpriseTransactionListOutDTOFromJSON, EnterpriseTransactionListOutDTOFromJSONTyped, EnterpriseTransactionListOutDTOToJSON, EnterpriseTransactionListOutDTOToJSONTyped, type EnterpriseTransactionOutDTO, EnterpriseTransactionOutDTOFromJSON, EnterpriseTransactionOutDTOFromJSONTyped, EnterpriseTransactionOutDTOToJSON, EnterpriseTransactionOutDTOToJSONTyped, type ErrorContext, type ExtractionCostOutDTO, ExtractionCostOutDTOFromJSON, ExtractionCostOutDTOFromJSONTyped, ExtractionCostOutDTOToJSON, ExtractionCostOutDTOToJSONTyped, type ExtractionCostOutResultDTO, ExtractionCostOutResultDTOFromJSON, ExtractionCostOutResultDTOFromJSONTyped, ExtractionCostOutResultDTOToJSON, ExtractionCostOutResultDTOToJSONTyped, ExtractionCostStateModel, ExtractionCostStateModelFromJSON, ExtractionCostStateModelFromJSONTyped, ExtractionCostStateModelToJSON, ExtractionCostStateModelToJSONTyped, type ExtractionCostsDataOutDTO, ExtractionCostsDataOutDTOFromJSON, ExtractionCostsDataOutDTOFromJSONTyped, ExtractionCostsDataOutDTOToJSON, ExtractionCostsDataOutDTOToJSONTyped, type ExtractionCostsOutDTO, ExtractionCostsOutDTOFromJSON, ExtractionCostsOutDTOFromJSONTyped, ExtractionCostsOutDTOToJSON, ExtractionCostsOutDTOToJSONTyped, type ExtractionDocumentViewMetaOutDTO, ExtractionDocumentViewMetaOutDTOFromJSON, ExtractionDocumentViewMetaOutDTOFromJSONTyped, ExtractionDocumentViewMetaOutDTOToJSON, ExtractionDocumentViewMetaOutDTOToJSONTyped, type ExtractionMetaOutDTO, ExtractionMetaOutDTOFromJSON, ExtractionMetaOutDTOFromJSONTyped, ExtractionMetaOutDTOToJSON, ExtractionMetaOutDTOToJSONTyped, type ExtractionPrimaryViewOutDTO, ExtractionPrimaryViewOutDTOFromJSON, ExtractionPrimaryViewOutDTOFromJSONTyped, ExtractionPrimaryViewOutDTOToJSON, ExtractionPrimaryViewOutDTOToJSONTyped, type ExtractionProcessingResultOutDTO, ExtractionProcessingResultOutDTOFromJSON, ExtractionProcessingResultOutDTOFromJSONTyped, ExtractionProcessingResultOutDTOToJSON, ExtractionProcessingResultOutDTOToJSONTyped, ExtractionTypeModel, ExtractionTypeModelFromJSON, ExtractionTypeModelFromJSONTyped, ExtractionTypeModelToJSON, ExtractionTypeModelToJSONTyped, type ExtractionValidationInDTO, ExtractionValidationInDTOFromJSON, ExtractionValidationInDTOFromJSONTyped, ExtractionValidationInDTOToJSON, ExtractionValidationInDTOToJSONTyped, type ExtractionValidationMetaOutDTO, ExtractionValidationMetaOutDTOFromJSON, ExtractionValidationMetaOutDTOFromJSONTyped, ExtractionValidationMetaOutDTOToJSON, ExtractionValidationMetaOutDTOToJSONTyped, type ExtractionValidationResultOutDTO, ExtractionValidationResultOutDTOFromJSON, ExtractionValidationResultOutDTOFromJSONTyped, ExtractionValidationResultOutDTOToJSON, ExtractionValidationResultOutDTOToJSONTyped, type ExtractionViewDataOutDTO, ExtractionViewDataOutDTOFromJSON, ExtractionViewDataOutDTOFromJSONTyped, ExtractionViewDataOutDTOToJSON, ExtractionViewDataOutDTOToJSONTyped, type ExtractionViewMetaOutDTO, ExtractionViewMetaOutDTOFromJSON, ExtractionViewMetaOutDTOFromJSONTyped, ExtractionViewMetaOutDTOToJSON, ExtractionViewMetaOutDTOToJSONTyped, type ExtractionViewOutDTO, ExtractionViewOutDTOFromJSON, ExtractionViewOutDTOFromJSONTyped, ExtractionViewOutDTOToJSON, ExtractionViewOutDTOToJSONTyped, type ExtractionsViewOutDTO, ExtractionsViewOutDTOFromJSON, ExtractionsViewOutDTOFromJSONTyped, ExtractionsViewOutDTOToJSON, ExtractionsViewOutDTOToJSONTyped, FeatureType, FeatureTypeFromJSON, FeatureTypeFromJSONTyped, FeatureTypeToJSON, FeatureTypeToJSONTyped, type FetchAPI, FetchError, type FetchParams, type FieldDefinitionDTO, FieldDefinitionDTOFromJSON, FieldDefinitionDTOFromJSONTyped, FieldDefinitionDTOToJSON, FieldDefinitionDTOToJSONTyped, type FieldDifferenceModel, FieldDifferenceModelFromJSON, FieldDifferenceModelFromJSONTyped, FieldDifferenceModelToJSON, FieldDifferenceModelToJSONTyped, FieldType, FieldTypeFromJSON, FieldTypeFromJSONTyped, FieldTypeToJSON, FieldTypeToJSONTyped, FileTagApi, type FileTagBalanceOutDTO, FileTagBalanceOutDTOFromJSON, FileTagBalanceOutDTOFromJSONTyped, FileTagBalanceOutDTOToJSON, FileTagBalanceOutDTOToJSONTyped, type FileTagFilenamePatternsOutDTO, FileTagFilenamePatternsOutDTOFromJSON, FileTagFilenamePatternsOutDTOFromJSONTyped, FileTagFilenamePatternsOutDTOToJSON, FileTagFilenamePatternsOutDTOToJSONTyped, type FileTagMetadataOutDTO, FileTagMetadataOutDTOFromJSON, FileTagMetadataOutDTOFromJSONTyped, FileTagMetadataOutDTOToJSON, FileTagMetadataOutDTOToJSONTyped, type FileTagResultOutDTO, FileTagResultOutDTOFromJSON, FileTagResultOutDTOFromJSONTyped, FileTagResultOutDTOToJSON, FileTagResultOutDTOToJSONTyped, FilesApi, type FilesCreateUploadInDTO, FilesCreateUploadInDTOFromJSON, FilesCreateUploadInDTOFromJSONTyped, FilesCreateUploadInDTOToJSON, FilesCreateUploadInDTOToJSONTyped, type FilesNextToolCallOutDTO, FilesNextToolCallOutDTOFromJSON, FilesNextToolCallOutDTOFromJSONTyped, FilesNextToolCallOutDTOToJSON, FilesNextToolCallOutDTOToJSONTyped, FilesNextToolCallOutDTOToolEnum, type FilesUploadDetailsOutDTO, FilesUploadDetailsOutDTOFromJSON, FilesUploadDetailsOutDTOFromJSONTyped, FilesUploadDetailsOutDTOMethodEnum, FilesUploadDetailsOutDTOToJSON, FilesUploadDetailsOutDTOToJSONTyped, type FilesUploadInstructionsOutDTO, FilesUploadInstructionsOutDTOFromJSON, FilesUploadInstructionsOutDTOFromJSONTyped, FilesUploadInstructionsOutDTOToJSON, FilesUploadInstructionsOutDTOToJSONTyped, type FindDocumentExtractionsByUserRequest, type FindDocumentExtractionsRequest, type FindDocumentsByUserRequest, type FindDocumentsRequest, type FoundationDTO, FoundationDTOFromJSON, FoundationDTOFromJSONTyped, FoundationDTOToJSON, FoundationDTOToJSONTyped, type FoundationMetaDTO, FoundationMetaDTOFromJSON, FoundationMetaDTOFromJSONTyped, FoundationMetaDTOToJSON, FoundationMetaDTOToJSONTyped, FreeTierApi, type FreeTierConfigOutDTO, FreeTierConfigOutDTOFromJSON, FreeTierConfigOutDTOFromJSONTyped, FreeTierConfigOutDTOToJSON, FreeTierConfigOutDTOToJSONTyped, GeminaChatConversation, GeminaClient, type GeminaClientApis, type GeminaClientOptions, GeminaError, GeminaProcessingError, GeminaTimeoutError, type GenerateTemplateAsyncRequest, type GenerateTemplateFromUrlAsyncRequest, type GenerateTemplateFromUrlInDTO, GenerateTemplateFromUrlInDTOFromJSON, GenerateTemplateFromUrlInDTOFromJSONTyped, GenerateTemplateFromUrlInDTOToJSON, GenerateTemplateFromUrlInDTOToJSONTyped, type GenerateTemplateFromUrlRequest, type GenerateTemplateRequest, type GetCreditHistoryRequest, type GetDocumentByUserRequest, type GetDocumentExtractionByUserRequest, type GetDocumentExtractionRequest, type GetDocumentProcessingResultByCorrelationIdByUserRequest, type GetDocumentProcessingResultByCorrelationIdRequest, type GetDocumentRequest, type GetExtractionCostRequest, type GetExtractionCostsRequest, type GetInvoicePdfRequest, type GetInvoiceRequest, type GetMyFiletagCreditHistoryRequest, type GetMyTransactionsRequest, type GetMyUsageRequest, type GetPlanRequest, type GetTemplateRequest, type GetUserInvoicesRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type HTTPValidationError, HTTPValidationErrorFromJSON, HTTPValidationErrorFromJSONTyped, HTTPValidationErrorToJSON, HTTPValidationErrorToJSONTyped, type InitOverrideFunction, type InvoiceListOutDTO, InvoiceListOutDTOFromJSON, InvoiceListOutDTOFromJSONTyped, InvoiceListOutDTOToJSON, InvoiceListOutDTOToJSONTyped, type InvoiceOutDTO, InvoiceOutDTOFromJSON, InvoiceOutDTOFromJSONTyped, InvoiceOutDTOToJSON, InvoiceOutDTOToJSONTyped, type InvoicePdfOutDTO, InvoicePdfOutDTOFromJSON, InvoicePdfOutDTOFromJSONTyped, InvoicePdfOutDTOToJSON, InvoicePdfOutDTOToJSONTyped, InvoiceStatus, InvoiceStatusFromJSON, InvoiceStatusFromJSONTyped, InvoiceStatusToJSON, InvoiceStatusToJSONTyped, InvoiceType, InvoiceTypeFromJSON, InvoiceTypeFromJSONTyped, InvoiceTypeToJSON, InvoiceTypeToJSONTyped, JSONApiResponse, type Json, LegalApi, type ListActivePlansRequest, type ListTemplatesByApiKeyRequest, type ListTemplatesRequest, type LocationInner, LocationInnerFromJSON, LocationInnerFromJSONTyped, LocationInnerToJSON, LocationInnerToJSONTyped, type MatchedChunkDTO, MatchedChunkDTOFromJSON, MatchedChunkDTOFromJSONTyped, MatchedChunkDTOToJSON, MatchedChunkDTOToJSONTyped, MetaApi, type Middleware, type MintRetrievalTokenRequest, type MintRetrievalTokenUserRequest, type ModelPropertyNaming, ModelType, ModelTypeFromJSON, ModelTypeFromJSONTyped, ModelTypeToJSON, ModelTypeToJSONTyped, type NextActionOutDTO, NextActionOutDTOActionEnum, NextActionOutDTOFromJSON, NextActionOutDTOFromJSONTyped, NextActionOutDTOToJSON, NextActionOutDTOToJSONTyped, type NumberOfStoredDocumentsOutDTO, NumberOfStoredDocumentsOutDTOFromJSON, NumberOfStoredDocumentsOutDTOFromJSONTyped, NumberOfStoredDocumentsOutDTOToJSON, NumberOfStoredDocumentsOutDTOToJSONTyped, OperationType, OperationTypeFromJSON, OperationTypeFromJSONTyped, OperationTypeToJSON, OperationTypeToJSONTyped, PeriodPresetModel, PeriodPresetModelFromJSON, PeriodPresetModelFromJSONTyped, PeriodPresetModelToJSON, PeriodPresetModelToJSONTyped, type PlanCreditCostOutDTO, PlanCreditCostOutDTOFromJSON, PlanCreditCostOutDTOFromJSONTyped, PlanCreditCostOutDTOToJSON, PlanCreditCostOutDTOToJSONTyped, type PlanDetailOutDTO, PlanDetailOutDTOFromJSON, PlanDetailOutDTOFromJSONTyped, PlanDetailOutDTOToJSON, PlanDetailOutDTOToJSONTyped, type PlanListOutDTO, PlanListOutDTOFromJSON, PlanListOutDTOFromJSONTyped, PlanListOutDTOToJSON, PlanListOutDTOToJSONTyped, type PlanOutDTO, PlanOutDTOFromJSON, PlanOutDTOFromJSONTyped, PlanOutDTOToJSON, PlanOutDTOToJSONTyped, type ProcessDocumentOptions, type PurchaseTopUpRequest, type PurgeDocumentByUserRequest, type PurgeDocumentExtractionByUserRequest, type PurgeDocumentExtractionRequest, type PurgeDocumentRequest, type PurgeDocumentsWithEndUserId422Response, PurgeDocumentsWithEndUserId422ResponseFromJSON, PurgeDocumentsWithEndUserId422ResponseFromJSONTyped, PurgeDocumentsWithEndUserId422ResponseToJSON, PurgeDocumentsWithEndUserId422ResponseToJSONTyped, type PurgeDocumentsWithEndUserIdByUserRequest, type PurgeDocumentsWithEndUserIdRequest, type PurgeDocumentsWithExternalIdByUserRequest, type PurgeDocumentsWithExternalIdRequest, PurgeReasonModel, PurgeReasonModelFromJSON, PurgeReasonModelFromJSONTyped, PurgeReasonModelToJSON, PurgeReasonModelToJSONTyped, type PurgedDocumentsDataOutDTO, PurgedDocumentsDataOutDTOFromJSON, PurgedDocumentsDataOutDTOFromJSONTyped, PurgedDocumentsDataOutDTOToJSON, PurgedDocumentsDataOutDTOToJSONTyped, type QueryMetaDTO, QueryMetaDTOFromJSON, QueryMetaDTOFromJSONTyped, QueryMetaDTOToJSON, QueryMetaDTOToJSONTyped, type QueryResultItemDTO, QueryResultItemDTOFromJSON, QueryResultItemDTOFromJSONTyped, QueryResultItemDTOToJSON, QueryResultItemDTOToJSONTyped, type RateCardOutDTO, RateCardOutDTOFromJSON, RateCardOutDTOFromJSONTyped, RateCardOutDTOToJSON, RateCardOutDTOToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseChangePlan, ResponseChangePlanFromJSON, ResponseChangePlanFromJSONTyped, ResponseChangePlanToJSON, ResponseChangePlanToJSONTyped, type ResponseContext, ResponseError, ResponseStatus, ResponseStatusFromJSON, ResponseStatusFromJSONTyped, ResponseStatusToJSON, ResponseStatusToJSONTyped, type ResponseTransformer, type RetrievalAggregateInDTO, RetrievalAggregateInDTOFromJSON, RetrievalAggregateInDTOFromJSONTyped, RetrievalAggregateInDTOGroupByEnum, RetrievalAggregateInDTOToJSON, RetrievalAggregateInDTOToJSONTyped, type RetrievalAggregateOutDTO, RetrievalAggregateOutDTOFromJSON, RetrievalAggregateOutDTOFromJSONTyped, RetrievalAggregateOutDTOToJSON, RetrievalAggregateOutDTOToJSONTyped, type RetrievalAggregateRequest, RetrievalApi, type RetrievalFieldItemDTO, RetrievalFieldItemDTOFromJSON, RetrievalFieldItemDTOFromJSONTyped, RetrievalFieldItemDTOToJSON, RetrievalFieldItemDTOToJSONTyped, type RetrievalFieldsOutDTO, RetrievalFieldsOutDTOFromJSON, RetrievalFieldsOutDTOFromJSONTyped, RetrievalFieldsOutDTOToJSON, RetrievalFieldsOutDTOToJSONTyped, type RetrievalFiltersDTO, RetrievalFiltersDTOFromJSON, RetrievalFiltersDTOFromJSONTyped, RetrievalFiltersDTOToJSON, RetrievalFiltersDTOToJSONTyped, type RetrievalQueryInDTO, RetrievalQueryInDTOFromJSON, RetrievalQueryInDTOFromJSONTyped, RetrievalQueryInDTOModeEnum, RetrievalQueryInDTOSortFieldEnum, RetrievalQueryInDTOSortMethodEnum, RetrievalQueryInDTOToJSON, RetrievalQueryInDTOToJSONTyped, type RetrievalQueryOutDTO, RetrievalQueryOutDTOFromJSON, RetrievalQueryOutDTOFromJSONTyped, RetrievalQueryOutDTOToJSON, RetrievalQueryOutDTOToJSONTyped, type RetrievalQueryRequest, type RetrievalStatusOutDTO, RetrievalStatusOutDTOFromJSON, RetrievalStatusOutDTOFromJSONTyped, RetrievalStatusOutDTOToJSON, RetrievalStatusOutDTOToJSONTyped, type SessionTokenInDTO, SessionTokenInDTOFromJSON, SessionTokenInDTOFromJSONTyped, SessionTokenInDTOToJSON, SessionTokenInDTOToJSONTyped, type SessionTokenOutDTO, SessionTokenOutDTOFromJSON, SessionTokenOutDTOFromJSONTyped, SessionTokenOutDTOToJSON, SessionTokenOutDTOToJSONTyped, SessionsApi, SortMethodModel, SortMethodModelFromJSON, SortMethodModelFromJSONTyped, SortMethodModelToJSON, SortMethodModelToJSONTyped, type StorageUsageOutDTO, StorageUsageOutDTOFromJSON, StorageUsageOutDTOFromJSONTyped, StorageUsageOutDTOToJSON, StorageUsageOutDTOToJSONTyped, type StructuredFilterDTO, StructuredFilterDTOFromJSON, StructuredFilterDTOFromJSONTyped, StructuredFilterDTOOpEnum, StructuredFilterDTOToJSON, StructuredFilterDTOToJSONTyped, type SubmitContactFormRequest, type SubscribeInDTO, SubscribeInDTOFromJSON, SubscribeInDTOFromJSONTyped, SubscribeInDTOToJSON, SubscribeInDTOToJSONTyped, type SubscribeRequest, type SubscriptionOutDTO, SubscriptionOutDTOFromJSON, SubscriptionOutDTOFromJSONTyped, SubscriptionOutDTOToJSON, SubscriptionOutDTOToJSONTyped, SubscriptionStatus, SubscriptionStatusFromJSON, SubscriptionStatusFromJSONTyped, SubscriptionStatusToJSON, SubscriptionStatusToJSONTyped, SubscriptionsApi, SupportLevel, SupportLevelFromJSON, SupportLevelFromJSONTyped, SupportLevelToJSON, SupportLevelToJSONTyped, type TOSOutDTO, TOSOutDTOFromJSON, TOSOutDTOFromJSONTyped, TOSOutDTOToJSON, TOSOutDTOToJSONTyped, type TableDefinitionDTOInput, TableDefinitionDTOInputFromJSON, TableDefinitionDTOInputFromJSONTyped, TableDefinitionDTOInputToJSON, TableDefinitionDTOInputToJSONTyped, type TagDocumentByUserRequest, type TagDocumentRequest, type TagFileBodyDTO, TagFileBodyDTOFromJSON, TagFileBodyDTOFromJSONTyped, TagFileBodyDTOToJSON, TagFileBodyDTOToJSONTyped, type TagFileRequest, type TagUrlInDTO, TagUrlInDTOFromJSON, TagUrlInDTOFromJSONTyped, TagUrlInDTOToJSON, TagUrlInDTOToJSONTyped, type TagUrlRequest, type TemplateListOutDTO, TemplateListOutDTOFromJSON, TemplateListOutDTOFromJSONTyped, TemplateListOutDTOToJSON, TemplateListOutDTOToJSONTyped, type TemplateOutDTO, TemplateOutDTOFromJSON, TemplateOutDTOFromJSONTyped, TemplateOutDTOToJSON, TemplateOutDTOToJSONTyped, type TemplateSchemaDTOInput, TemplateSchemaDTOInputFromJSON, TemplateSchemaDTOInputFromJSONTyped, TemplateSchemaDTOInputToJSON, TemplateSchemaDTOInputToJSONTyped, type TemplateSchemaDTOOutput, TemplateSchemaDTOOutputFromJSON, TemplateSchemaDTOOutputFromJSONTyped, TemplateSchemaDTOOutputToJSON, TemplateSchemaDTOOutputToJSONTyped, TemplateStatusModel, TemplateStatusModelFromJSON, TemplateStatusModelFromJSONTyped, TemplateStatusModelToJSON, TemplateStatusModelToJSONTyped, TemplatesApi, TextApiResponse, type TopUpPackListOutDTO, TopUpPackListOutDTOFromJSON, TopUpPackListOutDTOFromJSONTyped, TopUpPackListOutDTOToJSON, TopUpPackListOutDTOToJSONTyped, type TopUpPackOutDTO, TopUpPackOutDTOFromJSON, TopUpPackOutDTOFromJSONTyped, TopUpPackOutDTOToJSON, TopUpPackOutDTOToJSONTyped, type TopUpPurchaseInDTO, TopUpPurchaseInDTOFromJSON, TopUpPurchaseInDTOFromJSONTyped, TopUpPurchaseInDTOToJSON, TopUpPurchaseInDTOToJSONTyped, type TopUpPurchaseOutDTO, TopUpPurchaseOutDTOFromJSON, TopUpPurchaseOutDTOFromJSONTyped, TopUpPurchaseOutDTOToJSON, TopUpPurchaseOutDTOToJSONTyped, type UpdateTemplateInDTO, UpdateTemplateInDTOFromJSON, UpdateTemplateInDTOFromJSONTyped, UpdateTemplateInDTOToJSON, UpdateTemplateInDTOToJSONTyped, type UpdateTemplateRequest, type UploadDocumentByUserRequest, type UploadDocumentRequest, UploadExtractionTypeEnum, UploadExtractionTypeEnumFromJSON, UploadExtractionTypeEnumFromJSONTyped, UploadExtractionTypeEnumToJSON, UploadExtractionTypeEnumToJSONTyped, type UploadWebDocumentRequest, type UsageBreakdownListOutDTO, UsageBreakdownListOutDTOFromJSON, UsageBreakdownListOutDTOFromJSONTyped, UsageBreakdownListOutDTOToJSON, UsageBreakdownListOutDTOToJSONTyped, type UsageBreakdownOutDTO, UsageBreakdownOutDTOFromJSON, UsageBreakdownOutDTOFromJSONTyped, UsageBreakdownOutDTOToJSON, UsageBreakdownOutDTOToJSONTyped, type UsageLineItemOutDTO, UsageLineItemOutDTOFromJSON, UsageLineItemOutDTOFromJSONTyped, UsageLineItemOutDTOToJSON, UsageLineItemOutDTOToJSONTyped, type UsageSummaryOutDTO, UsageSummaryOutDTOFromJSON, UsageSummaryOutDTOFromJSONTyped, UsageSummaryOutDTOToJSON, UsageSummaryOutDTOToJSONTyped, VERSION, type ValidateDocumentExtractionRequest, type ValidationError, ValidationErrorFromJSON, ValidationErrorFromJSONTyped, ValidationErrorToJSON, ValidationErrorToJSONTyped, type ValidationSchemaModel, ValidationSchemaModelFromJSON, ValidationSchemaModelFromJSONTyped, ValidationSchemaModelToJSON, ValidationSchemaModelToJSONTyped, type Value, ValueFromJSON, ValueFromJSONTyped, ValueToJSON, ValueToJSONTyped, type ValuesValue, ValuesValueFromJSON, ValuesValueFromJSONTyped, ValuesValueToJSON, ValuesValueToJSONTyped, type ViewMetaOutDTO, ViewMetaOutDTOFromJSON, ViewMetaOutDTOFromJSONTyped, ViewMetaOutDTOToJSON, ViewMetaOutDTOToJSONTyped, VoidApiResponse, type VolumeDiscountTierOutDTO, VolumeDiscountTierOutDTOFromJSON, VolumeDiscountTierOutDTOFromJSONTyped, VolumeDiscountTierOutDTOToJSON, VolumeDiscountTierOutDTOToJSONTyped, type WebDocumentUploadInDTO, WebDocumentUploadInDTOFromJSON, WebDocumentUploadInDTOFromJSONTyped, WebDocumentUploadInDTOToJSON, WebDocumentUploadInDTOToJSONTyped, type WebhookResponseDTO, WebhookResponseDTOFromJSON, WebhookResponseDTOFromJSONTyped, WebhookResponseDTOToJSON, WebhookResponseDTOToJSONTyped, canConsumeForm, exists, instanceOfAggregateMetaDTO, instanceOfAggregateMetricDTO, instanceOfAggregateRowDTO, instanceOfChatQueryInDTO, instanceOfChatQueryOutDTO, instanceOfCheckoutOutDTO, instanceOfColumnDefinitionDTO, instanceOfComparisonSummaryModel, instanceOfContactFormInDTO, instanceOfContractOutDTO, instanceOfContractStatus, instanceOfCountBreakdownModel, instanceOfCreateTemplateInDTO, instanceOfCreditMeter, instanceOfCreditMeterFilter, instanceOfCreditTransactionListOutDTO, instanceOfCreditTransactionOutDTO, instanceOfCreditTransactionType, instanceOfDataCenterRegionModel, instanceOfDataRetentionPeriodModel, instanceOfDocumentDataOutDTO, instanceOfDocumentFileTypeModel, instanceOfDocumentMetaOutDTO, instanceOfDocumentPrimaryViewOutDTO, instanceOfDocumentProcessingMetaOutDTO, instanceOfDocumentProcessingResultOutDTO, instanceOfDocumentPurgingResultOutDTO, instanceOfDocumentViewDataOutDTO, instanceOfDocumentViewMetaOutDTO, instanceOfDocumentViewOutDTO, instanceOfDocumentsViewOutDTO, instanceOfEnterpriseTransactionListOutDTO, instanceOfEnterpriseTransactionOutDTO, instanceOfExtractionCostOutDTO, instanceOfExtractionCostOutResultDTO, instanceOfExtractionCostStateModel, instanceOfExtractionCostsDataOutDTO, instanceOfExtractionCostsOutDTO, instanceOfExtractionDocumentViewMetaOutDTO, instanceOfExtractionMetaOutDTO, instanceOfExtractionPrimaryViewOutDTO, instanceOfExtractionProcessingResultOutDTO, instanceOfExtractionTypeModel, instanceOfExtractionValidationInDTO, instanceOfExtractionValidationMetaOutDTO, instanceOfExtractionValidationResultOutDTO, instanceOfExtractionViewDataOutDTO, instanceOfExtractionViewMetaOutDTO, instanceOfExtractionViewOutDTO, instanceOfExtractionsViewOutDTO, instanceOfFeatureType, instanceOfFieldDefinitionDTO, instanceOfFieldDifferenceModel, instanceOfFieldType, instanceOfFileTagBalanceOutDTO, instanceOfFileTagFilenamePatternsOutDTO, instanceOfFileTagMetadataOutDTO, instanceOfFileTagResultOutDTO, instanceOfFilesCreateUploadInDTO, instanceOfFilesNextToolCallOutDTO, instanceOfFilesUploadDetailsOutDTO, instanceOfFilesUploadInstructionsOutDTO, instanceOfFoundationDTO, instanceOfFoundationMetaDTO, instanceOfFreeTierConfigOutDTO, instanceOfGenerateTemplateFromUrlInDTO, instanceOfHTTPValidationError, instanceOfInvoiceListOutDTO, instanceOfInvoiceOutDTO, instanceOfInvoicePdfOutDTO, instanceOfInvoiceStatus, instanceOfInvoiceType, instanceOfLocationInner, instanceOfMatchedChunkDTO, instanceOfModelType, instanceOfNextActionOutDTO, instanceOfNumberOfStoredDocumentsOutDTO, instanceOfOperationType, instanceOfPeriodPresetModel, instanceOfPlanCreditCostOutDTO, instanceOfPlanDetailOutDTO, instanceOfPlanListOutDTO, instanceOfPlanOutDTO, instanceOfPurgeReasonModel, instanceOfPurgedDocumentsDataOutDTO, instanceOfQueryMetaDTO, instanceOfQueryResultItemDTO, instanceOfRateCardOutDTO, instanceOfResponseChangePlan, instanceOfResponseStatus, instanceOfRetrievalAggregateInDTO, instanceOfRetrievalAggregateOutDTO, instanceOfRetrievalFieldItemDTO, instanceOfRetrievalFieldsOutDTO, instanceOfRetrievalFiltersDTO, instanceOfRetrievalQueryInDTO, instanceOfRetrievalQueryOutDTO, instanceOfRetrievalStatusOutDTO, instanceOfSessionTokenInDTO, instanceOfSessionTokenOutDTO, instanceOfSortMethodModel, instanceOfStorageUsageOutDTO, instanceOfStructuredFilterDTO, instanceOfSubscribeInDTO, instanceOfSubscriptionOutDTO, instanceOfSubscriptionStatus, instanceOfSupportLevel, instanceOfTOSOutDTO, instanceOfTableDefinitionDTOInput, instanceOfTagFileBodyDTO, instanceOfTagUrlInDTO, instanceOfTemplateListOutDTO, instanceOfTemplateOutDTO, instanceOfTemplateSchemaDTOInput, instanceOfTemplateSchemaDTOOutput, instanceOfTemplateStatusModel, instanceOfTopUpPackListOutDTO, instanceOfTopUpPackOutDTO, instanceOfTopUpPurchaseInDTO, instanceOfTopUpPurchaseOutDTO, instanceOfUpdateTemplateInDTO, instanceOfUploadExtractionTypeEnum, instanceOfUsageBreakdownListOutDTO, instanceOfUsageBreakdownOutDTO, instanceOfUsageLineItemOutDTO, instanceOfUsageSummaryOutDTO, instanceOfValidationError, instanceOfValidationSchemaModel, instanceOfValue, instanceOfValuesValue, instanceOfViewMetaOutDTO, instanceOfVolumeDiscountTierOutDTO, instanceOfWebDocumentUploadInDTO, instanceOfWebhookResponseDTO, mapValues, querystring };
package/dist/index.js CHANGED
@@ -9298,6 +9298,51 @@ var TERMINAL_STATUSES = /* @__PURE__ */ new Set([
9298
9298
  ResponseStatus.Empty,
9299
9299
  ResponseStatus.Failed
9300
9300
  ]);
9301
+ var FTYP_BRAND_FORMATS = {
9302
+ heic: { ext: ".heic", type: "image/heic" },
9303
+ heix: { ext: ".heic", type: "image/heic" },
9304
+ mif1: { ext: ".heif", type: "image/heif" },
9305
+ heim: { ext: ".heif", type: "image/heif" },
9306
+ heis: { ext: ".heif", type: "image/heif" },
9307
+ avif: { ext: ".avif", type: "image/avif" },
9308
+ // avis (animated AVIF) is deliberately mapped, unlike the HEIF sequence
9309
+ // brands: the API accepts animated AVIF and processes its first frame.
9310
+ avis: { ext: ".avif", type: "image/avif" }
9311
+ };
9312
+ function sniffFormat(bytes) {
9313
+ const ascii = (start, end) => bytes.length >= end ? String.fromCharCode(...bytes.subarray(start, end)) : "";
9314
+ if (ascii(0, 4) === "%PDF") return { ext: ".pdf", type: "application/pdf" };
9315
+ if (bytes[0] === 137 && ascii(1, 4) === "PNG") return { ext: ".png", type: "image/png" };
9316
+ if (bytes[0] === 255 && bytes[1] === 216 && bytes[2] === 255) {
9317
+ return { ext: ".jpg", type: "image/jpeg" };
9318
+ }
9319
+ if (ascii(0, 4) === "GIF8") return { ext: ".gif", type: "image/gif" };
9320
+ if (ascii(0, 4) === "RIFF" && ascii(8, 12) === "WEBP") {
9321
+ return { ext: ".webp", type: "image/webp" };
9322
+ }
9323
+ if (ascii(4, 8) === "ftyp") return FTYP_BRAND_FORMATS[ascii(8, 12)];
9324
+ return void 0;
9325
+ }
9326
+ function hasUsefulType(type) {
9327
+ return type !== "" && type !== "application/octet-stream";
9328
+ }
9329
+ async function normalizeBlobSource(source) {
9330
+ if (typeof File === "undefined") {
9331
+ return source;
9332
+ }
9333
+ const isFile = source instanceof File;
9334
+ if (isFile && hasUsefulType(source.type)) {
9335
+ return source;
9336
+ }
9337
+ const head = new Uint8Array(await source.slice(0, 32).arrayBuffer());
9338
+ const sniffed = sniffFormat(head);
9339
+ if (sniffed === void 0) {
9340
+ return source;
9341
+ }
9342
+ const name = isFile && source.name !== "" ? source.name : `document${sniffed.ext}`;
9343
+ const type = hasUsefulType(source.type) ? source.type : sniffed.type;
9344
+ return new File([source], name, { type });
9345
+ }
9301
9346
  function defaultSleep(seconds) {
9302
9347
  return new Promise((resolve) => setTimeout(resolve, seconds * 1e3));
9303
9348
  }
@@ -9462,7 +9507,7 @@ var GeminaClient = class _GeminaClient {
9462
9507
  if (typeof Blob !== "undefined" && source instanceof Blob) {
9463
9508
  try {
9464
9509
  submitted = await this.documents.createDocumentProcessingRequest({
9465
- file: source,
9510
+ file: await normalizeBlobSource(source),
9466
9511
  externalId,
9467
9512
  extractionTypes,
9468
9513
  templateId: options.templateId,
@@ -9583,7 +9628,7 @@ async function asProcessingErrorIfFailedResult(error) {
9583
9628
  }
9584
9629
 
9585
9630
  // src/version.ts
9586
- var VERSION = "0.3.0";
9631
+ var VERSION = "0.3.2";
9587
9632
  export {
9588
9633
  AggregateMetaDTOFromJSON,
9589
9634
  AggregateMetaDTOFromJSONTyped,