@hautechai/sdk 0.3.22 → 0.3.24

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.
@@ -38,6 +38,9 @@ export type MethodsPermissions = {
38
38
  create: boolean;
39
39
  read: boolean;
40
40
  };
41
+ videos: {
42
+ read: boolean;
43
+ };
41
44
  operations: {
42
45
  create: boolean;
43
46
  read: boolean;
@@ -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: {
@@ -259,20 +267,14 @@ export declare const createSDK: (options: SDKOptions) => {
259
267
  metadata: OperationMetadata;
260
268
  } ? T : Omit<import("../types").OperationEntity, "metadata"> & {
261
269
  metadata: OperationMetadata;
262
- }) & ({
263
- status: "failed";
264
- output: null;
265
- } | {
266
- status: "pending";
267
- output: null;
268
- } | {
270
+ }) & {
269
271
  status: "finished";
270
- output: NonNullable<(T extends Omit<import("../types").OperationEntity, "metadata"> & {
272
+ output: (T extends Omit<import("../types").OperationEntity, "metadata"> & {
271
273
  metadata: OperationMetadata;
272
274
  } ? T : Omit<import("../types").OperationEntity, "metadata"> & {
273
275
  metadata: OperationMetadata;
274
- })["output"]>;
275
- })) | (N extends undefined ? never : null)>;
276
+ })["output"];
277
+ }) | (N extends undefined ? never : null)>;
276
278
  };
