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.
Files changed (112) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +30 -30
  3. package/dist/cjs/Client.js +38 -38
  4. package/dist/cjs/api/resources/collections/client/Client.d.ts +17 -17
  5. package/dist/cjs/api/resources/collections/client/Client.js +30 -30
  6. package/dist/cjs/api/resources/files/client/Client.d.ts +96 -96
  7. package/dist/cjs/api/resources/files/client/Client.js +175 -175
  8. package/dist/cjs/api/resources/folders/client/Client.d.ts +11 -11
  9. package/dist/cjs/api/resources/folders/client/Client.js +29 -29
  10. package/dist/cjs/api/resources/metadata/client/Client.d.ts +27 -27
  11. package/dist/cjs/api/resources/metadata/client/Client.js +50 -50
  12. package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +4 -4
  13. package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +24 -24
  14. package/dist/cjs/api/resources/projectPermissions/client/Client.js +87 -87
  15. package/dist/cjs/api/resources/projects/client/Client.d.ts +56 -0
  16. package/dist/cjs/api/resources/projects/client/Client.js +166 -0
  17. package/dist/cjs/api/resources/projects/client/requests/AccountProjectsIndexRequest.d.ts +24 -0
  18. package/dist/cjs/api/resources/projects/client/requests/AccountProjectsIndexRequest.js +3 -0
  19. package/dist/cjs/api/resources/projects/client/requests/InvitedProjectsIndexRequest.d.ts +24 -0
  20. package/dist/cjs/api/resources/projects/client/requests/InvitedProjectsIndexRequest.js +3 -0
  21. package/dist/cjs/api/resources/projects/client/requests/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/projects/types/AccountProjectsIndexRequestSort.d.ts +8 -0
  23. package/dist/cjs/api/resources/projects/types/AccountProjectsIndexRequestSort.js +11 -0
  24. package/dist/cjs/api/resources/projects/types/InvitedProjectsIndexRequestSort.d.ts +8 -0
  25. package/dist/cjs/api/resources/projects/types/InvitedProjectsIndexRequestSort.js +11 -0
  26. package/dist/cjs/api/resources/projects/types/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/projects/types/index.js +2 -0
  28. package/dist/cjs/api/resources/shares/client/Client.d.ts +49 -49
  29. package/dist/cjs/api/resources/shares/client/Client.js +146 -146
  30. package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
  31. package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
  32. package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +1 -1
  33. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +64 -64
  34. package/dist/cjs/api/resources/versionStacks/client/Client.js +121 -121
  35. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
  36. package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +24 -24
  37. package/dist/cjs/api/resources/workspacePermissions/client/Client.js +87 -87
  38. package/dist/cjs/api/resources/workspaces/client/Client.d.ts +34 -34
  39. package/dist/cjs/api/resources/workspaces/client/Client.js +141 -141
  40. package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +6 -0
  41. package/dist/cjs/api/types/AuditLogwithIncludes.js +6 -0
  42. package/dist/cjs/api/types/Filters.d.ts +6 -0
  43. package/dist/cjs/api/types/Filters.js +6 -0
  44. package/dist/cjs/api/types/LongTextDefinition.d.ts +0 -16
  45. package/dist/cjs/api/types/LongTextDefinition.js +0 -17
  46. package/dist/cjs/api/types/NumberDefinition.d.ts +16 -0
  47. package/dist/cjs/api/types/NumberDefinition.js +13 -0
  48. package/dist/cjs/api/types/TextDefinition.d.ts +0 -16
  49. package/dist/cjs/api/types/TextDefinition.js +0 -17
  50. package/dist/cjs/api/types/ToggleDefinition.d.ts +16 -0
  51. package/dist/cjs/api/types/ToggleDefinition.js +17 -0
  52. package/dist/cjs/api/types/UserSingleDefinition.d.ts +0 -16
  53. package/dist/cjs/api/types/UserSingleDefinition.js +0 -13
  54. package/dist/cjs/version.d.ts +1 -1
  55. package/dist/cjs/version.js +1 -1
  56. package/dist/esm/BaseClient.mjs +2 -2
  57. package/dist/esm/Client.d.mts +30 -30
  58. package/dist/esm/Client.mjs +38 -38
  59. package/dist/esm/api/resources/collections/client/Client.d.mts +17 -17
  60. package/dist/esm/api/resources/collections/client/Client.mjs +30 -30
  61. package/dist/esm/api/resources/files/client/Client.d.mts +96 -96
  62. package/dist/esm/api/resources/files/client/Client.mjs +175 -175
  63. package/dist/esm/api/resources/folders/client/Client.d.mts +11 -11
  64. package/dist/esm/api/resources/folders/client/Client.mjs +29 -29
  65. package/dist/esm/api/resources/metadata/client/Client.d.mts +27 -27
  66. package/dist/esm/api/resources/metadata/client/Client.mjs +50 -50
  67. package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +4 -4
  68. package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +24 -24
  69. package/dist/esm/api/resources/projectPermissions/client/Client.mjs +87 -87
  70. package/dist/esm/api/resources/projects/client/Client.d.mts +56 -0
  71. package/dist/esm/api/resources/projects/client/Client.mjs +166 -0
  72. package/dist/esm/api/resources/projects/client/requests/AccountProjectsIndexRequest.d.mts +24 -0
  73. package/dist/esm/api/resources/projects/client/requests/AccountProjectsIndexRequest.mjs +2 -0
  74. package/dist/esm/api/resources/projects/client/requests/InvitedProjectsIndexRequest.d.mts +24 -0
  75. package/dist/esm/api/resources/projects/client/requests/InvitedProjectsIndexRequest.mjs +2 -0
  76. package/dist/esm/api/resources/projects/client/requests/index.d.mts +2 -0
  77. package/dist/esm/api/resources/projects/types/AccountProjectsIndexRequestSort.d.mts +8 -0
  78. package/dist/esm/api/resources/projects/types/AccountProjectsIndexRequestSort.mjs +8 -0
  79. package/dist/esm/api/resources/projects/types/InvitedProjectsIndexRequestSort.d.mts +8 -0
  80. package/dist/esm/api/resources/projects/types/InvitedProjectsIndexRequestSort.mjs +8 -0
  81. package/dist/esm/api/resources/projects/types/index.d.mts +2 -0
  82. package/dist/esm/api/resources/projects/types/index.mjs +2 -0
  83. package/dist/esm/api/resources/shares/client/Client.d.mts +49 -49
  84. package/dist/esm/api/resources/shares/client/Client.mjs +146 -146
  85. package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
  86. package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
  87. package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +1 -1
  88. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +64 -64
  89. package/dist/esm/api/resources/versionStacks/client/Client.mjs +121 -121
  90. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
  91. package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +24 -24
  92. package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +87 -87
  93. package/dist/esm/api/resources/workspaces/client/Client.d.mts +34 -34
  94. package/dist/esm/api/resources/workspaces/client/Client.mjs +141 -141
  95. package/dist/esm/api/types/AuditLogwithIncludes.d.mts +6 -0
  96. package/dist/esm/api/types/AuditLogwithIncludes.mjs +6 -0
  97. package/dist/esm/api/types/Filters.d.mts +6 -0
  98. package/dist/esm/api/types/Filters.mjs +6 -0
  99. package/dist/esm/api/types/LongTextDefinition.d.mts +0 -16
  100. package/dist/esm/api/types/LongTextDefinition.mjs +1 -16
  101. package/dist/esm/api/types/NumberDefinition.d.mts +16 -0
  102. package/dist/esm/api/types/NumberDefinition.mjs +13 -0
  103. package/dist/esm/api/types/TextDefinition.d.mts +0 -16
  104. package/dist/esm/api/types/TextDefinition.mjs +1 -16
  105. package/dist/esm/api/types/ToggleDefinition.d.mts +16 -0
  106. package/dist/esm/api/types/ToggleDefinition.mjs +16 -1
  107. package/dist/esm/api/types/UserSingleDefinition.d.mts +0 -16
  108. package/dist/esm/api/types/UserSingleDefinition.mjs +0 -13
  109. package/dist/esm/version.d.mts +1 -1
  110. package/dist/esm/version.mjs +1 -1
  111. package/package.json +112 -112
  112. package/reference.md +1392 -1234
