contentful-management 12.4.0 → 12.6.0-dev.1

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 (70) hide show
  1. package/README.md +3 -3
  2. package/dist/browser/index.js +1081 -742
  3. package/dist/browser/index.js.map +1 -1
  4. package/dist/browser/index.min.js +1 -1
  5. package/dist/browser/index.min.js.map +1 -1
  6. package/dist/cjs/index.cjs +1073 -734
  7. package/dist/cjs/index.cjs.map +1 -1
  8. package/dist/esm/adapters/REST/endpoints/component-type.mjs +43 -3
  9. package/dist/esm/adapters/REST/endpoints/component-type.mjs.map +1 -1
  10. package/dist/esm/adapters/REST/endpoints/data-assembly.mjs +62 -0
  11. package/dist/esm/adapters/REST/endpoints/data-assembly.mjs.map +1 -0
  12. package/dist/esm/adapters/REST/endpoints/experience.mjs +52 -0
  13. package/dist/esm/adapters/REST/endpoints/experience.mjs.map +1 -0
  14. package/dist/esm/adapters/REST/endpoints/fragment.mjs +50 -0
  15. package/dist/esm/adapters/REST/endpoints/fragment.mjs.map +1 -0
  16. package/dist/esm/adapters/REST/endpoints/index.mjs +8 -0
  17. package/dist/esm/adapters/REST/endpoints/index.mjs.map +1 -1
  18. package/dist/esm/adapters/REST/endpoints/space.mjs +4 -2
  19. package/dist/esm/adapters/REST/endpoints/space.mjs.map +1 -1
  20. package/dist/esm/adapters/REST/endpoints/template.mjs +50 -0
  21. package/dist/esm/adapters/REST/endpoints/template.mjs.map +1 -0
  22. package/dist/esm/common-types.mjs.map +1 -1
  23. package/dist/esm/create-contentful-api.mjs +8 -4
  24. package/dist/esm/create-contentful-api.mjs.map +1 -1
  25. package/dist/esm/entities/space.mjs.map +1 -1
  26. package/dist/esm/plain/plain-client.mjs +44 -0
  27. package/dist/esm/plain/plain-client.mjs.map +1 -1
  28. package/dist/types/adapters/REST/endpoints/component-type.d.ts +6 -0
  29. package/dist/types/adapters/REST/endpoints/component-type.js +43 -3
  30. package/dist/types/adapters/REST/endpoints/component-type.js.map +1 -1
  31. package/dist/types/adapters/REST/endpoints/data-assembly.d.ts +10 -0
  32. package/dist/types/adapters/REST/endpoints/data-assembly.js +62 -0
  33. package/dist/types/adapters/REST/endpoints/data-assembly.js.map +1 -0
  34. package/dist/types/adapters/REST/endpoints/experience.d.ts +8 -0
  35. package/dist/types/adapters/REST/endpoints/experience.js +52 -0
  36. package/dist/types/adapters/REST/endpoints/experience.js.map +1 -0
  37. package/dist/types/adapters/REST/endpoints/fragment.d.ts +8 -0
  38. package/dist/types/adapters/REST/endpoints/fragment.js +50 -0
  39. package/dist/types/adapters/REST/endpoints/fragment.js.map +1 -0
  40. package/dist/types/adapters/REST/endpoints/index.d.ts +8 -0
  41. package/dist/types/adapters/REST/endpoints/index.js +8 -0
  42. package/dist/types/adapters/REST/endpoints/index.js.map +1 -1
  43. package/dist/types/adapters/REST/endpoints/space.js +4 -2
  44. package/dist/types/adapters/REST/endpoints/space.js.map +1 -1
  45. package/dist/types/adapters/REST/endpoints/template.d.ts +8 -0
  46. package/dist/types/adapters/REST/endpoints/template.js +50 -0
  47. package/dist/types/adapters/REST/endpoints/template.js.map +1 -0
  48. package/dist/types/common-types.d.ts +338 -9
  49. package/dist/types/common-types.js.map +1 -1
  50. package/dist/types/create-contentful-api.d.ts +4 -4
  51. package/dist/types/create-contentful-api.js +8 -4
  52. package/dist/types/create-contentful-api.js.map +1 -1
  53. package/dist/types/entities/component-type.d.ts +89 -45
  54. package/dist/types/entities/data-assembly.d.ts +119 -0
  55. package/dist/types/entities/experience.d.ts +89 -0
  56. package/dist/types/entities/fragment.d.ts +52 -0
  57. package/dist/types/entities/space.d.ts +23 -0
  58. package/dist/types/entities/space.js.map +1 -1
  59. package/dist/types/entities/template.d.ts +48 -0
  60. package/dist/types/export-types.d.ts +5 -0
  61. package/dist/types/plain/entities/component-type.d.ts +119 -7
  62. package/dist/types/plain/entities/data-assembly.d.ts +178 -0
  63. package/dist/types/plain/entities/experience.d.ts +165 -0
  64. package/dist/types/plain/entities/fragment.d.ts +134 -0
  65. package/dist/types/plain/entities/space.d.ts +10 -4
  66. package/dist/types/plain/entities/template.d.ts +139 -0
  67. package/dist/types/plain/plain-client-types.d.ts +8 -0
  68. package/dist/types/plain/plain-client.js +44 -0
  69. package/dist/types/plain/plain-client.js.map +1 -1
  70. package/package.json +1 -1
