contentful-management 12.6.0-dev.3 → 12.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +3 -3
  2. package/dist/browser/index.js +772 -1063
  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 +764 -1055
  7. package/dist/cjs/index.cjs.map +1 -1
  8. package/dist/esm/adapters/REST/endpoints/asset.mjs +12 -1
  9. package/dist/esm/adapters/REST/endpoints/asset.mjs.map +1 -1
  10. package/dist/esm/adapters/REST/endpoints/comment.mjs +10 -2
  11. package/dist/esm/adapters/REST/endpoints/comment.mjs.map +1 -1
  12. package/dist/esm/adapters/REST/endpoints/component-type.mjs +3 -43
  13. package/dist/esm/adapters/REST/endpoints/component-type.mjs.map +1 -1
  14. package/dist/esm/adapters/REST/endpoints/content-type.mjs +9 -1
  15. package/dist/esm/adapters/REST/endpoints/content-type.mjs.map +1 -1
  16. package/dist/esm/adapters/REST/endpoints/entry.mjs +12 -1
  17. package/dist/esm/adapters/REST/endpoints/entry.mjs.map +1 -1
  18. package/dist/esm/adapters/REST/endpoints/index.mjs +0 -8
  19. package/dist/esm/adapters/REST/endpoints/index.mjs.map +1 -1
  20. package/dist/esm/common-types.mjs.map +1 -1
  21. package/dist/esm/entities/ai-action-invocation.mjs.map +1 -1
  22. package/dist/esm/entities/ai-action.mjs.map +1 -1
  23. package/dist/esm/entities/comment.mjs +10 -6
  24. package/dist/esm/entities/comment.mjs.map +1 -1
  25. package/dist/esm/plain/plain-client.mjs +0 -44
  26. package/dist/esm/plain/plain-client.mjs.map +1 -1
  27. package/dist/types/adapters/REST/endpoints/asset.d.ts +1 -0
  28. package/dist/types/adapters/REST/endpoints/asset.js +12 -1
  29. package/dist/types/adapters/REST/endpoints/asset.js.map +1 -1
  30. package/dist/types/adapters/REST/endpoints/comment.js +10 -2
  31. package/dist/types/adapters/REST/endpoints/comment.js.map +1 -1
  32. package/dist/types/adapters/REST/endpoints/component-type.d.ts +0 -6
  33. package/dist/types/adapters/REST/endpoints/component-type.js +3 -43
  34. package/dist/types/adapters/REST/endpoints/component-type.js.map +1 -1
  35. package/dist/types/adapters/REST/endpoints/content-type.d.ts +1 -0
  36. package/dist/types/adapters/REST/endpoints/content-type.js +9 -1
  37. package/dist/types/adapters/REST/endpoints/content-type.js.map +1 -1
  38. package/dist/types/adapters/REST/endpoints/entry.d.ts +1 -0
  39. package/dist/types/adapters/REST/endpoints/entry.js +12 -1
  40. package/dist/types/adapters/REST/endpoints/entry.js.map +1 -1
  41. package/dist/types/adapters/REST/endpoints/index.d.ts +0 -8
  42. package/dist/types/adapters/REST/endpoints/index.js +0 -8
  43. package/dist/types/adapters/REST/endpoints/index.js.map +1 -1
  44. package/dist/types/common-types.d.ts +5 -384
  45. package/dist/types/common-types.js.map +1 -1
  46. package/dist/types/entities/ai-action-invocation.d.ts +37 -18
  47. package/dist/types/entities/ai-action-invocation.js.map +1 -1
  48. package/dist/types/entities/ai-action.d.ts +4 -1
  49. package/dist/types/entities/ai-action.js.map +1 -1
  50. package/dist/types/entities/comment.d.ts +4 -6
  51. package/dist/types/entities/comment.js +10 -6
  52. package/dist/types/entities/comment.js.map +1 -1
  53. package/dist/types/entities/component-type.d.ts +56 -88
  54. package/dist/types/export-types.d.ts +1 -6
  55. package/dist/types/plain/entities/component-type.d.ts +7 -118
  56. package/dist/types/plain/plain-client-types.d.ts +0 -8
  57. package/dist/types/plain/plain-client.js +0 -44
  58. package/dist/types/plain/plain-client.js.map +1 -1
  59. package/package.json +1 -1
  60. package/dist/esm/adapters/REST/endpoints/data-assembly.mjs +0 -62
  61. package/dist/esm/adapters/REST/endpoints/data-assembly.mjs.map +0 -1
  62. package/dist/esm/adapters/REST/endpoints/experience.mjs +0 -52
  63. package/dist/esm/adapters/REST/endpoints/experience.mjs.map +0 -1
  64. package/dist/esm/adapters/REST/endpoints/fragment.mjs +0 -50
  65. package/dist/esm/adapters/REST/endpoints/fragment.mjs.map +0 -1
  66. package/dist/esm/adapters/REST/endpoints/template.mjs +0 -50
  67. package/dist/esm/adapters/REST/endpoints/template.mjs.map +0 -1
  68. package/dist/types/adapters/REST/endpoints/data-assembly.d.ts +0 -10
  69. package/dist/types/adapters/REST/endpoints/data-assembly.js +0 -62
  70. package/dist/types/adapters/REST/endpoints/data-assembly.js.map +0 -1
  71. package/dist/types/adapters/REST/endpoints/experience.d.ts +0 -8
  72. package/dist/types/adapters/REST/endpoints/experience.js +0 -52
  73. package/dist/types/adapters/REST/endpoints/experience.js.map +0 -1
  74. package/dist/types/adapters/REST/endpoints/fragment.d.ts +0 -8
  75. package/dist/types/adapters/REST/endpoints/fragment.js +0 -50
  76. package/dist/types/adapters/REST/endpoints/fragment.js.map +0 -1
  77. package/dist/types/adapters/REST/endpoints/template.d.ts +0 -8
  78. package/dist/types/adapters/REST/endpoints/template.js +0 -50
  79. package/dist/types/adapters/REST/endpoints/template.js.map +0 -1
  80. package/dist/types/entities/data-assembly.d.ts +0 -94
  81. package/dist/types/entities/experience.d.ts +0 -78
  82. package/dist/types/entities/fragment.d.ts +0 -52
  83. package/dist/types/entities/template.d.ts +0 -47
  84. package/dist/types/plain/entities/data-assembly.d.ts +0 -178
  85. package/dist/types/plain/entities/experience.d.ts +0 -164
  86. package/dist/types/plain/entities/fragment.d.ts +0 -133
  87. package/dist/types/plain/entities/template.d.ts +0 -138
