frameio 4.2.2 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +30 -30
- package/dist/cjs/Client.js +38 -38
- package/dist/cjs/api/resources/collections/client/Client.d.ts +17 -17
- package/dist/cjs/api/resources/collections/client/Client.js +30 -30
- package/dist/cjs/api/resources/files/client/Client.d.ts +96 -96
- package/dist/cjs/api/resources/files/client/Client.js +175 -175
- package/dist/cjs/api/resources/folders/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/folders/client/Client.js +29 -29
- package/dist/cjs/api/resources/metadata/client/Client.d.ts +27 -27
- package/dist/cjs/api/resources/metadata/client/Client.js +50 -50
- package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +4 -4
- package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/projectPermissions/client/Client.js +87 -87
- package/dist/cjs/api/resources/projects/client/Client.d.ts +56 -0
- package/dist/cjs/api/resources/projects/client/Client.js +166 -0
- package/dist/cjs/api/resources/projects/client/requests/AccountProjectsIndexRequest.d.ts +24 -0
- package/dist/cjs/api/resources/projects/client/requests/AccountProjectsIndexRequest.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/InvitedProjectsIndexRequest.d.ts +24 -0
- package/dist/cjs/api/resources/projects/client/requests/InvitedProjectsIndexRequest.js +3 -0
- package/dist/cjs/api/resources/projects/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/projects/types/AccountProjectsIndexRequestSort.d.ts +8 -0
- package/dist/cjs/api/resources/projects/types/AccountProjectsIndexRequestSort.js +11 -0
- package/dist/cjs/api/resources/projects/types/InvitedProjectsIndexRequestSort.d.ts +8 -0
- package/dist/cjs/api/resources/projects/types/InvitedProjectsIndexRequestSort.js +11 -0
- package/dist/cjs/api/resources/projects/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/projects/types/index.js +2 -0
- package/dist/cjs/api/resources/shares/client/Client.d.ts +49 -49
- package/dist/cjs/api/resources/shares/client/Client.js +146 -146
- package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
- package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
- package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +1 -1
- package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +64 -64
- package/dist/cjs/api/resources/versionStacks/client/Client.js +121 -121
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
- package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/workspacePermissions/client/Client.js +87 -87
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +34 -34
- package/dist/cjs/api/resources/workspaces/client/Client.js +141 -141
- package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +6 -0
- package/dist/cjs/api/types/AuditLogwithIncludes.js +6 -0
- package/dist/cjs/api/types/Filters.d.ts +6 -0
- package/dist/cjs/api/types/Filters.js +6 -0
- package/dist/cjs/api/types/LongTextDefinition.d.ts +0 -16
- package/dist/cjs/api/types/LongTextDefinition.js +0 -17
- package/dist/cjs/api/types/NumberDefinition.d.ts +16 -0
- package/dist/cjs/api/types/NumberDefinition.js +13 -0
- package/dist/cjs/api/types/TextDefinition.d.ts +0 -16
- package/dist/cjs/api/types/TextDefinition.js +0 -17
- package/dist/cjs/api/types/ToggleDefinition.d.ts +16 -0
- package/dist/cjs/api/types/ToggleDefinition.js +17 -0
- package/dist/cjs/api/types/UserSingleDefinition.d.ts +0 -16
- package/dist/cjs/api/types/UserSingleDefinition.js +0 -13
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +30 -30
- package/dist/esm/Client.mjs +38 -38
- package/dist/esm/api/resources/collections/client/Client.d.mts +17 -17
- package/dist/esm/api/resources/collections/client/Client.mjs +30 -30
- package/dist/esm/api/resources/files/client/Client.d.mts +96 -96
- package/dist/esm/api/resources/files/client/Client.mjs +175 -175
- package/dist/esm/api/resources/folders/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/folders/client/Client.mjs +29 -29
- package/dist/esm/api/resources/metadata/client/Client.d.mts +27 -27
- package/dist/esm/api/resources/metadata/client/Client.mjs +50 -50
- package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +4 -4
- package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/projectPermissions/client/Client.mjs +87 -87
- package/dist/esm/api/resources/projects/client/Client.d.mts +56 -0
- package/dist/esm/api/resources/projects/client/Client.mjs +166 -0
- package/dist/esm/api/resources/projects/client/requests/AccountProjectsIndexRequest.d.mts +24 -0
- package/dist/esm/api/resources/projects/client/requests/AccountProjectsIndexRequest.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/InvitedProjectsIndexRequest.d.mts +24 -0
- package/dist/esm/api/resources/projects/client/requests/InvitedProjectsIndexRequest.mjs +2 -0
- package/dist/esm/api/resources/projects/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/projects/types/AccountProjectsIndexRequestSort.d.mts +8 -0
- package/dist/esm/api/resources/projects/types/AccountProjectsIndexRequestSort.mjs +8 -0
- package/dist/esm/api/resources/projects/types/InvitedProjectsIndexRequestSort.d.mts +8 -0
- package/dist/esm/api/resources/projects/types/InvitedProjectsIndexRequestSort.mjs +8 -0
- package/dist/esm/api/resources/projects/types/index.d.mts +2 -0
- package/dist/esm/api/resources/projects/types/index.mjs +2 -0
- package/dist/esm/api/resources/shares/client/Client.d.mts +49 -49
- package/dist/esm/api/resources/shares/client/Client.mjs +146 -146
- package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
- package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
- package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +1 -1
- package/dist/esm/api/resources/versionStacks/client/Client.d.mts +64 -64
- package/dist/esm/api/resources/versionStacks/client/Client.mjs +121 -121
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
- package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +87 -87
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +34 -34
- package/dist/esm/api/resources/workspaces/client/Client.mjs +141 -141
- package/dist/esm/api/types/AuditLogwithIncludes.d.mts +6 -0
- package/dist/esm/api/types/AuditLogwithIncludes.mjs +6 -0
- package/dist/esm/api/types/Filters.d.mts +6 -0
- package/dist/esm/api/types/Filters.mjs +6 -0
- package/dist/esm/api/types/LongTextDefinition.d.mts +0 -16
- package/dist/esm/api/types/LongTextDefinition.mjs +1 -16
- package/dist/esm/api/types/NumberDefinition.d.mts +16 -0
- package/dist/esm/api/types/NumberDefinition.mjs +13 -0
- package/dist/esm/api/types/TextDefinition.d.mts +0 -16
- package/dist/esm/api/types/TextDefinition.mjs +1 -16
- package/dist/esm/api/types/ToggleDefinition.d.mts +16 -0
- package/dist/esm/api/types/ToggleDefinition.mjs +16 -1
- package/dist/esm/api/types/UserSingleDefinition.d.mts +0 -16
- package/dist/esm/api/types/UserSingleDefinition.mjs +0 -13
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +112 -112
- package/reference.md +1392 -1234
|
@@ -121,11 +121,11 @@ export declare class FoldersClient {
|
|
|
121
121
|
index(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request?: Frameio.FoldersIndexRequest, requestOptions?: FoldersClient.RequestOptions): core.HttpResponsePromise<Frameio.FolderAssetsWithIncludesResponse>;
|
|
122
122
|
private __index;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Move folder to a folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
125
125
|
*
|
|
126
126
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
127
127
|
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
128
|
-
* @param {Frameio.
|
|
128
|
+
* @param {Frameio.FolderMoveParams} request
|
|
129
129
|
* @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
130
130
|
*
|
|
131
131
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -137,15 +137,14 @@ export declare class FoldersClient {
|
|
|
137
137
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
138
138
|
*
|
|
139
139
|
* @example
|
|
140
|
-
* await client.folders.
|
|
141
|
-
* copy_metadata: true,
|
|
140
|
+
* await client.folders.move("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
142
141
|
* data: {
|
|
143
142
|
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
144
143
|
* }
|
|
145
144
|
* })
|
|
146
145
|
*/
|
|
147
|
-
|
|
148
|
-
private
|
|
146
|
+
move(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request: Frameio.FolderMoveParams, requestOptions?: FoldersClient.RequestOptions): core.HttpResponsePromise<Frameio.FolderResponse>;
|
|
147
|
+
private __move;
|
|
149
148
|
/**
|
|
150
149
|
* List folders in a given folder. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
151
150
|
*
|
|
@@ -198,11 +197,11 @@ export declare class FoldersClient {
|
|
|
198
197
|
create(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request: Frameio.FolderCreateParams, requestOptions?: FoldersClient.RequestOptions): core.HttpResponsePromise<Frameio.FolderResponse>;
|
|
199
198
|
private __create;
|
|
200
199
|
/**
|
|
201
|
-
*
|
|
200
|
+
* Copy folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
202
201
|
*
|
|
203
202
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
204
203
|
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
205
|
-
* @param {Frameio.
|
|
204
|
+
* @param {Frameio.FolderCopyParams} request
|
|
206
205
|
* @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
207
206
|
*
|
|
208
207
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -214,12 +213,13 @@ export declare class FoldersClient {
|
|
|
214
213
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
215
214
|
*
|
|
216
215
|
* @example
|
|
217
|
-
* await client.folders.
|
|
216
|
+
* await client.folders.copy("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
217
|
+
* copy_metadata: true,
|
|
218
218
|
* data: {
|
|
219
219
|
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
220
220
|
* }
|
|
221
221
|
* })
|
|
222
222
|
*/
|
|
223
|
-
|
|
224
|
-
private
|
|
223
|
+
copy(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request?: Frameio.FolderCopyParams, requestOptions?: FoldersClient.RequestOptions): core.HttpResponsePromise<Frameio.FolderCopyResponse>;
|
|
224
|
+
private __copy;
|
|
225
225
|
}
|
|
@@ -347,11 +347,11 @@ export class FoldersClient {
|
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
|
-
*
|
|
350
|
+
* Move folder to a folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
351
351
|
*
|
|
352
352
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
353
353
|
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
354
|
-
* @param {Frameio.
|
|
354
|
+
* @param {Frameio.FolderMoveParams} request
|
|
355
355
|
* @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
356
356
|
*
|
|
357
357
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -363,33 +363,28 @@ export class FoldersClient {
|
|
|
363
363
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
364
364
|
*
|
|
365
365
|
* @example
|
|
366
|
-
* await client.folders.
|
|
367
|
-
* copy_metadata: true,
|
|
366
|
+
* await client.folders.move("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
368
367
|
* data: {
|
|
369
368
|
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
370
369
|
* }
|
|
371
370
|
* })
|
|
372
371
|
*/
|
|
373
|
-
|
|
374
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
372
|
+
move(account_id, folder_id, request, requestOptions) {
|
|
373
|
+
return core.HttpResponsePromise.fromPromise(this.__move(account_id, folder_id, request, requestOptions));
|
|
375
374
|
}
|
|
376
|
-
|
|
377
|
-
return __awaiter(this,
|
|
375
|
+
__move(account_id, folder_id, request, requestOptions) {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
378
377
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
379
|
-
const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
|
|
380
|
-
const _queryParams = {
|
|
381
|
-
copy_metadata: copyMetadata,
|
|
382
|
-
};
|
|
383
378
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
384
379
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
385
380
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
386
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/folders/${core.url.encodePathParam(folder_id)}/
|
|
387
|
-
method: "
|
|
381
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/folders/${core.url.encodePathParam(folder_id)}/move`),
|
|
382
|
+
method: "PATCH",
|
|
388
383
|
headers: _headers,
|
|
389
384
|
contentType: "application/json",
|
|
390
|
-
queryParameters:
|
|
385
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
391
386
|
requestType: "json",
|
|
392
|
-
body:
|
|
387
|
+
body: request,
|
|
393
388
|
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
394
389
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
395
390
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -423,7 +418,7 @@ export class FoldersClient {
|
|
|
423
418
|
});
|
|
424
419
|
}
|
|
425
420
|
}
|
|
426
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
421
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/folders/{folder_id}/move");
|
|
427
422
|
});
|
|
428
423
|
}
|
|
429
424
|
/**
|
|
@@ -582,11 +577,11 @@ export class FoldersClient {
|
|
|
582
577
|
});
|
|
583
578
|
}
|
|
584
579
|
/**
|
|
585
|
-
*
|
|
580
|
+
* Copy folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
586
581
|
*
|
|
587
582
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
588
583
|
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
589
|
-
* @param {Frameio.
|
|
584
|
+
* @param {Frameio.FolderCopyParams} request
|
|
590
585
|
* @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
591
586
|
*
|
|
592
587
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -598,28 +593,33 @@ export class FoldersClient {
|
|
|
598
593
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
599
594
|
*
|
|
600
595
|
* @example
|
|
601
|
-
* await client.folders.
|
|
596
|
+
* await client.folders.copy("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
597
|
+
* copy_metadata: true,
|
|
602
598
|
* data: {
|
|
603
599
|
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
604
600
|
* }
|
|
605
601
|
* })
|
|
606
602
|
*/
|
|
607
|
-
|
|
608
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
603
|
+
copy(account_id, folder_id, request = {}, requestOptions) {
|
|
604
|
+
return core.HttpResponsePromise.fromPromise(this.__copy(account_id, folder_id, request, requestOptions));
|
|
609
605
|
}
|
|
610
|
-
|
|
611
|
-
return __awaiter(this,
|
|
606
|
+
__copy(account_id_1, folder_id_1) {
|
|
607
|
+
return __awaiter(this, arguments, void 0, function* (account_id, folder_id, request = {}, requestOptions) {
|
|
612
608
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
609
|
+
const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
|
|
610
|
+
const _queryParams = {
|
|
611
|
+
copy_metadata: copyMetadata,
|
|
612
|
+
};
|
|
613
613
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
614
614
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
615
615
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
616
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/folders/${core.url.encodePathParam(folder_id)}/
|
|
617
|
-
method: "
|
|
616
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/folders/${core.url.encodePathParam(folder_id)}/copy`),
|
|
617
|
+
method: "POST",
|
|
618
618
|
headers: _headers,
|
|
619
619
|
contentType: "application/json",
|
|
620
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
620
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
621
621
|
requestType: "json",
|
|
622
|
-
body:
|
|
622
|
+
body: _body,
|
|
623
623
|
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
624
624
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
625
625
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -653,7 +653,7 @@ export class FoldersClient {
|
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
656
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/folders/{folder_id}/copy");
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
}
|
|
@@ -13,6 +13,29 @@ export declare namespace MetadataClient {
|
|
|
13
13
|
export declare class MetadataClient {
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<MetadataClient.Options>;
|
|
15
15
|
constructor(options: MetadataClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Show the metadata of a file. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
18
|
+
*
|
|
19
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
20
|
+
* @param {Frameio.FrameOrAdobeId} file_id
|
|
21
|
+
* @param {Frameio.MetadataShowRequest} request
|
|
22
|
+
* @param {MetadataClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @throws {@link Frameio.BadRequestError}
|
|
25
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
26
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
27
|
+
* @throws {@link Frameio.NotFoundError}
|
|
28
|
+
* @throws {@link Frameio.ConflictError}
|
|
29
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
30
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.metadata.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
34
|
+
* show_null: true
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
show(account_id: Frameio.FrameOrAdobeId, file_id: Frameio.FrameOrAdobeId, request?: Frameio.MetadataShowRequest, requestOptions?: MetadataClient.RequestOptions): core.HttpResponsePromise<Frameio.MetadataResponse>;
|
|
38
|
+
private __show;
|
|
16
39
|
/**
|
|
17
40
|
* Update metadata values across multiple files. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
18
41
|
*
|
|
@@ -32,16 +55,16 @@ export declare class MetadataClient {
|
|
|
32
55
|
* @example
|
|
33
56
|
* await client.metadata.bulkUpdate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
34
57
|
* data: {
|
|
35
|
-
* file_ids: ["
|
|
58
|
+
* file_ids: ["75265730-0349-4bbe-a768-3170449678a4", "2d4412db-aaeb-431d-a0bb-eadc5b9f4460"],
|
|
36
59
|
* values: [{
|
|
37
|
-
* field_definition_id: "
|
|
60
|
+
* field_definition_id: "b01cba27-9039-4370-8ab5-fd11018f4000",
|
|
38
61
|
* value: [
|
|
39
62
|
* {
|
|
40
|
-
* "id": "
|
|
63
|
+
* "id": "c36c6aac-1be0-41d8-b1d3-fe0c5090f59b",
|
|
41
64
|
* "type": "user"
|
|
42
65
|
* },
|
|
43
66
|
* {
|
|
44
|
-
* "id": "
|
|
67
|
+
* "id": "44206fd1-0725-4832-8d67-1a296cfff906",
|
|
45
68
|
* "type": "account_user_group"
|
|
46
69
|
* }
|
|
47
70
|
* ]
|
|
@@ -51,27 +74,4 @@ export declare class MetadataClient {
|
|
|
51
74
|
*/
|
|
52
75
|
bulkUpdate(account_id: Frameio.FrameOrAdobeId, project_id: Frameio.FrameOrAdobeId, request: Frameio.BulkUpdateMetadataParams, requestOptions?: MetadataClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
53
76
|
private __bulkUpdate;
|
|
54
|
-
/**
|
|
55
|
-
* Show the metadata of a file. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
56
|
-
*
|
|
57
|
-
* @param {Frameio.FrameOrAdobeId} account_id
|
|
58
|
-
* @param {Frameio.FrameOrAdobeId} file_id
|
|
59
|
-
* @param {Frameio.MetadataShowRequest} request
|
|
60
|
-
* @param {MetadataClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
-
*
|
|
62
|
-
* @throws {@link Frameio.BadRequestError}
|
|
63
|
-
* @throws {@link Frameio.UnauthorizedError}
|
|
64
|
-
* @throws {@link Frameio.ForbiddenError}
|
|
65
|
-
* @throws {@link Frameio.NotFoundError}
|
|
66
|
-
* @throws {@link Frameio.ConflictError}
|
|
67
|
-
* @throws {@link Frameio.UnprocessableEntityError}
|
|
68
|
-
* @throws {@link Frameio.TooManyRequestsError}
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* await client.metadata.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
72
|
-
* show_null: true
|
|
73
|
-
* })
|
|
74
|
-
*/
|
|
75
|
-
show(account_id: Frameio.FrameOrAdobeId, file_id: Frameio.FrameOrAdobeId, request?: Frameio.MetadataShowRequest, requestOptions?: MetadataClient.RequestOptions): core.HttpResponsePromise<Frameio.MetadataResponse>;
|
|
76
|
-
private __show;
|
|
77
77
|
}
|
|
@@ -23,11 +23,11 @@ export class MetadataClient {
|
|
|
23
23
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Show the metadata of a file. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
27
27
|
*
|
|
28
28
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
29
|
-
* @param {Frameio.FrameOrAdobeId}
|
|
30
|
-
* @param {Frameio.
|
|
29
|
+
* @param {Frameio.FrameOrAdobeId} file_id
|
|
30
|
+
* @param {Frameio.MetadataShowRequest} request
|
|
31
31
|
* @param {MetadataClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
32
|
*
|
|
33
33
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -39,41 +39,27 @@ export class MetadataClient {
|
|
|
39
39
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.metadata.
|
|
43
|
-
*
|
|
44
|
-
* file_ids: ["dc37a681-3152-42b3-ba09-f0d3de621971", "5a1e8ba3-4d9e-4948-a387-4d72be7363c7"],
|
|
45
|
-
* values: [{
|
|
46
|
-
* field_definition_id: "cdf13fb4-c812-414c-9e95-ceeb8fc821ba",
|
|
47
|
-
* value: [
|
|
48
|
-
* {
|
|
49
|
-
* "id": "92268c72-45a4-480b-be87-b11e3441ae73",
|
|
50
|
-
* "type": "user"
|
|
51
|
-
* },
|
|
52
|
-
* {
|
|
53
|
-
* "id": "34962f71-e970-4d75-8fbe-8e62267f985e",
|
|
54
|
-
* "type": "account_user_group"
|
|
55
|
-
* }
|
|
56
|
-
* ]
|
|
57
|
-
* }]
|
|
58
|
-
* }
|
|
42
|
+
* await client.metadata.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
43
|
+
* show_null: true
|
|
59
44
|
* })
|
|
60
45
|
*/
|
|
61
|
-
|
|
62
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
46
|
+
show(account_id, file_id, request = {}, requestOptions) {
|
|
47
|
+
return core.HttpResponsePromise.fromPromise(this.__show(account_id, file_id, request, requestOptions));
|
|
63
48
|
}
|
|
64
|
-
|
|
65
|
-
return __awaiter(this,
|
|
49
|
+
__show(account_id_1, file_id_1) {
|
|
50
|
+
return __awaiter(this, arguments, void 0, function* (account_id, file_id, request = {}, requestOptions) {
|
|
66
51
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
52
|
+
const { show_null: showNull } = request;
|
|
53
|
+
const _queryParams = {
|
|
54
|
+
show_null: showNull,
|
|
55
|
+
};
|
|
67
56
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
68
57
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
69
58
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
70
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/
|
|
71
|
-
method: "
|
|
59
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/files/${core.url.encodePathParam(file_id)}/metadata`),
|
|
60
|
+
method: "GET",
|
|
72
61
|
headers: _headers,
|
|
73
|
-
|
|
74
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
75
|
-
requestType: "json",
|
|
76
|
-
body: request,
|
|
62
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
77
63
|
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
78
64
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
79
65
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -81,7 +67,7 @@ export class MetadataClient {
|
|
|
81
67
|
logging: this._options.logging,
|
|
82
68
|
});
|
|
83
69
|
if (_response.ok) {
|
|
84
|
-
return { data:
|
|
70
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
85
71
|
}
|
|
86
72
|
if (_response.error.reason === "status-code") {
|
|
87
73
|
switch (_response.error.statusCode) {
|
|
@@ -107,15 +93,15 @@ export class MetadataClient {
|
|
|
107
93
|
});
|
|
108
94
|
}
|
|
109
95
|
}
|
|
110
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
96
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/files/{file_id}/metadata");
|
|
111
97
|
});
|
|
112
98
|
}
|
|
113
99
|
/**
|
|
114
|
-
*
|
|
100
|
+
* Update metadata values across multiple files. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
115
101
|
*
|
|
116
102
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
117
|
-
* @param {Frameio.FrameOrAdobeId}
|
|
118
|
-
* @param {Frameio.
|
|
103
|
+
* @param {Frameio.FrameOrAdobeId} project_id
|
|
104
|
+
* @param {Frameio.BulkUpdateMetadataParams} request
|
|
119
105
|
* @param {MetadataClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
106
|
*
|
|
121
107
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -127,27 +113,41 @@ export class MetadataClient {
|
|
|
127
113
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
128
114
|
*
|
|
129
115
|
* @example
|
|
130
|
-
* await client.metadata.
|
|
131
|
-
*
|
|
116
|
+
* await client.metadata.bulkUpdate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
117
|
+
* data: {
|
|
118
|
+
* file_ids: ["75265730-0349-4bbe-a768-3170449678a4", "2d4412db-aaeb-431d-a0bb-eadc5b9f4460"],
|
|
119
|
+
* values: [{
|
|
120
|
+
* field_definition_id: "b01cba27-9039-4370-8ab5-fd11018f4000",
|
|
121
|
+
* value: [
|
|
122
|
+
* {
|
|
123
|
+
* "id": "c36c6aac-1be0-41d8-b1d3-fe0c5090f59b",
|
|
124
|
+
* "type": "user"
|
|
125
|
+
* },
|
|
126
|
+
* {
|
|
127
|
+
* "id": "44206fd1-0725-4832-8d67-1a296cfff906",
|
|
128
|
+
* "type": "account_user_group"
|
|
129
|
+
* }
|
|
130
|
+
* ]
|
|
131
|
+
* }]
|
|
132
|
+
* }
|
|
132
133
|
* })
|
|
133
134
|
*/
|
|
134
|
-
|
|
135
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
135
|
+
bulkUpdate(account_id, project_id, request, requestOptions) {
|
|
136
|
+
return core.HttpResponsePromise.fromPromise(this.__bulkUpdate(account_id, project_id, request, requestOptions));
|
|
136
137
|
}
|
|
137
|
-
|
|
138
|
-
return __awaiter(this,
|
|
138
|
+
__bulkUpdate(account_id, project_id, request, requestOptions) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
140
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
140
|
-
const { show_null: showNull } = request;
|
|
141
|
-
const _queryParams = {
|
|
142
|
-
show_null: showNull,
|
|
143
|
-
};
|
|
144
141
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
145
142
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
146
143
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
147
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/
|
|
148
|
-
method: "
|
|
144
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/projects/${core.url.encodePathParam(project_id)}/metadata/values`),
|
|
145
|
+
method: "PATCH",
|
|
149
146
|
headers: _headers,
|
|
150
|
-
|
|
147
|
+
contentType: "application/json",
|
|
148
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
149
|
+
requestType: "json",
|
|
150
|
+
body: request,
|
|
151
151
|
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
152
152
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
153
153
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -155,7 +155,7 @@ export class MetadataClient {
|
|
|
155
155
|
logging: this._options.logging,
|
|
156
156
|
});
|
|
157
157
|
if (_response.ok) {
|
|
158
|
-
return { data:
|
|
158
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
159
159
|
}
|
|
160
160
|
if (_response.error.reason === "status-code") {
|
|
161
161
|
switch (_response.error.statusCode) {
|
|
@@ -181,7 +181,7 @@ export class MetadataClient {
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
184
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/projects/{project_id}/metadata/values");
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -3,16 +3,16 @@ import type * as Frameio from "../../../../index.mjs";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* data: {
|
|
6
|
-
* file_ids: ["
|
|
6
|
+
* file_ids: ["75265730-0349-4bbe-a768-3170449678a4", "2d4412db-aaeb-431d-a0bb-eadc5b9f4460"],
|
|
7
7
|
* values: [{
|
|
8
|
-
* field_definition_id: "
|
|
8
|
+
* field_definition_id: "b01cba27-9039-4370-8ab5-fd11018f4000",
|
|
9
9
|
* value: [
|
|
10
10
|
* {
|
|
11
|
-
* "id": "
|
|
11
|
+
* "id": "c36c6aac-1be0-41d8-b1d3-fe0c5090f59b",
|
|
12
12
|
* "type": "user"
|
|
13
13
|
* },
|
|
14
14
|
* {
|
|
15
|
-
* "id": "
|
|
15
|
+
* "id": "44206fd1-0725-4832-8d67-1a296cfff906",
|
|
16
16
|
* "type": "account_user_group"
|
|
17
17
|
* }
|
|
18
18
|
* ]
|
|
@@ -14,11 +14,11 @@ export declare class ProjectPermissionsClient {
|
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<ProjectPermissionsClient.Options>;
|
|
15
15
|
constructor(options: ProjectPermissionsClient.Options);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Remove a user from a given project. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
18
18
|
*
|
|
19
19
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
20
20
|
* @param {Frameio.FrameOrAdobeId} project_id
|
|
21
|
-
* @param {Frameio.
|
|
21
|
+
* @param {Frameio.Uuid} user_id
|
|
22
22
|
* @param {ProjectPermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
23
|
*
|
|
24
24
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -30,21 +30,18 @@ export declare class ProjectPermissionsClient {
|
|
|
30
30
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* await client.projectPermissions.
|
|
34
|
-
* include_deactivated: true,
|
|
35
|
-
* sort: "role_asc",
|
|
36
|
-
* after: "<opaque_cursor>",
|
|
37
|
-
* page_size: 10,
|
|
38
|
-
* include_total_count: false
|
|
39
|
-
* })
|
|
33
|
+
* await client.projectPermissions.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
40
34
|
*/
|
|
41
|
-
|
|
35
|
+
delete(account_id: Frameio.FrameOrAdobeId, project_id: Frameio.FrameOrAdobeId, user_id: Frameio.Uuid, requestOptions?: ProjectPermissionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
36
|
+
private __delete;
|
|
42
37
|
/**
|
|
43
|
-
*
|
|
38
|
+
* Update user roles for the given project if the user is already added to the project. If the user is
|
|
39
|
+
* not added to the project, the user will be added with the given role. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
44
40
|
*
|
|
45
41
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
46
42
|
* @param {Frameio.FrameOrAdobeId} project_id
|
|
47
43
|
* @param {Frameio.Uuid} user_id
|
|
44
|
+
* @param {Frameio.UpdateUserRolesParams} request
|
|
48
45
|
* @param {ProjectPermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
46
|
*
|
|
50
47
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -56,18 +53,20 @@ export declare class ProjectPermissionsClient {
|
|
|
56
53
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
57
54
|
*
|
|
58
55
|
* @example
|
|
59
|
-
* await client.projectPermissions.
|
|
56
|
+
* await client.projectPermissions.projectUserRolesUpdate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
57
|
+
* data: {
|
|
58
|
+
* role: "editor"
|
|
59
|
+
* }
|
|
60
|
+
* })
|
|
60
61
|
*/
|
|
61
|
-
|
|
62
|
-
private
|
|
62
|
+
projectUserRolesUpdate(account_id: Frameio.FrameOrAdobeId, project_id: Frameio.FrameOrAdobeId, user_id: Frameio.Uuid, request: Frameio.UpdateUserRolesParams, requestOptions?: ProjectPermissionsClient.RequestOptions): core.HttpResponsePromise<Frameio.UpdateUserRolesResponse>;
|
|
63
|
+
private __projectUserRolesUpdate;
|
|
63
64
|
/**
|
|
64
|
-
*
|
|
65
|
-
* not added to the project, the user will be added with the given role. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
65
|
+
* List user roles for a given project. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
66
66
|
*
|
|
67
67
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
68
68
|
* @param {Frameio.FrameOrAdobeId} project_id
|
|
69
|
-
* @param {Frameio.
|
|
70
|
-
* @param {Frameio.UpdateUserRolesParams} request
|
|
69
|
+
* @param {Frameio.ProjectPermissionsIndexRequest} request
|
|
71
70
|
* @param {ProjectPermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
71
|
*
|
|
73
72
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -79,12 +78,13 @@ export declare class ProjectPermissionsClient {
|
|
|
79
78
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
80
79
|
*
|
|
81
80
|
* @example
|
|
82
|
-
* await client.projectPermissions.
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
81
|
+
* await client.projectPermissions.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
82
|
+
* include_deactivated: true,
|
|
83
|
+
* sort: "role_asc",
|
|
84
|
+
* after: "<opaque_cursor>",
|
|
85
|
+
* page_size: 10,
|
|
86
|
+
* include_total_count: false
|
|
86
87
|
* })
|
|
87
88
|
*/
|
|
88
|
-
|
|
89
|
-
private __projectUserRolesUpdate;
|
|
89
|
+
index(account_id: Frameio.FrameOrAdobeId, project_id: Frameio.FrameOrAdobeId, _request?: Frameio.ProjectPermissionsIndexRequest, requestOptions?: ProjectPermissionsClient.RequestOptions): Promise<core.Page<Frameio.UserRole, Frameio.ProjectUserRolesResponse>>;
|
|
90
90
|
}
|