@hautechai/sdk 0.0.27 → 0.0.28

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.
@@ -192,10 +192,9 @@ export declare const createSDK: (options: SDKOptions) => {
192
192
  id: string;
193
193
  metadata?: any;
194
194
  }) => Promise<void>;
195
- wait: (props: {
195
+ wait: <T extends import("../types").OperationEntity | {
196
196
  id: string;
197
- timeoutInSeconds?: number;
198
- }) => Promise<import("../types").OperationEntity>;
197
+ }>(props: T) => Promise<T extends import("../types").OperationEntity ? T : import("../types").OperationEntity>;
199
198
  };
200
199
  pipelines: {
201
200
  constructTemplate: (consructPipeline: (pipeline: import("@hautechai/pipelines").Pipeline<{
@@ -100,9 +100,8 @@ declare const operations: (options: SDKOptions) => {
100
100
  id: string;
101
101
  metadata?: any;
102
102
  }) => Promise<void>;
103
- wait: (props: {
103
+ wait: <T extends OperationEntity | {
104
104
  id: string;
105
- timeoutInSeconds?: number;
106
- }) => Promise<OperationEntity>;
105
+ }>(props: T) => Promise<T extends OperationEntity ? T : OperationEntity>;
107
106
  };
108
107
  export default operations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {