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
|
@@ -34,23 +34,11 @@ export class VersionStacksClient {
|
|
|
34
34
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* <br/>
|
|
39
|
-
* Use the `include` query parameter to selectively include additional properties in the response.
|
|
40
|
-
* <br/>
|
|
41
|
-
* Note: if you include `media_links.original` and the user does not have permission to download files
|
|
42
|
-
* in the corresponding project, then this endpoint will respond with a `403 Forbidden` error.
|
|
43
|
-
* If the content is inaccessible because watermarking is required for this user and isn't supported by
|
|
44
|
-
* the requested media_links, then the request will succeed but the unsupported media links will be set to null.
|
|
45
|
-
* Similarly, if a requested transcode link does not exist for a particular file (e.g. including
|
|
46
|
-
* `media_links.video_h264_180` on a static image file) or transoding process hasn't finished
|
|
47
|
-
* (i.e. the file's `status` is "uploaded" rather than "transcoded"), then the a media link will also be set to
|
|
48
|
-
* null in the response payload. In short, the client must handle null media links gracefully.
|
|
49
|
-
* <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
37
|
+
* Move version stack to a folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
50
38
|
*
|
|
51
39
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
52
40
|
* @param {Frameio.FrameOrAdobeId} version_stack_id
|
|
53
|
-
* @param {Frameio.
|
|
41
|
+
* @param {Frameio.VersionStackMoveParams} request
|
|
54
42
|
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
43
|
*
|
|
56
44
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -62,33 +50,28 @@ export class VersionStacksClient {
|
|
|
62
50
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
63
51
|
*
|
|
64
52
|
* @example
|
|
65
|
-
* await client.versionStacks.
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* include_total_count: false
|
|
53
|
+
* await client.versionStacks.move("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
54
|
+
* data: {
|
|
55
|
+
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
56
|
+
* }
|
|
70
57
|
* })
|
|
71
58
|
*/
|
|
72
|
-
|
|
73
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
59
|
+
move(account_id, version_stack_id, request, requestOptions) {
|
|
60
|
+
return core.HttpResponsePromise.fromPromise(this.__move(account_id, version_stack_id, request, requestOptions));
|
|
74
61
|
}
|
|
75
|
-
|
|
76
|
-
return __awaiter(this,
|
|
62
|
+
__move(account_id, version_stack_id, request, requestOptions) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
64
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
78
|
-
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
79
|
-
const _queryParams = {
|
|
80
|
-
include: include != null ? include : undefined,
|
|
81
|
-
after,
|
|
82
|
-
page_size: pageSize,
|
|
83
|
-
include_total_count: includeTotalCount,
|
|
84
|
-
};
|
|
85
65
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
86
66
|
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);
|
|
87
67
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
88
|
-
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/
|
|
89
|
-
method: "
|
|
68
|
+
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/move`),
|
|
69
|
+
method: "PATCH",
|
|
90
70
|
headers: _headers,
|
|
91
|
-
|
|
71
|
+
contentType: "application/json",
|
|
72
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
73
|
+
requestType: "json",
|
|
74
|
+
body: request,
|
|
92
75
|
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,
|
|
93
76
|
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,
|
|
94
77
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -96,10 +79,7 @@ export class VersionStacksClient {
|
|
|
96
79
|
logging: this._options.logging,
|
|
97
80
|
});
|
|
98
81
|
if (_response.ok) {
|
|
99
|
-
return {
|
|
100
|
-
data: _response.body,
|
|
101
|
-
rawResponse: _response.rawResponse,
|
|
102
|
-
};
|
|
82
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
103
83
|
}
|
|
104
84
|
if (_response.error.reason === "status-code") {
|
|
105
85
|
switch (_response.error.statusCode) {
|
|
@@ -125,15 +105,15 @@ export class VersionStacksClient {
|
|
|
125
105
|
});
|
|
126
106
|
}
|
|
127
107
|
}
|
|
128
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
108
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/move");
|
|
129
109
|
});
|
|
130
110
|
}
|
|
131
111
|
/**
|
|
132
|
-
*
|
|
112
|
+
* List version stacks in a given folder. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
133
113
|
*
|
|
134
114
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
135
|
-
* @param {Frameio.FrameOrAdobeId}
|
|
136
|
-
* @param {Frameio.
|
|
115
|
+
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
116
|
+
* @param {Frameio.VersionStacksListRequest} request
|
|
137
117
|
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
118
|
*
|
|
139
119
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -145,24 +125,30 @@ export class VersionStacksClient {
|
|
|
145
125
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
146
126
|
*
|
|
147
127
|
* @example
|
|
148
|
-
* await client.versionStacks.
|
|
149
|
-
* include: "media_links.original"
|
|
128
|
+
* await client.versionStacks.list("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
129
|
+
* include: "media_links.original",
|
|
130
|
+
* after: "<opaque_cursor>",
|
|
131
|
+
* page_size: 10,
|
|
132
|
+
* include_total_count: false
|
|
150
133
|
* })
|
|
151
134
|
*/
|
|
152
|
-
|
|
153
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
135
|
+
list(account_id, folder_id, request = {}, requestOptions) {
|
|
136
|
+
return core.HttpResponsePromise.fromPromise(this.__list(account_id, folder_id, request, requestOptions));
|
|
154
137
|
}
|
|
155
|
-
|
|
156
|
-
return __awaiter(this, arguments, void 0, function* (account_id,
|
|
138
|
+
__list(account_id_1, folder_id_1) {
|
|
139
|
+
return __awaiter(this, arguments, void 0, function* (account_id, folder_id, request = {}, requestOptions) {
|
|
157
140
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
158
|
-
const { include } = request;
|
|
141
|
+
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
159
142
|
const _queryParams = {
|
|
160
143
|
include: include != null ? include : undefined,
|
|
144
|
+
after,
|
|
145
|
+
page_size: pageSize,
|
|
146
|
+
include_total_count: includeTotalCount,
|
|
161
147
|
};
|
|
162
148
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
163
149
|
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);
|
|
164
150
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
165
|
-
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)}/
|
|
151
|
+
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)}/version_stacks`),
|
|
166
152
|
method: "GET",
|
|
167
153
|
headers: _headers,
|
|
168
154
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -202,19 +188,15 @@ export class VersionStacksClient {
|
|
|
202
188
|
});
|
|
203
189
|
}
|
|
204
190
|
}
|
|
205
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/
|
|
191
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/folders/{folder_id}/version_stacks");
|
|
206
192
|
});
|
|
207
193
|
}
|
|
208
194
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
* Currently, copying version stacks between Adobe storage backed projects is not supported. Copying individual
|
|
212
|
-
* files within a version stack and then restacking them is currently the supported method for copying version
|
|
213
|
-
* stacks for these projects.
|
|
195
|
+
* Create a new Version Stack under the parent folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
214
196
|
*
|
|
215
197
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
216
|
-
* @param {Frameio.FrameOrAdobeId}
|
|
217
|
-
* @param {Frameio.
|
|
198
|
+
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
199
|
+
* @param {Frameio.VersionStackCreateParams} request
|
|
218
200
|
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
219
201
|
*
|
|
220
202
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -226,33 +208,28 @@ export class VersionStacksClient {
|
|
|
226
208
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
227
209
|
*
|
|
228
210
|
* @example
|
|
229
|
-
* await client.versionStacks.
|
|
230
|
-
* copy_metadata: true,
|
|
211
|
+
* await client.versionStacks.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
231
212
|
* data: {
|
|
232
|
-
*
|
|
213
|
+
* file_ids: ["74849eb1-eb41-4ad9-98f5-bc91b59db044", "07edec4a-c8bb-479b-8dba-10f921b60746"]
|
|
233
214
|
* }
|
|
234
215
|
* })
|
|
235
216
|
*/
|
|
236
|
-
|
|
237
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
217
|
+
create(account_id, folder_id, request, requestOptions) {
|
|
218
|
+
return core.HttpResponsePromise.fromPromise(this.__create(account_id, folder_id, request, requestOptions));
|
|
238
219
|
}
|
|
239
|
-
|
|
240
|
-
return __awaiter(this,
|
|
220
|
+
__create(account_id, folder_id, request, requestOptions) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
222
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
242
|
-
const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
|
|
243
|
-
const _queryParams = {
|
|
244
|
-
copy_metadata: copyMetadata,
|
|
245
|
-
};
|
|
246
223
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
247
224
|
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);
|
|
248
225
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
249
|
-
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)}/
|
|
226
|
+
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)}/version_stacks`),
|
|
250
227
|
method: "POST",
|
|
251
228
|
headers: _headers,
|
|
252
229
|
contentType: "application/json",
|
|
253
|
-
queryParameters:
|
|
230
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
254
231
|
requestType: "json",
|
|
255
|
-
body:
|
|
232
|
+
body: request,
|
|
256
233
|
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,
|
|
257
234
|
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,
|
|
258
235
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -260,7 +237,10 @@ export class VersionStacksClient {
|
|
|
260
237
|
logging: this._options.logging,
|
|
261
238
|
});
|
|
262
239
|
if (_response.ok) {
|
|
263
|
-
return {
|
|
240
|
+
return {
|
|
241
|
+
data: _response.body,
|
|
242
|
+
rawResponse: _response.rawResponse,
|
|
243
|
+
};
|
|
264
244
|
}
|
|
265
245
|
if (_response.error.reason === "status-code") {
|
|
266
246
|
switch (_response.error.statusCode) {
|
|
@@ -286,15 +266,15 @@ export class VersionStacksClient {
|
|
|
286
266
|
});
|
|
287
267
|
}
|
|
288
268
|
}
|
|
289
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/
|
|
269
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/folders/{folder_id}/version_stacks");
|
|
290
270
|
});
|
|
291
271
|
}
|
|
292
272
|
/**
|
|
293
|
-
*
|
|
273
|
+
* Show version stack details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
294
274
|
*
|
|
295
275
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
296
|
-
* @param {Frameio.FrameOrAdobeId}
|
|
297
|
-
* @param {Frameio.
|
|
276
|
+
* @param {Frameio.FrameOrAdobeId} version_stack_id
|
|
277
|
+
* @param {Frameio.VersionStacksShowRequest} request
|
|
298
278
|
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
299
279
|
*
|
|
300
280
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -306,30 +286,24 @@ export class VersionStacksClient {
|
|
|
306
286
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
307
287
|
*
|
|
308
288
|
* @example
|
|
309
|
-
* await client.versionStacks.
|
|
310
|
-
* include: "media_links.original"
|
|
311
|
-
* after: "<opaque_cursor>",
|
|
312
|
-
* page_size: 10,
|
|
313
|
-
* include_total_count: false
|
|
289
|
+
* await client.versionStacks.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
290
|
+
* include: "media_links.original"
|
|
314
291
|
* })
|
|
315
292
|
*/
|
|
316
|
-
|
|
317
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
293
|
+
show(account_id, version_stack_id, request = {}, requestOptions) {
|
|
294
|
+
return core.HttpResponsePromise.fromPromise(this.__show(account_id, version_stack_id, request, requestOptions));
|
|
318
295
|
}
|
|
319
|
-
|
|
320
|
-
return __awaiter(this, arguments, void 0, function* (account_id,
|
|
296
|
+
__show(account_id_1, version_stack_id_1) {
|
|
297
|
+
return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
|
|
321
298
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
322
|
-
const { include
|
|
299
|
+
const { include } = request;
|
|
323
300
|
const _queryParams = {
|
|
324
301
|
include: include != null ? include : undefined,
|
|
325
|
-
after,
|
|
326
|
-
page_size: pageSize,
|
|
327
|
-
include_total_count: includeTotalCount,
|
|
328
302
|
};
|
|
329
303
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
330
304
|
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);
|
|
331
305
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
332
|
-
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)}/
|
|
306
|
+
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}`),
|
|
333
307
|
method: "GET",
|
|
334
308
|
headers: _headers,
|
|
335
309
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -369,15 +343,27 @@ export class VersionStacksClient {
|
|
|
369
343
|
});
|
|
370
344
|
}
|
|
371
345
|
}
|
|
372
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/
|
|
346
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}");
|
|
373
347
|
});
|
|
374
348
|
}
|
|
375
349
|
/**
|
|
376
|
-
*
|
|
350
|
+
* List the children (files) in a given version stack.
|
|
351
|
+
* <br/>
|
|
352
|
+
* Use the `include` query parameter to selectively include additional properties in the response.
|
|
353
|
+
* <br/>
|
|
354
|
+
* Note: if you include `media_links.original` and the user does not have permission to download files
|
|
355
|
+
* in the corresponding project, then this endpoint will respond with a `403 Forbidden` error.
|
|
356
|
+
* If the content is inaccessible because watermarking is required for this user and isn't supported by
|
|
357
|
+
* the requested media_links, then the request will succeed but the unsupported media links will be set to null.
|
|
358
|
+
* Similarly, if a requested transcode link does not exist for a particular file (e.g. including
|
|
359
|
+
* `media_links.video_h264_180` on a static image file) or transoding process hasn't finished
|
|
360
|
+
* (i.e. the file's `status` is "uploaded" rather than "transcoded"), then the a media link will also be set to
|
|
361
|
+
* null in the response payload. In short, the client must handle null media links gracefully.
|
|
362
|
+
* <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
377
363
|
*
|
|
378
364
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
379
|
-
* @param {Frameio.FrameOrAdobeId}
|
|
380
|
-
* @param {Frameio.
|
|
365
|
+
* @param {Frameio.FrameOrAdobeId} version_stack_id
|
|
366
|
+
* @param {Frameio.VersionStacksIndexRequest} request
|
|
381
367
|
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
382
368
|
*
|
|
383
369
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -389,28 +375,33 @@ export class VersionStacksClient {
|
|
|
389
375
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
390
376
|
*
|
|
391
377
|
* @example
|
|
392
|
-
* await client.versionStacks.
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*
|
|
378
|
+
* await client.versionStacks.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
379
|
+
* include: "media_links.original",
|
|
380
|
+
* after: "<opaque_cursor>",
|
|
381
|
+
* page_size: 10,
|
|
382
|
+
* include_total_count: false
|
|
396
383
|
* })
|
|
397
384
|
*/
|
|
398
|
-
|
|
399
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
385
|
+
index(account_id, version_stack_id, request = {}, requestOptions) {
|
|
386
|
+
return core.HttpResponsePromise.fromPromise(this.__index(account_id, version_stack_id, request, requestOptions));
|
|
400
387
|
}
|
|
401
|
-
|
|
402
|
-
return __awaiter(this,
|
|
388
|
+
__index(account_id_1, version_stack_id_1) {
|
|
389
|
+
return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
|
|
403
390
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
391
|
+
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
392
|
+
const _queryParams = {
|
|
393
|
+
include: include != null ? include : undefined,
|
|
394
|
+
after,
|
|
395
|
+
page_size: pageSize,
|
|
396
|
+
include_total_count: includeTotalCount,
|
|
397
|
+
};
|
|
404
398
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
405
399
|
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);
|
|
406
400
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
407
|
-
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)}/
|
|
408
|
-
method: "
|
|
401
|
+
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/children`),
|
|
402
|
+
method: "GET",
|
|
409
403
|
headers: _headers,
|
|
410
|
-
|
|
411
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
412
|
-
requestType: "json",
|
|
413
|
-
body: request,
|
|
404
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
414
405
|
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,
|
|
415
406
|
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,
|
|
416
407
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -447,15 +438,19 @@ export class VersionStacksClient {
|
|
|
447
438
|
});
|
|
448
439
|
}
|
|
449
440
|
}
|
|
450
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
441
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/children");
|
|
451
442
|
});
|
|
452
443
|
}
|
|
453
444
|
/**
|
|
454
|
-
*
|
|
445
|
+
* Copy version stack. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user<br><br>
|
|
446
|
+
*
|
|
447
|
+
* Currently, copying version stacks between Adobe storage backed projects is not supported. Copying individual
|
|
448
|
+
* files within a version stack and then restacking them is currently the supported method for copying version
|
|
449
|
+
* stacks for these projects.
|
|
455
450
|
*
|
|
456
451
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
457
452
|
* @param {Frameio.FrameOrAdobeId} version_stack_id
|
|
458
|
-
* @param {Frameio.
|
|
453
|
+
* @param {Frameio.VersionStackCopyParams} request
|
|
459
454
|
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
460
455
|
*
|
|
461
456
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -467,28 +462,33 @@ export class VersionStacksClient {
|
|
|
467
462
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
468
463
|
*
|
|
469
464
|
* @example
|
|
470
|
-
* await client.versionStacks.
|
|
465
|
+
* await client.versionStacks.copy("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
466
|
+
* copy_metadata: true,
|
|
471
467
|
* data: {
|
|
472
468
|
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
473
469
|
* }
|
|
474
470
|
* })
|
|
475
471
|
*/
|
|
476
|
-
|
|
477
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
472
|
+
copy(account_id, version_stack_id, request = {}, requestOptions) {
|
|
473
|
+
return core.HttpResponsePromise.fromPromise(this.__copy(account_id, version_stack_id, request, requestOptions));
|
|
478
474
|
}
|
|
479
|
-
|
|
480
|
-
return __awaiter(this,
|
|
475
|
+
__copy(account_id_1, version_stack_id_1) {
|
|
476
|
+
return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
|
|
481
477
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
478
|
+
const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
|
|
479
|
+
const _queryParams = {
|
|
480
|
+
copy_metadata: copyMetadata,
|
|
481
|
+
};
|
|
482
482
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
483
483
|
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);
|
|
484
484
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
485
|
-
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/
|
|
486
|
-
method: "
|
|
485
|
+
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/copy`),
|
|
486
|
+
method: "POST",
|
|
487
487
|
headers: _headers,
|
|
488
488
|
contentType: "application/json",
|
|
489
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
489
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
490
490
|
requestType: "json",
|
|
491
|
-
body:
|
|
491
|
+
body: _body,
|
|
492
492
|
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,
|
|
493
493
|
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,
|
|
494
494
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -522,7 +522,7 @@ export class VersionStacksClient {
|
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
525
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/copy");
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
}
|
|
@@ -3,7 +3,7 @@ import type * as Frameio from "../../../../index.mjs";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* data: {
|
|
6
|
-
* file_ids: ["
|
|
6
|
+
* file_ids: ["74849eb1-eb41-4ad9-98f5-bc91b59db044", "07edec4a-c8bb-479b-8dba-10f921b60746"]
|
|
7
7
|
* }
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
@@ -14,11 +14,11 @@ export declare class WorkspacePermissionsClient {
|
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<WorkspacePermissionsClient.Options>;
|
|
15
15
|
constructor(options: WorkspacePermissionsClient.Options);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Remove a user from a given workspace. <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.Uuid} workspace_id
|
|
21
|
-
* @param {Frameio.
|
|
21
|
+
* @param {Frameio.Uuid} user_id
|
|
22
22
|
* @param {WorkspacePermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
23
|
*
|
|
24
24
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -30,21 +30,18 @@ export declare class WorkspacePermissionsClient {
|
|
|
30
30
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* await client.workspacePermissions.
|
|
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.workspacePermissions.workspaceUserRolesDelete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
40
34
|
*/
|
|
41
|
-
|
|
35
|
+
workspaceUserRolesDelete(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, user_id: Frameio.Uuid, requestOptions?: WorkspacePermissionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
36
|
+
private __workspaceUserRolesDelete;
|
|
42
37
|
/**
|
|
43
|
-
*
|
|
38
|
+
* Update user roles for the given workspace if the user is already added to the workspace. If the user is
|
|
39
|
+
* not added to the workspace, 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.Uuid} workspace_id
|
|
47
43
|
* @param {Frameio.Uuid} user_id
|
|
44
|
+
* @param {Frameio.UpdateWorkspaceRoleParams} request
|
|
48
45
|
* @param {WorkspacePermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
46
|
*
|
|
50
47
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -56,18 +53,20 @@ export declare class WorkspacePermissionsClient {
|
|
|
56
53
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
57
54
|
*
|
|
58
55
|
* @example
|
|
59
|
-
* await client.workspacePermissions.
|
|
56
|
+
* await client.workspacePermissions.workspaceUserRolesUpdate("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
|
+
workspaceUserRolesUpdate(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, user_id: Frameio.Uuid, request: Frameio.UpdateWorkspaceRoleParams, requestOptions?: WorkspacePermissionsClient.RequestOptions): core.HttpResponsePromise<Frameio.UpdateWorkspaceRoleResponse>;
|
|
63
|
+
private __workspaceUserRolesUpdate;
|
|
63
64
|
/**
|
|
64
|
-
*
|
|
65
|
-
* not added to the workspace, 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 workspace. <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.Uuid} workspace_id
|
|
69
|
-
* @param {Frameio.
|
|
70
|
-
* @param {Frameio.UpdateWorkspaceRoleParams} request
|
|
69
|
+
* @param {Frameio.WorkspacePermissionsIndexRequest} request
|
|
71
70
|
* @param {WorkspacePermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
71
|
*
|
|
73
72
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -79,12 +78,13 @@ export declare class WorkspacePermissionsClient {
|
|
|
79
78
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
80
79
|
*
|
|
81
80
|
* @example
|
|
82
|
-
* await client.workspacePermissions.
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
81
|
+
* await client.workspacePermissions.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 __workspaceUserRolesUpdate;
|
|
89
|
+
index(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, _request?: Frameio.WorkspacePermissionsIndexRequest, requestOptions?: WorkspacePermissionsClient.RequestOptions): Promise<core.Page<Frameio.WorkspaceUserRole, Frameio.WorkspaceUserRolesResponse>>;
|
|
90
90
|
}
|