@hautechai/sdk 0.0.19 → 0.0.21
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 +1893 -362
- package/dist/autogenerated/api.js +3399 -457
- package/dist/autogenerated/permissions.d.ts +12 -7
- package/dist/sdk/access/index.d.ts +11 -0
- package/dist/sdk/access/index.js +14 -0
- package/dist/sdk/index.d.ts +192 -8
- package/dist/sdk/index.js +2 -0
- package/dist/sdk/pipelines/index.d.ts +184 -8
- package/dist/sdk/pipelines/index.js +45 -1
- package/dist/token/permissions.js +11 -3
- package/package.json +1 -1
|
@@ -3,71 +3,247 @@ import { Pipeline } from '@hautechai/pipelines';
|
|
|
3
3
|
import { SDKOptions } from '../../types';
|
|
4
4
|
declare const pipelines: (options: SDKOptions) => {
|
|
5
5
|
constructTemplate: (consructPipeline: (pipeline: Pipeline<{
|
|
6
|
+
access: {
|
|
7
|
+
attach: (params: import("../../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
8
|
+
grant: (params: import("../../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
accounts: {
|
|
11
|
+
create: (params: import("../../autogenerated").CreateAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
12
|
+
get: (params: import("../../autogenerated").GetAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
13
|
+
list: (params: import("../../autogenerated").ListAccountsParamsDto) => Promise<import("../../autogenerated").ListAccountsDto>;
|
|
14
|
+
};
|
|
15
|
+
balances: {
|
|
16
|
+
add: (params: import("../../autogenerated").AddBalanceParamsDto) => Promise<void>;
|
|
17
|
+
get: (params: import("../../autogenerated").GetBalanceParamsDto) => Promise<import("../../autogenerated").BalanceResultDto>;
|
|
18
|
+
getSelf: (params: string) => Promise<import("../../autogenerated").BalanceResultDto>;
|
|
19
|
+
};
|
|
6
20
|
collections: {
|
|
7
21
|
create: (params: import("../../autogenerated").CreateCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
8
22
|
items: {
|
|
9
23
|
add: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
10
|
-
|
|
24
|
+
list: (params: import("../../autogenerated").ListCollectionItemsParamsDto) => Promise<import("../../autogenerated").ListCollectionItemsDto>;
|
|
25
|
+
remove: (params: import("../../autogenerated").RemoveItemsFromCollectionParamsDto) => Promise<void>;
|
|
11
26
|
};
|
|
12
27
|
get: (params: import("../../autogenerated").GetCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
28
|
+
list: (params: import("../../autogenerated").ListCollectionsParamsDto) => Promise<import("../../autogenerated").ListCollectionsDto>;
|
|
29
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
30
|
+
};
|
|
31
|
+
groups: {
|
|
32
|
+
accounts: {
|
|
33
|
+
add: (params: import("../../autogenerated").AddAccountToGroupParamsDto) => Promise<void>;
|
|
34
|
+
remove: (params: import("../../autogenerated").RemoveAccountFromGroupParamsDto) => Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
create: (params: string) => Promise<import("../../autogenerated").GroupEntity>;
|
|
37
|
+
delete: (params: import("../../autogenerated").DeleteParamsDto) => Promise<void>;
|
|
38
|
+
get: (params: import("../../autogenerated").GetGroupParamsDto) => Promise<import("../../autogenerated").GroupEntity>;
|
|
13
39
|
};
|
|
14
40
|
images: {
|
|
15
|
-
|
|
41
|
+
get: (params: import("../../autogenerated").GetImageParamsDto) => Promise<import("../../autogenerated").ImageEntity>;
|
|
42
|
+
getUrls: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
43
|
+
};
|
|
44
|
+
operations: {
|
|
45
|
+
get: (params: import("../../autogenerated").GetOperationParamsDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
46
|
+
list: (params: import("../../autogenerated").ListOperationsParamsDto) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
47
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
48
|
+
};
|
|
49
|
+
poses: {
|
|
50
|
+
get: (params: import("../../autogenerated").GetPoseParamsDto) => Promise<import("../../autogenerated").PoseEntity>;
|
|
51
|
+
list: (params: import("../../autogenerated").ListPosesParamsDto) => Promise<import("../../autogenerated").ListPosesDto>;
|
|
16
52
|
};
|
|
17
53
|
stacks: {
|
|
18
54
|
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
55
|
+
get: (params: import("../../autogenerated").GetStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
19
56
|
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
57
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
58
|
+
};
|
|
59
|
+
storage: {
|
|
60
|
+
create: (params: import("../../autogenerated").CreateStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageEntity>;
|
|
61
|
+
delete: (params: import("../../autogenerated").DeleteStorageParamsDto) => Promise<void>;
|
|
62
|
+
getMany: (params: import("../../autogenerated").GetStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageRecordsResultDto[]>;
|
|
63
|
+
update: (params: import("../../autogenerated").UpdateStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageEntity>;
|
|
20
64
|
};
|
|
21
65
|
}>) => Pipeline<{
|
|
66
|
+
access: {
|
|
67
|
+
attach: (params: import("../../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
68
|
+
grant: (params: import("../../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
69
|
+
};
|
|
70
|
+
accounts: {
|
|
71
|
+
create: (params: import("../../autogenerated").CreateAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
72
|
+
get: (params: import("../../autogenerated").GetAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
73
|
+
list: (params: import("../../autogenerated").ListAccountsParamsDto) => Promise<import("../../autogenerated").ListAccountsDto>;
|
|
74
|
+
};
|
|
75
|
+
balances: {
|
|
76
|
+
add: (params: import("../../autogenerated").AddBalanceParamsDto) => Promise<void>;
|
|
77
|
+
get: (params: import("../../autogenerated").GetBalanceParamsDto) => Promise<import("../../autogenerated").BalanceResultDto>;
|
|
78
|
+
getSelf: (params: string) => Promise<import("../../autogenerated").BalanceResultDto>;
|
|
79
|
+
};
|
|
22
80
|
collections: {
|
|
23
81
|
create: (params: import("../../autogenerated").CreateCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
24
82
|
items: {
|
|
25
83
|
add: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
26
|
-
|
|
84
|
+
list: (params: import("../../autogenerated").ListCollectionItemsParamsDto) => Promise<import("../../autogenerated").ListCollectionItemsDto>;
|
|
85
|
+
remove: (params: import("../../autogenerated").RemoveItemsFromCollectionParamsDto) => Promise<void>;
|
|
27
86
|
};
|
|
28
87
|
get: (params: import("../../autogenerated").GetCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
88
|
+
list: (params: import("../../autogenerated").ListCollectionsParamsDto) => Promise<import("../../autogenerated").ListCollectionsDto>;
|
|
89
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
90
|
+
};
|
|
91
|
+
groups: {
|
|
92
|
+
accounts: {
|
|
93
|
+
add: (params: import("../../autogenerated").AddAccountToGroupParamsDto) => Promise<void>;
|
|
94
|
+
remove: (params: import("../../autogenerated").RemoveAccountFromGroupParamsDto) => Promise<void>;
|
|
95
|
+
};
|
|
96
|
+
create: (params: string) => Promise<import("../../autogenerated").GroupEntity>;
|
|
97
|
+
delete: (params: import("../../autogenerated").DeleteParamsDto) => Promise<void>;
|
|
98
|
+
get: (params: import("../../autogenerated").GetGroupParamsDto) => Promise<import("../../autogenerated").GroupEntity>;
|
|
29
99
|
};
|
|
30
100
|
images: {
|
|
31
|
-
|
|
101
|
+
get: (params: import("../../autogenerated").GetImageParamsDto) => Promise<import("../../autogenerated").ImageEntity>;
|
|
102
|
+
getUrls: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
103
|
+
};
|
|
104
|
+
operations: {
|
|
105
|
+
get: (params: import("../../autogenerated").GetOperationParamsDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
106
|
+
list: (params: import("../../autogenerated").ListOperationsParamsDto) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
107
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
108
|
+
};
|
|
109
|
+
poses: {
|
|
110
|
+
get: (params: import("../../autogenerated").GetPoseParamsDto) => Promise<import("../../autogenerated").PoseEntity>;
|
|
111
|
+
list: (params: import("../../autogenerated").ListPosesParamsDto) => Promise<import("../../autogenerated").ListPosesDto>;
|
|
32
112
|
};
|
|
33
113
|
stacks: {
|
|
34
114
|
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
115
|
+
get: (params: import("../../autogenerated").GetStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
35
116
|
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
117
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
118
|
+
};
|
|
119
|
+
storage: {
|
|
120
|
+
create: (params: import("../../autogenerated").CreateStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageEntity>;
|
|
121
|
+
delete: (params: import("../../autogenerated").DeleteStorageParamsDto) => Promise<void>;
|
|
122
|
+
getMany: (params: import("../../autogenerated").GetStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageRecordsResultDto[]>;
|
|
123
|
+
update: (params: import("../../autogenerated").UpdateStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageEntity>;
|
|
36
124
|
};
|
|
37
125
|
}>) => Pipeline<{
|
|
126
|
+
access: {
|
|
127
|
+
attach: (params: import("../../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
128
|
+
grant: (params: import("../../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
129
|
+
};
|
|
130
|
+
accounts: {
|
|
131
|
+
create: (params: import("../../autogenerated").CreateAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
132
|
+
get: (params: import("../../autogenerated").GetAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
133
|
+
list: (params: import("../../autogenerated").ListAccountsParamsDto) => Promise<import("../../autogenerated").ListAccountsDto>;
|
|
134
|
+
};
|
|
135
|
+
balances: {
|
|
136
|
+
add: (params: import("../../autogenerated").AddBalanceParamsDto) => Promise<void>;
|
|
137
|
+
get: (params: import("../../autogenerated").GetBalanceParamsDto) => Promise<import("../../autogenerated").BalanceResultDto>;
|
|
138
|
+
getSelf: (params: string) => Promise<import("../../autogenerated").BalanceResultDto>;
|
|
139
|
+
};
|
|
38
140
|
collections: {
|
|
39
141
|
create: (params: import("../../autogenerated").CreateCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
40
142
|
items: {
|
|
41
143
|
add: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
42
|
-
|
|
144
|
+
list: (params: import("../../autogenerated").ListCollectionItemsParamsDto) => Promise<import("../../autogenerated").ListCollectionItemsDto>;
|
|
145
|
+
remove: (params: import("../../autogenerated").RemoveItemsFromCollectionParamsDto) => Promise<void>;
|
|
43
146
|
};
|
|
44
147
|
get: (params: import("../../autogenerated").GetCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
148
|
+
list: (params: import("../../autogenerated").ListCollectionsParamsDto) => Promise<import("../../autogenerated").ListCollectionsDto>;
|
|
149
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
150
|
+
};
|
|
151
|
+
groups: {
|
|
152
|
+
accounts: {
|
|
153
|
+
add: (params: import("../../autogenerated").AddAccountToGroupParamsDto) => Promise<void>;
|
|
154
|
+
remove: (params: import("../../autogenerated").RemoveAccountFromGroupParamsDto) => Promise<void>;
|
|
155
|
+
};
|
|
156
|
+
create: (params: string) => Promise<import("../../autogenerated").GroupEntity>;
|
|
157
|
+
delete: (params: import("../../autogenerated").DeleteParamsDto) => Promise<void>;
|
|
158
|
+
get: (params: import("../../autogenerated").GetGroupParamsDto) => Promise<import("../../autogenerated").GroupEntity>;
|
|
45
159
|
};
|
|
46
160
|
images: {
|
|
47
|
-
|
|
161
|
+
get: (params: import("../../autogenerated").GetImageParamsDto) => Promise<import("../../autogenerated").ImageEntity>;
|
|
162
|
+
getUrls: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
163
|
+
};
|
|
164
|
+
operations: {
|
|
165
|
+
get: (params: import("../../autogenerated").GetOperationParamsDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
166
|
+
list: (params: import("../../autogenerated").ListOperationsParamsDto) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
167
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
168
|
+
};
|
|
169
|
+
poses: {
|
|
170
|
+
get: (params: import("../../autogenerated").GetPoseParamsDto) => Promise<import("../../autogenerated").PoseEntity>;
|
|
171
|
+
list: (params: import("../../autogenerated").ListPosesParamsDto) => Promise<import("../../autogenerated").ListPosesDto>;
|
|
48
172
|
};
|
|
49
173
|
stacks: {
|
|
50
174
|
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
175
|
+
get: (params: import("../../autogenerated").GetStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
51
176
|
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
177
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
178
|
+
};
|
|
179
|
+
storage: {
|
|
180
|
+
create: (params: import("../../autogenerated").CreateStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageEntity>;
|
|
181
|
+
delete: (params: import("../../autogenerated").DeleteStorageParamsDto) => Promise<void>;
|
|
182
|
+
getMany: (params: import("../../autogenerated").GetStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageRecordsResultDto[]>;
|
|
183
|
+
update: (params: import("../../autogenerated").UpdateStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageEntity>;
|
|
52
184
|
};
|
|
53
185
|
}>;
|
|
54
186
|
create: (props: {
|
|
55
187
|
metadata?: any;
|
|
56
188
|
template: Pipeline<{
|
|
189
|
+
access: {
|
|
190
|
+
attach: (params: import("../../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
191
|
+
grant: (params: import("../../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
192
|
+
};
|
|
193
|
+
accounts: {
|
|
194
|
+
create: (params: import("../../autogenerated").CreateAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
195
|
+
get: (params: import("../../autogenerated").GetAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
196
|
+
list: (params: import("../../autogenerated").ListAccountsParamsDto) => Promise<import("../../autogenerated").ListAccountsDto>;
|
|
197
|
+
};
|
|
198
|
+
balances: {
|
|
199
|
+
add: (params: import("../../autogenerated").AddBalanceParamsDto) => Promise<void>;
|
|
200
|
+
get: (params: import("../../autogenerated").GetBalanceParamsDto) => Promise<import("../../autogenerated").BalanceResultDto>;
|
|
201
|
+
getSelf: (params: string) => Promise<import("../../autogenerated").BalanceResultDto>;
|
|
202
|
+
};
|
|
57
203
|
collections: {
|
|
58
204
|
create: (params: import("../../autogenerated").CreateCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
59
205
|
items: {
|
|
60
206
|
add: (params: import("../../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
61
|
-
|
|
207
|
+
list: (params: import("../../autogenerated").ListCollectionItemsParamsDto) => Promise<import("../../autogenerated").ListCollectionItemsDto>;
|
|
208
|
+
remove: (params: import("../../autogenerated").RemoveItemsFromCollectionParamsDto) => Promise<void>;
|
|
62
209
|
};
|
|
63
210
|
get: (params: import("../../autogenerated").GetCollectionParamsDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
211
|
+
list: (params: import("../../autogenerated").ListCollectionsParamsDto) => Promise<import("../../autogenerated").ListCollectionsDto>;
|
|
212
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").CollectionEntity>;
|
|
213
|
+
};
|
|
214
|
+
groups: {
|
|
215
|
+
accounts: {
|
|
216
|
+
add: (params: import("../../autogenerated").AddAccountToGroupParamsDto) => Promise<void>;
|
|
217
|
+
remove: (params: import("../../autogenerated").RemoveAccountFromGroupParamsDto) => Promise<void>;
|
|
218
|
+
};
|
|
219
|
+
create: (params: string) => Promise<import("../../autogenerated").GroupEntity>;
|
|
220
|
+
delete: (params: import("../../autogenerated").DeleteParamsDto) => Promise<void>;
|
|
221
|
+
get: (params: import("../../autogenerated").GetGroupParamsDto) => Promise<import("../../autogenerated").GroupEntity>;
|
|
64
222
|
};
|
|
65
223
|
images: {
|
|
66
|
-
|
|
224
|
+
get: (params: import("../../autogenerated").GetImageParamsDto) => Promise<import("../../autogenerated").ImageEntity>;
|
|
225
|
+
getUrls: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
226
|
+
};
|
|
227
|
+
operations: {
|
|
228
|
+
get: (params: import("../../autogenerated").GetOperationParamsDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
229
|
+
list: (params: import("../../autogenerated").ListOperationsParamsDto) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
230
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
231
|
+
};
|
|
232
|
+
poses: {
|
|
233
|
+
get: (params: import("../../autogenerated").GetPoseParamsDto) => Promise<import("../../autogenerated").PoseEntity>;
|
|
234
|
+
list: (params: import("../../autogenerated").ListPosesParamsDto) => Promise<import("../../autogenerated").ListPosesDto>;
|
|
67
235
|
};
|
|
68
236
|
stacks: {
|
|
69
237
|
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
238
|
+
get: (params: import("../../autogenerated").GetStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
70
239
|
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
240
|
+
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
241
|
+
};
|
|
242
|
+
storage: {
|
|
243
|
+
create: (params: import("../../autogenerated").CreateStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageEntity>;
|
|
244
|
+
delete: (params: import("../../autogenerated").DeleteStorageParamsDto) => Promise<void>;
|
|
245
|
+
getMany: (params: import("../../autogenerated").GetStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageRecordsResultDto[]>;
|
|
246
|
+
update: (params: import("../../autogenerated").UpdateStorageRecordParamsDto) => Promise<import("../../autogenerated").StorageEntity>;
|
|
71
247
|
};
|
|
72
248
|
}>;
|
|
73
249
|
}) => Promise<PipelineEntity>;
|
|
@@ -8,20 +8,64 @@ const pipelines = (options) => {
|
|
|
8
8
|
run: (methods) => method(methods)(params),
|
|
9
9
|
});
|
|
10
10
|
const createPipeline = () => new Pipeline({
|
|
11
|
+
access: {
|
|
12
|
+
attach: callMethod((methods) => methods.callControllerCallResourceAccessAttachV1),
|
|
13
|
+
grant: callMethod((methods) => methods.callControllerCallResourceAccessGrantV1),
|
|
14
|
+
},
|
|
15
|
+
accounts: {
|
|
16
|
+
create: callMethod((methods) => methods.callControllerCallAccountsCreateV1),
|
|
17
|
+
get: callMethod((methods) => methods.callControllerCallAccountsGetV1),
|
|
18
|
+
list: callMethod((methods) => methods.callControllerCallAccountsListV1),
|
|
19
|
+
},
|
|
20
|
+
balances: {
|
|
21
|
+
add: callMethod((methods) => methods.callControllerCallAccountsBalanceAddV1),
|
|
22
|
+
get: callMethod((methods) => methods.callControllerCallAccountsBalanceGetV1),
|
|
23
|
+
getSelf: callMethod((methods) => methods.callControllerCallAccountsBalanceSelfV1),
|
|
24
|
+
},
|
|
11
25
|
collections: {
|
|
12
26
|
create: callMethod((methods) => methods.callControllerCallCollectionsCreateV1),
|
|
13
27
|
items: {
|
|
14
28
|
add: callMethod((methods) => methods.callControllerCallCollectionsItemsAddV1),
|
|
29
|
+
list: callMethod((methods) => methods.callControllerCallCollectionsItemsListV1),
|
|
15
30
|
remove: callMethod((methods) => methods.callControllerCallCollectionsItemsRemoveV1),
|
|
16
31
|
},
|
|
17
32
|
get: callMethod((methods) => methods.callControllerCallCollectionsGetV1),
|
|
33
|
+
list: callMethod((methods) => methods.callControllerCallCollectionsListV1),
|
|
34
|
+
updateMetadata: callMethod((methods) => methods.callControllerCallCollectionsMetadataUpdateV1),
|
|
35
|
+
},
|
|
36
|
+
groups: {
|
|
37
|
+
accounts: {
|
|
38
|
+
add: callMethod((methods) => methods.callControllerCallGroupsAccountsAddV1),
|
|
39
|
+
remove: callMethod((methods) => methods.callControllerCallGroupsAccountsRemoveV1),
|
|
40
|
+
},
|
|
41
|
+
create: callMethod((methods) => methods.callControllerCallGroupsCreateV1),
|
|
42
|
+
delete: callMethod((methods) => methods.callControllerCallGroupsDeleteV1),
|
|
43
|
+
get: callMethod((methods) => methods.callControllerCallGroupsGetV1),
|
|
18
44
|
},
|
|
19
45
|
images: {
|
|
20
|
-
|
|
46
|
+
get: callMethod((methods) => methods.callControllerCallImagesGetV1),
|
|
47
|
+
getUrls: callMethod((methods) => methods.callControllerCallImagesGetManyV1),
|
|
48
|
+
},
|
|
49
|
+
operations: {
|
|
50
|
+
get: callMethod((methods) => methods.callControllerCallOperationsGetV1),
|
|
51
|
+
list: callMethod((methods) => methods.callControllerCallOperationsListV1),
|
|
52
|
+
updateMetadata: callMethod((methods) => methods.callControllerCallOperationsMetadataUpdateV1),
|
|
53
|
+
},
|
|
54
|
+
poses: {
|
|
55
|
+
get: callMethod((methods) => methods.callControllerCallPosesGetV1),
|
|
56
|
+
list: callMethod((methods) => methods.callControllerCallPosesListV1),
|
|
21
57
|
},
|
|
22
58
|
stacks: {
|
|
23
59
|
create: callMethod((methods) => methods.callControllerCallStacksCreateV1),
|
|
60
|
+
get: callMethod((methods) => methods.callControllerCallStacksGetV1),
|
|
24
61
|
list: callMethod((methods) => methods.callControllerCallStacksListV1),
|
|
62
|
+
updateMetadata: callMethod((methods) => methods.callControllerCallStacksMetadataUpdateV1),
|
|
63
|
+
},
|
|
64
|
+
storage: {
|
|
65
|
+
create: callMethod((methods) => methods.callControllerCallStorageCreateV1),
|
|
66
|
+
delete: callMethod((methods) => methods.callControllerCallStorageDeleteV1),
|
|
67
|
+
getMany: callMethod((methods) => methods.callControllerCallStorageGetManyV1),
|
|
68
|
+
update: callMethod((methods) => methods.callControllerCallStorageUpdateV1),
|
|
25
69
|
},
|
|
26
70
|
});
|
|
27
71
|
return {
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
export const defaultPermissions = {
|
|
2
|
-
access: { add: true, read: true, remove: true },
|
|
3
2
|
accounts: { create: false, list: false, read: false },
|
|
4
3
|
balances: { read: true, self: { read: true, update: false }, update: false },
|
|
5
4
|
collections: {
|
|
6
5
|
create: true,
|
|
7
6
|
items: { add: true, read: true, remove: true },
|
|
7
|
+
metadata: { update: true },
|
|
8
8
|
read: true,
|
|
9
|
-
update: true,
|
|
10
9
|
},
|
|
11
10
|
groups: { accounts: { add: false, read: true, remove: false }, create: false, delete: false, read: true },
|
|
12
11
|
images: { create: true, read: true },
|
|
13
12
|
operations: { create: true, read: true, metadata: { update: true } },
|
|
14
|
-
pipelines: { create: true, read: true
|
|
13
|
+
pipelines: { create: true, read: true },
|
|
15
14
|
poses: { create: true, read: true, update: true },
|
|
15
|
+
resources: {
|
|
16
|
+
access: {
|
|
17
|
+
attach: true,
|
|
18
|
+
dettach: true,
|
|
19
|
+
grant: true,
|
|
20
|
+
read: true,
|
|
21
|
+
revoke: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
16
24
|
stacks: { create: true, items: { add: true, remove: true }, read: true, metadata: { update: true } },
|
|
17
25
|
storage: { create: true, delete: true, read: true, update: true },
|
|
18
26
|
};
|