@hautechai/sdk 0.0.20 → 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 +8 -8
- package/dist/autogenerated/api.js +20 -20
- package/dist/autogenerated/permissions.d.ts +3 -2
- package/dist/sdk/access/index.d.ts +11 -0
- package/dist/sdk/access/index.js +14 -0
- package/dist/sdk/groups/index.js +2 -2
- package/dist/sdk/index.d.ts +68 -0
- package/dist/sdk/index.js +2 -0
- package/dist/sdk/pipelines/index.d.ts +60 -0
- package/dist/sdk/pipelines/index.js +15 -0
- package/dist/token/permissions.js +2 -2
- package/package.json +1 -1
|
@@ -4416,7 +4416,7 @@ export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4416
4416
|
* @param {*} [options] Override http request option.
|
|
4417
4417
|
* @throws {RequiredError}
|
|
4418
4418
|
*/
|
|
4419
|
-
|
|
4419
|
+
groupsControllerAddAccountV1: (id: string, addAccountToGroupControllerParamsDto: AddAccountToGroupControllerParamsDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4420
4420
|
/**
|
|
4421
4421
|
*
|
|
4422
4422
|
* @param {*} [options] Override http request option.
|
|
@@ -4444,7 +4444,7 @@ export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4444
4444
|
* @param {*} [options] Override http request option.
|
|
4445
4445
|
* @throws {RequiredError}
|
|
4446
4446
|
*/
|
|
4447
|
-
|
|
4447
|
+
groupsControllerRemoveAccountV1: (id: string, removeAccountFromGroupControllerParamsDto: RemoveAccountFromGroupControllerParamsDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4448
4448
|
};
|
|
4449
4449
|
/**
|
|
4450
4450
|
* GroupsApi - functional programming interface
|
|
@@ -4458,7 +4458,7 @@ export declare const GroupsApiFp: (configuration?: Configuration) => {
|
|
|
4458
4458
|
* @param {*} [options] Override http request option.
|
|
4459
4459
|
* @throws {RequiredError}
|
|
4460
4460
|
*/
|
|
4461
|
-
|
|
4461
|
+
groupsControllerAddAccountV1(id: string, addAccountToGroupControllerParamsDto: AddAccountToGroupControllerParamsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4462
4462
|
/**
|
|
4463
4463
|
*
|
|
4464
4464
|
* @param {*} [options] Override http request option.
|
|
@@ -4486,7 +4486,7 @@ export declare const GroupsApiFp: (configuration?: Configuration) => {
|
|
|
4486
4486
|
* @param {*} [options] Override http request option.
|
|
4487
4487
|
* @throws {RequiredError}
|
|
4488
4488
|
*/
|
|
4489
|
-
|
|
4489
|
+
groupsControllerRemoveAccountV1(id: string, removeAccountFromGroupControllerParamsDto: RemoveAccountFromGroupControllerParamsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4490
4490
|
};
|
|
4491
4491
|
/**
|
|
4492
4492
|
* GroupsApi - factory interface
|
|
@@ -4500,7 +4500,7 @@ export declare const GroupsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4500
4500
|
* @param {*} [options] Override http request option.
|
|
4501
4501
|
* @throws {RequiredError}
|
|
4502
4502
|
*/
|
|
4503
|
-
|
|
4503
|
+
groupsControllerAddAccountV1(id: string, addAccountToGroupControllerParamsDto: AddAccountToGroupControllerParamsDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4504
4504
|
/**
|
|
4505
4505
|
*
|
|
4506
4506
|
* @param {*} [options] Override http request option.
|
|
@@ -4528,7 +4528,7 @@ export declare const GroupsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4528
4528
|
* @param {*} [options] Override http request option.
|
|
4529
4529
|
* @throws {RequiredError}
|
|
4530
4530
|
*/
|
|
4531
|
-
|
|
4531
|
+
groupsControllerRemoveAccountV1(id: string, removeAccountFromGroupControllerParamsDto: RemoveAccountFromGroupControllerParamsDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4532
4532
|
};
|
|
4533
4533
|
/**
|
|
4534
4534
|
* GroupsApi - object-oriented interface
|
|
@@ -4545,7 +4545,7 @@ export declare class GroupsApi extends BaseAPI {
|
|
|
4545
4545
|
* @throws {RequiredError}
|
|
4546
4546
|
* @memberof GroupsApi
|
|
4547
4547
|
*/
|
|
4548
|
-
|
|
4548
|
+
groupsControllerAddAccountV1(id: string, addAccountToGroupControllerParamsDto: AddAccountToGroupControllerParamsDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4549
4549
|
/**
|
|
4550
4550
|
*
|
|
4551
4551
|
* @param {*} [options] Override http request option.
|
|
@@ -4577,7 +4577,7 @@ export declare class GroupsApi extends BaseAPI {
|
|
|
4577
4577
|
* @throws {RequiredError}
|
|
4578
4578
|
* @memberof GroupsApi
|
|
4579
4579
|
*/
|
|
4580
|
-
|
|
4580
|
+
groupsControllerRemoveAccountV1(id: string, removeAccountFromGroupControllerParamsDto: RemoveAccountFromGroupControllerParamsDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4581
4581
|
}
|
|
4582
4582
|
/**
|
|
4583
4583
|
* ImagesApi - axios parameter creator
|
|
@@ -4613,11 +4613,11 @@ export const GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4613
4613
|
* @param {*} [options] Override http request option.
|
|
4614
4614
|
* @throws {RequiredError}
|
|
4615
4615
|
*/
|
|
4616
|
-
|
|
4616
|
+
groupsControllerAddAccountV1: async (id, addAccountToGroupControllerParamsDto, options = {}) => {
|
|
4617
4617
|
// verify required parameter 'id' is not null or undefined
|
|
4618
|
-
assertParamExists('
|
|
4618
|
+
assertParamExists('groupsControllerAddAccountV1', 'id', id);
|
|
4619
4619
|
// verify required parameter 'addAccountToGroupControllerParamsDto' is not null or undefined
|
|
4620
|
-
assertParamExists('
|
|
4620
|
+
assertParamExists('groupsControllerAddAccountV1', 'addAccountToGroupControllerParamsDto', addAccountToGroupControllerParamsDto);
|
|
4621
4621
|
const localVarPath = `/v1/groups/{id}/accounts/add`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
4622
4622
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4623
4623
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4751,11 +4751,11 @@ export const GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4751
4751
|
* @param {*} [options] Override http request option.
|
|
4752
4752
|
* @throws {RequiredError}
|
|
4753
4753
|
*/
|
|
4754
|
-
|
|
4754
|
+
groupsControllerRemoveAccountV1: async (id, removeAccountFromGroupControllerParamsDto, options = {}) => {
|
|
4755
4755
|
// verify required parameter 'id' is not null or undefined
|
|
4756
|
-
assertParamExists('
|
|
4756
|
+
assertParamExists('groupsControllerRemoveAccountV1', 'id', id);
|
|
4757
4757
|
// verify required parameter 'removeAccountFromGroupControllerParamsDto' is not null or undefined
|
|
4758
|
-
assertParamExists('
|
|
4758
|
+
assertParamExists('groupsControllerRemoveAccountV1', 'removeAccountFromGroupControllerParamsDto', removeAccountFromGroupControllerParamsDto);
|
|
4759
4759
|
const localVarPath = `/v1/groups/{id}/accounts/remove`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
4760
4760
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4761
4761
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4799,10 +4799,10 @@ export const GroupsApiFp = function (configuration) {
|
|
|
4799
4799
|
* @param {*} [options] Override http request option.
|
|
4800
4800
|
* @throws {RequiredError}
|
|
4801
4801
|
*/
|
|
4802
|
-
async
|
|
4803
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4802
|
+
async groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options) {
|
|
4803
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options);
|
|
4804
4804
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4805
|
-
const localVarOperationServerBasePath = operationServerMap['GroupsApi.
|
|
4805
|
+
const localVarOperationServerBasePath = operationServerMap['GroupsApi.groupsControllerAddAccountV1']?.[localVarOperationServerIndex]?.url;
|
|
4806
4806
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4807
4807
|
},
|
|
4808
4808
|
/**
|
|
@@ -4847,10 +4847,10 @@ export const GroupsApiFp = function (configuration) {
|
|
|
4847
4847
|
* @param {*} [options] Override http request option.
|
|
4848
4848
|
* @throws {RequiredError}
|
|
4849
4849
|
*/
|
|
4850
|
-
async
|
|
4851
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4850
|
+
async groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options) {
|
|
4851
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options);
|
|
4852
4852
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4853
|
-
const localVarOperationServerBasePath = operationServerMap['GroupsApi.
|
|
4853
|
+
const localVarOperationServerBasePath = operationServerMap['GroupsApi.groupsControllerRemoveAccountV1']?.[localVarOperationServerIndex]?.url;
|
|
4854
4854
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4855
4855
|
},
|
|
4856
4856
|
};
|
|
@@ -4869,9 +4869,9 @@ export const GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
4869
4869
|
* @param {*} [options] Override http request option.
|
|
4870
4870
|
* @throws {RequiredError}
|
|
4871
4871
|
*/
|
|
4872
|
-
|
|
4872
|
+
groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options) {
|
|
4873
4873
|
return localVarFp
|
|
4874
|
-
.
|
|
4874
|
+
.groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options)
|
|
4875
4875
|
.then((request) => request(axios, basePath));
|
|
4876
4876
|
},
|
|
4877
4877
|
/**
|
|
@@ -4907,9 +4907,9 @@ export const GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
4907
4907
|
* @param {*} [options] Override http request option.
|
|
4908
4908
|
* @throws {RequiredError}
|
|
4909
4909
|
*/
|
|
4910
|
-
|
|
4910
|
+
groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options) {
|
|
4911
4911
|
return localVarFp
|
|
4912
|
-
.
|
|
4912
|
+
.groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options)
|
|
4913
4913
|
.then((request) => request(axios, basePath));
|
|
4914
4914
|
},
|
|
4915
4915
|
};
|
|
@@ -4929,9 +4929,9 @@ export class GroupsApi extends BaseAPI {
|
|
|
4929
4929
|
* @throws {RequiredError}
|
|
4930
4930
|
* @memberof GroupsApi
|
|
4931
4931
|
*/
|
|
4932
|
-
|
|
4932
|
+
groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options) {
|
|
4933
4933
|
return GroupsApiFp(this.configuration)
|
|
4934
|
-
.
|
|
4934
|
+
.groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options)
|
|
4935
4935
|
.then((request) => request(this.axios, this.basePath));
|
|
4936
4936
|
}
|
|
4937
4937
|
/**
|
|
@@ -4977,9 +4977,9 @@ export class GroupsApi extends BaseAPI {
|
|
|
4977
4977
|
* @throws {RequiredError}
|
|
4978
4978
|
* @memberof GroupsApi
|
|
4979
4979
|
*/
|
|
4980
|
-
|
|
4980
|
+
groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options) {
|
|
4981
4981
|
return GroupsApiFp(this.configuration)
|
|
4982
|
-
.
|
|
4982
|
+
.groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options)
|
|
4983
4983
|
.then((request) => request(this.axios, this.basePath));
|
|
4984
4984
|
}
|
|
4985
4985
|
}
|
|
@@ -15,12 +15,14 @@ export type MethodsPermissions = {
|
|
|
15
15
|
collections: {
|
|
16
16
|
create: boolean;
|
|
17
17
|
read: boolean;
|
|
18
|
-
update: boolean;
|
|
19
18
|
items: {
|
|
20
19
|
add: boolean;
|
|
21
20
|
read: boolean;
|
|
22
21
|
remove: boolean;
|
|
23
22
|
};
|
|
23
|
+
metadata: {
|
|
24
|
+
update: boolean;
|
|
25
|
+
};
|
|
24
26
|
};
|
|
25
27
|
groups: {
|
|
26
28
|
create: boolean;
|
|
@@ -46,7 +48,6 @@ export type MethodsPermissions = {
|
|
|
46
48
|
pipelines: {
|
|
47
49
|
create: boolean;
|
|
48
50
|
read: boolean;
|
|
49
|
-
update: boolean;
|
|
50
51
|
};
|
|
51
52
|
poses: {
|
|
52
53
|
create: 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/groups/index.js
CHANGED
|
@@ -5,13 +5,13 @@ const groups = (options) => {
|
|
|
5
5
|
return {
|
|
6
6
|
accounts: {
|
|
7
7
|
add: async (props) => api.call({
|
|
8
|
-
run: (methods) => methods.
|
|
8
|
+
run: (methods) => methods.groupsControllerAddAccountV1(props.groupId, {
|
|
9
9
|
accountId: props.accountId,
|
|
10
10
|
role: props.role,
|
|
11
11
|
}),
|
|
12
12
|
}),
|
|
13
13
|
remove: async (props) => api.call({
|
|
14
|
-
run: (methods) => methods.
|
|
14
|
+
run: (methods) => methods.groupsControllerRemoveAccountV1(props.groupId, {
|
|
15
15
|
accountId: props.accountId,
|
|
16
16
|
role: props.role,
|
|
17
17
|
}),
|
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,6 +206,10 @@ 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
|
+
};
|
|
201
213
|
accounts: {
|
|
202
214
|
create: (params: import("../autogenerated").CreateAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
203
215
|
get: (params: import("../autogenerated").GetAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
@@ -229,6 +241,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
229
241
|
get: (params: import("../autogenerated").GetGroupParamsDto) => Promise<import("../types").GroupEntity>;
|
|
230
242
|
};
|
|
231
243
|
images: {
|
|
244
|
+
get: (params: import("../autogenerated").GetImageParamsDto) => Promise<import("../types").ImageEntity>;
|
|
232
245
|
getUrls: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
233
246
|
};
|
|
234
247
|
operations: {
|
|
@@ -236,13 +249,27 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
236
249
|
list: (params: import("../autogenerated").ListOperationsParamsDto) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
237
250
|
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").OperationEntity>;
|
|
238
251
|
};
|
|
252
|
+
poses: {
|
|
253
|
+
get: (params: import("../autogenerated").GetPoseParamsDto) => Promise<import("../autogenerated").PoseEntity>;
|
|
254
|
+
list: (params: import("../autogenerated").ListPosesParamsDto) => Promise<import("../autogenerated").ListPosesDto>;
|
|
255
|
+
};
|
|
239
256
|
stacks: {
|
|
240
257
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
241
258
|
get: (params: import("../autogenerated").GetStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
242
259
|
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
243
260
|
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").StackEntity>;
|
|
244
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>;
|
|
267
|
+
};
|
|
245
268
|
}>) => import("@hautechai/pipelines").Pipeline<{
|
|
269
|
+
access: {
|
|
270
|
+
attach: (params: import("../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
271
|
+
grant: (params: import("../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
272
|
+
};
|
|
246
273
|
accounts: {
|
|
247
274
|
create: (params: import("../autogenerated").CreateAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
248
275
|
get: (params: import("../autogenerated").GetAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
@@ -274,6 +301,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
274
301
|
get: (params: import("../autogenerated").GetGroupParamsDto) => Promise<import("../types").GroupEntity>;
|
|
275
302
|
};
|
|
276
303
|
images: {
|
|
304
|
+
get: (params: import("../autogenerated").GetImageParamsDto) => Promise<import("../types").ImageEntity>;
|
|
277
305
|
getUrls: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
278
306
|
};
|
|
279
307
|
operations: {
|
|
@@ -281,13 +309,27 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
281
309
|
list: (params: import("../autogenerated").ListOperationsParamsDto) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
282
310
|
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").OperationEntity>;
|
|
283
311
|
};
|
|
312
|
+
poses: {
|
|
313
|
+
get: (params: import("../autogenerated").GetPoseParamsDto) => Promise<import("../autogenerated").PoseEntity>;
|
|
314
|
+
list: (params: import("../autogenerated").ListPosesParamsDto) => Promise<import("../autogenerated").ListPosesDto>;
|
|
315
|
+
};
|
|
284
316
|
stacks: {
|
|
285
317
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
286
318
|
get: (params: import("../autogenerated").GetStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
287
319
|
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
288
320
|
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").StackEntity>;
|
|
289
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>;
|
|
327
|
+
};
|
|
290
328
|
}>) => import("@hautechai/pipelines").Pipeline<{
|
|
329
|
+
access: {
|
|
330
|
+
attach: (params: import("../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
331
|
+
grant: (params: import("../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
332
|
+
};
|
|
291
333
|
accounts: {
|
|
292
334
|
create: (params: import("../autogenerated").CreateAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
293
335
|
get: (params: import("../autogenerated").GetAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
@@ -319,6 +361,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
319
361
|
get: (params: import("../autogenerated").GetGroupParamsDto) => Promise<import("../types").GroupEntity>;
|
|
320
362
|
};
|
|
321
363
|
images: {
|
|
364
|
+
get: (params: import("../autogenerated").GetImageParamsDto) => Promise<import("../types").ImageEntity>;
|
|
322
365
|
getUrls: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
323
366
|
};
|
|
324
367
|
operations: {
|
|
@@ -326,16 +369,30 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
326
369
|
list: (params: import("../autogenerated").ListOperationsParamsDto) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
327
370
|
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").OperationEntity>;
|
|
328
371
|
};
|
|
372
|
+
poses: {
|
|
373
|
+
get: (params: import("../autogenerated").GetPoseParamsDto) => Promise<import("../autogenerated").PoseEntity>;
|
|
374
|
+
list: (params: import("../autogenerated").ListPosesParamsDto) => Promise<import("../autogenerated").ListPosesDto>;
|
|
375
|
+
};
|
|
329
376
|
stacks: {
|
|
330
377
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
331
378
|
get: (params: import("../autogenerated").GetStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
332
379
|
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
333
380
|
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").StackEntity>;
|
|
334
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>;
|
|
387
|
+
};
|
|
335
388
|
}>;
|
|
336
389
|
create: (props: {
|
|
337
390
|
metadata?: any;
|
|
338
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
|
+
};
|
|
339
396
|
accounts: {
|
|
340
397
|
create: (params: import("../autogenerated").CreateAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
341
398
|
get: (params: import("../autogenerated").GetAccountParamsDto) => Promise<import("../types").AccountEntity>;
|
|
@@ -367,6 +424,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
367
424
|
get: (params: import("../autogenerated").GetGroupParamsDto) => Promise<import("../types").GroupEntity>;
|
|
368
425
|
};
|
|
369
426
|
images: {
|
|
427
|
+
get: (params: import("../autogenerated").GetImageParamsDto) => Promise<import("../types").ImageEntity>;
|
|
370
428
|
getUrls: (params: import("../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../autogenerated").ImageUrlResponseDto[]>;
|
|
371
429
|
};
|
|
372
430
|
operations: {
|
|
@@ -374,12 +432,22 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
374
432
|
list: (params: import("../autogenerated").ListOperationsParamsDto) => Promise<import("../autogenerated").ListOperationsDto>;
|
|
375
433
|
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").OperationEntity>;
|
|
376
434
|
};
|
|
435
|
+
poses: {
|
|
436
|
+
get: (params: import("../autogenerated").GetPoseParamsDto) => Promise<import("../autogenerated").PoseEntity>;
|
|
437
|
+
list: (params: import("../autogenerated").ListPosesParamsDto) => Promise<import("../autogenerated").ListPosesDto>;
|
|
438
|
+
};
|
|
377
439
|
stacks: {
|
|
378
440
|
create: (params: import("../autogenerated").CreateStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
379
441
|
get: (params: import("../autogenerated").GetStackParamsDto) => Promise<import("../types").StackEntity>;
|
|
380
442
|
list: (params: import("../autogenerated").ListStacksParamsDto) => Promise<import("../autogenerated").ListStacksDto>;
|
|
381
443
|
updateMetadata: (params: import("../autogenerated").UpdateResourceMetadataDto) => Promise<import("../types").StackEntity>;
|
|
382
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>;
|
|
450
|
+
};
|
|
383
451
|
}>;
|
|
384
452
|
}) => Promise<import("../types").PipelineEntity>;
|
|
385
453
|
get: (props: {
|
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),
|
|
@@ -3,6 +3,10 @@ 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
|
+
};
|
|
6
10
|
accounts: {
|
|
7
11
|
create: (params: import("../../autogenerated").CreateAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
8
12
|
get: (params: import("../../autogenerated").GetAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
@@ -34,6 +38,7 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
34
38
|
get: (params: import("../../autogenerated").GetGroupParamsDto) => Promise<import("../../autogenerated").GroupEntity>;
|
|
35
39
|
};
|
|
36
40
|
images: {
|
|
41
|
+
get: (params: import("../../autogenerated").GetImageParamsDto) => Promise<import("../../autogenerated").ImageEntity>;
|
|
37
42
|
getUrls: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
38
43
|
};
|
|
39
44
|
operations: {
|
|
@@ -41,13 +46,27 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
41
46
|
list: (params: import("../../autogenerated").ListOperationsParamsDto) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
42
47
|
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
43
48
|
};
|
|
49
|
+
poses: {
|
|
50
|
+
get: (params: import("../../autogenerated").GetPoseParamsDto) => Promise<import("../../autogenerated").PoseEntity>;
|
|
51
|
+
list: (params: import("../../autogenerated").ListPosesParamsDto) => Promise<import("../../autogenerated").ListPosesDto>;
|
|
52
|
+
};
|
|
44
53
|
stacks: {
|
|
45
54
|
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
46
55
|
get: (params: import("../../autogenerated").GetStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
47
56
|
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
48
57
|
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
49
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>;
|
|
64
|
+
};
|
|
50
65
|
}>) => Pipeline<{
|
|
66
|
+
access: {
|
|
67
|
+
attach: (params: import("../../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
68
|
+
grant: (params: import("../../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
69
|
+
};
|
|
51
70
|
accounts: {
|
|
52
71
|
create: (params: import("../../autogenerated").CreateAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
53
72
|
get: (params: import("../../autogenerated").GetAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
@@ -79,6 +98,7 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
79
98
|
get: (params: import("../../autogenerated").GetGroupParamsDto) => Promise<import("../../autogenerated").GroupEntity>;
|
|
80
99
|
};
|
|
81
100
|
images: {
|
|
101
|
+
get: (params: import("../../autogenerated").GetImageParamsDto) => Promise<import("../../autogenerated").ImageEntity>;
|
|
82
102
|
getUrls: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
83
103
|
};
|
|
84
104
|
operations: {
|
|
@@ -86,13 +106,27 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
86
106
|
list: (params: import("../../autogenerated").ListOperationsParamsDto) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
87
107
|
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
88
108
|
};
|
|
109
|
+
poses: {
|
|
110
|
+
get: (params: import("../../autogenerated").GetPoseParamsDto) => Promise<import("../../autogenerated").PoseEntity>;
|
|
111
|
+
list: (params: import("../../autogenerated").ListPosesParamsDto) => Promise<import("../../autogenerated").ListPosesDto>;
|
|
112
|
+
};
|
|
89
113
|
stacks: {
|
|
90
114
|
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
91
115
|
get: (params: import("../../autogenerated").GetStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
92
116
|
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
93
117
|
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
94
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>;
|
|
124
|
+
};
|
|
95
125
|
}>) => Pipeline<{
|
|
126
|
+
access: {
|
|
127
|
+
attach: (params: import("../../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
128
|
+
grant: (params: import("../../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
129
|
+
};
|
|
96
130
|
accounts: {
|
|
97
131
|
create: (params: import("../../autogenerated").CreateAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
98
132
|
get: (params: import("../../autogenerated").GetAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
@@ -124,6 +158,7 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
124
158
|
get: (params: import("../../autogenerated").GetGroupParamsDto) => Promise<import("../../autogenerated").GroupEntity>;
|
|
125
159
|
};
|
|
126
160
|
images: {
|
|
161
|
+
get: (params: import("../../autogenerated").GetImageParamsDto) => Promise<import("../../autogenerated").ImageEntity>;
|
|
127
162
|
getUrls: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
128
163
|
};
|
|
129
164
|
operations: {
|
|
@@ -131,16 +166,30 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
131
166
|
list: (params: import("../../autogenerated").ListOperationsParamsDto) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
132
167
|
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
133
168
|
};
|
|
169
|
+
poses: {
|
|
170
|
+
get: (params: import("../../autogenerated").GetPoseParamsDto) => Promise<import("../../autogenerated").PoseEntity>;
|
|
171
|
+
list: (params: import("../../autogenerated").ListPosesParamsDto) => Promise<import("../../autogenerated").ListPosesDto>;
|
|
172
|
+
};
|
|
134
173
|
stacks: {
|
|
135
174
|
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
136
175
|
get: (params: import("../../autogenerated").GetStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
137
176
|
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
138
177
|
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
139
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>;
|
|
184
|
+
};
|
|
140
185
|
}>;
|
|
141
186
|
create: (props: {
|
|
142
187
|
metadata?: any;
|
|
143
188
|
template: Pipeline<{
|
|
189
|
+
access: {
|
|
190
|
+
attach: (params: import("../../autogenerated").AttachAccessParamsDto) => Promise<void>;
|
|
191
|
+
grant: (params: import("../../autogenerated").GrantAccessParamsDto) => Promise<void>;
|
|
192
|
+
};
|
|
144
193
|
accounts: {
|
|
145
194
|
create: (params: import("../../autogenerated").CreateAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
146
195
|
get: (params: import("../../autogenerated").GetAccountParamsDto) => Promise<import("../../autogenerated").AccountEntity>;
|
|
@@ -172,6 +221,7 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
172
221
|
get: (params: import("../../autogenerated").GetGroupParamsDto) => Promise<import("../../autogenerated").GroupEntity>;
|
|
173
222
|
};
|
|
174
223
|
images: {
|
|
224
|
+
get: (params: import("../../autogenerated").GetImageParamsDto) => Promise<import("../../autogenerated").ImageEntity>;
|
|
175
225
|
getUrls: (params: import("../../autogenerated").GetUrlsForImagesParamsDto) => Promise<import("../../autogenerated").ImageUrlResponseDto[]>;
|
|
176
226
|
};
|
|
177
227
|
operations: {
|
|
@@ -179,12 +229,22 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
179
229
|
list: (params: import("../../autogenerated").ListOperationsParamsDto) => Promise<import("../../autogenerated").ListOperationsDto>;
|
|
180
230
|
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").OperationEntity>;
|
|
181
231
|
};
|
|
232
|
+
poses: {
|
|
233
|
+
get: (params: import("../../autogenerated").GetPoseParamsDto) => Promise<import("../../autogenerated").PoseEntity>;
|
|
234
|
+
list: (params: import("../../autogenerated").ListPosesParamsDto) => Promise<import("../../autogenerated").ListPosesDto>;
|
|
235
|
+
};
|
|
182
236
|
stacks: {
|
|
183
237
|
create: (params: import("../../autogenerated").CreateStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
184
238
|
get: (params: import("../../autogenerated").GetStackParamsDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
185
239
|
list: (params: import("../../autogenerated").ListStacksParamsDto) => Promise<import("../../autogenerated").ListStacksDto>;
|
|
186
240
|
updateMetadata: (params: import("../../autogenerated").UpdateResourceMetadataDto) => Promise<import("../../autogenerated").StackEntity>;
|
|
187
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>;
|
|
247
|
+
};
|
|
188
248
|
}>;
|
|
189
249
|
}) => Promise<PipelineEntity>;
|
|
190
250
|
get: (props: {
|
|
@@ -8,6 +8,10 @@ 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
|
+
},
|
|
11
15
|
accounts: {
|
|
12
16
|
create: callMethod((methods) => methods.callControllerCallAccountsCreateV1),
|
|
13
17
|
get: callMethod((methods) => methods.callControllerCallAccountsGetV1),
|
|
@@ -39,6 +43,7 @@ const pipelines = (options) => {
|
|
|
39
43
|
get: callMethod((methods) => methods.callControllerCallGroupsGetV1),
|
|
40
44
|
},
|
|
41
45
|
images: {
|
|
46
|
+
get: callMethod((methods) => methods.callControllerCallImagesGetV1),
|
|
42
47
|
getUrls: callMethod((methods) => methods.callControllerCallImagesGetManyV1),
|
|
43
48
|
},
|
|
44
49
|
operations: {
|
|
@@ -46,12 +51,22 @@ const pipelines = (options) => {
|
|
|
46
51
|
list: callMethod((methods) => methods.callControllerCallOperationsListV1),
|
|
47
52
|
updateMetadata: callMethod((methods) => methods.callControllerCallOperationsMetadataUpdateV1),
|
|
48
53
|
},
|
|
54
|
+
poses: {
|
|
55
|
+
get: callMethod((methods) => methods.callControllerCallPosesGetV1),
|
|
56
|
+
list: callMethod((methods) => methods.callControllerCallPosesListV1),
|
|
57
|
+
},
|
|
49
58
|
stacks: {
|
|
50
59
|
create: callMethod((methods) => methods.callControllerCallStacksCreateV1),
|
|
51
60
|
get: callMethod((methods) => methods.callControllerCallStacksGetV1),
|
|
52
61
|
list: callMethod((methods) => methods.callControllerCallStacksListV1),
|
|
53
62
|
updateMetadata: callMethod((methods) => methods.callControllerCallStacksMetadataUpdateV1),
|
|
54
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),
|
|
69
|
+
},
|
|
55
70
|
});
|
|
56
71
|
return {
|
|
57
72
|
constructTemplate: (consructPipeline) => consructPipeline(createPipeline()),
|
|
@@ -4,13 +4,13 @@ export const defaultPermissions = {
|
|
|
4
4
|
collections: {
|
|
5
5
|
create: true,
|
|
6
6
|
items: { add: true, read: true, remove: true },
|
|
7
|
+
metadata: { update: true },
|
|
7
8
|
read: true,
|
|
8
|
-
update: true,
|
|
9
9
|
},
|
|
10
10
|
groups: { accounts: { add: false, read: true, remove: false }, create: false, delete: false, read: true },
|
|
11
11
|
images: { create: true, read: true },
|
|
12
12
|
operations: { create: true, read: true, metadata: { update: true } },
|
|
13
|
-
pipelines: { create: true, read: true
|
|
13
|
+
pipelines: { create: true, read: true },
|
|
14
14
|
poses: { create: true, read: true, update: true },
|
|
15
15
|
resources: {
|
|
16
16
|
access: {
|