277
279
  pipelines: {
278
280
  constructTemplate: (consructPipeline: (pipeline: import("@hautechai/pipelines").Pipeline<{
@@ -369,6 +371,13 @@ export declare const createSDK: (options: SDKOptions) => {
369
371
  __taskOutput__?: never;
370
372
  }) => Promise<import("../types").OperationEntity>;
371
373
  run: {
374
+ animate: {
375
+ kling_1_6_pro: {
376
+ v1: (params: import("../autogenerated").AnimateKling16ProV1Request & {
377
+ __taskOutput__?: never;
378
+ }) => Promise<import("../autogenerated").AnimateKling16ProV1Response>;
379
+ };
380
+ };
372
381
  haute: {
373
382
  linda: {
374
383
  v1: (params: import("../autogenerated").HauteLindaV1Request & {
@@ -617,6 +626,13 @@ export declare const createSDK: (options: SDKOptions) => {
617
626
  __taskOutput__?: never;
618
627
  }) => Promise<import("../types").OperationEntity>;
619
628
  run: {
629
+ animate: {
630
+ kling_1_6_pro: {
631
+ v1: (params: import("../autogenerated").AnimateKling16ProV1Request & {
632
+ __taskOutput__?: never;
633
+ }) => Promise<import("../autogenerated").AnimateKling16ProV1Response>;
634
+ };
635
+ };
620
636
  haute: {
621
637
  linda: {
622
638
  v1: (params: import("../autogenerated").HauteLindaV1Request & {
@@ -865,6 +881,13 @@ export declare const createSDK: (options: SDKOptions) => {
865
881
  __taskOutput__?: never;
866
882
  }) => Promise<import("../types").OperationEntity>;
867
883
  run: {
884
+ animate: {
885
+ kling_1_6_pro: {
886
+ v1: (params: import("../autogenerated").AnimateKling16ProV1Request & {
887
+ __taskOutput__?: never;
888
+ }) => Promise<import("../autogenerated").AnimateKling16ProV1Response>;
889
+ };
890
+ };
868
891
  haute: {
869
892
  linda: {
870
893
  v1: (params: import("../autogenerated").HauteLindaV1Request & {
@@ -1116,6 +1139,13 @@ export declare const createSDK: (options: SDKOptions) => {
1116
1139
  __taskOutput__?: never;
1117
1140
  }) => Promise<import("../types").OperationEntity>;
1118
1141
  run: {
1142
+ animate: {
1143
+ kling_1_6_pro: {
1144
+ v1: (params: import("../autogenerated").AnimateKling16ProV1Request & {
1145
+ __taskOutput__?: never;
1146
+ }) => Promise<import("../autogenerated").AnimateKling16ProV1Response>;
1147
+ };
1148
+ };
1119
1149
  haute: {
1120
1150
  linda: {
1121
1151
  v1: (params: import("../autogenerated").HauteLindaV1Request & {
@@ -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, ResizeV1Input, ResizeV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, TranslateV1Input, TranslateV1Response, 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: {
@@ -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)),
@@ -99,6 +99,13 @@ declare const pipelines: (options: SDKOptions) => {
99
99
  __taskOutput__?: never;
100
100
  }) => Promise<import("../../autogenerated").OperationEntity>;
101
101
  run: {
102
+ animate: {
103
+ kling_1_6_pro: {
104
+ v1: (params: import("../../autogenerated").AnimateKling16ProV1Request & {
105
+ __taskOutput__?: never;
106
+ }) => Promise<import("../../autogenerated").AnimateKling16ProV1Response>;
107
+ };
108
+ };
102
109
  haute: {
103
110
  linda: {
104
111
  v1: (params: import("../../autogenerated").HauteLindaV1Request & {
@@ -347,6 +354,13 @@ declare const pipelines: (options: SDKOptions) => {
347
354
  __taskOutput__?: never;
348
355
  }) => Promise<import("../../autogenerated").OperationEntity>;
349
356
  run: {
357
+ animate: {
358
+ kling_1_6_pro: {
359
+ v1: (params: import("../../autogenerated").AnimateKling16ProV1Request & {
360
+ __taskOutput__?: never;
361
+ }) => Promise<import("../../autogenerated").AnimateKling16ProV1Response>;
362
+ };
363
+ };
350
364
  haute: {
351
365
  linda: {
352
366
  v1: (params: import("../../autogenerated").HauteLindaV1Request & {
@@ -595,6 +609,13 @@ declare const pipelines: (options: SDKOptions) => {
595
609
  __taskOutput__?: never;
596
610
  }) => Promise<import("../../autogenerated").OperationEntity>;
597
611
  run: {
612
+ animate: {
613
+ kling_1_6_pro: {
614
+ v1: (params: import("../../autogenerated").AnimateKling16ProV1Request & {
615
+ __taskOutput__?: never;
616
+ }) => Promise<import("../../autogenerated").AnimateKling16ProV1Response>;
617
+ };
618
+ };
598
619
  haute: {
599
620
  linda: {
600
621
  v1: (params: import("../../autogenerated").HauteLindaV1Request & {
@@ -846,6 +867,13 @@ declare const pipelines: (options: SDKOptions) => {
846
867
  __taskOutput__?: never;
847
868
  }) => Promise<import("../../autogenerated").OperationEntity>;
848
869
  run: {
870
+ animate: {
871
+ kling_1_6_pro: {
872
+ v1: (params: import("../../autogenerated").AnimateKling16ProV1Request & {
873
+ __taskOutput__?: never;
874
+ }) => Promise<import("../../autogenerated").AnimateKling16ProV1Response>;
875
+ };
876
+ };
849
877
  haute: {
850
878
  linda: {
851
879
  v1: (params: import("../../autogenerated").HauteLindaV1Request & {
@@ -54,6 +54,11 @@ const pipelines = (options) => {
54
54
  list: callMethod((methods) => methods.callControllerCallOperationsListV1),
55
55
  updateMetadata: callMethod((methods) => methods.callControllerCallOperationsMetadataUpdateV1),
56
56
  run: {
57
+ animate: {
58
+ kling_1_6_pro: {
59
+ v1: callMethod((methods) => methods.callControllerCallOperationsRunAnimateKling16ProV1V1),
60
+ },
61
+ },
57
62
  haute: {
58
63
  linda: {
59
64
  v1: callMethod((methods) => methods.callControllerCallOperationsRunHauteLindaV1V1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {