@hautechai/sdk 2.32.1 → 2.33.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.d.mts +75 -57
- package/dist/index.d.ts +75 -57
- package/dist/index.js +38 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -12028,7 +12028,7 @@ type RunWorkflowParamsDtoMetadata = {
|
|
|
12028
12028
|
interface RunWorkflowParamsDto {
|
|
12029
12029
|
input: RunWorkflowParamsDtoInput;
|
|
12030
12030
|
metadata?: RunWorkflowParamsDtoMetadata;
|
|
12031
|
-
|
|
12031
|
+
versionNumber?: number;
|
|
12032
12032
|
}
|
|
12033
12033
|
|
|
12034
12034
|
/**
|
|
@@ -12614,36 +12614,6 @@ interface Seedream3V1Response {
|
|
|
12614
12614
|
updatedAt: string;
|
|
12615
12615
|
}
|
|
12616
12616
|
|
|
12617
|
-
/**
|
|
12618
|
-
* Generated by orval v7.10.0 🍺
|
|
12619
|
-
* Do not edit manually.
|
|
12620
|
-
* Hautech API
|
|
12621
|
-
* OpenAPI spec version: 1.0
|
|
12622
|
-
*/
|
|
12623
|
-
/**
|
|
12624
|
-
* Width of the generated image in pixels (2048 or 4096)
|
|
12625
|
-
*/
|
|
12626
|
-
type Seedream45EditV1InputWidth = typeof Seedream45EditV1InputWidth[keyof typeof Seedream45EditV1InputWidth];
|
|
12627
|
-
declare const Seedream45EditV1InputWidth: {
|
|
12628
|
-
readonly NUMBER_2048: 2048;
|
|
12629
|
-
readonly NUMBER_4096: 4096;
|
|
12630
|
-
};
|
|
12631
|
-
|
|
12632
|
-
/**
|
|
12633
|
-
* Generated by orval v7.10.0 🍺
|
|
12634
|
-
* Do not edit manually.
|
|
12635
|
-
* Hautech API
|
|
12636
|
-
* OpenAPI spec version: 1.0
|
|
12637
|
-
*/
|
|
12638
|
-
/**
|
|
12639
|
-
* Height of the generated image in pixels (2048 or 4096)
|
|
12640
|
-
*/
|
|
12641
|
-
type Seedream45EditV1InputHeight = typeof Seedream45EditV1InputHeight[keyof typeof Seedream45EditV1InputHeight];
|
|
12642
|
-
declare const Seedream45EditV1InputHeight: {
|
|
12643
|
-
readonly NUMBER_2048: 2048;
|
|
12644
|
-
readonly NUMBER_4096: 4096;
|
|
12645
|
-
};
|
|
12646
|
-
|
|
12647
12617
|
/**
|
|
12648
12618
|
* Generated by orval v7.10.0 🍺
|
|
12649
12619
|
* Do not edit manually.
|
|
@@ -12674,16 +12644,54 @@ interface Seedream45EditV1Input {
|
|
|
12674
12644
|
* @minItems 1
|
|
12675
12645
|
*/
|
|
12676
12646
|
imageIds: string[];
|
|
12677
|
-
/**
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12647
|
+
/**
|
|
12648
|
+
* Width of the generated image in pixels (range 2048-4096 inclusive).
|
|
12649
|
+
* @minimum 2048
|
|
12650
|
+
* @maximum 4096
|
|
12651
|
+
*/
|
|
12652
|
+
width?: number;
|
|
12653
|
+
/**
|
|
12654
|
+
* Height of the generated image in pixels (range 2048-4096 inclusive).
|
|
12655
|
+
* @minimum 2048
|
|
12656
|
+
* @maximum 4096
|
|
12657
|
+
*/
|
|
12658
|
+
height?: number;
|
|
12681
12659
|
/** Random seed for deterministic generation */
|
|
12682
12660
|
seed?: number;
|
|
12683
12661
|
/** Prompt optimization mode */
|
|
12684
12662
|
optimizePromptOptions?: Seedream45EditV1InputOptimizePromptOptions;
|
|
12685
12663
|
}
|
|
12686
12664
|
|
|
12665
|
+
/**
|
|
12666
|
+
* Generated by orval v7.10.0 🍺
|
|
12667
|
+
* Do not edit manually.
|
|
12668
|
+
* Hautech API
|
|
12669
|
+
* OpenAPI spec version: 1.0
|
|
12670
|
+
*/
|
|
12671
|
+
/**
|
|
12672
|
+
* Height of the generated image in pixels (2048 or 4096)
|
|
12673
|
+
*/
|
|
12674
|
+
type Seedream45EditV1InputHeight = typeof Seedream45EditV1InputHeight[keyof typeof Seedream45EditV1InputHeight];
|
|
12675
|
+
declare const Seedream45EditV1InputHeight: {
|
|
12676
|
+
readonly NUMBER_2048: 2048;
|
|
12677
|
+
readonly NUMBER_4096: 4096;
|
|
12678
|
+
};
|
|
12679
|
+
|
|
12680
|
+
/**
|
|
12681
|
+
* Generated by orval v7.10.0 🍺
|
|
12682
|
+
* Do not edit manually.
|
|
12683
|
+
* Hautech API
|
|
12684
|
+
* OpenAPI spec version: 1.0
|
|
12685
|
+
*/
|
|
12686
|
+
/**
|
|
12687
|
+
* Width of the generated image in pixels (2048 or 4096)
|
|
12688
|
+
*/
|
|
12689
|
+
type Seedream45EditV1InputWidth = typeof Seedream45EditV1InputWidth[keyof typeof Seedream45EditV1InputWidth];
|
|
12690
|
+
declare const Seedream45EditV1InputWidth: {
|
|
12691
|
+
readonly NUMBER_2048: 2048;
|
|
12692
|
+
readonly NUMBER_4096: 4096;
|
|
12693
|
+
};
|
|
12694
|
+
|
|
12687
12695
|
/**
|
|
12688
12696
|
* Generated by orval v7.10.0 🍺
|
|
12689
12697
|
* Do not edit manually.
|
|
@@ -12780,14 +12788,24 @@ interface Seedream45EditV1Response {
|
|
|
12780
12788
|
* Hautech API
|
|
12781
12789
|
* OpenAPI spec version: 1.0
|
|
12782
12790
|
*/
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
12790
|
-
|
|
12791
|
+
interface Seedream45T2IV1Input {
|
|
12792
|
+
/** Text prompt describing the image to generate. Uses BytePlus ModelArk endpoint ep-20251204195257-ptf48. */
|
|
12793
|
+
prompt: string;
|
|
12794
|
+
/**
|
|
12795
|
+
* Width of the generated image in pixels (range 2048-4096 inclusive).
|
|
12796
|
+
* @minimum 2048
|
|
12797
|
+
* @maximum 4096
|
|
12798
|
+
*/
|
|
12799
|
+
width?: number;
|
|
12800
|
+
/**
|
|
12801
|
+
* Height of the generated image in pixels (range 2048-4096 inclusive).
|
|
12802
|
+
* @minimum 2048
|
|
12803
|
+
* @maximum 4096
|
|
12804
|
+
*/
|
|
12805
|
+
height?: number;
|
|
12806
|
+
/** Random seed for deterministic generation */
|
|
12807
|
+
seed?: number;
|
|
12808
|
+
}
|
|
12791
12809
|
|
|
12792
12810
|
/**
|
|
12793
12811
|
* Generated by orval v7.10.0 🍺
|
|
@@ -12810,17 +12828,14 @@ declare const Seedream45T2IV1InputHeight: {
|
|
|
12810
12828
|
* Hautech API
|
|
12811
12829
|
* OpenAPI spec version: 1.0
|
|
12812
12830
|
*/
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
/** Random seed for deterministic generation */
|
|
12822
|
-
seed?: number;
|
|
12823
|
-
}
|
|
12831
|
+
/**
|
|
12832
|
+
* Width of the generated image in pixels (2048 or 4096)
|
|
12833
|
+
*/
|
|
12834
|
+
type Seedream45T2IV1InputWidth = typeof Seedream45T2IV1InputWidth[keyof typeof Seedream45T2IV1InputWidth];
|
|
12835
|
+
declare const Seedream45T2IV1InputWidth: {
|
|
12836
|
+
readonly NUMBER_2048: 2048;
|
|
12837
|
+
readonly NUMBER_4096: 4096;
|
|
12838
|
+
};
|
|
12824
12839
|
|
|
12825
12840
|
/**
|
|
12826
12841
|
* Generated by orval v7.10.0 🍺
|
|
@@ -15425,9 +15440,10 @@ type WorkflowsRunV1InputMetadata = {
|
|
|
15425
15440
|
|
|
15426
15441
|
interface WorkflowsRunV1Input {
|
|
15427
15442
|
workflowId?: string;
|
|
15443
|
+
workflowAlias?: string;
|
|
15428
15444
|
input: WorkflowsRunV1InputInput;
|
|
15429
15445
|
metadata?: WorkflowsRunV1InputMetadata;
|
|
15430
|
-
|
|
15446
|
+
versionNumber?: number;
|
|
15431
15447
|
}
|
|
15432
15448
|
|
|
15433
15449
|
/**
|
|
@@ -15745,6 +15761,7 @@ declare const apiDefinitions: {
|
|
|
15745
15761
|
listPublic: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PublicWorkflowSummaryDto[], any>>;
|
|
15746
15762
|
getPublic: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PublicWorkflowDto, any>>;
|
|
15747
15763
|
runPublic: (id: string, runWorkflowParamsDto: RunWorkflowParamsDto, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<RunPublicWorkflowResponseDto, any>>;
|
|
15764
|
+
runPublicByAlias: (alias: string, runWorkflowParamsDto: RunWorkflowParamsDto, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<RunPublicWorkflowResponseDto, any>>;
|
|
15748
15765
|
shareWithEveryone: (id: string, shareWithEveryoneControllerParamsDto: ShareWithEveryoneControllerParamsDto, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<WorkflowDto, any>>;
|
|
15749
15766
|
revokePublicAccess: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<WorkflowDto, any>>;
|
|
15750
15767
|
getStatistics: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<WorkflowStatisticsDto, any>>;
|
|
@@ -15824,8 +15841,8 @@ declare const apiDefinitions: {
|
|
|
15824
15841
|
};
|
|
15825
15842
|
naomi: {
|
|
15826
15843
|
v1: (hauteNaomiV1Request: HauteNaomiV1Request, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<HauteNaomiV1Response, any>>;
|
|
15827
|
-
train: any
|
|
15828
|
-
prepareDataset: any
|
|
15844
|
+
train: (hauteNaomiTrainV1Request: HauteNaomiTrainV1Request, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<HauteNaomiTrainV1Response, any>>;
|
|
15845
|
+
prepareDataset: (hauteNaomiPrepareDatasetV1Request: HauteNaomiPrepareDatasetV1Request, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<HauteNaomiPrepareDatasetV1Response, any>>;
|
|
15829
15846
|
};
|
|
15830
15847
|
};
|
|
15831
15848
|
ideogram: {
|
|
@@ -15946,6 +15963,7 @@ declare const apiDefinitions: {
|
|
|
15946
15963
|
wait: <O, T extends Omit<OperationEntity, "output"> & {
|
|
15947
15964
|
output: O extends unknown ? any : O;
|
|
15948
15965
|
}>(this: any, operation: T, timeoutMs?: number, delay?: number) => Promise<T>;
|
|
15966
|
+
waitById: (this: any, operationId: string, timeoutMs?: any, delay?: any) => Promise<OperationEntity>;
|
|
15949
15967
|
}>;
|
|
15950
15968
|
groups: ApiDefinitionTree<{
|
|
15951
15969
|
create: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<GroupEntity, any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12028,7 +12028,7 @@ type RunWorkflowParamsDtoMetadata = {
|
|
|
12028
12028
|
interface RunWorkflowParamsDto {
|
|
12029
12029
|
input: RunWorkflowParamsDtoInput;
|
|
12030
12030
|
metadata?: RunWorkflowParamsDtoMetadata;
|
|
12031
|
-
|
|
12031
|
+
versionNumber?: number;
|
|
12032
12032
|
}
|
|
12033
12033
|
|
|
12034
12034
|
/**
|
|
@@ -12614,36 +12614,6 @@ interface Seedream3V1Response {
|
|
|
12614
12614
|
updatedAt: string;
|
|
12615
12615
|
}
|
|
12616
12616
|
|
|
12617
|
-
/**
|
|
12618
|
-
* Generated by orval v7.10.0 🍺
|
|
12619
|
-
* Do not edit manually.
|
|
12620
|
-
* Hautech API
|
|
12621
|
-
* OpenAPI spec version: 1.0
|
|
12622
|
-
*/
|
|
12623
|
-
/**
|
|
12624
|
-
* Width of the generated image in pixels (2048 or 4096)
|
|
12625
|
-
*/
|
|
12626
|
-
type Seedream45EditV1InputWidth = typeof Seedream45EditV1InputWidth[keyof typeof Seedream45EditV1InputWidth];
|
|
12627
|
-
declare const Seedream45EditV1InputWidth: {
|
|
12628
|
-
readonly NUMBER_2048: 2048;
|
|
12629
|
-
readonly NUMBER_4096: 4096;
|
|
12630
|
-
};
|
|
12631
|
-
|
|
12632
|
-
/**
|
|
12633
|
-
* Generated by orval v7.10.0 🍺
|
|
12634
|
-
* Do not edit manually.
|
|
12635
|
-
* Hautech API
|
|
12636
|
-
* OpenAPI spec version: 1.0
|
|
12637
|
-
*/
|
|
12638
|
-
/**
|
|
12639
|
-
* Height of the generated image in pixels (2048 or 4096)
|
|
12640
|
-
*/
|
|
12641
|
-
type Seedream45EditV1InputHeight = typeof Seedream45EditV1InputHeight[keyof typeof Seedream45EditV1InputHeight];
|
|
12642
|
-
declare const Seedream45EditV1InputHeight: {
|
|
12643
|
-
readonly NUMBER_2048: 2048;
|
|
12644
|
-
readonly NUMBER_4096: 4096;
|
|
12645
|
-
};
|
|
12646
|
-
|
|
12647
12617
|
/**
|
|
12648
12618
|
* Generated by orval v7.10.0 🍺
|
|
12649
12619
|
* Do not edit manually.
|
|
@@ -12674,16 +12644,54 @@ interface Seedream45EditV1Input {
|
|
|
12674
12644
|
* @minItems 1
|
|
12675
12645
|
*/
|
|
12676
12646
|
imageIds: string[];
|
|
12677
|
-
/**
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12647
|
+
/**
|
|
12648
|
+
* Width of the generated image in pixels (range 2048-4096 inclusive).
|
|
12649
|
+
* @minimum 2048
|
|
12650
|
+
* @maximum 4096
|
|
12651
|
+
*/
|
|
12652
|
+
width?: number;
|
|
12653
|
+
/**
|
|
12654
|
+
* Height of the generated image in pixels (range 2048-4096 inclusive).
|
|
12655
|
+
* @minimum 2048
|
|
12656
|
+
* @maximum 4096
|
|
12657
|
+
*/
|
|
12658
|
+
height?: number;
|
|
12681
12659
|
/** Random seed for deterministic generation */
|
|
12682
12660
|
seed?: number;
|
|
12683
12661
|
/** Prompt optimization mode */
|
|
12684
12662
|
optimizePromptOptions?: Seedream45EditV1InputOptimizePromptOptions;
|
|
12685
12663
|
}
|
|
12686
12664
|
|
|
12665
|
+
/**
|
|
12666
|
+
* Generated by orval v7.10.0 🍺
|
|
12667
|
+
* Do not edit manually.
|
|
12668
|
+
* Hautech API
|
|
12669
|
+
* OpenAPI spec version: 1.0
|
|
12670
|
+
*/
|
|
12671
|
+
/**
|
|
12672
|
+
* Height of the generated image in pixels (2048 or 4096)
|
|
12673
|
+
*/
|
|
12674
|
+
type Seedream45EditV1InputHeight = typeof Seedream45EditV1InputHeight[keyof typeof Seedream45EditV1InputHeight];
|
|
12675
|
+
declare const Seedream45EditV1InputHeight: {
|
|
12676
|
+
readonly NUMBER_2048: 2048;
|
|
12677
|
+
readonly NUMBER_4096: 4096;
|
|
12678
|
+
};
|
|
12679
|
+
|
|
12680
|
+
/**
|
|
12681
|
+
* Generated by orval v7.10.0 🍺
|
|
12682
|
+
* Do not edit manually.
|
|
12683
|
+
* Hautech API
|
|
12684
|
+
* OpenAPI spec version: 1.0
|
|
12685
|
+
*/
|
|
12686
|
+
/**
|
|
12687
|
+
* Width of the generated image in pixels (2048 or 4096)
|
|
12688
|
+
*/
|
|
12689
|
+
type Seedream45EditV1InputWidth = typeof Seedream45EditV1InputWidth[keyof typeof Seedream45EditV1InputWidth];
|
|
12690
|
+
declare const Seedream45EditV1InputWidth: {
|
|
12691
|
+
readonly NUMBER_2048: 2048;
|
|
12692
|
+
readonly NUMBER_4096: 4096;
|
|
12693
|
+
};
|
|
12694
|
+
|
|
12687
12695
|
/**
|
|
12688
12696
|
* Generated by orval v7.10.0 🍺
|
|
12689
12697
|
* Do not edit manually.
|
|
@@ -12780,14 +12788,24 @@ interface Seedream45EditV1Response {
|
|
|
12780
12788
|
* Hautech API
|
|
12781
12789
|
* OpenAPI spec version: 1.0
|
|
12782
12790
|
*/
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
12790
|
-
|
|
12791
|
+
interface Seedream45T2IV1Input {
|
|
12792
|
+
/** Text prompt describing the image to generate. Uses BytePlus ModelArk endpoint ep-20251204195257-ptf48. */
|
|
12793
|
+
prompt: string;
|
|
12794
|
+
/**
|
|
12795
|
+
* Width of the generated image in pixels (range 2048-4096 inclusive).
|
|
12796
|
+
* @minimum 2048
|
|
12797
|
+
* @maximum 4096
|
|
12798
|
+
*/
|
|
12799
|
+
width?: number;
|
|
12800
|
+
/**
|
|
12801
|
+
* Height of the generated image in pixels (range 2048-4096 inclusive).
|
|
12802
|
+
* @minimum 2048
|
|
12803
|
+
* @maximum 4096
|
|
12804
|
+
*/
|
|
12805
|
+
height?: number;
|
|
12806
|
+
/** Random seed for deterministic generation */
|
|
12807
|
+
seed?: number;
|
|
12808
|
+
}
|
|
12791
12809
|
|
|
12792
12810
|
/**
|
|
12793
12811
|
* Generated by orval v7.10.0 🍺
|
|
@@ -12810,17 +12828,14 @@ declare const Seedream45T2IV1InputHeight: {
|
|
|
12810
12828
|
* Hautech API
|
|
12811
12829
|
* OpenAPI spec version: 1.0
|
|
12812
12830
|
*/
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
/** Random seed for deterministic generation */
|
|
12822
|
-
seed?: number;
|
|
12823
|
-
}
|
|
12831
|
+
/**
|
|
12832
|
+
* Width of the generated image in pixels (2048 or 4096)
|
|
12833
|
+
*/
|
|
12834
|
+
type Seedream45T2IV1InputWidth = typeof Seedream45T2IV1InputWidth[keyof typeof Seedream45T2IV1InputWidth];
|
|
12835
|
+
declare const Seedream45T2IV1InputWidth: {
|
|
12836
|
+
readonly NUMBER_2048: 2048;
|
|
12837
|
+
readonly NUMBER_4096: 4096;
|
|
12838
|
+
};
|
|
12824
12839
|
|
|
12825
12840
|
/**
|
|
12826
12841
|
* Generated by orval v7.10.0 🍺
|
|
@@ -15425,9 +15440,10 @@ type WorkflowsRunV1InputMetadata = {
|
|
|
15425
15440
|
|
|
15426
15441
|
interface WorkflowsRunV1Input {
|
|
15427
15442
|
workflowId?: string;
|
|
15443
|
+
workflowAlias?: string;
|
|
15428
15444
|
input: WorkflowsRunV1InputInput;
|
|
15429
15445
|
metadata?: WorkflowsRunV1InputMetadata;
|
|
15430
|
-
|
|
15446
|
+
versionNumber?: number;
|
|
15431
15447
|
}
|
|
15432
15448
|
|
|
15433
15449
|
/**
|
|
@@ -15745,6 +15761,7 @@ declare const apiDefinitions: {
|
|
|
15745
15761
|
listPublic: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PublicWorkflowSummaryDto[], any>>;
|
|
15746
15762
|
getPublic: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PublicWorkflowDto, any>>;
|
|
15747
15763
|
runPublic: (id: string, runWorkflowParamsDto: RunWorkflowParamsDto, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<RunPublicWorkflowResponseDto, any>>;
|
|
15764
|
+
runPublicByAlias: (alias: string, runWorkflowParamsDto: RunWorkflowParamsDto, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<RunPublicWorkflowResponseDto, any>>;
|
|
15748
15765
|
shareWithEveryone: (id: string, shareWithEveryoneControllerParamsDto: ShareWithEveryoneControllerParamsDto, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<WorkflowDto, any>>;
|
|
15749
15766
|
revokePublicAccess: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<WorkflowDto, any>>;
|
|
15750
15767
|
getStatistics: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<WorkflowStatisticsDto, any>>;
|
|
@@ -15824,8 +15841,8 @@ declare const apiDefinitions: {
|
|
|
15824
15841
|
};
|
|
15825
15842
|
naomi: {
|
|
15826
15843
|
v1: (hauteNaomiV1Request: HauteNaomiV1Request, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<HauteNaomiV1Response, any>>;
|
|
15827
|
-
train: any
|
|
15828
|
-
prepareDataset: any
|
|
15844
|
+
train: (hauteNaomiTrainV1Request: HauteNaomiTrainV1Request, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<HauteNaomiTrainV1Response, any>>;
|
|
15845
|
+
prepareDataset: (hauteNaomiPrepareDatasetV1Request: HauteNaomiPrepareDatasetV1Request, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<HauteNaomiPrepareDatasetV1Response, any>>;
|
|
15829
15846
|
};
|
|
15830
15847
|
};
|
|
15831
15848
|
ideogram: {
|
|
@@ -15946,6 +15963,7 @@ declare const apiDefinitions: {
|
|
|
15946
15963
|
wait: <O, T extends Omit<OperationEntity, "output"> & {
|
|
15947
15964
|
output: O extends unknown ? any : O;
|
|
15948
15965
|
}>(this: any, operation: T, timeoutMs?: number, delay?: number) => Promise<T>;
|
|
15966
|
+
waitById: (this: any, operationId: string, timeoutMs?: any, delay?: any) => Promise<OperationEntity>;
|
|
15949
15967
|
}>;
|
|
15950
15968
|
groups: ApiDefinitionTree<{
|
|
15951
15969
|
create: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<GroupEntity, any>>;
|
package/dist/index.js
CHANGED
|
@@ -11040,19 +11040,30 @@ var getWorkflows = () => {
|
|
|
11040
11040
|
options
|
|
11041
11041
|
);
|
|
11042
11042
|
};
|
|
11043
|
-
const
|
|
11043
|
+
const workflowsControllerGetPublicWorkflowByAliasV1 = (alias, options) => {
|
|
11044
11044
|
return axiosMutator(
|
|
11045
11045
|
{
|
|
11046
|
-
url: `/v1/workflows/public/${
|
|
11046
|
+
url: `/v1/workflows/public/alias/${alias}`,
|
|
11047
11047
|
method: "GET"
|
|
11048
11048
|
},
|
|
11049
11049
|
options
|
|
11050
11050
|
);
|
|
11051
11051
|
};
|
|
11052
|
-
const
|
|
11052
|
+
const workflowsControllerRunPublicWorkflowByAliasV1 = (alias, runWorkflowParamsDto, options) => {
|
|
11053
11053
|
return axiosMutator(
|
|
11054
11054
|
{
|
|
11055
|
-
url: `/v1/workflows/public/alias/${alias}`,
|
|
11055
|
+
url: `/v1/workflows/public/alias/${alias}/run`,
|
|
11056
|
+
method: "POST",
|
|
11057
|
+
headers: { "Content-Type": "application/json" },
|
|
11058
|
+
data: runWorkflowParamsDto
|
|
11059
|
+
},
|
|
11060
|
+
options
|
|
11061
|
+
);
|
|
11062
|
+
};
|
|
11063
|
+
const workflowsControllerGetPublicWorkflowV1 = (id, options) => {
|
|
11064
|
+
return axiosMutator(
|
|
11065
|
+
{
|
|
11066
|
+
url: `/v1/workflows/public/${id}`,
|
|
11056
11067
|
method: "GET"
|
|
11057
11068
|
},
|
|
11058
11069
|
options
|
|
@@ -11147,7 +11158,7 @@ var getWorkflows = () => {
|
|
|
11147
11158
|
options
|
|
11148
11159
|
);
|
|
11149
11160
|
};
|
|
11150
|
-
return { workflowsControllerCreateWorkflowV1, workflowsControllerListWorkflowsV1, workflowsControllerListPublicWorkflowsV1,
|
|
11161
|
+
return { workflowsControllerCreateWorkflowV1, workflowsControllerListWorkflowsV1, workflowsControllerListPublicWorkflowsV1, workflowsControllerGetPublicWorkflowByAliasV1, workflowsControllerRunPublicWorkflowByAliasV1, workflowsControllerGetPublicWorkflowV1, workflowsControllerRunPublicWorkflowV1, workflowsControllerShareWorkflowWithEveryoneV1, workflowsControllerRevokeWorkflowPublicAccessV1, workflowsControllerGetWorkflowV1, workflowsControllerUpdateWorkflowV1, workflowsControllerDeleteWorkflowV1, workflowsControllerRunWorkflowV1, workflowsControllerGetWorkflowSchemaV1, workflowsControllerGetSharedWorkflowStatisticsV1 };
|
|
11151
11162
|
};
|
|
11152
11163
|
|
|
11153
11164
|
// src/sdk/api-definitions/workflows.ts
|
|
@@ -11165,6 +11176,7 @@ var useWorkflowsApi = () => {
|
|
|
11165
11176
|
listPublic: hautechApi.workflowsControllerListPublicWorkflowsV1,
|
|
11166
11177
|
getPublic: hautechApi.workflowsControllerGetPublicWorkflowV1,
|
|
11167
11178
|
runPublic: hautechApi.workflowsControllerRunPublicWorkflowV1,
|
|
11179
|
+
runPublicByAlias: hautechApi.workflowsControllerRunPublicWorkflowByAliasV1,
|
|
11168
11180
|
shareWithEveryone: hautechApi.workflowsControllerShareWorkflowWithEveryoneV1,
|
|
11169
11181
|
revokePublicAccess: hautechApi.workflowsControllerRevokeWorkflowPublicAccessV1,
|
|
11170
11182
|
getStatistics: hautechApi.workflowsControllerGetSharedWorkflowStatisticsV1
|
|
@@ -12395,6 +12407,23 @@ var waitOperation = wrapCustomMethod(async function(operation, timeoutMs = 6e4,
|
|
|
12395
12407
|
}
|
|
12396
12408
|
throw new Error("Operation timed out");
|
|
12397
12409
|
});
|
|
12410
|
+
var waitOperationById = wrapCustomMethod(async function(operationId, timeoutMs = 6e4, delay2 = 3e3) {
|
|
12411
|
+
const deadline = Date.now() + timeoutMs;
|
|
12412
|
+
const sdk = this;
|
|
12413
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
12414
|
+
const poll = async (id) => {
|
|
12415
|
+
const op = await sdk.operations.get(id);
|
|
12416
|
+
if (!op) throw new Error("Operation not found");
|
|
12417
|
+
if (op.status !== "pending") return op;
|
|
12418
|
+
return null;
|
|
12419
|
+
};
|
|
12420
|
+
while (Date.now() < deadline) {
|
|
12421
|
+
const result = await poll(operationId);
|
|
12422
|
+
if (result) return result;
|
|
12423
|
+
await sleep(delay2);
|
|
12424
|
+
}
|
|
12425
|
+
throw new Error("Operation timed out");
|
|
12426
|
+
});
|
|
12398
12427
|
var useOperationsApi = () => {
|
|
12399
12428
|
const hautechApi = getOperations();
|
|
12400
12429
|
return useApi({
|
|
@@ -12427,8 +12456,8 @@ var useOperationsApi = () => {
|
|
|
12427
12456
|
},
|
|
12428
12457
|
naomi: {
|
|
12429
12458
|
v1: hautechApi.operationsControllerRunHauteNaomiV1V1,
|
|
12430
|
-
train: hautechApi.
|
|
12431
|
-
prepareDataset: hautechApi.
|
|
12459
|
+
train: hautechApi.operationsControllerRunHauteNaomiTrainV1V1,
|
|
12460
|
+
prepareDataset: hautechApi.operationsControllerRunHauteNaomiPrepareDatasetV1V1
|
|
12432
12461
|
}
|
|
12433
12462
|
},
|
|
12434
12463
|
ideogram: {
|
|
@@ -12546,7 +12575,8 @@ var useOperationsApi = () => {
|
|
|
12546
12575
|
getMany: hautechApi.operationsControllerGetOperationsV1,
|
|
12547
12576
|
list: hautechApi.operationsControllerListOperationsV1,
|
|
12548
12577
|
updateMetadata: hautechApi.operationsControllerUpdateMetadataV1,
|
|
12549
|
-
wait: waitOperation
|
|
12578
|
+
wait: waitOperation,
|
|
12579
|
+
waitById: waitOperationById
|
|
12550
12580
|
});
|
|
12551
12581
|
};
|
|
12552
12582
|
|