|
6 | 6 | * Handles most basic operations of the library. |
7 | 7 | */ |
8 | 8 |
|
9 | | -namespace Mindee; |
| 9 | +namespace Mindee\V1; |
10 | 10 |
|
11 | 11 | use Exception; |
| 12 | +use Mindee\CustomSleepMixin; |
12 | 13 | use Mindee\Error\ErrorCode; |
13 | 14 | use Mindee\Error\MindeeApiException; |
14 | 15 | use Mindee\Error\MindeeClientException; |
15 | 16 | use Mindee\Error\MindeeException; |
16 | 17 | use Mindee\Error\MindeeHttpException; |
17 | | -use Mindee\Http\Endpoint; |
18 | | -use Mindee\Http\MindeeApi; |
19 | | -use Mindee\Http\MindeeWorkflowApi; |
20 | | -use Mindee\Http\ResponseValidation; |
21 | | -use Mindee\Http\WorkflowEndpoint; |
22 | 18 | use Mindee\Input\Base64Input; |
23 | 19 | use Mindee\Input\BytesInput; |
24 | 20 | use Mindee\Input\FileInput; |
|
35 | 31 | use Mindee\Parsing\Common\PredictResponse; |
36 | 32 | use Mindee\Parsing\Common\WorkflowResponse; |
37 | 33 | use Mindee\Product\Generated\GeneratedV1; |
| 34 | +use Mindee\V1\HTTP\Endpoint; |
| 35 | +use Mindee\V1\HTTP\MindeeAPI; |
| 36 | +use Mindee\V1\HTTP\MindeeWorkflowAPI; |
| 37 | +use Mindee\V1\HTTP\ResponseValidation; |
| 38 | +use Mindee\V1\HTTP\WorkflowEndpoint; |
38 | 39 | use ReflectionClass; |
39 | 40 | use ReflectionException; |
40 | 41 |
|
@@ -158,7 +159,7 @@ private function constructEndpoint( |
158 | 159 | ): Endpoint { |
159 | 160 | $endpointVersion = $endpointVersion != null && strlen($endpointVersion) > 0 ? $endpointVersion : '1'; |
160 | 161 |
|
161 | | - $endpointSettings = new MindeeApi($this->apiKey, $endpointName, $endpointOwner, $endpointVersion); |
| 162 | + $endpointSettings = new MindeeAPI($this->apiKey, $endpointName, $endpointOwner, $endpointVersion); |
162 | 163 |
|
163 | 164 | return new Endpoint($endpointName, $endpointOwner, $endpointVersion, $endpointSettings); |
164 | 165 | } |
@@ -329,7 +330,7 @@ private function makeWorkflowExecutionRequest( |
329 | 330 | string $workflowId, |
330 | 331 | PredictMethodOptions $options |
331 | 332 | ): WorkflowResponse { |
332 | | - $workflowRouterSettings = new MindeeWorkflowApi($this->apiKey, $workflowId); |
| 333 | + $workflowRouterSettings = new MindeeWorkflowAPI($this->apiKey, $workflowId); |
333 | 334 | $options->endpoint = new WorkflowEndpoint($workflowRouterSettings); |
334 | 335 | if (!$options->pageOptions->isEmpty()) { |
335 | 336 | if ($inputDoc instanceof LocalInputSource) { |
|
0 commit comments