@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
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
export type MethodsPermissions = {
|
|
2
|
-
access: {
|
|
3
|
-
add: boolean;
|
|
4
|
-
read: boolean;
|
|
5
|
-
remove: boolean;
|
|
6
|
-
};
|
|
7
2
|
accounts: {
|
|
8
3
|
create: boolean;
|
|
9
4
|
read: boolean;
|
|
@@ -20,12 +15,14 @@ export type MethodsPermissions = {
|
|
|
20
15
|
collections: {
|
|
21
16
|
create: boolean;
|
|
22
17
|
read: boolean;
|
|
23
|
-
update: boolean;
|
|
24
18
|
items: {
|
|
25
19
|
add: boolean;
|
|
26
20
|
read: boolean;
|
|
27
21
|
remove: boolean;
|
|
28
22
|
};
|
|
23
|
+
metadata: {
|
|
24
|
+
update: boolean;
|
|
25
|
+
};
|
|
29
26
|
};
|
|
30
27
|
groups: {
|
|
31
28
|
create: boolean;
|
|
@@ -51,7 +48,6 @@ export type MethodsPermissions = {
|
|
|
51
48
|
pipelines: {
|
|
52
49
|
create: boolean;
|
|
53
50
|
read: boolean;
|
|
54
|
-
update: boolean;
|
|
55
51
|
};
|
|
56
52
|
poses: {
|
|
57
53
|
create: boolean;
|
|
@@ -69,6 +65,15 @@ export type MethodsPermissions = {
|
|
|
69
65
|
update: boolean;
|
|
70
66
|
};
|
|
71
67
|
};
|
|
68
|
+
resources: {
|
|
69
|
+
access: {
|
|
70
|
+
read: boolean;
|
|
71
|
+
grant: boolean;
|
|
72
|
+
revoke: boolean;
|
|
73
|
+
attach: boolean;
|
|
74
|
+
dettach: boolean;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
72
77
|
storage: {
|
|
73
78
|
create: boolean;
|
|
74
79
|
delete: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AttachAccessControllerParamsDto, GrantAccessControllerParams } from '../../autogenerated';
|
|
2
|
+
import { SDKOptions } from '../../types';
|
|
3
|
+
declare const resources: (options: SDKOptions) => {
|
|
4
|
+
attach: (props: AttachAccessControllerParamsDto & {
|
|
5
|
+
id: string;
|
|
6
|
+
}) => Promise<void>;
|
|
7
|
+
grant: (props: GrantAccessControllerParams & {
|
|
8
|
+
id: string;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export default resources;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AccessApi } from '../../autogenerated';
|
|
2
|
+
import { useAutogeneratedAPI } from '../api';
|
|
3
|
+
const resources = (options) => {
|
|
4
|
+
const api = useAutogeneratedAPI({ API: AccessApi, options });
|
|
5
|
+
return {
|
|
6
|
+
attach: async (props) => api.call({
|
|
7
|
+
run: (methods) => methods.accessControllerAttachAccessV1(props.id, props),
|
|
8
|
+
}),
|
|
9
|
+
grant: async (props) => api.call({
|
|
10
|
+
run: (methods) => methods.accessControllerGrantAccessV1(props.id, props),
|
|
11
|
+
}),
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default resources;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { SDKOptions } from '../types';
|
|
2
2
|
export declare const createSDK: (options: SDKOptions) => {
|
|
3
|
+
access: {
|
|
4
|
+
attach: (props: import("../autogenerated").AttachAccessControllerParamsDto & {
|
|
5
|
+
id: string;
|
|
6
|
+
}) => Promise<void>;
|
|
7
|
+
grant: (props: import("../autogenerated").GrantAccessControllerParams & {
|
|
8
|
+
id: string;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
};
|
|
3
11
|
accounts: {
|
|
4
12
|
create: (props?: {
|
|
5
13
|
alias?: string;
|
|
@@ -198,71 +206,247 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
198
206
|
};
|
|
199
207
|
pipelines: {
|
|
200
208
|
constructTemplate: (consructPipeline: (pipeline: import("@hautechai/pipelines").Pipeline<{
|
|
209
|
+
access: {
|
|
210
|
+
attach: (params: import("../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
211
|
+
grant: (params: import("../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
212
|
+
};
|
|
213
|
+
accounts: {
|
|
214
|
+
create: (params: import("../autogenerated").CreateAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
215
|
+
get: (params: import("../autogenerated").GetAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
216
|
+
list: (params: import("../autogenerated").ListAccountsParamsDto) => Promise<import("../autogenerated").ListAccountsDto>;
|
|
217
|
+
};
|
|
218
|
+
balances: {
|
|
219
|
+
add: (params: import("../autogenerated").AddBalanceParamsDto) => Promise<void>;
|
|
220
|
+
get: (params: import("../autogenerated").GetBalanceParamsDto) => Promise<import("../autogenerated").BalanceResultDto>;
|
|
221
|
+
getSelf: (params: string) => Promise<import("../autogenerated").BalanceResultDto>;
|
|
222
|
+
};
|
|
201
223
|
collections: {
|
|
202
224
|
create: (params: import("../autogenerated").CreateCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
203
225
|
items: {
|
|
204
226
|
add: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
205
|
-
|
|
227
|
+
list: (params: import("../autogenerated").ListCollectionItemsParamsDto) => Promise<import("../autogenerated").ListCollectionItemsDto>;
|
|
228
|
+
remove: (params: import("../autogenerated").RemoveItemsFromCollectionParamsDto) => Promise<void>;
|
|
206
229
|
};
|
|
207
230
|
get: (params: import("../autogenerated").GetCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
231
|
+
list: (params: import("../autogenerated").ListCollectionsParamsDto) => Promise<import("../autogenerated").ListCollectionsDto>;
|
|
232
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").CollectionEntity>;
|
|
233
|
+
};
|
|
234
|
+
groups: {
|
|
235
|
+
accounts: {
|
|
236
|
+
add: (params: import("../autogenerated").AddAccountToGroupParamsDto) => Promise<void>;
|
|
237
|
+
remove: (params: import("../autogenerated").RemoveAccountFromGroupParamsDto) => Promise<void>;
|
|
238
|
+
};
|
|
239
|
+
create: (params: string) => Promise<import("../types").GroupEntity>;
|
|
240
|
+
delete: (params: import("../autogenerated").DeleteParamsDto) => Promise<void>;
|
|
241
|
+
get: (params: import("../autogenerated").GetGroupParamsDto) => Promise<import("../types").GroupEntity>;
|
|
208
242
|
};
|
|
209
243
|
images: {
|
|
210
|
-
|
|
244
|
+
get: (params: import("../autogenerated").GetImageParamsDto) => Promise<import("../types").ImageEntity>;
|
|
245
|
+
getUrls: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
246
|
+
};
|
|
247
|
+
operations: {
|
|
248
|
+
get: (params: import("../autogenerated").GetOperationParamsDto) => Promise<import("../types").OperationEntity>;
|
|
249
|
+
list: (params: import("../autogenerated").ListOperationsParamsDto) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
250
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").OperationEntity>;
|
|
251
|
+
};
|
|
252
|
+
poses: {
|
|
253
|
+
get: (params: import("../autogenerated").GetPoseParamsDto) => Promise<import("../autogenerated").PoseEntity>;
|
|
254
|
+
list: (params: import("../autogenerated").ListPosesParamsDto) => Promise<import("../autogenerated").ListPosesDto>;
|
|
211
255
|
};
|
|
212
256
|
stacks: {
|
|
213
257
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
258
|
+
get: (params: import("../autogenerated").GetStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
214
259
|
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
260
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").StackEntity>;
|
|
261
|
+
};
|
|
262
|
+
storage: {
|
|
263
|
+
create: (params: import("../autogenerated").CreateStorageRecordParamsDto) => Promise<import("../types").StorageEntity>;
|
|
264
|
+
delete: (params: import("../autogenerated").DeleteStorageParamsDto) => Promise<void>;
|
|
265
|
+
getMany: (params: import("../autogenerated").GetStorageRecordParamsDto) => Promise<import("../autogenerated").StorageRecordsResultDto[]>;
|
|
266
|
+
update: (params: import("../autogenerated").UpdateStorageRecordParamsDto) => Promise<import("../types").StorageEntity>;
|
|
215
267
|
};
|
|
216
268
|
}>) => import("@hautechai/pipelines").Pipeline<{
|
|
269
|
+
access: {
|
|
270
|
+
attach: (params: import("../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
271
|
+
grant: (params: import("../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
272
|
+
};
|
|
273
|
+
accounts: {
|
|
274
|
+
create: (params: import("../autogenerated").CreateAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
275
|
+
get: (params: import("../autogenerated").GetAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
276
|
+
list: (params: import("../autogenerated").ListAccountsParamsDto) => Promise<import("../autogenerated").ListAccountsDto>;
|
|
277
|
+
};
|
|
278
|
+
balances: {
|
|
279
|
+
add: (params: import("../autogenerated").AddBalanceParamsDto) => Promise<void>;
|
|
280
|
+
get: (params: import("../autogenerated").GetBalanceParamsDto) => Promise<import("../autogenerated").BalanceResultDto>;
|
|
281
|
+
getSelf: (params: string) => Promise<import("../autogenerated").BalanceResultDto>;
|
|
282
|
+
};
|
|
217
283
|
collections: {
|
|
218
284
|
create: (params: import("../autogenerated").CreateCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
219
285
|
items: {
|
|
220
286
|
add: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
221
|
-
|
|
287
|
+
list: (params: import("../autogenerated").ListCollectionItemsParamsDto) => Promise<import("../autogenerated").ListCollectionItemsDto>;
|
|
288
|
+
remove: (params: import("../autogenerated").RemoveItemsFromCollectionParamsDto) => Promise<void>;
|
|
222
289
|
};
|
|
223
290
|
get: (params: import("../autogenerated").GetCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
291
|
+
list: (params: import("../autogenerated").ListCollectionsParamsDto) => Promise<import("../autogenerated").ListCollectionsDto>;
|
|
292
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").CollectionEntity>;
|
|
293
|
+
};
|
|
294
|
+
groups: {
|
|
295
|
+
accounts: {
|
|
296
|
+
add: (params: import("../autogenerated").AddAccountToGroupParamsDto) => Promise<void>;
|
|
297
|
+
remove: (params: import("../autogenerated").RemoveAccountFromGroupParamsDto) => Promise<void>;
|
|
298
|
+
};
|
|
299
|
+
create: (params: string) => Promise<import("../types").GroupEntity>;
|
|
300
|
+
delete: (params: import("../autogenerated").DeleteParamsDto) => Promise<void>;
|
|
301
|
+
get: (params: import("../autogenerated").GetGroupParamsDto) => Promise<import("../types").GroupEntity>;
|
|
224
302
|
};
|
|
225
303
|
images: {
|
|
226
|
-
|
|
304
|
+
get: (params: import("../autogenerated").GetImageParamsDto) => Promise<import("../types").ImageEntity>;
|
|
305
|
+
getUrls: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
306
|
+
};
|
|
307
|
+
operations: {
|
|
308
|
+
get: (params: import("../autogenerated").GetOperationParamsDto) => Promise<import("../types").OperationEntity>;
|
|
309
|
+
list: (params: import("../autogenerated").ListOperationsParamsDto) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
310
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").OperationEntity>;
|
|
311
|
+
};
|
|
312
|
+
poses: {
|
|
313
|
+
get: (params: import("../autogenerated").GetPoseParamsDto) => Promise<import("../autogenerated").PoseEntity>;
|
|
314
|
+
list: (params: import("../autogenerated").ListPosesParamsDto) => Promise<import("../autogenerated").ListPosesDto>;
|
|
227
315
|
};
|
|
228
316
|
stacks: {
|
|
229
317
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
318
|
+
get: (params: import("../autogenerated").GetStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
230
319
|
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
320
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").StackEntity>;
|
|
321
|
+
};
|
|
322
|
+
storage: {
|
|
323
|
+
create: (params: import("../autogenerated").CreateStorageRecordParamsDto) => Promise<import("../types").StorageEntity>;
|
|
324
|
+
delete: (params: import("../autogenerated").DeleteStorageParamsDto) => Promise<void>;
|
|
325
|
+
getMany: (params: import("../autogenerated").GetStorageRecordParamsDto) => Promise<import("../autogenerated").StorageRecordsResultDto[]>;
|
|
326
|
+
update: (params: import("../autogenerated").UpdateStorageRecordParamsDto) => Promise<import("../types").StorageEntity>;
|
|
231
327
|
};
|
|
232
328
|
}>) => import("@hautechai/pipelines").Pipeline<{
|
|
329
|
+
access: {
|
|
330
|
+
attach: (params: import("../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
331
|
+
grant: (params: import("../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
332
|
+
};
|
|
333
|
+
accounts: {
|
|
334
|
+
create: (params: import("../autogenerated").CreateAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
335
|
+
get: (params: import("../autogenerated").GetAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
336
|
+
list: (params: import("../autogenerated").ListAccountsParamsDto) => Promise<import("../autogenerated").ListAccountsDto>;
|
|
337
|
+
};
|
|
338
|
+
balances: {
|
|
339
|
+
add: (params: import("../autogenerated").AddBalanceParamsDto) => Promise<void>;
|
|
340
|
+
get: (params: import("../autogenerated").GetBalanceParamsDto) => Promise<import("../autogenerated").BalanceResultDto>;
|
|
341
|
+
getSelf: (params: string) => Promise<import("../autogenerated").BalanceResultDto>;
|
|
342
|
+
};
|
|
233
343
|
collections: {
|
|
234
344
|
create: (params: import("../autogenerated").CreateCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
235
345
|
items: {
|
|
236
346
|
add: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
237
|
-
|
|
347
|
+
list: (params: import("../autogenerated").ListCollectionItemsParamsDto) => Promise<import("../autogenerated").ListCollectionItemsDto>;
|
|
348
|
+
remove: (params: import("../autogenerated").RemoveItemsFromCollectionParamsDto) => Promise<void>;
|
|
238
349
|
};
|
|
239
350
|
get: (params: import("../autogenerated").GetCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
351
|
+
list: (params: import("../autogenerated").ListCollectionsParamsDto) => Promise<import("../autogenerated").ListCollectionsDto>;
|
|
352
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").CollectionEntity>;
|
|
353
|
+
};
|
|
354
|
+
groups: {
|
|
355
|
+
accounts: {
|
|
356
|
+
add: (params: import("../autogenerated").AddAccountToGroupParamsDto) => Promise<void>;
|
|
357
|
+
remove: (params: import("../autogenerated").RemoveAccountFromGroupParamsDto) => Promise<void>;
|
|
358
|
+
};
|
|
359
|
+
create: (params: string) => Promise<import("../types").GroupEntity>;
|
|
360
|
+
delete: (params: import("../autogenerated").DeleteParamsDto) => Promise<void>;
|
|
361
|
+
get: (params: import("../autogenerated").GetGroupParamsDto) => Promise<import("../types").GroupEntity>;
|
|
240
362
|
};
|
|
241
363
|
images: {
|
|
242
|
-
|
|
364
|
+
get: (params: import("../autogenerated").GetImageParamsDto) => Promise<import("../types").ImageEntity>;
|
|
365
|
+
getUrls: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
366
|
+
};
|
|
367
|
+
operations: {
|
|
368
|
+
get: (params: import("../autogenerated").GetOperationParamsDto) => Promise<import("../types").OperationEntity>;
|
|
369
|
+
list: (params: import("../autogenerated").ListOperationsParamsDto) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
370
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").OperationEntity>;
|
|
371
|
+
};
|
|
372
|
+
poses: {
|
|
373
|
+
get: (params: import("../autogenerated").GetPoseParamsDto) => Promise<import("../autogenerated").PoseEntity>;
|
|
374
|
+
list: (params: import("../autogenerated").ListPosesParamsDto) => Promise<import("../autogenerated").ListPosesDto>;
|
|
243
375
|
};
|
|
244
376
|
stacks: {
|
|
245
377
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
378
|
+
get: (params: import("../autogenerated").GetStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
246
379
|
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
380
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").StackEntity>;
|
|
381
|
+
};
|
|
382
|
+
storage: {
|
|
383
|
+
create: (params: import("../autogenerated").CreateStorageRecordParamsDto) => Promise<import("../types").StorageEntity>;
|
|
384
|
+
delete: (params: import("../autogenerated").DeleteStorageParamsDto) => Promise<void>;
|
|
385
|
+
getMany: (params: import("../autogenerated").GetStorageRecordParamsDto) => Promise<import("../autogenerated").StorageRecordsResultDto[]>;
|
|
386
|
+
update: (params: import("../autogenerated").UpdateStorageRecordParamsDto) => Promise<import("../types").StorageEntity>;
|
|
247
387
|
};
|
|
248
388
|
}>;
|
|
249
389
|
create: (props: {
|
|
250
390
|
metadata?: any;
|
|
251
391
|
template: import("@hautechai/pipelines").Pipeline<{
|
|
392
|
+
access: {
|
|
393
|
+
attach: (params: import("../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
394
|
+
grant: (params: import("../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
395
|
+
};
|
|
396
|
+
accounts: {
|
|
397
|
+
create: (params: import("../autogenerated").CreateAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
398
|
+
get: (params: import("../autogenerated").GetAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
399
|
+
list: (params: import("../autogenerated").ListAccountsParamsDto) => Promise<import("../autogenerated").ListAccountsDto>;
|
|
400
|
+
};
|
|
401
|
+
balances: {
|
|
402
|
+
add: (params: import("../autogenerated").AddBalanceParamsDto) => Promise<void>;
|
|
403
|
+
get: (params: import("../autogenerated").GetBalanceParamsDto) => Promise<import("../autogenerated").BalanceResultDto>;
|
|
404
|
+
getSelf: (params: string) => Promise<import("../autogenerated").BalanceResultDto>;
|
|
405
|
+
};
|
|
252
406
|
collections: {
|
|
253
407
|
create: (params: import("../autogenerated").CreateCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
254
408
|
items: {
|
|
255
409
|
add: (params: import("../autogenerated").AddItemsToCollectionParamsDto) => Promise<void>;
|
|
256
|
-
|
|
410
|
+
list: (params: import("../autogenerated").ListCollectionItemsParamsDto) => Promise<import("../autogenerated").ListCollectionItemsDto>;
|
|
411
|
+
remove: (params: import("../autogenerated").RemoveItemsFromCollectionParamsDto) => Promise<void>;
|
|
257
412
|
};
|
|
258
413
|
get: (params: import("../autogenerated").GetCollectionParamsDto) => Promise<import("../types").CollectionEntity>;
|
|
414
|
+
list: (params: import("../autogenerated").ListCollectionsParamsDto) => Promise<import("../autogenerated").ListCollectionsDto>;
|
|
415
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").CollectionEntity>;
|
|
416
|
+
};
|
|
417
|
+
groups: {
|
|
418
|
+
accounts: {
|
|
419
|
+
add: (params: import("../autogenerated").AddAccountToGroupParamsDto) => Promise<void>;
|
|
420
|
+
remove: (params: import("../autogenerated").RemoveAccountFromGroupParamsDto) => Promise<void>;
|
|
421
|
+
};
|
|
422
|
+
create: (params: string) => Promise<import("../types").GroupEntity>;
|
|
423
|
+
delete: (params: import("../autogenerated").DeleteParamsDto) => Promise<void>;
|
|
424
|
+
get: (params: import("../autogenerated").GetGroupParamsDto) => Promise<import("../types").GroupEntity>;
|
|
259
425
|
};
|
|
260
426
|
images: {
|
|
261
|
-
|
|
427
|
+
get: (params: import("../autogenerated").GetImageParamsDto) => Promise<import("../types").ImageEntity>;
|
|
428
|
+
getUrls: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
429
|
+
};
|
|
430
|
+
operations: {
|
|
431
|
+
get: (params: import("../autogenerated").GetOperationParamsDto) => Promise<import("../types").OperationEntity>;
|
|
432
|
+
list: (params: import("../autogenerated").ListOperationsParamsDto) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
433
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").OperationEntity>;
|
|
434
|
+
};
|
|
435
|
+
poses: {
|
|
436
|
+
get: (params: import("../autogenerated").GetPoseParamsDto) => Promise<import("../autogenerated").PoseEntity>;
|
|
437
|
+
list: (params: import("../autogenerated").ListPosesParamsDto) => Promise<import("../autogenerated").ListPosesDto>;
|
|
262
438
|
};
|
|
263
439
|
stacks: {
|
|
264
440
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
441
|
+
get: (params: import("../autogenerated").GetStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
265
442
|
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
443
|
+
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").StackEntity>;
|
|
444
|
+
};
|
|
445
|
+
storage: {
|
|
446
|
+
create: (params: import("../autogenerated").CreateStorageRecordParamsDto) => Promise<import("../types").StorageEntity>;
|
|
447
|
+
delete: (params: import("../autogenerated").DeleteStorageParamsDto) => Promise<void>;
|
|
448
|
+
getMany: (params: import("../autogenerated").GetStorageRecordParamsDto) => Promise<import("../autogenerated").StorageRecordsResultDto[]>;
|
|
449
|
+
update: (params: import("../autogenerated").UpdateStorageRecordParamsDto) => Promise<import("../types").StorageEntity>;
|
|
266
450
|
};
|
|
267
451
|
}>;
|
|
268
452
|
}) => Promise<import("../types").PipelineEntity>;
|
package/dist/sdk/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import access from './access';
|
|
1
2
|
import accounts from './accounts';
|
|
2
3
|
import balances from './balances';
|
|
3
4
|
import collections from './collections';
|
|
@@ -23,6 +24,7 @@ export const createSDK = (options) => {
|
|
|
23
24
|
};
|
|
24
25
|
const optionsWithTokenRefresher = { ...options, authToken };
|
|
25
26
|
return {
|
|
27
|
+
access: access(optionsWithTokenRefresher),
|
|
26
28
|
accounts: accounts(optionsWithTokenRefresher),
|
|
27
29
|
balances: balances(optionsWithTokenRefresher),
|
|
28
30
|
collections: collections(optionsWithTokenRefresher),
|