@wix/create-app 0.0.112 → 0.0.113

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/build/index.js CHANGED
@@ -15653,6 +15653,343 @@ var require_index_node = __commonJS({
15653
15653
  }
15654
15654
  });
15655
15655
 
15656
+ // ../../node_modules/dotenv/package.json
15657
+ var require_package2 = __commonJS({
15658
+ "../../node_modules/dotenv/package.json"(exports, module2) {
15659
+ module2.exports = {
15660
+ name: "dotenv",
15661
+ version: "16.5.0",
15662
+ description: "Loads environment variables from .env file",
15663
+ main: "lib/main.js",
15664
+ types: "lib/main.d.ts",
15665
+ exports: {
15666
+ ".": {
15667
+ types: "./lib/main.d.ts",
15668
+ require: "./lib/main.js",
15669
+ default: "./lib/main.js"
15670
+ },
15671
+ "./config": "./config.js",
15672
+ "./config.js": "./config.js",
15673
+ "./lib/env-options": "./lib/env-options.js",
15674
+ "./lib/env-options.js": "./lib/env-options.js",
15675
+ "./lib/cli-options": "./lib/cli-options.js",
15676
+ "./lib/cli-options.js": "./lib/cli-options.js",
15677
+ "./package.json": "./package.json"
15678
+ },
15679
+ scripts: {
15680
+ "dts-check": "tsc --project tests/types/tsconfig.json",
15681
+ lint: "standard",
15682
+ pretest: "npm run lint && npm run dts-check",
15683
+ test: "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
15684
+ "test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",
15685
+ prerelease: "npm test",
15686
+ release: "standard-version"
15687
+ },
15688
+ repository: {
15689
+ type: "git",
15690
+ url: "git://github.com/motdotla/dotenv.git"
15691
+ },
15692
+ homepage: "https://github.com/motdotla/dotenv#readme",
15693
+ funding: "https://dotenvx.com",
15694
+ keywords: [
15695
+ "dotenv",
15696
+ "env",
15697
+ ".env",
15698
+ "environment",
15699
+ "variables",
15700
+ "config",
15701
+ "settings"
15702
+ ],
15703
+ readmeFilename: "README.md",
15704
+ license: "BSD-2-Clause",
15705
+ devDependencies: {
15706
+ "@types/node": "^18.11.3",
15707
+ decache: "^4.6.2",
15708
+ sinon: "^14.0.1",
15709
+ standard: "^17.0.0",
15710
+ "standard-version": "^9.5.0",
15711
+ tap: "^19.2.0",
15712
+ typescript: "^4.8.4"
15713
+ },
15714
+ engines: {
15715
+ node: ">=12"
15716
+ },
15717
+ browser: {
15718
+ fs: false
15719
+ }
15720
+ };
15721
+ }
15722
+ });
15723
+
15724
+ // ../../node_modules/dotenv/lib/main.js
15725
+ var require_main = __commonJS({
15726
+ "../../node_modules/dotenv/lib/main.js"(exports, module2) {
15727
+ "use strict";
15728
+ init_esm_shims();
15729
+ var fs11 = __require("fs");
15730
+ var path8 = __require("path");
15731
+ var os8 = __require("os");
15732
+ var crypto2 = __require("crypto");
15733
+ var packageJson2 = require_package2();
15734
+ var version = packageJson2.version;
15735
+ var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
15736
+ function parse2(src) {
15737
+ const obj = {};
15738
+ let lines = src.toString();
15739
+ lines = lines.replace(/\r\n?/mg, "\n");
15740
+ let match22;
15741
+ while ((match22 = LINE.exec(lines)) != null) {
15742
+ const key = match22[1];
15743
+ let value2 = match22[2] || "";
15744
+ value2 = value2.trim();
15745
+ const maybeQuote = value2[0];
15746
+ value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
15747
+ if (maybeQuote === '"') {
15748
+ value2 = value2.replace(/\\n/g, "\n");
15749
+ value2 = value2.replace(/\\r/g, "\r");
15750
+ }
15751
+ obj[key] = value2;
15752
+ }
15753
+ return obj;
15754
+ }
15755
+ function _parseVault(options) {
15756
+ const vaultPath = _vaultPath(options);
15757
+ const result = DotenvModule.configDotenv({ path: vaultPath });
15758
+ if (!result.parsed) {
15759
+ const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
15760
+ err.code = "MISSING_DATA";
15761
+ throw err;
15762
+ }
15763
+ const keys = _dotenvKey(options).split(",");
15764
+ const length = keys.length;
15765
+ let decrypted;
15766
+ for (let i2 = 0; i2 < length; i2++) {
15767
+ try {
15768
+ const key = keys[i2].trim();
15769
+ const attrs = _instructions(result, key);
15770
+ decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
15771
+ break;
15772
+ } catch (error) {
15773
+ if (i2 + 1 >= length) {
15774
+ throw error;
15775
+ }
15776
+ }
15777
+ }
15778
+ return DotenvModule.parse(decrypted);
15779
+ }
15780
+ function _warn(message) {
15781
+ console.log(`[dotenv@${version}][WARN] ${message}`);
15782
+ }
15783
+ function _debug(message) {
15784
+ console.log(`[dotenv@${version}][DEBUG] ${message}`);
15785
+ }
15786
+ function _dotenvKey(options) {
15787
+ if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
15788
+ return options.DOTENV_KEY;
15789
+ }
15790
+ if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
15791
+ return process.env.DOTENV_KEY;
15792
+ }
15793
+ return "";
15794
+ }
15795
+ function _instructions(result, dotenvKey) {
15796
+ let uri;
15797
+ try {
15798
+ uri = new URL(dotenvKey);
15799
+ } catch (error) {
15800
+ if (error.code === "ERR_INVALID_URL") {
15801
+ const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
15802
+ err.code = "INVALID_DOTENV_KEY";
15803
+ throw err;
15804
+ }
15805
+ throw error;
15806
+ }
15807
+ const key = uri.password;
15808
+ if (!key) {
15809
+ const err = new Error("INVALID_DOTENV_KEY: Missing key part");
15810
+ err.code = "INVALID_DOTENV_KEY";
15811
+ throw err;
15812
+ }
15813
+ const environment = uri.searchParams.get("environment");
15814
+ if (!environment) {
15815
+ const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
15816
+ err.code = "INVALID_DOTENV_KEY";
15817
+ throw err;
15818
+ }
15819
+ const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
15820
+ const ciphertext = result.parsed[environmentKey];
15821
+ if (!ciphertext) {
15822
+ const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
15823
+ err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
15824
+ throw err;
15825
+ }
15826
+ return { ciphertext, key };
15827
+ }
15828
+ function _vaultPath(options) {
15829
+ let possibleVaultPath = null;
15830
+ if (options && options.path && options.path.length > 0) {
15831
+ if (Array.isArray(options.path)) {
15832
+ for (const filepath of options.path) {
15833
+ if (fs11.existsSync(filepath)) {
15834
+ possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
15835
+ }
15836
+ }
15837
+ } else {
15838
+ possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
15839
+ }
15840
+ } else {
15841
+ possibleVaultPath = path8.resolve(process.cwd(), ".env.vault");
15842
+ }
15843
+ if (fs11.existsSync(possibleVaultPath)) {
15844
+ return possibleVaultPath;
15845
+ }
15846
+ return null;
15847
+ }
15848
+ function _resolveHome(envPath) {
15849
+ return envPath[0] === "~" ? path8.join(os8.homedir(), envPath.slice(1)) : envPath;
15850
+ }
15851
+ function _configVault(options) {
15852
+ const debug3 = Boolean(options && options.debug);
15853
+ if (debug3) {
15854
+ _debug("Loading env from encrypted .env.vault");
15855
+ }
15856
+ const parsed = DotenvModule._parseVault(options);
15857
+ let processEnv = process.env;
15858
+ if (options && options.processEnv != null) {
15859
+ processEnv = options.processEnv;
15860
+ }
15861
+ DotenvModule.populate(processEnv, parsed, options);
15862
+ return { parsed };
15863
+ }
15864
+ function configDotenv(options) {
15865
+ const dotenvPath = path8.resolve(process.cwd(), ".env");
15866
+ let encoding = "utf8";
15867
+ const debug3 = Boolean(options && options.debug);
15868
+ if (options && options.encoding) {
15869
+ encoding = options.encoding;
15870
+ } else {
15871
+ if (debug3) {
15872
+ _debug("No encoding is specified. UTF-8 is used by default");
15873
+ }
15874
+ }
15875
+ let optionPaths = [dotenvPath];
15876
+ if (options && options.path) {
15877
+ if (!Array.isArray(options.path)) {
15878
+ optionPaths = [_resolveHome(options.path)];
15879
+ } else {
15880
+ optionPaths = [];
15881
+ for (const filepath of options.path) {
15882
+ optionPaths.push(_resolveHome(filepath));
15883
+ }
15884
+ }
15885
+ }
15886
+ let lastError;
15887
+ const parsedAll = {};
15888
+ for (const path9 of optionPaths) {
15889
+ try {
15890
+ const parsed = DotenvModule.parse(fs11.readFileSync(path9, { encoding }));
15891
+ DotenvModule.populate(parsedAll, parsed, options);
15892
+ } catch (e2) {
15893
+ if (debug3) {
15894
+ _debug(`Failed to load ${path9} ${e2.message}`);
15895
+ }
15896
+ lastError = e2;
15897
+ }
15898
+ }
15899
+ let processEnv = process.env;
15900
+ if (options && options.processEnv != null) {
15901
+ processEnv = options.processEnv;
15902
+ }
15903
+ DotenvModule.populate(processEnv, parsedAll, options);
15904
+ if (lastError) {
15905
+ return { parsed: parsedAll, error: lastError };
15906
+ } else {
15907
+ return { parsed: parsedAll };
15908
+ }
15909
+ }
15910
+ function config(options) {
15911
+ if (_dotenvKey(options).length === 0) {
15912
+ return DotenvModule.configDotenv(options);
15913
+ }
15914
+ const vaultPath = _vaultPath(options);
15915
+ if (!vaultPath) {
15916
+ _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
15917
+ return DotenvModule.configDotenv(options);
15918
+ }
15919
+ return DotenvModule._configVault(options);
15920
+ }
15921
+ function decrypt(encrypted, keyStr) {
15922
+ const key = Buffer.from(keyStr.slice(-64), "hex");
15923
+ let ciphertext = Buffer.from(encrypted, "base64");
15924
+ const nonce = ciphertext.subarray(0, 12);
15925
+ const authTag = ciphertext.subarray(-16);
15926
+ ciphertext = ciphertext.subarray(12, -16);
15927
+ try {
15928
+ const aesgcm = crypto2.createDecipheriv("aes-256-gcm", key, nonce);
15929
+ aesgcm.setAuthTag(authTag);
15930
+ return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
15931
+ } catch (error) {
15932
+ const isRange = error instanceof RangeError;
15933
+ const invalidKeyLength = error.message === "Invalid key length";
15934
+ const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
15935
+ if (isRange || invalidKeyLength) {
15936
+ const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
15937
+ err.code = "INVALID_DOTENV_KEY";
15938
+ throw err;
15939
+ } else if (decryptionFailed) {
15940
+ const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
15941
+ err.code = "DECRYPTION_FAILED";
15942
+ throw err;
15943
+ } else {
15944
+ throw error;
15945
+ }
15946
+ }
15947
+ }
15948
+ function populate(processEnv, parsed, options = {}) {
15949
+ const debug3 = Boolean(options && options.debug);
15950
+ const override = Boolean(options && options.override);
15951
+ if (typeof parsed !== "object") {
15952
+ const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
15953
+ err.code = "OBJECT_REQUIRED";
15954
+ throw err;
15955
+ }
15956
+ for (const key of Object.keys(parsed)) {
15957
+ if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
15958
+ if (override === true) {
15959
+ processEnv[key] = parsed[key];
15960
+ }
15961
+ if (debug3) {
15962
+ if (override === true) {
15963
+ _debug(`"${key}" is already defined and WAS overwritten`);
15964
+ } else {
15965
+ _debug(`"${key}" is already defined and was NOT overwritten`);
15966
+ }
15967
+ }
15968
+ } else {
15969
+ processEnv[key] = parsed[key];
15970
+ }
15971
+ }
15972
+ }
15973
+ var DotenvModule = {
15974
+ configDotenv,
15975
+ _configVault,
15976
+ _parseVault,
15977
+ config,
15978
+ decrypt,
15979
+ parse: parse2,
15980
+ populate
15981
+ };
15982
+ module2.exports.configDotenv = DotenvModule.configDotenv;
15983
+ module2.exports._configVault = DotenvModule._configVault;
15984
+ module2.exports._parseVault = DotenvModule._parseVault;
15985
+ module2.exports.config = DotenvModule.config;
15986
+ module2.exports.decrypt = DotenvModule.decrypt;
15987
+ module2.exports.parse = DotenvModule.parse;
15988
+ module2.exports.populate = DotenvModule.populate;
15989
+ module2.exports = DotenvModule;
15990
+ }
15991
+ });
15992
+
15656
15993
  // ../../node_modules/void-elements/index.js
