extend-ai 1.5.0 → 1.7.0
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/BaseClient.js +2 -2
- package/Client.d.ts +6 -0
- package/Client.js +51 -38
- package/api/client/requests/ParseRequest.d.ts +2 -0
- package/api/resources/batchProcessorRun/client/Client.d.ts +2 -1
- package/api/resources/batchProcessorRun/client/Client.js +10 -5
- package/api/resources/batchProcessorRun/client/index.d.ts +1 -1
- package/api/resources/batchProcessorRun/client/index.js +15 -0
- package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.d.ts +8 -0
- package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.js +3 -0
- package/api/resources/batchProcessorRun/client/requests/index.d.ts +1 -0
- package/api/resources/batchProcessorRun/client/requests/index.js +2 -0
- package/api/resources/classifierVersions/client/Client.d.ts +2 -1
- package/api/resources/classifierVersions/client/Client.js +32 -9
- package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts +2 -0
- package/api/resources/classifierVersions/client/requests/ClassifierVersionsListRequest.d.ts +2 -0
- package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.d.ts +8 -0
- package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.js +3 -0
- package/api/resources/classifierVersions/client/requests/index.d.ts +1 -0
- package/api/resources/classifiers/client/Client.d.ts +2 -1
- package/api/resources/classifiers/client/Client.js +32 -9
- package/api/resources/classifiers/client/requests/ClassifiersListRequest.d.ts +2 -0
- package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.d.ts +8 -0
- package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.js +3 -0
- package/api/resources/classifiers/client/requests/ClassifiersUpdateRequest.d.ts +2 -0
- package/api/resources/classifiers/client/requests/index.d.ts +1 -0
- package/api/resources/classifyRuns/client/Client.d.ts +6 -3
- package/api/resources/classifyRuns/client/Client.js +35 -17
- package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.d.ts +8 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.js +3 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.d.ts +8 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.js +3 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsListRequest.d.ts +2 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.js +3 -0
- package/api/resources/classifyRuns/client/requests/index.d.ts +3 -0
- package/api/resources/editRuns/client/Client.d.ts +4 -2
- package/api/resources/editRuns/client/Client.js +20 -10
- package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.d.ts +8 -0
- package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.js +3 -0
- package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.js +3 -0
- package/api/resources/editRuns/client/requests/index.d.ts +2 -0
- package/api/resources/editSchemas/client/Client.d.ts +49 -0
- package/api/resources/editSchemas/client/Client.js +147 -0
- package/api/resources/editSchemas/client/index.d.ts +1 -0
- package/api/resources/editSchemas/client/index.js +17 -0
- package/api/resources/editSchemas/client/requests/EditSchemasGenerateRequest.d.ts +20 -0
- package/api/resources/editSchemas/client/requests/EditSchemasGenerateRequest.js +3 -0
- package/api/resources/editSchemas/client/requests/index.d.ts +1 -0
- package/api/resources/editSchemas/client/requests/index.js +2 -0
- package/api/resources/editSchemas/index.d.ts +2 -0
- package/api/resources/editSchemas/index.js +18 -0
- package/api/resources/editSchemas/types/EditSchemasGenerateRequestFile.d.ts +5 -0
- package/api/resources/editSchemas/types/EditSchemasGenerateRequestFile.js +3 -0
- package/api/resources/editSchemas/types/index.d.ts +1 -0
- package/api/resources/editSchemas/types/index.js +17 -0
- package/api/resources/evaluationSetItems/client/Client.d.ts +4 -2
- package/api/resources/evaluationSetItems/client/Client.js +48 -16
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsCreateRequest.d.ts +2 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.d.ts +8 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.js +3 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsListRequest.d.ts +2 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.d.ts +8 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.js +3 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsUpdateRequest.d.ts +2 -0
- package/api/resources/evaluationSetItems/client/requests/index.d.ts +2 -0
- package/api/resources/evaluationSetRuns/client/Client.d.ts +2 -1
- package/api/resources/evaluationSetRuns/client/Client.js +10 -5
- package/api/resources/evaluationSetRuns/client/index.d.ts +1 -1
- package/api/resources/evaluationSetRuns/client/index.js +15 -0
- package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.js +3 -0
- package/api/resources/evaluationSetRuns/client/requests/index.d.ts +1 -0
- package/api/resources/evaluationSetRuns/client/requests/index.js +2 -0
- package/api/resources/evaluationSets/client/Client.d.ts +2 -1
- package/api/resources/evaluationSets/client/Client.js +15 -7
- package/api/resources/evaluationSets/client/requests/EvaluationSetsListRequest.d.ts +2 -0
- package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.d.ts +8 -0
- package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.js +3 -0
- package/api/resources/evaluationSets/client/requests/index.d.ts +1 -0
- package/api/resources/extractRuns/client/Client.d.ts +6 -3
- package/api/resources/extractRuns/client/Client.js +35 -17
- package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.d.ts +8 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.js +3 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.d.ts +8 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.js +3 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +2 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.js +3 -0
- package/api/resources/extractRuns/client/requests/index.d.ts +3 -0
- package/api/resources/extractorVersions/client/Client.d.ts +2 -1
- package/api/resources/extractorVersions/client/Client.js +32 -9
- package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +2 -0
- package/api/resources/extractorVersions/client/requests/ExtractorVersionsListRequest.d.ts +2 -0
- package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.d.ts +8 -0
- package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.js +3 -0
- package/api/resources/extractorVersions/client/requests/index.d.ts +1 -0
- package/api/resources/extractors/client/Client.d.ts +2 -1
- package/api/resources/extractors/client/Client.js +32 -9
- package/api/resources/extractors/client/requests/ExtractorsListRequest.d.ts +2 -0
- package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.d.ts +8 -0
- package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.js +3 -0
- package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +2 -0
- package/api/resources/extractors/client/requests/index.d.ts +1 -0
- package/api/resources/files/client/Client.d.ts +2 -1
- package/api/resources/files/client/Client.js +24 -10
- package/api/resources/files/client/requests/FilesDeleteRequest.d.ts +8 -0
- package/api/resources/files/client/requests/FilesDeleteRequest.js +3 -0
- package/api/resources/files/client/requests/FilesListRequest.d.ts +2 -0
- package/api/resources/files/client/requests/FilesRetrieveRequest.d.ts +2 -0
- package/api/resources/files/client/requests/FilesUploadRequest.d.ts +4 -0
- package/api/resources/files/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +9 -0
- package/api/resources/index.js +10 -1
- package/api/resources/parseRuns/client/Client.d.ts +2 -1
- package/api/resources/parseRuns/client/Client.js +15 -7
- package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.d.ts +8 -0
- package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.js +3 -0
- package/api/resources/parseRuns/client/requests/ParseRunsRetrieveRequest.d.ts +2 -0
- package/api/resources/parseRuns/client/requests/index.d.ts +1 -0
- package/api/resources/processor/client/Client.js +22 -4
- package/api/resources/processor/client/requests/ProcessorListRequest.d.ts +2 -0
- package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +2 -0
- package/api/resources/processorRun/client/Client.d.ts +6 -3
- package/api/resources/processorRun/client/Client.js +35 -17
- package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.d.ts +8 -0
- package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.js +3 -0
- package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.d.ts +8 -0
- package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.js +3 -0
- package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.d.ts +8 -0
- package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.js +3 -0
- package/api/resources/processorRun/client/requests/ProcessorRunListRequest.d.ts +2 -0
- package/api/resources/processorRun/client/requests/index.d.ts +3 -0
- package/api/resources/processorVersion/client/Client.d.ts +4 -2
- package/api/resources/processorVersion/client/Client.js +37 -12
- package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +2 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.d.ts +8 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.js +3 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.d.ts +8 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.js +3 -0
- package/api/resources/processorVersion/client/requests/index.d.ts +2 -0
- package/api/resources/splitRuns/client/Client.d.ts +6 -3
- package/api/resources/splitRuns/client/Client.js +35 -17
- package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.d.ts +8 -0
- package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.js +3 -0
- package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.d.ts +8 -0
- package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.js +3 -0
- package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +2 -0
- package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.js +3 -0
- package/api/resources/splitRuns/client/requests/index.d.ts +3 -0
- package/api/resources/splitterVersions/client/Client.d.ts +2 -1
- package/api/resources/splitterVersions/client/Client.js +32 -9
- package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +2 -0
- package/api/resources/splitterVersions/client/requests/SplitterVersionsListRequest.d.ts +2 -0
- package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.d.ts +8 -0
- package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.js +3 -0
- package/api/resources/splitterVersions/client/requests/index.d.ts +1 -0
- package/api/resources/splitters/client/Client.d.ts +2 -1
- package/api/resources/splitters/client/Client.js +32 -9
- package/api/resources/splitters/client/requests/SplittersListRequest.d.ts +2 -0
- package/api/resources/splitters/client/requests/SplittersRetrieveRequest.d.ts +8 -0
- package/api/resources/splitters/client/requests/SplittersRetrieveRequest.js +3 -0
- package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +2 -0
- package/api/resources/splitters/client/requests/index.d.ts +1 -0
- package/api/resources/webhookEndpoints/client/Client.d.ts +4 -2
- package/api/resources/webhookEndpoints/client/Client.js +42 -14
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +8 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +2 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +8 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +2 -0
- package/api/resources/webhookEndpoints/client/requests/index.d.ts +2 -0
- package/api/resources/webhookSubscriptions/client/Client.d.ts +4 -2
- package/api/resources/webhookSubscriptions/client/Client.js +42 -14
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.d.ts +8 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.js +3 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +2 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.d.ts +8 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.js +3 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +2 -0
- package/api/resources/webhookSubscriptions/client/requests/index.d.ts +2 -0
- package/api/resources/workflowRuns/client/Client.d.ts +6 -3
- package/api/resources/workflowRuns/client/Client.js +52 -19
- package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.d.ts +8 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.js +3 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.d.ts +8 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.js +3 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +2 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.js +3 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +2 -0
- package/api/resources/workflowRuns/client/requests/index.d.ts +3 -0
- package/api/resources/workflowVersions/client/Client.d.ts +85 -0
- package/api/resources/workflowVersions/client/Client.js +287 -0
- package/api/resources/workflowVersions/client/index.d.ts +1 -0
- package/api/resources/workflowVersions/client/index.js +17 -0
- package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.d.ts +17 -0
- package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.js +3 -0
- package/api/resources/workflowVersions/client/requests/WorkflowVersionsListRequest.d.ts +12 -0
- package/api/resources/workflowVersions/client/requests/WorkflowVersionsListRequest.js +3 -0
- package/api/resources/workflowVersions/client/requests/index.d.ts +2 -0
- package/api/resources/workflowVersions/client/requests/index.js +2 -0
- package/api/resources/workflowVersions/index.d.ts +2 -0
- package/api/resources/workflowVersions/index.js +18 -0
- package/api/resources/workflowVersions/types/WorkflowVersionsListResponse.d.ts +6 -0
- package/api/resources/workflowVersions/types/WorkflowVersionsListResponse.js +3 -0
- package/api/resources/workflowVersions/types/index.d.ts +1 -0
- package/api/resources/workflowVersions/types/index.js +17 -0
- package/api/resources/workflows/client/Client.d.ts +124 -2
- package/api/resources/workflows/client/Client.js +281 -2
- package/api/resources/workflows/client/requests/WorkflowsCreateRequest.d.ts +52 -1
- package/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts +13 -0
- package/api/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
- package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.d.ts +28 -0
- package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.js +3 -0
- package/api/resources/workflows/client/requests/index.d.ts +2 -0
- package/api/resources/workflows/index.d.ts +1 -0
- package/api/resources/workflows/index.js +1 -0
- package/api/resources/workflows/types/WorkflowsListResponse.d.ts +6 -0
- package/api/resources/workflows/types/WorkflowsListResponse.js +3 -0
- package/api/resources/workflows/types/index.d.ts +1 -0
- package/api/resources/workflows/types/index.js +17 -0
- package/api/types/BarcodeDetails.d.ts +13 -0
- package/api/types/BarcodeDetails.js +3 -0
- package/api/types/Block.d.ts +6 -1
- package/api/types/BlockDetails.d.ts +1 -1
- package/api/types/BlockMetadata.d.ts +2 -0
- package/api/types/BlockMetadataTextDirection.d.ts +6 -0
- package/api/types/BlockMetadataTextDirection.js +9 -0
- package/api/types/BlockType.d.ts +11 -1
- package/api/types/BlockType.js +11 -1
- package/api/types/ClassificationNextEntry.d.ts +11 -0
- package/api/types/ClassificationNextEntry.js +3 -0
- package/api/types/ClassifierRef.d.ts +9 -0
- package/api/types/ClassifierRef.js +3 -0
- package/api/types/ClassifyStepDefinition.d.ts +27 -0
- package/api/types/ClassifyStepDefinition.js +3 -0
- package/api/types/ClassifyStepDefinitionConfig.d.ts +13 -0
- package/api/types/ClassifyStepDefinitionConfig.js +3 -0
- package/api/types/CollectStepDefinition.d.ts +10 -0
- package/api/types/CollectStepDefinition.js +3 -0
- package/api/types/ConditionalExtractStepDefinition.d.ts +15 -0
- package/api/types/ConditionalExtractStepDefinition.js +3 -0
- package/api/types/ConditionalExtractStepDefinitionConfig.d.ts +12 -0
- package/api/types/ConditionalExtractStepDefinitionConfig.js +3 -0
- package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.d.ts +11 -0
- package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.js +3 -0
- package/api/types/ConditionalNextEntry.d.ts +11 -0
- package/api/types/ConditionalNextEntry.js +3 -0
- package/api/types/ConditionalStepDefinition.d.ts +16 -0
- package/api/types/ConditionalStepDefinition.js +3 -0
- package/api/types/ConditionalStepDefinitionConfig.d.ts +9 -0
- package/api/types/ConditionalStepDefinitionConfig.js +3 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItem.d.ts +24 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItem.js +3 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.d.ts +14 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.js +17 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItemType.d.ts +6 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItemType.js +9 -0
- package/api/types/EditConditionalClause.d.ts +22 -0
- package/api/types/EditConditionalClause.js +3 -0
- package/api/types/EditConditionalObjectProperty.d.ts +16 -0
- package/api/types/EditConditionalObjectProperty.js +3 -0
- package/api/types/EditConditionalProperty.d.ts +51 -0
- package/api/types/EditConditionalProperty.js +3 -0
- package/api/types/EditConfig.d.ts +2 -0
- package/api/types/EditDependentRequired.d.ts +4 -0
- package/api/types/EditDependentRequired.js +3 -0
- package/api/types/EditJson.d.ts +2 -0
- package/api/types/EditJsonExtendEditImage.d.ts +7 -0
- package/api/types/EditJsonExtendEditImage.js +3 -0
- package/api/types/EditRootJson.d.ts +14 -0
- package/api/types/EditSchemaGenerationConfig.d.ts +15 -0
- package/api/types/EditSchemaGenerationConfig.js +3 -0
- package/api/types/EditSchemaGenerationConfigAdvancedOptions.d.ts +11 -0
- package/api/types/EditSchemaGenerationConfigAdvancedOptions.js +3 -0
- package/api/types/EditSchemaGenerationMappingMatch.d.ts +9 -0
- package/api/types/EditSchemaGenerationMappingMatch.js +3 -0
- package/api/types/EditSchemaGenerationMappingResult.d.ts +12 -0
- package/api/types/EditSchemaGenerationMappingResult.js +3 -0
- package/api/types/EditSchemaGenerationResponse.d.ts +12 -0
- package/api/types/EditSchemaGenerationResponse.js +3 -0
- package/api/types/ExternalDataValidationStepDefinition.d.ts +13 -0
- package/api/types/ExternalDataValidationStepDefinition.js +3 -0
- package/api/types/ExternalDataValidationStepDefinitionConfig.d.ts +18 -0
- package/api/types/ExternalDataValidationStepDefinitionConfig.js +3 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.d.ts +10 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.js +13 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.d.ts +23 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.js +3 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.d.ts +10 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.js +13 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsMethod.d.ts +6 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsMethod.js +9 -0
- package/api/types/ExtractStepDefinition.d.ts +15 -0
- package/api/types/ExtractStepDefinition.js +3 -0
- package/api/types/ExtractStepDefinitionConfig.d.ts +7 -0
- package/api/types/ExtractStepDefinitionConfig.js +3 -0
- package/api/types/ExtractorRef.d.ts +9 -0
- package/api/types/ExtractorRef.js +3 -0
- package/api/types/FileConversionStepDefinition.d.ts +11 -0
- package/api/types/FileConversionStepDefinition.js +3 -0
- package/api/types/FileConversionStepDefinitionConfig.d.ts +9 -0
- package/api/types/FileConversionStepDefinitionConfig.js +3 -0
- package/api/types/FileConversionStepDefinitionConfigFailureBehavior.d.ts +10 -0
- package/api/types/FileConversionStepDefinitionConfigFailureBehavior.js +13 -0
- package/api/types/FileFromUrl.d.ts +3 -0
- package/api/types/FileFromUrlSettings.d.ts +7 -0
- package/api/types/FileFromUrlSettings.js +3 -0
- package/api/types/HumanReviewStepDefinition.d.ts +10 -0
- package/api/types/HumanReviewStepDefinition.js +3 -0
- package/api/types/KeyValueDetails.d.ts +7 -0
- package/api/types/KeyValueDetails.js +3 -0
- package/api/types/MergeExtractStepDefinition.d.ts +11 -0
- package/api/types/MergeExtractStepDefinition.js +3 -0
- package/api/types/MergeExtractStepDefinitionConfig.d.ts +9 -0
- package/api/types/MergeExtractStepDefinitionConfig.js +3 -0
- package/api/types/MergeExtractStepDefinitionConfigMergeOrder.d.ts +12 -0
- package/api/types/MergeExtractStepDefinitionConfigMergeOrder.js +15 -0
- package/api/types/ParseConfigAdvancedOptions.d.ts +15 -0
- package/api/types/ParseConfigAdvancedOptionsEnrichmentFormat.d.ts +11 -0
- package/api/types/ParseConfigAdvancedOptionsEnrichmentFormat.js +14 -0
- package/api/types/ParseConfigAdvancedOptionsImageConversionQuality.d.ts +13 -0
- package/api/types/ParseConfigAdvancedOptionsImageConversionQuality.js +16 -0
- package/api/types/ParseConfigBlockOptions.d.ts +4 -0
- package/api/types/ParseConfigBlockOptionsBarcodes.d.ts +9 -0
- package/api/types/ParseConfigBlockOptionsBarcodes.js +3 -0
- package/api/types/ParseConfigBlockOptionsFigures.d.ts +2 -0
- package/api/types/ParseConfigBlockOptionsKeyValue.d.ts +7 -0
- package/api/types/ParseConfigBlockOptionsKeyValue.js +3 -0
- package/api/types/ParseStepDefinition.d.ts +11 -0
- package/api/types/ParseStepDefinition.js +3 -0
- package/api/types/ParseStepDefinitionConfig.d.ts +4 -0
- package/api/types/ParseStepDefinitionConfig.js +3 -0
- package/api/types/RuleValidationNextEntry.d.ts +12 -0
- package/api/types/RuleValidationNextEntry.js +3 -0
- package/api/types/RuleValidationNextEntryResult.d.ts +6 -0
- package/api/types/RuleValidationNextEntryResult.js +9 -0
- package/api/types/RuleValidationStepDefinition.d.ts +17 -0
- package/api/types/RuleValidationStepDefinition.js +3 -0
- package/api/types/RuleValidationStepDefinitionConfig.d.ts +12 -0
- package/api/types/RuleValidationStepDefinitionConfig.js +3 -0
- package/api/types/RuleValidationStepDefinitionConfigRulesItem.d.ts +10 -0
- package/api/types/RuleValidationStepDefinitionConfigRulesItem.js +3 -0
- package/api/types/SimpleNextEntry.d.ts +7 -0
- package/api/types/SimpleNextEntry.js +3 -0
- package/api/types/SplitStepDefinition.d.ts +27 -0
- package/api/types/SplitStepDefinition.js +3 -0
- package/api/types/SplitStepDefinitionConfig.d.ts +13 -0
- package/api/types/SplitStepDefinitionConfig.js +3 -0
- package/api/types/SplitterRef.d.ts +9 -0
- package/api/types/SplitterRef.js +3 -0
- package/api/types/TriggerStepDefinition.d.ts +12 -0
- package/api/types/TriggerStepDefinition.js +3 -0
- package/api/types/WebhookResponseStepDefinition.d.ts +8 -0
- package/api/types/WebhookResponseStepDefinition.js +3 -0
- package/api/types/Workflow.d.ts +10 -11
- package/api/types/WorkflowStepBase.d.ts +2 -0
- package/api/types/WorkflowStepDefinition.d.ts +51 -0
- package/api/types/WorkflowStepDefinition.js +3 -0
- package/api/types/WorkflowSummary.d.ts +9 -11
- package/api/types/WorkflowVersion.d.ts +11 -16
- package/api/types/WorkflowVersionSummary.d.ts +9 -16
- package/api/types/index.d.ts +62 -0
- package/api/types/index.js +62 -0
- package/package.json +1 -1
- package/reference.md +871 -75
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/resources/classifyRuns/ClassifyRunsWrapper.js +1 -1
- package/wrapper/resources/classifyRuns/ClassifyRunsWrapper.test.js +2 -2
- package/wrapper/resources/editRuns/EditRunsWrapper.js +1 -1
- package/wrapper/resources/editRuns/EditRunsWrapper.test.js +2 -2
- package/wrapper/resources/extractRuns/ExtractRunsWrapper.js +1 -1
- package/wrapper/resources/extractRuns/ExtractRunsWrapper.test.js +2 -2
- package/wrapper/resources/splitRuns/SplitRunsWrapper.js +1 -1
- package/wrapper/resources/splitRuns/SplitRunsWrapper.test.js +2 -2
- package/wrapper/resources/workflowRuns/WorkflowRunsWrapper.js +1 -1
- package/wrapper/resources/workflowRuns/WorkflowRunsWrapper.test.js +5 -2
- package/wrapper/webhooks/Webhooks.test.js +3 -0
package/BaseClient.js
CHANGED
|
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
|
|
|
44
44
|
const headers = (0, headers_1.mergeHeaders)({
|
|
45
45
|
"X-Fern-Language": "JavaScript",
|
|
46
46
|
"X-Fern-SDK-Name": "extend-ai",
|
|
47
|
-
"X-Fern-SDK-Version": "1.
|
|
48
|
-
"User-Agent": "extend-ai/1.
|
|
47
|
+
"X-Fern-SDK-Version": "1.7.0",
|
|
48
|
+
"User-Agent": "extend-ai/1.7.0",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
"x-extend-api-version": (_a = options === null || options === void 0 ? void 0 : options.extendApiVersion) !== null && _a !== void 0 ? _a : "2026-02-09",
|
package/Client.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ClassifiersClient } from "./api/resources/classifiers/client/Client";
|
|
|
4
4
|
import { ClassifierVersionsClient } from "./api/resources/classifierVersions/client/Client";
|
|
5
5
|
import { ClassifyRunsClient } from "./api/resources/classifyRuns/client/Client";
|
|
6
6
|
import { EditRunsClient } from "./api/resources/editRuns/client/Client";
|
|
7
|
+
import { EditSchemasClient } from "./api/resources/editSchemas/client/Client";
|
|
7
8
|
import { EvaluationSetItemsClient } from "./api/resources/evaluationSetItems/client/Client";
|
|
8
9
|
import { EvaluationSetRunsClient } from "./api/resources/evaluationSetRuns/client/Client";
|
|
9
10
|
import { EvaluationSetsClient } from "./api/resources/evaluationSets/client/Client";
|
|
@@ -22,6 +23,7 @@ import { WebhookEndpointsClient } from "./api/resources/webhookEndpoints/client/
|
|
|
22
23
|
import { WebhookSubscriptionsClient } from "./api/resources/webhookSubscriptions/client/Client";
|
|
23
24
|
import { WorkflowRunsClient } from "./api/resources/workflowRuns/client/Client";
|
|
24
25
|
import { WorkflowsClient } from "./api/resources/workflows/client/Client";
|
|
26
|
+
import { WorkflowVersionsClient } from "./api/resources/workflowVersions/client/Client";
|
|
25
27
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
|
|
26
28
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient";
|
|
27
29
|
import * as core from "./core";
|
|
@@ -35,6 +37,7 @@ export declare class ExtendClient {
|
|
|
35
37
|
protected _files: FilesClient | undefined;
|
|
36
38
|
protected _parseRuns: ParseRunsClient | undefined;
|
|
37
39
|
protected _editRuns: EditRunsClient | undefined;
|
|
40
|
+
protected _editSchemas: EditSchemasClient | undefined;
|
|
38
41
|
protected _extractRuns: ExtractRunsClient | undefined;
|
|
39
42
|
protected _extractors: ExtractorsClient | undefined;
|
|
40
43
|
protected _extractorVersions: ExtractorVersionsClient | undefined;
|
|
@@ -45,6 +48,7 @@ export declare class ExtendClient {
|
|
|
45
48
|
protected _splitters: SplittersClient | undefined;
|
|
46
49
|
protected _splitterVersions: SplitterVersionsClient | undefined;
|
|
47
50
|
protected _workflows: WorkflowsClient | undefined;
|
|
51
|
+
protected _workflowVersions: WorkflowVersionsClient | undefined;
|
|
48
52
|
protected _workflowRuns: WorkflowRunsClient | undefined;
|
|
49
53
|
protected _processorRun: ProcessorRunClient | undefined;
|
|
50
54
|
protected _processor: ProcessorClient | undefined;
|
|
@@ -59,6 +63,7 @@ export declare class ExtendClient {
|
|
|
59
63
|
get files(): FilesClient;
|
|
60
64
|
get parseRuns(): ParseRunsClient;
|
|
61
65
|
get editRuns(): EditRunsClient;
|
|
66
|
+
get editSchemas(): EditSchemasClient;
|
|
62
67
|
get extractRuns(): ExtractRunsClient;
|
|
63
68
|
get extractors(): ExtractorsClient;
|
|
64
69
|
get extractorVersions(): ExtractorVersionsClient;
|
|
@@ -69,6 +74,7 @@ export declare class ExtendClient {
|
|
|
69
74
|
get splitters(): SplittersClient;
|
|
70
75
|
get splitterVersions(): SplitterVersionsClient;
|
|
71
76
|
get workflows(): WorkflowsClient;
|
|
77
|
+
get workflowVersions(): WorkflowVersionsClient;
|
|
72
78
|
get workflowRuns(): WorkflowRunsClient;
|
|
73
79
|
get processorRun(): ProcessorRunClient;
|
|
74
80
|
get processor(): ProcessorClient;
|
package/Client.js
CHANGED
|
@@ -61,24 +61,26 @@ const Client_2 = require("./api/resources/classifiers/client/Client");
|
|
|
61
61
|
const Client_3 = require("./api/resources/classifierVersions/client/Client");
|
|
62
62
|
const Client_4 = require("./api/resources/classifyRuns/client/Client");
|
|
63
63
|
const Client_5 = require("./api/resources/editRuns/client/Client");
|
|
64
|
-
const Client_6 = require("./api/resources/
|
|
65
|
-
const Client_7 = require("./api/resources/
|
|
66
|
-
const Client_8 = require("./api/resources/
|
|
67
|
-
const Client_9 = require("./api/resources/
|
|
68
|
-
const Client_10 = require("./api/resources/
|
|
69
|
-
const Client_11 = require("./api/resources/
|
|
70
|
-
const Client_12 = require("./api/resources/
|
|
71
|
-
const Client_13 = require("./api/resources/
|
|
72
|
-
const Client_14 = require("./api/resources/
|
|
73
|
-
const Client_15 = require("./api/resources/
|
|
74
|
-
const Client_16 = require("./api/resources/
|
|
75
|
-
const Client_17 = require("./api/resources/
|
|
76
|
-
const Client_18 = require("./api/resources/
|
|
77
|
-
const Client_19 = require("./api/resources/
|
|
78
|
-
const Client_20 = require("./api/resources/
|
|
79
|
-
const Client_21 = require("./api/resources/
|
|
80
|
-
const Client_22 = require("./api/resources/
|
|
81
|
-
const Client_23 = require("./api/resources/
|
|
64
|
+
const Client_6 = require("./api/resources/editSchemas/client/Client");
|
|
65
|
+
const Client_7 = require("./api/resources/evaluationSetItems/client/Client");
|
|
66
|
+
const Client_8 = require("./api/resources/evaluationSetRuns/client/Client");
|
|
67
|
+
const Client_9 = require("./api/resources/evaluationSets/client/Client");
|
|
68
|
+
const Client_10 = require("./api/resources/extractors/client/Client");
|
|
69
|
+
const Client_11 = require("./api/resources/extractorVersions/client/Client");
|
|
70
|
+
const Client_12 = require("./api/resources/extractRuns/client/Client");
|
|
71
|
+
const Client_13 = require("./api/resources/files/client/Client");
|
|
72
|
+
const Client_14 = require("./api/resources/parseRuns/client/Client");
|
|
73
|
+
const Client_15 = require("./api/resources/processor/client/Client");
|
|
74
|
+
const Client_16 = require("./api/resources/processorRun/client/Client");
|
|
75
|
+
const Client_17 = require("./api/resources/processorVersion/client/Client");
|
|
76
|
+
const Client_18 = require("./api/resources/splitRuns/client/Client");
|
|
77
|
+
const Client_19 = require("./api/resources/splitters/client/Client");
|
|
78
|
+
const Client_20 = require("./api/resources/splitterVersions/client/Client");
|
|
79
|
+
const Client_21 = require("./api/resources/webhookEndpoints/client/Client");
|
|
80
|
+
const Client_22 = require("./api/resources/webhookSubscriptions/client/Client");
|
|
81
|
+
const Client_23 = require("./api/resources/workflowRuns/client/Client");
|
|
82
|
+
const Client_24 = require("./api/resources/workflows/client/Client");
|
|
83
|
+
const Client_25 = require("./api/resources/workflowVersions/client/Client");
|
|
82
84
|
const BaseClient_1 = require("./BaseClient");
|
|
83
85
|
const core = __importStar(require("./core"));
|
|
84
86
|
const headers_1 = require("./core/headers");
|
|
@@ -91,27 +93,31 @@ class ExtendClient {
|
|
|
91
93
|
}
|
|
92
94
|
get files() {
|
|
93
95
|
var _a;
|
|
94
|
-
return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new
|
|
96
|
+
return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_13.FilesClient(this._options)));
|
|
95
97
|
}
|
|
96
98
|
get parseRuns() {
|
|
97
99
|
var _a;
|
|
98
|
-
return ((_a = this._parseRuns) !== null && _a !== void 0 ? _a : (this._parseRuns = new
|
|
100
|
+
return ((_a = this._parseRuns) !== null && _a !== void 0 ? _a : (this._parseRuns = new Client_14.ParseRunsClient(this._options)));
|
|
99
101
|
}
|
|
100
102
|
get editRuns() {
|
|
101
103
|
var _a;
|
|
102
104
|
return ((_a = this._editRuns) !== null && _a !== void 0 ? _a : (this._editRuns = new Client_5.EditRunsClient(this._options)));
|
|
103
105
|
}
|
|
106
|
+
get editSchemas() {
|
|
107
|
+
var _a;
|
|
108
|
+
return ((_a = this._editSchemas) !== null && _a !== void 0 ? _a : (this._editSchemas = new Client_6.EditSchemasClient(this._options)));
|
|
109
|
+
}
|
|
104
110
|
get extractRuns() {
|
|
105
111
|
var _a;
|
|
106
|
-
return ((_a = this._extractRuns) !== null && _a !== void 0 ? _a : (this._extractRuns = new
|
|
112
|
+
return ((_a = this._extractRuns) !== null && _a !== void 0 ? _a : (this._extractRuns = new Client_12.ExtractRunsClient(this._options)));
|
|
107
113
|
}
|
|
108
114
|
get extractors() {
|
|
109
115
|
var _a;
|
|
110
|
-
return ((_a = this._extractors) !== null && _a !== void 0 ? _a : (this._extractors = new
|
|
116
|
+
return ((_a = this._extractors) !== null && _a !== void 0 ? _a : (this._extractors = new Client_10.ExtractorsClient(this._options)));
|
|
111
117
|
}
|
|
112
118
|
get extractorVersions() {
|
|
113
119
|
var _a;
|
|
114
|
-
return ((_a = this._extractorVersions) !== null && _a !== void 0 ? _a : (this._extractorVersions = new
|
|
120
|
+
return ((_a = this._extractorVersions) !== null && _a !== void 0 ? _a : (this._extractorVersions = new Client_11.ExtractorVersionsClient(this._options)));
|
|
115
121
|
}
|
|
116
122
|
get classifyRuns() {
|
|
117
123
|
var _a;
|
|
@@ -127,35 +133,39 @@ class ExtendClient {
|
|
|
127
133
|
}
|
|
128
134
|
get splitRuns() {
|
|
129
135
|
var _a;
|
|
130
|
-
return ((_a = this._splitRuns) !== null && _a !== void 0 ? _a : (this._splitRuns = new
|
|
136
|
+
return ((_a = this._splitRuns) !== null && _a !== void 0 ? _a : (this._splitRuns = new Client_18.SplitRunsClient(this._options)));
|
|
131
137
|
}
|
|
132
138
|
get splitters() {
|
|
133
139
|
var _a;
|
|
134
|
-
return ((_a = this._splitters) !== null && _a !== void 0 ? _a : (this._splitters = new
|
|
140
|
+
return ((_a = this._splitters) !== null && _a !== void 0 ? _a : (this._splitters = new Client_19.SplittersClient(this._options)));
|
|
135
141
|
}
|
|
136
142
|
get splitterVersions() {
|
|
137
143
|
var _a;
|
|
138
|
-
return ((_a = this._splitterVersions) !== null && _a !== void 0 ? _a : (this._splitterVersions = new
|
|
144
|
+
return ((_a = this._splitterVersions) !== null && _a !== void 0 ? _a : (this._splitterVersions = new Client_20.SplitterVersionsClient(this._options)));
|
|
139
145
|
}
|
|
140
146
|
get workflows() {
|
|
141
147
|
var _a;
|
|
142
|
-
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new
|
|
148
|
+
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_24.WorkflowsClient(this._options)));
|
|
149
|
+
}
|
|
150
|
+
get workflowVersions() {
|
|
151
|
+
var _a;
|
|
152
|
+
return ((_a = this._workflowVersions) !== null && _a !== void 0 ? _a : (this._workflowVersions = new Client_25.WorkflowVersionsClient(this._options)));
|
|
143
153
|
}
|
|
144
154
|
get workflowRuns() {
|
|
145
155
|
var _a;
|
|
146
|
-
return ((_a = this._workflowRuns) !== null && _a !== void 0 ? _a : (this._workflowRuns = new
|
|
156
|
+
return ((_a = this._workflowRuns) !== null && _a !== void 0 ? _a : (this._workflowRuns = new Client_23.WorkflowRunsClient(this._options)));
|
|
147
157
|
}
|
|
148
158
|
get processorRun() {
|
|
149
159
|
var _a;
|
|
150
|
-
return ((_a = this._processorRun) !== null && _a !== void 0 ? _a : (this._processorRun = new
|
|
160
|
+
return ((_a = this._processorRun) !== null && _a !== void 0 ? _a : (this._processorRun = new Client_16.ProcessorRunClient(this._options)));
|
|
151
161
|
}
|
|
152
162
|
get processor() {
|
|
153
163
|
var _a;
|
|
154
|
-
return ((_a = this._processor) !== null && _a !== void 0 ? _a : (this._processor = new
|
|
164
|
+
return ((_a = this._processor) !== null && _a !== void 0 ? _a : (this._processor = new Client_15.ProcessorClient(this._options)));
|
|
155
165
|
}
|
|
156
166
|
get processorVersion() {
|
|
157
167
|
var _a;
|
|
158
|
-
return ((_a = this._processorVersion) !== null && _a !== void 0 ? _a : (this._processorVersion = new
|
|
168
|
+
return ((_a = this._processorVersion) !== null && _a !== void 0 ? _a : (this._processorVersion = new Client_17.ProcessorVersionClient(this._options)));
|
|
159
169
|
}
|
|
160
170
|
get batchProcessorRun() {
|
|
161
171
|
var _a;
|
|
@@ -163,23 +173,23 @@ class ExtendClient {
|
|
|
163
173
|
}
|
|
164
174
|
get evaluationSets() {
|
|
165
175
|
var _a;
|
|
166
|
-
return ((_a = this._evaluationSets) !== null && _a !== void 0 ? _a : (this._evaluationSets = new
|
|
176
|
+
return ((_a = this._evaluationSets) !== null && _a !== void 0 ? _a : (this._evaluationSets = new Client_9.EvaluationSetsClient(this._options)));
|
|
167
177
|
}
|
|
168
178
|
get evaluationSetItems() {
|
|
169
179
|
var _a;
|
|
170
|
-
return ((_a = this._evaluationSetItems) !== null && _a !== void 0 ? _a : (this._evaluationSetItems = new
|
|
180
|
+
return ((_a = this._evaluationSetItems) !== null && _a !== void 0 ? _a : (this._evaluationSetItems = new Client_7.EvaluationSetItemsClient(this._options)));
|
|
171
181
|
}
|
|
172
182
|
get evaluationSetRuns() {
|
|
173
183
|
var _a;
|
|
174
|
-
return ((_a = this._evaluationSetRuns) !== null && _a !== void 0 ? _a : (this._evaluationSetRuns = new
|
|
184
|
+
return ((_a = this._evaluationSetRuns) !== null && _a !== void 0 ? _a : (this._evaluationSetRuns = new Client_8.EvaluationSetRunsClient(this._options)));
|
|
175
185
|
}
|
|
176
186
|
get webhookEndpoints() {
|
|
177
187
|
var _a;
|
|
178
|
-
return ((_a = this._webhookEndpoints) !== null && _a !== void 0 ? _a : (this._webhookEndpoints = new
|
|
188
|
+
return ((_a = this._webhookEndpoints) !== null && _a !== void 0 ? _a : (this._webhookEndpoints = new Client_21.WebhookEndpointsClient(this._options)));
|
|
179
189
|
}
|
|
180
190
|
get webhookSubscriptions() {
|
|
181
191
|
var _a;
|
|
182
|
-
return ((_a = this._webhookSubscriptions) !== null && _a !== void 0 ? _a : (this._webhookSubscriptions = new
|
|
192
|
+
return ((_a = this._webhookSubscriptions) !== null && _a !== void 0 ? _a : (this._webhookSubscriptions = new Client_22.WebhookSubscriptionsClient(this._options)));
|
|
183
193
|
}
|
|
184
194
|
/**
|
|
185
195
|
* Parse a file synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
|
|
@@ -216,12 +226,15 @@ class ExtendClient {
|
|
|
216
226
|
__parse(request, requestOptions) {
|
|
217
227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
218
228
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
219
|
-
const { responseType } = request, _body = __rest(request, ["responseType"]);
|
|
229
|
+
const { responseType, "x-extend-workspace-id": extendWorkspaceId } = request, _body = __rest(request, ["responseType", "x-extend-workspace-id"]);
|
|
220
230
|
const _queryParams = {
|
|
221
231
|
responseType: responseType != null ? responseType : undefined,
|
|
222
232
|
};
|
|
223
233
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
224
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
234
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
235
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
236
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
237
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
225
238
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
226
239
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, "parse"),
|
|
227
240
|
method: "POST",
|
|
@@ -15,6 +15,8 @@ export interface ParseRequest {
|
|
|
15
15
|
* * `url` - Return a presigned URL to the parsed content in the response body
|
|
16
16
|
*/
|
|
17
17
|
responseType?: Extend.ParseRequestResponseType;
|
|
18
|
+
/** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
|
|
19
|
+
"x-extend-workspace-id"?: string;
|
|
18
20
|
/** The file to be parsed. Files can be provided as a URL or an Extend file ID. */
|
|
19
21
|
file: Extend.ParseRequestFile;
|
|
20
22
|
config?: Extend.ParseConfig;
|
|
@@ -18,6 +18,7 @@ export declare class BatchProcessorRunClient {
|
|
|
18
18
|
* @param {string} id - The unique identifier of the batch processor run to retrieve.
|
|
19
19
|
*
|
|
20
20
|
* Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
21
|
+
* @param {Extend.BatchProcessorRunGetRequest} request
|
|
21
22
|
* @param {BatchProcessorRunClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
23
|
*
|
|
23
24
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -27,6 +28,6 @@ export declare class BatchProcessorRunClient {
|
|
|
27
28
|
* @example
|
|
28
29
|
* await client.batchProcessorRun.get("bpr_id_here")
|
|
29
30
|
*/
|
|
30
|
-
get(id: string, requestOptions?: BatchProcessorRunClient.RequestOptions): core.HttpResponsePromise<Extend.BatchProcessorRunGetResponse>;
|
|
31
|
+
get(id: string, request?: Extend.BatchProcessorRunGetRequest, requestOptions?: BatchProcessorRunClient.RequestOptions): core.HttpResponsePromise<Extend.BatchProcessorRunGetResponse>;
|
|
31
32
|
private __get;
|
|
32
33
|
}
|
|
@@ -63,6 +63,7 @@ class BatchProcessorRunClient {
|
|
|
63
63
|
* @param {string} id - The unique identifier of the batch processor run to retrieve.
|
|
64
64
|
*
|
|
65
65
|
* Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
66
|
+
* @param {Extend.BatchProcessorRunGetRequest} request
|
|
66
67
|
* @param {BatchProcessorRunClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
68
|
*
|
|
68
69
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -72,14 +73,18 @@ class BatchProcessorRunClient {
|
|
|
72
73
|
* @example
|
|
73
74
|
* await client.batchProcessorRun.get("bpr_id_here")
|
|
74
75
|
*/
|
|
75
|
-
get(id, requestOptions) {
|
|
76
|
-
return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
|
|
76
|
+
get(id, request = {}, requestOptions) {
|
|
77
|
+
return core.HttpResponsePromise.fromPromise(this.__get(id, request, requestOptions));
|
|
77
78
|
}
|
|
78
|
-
__get(
|
|
79
|
-
return __awaiter(this,
|
|
79
|
+
__get(id_1) {
|
|
80
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
80
81
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
82
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
81
83
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
82
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
84
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
85
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
86
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
87
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
83
88
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
84
89
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `batch_processor_runs/${core.url.encodePathParam(id)}`),
|
|
85
90
|
method: "GET",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface BatchProcessorRunGetRequest {
|
|
6
|
+
/** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
|
|
7
|
+
"x-extend-workspace-id"?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BatchProcessorRunGetRequest } from "./BatchProcessorRunGetRequest";
|
|
@@ -74,6 +74,7 @@ export declare class ClassifierVersionsClient {
|
|
|
74
74
|
* @param {string} versionId - The ID of the specific classifier version.
|
|
75
75
|
*
|
|
76
76
|
* Example: `"clsv_QYk6jgHA_8CsO8rVWhyNC"`
|
|
77
|
+
* @param {Extend.ClassifierVersionsRetrieveRequest} request
|
|
77
78
|
* @param {ClassifierVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
79
|
*
|
|
79
80
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -88,6 +89,6 @@ export declare class ClassifierVersionsClient {
|
|
|
88
89
|
* @example
|
|
89
90
|
* await client.classifierVersions.retrieve("classifier_id_here", "classifier_version_id_here")
|
|
90
91
|
*/
|
|
91
|
-
retrieve(classifierId: string, versionId: string, requestOptions?: ClassifierVersionsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifierVersion>;
|
|
92
|
+
retrieve(classifierId: string, versionId: string, request?: Extend.ClassifierVersionsRetrieveRequest, requestOptions?: ClassifierVersionsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifierVersion>;
|
|
92
93
|
private __retrieve;
|
|
93
94
|
}
|
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.ClassifierVersionsClient = void 0;
|
|
47
58
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
@@ -86,14 +97,17 @@ class ClassifierVersionsClient {
|
|
|
86
97
|
__list(classifierId_1) {
|
|
87
98
|
return __awaiter(this, arguments, void 0, function* (classifierId, request = {}, requestOptions) {
|
|
88
99
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
89
|
-
const { sortDir, nextPageToken, maxPageSize } = request;
|
|
100
|
+
const { sortDir, nextPageToken, maxPageSize, "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
90
101
|
const _queryParams = {
|
|
91
102
|
sortDir: sortDir != null ? sortDir : undefined,
|
|
92
103
|
nextPageToken,
|
|
93
104
|
maxPageSize,
|
|
94
105
|
};
|
|
95
106
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
96
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
107
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
108
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
109
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
110
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
97
111
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
98
112
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `classifiers/${core.url.encodePathParam(classifierId)}/versions`),
|
|
99
113
|
method: "GET",
|
|
@@ -172,8 +186,12 @@ class ClassifierVersionsClient {
|
|
|
172
186
|
__create(classifierId, request, requestOptions) {
|
|
173
187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
174
188
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
189
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request, _body = __rest(request, ["x-extend-workspace-id"]);
|
|
175
190
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
176
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
191
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
192
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
193
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
194
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
177
195
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
178
196
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `classifiers/${core.url.encodePathParam(classifierId)}/versions`),
|
|
179
197
|
method: "POST",
|
|
@@ -181,7 +199,7 @@ class ClassifierVersionsClient {
|
|
|
181
199
|
contentType: "application/json",
|
|
182
200
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
183
201
|
requestType: "json",
|
|
184
|
-
body:
|
|
202
|
+
body: _body,
|
|
185
203
|
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 300) * 1000,
|
|
186
204
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
187
205
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -229,6 +247,7 @@ class ClassifierVersionsClient {
|
|
|
229
247
|
* @param {string} versionId - The ID of the specific classifier version.
|
|
230
248
|
*
|
|
231
249
|
* Example: `"clsv_QYk6jgHA_8CsO8rVWhyNC"`
|
|
250
|
+
* @param {Extend.ClassifierVersionsRetrieveRequest} request
|
|
232
251
|
* @param {ClassifierVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
233
252
|
*
|
|
234
253
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -243,14 +262,18 @@ class ClassifierVersionsClient {
|
|
|
243
262
|
* @example
|
|
244
263
|
* await client.classifierVersions.retrieve("classifier_id_here", "classifier_version_id_here")
|
|
245
264
|
*/
|
|
246
|
-
retrieve(classifierId, versionId, requestOptions) {
|
|
247
|
-
return core.HttpResponsePromise.fromPromise(this.__retrieve(classifierId, versionId, requestOptions));
|
|
265
|
+
retrieve(classifierId, versionId, request = {}, requestOptions) {
|
|
266
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieve(classifierId, versionId, request, requestOptions));
|
|
248
267
|
}
|
|
249
|
-
__retrieve(
|
|
250
|
-
return __awaiter(this,
|
|
268
|
+
__retrieve(classifierId_1, versionId_1) {
|
|
269
|
+
return __awaiter(this, arguments, void 0, function* (classifierId, versionId, request = {}, requestOptions) {
|
|
251
270
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
271
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
252
272
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
253
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
273
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
274
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
275
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
276
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
254
277
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
255
278
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `classifiers/${core.url.encodePathParam(classifierId)}/versions/${core.url.encodePathParam(versionId)}`),
|
|
256
279
|
method: "GET",
|
package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import type * as Extend from "../../../../index";
|
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface ClassifierVersionsCreateRequest {
|
|
10
|
+
/** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
|
|
11
|
+
"x-extend-workspace-id"?: string;
|
|
10
12
|
releaseType: Extend.ReleaseType;
|
|
11
13
|
description?: Extend.VersionDescription;
|
|
12
14
|
/** The configuration for this version of the classifier. */
|
|
@@ -9,4 +9,6 @@ export interface ClassifierVersionsListRequest {
|
|
|
9
9
|
sortDir?: Extend.SortDir;
|
|
10
10
|
nextPageToken?: Extend.NextPageToken;
|
|
11
11
|
maxPageSize?: Extend.MaxPageSize;
|
|
12
|
+
/** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
|
|
13
|
+
"x-extend-workspace-id"?: string;
|
|
12
14
|
}
|
package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ClassifierVersionsRetrieveRequest {
|
|
6
|
+
/** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
|
|
7
|
+
"x-extend-workspace-id"?: string;
|
|
8
|
+
}
|
|
@@ -77,6 +77,7 @@ export declare class ClassifiersClient {
|
|
|
77
77
|
* @param {string} id - The ID of the classifier to get.
|
|
78
78
|
*
|
|
79
79
|
* Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
80
|
+
* @param {Extend.ClassifiersRetrieveRequest} request
|
|
80
81
|
* @param {ClassifiersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
82
|
*
|
|
82
83
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -91,7 +92,7 @@ export declare class ClassifiersClient {
|
|
|
91
92
|
* @example
|
|
92
93
|
* await client.classifiers.retrieve("classifier_id_here")
|
|
93
94
|
*/
|
|
94
|
-
retrieve(id: string, requestOptions?: ClassifiersClient.RequestOptions): core.HttpResponsePromise<Extend.Classifier>;
|
|
95
|
+
retrieve(id: string, request?: Extend.ClassifiersRetrieveRequest, requestOptions?: ClassifiersClient.RequestOptions): core.HttpResponsePromise<Extend.Classifier>;
|
|
95
96
|
private __retrieve;
|
|
96
97
|
/**
|
|
97
98
|
* Update an existing classifier.
|
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.ClassifiersClient = void 0;
|
|
47
58
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
@@ -83,7 +94,7 @@ class ClassifiersClient {
|
|
|
83
94
|
__list() {
|
|
84
95
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
85
96
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
86
|
-
const { nextPageToken, maxPageSize, sortBy, sortDir } = request;
|
|
97
|
+
const { nextPageToken, maxPageSize, sortBy, sortDir, "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
87
98
|
const _queryParams = {
|
|
88
99
|
nextPageToken,
|
|
89
100
|
maxPageSize,
|
|
@@ -91,7 +102,10 @@ class ClassifiersClient {
|
|
|
91
102
|
sortDir: sortDir != null ? sortDir : undefined,
|
|
92
103
|
};
|
|
93
104
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
94
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
105
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
106
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
107
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
108
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
95
109
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
96
110
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, "classifiers"),
|
|
97
111
|
method: "GET",
|
|
@@ -230,6 +244,7 @@ class ClassifiersClient {
|
|
|
230
244
|
* @param {string} id - The ID of the classifier to get.
|
|
231
245
|
*
|
|
232
246
|
* Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
247
|
+
* @param {Extend.ClassifiersRetrieveRequest} request
|
|
233
248
|
* @param {ClassifiersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
234
249
|
*
|
|
235
250
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -244,14 +259,18 @@ class ClassifiersClient {
|
|
|
244
259
|
* @example
|
|
245
260
|
* await client.classifiers.retrieve("classifier_id_here")
|
|
246
261
|
*/
|
|
247
|
-
retrieve(id, requestOptions) {
|
|
248
|
-
return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions));
|
|
262
|
+
retrieve(id, request = {}, requestOptions) {
|
|
263
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions));
|
|
249
264
|
}
|
|
250
|
-
__retrieve(
|
|
251
|
-
return __awaiter(this,
|
|
265
|
+
__retrieve(id_1) {
|
|
266
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
252
267
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
268
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
253
269
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
254
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
270
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
271
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
272
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
273
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
255
274
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
256
275
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `classifiers/${core.url.encodePathParam(id)}`),
|
|
257
276
|
method: "GET",
|
|
@@ -324,8 +343,12 @@ class ClassifiersClient {
|
|
|
324
343
|
__update(id_1) {
|
|
325
344
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
326
345
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
346
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request, _body = __rest(request, ["x-extend-workspace-id"]);
|
|
327
347
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
328
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
348
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
349
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
350
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
351
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
329
352
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
330
353
|
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `classifiers/${core.url.encodePathParam(id)}`),
|
|
331
354
|
method: "POST",
|
|
@@ -333,7 +356,7 @@ class ClassifiersClient {
|
|
|
333
356
|
contentType: "application/json",
|
|
334
357
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
335
358
|
requestType: "json",
|
|
336
|
-
body:
|
|
359
|
+
body: _body,
|
|
337
360
|
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 300) * 1000,
|
|
338
361
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
339
362
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|