@base44-preview/cli 0.0.41-pr.390.711bb5e → 0.0.41-pr.390.c59bd67

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/cli/index.js CHANGED
@@ -239000,10 +239000,10 @@ var AuthConfigSchema = exports_external.object({
239000
239000
  enableFacebookLogin: data.enable_facebook_login,
239001
239001
  enableAppleLogin: data.enable_apple_login,
239002
239002
  ssoProviderName: data.sso_provider_name,
239003
- enableSsoLogin: data.enable_sso_login,
239003
+ enableSSOLogin: data.enable_sso_login,
239004
239004
  googleOAuthMode: data.google_oauth_mode,
239005
239005
  googleOAuthClientId: data.google_oauth_client_id,
239006
- useWorkspaceSso: data.use_workspace_sso
239006
+ useWorkspaceSSO: data.use_workspace_sso
239007
239007
  }));
239008
239008
  var AppAuthConfigResponseSchema = exports_external.object({
239009
239009
  auth_config: AuthConfigSchema
@@ -239018,10 +239018,10 @@ function toAuthConfigPayload(config9) {
239018
239018
  enable_facebook_login: config9.enableFacebookLogin,
239019
239019
  enable_apple_login: config9.enableAppleLogin,
239020
239020
  sso_provider_name: config9.ssoProviderName,
239021
- enable_sso_login: config9.enableSsoLogin,
239021
+ enable_sso_login: config9.enableSSOLogin,
239022
239022
  google_oauth_mode: config9.googleOAuthMode,
239023
239023
  google_oauth_client_id: config9.googleOAuthClientId,
239024
- use_workspace_sso: config9.useWorkspaceSso
239024
+ use_workspace_sso: config9.useWorkspaceSSO
239025
239025
  };
239026
239026
  }
239027
239027
 
@@ -239071,15 +239071,15 @@ var SSO_SECRET_KEYS = [
239071
239071
  "sso_okta_domain",
239072
239072
  "sso_jwks_uri"
239073
239073
  ];
239074
- async function removeSsoConfig() {
239074
+ async function removeSSOConfig() {
239075
239075
  const updated = await updateAuthConfig({
239076
- enableSsoLogin: false,
239076
+ enableSSOLogin: false,
239077
239077
  ssoProviderName: null
239078
239078
  });
239079
239079
  await Promise.allSettled(SSO_SECRET_KEYS.map((key) => deleteSecret(key)));
239080
239080
  return updated;
239081
239081
  }
239082
- async function submitSsoConfig(secrets, authConfigUpdates) {
239082
+ async function submitSSOConfig(secrets, authConfigUpdates) {
239083
239083
  await setSecrets(secrets);
239084
239084
  try {
239085
239085
  return await updateAuthConfig(authConfigUpdates);
@@ -248258,19 +248258,19 @@ function getSiteCommand(context) {
248258
248258
  }
248259
248259
 
248260
248260
  // src/cli/commands/sso/remove.ts
248261
- async function removeSsoAction() {
248261
+ async function removeSSOAction() {
248262
248262
  const current = await runTask("Fetching current auth config", async () => await getAuthConfig());
248263
- if (!current.enableSsoLogin) {
248263
+ if (!current.enableSSOLogin) {
248264
248264
  R2.warn("SSO is not currently enabled for this app.");
248265
248265
  return { outroMessage: "No changes made" };
248266
248266
  }
248267
248267
  R2.info(`Removing SSO provider: ${theme.styles.bold(current.ssoProviderName ?? "unknown")}`);
248268
- await runTask("Removing SSO configuration", async () => await removeSsoConfig());
248268
+ await runTask("Removing SSO configuration", async () => await removeSSOConfig());
248269
248269
  return { outroMessage: "SSO has been disabled and credentials removed" };
248270
248270
  }
248271
- function getSsoRemoveCommand(context) {
248271
+ function getSSORemoveCommand(context) {
248272
248272
  return new Command("remove").description("Remove SSO identity provider configuration").action(async () => {
248273
- await runCommand(removeSsoAction, { requireAuth: true }, context);
248273
+ await runCommand(removeSSOAction, { requireAuth: true }, context);
248274
248274
  });
248275
248275
  }
248276
248276
 
@@ -248692,7 +248692,7 @@ async function promptOktaCredentials() {
248692
248692
  };
248693
248693
  }
248694
248694
  // src/cli/commands/sso/setup.ts
248695
- async function promptSsoProvider() {
248695
+ async function promptSSOProvider() {
248696
248696
  const provider = await Je({
248697
248697
  message: "Select SSO provider",
248698
248698
  options: [
@@ -248760,36 +248760,36 @@ function buildSecretsPayload(credentials) {
248760
248760
  }
248761
248761
  function printAuthConfigSummary(config10) {
248762
248762
  R2.info(theme.styles.bold("Updated authentication config:"));
248763
- R2.info(` SSO Login: ${config10.enableSsoLogin ? "enabled" : "disabled"}`);
248763
+ R2.info(` SSO Login: ${config10.enableSSOLogin ? "enabled" : "disabled"}`);
248764
248764
  R2.info(` SSO Provider: ${config10.ssoProviderName ?? "none"}`);
248765
248765
  }
248766
- async function setupSsoAction() {
248766
+ async function setupSSOAction() {
248767
248767
  const current = await runTask("Fetching current auth config", async () => await getAuthConfig());
248768
- if (current.enableSsoLogin) {
248768
+ if (current.enableSSOLogin) {
248769
248769
  R2.warn(`SSO is already enabled with provider: ${theme.styles.bold(current.ssoProviderName ?? "unknown")}`);
248770
248770
  }
248771
- const provider = await promptSsoProvider();
248771
+ const provider = await promptSSOProvider();
248772
248772
  const credentials = await credentialPrompters[provider]();
248773
248773
  const secrets = buildSecretsPayload(credentials);
248774
- const updated = await runTask("Configuring SSO", async () => await submitSsoConfig(secrets, {
248774
+ const updated = await runTask("Configuring SSO", async () => await submitSSOConfig(secrets, {
248775
248775
  ssoProviderName: credentials.ssoName,
248776
- enableSsoLogin: true,
248777
- useWorkspaceSso: false
248776
+ enableSSOLogin: true,
248777
+ useWorkspaceSSO: false
248778
248778
  }));
248779
248779
  printAuthConfigSummary(updated);
248780
248780
  return {
248781
248781
  outroMessage: `SSO configured with ${provider}`
248782
248782
  };
248783
248783
  }
248784
- function getSsoSetupCommand(context) {
248784
+ function getSSOSetupCommand(context) {
248785
248785
  return new Command("setup").description("Configure SSO identity provider for the app").action(async () => {
248786
- await runCommand(setupSsoAction, { requireAuth: true }, context);
248786
+ await runCommand(setupSSOAction, { requireAuth: true }, context);
248787
248787
  });
248788
248788
  }
248789
248789
 
248790
248790
  // src/cli/commands/sso/index.ts
248791
- function getSsoCommand(context) {
248792
- return new Command("sso").description("Manage SSO identity provider configuration").addCommand(getSsoSetupCommand(context)).addCommand(getSsoRemoveCommand(context));
248791
+ function getSSOCommand(context) {
248792
+ return new Command("sso").description("Manage SSO identity provider configuration").addCommand(getSSOSetupCommand(context)).addCommand(getSSORemoveCommand(context));
248793
248793
  }
248794
248794
 
248795
248795
  // src/core/types/generator.ts
@@ -251599,7 +251599,7 @@ function createProgram(context) {
251599
251599
  program2.addCommand(getConnectorsCommand(context));
251600
251600
  program2.addCommand(getFunctionsDeployCommand(context));
251601
251601
  program2.addCommand(getSecretsCommand(context));
251602
- program2.addCommand(getSsoCommand(context));
251602
+ program2.addCommand(getSSOCommand(context));
251603
251603
  program2.addCommand(getSiteCommand(context));
251604
251604
  program2.addCommand(getTypesCommand(context));
251605
251605
  program2.addCommand(getDevCommand(context), { hidden: true });
@@ -255844,4 +255844,4 @@ export {
255844
255844
  CLIExitError
255845
255845
  };
255846
255846
 
255847
- //# debugId=1893C2AB38F3DBB164756E2164756E21
255847
+ //# debugId=7BD8EB5F90374BAB64756E2164756E21