frameio 1.2.3 → 1.3.0

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 (69) hide show
  1. package/dist/cjs/Client.d.ts +1 -0
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +1 -0
  4. package/dist/cjs/api/resources/accountPermissions/client/Client.js +3 -3
  5. package/dist/cjs/api/resources/accounts/client/Client.d.ts +1 -0
  6. package/dist/cjs/api/resources/accounts/client/Client.js +6 -6
  7. package/dist/cjs/api/resources/comments/client/Client.d.ts +1 -0
  8. package/dist/cjs/api/resources/comments/client/Client.js +15 -15
  9. package/dist/cjs/api/resources/files/client/Client.d.ts +1 -0
  10. package/dist/cjs/api/resources/files/client/Client.js +30 -30
  11. package/dist/cjs/api/resources/folders/client/Client.d.ts +1 -0
  12. package/dist/cjs/api/resources/folders/client/Client.js +24 -24
  13. package/dist/cjs/api/resources/metadata/client/Client.d.ts +1 -0
  14. package/dist/cjs/api/resources/metadata/client/Client.js +6 -6
  15. package/dist/cjs/api/resources/metadataFields/client/Client.d.ts +1 -0
  16. package/dist/cjs/api/resources/metadataFields/client/Client.js +12 -12
  17. package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +1 -0
  18. package/dist/cjs/api/resources/projectPermissions/client/Client.js +9 -9
  19. package/dist/cjs/api/resources/projects/client/Client.d.ts +1 -0
  20. package/dist/cjs/api/resources/projects/client/Client.js +15 -15
  21. package/dist/cjs/api/resources/shares/client/Client.d.ts +1 -0
  22. package/dist/cjs/api/resources/shares/client/Client.js +30 -30
  23. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -0
  24. package/dist/cjs/api/resources/users/client/Client.js +3 -3
  25. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +1 -0
  26. package/dist/cjs/api/resources/versionStacks/client/Client.js +18 -18
  27. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -0
  28. package/dist/cjs/api/resources/webhooks/client/Client.js +15 -15
  29. package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +1 -0
  30. package/dist/cjs/api/resources/workspacePermissions/client/Client.js +9 -9
  31. package/dist/cjs/api/resources/workspaces/client/Client.d.ts +1 -0
  32. package/dist/cjs/api/resources/workspaces/client/Client.js +15 -15
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/Client.d.mts +1 -0
  36. package/dist/esm/Client.mjs +2 -2
  37. package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +1 -0
  38. package/dist/esm/api/resources/accountPermissions/client/Client.mjs +3 -3
  39. package/dist/esm/api/resources/accounts/client/Client.d.mts +1 -0
  40. package/dist/esm/api/resources/accounts/client/Client.mjs +6 -6
  41. package/dist/esm/api/resources/comments/client/Client.d.mts +1 -0
  42. package/dist/esm/api/resources/comments/client/Client.mjs +15 -15
  43. package/dist/esm/api/resources/files/client/Client.d.mts +1 -0
  44. package/dist/esm/api/resources/files/client/Client.mjs +30 -30
  45. package/dist/esm/api/resources/folders/client/Client.d.mts +1 -0
  46. package/dist/esm/api/resources/folders/client/Client.mjs +24 -24
  47. package/dist/esm/api/resources/metadata/client/Client.d.mts +1 -0
  48. package/dist/esm/api/resources/metadata/client/Client.mjs +6 -6
  49. package/dist/esm/api/resources/metadataFields/client/Client.d.mts +1 -0
  50. package/dist/esm/api/resources/metadataFields/client/Client.mjs +12 -12
  51. package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +1 -0
  52. package/dist/esm/api/resources/projectPermissions/client/Client.mjs +9 -9
  53. package/dist/esm/api/resources/projects/client/Client.d.mts +1 -0
  54. package/dist/esm/api/resources/projects/client/Client.mjs +15 -15
  55. package/dist/esm/api/resources/shares/client/Client.d.mts +1 -0
  56. package/dist/esm/api/resources/shares/client/Client.mjs +30 -30
  57. package/dist/esm/api/resources/users/client/Client.d.mts +1 -0
  58. package/dist/esm/api/resources/users/client/Client.mjs +3 -3
  59. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +1 -0
  60. package/dist/esm/api/resources/versionStacks/client/Client.mjs +18 -18
  61. package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -0
  62. package/dist/esm/api/resources/webhooks/client/Client.mjs +15 -15
  63. package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +1 -0
  64. package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +9 -9
  65. package/dist/esm/api/resources/workspaces/client/Client.d.mts +1 -0
  66. package/dist/esm/api/resources/workspaces/client/Client.mjs +15 -15
  67. package/dist/esm/version.d.mts +1 -1
  68. package/dist/esm/version.mjs +1 -1
  69. package/package.json +1 -1
