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
@@ -79,10 +79,10 @@ class MetadataFields {
79
79
  }
80
80
  __metadataFieldDefinitionsDelete(accountId, fieldDefinitionId, requestOptions) {
81
81
  return __awaiter(this, void 0, void 0, function* () {
82
- var _a, _b, _c;
82
+ var _a, _b, _c, _d;
83
83
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
84
- const _response = yield core.fetcher({
85
- 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)}`),
84
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
85
+ 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)}`),
86
86
  method: "DELETE",
87
87
  headers: _headers,
88
88
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -171,10 +171,10 @@ class MetadataFields {
171
171
  }
172
172
  __metadataFieldDefinitionsUpdate(accountId_1, fieldDefinitionId_1) {
173
173
  return __awaiter(this, arguments, void 0, function* (accountId, fieldDefinitionId, request = {}, requestOptions) {
174
- var _a, _b, _c;
174
+ var _a, _b, _c, _d;
175
175
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
176
- const _response = yield core.fetcher({
177
- 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)}`),
176
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
177
+ 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)}`),
178
178
  method: "PATCH",
179
179
  headers: _headers,
180
180
  contentType: "application/json",
@@ -257,7 +257,7 @@ class MetadataFields {
257
257
  }
258
258
  __metadataFieldDefinitionsIndex(accountId_1) {
259
259
  return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
260
- var _a, _b, _c;
260
+ var _a, _b, _c, _d;
261
261
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
262
262
  const _queryParams = {};
263
263
  if (include != null) {
@@ -273,8 +273,8 @@ class MetadataFields {
273
273
  _queryParams["include_total_count"] = includeTotalCount.toString();
274
274
  }
275
275
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
276
- const _response = yield core.fetcher({
277
- 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`),
276
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
277
+ 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`),
278
278
  method: "GET",
279
279
  headers: _headers,
280
280
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -365,10 +365,10 @@ class MetadataFields {
365
365
  }
366
366
  __metadataFieldDefinitionsCreate(accountId_1) {
367
367
  return __awaiter(this, arguments, void 0, function* (accountId, request = {}, requestOptions) {
368
- var _a, _b, _c;
368
+ var _a, _b, _c, _d;
369
369
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
370
- const _response = yield core.fetcher({
371
- 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`),
370
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
371
+ 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`),
372
372
  method: "POST",
373
373
  headers: _headers,
374
374
  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. */
@@ -85,7 +85,7 @@ class ProjectPermissions {
85
85
  }
86
86
  __index(accountId_1, projectId_1) {
87
87
  return __awaiter(this, arguments, void 0, function* (accountId, projectId, request = {}, requestOptions) {
88
- var _a, _b, _c;
88
+ var _a, _b, _c, _d;
89
89
  const { include_deactivated: includeDeactivated, after, page_size: pageSize, include_total_count: includeTotalCount, } = request;
90
90
  const _queryParams = {};
91
91
  if (includeDeactivated != null) {
@@ -101,8 +101,8 @@ class ProjectPermissions {
101
101
  _queryParams["include_total_count"] = includeTotalCount.toString();
102
102
  }
103
103
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
104
- const _response = yield core.fetcher({
105
- 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`),
104
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
105
+ 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`),
106
106
  method: "GET",
107
107
  headers: _headers,
108
108
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -178,10 +178,10 @@ class ProjectPermissions {
178
178
  }
179
179
  __delete(accountId, projectId, userId, requestOptions) {
180
180
  return __awaiter(this, void 0, void 0, function* () {
181
- var _a, _b, _c;
181
+ var _a, _b, _c, _d;
182
182
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
183
- const _response = yield core.fetcher({
184
- 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)}`),
183
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
184
+ 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)}`),
185
185
  method: "DELETE",
186
186
  headers: _headers,
187
187
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -263,10 +263,10 @@ class ProjectPermissions {
263
263
  }
264
264
  __projectUserRolesUpdate(accountId, projectId, userId, request, requestOptions) {
265
265
  return __awaiter(this, void 0, void 0, function* () {
266
- var _a, _b, _c;
266
+ var _a, _b, _c, _d;
267
267
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
268
- const _response = yield core.fetcher({
269
- 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)}`),
268
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
269
+ 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)}`),
270
270
  method: "PATCH",
271
271
  headers: _headers,
272
272
  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. */
@@ -82,15 +82,15 @@ class Projects {
82
82
  }
83
83
  __show(accountId_1, projectId_1) {
84
84
  return __awaiter(this, arguments, void 0, function* (accountId, projectId, request = {}, requestOptions) {
85
- var _a, _b, _c;
85
+ var _a, _b, _c, _d;
86
86
  const { include } = request;
87
87
  const _queryParams = {};
88
88
  if (include != null) {
89
89
  _queryParams["include"] = include;
90
90
  }
91
91
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
92
- const _response = yield core.fetcher({
93
- 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)}`),
92
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
93
+ 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)}`),
94
94
  method: "GET",
95
95
  headers: _headers,
96
96
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -165,10 +165,10 @@ class Projects {
165
165
  }
166
166
  __delete(accountId, projectId, requestOptions) {
167
167
  return __awaiter(this, void 0, void 0, function* () {
168
- var _a, _b, _c;
168
+ var _a, _b, _c, _d;
169
169
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
170
- const _response = yield core.fetcher({
171
- 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)}`),
170
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
171
+ 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)}`),
172
172
  method: "DELETE",
173
173
  headers: _headers,
174
174
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -250,10 +250,10 @@ class Projects {
250
250
  }
251
251
  __update(accountId, projectId, request, requestOptions) {
252
252
  return __awaiter(this, void 0, void 0, function* () {
253
- var _a, _b, _c;
253
+ var _a, _b, _c, _d;
254
254
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
255
- const _response = yield core.fetcher({
256
- 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)}`),
255
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
256
+ 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)}`),
257
257
  method: "PATCH",
258
258
  headers: _headers,
259
259
  contentType: "application/json",
@@ -337,7 +337,7 @@ class Projects {
337
337
  }
338
338
  __index(accountId_1, workspaceId_1) {
339
339
  return __awaiter(this, arguments, void 0, function* (accountId, workspaceId, request = {}, requestOptions) {
340
- var _a, _b, _c;
340
+ var _a, _b, _c, _d;
341
341
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
342
342
  const _queryParams = {};
343
343
  if (include != null) {
@@ -353,8 +353,8 @@ class Projects {
353
353
  _queryParams["include_total_count"] = includeTotalCount.toString();
354
354
  }
355
355
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
356
- const _response = yield core.fetcher({
357
- 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`),
356
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
357
+ 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`),
358
358
  method: "GET",
359
359
  headers: _headers,
360
360
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -435,10 +435,10 @@ class Projects {
435
435
  }
436
436
  __create(accountId, workspaceId, request, requestOptions) {
437
437
  return __awaiter(this, void 0, void 0, function* () {
438
- var _a, _b, _c;
438
+ var _a, _b, _c, _d;
439
439
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
440
- const _response = yield core.fetcher({
441
- 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`),
440
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
441
+ 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`),
442
442
  method: "POST",
443
443
  headers: _headers,
444
444
  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. */
@@ -79,10 +79,10 @@ class Shares {
79
79
  }
80
80
  __show(accountId, shareId, requestOptions) {
81
81
  return __awaiter(this, void 0, void 0, function* () {
82
- var _a, _b, _c;
82
+ var _a, _b, _c, _d;
83
83
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
84
- const _response = yield core.fetcher({
85
- 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)}`),
84
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
85
+ 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)}`),
86
86
  method: "GET",
87
87
  headers: _headers,
88
88
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -157,10 +157,10 @@ class Shares {
157
157
  }
158
158
  __delete(accountId, shareId, requestOptions) {
159
159
  return __awaiter(this, void 0, void 0, function* () {
160
- var _a, _b, _c;
160
+ var _a, _b, _c, _d;
161
161
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
162
- const _response = yield core.fetcher({
163
- 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)}`),
162
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
163
+ 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)}`),
164
164
  method: "DELETE",
165
165
  headers: _headers,
166
166
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -245,10 +245,10 @@ class Shares {
245
245
  }
246
246
  __update(accountId, shareId, request, requestOptions) {
247
247
  return __awaiter(this, void 0, void 0, function* () {
248
- var _a, _b, _c;
248
+ var _a, _b, _c, _d;
249
249
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
250
- const _response = yield core.fetcher({
251
- 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)}`),
250
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
251
+ 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)}`),
252
252
  method: "PATCH",
253
253
  headers: _headers,
254
254
  contentType: "application/json",
@@ -331,7 +331,7 @@ class Shares {
331
331
  }
332
332
  __listReviewers(accountId_1, shareId_1) {
333
333
  return __awaiter(this, arguments, void 0, function* (accountId, shareId, request = {}, requestOptions) {
334
- var _a, _b, _c;
334
+ var _a, _b, _c, _d;
335
335
  const { after, page_size: pageSize, include_total_count: includeTotalCount } = request;
336
336
  const _queryParams = {};
337
337
  if (after != null) {
@@ -344,8 +344,8 @@ class Shares {
344
344
  _queryParams["include_total_count"] = includeTotalCount.toString();
345
345
  }
346
346
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
347
- const _response = yield core.fetcher({
348
- 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`),
347
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
348
+ 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`),
349
349
  method: "GET",
350
350
  headers: _headers,
351
351
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -433,10 +433,10 @@ class Shares {
433
433
  }
434
434
  __addReviewers(accountId, shareId, request, requestOptions) {
435
435
  return __awaiter(this, void 0, void 0, function* () {
436
- var _a, _b, _c;
436
+ var _a, _b, _c, _d;
437
437
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
438
- const _response = yield core.fetcher({
439
- 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`),
438
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
439
+ 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`),
440
440
  method: "POST",
441
441
  headers: _headers,
442
442
  contentType: "application/json",
@@ -524,10 +524,10 @@ class Shares {
524
524
  }
525
525
  __removeReviewers(accountId, shareId, request, requestOptions) {
526
526
  return __awaiter(this, void 0, void 0, function* () {
527
- var _a, _b, _c;
527
+ var _a, _b, _c, _d;
528
528
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
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)}/shares/${encodeURIComponent(shareId)}/reviewers`),
531
531
  method: "DELETE",
532
532
  headers: _headers,
533
533
  contentType: "application/json",
@@ -606,10 +606,10 @@ class Shares {
606
606
  }
607
607
  __removeAsset(accountId, shareId, assetId, requestOptions) {
608
608
  return __awaiter(this, void 0, void 0, function* () {
609
- var _a, _b, _c;
609
+ var _a, _b, _c, _d;
610
610
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
611
- const _response = yield core.fetcher({
612
- 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)}`),
611
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
612
+ 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)}`),
613
613
  method: "DELETE",
614
614
  headers: _headers,
615
615
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -689,10 +689,10 @@ class Shares {
689
689
  }
690
690
  __addAsset(accountId, shareId, request, requestOptions) {
691
691
  return __awaiter(this, void 0, void 0, function* () {
692
- var _a, _b, _c;
692
+ var _a, _b, _c, _d;
693
693
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
694
- const _response = yield core.fetcher({
695
- 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`),
694
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
695
+ 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`),
696
696
  method: "POST",
697
697
  headers: _headers,
698
698
  contentType: "application/json",
@@ -775,7 +775,7 @@ class Shares {
775
775
  }
776
776
  __index(accountId_1, projectId_1) {
777
777
  return __awaiter(this, arguments, void 0, function* (accountId, projectId, request = {}, requestOptions) {
778
- var _a, _b, _c;
778
+ var _a, _b, _c, _d;
779
779
  const { after, page_size: pageSize, include_total_count: includeTotalCount } = request;
780
780
  const _queryParams = {};
781
781
  if (after != null) {
@@ -788,8 +788,8 @@ class Shares {
788
788
  _queryParams["include_total_count"] = includeTotalCount.toString();
789
789
  }
790
790
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
791
- const _response = yield core.fetcher({
792
- 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`),
791
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
792
+ 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`),
793
793
  method: "GET",
794
794
  headers: _headers,
795
795
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -875,10 +875,10 @@ class Shares {
875
875
  }
876
876
  __create(accountId, projectId, request, requestOptions) {
877
877
  return __awaiter(this, void 0, void 0, function* () {
878
- var _a, _b, _c;
878
+ var _a, _b, _c, _d;
879
879
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
880
- const _response = yield core.fetcher({
881
- 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`),
880
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
881
+ 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`),
882
882
  method: "POST",
883
883
  headers: _headers,
884
884
  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. */
@@ -77,10 +77,10 @@ class Users {
77
77
  }
78
78
  __show(requestOptions) {
79
79
  return __awaiter(this, void 0, void 0, function* () {
80
- var _a, _b, _c;
80
+ var _a, _b, _c, _d;
81
81
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
82
- const _response = yield core.fetcher({
83
- 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"),
82
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
83
+ 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"),
84
84
  method: "GET",
85
85
  headers: _headers,
86
86
  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. */
@@ -108,7 +108,7 @@ class VersionStacks {
108
108
  }
109
109
  __index(accountId_1, versionStackId_1) {
110
110
  return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
111
- var _a, _b, _c;
111
+ var _a, _b, _c, _d;
112
112
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
113
113
  const _queryParams = {};
114
114
  if (include != null) {
@@ -124,8 +124,8 @@ class VersionStacks {
124
124
  _queryParams["include_total_count"] = includeTotalCount.toString();
125
125
  }
126
126
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
127
- const _response = yield core.fetcher({
128
- 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`),
127
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
128
+ 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`),
129
129
  method: "GET",
130
130
  headers: _headers,
131
131
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -206,15 +206,15 @@ class VersionStacks {
206
206
  }
207
207
  __show(accountId_1, versionStackId_1) {
208
208
  return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
209
- var _a, _b, _c;
209
+ var _a, _b, _c, _d;
210
210
  const { include } = request;
211
211
  const _queryParams = {};
212
212
  if (include != null) {
213
213
  _queryParams["include"] = include;
214
214
  }
215
215
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
216
- const _response = yield core.fetcher({
217
- 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)}`),
216
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
217
+ 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)}`),
218
218
  method: "GET",
219
219
  headers: _headers,
220
220
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -298,15 +298,15 @@ class VersionStacks {
298
298
  }
299
299
  __copy(accountId_1, versionStackId_1) {
300
300
  return __awaiter(this, arguments, void 0, function* (accountId, versionStackId, request = {}, requestOptions) {
301
- var _a, _b, _c;
301
+ var _a, _b, _c, _d;
302
302
  const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
303
303
  const _queryParams = {};
304
304
  if (copyMetadata != null) {
305
305
  _queryParams["copy_metadata"] = copyMetadata.toString();
306
306
  }
307
307
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
308
- const _response = yield core.fetcher({
309
- 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`),
308
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
309
+ 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`),
310
310
  method: "POST",
311
311
  headers: _headers,
312
312
  contentType: "application/json",
@@ -390,7 +390,7 @@ class VersionStacks {
390
390
  }
391
391
  __list(accountId_1, folderId_1) {
392
392
  return __awaiter(this, arguments, void 0, function* (accountId, folderId, request = {}, requestOptions) {
393
- var _a, _b, _c;
393
+ var _a, _b, _c, _d;
394
394
  const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
395
395
  const _queryParams = {};
396
396
  if (include != null) {
@@ -406,8 +406,8 @@ class VersionStacks {
406
406
  _queryParams["include_total_count"] = includeTotalCount.toString();
407
407
  }
408
408
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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)}/folders/${encodeURIComponent(folderId)}/version_stacks`),
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)}/folders/${encodeURIComponent(folderId)}/version_stacks`),
411
411
  method: "GET",
412
412
  headers: _headers,
413
413
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -490,10 +490,10 @@ class VersionStacks {
490
490
  }
491
491
  __create(accountId, folderId, request, requestOptions) {
492
492
  return __awaiter(this, void 0, void 0, function* () {
493
- var _a, _b, _c;
493
+ var _a, _b, _c, _d;
494
494
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
495
- const _response = yield core.fetcher({
496
- 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`),
495
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
496
+ 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`),
497
497
  method: "POST",
498
498
  headers: _headers,
499
499
  contentType: "application/json",
@@ -579,10 +579,10 @@ class VersionStacks {
579
579
  }
580
580
  __move(accountId, versionStackId, request, requestOptions) {
581
581
  return __awaiter(this, void 0, void 0, function* () {
582
- var _a, _b, _c;
582
+ var _a, _b, _c, _d;
583
583
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
584
- const _response = yield core.fetcher({
585
- 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`),
584
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
585
+ 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`),
586
586
  method: "PATCH",
587
587
  headers: _headers,
588
588
  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. */