contentful-management 12.6.0-dev.3 → 12.6.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 (78) hide show
  1. package/README.md +3 -3
  2. package/dist/browser/index.js +752 -1055
  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 +744 -1047
  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/component-type.mjs +3 -43
  11. package/dist/esm/adapters/REST/endpoints/component-type.mjs.map +1 -1
  12. package/dist/esm/adapters/REST/endpoints/content-type.mjs +9 -1
  13. package/dist/esm/adapters/REST/endpoints/content-type.mjs.map +1 -1
  14. package/dist/esm/adapters/REST/endpoints/entry.mjs +12 -1
  15. package/dist/esm/adapters/REST/endpoints/entry.mjs.map +1 -1
  16. package/dist/esm/adapters/REST/endpoints/index.mjs +0 -8
  17. package/dist/esm/adapters/REST/endpoints/index.mjs.map +1 -1
  18. package/dist/esm/common-types.mjs.map +1 -1
  19. package/dist/esm/entities/ai-action-invocation.mjs.map +1 -1
  20. package/dist/esm/entities/ai-action.mjs.map +1 -1
  21. package/dist/esm/plain/plain-client.mjs +0 -44
  22. package/dist/esm/plain/plain-client.mjs.map +1 -1
  23. package/dist/types/adapters/REST/endpoints/asset.d.ts +1 -0
  24. package/dist/types/adapters/REST/endpoints/asset.js +12 -1
  25. package/dist/types/adapters/REST/endpoints/asset.js.map +1 -1
  26. package/dist/types/adapters/REST/endpoints/component-type.d.ts +0 -6
  27. package/dist/types/adapters/REST/endpoints/component-type.js +3 -43
  28. package/dist/types/adapters/REST/endpoints/component-type.js.map +1 -1
  29. package/dist/types/adapters/REST/endpoints/content-type.d.ts +1 -0
  30. package/dist/types/adapters/REST/endpoints/content-type.js +9 -1
  31. package/dist/types/adapters/REST/endpoints/content-type.js.map +1 -1
  32. package/dist/types/adapters/REST/endpoints/entry.d.ts +1 -0
  33. package/dist/types/adapters/REST/endpoints/entry.js +12 -1
  34. package/dist/types/adapters/REST/endpoints/entry.js.map +1 -1
  35. package/dist/types/adapters/REST/endpoints/index.d.ts +0 -8
  36. package/dist/types/adapters/REST/endpoints/index.js +0 -8
  37. package/dist/types/adapters/REST/endpoints/index.js.map +1 -1
  38. package/dist/types/common-types.d.ts +5 -384
  39. package/dist/types/common-types.js.map +1 -1
  40. package/dist/types/entities/ai-action-invocation.d.ts +37 -18
  41. package/dist/types/entities/ai-action-invocation.js.map +1 -1
  42. package/dist/types/entities/ai-action.d.ts +4 -1
  43. package/dist/types/entities/ai-action.js.map +1 -1
  44. package/dist/types/entities/component-type.d.ts +56 -88
  45. package/dist/types/export-types.d.ts +1 -6
  46. package/dist/types/plain/entities/component-type.d.ts +7 -118
  47. package/dist/types/plain/plain-client-types.d.ts +0 -8
  48. package/dist/types/plain/plain-client.js +0 -44
  49. package/dist/types/plain/plain-client.js.map +1 -1
  50. package/package.json +1 -1
  51. package/dist/esm/adapters/REST/endpoints/data-assembly.mjs +0 -62
  52. package/dist/esm/adapters/REST/endpoints/data-assembly.mjs.map +0 -1
  53. package/dist/esm/adapters/REST/endpoints/experience.mjs +0 -52
  54. package/dist/esm/adapters/REST/endpoints/experience.mjs.map +0 -1
  55. package/dist/esm/adapters/REST/endpoints/fragment.mjs +0 -50
  56. package/dist/esm/adapters/REST/endpoints/fragment.mjs.map +0 -1
  57. package/dist/esm/adapters/REST/endpoints/template.mjs +0 -50
  58. package/dist/esm/adapters/REST/endpoints/template.mjs.map +0 -1
  59. package/dist/types/adapters/REST/endpoints/data-assembly.d.ts +0 -10
  60. package/dist/types/adapters/REST/endpoints/data-assembly.js +0 -62
  61. package/dist/types/adapters/REST/endpoints/data-assembly.js.map +0 -1
  62. package/dist/types/adapters/REST/endpoints/experience.d.ts +0 -8
  63. package/dist/types/adapters/REST/endpoints/experience.js +0 -52
  64. package/dist/types/adapters/REST/endpoints/experience.js.map +0 -1
  65. package/dist/types/adapters/REST/endpoints/fragment.d.ts +0 -8
  66. package/dist/types/adapters/REST/endpoints/fragment.js +0 -50
  67. package/dist/types/adapters/REST/endpoints/fragment.js.map +0 -1
  68. package/dist/types/adapters/REST/endpoints/template.d.ts +0 -8
  69. package/dist/types/adapters/REST/endpoints/template.js +0 -50
  70. package/dist/types/adapters/REST/endpoints/template.js.map +0 -1
  71. package/dist/types/entities/data-assembly.d.ts +0 -94
  72. package/dist/types/entities/experience.d.ts +0 -78
  73. package/dist/types/entities/fragment.d.ts +0 -52
  74. package/dist/types/entities/template.d.ts +0 -47
  75. package/dist/types/plain/entities/data-assembly.d.ts +0 -178
  76. package/dist/types/plain/entities/experience.d.ts +0 -164
  77. package/dist/types/plain/entities/fragment.d.ts +0 -133
  78. 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
