@hautechai/sdk 2.35.2 → 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.mjs CHANGED
@@ -11124,6 +11124,15 @@ var useImagesApi = () => {
11124
11124
 
11125
11125
  // src/autogenerated/operations/operations.ts
11126
11126
  var getOperations = () => {
11127
+ const operationsControllerGetOperationStatusV1 = (id, options) => {
11128
+ return axiosMutator(
11129
+ {
11130
+ url: `/v1/operations/${id}/status`,
11131
+ method: "GET"
11132
+ },
11133
+ options
11134
+ );
11135
+ };
11127
11136
  const operationsControllerGetOperationV1 = (id, options) => {
11128
11137
  return axiosMutator(
11129
11138
  {
@@ -12001,7 +12010,7 @@ var getOperations = () => {
12001
12010
  options
12002
12011
  );
12003
12012
  };
12004
- 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 };
12013
+ 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 };
12005
12014
  };
12006
12015
 
12007
12016
  // src/sdk/api-definitions/operations.ts
@@ -12010,9 +12019,9 @@ var waitOperation = wrapCustomMethod(async function(operation, timeoutMs = 6e4,
12010
12019
  const sdk = this;
12011
12020
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
12012
12021
  const poll = async (id) => {
12013
- const op = await sdk.operations.get(id);
12022
+ const op = await sdk.operations.getStatus(id);
12014
12023
  if (!op) throw new Error("Operation not found");
12015
- if (op.status !== "pending") return op;
12024
+ if (op.status !== "pending") return op.operation;
12016
12025
  return null;
12017
12026
  };
12018
12027
  while (Date.now() < deadline) {
@@ -12109,10 +12118,36 @@ var useOperationsApi = () => {
12109
12118
  }
12110
12119
  },
12111
12120
  imagen4: {
12112
- v1: hautechApi.operationsControllerRunImagen4V1V1
12121
+ v1: hautechApi.operationsControllerRunImagen4V1V1,
12122
+ fast: {
12123
+ v1: hautechApi.operationsControllerRunImagen4FastV1V1
12124
+ },
12125
+ standard: {
12126
+ v1: hautechApi.operationsControllerRunImagen4StandardV1V1
12127
+ },
12128
+ ultra: {
12129
+ v1: hautechApi.operationsControllerRunImagen4UltraV1V1
12130
+ }
12113
12131
  },
12114
12132
  seedream3: {
12115
12133
  v1: hautechApi.operationsControllerRunSeedream3V1V1
12134
+ },
12135
+ seed: {
12136
+ v1: hautechApi.operationsControllerRunSeedV1V1
12137
+ },
12138
+ seedream: {
12139
+ "4_edit": {
12140
+ v1: hautechApi.operationsControllerRunSeedream4EditV1V1
12141
+ },
12142
+ "4_5_edit": {
12143
+ v1: hautechApi.operationsControllerRunSeedream45EditV1V1
12144
+ },
12145
+ "4_t2i": {
12146
+ v1: hautechApi.operationsControllerRunSeedream4T2iV1V1
12147
+ },
12148
+ "4_5_t2i": {
12149
+ v1: hautechApi.operationsControllerRunSeedream45T2iV1V1
12150
+ }
12116
12151
  }
12117
12152
  },
12118
12153
  upscale: {
@@ -12150,6 +12185,14 @@ var useOperationsApi = () => {
12150
12185
  composite: {
12151
12186
  v1: hautechApi.operationsControllerRunCompositeV1V1
12152
12187
  },
12188
+ images: {
12189
+ downscale: {
12190
+ v1: hautechApi.operationsControllerRunImagesDownscaleV1V1
12191
+ },
12192
+ rename: {
12193
+ v1: hautechApi.operationsControllerRunImagesRenameV1V1
12194
+ }
12195
+ },
12153
12196
  vton: {
12154
12197
  gisele: {
12155
12198
  v1: hautechApi.operationsControllerRunVtonGiseleV1V1
@@ -12164,6 +12207,20 @@ var useOperationsApi = () => {
12164
12207
  strings: {
12165
12208
  template: {
12166
12209
  v1: hautechApi.operationsControllerRunStringsTemplateV1V1
12210
+ },
12211
+ switch: {
12212
+ v1: hautechApi.operationsControllerRunStringsSwitchV1V1
12213
+ },
12214
+ slice: {
12215
+ v1: hautechApi.operationsControllerRunStringsSliceV1V1
12216
+ },
12217
+ length: {
12218
+ v1: hautechApi.operationsControllerRunStringsLengthV1V1
12219
+ },
12220
+ parse: {
12221
+ json: {
12222
+ v1: hautechApi.operationsControllerRunStringsParseJsonV1V1
12223
+ }
12167
12224
  }
12168
12225
  },
12169
12226
  onecompiler: {
@@ -12178,15 +12235,86 @@ var useOperationsApi = () => {
12178
12235
  google: {
12179
12236
  nano_banana: {
12180
12237
  v1: hautechApi.operationsControllerRunGoogleNanoBananaV1V1
12238
+ },
12239
+ nano_banana_pro: {
12240
+ edit: {
12241
+ v1: hautechApi.operationsControllerRunGoogleNanoBananaProEditV1V1
12242
+ }
12243
+ }
12244
+ },
12245
+ fashn: {
12246
+ vton_1_6: {
12247
+ v1: hautechApi.operationsControllerRunFashnVton16V1V1
12248
+ }
12249
+ },
12250
+ alphabake: {
12251
+ vton: {
12252
+ v1: hautechApi.operationsControllerRunAlphabakeVtonV1V1
12181
12253
  }
12182
12254
  },
12255
+ kling: {
12256
+ kolors_vton: {
12257
+ v1: hautechApi.operationsControllerRunKlingKolorsVtonV1V1
12258
+ },
12259
+ video_2_5_pro: {
12260
+ image_to_video: {
12261
+ v1: hautechApi.operationsControllerRunKlingVideo25ProImageToVideoV1V1
12262
+ }
12263
+ }
12264
+ },
12265
+ json_to_image: {
12266
+ v1: hautechApi.operationsControllerRunJsonToImageV1V1
12267
+ },
12268
+ json_to_video: {
12269
+ v1: hautechApi.operationsControllerRunJsonToVideoV1V1
12270
+ },
12271
+ reve: {
12272
+ remix: {
12273
+ v1: hautechApi.operationsControllerRunReveRemixV1V1
12274
+ }
12275
+ },
12276
+ yolo11x_pose: {
12277
+ v1: hautechApi.operationsControllerRunYolo11xPoseV1V1
12278
+ },
12279
+ seedance_v1: {
12280
+ pro: {
12281
+ v1: hautechApi.operationsControllerRunSeedanceV1ProV1V1
12282
+ },
12283
+ fast: {
12284
+ v1: hautechApi.operationsControllerRunSeedanceV1FastV1V1
12285
+ },
12286
+ light: {
12287
+ v1: hautechApi.operationsControllerRunSeedanceV1LightV1V1
12288
+ }
12289
+ },
12290
+ flux: {
12291
+ kontext_dev: {
12292
+ prepare_dataset: {
12293
+ v1: hautechApi.operationsControllerRunFluxKontextDevPrepareDatasetV1V1
12294
+ },
12295
+ train: {
12296
+ v1: hautechApi.operationsControllerRunFluxKontextDevTrainV1V1
12297
+ },
12298
+ v1: hautechApi.operationsControllerRunFluxKontextDevV1V1
12299
+ }
12300
+ },
12301
+ clipClassify: {
12302
+ v1: hautechApi.operationsControllerRunClipClassifyV1V1
12303
+ },
12183
12304
  workflow: {
12184
12305
  run: {
12185
12306
  v1: hautechApi.operationsControllerRunWorkflowsRunV1V1
12186
12307
  }
12308
+ },
12309
+ veo3_1: {
12310
+ v1: hautechApi.operationsControllerRunVeo31V1V1,
12311
+ fast: {
12312
+ v1: hautechApi.operationsControllerRunVeo31FastV1V1
12313
+ }
12187
12314
  }
12188
12315
  },
12189
12316
  get: wrapApiCallNullable(hautechApi.operationsControllerGetOperationV1),
12317
+ getStatus: wrapApiCallNullable(hautechApi.operationsControllerGetOperationStatusV1),
12190
12318
  getMany: hautechApi.operationsControllerGetOperationsV1,
12191
12319
  list: hautechApi.operationsControllerListOperationsV1,
12192
12320
  updateMetadata: hautechApi.operationsControllerUpdateMetadataV1,
@@ -12655,6 +12783,15 @@ var getPipelines = () => {
12655
12783
  options
12656
12784
  );
12657
12785
  };
12786
+ const pipelinesControllerGetPipelineStatusV1 = (id, options) => {
12787
+ return axiosMutator(
12788
+ {
12789
+ url: `/v1/pipelines/${id}/status`,
12790
+ method: "GET"
12791
+ },
12792
+ options
12793
+ );
12794
+ };
12658
12795
  const pipelinesControllerGetPipelineV1 = (id, options) => {
12659
12796
  return axiosMutator(
12660
12797
  {
@@ -12664,7 +12801,7 @@ var getPipelines = () => {
12664
12801
  options
12665
12802
  );
12666
12803
  };
12667
- return { pipelinesControllerCreatePipelineV1, pipelinesControllerListPipelinesV1, pipelinesControllerCountPipelinesV1, pipelinesControllerGetPipelineV1 };
12804
+ return { pipelinesControllerCreatePipelineV1, pipelinesControllerListPipelinesV1, pipelinesControllerCountPipelinesV1, pipelinesControllerGetPipelineStatusV1, pipelinesControllerGetPipelineV1 };
12668
12805
  };
12669
12806
 
12670
12807
  // src/autogenerated/schemas/accessControllerListSharedV1Type.ts
@@ -13225,6 +13362,8 @@ var GPTV3ImageInputDtoType = {
13225
13362
  var GPTV3InputModel = {
13226
13363
  "gpt-4o": "gpt-4o",
13227
13364
  "gpt-5": "gpt-5",
13365
+ "gpt-5-mini": "gpt-5-mini",
13366
+ "gpt-5-nano": "gpt-5-nano",
13228
13367
  "seed-16-flash": "seed-1.6-flash",
13229
13368
  o3: "o3",
13230
13369
  "o3-mini": "o3-mini",
@@ -14371,6 +14510,13 @@ var OperationOutputVideoSingleKind = {
14371
14510
  "video/single": "video/single"
14372
14511
  };
14373
14512
 
14513
+ // src/autogenerated/schemas/operationStatusDtoStatus.ts
14514
+ var OperationStatusDtoStatus = {
14515
+ pending: "pending",
14516
+ finished: "finished",
14517
+ failed: "failed"
14518
+ };
14519
+
14374
14520
  // src/autogenerated/schemas/operationsControllerListOperationsV1OrderBy.ts
14375
14521
  var OperationsControllerListOperationsV1OrderBy = {
14376
14522
  createdAt_ASC: "createdAt_ASC",
@@ -14422,6 +14568,13 @@ var PipelinePreviewDtoStatus = {
14422
14568
  failed: "failed"
14423
14569
  };
14424
14570
 
14571
+ // src/autogenerated/schemas/pipelineStatusDtoStatus.ts
14572
+ var PipelineStatusDtoStatus = {
14573
+ pending: "pending",
14574
+ completed: "completed",
14575
+ failed: "failed"
14576
+ };
14577
+
14425
14578
  // src/autogenerated/schemas/pipelinesControllerCountPipelinesV1Status.ts
14426
14579
  var PipelinesControllerCountPipelinesV1Status = {
14427
14580
  pending: "pending",
@@ -16878,6 +17031,7 @@ var usePipelinesApi = () => {
16878
17031
  });
16879
17032
  }),
16880
17033
  get: wrapApiCallNullable(hautechApi.pipelinesControllerGetPipelineV1),
17034
+ getStatus: wrapApiCallNullable(hautechApi.pipelinesControllerGetPipelineStatusV1),
16881
17035
  count: hautechApi.pipelinesControllerCountPipelinesV1,
16882
17036
  list: hautechApi.pipelinesControllerListPipelinesV1,
16883
17037
  constructTemplate: wrapCustomMethod(function(builder) {
@@ -16889,11 +17043,11 @@ var usePipelinesApi = () => {
16889
17043
  const deadline = Date.now() + timeoutMs;
16890
17044
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
16891
17045
  const poll = async (id) => {
16892
- const pipeline2 = await sdk.pipelines.get(id);
17046
+ const pipeline2 = await sdk.pipelines.getStatus(id);
16893
17047
  if (!pipeline2) {
16894
17048
  throw new Error("Pipeline not found");
16895
17049
  }
16896
- if (pipeline2.status !== PipelineDtoStatus.pending) return pipeline2;
17050
+ if (pipeline2.status !== PipelineDtoStatus.pending) return pipeline2.pipeline;
16897
17051
  return null;
16898
17052
  };
16899
17053
  while (Date.now() < deadline) {
@@ -17743,6 +17897,7 @@ export {
17743
17897
  OperationOutputNumberKind,
17744
17898
  OperationOutputTextSingleKind,
17745
17899
  OperationOutputVideoSingleKind,
17900
+ OperationStatusDtoStatus,
17746
17901
  OperationsControllerListOperationsV1OrderBy,
17747
17902
  PipelineDtoKind,
17748
17903
  PipelineDtoStateStatus,
@@ -17751,6 +17906,7 @@ export {
17751
17906
  PipelineMapV1ResponseStatus,
17752
17907
  PipelinePreviewDtoKind,
17753
17908
  PipelinePreviewDtoStatus,
17909
+ PipelineStatusDtoStatus,
17754
17910
  PipelinesControllerCountPipelinesV1Status,
17755
17911
  PipelinesControllerListPipelinesV1OrderBy,
17756
17912
  PipelinesControllerListPipelinesV1Status,