@hautechai/sdk 0.0.25 → 0.0.26

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,22 @@ export const CompositeElementFitEnum = {
38
38
  Inside: 'inside',
39
39
  Outside: 'outside'
40
40
  };
41
+ export const CompositeV1ResponseKindEnum = {
42
+ Operation: 'operation'
43
+ };
44
+ export const CompositeV1ResponseStatusEnum = {
45
+ Pending: 'pending',
46
+ Finished: 'finished',
47
+ Failed: 'failed'
48
+ };
49
+ export const CutV1ResponseKindEnum = {
50
+ Operation: 'operation'
51
+ };
52
+ export const CutV1ResponseStatusEnum = {
53
+ Pending: 'pending',
54
+ Finished: 'finished',
55
+ Failed: 'failed'
56
+ };
41
57
  export const GPTV1InputModelEnum = {
42
58
  Gpt4o: 'gpt-4o'
43
59
  };
@@ -49,6 +65,14 @@ export const GiseleVtonV1InputCategoryEnum = {
49
65
  LowerBody: 'lower_body',
50
66
  UpperBody: 'upper_body'
51
67
  };
68
+ export const GptV1ResponseKindEnum = {
69
+ Operation: 'operation'
70
+ };
71
+ export const GptV1ResponseStatusEnum = {
72
+ Pending: 'pending',
73
+ Finished: 'finished',
74
+ Failed: 'failed'
75
+ };
52
76
  export const GrantAccessControllerParamsPrincipalTypeEnum = {
53
77
  Account: 'account',
54
78
  Group: 'group'
@@ -57,6 +81,22 @@ export const GrantAccessParamsDtoPrincipalTypeEnum = {
57
81
  Account: 'account',
58
82
  Group: 'group'
59
83
  };
84
+ export const HauteLindaV1ResponseKindEnum = {
85
+ Operation: 'operation'
86
+ };
87
+ export const HauteLindaV1ResponseStatusEnum = {
88
+ Pending: 'pending',
89
+ Finished: 'finished',
90
+ Failed: 'failed'
91
+ };
92
+ export const HauteNaomiV1ResponseKindEnum = {
93
+ Operation: 'operation'
94
+ };
95
+ export const HauteNaomiV1ResponseStatusEnum = {
96
+ Pending: 'pending',
97
+ Finished: 'finished',
98
+ Failed: 'failed'
99
+ };
60
100
  export const ImageEntityKindEnum = {
61
101
  Collection: 'collection',
62
102
  Operation: 'operation',
@@ -66,6 +106,22 @@ export const ImageEntityKindEnum = {
66
106
  Storage: 'storage',
67
107
  Pipeline: 'pipeline'
68
108
  };
109
+ export const ImagineKateV1ResponseKindEnum = {
110
+ Operation: 'operation'
111
+ };
112
+ export const ImagineKateV1ResponseStatusEnum = {
113
+ Pending: 'pending',
114
+ Finished: 'finished',
115
+ Failed: 'failed'
116
+ };
117
+ export const InpaintKateV1ResponseKindEnum = {
118
+ Operation: 'operation'
119
+ };
120
+ export const InpaintKateV1ResponseStatusEnum = {
121
+ Pending: 'pending',
122
+ Finished: 'finished',
123
+ Failed: 'failed'
124
+ };
69
125
  export const KateImagineV1InputAspectRatioEnum = {
70
126
  _11: '1:1',
71
127
  _97: '9:7',
@@ -129,27 +185,40 @@ export const ListStacksParamsDtoOrderByEnum = {
129
185
  UpdatedAtAsc: 'updatedAt_ASC',
130
186
  UpdatedAtDesc: 'updatedAt_DESC'
131
187
  };
188
+ export const NegateImageV1ResponseKindEnum = {
189
+ Operation: 'operation'
190
+ };
191
+ export const NegateImageV1ResponseStatusEnum = {
192
+ Pending: 'pending',
193
+ Finished: 'finished',
194
+ Failed: 'failed'
195
+ };
196
+ export const ObjectDetectionV1ResponseKindEnum = {
197
+ Operation: 'operation'
198
+ };
199
+ export const ObjectDetectionV1ResponseStatusEnum = {
200
+ Pending: 'pending',
201
+ Finished: 'finished',
202
+ Failed: 'failed'
203
+ };
132
204
  export const OperationEntityKindEnum = {
133
- Collection: 'collection',
134
- Operation: 'operation',
135
- Stack: 'stack',
136
- Image: 'image',
137
- Pose: 'pose',
138
- Storage: 'storage',
139
- Pipeline: 'pipeline'
205
+ Operation: 'operation'
140
206
  };
141
207
  export const OperationEntityStatusEnum = {
142
208
  Pending: 'pending',
143
209
  Finished: 'finished',
144
210
  Failed: 'failed'
145
211
  };
212
+ export const OperationOutputImageMultipleKindEnum = {
213
+ ImageMultiple: 'image/multiple'
214
+ };
215
+ export const OperationOutputImageSingleKindEnum = {
216
+ ImageSingle: 'image/single'
217
+ };
218
+ export const OperationOutputJSONKindEnum = {
219
+ Json: 'json'
220
+ };
146
221
  export const PipelineEntityKindEnum = {
147
- Collection: 'collection',
148
- Operation: 'operation',
149
- Stack: 'stack',
150
- Image: 'image',
151
- Pose: 'pose',
152
- Storage: 'storage',
153
222
  Pipeline: 'pipeline'
154
223
  };
155
224
  export const PipelineEntityStatusEnum = {
@@ -158,13 +227,15 @@ export const PipelineEntityStatusEnum = {
158
227
  Failed: 'failed'
159
228
  };
160
229
  export const PoseEntityKindEnum = {
161
- Collection: 'collection',
162
- Operation: 'operation',
163
- Stack: 'stack',
164
- Image: 'image',
165
- Pose: 'pose',
166
- Storage: 'storage',
167
- Pipeline: 'pipeline'
230
+ Pose: 'pose'
231
+ };
232
+ export const PoseEstimationV1ResponseKindEnum = {
233
+ Operation: 'operation'
234
+ };
235
+ export const PoseEstimationV1ResponseStatusEnum = {
236
+ Pending: 'pending',
237
+ Finished: 'finished',
238
+ Failed: 'failed'
168
239
  };
169
240
  export const RemoveAccountFromGroupControllerParamsDtoRoleEnum = {
170
241
  Maintainer: 'maintainer',
@@ -185,17 +256,43 @@ export const ResourceEntityKindEnum = {
185
256
  Storage: 'storage',
186
257
  Pipeline: 'pipeline'
187
258
  };
259
+ export const SegmentAnythingEmbeddingsV1ResponseKindEnum = {
260
+ Operation: 'operation'
261
+ };
262
+ export const SegmentAnythingEmbeddingsV1ResponseStatusEnum = {
263
+ Pending: 'pending',
264
+ Finished: 'finished',
265
+ Failed: 'failed'
266
+ };
267
+ export const SegmentAnythingMaskV1ResponseKindEnum = {
268
+ Operation: 'operation'
269
+ };
270
+ export const SegmentAnythingMaskV1ResponseStatusEnum = {
271
+ Pending: 'pending',
272
+ Finished: 'finished',
273
+ Failed: 'failed'
274
+ };
188
275
  export const StackEntityKindEnum = {
189
276
  Stack: 'stack'
190
277
  };
191
278
  export const StorageEntityKindEnum = {
192
- Collection: 'collection',
193
- Operation: 'operation',
194
- Stack: 'stack',
195
- Image: 'image',
196
- Pose: 'pose',
197
- Storage: 'storage',
198
- Pipeline: 'pipeline'
279
+ Storage: 'storage'
280
+ };
281
+ export const UpscaleV1ResponseKindEnum = {
282
+ Operation: 'operation'
283
+ };
284
+ export const UpscaleV1ResponseStatusEnum = {
285
+ Pending: 'pending',
286
+ Finished: 'finished',
287
+ Failed: 'failed'
288
+ };
289
+ export const VtonGiseleV1ResponseKindEnum = {
290
+ Operation: 'operation'
291
+ };
292
+ export const VtonGiseleV1ResponseStatusEnum = {
293
+ Pending: 'pending',
294
+ Finished: 'finished',
295
+ Failed: 'failed'
199
296
  };
200
297
  /**
201
298
  * AccessApi - axios parameter creator
@@ -5164,6 +5261,38 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
5164
5261
  options: localVarRequestOptions,
5165
5262
  };
5166
5263
  },
5264
+ /**
5265
+ *
5266
+ * @param {NegateImageV1ControllerInput} negateImageV1ControllerInput
5267
+ * @param {*} [options] Override http request option.
5268
+ * @throws {RequiredError}
5269
+ */
5270
+ operationsControllerRunNegateImageV1V1: async (negateImageV1ControllerInput, options = {}) => {
5271
+ // verify required parameter 'negateImageV1ControllerInput' is not null or undefined
5272
+ assertParamExists('operationsControllerRunNegateImageV1V1', 'negateImageV1ControllerInput', negateImageV1ControllerInput);
5273
+ const localVarPath = `/v1/operations/run/negateImage.v1`;
5274
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5275
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5276
+ let baseOptions;
5277
+ if (configuration) {
5278
+ baseOptions = configuration.baseOptions;
5279
+ }
5280
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5281
+ const localVarHeaderParameter = {};
5282
+ const localVarQueryParameter = {};
5283
+ // authentication bearer required
5284
+ // http bearer authentication required
5285
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
5286
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5287
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5288
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5289
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5290
+ localVarRequestOptions.data = serializeDataIfNeeded(negateImageV1ControllerInput, localVarRequestOptions, configuration);
5291
+ return {
5292
+ url: toPathString(localVarUrlObj),
5293
+ options: localVarRequestOptions,
5294
+ };
5295
+ },
5167
5296
  /**
5168
5297
  *
5169
5298
  * @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
@@ -5523,6 +5652,18 @@ export const OperationsApiFp = function (configuration) {
5523
5652
  const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunInpaintKateV1V1']?.[localVarOperationServerIndex]?.url;
5524
5653
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5525
5654
  },
5655
+ /**
5656
+ *
5657
+ * @param {NegateImageV1ControllerInput} negateImageV1ControllerInput
5658
+ * @param {*} [options] Override http request option.
5659
+ * @throws {RequiredError}
5660
+ */
5661
+ async operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options) {
5662
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options);
5663
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5664
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunNegateImageV1V1']?.[localVarOperationServerIndex]?.url;
5665
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5666
+ },
5526
5667
  /**
5527
5668
  *
5528
5669
  * @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
@@ -5709,6 +5850,15 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
5709
5850
  operationsControllerRunInpaintKateV1V1(kateInpaintV1ControllerInput, options) {
5710
5851
  return localVarFp.operationsControllerRunInpaintKateV1V1(kateInpaintV1ControllerInput, options).then((request) => request(axios, basePath));
5711
5852
  },
5853
+ /**
5854
+ *
5855
+ * @param {NegateImageV1ControllerInput} negateImageV1ControllerInput
5856
+ * @param {*} [options] Override http request option.
5857
+ * @throws {RequiredError}
5858
+ */
5859
+ operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options) {
5860
+ return localVarFp.operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options).then((request) => request(axios, basePath));
5861
+ },
5712
5862
  /**
5713
5863
  *
5714
5864
  * @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
@@ -5884,6 +6034,16 @@ export class OperationsApi extends BaseAPI {
5884
6034
  operationsControllerRunInpaintKateV1V1(kateInpaintV1ControllerInput, options) {
5885
6035
  return OperationsApiFp(this.configuration).operationsControllerRunInpaintKateV1V1(kateInpaintV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
5886
6036
  }
6037
+ /**
6038
+ *
6039
+ * @param {NegateImageV1ControllerInput} negateImageV1ControllerInput
6040
+ * @param {*} [options] Override http request option.
6041
+ * @throws {RequiredError}
6042
+ * @memberof OperationsApi
6043
+ */
6044
+ operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options) {
6045
+ return OperationsApiFp(this.configuration).operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
6046
+ }
5887
6047
  /**
5888
6048
  *
5889
6049
  * @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
@@ -97,52 +97,52 @@ export declare const createSDK: (options: SDKOptions) => {
97
97
  v1: (props: {
98
98
  input: import("../autogenerated").CompositeV1Input;
99
99
  metadata?: any;
100
- }) => Promise<import("../types").OperationEntity>;
100
+ }) => Promise<import("../autogenerated").CompositeV1Response>;
101
101
  };
102
102
  cut: {
103
103
  v1: (props: {
104
104
  input: import("../autogenerated").CutV1Input;
105
105
  metadata?: any;
106
- }) => Promise<import("../types").OperationEntity>;
106
+ }) => Promise<import("../autogenerated").CutV1Response>;
107
107
  };
108
108
  detect: {
109
109
  v1: (props: {
110
110
  input: import("../autogenerated").ObjectDetectionV1Input;
111
111
  metadata?: any;
112
- }) => Promise<import("../types").OperationEntity>;
112
+ }) => Promise<import("../autogenerated").ObjectDetectionV1Response>;
113
113
  };
114
114
  estimatePose: {
115
115
  v1: (props: {
116
116
  input: import("../autogenerated").PoseEstimationV1Input;
117
117
  metadata?: any;
118
- }) => Promise<import("../types").OperationEntity>;
118
+ }) => Promise<import("../autogenerated").PoseEstimationV1Response>;
119
119
  };
120
120
  haute: {
121
121
  linda: {
122
122
  v1: (props: {
123
123
  input: import("../autogenerated").LindaHauteV1Input;
124
124
  metadata?: any;
125
- }) => Promise<import("../types").OperationEntity>;
125
+ }) => Promise<import("../autogenerated").HauteLindaV1Response>;
126
126
  };
127
127
  naomi: {
128
128
  v1: (props: {
129
129
  input: import("../autogenerated").NaomiHauteV1Input;
130
130
  metadata?: any;
131
- }) => Promise<import("../types").OperationEntity>;
131
+ }) => Promise<import("../autogenerated").HauteNaomiV1Response>;
132
132
  };
133
133
  };
134
134
  gpt: {
135
135
  v1: (props: {
136
136
  input: import("../autogenerated").GPTV1Input;
137
137
  metadata?: any;
138
- }) => Promise<import("../types").OperationEntity>;
138
+ }) => Promise<import("../autogenerated").GptV1Response>;
139
139
  };
140
140
  imagine: {
141
141
  kate: {
142
142
  v1: (props: {
143
143
  input: import("../autogenerated").KateImagineV1Input;
144
144
  metadata?: any;
145
- }) => Promise<import("../types").OperationEntity>;
145
+ }) => Promise<import("../autogenerated").ImagineKateV1Response>;
146
146
  };
147
147
  };
148
148
  inpaint: {
@@ -150,33 +150,33 @@ export declare const createSDK: (options: SDKOptions) => {
150
150
  v1: (props: {
151
151
  input: import("../autogenerated").KateInpaintV1Input;
152
152
  metadata?: any;
153
- }) => Promise<import("../types").OperationEntity>;
153
+ }) => Promise<import("../autogenerated").ImagineKateV1Response>;
154
154
  };
155
155
  };
156
156
  segmentEmbeddings: {
157
157
  v1: (props: {
158
158
  input: import("../autogenerated").SegmentAnythingEmbeddingsV1Input;
159
159
  metadata?: any;
160
- }) => Promise<import("../types").OperationEntity>;
160
+ }) => Promise<import("../autogenerated").SegmentAnythingEmbeddingsV1Response>;
161
161
  };
162
162
  segmentMask: {
163
163
  v1: (props: {
164
164
  input: import("../autogenerated").SegmentAnythingMaskV1Input;
165
165
  metadata?: any;
166
- }) => Promise<import("../types").OperationEntity>;
166
+ }) => Promise<import("../autogenerated").SegmentAnythingMaskV1Response>;
167
167
  };
168
168
  upscale: {
169
169
  v1: (props: {
170
170
  input: import("../autogenerated").UpscaleV1Input;
171
171
  metadata?: any;
172
- }) => Promise<import("../types").OperationEntity>;
172
+ }) => Promise<import("../autogenerated").UpscaleV1Response>;
173
173
  };
174
174
  vton: {
175
175
  gisele: {
176
176
  v1: (props: {
177
177
  input: import("../autogenerated").GiseleVtonV1Input;
178
178
  metadata?: any;
179
- }) => Promise<import("../types").OperationEntity>;
179
+ }) => Promise<import("../autogenerated").VtonGiseleV1Response>;
180
180
  };
181
181
  };
182
182
  };
@@ -1,4 +1,4 @@
1
- import { CompositeV1Input, CutV1Input, GiseleVtonV1Input, GPTV1Input, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, ObjectDetectionV1Input, OperationEntity, PoseEstimationV1Input, SegmentAnythingEmbeddingsV1Input, SegmentAnythingMaskV1Input, UpscaleV1Input } from '../../autogenerated';
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';
2
2
  import { ListProps, ListResponse, SDKOptions } from '../../types';
3
3
  declare const operations: (options: SDKOptions) => {
4
4
  create: {
@@ -6,52 +6,52 @@ declare const operations: (options: SDKOptions) => {
6
6
  v1: (props: {
7
7
  input: CompositeV1Input;
8
8
  metadata?: any;
9
- }) => Promise<OperationEntity>;
9
+ }) => Promise<CompositeV1Response>;
10
10
  };
11
11
  cut: {
12
12
  v1: (props: {
13
13
  input: CutV1Input;
14
14
  metadata?: any;
15
- }) => Promise<OperationEntity>;
15
+ }) => Promise<CutV1Response>;
16
16
  };
17
17
  detect: {
18
18
  v1: (props: {
19
19
  input: ObjectDetectionV1Input;
20
20
  metadata?: any;
21
- }) => Promise<OperationEntity>;
21
+ }) => Promise<ObjectDetectionV1Response>;
22
22
  };
23
23
  estimatePose: {
24
24
  v1: (props: {
25
25
  input: PoseEstimationV1Input;
26
26
  metadata?: any;
27
- }) => Promise<OperationEntity>;
27
+ }) => Promise<PoseEstimationV1Response>;
28
28
  };
29
29
  haute: {
30
30
  linda: {
31
31
  v1: (props: {
32
32
  input: LindaHauteV1Input;
33
33
  metadata?: any;
34
- }) => Promise<OperationEntity>;
34
+ }) => Promise<HauteLindaV1Response>;
35
35
  };
36
36
  naomi: {
37
37
  v1: (props: {
38
38
  input: NaomiHauteV1Input;
39
39
  metadata?: any;
40
- }) => Promise<OperationEntity>;
40
+ }) => Promise<HauteNaomiV1Response>;
41
41
  };
42
42
  };
43
43
  gpt: {
44
44
  v1: (props: {
45
45
  input: GPTV1Input;
46
46
  metadata?: any;
47
- }) => Promise<OperationEntity>;
47
+ }) => Promise<GptV1Response>;
48
48
  };
49
49
  imagine: {
50
50
  kate: {
51
51
  v1: (props: {
52
52
  input: KateImagineV1Input;
53
53
  metadata?: any;
54
- }) => Promise<OperationEntity>;
54
+ }) => Promise<ImagineKateV1Response>;
55
55
  };
56
56
  };
57
57
  inpaint: {
@@ -59,33 +59,33 @@ declare const operations: (options: SDKOptions) => {
59
59
  v1: (props: {
60
60
  input: KateInpaintV1Input;
61
61
  metadata?: any;
62
- }) => Promise<OperationEntity>;
62
+ }) => Promise<ImagineKateV1Response>;
63
63
  };
64
64
  };
65
65
  segmentEmbeddings: {
66
66
  v1: (props: {
67
67
  input: SegmentAnythingEmbeddingsV1Input;
68
68
  metadata?: any;
69
- }) => Promise<OperationEntity>;
69
+ }) => Promise<SegmentAnythingEmbeddingsV1Response>;
70
70
  };
71
71
  segmentMask: {
72
72
  v1: (props: {
73
73
  input: SegmentAnythingMaskV1Input;
74
74
  metadata?: any;
75
- }) => Promise<OperationEntity>;
75
+ }) => Promise<SegmentAnythingMaskV1Response>;
76
76
  };
77
77
  upscale: {
78
78
  v1: (props: {
79
79
  input: UpscaleV1Input;
80
80
  metadata?: any;
81
- }) => Promise<OperationEntity>;
81
+ }) => Promise<UpscaleV1Response>;
82
82
  };
83
83
  vton: {
84
84
  gisele: {
85
85
  v1: (props: {
86
86
  input: GiseleVtonV1Input;
87
87
  metadata?: any;
88
- }) => Promise<OperationEntity>;
88
+ }) => Promise<VtonGiseleV1Response>;
89
89
  };
90
90
  };
91
91
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {