@hautechai/sdk 0.0.27 → 0.0.29

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.
@@ -395,7 +395,7 @@ export interface CompositeV1Response {
395
395
  * @type {OperationOutputImageSingle}
396
396
  * @memberof CompositeV1Response
397
397
  */
398
- 'output'?: OperationOutputImageSingle | null;
398
+ 'output': OperationOutputImageSingle | null;
399
399
  /**
400
400
  *
401
401
  * @type {object}
@@ -600,7 +600,7 @@ export interface CutV1Response {
600
600
  * @type {OperationOutputImageSingle}
601
601
  * @memberof CutV1Response
602
602
  */
603
- 'output'?: OperationOutputImageSingle | null;
603
+ 'output': OperationOutputImageSingle | null;
604
604
  /**
605
605
  *
606
606
  * @type {object}
@@ -985,7 +985,7 @@ export interface GptV1Response {
985
985
  * @type {OperationOutputJSON}
986
986
  * @memberof GptV1Response
987
987
  */
988
- 'output'?: OperationOutputJSON | null;
988
+ 'output': OperationOutputJSON | null;
989
989
  /**
990
990
  *
991
991
  * @type {object}
@@ -1147,7 +1147,7 @@ export interface HauteLindaV1Response {
1147
1147
  * @type {OperationOutputImageMultiple}
1148
1148
  * @memberof HauteLindaV1Response
1149
1149
  */
1150
- 'output'?: OperationOutputImageMultiple | null;
1150
+ 'output': OperationOutputImageMultiple | null;
1151
1151
  /**
1152
1152
  *
1153
1153
  * @type {object}
@@ -1224,7 +1224,7 @@ export interface HauteNaomiV1Response {
1224
1224
  * @type {OperationOutputImageSingle}
1225
1225
  * @memberof HauteNaomiV1Response
1226
1226
  */
1227
- 'output'?: OperationOutputImageSingle | null;
1227
+ 'output': OperationOutputImageSingle | null;
1228
1228
  /**
1229
1229
  *
1230
1230
  * @type {object}
@@ -1422,7 +1422,7 @@ export interface ImagineKateV1Response {
1422
1422
  * @type {OperationOutputImageSingle}
1423
1423
  * @memberof ImagineKateV1Response
1424
1424
  */
1425
- 'output'?: OperationOutputImageSingle | null;
1425
+ 'output': OperationOutputImageSingle | null;
1426
1426
  /**
1427
1427
  *
1428
1428
  * @type {object}
@@ -1512,7 +1512,7 @@ export interface InpaintKateV1Response {
1512
1512
  * @type {OperationOutputImageSingle}
1513
1513
  * @memberof InpaintKateV1Response
1514
1514
  */
1515
- 'output'?: OperationOutputImageSingle | null;
1515
+ 'output': OperationOutputImageSingle | null;
1516
1516
  /**
1517
1517
  *
1518
1518
  * @type {object}
@@ -2297,7 +2297,7 @@ export interface NegateImageV1Response {
2297
2297
  * @type {OperationOutputImageSingle}
2298
2298
  * @memberof NegateImageV1Response
2299
2299
  */
2300
- 'output'?: OperationOutputImageSingle | null;
2300
+ 'output': OperationOutputImageSingle | null;
2301
2301
  /**
2302
2302
  *
2303
2303
  * @type {object}
@@ -2412,7 +2412,7 @@ export interface ObjectDetectionV1Response {
2412
2412
  * @type {OperationOutputJSON}
2413
2413
  * @memberof ObjectDetectionV1Response
2414
2414
  */
2415
- 'output'?: OperationOutputJSON | null;
2415
+ 'output': OperationOutputJSON | null;
2416
2416
  /**
2417
2417
  *
2418
2418
  * @type {object}
@@ -2809,7 +2809,7 @@ export interface PoseEstimationV1Response {
2809
2809
  * @type {OperationOutputJSON}
2810
2810
  * @memberof PoseEstimationV1Response
2811
2811
  */
2812
- 'output'?: OperationOutputJSON | null;
2812
+ 'output': OperationOutputJSON | null;
2813
2813
  /**
2814
2814
  *
2815
2815
  * @type {object}
@@ -3078,7 +3078,7 @@ export interface SegmentAnythingEmbeddingsV1Response {
3078
3078
  * @type {OperationOutputJSON}
3079
3079
  * @memberof SegmentAnythingEmbeddingsV1Response
3080
3080
  */
3081
- 'output'?: OperationOutputJSON | null;
3081
+ 'output': OperationOutputJSON | null;
3082
3082
  /**
3083
3083
  *
3084
3084
  * @type {object}
@@ -3193,7 +3193,7 @@ export interface SegmentAnythingMaskV1Response {
3193
3193
  * @type {OperationOutputImageSingle}
3194
3194
  * @memberof SegmentAnythingMaskV1Response
3195
3195
  */
3196
- 'output'?: OperationOutputImageSingle | null;
3196
+ 'output': OperationOutputImageSingle | null;
3197
3197
  /**
3198
3198
  *
3199
3199
  * @type {object}
@@ -3521,7 +3521,7 @@ export interface UpscaleV1Response {
3521
3521
  * @type {OperationOutputImageSingle}
3522
3522
  * @memberof UpscaleV1Response
3523
3523
  */
3524
- 'output'?: OperationOutputImageSingle | null;
3524
+ 'output': OperationOutputImageSingle | null;
3525
3525
  /**
3526
3526
  *
3527
3527
  * @type {object}
@@ -3598,7 +3598,7 @@ export interface VtonGiseleV1Response {
3598
3598
  * @type {OperationOutputImageSingle}
3599
3599
  * @memberof VtonGiseleV1Response
3600
3600
  */
3601
- 'output'?: OperationOutputImageSingle | null;
3601
+ 'output': OperationOutputImageSingle | null;
3602
3602
  /**
3603
3603
  *
3604
3604
  * @type {object}
@@ -180,6 +180,12 @@ export declare const createSDK: (options: SDKOptions) => {
180
180
  }) => Promise<import("../autogenerated").VtonGiseleV1Response>;
181
181
  };
182
182
  };
183
+ negateImage: {
184
+ v1: (props: {
185
+ input: import("../autogenerated").NegateImageV1Input;
186
+ metadata?: any;
187
+ }) => Promise<import("../autogenerated").NegateImageV1Response>;
188
+ };
183
189
  };
184
190
  get: (props: {
185
191
  id: string;
@@ -192,10 +198,9 @@ export declare const createSDK: (options: SDKOptions) => {
192
198
  id: string;
193
199
  metadata?: any;
194
200
  }) => Promise<void>;
195
- wait: (props: {
201
+ wait: <T extends import("../types").OperationEntity | {
196
202
  id: string;
197
- timeoutInSeconds?: number;
198
- }) => Promise<import("../types").OperationEntity>;
203
+ }>(props: T) => Promise<T extends import("../types").OperationEntity ? T : import("../types").OperationEntity>;
199
204
  };
200
205
  pipelines: {
201
206
  constructTemplate: (consructPipeline: (pipeline: import("@hautechai/pipelines").Pipeline<{
@@ -1,4 +1,4 @@
1
- import { CompositeV1Input, CompositeV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, PoseEstimationV1Input, PoseEstimationV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
1
+ import { CompositeV1Input, CompositeV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, PoseEstimationV1Input, PoseEstimationV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
2
2
  import { ListProps, ListResponse, SDKOptions } from '../../types';
3
3
  declare const operations: (options: SDKOptions) => {
4
4
  create: {
@@ -88,6 +88,12 @@ declare const operations: (options: SDKOptions) => {
88
88
  }) => Promise<VtonGiseleV1Response>;
89
89
  };
90
90
  };
91
+ negateImage: {
92
+ v1: (props: {
93
+ input: NegateImageV1Input;
94
+ metadata?: any;
95
+ }) => Promise<NegateImageV1Response>;
96
+ };
91
97
  };
92
98
  get: (props: {
93
99
  id: string;
@@ -100,9 +106,8 @@ declare const operations: (options: SDKOptions) => {
100
106
  id: string;
101
107
  metadata?: any;
102
108
  }) => Promise<void>;
103
- wait: (props: {
109
+ wait: <T extends OperationEntity | {
104
110
  id: string;
105
- timeoutInSeconds?: number;
106
- }) => Promise<OperationEntity>;
111
+ }>(props: T) => Promise<T extends OperationEntity ? T : OperationEntity>;
107
112
  };
108
113
  export default operations;
@@ -53,6 +53,9 @@ const operations = (options) => {
53
53
  v1: createOperation((methods, props) => methods.operationsControllerRunVtonGiseleV1V1(props)),
54
54
  },
55
55
  },
56
+ negateImage: {
57
+ v1: createOperation((methods, props) => methods.operationsControllerRunNegateImageV1V1(props)),
58
+ },
56
59
  },
57
60
  get: (props) => api.callWithReturningUndefinedOn404({
58
61
  run: (methods) => methods.operationsControllerGetOperationV1(props.id),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {