@hautechai/sdk 0.0.2 → 0.0.3
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/collections/index.d.ts +3 -3
- package/dist/sdk/groups/index.d.ts +2 -2
- package/dist/sdk/images/index.d.ts +3 -3
- package/dist/sdk/index.d.ts +27 -27
- package/dist/sdk/operations/index.d.ts +12 -12
- package/dist/sdk/stacks/index.d.ts +4 -4
- package/dist/types.d.ts +1 -1
- package/dist/types.js +0 -2
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { SDKOptions, ListProps } from '../../types';
|
|
|
2
2
|
declare const collections: (options: SDKOptions) => {
|
|
3
3
|
create: (props?: {
|
|
4
4
|
metadata?: any;
|
|
5
|
-
}) => Promise<import("../../
|
|
5
|
+
}) => Promise<import("../../types").CollectionEntity>;
|
|
6
6
|
get: (props: {
|
|
7
7
|
id: string;
|
|
8
|
-
}) => Promise<import("../../
|
|
8
|
+
}) => Promise<import("../../types").CollectionEntity | undefined>;
|
|
9
9
|
items: {
|
|
10
10
|
add: (props: {
|
|
11
11
|
collectionId: string;
|
|
@@ -23,6 +23,6 @@ declare const collections: (options: SDKOptions) => {
|
|
|
23
23
|
updateMetadata: (props: {
|
|
24
24
|
id: string;
|
|
25
25
|
metadata?: any;
|
|
26
|
-
}) => Promise<import("../../
|
|
26
|
+
}) => Promise<import("../../types").ResourceEntity>;
|
|
27
27
|
};
|
|
28
28
|
export default collections;
|
|
@@ -13,12 +13,12 @@ declare const groups: (options: SDKOptions) => {
|
|
|
13
13
|
role: RemoveAccountFromGroupControllerParamsDtoRoleEnum;
|
|
14
14
|
}) => Promise<void>;
|
|
15
15
|
};
|
|
16
|
-
create: () => Promise<import("../../
|
|
16
|
+
create: () => Promise<import("../../types").GroupEntity>;
|
|
17
17
|
delete: (props: {
|
|
18
18
|
id: string;
|
|
19
19
|
}) => Promise<void>;
|
|
20
20
|
get: (props: {
|
|
21
21
|
id: string;
|
|
22
|
-
}) => Promise<import("../../
|
|
22
|
+
}) => Promise<import("../../types").GroupEntity | undefined>;
|
|
23
23
|
};
|
|
24
24
|
export default groups;
|
|
@@ -2,13 +2,13 @@ import { SDKOptions } from '../../types';
|
|
|
2
2
|
declare const images: (options: SDKOptions) => {
|
|
3
3
|
createFromFile: (props: {
|
|
4
4
|
file: any;
|
|
5
|
-
}) => Promise<import("../../
|
|
5
|
+
}) => Promise<import("../../types").ImageEntity>;
|
|
6
6
|
createFromUrl: (props: {
|
|
7
7
|
url: string;
|
|
8
|
-
}) => Promise<import("../../
|
|
8
|
+
}) => Promise<import("../../types").ImageEntity>;
|
|
9
9
|
get: (props: {
|
|
10
10
|
id: string;
|
|
11
|
-
}) => Promise<import("../../
|
|
11
|
+
}) => Promise<import("../../types").ImageEntity | undefined>;
|
|
12
12
|
getUrls: (props: {
|
|
13
13
|
ids: string[];
|
|
14
14
|
}) => Promise<Record<string, string>>;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
3
3
|
accounts: {
|
|
4
4
|
create: (props?: {
|
|
5
5
|
alias?: string;
|
|
6
|
-
}) => Promise<import("../
|
|
6
|
+
}) => Promise<import("../types").AccountEntity>;
|
|
7
7
|
get: (props: {
|
|
8
8
|
id: string;
|
|
9
|
-
}) => Promise<import("../
|
|
9
|
+
}) => Promise<import("../types").AccountEntity | undefined>;
|
|
10
10
|
getByAlias: (props: {
|
|
11
11
|
alias: string;
|
|
12
|
-
}) => Promise<import("../
|
|
12
|
+
}) => Promise<import("../types").AccountEntity | undefined>;
|
|
13
13
|
};
|
|
14
14
|
balances: {
|
|
15
15
|
add: (props: {
|
|
@@ -24,10 +24,10 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
24
24
|
collections: {
|
|
25
25
|
create: (props?: {
|
|
26
26
|
metadata?: any;
|
|
27
|
-
}) => Promise<import("../
|
|
27
|
+
}) => Promise<import("../types").CollectionEntity>;
|
|
28
28
|
get: (props: {
|
|
29
29
|
id: string;
|
|
30
|
-
}) => Promise<import("../
|
|
30
|
+
}) => Promise<import("../types").CollectionEntity | undefined>;
|
|
31
31
|
items: {
|
|
32
32
|
add: (props: {
|
|
33
33
|
collectionId: string;
|
|
@@ -45,7 +45,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
45
45
|
updateMetadata: (props: {
|
|
46
46
|
id: string;
|
|
47
47
|
metadata?: any;
|
|
48
|
-
}) => Promise<import("../
|
|
48
|
+
}) => Promise<import("../types").ResourceEntity>;
|
|
49
49
|
};
|
|
50
50
|
groups: {
|
|
51
51
|
accounts: {
|
|
@@ -60,24 +60,24 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
60
60
|
role: import("../autogenerated").RemoveAccountFromGroupControllerParamsDtoRoleEnum;
|
|
61
61
|
}) => Promise<void>;
|
|
62
62
|
};
|
|
63
|
-
create: () => Promise<import("../
|
|
63
|
+
create: () => Promise<import("../types").GroupEntity>;
|
|
64
64
|
delete: (props: {
|
|
65
65
|
id: string;
|
|
66
66
|
}) => Promise<void>;
|
|
67
67
|
get: (props: {
|
|
68
68
|
id: string;
|
|
69
|
-
}) => Promise<import("../
|
|
69
|
+
}) => Promise<import("../types").GroupEntity | undefined>;
|
|
70
70
|
};
|
|
71
71
|
images: {
|
|
72
72
|
createFromFile: (props: {
|
|
73
73
|
file: any;
|
|
74
|
-
}) => Promise<import("../
|
|
74
|
+
}) => Promise<import("../types").ImageEntity>;
|
|
75
75
|
createFromUrl: (props: {
|
|
76
76
|
url: string;
|
|
77
|
-
}) => Promise<import("../
|
|
77
|
+
}) => Promise<import("../types").ImageEntity>;
|
|
78
78
|
get: (props: {
|
|
79
79
|
id: string;
|
|
80
|
-
}) => Promise<import("../
|
|
80
|
+
}) => Promise<import("../types").ImageEntity | undefined>;
|
|
81
81
|
getUrls: (props: {
|
|
82
82
|
ids: string[];
|
|
83
83
|
}) => Promise<Record<string, string>>;
|
|
@@ -88,60 +88,60 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
88
88
|
v1: (props: {
|
|
89
89
|
input: import("../autogenerated").ObjectDetectionV1Input;
|
|
90
90
|
metadata?: any;
|
|
91
|
-
}) => Promise<import("../
|
|
91
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
92
92
|
};
|
|
93
93
|
generate: {
|
|
94
94
|
v1: (props: {
|
|
95
95
|
input: import("../autogenerated").GenerateV1Input;
|
|
96
96
|
metadata?: any;
|
|
97
|
-
}) => Promise<import("../
|
|
97
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
98
98
|
v3: (props: {
|
|
99
99
|
input: import("../autogenerated").GenerateV3Input;
|
|
100
100
|
metadata?: any;
|
|
101
|
-
}) => Promise<import("../
|
|
101
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
102
102
|
};
|
|
103
103
|
gpt: {
|
|
104
104
|
v1: (props: {
|
|
105
105
|
input: import("../autogenerated").GPTV1Input;
|
|
106
106
|
metadata?: any;
|
|
107
|
-
}) => Promise<import("../
|
|
107
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
108
108
|
};
|
|
109
109
|
imagine: {
|
|
110
110
|
v1: (props: {
|
|
111
111
|
input: import("../autogenerated").InpaintV1Input;
|
|
112
112
|
metadata?: any;
|
|
113
|
-
}) => Promise<import("../
|
|
113
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
114
114
|
};
|
|
115
115
|
inpaint: {
|
|
116
116
|
v1: (props: {
|
|
117
117
|
input: import("../autogenerated").InpaintV1Input;
|
|
118
118
|
metadata?: any;
|
|
119
|
-
}) => Promise<import("../
|
|
119
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
120
120
|
};
|
|
121
121
|
upscale: {
|
|
122
122
|
v1: (props: {
|
|
123
123
|
input: import("../autogenerated").UpscaleV1Input;
|
|
124
124
|
metadata?: any;
|
|
125
|
-
}) => Promise<import("../
|
|
125
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
128
|
get: (props: {
|
|
129
129
|
id: string;
|
|
130
|
-
}) => Promise<import("../
|
|
130
|
+
}) => Promise<import("../types").OperationEntity | undefined>;
|
|
131
131
|
getMany: (props: {
|
|
132
132
|
ids: string[];
|
|
133
|
-
}) => Promise<import("../
|
|
133
|
+
}) => Promise<import("../types").OperationEntity[]>;
|
|
134
134
|
list: (props?: import("../types").ListProps) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
135
135
|
updateMetadata: (props: {
|
|
136
136
|
id: string;
|
|
137
137
|
metadata?: any;
|
|
138
|
-
}) => Promise<import("../
|
|
138
|
+
}) => Promise<import("../types").ResourceEntity>;
|
|
139
139
|
updates: {
|
|
140
140
|
subscribe: (props: {
|
|
141
|
-
callback: (operation: import("../
|
|
141
|
+
callback: (operation: import("../types").OperationEntity) => void;
|
|
142
142
|
}) => void;
|
|
143
143
|
unsubscribe: (props: {
|
|
144
|
-
callback: (operation: import("../
|
|
144
|
+
callback: (operation: import("../types").OperationEntity) => void;
|
|
145
145
|
}) => void;
|
|
146
146
|
};
|
|
147
147
|
wait: (props: {
|
|
@@ -152,10 +152,10 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
152
152
|
stacks: {
|
|
153
153
|
create: (props?: {
|
|
154
154
|
metadata?: any;
|
|
155
|
-
}) => Promise<import("../
|
|
155
|
+
}) => Promise<import("../types").StackEntity>;
|
|
156
156
|
get: (props: {
|
|
157
157
|
id: string;
|
|
158
|
-
}) => Promise<import("../
|
|
158
|
+
}) => Promise<import("../types").StackEntity | undefined>;
|
|
159
159
|
list: (props?: import("../types").ListProps) => Promise<import("../autogenerated").ListStacksDto>;
|
|
160
160
|
operations: {
|
|
161
161
|
add: (props: {
|
|
@@ -165,12 +165,12 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
165
165
|
remove: (props: {
|
|
166
166
|
operationIds: string[];
|
|
167
167
|
stackId: string;
|
|
168
|
-
}) => Promise<import("../
|
|
168
|
+
}) => Promise<import("../types").StackEntity>;
|
|
169
169
|
};
|
|
170
170
|
updateMetadata: (props: {
|
|
171
171
|
id: string;
|
|
172
172
|
metadata?: any;
|
|
173
|
-
}) => Promise<import("../
|
|
173
|
+
}) => Promise<import("../types").ResourceEntity>;
|
|
174
174
|
};
|
|
175
175
|
storage: {
|
|
176
176
|
create: (props: {
|
|
@@ -6,60 +6,60 @@ declare const operations: (options: SDKOptions) => {
|
|
|
6
6
|
v1: (props: {
|
|
7
7
|
input: ObjectDetectionV1Input;
|
|
8
8
|
metadata?: any;
|
|
9
|
-
}) => Promise<import("../../
|
|
9
|
+
}) => Promise<import("../../types").OperationEntity>;
|
|
10
10
|
};
|
|
11
11
|
generate: {
|
|
12
12
|
v1: (props: {
|
|
13
13
|
input: GenerateV1Input;
|
|
14
14
|
metadata?: any;
|
|
15
|
-
}) => Promise<import("../../
|
|
15
|
+
}) => Promise<import("../../types").OperationEntity>;
|
|
16
16
|
v3: (props: {
|
|
17
17
|
input: GenerateV3Input;
|
|
18
18
|
metadata?: any;
|
|
19
|
-
}) => Promise<import("../../
|
|
19
|
+
}) => Promise<import("../../types").OperationEntity>;
|
|
20
20
|
};
|
|
21
21
|
gpt: {
|
|
22
22
|
v1: (props: {
|
|
23
23
|
input: GPTV1Input;
|
|
24
24
|
metadata?: any;
|
|
25
|
-
}) => Promise<import("../../
|
|
25
|
+
}) => Promise<import("../../types").OperationEntity>;
|
|
26
26
|
};
|
|
27
27
|
imagine: {
|
|
28
28
|
v1: (props: {
|
|
29
29
|
input: InpaintV1Input;
|
|
30
30
|
metadata?: any;
|
|
31
|
-
}) => Promise<import("../../
|
|
31
|
+
}) => Promise<import("../../types").OperationEntity>;
|
|
32
32
|
};
|
|
33
33
|
inpaint: {
|
|
34
34
|
v1: (props: {
|
|
35
35
|
input: InpaintV1Input;
|
|
36
36
|
metadata?: any;
|
|
37
|
-
}) => Promise<import("../../
|
|
37
|
+
}) => Promise<import("../../types").OperationEntity>;
|
|
38
38
|
};
|
|
39
39
|
upscale: {
|
|
40
40
|
v1: (props: {
|
|
41
41
|
input: UpscaleV1Input;
|
|
42
42
|
metadata?: any;
|
|
43
|
-
}) => Promise<import("../../
|
|
43
|
+
}) => Promise<import("../../types").OperationEntity>;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
get: (props: {
|
|
47
47
|
id: string;
|
|
48
|
-
}) => Promise<import("../../
|
|
48
|
+
}) => Promise<import("../../types").OperationEntity | undefined>;
|
|
49
49
|
getMany: (props: {
|
|
50
50
|
ids: string[];
|
|
51
|
-
}) => Promise<import("../../
|
|
51
|
+
}) => Promise<import("../../types").OperationEntity[]>;
|
|
52
52
|
list: (props?: ListProps) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
53
53
|
updateMetadata: (props: {
|
|
54
54
|
id: string;
|
|
55
55
|
metadata?: any;
|
|
56
|
-
}) => Promise<import("../../
|
|
56
|
+
}) => Promise<import("../../types").ResourceEntity>;
|
|
57
57
|
updates: {
|
|
58
58
|
subscribe: (props: {
|
|
59
|
-
callback: (operation: import("../../
|
|
59
|
+
callback: (operation: import("../../types").OperationEntity) => void;
|
|
60
60
|
}) => void;
|
|
61
61
|
unsubscribe: (props: {
|
|
62
|
-
callback: (operation: import("../../
|
|
62
|
+
callback: (operation: import("../../types").OperationEntity) => void;
|
|
63
63
|
}) => void;
|
|
64
64
|
};
|
|
65
65
|
wait: (props: {
|
|
@@ -2,10 +2,10 @@ import { SDKOptions, ListProps } from '../../types';
|
|
|
2
2
|
declare const stacks: (options: SDKOptions) => {
|
|
3
3
|
create: (props?: {
|
|
4
4
|
metadata?: any;
|
|
5
|
-
}) => Promise<import("../../
|
|
5
|
+
}) => Promise<import("../../types").StackEntity>;
|
|
6
6
|
get: (props: {
|
|
7
7
|
id: string;
|
|
8
|
-
}) => Promise<import("../../
|
|
8
|
+
}) => Promise<import("../../types").StackEntity | undefined>;
|
|
9
9
|
list: (props?: ListProps) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
10
10
|
operations: {
|
|
11
11
|
add: (props: {
|
|
@@ -15,11 +15,11 @@ declare const stacks: (options: SDKOptions) => {
|
|
|
15
15
|
remove: (props: {
|
|
16
16
|
operationIds: string[];
|
|
17
17
|
stackId: string;
|
|
18
|
-
}) => Promise<import("../../
|
|
18
|
+
}) => Promise<import("../../types").StackEntity>;
|
|
19
19
|
};
|
|
20
20
|
updateMetadata: (props: {
|
|
21
21
|
id: string;
|
|
22
22
|
metadata?: any;
|
|
23
|
-
}) => Promise<import("../../
|
|
23
|
+
}) => Promise<import("../../types").ResourceEntity>;
|
|
24
24
|
};
|
|
25
25
|
export default stacks;
|
package/dist/types.d.ts
CHANGED
|
@@ -51,4 +51,4 @@ export interface MethodsPermissions {
|
|
|
51
51
|
};
|
|
52
52
|
storage: Create & Delete & Read & Update;
|
|
53
53
|
}
|
|
54
|
-
export {};
|
|
54
|
+
export { AccountEntity, CollectionEntity, GroupEntity, ImageEntity, OperationEntity, PipelineEntity, ResourceEntity, StackEntity, StorageEntity, } from './autogenerated/api';
|
package/dist/types.js
CHANGED