@@ -58,93 +58,6 @@ class WorkspacePermissionsClient {
58
58
  constructor(options) {
59
59
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
60
60
  }
61
- /**
62
- * List user roles for a given workspace. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
63
- *
64
- * @param {Frameio.FrameOrAdobeId} account_id
65
- * @param {Frameio.Uuid} workspace_id
66
- * @param {Frameio.WorkspacePermissionsIndexRequest} request
67
- * @param {WorkspacePermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
68
- *
69
- * @throws {@link Frameio.BadRequestError}
70
- * @throws {@link Frameio.UnauthorizedError}
71
- * @throws {@link Frameio.ForbiddenError}
72
- * @throws {@link Frameio.NotFoundError}
73
- * @throws {@link Frameio.ConflictError}
74
- * @throws {@link Frameio.UnprocessableEntityError}
75
- * @throws {@link Frameio.TooManyRequestsError}
76
- *
77
- * @example
78
- * await client.workspacePermissions.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
79
- * include_deactivated: true,
80
- * sort: "role_asc",
81
- * after: "<opaque_cursor>",
82
- * page_size: 10,
83
- * include_total_count: false
84
- * })
85
- */
86
- index(account_id_1, workspace_id_1) {
87
- return __awaiter(this, arguments, void 0, function* (account_id, workspace_id, _request = {}, requestOptions) {
88
- var _a, _b;
89
- const list = core.HttpResponsePromise.interceptFunction((_requestUrl) => __awaiter(this, void 0, void 0, function* () {
90
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
91
- const _authRequest = yield this._options.authProvider.getAuthRequest();
92
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
93
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
94
- url: _requestUrl,
95
- method: "GET",
96
- headers: _headers,
97
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
98
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
99
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
100
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
101
- logging: this._options.logging,
102
- });
103
- if (_response.ok) {
104
- return {
105
- data: _response.body,
106
- rawResponse: _response.rawResponse,
107
- };
108
- }
109
- if (_response.error.reason === "status-code") {
110
- switch (_response.error.statusCode) {
111
- case 400:
112
- throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
113
- case 401:
114
- throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
115
- case 403:
116
- throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
117
- case 404:
118
- throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
119
- case 409:
120
- throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
121
- case 422:
122
- throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
123
- case 429:
124
- throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
125
- default:
126
- throw new errors.FrameioError({
127
- statusCode: _response.error.statusCode,
128
- body: _response.error.body,
129
- rawResponse: _response.rawResponse,
130
- });
131
- }
132
- }
133
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/workspaces/{workspace_id}/users");
134
- }));
135
- const _baseUrl = (_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.FrameioEnvironment.Default;
136
- const dataWithRawResponse = yield list(core.url.join(_baseUrl, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces/${core.url.encodePathParam(workspace_id)}/users`)).withRawResponse();
137
- return new core.Page({
138
- response: dataWithRawResponse.data,
139
- rawResponse: dataWithRawResponse.rawResponse,
140
- hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.links.next) != null && (response === null || response === void 0 ? void 0 : response.links.next) !== "",
141
- getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
142
- loadPage: (response) => {
143
- return list(core.url.join(_baseUrl, response === null || response === void 0 ? void 0 : response.links.next));
144
- },
145
- });
146
- });
147
- }
148
61
  /**
149
62
  * Remove a user from a given workspace. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
150
63
  *
@@ -290,5 +203,92 @@ class WorkspacePermissionsClient {
290
203
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/workspaces/{workspace_id}/users/{user_id}");
291
204
  });
292
205
  }
206
+ /**
207
+ * List user roles for a given workspace. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
208
+ *
209
+ * @param {Frameio.FrameOrAdobeId} account_id
210
+ * @param {Frameio.Uuid} workspace_id
211
+ * @param {Frameio.WorkspacePermissionsIndexRequest} request
212
+ * @param {WorkspacePermissionsClient.RequestOptions} requestOptions - Request-specific configuration.
213
+ *
214
+ * @throws {@link Frameio.BadRequestError}
215
+ * @throws {@link Frameio.UnauthorizedError}
216
+ * @throws {@link Frameio.ForbiddenError}
217
+ * @throws {@link Frameio.NotFoundError}
218
+ * @throws {@link Frameio.ConflictError}
219
+ * @throws {@link Frameio.UnprocessableEntityError}
220
+ * @throws {@link Frameio.TooManyRequestsError}
221
+ *
222
+ * @example
223
+ * await client.workspacePermissions.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
224
+ * include_deactivated: true,
225
+ * sort: "role_asc",
226
+ * after: "<opaque_cursor>",
227
+ * page_size: 10,
228
+ * include_total_count: false
229
+ * })
230
+ */
231
+ index(account_id_1, workspace_id_1) {
232
+ return __awaiter(this, arguments, void 0, function* (account_id, workspace_id, _request = {}, requestOptions) {
233
+ var _a, _b;
234
+ const list = core.HttpResponsePromise.interceptFunction((_requestUrl) => __awaiter(this, void 0, void 0, function* () {
235
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
236
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
237
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
238
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
239
+ url: _requestUrl,
240
+ method: "GET",
241
+ headers: _headers,
242
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
243
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
244
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
245
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
246
+ logging: this._options.logging,
247
+ });
248
+ if (_response.ok) {
249
+ return {
250
+ data: _response.body,
251
+ rawResponse: _response.rawResponse,
252
+ };
253
+ }
254
+ if (_response.error.reason === "status-code") {
255
+ switch (_response.error.statusCode) {
256
+ case 400:
257
+ throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
258
+ case 401:
259
+ throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
260
+ case 403:
261
+ throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
262
+ case 404:
263
+ throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
264
+ case 409:
265
+ throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
266
+ case 422:
267
+ throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
268
+ case 429:
269
+ throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
270
+ default:
271
+ throw new errors.FrameioError({
272
+ statusCode: _response.error.statusCode,
273
+ body: _response.error.body,
274
+ rawResponse: _response.rawResponse,
275
+ });
276
+ }
277
+ }
278
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/workspaces/{workspace_id}/users");
279
+ }));
280
+ const _baseUrl = (_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.FrameioEnvironment.Default;
281
+ const dataWithRawResponse = yield list(core.url.join(_baseUrl, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces/${core.url.encodePathParam(workspace_id)}/users`)).withRawResponse();
282
+ return new core.Page({
283
+ response: dataWithRawResponse.data,
284
+ rawResponse: dataWithRawResponse.rawResponse,
285
+ hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.links.next) != null && (response === null || response === void 0 ? void 0 : response.links.next) !== "",
286
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
287
+ loadPage: (response) => {
288
+ return list(core.url.join(_baseUrl, response === null || response === void 0 ? void 0 : response.links.next));
289
+ },
290
+ });
291
+ });
292
+ }
293
293
  }
