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
@@ -43,10 +43,10 @@ export class Shares {
43
43
  }
44
44
  __show(accountId, shareId, 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)}/shares/${encodeURIComponent(shareId)}`),
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)}/shares/${encodeURIComponent(shareId)}`),
50
50
  method: "GET",
51
51
  headers: _headers,
52
52
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -121,10 +121,10 @@ export class Shares {
121
121
  }
122
122
  __delete(accountId, shareId, requestOptions) {
123
123
  return __awaiter(this, void 0, void 0, function* () {
124
- var _a, _b, _c;
124
+ var _a, _b, _c, _d;
125
125
  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);
126
- const _response = yield core.fetcher({
127
- 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)}/shares/${encodeURIComponent(shareId)}`),
126
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
127
+ 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)}/shares/${encodeURIComponent(shareId)}`),
128
128
  method: "DELETE",
129
129
  headers: _headers,
130
130
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -209,10 +209,10 @@ export class Shares {
209
209
  }
210
210
  __update(accountId, shareId, request, requestOptions) {
211
211
  return __awaiter(this, void 0, void 0, function* () {
212
- var _a, _b, _c;
212
+ var _a, _b, _c, _d;
213
213
  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);
214
- const _response = yield core.fetcher({
215
- 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)}/shares/${encodeURIComponent(shareId)}`),
214
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
215
+ 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)}/shares/${encodeURIComponent(shareId)}`),
216
216
  method: "PATCH",
217
217
  headers: _headers,
218
218
  contentType: "application/json",
@@ -295,7 +295,7 @@ export class Shares {
295
295
  }
296
296
  __listReviewers(accountId_1, shareId_1) {
297
297
  return __awaiter(this, arguments, void 0, function* (accountId, shareId, request = {}, requestOptions) {
298
- var _a, _b, _c;
298
+ var _a, _b, _c, _d;
299
299
  const { after, page_size: pageSize, include_total_count: includeTotalCount } = request;
300
300
  const _queryParams = {};
301
301
  if (after != null) {
@@ -308,8 +308,8 @@ export class Shares {
308
308
  _queryParams["include_total_count"] = includeTotalCount.toString();
309
309
  }
310
310
  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);
311
- const _response = yield core.fetcher({
312
- 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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
311
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
312
+ 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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
313
313
  method: "GET",
314
314
  headers: _headers,
315
315
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -397,10 +397,10 @@ export class Shares {
397
397
  }
398
398
  __addReviewers(accountId, shareId, request, requestOptions) {
399
399
  return __awaiter(this, void 0, void 0, function* () {
400
- var _a, _b, _c;
400
+ var _a, _b, _c, _d;
401
401
  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);
402
- const _response = yield core.fetcher({
403
- 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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
402
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
403
+ 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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
404
404
  method: "POST",
405
405
  headers: _headers,
406
406
  contentType: "application/json",
@@ -488,10 +488,10 @@ export class Shares {
488
488
  }
489
489
  __removeReviewers(accountId, shareId, request, requestOptions) {
490
490
  return __awaiter(this, void 0, void 0, function* () {
491
- var _a, _b, _c;
491
+ var _a, _b, _c, _d;
492
492
  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);
493
- const _response = yield core.fetcher({
494
- 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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
493
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
494
+ 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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
495
495
  method: "DELETE",
496
496
  headers: _headers,
497
497
  contentType: "application/json",
@@ -570,10 +570,10 @@ export class Shares {
570
570
  }
571
571
  __removeAsset(accountId, shareId, assetId, requestOptions) {
572
572
  return __awaiter(this, void 0, void 0, function* () {
573
- var _a, _b, _c;
573
+ var _a, _b, _c, _d;
574
574
  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);
575
- const _response = yield core.fetcher({
576
- 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)}/shares/${encodeURIComponent(shareId)}/assets/${encodeURIComponent(assetId)}`),
575
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
576
+ 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)}/shares/${encodeURIComponent(shareId)}/assets/${encodeURIComponent(assetId)}`),
577
577
  method: "DELETE",
578
578
  headers: _headers,
579
579
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -653,10 +653,10 @@ export class Shares {
653
653
  }
654
654
  __addAsset(accountId, shareId, request, requestOptions) {
655
655
  return __awaiter(this, void 0, void 0, function* () {
656
- var _a, _b, _c;
656
+ var _a, _b, _c, _d;
657
657
  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);
658
- const _response = yield core.fetcher({
659
- 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)}/shares/${encodeURIComponent(shareId)}/assets`),
658
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
659
+ 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)}/shares/${encodeURIComponent(shareId)}/assets`),
660
660
  method: "POST",
661
661
  headers: _headers,
662
662
  contentType: "application/json",
@@ -739,7 +739,7 @@ export class Shares {
739
739
  }
740
740
  __index(accountId_1, projectId_1) {
741
741
  return __awaiter(this, arguments, void 0, function* (accountId, projectId, request = {}, requestOptions) {
742
- var _a, _b, _c;
742
+ var _a, _b, _c, _d;
743
743
  const { after, page_size: pageSize, include_total_count: includeTotalCount } = request;
744
744
  const _queryParams = {};
745
745
  if (after != null) {
@@ -752,8 +752,8 @@ export class Shares {
752
752
  _queryParams["include_total_count"] = includeTotalCount.toString();
753
753
  }
754
754
  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);
755
- const _response = yield core.fetcher({
756
- 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)}/shares`),
755
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
756
+ 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)}/shares`),
757
757
  method: "GET",
758
758
  headers: _headers,
759
759
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -839,10 +839,10 @@ export class Shares {
839
839
  }
840
840
  __create(accountId, projectId, request, requestOptions) {
841
841
  return __awaiter(this, void 0, void 0, function* () {
842
- var _a, _b, _c;
842
+ var _a, _b, _c, _d;
843
843
  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);
844
- const _response = yield core.fetcher({
845
- 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)}/shares`),
844
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
845
+ 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)}/shares`),
846
846
  method: "POST",
847
847
  headers: _headers,
848
848
  contentType: "application/json",
@@ -9,6 +9,7 @@ export declare namespace Users {
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. */
@@ -41,10 +41,10 @@ export class Users {
41
41
  }
42
42
  __show(requestOptions) {
43
43
  return __awaiter(this, void 0, void 0, function* () {
44
- var _a, _b, _c;
44
+ var _a, _b, _c, _d;
45
45
  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);
46
- const _response = yield core.fetcher({
47
- 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/me"),
46
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
47
+ 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/me"),
48
48
  method: "GET",
49
49
  headers: _headers,
50
50
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -9,6 +9,7 @@ export declare namespace VersionStacks {
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. */
@@ -72,7 +72,7 @@ export class VersionStacks {
72
72
  }
73
73
  __index(accountId_1, versionStackId_1) {
74
74
  return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
75
- var _a, _b, _c;
75
+ var _a, _b, _c, _d;
76
76
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
77
77
  const _queryParams = {};
78
78
  if (include != null) {
@@ -88,8 +88,8 @@ export class VersionStacks {
88
88
  _queryParams["include_total_count"] = includeTotalCount.toString();
89
89
  }
90
90
  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);
91
- const _response = yield core.fetcher({
92
- 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)}/version_stacks/${encodeURIComponent(versionStackId)}/children`),
91
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
92
+ 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)}/version_stacks/${encodeURIComponent(versionStackId)}/children`),
93
93
  method: "GET",
94
94
  headers: _headers,
95
95
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -170,15 +170,15 @@ export class VersionStacks {
170
170
  }
171
171
  __show(accountId_1, versionStackId_1) {
172
172
  return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
173
- var _a, _b, _c;
173
+ var _a, _b, _c, _d;
174
174
  const { include } = request;
175
175
  const _queryParams = {};
176
176
  if (include != null) {
177
177
  _queryParams["include"] = include;
178
178
  }
179
179
  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);
180
- const _response = yield core.fetcher({
181
- 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)}/version_stacks/${encodeURIComponent(versionStackId)}`),
180
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
181
+ 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)}/version_stacks/${encodeURIComponent(versionStackId)}`),
182
182
  method: "GET",
183
183
  headers: _headers,
184
184
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -262,15 +262,15 @@ export class VersionStacks {
262
262
  }
263
263
  __copy(accountId_1, versionStackId_1) {
264
264
  return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
265
- var _a, _b, _c;
265
+ var _a, _b, _c, _d;
266
266
  const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
267
267
  const _queryParams = {};
268
268
  if (copyMetadata != null) {
269
269
  _queryParams["copy_metadata"] = copyMetadata.toString();
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)}/version_stacks/${encodeURIComponent(versionStackId)}/copy`),
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)}/version_stacks/${encodeURIComponent(versionStackId)}/copy`),
274
274
  method: "POST",
275
275
  headers: _headers,
276
276
  contentType: "application/json",
@@ -354,7 +354,7 @@ export class VersionStacks {
354
354
  }
355
355
  __list(accountId_1, folderId_1) {
356
356
  return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
357
- var _a, _b, _c;
357
+ var _a, _b, _c, _d;
358
358
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
359
359
  const _queryParams = {};
360
360
  if (include != null) {
@@ -370,8 +370,8 @@ export class VersionStacks {
370
370
  _queryParams["include_total_count"] = includeTotalCount.toString();
371
371
  }
372
372
  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);
373
- const _response = yield core.fetcher({
374
- 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)}/version_stacks`),
373
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
374
+ 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)}/version_stacks`),
375
375
  method: "GET",
376
376
  headers: _headers,
377
377
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -454,10 +454,10 @@ export class VersionStacks {
454
454
  }
455
455
  __create(accountId, folderId, request, requestOptions) {
456
456
  return __awaiter(this, void 0, void 0, function* () {
457
- var _a, _b, _c;
457
+ var _a, _b, _c, _d;
458
458
  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);
459
- const _response = yield core.fetcher({
460
- 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)}/version_stacks`),
459
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
460
+ 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)}/version_stacks`),
461
461
  method: "POST",
462
462
  headers: _headers,
463
463
  contentType: "application/json",
@@ -543,10 +543,10 @@ export class VersionStacks {
543
543
  }
544
544
  __move(accountId, versionStackId, request, requestOptions) {
545
545
  return __awaiter(this, void 0, void 0, function* () {
546
- var _a, _b, _c;
546
+ var _a, _b, _c, _d;
547
547
  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);
548
- const _response = yield core.fetcher({
549
- 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)}/version_stacks/${encodeURIComponent(versionStackId)}/move`),
548
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
549
+ 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)}/version_stacks/${encodeURIComponent(versionStackId)}/move`),
550
550
  method: "PATCH",
551
551
  headers: _headers,
552
552
  contentType: "application/json",
@@ -9,6 +9,7 @@ export declare namespace Webhooks {
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 Webhooks {
49
49
  }
50
50
  __index(accountId_1, workspaceId_1) {
51
51
  return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, request = {}, requestOptions) {
52
- var _a, _b, _c;
52
+ var _a, _b, _c, _d;
53
53
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
54
54
  const _queryParams = {};
55
55
  if (include != null) {
@@ -65,8 +65,8 @@ export class Webhooks {
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)}/workspaces/${encodeURIComponent(workspaceId)}/webhooks`),
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)}/workspaces/${encodeURIComponent(workspaceId)}/webhooks`),
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),
@@ -151,10 +151,10 @@ export class Webhooks {
151
151
  }
152
152
  __create(accountId, workspaceId, request, requestOptions) {
153
153
  return __awaiter(this, void 0, void 0, function* () {
154
- var _a, _b, _c;
154
+ var _a, _b, _c, _d;
155
155
  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);
156
- const _response = yield core.fetcher({
157
- 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)}/webhooks`),
156
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
157
+ 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)}/webhooks`),
158
158
  method: "POST",
159
159
  headers: _headers,
160
160
  contentType: "application/json",
@@ -235,15 +235,15 @@ export class Webhooks {
235
235
  }
236
236
  __show(accountId_1, webhookId_1) {
237
237
  return __awaiter(this, arguments, void 0, function* (accountId, webhookId, request = {}, requestOptions) {
238
- var _a, _b, _c;
238
+ var _a, _b, _c, _d;
239
239
  const { include } = request;
240
240
  const _queryParams = {};
241
241
  if (include != null) {
242
242
  _queryParams["include"] = include;
243
243
  }
244
244
  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);
245
- const _response = yield core.fetcher({
246
- 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)}/webhooks/${encodeURIComponent(webhookId)}`),
245
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
246
+ 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)}/webhooks/${encodeURIComponent(webhookId)}`),
247
247
  method: "GET",
248
248
  headers: _headers,
249
249
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -318,10 +318,10 @@ export class Webhooks {
318
318
  }
319
319
  __delete(accountId, webhookId, requestOptions) {
320
320
  return __awaiter(this, void 0, void 0, function* () {
321
- var _a, _b, _c;
321
+ var _a, _b, _c, _d;
322
322
  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);
323
- const _response = yield core.fetcher({
324
- 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)}/webhooks/${encodeURIComponent(webhookId)}`),
323
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
324
+ 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)}/webhooks/${encodeURIComponent(webhookId)}`),
325
325
  method: "DELETE",
326
326
  headers: _headers,
327
327
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -404,10 +404,10 @@ export class Webhooks {
404
404
  }
405
405
  __update(accountId, webhookId, request, requestOptions) {
406
406
  return __awaiter(this, void 0, void 0, function* () {
407
- var _a, _b, _c;
407
+ var _a, _b, _c, _d;
408
408
  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);
409
- const _response = yield core.fetcher({
410
- 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)}/webhooks/${encodeURIComponent(webhookId)}`),
409
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
410
+ 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)}/webhooks/${encodeURIComponent(webhookId)}`),
411
411
  method: "PATCH",
412
412
  headers: _headers,
413
413
  contentType: "application/json",
@@ -9,6 +9,7 @@ export declare namespace WorkspacePermissions {
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 WorkspacePermissions {
49
49
  }
50
50
  __index(accountId_1, workspaceId_1) {
51
51
  return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, 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 WorkspacePermissions {
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)}/workspaces/${encodeURIComponent(workspaceId)}/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)}/workspaces/${encodeURIComponent(workspaceId)}/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 WorkspacePermissions {
142
142
  }
143
143
  __workspaceUserRolesDelete(accountId, workspaceId, 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)}/workspaces/${encodeURIComponent(workspaceId)}/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)}/workspaces/${encodeURIComponent(workspaceId)}/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 WorkspacePermissions {
227
227
  }
228
228
  __workspaceUserRolesUpdate(accountId, workspaceId, 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)}/workspaces/${encodeURIComponent(workspaceId)}/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)}/workspaces/${encodeURIComponent(workspaceId)}/users/${encodeURIComponent(userId)}`),
234
234
  method: "PATCH",
235
235
  headers: _headers,
236
236
  contentType: "application/json",
@@ -9,6 +9,7 @@ export declare namespace Workspaces {
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 Workspaces {
46
46
  }
47
47
  __show(accountId_1, workspaceId_1) {
48
48
  return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, 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)}/workspaces/${encodeURIComponent(workspaceId)}`),
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)}/workspaces/${encodeURIComponent(workspaceId)}`),
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),
@@ -132,10 +132,10 @@ export class Workspaces {
132
132
  }
133
133
  __delete(accountId, workspaceId, requestOptions) {
134
134
  return __awaiter(this, void 0, void 0, function* () {
135
- var _a, _b, _c;
135
+ var _a, _b, _c, _d;
136
136
  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);
137
- const _response = yield core.fetcher({
138
- 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)}`),
137
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
138
+ 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)}`),
139
139
  method: "DELETE",
140
140
  headers: _headers,
141
141
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -215,10 +215,10 @@ export class Workspaces {
215
215
  }
216
216
  __update(accountId, workspaceId, request, requestOptions) {
217
217
  return __awaiter(this, void 0, void 0, function* () {
218
- var _a, _b, _c;
218
+ var _a, _b, _c, _d;
219
219
  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);
220
- const _response = yield core.fetcher({
221
- 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)}`),
220
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
221
+ 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)}`),
222
222
  method: "PATCH",
223
223
  headers: _headers,
224
224
  contentType: "application/json",
@@ -301,7 +301,7 @@ export class Workspaces {
301
301
  }
302
302
  __index(accountId_1) {
303
303
  return __awaiter(this, arguments, void 0, function* (accountId, 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 Workspaces {
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`),
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`),
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),
@@ -400,10 +400,10 @@ export class Workspaces {
400
400
  }
401
401
  __create(accountId, request, requestOptions) {
402
402
  return __awaiter(this, void 0, void 0, function* () {
403
- var _a, _b, _c;
403
+ var _a, _b, _c, _d;
404
404
  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);
405
- const _response = yield core.fetcher({
406
- 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`),
405
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
406
+ 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`),
407
407
  method: "POST",
408
408
  headers: _headers,
409
409
  contentType: "application/json",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.3";
1
+ export declare const SDK_VERSION = "1.3.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.2.3";
1
+ export const SDK_VERSION = "1.3.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frameio",
3
- "version": "1.2.3",
3
+ "version": "1.3.0",
4
4
  "private": false,
5
5
  "repository": "github:Frameio/typescript-sdk",
6
6
  "type": "commonjs",