@caraer/client 2.0.507 → 2.0.508

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.
package/dist/esm/api.js CHANGED
@@ -5046,6 +5046,43 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration) {
5046
5046
  options: localVarRequestOptions,
5047
5047
  };
5048
5048
  }),
5049
+ /**
5050
+ *
5051
+ * @summary Discard a Modify-this-module playground session
5052
+ * @param {string} recordUuid
5053
+ * @param {string} sessionId
5054
+ * @param {*} [options] Override http request option.
5055
+ * @throws {RequiredError}
5056
+ */
5057
+ discardModuleFork: (recordUuid_1, sessionId_1, ...args_1) => __awaiter(this, [recordUuid_1, sessionId_1, ...args_1], void 0, function* (recordUuid, sessionId, options = {}) {
5058
+ // verify required parameter 'recordUuid' is not null or undefined
5059
+ assertParamExists('discardModuleFork', 'recordUuid', recordUuid);
5060
+ // verify required parameter 'sessionId' is not null or undefined
5061
+ assertParamExists('discardModuleFork', 'sessionId', sessionId);
5062
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}`
5063
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5064
+ .replace('{sessionId}', encodeURIComponent(String(sessionId)));
5065
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5066
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5067
+ let baseOptions;
5068
+ if (configuration) {
5069
+ baseOptions = configuration.baseOptions;
5070
+ }
5071
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5072
+ const localVarHeaderParameter = {};
5073
+ const localVarQueryParameter = {};
5074
+ // authentication bearerAuth required
5075
+ // http bearer authentication required
5076
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5077
+ localVarHeaderParameter['Accept'] = 'application/json';
5078
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5079
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5080
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5081
+ return {
5082
+ url: toPathString(localVarUrlObj),
5083
+ options: localVarRequestOptions,
5084
+ };
5085
+ }),
5049
5086
  /**
5050
5087
  * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
5051
5088
  * @summary Create or reuse the custom 404 page
@@ -5368,6 +5405,48 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration) {
5368
5405
  options: localVarRequestOptions,
5369
5406
  };
5370
5407
  }),
5408
+ /**
5409
+ *
5410
+ * @summary Rewrite forked module source from a prompt
5411
+ * @param {string} recordUuid
5412
+ * @param {string} sessionId
5413
+ * @param {{ [key: string]: any | null; }} requestBody
5414
+ * @param {*} [options] Override http request option.
5415
+ * @throws {RequiredError}
5416
+ */
5417
+ promptModuleFork: (recordUuid_1, sessionId_1, requestBody_1, ...args_1) => __awaiter(this, [recordUuid_1, sessionId_1, requestBody_1, ...args_1], void 0, function* (recordUuid, sessionId, requestBody, options = {}) {
5418
+ // verify required parameter 'recordUuid' is not null or undefined
5419
+ assertParamExists('promptModuleFork', 'recordUuid', recordUuid);
5420
+ // verify required parameter 'sessionId' is not null or undefined
5421
+ assertParamExists('promptModuleFork', 'sessionId', sessionId);
5422
+ // verify required parameter 'requestBody' is not null or undefined
5423
+ assertParamExists('promptModuleFork', 'requestBody', requestBody);
5424
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/prompt`
5425
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5426
+ .replace('{sessionId}', encodeURIComponent(String(sessionId)));
5427
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5428
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5429
+ let baseOptions;
5430
+ if (configuration) {
5431
+ baseOptions = configuration.baseOptions;
5432
+ }
5433
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5434
+ const localVarHeaderParameter = {};
5435
+ const localVarQueryParameter = {};
5436
+ // authentication bearerAuth required
5437
+ // http bearer authentication required
5438
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5439
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5440
+ localVarHeaderParameter['Accept'] = 'application/json';
5441
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5442
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5443
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5444
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
5445
+ return {
5446
+ url: toPathString(localVarUrlObj),
5447
+ options: localVarRequestOptions,
5448
+ };
5449
+ }),
5371
5450
  /**
5372
5451
  * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
5373
5452
  * @summary Publish one locale, or all of them
@@ -5534,6 +5613,48 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration) {
5534
5613
  options: localVarRequestOptions,
5535
5614
  };
5536
5615
  }),
5616
+ /**
5617
+ * Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
5618
+ * @summary Publish the forked module into a private app
5619
+ * @param {string} recordUuid
5620
+ * @param {string} sessionId
5621
+ * @param {{ [key: string]: any | null; }} requestBody
5622
+ * @param {*} [options] Override http request option.
5623
+ * @throws {RequiredError}
5624
+ */
5625
+ saveModuleFork: (recordUuid_1, sessionId_1, requestBody_1, ...args_1) => __awaiter(this, [recordUuid_1, sessionId_1, requestBody_1, ...args_1], void 0, function* (recordUuid, sessionId, requestBody, options = {}) {
5626
+ // verify required parameter 'recordUuid' is not null or undefined
5627
+ assertParamExists('saveModuleFork', 'recordUuid', recordUuid);
5628
+ // verify required parameter 'sessionId' is not null or undefined
5629
+ assertParamExists('saveModuleFork', 'sessionId', sessionId);
5630
+ // verify required parameter 'requestBody' is not null or undefined
5631
+ assertParamExists('saveModuleFork', 'requestBody', requestBody);
5632
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/save`
5633
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5634
+ .replace('{sessionId}', encodeURIComponent(String(sessionId)));
5635
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5636
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5637
+ let baseOptions;
5638
+ if (configuration) {
5639
+ baseOptions = configuration.baseOptions;
5640
+ }
5641
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5642
+ const localVarHeaderParameter = {};
5643
+ const localVarQueryParameter = {};
5644
+ // authentication bearerAuth required
5645
+ // http bearer authentication required
5646
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5647
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5648
+ localVarHeaderParameter['Accept'] = 'application/json';
5649
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5650
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5651
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5652
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
5653
+ return {
5654
+ url: toPathString(localVarUrlObj),
5655
+ options: localVarRequestOptions,
5656
+ };
5657
+ }),
5537
5658
  /**
5538
5659
  *
5539
5660
  * @summary Replace a CMS v2 object template
@@ -5576,6 +5697,44 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration) {
5576
5697
  options: localVarRequestOptions,
5577
5698
  };
5578
5699
  }),
5700
+ /**
5701
+ * CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it.
5702
+ * @summary Start a Modify-this-module playground session
5703
+ * @param {string} recordUuid
5704
+ * @param {{ [key: string]: any | null; }} requestBody
5705
+ * @param {*} [options] Override http request option.
5706
+ * @throws {RequiredError}
5707
+ */
5708
+ startModuleFork: (recordUuid_1, requestBody_1, ...args_1) => __awaiter(this, [recordUuid_1, requestBody_1, ...args_1], void 0, function* (recordUuid, requestBody, options = {}) {
5709
+ // verify required parameter 'recordUuid' is not null or undefined
5710
+ assertParamExists('startModuleFork', 'recordUuid', recordUuid);
5711
+ // verify required parameter 'requestBody' is not null or undefined
5712
+ assertParamExists('startModuleFork', 'requestBody', requestBody);
5713
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions`
5714
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5715
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5716
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5717
+ let baseOptions;
5718
+ if (configuration) {
5719
+ baseOptions = configuration.baseOptions;
5720
+ }
5721
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5722
+ const localVarHeaderParameter = {};
5723
+ const localVarQueryParameter = {};
5724
+ // authentication bearerAuth required
5725
+ // http bearer authentication required
5726
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5727
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5728
+ localVarHeaderParameter['Accept'] = 'application/json';
5729
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5730
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5731
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5732
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
5733
+ return {
5734
+ url: toPathString(localVarUrlObj),
5735
+ options: localVarRequestOptions,
5736
+ };
5737
+ }),
5579
5738
  /**
5580
5739
  *
5581
5740
  * @summary Take one locale offline
@@ -5692,6 +5851,23 @@ export const CMSV2PagesApiFp = function (configuration) {
5692
5851
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5693
5852
  });
5694
5853
  },
5854
+ /**
5855
+ *
5856
+ * @summary Discard a Modify-this-module playground session
5857
+ * @param {string} recordUuid
5858
+ * @param {string} sessionId
5859
+ * @param {*} [options] Override http request option.
5860
+ * @throws {RequiredError}
5861
+ */
5862
+ discardModuleFork(recordUuid, sessionId, options) {
5863
+ return __awaiter(this, void 0, void 0, function* () {
5864
+ var _a, _b, _c;
5865
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discardModuleFork(recordUuid, sessionId, options);
5866
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5867
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.discardModuleFork']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5868
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5869
+ });
5870
+ },
5695
5871
  /**
5696
5872
  * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
5697
5873
  * @summary Create or reuse the custom 404 page
@@ -5842,6 +6018,24 @@ export const CMSV2PagesApiFp = function (configuration) {
5842
6018
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5843
6019
  });
5844
6020
  },
6021
+ /**
6022
+ *
6023
+ * @summary Rewrite forked module source from a prompt
6024
+ * @param {string} recordUuid
6025
+ * @param {string} sessionId
6026
+ * @param {{ [key: string]: any | null; }} requestBody
6027
+ * @param {*} [options] Override http request option.
6028
+ * @throws {RequiredError}
6029
+ */
6030
+ promptModuleFork(recordUuid, sessionId, requestBody, options) {
6031
+ return __awaiter(this, void 0, void 0, function* () {
6032
+ var _a, _b, _c;
6033
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.promptModuleFork(recordUuid, sessionId, requestBody, options);
6034
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6035
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.promptModuleFork']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6036
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6037
+ });
6038
+ },
5845
6039
  /**
5846
6040
  * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
5847
6041
  * @summary Publish one locale, or all of them
@@ -5914,6 +6108,24 @@ export const CMSV2PagesApiFp = function (configuration) {
5914
6108
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5915
6109
  });
5916
6110
  },
6111
+ /**
6112
+ * Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
6113
+ * @summary Publish the forked module into a private app
6114
+ * @param {string} recordUuid
6115
+ * @param {string} sessionId
6116
+ * @param {{ [key: string]: any | null; }} requestBody
6117
+ * @param {*} [options] Override http request option.
6118
+ * @throws {RequiredError}
6119
+ */
6120
+ saveModuleFork(recordUuid, sessionId, requestBody, options) {
6121
+ return __awaiter(this, void 0, void 0, function* () {
6122
+ var _a, _b, _c;
6123
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.saveModuleFork(recordUuid, sessionId, requestBody, options);
6124
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6125
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.saveModuleFork']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6126
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6127
+ });
6128
+ },
5917
6129
  /**
5918
6130
  *
5919
6131
  * @summary Replace a CMS v2 object template
@@ -5932,6 +6144,23 @@ export const CMSV2PagesApiFp = function (configuration) {
5932
6144
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5933
6145
  });
5934
6146
  },
6147
+ /**
6148
+ * CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it.
6149
+ * @summary Start a Modify-this-module playground session
6150
+ * @param {string} recordUuid
6151
+ * @param {{ [key: string]: any | null; }} requestBody
6152
+ * @param {*} [options] Override http request option.
6153
+ * @throws {RequiredError}
6154
+ */
6155
+ startModuleFork(recordUuid, requestBody, options) {
6156
+ return __awaiter(this, void 0, void 0, function* () {
6157
+ var _a, _b, _c;
6158
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startModuleFork(recordUuid, requestBody, options);
6159
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6160
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.startModuleFork']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6161
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6162
+ });
6163
+ },
5935
6164
  /**
5936
6165
  *
5937
6166
  * @summary Take one locale offline
@@ -5996,6 +6225,17 @@ export const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
5996
6225
  createTranslation(recordUuid, key, options) {
5997
6226
  return localVarFp.createTranslation(recordUuid, key, options).then((request) => request(axios, basePath));
5998
6227
  },
6228
+ /**
6229
+ *
6230
+ * @summary Discard a Modify-this-module playground session
6231
+ * @param {string} recordUuid
6232
+ * @param {string} sessionId
6233
+ * @param {*} [options] Override http request option.
6234
+ * @throws {RequiredError}
6235
+ */
6236
+ discardModuleFork(recordUuid, sessionId, options) {
6237
+ return localVarFp.discardModuleFork(recordUuid, sessionId, options).then((request) => request(axios, basePath));
6238
+ },
5999
6239
  /**
6000
6240
  * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
6001
6241
  * @summary Create or reuse the custom 404 page
@@ -6092,6 +6332,18 @@ export const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
6092
6332
  previewLink(recordUuid, locale, state, options) {
6093
6333
  return localVarFp.previewLink(recordUuid, locale, state, options).then((request) => request(axios, basePath));
6094
6334
  },
6335
+ /**
6336
+ *
6337
+ * @summary Rewrite forked module source from a prompt
6338
+ * @param {string} recordUuid
6339
+ * @param {string} sessionId
6340
+ * @param {{ [key: string]: any | null; }} requestBody
6341
+ * @param {*} [options] Override http request option.
6342
+ * @throws {RequiredError}
6343
+ */
6344
+ promptModuleFork(recordUuid, sessionId, requestBody, options) {
6345
+ return localVarFp.promptModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
6346
+ },
6095
6347
  /**
6096
6348
  * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
6097
6349
  * @summary Publish one locale, or all of them
@@ -6140,6 +6392,18 @@ export const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
6140
6392
  saveMeta(recordUuid, requestBody, locale, options) {
6141
6393
  return localVarFp.saveMeta(recordUuid, requestBody, locale, options).then((request) => request(axios, basePath));
6142
6394
  },
6395
+ /**
6396
+ * Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
6397
+ * @summary Publish the forked module into a private app
6398
+ * @param {string} recordUuid
6399
+ * @param {string} sessionId
6400
+ * @param {{ [key: string]: any | null; }} requestBody
6401
+ * @param {*} [options] Override http request option.
6402
+ * @throws {RequiredError}
6403
+ */
6404
+ saveModuleFork(recordUuid, sessionId, requestBody, options) {
6405
+ return localVarFp.saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
6406
+ },
6143
6407
  /**
6144
6408
  *
6145
6409
  * @summary Replace a CMS v2 object template
@@ -6152,6 +6416,17 @@ export const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
6152
6416
  saveTemplate(objectUuid, cmsPageDocument, locale, options) {
6153
6417
  return localVarFp.saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath));
6154
6418
  },
6419
+ /**
6420
+ * CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it.
6421
+ * @summary Start a Modify-this-module playground session
6422
+ * @param {string} recordUuid
6423
+ * @param {{ [key: string]: any | null; }} requestBody
6424
+ * @param {*} [options] Override http request option.
6425
+ * @throws {RequiredError}
6426
+ */
6427
+ startModuleFork(recordUuid, requestBody, options) {
6428
+ return localVarFp.startModuleFork(recordUuid, requestBody, options).then((request) => request(axios, basePath));
6429
+ },
6155
6430
  /**
6156
6431
  *
6157
6432
  * @summary Take one locale offline
@@ -6202,6 +6477,17 @@ export class CMSV2PagesApi extends BaseAPI {
6202
6477
  createTranslation(recordUuid, key, options) {
6203
6478
  return CMSV2PagesApiFp(this.configuration).createTranslation(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
6204
6479
  }
6480
+ /**
6481
+ *
6482
+ * @summary Discard a Modify-this-module playground session
6483
+ * @param {string} recordUuid
6484
+ * @param {string} sessionId
6485
+ * @param {*} [options] Override http request option.
6486
+ * @throws {RequiredError}
6487
+ */
6488
+ discardModuleFork(recordUuid, sessionId, options) {
6489
+ return CMSV2PagesApiFp(this.configuration).discardModuleFork(recordUuid, sessionId, options).then((request) => request(this.axios, this.basePath));
6490
+ }
6205
6491
  /**
6206
6492
  * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
6207
6493
  * @summary Create or reuse the custom 404 page
@@ -6298,6 +6584,18 @@ export class CMSV2PagesApi extends BaseAPI {
6298
6584
  previewLink(recordUuid, locale, state, options) {
6299
6585
  return CMSV2PagesApiFp(this.configuration).previewLink(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath));
6300
6586
  }
6587
+ /**
6588
+ *
6589
+ * @summary Rewrite forked module source from a prompt
6590
+ * @param {string} recordUuid
6591
+ * @param {string} sessionId
6592
+ * @param {{ [key: string]: any | null; }} requestBody
6593
+ * @param {*} [options] Override http request option.
6594
+ * @throws {RequiredError}
6595
+ */
6596
+ promptModuleFork(recordUuid, sessionId, requestBody, options) {
6597
+ return CMSV2PagesApiFp(this.configuration).promptModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
6598
+ }
6301
6599
  /**
6302
6600
  * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
6303
6601
  * @summary Publish one locale, or all of them
@@ -6346,6 +6644,18 @@ export class CMSV2PagesApi extends BaseAPI {
6346
6644
  saveMeta(recordUuid, requestBody, locale, options) {
6347
6645
  return CMSV2PagesApiFp(this.configuration).saveMeta(recordUuid, requestBody, locale, options).then((request) => request(this.axios, this.basePath));
6348
6646
  }
6647
+ /**
6648
+ * Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
6649
+ * @summary Publish the forked module into a private app
6650
+ * @param {string} recordUuid
6651
+ * @param {string} sessionId
6652
+ * @param {{ [key: string]: any | null; }} requestBody
6653
+ * @param {*} [options] Override http request option.
6654
+ * @throws {RequiredError}
6655
+ */
6656
+ saveModuleFork(recordUuid, sessionId, requestBody, options) {
6657
+ return CMSV2PagesApiFp(this.configuration).saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
6658
+ }
6349
6659
  /**
6350
6660
  *
6351
6661
  * @summary Replace a CMS v2 object template
@@ -6358,6 +6668,17 @@ export class CMSV2PagesApi extends BaseAPI {
6358
6668
  saveTemplate(objectUuid, cmsPageDocument, locale, options) {
6359
6669
  return CMSV2PagesApiFp(this.configuration).saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath));
6360
6670
  }
6671
+ /**
6672
+ * CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it.
6673
+ * @summary Start a Modify-this-module playground session
6674
+ * @param {string} recordUuid
6675
+ * @param {{ [key: string]: any | null; }} requestBody
6676
+ * @param {*} [options] Override http request option.
6677
+ * @throws {RequiredError}
6678
+ */
6679
+ startModuleFork(recordUuid, requestBody, options) {
6680
+ return CMSV2PagesApiFp(this.configuration).startModuleFork(recordUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
6681
+ }
6361
6682
  /**
6362
6683
  *
6363
6684
  * @summary Take one locale offline