@hautechai/sdk 0.2.0 → 0.2.2
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/sdk/index.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
202
202
|
}) => Promise<void>;
|
|
203
203
|
wait: <T extends import("../types").OperationEntity | {
|
|
204
204
|
id: string;
|
|
205
|
-
}>(props: T, timeoutMs?:
|
|
205
|
+
}, N extends number | undefined = undefined>(props: T, timeoutMs?: N) => Promise<((T extends import("../types").OperationEntity ? T : import("../types").OperationEntity) & ({
|
|
206
206
|
status: "failed";
|
|
207
207
|
output: null;
|
|
208
208
|
} | {
|
|
@@ -211,7 +211,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
211
211
|
} | {
|
|
212
212
|
status: "finished";
|
|
213
213
|
output: NonNullable<(T extends import("../types").OperationEntity ? T : import("../types").OperationEntity)["output"]>;
|
|
214
|
-
})) | null>;
|
|
214
|
+
})) | (N extends undefined ? never : null)>;
|
|
215
215
|
};
|
|
216
216
|
pipelines: {
|
|
217
217
|
constructTemplate: (consructPipeline: (pipeline: import("@hautechai/pipelines").Pipeline<{
|
|
@@ -121,6 +121,6 @@ declare const operations: (options: SDKOptions, relevantOperations: OperationsLi
|
|
|
121
121
|
}) => Promise<void>;
|
|
122
122
|
wait: <T extends OperationEntity | {
|
|
123
123
|
id: string;
|
|
124
|
-
}>(props: T, timeoutMs?:
|
|
124
|
+
}, N extends number | undefined = undefined>(props: T, timeoutMs?: N) => Promise<Waited<T extends OperationEntity ? T : OperationEntity> | (N extends undefined ? never : null)>;
|
|
125
125
|
};
|
|
126
126
|
export default operations;
|
|
@@ -55,23 +55,23 @@ const pipelines = (options) => {
|
|
|
55
55
|
run: {
|
|
56
56
|
haute: {
|
|
57
57
|
linda: {
|
|
58
|
-
v1: callMethod((methods) => methods.callControllerCallOperationsRunHauteLindaV1V1)
|
|
58
|
+
v1: callMethod((methods) => methods.callControllerCallOperationsRunHauteLindaV1V1),
|
|
59
59
|
},
|
|
60
60
|
naomi: {
|
|
61
|
-
v1: callMethod((methods) => methods.callControllerCallOperationsRunHauteNaomiV1V1)
|
|
61
|
+
v1: callMethod((methods) => methods.callControllerCallOperationsRunHauteNaomiV1V1),
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
inpaint: {
|
|
65
65
|
kate: {
|
|
66
66
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunInpaintKateV1V1),
|
|
67
|
-
}
|
|
67
|
+
},
|
|
68
68
|
},
|
|
69
69
|
gpt: {
|
|
70
|
-
v1: callMethod((methods) => methods.callControllerCallOperationsRunGptV1V1)
|
|
70
|
+
v1: callMethod((methods) => methods.callControllerCallOperationsRunGptV1V1),
|
|
71
71
|
},
|
|
72
72
|
imagine: {
|
|
73
73
|
kate: {
|
|
74
|
-
v1: callMethod((methods) => methods.callControllerCallOperationsRunImagineKateV1V1)
|
|
74
|
+
v1: callMethod((methods) => methods.callControllerCallOperationsRunImagineKateV1V1),
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
77
|
upscale: {
|
|
@@ -86,7 +86,7 @@ const pipelines = (options) => {
|
|
|
86
86
|
},
|
|
87
87
|
mask: {
|
|
88
88
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunSegmentAnythingMaskV1V1),
|
|
89
|
-
}
|
|
89
|
+
},
|
|
90
90
|
},
|
|
91
91
|
poseEstimation: {
|
|
92
92
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunPoseEstimationV1V1),
|
|
@@ -100,7 +100,7 @@ const pipelines = (options) => {
|
|
|
100
100
|
vton: {
|
|
101
101
|
gisele: {
|
|
102
102
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunVtonGiseleV1V1),
|
|
103
|
-
}
|
|
103
|
+
},
|
|
104
104
|
},
|
|
105
105
|
negateImage: {
|
|
106
106
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunNegateImageV1V1),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hautechai/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"dotenv": "16.4.7",
|
|
26
26
|
"jest": "29.7.0",
|
|
27
27
|
"jest-environment-jsdom": "29.7.0",
|
|
28
|
+
"prettier": "^3.5.1",
|
|
28
29
|
"ts-jest": "29.2.5",
|
|
29
30
|
"ts-node": "10.9.2",
|
|
30
31
|
"tslib": "2.7.0",
|