@@ -2,7 +2,7 @@ var contentfulManagement = (function (exports) {
2
2
  'use strict';
3
3
 
4
4
  var toStringFunction = Function.prototype.toString;
5
- var create$L = Object.create;
5
+ var create$G = 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$L(null);
42
+ return create$G(null);
43
43
  }
44
44
  var Constructor = prototype.constructor;
45
45
  if (Constructor === Object) {
46
- return prototype === Object.prototype ? {} : create$L(prototype);
46
+ return prototype === Object.prototype ? {} : create$G(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$L(prototype);
55
+ return create$G(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$1a;
3142
+ var get$15;
3143
3143
  var hasRequiredGet;
3144
3144
 
3145
3145
  function requireGet () {
3146
- if (hasRequiredGet) return get$1a;
3146
+ if (hasRequiredGet) return get$15;
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$1a = desc && typeof desc.get === 'function'
3169
+ get$15 = 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$1a;
3177
+ return get$15;
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$x(http) {
9752
+ function getBaseUrl$t(http) {
9753
9753
  return http.defaults.baseURL?.split('/spaces')[0];
9754
9754
  }
9755
- function get$19(http, url, config) {
9755
+ function get$14(http, url, config) {
9756
9756
  return http
9757
9757
  .get(url, {
9758
- baseURL: getBaseUrl$x(http),
9758
+ baseURL: getBaseUrl$t(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$x(http),
9766
+ baseURL: getBaseUrl$t(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$x(http),
9774
+ baseURL: getBaseUrl$t(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$x(http),
9782
+ baseURL: getBaseUrl$t(http),
9783
9783
  ...config,
9784
9784
  })
9785
9785
  .then((response) => response.data, errorHandler);
9786
9786
  }
9787
- function del$M(http, url, config) {
9787
+ function del$H(http, url, config) {
9788
9788
  return http
9789
9789
  .delete(url, {
9790
- baseURL: getBaseUrl$x(http),
9790
+ baseURL: getBaseUrl$t(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$x(http),
9797
+ baseURL: getBaseUrl$t(http),
9798
9798
  ...config,
9799
9799
  }).then((response) => response.data, errorHandler);
9800
9800
  }
9801
9801
 
9802
- const get$18 = (http, params, headers) => {
9803
- return get$19(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
9802
+ const get$13 = (http, params, headers) => {
9803
+ return get$14(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
9804
9804
  headers,
9805
9805
  });
9806
9806
  };
9807
- const getMany$V = (http, params, headers) => {
9808
- return get$19(http, `/spaces/${params.spaceId}/ai/actions`, {
9807
+ const getMany$R = (http, params, headers) => {
9808
+ return get$14(http, `/spaces/${params.spaceId}/ai/actions`, {
9809
9809
  params: params.query,
9810
9810
  headers,
9811
9811
  });
9812
9812
  };
9813
- const create$K = (http, params, data, headers) => {
9813
+ const create$F = (http, params, data, headers) => {
9814
9814
  return post$1(http, `/spaces/${params.spaceId}/ai/actions`, data, { headers });
9815
9815
  };
9816
- const update$A = (http, params, rawData, headers) => {
9816
+ const update$z = (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$L = (http, params, headers) => {
9827
- return del$M(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, { headers });
9826
+ const del$G = (http, params, headers) => {
9827
+ return del$H(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, { headers });
9828
9828
  };
9829
- const publish$a = (http, params, rawData, headers) => {
9829
+ const publish$5 = (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$a = (http, params, headers) => {
9838
- return del$M(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, {
9837
+ const unpublish$5 = (http, params, headers) => {
9838
+ return del$H(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$K,
9849
- del: del$L,
9850
- get: get$18,
9851
- getMany: getMany$V,
9848
+ create: create$F,
9849
+ del: del$G,
9850
+ get: get$13,
9851
+ getMany: getMany$R,
9852
9852
  invoke: invoke,
9853
- publish: publish$a,
9854
- unpublish: unpublish$a,
9855
- update: update$A
9853
+ publish: publish$5,
9854
+ unpublish: unpublish$5,
9855
+ update: update$z
9856
9856
  });
9857
9857
 
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 });
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 });
9860
9860
  };
9861
9861
 
9862
9862
  var AiActionInvocation = /*#__PURE__*/Object.freeze({
9863
9863
  __proto__: null,
9864
- get: get$17
9864
+ get: get$12
9865
9865
  });
9866
9866
 
9867
9867
  const AgentAlphaHeaders = {
9868
9868
  'x-contentful-enable-alpha-feature': 'agents-api',
9869
9869
  };
9870
- const get$16 = (http, params, headers) => {
9871
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/${params.agentId}`, {
9870
+ const get$11 = (http, params, headers) => {
9871
+ return get$14(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$U = (http, params, headers) => {
9879
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents`, {
9878
+ const getMany$Q = (http, params, headers) => {
9879
+ return get$14(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$16,
9899
- getMany: getMany$U
9898
+ get: get$11,
9899
+ getMany: getMany$Q
9900
9900
  });
9901
9901
 
9902
9902
  const AgentRunAlphaHeaders = {
9903
9903
  'x-contentful-enable-alpha-feature': 'agents-api',
9904
9904
  };
9905
- const get$15 = (http, params, headers) => {
9906
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs/${params.runId}`, {
9905
+ const get$10 = (http, params, headers) => {
9906
+ return get$14(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$T = (http, params, headers) => {
9914
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs`, {
9913
+ const getMany$P = (http, params, headers) => {
9914
+ return get$14(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$15,
9934
- getMany: getMany$T,
9933
+ get: get$10,
9934
+ getMany: getMany$P,
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$14 = (http, params) => {
9960
- return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
9959
+ const get$$ = (http, params) => {
9960
+ return get$14(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$S = (http, params) => {
9983
- return get$19(http, '/users/me/access_tokens', {
9982
+ const getMany$O = (http, params) => {
9983
+ return get$14(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$19(http, `/organizations/${params.organizationId}/access_tokens`, {
10060
+ return get$14(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$14,
10069
- getMany: getMany$S,
10068
+ get: get$$,
10069
+ getMany: getMany$O,
10070
10070
  getManyForOrganization: getManyForOrganization$7,
10071
10071
  revoke: revoke$1
10072
10072
  });
10073
10073
 
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), {
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), {
10077
10077
  headers,
10078
10078
  });
10079
- const getMany$R = (http, params, headers) => get$19(http, getBaseUrl$w(params), {
10079
+ const getMany$N = (http, params, headers) => get$14(http, getBaseUrl$s(params), {
10080
10080
  headers,
10081
10081
  params: params.query,
10082
10082
  });
10083
- const create$J = (http, params, rawData, headers) => {
10083
+ const create$E = (http, params, rawData, headers) => {
10084
10084
  const data = index$2(rawData);
10085
- return post$1(http, getBaseUrl$w(params), data, {
10085
+ return post$1(http, getBaseUrl$s(params), data, {
10086
10086
  headers,
10087
10087
  });
10088
10088
  };
10089
- const update$z = (http, params, rawData, headers) => {
10089
+ const update$y = (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$K = (http, params, headers) => {
10100
- return del$M(http, getAutomationDefinitionUrl(params), {
10099
+ const del$F = (http, params, headers) => {
10100
+ return del$H(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$J,
10108
- del: del$K,
10109
- get: get$13,
10110
- getMany: getMany$R,
10111
- update: update$z
10107
+ create: create$E,
10108
+ del: del$F,
10109
+ get: get$_,
10110
+ getMany: getMany$N,
10111
+ update: update$y
10112
10112
  });
10113
10113
 
10114
- const getBaseUrl$v = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`;
10115
- const getAutomationExecutionUrl = (params) => `${getBaseUrl$v(params)}/${params.automationExecutionId}`;
10114
+ const getBaseUrl$r = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`;
10115
+ const getAutomationExecutionUrl = (params) => `${getBaseUrl$r(params)}/${params.automationExecutionId}`;
10116
10116
  const getExecutionsByDefinitionUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions/${params.automationDefinitionId}/automation_executions`;
10117
- const get$12 = (http, params, headers) => get$19(http, getAutomationExecutionUrl(params), {
10117
+ const get$Z = (http, params, headers) => get$14(http, getAutomationExecutionUrl(params), {
10118
10118
  headers,
10119
10119
  });
10120
- const getMany$Q = (http, params, headers) => get$19(http, getBaseUrl$v(params), {
10120
+ const getMany$M = (http, params, headers) => get$14(http, getBaseUrl$r(params), {
10121
10121
  headers,
10122
10122
  params: params.query,
10123
10123
  });
10124
- const getForAutomationDefinition = (http, params, headers) => get$19(http, getExecutionsByDefinitionUrl(params), {
10124
+ const getForAutomationDefinition = (http, params, headers) => get$14(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$12,
10131
+ get: get$Z,
10132
10132
  getForAutomationDefinition: getForAutomationDefinition,
10133
- getMany: getMany$Q
10133
+ getMany: getMany$M
10134
10134
  });
10135
10135
 
10136
- const get$11 = (http, params) => {
10137
- return get$19(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
10136
+ const get$Y = (http, params) => {
10137
+ return get$14(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
10138
10138
  };
10139
- const getMany$P = (http, params) => {
10140
- return get$19(http, `/spaces/${params.spaceId}/api_keys`, {
10139
+ const getMany$L = (http, params) => {
10140
+ return get$14(http, `/spaces/${params.spaceId}/api_keys`, {
10141
10141
  params: params.query,
10142
10142
  });
10143
10143
  };
10144
- const create$I = (http, params, data, headers) => {
10144
+ const create$D = (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$y = (http, params, rawData, headers) => {
10152
+ const update$x = (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$J = (http, params) => {
10172
- return del$M(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
10171
+ const del$E = (http, params) => {
10172
+ return del$H(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$I,
10177
+ create: create$D,
10178
10178
  createWithId: createWithId$e,
10179
- del: del$J,
10180
- get: get$11,
10181
- getMany: getMany$P,
10182
- update: update$y
10179
+ del: del$E,
10180
+ get: get$Y,
10181
+ getMany: getMany$L,
10182
+ update: update$x
10183
10183
  });
10184
10184
 
10185
- const create$H = (http, params, data) => {
10185
+ const create$C = (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$H
10191
+ create: create$C
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$u = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`;
10215
- const getAppActionUrl = (params) => `${getBaseUrl$u(params)}/${params.appActionId}`;
10214
+ const getBaseUrl$q = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`;
10215
+ const getAppActionUrl = (params) => `${getBaseUrl$q(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$10 = (http, params) => {
10223
- return get$19(http, getAppActionUrl(params));
10222
+ const get$X = (http, params) => {
10223
+ return get$14(http, getAppActionUrl(params));
10224
10224
  };
10225
- const getMany$O = (http, params) => {
10226
- return get$19(http, getBaseUrl$u(params), {
10225
+ const getMany$K = (http, params) => {
10226
+ return get$14(http, getBaseUrl$q(params), {
10227
10227
  params: normalizeSelect(params.query),
10228
10228
  });
10229
10229
  };
10230
10230
  const getManyForEnvironment$2 = (http, params) => {
10231
- return get$19(http, getAppActionsEnvUrl(params), {
10231
+ return get$14(http, getAppActionsEnvUrl(params), {
10232
10232
  params: normalizeSelect(params.query),
10233
10233
  });
10234
10234
  };
10235
- const del$I = (http, params) => {
10236
- return del$M(http, getAppActionUrl(params));
10235
+ const del$D = (http, params) => {
10236
+ return del$H(http, getAppActionUrl(params));
10237
10237
  };
10238
- const create$G = (http, params, data) => {
10239
- return post$1(http, getBaseUrl$u(params), data);
10238
+ const create$B = (http, params, data) => {
10239
+ return post$1(http, getBaseUrl$q(params), data);
10240
10240
  };
10241
- const update$x = (http, params, data) => {
10241
+ const update$w = (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$G,
10248
- del: del$I,
10249
- get: get$10,
10250
- getMany: getMany$O,
10247
+ create: create$B,
10248
+ del: del$D,
10249
+ get: get$X,
10250
+ getMany: getMany$K,
10251
10251
  getManyForEnvironment: getManyForEnvironment$2,
10252
- update: update$x
10252
+ update: update$w
10253
10253
  });
10254
10254
 
10255
10255
  /**
@@ -10315,11 +10315,11 @@ var contentfulManagement = (function (exports) {
10315
10315
  };
10316
10316
  }
10317
10317
 
10318
- const create$F = (http, params, data) => {
10318
+ const create$A = (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$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`);
10322
+ return get$14(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$$ = (http, params) => {
10375
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}`);
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}`);
10376
10376
  };
10377
10377
  // Get raw AppActionCall response (headers/body) for a completed call
10378
10378
  const getResponse = (http, params) => {
10379
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}/response`);
10379
+ return get$14(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$$(http, { ...params, callId });
10388
+ const result = await get$W(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$F,
10427
+ create: create$A,
10428
10428
  createWithResponse: createWithResponse,
10429
10429
  createWithResult: createWithResult,
10430
- get: get$$,
10430
+ get: get$W,
10431
10431
  getCallDetails: getCallDetails$1,
10432
10432
  getResponse: getResponse
10433
10433
  });
10434
10434
 
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));
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));
10439
10439
  };
10440
- const getMany$N = (http, params) => {
10441
- return get$19(http, getBaseUrl$t(params), {
10440
+ const getMany$J = (http, params) => {
10441
+ return get$14(http, getBaseUrl$p(params), {
10442
10442
  params: normalizeSelect(params.query),
10443
10443
  });
10444
10444
  };
10445
- const del$H = (http, params) => {
10446
- return del$M(http, getAppBundleUrl(params));
10445
+ const del$C = (http, params) => {
10446
+ return del$H(http, getAppBundleUrl(params));
10447
10447
  };
10448
- const create$E = (http, params, payload) => {
10448
+ const create$z = (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$t(params), data);
10462
+ return post$1(http, getBaseUrl$p(params), data);
10463
10463
  };
10464
10464
 
10465
10465
  var AppBundle = /*#__PURE__*/Object.freeze({
10466
10466
  __proto__: null,
10467
- create: create$E,
10468
- del: del$H,
10469
- get: get$_,
10470
- getMany: getMany$N
10467
+ create: create$z,
10468
+ del: del$C,
10469
+ get: get$V,
10470
+ getMany: getMany$J
10471
10471
  });
10472
10472
 
10473
- const getBaseUrl$s = (params) => `/organizations/${params.organizationId}/app_definitions`;
10474
- const getAppDefinitionUrl = (params) => getBaseUrl$s(params) + `/${params.appDefinitionId}`;
10473
+ const getBaseUrl$o = (params) => `/organizations/${params.organizationId}/app_definitions`;
10474
+ const getAppDefinitionUrl = (params) => getBaseUrl$o(params) + `/${params.appDefinitionId}`;
10475
10475
  const getBaseUrlForOrgInstallations$1 = (params) => `/app_definitions/${params.appDefinitionId}/app_installations`;
10476
- const get$Z = (http, params) => {
10477
- return get$19(http, getAppDefinitionUrl(params), {
10476
+ const get$U = (http, params) => {
10477
+ return get$14(http, getAppDefinitionUrl(params), {
10478
10478
  params: normalizeSelect(params.query),
10479
10479
  });
10480
10480
  };
10481
- const getMany$M = (http, params) => {
10482
- return get$19(http, getBaseUrl$s(params), {
10481
+ const getMany$I = (http, params) => {
10482
+ return get$14(http, getBaseUrl$o(params), {
10483
10483
  params: params.query,
10484
10484
  });
10485
10485
  };
10486
- const create$D = (http, params, rawData) => {
10486
+ const create$y = (http, params, rawData) => {
10487
10487
  const data = index$2(rawData);
10488
- return post$1(http, getBaseUrl$s(params), data);
10488
+ return post$1(http, getBaseUrl$o(params), data);
10489
10489
  };
10490
- const update$w = (http, params, rawData, headers) => {
10490
+ const update$v = (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$G = (http, params) => {
10501
- return del$M(http, getAppDefinitionUrl(params));
10500
+ const del$B = (http, params) => {
10501
+ return del$H(http, getAppDefinitionUrl(params));
10502
10502
  };
10503
10503
  const getInstallationsForOrg = (http, params) => {
10504
- return get$19(http, getBaseUrlForOrgInstallations$1(params), {
10504
+ return get$14(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$D,
10515
- del: del$G,
10516
- get: get$Z,
10514
+ create: create$y,
10515
+ del: del$B,
10516
+ get: get$U,
10517
10517
  getAppDefinitionUrl: getAppDefinitionUrl,
10518
10518
  getInstallationsForOrg: getInstallationsForOrg,
10519
- getMany: getMany$M,
10520
- update: update$w
10519
+ getMany: getMany$I,
10520
+ update: update$v
10521
10521
  });
10522
10522
 
10523
- const get$Y = (http, params) => {
10524
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
10523
+ const get$T = (http, params) => {
10524
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
10525
10525
  };
10526
- const upsert$9 = (http, params, data) => {
10526
+ const upsert$5 = (http, params, data) => {
10527
10527
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`, data);
10528
10528
  };
10529
- const del$F = (http, params) => {
10530
- return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
10529
+ const del$A = (http, params) => {
10530
+ return del$H(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$F,
10536
- get: get$Y,
10537
- upsert: upsert$9
10535
+ del: del$A,
10536
+ get: get$T,
10537
+ upsert: upsert$5
10538
10538
  });
10539
10539
 
10540
- const get$X = (http, params) => {
10541
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
10540
+ const get$S = (http, params) => {
10541
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
10542
10542
  };
10543
- const upsert$8 = (http, params, data) => {
10543
+ const upsert$4 = (http, params, data) => {
10544
10544
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`, data);
10545
10545
  };
10546
- const del$E = (http, params) => {
10547
- return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
10546
+ const del$z = (http, params) => {
10547
+ return del$H(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$E,
10553
- get: get$X,
10554
- upsert: upsert$8
10552
+ del: del$z,
10553
+ get: get$S,
10554
+ upsert: upsert$4
10555
10555
  });
10556
10556
 
10557
- const getBaseUrl$r = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`;
10557
+ const getBaseUrl$n = (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$r(params) + `/${params.appDefinitionId}`;
10560
- const get$W = (http, params) => {
10561
- return get$19(http, getAppInstallationUrl(params), {
10559
+ const getAppInstallationUrl = (params) => getBaseUrl$n(params) + `/${params.appDefinitionId}`;
10560
+ const get$R = (http, params) => {
10561
+ return get$14(http, getAppInstallationUrl(params), {
10562
10562
  params: normalizeSelect(params.query),
10563
10563
  });
10564
10564
  };
10565
- const getMany$L = (http, params) => {
10566
- return get$19(http, getBaseUrl$r(params), {
10565
+ const getMany$H = (http, params) => {
10566
+ return get$14(http, getBaseUrl$n(params), {
10567
10567
  params: normalizeSelect(params.query),
10568
10568
  });
10569
10569
  };
10570
- const upsert$7 = (http, params, rawData, headers) => {
10570
+ const upsert$3 = (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$D = (http, params) => {
10582
- return del$M(http, getAppInstallationUrl(params));
10581
+ const del$y = (http, params) => {
10582
+ return del$H(http, getAppInstallationUrl(params));
10583
10583
  };
10584
10584
  const getForOrganization$3 = (http, params) => {
10585
- return get$19(http, getBaseUrlForOrgInstallations(params), {
10585
+ return get$14(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$D,
10596
- get: get$W,
10595
+ del: del$y,
10596
+ get: get$R,
10597
10597
  getAppInstallationUrl: getAppInstallationUrl,
10598
10598
  getForOrganization: getForOrganization$3,
10599
- getMany: getMany$L,
10600
- upsert: upsert$7
10599
+ getMany: getMany$H,
10600
+ upsert: upsert$3
10601
10601
  });
10602
10602
 
10603
- const get$V = (http, params) => {
10604
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
10603
+ const get$Q = (http, params) => {
10604
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
10605
10605
  };
10606
- const getMany$K = (http, params) => {
10607
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`);
10606
+ const getMany$G = (http, params) => {
10607
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`);
10608
10608
  };
10609
- const create$C = (http, params, data) => {
10609
+ const create$x = (http, params, data) => {
10610
10610
  return post$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`, data);
10611
10611
  };
10612
- const del$C = (http, params) => {
10613
- return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
10612
+ const del$x = (http, params) => {
10613
+ return del$H(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$C,
10619
- del: del$C,
10620
- get: get$V,
10621
- getMany: getMany$K
10618
+ create: create$x,
10619
+ del: del$x,
10620
+ get: get$Q,
10621
+ getMany: getMany$G
10622
10622
  });
10623
10623
 
10624
- const create$B = (http, params, data) => {
10624
+ const create$w = (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$B
10630
+ create: create$w
10631
10631
  });
10632
10632
 
10633
- const get$U = (http, params) => {
10634
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
10633
+ const get$P = (http, params) => {
10634
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
10635
10635
  };
10636
- const upsert$6 = (http, params, data) => {
10636
+ const upsert$2 = (http, params, data) => {
10637
10637
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`, data);
10638
10638
  };
10639
- const del$B = (http, params) => {
10640
- return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
10639
+ const del$w = (http, params) => {
10640
+ return del$H(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$B,
10646
- get: get$U,
10647
- upsert: upsert$6
10645
+ del: del$w,
10646
+ get: get$P,
10647
+ upsert: upsert$2
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$q = (params) => `/organizations/${params.organizationId}/app_uploads`;
10664
- const getAppUploadUrl = (params) => `${getBaseUrl$q(params)}/${params.appUploadId}`;
10665
- const get$T = (http, params) => {
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) => {
10666
10666
  const httpUpload = getUploadHttpClient(http);
10667
- return get$19(httpUpload, getAppUploadUrl(params));
10667
+ return get$14(httpUpload, getAppUploadUrl(params));
10668
10668
  };
10669
- const del$A = (http, params) => {
10669
+ const del$v = (http, params) => {
10670
10670
  const httpUpload = getUploadHttpClient(http);
10671
- return del$M(httpUpload, getAppUploadUrl(params));
10671
+ return del$H(httpUpload, getAppUploadUrl(params));
10672
10672
  };
10673
- const create$A = (http, params, payload) => {
10673
+ const create$v = (http, params, payload) => {
10674
10674
  const httpUpload = getUploadHttpClient(http);
10675
10675
  const { file } = payload;
10676
- return post$1(httpUpload, getBaseUrl$q(params), file, {
10676
+ return post$1(httpUpload, getBaseUrl$m(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$A,
10686
- del: del$A,
10687
- get: get$T
10685
+ create: create$v,
10686
+ del: del$v,
10687
+ get: get$O
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$z = (http, params, data) => {
10700
+ const create$u = (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$z = (http, params) => {
10713
+ const del$u = (http, params) => {
10714
10714
  const httpUpload = getUploadHttpClient(http);
10715
10715
  const path = getEntityUploadUrl(params);
10716
- return del$M(httpUpload, path);
10716
+ return del$H(httpUpload, path);
10717
10717
  };
10718
- const get$S = (http, params) => {
10718
+ const get$N = (http, params) => {
10719
10719
  const httpUpload = getUploadHttpClient(http);
10720
10720
  const path = getEntityUploadUrl(params);
10721
- return get$19(httpUpload, path);
10721
+ return get$14(httpUpload, path);
10722
10722
  };
10723
10723
 
10724
10724
  var Upload = /*#__PURE__*/Object.freeze({
10725
10725
  __proto__: null,
10726
- create: create$z,
10727
- del: del$z,
10728
- get: get$S
10726
+ create: create$u,
10727
+ del: del$u,
10728
+ get: get$N
10729
10729
  });
10730
10730
 
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}`, {
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}`, {
10733
10733
  params: normalizeSelect(params.query),
10734
10734
  headers: headers ? { ...headers } : undefined,
10735
10735
  });
10736
10736
  };
10737
- const getMany$J = (http, params, rawData, headers) => {
10738
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, {
10737
+ const getMany$F = (http, params, rawData, headers) => {
10738
+ return get$14(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$v = (http, params, rawData, headers) => {
10743
+ const update$u = (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$y = (http, params, rawData, headers) => {
10753
+ const create$t = (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$z(httpUpload, params, file[locale]).then((upload) => {
10770
+ return create$u(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$y(http, params, asset, {});
10795
+ return create$t(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$R(http, params).then((asset) => {
10805
+ return get$M(http, params).then((asset) => {
10806
10806
  if (asset.fields.file[locale].url) {
10807
10807
  resolve(asset);
10808
10808
  }
@@ -10864,43 +10864,53 @@ var contentfulManagement = (function (exports) {
10864
10864
 
10865
10865
  var ReleaseAsset = /*#__PURE__*/Object.freeze({
10866
10866
  __proto__: null,
10867
- create: create$y,
10867
+ create: create$t,
10868
10868
  createFromFiles: createFromFiles$1,
10869
10869
  createWithId: createWithId$d,
10870
- get: get$R,
10871
- getMany: getMany$J,
10870
+ get: get$M,
10871
+ getMany: getMany$F,
10872
10872
  processForAllLocales: processForAllLocales$1,
10873
10873
  processForLocale: processForLocale$1,
10874
- update: update$v
10874
+ update: update$u
10875
10875
  });
10876
10876
 
10877
- const get$Q = (http, params, rawData, headers) => {
10877
+ const get$L = (http, params, rawData, headers) => {
10878
10878
  if (params.releaseId) {
10879
- return get$R(http, params);
10879
+ return get$M(http, params);
10880
10880
  }
10881
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, {
10881
+ return get$14(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$2 = (http, params, rawData, headers) => {
10887
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, {
10886
+ const getPublished$1 = (http, params, rawData, headers) => {
10887
+ return get$14(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$I = (http, params, rawData, headers) => {
10892
+ const getMany$E = (http, params, rawData, headers) => {
10893
10893
  if (params.releaseId) {
10894
- return getMany$J(http, params);
10894
+ return getMany$F(http, params);
10895
10895
  }
10896
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
10896
+ return get$14(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$u = (http, params, rawData, headers) => {
10901
+ const getManyWithCursor$2 = (http, params, rawData, headers) => {
10902
+ if (params.releaseId) {
10903
+ throw new Error('getManyWithCursor is not supported for release-scoped assets');
10904
+ }
10905
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
10906
+ params: { cursor: true, ...(params.query ?? {}) },
10907
+ headers: headers ? { ...headers } : undefined,
10908
+ })
10909
+ .then(normalizeCursorPaginationResponse);
10910
+ };
10911
+ const update$t = (http, params, rawData, headers) => {
10902
10912
  if (params.releaseId) {
10903
- return update$v(http, params, rawData, headers ?? {});
10913
+ return update$u(http, params, rawData, headers ?? {});
10904
10914
  }
10905
10915
  const data = index$2(rawData);
10906
10916
  delete data.sys;
@@ -10911,10 +10921,10 @@ var contentfulManagement = (function (exports) {
10911
10921
  },
10912
10922
  });
10913
10923
  };
10914
- const del$y = (http, params) => {
10915
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
10924
+ const del$t = (http, params) => {
10925
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
10916
10926
  };
10917
- const publish$9 = (http, params, rawData) => {
10927
+ const publish$4 = (http, params, rawData) => {
10918
10928
  const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
10919
10929
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
10920
10930
  headers: {
@@ -10922,7 +10932,7 @@ var contentfulManagement = (function (exports) {
10922
10932
  },
10923
10933
  });
10924
10934
  };
10925
- const unpublish$9 = (http, params, rawData) => {
10935
+ const unpublish$4 = (http, params, rawData) => {
10926
10936
  if (params.locales?.length) {
10927
10937
  const payload = { remove: { fields: { '*': params.locales } } };
10928
10938
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
@@ -10932,18 +10942,18 @@ var contentfulManagement = (function (exports) {
10932
10942
  });
10933
10943
  }
10934
10944
  else {
10935
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
10945
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
10936
10946
  }
10937
10947
  };
10938
10948
  const archive$2 = (http, params) => {
10939
10949
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
10940
10950
  };
10941
10951
  const unarchive$3 = (http, params) => {
10942
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
10952
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
10943
10953
  };
10944
- const create$x = (http, params, rawData) => {
10954
+ const create$s = (http, params, rawData) => {
10945
10955
  if (params.releaseId) {
10946
- return create$y(http, params, rawData, {});
10956
+ return create$t(http, params, rawData, {});
10947
10957
  }
10948
10958
  const data = index$2(rawData);
10949
10959
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, data);
@@ -10963,7 +10973,7 @@ var contentfulManagement = (function (exports) {
10963
10973
  const { file } = data.fields;
10964
10974
  return Promise.all(Object.keys(file).map(async (locale) => {
10965
10975
  const { contentType, fileName } = file[locale];
10966
- return create$z(httpUpload, params, file[locale]).then((upload) => {
10976
+ return create$u(httpUpload, params, file[locale]).then((upload) => {
10967
10977
  return {
10968
10978
  [locale]: {
10969
10979
  contentType,
@@ -10988,7 +10998,7 @@ var contentfulManagement = (function (exports) {
10988
10998
  file,
10989
10999
  },
10990
11000
  };
10991
- return create$x(http, params, asset);
11001
+ return create$s(http, params, asset);
10992
11002
  })
10993
11003
  .catch(errorHandler);
10994
11004
  };
@@ -10998,7 +11008,7 @@ var contentfulManagement = (function (exports) {
10998
11008
  const ASSET_PROCESSING_CHECK_WAIT = 3000;
10999
11009
  const ASSET_PROCESSING_CHECK_RETRIES = 10;
11000
11010
  async function checkIfAssetHasUrl(http, params, { resolve, reject, locale, processingCheckWait = ASSET_PROCESSING_CHECK_WAIT, processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES, checkCount = 0, }) {
11001
- return get$Q(http, params).then((asset) => {
11011
+ return get$L(http, params).then((asset) => {
11002
11012
  if (asset.fields.file[locale].url) {
11003
11013
  resolve(asset);
11004
11014
  }
@@ -11075,19 +11085,20 @@ var contentfulManagement = (function (exports) {
11075
11085
  var Asset = /*#__PURE__*/Object.freeze({
11076
11086
  __proto__: null,
11077
11087
  archive: archive$2,
11078
- create: create$x,
11088
+ create: create$s,
11079
11089
  createFromFiles: createFromFiles,
11080
11090
  createWithId: createWithId$c,
11081
- del: del$y,
11082
- get: get$Q,
11083
- getMany: getMany$I,
11084
- getPublished: getPublished$2,
11091
+ del: del$t,
11092
+ get: get$L,
11093
+ getMany: getMany$E,
11094
+ getManyWithCursor: getManyWithCursor$2,
11095
+ getPublished: getPublished$1,
11085
11096
  processForAllLocales: processForAllLocales,
11086
11097
  processForLocale: processForLocale,
11087
- publish: publish$9,
11098
+ publish: publish$4,
11088
11099
  unarchive: unarchive$3,
11089
- unpublish: unpublish$9,
11090
- update: update$u
11100
+ unpublish: unpublish$4,
11101
+ update: update$t
11091
11102
  });
11092
11103
 
11093
11104
  const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60;
@@ -11109,7 +11120,7 @@ var contentfulManagement = (function (exports) {
11109
11120
  throw new ValidationError(name, `value (${timestamp}) cannot be in the past, current time was ${options.now}`);
11110
11121
  }
11111
11122
  };
11112
- const create$w = (http, params, data) => {
11123
+ const create$r = (http, params, data) => {
11113
11124
  const expiresAt = data.expiresAt;
11114
11125
  const now = Math.floor(Date.now() / 1000);
11115
11126
  const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME;
@@ -11121,35 +11132,35 @@ var contentfulManagement = (function (exports) {
11121
11132
  var AssetKey = /*#__PURE__*/Object.freeze({
11122
11133
  __proto__: null,
11123
11134
  ValidationError: ValidationError,
11124
- create: create$w
11135
+ create: create$r
11125
11136
  });
11126
11137
 
11127
- const getBaseUrl$p = (params) => `/organizations/${params.organizationId}/available_licenses`;
11128
- const getMany$H = (http, params) => {
11129
- return get$19(http, getBaseUrl$p(params), {
11138
+ const getBaseUrl$l = (params) => `/organizations/${params.organizationId}/available_licenses`;
11139
+ const getMany$D = (http, params) => {
11140
+ return get$14(http, getBaseUrl$l(params), {
11130
11141
  params: params.query,
11131
11142
  });
11132
11143
  };
11133
11144
 
11134
11145
  var AvailableLicense = /*#__PURE__*/Object.freeze({
11135
11146
  __proto__: null,
11136
- getMany: getMany$H
11147
+ getMany: getMany$D
11137
11148
  });
11138
11149
 
11139
- const get$P = (http, params) => {
11140
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`);
11150
+ const get$K = (http, params) => {
11151
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`);
11141
11152
  };
11142
- const publish$8 = (http, params, payload) => {
11153
+ const publish$3 = (http, params, payload) => {
11143
11154
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`, payload);
11144
11155
  };
11145
- const unpublish$8 = (http, params, payload) => {
11156
+ const unpublish$3 = (http, params, payload) => {
11146
11157
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`, payload);
11147
11158
  };
11148
11159
  const validate$2 = (http, params, payload) => {
11149
11160
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`, payload);
11150
11161
  };
11151
11162
  const getV2 = (http, params) => {
11152
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
11163
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
11153
11164
  };
11154
11165
  const publishV2 = (http, params, payload) => {
11155
11166
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions`, payload);
@@ -11163,11 +11174,11 @@ var contentfulManagement = (function (exports) {
11163
11174
 
11164
11175
  var BulkAction = /*#__PURE__*/Object.freeze({
11165
11176
  __proto__: null,
11166
- get: get$P,
11177
+ get: get$K,
11167
11178
  getV2: getV2,
11168
- publish: publish$8,
11179
+ publish: publish$3,
11169
11180
  publishV2: publishV2,
11170
- unpublish: unpublish$8,
11181
+ unpublish: unpublish$3,
11171
11182
  unpublishV2: unpublishV2,
11172
11183
  validate: validate$2,
11173
11184
  validateV2: validateV2
@@ -11187,11 +11198,19 @@ var contentfulManagement = (function (exports) {
11187
11198
  return 'entries';
11188
11199
  case 'Workflow':
11189
11200
  return 'workflows';
11201
+ case 'Experience':
11202
+ return 'experiences';
11203
+ case 'Fragment':
11204
+ return 'fragments';
11205
+ case 'ComponentType':
11206
+ return 'component_types';
11207
+ case 'Template':
11208
+ return 'templates';
11190
11209
  }
11191
11210
  }
11192
11211
  /**
11193
- * Comments can be added to a content type, an entry, and a workflow. Workflow comments requires a version
11194
- * to be set as part of the URL path. Workflow comments only support `create` (with
11212
+ * Comments can be added to a content type, an entry, a workflow, or ExO entities. Workflow comments requires a version
11213
+ * to be set as part of the URL path for versioned operations. Workflow comments only support `create` (with
11195
11214
  * versionized URL) and `getMany` (without version). The API might support more methods
11196
11215
  * in the future with new use cases being discovered.
11197
11216
  */
@@ -11209,14 +11228,14 @@ var contentfulManagement = (function (exports) {
11209
11228
  const versionPath = 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : '';
11210
11229
  return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`;
11211
11230
  };
11212
- const get$O = (http, params) => get$19(http, getEntityCommentUrl(params), {
11231
+ const get$J = (http, params) => get$14(http, getEntityCommentUrl(params), {
11213
11232
  headers: params.bodyFormat === 'rich-text'
11214
11233
  ? {
11215
11234
  [BODY_FORMAT_HEADER]: params.bodyFormat,
11216
11235
  }
11217
11236
  : {},
11218
11237
  });
11219
- const getMany$G = (http, params) => get$19(http, getEntityBaseUrl(params), {
11238
+ const getMany$C = (http, params) => get$14(http, getEntityBaseUrl(params), {
11220
11239
  params: normalizeSelect(params.query),
11221
11240
  headers: params.bodyFormat === 'rich-text'
11222
11241
  ? {
@@ -11224,7 +11243,7 @@ var contentfulManagement = (function (exports) {
11224
11243
  }
11225
11244
  : {},
11226
11245
  });
11227
- const create$v = (http, params, rawData) => {
11246
+ const create$q = (http, params, rawData) => {
11228
11247
  const data = index$2(rawData);
11229
11248
  return post$1(http, getEntityBaseUrl(params), data, {
11230
11249
  headers: {
@@ -11236,7 +11255,7 @@ var contentfulManagement = (function (exports) {
11236
11255
  },
11237
11256
  });
11238
11257
  };
11239
- const update$t = (http, params, rawData, headers) => {
11258
+ const update$s = (http, params, rawData, headers) => {
11240
11259
  const data = index$2(rawData);
11241
11260
  delete data.sys;
11242
11261
  return put$1(http, getEntityCommentUrl(params), data, {
@@ -11247,8 +11266,8 @@ var contentfulManagement = (function (exports) {
11247
11266
  },
11248
11267
  });
11249
11268
  };
11250
- const del$x = (http, { version, ...params }) => {
11251
- return del$M(http, getEntityCommentUrl(params), {
11269
+ const del$s = (http, { version, ...params }) => {
11270
+ return del$H(http, getEntityCommentUrl(params), {
11252
11271
  headers: { [VERSION_HEADER]: version },
11253
11272
  });
11254
11273
  };
@@ -11256,80 +11275,35 @@ var contentfulManagement = (function (exports) {
11256
11275
  /**
11257
11276
  * @deprecated use `getMany` instead.
11258
11277
  */
11259
- const getAll$1 = getMany$G;
11278
+ const getAll$1 = getMany$C;
11260
11279
 
11261
11280
  var Comment = /*#__PURE__*/Object.freeze({
11262
11281
  __proto__: null,
11263
- create: create$v,
11264
- del: del$x,
11265
- get: get$O,
11282
+ create: create$q,
11283
+ del: del$s,
11284
+ get: get$J,
11266
11285
  getAll: getAll$1,
11267
- getMany: getMany$G,
11268
- update: update$t
11286
+ getMany: getMany$C,
11287
+ update: update$s
11269
11288
  });
11270
11289
 
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), {
11290
+ const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/component_types`;
11291
+ const getMany$B = (http, params, headers) => {
11292
+ return get$14(http, getBaseUrl$k(params), {
11274
11293
  params: params.query,
11275
11294
  headers,
11276
11295
  });
11277
11296
  };
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$5 = (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
- };
11317
11297
 
11318
11298
  var ComponentType = /*#__PURE__*/Object.freeze({
11319
11299
  __proto__: null,
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$5
11300
+ getMany: getMany$B
11327
11301
  });
11328
11302
 
11329
11303
  function basePath$1(organizationId) {
11330
11304
  return `/organizations/${organizationId}/taxonomy/concepts`;
11331
11305
  }
11332
- const create$t = (http, params, data) => {
11306
+ const create$p = (http, params, data) => {
11333
11307
  return post$1(http, basePath$1(params.organizationId), data);
11334
11308
  };
11335
11309
  const createWithId$b = (http, params, data) => {
@@ -11344,7 +11318,7 @@ var contentfulManagement = (function (exports) {
11344
11318
  },
11345
11319
  });
11346
11320
  };
11347
- const update$s = (http, params, data, headers) => {
11321
+ const update$r = (http, params, data, headers) => {
11348
11322
  return put$1(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, data, {
11349
11323
  headers: {
11350
11324
  'X-Contentful-Version': params.version,
@@ -11352,28 +11326,28 @@ var contentfulManagement = (function (exports) {
11352
11326
  },
11353
11327
  });
11354
11328
  };
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}`, {
11329
+ const get$I = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/${params.conceptId}`);
11330
+ const del$r = (http, params, headers) => del$H(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, {
11357
11331
  headers: {
11358
11332
  'X-Contentful-Version': params.version ?? 0,
11359
11333
  ...headers,
11360
11334
  },
11361
11335
  });
11362
- const getMany$E = (http, params) => {
11336
+ const getMany$A = (http, params) => {
11363
11337
  const { url, queryParams } = cursorBasedCollection('', params);
11364
- return get$19(http, url, {
11338
+ return get$14(http, url, {
11365
11339
  params: queryParams,
11366
11340
  });
11367
11341
  };
11368
11342
  const getDescendants = (http, params) => {
11369
11343
  const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/descendants`, params);
11370
- return get$19(http, url, { params: queryParams });
11344
+ return get$14(http, url, { params: queryParams });
11371
11345
  };
11372
11346
  const getAncestors = (http, params) => {
11373
11347
  const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/ancestors`, params);
11374
- return get$19(http, url, { params: queryParams });
11348
+ return get$14(http, url, { params: queryParams });
11375
11349
  };
11376
- const getTotal$1 = (http, params) => get$19(http, `${basePath$1(params.organizationId)}/total`);
11350
+ const getTotal$1 = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/total`);
11377
11351
  function cursorBasedCollection(path, params) {
11378
11352
  return params.query?.pageUrl
11379
11353
  ? { url: params.query?.pageUrl }
@@ -11385,36 +11359,36 @@ var contentfulManagement = (function (exports) {
11385
11359
 
11386
11360
  var Concept = /*#__PURE__*/Object.freeze({
11387
11361
  __proto__: null,
11388
- create: create$t,
11362
+ create: create$p,
11389
11363
  createWithId: createWithId$b,
11390
- del: del$v,
11391
- get: get$M,
11364
+ del: del$r,
11365
+ get: get$I,
11392
11366
  getAncestors: getAncestors,
11393
11367
  getDescendants: getDescendants,
11394
- getMany: getMany$E,
11368
+ getMany: getMany$A,
11395
11369
  getTotal: getTotal$1,
11396
11370
  patch: patch$4,
11397
- update: update$s
11371
+ update: update$r
11398
11372
  });
11399
11373
 
11400
11374
  function basePath(orgId) {
11401
11375
  return `/organizations/${orgId}/taxonomy/concept-schemes`;
11402
11376
  }
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}`, {
11377
+ const get$H = (http, params) => get$14(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`);
11378
+ const del$q = (http, params, headers) => del$H(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, {
11405
11379
  headers: {
11406
11380
  'X-Contentful-Version': params.version,
11407
11381
  ...headers,
11408
11382
  },
11409
11383
  });
11410
- const getMany$D = (http, params) => {
11384
+ const getMany$z = (http, params) => {
11411
11385
  const url = params.query?.pageUrl ?? basePath(params.organizationId);
11412
- return get$19(http, url, {
11386
+ return get$14(http, url, {
11413
11387
  params: params.query?.pageUrl ? undefined : params.query,
11414
11388
  });
11415
11389
  };
11416
- const getTotal = (http, params) => get$19(http, `${basePath(params.organizationId)}/total`);
11417
- const create$s = (http, params, data) => {
11390
+ const getTotal = (http, params) => get$14(http, `${basePath(params.organizationId)}/total`);
11391
+ const create$o = (http, params, data) => {
11418
11392
  return post$1(http, basePath(params.organizationId), data);
11419
11393
  };
11420
11394
  const createWithId$a = (http, params, data) => {
@@ -11429,7 +11403,7 @@ var contentfulManagement = (function (exports) {
11429
11403
  },
11430
11404
  });
11431
11405
  };
11432
- const update$r = (http, params, data, headers) => {
11406
+ const update$q = (http, params, data, headers) => {
11433
11407
  return put$1(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, data, {
11434
11408
  headers: {
11435
11409
  'X-Contentful-Version': params.version,
@@ -11440,39 +11414,46 @@ var contentfulManagement = (function (exports) {
11440
11414
 
11441
11415
  var ConceptScheme = /*#__PURE__*/Object.freeze({
11442
11416
  __proto__: null,
11443
- create: create$s,
11417
+ create: create$o,
11444
11418
  createWithId: createWithId$a,
11445
- del: del$u,
11446
- get: get$L,
11447
- getMany: getMany$D,
11419
+ del: del$q,
11420
+ get: get$H,
11421
+ getMany: getMany$z,
11448
11422
  getTotal: getTotal,
11449
11423
  patch: patch$3,
11450
- update: update$r
11424
+ update: update$q
11451
11425
  });
11452
11426
 
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), {
11427
+ const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`;
11428
+ const getContentTypeUrl$1 = (params) => getBaseUrl$j(params) + `/${params.contentTypeId}`;
11429
+ const get$G = (http, params, headers) => {
11430
+ return get$14(http, getContentTypeUrl$1(params), {
11457
11431
  params: normalizeSelect(params.query),
11458
11432
  headers,
11459
11433
  });
11460
11434
  };
11461
- const getMany$C = (http, params, headers) => {
11462
- return get$19(http, getBaseUrl$n(params), {
11435
+ const getMany$y = (http, params, headers) => {
11436
+ return get$14(http, getBaseUrl$j(params), {
11463
11437
  params: params.query,
11464
11438
  headers,
11465
11439
  });
11466
11440
  };
11467
- const create$r = (http, params, rawData, headers) => {
11441
+ const getManyWithCursor$1 = (http, params, headers) => {
11442
+ return get$14(http, getBaseUrl$j(params), {
11443
+ params: { cursor: true, ...(params.query ?? {}) },
11444
+ headers,
11445
+ })
11446
+ .then(normalizeCursorPaginationResponse);
11447
+ };
11448
+ const create$n = (http, params, rawData, headers) => {
11468
11449
  const data = index$2(rawData);
11469
- return post$1(http, getBaseUrl$n(params), data, { headers });
11450
+ return post$1(http, getBaseUrl$j(params), data, { headers });
11470
11451
  };
11471
11452
  const createWithId$9 = (http, params, rawData, headers) => {
11472
11453
  const data = index$2(rawData);
11473
11454
  return put$1(http, getContentTypeUrl$1(params), data, { headers });
11474
11455
  };
11475
- const update$q = (http, params, rawData, headers) => {
11456
+ const update$p = (http, params, rawData, headers) => {
11476
11457
  const data = index$2(rawData);
11477
11458
  delete data.sys;
11478
11459
  return put$1(http, getContentTypeUrl$1(params), data, {
@@ -11482,10 +11463,10 @@ var contentfulManagement = (function (exports) {
11482
11463
  },
11483
11464
  });
11484
11465
  };
11485
- const del$t = (http, params, headers) => {
11486
- return del$M(http, getContentTypeUrl$1(params), { headers });
11466
+ const del$p = (http, params, headers) => {
11467
+ return del$H(http, getContentTypeUrl$1(params), { headers });
11487
11468
  };
11488
- const publish$6 = (http, params, rawData, headers) => {
11469
+ const publish$2 = (http, params, rawData, headers) => {
11489
11470
  return put$1(http, getContentTypeUrl$1(params) + '/published', null, {
11490
11471
  headers: {
11491
11472
  'X-Contentful-Version': rawData.sys.version,
@@ -11493,103 +11474,34 @@ var contentfulManagement = (function (exports) {
11493
11474
  },
11494
11475
  });
11495
11476
  };
11496
- const unpublish$6 = (http, params, headers) => {
11497
- return del$M(http, getContentTypeUrl$1(params) + '/published', { headers });
11477
+ const unpublish$2 = (http, params, headers) => {
11478
+ return del$H(http, getContentTypeUrl$1(params) + '/published', { headers });
11498
11479
  };
11499
11480
 
11500
11481
  var ContentType = /*#__PURE__*/Object.freeze({
11501
11482
  __proto__: null,
11502
- create: create$r,
11483
+ create: create$n,
11503
11484
  createWithId: createWithId$9,
11504
- del: del$t,
11505
- get: get$K,
11506
- getMany: getMany$C,
11507
- publish: publish$6,
11508
- unpublish: unpublish$6,
11509
- update: update$q
11510
- });
11511
-
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
- });
11524
- };
11525
- const create$q = (http, params, rawData, headers) => {
11526
- const data = index$2(rawData);
11527
- return post$1(http, getBaseUrl$m(params), data, { headers });
11528
- };
11529
- const update$p = (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,
11485
+ del: del$p,
11486
+ get: get$G,
11487
+ getMany: getMany$y,
11488
+ getManyWithCursor: getManyWithCursor$1,
11489
+ publish: publish$2,
11490
+ unpublish: unpublish$2,
11579
11491
  update: update$p
11580
11492
  });
11581
11493
 
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));
11494
+ const getBaseUrl$i = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`;
11495
+ const get$F = (http, params) => {
11496
+ return get$14(http, getBaseUrl$i(params));
11585
11497
  };
11586
- const getMany$A = (http, params) => {
11587
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
11498
+ const getMany$x = (http, params) => {
11499
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
11588
11500
  };
11589
11501
  const update$o = (http, params, rawData, headers) => {
11590
11502
  const data = index$2(rawData);
11591
11503
  delete data.sys;
11592
- return put$1(http, getBaseUrl$l(params), data, {
11504
+ return put$1(http, getBaseUrl$i(params), data, {
11593
11505
  headers: {
11594
11506
  'X-Contentful-Version': rawData.sys.version ?? 0,
11595
11507
  ...headers,
@@ -11599,31 +11511,31 @@ var contentfulManagement = (function (exports) {
11599
11511
 
11600
11512
  var EditorInterface = /*#__PURE__*/Object.freeze({
11601
11513
  __proto__: null,
11602
- get: get$I,
11603
- getMany: getMany$A,
11514
+ get: get$F,
11515
+ getMany: getMany$x,
11604
11516
  update: update$o
11605
11517
  });
11606
11518
 
11607
- const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
11608
- const getMany$z = (http, params) => {
11609
- return get$19(http, getBaseUrl$k(params), {
11519
+ const getBaseUrl$h = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
11520
+ const getMany$w = (http, params) => {
11521
+ return get$14(http, getBaseUrl$h(params), {
11610
11522
  params: params.query,
11611
11523
  });
11612
11524
  };
11613
11525
 
11614
11526
  var EligibleLicense = /*#__PURE__*/Object.freeze({
11615
11527
  __proto__: null,
11616
- getMany: getMany$z
11528
+ getMany: getMany$w
11617
11529
  });
11618
11530
 
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}`, {
11531
+ const get$E = (http, params, rawData, headers) => {
11532
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, {
11621
11533
  params: normalizeSelect(params.query),
11622
11534
  headers: { ...headers },
11623
11535
  });
11624
11536
  };
11625
- const getMany$y = (http, params, rawData, headers) => {
11626
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
11537
+ const getMany$v = (http, params, rawData, headers) => {
11538
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
11627
11539
  params: normalizeSelect(params.query),
11628
11540
  headers: { ...headers },
11629
11541
  });
@@ -11647,7 +11559,7 @@ var contentfulManagement = (function (exports) {
11647
11559
  },
11648
11560
  });
11649
11561
  };
11650
- const create$p = (http, params, rawData, headers) => {
11562
+ const create$m = (http, params, rawData, headers) => {
11651
11563
  const data = index$2(rawData);
11652
11564
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
11653
11565
  headers: {
@@ -11668,38 +11580,48 @@ var contentfulManagement = (function (exports) {
11668
11580
 
11669
11581
  var ReleaseEntry = /*#__PURE__*/Object.freeze({
11670
11582
  __proto__: null,
11671
- create: create$p,
11583
+ create: create$m,
11672
11584
  createWithId: createWithId$8,
11673
- get: get$H,
11674
- getMany: getMany$y,
11585
+ get: get$E,
11586
+ getMany: getMany$v,
11675
11587
  patch: patch$2,
11676
11588
  update: update$n
11677
11589
  });
11678
11590
 
11679
- const get$G = (http, params, rawData, headers) => {
11591
+ const get$D = (http, params, rawData, headers) => {
11680
11592
  if (params.releaseId) {
11681
- return get$H(http, params);
11593
+ return get$E(http, params);
11682
11594
  }
11683
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
11595
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
11684
11596
  params: normalizeSelect(params.query),
11685
11597
  headers: { ...headers },
11686
11598
  });
11687
11599
  };
11688
11600
  const getPublished = (http, params, rawData, headers) => {
11689
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
11601
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
11690
11602
  params: normalizeSelect(params.query),
11691
11603
  headers: { ...headers },
11692
11604
  });
11693
11605
  };
11694
- const getMany$x = (http, params, rawData, headers) => {
11606
+ const getMany$u = (http, params, rawData, headers) => {
11695
11607
  if (params.releaseId) {
11696
- return getMany$y(http, params);
11608
+ return getMany$v(http, params);
11697
11609
  }
11698
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
11610
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
11699
11611
  params: normalizeSelect(params.query),
11700
11612
  headers: { ...headers },
11701
11613
  });
11702
11614
  };
11615
+ const getManyWithCursor = (http, params, rawData, headers) => {
11616
+ if (params.releaseId) {
11617
+ throw new Error('getManyWithCursor is not supported for release-scoped entries');
11618
+ }
11619
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
11620
+ params: { cursor: true, ...(params.query ?? {}) },
11621
+ headers: { ...headers },
11622
+ })
11623
+ .then(normalizeCursorPaginationResponse);
11624
+ };
11703
11625
  const patch$1 = (http, params, data, headers) => {
11704
11626
  if (params.releaseId) {
11705
11627
  return patch$2(http, params, data, headers ?? {});
@@ -11725,10 +11647,10 @@ var contentfulManagement = (function (exports) {
11725
11647
  },
11726
11648
  });
11727
11649
  };
11728
- const del$r = (http, params) => {
11729
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
11650
+ const del$o = (http, params) => {
11651
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
11730
11652
  };
11731
- const publish$4 = (http, params, rawData) => {
11653
+ const publish$1 = (http, params, rawData) => {
11732
11654
  const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
11733
11655
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
11734
11656
  headers: {
@@ -11736,7 +11658,7 @@ var contentfulManagement = (function (exports) {
11736
11658
  },
11737
11659
  });
11738
11660
  };
11739
- const unpublish$4 = (http, params, rawData) => {
11661
+ const unpublish$1 = (http, params, rawData) => {
11740
11662
  if (params.locales?.length) {
11741
11663
  const payload = { remove: { fields: { '*': params.locales } } };
11742
11664
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
@@ -11746,18 +11668,18 @@ var contentfulManagement = (function (exports) {
11746
11668
  });
11747
11669
  }
11748
11670
  else {
11749
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
11671
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
11750
11672
  }
11751
11673
  };
11752
11674
  const archive$1 = (http, params) => {
11753
11675
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
11754
11676
  };
11755
11677
  const unarchive$2 = (http, params) => {
11756
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
11678
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
11757
11679
  };
11758
- const create$o = (http, params, rawData) => {
11680
+ const create$l = (http, params, rawData) => {
11759
11681
  if (params.releaseId) {
11760
- return create$p(http, params, rawData, {});
11682
+ return create$m(http, params, rawData, {});
11761
11683
  }
11762
11684
  const data = index$2(rawData);
11763
11685
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
@@ -11780,31 +11702,32 @@ var contentfulManagement = (function (exports) {
11780
11702
  const references = (http, params) => {
11781
11703
  const { spaceId, environmentId, entryId, include } = params;
11782
11704
  const level = include || 2;
11783
- return get$19(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
11705
+ return get$14(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
11784
11706
  };
11785
11707
 
11786
11708
  var Entry = /*#__PURE__*/Object.freeze({
11787
11709
  __proto__: null,
11788
11710
  archive: archive$1,
11789
- create: create$o,
11711
+ create: create$l,
11790
11712
  createWithId: createWithId$7,
11791
- del: del$r,
11792
- get: get$G,
11793
- getMany: getMany$x,
11713
+ del: del$o,
11714
+ get: get$D,
11715
+ getMany: getMany$u,
11716
+ getManyWithCursor: getManyWithCursor,
11794
11717
  getPublished: getPublished,
11795
11718
  patch: patch$1,
11796
- publish: publish$4,
11719
+ publish: publish$1,
11797
11720
  references: references,
11798
11721
  unarchive: unarchive$2,
11799
- unpublish: unpublish$4,
11722
+ unpublish: unpublish$1,
11800
11723
  update: update$m
11801
11724
  });
11802
11725
 
11803
- const get$F = (http, params) => {
11804
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
11726
+ const get$C = (http, params) => {
11727
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
11805
11728
  };
11806
- const getMany$w = (http, params) => {
11807
- return get$19(http, `/spaces/${params.spaceId}/environments`, {
11729
+ const getMany$t = (http, params) => {
11730
+ return get$14(http, `/spaces/${params.spaceId}/environments`, {
11808
11731
  params: params.query,
11809
11732
  });
11810
11733
  };
@@ -11818,10 +11741,10 @@ var contentfulManagement = (function (exports) {
11818
11741
  },
11819
11742
  });
11820
11743
  };
11821
- const del$q = (http, params) => {
11822
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
11744
+ const del$n = (http, params) => {
11745
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
11823
11746
  };
11824
- const create$n = (http, params, rawData, headers) => {
11747
+ const create$k = (http, params, rawData, headers) => {
11825
11748
  const data = index$2(rawData);
11826
11749
  return post$1(http, `/spaces/${params.spaceId}/environments`, data, {
11827
11750
  headers,
@@ -11843,27 +11766,27 @@ var contentfulManagement = (function (exports) {
11843
11766
 
11844
11767
  var Environment = /*#__PURE__*/Object.freeze({
11845
11768
  __proto__: null,
11846
- create: create$n,
11769
+ create: create$k,
11847
11770
  createWithId: createWithId$6,
11848
- del: del$q,
11849
- get: get$F,
11850
- getMany: getMany$w,
11771
+ del: del$n,
11772
+ get: get$C,
11773
+ getMany: getMany$t,
11851
11774
  update: update$l
11852
11775
  });
11853
11776
 
11854
11777
  /**
11855
11778
  * Urls
11856
11779
  */
11857
- const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environment_aliases`;
11858
- const getEnvironmentAliasUrl = (params) => getBaseUrl$j(params) + `/${params.environmentAliasId}`;
11780
+ const getBaseUrl$g = (params) => `/spaces/${params.spaceId}/environment_aliases`;
11781
+ const getEnvironmentAliasUrl = (params) => getBaseUrl$g(params) + `/${params.environmentAliasId}`;
11859
11782
  /**
11860
11783
  * Endpoints
11861
11784
  */
11862
- const get$E = (http, params) => {
11863
- return get$19(http, getEnvironmentAliasUrl(params));
11785
+ const get$B = (http, params) => {
11786
+ return get$14(http, getEnvironmentAliasUrl(params));
11864
11787
  };
11865
- const getMany$v = (http, params) => {
11866
- return get$19(http, getBaseUrl$j(params), {
11788
+ const getMany$s = (http, params) => {
11789
+ return get$14(http, getBaseUrl$g(params), {
11867
11790
  params: params.query,
11868
11791
  });
11869
11792
  };
@@ -11883,31 +11806,31 @@ var contentfulManagement = (function (exports) {
11883
11806
  },
11884
11807
  });
11885
11808
  };
11886
- const del$p = (http, params) => {
11887
- return del$M(http, getEnvironmentAliasUrl(params));
11809
+ const del$m = (http, params) => {
11810
+ return del$H(http, getEnvironmentAliasUrl(params));
11888
11811
  };
11889
11812
 
11890
11813
  var EnvironmentAlias = /*#__PURE__*/Object.freeze({
11891
11814
  __proto__: null,
11892
11815
  createWithId: createWithId$5,
11893
- del: del$p,
11894
- get: get$E,
11895
- getMany: getMany$v,
11816
+ del: del$m,
11817
+ get: get$B,
11818
+ getMany: getMany$s,
11896
11819
  update: update$k
11897
11820
  });
11898
11821
 
11899
11822
  const apiPath$1 = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
11900
- const get$D = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
11901
- ? get$19(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
11823
+ const get$A = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
11824
+ ? get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
11902
11825
  params: query,
11903
11826
  headers,
11904
11827
  })
11905
- : get$19(http, apiPath$1(organizationId, environmentTemplateId), {
11828
+ : get$14(http, apiPath$1(organizationId, environmentTemplateId), {
11906
11829
  params: query,
11907
11830
  headers,
11908
11831
  });
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 });
11832
+ const getMany$r = (http, { organizationId, query = {} }, headers) => get$14(http, apiPath$1(organizationId), { params: query, headers });
11833
+ const create$j = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
11911
11834
  const update$j = (http, { organizationId, environmentTemplateId }, payload, headers) => {
11912
11835
  const data = index$2(payload);
11913
11836
  delete data.sys;
@@ -11921,8 +11844,8 @@ var contentfulManagement = (function (exports) {
11921
11844
  const versionUpdate = (http, { organizationId, version, environmentTemplateId }, payload, headers) => patch$5(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), payload, {
11922
11845
  headers,
11923
11846
  });
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'), {
11847
+ const del$l = (http, { organizationId, environmentTemplateId }, headers) => del$H(http, apiPath$1(organizationId, environmentTemplateId), { headers });
11848
+ const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions'), {
11926
11849
  params: query,
11927
11850
  headers,
11928
11851
  });
@@ -11930,15 +11853,15 @@ var contentfulManagement = (function (exports) {
11930
11853
  ? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated`
11931
11854
  : `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`, payload, { headers });
11932
11855
  const install = (http, { spaceId, environmentId, environmentTemplateId }, payload, headers) => post$1(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions`, payload, { headers });
11933
- const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$M(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
11856
+ const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$H(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
11934
11857
 
11935
11858
  var EnvironmentTemplate = /*#__PURE__*/Object.freeze({
11936
11859
  __proto__: null,
11937
- create: create$m,
11938
- del: del$o,
11860
+ create: create$j,
11861
+ del: del$l,
11939
11862
  disconnect: disconnect,
11940
- get: get$D,
11941
- getMany: getMany$u,
11863
+ get: get$A,
11864
+ getMany: getMany$r,
11942
11865
  install: install,
11943
11866
  update: update$j,
11944
11867
  validate: validate$1,
@@ -11947,7 +11870,7 @@ var contentfulManagement = (function (exports) {
11947
11870
  });
11948
11871
 
11949
11872
  const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
11950
- const getMany$t = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$19(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
11873
+ const getMany$q = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$14(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
11951
11874
  params: {
11952
11875
  ...otherProps,
11953
11876
  ...(environmentId && { 'environment.sys.id': environmentId }),
@@ -11955,7 +11878,7 @@ var contentfulManagement = (function (exports) {
11955
11878
  },
11956
11879
  headers,
11957
11880
  });
11958
- const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$19(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
11881
+ const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$14(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
11959
11882
  params: {
11960
11883
  ...(installationId && { 'sys.id': installationId }),
11961
11884
  ...paginationProps,
@@ -11966,23 +11889,23 @@ var contentfulManagement = (function (exports) {
11966
11889
  var EnvironmentTemplateInstallation = /*#__PURE__*/Object.freeze({
11967
11890
  __proto__: null,
11968
11891
  getForEnvironment: getForEnvironment$1,
11969
- getMany: getMany$t
11892
+ getMany: getMany$q
11970
11893
  });
11971
11894
 
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), {
11895
+ const getBaseUrl$f = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`;
11896
+ const getExtensionUrl = (params) => getBaseUrl$f(params) + `/${params.extensionId}`;
11897
+ const get$z = (http, params) => {
11898
+ return get$14(http, getExtensionUrl(params), {
11976
11899
  params: normalizeSelect(params.query),
11977
11900
  });
11978
11901
  };
11979
- const getMany$s = (http, params) => {
11980
- return get$19(http, getBaseUrl$i(params), {
11902
+ const getMany$p = (http, params) => {
11903
+ return get$14(http, getBaseUrl$f(params), {
11981
11904
  params: normalizeSelect(params.query),
11982
11905
  });
11983
11906
  };
11984
- const create$l = (http, params, rawData, headers) => {
11985
- return post$1(http, getBaseUrl$i(params), rawData, { headers });
11907
+ const create$i = (http, params, rawData, headers) => {
11908
+ return post$1(http, getBaseUrl$f(params), rawData, { headers });
11986
11909
  };
11987
11910
  const createWithId$4 = (http, params, rawData, headers) => {
11988
11911
  const data = index$2(rawData);
@@ -11998,99 +11921,43 @@ var contentfulManagement = (function (exports) {
11998
11921
  },
11999
11922
  });
12000
11923
  };
12001
- const del$n = (http, params) => {
12002
- return del$M(http, getExtensionUrl(params));
11924
+ const del$k = (http, params) => {
11925
+ return del$H(http, getExtensionUrl(params));
12003
11926
  };
12004
11927
 
12005
11928
  var Extension = /*#__PURE__*/Object.freeze({
12006
11929
  __proto__: null,
12007
- create: create$l,
11930
+ create: create$i,
12008
11931
  createWithId: createWithId$4,
12009
- del: del$n,
12010
- get: get$C,
11932
+ del: del$k,
11933
+ get: get$z,
12011
11934
  getExtensionUrl: getExtensionUrl,
12012
- getMany: getMany$s,
11935
+ getMany: getMany$p,
12013
11936
  update: update$i
12014
11937
  });
12015
11938
 
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 upsert$4 = (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,
12069
- upsert: upsert$4
12070
- });
12071
-
12072
11939
  // Base URL
12073
11940
  const getManyUrl = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/functions`;
12074
11941
  const getFunctionUrl = (params) => `${getManyUrl(params)}/${params.functionId}`;
12075
11942
  const getFunctionsEnvURL = (params) => {
12076
11943
  return `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions`;
12077
11944
  };
12078
- const get$A = (http, params) => {
12079
- return get$19(http, getFunctionUrl(params));
11945
+ const get$y = (http, params) => {
11946
+ return get$14(http, getFunctionUrl(params));
12080
11947
  };
12081
- const getMany$q = (http, params) => {
12082
- return get$19(http, getManyUrl(params), { params: params.query });
11948
+ const getMany$o = (http, params) => {
11949
+ return get$14(http, getManyUrl(params), { params: params.query });
12083
11950
  };
12084
11951
  const getManyForEnvironment$1 = (http, params) => {
12085
- return get$19(http, getFunctionsEnvURL(params), {
11952
+ return get$14(http, getFunctionsEnvURL(params), {
12086
11953
  params: params.query,
12087
11954
  });
12088
11955
  };
12089
11956
 
12090
11957
  var Function$1 = /*#__PURE__*/Object.freeze({
12091
11958
  __proto__: null,
12092
- get: get$A,
12093
- getMany: getMany$q,
11959
+ get: get$y,
11960
+ getMany: getMany$o,
12094
11961
  getManyForEnvironment: getManyForEnvironment$1
12095
11962
  });
12096
11963
 
@@ -12099,15 +11966,15 @@ var contentfulManagement = (function (exports) {
12099
11966
  };
12100
11967
  const baseURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
12101
11968
  const getURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
12102
- const get$z = (http, params) => {
12103
- return get$19(http, getURL(params), {
11969
+ const get$x = (http, params) => {
11970
+ return get$14(http, getURL(params), {
12104
11971
  headers: {
12105
11972
  ...FunctionLogAlphaHeaders,
12106
11973
  },
12107
11974
  });
12108
11975
  };
12109
- const getMany$p = (http, params) => {
12110
- return get$19(http, baseURL(params), {
11976
+ const getMany$n = (http, params) => {
11977
+ return get$14(http, baseURL(params), {
12111
11978
  params: params.query,
12112
11979
  headers: {
12113
11980
  ...FunctionLogAlphaHeaders,
@@ -12117,12 +11984,12 @@ var contentfulManagement = (function (exports) {
12117
11984
 
12118
11985
  var FunctionLog = /*#__PURE__*/Object.freeze({
12119
11986
  __proto__: null,
12120
- get: get$z,
12121
- getMany: getMany$p
11987
+ get: get$x,
11988
+ getMany: getMany$n
12122
11989
  });
12123
11990
 
12124
- const get$y = (http, { url, config }) => {
12125
- return get$19(http, url, config);
11991
+ const get$w = (http, { url, config }) => {
11992
+ return get$14(http, url, config);
12126
11993
  };
12127
11994
  const post = (http, { url, config }, payload) => {
12128
11995
  return post$1(http, url, payload, config);
@@ -12133,8 +12000,8 @@ var contentfulManagement = (function (exports) {
12133
12000
  const patch = (http, { url, config }, payload) => {
12134
12001
  return patch$5(http, url, payload, config);
12135
12002
  };
12136
- const del$l = (http, { url, config }) => {
12137
- return del$M(http, url, config);
12003
+ const del$j = (http, { url, config }) => {
12004
+ return del$H(http, url, config);
12138
12005
  };
12139
12006
  const request = (http$1, { url, config }) => {
12140
12007
  return http(http$1, url, config);
@@ -12142,23 +12009,23 @@ var contentfulManagement = (function (exports) {
12142
12009
 
12143
12010
  var Http = /*#__PURE__*/Object.freeze({
12144
12011
  __proto__: null,
12145
- del: del$l,
12146
- get: get$y,
12012
+ del: del$j,
12013
+ get: get$w,
12147
12014
  patch: patch,
12148
12015
  post: post,
12149
12016
  put: put,
12150
12017
  request: request
12151
12018
  });
12152
12019
 
12153
- const get$x = (http, params) => {
12154
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
12020
+ const get$v = (http, params) => {
12021
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
12155
12022
  };
12156
- const getMany$o = (http, params) => {
12157
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
12023
+ const getMany$m = (http, params) => {
12024
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
12158
12025
  params: normalizeSelect(params.query),
12159
12026
  });
12160
12027
  };
12161
- const create$j = (http, params, data, headers) => {
12028
+ const create$h = (http, params, data, headers) => {
12162
12029
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, data, {
12163
12030
  headers,
12164
12031
  });
@@ -12174,26 +12041,26 @@ var contentfulManagement = (function (exports) {
12174
12041
  },
12175
12042
  });
12176
12043
  };
12177
- const del$k = (http, params) => {
12178
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
12044
+ const del$i = (http, params) => {
12045
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
12179
12046
  };
12180
12047
 
12181
12048
  var Locale = /*#__PURE__*/Object.freeze({
12182
12049
  __proto__: null,
12183
- create: create$j,
12184
- del: del$k,
12185
- get: get$x,
12186
- getMany: getMany$o,
12050
+ create: create$h,
12051
+ del: del$i,
12052
+ get: get$v,
12053
+ getMany: getMany$m,
12187
12054
  update: update$h
12188
12055
  });
12189
12056
 
12190
- const getMany$n = (http, params) => {
12191
- return get$19(http, `/organizations`, {
12057
+ const getMany$l = (http, params) => {
12058
+ return get$14(http, `/organizations`, {
12192
12059
  params: params?.query,
12193
12060
  });
12194
12061
  };
12195
- const get$w = (http, params) => {
12196
- return getMany$n(http, { query: { limit: 100 } }).then((data) => {
12062
+ const get$u = (http, params) => {
12063
+ return getMany$l(http, { query: { limit: 100 } }).then((data) => {
12197
12064
  const org = data.items.find((org) => org.sys.id === params.organizationId);
12198
12065
  if (!org) {
12199
12066
  const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`);
@@ -12211,8 +12078,8 @@ var contentfulManagement = (function (exports) {
12211
12078
 
12212
12079
  var Organization = /*#__PURE__*/Object.freeze({
12213
12080
  __proto__: null,
12214
- get: get$w,
12215
- getMany: getMany$n
12081
+ get: get$u,
12082
+ getMany: getMany$l
12216
12083
  });
12217
12084
 
12218
12085
  const OrganizationUserManagementAlphaHeaders = {
@@ -12221,7 +12088,7 @@ var contentfulManagement = (function (exports) {
12221
12088
  const InvitationAlphaHeaders = {
12222
12089
  'x-contentful-enable-alpha-feature': 'pending-org-membership',
12223
12090
  };
12224
- const create$i = (http, params, data, headers) => {
12091
+ const create$g = (http, params, data, headers) => {
12225
12092
  return post$1(http, `/organizations/${params.organizationId}/invitations`, data, {
12226
12093
  headers: {
12227
12094
  ...InvitationAlphaHeaders,
@@ -12229,8 +12096,8 @@ var contentfulManagement = (function (exports) {
12229
12096
  },
12230
12097
  });
12231
12098
  };
12232
- const get$v = (http, params, headers) => {
12233
- return get$19(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
12099
+ const get$t = (http, params, headers) => {
12100
+ return get$14(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
12234
12101
  headers: {
12235
12102
  ...OrganizationUserManagementAlphaHeaders,
12236
12103
  ...headers,
@@ -12240,17 +12107,17 @@ var contentfulManagement = (function (exports) {
12240
12107
 
12241
12108
  var OrganizationInvitation = /*#__PURE__*/Object.freeze({
12242
12109
  __proto__: null,
12243
- create: create$i,
12244
- get: get$v
12110
+ create: create$g,
12111
+ get: get$t
12245
12112
  });
12246
12113
 
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));
12114
+ const getBaseUrl$e = (params) => `/organizations/${params.organizationId}/organization_memberships`;
12115
+ const getEntityUrl$5 = (params) => `${getBaseUrl$e(params)}/${params.organizationMembershipId}`;
12116
+ const get$s = (http, params) => {
12117
+ return get$14(http, getEntityUrl$5(params));
12251
12118
  };
12252
- const getMany$m = (http, params) => {
12253
- return get$19(http, getBaseUrl$g(params), {
12119
+ const getMany$k = (http, params) => {
12120
+ return get$14(http, getBaseUrl$e(params), {
12254
12121
  params: params.query,
12255
12122
  });
12256
12123
  };
@@ -12265,15 +12132,15 @@ var contentfulManagement = (function (exports) {
12265
12132
  },
12266
12133
  });
12267
12134
  };
12268
- const del$j = (http, params) => {
12269
- return del$M(http, getEntityUrl$5(params));
12135
+ const del$h = (http, params) => {
12136
+ return del$H(http, getEntityUrl$5(params));
12270
12137
  };
12271
12138
 
12272
12139
  var OrganizationMembership = /*#__PURE__*/Object.freeze({
12273
12140
  __proto__: null,
12274
- del: del$j,
12275
- get: get$u,
12276
- getMany: getMany$m,
12141
+ del: del$h,
12142
+ get: get$s,
12143
+ getMany: getMany$k,
12277
12144
  update: update$g
12278
12145
  });
12279
12146
 
@@ -12299,8 +12166,8 @@ var contentfulManagement = (function (exports) {
12299
12166
  * .catch(console.error)
12300
12167
  * ```
12301
12168
  */
12302
- const get$t = (http, params) => {
12303
- return get$19(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
12169
+ const get$r = (http, params) => {
12170
+ return get$14(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
12304
12171
  };
12305
12172
  /**
12306
12173
  * Retrieves a list of OAuth applications associated with the current user.
@@ -12325,7 +12192,7 @@ var contentfulManagement = (function (exports) {
12325
12192
  * ```
12326
12193
  */
12327
12194
  const getManyForUser = (http, params) => {
12328
- return get$19(http, `/users/${params.userId}/oauth_applications`, {
12195
+ return get$14(http, `/users/${params.userId}/oauth_applications`, {
12329
12196
  params: params.query,
12330
12197
  });
12331
12198
  };
@@ -12354,7 +12221,7 @@ var contentfulManagement = (function (exports) {
12354
12221
  * .catch(console.error)
12355
12222
  * ```
12356
12223
  */
12357
- const create$h = (http, params, rawData, headers) => {
12224
+ const create$f = (http, params, rawData, headers) => {
12358
12225
  return post$1(http, `/users/${params.userId}/oauth_applications`, rawData, {
12359
12226
  headers,
12360
12227
  });
@@ -12411,15 +12278,15 @@ var contentfulManagement = (function (exports) {
12411
12278
  * .catch(console.error)
12412
12279
  * ```
12413
12280
  */
12414
- const del$i = (http, params) => {
12415
- return del$M(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
12281
+ const del$g = (http, params) => {
12282
+ return del$H(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
12416
12283
  };
12417
12284
 
12418
12285
  var OAuthApplication = /*#__PURE__*/Object.freeze({
12419
12286
  __proto__: null,
12420
- create: create$h,
12421
- del: del$i,
12422
- get: get$t,
12287
+ create: create$f,
12288
+ del: del$g,
12289
+ get: get$r,
12423
12290
  getManyForUser: getManyForUser,
12424
12291
  update: update$f
12425
12292
  });
@@ -12427,21 +12294,21 @@ var contentfulManagement = (function (exports) {
12427
12294
  /**
12428
12295
  * @deprecated use `access-token.get` instead `personal-access-token.get`
12429
12296
  */
12430
- const get$s = (http, params) => {
12431
- return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
12297
+ const get$q = (http, params) => {
12298
+ return get$14(http, `/users/me/access_tokens/${params.tokenId}`);
12432
12299
  };
12433
12300
  /**
12434
12301
  * @deprecated use `access-token.getMany` instead `personal-access-token.getMany`
12435
12302
  */
12436
- const getMany$l = (http, params) => {
12437
- return get$19(http, '/users/me/access_tokens', {
12303
+ const getMany$j = (http, params) => {
12304
+ return get$14(http, '/users/me/access_tokens', {
12438
12305
  params: params.query,
12439
12306
  });
12440
12307
  };
12441
12308
  /**
12442
12309
  * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`
12443
12310
  */
12444
- const create$g = (http, _params, rawData, headers) => {
12311
+ const create$e = (http, _params, rawData, headers) => {
12445
12312
  return post$1(http, '/users/me/access_tokens', rawData, {
12446
12313
  headers,
12447
12314
  });
@@ -12455,29 +12322,29 @@ var contentfulManagement = (function (exports) {
12455
12322
 
12456
12323
  var PersonalAccessToken = /*#__PURE__*/Object.freeze({
12457
12324
  __proto__: null,
12458
- create: create$g,
12459
- get: get$s,
12460
- getMany: getMany$l,
12325
+ create: create$e,
12326
+ get: get$q,
12327
+ getMany: getMany$j,
12461
12328
  revoke: revoke
12462
12329
  });
12463
12330
 
12464
- const get$r = (http, params) => {
12465
- return get$19(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
12331
+ const get$p = (http, params) => {
12332
+ return get$14(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
12466
12333
  };
12467
- const getMany$k = (http, params) => {
12468
- return get$19(http, `/spaces/${params.spaceId}/preview_api_keys`, {
12334
+ const getMany$i = (http, params) => {
12335
+ return get$14(http, `/spaces/${params.spaceId}/preview_api_keys`, {
12469
12336
  params: params.query,
12470
12337
  });
12471
12338
  };
12472
12339
 
12473
12340
  var PreviewApiKey = /*#__PURE__*/Object.freeze({
12474
12341
  __proto__: null,
12475
- get: get$r,
12476
- getMany: getMany$k
12342
+ get: get$p,
12343
+ getMany: getMany$i
12477
12344
  });
12478
12345
 
12479
- const get$q = (http, params) => {
12480
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
12346
+ const get$o = (http, params) => {
12347
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
12481
12348
  };
12482
12349
  const query = (http, params) => {
12483
12350
  // Set the schema version in the query if provided in params or query options
@@ -12485,11 +12352,11 @@ var contentfulManagement = (function (exports) {
12485
12352
  if (releaseSchemaVersion !== undefined) {
12486
12353
  params.query = { ...params.query, 'sys.schemaVersion': releaseSchemaVersion };
12487
12354
  }
12488
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
12355
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
12489
12356
  params: params.query,
12490
12357
  });
12491
12358
  };
12492
- const create$f = (http, params, payload) => {
12359
+ const create$d = (http, params, payload) => {
12493
12360
  const releaseSchemaVersion = payload.sys?.schemaVersion ?? params.releaseSchemaVersion;
12494
12361
  if (releaseSchemaVersion === 'Release.v2') {
12495
12362
  payload.sys = { ...payload.sys, type: 'Release', schemaVersion: 'Release.v2' };
@@ -12508,10 +12375,10 @@ var contentfulManagement = (function (exports) {
12508
12375
  },
12509
12376
  });
12510
12377
  };
12511
- const del$h = (http, params) => {
12512
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
12378
+ const del$f = (http, params) => {
12379
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
12513
12380
  };
12514
- const publish$2 = (http, params, headers) => {
12381
+ const publish = (http, params, headers) => {
12515
12382
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, {
12516
12383
  headers: {
12517
12384
  'X-Contentful-Version': params.version,
@@ -12519,8 +12386,8 @@ var contentfulManagement = (function (exports) {
12519
12386
  },
12520
12387
  });
12521
12388
  };
12522
- const unpublish$2 = (http, params, headers) => {
12523
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
12389
+ const unpublish = (http, params, headers) => {
12390
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
12524
12391
  headers: {
12525
12392
  'X-Contentful-Version': params.version,
12526
12393
  ...headers,
@@ -12538,7 +12405,7 @@ var contentfulManagement = (function (exports) {
12538
12405
  });
12539
12406
  };
12540
12407
  const unarchive$1 = (http, params) => {
12541
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
12408
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
12542
12409
  headers: {
12543
12410
  'X-Contentful-Version': params.version,
12544
12411
  },
@@ -12548,27 +12415,27 @@ var contentfulManagement = (function (exports) {
12548
12415
  var Release = /*#__PURE__*/Object.freeze({
12549
12416
  __proto__: null,
12550
12417
  archive: archive,
12551
- create: create$f,
12552
- del: del$h,
12553
- get: get$q,
12554
- publish: publish$2,
12418
+ create: create$d,
12419
+ del: del$f,
12420
+ get: get$o,
12421
+ publish: publish,
12555
12422
  query: query,
12556
12423
  unarchive: unarchive$1,
12557
- unpublish: unpublish$2,
12424
+ unpublish: unpublish,
12558
12425
  update: update$e,
12559
12426
  validate: validate
12560
12427
  });
12561
12428
 
12562
- const get$p = (http, params) => {
12563
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
12429
+ const get$n = (http, params) => {
12430
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
12564
12431
  };
12565
- const getMany$j = (http, params) => {
12566
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
12432
+ const getMany$h = (http, params) => {
12433
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
12567
12434
  params: params.query,
12568
12435
  });
12569
12436
  };
12570
12437
  const queryForRelease = (http, params) => {
12571
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
12438
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
12572
12439
  params: {
12573
12440
  'sys.release.sys.id[in]': params.releaseId,
12574
12441
  ...params.query,
@@ -12578,82 +12445,82 @@ var contentfulManagement = (function (exports) {
12578
12445
 
12579
12446
  var ReleaseAction = /*#__PURE__*/Object.freeze({
12580
12447
  __proto__: null,
12581
- get: get$p,
12582
- getMany: getMany$j,
12448
+ get: get$n,
12449
+ getMany: getMany$h,
12583
12450
  queryForRelease: queryForRelease
12584
12451
  });
12585
12452
 
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), {
12453
+ const getBaseUrl$d = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
12454
+ const getMany$g = (http, params) => get$14(http, getBaseUrl$d(params), {
12588
12455
  params: params.query,
12589
12456
  });
12590
12457
 
12591
12458
  var Resource = /*#__PURE__*/Object.freeze({
12592
12459
  __proto__: null,
12593
- getMany: getMany$i
12460
+ getMany: getMany$g
12594
12461
  });
12595
12462
 
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));
12463
+ const getBaseUrl$c = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
12464
+ const get$m = (http, params) => {
12465
+ return get$14(http, getBaseUrl$c(params));
12599
12466
  };
12600
- const upsert$3 = (http, params, rawData, headers) => {
12601
- return put$1(http, getBaseUrl$e(params), rawData, { headers });
12467
+ const upsert$1 = (http, params, rawData, headers) => {
12468
+ return put$1(http, getBaseUrl$c(params), rawData, { headers });
12602
12469
  };
12603
- const del$g = (http, params) => {
12604
- return del$M(http, getBaseUrl$e(params));
12470
+ const del$e = (http, params) => {
12471
+ return del$H(http, getBaseUrl$c(params));
12605
12472
  };
12606
12473
 
12607
12474
  var ResourceProvider = /*#__PURE__*/Object.freeze({
12608
12475
  __proto__: null,
12609
- del: del$g,
12610
- get: get$o,
12611
- upsert: upsert$3
12476
+ del: del$e,
12477
+ get: get$m,
12478
+ upsert: upsert$1
12612
12479
  });
12613
12480
 
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}`;
12481
+ const getBaseUrl$b = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
12482
+ const getEntityUrl$4 = (params) => `${getBaseUrl$b(params)}/${params.resourceTypeId}`;
12616
12483
  const getSpaceEnvUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types`;
12617
- const get$n = (http, params) => {
12618
- return get$19(http, getEntityUrl$4(params));
12484
+ const get$l = (http, params) => {
12485
+ return get$14(http, getEntityUrl$4(params));
12619
12486
  };
12620
- const upsert$2 = (http, params, rawData, headers) => {
12487
+ const upsert = (http, params, rawData, headers) => {
12621
12488
  const data = index$2(rawData);
12622
12489
  return put$1(http, getEntityUrl$4(params), data, { headers });
12623
12490
  };
12624
- const del$f = (http, params) => {
12625
- return del$M(http, getEntityUrl$4(params));
12491
+ const del$d = (http, params) => {
12492
+ return del$H(http, getEntityUrl$4(params));
12626
12493
  };
12627
- const getMany$h = (http, params) => {
12628
- return get$19(http, getBaseUrl$d(params));
12494
+ const getMany$f = (http, params) => {
12495
+ return get$14(http, getBaseUrl$b(params));
12629
12496
  };
12630
12497
  const getForEnvironment = (http, params) => {
12631
- return get$19(http, getSpaceEnvUrl(params));
12498
+ return get$14(http, getSpaceEnvUrl(params));
12632
12499
  };
12633
12500
 
12634
12501
  var ResourceType = /*#__PURE__*/Object.freeze({
12635
12502
  __proto__: null,
12636
- del: del$f,
12637
- get: get$n,
12503
+ del: del$d,
12504
+ get: get$l,
12638
12505
  getForEnvironment: getForEnvironment,
12639
- getMany: getMany$h,
12640
- upsert: upsert$2
12506
+ getMany: getMany$f,
12507
+ upsert: upsert
12641
12508
  });
12642
12509
 
12643
- const get$m = (http, params) => {
12644
- return get$19(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
12510
+ const get$k = (http, params) => {
12511
+ return get$14(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
12645
12512
  };
12646
- const getMany$g = (http, params) => {
12647
- return get$19(http, `/spaces/${params.spaceId}/roles`, {
12513
+ const getMany$e = (http, params) => {
12514
+ return get$14(http, `/spaces/${params.spaceId}/roles`, {
12648
12515
  params: normalizeSelect(params.query),
12649
12516
  });
12650
12517
  };
12651
12518
  const getManyForOrganization$6 = (http, params) => {
12652
- return get$19(http, `/organizations/${params.organizationId}/roles`, {
12519
+ return get$14(http, `/organizations/${params.organizationId}/roles`, {
12653
12520
  params: normalizeSelect(params.query),
12654
12521
  });
12655
12522
  };
12656
- const create$e = (http, params, data, headers) => {
12523
+ const create$c = (http, params, data, headers) => {
12657
12524
  return post$1(http, `/spaces/${params.spaceId}/roles`, data, {
12658
12525
  headers,
12659
12526
  });
@@ -12673,38 +12540,38 @@ var contentfulManagement = (function (exports) {
12673
12540
  },
12674
12541
  });
12675
12542
  };
12676
- const del$e = (http, params) => {
12677
- return del$M(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
12543
+ const del$c = (http, params) => {
12544
+ return del$H(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
12678
12545
  };
12679
12546
 
12680
12547
  var Role = /*#__PURE__*/Object.freeze({
12681
12548
  __proto__: null,
12682
- create: create$e,
12549
+ create: create$c,
12683
12550
  createWithId: createWithId$3,
12684
- del: del$e,
12685
- get: get$m,
12686
- getMany: getMany$g,
12551
+ del: del$c,
12552
+ get: get$k,
12553
+ getMany: getMany$e,
12687
12554
  getManyForOrganization: getManyForOrganization$6,
12688
12555
  update: update$d
12689
12556
  });
12690
12557
 
12691
- const get$l = (http, params) => {
12692
- return get$19(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
12558
+ const get$j = (http, params) => {
12559
+ return get$14(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
12693
12560
  params: {
12694
12561
  'environment.sys.id': params.environmentId,
12695
12562
  },
12696
12563
  });
12697
12564
  };
12698
- const getMany$f = (http, params) => {
12699
- return get$19(http, `/spaces/${params.spaceId}/scheduled_actions`, {
12565
+ const getMany$d = (http, params) => {
12566
+ return get$14(http, `/spaces/${params.spaceId}/scheduled_actions`, {
12700
12567
  params: normalizeSelect(params.query),
12701
12568
  });
12702
12569
  };
12703
- const create$d = (http, params, data) => {
12570
+ const create$b = (http, params, data) => {
12704
12571
  return post$1(http, `/spaces/${params.spaceId}/scheduled_actions`, data);
12705
12572
  };
12706
- const del$d = (http, params) => {
12707
- return del$M(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
12573
+ const del$b = (http, params) => {
12574
+ return del$H(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
12708
12575
  params: {
12709
12576
  'environment.sys.id': params.environmentId,
12710
12577
  },
@@ -12723,102 +12590,102 @@ var contentfulManagement = (function (exports) {
12723
12590
 
12724
12591
  var ScheduledAction = /*#__PURE__*/Object.freeze({
12725
12592
  __proto__: null,
12726
- create: create$d,
12727
- del: del$d,
12728
- get: get$l,
12729
- getMany: getMany$f,
12593
+ create: create$b,
12594
+ del: del$b,
12595
+ get: get$j,
12596
+ getMany: getMany$d,
12730
12597
  update: update$c
12731
12598
  });
12732
12599
 
12733
- const get$k = (http, params) => {
12734
- return get$19(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
12600
+ const get$i = (http, params) => {
12601
+ return get$14(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
12735
12602
  };
12736
- const getMany$e = (http, params) => {
12737
- return get$19(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
12603
+ const getMany$c = (http, params) => {
12604
+ return get$14(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
12738
12605
  };
12739
12606
  const getManyForEnvironment = (http, params) => {
12740
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
12607
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
12741
12608
  };
12742
- const create$c = (http, params, data) => {
12609
+ const create$a = (http, params, data) => {
12743
12610
  return post$1(http, `/organizations/${params.organizationId}/semantic/search-index`, data);
12744
12611
  };
12745
- const del$c = (http, params) => {
12746
- return del$M(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
12612
+ const del$a = (http, params) => {
12613
+ return del$H(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
12747
12614
  };
12748
12615
 
12749
12616
  var ContentSemanticsIndex = /*#__PURE__*/Object.freeze({
12750
12617
  __proto__: null,
12751
- create: create$c,
12752
- del: del$c,
12753
- get: get$k,
12754
- getMany: getMany$e,
12618
+ create: create$a,
12619
+ del: del$a,
12620
+ get: get$i,
12621
+ getMany: getMany$c,
12755
12622
  getManyForEnvironment: getManyForEnvironment
12756
12623
  });
12757
12624
 
12758
- const get$j = (http, params, data, headers) => {
12625
+ const get$h = (http, params, data, headers) => {
12759
12626
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/duplicates`, data, { headers });
12760
12627
  };
12761
12628
 
12762
12629
  var SemanticDuplicates = /*#__PURE__*/Object.freeze({
12763
12630
  __proto__: null,
12764
- get: get$j
12631
+ get: get$h
12765
12632
  });
12766
12633
 
12767
- const get$i = (http, params, data, headers) => {
12634
+ const get$g = (http, params, data, headers) => {
12768
12635
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/recommendations`, data, { headers });
12769
12636
  };
12770
12637
 
12771
12638
  var SemanticRecommendations = /*#__PURE__*/Object.freeze({
12772
12639
  __proto__: null,
12773
- get: get$i
12640
+ get: get$g
12774
12641
  });
12775
12642
 
12776
- const get$h = (http, params, data, headers) => {
12643
+ const get$f = (http, params, data, headers) => {
12777
12644
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/reference-suggestions`, data, { headers });
12778
12645
  };
12779
12646
 
12780
12647
  var SemanticReferenceSuggestions = /*#__PURE__*/Object.freeze({
12781
12648
  __proto__: null,
12782
- get: get$h
12649
+ get: get$f
12783
12650
  });
12784
12651
 
12785
- const get$g = (http, params, data, headers) => {
12652
+ const get$e = (http, params, data, headers) => {
12786
12653
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search`, data, { headers });
12787
12654
  };
12788
12655
 
12789
12656
  var SemanticSearch = /*#__PURE__*/Object.freeze({
12790
12657
  __proto__: null,
12791
- get: get$g
12658
+ get: get$e
12792
12659
  });
12793
12660
 
12794
- const get$f = (http, params) => {
12795
- return get$19(http, `/organizations/${params.organizationId}/semantic/settings`);
12661
+ const get$d = (http, params) => {
12662
+ return get$14(http, `/organizations/${params.organizationId}/semantic/settings`);
12796
12663
  };
12797
12664
 
12798
12665
  var SemanticSettings = /*#__PURE__*/Object.freeze({
12799
12666
  __proto__: null,
12800
- get: get$f
12667
+ get: get$d
12801
12668
  });
12802
12669
 
12803
12670
  const getBaseEntryUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`;
12804
12671
  const getEntryUrl = (params) => getBaseEntryUrl(params) + `/${params.snapshotId}`;
12805
12672
  const getManyForEntry = (http, params) => {
12806
- return get$19(http, getBaseEntryUrl(params), {
12673
+ return get$14(http, getBaseEntryUrl(params), {
12807
12674
  params: normalizeSelect(params.query),
12808
12675
  });
12809
12676
  };
12810
12677
  const getForEntry = (http, params) => {
12811
- return get$19(http, getEntryUrl(params));
12678
+ return get$14(http, getEntryUrl(params));
12812
12679
  };
12813
12680
  const getBaseContentTypeUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`;
12814
12681
  const getContentTypeUrl = (params) => getBaseContentTypeUrl(params) + `/${params.snapshotId}`;
12815
12682
  const getManyForContentType = (http, params) => {
12816
- return get$19(http, getBaseContentTypeUrl(params), {
12683
+ return get$14(http, getBaseContentTypeUrl(params), {
12817
12684
  params: normalizeSelect(params.query),
12818
12685
  });
12819
12686
  };
12820
12687
  const getForContentType = (http, params) => {
12821
- return get$19(http, getContentTypeUrl(params));
12688
+ return get$14(http, getContentTypeUrl(params));
12822
12689
  };
12823
12690
 
12824
12691
  var Snapshot = /*#__PURE__*/Object.freeze({
@@ -12829,19 +12696,19 @@ var contentfulManagement = (function (exports) {
12829
12696
  getManyForEntry: getManyForEntry
12830
12697
  });
12831
12698
 
12832
- const get$e = (http, params) => get$19(http, `/spaces/${params.spaceId}`, {
12699
+ const get$c = (http, params) => get$14(http, `/spaces/${params.spaceId}`, {
12833
12700
  params: params.include ? { include: params.include } : undefined,
12834
12701
  });
12835
- const getMany$d = (http, params) => get$19(http, `/spaces`, {
12702
+ const getMany$b = (http, params) => get$14(http, `/spaces`, {
12836
12703
  params: { ...params.query, ...(params.include ? { include: params.include } : {}) },
12837
12704
  headers: params.organizationId
12838
12705
  ? { 'X-Contentful-Organization': params.organizationId }
12839
12706
  : undefined,
12840
12707
  });
12841
- const getManyForOrganization$5 = (http, params) => get$19(http, `/organizations/${params.organizationId}/spaces`, {
12708
+ const getManyForOrganization$5 = (http, params) => get$14(http, `/organizations/${params.organizationId}/spaces`, {
12842
12709
  params: params.query,
12843
12710
  });
12844
- const create$b = (http, params, payload, headers) => {
12711
+ const create$9 = (http, params, payload, headers) => {
12845
12712
  return post$1(http, `/spaces`, payload, {
12846
12713
  headers: params.organizationId
12847
12714
  ? { ...headers, 'X-Contentful-Organization': params.organizationId }
@@ -12863,21 +12730,21 @@ var contentfulManagement = (function (exports) {
12863
12730
  headers,
12864
12731
  });
12865
12732
  };
12866
- const del$b = (http, params) => del$M(http, `/spaces/${params.spaceId}`);
12733
+ const del$9 = (http, params) => del$H(http, `/spaces/${params.spaceId}`);
12867
12734
 
12868
12735
  var Space = /*#__PURE__*/Object.freeze({
12869
12736
  __proto__: null,
12870
- create: create$b,
12871
- del: del$b,
12872
- get: get$e,
12873
- getMany: getMany$d,
12737
+ create: create$9,
12738
+ del: del$9,
12739
+ get: get$c,
12740
+ getMany: getMany$b,
12874
12741
  getManyForOrganization: getManyForOrganization$5,
12875
12742
  unarchive: unarchive,
12876
12743
  update: update$b
12877
12744
  });
12878
12745
 
12879
- const getMany$c = (http, params) => {
12880
- return get$19(http, `/spaces/${params.spaceId}/space_add_ons`, {
12746
+ const getMany$a = (http, params) => {
12747
+ return get$14(http, `/spaces/${params.spaceId}/space_add_ons`, {
12881
12748
  params: normalizeSelect(params.query),
12882
12749
  });
12883
12750
  };
@@ -12889,47 +12756,47 @@ var contentfulManagement = (function (exports) {
12889
12756
 
12890
12757
  var SpaceAddOn = /*#__PURE__*/Object.freeze({
12891
12758
  __proto__: null,
12892
- getMany: getMany$c,
12759
+ getMany: getMany$a,
12893
12760
  updateAllocations: updateAllocations
12894
12761
  });
12895
12762
 
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`, {
12763
+ const get$b = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
12764
+ const getMany$9 = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members`, {
12898
12765
  params: params.query,
12899
12766
  });
12900
12767
 
12901
12768
  var SpaceMember = /*#__PURE__*/Object.freeze({
12902
12769
  __proto__: null,
12903
- get: get$d,
12904
- getMany: getMany$b
12770
+ get: get$b,
12771
+ getMany: getMany$9
12905
12772
  });
12906
12773
 
12907
12774
  function spaceMembershipDeprecationWarning() {
12908
12775
  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)');
12909
12776
  }
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) => {
12777
+ const getBaseUrl$a = (params) => `/spaces/${params.spaceId}/space_memberships`;
12778
+ const getEntityUrl$3 = (params) => `${getBaseUrl$a(params)}/${params.spaceMembershipId}`;
12779
+ const get$a = (http, params) => {
12913
12780
  spaceMembershipDeprecationWarning();
12914
- return get$19(http, getEntityUrl$3(params));
12781
+ return get$14(http, getEntityUrl$3(params));
12915
12782
  };
12916
- const getMany$a = (http, params) => {
12783
+ const getMany$8 = (http, params) => {
12917
12784
  spaceMembershipDeprecationWarning();
12918
- return get$19(http, getBaseUrl$c(params), {
12785
+ return get$14(http, getBaseUrl$a(params), {
12919
12786
  params: params.query,
12920
12787
  });
12921
12788
  };
12922
12789
  const getForOrganization$2 = (http, params) => {
12923
- return get$19(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
12790
+ return get$14(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
12924
12791
  };
12925
12792
  const getManyForOrganization$4 = (http, params) => {
12926
- return get$19(http, `/organizations/${params.organizationId}/space_memberships`, {
12793
+ return get$14(http, `/organizations/${params.organizationId}/space_memberships`, {
12927
12794
  params: params.query,
12928
12795
  });
12929
12796
  };
12930
- const create$a = (http, params, data, headers) => {
12797
+ const create$8 = (http, params, data, headers) => {
12931
12798
  spaceMembershipDeprecationWarning();
12932
- return post$1(http, getBaseUrl$c(params), data, {
12799
+ return post$1(http, getBaseUrl$a(params), data, {
12933
12800
  headers,
12934
12801
  });
12935
12802
  };
@@ -12949,26 +12816,26 @@ var contentfulManagement = (function (exports) {
12949
12816
  },
12950
12817
  });
12951
12818
  };
12952
- const del$a = (http, params) => {
12953
- return del$M(http, getEntityUrl$3(params));
12819
+ const del$8 = (http, params) => {
12820
+ return del$H(http, getEntityUrl$3(params));
12954
12821
  };
12955
12822
 
12956
12823
  var SpaceMembership = /*#__PURE__*/Object.freeze({
12957
12824
  __proto__: null,
12958
- create: create$a,
12825
+ create: create$8,
12959
12826
  createWithId: createWithId$2,
12960
- del: del$a,
12961
- get: get$c,
12827
+ del: del$8,
12828
+ get: get$a,
12962
12829
  getForOrganization: getForOrganization$2,
12963
- getMany: getMany$a,
12830
+ getMany: getMany$8,
12964
12831
  getManyForOrganization: getManyForOrganization$4,
12965
12832
  update: update$a
12966
12833
  });
12967
12834
 
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), {
12835
+ const getBaseUrl$9 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
12836
+ const getTagUrl = (params) => getBaseUrl$9(params) + `/${params.tagId}`;
12837
+ const get$9 = (http, params) => get$14(http, getTagUrl(params));
12838
+ const getMany$7 = (http, params) => get$14(http, getBaseUrl$9(params), {
12972
12839
  params: params.query,
12973
12840
  });
12974
12841
  const createWithId$1 = (http, params, rawData) => {
@@ -12987,32 +12854,32 @@ var contentfulManagement = (function (exports) {
12987
12854
  },
12988
12855
  });
12989
12856
  };
12990
- const del$9 = (http, { version, ...params }) => {
12991
- return del$M(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
12857
+ const del$7 = (http, { version, ...params }) => {
12858
+ return del$H(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
12992
12859
  };
12993
12860
 
12994
12861
  var Tag = /*#__PURE__*/Object.freeze({
12995
12862
  __proto__: null,
12996
12863
  createWithId: createWithId$1,
12997
- del: del$9,
12998
- get: get$b,
12999
- getMany: getMany$9,
12864
+ del: del$7,
12865
+ get: get$9,
12866
+ getMany: getMany$7,
13000
12867
  update: update$9
13001
12868
  });
13002
12869
 
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), {
12870
+ const getBaseUrl$8 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`;
12871
+ const getTaskUrl = (params) => `${getBaseUrl$8(params)}/${params.taskId}`;
12872
+ const get$8 = (http, params) => get$14(http, getTaskUrl(params));
12873
+ const getMany$6 = (http, params) => get$14(http, getBaseUrl$8(params), {
13007
12874
  params: normalizeSelect(params.query),
13008
12875
  });
13009
12876
  /**
13010
12877
  * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons.
13011
12878
  */
13012
- const getAll = getMany$8;
13013
- const create$9 = (http, params, rawData) => {
12879
+ const getAll = getMany$6;
12880
+ const create$7 = (http, params, rawData) => {
13014
12881
  const data = index$2(rawData);
13015
- return post$1(http, getBaseUrl$a(params), data);
12882
+ return post$1(http, getBaseUrl$8(params), data);
13016
12883
  };
13017
12884
  const update$8 = (http, params, rawData, headers) => {
13018
12885
  const data = index$2(rawData);
@@ -13024,33 +12891,33 @@ var contentfulManagement = (function (exports) {
13024
12891
  },
13025
12892
  });
13026
12893
  };
13027
- const del$8 = (http, { version, ...params }) => {
13028
- return del$M(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
12894
+ const del$6 = (http, { version, ...params }) => {
12895
+ return del$H(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
13029
12896
  };
13030
12897
 
13031
12898
  var Task = /*#__PURE__*/Object.freeze({
13032
12899
  __proto__: null,
13033
- create: create$9,
13034
- del: del$8,
13035
- get: get$a,
12900
+ create: create$7,
12901
+ del: del$6,
12902
+ get: get$8,
13036
12903
  getAll: getAll,
13037
- getMany: getMany$8,
12904
+ getMany: getMany$6,
13038
12905
  update: update$8
13039
12906
  });
13040
12907
 
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), {
12908
+ const getBaseUrl$7 = (params) => `/organizations/${params.organizationId}/teams`;
12909
+ const getEntityUrl$2 = (params) => `${getBaseUrl$7(params)}/${params.teamId}`;
12910
+ const get$7 = (http, params) => get$14(http, getEntityUrl$2(params));
12911
+ const getMany$5 = (http, params) => get$14(http, getBaseUrl$7(params), {
13045
12912
  params: normalizeSelect(params.query),
13046
12913
  });
13047
12914
  const getManyForSpace$2 = (http, params) => {
13048
- return get$19(http, `/spaces/${params.spaceId}/teams`, {
12915
+ return get$14(http, `/spaces/${params.spaceId}/teams`, {
13049
12916
  params: normalizeSelect(params.query),
13050
12917
  });
13051
12918
  };
13052
- const create$8 = (http, params, rawData, headers) => {
13053
- return post$1(http, getBaseUrl$9(params), rawData, { headers });
12919
+ const create$6 = (http, params, rawData, headers) => {
12920
+ return post$1(http, getBaseUrl$7(params), rawData, { headers });
13054
12921
  };
13055
12922
  const update$7 = (http, params, rawData, headers) => {
13056
12923
  const data = index$2(rawData);
@@ -13062,31 +12929,31 @@ var contentfulManagement = (function (exports) {
13062
12929
  },
13063
12930
  });
13064
12931
  };
13065
- const del$7 = (http, params) => del$M(http, getEntityUrl$2(params));
12932
+ const del$5 = (http, params) => del$H(http, getEntityUrl$2(params));
13066
12933
 
13067
12934
  var Team = /*#__PURE__*/Object.freeze({
13068
12935
  __proto__: null,
13069
- create: create$8,
13070
- del: del$7,
13071
- get: get$9,
13072
- getMany: getMany$7,
12936
+ create: create$6,
12937
+ del: del$5,
12938
+ get: get$7,
12939
+ getMany: getMany$5,
13073
12940
  getManyForSpace: getManyForSpace$2,
13074
12941
  update: update$7
13075
12942
  });
13076
12943
 
13077
- const getBaseUrl$8 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
12944
+ const getBaseUrl$6 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
13078
12945
  const getEntityUrl$1 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`;
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`, {
12946
+ const get$6 = (http, params) => get$14(http, getEntityUrl$1(params));
12947
+ const getManyForOrganization$3 = (http, params) => get$14(http, `/organizations/${params.organizationId}/team_memberships`, {
13081
12948
  params: normalizeSelect(params.query),
13082
12949
  });
13083
12950
  const getManyForTeam = (http, params) => {
13084
- return get$19(http, getBaseUrl$8(params), {
12951
+ return get$14(http, getBaseUrl$6(params), {
13085
12952
  params: normalizeSelect(params.query),
13086
12953
  });
13087
12954
  };
13088
- const create$7 = (http, params, rawData, headers) => {
13089
- return post$1(http, getBaseUrl$8(params), rawData, { headers });
12955
+ const create$5 = (http, params, rawData, headers) => {
12956
+ return post$1(http, getBaseUrl$6(params), rawData, { headers });
13090
12957
  };
13091
12958
  const update$6 = (http, params, rawData, headers) => {
13092
12959
  const data = index$2(rawData);
@@ -13098,38 +12965,38 @@ var contentfulManagement = (function (exports) {
13098
12965
  },
13099
12966
  });
13100
12967
  };
13101
- const del$6 = (http, params) => del$M(http, getEntityUrl$1(params));
12968
+ const del$4 = (http, params) => del$H(http, getEntityUrl$1(params));
13102
12969
 
13103
12970
  var TeamMembership = /*#__PURE__*/Object.freeze({
13104
12971
  __proto__: null,
13105
- create: create$7,
13106
- del: del$6,
13107
- get: get$8,
12972
+ create: create$5,
12973
+ del: del$4,
12974
+ get: get$6,
13108
12975
  getManyForOrganization: getManyForOrganization$3,
13109
12976
  getManyForTeam: getManyForTeam,
13110
12977
  update: update$6
13111
12978
  });
13112
12979
 
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), {
12980
+ const getBaseUrl$5 = (params) => `/spaces/${params.spaceId}/team_space_memberships`;
12981
+ const getEntityUrl = (params) => `${getBaseUrl$5(params)}/${params.teamSpaceMembershipId}`;
12982
+ const get$5 = (http, params) => get$14(http, getEntityUrl(params));
12983
+ const getMany$4 = (http, params) => get$14(http, getBaseUrl$5(params), {
13117
12984
  params: params.query,
13118
12985
  });
13119
12986
  const getForOrganization$1 = (http, params) => {
13120
- return get$19(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
12987
+ return get$14(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
13121
12988
  };
13122
12989
  const getManyForOrganization$2 = (http, params) => {
13123
12990
  const query = params.query || {};
13124
12991
  if (params.teamId) {
13125
12992
  query['sys.team.sys.id'] = params.teamId;
13126
12993
  }
13127
- return get$19(http, `/organizations/${params.organizationId}/team_space_memberships`, {
12994
+ return get$14(http, `/organizations/${params.organizationId}/team_space_memberships`, {
13128
12995
  params: params.query,
13129
12996
  });
13130
12997
  };
13131
- const create$6 = (http, params, rawData, headers) => {
13132
- return post$1(http, getBaseUrl$7(params), rawData, {
12998
+ const create$4 = (http, params, rawData, headers) => {
12999
+ return post$1(http, getBaseUrl$5(params), rawData, {
13133
13000
  headers: {
13134
13001
  'x-contentful-team': params.teamId,
13135
13002
  ...headers,
@@ -13147,80 +13014,24 @@ var contentfulManagement = (function (exports) {
13147
13014
  },
13148
13015
  });
13149
13016
  };
13150
- const del$5 = (http, params) => {
13151
- return del$M(http, getEntityUrl(params));
13017
+ const del$3 = (http, params) => {
13018
+ return del$H(http, getEntityUrl(params));
13152
13019
  };
13153
13020
 
13154
13021
  var TeamSpaceMembership = /*#__PURE__*/Object.freeze({
13155
13022
  __proto__: null,
13156
- create: create$6,
13157
- del: del$5,
13158
- get: get$7,
13023
+ create: create$4,
13024
+ del: del$3,
13025
+ get: get$5,
13159
13026
  getForOrganization: getForOrganization$1,
13160
- getMany: getMany$6,
13027
+ getMany: getMany$4,
13161
13028
  getManyForOrganization: getManyForOrganization$2,
13162
13029
  update: update$5
13163
13030
  });
13164
13031
 
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
-
13221
13032
  const getUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config`;
13222
- const get$5 = (http, params) => {
13223
- return get$19(http, getUrl$1(params));
13033
+ const get$4 = (http, params) => {
13034
+ return get$14(http, getUrl$1(params));
13224
13035
  };
13225
13036
  const update$4 = (http, params, rawData) => {
13226
13037
  const data = index$2(rawData);
@@ -13234,66 +13045,8 @@ var contentfulManagement = (function (exports) {
13234
13045
 
13235
13046
  var UIConfig = /*#__PURE__*/Object.freeze({
13236
13047
  __proto__: null,
13237
- get: get$5,
13238
- update: update$4
13239
- });
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
13048
  get: get$4,
13293
- getMany: getMany$4,
13294
- publish: publish,
13295
- unpublish: unpublish,
13296
- upsert: upsert
13049
+ update: update$4
13297
13050
  });
13298
13051
 
13299
13052
  const getBaseUrl$4 = (params) => {
@@ -13311,12 +13064,12 @@ var contentfulManagement = (function (exports) {
13311
13064
  });
13312
13065
 
13313
13066
  const getManyForSpace$1 = (http, params) => {
13314
- return get$19(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
13067
+ return get$14(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
13315
13068
  params: params.query,
13316
13069
  });
13317
13070
  };
13318
13071
  const getManyForOrganization$1 = (http, params) => {
13319
- return get$19(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
13072
+ return get$14(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
13320
13073
  params: params.query,
13321
13074
  });
13322
13075
  };
@@ -13328,19 +13081,19 @@ var contentfulManagement = (function (exports) {
13328
13081
  });
13329
13082
 
13330
13083
  const getForSpace = (http, params) => {
13331
- return get$19(http, `/spaces/${params.spaceId}/users/${params.userId}`);
13084
+ return get$14(http, `/spaces/${params.spaceId}/users/${params.userId}`);
13332
13085
  };
13333
- const getCurrent = (http, params) => get$19(http, `/users/me`, { params: params?.query });
13086
+ const getCurrent = (http, params) => get$14(http, `/users/me`, { params: params?.query });
13334
13087
  const getManyForSpace = (http, params) => {
13335
- return get$19(http, `/spaces/${params.spaceId}/users`, {
13088
+ return get$14(http, `/spaces/${params.spaceId}/users`, {
13336
13089
  params: params.query,
13337
13090
  });
13338
13091
  };
13339
13092
  const getForOrganization = (http, params) => {
13340
- return get$19(http, `/organizations/${params.organizationId}/users/${params.userId}`);
13093
+ return get$14(http, `/organizations/${params.organizationId}/users/${params.userId}`);
13341
13094
  };
13342
13095
  const getManyForOrganization = (http, params) => {
13343
- return get$19(http, `/organizations/${params.organizationId}/users`, {
13096
+ return get$14(http, `/organizations/${params.organizationId}/users`, {
13344
13097
  params: params.query,
13345
13098
  });
13346
13099
  };
@@ -13356,7 +13109,7 @@ var contentfulManagement = (function (exports) {
13356
13109
 
13357
13110
  const getUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`;
13358
13111
  const get$3 = (http, params) => {
13359
- return get$19(http, getUrl(params));
13112
+ return get$14(http, getUrl(params));
13360
13113
  };
13361
13114
  const update$3 = (http, params, rawData) => {
13362
13115
  const data = index$2(rawData);
@@ -13384,32 +13137,32 @@ var contentfulManagement = (function (exports) {
13384
13137
  const getWebhookSigningSecretUrl = (params) => `${getWebhookSettingsUrl(params)}/signing_secret`;
13385
13138
  const getWebhookRetryPolicyUrl = (params) => `${getWebhookSettingsUrl(params)}/retry_policy`;
13386
13139
  const get$2 = (http, params) => {
13387
- return get$19(http, getWebhookUrl(params));
13140
+ return get$14(http, getWebhookUrl(params));
13388
13141
  };
13389
13142
  const getManyCallDetails = (http, params) => {
13390
- return get$19(http, getWebhookCallUrl(params), {
13143
+ return get$14(http, getWebhookCallUrl(params), {
13391
13144
  params: normalizeSelect(params.query),
13392
13145
  });
13393
13146
  };
13394
13147
  const getCallDetails = (http, params) => {
13395
- return get$19(http, getWebhookCallDetailsUrl(params));
13148
+ return get$14(http, getWebhookCallDetailsUrl(params));
13396
13149
  };
13397
13150
  const getHealthStatus = (http, params) => {
13398
- return get$19(http, getWebhookHealthUrl(params));
13151
+ return get$14(http, getWebhookHealthUrl(params));
13399
13152
  };
13400
13153
  const getMany$3 = (http, params) => {
13401
- return get$19(http, getBaseUrl$3(params), {
13154
+ return get$14(http, getBaseUrl$3(params), {
13402
13155
  params: normalizeSelect(params.query),
13403
13156
  });
13404
13157
  };
13405
13158
  const getSigningSecret = (http, params) => {
13406
- return get$19(http, getWebhookSigningSecretUrl(params));
13159
+ return get$14(http, getWebhookSigningSecretUrl(params));
13407
13160
  };
13408
13161
  /**
13409
13162
  * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
13410
13163
  */
13411
13164
  const getRetryPolicy = (http, params) => {
13412
- return get$19(http, getWebhookRetryPolicyUrl(params));
13165
+ return get$14(http, getWebhookRetryPolicyUrl(params));
13413
13166
  };
13414
13167
  const create$2 = (http, params, rawData, headers) => {
13415
13168
  const data = index$2(rawData);
@@ -13441,16 +13194,16 @@ var contentfulManagement = (function (exports) {
13441
13194
  return put$1(http, getWebhookRetryPolicyUrl(params), data);
13442
13195
  };
13443
13196
  const del$2 = (http, params) => {
13444
- return del$M(http, getWebhookUrl(params));
13197
+ return del$H(http, getWebhookUrl(params));
13445
13198
  };
13446
13199
  const deleteSigningSecret = async (http, params) => {
13447
- return del$M(http, getWebhookSigningSecretUrl(params));
13200
+ return del$H(http, getWebhookSigningSecretUrl(params));
13448
13201
  };
13449
13202
  /**
13450
13203
  * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
13451
13204
  */
13452
13205
  const deleteRetryPolicy = async (http, params) => {
13453
- return del$M(http, getWebhookRetryPolicyUrl(params));
13206
+ return del$H(http, getWebhookRetryPolicyUrl(params));
13454
13207
  };
13455
13208
 
13456
13209
  var Webhook = /*#__PURE__*/Object.freeze({
@@ -13475,11 +13228,11 @@ var contentfulManagement = (function (exports) {
13475
13228
  const getBaseUrl$2 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`;
13476
13229
  const getWorkflowUrl = (params) => `${getBaseUrl$2(params)}/${params.workflowId}`;
13477
13230
  const completeWorkflowUrl = (params) => `${getWorkflowUrl(params)}/complete`;
13478
- const getMany$2 = (http, params, headers) => get$19(http, getBaseUrl$2(params), {
13231
+ const getMany$2 = (http, params, headers) => get$14(http, getBaseUrl$2(params), {
13479
13232
  headers,
13480
13233
  params: params.query,
13481
13234
  });
13482
- const get$1 = (http, params, headers) => get$19(http, getWorkflowUrl(params), {
13235
+ const get$1 = (http, params, headers) => get$14(http, getWorkflowUrl(params), {
13483
13236
  headers,
13484
13237
  });
13485
13238
  const create$1 = (http, params, rawData, headers) => {
@@ -13499,7 +13252,7 @@ var contentfulManagement = (function (exports) {
13499
13252
  });
13500
13253
  };
13501
13254
  const del$1 = (http, { version, ...params }, headers) => {
13502
- return del$M(http, getWorkflowUrl(params), {
13255
+ return del$H(http, getWorkflowUrl(params), {
13503
13256
  headers: { 'X-Contentful-Version': version, ...headers },
13504
13257
  });
13505
13258
  };
@@ -13521,10 +13274,10 @@ var contentfulManagement = (function (exports) {
13521
13274
 
13522
13275
  const getBaseUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`;
13523
13276
  const getWorkflowDefinitionUrl = (params) => `${getBaseUrl$1(params)}/${params.workflowDefinitionId}`;
13524
- const get = (http, params, headers) => get$19(http, getWorkflowDefinitionUrl(params), {
13277
+ const get = (http, params, headers) => get$14(http, getWorkflowDefinitionUrl(params), {
13525
13278
  headers,
13526
13279
  });
13527
- const getMany$1 = (http, params, headers) => get$19(http, getBaseUrl$1(params), {
13280
+ const getMany$1 = (http, params, headers) => get$14(http, getBaseUrl$1(params), {
13528
13281
  headers,
13529
13282
  params: params.query,
13530
13283
  });
@@ -13545,7 +13298,7 @@ var contentfulManagement = (function (exports) {
13545
13298
  });
13546
13299
  };
13547
13300
  const del = (http, { version, ...params }, headers) => {
13548
- return del$M(http, getWorkflowDefinitionUrl(params), {
13301
+ return del$H(http, getWorkflowDefinitionUrl(params), {
13549
13302
  headers: { 'X-Contentful-Version': version, ...headers },
13550
13303
  });
13551
13304
  };
@@ -13560,7 +13313,7 @@ var contentfulManagement = (function (exports) {
13560
13313
  });
13561
13314
 
13562
13315
  const getBaseUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`;
13563
- const getMany = (http, params, headers) => get$19(http, getBaseUrl(params), {
13316
+ const getMany = (http, params, headers) => get$14(http, getBaseUrl(params), {
13564
13317
  headers,
13565
13318
  params: params.query,
13566
13319
  });
@@ -13599,7 +13352,6 @@ var contentfulManagement = (function (exports) {
13599
13352
  Concept,
13600
13353
  ConceptScheme,
13601
13354
  ContentType,
13602
- DataAssembly,
13603
13355
  EditorInterface,
13604
13356
  EligibleLicense,
13605
13357
  Entry,
@@ -13608,7 +13360,6 @@ var contentfulManagement = (function (exports) {
13608
13360
  EnvironmentTemplate,
13609
13361
  EnvironmentTemplateInstallation,
13610
13362
  Extension,
13611
- Fragment,
13612
13363
  Function: Function$1,
13613
13364
  FunctionLog,
13614
13365
  Http,
@@ -13645,11 +13396,9 @@ var contentfulManagement = (function (exports) {
13645
13396
  Team,
13646
13397
  TeamMembership,
13647
13398
  TeamSpaceMembership,
13648
- Template,
13649
13399
  UIConfig,
13650
13400
  Upload,
13651
13401
  UploadCredential,
13652
- Experience,
13653
13402
  Usage,
13654
13403
  User,
13655
13404
  UserUIConfig,
@@ -14518,12 +14267,16 @@ var contentfulManagement = (function (exports) {
14518
14267
  * @internal
14519
14268
  */
14520
14269
  function createCommentApi(makeRequest) {
14521
- const getParams = (comment) => ({
14522
- spaceId: comment.sys.space.sys.id,
14523
- environmentId: comment.sys.environment.sys.id,
14524
- entryId: comment.sys.parentEntity.sys.id,
14525
- commentId: comment.sys.id,
14526
- });
14270
+ const getParams = (comment) => {
14271
+ const parentEntity = comment.sys.parentEntity;
14272
+ return {
14273
+ spaceId: comment.sys.space.sys.id,
14274
+ environmentId: comment.sys.environment.sys.id,
14275
+ commentId: comment.sys.id,
14276
+ parentEntityType: parentEntity.sys.linkType,
14277
+ parentEntityId: parentEntity.sys.id,
14278
+ };
14279
+ };
14527
14280
  return {
14528
14281
  update: async function () {
14529
14282
  const raw = this.toPlainObject();
@@ -24115,12 +23868,6 @@ var contentfulManagement = (function (exports) {
24115
23868
  },
24116
23869
  componentType: {
24117
23870
  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'),
24124
23871
  },
24125
23872
  contentType: {
24126
23873
  get: wrap(wrapParams, 'ContentType', 'get'),
@@ -24134,17 +23881,6 @@ var contentfulManagement = (function (exports) {
24134
23881
  createWithId: wrap(wrapParams, 'ContentType', 'createWithId'),
24135
23882
  omitAndDeleteField: (params, contentType, fieldId) => omitAndDeleteField(makeRequest, { ...{ ...defaults, ...params }, fieldId }, contentType),
24136
23883
  },
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
- },
24148
23884
  user: {
24149
23885
  getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'),
24150
23886
  getForSpace: wrap(wrapParams, 'User', 'getForSpace'),
@@ -24492,24 +24228,6 @@ var contentfulManagement = (function (exports) {
24492
24228
  update: wrap(wrapParams, 'TeamSpaceMembership', 'update'),
24493
24229
  delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete'),
24494
24230
  },
24495
- fragment: {
24496
- getMany: wrap(wrapParams, 'Fragment', 'getMany'),
24497
- get: wrap(wrapParams, 'Fragment', 'get'),
24498
- create: wrap(wrapParams, 'Fragment', 'create'),
24499
- upsert: wrap(wrapParams, 'Fragment', 'upsert'),
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
- },
24513
24231
  uiConfig: {
24514
24232
  get: wrap(wrapParams, 'UIConfig', 'get'),
24515
24233
  update: wrap(wrapParams, 'UIConfig', 'update'),
@@ -24518,15 +24236,6 @@ var contentfulManagement = (function (exports) {
24518
24236
  get: wrap(wrapParams, 'UserUIConfig', 'get'),
24519
24237
  update: wrap(wrapParams, 'UserUIConfig', 'update'),
24520
24238
  },
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
- },
24530
24239
  workflowDefinition: {
24531
24240
  get: wrap(wrapParams, 'WorkflowDefinition', 'get'),
24532
24241
  getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),