@hautechai/sdk 2.36.0 → 2.37.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/dist/index.js CHANGED
@@ -10574,6 +10574,7 @@ __export(index_exports, {
10574
10574
  OperationOutputNumberKind: () => OperationOutputNumberKind,
10575
10575
  OperationOutputTextSingleKind: () => OperationOutputTextSingleKind,
10576
10576
  OperationOutputVideoSingleKind: () => OperationOutputVideoSingleKind,
10577
+ OperationStatusDtoStatus: () => OperationStatusDtoStatus,
10577
10578
  OperationsControllerListOperationsV1OrderBy: () => OperationsControllerListOperationsV1OrderBy,
10578
10579
  PipelineDtoKind: () => PipelineDtoKind,
10579
10580
  PipelineDtoStateStatus: () => PipelineDtoStateStatus,
@@ -10582,6 +10583,7 @@ __export(index_exports, {
10582
10583
  PipelineMapV1ResponseStatus: () => PipelineMapV1ResponseStatus,
10583
10584
  PipelinePreviewDtoKind: () => PipelinePreviewDtoKind,
10584
10585
  PipelinePreviewDtoStatus: () => PipelinePreviewDtoStatus,
10586
+ PipelineStatusDtoStatus: () => PipelineStatusDtoStatus,
10585
10587
  PipelinesControllerCountPipelinesV1Status: () => PipelinesControllerCountPipelinesV1Status,
10586
10588
  PipelinesControllerListPipelinesV1OrderBy: () => PipelinesControllerListPipelinesV1OrderBy,
10587
10589
  PipelinesControllerListPipelinesV1Status: () => PipelinesControllerListPipelinesV1Status,
@@ -11524,6 +11526,15 @@ var useImagesApi = () => {
11524
11526
 
11525
11527
  // src/autogenerated/operations/operations.ts
11526
11528
  var getOperations = () => {
11529
+ const operationsControllerGetOperationStatusV1 = (id, options) => {
11530
+ return axiosMutator(
11531
+ {
11532
+ url: `/v1/operations/${id}/status`,
11533
+ method: "GET"
11534
+ },
11535
+ options
11536
+ );
11537
+ };
11527
11538
  const operationsControllerGetOperationV1 = (id, options) => {
11528
11539
  return axiosMutator(
11529
11540
  {
@@ -12401,7 +12412,7 @@ var getOperations = () => {
12401
12412
  options
12402
12413
  );
12403
12414
  };
12404
- return { operationsControllerGetOperationV1, operationsControllerGetOperationsV1, operationsControllerListOperationsV1, operationsControllerUpdateMetadataV1, operationsControllerRunHauteLindaV1V1, operationsControllerRunHauteNaomiV1V1, operationsControllerRunInpaintKateV1V1, operationsControllerRunGptV1V1, operationsControllerRunGptV2V1, operationsControllerRunGptV3V1, operationsControllerRunTranslateV1V1, operationsControllerRunStringsTemplateV1V1, operationsControllerRunStringsSwitchV1V1, operationsControllerRunStringsSliceV1V1, operationsControllerRunStringsLengthV1V1, operationsControllerRunImagineKateV1V1, operationsControllerRunUpscaleV1V1, operationsControllerRunObjectDetectionV1V1, operationsControllerRunSegmentAnythingEmbeddingsV1V1, operationsControllerRunSegmentAnythingMaskV1V1, operationsControllerRunPoseEstimationV1V1, operationsControllerRunCutV1V1, operationsControllerRunCropV1V1, operationsControllerRunNoiseV1V1, operationsControllerRunResizeV1V1, operationsControllerRunImagesDownscaleV1V1, operationsControllerRunContrastV1V1, operationsControllerRunCompositeV1V1, operationsControllerRunVtonGiseleV1V1, operationsControllerRunNegateImageV1V1, operationsControllerRunEchoV1V1, operationsControllerRunMathV1V1, operationsControllerRunAnimateKling16ProV1V1, operationsControllerRunAnimateKling21V1V1, operationsControllerRunAnimateKling21StandardV1V1, operationsControllerRunAnimateKling21ProV1V1, operationsControllerRunAnimateCreatomateV1V1, operationsControllerRunOnecompilerV1V1, operationsControllerRunEditFluxKontextDevV1V1, operationsControllerRunVeo3V1V1, operationsControllerRunVeo3FastV1V1, operationsControllerRunVeo31V1V1, operationsControllerRunVeo31FastV1V1, operationsControllerRunPipelineMapV1V1, operationsControllerRunImagen4V1V1, operationsControllerRunTopazUpscaleV1V1, operationsControllerRunIdeogramCharacterV1V1, operationsControllerRunSeedream3V1V1, operationsControllerRunLumaPhotonV1V1, operationsControllerRunImagineFlux11ProUltraV1V1, operationsControllerRunSeedV1V1, operationsControllerRunGoogleNanoBananaV1V1, operationsControllerRunGoogleNanoBananaProEditV1V1, operationsControllerRunHauteNaomiTrainV1V1, operationsControllerRunHauteNaomiPrepareDatasetV1V1, operationsControllerRunFashnVton16V1V1, operationsControllerRunAlphabakeVtonV1V1, operationsControllerRunKlingKolorsVtonV1V1, operationsControllerRunSeedream4EditV1V1, operationsControllerRunSeedream45EditV1V1, operationsControllerRunJsonToImageV1V1, operationsControllerRunJsonToVideoV1V1, operationsControllerRunReveRemixV1V1, operationsControllerRunYolo11xPoseV1V1, operationsControllerRunSeedream4T2iV1V1, operationsControllerRunSeedream45T2iV1V1, operationsControllerRunSeedanceV1ProV1V1, operationsControllerRunSeedanceV1FastV1V1, operationsControllerRunSeedanceV1LightV1V1, operationsControllerRunImagen4FastV1V1, operationsControllerRunImagen4StandardV1V1, operationsControllerRunImagen4UltraV1V1, operationsControllerRunWorkflowsRunV1V1, operationsControllerRunKlingVideo25ProImageToVideoV1V1, operationsControllerRunFluxKontextDevPrepareDatasetV1V1, operationsControllerRunFluxKontextDevTrainV1V1, operationsControllerRunFluxKontextDevV1V1, operationsControllerRunImagesRenameV1V1, operationsControllerRunClipClassifyV1V1, operationsControllerRunStringsParseJsonV1V1 };
12415
+ return { operationsControllerGetOperationStatusV1, operationsControllerGetOperationV1, operationsControllerGetOperationsV1, operationsControllerListOperationsV1, operationsControllerUpdateMetadataV1, operationsControllerRunHauteLindaV1V1, operationsControllerRunHauteNaomiV1V1, operationsControllerRunInpaintKateV1V1, operationsControllerRunGptV1V1, operationsControllerRunGptV2V1, operationsControllerRunGptV3V1, operationsControllerRunTranslateV1V1, operationsControllerRunStringsTemplateV1V1, operationsControllerRunStringsSwitchV1V1, operationsControllerRunStringsSliceV1V1, operationsControllerRunStringsLengthV1V1, operationsControllerRunImagineKateV1V1, operationsControllerRunUpscaleV1V1, operationsControllerRunObjectDetectionV1V1, operationsControllerRunSegmentAnythingEmbeddingsV1V1, operationsControllerRunSegmentAnythingMaskV1V1, operationsControllerRunPoseEstimationV1V1, operationsControllerRunCutV1V1, operationsControllerRunCropV1V1, operationsControllerRunNoiseV1V1, operationsControllerRunResizeV1V1, operationsControllerRunImagesDownscaleV1V1, operationsControllerRunContrastV1V1, operationsControllerRunCompositeV1V1, operationsControllerRunVtonGiseleV1V1, operationsControllerRunNegateImageV1V1, operationsControllerRunEchoV1V1, operationsControllerRunMathV1V1, operationsControllerRunAnimateKling16ProV1V1, operationsControllerRunAnimateKling21V1V1, operationsControllerRunAnimateKling21StandardV1V1, operationsControllerRunAnimateKling21ProV1V1, operationsControllerRunAnimateCreatomateV1V1, operationsControllerRunOnecompilerV1V1, operationsControllerRunEditFluxKontextDevV1V1, operationsControllerRunVeo3V1V1, operationsControllerRunVeo3FastV1V1, operationsControllerRunVeo31V1V1, operationsControllerRunVeo31FastV1V1, operationsControllerRunPipelineMapV1V1, operationsControllerRunImagen4V1V1, operationsControllerRunTopazUpscaleV1V1, operationsControllerRunIdeogramCharacterV1V1, operationsControllerRunSeedream3V1V1, operationsControllerRunLumaPhotonV1V1, operationsControllerRunImagineFlux11ProUltraV1V1, operationsControllerRunSeedV1V1, operationsControllerRunGoogleNanoBananaV1V1, operationsControllerRunGoogleNanoBananaProEditV1V1, operationsControllerRunHauteNaomiTrainV1V1, operationsControllerRunHauteNaomiPrepareDatasetV1V1, operationsControllerRunFashnVton16V1V1, operationsControllerRunAlphabakeVtonV1V1, operationsControllerRunKlingKolorsVtonV1V1, operationsControllerRunSeedream4EditV1V1, operationsControllerRunSeedream45EditV1V1, operationsControllerRunJsonToImageV1V1, operationsControllerRunJsonToVideoV1V1, operationsControllerRunReveRemixV1V1, operationsControllerRunYolo11xPoseV1V1, operationsControllerRunSeedream4T2iV1V1, operationsControllerRunSeedream45T2iV1V1, operationsControllerRunSeedanceV1ProV1V1, operationsControllerRunSeedanceV1FastV1V1, operationsControllerRunSeedanceV1LightV1V1, operationsControllerRunImagen4FastV1V1, operationsControllerRunImagen4StandardV1V1, operationsControllerRunImagen4UltraV1V1, operationsControllerRunWorkflowsRunV1V1, operationsControllerRunKlingVideo25ProImageToVideoV1V1, operationsControllerRunFluxKontextDevPrepareDatasetV1V1, operationsControllerRunFluxKontextDevTrainV1V1, operationsControllerRunFluxKontextDevV1V1, operationsControllerRunImagesRenameV1V1, operationsControllerRunClipClassifyV1V1, operationsControllerRunStringsParseJsonV1V1 };
12405
12416
  };
12406
12417
 
12407
12418
  // src/sdk/api-definitions/operations.ts
@@ -12410,9 +12421,9 @@ var waitOperation = wrapCustomMethod(async function(operation, timeoutMs = 6e4,
12410
12421
  const sdk = this;
12411
12422
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
12412
12423
  const poll = async (id) => {
12413
- const op = await sdk.operations.get(id);
12424
+ const op = await sdk.operations.getStatus(id);
12414
12425
  if (!op) throw new Error("Operation not found");
12415
- if (op.status !== "pending") return op;
12426
+ if (op.status !== "pending") return op.operation;
12416
12427
  return null;
12417
12428
  };
12418
12429
  while (Date.now() < deadline) {
@@ -12509,10 +12520,36 @@ var useOperationsApi = () => {
12509
12520
  }
12510
12521
  },
12511
12522
  imagen4: {
12512
- v1: hautechApi.operationsControllerRunImagen4V1V1
12523
+ v1: hautechApi.operationsControllerRunImagen4V1V1,
12524
+ fast: {
12525
+ v1: hautechApi.operationsControllerRunImagen4FastV1V1
12526
+ },
12527
+ standard: {
12528
+ v1: hautechApi.operationsControllerRunImagen4StandardV1V1
12529
+ },
12530
+ ultra: {
12531
+ v1: hautechApi.operationsControllerRunImagen4UltraV1V1
12532
+ }
12513
12533
  },
12514
12534
  seedream3: {
12515
12535
  v1: hautechApi.operationsControllerRunSeedream3V1V1
12536
+ },
12537
+ seed: {
12538
+ v1: hautechApi.operationsControllerRunSeedV1V1
12539
+ },
12540
+ seedream: {
12541
+ "4_edit": {
12542
+ v1: hautechApi.operationsControllerRunSeedream4EditV1V1
12543
+ },
12544
+ "4_5_edit": {
12545
+ v1: hautechApi.operationsControllerRunSeedream45EditV1V1
12546
+ },
12547
+ "4_t2i": {
12548
+ v1: hautechApi.operationsControllerRunSeedream4T2iV1V1
12549
+ },
12550
+ "4_5_t2i": {
12551
+ v1: hautechApi.operationsControllerRunSeedream45T2iV1V1
12552
+ }
12516
12553
  }
12517
12554
  },
12518
12555
  upscale: {
@@ -12550,6 +12587,14 @@ var useOperationsApi = () => {
12550
12587
  composite: {
12551
12588
  v1: hautechApi.operationsControllerRunCompositeV1V1
12552
12589
  },
12590
+ images: {
12591
+ downscale: {
12592
+ v1: hautechApi.operationsControllerRunImagesDownscaleV1V1
12593
+ },
12594
+ rename: {
12595
+ v1: hautechApi.operationsControllerRunImagesRenameV1V1
12596
+ }
12597
+ },
12553
12598
  vton: {
12554
12599
  gisele: {
12555
12600
  v1: hautechApi.operationsControllerRunVtonGiseleV1V1
@@ -12564,6 +12609,20 @@ var useOperationsApi = () => {
12564
12609
  strings: {
12565
12610
  template: {
12566
12611
  v1: hautechApi.operationsControllerRunStringsTemplateV1V1
12612
+ },
12613
+ switch: {
12614
+ v1: hautechApi.operationsControllerRunStringsSwitchV1V1
12615
+ },
12616
+ slice: {
12617
+ v1: hautechApi.operationsControllerRunStringsSliceV1V1
12618
+ },
12619
+ length: {
12620
+ v1: hautechApi.operationsControllerRunStringsLengthV1V1
12621
+ },
12622
+ parse: {
12623
+ json: {
12624
+ v1: hautechApi.operationsControllerRunStringsParseJsonV1V1
12625
+ }
12567
12626
  }
12568
12627
  },
12569
12628
  onecompiler: {
@@ -12578,15 +12637,86 @@ var useOperationsApi = () => {
12578
12637
  google: {
12579
12638
  nano_banana: {
12580
12639
  v1: hautechApi.operationsControllerRunGoogleNanoBananaV1V1
12640
+ },
12641
+ nano_banana_pro: {
12642
+ edit: {
12643
+ v1: hautechApi.operationsControllerRunGoogleNanoBananaProEditV1V1
12644
+ }
12645
+ }
12646
+ },
12647
+ fashn: {
12648
+ vton_1_6: {
12649
+ v1: hautechApi.operationsControllerRunFashnVton16V1V1
12650
+ }
12651
+ },
12652
+ alphabake: {
12653
+ vton: {
12654
+ v1: hautechApi.operationsControllerRunAlphabakeVtonV1V1
12581
12655
  }
12582
12656
  },
12657
+ kling: {
12658
+ kolors_vton: {
12659
+ v1: hautechApi.operationsControllerRunKlingKolorsVtonV1V1
12660
+ },
12661
+ video_2_5_pro: {
12662
+ image_to_video: {
12663
+ v1: hautechApi.operationsControllerRunKlingVideo25ProImageToVideoV1V1
12664
+ }
12665
+ }
12666
+ },
12667
+ json_to_image: {
12668
+ v1: hautechApi.operationsControllerRunJsonToImageV1V1
12669
+ },
12670
+ json_to_video: {
12671
+ v1: hautechApi.operationsControllerRunJsonToVideoV1V1
12672
+ },
12673
+ reve: {
12674
+ remix: {
12675
+ v1: hautechApi.operationsControllerRunReveRemixV1V1
12676
+ }
12677
+ },
12678
+ yolo11x_pose: {
12679
+ v1: hautechApi.operationsControllerRunYolo11xPoseV1V1
12680
+ },
12681
+ seedance_v1: {
12682
+ pro: {
12683
+ v1: hautechApi.operationsControllerRunSeedanceV1ProV1V1
12684
+ },
12685
+ fast: {
12686
+ v1: hautechApi.operationsControllerRunSeedanceV1FastV1V1
12687
+ },
12688
+ light: {
12689
+ v1: hautechApi.operationsControllerRunSeedanceV1LightV1V1
12690
+ }
12691
+ },
12692
+ flux: {
12693
+ kontext_dev: {
12694
+ prepare_dataset: {
12695
+ v1: hautechApi.operationsControllerRunFluxKontextDevPrepareDatasetV1V1
12696
+ },
12697
+ train: {
12698
+ v1: hautechApi.operationsControllerRunFluxKontextDevTrainV1V1
12699
+ },
12700
+ v1: hautechApi.operationsControllerRunFluxKontextDevV1V1
12701
+ }
12702
+ },
12703
+ clipClassify: {
12704
+ v1: hautechApi.operationsControllerRunClipClassifyV1V1
12705
+ },
12583
12706
  workflow: {
12584
12707
  run: {
12585
12708
  v1: hautechApi.operationsControllerRunWorkflowsRunV1V1
12586
12709
  }
12710
+ },
12711
+ veo3_1: {
12712
+ v1: hautechApi.operationsControllerRunVeo31V1V1,
12713
+ fast: {
12714
+ v1: hautechApi.operationsControllerRunVeo31FastV1V1
12715
+ }
12587
12716
  }
12588
12717
  },
12589
12718
  get: wrapApiCallNullable(hautechApi.operationsControllerGetOperationV1),
12719
+ getStatus: wrapApiCallNullable(hautechApi.operationsControllerGetOperationStatusV1),
12590
12720
  getMany: hautechApi.operationsControllerGetOperationsV1,
12591
12721
  list: hautechApi.operationsControllerListOperationsV1,
12592
12722
  updateMetadata: hautechApi.operationsControllerUpdateMetadataV1,
@@ -13055,6 +13185,15 @@ var getPipelines = () => {
13055
13185
  options
13056
13186
  );
13057
13187
  };
13188
+ const pipelinesControllerGetPipelineStatusV1 = (id, options) => {
13189
+ return axiosMutator(
13190
+ {
13191
+ url: `/v1/pipelines/${id}/status`,
13192
+ method: "GET"
13193
+ },
13194
+ options
13195
+ );
13196
+ };
13058
13197
  const pipelinesControllerGetPipelineV1 = (id, options) => {
13059
13198
  return axiosMutator(
13060
13199
  {
@@ -13064,7 +13203,7 @@ var getPipelines = () => {
13064
13203
  options
13065
13204
  );
13066
13205
  };
13067
- return { pipelinesControllerCreatePipelineV1, pipelinesControllerListPipelinesV1, pipelinesControllerCountPipelinesV1, pipelinesControllerGetPipelineV1 };
13206
+ return { pipelinesControllerCreatePipelineV1, pipelinesControllerListPipelinesV1, pipelinesControllerCountPipelinesV1, pipelinesControllerGetPipelineStatusV1, pipelinesControllerGetPipelineV1 };
13068
13207
  };
13069
13208
 
13070
13209
  // src/autogenerated/schemas/accessControllerListSharedV1Type.ts
@@ -14773,6 +14912,13 @@ var OperationOutputVideoSingleKind = {
14773
14912
  "video/single": "video/single"
14774
14913
  };
14775
14914
 
14915
+ // src/autogenerated/schemas/operationStatusDtoStatus.ts
14916
+ var OperationStatusDtoStatus = {
14917
+ pending: "pending",
14918
+ finished: "finished",
14919
+ failed: "failed"
14920
+ };
14921
+
14776
14922
  // src/autogenerated/schemas/operationsControllerListOperationsV1OrderBy.ts
14777
14923
  var OperationsControllerListOperationsV1OrderBy = {
14778
14924
  createdAt_ASC: "createdAt_ASC",
@@ -14824,6 +14970,13 @@ var PipelinePreviewDtoStatus = {
14824
14970
  failed: "failed"
14825
14971
  };
14826
14972
 
14973
+ // src/autogenerated/schemas/pipelineStatusDtoStatus.ts
14974
+ var PipelineStatusDtoStatus = {
14975
+ pending: "pending",
14976
+ completed: "completed",
14977
+ failed: "failed"
14978
+ };
14979
+
14827
14980
  // src/autogenerated/schemas/pipelinesControllerCountPipelinesV1Status.ts
14828
14981
  var PipelinesControllerCountPipelinesV1Status = {
14829
14982
  pending: "pending",
@@ -17280,6 +17433,7 @@ var usePipelinesApi = () => {
17280
17433
  });
17281
17434
  }),
17282
17435
  get: wrapApiCallNullable(hautechApi.pipelinesControllerGetPipelineV1),
17436
+ getStatus: wrapApiCallNullable(hautechApi.pipelinesControllerGetPipelineStatusV1),
17283
17437
  count: hautechApi.pipelinesControllerCountPipelinesV1,
17284
17438
  list: hautechApi.pipelinesControllerListPipelinesV1,
17285
17439
  constructTemplate: wrapCustomMethod(function(builder) {
@@ -17291,11 +17445,11 @@ var usePipelinesApi = () => {
17291
17445
  const deadline = Date.now() + timeoutMs;
17292
17446
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
17293
17447
  const poll = async (id) => {
17294
- const pipeline2 = await sdk.pipelines.get(id);
17448
+ const pipeline2 = await sdk.pipelines.getStatus(id);
17295
17449
  if (!pipeline2) {
17296
17450
  throw new Error("Pipeline not found");
17297
17451
  }
17298
- if (pipeline2.status !== PipelineDtoStatus.pending) return pipeline2;
17452
+ if (pipeline2.status !== PipelineDtoStatus.pending) return pipeline2.pipeline;
17299
17453
  return null;
17300
17454
  };
17301
17455
  while (Date.now() < deadline) {
@@ -18146,6 +18300,7 @@ var createTokenSigner = (options) => {
18146
18300
  OperationOutputNumberKind,
18147
18301
  OperationOutputTextSingleKind,
18148
18302
  OperationOutputVideoSingleKind,
18303
+ OperationStatusDtoStatus,
18149
18304
  OperationsControllerListOperationsV1OrderBy,
18150
18305
  PipelineDtoKind,
18151
18306
  PipelineDtoStateStatus,
@@ -18154,6 +18309,7 @@ var createTokenSigner = (options) => {
18154
18309
  PipelineMapV1ResponseStatus,
18155
18310
  PipelinePreviewDtoKind,
18156
18311
  PipelinePreviewDtoStatus,
18312
+ PipelineStatusDtoStatus,
18157
18313
  PipelinesControllerCountPipelinesV1Status,
18158
18314
  PipelinesControllerListPipelinesV1OrderBy,
18159
18315
  PipelinesControllerListPipelinesV1Status,