@@ -61,7 +61,7 @@ export class Files {
61
61
  }
62
62
  __list(accountId_1, folderId_1) {
63
63
  return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
64
- var _a, _b, _c;
64
+ var _a, _b, _c, _d;
65
65
  const { include, sort, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
66
66
  const _queryParams = {};
67
67
  if (include != null) {
@@ -80,8 +80,8 @@ export class Files {
80
80
  _queryParams["include_total_count"] = includeTotalCount.toString();
81
81
  }
82
82
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
83
- const _response = yield core.fetcher({
84
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files`),
83
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
84
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files`),
85
85
  method: "GET",
86
86
  headers: _headers,
87
87
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -166,10 +166,10 @@ export class Files {
166
166
  }
167
167
  __create(accountId, folderId, request, requestOptions) {
168
168
  return __awaiter(this, void 0, void 0, function* () {
169
- var _a, _b, _c;
169
+ var _a, _b, _c, _d;
170
170
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
171
- const _response = yield core.fetcher({
172
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files`),
171
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
172
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files`),
173
173
  method: "POST",
174
174
  headers: _headers,
175
175
  contentType: "application/json",
@@ -262,15 +262,15 @@ export class Files {
262
262
  }
263
263
  __show(accountId_1, fileId_1) {
264
264
  return __awaiter(this, arguments, void 0, function* (accountId, fileId, request = {}, requestOptions) {
265
- var _a, _b, _c;
265
+ var _a, _b, _c, _d;
266
266
  const { include } = request;
267
267
  const _queryParams = {};
268
268
  if (include != null) {
269
269
  _queryParams["include"] = include;
270
270
  }
271
271
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
272
- const _response = yield core.fetcher({
273
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
272
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
273
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
274
274
  method: "GET",
275
275
  headers: _headers,
276
276
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -345,10 +345,10 @@ export class Files {
345
345
  }
346
346
  __delete(accountId, fileId, requestOptions) {
347
347
  return __awaiter(this, void 0, void 0, function* () {
348
- var _a, _b, _c;
348
+ var _a, _b, _c, _d;
349
349
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
350
- const _response = yield core.fetcher({
351
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
350
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
351
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
352
352
  method: "DELETE",
353
353
  headers: _headers,
354
354
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -428,10 +428,10 @@ export class Files {
428
428
  }
429
429
  __update(accountId, fileId, request, requestOptions) {
430
430
  return __awaiter(this, void 0, void 0, function* () {
431
- var _a, _b, _c;
431
+ var _a, _b, _c, _d;
432
432
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
433
- const _response = yield core.fetcher({
434
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
433
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
434
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}`),
435
435
  method: "PATCH",
436
436
  headers: _headers,
437
437
  contentType: "application/json",
@@ -516,7 +516,7 @@ export class Files {
516
516
  }
517
517
  __copy(accountId_1, fileId_1) {
518
518
  return __awaiter(this, arguments, void 0, function* (accountId, fileId, request = {}, requestOptions) {
519
- var _a, _b, _c;
519
+ var _a, _b, _c, _d;
520
520
  const { copy_metadata: copyMetadata, copy_comments: copyComments } = request, _body = __rest(request, ["copy_metadata", "copy_comments"]);
521
521
  const _queryParams = {};
522
522
  if (copyMetadata != null) {
@@ -526,8 +526,8 @@ export class Files {
526
526
  _queryParams["copy_comments"] = copyComments;
527
527
  }
528
528
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
529
- const _response = yield core.fetcher({
530
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/copy`),
529
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
530
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/copy`),
531
531
  method: "POST",
532
532
  headers: _headers,
533
533
  contentType: "application/json",
@@ -611,10 +611,10 @@ export class Files {
611
611
  }
612
612
  __createRemoteUpload(accountId, folderId, request, requestOptions) {
613
613
  return __awaiter(this, void 0, void 0, function* () {
614
- var _a, _b, _c;
614
+ var _a, _b, _c, _d;
615
615
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
616
- const _response = yield core.fetcher({
617
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files/remote_upload`),
616
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
617
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files/remote_upload`),
618
618
  method: "POST",
619
619
  headers: _headers,
620
620
  contentType: "application/json",
@@ -697,10 +697,10 @@ export class Files {
697
697
  }
698
698
  __move(accountId, fileId, request, requestOptions) {
699
699
  return __awaiter(this, void 0, void 0, function* () {
700
- var _a, _b, _c;
700
+ var _a, _b, _c, _d;
701
701
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
702
- const _response = yield core.fetcher({
703
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/move`),
702
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
703
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/move`),
704
704
  method: "PATCH",
705
705
  headers: _headers,
706
706
  contentType: "application/json",
@@ -784,10 +784,10 @@ export class Files {
784
784
  }
785
785
  __createLocalUpload(accountId, folderId, request, requestOptions) {
786
786
  return __awaiter(this, void 0, void 0, function* () {
787
- var _a, _b, _c;
787
+ var _a, _b, _c, _d;
788
788
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
789
- const _response = yield core.fetcher({
790
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files/local_upload`),
789
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
790
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/files/local_upload`),
791
791
  method: "POST",
792
792
  headers: _headers,
793
793
  contentType: "application/json",
@@ -865,10 +865,10 @@ export class Files {
865
865
  }
866
866
  __showFileUploadStatus(accountId, fileId, requestOptions) {
867
867
  return __awaiter(this, void 0, void 0, function* () {
868
- var _a, _b, _c;
868
+ var _a, _b, _c, _d;
869
869
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
870
- const _response = yield core.fetcher({
871
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/status`),
870
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
871
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/status`),
872
872
  method: "GET",
873
873
  headers: _headers,
874
874
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -9,6 +9,7 @@ export declare namespace Folders {
9
9
  token: core.Supplier<core.BearerToken>;
10
10
  /** Additional headers to include in requests. */
11
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
12
+ fetcher?: core.FetchFunction;
12
13
  }
13
14
  interface RequestOptions {
14
15
  /** The maximum time to wait for a response in seconds. */
@@ -57,15 +57,15 @@ export class Folders {
57
57
  }
58
58
  __show(accountId_1, folderId_1) {
59
59
  return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
60
- var _a, _b, _c;
60
+ var _a, _b, _c, _d;
61
61
  const { include } = request;
62
62
  const _queryParams = {};
63
63
  if (include != null) {
64
64
  _queryParams["include"] = include;
65
65
  }
66
66
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
67
- const _response = yield core.fetcher({
68
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
67
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
68
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
69
69
  method: "GET",
70
70
  headers: _headers,
71
71
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -140,10 +140,10 @@ export class Folders {
140
140
  }
141
141
  __delete(accountId, folderId, requestOptions) {
142
142
  return __awaiter(this, void 0, void 0, function* () {
143
- var _a, _b, _c;
143
+ var _a, _b, _c, _d;
144
144
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
145
- const _response = yield core.fetcher({
146
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
145
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
146
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
147
147
  method: "DELETE",
148
148
  headers: _headers,
149
149
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -223,10 +223,10 @@ export class Folders {
223
223
  }
224
224
  __update(accountId, folderId, request, requestOptions) {
225
225
  return __awaiter(this, void 0, void 0, function* () {
226
- var _a, _b, _c;
226
+ var _a, _b, _c, _d;
227
227
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
228
- const _response = yield core.fetcher({
229
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
228
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
229
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}`),
230
230
  method: "PATCH",
231
231
  headers: _headers,
232
232
  contentType: "application/json",
@@ -323,7 +323,7 @@ export class Folders {
323
323
  }
324
324
  __index(accountId_1, folderId_1) {
325
325
  return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
326
- var _a, _b, _c;
326
+ var _a, _b, _c, _d;
327
327
  const { include, type: type_, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
328
328
  const _queryParams = {};
329
329
  if (include != null) {
@@ -342,8 +342,8 @@ export class Folders {
342
342
  _queryParams["include_total_count"] = includeTotalCount.toString();
343
343
  }
344
344
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
345
- const _response = yield core.fetcher({
346
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/children`),
345
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
346
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/children`),
347
347
  method: "GET",
348
348
  headers: _headers,
349
349
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -427,15 +427,15 @@ export class Folders {
427
427
  }
428
428
  __copy(accountId_1, folderId_1) {
429
429
  return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
430
- var _a, _b, _c;
430
+ var _a, _b, _c, _d;
431
431
  const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
432
432
  const _queryParams = {};
433
433
  if (copyMetadata != null) {
434
434
  _queryParams["copy_metadata"] = copyMetadata.toString();
435
435
  }
436
436
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
437
- const _response = yield core.fetcher({
438
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/copy`),
437
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
438
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/copy`),
439
439
  method: "POST",
440
440
  headers: _headers,
441
441
  contentType: "application/json",
@@ -519,7 +519,7 @@ export class Folders {
519
519
  }
520
520
  __list(accountId_1, folderId_1) {
521
521
  return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
522
- var _a, _b, _c;
522
+ var _a, _b, _c, _d;
523
523
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
524
524
  const _queryParams = {};
525
525
  if (include != null) {
@@ -535,8 +535,8 @@ export class Folders {
535
535
  _queryParams["include_total_count"] = includeTotalCount.toString();
536
536
  }
537
537
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
538
- const _response = yield core.fetcher({
539
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/folders`),
538
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
539
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/folders`),
540
540
  method: "GET",
541
541
  headers: _headers,
542
542
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -616,10 +616,10 @@ export class Folders {
616
616
  }
617
617
  __create(accountId, folderId, request, requestOptions) {
618
618
  return __awaiter(this, void 0, void 0, function* () {
619
- var _a, _b, _c;
619
+ var _a, _b, _c, _d;
620
620
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
621
- const _response = yield core.fetcher({
622
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/folders`),
621
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
622
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/folders`),
623
623
  method: "POST",
624
624
  headers: _headers,
625
625
  contentType: "application/json",
@@ -702,10 +702,10 @@ export class Folders {
702
702
  }
703
703
  __move(accountId, folderId, request, requestOptions) {
704
704
  return __awaiter(this, void 0, void 0, function* () {
705
- var _a, _b, _c;
705
+ var _a, _b, _c, _d;
706
706
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
707
- const _response = yield core.fetcher({
708
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/move`),
707
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
708
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/folders/${encodeURIComponent(folderId)}/move`),
709
709
  method: "PATCH",
710
710
  headers: _headers,
711
711
  contentType: "application/json",
@@ -9,6 +9,7 @@ export declare namespace Metadata {
9
9
  token: core.Supplier<core.BearerToken>;
10
10
  /** Additional headers to include in requests. */
11
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
12
+ fetcher?: core.FetchFunction;
12
13
  }
13
14
  interface RequestOptions {
14
15
  /** The maximum time to wait for a response in seconds. */
@@ -61,10 +61,10 @@ export class Metadata {
61
61
  }
62
62
  __bulkUpdate(accountId, projectId, request, requestOptions) {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
- var _a, _b, _c;
64
+ var _a, _b, _c, _d;
65
65
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
66
- const _response = yield core.fetcher({
67
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/metadata/values`),
66
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
67
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/metadata/values`),
68
68
  method: "PATCH",
69
69
  headers: _headers,
70
70
  contentType: "application/json",
@@ -145,15 +145,15 @@ export class Metadata {
145
145
  }
146
146
  __show(accountId_1, fileId_1) {
147
147
  return __awaiter(this, arguments, void 0, function* (accountId, fileId, request = {}, requestOptions) {
148
- var _a, _b, _c;
148
+ var _a, _b, _c, _d;
149
149
  const { show_null: showNull } = request;
150
150
  const _queryParams = {};
151
151
  if (showNull != null) {
152
152
  _queryParams["show_null"] = showNull.toString();
153
153
  }
154
154
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
155
- const _response = yield core.fetcher({
156
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/metadata`),
155
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
156
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/files/${encodeURIComponent(fileId)}/metadata`),
157
157
  method: "GET",
158
158
  headers: _headers,
159
159
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -9,6 +9,7 @@ export declare namespace MetadataFields {
9
9
  token: core.Supplier<core.BearerToken>;
10
10
  /** Additional headers to include in requests. */
11
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
12
+ fetcher?: core.FetchFunction;
12
13
  }
13
14
  interface RequestOptions {
14
15
  /** The maximum time to wait for a response in seconds. */
@@ -43,10 +43,10 @@ export class MetadataFields {
43
43
  }
44
44
  __metadataFieldDefinitionsDelete(accountId, fieldDefinitionId, requestOptions) {
45
45
  return __awaiter(this, void 0, void 0, function* () {
46
- var _a, _b, _c;
46
+ var _a, _b, _c, _d;
47
47
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
48
- const _response = yield core.fetcher({
49
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/metadata/field_definitions/${encodeURIComponent(fieldDefinitionId)}`),
48
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
49
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/metadata/field_definitions/${encodeURIComponent(fieldDefinitionId)}`),
50
50
  method: "DELETE",
51
51
  headers: _headers,
52
52
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -135,10 +135,10 @@ export class MetadataFields {
135
135
  }
136
136
  __metadataFieldDefinitionsUpdate(accountId_1, fieldDefinitionId_1) {
137
137
  return __awaiter(this, arguments, void 0, function* (accountId, fieldDefinitionId, request = {}, requestOptions) {
138
- var _a, _b, _c;
138
+ var _a, _b, _c, _d;
139
139
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
140
- const _response = yield core.fetcher({
141
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/metadata/field_definitions/${encodeURIComponent(fieldDefinitionId)}`),
140
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
141
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/metadata/field_definitions/${encodeURIComponent(fieldDefinitionId)}`),
142
142
  method: "PATCH",
143
143
  headers: _headers,
144
144
  contentType: "application/json",
@@ -221,7 +221,7 @@ export class MetadataFields {
221
221
  }
222
222
  __metadataFieldDefinitionsIndex(accountId_1) {
223
223
  return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
224
- var _a, _b, _c;
224
+ var _a, _b, _c, _d;
225
225
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
226
226
  const _queryParams = {};
227
227
  if (include != null) {
@@ -237,8 +237,8 @@ export class MetadataFields {
237
237
  _queryParams["include_total_count"] = includeTotalCount.toString();
238
238
  }
239
239
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
240
- const _response = yield core.fetcher({
241
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/metadata/field_definitions`),
240
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
241
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/metadata/field_definitions`),
242
242
  method: "GET",
243
243
  headers: _headers,
244
244
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -329,10 +329,10 @@ export class MetadataFields {
329
329
  }
330
330
  __metadataFieldDefinitionsCreate(accountId_1) {
331
331
  return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
332
- var _a, _b, _c;
332
+ var _a, _b, _c, _d;
333
333
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
334
- const _response = yield core.fetcher({
335
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/metadata/field_definitions`),
334
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
335
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/metadata/field_definitions`),
336
336
  method: "POST",
337
337
  headers: _headers,
338
338
  contentType: "application/json",
@@ -9,6 +9,7 @@ export declare namespace ProjectPermissions {
9
9
  token: core.Supplier<core.BearerToken>;
10
10
  /** Additional headers to include in requests. */
11
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
12
+ fetcher?: core.FetchFunction;
12
13
  }
13
14
  interface RequestOptions {
14
15
  /** The maximum time to wait for a response in seconds. */
@@ -49,7 +49,7 @@ export class ProjectPermissions {
49
49
  }
50
50
  __index(accountId_1, projectId_1) {
51
51
  return __awaiter(this, arguments, void 0, function* (accountId, projectId, request = {}, requestOptions) {
52
- var _a, _b, _c;
52
+ var _a, _b, _c, _d;
53
53
  const { include_deactivated: includeDeactivated, after, page_size: pageSize, include_total_count: includeTotalCount, } = request;
54
54
  const _queryParams = {};
55
55
  if (includeDeactivated != null) {
@@ -65,8 +65,8 @@ export class ProjectPermissions {
65
65
  _queryParams["include_total_count"] = includeTotalCount.toString();
66
66
  }
67
67
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
68
- const _response = yield core.fetcher({
69
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/users`),
68
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
69
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/users`),
70
70
  method: "GET",
71
71
  headers: _headers,
72
72
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -142,10 +142,10 @@ export class ProjectPermissions {
142
142
  }
143
143
  __delete(accountId, projectId, userId, requestOptions) {
144
144
  return __awaiter(this, void 0, void 0, function* () {
145
- var _a, _b, _c;
145
+ var _a, _b, _c, _d;
146
146
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
147
- const _response = yield core.fetcher({
148
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/users/${encodeURIComponent(userId)}`),
147
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
148
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/users/${encodeURIComponent(userId)}`),
149
149
  method: "DELETE",
150
150
  headers: _headers,
151
151
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -227,10 +227,10 @@ export class ProjectPermissions {
227
227
  }
228
228
  __projectUserRolesUpdate(accountId, projectId, userId, request, requestOptions) {
229
229
  return __awaiter(this, void 0, void 0, function* () {
230
- var _a, _b, _c;
230
+ var _a, _b, _c, _d;
231
231
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
232
- const _response = yield core.fetcher({
233
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/users/${encodeURIComponent(userId)}`),
232
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
233
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}/users/${encodeURIComponent(userId)}`),
234
234
  method: "PATCH",
235
235
  headers: _headers,
236
236
  contentType: "application/json",
@@ -9,6 +9,7 @@ export declare namespace Projects {
9
9
  token: core.Supplier<core.BearerToken>;
10
10
  /** Additional headers to include in requests. */
11
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
12
+ fetcher?: core.FetchFunction;
12
13
  }
13
14
  interface RequestOptions {
14
15
  /** The maximum time to wait for a response in seconds. */
@@ -46,15 +46,15 @@ export class Projects {
46
46
  }
47
47
  __show(accountId_1, projectId_1) {
48
48
  return __awaiter(this, arguments, void 0, function* (accountId, projectId, request = {}, requestOptions) {
49
- var _a, _b, _c;
49
+ var _a, _b, _c, _d;
50
50
  const { include } = request;
51
51
  const _queryParams = {};
52
52
  if (include != null) {
53
53
  _queryParams["include"] = include;
54
54
  }
55
55
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
56
- const _response = yield core.fetcher({
57
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}`),
56
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
57
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}`),
58
58
  method: "GET",
59
59
  headers: _headers,
60
60
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -129,10 +129,10 @@ export class Projects {
129
129
  }
130
130
  __delete(accountId, projectId, requestOptions) {
131
131
  return __awaiter(this, void 0, void 0, function* () {
132
- var _a, _b, _c;
132
+ var _a, _b, _c, _d;
133
133
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
134
- const _response = yield core.fetcher({
135
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}`),
134
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
135
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}`),
136
136
  method: "DELETE",
137
137
  headers: _headers,
138
138
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -214,10 +214,10 @@ export class Projects {
214
214
  }
215
215
  __update(accountId, projectId, request, requestOptions) {
216
216
  return __awaiter(this, void 0, void 0, function* () {
217
- var _a, _b, _c;
217
+ var _a, _b, _c, _d;
218
218
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
219
- const _response = yield core.fetcher({
220
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}`),
219
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
220
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/projects/${encodeURIComponent(projectId)}`),
221
221
  method: "PATCH",
222
222
  headers: _headers,
223
223
  contentType: "application/json",
@@ -301,7 +301,7 @@ export class Projects {
301
301
  }
302
302
  __index(accountId_1, workspaceId_1) {
303
303
  return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, request = {}, requestOptions) {
304
- var _a, _b, _c;
304
+ var _a, _b, _c, _d;
305
305
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
306
306
  const _queryParams = {};
307
307
  if (include != null) {
@@ -317,8 +317,8 @@ export class Projects {
317
317
  _queryParams["include_total_count"] = includeTotalCount.toString();
318
318
  }
319
319
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
320
- const _response = yield core.fetcher({
321
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/workspaces/${encodeURIComponent(workspaceId)}/projects`),
320
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
321
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/workspaces/${encodeURIComponent(workspaceId)}/projects`),
322
322
  method: "GET",
323
323
  headers: _headers,
324
324
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -399,10 +399,10 @@ export class Projects {
399
399
  }
400
400
  __create(accountId, workspaceId, request, requestOptions) {
401
401
  return __awaiter(this, void 0, void 0, function* () {
402
- var _a, _b, _c;
402
+ var _a, _b, _c, _d;
403
403
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
404
- const _response = yield core.fetcher({
405
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/workspaces/${encodeURIComponent(workspaceId)}/projects`),
404
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
405
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${encodeURIComponent(accountId)}/workspaces/${encodeURIComponent(workspaceId)}/projects`),
406
406
  method: "POST",
407
407
  headers: _headers,
408
408
  contentType: "application/json",
@@ -9,6 +9,7 @@ export declare namespace Shares {
9
9
  token: core.Supplier<core.BearerToken>;
10
10
  /** Additional headers to include in requests. */
11
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
12
+ fetcher?: core.FetchFunction;
12
13
  }
13
14
  interface RequestOptions {
14
15
  /** The maximum time to wait for a response in seconds. */