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
@@ -10,13 +10,13 @@ var axios__default = /*#__PURE__*/_interopDefault(axios);
10
10
  var copy__default = /*#__PURE__*/_interopDefault(copy);
11
11
 
12
12
  /* eslint-disable @typescript-eslint/no-explicit-any */
13
- function getBaseUrl$x(http) {
13
+ function getBaseUrl$t(http) {
14
14
  return http.defaults.baseURL?.split('/spaces')[0];
15
15
  }
16
- function get$19(http, url, config) {
16
+ function get$14(http, url, config) {
17
17
  return http
18
18
  .get(url, {
19
- baseURL: getBaseUrl$x(http),
19
+ baseURL: getBaseUrl$t(http),
20
20
  ...config,
21
21
  })
22
22
  .then((response) => response.data, contentfulSdkCore.errorHandler);
@@ -24,7 +24,7 @@ function get$19(http, url, config) {
24
24
  function patch$5(http, url, payload, config) {
25
25
  return http
26
26
  .patch(url, payload, {
27
- baseURL: getBaseUrl$x(http),
27
+ baseURL: getBaseUrl$t(http),
28
28
  ...config,
29
29
  })
30
30
  .then((response) => response.data, contentfulSdkCore.errorHandler);
@@ -32,7 +32,7 @@ function patch$5(http, url, payload, config) {
32
32
  function post$1(http, url, payload, config) {
33
33
  return http
34
34
  .post(url, payload, {
35
- baseURL: getBaseUrl$x(http),
35
+ baseURL: getBaseUrl$t(http),
36
36
  ...config,
37
37
  })
38
38
  .then((response) => response.data, contentfulSdkCore.errorHandler);
@@ -40,41 +40,41 @@ function post$1(http, url, payload, config) {
40
40
  function put$1(http, url, payload, config) {
41
41
  return http
42
42
  .put(url, payload, {
43
- baseURL: getBaseUrl$x(http),
43
+ baseURL: getBaseUrl$t(http),
44
44
  ...config,
45
45
  })
46
46
  .then((response) => response.data, contentfulSdkCore.errorHandler);
47
47
  }
48
- function del$M(http, url, config) {
48
+ function del$H(http, url, config) {
49
49
  return http
50
50
  .delete(url, {
51
- baseURL: getBaseUrl$x(http),
51
+ baseURL: getBaseUrl$t(http),
52
52
  ...config,
53
53
  })
54
54
  .then((response) => response.data, contentfulSdkCore.errorHandler);
55
55
  }
56
56
  function http(http, url, config) {
57
57
  return http(url, {
58
- baseURL: getBaseUrl$x(http),
58
+ baseURL: getBaseUrl$t(http),
59
59
  ...config,
60
60
  }).then((response) => response.data, contentfulSdkCore.errorHandler);
61
61
  }
62
62
 
63
- const get$18 = (http, params, headers) => {
64
- return get$19(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
63
+ const get$13 = (http, params, headers) => {
64
+ return get$14(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
65
65
  headers,
66
66
  });
67
67
  };
68
- const getMany$V = (http, params, headers) => {
69
- return get$19(http, `/spaces/${params.spaceId}/ai/actions`, {
68
+ const getMany$R = (http, params, headers) => {
69
+ return get$14(http, `/spaces/${params.spaceId}/ai/actions`, {
70
70
  params: params.query,
71
71
  headers,
72
72
  });
73
73
  };
74
- const create$K = (http, params, data, headers) => {
74
+ const create$F = (http, params, data, headers) => {
75
75
  return post$1(http, `/spaces/${params.spaceId}/ai/actions`, data, { headers });
76
76
  };
77
- const update$A = (http, params, rawData, headers) => {
77
+ const update$z = (http, params, rawData, headers) => {
78
78
  const data = copy__default.default(rawData);
79
79
  const { sys, ...payload } = data;
80
80
  return put$1(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, payload, {
@@ -84,10 +84,10 @@ const update$A = (http, params, rawData, headers) => {
84
84
  },
85
85
  });
86
86
  };
87
- const del$L = (http, params, headers) => {
88
- return del$M(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, { headers });
87
+ const del$G = (http, params, headers) => {
88
+ return del$H(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, { headers });
89
89
  };
90
- const publish$a = (http, params, rawData, headers) => {
90
+ const publish$5 = (http, params, rawData, headers) => {
91
91
  return put$1(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, null, {
92
92
  headers: {
93
93
  'X-Contentful-Version': params.version,
@@ -95,8 +95,8 @@ const publish$a = (http, params, rawData, headers) => {
95
95
  },
96
96
  });
97
97
  };
98
- const unpublish$a = (http, params, headers) => {
99
- return del$M(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, {
98
+ const unpublish$5 = (http, params, headers) => {
99
+ return del$H(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, {
100
100
  headers,
101
101
  });
102
102
  };
@@ -106,38 +106,38 @@ const invoke = (http, params, data, headers) => {
106
106
 
107
107
  var AiAction = /*#__PURE__*/Object.freeze({
108
108
  __proto__: null,
109
- create: create$K,
110
- del: del$L,
111
- get: get$18,
112
- getMany: getMany$V,
109
+ create: create$F,
110
+ del: del$G,
111
+ get: get$13,
112
+ getMany: getMany$R,
113
113
  invoke: invoke,
114
- publish: publish$a,
115
- unpublish: unpublish$a,
116
- update: update$A
114
+ publish: publish$5,
115
+ unpublish: unpublish$5,
116
+ update: update$z
117
117
  });
118
118
 
119
- const get$17 = (http, params, headers) => {
120
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/actions/${params.aiActionId}/invocations/${params.invocationId}`, { headers });
119
+ const get$12 = (http, params, headers) => {
120
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/actions/${params.aiActionId}/invocations/${params.invocationId}`, { headers });
121
121
  };
122
122
 
123
123
  var AiActionInvocation = /*#__PURE__*/Object.freeze({
124
124
  __proto__: null,
125
- get: get$17
125
+ get: get$12
126
126
  });
127
127
 
128
128
  const AgentAlphaHeaders = {
129
129
  'x-contentful-enable-alpha-feature': 'agents-api',
130
130
  };
131
- const get$16 = (http, params, headers) => {
132
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/${params.agentId}`, {
131
+ const get$11 = (http, params, headers) => {
132
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/${params.agentId}`, {
133
133
  headers: {
134
134
  ...AgentAlphaHeaders,
135
135
  ...headers,
136
136
  },
137
137
  });
138
138
  };
139
- const getMany$U = (http, params, headers) => {
140
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents`, {
139
+ const getMany$Q = (http, params, headers) => {
140
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents`, {
141
141
  headers: {
142
142
  ...AgentAlphaHeaders,
143
143
  ...headers,
@@ -156,23 +156,23 @@ const generate = (http, params, data, headers) => {
156
156
  var Agent = /*#__PURE__*/Object.freeze({
157
157
  __proto__: null,
158
158
  generate: generate,
159
- get: get$16,
160
- getMany: getMany$U
159
+ get: get$11,
160
+ getMany: getMany$Q
161
161
  });
162
162
 
163
163
  const AgentRunAlphaHeaders = {
164
164
  'x-contentful-enable-alpha-feature': 'agents-api',
165
165
  };
166
- const get$15 = (http, params, headers) => {
167
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs/${params.runId}`, {
166
+ const get$10 = (http, params, headers) => {
167
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs/${params.runId}`, {
168
168
  headers: {
169
169
  ...AgentRunAlphaHeaders,
170
170
  ...headers,
171
171
  },
172
172
  });
173
173
  };
174
- const getMany$T = (http, params, headers) => {
175
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs`, {
174
+ const getMany$P = (http, params, headers) => {
175
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs`, {
176
176
  params: params.query,
177
177
  headers: {
178
178
  ...AgentRunAlphaHeaders,
@@ -191,8 +191,8 @@ const resumeRun = (http, params, data, headers) => {
191
191
 
192
192
  var AgentRun = /*#__PURE__*/Object.freeze({
193
193
  __proto__: null,
194
- get: get$15,
195
- getMany: getMany$T,
194
+ get: get$10,
195
+ getMany: getMany$P,
196
196
  resumeRun: resumeRun
197
197
  });
198
198
 
@@ -217,8 +217,8 @@ var AgentRun = /*#__PURE__*/Object.freeze({
217
217
  * .catch(console.error)
218
218
  * ```
219
219
  */
220
- const get$14 = (http, params) => {
221
- return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
220
+ const get$$ = (http, params) => {
221
+ return get$14(http, `/users/me/access_tokens/${params.tokenId}`);
222
222
  };
223
223
  /**
224
224
  * Retrieves multiple access tokens associated with the currently authenticated user.
@@ -240,8 +240,8 @@ const get$14 = (http, params) => {
240
240
  * .catch(console.error)
241
241
  * ```
242
242
  */
243
- const getMany$S = (http, params) => {
244
- return get$19(http, '/users/me/access_tokens', {
243
+ const getMany$O = (http, params) => {
244
+ return get$14(http, '/users/me/access_tokens', {
245
245
  params: params.query,
246
246
  });
247
247
  };
@@ -318,7 +318,7 @@ const revoke$1 = (http, params) => {
318
318
  * ```
319
319
  */
320
320
  const getManyForOrganization$7 = (http, params) => {
321
- return get$19(http, `/organizations/${params.organizationId}/access_tokens`, {
321
+ return get$14(http, `/organizations/${params.organizationId}/access_tokens`, {
322
322
  params: params.query,
323
323
  });
324
324
  };
@@ -326,28 +326,28 @@ const getManyForOrganization$7 = (http, params) => {
326
326
  var AccessToken = /*#__PURE__*/Object.freeze({
327
327
  __proto__: null,
328
328
  createPersonalAccessToken: createPersonalAccessToken,
329
- get: get$14,
330
- getMany: getMany$S,
329
+ get: get$$,
330
+ getMany: getMany$O,
331
331
  getManyForOrganization: getManyForOrganization$7,
332
332
  revoke: revoke$1
333
333
  });
334
334
 
335
- const getBaseUrl$w = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions`;
336
- const getAutomationDefinitionUrl = (params) => `${getBaseUrl$w(params)}/${params.automationDefinitionId}`;
337
- const get$13 = (http, params, headers) => get$19(http, getAutomationDefinitionUrl(params), {
335
+ const getBaseUrl$s = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions`;
336
+ const getAutomationDefinitionUrl = (params) => `${getBaseUrl$s(params)}/${params.automationDefinitionId}`;
337
+ const get$_ = (http, params, headers) => get$14(http, getAutomationDefinitionUrl(params), {
338
338
  headers,
339
339
  });
340
- const getMany$R = (http, params, headers) => get$19(http, getBaseUrl$w(params), {
340
+ const getMany$N = (http, params, headers) => get$14(http, getBaseUrl$s(params), {
341
341
  headers,
342
342
  params: params.query,
343
343
  });
344
- const create$J = (http, params, rawData, headers) => {
344
+ const create$E = (http, params, rawData, headers) => {
345
345
  const data = copy__default.default(rawData);
346
- return post$1(http, getBaseUrl$w(params), data, {
346
+ return post$1(http, getBaseUrl$s(params), data, {
347
347
  headers,
348
348
  });
349
349
  };
350
- const update$z = (http, params, rawData, headers) => {
350
+ const update$y = (http, params, rawData, headers) => {
351
351
  const data = copy__default.default(rawData);
352
352
  delete data.sys;
353
353
  return put$1(http, getAutomationDefinitionUrl(params), data, {
@@ -357,52 +357,52 @@ const update$z = (http, params, rawData, headers) => {
357
357
  },
358
358
  });
359
359
  };
360
- const del$K = (http, params, headers) => {
361
- return del$M(http, getAutomationDefinitionUrl(params), {
360
+ const del$F = (http, params, headers) => {
361
+ return del$H(http, getAutomationDefinitionUrl(params), {
362
362
  headers: { 'X-Contentful-Version': params.version, ...headers },
363
363
  });
364
364
  };
365
365
 
366
366
  var AutomationDefinition = /*#__PURE__*/Object.freeze({
367
367
  __proto__: null,
368
- create: create$J,
369
- del: del$K,
370
- get: get$13,
371
- getMany: getMany$R,
372
- update: update$z
368
+ create: create$E,
369
+ del: del$F,
370
+ get: get$_,
371
+ getMany: getMany$N,
372
+ update: update$y
373
373
  });
374
374
 
375
- const getBaseUrl$v = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`;
376
- const getAutomationExecutionUrl = (params) => `${getBaseUrl$v(params)}/${params.automationExecutionId}`;
375
+ const getBaseUrl$r = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`;
376
+ const getAutomationExecutionUrl = (params) => `${getBaseUrl$r(params)}/${params.automationExecutionId}`;
377
377
  const getExecutionsByDefinitionUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions/${params.automationDefinitionId}/automation_executions`;
378
- const get$12 = (http, params, headers) => get$19(http, getAutomationExecutionUrl(params), {
378
+ const get$Z = (http, params, headers) => get$14(http, getAutomationExecutionUrl(params), {
379
379
  headers,
380
380
  });
381
- const getMany$Q = (http, params, headers) => get$19(http, getBaseUrl$v(params), {
381
+ const getMany$M = (http, params, headers) => get$14(http, getBaseUrl$r(params), {
382
382
  headers,
383
383
  params: params.query,
384
384
  });
385
- const getForAutomationDefinition = (http, params, headers) => get$19(http, getExecutionsByDefinitionUrl(params), {
385
+ const getForAutomationDefinition = (http, params, headers) => get$14(http, getExecutionsByDefinitionUrl(params), {
386
386
  headers,
387
387
  params: params.query,
388
388
  });
389
389
 
390
390
  var AutomationExecution = /*#__PURE__*/Object.freeze({
391
391
  __proto__: null,
392
- get: get$12,
392
+ get: get$Z,
393
393
  getForAutomationDefinition: getForAutomationDefinition,
394
- getMany: getMany$Q
394
+ getMany: getMany$M
395
395
  });
396
396
 
397
- const get$11 = (http, params) => {
398
- return get$19(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
397
+ const get$Y = (http, params) => {
398
+ return get$14(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
399
399
  };
400
- const getMany$P = (http, params) => {
401
- return get$19(http, `/spaces/${params.spaceId}/api_keys`, {
400
+ const getMany$L = (http, params) => {
401
+ return get$14(http, `/spaces/${params.spaceId}/api_keys`, {
402
402
  params: params.query,
403
403
  });
404
404
  };
405
- const create$I = (http, params, data, headers) => {
405
+ const create$D = (http, params, data, headers) => {
406
406
  return post$1(http, `/spaces/${params.spaceId}/api_keys`, data, { headers });
407
407
  };
408
408
  const createWithId$e = (http, params, data, headers) => {
@@ -410,7 +410,7 @@ const createWithId$e = (http, params, data, headers) => {
410
410
  headers,
411
411
  });
412
412
  };
413
- const update$y = (http, params, rawData, headers) => {
413
+ const update$x = (http, params, rawData, headers) => {
414
414
  const data = copy__default.default(rawData);
415
415
  if ('accessToken' in data) {
416
416
  delete data.accessToken;
@@ -429,27 +429,27 @@ const update$y = (http, params, rawData, headers) => {
429
429
  },
430
430
  });
431
431
  };
432
- const del$J = (http, params) => {
433
- return del$M(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
432
+ const del$E = (http, params) => {
433
+ return del$H(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
434
434
  };
435
435
 
436
436
  var ApiKey = /*#__PURE__*/Object.freeze({
437
437
  __proto__: null,
438
- create: create$I,
438
+ create: create$D,
439
439
  createWithId: createWithId$e,
440
- del: del$J,
441
- get: get$11,
442
- getMany: getMany$P,
443
- update: update$y
440
+ del: del$E,
441
+ get: get$Y,
442
+ getMany: getMany$L,
443
+ update: update$x
444
444
  });
445
445
 
446
- const create$H = (http, params, data) => {
446
+ const create$C = (http, params, data) => {
447
447
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/access_tokens`, undefined, { headers: { Authorization: `Bearer ${data.jwt}` } });
448
448
  };
449
449
 
450
450
  var AppAccessToken = /*#__PURE__*/Object.freeze({
451
451
  __proto__: null,
452
- create: create$H
452
+ create: create$C
453
453
  });
454
454
 
455
455
  function normalizeSelect(query) {
@@ -472,45 +472,45 @@ function normalizeSpaceId(query) {
472
472
  return query;
473
473
  }
474
474
 
475
- const getBaseUrl$u = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`;
476
- const getAppActionUrl = (params) => `${getBaseUrl$u(params)}/${params.appActionId}`;
475
+ const getBaseUrl$q = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`;
476
+ const getAppActionUrl = (params) => `${getBaseUrl$q(params)}/${params.appActionId}`;
477
477
  const getAppActionsEnvUrl = (params) => {
478
478
  if (params.environmentId) {
479
479
  return `/spaces/${params.spaceId}/environments/${params.environmentId}/actions`;
480
480
  }
481
481
  return `/spaces/${params.spaceId}/actions`;
482
482
  };
483
- const get$10 = (http, params) => {
484
- return get$19(http, getAppActionUrl(params));
483
+ const get$X = (http, params) => {
484
+ return get$14(http, getAppActionUrl(params));
485
485
  };
486
- const getMany$O = (http, params) => {
487
- return get$19(http, getBaseUrl$u(params), {
486
+ const getMany$K = (http, params) => {
487
+ return get$14(http, getBaseUrl$q(params), {
488
488
  params: normalizeSelect(params.query),
489
489
  });
490
490
  };
491
491
  const getManyForEnvironment$2 = (http, params) => {
492
- return get$19(http, getAppActionsEnvUrl(params), {
492
+ return get$14(http, getAppActionsEnvUrl(params), {
493
493
  params: normalizeSelect(params.query),
494
494
  });
495
495
  };
496
- const del$I = (http, params) => {
497
- return del$M(http, getAppActionUrl(params));
496
+ const del$D = (http, params) => {
497
+ return del$H(http, getAppActionUrl(params));
498
498
  };
499
- const create$G = (http, params, data) => {
500
- return post$1(http, getBaseUrl$u(params), data);
499
+ const create$B = (http, params, data) => {
500
+ return post$1(http, getBaseUrl$q(params), data);
501
501
  };
502
- const update$x = (http, params, data) => {
502
+ const update$w = (http, params, data) => {
503
503
  return put$1(http, getAppActionUrl(params), data);
504
504
  };
505
505
 
506
506
  var AppAction = /*#__PURE__*/Object.freeze({
507
507
  __proto__: null,
508
- create: create$G,
509
- del: del$I,
510
- get: get$10,
511
- getMany: getMany$O,
508
+ create: create$B,
509
+ del: del$D,
510
+ get: get$X,
511
+ getMany: getMany$K,
512
512
  getManyForEnvironment: getManyForEnvironment$2,
513
- update: update$x
513
+ update: update$w
514
514
  });
515
515
 
516
516
  /**
@@ -576,11 +576,11 @@ function normalizeCursorPaginationResponse(data) {
576
576
  };
577
577
  }
578
578
 
579
- const create$F = (http, params, data) => {
579
+ const create$A = (http, params, data) => {
580
580
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`, data);
581
581
  };
582
582
  const getCallDetails$1 = (http, params) => {
583
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`);
583
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`);
584
584
  };
585
585
  const APP_ACTION_CALL_RETRY_INTERVAL = 2000;
586
586
  const APP_ACTION_CALL_RETRIES = 15;
@@ -632,12 +632,12 @@ const createWithResponse = async (http, params, data) => {
632
632
  return callAppActionResult(http, params, { callId });
633
633
  };
634
634
  // Get structured AppActionCall (status/result/error) via new route that includes app installation context
635
- const get$$ = (http, params) => {
636
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}`);
635
+ const get$W = (http, params) => {
636
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}`);
637
637
  };
638
638
  // Get raw AppActionCall response (headers/body) for a completed call
639
639
  const getResponse = (http, params) => {
640
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}/response`);
640
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}/response`);
641
641
  };
642
642
  async function pollStructuredAppActionCall(http, params, { callId }) {
643
643
  let checkCount = 1;
@@ -646,7 +646,7 @@ async function pollStructuredAppActionCall(http, params, { callId }) {
646
646
  return new Promise((resolve, reject) => {
647
647
  const poll = async () => {
648
648
  try {
649
- const result = await get$$(http, { ...params, callId });
649
+ const result = await get$W(http, { ...params, callId });
650
650
  // If backend has not yet written the record, keep polling up to retries
651
651
  // Otherwise, resolve when status is terminal
652
652
  if (result?.sys.status === 'succeeded' || result?.sys.status === 'failed') {
@@ -685,28 +685,28 @@ const createWithResult = async (http, params, data) => {
685
685
 
686
686
  var AppActionCall = /*#__PURE__*/Object.freeze({
687
687
  __proto__: null,
688
- create: create$F,
688
+ create: create$A,
689
689
  createWithResponse: createWithResponse,
690
690
  createWithResult: createWithResult,
691
- get: get$$,
691
+ get: get$W,
692
692
  getCallDetails: getCallDetails$1,
693
693
  getResponse: getResponse
694
694
  });
695
695
 
696
- const getBaseUrl$t = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`;
697
- const getAppBundleUrl = (params) => `${getBaseUrl$t(params)}/${params.appBundleId}`;
698
- const get$_ = (http, params) => {
699
- return get$19(http, getAppBundleUrl(params));
696
+ const getBaseUrl$p = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`;
697
+ const getAppBundleUrl = (params) => `${getBaseUrl$p(params)}/${params.appBundleId}`;
698
+ const get$V = (http, params) => {
699
+ return get$14(http, getAppBundleUrl(params));
700
700
  };
701
- const getMany$N = (http, params) => {
702
- return get$19(http, getBaseUrl$t(params), {
701
+ const getMany$J = (http, params) => {
702
+ return get$14(http, getBaseUrl$p(params), {
703
703
  params: normalizeSelect(params.query),
704
704
  });
705
705
  };
706
- const del$H = (http, params) => {
707
- return del$M(http, getAppBundleUrl(params));
706
+ const del$C = (http, params) => {
707
+ return del$H(http, getAppBundleUrl(params));
708
708
  };
709
- const create$E = (http, params, payload) => {
709
+ const create$z = (http, params, payload) => {
710
710
  const { appUploadId, comment, actions, functions } = payload;
711
711
  const data = {
712
712
  upload: {
@@ -720,35 +720,35 @@ const create$E = (http, params, payload) => {
720
720
  actions,
721
721
  functions,
722
722
  };
723
- return post$1(http, getBaseUrl$t(params), data);
723
+ return post$1(http, getBaseUrl$p(params), data);
724
724
  };
725
725
 
726
726
  var AppBundle = /*#__PURE__*/Object.freeze({
727
727
  __proto__: null,
728
- create: create$E,
729
- del: del$H,
730
- get: get$_,
731
- getMany: getMany$N
728
+ create: create$z,
729
+ del: del$C,
730
+ get: get$V,
731
+ getMany: getMany$J
732
732
  });
733
733
 
734
- const getBaseUrl$s = (params) => `/organizations/${params.organizationId}/app_definitions`;
735
- const getAppDefinitionUrl = (params) => getBaseUrl$s(params) + `/${params.appDefinitionId}`;
734
+ const getBaseUrl$o = (params) => `/organizations/${params.organizationId}/app_definitions`;
735
+ const getAppDefinitionUrl = (params) => getBaseUrl$o(params) + `/${params.appDefinitionId}`;
736
736
  const getBaseUrlForOrgInstallations$1 = (params) => `/app_definitions/${params.appDefinitionId}/app_installations`;
737
- const get$Z = (http, params) => {
738
- return get$19(http, getAppDefinitionUrl(params), {
737
+ const get$U = (http, params) => {
738
+ return get$14(http, getAppDefinitionUrl(params), {
739
739
  params: normalizeSelect(params.query),
740
740
  });
741
741
  };
742
- const getMany$M = (http, params) => {
743
- return get$19(http, getBaseUrl$s(params), {
742
+ const getMany$I = (http, params) => {
743
+ return get$14(http, getBaseUrl$o(params), {
744
744
  params: params.query,
745
745
  });
746
746
  };
747
- const create$D = (http, params, rawData) => {
747
+ const create$y = (http, params, rawData) => {
748
748
  const data = copy__default.default(rawData);
749
- return post$1(http, getBaseUrl$s(params), data);
749
+ return post$1(http, getBaseUrl$o(params), data);
750
750
  };
751
- const update$w = (http, params, rawData, headers) => {
751
+ const update$v = (http, params, rawData, headers) => {
752
752
  const data = copy__default.default(rawData);
753
753
  delete data.sys;
754
754
  return put$1(http, getAppDefinitionUrl(params), data, {
@@ -758,11 +758,11 @@ const update$w = (http, params, rawData, headers) => {
758
758
  },
759
759
  });
760
760
  };
761
- const del$G = (http, params) => {
762
- return del$M(http, getAppDefinitionUrl(params));
761
+ const del$B = (http, params) => {
762
+ return del$H(http, getAppDefinitionUrl(params));
763
763
  };
764
764
  const getInstallationsForOrg = (http, params) => {
765
- return get$19(http, getBaseUrlForOrgInstallations$1(params), {
765
+ return get$14(http, getBaseUrlForOrgInstallations$1(params), {
766
766
  params: {
767
767
  ...normalizeSpaceId(normalizeSelect(params.query)),
768
768
  'sys.organization.sys.id[in]': params.organizationId,
@@ -772,63 +772,63 @@ const getInstallationsForOrg = (http, params) => {
772
772
 
773
773
  var AppDefinition = /*#__PURE__*/Object.freeze({
774
774
  __proto__: null,
775
- create: create$D,
776
- del: del$G,
777
- get: get$Z,
775
+ create: create$y,
776
+ del: del$B,
777
+ get: get$U,
778
778
  getAppDefinitionUrl: getAppDefinitionUrl,
779
779
  getInstallationsForOrg: getInstallationsForOrg,
780
- getMany: getMany$M,
781
- update: update$w
780
+ getMany: getMany$I,
781
+ update: update$v
782
782
  });
783
783
 
784
- const get$Y = (http, params) => {
785
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
784
+ const get$T = (http, params) => {
785
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
786
786
  };
787
- const upsert$9 = (http, params, data) => {
787
+ const upsert$5 = (http, params, data) => {
788
788
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`, data);
789
789
  };
790
- const del$F = (http, params) => {
791
- return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
790
+ const del$A = (http, params) => {
791
+ return del$H(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
792
792
  };
793
793
 
794
794
  var AppDetails = /*#__PURE__*/Object.freeze({
795
795
  __proto__: null,
796
- del: del$F,
797
- get: get$Y,
798
- upsert: upsert$9
796
+ del: del$A,
797
+ get: get$T,
798
+ upsert: upsert$5
799
799
  });
800
800
 
801
- const get$X = (http, params) => {
802
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
801
+ const get$S = (http, params) => {
802
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
803
803
  };
804
- const upsert$8 = (http, params, data) => {
804
+ const upsert$4 = (http, params, data) => {
805
805
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`, data);
806
806
  };
807
- const del$E = (http, params) => {
808
- return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
807
+ const del$z = (http, params) => {
808
+ return del$H(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
809
809
  };
810
810
 
811
811
  var AppEventSubscription = /*#__PURE__*/Object.freeze({
812
812
  __proto__: null,
813
- del: del$E,
814
- get: get$X,
815
- upsert: upsert$8
813
+ del: del$z,
814
+ get: get$S,
815
+ upsert: upsert$4
816
816
  });
817
817
 
818
- const getBaseUrl$r = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`;
818
+ const getBaseUrl$n = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`;
819
819
  const getBaseUrlForOrgInstallations = (params) => `/app_definitions/${params.appDefinitionId}/app_installations`;
820
- const getAppInstallationUrl = (params) => getBaseUrl$r(params) + `/${params.appDefinitionId}`;
821
- const get$W = (http, params) => {
822
- return get$19(http, getAppInstallationUrl(params), {
820
+ const getAppInstallationUrl = (params) => getBaseUrl$n(params) + `/${params.appDefinitionId}`;
821
+ const get$R = (http, params) => {
822
+ return get$14(http, getAppInstallationUrl(params), {
823
823
  params: normalizeSelect(params.query),
824
824
  });
825
825
  };
826
- const getMany$L = (http, params) => {
827
- return get$19(http, getBaseUrl$r(params), {
826
+ const getMany$H = (http, params) => {
827
+ return get$14(http, getBaseUrl$n(params), {
828
828
  params: normalizeSelect(params.query),
829
829
  });
830
830
  };
831
- const upsert$7 = (http, params, rawData, headers) => {
831
+ const upsert$3 = (http, params, rawData, headers) => {
832
832
  const data = copy__default.default(rawData);
833
833
  return put$1(http, getAppInstallationUrl(params), data, {
834
834
  headers: {
@@ -839,11 +839,11 @@ const upsert$7 = (http, params, rawData, headers) => {
839
839
  },
840
840
  });
841
841
  };
842
- const del$D = (http, params) => {
843
- return del$M(http, getAppInstallationUrl(params));
842
+ const del$y = (http, params) => {
843
+ return del$H(http, getAppInstallationUrl(params));
844
844
  };
845
845
  const getForOrganization$3 = (http, params) => {
846
- return get$19(http, getBaseUrlForOrgInstallations(params), {
846
+ return get$14(http, getBaseUrlForOrgInstallations(params), {
847
847
  params: {
848
848
  ...normalizeSpaceId(normalizeSelect(params.query)),
849
849
  'sys.organization.sys.id[in]': params.organizationId,
@@ -853,59 +853,59 @@ const getForOrganization$3 = (http, params) => {
853
853
 
854
854
  var AppInstallation = /*#__PURE__*/Object.freeze({
855
855
  __proto__: null,
856
- del: del$D,
857
- get: get$W,
856
+ del: del$y,
857
+ get: get$R,
858
858
  getAppInstallationUrl: getAppInstallationUrl,
859
859
  getForOrganization: getForOrganization$3,
860
- getMany: getMany$L,
861
- upsert: upsert$7
860
+ getMany: getMany$H,
861
+ upsert: upsert$3
862
862
  });
863
863
 
864
- const get$V = (http, params) => {
865
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
864
+ const get$Q = (http, params) => {
865
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
866
866
  };
867
- const getMany$K = (http, params) => {
868
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`);
867
+ const getMany$G = (http, params) => {
868
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`);
869
869
  };
870
- const create$C = (http, params, data) => {
870
+ const create$x = (http, params, data) => {
871
871
  return post$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`, data);
872
872
  };
873
- const del$C = (http, params) => {
874
- return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
873
+ const del$x = (http, params) => {
874
+ return del$H(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
875
875
  };
876
876
 
877
877
  var AppKey = /*#__PURE__*/Object.freeze({
878
878
  __proto__: null,
879
- create: create$C,
880
- del: del$C,
881
- get: get$V,
882
- getMany: getMany$K
879
+ create: create$x,
880
+ del: del$x,
881
+ get: get$Q,
882
+ getMany: getMany$G
883
883
  });
884
884
 
885
- const create$B = (http, params, data) => {
885
+ const create$w = (http, params, data) => {
886
886
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/signed_requests`, data);
887
887
  };
888
888
 
889
889
  var AppSignedRequest = /*#__PURE__*/Object.freeze({
890
890
  __proto__: null,
891
- create: create$B
891
+ create: create$w
892
892
  });
893
893
 
894
- const get$U = (http, params) => {
895
- return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
894
+ const get$P = (http, params) => {
895
+ return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
896
896
  };
897
- const upsert$6 = (http, params, data) => {
897
+ const upsert$2 = (http, params, data) => {
898
898
  return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`, data);
899
899
  };
900
- const del$B = (http, params) => {
901
- return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
900
+ const del$w = (http, params) => {
901
+ return del$H(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
902
902
  };
903
903
 
904
904
  var AppSigningSecret = /*#__PURE__*/Object.freeze({
905
905
  __proto__: null,
906
- del: del$B,
907
- get: get$U,
908
- upsert: upsert$6
906
+ del: del$w,
907
+ get: get$P,
908
+ upsert: upsert$2
909
909
  });
910
910
 
911
911
  /**
@@ -921,20 +921,20 @@ function getUploadHttpClient(http, options) {
921
921
  return uploadHttp;
922
922
  }
923
923
 
924
- const getBaseUrl$q = (params) => `/organizations/${params.organizationId}/app_uploads`;
925
- const getAppUploadUrl = (params) => `${getBaseUrl$q(params)}/${params.appUploadId}`;
926
- const get$T = (http, params) => {
924
+ const getBaseUrl$m = (params) => `/organizations/${params.organizationId}/app_uploads`;
925
+ const getAppUploadUrl = (params) => `${getBaseUrl$m(params)}/${params.appUploadId}`;
926
+ const get$O = (http, params) => {
927
927
  const httpUpload = getUploadHttpClient(http);
928
- return get$19(httpUpload, getAppUploadUrl(params));
928
+ return get$14(httpUpload, getAppUploadUrl(params));
929
929
  };
930
- const del$A = (http, params) => {
930
+ const del$v = (http, params) => {
931
931
  const httpUpload = getUploadHttpClient(http);
932
- return del$M(httpUpload, getAppUploadUrl(params));
932
+ return del$H(httpUpload, getAppUploadUrl(params));
933
933
  };
934
- const create$A = (http, params, payload) => {
934
+ const create$v = (http, params, payload) => {
935
935
  const httpUpload = getUploadHttpClient(http);
936
936
  const { file } = payload;
937
- return post$1(httpUpload, getBaseUrl$q(params), file, {
937
+ return post$1(httpUpload, getBaseUrl$m(params), file, {
938
938
  headers: {
939
939
  'Content-Type': 'application/octet-stream',
940
940
  },
@@ -943,9 +943,9 @@ const create$A = (http, params, payload) => {
943
943
 
944
944
  var AppUpload = /*#__PURE__*/Object.freeze({
945
945
  __proto__: null,
946
- create: create$A,
947
- del: del$A,
948
- get: get$T
946
+ create: create$v,
947
+ del: del$v,
948
+ get: get$O
949
949
  });
950
950
 
951
951
  const getBaseUploadUrl = (params) => {
@@ -958,7 +958,7 @@ const getEntityUploadUrl = (params) => {
958
958
  const path = getBaseUploadUrl(params);
959
959
  return path + `/${params.uploadId}`;
960
960
  };
961
- const create$z = (http, params, data) => {
961
+ const create$u = (http, params, data) => {
962
962
  const httpUpload = getUploadHttpClient(http);
963
963
  const { file } = data;
964
964
  if (!file) {
@@ -971,37 +971,37 @@ const create$z = (http, params, data) => {
971
971
  },
972
972
  });
973
973
  };
974
- const del$z = (http, params) => {
974
+ const del$u = (http, params) => {
975
975
  const httpUpload = getUploadHttpClient(http);
976
976
  const path = getEntityUploadUrl(params);
977
- return del$M(httpUpload, path);
977
+ return del$H(httpUpload, path);
978
978
  };
979
- const get$S = (http, params) => {
979
+ const get$N = (http, params) => {
980
980
  const httpUpload = getUploadHttpClient(http);
981
981
  const path = getEntityUploadUrl(params);
982
- return get$19(httpUpload, path);
982
+ return get$14(httpUpload, path);
983
983
  };
984
984
 
985
985
  var Upload = /*#__PURE__*/Object.freeze({
986
986
  __proto__: null,
987
- create: create$z,
988
- del: del$z,
989
- get: get$S
987
+ create: create$u,
988
+ del: del$u,
989
+ get: get$N
990
990
  });
991
991
 
992
- const get$R = (http, params, rawData, headers) => {
993
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, {
992
+ const get$M = (http, params, rawData, headers) => {
993
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, {
994
994
  params: normalizeSelect(params.query),
995
995
  headers: headers ? { ...headers } : undefined,
996
996
  });
997
997
  };
998
- const getMany$J = (http, params, rawData, headers) => {
999
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, {
998
+ const getMany$F = (http, params, rawData, headers) => {
999
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, {
1000
1000
  params: normalizeSelect(params.query),
1001
1001
  headers: headers ? { ...headers } : undefined,
1002
1002
  });
1003
1003
  };
1004
- const update$v = (http, params, rawData, headers) => {
1004
+ const update$u = (http, params, rawData, headers) => {
1005
1005
  const data = copy__default.default(rawData);
1006
1006
  delete data.sys;
1007
1007
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, data, {
@@ -1011,7 +1011,7 @@ const update$v = (http, params, rawData, headers) => {
1011
1011
  },
1012
1012
  });
1013
1013
  };
1014
- const create$y = (http, params, rawData, headers) => {
1014
+ const create$t = (http, params, rawData, headers) => {
1015
1015
  const data = copy__default.default(rawData);
1016
1016
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, data, {
1017
1017
  headers,
@@ -1028,7 +1028,7 @@ const createFromFiles$1 = async (http, params, data) => {
1028
1028
  const { file } = data.fields;
1029
1029
  return Promise.all(Object.keys(file).map(async (locale) => {
1030
1030
  const { contentType, fileName } = file[locale];
1031
- return create$z(httpUpload, params, file[locale]).then((upload) => {
1031
+ return create$u(httpUpload, params, file[locale]).then((upload) => {
1032
1032
  return {
1033
1033
  [locale]: {
1034
1034
  contentType,
@@ -1053,7 +1053,7 @@ const createFromFiles$1 = async (http, params, data) => {
1053
1053
  file,
1054
1054
  },
1055
1055
  };
1056
- return create$y(http, params, asset, {});
1056
+ return create$t(http, params, asset, {});
1057
1057
  })
1058
1058
  .catch(contentfulSdkCore.errorHandler);
1059
1059
  };
@@ -1063,7 +1063,7 @@ const createFromFiles$1 = async (http, params, data) => {
1063
1063
  const ASSET_PROCESSING_CHECK_WAIT$1 = 3000;
1064
1064
  const ASSET_PROCESSING_CHECK_RETRIES$1 = 10;
1065
1065
  async function checkIfAssetHasUrl$1(http, params, { resolve, reject, locale, processingCheckWait = ASSET_PROCESSING_CHECK_WAIT$1, processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES$1, checkCount = 0, }) {
1066
- return get$R(http, params).then((asset) => {
1066
+ return get$M(http, params).then((asset) => {
1067
1067
  if (asset.fields.file[locale].url) {
1068
1068
  resolve(asset);
1069
1069
  }
@@ -1125,43 +1125,53 @@ const processForAllLocales$1 = async (http, { asset, options = {}, ...params })
1125
1125
 
1126
1126
  var ReleaseAsset = /*#__PURE__*/Object.freeze({
1127
1127
  __proto__: null,
1128
- create: create$y,
1128
+ create: create$t,
1129
1129
  createFromFiles: createFromFiles$1,
1130
1130
  createWithId: createWithId$d,
1131
- get: get$R,
1132
- getMany: getMany$J,
1131
+ get: get$M,
1132
+ getMany: getMany$F,
1133
1133
  processForAllLocales: processForAllLocales$1,
1134
1134
  processForLocale: processForLocale$1,
1135
- update: update$v
1135
+ update: update$u
1136
1136
  });
1137
1137
 
1138
- const get$Q = (http, params, rawData, headers) => {
1138
+ const get$L = (http, params, rawData, headers) => {
1139
1139
  if (params.releaseId) {
1140
- return get$R(http, params);
1140
+ return get$M(http, params);
1141
1141
  }
1142
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, {
1142
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, {
1143
1143
  params: normalizeSelect(params.query),
1144
1144
  headers: headers ? { ...headers } : undefined,
1145
1145
  });
1146
1146
  };
1147
- const getPublished$2 = (http, params, rawData, headers) => {
1148
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, {
1147
+ const getPublished$1 = (http, params, rawData, headers) => {
1148
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, {
1149
1149
  params: normalizeSelect(params.query),
1150
1150
  headers: headers ? { ...headers } : undefined,
1151
1151
  });
1152
1152
  };
1153
- const getMany$I = (http, params, rawData, headers) => {
1153
+ const getMany$E = (http, params, rawData, headers) => {
1154
1154
  if (params.releaseId) {
1155
- return getMany$J(http, params);
1155
+ return getMany$F(http, params);
1156
1156
  }
1157
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
1157
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
1158
1158
  params: normalizeSelect(params.query),
1159
1159
  headers: headers ? { ...headers } : undefined,
1160
1160
  });
1161
1161
  };
1162
- const update$u = (http, params, rawData, headers) => {
1162
+ const getManyWithCursor$2 = (http, params, rawData, headers) => {
1163
+ if (params.releaseId) {
1164
+ throw new Error('getManyWithCursor is not supported for release-scoped assets');
1165
+ }
1166
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
1167
+ params: { cursor: true, ...(params.query ?? {}) },
1168
+ headers: headers ? { ...headers } : undefined,
1169
+ })
1170
+ .then(normalizeCursorPaginationResponse);
1171
+ };
1172
+ const update$t = (http, params, rawData, headers) => {
1163
1173
  if (params.releaseId) {
1164
- return update$v(http, params, rawData, headers ?? {});
1174
+ return update$u(http, params, rawData, headers ?? {});
1165
1175
  }
1166
1176
  const data = copy__default.default(rawData);
1167
1177
  delete data.sys;
@@ -1172,10 +1182,10 @@ const update$u = (http, params, rawData, headers) => {
1172
1182
  },
1173
1183
  });
1174
1184
  };
1175
- const del$y = (http, params) => {
1176
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
1185
+ const del$t = (http, params) => {
1186
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
1177
1187
  };
1178
- const publish$9 = (http, params, rawData) => {
1188
+ const publish$4 = (http, params, rawData) => {
1179
1189
  const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
1180
1190
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
1181
1191
  headers: {
@@ -1183,7 +1193,7 @@ const publish$9 = (http, params, rawData) => {
1183
1193
  },
1184
1194
  });
1185
1195
  };
1186
- const unpublish$9 = (http, params, rawData) => {
1196
+ const unpublish$4 = (http, params, rawData) => {
1187
1197
  if (params.locales?.length) {
1188
1198
  const payload = { remove: { fields: { '*': params.locales } } };
1189
1199
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
@@ -1193,18 +1203,18 @@ const unpublish$9 = (http, params, rawData) => {
1193
1203
  });
1194
1204
  }
1195
1205
  else {
1196
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
1206
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
1197
1207
  }
1198
1208
  };
1199
1209
  const archive$2 = (http, params) => {
1200
1210
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
1201
1211
  };
1202
1212
  const unarchive$3 = (http, params) => {
1203
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
1213
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
1204
1214
  };
1205
- const create$x = (http, params, rawData) => {
1215
+ const create$s = (http, params, rawData) => {
1206
1216
  if (params.releaseId) {
1207
- return create$y(http, params, rawData, {});
1217
+ return create$t(http, params, rawData, {});
1208
1218
  }
1209
1219
  const data = copy__default.default(rawData);
1210
1220
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, data);
@@ -1224,7 +1234,7 @@ const createFromFiles = async (http, params, data) => {
1224
1234
  const { file } = data.fields;
1225
1235
  return Promise.all(Object.keys(file).map(async (locale) => {
1226
1236
  const { contentType, fileName } = file[locale];
1227
- return create$z(httpUpload, params, file[locale]).then((upload) => {
1237
+ return create$u(httpUpload, params, file[locale]).then((upload) => {
1228
1238
  return {
1229
1239
  [locale]: {
1230
1240
  contentType,
@@ -1249,7 +1259,7 @@ const createFromFiles = async (http, params, data) => {
1249
1259
  file,
1250
1260
  },
1251
1261
  };
1252
- return create$x(http, params, asset);
1262
+ return create$s(http, params, asset);
1253
1263
  })
1254
1264
  .catch(contentfulSdkCore.errorHandler);
1255
1265
  };
@@ -1259,7 +1269,7 @@ const createFromFiles = async (http, params, data) => {
1259
1269
  const ASSET_PROCESSING_CHECK_WAIT = 3000;
1260
1270
  const ASSET_PROCESSING_CHECK_RETRIES = 10;
1261
1271
  async function checkIfAssetHasUrl(http, params, { resolve, reject, locale, processingCheckWait = ASSET_PROCESSING_CHECK_WAIT, processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES, checkCount = 0, }) {
1262
- return get$Q(http, params).then((asset) => {
1272
+ return get$L(http, params).then((asset) => {
1263
1273
  if (asset.fields.file[locale].url) {
1264
1274
  resolve(asset);
1265
1275
  }
@@ -1336,19 +1346,20 @@ const processForAllLocales = async (http, { asset, options = {}, ...params }) =>
1336
1346
  var Asset = /*#__PURE__*/Object.freeze({
1337
1347
  __proto__: null,
1338
1348
  archive: archive$2,
1339
- create: create$x,
1349
+ create: create$s,
1340
1350
  createFromFiles: createFromFiles,
1341
1351
  createWithId: createWithId$c,
1342
- del: del$y,
1343
- get: get$Q,
1344
- getMany: getMany$I,
1345
- getPublished: getPublished$2,
1352
+ del: del$t,
1353
+ get: get$L,
1354
+ getMany: getMany$E,
1355
+ getManyWithCursor: getManyWithCursor$2,
1356
+ getPublished: getPublished$1,
1346
1357
  processForAllLocales: processForAllLocales,
1347
1358
  processForLocale: processForLocale,
1348
- publish: publish$9,
1359
+ publish: publish$4,
1349
1360
  unarchive: unarchive$3,
1350
- unpublish: unpublish$9,
1351
- update: update$u
1361
+ unpublish: unpublish$4,
1362
+ update: update$t
1352
1363
  });
1353
1364
 
1354
1365
  const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60;
@@ -1370,7 +1381,7 @@ const validateTimestamp = (name, timestamp, options) => {
1370
1381
  throw new ValidationError(name, `value (${timestamp}) cannot be in the past, current time was ${options.now}`);
1371
1382
  }
1372
1383
  };
1373
- const create$w = (http, params, data) => {
1384
+ const create$r = (http, params, data) => {
1374
1385
  const expiresAt = data.expiresAt;
1375
1386
  const now = Math.floor(Date.now() / 1000);
1376
1387
  const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME;
@@ -1382,35 +1393,35 @@ const create$w = (http, params, data) => {
1382
1393
  var AssetKey = /*#__PURE__*/Object.freeze({
1383
1394
  __proto__: null,
1384
1395
  ValidationError: ValidationError,
1385
- create: create$w
1396
+ create: create$r
1386
1397
  });
1387
1398
 
1388
- const getBaseUrl$p = (params) => `/organizations/${params.organizationId}/available_licenses`;
1389
- const getMany$H = (http, params) => {
1390
- return get$19(http, getBaseUrl$p(params), {
1399
+ const getBaseUrl$l = (params) => `/organizations/${params.organizationId}/available_licenses`;
1400
+ const getMany$D = (http, params) => {
1401
+ return get$14(http, getBaseUrl$l(params), {
1391
1402
  params: params.query,
1392
1403
  });
1393
1404
  };
1394
1405
 
1395
1406
  var AvailableLicense = /*#__PURE__*/Object.freeze({
1396
1407
  __proto__: null,
1397
- getMany: getMany$H
1408
+ getMany: getMany$D
1398
1409
  });
1399
1410
 
1400
- const get$P = (http, params) => {
1401
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`);
1411
+ const get$K = (http, params) => {
1412
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`);
1402
1413
  };
1403
- const publish$8 = (http, params, payload) => {
1414
+ const publish$3 = (http, params, payload) => {
1404
1415
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`, payload);
1405
1416
  };
1406
- const unpublish$8 = (http, params, payload) => {
1417
+ const unpublish$3 = (http, params, payload) => {
1407
1418
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`, payload);
1408
1419
  };
1409
1420
  const validate$2 = (http, params, payload) => {
1410
1421
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`, payload);
1411
1422
  };
1412
1423
  const getV2 = (http, params) => {
1413
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
1424
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
1414
1425
  };
1415
1426
  const publishV2 = (http, params, payload) => {
1416
1427
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions`, payload);
@@ -1424,11 +1435,11 @@ const validateV2 = (http, params, payload) => {
1424
1435
 
1425
1436
  var BulkAction = /*#__PURE__*/Object.freeze({
1426
1437
  __proto__: null,
1427
- get: get$P,
1438
+ get: get$K,
1428
1439
  getV2: getV2,
1429
- publish: publish$8,
1440
+ publish: publish$3,
1430
1441
  publishV2: publishV2,
1431
- unpublish: unpublish$8,
1442
+ unpublish: unpublish$3,
1432
1443
  unpublishV2: unpublishV2,
1433
1444
  validate: validate$2,
1434
1445
  validateV2: validateV2
@@ -1448,11 +1459,19 @@ function getParentPlural(parentEntityType) {
1448
1459
  return 'entries';
1449
1460
  case 'Workflow':
1450
1461
  return 'workflows';
1462
+ case 'Experience':
1463
+ return 'experiences';
1464
+ case 'Fragment':
1465
+ return 'fragments';
1466
+ case 'ComponentType':
1467
+ return 'component_types';
1468
+ case 'Template':
1469
+ return 'templates';
1451
1470
  }
1452
1471
  }
1453
1472
  /**
1454
- * Comments can be added to a content type, an entry, and a workflow. Workflow comments requires a version
1455
- * to be set as part of the URL path. Workflow comments only support `create` (with
1473
+ * Comments can be added to a content type, an entry, a workflow, or ExO entities. Workflow comments requires a version
1474
+ * to be set as part of the URL path for versioned operations. Workflow comments only support `create` (with
1456
1475
  * versionized URL) and `getMany` (without version). The API might support more methods
1457
1476
  * in the future with new use cases being discovered.
1458
1477
  */
@@ -1470,14 +1489,14 @@ const getEntityBaseUrl = (paramsOrg) => {
1470
1489
  const versionPath = 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : '';
1471
1490
  return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`;
1472
1491
  };
1473
- const get$O = (http, params) => get$19(http, getEntityCommentUrl(params), {
1492
+ const get$J = (http, params) => get$14(http, getEntityCommentUrl(params), {
1474
1493
  headers: params.bodyFormat === 'rich-text'
1475
1494
  ? {
1476
1495
  [BODY_FORMAT_HEADER]: params.bodyFormat,
1477
1496
  }
1478
1497
  : {},
1479
1498
  });
1480
- const getMany$G = (http, params) => get$19(http, getEntityBaseUrl(params), {
1499
+ const getMany$C = (http, params) => get$14(http, getEntityBaseUrl(params), {
1481
1500
  params: normalizeSelect(params.query),
1482
1501
  headers: params.bodyFormat === 'rich-text'
1483
1502
  ? {
@@ -1485,7 +1504,7 @@ const getMany$G = (http, params) => get$19(http, getEntityBaseUrl(params), {
1485
1504
  }
1486
1505
  : {},
1487
1506
  });
1488
- const create$v = (http, params, rawData) => {
1507
+ const create$q = (http, params, rawData) => {
1489
1508
  const data = copy__default.default(rawData);
1490
1509
  return post$1(http, getEntityBaseUrl(params), data, {
1491
1510
  headers: {
@@ -1497,7 +1516,7 @@ const create$v = (http, params, rawData) => {
1497
1516
  },
1498
1517
  });
1499
1518
  };
1500
- const update$t = (http, params, rawData, headers) => {
1519
+ const update$s = (http, params, rawData, headers) => {
1501
1520
  const data = copy__default.default(rawData);
1502
1521
  delete data.sys;
1503
1522
  return put$1(http, getEntityCommentUrl(params), data, {
@@ -1508,8 +1527,8 @@ const update$t = (http, params, rawData, headers) => {
1508
1527
  },
1509
1528
  });
1510
1529
  };
1511
- const del$x = (http, { version, ...params }) => {
1512
- return del$M(http, getEntityCommentUrl(params), {
1530
+ const del$s = (http, { version, ...params }) => {
1531
+ return del$H(http, getEntityCommentUrl(params), {
1513
1532
  headers: { [VERSION_HEADER]: version },
1514
1533
  });
1515
1534
  };
@@ -1517,80 +1536,35 @@ const del$x = (http, { version, ...params }) => {
1517
1536
  /**
1518
1537
  * @deprecated use `getMany` instead.
1519
1538
  */
1520
- const getAll$1 = getMany$G;
1539
+ const getAll$1 = getMany$C;
1521
1540
 
1522
1541
  var Comment = /*#__PURE__*/Object.freeze({
1523
1542
  __proto__: null,
1524
- create: create$v,
1525
- del: del$x,
1526
- get: get$O,
1543
+ create: create$q,
1544
+ del: del$s,
1545
+ get: get$J,
1527
1546
  getAll: getAll$1,
1528
- getMany: getMany$G,
1529
- update: update$t
1547
+ getMany: getMany$C,
1548
+ update: update$s
1530
1549
  });
1531
1550
 
1532
- const getBaseUrl$o = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/component_types`;
1533
- const getMany$F = (http, params, headers) => {
1534
- return get$19(http, getBaseUrl$o(params), {
1551
+ const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/component_types`;
1552
+ const getMany$B = (http, params, headers) => {
1553
+ return get$14(http, getBaseUrl$k(params), {
1535
1554
  params: params.query,
1536
1555
  headers,
1537
1556
  });
1538
1557
  };
1539
- const get$N = (http, params, headers) => {
1540
- return get$19(http, getBaseUrl$o(params) + `/${params.componentTypeId}`, {
1541
- headers,
1542
- });
1543
- };
1544
- const create$u = (http, params, rawData, headers) => {
1545
- const data = copy__default.default(rawData);
1546
- return post$1(http, getBaseUrl$o(params), data, { headers });
1547
- };
1548
- const upsert$5 = (http, params, rawData, headers) => {
1549
- const { sys, ...body } = copy__default.default(rawData);
1550
- return put$1(http, getBaseUrl$o(params) + `/${params.componentTypeId}`, body, {
1551
- headers: {
1552
- ...(sys.version !== undefined && {
1553
- 'X-Contentful-Version': sys.version,
1554
- }),
1555
- ...headers,
1556
- },
1557
- });
1558
- };
1559
- const del$w = (http, params) => {
1560
- return del$M(http, getBaseUrl$o(params) + `/${params.componentTypeId}`);
1561
- };
1562
- const publish$7 = (http, params, headers) => {
1563
- return put$1(http, `${getBaseUrl$o(params)}/${params.componentTypeId}/published`, null, {
1564
- headers: {
1565
- 'X-Contentful-Version': params.version,
1566
- ...headers,
1567
- },
1568
- });
1569
- };
1570
- const unpublish$7 = (http, params, headers) => {
1571
- return del$M(http, `${getBaseUrl$o(params)}/${params.componentTypeId}/published`, {
1572
- headers: {
1573
- 'X-Contentful-Version': params.version,
1574
- ...headers,
1575
- },
1576
- });
1577
- };
1578
1558
 
1579
1559
  var ComponentType = /*#__PURE__*/Object.freeze({
1580
1560
  __proto__: null,
1581
- create: create$u,
1582
- del: del$w,
1583
- get: get$N,
1584
- getMany: getMany$F,
1585
- publish: publish$7,
1586
- unpublish: unpublish$7,
1587
- upsert: upsert$5
1561
+ getMany: getMany$B
1588
1562
  });
1589
1563
 
1590
1564
  function basePath$1(organizationId) {
1591
1565
  return `/organizations/${organizationId}/taxonomy/concepts`;
1592
1566
  }
1593
- const create$t = (http, params, data) => {
1567
+ const create$p = (http, params, data) => {
1594
1568
  return post$1(http, basePath$1(params.organizationId), data);
1595
1569
  };
1596
1570
  const createWithId$b = (http, params, data) => {
@@ -1605,7 +1579,7 @@ const patch$4 = (http, params, data, headers) => {
1605
1579
  },
1606
1580
  });
1607
1581
  };
1608
- const update$s = (http, params, data, headers) => {
1582
+ const update$r = (http, params, data, headers) => {
1609
1583
  return put$1(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, data, {
1610
1584
  headers: {
1611
1585
  'X-Contentful-Version': params.version,
@@ -1613,28 +1587,28 @@ const update$s = (http, params, data, headers) => {
1613
1587
  },
1614
1588
  });
1615
1589
  };
1616
- const get$M = (http, params) => get$19(http, `${basePath$1(params.organizationId)}/${params.conceptId}`);
1617
- const del$v = (http, params, headers) => del$M(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, {
1590
+ const get$I = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/${params.conceptId}`);
1591
+ const del$r = (http, params, headers) => del$H(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, {
1618
1592
  headers: {
1619
1593
  'X-Contentful-Version': params.version ?? 0,
1620
1594
  ...headers,
1621
1595
  },
1622
1596
  });
1623
- const getMany$E = (http, params) => {
1597
+ const getMany$A = (http, params) => {
1624
1598
  const { url, queryParams } = cursorBasedCollection('', params);
1625
- return get$19(http, url, {
1599
+ return get$14(http, url, {
1626
1600
  params: queryParams,
1627
1601
  });
1628
1602
  };
1629
1603
  const getDescendants = (http, params) => {
1630
1604
  const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/descendants`, params);
1631
- return get$19(http, url, { params: queryParams });
1605
+ return get$14(http, url, { params: queryParams });
1632
1606
  };
1633
1607
  const getAncestors = (http, params) => {
1634
1608
  const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/ancestors`, params);
1635
- return get$19(http, url, { params: queryParams });
1609
+ return get$14(http, url, { params: queryParams });
1636
1610
  };
1637
- const getTotal$1 = (http, params) => get$19(http, `${basePath$1(params.organizationId)}/total`);
1611
+ const getTotal$1 = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/total`);
1638
1612
  function cursorBasedCollection(path, params) {
1639
1613
  return params.query?.pageUrl
1640
1614
  ? { url: params.query?.pageUrl }
@@ -1646,36 +1620,36 @@ function cursorBasedCollection(path, params) {
1646
1620
 
1647
1621
  var Concept = /*#__PURE__*/Object.freeze({
1648
1622
  __proto__: null,
1649
- create: create$t,
1623
+ create: create$p,
1650
1624
  createWithId: createWithId$b,
1651
- del: del$v,
1652
- get: get$M,
1625
+ del: del$r,
1626
+ get: get$I,
1653
1627
  getAncestors: getAncestors,
1654
1628
  getDescendants: getDescendants,
1655
- getMany: getMany$E,
1629
+ getMany: getMany$A,
1656
1630
  getTotal: getTotal$1,
1657
1631
  patch: patch$4,
1658
- update: update$s
1632
+ update: update$r
1659
1633
  });
1660
1634
 
1661
1635
  function basePath(orgId) {
1662
1636
  return `/organizations/${orgId}/taxonomy/concept-schemes`;
1663
1637
  }
1664
- const get$L = (http, params) => get$19(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`);
1665
- const del$u = (http, params, headers) => del$M(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, {
1638
+ const get$H = (http, params) => get$14(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`);
1639
+ const del$q = (http, params, headers) => del$H(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, {
1666
1640
  headers: {
1667
1641
  'X-Contentful-Version': params.version,
1668
1642
  ...headers,
1669
1643
  },
1670
1644
  });
1671
- const getMany$D = (http, params) => {
1645
+ const getMany$z = (http, params) => {
1672
1646
  const url = params.query?.pageUrl ?? basePath(params.organizationId);
1673
- return get$19(http, url, {
1647
+ return get$14(http, url, {
1674
1648
  params: params.query?.pageUrl ? undefined : params.query,
1675
1649
  });
1676
1650
  };
1677
- const getTotal = (http, params) => get$19(http, `${basePath(params.organizationId)}/total`);
1678
- const create$s = (http, params, data) => {
1651
+ const getTotal = (http, params) => get$14(http, `${basePath(params.organizationId)}/total`);
1652
+ const create$o = (http, params, data) => {
1679
1653
  return post$1(http, basePath(params.organizationId), data);
1680
1654
  };
1681
1655
  const createWithId$a = (http, params, data) => {
@@ -1690,7 +1664,7 @@ const patch$3 = (http, params, data, headers) => {
1690
1664
  },
1691
1665
  });
1692
1666
  };
1693
- const update$r = (http, params, data, headers) => {
1667
+ const update$q = (http, params, data, headers) => {
1694
1668
  return put$1(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, data, {
1695
1669
  headers: {
1696
1670
  'X-Contentful-Version': params.version,
@@ -1701,39 +1675,46 @@ const update$r = (http, params, data, headers) => {
1701
1675
 
1702
1676
  var ConceptScheme = /*#__PURE__*/Object.freeze({
1703
1677
  __proto__: null,
1704
- create: create$s,
1678
+ create: create$o,
1705
1679
  createWithId: createWithId$a,
1706
- del: del$u,
1707
- get: get$L,
1708
- getMany: getMany$D,
1680
+ del: del$q,
1681
+ get: get$H,
1682
+ getMany: getMany$z,
1709
1683
  getTotal: getTotal,
1710
1684
  patch: patch$3,
1711
- update: update$r
1685
+ update: update$q
1712
1686
  });
1713
1687
 
1714
- const getBaseUrl$n = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`;
1715
- const getContentTypeUrl$1 = (params) => getBaseUrl$n(params) + `/${params.contentTypeId}`;
1716
- const get$K = (http, params, headers) => {
1717
- return get$19(http, getContentTypeUrl$1(params), {
1688
+ const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`;
1689
+ const getContentTypeUrl$1 = (params) => getBaseUrl$j(params) + `/${params.contentTypeId}`;
1690
+ const get$G = (http, params, headers) => {
1691
+ return get$14(http, getContentTypeUrl$1(params), {
1718
1692
  params: normalizeSelect(params.query),
1719
1693
  headers,
1720
1694
  });
1721
1695
  };
1722
- const getMany$C = (http, params, headers) => {
1723
- return get$19(http, getBaseUrl$n(params), {
1696
+ const getMany$y = (http, params, headers) => {
1697
+ return get$14(http, getBaseUrl$j(params), {
1724
1698
  params: params.query,
1725
1699
  headers,
1726
1700
  });
1727
1701
  };
1728
- const create$r = (http, params, rawData, headers) => {
1702
+ const getManyWithCursor$1 = (http, params, headers) => {
1703
+ return get$14(http, getBaseUrl$j(params), {
1704
+ params: { cursor: true, ...(params.query ?? {}) },
1705
+ headers,
1706
+ })
1707
+ .then(normalizeCursorPaginationResponse);
1708
+ };
1709
+ const create$n = (http, params, rawData, headers) => {
1729
1710
  const data = copy__default.default(rawData);
1730
- return post$1(http, getBaseUrl$n(params), data, { headers });
1711
+ return post$1(http, getBaseUrl$j(params), data, { headers });
1731
1712
  };
1732
1713
  const createWithId$9 = (http, params, rawData, headers) => {
1733
1714
  const data = copy__default.default(rawData);
1734
1715
  return put$1(http, getContentTypeUrl$1(params), data, { headers });
1735
1716
  };
1736
- const update$q = (http, params, rawData, headers) => {
1717
+ const update$p = (http, params, rawData, headers) => {
1737
1718
  const data = copy__default.default(rawData);
1738
1719
  delete data.sys;
1739
1720
  return put$1(http, getContentTypeUrl$1(params), data, {
@@ -1743,10 +1724,10 @@ const update$q = (http, params, rawData, headers) => {
1743
1724
  },
1744
1725
  });
1745
1726
  };
1746
- const del$t = (http, params, headers) => {
1747
- return del$M(http, getContentTypeUrl$1(params), { headers });
1727
+ const del$p = (http, params, headers) => {
1728
+ return del$H(http, getContentTypeUrl$1(params), { headers });
1748
1729
  };
1749
- const publish$6 = (http, params, rawData, headers) => {
1730
+ const publish$2 = (http, params, rawData, headers) => {
1750
1731
  return put$1(http, getContentTypeUrl$1(params) + '/published', null, {
1751
1732
  headers: {
1752
1733
  'X-Contentful-Version': rawData.sys.version,
@@ -1754,103 +1735,34 @@ const publish$6 = (http, params, rawData, headers) => {
1754
1735
  },
1755
1736
  });
1756
1737
  };
1757
- const unpublish$6 = (http, params, headers) => {
1758
- return del$M(http, getContentTypeUrl$1(params) + '/published', { headers });
1738
+ const unpublish$2 = (http, params, headers) => {
1739
+ return del$H(http, getContentTypeUrl$1(params) + '/published', { headers });
1759
1740
  };
1760
1741
 
1761
1742
  var ContentType = /*#__PURE__*/Object.freeze({
1762
1743
  __proto__: null,
1763
- create: create$r,
1744
+ create: create$n,
1764
1745
  createWithId: createWithId$9,
1765
- del: del$t,
1766
- get: get$K,
1767
- getMany: getMany$C,
1768
- publish: publish$6,
1769
- unpublish: unpublish$6,
1770
- update: update$q
1771
- });
1772
-
1773
- const getBaseUrl$m = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/data_assemblies`;
1774
- const getPublicUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/public/data_assemblies`;
1775
- const getMany$B = (http, params, headers) => {
1776
- return get$19(http, getBaseUrl$m(params), {
1777
- params: params.query,
1778
- headers,
1779
- });
1780
- };
1781
- const get$J = (http, params, headers) => {
1782
- return get$19(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`, {
1783
- headers,
1784
- });
1785
- };
1786
- const create$q = (http, params, rawData, headers) => {
1787
- const data = copy__default.default(rawData);
1788
- return post$1(http, getBaseUrl$m(params), data, { headers });
1789
- };
1790
- const update$p = (http, params, rawData, headers) => {
1791
- const data = copy__default.default(rawData);
1792
- return put$1(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`, data, {
1793
- headers: {
1794
- 'X-Contentful-Version': rawData.sys.version ?? 0,
1795
- ...headers,
1796
- },
1797
- });
1798
- };
1799
- const del$s = (http, params) => {
1800
- return del$M(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`);
1801
- };
1802
- const publish$5 = (http, params, headers) => {
1803
- return put$1(http, `${getBaseUrl$m(params)}/${params.dataAssemblyId}/published`, null, {
1804
- headers: {
1805
- 'X-Contentful-Version': params.version,
1806
- ...headers,
1807
- },
1808
- });
1809
- };
1810
- const getPublished$1 = (http, params, headers) => {
1811
- return get$19(http, getPublicUrl(params) + `/${params.dataAssemblyId}`, {
1812
- headers,
1813
- });
1814
- };
1815
- const getManyPublished = (http, params, headers) => {
1816
- return get$19(http, getPublicUrl(params), {
1817
- params: params.query,
1818
- headers,
1819
- });
1820
- };
1821
- const unpublish$5 = (http, params, headers) => {
1822
- return del$M(http, `${getBaseUrl$m(params)}/${params.dataAssemblyId}/published`, {
1823
- headers: {
1824
- 'X-Contentful-Version': params.version,
1825
- ...headers,
1826
- },
1827
- });
1828
- };
1829
-
1830
- var DataAssembly = /*#__PURE__*/Object.freeze({
1831
- __proto__: null,
1832
- create: create$q,
1833
- del: del$s,
1834
- get: get$J,
1835
- getMany: getMany$B,
1836
- getManyPublished: getManyPublished,
1837
- getPublished: getPublished$1,
1838
- publish: publish$5,
1839
- unpublish: unpublish$5,
1746
+ del: del$p,
1747
+ get: get$G,
1748
+ getMany: getMany$y,
1749
+ getManyWithCursor: getManyWithCursor$1,
1750
+ publish: publish$2,
1751
+ unpublish: unpublish$2,
1840
1752
  update: update$p
1841
1753
  });
1842
1754
 
1843
- const getBaseUrl$l = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`;
1844
- const get$I = (http, params) => {
1845
- return get$19(http, getBaseUrl$l(params));
1755
+ const getBaseUrl$i = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`;
1756
+ const get$F = (http, params) => {
1757
+ return get$14(http, getBaseUrl$i(params));
1846
1758
  };
1847
- const getMany$A = (http, params) => {
1848
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
1759
+ const getMany$x = (http, params) => {
1760
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
1849
1761
  };
1850
1762
  const update$o = (http, params, rawData, headers) => {
1851
1763
  const data = copy__default.default(rawData);
1852
1764
  delete data.sys;
1853
- return put$1(http, getBaseUrl$l(params), data, {
1765
+ return put$1(http, getBaseUrl$i(params), data, {
1854
1766
  headers: {
1855
1767
  'X-Contentful-Version': rawData.sys.version ?? 0,
1856
1768
  ...headers,
@@ -1860,31 +1772,31 @@ const update$o = (http, params, rawData, headers) => {
1860
1772
 
1861
1773
  var EditorInterface = /*#__PURE__*/Object.freeze({
1862
1774
  __proto__: null,
1863
- get: get$I,
1864
- getMany: getMany$A,
1775
+ get: get$F,
1776
+ getMany: getMany$x,
1865
1777
  update: update$o
1866
1778
  });
1867
1779
 
1868
- const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
1869
- const getMany$z = (http, params) => {
1870
- return get$19(http, getBaseUrl$k(params), {
1780
+ const getBaseUrl$h = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
1781
+ const getMany$w = (http, params) => {
1782
+ return get$14(http, getBaseUrl$h(params), {
1871
1783
  params: params.query,
1872
1784
  });
1873
1785
  };
1874
1786
 
1875
1787
  var EligibleLicense = /*#__PURE__*/Object.freeze({
1876
1788
  __proto__: null,
1877
- getMany: getMany$z
1789
+ getMany: getMany$w
1878
1790
  });
1879
1791
 
1880
- const get$H = (http, params, rawData, headers) => {
1881
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, {
1792
+ const get$E = (http, params, rawData, headers) => {
1793
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, {
1882
1794
  params: normalizeSelect(params.query),
1883
1795
  headers: { ...headers },
1884
1796
  });
1885
1797
  };
1886
- const getMany$y = (http, params, rawData, headers) => {
1887
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
1798
+ const getMany$v = (http, params, rawData, headers) => {
1799
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
1888
1800
  params: normalizeSelect(params.query),
1889
1801
  headers: { ...headers },
1890
1802
  });
@@ -1908,7 +1820,7 @@ const patch$2 = (http, params, data, headers) => {
1908
1820
  },
1909
1821
  });
1910
1822
  };
1911
- const create$p = (http, params, rawData, headers) => {
1823
+ const create$m = (http, params, rawData, headers) => {
1912
1824
  const data = copy__default.default(rawData);
1913
1825
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
1914
1826
  headers: {
@@ -1929,38 +1841,48 @@ const createWithId$8 = (http, params, rawData, headers) => {
1929
1841
 
1930
1842
  var ReleaseEntry = /*#__PURE__*/Object.freeze({
1931
1843
  __proto__: null,
1932
- create: create$p,
1844
+ create: create$m,
1933
1845
  createWithId: createWithId$8,
1934
- get: get$H,
1935
- getMany: getMany$y,
1846
+ get: get$E,
1847
+ getMany: getMany$v,
1936
1848
  patch: patch$2,
1937
1849
  update: update$n
1938
1850
  });
1939
1851
 
1940
- const get$G = (http, params, rawData, headers) => {
1852
+ const get$D = (http, params, rawData, headers) => {
1941
1853
  if (params.releaseId) {
1942
- return get$H(http, params);
1854
+ return get$E(http, params);
1943
1855
  }
1944
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
1856
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
1945
1857
  params: normalizeSelect(params.query),
1946
1858
  headers: { ...headers },
1947
1859
  });
1948
1860
  };
1949
1861
  const getPublished = (http, params, rawData, headers) => {
1950
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
1862
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
1951
1863
  params: normalizeSelect(params.query),
1952
1864
  headers: { ...headers },
1953
1865
  });
1954
1866
  };
1955
- const getMany$x = (http, params, rawData, headers) => {
1867
+ const getMany$u = (http, params, rawData, headers) => {
1956
1868
  if (params.releaseId) {
1957
- return getMany$y(http, params);
1869
+ return getMany$v(http, params);
1958
1870
  }
1959
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
1871
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
1960
1872
  params: normalizeSelect(params.query),
1961
1873
  headers: { ...headers },
1962
1874
  });
1963
1875
  };
1876
+ const getManyWithCursor = (http, params, rawData, headers) => {
1877
+ if (params.releaseId) {
1878
+ throw new Error('getManyWithCursor is not supported for release-scoped entries');
1879
+ }
1880
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
1881
+ params: { cursor: true, ...(params.query ?? {}) },
1882
+ headers: { ...headers },
1883
+ })
1884
+ .then(normalizeCursorPaginationResponse);
1885
+ };
1964
1886
  const patch$1 = (http, params, data, headers) => {
1965
1887
  if (params.releaseId) {
1966
1888
  return patch$2(http, params, data, headers ?? {});
@@ -1986,10 +1908,10 @@ const update$m = (http, params, rawData, headers) => {
1986
1908
  },
1987
1909
  });
1988
1910
  };
1989
- const del$r = (http, params) => {
1990
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
1911
+ const del$o = (http, params) => {
1912
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
1991
1913
  };
1992
- const publish$4 = (http, params, rawData) => {
1914
+ const publish$1 = (http, params, rawData) => {
1993
1915
  const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
1994
1916
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
1995
1917
  headers: {
@@ -1997,7 +1919,7 @@ const publish$4 = (http, params, rawData) => {
1997
1919
  },
1998
1920
  });
1999
1921
  };
2000
- const unpublish$4 = (http, params, rawData) => {
1922
+ const unpublish$1 = (http, params, rawData) => {
2001
1923
  if (params.locales?.length) {
2002
1924
  const payload = { remove: { fields: { '*': params.locales } } };
2003
1925
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
@@ -2007,18 +1929,18 @@ const unpublish$4 = (http, params, rawData) => {
2007
1929
  });
2008
1930
  }
2009
1931
  else {
2010
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
1932
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
2011
1933
  }
2012
1934
  };
2013
1935
  const archive$1 = (http, params) => {
2014
1936
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
2015
1937
  };
2016
1938
  const unarchive$2 = (http, params) => {
2017
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
1939
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
2018
1940
  };
2019
- const create$o = (http, params, rawData) => {
1941
+ const create$l = (http, params, rawData) => {
2020
1942
  if (params.releaseId) {
2021
- return create$p(http, params, rawData, {});
1943
+ return create$m(http, params, rawData, {});
2022
1944
  }
2023
1945
  const data = copy__default.default(rawData);
2024
1946
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
@@ -2041,31 +1963,32 @@ const createWithId$7 = (http, params, rawData) => {
2041
1963
  const references = (http, params) => {
2042
1964
  const { spaceId, environmentId, entryId, include } = params;
2043
1965
  const level = include || 2;
2044
- return get$19(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
1966
+ return get$14(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
2045
1967
  };
2046
1968
 
2047
1969
  var Entry = /*#__PURE__*/Object.freeze({
2048
1970
  __proto__: null,
2049
1971
  archive: archive$1,
2050
- create: create$o,
1972
+ create: create$l,
2051
1973
  createWithId: createWithId$7,
2052
- del: del$r,
2053
- get: get$G,
2054
- getMany: getMany$x,
1974
+ del: del$o,
1975
+ get: get$D,
1976
+ getMany: getMany$u,
1977
+ getManyWithCursor: getManyWithCursor,
2055
1978
  getPublished: getPublished,
2056
1979
  patch: patch$1,
2057
- publish: publish$4,
1980
+ publish: publish$1,
2058
1981
  references: references,
2059
1982
  unarchive: unarchive$2,
2060
- unpublish: unpublish$4,
1983
+ unpublish: unpublish$1,
2061
1984
  update: update$m
2062
1985
  });
2063
1986
 
2064
- const get$F = (http, params) => {
2065
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
1987
+ const get$C = (http, params) => {
1988
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
2066
1989
  };
2067
- const getMany$w = (http, params) => {
2068
- return get$19(http, `/spaces/${params.spaceId}/environments`, {
1990
+ const getMany$t = (http, params) => {
1991
+ return get$14(http, `/spaces/${params.spaceId}/environments`, {
2069
1992
  params: params.query,
2070
1993
  });
2071
1994
  };
@@ -2079,10 +2002,10 @@ const update$l = (http, params, rawData, headers) => {
2079
2002
  },
2080
2003
  });
2081
2004
  };
2082
- const del$q = (http, params) => {
2083
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
2005
+ const del$n = (http, params) => {
2006
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
2084
2007
  };
2085
- const create$n = (http, params, rawData, headers) => {
2008
+ const create$k = (http, params, rawData, headers) => {
2086
2009
  const data = copy__default.default(rawData);
2087
2010
  return post$1(http, `/spaces/${params.spaceId}/environments`, data, {
2088
2011
  headers,
@@ -2104,27 +2027,27 @@ const createWithId$6 = (http, params, rawData, headers) => {
2104
2027
 
2105
2028
  var Environment = /*#__PURE__*/Object.freeze({
2106
2029
  __proto__: null,
2107
- create: create$n,
2030
+ create: create$k,
2108
2031
  createWithId: createWithId$6,
2109
- del: del$q,
2110
- get: get$F,
2111
- getMany: getMany$w,
2032
+ del: del$n,
2033
+ get: get$C,
2034
+ getMany: getMany$t,
2112
2035
  update: update$l
2113
2036
  });
2114
2037
 
2115
2038
  /**
2116
2039
  * Urls
2117
2040
  */
2118
- const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environment_aliases`;
2119
- const getEnvironmentAliasUrl = (params) => getBaseUrl$j(params) + `/${params.environmentAliasId}`;
2041
+ const getBaseUrl$g = (params) => `/spaces/${params.spaceId}/environment_aliases`;
2042
+ const getEnvironmentAliasUrl = (params) => getBaseUrl$g(params) + `/${params.environmentAliasId}`;
2120
2043
  /**
2121
2044
  * Endpoints
2122
2045
  */
2123
- const get$E = (http, params) => {
2124
- return get$19(http, getEnvironmentAliasUrl(params));
2046
+ const get$B = (http, params) => {
2047
+ return get$14(http, getEnvironmentAliasUrl(params));
2125
2048
  };
2126
- const getMany$v = (http, params) => {
2127
- return get$19(http, getBaseUrl$j(params), {
2049
+ const getMany$s = (http, params) => {
2050
+ return get$14(http, getBaseUrl$g(params), {
2128
2051
  params: params.query,
2129
2052
  });
2130
2053
  };
@@ -2144,31 +2067,31 @@ const update$k = (http, params, rawData, headers) => {
2144
2067
  },
2145
2068
  });
2146
2069
  };
2147
- const del$p = (http, params) => {
2148
- return del$M(http, getEnvironmentAliasUrl(params));
2070
+ const del$m = (http, params) => {
2071
+ return del$H(http, getEnvironmentAliasUrl(params));
2149
2072
  };
2150
2073
 
2151
2074
  var EnvironmentAlias = /*#__PURE__*/Object.freeze({
2152
2075
  __proto__: null,
2153
2076
  createWithId: createWithId$5,
2154
- del: del$p,
2155
- get: get$E,
2156
- getMany: getMany$v,
2077
+ del: del$m,
2078
+ get: get$B,
2079
+ getMany: getMany$s,
2157
2080
  update: update$k
2158
2081
  });
2159
2082
 
2160
2083
  const apiPath$1 = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
2161
- const get$D = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
2162
- ? get$19(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
2084
+ const get$A = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
2085
+ ? get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
2163
2086
  params: query,
2164
2087
  headers,
2165
2088
  })
2166
- : get$19(http, apiPath$1(organizationId, environmentTemplateId), {
2089
+ : get$14(http, apiPath$1(organizationId, environmentTemplateId), {
2167
2090
  params: query,
2168
2091
  headers,
2169
2092
  });
2170
- const getMany$u = (http, { organizationId, query = {} }, headers) => get$19(http, apiPath$1(organizationId), { params: query, headers });
2171
- const create$m = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
2093
+ const getMany$r = (http, { organizationId, query = {} }, headers) => get$14(http, apiPath$1(organizationId), { params: query, headers });
2094
+ const create$j = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
2172
2095
  const update$j = (http, { organizationId, environmentTemplateId }, payload, headers) => {
2173
2096
  const data = copy__default.default(payload);
2174
2097
  delete data.sys;
@@ -2182,8 +2105,8 @@ const update$j = (http, { organizationId, environmentTemplateId }, payload, head
2182
2105
  const versionUpdate = (http, { organizationId, version, environmentTemplateId }, payload, headers) => patch$5(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), payload, {
2183
2106
  headers,
2184
2107
  });
2185
- const del$o = (http, { organizationId, environmentTemplateId }, headers) => del$M(http, apiPath$1(organizationId, environmentTemplateId), { headers });
2186
- const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$19(http, apiPath$1(organizationId, environmentTemplateId, 'versions'), {
2108
+ const del$l = (http, { organizationId, environmentTemplateId }, headers) => del$H(http, apiPath$1(organizationId, environmentTemplateId), { headers });
2109
+ const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions'), {
2187
2110
  params: query,
2188
2111
  headers,
2189
2112
  });
@@ -2191,15 +2114,15 @@ const validate$1 = (http, { spaceId, environmentId, environmentTemplateId, versi
2191
2114
  ? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated`
2192
2115
  : `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`, payload, { headers });
2193
2116
  const install = (http, { spaceId, environmentId, environmentTemplateId }, payload, headers) => post$1(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions`, payload, { headers });
2194
- const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$M(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
2117
+ const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$H(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
2195
2118
 
2196
2119
  var EnvironmentTemplate = /*#__PURE__*/Object.freeze({
2197
2120
  __proto__: null,
2198
- create: create$m,
2199
- del: del$o,
2121
+ create: create$j,
2122
+ del: del$l,
2200
2123
  disconnect: disconnect,
2201
- get: get$D,
2202
- getMany: getMany$u,
2124
+ get: get$A,
2125
+ getMany: getMany$r,
2203
2126
  install: install,
2204
2127
  update: update$j,
2205
2128
  validate: validate$1,
@@ -2208,7 +2131,7 @@ var EnvironmentTemplate = /*#__PURE__*/Object.freeze({
2208
2131
  });
2209
2132
 
2210
2133
  const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
2211
- const getMany$t = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$19(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
2134
+ const getMany$q = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$14(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
2212
2135
  params: {
2213
2136
  ...otherProps,
2214
2137
  ...(environmentId && { 'environment.sys.id': environmentId }),
@@ -2216,7 +2139,7 @@ const getMany$t = (http, { organizationId, environmentTemplateId, spaceId, envir
2216
2139
  },
2217
2140
  headers,
2218
2141
  });
2219
- const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$19(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
2142
+ const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$14(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
2220
2143
  params: {
2221
2144
  ...(installationId && { 'sys.id': installationId }),
2222
2145
  ...paginationProps,
@@ -2227,23 +2150,23 @@ const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplate
2227
2150
  var EnvironmentTemplateInstallation = /*#__PURE__*/Object.freeze({
2228
2151
  __proto__: null,
2229
2152
  getForEnvironment: getForEnvironment$1,
2230
- getMany: getMany$t
2153
+ getMany: getMany$q
2231
2154
  });
2232
2155
 
2233
- const getBaseUrl$i = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`;
2234
- const getExtensionUrl = (params) => getBaseUrl$i(params) + `/${params.extensionId}`;
2235
- const get$C = (http, params) => {
2236
- return get$19(http, getExtensionUrl(params), {
2156
+ const getBaseUrl$f = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`;
2157
+ const getExtensionUrl = (params) => getBaseUrl$f(params) + `/${params.extensionId}`;
2158
+ const get$z = (http, params) => {
2159
+ return get$14(http, getExtensionUrl(params), {
2237
2160
  params: normalizeSelect(params.query),
2238
2161
  });
2239
2162
  };
2240
- const getMany$s = (http, params) => {
2241
- return get$19(http, getBaseUrl$i(params), {
2163
+ const getMany$p = (http, params) => {
2164
+ return get$14(http, getBaseUrl$f(params), {
2242
2165
  params: normalizeSelect(params.query),
2243
2166
  });
2244
2167
  };
2245
- const create$l = (http, params, rawData, headers) => {
2246
- return post$1(http, getBaseUrl$i(params), rawData, { headers });
2168
+ const create$i = (http, params, rawData, headers) => {
2169
+ return post$1(http, getBaseUrl$f(params), rawData, { headers });
2247
2170
  };
2248
2171
  const createWithId$4 = (http, params, rawData, headers) => {
2249
2172
  const data = copy__default.default(rawData);
@@ -2259,99 +2182,43 @@ const update$i = async (http, params, rawData, headers) => {
2259
2182
  },
2260
2183
  });
2261
2184
  };
2262
- const del$n = (http, params) => {
2263
- return del$M(http, getExtensionUrl(params));
2185
+ const del$k = (http, params) => {
2186
+ return del$H(http, getExtensionUrl(params));
2264
2187
  };
2265
2188
 
2266
2189
  var Extension = /*#__PURE__*/Object.freeze({
2267
2190
  __proto__: null,
2268
- create: create$l,
2191
+ create: create$i,
2269
2192
  createWithId: createWithId$4,
2270
- del: del$n,
2271
- get: get$C,
2193
+ del: del$k,
2194
+ get: get$z,
2272
2195
  getExtensionUrl: getExtensionUrl,
2273
- getMany: getMany$s,
2196
+ getMany: getMany$p,
2274
2197
  update: update$i
2275
2198
  });
2276
2199
 
2277
- const getBaseUrl$h = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/fragments`;
2278
- const getMany$r = (http, params, headers) => {
2279
- return get$19(http, getBaseUrl$h(params), {
2280
- params: params.query,
2281
- headers,
2282
- });
2283
- };
2284
- const get$B = (http, params, headers) => {
2285
- return get$19(http, getBaseUrl$h(params) + `/${params.fragmentId}`, { headers });
2286
- };
2287
- const create$k = (http, params, rawData, headers) => {
2288
- const data = copy__default.default(rawData);
2289
- return post$1(http, getBaseUrl$h(params), data, { headers });
2290
- };
2291
- const upsert$4 = (http, params, rawData, headers) => {
2292
- const { sys, ...body } = copy__default.default(rawData);
2293
- return put$1(http, getBaseUrl$h(params) + `/${params.fragmentId}`, body, {
2294
- headers: {
2295
- ...(sys?.version !== undefined && {
2296
- 'X-Contentful-Version': sys.version,
2297
- }),
2298
- ...headers,
2299
- },
2300
- });
2301
- };
2302
- const del$m = (http, params) => {
2303
- return del$M(http, getBaseUrl$h(params) + `/${params.fragmentId}`);
2304
- };
2305
- const publish$3 = (http, params, headers) => {
2306
- return put$1(http, getBaseUrl$h(params) + `/${params.fragmentId}/published`, null, {
2307
- headers: {
2308
- 'X-Contentful-Version': params.version,
2309
- ...headers,
2310
- },
2311
- });
2312
- };
2313
- const unpublish$3 = (http, params, headers) => {
2314
- return del$M(http, getBaseUrl$h(params) + `/${params.fragmentId}/published`, {
2315
- headers: {
2316
- 'X-Contentful-Version': params.version,
2317
- ...headers,
2318
- },
2319
- });
2320
- };
2321
-
2322
- var Fragment = /*#__PURE__*/Object.freeze({
2323
- __proto__: null,
2324
- create: create$k,
2325
- del: del$m,
2326
- get: get$B,
2327
- getMany: getMany$r,
2328
- publish: publish$3,
2329
- unpublish: unpublish$3,
2330
- upsert: upsert$4
2331
- });
2332
-
2333
2200
  // Base URL
2334
2201
  const getManyUrl = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/functions`;
2335
2202
  const getFunctionUrl = (params) => `${getManyUrl(params)}/${params.functionId}`;
2336
2203
  const getFunctionsEnvURL = (params) => {
2337
2204
  return `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions`;
2338
2205
  };
2339
- const get$A = (http, params) => {
2340
- return get$19(http, getFunctionUrl(params));
2206
+ const get$y = (http, params) => {
2207
+ return get$14(http, getFunctionUrl(params));
2341
2208
  };
2342
- const getMany$q = (http, params) => {
2343
- return get$19(http, getManyUrl(params), { params: params.query });
2209
+ const getMany$o = (http, params) => {
2210
+ return get$14(http, getManyUrl(params), { params: params.query });
2344
2211
  };
2345
2212
  const getManyForEnvironment$1 = (http, params) => {
2346
- return get$19(http, getFunctionsEnvURL(params), {
2213
+ return get$14(http, getFunctionsEnvURL(params), {
2347
2214
  params: params.query,
2348
2215
  });
2349
2216
  };
2350
2217
 
2351
2218
  var Function = /*#__PURE__*/Object.freeze({
2352
2219
  __proto__: null,
2353
- get: get$A,
2354
- getMany: getMany$q,
2220
+ get: get$y,
2221
+ getMany: getMany$o,
2355
2222
  getManyForEnvironment: getManyForEnvironment$1
2356
2223
  });
2357
2224
 
@@ -2360,15 +2227,15 @@ const FunctionLogAlphaHeaders = {
2360
2227
  };
2361
2228
  const baseURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
2362
2229
  const getURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
2363
- const get$z = (http, params) => {
2364
- return get$19(http, getURL(params), {
2230
+ const get$x = (http, params) => {
2231
+ return get$14(http, getURL(params), {
2365
2232
  headers: {
2366
2233
  ...FunctionLogAlphaHeaders,
2367
2234
  },
2368
2235
  });
2369
2236
  };
2370
- const getMany$p = (http, params) => {
2371
- return get$19(http, baseURL(params), {
2237
+ const getMany$n = (http, params) => {
2238
+ return get$14(http, baseURL(params), {
2372
2239
  params: params.query,
2373
2240
  headers: {
2374
2241
  ...FunctionLogAlphaHeaders,
@@ -2378,12 +2245,12 @@ const getMany$p = (http, params) => {
2378
2245
 
2379
2246
  var FunctionLog = /*#__PURE__*/Object.freeze({
2380
2247
  __proto__: null,
2381
- get: get$z,
2382
- getMany: getMany$p
2248
+ get: get$x,
2249
+ getMany: getMany$n
2383
2250
  });
2384
2251
 
2385
- const get$y = (http, { url, config }) => {
2386
- return get$19(http, url, config);
2252
+ const get$w = (http, { url, config }) => {
2253
+ return get$14(http, url, config);
2387
2254
  };
2388
2255
  const post = (http, { url, config }, payload) => {
2389
2256
  return post$1(http, url, payload, config);
@@ -2394,8 +2261,8 @@ const put = (http, { url, config }, payload) => {
2394
2261
  const patch = (http, { url, config }, payload) => {
2395
2262
  return patch$5(http, url, payload, config);
2396
2263
  };
2397
- const del$l = (http, { url, config }) => {
2398
- return del$M(http, url, config);
2264
+ const del$j = (http, { url, config }) => {
2265
+ return del$H(http, url, config);
2399
2266
  };
2400
2267
  const request = (http$1, { url, config }) => {
2401
2268
  return http(http$1, url, config);
@@ -2403,23 +2270,23 @@ const request = (http$1, { url, config }) => {
2403
2270
 
2404
2271
  var Http = /*#__PURE__*/Object.freeze({
2405
2272
  __proto__: null,
2406
- del: del$l,
2407
- get: get$y,
2273
+ del: del$j,
2274
+ get: get$w,
2408
2275
  patch: patch,
2409
2276
  post: post,
2410
2277
  put: put,
2411
2278
  request: request
2412
2279
  });
2413
2280
 
2414
- const get$x = (http, params) => {
2415
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
2281
+ const get$v = (http, params) => {
2282
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
2416
2283
  };
2417
- const getMany$o = (http, params) => {
2418
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
2284
+ const getMany$m = (http, params) => {
2285
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
2419
2286
  params: normalizeSelect(params.query),
2420
2287
  });
2421
2288
  };
2422
- const create$j = (http, params, data, headers) => {
2289
+ const create$h = (http, params, data, headers) => {
2423
2290
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, data, {
2424
2291
  headers,
2425
2292
  });
@@ -2435,26 +2302,26 @@ const update$h = (http, params, rawData, headers) => {
2435
2302
  },
2436
2303
  });
2437
2304
  };
2438
- const del$k = (http, params) => {
2439
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
2305
+ const del$i = (http, params) => {
2306
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
2440
2307
  };
2441
2308
 
2442
2309
  var Locale = /*#__PURE__*/Object.freeze({
2443
2310
  __proto__: null,
2444
- create: create$j,
2445
- del: del$k,
2446
- get: get$x,
2447
- getMany: getMany$o,
2311
+ create: create$h,
2312
+ del: del$i,
2313
+ get: get$v,
2314
+ getMany: getMany$m,
2448
2315
  update: update$h
2449
2316
  });
2450
2317
 
2451
- const getMany$n = (http, params) => {
2452
- return get$19(http, `/organizations`, {
2318
+ const getMany$l = (http, params) => {
2319
+ return get$14(http, `/organizations`, {
2453
2320
  params: params?.query,
2454
2321
  });
2455
2322
  };
2456
- const get$w = (http, params) => {
2457
- return getMany$n(http, { query: { limit: 100 } }).then((data) => {
2323
+ const get$u = (http, params) => {
2324
+ return getMany$l(http, { query: { limit: 100 } }).then((data) => {
2458
2325
  const org = data.items.find((org) => org.sys.id === params.organizationId);
2459
2326
  if (!org) {
2460
2327
  const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`);
@@ -2472,8 +2339,8 @@ const get$w = (http, params) => {
2472
2339
 
2473
2340
  var Organization = /*#__PURE__*/Object.freeze({
2474
2341
  __proto__: null,
2475
- get: get$w,
2476
- getMany: getMany$n
2342
+ get: get$u,
2343
+ getMany: getMany$l
2477
2344
  });
2478
2345
 
2479
2346
  const OrganizationUserManagementAlphaHeaders = {
@@ -2482,7 +2349,7 @@ const OrganizationUserManagementAlphaHeaders = {
2482
2349
  const InvitationAlphaHeaders = {
2483
2350
  'x-contentful-enable-alpha-feature': 'pending-org-membership',
2484
2351
  };
2485
- const create$i = (http, params, data, headers) => {
2352
+ const create$g = (http, params, data, headers) => {
2486
2353
  return post$1(http, `/organizations/${params.organizationId}/invitations`, data, {
2487
2354
  headers: {
2488
2355
  ...InvitationAlphaHeaders,
@@ -2490,8 +2357,8 @@ const create$i = (http, params, data, headers) => {
2490
2357
  },
2491
2358
  });
2492
2359
  };
2493
- const get$v = (http, params, headers) => {
2494
- return get$19(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
2360
+ const get$t = (http, params, headers) => {
2361
+ return get$14(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
2495
2362
  headers: {
2496
2363
  ...OrganizationUserManagementAlphaHeaders,
2497
2364
  ...headers,
@@ -2501,17 +2368,17 @@ const get$v = (http, params, headers) => {
2501
2368
 
2502
2369
  var OrganizationInvitation = /*#__PURE__*/Object.freeze({
2503
2370
  __proto__: null,
2504
- create: create$i,
2505
- get: get$v
2371
+ create: create$g,
2372
+ get: get$t
2506
2373
  });
2507
2374
 
2508
- const getBaseUrl$g = (params) => `/organizations/${params.organizationId}/organization_memberships`;
2509
- const getEntityUrl$5 = (params) => `${getBaseUrl$g(params)}/${params.organizationMembershipId}`;
2510
- const get$u = (http, params) => {
2511
- return get$19(http, getEntityUrl$5(params));
2375
+ const getBaseUrl$e = (params) => `/organizations/${params.organizationId}/organization_memberships`;
2376
+ const getEntityUrl$5 = (params) => `${getBaseUrl$e(params)}/${params.organizationMembershipId}`;
2377
+ const get$s = (http, params) => {
2378
+ return get$14(http, getEntityUrl$5(params));
2512
2379
  };
2513
- const getMany$m = (http, params) => {
2514
- return get$19(http, getBaseUrl$g(params), {
2380
+ const getMany$k = (http, params) => {
2381
+ return get$14(http, getBaseUrl$e(params), {
2515
2382
  params: params.query,
2516
2383
  });
2517
2384
  };
@@ -2526,15 +2393,15 @@ const update$g = (http, params, rawData, headers) => {
2526
2393
  },
2527
2394
  });
2528
2395
  };
2529
- const del$j = (http, params) => {
2530
- return del$M(http, getEntityUrl$5(params));
2396
+ const del$h = (http, params) => {
2397
+ return del$H(http, getEntityUrl$5(params));
2531
2398
  };
2532
2399
 
2533
2400
  var OrganizationMembership = /*#__PURE__*/Object.freeze({
2534
2401
  __proto__: null,
2535
- del: del$j,
2536
- get: get$u,
2537
- getMany: getMany$m,
2402
+ del: del$h,
2403
+ get: get$s,
2404
+ getMany: getMany$k,
2538
2405
  update: update$g
2539
2406
  });
2540
2407
 
@@ -2560,8 +2427,8 @@ var OrganizationMembership = /*#__PURE__*/Object.freeze({
2560
2427
  * .catch(console.error)
2561
2428
  * ```
2562
2429
  */
2563
- const get$t = (http, params) => {
2564
- return get$19(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
2430
+ const get$r = (http, params) => {
2431
+ return get$14(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
2565
2432
  };
2566
2433
  /**
2567
2434
  * Retrieves a list of OAuth applications associated with the current user.
@@ -2586,7 +2453,7 @@ const get$t = (http, params) => {
2586
2453
  * ```
2587
2454
  */
2588
2455
  const getManyForUser = (http, params) => {
2589
- return get$19(http, `/users/${params.userId}/oauth_applications`, {
2456
+ return get$14(http, `/users/${params.userId}/oauth_applications`, {
2590
2457
  params: params.query,
2591
2458
  });
2592
2459
  };
@@ -2615,7 +2482,7 @@ const getManyForUser = (http, params) => {
2615
2482
  * .catch(console.error)
2616
2483
  * ```
2617
2484
  */
2618
- const create$h = (http, params, rawData, headers) => {
2485
+ const create$f = (http, params, rawData, headers) => {
2619
2486
  return post$1(http, `/users/${params.userId}/oauth_applications`, rawData, {
2620
2487
  headers,
2621
2488
  });
@@ -2672,15 +2539,15 @@ const update$f = (http, params, rawData, headers) => {
2672
2539
  * .catch(console.error)
2673
2540
  * ```
2674
2541
  */
2675
- const del$i = (http, params) => {
2676
- return del$M(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
2542
+ const del$g = (http, params) => {
2543
+ return del$H(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
2677
2544
  };
2678
2545
 
2679
2546
  var OAuthApplication = /*#__PURE__*/Object.freeze({
2680
2547
  __proto__: null,
2681
- create: create$h,
2682
- del: del$i,
2683
- get: get$t,
2548
+ create: create$f,
2549
+ del: del$g,
2550
+ get: get$r,
2684
2551
  getManyForUser: getManyForUser,
2685
2552
  update: update$f
2686
2553
  });
@@ -2688,21 +2555,21 @@ var OAuthApplication = /*#__PURE__*/Object.freeze({
2688
2555
  /**
2689
2556
  * @deprecated use `access-token.get` instead `personal-access-token.get`
2690
2557
  */
2691
- const get$s = (http, params) => {
2692
- return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
2558
+ const get$q = (http, params) => {
2559
+ return get$14(http, `/users/me/access_tokens/${params.tokenId}`);
2693
2560
  };
2694
2561
  /**
2695
2562
  * @deprecated use `access-token.getMany` instead `personal-access-token.getMany`
2696
2563
  */
2697
- const getMany$l = (http, params) => {
2698
- return get$19(http, '/users/me/access_tokens', {
2564
+ const getMany$j = (http, params) => {
2565
+ return get$14(http, '/users/me/access_tokens', {
2699
2566
  params: params.query,
2700
2567
  });
2701
2568
  };
2702
2569
  /**
2703
2570
  * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`
2704
2571
  */
2705
- const create$g = (http, _params, rawData, headers) => {
2572
+ const create$e = (http, _params, rawData, headers) => {
2706
2573
  return post$1(http, '/users/me/access_tokens', rawData, {
2707
2574
  headers,
2708
2575
  });
@@ -2716,29 +2583,29 @@ const revoke = (http, params) => {
2716
2583
 
2717
2584
  var PersonalAccessToken = /*#__PURE__*/Object.freeze({
2718
2585
  __proto__: null,
2719
- create: create$g,
2720
- get: get$s,
2721
- getMany: getMany$l,
2586
+ create: create$e,
2587
+ get: get$q,
2588
+ getMany: getMany$j,
2722
2589
  revoke: revoke
2723
2590
  });
2724
2591
 
2725
- const get$r = (http, params) => {
2726
- return get$19(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
2592
+ const get$p = (http, params) => {
2593
+ return get$14(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
2727
2594
  };
2728
- const getMany$k = (http, params) => {
2729
- return get$19(http, `/spaces/${params.spaceId}/preview_api_keys`, {
2595
+ const getMany$i = (http, params) => {
2596
+ return get$14(http, `/spaces/${params.spaceId}/preview_api_keys`, {
2730
2597
  params: params.query,
2731
2598
  });
2732
2599
  };
2733
2600
 
2734
2601
  var PreviewApiKey = /*#__PURE__*/Object.freeze({
2735
2602
  __proto__: null,
2736
- get: get$r,
2737
- getMany: getMany$k
2603
+ get: get$p,
2604
+ getMany: getMany$i
2738
2605
  });
2739
2606
 
2740
- const get$q = (http, params) => {
2741
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
2607
+ const get$o = (http, params) => {
2608
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
2742
2609
  };
2743
2610
  const query = (http, params) => {
2744
2611
  // Set the schema version in the query if provided in params or query options
@@ -2746,11 +2613,11 @@ const query = (http, params) => {
2746
2613
  if (releaseSchemaVersion !== undefined) {
2747
2614
  params.query = { ...params.query, 'sys.schemaVersion': releaseSchemaVersion };
2748
2615
  }
2749
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
2616
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
2750
2617
  params: params.query,
2751
2618
  });
2752
2619
  };
2753
- const create$f = (http, params, payload) => {
2620
+ const create$d = (http, params, payload) => {
2754
2621
  const releaseSchemaVersion = payload.sys?.schemaVersion ?? params.releaseSchemaVersion;
2755
2622
  if (releaseSchemaVersion === 'Release.v2') {
2756
2623
  payload.sys = { ...payload.sys, type: 'Release', schemaVersion: 'Release.v2' };
@@ -2769,10 +2636,10 @@ const update$e = (http, params, payload, headers) => {
2769
2636
  },
2770
2637
  });
2771
2638
  };
2772
- const del$h = (http, params) => {
2773
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
2639
+ const del$f = (http, params) => {
2640
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
2774
2641
  };
2775
- const publish$2 = (http, params, headers) => {
2642
+ const publish = (http, params, headers) => {
2776
2643
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, {
2777
2644
  headers: {
2778
2645
  'X-Contentful-Version': params.version,
@@ -2780,8 +2647,8 @@ const publish$2 = (http, params, headers) => {
2780
2647
  },
2781
2648
  });
2782
2649
  };
2783
- const unpublish$2 = (http, params, headers) => {
2784
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
2650
+ const unpublish = (http, params, headers) => {
2651
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
2785
2652
  headers: {
2786
2653
  'X-Contentful-Version': params.version,
2787
2654
  ...headers,
@@ -2799,7 +2666,7 @@ const archive = (http, params) => {
2799
2666
  });
2800
2667
  };
2801
2668
  const unarchive$1 = (http, params) => {
2802
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
2669
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
2803
2670
  headers: {
2804
2671
  'X-Contentful-Version': params.version,
2805
2672
  },
@@ -2809,27 +2676,27 @@ const unarchive$1 = (http, params) => {
2809
2676
  var Release = /*#__PURE__*/Object.freeze({
2810
2677
  __proto__: null,
2811
2678
  archive: archive,
2812
- create: create$f,
2813
- del: del$h,
2814
- get: get$q,
2815
- publish: publish$2,
2679
+ create: create$d,
2680
+ del: del$f,
2681
+ get: get$o,
2682
+ publish: publish,
2816
2683
  query: query,
2817
2684
  unarchive: unarchive$1,
2818
- unpublish: unpublish$2,
2685
+ unpublish: unpublish,
2819
2686
  update: update$e,
2820
2687
  validate: validate
2821
2688
  });
2822
2689
 
2823
- const get$p = (http, params) => {
2824
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
2690
+ const get$n = (http, params) => {
2691
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
2825
2692
  };
2826
- const getMany$j = (http, params) => {
2827
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
2693
+ const getMany$h = (http, params) => {
2694
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
2828
2695
  params: params.query,
2829
2696
  });
2830
2697
  };
2831
2698
  const queryForRelease = (http, params) => {
2832
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
2699
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
2833
2700
  params: {
2834
2701
  'sys.release.sys.id[in]': params.releaseId,
2835
2702
  ...params.query,
@@ -2839,82 +2706,82 @@ const queryForRelease = (http, params) => {
2839
2706
 
2840
2707
  var ReleaseAction = /*#__PURE__*/Object.freeze({
2841
2708
  __proto__: null,
2842
- get: get$p,
2843
- getMany: getMany$j,
2709
+ get: get$n,
2710
+ getMany: getMany$h,
2844
2711
  queryForRelease: queryForRelease
2845
2712
  });
2846
2713
 
2847
- const getBaseUrl$f = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
2848
- const getMany$i = (http, params) => get$19(http, getBaseUrl$f(params), {
2714
+ const getBaseUrl$d = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
2715
+ const getMany$g = (http, params) => get$14(http, getBaseUrl$d(params), {
2849
2716
  params: params.query,
2850
2717
  });
2851
2718
 
2852
2719
  var Resource = /*#__PURE__*/Object.freeze({
2853
2720
  __proto__: null,
2854
- getMany: getMany$i
2721
+ getMany: getMany$g
2855
2722
  });
2856
2723
 
2857
- const getBaseUrl$e = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
2858
- const get$o = (http, params) => {
2859
- return get$19(http, getBaseUrl$e(params));
2724
+ const getBaseUrl$c = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
2725
+ const get$m = (http, params) => {
2726
+ return get$14(http, getBaseUrl$c(params));
2860
2727
  };
2861
- const upsert$3 = (http, params, rawData, headers) => {
2862
- return put$1(http, getBaseUrl$e(params), rawData, { headers });
2728
+ const upsert$1 = (http, params, rawData, headers) => {
2729
+ return put$1(http, getBaseUrl$c(params), rawData, { headers });
2863
2730
  };
2864
- const del$g = (http, params) => {
2865
- return del$M(http, getBaseUrl$e(params));
2731
+ const del$e = (http, params) => {
2732
+ return del$H(http, getBaseUrl$c(params));
2866
2733
  };
2867
2734
 
2868
2735
  var ResourceProvider = /*#__PURE__*/Object.freeze({
2869
2736
  __proto__: null,
2870
- del: del$g,
2871
- get: get$o,
2872
- upsert: upsert$3
2737
+ del: del$e,
2738
+ get: get$m,
2739
+ upsert: upsert$1
2873
2740
  });
2874
2741
 
2875
- const getBaseUrl$d = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
2876
- const getEntityUrl$4 = (params) => `${getBaseUrl$d(params)}/${params.resourceTypeId}`;
2742
+ const getBaseUrl$b = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
2743
+ const getEntityUrl$4 = (params) => `${getBaseUrl$b(params)}/${params.resourceTypeId}`;
2877
2744
  const getSpaceEnvUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types`;
2878
- const get$n = (http, params) => {
2879
- return get$19(http, getEntityUrl$4(params));
2745
+ const get$l = (http, params) => {
2746
+ return get$14(http, getEntityUrl$4(params));
2880
2747
  };
2881
- const upsert$2 = (http, params, rawData, headers) => {
2748
+ const upsert = (http, params, rawData, headers) => {
2882
2749
  const data = copy__default.default(rawData);
2883
2750
  return put$1(http, getEntityUrl$4(params), data, { headers });
2884
2751
  };
2885
- const del$f = (http, params) => {
2886
- return del$M(http, getEntityUrl$4(params));
2752
+ const del$d = (http, params) => {
2753
+ return del$H(http, getEntityUrl$4(params));
2887
2754
  };
2888
- const getMany$h = (http, params) => {
2889
- return get$19(http, getBaseUrl$d(params));
2755
+ const getMany$f = (http, params) => {
2756
+ return get$14(http, getBaseUrl$b(params));
2890
2757
  };
2891
2758
  const getForEnvironment = (http, params) => {
2892
- return get$19(http, getSpaceEnvUrl(params));
2759
+ return get$14(http, getSpaceEnvUrl(params));
2893
2760
  };
2894
2761
 
2895
2762
  var ResourceType = /*#__PURE__*/Object.freeze({
2896
2763
  __proto__: null,
2897
- del: del$f,
2898
- get: get$n,
2764
+ del: del$d,
2765
+ get: get$l,
2899
2766
  getForEnvironment: getForEnvironment,
2900
- getMany: getMany$h,
2901
- upsert: upsert$2
2767
+ getMany: getMany$f,
2768
+ upsert: upsert
2902
2769
  });
2903
2770
 
2904
- const get$m = (http, params) => {
2905
- return get$19(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
2771
+ const get$k = (http, params) => {
2772
+ return get$14(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
2906
2773
  };
2907
- const getMany$g = (http, params) => {
2908
- return get$19(http, `/spaces/${params.spaceId}/roles`, {
2774
+ const getMany$e = (http, params) => {
2775
+ return get$14(http, `/spaces/${params.spaceId}/roles`, {
2909
2776
  params: normalizeSelect(params.query),
2910
2777
  });
2911
2778
  };
2912
2779
  const getManyForOrganization$6 = (http, params) => {
2913
- return get$19(http, `/organizations/${params.organizationId}/roles`, {
2780
+ return get$14(http, `/organizations/${params.organizationId}/roles`, {
2914
2781
  params: normalizeSelect(params.query),
2915
2782
  });
2916
2783
  };
2917
- const create$e = (http, params, data, headers) => {
2784
+ const create$c = (http, params, data, headers) => {
2918
2785
  return post$1(http, `/spaces/${params.spaceId}/roles`, data, {
2919
2786
  headers,
2920
2787
  });
@@ -2934,38 +2801,38 @@ const update$d = (http, params, rawData, headers) => {
2934
2801
  },
2935
2802
  });
2936
2803
  };
2937
- const del$e = (http, params) => {
2938
- return del$M(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
2804
+ const del$c = (http, params) => {
2805
+ return del$H(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
2939
2806
  };
2940
2807
 
2941
2808
  var Role = /*#__PURE__*/Object.freeze({
2942
2809
  __proto__: null,
2943
- create: create$e,
2810
+ create: create$c,
2944
2811
  createWithId: createWithId$3,
2945
- del: del$e,
2946
- get: get$m,
2947
- getMany: getMany$g,
2812
+ del: del$c,
2813
+ get: get$k,
2814
+ getMany: getMany$e,
2948
2815
  getManyForOrganization: getManyForOrganization$6,
2949
2816
  update: update$d
2950
2817
  });
2951
2818
 
2952
- const get$l = (http, params) => {
2953
- return get$19(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
2819
+ const get$j = (http, params) => {
2820
+ return get$14(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
2954
2821
  params: {
2955
2822
  'environment.sys.id': params.environmentId,
2956
2823
  },
2957
2824
  });
2958
2825
  };
2959
- const getMany$f = (http, params) => {
2960
- return get$19(http, `/spaces/${params.spaceId}/scheduled_actions`, {
2826
+ const getMany$d = (http, params) => {
2827
+ return get$14(http, `/spaces/${params.spaceId}/scheduled_actions`, {
2961
2828
  params: normalizeSelect(params.query),
2962
2829
  });
2963
2830
  };
2964
- const create$d = (http, params, data) => {
2831
+ const create$b = (http, params, data) => {
2965
2832
  return post$1(http, `/spaces/${params.spaceId}/scheduled_actions`, data);
2966
2833
  };
2967
- const del$d = (http, params) => {
2968
- return del$M(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
2834
+ const del$b = (http, params) => {
2835
+ return del$H(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
2969
2836
  params: {
2970
2837
  'environment.sys.id': params.environmentId,
2971
2838
  },
@@ -2984,102 +2851,102 @@ const update$c = (http, params, data) => {
2984
2851
 
2985
2852
  var ScheduledAction = /*#__PURE__*/Object.freeze({
2986
2853
  __proto__: null,
2987
- create: create$d,
2988
- del: del$d,
2989
- get: get$l,
2990
- getMany: getMany$f,
2854
+ create: create$b,
2855
+ del: del$b,
2856
+ get: get$j,
2857
+ getMany: getMany$d,
2991
2858
  update: update$c
2992
2859
  });
2993
2860
 
2994
- const get$k = (http, params) => {
2995
- return get$19(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
2861
+ const get$i = (http, params) => {
2862
+ return get$14(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
2996
2863
  };
2997
- const getMany$e = (http, params) => {
2998
- return get$19(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
2864
+ const getMany$c = (http, params) => {
2865
+ return get$14(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
2999
2866
  };
3000
2867
  const getManyForEnvironment = (http, params) => {
3001
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
2868
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
3002
2869
  };
3003
- const create$c = (http, params, data) => {
2870
+ const create$a = (http, params, data) => {
3004
2871
  return post$1(http, `/organizations/${params.organizationId}/semantic/search-index`, data);
3005
2872
  };
3006
- const del$c = (http, params) => {
3007
- return del$M(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
2873
+ const del$a = (http, params) => {
2874
+ return del$H(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
3008
2875
  };
3009
2876
 
3010
2877
  var ContentSemanticsIndex = /*#__PURE__*/Object.freeze({
3011
2878
  __proto__: null,
3012
- create: create$c,
3013
- del: del$c,
3014
- get: get$k,
3015
- getMany: getMany$e,
2879
+ create: create$a,
2880
+ del: del$a,
2881
+ get: get$i,
2882
+ getMany: getMany$c,
3016
2883
  getManyForEnvironment: getManyForEnvironment
3017
2884
  });
3018
2885
 
3019
- const get$j = (http, params, data, headers) => {
2886
+ const get$h = (http, params, data, headers) => {
3020
2887
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/duplicates`, data, { headers });
3021
2888
  };
3022
2889
 
3023
2890
  var SemanticDuplicates = /*#__PURE__*/Object.freeze({
3024
2891
  __proto__: null,
3025
- get: get$j
2892
+ get: get$h
3026
2893
  });
3027
2894
 
3028
- const get$i = (http, params, data, headers) => {
2895
+ const get$g = (http, params, data, headers) => {
3029
2896
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/recommendations`, data, { headers });
3030
2897
  };
3031
2898
 
3032
2899
  var SemanticRecommendations = /*#__PURE__*/Object.freeze({
3033
2900
  __proto__: null,
3034
- get: get$i
2901
+ get: get$g
3035
2902
  });
3036
2903
 
3037
- const get$h = (http, params, data, headers) => {
2904
+ const get$f = (http, params, data, headers) => {
3038
2905
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/reference-suggestions`, data, { headers });
3039
2906
  };
3040
2907
 
3041
2908
  var SemanticReferenceSuggestions = /*#__PURE__*/Object.freeze({
3042
2909
  __proto__: null,
3043
- get: get$h
2910
+ get: get$f
3044
2911
  });
3045
2912
 
3046
- const get$g = (http, params, data, headers) => {
2913
+ const get$e = (http, params, data, headers) => {
3047
2914
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search`, data, { headers });
3048
2915
  };
3049
2916
 
3050
2917
  var SemanticSearch = /*#__PURE__*/Object.freeze({
3051
2918
  __proto__: null,
3052
- get: get$g
2919
+ get: get$e
3053
2920
  });
3054
2921
 
3055
- const get$f = (http, params) => {
3056
- return get$19(http, `/organizations/${params.organizationId}/semantic/settings`);
2922
+ const get$d = (http, params) => {
2923
+ return get$14(http, `/organizations/${params.organizationId}/semantic/settings`);
3057
2924
  };
3058
2925
 
3059
2926
  var SemanticSettings = /*#__PURE__*/Object.freeze({
3060
2927
  __proto__: null,
3061
- get: get$f
2928
+ get: get$d
3062
2929
  });
3063
2930
 
3064
2931
  const getBaseEntryUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`;
3065
2932
  const getEntryUrl = (params) => getBaseEntryUrl(params) + `/${params.snapshotId}`;
3066
2933
  const getManyForEntry = (http, params) => {
3067
- return get$19(http, getBaseEntryUrl(params), {
2934
+ return get$14(http, getBaseEntryUrl(params), {
3068
2935
  params: normalizeSelect(params.query),
3069
2936
  });
3070
2937
  };
3071
2938
  const getForEntry = (http, params) => {
3072
- return get$19(http, getEntryUrl(params));
2939
+ return get$14(http, getEntryUrl(params));
3073
2940
  };
3074
2941
  const getBaseContentTypeUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`;
3075
2942
  const getContentTypeUrl = (params) => getBaseContentTypeUrl(params) + `/${params.snapshotId}`;
3076
2943
  const getManyForContentType = (http, params) => {
3077
- return get$19(http, getBaseContentTypeUrl(params), {
2944
+ return get$14(http, getBaseContentTypeUrl(params), {
3078
2945
  params: normalizeSelect(params.query),
3079
2946
  });
3080
2947
  };
3081
2948
  const getForContentType = (http, params) => {
3082
- return get$19(http, getContentTypeUrl(params));
2949
+ return get$14(http, getContentTypeUrl(params));
3083
2950
  };
3084
2951
 
3085
2952
  var Snapshot = /*#__PURE__*/Object.freeze({
@@ -3090,19 +2957,19 @@ var Snapshot = /*#__PURE__*/Object.freeze({
3090
2957
  getManyForEntry: getManyForEntry
3091
2958
  });
3092
2959
 
3093
- const get$e = (http, params) => get$19(http, `/spaces/${params.spaceId}`, {
2960
+ const get$c = (http, params) => get$14(http, `/spaces/${params.spaceId}`, {
3094
2961
  params: params.include ? { include: params.include } : undefined,
3095
2962
  });
3096
- const getMany$d = (http, params) => get$19(http, `/spaces`, {
2963
+ const getMany$b = (http, params) => get$14(http, `/spaces`, {
3097
2964
  params: { ...params.query, ...(params.include ? { include: params.include } : {}) },
3098
2965
  headers: params.organizationId
3099
2966
  ? { 'X-Contentful-Organization': params.organizationId }
3100
2967
  : undefined,
3101
2968
  });
3102
- const getManyForOrganization$5 = (http, params) => get$19(http, `/organizations/${params.organizationId}/spaces`, {
2969
+ const getManyForOrganization$5 = (http, params) => get$14(http, `/organizations/${params.organizationId}/spaces`, {
3103
2970
  params: params.query,
3104
2971
  });
3105
- const create$b = (http, params, payload, headers) => {
2972
+ const create$9 = (http, params, payload, headers) => {
3106
2973
  return post$1(http, `/spaces`, payload, {
3107
2974
  headers: params.organizationId
3108
2975
  ? { ...headers, 'X-Contentful-Organization': params.organizationId }
@@ -3124,21 +2991,21 @@ const unarchive = (http, params, data, headers) => {
3124
2991
  headers,
3125
2992
  });
3126
2993
  };
3127
- const del$b = (http, params) => del$M(http, `/spaces/${params.spaceId}`);
2994
+ const del$9 = (http, params) => del$H(http, `/spaces/${params.spaceId}`);
3128
2995
 
3129
2996
  var Space = /*#__PURE__*/Object.freeze({
3130
2997
  __proto__: null,
3131
- create: create$b,
3132
- del: del$b,
3133
- get: get$e,
3134
- getMany: getMany$d,
2998
+ create: create$9,
2999
+ del: del$9,
3000
+ get: get$c,
3001
+ getMany: getMany$b,
3135
3002
  getManyForOrganization: getManyForOrganization$5,
3136
3003
  unarchive: unarchive,
3137
3004
  update: update$b
3138
3005
  });
3139
3006
 
3140
- const getMany$c = (http, params) => {
3141
- return get$19(http, `/spaces/${params.spaceId}/space_add_ons`, {
3007
+ const getMany$a = (http, params) => {
3008
+ return get$14(http, `/spaces/${params.spaceId}/space_add_ons`, {
3142
3009
  params: normalizeSelect(params.query),
3143
3010
  });
3144
3011
  };
@@ -3150,47 +3017,47 @@ const updateAllocations = (http, params, data, headers) => {
3150
3017
 
3151
3018
  var SpaceAddOn = /*#__PURE__*/Object.freeze({
3152
3019
  __proto__: null,
3153
- getMany: getMany$c,
3020
+ getMany: getMany$a,
3154
3021
  updateAllocations: updateAllocations
3155
3022
  });
3156
3023
 
3157
- const get$d = (http, params) => get$19(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
3158
- const getMany$b = (http, params) => get$19(http, `/spaces/${params.spaceId}/space_members`, {
3024
+ const get$b = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
3025
+ const getMany$9 = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members`, {
3159
3026
  params: params.query,
3160
3027
  });
3161
3028
 
3162
3029
  var SpaceMember = /*#__PURE__*/Object.freeze({
3163
3030
  __proto__: null,
3164
- get: get$d,
3165
- getMany: getMany$b
3031
+ get: get$b,
3032
+ getMany: getMany$9
3166
3033
  });
3167
3034
 
3168
3035
  function spaceMembershipDeprecationWarning() {
3169
3036
  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)');
3170
3037
  }
3171
- const getBaseUrl$c = (params) => `/spaces/${params.spaceId}/space_memberships`;
3172
- const getEntityUrl$3 = (params) => `${getBaseUrl$c(params)}/${params.spaceMembershipId}`;
3173
- const get$c = (http, params) => {
3038
+ const getBaseUrl$a = (params) => `/spaces/${params.spaceId}/space_memberships`;
3039
+ const getEntityUrl$3 = (params) => `${getBaseUrl$a(params)}/${params.spaceMembershipId}`;
3040
+ const get$a = (http, params) => {
3174
3041
  spaceMembershipDeprecationWarning();
3175
- return get$19(http, getEntityUrl$3(params));
3042
+ return get$14(http, getEntityUrl$3(params));
3176
3043
  };
3177
- const getMany$a = (http, params) => {
3044
+ const getMany$8 = (http, params) => {
3178
3045
  spaceMembershipDeprecationWarning();
3179
- return get$19(http, getBaseUrl$c(params), {
3046
+ return get$14(http, getBaseUrl$a(params), {
3180
3047
  params: params.query,
3181
3048
  });
3182
3049
  };
3183
3050
  const getForOrganization$2 = (http, params) => {
3184
- return get$19(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
3051
+ return get$14(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
3185
3052
  };
3186
3053
  const getManyForOrganization$4 = (http, params) => {
3187
- return get$19(http, `/organizations/${params.organizationId}/space_memberships`, {
3054
+ return get$14(http, `/organizations/${params.organizationId}/space_memberships`, {
3188
3055
  params: params.query,
3189
3056
  });
3190
3057
  };
3191
- const create$a = (http, params, data, headers) => {
3058
+ const create$8 = (http, params, data, headers) => {
3192
3059
  spaceMembershipDeprecationWarning();
3193
- return post$1(http, getBaseUrl$c(params), data, {
3060
+ return post$1(http, getBaseUrl$a(params), data, {
3194
3061
  headers,
3195
3062
  });
3196
3063
  };
@@ -3210,26 +3077,26 @@ const update$a = (http, params, rawData, headers) => {
3210
3077
  },
3211
3078
  });
3212
3079
  };
3213
- const del$a = (http, params) => {
3214
- return del$M(http, getEntityUrl$3(params));
3080
+ const del$8 = (http, params) => {
3081
+ return del$H(http, getEntityUrl$3(params));
3215
3082
  };
3216
3083
 
3217
3084
  var SpaceMembership = /*#__PURE__*/Object.freeze({
3218
3085
  __proto__: null,
3219
- create: create$a,
3086
+ create: create$8,
3220
3087
  createWithId: createWithId$2,
3221
- del: del$a,
3222
- get: get$c,
3088
+ del: del$8,
3089
+ get: get$a,
3223
3090
  getForOrganization: getForOrganization$2,
3224
- getMany: getMany$a,
3091
+ getMany: getMany$8,
3225
3092
  getManyForOrganization: getManyForOrganization$4,
3226
3093
  update: update$a
3227
3094
  });
3228
3095
 
3229
- const getBaseUrl$b = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
3230
- const getTagUrl = (params) => getBaseUrl$b(params) + `/${params.tagId}`;
3231
- const get$b = (http, params) => get$19(http, getTagUrl(params));
3232
- const getMany$9 = (http, params) => get$19(http, getBaseUrl$b(params), {
3096
+ const getBaseUrl$9 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
3097
+ const getTagUrl = (params) => getBaseUrl$9(params) + `/${params.tagId}`;
3098
+ const get$9 = (http, params) => get$14(http, getTagUrl(params));
3099
+ const getMany$7 = (http, params) => get$14(http, getBaseUrl$9(params), {
3233
3100
  params: params.query,
3234
3101
  });
3235
3102
  const createWithId$1 = (http, params, rawData) => {
@@ -3248,32 +3115,32 @@ const update$9 = (http, params, rawData, headers) => {
3248
3115
  },
3249
3116
  });
3250
3117
  };
3251
- const del$9 = (http, { version, ...params }) => {
3252
- return del$M(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
3118
+ const del$7 = (http, { version, ...params }) => {
3119
+ return del$H(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
3253
3120
  };
3254
3121
 
3255
3122
  var Tag = /*#__PURE__*/Object.freeze({
3256
3123
  __proto__: null,
3257
3124
  createWithId: createWithId$1,
3258
- del: del$9,
3259
- get: get$b,
3260
- getMany: getMany$9,
3125
+ del: del$7,
3126
+ get: get$9,
3127
+ getMany: getMany$7,
3261
3128
  update: update$9
3262
3129
  });
3263
3130
 
3264
- const getBaseUrl$a = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`;
3265
- const getTaskUrl = (params) => `${getBaseUrl$a(params)}/${params.taskId}`;
3266
- const get$a = (http, params) => get$19(http, getTaskUrl(params));
3267
- const getMany$8 = (http, params) => get$19(http, getBaseUrl$a(params), {
3131
+ const getBaseUrl$8 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`;
3132
+ const getTaskUrl = (params) => `${getBaseUrl$8(params)}/${params.taskId}`;
3133
+ const get$8 = (http, params) => get$14(http, getTaskUrl(params));
3134
+ const getMany$6 = (http, params) => get$14(http, getBaseUrl$8(params), {
3268
3135
  params: normalizeSelect(params.query),
3269
3136
  });
3270
3137
  /**
3271
3138
  * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons.
3272
3139
  */
3273
- const getAll = getMany$8;
3274
- const create$9 = (http, params, rawData) => {
3140
+ const getAll = getMany$6;
3141
+ const create$7 = (http, params, rawData) => {
3275
3142
  const data = copy__default.default(rawData);
3276
- return post$1(http, getBaseUrl$a(params), data);
3143
+ return post$1(http, getBaseUrl$8(params), data);
3277
3144
  };
3278
3145
  const update$8 = (http, params, rawData, headers) => {
3279
3146
  const data = copy__default.default(rawData);
@@ -3285,33 +3152,33 @@ const update$8 = (http, params, rawData, headers) => {
3285
3152
  },
3286
3153
  });
3287
3154
  };
3288
- const del$8 = (http, { version, ...params }) => {
3289
- return del$M(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
3155
+ const del$6 = (http, { version, ...params }) => {
3156
+ return del$H(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
3290
3157
  };
3291
3158
 
3292
3159
  var Task = /*#__PURE__*/Object.freeze({
3293
3160
  __proto__: null,
3294
- create: create$9,
3295
- del: del$8,
3296
- get: get$a,
3161
+ create: create$7,
3162
+ del: del$6,
3163
+ get: get$8,
3297
3164
  getAll: getAll,
3298
- getMany: getMany$8,
3165
+ getMany: getMany$6,
3299
3166
  update: update$8
3300
3167
  });
3301
3168
 
3302
- const getBaseUrl$9 = (params) => `/organizations/${params.organizationId}/teams`;
3303
- const getEntityUrl$2 = (params) => `${getBaseUrl$9(params)}/${params.teamId}`;
3304
- const get$9 = (http, params) => get$19(http, getEntityUrl$2(params));
3305
- const getMany$7 = (http, params) => get$19(http, getBaseUrl$9(params), {
3169
+ const getBaseUrl$7 = (params) => `/organizations/${params.organizationId}/teams`;
3170
+ const getEntityUrl$2 = (params) => `${getBaseUrl$7(params)}/${params.teamId}`;
3171
+ const get$7 = (http, params) => get$14(http, getEntityUrl$2(params));
3172
+ const getMany$5 = (http, params) => get$14(http, getBaseUrl$7(params), {
3306
3173
  params: normalizeSelect(params.query),
3307
3174
  });
3308
3175
  const getManyForSpace$2 = (http, params) => {
3309
- return get$19(http, `/spaces/${params.spaceId}/teams`, {
3176
+ return get$14(http, `/spaces/${params.spaceId}/teams`, {
3310
3177
  params: normalizeSelect(params.query),
3311
3178
  });
3312
3179
  };
3313
- const create$8 = (http, params, rawData, headers) => {
3314
- return post$1(http, getBaseUrl$9(params), rawData, { headers });
3180
+ const create$6 = (http, params, rawData, headers) => {
3181
+ return post$1(http, getBaseUrl$7(params), rawData, { headers });
3315
3182
  };
3316
3183
  const update$7 = (http, params, rawData, headers) => {
3317
3184
  const data = copy__default.default(rawData);
@@ -3323,31 +3190,31 @@ const update$7 = (http, params, rawData, headers) => {
3323
3190
  },
3324
3191
  });
3325
3192
  };
3326
- const del$7 = (http, params) => del$M(http, getEntityUrl$2(params));
3193
+ const del$5 = (http, params) => del$H(http, getEntityUrl$2(params));
3327
3194
 
3328
3195
  var Team = /*#__PURE__*/Object.freeze({
3329
3196
  __proto__: null,
3330
- create: create$8,
3331
- del: del$7,
3332
- get: get$9,
3333
- getMany: getMany$7,
3197
+ create: create$6,
3198
+ del: del$5,
3199
+ get: get$7,
3200
+ getMany: getMany$5,
3334
3201
  getManyForSpace: getManyForSpace$2,
3335
3202
  update: update$7
3336
3203
  });
3337
3204
 
3338
- const getBaseUrl$8 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
3205
+ const getBaseUrl$6 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
3339
3206
  const getEntityUrl$1 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`;
3340
- const get$8 = (http, params) => get$19(http, getEntityUrl$1(params));
3341
- const getManyForOrganization$3 = (http, params) => get$19(http, `/organizations/${params.organizationId}/team_memberships`, {
3207
+ const get$6 = (http, params) => get$14(http, getEntityUrl$1(params));
3208
+ const getManyForOrganization$3 = (http, params) => get$14(http, `/organizations/${params.organizationId}/team_memberships`, {
3342
3209
  params: normalizeSelect(params.query),
3343
3210
  });
3344
3211
  const getManyForTeam = (http, params) => {
3345
- return get$19(http, getBaseUrl$8(params), {
3212
+ return get$14(http, getBaseUrl$6(params), {
3346
3213
  params: normalizeSelect(params.query),
3347
3214
  });
3348
3215
  };
3349
- const create$7 = (http, params, rawData, headers) => {
3350
- return post$1(http, getBaseUrl$8(params), rawData, { headers });
3216
+ const create$5 = (http, params, rawData, headers) => {
3217
+ return post$1(http, getBaseUrl$6(params), rawData, { headers });
3351
3218
  };
3352
3219
  const update$6 = (http, params, rawData, headers) => {
3353
3220
  const data = copy__default.default(rawData);
@@ -3359,38 +3226,38 @@ const update$6 = (http, params, rawData, headers) => {
3359
3226
  },
3360
3227
  });
3361
3228
  };
3362
- const del$6 = (http, params) => del$M(http, getEntityUrl$1(params));
3229
+ const del$4 = (http, params) => del$H(http, getEntityUrl$1(params));
3363
3230
 
3364
3231
  var TeamMembership = /*#__PURE__*/Object.freeze({
3365
3232
  __proto__: null,
3366
- create: create$7,
3367
- del: del$6,
3368
- get: get$8,
3233
+ create: create$5,
3234
+ del: del$4,
3235
+ get: get$6,
3369
3236
  getManyForOrganization: getManyForOrganization$3,
3370
3237
  getManyForTeam: getManyForTeam,
3371
3238
  update: update$6
3372
3239
  });
3373
3240
 
3374
- const getBaseUrl$7 = (params) => `/spaces/${params.spaceId}/team_space_memberships`;
3375
- const getEntityUrl = (params) => `${getBaseUrl$7(params)}/${params.teamSpaceMembershipId}`;
3376
- const get$7 = (http, params) => get$19(http, getEntityUrl(params));
3377
- const getMany$6 = (http, params) => get$19(http, getBaseUrl$7(params), {
3241
+ const getBaseUrl$5 = (params) => `/spaces/${params.spaceId}/team_space_memberships`;
3242
+ const getEntityUrl = (params) => `${getBaseUrl$5(params)}/${params.teamSpaceMembershipId}`;
3243
+ const get$5 = (http, params) => get$14(http, getEntityUrl(params));
3244
+ const getMany$4 = (http, params) => get$14(http, getBaseUrl$5(params), {
3378
3245
  params: params.query,
3379
3246
  });
3380
3247
  const getForOrganization$1 = (http, params) => {
3381
- return get$19(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
3248
+ return get$14(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
3382
3249
  };
3383
3250
  const getManyForOrganization$2 = (http, params) => {
3384
3251
  const query = params.query || {};
3385
3252
  if (params.teamId) {
3386
3253
  query['sys.team.sys.id'] = params.teamId;
3387
3254
  }
3388
- return get$19(http, `/organizations/${params.organizationId}/team_space_memberships`, {
3255
+ return get$14(http, `/organizations/${params.organizationId}/team_space_memberships`, {
3389
3256
  params: params.query,
3390
3257
  });
3391
3258
  };
3392
- const create$6 = (http, params, rawData, headers) => {
3393
- return post$1(http, getBaseUrl$7(params), rawData, {
3259
+ const create$4 = (http, params, rawData, headers) => {
3260
+ return post$1(http, getBaseUrl$5(params), rawData, {
3394
3261
  headers: {
3395
3262
  'x-contentful-team': params.teamId,
3396
3263
  ...headers,
@@ -3408,80 +3275,24 @@ const update$5 = (http, params, rawData, headers) => {
3408
3275
  },
3409
3276
  });
3410
3277
  };
3411
- const del$5 = (http, params) => {
3412
- return del$M(http, getEntityUrl(params));
3278
+ const del$3 = (http, params) => {
3279
+ return del$H(http, getEntityUrl(params));
3413
3280
  };
3414
3281
 
3415
3282
  var TeamSpaceMembership = /*#__PURE__*/Object.freeze({
3416
3283
  __proto__: null,
3417
- create: create$6,
3418
- del: del$5,
3419
- get: get$7,
3284
+ create: create$4,
3285
+ del: del$3,
3286
+ get: get$5,
3420
3287
  getForOrganization: getForOrganization$1,
3421
- getMany: getMany$6,
3288
+ getMany: getMany$4,
3422
3289
  getManyForOrganization: getManyForOrganization$2,
3423
3290
  update: update$5
3424
3291
  });
3425
3292
 
3426
- const getBaseUrl$6 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/templates`;
3427
- const getMany$5 = (http, params, headers) => {
3428
- return get$19(http, getBaseUrl$6(params), {
3429
- params: params.query,
3430
- headers,
3431
- });
3432
- };
3433
- const get$6 = (http, params, headers) => {
3434
- return get$19(http, getBaseUrl$6(params) + `/${params.templateId}`, { headers });
3435
- };
3436
- const create$5 = (http, params, rawData, headers) => {
3437
- const data = copy__default.default(rawData);
3438
- return post$1(http, getBaseUrl$6(params), data, { headers });
3439
- };
3440
- const upsert$1 = (http, params, rawData, headers) => {
3441
- const { sys, ...body } = copy__default.default(rawData);
3442
- return put$1(http, getBaseUrl$6(params) + `/${params.templateId}`, body, {
3443
- headers: {
3444
- ...(sys.version !== undefined && {
3445
- 'X-Contentful-Version': sys.version,
3446
- }),
3447
- ...headers,
3448
- },
3449
- });
3450
- };
3451
- const del$4 = (http, params) => {
3452
- return del$M(http, getBaseUrl$6(params) + `/${params.templateId}`);
3453
- };
3454
- const publish$1 = (http, params, headers) => {
3455
- return put$1(http, getBaseUrl$6(params) + `/${params.templateId}/published`, null, {
3456
- headers: {
3457
- 'X-Contentful-Version': params.version,
3458
- ...headers,
3459
- },
3460
- });
3461
- };
3462
- const unpublish$1 = (http, params, headers) => {
3463
- return del$M(http, getBaseUrl$6(params) + `/${params.templateId}/published`, {
3464
- headers: {
3465
- 'X-Contentful-Version': params.version,
3466
- ...headers,
3467
- },
3468
- });
3469
- };
3470
-
3471
- var Template = /*#__PURE__*/Object.freeze({
3472
- __proto__: null,
3473
- create: create$5,
3474
- del: del$4,
3475
- get: get$6,
3476
- getMany: getMany$5,
3477
- publish: publish$1,
3478
- unpublish: unpublish$1,
3479
- upsert: upsert$1
3480
- });
3481
-
3482
3293
  const getUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config`;
3483
- const get$5 = (http, params) => {
3484
- return get$19(http, getUrl$1(params));
3294
+ const get$4 = (http, params) => {
3295
+ return get$14(http, getUrl$1(params));
3485
3296
  };
3486
3297
  const update$4 = (http, params, rawData) => {
3487
3298
  const data = copy__default.default(rawData);
@@ -3495,66 +3306,8 @@ const update$4 = (http, params, rawData) => {
3495
3306
 
3496
3307
  var UIConfig = /*#__PURE__*/Object.freeze({
3497
3308
  __proto__: null,
3498
- get: get$5,
3499
- update: update$4
3500
- });
3501
-
3502
- const getBaseUrl$5 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/experiences`;
3503
- const getMany$4 = (http, params, headers) => {
3504
- return get$19(http, getBaseUrl$5(params), {
3505
- params: params.query,
3506
- headers,
3507
- });
3508
- };
3509
- const get$4 = (http, params, headers) => {
3510
- return get$19(http, getBaseUrl$5(params) + `/${params.experienceId}`, {
3511
- headers,
3512
- });
3513
- };
3514
- const create$4 = (http, params, rawData, headers) => {
3515
- const data = copy__default.default(rawData);
3516
- return post$1(http, getBaseUrl$5(params), data, { headers });
3517
- };
3518
- const upsert = (http, params, rawData, headers) => {
3519
- const { sys, ...body } = copy__default.default(rawData);
3520
- return put$1(http, getBaseUrl$5(params) + `/${params.experienceId}`, body, {
3521
- headers: {
3522
- ...(sys.version !== undefined && {
3523
- 'X-Contentful-Version': sys.version,
3524
- }),
3525
- ...headers,
3526
- },
3527
- });
3528
- };
3529
- const del$3 = (http, params) => {
3530
- return del$M(http, getBaseUrl$5(params) + `/${params.experienceId}`);
3531
- };
3532
- const publish = (http, params, payload, headers) => {
3533
- return put$1(http, getBaseUrl$5(params) + `/${params.experienceId}/published`, payload ?? null, {
3534
- headers: {
3535
- 'X-Contentful-Version': params.version,
3536
- ...headers,
3537
- },
3538
- });
3539
- };
3540
- const unpublish = (http, params, headers) => {
3541
- return del$M(http, getBaseUrl$5(params) + `/${params.experienceId}/published`, {
3542
- headers: {
3543
- 'X-Contentful-Version': params.version,
3544
- ...headers,
3545
- },
3546
- });
3547
- };
3548
-
3549
- var Experience = /*#__PURE__*/Object.freeze({
3550
- __proto__: null,
3551
- create: create$4,
3552
- del: del$3,
3553
3309
  get: get$4,
3554
- getMany: getMany$4,
3555
- publish: publish,
3556
- unpublish: unpublish,
3557
- upsert: upsert
3310
+ update: update$4
3558
3311
  });
3559
3312
 
3560
3313
  const getBaseUrl$4 = (params) => {
@@ -3572,12 +3325,12 @@ var UploadCredential = /*#__PURE__*/Object.freeze({
3572
3325
  });
3573
3326
 
3574
3327
  const getManyForSpace$1 = (http, params) => {
3575
- return get$19(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
3328
+ return get$14(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
3576
3329
  params: params.query,
3577
3330
  });
3578
3331
  };
3579
3332
  const getManyForOrganization$1 = (http, params) => {
3580
- return get$19(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
3333
+ return get$14(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
3581
3334
  params: params.query,
3582
3335
  });
3583
3336
  };
@@ -3589,19 +3342,19 @@ var Usage = /*#__PURE__*/Object.freeze({
3589
3342
  });
3590
3343
 
3591
3344
  const getForSpace = (http, params) => {
3592
- return get$19(http, `/spaces/${params.spaceId}/users/${params.userId}`);
3345
+ return get$14(http, `/spaces/${params.spaceId}/users/${params.userId}`);
3593
3346
  };
3594
- const getCurrent = (http, params) => get$19(http, `/users/me`, { params: params?.query });
3347
+ const getCurrent = (http, params) => get$14(http, `/users/me`, { params: params?.query });
3595
3348
  const getManyForSpace = (http, params) => {
3596
- return get$19(http, `/spaces/${params.spaceId}/users`, {
3349
+ return get$14(http, `/spaces/${params.spaceId}/users`, {
3597
3350
  params: params.query,
3598
3351
  });
3599
3352
  };
3600
3353
  const getForOrganization = (http, params) => {
3601
- return get$19(http, `/organizations/${params.organizationId}/users/${params.userId}`);
3354
+ return get$14(http, `/organizations/${params.organizationId}/users/${params.userId}`);
3602
3355
  };
3603
3356
  const getManyForOrganization = (http, params) => {
3604
- return get$19(http, `/organizations/${params.organizationId}/users`, {
3357
+ return get$14(http, `/organizations/${params.organizationId}/users`, {
3605
3358
  params: params.query,
3606
3359
  });
3607
3360
  };
@@ -3617,7 +3370,7 @@ var User = /*#__PURE__*/Object.freeze({
3617
3370
 
3618
3371
  const getUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`;
3619
3372
  const get$3 = (http, params) => {
3620
- return get$19(http, getUrl(params));
3373
+ return get$14(http, getUrl(params));
3621
3374
  };
3622
3375
  const update$3 = (http, params, rawData) => {
3623
3376
  const data = copy__default.default(rawData);
@@ -3645,32 +3398,32 @@ const getWebhookSettingsUrl = (params) => `/spaces/${params.spaceId}/webhook_set
3645
3398
  const getWebhookSigningSecretUrl = (params) => `${getWebhookSettingsUrl(params)}/signing_secret`;
3646
3399
  const getWebhookRetryPolicyUrl = (params) => `${getWebhookSettingsUrl(params)}/retry_policy`;
3647
3400
  const get$2 = (http, params) => {
3648
- return get$19(http, getWebhookUrl(params));
3401
+ return get$14(http, getWebhookUrl(params));
3649
3402
  };
3650
3403
  const getManyCallDetails = (http, params) => {
3651
- return get$19(http, getWebhookCallUrl(params), {
3404
+ return get$14(http, getWebhookCallUrl(params), {
3652
3405
  params: normalizeSelect(params.query),
3653
3406
  });
3654
3407
  };
3655
3408
  const getCallDetails = (http, params) => {
3656
- return get$19(http, getWebhookCallDetailsUrl(params));
3409
+ return get$14(http, getWebhookCallDetailsUrl(params));
3657
3410
  };
3658
3411
  const getHealthStatus = (http, params) => {
3659
- return get$19(http, getWebhookHealthUrl(params));
3412
+ return get$14(http, getWebhookHealthUrl(params));
3660
3413
  };
3661
3414
  const getMany$3 = (http, params) => {
3662
- return get$19(http, getBaseUrl$3(params), {
3415
+ return get$14(http, getBaseUrl$3(params), {
3663
3416
  params: normalizeSelect(params.query),
3664
3417
  });
3665
3418
  };
3666
3419
  const getSigningSecret = (http, params) => {
3667
- return get$19(http, getWebhookSigningSecretUrl(params));
3420
+ return get$14(http, getWebhookSigningSecretUrl(params));
3668
3421
  };
3669
3422
  /**
3670
3423
  * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
3671
3424
  */
3672
3425
  const getRetryPolicy = (http, params) => {
3673
- return get$19(http, getWebhookRetryPolicyUrl(params));
3426
+ return get$14(http, getWebhookRetryPolicyUrl(params));
3674
3427
  };
3675
3428
  const create$2 = (http, params, rawData, headers) => {
3676
3429
  const data = copy__default.default(rawData);
@@ -3702,16 +3455,16 @@ const upsertRetryPolicy = async (http, params, rawData) => {
3702
3455
  return put$1(http, getWebhookRetryPolicyUrl(params), data);
3703
3456
  };
3704
3457
  const del$2 = (http, params) => {
3705
- return del$M(http, getWebhookUrl(params));
3458
+ return del$H(http, getWebhookUrl(params));
3706
3459
  };
3707
3460
  const deleteSigningSecret = async (http, params) => {
3708
- return del$M(http, getWebhookSigningSecretUrl(params));
3461
+ return del$H(http, getWebhookSigningSecretUrl(params));
3709
3462
  };
3710
3463
  /**
3711
3464
  * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
3712
3465
  */
3713
3466
  const deleteRetryPolicy = async (http, params) => {
3714
- return del$M(http, getWebhookRetryPolicyUrl(params));
3467
+ return del$H(http, getWebhookRetryPolicyUrl(params));
3715
3468
  };
3716
3469
 
3717
3470
  var Webhook = /*#__PURE__*/Object.freeze({
@@ -3736,11 +3489,11 @@ var Webhook = /*#__PURE__*/Object.freeze({
3736
3489
  const getBaseUrl$2 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`;
3737
3490
  const getWorkflowUrl = (params) => `${getBaseUrl$2(params)}/${params.workflowId}`;
3738
3491
  const completeWorkflowUrl = (params) => `${getWorkflowUrl(params)}/complete`;
3739
- const getMany$2 = (http, params, headers) => get$19(http, getBaseUrl$2(params), {
3492
+ const getMany$2 = (http, params, headers) => get$14(http, getBaseUrl$2(params), {
3740
3493
  headers,
3741
3494
  params: params.query,
3742
3495
  });
3743
- const get$1 = (http, params, headers) => get$19(http, getWorkflowUrl(params), {
3496
+ const get$1 = (http, params, headers) => get$14(http, getWorkflowUrl(params), {
3744
3497
  headers,
3745
3498
  });
3746
3499
  const create$1 = (http, params, rawData, headers) => {
@@ -3760,7 +3513,7 @@ const update$1 = (http, params, rawData, headers) => {
3760
3513
  });
3761
3514
  };
3762
3515
  const del$1 = (http, { version, ...params }, headers) => {
3763
- return del$M(http, getWorkflowUrl(params), {
3516
+ return del$H(http, getWorkflowUrl(params), {
3764
3517
  headers: { 'X-Contentful-Version': version, ...headers },
3765
3518
  });
3766
3519
  };
@@ -3782,10 +3535,10 @@ var Workflow = /*#__PURE__*/Object.freeze({
3782
3535
 
3783
3536
  const getBaseUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`;
3784
3537
  const getWorkflowDefinitionUrl = (params) => `${getBaseUrl$1(params)}/${params.workflowDefinitionId}`;
3785
- const get = (http, params, headers) => get$19(http, getWorkflowDefinitionUrl(params), {
3538
+ const get = (http, params, headers) => get$14(http, getWorkflowDefinitionUrl(params), {
3786
3539
  headers,
3787
3540
  });
3788
- const getMany$1 = (http, params, headers) => get$19(http, getBaseUrl$1(params), {
3541
+ const getMany$1 = (http, params, headers) => get$14(http, getBaseUrl$1(params), {
3789
3542
  headers,
3790
3543
  params: params.query,
3791
3544
  });
@@ -3806,7 +3559,7 @@ const update = (http, params, rawData, headers) => {
3806
3559
  });
3807
3560
  };
3808
3561
  const del = (http, { version, ...params }, headers) => {
3809
- return del$M(http, getWorkflowDefinitionUrl(params), {
3562
+ return del$H(http, getWorkflowDefinitionUrl(params), {
3810
3563
  headers: { 'X-Contentful-Version': version, ...headers },
3811
3564
  });
3812
3565
  };
@@ -3821,7 +3574,7 @@ var WorkflowDefinition = /*#__PURE__*/Object.freeze({
3821
3574
  });
3822
3575
 
3823
3576
  const getBaseUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`;
3824
- const getMany = (http, params, headers) => get$19(http, getBaseUrl(params), {
3577
+ const getMany = (http, params, headers) => get$14(http, getBaseUrl(params), {
3825
3578
  headers,
3826
3579
  params: params.query,
3827
3580
  });
@@ -3860,7 +3613,6 @@ var endpoints = {
3860
3613
  Concept,
3861
3614
  ConceptScheme,
3862
3615
  ContentType,
3863
- DataAssembly,
3864
3616
  EditorInterface,
3865
3617
  EligibleLicense,
3866
3618
  Entry,
@@ -3869,7 +3621,6 @@ var endpoints = {
3869
3621
  EnvironmentTemplate,
3870
3622
  EnvironmentTemplateInstallation,
3871
3623
  Extension,
3872
- Fragment,
3873
3624
  Function,
3874
3625
  FunctionLog,
3875
3626
  Http,
@@ -3906,11 +3657,9 @@ var endpoints = {
3906
3657
  Team,
3907
3658
  TeamMembership,
3908
3659
  TeamSpaceMembership,
3909
- Template,
3910
3660
  UIConfig,
3911
3661
  Upload,
3912
3662
  UploadCredential,
3913
- Experience,
3914
3663
  Usage,
3915
3664
  User,
3916
3665
  UserUIConfig,
@@ -4779,12 +4528,16 @@ var CommentNode;
4779
4528
  * @internal
4780
4529
  */
4781
4530
  function createCommentApi(makeRequest) {
4782
- const getParams = (comment) => ({
4783
- spaceId: comment.sys.space.sys.id,
4784
- environmentId: comment.sys.environment.sys.id,
4785
- entryId: comment.sys.parentEntity.sys.id,
4786
- commentId: comment.sys.id,
4787
- });
4531
+ const getParams = (comment) => {
4532
+ const parentEntity = comment.sys.parentEntity;
4533
+ return {
4534
+ spaceId: comment.sys.space.sys.id,
4535
+ environmentId: comment.sys.environment.sys.id,
4536
+ commentId: comment.sys.id,
4537
+ parentEntityType: parentEntity.sys.linkType,
4538
+ parentEntityId: parentEntity.sys.id,
4539
+ };
4540
+ };
4788
4541
  return {
4789
4542
  update: async function () {
4790
4543
  const raw = this.toPlainObject();
@@ -14376,12 +14129,6 @@ const createPlainClient = (makeRequest, defaults) => {
14376
14129
  },
14377
14130
  componentType: {
14378
14131
  getMany: wrap(wrapParams, 'ComponentType', 'getMany'),
14379
- get: wrap(wrapParams, 'ComponentType', 'get'),
14380
- create: wrap(wrapParams, 'ComponentType', 'create'),
14381
- upsert: wrap(wrapParams, 'ComponentType', 'upsert'),
14382
- delete: wrap(wrapParams, 'ComponentType', 'delete'),
14383
- publish: wrap(wrapParams, 'ComponentType', 'publish'),
14384
- unpublish: wrap(wrapParams, 'ComponentType', 'unpublish'),
14385
14132
  },
14386
14133
  contentType: {
14387
14134
  get: wrap(wrapParams, 'ContentType', 'get'),
@@ -14395,17 +14142,6 @@ const createPlainClient = (makeRequest, defaults) => {
14395
14142
  createWithId: wrap(wrapParams, 'ContentType', 'createWithId'),
14396
14143
  omitAndDeleteField: (params, contentType, fieldId) => omitAndDeleteField(makeRequest, { ...{ ...defaults, ...params }, fieldId }, contentType),
14397
14144
  },
14398
- dataAssembly: {
14399
- getMany: wrap(wrapParams, 'DataAssembly', 'getMany'),
14400
- getManyPublished: wrap(wrapParams, 'DataAssembly', 'getManyPublished'),
14401
- getPublished: wrap(wrapParams, 'DataAssembly', 'getPublished'),
14402
- get: wrap(wrapParams, 'DataAssembly', 'get'),
14403
- create: wrap(wrapParams, 'DataAssembly', 'create'),
14404
- update: wrap(wrapParams, 'DataAssembly', 'update'),
14405
- delete: wrap(wrapParams, 'DataAssembly', 'delete'),
14406
- publish: wrap(wrapParams, 'DataAssembly', 'publish'),
14407
- unpublish: wrap(wrapParams, 'DataAssembly', 'unpublish'),
14408
- },
14409
14145
  user: {
14410
14146
  getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'),
14411
14147
  getForSpace: wrap(wrapParams, 'User', 'getForSpace'),
@@ -14753,24 +14489,6 @@ const createPlainClient = (makeRequest, defaults) => {
14753
14489
  update: wrap(wrapParams, 'TeamSpaceMembership', 'update'),
14754
14490
  delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete'),
14755
14491
  },
14756
- fragment: {
14757
- getMany: wrap(wrapParams, 'Fragment', 'getMany'),
14758
- get: wrap(wrapParams, 'Fragment', 'get'),
14759
- create: wrap(wrapParams, 'Fragment', 'create'),
14760
- upsert: wrap(wrapParams, 'Fragment', 'upsert'),
14761
- delete: wrap(wrapParams, 'Fragment', 'delete'),
14762
- publish: wrap(wrapParams, 'Fragment', 'publish'),
14763
- unpublish: wrap(wrapParams, 'Fragment', 'unpublish'),
14764
- },
14765
- template: {
14766
- getMany: wrap(wrapParams, 'Template', 'getMany'),
14767
- get: wrap(wrapParams, 'Template', 'get'),
14768
- create: wrap(wrapParams, 'Template', 'create'),
14769
- upsert: wrap(wrapParams, 'Template', 'upsert'),
14770
- delete: wrap(wrapParams, 'Template', 'delete'),
14771
- publish: wrap(wrapParams, 'Template', 'publish'),
14772
- unpublish: wrap(wrapParams, 'Template', 'unpublish'),
14773
- },
14774
14492
  uiConfig: {
14775
14493
  get: wrap(wrapParams, 'UIConfig', 'get'),
14776
14494
  update: wrap(wrapParams, 'UIConfig', 'update'),
@@ -14779,15 +14497,6 @@ const createPlainClient = (makeRequest, defaults) => {
14779
14497
  get: wrap(wrapParams, 'UserUIConfig', 'get'),
14780
14498
  update: wrap(wrapParams, 'UserUIConfig', 'update'),
14781
14499
  },
14782
- experience: {
14783
- getMany: wrap(wrapParams, 'Experience', 'getMany'),
14784
- get: wrap(wrapParams, 'Experience', 'get'),
14785
- create: wrap(wrapParams, 'Experience', 'create'),
14786
- upsert: wrap(wrapParams, 'Experience', 'upsert'),
14787
- delete: wrap(wrapParams, 'Experience', 'delete'),
14788
- publish: wrap(wrapParams, 'Experience', 'publish'),
14789
- unpublish: wrap(wrapParams, 'Experience', 'unpublish'),
14790
- },
14791
14500
  workflowDefinition: {
14792
14501
  get: wrap(wrapParams, 'WorkflowDefinition', 'get'),
14793
14502
  getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),