@hautechai/sdk 0.3.21 → 0.3.23
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/autogenerated/api.d.ts +1393 -69
- package/dist/autogenerated/api.js +1046 -16
- package/dist/autogenerated/permissions.d.ts +3 -0
- package/dist/sdk/index.d.ts +64 -10
- package/dist/sdk/operations/index.d.ts +22 -2
- package/dist/sdk/operations/index.js +11 -0
- package/dist/sdk/pipelines/index.d.ts +40 -0
- package/dist/sdk/pipelines/index.js +6 -0
- package/package.json +1 -1
package/dist/sdk/index.d.ts
CHANGED
|
@@ -109,6 +109,14 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
109
109
|
};
|
|
110
110
|
operations: {
|
|
111
111
|
run: {
|
|
112
|
+
animate: {
|
|
113
|
+
kling_1_6_pro: {
|
|
114
|
+
v1: (props: {
|
|
115
|
+
input: import("../autogenerated").AnimateKling16ProV1Input;
|
|
116
|
+
metadata?: any;
|
|
117
|
+
}) => Promise<import("../autogenerated").AnimateKling16ProV1Response>;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
112
120
|
haute: {
|
|
113
121
|
linda: {
|
|
114
122
|
v1: (props: {
|
|
@@ -137,6 +145,12 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
137
145
|
metadata?: any;
|
|
138
146
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
139
147
|
};
|
|
148
|
+
translate: {
|
|
149
|
+
v1: (props: {
|
|
150
|
+
input: import("../autogenerated").TranslateV1Input;
|
|
151
|
+
metadata?: any;
|
|
152
|
+
}) => Promise<import("../autogenerated").TranslateV1Response>;
|
|
153
|
+
};
|
|
140
154
|
imagine: {
|
|
141
155
|
kate: {
|
|
142
156
|
v1: (props: {
|
|
@@ -221,6 +235,12 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
221
235
|
metadata?: any;
|
|
222
236
|
}) => Promise<import("../autogenerated").NegateImageV1Response>;
|
|
223
237
|
};
|
|
238
|
+
resize: {
|
|
239
|
+
v1: (props: {
|
|
240
|
+
input: import("../autogenerated").ResizeV1Input;
|
|
241
|
+
metadata?: any;
|
|
242
|
+
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
243
|
+
};
|
|
224
244
|
};
|
|
225
245
|
get: (props: {
|
|
226
246
|
id: string;
|
|
@@ -247,20 +267,14 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
247
267
|
metadata: OperationMetadata;
|
|
248
268
|
} ? T : Omit<import("../types").OperationEntity, "metadata"> & {
|
|
249
269
|
metadata: OperationMetadata;
|
|
250
|
-
}) &
|
|
251
|
-
status: "failed";
|
|
252
|
-
output: null;
|
|
253
|
-
} | {
|
|
254
|
-
status: "pending";
|
|
255
|
-
output: null;
|
|
256
|
-
} | {
|
|
270
|
+
}) & {
|
|
257
271
|
status: "finished";
|
|
258
|
-
output:
|
|
272
|
+
output: (T extends Omit<import("../types").OperationEntity, "metadata"> & {
|
|
259
273
|
metadata: OperationMetadata;
|
|
260
274
|
} ? T : Omit<import("../types").OperationEntity, "metadata"> & {
|
|
261
275
|
metadata: OperationMetadata;
|
|
262
|
-
})["output"]
|
|
263
|
-
})
|
|
276
|
+
})["output"];
|
|
277
|
+
}) | (N extends undefined ? never : null)>;
|
|
264
278
|
};
|
|
265
279
|
pipelines: {
|
|
266
280
|
constructTemplate: (consructPipeline: (pipeline: import("@hautechai/pipelines").Pipeline<{
|
|
@@ -381,6 +395,11 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
381
395
|
__taskOutput__?: never;
|
|
382
396
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
383
397
|
};
|
|
398
|
+
translate: {
|
|
399
|
+
v1: (params: import("../autogenerated").TranslateV1Request & {
|
|
400
|
+
__taskOutput__?: never;
|
|
401
|
+
}) => Promise<import("../autogenerated").TranslateV1Response>;
|
|
402
|
+
};
|
|
384
403
|
imagine: {
|
|
385
404
|
kate: {
|
|
386
405
|
v1: (params: import("../autogenerated").ImagineKateV1Request & {
|
|
@@ -452,6 +471,11 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
452
471
|
__taskOutput__?: never;
|
|
453
472
|
}) => Promise<import("../autogenerated").NegateImageV1Response>;
|
|
454
473
|
};
|
|
474
|
+
resize: {
|
|
475
|
+
v1: (params: import("../autogenerated").ResizeV1Request & {
|
|
476
|
+
__taskOutput__?: never;
|
|
477
|
+
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
478
|
+
};
|
|
455
479
|
};
|
|
456
480
|
wait: (params: import("../autogenerated").WaitOperationParamsDto & {
|
|
457
481
|
__taskOutput__?: never;
|
|
@@ -619,6 +643,11 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
619
643
|
__taskOutput__?: never;
|
|
620
644
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
621
645
|
};
|
|
646
|
+
translate: {
|
|
647
|
+
v1: (params: import("../autogenerated").TranslateV1Request & {
|
|
648
|
+
__taskOutput__?: never;
|
|
649
|
+
}) => Promise<import("../autogenerated").TranslateV1Response>;
|
|
650
|
+
};
|
|
622
651
|
imagine: {
|
|
623
652
|
kate: {
|
|
624
653
|
v1: (params: import("../autogenerated").ImagineKateV1Request & {
|
|
@@ -690,6 +719,11 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
690
719
|
__taskOutput__?: never;
|
|
691
720
|
}) => Promise<import("../autogenerated").NegateImageV1Response>;
|
|
692
721
|
};
|
|
722
|
+
resize: {
|
|
723
|
+
v1: (params: import("../autogenerated").ResizeV1Request & {
|
|
724
|
+
__taskOutput__?: never;
|
|
725
|
+
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
726
|
+
};
|
|
693
727
|
};
|
|
694
728
|
wait: (params: import("../autogenerated").WaitOperationParamsDto & {
|
|
695
729
|
__taskOutput__?: never;
|
|
@@ -857,6 +891,11 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
857
891
|
__taskOutput__?: never;
|
|
858
892
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
859
893
|
};
|
|
894
|
+
translate: {
|
|
895
|
+
v1: (params: import("../autogenerated").TranslateV1Request & {
|
|
896
|
+
__taskOutput__?: never;
|
|
897
|
+
}) => Promise<import("../autogenerated").TranslateV1Response>;
|
|
898
|
+
};
|
|
860
899
|
imagine: {
|
|
861
900
|
kate: {
|
|
862
901
|
v1: (params: import("../autogenerated").ImagineKateV1Request & {
|
|
@@ -928,6 +967,11 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
928
967
|
__taskOutput__?: never;
|
|
929
968
|
}) => Promise<import("../autogenerated").NegateImageV1Response>;
|
|
930
969
|
};
|
|
970
|
+
resize: {
|
|
971
|
+
v1: (params: import("../autogenerated").ResizeV1Request & {
|
|
972
|
+
__taskOutput__?: never;
|
|
973
|
+
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
974
|
+
};
|
|
931
975
|
};
|
|
932
976
|
wait: (params: import("../autogenerated").WaitOperationParamsDto & {
|
|
933
977
|
__taskOutput__?: never;
|
|
@@ -1098,6 +1142,11 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1098
1142
|
__taskOutput__?: never;
|
|
1099
1143
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
1100
1144
|
};
|
|
1145
|
+
translate: {
|
|
1146
|
+
v1: (params: import("../autogenerated").TranslateV1Request & {
|
|
1147
|
+
__taskOutput__?: never;
|
|
1148
|
+
}) => Promise<import("../autogenerated").TranslateV1Response>;
|
|
1149
|
+
};
|
|
1101
1150
|
imagine: {
|
|
1102
1151
|
kate: {
|
|
1103
1152
|
v1: (params: import("../autogenerated").ImagineKateV1Request & {
|
|
@@ -1169,6 +1218,11 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1169
1218
|
__taskOutput__?: never;
|
|
1170
1219
|
}) => Promise<import("../autogenerated").NegateImageV1Response>;
|
|
1171
1220
|
};
|
|
1221
|
+
resize: {
|
|
1222
|
+
v1: (params: import("../autogenerated").ResizeV1Request & {
|
|
1223
|
+
__taskOutput__?: never;
|
|
1224
|
+
}) => Promise<import("../autogenerated").ResizeV1Response>;
|
|
1225
|
+
};
|
|
1172
1226
|
};
|
|
1173
1227
|
wait: (params: import("../autogenerated").WaitOperationParamsDto & {
|
|
1174
1228
|
__taskOutput__?: never;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CompositeV1Input, CompositeV1Response, ContrastV1Input, ContrastV1Response, CropV1Input, CropV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, NoiseV1Input, NoiseV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, OperationEntityStatusEnum, PoseEstimationV1Input, PoseEstimationV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
1
|
+
import { AnimateKling16ProV1Input, AnimateKling16ProV1Response, CompositeV1Input, CompositeV1Response, ContrastV1Input, ContrastV1Response, CropV1Input, CropV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, NoiseV1Input, NoiseV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, OperationEntityStatusEnum, PoseEstimationV1Input, PoseEstimationV1Response, ResizeV1Input, ResizeV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, TranslateV1Input, TranslateV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
2
2
|
import { ListProps, ListResponse, SDKOptions } from '../../types';
|
|
3
|
+
import { OperationMetadata } from '../index';
|
|
3
4
|
import { OperationsListener } from '../listeners';
|
|
4
5
|
import { AddMetadata } from '../utils';
|
|
5
|
-
import { OperationMetadata } from '../index';
|
|
6
6
|
type OperationEntityWithMetadata = AddMetadata<OperationEntity, OperationMetadata>;
|
|
7
7
|
type Waited<T extends OperationEntityWithMetadata> = T & ({
|
|
8
8
|
status: typeof OperationEntityStatusEnum.Failed;
|
|
@@ -16,6 +16,14 @@ type Waited<T extends OperationEntityWithMetadata> = T & ({
|
|
|
16
16
|
});
|
|
17
17
|
declare const operations: (options: SDKOptions, operationsListener: OperationsListener) => {
|
|
18
18
|
run: {
|
|
19
|
+
animate: {
|
|
20
|
+
kling_1_6_pro: {
|
|
21
|
+
v1: (props: {
|
|
22
|
+
input: AnimateKling16ProV1Input;
|
|
23
|
+
metadata?: any;
|
|
24
|
+
}) => Promise<AnimateKling16ProV1Response>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
19
27
|
haute: {
|
|
20
28
|
linda: {
|
|
21
29
|
v1: (props: {
|
|
@@ -44,6 +52,12 @@ declare const operations: (options: SDKOptions, operationsListener: OperationsLi
|
|
|
44
52
|
metadata?: any;
|
|
45
53
|
}) => Promise<GptV1Response>;
|
|
46
54
|
};
|
|
55
|
+
translate: {
|
|
56
|
+
v1: (props: {
|
|
57
|
+
input: TranslateV1Input;
|
|
58
|
+
metadata?: any;
|
|
59
|
+
}) => Promise<TranslateV1Response>;
|
|
60
|
+
};
|
|
47
61
|
imagine: {
|
|
48
62
|
kate: {
|
|
49
63
|
v1: (props: {
|
|
@@ -128,6 +142,12 @@ declare const operations: (options: SDKOptions, operationsListener: OperationsLi
|
|
|
128
142
|
metadata?: any;
|
|
129
143
|
}) => Promise<NegateImageV1Response>;
|
|
130
144
|
};
|
|
145
|
+
resize: {
|
|
146
|
+
v1: (props: {
|
|
147
|
+
input: ResizeV1Input;
|
|
148
|
+
metadata?: any;
|
|
149
|
+
}) => Promise<ResizeV1Response>;
|
|
150
|
+
};
|
|
131
151
|
};
|
|
132
152
|
get: (props: {
|
|
133
153
|
id: string;
|
|
@@ -7,6 +7,11 @@ const operations = (options, operationsListener) => {
|
|
|
7
7
|
const createOperation = (callMethod) => (props) => api.call({ run: (methods) => callMethod(methods, props) });
|
|
8
8
|
return {
|
|
9
9
|
run: {
|
|
10
|
+
animate: {
|
|
11
|
+
kling_1_6_pro: {
|
|
12
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunAnimateKling16ProV1V1(props)),
|
|
13
|
+
},
|
|
14
|
+
},
|
|
10
15
|
haute: {
|
|
11
16
|
linda: {
|
|
12
17
|
v1: createOperation((methods, props) => methods.operationsControllerRunHauteLindaV1V1(props)),
|
|
@@ -23,6 +28,9 @@ const operations = (options, operationsListener) => {
|
|
|
23
28
|
gpt: {
|
|
24
29
|
v1: createOperation((methods, props) => methods.operationsControllerRunGptV1V1(props)),
|
|
25
30
|
},
|
|
31
|
+
translate: {
|
|
32
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunTranslateV1V1(props)),
|
|
33
|
+
},
|
|
26
34
|
imagine: {
|
|
27
35
|
kate: {
|
|
28
36
|
v1: createOperation((methods, props) => methods.operationsControllerRunImagineKateV1V1(props)),
|
|
@@ -68,6 +76,9 @@ const operations = (options, operationsListener) => {
|
|
|
68
76
|
negateImage: {
|
|
69
77
|
v1: createOperation((methods, props) => methods.operationsControllerRunNegateImageV1V1(props)),
|
|
70
78
|
},
|
|
79
|
+
resize: {
|
|
80
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunResizeV1V1(props)),
|
|
81
|
+
},
|
|
71
82
|
},
|
|
72
83
|
get: (props) => api.callWithReturningUndefinedOn404({
|
|
73
84
|
run: (methods) => methods.operationsControllerGetOperationV1(props.id),
|
|
@@ -123,6 +123,11 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
123
123
|
__taskOutput__?: never;
|
|
124
124
|
}) => Promise<import("../../autogenerated").GptV1Response>;
|
|
125
125
|
};
|
|
126
|
+
translate: {
|
|
127
|
+
v1: (params: import("../../autogenerated").TranslateV1Request & {
|
|
128
|
+
__taskOutput__?: never;
|
|
129
|
+
}) => Promise<import("../../autogenerated").TranslateV1Response>;
|
|
130
|
+
};
|
|
126
131
|
imagine: {
|
|
127
132
|
kate: {
|
|
128
133
|
v1: (params: import("../../autogenerated").ImagineKateV1Request & {
|
|
@@ -194,6 +199,11 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
194
199
|
__taskOutput__?: never;
|
|
195
200
|
}) => Promise<import("../../autogenerated").NegateImageV1Response>;
|
|
196
201
|
};
|
|
202
|
+
resize: {
|
|
203
|
+
v1: (params: import("../../autogenerated").ResizeV1Request & {
|
|
204
|
+
__taskOutput__?: never;
|
|
205
|
+
}) => Promise<import("../../autogenerated").ResizeV1Response>;
|
|
206
|
+
};
|
|
197
207
|
};
|
|
198
208
|
wait: (params: import("../../autogenerated").WaitOperationParamsDto & {
|
|
199
209
|
__taskOutput__?: never;
|
|
@@ -361,6 +371,11 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
361
371
|
__taskOutput__?: never;
|
|
362
372
|
}) => Promise<import("../../autogenerated").GptV1Response>;
|
|
363
373
|
};
|
|
374
|
+
translate: {
|
|
375
|
+
v1: (params: import("../../autogenerated").TranslateV1Request & {
|
|
376
|
+
__taskOutput__?: never;
|
|
377
|
+
}) => Promise<import("../../autogenerated").TranslateV1Response>;
|
|
378
|
+
};
|
|
364
379
|
imagine: {
|
|
365
380
|
kate: {
|
|
366
381
|
v1: (params: import("../../autogenerated").ImagineKateV1Request & {
|
|
@@ -432,6 +447,11 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
432
447
|
__taskOutput__?: never;
|
|
433
448
|
}) => Promise<import("../../autogenerated").NegateImageV1Response>;
|
|
434
449
|
};
|
|
450
|
+
resize: {
|
|
451
|
+
v1: (params: import("../../autogenerated").ResizeV1Request & {
|
|
452
|
+
__taskOutput__?: never;
|
|
453
|
+
}) => Promise<import("../../autogenerated").ResizeV1Response>;
|
|
454
|
+
};
|
|
435
455
|
};
|
|
436
456
|
wait: (params: import("../../autogenerated").WaitOperationParamsDto & {
|
|
437
457
|
__taskOutput__?: never;
|
|
@@ -599,6 +619,11 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
599
619
|
__taskOutput__?: never;
|
|
600
620
|
}) => Promise<import("../../autogenerated").GptV1Response>;
|
|
601
621
|
};
|
|
622
|
+
translate: {
|
|
623
|
+
v1: (params: import("../../autogenerated").TranslateV1Request & {
|
|
624
|
+
__taskOutput__?: never;
|
|
625
|
+
}) => Promise<import("../../autogenerated").TranslateV1Response>;
|
|
626
|
+
};
|
|
602
627
|
imagine: {
|
|
603
628
|
kate: {
|
|
604
629
|
v1: (params: import("../../autogenerated").ImagineKateV1Request & {
|
|
@@ -670,6 +695,11 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
670
695
|
__taskOutput__?: never;
|
|
671
696
|
}) => Promise<import("../../autogenerated").NegateImageV1Response>;
|
|
672
697
|
};
|
|
698
|
+
resize: {
|
|
699
|
+
v1: (params: import("../../autogenerated").ResizeV1Request & {
|
|
700
|
+
__taskOutput__?: never;
|
|
701
|
+
}) => Promise<import("../../autogenerated").ResizeV1Response>;
|
|
702
|
+
};
|
|
673
703
|
};
|
|
674
704
|
wait: (params: import("../../autogenerated").WaitOperationParamsDto & {
|
|
675
705
|
__taskOutput__?: never;
|
|
@@ -840,6 +870,11 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
840
870
|
__taskOutput__?: never;
|
|
841
871
|
}) => Promise<import("../../autogenerated").GptV1Response>;
|
|
842
872
|
};
|
|
873
|
+
translate: {
|
|
874
|
+
v1: (params: import("../../autogenerated").TranslateV1Request & {
|
|
875
|
+
__taskOutput__?: never;
|
|
876
|
+
}) => Promise<import("../../autogenerated").TranslateV1Response>;
|
|
877
|
+
};
|
|
843
878
|
imagine: {
|
|
844
879
|
kate: {
|
|
845
880
|
v1: (params: import("../../autogenerated").ImagineKateV1Request & {
|
|
@@ -911,6 +946,11 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
911
946
|
__taskOutput__?: never;
|
|
912
947
|
}) => Promise<import("../../autogenerated").NegateImageV1Response>;
|
|
913
948
|
};
|
|
949
|
+
resize: {
|
|
950
|
+
v1: (params: import("../../autogenerated").ResizeV1Request & {
|
|
951
|
+
__taskOutput__?: never;
|
|
952
|
+
}) => Promise<import("../../autogenerated").ResizeV1Response>;
|
|
953
|
+
};
|
|
914
954
|
};
|
|
915
955
|
wait: (params: import("../../autogenerated").WaitOperationParamsDto & {
|
|
916
956
|
__taskOutput__?: never;
|
|
@@ -70,6 +70,9 @@ const pipelines = (options) => {
|
|
|
70
70
|
gpt: {
|
|
71
71
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunGptV1V1),
|
|
72
72
|
},
|
|
73
|
+
translate: {
|
|
74
|
+
v1: callMethod((methods) => methods.callControllerCallOperationsRunTranslateV1V1),
|
|
75
|
+
},
|
|
73
76
|
imagine: {
|
|
74
77
|
kate: {
|
|
75
78
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunImagineKateV1V1),
|
|
@@ -115,6 +118,9 @@ const pipelines = (options) => {
|
|
|
115
118
|
negateImage: {
|
|
116
119
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunNegateImageV1V1),
|
|
117
120
|
},
|
|
121
|
+
resize: {
|
|
122
|
+
v1: callMethod((methods) => methods.callControllerCallOperationsRunResizeV1V1),
|
|
123
|
+
},
|
|
118
124
|
},
|
|
119
125
|
wait: callMethod((methods) => methods.callControllerCallOperationsWaitV1),
|
|
120
126
|
},
|