@@ -2,7 +2,7 @@ var contentfulManagement = (function (exports) {
2
2
  'use strict';
3
3
 
4
4
  var toStringFunction = Function.prototype.toString;
5
- var create$G = Object.create;
5
+ var create$L = Object.create;
6
6
  var toStringObject = Object.prototype.toString;
7
7
  /**
8
8
  * @classdesc Fallback cache for when WeakMap is not natively supported
@@ -39,11 +39,11 @@ var contentfulManagement = (function (exports) {
39
39
  */
40
40
  function getCleanClone(prototype) {
41
41
  if (!prototype) {
42
- return create$G(null);
42
+ return create$L(null);
43
43
  }
44
44
  var Constructor = prototype.constructor;
45
45
  if (Constructor === Object) {
46
- return prototype === Object.prototype ? {} : create$G(prototype);
46
+ return prototype === Object.prototype ? {} : create$L(prototype);
47
47
  }
48
48
  if (Constructor &&
49
49
  ~toStringFunction.call(Constructor).indexOf('[native code]')) {
@@ -52,7 +52,7 @@ var contentfulManagement = (function (exports) {
52
52
  }
53
53
  catch (_a) { }
54
54
  }
55
- return create$G(prototype);
55
+ return create$L(prototype);
56
56
  }
57
57
  function getRegExpFlagsLegacy(regExp) {
58
58
  var flags = '';
@@ -3139,11 +3139,11 @@ var contentfulManagement = (function (exports) {
3139
3139
  return callBindApplyHelpers;
3140
3140
  }
3141
3141
 
3142
- var get$15;
3142
+ var get$1a;
3143
3143
  var hasRequiredGet;
3144
3144
 
3145
3145
  function requireGet () {
3146
- if (hasRequiredGet) return get$15;
3146
+ if (hasRequiredGet) return get$1a;
3147
3147
  hasRequiredGet = 1;
3148
3148
 
3149
3149
  var callBind = requireCallBindApplyHelpers();
@@ -3166,7 +3166,7 @@ var contentfulManagement = (function (exports) {
3166
3166
  var $getPrototypeOf = $Object.getPrototypeOf;
3167
3167
 
3168
3168
  /** @type {import('./get')} */
3169
- get$15 = desc && typeof desc.get === 'function'
3169
+ get$1a = desc && typeof desc.get === 'function'
3170
3170
  ? callBind([desc.get])
3171
3171
  : typeof $getPrototypeOf === 'function'
3172
3172
  ? /** @type {import('./get')} */ function getDunder(value) {
@@ -3174,7 +3174,7 @@ var contentfulManagement = (function (exports) {
3174
3174
  return $getPrototypeOf(value == null ? value : $Object(value));
3175
3175
  }
3176
3176
  : false;
3177
- return get$15;
3177
+ return get$1a;
3178
3178
  }
3179
3179
 
3180
3180
  var getProto;
@@ -9749,13 +9749,13 @@ var contentfulManagement = (function (exports) {
9749
9749
  var axios = /*@__PURE__*/getDefaultExportFromCjs(axiosExports);
9750
9750
 
9751
9751
  /* eslint-disable @typescript-eslint/no-explicit-any */
9752
- function getBaseUrl$t(http) {
9752
+ function getBaseUrl$x(http) {
9753
9753
  return http.defaults.baseURL?.split('/spaces')[0];
9754
9754
  }
9755
- function get$14(http, url, config) {
9755
+ function get$19(http, url, config) {
9756
9756
  return http
9757
9757
  .get(url, {
9758
- baseURL: getBaseUrl$t(http),
9758
+ baseURL: getBaseUrl$x(http),
9759
9759
  ...config,
9760
9760
  })
9761
9761
  .then((response) => response.data, errorHandler);
@@ -9763,7 +9763,7 @@ var contentfulManagement = (function (exports) {
9763
9763
  function patch$5(http, url, payload, config) {
9764
9764
  return http
9765
9765
  .patch(url, payload, {
9766
- baseURL: getBaseUrl$t(http),
9766
+ baseURL: getBaseUrl$x(http),
9767
9767
  ...config,
9768
9768
  })
9769
9769
  .then((response) => response.data, errorHandler);
@@ -9771,7 +9771,7 @@ var contentfulManagement = (function (exports) {
9771
9771
  function post$1(http, url, payload, config) {
9772
9772
  return http
9773
9773
  .post(url, payload, {
9774
- baseURL: getBaseUrl$t(http),
9774
+ baseURL: getBaseUrl$x(http),
9775
9775
  ...config,
9776
9776
  })
9777
9777
  .then((response) => response.data, errorHandler);
@@ -9779,41 +9779,41 @@ var contentfulManagement = (function (exports) {
9779
9779
  function put$1(http, url, payload, config) {
9780
9780
  return http
9781
9781
  .put(url, payload, {
9782
- baseURL: getBaseUrl$t(http),
9782
+ baseURL: getBaseUrl$x(http),
9783
9783
  ...config,
9784
9784
  })
9785
9785
  .then((response) => response.data, errorHandler);
9786
9786
  }
9787
- function del$H(http, url, config) {
9787
+ function del$M(http, url, config) {
9788
9788
  return http
9789
9789
  .delete(url, {
9790
- baseURL: getBaseUrl$t(http),
9790
+ baseURL: getBaseUrl$x(http),
9791
9791
  ...config,
9792
9792
  })
9793
9793
  .then((response) => response.data, errorHandler);
9794
9794
  }
9795
9795
  function http(http, url, config) {
9796
9796
  return http(url, {
9797
- baseURL: getBaseUrl$t(http),
9797
+ baseURL: getBaseUrl$x(http),
9798
9798
  ...config,
9799
9799
  }).then((response) => response.data, errorHandler);
9800
9800
  }
9801
9801
 
9802
- const get$13 = (http, params, headers) => {
9803
- return get$14(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
9802
+ const get$18 = (http, params, headers) => {
9803
+ return get$19(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
9804
9804
  headers,
9805
9805
  });
9806
9806
  };
9807
- const getMany$R = (http, params, headers) => {
9808
- return get$14(http, `/spaces/${params.spaceId}/ai/actions`, {
9807
+ const getMany$V = (http, params, headers) => {
9808
+ return get$19(http, `/spaces/${params.spaceId}/ai/actions`, {
9809
9809
  params: params.query,
9810
9810
  headers,
9811
9811
  });
9812
9812
  };
9813
- const create$F = (http, params, data, headers) => {
9813
+ const create$K = (http, params, data, headers) => {
9814
9814
  return post$1(http, `/spaces/${params.spaceId}/ai/actions`, data, { headers });
9815
9815
  };
9816
- const update$z = (http, params, rawData, headers) => {
9816
+ const update$B = (http, params, rawData, headers) => {
9817
9817
  const data = index$2(rawData);
9818
9818
  const { sys, ...payload } = data;
9819
9819
  return put$1(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, payload, {
@@ -9823,10 +9823,10 @@ var contentfulManagement = (function (exports) {
9823
9823
  },
9824
9824
  });
9825
9825
  };
9826
- const del$G = (http, params, headers) => {
9827
- return del$H(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, { headers });
9826
+ const del$L = (http, params, headers) => {
9827
+ return del$M(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, { headers });
9828
9828
  };
9829
- const publish$5 = (http, params, rawData, headers) => {
9829
+ const publish$a = (http, params, rawData, headers) => {
9830
9830
  return put$1(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, null, {
9831
9831
  headers: {
9832
9832
  'X-Contentful-Version': params.version,
@@ -9834,8 +9834,8 @@ var contentfulManagement = (function (exports) {
9834
9834
  },
9835
9835
  });
9836
9836
  };
9837
- const unpublish$5 = (http, params, headers) => {
9838
- return del$H(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, {
9837
+ const unpublish$a = (http, params, headers) => {
9838
+ return del$M(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, {
9839
9839
  headers,
9840
9840
  });
9841
9841
  };
@@ -9845,38 +9845,38 @@ var contentfulManagement = (function (exports) {
9845
9845
 
9846
9846
  var AiAction = /*#__PURE__*/Object.freeze({
9847
9847
  __proto__: null,
9848
- create: create$F,
9849
- del: del$G,
9850
- get: get$13,
9851
- getMany: getMany$R,
9848
+ create: create$K,
9849
+ del: del$L,
9850
+ get: get$18,
9851
+ getMany: getMany$V,
9852
9852
  invoke: invoke,
9853
- publish: publish$5,
9854
- unpublish: unpublish$5,
9855
- update: update$z
9853
+ publish: publish$a,
9854
+ unpublish: unpublish$a,
9855
+ update: update$B
9856
9856
  });
9857
9857
 
9858
- const get$12 = (http, params, headers) => {
9859
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/actions/${params.aiActionId}/invocations/${params.invocationId}`, { headers });
9858
+ const get$17 = (http, params, headers) => {
9859
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/actions/${params.aiActionId}/invocations/${params.invocationId}`, { headers });
9860
9860
  };
9861
9861
 
9862
9862
  var AiActionInvocation = /*#__PURE__*/Object.freeze({
9863
9863
  __proto__: null,
9864
- get: get$12
9864
+ get: get$17
9865
9865
  });
9866
9866
 
9867
9867
  const AgentAlphaHeaders = {
9868
9868
  'x-contentful-enable-alpha-feature': 'agents-api',
9869
9869
  };
9870
- const get$11 = (http, params, headers) => {
9871
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/${params.agentId}`, {
9870
+ const get$16 = (http, params, headers) => {
9871
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/${params.agentId}`, {
9872
9872
  headers: {
9873
9873
  ...AgentAlphaHeaders,
9874
9874
  ...headers,
9875
9875
  },
9876
9876
  });
9877
9877
  };
9878
- const getMany$Q = (http, params, headers) => {
9879
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents`, {
9878
+ const getMany$U = (http, params, headers) => {
9879
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents`, {
9880
9880
  headers: {
9881
9881
  ...AgentAlphaHeaders,
9882
9882
  ...headers,
@@ -9895,23 +9895,23 @@ var contentfulManagement = (function (exports) {
9895
9895
  var Agent = /*#__PURE__*/Object.freeze({
9896
9896
  __proto__: null,
9897
9897
  generate: generate,
9898
- get: get$11,
9899
- getMany: getMany$Q
9898
+ get: get$16,
9899
+ getMany: getMany$U
9900
9900
  });
9901
9901
 
9902
9902
  const AgentRunAlphaHeaders = {
9903
9903
  'x-contentful-enable-alpha-feature': 'agents-api',
9904
9904
  };
9905
- const get$10 = (http, params, headers) => {
9906
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs/${params.runId}`, {
9905
+ const get$15 = (http, params, headers) => {
9906
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs/${params.runId}`, {
9907
9907
  headers: {
9908
9908
  ...AgentRunAlphaHeaders,
9909
9909
  ...headers,
9910
9910
  },
9911
9911
  });
9912
9912
  };
9913
- const getMany$P = (http, params, headers) => {
9914
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs`, {
9913
+ const getMany$T = (http, params, headers) => {
9914
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs`, {
9915
9915
  params: params.query,
9916
9916
  headers: {
9917
9917
  ...AgentRunAlphaHeaders,
@@ -9930,8 +9930,8 @@ var contentfulManagement = (function (exports) {
9930
9930
 
9931
9931
  var AgentRun = /*#__PURE__*/Object.freeze({
9932
9932
  __proto__: null,
9933
- get: get$10,
9934
- getMany: getMany$P,
9933
+ get: get$15,
9934
+ getMany: getMany$T,
9935
9935
  resumeRun: resumeRun
9936
9936
  });
9937
9937
 
@@ -9956,8 +9956,8 @@ var contentfulManagement = (function (exports) {
9956
9956
  * .catch(console.error)
9957
9957
  * ```
9958
9958
  */
9959
- const get$$ = (http, params) => {
9960
- return get$14(http, `/users/me/access_tokens/${params.tokenId}`);
9959
+ const get$14 = (http, params) => {
9960
+ return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
9961
9961
  };
9962
9962
  /**
9963
9963
  * Retrieves multiple access tokens associated with the currently authenticated user.
@@ -9979,8 +9979,8 @@ var contentfulManagement = (function (exports) {
9979
9979
  * .catch(console.error)
9980
9980
  * ```
9981
9981
  */
9982
- const getMany$O = (http, params) => {
9983
- return get$14(http, '/users/me/access_tokens', {
9982
+ const getMany$S = (http, params) => {
9983
+ return get$19(http, '/users/me/access_tokens', {
9984
9984
  params: params.query,
9985
9985
  });
9986
9986
  };
@@ -10057,7 +10057,7 @@ var contentfulManagement = (function (exports) {
10057
10057
  * ```
10058
10058
  */
10059
10059
  const getManyForOrganization$7 = (http, params) => {
10060
- return get$14(http, `/organizations/${params.organizationId}/access_tokens`, {
10060
+ return get$19(http, `/organizations/${params.organizationId}/access_tokens`, {
10061
10061
  params: params.query,
10062
10062
  });
10063
10063
  };
@@ -10065,28 +10065,28 @@ var contentfulManagement = (function (exports) {
10065
10065
  var AccessToken = /*#__PURE__*/Object.freeze({
10066
10066
  __proto__: null,
10067
10067
  createPersonalAccessToken: createPersonalAccessToken,
10068
- get: get$$,
10069
- getMany: getMany$O,
10068
+ get: get$14,
10069
+ getMany: getMany$S,
10070
10070
  getManyForOrganization: getManyForOrganization$7,
10071
10071
  revoke: revoke$1
10072
10072
  });
10073
10073
 
10074
- const getBaseUrl$s = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions`;
10075
- const getAutomationDefinitionUrl = (params) => `${getBaseUrl$s(params)}/${params.automationDefinitionId}`;
10076
- const get$_ = (http, params, headers) => get$14(http, getAutomationDefinitionUrl(params), {
10074
+ const getBaseUrl$w = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions`;
10075
+ const getAutomationDefinitionUrl = (params) => `${getBaseUrl$w(params)}/${params.automationDefinitionId}`;
10076
+ const get$13 = (http, params, headers) => get$19(http, getAutomationDefinitionUrl(params), {
10077
10077
  headers,
10078
10078
  });
10079
- const getMany$N = (http, params, headers) => get$14(http, getBaseUrl$s(params), {
10079
+ const getMany$R = (http, params, headers) => get$19(http, getBaseUrl$w(params), {
10080
10080
  headers,
10081
10081
  params: params.query,
10082
10082
  });
10083
- const create$E = (http, params, rawData, headers) => {
10083
+ const create$J = (http, params, rawData, headers) => {
10084
10084
  const data = index$2(rawData);
10085
- return post$1(http, getBaseUrl$s(params), data, {
10085
+ return post$1(http, getBaseUrl$w(params), data, {
10086
10086
  headers,
10087
10087
  });
10088
10088
  };
10089
- const update$y = (http, params, rawData, headers) => {
10089
+ const update$A = (http, params, rawData, headers) => {
10090
10090
  const data = index$2(rawData);
10091
10091
  delete data.sys;
10092
10092
  return put$1(http, getAutomationDefinitionUrl(params), data, {
@@ -10096,52 +10096,52 @@ var contentfulManagement = (function (exports) {
10096
10096
  },
10097
10097
  });
10098
10098
  };
10099
- const del$F = (http, params, headers) => {
10100
- return del$H(http, getAutomationDefinitionUrl(params), {
10099
+ const del$K = (http, params, headers) => {
10100
+ return del$M(http, getAutomationDefinitionUrl(params), {
10101
10101
  headers: { 'X-Contentful-Version': params.version, ...headers },
10102
10102
  });
10103
10103
  };
10104
10104
 
10105
10105
  var AutomationDefinition = /*#__PURE__*/Object.freeze({
10106
10106
  __proto__: null,
10107
- create: create$E,
10108
- del: del$F,
10109
- get: get$_,
10110
- getMany: getMany$N,
10111
- update: update$y
10107
+ create: create$J,
10108
+ del: del$K,
10109
+ get: get$13,
10110
+ getMany: getMany$R,
10111
+ update: update$A
10112
10112
  });
10113
10113
 
10114
- const getBaseUrl$r = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`;
10115
- const getAutomationExecutionUrl = (params) => `${getBaseUrl$r(params)}/${params.automationExecutionId}`;
10114
+ const getBaseUrl$v = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`;
10115
+ const getAutomationExecutionUrl = (params) => `${getBaseUrl$v(params)}/${params.automationExecutionId}`;
10116
10116
  const getExecutionsByDefinitionUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions/${params.automationDefinitionId}/automation_executions`;
10117
- const get$Z = (http, params, headers) => get$14(http, getAutomationExecutionUrl(params), {
10117
+ const get$12 = (http, params, headers) => get$19(http, getAutomationExecutionUrl(params), {
10118
10118
  headers,
10119
10119
  });
10120
- const getMany$M = (http, params, headers) => get$14(http, getBaseUrl$r(params), {
10120
+ const getMany$Q = (http, params, headers) => get$19(http, getBaseUrl$v(params), {
10121
10121
  headers,
10122
10122
  params: params.query,
10123
10123
  });
10124
- const getForAutomationDefinition = (http, params, headers) => get$14(http, getExecutionsByDefinitionUrl(params), {
10124
+ const getForAutomationDefinition = (http, params, headers) => get$19(http, getExecutionsByDefinitionUrl(params), {
10125
10125
  headers,
10126
10126
  params: params.query,
10127
10127
  });
10128
10128
 
10129
10129
  var AutomationExecution = /*#__PURE__*/Object.freeze({
10130
10130
  __proto__: null,
10131
- get: get$Z,
10131
+ get: get$12,
10132
10132
  getForAutomationDefinition: getForAutomationDefinition,
10133
- getMany: getMany$M
10133
+ getMany: getMany$Q
10134
10134
  });
10135
10135
 
10136
- const get$Y = (http, params) => {
10137
- return get$14(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
10136
+ const get$11 = (http, params) => {
10137
+ return get$19(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
10138
10138
  };
10139
- const getMany$L = (http, params) => {
10140
- return get$14(http, `/spaces/${params.spaceId}/api_keys`, {
10139
+ const getMany$P = (http, params) => {
10140
+ return get$19(http, `/spaces/${params.spaceId}/api_keys`, {
10141
10141
  params: params.query,
10142
10142
  });
10143
10143
  };
10144
- const create$D = (http, params, data, headers) => {
10144
+ const create$I = (http, params, data, headers) => {
10145
10145
  return post$1(http, `/spaces/${params.spaceId}/api_keys`, data, { headers });
10146
10146
  };
10147
10147
  const createWithId$e = (http, params, data, headers) => {
@@ -10149,7 +10149,7 @@ var contentfulManagement = (function (exports) {
10149
10149
  headers,
10150
10150
  });
10151
10151
  };
10152
- const update$x = (http, params, rawData, headers) => {
10152
+ const update$z = (http, params, rawData, headers) => {
10153
10153
  const data = index$2(rawData);
10154
10154
  if ('accessToken' in data) {
10155
10155
  delete data.accessToken;
@@ -10168,27 +10168,27 @@ var contentfulManagement = (function (exports) {
10168
10168
  },
10169
10169
  });
10170
10170
  };
10171
- const del$E = (http, params) => {
10172
- return del$H(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
10171
+ const del$J = (http, params) => {
10172
+ return del$M(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
10173
10173
  };
10174
10174
 
10175
10175
  var ApiKey = /*#__PURE__*/Object.freeze({
10176
10176
  __proto__: null,
10177
- create: create$D,
10177
+ create: create$I,
10178
10178
  createWithId: createWithId$e,
10179
- del: del$E,
10180
- get: get$Y,
10181
- getMany: getMany$L,
10182
- update: update$x
10179
+ del: del$J,
10180
+ get: get$11,
10181
+ getMany: getMany$P,
10182
+ update: update$z
10183
10183
  });
10184
10184
 
10185
- const create$C = (http, params, data) => {
10185
+ const create$H = (http, params, data) => {
10186
10186
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/access_tokens`, undefined, { headers: { Authorization: `Bearer ${data.jwt}` } });
10187
10187
  };
10188
10188
 
10189
10189
  var AppAccessToken = /*#__PURE__*/Object.freeze({
10190
10190
  __proto__: null,
10191
- create: create$C
10191
+ create: create$H
10192
10192
  });
10193
10193
 
10194
10194
  function normalizeSelect(query) {
@@ -10211,45 +10211,45 @@ var contentfulManagement = (function (exports) {
10211
10211
  return query;
10212
10212
  }
10213
10213
 
10214
- const getBaseUrl$q = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`;
10215
- const getAppActionUrl = (params) => `${getBaseUrl$q(params)}/${params.appActionId}`;
10214
+ const getBaseUrl$u = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`;
10215
+ const getAppActionUrl = (params) => `${getBaseUrl$u(params)}/${params.appActionId}`;
10216
10216
  const getAppActionsEnvUrl = (params) => {
10217
10217
  if (params.environmentId) {
10218
10218
  return `/spaces/${params.spaceId}/environments/${params.environmentId}/actions`;
10219
10219
  }
10220
10220
  return `/spaces/${params.spaceId}/actions`;
10221
10221
  };
10222
- const get$X = (http, params) => {
10223
- return get$14(http, getAppActionUrl(params));
10222
+ const get$10 = (http, params) => {
10223
+ return get$19(http, getAppActionUrl(params));
10224
10224
  };
10225
- const getMany$K = (http, params) => {
10226
- return get$14(http, getBaseUrl$q(params), {
10225
+ const getMany$O = (http, params) => {
10226
+ return get$19(http, getBaseUrl$u(params), {
10227
10227
  params: normalizeSelect(params.query),
10228
10228
  });
10229
10229
  };
10230
10230
  const getManyForEnvironment$2 = (http, params) => {
10231
- return get$14(http, getAppActionsEnvUrl(params), {
10231
+ return get$19(http, getAppActionsEnvUrl(params), {
10232
10232
  params: normalizeSelect(params.query),
10233
10233
  });
10234
10234
  };
10235
- const del$D = (http, params) => {
10236
- return del$H(http, getAppActionUrl(params));
10235
+ const del$I = (http, params) => {
10236
+ return del$M(http, getAppActionUrl(params));
10237
10237
  };
10238
- const create$B = (http, params, data) => {
10239
- return post$1(http, getBaseUrl$q(params), data);
10238
+ const create$G = (http, params, data) => {
10239
+ return post$1(http, getBaseUrl$u(params), data);
10240
10240
  };
10241
- const update$w = (http, params, data) => {
10241
+ const update$y = (http, params, data) => {
10242
10242
  return put$1(http, getAppActionUrl(params), data);
10243
10243
  };
10244
10244
 
10245
10245
  var AppAction = /*#__PURE__*/Object.freeze({
10246
10246
  __proto__: null,
10247
- create: create$B,
10248
- del: del$D,
10249
- get: get$X,
10250
- getMany: getMany$K,
10247
+ create: create$G,
10248
+ del: del$I,
10249
+ get: get$10,
10250
+ getMany: getMany$O,
10251
10251
  getManyForEnvironment: getManyForEnvironment$2,
10252
- update: update$w
10252
+ update: update$y
10253
10253
  });
10254
10254
 
10255
10255
  /**
@@ -10315,11 +10315,11 @@ var contentfulManagement = (function (exports) {
10315
10315
  };
10316
10316
  }
10317
10317
 
10318
- const create$A = (http, params, data) => {
10318
+ const create$F = (http, params, data) => {
10319
10319
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`, data);
10320
10320
  };
10321
10321
  const getCallDetails$1 = (http, params) => {
10322
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`);
10322
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`);
10323
10323
  };
10324
10324
  const APP_ACTION_CALL_RETRY_INTERVAL = 2000;
10325
10325
  const APP_ACTION_CALL_RETRIES = 15;
@@ -10371,12 +10371,12 @@ var contentfulManagement = (function (exports) {
10371
10371
  return callAppActionResult(http, params, { callId });
10372
10372
  };
10373
10373
  // Get structured AppActionCall (status/result/error) via new route that includes app installation context
10374
- const get$W = (http, params) => {
10375
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}`);
10374
+ const get$$ = (http, params) => {
10375
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}`);
10376
10376
  };
10377
10377
  // Get raw AppActionCall response (headers/body) for a completed call
10378
10378
  const getResponse = (http, params) => {
10379
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}/response`);
10379
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}/response`);
10380
10380
  };
10381
10381
  async function pollStructuredAppActionCall(http, params, { callId }) {
10382
10382
  let checkCount = 1;
@@ -10385,7 +10385,7 @@ var contentfulManagement = (function (exports) {
10385
10385
  return new Promise((resolve, reject) => {
10386
10386
  const poll = async () => {
10387
10387
  try {
10388
- const result = await get$W(http, { ...params, callId });
10388
+ const result = await get$$(http, { ...params, callId });
10389
10389
  // If backend has not yet written the record, keep polling up to retries
10390
10390
  // Otherwise, resolve when status is terminal
10391
10391
  if (result?.sys.status === 'succeeded' || result?.sys.status === 'failed') {
@@ -10424,28 +10424,28 @@ var contentfulManagement = (function (exports) {
10424
10424
 
10425
10425
  var AppActionCall = /*#__PURE__*/Object.freeze({
10426
10426
  __proto__: null,
10427
- create: create$A,
10427
+ create: create$F,
10428
10428
  createWithResponse: createWithResponse,
10429
10429
  createWithResult: createWithResult,
10430
- get: get$W,
10430
+ get: get$$,
10431
10431
  getCallDetails: getCallDetails$1,
10432
10432
  getResponse: getResponse
10433
10433
  });
10434
10434
 
10435
- const getBaseUrl$p = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`;
10436
- const getAppBundleUrl = (params) => `${getBaseUrl$p(params)}/${params.appBundleId}`;
10437
- const get$V = (http, params) => {
10438
- return get$14(http, getAppBundleUrl(params));
10435
+ const getBaseUrl$t = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`;
10436
+ const getAppBundleUrl = (params) => `${getBaseUrl$t(params)}/${params.appBundleId}`;
10437
+ const get$_ = (http, params) => {
10438
+ return get$19(http, getAppBundleUrl(params));
10439
10439
  };
10440
- const getMany$J = (http, params) => {
10441
- return get$14(http, getBaseUrl$p(params), {
10440
+ const getMany$N = (http, params) => {
10441
+ return get$19(http, getBaseUrl$t(params), {
10442
10442
  params: normalizeSelect(params.query),
10443
10443
  });
10444
10444
  };
10445
- const del$C = (http, params) => {
10446
- return del$H(http, getAppBundleUrl(params));
10445
+ const del$H = (http, params) => {
10446
+ return del$M(http, getAppBundleUrl(params));
10447
10447
  };
10448
- const create$z = (http, params, payload) => {
10448
+ const create$E = (http, params, payload) => {
10449
10449
  const { appUploadId, comment, actions, functions } = payload;
10450
10450
  const data = {
10451
10451
  upload: {
@@ -10459,35 +10459,35 @@ var contentfulManagement = (function (exports) {
10459
10459
  actions,
10460
10460
  functions,
10461
10461
  };
10462
- return post$1(http, getBaseUrl$p(params), data);
10462
+ return post$1(http, getBaseUrl$t(params), data);
10463
10463
  };
10464
10464
 
10465
10465
  var AppBundle = /*#__PURE__*/Object.freeze({
10466
10466
  __proto__: null,
10467
- create: create$z,
10468
- del: del$C,
10469
- get: get$V,
10470
- getMany: getMany$J
10467
+ create: create$E,
10468
+ del: del$H,
10469
+ get: get$_,
10470
+ getMany: getMany$N
10471
10471
  });
10472
10472
 
10473
- const getBaseUrl$o = (params) => `/organizations/${params.organizationId}/app_definitions`;
10474
- const getAppDefinitionUrl = (params) => getBaseUrl$o(params) + `/${params.appDefinitionId}`;
10473
+ const getBaseUrl$s = (params) => `/organizations/${params.organizationId}/app_definitions`;
10474
+ const getAppDefinitionUrl = (params) => getBaseUrl$s(params) + `/${params.appDefinitionId}`;
10475
10475
  const getBaseUrlForOrgInstallations$1 = (params) => `/app_definitions/${params.appDefinitionId}/app_installations`;
10476
- const get$U = (http, params) => {
10477
- return get$14(http, getAppDefinitionUrl(params), {
10476
+ const get$Z = (http, params) => {
10477
+ return get$19(http, getAppDefinitionUrl(params), {
10478
10478
  params: normalizeSelect(params.query),
10479
10479
  });
10480
10480
  };
10481
- const getMany$I = (http, params) => {
10482
- return get$14(http, getBaseUrl$o(params), {
10481
+ const getMany$M = (http, params) => {
10482
+ return get$19(http, getBaseUrl$s(params), {
10483
10483
  params: params.query,
10484
10484
  });
10485
10485
  };
10486
- const create$y = (http, params, rawData) => {
10486
+ const create$D = (http, params, rawData) => {
10487
10487
  const data = index$2(rawData);
10488
- return post$1(http, getBaseUrl$o(params), data);
10488
+ return post$1(http, getBaseUrl$s(params), data);
10489
10489
  };
10490
- const update$v = (http, params, rawData, headers) => {
10490
+ const update$x = (http, params, rawData, headers) => {
10491
10491
  const data = index$2(rawData);
10492
10492
  delete data.sys;
10493
10493
  return put$1(http, getAppDefinitionUrl(params), data, {
@@ -10497,11 +10497,11 @@ var contentfulManagement = (function (exports) {
10497
10497
  },
10498
10498
  });
10499
10499
  };
10500
- const del$B = (http, params) => {
10501
- return del$H(http, getAppDefinitionUrl(params));
10500
+ const del$G = (http, params) => {
10501
+ return del$M(http, getAppDefinitionUrl(params));
10502
10502
  };
10503
10503
  const getInstallationsForOrg = (http, params) => {
10504
- return get$14(http, getBaseUrlForOrgInstallations$1(params), {
10504
+ return get$19(http, getBaseUrlForOrgInstallations$1(params), {
10505
10505
  params: {
10506
10506
  ...normalizeSpaceId(normalizeSelect(params.query)),
10507
10507
  'sys.organization.sys.id[in]': params.organizationId,
@@ -10511,63 +10511,63 @@ var contentfulManagement = (function (exports) {
10511
10511
 
10512
10512
  var AppDefinition = /*#__PURE__*/Object.freeze({
10513
10513
  __proto__: null,
10514
- create: create$y,
10515
- del: del$B,
10516
- get: get$U,
10514
+ create: create$D,
10515
+ del: del$G,
10516
+ get: get$Z,
10517
10517
  getAppDefinitionUrl: getAppDefinitionUrl,
10518
10518
  getInstallationsForOrg: getInstallationsForOrg,
10519
- getMany: getMany$I,
10520
- update: update$v
10519
+ getMany: getMany$M,
10520
+ update: update$x
10521
10521
  });
10522
10522
 
10523
- const get$T = (http, params) => {
10524
- return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
10523
+ const get$Y = (http, params) => {
10524
+ return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
10525
10525
  };
10526
- const upsert$5 = (http, params, data) => {
10526
+ const upsert$8 = (http, params, data) => {
10527
10527
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`, data);
10528
10528
  };
10529
- const del$A = (http, params) => {
10530
- return del$H(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
10529
+ const del$F = (http, params) => {
10530
+ return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
10531
10531
  };
10532
10532
 
10533
10533
  var AppDetails = /*#__PURE__*/Object.freeze({
10534
10534
  __proto__: null,
10535
- del: del$A,
10536
- get: get$T,
10537
- upsert: upsert$5
10535
+ del: del$F,
10536
+ get: get$Y,
10537
+ upsert: upsert$8
10538
10538
  });
10539
10539
 
10540
- const get$S = (http, params) => {
10541
- return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
10540
+ const get$X = (http, params) => {
10541
+ return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
10542
10542
  };
10543
- const upsert$4 = (http, params, data) => {
10543
+ const upsert$7 = (http, params, data) => {
10544
10544
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`, data);
10545
10545
  };
10546
- const del$z = (http, params) => {
10547
- return del$H(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
10546
+ const del$E = (http, params) => {
10547
+ return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
10548
10548
  };
10549
10549
 
10550
10550
  var AppEventSubscription = /*#__PURE__*/Object.freeze({
10551
10551
  __proto__: null,
10552
- del: del$z,
10553
- get: get$S,
10554
- upsert: upsert$4
10552
+ del: del$E,
10553
+ get: get$X,
10554
+ upsert: upsert$7
10555
10555
  });
10556
10556
 
10557
- const getBaseUrl$n = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`;
10557
+ const getBaseUrl$r = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`;
10558
10558
  const getBaseUrlForOrgInstallations = (params) => `/app_definitions/${params.appDefinitionId}/app_installations`;
10559
- const getAppInstallationUrl = (params) => getBaseUrl$n(params) + `/${params.appDefinitionId}`;
10560
- const get$R = (http, params) => {
10561
- return get$14(http, getAppInstallationUrl(params), {
10559
+ const getAppInstallationUrl = (params) => getBaseUrl$r(params) + `/${params.appDefinitionId}`;
10560
+ const get$W = (http, params) => {
10561
+ return get$19(http, getAppInstallationUrl(params), {
10562
10562
  params: normalizeSelect(params.query),
10563
10563
  });
10564
10564
  };
10565
- const getMany$H = (http, params) => {
10566
- return get$14(http, getBaseUrl$n(params), {
10565
+ const getMany$L = (http, params) => {
10566
+ return get$19(http, getBaseUrl$r(params), {
10567
10567
  params: normalizeSelect(params.query),
10568
10568
  });
10569
10569
  };
10570
- const upsert$3 = (http, params, rawData, headers) => {
10570
+ const upsert$6 = (http, params, rawData, headers) => {
10571
10571
  const data = index$2(rawData);
10572
10572
  return put$1(http, getAppInstallationUrl(params), data, {
10573
10573
  headers: {
@@ -10578,11 +10578,11 @@ var contentfulManagement = (function (exports) {
10578
10578
  },
10579
10579
  });
10580
10580
  };
10581
- const del$y = (http, params) => {
10582
- return del$H(http, getAppInstallationUrl(params));
10581
+ const del$D = (http, params) => {
10582
+ return del$M(http, getAppInstallationUrl(params));
10583
10583
  };
10584
10584
  const getForOrganization$3 = (http, params) => {
10585
- return get$14(http, getBaseUrlForOrgInstallations(params), {
10585
+ return get$19(http, getBaseUrlForOrgInstallations(params), {
10586
10586
  params: {
10587
10587
  ...normalizeSpaceId(normalizeSelect(params.query)),
10588
10588
  'sys.organization.sys.id[in]': params.organizationId,
@@ -10592,59 +10592,59 @@ var contentfulManagement = (function (exports) {
10592
10592
 
10593
10593
  var AppInstallation = /*#__PURE__*/Object.freeze({
10594
10594
  __proto__: null,
10595
- del: del$y,
10596
- get: get$R,
10595
+ del: del$D,
10596
+ get: get$W,
10597
10597
  getAppInstallationUrl: getAppInstallationUrl,
10598
10598
  getForOrganization: getForOrganization$3,
10599
- getMany: getMany$H,
10600
- upsert: upsert$3
10599
+ getMany: getMany$L,
10600
+ upsert: upsert$6
10601
10601
  });
10602
10602
 
10603
- const get$Q = (http, params) => {
10604
- return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
10603
+ const get$V = (http, params) => {
10604
+ return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
10605
10605
  };
10606
- const getMany$G = (http, params) => {
10607
- return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`);
10606
+ const getMany$K = (http, params) => {
10607
+ return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`);
10608
10608
  };
10609
- const create$x = (http, params, data) => {
10609
+ const create$C = (http, params, data) => {
10610
10610
  return post$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`, data);
10611
10611
  };
10612
- const del$x = (http, params) => {
10613
- return del$H(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
10612
+ const del$C = (http, params) => {
10613
+ return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
10614
10614
  };
10615
10615
 
10616
10616
  var AppKey = /*#__PURE__*/Object.freeze({
10617
10617
  __proto__: null,
10618
- create: create$x,
10619
- del: del$x,
10620
- get: get$Q,
10621
- getMany: getMany$G
10618
+ create: create$C,
10619
+ del: del$C,
10620
+ get: get$V,
10621
+ getMany: getMany$K
10622
10622
  });
10623
10623
 
10624
- const create$w = (http, params, data) => {
10624
+ const create$B = (http, params, data) => {
10625
10625
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/signed_requests`, data);
10626
10626
  };
10627
10627
 
10628
10628
  var AppSignedRequest = /*#__PURE__*/Object.freeze({
10629
10629
  __proto__: null,
10630
- create: create$w
10630
+ create: create$B
10631
10631
  });
10632
10632
 
10633
- const get$P = (http, params) => {
10634
- return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
10633
+ const get$U = (http, params) => {
10634
+ return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
10635
10635
  };
10636
- const upsert$2 = (http, params, data) => {
10636
+ const upsert$5 = (http, params, data) => {
10637
10637
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`, data);
10638
10638
  };
10639
- const del$w = (http, params) => {
10640
- return del$H(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
10639
+ const del$B = (http, params) => {
10640
+ return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
10641
10641
  };
10642
10642
 
10643
10643
  var AppSigningSecret = /*#__PURE__*/Object.freeze({
10644
10644
  __proto__: null,
10645
- del: del$w,
10646
- get: get$P,
10647
- upsert: upsert$2
10645
+ del: del$B,
10646
+ get: get$U,
10647
+ upsert: upsert$5
10648
10648
  });
10649
10649
 
10650
10650
  /**
@@ -10660,20 +10660,20 @@ var contentfulManagement = (function (exports) {
10660
10660
  return uploadHttp;
10661
10661
  }
10662
10662
 
10663
- const getBaseUrl$m = (params) => `/organizations/${params.organizationId}/app_uploads`;
10664
- const getAppUploadUrl = (params) => `${getBaseUrl$m(params)}/${params.appUploadId}`;
10665
- const get$O = (http, params) => {
10663
+ const getBaseUrl$q = (params) => `/organizations/${params.organizationId}/app_uploads`;
10664
+ const getAppUploadUrl = (params) => `${getBaseUrl$q(params)}/${params.appUploadId}`;
10665
+ const get$T = (http, params) => {
10666
10666
  const httpUpload = getUploadHttpClient(http);
10667
- return get$14(httpUpload, getAppUploadUrl(params));
10667
+ return get$19(httpUpload, getAppUploadUrl(params));
10668
10668
  };
10669
- const del$v = (http, params) => {
10669
+ const del$A = (http, params) => {
10670
10670
  const httpUpload = getUploadHttpClient(http);
10671
- return del$H(httpUpload, getAppUploadUrl(params));
10671
+ return del$M(httpUpload, getAppUploadUrl(params));
10672
10672
  };
10673
- const create$v = (http, params, payload) => {
10673
+ const create$A = (http, params, payload) => {
10674
10674
  const httpUpload = getUploadHttpClient(http);
10675
10675
  const { file } = payload;
10676
- return post$1(httpUpload, getBaseUrl$m(params), file, {
10676
+ return post$1(httpUpload, getBaseUrl$q(params), file, {
10677
10677
  headers: {
10678
10678
  'Content-Type': 'application/octet-stream',
10679
10679
  },
@@ -10682,9 +10682,9 @@ var contentfulManagement = (function (exports) {
10682
10682
 
10683
10683
  var AppUpload = /*#__PURE__*/Object.freeze({
10684
10684
  __proto__: null,
10685
- create: create$v,
10686
- del: del$v,
10687
- get: get$O
10685
+ create: create$A,
10686
+ del: del$A,
10687
+ get: get$T
10688
10688
  });
10689
10689
 
10690
10690
  const getBaseUploadUrl = (params) => {
@@ -10697,7 +10697,7 @@ var contentfulManagement = (function (exports) {
10697
10697
  const path = getBaseUploadUrl(params);
10698
10698
  return path + `/${params.uploadId}`;
10699
10699
  };
10700
- const create$u = (http, params, data) => {
10700
+ const create$z = (http, params, data) => {
10701
10701
  const httpUpload = getUploadHttpClient(http);
10702
10702
  const { file } = data;
10703
10703
  if (!file) {
@@ -10710,37 +10710,37 @@ var contentfulManagement = (function (exports) {
10710
10710
  },
10711
10711
  });
10712
10712
  };
10713
- const del$u = (http, params) => {
10713
+ const del$z = (http, params) => {
10714
10714
  const httpUpload = getUploadHttpClient(http);
10715
10715
  const path = getEntityUploadUrl(params);
10716
- return del$H(httpUpload, path);
10716
+ return del$M(httpUpload, path);
10717
10717
  };
10718
- const get$N = (http, params) => {
10718
+ const get$S = (http, params) => {
10719
10719
  const httpUpload = getUploadHttpClient(http);
10720
10720
  const path = getEntityUploadUrl(params);
10721
- return get$14(httpUpload, path);
10721
+ return get$19(httpUpload, path);
10722
10722
  };
10723
10723
 
10724
10724
  var Upload = /*#__PURE__*/Object.freeze({
10725
10725
  __proto__: null,
10726
- create: create$u,
10727
- del: del$u,
10728
- get: get$N
10726
+ create: create$z,
10727
+ del: del$z,
10728
+ get: get$S
10729
10729
  });
10730
10730
 
10731
- const get$M = (http, params, rawData, headers) => {
10732
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, {
10731
+ const get$R = (http, params, rawData, headers) => {
10732
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, {
10733
10733
  params: normalizeSelect(params.query),
10734
10734
  headers: headers ? { ...headers } : undefined,
10735
10735
  });
10736
10736
  };
10737
- const getMany$F = (http, params, rawData, headers) => {
10738
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, {
10737
+ const getMany$J = (http, params, rawData, headers) => {
10738
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, {
10739
10739
  params: normalizeSelect(params.query),
10740
10740
  headers: headers ? { ...headers } : undefined,
10741
10741
  });
10742
10742
  };
10743
- const update$u = (http, params, rawData, headers) => {
10743
+ const update$w = (http, params, rawData, headers) => {
10744
10744
  const data = index$2(rawData);
10745
10745
  delete data.sys;
10746
10746
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, data, {
@@ -10750,7 +10750,7 @@ var contentfulManagement = (function (exports) {
10750
10750
  },
10751
10751
  });
10752
10752
  };
10753
- const create$t = (http, params, rawData, headers) => {
10753
+ const create$y = (http, params, rawData, headers) => {
10754
10754
  const data = index$2(rawData);
10755
10755
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, data, {
10756
10756
  headers,
@@ -10767,7 +10767,7 @@ var contentfulManagement = (function (exports) {
10767
10767
  const { file } = data.fields;
10768
10768
  return Promise.all(Object.keys(file).map(async (locale) => {
10769
10769
  const { contentType, fileName } = file[locale];
10770
- return create$u(httpUpload, params, file[locale]).then((upload) => {
10770
+ return create$z(httpUpload, params, file[locale]).then((upload) => {
10771
10771
  return {
10772
10772
  [locale]: {
10773
10773
  contentType,
@@ -10792,7 +10792,7 @@ var contentfulManagement = (function (exports) {
10792
10792
  file,
10793
10793
  },
10794
10794
  };
10795
- return create$t(http, params, asset, {});
10795
+ return create$y(http, params, asset, {});
10796
10796
  })
10797
10797
  .catch(errorHandler);
10798
10798
  };
@@ -10802,7 +10802,7 @@ var contentfulManagement = (function (exports) {
10802
10802
  const ASSET_PROCESSING_CHECK_WAIT$1 = 3000;
10803
10803
  const ASSET_PROCESSING_CHECK_RETRIES$1 = 10;
10804
10804
  async function checkIfAssetHasUrl$1(http, params, { resolve, reject, locale, processingCheckWait = ASSET_PROCESSING_CHECK_WAIT$1, processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES$1, checkCount = 0, }) {
10805
- return get$M(http, params).then((asset) => {
10805
+ return get$R(http, params).then((asset) => {
10806
10806
  if (asset.fields.file[locale].url) {
10807
10807
  resolve(asset);
10808
10808
  }
@@ -10864,43 +10864,43 @@ var contentfulManagement = (function (exports) {
10864
10864
 
10865
10865
  var ReleaseAsset = /*#__PURE__*/Object.freeze({
10866
10866
  __proto__: null,
10867
- create: create$t,
10867
+ create: create$y,
10868
10868
  createFromFiles: createFromFiles$1,
10869
10869
  createWithId: createWithId$d,
10870
- get: get$M,
10871
- getMany: getMany$F,
10870
+ get: get$R,
10871
+ getMany: getMany$J,
10872
10872
  processForAllLocales: processForAllLocales$1,
10873
10873
  processForLocale: processForLocale$1,
10874
- update: update$u
10874
+ update: update$w
10875
10875
  });
10876
10876
 
10877
- const get$L = (http, params, rawData, headers) => {
10877
+ const get$Q = (http, params, rawData, headers) => {
10878
10878
  if (params.releaseId) {
10879
- return get$M(http, params);
10879
+ return get$R(http, params);
10880
10880
  }
10881
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, {
10881
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, {
10882
10882
  params: normalizeSelect(params.query),
10883
10883
  headers: headers ? { ...headers } : undefined,
10884
10884
  });
10885
10885
  };
10886
- const getPublished$1 = (http, params, rawData, headers) => {
10887
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, {
10886
+ const getPublished$2 = (http, params, rawData, headers) => {
10887
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, {
10888
10888
  params: normalizeSelect(params.query),
10889
10889
  headers: headers ? { ...headers } : undefined,
10890
10890
  });
10891
10891
  };
10892
- const getMany$E = (http, params, rawData, headers) => {
10892
+ const getMany$I = (http, params, rawData, headers) => {
10893
10893
  if (params.releaseId) {
10894
- return getMany$F(http, params);
10894
+ return getMany$J(http, params);
10895
10895
  }
10896
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
10896
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
10897
10897
  params: normalizeSelect(params.query),
10898
10898
  headers: headers ? { ...headers } : undefined,
10899
10899
  });
10900
10900
  };
10901
- const update$t = (http, params, rawData, headers) => {
10901
+ const update$v = (http, params, rawData, headers) => {
10902
10902
  if (params.releaseId) {
10903
- return update$u(http, params, rawData, headers ?? {});
10903
+ return update$w(http, params, rawData, headers ?? {});
10904
10904
  }
10905
10905
  const data = index$2(rawData);
10906
10906
  delete data.sys;
@@ -10911,10 +10911,10 @@ var contentfulManagement = (function (exports) {
10911
10911
  },
10912
10912
  });
10913
10913
  };
10914
- const del$t = (http, params) => {
10915
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
10914
+ const del$y = (http, params) => {
10915
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
10916
10916
  };
10917
- const publish$4 = (http, params, rawData) => {
10917
+ const publish$9 = (http, params, rawData) => {
10918
10918
  const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
10919
10919
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
10920
10920
  headers: {
@@ -10922,7 +10922,7 @@ var contentfulManagement = (function (exports) {
10922
10922
  },
10923
10923
  });
10924
10924
  };
10925
- const unpublish$4 = (http, params, rawData) => {
10925
+ const unpublish$9 = (http, params, rawData) => {
10926
10926
  if (params.locales?.length) {
10927
10927
  const payload = { remove: { fields: { '*': params.locales } } };
10928
10928
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
@@ -10932,18 +10932,18 @@ var contentfulManagement = (function (exports) {
10932
10932
  });
10933
10933
  }
10934
10934
  else {
10935
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
10935
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
10936
10936
  }
10937
10937
  };
10938
10938
  const archive$2 = (http, params) => {
10939
10939
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
10940
10940
  };
10941
10941
  const unarchive$3 = (http, params) => {
10942
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
10942
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
10943
10943
  };
10944
- const create$s = (http, params, rawData) => {
10944
+ const create$x = (http, params, rawData) => {
10945
10945
  if (params.releaseId) {
10946
- return create$t(http, params, rawData, {});
10946
+ return create$y(http, params, rawData, {});
10947
10947
  }
10948
10948
  const data = index$2(rawData);
10949
10949
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, data);
@@ -10963,7 +10963,7 @@ var contentfulManagement = (function (exports) {
10963
10963
  const { file } = data.fields;
10964
10964
  return Promise.all(Object.keys(file).map(async (locale) => {
10965
10965
  const { contentType, fileName } = file[locale];
10966
- return create$u(httpUpload, params, file[locale]).then((upload) => {
10966
+ return create$z(httpUpload, params, file[locale]).then((upload) => {
10967
10967
  return {
10968
10968
  [locale]: {
10969
10969
  contentType,
@@ -10988,7 +10988,7 @@ var contentfulManagement = (function (exports) {
10988
10988
  file,
10989
10989
  },
10990
10990
  };
10991
- return create$s(http, params, asset);
10991
+ return create$x(http, params, asset);
10992
10992
  })
10993
10993
  .catch(errorHandler);
10994
10994
  };
@@ -10998,7 +10998,7 @@ var contentfulManagement = (function (exports) {
10998
10998
  const ASSET_PROCESSING_CHECK_WAIT = 3000;
10999
10999
  const ASSET_PROCESSING_CHECK_RETRIES = 10;
11000
11000
  async function checkIfAssetHasUrl(http, params, { resolve, reject, locale, processingCheckWait = ASSET_PROCESSING_CHECK_WAIT, processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES, checkCount = 0, }) {
11001
- return get$L(http, params).then((asset) => {
11001
+ return get$Q(http, params).then((asset) => {
11002
11002
  if (asset.fields.file[locale].url) {
11003
11003
  resolve(asset);
11004
11004
  }
@@ -11075,19 +11075,19 @@ var contentfulManagement = (function (exports) {
11075
11075
  var Asset = /*#__PURE__*/Object.freeze({
11076
11076
  __proto__: null,
11077
11077
  archive: archive$2,
11078
- create: create$s,
11078
+ create: create$x,
11079
11079
  createFromFiles: createFromFiles,
11080
11080
  createWithId: createWithId$c,
11081
- del: del$t,
11082
- get: get$L,
11083
- getMany: getMany$E,
11084
- getPublished: getPublished$1,
11081
+ del: del$y,
11082
+ get: get$Q,
11083
+ getMany: getMany$I,
11084
+ getPublished: getPublished$2,
11085
11085
  processForAllLocales: processForAllLocales,
11086
11086
  processForLocale: processForLocale,
11087
- publish: publish$4,
11087
+ publish: publish$9,
11088
11088
  unarchive: unarchive$3,
11089
- unpublish: unpublish$4,
11090
- update: update$t
11089
+ unpublish: unpublish$9,
11090
+ update: update$v
11091
11091
  });
11092
11092
 
11093
11093
  const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60;
@@ -11109,7 +11109,7 @@ var contentfulManagement = (function (exports) {
11109
11109
  throw new ValidationError(name, `value (${timestamp}) cannot be in the past, current time was ${options.now}`);
11110
11110
  }
11111
11111
  };
11112
- const create$r = (http, params, data) => {
11112
+ const create$w = (http, params, data) => {
11113
11113
  const expiresAt = data.expiresAt;
11114
11114
  const now = Math.floor(Date.now() / 1000);
11115
11115
  const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME;
@@ -11121,35 +11121,35 @@ var contentfulManagement = (function (exports) {
11121
11121
  var AssetKey = /*#__PURE__*/Object.freeze({
11122
11122
  __proto__: null,
11123
11123
  ValidationError: ValidationError,
11124
- create: create$r
11124
+ create: create$w
11125
11125
  });
11126
11126
 
11127
- const getBaseUrl$l = (params) => `/organizations/${params.organizationId}/available_licenses`;
11128
- const getMany$D = (http, params) => {
11129
- return get$14(http, getBaseUrl$l(params), {
11127
+ const getBaseUrl$p = (params) => `/organizations/${params.organizationId}/available_licenses`;
11128
+ const getMany$H = (http, params) => {
11129
+ return get$19(http, getBaseUrl$p(params), {
11130
11130
  params: params.query,
11131
11131
  });
11132
11132
  };
11133
11133
 
11134
11134
  var AvailableLicense = /*#__PURE__*/Object.freeze({
11135
11135
  __proto__: null,
11136
- getMany: getMany$D
11136
+ getMany: getMany$H
11137
11137
  });
11138
11138
 
11139
- const get$K = (http, params) => {
11140
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`);
11139
+ const get$P = (http, params) => {
11140
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`);
11141
11141
  };
11142
- const publish$3 = (http, params, payload) => {
11142
+ const publish$8 = (http, params, payload) => {
11143
11143
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`, payload);
11144
11144
  };
11145
- const unpublish$3 = (http, params, payload) => {
11145
+ const unpublish$8 = (http, params, payload) => {
11146
11146
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`, payload);
11147
11147
  };
11148
11148
  const validate$2 = (http, params, payload) => {
11149
11149
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`, payload);
11150
11150
  };
11151
11151
  const getV2 = (http, params) => {
11152
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
11152
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
11153
11153
  };
11154
11154
  const publishV2 = (http, params, payload) => {
11155
11155
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions`, payload);
@@ -11163,11 +11163,11 @@ var contentfulManagement = (function (exports) {
11163
11163
 
11164
11164
  var BulkAction = /*#__PURE__*/Object.freeze({
11165
11165
  __proto__: null,
11166
- get: get$K,
11166
+ get: get$P,
11167
11167
  getV2: getV2,
11168
- publish: publish$3,
11168
+ publish: publish$8,
11169
11169
  publishV2: publishV2,
11170
- unpublish: unpublish$3,
11170
+ unpublish: unpublish$8,
11171
11171
  unpublishV2: unpublishV2,
11172
11172
  validate: validate$2,
11173
11173
  validateV2: validateV2
@@ -11209,14 +11209,14 @@ var contentfulManagement = (function (exports) {
11209
11209
  const versionPath = 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : '';
11210
11210
  return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`;
11211
11211
  };
11212
- const get$J = (http, params) => get$14(http, getEntityCommentUrl(params), {
11212
+ const get$O = (http, params) => get$19(http, getEntityCommentUrl(params), {
11213
11213
  headers: params.bodyFormat === 'rich-text'
11214
11214
  ? {
11215
11215
  [BODY_FORMAT_HEADER]: params.bodyFormat,
11216
11216
  }
11217
11217
  : {},
11218
11218
  });
11219
- const getMany$C = (http, params) => get$14(http, getEntityBaseUrl(params), {
11219
+ const getMany$G = (http, params) => get$19(http, getEntityBaseUrl(params), {
11220
11220
  params: normalizeSelect(params.query),
11221
11221
  headers: params.bodyFormat === 'rich-text'
11222
11222
  ? {
@@ -11224,7 +11224,7 @@ var contentfulManagement = (function (exports) {
11224
11224
  }
11225
11225
  : {},
11226
11226
  });
11227
- const create$q = (http, params, rawData) => {
11227
+ const create$v = (http, params, rawData) => {
11228
11228
  const data = index$2(rawData);
11229
11229
  return post$1(http, getEntityBaseUrl(params), data, {
11230
11230
  headers: {
@@ -11236,7 +11236,7 @@ var contentfulManagement = (function (exports) {
11236
11236
  },
11237
11237
  });
11238
11238
  };
11239
- const update$s = (http, params, rawData, headers) => {
11239
+ const update$u = (http, params, rawData, headers) => {
11240
11240
  const data = index$2(rawData);
11241
11241
  delete data.sys;
11242
11242
  return put$1(http, getEntityCommentUrl(params), data, {
@@ -11247,8 +11247,8 @@ var contentfulManagement = (function (exports) {
11247
11247
  },
11248
11248
  });
11249
11249
  };
11250
- const del$s = (http, { version, ...params }) => {
11251
- return del$H(http, getEntityCommentUrl(params), {
11250
+ const del$x = (http, { version, ...params }) => {
11251
+ return del$M(http, getEntityCommentUrl(params), {
11252
11252
  headers: { [VERSION_HEADER]: version },
11253
11253
  });
11254
11254
  };
@@ -11256,35 +11256,80 @@ var contentfulManagement = (function (exports) {
11256
11256
  /**
11257
11257
  * @deprecated use `getMany` instead.
11258
11258
  */
11259
- const getAll$1 = getMany$C;
11259
+ const getAll$1 = getMany$G;
11260
11260
 
11261
11261
  var Comment = /*#__PURE__*/Object.freeze({
11262
11262
  __proto__: null,
11263
- create: create$q,
11264
- del: del$s,
11265
- get: get$J,
11263
+ create: create$v,
11264
+ del: del$x,
11265
+ get: get$O,
11266
11266
  getAll: getAll$1,
11267
- getMany: getMany$C,
11268
- update: update$s
11267
+ getMany: getMany$G,
11268
+ update: update$u
11269
11269
  });
11270
11270
 
11271
- const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/component_types`;
11272
- const getMany$B = (http, params, headers) => {
11273
- return get$14(http, getBaseUrl$k(params), {
11271
+ const getBaseUrl$o = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/component_types`;
11272
+ const getMany$F = (http, params, headers) => {
11273
+ return get$19(http, getBaseUrl$o(params), {
11274
11274
  params: params.query,
11275
11275
  headers,
11276
11276
  });
11277
11277
  };
11278
+ const get$N = (http, params, headers) => {
11279
+ return get$19(http, getBaseUrl$o(params) + `/${params.componentTypeId}`, {
11280
+ headers,
11281
+ });
11282
+ };
11283
+ const create$u = (http, params, rawData, headers) => {
11284
+ const data = index$2(rawData);
11285
+ return post$1(http, getBaseUrl$o(params), data, { headers });
11286
+ };
11287
+ const upsert$4 = (http, params, rawData, headers) => {
11288
+ const { sys, ...body } = index$2(rawData);
11289
+ return put$1(http, getBaseUrl$o(params) + `/${params.componentTypeId}`, body, {
11290
+ headers: {
11291
+ ...(sys.version !== undefined && {
11292
+ 'X-Contentful-Version': sys.version,
11293
+ }),
11294
+ ...headers,
11295
+ },
11296
+ });
11297
+ };
11298
+ const del$w = (http, params) => {
11299
+ return del$M(http, getBaseUrl$o(params) + `/${params.componentTypeId}`);
11300
+ };
11301
+ const publish$7 = (http, params, headers) => {
11302
+ return put$1(http, `${getBaseUrl$o(params)}/${params.componentTypeId}/published`, null, {
11303
+ headers: {
11304
+ 'X-Contentful-Version': params.version,
11305
+ ...headers,
11306
+ },
11307
+ });
11308
+ };
11309
+ const unpublish$7 = (http, params, headers) => {
11310
+ return del$M(http, `${getBaseUrl$o(params)}/${params.componentTypeId}/published`, {
11311
+ headers: {
11312
+ 'X-Contentful-Version': params.version,
11313
+ ...headers,
11314
+ },
11315
+ });
11316
+ };
11278
11317
 
11279
11318
  var ComponentType = /*#__PURE__*/Object.freeze({
11280
11319
  __proto__: null,
11281
- getMany: getMany$B
11320
+ create: create$u,
11321
+ del: del$w,
11322
+ get: get$N,
11323
+ getMany: getMany$F,
11324
+ publish: publish$7,
11325
+ unpublish: unpublish$7,
11326
+ upsert: upsert$4
11282
11327
  });
11283
11328
 
11284
11329
  function basePath$1(organizationId) {
11285
11330
  return `/organizations/${organizationId}/taxonomy/concepts`;
11286
11331
  }
11287
- const create$p = (http, params, data) => {
11332
+ const create$t = (http, params, data) => {
11288
11333
  return post$1(http, basePath$1(params.organizationId), data);
11289
11334
  };
11290
11335
  const createWithId$b = (http, params, data) => {
@@ -11299,7 +11344,7 @@ var contentfulManagement = (function (exports) {
11299
11344
  },
11300
11345
  });
11301
11346
  };
11302
- const update$r = (http, params, data, headers) => {
11347
+ const update$t = (http, params, data, headers) => {
11303
11348
  return put$1(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, data, {
11304
11349
  headers: {
11305
11350
  'X-Contentful-Version': params.version,
@@ -11307,28 +11352,28 @@ var contentfulManagement = (function (exports) {
11307
11352
  },
11308
11353
  });
11309
11354
  };
11310
- const get$I = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/${params.conceptId}`);
11311
- const del$r = (http, params, headers) => del$H(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, {
11355
+ const get$M = (http, params) => get$19(http, `${basePath$1(params.organizationId)}/${params.conceptId}`);
11356
+ const del$v = (http, params, headers) => del$M(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, {
11312
11357
  headers: {
11313
11358
  'X-Contentful-Version': params.version ?? 0,
11314
11359
  ...headers,
11315
11360
  },
11316
11361
  });
11317
- const getMany$A = (http, params) => {
11362
+ const getMany$E = (http, params) => {
11318
11363
  const { url, queryParams } = cursorBasedCollection('', params);
11319
- return get$14(http, url, {
11364
+ return get$19(http, url, {
11320
11365
  params: queryParams,
11321
11366
  });
11322
11367
  };
11323
11368
  const getDescendants = (http, params) => {
11324
11369
  const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/descendants`, params);
11325
- return get$14(http, url, { params: queryParams });
11370
+ return get$19(http, url, { params: queryParams });
11326
11371
  };
11327
11372
  const getAncestors = (http, params) => {
11328
11373
  const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/ancestors`, params);
11329
- return get$14(http, url, { params: queryParams });
11374
+ return get$19(http, url, { params: queryParams });
11330
11375
  };
11331
- const getTotal$1 = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/total`);
11376
+ const getTotal$1 = (http, params) => get$19(http, `${basePath$1(params.organizationId)}/total`);
11332
11377
  function cursorBasedCollection(path, params) {
11333
11378
  return params.query?.pageUrl
11334
11379
  ? { url: params.query?.pageUrl }
@@ -11340,36 +11385,36 @@ var contentfulManagement = (function (exports) {
11340
11385
 
11341
11386
  var Concept = /*#__PURE__*/Object.freeze({
11342
11387
  __proto__: null,
11343
- create: create$p,
11388
+ create: create$t,
11344
11389
  createWithId: createWithId$b,
11345
- del: del$r,
11346
- get: get$I,
11390
+ del: del$v,
11391
+ get: get$M,
11347
11392
  getAncestors: getAncestors,
11348
11393
  getDescendants: getDescendants,
11349
- getMany: getMany$A,
11394
+ getMany: getMany$E,
11350
11395
  getTotal: getTotal$1,
11351
11396
  patch: patch$4,
11352
- update: update$r
11397
+ update: update$t
11353
11398
  });
11354
11399
 
11355
11400
  function basePath(orgId) {
11356
11401
  return `/organizations/${orgId}/taxonomy/concept-schemes`;
11357
11402
  }
11358
- const get$H = (http, params) => get$14(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`);
11359
- const del$q = (http, params, headers) => del$H(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, {
11403
+ const get$L = (http, params) => get$19(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`);
11404
+ const del$u = (http, params, headers) => del$M(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, {
11360
11405
  headers: {
11361
11406
  'X-Contentful-Version': params.version,
11362
11407
  ...headers,
11363
11408
  },
11364
11409
  });
11365
- const getMany$z = (http, params) => {
11410
+ const getMany$D = (http, params) => {
11366
11411
  const url = params.query?.pageUrl ?? basePath(params.organizationId);
11367
- return get$14(http, url, {
11412
+ return get$19(http, url, {
11368
11413
  params: params.query?.pageUrl ? undefined : params.query,
11369
11414
  });
11370
11415
  };
11371
- const getTotal = (http, params) => get$14(http, `${basePath(params.organizationId)}/total`);
11372
- const create$o = (http, params, data) => {
11416
+ const getTotal = (http, params) => get$19(http, `${basePath(params.organizationId)}/total`);
11417
+ const create$s = (http, params, data) => {
11373
11418
  return post$1(http, basePath(params.organizationId), data);
11374
11419
  };
11375
11420
  const createWithId$a = (http, params, data) => {
@@ -11384,7 +11429,7 @@ var contentfulManagement = (function (exports) {
11384
11429
  },
11385
11430
  });
11386
11431
  };
11387
- const update$q = (http, params, data, headers) => {
11432
+ const update$s = (http, params, data, headers) => {
11388
11433
  return put$1(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, data, {
11389
11434
  headers: {
11390
11435
  'X-Contentful-Version': params.version,
@@ -11395,39 +11440,39 @@ var contentfulManagement = (function (exports) {
11395
11440
 
11396
11441
  var ConceptScheme = /*#__PURE__*/Object.freeze({
11397
11442
  __proto__: null,
11398
- create: create$o,
11443
+ create: create$s,
11399
11444
  createWithId: createWithId$a,
11400
- del: del$q,
11401
- get: get$H,
11402
- getMany: getMany$z,
11445
+ del: del$u,
11446
+ get: get$L,
11447
+ getMany: getMany$D,
11403
11448
  getTotal: getTotal,
11404
11449
  patch: patch$3,
11405
- update: update$q
11450
+ update: update$s
11406
11451
  });
11407
11452
 
11408
- const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`;
11409
- const getContentTypeUrl$1 = (params) => getBaseUrl$j(params) + `/${params.contentTypeId}`;
11410
- const get$G = (http, params, headers) => {
11411
- return get$14(http, getContentTypeUrl$1(params), {
11453
+ const getBaseUrl$n = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`;
11454
+ const getContentTypeUrl$1 = (params) => getBaseUrl$n(params) + `/${params.contentTypeId}`;
11455
+ const get$K = (http, params, headers) => {
11456
+ return get$19(http, getContentTypeUrl$1(params), {
11412
11457
  params: normalizeSelect(params.query),
11413
11458
  headers,
11414
11459
  });
11415
11460
  };
11416
- const getMany$y = (http, params, headers) => {
11417
- return get$14(http, getBaseUrl$j(params), {
11461
+ const getMany$C = (http, params, headers) => {
11462
+ return get$19(http, getBaseUrl$n(params), {
11418
11463
  params: params.query,
11419
11464
  headers,
11420
11465
  });
11421
11466
  };
11422
- const create$n = (http, params, rawData, headers) => {
11467
+ const create$r = (http, params, rawData, headers) => {
11423
11468
  const data = index$2(rawData);
11424
- return post$1(http, getBaseUrl$j(params), data, { headers });
11469
+ return post$1(http, getBaseUrl$n(params), data, { headers });
11425
11470
  };
11426
11471
  const createWithId$9 = (http, params, rawData, headers) => {
11427
11472
  const data = index$2(rawData);
11428
11473
  return put$1(http, getContentTypeUrl$1(params), data, { headers });
11429
11474
  };
11430
- const update$p = (http, params, rawData, headers) => {
11475
+ const update$r = (http, params, rawData, headers) => {
11431
11476
  const data = index$2(rawData);
11432
11477
  delete data.sys;
11433
11478
  return put$1(http, getContentTypeUrl$1(params), data, {
@@ -11437,10 +11482,10 @@ var contentfulManagement = (function (exports) {
11437
11482
  },
11438
11483
  });
11439
11484
  };
11440
- const del$p = (http, params, headers) => {
11441
- return del$H(http, getContentTypeUrl$1(params), { headers });
11485
+ const del$t = (http, params, headers) => {
11486
+ return del$M(http, getContentTypeUrl$1(params), { headers });
11442
11487
  };
11443
- const publish$2 = (http, params, rawData, headers) => {
11488
+ const publish$6 = (http, params, rawData, headers) => {
11444
11489
  return put$1(http, getContentTypeUrl$1(params) + '/published', null, {
11445
11490
  headers: {
11446
11491
  'X-Contentful-Version': rawData.sys.version,
@@ -11448,33 +11493,103 @@ var contentfulManagement = (function (exports) {
11448
11493
  },
11449
11494
  });
11450
11495
  };
11451
- const unpublish$2 = (http, params, headers) => {
11452
- return del$H(http, getContentTypeUrl$1(params) + '/published', { headers });
11496
+ const unpublish$6 = (http, params, headers) => {
11497
+ return del$M(http, getContentTypeUrl$1(params) + '/published', { headers });
11453
11498
  };
11454
11499
 
11455
11500
  var ContentType = /*#__PURE__*/Object.freeze({
11456
11501
  __proto__: null,
11457
- create: create$n,
11502
+ create: create$r,
11458
11503
  createWithId: createWithId$9,
11459
- del: del$p,
11460
- get: get$G,
11461
- getMany: getMany$y,
11462
- publish: publish$2,
11463
- unpublish: unpublish$2,
11464
- update: update$p
11504
+ del: del$t,
11505
+ get: get$K,
11506
+ getMany: getMany$C,
11507
+ publish: publish$6,
11508
+ unpublish: unpublish$6,
11509
+ update: update$r
11465
11510
  });
11466
11511
 
11467
- const getBaseUrl$i = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`;
11468
- const get$F = (http, params) => {
11469
- return get$14(http, getBaseUrl$i(params));
11512
+ const getBaseUrl$m = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/data_assemblies`;
11513
+ const getPublicUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/public/data_assemblies`;
11514
+ const getMany$B = (http, params, headers) => {
11515
+ return get$19(http, getBaseUrl$m(params), {
11516
+ params: params.query,
11517
+ headers,
11518
+ });
11519
+ };
11520
+ const get$J = (http, params, headers) => {
11521
+ return get$19(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`, {
11522
+ headers,
11523
+ });
11470
11524
  };
11471
- const getMany$x = (http, params) => {
11472
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
11525
+ const create$q = (http, params, rawData, headers) => {
11526
+ const data = index$2(rawData);
11527
+ return post$1(http, getBaseUrl$m(params), data, { headers });
11473
11528
  };
11474
- const update$o = (http, params, rawData, headers) => {
11529
+ const update$q = (http, params, rawData, headers) => {
11530
+ const data = index$2(rawData);
11531
+ return put$1(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`, data, {
11532
+ headers: {
11533
+ 'X-Contentful-Version': rawData.sys.version ?? 0,
11534
+ ...headers,
11535
+ },
11536
+ });
11537
+ };
11538
+ const del$s = (http, params) => {
11539
+ return del$M(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`);
11540
+ };
11541
+ const publish$5 = (http, params, headers) => {
11542
+ return put$1(http, `${getBaseUrl$m(params)}/${params.dataAssemblyId}/published`, null, {
11543
+ headers: {
11544
+ 'X-Contentful-Version': params.version,
11545
+ ...headers,
11546
+ },
11547
+ });
11548
+ };
11549
+ const getPublished$1 = (http, params, headers) => {
11550
+ return get$19(http, getPublicUrl(params) + `/${params.dataAssemblyId}`, {
11551
+ headers,
11552
+ });
11553
+ };
11554
+ const getManyPublished = (http, params, headers) => {
11555
+ return get$19(http, getPublicUrl(params), {
11556
+ params: params.query,
11557
+ headers,
11558
+ });
11559
+ };
11560
+ const unpublish$5 = (http, params, headers) => {
11561
+ return del$M(http, `${getBaseUrl$m(params)}/${params.dataAssemblyId}/published`, {
11562
+ headers: {
11563
+ 'X-Contentful-Version': params.version,
11564
+ ...headers,
11565
+ },
11566
+ });
11567
+ };
11568
+
11569
+ var DataAssembly = /*#__PURE__*/Object.freeze({
11570
+ __proto__: null,
11571
+ create: create$q,
11572
+ del: del$s,
11573
+ get: get$J,
11574
+ getMany: getMany$B,
11575
+ getManyPublished: getManyPublished,
11576
+ getPublished: getPublished$1,
11577
+ publish: publish$5,
11578
+ unpublish: unpublish$5,
11579
+ update: update$q
11580
+ });
11581
+
11582
+ const getBaseUrl$l = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`;
11583
+ const get$I = (http, params) => {
11584
+ return get$19(http, getBaseUrl$l(params));
11585
+ };
11586
+ const getMany$A = (http, params) => {
11587
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
11588
+ };
11589
+ const update$p = (http, params, rawData, headers) => {
11475
11590
  const data = index$2(rawData);
11476
11591
  delete data.sys;
11477
- return put$1(http, getBaseUrl$i(params), data, {
11592
+ return put$1(http, getBaseUrl$l(params), data, {
11478
11593
  headers: {
11479
11594
  'X-Contentful-Version': rawData.sys.version ?? 0,
11480
11595
  ...headers,
@@ -11484,36 +11599,36 @@ var contentfulManagement = (function (exports) {
11484
11599
 
11485
11600
  var EditorInterface = /*#__PURE__*/Object.freeze({
11486
11601
  __proto__: null,
11487
- get: get$F,
11488
- getMany: getMany$x,
11489
- update: update$o
11602
+ get: get$I,
11603
+ getMany: getMany$A,
11604
+ update: update$p
11490
11605
  });
11491
11606
 
11492
- const getBaseUrl$h = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
11493
- const getMany$w = (http, params) => {
11494
- return get$14(http, getBaseUrl$h(params), {
11607
+ const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
11608
+ const getMany$z = (http, params) => {
11609
+ return get$19(http, getBaseUrl$k(params), {
11495
11610
  params: params.query,
11496
11611
  });
11497
11612
  };
11498
11613
 
11499
11614
  var EligibleLicense = /*#__PURE__*/Object.freeze({
11500
11615
  __proto__: null,
11501
- getMany: getMany$w
11616
+ getMany: getMany$z
11502
11617
  });
11503
11618
 
11504
- const get$E = (http, params, rawData, headers) => {
11505
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, {
11619
+ const get$H = (http, params, rawData, headers) => {
11620
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, {
11506
11621
  params: normalizeSelect(params.query),
11507
11622
  headers: { ...headers },
11508
11623
  });
11509
11624
  };
11510
- const getMany$v = (http, params, rawData, headers) => {
11511
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
11625
+ const getMany$y = (http, params, rawData, headers) => {
11626
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
11512
11627
  params: normalizeSelect(params.query),
11513
11628
  headers: { ...headers },
11514
11629
  });
11515
11630
  };
11516
- const update$n = (http, params, rawData, headers) => {
11631
+ const update$o = (http, params, rawData, headers) => {
11517
11632
  const data = index$2(rawData);
11518
11633
  delete data.sys;
11519
11634
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, data, {
@@ -11532,7 +11647,7 @@ var contentfulManagement = (function (exports) {
11532
11647
  },
11533
11648
  });
11534
11649
  };
11535
- const create$m = (http, params, rawData, headers) => {
11650
+ const create$p = (http, params, rawData, headers) => {
11536
11651
  const data = index$2(rawData);
11537
11652
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
11538
11653
  headers: {
@@ -11553,34 +11668,34 @@ var contentfulManagement = (function (exports) {
11553
11668
 
11554
11669
  var ReleaseEntry = /*#__PURE__*/Object.freeze({
11555
11670
  __proto__: null,
11556
- create: create$m,
11671
+ create: create$p,
11557
11672
  createWithId: createWithId$8,
11558
- get: get$E,
11559
- getMany: getMany$v,
11673
+ get: get$H,
11674
+ getMany: getMany$y,
11560
11675
  patch: patch$2,
11561
- update: update$n
11676
+ update: update$o
11562
11677
  });
11563
11678
 
11564
- const get$D = (http, params, rawData, headers) => {
11679
+ const get$G = (http, params, rawData, headers) => {
11565
11680
  if (params.releaseId) {
11566
- return get$E(http, params);
11681
+ return get$H(http, params);
11567
11682
  }
11568
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
11683
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
11569
11684
  params: normalizeSelect(params.query),
11570
11685
  headers: { ...headers },
11571
11686
  });
11572
11687
  };
11573
11688
  const getPublished = (http, params, rawData, headers) => {
11574
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
11689
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
11575
11690
  params: normalizeSelect(params.query),
11576
11691
  headers: { ...headers },
11577
11692
  });
11578
11693
  };
11579
- const getMany$u = (http, params, rawData, headers) => {
11694
+ const getMany$x = (http, params, rawData, headers) => {
11580
11695
  if (params.releaseId) {
11581
- return getMany$v(http, params);
11696
+ return getMany$y(http, params);
11582
11697
  }
11583
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
11698
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
11584
11699
  params: normalizeSelect(params.query),
11585
11700
  headers: { ...headers },
11586
11701
  });
@@ -11597,9 +11712,9 @@ var contentfulManagement = (function (exports) {
11597
11712
  },
11598
11713
  });
11599
11714
  };
11600
- const update$m = (http, params, rawData, headers) => {
11715
+ const update$n = (http, params, rawData, headers) => {
11601
11716
  if (params.releaseId) {
11602
- return update$n(http, params, rawData, headers ?? {});
11717
+ return update$o(http, params, rawData, headers ?? {});
11603
11718
  }
11604
11719
  const data = index$2(rawData);
11605
11720
  delete data.sys;
@@ -11610,10 +11725,10 @@ var contentfulManagement = (function (exports) {
11610
11725
  },
11611
11726
  });
11612
11727
  };
11613
- const del$o = (http, params) => {
11614
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
11728
+ const del$r = (http, params) => {
11729
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
11615
11730
  };
11616
- const publish$1 = (http, params, rawData) => {
11731
+ const publish$4 = (http, params, rawData) => {
11617
11732
  const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
11618
11733
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
11619
11734
  headers: {
@@ -11621,7 +11736,7 @@ var contentfulManagement = (function (exports) {
11621
11736
  },
11622
11737
  });
11623
11738
  };
11624
- const unpublish$1 = (http, params, rawData) => {
11739
+ const unpublish$4 = (http, params, rawData) => {
11625
11740
  if (params.locales?.length) {
11626
11741
  const payload = { remove: { fields: { '*': params.locales } } };
11627
11742
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
@@ -11631,18 +11746,18 @@ var contentfulManagement = (function (exports) {
11631
11746
  });
11632
11747
  }
11633
11748
  else {
11634
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
11749
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
11635
11750
  }
11636
11751
  };
11637
11752
  const archive$1 = (http, params) => {
11638
11753
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
11639
11754
  };
11640
11755
  const unarchive$2 = (http, params) => {
11641
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
11756
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
11642
11757
  };
11643
- const create$l = (http, params, rawData) => {
11758
+ const create$o = (http, params, rawData) => {
11644
11759
  if (params.releaseId) {
11645
- return create$m(http, params, rawData, {});
11760
+ return create$p(http, params, rawData, {});
11646
11761
  }
11647
11762
  const data = index$2(rawData);
11648
11763
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
@@ -11665,35 +11780,35 @@ var contentfulManagement = (function (exports) {
11665
11780
  const references = (http, params) => {
11666
11781
  const { spaceId, environmentId, entryId, include } = params;
11667
11782
  const level = include || 2;
11668
- return get$14(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
11783
+ return get$19(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
11669
11784
  };
11670
11785
 
11671
11786
  var Entry = /*#__PURE__*/Object.freeze({
11672
11787
  __proto__: null,
11673
11788
  archive: archive$1,
11674
- create: create$l,
11789
+ create: create$o,
11675
11790
  createWithId: createWithId$7,
11676
- del: del$o,
11677
- get: get$D,
11678
- getMany: getMany$u,
11791
+ del: del$r,
11792
+ get: get$G,
11793
+ getMany: getMany$x,
11679
11794
  getPublished: getPublished,
11680
11795
  patch: patch$1,
11681
- publish: publish$1,
11796
+ publish: publish$4,
11682
11797
  references: references,
11683
11798
  unarchive: unarchive$2,
11684
- unpublish: unpublish$1,
11685
- update: update$m
11799
+ unpublish: unpublish$4,
11800
+ update: update$n
11686
11801
  });
11687
11802
 
11688
- const get$C = (http, params) => {
11689
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
11803
+ const get$F = (http, params) => {
11804
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
11690
11805
  };
11691
- const getMany$t = (http, params) => {
11692
- return get$14(http, `/spaces/${params.spaceId}/environments`, {
11806
+ const getMany$w = (http, params) => {
11807
+ return get$19(http, `/spaces/${params.spaceId}/environments`, {
11693
11808
  params: params.query,
11694
11809
  });
11695
11810
  };
11696
- const update$l = (http, params, rawData, headers) => {
11811
+ const update$m = (http, params, rawData, headers) => {
11697
11812
  const data = index$2(rawData);
11698
11813
  delete data.sys;
11699
11814
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`, data, {
@@ -11703,10 +11818,10 @@ var contentfulManagement = (function (exports) {
11703
11818
  },
11704
11819
  });
11705
11820
  };
11706
- const del$n = (http, params) => {
11707
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
11821
+ const del$q = (http, params) => {
11822
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
11708
11823
  };
11709
- const create$k = (http, params, rawData, headers) => {
11824
+ const create$n = (http, params, rawData, headers) => {
11710
11825
  const data = index$2(rawData);
11711
11826
  return post$1(http, `/spaces/${params.spaceId}/environments`, data, {
11712
11827
  headers,
@@ -11728,27 +11843,27 @@ var contentfulManagement = (function (exports) {
11728
11843
 
11729
11844
  var Environment = /*#__PURE__*/Object.freeze({
11730
11845
  __proto__: null,
11731
- create: create$k,
11846
+ create: create$n,
11732
11847
  createWithId: createWithId$6,
11733
- del: del$n,
11734
- get: get$C,
11735
- getMany: getMany$t,
11736
- update: update$l
11848
+ del: del$q,
11849
+ get: get$F,
11850
+ getMany: getMany$w,
11851
+ update: update$m
11737
11852
  });
11738
11853
 
11739
11854
  /**
11740
11855
  * Urls
11741
11856
  */
11742
- const getBaseUrl$g = (params) => `/spaces/${params.spaceId}/environment_aliases`;
11743
- const getEnvironmentAliasUrl = (params) => getBaseUrl$g(params) + `/${params.environmentAliasId}`;
11857
+ const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environment_aliases`;
11858
+ const getEnvironmentAliasUrl = (params) => getBaseUrl$j(params) + `/${params.environmentAliasId}`;
11744
11859
  /**
11745
11860
  * Endpoints
11746
11861
  */
11747
- const get$B = (http, params) => {
11748
- return get$14(http, getEnvironmentAliasUrl(params));
11862
+ const get$E = (http, params) => {
11863
+ return get$19(http, getEnvironmentAliasUrl(params));
11749
11864
  };
11750
- const getMany$s = (http, params) => {
11751
- return get$14(http, getBaseUrl$g(params), {
11865
+ const getMany$v = (http, params) => {
11866
+ return get$19(http, getBaseUrl$j(params), {
11752
11867
  params: params.query,
11753
11868
  });
11754
11869
  };
@@ -11758,7 +11873,7 @@ var contentfulManagement = (function (exports) {
11758
11873
  headers: headers,
11759
11874
  });
11760
11875
  };
11761
- const update$k = (http, params, rawData, headers) => {
11876
+ const update$l = (http, params, rawData, headers) => {
11762
11877
  const data = index$2(rawData);
11763
11878
  delete data.sys;
11764
11879
  return put$1(http, getEnvironmentAliasUrl(params), data, {
@@ -11768,32 +11883,32 @@ var contentfulManagement = (function (exports) {
11768
11883
  },
11769
11884
  });
11770
11885
  };
11771
- const del$m = (http, params) => {
11772
- return del$H(http, getEnvironmentAliasUrl(params));
11886
+ const del$p = (http, params) => {
11887
+ return del$M(http, getEnvironmentAliasUrl(params));
11773
11888
  };
11774
11889
 
11775
11890
  var EnvironmentAlias = /*#__PURE__*/Object.freeze({
11776
11891
  __proto__: null,
11777
11892
  createWithId: createWithId$5,
11778
- del: del$m,
11779
- get: get$B,
11780
- getMany: getMany$s,
11781
- update: update$k
11893
+ del: del$p,
11894
+ get: get$E,
11895
+ getMany: getMany$v,
11896
+ update: update$l
11782
11897
  });
11783
11898
 
11784
11899
  const apiPath$1 = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
11785
- const get$A = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
11786
- ? get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
11900
+ const get$D = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
11901
+ ? get$19(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
11787
11902
  params: query,
11788
11903
  headers,
11789
11904
  })
11790
- : get$14(http, apiPath$1(organizationId, environmentTemplateId), {
11905
+ : get$19(http, apiPath$1(organizationId, environmentTemplateId), {
11791
11906
  params: query,
11792
11907
  headers,
11793
11908
  });
11794
- const getMany$r = (http, { organizationId, query = {} }, headers) => get$14(http, apiPath$1(organizationId), { params: query, headers });
11795
- const create$j = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
11796
- const update$j = (http, { organizationId, environmentTemplateId }, payload, headers) => {
11909
+ const getMany$u = (http, { organizationId, query = {} }, headers) => get$19(http, apiPath$1(organizationId), { params: query, headers });
11910
+ const create$m = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
11911
+ const update$k = (http, { organizationId, environmentTemplateId }, payload, headers) => {
11797
11912
  const data = index$2(payload);
11798
11913
  delete data.sys;
11799
11914
  return put$1(http, apiPath$1(organizationId, environmentTemplateId), data, {
@@ -11806,8 +11921,8 @@ var contentfulManagement = (function (exports) {
11806
11921
  const versionUpdate = (http, { organizationId, version, environmentTemplateId }, payload, headers) => patch$5(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), payload, {
11807
11922
  headers,
11808
11923
  });
11809
- const del$l = (http, { organizationId, environmentTemplateId }, headers) => del$H(http, apiPath$1(organizationId, environmentTemplateId), { headers });
11810
- const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions'), {
11924
+ const del$o = (http, { organizationId, environmentTemplateId }, headers) => del$M(http, apiPath$1(organizationId, environmentTemplateId), { headers });
11925
+ const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$19(http, apiPath$1(organizationId, environmentTemplateId, 'versions'), {
11811
11926
  params: query,
11812
11927
  headers,
11813
11928
  });
@@ -11815,24 +11930,24 @@ var contentfulManagement = (function (exports) {
11815
11930
  ? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated`
11816
11931
  : `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`, payload, { headers });
11817
11932
  const install = (http, { spaceId, environmentId, environmentTemplateId }, payload, headers) => post$1(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions`, payload, { headers });
11818
- const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$H(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
11933
+ const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$M(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
11819
11934
 
11820
11935
  var EnvironmentTemplate = /*#__PURE__*/Object.freeze({
11821
11936
  __proto__: null,
11822
- create: create$j,
11823
- del: del$l,
11937
+ create: create$m,
11938
+ del: del$o,
11824
11939
  disconnect: disconnect,
11825
- get: get$A,
11826
- getMany: getMany$r,
11940
+ get: get$D,
11941
+ getMany: getMany$u,
11827
11942
  install: install,
11828
- update: update$j,
11943
+ update: update$k,
11829
11944
  validate: validate$1,
11830
11945
  versionUpdate: versionUpdate,
11831
11946
  versions: versions
11832
11947
  });
11833
11948
 
11834
11949
  const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
11835
- const getMany$q = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$14(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
11950
+ const getMany$t = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$19(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
11836
11951
  params: {
11837
11952
  ...otherProps,
11838
11953
  ...(environmentId && { 'environment.sys.id': environmentId }),
@@ -11840,7 +11955,7 @@ var contentfulManagement = (function (exports) {
11840
11955
  },
11841
11956
  headers,
11842
11957
  });
11843
- const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$14(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
11958
+ const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$19(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
11844
11959
  params: {
11845
11960
  ...(installationId && { 'sys.id': installationId }),
11846
11961
  ...paginationProps,
@@ -11851,29 +11966,29 @@ var contentfulManagement = (function (exports) {
11851
11966
  var EnvironmentTemplateInstallation = /*#__PURE__*/Object.freeze({
11852
11967
  __proto__: null,
11853
11968
  getForEnvironment: getForEnvironment$1,
11854
- getMany: getMany$q
11969
+ getMany: getMany$t
11855
11970
  });
11856
11971
 
11857
- const getBaseUrl$f = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`;
11858
- const getExtensionUrl = (params) => getBaseUrl$f(params) + `/${params.extensionId}`;
11859
- const get$z = (http, params) => {
11860
- return get$14(http, getExtensionUrl(params), {
11972
+ const getBaseUrl$i = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`;
11973
+ const getExtensionUrl = (params) => getBaseUrl$i(params) + `/${params.extensionId}`;
11974
+ const get$C = (http, params) => {
11975
+ return get$19(http, getExtensionUrl(params), {
11861
11976
  params: normalizeSelect(params.query),
11862
11977
  });
11863
11978
  };
11864
- const getMany$p = (http, params) => {
11865
- return get$14(http, getBaseUrl$f(params), {
11979
+ const getMany$s = (http, params) => {
11980
+ return get$19(http, getBaseUrl$i(params), {
11866
11981
  params: normalizeSelect(params.query),
11867
11982
  });
11868
11983
  };
11869
- const create$i = (http, params, rawData, headers) => {
11870
- return post$1(http, getBaseUrl$f(params), rawData, { headers });
11984
+ const create$l = (http, params, rawData, headers) => {
11985
+ return post$1(http, getBaseUrl$i(params), rawData, { headers });
11871
11986
  };
11872
11987
  const createWithId$4 = (http, params, rawData, headers) => {
11873
11988
  const data = index$2(rawData);
11874
11989
  return put$1(http, getExtensionUrl(params), data, { headers });
11875
11990
  };
11876
- const update$i = async (http, params, rawData, headers) => {
11991
+ const update$j = async (http, params, rawData, headers) => {
11877
11992
  const data = index$2(rawData);
11878
11993
  delete data.sys;
11879
11994
  return put$1(http, getExtensionUrl(params), data, {
@@ -11883,18 +11998,74 @@ var contentfulManagement = (function (exports) {
11883
11998
  },
11884
11999
  });
11885
12000
  };
11886
- const del$k = (http, params) => {
11887
- return del$H(http, getExtensionUrl(params));
12001
+ const del$n = (http, params) => {
12002
+ return del$M(http, getExtensionUrl(params));
11888
12003
  };
11889
12004
 
11890
12005
  var Extension = /*#__PURE__*/Object.freeze({
11891
12006
  __proto__: null,
11892
- create: create$i,
12007
+ create: create$l,
11893
12008
  createWithId: createWithId$4,
11894
- del: del$k,
11895
- get: get$z,
12009
+ del: del$n,
12010
+ get: get$C,
11896
12011
  getExtensionUrl: getExtensionUrl,
11897
- getMany: getMany$p,
12012
+ getMany: getMany$s,
12013
+ update: update$j
12014
+ });
12015
+
12016
+ const getBaseUrl$h = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/fragments`;
12017
+ const getMany$r = (http, params, headers) => {
12018
+ return get$19(http, getBaseUrl$h(params), {
12019
+ params: params.query,
12020
+ headers,
12021
+ });
12022
+ };
12023
+ const get$B = (http, params, headers) => {
12024
+ return get$19(http, getBaseUrl$h(params) + `/${params.fragmentId}`, { headers });
12025
+ };
12026
+ const create$k = (http, params, rawData, headers) => {
12027
+ const data = index$2(rawData);
12028
+ return post$1(http, getBaseUrl$h(params), data, { headers });
12029
+ };
12030
+ const update$i = (http, params, rawData, headers) => {
12031
+ const { sys, ...body } = index$2(rawData);
12032
+ return put$1(http, getBaseUrl$h(params) + `/${params.fragmentId}`, body, {
12033
+ headers: {
12034
+ ...(sys?.version !== undefined && {
12035
+ 'X-Contentful-Version': sys.version,
12036
+ }),
12037
+ ...headers,
12038
+ },
12039
+ });
12040
+ };
12041
+ const del$m = (http, params) => {
12042
+ return del$M(http, getBaseUrl$h(params) + `/${params.fragmentId}`);
12043
+ };
12044
+ const publish$3 = (http, params, headers) => {
12045
+ return put$1(http, getBaseUrl$h(params) + `/${params.fragmentId}/published`, null, {
12046
+ headers: {
12047
+ 'X-Contentful-Version': params.version,
12048
+ ...headers,
12049
+ },
12050
+ });
12051
+ };
12052
+ const unpublish$3 = (http, params, headers) => {
12053
+ return del$M(http, getBaseUrl$h(params) + `/${params.fragmentId}/published`, {
12054
+ headers: {
12055
+ 'X-Contentful-Version': params.version,
12056
+ ...headers,
12057
+ },
12058
+ });
12059
+ };
12060
+
12061
+ var Fragment = /*#__PURE__*/Object.freeze({
12062
+ __proto__: null,
12063
+ create: create$k,
12064
+ del: del$m,
12065
+ get: get$B,
12066
+ getMany: getMany$r,
12067
+ publish: publish$3,
12068
+ unpublish: unpublish$3,
11898
12069
  update: update$i
11899
12070
  });
11900
12071
 
@@ -11904,22 +12075,22 @@ var contentfulManagement = (function (exports) {
11904
12075
  const getFunctionsEnvURL = (params) => {
11905
12076
  return `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions`;
11906
12077
  };
11907
- const get$y = (http, params) => {
11908
- return get$14(http, getFunctionUrl(params));
12078
+ const get$A = (http, params) => {
12079
+ return get$19(http, getFunctionUrl(params));
11909
12080
  };
11910
- const getMany$o = (http, params) => {
11911
- return get$14(http, getManyUrl(params), { params: params.query });
12081
+ const getMany$q = (http, params) => {
12082
+ return get$19(http, getManyUrl(params), { params: params.query });
11912
12083
  };
11913
12084
  const getManyForEnvironment$1 = (http, params) => {
11914
- return get$14(http, getFunctionsEnvURL(params), {
12085
+ return get$19(http, getFunctionsEnvURL(params), {
11915
12086
  params: params.query,
11916
12087
  });
11917
12088
  };
11918
12089
 
11919
12090
  var Function$1 = /*#__PURE__*/Object.freeze({
11920
12091
  __proto__: null,
11921
- get: get$y,
11922
- getMany: getMany$o,
12092
+ get: get$A,
12093
+ getMany: getMany$q,
11923
12094
  getManyForEnvironment: getManyForEnvironment$1
11924
12095
  });
11925
12096
 
@@ -11928,15 +12099,15 @@ var contentfulManagement = (function (exports) {
11928
12099
  };
11929
12100
  const baseURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
11930
12101
  const getURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
11931
- const get$x = (http, params) => {
11932
- return get$14(http, getURL(params), {
12102
+ const get$z = (http, params) => {
12103
+ return get$19(http, getURL(params), {
11933
12104
  headers: {
11934
12105
  ...FunctionLogAlphaHeaders,
11935
12106
  },
11936
12107
  });
11937
12108
  };
11938
- const getMany$n = (http, params) => {
11939
- return get$14(http, baseURL(params), {
12109
+ const getMany$p = (http, params) => {
12110
+ return get$19(http, baseURL(params), {
11940
12111
  params: params.query,
11941
12112
  headers: {
11942
12113
  ...FunctionLogAlphaHeaders,
@@ -11946,12 +12117,12 @@ var contentfulManagement = (function (exports) {
11946
12117
 
11947
12118
  var FunctionLog = /*#__PURE__*/Object.freeze({
11948
12119
  __proto__: null,
11949
- get: get$x,
11950
- getMany: getMany$n
12120
+ get: get$z,
12121
+ getMany: getMany$p
11951
12122
  });
11952
12123
 
11953
- const get$w = (http, { url, config }) => {
11954
- return get$14(http, url, config);
12124
+ const get$y = (http, { url, config }) => {
12125
+ return get$19(http, url, config);
11955
12126
  };
11956
12127
  const post = (http, { url, config }, payload) => {
11957
12128
  return post$1(http, url, payload, config);
@@ -11962,8 +12133,8 @@ var contentfulManagement = (function (exports) {
11962
12133
  const patch = (http, { url, config }, payload) => {
11963
12134
  return patch$5(http, url, payload, config);
11964
12135
  };
11965
- const del$j = (http, { url, config }) => {
11966
- return del$H(http, url, config);
12136
+ const del$l = (http, { url, config }) => {
12137
+ return del$M(http, url, config);
11967
12138
  };
11968
12139
  const request = (http$1, { url, config }) => {
11969
12140
  return http(http$1, url, config);
@@ -11971,23 +12142,23 @@ var contentfulManagement = (function (exports) {
11971
12142
 
11972
12143
  var Http = /*#__PURE__*/Object.freeze({
11973
12144
  __proto__: null,
11974
- del: del$j,
11975
- get: get$w,
12145
+ del: del$l,
12146
+ get: get$y,
11976
12147
  patch: patch,
11977
12148
  post: post,
11978
12149
  put: put,
11979
12150
  request: request
11980
12151
  });
11981
12152
 
11982
- const get$v = (http, params) => {
11983
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
12153
+ const get$x = (http, params) => {
12154
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
11984
12155
  };
11985
- const getMany$m = (http, params) => {
11986
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
12156
+ const getMany$o = (http, params) => {
12157
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
11987
12158
  params: normalizeSelect(params.query),
11988
12159
  });
11989
12160
  };
11990
- const create$h = (http, params, data, headers) => {
12161
+ const create$j = (http, params, data, headers) => {
11991
12162
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, data, {
11992
12163
  headers,
11993
12164
  });
@@ -12003,26 +12174,26 @@ var contentfulManagement = (function (exports) {
12003
12174
  },
12004
12175
  });
12005
12176
  };
12006
- const del$i = (http, params) => {
12007
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
12177
+ const del$k = (http, params) => {
12178
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
12008
12179
  };
12009
12180
 
12010
12181
  var Locale = /*#__PURE__*/Object.freeze({
12011
12182
  __proto__: null,
12012
- create: create$h,
12013
- del: del$i,
12014
- get: get$v,
12015
- getMany: getMany$m,
12183
+ create: create$j,
12184
+ del: del$k,
12185
+ get: get$x,
12186
+ getMany: getMany$o,
12016
12187
  update: update$h
12017
12188
  });
12018
12189
 
12019
- const getMany$l = (http, params) => {
12020
- return get$14(http, `/organizations`, {
12190
+ const getMany$n = (http, params) => {
12191
+ return get$19(http, `/organizations`, {
12021
12192
  params: params?.query,
12022
12193
  });
12023
12194
  };
12024
- const get$u = (http, params) => {
12025
- return getMany$l(http, { query: { limit: 100 } }).then((data) => {
12195
+ const get$w = (http, params) => {
12196
+ return getMany$n(http, { query: { limit: 100 } }).then((data) => {
12026
12197
  const org = data.items.find((org) => org.sys.id === params.organizationId);
12027
12198
  if (!org) {
12028
12199
  const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`);
@@ -12040,8 +12211,8 @@ var contentfulManagement = (function (exports) {
12040
12211
 
12041
12212
  var Organization = /*#__PURE__*/Object.freeze({
12042
12213
  __proto__: null,
12043
- get: get$u,
12044
- getMany: getMany$l
12214
+ get: get$w,
12215
+ getMany: getMany$n
12045
12216
  });
12046
12217
 
12047
12218
  const OrganizationUserManagementAlphaHeaders = {
@@ -12050,7 +12221,7 @@ var contentfulManagement = (function (exports) {
12050
12221
  const InvitationAlphaHeaders = {
12051
12222
  'x-contentful-enable-alpha-feature': 'pending-org-membership',
12052
12223
  };
12053
- const create$g = (http, params, data, headers) => {
12224
+ const create$i = (http, params, data, headers) => {
12054
12225
  return post$1(http, `/organizations/${params.organizationId}/invitations`, data, {
12055
12226
  headers: {
12056
12227
  ...InvitationAlphaHeaders,
@@ -12058,8 +12229,8 @@ var contentfulManagement = (function (exports) {
12058
12229
  },
12059
12230
  });
12060
12231
  };
12061
- const get$t = (http, params, headers) => {
12062
- return get$14(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
12232
+ const get$v = (http, params, headers) => {
12233
+ return get$19(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
12063
12234
  headers: {
12064
12235
  ...OrganizationUserManagementAlphaHeaders,
12065
12236
  ...headers,
@@ -12069,17 +12240,17 @@ var contentfulManagement = (function (exports) {
12069
12240
 
12070
12241
  var OrganizationInvitation = /*#__PURE__*/Object.freeze({
12071
12242
  __proto__: null,
12072
- create: create$g,
12073
- get: get$t
12243
+ create: create$i,
12244
+ get: get$v
12074
12245
  });
12075
12246
 
12076
- const getBaseUrl$e = (params) => `/organizations/${params.organizationId}/organization_memberships`;
12077
- const getEntityUrl$5 = (params) => `${getBaseUrl$e(params)}/${params.organizationMembershipId}`;
12078
- const get$s = (http, params) => {
12079
- return get$14(http, getEntityUrl$5(params));
12247
+ const getBaseUrl$g = (params) => `/organizations/${params.organizationId}/organization_memberships`;
12248
+ const getEntityUrl$5 = (params) => `${getBaseUrl$g(params)}/${params.organizationMembershipId}`;
12249
+ const get$u = (http, params) => {
12250
+ return get$19(http, getEntityUrl$5(params));
12080
12251
  };
12081
- const getMany$k = (http, params) => {
12082
- return get$14(http, getBaseUrl$e(params), {
12252
+ const getMany$m = (http, params) => {
12253
+ return get$19(http, getBaseUrl$g(params), {
12083
12254
  params: params.query,
12084
12255
  });
12085
12256
  };
@@ -12094,15 +12265,15 @@ var contentfulManagement = (function (exports) {
12094
12265
  },
12095
12266
  });
12096
12267
  };
12097
- const del$h = (http, params) => {
12098
- return del$H(http, getEntityUrl$5(params));
12268
+ const del$j = (http, params) => {
12269
+ return del$M(http, getEntityUrl$5(params));
12099
12270
  };
12100
12271
 
12101
12272
  var OrganizationMembership = /*#__PURE__*/Object.freeze({
12102
12273
  __proto__: null,
12103
- del: del$h,
12104
- get: get$s,
12105
- getMany: getMany$k,
12274
+ del: del$j,
12275
+ get: get$u,
12276
+ getMany: getMany$m,
12106
12277
  update: update$g
12107
12278
  });
12108
12279
 
@@ -12128,8 +12299,8 @@ var contentfulManagement = (function (exports) {
12128
12299
  * .catch(console.error)
12129
12300
  * ```
12130
12301
  */
12131
- const get$r = (http, params) => {
12132
- return get$14(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
12302
+ const get$t = (http, params) => {
12303
+ return get$19(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
12133
12304
  };
12134
12305
  /**
12135
12306
  * Retrieves a list of OAuth applications associated with the current user.
@@ -12154,7 +12325,7 @@ var contentfulManagement = (function (exports) {
12154
12325
  * ```
12155
12326
  */
12156
12327
  const getManyForUser = (http, params) => {
12157
- return get$14(http, `/users/${params.userId}/oauth_applications`, {
12328
+ return get$19(http, `/users/${params.userId}/oauth_applications`, {
12158
12329
  params: params.query,
12159
12330
  });
12160
12331
  };
@@ -12183,7 +12354,7 @@ var contentfulManagement = (function (exports) {
12183
12354
  * .catch(console.error)
12184
12355
  * ```
12185
12356
  */
12186
- const create$f = (http, params, rawData, headers) => {
12357
+ const create$h = (http, params, rawData, headers) => {
12187
12358
  return post$1(http, `/users/${params.userId}/oauth_applications`, rawData, {
12188
12359
  headers,
12189
12360
  });
@@ -12240,15 +12411,15 @@ var contentfulManagement = (function (exports) {
12240
12411
  * .catch(console.error)
12241
12412
  * ```
12242
12413
  */
12243
- const del$g = (http, params) => {
12244
- return del$H(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
12414
+ const del$i = (http, params) => {
12415
+ return del$M(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
12245
12416
  };
12246
12417
 
12247
12418
  var OAuthApplication = /*#__PURE__*/Object.freeze({
12248
12419
  __proto__: null,
12249
- create: create$f,
12250
- del: del$g,
12251
- get: get$r,
12420
+ create: create$h,
12421
+ del: del$i,
12422
+ get: get$t,
12252
12423
  getManyForUser: getManyForUser,
12253
12424
  update: update$f
12254
12425
  });
@@ -12256,21 +12427,21 @@ var contentfulManagement = (function (exports) {
12256
12427
  /**
12257
12428
  * @deprecated use `access-token.get` instead `personal-access-token.get`
12258
12429
  */
12259
- const get$q = (http, params) => {
12260
- return get$14(http, `/users/me/access_tokens/${params.tokenId}`);
12430
+ const get$s = (http, params) => {
12431
+ return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
12261
12432
  };
12262
12433
  /**
12263
12434
  * @deprecated use `access-token.getMany` instead `personal-access-token.getMany`
12264
12435
  */
12265
- const getMany$j = (http, params) => {
12266
- return get$14(http, '/users/me/access_tokens', {
12436
+ const getMany$l = (http, params) => {
12437
+ return get$19(http, '/users/me/access_tokens', {
12267
12438
  params: params.query,
12268
12439
  });
12269
12440
  };
12270
12441
  /**
12271
12442
  * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`
12272
12443
  */
12273
- const create$e = (http, _params, rawData, headers) => {
12444
+ const create$g = (http, _params, rawData, headers) => {
12274
12445
  return post$1(http, '/users/me/access_tokens', rawData, {
12275
12446
  headers,
12276
12447
  });
@@ -12284,29 +12455,29 @@ var contentfulManagement = (function (exports) {
12284
12455
 
12285
12456
  var PersonalAccessToken = /*#__PURE__*/Object.freeze({
12286
12457
  __proto__: null,
12287
- create: create$e,
12288
- get: get$q,
12289
- getMany: getMany$j,
12458
+ create: create$g,
12459
+ get: get$s,
12460
+ getMany: getMany$l,
12290
12461
  revoke: revoke
12291
12462
  });
12292
12463
 
12293
- const get$p = (http, params) => {
12294
- return get$14(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
12464
+ const get$r = (http, params) => {
12465
+ return get$19(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
12295
12466
  };
12296
- const getMany$i = (http, params) => {
12297
- return get$14(http, `/spaces/${params.spaceId}/preview_api_keys`, {
12467
+ const getMany$k = (http, params) => {
12468
+ return get$19(http, `/spaces/${params.spaceId}/preview_api_keys`, {
12298
12469
  params: params.query,
12299
12470
  });
12300
12471
  };
12301
12472
 
12302
12473
  var PreviewApiKey = /*#__PURE__*/Object.freeze({
12303
12474
  __proto__: null,
12304
- get: get$p,
12305
- getMany: getMany$i
12475
+ get: get$r,
12476
+ getMany: getMany$k
12306
12477
  });
12307
12478
 
12308
- const get$o = (http, params) => {
12309
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
12479
+ const get$q = (http, params) => {
12480
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
12310
12481
  };
12311
12482
  const query = (http, params) => {
12312
12483
  // Set the schema version in the query if provided in params or query options
@@ -12314,11 +12485,11 @@ var contentfulManagement = (function (exports) {
12314
12485
  if (releaseSchemaVersion !== undefined) {
12315
12486
  params.query = { ...params.query, 'sys.schemaVersion': releaseSchemaVersion };
12316
12487
  }
12317
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
12488
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
12318
12489
  params: params.query,
12319
12490
  });
12320
12491
  };
12321
- const create$d = (http, params, payload) => {
12492
+ const create$f = (http, params, payload) => {
12322
12493
  const releaseSchemaVersion = payload.sys?.schemaVersion ?? params.releaseSchemaVersion;
12323
12494
  if (releaseSchemaVersion === 'Release.v2') {
12324
12495
  payload.sys = { ...payload.sys, type: 'Release', schemaVersion: 'Release.v2' };
@@ -12337,10 +12508,10 @@ var contentfulManagement = (function (exports) {
12337
12508
  },
12338
12509
  });
12339
12510
  };
12340
- const del$f = (http, params) => {
12341
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
12511
+ const del$h = (http, params) => {
12512
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
12342
12513
  };
12343
- const publish = (http, params, headers) => {
12514
+ const publish$2 = (http, params, headers) => {
12344
12515
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, {
12345
12516
  headers: {
12346
12517
  'X-Contentful-Version': params.version,
@@ -12348,8 +12519,8 @@ var contentfulManagement = (function (exports) {
12348
12519
  },
12349
12520
  });
12350
12521
  };
12351
- const unpublish = (http, params, headers) => {
12352
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
12522
+ const unpublish$2 = (http, params, headers) => {
12523
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
12353
12524
  headers: {
12354
12525
  'X-Contentful-Version': params.version,
12355
12526
  ...headers,
@@ -12367,7 +12538,7 @@ var contentfulManagement = (function (exports) {
12367
12538
  });
12368
12539
  };
12369
12540
  const unarchive$1 = (http, params) => {
12370
- return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
12541
+ return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
12371
12542
  headers: {
12372
12543
  'X-Contentful-Version': params.version,
12373
12544
  },
@@ -12377,27 +12548,27 @@ var contentfulManagement = (function (exports) {
12377
12548
  var Release = /*#__PURE__*/Object.freeze({
12378
12549
  __proto__: null,
12379
12550
  archive: archive,
12380
- create: create$d,
12381
- del: del$f,
12382
- get: get$o,
12383
- publish: publish,
12551
+ create: create$f,
12552
+ del: del$h,
12553
+ get: get$q,
12554
+ publish: publish$2,
12384
12555
  query: query,
12385
12556
  unarchive: unarchive$1,
12386
- unpublish: unpublish,
12557
+ unpublish: unpublish$2,
12387
12558
  update: update$e,
12388
12559
  validate: validate
12389
12560
  });
12390
12561
 
12391
- const get$n = (http, params) => {
12392
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
12562
+ const get$p = (http, params) => {
12563
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
12393
12564
  };
12394
- const getMany$h = (http, params) => {
12395
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
12565
+ const getMany$j = (http, params) => {
12566
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
12396
12567
  params: params.query,
12397
12568
  });
12398
12569
  };
12399
12570
  const queryForRelease = (http, params) => {
12400
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
12571
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
12401
12572
  params: {
12402
12573
  'sys.release.sys.id[in]': params.releaseId,
12403
12574
  ...params.query,
@@ -12407,82 +12578,82 @@ var contentfulManagement = (function (exports) {
12407
12578
 
12408
12579
  var ReleaseAction = /*#__PURE__*/Object.freeze({
12409
12580
  __proto__: null,
12410
- get: get$n,
12411
- getMany: getMany$h,
12581
+ get: get$p,
12582
+ getMany: getMany$j,
12412
12583
  queryForRelease: queryForRelease
12413
12584
  });
12414
12585
 
12415
- const getBaseUrl$d = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
12416
- const getMany$g = (http, params) => get$14(http, getBaseUrl$d(params), {
12586
+ const getBaseUrl$f = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
12587
+ const getMany$i = (http, params) => get$19(http, getBaseUrl$f(params), {
12417
12588
  params: params.query,
12418
12589
  });
12419
12590
 
12420
12591
  var Resource = /*#__PURE__*/Object.freeze({
12421
12592
  __proto__: null,
12422
- getMany: getMany$g
12593
+ getMany: getMany$i
12423
12594
  });
12424
12595
 
12425
- const getBaseUrl$c = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
12426
- const get$m = (http, params) => {
12427
- return get$14(http, getBaseUrl$c(params));
12596
+ const getBaseUrl$e = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
12597
+ const get$o = (http, params) => {
12598
+ return get$19(http, getBaseUrl$e(params));
12428
12599
  };
12429
- const upsert$1 = (http, params, rawData, headers) => {
12430
- return put$1(http, getBaseUrl$c(params), rawData, { headers });
12600
+ const upsert$3 = (http, params, rawData, headers) => {
12601
+ return put$1(http, getBaseUrl$e(params), rawData, { headers });
12431
12602
  };
12432
- const del$e = (http, params) => {
12433
- return del$H(http, getBaseUrl$c(params));
12603
+ const del$g = (http, params) => {
12604
+ return del$M(http, getBaseUrl$e(params));
12434
12605
  };
12435
12606
 
12436
12607
  var ResourceProvider = /*#__PURE__*/Object.freeze({
12437
12608
  __proto__: null,
12438
- del: del$e,
12439
- get: get$m,
12440
- upsert: upsert$1
12609
+ del: del$g,
12610
+ get: get$o,
12611
+ upsert: upsert$3
12441
12612
  });
12442
12613
 
12443
- const getBaseUrl$b = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
12444
- const getEntityUrl$4 = (params) => `${getBaseUrl$b(params)}/${params.resourceTypeId}`;
12614
+ const getBaseUrl$d = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
12615
+ const getEntityUrl$4 = (params) => `${getBaseUrl$d(params)}/${params.resourceTypeId}`;
12445
12616
  const getSpaceEnvUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types`;
12446
- const get$l = (http, params) => {
12447
- return get$14(http, getEntityUrl$4(params));
12617
+ const get$n = (http, params) => {
12618
+ return get$19(http, getEntityUrl$4(params));
12448
12619
  };
12449
- const upsert = (http, params, rawData, headers) => {
12620
+ const upsert$2 = (http, params, rawData, headers) => {
12450
12621
  const data = index$2(rawData);
12451
12622
  return put$1(http, getEntityUrl$4(params), data, { headers });
12452
12623
  };
12453
- const del$d = (http, params) => {
12454
- return del$H(http, getEntityUrl$4(params));
12624
+ const del$f = (http, params) => {
12625
+ return del$M(http, getEntityUrl$4(params));
12455
12626
  };
12456
- const getMany$f = (http, params) => {
12457
- return get$14(http, getBaseUrl$b(params));
12627
+ const getMany$h = (http, params) => {
12628
+ return get$19(http, getBaseUrl$d(params));
12458
12629
  };
12459
12630
  const getForEnvironment = (http, params) => {
12460
- return get$14(http, getSpaceEnvUrl(params));
12631
+ return get$19(http, getSpaceEnvUrl(params));
12461
12632
  };
12462
12633
 
12463
12634
  var ResourceType = /*#__PURE__*/Object.freeze({
12464
12635
  __proto__: null,
12465
- del: del$d,
12466
- get: get$l,
12636
+ del: del$f,
12637
+ get: get$n,
12467
12638
  getForEnvironment: getForEnvironment,
12468
- getMany: getMany$f,
12469
- upsert: upsert
12639
+ getMany: getMany$h,
12640
+ upsert: upsert$2
12470
12641
  });
12471
12642
 
12472
- const get$k = (http, params) => {
12473
- return get$14(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
12643
+ const get$m = (http, params) => {
12644
+ return get$19(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
12474
12645
  };
12475
- const getMany$e = (http, params) => {
12476
- return get$14(http, `/spaces/${params.spaceId}/roles`, {
12646
+ const getMany$g = (http, params) => {
12647
+ return get$19(http, `/spaces/${params.spaceId}/roles`, {
12477
12648
  params: normalizeSelect(params.query),
12478
12649
  });
12479
12650
  };
12480
12651
  const getManyForOrganization$6 = (http, params) => {
12481
- return get$14(http, `/organizations/${params.organizationId}/roles`, {
12652
+ return get$19(http, `/organizations/${params.organizationId}/roles`, {
12482
12653
  params: normalizeSelect(params.query),
12483
12654
  });
12484
12655
  };
12485
- const create$c = (http, params, data, headers) => {
12656
+ const create$e = (http, params, data, headers) => {
12486
12657
  return post$1(http, `/spaces/${params.spaceId}/roles`, data, {
12487
12658
  headers,
12488
12659
  });
@@ -12502,38 +12673,38 @@ var contentfulManagement = (function (exports) {
12502
12673
  },
12503
12674
  });
12504
12675
  };
12505
- const del$c = (http, params) => {
12506
- return del$H(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
12676
+ const del$e = (http, params) => {
12677
+ return del$M(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
12507
12678
  };
12508
12679
 
12509
12680
  var Role = /*#__PURE__*/Object.freeze({
12510
12681
  __proto__: null,
12511
- create: create$c,
12682
+ create: create$e,
12512
12683
  createWithId: createWithId$3,
12513
- del: del$c,
12514
- get: get$k,
12515
- getMany: getMany$e,
12684
+ del: del$e,
12685
+ get: get$m,
12686
+ getMany: getMany$g,
12516
12687
  getManyForOrganization: getManyForOrganization$6,
12517
12688
  update: update$d
12518
12689
  });
12519
12690
 
12520
- const get$j = (http, params) => {
12521
- return get$14(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
12691
+ const get$l = (http, params) => {
12692
+ return get$19(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
12522
12693
  params: {
12523
12694
  'environment.sys.id': params.environmentId,
12524
12695
  },
12525
12696
  });
12526
12697
  };
12527
- const getMany$d = (http, params) => {
12528
- return get$14(http, `/spaces/${params.spaceId}/scheduled_actions`, {
12698
+ const getMany$f = (http, params) => {
12699
+ return get$19(http, `/spaces/${params.spaceId}/scheduled_actions`, {
12529
12700
  params: normalizeSelect(params.query),
12530
12701
  });
12531
12702
  };
12532
- const create$b = (http, params, data) => {
12703
+ const create$d = (http, params, data) => {
12533
12704
  return post$1(http, `/spaces/${params.spaceId}/scheduled_actions`, data);
12534
12705
  };
12535
- const del$b = (http, params) => {
12536
- return del$H(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
12706
+ const del$d = (http, params) => {
12707
+ return del$M(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
12537
12708
  params: {
12538
12709
  'environment.sys.id': params.environmentId,
12539
12710
  },
@@ -12552,102 +12723,102 @@ var contentfulManagement = (function (exports) {
12552
12723
 
12553
12724
  var ScheduledAction = /*#__PURE__*/Object.freeze({
12554
12725
  __proto__: null,
12555
- create: create$b,
12556
- del: del$b,
12557
- get: get$j,
12558
- getMany: getMany$d,
12726
+ create: create$d,
12727
+ del: del$d,
12728
+ get: get$l,
12729
+ getMany: getMany$f,
12559
12730
  update: update$c
12560
12731
  });
12561
12732
 
12562
- const get$i = (http, params) => {
12563
- return get$14(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
12733
+ const get$k = (http, params) => {
12734
+ return get$19(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
12564
12735
  };
12565
- const getMany$c = (http, params) => {
12566
- return get$14(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
12736
+ const getMany$e = (http, params) => {
12737
+ return get$19(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
12567
12738
  };
12568
12739
  const getManyForEnvironment = (http, params) => {
12569
- return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
12740
+ return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
12570
12741
  };
12571
- const create$a = (http, params, data) => {
12742
+ const create$c = (http, params, data) => {
12572
12743
  return post$1(http, `/organizations/${params.organizationId}/semantic/search-index`, data);
12573
12744
  };
12574
- const del$a = (http, params) => {
12575
- return del$H(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
12745
+ const del$c = (http, params) => {
12746
+ return del$M(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
12576
12747
  };
12577
12748
 
12578
12749
  var ContentSemanticsIndex = /*#__PURE__*/Object.freeze({
12579
12750
  __proto__: null,
12580
- create: create$a,
12581
- del: del$a,
12582
- get: get$i,
12583
- getMany: getMany$c,
12751
+ create: create$c,
12752
+ del: del$c,
12753
+ get: get$k,
12754
+ getMany: getMany$e,
12584
12755
  getManyForEnvironment: getManyForEnvironment
12585
12756
  });
12586
12757
 
12587
- const get$h = (http, params, data, headers) => {
12758
+ const get$j = (http, params, data, headers) => {
12588
12759
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/duplicates`, data, { headers });
12589
12760
  };
12590
12761
 
12591
12762
  var SemanticDuplicates = /*#__PURE__*/Object.freeze({
12592
12763
  __proto__: null,
12593
- get: get$h
12764
+ get: get$j
12594
12765
  });
12595
12766
 
12596
- const get$g = (http, params, data, headers) => {
12767
+ const get$i = (http, params, data, headers) => {
12597
12768
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/recommendations`, data, { headers });
12598
12769
  };
12599
12770
 
12600
12771
  var SemanticRecommendations = /*#__PURE__*/Object.freeze({
12601
12772
  __proto__: null,
12602
- get: get$g
12773
+ get: get$i
12603
12774
  });
12604
12775
 
12605
- const get$f = (http, params, data, headers) => {
12776
+ const get$h = (http, params, data, headers) => {
12606
12777
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/reference-suggestions`, data, { headers });
12607
12778
  };
12608
12779
 
12609
12780
  var SemanticReferenceSuggestions = /*#__PURE__*/Object.freeze({
12610
12781
  __proto__: null,
12611
- get: get$f
12782
+ get: get$h
12612
12783
  });
12613
12784
 
12614
- const get$e = (http, params, data, headers) => {
12785
+ const get$g = (http, params, data, headers) => {
12615
12786
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search`, data, { headers });
12616
12787
  };
12617
12788
 
12618
12789
  var SemanticSearch = /*#__PURE__*/Object.freeze({
12619
12790
  __proto__: null,
12620
- get: get$e
12791
+ get: get$g
12621
12792
  });
12622
12793
 
12623
- const get$d = (http, params) => {
12624
- return get$14(http, `/organizations/${params.organizationId}/semantic/settings`);
12794
+ const get$f = (http, params) => {
12795
+ return get$19(http, `/organizations/${params.organizationId}/semantic/settings`);
12625
12796
  };
12626
12797
 
12627
12798
  var SemanticSettings = /*#__PURE__*/Object.freeze({
12628
12799
  __proto__: null,
12629
- get: get$d
12800
+ get: get$f
12630
12801
  });
12631
12802
 
12632
12803
  const getBaseEntryUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`;
12633
12804
  const getEntryUrl = (params) => getBaseEntryUrl(params) + `/${params.snapshotId}`;
12634
12805
  const getManyForEntry = (http, params) => {
12635
- return get$14(http, getBaseEntryUrl(params), {
12806
+ return get$19(http, getBaseEntryUrl(params), {
12636
12807
  params: normalizeSelect(params.query),
12637
12808
  });
12638
12809
  };
12639
12810
  const getForEntry = (http, params) => {
12640
- return get$14(http, getEntryUrl(params));
12811
+ return get$19(http, getEntryUrl(params));
12641
12812
  };
12642
12813
  const getBaseContentTypeUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`;
12643
12814
  const getContentTypeUrl = (params) => getBaseContentTypeUrl(params) + `/${params.snapshotId}`;
12644
12815
  const getManyForContentType = (http, params) => {
12645
- return get$14(http, getBaseContentTypeUrl(params), {
12816
+ return get$19(http, getBaseContentTypeUrl(params), {
12646
12817
  params: normalizeSelect(params.query),
12647
12818
  });
12648
12819
  };
12649
12820
  const getForContentType = (http, params) => {
12650
- return get$14(http, getContentTypeUrl(params));
12821
+ return get$19(http, getContentTypeUrl(params));
12651
12822
  };
12652
12823
 
12653
12824
  var Snapshot = /*#__PURE__*/Object.freeze({
@@ -12658,17 +12829,19 @@ var contentfulManagement = (function (exports) {
12658
12829
  getManyForEntry: getManyForEntry
12659
12830
  });
12660
12831
 
12661
- const get$c = (http, params) => get$14(http, `/spaces/${params.spaceId}`);
12662
- const getMany$b = (http, params) => get$14(http, `/spaces`, {
12663
- params: params.query,
12832
+ const get$e = (http, params) => get$19(http, `/spaces/${params.spaceId}`, {
12833
+ params: params.include ? { include: params.include } : undefined,
12834
+ });
12835
+ const getMany$d = (http, params) => get$19(http, `/spaces`, {
12836
+ params: { ...params.query, ...(params.include ? { include: params.include } : {}) },
12664
12837
  headers: params.organizationId
12665
12838
  ? { 'X-Contentful-Organization': params.organizationId }
12666
12839
  : undefined,
12667
12840
  });
12668
- const getManyForOrganization$5 = (http, params) => get$14(http, `/organizations/${params.organizationId}/spaces`, {
12841
+ const getManyForOrganization$5 = (http, params) => get$19(http, `/organizations/${params.organizationId}/spaces`, {
12669
12842
  params: params.query,
12670
12843
  });
12671
- const create$9 = (http, params, payload, headers) => {
12844
+ const create$b = (http, params, payload, headers) => {
12672
12845
  return post$1(http, `/spaces`, payload, {
12673
12846
  headers: params.organizationId
12674
12847
  ? { ...headers, 'X-Contentful-Organization': params.organizationId }
@@ -12690,21 +12863,21 @@ var contentfulManagement = (function (exports) {
12690
12863
  headers,
12691
12864
  });
12692
12865
  };
12693
- const del$9 = (http, params) => del$H(http, `/spaces/${params.spaceId}`);
12866
+ const del$b = (http, params) => del$M(http, `/spaces/${params.spaceId}`);
12694
12867
 
12695
12868
  var Space = /*#__PURE__*/Object.freeze({
12696
12869
  __proto__: null,
12697
- create: create$9,
12698
- del: del$9,
12699
- get: get$c,
12700
- getMany: getMany$b,
12870
+ create: create$b,
12871
+ del: del$b,
12872
+ get: get$e,
12873
+ getMany: getMany$d,
12701
12874
  getManyForOrganization: getManyForOrganization$5,
12702
12875
  unarchive: unarchive,
12703
12876
  update: update$b
12704
12877
  });
12705
12878
 
12706
- const getMany$a = (http, params) => {
12707
- return get$14(http, `/spaces/${params.spaceId}/space_add_ons`, {
12879
+ const getMany$c = (http, params) => {
12880
+ return get$19(http, `/spaces/${params.spaceId}/space_add_ons`, {
12708
12881
  params: normalizeSelect(params.query),
12709
12882
  });
12710
12883
  };
@@ -12716,47 +12889,47 @@ var contentfulManagement = (function (exports) {
12716
12889
 
12717
12890
  var SpaceAddOn = /*#__PURE__*/Object.freeze({
12718
12891
  __proto__: null,
12719
- getMany: getMany$a,
12892
+ getMany: getMany$c,
12720
12893
  updateAllocations: updateAllocations
12721
12894
  });
12722
12895
 
12723
- const get$b = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
12724
- const getMany$9 = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members`, {
12896
+ const get$d = (http, params) => get$19(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
12897
+ const getMany$b = (http, params) => get$19(http, `/spaces/${params.spaceId}/space_members`, {
12725
12898
  params: params.query,
12726
12899
  });
12727
12900
 
12728
12901
  var SpaceMember = /*#__PURE__*/Object.freeze({
12729
12902
  __proto__: null,
12730
- get: get$b,
12731
- getMany: getMany$9
12903
+ get: get$d,
12904
+ getMany: getMany$b
12732
12905
  });
12733
12906
 
12734
12907
  function spaceMembershipDeprecationWarning() {
12735
12908
  console.warn('The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)');
12736
12909
  }
12737
- const getBaseUrl$a = (params) => `/spaces/${params.spaceId}/space_memberships`;
12738
- const getEntityUrl$3 = (params) => `${getBaseUrl$a(params)}/${params.spaceMembershipId}`;
12739
- const get$a = (http, params) => {
12910
+ const getBaseUrl$c = (params) => `/spaces/${params.spaceId}/space_memberships`;
12911
+ const getEntityUrl$3 = (params) => `${getBaseUrl$c(params)}/${params.spaceMembershipId}`;
12912
+ const get$c = (http, params) => {
12740
12913
  spaceMembershipDeprecationWarning();
12741
- return get$14(http, getEntityUrl$3(params));
12914
+ return get$19(http, getEntityUrl$3(params));
12742
12915
  };
12743
- const getMany$8 = (http, params) => {
12916
+ const getMany$a = (http, params) => {
12744
12917
  spaceMembershipDeprecationWarning();
12745
- return get$14(http, getBaseUrl$a(params), {
12918
+ return get$19(http, getBaseUrl$c(params), {
12746
12919
  params: params.query,
12747
12920
  });
12748
12921
  };
12749
12922
  const getForOrganization$2 = (http, params) => {
12750
- return get$14(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
12923
+ return get$19(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
12751
12924
  };
12752
12925
  const getManyForOrganization$4 = (http, params) => {
12753
- return get$14(http, `/organizations/${params.organizationId}/space_memberships`, {
12926
+ return get$19(http, `/organizations/${params.organizationId}/space_memberships`, {
12754
12927
  params: params.query,
12755
12928
  });
12756
12929
  };
12757
- const create$8 = (http, params, data, headers) => {
12930
+ const create$a = (http, params, data, headers) => {
12758
12931
  spaceMembershipDeprecationWarning();
12759
- return post$1(http, getBaseUrl$a(params), data, {
12932
+ return post$1(http, getBaseUrl$c(params), data, {
12760
12933
  headers,
12761
12934
  });
12762
12935
  };
@@ -12776,26 +12949,26 @@ var contentfulManagement = (function (exports) {
12776
12949
  },
12777
12950
  });
12778
12951
  };
12779
- const del$8 = (http, params) => {
12780
- return del$H(http, getEntityUrl$3(params));
12952
+ const del$a = (http, params) => {
12953
+ return del$M(http, getEntityUrl$3(params));
12781
12954
  };
12782
12955
 
12783
12956
  var SpaceMembership = /*#__PURE__*/Object.freeze({
12784
12957
  __proto__: null,
12785
- create: create$8,
12958
+ create: create$a,
12786
12959
  createWithId: createWithId$2,
12787
- del: del$8,
12788
- get: get$a,
12960
+ del: del$a,
12961
+ get: get$c,
12789
12962
  getForOrganization: getForOrganization$2,
12790
- getMany: getMany$8,
12963
+ getMany: getMany$a,
12791
12964
  getManyForOrganization: getManyForOrganization$4,
12792
12965
  update: update$a
12793
12966
  });
12794
12967
 
12795
- const getBaseUrl$9 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
12796
- const getTagUrl = (params) => getBaseUrl$9(params) + `/${params.tagId}`;
12797
- const get$9 = (http, params) => get$14(http, getTagUrl(params));
12798
- const getMany$7 = (http, params) => get$14(http, getBaseUrl$9(params), {
12968
+ const getBaseUrl$b = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
12969
+ const getTagUrl = (params) => getBaseUrl$b(params) + `/${params.tagId}`;
12970
+ const get$b = (http, params) => get$19(http, getTagUrl(params));
12971
+ const getMany$9 = (http, params) => get$19(http, getBaseUrl$b(params), {
12799
12972
  params: params.query,
12800
12973
  });
12801
12974
  const createWithId$1 = (http, params, rawData) => {
@@ -12814,32 +12987,32 @@ var contentfulManagement = (function (exports) {
12814
12987
  },
12815
12988
  });
12816
12989
  };
12817
- const del$7 = (http, { version, ...params }) => {
12818
- return del$H(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
12990
+ const del$9 = (http, { version, ...params }) => {
12991
+ return del$M(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
12819
12992
  };
12820
12993
 
12821
12994
  var Tag = /*#__PURE__*/Object.freeze({
12822
12995
  __proto__: null,
12823
12996
  createWithId: createWithId$1,
12824
- del: del$7,
12825
- get: get$9,
12826
- getMany: getMany$7,
12997
+ del: del$9,
12998
+ get: get$b,
12999
+ getMany: getMany$9,
12827
13000
  update: update$9
12828
13001
  });
12829
13002
 
12830
- const getBaseUrl$8 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`;
12831
- const getTaskUrl = (params) => `${getBaseUrl$8(params)}/${params.taskId}`;
12832
- const get$8 = (http, params) => get$14(http, getTaskUrl(params));
12833
- const getMany$6 = (http, params) => get$14(http, getBaseUrl$8(params), {
13003
+ const getBaseUrl$a = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`;
13004
+ const getTaskUrl = (params) => `${getBaseUrl$a(params)}/${params.taskId}`;
13005
+ const get$a = (http, params) => get$19(http, getTaskUrl(params));
13006
+ const getMany$8 = (http, params) => get$19(http, getBaseUrl$a(params), {
12834
13007
  params: normalizeSelect(params.query),
12835
13008
  });
12836
13009
  /**
12837
13010
  * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons.
12838
13011
  */
12839
- const getAll = getMany$6;
12840
- const create$7 = (http, params, rawData) => {
13012
+ const getAll = getMany$8;
13013
+ const create$9 = (http, params, rawData) => {
12841
13014
  const data = index$2(rawData);
12842
- return post$1(http, getBaseUrl$8(params), data);
13015
+ return post$1(http, getBaseUrl$a(params), data);
12843
13016
  };
12844
13017
  const update$8 = (http, params, rawData, headers) => {
12845
13018
  const data = index$2(rawData);
@@ -12851,33 +13024,33 @@ var contentfulManagement = (function (exports) {
12851
13024
  },
12852
13025
  });
12853
13026
  };
12854
- const del$6 = (http, { version, ...params }) => {
12855
- return del$H(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
13027
+ const del$8 = (http, { version, ...params }) => {
13028
+ return del$M(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
12856
13029
  };
12857
13030
 
12858
13031
  var Task = /*#__PURE__*/Object.freeze({
12859
13032
  __proto__: null,
12860
- create: create$7,
12861
- del: del$6,
12862
- get: get$8,
13033
+ create: create$9,
13034
+ del: del$8,
13035
+ get: get$a,
12863
13036
  getAll: getAll,
12864
- getMany: getMany$6,
13037
+ getMany: getMany$8,
12865
13038
  update: update$8
12866
13039
  });
12867
13040
 
12868
- const getBaseUrl$7 = (params) => `/organizations/${params.organizationId}/teams`;
12869
- const getEntityUrl$2 = (params) => `${getBaseUrl$7(params)}/${params.teamId}`;
12870
- const get$7 = (http, params) => get$14(http, getEntityUrl$2(params));
12871
- const getMany$5 = (http, params) => get$14(http, getBaseUrl$7(params), {
13041
+ const getBaseUrl$9 = (params) => `/organizations/${params.organizationId}/teams`;
13042
+ const getEntityUrl$2 = (params) => `${getBaseUrl$9(params)}/${params.teamId}`;
13043
+ const get$9 = (http, params) => get$19(http, getEntityUrl$2(params));
13044
+ const getMany$7 = (http, params) => get$19(http, getBaseUrl$9(params), {
12872
13045
  params: normalizeSelect(params.query),
12873
13046
  });
12874
13047
  const getManyForSpace$2 = (http, params) => {
12875
- return get$14(http, `/spaces/${params.spaceId}/teams`, {
13048
+ return get$19(http, `/spaces/${params.spaceId}/teams`, {
12876
13049
  params: normalizeSelect(params.query),
12877
13050
  });
12878
13051
  };
12879
- const create$6 = (http, params, rawData, headers) => {
12880
- return post$1(http, getBaseUrl$7(params), rawData, { headers });
13052
+ const create$8 = (http, params, rawData, headers) => {
13053
+ return post$1(http, getBaseUrl$9(params), rawData, { headers });
12881
13054
  };
12882
13055
  const update$7 = (http, params, rawData, headers) => {
12883
13056
  const data = index$2(rawData);
@@ -12889,31 +13062,31 @@ var contentfulManagement = (function (exports) {
12889
13062
  },
12890
13063
  });
12891
13064
  };
12892
- const del$5 = (http, params) => del$H(http, getEntityUrl$2(params));
13065
+ const del$7 = (http, params) => del$M(http, getEntityUrl$2(params));
12893
13066
 
12894
13067
  var Team = /*#__PURE__*/Object.freeze({
12895
13068
  __proto__: null,
12896
- create: create$6,
12897
- del: del$5,
12898
- get: get$7,
12899
- getMany: getMany$5,
13069
+ create: create$8,
13070
+ del: del$7,
13071
+ get: get$9,
13072
+ getMany: getMany$7,
12900
13073
  getManyForSpace: getManyForSpace$2,
12901
13074
  update: update$7
12902
13075
  });
12903
13076
 
12904
- const getBaseUrl$6 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
13077
+ const getBaseUrl$8 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
12905
13078
  const getEntityUrl$1 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`;
12906
- const get$6 = (http, params) => get$14(http, getEntityUrl$1(params));
12907
- const getManyForOrganization$3 = (http, params) => get$14(http, `/organizations/${params.organizationId}/team_memberships`, {
13079
+ const get$8 = (http, params) => get$19(http, getEntityUrl$1(params));
13080
+ const getManyForOrganization$3 = (http, params) => get$19(http, `/organizations/${params.organizationId}/team_memberships`, {
12908
13081
  params: normalizeSelect(params.query),
12909
13082
  });
12910
13083
  const getManyForTeam = (http, params) => {
12911
- return get$14(http, getBaseUrl$6(params), {
13084
+ return get$19(http, getBaseUrl$8(params), {
12912
13085
  params: normalizeSelect(params.query),
12913
13086
  });
12914
13087
  };
12915
- const create$5 = (http, params, rawData, headers) => {
12916
- return post$1(http, getBaseUrl$6(params), rawData, { headers });
13088
+ const create$7 = (http, params, rawData, headers) => {
13089
+ return post$1(http, getBaseUrl$8(params), rawData, { headers });
12917
13090
  };
12918
13091
  const update$6 = (http, params, rawData, headers) => {
12919
13092
  const data = index$2(rawData);
@@ -12925,38 +13098,38 @@ var contentfulManagement = (function (exports) {
12925
13098
  },
12926
13099
  });
12927
13100
  };
12928
- const del$4 = (http, params) => del$H(http, getEntityUrl$1(params));
13101
+ const del$6 = (http, params) => del$M(http, getEntityUrl$1(params));
12929
13102
 
12930
13103
  var TeamMembership = /*#__PURE__*/Object.freeze({
12931
13104
  __proto__: null,
12932
- create: create$5,
12933
- del: del$4,
12934
- get: get$6,
13105
+ create: create$7,
13106
+ del: del$6,
13107
+ get: get$8,
12935
13108
  getManyForOrganization: getManyForOrganization$3,
12936
13109
  getManyForTeam: getManyForTeam,
12937
13110
  update: update$6
12938
13111
  });
12939
13112
 
12940
- const getBaseUrl$5 = (params) => `/spaces/${params.spaceId}/team_space_memberships`;
12941
- const getEntityUrl = (params) => `${getBaseUrl$5(params)}/${params.teamSpaceMembershipId}`;
12942
- const get$5 = (http, params) => get$14(http, getEntityUrl(params));
12943
- const getMany$4 = (http, params) => get$14(http, getBaseUrl$5(params), {
13113
+ const getBaseUrl$7 = (params) => `/spaces/${params.spaceId}/team_space_memberships`;
13114
+ const getEntityUrl = (params) => `${getBaseUrl$7(params)}/${params.teamSpaceMembershipId}`;
13115
+ const get$7 = (http, params) => get$19(http, getEntityUrl(params));
13116
+ const getMany$6 = (http, params) => get$19(http, getBaseUrl$7(params), {
12944
13117
  params: params.query,
12945
13118
  });
12946
13119
  const getForOrganization$1 = (http, params) => {
12947
- return get$14(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
13120
+ return get$19(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
12948
13121
  };
12949
13122
  const getManyForOrganization$2 = (http, params) => {
12950
13123
  const query = params.query || {};
12951
13124
  if (params.teamId) {
12952
13125
  query['sys.team.sys.id'] = params.teamId;
12953
13126
  }
12954
- return get$14(http, `/organizations/${params.organizationId}/team_space_memberships`, {
13127
+ return get$19(http, `/organizations/${params.organizationId}/team_space_memberships`, {
12955
13128
  params: params.query,
12956
13129
  });
12957
13130
  };
12958
- const create$4 = (http, params, rawData, headers) => {
12959
- return post$1(http, getBaseUrl$5(params), rawData, {
13131
+ const create$6 = (http, params, rawData, headers) => {
13132
+ return post$1(http, getBaseUrl$7(params), rawData, {
12960
13133
  headers: {
12961
13134
  'x-contentful-team': params.teamId,
12962
13135
  ...headers,
@@ -12974,24 +13147,80 @@ var contentfulManagement = (function (exports) {
12974
13147
  },
12975
13148
  });
12976
13149
  };
12977
- const del$3 = (http, params) => {
12978
- return del$H(http, getEntityUrl(params));
13150
+ const del$5 = (http, params) => {
13151
+ return del$M(http, getEntityUrl(params));
12979
13152
  };
12980
13153
 
12981
13154
  var TeamSpaceMembership = /*#__PURE__*/Object.freeze({
12982
13155
  __proto__: null,
12983
- create: create$4,
12984
- del: del$3,
12985
- get: get$5,
13156
+ create: create$6,
13157
+ del: del$5,
13158
+ get: get$7,
12986
13159
  getForOrganization: getForOrganization$1,
12987
- getMany: getMany$4,
13160
+ getMany: getMany$6,
12988
13161
  getManyForOrganization: getManyForOrganization$2,
12989
13162
  update: update$5
12990
13163
  });
12991
13164
 
13165
+ const getBaseUrl$6 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/templates`;
13166
+ const getMany$5 = (http, params, headers) => {
13167
+ return get$19(http, getBaseUrl$6(params), {
13168
+ params: params.query,
13169
+ headers,
13170
+ });
13171
+ };
13172
+ const get$6 = (http, params, headers) => {
13173
+ return get$19(http, getBaseUrl$6(params) + `/${params.templateId}`, { headers });
13174
+ };
13175
+ const create$5 = (http, params, rawData, headers) => {
13176
+ const data = index$2(rawData);
13177
+ return post$1(http, getBaseUrl$6(params), data, { headers });
13178
+ };
13179
+ const upsert$1 = (http, params, rawData, headers) => {
13180
+ const { sys, ...body } = index$2(rawData);
13181
+ return put$1(http, getBaseUrl$6(params) + `/${params.templateId}`, body, {
13182
+ headers: {
13183
+ ...(sys.version !== undefined && {
13184
+ 'X-Contentful-Version': sys.version,
13185
+ }),
13186
+ ...headers,
13187
+ },
13188
+ });
13189
+ };
13190
+ const del$4 = (http, params) => {
13191
+ return del$M(http, getBaseUrl$6(params) + `/${params.templateId}`);
13192
+ };
13193
+ const publish$1 = (http, params, headers) => {
13194
+ return put$1(http, getBaseUrl$6(params) + `/${params.templateId}/published`, null, {
13195
+ headers: {
13196
+ 'X-Contentful-Version': params.version,
13197
+ ...headers,
13198
+ },
13199
+ });
13200
+ };
13201
+ const unpublish$1 = (http, params, headers) => {
13202
+ return del$M(http, getBaseUrl$6(params) + `/${params.templateId}/published`, {
13203
+ headers: {
13204
+ 'X-Contentful-Version': params.version,
13205
+ ...headers,
13206
+ },
13207
+ });
13208
+ };
13209
+
13210
+ var Template = /*#__PURE__*/Object.freeze({
13211
+ __proto__: null,
13212
+ create: create$5,
13213
+ del: del$4,
13214
+ get: get$6,
13215
+ getMany: getMany$5,
13216
+ publish: publish$1,
13217
+ unpublish: unpublish$1,
13218
+ upsert: upsert$1
13219
+ });
13220
+
12992
13221
  const getUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config`;
12993
- const get$4 = (http, params) => {
12994
- return get$14(http, getUrl$1(params));
13222
+ const get$5 = (http, params) => {
13223
+ return get$19(http, getUrl$1(params));
12995
13224
  };
12996
13225
  const update$4 = (http, params, rawData) => {
12997
13226
  const data = index$2(rawData);
@@ -13005,10 +13234,68 @@ var contentfulManagement = (function (exports) {
13005
13234
 
13006
13235
  var UIConfig = /*#__PURE__*/Object.freeze({
13007
13236
  __proto__: null,
13008
- get: get$4,
13237
+ get: get$5,
13009
13238
  update: update$4
13010
13239
  });
13011
13240
 
13241
+ const getBaseUrl$5 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/experiences`;
13242
+ const getMany$4 = (http, params, headers) => {
13243
+ return get$19(http, getBaseUrl$5(params), {
13244
+ params: params.query,
13245
+ headers,
13246
+ });
13247
+ };
13248
+ const get$4 = (http, params, headers) => {
13249
+ return get$19(http, getBaseUrl$5(params) + `/${params.experienceId}`, {
13250
+ headers,
13251
+ });
13252
+ };
13253
+ const create$4 = (http, params, rawData, headers) => {
13254
+ const data = index$2(rawData);
13255
+ return post$1(http, getBaseUrl$5(params), data, { headers });
13256
+ };
13257
+ const upsert = (http, params, rawData, headers) => {
13258
+ const { sys, ...body } = index$2(rawData);
13259
+ return put$1(http, getBaseUrl$5(params) + `/${params.experienceId}`, body, {
13260
+ headers: {
13261
+ ...(sys.version !== undefined && {
13262
+ 'X-Contentful-Version': sys.version,
13263
+ }),
13264
+ ...headers,
13265
+ },
13266
+ });
13267
+ };
13268
+ const del$3 = (http, params) => {
13269
+ return del$M(http, getBaseUrl$5(params) + `/${params.experienceId}`);
13270
+ };
13271
+ const publish = (http, params, payload, headers) => {
13272
+ return put$1(http, getBaseUrl$5(params) + `/${params.experienceId}/published`, payload ?? null, {
13273
+ headers: {
13274
+ 'X-Contentful-Version': params.version,
13275
+ ...headers,
13276
+ },
13277
+ });
13278
+ };
13279
+ const unpublish = (http, params, headers) => {
13280
+ return del$M(http, getBaseUrl$5(params) + `/${params.experienceId}/published`, {
13281
+ headers: {
13282
+ 'X-Contentful-Version': params.version,
13283
+ ...headers,
13284
+ },
13285
+ });
13286
+ };
13287
+
13288
+ var Experience = /*#__PURE__*/Object.freeze({
13289
+ __proto__: null,
13290
+ create: create$4,
13291
+ del: del$3,
13292
+ get: get$4,
13293
+ getMany: getMany$4,
13294
+ publish: publish,
13295
+ unpublish: unpublish,
13296
+ upsert: upsert
13297
+ });
13298
+
13012
13299
  const getBaseUrl$4 = (params) => {
13013
13300
  return `/spaces/${params.spaceId}/environments/${params.environmentId ?? 'master'}/upload_credentials`;
13014
13301
  };
@@ -13024,12 +13311,12 @@ var contentfulManagement = (function (exports) {
13024
13311
  });
13025
13312
 
13026
13313
  const getManyForSpace$1 = (http, params) => {
13027
- return get$14(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
13314
+ return get$19(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
13028
13315
  params: params.query,
13029
13316
  });
13030
13317
  };
13031
13318
  const getManyForOrganization$1 = (http, params) => {
13032
- return get$14(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
13319
+ return get$19(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
13033
13320
  params: params.query,
13034
13321
  });
13035
13322
  };
@@ -13041,19 +13328,19 @@ var contentfulManagement = (function (exports) {
13041
13328
  });
13042
13329
 
13043
13330
  const getForSpace = (http, params) => {
13044
- return get$14(http, `/spaces/${params.spaceId}/users/${params.userId}`);
13331
+ return get$19(http, `/spaces/${params.spaceId}/users/${params.userId}`);
13045
13332
  };
13046
- const getCurrent = (http, params) => get$14(http, `/users/me`, { params: params?.query });
13333
+ const getCurrent = (http, params) => get$19(http, `/users/me`, { params: params?.query });
13047
13334
  const getManyForSpace = (http, params) => {
13048
- return get$14(http, `/spaces/${params.spaceId}/users`, {
13335
+ return get$19(http, `/spaces/${params.spaceId}/users`, {
13049
13336
  params: params.query,
13050
13337
  });
13051
13338
  };
13052
13339
  const getForOrganization = (http, params) => {
13053
- return get$14(http, `/organizations/${params.organizationId}/users/${params.userId}`);
13340
+ return get$19(http, `/organizations/${params.organizationId}/users/${params.userId}`);
13054
13341
  };
13055
13342
  const getManyForOrganization = (http, params) => {
13056
- return get$14(http, `/organizations/${params.organizationId}/users`, {
13343
+ return get$19(http, `/organizations/${params.organizationId}/users`, {
13057
13344
  params: params.query,
13058
13345
  });
13059
13346
  };
@@ -13069,7 +13356,7 @@ var contentfulManagement = (function (exports) {
13069
13356
 
13070
13357
  const getUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`;
13071
13358
  const get$3 = (http, params) => {
13072
- return get$14(http, getUrl(params));
13359
+ return get$19(http, getUrl(params));
13073
13360
  };
13074
13361
  const update$3 = (http, params, rawData) => {
13075
13362
  const data = index$2(rawData);
@@ -13097,32 +13384,32 @@ var contentfulManagement = (function (exports) {
13097
13384
  const getWebhookSigningSecretUrl = (params) => `${getWebhookSettingsUrl(params)}/signing_secret`;
13098
13385
  const getWebhookRetryPolicyUrl = (params) => `${getWebhookSettingsUrl(params)}/retry_policy`;
13099
13386
  const get$2 = (http, params) => {
13100
- return get$14(http, getWebhookUrl(params));
13387
+ return get$19(http, getWebhookUrl(params));
13101
13388
  };
13102
13389
  const getManyCallDetails = (http, params) => {
13103
- return get$14(http, getWebhookCallUrl(params), {
13390
+ return get$19(http, getWebhookCallUrl(params), {
13104
13391
  params: normalizeSelect(params.query),
13105
13392
  });
13106
13393
  };
13107
13394
  const getCallDetails = (http, params) => {
13108
- return get$14(http, getWebhookCallDetailsUrl(params));
13395
+ return get$19(http, getWebhookCallDetailsUrl(params));
13109
13396
  };
13110
13397
  const getHealthStatus = (http, params) => {
13111
- return get$14(http, getWebhookHealthUrl(params));
13398
+ return get$19(http, getWebhookHealthUrl(params));
13112
13399
  };
13113
13400
  const getMany$3 = (http, params) => {
13114
- return get$14(http, getBaseUrl$3(params), {
13401
+ return get$19(http, getBaseUrl$3(params), {
13115
13402
  params: normalizeSelect(params.query),
13116
13403
  });
13117
13404
  };
13118
13405
  const getSigningSecret = (http, params) => {
13119
- return get$14(http, getWebhookSigningSecretUrl(params));
13406
+ return get$19(http, getWebhookSigningSecretUrl(params));
13120
13407
  };
13121
13408
  /**
13122
13409
  * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
13123
13410
  */
13124
13411
  const getRetryPolicy = (http, params) => {
13125
- return get$14(http, getWebhookRetryPolicyUrl(params));
13412
+ return get$19(http, getWebhookRetryPolicyUrl(params));
13126
13413
  };
13127
13414
  const create$2 = (http, params, rawData, headers) => {
13128
13415
  const data = index$2(rawData);
@@ -13154,16 +13441,16 @@ var contentfulManagement = (function (exports) {
13154
13441
  return put$1(http, getWebhookRetryPolicyUrl(params), data);
13155
13442
  };
13156
13443
  const del$2 = (http, params) => {
13157
- return del$H(http, getWebhookUrl(params));
13444
+ return del$M(http, getWebhookUrl(params));
13158
13445
  };
13159
13446
  const deleteSigningSecret = async (http, params) => {
13160
- return del$H(http, getWebhookSigningSecretUrl(params));
13447
+ return del$M(http, getWebhookSigningSecretUrl(params));
13161
13448
  };
13162
13449
  /**
13163
13450
  * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
13164
13451
  */
13165
13452
  const deleteRetryPolicy = async (http, params) => {
13166
- return del$H(http, getWebhookRetryPolicyUrl(params));
13453
+ return del$M(http, getWebhookRetryPolicyUrl(params));
13167
13454
  };
13168
13455
 
13169
13456
  var Webhook = /*#__PURE__*/Object.freeze({
@@ -13188,11 +13475,11 @@ var contentfulManagement = (function (exports) {
13188
13475
  const getBaseUrl$2 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`;
13189
13476
  const getWorkflowUrl = (params) => `${getBaseUrl$2(params)}/${params.workflowId}`;
13190
13477
  const completeWorkflowUrl = (params) => `${getWorkflowUrl(params)}/complete`;
13191
- const getMany$2 = (http, params, headers) => get$14(http, getBaseUrl$2(params), {
13478
+ const getMany$2 = (http, params, headers) => get$19(http, getBaseUrl$2(params), {
13192
13479
  headers,
13193
13480
  params: params.query,
13194
13481
  });
13195
- const get$1 = (http, params, headers) => get$14(http, getWorkflowUrl(params), {
13482
+ const get$1 = (http, params, headers) => get$19(http, getWorkflowUrl(params), {
13196
13483
  headers,
13197
13484
  });
13198
13485
  const create$1 = (http, params, rawData, headers) => {
@@ -13212,7 +13499,7 @@ var contentfulManagement = (function (exports) {
13212
13499
  });
13213
13500
  };
13214
13501
  const del$1 = (http, { version, ...params }, headers) => {
13215
- return del$H(http, getWorkflowUrl(params), {
13502
+ return del$M(http, getWorkflowUrl(params), {
13216
13503
  headers: { 'X-Contentful-Version': version, ...headers },
13217
13504
  });
13218
13505
  };
@@ -13234,10 +13521,10 @@ var contentfulManagement = (function (exports) {
13234
13521
 
13235
13522
  const getBaseUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`;
13236
13523
  const getWorkflowDefinitionUrl = (params) => `${getBaseUrl$1(params)}/${params.workflowDefinitionId}`;
13237
- const get = (http, params, headers) => get$14(http, getWorkflowDefinitionUrl(params), {
13524
+ const get = (http, params, headers) => get$19(http, getWorkflowDefinitionUrl(params), {
13238
13525
  headers,
13239
13526
  });
13240
- const getMany$1 = (http, params, headers) => get$14(http, getBaseUrl$1(params), {
13527
+ const getMany$1 = (http, params, headers) => get$19(http, getBaseUrl$1(params), {
13241
13528
  headers,
13242
13529
  params: params.query,
13243
13530
  });
@@ -13258,7 +13545,7 @@ var contentfulManagement = (function (exports) {
13258
13545
  });
13259
13546
  };
13260
13547
  const del = (http, { version, ...params }, headers) => {
13261
- return del$H(http, getWorkflowDefinitionUrl(params), {
13548
+ return del$M(http, getWorkflowDefinitionUrl(params), {
13262
13549
  headers: { 'X-Contentful-Version': version, ...headers },
13263
13550
  });
13264
13551
  };
@@ -13273,7 +13560,7 @@ var contentfulManagement = (function (exports) {
13273
13560
  });
13274
13561
 
13275
13562
  const getBaseUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`;
13276
- const getMany = (http, params, headers) => get$14(http, getBaseUrl(params), {
13563
+ const getMany = (http, params, headers) => get$19(http, getBaseUrl(params), {
13277
13564
  headers,
13278
13565
  params: params.query,
13279
13566
  });
@@ -13312,6 +13599,7 @@ var contentfulManagement = (function (exports) {
13312
13599
  Concept,
13313
13600
  ConceptScheme,
13314
13601
  ContentType,
13602
+ DataAssembly,
13315
13603
  EditorInterface,
13316
13604
  EligibleLicense,
13317
13605
  Entry,
@@ -13320,6 +13608,7 @@ var contentfulManagement = (function (exports) {
13320
13608
  EnvironmentTemplate,
13321
13609
  EnvironmentTemplateInstallation,
13322
13610
  Extension,
13611
+ Fragment,
13323
13612
  Function: Function$1,
13324
13613
  FunctionLog,
13325
13614
  Http,
@@ -13356,9 +13645,11 @@ var contentfulManagement = (function (exports) {
13356
13645
  Team,
13357
13646
  TeamMembership,
13358
13647
  TeamSpaceMembership,
13648
+ Template,
13359
13649
  UIConfig,
13360
13650
  Upload,
13361
13651
  UploadCredential,
13652
+ Experience,
13362
13653
  Usage,
13363
13654
  User,
13364
13655
  UserUIConfig,
@@ -23104,14 +23395,18 @@ var contentfulManagement = (function (exports) {
23104
23395
  * ```
23105
23396
  */
23106
23397
  getSpaces: function getSpaces(query = {}, organizationId) {
23107
- const { cursor, ...rest } = query;
23398
+ const { cursor, include, ...rest } = query;
23108
23399
  const normalizedQuery = cursor
23109
23400
  ? normalizeCursorPaginationParameters(rest)
23110
23401
  : rest;
23111
23402
  return makeRequest({
23112
23403
  entityType: 'Space',
23113
23404
  action: 'getMany',
23114
- params: { query: createRequestConfig({ query: normalizedQuery }).params, organizationId },
23405
+ params: {
23406
+ query: createRequestConfig({ query: normalizedQuery }).params,
23407
+ organizationId,
23408
+ include,
23409
+ },
23115
23410
  }).then((data) =>
23116
23411
  // makeRequest returns the union type; cursor determines which branch is present at runtime so the casts are required
23117
23412
  cursor
@@ -23134,11 +23429,11 @@ var contentfulManagement = (function (exports) {
23134
23429
  * .catch(console.error)
23135
23430
  * ```
23136
23431
  */
23137
- getSpace: function getSpace(spaceId) {
23432
+ getSpace: function getSpace(spaceId, { include } = {}) {
23138
23433
  return makeRequest({
23139
23434
  entityType: 'Space',
23140
23435
  action: 'get',
23141
- params: { spaceId },
23436
+ params: { spaceId, include },
23142
23437
  }).then((data) => wrapSpace(makeRequest, data));
23143
23438
  },
23144
23439
  /**
@@ -23820,6 +24115,12 @@ var contentfulManagement = (function (exports) {
23820
24115
  },
23821
24116
  componentType: {
23822
24117
  getMany: wrap(wrapParams, 'ComponentType', 'getMany'),
24118
+ get: wrap(wrapParams, 'ComponentType', 'get'),
24119
+ create: wrap(wrapParams, 'ComponentType', 'create'),
24120
+ upsert: wrap(wrapParams, 'ComponentType', 'upsert'),
24121
+ delete: wrap(wrapParams, 'ComponentType', 'delete'),
24122
+ publish: wrap(wrapParams, 'ComponentType', 'publish'),
24123
+ unpublish: wrap(wrapParams, 'ComponentType', 'unpublish'),
23823
24124
  },
23824
24125
  contentType: {
23825
24126
  get: wrap(wrapParams, 'ContentType', 'get'),
@@ -23833,6 +24134,17 @@ var contentfulManagement = (function (exports) {
23833
24134
  createWithId: wrap(wrapParams, 'ContentType', 'createWithId'),
23834
24135
  omitAndDeleteField: (params, contentType, fieldId) => omitAndDeleteField(makeRequest, { ...{ ...defaults, ...params }, fieldId }, contentType),
23835
24136
  },
24137
+ dataAssembly: {
24138
+ getMany: wrap(wrapParams, 'DataAssembly', 'getMany'),
24139
+ getManyPublished: wrap(wrapParams, 'DataAssembly', 'getManyPublished'),
24140
+ getPublished: wrap(wrapParams, 'DataAssembly', 'getPublished'),
24141
+ get: wrap(wrapParams, 'DataAssembly', 'get'),
24142
+ create: wrap(wrapParams, 'DataAssembly', 'create'),
24143
+ update: wrap(wrapParams, 'DataAssembly', 'update'),
24144
+ delete: wrap(wrapParams, 'DataAssembly', 'delete'),
24145
+ publish: wrap(wrapParams, 'DataAssembly', 'publish'),
24146
+ unpublish: wrap(wrapParams, 'DataAssembly', 'unpublish'),
24147
+ },
23836
24148
  user: {
23837
24149
  getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'),
23838
24150
  getForSpace: wrap(wrapParams, 'User', 'getForSpace'),
@@ -24180,6 +24492,24 @@ var contentfulManagement = (function (exports) {
24180
24492
  update: wrap(wrapParams, 'TeamSpaceMembership', 'update'),
24181
24493
  delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete'),
24182
24494
  },
24495
+ fragment: {
24496
+ getMany: wrap(wrapParams, 'Fragment', 'getMany'),
24497
+ get: wrap(wrapParams, 'Fragment', 'get'),
24498
+ create: wrap(wrapParams, 'Fragment', 'create'),
24499
+ update: wrap(wrapParams, 'Fragment', 'update'),
24500
+ delete: wrap(wrapParams, 'Fragment', 'delete'),
24501
+ publish: wrap(wrapParams, 'Fragment', 'publish'),
24502
+ unpublish: wrap(wrapParams, 'Fragment', 'unpublish'),
24503
+ },
24504
+ template: {
24505
+ getMany: wrap(wrapParams, 'Template', 'getMany'),
24506
+ get: wrap(wrapParams, 'Template', 'get'),
24507
+ create: wrap(wrapParams, 'Template', 'create'),
24508
+ upsert: wrap(wrapParams, 'Template', 'upsert'),
24509
+ delete: wrap(wrapParams, 'Template', 'delete'),
24510
+ publish: wrap(wrapParams, 'Template', 'publish'),
24511
+ unpublish: wrap(wrapParams, 'Template', 'unpublish'),
24512
+ },
24183
24513
  uiConfig: {
24184
24514
  get: wrap(wrapParams, 'UIConfig', 'get'),
24185
24515
  update: wrap(wrapParams, 'UIConfig', 'update'),
@@ -24188,6 +24518,15 @@ var contentfulManagement = (function (exports) {
24188
24518
  get: wrap(wrapParams, 'UserUIConfig', 'get'),
24189
24519
  update: wrap(wrapParams, 'UserUIConfig', 'update'),
24190
24520
  },
24521
+ experience: {
24522
+ getMany: wrap(wrapParams, 'Experience', 'getMany'),
24523
+ get: wrap(wrapParams, 'Experience', 'get'),
24524
+ create: wrap(wrapParams, 'Experience', 'create'),
24525
+ upsert: wrap(wrapParams, 'Experience', 'upsert'),
24526
+ delete: wrap(wrapParams, 'Experience', 'delete'),
24527
+ publish: wrap(wrapParams, 'Experience', 'publish'),
24528
+ unpublish: wrap(wrapParams, 'Experience', 'unpublish'),
24529
+ },
24191
24530
  workflowDefinition: {
24192
24531
  get: wrap(wrapParams, 'WorkflowDefinition', 'get'),
24193
24532
  getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),