1163
  if (params.releaseId) {
1164
- return update$v(http, params, rawData, headers ?? {});
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) => {
1173
+ if (params.releaseId) {
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
@@ -1470,14 +1481,14 @@ const getEntityBaseUrl = (paramsOrg) => {
1470
1481
  const versionPath = 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : '';
1471
1482
  return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`;
1472
1483
  };
1473
- const get$O = (http, params) => get$19(http, getEntityCommentUrl(params), {
1484
+ const get$J = (http, params) => get$14(http, getEntityCommentUrl(params), {
1474
1485
  headers: params.bodyFormat === 'rich-text'
1475
1486
  ? {
1476
1487
  [BODY_FORMAT_HEADER]: params.bodyFormat,
1477
1488
  }
1478
1489
  : {},
1479
1490
  });
1480
- const getMany$G = (http, params) => get$19(http, getEntityBaseUrl(params), {
1491
+ const getMany$C = (http, params) => get$14(http, getEntityBaseUrl(params), {
1481
1492
  params: normalizeSelect(params.query),
1482
1493
  headers: params.bodyFormat === 'rich-text'
1483
1494
  ? {
@@ -1485,7 +1496,7 @@ const getMany$G = (http, params) => get$19(http, getEntityBaseUrl(params), {
1485
1496
  }
1486
1497
  : {},
1487
1498
  });
1488
- const create$v = (http, params, rawData) => {
1499
+ const create$q = (http, params, rawData) => {
1489
1500
  const data = copy__default.default(rawData);
1490
1501
  return post$1(http, getEntityBaseUrl(params), data, {
1491
1502
  headers: {
@@ -1497,7 +1508,7 @@ const create$v = (http, params, rawData) => {
1497
1508
  },
1498
1509
  });
1499
1510
  };
1500
- const update$t = (http, params, rawData, headers) => {
1511
+ const update$s = (http, params, rawData, headers) => {
1501
1512
  const data = copy__default.default(rawData);
1502
1513
  delete data.sys;
1503
1514
  return put$1(http, getEntityCommentUrl(params), data, {
@@ -1508,8 +1519,8 @@ const update$t = (http, params, rawData, headers) => {
1508
1519
  },
1509
1520
  });
1510
1521
  };
1511
- const del$x = (http, { version, ...params }) => {
1512
- return del$M(http, getEntityCommentUrl(params), {
1522
+ const del$s = (http, { version, ...params }) => {
1523
+ return del$H(http, getEntityCommentUrl(params), {
1513
1524
  headers: { [VERSION_HEADER]: version },
1514
1525
  });
1515
1526
  };
@@ -1517,80 +1528,35 @@ const del$x = (http, { version, ...params }) => {
1517
1528
  /**
1518
1529
  * @deprecated use `getMany` instead.
1519
1530
  */
1520
- const getAll$1 = getMany$G;
1531
+ const getAll$1 = getMany$C;
1521
1532
 
1522
1533
  var Comment = /*#__PURE__*/Object.freeze({
1523
1534
  __proto__: null,
1524
- create: create$v,
1525
- del: del$x,
1526
- get: get$O,
1535
+ create: create$q,
1536
+ del: del$s,
1537
+ get: get$J,
1527
1538
  getAll: getAll$1,
1528
- getMany: getMany$G,
1529
- update: update$t
1539
+ getMany: getMany$C,
1540
+ update: update$s
1530
1541
  });
1531
1542
 
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), {
1543
+ const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/component_types`;
1544
+ const getMany$B = (http, params, headers) => {
1545
+ return get$14(http, getBaseUrl$k(params), {
1535
1546
  params: params.query,
1536
1547
  headers,
1537
1548
  });
1538
1549
  };
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
1550
 
1579
1551
  var ComponentType = /*#__PURE__*/Object.freeze({
1580
1552
  __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
1553
+ getMany: getMany$B
1588
1554
  });
1589
1555
 
1590
1556
  function basePath$1(organizationId) {
1591
1557
  return `/organizations/${organizationId}/taxonomy/concepts`;
1592
1558
  }
1593
- const create$t = (http, params, data) => {
1559
+ const create$p = (http, params, data) => {
1594
1560
  return post$1(http, basePath$1(params.organizationId), data);
1595
1561
  };
1596
1562
  const createWithId$b = (http, params, data) => {
@@ -1605,7 +1571,7 @@ const patch$4 = (http, params, data, headers) => {
1605
1571
  },
1606
1572
  });
1607
1573
  };
1608
- const update$s = (http, params, data, headers) => {
1574
+ const update$r = (http, params, data, headers) => {
1609
1575
  return put$1(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, data, {
1610
1576
  headers: {
1611
1577
  'X-Contentful-Version': params.version,
@@ -1613,28 +1579,28 @@ const update$s = (http, params, data, headers) => {
1613
1579
  },
1614
1580
  });
1615
1581
  };
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}`, {
1582
+ const get$I = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/${params.conceptId}`);
1583
+ const del$r = (http, params, headers) => del$H(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, {
1618
1584
  headers: {
1619
1585
  'X-Contentful-Version': params.version ?? 0,
1620
1586
  ...headers,
1621
1587
  },
1622
1588
  });
1623
- const getMany$E = (http, params) => {
1589
+ const getMany$A = (http, params) => {
1624
1590
  const { url, queryParams } = cursorBasedCollection('', params);
1625
- return get$19(http, url, {
1591
+ return get$14(http, url, {
1626
1592
  params: queryParams,
1627
1593
  });
1628
1594
  };
1629
1595
  const getDescendants = (http, params) => {
1630
1596
  const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/descendants`, params);
1631
- return get$19(http, url, { params: queryParams });
1597
+ return get$14(http, url, { params: queryParams });
1632
1598
  };
1633
1599
  const getAncestors = (http, params) => {
1634
1600
  const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/ancestors`, params);
1635
- return get$19(http, url, { params: queryParams });
1601
+ return get$14(http, url, { params: queryParams });
1636
1602
  };
1637
- const getTotal$1 = (http, params) => get$19(http, `${basePath$1(params.organizationId)}/total`);
1603
+ const getTotal$1 = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/total`);
1638
1604
  function cursorBasedCollection(path, params) {
1639
1605
  return params.query?.pageUrl
1640
1606
  ? { url: params.query?.pageUrl }
@@ -1646,36 +1612,36 @@ function cursorBasedCollection(path, params) {
1646
1612
 
1647
1613
  var Concept = /*#__PURE__*/Object.freeze({
1648
1614
  __proto__: null,
1649
- create: create$t,
1615
+ create: create$p,
1650
1616
  createWithId: createWithId$b,
1651
- del: del$v,
1652
- get: get$M,
1617
+ del: del$r,
1618
+ get: get$I,
1653
1619
  getAncestors: getAncestors,
1654
1620
  getDescendants: getDescendants,
1655
- getMany: getMany$E,
1621
+ getMany: getMany$A,
1656
1622
  getTotal: getTotal$1,
1657
1623
  patch: patch$4,
1658
- update: update$s
1624
+ update: update$r
1659
1625
  });
1660
1626
 
1661
1627
  function basePath(orgId) {
1662
1628
  return `/organizations/${orgId}/taxonomy/concept-schemes`;
1663
1629
  }
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}`, {
1630
+ const get$H = (http, params) => get$14(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`);
1631
+ const del$q = (http, params, headers) => del$H(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, {
1666
1632
  headers: {
1667
1633
  'X-Contentful-Version': params.version,
1668
1634
  ...headers,
1669
1635
  },
1670
1636
  });
1671
- const getMany$D = (http, params) => {
1637
+ const getMany$z = (http, params) => {
1672
1638
  const url = params.query?.pageUrl ?? basePath(params.organizationId);
1673
- return get$19(http, url, {
1639
+ return get$14(http, url, {
1674
1640
  params: params.query?.pageUrl ? undefined : params.query,
1675
1641
  });
1676
1642
  };
1677
- const getTotal = (http, params) => get$19(http, `${basePath(params.organizationId)}/total`);
1678
- const create$s = (http, params, data) => {
1643
+ const getTotal = (http, params) => get$14(http, `${basePath(params.organizationId)}/total`);
1644
+ const create$o = (http, params, data) => {
1679
1645
  return post$1(http, basePath(params.organizationId), data);
1680
1646
  };
1681
1647
  const createWithId$a = (http, params, data) => {
@@ -1690,7 +1656,7 @@ const patch$3 = (http, params, data, headers) => {
1690
1656
  },
1691
1657
  });
1692
1658
  };
1693
- const update$r = (http, params, data, headers) => {
1659
+ const update$q = (http, params, data, headers) => {
1694
1660
  return put$1(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, data, {
1695
1661
  headers: {
1696
1662
  'X-Contentful-Version': params.version,
@@ -1701,39 +1667,46 @@ const update$r = (http, params, data, headers) => {
1701
1667
 
1702
1668
  var ConceptScheme = /*#__PURE__*/Object.freeze({
1703
1669
  __proto__: null,
1704
- create: create$s,
1670
+ create: create$o,
1705
1671
  createWithId: createWithId$a,
1706
- del: del$u,
1707
- get: get$L,
1708
- getMany: getMany$D,
1672
+ del: del$q,
1673
+ get: get$H,
1674
+ getMany: getMany$z,
1709
1675
  getTotal: getTotal,
1710
1676
  patch: patch$3,
1711
- update: update$r
1677
+ update: update$q
1712
1678
  });
1713
1679
 
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), {
1680
+ const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`;
1681
+ const getContentTypeUrl$1 = (params) => getBaseUrl$j(params) + `/${params.contentTypeId}`;
1682
+ const get$G = (http, params, headers) => {
1683
+ return get$14(http, getContentTypeUrl$1(params), {
1718
1684
  params: normalizeSelect(params.query),
1719
1685
  headers,
1720
1686
  });
1721
1687
  };
1722
- const getMany$C = (http, params, headers) => {
1723
- return get$19(http, getBaseUrl$n(params), {
1688
+ const getMany$y = (http, params, headers) => {
1689
+ return get$14(http, getBaseUrl$j(params), {
1724
1690
  params: params.query,
1725
1691
  headers,
1726
1692
  });
1727
1693
  };
1728
- const create$r = (http, params, rawData, headers) => {
1694
+ const getManyWithCursor$1 = (http, params, headers) => {
1695
+ return get$14(http, getBaseUrl$j(params), {
1696
+ params: { cursor: true, ...(params.query ?? {}) },
1697
+ headers,
1698
+ })
1699
+ .then(normalizeCursorPaginationResponse);
1700
+ };
1701
+ const create$n = (http, params, rawData, headers) => {
1729
1702
  const data = copy__default.default(rawData);
1730
- return post$1(http, getBaseUrl$n(params), data, { headers });
1703
+ return post$1(http, getBaseUrl$j(params), data, { headers });
1731
1704
  };
1732
1705
  const createWithId$9 = (http, params, rawData, headers) => {
1733
1706
  const data = copy__default.default(rawData);
1734
1707
  return put$1(http, getContentTypeUrl$1(params), data, { headers });
1735
1708
  };
1736
- const update$q = (http, params, rawData, headers) => {
1709
+ const update$p = (http, params, rawData, headers) => {
1737
1710
  const data = copy__default.default(rawData);
1738
1711
  delete data.sys;
1739
1712
  return put$1(http, getContentTypeUrl$1(params), data, {
@@ -1743,10 +1716,10 @@ const update$q = (http, params, rawData, headers) => {
1743
1716
  },
1744
1717
  });
1745
1718
  };
1746
- const del$t = (http, params, headers) => {
1747
- return del$M(http, getContentTypeUrl$1(params), { headers });
1719
+ const del$p = (http, params, headers) => {
1720
+ return del$H(http, getContentTypeUrl$1(params), { headers });
1748
1721
  };
1749
- const publish$6 = (http, params, rawData, headers) => {
1722
+ const publish$2 = (http, params, rawData, headers) => {
1750
1723
  return put$1(http, getContentTypeUrl$1(params) + '/published', null, {
1751
1724
  headers: {
1752
1725
  'X-Contentful-Version': rawData.sys.version,
@@ -1754,103 +1727,34 @@ const publish$6 = (http, params, rawData, headers) => {
1754
1727
  },
1755
1728
  });
1756
1729
  };
1757
- const unpublish$6 = (http, params, headers) => {
1758
- return del$M(http, getContentTypeUrl$1(params) + '/published', { headers });
1730
+ const unpublish$2 = (http, params, headers) => {
1731
+ return del$H(http, getContentTypeUrl$1(params) + '/published', { headers });
1759
1732
  };
1760
1733
 
1761
1734
  var ContentType = /*#__PURE__*/Object.freeze({
1762
1735
  __proto__: null,
1763
- create: create$r,
1736
+ create: create$n,
1764
1737
  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,
1738
+ del: del$p,
1739
+ get: get$G,
1740
+ getMany: getMany$y,
1741
+ getManyWithCursor: getManyWithCursor$1,
1742
+ publish: publish$2,
1743
+ unpublish: unpublish$2,
1840
1744
  update: update$p
1841
1745
  });
1842
1746
 
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));
1747
+ const getBaseUrl$i = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`;
1748
+ const get$F = (http, params) => {
1749
+ return get$14(http, getBaseUrl$i(params));
1846
1750
  };
1847
- const getMany$A = (http, params) => {
1848
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
1751
+ const getMany$x = (http, params) => {
1752
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
1849
1753
  };
1850
1754
  const update$o = (http, params, rawData, headers) => {
1851
1755
  const data = copy__default.default(rawData);
1852
1756
  delete data.sys;
1853
- return put$1(http, getBaseUrl$l(params), data, {
1757
+ return put$1(http, getBaseUrl$i(params), data, {
1854
1758
  headers: {
1855
1759
  'X-Contentful-Version': rawData.sys.version ?? 0,
1856
1760
  ...headers,
@@ -1860,31 +1764,31 @@ const update$o = (http, params, rawData, headers) => {
1860
1764
 
1861
1765
  var EditorInterface = /*#__PURE__*/Object.freeze({
1862
1766
  __proto__: null,
1863
- get: get$I,
1864
- getMany: getMany$A,
1767
+ get: get$F,
1768
+ getMany: getMany$x,
1865
1769
  update: update$o
1866
1770
  });
1867
1771
 
1868
- const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
1869
- const getMany$z = (http, params) => {
1870
- return get$19(http, getBaseUrl$k(params), {
1772
+ const getBaseUrl$h = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
1773
+ const getMany$w = (http, params) => {
1774
+ return get$14(http, getBaseUrl$h(params), {
1871
1775
  params: params.query,
1872
1776
  });
1873
1777
  };
1874
1778
 
1875
1779
  var EligibleLicense = /*#__PURE__*/Object.freeze({
1876
1780
  __proto__: null,
1877
- getMany: getMany$z
1781
+ getMany: getMany$w
1878
1782
  });
1879
1783
 
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}`, {
1784
+ const get$E = (http, params, rawData, headers) => {
1785
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, {
1882
1786
  params: normalizeSelect(params.query),
1883
1787
  headers: { ...headers },
1884
1788
  });
1885
1789
  };
1886
- const getMany$y = (http, params, rawData, headers) => {
1887
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
1790
+ const getMany$v = (http, params, rawData, headers) => {
1791
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
1888
1792
  params: normalizeSelect(params.query),
1889
1793
  headers: { ...headers },
1890
1794
  });
@@ -1908,7 +1812,7 @@ const patch$2 = (http, params, data, headers) => {
1908
1812
  },
1909
1813
  });
1910
1814
  };
1911
- const create$p = (http, params, rawData, headers) => {
1815
+ const create$m = (http, params, rawData, headers) => {
1912
1816
  const data = copy__default.default(rawData);
1913
1817
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
1914
1818
  headers: {
@@ -1929,38 +1833,48 @@ const createWithId$8 = (http, params, rawData, headers) => {
1929
1833
 
1930
1834
  var ReleaseEntry = /*#__PURE__*/Object.freeze({
1931
1835
  __proto__: null,
1932
- create: create$p,
1836
+ create: create$m,
1933
1837
  createWithId: createWithId$8,
1934
- get: get$H,
1935
- getMany: getMany$y,
1838
+ get: get$E,
1839
+ getMany: getMany$v,
1936
1840
  patch: patch$2,
1937
1841
  update: update$n
1938
1842
  });
1939
1843
 
1940
- const get$G = (http, params, rawData, headers) => {
1844
+ const get$D = (http, params, rawData, headers) => {
1941
1845
  if (params.releaseId) {
1942
- return get$H(http, params);
1846
+ return get$E(http, params);
1943
1847
  }
1944
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
1848
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
1945
1849
  params: normalizeSelect(params.query),
1946
1850
  headers: { ...headers },
1947
1851
  });
1948
1852
  };
1949
1853
  const getPublished = (http, params, rawData, headers) => {
1950
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
1854
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
1951
1855
  params: normalizeSelect(params.query),
1952
1856
  headers: { ...headers },
1953
1857
  });
1954
1858
  };
1955
- const getMany$x = (http, params, rawData, headers) => {
1859
+ const getMany$u = (http, params, rawData, headers) => {
1956
1860
  if (params.releaseId) {
1957
- return getMany$y(http, params);
1861
+ return getMany$v(http, params);
1958
1862
  }
1959
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
1863
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
1960
1864
  params: normalizeSelect(params.query),
1961
1865
  headers: { ...headers },
1962
1866
  });
1963
1867
  };
1868
+ const getManyWithCursor = (http, params, rawData, headers) => {
1869
+ if (params.releaseId) {
1870
+ throw new Error('getManyWithCursor is not supported for release-scoped entries');
1871
+ }
1872
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
1873
+ params: { cursor: true, ...(params.query ?? {}) },
1874
+ headers: { ...headers },
1875
+ })
1876
+ .then(normalizeCursorPaginationResponse);
1877
+ };
1964
1878
  const patch$1 = (http, params, data, headers) => {
1965
1879
  if (params.releaseId) {
1966
1880
  return patch$2(http, params, data, headers ?? {});
@@ -1986,10 +1900,10 @@ const update$m = (http, params, rawData, headers) => {
1986
1900
  },
1987
1901
  });
1988
1902
  };
1989
- const del$r = (http, params) => {
1990
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
1903
+ const del$o = (http, params) => {
1904
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
1991
1905
  };
1992
- const publish$4 = (http, params, rawData) => {
1906
+ const publish$1 = (http, params, rawData) => {
1993
1907
  const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
1994
1908
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
1995
1909
  headers: {
@@ -1997,7 +1911,7 @@ const publish$4 = (http, params, rawData) => {
1997
1911
  },
1998
1912
  });
1999
1913
  };
2000
- const unpublish$4 = (http, params, rawData) => {
1914
+ const unpublish$1 = (http, params, rawData) => {
2001
1915
  if (params.locales?.length) {
2002
1916
  const payload = { remove: { fields: { '*': params.locales } } };
2003
1917
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
@@ -2007,18 +1921,18 @@ const unpublish$4 = (http, params, rawData) => {
2007
1921
  });
2008
1922
  }
2009
1923
  else {
2010
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
1924
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
2011
1925
  }
2012
1926
  };
2013
1927
  const archive$1 = (http, params) => {
2014
1928
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
2015
1929
  };
2016
1930
  const unarchive$2 = (http, params) => {
2017
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
1931
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
2018
1932
  };
2019
- const create$o = (http, params, rawData) => {
1933
+ const create$l = (http, params, rawData) => {
2020
1934
  if (params.releaseId) {
2021
- return create$p(http, params, rawData, {});
1935
+ return create$m(http, params, rawData, {});
2022
1936
  }
2023
1937
  const data = copy__default.default(rawData);
2024
1938
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
@@ -2041,31 +1955,32 @@ const createWithId$7 = (http, params, rawData) => {
2041
1955
  const references = (http, params) => {
2042
1956
  const { spaceId, environmentId, entryId, include } = params;
2043
1957
  const level = include || 2;
2044
- return get$19(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
1958
+ return get$14(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
2045
1959
  };
2046
1960
 
2047
1961
  var Entry = /*#__PURE__*/Object.freeze({
2048
1962
  __proto__: null,
2049
1963
  archive: archive$1,
2050
- create: create$o,
1964
+ create: create$l,
2051
1965
  createWithId: createWithId$7,
2052
- del: del$r,
2053
- get: get$G,
2054
- getMany: getMany$x,
1966
+ del: del$o,
1967
+ get: get$D,
1968
+ getMany: getMany$u,
1969
+ getManyWithCursor: getManyWithCursor,
2055
1970
  getPublished: getPublished,
2056
1971
  patch: patch$1,
2057
- publish: publish$4,
1972
+ publish: publish$1,
2058
1973
  references: references,
2059
1974
  unarchive: unarchive$2,
2060
- unpublish: unpublish$4,
1975
+ unpublish: unpublish$1,
2061
1976
  update: update$m
2062
1977
  });
2063
1978
 
2064
- const get$F = (http, params) => {
2065
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
1979
+ const get$C = (http, params) => {
1980
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
2066
1981
  };
2067
- const getMany$w = (http, params) => {
2068
- return get$19(http, `/spaces/${params.spaceId}/environments`, {
1982
+ const getMany$t = (http, params) => {
1983
+ return get$14(http, `/spaces/${params.spaceId}/environments`, {
2069
1984
  params: params.query,
2070
1985
  });
2071
1986
  };
@@ -2079,10 +1994,10 @@ const update$l = (http, params, rawData, headers) => {
2079
1994
  },
2080
1995
  });
2081
1996
  };
2082
- const del$q = (http, params) => {
2083
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
1997
+ const del$n = (http, params) => {
1998
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
2084
1999
  };
2085
- const create$n = (http, params, rawData, headers) => {
2000
+ const create$k = (http, params, rawData, headers) => {
2086
2001
  const data = copy__default.default(rawData);
2087
2002
  return post$1(http, `/spaces/${params.spaceId}/environments`, data, {
2088
2003
  headers,
@@ -2104,27 +2019,27 @@ const createWithId$6 = (http, params, rawData, headers) => {
2104
2019
 
2105
2020
  var Environment = /*#__PURE__*/Object.freeze({
2106
2021
  __proto__: null,
2107
- create: create$n,
2022
+ create: create$k,
2108
2023
  createWithId: createWithId$6,
2109
- del: del$q,
2110
- get: get$F,
2111
- getMany: getMany$w,
2024
+ del: del$n,
2025
+ get: get$C,
2026
+ getMany: getMany$t,
2112
2027
  update: update$l
2113
2028
  });
2114
2029
 
2115
2030
  /**
2116
2031
  * Urls
2117
2032
  */
2118
- const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environment_aliases`;
2119
- const getEnvironmentAliasUrl = (params) => getBaseUrl$j(params) + `/${params.environmentAliasId}`;
2033
+ const getBaseUrl$g = (params) => `/spaces/${params.spaceId}/environment_aliases`;
2034
+ const getEnvironmentAliasUrl = (params) => getBaseUrl$g(params) + `/${params.environmentAliasId}`;
2120
2035
  /**
2121
2036
  * Endpoints
2122
2037
  */
2123
- const get$E = (http, params) => {
2124
- return get$19(http, getEnvironmentAliasUrl(params));
2038
+ const get$B = (http, params) => {
2039
+ return get$14(http, getEnvironmentAliasUrl(params));
2125
2040
  };
2126
- const getMany$v = (http, params) => {
2127
- return get$19(http, getBaseUrl$j(params), {
2041
+ const getMany$s = (http, params) => {
2042
+ return get$14(http, getBaseUrl$g(params), {
2128
2043
  params: params.query,
2129
2044
  });
2130
2045
  };
@@ -2144,31 +2059,31 @@ const update$k = (http, params, rawData, headers) => {
2144
2059
  },
2145
2060
  });
2146
2061
  };
2147
- const del$p = (http, params) => {
2148
- return del$M(http, getEnvironmentAliasUrl(params));
2062
+ const del$m = (http, params) => {
2063
+ return del$H(http, getEnvironmentAliasUrl(params));
2149
2064
  };
2150
2065
 
2151
2066
  var EnvironmentAlias = /*#__PURE__*/Object.freeze({
2152
2067
  __proto__: null,
2153
2068
  createWithId: createWithId$5,
2154
- del: del$p,
2155
- get: get$E,
2156
- getMany: getMany$v,
2069
+ del: del$m,
2070
+ get: get$B,
2071
+ getMany: getMany$s,
2157
2072
  update: update$k
2158
2073
  });
2159
2074
 
2160
2075
  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), {
2076
+ const get$A = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
2077
+ ? get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
2163
2078
  params: query,
2164
2079
  headers,
2165
2080
  })
2166
- : get$19(http, apiPath$1(organizationId, environmentTemplateId), {
2081
+ : get$14(http, apiPath$1(organizationId, environmentTemplateId), {
2167
2082
  params: query,
2168
2083
  headers,
2169
2084
  });
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 });
2085
+ const getMany$r = (http, { organizationId, query = {} }, headers) => get$14(http, apiPath$1(organizationId), { params: query, headers });
2086
+ const create$j = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
2172
2087
  const update$j = (http, { organizationId, environmentTemplateId }, payload, headers) => {
2173
2088
  const data = copy__default.default(payload);
2174
2089
  delete data.sys;
@@ -2182,8 +2097,8 @@ const update$j = (http, { organizationId, environmentTemplateId }, payload, head
2182
2097
  const versionUpdate = (http, { organizationId, version, environmentTemplateId }, payload, headers) => patch$5(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), payload, {
2183
2098
  headers,
2184
2099
  });
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'), {
2100
+ const del$l = (http, { organizationId, environmentTemplateId }, headers) => del$H(http, apiPath$1(organizationId, environmentTemplateId), { headers });
2101
+ const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions'), {
2187
2102
  params: query,
2188
2103
  headers,
2189
2104
  });
@@ -2191,15 +2106,15 @@ const validate$1 = (http, { spaceId, environmentId, environmentTemplateId, versi
2191
2106
  ? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated`
2192
2107
  : `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`, payload, { headers });
2193
2108
  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 });
2109
+ const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$H(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
2195
2110
 
2196
2111
  var EnvironmentTemplate = /*#__PURE__*/Object.freeze({
2197
2112
  __proto__: null,
2198
- create: create$m,
2199
- del: del$o,
2113
+ create: create$j,
2114
+ del: del$l,
2200
2115
  disconnect: disconnect,
2201
- get: get$D,
2202
- getMany: getMany$u,
2116
+ get: get$A,
2117
+ getMany: getMany$r,
2203
2118
  install: install,
2204
2119
  update: update$j,
2205
2120
  validate: validate$1,
@@ -2208,7 +2123,7 @@ var EnvironmentTemplate = /*#__PURE__*/Object.freeze({
2208
2123
  });
2209
2124
 
2210
2125
  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'), {
2126
+ const getMany$q = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$14(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
2212
2127
  params: {
2213
2128
  ...otherProps,
2214
2129
  ...(environmentId && { 'environment.sys.id': environmentId }),
@@ -2216,7 +2131,7 @@ const getMany$t = (http, { organizationId, environmentTemplateId, spaceId, envir
2216
2131
  },
2217
2132
  headers,
2218
2133
  });
2219
- const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$19(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
2134
+ const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$14(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
2220
2135
  params: {
2221
2136
  ...(installationId && { 'sys.id': installationId }),
2222
2137
  ...paginationProps,
@@ -2227,23 +2142,23 @@ const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplate
2227
2142
  var EnvironmentTemplateInstallation = /*#__PURE__*/Object.freeze({
2228
2143
  __proto__: null,
2229
2144
  getForEnvironment: getForEnvironment$1,
2230
- getMany: getMany$t
2145
+ getMany: getMany$q
2231
2146
  });
2232
2147
 
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), {
2148
+ const getBaseUrl$f = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`;
2149
+ const getExtensionUrl = (params) => getBaseUrl$f(params) + `/${params.extensionId}`;
2150
+ const get$z = (http, params) => {
2151
+ return get$14(http, getExtensionUrl(params), {
2237
2152
  params: normalizeSelect(params.query),
2238
2153
  });
2239
2154
  };
2240
- const getMany$s = (http, params) => {
2241
- return get$19(http, getBaseUrl$i(params), {
2155
+ const getMany$p = (http, params) => {
2156
+ return get$14(http, getBaseUrl$f(params), {
2242
2157
  params: normalizeSelect(params.query),
2243
2158
  });
2244
2159
  };
2245
- const create$l = (http, params, rawData, headers) => {
2246
- return post$1(http, getBaseUrl$i(params), rawData, { headers });
2160
+ const create$i = (http, params, rawData, headers) => {
2161
+ return post$1(http, getBaseUrl$f(params), rawData, { headers });
2247
2162
  };
2248
2163
  const createWithId$4 = (http, params, rawData, headers) => {
2249
2164
  const data = copy__default.default(rawData);
@@ -2259,99 +2174,43 @@ const update$i = async (http, params, rawData, headers) => {
2259
2174
  },
2260
2175
  });
2261
2176
  };
2262
- const del$n = (http, params) => {
2263
- return del$M(http, getExtensionUrl(params));
2177
+ const del$k = (http, params) => {
2178
+ return del$H(http, getExtensionUrl(params));
2264
2179
  };
2265
2180
 
2266
2181
  var Extension = /*#__PURE__*/Object.freeze({
2267
2182
  __proto__: null,
2268
- create: create$l,
2183
+ create: create$i,
2269
2184
  createWithId: createWithId$4,
2270
- del: del$n,
2271
- get: get$C,
2185
+ del: del$k,
2186
+ get: get$z,
2272
2187
  getExtensionUrl: getExtensionUrl,
2273
- getMany: getMany$s,
2188
+ getMany: getMany$p,
2274
2189
  update: update$i
2275
2190
  });
2276
2191
 
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
2192
  // Base URL
2334
2193
  const getManyUrl = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/functions`;
2335
2194
  const getFunctionUrl = (params) => `${getManyUrl(params)}/${params.functionId}`;
2336
2195
  const getFunctionsEnvURL = (params) => {
2337
2196
  return `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions`;
2338
2197
  };
2339
- const get$A = (http, params) => {
2340
- return get$19(http, getFunctionUrl(params));
2198
+ const get$y = (http, params) => {
2199
+ return get$14(http, getFunctionUrl(params));
2341
2200
  };
2342
- const getMany$q = (http, params) => {
2343
- return get$19(http, getManyUrl(params), { params: params.query });
2201
+ const getMany$o = (http, params) => {
2202
+ return get$14(http, getManyUrl(params), { params: params.query });
2344
2203
  };
2345
2204
  const getManyForEnvironment$1 = (http, params) => {
2346
- return get$19(http, getFunctionsEnvURL(params), {
2205
+ return get$14(http, getFunctionsEnvURL(params), {
2347
2206
  params: params.query,
2348
2207
  });
2349
2208
  };
2350
2209
 
2351
2210
  var Function = /*#__PURE__*/Object.freeze({
2352
2211
  __proto__: null,
2353
- get: get$A,
2354
- getMany: getMany$q,
2212
+ get: get$y,
2213
+ getMany: getMany$o,
2355
2214
  getManyForEnvironment: getManyForEnvironment$1
2356
2215
  });
2357
2216
 
@@ -2360,15 +2219,15 @@ const FunctionLogAlphaHeaders = {
2360
2219
  };
2361
2220
  const baseURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
2362
2221
  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), {
2222
+ const get$x = (http, params) => {
2223
+ return get$14(http, getURL(params), {
2365
2224
  headers: {
2366
2225
  ...FunctionLogAlphaHeaders,
2367
2226
  },
2368
2227
  });
2369
2228
  };
2370
- const getMany$p = (http, params) => {
2371
- return get$19(http, baseURL(params), {
2229
+ const getMany$n = (http, params) => {
2230
+ return get$14(http, baseURL(params), {
2372
2231
  params: params.query,
2373
2232
  headers: {
2374
2233
  ...FunctionLogAlphaHeaders,
@@ -2378,12 +2237,12 @@ const getMany$p = (http, params) => {
2378
2237
 
2379
2238
  var FunctionLog = /*#__PURE__*/Object.freeze({
2380
2239
  __proto__: null,
2381
- get: get$z,
2382
- getMany: getMany$p
2240
+ get: get$x,
2241
+ getMany: getMany$n
2383
2242
  });
2384
2243
 
2385
- const get$y = (http, { url, config }) => {
2386
- return get$19(http, url, config);
2244
+ const get$w = (http, { url, config }) => {
2245
+ return get$14(http, url, config);
2387
2246
  };
2388
2247
  const post = (http, { url, config }, payload) => {
2389
2248
  return post$1(http, url, payload, config);
@@ -2394,8 +2253,8 @@ const put = (http, { url, config }, payload) => {
2394
2253
  const patch = (http, { url, config }, payload) => {
2395
2254
  return patch$5(http, url, payload, config);
2396
2255
  };
2397
- const del$l = (http, { url, config }) => {
2398
- return del$M(http, url, config);
2256
+ const del$j = (http, { url, config }) => {
2257
+ return del$H(http, url, config);
2399
2258
  };
2400
2259
  const request = (http$1, { url, config }) => {
2401
2260
  return http(http$1, url, config);
@@ -2403,23 +2262,23 @@ const request = (http$1, { url, config }) => {
2403
2262
 
2404
2263
  var Http = /*#__PURE__*/Object.freeze({
2405
2264
  __proto__: null,
2406
- del: del$l,
2407
- get: get$y,
2265
+ del: del$j,
2266
+ get: get$w,
2408
2267
  patch: patch,
2409
2268
  post: post,
2410
2269
  put: put,
2411
2270
  request: request
2412
2271
  });
2413
2272
 
2414
- const get$x = (http, params) => {
2415
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
2273
+ const get$v = (http, params) => {
2274
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
2416
2275
  };
2417
- const getMany$o = (http, params) => {
2418
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
2276
+ const getMany$m = (http, params) => {
2277
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
2419
2278
  params: normalizeSelect(params.query),
2420
2279
  });
2421
2280
  };
2422
- const create$j = (http, params, data, headers) => {
2281
+ const create$h = (http, params, data, headers) => {
2423
2282
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, data, {
2424
2283
  headers,
2425
2284
  });
@@ -2435,26 +2294,26 @@ const update$h = (http, params, rawData, headers) => {
2435
2294
  },
2436
2295
  });
2437
2296
  };
2438
- const del$k = (http, params) => {
2439
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
2297
+ const del$i = (http, params) => {
2298
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
2440
2299
  };
2441
2300
 
2442
2301
  var Locale = /*#__PURE__*/Object.freeze({
2443
2302
  __proto__: null,
2444
- create: create$j,
2445
- del: del$k,
2446
- get: get$x,
2447
- getMany: getMany$o,
2303
+ create: create$h,
2304
+ del: del$i,
2305
+ get: get$v,
2306
+ getMany: getMany$m,
2448
2307
  update: update$h
2449
2308
  });
2450
2309
 
2451
- const getMany$n = (http, params) => {
2452
- return get$19(http, `/organizations`, {
2310
+ const getMany$l = (http, params) => {
2311
+ return get$14(http, `/organizations`, {
2453
2312
  params: params?.query,
2454
2313
  });
2455
2314
  };
2456
- const get$w = (http, params) => {
2457
- return getMany$n(http, { query: { limit: 100 } }).then((data) => {
2315
+ const get$u = (http, params) => {
2316
+ return getMany$l(http, { query: { limit: 100 } }).then((data) => {
2458
2317
  const org = data.items.find((org) => org.sys.id === params.organizationId);
2459
2318
  if (!org) {
2460
2319
  const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`);
@@ -2472,8 +2331,8 @@ const get$w = (http, params) => {
2472
2331
 
2473
2332
  var Organization = /*#__PURE__*/Object.freeze({
2474
2333
  __proto__: null,
2475
- get: get$w,
2476
- getMany: getMany$n
2334
+ get: get$u,
2335
+ getMany: getMany$l
2477
2336
  });
2478
2337
 
2479
2338
  const OrganizationUserManagementAlphaHeaders = {
@@ -2482,7 +2341,7 @@ const OrganizationUserManagementAlphaHeaders = {
2482
2341
  const InvitationAlphaHeaders = {
2483
2342
  'x-contentful-enable-alpha-feature': 'pending-org-membership',
2484
2343
  };
2485
- const create$i = (http, params, data, headers) => {
2344
+ const create$g = (http, params, data, headers) => {
2486
2345
  return post$1(http, `/organizations/${params.organizationId}/invitations`, data, {
2487
2346
  headers: {
2488
2347
  ...InvitationAlphaHeaders,
@@ -2490,8 +2349,8 @@ const create$i = (http, params, data, headers) => {
2490
2349
  },
2491
2350
  });
2492
2351
  };
2493
- const get$v = (http, params, headers) => {
2494
- return get$19(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
2352
+ const get$t = (http, params, headers) => {
2353
+ return get$14(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
2495
2354
  headers: {
2496
2355
  ...OrganizationUserManagementAlphaHeaders,
2497
2356
  ...headers,
@@ -2501,17 +2360,17 @@ const get$v = (http, params, headers) => {
2501
2360
 
2502
2361
  var OrganizationInvitation = /*#__PURE__*/Object.freeze({
2503
2362
  __proto__: null,
2504
- create: create$i,
2505
- get: get$v
2363
+ create: create$g,
2364
+ get: get$t
2506
2365
  });
2507
2366
 
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));
2367
+ const getBaseUrl$e = (params) => `/organizations/${params.organizationId}/organization_memberships`;
2368
+ const getEntityUrl$5 = (params) => `${getBaseUrl$e(params)}/${params.organizationMembershipId}`;
2369
+ const get$s = (http, params) => {
2370
+ return get$14(http, getEntityUrl$5(params));
2512
2371
  };
2513
- const getMany$m = (http, params) => {
2514
- return get$19(http, getBaseUrl$g(params), {
2372
+ const getMany$k = (http, params) => {
2373
+ return get$14(http, getBaseUrl$e(params), {
2515
2374
  params: params.query,
2516
2375
  });
2517
2376
  };
@@ -2526,15 +2385,15 @@ const update$g = (http, params, rawData, headers) => {
2526
2385
  },
2527
2386
  });
2528
2387
  };
2529
- const del$j = (http, params) => {
2530
- return del$M(http, getEntityUrl$5(params));
2388
+ const del$h = (http, params) => {
2389
+ return del$H(http, getEntityUrl$5(params));
2531
2390
  };
2532
2391
 
2533
2392
  var OrganizationMembership = /*#__PURE__*/Object.freeze({
2534
2393
  __proto__: null,
2535
- del: del$j,
2536
- get: get$u,
2537
- getMany: getMany$m,
2394
+ del: del$h,
2395
+ get: get$s,
2396
+ getMany: getMany$k,
2538
2397
  update: update$g
2539
2398
  });
2540
2399
 
@@ -2560,8 +2419,8 @@ var OrganizationMembership = /*#__PURE__*/Object.freeze({
2560
2419
  * .catch(console.error)
2561
2420
  * ```
2562
2421
  */
2563
- const get$t = (http, params) => {
2564
- return get$19(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
2422
+ const get$r = (http, params) => {
2423
+ return get$14(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
2565
2424
  };
2566
2425
  /**
2567
2426
  * Retrieves a list of OAuth applications associated with the current user.
@@ -2586,7 +2445,7 @@ const get$t = (http, params) => {
2586
2445
  * ```
2587
2446
  */
2588
2447
  const getManyForUser = (http, params) => {
2589
- return get$19(http, `/users/${params.userId}/oauth_applications`, {
2448
+ return get$14(http, `/users/${params.userId}/oauth_applications`, {
2590
2449
  params: params.query,
2591
2450
  });
2592
2451
  };
@@ -2615,7 +2474,7 @@ const getManyForUser = (http, params) => {
2615
2474
  * .catch(console.error)
2616
2475
  * ```
2617
2476
  */
2618
- const create$h = (http, params, rawData, headers) => {
2477
+ const create$f = (http, params, rawData, headers) => {
2619
2478
  return post$1(http, `/users/${params.userId}/oauth_applications`, rawData, {
2620
2479
  headers,
2621
2480
  });
@@ -2672,15 +2531,15 @@ const update$f = (http, params, rawData, headers) => {
2672
2531
  * .catch(console.error)
2673
2532
  * ```
2674
2533
  */
2675
- const del$i = (http, params) => {
2676
- return del$M(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
2534
+ const del$g = (http, params) => {
2535
+ return del$H(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
2677
2536
  };
2678
2537
 
2679
2538
  var OAuthApplication = /*#__PURE__*/Object.freeze({
2680
2539
  __proto__: null,
2681
- create: create$h,
2682
- del: del$i,
2683
- get: get$t,
2540
+ create: create$f,
2541
+ del: del$g,
2542
+ get: get$r,
2684
2543
  getManyForUser: getManyForUser,
2685
2544
  update: update$f
2686
2545
  });
@@ -2688,21 +2547,21 @@ var OAuthApplication = /*#__PURE__*/Object.freeze({
2688
2547
  /**
2689
2548
  * @deprecated use `access-token.get` instead `personal-access-token.get`
2690
2549
  */
2691
- const get$s = (http, params) => {
2692
- return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
2550
+ const get$q = (http, params) => {
2551
+ return get$14(http, `/users/me/access_tokens/${params.tokenId}`);
2693
2552
  };
2694
2553
  /**
2695
2554
  * @deprecated use `access-token.getMany` instead `personal-access-token.getMany`
2696
2555
  */
2697
- const getMany$l = (http, params) => {
2698
- return get$19(http, '/users/me/access_tokens', {
2556
+ const getMany$j = (http, params) => {
2557
+ return get$14(http, '/users/me/access_tokens', {
2699
2558
  params: params.query,
2700
2559
  });
2701
2560
  };
2702
2561
  /**
2703
2562
  * @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`
2704
2563
  */
2705
- const create$g = (http, _params, rawData, headers) => {
2564
+ const create$e = (http, _params, rawData, headers) => {
2706
2565
  return post$1(http, '/users/me/access_tokens', rawData, {
2707
2566
  headers,
2708
2567
  });
@@ -2716,29 +2575,29 @@ const revoke = (http, params) => {
2716
2575
 
2717
2576
  var PersonalAccessToken = /*#__PURE__*/Object.freeze({
2718
2577
  __proto__: null,
2719
- create: create$g,
2720
- get: get$s,
2721
- getMany: getMany$l,
2578
+ create: create$e,
2579
+ get: get$q,
2580
+ getMany: getMany$j,
2722
2581
  revoke: revoke
2723
2582
  });
2724
2583
 
2725
- const get$r = (http, params) => {
2726
- return get$19(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
2584
+ const get$p = (http, params) => {
2585
+ return get$14(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
2727
2586
  };
2728
- const getMany$k = (http, params) => {
2729
- return get$19(http, `/spaces/${params.spaceId}/preview_api_keys`, {
2587
+ const getMany$i = (http, params) => {
2588
+ return get$14(http, `/spaces/${params.spaceId}/preview_api_keys`, {
2730
2589
  params: params.query,
2731
2590
  });
2732
2591
  };
2733
2592
 
2734
2593
  var PreviewApiKey = /*#__PURE__*/Object.freeze({
2735
2594
  __proto__: null,
2736
- get: get$r,
2737
- getMany: getMany$k
2595
+ get: get$p,
2596
+ getMany: getMany$i
2738
2597
  });
2739
2598
 
2740
- const get$q = (http, params) => {
2741
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
2599
+ const get$o = (http, params) => {
2600
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
2742
2601
  };
2743
2602
  const query = (http, params) => {
2744
2603
  // Set the schema version in the query if provided in params or query options
@@ -2746,11 +2605,11 @@ const query = (http, params) => {
2746
2605
  if (releaseSchemaVersion !== undefined) {
2747
2606
  params.query = { ...params.query, 'sys.schemaVersion': releaseSchemaVersion };
2748
2607
  }
2749
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
2608
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
2750
2609
  params: params.query,
2751
2610
  });
2752
2611
  };
2753
- const create$f = (http, params, payload) => {
2612
+ const create$d = (http, params, payload) => {
2754
2613
  const releaseSchemaVersion = payload.sys?.schemaVersion ?? params.releaseSchemaVersion;
2755
2614
  if (releaseSchemaVersion === 'Release.v2') {
2756
2615
  payload.sys = { ...payload.sys, type: 'Release', schemaVersion: 'Release.v2' };
@@ -2769,10 +2628,10 @@ const update$e = (http, params, payload, headers) => {
2769
2628
  },
2770
2629
  });
2771
2630
  };
2772
- const del$h = (http, params) => {
2773
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
2631
+ const del$f = (http, params) => {
2632
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
2774
2633
  };
2775
- const publish$2 = (http, params, headers) => {
2634
+ const publish = (http, params, headers) => {
2776
2635
  return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, {
2777
2636
  headers: {
2778
2637
  'X-Contentful-Version': params.version,
@@ -2780,8 +2639,8 @@ const publish$2 = (http, params, headers) => {
2780
2639
  },
2781
2640
  });
2782
2641
  };
2783
- const unpublish$2 = (http, params, headers) => {
2784
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
2642
+ const unpublish = (http, params, headers) => {
2643
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
2785
2644
  headers: {
2786
2645
  'X-Contentful-Version': params.version,
2787
2646
  ...headers,
@@ -2799,7 +2658,7 @@ const archive = (http, params) => {
2799
2658
  });
2800
2659
  };
2801
2660
  const unarchive$1 = (http, params) => {
2802
- return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
2661
+ return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
2803
2662
  headers: {
2804
2663
  'X-Contentful-Version': params.version,
2805
2664
  },
@@ -2809,27 +2668,27 @@ const unarchive$1 = (http, params) => {
2809
2668
  var Release = /*#__PURE__*/Object.freeze({
2810
2669
  __proto__: null,
2811
2670
  archive: archive,
2812
- create: create$f,
2813
- del: del$h,
2814
- get: get$q,
2815
- publish: publish$2,
2671
+ create: create$d,
2672
+ del: del$f,
2673
+ get: get$o,
2674
+ publish: publish,
2816
2675
  query: query,
2817
2676
  unarchive: unarchive$1,
2818
- unpublish: unpublish$2,
2677
+ unpublish: unpublish,
2819
2678
  update: update$e,
2820
2679
  validate: validate
2821
2680
  });
2822
2681
 
2823
- const get$p = (http, params) => {
2824
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
2682
+ const get$n = (http, params) => {
2683
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
2825
2684
  };
2826
- const getMany$j = (http, params) => {
2827
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
2685
+ const getMany$h = (http, params) => {
2686
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
2828
2687
  params: params.query,
2829
2688
  });
2830
2689
  };
2831
2690
  const queryForRelease = (http, params) => {
2832
- return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
2691
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
2833
2692
  params: {
2834
2693
  'sys.release.sys.id[in]': params.releaseId,
2835
2694
  ...params.query,
@@ -2839,82 +2698,82 @@ const queryForRelease = (http, params) => {
2839
2698
 
2840
2699
  var ReleaseAction = /*#__PURE__*/Object.freeze({
2841
2700
  __proto__: null,
2842
- get: get$p,
2843
- getMany: getMany$j,
2701
+ get: get$n,
2702
+ getMany: getMany$h,
2844
2703
  queryForRelease: queryForRelease
2845
2704
  });
2846
2705
 
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), {
2706
+ const getBaseUrl$d = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
2707
+ const getMany$g = (http, params) => get$14(http, getBaseUrl$d(params), {
2849
2708
  params: params.query,
2850
2709
  });
2851
2710
 
2852
2711
  var Resource = /*#__PURE__*/Object.freeze({
2853
2712
  __proto__: null,
2854
- getMany: getMany$i
2713
+ getMany: getMany$g
2855
2714
  });
2856
2715
 
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));
2716
+ const getBaseUrl$c = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
2717
+ const get$m = (http, params) => {
2718
+ return get$14(http, getBaseUrl$c(params));
2860
2719
  };
2861
- const upsert$3 = (http, params, rawData, headers) => {
2862
- return put$1(http, getBaseUrl$e(params), rawData, { headers });
2720
+ const upsert$1 = (http, params, rawData, headers) => {
2721
+ return put$1(http, getBaseUrl$c(params), rawData, { headers });
2863
2722
  };
2864
- const del$g = (http, params) => {
2865
- return del$M(http, getBaseUrl$e(params));
2723
+ const del$e = (http, params) => {
2724
+ return del$H(http, getBaseUrl$c(params));
2866
2725
  };
2867
2726
 
2868
2727
  var ResourceProvider = /*#__PURE__*/Object.freeze({
2869
2728
  __proto__: null,
2870
- del: del$g,
2871
- get: get$o,
2872
- upsert: upsert$3
2729
+ del: del$e,
2730
+ get: get$m,
2731
+ upsert: upsert$1
2873
2732
  });
2874
2733
 
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}`;
2734
+ const getBaseUrl$b = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
2735
+ const getEntityUrl$4 = (params) => `${getBaseUrl$b(params)}/${params.resourceTypeId}`;
2877
2736
  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));
2737
+ const get$l = (http, params) => {
2738
+ return get$14(http, getEntityUrl$4(params));
2880
2739
  };
2881
- const upsert$2 = (http, params, rawData, headers) => {
2740
+ const upsert = (http, params, rawData, headers) => {
2882
2741
  const data = copy__default.default(rawData);
2883
2742
  return put$1(http, getEntityUrl$4(params), data, { headers });
2884
2743
  };
2885
- const del$f = (http, params) => {
2886
- return del$M(http, getEntityUrl$4(params));
2744
+ const del$d = (http, params) => {
2745
+ return del$H(http, getEntityUrl$4(params));
2887
2746
  };
2888
- const getMany$h = (http, params) => {
2889
- return get$19(http, getBaseUrl$d(params));
2747
+ const getMany$f = (http, params) => {
2748
+ return get$14(http, getBaseUrl$b(params));
2890
2749
  };
2891
2750
  const getForEnvironment = (http, params) => {
2892
- return get$19(http, getSpaceEnvUrl(params));
2751
+ return get$14(http, getSpaceEnvUrl(params));
2893
2752
  };
2894
2753
 
2895
2754
  var ResourceType = /*#__PURE__*/Object.freeze({
2896
2755
  __proto__: null,
2897
- del: del$f,
2898
- get: get$n,
2756
+ del: del$d,
2757
+ get: get$l,
2899
2758
  getForEnvironment: getForEnvironment,
2900
- getMany: getMany$h,
2901
- upsert: upsert$2
2759
+ getMany: getMany$f,
2760
+ upsert: upsert
2902
2761
  });
2903
2762
 
2904
- const get$m = (http, params) => {
2905
- return get$19(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
2763
+ const get$k = (http, params) => {
2764
+ return get$14(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
2906
2765
  };
2907
- const getMany$g = (http, params) => {
2908
- return get$19(http, `/spaces/${params.spaceId}/roles`, {
2766
+ const getMany$e = (http, params) => {
2767
+ return get$14(http, `/spaces/${params.spaceId}/roles`, {
2909
2768
  params: normalizeSelect(params.query),
2910
2769
  });
2911
2770
  };
2912
2771
  const getManyForOrganization$6 = (http, params) => {
2913
- return get$19(http, `/organizations/${params.organizationId}/roles`, {
2772
+ return get$14(http, `/organizations/${params.organizationId}/roles`, {
2914
2773
  params: normalizeSelect(params.query),
2915
2774
  });
2916
2775
  };
2917
- const create$e = (http, params, data, headers) => {
2776
+ const create$c = (http, params, data, headers) => {
2918
2777
  return post$1(http, `/spaces/${params.spaceId}/roles`, data, {
2919
2778
  headers,
2920
2779
  });
@@ -2934,38 +2793,38 @@ const update$d = (http, params, rawData, headers) => {
2934
2793
  },
2935
2794
  });
2936
2795
  };
2937
- const del$e = (http, params) => {
2938
- return del$M(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
2796
+ const del$c = (http, params) => {
2797
+ return del$H(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
2939
2798
  };
2940
2799
 
2941
2800
  var Role = /*#__PURE__*/Object.freeze({
2942
2801
  __proto__: null,
2943
- create: create$e,
2802
+ create: create$c,
2944
2803
  createWithId: createWithId$3,
2945
- del: del$e,
2946
- get: get$m,
2947
- getMany: getMany$g,
2804
+ del: del$c,
2805
+ get: get$k,
2806
+ getMany: getMany$e,
2948
2807
  getManyForOrganization: getManyForOrganization$6,
2949
2808
  update: update$d
2950
2809
  });
2951
2810
 
2952
- const get$l = (http, params) => {
2953
- return get$19(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
2811
+ const get$j = (http, params) => {
2812
+ return get$14(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
2954
2813
  params: {
2955
2814
  'environment.sys.id': params.environmentId,
2956
2815
  },
2957
2816
  });
2958
2817
  };
2959
- const getMany$f = (http, params) => {
2960
- return get$19(http, `/spaces/${params.spaceId}/scheduled_actions`, {
2818
+ const getMany$d = (http, params) => {
2819
+ return get$14(http, `/spaces/${params.spaceId}/scheduled_actions`, {
2961
2820
  params: normalizeSelect(params.query),
2962
2821
  });
2963
2822
  };
2964
- const create$d = (http, params, data) => {
2823
+ const create$b = (http, params, data) => {
2965
2824
  return post$1(http, `/spaces/${params.spaceId}/scheduled_actions`, data);
2966
2825
  };
2967
- const del$d = (http, params) => {
2968
- return del$M(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
2826
+ const del$b = (http, params) => {
2827
+ return del$H(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
2969
2828
  params: {
2970
2829
  'environment.sys.id': params.environmentId,
2971
2830
  },
@@ -2984,102 +2843,102 @@ const update$c = (http, params, data) => {
2984
2843
 
2985
2844
  var ScheduledAction = /*#__PURE__*/Object.freeze({
2986
2845
  __proto__: null,
2987
- create: create$d,
2988
- del: del$d,
2989
- get: get$l,
2990
- getMany: getMany$f,
2846
+ create: create$b,
2847
+ del: del$b,
2848
+ get: get$j,
2849
+ getMany: getMany$d,
2991
2850
  update: update$c
2992
2851
  });
2993
2852
 
2994
- const get$k = (http, params) => {
2995
- return get$19(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
2853
+ const get$i = (http, params) => {
2854
+ return get$14(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
2996
2855
  };
2997
- const getMany$e = (http, params) => {
2998
- return get$19(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
2856
+ const getMany$c = (http, params) => {
2857
+ return get$14(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
2999
2858
  };
3000
2859
  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 });
2860
+ return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
3002
2861
  };
3003
- const create$c = (http, params, data) => {
2862
+ const create$a = (http, params, data) => {
3004
2863
  return post$1(http, `/organizations/${params.organizationId}/semantic/search-index`, data);
3005
2864
  };
3006
- const del$c = (http, params) => {
3007
- return del$M(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
2865
+ const del$a = (http, params) => {
2866
+ return del$H(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
3008
2867
  };
3009
2868
 
3010
2869
  var ContentSemanticsIndex = /*#__PURE__*/Object.freeze({
3011
2870
  __proto__: null,
3012
- create: create$c,
3013
- del: del$c,
3014
- get: get$k,
3015
- getMany: getMany$e,
2871
+ create: create$a,
2872
+ del: del$a,
2873
+ get: get$i,
2874
+ getMany: getMany$c,
3016
2875
  getManyForEnvironment: getManyForEnvironment
3017
2876
  });
3018
2877
 
3019
- const get$j = (http, params, data, headers) => {
2878
+ const get$h = (http, params, data, headers) => {
3020
2879
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/duplicates`, data, { headers });
3021
2880
  };
3022
2881
 
3023
2882
  var SemanticDuplicates = /*#__PURE__*/Object.freeze({
3024
2883
  __proto__: null,
3025
- get: get$j
2884
+ get: get$h
3026
2885
  });
3027
2886
 
3028
- const get$i = (http, params, data, headers) => {
2887
+ const get$g = (http, params, data, headers) => {
3029
2888
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/recommendations`, data, { headers });
3030
2889
  };
3031
2890
 
3032
2891
  var SemanticRecommendations = /*#__PURE__*/Object.freeze({
3033
2892
  __proto__: null,
3034
- get: get$i
2893
+ get: get$g
3035
2894
  });
3036
2895
 
3037
- const get$h = (http, params, data, headers) => {
2896
+ const get$f = (http, params, data, headers) => {
3038
2897
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/reference-suggestions`, data, { headers });
3039
2898
  };
3040
2899
 
3041
2900
  var SemanticReferenceSuggestions = /*#__PURE__*/Object.freeze({
3042
2901
  __proto__: null,
3043
- get: get$h
2902
+ get: get$f
3044
2903
  });
3045
2904
 
3046
- const get$g = (http, params, data, headers) => {
2905
+ const get$e = (http, params, data, headers) => {
3047
2906
  return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search`, data, { headers });
3048
2907
  };
3049
2908
 
3050
2909
  var SemanticSearch = /*#__PURE__*/Object.freeze({
3051
2910
  __proto__: null,
3052
- get: get$g
2911
+ get: get$e
3053
2912
  });
3054
2913
 
3055
- const get$f = (http, params) => {
3056
- return get$19(http, `/organizations/${params.organizationId}/semantic/settings`);
2914
+ const get$d = (http, params) => {
2915
+ return get$14(http, `/organizations/${params.organizationId}/semantic/settings`);
3057
2916
  };
3058
2917
 
3059
2918
  var SemanticSettings = /*#__PURE__*/Object.freeze({
3060
2919
  __proto__: null,
3061
- get: get$f
2920
+ get: get$d
3062
2921
  });
3063
2922
 
3064
2923
  const getBaseEntryUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`;
3065
2924
  const getEntryUrl = (params) => getBaseEntryUrl(params) + `/${params.snapshotId}`;
3066
2925
  const getManyForEntry = (http, params) => {
3067
- return get$19(http, getBaseEntryUrl(params), {
2926
+ return get$14(http, getBaseEntryUrl(params), {
3068
2927
  params: normalizeSelect(params.query),
3069
2928
  });
3070
2929
  };
3071
2930
  const getForEntry = (http, params) => {
3072
- return get$19(http, getEntryUrl(params));
2931
+ return get$14(http, getEntryUrl(params));
3073
2932
  };
3074
2933
  const getBaseContentTypeUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`;
3075
2934
  const getContentTypeUrl = (params) => getBaseContentTypeUrl(params) + `/${params.snapshotId}`;
3076
2935
  const getManyForContentType = (http, params) => {
3077
- return get$19(http, getBaseContentTypeUrl(params), {
2936
+ return get$14(http, getBaseContentTypeUrl(params), {
3078
2937
  params: normalizeSelect(params.query),
3079
2938
  });
3080
2939
  };
3081
2940
  const getForContentType = (http, params) => {
3082
- return get$19(http, getContentTypeUrl(params));
2941
+ return get$14(http, getContentTypeUrl(params));
3083
2942
  };
3084
2943
 
3085
2944
  var Snapshot = /*#__PURE__*/Object.freeze({
@@ -3090,19 +2949,19 @@ var Snapshot = /*#__PURE__*/Object.freeze({
3090
2949
  getManyForEntry: getManyForEntry
3091
2950
  });
3092
2951
 
3093
- const get$e = (http, params) => get$19(http, `/spaces/${params.spaceId}`, {
2952
+ const get$c = (http, params) => get$14(http, `/spaces/${params.spaceId}`, {
3094
2953
  params: params.include ? { include: params.include } : undefined,
3095
2954
  });
3096
- const getMany$d = (http, params) => get$19(http, `/spaces`, {
2955
+ const getMany$b = (http, params) => get$14(http, `/spaces`, {
3097
2956
  params: { ...params.query, ...(params.include ? { include: params.include } : {}) },
3098
2957
  headers: params.organizationId
3099
2958
  ? { 'X-Contentful-Organization': params.organizationId }
3100
2959
  : undefined,
3101
2960
  });
3102
- const getManyForOrganization$5 = (http, params) => get$19(http, `/organizations/${params.organizationId}/spaces`, {
2961
+ const getManyForOrganization$5 = (http, params) => get$14(http, `/organizations/${params.organizationId}/spaces`, {
3103
2962
  params: params.query,
3104
2963
  });
3105
- const create$b = (http, params, payload, headers) => {
2964
+ const create$9 = (http, params, payload, headers) => {
3106
2965
  return post$1(http, `/spaces`, payload, {
3107
2966
  headers: params.organizationId
3108
2967
  ? { ...headers, 'X-Contentful-Organization': params.organizationId }
@@ -3124,21 +2983,21 @@ const unarchive = (http, params, data, headers) => {
3124
2983
  headers,
3125
2984
  });
3126
2985
  };
3127
- const del$b = (http, params) => del$M(http, `/spaces/${params.spaceId}`);
2986
+ const del$9 = (http, params) => del$H(http, `/spaces/${params.spaceId}`);
3128
2987
 
3129
2988
  var Space = /*#__PURE__*/Object.freeze({
3130
2989
  __proto__: null,
3131
- create: create$b,
3132
- del: del$b,
3133
- get: get$e,
3134
- getMany: getMany$d,
2990
+ create: create$9,
2991
+ del: del$9,
2992
+ get: get$c,
2993
+ getMany: getMany$b,
3135
2994
  getManyForOrganization: getManyForOrganization$5,
3136
2995
  unarchive: unarchive,
3137
2996
  update: update$b
3138
2997
  });
3139
2998
 
3140
- const getMany$c = (http, params) => {
3141
- return get$19(http, `/spaces/${params.spaceId}/space_add_ons`, {
2999
+ const getMany$a = (http, params) => {
3000
+ return get$14(http, `/spaces/${params.spaceId}/space_add_ons`, {
3142
3001
  params: normalizeSelect(params.query),
3143
3002
  });
3144
3003
  };
@@ -3150,47 +3009,47 @@ const updateAllocations = (http, params, data, headers) => {
3150
3009
 
3151
3010
  var SpaceAddOn = /*#__PURE__*/Object.freeze({
3152
3011
  __proto__: null,
3153
- getMany: getMany$c,
3012
+ getMany: getMany$a,
3154
3013
  updateAllocations: updateAllocations
3155
3014
  });
3156
3015
 
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`, {
3016
+ const get$b = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
3017
+ const getMany$9 = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members`, {
3159
3018
  params: params.query,
3160
3019
  });
3161
3020
 
3162
3021
  var SpaceMember = /*#__PURE__*/Object.freeze({
3163
3022
  __proto__: null,
3164
- get: get$d,
3165
- getMany: getMany$b
3023
+ get: get$b,
3024
+ getMany: getMany$9
3166
3025
  });
3167
3026
 
3168
3027
  function spaceMembershipDeprecationWarning() {
3169
3028
  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
3029
  }
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) => {
3030
+ const getBaseUrl$a = (params) => `/spaces/${params.spaceId}/space_memberships`;
3031
+ const getEntityUrl$3 = (params) => `${getBaseUrl$a(params)}/${params.spaceMembershipId}`;
3032
+ const get$a = (http, params) => {
3174
3033
  spaceMembershipDeprecationWarning();
3175
- return get$19(http, getEntityUrl$3(params));
3034
+ return get$14(http, getEntityUrl$3(params));
3176
3035
  };
3177
- const getMany$a = (http, params) => {
3036
+ const getMany$8 = (http, params) => {
3178
3037
  spaceMembershipDeprecationWarning();
3179
- return get$19(http, getBaseUrl$c(params), {
3038
+ return get$14(http, getBaseUrl$a(params), {
3180
3039
  params: params.query,
3181
3040
  });
3182
3041
  };
3183
3042
  const getForOrganization$2 = (http, params) => {
3184
- return get$19(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
3043
+ return get$14(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
3185
3044
  };
3186
3045
  const getManyForOrganization$4 = (http, params) => {
3187
- return get$19(http, `/organizations/${params.organizationId}/space_memberships`, {
3046
+ return get$14(http, `/organizations/${params.organizationId}/space_memberships`, {
3188
3047
  params: params.query,
3189
3048
  });
3190
3049
  };
3191
- const create$a = (http, params, data, headers) => {
3050
+ const create$8 = (http, params, data, headers) => {
3192
3051
  spaceMembershipDeprecationWarning();
3193
- return post$1(http, getBaseUrl$c(params), data, {
3052
+ return post$1(http, getBaseUrl$a(params), data, {
3194
3053
  headers,
3195
3054
  });
3196
3055
  };
@@ -3210,26 +3069,26 @@ const update$a = (http, params, rawData, headers) => {
3210
3069
  },
3211
3070
  });
3212
3071
  };
3213
- const del$a = (http, params) => {
3214
- return del$M(http, getEntityUrl$3(params));
3072
+ const del$8 = (http, params) => {
3073
+ return del$H(http, getEntityUrl$3(params));
3215
3074
  };
3216
3075
 
3217
3076
  var SpaceMembership = /*#__PURE__*/Object.freeze({
3218
3077
  __proto__: null,
3219
- create: create$a,
3078
+ create: create$8,
3220
3079
  createWithId: createWithId$2,
3221
- del: del$a,
3222
- get: get$c,
3080
+ del: del$8,
3081
+ get: get$a,
3223
3082
  getForOrganization: getForOrganization$2,
3224
- getMany: getMany$a,
3083
+ getMany: getMany$8,
3225
3084
  getManyForOrganization: getManyForOrganization$4,
3226
3085
  update: update$a
3227
3086
  });
3228
3087
 
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), {
3088
+ const getBaseUrl$9 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
3089
+ const getTagUrl = (params) => getBaseUrl$9(params) + `/${params.tagId}`;
3090
+ const get$9 = (http, params) => get$14(http, getTagUrl(params));
3091
+ const getMany$7 = (http, params) => get$14(http, getBaseUrl$9(params), {
3233
3092
  params: params.query,
3234
3093
  });
3235
3094
  const createWithId$1 = (http, params, rawData) => {
@@ -3248,32 +3107,32 @@ const update$9 = (http, params, rawData, headers) => {
3248
3107
  },
3249
3108
  });
3250
3109
  };
3251
- const del$9 = (http, { version, ...params }) => {
3252
- return del$M(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
3110
+ const del$7 = (http, { version, ...params }) => {
3111
+ return del$H(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
3253
3112
  };
3254
3113
 
3255
3114
  var Tag = /*#__PURE__*/Object.freeze({
3256
3115
  __proto__: null,
3257
3116
  createWithId: createWithId$1,
3258
- del: del$9,
3259
- get: get$b,
3260
- getMany: getMany$9,
3117
+ del: del$7,
3118
+ get: get$9,
3119
+ getMany: getMany$7,
3261
3120
  update: update$9
3262
3121
  });
3263
3122
 
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), {
3123
+ const getBaseUrl$8 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`;
3124
+ const getTaskUrl = (params) => `${getBaseUrl$8(params)}/${params.taskId}`;
3125
+ const get$8 = (http, params) => get$14(http, getTaskUrl(params));
3126
+ const getMany$6 = (http, params) => get$14(http, getBaseUrl$8(params), {
3268
3127
  params: normalizeSelect(params.query),
3269
3128
  });
3270
3129
  /**
3271
3130
  * @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons.
3272
3131
  */
3273
- const getAll = getMany$8;
3274
- const create$9 = (http, params, rawData) => {
3132
+ const getAll = getMany$6;
3133
+ const create$7 = (http, params, rawData) => {
3275
3134
  const data = copy__default.default(rawData);
3276
- return post$1(http, getBaseUrl$a(params), data);
3135
+ return post$1(http, getBaseUrl$8(params), data);
3277
3136
  };
3278
3137
  const update$8 = (http, params, rawData, headers) => {
3279
3138
  const data = copy__default.default(rawData);
@@ -3285,33 +3144,33 @@ const update$8 = (http, params, rawData, headers) => {
3285
3144
  },
3286
3145
  });
3287
3146
  };
3288
- const del$8 = (http, { version, ...params }) => {
3289
- return del$M(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
3147
+ const del$6 = (http, { version, ...params }) => {
3148
+ return del$H(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
3290
3149
  };
3291
3150
 
3292
3151
  var Task = /*#__PURE__*/Object.freeze({
3293
3152
  __proto__: null,
3294
- create: create$9,
3295
- del: del$8,
3296
- get: get$a,
3153
+ create: create$7,
3154
+ del: del$6,
3155
+ get: get$8,
3297
3156
  getAll: getAll,
3298
- getMany: getMany$8,
3157
+ getMany: getMany$6,
3299
3158
  update: update$8
3300
3159
  });
3301
3160
 
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), {
3161
+ const getBaseUrl$7 = (params) => `/organizations/${params.organizationId}/teams`;
3162
+ const getEntityUrl$2 = (params) => `${getBaseUrl$7(params)}/${params.teamId}`;
3163
+ const get$7 = (http, params) => get$14(http, getEntityUrl$2(params));
3164
+ const getMany$5 = (http, params) => get$14(http, getBaseUrl$7(params), {
3306
3165
  params: normalizeSelect(params.query),
3307
3166
  });
3308
3167
  const getManyForSpace$2 = (http, params) => {
3309
- return get$19(http, `/spaces/${params.spaceId}/teams`, {
3168
+ return get$14(http, `/spaces/${params.spaceId}/teams`, {
3310
3169
  params: normalizeSelect(params.query),
3311
3170
  });
3312
3171
  };
3313
- const create$8 = (http, params, rawData, headers) => {
3314
- return post$1(http, getBaseUrl$9(params), rawData, { headers });
3172
+ const create$6 = (http, params, rawData, headers) => {
3173
+ return post$1(http, getBaseUrl$7(params), rawData, { headers });
3315
3174
  };
3316
3175
  const update$7 = (http, params, rawData, headers) => {
3317
3176
  const data = copy__default.default(rawData);
@@ -3323,31 +3182,31 @@ const update$7 = (http, params, rawData, headers) => {
3323
3182
  },
3324
3183
  });
3325
3184
  };
3326
- const del$7 = (http, params) => del$M(http, getEntityUrl$2(params));
3185
+ const del$5 = (http, params) => del$H(http, getEntityUrl$2(params));
3327
3186
 
3328
3187
  var Team = /*#__PURE__*/Object.freeze({
3329
3188
  __proto__: null,
3330
- create: create$8,
3331
- del: del$7,
3332
- get: get$9,
3333
- getMany: getMany$7,
3189
+ create: create$6,
3190
+ del: del$5,
3191
+ get: get$7,
3192
+ getMany: getMany$5,
3334
3193
  getManyForSpace: getManyForSpace$2,
3335
3194
  update: update$7
3336
3195
  });
3337
3196
 
3338
- const getBaseUrl$8 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
3197
+ const getBaseUrl$6 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
3339
3198
  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`, {
3199
+ const get$6 = (http, params) => get$14(http, getEntityUrl$1(params));
3200
+ const getManyForOrganization$3 = (http, params) => get$14(http, `/organizations/${params.organizationId}/team_memberships`, {
3342
3201
  params: normalizeSelect(params.query),
3343
3202
  });
3344
3203
  const getManyForTeam = (http, params) => {
3345
- return get$19(http, getBaseUrl$8(params), {
3204
+ return get$14(http, getBaseUrl$6(params), {
3346
3205
  params: normalizeSelect(params.query),
3347
3206
  });
3348
3207
  };
3349
- const create$7 = (http, params, rawData, headers) => {
3350
- return post$1(http, getBaseUrl$8(params), rawData, { headers });
3208
+ const create$5 = (http, params, rawData, headers) => {
3209
+ return post$1(http, getBaseUrl$6(params), rawData, { headers });
3351
3210
  };
3352
3211
  const update$6 = (http, params, rawData, headers) => {
3353
3212
  const data = copy__default.default(rawData);
@@ -3359,38 +3218,38 @@ const update$6 = (http, params, rawData, headers) => {
3359
3218
  },
3360
3219
  });
3361
3220
  };
3362
- const del$6 = (http, params) => del$M(http, getEntityUrl$1(params));
3221
+ const del$4 = (http, params) => del$H(http, getEntityUrl$1(params));
3363
3222
 
3364
3223
  var TeamMembership = /*#__PURE__*/Object.freeze({
3365
3224
  __proto__: null,
3366
- create: create$7,
3367
- del: del$6,
3368
- get: get$8,
3225
+ create: create$5,
3226
+ del: del$4,
3227
+ get: get$6,
3369
3228
  getManyForOrganization: getManyForOrganization$3,
3370
3229
  getManyForTeam: getManyForTeam,
3371
3230
  update: update$6
3372
3231
  });
3373
3232
 
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), {
3233
+ const getBaseUrl$5 = (params) => `/spaces/${params.spaceId}/team_space_memberships`;
3234
+ const getEntityUrl = (params) => `${getBaseUrl$5(params)}/${params.teamSpaceMembershipId}`;
3235
+ const get$5 = (http, params) => get$14(http, getEntityUrl(params));
3236
+ const getMany$4 = (http, params) => get$14(http, getBaseUrl$5(params), {
3378
3237
  params: params.query,
3379
3238
  });
3380
3239
  const getForOrganization$1 = (http, params) => {
3381
- return get$19(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
3240
+ return get$14(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
3382
3241
  };
3383
3242
  const getManyForOrganization$2 = (http, params) => {
3384
3243
  const query = params.query || {};
3385
3244
  if (params.teamId) {
3386
3245
  query['sys.team.sys.id'] = params.teamId;
3387
3246
  }
3388
- return get$19(http, `/organizations/${params.organizationId}/team_space_memberships`, {
3247
+ return get$14(http, `/organizations/${params.organizationId}/team_space_memberships`, {
3389
3248
  params: params.query,
3390
3249
  });
3391
3250
  };
3392
- const create$6 = (http, params, rawData, headers) => {
3393
- return post$1(http, getBaseUrl$7(params), rawData, {
3251
+ const create$4 = (http, params, rawData, headers) => {
3252
+ return post$1(http, getBaseUrl$5(params), rawData, {
3394
3253
  headers: {
3395
3254
  'x-contentful-team': params.teamId,
3396
3255
  ...headers,
@@ -3408,80 +3267,24 @@ const update$5 = (http, params, rawData, headers) => {
3408
3267
  },
3409
3268
  });
3410
3269
  };
3411
- const del$5 = (http, params) => {
3412
- return del$M(http, getEntityUrl(params));
3270
+ const del$3 = (http, params) => {
3271
+ return del$H(http, getEntityUrl(params));
3413
3272
  };
3414
3273
 
3415
3274
  var TeamSpaceMembership = /*#__PURE__*/Object.freeze({
3416
3275
  __proto__: null,
3417
- create: create$6,
3418
- del: del$5,
3419
- get: get$7,
3276
+ create: create$4,
3277
+ del: del$3,
3278
+ get: get$5,
3420
3279
  getForOrganization: getForOrganization$1,
3421
- getMany: getMany$6,
3280
+ getMany: getMany$4,
3422
3281
  getManyForOrganization: getManyForOrganization$2,
3423
3282
  update: update$5
3424
3283
  });
3425
3284
 
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
3285
  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));
3286
+ const get$4 = (http, params) => {
3287
+ return get$14(http, getUrl$1(params));
3485
3288
  };
3486
3289
  const update$4 = (http, params, rawData) => {
3487
3290
  const data = copy__default.default(rawData);
@@ -3495,66 +3298,8 @@ const update$4 = (http, params, rawData) => {
3495
3298
 
3496
3299
  var UIConfig = /*#__PURE__*/Object.freeze({
3497
3300
  __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
3301
  get: get$4,
3554
- getMany: getMany$4,
3555
- publish: publish,
3556
- unpublish: unpublish,
3557
- upsert: upsert
3302
+ update: update$4
3558
3303
  });
3559
3304
 
3560
3305
  const getBaseUrl$4 = (params) => {
@@ -3572,12 +3317,12 @@ var UploadCredential = /*#__PURE__*/Object.freeze({
3572
3317
  });
3573
3318
 
3574
3319
  const getManyForSpace$1 = (http, params) => {
3575
- return get$19(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
3320
+ return get$14(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
3576
3321
  params: params.query,
3577
3322
  });
3578
3323
  };
3579
3324
  const getManyForOrganization$1 = (http, params) => {
3580
- return get$19(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
3325
+ return get$14(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
3581
3326
  params: params.query,
3582
3327
  });
3583
3328
  };
@@ -3589,19 +3334,19 @@ var Usage = /*#__PURE__*/Object.freeze({
3589
3334
  });
3590
3335
 
3591
3336
  const getForSpace = (http, params) => {
3592
- return get$19(http, `/spaces/${params.spaceId}/users/${params.userId}`);
3337
+ return get$14(http, `/spaces/${params.spaceId}/users/${params.userId}`);
3593
3338
  };
3594
- const getCurrent = (http, params) => get$19(http, `/users/me`, { params: params?.query });
3339
+ const getCurrent = (http, params) => get$14(http, `/users/me`, { params: params?.query });
3595
3340
  const getManyForSpace = (http, params) => {
3596
- return get$19(http, `/spaces/${params.spaceId}/users`, {
3341
+ return get$14(http, `/spaces/${params.spaceId}/users`, {
3597
3342
  params: params.query,
3598
3343
  });
3599
3344
  };
3600
3345
  const getForOrganization = (http, params) => {
3601
- return get$19(http, `/organizations/${params.organizationId}/users/${params.userId}`);
3346
+ return get$14(http, `/organizations/${params.organizationId}/users/${params.userId}`);
3602
3347
  };
3603
3348
  const getManyForOrganization = (http, params) => {
3604
- return get$19(http, `/organizations/${params.organizationId}/users`, {
3349
+ return get$14(http, `/organizations/${params.organizationId}/users`, {
3605
3350
  params: params.query,
3606
3351
  });
3607
3352
  };
@@ -3617,7 +3362,7 @@ var User = /*#__PURE__*/Object.freeze({
3617
3362
 
3618
3363
  const getUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`;
3619
3364
  const get$3 = (http, params) => {
3620
- return get$19(http, getUrl(params));
3365
+ return get$14(http, getUrl(params));
3621
3366
  };
3622
3367
  const update$3 = (http, params, rawData) => {
3623
3368
  const data = copy__default.default(rawData);
@@ -3645,32 +3390,32 @@ const getWebhookSettingsUrl = (params) => `/spaces/${params.spaceId}/webhook_set
3645
3390
  const getWebhookSigningSecretUrl = (params) => `${getWebhookSettingsUrl(params)}/signing_secret`;
3646
3391
  const getWebhookRetryPolicyUrl = (params) => `${getWebhookSettingsUrl(params)}/retry_policy`;
3647
3392
  const get$2 = (http, params) => {
3648
- return get$19(http, getWebhookUrl(params));
3393
+ return get$14(http, getWebhookUrl(params));
3649
3394
  };
3650
3395
  const getManyCallDetails = (http, params) => {
3651
- return get$19(http, getWebhookCallUrl(params), {
3396
+ return get$14(http, getWebhookCallUrl(params), {
3652
3397
  params: normalizeSelect(params.query),
3653
3398
  });
3654
3399
  };
3655
3400
  const getCallDetails = (http, params) => {
3656
- return get$19(http, getWebhookCallDetailsUrl(params));
3401
+ return get$14(http, getWebhookCallDetailsUrl(params));
3657
3402
  };
3658
3403
  const getHealthStatus = (http, params) => {
3659
- return get$19(http, getWebhookHealthUrl(params));
3404
+ return get$14(http, getWebhookHealthUrl(params));
3660
3405
  };
3661
3406
  const getMany$3 = (http, params) => {
3662
- return get$19(http, getBaseUrl$3(params), {
3407
+ return get$14(http, getBaseUrl$3(params), {
3663
3408
  params: normalizeSelect(params.query),
3664
3409
  });
3665
3410
  };
3666
3411
  const getSigningSecret = (http, params) => {
3667
- return get$19(http, getWebhookSigningSecretUrl(params));
3412
+ return get$14(http, getWebhookSigningSecretUrl(params));
3668
3413
  };
3669
3414
  /**
3670
3415
  * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
3671
3416
  */
3672
3417
  const getRetryPolicy = (http, params) => {
3673
- return get$19(http, getWebhookRetryPolicyUrl(params));
3418
+ return get$14(http, getWebhookRetryPolicyUrl(params));
3674
3419
  };
3675
3420
  const create$2 = (http, params, rawData, headers) => {
3676
3421
  const data = copy__default.default(rawData);
@@ -3702,16 +3447,16 @@ const upsertRetryPolicy = async (http, params, rawData) => {
3702
3447
  return put$1(http, getWebhookRetryPolicyUrl(params), data);
3703
3448
  };
3704
3449
  const del$2 = (http, params) => {
3705
- return del$M(http, getWebhookUrl(params));
3450
+ return del$H(http, getWebhookUrl(params));
3706
3451
  };
3707
3452
  const deleteSigningSecret = async (http, params) => {
3708
- return del$M(http, getWebhookSigningSecretUrl(params));
3453
+ return del$H(http, getWebhookSigningSecretUrl(params));
3709
3454
  };
3710
3455
  /**
3711
3456
  * @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
3712
3457
  */
3713
3458
  const deleteRetryPolicy = async (http, params) => {
3714
- return del$M(http, getWebhookRetryPolicyUrl(params));
3459
+ return del$H(http, getWebhookRetryPolicyUrl(params));
3715
3460
  };
3716
3461
 
3717
3462
  var Webhook = /*#__PURE__*/Object.freeze({
@@ -3736,11 +3481,11 @@ var Webhook = /*#__PURE__*/Object.freeze({
3736
3481
  const getBaseUrl$2 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`;
3737
3482
  const getWorkflowUrl = (params) => `${getBaseUrl$2(params)}/${params.workflowId}`;
3738
3483
  const completeWorkflowUrl = (params) => `${getWorkflowUrl(params)}/complete`;
3739
- const getMany$2 = (http, params, headers) => get$19(http, getBaseUrl$2(params), {
3484
+ const getMany$2 = (http, params, headers) => get$14(http, getBaseUrl$2(params), {
3740
3485
  headers,
3741
3486
  params: params.query,
3742
3487
  });
3743
- const get$1 = (http, params, headers) => get$19(http, getWorkflowUrl(params), {
3488
+ const get$1 = (http, params, headers) => get$14(http, getWorkflowUrl(params), {
3744
3489
  headers,
3745
3490
  });
3746
3491
  const create$1 = (http, params, rawData, headers) => {
@@ -3760,7 +3505,7 @@ const update$1 = (http, params, rawData, headers) => {
3760
3505
  });
3761
3506
  };
3762
3507
  const del$1 = (http, { version, ...params }, headers) => {
3763
- return del$M(http, getWorkflowUrl(params), {
3508
+ return del$H(http, getWorkflowUrl(params), {
3764
3509
  headers: { 'X-Contentful-Version': version, ...headers },
3765
3510
  });
3766
3511
  };
@@ -3782,10 +3527,10 @@ var Workflow = /*#__PURE__*/Object.freeze({
3782
3527
 
3783
3528
  const getBaseUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`;
3784
3529
  const getWorkflowDefinitionUrl = (params) => `${getBaseUrl$1(params)}/${params.workflowDefinitionId}`;
3785
- const get = (http, params, headers) => get$19(http, getWorkflowDefinitionUrl(params), {
3530
+ const get = (http, params, headers) => get$14(http, getWorkflowDefinitionUrl(params), {
3786
3531
  headers,
3787
3532
  });
3788
- const getMany$1 = (http, params, headers) => get$19(http, getBaseUrl$1(params), {
3533
+ const getMany$1 = (http, params, headers) => get$14(http, getBaseUrl$1(params), {
3789
3534
  headers,
3790
3535
  params: params.query,
3791
3536
  });
@@ -3806,7 +3551,7 @@ const update = (http, params, rawData, headers) => {
3806
3551
  });
3807
3552
  };
3808
3553
  const del = (http, { version, ...params }, headers) => {
3809
- return del$M(http, getWorkflowDefinitionUrl(params), {
3554
+ return del$H(http, getWorkflowDefinitionUrl(params), {
3810
3555
  headers: { 'X-Contentful-Version': version, ...headers },
3811
3556
  });
3812
3557
  };
@@ -3821,7 +3566,7 @@ var WorkflowDefinition = /*#__PURE__*/Object.freeze({
3821
3566
  });
3822
3567
 
3823
3568
  const getBaseUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`;
3824
- const getMany = (http, params, headers) => get$19(http, getBaseUrl(params), {
3569
+ const getMany = (http, params, headers) => get$14(http, getBaseUrl(params), {
3825
3570
  headers,
3826
3571
  params: params.query,
3827
3572
  });
@@ -3860,7 +3605,6 @@ var endpoints = {
3860
3605
  Concept,
3861
3606
  ConceptScheme,
3862
3607
  ContentType,
3863
- DataAssembly,
3864
3608
  EditorInterface,
3865
3609
  EligibleLicense,
3866
3610
  Entry,
@@ -3869,7 +3613,6 @@ var endpoints = {
3869
3613
  EnvironmentTemplate,
3870
3614
  EnvironmentTemplateInstallation,
3871
3615
  Extension,
3872
- Fragment,
3873
3616
  Function,
3874
3617
  FunctionLog,
3875
3618
  Http,
@@ -3906,11 +3649,9 @@ var endpoints = {
3906
3649
  Team,
3907
3650
  TeamMembership,
3908
3651
  TeamSpaceMembership,
3909
- Template,
3910
3652
  UIConfig,
3911
3653
  Upload,
3912
3654
  UploadCredential,
3913
- Experience,
3914
3655
  Usage,
3915
3656
  User,
3916
3657
  UserUIConfig,
@@ -14376,12 +14117,6 @@ const createPlainClient = (makeRequest, defaults) => {
14376
14117
  },
14377
14118
  componentType: {
14378
14119
  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
14120
  },
14386
14121
  contentType: {
14387
14122
  get: wrap(wrapParams, 'ContentType', 'get'),
@@ -14395,17 +14130,6 @@ const createPlainClient = (makeRequest, defaults) => {
14395
14130
  createWithId: wrap(wrapParams, 'ContentType', 'createWithId'),
14396
14131
  omitAndDeleteField: (params, contentType, fieldId) => omitAndDeleteField(makeRequest, { ...{ ...defaults, ...params }, fieldId }, contentType),
14397
14132
  },
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
14133
  user: {
14410
14134
  getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'),
14411
14135
  getForSpace: wrap(wrapParams, 'User', 'getForSpace'),
@@ -14753,24 +14477,6 @@ const createPlainClient = (makeRequest, defaults) => {
14753
14477
  update: wrap(wrapParams, 'TeamSpaceMembership', 'update'),
14754
14478
  delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete'),
14755
14479
  },
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
14480
  uiConfig: {
14775
14481
  get: wrap(wrapParams, 'UIConfig', 'get'),
14776
14482
  update: wrap(wrapParams, 'UIConfig', 'update'),
@@ -14779,15 +14485,6 @@ const createPlainClient = (makeRequest, defaults) => {
14779
14485
  get: wrap(wrapParams, 'UserUIConfig', 'get'),
14780
14486
  update: wrap(wrapParams, 'UserUIConfig', 'update'),
14781
14487
  },
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
14488
  workflowDefinition: {
14792
14489
  get: wrap(wrapParams, 'WorkflowDefinition', 'get'),
14793
14490
  getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),