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
|
@@ -10,4 +10,6 @@ export interface ClassifiersListRequest {
|
|
|
10
10
|
maxPageSize?: Extend.MaxPageSize;
|
|
11
11
|
sortBy?: Extend.SortBy;
|
|
12
12
|
sortDir?: Extend.SortDir;
|
|
13
|
+
/** 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. */
|
|
14
|
+
"x-extend-workspace-id"?: string;
|
|
13
15
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ClassifiersRetrieveRequest {
|
|
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
|
+
}
|
|
@@ -6,6 +6,8 @@ import type * as Extend from "../../../../index";
|
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface ClassifiersUpdateRequest {
|
|
9
|
+
/** 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. */
|
|
10
|
+
"x-extend-workspace-id"?: string;
|
|
9
11
|
/** The new name of the classifier. */
|
|
10
12
|
name?: string;
|
|
11
13
|
/** The new configuration for the classifier. This will update the draft version of the classifier. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type { ClassifiersCreateRequest } from "./ClassifiersCreateRequest";
|
|
2
2
|
export type { ClassifiersListRequest } from "./ClassifiersListRequest";
|
|
3
|
+
export type { ClassifiersRetrieveRequest } from "./ClassifiersRetrieveRequest";
|
|
3
4
|
export type { ClassifiersUpdateRequest } from "./ClassifiersUpdateRequest";
|
|
@@ -71,6 +71,7 @@ export declare class ClassifyRunsClient {
|
|
|
71
71
|
* @param {string} id - The unique identifier for this classify run.
|
|
72
72
|
*
|
|
73
73
|
* Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
74
|
+
* @param {Extend.ClassifyRunsRetrieveRequest} request
|
|
74
75
|
* @param {ClassifyRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
76
|
*
|
|
76
77
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -85,7 +86,7 @@ export declare class ClassifyRunsClient {
|
|
|
85
86
|
* @example
|
|
86
87
|
* await client.classifyRuns.retrieve("classify_run_id_here")
|
|
87
88
|
*/
|
|
88
|
-
retrieve(id: string, requestOptions?: ClassifyRunsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifyRun>;
|
|
89
|
+
retrieve(id: string, request?: Extend.ClassifyRunsRetrieveRequest, requestOptions?: ClassifyRunsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifyRun>;
|
|
89
90
|
private __retrieve;
|
|
90
91
|
/**
|
|
91
92
|
* Delete a classify run and all associated data from Extend. This operation is permanent and cannot be undone.
|
|
@@ -93,6 +94,7 @@ export declare class ClassifyRunsClient {
|
|
|
93
94
|
* This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
|
|
94
95
|
*
|
|
95
96
|
* @param {string} id - The ID of the classify run.
|
|
97
|
+
* @param {Extend.ClassifyRunsDeleteRequest} request
|
|
96
98
|
* @param {ClassifyRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
99
|
*
|
|
98
100
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -107,7 +109,7 @@ export declare class ClassifyRunsClient {
|
|
|
107
109
|
* @example
|
|
108
110
|
* await client.classifyRuns.delete("id")
|
|
109
111
|
*/
|
|
110
|
-
delete(id: string, requestOptions?: ClassifyRunsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifyRunsDeleteResponse>;
|
|
112
|
+
delete(id: string, request?: Extend.ClassifyRunsDeleteRequest, requestOptions?: ClassifyRunsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifyRunsDeleteResponse>;
|
|
111
113
|
private __delete;
|
|
112
114
|
/**
|
|
113
115
|
* Cancel an in-progress classify run.
|
|
@@ -117,6 +119,7 @@ export declare class ClassifyRunsClient {
|
|
|
117
119
|
* @param {string} id - The ID of the classify run to cancel.
|
|
118
120
|
*
|
|
119
121
|
* Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
122
|
+
* @param {Extend.ClassifyRunsCancelRequest} request
|
|
120
123
|
* @param {ClassifyRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
124
|
*
|
|
122
125
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -131,6 +134,6 @@ export declare class ClassifyRunsClient {
|
|
|
131
134
|
* @example
|
|
132
135
|
* await client.classifyRuns.cancel("classify_run_id_here")
|
|
133
136
|
*/
|
|
134
|
-
cancel(id: string, requestOptions?: ClassifyRunsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifyRun>;
|
|
137
|
+
cancel(id: string, request?: Extend.ClassifyRunsCancelRequest, requestOptions?: ClassifyRunsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifyRun>;
|
|
135
138
|
private __cancel;
|
|
136
139
|
}
|
|
@@ -83,7 +83,7 @@ class ClassifyRunsClient {
|
|
|
83
83
|
__list() {
|
|
84
84
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
85
85
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
86
|
-
const { status, classifierId, sourceId, source, fileNameContains, sortBy, sortDir, nextPageToken, maxPageSize, } = request;
|
|
86
|
+
const { status, classifierId, sourceId, source, fileNameContains, sortBy, sortDir, nextPageToken, maxPageSize, "x-extend-workspace-id": extendWorkspaceId, } = request;
|
|
87
87
|
const _queryParams = {
|
|
88
88
|
status: status != null ? status : undefined,
|
|
89
89
|
classifierId,
|
|
@@ -96,7 +96,10 @@ class ClassifyRunsClient {
|
|
|
96
96
|
maxPageSize,
|
|
97
97
|
};
|
|
98
98
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
99
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
99
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
100
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
101
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
102
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
100
103
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
101
104
|
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, "classify_runs"),
|
|
102
105
|
method: "GET",
|
|
@@ -229,6 +232,7 @@ class ClassifyRunsClient {
|
|
|
229
232
|
* @param {string} id - The unique identifier for this classify run.
|
|
230
233
|
*
|
|
231
234
|
* Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
235
|
+
* @param {Extend.ClassifyRunsRetrieveRequest} request
|
|
232
236
|
* @param {ClassifyRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
233
237
|
*
|
|
234
238
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -243,14 +247,18 @@ class ClassifyRunsClient {
|
|
|
243
247
|
* @example
|
|
244
248
|
* await client.classifyRuns.retrieve("classify_run_id_here")
|
|
245
249
|
*/
|
|
246
|
-
retrieve(id, requestOptions) {
|
|
247
|
-
return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions));
|
|
250
|
+
retrieve(id, request = {}, requestOptions) {
|
|
251
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions));
|
|
248
252
|
}
|
|
249
|
-
__retrieve(
|
|
250
|
-
return __awaiter(this,
|
|
253
|
+
__retrieve(id_1) {
|
|
254
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
251
255
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
256
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
252
257
|
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)({
|
|
258
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
259
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
260
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
261
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
254
262
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
255
263
|
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, `classify_runs/${core.url.encodePathParam(id)}`),
|
|
256
264
|
method: "GET",
|
|
@@ -300,6 +308,7 @@ class ClassifyRunsClient {
|
|
|
300
308
|
* This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
|
|
301
309
|
*
|
|
302
310
|
* @param {string} id - The ID of the classify run.
|
|
311
|
+
* @param {Extend.ClassifyRunsDeleteRequest} request
|
|
303
312
|
* @param {ClassifyRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
304
313
|
*
|
|
305
314
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -314,14 +323,18 @@ class ClassifyRunsClient {
|
|
|
314
323
|
* @example
|
|
315
324
|
* await client.classifyRuns.delete("id")
|
|
316
325
|
*/
|
|
317
|
-
delete(id, requestOptions) {
|
|
318
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
|
|
326
|
+
delete(id, request = {}, requestOptions) {
|
|
327
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, request, requestOptions));
|
|
319
328
|
}
|
|
320
|
-
__delete(
|
|
321
|
-
return __awaiter(this,
|
|
329
|
+
__delete(id_1) {
|
|
330
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
322
331
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
332
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
323
333
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
324
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
334
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
335
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
336
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
337
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
325
338
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
326
339
|
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, `classify_runs/${core.url.encodePathParam(id)}`),
|
|
327
340
|
method: "DELETE",
|
|
@@ -373,6 +386,7 @@ class ClassifyRunsClient {
|
|
|
373
386
|
* @param {string} id - The ID of the classify run to cancel.
|
|
374
387
|
*
|
|
375
388
|
* Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
389
|
+
* @param {Extend.ClassifyRunsCancelRequest} request
|
|
376
390
|
* @param {ClassifyRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
377
391
|
*
|
|
378
392
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -387,14 +401,18 @@ class ClassifyRunsClient {
|
|
|
387
401
|
* @example
|
|
388
402
|
* await client.classifyRuns.cancel("classify_run_id_here")
|
|
389
403
|
*/
|
|
390
|
-
cancel(id, requestOptions) {
|
|
391
|
-
return core.HttpResponsePromise.fromPromise(this.__cancel(id, requestOptions));
|
|
404
|
+
cancel(id, request = {}, requestOptions) {
|
|
405
|
+
return core.HttpResponsePromise.fromPromise(this.__cancel(id, request, requestOptions));
|
|
392
406
|
}
|
|
393
|
-
__cancel(
|
|
394
|
-
return __awaiter(this,
|
|
407
|
+
__cancel(id_1) {
|
|
408
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
395
409
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
410
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
396
411
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
397
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
412
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
413
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
414
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
415
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
398
416
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
399
417
|
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, `classify_runs/${core.url.encodePathParam(id)}/cancel`),
|
|
400
418
|
method: "POST",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ClassifyRunsCancelRequest {
|
|
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,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ClassifyRunsDeleteRequest {
|
|
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
|
+
}
|
|
@@ -27,4 +27,6 @@ export interface ClassifyRunsListRequest {
|
|
|
27
27
|
sortDir?: Extend.SortDir;
|
|
28
28
|
nextPageToken?: Extend.NextPageToken;
|
|
29
29
|
maxPageSize?: Extend.MaxPageSize;
|
|
30
|
+
/** 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. */
|
|
31
|
+
"x-extend-workspace-id"?: string;
|
|
30
32
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ClassifyRunsRetrieveRequest {
|
|
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
|
+
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
export type { ClassifyRunsCancelRequest } from "./ClassifyRunsCancelRequest";
|
|
1
2
|
export type { ClassifyRunsCreateRequest } from "./ClassifyRunsCreateRequest";
|
|
3
|
+
export type { ClassifyRunsDeleteRequest } from "./ClassifyRunsDeleteRequest";
|
|
2
4
|
export type { ClassifyRunsListRequest } from "./ClassifyRunsListRequest";
|
|
5
|
+
export type { ClassifyRunsRetrieveRequest } from "./ClassifyRunsRetrieveRequest";
|
|
@@ -52,6 +52,7 @@ export declare class EditRunsClient {
|
|
|
52
52
|
* @param {string} id - The unique identifier for the edit run.
|
|
53
53
|
*
|
|
54
54
|
* Example: `"edr_xK9mLPqRtN3vS8wF5hB2cQ"`
|
|
55
|
+
* @param {Extend.EditRunsRetrieveRequest} request
|
|
55
56
|
* @param {EditRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
57
|
*
|
|
57
58
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -66,7 +67,7 @@ export declare class EditRunsClient {
|
|
|
66
67
|
* @example
|
|
67
68
|
* await client.editRuns.retrieve("edit_run_id_here")
|
|
68
69
|
*/
|
|
69
|
-
retrieve(id: string, requestOptions?: EditRunsClient.RequestOptions): core.HttpResponsePromise<Extend.EditRun>;
|
|
70
|
+
retrieve(id: string, request?: Extend.EditRunsRetrieveRequest, requestOptions?: EditRunsClient.RequestOptions): core.HttpResponsePromise<Extend.EditRun>;
|
|
70
71
|
private __retrieve;
|
|
71
72
|
/**
|
|
72
73
|
* Delete an edit run and all associated data from Extend. This operation is permanent and cannot be undone.
|
|
@@ -76,6 +77,7 @@ export declare class EditRunsClient {
|
|
|
76
77
|
* @param {string} id - The ID of the edit run to delete.
|
|
77
78
|
*
|
|
78
79
|
* Example: `"edr_xK9mLPqRtN3vS8wF5hB2cQ"`
|
|
80
|
+
* @param {Extend.EditRunsDeleteRequest} request
|
|
79
81
|
* @param {EditRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
82
|
*
|
|
81
83
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -90,6 +92,6 @@ export declare class EditRunsClient {
|
|
|
90
92
|
* @example
|
|
91
93
|
* await client.editRuns.delete("edit_run_id_here")
|
|
92
94
|
*/
|
|
93
|
-
delete(id: string, requestOptions?: EditRunsClient.RequestOptions): core.HttpResponsePromise<Extend.EditRunsDeleteResponse>;
|
|
95
|
+
delete(id: string, request?: Extend.EditRunsDeleteRequest, requestOptions?: EditRunsClient.RequestOptions): core.HttpResponsePromise<Extend.EditRunsDeleteResponse>;
|
|
94
96
|
private __delete;
|
|
95
97
|
}
|
|
@@ -149,6 +149,7 @@ class EditRunsClient {
|
|
|
149
149
|
* @param {string} id - The unique identifier for the edit run.
|
|
150
150
|
*
|
|
151
151
|
* Example: `"edr_xK9mLPqRtN3vS8wF5hB2cQ"`
|
|
152
|
+
* @param {Extend.EditRunsRetrieveRequest} request
|
|
152
153
|
* @param {EditRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
154
|
*
|
|
154
155
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -163,14 +164,18 @@ class EditRunsClient {
|
|
|
163
164
|
* @example
|
|
164
165
|
* await client.editRuns.retrieve("edit_run_id_here")
|
|
165
166
|
*/
|
|
166
|
-
retrieve(id, requestOptions) {
|
|
167
|
-
return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions));
|
|
167
|
+
retrieve(id, request = {}, requestOptions) {
|
|
168
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions));
|
|
168
169
|
}
|
|
169
|
-
__retrieve(
|
|
170
|
-
return __awaiter(this,
|
|
170
|
+
__retrieve(id_1) {
|
|
171
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
171
172
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
173
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
172
174
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
173
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
175
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
176
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
177
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
178
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
174
179
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
175
180
|
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, `edit_runs/${core.url.encodePathParam(id)}`),
|
|
176
181
|
method: "GET",
|
|
@@ -222,6 +227,7 @@ class EditRunsClient {
|
|
|
222
227
|
* @param {string} id - The ID of the edit run to delete.
|
|
223
228
|
*
|
|
224
229
|
* Example: `"edr_xK9mLPqRtN3vS8wF5hB2cQ"`
|
|
230
|
+
* @param {Extend.EditRunsDeleteRequest} request
|
|
225
231
|
* @param {EditRunsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
226
232
|
*
|
|
227
233
|
* @throws {@link Extend.BadRequestError}
|
|
@@ -236,14 +242,18 @@ class EditRunsClient {
|
|
|
236
242
|
* @example
|
|
237
243
|
* await client.editRuns.delete("edit_run_id_here")
|
|
238
244
|
*/
|
|
239
|
-
delete(id, requestOptions) {
|
|
240
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
|
|
245
|
+
delete(id, request = {}, requestOptions) {
|
|
246
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, request, requestOptions));
|
|
241
247
|
}
|
|
242
|
-
__delete(
|
|
243
|
-
return __awaiter(this,
|
|
248
|
+
__delete(id_1) {
|
|
249
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
244
250
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
251
|
+
const { "x-extend-workspace-id": extendWorkspaceId } = request;
|
|
245
252
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
246
|
-
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
253
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
254
|
+
"x-extend-workspace-id": extendWorkspaceId,
|
|
255
|
+
"x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
|
|
256
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
247
257
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
248
258
|
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, `edit_runs/${core.url.encodePathParam(id)}`),
|
|
249
259
|
method: "DELETE",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface EditRunsDeleteRequest {
|
|
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,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface EditRunsRetrieveRequest {
|
|
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,49 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../core";
|
|
4
|
+
import * as Extend from "../../../index";
|
|
5
|
+
export declare namespace EditSchemasClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class EditSchemasClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<EditSchemasClient.Options>;
|
|
12
|
+
constructor(options: EditSchemasClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Detect fields in a PDF form and synchronously return an edit schema payload.
|
|
15
|
+
*
|
|
16
|
+
* Use this endpoint when you want Extend to bootstrap an `EditRootJSON` schema from an existing form, optionally mapping an existing schema onto the detected fields.
|
|
17
|
+
*
|
|
18
|
+
* This endpoint returns the generated schema directly. There are no schema generation run resources to poll or delete.
|
|
19
|
+
*
|
|
20
|
+
* For more details, see the [Generate Edit Schema guide](https://docs.extend.ai/2026-02-09/product/editing/generate-edit-schema) and the [Edit File guide](https://docs.extend.ai/2026-02-09/product/editing/edit).
|
|
21
|
+
*
|
|
22
|
+
* @param {Extend.EditSchemasGenerateRequest} request
|
|
23
|
+
* @param {EditSchemasClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link Extend.BadRequestError}
|
|
26
|
+
* @throws {@link Extend.UnauthorizedError}
|
|
27
|
+
* @throws {@link Extend.PaymentRequiredError}
|
|
28
|
+
* @throws {@link Extend.ForbiddenError}
|
|
29
|
+
* @throws {@link Extend.NotFoundError}
|
|
30
|
+
* @throws {@link Extend.UnprocessableEntityError}
|
|
31
|
+
* @throws {@link Extend.TooManyRequestsError}
|
|
32
|
+
* @throws {@link Extend.InternalServerError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.editSchemas.generate({
|
|
36
|
+
* file: {
|
|
37
|
+
* url: "https://example.com/form.pdf"
|
|
38
|
+
* },
|
|
39
|
+
* config: {
|
|
40
|
+
* instructions: "Detect the form fields and use human-readable field names.",
|
|
41
|
+
* advancedOptions: {
|
|
42
|
+
* radioEnumsEnabled: true
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
generate(request: Extend.EditSchemasGenerateRequest, requestOptions?: EditSchemasClient.RequestOptions): core.HttpResponsePromise<Extend.EditSchemaGenerationResponse>;
|
|
48
|
+
private __generate;
|
|
49
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.EditSchemasClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
53
|
+
const Extend = __importStar(require("../../../index"));
|
|
54
|
+
class EditSchemasClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Detect fields in a PDF form and synchronously return an edit schema payload.
|
|
60
|
+
*
|
|
61
|
+
* Use this endpoint when you want Extend to bootstrap an `EditRootJSON` schema from an existing form, optionally mapping an existing schema onto the detected fields.
|
|
62
|
+
*
|
|
63
|
+
* This endpoint returns the generated schema directly. There are no schema generation run resources to poll or delete.
|
|
64
|
+
*
|
|
65
|
+
* For more details, see the [Generate Edit Schema guide](https://docs.extend.ai/2026-02-09/product/editing/generate-edit-schema) and the [Edit File guide](https://docs.extend.ai/2026-02-09/product/editing/edit).
|
|
66
|
+
*
|
|
67
|
+
* @param {Extend.EditSchemasGenerateRequest} request
|
|
68
|
+
* @param {EditSchemasClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link Extend.BadRequestError}
|
|
71
|
+
* @throws {@link Extend.UnauthorizedError}
|
|
72
|
+
* @throws {@link Extend.PaymentRequiredError}
|
|
73
|
+
* @throws {@link Extend.ForbiddenError}
|
|
74
|
+
* @throws {@link Extend.NotFoundError}
|
|
75
|
+
* @throws {@link Extend.UnprocessableEntityError}
|
|
76
|
+
* @throws {@link Extend.TooManyRequestsError}
|
|
77
|
+
* @throws {@link Extend.InternalServerError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.editSchemas.generate({
|
|
81
|
+
* file: {
|
|
82
|
+
* url: "https://example.com/form.pdf"
|
|
83
|
+
* },
|
|
84
|
+
* config: {
|
|
85
|
+
* instructions: "Detect the form fields and use human-readable field names.",
|
|
86
|
+
* advancedOptions: {
|
|
87
|
+
* radioEnumsEnabled: true
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* })
|
|
91
|
+
*/
|
|
92
|
+
generate(request, requestOptions) {
|
|
93
|
+
return core.HttpResponsePromise.fromPromise(this.__generate(request, requestOptions));
|
|
94
|
+
}
|
|
95
|
+
__generate(request, requestOptions) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
98
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
99
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
100
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
101
|
+
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, "edit_schemas/generate"),
|
|
102
|
+
method: "POST",
|
|
103
|
+
headers: _headers,
|
|
104
|
+
contentType: "application/json",
|
|
105
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
106
|
+
requestType: "json",
|
|
107
|
+
body: request,
|
|
108
|
+
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,
|
|
109
|
+
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,
|
|
110
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
111
|
+
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
112
|
+
logging: this._options.logging,
|
|
113
|
+
});
|
|
114
|
+
if (_response.ok) {
|
|
115
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
116
|
+
}
|
|
117
|
+
if (_response.error.reason === "status-code") {
|
|
118
|
+
switch (_response.error.statusCode) {
|
|
119
|
+
case 400:
|
|
120
|
+
throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
|
|
121
|
+
case 401:
|
|
122
|
+
throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
123
|
+
case 402:
|
|
124
|
+
throw new Extend.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
125
|
+
case 403:
|
|
126
|
+
throw new Extend.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
127
|
+
case 404:
|
|
128
|
+
throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
|
|
129
|
+
case 422:
|
|
130
|
+
throw new Extend.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
131
|
+
case 429:
|
|
132
|
+
throw new Extend.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
133
|
+
case 500:
|
|
134
|
+
throw new Extend.InternalServerError(_response.error.body, _response.rawResponse);
|
|
135
|
+
default:
|
|
136
|
+
throw new errors.ExtendError({
|
|
137
|
+
statusCode: _response.error.statusCode,
|
|
138
|
+
body: _response.error.body,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/edit_schemas/generate");
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.EditSchemasClient = EditSchemasClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|