15657
15994
  var require_void_elements = __commonJS({
15658
15995
  "../../node_modules/void-elements/index.js"(exports, module2) {
@@ -21574,7 +21911,7 @@ var require_module_details_from_path = __commonJS({
21574
21911
  });
21575
21912
 
21576
21913
  // ../../node_modules/require-in-the-middle/package.json
21577
- var require_package2 = __commonJS({
21914
+ var require_package3 = __commonJS({
21578
21915
  "../../node_modules/require-in-the-middle/package.json"(exports, module2) {
21579
21916
  module2.exports = {
21580
21917
  name: "require-in-the-middle",
@@ -21715,7 +22052,7 @@ var require_require_in_the_middle = __commonJS({
21715
22052
  }
21716
22053
  if (typeof Module._resolveFilename !== "function") {
21717
22054
  console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!", typeof Module._resolveFilename);
21718
- console.error("Please report this error as an issue related to Node.js %s at %s", process.version, require_package2().bugs.url);
22055
+ console.error("Please report this error as an issue related to Node.js %s at %s", process.version, require_package3().bugs.url);
21719
22056
  return;
21720
22057
  }
21721
22058
  this._cache = new ExportsCache();
@@ -43036,7 +43373,7 @@ function encode_char(c) {
43036
43373
  });
43037
43374
 
43038
43375
  // ../../node_modules/ejs/package.json
43039
- var require_package3 = __commonJS({
43376
+ var require_package4 = __commonJS({
43040
43377
  "../../node_modules/ejs/package.json"(exports, module2) {
43041
43378
  module2.exports = {
43042
43379
  name: "ejs",
@@ -43092,7 +43429,7 @@ var require_ejs = __commonJS({
43092
43429
  var path8 = __require("path");
43093
43430
  var utils = require_utils21();
43094
43431
  var scopeOptionWarned = false;
43095
- var _VERSION_STRING = require_package3().version;
43432
+ var _VERSION_STRING = require_package4().version;
43096
43433
  var _DEFAULT_OPEN_DELIMITER = "<";
43097
43434
  var _DEFAULT_CLOSE_DELIMITER = ">";
43098
43435
  var _DEFAULT_DELIMITER = "%";
@@ -57099,6 +57436,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
57099
57436
  FailedToWriteCache: (0, import_variant11.fields)(),
57100
57437
  UploadApplicationFailed: {},
57101
57438
  FailedToCreateDevCenterApp: {},
57439
+ FailedToCreateDevCenterOAuthApp: {},
57102
57440
  FailedToAddPermission: {},
57103
57441
  FailedToGetPlacements: {},
57104
57442
  FailedToGetAppSecret: {},
@@ -57125,6 +57463,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
57125
57463
  FailedToGetUserInfo: {},
57126
57464
  FailedToGetMyAccount: {},
57127
57465
  FailedToCreateDevelopmentSite: {},
57466
+ FailedToCreateMetaSiteFromTemplate: {},
57128
57467
  FailedToGetDevelopmentSites: {},
57129
57468
  FailedToGetDevelopmentSitesLimit: {},
57130
57469
  FailedToGetRequiredApps: {},
@@ -57166,6 +57505,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
57166
57505
  FailedToQueryCliAppTemplates: {},
57167
57506
  FailedToCreateDevCenterAppFromTemplate: {},
57168
57507
  FailedToGetSiteInstalledApps: {},
57508
+ FailedToGetSiteInstalledAppInstanceId: {},
57169
57509
  FailedToGetClientSpecMap: {},
57170
57510
  FailedToCreateVeloApp: {},
57171
57511
  FailedToUpdateVeloAppFiles: {},
@@ -57187,6 +57527,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
57187
57527
  FailedToSetEnvironmentVariable: {},
57188
57528
  FailedToRemoveEnvironmentVariable: {},
57189
57529
  FailedToUploadStaticFiles: {},
57530
+ FailedCreatingAppProject: {},
57190
57531
  FailedCreatingAppDeployment: {},
57191
57532
  FailedFinalizingAppDeployment: {}
57192
57533
  });
@@ -58563,6 +58904,7 @@ import {
58563
58904
  } from "node:fs/promises";
58564
58905
  import { dirname as dirname2, join, relative } from "node:path";
58565
58906
  import { EOL } from "node:os";
58907
+ var import_dotenv = __toESM(require_main(), 1);
58566
58908
  function toJsonString(object, opts) {
58567
58909
  return JSON.stringify(object, null, opts?.spaces).concat(EOL);
58568
58910
  }
@@ -66629,6 +66971,9 @@ function getErrorComponent(code, cause) {
66629
66971
  FailedToCreateDevCenterApp: () => {
66630
66972
  return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to register your application in Wix" });
66631
66973
  },
66974
+ FailedToCreateDevCenterOAuthApp: () => {
66975
+ return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to register your oauth application in Wix" });
66976
+ },
66632
66977
  FailedToAddPermission: () => {
66633
66978
  return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to add permission" });
66634
66979
  },
@@ -67043,6 +67388,9 @@ function getErrorComponent(code, cause) {
67043
67388
  FailedToCreateDevelopmentSite: () => {
67044
67389
  return () => /* @__PURE__ */ import_react78.default.createElement(ErrorMessage, { message: "Failed to create a Development Site" });
67045
67390
  },
67391
+ FailedToCreateMetaSiteFromTemplate: () => {
67392
+ return () => /* @__PURE__ */ import_react78.default.createElement(ErrorMessage, { message: "Failed to create a metasite from template" });
67393
+ },
67046
67394
  FailedToGetDevelopmentSites: () => {
67047
67395
  return () => /* @__PURE__ */ import_react78.default.createElement(ErrorMessage, { message: "Failed to request development sites." });
67048
67396
  },
@@ -67455,6 +67803,9 @@ function getErrorComponent(code, cause) {
67455
67803
  FailedToGetSiteInstalledApps: () => {
67456
67804
  return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to get site installed apps" });
67457
67805
  },
67806
+ FailedToGetSiteInstalledAppInstanceId: () => {
67807
+ return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to get site installed app instance id" });
67808
+ },
67458
67809
  FailedToGetClientSpecMap: () => {
67459
67810
  return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to get site client spec map" });
67460
67811
  },
@@ -67775,6 +68126,9 @@ ${errorMessage2}`
67775
68126
  FailedToUploadStaticFiles: () => {
67776
68127
  return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to upload static files." });
67777
68128
  },
68129
+ FailedCreatingAppProject: () => {
68130
+ return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "An error occoured while creating an app project." });
68131
+ },
67778
68132
  FailedCreatingAppDeployment: () => {
67779
68133
  return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "An error occoured while creating an app deployment." });
67780
68134
  },
@@ -71283,7 +71637,7 @@ function reportCommandStartEvent({
71283
71637
  var package_default = {
71284
71638
  name: "@wix/create-app",
71285
71639
  description: "Create Wix apps",
71286
- version: "0.0.112",
71640
+ version: "0.0.113",
71287
71641
  author: "Ihor Machuzhak",
71288
71642
  bin: "bin/index.cjs",
71289
71643
  devDependencies: {
@@ -75413,6 +75767,65 @@ function queryApp(payload5) {
75413
75767
  return __queryApp;
75414
75768
  }
75415
75769
 
75770
+ // ../../node_modules/@wix/ambassador-headless-v1-o-auth-app/build/es/http.impl.js
75771
+ init_esm_shims();
75772
+ var _createOAuthAppRequest = { oAuthApp: "_oAuthApp" };
75773
+ var _createOAuthAppResponse = { oAuthApp: "_oAuthApp" };
75774
+ var _oAuthApp = { createdDate: "google.protobuf.Timestamp" };
75775
+ function resolveWixHeadlessV1OAuthAppServiceUrl(opts) {
75776
+ var domainToMappings = {
75777
+ "manage._base_domain_": [
75778
+ {
75779
+ srcPath: "/oauth-app-service",
75780
+ destPath: ""
75781
+ },
75782
+ {
75783
+ srcPath: "/oauth-app",
75784
+ destPath: ""
75785
+ }
75786
+ ],
75787
+ "www.wixapis.com": [
75788
+ {
75789
+ srcPath: "/oauth-app",
75790
+ destPath: ""
75791
+ }
75792
+ ],
75793
+ "api._api_base_domain_": [
75794
+ {
75795
+ srcPath: "/oauth-app-service",
75796
+ destPath: ""
75797
+ }
75798
+ ]
75799
+ };
75800
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
75801
+ }
75802
+ function createOAuthApp(payload5) {
75803
+ var _a3 = serializer(_createOAuthAppRequest, { _oAuthApp }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
75804
+ var fromRes = serializer(_createOAuthAppResponse, {
75805
+ _oAuthApp
75806
+ }).fromJSON;
75807
+ function __createOAuthApp(_a4) {
75808
+ var host = _a4.host;
75809
+ var serializedData = toReq(payload5);
75810
+ var metadata = {
75811
+ entityFqdn: "wix.headless.v1.o_auth_app",
75812
+ method: "POST",
75813
+ methodFqn: "wix.headless.v1.OAuthAppService.CreateOAuthApp",
75814
+ url: resolveWixHeadlessV1OAuthAppServiceUrl({
75815
+ protoPath: "/v1/oauth-apps",
75816
+ data: serializedData,
75817
+ host
75818
+ }),
75819
+ data: serializedData,
75820
+ transformResponse: fromRes
75821
+ };
75822
+ return metadata;
75823
+ }
75824
+ __createOAuthApp.fromReq = fromReq;
75825
+ __createOAuthApp.__isAmbassador = true;
75826
+ return __createOAuthApp;
75827
+ }
75828
+
75416
75829
  // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-version/build/es/http.impl.js
75417
75830
  init_esm_shims();
75418
75831
  var _appVersion = {
@@ -80385,6 +80798,11 @@ var createAppSchema = z.object({
80385
80798
  id: z.string()
80386
80799
  })
80387
80800
  });
80801
+ var createOAuthAppSchema = z.object({
80802
+ oAuthApp: z.object({
80803
+ id: z.string()
80804
+ })
80805
+ });
80388
80806
  var topologySchema = z.object({
80389
80807
  compId: z.string(),
80390
80808
  compName: z.string(),
@@ -80591,6 +81009,19 @@ var DevCenterClient = class {
80591
81009
  });
80592
81010
  }
80593
81011
  };
81012
+ createOAuthApp = async (oAuthApp) => {
81013
+ try {
81014
+ const { data } = await this.httpClient.request(
81015
+ createOAuthApp({ oAuthApp })
81016
+ );
81017
+ return createOAuthAppSchema.parse(data).oAuthApp;
81018
+ } catch (e2) {
81019
+ throw new CliError({
81020
+ code: CliErrorCode.FailedToCreateDevCenterOAuthApp(),
81021
+ cause: e2
81022
+ });
81023
+ }
81024
+ };
80594
81025
  getAppSecret = async (req) => {
80595
81026
  try {
80596
81027
  const { data } = await pRetry(
@@ -81713,7 +82144,9 @@ function getFiles(cwd3) {
81713
82144
  // ../gena/src/generator.ts
81714
82145
  var fm = import_front_matter.default;
81715
82146
  function shouldSkipParsing(file) {
81716
- return [".png", ".jpg", ".gif"].includes(extname(file).toLowerCase());
82147
+ return [".png", ".jpg", ".gif", ".astro"].includes(
82148
+ extname(file).toLowerCase()
82149
+ );
81717
82150
  }
81718
82151
  async function justCopy({
81719
82152
  cwd: cwd3,