294
294
  exports.WorkspacePermissionsClient = WorkspacePermissionsClient;
@@ -14,11 +14,10 @@ export declare class WorkspacesClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<WorkspacesClient.Options>;
15
15
  constructor(options: WorkspacesClient.Options);
16
16
  /**
17
- * Show workspace details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
17
+ * List workspaces for a given account. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
18
18
  *
19
19
  * @param {Frameio.FrameOrAdobeId} account_id
20
- * @param {Frameio.Uuid} workspace_id
21
- * @param {Frameio.WorkspacesShowRequest} request
20
+ * @param {Frameio.WorkspacesIndexRequest} request
22
21
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
23
22
  *
24
23
  * @throws {@link Frameio.BadRequestError}
@@ -30,17 +29,20 @@ export declare class WorkspacesClient {
30
29
  * @throws {@link Frameio.TooManyRequestsError}
31
30
  *
32
31
  * @example
33
- * await client.workspaces.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
34
- * include: "creator"
32
+ * await client.workspaces.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
33
+ * include: "creator",
34
+ * sort: "name_asc",
35
+ * after: "<opaque_cursor>",
36
+ * page_size: 10,
37
+ * include_total_count: false
35
38
  * })
36
39
  */
37
- show(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, request?: Frameio.WorkspacesShowRequest, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceWithIncludesResponse>;
38
- private __show;
40
+ index(account_id: Frameio.FrameOrAdobeId, _request?: Frameio.WorkspacesIndexRequest, requestOptions?: WorkspacesClient.RequestOptions): Promise<core.Page<Frameio.WorkspaceWithIncludes, Frameio.WorkspacesWithIncludesResponse>>;
39
41
  /**
40
- * Delete workspace from account. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
42
+ * Create workspace from an account. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
41
43
  *
42
44
  * @param {Frameio.FrameOrAdobeId} account_id
43
- * @param {Frameio.Uuid} workspace_id
45
+ * @param {Frameio.WorkspaceParams} request
44
46
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
45
47
  *
46
48
  * @throws {@link Frameio.BadRequestError}
@@ -52,16 +54,20 @@ export declare class WorkspacesClient {
52
54
  * @throws {@link Frameio.TooManyRequestsError}
53
55
  *
54
56
  * @example
55
- * await client.workspaces.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
57
+ * await client.workspaces.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
58
+ * data: {
59
+ * name: "My Workspace"
60
+ * }
61
+ * })
56
62
  */
57
- delete(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<void>;
58
- private __delete;
63
+ create(account_id: Frameio.FrameOrAdobeId, request: Frameio.WorkspaceParams, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceResponse>;
64
+ private __create;
59
65
  /**
60
- * Update a workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
66
+ * Show workspace details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
61
67
  *
62
68
  * @param {Frameio.FrameOrAdobeId} account_id
63
69
  * @param {Frameio.Uuid} workspace_id
64
- * @param {Frameio.WorkspaceParams} request
70
+ * @param {Frameio.WorkspacesShowRequest} request
65
71
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
66
72
  *
67
73
  * @throws {@link Frameio.BadRequestError}
@@ -73,19 +79,17 @@ export declare class WorkspacesClient {
73
79
  * @throws {@link Frameio.TooManyRequestsError}
74
80
  *
75
81
  * @example
76
- * await client.workspaces.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
77
- * data: {
78
- * name: "My Workspace"
79
- * }
82
+ * await client.workspaces.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
83
+ * include: "creator"
80
84
  * })
81
85
  */
82
- update(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, request: Frameio.WorkspaceParams, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceResponse>;
83
- private __update;
86
+ show(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, request?: Frameio.WorkspacesShowRequest, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceWithIncludesResponse>;
87
+ private __show;
84
88
  /**
85
- * List workspaces for a given account. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
89
+ * Delete workspace from account. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
86
90
  *
87
91
  * @param {Frameio.FrameOrAdobeId} account_id
88
- * @param {Frameio.WorkspacesIndexRequest} request
92
+ * @param {Frameio.Uuid} workspace_id
89
93
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
90
94
  *
91
95
  * @throws {@link Frameio.BadRequestError}
@@ -97,19 +101,15 @@ export declare class WorkspacesClient {
97
101
  * @throws {@link Frameio.TooManyRequestsError}
98
102
  *
99
103
  * @example
100
- * await client.workspaces.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
101
- * include: "creator",
102
- * sort: "name_asc",
103
- * after: "<opaque_cursor>",
104
- * page_size: 10,
105
- * include_total_count: false
106
- * })
104
+ * await client.workspaces.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
107
105
  */
108
- index(account_id: Frameio.FrameOrAdobeId, _request?: Frameio.WorkspacesIndexRequest, requestOptions?: WorkspacesClient.RequestOptions): Promise<core.Page<Frameio.WorkspaceWithIncludes, Frameio.WorkspacesWithIncludesResponse>>;
106
+ delete(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<void>;
107
+ private __delete;
109
108
  /**
110
- * Create workspace from an account. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
109
+ * Update a workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
111
110
  *
112
111
  * @param {Frameio.FrameOrAdobeId} account_id
112
+ * @param {Frameio.Uuid} workspace_id
113
113
  * @param {Frameio.WorkspaceParams} request
114
114
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
115
115
  *
@@ -122,12 +122,12 @@ export declare class WorkspacesClient {
122
122
  * @throws {@link Frameio.TooManyRequestsError}
123
123
  *
124
124
  * @example
125
- * await client.workspaces.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
125
+ * await client.workspaces.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
126
126
  * data: {
127
127
  * name: "My Workspace"
128
128
  * }
129
129
  * })
130
130
  */
131
- create(account_id: Frameio.FrameOrAdobeId, request: Frameio.WorkspaceParams, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceResponse>;
132
- private __create;
131
+ update(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, request: Frameio.WorkspaceParams, requestOptions?: WorkspacesClient.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceResponse>;
132
+ private __update;
133
133
  }