@hautechai/sdk 0.3.22 → 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.
@@ -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<{
@@ -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)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {