@hautechai/sdk 0.0.17 → 0.0.19
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/autogenerated/api.d.ts +532 -336
- package/dist/autogenerated/api.js +396 -194
- package/dist/autogenerated/permissions.d.ts +2 -0
- package/dist/sdk/index.d.ts +65 -21
- package/dist/sdk/operations/index.d.ts +34 -18
- package/dist/sdk/operations/index.js +18 -5
- package/dist/sdk/pipelines/index.d.ts +46 -18
- package/dist/sdk/pipelines/index.js +15 -13
- package/dist/token/permissions.js +2 -2
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export type MethodsPermissions = {
|
|
|
7
7
|
accounts: {
|
|
8
8
|
create: boolean;
|
|
9
9
|
read: boolean;
|
|
10
|
+
list: boolean;
|
|
10
11
|
};
|
|
11
12
|
balances: {
|
|
12
13
|
read: boolean;
|
|
@@ -55,6 +56,7 @@ export type MethodsPermissions = {
|
|
|
55
56
|
poses: {
|
|
56
57
|
create: boolean;
|
|
57
58
|
read: boolean;
|
|
59
|
+
update: boolean;
|
|
58
60
|
};
|
|
59
61
|
stacks: {
|
|
60
62
|
create: boolean;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -109,15 +109,19 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
109
109
|
metadata?: any;
|
|
110
110
|
}) => Promise<import("../types").OperationEntity>;
|
|
111
111
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
haute: {
|
|
113
|
+
linda: {
|
|
114
|
+
v1: (props: {
|
|
115
|
+
input: import("../autogenerated").LindaHauteV1Input;
|
|
116
|
+
metadata?: any;
|
|
117
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
118
|
+
};
|
|
119
|
+
naomi: {
|
|
120
|
+
v1: (props: {
|
|
121
|
+
input: import("../autogenerated").NaomiHauteV1Input;
|
|
122
|
+
metadata?: any;
|
|
123
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
124
|
+
};
|
|
121
125
|
};
|
|
122
126
|
gpt: {
|
|
123
127
|
v1: (props: {
|
|
@@ -126,16 +130,20 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
126
130
|
}) => Promise<import("../types").OperationEntity>;
|
|
127
131
|
};
|
|
128
132
|
imagine: {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
kate: {
|
|
134
|
+
v1: (props: {
|
|
135
|
+
input: import("../autogenerated").KateImagineV1Input;
|
|
136
|
+
metadata?: any;
|
|
137
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
138
|
+
};
|
|
133
139
|
};
|
|
134
140
|
inpaint: {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
kate: {
|
|
142
|
+
v1: (props: {
|
|
143
|
+
input: import("../autogenerated").KateInpaintV1Input;
|
|
144
|
+
metadata?: any;
|
|
145
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
146
|
+
};
|
|
139
147
|
};
|
|
140
148
|
segmentEmbeddings: {
|
|
141
149
|
v1: (props: {
|
|
@@ -155,6 +163,14 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
155
163
|
metadata?: any;
|
|
156
164
|
}) => Promise<import("../types").OperationEntity>;
|
|
157
165
|
};
|
|
166
|
+
vton: {
|
|
167
|
+
gisele: {
|
|
168
|
+
v1: (props: {
|
|
169
|
+
input: import("../autogenerated").GiseleVtonV1Input;
|
|
170
|
+
metadata?: any;
|
|
171
|
+
}) => Promise<import("../types").OperationEntity>;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
158
174
|
};
|
|
159
175
|
get: (props: {
|
|
160
176
|
id: string;
|
|
@@ -184,29 +200,50 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
184
200
|
constructTemplate: (consructPipeline: (pipeline: import("@hautechai/pipelines").Pipeline<{
|
|
185
201
|
collections: {
|
|
186
202
|
create: (params: import("../autogenerated").CreateCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
203
|
+
items: {
|
|
204
|
+
add: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
205
|
+
remove: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
206
|
+
};
|
|
187
207
|
get: (params: import("../autogenerated").GetCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
188
208
|
};
|
|
209
|
+
images: {
|
|
210
|
+
getMany: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
211
|
+
};
|
|
189
212
|
stacks: {
|
|
190
213
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
191
|
-
|
|
214
|
+
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
192
215
|
};
|
|
193
216
|
}>) => import("@hautechai/pipelines").Pipeline<{
|
|
194
217
|
collections: {
|
|
195
218
|
create: (params: import("../autogenerated").CreateCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
219
|
+
items: {
|
|
220
|
+
add: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
221
|
+
remove: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
222
|
+
};
|
|
196
223
|
get: (params: import("../autogenerated").GetCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
197
224
|
};
|
|
225
|
+
images: {
|
|
226
|
+
getMany: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
227
|
+
};
|
|
198
228
|
stacks: {
|
|
199
229
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
200
|
-
|
|
230
|
+
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
201
231
|
};
|
|
202
232
|
}>) => import("@hautechai/pipelines").Pipeline<{
|
|
203
233
|
collections: {
|
|
204
234
|
create: (params: import("../autogenerated").CreateCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
235
|
+
items: {
|
|
236
|
+
add: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
237
|
+
remove: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
238
|
+
};
|
|
205
239
|
get: (params: import("../autogenerated").GetCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
206
240
|
};
|
|
241
|
+
images: {
|
|
242
|
+
getMany: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
243
|
+
};
|
|
207
244
|
stacks: {
|
|
208
245
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
209
|
-
|
|
246
|
+
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
210
247
|
};
|
|
211
248
|
}>;
|
|
212
249
|
create: (props: {
|
|
@@ -214,11 +251,18 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
214
251
|
template: import("@hautechai/pipelines").Pipeline<{
|
|
215
252
|
collections: {
|
|
216
253
|
create: (params: import("../autogenerated").CreateCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
254
|
+
items: {
|
|
255
|
+
add: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
256
|
+
remove: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
257
|
+
};
|
|
217
258
|
get: (params: import("../autogenerated").GetCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
218
259
|
};
|
|
260
|
+
images: {
|
|
261
|
+
getMany: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
262
|
+
};
|
|
219
263
|
stacks: {
|
|
220
264
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
221
|
-
|
|
265
|
+
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
222
266
|
};
|
|
223
267
|
}>;
|
|
224
268
|
}) => Promise<import("../types").PipelineEntity>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompositeV1Input, CutV1Input,
|
|
1
|
+
import { CompositeV1Input, CutV1Input, GiseleVtonV1Input, GPTV1Input, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, ObjectDetectionV1Input, OperationEntity, PoseEstimationV1Input, SegmentAnythingEmbeddingsV1Input, SegmentAnythingMaskV1Input, UpscaleV1Input } from '../../autogenerated';
|
|
2
2
|
import { ListProps, ListResponse, SDKOptions } from '../../types';
|
|
3
3
|
declare const operations: (options: SDKOptions) => {
|
|
4
4
|
create: {
|
|
@@ -26,15 +26,19 @@ declare const operations: (options: SDKOptions) => {
|
|
|
26
26
|
metadata?: any;
|
|
27
27
|
}) => Promise<OperationEntity>;
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
haute: {
|
|
30
|
+
linda: {
|
|
31
|
+
v1: (props: {
|
|
32
|
+
input: LindaHauteV1Input;
|
|
33
|
+
metadata?: any;
|
|
34
|
+
}) => Promise<OperationEntity>;
|
|
35
|
+
};
|
|
36
|
+
naomi: {
|
|
37
|
+
v1: (props: {
|
|
38
|
+
input: NaomiHauteV1Input;
|
|
39
|
+
metadata?: any;
|
|
40
|
+
}) => Promise<OperationEntity>;
|
|
41
|
+
};
|
|
38
42
|
};
|
|
39
43
|
gpt: {
|
|
40
44
|
v1: (props: {
|
|
@@ -43,16 +47,20 @@ declare const operations: (options: SDKOptions) => {
|
|
|
43
47
|
}) => Promise<OperationEntity>;
|
|
44
48
|
};
|
|
45
49
|
imagine: {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
kate: {
|
|
51
|
+
v1: (props: {
|
|
52
|
+
input: KateImagineV1Input;
|
|
53
|
+
metadata?: any;
|
|
54
|
+
}) => Promise<OperationEntity>;
|
|
55
|
+
};
|
|
50
56
|
};
|
|
51
57
|
inpaint: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
kate: {
|
|
59
|
+
v1: (props: {
|
|
60
|
+
input: KateInpaintV1Input;
|
|
61
|
+
metadata?: any;
|
|
62
|
+
}) => Promise<OperationEntity>;
|
|
63
|
+
};
|
|
56
64
|
};
|
|
57
65
|
segmentEmbeddings: {
|
|
58
66
|
v1: (props: {
|
|
@@ -72,6 +80,14 @@ declare const operations: (options: SDKOptions) => {
|
|
|
72
80
|
metadata?: any;
|
|
73
81
|
}) => Promise<OperationEntity>;
|
|
74
82
|
};
|
|
83
|
+
vton: {
|
|
84
|
+
gisele: {
|
|
85
|
+
v1: (props: {
|
|
86
|
+
input: GiseleVtonV1Input;
|
|
87
|
+
metadata?: any;
|
|
88
|
+
}) => Promise<OperationEntity>;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
75
91
|
};
|
|
76
92
|
get: (props: {
|
|
77
93
|
id: string;
|
|
@@ -20,18 +20,26 @@ const operations = (options) => {
|
|
|
20
20
|
estimatePose: {
|
|
21
21
|
v1: createOperation((methods, props) => methods.operationsControllerRunPoseEstimationV1V1(props)),
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
haute: {
|
|
24
|
+
linda: {
|
|
25
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunHauteLindaV1V1(props)),
|
|
26
|
+
},
|
|
27
|
+
naomi: {
|
|
28
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunHauteNaomiV1V1(props)),
|
|
29
|
+
},
|
|
26
30
|
},
|
|
27
31
|
gpt: {
|
|
28
32
|
v1: createOperation((methods, props) => methods.operationsControllerRunGptV1V1(props)),
|
|
29
33
|
},
|
|
30
34
|
imagine: {
|
|
31
|
-
|
|
35
|
+
kate: {
|
|
36
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunImagineKateV1V1(props)),
|
|
37
|
+
},
|
|
32
38
|
},
|
|
33
39
|
inpaint: {
|
|
34
|
-
|
|
40
|
+
kate: {
|
|
41
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunInpaintKateV1V1(props)),
|
|
42
|
+
},
|
|
35
43
|
},
|
|
36
44
|
segmentEmbeddings: {
|
|
37
45
|
v1: createOperation((methods, props) => methods.operationsControllerRunSegmentAnythingEmbeddingsV1V1(props)),
|
|
@@ -42,6 +50,11 @@ const operations = (options) => {
|
|
|
42
50
|
upscale: {
|
|
43
51
|
v1: createOperation((methods, props) => methods.operationsControllerRunUpscaleV1V1(props)),
|
|
44
52
|
},
|
|
53
|
+
vton: {
|
|
54
|
+
gisele: {
|
|
55
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunVtonGiseleV1V1(props)),
|
|
56
|
+
},
|
|
57
|
+
},
|
|
45
58
|
},
|
|
46
59
|
get: (props) => api.callWithReturningUndefinedOn404({
|
|
47
60
|
run: (methods) => methods.operationsControllerGetOperationV1(props.id),
|
|
@@ -1,45 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SDKOptions } from '../../types';
|
|
1
|
+
import { PipelineEntity } from '../../autogenerated';
|
|
3
2
|
import { Pipeline } from '@hautechai/pipelines';
|
|
3
|
+
import { SDKOptions } from '../../types';
|
|
4
4
|
declare const pipelines: (options: SDKOptions) => {
|
|
5
5
|
constructTemplate: (consructPipeline: (pipeline: Pipeline<{
|
|
6
6
|
collections: {
|
|
7
|
-
create: (params: CreateCollectionParamsDto) => Promise<CollectionEntity>;
|
|
8
|
-
|
|
7
|
+
create: (params: import("../../autogenerated").CreateCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
8
|
+
items: {
|
|
9
|
+
add: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
10
|
+
remove: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
get: (params: import("../../autogenerated").GetCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
13
|
+
};
|
|
14
|
+
images: {
|
|
15
|
+
getMany: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
9
16
|
};
|
|
10
17
|
stacks: {
|
|
11
|
-
create: (params: CreateStackParamsDto) => Promise<StackEntity>;
|
|
12
|
-
|
|
18
|
+
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
19
|
+
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
13
20
|
};
|
|
14
21
|
}>) => Pipeline<{
|
|
15
22
|
collections: {
|
|
16
|
-
create: (params: CreateCollectionParamsDto) => Promise<CollectionEntity>;
|
|
17
|
-
|
|
23
|
+
create: (params: import("../../autogenerated").CreateCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
24
|
+
items: {
|
|
25
|
+
add: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
26
|
+
remove: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
get: (params: import("../../autogenerated").GetCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
29
|
+
};
|
|
30
|
+
images: {
|
|
31
|
+
getMany: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
18
32
|
};
|
|
19
33
|
stacks: {
|
|
20
|
-
create: (params: CreateStackParamsDto) => Promise<StackEntity>;
|
|
21
|
-
|
|
34
|
+
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
35
|
+
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
22
36
|
};
|
|
23
37
|
}>) => Pipeline<{
|
|
24
38
|
collections: {
|
|
25
|
-
create: (params: CreateCollectionParamsDto) => Promise<CollectionEntity>;
|
|
26
|
-
|
|
39
|
+
create: (params: import("../../autogenerated").CreateCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
40
|
+
items: {
|
|
41
|
+
add: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
42
|
+
remove: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
43
|
+
};
|
|
44
|
+
get: (params: import("../../autogenerated").GetCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
45
|
+
};
|
|
46
|
+
images: {
|
|
47
|
+
getMany: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
27
48
|
};
|
|
28
49
|
stacks: {
|
|
29
|
-
create: (params: CreateStackParamsDto) => Promise<StackEntity>;
|
|
30
|
-
|
|
50
|
+
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
51
|
+
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
31
52
|
};
|
|
32
53
|
}>;
|
|
33
54
|
create: (props: {
|
|
34
55
|
metadata?: any;
|
|
35
56
|
template: Pipeline<{
|
|
36
57
|
collections: {
|
|
37
|
-
create: (params: CreateCollectionParamsDto) => Promise<CollectionEntity>;
|
|
38
|
-
|
|
58
|
+
create: (params: import("../../autogenerated").CreateCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
59
|
+
items: {
|
|
60
|
+
add: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
61
|
+
remove: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
62
|
+
};
|
|
63
|
+
get: (params: import("../../autogenerated").GetCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
64
|
+
};
|
|
65
|
+
images: {
|
|
66
|
+
getMany: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
39
67
|
};
|
|
40
68
|
stacks: {
|
|
41
|
-
create: (params: CreateStackParamsDto) => Promise<StackEntity>;
|
|
42
|
-
|
|
69
|
+
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
70
|
+
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
43
71
|
};
|
|
44
72
|
}>;
|
|
45
73
|
}) => Promise<PipelineEntity>;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { CallApi, PipelinesApi
|
|
1
|
+
import { CallApi, PipelinesApi } from '../../autogenerated';
|
|
2
2
|
import { Pipeline } from '@hautechai/pipelines';
|
|
3
3
|
import { useAutogeneratedAPI } from '../api';
|
|
4
4
|
const pipelines = (options) => {
|
|
5
5
|
const api = useAutogeneratedAPI({ API: PipelinesApi, options });
|
|
6
6
|
const callAPI = useAutogeneratedAPI({ API: CallApi, options });
|
|
7
|
+
const callMethod = (method) => (params) => callAPI.call({
|
|
8
|
+
run: (methods) => method(methods)(params),
|
|
9
|
+
});
|
|
7
10
|
const createPipeline = () => new Pipeline({
|
|
8
11
|
collections: {
|
|
9
|
-
create: (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
create: callMethod((methods) => methods.callControllerCallCollectionsCreateV1),
|
|
13
|
+
items: {
|
|
14
|
+
add: callMethod((methods) => methods.callControllerCallCollectionsItemsAddV1),
|
|
15
|
+
remove: callMethod((methods) => methods.callControllerCallCollectionsItemsRemoveV1),
|
|
16
|
+
},
|
|
17
|
+
get: callMethod((methods) => methods.callControllerCallCollectionsGetV1),
|
|
18
|
+
},
|
|
19
|
+
images: {
|
|
20
|
+
getMany: callMethod((methods) => methods.callControllerCallImagesGetManyV1),
|
|
15
21
|
},
|
|
16
22
|
stacks: {
|
|
17
|
-
create: (
|
|
18
|
-
|
|
19
|
-
}),
|
|
20
|
-
get: (params) => callAPI.call({
|
|
21
|
-
run: (methods) => methods.callControllerCallStacksListV1(params),
|
|
22
|
-
}),
|
|
23
|
+
create: callMethod((methods) => methods.callControllerCallStacksCreateV1),
|
|
24
|
+
list: callMethod((methods) => methods.callControllerCallStacksListV1),
|
|
23
25
|
},
|
|
24
26
|
});
|
|
25
27
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const defaultPermissions = {
|
|
2
2
|
access: { add: true, read: true, remove: true },
|
|
3
|
-
accounts: { create: false, read: false },
|
|
3
|
+
accounts: { create: false, list: false, read: false },
|
|
4
4
|
balances: { read: true, self: { read: true, update: false }, update: false },
|
|
5
5
|
collections: {
|
|
6
6
|
create: true,
|
|
@@ -12,7 +12,7 @@ export const defaultPermissions = {
|
|
|
12
12
|
images: { create: true, read: true },
|
|
13
13
|
operations: { create: true, read: true, metadata: { update: true } },
|
|
14
14
|
pipelines: { create: true, read: true, update: true },
|
|
15
|
-
poses: { create: true, read: true },
|
|
15
|
+
poses: { create: true, read: true, update: true },
|
|
16
16
|
stacks: { create: true, items: { add: true, remove: true }, read: true, metadata: { update: true } },
|
|
17
17
|
storage: { create: true, delete: true, read: true, update: true },
|
|
18
18
|
};
|